var dee=Object.defineProperty;var fee=(t,e,r)=>e in t?dee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var il=(t,e,r)=>(fee(t,typeof e!="symbol"?e+"":e,r),r),BA=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var le=(t,e,r)=>(BA(t,e,"read from private field"),r?r.call(t):e.get(t)),Je=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},qe=(t,e,r,n)=>(BA(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var n0=(t,e,r,n)=>({set _(o){qe(t,e,o,r)},get _(){return le(t,e,n)}}),At=(t,e,r)=>(BA(t,e,"access private method"),r);function hee(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in t)){const a=Object.getOwnPropertyDescriptor(n,o);a&&Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const f of a.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&n(f)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();function zv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function pee(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var zB={exports:{}},zw={};/**
 * @license React
 * react-jsx-runtime.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 gee=Symbol.for("react.transitional.element"),mee=Symbol.for("react.fragment");function MB(t,e,r){var n=null;if(r!==void 0&&(n=""+r),e.key!==void 0&&(n=""+e.key),"key"in e){r={};for(var o in e)o!=="key"&&(r[o]=e[o])}else r=e;return e=r.ref,{$$typeof:gee,type:t,key:n,ref:e!==void 0?e:null,props:r}}zw.Fragment=mee;zw.jsx=MB;zw.jsxs=MB;zB.exports=zw;var A=zB.exports,IB={exports:{}},Mw={},LB={exports:{}},NB={};/**
 * @license React
 * scheduler.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.
 */(function(t){function e(re,ne){var te=re.length;re.push(ne);e:for(;0<te;){var ue=te-1>>>1,pe=re[ue];if(0<o(pe,ne))re[ue]=ne,re[te]=pe,te=ue;else break e}}function r(re){return re.length===0?null:re[0]}function n(re){if(re.length===0)return null;var ne=re[0],te=re.pop();if(te!==ne){re[0]=te;e:for(var ue=0,pe=re.length,ke=pe>>>1;ue<ke;){var ze=2*(ue+1)-1,Re=re[ze],Ae=ze+1,tt=re[Ae];if(0>o(Re,te))Ae<pe&&0>o(tt,Re)?(re[ue]=tt,re[Ae]=te,ue=Ae):(re[ue]=Re,re[ze]=te,ue=ze);else if(Ae<pe&&0>o(tt,te))re[ue]=tt,re[Ae]=te,ue=Ae;else break e}}return ne}function o(re,ne){var te=re.sortIndex-ne.sortIndex;return te!==0?te:re.id-ne.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var f=Date,p=f.now();t.unstable_now=function(){return f.now()-p}}var m=[],v=[],y=1,x=null,k=3,S=!1,O=!1,C=!1,R=!1,E=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function I(re){for(var ne=r(v);ne!==null;){if(ne.callback===null)n(v);else if(ne.startTime<=re)n(v),ne.sortIndex=ne.expirationTime,e(m,ne);else break;ne=r(v)}}function B(re){if(C=!1,I(re),!O)if(r(m)!==null)O=!0,U||(U=!0,K());else{var ne=r(v);ne!==null&&ie(B,ne.startTime-re)}}var U=!1,H=-1,V=5,W=-1;function G(){return R?!0:!(t.unstable_now()-W<V)}function Z(){if(R=!1,U){var re=t.unstable_now();W=re;var ne=!0;try{e:{O=!1,C&&(C=!1,P(H),H=-1),S=!0;var te=k;try{t:{for(I(re),x=r(m);x!==null&&!(x.expirationTime>re&&G());){var ue=x.callback;if(typeof ue=="function"){x.callback=null,k=x.priorityLevel;var pe=ue(x.expirationTime<=re);if(re=t.unstable_now(),typeof pe=="function"){x.callback=pe,I(re),ne=!0;break t}x===r(m)&&n(m),I(re)}else n(m);x=r(m)}if(x!==null)ne=!0;else{var ke=r(v);ke!==null&&ie(B,ke.startTime-re),ne=!1}}break e}finally{x=null,k=te,S=!1}ne=void 0}}finally{ne?K():U=!1}}}var K;if(typeof M=="function")K=function(){M(Z)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,oe=Q.port2;Q.port1.onmessage=Z,K=function(){oe.postMessage(null)}}else K=function(){E(Z,0)};function ie(re,ne){H=E(function(){re(t.unstable_now())},ne)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(re){re.callback=null},t.unstable_forceFrameRate=function(re){0>re||125<re?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<re?Math.floor(1e3/re):5},t.unstable_getCurrentPriorityLevel=function(){return k},t.unstable_next=function(re){switch(k){case 1:case 2:case 3:var ne=3;break;default:ne=k}var te=k;k=ne;try{return re()}finally{k=te}},t.unstable_requestPaint=function(){R=!0},t.unstable_runWithPriority=function(re,ne){switch(re){case 1:case 2:case 3:case 4:case 5:break;default:re=3}var te=k;k=re;try{return ne()}finally{k=te}},t.unstable_scheduleCallback=function(re,ne,te){var ue=t.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ue+te:ue):te=ue,re){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=te+pe,re={id:y++,callback:ne,priorityLevel:re,startTime:te,expirationTime:pe,sortIndex:-1},te>ue?(re.sortIndex=te,e(v,re),r(m)===null&&re===r(v)&&(C?(P(H),H=-1):C=!0,ie(B,te-ue))):(re.sortIndex=pe,e(m,re),O||S||(O=!0,U||(U=!0,K()))),re},t.unstable_shouldYield=G,t.unstable_wrapCallback=function(re){var ne=k;return function(){var te=k;k=ne;try{return re.apply(this,arguments)}finally{k=te}}}})(NB);LB.exports=NB;var vee=LB.exports,DB={exports:{}},vt={};/**
 * @license React
 * react.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 DR=Symbol.for("react.transitional.element"),bee=Symbol.for("react.portal"),yee=Symbol.for("react.fragment"),xee=Symbol.for("react.strict_mode"),wee=Symbol.for("react.profiler"),_ee=Symbol.for("react.consumer"),kee=Symbol.for("react.context"),jee=Symbol.for("react.forward_ref"),See=Symbol.for("react.suspense"),Cee=Symbol.for("react.memo"),BB=Symbol.for("react.lazy"),QN=Symbol.iterator;function Aee(t){return t===null||typeof t!="object"?null:(t=QN&&t[QN]||t["@@iterator"],typeof t=="function"?t:null)}var FB={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},HB=Object.assign,UB={};function Jf(t,e,r){this.props=t,this.context=e,this.refs=UB,this.updater=r||FB}Jf.prototype.isReactComponent={};Jf.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Jf.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function VB(){}VB.prototype=Jf.prototype;function BR(t,e,r){this.props=t,this.context=e,this.refs=UB,this.updater=r||FB}var FR=BR.prototype=new VB;FR.constructor=BR;HB(FR,Jf.prototype);FR.isPureReactComponent=!0;var e6=Array.isArray,wr={H:null,A:null,T:null,S:null,V:null},qB=Object.prototype.hasOwnProperty;function HR(t,e,r,n,o,a){return r=a.ref,{$$typeof:DR,type:t,key:e,ref:r!==void 0?r:null,props:a}}function Oee(t,e){return HR(t.type,e,void 0,void 0,void 0,t.props)}function UR(t){return typeof t=="object"&&t!==null&&t.$$typeof===DR}function Eee(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var t6=/\/+/g;function FA(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Eee(""+t.key):e.toString(36)}function r6(){}function Tee(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(r6,r6):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function qd(t,e,r,n,o){var a=typeof t;(a==="undefined"||a==="boolean")&&(t=null);var f=!1;if(t===null)f=!0;else switch(a){case"bigint":case"string":case"number":f=!0;break;case"object":switch(t.$$typeof){case DR:case bee:f=!0;break;case BB:return f=t._init,qd(f(t._payload),e,r,n,o)}}if(f)return o=o(t),f=n===""?"."+FA(t,0):n,e6(o)?(r="",f!=null&&(r=f.replace(t6,"$&/")+"/"),qd(o,e,r,"",function(v){return v})):o!=null&&(UR(o)&&(o=Oee(o,r+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(t6,"$&/")+"/")+f)),e.push(o)),1;f=0;var p=n===""?".":n+":";if(e6(t))for(var m=0;m<t.length;m++)n=t[m],a=p+FA(n,m),f+=qd(n,e,r,a,o);else if(m=Aee(t),typeof m=="function")for(t=m.call(t),m=0;!(n=t.next()).done;)n=n.value,a=p+FA(n,m++),f+=qd(n,e,r,a,o);else if(a==="object"){if(typeof t.then=="function")return qd(Tee(t),e,r,n,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return f}function o0(t,e,r){if(t==null)return t;var n=[],o=0;return qd(t,n,"","",function(a){return e.call(r,a,o++)}),n}function Ree(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var n6=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Pee(){}vt.Children={map:o0,forEach:function(t,e,r){o0(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return o0(t,function(){e++}),e},toArray:function(t){return o0(t,function(e){return e})||[]},only:function(t){if(!UR(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};vt.Component=Jf;vt.Fragment=yee;vt.Profiler=wee;vt.PureComponent=BR;vt.StrictMode=xee;vt.Suspense=See;vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=wr;vt.__COMPILER_RUNTIME={__proto__:null,c:function(t){return wr.H.useMemoCache(t)}};vt.cache=function(t){return function(){return t.apply(null,arguments)}};vt.cloneElement=function(t,e,r){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var n=HB({},t.props),o=t.key,a=void 0;if(e!=null)for(f in e.ref!==void 0&&(a=void 0),e.key!==void 0&&(o=""+e.key),e)!qB.call(e,f)||f==="key"||f==="__self"||f==="__source"||f==="ref"&&e.ref===void 0||(n[f]=e[f]);var f=arguments.length-2;if(f===1)n.children=r;else if(1<f){for(var p=Array(f),m=0;m<f;m++)p[m]=arguments[m+2];n.children=p}return HR(t.type,o,void 0,void 0,a,n)};vt.createContext=function(t){return t={$$typeof:kee,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:_ee,_context:t},t};vt.createElement=function(t,e,r){var n,o={},a=null;if(e!=null)for(n in e.key!==void 0&&(a=""+e.key),e)qB.call(e,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(o[n]=e[n]);var f=arguments.length-2;if(f===1)o.children=r;else if(1<f){for(var p=Array(f),m=0;m<f;m++)p[m]=arguments[m+2];o.children=p}if(t&&t.defaultProps)for(n in f=t.defaultProps,f)o[n]===void 0&&(o[n]=f[n]);return HR(t,a,void 0,void 0,null,o)};vt.createRef=function(){return{current:null}};vt.forwardRef=function(t){return{$$typeof:jee,render:t}};vt.isValidElement=UR;vt.lazy=function(t){return{$$typeof:BB,_payload:{_status:-1,_result:t},_init:Ree}};vt.memo=function(t,e){return{$$typeof:Cee,type:t,compare:e===void 0?null:e}};vt.startTransition=function(t){var e=wr.T,r={};wr.T=r;try{var n=t(),o=wr.S;o!==null&&o(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(Pee,n6)}catch(a){n6(a)}finally{wr.T=e}};vt.unstable_useCacheRefresh=function(){return wr.H.useCacheRefresh()};vt.use=function(t){return wr.H.use(t)};vt.useActionState=function(t,e,r){return wr.H.useActionState(t,e,r)};vt.useCallback=function(t,e){return wr.H.useCallback(t,e)};vt.useContext=function(t){return wr.H.useContext(t)};vt.useDebugValue=function(){};vt.useDeferredValue=function(t,e){return wr.H.useDeferredValue(t,e)};vt.useEffect=function(t,e,r){var n=wr.H;if(typeof r=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return n.useEffect(t,e)};vt.useId=function(){return wr.H.useId()};vt.useImperativeHandle=function(t,e,r){return wr.H.useImperativeHandle(t,e,r)};vt.useInsertionEffect=function(t,e){return wr.H.useInsertionEffect(t,e)};vt.useLayoutEffect=function(t,e){return wr.H.useLayoutEffect(t,e)};vt.useMemo=function(t,e){return wr.H.useMemo(t,e)};vt.useOptimistic=function(t,e){return wr.H.useOptimistic(t,e)};vt.useReducer=function(t,e,r){return wr.H.useReducer(t,e,r)};vt.useRef=function(t){return wr.H.useRef(t)};vt.useState=function(t){return wr.H.useState(t)};vt.useSyncExternalStore=function(t,e,r){return wr.H.useSyncExternalStore(t,e,r)};vt.useTransition=function(){return wr.H.useTransition()};vt.version="19.1.1";DB.exports=vt;var F=DB.exports;const Ge=zv(F),kx=hee({__proto__:null,default:Ge},[F]);var YB={exports:{}},ao={};/**
 * @license React
 * react-dom.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 zee=F;function WB(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function al(){}var io={d:{f:al,r:function(){throw Error(WB(522))},D:al,C:al,L:al,m:al,X:al,S:al,M:al},p:0,findDOMNode:null},Mee=Symbol.for("react.portal");function Iee(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Mee,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}var _m=zee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Iw(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}ao.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=io;ao.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(WB(299));return Iee(t,e,null,r)};ao.flushSync=function(t){var e=_m.T,r=io.p;try{if(_m.T=null,io.p=2,t)return t()}finally{_m.T=e,io.p=r,io.d.f()}};ao.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,io.d.C(t,e))};ao.prefetchDNS=function(t){typeof t=="string"&&io.d.D(t)};ao.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var r=e.as,n=Iw(r,e.crossOrigin),o=typeof e.integrity=="string"?e.integrity:void 0,a=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;r==="style"?io.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:n,integrity:o,fetchPriority:a}):r==="script"&&io.d.X(t,{crossOrigin:n,integrity:o,fetchPriority:a,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};ao.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var r=Iw(e.as,e.crossOrigin);io.d.M(t,{crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&io.d.M(t)};ao.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var r=e.as,n=Iw(r,e.crossOrigin);io.d.L(t,r,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};ao.preloadModule=function(t,e){if(typeof t=="string")if(e){var r=Iw(e.as,e.crossOrigin);io.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else io.d.m(t)};ao.requestFormReset=function(t){io.d.r(t)};ao.unstable_batchedUpdates=function(t,e){return t(e)};ao.useFormState=function(t,e,r){return _m.H.useFormState(t,e,r)};ao.useFormStatus=function(){return _m.H.useHostTransitionStatus()};ao.version="19.1.1";function XB(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(XB)}catch(t){console.error(t)}}XB(),YB.exports=ao;var Mv=YB.exports;const Lee=zv(Mv);/**
 * @license React
 * react-dom-client.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 cn=vee,GB=F,Nee=Mv;function we(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function $B(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Iv(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function ZB(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function o6(t){if(Iv(t)!==t)throw Error(we(188))}function Dee(t){var e=t.alternate;if(!e){if(e=Iv(t),e===null)throw Error(we(188));return e!==t?null:t}for(var r=t,n=e;;){var o=r.return;if(o===null)break;var a=o.alternate;if(a===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return o6(o),t;if(a===n)return o6(o),e;a=a.sibling}throw Error(we(188))}if(r.return!==n.return)r=o,n=a;else{for(var f=!1,p=o.child;p;){if(p===r){f=!0,r=o,n=a;break}if(p===n){f=!0,n=o,r=a;break}p=p.sibling}if(!f){for(p=a.child;p;){if(p===r){f=!0,r=a,n=o;break}if(p===n){f=!0,n=a,r=o;break}p=p.sibling}if(!f)throw Error(we(189))}}if(r.alternate!==n)throw Error(we(190))}if(r.tag!==3)throw Error(we(188));return r.stateNode.current===r?t:e}function KB(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=KB(t),e!==null)return e;t=t.sibling}return null}var yr=Object.assign,Bee=Symbol.for("react.element"),i0=Symbol.for("react.transitional.element"),fm=Symbol.for("react.portal"),Gd=Symbol.for("react.fragment"),JB=Symbol.for("react.strict_mode"),wE=Symbol.for("react.profiler"),Fee=Symbol.for("react.provider"),QB=Symbol.for("react.consumer"),xs=Symbol.for("react.context"),VR=Symbol.for("react.forward_ref"),_E=Symbol.for("react.suspense"),kE=Symbol.for("react.suspense_list"),qR=Symbol.for("react.memo"),fl=Symbol.for("react.lazy"),jE=Symbol.for("react.activity"),Hee=Symbol.for("react.memo_cache_sentinel"),i6=Symbol.iterator;function Zg(t){return t===null||typeof t!="object"?null:(t=i6&&t[i6]||t["@@iterator"],typeof t=="function"?t:null)}var Uee=Symbol.for("react.client.reference");function SE(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Uee?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Gd:return"Fragment";case wE:return"Profiler";case JB:return"StrictMode";case _E:return"Suspense";case kE:return"SuspenseList";case jE:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case fm:return"Portal";case xs:return(t.displayName||"Context")+".Provider";case QB:return(t._context.displayName||"Context")+".Consumer";case VR:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case qR:return e=t.displayName||null,e!==null?e:SE(t.type)||"Memo";case fl:e=t._payload,t=t._init;try{return SE(t(e))}catch{}}return null}var hm=Array.isArray,lt=GB.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Yt=Nee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qc={pending:!1,data:null,method:null,action:null},CE=[],$d=-1;function Fa(t){return{current:t}}function xn(t){0>$d||(t.current=CE[$d],CE[$d]=null,$d--)}function _r(t,e){$d++,CE[$d]=t.current,t.current=e}var za=Fa(null),Vm=Fa(null),Rl=Fa(null),jx=Fa(null);function Sx(t,e){switch(_r(Rl,e),_r(Vm,t),_r(za,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?uD(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=uD(e),t=m7(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}xn(za),_r(za,t)}function If(){xn(za),xn(Vm),xn(Rl)}function AE(t){t.memoizedState!==null&&_r(jx,t);var e=za.current,r=m7(e,t.type);e!==r&&(_r(Vm,t),_r(za,r))}function Cx(t){Vm.current===t&&(xn(za),xn(Vm)),jx.current===t&&(xn(jx),Qm._currentValue=Qc)}var OE=Object.prototype.hasOwnProperty,YR=cn.unstable_scheduleCallback,HA=cn.unstable_cancelCallback,Vee=cn.unstable_shouldYield,qee=cn.unstable_requestPaint,Ma=cn.unstable_now,Yee=cn.unstable_getCurrentPriorityLevel,eF=cn.unstable_ImmediatePriority,tF=cn.unstable_UserBlockingPriority,Ax=cn.unstable_NormalPriority,Wee=cn.unstable_LowPriority,rF=cn.unstable_IdlePriority,Xee=cn.log,Gee=cn.unstable_setDisableYieldValue,Lv=null,Fo=null;function Al(t){if(typeof Xee=="function"&&Gee(t),Fo&&typeof Fo.setStrictMode=="function")try{Fo.setStrictMode(Lv,t)}catch{}}var Ho=Math.clz32?Math.clz32:Kee,$ee=Math.log,Zee=Math.LN2;function Kee(t){return t>>>=0,t===0?32:31-($ee(t)/Zee|0)|0}var a0=256,s0=4194304;function Pc(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Lw(t,e,r){var n=t.pendingLanes;if(n===0)return 0;var o=0,a=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var p=n&134217727;return p!==0?(n=p&~a,n!==0?o=Pc(n):(f&=p,f!==0?o=Pc(f):r||(r=p&~t,r!==0&&(o=Pc(r))))):(p=n&~a,p!==0?o=Pc(p):f!==0?o=Pc(f):r||(r=n&~t,r!==0&&(o=Pc(r)))),o===0?0:e!==0&&e!==o&&!(e&a)&&(a=o&-o,r=e&-e,a>=r||a===32&&(r&4194048)!==0)?e:o}function Nv(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Jee(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nF(){var t=a0;return a0<<=1,!(a0&4194048)&&(a0=256),t}function oF(){var t=s0;return s0<<=1,!(s0&62914560)&&(s0=4194304),t}function UA(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function Dv(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Qee(t,e,r,n,o,a){var f=t.pendingLanes;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=r,t.entangledLanes&=r,t.errorRecoveryDisabledLanes&=r,t.shellSuspendCounter=0;var p=t.entanglements,m=t.expirationTimes,v=t.hiddenUpdates;for(r=f&~r;0<r;){var y=31-Ho(r),x=1<<y;p[y]=0,m[y]=-1;var k=v[y];if(k!==null)for(v[y]=null,y=0;y<k.length;y++){var S=k[y];S!==null&&(S.lane&=-536870913)}r&=~x}n!==0&&iF(t,n,0),a!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=a&~(f&~e))}function iF(t,e,r){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-Ho(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|r&4194090}function aF(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-Ho(r),o=1<<n;o&e|t[n]&e&&(t[n]|=e),r&=~o}}function WR(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function XR(t){return t&=-t,2<t?8<t?t&134217727?32:268435456:8:2}function sF(){var t=Yt.p;return t!==0?t:(t=window.event,t===void 0?32:C7(t.type))}function ete(t,e){var r=Yt.p;try{return Yt.p=t,e()}finally{Yt.p=r}}var Kl=Math.random().toString(36).slice(2),Gn="__reactFiber$"+Kl,Oo="__reactProps$"+Kl,Qf="__reactContainer$"+Kl,EE="__reactEvents$"+Kl,tte="__reactListeners$"+Kl,rte="__reactHandles$"+Kl,a6="__reactResources$"+Kl,Bv="__reactMarker$"+Kl;function GR(t){delete t[Gn],delete t[Oo],delete t[EE],delete t[tte],delete t[rte]}function Zd(t){var e=t[Gn];if(e)return e;for(var r=t.parentNode;r;){if(e=r[Qf]||r[Gn]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=hD(t);t!==null;){if(r=t[Gn])return r;t=hD(t)}return e}t=r,r=t.parentNode}return null}function eh(t){if(t=t[Gn]||t[Qf]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function pm(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(we(33))}function cf(t){var e=t[a6];return e||(e=t[a6]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function bn(t){t[Bv]=!0}var lF=new Set,cF={};function ju(t,e){Lf(t,e),Lf(t+"Capture",e)}function Lf(t,e){for(cF[t]=e,t=0;t<e.length;t++)lF.add(e[t])}var nte=RegExp("^[: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]*$"),s6={},l6={};function ote(t){return OE.call(l6,t)?!0:OE.call(s6,t)?!1:nte.test(t)?l6[t]=!0:(s6[t]=!0,!1)}function U0(t,e,r){if(ote(e))if(r===null)t.removeAttribute(e);else{switch(typeof r){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+r)}}function l0(t,e,r){if(r===null)t.removeAttribute(e);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+r)}}function cs(t,e,r,n){if(n===null)t.removeAttribute(r);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttributeNS(e,r,""+n)}}var VA,c6;function Yd(t){if(VA===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);VA=e&&e[1]||"",c6=-1<r.stack.indexOf(`
    at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
`+VA+t+c6}var qA=!1;function YA(t,e){if(!t||qA)return"";qA=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var x=function(){throw Error()};if(Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[])}catch(S){var k=S}Reflect.construct(t,[],x)}else{try{x.call()}catch(S){k=S}t.call(x.prototype)}}else{try{throw Error()}catch(S){k=S}(x=t())&&typeof x.catch=="function"&&x.catch(function(){})}}catch(S){if(S&&k&&typeof S.stack=="string")return[S.stack,k.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=n.DetermineComponentFrameRoot(),f=a[0],p=a[1];if(f&&p){var m=f.split(`
`),v=p.split(`
`);for(o=n=0;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;for(;o<v.length&&!v[o].includes("DetermineComponentFrameRoot");)o++;if(n===m.length||o===v.length)for(n=m.length-1,o=v.length-1;1<=n&&0<=o&&m[n]!==v[o];)o--;for(;1<=n&&0<=o;n--,o--)if(m[n]!==v[o]){if(n!==1||o!==1)do if(n--,o--,0>o||m[n]!==v[o]){var y=`
`+m[n].replace(" at new "," at ");return t.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",t.displayName)),y}while(1<=n&&0<=o);break}}}finally{qA=!1,Error.prepareStackTrace=r}return(r=t?t.displayName||t.name:"")?Yd(r):""}function ite(t){switch(t.tag){case 26:case 27:case 5:return Yd(t.type);case 16:return Yd("Lazy");case 13:return Yd("Suspense");case 19:return Yd("SuspenseList");case 0:case 15:return YA(t.type,!1);case 11:return YA(t.type.render,!1);case 1:return YA(t.type,!0);case 31:return Yd("Activity");default:return""}}function u6(t){try{var e="";do e+=ite(t),t=t.return;while(t);return e}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}function vi(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function uF(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ate(t){var e=uF(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(f){n=""+f,a.call(this,f)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ox(t){t._valueTracker||(t._valueTracker=ate(t))}function dF(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=uF(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Ex(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ste=/[\n"\\]/g;function wi(t){return t.replace(ste,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function TE(t,e,r,n,o,a,f,p){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+vi(e)):t.value!==""+vi(e)&&(t.value=""+vi(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?RE(t,f,vi(e)):r!=null?RE(t,f,vi(r)):n!=null&&t.removeAttribute("value"),o==null&&a!=null&&(t.defaultChecked=!!a),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.name=""+vi(p):t.removeAttribute("name")}function fF(t,e,r,n,o,a,f,p){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(t.type=a),e!=null||r!=null){if(!(a!=="submit"&&a!=="reset"||e!=null))return;r=r!=null?""+vi(r):"",e=e!=null?""+vi(e):r,p||e===t.value||(t.value=e),t.defaultValue=e}n=n??o,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=p?t.checked:!!n,t.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f)}function RE(t,e,r){e==="number"&&Ex(t.ownerDocument)===t||t.defaultValue===""+r||(t.defaultValue=""+r)}function uf(t,e,r,n){if(t=t.options,e){e={};for(var o=0;o<r.length;o++)e["$"+r[o]]=!0;for(r=0;r<t.length;r++)o=e.hasOwnProperty("$"+t[r].value),t[r].selected!==o&&(t[r].selected=o),o&&n&&(t[r].defaultSelected=!0)}else{for(r=""+vi(r),e=null,o=0;o<t.length;o++){if(t[o].value===r){t[o].selected=!0,n&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function hF(t,e,r){if(e!=null&&(e=""+vi(e),e!==t.value&&(t.value=e),r==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=r!=null?""+vi(r):""}function pF(t,e,r,n){if(e==null){if(n!=null){if(r!=null)throw Error(we(92));if(hm(n)){if(1<n.length)throw Error(we(93));n=n[0]}r=n}r==null&&(r=""),e=r}r=vi(e),t.defaultValue=r,n=t.textContent,n===r&&n!==""&&n!==null&&(t.value=n)}function Nf(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var lte=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function d6(t,e,r){var n=e.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,r):typeof r!="number"||r===0||lte.has(e)?e==="float"?t.cssFloat=r:t[e]=(""+r).trim():t[e]=r+"px"}function gF(t,e,r){if(e!=null&&typeof e!="object")throw Error(we(62));if(t=t.style,r!=null){for(var n in r)!r.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var o in e)n=e[o],e.hasOwnProperty(o)&&r[o]!==n&&d6(t,o,n)}else for(var a in e)e.hasOwnProperty(a)&&d6(t,a,e[a])}function $R(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cte=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ute=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function V0(t){return ute.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var PE=null;function ZR(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Kd=null,df=null;function f6(t){var e=eh(t);if(e&&(t=e.stateNode)){var r=t[Oo]||null;e:switch(t=e.stateNode,e.type){case"input":if(TE(t,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+wi(""+e)+'"][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var o=n[Oo]||null;if(!o)throw Error(we(90));TE(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<r.length;e++)n=r[e],n.form===t.form&&dF(n)}break e;case"textarea":hF(t,r.value,r.defaultValue);break e;case"select":e=r.value,e!=null&&uf(t,!!r.multiple,e,!1)}}}var WA=!1;function mF(t,e,r){if(WA)return t(e,r);WA=!0;try{var n=t(e);return n}finally{if(WA=!1,(Kd!==null||df!==null)&&(Ww(),Kd&&(e=Kd,t=df,df=Kd=null,f6(e),t)))for(e=0;e<t.length;e++)f6(t[e])}}function qm(t,e){var r=t.stateNode;if(r===null)return null;var n=r[Oo]||null;if(n===null)return null;r=n[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(we(231,e,typeof r));return r}var Ts=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zE=!1;if(Ts)try{var Kg={};Object.defineProperty(Kg,"passive",{get:function(){zE=!0}}),window.addEventListener("test",Kg,Kg),window.removeEventListener("test",Kg,Kg)}catch{zE=!1}var Ol=null,KR=null,q0=null;function vF(){if(q0)return q0;var t,e=KR,r=e.length,n,o="value"in Ol?Ol.value:Ol.textContent,a=o.length;for(t=0;t<r&&e[t]===o[t];t++);var f=r-t;for(n=1;n<=f&&e[r-n]===o[a-n];n++);return q0=o.slice(t,1<n?1-n:void 0)}function Y0(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function c0(){return!0}function h6(){return!1}function To(t){function e(r,n,o,a,f){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=a,this.target=f,this.currentTarget=null;for(var p in t)t.hasOwnProperty(p)&&(r=t[p],this[p]=r?r(a):a[p]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?c0:h6,this.isPropagationStopped=h6,this}return yr(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=c0)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=c0)},persist:function(){},isPersistent:c0}),e}var Su={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nw=To(Su),Fv=yr({},Su,{view:0,detail:0}),dte=To(Fv),XA,GA,Jg,Dw=yr({},Fv,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:JR,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Jg&&(Jg&&t.type==="mousemove"?(XA=t.screenX-Jg.screenX,GA=t.screenY-Jg.screenY):GA=XA=0,Jg=t),XA)},movementY:function(t){return"movementY"in t?t.movementY:GA}}),p6=To(Dw),fte=yr({},Dw,{dataTransfer:0}),hte=To(fte),pte=yr({},Fv,{relatedTarget:0}),$A=To(pte),gte=yr({},Su,{animationName:0,elapsedTime:0,pseudoElement:0}),mte=To(gte),vte=yr({},Su,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),bte=To(vte),yte=yr({},Su,{data:0}),g6=To(yte),xte={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wte={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"},_te={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kte(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=_te[t])?!!e[t]:!1}function JR(){return kte}var jte=yr({},Fv,{key:function(t){if(t.key){var e=xte[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Y0(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?wte[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:JR,charCode:function(t){return t.type==="keypress"?Y0(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Y0(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Ste=To(jte),Cte=yr({},Dw,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),m6=To(Cte),Ate=yr({},Fv,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:JR}),Ote=To(Ate),Ete=yr({},Su,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tte=To(Ete),Rte=yr({},Dw,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Pte=To(Rte),zte=yr({},Su,{newState:0,oldState:0}),Mte=To(zte),Ite=[9,13,27,32],QR=Ts&&"CompositionEvent"in window,km=null;Ts&&"documentMode"in document&&(km=document.documentMode);var Lte=Ts&&"TextEvent"in window&&!km,bF=Ts&&(!QR||km&&8<km&&11>=km),v6=" ",b6=!1;function yF(t,e){switch(t){case"keyup":return Ite.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xF(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Jd=!1;function Nte(t,e){switch(t){case"compositionend":return xF(e);case"keypress":return e.which!==32?null:(b6=!0,v6);case"textInput":return t=e.data,t===v6&&b6?null:t;default:return null}}function Dte(t,e){if(Jd)return t==="compositionend"||!QR&&yF(t,e)?(t=vF(),q0=KR=Ol=null,Jd=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return bF&&e.locale!=="ko"?null:e.data;default:return null}}var Bte={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 y6(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Bte[t.type]:e==="textarea"}function wF(t,e,r,n){Kd?df?df.push(n):df=[n]:Kd=n,e=Xx(e,"onChange"),0<e.length&&(r=new Nw("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var jm=null,Ym=null;function Fte(t){h7(t,0)}function Bw(t){var e=pm(t);if(dF(e))return t}function x6(t,e){if(t==="change")return e}var _F=!1;if(Ts){var ZA;if(Ts){var KA="oninput"in document;if(!KA){var w6=document.createElement("div");w6.setAttribute("oninput","return;"),KA=typeof w6.oninput=="function"}ZA=KA}else ZA=!1;_F=ZA&&(!document.documentMode||9<document.documentMode)}function _6(){jm&&(jm.detachEvent("onpropertychange",kF),Ym=jm=null)}function kF(t){if(t.propertyName==="value"&&Bw(Ym)){var e=[];wF(e,Ym,t,ZR(t)),mF(Fte,e)}}function Hte(t,e,r){t==="focusin"?(_6(),jm=e,Ym=r,jm.attachEvent("onpropertychange",kF)):t==="focusout"&&_6()}function Ute(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Bw(Ym)}function Vte(t,e){if(t==="click")return Bw(e)}function qte(t,e){if(t==="input"||t==="change")return Bw(e)}function Yte(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Go=typeof Object.is=="function"?Object.is:Yte;function Wm(t,e){if(Go(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!OE.call(e,o)||!Go(t[o],e[o]))return!1}return!0}function k6(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function j6(t,e){var r=k6(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=k6(r)}}function jF(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?jF(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function SF(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ex(t.document);e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Ex(t.document)}return e}function e4(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Wte=Ts&&"documentMode"in document&&11>=document.documentMode,Qd=null,ME=null,Sm=null,IE=!1;function S6(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;IE||Qd==null||Qd!==Ex(n)||(n=Qd,"selectionStart"in n&&e4(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Sm&&Wm(Sm,n)||(Sm=n,n=Xx(ME,"onSelect"),0<n.length&&(e=new Nw("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=Qd)))}function Tc(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var ef={animationend:Tc("Animation","AnimationEnd"),animationiteration:Tc("Animation","AnimationIteration"),animationstart:Tc("Animation","AnimationStart"),transitionrun:Tc("Transition","TransitionRun"),transitionstart:Tc("Transition","TransitionStart"),transitioncancel:Tc("Transition","TransitionCancel"),transitionend:Tc("Transition","TransitionEnd")},JA={},CF={};Ts&&(CF=document.createElement("div").style,"AnimationEvent"in window||(delete ef.animationend.animation,delete ef.animationiteration.animation,delete ef.animationstart.animation),"TransitionEvent"in window||delete ef.transitionend.transition);function Cu(t){if(JA[t])return JA[t];if(!ef[t])return t;var e=ef[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in CF)return JA[t]=e[r];return t}var AF=Cu("animationend"),OF=Cu("animationiteration"),EF=Cu("animationstart"),Xte=Cu("transitionrun"),Gte=Cu("transitionstart"),$te=Cu("transitioncancel"),TF=Cu("transitionend"),RF=new Map,LE="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");LE.push("scrollEnd");function oa(t,e){RF.set(t,e),ju(e,[t])}var C6=new WeakMap;function _i(t,e){if(typeof t=="object"&&t!==null){var r=C6.get(t);return r!==void 0?r:(e={value:t,source:e,stack:u6(e)},C6.set(t,e),e)}return{value:t,source:e,stack:u6(e)}}var pi=[],tf=0,t4=0;function Fw(){for(var t=tf,e=t4=tf=0;e<t;){var r=pi[e];pi[e++]=null;var n=pi[e];pi[e++]=null;var o=pi[e];pi[e++]=null;var a=pi[e];if(pi[e++]=null,n!==null&&o!==null){var f=n.pending;f===null?o.next=o:(o.next=f.next,f.next=o),n.pending=o}a!==0&&PF(r,o,a)}}function Hw(t,e,r,n){pi[tf++]=t,pi[tf++]=e,pi[tf++]=r,pi[tf++]=n,t4|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function r4(t,e,r,n){return Hw(t,e,r,n),Tx(t)}function th(t,e){return Hw(t,null,null,e),Tx(t)}function PF(t,e,r){t.lanes|=r;var n=t.alternate;n!==null&&(n.lanes|=r);for(var o=!1,a=t.return;a!==null;)a.childLanes|=r,n=a.alternate,n!==null&&(n.childLanes|=r),a.tag===22&&(t=a.stateNode,t===null||t._visibility&1||(o=!0)),t=a,a=a.return;return t.tag===3?(a=t.stateNode,o&&e!==null&&(o=31-Ho(r),t=a.hiddenUpdates,n=t[o],n===null?t[o]=[e]:n.push(e),e.lane=r|536870912),a):null}function Tx(t){if(50<Im)throw Im=0,nT=null,Error(we(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var rf={};function Zte(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bo(t,e,r,n){return new Zte(t,e,r,n)}function n4(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Cs(t,e){var r=t.alternate;return r===null?(r=Bo(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&65011712,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r.refCleanup=t.refCleanup,r}function zF(t,e){t.flags&=65011714;var r=t.alternate;return r===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=r.childLanes,t.lanes=r.lanes,t.child=r.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=r.memoizedProps,t.memoizedState=r.memoizedState,t.updateQueue=r.updateQueue,t.type=r.type,e=r.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function W0(t,e,r,n,o,a){var f=0;if(n=t,typeof t=="function")n4(t)&&(f=1);else if(typeof t=="string")f=Jre(t,r,za.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case jE:return t=Bo(31,r,e,o),t.elementType=jE,t.lanes=a,t;case Gd:return eu(r.children,o,a,e);case JB:f=8,o|=24;break;case wE:return t=Bo(12,r,e,o|2),t.elementType=wE,t.lanes=a,t;case _E:return t=Bo(13,r,e,o),t.elementType=_E,t.lanes=a,t;case kE:return t=Bo(19,r,e,o),t.elementType=kE,t.lanes=a,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Fee:case xs:f=10;break e;case QB:f=9;break e;case VR:f=11;break e;case qR:f=14;break e;case fl:f=16,n=null;break e}f=29,r=Error(we(130,t===null?"null":typeof t,"")),n=null}return e=Bo(f,r,e,o),e.elementType=t,e.type=n,e.lanes=a,e}function eu(t,e,r,n){return t=Bo(7,t,n,e),t.lanes=r,t}function QA(t,e,r){return t=Bo(6,t,null,e),t.lanes=r,t}function eO(t,e,r){return e=Bo(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var nf=[],of=0,Rx=null,Px=0,bi=[],yi=0,tu=null,ws=1,_s="";function zc(t,e){nf[of++]=Px,nf[of++]=Rx,Rx=t,Px=e}function MF(t,e,r){bi[yi++]=ws,bi[yi++]=_s,bi[yi++]=tu,tu=t;var n=ws;t=_s;var o=32-Ho(n)-1;n&=~(1<<o),r+=1;var a=32-Ho(e)+o;if(30<a){var f=o-o%5;a=(n&(1<<f)-1).toString(32),n>>=f,o-=f,ws=1<<32-Ho(e)+o|r<<o|n,_s=a+t}else ws=1<<a|r<<o|n,_s=t}function o4(t){t.return!==null&&(zc(t,1),MF(t,1,0))}function i4(t){for(;t===Rx;)Rx=nf[--of],nf[of]=null,Px=nf[--of],nf[of]=null;for(;t===tu;)tu=bi[--yi],bi[yi]=null,_s=bi[--yi],bi[yi]=null,ws=bi[--yi],bi[yi]=null}var no=null,Lr=null,qt=!1,ru=null,Aa=!1,NE=Error(we(519));function uu(t){var e=Error(we(418,""));throw Xm(_i(e,t)),NE}function A6(t){var e=t.stateNode,r=t.type,n=t.memoizedProps;switch(e[Gn]=t,e[Oo]=n,r){case"dialog":kt("cancel",e),kt("close",e);break;case"iframe":case"object":case"embed":kt("load",e);break;case"video":case"audio":for(r=0;r<Zm.length;r++)kt(Zm[r],e);break;case"source":kt("error",e);break;case"img":case"image":case"link":kt("error",e),kt("load",e);break;case"details":kt("toggle",e);break;case"input":kt("invalid",e),fF(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0),Ox(e);break;case"select":kt("invalid",e);break;case"textarea":kt("invalid",e),pF(e,n.value,n.defaultValue,n.children),Ox(e)}r=n.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||e.textContent===""+r||n.suppressHydrationWarning===!0||g7(e.textContent,r)?(n.popover!=null&&(kt("beforetoggle",e),kt("toggle",e)),n.onScroll!=null&&kt("scroll",e),n.onScrollEnd!=null&&kt("scrollend",e),n.onClick!=null&&(e.onclick=$w),e=!0):e=!1,e||uu(t)}function O6(t){for(no=t.return;no;)switch(no.tag){case 5:case 13:Aa=!1;return;case 27:case 3:Aa=!0;return;default:no=no.return}}function Qg(t){if(t!==no)return!1;if(!qt)return O6(t),qt=!0,!1;var e=t.tag,r;if((r=e!==3&&e!==27)&&((r=e===5)&&(r=t.type,r=!(r!=="form"&&r!=="button")||cT(t.type,t.memoizedProps)),r=!r),r&&Lr&&uu(t),O6(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(we(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(r=t.data,r==="/$"){if(e===0){Lr=Qi(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++;t=t.nextSibling}Lr=null}}else e===27?(e=Lr,Jl(t.type)?(t=fT,fT=null,Lr=t):Lr=e):Lr=no?Qi(t.stateNode.nextSibling):null;return!0}function Hv(){Lr=no=null,qt=!1}function E6(){var t=ru;return t!==null&&(wo===null?wo=t:wo.push.apply(wo,t),ru=null),t}function Xm(t){ru===null?ru=[t]:ru.push(t)}var DE=Fa(null),Au=null,ks=null;function pl(t,e,r){_r(DE,e._currentValue),e._currentValue=r}function As(t){t._currentValue=DE.current,xn(DE)}function BE(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function FE(t,e,r,n){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){var f=o.child;a=a.firstContext;e:for(;a!==null;){var p=a;a=o;for(var m=0;m<e.length;m++)if(p.context===e[m]){a.lanes|=r,p=a.alternate,p!==null&&(p.lanes|=r),BE(a.return,r,t),n||(f=null);break e}a=p.next}}else if(o.tag===18){if(f=o.return,f===null)throw Error(we(341));f.lanes|=r,a=f.alternate,a!==null&&(a.lanes|=r),BE(f,r,t),f=null}else f=o.child;if(f!==null)f.return=o;else for(f=o;f!==null;){if(f===t){f=null;break}if(o=f.sibling,o!==null){o.return=f.return,f=o;break}f=f.return}o=f}}function Uv(t,e,r,n){t=null;for(var o=e,a=!1;o!==null;){if(!a){if(o.flags&524288)a=!0;else if(o.flags&262144)break}if(o.tag===10){var f=o.alternate;if(f===null)throw Error(we(387));if(f=f.memoizedProps,f!==null){var p=o.type;Go(o.pendingProps.value,f.value)||(t!==null?t.push(p):t=[p])}}else if(o===jx.current){if(f=o.alternate,f===null)throw Error(we(387));f.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(Qm):t=[Qm])}o=o.return}t!==null&&FE(e,t,r,n),e.flags|=262144}function zx(t){for(t=t.firstContext;t!==null;){if(!Go(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function du(t){Au=t,ks=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function $n(t){return IF(Au,t)}function u0(t,e){return Au===null&&du(t),IF(t,e)}function IF(t,e){var r=e._currentValue;if(e={context:e,memoizedValue:r,next:null},ks===null){if(t===null)throw Error(we(308));ks=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ks=ks.next=e;return r}var Kte=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(r,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(r){return r()})}},Jte=cn.unstable_scheduleCallback,Qte=cn.unstable_NormalPriority,an={$$typeof:xs,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function a4(){return{controller:new Kte,data:new Map,refCount:0}}function Vv(t){t.refCount--,t.refCount===0&&Jte(Qte,function(){t.controller.abort()})}var Cm=null,HE=0,Df=0,ff=null;function ere(t,e){if(Cm===null){var r=Cm=[];HE=0,Df=E4(),ff={status:"pending",value:void 0,then:function(n){r.push(n)}}}return HE++,e.then(T6,T6),e}function T6(){if(--HE===0&&Cm!==null){ff!==null&&(ff.status="fulfilled");var t=Cm;Cm=null,Df=0,ff=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function tre(t,e){var r=[],n={status:"pending",value:null,reason:null,then:function(o){r.push(o)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var o=0;o<r.length;o++)(0,r[o])(e)},function(o){for(n.status="rejected",n.reason=o,o=0;o<r.length;o++)(0,r[o])(void 0)}),n}var R6=lt.S;lt.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&ere(t,e),R6!==null&&R6(t,e)};var nu=Fa(null);function s4(){var t=nu.current;return t!==null?t:hr.pooledCache}function X0(t,e){e===null?_r(nu,nu.current):_r(nu,e.pool)}function LF(){var t=s4();return t===null?null:{parent:an._currentValue,pool:t}}var qv=Error(we(460)),NF=Error(we(474)),Uw=Error(we(542)),UE={then:function(){}};function P6(t){return t=t.status,t==="fulfilled"||t==="rejected"}function d0(){}function DF(t,e,r){switch(r=t[r],r===void 0?t.push(e):r!==e&&(e.then(d0,d0),e=r),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,M6(t),t;default:if(typeof e.status=="string")e.then(d0,d0);else{if(t=hr,t!==null&&100<t.shellSuspendCounter)throw Error(we(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=n}},function(n){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,M6(t),t}throw Am=e,qv}}var Am=null;function z6(){if(Am===null)throw Error(we(459));var t=Am;return Am=null,t}function M6(t){if(t===qv||t===Uw)throw Error(we(483))}var hl=!1;function l4(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function VE(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Pl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function zl(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,Qt&2){var o=n.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),n.pending=e,e=Tx(t),PF(t,null,r),e}return Hw(t,n,e,r),Tx(t)}function Om(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,aF(t,r)}}function tO(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var f={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};a===null?o=a=f:a=a.next=f,r=r.next}while(r!==null);a===null?o=a=e:a=a.next=e}else o=a=e;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,callbacks:n.callbacks},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}var qE=!1;function Em(){if(qE){var t=ff;if(t!==null)throw t}}function Tm(t,e,r,n){qE=!1;var o=t.updateQueue;hl=!1;var a=o.firstBaseUpdate,f=o.lastBaseUpdate,p=o.shared.pending;if(p!==null){o.shared.pending=null;var m=p,v=m.next;m.next=null,f===null?a=v:f.next=v,f=m;var y=t.alternate;y!==null&&(y=y.updateQueue,p=y.lastBaseUpdate,p!==f&&(p===null?y.firstBaseUpdate=v:p.next=v,y.lastBaseUpdate=m))}if(a!==null){var x=o.baseState;f=0,y=v=m=null,p=a;do{var k=p.lane&-536870913,S=k!==p.lane;if(S?(Rt&k)===k:(n&k)===k){k!==0&&k===Df&&(qE=!0),y!==null&&(y=y.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var O=t,C=p;k=e;var R=r;switch(C.tag){case 1:if(O=C.payload,typeof O=="function"){x=O.call(R,x,k);break e}x=O;break e;case 3:O.flags=O.flags&-65537|128;case 0:if(O=C.payload,k=typeof O=="function"?O.call(R,x,k):O,k==null)break e;x=yr({},x,k);break e;case 2:hl=!0}}k=p.callback,k!==null&&(t.flags|=64,S&&(t.flags|=8192),S=o.callbacks,S===null?o.callbacks=[k]:S.push(k))}else S={lane:k,tag:p.tag,payload:p.payload,callback:p.callback,next:null},y===null?(v=y=S,m=x):y=y.next=S,f|=k;if(p=p.next,p===null){if(p=o.shared.pending,p===null)break;S=p,p=S.next,S.next=null,o.lastBaseUpdate=S,o.shared.pending=null}}while(!0);y===null&&(m=x),o.baseState=m,o.firstBaseUpdate=v,o.lastBaseUpdate=y,a===null&&(o.shared.lanes=0),Vl|=f,t.lanes=f,t.memoizedState=x}}function BF(t,e){if(typeof t!="function")throw Error(we(191,t));t.call(e)}function FF(t,e){var r=t.callbacks;if(r!==null)for(t.callbacks=null,t=0;t<r.length;t++)BF(r[t],e)}var Bf=Fa(null),Mx=Fa(0);function I6(t,e){t=zs,_r(Mx,t),_r(Bf,e),zs=t|e.baseLanes}function YE(){_r(Mx,zs),_r(Bf,Bf.current)}function c4(){zs=Mx.current,xn(Bf),xn(Mx)}var Hl=0,wt=null,or=null,Kr=null,Ix=!1,hf=!1,fu=!1,Lx=0,Gm=0,pf=null,rre=0;function qr(){throw Error(we(321))}function u4(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!Go(t[r],e[r]))return!1;return!0}function d4(t,e,r,n,o,a){return Hl=a,wt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,lt.H=t===null||t.memoizedState===null?vH:bH,fu=!1,a=r(n,o),fu=!1,hf&&(a=UF(e,r,n,o)),HF(t),a}function HF(t){lt.H=Nx;var e=or!==null&&or.next!==null;if(Hl=0,Kr=or=wt=null,Ix=!1,Gm=0,pf=null,e)throw Error(we(300));t===null||yn||(t=t.dependencies,t!==null&&zx(t)&&(yn=!0))}function UF(t,e,r,n){wt=t;var o=0;do{if(hf&&(pf=null),Gm=0,hf=!1,25<=o)throw Error(we(301));if(o+=1,Kr=or=null,t.updateQueue!=null){var a=t.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}lt.H=cre,a=e(r,n)}while(hf);return a}function nre(){var t=lt.H,e=t.useState()[0];return e=typeof e.then=="function"?Yv(e):e,t=t.useState()[0],(or!==null?or.memoizedState:null)!==t&&(wt.flags|=1024),e}function f4(){var t=Lx!==0;return Lx=0,t}function h4(t,e,r){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r}function p4(t){if(Ix){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ix=!1}Hl=0,Kr=or=wt=null,hf=!1,Gm=Lx=0,pf=null}function bo(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kr===null?wt.memoizedState=Kr=t:Kr=Kr.next=t,Kr}function Qr(){if(or===null){var t=wt.alternate;t=t!==null?t.memoizedState:null}else t=or.next;var e=Kr===null?wt.memoizedState:Kr.next;if(e!==null)Kr=e,or=t;else{if(t===null)throw wt.alternate===null?Error(we(467)):Error(we(310));or=t,t={memoizedState:or.memoizedState,baseState:or.baseState,baseQueue:or.baseQueue,queue:or.queue,next:null},Kr===null?wt.memoizedState=Kr=t:Kr=Kr.next=t}return Kr}function g4(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yv(t){var e=Gm;return Gm+=1,pf===null&&(pf=[]),t=DF(pf,t,e),e=wt,(Kr===null?e.memoizedState:Kr.next)===null&&(e=e.alternate,lt.H=e===null||e.memoizedState===null?vH:bH),t}function Vw(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Yv(t);if(t.$$typeof===xs)return $n(t)}throw Error(we(438,String(t)))}function m4(t){var e=null,r=wt.updateQueue;if(r!==null&&(e=r.memoCache),e==null){var n=wt.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),r===null&&(r=g4(),wt.updateQueue=r),r.memoCache=e,r=e.data[e.index],r===void 0)for(r=e.data[e.index]=Array(t),n=0;n<t;n++)r[n]=Hee;return e.index++,r}function Rs(t,e){return typeof e=="function"?e(t):e}function G0(t){var e=Qr();return v4(e,or,t)}function v4(t,e,r){var n=t.queue;if(n===null)throw Error(we(311));n.lastRenderedReducer=r;var o=t.baseQueue,a=n.pending;if(a!==null){if(o!==null){var f=o.next;o.next=a.next,a.next=f}e.baseQueue=o=a,n.pending=null}if(a=t.baseState,o===null)t.memoizedState=a;else{e=o.next;var p=f=null,m=null,v=e,y=!1;do{var x=v.lane&-536870913;if(x!==v.lane?(Rt&x)===x:(Hl&x)===x){var k=v.revertLane;if(k===0)m!==null&&(m=m.next={lane:0,revertLane:0,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null}),x===Df&&(y=!0);else if((Hl&k)===k){v=v.next,k===Df&&(y=!0);continue}else x={lane:0,revertLane:v.revertLane,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},m===null?(p=m=x,f=a):m=m.next=x,wt.lanes|=k,Vl|=k;x=v.action,fu&&r(a,x),a=v.hasEagerState?v.eagerState:r(a,x)}else k={lane:x,revertLane:v.revertLane,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},m===null?(p=m=k,f=a):m=m.next=k,wt.lanes|=x,Vl|=x;v=v.next}while(v!==null&&v!==e);if(m===null?f=a:m.next=p,!Go(a,t.memoizedState)&&(yn=!0,y&&(r=ff,r!==null)))throw r;t.memoizedState=a,t.baseState=f,t.baseQueue=m,n.lastRenderedState=a}return o===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function rO(t){var e=Qr(),r=e.queue;if(r===null)throw Error(we(311));r.lastRenderedReducer=t;var n=r.dispatch,o=r.pending,a=e.memoizedState;if(o!==null){r.pending=null;var f=o=o.next;do a=t(a,f.action),f=f.next;while(f!==o);Go(a,e.memoizedState)||(yn=!0),e.memoizedState=a,e.baseQueue===null&&(e.baseState=a),r.lastRenderedState=a}return[a,n]}function VF(t,e,r){var n=wt,o=Qr(),a=qt;if(a){if(r===void 0)throw Error(we(407));r=r()}else r=e();var f=!Go((or||o).memoizedState,r);f&&(o.memoizedState=r,yn=!0),o=o.queue;var p=WF.bind(null,n,o,t);if(Wv(2048,8,p,[t]),o.getSnapshot!==e||f||Kr!==null&&Kr.memoizedState.tag&1){if(n.flags|=2048,Ff(9,qw(),YF.bind(null,n,o,r,e),null),hr===null)throw Error(we(349));a||Hl&124||qF(n,e,r)}return r}function qF(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=wt.updateQueue,e===null?(e=g4(),wt.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function YF(t,e,r,n){e.value=r,e.getSnapshot=n,XF(e)&&GF(t)}function WF(t,e,r){return r(function(){XF(e)&&GF(t)})}function XF(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!Go(t,r)}catch{return!0}}function GF(t){var e=th(t,2);e!==null&&Vo(e,t,2)}function WE(t){var e=bo();if(typeof t=="function"){var r=t;if(t=r(),fu){Al(!0);try{r()}finally{Al(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rs,lastRenderedState:t},e}function $F(t,e,r,n){return t.baseState=r,v4(t,or,typeof n=="function"?n:Rs)}function ore(t,e,r,n,o){if(Yw(t))throw Error(we(485));if(t=e.action,t!==null){var a={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){a.listeners.push(f)}};lt.T!==null?r(!0):a.isTransition=!1,n(a),r=e.pending,r===null?(a.next=e.pending=a,ZF(e,a)):(a.next=r.next,e.pending=r.next=a)}}function ZF(t,e){var r=e.action,n=e.payload,o=t.state;if(e.isTransition){var a=lt.T,f={};lt.T=f;try{var p=r(o,n),m=lt.S;m!==null&&m(f,p),L6(t,e,p)}catch(v){XE(t,e,v)}finally{lt.T=a}}else try{a=r(o,n),L6(t,e,a)}catch(v){XE(t,e,v)}}function L6(t,e,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(n){N6(t,e,n)},function(n){return XE(t,e,n)}):N6(t,e,r)}function N6(t,e,r){e.status="fulfilled",e.value=r,KF(e),t.state=r,e=t.pending,e!==null&&(r=e.next,r===e?t.pending=null:(r=r.next,e.next=r,ZF(t,r)))}function XE(t,e,r){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=r,KF(e),e=e.next;while(e!==n)}t.action=null}function KF(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function JF(t,e){return e}function D6(t,e){if(qt){var r=hr.formState;if(r!==null){e:{var n=wt;if(qt){if(Lr){t:{for(var o=Lr,a=Aa;o.nodeType!==8;){if(!a){o=null;break t}if(o=Qi(o.nextSibling),o===null){o=null;break t}}a=o.data,o=a==="F!"||a==="F"?o:null}if(o){Lr=Qi(o.nextSibling),n=o.data==="F!";break e}}uu(n)}n=!1}n&&(e=r[0])}}return r=bo(),r.memoizedState=r.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:JF,lastRenderedState:e},r.queue=n,r=pH.bind(null,wt,n),n.dispatch=r,n=WE(!1),a=w4.bind(null,wt,!1,n.queue),n=bo(),o={state:e,dispatch:null,action:t,pending:null},n.queue=o,r=ore.bind(null,wt,o,a,r),o.dispatch=r,n.memoizedState=t,[e,r,!1]}function B6(t){var e=Qr();return QF(e,or,t)}function QF(t,e,r){if(e=v4(t,e,JF)[0],t=G0(Rs)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=Yv(e)}catch(f){throw f===qv?Uw:f}else n=e;e=Qr();var o=e.queue,a=o.dispatch;return r!==e.memoizedState&&(wt.flags|=2048,Ff(9,qw(),ire.bind(null,o,r),null)),[n,a,t]}function ire(t,e){t.action=e}function F6(t){var e=Qr(),r=or;if(r!==null)return QF(e,r,t);Qr(),e=e.memoizedState,r=Qr();var n=r.queue.dispatch;return r.memoizedState=t,[e,n,!1]}function Ff(t,e,r,n){return t={tag:t,create:r,deps:n,inst:e,next:null},e=wt.updateQueue,e===null&&(e=g4(),wt.updateQueue=e),r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t),t}function qw(){return{destroy:void 0,resource:void 0}}function eH(){return Qr().memoizedState}function $0(t,e,r,n){var o=bo();n=n===void 0?null:n,wt.flags|=t,o.memoizedState=Ff(1|e,qw(),r,n)}function Wv(t,e,r,n){var o=Qr();n=n===void 0?null:n;var a=o.memoizedState.inst;or!==null&&n!==null&&u4(n,or.memoizedState.deps)?o.memoizedState=Ff(e,a,r,n):(wt.flags|=t,o.memoizedState=Ff(1|e,a,r,n))}function H6(t,e){$0(8390656,8,t,e)}function tH(t,e){Wv(2048,8,t,e)}function rH(t,e){return Wv(4,2,t,e)}function nH(t,e){return Wv(4,4,t,e)}function oH(t,e){if(typeof e=="function"){t=t();var r=e(t);return function(){typeof r=="function"?r():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function iH(t,e,r){r=r!=null?r.concat([t]):null,Wv(4,4,oH.bind(null,e,t),r)}function b4(){}function aH(t,e){var r=Qr();e=e===void 0?null:e;var n=r.memoizedState;return e!==null&&u4(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function sH(t,e){var r=Qr();e=e===void 0?null:e;var n=r.memoizedState;if(e!==null&&u4(e,n[1]))return n[0];if(n=t(),fu){Al(!0);try{t()}finally{Al(!1)}}return r.memoizedState=[n,e],n}function y4(t,e,r){return r===void 0||Hl&1073741824?t.memoizedState=e:(t.memoizedState=r,t=KH(),wt.lanes|=t,Vl|=t,r)}function lH(t,e,r,n){return Go(r,e)?r:Bf.current!==null?(t=y4(t,r,n),Go(t,e)||(yn=!0),t):Hl&42?(t=KH(),wt.lanes|=t,Vl|=t,e):(yn=!0,t.memoizedState=r)}function cH(t,e,r,n,o){var a=Yt.p;Yt.p=a!==0&&8>a?a:8;var f=lt.T,p={};lt.T=p,w4(t,!1,e,r);try{var m=o(),v=lt.S;if(v!==null&&v(p,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var y=tre(m,n);Rm(t,e,y,Uo(t))}else Rm(t,e,n,Uo(t))}catch(x){Rm(t,e,{then:function(){},status:"rejected",reason:x},Uo())}finally{Yt.p=a,lt.T=f}}function are(){}function GE(t,e,r,n){if(t.tag!==5)throw Error(we(476));var o=uH(t).queue;cH(t,o,e,Qc,r===null?are:function(){return dH(t),r(n)})}function uH(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Qc,baseState:Qc,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rs,lastRenderedState:Qc},next:null};var r={};return e.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rs,lastRenderedState:r},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function dH(t){var e=uH(t).next.queue;Rm(t,e,{},Uo())}function x4(){return $n(Qm)}function fH(){return Qr().memoizedState}function hH(){return Qr().memoizedState}function sre(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var r=Uo();t=Pl(r);var n=zl(e,t,r);n!==null&&(Vo(n,e,r),Om(n,e,r)),e={cache:a4()},t.payload=e;return}e=e.return}}function lre(t,e,r){var n=Uo();r={lane:n,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},Yw(t)?gH(e,r):(r=r4(t,e,r,n),r!==null&&(Vo(r,t,n),mH(r,e,n)))}function pH(t,e,r){var n=Uo();Rm(t,e,r,n)}function Rm(t,e,r,n){var o={lane:n,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(Yw(t))gH(e,o);else{var a=t.alternate;if(t.lanes===0&&(a===null||a.lanes===0)&&(a=e.lastRenderedReducer,a!==null))try{var f=e.lastRenderedState,p=a(f,r);if(o.hasEagerState=!0,o.eagerState=p,Go(p,f))return Hw(t,e,o,0),hr===null&&Fw(),!1}catch{}finally{}if(r=r4(t,e,o,n),r!==null)return Vo(r,t,n),mH(r,e,n),!0}return!1}function w4(t,e,r,n){if(n={lane:2,revertLane:E4(),action:n,hasEagerState:!1,eagerState:null,next:null},Yw(t)){if(e)throw Error(we(479))}else e=r4(t,r,n,2),e!==null&&Vo(e,t,2)}function Yw(t){var e=t.alternate;return t===wt||e!==null&&e===wt}function gH(t,e){hf=Ix=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function mH(t,e,r){if(r&4194048){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,aF(t,r)}}var Nx={readContext:$n,use:Vw,useCallback:qr,useContext:qr,useEffect:qr,useImperativeHandle:qr,useLayoutEffect:qr,useInsertionEffect:qr,useMemo:qr,useReducer:qr,useRef:qr,useState:qr,useDebugValue:qr,useDeferredValue:qr,useTransition:qr,useSyncExternalStore:qr,useId:qr,useHostTransitionStatus:qr,useFormState:qr,useActionState:qr,useOptimistic:qr,useMemoCache:qr,useCacheRefresh:qr},vH={readContext:$n,use:Vw,useCallback:function(t,e){return bo().memoizedState=[t,e===void 0?null:e],t},useContext:$n,useEffect:H6,useImperativeHandle:function(t,e,r){r=r!=null?r.concat([t]):null,$0(4194308,4,oH.bind(null,e,t),r)},useLayoutEffect:function(t,e){return $0(4194308,4,t,e)},useInsertionEffect:function(t,e){$0(4,2,t,e)},useMemo:function(t,e){var r=bo();e=e===void 0?null:e;var n=t();if(fu){Al(!0);try{t()}finally{Al(!1)}}return r.memoizedState=[n,e],n},useReducer:function(t,e,r){var n=bo();if(r!==void 0){var o=r(e);if(fu){Al(!0);try{r(e)}finally{Al(!1)}}}else o=e;return n.memoizedState=n.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},n.queue=t,t=t.dispatch=lre.bind(null,wt,t),[n.memoizedState,t]},useRef:function(t){var e=bo();return t={current:t},e.memoizedState=t},useState:function(t){t=WE(t);var e=t.queue,r=pH.bind(null,wt,e);return e.dispatch=r,[t.memoizedState,r]},useDebugValue:b4,useDeferredValue:function(t,e){var r=bo();return y4(r,t,e)},useTransition:function(){var t=WE(!1);return t=cH.bind(null,wt,t.queue,!0,!1),bo().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,r){var n=wt,o=bo();if(qt){if(r===void 0)throw Error(we(407));r=r()}else{if(r=e(),hr===null)throw Error(we(349));Rt&124||qF(n,e,r)}o.memoizedState=r;var a={value:r,getSnapshot:e};return o.queue=a,H6(WF.bind(null,n,a,t),[t]),n.flags|=2048,Ff(9,qw(),YF.bind(null,n,a,r,e),null),r},useId:function(){var t=bo(),e=hr.identifierPrefix;if(qt){var r=_s,n=ws;r=(n&~(1<<32-Ho(n)-1)).toString(32)+r,e="«"+e+"R"+r,r=Lx++,0<r&&(e+="H"+r.toString(32)),e+="»"}else r=rre++,e="«"+e+"r"+r.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:x4,useFormState:D6,useActionState:D6,useOptimistic:function(t){var e=bo();e.memoizedState=e.baseState=t;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=r,e=w4.bind(null,wt,!0,r),r.dispatch=e,[t,e]},useMemoCache:m4,useCacheRefresh:function(){return bo().memoizedState=sre.bind(null,wt)}},bH={readContext:$n,use:Vw,useCallback:aH,useContext:$n,useEffect:tH,useImperativeHandle:iH,useInsertionEffect:rH,useLayoutEffect:nH,useMemo:sH,useReducer:G0,useRef:eH,useState:function(){return G0(Rs)},useDebugValue:b4,useDeferredValue:function(t,e){var r=Qr();return lH(r,or.memoizedState,t,e)},useTransition:function(){var t=G0(Rs)[0],e=Qr().memoizedState;return[typeof t=="boolean"?t:Yv(t),e]},useSyncExternalStore:VF,useId:fH,useHostTransitionStatus:x4,useFormState:B6,useActionState:B6,useOptimistic:function(t,e){var r=Qr();return $F(r,or,t,e)},useMemoCache:m4,useCacheRefresh:hH},cre={readContext:$n,use:Vw,useCallback:aH,useContext:$n,useEffect:tH,useImperativeHandle:iH,useInsertionEffect:rH,useLayoutEffect:nH,useMemo:sH,useReducer:rO,useRef:eH,useState:function(){return rO(Rs)},useDebugValue:b4,useDeferredValue:function(t,e){var r=Qr();return or===null?y4(r,t,e):lH(r,or.memoizedState,t,e)},useTransition:function(){var t=rO(Rs)[0],e=Qr().memoizedState;return[typeof t=="boolean"?t:Yv(t),e]},useSyncExternalStore:VF,useId:fH,useHostTransitionStatus:x4,useFormState:F6,useActionState:F6,useOptimistic:function(t,e){var r=Qr();return or!==null?$F(r,or,t,e):(r.baseState=t,[t,r.queue.dispatch])},useMemoCache:m4,useCacheRefresh:hH},gf=null,$m=0;function f0(t){var e=$m;return $m+=1,gf===null&&(gf=[]),DF(gf,t,e)}function em(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function h0(t,e){throw e.$$typeof===Bee?Error(we(525)):(t=Object.prototype.toString.call(e),Error(we(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function U6(t){var e=t._init;return e(t._payload)}function yH(t){function e(E,P){if(t){var M=E.deletions;M===null?(E.deletions=[P],E.flags|=16):M.push(P)}}function r(E,P){if(!t)return null;for(;P!==null;)e(E,P),P=P.sibling;return null}function n(E){for(var P=new Map;E!==null;)E.key!==null?P.set(E.key,E):P.set(E.index,E),E=E.sibling;return P}function o(E,P){return E=Cs(E,P),E.index=0,E.sibling=null,E}function a(E,P,M){return E.index=M,t?(M=E.alternate,M!==null?(M=M.index,M<P?(E.flags|=67108866,P):M):(E.flags|=67108866,P)):(E.flags|=1048576,P)}function f(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function p(E,P,M,I){return P===null||P.tag!==6?(P=QA(M,E.mode,I),P.return=E,P):(P=o(P,M),P.return=E,P)}function m(E,P,M,I){var B=M.type;return B===Gd?y(E,P,M.props.children,I,M.key):P!==null&&(P.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===fl&&U6(B)===P.type)?(P=o(P,M.props),em(P,M),P.return=E,P):(P=W0(M.type,M.key,M.props,null,E.mode,I),em(P,M),P.return=E,P)}function v(E,P,M,I){return P===null||P.tag!==4||P.stateNode.containerInfo!==M.containerInfo||P.stateNode.implementation!==M.implementation?(P=eO(M,E.mode,I),P.return=E,P):(P=o(P,M.children||[]),P.return=E,P)}function y(E,P,M,I,B){return P===null||P.tag!==7?(P=eu(M,E.mode,I,B),P.return=E,P):(P=o(P,M),P.return=E,P)}function x(E,P,M){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return P=QA(""+P,E.mode,M),P.return=E,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case i0:return M=W0(P.type,P.key,P.props,null,E.mode,M),em(M,P),M.return=E,M;case fm:return P=eO(P,E.mode,M),P.return=E,P;case fl:var I=P._init;return P=I(P._payload),x(E,P,M)}if(hm(P)||Zg(P))return P=eu(P,E.mode,M,null),P.return=E,P;if(typeof P.then=="function")return x(E,f0(P),M);if(P.$$typeof===xs)return x(E,u0(E,P),M);h0(E,P)}return null}function k(E,P,M,I){var B=P!==null?P.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return B!==null?null:p(E,P,""+M,I);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case i0:return M.key===B?m(E,P,M,I):null;case fm:return M.key===B?v(E,P,M,I):null;case fl:return B=M._init,M=B(M._payload),k(E,P,M,I)}if(hm(M)||Zg(M))return B!==null?null:y(E,P,M,I,null);if(typeof M.then=="function")return k(E,P,f0(M),I);if(M.$$typeof===xs)return k(E,P,u0(E,M),I);h0(E,M)}return null}function S(E,P,M,I,B){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return E=E.get(M)||null,p(P,E,""+I,B);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case i0:return E=E.get(I.key===null?M:I.key)||null,m(P,E,I,B);case fm:return E=E.get(I.key===null?M:I.key)||null,v(P,E,I,B);case fl:var U=I._init;return I=U(I._payload),S(E,P,M,I,B)}if(hm(I)||Zg(I))return E=E.get(M)||null,y(P,E,I,B,null);if(typeof I.then=="function")return S(E,P,M,f0(I),B);if(I.$$typeof===xs)return S(E,P,M,u0(P,I),B);h0(P,I)}return null}function O(E,P,M,I){for(var B=null,U=null,H=P,V=P=0,W=null;H!==null&&V<M.length;V++){H.index>V?(W=H,H=null):W=H.sibling;var G=k(E,H,M[V],I);if(G===null){H===null&&(H=W);break}t&&H&&G.alternate===null&&e(E,H),P=a(G,P,V),U===null?B=G:U.sibling=G,U=G,H=W}if(V===M.length)return r(E,H),qt&&zc(E,V),B;if(H===null){for(;V<M.length;V++)H=x(E,M[V],I),H!==null&&(P=a(H,P,V),U===null?B=H:U.sibling=H,U=H);return qt&&zc(E,V),B}for(H=n(H);V<M.length;V++)W=S(H,E,V,M[V],I),W!==null&&(t&&W.alternate!==null&&H.delete(W.key===null?V:W.key),P=a(W,P,V),U===null?B=W:U.sibling=W,U=W);return t&&H.forEach(function(Z){return e(E,Z)}),qt&&zc(E,V),B}function C(E,P,M,I){if(M==null)throw Error(we(151));for(var B=null,U=null,H=P,V=P=0,W=null,G=M.next();H!==null&&!G.done;V++,G=M.next()){H.index>V?(W=H,H=null):W=H.sibling;var Z=k(E,H,G.value,I);if(Z===null){H===null&&(H=W);break}t&&H&&Z.alternate===null&&e(E,H),P=a(Z,P,V),U===null?B=Z:U.sibling=Z,U=Z,H=W}if(G.done)return r(E,H),qt&&zc(E,V),B;if(H===null){for(;!G.done;V++,G=M.next())G=x(E,G.value,I),G!==null&&(P=a(G,P,V),U===null?B=G:U.sibling=G,U=G);return qt&&zc(E,V),B}for(H=n(H);!G.done;V++,G=M.next())G=S(H,E,V,G.value,I),G!==null&&(t&&G.alternate!==null&&H.delete(G.key===null?V:G.key),P=a(G,P,V),U===null?B=G:U.sibling=G,U=G);return t&&H.forEach(function(K){return e(E,K)}),qt&&zc(E,V),B}function R(E,P,M,I){if(typeof M=="object"&&M!==null&&M.type===Gd&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case i0:e:{for(var B=M.key;P!==null;){if(P.key===B){if(B=M.type,B===Gd){if(P.tag===7){r(E,P.sibling),I=o(P,M.props.children),I.return=E,E=I;break e}}else if(P.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===fl&&U6(B)===P.type){r(E,P.sibling),I=o(P,M.props),em(I,M),I.return=E,E=I;break e}r(E,P);break}else e(E,P);P=P.sibling}M.type===Gd?(I=eu(M.props.children,E.mode,I,M.key),I.return=E,E=I):(I=W0(M.type,M.key,M.props,null,E.mode,I),em(I,M),I.return=E,E=I)}return f(E);case fm:e:{for(B=M.key;P!==null;){if(P.key===B)if(P.tag===4&&P.stateNode.containerInfo===M.containerInfo&&P.stateNode.implementation===M.implementation){r(E,P.sibling),I=o(P,M.children||[]),I.return=E,E=I;break e}else{r(E,P);break}else e(E,P);P=P.sibling}I=eO(M,E.mode,I),I.return=E,E=I}return f(E);case fl:return B=M._init,M=B(M._payload),R(E,P,M,I)}if(hm(M))return O(E,P,M,I);if(Zg(M)){if(B=Zg(M),typeof B!="function")throw Error(we(150));return M=B.call(M),C(E,P,M,I)}if(typeof M.then=="function")return R(E,P,f0(M),I);if(M.$$typeof===xs)return R(E,P,u0(E,M),I);h0(E,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,P!==null&&P.tag===6?(r(E,P.sibling),I=o(P,M),I.return=E,E=I):(r(E,P),I=QA(M,E.mode,I),I.return=E,E=I),f(E)):r(E,P)}return function(E,P,M,I){try{$m=0;var B=R(E,P,M,I);return gf=null,B}catch(H){if(H===qv||H===Uw)throw H;var U=Bo(29,H,null,E.mode);return U.lanes=I,U.return=E,U}finally{}}}var Hf=yH(!0),xH=yH(!1),Oi=Fa(null),Ia=null;function gl(t){var e=t.alternate;_r(sn,sn.current&1),_r(Oi,t),Ia===null&&(e===null||Bf.current!==null||e.memoizedState!==null)&&(Ia=t)}function wH(t){if(t.tag===22){if(_r(sn,sn.current),_r(Oi,t),Ia===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Ia=t)}}else ml()}function ml(){_r(sn,sn.current),_r(Oi,Oi.current)}function js(t){xn(Oi),Ia===t&&(Ia=null),xn(sn)}var sn=Fa(0);function Dx(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||dT(r)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function nO(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:yr({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var $E={enqueueSetState:function(t,e,r){t=t._reactInternals;var n=Uo(),o=Pl(n);o.payload=e,r!=null&&(o.callback=r),e=zl(t,o,n),e!==null&&(Vo(e,t,n),Om(e,t,n))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=Uo(),o=Pl(n);o.tag=1,o.payload=e,r!=null&&(o.callback=r),e=zl(t,o,n),e!==null&&(Vo(e,t,n),Om(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=Uo(),n=Pl(r);n.tag=2,e!=null&&(n.callback=e),e=zl(t,n,r),e!==null&&(Vo(e,t,r),Om(e,t,r))}};function V6(t,e,r,n,o,a,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,a,f):e.prototype&&e.prototype.isPureReactComponent?!Wm(r,n)||!Wm(o,a):!0}function q6(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&$E.enqueueReplaceState(e,e.state,null)}function hu(t,e){var r=e;if("ref"in e){r={};for(var n in e)n!=="ref"&&(r[n]=e[n])}if(t=t.defaultProps){r===e&&(r=yr({},r));for(var o in t)r[o]===void 0&&(r[o]=t[o])}return r}var Bx=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function _H(t){Bx(t)}function kH(t){console.error(t)}function jH(t){Bx(t)}function Fx(t,e){try{var r=t.onUncaughtError;r(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function Y6(t,e,r){try{var n=t.onCaughtError;n(r.value,{componentStack:r.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function ZE(t,e,r){return r=Pl(r),r.tag=3,r.payload={element:null},r.callback=function(){Fx(t,e)},r}function SH(t){return t=Pl(t),t.tag=3,t}function CH(t,e,r,n){var o=r.type.getDerivedStateFromError;if(typeof o=="function"){var a=n.value;t.payload=function(){return o(a)},t.callback=function(){Y6(e,r,n)}}var f=r.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Y6(e,r,n),typeof o!="function"&&(Ml===null?Ml=new Set([this]):Ml.add(this));var p=n.stack;this.componentDidCatch(n.value,{componentStack:p!==null?p:""})})}function ure(t,e,r,n,o){if(r.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=r.alternate,e!==null&&Uv(e,r,o,!0),r=Oi.current,r!==null){switch(r.tag){case 13:return Ia===null?oT():r.alternate===null&&Nr===0&&(Nr=3),r.flags&=-257,r.flags|=65536,r.lanes=o,n===UE?r.flags|=16384:(e=r.updateQueue,e===null?r.updateQueue=new Set([n]):e.add(n),pO(t,n,o)),!1;case 22:return r.flags|=65536,n===UE?r.flags|=16384:(e=r.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},r.updateQueue=e):(r=e.retryQueue,r===null?e.retryQueue=new Set([n]):r.add(n)),pO(t,n,o)),!1}throw Error(we(435,r.tag))}return pO(t,n,o),oT(),!1}if(qt)return e=Oi.current,e!==null?(!(e.flags&65536)&&(e.flags|=256),e.flags|=65536,e.lanes=o,n!==NE&&(t=Error(we(422),{cause:n}),Xm(_i(t,r)))):(n!==NE&&(e=Error(we(423),{cause:n}),Xm(_i(e,r))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,n=_i(n,r),o=ZE(t.stateNode,n,o),tO(t,o),Nr!==4&&(Nr=2)),!1;var a=Error(we(520),{cause:n});if(a=_i(a,r),Mm===null?Mm=[a]:Mm.push(a),Nr!==4&&(Nr=2),e===null)return!0;n=_i(n,r),r=e;do{switch(r.tag){case 3:return r.flags|=65536,t=o&-o,r.lanes|=t,t=ZE(r.stateNode,n,t),tO(r,t),!1;case 1:if(e=r.type,a=r.stateNode,(r.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(Ml===null||!Ml.has(a))))return r.flags|=65536,o&=-o,r.lanes|=o,o=SH(o),CH(o,t,r,n),tO(r,o),!1}r=r.return}while(r!==null);return!1}var AH=Error(we(461)),yn=!1;function An(t,e,r,n){e.child=t===null?xH(e,null,r,n):Hf(e,t.child,r,n)}function W6(t,e,r,n,o){r=r.render;var a=e.ref;if("ref"in n){var f={};for(var p in n)p!=="ref"&&(f[p]=n[p])}else f=n;return du(e),n=d4(t,e,r,f,a,o),p=f4(),t!==null&&!yn?(h4(t,e,o),Ps(t,e,o)):(qt&&p&&o4(e),e.flags|=1,An(t,e,n,o),e.child)}function X6(t,e,r,n,o){if(t===null){var a=r.type;return typeof a=="function"&&!n4(a)&&a.defaultProps===void 0&&r.compare===null?(e.tag=15,e.type=a,OH(t,e,a,n,o)):(t=W0(r.type,null,n,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(a=t.child,!_4(t,o)){var f=a.memoizedProps;if(r=r.compare,r=r!==null?r:Wm,r(f,n)&&t.ref===e.ref)return Ps(t,e,o)}return e.flags|=1,t=Cs(a,n),t.ref=e.ref,t.return=e,e.child=t}function OH(t,e,r,n,o){if(t!==null){var a=t.memoizedProps;if(Wm(a,n)&&t.ref===e.ref)if(yn=!1,e.pendingProps=n=a,_4(t,o))t.flags&131072&&(yn=!0);else return e.lanes=t.lanes,Ps(t,e,o)}return KE(t,e,r,n,o)}function EH(t,e,r){var n=e.pendingProps,o=n.children,a=t!==null?t.memoizedState:null;if(n.mode==="hidden"){if(e.flags&128){if(n=a!==null?a.baseLanes|r:r,t!==null){for(o=e.child=t.child,a=0;o!==null;)a=a|o.lanes|o.childLanes,o=o.sibling;e.childLanes=a&~n}else e.childLanes=0,e.child=null;return G6(t,e,n,r)}if(r&536870912)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&X0(e,a!==null?a.cachePool:null),a!==null?I6(e,a):YE(),wH(e);else return e.lanes=e.childLanes=536870912,G6(t,e,a!==null?a.baseLanes|r:r,r)}else a!==null?(X0(e,a.cachePool),I6(e,a),ml(),e.memoizedState=null):(t!==null&&X0(e,null),YE(),ml());return An(t,e,o,r),e.child}function G6(t,e,r,n){var o=s4();return o=o===null?null:{parent:an._currentValue,pool:o},e.memoizedState={baseLanes:r,cachePool:o},t!==null&&X0(e,null),YE(),wH(e),t!==null&&Uv(t,e,n,!0),null}function Z0(t,e){var r=e.ref;if(r===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(we(284));(t===null||t.ref!==r)&&(e.flags|=4194816)}}function KE(t,e,r,n,o){return du(e),r=d4(t,e,r,n,void 0,o),n=f4(),t!==null&&!yn?(h4(t,e,o),Ps(t,e,o)):(qt&&n&&o4(e),e.flags|=1,An(t,e,r,o),e.child)}function $6(t,e,r,n,o,a){return du(e),e.updateQueue=null,r=UF(e,n,r,o),HF(t),n=f4(),t!==null&&!yn?(h4(t,e,a),Ps(t,e,a)):(qt&&n&&o4(e),e.flags|=1,An(t,e,r,a),e.child)}function Z6(t,e,r,n,o){if(du(e),e.stateNode===null){var a=rf,f=r.contextType;typeof f=="object"&&f!==null&&(a=$n(f)),a=new r(n,a),e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=$E,e.stateNode=a,a._reactInternals=e,a=e.stateNode,a.props=n,a.state=e.memoizedState,a.refs={},l4(e),f=r.contextType,a.context=typeof f=="object"&&f!==null?$n(f):rf,a.state=e.memoizedState,f=r.getDerivedStateFromProps,typeof f=="function"&&(nO(e,r,f,n),a.state=e.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(f=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),f!==a.state&&$E.enqueueReplaceState(a,a.state,null),Tm(e,n,a,o),Em(),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){a=e.stateNode;var p=e.memoizedProps,m=hu(r,p);a.props=m;var v=a.context,y=r.contextType;f=rf,typeof y=="object"&&y!==null&&(f=$n(y));var x=r.getDerivedStateFromProps;y=typeof x=="function"||typeof a.getSnapshotBeforeUpdate=="function",p=e.pendingProps!==p,y||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(p||v!==f)&&q6(e,a,n,f),hl=!1;var k=e.memoizedState;a.state=k,Tm(e,n,a,o),Em(),v=e.memoizedState,p||k!==v||hl?(typeof x=="function"&&(nO(e,r,x,n),v=e.memoizedState),(m=hl||V6(e,r,m,n,k,v,f))?(y||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=v),a.props=n,a.state=v,a.context=f,n=m):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{a=e.stateNode,VE(t,e),f=e.memoizedProps,y=hu(r,f),a.props=y,x=e.pendingProps,k=a.context,v=r.contextType,m=rf,typeof v=="object"&&v!==null&&(m=$n(v)),p=r.getDerivedStateFromProps,(v=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(f!==x||k!==m)&&q6(e,a,n,m),hl=!1,k=e.memoizedState,a.state=k,Tm(e,n,a,o),Em();var S=e.memoizedState;f!==x||k!==S||hl||t!==null&&t.dependencies!==null&&zx(t.dependencies)?(typeof p=="function"&&(nO(e,r,p,n),S=e.memoizedState),(y=hl||V6(e,r,y,n,k,S,m)||t!==null&&t.dependencies!==null&&zx(t.dependencies))?(v||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,S,m),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,S,m)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||f===t.memoizedProps&&k===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&k===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=S),a.props=n,a.state=S,a.context=m,n=y):(typeof a.componentDidUpdate!="function"||f===t.memoizedProps&&k===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&k===t.memoizedState||(e.flags|=1024),n=!1)}return a=n,Z0(t,e),n=(e.flags&128)!==0,a||n?(a=e.stateNode,r=n&&typeof r.getDerivedStateFromError!="function"?null:a.render(),e.flags|=1,t!==null&&n?(e.child=Hf(e,t.child,null,o),e.child=Hf(e,null,r,o)):An(t,e,r,o),e.memoizedState=a.state,t=e.child):t=Ps(t,e,o),t}function K6(t,e,r,n){return Hv(),e.flags|=256,An(t,e,r,n),e.child}var oO={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function iO(t){return{baseLanes:t,cachePool:LF()}}function aO(t,e,r){return t=t!==null?t.childLanes&~r:0,e&&(t|=ki),t}function TH(t,e,r){var n=e.pendingProps,o=!1,a=(e.flags&128)!==0,f;if((f=a)||(f=t!==null&&t.memoizedState===null?!1:(sn.current&2)!==0),f&&(o=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(qt){if(o?gl(e):ml(),qt){var p=Lr,m;if(m=p){e:{for(m=p,p=Aa;m.nodeType!==8;){if(!p){p=null;break e}if(m=Qi(m.nextSibling),m===null){p=null;break e}}p=m}p!==null?(e.memoizedState={dehydrated:p,treeContext:tu!==null?{id:ws,overflow:_s}:null,retryLane:536870912,hydrationErrors:null},m=Bo(18,null,null,0),m.stateNode=p,m.return=e,e.child=m,no=e,Lr=null,m=!0):m=!1}m||uu(e)}if(p=e.memoizedState,p!==null&&(p=p.dehydrated,p!==null))return dT(p)?e.lanes=32:e.lanes=536870912,null;js(e)}return p=n.children,n=n.fallback,o?(ml(),o=e.mode,p=Hx({mode:"hidden",children:p},o),n=eu(n,o,r,null),p.return=e,n.return=e,p.sibling=n,e.child=p,o=e.child,o.memoizedState=iO(r),o.childLanes=aO(t,f,r),e.memoizedState=oO,n):(gl(e),JE(e,p))}if(m=t.memoizedState,m!==null&&(p=m.dehydrated,p!==null)){if(a)e.flags&256?(gl(e),e.flags&=-257,e=sO(t,e,r)):e.memoizedState!==null?(ml(),e.child=t.child,e.flags|=128,e=null):(ml(),o=n.fallback,p=e.mode,n=Hx({mode:"visible",children:n.children},p),o=eu(o,p,r,null),o.flags|=2,n.return=e,o.return=e,n.sibling=o,e.child=n,Hf(e,t.child,null,r),n=e.child,n.memoizedState=iO(r),n.childLanes=aO(t,f,r),e.memoizedState=oO,e=o);else if(gl(e),dT(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var v=f.dgst;f=v,n=Error(we(419)),n.stack="",n.digest=f,Xm({value:n,source:null,stack:null}),e=sO(t,e,r)}else if(yn||Uv(t,e,r,!1),f=(r&t.childLanes)!==0,yn||f){if(f=hr,f!==null&&(n=r&-r,n=n&42?1:WR(n),n=n&(f.suspendedLanes|r)?0:n,n!==0&&n!==m.retryLane))throw m.retryLane=n,th(t,n),Vo(f,t,n),AH;p.data==="$?"||oT(),e=sO(t,e,r)}else p.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,Lr=Qi(p.nextSibling),no=e,qt=!0,ru=null,Aa=!1,t!==null&&(bi[yi++]=ws,bi[yi++]=_s,bi[yi++]=tu,ws=t.id,_s=t.overflow,tu=e),e=JE(e,n.children),e.flags|=4096);return e}return o?(ml(),o=n.fallback,p=e.mode,m=t.child,v=m.sibling,n=Cs(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,v!==null?o=Cs(v,o):(o=eu(o,p,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,n=o,o=e.child,p=t.child.memoizedState,p===null?p=iO(r):(m=p.cachePool,m!==null?(v=an._currentValue,m=m.parent!==v?{parent:v,pool:v}:m):m=LF(),p={baseLanes:p.baseLanes|r,cachePool:m}),o.memoizedState=p,o.childLanes=aO(t,f,r),e.memoizedState=oO,n):(gl(e),r=t.child,t=r.sibling,r=Cs(r,{mode:"visible",children:n.children}),r.return=e,r.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=r,e.memoizedState=null,r)}function JE(t,e){return e=Hx({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Hx(t,e){return t=Bo(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function sO(t,e,r){return Hf(e,t.child,null,r),t=JE(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function J6(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),BE(t.return,e,r)}function lO(t,e,r,n,o){var a=t.memoizedState;a===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function RH(t,e,r){var n=e.pendingProps,o=n.revealOrder,a=n.tail;if(An(t,e,n.children,r),n=sn.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&J6(t,r,e);else if(t.tag===19)J6(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}switch(_r(sn,n),o){case"forwards":for(r=e.child,o=null;r!==null;)t=r.alternate,t!==null&&Dx(t)===null&&(o=r),r=r.sibling;r=o,r===null?(o=e.child,e.child=null):(o=r.sibling,r.sibling=null),lO(e,!1,o,r,a);break;case"backwards":for(r=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&Dx(t)===null){e.child=o;break}t=o.sibling,o.sibling=r,r=o,o=t}lO(e,!0,r,null,a);break;case"together":lO(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Ps(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),Vl|=e.lanes,!(r&e.childLanes))if(t!==null){if(Uv(t,e,r,!1),(r&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(we(153));if(e.child!==null){for(t=e.child,r=Cs(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Cs(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function _4(t,e){return t.lanes&e?!0:(t=t.dependencies,!!(t!==null&&zx(t)))}function dre(t,e,r){switch(e.tag){case 3:Sx(e,e.stateNode.containerInfo),pl(e,an,t.memoizedState.cache),Hv();break;case 27:case 5:AE(e);break;case 4:Sx(e,e.stateNode.containerInfo);break;case 10:pl(e,e.type,e.memoizedProps.value);break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(gl(e),e.flags|=128,null):r&e.child.childLanes?TH(t,e,r):(gl(e),t=Ps(t,e,r),t!==null?t.sibling:null);gl(e);break;case 19:var o=(t.flags&128)!==0;if(n=(r&e.childLanes)!==0,n||(Uv(t,e,r,!1),n=(r&e.childLanes)!==0),o){if(n)return RH(t,e,r);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),_r(sn,sn.current),n)break;return null;case 22:case 23:return e.lanes=0,EH(t,e,r);case 24:pl(e,an,t.memoizedState.cache)}return Ps(t,e,r)}function PH(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps)yn=!0;else{if(!_4(t,r)&&!(e.flags&128))return yn=!1,dre(t,e,r);yn=!!(t.flags&131072)}else yn=!1,qt&&e.flags&1048576&&MF(e,Px,e.index);switch(e.lanes=0,e.tag){case 16:e:{t=e.pendingProps;var n=e.elementType,o=n._init;if(n=o(n._payload),e.type=n,typeof n=="function")n4(n)?(t=hu(n,t),e.tag=1,e=Z6(null,e,n,t,r)):(e.tag=0,e=KE(null,e,n,t,r));else{if(n!=null){if(o=n.$$typeof,o===VR){e.tag=11,e=W6(null,e,n,t,r);break e}else if(o===qR){e.tag=14,e=X6(null,e,n,t,r);break e}}throw e=SE(n)||n,Error(we(306,e,""))}}return e;case 0:return KE(t,e,e.type,e.pendingProps,r);case 1:return n=e.type,o=hu(n,e.pendingProps),Z6(t,e,n,o,r);case 3:e:{if(Sx(e,e.stateNode.containerInfo),t===null)throw Error(we(387));n=e.pendingProps;var a=e.memoizedState;o=a.element,VE(t,e),Tm(e,n,null,r);var f=e.memoizedState;if(n=f.cache,pl(e,an,n),n!==a.cache&&FE(e,[an],r,!0),Em(),n=f.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=a,e.memoizedState=a,e.flags&256){e=K6(t,e,n,r);break e}else if(n!==o){o=_i(Error(we(424)),e),Xm(o),e=K6(t,e,n,r);break e}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Lr=Qi(t.firstChild),no=e,qt=!0,ru=null,Aa=!0,r=xH(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(Hv(),n===o){e=Ps(t,e,r);break e}An(t,e,n,r)}e=e.child}return e;case 26:return Z0(t,e),t===null?(r=gD(e.type,null,e.pendingProps,null))?e.memoizedState=r:qt||(r=e.type,t=e.pendingProps,n=Gx(Rl.current).createElement(r),n[Gn]=e,n[Oo]=t,zn(n,r,t),bn(n),e.stateNode=n):e.memoizedState=gD(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return AE(e),t===null&&qt&&(n=e.stateNode=b7(e.type,e.pendingProps,Rl.current),no=e,Aa=!0,o=Lr,Jl(e.type)?(fT=o,Lr=Qi(n.firstChild)):Lr=o),An(t,e,e.pendingProps.children,r),Z0(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&qt&&((o=n=Lr)&&(n=Bre(n,e.type,e.pendingProps,Aa),n!==null?(e.stateNode=n,no=e,Lr=Qi(n.firstChild),Aa=!1,o=!0):o=!1),o||uu(e)),AE(e),o=e.type,a=e.pendingProps,f=t!==null?t.memoizedProps:null,n=a.children,cT(o,a)?n=null:f!==null&&cT(o,f)&&(e.flags|=32),e.memoizedState!==null&&(o=d4(t,e,nre,null,null,r),Qm._currentValue=o),Z0(t,e),An(t,e,n,r),e.child;case 6:return t===null&&qt&&((t=r=Lr)&&(r=Fre(r,e.pendingProps,Aa),r!==null?(e.stateNode=r,no=e,Lr=null,t=!0):t=!1),t||uu(e)),null;case 13:return TH(t,e,r);case 4:return Sx(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Hf(e,null,n,r):An(t,e,n,r),e.child;case 11:return W6(t,e,e.type,e.pendingProps,r);case 7:return An(t,e,e.pendingProps,r),e.child;case 8:return An(t,e,e.pendingProps.children,r),e.child;case 12:return An(t,e,e.pendingProps.children,r),e.child;case 10:return n=e.pendingProps,pl(e,e.type,n.value),An(t,e,n.children,r),e.child;case 9:return o=e.type._context,n=e.pendingProps.children,du(e),o=$n(o),n=n(o),e.flags|=1,An(t,e,n,r),e.child;case 14:return X6(t,e,e.type,e.pendingProps,r);case 15:return OH(t,e,e.type,e.pendingProps,r);case 19:return RH(t,e,r);case 31:return n=e.pendingProps,r=e.mode,n={mode:n.mode,children:n.children},t===null?(r=Hx(n,r),r.ref=e.ref,e.child=r,r.return=e,e=r):(r=Cs(t.child,n),r.ref=e.ref,e.child=r,r.return=e,e=r),e;case 22:return EH(t,e,r);case 24:return du(e),n=$n(an),t===null?(o=s4(),o===null&&(o=hr,a=a4(),o.pooledCache=a,a.refCount++,a!==null&&(o.pooledCacheLanes|=r),o=a),e.memoizedState={parent:n,cache:o},l4(e),pl(e,an,o)):(t.lanes&r&&(VE(t,e),Tm(e,null,null,r),Em()),o=t.memoizedState,a=e.memoizedState,o.parent!==n?(o={parent:n,cache:n},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),pl(e,an,n)):(n=a.cache,pl(e,an,n),n!==o.cache&&FE(e,[an],r,!0))),An(t,e,e.pendingProps.children,r),e.child;case 29:throw e.pendingProps}throw Error(we(156,e.tag))}function us(t){t.flags|=4}function Q6(t,e){if(e.type!=="stylesheet"||e.state.loading&4)t.flags&=-16777217;else if(t.flags|=16777216,!w7(e)){if(e=Oi.current,e!==null&&((Rt&4194048)===Rt?Ia!==null:(Rt&62914560)!==Rt&&!(Rt&536870912)||e!==Ia))throw Am=UE,NF;t.flags|=8192}}function p0(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?oF():536870912,t.lanes|=e,Uf|=e)}function tm(t,e){if(!qt)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Er(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var o=t.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&65011712,n|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function fre(t,e,r){var n=e.pendingProps;switch(i4(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Er(e),null;case 1:return Er(e),null;case 3:return r=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),As(an),If(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Qg(e)?us(e):t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,E6())),Er(e),null;case 26:return r=e.memoizedState,t===null?(us(e),r!==null?(Er(e),Q6(e,r)):(Er(e),e.flags&=-16777217)):r?r!==t.memoizedState?(us(e),Er(e),Q6(e,r)):(Er(e),e.flags&=-16777217):(t.memoizedProps!==n&&us(e),Er(e),e.flags&=-16777217),null;case 27:Cx(e),r=Rl.current;var o=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==n&&us(e);else{if(!n){if(e.stateNode===null)throw Error(we(166));return Er(e),null}t=za.current,Qg(e)?A6(e):(t=b7(o,n,r),e.stateNode=t,us(e))}return Er(e),null;case 5:if(Cx(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&us(e);else{if(!n){if(e.stateNode===null)throw Error(we(166));return Er(e),null}if(t=za.current,Qg(e))A6(e);else{switch(o=Gx(Rl.current),t){case 1:t=o.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:t=o.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":t=o.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":t=o.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?t.multiple=!0:n.size&&(t.size=n.size);break;default:t=typeof n.is=="string"?o.createElement(r,{is:n.is}):o.createElement(r)}}t[Gn]=e,t[Oo]=n;e:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)t.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break e;for(;o.sibling===null;){if(o.return===null||o.return===e)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=t;e:switch(zn(t,r,n),r){case"button":case"input":case"select":case"textarea":t=!!n.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&us(e)}}return Er(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&us(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(we(166));if(t=Rl.current,Qg(e)){if(t=e.stateNode,r=e.memoizedProps,n=null,o=no,o!==null)switch(o.tag){case 27:case 5:n=o.memoizedProps}t[Gn]=e,t=!!(t.nodeValue===r||n!==null&&n.suppressHydrationWarning===!0||g7(t.nodeValue,r)),t||uu(e)}else t=Gx(t).createTextNode(n),t[Gn]=e,e.stateNode=t}return Er(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Qg(e),n!==null&&n.dehydrated!==null){if(t===null){if(!o)throw Error(we(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(we(317));o[Gn]=e}else Hv(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Er(e),o=!1}else o=E6(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(js(e),e):(js(e),null)}if(js(e),e.flags&128)return e.lanes=r,e;if(r=n!==null,t=t!==null&&t.memoizedState!==null,r){n=e.child,o=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(o=n.alternate.memoizedState.cachePool.pool);var a=null;n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),a!==o&&(n.flags|=2048)}return r!==t&&r&&(e.child.flags|=8192),p0(e,e.updateQueue),Er(e),null;case 4:return If(),t===null&&T4(e.stateNode.containerInfo),Er(e),null;case 10:return As(e.type),Er(e),null;case 19:if(xn(sn),o=e.memoizedState,o===null)return Er(e),null;if(n=(e.flags&128)!==0,a=o.rendering,a===null)if(n)tm(o,!1);else{if(Nr!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(a=Dx(t),a!==null){for(e.flags|=128,tm(o,!1),t=a.updateQueue,e.updateQueue=t,p0(e,t),e.subtreeFlags=0,t=r,r=e.child;r!==null;)zF(r,t),r=r.sibling;return _r(sn,sn.current&1|2),e.child}t=t.sibling}o.tail!==null&&Ma()>Vx&&(e.flags|=128,n=!0,tm(o,!1),e.lanes=4194304)}else{if(!n)if(t=Dx(a),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,p0(e,t),tm(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!qt)return Er(e),null}else 2*Ma()-o.renderingStartTime>Vx&&r!==536870912&&(e.flags|=128,n=!0,tm(o,!1),e.lanes=4194304);o.isBackwards?(a.sibling=e.child,e.child=a):(t=o.last,t!==null?t.sibling=a:e.child=a,o.last=a)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ma(),e.sibling=null,t=sn.current,_r(sn,n?t&1|2:t&1),e):(Er(e),null);case 22:case 23:return js(e),c4(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?r&536870912&&!(e.flags&128)&&(Er(e),e.subtreeFlags&6&&(e.flags|=8192)):Er(e),r=e.updateQueue,r!==null&&p0(e,r.retryQueue),r=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==r&&(e.flags|=2048),t!==null&&xn(nu),null;case 24:return r=null,t!==null&&(r=t.memoizedState.cache),e.memoizedState.cache!==r&&(e.flags|=2048),As(an),Er(e),null;case 25:return null;case 30:return null}throw Error(we(156,e.tag))}function hre(t,e){switch(i4(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return As(an),If(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Cx(e),null;case 13:if(js(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(we(340));Hv()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return xn(sn),null;case 4:return If(),null;case 10:return As(e.type),null;case 22:case 23:return js(e),c4(),t!==null&&xn(nu),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return As(an),null;case 25:return null;default:return null}}function zH(t,e){switch(i4(e),e.tag){case 3:As(an),If();break;case 26:case 27:case 5:Cx(e);break;case 4:If();break;case 13:js(e);break;case 19:xn(sn);break;case 10:As(e.type);break;case 22:case 23:js(e),c4(),t!==null&&xn(nu);break;case 24:As(an)}}function Xv(t,e){try{var r=e.updateQueue,n=r!==null?r.lastEffect:null;if(n!==null){var o=n.next;r=o;do{if((r.tag&t)===t){n=void 0;var a=r.create,f=r.inst;n=a(),f.destroy=n}r=r.next}while(r!==o)}}catch(p){lr(e,e.return,p)}}function Ul(t,e,r){try{var n=e.updateQueue,o=n!==null?n.lastEffect:null;if(o!==null){var a=o.next;n=a;do{if((n.tag&t)===t){var f=n.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,o=e;var m=r,v=p;try{v()}catch(y){lr(o,m,y)}}}n=n.next}while(n!==a)}}catch(y){lr(e,e.return,y)}}function MH(t){var e=t.updateQueue;if(e!==null){var r=t.stateNode;try{FF(e,r)}catch(n){lr(t,t.return,n)}}}function IH(t,e,r){r.props=hu(t.type,t.memoizedProps),r.state=t.memoizedState;try{r.componentWillUnmount()}catch(n){lr(t,e,n)}}function Pm(t,e){try{var r=t.ref;if(r!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof r=="function"?t.refCleanup=r(n):r.current=n}}catch(o){lr(t,e,o)}}function Ea(t,e){var r=t.ref,n=t.refCleanup;if(r!==null)if(typeof n=="function")try{n()}catch(o){lr(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(o){lr(t,e,o)}else r.current=null}function LH(t){var e=t.type,r=t.memoizedProps,n=t.stateNode;try{e:switch(e){case"button":case"input":case"select":case"textarea":r.autoFocus&&n.focus();break e;case"img":r.src?n.src=r.src:r.srcSet&&(n.srcset=r.srcSet)}}catch(o){lr(t,t.return,o)}}function cO(t,e,r){try{var n=t.stateNode;Mre(n,t.type,r,e),n[Oo]=e}catch(o){lr(t,t.return,o)}}function NH(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Jl(t.type)||t.tag===4}function uO(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||NH(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Jl(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function QE(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(t,e):(e=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,e.appendChild(t),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=$w));else if(n!==4&&(n===27&&Jl(t.type)&&(r=t.stateNode,e=null),t=t.child,t!==null))for(QE(t,e,r),t=t.sibling;t!==null;)QE(t,e,r),t=t.sibling}function Ux(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(n===27&&Jl(t.type)&&(r=t.stateNode),t=t.child,t!==null))for(Ux(t,e,r),t=t.sibling;t!==null;)Ux(t,e,r),t=t.sibling}function DH(t){var e=t.stateNode,r=t.memoizedProps;try{for(var n=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);zn(e,n,r),e[Gn]=t,e[Oo]=r}catch(a){lr(t,t.return,a)}}var bs=!1,Yr=!1,dO=!1,eD=typeof WeakSet=="function"?WeakSet:Set,vn=null;function pre(t,e){if(t=t.containerInfo,sT=Jx,t=SF(t),e4(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var f=0,p=-1,m=-1,v=0,y=0,x=t,k=null;t:for(;;){for(var S;x!==r||o!==0&&x.nodeType!==3||(p=f+o),x!==a||n!==0&&x.nodeType!==3||(m=f+n),x.nodeType===3&&(f+=x.nodeValue.length),(S=x.firstChild)!==null;)k=x,x=S;for(;;){if(x===t)break t;if(k===r&&++v===o&&(p=f),k===a&&++y===n&&(m=f),(S=x.nextSibling)!==null)break;x=k,k=x.parentNode}x=S}r=p===-1||m===-1?null:{start:p,end:m}}else r=null}r=r||{start:0,end:0}}else r=null;for(lT={focusedElem:t,selectionRange:r},Jx=!1,vn=e;vn!==null;)if(e=vn,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,vn=t;else for(;vn!==null;){switch(e=vn,a=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if(t&1024&&a!==null){t=void 0,r=e,o=a.memoizedProps,a=a.memoizedState,n=r.stateNode;try{var O=hu(r.type,o,r.elementType===r.type);t=n.getSnapshotBeforeUpdate(O,a),n.__reactInternalSnapshotBeforeUpdate=t}catch(C){lr(r,r.return,C)}}break;case 3:if(t&1024){if(t=e.stateNode.containerInfo,r=t.nodeType,r===9)uT(t);else if(r===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":uT(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(we(163))}if(t=e.sibling,t!==null){t.return=e.return,vn=t;break}vn=e.return}}function BH(t,e,r){var n=r.flags;switch(r.tag){case 0:case 11:case 15:sl(t,r),n&4&&Xv(5,r);break;case 1:if(sl(t,r),n&4)if(t=r.stateNode,e===null)try{t.componentDidMount()}catch(f){lr(r,r.return,f)}else{var o=hu(r.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){lr(r,r.return,f)}}n&64&&MH(r),n&512&&Pm(r,r.return);break;case 3:if(sl(t,r),n&64&&(t=r.updateQueue,t!==null)){if(e=null,r.child!==null)switch(r.child.tag){case 27:case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}try{FF(t,e)}catch(f){lr(r,r.return,f)}}break;case 27:e===null&&n&4&&DH(r);case 26:case 5:sl(t,r),e===null&&n&4&&LH(r),n&512&&Pm(r,r.return);break;case 12:sl(t,r);break;case 13:sl(t,r),n&4&&UH(t,r),n&64&&(t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(r=kre.bind(null,r),Hre(t,r))));break;case 22:if(n=r.memoizedState!==null||bs,!n){e=e!==null&&e.memoizedState!==null||Yr,o=bs;var a=Yr;bs=n,(Yr=e)&&!a?cl(t,r,(r.subtreeFlags&8772)!==0):sl(t,r),bs=o,Yr=a}break;case 30:break;default:sl(t,r)}}function FH(t){var e=t.alternate;e!==null&&(t.alternate=null,FH(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&GR(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var xr=null,yo=!1;function ds(t,e,r){for(r=r.child;r!==null;)HH(t,e,r),r=r.sibling}function HH(t,e,r){if(Fo&&typeof Fo.onCommitFiberUnmount=="function")try{Fo.onCommitFiberUnmount(Lv,r)}catch{}switch(r.tag){case 26:Yr||Ea(r,e),ds(t,e,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:Yr||Ea(r,e);var n=xr,o=yo;Jl(r.type)&&(xr=r.stateNode,yo=!1),ds(t,e,r),Lm(r.stateNode),xr=n,yo=o;break;case 5:Yr||Ea(r,e);case 6:if(n=xr,o=yo,xr=null,ds(t,e,r),xr=n,yo=o,xr!==null)if(yo)try{(xr.nodeType===9?xr.body:xr.nodeName==="HTML"?xr.ownerDocument.body:xr).removeChild(r.stateNode)}catch(a){lr(r,e,a)}else try{xr.removeChild(r.stateNode)}catch(a){lr(r,e,a)}break;case 18:xr!==null&&(yo?(t=xr,fD(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,r.stateNode),rv(t)):fD(xr,r.stateNode));break;case 4:n=xr,o=yo,xr=r.stateNode.containerInfo,yo=!0,ds(t,e,r),xr=n,yo=o;break;case 0:case 11:case 14:case 15:Yr||Ul(2,r,e),Yr||Ul(4,r,e),ds(t,e,r);break;case 1:Yr||(Ea(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"&&IH(r,e,n)),ds(t,e,r);break;case 21:ds(t,e,r);break;case 22:Yr=(n=Yr)||r.memoizedState!==null,ds(t,e,r),Yr=n;break;default:ds(t,e,r)}}function UH(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{rv(t)}catch(r){lr(e,e.return,r)}}function gre(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new eD),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new eD),e;default:throw Error(we(435,t.tag))}}function fO(t,e){var r=gre(t);e.forEach(function(n){var o=jre.bind(null,t,n);r.has(n)||(r.add(n),n.then(o,o))})}function Mo(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n],a=t,f=e,p=f;e:for(;p!==null;){switch(p.tag){case 27:if(Jl(p.type)){xr=p.stateNode,yo=!1;break e}break;case 5:xr=p.stateNode,yo=!1;break e;case 3:case 4:xr=p.stateNode.containerInfo,yo=!0;break e}p=p.return}if(xr===null)throw Error(we(160));HH(a,f,o),xr=null,yo=!1,a=o.alternate,a!==null&&(a.return=null),o.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)VH(e,t),e=e.sibling}var Wi=null;function VH(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Mo(e,t),Io(t),n&4&&(Ul(3,t,t.return),Xv(3,t),Ul(5,t,t.return));break;case 1:Mo(e,t),Io(t),n&512&&(Yr||r===null||Ea(r,r.return)),n&64&&bs&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(r=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=r===null?n:r.concat(n))));break;case 26:var o=Wi;if(Mo(e,t),Io(t),n&512&&(Yr||r===null||Ea(r,r.return)),n&4){var a=r!==null?r.memoizedState:null;if(n=t.memoizedState,r===null)if(n===null)if(t.stateNode===null){e:{n=t.type,r=t.memoizedProps,o=o.ownerDocument||o;t:switch(n){case"title":a=o.getElementsByTagName("title")[0],(!a||a[Bv]||a[Gn]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=o.createElement(n),o.head.insertBefore(a,o.querySelector("head > title"))),zn(a,n,r),a[Gn]=t,bn(a),n=a;break e;case"link":var f=vD("link","href",o).get(n+(r.href||""));if(f){for(var p=0;p<f.length;p++)if(a=f[p],a.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&a.getAttribute("rel")===(r.rel==null?null:r.rel)&&a.getAttribute("title")===(r.title==null?null:r.title)&&a.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){f.splice(p,1);break t}}a=o.createElement(n),zn(a,n,r),o.head.appendChild(a);break;case"meta":if(f=vD("meta","content",o).get(n+(r.content||""))){for(p=0;p<f.length;p++)if(a=f[p],a.getAttribute("content")===(r.content==null?null:""+r.content)&&a.getAttribute("name")===(r.name==null?null:r.name)&&a.getAttribute("property")===(r.property==null?null:r.property)&&a.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&a.getAttribute("charset")===(r.charSet==null?null:r.charSet)){f.splice(p,1);break t}}a=o.createElement(n),zn(a,n,r),o.head.appendChild(a);break;default:throw Error(we(468,n))}a[Gn]=t,bn(a),n=a}t.stateNode=n}else bD(o,t.type,t.stateNode);else t.stateNode=mD(o,n,t.memoizedProps);else a!==n?(a===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):a.count--,n===null?bD(o,t.type,t.stateNode):mD(o,n,t.memoizedProps)):n===null&&t.stateNode!==null&&cO(t,t.memoizedProps,r.memoizedProps)}break;case 27:Mo(e,t),Io(t),n&512&&(Yr||r===null||Ea(r,r.return)),r!==null&&n&4&&cO(t,t.memoizedProps,r.memoizedProps);break;case 5:if(Mo(e,t),Io(t),n&512&&(Yr||r===null||Ea(r,r.return)),t.flags&32){o=t.stateNode;try{Nf(o,"")}catch(S){lr(t,t.return,S)}}n&4&&t.stateNode!=null&&(o=t.memoizedProps,cO(t,o,r!==null?r.memoizedProps:o)),n&1024&&(dO=!0);break;case 6:if(Mo(e,t),Io(t),n&4){if(t.stateNode===null)throw Error(we(162));n=t.memoizedProps,r=t.stateNode;try{r.nodeValue=n}catch(S){lr(t,t.return,S)}}break;case 3:if(Q0=null,o=Wi,Wi=$x(e.containerInfo),Mo(e,t),Wi=o,Io(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{rv(e.containerInfo)}catch(S){lr(t,t.return,S)}dO&&(dO=!1,qH(t));break;case 4:n=Wi,Wi=$x(t.stateNode.containerInfo),Mo(e,t),Io(t),Wi=n;break;case 12:Mo(e,t),Io(t);break;case 13:Mo(e,t),Io(t),t.child.flags&8192&&t.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(A4=Ma()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,fO(t,n)));break;case 22:o=t.memoizedState!==null;var m=r!==null&&r.memoizedState!==null,v=bs,y=Yr;if(bs=v||o,Yr=y||m,Mo(e,t),Yr=y,bs=v,Io(t),n&8192)e:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(r===null||m||bs||Yr||Mc(t)),r=null,e=t;;){if(e.tag===5||e.tag===26){if(r===null){m=r=e;try{if(a=m.stateNode,o)f=a.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=m.stateNode;var x=m.memoizedProps.style,k=x!=null&&x.hasOwnProperty("display")?x.display:null;p.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(S){lr(m,m.return,S)}}}else if(e.tag===6){if(r===null){m=e;try{m.stateNode.nodeValue=o?"":m.memoizedProps}catch(S){lr(m,m.return,S)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;r===e&&(r=null),e=e.return}r===e&&(r=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(r=n.retryQueue,r!==null&&(n.retryQueue=null,fO(t,r))));break;case 19:Mo(e,t),Io(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,fO(t,n)));break;case 30:break;case 21:break;default:Mo(e,t),Io(t)}}function Io(t){var e=t.flags;if(e&2){try{for(var r,n=t.return;n!==null;){if(NH(n)){r=n;break}n=n.return}if(r==null)throw Error(we(160));switch(r.tag){case 27:var o=r.stateNode,a=uO(t);Ux(t,a,o);break;case 5:var f=r.stateNode;r.flags&32&&(Nf(f,""),r.flags&=-33);var p=uO(t);Ux(t,p,f);break;case 3:case 4:var m=r.stateNode.containerInfo,v=uO(t);QE(t,v,m);break;default:throw Error(we(161))}}catch(y){lr(t,t.return,y)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function qH(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;qH(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function sl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)BH(t,e.alternate,e),e=e.sibling}function Mc(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ul(4,e,e.return),Mc(e);break;case 1:Ea(e,e.return);var r=e.stateNode;typeof r.componentWillUnmount=="function"&&IH(e,e.return,r),Mc(e);break;case 27:Lm(e.stateNode);case 26:case 5:Ea(e,e.return),Mc(e);break;case 22:e.memoizedState===null&&Mc(e);break;case 30:Mc(e);break;default:Mc(e)}t=t.sibling}}function cl(t,e,r){for(r=r&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,o=t,a=e,f=a.flags;switch(a.tag){case 0:case 11:case 15:cl(o,a,r),Xv(4,a);break;case 1:if(cl(o,a,r),n=a,o=n.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(v){lr(n,n.return,v)}if(n=a,o=n.updateQueue,o!==null){var p=n.stateNode;try{var m=o.shared.hiddenCallbacks;if(m!==null)for(o.shared.hiddenCallbacks=null,o=0;o<m.length;o++)BF(m[o],p)}catch(v){lr(n,n.return,v)}}r&&f&64&&MH(a),Pm(a,a.return);break;case 27:DH(a);case 26:case 5:cl(o,a,r),r&&n===null&&f&4&&LH(a),Pm(a,a.return);break;case 12:cl(o,a,r);break;case 13:cl(o,a,r),r&&f&4&&UH(o,a);break;case 22:a.memoizedState===null&&cl(o,a,r),Pm(a,a.return);break;case 30:break;default:cl(o,a,r)}e=e.sibling}}function k4(t,e){var r=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==r&&(t!=null&&t.refCount++,r!=null&&Vv(r))}function j4(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Vv(t))}function ya(t,e,r,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)YH(t,e,r,n),e=e.sibling}function YH(t,e,r,n){var o=e.flags;switch(e.tag){case 0:case 11:case 15:ya(t,e,r,n),o&2048&&Xv(9,e);break;case 1:ya(t,e,r,n);break;case 3:ya(t,e,r,n),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Vv(t)));break;case 12:if(o&2048){ya(t,e,r,n),t=e.stateNode;try{var a=e.memoizedProps,f=a.id,p=a.onPostCommit;typeof p=="function"&&p(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){lr(e,e.return,m)}}else ya(t,e,r,n);break;case 13:ya(t,e,r,n);break;case 23:break;case 22:a=e.stateNode,f=e.alternate,e.memoizedState!==null?a._visibility&2?ya(t,e,r,n):zm(t,e):a._visibility&2?ya(t,e,r,n):(a._visibility|=2,Wd(t,e,r,n,(e.subtreeFlags&10256)!==0)),o&2048&&k4(f,e);break;case 24:ya(t,e,r,n),o&2048&&j4(e.alternate,e);break;default:ya(t,e,r,n)}}function Wd(t,e,r,n,o){for(o=o&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var a=t,f=e,p=r,m=n,v=f.flags;switch(f.tag){case 0:case 11:case 15:Wd(a,f,p,m,o),Xv(8,f);break;case 23:break;case 22:var y=f.stateNode;f.memoizedState!==null?y._visibility&2?Wd(a,f,p,m,o):zm(a,f):(y._visibility|=2,Wd(a,f,p,m,o)),o&&v&2048&&k4(f.alternate,f);break;case 24:Wd(a,f,p,m,o),o&&v&2048&&j4(f.alternate,f);break;default:Wd(a,f,p,m,o)}e=e.sibling}}function zm(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var r=t,n=e,o=n.flags;switch(n.tag){case 22:zm(r,n),o&2048&&k4(n.alternate,n);break;case 24:zm(r,n),o&2048&&j4(n.alternate,n);break;default:zm(r,n)}e=e.sibling}}var gm=8192;function zd(t){if(t.subtreeFlags&gm)for(t=t.child;t!==null;)WH(t),t=t.sibling}function WH(t){switch(t.tag){case 26:zd(t),t.flags&gm&&t.memoizedState!==null&&ene(Wi,t.memoizedState,t.memoizedProps);break;case 5:zd(t);break;case 3:case 4:var e=Wi;Wi=$x(t.stateNode.containerInfo),zd(t),Wi=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=gm,gm=16777216,zd(t),gm=e):zd(t));break;default:zd(t)}}function XH(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function rm(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var r=0;r<e.length;r++){var n=e[r];vn=n,$H(n,t)}XH(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)GH(t),t=t.sibling}function GH(t){switch(t.tag){case 0:case 11:case 15:rm(t),t.flags&2048&&Ul(9,t,t.return);break;case 3:rm(t);break;case 12:rm(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,K0(t)):rm(t);break;default:rm(t)}}function K0(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var r=0;r<e.length;r++){var n=e[r];vn=n,$H(n,t)}XH(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ul(8,e,e.return),K0(e);break;case 22:r=e.stateNode,r._visibility&2&&(r._visibility&=-3,K0(e));break;default:K0(e)}t=t.sibling}}function $H(t,e){for(;vn!==null;){var r=vn;switch(r.tag){case 0:case 11:case 15:Ul(8,r,e);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var n=r.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Vv(r.memoizedState.cache)}if(n=r.child,n!==null)n.return=r,vn=n;else e:for(r=t;vn!==null;){n=vn;var o=n.sibling,a=n.return;if(FH(n),n===r){vn=null;break e}if(o!==null){o.return=a,vn=o;break e}vn=a}}}var mre={getCacheForType:function(t){var e=$n(an),r=e.data.get(t);return r===void 0&&(r=t(),e.data.set(t,r)),r}},vre=typeof WeakMap=="function"?WeakMap:Map,Qt=0,hr=null,jt=null,Rt=0,Jt=0,Lo=null,El=!1,rh=!1,S4=!1,zs=0,Nr=0,Vl=0,ou=0,C4=0,ki=0,Uf=0,Mm=null,wo=null,eT=!1,A4=0,Vx=1/0,qx=null,Ml=null,Rn=0,Il=null,Vf=null,mf=0,tT=0,rT=null,ZH=null,Im=0,nT=null;function Uo(){if(Qt&2&&Rt!==0)return Rt&-Rt;if(lt.T!==null){var t=Df;return t!==0?t:E4()}return sF()}function KH(){ki===0&&(ki=!(Rt&536870912)||qt?nF():536870912);var t=Oi.current;return t!==null&&(t.flags|=32),ki}function Vo(t,e,r){(t===hr&&(Jt===2||Jt===9)||t.cancelPendingCommit!==null)&&(qf(t,0),Tl(t,Rt,ki,!1)),Dv(t,r),(!(Qt&2)||t!==hr)&&(t===hr&&(!(Qt&2)&&(ou|=r),Nr===4&&Tl(t,Rt,ki,!1)),Ha(t))}function JH(t,e,r){if(Qt&6)throw Error(we(327));var n=!r&&(e&124)===0&&(e&t.expiredLanes)===0||Nv(t,e),o=n?xre(t,e):hO(t,e,!0),a=n;do{if(o===0){rh&&!n&&Tl(t,e,0,!1);break}else{if(r=t.current.alternate,a&&!bre(r)){o=hO(t,e,!1),a=!1;continue}if(o===2){if(a=e,t.errorRecoveryDisabledLanes&a)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;e:{var p=t;o=Mm;var m=p.current.memoizedState.isDehydrated;if(m&&(qf(p,f).flags|=256),f=hO(p,f,!1),f!==2){if(S4&&!m){p.errorRecoveryDisabledLanes|=a,ou|=a,o=4;break e}a=wo,wo=o,a!==null&&(wo===null?wo=a:wo.push.apply(wo,a))}o=f}if(a=!1,o!==2)continue}}if(o===1){qf(t,0),Tl(t,e,0,!0);break}e:{switch(n=t,a=o,a){case 0:case 1:throw Error(we(345));case 4:if((e&4194048)!==e)break;case 6:Tl(n,e,ki,!El);break e;case 2:wo=null;break;case 3:case 5:break;default:throw Error(we(329))}if((e&62914560)===e&&(o=A4+300-Ma(),10<o)){if(Tl(n,e,ki,!El),Lw(n,0,!0)!==0)break e;n.timeoutHandle=v7(tD.bind(null,n,r,wo,qx,eT,e,ki,ou,Uf,El,a,2,-0,0),o);break e}tD(n,r,wo,qx,eT,e,ki,ou,Uf,El,a,0,-0,0)}}break}while(!0);Ha(t)}function tD(t,e,r,n,o,a,f,p,m,v,y,x,k,S){if(t.timeoutHandle=-1,x=e.subtreeFlags,(x&8192||(x&16785408)===16785408)&&(Jm={stylesheets:null,count:0,unsuspend:Qre},WH(e),x=tne(),x!==null)){t.cancelPendingCommit=x(nD.bind(null,t,e,a,r,n,o,f,p,m,y,1,k,S)),Tl(t,a,f,!v);return}nD(t,e,a,r,n,o,f,p,m)}function bre(t){for(var e=t;;){var r=e.tag;if((r===0||r===11||r===15)&&e.flags&16384&&(r=e.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!Go(a(),o))return!1}catch{return!1}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Tl(t,e,r,n){e&=~C4,e&=~ou,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var o=e;0<o;){var a=31-Ho(o),f=1<<a;n[a]=-1,o&=~f}r!==0&&iF(t,r,e)}function Ww(){return Qt&6?!0:(Gv(0),!1)}function O4(){if(jt!==null){if(Jt===0)var t=jt.return;else t=jt,ks=Au=null,p4(t),gf=null,$m=0,t=jt;for(;t!==null;)zH(t.alternate,t),t=t.return;jt=null}}function qf(t,e){var r=t.timeoutHandle;r!==-1&&(t.timeoutHandle=-1,Lre(r)),r=t.cancelPendingCommit,r!==null&&(t.cancelPendingCommit=null,r()),O4(),hr=t,jt=r=Cs(t.current,null),Rt=e,Jt=0,Lo=null,El=!1,rh=Nv(t,e),S4=!1,Uf=ki=C4=ou=Vl=Nr=0,wo=Mm=null,eT=!1,e&8&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var o=31-Ho(n),a=1<<o;e|=t[o],n&=~a}return zs=e,Fw(),r}function QH(t,e){wt=null,lt.H=Nx,e===qv||e===Uw?(e=z6(),Jt=3):e===NF?(e=z6(),Jt=4):Jt=e===AH?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Lo=e,jt===null&&(Nr=1,Fx(t,_i(e,t.current)))}function e7(){var t=lt.H;return lt.H=Nx,t===null?Nx:t}function t7(){var t=lt.A;return lt.A=mre,t}function oT(){Nr=4,El||(Rt&4194048)!==Rt&&Oi.current!==null||(rh=!0),!(Vl&134217727)&&!(ou&134217727)||hr===null||Tl(hr,Rt,ki,!1)}function hO(t,e,r){var n=Qt;Qt|=2;var o=e7(),a=t7();(hr!==t||Rt!==e)&&(qx=null,qf(t,e)),e=!1;var f=Nr;e:do try{if(Jt!==0&&jt!==null){var p=jt,m=Lo;switch(Jt){case 8:O4(),f=6;break e;case 3:case 2:case 9:case 6:Oi.current===null&&(e=!0);var v=Jt;if(Jt=0,Lo=null,af(t,p,m,v),r&&rh){f=0;break e}break;default:v=Jt,Jt=0,Lo=null,af(t,p,m,v)}}yre(),f=Nr;break}catch(y){QH(t,y)}while(!0);return e&&t.shellSuspendCounter++,ks=Au=null,Qt=n,lt.H=o,lt.A=a,jt===null&&(hr=null,Rt=0,Fw()),f}function yre(){for(;jt!==null;)r7(jt)}function xre(t,e){var r=Qt;Qt|=2;var n=e7(),o=t7();hr!==t||Rt!==e?(qx=null,Vx=Ma()+500,qf(t,e)):rh=Nv(t,e);e:do try{if(Jt!==0&&jt!==null){e=jt;var a=Lo;t:switch(Jt){case 1:Jt=0,Lo=null,af(t,e,a,1);break;case 2:case 9:if(P6(a)){Jt=0,Lo=null,rD(e);break}e=function(){Jt!==2&&Jt!==9||hr!==t||(Jt=7),Ha(t)},a.then(e,e);break e;case 3:Jt=7;break e;case 4:Jt=5;break e;case 7:P6(a)?(Jt=0,Lo=null,rD(e)):(Jt=0,Lo=null,af(t,e,a,7));break;case 5:var f=null;switch(jt.tag){case 26:f=jt.memoizedState;case 5:case 27:var p=jt;if(!f||w7(f)){Jt=0,Lo=null;var m=p.sibling;if(m!==null)jt=m;else{var v=p.return;v!==null?(jt=v,Xw(v)):jt=null}break t}}Jt=0,Lo=null,af(t,e,a,5);break;case 6:Jt=0,Lo=null,af(t,e,a,6);break;case 8:O4(),Nr=6;break e;default:throw Error(we(462))}}wre();break}catch(y){QH(t,y)}while(!0);return ks=Au=null,lt.H=n,lt.A=o,Qt=r,jt!==null?0:(hr=null,Rt=0,Fw(),Nr)}function wre(){for(;jt!==null&&!Vee();)r7(jt)}function r7(t){var e=PH(t.alternate,t,zs);t.memoizedProps=t.pendingProps,e===null?Xw(t):jt=e}function rD(t){var e=t,r=e.alternate;switch(e.tag){case 15:case 0:e=$6(r,e,e.pendingProps,e.type,void 0,Rt);break;case 11:e=$6(r,e,e.pendingProps,e.type.render,e.ref,Rt);break;case 5:p4(e);default:zH(r,e),e=jt=zF(e,zs),e=PH(r,e,zs)}t.memoizedProps=t.pendingProps,e===null?Xw(t):jt=e}function af(t,e,r,n){ks=Au=null,p4(e),gf=null,$m=0;var o=e.return;try{if(ure(t,o,e,r,Rt)){Nr=1,Fx(t,_i(r,t.current)),jt=null;return}}catch(a){if(o!==null)throw jt=o,a;Nr=1,Fx(t,_i(r,t.current)),jt=null;return}e.flags&32768?(qt||n===1?t=!0:rh||Rt&536870912?t=!1:(El=t=!0,(n===2||n===9||n===3||n===6)&&(n=Oi.current,n!==null&&n.tag===13&&(n.flags|=16384))),n7(e,t)):Xw(e)}function Xw(t){var e=t;do{if(e.flags&32768){n7(e,El);return}t=e.return;var r=fre(e.alternate,e,zs);if(r!==null){jt=r;return}if(e=e.sibling,e!==null){jt=e;return}jt=e=t}while(e!==null);Nr===0&&(Nr=5)}function n7(t,e){do{var r=hre(t.alternate,t);if(r!==null){r.flags&=32767,jt=r;return}if(r=t.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!e&&(t=t.sibling,t!==null)){jt=t;return}jt=t=r}while(t!==null);Nr=6,jt=null}function nD(t,e,r,n,o,a,f,p,m){t.cancelPendingCommit=null;do Gw();while(Rn!==0);if(Qt&6)throw Error(we(327));if(e!==null){if(e===t.current)throw Error(we(177));if(a=e.lanes|e.childLanes,a|=t4,Qee(t,r,a,f,p,m),t===hr&&(jt=hr=null,Rt=0),Vf=e,Il=t,mf=r,tT=a,rT=o,ZH=n,e.subtreeFlags&10256||e.flags&10256?(t.callbackNode=null,t.callbackPriority=0,Sre(Ax,function(){return l7(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,e.subtreeFlags&13878||n){n=lt.T,lt.T=null,o=Yt.p,Yt.p=2,f=Qt,Qt|=4;try{pre(t,e,r)}finally{Qt=f,Yt.p=o,lt.T=n}}Rn=1,o7(),i7(),a7()}}function o7(){if(Rn===1){Rn=0;var t=Il,e=Vf,r=(e.flags&13878)!==0;if(e.subtreeFlags&13878||r){r=lt.T,lt.T=null;var n=Yt.p;Yt.p=2;var o=Qt;Qt|=4;try{VH(e,t);var a=lT,f=SF(t.containerInfo),p=a.focusedElem,m=a.selectionRange;if(f!==p&&p&&p.ownerDocument&&jF(p.ownerDocument.documentElement,p)){if(m!==null&&e4(p)){var v=m.start,y=m.end;if(y===void 0&&(y=v),"selectionStart"in p)p.selectionStart=v,p.selectionEnd=Math.min(y,p.value.length);else{var x=p.ownerDocument||document,k=x&&x.defaultView||window;if(k.getSelection){var S=k.getSelection(),O=p.textContent.length,C=Math.min(m.start,O),R=m.end===void 0?C:Math.min(m.end,O);!S.extend&&C>R&&(f=R,R=C,C=f);var E=j6(p,C),P=j6(p,R);if(E&&P&&(S.rangeCount!==1||S.anchorNode!==E.node||S.anchorOffset!==E.offset||S.focusNode!==P.node||S.focusOffset!==P.offset)){var M=x.createRange();M.setStart(E.node,E.offset),S.removeAllRanges(),C>R?(S.addRange(M),S.extend(P.node,P.offset)):(M.setEnd(P.node,P.offset),S.addRange(M))}}}}for(x=[],S=p;S=S.parentNode;)S.nodeType===1&&x.push({element:S,left:S.scrollLeft,top:S.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<x.length;p++){var I=x[p];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}Jx=!!sT,lT=sT=null}finally{Qt=o,Yt.p=n,lt.T=r}}t.current=e,Rn=2}}function i7(){if(Rn===2){Rn=0;var t=Il,e=Vf,r=(e.flags&8772)!==0;if(e.subtreeFlags&8772||r){r=lt.T,lt.T=null;var n=Yt.p;Yt.p=2;var o=Qt;Qt|=4;try{BH(t,e.alternate,e)}finally{Qt=o,Yt.p=n,lt.T=r}}Rn=3}}function a7(){if(Rn===4||Rn===3){Rn=0,qee();var t=Il,e=Vf,r=mf,n=ZH;e.subtreeFlags&10256||e.flags&10256?Rn=5:(Rn=0,Vf=Il=null,s7(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(Ml=null),XR(r),e=e.stateNode,Fo&&typeof Fo.onCommitFiberRoot=="function")try{Fo.onCommitFiberRoot(Lv,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=lt.T,o=Yt.p,Yt.p=2,lt.T=null;try{for(var a=t.onRecoverableError,f=0;f<n.length;f++){var p=n[f];a(p.value,{componentStack:p.stack})}}finally{lt.T=e,Yt.p=o}}mf&3&&Gw(),Ha(t),o=t.pendingLanes,r&4194090&&o&42?t===nT?Im++:(Im=0,nT=t):Im=0,Gv(0)}}function s7(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Vv(e)))}function Gw(t){return o7(),i7(),a7(),l7()}function l7(){if(Rn!==5)return!1;var t=Il,e=tT;tT=0;var r=XR(mf),n=lt.T,o=Yt.p;try{Yt.p=32>r?32:r,lt.T=null,r=rT,rT=null;var a=Il,f=mf;if(Rn=0,Vf=Il=null,mf=0,Qt&6)throw Error(we(331));var p=Qt;if(Qt|=4,GH(a.current),YH(a,a.current,f,r),Qt=p,Gv(0,!1),Fo&&typeof Fo.onPostCommitFiberRoot=="function")try{Fo.onPostCommitFiberRoot(Lv,a)}catch{}return!0}finally{Yt.p=o,lt.T=n,s7(t,e)}}function oD(t,e,r){e=_i(r,e),e=ZE(t.stateNode,e,2),t=zl(t,e,2),t!==null&&(Dv(t,2),Ha(t))}function lr(t,e,r){if(t.tag===3)oD(t,t,r);else for(;e!==null;){if(e.tag===3){oD(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ml===null||!Ml.has(n))){t=_i(r,t),r=SH(2),n=zl(e,r,2),n!==null&&(CH(r,n,e,t),Dv(n,2),Ha(n));break}}e=e.return}}function pO(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new vre;var o=new Set;n.set(e,o)}else o=n.get(e),o===void 0&&(o=new Set,n.set(e,o));o.has(r)||(S4=!0,o.add(r),t=_re.bind(null,t,e,r),e.then(t,t))}function _re(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&r,t.warmLanes&=~r,hr===t&&(Rt&r)===r&&(Nr===4||Nr===3&&(Rt&62914560)===Rt&&300>Ma()-A4?!(Qt&2)&&qf(t,0):C4|=r,Uf===Rt&&(Uf=0)),Ha(t)}function c7(t,e){e===0&&(e=oF()),t=th(t,e),t!==null&&(Dv(t,e),Ha(t))}function kre(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),c7(t,r)}function jre(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,o=t.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(we(314))}n!==null&&n.delete(e),c7(t,r)}function Sre(t,e){return YR(t,e)}var Yx=null,Xd=null,iT=!1,Wx=!1,gO=!1,iu=0;function Ha(t){t!==Xd&&t.next===null&&(Xd===null?Yx=Xd=t:Xd=Xd.next=t),Wx=!0,iT||(iT=!0,Are())}function Gv(t,e){if(!gO&&Wx){gO=!0;do for(var r=!1,n=Yx;n!==null;){if(t!==0){var o=n.pendingLanes;if(o===0)var a=0;else{var f=n.suspendedLanes,p=n.pingedLanes;a=(1<<31-Ho(42|t)+1)-1,a&=o&~(f&~p),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(r=!0,iD(n,a))}else a=Rt,a=Lw(n,n===hr?a:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),!(a&3)||Nv(n,a)||(r=!0,iD(n,a));n=n.next}while(r);gO=!1}}function Cre(){u7()}function u7(){Wx=iT=!1;var t=0;iu!==0&&(Ire()&&(t=iu),iu=0);for(var e=Ma(),r=null,n=Yx;n!==null;){var o=n.next,a=d7(n,e);a===0?(n.next=null,r===null?Yx=o:r.next=o,o===null&&(Xd=r)):(r=n,(t!==0||a&3)&&(Wx=!0)),n=o}Gv(t)}function d7(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,o=t.expirationTimes,a=t.pendingLanes&-62914561;0<a;){var f=31-Ho(a),p=1<<f,m=o[f];m===-1?(!(p&r)||p&n)&&(o[f]=Jee(p,e)):m<=e&&(t.expiredLanes|=p),a&=~p}if(e=hr,r=Rt,r=Lw(t,t===e?r:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,r===0||t===e&&(Jt===2||Jt===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&HA(n),t.callbackNode=null,t.callbackPriority=0;if(!(r&3)||Nv(t,r)){if(e=r&-r,e===t.callbackPriority)return e;switch(n!==null&&HA(n),XR(r)){case 2:case 8:r=tF;break;case 32:r=Ax;break;case 268435456:r=rF;break;default:r=Ax}return n=f7.bind(null,t),r=YR(r,n),t.callbackPriority=e,t.callbackNode=r,e}return n!==null&&n!==null&&HA(n),t.callbackPriority=2,t.callbackNode=null,2}function f7(t,e){if(Rn!==0&&Rn!==5)return t.callbackNode=null,t.callbackPriority=0,null;var r=t.callbackNode;if(Gw()&&t.callbackNode!==r)return null;var n=Rt;return n=Lw(t,t===hr?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(JH(t,n,e),d7(t,Ma()),t.callbackNode!=null&&t.callbackNode===r?f7.bind(null,t):null)}function iD(t,e){if(Gw())return null;JH(t,e,!0)}function Are(){Nre(function(){Qt&6?YR(eF,Cre):u7()})}function E4(){return iu===0&&(iu=nF()),iu}function aD(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:V0(""+t)}function sD(t,e){var r=e.ownerDocument.createElement("input");return r.name=e.name,r.value=e.value,t.id&&r.setAttribute("form",t.id),e.parentNode.insertBefore(r,e),t=new FormData(t),r.parentNode.removeChild(r),t}function Ore(t,e,r,n,o){if(e==="submit"&&r&&r.stateNode===o){var a=aD((o[Oo]||null).action),f=n.submitter;f&&(e=(e=f[Oo]||null)?aD(e.formAction):f.getAttribute("formAction"),e!==null&&(a=e,f=null));var p=new Nw("action","action",null,n,o);t.push({event:p,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(iu!==0){var m=f?sD(o,f):new FormData(o);GE(r,{pending:!0,data:m,method:o.method,action:a},null,m)}}else typeof a=="function"&&(p.preventDefault(),m=f?sD(o,f):new FormData(o),GE(r,{pending:!0,data:m,method:o.method,action:a},a,m))},currentTarget:o}]})}}for(var mO=0;mO<LE.length;mO++){var vO=LE[mO],Ere=vO.toLowerCase(),Tre=vO[0].toUpperCase()+vO.slice(1);oa(Ere,"on"+Tre)}oa(AF,"onAnimationEnd");oa(OF,"onAnimationIteration");oa(EF,"onAnimationStart");oa("dblclick","onDoubleClick");oa("focusin","onFocus");oa("focusout","onBlur");oa(Xte,"onTransitionRun");oa(Gte,"onTransitionStart");oa($te,"onTransitionCancel");oa(TF,"onTransitionEnd");Lf("onMouseEnter",["mouseout","mouseover"]);Lf("onMouseLeave",["mouseout","mouseover"]);Lf("onPointerEnter",["pointerout","pointerover"]);Lf("onPointerLeave",["pointerout","pointerover"]);ju("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ju("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ju("onBeforeInput",["compositionend","keypress","textInput","paste"]);ju("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ju("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ju("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zm="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rre=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zm));function h7(t,e){e=(e&4)!==0;for(var r=0;r<t.length;r++){var n=t[r],o=n.event;n=n.listeners;e:{var a=void 0;if(e)for(var f=n.length-1;0<=f;f--){var p=n[f],m=p.instance,v=p.currentTarget;if(p=p.listener,m!==a&&o.isPropagationStopped())break e;a=p,o.currentTarget=v;try{a(o)}catch(y){Bx(y)}o.currentTarget=null,a=m}else for(f=0;f<n.length;f++){if(p=n[f],m=p.instance,v=p.currentTarget,p=p.listener,m!==a&&o.isPropagationStopped())break e;a=p,o.currentTarget=v;try{a(o)}catch(y){Bx(y)}o.currentTarget=null,a=m}}}}function kt(t,e){var r=e[EE];r===void 0&&(r=e[EE]=new Set);var n=t+"__bubble";r.has(n)||(p7(e,t,2,!1),r.add(n))}function bO(t,e,r){var n=0;e&&(n|=4),p7(r,t,n,e)}var g0="_reactListening"+Math.random().toString(36).slice(2);function T4(t){if(!t[g0]){t[g0]=!0,lF.forEach(function(r){r!=="selectionchange"&&(Rre.has(r)||bO(r,!1,t),bO(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[g0]||(e[g0]=!0,bO("selectionchange",!1,e))}}function p7(t,e,r,n){switch(C7(e)){case 2:var o=one;break;case 8:o=ine;break;default:o=M4}r=o.bind(null,e,r,t),o=void 0,!zE||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),n?o!==void 0?t.addEventListener(e,r,{capture:!0,passive:o}):t.addEventListener(e,r,!0):o!==void 0?t.addEventListener(e,r,{passive:o}):t.addEventListener(e,r,!1)}function yO(t,e,r,n,o){var a=n;if(!(e&1)&&!(e&2)&&n!==null)e:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var p=n.stateNode.containerInfo;if(p===o)break;if(f===4)for(f=n.return;f!==null;){var m=f.tag;if((m===3||m===4)&&f.stateNode.containerInfo===o)return;f=f.return}for(;p!==null;){if(f=Zd(p),f===null)return;if(m=f.tag,m===5||m===6||m===26||m===27){n=a=f;continue e}p=p.parentNode}}n=n.return}mF(function(){var v=a,y=ZR(r),x=[];e:{var k=RF.get(t);if(k!==void 0){var S=Nw,O=t;switch(t){case"keypress":if(Y0(r)===0)break e;case"keydown":case"keyup":S=Ste;break;case"focusin":O="focus",S=$A;break;case"focusout":O="blur",S=$A;break;case"beforeblur":case"afterblur":S=$A;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":S=p6;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=hte;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=Ote;break;case AF:case OF:case EF:S=mte;break;case TF:S=Tte;break;case"scroll":case"scrollend":S=dte;break;case"wheel":S=Pte;break;case"copy":case"cut":case"paste":S=bte;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=m6;break;case"toggle":case"beforetoggle":S=Mte}var C=(e&4)!==0,R=!C&&(t==="scroll"||t==="scrollend"),E=C?k!==null?k+"Capture":null:k;C=[];for(var P=v,M;P!==null;){var I=P;if(M=I.stateNode,I=I.tag,I!==5&&I!==26&&I!==27||M===null||E===null||(I=qm(P,E),I!=null&&C.push(Km(P,I,M))),R)break;P=P.return}0<C.length&&(k=new S(k,O,null,r,y),x.push({event:k,listeners:C}))}}if(!(e&7)){e:{if(k=t==="mouseover"||t==="pointerover",S=t==="mouseout"||t==="pointerout",k&&r!==PE&&(O=r.relatedTarget||r.fromElement)&&(Zd(O)||O[Qf]))break e;if((S||k)&&(k=y.window===y?y:(k=y.ownerDocument)?k.defaultView||k.parentWindow:window,S?(O=r.relatedTarget||r.toElement,S=v,O=O?Zd(O):null,O!==null&&(R=Iv(O),C=O.tag,O!==R||C!==5&&C!==27&&C!==6)&&(O=null)):(S=null,O=v),S!==O)){if(C=p6,I="onMouseLeave",E="onMouseEnter",P="mouse",(t==="pointerout"||t==="pointerover")&&(C=m6,I="onPointerLeave",E="onPointerEnter",P="pointer"),R=S==null?k:pm(S),M=O==null?k:pm(O),k=new C(I,P+"leave",S,r,y),k.target=R,k.relatedTarget=M,I=null,Zd(y)===v&&(C=new C(E,P+"enter",O,r,y),C.target=M,C.relatedTarget=R,I=C),R=I,S&&O)t:{for(C=S,E=O,P=0,M=C;M;M=Md(M))P++;for(M=0,I=E;I;I=Md(I))M++;for(;0<P-M;)C=Md(C),P--;for(;0<M-P;)E=Md(E),M--;for(;P--;){if(C===E||E!==null&&C===E.alternate)break t;C=Md(C),E=Md(E)}C=null}else C=null;S!==null&&lD(x,k,S,C,!1),O!==null&&R!==null&&lD(x,R,O,C,!0)}}e:{if(k=v?pm(v):window,S=k.nodeName&&k.nodeName.toLowerCase(),S==="select"||S==="input"&&k.type==="file")var B=x6;else if(y6(k))if(_F)B=qte;else{B=Ute;var U=Hte}else S=k.nodeName,!S||S.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?v&&$R(v.elementType)&&(B=x6):B=Vte;if(B&&(B=B(t,v))){wF(x,B,r,y);break e}U&&U(t,k,v),t==="focusout"&&v&&k.type==="number"&&v.memoizedProps.value!=null&&RE(k,"number",k.value)}switch(U=v?pm(v):window,t){case"focusin":(y6(U)||U.contentEditable==="true")&&(Qd=U,ME=v,Sm=null);break;case"focusout":Sm=ME=Qd=null;break;case"mousedown":IE=!0;break;case"contextmenu":case"mouseup":case"dragend":IE=!1,S6(x,r,y);break;case"selectionchange":if(Wte)break;case"keydown":case"keyup":S6(x,r,y)}var H;if(QR)e:{switch(t){case"compositionstart":var V="onCompositionStart";break e;case"compositionend":V="onCompositionEnd";break e;case"compositionupdate":V="onCompositionUpdate";break e}V=void 0}else Jd?yF(t,r)&&(V="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(V="onCompositionStart");V&&(bF&&r.locale!=="ko"&&(Jd||V!=="onCompositionStart"?V==="onCompositionEnd"&&Jd&&(H=vF()):(Ol=y,KR="value"in Ol?Ol.value:Ol.textContent,Jd=!0)),U=Xx(v,V),0<U.length&&(V=new g6(V,t,null,r,y),x.push({event:V,listeners:U}),H?V.data=H:(H=xF(r),H!==null&&(V.data=H)))),(H=Lte?Nte(t,r):Dte(t,r))&&(V=Xx(v,"onBeforeInput"),0<V.length&&(U=new g6("onBeforeInput","beforeinput",null,r,y),x.push({event:U,listeners:V}),U.data=H)),Ore(x,t,v,r,y)}h7(x,e)})}function Km(t,e,r){return{instance:t,listener:e,currentTarget:r}}function Xx(t,e){for(var r=e+"Capture",n=[];t!==null;){var o=t,a=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||a===null||(o=qm(t,r),o!=null&&n.unshift(Km(t,o,a)),o=qm(t,e),o!=null&&n.push(Km(t,o,a))),t.tag===3)return n;t=t.return}return[]}function Md(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function lD(t,e,r,n,o){for(var a=e._reactName,f=[];r!==null&&r!==n;){var p=r,m=p.alternate,v=p.stateNode;if(p=p.tag,m!==null&&m===n)break;p!==5&&p!==26&&p!==27||v===null||(m=v,o?(v=qm(r,a),v!=null&&f.unshift(Km(r,v,m))):o||(v=qm(r,a),v!=null&&f.push(Km(r,v,m)))),r=r.return}f.length!==0&&t.push({event:e,listeners:f})}var Pre=/\r\n?/g,zre=/\u0000|\uFFFD/g;function cD(t){return(typeof t=="string"?t:""+t).replace(Pre,`
`).replace(zre,"")}function g7(t,e){return e=cD(e),cD(t)===e}function $w(){}function nr(t,e,r,n,o,a){switch(r){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||Nf(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&Nf(t,""+n);break;case"className":l0(t,"class",n);break;case"tabIndex":l0(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":l0(t,r,n);break;case"style":gF(t,n,a);break;case"data":if(e!=="object"){l0(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||r!=="href")){t.removeAttribute(r);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(r);break}n=V0(""+n),t.setAttribute(r,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof a=="function"&&(r==="formAction"?(e!=="input"&&nr(t,e,"name",o.name,o,null),nr(t,e,"formEncType",o.formEncType,o,null),nr(t,e,"formMethod",o.formMethod,o,null),nr(t,e,"formTarget",o.formTarget,o,null)):(nr(t,e,"encType",o.encType,o,null),nr(t,e,"method",o.method,o,null),nr(t,e,"target",o.target,o,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(r);break}n=V0(""+n),t.setAttribute(r,n);break;case"onClick":n!=null&&(t.onclick=$w);break;case"onScroll":n!=null&&kt("scroll",t);break;case"onScrollEnd":n!=null&&kt("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(we(61));if(r=n.__html,r!=null){if(o.children!=null)throw Error(we(60));t.innerHTML=r}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}r=V0(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(r,""+n):t.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(r,""):t.removeAttribute(r);break;case"capture":case"download":n===!0?t.setAttribute(r,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(r,n):t.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(r,n):t.removeAttribute(r);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(r):t.setAttribute(r,n);break;case"popover":kt("beforetoggle",t),kt("toggle",t),U0(t,"popover",n);break;case"xlinkActuate":cs(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":cs(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":cs(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":cs(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":cs(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":cs(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":cs(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":cs(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":cs(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":U0(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=cte.get(r)||r,U0(t,r,n))}}function aT(t,e,r,n,o,a){switch(r){case"style":gF(t,n,a);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(we(61));if(r=n.__html,r!=null){if(o.children!=null)throw Error(we(60));t.innerHTML=r}}break;case"children":typeof n=="string"?Nf(t,n):(typeof n=="number"||typeof n=="bigint")&&Nf(t,""+n);break;case"onScroll":n!=null&&kt("scroll",t);break;case"onScrollEnd":n!=null&&kt("scrollend",t);break;case"onClick":n!=null&&(t.onclick=$w);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!cF.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(o=r.endsWith("Capture"),e=r.slice(2,o?r.length-7:void 0),a=t[Oo]||null,a=a!=null?a[r]:null,typeof a=="function"&&t.removeEventListener(e,a,o),typeof n=="function")){typeof a!="function"&&a!==null&&(r in t?t[r]=null:t.hasAttribute(r)&&t.removeAttribute(r)),t.addEventListener(e,n,o);break e}r in t?t[r]=n:n===!0?t.setAttribute(r,""):U0(t,r,n)}}}function zn(t,e,r){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":kt("error",t),kt("load",t);var n=!1,o=!1,a;for(a in r)if(r.hasOwnProperty(a)){var f=r[a];if(f!=null)switch(a){case"src":n=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(we(137,e));default:nr(t,e,a,f,r,null)}}o&&nr(t,e,"srcSet",r.srcSet,r,null),n&&nr(t,e,"src",r.src,r,null);return;case"input":kt("invalid",t);var p=a=f=o=null,m=null,v=null;for(n in r)if(r.hasOwnProperty(n)){var y=r[n];if(y!=null)switch(n){case"name":o=y;break;case"type":f=y;break;case"checked":m=y;break;case"defaultChecked":v=y;break;case"value":a=y;break;case"defaultValue":p=y;break;case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(we(137,e));break;default:nr(t,e,n,y,r,null)}}fF(t,a,p,m,v,f,o,!1),Ox(t);return;case"select":kt("invalid",t),n=f=a=null;for(o in r)if(r.hasOwnProperty(o)&&(p=r[o],p!=null))switch(o){case"value":a=p;break;case"defaultValue":f=p;break;case"multiple":n=p;default:nr(t,e,o,p,r,null)}e=a,r=f,t.multiple=!!n,e!=null?uf(t,!!n,e,!1):r!=null&&uf(t,!!n,r,!0);return;case"textarea":kt("invalid",t),a=o=n=null;for(f in r)if(r.hasOwnProperty(f)&&(p=r[f],p!=null))switch(f){case"value":n=p;break;case"defaultValue":o=p;break;case"children":a=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(we(91));break;default:nr(t,e,f,p,r,null)}pF(t,n,o,a),Ox(t);return;case"option":for(m in r)if(r.hasOwnProperty(m)&&(n=r[m],n!=null))switch(m){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:nr(t,e,m,n,r,null)}return;case"dialog":kt("beforetoggle",t),kt("toggle",t),kt("cancel",t),kt("close",t);break;case"iframe":case"object":kt("load",t);break;case"video":case"audio":for(n=0;n<Zm.length;n++)kt(Zm[n],t);break;case"image":kt("error",t),kt("load",t);break;case"details":kt("toggle",t);break;case"embed":case"source":case"link":kt("error",t),kt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(v in r)if(r.hasOwnProperty(v)&&(n=r[v],n!=null))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(we(137,e));default:nr(t,e,v,n,r,null)}return;default:if($R(e)){for(y in r)r.hasOwnProperty(y)&&(n=r[y],n!==void 0&&aT(t,e,y,n,r,void 0));return}}for(p in r)r.hasOwnProperty(p)&&(n=r[p],n!=null&&nr(t,e,p,n,r,null))}function Mre(t,e,r,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,a=null,f=null,p=null,m=null,v=null,y=null;for(S in r){var x=r[S];if(r.hasOwnProperty(S)&&x!=null)switch(S){case"checked":break;case"value":break;case"defaultValue":m=x;default:n.hasOwnProperty(S)||nr(t,e,S,null,n,x)}}for(var k in n){var S=n[k];if(x=r[k],n.hasOwnProperty(k)&&(S!=null||x!=null))switch(k){case"type":a=S;break;case"name":o=S;break;case"checked":v=S;break;case"defaultChecked":y=S;break;case"value":f=S;break;case"defaultValue":p=S;break;case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(we(137,e));break;default:S!==x&&nr(t,e,k,S,n,x)}}TE(t,f,p,m,v,y,a,o);return;case"select":S=f=p=k=null;for(a in r)if(m=r[a],r.hasOwnProperty(a)&&m!=null)switch(a){case"value":break;case"multiple":S=m;default:n.hasOwnProperty(a)||nr(t,e,a,null,n,m)}for(o in n)if(a=n[o],m=r[o],n.hasOwnProperty(o)&&(a!=null||m!=null))switch(o){case"value":k=a;break;case"defaultValue":p=a;break;case"multiple":f=a;default:a!==m&&nr(t,e,o,a,n,m)}e=p,r=f,n=S,k!=null?uf(t,!!r,k,!1):!!n!=!!r&&(e!=null?uf(t,!!r,e,!0):uf(t,!!r,r?[]:"",!1));return;case"textarea":S=k=null;for(p in r)if(o=r[p],r.hasOwnProperty(p)&&o!=null&&!n.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:nr(t,e,p,null,n,o)}for(f in n)if(o=n[f],a=r[f],n.hasOwnProperty(f)&&(o!=null||a!=null))switch(f){case"value":k=o;break;case"defaultValue":S=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(we(91));break;default:o!==a&&nr(t,e,f,o,n,a)}hF(t,k,S);return;case"option":for(var O in r)if(k=r[O],r.hasOwnProperty(O)&&k!=null&&!n.hasOwnProperty(O))switch(O){case"selected":t.selected=!1;break;default:nr(t,e,O,null,n,k)}for(m in n)if(k=n[m],S=r[m],n.hasOwnProperty(m)&&k!==S&&(k!=null||S!=null))switch(m){case"selected":t.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:nr(t,e,m,k,n,S)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var C in r)k=r[C],r.hasOwnProperty(C)&&k!=null&&!n.hasOwnProperty(C)&&nr(t,e,C,null,n,k);for(v in n)if(k=n[v],S=r[v],n.hasOwnProperty(v)&&k!==S&&(k!=null||S!=null))switch(v){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(we(137,e));break;default:nr(t,e,v,k,n,S)}return;default:if($R(e)){for(var R in r)k=r[R],r.hasOwnProperty(R)&&k!==void 0&&!n.hasOwnProperty(R)&&aT(t,e,R,void 0,n,k);for(y in n)k=n[y],S=r[y],!n.hasOwnProperty(y)||k===S||k===void 0&&S===void 0||aT(t,e,y,k,n,S);return}}for(var E in r)k=r[E],r.hasOwnProperty(E)&&k!=null&&!n.hasOwnProperty(E)&&nr(t,e,E,null,n,k);for(x in n)k=n[x],S=r[x],!n.hasOwnProperty(x)||k===S||k==null&&S==null||nr(t,e,x,k,n,S)}var sT=null,lT=null;function Gx(t){return t.nodeType===9?t:t.ownerDocument}function uD(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function m7(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function cT(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var xO=null;function Ire(){var t=window.event;return t&&t.type==="popstate"?t===xO?!1:(xO=t,!0):(xO=null,!1)}var v7=typeof setTimeout=="function"?setTimeout:void 0,Lre=typeof clearTimeout=="function"?clearTimeout:void 0,dD=typeof Promise=="function"?Promise:void 0,Nre=typeof queueMicrotask=="function"?queueMicrotask:typeof dD<"u"?function(t){return dD.resolve(null).then(t).catch(Dre)}:v7;function Dre(t){setTimeout(function(){throw t})}function Jl(t){return t==="head"}function fD(t,e){var r=e,n=0,o=0;do{var a=r.nextSibling;if(t.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(0<n&&8>n){r=n;var f=t.ownerDocument;if(r&1&&Lm(f.documentElement),r&2&&Lm(f.body),r&4)for(r=f.head,Lm(r),f=r.firstChild;f;){var p=f.nextSibling,m=f.nodeName;f[Bv]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&f.rel.toLowerCase()==="stylesheet"||r.removeChild(f),f=p}}if(o===0){t.removeChild(a),rv(e);return}o--}else r==="$"||r==="$?"||r==="$!"?o++:n=r.charCodeAt(0)-48;else n=0;r=a}while(r);rv(e)}function uT(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var r=e;switch(e=e.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":uT(r),GR(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}t.removeChild(r)}}function Bre(t,e,r,n){for(;t.nodeType===1;){var o=r;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[Bv])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(a=t.getAttribute("rel"),a==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(a!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(a=t.getAttribute("src"),(a!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&a&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var a=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===a)return t}else return t;if(t=Qi(t.nextSibling),t===null)break}return null}function Fre(t,e,r){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=Qi(t.nextSibling),t===null))return null;return t}function dT(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function Hre(t,e){var r=t.ownerDocument;if(t.data!=="$?"||r.readyState==="complete")e();else{var n=function(){e(),r.removeEventListener("DOMContentLoaded",n)};r.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function Qi(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="F!"||e==="F")break;if(e==="/$")return null}}return t}var fT=null;function hD(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}function b7(t,e,r){switch(e=Gx(r),t){case"html":if(t=e.documentElement,!t)throw Error(we(452));return t;case"head":if(t=e.head,!t)throw Error(we(453));return t;case"body":if(t=e.body,!t)throw Error(we(454));return t;default:throw Error(we(451))}}function Lm(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);GR(t)}var Ei=new Map,pD=new Set;function $x(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Bs=Yt.d;Yt.d={f:Ure,r:Vre,D:qre,C:Yre,L:Wre,m:Xre,X:$re,S:Gre,M:Zre};function Ure(){var t=Bs.f(),e=Ww();return t||e}function Vre(t){var e=eh(t);e!==null&&e.tag===5&&e.type==="form"?dH(e):Bs.r(t)}var nh=typeof document>"u"?null:document;function y7(t,e,r){var n=nh;if(n&&typeof e=="string"&&e){var o=wi(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof r=="string"&&(o+='[crossorigin="'+r+'"]'),pD.has(o)||(pD.add(o),t={rel:t,crossOrigin:r,href:e},n.querySelector(o)===null&&(e=n.createElement("link"),zn(e,"link",t),bn(e),n.head.appendChild(e)))}}function qre(t){Bs.D(t),y7("dns-prefetch",t,null)}function Yre(t,e){Bs.C(t,e),y7("preconnect",t,e)}function Wre(t,e,r){Bs.L(t,e,r);var n=nh;if(n&&t&&e){var o='link[rel="preload"][as="'+wi(e)+'"]';e==="image"&&r&&r.imageSrcSet?(o+='[imagesrcset="'+wi(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(o+='[imagesizes="'+wi(r.imageSizes)+'"]')):o+='[href="'+wi(t)+'"]';var a=o;switch(e){case"style":a=Yf(t);break;case"script":a=oh(t)}Ei.has(a)||(t=yr({rel:"preload",href:e==="image"&&r&&r.imageSrcSet?void 0:t,as:e},r),Ei.set(a,t),n.querySelector(o)!==null||e==="style"&&n.querySelector($v(a))||e==="script"&&n.querySelector(Zv(a))||(e=n.createElement("link"),zn(e,"link",t),bn(e),n.head.appendChild(e)))}}function Xre(t,e){Bs.m(t,e);var r=nh;if(r&&t){var n=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+wi(n)+'"][href="'+wi(t)+'"]',a=o;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=oh(t)}if(!Ei.has(a)&&(t=yr({rel:"modulepreload",href:t},e),Ei.set(a,t),r.querySelector(o)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Zv(a)))return}n=r.createElement("link"),zn(n,"link",t),bn(n),r.head.appendChild(n)}}}function Gre(t,e,r){Bs.S(t,e,r);var n=nh;if(n&&t){var o=cf(n).hoistableStyles,a=Yf(t);e=e||"default";var f=o.get(a);if(!f){var p={loading:0,preload:null};if(f=n.querySelector($v(a)))p.loading=5;else{t=yr({rel:"stylesheet",href:t,"data-precedence":e},r),(r=Ei.get(a))&&R4(t,r);var m=f=n.createElement("link");bn(m),zn(m,"link",t),m._p=new Promise(function(v,y){m.onload=v,m.onerror=y}),m.addEventListener("load",function(){p.loading|=1}),m.addEventListener("error",function(){p.loading|=2}),p.loading|=4,J0(f,e,n)}f={type:"stylesheet",instance:f,count:1,state:p},o.set(a,f)}}}function $re(t,e){Bs.X(t,e);var r=nh;if(r&&t){var n=cf(r).hoistableScripts,o=oh(t),a=n.get(o);a||(a=r.querySelector(Zv(o)),a||(t=yr({src:t,async:!0},e),(e=Ei.get(o))&&P4(t,e),a=r.createElement("script"),bn(a),zn(a,"link",t),r.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},n.set(o,a))}}function Zre(t,e){Bs.M(t,e);var r=nh;if(r&&t){var n=cf(r).hoistableScripts,o=oh(t),a=n.get(o);a||(a=r.querySelector(Zv(o)),a||(t=yr({src:t,async:!0,type:"module"},e),(e=Ei.get(o))&&P4(t,e),a=r.createElement("script"),bn(a),zn(a,"link",t),r.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},n.set(o,a))}}function gD(t,e,r,n){var o=(o=Rl.current)?$x(o):null;if(!o)throw Error(we(446));switch(t){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(e=Yf(r.href),r=cf(o).hoistableStyles,n=r.get(e),n||(n={type:"style",instance:null,count:0,state:null},r.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){t=Yf(r.href);var a=cf(o).hoistableStyles,f=a.get(t);if(f||(o=o.ownerDocument||o,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(t,f),(a=o.querySelector($v(t)))&&!a._p&&(f.instance=a,f.state.loading=5),Ei.has(t)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Ei.set(t,r),a||Kre(o,t,r,f.state))),e&&n===null)throw Error(we(528,""));return f}if(e&&n!==null)throw Error(we(529,""));return null;case"script":return e=r.async,r=r.src,typeof r=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=oh(r),r=cf(o).hoistableScripts,n=r.get(e),n||(n={type:"script",instance:null,count:0,state:null},r.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(we(444,t))}}function Yf(t){return'href="'+wi(t)+'"'}function $v(t){return'link[rel="stylesheet"]['+t+"]"}function x7(t){return yr({},t,{"data-precedence":t.precedence,precedence:null})}function Kre(t,e,r,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),zn(e,"link",r),bn(e),t.head.appendChild(e))}function oh(t){return'[src="'+wi(t)+'"]'}function Zv(t){return"script[async]"+t}function mD(t,e,r){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+wi(r.href)+'"]');if(n)return e.instance=n,bn(n),n;var o=yr({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),bn(n),zn(n,"style",o),J0(n,r.precedence,t),e.instance=n;case"stylesheet":o=Yf(r.href);var a=t.querySelector($v(o));if(a)return e.state.loading|=4,e.instance=a,bn(a),a;n=x7(r),(o=Ei.get(o))&&R4(n,o),a=(t.ownerDocument||t).createElement("link"),bn(a);var f=a;return f._p=new Promise(function(p,m){f.onload=p,f.onerror=m}),zn(a,"link",n),e.state.loading|=4,J0(a,r.precedence,t),e.instance=a;case"script":return a=oh(r.src),(o=t.querySelector(Zv(a)))?(e.instance=o,bn(o),o):(n=r,(o=Ei.get(a))&&(n=yr({},r),P4(n,o)),t=t.ownerDocument||t,o=t.createElement("script"),bn(o),zn(o,"link",n),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(we(443,e.type))}else e.type==="stylesheet"&&!(e.state.loading&4)&&(n=e.instance,e.state.loading|=4,J0(n,r.precedence,t));return e.instance}function J0(t,e,r){for(var n=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=n.length?n[n.length-1]:null,a=o,f=0;f<n.length;f++){var p=n[f];if(p.dataset.precedence===e)a=p;else if(a!==o)break}a?a.parentNode.insertBefore(t,a.nextSibling):(e=r.nodeType===9?r.head:r,e.insertBefore(t,e.firstChild))}function R4(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function P4(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Q0=null;function vD(t,e,r){if(Q0===null){var n=new Map,o=Q0=new Map;o.set(r,n)}else o=Q0,n=o.get(r),n||(n=new Map,o.set(r,n));if(n.has(t))return n;for(n.set(t,null),r=r.getElementsByTagName(t),o=0;o<r.length;o++){var a=r[o];if(!(a[Bv]||a[Gn]||t==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var f=a.getAttribute(e)||"";f=t+f;var p=n.get(f);p?p.push(a):n.set(f,[a])}}return n}function bD(t,e,r){t=t.ownerDocument||t,t.head.insertBefore(r,e==="title"?t.querySelector("head > title"):null)}function Jre(t,e,r){if(r===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function w7(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}var Jm=null;function Qre(){}function ene(t,e,r){if(Jm===null)throw Error(we(475));var n=Jm;if(e.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&!(e.state.loading&4)){if(e.instance===null){var o=Yf(r.href),a=t.querySelector($v(o));if(a){t=a._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(n.count++,n=Zx.bind(n),t.then(n,n)),e.state.loading|=4,e.instance=a,bn(a);return}a=t.ownerDocument||t,r=x7(r),(o=Ei.get(o))&&R4(r,o),a=a.createElement("link"),bn(a);var f=a;f._p=new Promise(function(p,m){f.onload=p,f.onerror=m}),zn(a,"link",r),e.instance=a}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(e,t),(t=e.state.preload)&&!(e.state.loading&3)&&(n.count++,e=Zx.bind(n),t.addEventListener("load",e),t.addEventListener("error",e))}}function tne(){if(Jm===null)throw Error(we(475));var t=Jm;return t.stylesheets&&t.count===0&&hT(t,t.stylesheets),0<t.count?function(e){var r=setTimeout(function(){if(t.stylesheets&&hT(t,t.stylesheets),t.unsuspend){var n=t.unsuspend;t.unsuspend=null,n()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(r)}}:null}function Zx(){if(this.count--,this.count===0){if(this.stylesheets)hT(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Kx=null;function hT(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Kx=new Map,e.forEach(rne,t),Kx=null,Zx.call(t))}function rne(t,e){if(!(e.state.loading&4)){var r=Kx.get(t);if(r)var n=r.get(null);else{r=new Map,Kx.set(t,r);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<o.length;a++){var f=o[a];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(r.set(f.dataset.precedence,f),n=f)}n&&r.set(null,n)}o=e.instance,f=o.getAttribute("data-precedence"),a=r.get(f)||n,a===n&&r.set(null,o),r.set(f,o),this.count++,n=Zx.bind(this),o.addEventListener("load",n),o.addEventListener("error",n),a?a.parentNode.insertBefore(o,a.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var Qm={$$typeof:xs,Provider:null,Consumer:null,_currentValue:Qc,_currentValue2:Qc,_threadCount:0};function nne(t,e,r,n,o,a,f,p){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=UA(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=UA(0),this.hiddenUpdates=UA(null),this.identifierPrefix=n,this.onUncaughtError=o,this.onCaughtError=a,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function _7(t,e,r,n,o,a,f,p,m,v,y,x){return t=new nne(t,e,r,f,p,m,v,x),e=1,a===!0&&(e|=24),a=Bo(3,null,null,e),t.current=a,a.stateNode=t,e=a4(),e.refCount++,t.pooledCache=e,e.refCount++,a.memoizedState={element:n,isDehydrated:r,cache:e},l4(a),t}function k7(t){return t?(t=rf,t):rf}function j7(t,e,r,n,o,a){o=k7(o),n.context===null?n.context=o:n.pendingContext=o,n=Pl(e),n.payload={element:r},a=a===void 0?null:a,a!==null&&(n.callback=a),r=zl(t,n,e),r!==null&&(Vo(r,t,e),Om(r,t,e))}function yD(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function z4(t,e){yD(t,e),(t=t.alternate)&&yD(t,e)}function S7(t){if(t.tag===13){var e=th(t,67108864);e!==null&&Vo(e,t,67108864),z4(t,67108864)}}var Jx=!0;function one(t,e,r,n){var o=lt.T;lt.T=null;var a=Yt.p;try{Yt.p=2,M4(t,e,r,n)}finally{Yt.p=a,lt.T=o}}function ine(t,e,r,n){var o=lt.T;lt.T=null;var a=Yt.p;try{Yt.p=8,M4(t,e,r,n)}finally{Yt.p=a,lt.T=o}}function M4(t,e,r,n){if(Jx){var o=pT(n);if(o===null)yO(t,e,n,Qx,r),xD(t,n);else if(sne(o,t,e,r,n))n.stopPropagation();else if(xD(t,n),e&4&&-1<ane.indexOf(t)){for(;o!==null;){var a=eh(o);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var f=Pc(a.pendingLanes);if(f!==0){var p=a;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var m=1<<31-Ho(f);p.entanglements[1]|=m,f&=~m}Ha(a),!(Qt&6)&&(Vx=Ma()+500,Gv(0))}}break;case 13:p=th(a,2),p!==null&&Vo(p,a,2),Ww(),z4(a,2)}if(a=pT(n),a===null&&yO(t,e,n,Qx,r),a===o)break;o=a}o!==null&&n.stopPropagation()}else yO(t,e,n,null,r)}}function pT(t){return t=ZR(t),I4(t)}var Qx=null;function I4(t){if(Qx=null,t=Zd(t),t!==null){var e=Iv(t);if(e===null)t=null;else{var r=e.tag;if(r===13){if(t=ZB(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Qx=t,null}function C7(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Yee()){case eF:return 2;case tF:return 8;case Ax:case Wee:return 32;case rF:return 268435456;default:return 32}default:return 32}}var gT=!1,Ll=null,Nl=null,Dl=null,ev=new Map,tv=new Map,vl=[],ane="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".split(" ");function xD(t,e){switch(t){case"focusin":case"focusout":Ll=null;break;case"dragenter":case"dragleave":Nl=null;break;case"mouseover":case"mouseout":Dl=null;break;case"pointerover":case"pointerout":ev.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":tv.delete(e.pointerId)}}function nm(t,e,r,n,o,a){return t===null||t.nativeEvent!==a?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},e!==null&&(e=eh(e),e!==null&&S7(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function sne(t,e,r,n,o){switch(e){case"focusin":return Ll=nm(Ll,t,e,r,n,o),!0;case"dragenter":return Nl=nm(Nl,t,e,r,n,o),!0;case"mouseover":return Dl=nm(Dl,t,e,r,n,o),!0;case"pointerover":var a=o.pointerId;return ev.set(a,nm(ev.get(a)||null,t,e,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,tv.set(a,nm(tv.get(a)||null,t,e,r,n,o)),!0}return!1}function A7(t){var e=Zd(t.target);if(e!==null){var r=Iv(e);if(r!==null){if(e=r.tag,e===13){if(e=ZB(r),e!==null){t.blockedOn=e,ete(t.priority,function(){if(r.tag===13){var n=Uo();n=WR(n);var o=th(r,n);o!==null&&Vo(o,r,n),z4(r,n)}});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ex(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=pT(t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);PE=n,r.target.dispatchEvent(n),PE=null}else return e=eh(r),e!==null&&S7(e),t.blockedOn=r,!1;e.shift()}return!0}function wD(t,e,r){ex(t)&&r.delete(e)}function lne(){gT=!1,Ll!==null&&ex(Ll)&&(Ll=null),Nl!==null&&ex(Nl)&&(Nl=null),Dl!==null&&ex(Dl)&&(Dl=null),ev.forEach(wD),tv.forEach(wD)}function m0(t,e){t.blockedOn===e&&(t.blockedOn=null,gT||(gT=!0,cn.unstable_scheduleCallback(cn.unstable_NormalPriority,lne)))}var v0=null;function _D(t){v0!==t&&(v0=t,cn.unstable_scheduleCallback(cn.unstable_NormalPriority,function(){v0===t&&(v0=null);for(var e=0;e<t.length;e+=3){var r=t[e],n=t[e+1],o=t[e+2];if(typeof n!="function"){if(I4(n||r)===null)continue;break}var a=eh(r);a!==null&&(t.splice(e,3),e-=3,GE(a,{pending:!0,data:o,method:r.method,action:n},n,o))}}))}function rv(t){function e(m){return m0(m,t)}Ll!==null&&m0(Ll,t),Nl!==null&&m0(Nl,t),Dl!==null&&m0(Dl,t),ev.forEach(e),tv.forEach(e);for(var r=0;r<vl.length;r++){var n=vl[r];n.blockedOn===t&&(n.blockedOn=null)}for(;0<vl.length&&(r=vl[0],r.blockedOn===null);)A7(r),r.blockedOn===null&&vl.shift();if(r=(t.ownerDocument||t).$$reactFormReplay,r!=null)for(n=0;n<r.length;n+=3){var o=r[n],a=r[n+1],f=o[Oo]||null;if(typeof a=="function")f||_D(r);else if(f){var p=null;if(a&&a.hasAttribute("formAction")){if(o=a,f=a[Oo]||null)p=f.formAction;else if(I4(o)!==null)continue}else p=f.action;typeof p=="function"?r[n+1]=p:(r.splice(n,3),n-=3),_D(r)}}}function L4(t){this._internalRoot=t}Zw.prototype.render=L4.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(we(409));var r=e.current,n=Uo();j7(r,n,t,e,null,null)};Zw.prototype.unmount=L4.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;j7(t.current,2,null,t,null,null),Ww(),e[Qf]=null}};function Zw(t){this._internalRoot=t}Zw.prototype.unstable_scheduleHydration=function(t){if(t){var e=sF();t={blockedOn:null,target:t,priority:e};for(var r=0;r<vl.length&&e!==0&&e<vl[r].priority;r++);vl.splice(r,0,t),r===0&&A7(t)}};var kD=GB.version;if(kD!=="19.1.1")throw Error(we(527,kD,"19.1.1"));Yt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(we(188)):(t=Object.keys(t).join(","),Error(we(268,t)));return t=Dee(e),t=t!==null?KB(t):null,t=t===null?null:t.stateNode,t};var cne={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:lt,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var b0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!b0.isDisabled&&b0.supportsFiber)try{Lv=b0.inject(cne),Fo=b0}catch{}}Mw.createRoot=function(t,e){if(!$B(t))throw Error(we(299));var r=!1,n="",o=_H,a=kH,f=jH,p=null;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(a=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(p=e.unstable_transitionCallbacks)),e=_7(t,1,!1,null,null,r,n,o,a,f,p,null),t[Qf]=e.current,T4(t),new L4(e)};Mw.hydrateRoot=function(t,e,r){if(!$B(t))throw Error(we(299));var n=!1,o="",a=_H,f=kH,p=jH,m=null,v=null;return r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(a=r.onUncaughtError),r.onCaughtError!==void 0&&(f=r.onCaughtError),r.onRecoverableError!==void 0&&(p=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(m=r.unstable_transitionCallbacks),r.formState!==void 0&&(v=r.formState)),e=_7(t,1,!0,e,r??null,n,o,a,f,p,m,v),e.context=k7(null),r=e.current,n=Uo(),n=WR(n),o=Pl(n),o.callback=null,zl(r,o,n),r=n,e.current.lanes=r,Dv(e,r),Ha(e),t[Qf]=e.current,T4(t),new Zw(e)};Mw.version="19.1.1";function O7(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(O7)}catch(t){console.error(t)}}O7(),IB.exports=Mw;var une=IB.exports,Kv=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},pu=typeof window>"u"||"Deno"in globalThis;function _o(){}function dne(t,e){return typeof t=="function"?t(e):t}function mT(t){return typeof t=="number"&&t>=0&&t!==1/0}function E7(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Bl(t,e){return typeof t=="function"?t(e):t}function gi(t,e){return typeof t=="function"?t(e):t}function jD(t,e){const{type:r="all",exact:n,fetchStatus:o,predicate:a,queryKey:f,stale:p}=t;if(f){if(n){if(e.queryHash!==N4(f,e.options))return!1}else if(!ov(e.queryKey,f))return!1}if(r!=="all"){const m=e.isActive();if(r==="active"&&!m||r==="inactive"&&m)return!1}return!(typeof p=="boolean"&&e.isStale()!==p||o&&o!==e.state.fetchStatus||a&&!a(e))}function SD(t,e){const{exact:r,status:n,predicate:o,mutationKey:a}=t;if(a){if(!e.options.mutationKey)return!1;if(r){if(nv(e.options.mutationKey)!==nv(a))return!1}else if(!ov(e.options.mutationKey,a))return!1}return!(n&&e.state.status!==n||o&&!o(e))}function N4(t,e){return((e==null?void 0:e.queryKeyHashFn)||nv)(t)}function nv(t){return JSON.stringify(t,(e,r)=>bT(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function ov(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(r=>ov(t[r],e[r])):!1}function T7(t,e){if(t===e)return t;const r=CD(t)&&CD(e);if(r||bT(t)&&bT(e)){const n=r?t:Object.keys(t),o=n.length,a=r?e:Object.keys(e),f=a.length,p=r?[]:{},m=new Set(n);let v=0;for(let y=0;y<f;y++){const x=r?y:a[y];(!r&&m.has(x)||r)&&t[x]===void 0&&e[x]===void 0?(p[x]=void 0,v++):(p[x]=T7(t[x],e[x]),p[x]===t[x]&&t[x]!==void 0&&v++)}return o===f&&v===o?t:p}return e}function vT(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(t[r]!==e[r])return!1;return!0}function CD(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function bT(t){if(!AD(t))return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(!AD(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function AD(t){return Object.prototype.toString.call(t)==="[object Object]"}function fne(t){return new Promise(e=>{setTimeout(e,t)})}function yT(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?T7(t,e):e}function hne(t,e,r=0){const n=[...t,e];return r&&n.length>r?n.slice(1):n}function pne(t,e,r=0){const n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}var D4=Symbol();function R7(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===D4?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function gne(t,e){return typeof t=="function"?t(...e):!!t}var qc,xl,_f,jB,mne=(jB=class extends Kv{constructor(){super();Je(this,qc,void 0);Je(this,xl,void 0);Je(this,_f,void 0);qe(this,_f,e=>{if(!pu&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){le(this,xl)||this.setEventListener(le(this,_f))}onUnsubscribe(){var e;this.hasListeners()||((e=le(this,xl))==null||e.call(this),qe(this,xl,void 0))}setEventListener(e){var r;qe(this,_f,e),(r=le(this,xl))==null||r.call(this),qe(this,xl,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){le(this,qc)!==e&&(qe(this,qc,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(r=>{r(e)})}isFocused(){var e;return typeof le(this,qc)=="boolean"?le(this,qc):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},qc=new WeakMap,xl=new WeakMap,_f=new WeakMap,jB),B4=new mne,kf,wl,jf,SB,vne=(SB=class extends Kv{constructor(){super();Je(this,kf,!0);Je(this,wl,void 0);Je(this,jf,void 0);qe(this,jf,e=>{if(!pu&&window.addEventListener){const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){le(this,wl)||this.setEventListener(le(this,jf))}onUnsubscribe(){var e;this.hasListeners()||((e=le(this,wl))==null||e.call(this),qe(this,wl,void 0))}setEventListener(e){var r;qe(this,jf,e),(r=le(this,wl))==null||r.call(this),qe(this,wl,e(this.setOnline.bind(this)))}setOnline(e){le(this,kf)!==e&&(qe(this,kf,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return le(this,kf)}},kf=new WeakMap,wl=new WeakMap,jf=new WeakMap,SB),ew=new vne;function xT(){let t,e;const r=new Promise((o,a)=>{t=o,e=a});r.status="pending",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:"fulfilled",value:o}),t(o)},r.reject=o=>{n({status:"rejected",reason:o}),e(o)},r}function bne(t){return Math.min(1e3*2**t,3e4)}function P7(t){return(t??"online")==="online"?ew.isOnline():!0}var z7=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function M7(t){let e=!1,r=0,n;const o=xT(),a=()=>o.status!=="pending",f=C=>{var R;a()||(k(new z7(C)),(R=t.abort)==null||R.call(t))},p=()=>{e=!0},m=()=>{e=!1},v=()=>B4.isFocused()&&(t.networkMode==="always"||ew.isOnline())&&t.canRun(),y=()=>P7(t.networkMode)&&t.canRun(),x=C=>{a()||(n==null||n(),o.resolve(C))},k=C=>{a()||(n==null||n(),o.reject(C))},S=()=>new Promise(C=>{var R;n=E=>{(a()||v())&&C(E)},(R=t.onPause)==null||R.call(t)}).then(()=>{var C;n=void 0,a()||(C=t.onContinue)==null||C.call(t)}),O=()=>{if(a())return;let C;const R=r===0?t.initialPromise:void 0;try{C=R??t.fn()}catch(E){C=Promise.reject(E)}Promise.resolve(C).then(x).catch(E=>{var U;if(a())return;const P=t.retry??(pu?0:3),M=t.retryDelay??bne,I=typeof M=="function"?M(r,E):M,B=P===!0||typeof P=="number"&&r<P||typeof P=="function"&&P(r,E);if(e||!B){k(E);return}r++,(U=t.onFail)==null||U.call(t,r,E),fne(I).then(()=>v()?void 0:S()).then(()=>{e?k(E):O()})})};return{promise:o,status:()=>o.status,cancel:f,continue:()=>(n==null||n(),o),cancelRetry:p,continueRetry:m,canStart:y,start:()=>(y()?O():S().then(O),o)}}var yne=t=>setTimeout(t,0);function xne(){let t=[],e=0,r=p=>{p()},n=p=>{p()},o=yne;const a=p=>{e?t.push(p):o(()=>{r(p)})},f=()=>{const p=t;t=[],p.length&&o(()=>{n(()=>{p.forEach(m=>{r(m)})})})};return{batch:p=>{let m;e++;try{m=p()}finally{e--,e||f()}return m},batchCalls:p=>(...m)=>{a(()=>{p(...m)})},schedule:a,setNotifyFunction:p=>{r=p},setBatchNotifyFunction:p=>{n=p},setScheduler:p=>{o=p}}}var En=xne(),Yc,CB,I7=(CB=class{constructor(){Je(this,Yc,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mT(this.gcTime)&&qe(this,Yc,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(pu?1/0:5*60*1e3))}clearGcTimeout(){le(this,Yc)&&(clearTimeout(le(this,Yc)),qe(this,Yc,void 0))}},Yc=new WeakMap,CB),Sf,Cf,hi,Wc,mn,_v,Xc,qi,gs,AB,wne=(AB=class extends I7{constructor(e){super();Je(this,qi);Je(this,Sf,void 0);Je(this,Cf,void 0);Je(this,hi,void 0);Je(this,Wc,void 0);Je(this,mn,void 0);Je(this,_v,void 0);Je(this,Xc,void 0);qe(this,Xc,!1),qe(this,_v,e.defaultOptions),this.setOptions(e.options),this.observers=[],qe(this,Wc,e.client),qe(this,hi,le(this,Wc).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,qe(this,Sf,_ne(this.options)),this.state=e.state??le(this,Sf),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=le(this,mn))==null?void 0:e.promise}setOptions(e){this.options={...le(this,_v),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&le(this,hi).remove(this)}setData(e,r){const n=yT(this.state.data,e,this.options);return At(this,qi,gs).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(e,r){At(this,qi,gs).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var n,o;const r=(n=le(this,mn))==null?void 0:n.promise;return(o=le(this,mn))==null||o.cancel(e),r?r.then(_o).catch(_o):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(le(this,Sf))}isActive(){return this.observers.some(e=>gi(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===D4||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Bl(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!E7(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=this.observers.find(n=>n.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=le(this,mn))==null||r.continue()}onOnline(){var r;const e=this.observers.find(n=>n.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=le(this,mn))==null||r.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),le(this,hi).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(le(this,mn)&&(le(this,Xc)?le(this,mn).cancel({revert:!0}):le(this,mn).cancelRetry()),this.scheduleGc()),le(this,hi).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||At(this,qi,gs).call(this,{type:"invalidate"})}async fetch(e,r){var m,v,y,x,k,S,O,C,R,E,P,M;if(this.state.fetchStatus!=="idle"&&((m=le(this,mn))==null?void 0:m.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(le(this,mn))return le(this,mn).continueRetry(),le(this,mn).promise}if(e&&this.setOptions(e),!this.options.queryFn){const I=this.observers.find(B=>B.options.queryFn);I&&this.setOptions(I.options)}const n=new AbortController,o=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>(qe(this,Xc,!0),n.signal)})},a=()=>{const I=R7(this.options,r),U=(()=>{const H={client:le(this,Wc),queryKey:this.queryKey,meta:this.meta};return o(H),H})();return qe(this,Xc,!1),this.options.persister?this.options.persister(I,U,this):I(U)},p=(()=>{const I={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:le(this,Wc),state:this.state,fetchFn:a};return o(I),I})();(v=this.options.behavior)==null||v.onFetch(p,this),qe(this,Cf,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=p.fetchOptions)==null?void 0:y.meta))&&At(this,qi,gs).call(this,{type:"fetch",meta:(x=p.fetchOptions)==null?void 0:x.meta}),qe(this,mn,M7({initialPromise:r==null?void 0:r.initialPromise,fn:p.fetchFn,abort:n.abort.bind(n),onFail:(I,B)=>{At(this,qi,gs).call(this,{type:"failed",failureCount:I,error:B})},onPause:()=>{At(this,qi,gs).call(this,{type:"pause"})},onContinue:()=>{At(this,qi,gs).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const I=await le(this,mn).start();if(I===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(I),(S=(k=le(this,hi).config).onSuccess)==null||S.call(k,I,this),(C=(O=le(this,hi).config).onSettled)==null||C.call(O,I,this.state.error,this),I}catch(I){if(I instanceof z7){if(I.silent)return le(this,mn).promise;if(I.revert){if(this.setState({...le(this,Cf),fetchStatus:"idle"}),this.state.data===void 0)throw I;return this.state.data}}throw At(this,qi,gs).call(this,{type:"error",error:I}),(E=(R=le(this,hi).config).onError)==null||E.call(R,I,this),(M=(P=le(this,hi).config).onSettled)==null||M.call(P,this.state.data,I,this),I}finally{this.scheduleGc()}}},Sf=new WeakMap,Cf=new WeakMap,hi=new WeakMap,Wc=new WeakMap,mn=new WeakMap,_v=new WeakMap,Xc=new WeakMap,qi=new WeakSet,gs=function(e){const r=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...L7(n.data,this.options),fetchMeta:e.meta??null};case"success":const o={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return qe(this,Cf,e.manual?o:void 0),o;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=r(this.state),En.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),le(this,hi).notify({query:this,type:"updated",action:e})})},AB);function L7(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:P7(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function _ne(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,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":"pending",fetchStatus:"idle"}}var _a,OB,kne=(OB=class extends Kv{constructor(e={}){super();Je(this,_a,void 0);this.config=e,qe(this,_a,new Map)}build(e,r,n){const o=r.queryKey,a=r.queryHash??N4(o,r);let f=this.get(a);return f||(f=new wne({client:e,queryKey:o,queryHash:a,options:e.defaultQueryOptions(r),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(f)),f}add(e){le(this,_a).has(e.queryHash)||(le(this,_a).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=le(this,_a).get(e.queryHash);r&&(e.destroy(),r===e&&le(this,_a).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){En.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return le(this,_a).get(e)}getAll(){return[...le(this,_a).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(n=>jD(r,n))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(n=>jD(e,n)):r}notify(e){En.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){En.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){En.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},_a=new WeakMap,OB),ka,Qn,Gc,ja,ul,EB,jne=(EB=class extends I7{constructor(e){super();Je(this,ja);Je(this,ka,void 0);Je(this,Qn,void 0);Je(this,Gc,void 0);this.mutationId=e.mutationId,qe(this,Qn,e.mutationCache),qe(this,ka,[]),this.state=e.state||Sne(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){le(this,ka).includes(e)||(le(this,ka).push(e),this.clearGcTimeout(),le(this,Qn).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){qe(this,ka,le(this,ka).filter(r=>r!==e)),this.scheduleGc(),le(this,Qn).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){le(this,ka).length||(this.state.status==="pending"?this.scheduleGc():le(this,Qn).remove(this))}continue(){var e;return((e=le(this,Gc))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var a,f,p,m,v,y,x,k,S,O,C,R,E,P,M,I,B,U,H,V;const r=()=>{At(this,ja,ul).call(this,{type:"continue"})};qe(this,Gc,M7({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(W,G)=>{At(this,ja,ul).call(this,{type:"failed",failureCount:W,error:G})},onPause:()=>{At(this,ja,ul).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>le(this,Qn).canRun(this)}));const n=this.state.status==="pending",o=!le(this,Gc).canStart();try{if(n)r();else{At(this,ja,ul).call(this,{type:"pending",variables:e,isPaused:o}),await((f=(a=le(this,Qn).config).onMutate)==null?void 0:f.call(a,e,this));const G=await((m=(p=this.options).onMutate)==null?void 0:m.call(p,e));G!==this.state.context&&At(this,ja,ul).call(this,{type:"pending",context:G,variables:e,isPaused:o})}const W=await le(this,Gc).start();return await((y=(v=le(this,Qn).config).onSuccess)==null?void 0:y.call(v,W,e,this.state.context,this)),await((k=(x=this.options).onSuccess)==null?void 0:k.call(x,W,e,this.state.context)),await((O=(S=le(this,Qn).config).onSettled)==null?void 0:O.call(S,W,null,this.state.variables,this.state.context,this)),await((R=(C=this.options).onSettled)==null?void 0:R.call(C,W,null,e,this.state.context)),At(this,ja,ul).call(this,{type:"success",data:W}),W}catch(W){try{throw await((P=(E=le(this,Qn).config).onError)==null?void 0:P.call(E,W,e,this.state.context,this)),await((I=(M=this.options).onError)==null?void 0:I.call(M,W,e,this.state.context)),await((U=(B=le(this,Qn).config).onSettled)==null?void 0:U.call(B,void 0,W,this.state.variables,this.state.context,this)),await((V=(H=this.options).onSettled)==null?void 0:V.call(H,void 0,W,e,this.state.context)),W}finally{At(this,ja,ul).call(this,{type:"error",error:W})}}finally{le(this,Qn).runNext(this)}}},ka=new WeakMap,Qn=new WeakMap,Gc=new WeakMap,ja=new WeakSet,ul=function(e){const r=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),En.batch(()=>{le(this,ka).forEach(n=>{n.onMutationUpdate(e)}),le(this,Qn).notify({mutation:this,type:"updated",action:e})})},EB);function Sne(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ms,Yi,kv,TB,Cne=(TB=class extends Kv{constructor(e={}){super();Je(this,ms,void 0);Je(this,Yi,void 0);Je(this,kv,void 0);this.config=e,qe(this,ms,new Set),qe(this,Yi,new Map),qe(this,kv,0)}build(e,r,n){const o=new jne({mutationCache:this,mutationId:++n0(this,kv)._,options:e.defaultMutationOptions(r),state:n});return this.add(o),o}add(e){le(this,ms).add(e);const r=y0(e);if(typeof r=="string"){const n=le(this,Yi).get(r);n?n.push(e):le(this,Yi).set(r,[e])}this.notify({type:"added",mutation:e})}remove(e){if(le(this,ms).delete(e)){const r=y0(e);if(typeof r=="string"){const n=le(this,Yi).get(r);if(n)if(n.length>1){const o=n.indexOf(e);o!==-1&&n.splice(o,1)}else n[0]===e&&le(this,Yi).delete(r)}}this.notify({type:"removed",mutation:e})}canRun(e){const r=y0(e);if(typeof r=="string"){const n=le(this,Yi).get(r),o=n==null?void 0:n.find(a=>a.state.status==="pending");return!o||o===e}else return!0}runNext(e){var n;const r=y0(e);if(typeof r=="string"){const o=(n=le(this,Yi).get(r))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){En.batch(()=>{le(this,ms).forEach(e=>{this.notify({type:"removed",mutation:e})}),le(this,ms).clear(),le(this,Yi).clear()})}getAll(){return Array.from(le(this,ms))}find(e){const r={exact:!0,...e};return this.getAll().find(n=>SD(r,n))}findAll(e={}){return this.getAll().filter(r=>SD(e,r))}notify(e){En.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){const e=this.getAll().filter(r=>r.state.isPaused);return En.batch(()=>Promise.all(e.map(r=>r.continue().catch(_o))))}},ms=new WeakMap,Yi=new WeakMap,kv=new WeakMap,TB);function y0(t){var e;return(e=t.options.scope)==null?void 0:e.id}function OD(t){return{onFetch:(e,r)=>{var y,x,k,S,O;const n=e.options,o=(k=(x=(y=e.fetchOptions)==null?void 0:y.meta)==null?void 0:x.fetchMore)==null?void 0:k.direction,a=((S=e.state.data)==null?void 0:S.pages)||[],f=((O=e.state.data)==null?void 0:O.pageParams)||[];let p={pages:[],pageParams:[]},m=0;const v=async()=>{let C=!1;const R=M=>{Object.defineProperty(M,"signal",{enumerable:!0,get:()=>(e.signal.aborted?C=!0:e.signal.addEventListener("abort",()=>{C=!0}),e.signal)})},E=R7(e.options,e.fetchOptions),P=async(M,I,B)=>{if(C)return Promise.reject();if(I==null&&M.pages.length)return Promise.resolve(M);const H=(()=>{const Z={client:e.client,queryKey:e.queryKey,pageParam:I,direction:B?"backward":"forward",meta:e.options.meta};return R(Z),Z})(),V=await E(H),{maxPages:W}=e.options,G=B?pne:hne;return{pages:G(M.pages,V,W),pageParams:G(M.pageParams,I,W)}};if(o&&a.length){const M=o==="backward",I=M?Ane:ED,B={pages:a,pageParams:f},U=I(n,B);p=await P(B,U,M)}else{const M=t??a.length;do{const I=m===0?f[0]??n.initialPageParam:ED(n,p);if(m>0&&I==null)break;p=await P(p,I),m++}while(m<M)}return p};e.options.persister?e.fetchFn=()=>{var C,R;return(R=(C=e.options).persister)==null?void 0:R.call(C,v,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=v}}}function ED(t,{pages:e,pageParams:r}){const n=e.length-1;return e.length>0?t.getNextPageParam(e[n],e,r[n],r):void 0}function Ane(t,{pages:e,pageParams:r}){var n;return e.length>0?(n=t.getPreviousPageParam)==null?void 0:n.call(t,e[0],e,r[0],r):void 0}var Ir,_l,kl,Af,Of,jl,Ef,Tf,RB,One=(RB=class{constructor(t={}){Je(this,Ir,void 0);Je(this,_l,void 0);Je(this,kl,void 0);Je(this,Af,void 0);Je(this,Of,void 0);Je(this,jl,void 0);Je(this,Ef,void 0);Je(this,Tf,void 0);qe(this,Ir,t.queryCache||new kne),qe(this,_l,t.mutationCache||new Cne),qe(this,kl,t.defaultOptions||{}),qe(this,Af,new Map),qe(this,Of,new Map),qe(this,jl,0)}mount(){n0(this,jl)._++,le(this,jl)===1&&(qe(this,Ef,B4.subscribe(async t=>{t&&(await this.resumePausedMutations(),le(this,Ir).onFocus())})),qe(this,Tf,ew.subscribe(async t=>{t&&(await this.resumePausedMutations(),le(this,Ir).onOnline())})))}unmount(){var t,e;n0(this,jl)._--,le(this,jl)===0&&((t=le(this,Ef))==null||t.call(this),qe(this,Ef,void 0),(e=le(this,Tf))==null||e.call(this),qe(this,Tf,void 0))}isFetching(t){return le(this,Ir).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return le(this,_l).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=le(this,Ir).get(e.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),r=le(this,Ir).build(this,e),n=r.state.data;return n===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Bl(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return le(this,Ir).findAll(t).map(({queryKey:e,state:r})=>{const n=r.data;return[e,n]})}setQueryData(t,e,r){const n=this.defaultQueryOptions({queryKey:t}),o=le(this,Ir).get(n.queryHash),a=o==null?void 0:o.state.data,f=dne(e,a);if(f!==void 0)return le(this,Ir).build(this,n).setData(f,{...r,manual:!0})}setQueriesData(t,e,r){return En.batch(()=>le(this,Ir).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,r)]))}getQueryState(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=le(this,Ir).get(e.queryHash))==null?void 0:r.state}removeQueries(t){const e=le(this,Ir);En.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=le(this,Ir);return En.batch(()=>(r.findAll(t).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const r={revert:!0,...e},n=En.batch(()=>le(this,Ir).findAll(t).map(o=>o.cancel(r)));return Promise.all(n).then(_o).catch(_o)}invalidateQueries(t,e={}){return En.batch(()=>(le(this,Ir).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const r={...e,cancelRefetch:e.cancelRefetch??!0},n=En.batch(()=>le(this,Ir).findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let a=o.fetch(void 0,r);return r.throwOnError||(a=a.catch(_o)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(_o)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=le(this,Ir).build(this,e);return r.isStaleByTime(Bl(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(_o).catch(_o)}fetchInfiniteQuery(t){return t.behavior=OD(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(_o).catch(_o)}ensureInfiniteQueryData(t){return t.behavior=OD(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return ew.isOnline()?le(this,_l).resumePausedMutations():Promise.resolve()}getQueryCache(){return le(this,Ir)}getMutationCache(){return le(this,_l)}getDefaultOptions(){return le(this,kl)}setDefaultOptions(t){qe(this,kl,t)}setQueryDefaults(t,e){le(this,Af).set(nv(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...le(this,Af).values()],r={};return e.forEach(n=>{ov(t,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(t,e){le(this,Of).set(nv(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...le(this,Of).values()],r={};return e.forEach(n=>{ov(t,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={...le(this,kl).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=N4(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===D4&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...le(this,kl).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){le(this,Ir).clear(),le(this,_l).clear()}},Ir=new WeakMap,_l=new WeakMap,kl=new WeakMap,Af=new WeakMap,Of=new WeakMap,jl=new WeakMap,Ef=new WeakMap,Tf=new WeakMap,RB),vo,Ot,jv,eo,$c,Rf,vs,Sl,Sv,Pf,zf,Zc,Kc,Cl,Mf,Jc,mm,Cv,wT,Av,_T,Ov,kT,Ev,jT,Tv,ST,Rv,CT,Pv,AT,Pw,N7,PB,Ene=(PB=class extends Kv{constructor(e,r){super();Je(this,Jc);Je(this,Cv);Je(this,Av);Je(this,Ov);Je(this,Ev);Je(this,Tv);Je(this,Rv);Je(this,Pv);Je(this,Pw);Je(this,vo,void 0);Je(this,Ot,void 0);Je(this,jv,void 0);Je(this,eo,void 0);Je(this,$c,void 0);Je(this,Rf,void 0);Je(this,vs,void 0);Je(this,Sl,void 0);Je(this,Sv,void 0);Je(this,Pf,void 0);Je(this,zf,void 0);Je(this,Zc,void 0);Je(this,Kc,void 0);Je(this,Cl,void 0);Je(this,Mf,new Set);this.options=r,qe(this,vo,e),qe(this,Sl,null),qe(this,vs,xT()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(le(this,Ot).addObserver(this),TD(le(this,Ot),this.options)?At(this,Jc,mm).call(this):this.updateResult(),At(this,Ev,jT).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return OT(le(this,Ot),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return OT(le(this,Ot),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,At(this,Tv,ST).call(this),At(this,Rv,CT).call(this),le(this,Ot).removeObserver(this)}setOptions(e){const r=this.options,n=le(this,Ot);if(this.options=le(this,vo).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof gi(this.options.enabled,le(this,Ot))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");At(this,Pv,AT).call(this),le(this,Ot).setOptions(this.options),r._defaulted&&!vT(this.options,r)&&le(this,vo).getQueryCache().notify({type:"observerOptionsUpdated",query:le(this,Ot),observer:this});const o=this.hasListeners();o&&RD(le(this,Ot),n,this.options,r)&&At(this,Jc,mm).call(this),this.updateResult(),o&&(le(this,Ot)!==n||gi(this.options.enabled,le(this,Ot))!==gi(r.enabled,le(this,Ot))||Bl(this.options.staleTime,le(this,Ot))!==Bl(r.staleTime,le(this,Ot)))&&At(this,Cv,wT).call(this);const a=At(this,Av,_T).call(this);o&&(le(this,Ot)!==n||gi(this.options.enabled,le(this,Ot))!==gi(r.enabled,le(this,Ot))||a!==le(this,Cl))&&At(this,Ov,kT).call(this,a)}getOptimisticResult(e){const r=le(this,vo).getQueryCache().build(le(this,vo),e),n=this.createResult(r,e);return Rne(this,n)&&(qe(this,eo,n),qe(this,Rf,this.options),qe(this,$c,le(this,Ot).state)),n}getCurrentResult(){return le(this,eo)}trackResult(e,r){return new Proxy(e,{get:(n,o)=>(this.trackProp(o),r==null||r(o),o==="promise"&&!this.options.experimental_prefetchInRender&&le(this,vs).status==="pending"&&le(this,vs).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,o))})}trackProp(e){le(this,Mf).add(e)}getCurrentQuery(){return le(this,Ot)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const r=le(this,vo).defaultQueryOptions(e),n=le(this,vo).getQueryCache().build(le(this,vo),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(e){return At(this,Jc,mm).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),le(this,eo)))}createResult(e,r){var W;const n=le(this,Ot),o=this.options,a=le(this,eo),f=le(this,$c),p=le(this,Rf),v=e!==n?e.state:le(this,jv),{state:y}=e;let x={...y},k=!1,S;if(r._optimisticResults){const G=this.hasListeners(),Z=!G&&TD(e,r),K=G&&RD(e,n,r,o);(Z||K)&&(x={...x,...L7(y.data,e.options)}),r._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:O,errorUpdatedAt:C,status:R}=x;S=x.data;let E=!1;if(r.placeholderData!==void 0&&S===void 0&&R==="pending"){let G;a!=null&&a.isPlaceholderData&&r.placeholderData===(p==null?void 0:p.placeholderData)?(G=a.data,E=!0):G=typeof r.placeholderData=="function"?r.placeholderData((W=le(this,zf))==null?void 0:W.state.data,le(this,zf)):r.placeholderData,G!==void 0&&(R="success",S=yT(a==null?void 0:a.data,G,r),k=!0)}if(r.select&&S!==void 0&&!E)if(a&&S===(f==null?void 0:f.data)&&r.select===le(this,Sv))S=le(this,Pf);else try{qe(this,Sv,r.select),S=r.select(S),S=yT(a==null?void 0:a.data,S,r),qe(this,Pf,S),qe(this,Sl,null)}catch(G){qe(this,Sl,G)}le(this,Sl)&&(O=le(this,Sl),S=le(this,Pf),C=Date.now(),R="error");const P=x.fetchStatus==="fetching",M=R==="pending",I=R==="error",B=M&&P,U=S!==void 0,V={status:R,fetchStatus:x.fetchStatus,isPending:M,isSuccess:R==="success",isError:I,isInitialLoading:B,isLoading:B,data:S,dataUpdatedAt:x.dataUpdatedAt,error:O,errorUpdatedAt:C,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>v.dataUpdateCount||x.errorUpdateCount>v.errorUpdateCount,isFetching:P,isRefetching:P&&!M,isLoadingError:I&&!U,isPaused:x.fetchStatus==="paused",isPlaceholderData:k,isRefetchError:I&&U,isStale:F4(e,r),refetch:this.refetch,promise:le(this,vs),isEnabled:gi(r.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const G=Q=>{V.status==="error"?Q.reject(V.error):V.data!==void 0&&Q.resolve(V.data)},Z=()=>{const Q=qe(this,vs,V.promise=xT());G(Q)},K=le(this,vs);switch(K.status){case"pending":e.queryHash===n.queryHash&&G(K);break;case"fulfilled":(V.status==="error"||V.data!==K.value)&&Z();break;case"rejected":(V.status!=="error"||V.error!==K.reason)&&Z();break}}return V}updateResult(){const e=le(this,eo),r=this.createResult(le(this,Ot),this.options);if(qe(this,$c,le(this,Ot).state),qe(this,Rf,this.options),le(this,$c).data!==void 0&&qe(this,zf,le(this,Ot)),vT(r,e))return;qe(this,eo,r);const n=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!le(this,Mf).size)return!0;const f=new Set(a??le(this,Mf));return this.options.throwOnError&&f.add("error"),Object.keys(le(this,eo)).some(p=>{const m=p;return le(this,eo)[m]!==e[m]&&f.has(m)})};At(this,Pw,N7).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&At(this,Ev,jT).call(this)}},vo=new WeakMap,Ot=new WeakMap,jv=new WeakMap,eo=new WeakMap,$c=new WeakMap,Rf=new WeakMap,vs=new WeakMap,Sl=new WeakMap,Sv=new WeakMap,Pf=new WeakMap,zf=new WeakMap,Zc=new WeakMap,Kc=new WeakMap,Cl=new WeakMap,Mf=new WeakMap,Jc=new WeakSet,mm=function(e){At(this,Pv,AT).call(this);let r=le(this,Ot).fetch(this.options,e);return e!=null&&e.throwOnError||(r=r.catch(_o)),r},Cv=new WeakSet,wT=function(){At(this,Tv,ST).call(this);const e=Bl(this.options.staleTime,le(this,Ot));if(pu||le(this,eo).isStale||!mT(e))return;const n=E7(le(this,eo).dataUpdatedAt,e)+1;qe(this,Zc,setTimeout(()=>{le(this,eo).isStale||this.updateResult()},n))},Av=new WeakSet,_T=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(le(this,Ot)):this.options.refetchInterval)??!1},Ov=new WeakSet,kT=function(e){At(this,Rv,CT).call(this),qe(this,Cl,e),!(pu||gi(this.options.enabled,le(this,Ot))===!1||!mT(le(this,Cl))||le(this,Cl)===0)&&qe(this,Kc,setInterval(()=>{(this.options.refetchIntervalInBackground||B4.isFocused())&&At(this,Jc,mm).call(this)},le(this,Cl)))},Ev=new WeakSet,jT=function(){At(this,Cv,wT).call(this),At(this,Ov,kT).call(this,At(this,Av,_T).call(this))},Tv=new WeakSet,ST=function(){le(this,Zc)&&(clearTimeout(le(this,Zc)),qe(this,Zc,void 0))},Rv=new WeakSet,CT=function(){le(this,Kc)&&(clearInterval(le(this,Kc)),qe(this,Kc,void 0))},Pv=new WeakSet,AT=function(){const e=le(this,vo).getQueryCache().build(le(this,vo),this.options);if(e===le(this,Ot))return;const r=le(this,Ot);qe(this,Ot,e),qe(this,jv,e.state),this.hasListeners()&&(r==null||r.removeObserver(this),e.addObserver(this))},Pw=new WeakSet,N7=function(e){En.batch(()=>{e.listeners&&this.listeners.forEach(r=>{r(le(this,eo))}),le(this,vo).getQueryCache().notify({query:le(this,Ot),type:"observerResultsUpdated"})})},PB);function Tne(t,e){return gi(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function TD(t,e){return Tne(t,e)||t.state.data!==void 0&&OT(t,e,e.refetchOnMount)}function OT(t,e,r){if(gi(e.enabled,t)!==!1&&Bl(e.staleTime,t)!=="static"){const n=typeof r=="function"?r(t):r;return n==="always"||n!==!1&&F4(t,e)}return!1}function RD(t,e,r,n){return(t!==e||gi(n.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&F4(t,r)}function F4(t,e){return gi(e.enabled,t)!==!1&&t.isStaleByTime(Bl(e.staleTime,t))}function Rne(t,e){return!vT(t.getCurrentResult(),e)}var D7=F.createContext(void 0),B7=t=>{const e=F.useContext(D7);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Pne=({client:t,children:e})=>(F.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),A.jsx(D7.Provider,{value:t,children:e})),F7=F.createContext(!1),zne=()=>F.useContext(F7);F7.Provider;function Mne(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Ine=F.createContext(Mne()),Lne=()=>F.useContext(Ine),Nne=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},Dne=t=>{F.useEffect(()=>{t.clearReset()},[t])},Bne=({result:t,errorResetBoundary:e,throwOnError:r,query:n,suspense:o})=>t.isError&&!e.isReset()&&!t.isFetching&&n&&(o&&t.data===void 0||gne(r,[t.error,n])),Fne=t=>{if(t.suspense){const e=n=>n==="static"?n:Math.max(n??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...n)=>e(r(...n)):e(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Hne=(t,e)=>t.isLoading&&t.isFetching&&!e,Une=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,PD=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function Vne(t,e,r){var x,k,S,O,C;const n=zne(),o=Lne(),a=B7(),f=a.defaultQueryOptions(t);(k=(x=a.getDefaultOptions().queries)==null?void 0:x._experimental_beforeQuery)==null||k.call(x,f),f._optimisticResults=n?"isRestoring":"optimistic",Fne(f),Nne(f,o),Dne(o);const p=!a.getQueryCache().get(f.queryHash),[m]=F.useState(()=>new e(a,f)),v=m.getOptimisticResult(f),y=!n&&t.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(R=>{const E=y?m.subscribe(En.batchCalls(R)):_o;return m.updateResult(),E},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),F.useEffect(()=>{m.setOptions(f)},[f,m]),Une(f,v))throw PD(f,m,o);if(Bne({result:v,errorResetBoundary:o,throwOnError:f.throwOnError,query:a.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw v.error;if((O=(S=a.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||O.call(S,f,v),f.experimental_prefetchInRender&&!pu&&Hne(v,n)){const R=p?PD(f,m,o):(C=a.getQueryCache().get(f.queryHash))==null?void 0:C.promise;R==null||R.catch(_o).finally(()=>{m.updateResult()})}return f.notifyOnChangeProps?v:m.trackResult(v)}function qne(t,e){return Vne(t,Ene)}function zD(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Kw(...t){return e=>{let r=!1;const n=t.map(o=>{const a=zD(o,e);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():zD(t[o],null)}}}}function Mn(...t){return F.useCallback(Kw(...t),t)}function Wf(t){const e=Wne(t),r=F.forwardRef((n,o)=>{const{children:a,...f}=n,p=F.Children.toArray(a),m=p.find(Gne);if(m){const v=m.props.children,y=p.map(x=>x===m?F.Children.count(v)>1?F.Children.only(null):F.isValidElement(v)?v.props.children:null:x);return A.jsx(e,{...f,ref:o,children:F.isValidElement(v)?F.cloneElement(v,void 0,y):null})}return A.jsx(e,{...f,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}var Yne=Wf("Slot");function Wne(t){const e=F.forwardRef((r,n)=>{const{children:o,...a}=r;if(F.isValidElement(o)){const f=Zne(o),p=$ne(a,o.props);return o.type!==F.Fragment&&(p.ref=n?Kw(n,f):f),F.cloneElement(o,p)}return F.Children.count(o)>1?F.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Xne=Symbol("radix.slottable");function Gne(t){return F.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Xne}function $ne(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...p)=>{const m=a(...p);return o(...p),m}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function Zne(t){var n,o;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function H7(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=H7(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function U7(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=H7(t))&&(n&&(n+=" "),n+=e);return n}const MD=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,ID=U7,H4=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return ID(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=e,f=Object.keys(o).map(v=>{const y=r==null?void 0:r[v],x=a==null?void 0:a[v];if(y===null)return null;const k=MD(y)||MD(x);return o[v][k]}),p=r&&Object.entries(r).reduce((v,y)=>{let[x,k]=y;return k===void 0||(v[x]=k),v},{}),m=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((v,y)=>{let{class:x,className:k,...S}=y;return Object.entries(S).every(O=>{let[C,R]=O;return Array.isArray(R)?R.includes({...a,...p}[C]):{...a,...p}[C]===R})?[...v,x,k]:v},[]);return ID(t,f,m,r==null?void 0:r.class,r==null?void 0:r.className)},U4="-",Kne=t=>{const e=Qne(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:f=>{const p=f.split(U4);return p[0]===""&&p.length!==1&&p.shift(),V7(p,e)||Jne(f)},getConflictingClassGroupIds:(f,p)=>{const m=r[f]||[];return p&&n[f]?[...m,...n[f]]:m}}},V7=(t,e)=>{var f;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?V7(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const a=t.join(U4);return(f=e.validators.find(({validator:p})=>p(a)))==null?void 0:f.classGroupId},LD=/^\[(.+)\]$/,Jne=t=>{if(LD.test(t)){const e=LD.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},Qne=t=>{const{theme:e,classGroups:r}=t,n={nextPart:new Map,validators:[]};for(const o in r)ET(r[o],n,o,e);return n},ET=(t,e,r,n)=>{t.forEach(o=>{if(typeof o=="string"){const a=o===""?e:ND(e,o);a.classGroupId=r;return}if(typeof o=="function"){if(eoe(o)){ET(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,f])=>{ET(f,ND(e,a),r,n)})})},ND=(t,e)=>{let r=t;return e.split(U4).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},eoe=t=>t.isThemeGetter,toe=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const o=(a,f)=>{r.set(a,f),e++,e>t&&(e=0,n=r,r=new Map)};return{get(a){let f=r.get(a);if(f!==void 0)return f;if((f=n.get(a))!==void 0)return o(a,f),f},set(a,f){r.has(a)?r.set(a,f):o(a,f)}}},TT="!",RT=":",roe=RT.length,noe=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=o=>{const a=[];let f=0,p=0,m=0,v;for(let O=0;O<o.length;O++){let C=o[O];if(f===0&&p===0){if(C===RT){a.push(o.slice(m,O)),m=O+roe;continue}if(C==="/"){v=O;continue}}C==="["?f++:C==="]"?f--:C==="("?p++:C===")"&&p--}const y=a.length===0?o:o.substring(m),x=ooe(y),k=x!==y,S=v&&v>m?v-m:void 0;return{modifiers:a,hasImportantModifier:k,baseClassName:x,maybePostfixModifierPosition:S}};if(e){const o=e+RT,a=n;n=f=>f.startsWith(o)?a(f.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},ooe=t=>t.endsWith(TT)?t.substring(0,t.length-1):t.startsWith(TT)?t.substring(1):t,ioe=t=>{const e=Object.fromEntries(t.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(f=>{f[0]==="["||e[f]?(o.push(...a.sort(),f),a=[]):a.push(f)}),o.push(...a.sort()),o}},aoe=t=>({cache:toe(t.cacheSize),parseClassName:noe(t),sortModifiers:ioe(t),...Kne(t)}),soe=/\s+/,loe=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=e,f=[],p=t.trim().split(soe);let m="";for(let v=p.length-1;v>=0;v-=1){const y=p[v],{isExternal:x,modifiers:k,hasImportantModifier:S,baseClassName:O,maybePostfixModifierPosition:C}=r(y);if(x){m=y+(m.length>0?" "+m:m);continue}let R=!!C,E=n(R?O.substring(0,C):O);if(!E){if(!R){m=y+(m.length>0?" "+m:m);continue}if(E=n(O),!E){m=y+(m.length>0?" "+m:m);continue}R=!1}const P=a(k).join(":"),M=S?P+TT:P,I=M+E;if(f.includes(I))continue;f.push(I);const B=o(E,R);for(let U=0;U<B.length;++U){const H=B[U];f.push(M+H)}m=y+(m.length>0?" "+m:m)}return m};function coe(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=q7(e))&&(n&&(n+=" "),n+=r);return n}const q7=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=q7(t[n]))&&(r&&(r+=" "),r+=e);return r};function uoe(t,...e){let r,n,o,a=f;function f(m){const v=e.reduce((y,x)=>x(y),t());return r=aoe(v),n=r.cache.get,o=r.cache.set,a=p,p(m)}function p(m){const v=n(m);if(v)return v;const y=loe(m,r);return o(m,y),y}return function(){return a(coe.apply(null,arguments))}}const nn=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},Y7=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,W7=/^\((?:(\w[\w-]*):)?(.+)\)$/i,doe=/^\d+\/\d+$/,foe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hoe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,poe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,goe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,moe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Id=t=>doe.test(t),bt=t=>!!t&&!Number.isNaN(Number(t)),ll=t=>!!t&&Number.isInteger(Number(t)),wO=t=>t.endsWith("%")&&bt(t.slice(0,-1)),fs=t=>foe.test(t),voe=()=>!0,boe=t=>hoe.test(t)&&!poe.test(t),X7=()=>!1,yoe=t=>goe.test(t),xoe=t=>moe.test(t),woe=t=>!Ye(t)&&!We(t),_oe=t=>ih(t,Z7,X7),Ye=t=>Y7.test(t),Rc=t=>ih(t,K7,boe),_O=t=>ih(t,Aoe,bt),DD=t=>ih(t,G7,X7),koe=t=>ih(t,$7,xoe),x0=t=>ih(t,J7,yoe),We=t=>W7.test(t),om=t=>ah(t,K7),joe=t=>ah(t,Ooe),BD=t=>ah(t,G7),Soe=t=>ah(t,Z7),Coe=t=>ah(t,$7),w0=t=>ah(t,J7,!0),ih=(t,e,r)=>{const n=Y7.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},ah=(t,e,r=!1)=>{const n=W7.exec(t);return n?n[1]?e(n[1]):r:!1},G7=t=>t==="position"||t==="percentage",$7=t=>t==="image"||t==="url",Z7=t=>t==="length"||t==="size"||t==="bg-size",K7=t=>t==="length",Aoe=t=>t==="number",Ooe=t=>t==="family-name",J7=t=>t==="shadow",Eoe=()=>{const t=nn("color"),e=nn("font"),r=nn("text"),n=nn("font-weight"),o=nn("tracking"),a=nn("leading"),f=nn("breakpoint"),p=nn("container"),m=nn("spacing"),v=nn("radius"),y=nn("shadow"),x=nn("inset-shadow"),k=nn("text-shadow"),S=nn("drop-shadow"),O=nn("blur"),C=nn("perspective"),R=nn("aspect"),E=nn("ease"),P=nn("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...I(),We,Ye],U=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],V=()=>[We,Ye,m],W=()=>[Id,"full","auto",...V()],G=()=>[ll,"none","subgrid",We,Ye],Z=()=>["auto",{span:["full",ll,We,Ye]},ll,We,Ye],K=()=>[ll,"auto",We,Ye],Q=()=>["auto","min","max","fr",We,Ye],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...V()],ne=()=>[Id,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],te=()=>[t,We,Ye],ue=()=>[...I(),BD,DD,{position:[We,Ye]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ke=()=>["auto","cover","contain",Soe,_oe,{size:[We,Ye]}],ze=()=>[wO,om,Rc],Re=()=>["","none","full",v,We,Ye],Ae=()=>["",bt,om,Rc],tt=()=>["solid","dashed","dotted","double"],Ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Te=()=>[bt,wO,BD,DD],Xe=()=>["","none",O,We,Ye],rt=()=>["none",bt,We,Ye],pt=()=>["none",bt,We,Ye],Lt=()=>[bt,We,Ye],Cr=()=>[Id,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fs],breakpoint:[fs],color:[voe],container:[fs],"drop-shadow":[fs],ease:["in","out","in-out"],font:[woe],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fs],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fs],shadow:[fs],spacing:["px",bt],text:[fs],"text-shadow":[fs],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Id,Ye,We,R]}],container:["container"],columns:[{columns:[bt,Ye,We,p]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:B()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[ll,"auto",We,Ye]}],basis:[{basis:[Id,"full","auto",p,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[bt,Id,"auto","initial","none",Ye]}],grow:[{grow:["",bt,We,Ye]}],shrink:[{shrink:["",bt,We,Ye]}],order:[{order:[ll,"first","last","none",We,Ye]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],w:[{w:[p,"screen",...ne()]}],"min-w":[{"min-w":[p,"screen","none",...ne()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[f]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",r,om,Rc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,We,_O]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",wO,Ye]}],"font-family":[{font:[joe,Ye,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,We,Ye]}],"line-clamp":[{"line-clamp":[bt,"none",We,_O]}],leading:[{leading:[a,...V()]}],"list-image":[{"list-image":["none",We,Ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",We,Ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:te()}],"text-color":[{text:te()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...tt(),"wavy"]}],"text-decoration-thickness":[{decoration:[bt,"from-font","auto",We,Rc]}],"text-decoration-color":[{decoration:te()}],"underline-offset":[{"underline-offset":[bt,"auto",We,Ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",We,Ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",We,Ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ue()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:ke()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ll,We,Ye],radial:["",We,Ye],conic:[ll,We,Ye]},Coe,koe]}],"bg-color":[{bg:te()}],"gradient-from-pos":[{from:ze()}],"gradient-via-pos":[{via:ze()}],"gradient-to-pos":[{to:ze()}],"gradient-from":[{from:te()}],"gradient-via":[{via:te()}],"gradient-to":[{to:te()}],rounded:[{rounded:Re()}],"rounded-s":[{"rounded-s":Re()}],"rounded-e":[{"rounded-e":Re()}],"rounded-t":[{"rounded-t":Re()}],"rounded-r":[{"rounded-r":Re()}],"rounded-b":[{"rounded-b":Re()}],"rounded-l":[{"rounded-l":Re()}],"rounded-ss":[{"rounded-ss":Re()}],"rounded-se":[{"rounded-se":Re()}],"rounded-ee":[{"rounded-ee":Re()}],"rounded-es":[{"rounded-es":Re()}],"rounded-tl":[{"rounded-tl":Re()}],"rounded-tr":[{"rounded-tr":Re()}],"rounded-br":[{"rounded-br":Re()}],"rounded-bl":[{"rounded-bl":Re()}],"border-w":[{border:Ae()}],"border-w-x":[{"border-x":Ae()}],"border-w-y":[{"border-y":Ae()}],"border-w-s":[{"border-s":Ae()}],"border-w-e":[{"border-e":Ae()}],"border-w-t":[{"border-t":Ae()}],"border-w-r":[{"border-r":Ae()}],"border-w-b":[{"border-b":Ae()}],"border-w-l":[{"border-l":Ae()}],"divide-x":[{"divide-x":Ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...tt(),"hidden","none"]}],"divide-style":[{divide:[...tt(),"hidden","none"]}],"border-color":[{border:te()}],"border-color-x":[{"border-x":te()}],"border-color-y":[{"border-y":te()}],"border-color-s":[{"border-s":te()}],"border-color-e":[{"border-e":te()}],"border-color-t":[{"border-t":te()}],"border-color-r":[{"border-r":te()}],"border-color-b":[{"border-b":te()}],"border-color-l":[{"border-l":te()}],"divide-color":[{divide:te()}],"outline-style":[{outline:[...tt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[bt,We,Ye]}],"outline-w":[{outline:["",bt,om,Rc]}],"outline-color":[{outline:te()}],shadow:[{shadow:["","none",y,w0,x0]}],"shadow-color":[{shadow:te()}],"inset-shadow":[{"inset-shadow":["none",x,w0,x0]}],"inset-shadow-color":[{"inset-shadow":te()}],"ring-w":[{ring:Ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:te()}],"ring-offset-w":[{"ring-offset":[bt,Rc]}],"ring-offset-color":[{"ring-offset":te()}],"inset-ring-w":[{"inset-ring":Ae()}],"inset-ring-color":[{"inset-ring":te()}],"text-shadow":[{"text-shadow":["none",k,w0,x0]}],"text-shadow-color":[{"text-shadow":te()}],opacity:[{opacity:[bt,We,Ye]}],"mix-blend":[{"mix-blend":[...Ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[bt]}],"mask-image-linear-from-pos":[{"mask-linear-from":Te()}],"mask-image-linear-to-pos":[{"mask-linear-to":Te()}],"mask-image-linear-from-color":[{"mask-linear-from":te()}],"mask-image-linear-to-color":[{"mask-linear-to":te()}],"mask-image-t-from-pos":[{"mask-t-from":Te()}],"mask-image-t-to-pos":[{"mask-t-to":Te()}],"mask-image-t-from-color":[{"mask-t-from":te()}],"mask-image-t-to-color":[{"mask-t-to":te()}],"mask-image-r-from-pos":[{"mask-r-from":Te()}],"mask-image-r-to-pos":[{"mask-r-to":Te()}],"mask-image-r-from-color":[{"mask-r-from":te()}],"mask-image-r-to-color":[{"mask-r-to":te()}],"mask-image-b-from-pos":[{"mask-b-from":Te()}],"mask-image-b-to-pos":[{"mask-b-to":Te()}],"mask-image-b-from-color":[{"mask-b-from":te()}],"mask-image-b-to-color":[{"mask-b-to":te()}],"mask-image-l-from-pos":[{"mask-l-from":Te()}],"mask-image-l-to-pos":[{"mask-l-to":Te()}],"mask-image-l-from-color":[{"mask-l-from":te()}],"mask-image-l-to-color":[{"mask-l-to":te()}],"mask-image-x-from-pos":[{"mask-x-from":Te()}],"mask-image-x-to-pos":[{"mask-x-to":Te()}],"mask-image-x-from-color":[{"mask-x-from":te()}],"mask-image-x-to-color":[{"mask-x-to":te()}],"mask-image-y-from-pos":[{"mask-y-from":Te()}],"mask-image-y-to-pos":[{"mask-y-to":Te()}],"mask-image-y-from-color":[{"mask-y-from":te()}],"mask-image-y-to-color":[{"mask-y-to":te()}],"mask-image-radial":[{"mask-radial":[We,Ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":Te()}],"mask-image-radial-to-pos":[{"mask-radial-to":Te()}],"mask-image-radial-from-color":[{"mask-radial-from":te()}],"mask-image-radial-to-color":[{"mask-radial-to":te()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[bt]}],"mask-image-conic-from-pos":[{"mask-conic-from":Te()}],"mask-image-conic-to-pos":[{"mask-conic-to":Te()}],"mask-image-conic-from-color":[{"mask-conic-from":te()}],"mask-image-conic-to-color":[{"mask-conic-to":te()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ue()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:ke()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",We,Ye]}],filter:[{filter:["","none",We,Ye]}],blur:[{blur:Xe()}],brightness:[{brightness:[bt,We,Ye]}],contrast:[{contrast:[bt,We,Ye]}],"drop-shadow":[{"drop-shadow":["","none",S,w0,x0]}],"drop-shadow-color":[{"drop-shadow":te()}],grayscale:[{grayscale:["",bt,We,Ye]}],"hue-rotate":[{"hue-rotate":[bt,We,Ye]}],invert:[{invert:["",bt,We,Ye]}],saturate:[{saturate:[bt,We,Ye]}],sepia:[{sepia:["",bt,We,Ye]}],"backdrop-filter":[{"backdrop-filter":["","none",We,Ye]}],"backdrop-blur":[{"backdrop-blur":Xe()}],"backdrop-brightness":[{"backdrop-brightness":[bt,We,Ye]}],"backdrop-contrast":[{"backdrop-contrast":[bt,We,Ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",bt,We,Ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[bt,We,Ye]}],"backdrop-invert":[{"backdrop-invert":["",bt,We,Ye]}],"backdrop-opacity":[{"backdrop-opacity":[bt,We,Ye]}],"backdrop-saturate":[{"backdrop-saturate":[bt,We,Ye]}],"backdrop-sepia":[{"backdrop-sepia":["",bt,We,Ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",We,Ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[bt,"initial",We,Ye]}],ease:[{ease:["linear","initial",E,We,Ye]}],delay:[{delay:[bt,We,Ye]}],animate:[{animate:["none",P,We,Ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,We,Ye]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:rt()}],"rotate-x":[{"rotate-x":rt()}],"rotate-y":[{"rotate-y":rt()}],"rotate-z":[{"rotate-z":rt()}],scale:[{scale:pt()}],"scale-x":[{"scale-x":pt()}],"scale-y":[{"scale-y":pt()}],"scale-z":[{"scale-z":pt()}],"scale-3d":["scale-3d"],skew:[{skew:Lt()}],"skew-x":[{"skew-x":Lt()}],"skew-y":[{"skew-y":Lt()}],transform:[{transform:[We,Ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Cr()}],"translate-x":[{"translate-x":Cr()}],"translate-y":[{"translate-y":Cr()}],"translate-z":[{"translate-z":Cr()}],"translate-none":["translate-none"],accent:[{accent:te()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:te()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",We,Ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",We,Ye]}],fill:[{fill:["none",...te()]}],"stroke-w":[{stroke:[bt,om,Rc,_O]}],stroke:[{stroke:["none",...te()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Toe=uoe(Eoe);function Ne(...t){return Toe(U7(t))}const Roe=H4("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background",{variants:{variant:{default:" ",destructive:"bg-destructive text-black hover:bg-destructive/90",outline:"border border-input hover:bg-accent text-black hover:text-black",secondary:"bg-secondary text-black hover:bg-secondary/80",ghost:"hover:bg-accent text-black hover:text-black",link:"underline-offset-4 hover:underline text-black"},size:{default:"h-10 py-2 px-4",sm:"h-9 px-3 rounded-md",lg:"h-11 px-8 rounded-md",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Pt=F.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...o},a)=>{const f=n?Yne:"button";return A.jsx(f,{className:Ne(Roe({variant:e,size:r,className:t})),ref:a,...o})});Pt.displayName="Button";let Q7=class extends F.Component{constructor(){super(...arguments);il(this,"state",{hasError:!1,error:null});il(this,"handleReset",()=>{this.setState({hasError:!1,error:null})})}static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,n){var o,a;(a=(o=this.props).onError)==null||a.call(o,r,n)}render(){const{error:r,hasError:n}=this.state,{fallback:o,children:a,showResetButton:f}=this.props;return!n||!r?a:o?o({error:r,resetErrorBoundary:this.handleReset}):A.jsx("div",{className:"p-6 text-center",children:A.jsxs("div",{className:"bg-card rounded-lg p-6 shadow",children:[A.jsx("h2",{className:"text-xl font-bold mb-4",children:"Something went wrong"}),!1,A.jsxs("div",{className:"flex justify-center gap-3 mt-6",children:[f!==!1&&A.jsx(Pt,{onClick:this.handleReset,children:"Try again"}),A.jsx(Pt,{variant:"outline",onClick:()=>window.location.reload(),children:"Refresh page"})]})]})})}};/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Poe=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zoe=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,n)=>n?n.toUpperCase():r.toLowerCase()),FD=t=>{const e=zoe(t);return e.charAt(0).toUpperCase()+e.slice(1)},eU=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim(),Moe=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ioe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Loe=F.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:f,...p},m)=>F.createElement("svg",{ref:m,...Ioe,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:eU("lucide",o),...!a&&!Moe(p)&&{"aria-hidden":"true"},...p},[...f.map(([v,y])=>F.createElement(v,y)),...Array.isArray(a)?a:[a]]));/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Et=(t,e)=>{const r=F.forwardRef(({className:n,...o},a)=>F.createElement(Loe,{ref:a,iconNode:e,className:eU(`lucide-${Poe(FD(t))}`,`lucide-${t}`,n),...o}));return r.displayName=FD(t),r};/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Noe=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Doe=Et("bell",Noe);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Boe=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],Foe=Et("camera",Boe);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hoe=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],tU=Et("check",Hoe);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Uoe=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Voe=Et("chevron-left",Uoe);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qoe=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Jw=Et("chevron-right",qoe);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yoe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],rU=Et("circle-alert",Yoe);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Woe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m12 8-4 4 4 4",key:"15vm53"}],["path",{d:"M16 12H8",key:"1fr5h0"}]],Xoe=Et("circle-arrow-left",Woe);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Goe=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],$oe=Et("circle-check-big",Goe);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zoe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Koe=Et("circle-x",Zoe);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Joe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],V4=Et("circle",Joe);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qoe=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],eie=Et("eye-off",Qoe);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tie=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],q4=Et("eye",tie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rie=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],nie=Et("house",rie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],iie=Et("info",oie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aie=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],PT=Et("languages",aie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sie=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],HD=Et("loader-circle",sie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lie=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],tx=Et("lock",lie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cie=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],uie=Et("log-out",cie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const die=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],nU=Et("mail",die);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fie=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],hie=Et("menu",fie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pie=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],gie=Et("moon",pie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mie=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],vie=Et("pencil-line",mie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bie=[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],yie=Et("phone-call",bie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xie=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],wie=Et("phone",xie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _ie=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],kie=Et("plus",_ie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jie=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Sie=Et("refresh-cw",jie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cie=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],sh=Et("search",Cie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Aie=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],oU=Et("square-pen",Aie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Oie=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Eie=Et("sun",Oie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tie=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Rie=Et("trash-2",Tie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pie=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],UD=Et("triangle-alert",Pie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zie=[["path",{d:"M2 21a8 8 0 0 1 11.873-7",key:"74fkxq"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m17 17 5 5",key:"p7ous7"}],["path",{d:"m22 17-5 5",key:"gqnmv0"}]],_0=Et("user-round-x",zie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mie=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],vm=Et("user",Mie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Iie=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Lie=Et("users",Iie);/**
 * @license lucide-react v0.540.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nie=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Qw=Et("x",Nie),Dr=F.forwardRef(({className:t,type:e="text",label:r,helperText:n,error:o,leftElement:a,rightElement:f,containerClassName:p,id:m,...v},y)=>{const x=F.useId(),k=m||`input-${x}`,S=!!o;return A.jsxs("div",{className:Ne("w-full",p),children:[r&&A.jsx("label",{htmlFor:k,className:"block text-sm font-medium text-foreground mb-1",children:r}),A.jsxs("div",{className:"relative",children:[a&&A.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:a}),A.jsx("input",{type:e,id:k,className:Ne("flex h-10 w-full rounded-md border bg-secondary px-3 py-2 text-sm text-text-muted ring-offset-white transition-colors","file:border-0 file:bg-transparent file:text-sm file:font-medium","placeholder:text-gray-400 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50",a?"pl-10":"pl-3",f?"pr-10":"pr-3",S?"border-red-500 focus-visible:ring-red-200":"border-gray-300 ",t),ref:y,"aria-invalid":S?"true":"false","aria-describedby":S?`${k}-error`:n?`${k}-helper`:void 0,...v}),f&&A.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400",children:f})]}),n&&!S&&A.jsx("p",{className:"mt-1 text-xs text-gray-500",children:n}),S&&A.jsx("p",{className:"mt-1 text-xs text-red-600",role:"alert",children:o})]})});Dr.displayName="Input";function _t(t,e,{checkForDefaultPrevented:r=!0}={}){return function(o){if(t==null||t(o),r===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}function Die(t,e){const r=F.createContext(e),n=a=>{const{children:f,...p}=a,m=F.useMemo(()=>p,Object.values(p));return A.jsx(r.Provider,{value:m,children:f})};n.displayName=t+"Provider";function o(a){const f=F.useContext(r);if(f)return f;if(e!==void 0)return e;throw new Error(`\`${a}\` must be used within \`${t}\``)}return[n,o]}function lh(t,e=[]){let r=[];function n(a,f){const p=F.createContext(f),m=r.length;r=[...r,f];const v=x=>{var E;const{scope:k,children:S,...O}=x,C=((E=k==null?void 0:k[t])==null?void 0:E[m])||p,R=F.useMemo(()=>O,Object.values(O));return A.jsx(C.Provider,{value:R,children:S})};v.displayName=a+"Provider";function y(x,k){var C;const S=((C=k==null?void 0:k[t])==null?void 0:C[m])||p,O=F.useContext(S);if(O)return O;if(f!==void 0)return f;throw new Error(`\`${x}\` must be used within \`${a}\``)}return[v,y]}const o=()=>{const a=r.map(f=>F.createContext(f));return function(p){const m=(p==null?void 0:p[t])||a;return F.useMemo(()=>({[`__scope${t}`]:{...p,[t]:m}}),[p,m])}};return o.scopeName=t,[n,Bie(o,...e)]}function Bie(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const f=n.reduce((p,{useScope:m,scopeName:v})=>{const x=m(a)[`__scope${v}`];return{...p,...x}},{});return F.useMemo(()=>({[`__scope${e.scopeName}`]:f}),[f])}};return r.scopeName=e.scopeName,r}var ql=globalThis!=null&&globalThis.document?F.useLayoutEffect:()=>{},Fie=kx[" useId ".trim().toString()]||(()=>{}),Hie=0;function vf(t){const[e,r]=F.useState(Fie());return ql(()=>{r(n=>n??String(Hie++))},[t]),e?`radix-${e}`:""}var Uie=kx[" useInsertionEffect ".trim().toString()]||ql;function Y4({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[o,a,f]=Vie({defaultProp:e,onChange:r}),p=t!==void 0,m=p?t:o;{const y=F.useRef(t!==void 0);F.useEffect(()=>{const x=y.current;x!==p&&console.warn(`${n} is changing from ${x?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=p},[p,n])}const v=F.useCallback(y=>{var x;if(p){const k=qie(y)?y(t):y;k!==t&&((x=f.current)==null||x.call(f,k))}else a(y)},[p,t,a,f]);return[m,v]}function Vie({defaultProp:t,onChange:e}){const[r,n]=F.useState(t),o=F.useRef(r),a=F.useRef(e);return Uie(()=>{a.current=e},[e]),F.useEffect(()=>{var f;o.current!==r&&((f=a.current)==null||f.call(a,r),o.current=r)},[r,o]),[r,n,a]}function qie(t){return typeof t=="function"}var Yie=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],en=Yie.reduce((t,e)=>{const r=Wf(`Primitive.${e}`),n=F.forwardRef((o,a)=>{const{asChild:f,...p}=o,m=f?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),A.jsx(m,{...p,ref:a})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function iU(t,e){t&&Mv.flushSync(()=>t.dispatchEvent(e))}function Ms(t){const e=F.useRef(t);return F.useEffect(()=>{e.current=t}),F.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function Wie(t,e=globalThis==null?void 0:globalThis.document){const r=Ms(t);F.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var Xie="DismissableLayer",zT="dismissableLayer.update",Gie="dismissableLayer.pointerDownOutside",$ie="dismissableLayer.focusOutside",VD,aU=F.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),W4=F.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:f,onDismiss:p,...m}=t,v=F.useContext(aU),[y,x]=F.useState(null),k=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=F.useState({}),O=Mn(e,H=>x(H)),C=Array.from(v.layers),[R]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),E=C.indexOf(R),P=y?C.indexOf(y):-1,M=v.layersWithOutsidePointerEventsDisabled.size>0,I=P>=E,B=Jie(H=>{const V=H.target,W=[...v.branches].some(G=>G.contains(V));!I||W||(o==null||o(H),f==null||f(H),H.defaultPrevented||p==null||p())},k),U=Qie(H=>{const V=H.target;[...v.branches].some(G=>G.contains(V))||(a==null||a(H),f==null||f(H),H.defaultPrevented||p==null||p())},k);return Wie(H=>{P===v.layers.size-1&&(n==null||n(H),!H.defaultPrevented&&p&&(H.preventDefault(),p()))},k),F.useEffect(()=>{if(y)return r&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(VD=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(y)),v.layers.add(y),qD(),()=>{r&&v.layersWithOutsidePointerEventsDisabled.size===1&&(k.body.style.pointerEvents=VD)}},[y,k,r,v]),F.useEffect(()=>()=>{y&&(v.layers.delete(y),v.layersWithOutsidePointerEventsDisabled.delete(y),qD())},[y,v]),F.useEffect(()=>{const H=()=>S({});return document.addEventListener(zT,H),()=>document.removeEventListener(zT,H)},[]),A.jsx(en.div,{...m,ref:O,style:{pointerEvents:M?I?"auto":"none":void 0,...t.style},onFocusCapture:_t(t.onFocusCapture,U.onFocusCapture),onBlurCapture:_t(t.onBlurCapture,U.onBlurCapture),onPointerDownCapture:_t(t.onPointerDownCapture,B.onPointerDownCapture)})});W4.displayName=Xie;var Zie="DismissableLayerBranch",Kie=F.forwardRef((t,e)=>{const r=F.useContext(aU),n=F.useRef(null),o=Mn(e,n);return F.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),A.jsx(en.div,{...t,ref:o})});Kie.displayName=Zie;function Jie(t,e=globalThis==null?void 0:globalThis.document){const r=Ms(t),n=F.useRef(!1),o=F.useRef(()=>{});return F.useEffect(()=>{const a=p=>{if(p.target&&!n.current){let m=function(){sU(Gie,r,v,{discrete:!0})};const v={originalEvent:p};p.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=m,e.addEventListener("click",o.current,{once:!0})):m()}else e.removeEventListener("click",o.current);n.current=!1},f=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(f),e.removeEventListener("pointerdown",a),e.removeEventListener("click",o.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function Qie(t,e=globalThis==null?void 0:globalThis.document){const r=Ms(t),n=F.useRef(!1);return F.useEffect(()=>{const o=a=>{a.target&&!n.current&&sU($ie,r,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function qD(){const t=new CustomEvent(zT);document.dispatchEvent(t)}function sU(t,e,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&o.addEventListener(t,e,{once:!0}),n?iU(o,a):o.dispatchEvent(a)}var kO="focusScope.autoFocusOnMount",jO="focusScope.autoFocusOnUnmount",YD={bubbles:!1,cancelable:!0},eae="FocusScope",X4=F.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...f}=t,[p,m]=F.useState(null),v=Ms(o),y=Ms(a),x=F.useRef(null),k=Mn(e,C=>m(C)),S=F.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;F.useEffect(()=>{if(n){let C=function(M){if(S.paused||!p)return;const I=M.target;p.contains(I)?x.current=I:dl(x.current,{select:!0})},R=function(M){if(S.paused||!p)return;const I=M.relatedTarget;I!==null&&(p.contains(I)||dl(x.current,{select:!0}))},E=function(M){if(document.activeElement===document.body)for(const B of M)B.removedNodes.length>0&&dl(p)};document.addEventListener("focusin",C),document.addEventListener("focusout",R);const P=new MutationObserver(E);return p&&P.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",R),P.disconnect()}}},[n,p,S.paused]),F.useEffect(()=>{if(p){XD.add(S);const C=document.activeElement;if(!p.contains(C)){const E=new CustomEvent(kO,YD);p.addEventListener(kO,v),p.dispatchEvent(E),E.defaultPrevented||(tae(aae(lU(p)),{select:!0}),document.activeElement===C&&dl(p))}return()=>{p.removeEventListener(kO,v),setTimeout(()=>{const E=new CustomEvent(jO,YD);p.addEventListener(jO,y),p.dispatchEvent(E),E.defaultPrevented||dl(C??document.body,{select:!0}),p.removeEventListener(jO,y),XD.remove(S)},0)}}},[p,v,y,S]);const O=F.useCallback(C=>{if(!r&&!n||S.paused)return;const R=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,E=document.activeElement;if(R&&E){const P=C.currentTarget,[M,I]=rae(P);M&&I?!C.shiftKey&&E===I?(C.preventDefault(),r&&dl(M,{select:!0})):C.shiftKey&&E===M&&(C.preventDefault(),r&&dl(I,{select:!0})):E===P&&C.preventDefault()}},[r,n,S.paused]);return A.jsx(en.div,{tabIndex:-1,...f,ref:k,onKeyDown:O})});X4.displayName=eae;function tae(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(dl(n,{select:e}),document.activeElement!==r)return}function rae(t){const e=lU(t),r=WD(e,t),n=WD(e.reverse(),t);return[r,n]}function lU(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function WD(t,e){for(const r of t)if(!nae(r,{upTo:e}))return r}function nae(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function oae(t){return t instanceof HTMLInputElement&&"select"in t}function dl(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&oae(t)&&e&&t.select()}}var XD=iae();function iae(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=GD(t,e),t.unshift(e)},remove(e){var r;t=GD(t,e),(r=t[0])==null||r.resume()}}}function GD(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function aae(t){return t.filter(e=>e.tagName!=="A")}var sae="Portal",G4=F.forwardRef((t,e)=>{var p;const{container:r,...n}=t,[o,a]=F.useState(!1);ql(()=>a(!0),[]);const f=r||o&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return f?Lee.createPortal(A.jsx(en.div,{...n,ref:e}),f):null});G4.displayName=sae;function lae(t,e){return F.useReducer((r,n)=>e[r][n]??r,t)}var Ql=t=>{const{present:e,children:r}=t,n=cae(e),o=typeof r=="function"?r({present:n.isPresent}):F.Children.only(r),a=Mn(n.ref,uae(o));return typeof r=="function"||n.isPresent?F.cloneElement(o,{ref:a}):null};Ql.displayName="Presence";function cae(t){const[e,r]=F.useState(),n=F.useRef(null),o=F.useRef(t),a=F.useRef("none"),f=t?"mounted":"unmounted",[p,m]=lae(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return F.useEffect(()=>{const v=k0(n.current);a.current=p==="mounted"?v:"none"},[p]),ql(()=>{const v=n.current,y=o.current;if(y!==t){const k=a.current,S=k0(v);t?m("MOUNT"):S==="none"||(v==null?void 0:v.display)==="none"?m("UNMOUNT"):m(y&&k!==S?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,m]),ql(()=>{if(e){let v;const y=e.ownerDocument.defaultView??window,x=S=>{const C=k0(n.current).includes(CSS.escape(S.animationName));if(S.target===e&&C&&(m("ANIMATION_END"),!o.current)){const R=e.style.animationFillMode;e.style.animationFillMode="forwards",v=y.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=R)})}},k=S=>{S.target===e&&(a.current=k0(n.current))};return e.addEventListener("animationstart",k),e.addEventListener("animationcancel",x),e.addEventListener("animationend",x),()=>{y.clearTimeout(v),e.removeEventListener("animationstart",k),e.removeEventListener("animationcancel",x),e.removeEventListener("animationend",x)}}else m("ANIMATION_END")},[e,m]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:F.useCallback(v=>{n.current=v?getComputedStyle(v):null,r(v)},[])}}function k0(t){return(t==null?void 0:t.animationName)||"none"}function uae(t){var n,o;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var SO=0;function cU(){F.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??$D()),document.body.insertAdjacentElement("beforeend",t[1]??$D()),SO++,()=>{SO===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),SO--}},[])}function $D(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Oa=function(){return Oa=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Oa.apply(this,arguments)};function uU(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function dae(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,a;n<o;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))}var rx="right-scroll-bar-position",nx="width-before-scroll-bar",fae="with-scroll-bars-hidden",hae="--removed-body-scroll-bar-size";function CO(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function pae(t,e){var r=F.useState(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=e,r.facade}var gae=typeof window<"u"?F.useLayoutEffect:F.useEffect,ZD=new WeakMap;function mae(t,e){var r=pae(null,function(n){return t.forEach(function(o){return CO(o,n)})});return gae(function(){var n=ZD.get(r);if(n){var o=new Set(n),a=new Set(t),f=r.current;o.forEach(function(p){a.has(p)||CO(p,null)}),a.forEach(function(p){o.has(p)||CO(p,f)})}ZD.set(r,t)},[t]),r}function vae(t){return t}function bae(t,e){e===void 0&&(e=vae);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(a){var f=e(a,n);return r.push(f),function(){r=r.filter(function(p){return p!==f})}},assignSyncMedium:function(a){for(n=!0;r.length;){var f=r;r=[],f.forEach(a)}r={push:function(p){return a(p)},filter:function(){return r}}},assignMedium:function(a){n=!0;var f=[];if(r.length){var p=r;r=[],p.forEach(a),f=r}var m=function(){var y=f;f=[],y.forEach(a)},v=function(){return Promise.resolve().then(m)};v(),r={push:function(y){f.push(y),v()},filter:function(y){return f=f.filter(y),r}}}};return o}function yae(t){t===void 0&&(t={});var e=bae(null);return e.options=Oa({async:!0,ssr:!1},t),e}var dU=function(t){var e=t.sideCar,r=uU(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw new Error("Sidecar medium not found");return F.createElement(n,Oa({},r))};dU.isSideCarExport=!0;function xae(t,e){return t.useMedium(e),dU}var fU=yae(),AO=function(){},e1=F.forwardRef(function(t,e){var r=F.useRef(null),n=F.useState({onScrollCapture:AO,onWheelCapture:AO,onTouchMoveCapture:AO}),o=n[0],a=n[1],f=t.forwardProps,p=t.children,m=t.className,v=t.removeScrollBar,y=t.enabled,x=t.shards,k=t.sideCar,S=t.noRelative,O=t.noIsolation,C=t.inert,R=t.allowPinchZoom,E=t.as,P=E===void 0?"div":E,M=t.gapMode,I=uU(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=k,U=mae([r,e]),H=Oa(Oa({},I),o);return F.createElement(F.Fragment,null,y&&F.createElement(B,{sideCar:fU,removeScrollBar:v,shards:x,noRelative:S,noIsolation:O,inert:C,setCallbacks:a,allowPinchZoom:!!R,lockRef:r,gapMode:M}),f?F.cloneElement(F.Children.only(p),Oa(Oa({},H),{ref:U})):F.createElement(P,Oa({},H,{className:m,ref:U}),p))});e1.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};e1.classNames={fullWidth:nx,zeroRight:rx};var wae=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _ae(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=wae();return e&&t.setAttribute("nonce",e),t}function kae(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function jae(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Sae=function(){var t=0,e=null;return{add:function(r){t==0&&(e=_ae())&&(kae(e,r),jae(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Cae=function(){var t=Sae();return function(e,r){F.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},hU=function(){var t=Cae(),e=function(r){var n=r.styles,o=r.dynamic;return t(n,o),null};return e},Aae={left:0,top:0,right:0,gap:0},OO=function(t){return parseInt(t||"",10)||0},Oae=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],n=e[t==="padding"?"paddingTop":"marginTop"],o=e[t==="padding"?"paddingRight":"marginRight"];return[OO(r),OO(n),OO(o)]},Eae=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return Aae;var e=Oae(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},Tae=hU(),bf="data-scroll-locked",Rae=function(t,e,r,n){var o=t.left,a=t.top,f=t.right,p=t.gap;return r===void 0&&(r="margin"),`
  .`.concat(fae,` {
   overflow: hidden `).concat(n,`;
   padding-right: `).concat(p,"px ").concat(n,`;
  }
  body[`).concat(bf,`] {
    overflow: hidden `).concat(n,`;
    overscroll-behavior: contain;
    `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&`
    padding-left: `.concat(o,`px;
    padding-top: `).concat(a,`px;
    padding-right: `).concat(f,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(p,"px ").concat(n,`;
    `),r==="padding"&&"padding-right: ".concat(p,"px ").concat(n,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(rx,` {
    right: `).concat(p,"px ").concat(n,`;
  }
  
  .`).concat(nx,` {
    margin-right: `).concat(p,"px ").concat(n,`;
  }
  
  .`).concat(rx," .").concat(rx,` {
    right: 0 `).concat(n,`;
  }
  
  .`).concat(nx," .").concat(nx,` {
    margin-right: 0 `).concat(n,`;
  }
  
  body[`).concat(bf,`] {
    `).concat(hae,": ").concat(p,`px;
  }
`)},KD=function(){var t=parseInt(document.body.getAttribute(bf)||"0",10);return isFinite(t)?t:0},Pae=function(){F.useEffect(function(){return document.body.setAttribute(bf,(KD()+1).toString()),function(){var t=KD()-1;t<=0?document.body.removeAttribute(bf):document.body.setAttribute(bf,t.toString())}},[])},zae=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,o=n===void 0?"margin":n;Pae();var a=F.useMemo(function(){return Eae(o)},[o]);return F.createElement(Tae,{styles:Rae(a,!e,o,r?"":"!important")})},MT=!1;if(typeof window<"u")try{var j0=Object.defineProperty({},"passive",{get:function(){return MT=!0,!0}});window.addEventListener("test",j0,j0),window.removeEventListener("test",j0,j0)}catch{MT=!1}var Ld=MT?{passive:!1}:!1,Mae=function(t){return t.tagName==="TEXTAREA"},pU=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!Mae(t)&&r[e]==="visible")},Iae=function(t){return pU(t,"overflowY")},Lae=function(t){return pU(t,"overflowX")},JD=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=gU(t,n);if(o){var a=mU(t,n),f=a[1],p=a[2];if(f>p)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Nae=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},Dae=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},gU=function(t,e){return t==="v"?Iae(e):Lae(e)},mU=function(t,e){return t==="v"?Nae(e):Dae(e)},Bae=function(t,e){return t==="h"&&e==="rtl"?-1:1},Fae=function(t,e,r,n,o){var a=Bae(t,window.getComputedStyle(e).direction),f=a*n,p=r.target,m=e.contains(p),v=!1,y=f>0,x=0,k=0;do{if(!p)break;var S=mU(t,p),O=S[0],C=S[1],R=S[2],E=C-R-a*O;(O||E)&&gU(t,p)&&(x+=E,k+=O);var P=p.parentNode;p=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!m&&p!==document.body||m&&(e.contains(p)||e===p));return(y&&Math.abs(x)<1||!y&&Math.abs(k)<1)&&(v=!0),v},S0=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},QD=function(t){return[t.deltaX,t.deltaY]},e8=function(t){return t&&"current"in t?t.current:t},Hae=function(t,e){return t[0]===e[0]&&t[1]===e[1]},Uae=function(t){return`
  .block-interactivity-`.concat(t,` {pointer-events: none;}
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},Vae=0,Nd=[];function qae(t){var e=F.useRef([]),r=F.useRef([0,0]),n=F.useRef(),o=F.useState(Vae++)[0],a=F.useState(hU)[0],f=F.useRef(t);F.useEffect(function(){f.current=t},[t]),F.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var C=dae([t.lockRef.current],(t.shards||[]).map(e8),!0).filter(Boolean);return C.forEach(function(R){return R.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),C.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var p=F.useCallback(function(C,R){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!f.current.allowPinchZoom;var E=S0(C),P=r.current,M="deltaX"in C?C.deltaX:P[0]-E[0],I="deltaY"in C?C.deltaY:P[1]-E[1],B,U=C.target,H=Math.abs(M)>Math.abs(I)?"h":"v";if("touches"in C&&H==="h"&&U.type==="range")return!1;var V=JD(H,U);if(!V)return!0;if(V?B=H:(B=H==="v"?"h":"v",V=JD(H,U)),!V)return!1;if(!n.current&&"changedTouches"in C&&(M||I)&&(n.current=B),!B)return!0;var W=n.current||B;return Fae(W,R,C,W==="h"?M:I)},[]),m=F.useCallback(function(C){var R=C;if(!(!Nd.length||Nd[Nd.length-1]!==a)){var E="deltaY"in R?QD(R):S0(R),P=e.current.filter(function(B){return B.name===R.type&&(B.target===R.target||R.target===B.shadowParent)&&Hae(B.delta,E)})[0];if(P&&P.should){R.cancelable&&R.preventDefault();return}if(!P){var M=(f.current.shards||[]).map(e8).filter(Boolean).filter(function(B){return B.contains(R.target)}),I=M.length>0?p(R,M[0]):!f.current.noIsolation;I&&R.cancelable&&R.preventDefault()}}},[]),v=F.useCallback(function(C,R,E,P){var M={name:C,delta:R,target:E,should:P,shadowParent:Yae(E)};e.current.push(M),setTimeout(function(){e.current=e.current.filter(function(I){return I!==M})},1)},[]),y=F.useCallback(function(C){r.current=S0(C),n.current=void 0},[]),x=F.useCallback(function(C){v(C.type,QD(C),C.target,p(C,t.lockRef.current))},[]),k=F.useCallback(function(C){v(C.type,S0(C),C.target,p(C,t.lockRef.current))},[]);F.useEffect(function(){return Nd.push(a),t.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:k}),document.addEventListener("wheel",m,Ld),document.addEventListener("touchmove",m,Ld),document.addEventListener("touchstart",y,Ld),function(){Nd=Nd.filter(function(C){return C!==a}),document.removeEventListener("wheel",m,Ld),document.removeEventListener("touchmove",m,Ld),document.removeEventListener("touchstart",y,Ld)}},[]);var S=t.removeScrollBar,O=t.inert;return F.createElement(F.Fragment,null,O?F.createElement(a,{styles:Uae(o)}):null,S?F.createElement(zae,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Yae(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const Wae=xae(fU,qae);var $4=F.forwardRef(function(t,e){return F.createElement(e1,Oa({},t,{ref:e,sideCar:Wae}))});$4.classNames=e1.classNames;var Xae=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Dd=new WeakMap,C0=new WeakMap,A0={},EO=0,vU=function(t){return t&&(t.host||vU(t.parentNode))},Gae=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=vU(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},$ae=function(t,e,r,n){var o=Gae(e,Array.isArray(t)?t:[t]);A0[r]||(A0[r]=new WeakMap);var a=A0[r],f=[],p=new Set,m=new Set(o),v=function(x){!x||p.has(x)||(p.add(x),v(x.parentNode))};o.forEach(v);var y=function(x){!x||m.has(x)||Array.prototype.forEach.call(x.children,function(k){if(p.has(k))y(k);else try{var S=k.getAttribute(n),O=S!==null&&S!=="false",C=(Dd.get(k)||0)+1,R=(a.get(k)||0)+1;Dd.set(k,C),a.set(k,R),f.push(k),C===1&&O&&C0.set(k,!0),R===1&&k.setAttribute(r,"true"),O||k.setAttribute(n,"true")}catch(E){console.error("aria-hidden: cannot operate on ",k,E)}})};return y(e),p.clear(),EO++,function(){f.forEach(function(x){var k=Dd.get(x)-1,S=a.get(x)-1;Dd.set(x,k),a.set(x,S),k||(C0.has(x)||x.removeAttribute(n),C0.delete(x)),S||x.removeAttribute(r)}),EO--,EO||(Dd=new WeakMap,Dd=new WeakMap,C0=new WeakMap,A0={})}},bU=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),o=Xae(t);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),$ae(n,o,r,"aria-hidden")):function(){return null}},t1="Dialog",[yU,fje]=lh(t1),[Zae,ia]=yU(t1),xU=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:f=!0}=t,p=F.useRef(null),m=F.useRef(null),[v,y]=Y4({prop:n,defaultProp:o??!1,onChange:a,caller:t1});return A.jsx(Zae,{scope:e,triggerRef:p,contentRef:m,contentId:vf(),titleId:vf(),descriptionId:vf(),open:v,onOpenChange:y,onOpenToggle:F.useCallback(()=>y(x=>!x),[y]),modal:f,children:r})};xU.displayName=t1;var wU="DialogTrigger",Kae=F.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,o=ia(wU,r),a=Mn(e,o.triggerRef);return A.jsx(en.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":J4(o.open),...n,ref:a,onClick:_t(t.onClick,o.onOpenToggle)})});Kae.displayName=wU;var Z4="DialogPortal",[Jae,_U]=yU(Z4,{forceMount:void 0}),kU=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:o}=t,a=ia(Z4,e);return A.jsx(Jae,{scope:e,forceMount:r,children:F.Children.map(n,f=>A.jsx(Ql,{present:r||a.open,children:A.jsx(G4,{asChild:!0,container:o,children:f})}))})};kU.displayName=Z4;var tw="DialogOverlay",jU=F.forwardRef((t,e)=>{const r=_U(tw,t.__scopeDialog),{forceMount:n=r.forceMount,...o}=t,a=ia(tw,t.__scopeDialog);return a.modal?A.jsx(Ql,{present:n||a.open,children:A.jsx(ese,{...o,ref:e})}):null});jU.displayName=tw;var Qae=Wf("DialogOverlay.RemoveScroll"),ese=F.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,o=ia(tw,r);return A.jsx($4,{as:Qae,allowPinchZoom:!0,shards:[o.contentRef],children:A.jsx(en.div,{"data-state":J4(o.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),gu="DialogContent",SU=F.forwardRef((t,e)=>{const r=_U(gu,t.__scopeDialog),{forceMount:n=r.forceMount,...o}=t,a=ia(gu,t.__scopeDialog);return A.jsx(Ql,{present:n||a.open,children:a.modal?A.jsx(tse,{...o,ref:e}):A.jsx(rse,{...o,ref:e})})});SU.displayName=gu;var tse=F.forwardRef((t,e)=>{const r=ia(gu,t.__scopeDialog),n=F.useRef(null),o=Mn(e,r.contentRef,n);return F.useEffect(()=>{const a=n.current;if(a)return bU(a)},[]),A.jsx(CU,{...t,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_t(t.onCloseAutoFocus,a=>{var f;a.preventDefault(),(f=r.triggerRef.current)==null||f.focus()}),onPointerDownOutside:_t(t.onPointerDownOutside,a=>{const f=a.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0;(f.button===2||p)&&a.preventDefault()}),onFocusOutside:_t(t.onFocusOutside,a=>a.preventDefault())})}),rse=F.forwardRef((t,e)=>{const r=ia(gu,t.__scopeDialog),n=F.useRef(!1),o=F.useRef(!1);return A.jsx(CU,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var f,p;(f=t.onCloseAutoFocus)==null||f.call(t,a),a.defaultPrevented||(n.current||(p=r.triggerRef.current)==null||p.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var m,v;(m=t.onInteractOutside)==null||m.call(t,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const f=a.target;((v=r.triggerRef.current)==null?void 0:v.contains(f))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),CU=F.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...f}=t,p=ia(gu,r),m=F.useRef(null),v=Mn(e,m);return cU(),A.jsxs(A.Fragment,{children:[A.jsx(X4,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:A.jsx(W4,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":J4(p.open),...f,ref:v,onDismiss:()=>p.onOpenChange(!1)})}),A.jsxs(A.Fragment,{children:[A.jsx(nse,{titleId:p.titleId}),A.jsx(ise,{contentRef:m,descriptionId:p.descriptionId})]})]})}),K4="DialogTitle",AU=F.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,o=ia(K4,r);return A.jsx(en.h2,{id:o.titleId,...n,ref:e})});AU.displayName=K4;var OU="DialogDescription",EU=F.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,o=ia(OU,r);return A.jsx(en.p,{id:o.descriptionId,...n,ref:e})});EU.displayName=OU;var TU="DialogClose",RU=F.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,o=ia(TU,r);return A.jsx(en.button,{type:"button",...n,ref:e,onClick:_t(t.onClick,()=>o.onOpenChange(!1))})});RU.displayName=TU;function J4(t){return t?"open":"closed"}var PU="DialogTitleWarning",[hje,zU]=Die(PU,{contentName:gu,titleName:K4,docsSlug:"dialog"}),nse=({titleId:t})=>{const e=zU(PU),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return F.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},ose="DialogDescriptionWarning",ise=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zU(ose).contentName}}.`;return F.useEffect(()=>{var a;const o=(a=t.current)==null?void 0:a.getAttribute("aria-describedby");e&&o&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},ase=xU,sse=kU,lse=jU,cse=SU,MU=AU,use=EU,dse=RU;const La=({isOpen:t,onClose:e,children:r,title:n,description:o,size:a="md",showCloseButton:f=!0,overlayClassName:p,contentClassName:m})=>{const v={sm:"max-w-full",md:"max-w-full",lg:"max-w-full",xl:"max-w-full",full:"w-full h-full m-0 rounded-none"};return A.jsx(ase,{open:t,onOpenChange:y=>!y&&e(),children:A.jsxs(sse,{children:[A.jsx(lse,{className:Ne("fixed inset-0 z-50 transition-opacity data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","bg-secondary backdrop-blur-sm backdrop-saturate-200","supports-[backdrop-filter]:bg-black/55 supports-[backdrop-filter]:backdrop-blur-sm",p)}),A.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center ",children:A.jsxs(cse,{className:Ne(" relative z-50 grid w-auto  duration-200","bg-secondary shadow-2xl border border-table-divider","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[50%] rounded-2xl",v[a],m),onEscapeKeyDown:y=>y.preventDefault(),children:[(n||f)&&A.jsxs("div",{className:"flex text-table-header-text items-center justify-center  rounded-xl py-4 shadow-lg ",children:[n&&A.jsx(MU,{className:"text-lg font-semibold",children:n}),f&&A.jsxs(dse,{className:"absolute top-5 right-3 rounded-sm font-bold transition-opacity hover:opacity-100 focus:outline-none  disabled:pointer-events-none",onClick:e,"aria-label":"Close",children:[A.jsx(Koe,{className:"h-4 w-4"}),A.jsx("span",{className:"sr-only",children:"Close"})]})]}),A.jsx("div",{className:"overflow-auto  px-3 py-5",children:r})]})})]})})},fse=F.forwardRef(({className:t,...e},r)=>A.jsx(MU,{ref:r,className:Ne("text-lg font-semibold leading-none tracking-tight",t),...e})),hse=F.forwardRef(({className:t,...e},r)=>A.jsx(use,{ref:r,className:Ne("text-sm text-muted-foreground",t),...e}));fse.displayName="ModalTitle";hse.displayName="ModalDescription";const pse=F.forwardRef(({className:t,as:e="div",hoverable:r=!1,bordered:n=!0,isLoading:o=!1,onClick:a,...f},p)=>A.jsx(e,{ref:p,className:Ne("rounded-lg bg-card text-card-foreground overflow-hidden",n&&"border",r&&"transition-all hover:shadow-md",a&&"cursor-pointer",t),onClick:a,...f,children:o?A.jsx(bse,{}):f.children}));pse.displayName="Card";const gse=F.forwardRef(({className:t,...e},r)=>A.jsx("div",{ref:r,className:Ne("flex flex-col space-y-1.5 p-6",t),...e}));gse.displayName="CardHeader";const mse=F.forwardRef(({className:t,...e},r)=>A.jsx("h3",{ref:r,className:Ne("text-2xl font-semibold leading-none tracking-tight",t),...e}));mse.displayName="CardTitle";const vse=F.forwardRef(({className:t,...e},r)=>A.jsx("p",{ref:r,className:Ne("text-sm text-muted-foreground",t),...e}));vse.displayName="CardDescription";const IU=F.forwardRef(({className:t,...e},r)=>A.jsx("div",{ref:r,className:Ne("",t),...e}));IU.displayName="CardContent";const LU=F.forwardRef(({className:t,...e},r)=>A.jsx("div",{ref:r,className:Ne("flex items-center ",t),...e}));LU.displayName="CardFooter";const bse=()=>A.jsxs("div",{className:"animate-pulse space-y-4 p-6",children:[A.jsx("div",{className:"h-6 w-3/4 rounded bg-muted"}),A.jsxs("div",{className:"space-y-2",children:[A.jsx("div",{className:"h-4 w-full rounded bg-muted"}),A.jsx("div",{className:"h-4 w-5/6 rounded bg-muted"})]}),A.jsx("div",{className:"h-10 w-24 rounded bg-muted"})]});let yse={data:""},xse=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||yse,wse=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,_se=/\/\*[^]*?\*\/|  +/g,t8=/\n+/g,bl=(t,e)=>{let r="",n="",o="";for(let a in t){let f=t[a];a[0]=="@"?a[1]=="i"?r=a+" "+f+";":n+=a[1]=="f"?bl(f,a):a+"{"+bl(f,a[1]=="k"?"":e)+"}":typeof f=="object"?n+=bl(f,e?e.replace(/([^,])+/g,p=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,m=>/&/.test(m)?m.replace(/&/g,p):p?p+" "+m:m)):a):f!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=bl.p?bl.p(a,f):a+":"+f+";")}return r+(e&&o?e+"{"+o+"}":o)+n},hs={},NU=t=>{if(typeof t=="object"){let e="";for(let r in t)e+=r+NU(t[r]);return e}return t},kse=(t,e,r,n,o)=>{let a=NU(t),f=hs[a]||(hs[a]=(m=>{let v=0,y=11;for(;v<m.length;)y=101*y+m.charCodeAt(v++)>>>0;return"go"+y})(a));if(!hs[f]){let m=a!==t?t:(v=>{let y,x,k=[{}];for(;y=wse.exec(v.replace(_se,""));)y[4]?k.shift():y[3]?(x=y[3].replace(t8," ").trim(),k.unshift(k[0][x]=k[0][x]||{})):k[0][y[1]]=y[2].replace(t8," ").trim();return k[0]})(t);hs[f]=bl(o?{["@keyframes "+f]:m}:m,r?"":"."+f)}let p=r&&hs.g?hs.g:null;return r&&(hs.g=hs[f]),((m,v,y,x)=>{x?v.data=v.data.replace(x,m):v.data.indexOf(m)===-1&&(v.data=y?m+v.data:v.data+m)})(hs[f],e,n,p),f},jse=(t,e,r)=>t.reduce((n,o,a)=>{let f=e[a];if(f&&f.call){let p=f(r),m=p&&p.props&&p.props.className||/^go/.test(p)&&p;f=m?"."+m:p&&typeof p=="object"?p.props?"":bl(p,""):p===!1?"":p}return n+o+(f??"")},"");function r1(t){let e=this||{},r=t.call?t(e.p):t;return kse(r.unshift?r.raw?jse(r,[].slice.call(arguments,1),e.p):r.reduce((n,o)=>Object.assign(n,o&&o.call?o(e.p):o),{}):r,xse(e.target),e.g,e.o,e.k)}let DU,IT,LT;r1.bind({g:1});let Is=r1.bind({k:1});function Sse(t,e,r,n){bl.p=e,DU=t,IT=r,LT=n}function ec(t,e){let r=this||{};return function(){let n=arguments;function o(a,f){let p=Object.assign({},a),m=p.className||o.className;r.p=Object.assign({theme:IT&&IT()},p),r.o=/ *go\d+/.test(m),p.className=r1.apply(r,n)+(m?" "+m:"");let v=t;return t[0]&&(v=p.as||t,delete p.as),LT&&v[0]&&LT(p),DU(v,p)}return o}}var Cse=t=>typeof t=="function",rw=(t,e)=>Cse(t)?t(e):t,Ase=(()=>{let t=0;return()=>(++t).toString()})(),BU=(()=>{let t;return()=>{if(t===void 0&&typeof window<"u"){let e=matchMedia("(prefers-reduced-motion: reduce)");t=!e||e.matches}return t}})(),Ose=20,Q4="default",FU=(t,e)=>{let{toastLimit:r}=t.settings;switch(e.type){case 0:return{...t,toasts:[e.toast,...t.toasts].slice(0,r)};case 1:return{...t,toasts:t.toasts.map(f=>f.id===e.toast.id?{...f,...e.toast}:f)};case 2:let{toast:n}=e;return FU(t,{type:t.toasts.find(f=>f.id===n.id)?1:0,toast:n});case 3:let{toastId:o}=e;return{...t,toasts:t.toasts.map(f=>f.id===o||o===void 0?{...f,dismissed:!0,visible:!1}:f)};case 4:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(f=>f.id!==e.toastId)};case 5:return{...t,pausedAt:e.time};case 6:let a=e.time-(t.pausedAt||0);return{...t,pausedAt:void 0,toasts:t.toasts.map(f=>({...f,pauseDuration:f.pauseDuration+a}))}}},ox=[],HU={toasts:[],pausedAt:void 0,settings:{toastLimit:Ose}},Ta={},UU=(t,e=Q4)=>{Ta[e]=FU(Ta[e]||HU,t),ox.forEach(([r,n])=>{r===e&&n(Ta[e])})},VU=t=>Object.keys(Ta).forEach(e=>UU(t,e)),Ese=t=>Object.keys(Ta).find(e=>Ta[e].toasts.some(r=>r.id===t)),n1=(t=Q4)=>e=>{UU(e,t)},Tse={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Rse=(t={},e=Q4)=>{let[r,n]=F.useState(Ta[e]||HU),o=F.useRef(Ta[e]);F.useEffect(()=>(o.current!==Ta[e]&&n(Ta[e]),ox.push([e,n]),()=>{let f=ox.findIndex(([p])=>p===e);f>-1&&ox.splice(f,1)}),[e]);let a=r.toasts.map(f=>{var p,m,v;return{...t,...t[f.type],...f,removeDelay:f.removeDelay||((p=t[f.type])==null?void 0:p.removeDelay)||(t==null?void 0:t.removeDelay),duration:f.duration||((m=t[f.type])==null?void 0:m.duration)||(t==null?void 0:t.duration)||Tse[f.type],style:{...t.style,...(v=t[f.type])==null?void 0:v.style,...f.style}}});return{...r,toasts:a}},Pse=(t,e="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:e,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0,...r,id:(r==null?void 0:r.id)||Ase()}),Jv=t=>(e,r)=>{let n=Pse(e,t,r);return n1(n.toasterId||Ese(n.id))({type:2,toast:n}),n.id},Tr=(t,e)=>Jv("blank")(t,e);Tr.error=Jv("error");Tr.success=Jv("success");Tr.loading=Jv("loading");Tr.custom=Jv("custom");Tr.dismiss=(t,e)=>{let r={type:3,toastId:t};e?n1(e)(r):VU(r)};Tr.dismissAll=t=>Tr.dismiss(void 0,t);Tr.remove=(t,e)=>{let r={type:4,toastId:t};e?n1(e)(r):VU(r)};Tr.removeAll=t=>Tr.remove(void 0,t);Tr.promise=(t,e,r)=>{let n=Tr.loading(e.loading,{...r,...r==null?void 0:r.loading});return typeof t=="function"&&(t=t()),t.then(o=>{let a=e.success?rw(e.success,o):void 0;return a?Tr.success(a,{id:n,...r,...r==null?void 0:r.success}):Tr.dismiss(n),o}).catch(o=>{let a=e.error?rw(e.error,o):void 0;a?Tr.error(a,{id:n,...r,...r==null?void 0:r.error}):Tr.dismiss(n)}),t};var zse=1e3,Mse=(t,e="default")=>{let{toasts:r,pausedAt:n}=Rse(t,e),o=F.useRef(new Map).current,a=F.useCallback((x,k=zse)=>{if(o.has(x))return;let S=setTimeout(()=>{o.delete(x),f({type:4,toastId:x})},k);o.set(x,S)},[]);F.useEffect(()=>{if(n)return;let x=Date.now(),k=r.map(S=>{if(S.duration===1/0)return;let O=(S.duration||0)+S.pauseDuration-(x-S.createdAt);if(O<0){S.visible&&Tr.dismiss(S.id);return}return setTimeout(()=>Tr.dismiss(S.id,e),O)});return()=>{k.forEach(S=>S&&clearTimeout(S))}},[r,n,e]);let f=F.useCallback(n1(e),[e]),p=F.useCallback(()=>{f({type:5,time:Date.now()})},[f]),m=F.useCallback((x,k)=>{f({type:1,toast:{id:x,height:k}})},[f]),v=F.useCallback(()=>{n&&f({type:6,time:Date.now()})},[n,f]),y=F.useCallback((x,k)=>{let{reverseOrder:S=!1,gutter:O=8,defaultPosition:C}=k||{},R=r.filter(M=>(M.position||C)===(x.position||C)&&M.height),E=R.findIndex(M=>M.id===x.id),P=R.filter((M,I)=>I<E&&M.visible).length;return R.filter(M=>M.visible).slice(...S?[P+1]:[0,P]).reduce((M,I)=>M+(I.height||0)+O,0)},[r]);return F.useEffect(()=>{r.forEach(x=>{if(x.dismissed)a(x.id,x.removeDelay);else{let k=o.get(x.id);k&&(clearTimeout(k),o.delete(x.id))}})},[r,a]),{toasts:r,handlers:{updateHeight:m,startPause:p,endPause:v,calculateOffset:y}}},Ise=Is`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,Lse=Is`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,Nse=Is`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,Dse=ec("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${t=>t.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

  animation: ${Ise} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;

  &:after,
  &:before {
    content: '';
    animation: ${Lse} 0.15s ease-out forwards;
    animation-delay: 150ms;
    position: absolute;
    border-radius: 3px;
    opacity: 0;
    background: ${t=>t.secondary||"#fff"};
    bottom: 9px;
    left: 4px;
    height: 2px;
    width: 12px;
  }

  &:before {
    animation: ${Nse} 0.15s ease-out forwards;
    animation-delay: 180ms;
    transform: rotate(90deg);
  }
`,Bse=Is`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
`,Fse=ec("div")`
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: ${t=>t.secondary||"#e0e0e0"};
  border-right-color: ${t=>t.primary||"#616161"};
  animation: ${Bse} 1s linear infinite;
`,Hse=Is`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(45deg);
	opacity: 1;
}`,Use=Is`
0% {
	height: 0;
	width: 0;
	opacity: 0;
}
40% {
  height: 0;
	width: 6px;
	opacity: 1;
}
100% {
  opacity: 1;
  height: 10px;
}`,Vse=ec("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${t=>t.primary||"#61d345"};
  position: relative;
  transform: rotate(45deg);

  animation: ${Hse} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${Use} 0.2s ease-out forwards;
    opacity: 0;
    animation-delay: 200ms;
    position: absolute;
    border-right: 2px solid;
    border-bottom: 2px solid;
    border-color: ${t=>t.secondary||"#fff"};
    bottom: 6px;
    left: 6px;
    height: 10px;
    width: 6px;
  }
`,qse=ec("div")`
  position: absolute;
`,Yse=ec("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,Wse=Is`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,Xse=ec("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${Wse} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,Gse=({toast:t})=>{let{icon:e,type:r,iconTheme:n}=t;return e!==void 0?typeof e=="string"?F.createElement(Xse,null,e):e:r==="blank"?null:F.createElement(Yse,null,F.createElement(Fse,{...n}),r!=="loading"&&F.createElement(qse,null,r==="error"?F.createElement(Dse,{...n}):F.createElement(Vse,{...n})))},$se=t=>`
0% {transform: translate3d(0,${t*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
`,Zse=t=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${t*-150}%,-1px) scale(.6); opacity:0;}
`,Kse="0%{opacity:0;} 100%{opacity:1;}",Jse="0%{opacity:1;} 100%{opacity:0;}",Qse=ec("div")`
  display: flex;
  align-items: center;
  background: #fff;
  color: #363636;
  line-height: 1.3;
  will-change: transform;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  pointer-events: auto;
  padding: 8px 10px;
  border-radius: 8px;
`,ele=ec("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,tle=(t,e)=>{let r=t.includes("top")?1:-1,[n,o]=BU()?[Kse,Jse]:[$se(r),Zse(r)];return{animation:e?`${Is(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Is(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},rle=F.memo(({toast:t,position:e,style:r,children:n})=>{let o=t.height?tle(t.position||e||"top-center",t.visible):{opacity:0},a=F.createElement(Gse,{toast:t}),f=F.createElement(ele,{...t.ariaProps},rw(t.message,t));return F.createElement(Qse,{className:t.className,style:{...o,...r,...t.style}},typeof n=="function"?n({icon:a,message:f}):F.createElement(F.Fragment,null,a,f))});Sse(F.createElement);var nle=({id:t,className:e,style:r,onHeightUpdate:n,children:o})=>{let a=F.useCallback(f=>{if(f){let p=()=>{let m=f.getBoundingClientRect().height;n(t,m)};p(),new MutationObserver(p).observe(f,{subtree:!0,childList:!0,characterData:!0})}},[t,n]);return F.createElement("div",{ref:a,className:e,style:r},o)},ole=(t,e)=>{let r=t.includes("top"),n=r?{top:0}:{bottom:0},o=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:BU()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${e*(r?1:-1)}px)`,...n,...o}},ile=r1`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`,O0=16,ale=({reverseOrder:t,position:e="top-center",toastOptions:r,gutter:n,children:o,toasterId:a,containerStyle:f,containerClassName:p})=>{let{toasts:m,handlers:v}=Mse(r,a);return F.createElement("div",{"data-rht-toaster":a||"",style:{position:"fixed",zIndex:9999,top:O0,left:O0,right:O0,bottom:O0,pointerEvents:"none",...f},className:p,onMouseEnter:v.startPause,onMouseLeave:v.endPause},m.map(y=>{let x=y.position||e,k=v.calculateOffset(y,{reverseOrder:t,gutter:n,defaultPosition:e}),S=ole(x,k);return F.createElement(nle,{id:y.id,key:y.id,onHeightUpdate:v.updateHeight,className:y.visible?ile:"",style:S},y.type==="custom"?rw(y.message,y):o?o(y):F.createElement(rle,{toast:y,position:x}))}))};const sle=H4("relative w-full flex items-center p-4 rounded-lg shadow-lg border",{variants:{variant:{default:"bg-background text-foreground",success:"bg-success/10 text-success-foreground border-success/20",error:"bg-destructive/10 text-destructive-foreground border-destructive/20",warning:"bg-black text-yellow-500 border-yellow-500/20",info:"bg-info/10 text-info-foreground border-info/20"}},defaultVariants:{variant:"default"}}),lle=F.forwardRef(({className:t,variant:e,title:r,description:n,onDismiss:o,action:a,autoDismiss:f=5e3,...p},m)=>(F.useEffect(()=>{if(f&&o){const v=setTimeout(o,typeof f=="number"?f:5e3);return()=>clearTimeout(v)}},[f,o]),A.jsxs("div",{ref:m,role:"alert",className:Ne(sle({variant:e}),"animate-in slide-in-from-right-full data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",t),...p,children:[A.jsxs("div",{className:"flex-1",children:[r&&A.jsx("h3",{className:"font-medium [&+div]:mt-1",children:r}),n&&A.jsx("div",{className:"text-sm opacity-90",children:n})]}),a&&A.jsx("div",{className:"ml-4",children:a}),o&&A.jsx("button",{type:"button",onClick:o,className:"ml-4 opacity-70 hover:opacity-100 transition-opacity","aria-label":"Dismiss",children:A.jsx(Qw,{className:"h-4 w-4"})})]})));lle.displayName="Toast";F.createContext(void 0);function qU({children:t}){return A.jsxs(A.Fragment,{children:[t,A.jsx(ale,{position:"bottom-right",toastOptions:{style:{borderRadius:"10px",background:"#fff",color:"#000",padding:"12px 16px",boxShadow:"0 4px 12px rgba(0,0,0,0.1)"},success:{iconTheme:{primary:"#4ade80",secondary:"#fff"}},error:{iconTheme:{primary:"#ef4444",secondary:"#fff"}}}})]})}function Ro(){return F.useMemo(()=>({toast:t=>{const e=t.description||t.title||"Notification";switch(t.variant){case"success":Tr.success(e);break;case"error":Tr.error(e);break;case"warning":Tr(e,{icon:"⚠️"});break;case"info":Tr(e,{icon:"ℹ️"});break;default:Tr(e)}}}),[])}function YU(t){const e=t+"CollectionProvider",[r,n]=lh(e),[o,a]=r(e,{collectionRef:{current:null},itemMap:new Map}),f=C=>{const{scope:R,children:E}=C,P=Ge.useRef(null),M=Ge.useRef(new Map).current;return A.jsx(o,{scope:R,itemMap:M,collectionRef:P,children:E})};f.displayName=e;const p=t+"CollectionSlot",m=Wf(p),v=Ge.forwardRef((C,R)=>{const{scope:E,children:P}=C,M=a(p,E),I=Mn(R,M.collectionRef);return A.jsx(m,{ref:I,children:P})});v.displayName=p;const y=t+"CollectionItemSlot",x="data-radix-collection-item",k=Wf(y),S=Ge.forwardRef((C,R)=>{const{scope:E,children:P,...M}=C,I=Ge.useRef(null),B=Mn(R,I),U=a(y,E);return Ge.useEffect(()=>(U.itemMap.set(I,{ref:I,...M}),()=>void U.itemMap.delete(I))),A.jsx(k,{[x]:"",ref:B,children:P})});S.displayName=y;function O(C){const R=a(t+"CollectionConsumer",C);return Ge.useCallback(()=>{const P=R.collectionRef.current;if(!P)return[];const M=Array.from(P.querySelectorAll(`[${x}]`));return Array.from(R.itemMap.values()).sort((U,H)=>M.indexOf(U.ref.current)-M.indexOf(H.ref.current))},[R.collectionRef,R.itemMap])}return[{Provider:f,Slot:v,ItemSlot:S},O,n]}var cle=F.createContext(void 0);function WU(t){const e=F.useContext(cle);return t||e||"ltr"}const ule=["top","right","bottom","left"],Yl=Math.min,Do=Math.max,nw=Math.round,E0=Math.floor,Na=t=>({x:t,y:t}),dle={left:"right",right:"left",bottom:"top",top:"bottom"},fle={start:"end",end:"start"};function NT(t,e,r){return Do(t,Yl(e,r))}function Ls(t,e){return typeof t=="function"?t(e):t}function Ns(t){return t.split("-")[0]}function ch(t){return t.split("-")[1]}function e3(t){return t==="x"?"y":"x"}function t3(t){return t==="y"?"height":"width"}const hle=new Set(["top","bottom"]);function Ra(t){return hle.has(Ns(t))?"y":"x"}function r3(t){return e3(Ra(t))}function ple(t,e,r){r===void 0&&(r=!1);const n=ch(t),o=r3(t),a=t3(o);let f=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(f=ow(f)),[f,ow(f)]}function gle(t){const e=ow(t);return[DT(t),e,DT(e)]}function DT(t){return t.replace(/start|end/g,e=>fle[e])}const r8=["left","right"],n8=["right","left"],mle=["top","bottom"],vle=["bottom","top"];function ble(t,e,r){switch(t){case"top":case"bottom":return r?e?n8:r8:e?r8:n8;case"left":case"right":return e?mle:vle;default:return[]}}function yle(t,e,r,n){const o=ch(t);let a=ble(Ns(t),r==="start",n);return o&&(a=a.map(f=>f+"-"+o),e&&(a=a.concat(a.map(DT)))),a}function ow(t){return t.replace(/left|right|bottom|top/g,e=>dle[e])}function xle(t){return{top:0,right:0,bottom:0,left:0,...t}}function XU(t){return typeof t!="number"?xle(t):{top:t,right:t,bottom:t,left:t}}function iw(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function o8(t,e,r){let{reference:n,floating:o}=t;const a=Ra(e),f=r3(e),p=t3(f),m=Ns(e),v=a==="y",y=n.x+n.width/2-o.width/2,x=n.y+n.height/2-o.height/2,k=n[p]/2-o[p]/2;let S;switch(m){case"top":S={x:y,y:n.y-o.height};break;case"bottom":S={x:y,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:x};break;case"left":S={x:n.x-o.width,y:x};break;default:S={x:n.x,y:n.y}}switch(ch(e)){case"start":S[f]-=k*(r&&v?-1:1);break;case"end":S[f]+=k*(r&&v?-1:1);break}return S}const wle=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:f}=r,p=a.filter(Boolean),m=await(f.isRTL==null?void 0:f.isRTL(e));let v=await f.getElementRects({reference:t,floating:e,strategy:o}),{x:y,y:x}=o8(v,n,m),k=n,S={},O=0;for(let C=0;C<p.length;C++){const{name:R,fn:E}=p[C],{x:P,y:M,data:I,reset:B}=await E({x:y,y:x,initialPlacement:n,placement:k,strategy:o,middlewareData:S,rects:v,platform:f,elements:{reference:t,floating:e}});y=P??y,x=M??x,S={...S,[R]:{...S[R],...I}},B&&O<=50&&(O++,typeof B=="object"&&(B.placement&&(k=B.placement),B.rects&&(v=B.rects===!0?await f.getElementRects({reference:t,floating:e,strategy:o}):B.rects),{x:y,y:x}=o8(v,k,m)),C=-1)}return{x:y,y:x,placement:k,strategy:o,middlewareData:S}};async function Xf(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:a,rects:f,elements:p,strategy:m}=t,{boundary:v="clippingAncestors",rootBoundary:y="viewport",elementContext:x="floating",altBoundary:k=!1,padding:S=0}=Ls(e,t),O=XU(S),R=p[k?x==="floating"?"reference":"floating":x],E=iw(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(R)))==null||r?R:R.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(p.floating)),boundary:v,rootBoundary:y,strategy:m})),P=x==="floating"?{x:n,y:o,width:f.floating.width,height:f.floating.height}:f.reference,M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(p.floating)),I=await(a.isElement==null?void 0:a.isElement(M))?await(a.getScale==null?void 0:a.getScale(M))||{x:1,y:1}:{x:1,y:1},B=iw(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:P,offsetParent:M,strategy:m}):P);return{top:(E.top-B.top+O.top)/I.y,bottom:(B.bottom-E.bottom+O.bottom)/I.y,left:(E.left-B.left+O.left)/I.x,right:(B.right-E.right+O.right)/I.x}}const _le=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:a,platform:f,elements:p,middlewareData:m}=e,{element:v,padding:y=0}=Ls(t,e)||{};if(v==null)return{};const x=XU(y),k={x:r,y:n},S=r3(o),O=t3(S),C=await f.getDimensions(v),R=S==="y",E=R?"top":"left",P=R?"bottom":"right",M=R?"clientHeight":"clientWidth",I=a.reference[O]+a.reference[S]-k[S]-a.floating[O],B=k[S]-a.reference[S],U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(v));let H=U?U[M]:0;(!H||!await(f.isElement==null?void 0:f.isElement(U)))&&(H=p.floating[M]||a.floating[O]);const V=I/2-B/2,W=H/2-C[O]/2-1,G=Yl(x[E],W),Z=Yl(x[P],W),K=G,Q=H-C[O]-Z,oe=H/2-C[O]/2+V,ie=NT(K,oe,Q),re=!m.arrow&&ch(o)!=null&&oe!==ie&&a.reference[O]/2-(oe<K?G:Z)-C[O]/2<0,ne=re?oe<K?oe-K:oe-Q:0;return{[S]:k[S]+ne,data:{[S]:ie,centerOffset:oe-ie-ne,...re&&{alignmentOffset:ne}},reset:re}}}),kle=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:o,middlewareData:a,rects:f,initialPlacement:p,platform:m,elements:v}=e,{mainAxis:y=!0,crossAxis:x=!0,fallbackPlacements:k,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:C=!0,...R}=Ls(t,e);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const E=Ns(o),P=Ra(p),M=Ns(p)===p,I=await(m.isRTL==null?void 0:m.isRTL(v.floating)),B=k||(M||!C?[ow(p)]:gle(p)),U=O!=="none";!k&&U&&B.push(...yle(p,C,O,I));const H=[p,...B],V=await Xf(e,R),W=[];let G=((n=a.flip)==null?void 0:n.overflows)||[];if(y&&W.push(V[E]),x){const oe=ple(o,f,I);W.push(V[oe[0]],V[oe[1]])}if(G=[...G,{placement:o,overflows:W}],!W.every(oe=>oe<=0)){var Z,K;const oe=(((Z=a.flip)==null?void 0:Z.index)||0)+1,ie=H[oe];if(ie&&(!(x==="alignment"?P!==Ra(ie):!1)||G.every(te=>Ra(te.placement)===P?te.overflows[0]>0:!0)))return{data:{index:oe,overflows:G},reset:{placement:ie}};let re=(K=G.filter(ne=>ne.overflows[0]<=0).sort((ne,te)=>ne.overflows[1]-te.overflows[1])[0])==null?void 0:K.placement;if(!re)switch(S){case"bestFit":{var Q;const ne=(Q=G.filter(te=>{if(U){const ue=Ra(te.placement);return ue===P||ue==="y"}return!0}).map(te=>[te.placement,te.overflows.filter(ue=>ue>0).reduce((ue,pe)=>ue+pe,0)]).sort((te,ue)=>te[1]-ue[1])[0])==null?void 0:Q[0];ne&&(re=ne);break}case"initialPlacement":re=p;break}if(o!==re)return{reset:{placement:re}}}return{}}}};function i8(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function a8(t){return ule.some(e=>t[e]>=0)}const jle=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...o}=Ls(t,e);switch(n){case"referenceHidden":{const a=await Xf(e,{...o,elementContext:"reference"}),f=i8(a,r.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:a8(f)}}}case"escaped":{const a=await Xf(e,{...o,altBoundary:!0}),f=i8(a,r.floating);return{data:{escapedOffsets:f,escaped:a8(f)}}}default:return{}}}}},GU=new Set(["left","top"]);async function Sle(t,e){const{placement:r,platform:n,elements:o}=t,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),f=Ns(r),p=ch(r),m=Ra(r)==="y",v=GU.has(f)?-1:1,y=a&&m?-1:1,x=Ls(e,t);let{mainAxis:k,crossAxis:S,alignmentAxis:O}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return p&&typeof O=="number"&&(S=p==="end"?O*-1:O),m?{x:S*y,y:k*v}:{x:k*v,y:S*y}}const Cle=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:a,placement:f,middlewareData:p}=e,m=await Sle(e,t);return f===((r=p.offset)==null?void 0:r.placement)&&(n=p.arrow)!=null&&n.alignmentOffset?{}:{x:o+m.x,y:a+m.y,data:{...m,placement:f}}}}},Ale=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o}=e,{mainAxis:a=!0,crossAxis:f=!1,limiter:p={fn:R=>{let{x:E,y:P}=R;return{x:E,y:P}}},...m}=Ls(t,e),v={x:r,y:n},y=await Xf(e,m),x=Ra(Ns(o)),k=e3(x);let S=v[k],O=v[x];if(a){const R=k==="y"?"top":"left",E=k==="y"?"bottom":"right",P=S+y[R],M=S-y[E];S=NT(P,S,M)}if(f){const R=x==="y"?"top":"left",E=x==="y"?"bottom":"right",P=O+y[R],M=O-y[E];O=NT(P,O,M)}const C=p.fn({...e,[k]:S,[x]:O});return{...C,data:{x:C.x-r,y:C.y-n,enabled:{[k]:a,[x]:f}}}}}},Ole=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:o,rects:a,middlewareData:f}=e,{offset:p=0,mainAxis:m=!0,crossAxis:v=!0}=Ls(t,e),y={x:r,y:n},x=Ra(o),k=e3(x);let S=y[k],O=y[x];const C=Ls(p,e),R=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(m){const M=k==="y"?"height":"width",I=a.reference[k]-a.floating[M]+R.mainAxis,B=a.reference[k]+a.reference[M]-R.mainAxis;S<I?S=I:S>B&&(S=B)}if(v){var E,P;const M=k==="y"?"width":"height",I=GU.has(Ns(o)),B=a.reference[x]-a.floating[M]+(I&&((E=f.offset)==null?void 0:E[x])||0)+(I?0:R.crossAxis),U=a.reference[x]+a.reference[M]+(I?0:((P=f.offset)==null?void 0:P[x])||0)-(I?R.crossAxis:0);O<B?O=B:O>U&&(O=U)}return{[k]:S,[x]:O}}}},Ele=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:o,rects:a,platform:f,elements:p}=e,{apply:m=()=>{},...v}=Ls(t,e),y=await Xf(e,v),x=Ns(o),k=ch(o),S=Ra(o)==="y",{width:O,height:C}=a.floating;let R,E;x==="top"||x==="bottom"?(R=x,E=k===(await(f.isRTL==null?void 0:f.isRTL(p.floating))?"start":"end")?"left":"right"):(E=x,R=k==="end"?"top":"bottom");const P=C-y.top-y.bottom,M=O-y.left-y.right,I=Yl(C-y[R],P),B=Yl(O-y[E],M),U=!e.middlewareData.shift;let H=I,V=B;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(V=M),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(H=P),U&&!k){const G=Do(y.left,0),Z=Do(y.right,0),K=Do(y.top,0),Q=Do(y.bottom,0);S?V=O-2*(G!==0||Z!==0?G+Z:Do(y.left,y.right)):H=C-2*(K!==0||Q!==0?K+Q:Do(y.top,y.bottom))}await m({...e,availableWidth:V,availableHeight:H});const W=await f.getDimensions(p.floating);return O!==W.width||C!==W.height?{reset:{rects:!0}}:{}}}};function o1(){return typeof window<"u"}function uh(t){return $U(t)?(t.nodeName||"").toLowerCase():"#document"}function qo(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ua(t){var e;return(e=($U(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function $U(t){return o1()?t instanceof Node||t instanceof qo(t).Node:!1}function ta(t){return o1()?t instanceof Element||t instanceof qo(t).Element:!1}function Ba(t){return o1()?t instanceof HTMLElement||t instanceof qo(t).HTMLElement:!1}function s8(t){return!o1()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof qo(t).ShadowRoot}const Tle=new Set(["inline","contents"]);function Qv(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=ra(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!Tle.has(o)}const Rle=new Set(["table","td","th"]);function Ple(t){return Rle.has(uh(t))}const zle=[":popover-open",":modal"];function i1(t){return zle.some(e=>{try{return t.matches(e)}catch{return!1}})}const Mle=["transform","translate","scale","rotate","perspective"],Ile=["transform","translate","scale","rotate","perspective","filter"],Lle=["paint","layout","strict","content"];function n3(t){const e=o3(),r=ta(t)?ra(t):t;return Mle.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||Ile.some(n=>(r.willChange||"").includes(n))||Lle.some(n=>(r.contain||"").includes(n))}function Nle(t){let e=Wl(t);for(;Ba(e)&&!Gf(e);){if(n3(e))return e;if(i1(e))return null;e=Wl(e)}return null}function o3(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Dle=new Set(["html","body","#document"]);function Gf(t){return Dle.has(uh(t))}function ra(t){return qo(t).getComputedStyle(t)}function a1(t){return ta(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Wl(t){if(uh(t)==="html")return t;const e=t.assignedSlot||t.parentNode||s8(t)&&t.host||Ua(t);return s8(e)?e.host:e}function ZU(t){const e=Wl(t);return Gf(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ba(e)&&Qv(e)?e:ZU(e)}function iv(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=ZU(t),a=o===((n=t.ownerDocument)==null?void 0:n.body),f=qo(o);if(a){const p=BT(f);return e.concat(f,f.visualViewport||[],Qv(o)?o:[],p&&r?iv(p):[])}return e.concat(o,iv(o,[],r))}function BT(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function KU(t){const e=ra(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=Ba(t),a=o?t.offsetWidth:r,f=o?t.offsetHeight:n,p=nw(r)!==a||nw(n)!==f;return p&&(r=a,n=f),{width:r,height:n,$:p}}function i3(t){return ta(t)?t:t.contextElement}function yf(t){const e=i3(t);if(!Ba(e))return Na(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:a}=KU(e);let f=(a?nw(r.width):r.width)/n,p=(a?nw(r.height):r.height)/o;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const Ble=Na(0);function JU(t){const e=qo(t);return!o3()||!e.visualViewport?Ble:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Fle(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==qo(t)?!1:e}function mu(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),a=i3(t);let f=Na(1);e&&(n?ta(n)&&(f=yf(n)):f=yf(t));const p=Fle(a,r,n)?JU(a):Na(0);let m=(o.left+p.x)/f.x,v=(o.top+p.y)/f.y,y=o.width/f.x,x=o.height/f.y;if(a){const k=qo(a),S=n&&ta(n)?qo(n):n;let O=k,C=BT(O);for(;C&&n&&S!==O;){const R=yf(C),E=C.getBoundingClientRect(),P=ra(C),M=E.left+(C.clientLeft+parseFloat(P.paddingLeft))*R.x,I=E.top+(C.clientTop+parseFloat(P.paddingTop))*R.y;m*=R.x,v*=R.y,y*=R.x,x*=R.y,m+=M,v+=I,O=qo(C),C=BT(O)}}return iw({width:y,height:x,x:m,y:v})}function s1(t,e){const r=a1(t).scrollLeft;return e?e.left+r:mu(Ua(t)).left+r}function QU(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-s1(t,r),o=r.top+e.scrollTop;return{x:n,y:o}}function Hle(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const a=o==="fixed",f=Ua(n),p=e?i1(e.floating):!1;if(n===f||p&&a)return r;let m={scrollLeft:0,scrollTop:0},v=Na(1);const y=Na(0),x=Ba(n);if((x||!x&&!a)&&((uh(n)!=="body"||Qv(f))&&(m=a1(n)),Ba(n))){const S=mu(n);v=yf(n),y.x=S.x+n.clientLeft,y.y=S.y+n.clientTop}const k=f&&!x&&!a?QU(f,m):Na(0);return{width:r.width*v.x,height:r.height*v.y,x:r.x*v.x-m.scrollLeft*v.x+y.x+k.x,y:r.y*v.y-m.scrollTop*v.y+y.y+k.y}}function Ule(t){return Array.from(t.getClientRects())}function Vle(t){const e=Ua(t),r=a1(t),n=t.ownerDocument.body,o=Do(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Do(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let f=-r.scrollLeft+s1(t);const p=-r.scrollTop;return ra(n).direction==="rtl"&&(f+=Do(e.clientWidth,n.clientWidth)-o),{width:o,height:a,x:f,y:p}}const l8=25;function qle(t,e){const r=qo(t),n=Ua(t),o=r.visualViewport;let a=n.clientWidth,f=n.clientHeight,p=0,m=0;if(o){a=o.width,f=o.height;const y=o3();(!y||y&&e==="fixed")&&(p=o.offsetLeft,m=o.offsetTop)}const v=s1(n);if(v<=0){const y=n.ownerDocument,x=y.body,k=getComputedStyle(x),S=y.compatMode==="CSS1Compat"&&parseFloat(k.marginLeft)+parseFloat(k.marginRight)||0,O=Math.abs(n.clientWidth-x.clientWidth-S);O<=l8&&(a-=O)}else v<=l8&&(a+=v);return{width:a,height:f,x:p,y:m}}const Yle=new Set(["absolute","fixed"]);function Wle(t,e){const r=mu(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,a=Ba(t)?yf(t):Na(1),f=t.clientWidth*a.x,p=t.clientHeight*a.y,m=o*a.x,v=n*a.y;return{width:f,height:p,x:m,y:v}}function c8(t,e,r){let n;if(e==="viewport")n=qle(t,r);else if(e==="document")n=Vle(Ua(t));else if(ta(e))n=Wle(e,r);else{const o=JU(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return iw(n)}function eV(t,e){const r=Wl(t);return r===e||!ta(r)||Gf(r)?!1:ra(r).position==="fixed"||eV(r,e)}function Xle(t,e){const r=e.get(t);if(r)return r;let n=iv(t,[],!1).filter(p=>ta(p)&&uh(p)!=="body"),o=null;const a=ra(t).position==="fixed";let f=a?Wl(t):t;for(;ta(f)&&!Gf(f);){const p=ra(f),m=n3(f);!m&&p.position==="fixed"&&(o=null),(a?!m&&!o:!m&&p.position==="static"&&!!o&&Yle.has(o.position)||Qv(f)&&!m&&eV(t,f))?n=n.filter(y=>y!==f):o=p,f=Wl(f)}return e.set(t,n),n}function Gle(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const f=[...r==="clippingAncestors"?i1(e)?[]:Xle(e,this._c):[].concat(r),n],p=f[0],m=f.reduce((v,y)=>{const x=c8(e,y,o);return v.top=Do(x.top,v.top),v.right=Yl(x.right,v.right),v.bottom=Yl(x.bottom,v.bottom),v.left=Do(x.left,v.left),v},c8(e,p,o));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function $le(t){const{width:e,height:r}=KU(t);return{width:e,height:r}}function Zle(t,e,r){const n=Ba(e),o=Ua(e),a=r==="fixed",f=mu(t,!0,a,e);let p={scrollLeft:0,scrollTop:0};const m=Na(0);function v(){m.x=s1(o)}if(n||!n&&!a)if((uh(e)!=="body"||Qv(o))&&(p=a1(e)),n){const S=mu(e,!0,a,e);m.x=S.x+e.clientLeft,m.y=S.y+e.clientTop}else o&&v();a&&!n&&o&&v();const y=o&&!n&&!a?QU(o,p):Na(0),x=f.left+p.scrollLeft-m.x-y.x,k=f.top+p.scrollTop-m.y-y.y;return{x,y:k,width:f.width,height:f.height}}function TO(t){return ra(t).position==="static"}function u8(t,e){if(!Ba(t)||ra(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ua(t)===r&&(r=r.ownerDocument.body),r}function tV(t,e){const r=qo(t);if(i1(t))return r;if(!Ba(t)){let o=Wl(t);for(;o&&!Gf(o);){if(ta(o)&&!TO(o))return o;o=Wl(o)}return r}let n=u8(t,e);for(;n&&Ple(n)&&TO(n);)n=u8(n,e);return n&&Gf(n)&&TO(n)&&!n3(n)?r:n||Nle(t)||r}const Kle=async function(t){const e=this.getOffsetParent||tV,r=this.getDimensions,n=await r(t.floating);return{reference:Zle(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Jle(t){return ra(t).direction==="rtl"}const Qle={convertOffsetParentRelativeRectToViewportRelativeRect:Hle,getDocumentElement:Ua,getClippingRect:Gle,getOffsetParent:tV,getElementRects:Kle,getClientRects:Ule,getDimensions:$le,getScale:yf,isElement:ta,isRTL:Jle};function rV(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function ece(t,e){let r=null,n;const o=Ua(t);function a(){var p;clearTimeout(n),(p=r)==null||p.disconnect(),r=null}function f(p,m){p===void 0&&(p=!1),m===void 0&&(m=1),a();const v=t.getBoundingClientRect(),{left:y,top:x,width:k,height:S}=v;if(p||e(),!k||!S)return;const O=E0(x),C=E0(o.clientWidth-(y+k)),R=E0(o.clientHeight-(x+S)),E=E0(y),M={rootMargin:-O+"px "+-C+"px "+-R+"px "+-E+"px",threshold:Do(0,Yl(1,m))||1};let I=!0;function B(U){const H=U[0].intersectionRatio;if(H!==m){if(!I)return f();H?f(!1,H):n=setTimeout(()=>{f(!1,1e-7)},1e3)}H===1&&!rV(v,t.getBoundingClientRect())&&f(),I=!1}try{r=new IntersectionObserver(B,{...M,root:o.ownerDocument})}catch{r=new IntersectionObserver(B,M)}r.observe(t)}return f(!0),a}function nV(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:m=!1}=n,v=i3(t),y=o||a?[...v?iv(v):[],...iv(e)]:[];y.forEach(E=>{o&&E.addEventListener("scroll",r,{passive:!0}),a&&E.addEventListener("resize",r)});const x=v&&p?ece(v,r):null;let k=-1,S=null;f&&(S=new ResizeObserver(E=>{let[P]=E;P&&P.target===v&&S&&(S.unobserve(e),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var M;(M=S)==null||M.observe(e)})),r()}),v&&!m&&S.observe(v),S.observe(e));let O,C=m?mu(t):null;m&&R();function R(){const E=mu(t);C&&!rV(C,E)&&r(),C=E,O=requestAnimationFrame(R)}return r(),()=>{var E;y.forEach(P=>{o&&P.removeEventListener("scroll",r),a&&P.removeEventListener("resize",r)}),x==null||x(),(E=S)==null||E.disconnect(),S=null,m&&cancelAnimationFrame(O)}}const pje=Xf,tce=Cle,rce=Ale,nce=kle,oce=Ele,ice=jle,d8=_le,ace=Ole,sce=(t,e,r)=>{const n=new Map,o={platform:Qle,...r},a={...o.platform,_c:n};return wle(t,e,{...o,platform:a})};var lce=typeof document<"u",cce=function(){},ix=lce?F.useLayoutEffect:cce;function aw(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!aw(t[n],e[n]))return!1;return!0}if(o=Object.keys(t),r=o.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&t.$$typeof)&&!aw(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function oV(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function f8(t,e){const r=oV(t);return Math.round(e*r)/r}function RO(t){const e=F.useRef(t);return ix(()=>{e.current=t}),e}function uce(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:f}={},transform:p=!0,whileElementsMounted:m,open:v}=t,[y,x]=F.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[k,S]=F.useState(n);aw(k,n)||S(n);const[O,C]=F.useState(null),[R,E]=F.useState(null),P=F.useCallback(te=>{te!==U.current&&(U.current=te,C(te))},[]),M=F.useCallback(te=>{te!==H.current&&(H.current=te,E(te))},[]),I=a||O,B=f||R,U=F.useRef(null),H=F.useRef(null),V=F.useRef(y),W=m!=null,G=RO(m),Z=RO(o),K=RO(v),Q=F.useCallback(()=>{if(!U.current||!H.current)return;const te={placement:e,strategy:r,middleware:k};Z.current&&(te.platform=Z.current),sce(U.current,H.current,te).then(ue=>{const pe={...ue,isPositioned:K.current!==!1};oe.current&&!aw(V.current,pe)&&(V.current=pe,Mv.flushSync(()=>{x(pe)}))})},[k,e,r,Z,K]);ix(()=>{v===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,x(te=>({...te,isPositioned:!1})))},[v]);const oe=F.useRef(!1);ix(()=>(oe.current=!0,()=>{oe.current=!1}),[]),ix(()=>{if(I&&(U.current=I),B&&(H.current=B),I&&B){if(G.current)return G.current(I,B,Q);Q()}},[I,B,Q,G,W]);const ie=F.useMemo(()=>({reference:U,floating:H,setReference:P,setFloating:M}),[P,M]),re=F.useMemo(()=>({reference:I,floating:B}),[I,B]),ne=F.useMemo(()=>{const te={position:r,left:0,top:0};if(!re.floating)return te;const ue=f8(re.floating,y.x),pe=f8(re.floating,y.y);return p?{...te,transform:"translate("+ue+"px, "+pe+"px)",...oV(re.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ue,top:pe}},[r,p,re.floating,y.x,y.y]);return F.useMemo(()=>({...y,update:Q,refs:ie,elements:re,floatingStyles:ne}),[y,Q,ie,re,ne])}const dce=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:o}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?d8({element:n.current,padding:o}).fn(r):{}:n?d8({element:n,padding:o}).fn(r):{}}}},fce=(t,e)=>({...tce(t),options:[t,e]}),hce=(t,e)=>({...rce(t),options:[t,e]}),pce=(t,e)=>({...ace(t),options:[t,e]}),gce=(t,e)=>({...nce(t),options:[t,e]}),mce=(t,e)=>({...oce(t),options:[t,e]}),vce=(t,e)=>({...ice(t),options:[t,e]}),bce=(t,e)=>({...dce(t),options:[t,e]});var yce="Arrow",iV=F.forwardRef((t,e)=>{const{children:r,width:n=10,height:o=5,...a}=t;return A.jsx(en.svg,{...a,ref:e,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:A.jsx("polygon",{points:"0,0 30,0 15,10"})})});iV.displayName=yce;var xce=iV;function wce(t){const[e,r]=F.useState(void 0);return ql(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let f,p;if("borderBoxSize"in a){const m=a.borderBoxSize,v=Array.isArray(m)?m[0]:m;f=v.inlineSize,p=v.blockSize}else f=t.offsetWidth,p=t.offsetHeight;r({width:f,height:p})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var a3="Popper",[aV,sV]=lh(a3),[_ce,lV]=aV(a3),cV=t=>{const{__scopePopper:e,children:r}=t,[n,o]=F.useState(null);return A.jsx(_ce,{scope:e,anchor:n,onAnchorChange:o,children:r})};cV.displayName=a3;var uV="PopperAnchor",dV=F.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...o}=t,a=lV(uV,r),f=F.useRef(null),p=Mn(e,f),m=F.useRef(null);return F.useEffect(()=>{const v=m.current;m.current=(n==null?void 0:n.current)||f.current,v!==m.current&&a.onAnchorChange(m.current)}),n?null:A.jsx(en.div,{...o,ref:p})});dV.displayName=uV;var s3="PopperContent",[kce,jce]=aV(s3),fV=F.forwardRef((t,e)=>{var Te,Xe,rt,pt,Lt,Cr;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:v=[],collisionPadding:y=0,sticky:x="partial",hideWhenDetached:k=!1,updatePositionStrategy:S="optimized",onPlaced:O,...C}=t,R=lV(s3,r),[E,P]=F.useState(null),M=Mn(e,$t=>P($t)),[I,B]=F.useState(null),U=wce(I),H=(U==null?void 0:U.width)??0,V=(U==null?void 0:U.height)??0,W=n+(a!=="center"?"-"+a:""),G=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},Z=Array.isArray(v)?v:[v],K=Z.length>0,Q={padding:G,boundary:Z.filter(Cce),altBoundary:K},{refs:oe,floatingStyles:ie,placement:re,isPositioned:ne,middlewareData:te}=uce({strategy:"fixed",placement:W,whileElementsMounted:(...$t)=>nV(...$t,{animationFrame:S==="always"}),elements:{reference:R.anchor},middleware:[fce({mainAxis:o+V,alignmentAxis:f}),m&&hce({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?pce():void 0,...Q}),m&&gce({...Q}),mce({...Q,apply:({elements:$t,rects:Pr,availableWidth:Jo,availableHeight:tc})=>{const{width:rc,height:zu}=Pr.reference,Pi=$t.floating.style;Pi.setProperty("--radix-popper-available-width",`${Jo}px`),Pi.setProperty("--radix-popper-available-height",`${tc}px`),Pi.setProperty("--radix-popper-anchor-width",`${rc}px`),Pi.setProperty("--radix-popper-anchor-height",`${zu}px`)}}),I&&bce({element:I,padding:p}),Ace({arrowWidth:H,arrowHeight:V}),k&&vce({strategy:"referenceHidden",...Q})]}),[ue,pe]=gV(re),ke=Ms(O);ql(()=>{ne&&(ke==null||ke())},[ne,ke]);const ze=(Te=te.arrow)==null?void 0:Te.x,Re=(Xe=te.arrow)==null?void 0:Xe.y,Ae=((rt=te.arrow)==null?void 0:rt.centerOffset)!==0,[tt,Ue]=F.useState();return ql(()=>{E&&Ue(window.getComputedStyle(E).zIndex)},[E]),A.jsx("div",{ref:oe.setFloating,"data-radix-popper-content-wrapper":"",style:{...ie,transform:ne?ie.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:tt,"--radix-popper-transform-origin":[(pt=te.transformOrigin)==null?void 0:pt.x,(Lt=te.transformOrigin)==null?void 0:Lt.y].join(" "),...((Cr=te.hide)==null?void 0:Cr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:A.jsx(kce,{scope:r,placedSide:ue,onArrowChange:B,arrowX:ze,arrowY:Re,shouldHideArrow:Ae,children:A.jsx(en.div,{"data-side":ue,"data-align":pe,...C,ref:M,style:{...C.style,animation:ne?void 0:"none"}})})})});fV.displayName=s3;var hV="PopperArrow",Sce={top:"bottom",right:"left",bottom:"top",left:"right"},pV=F.forwardRef(function(e,r){const{__scopePopper:n,...o}=e,a=jce(hV,n),f=Sce[a.placedSide];return A.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:A.jsx(xce,{...o,ref:r,style:{...o.style,display:"block"}})})});pV.displayName=hV;function Cce(t){return t!==null}var Ace=t=>({name:"transformOrigin",options:t,fn(e){var R,E,P;const{placement:r,rects:n,middlewareData:o}=e,f=((R=o.arrow)==null?void 0:R.centerOffset)!==0,p=f?0:t.arrowWidth,m=f?0:t.arrowHeight,[v,y]=gV(r),x={start:"0%",center:"50%",end:"100%"}[y],k=(((E=o.arrow)==null?void 0:E.x)??0)+p/2,S=(((P=o.arrow)==null?void 0:P.y)??0)+m/2;let O="",C="";return v==="bottom"?(O=f?x:`${k}px`,C=`${-m}px`):v==="top"?(O=f?x:`${k}px`,C=`${n.floating.height+m}px`):v==="right"?(O=`${-m}px`,C=f?x:`${S}px`):v==="left"&&(O=`${n.floating.width+m}px`,C=f?x:`${S}px`),{data:{x:O,y:C}}}});function gV(t){const[e,r="center"]=t.split("-");return[e,r]}var Oce=cV,Ece=dV,Tce=fV,Rce=pV,PO="rovingFocusGroup.onEntryFocus",Pce={bubbles:!1,cancelable:!0},eb="RovingFocusGroup",[FT,mV,zce]=YU(eb),[Mce,vV]=lh(eb,[zce]),[Ice,Lce]=Mce(eb),bV=F.forwardRef((t,e)=>A.jsx(FT.Provider,{scope:t.__scopeRovingFocusGroup,children:A.jsx(FT.Slot,{scope:t.__scopeRovingFocusGroup,children:A.jsx(Nce,{...t,ref:e})})}));bV.displayName=eb;var Nce=F.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:m,onEntryFocus:v,preventScrollOnEntryFocus:y=!1,...x}=t,k=F.useRef(null),S=Mn(e,k),O=WU(a),[C,R]=Y4({prop:f,defaultProp:p??null,onChange:m,caller:eb}),[E,P]=F.useState(!1),M=Ms(v),I=mV(r),B=F.useRef(!1),[U,H]=F.useState(0);return F.useEffect(()=>{const V=k.current;if(V)return V.addEventListener(PO,M),()=>V.removeEventListener(PO,M)},[M]),A.jsx(Ice,{scope:r,orientation:n,dir:O,loop:o,currentTabStopId:C,onItemFocus:F.useCallback(V=>R(V),[R]),onItemShiftTab:F.useCallback(()=>P(!0),[]),onFocusableItemAdd:F.useCallback(()=>H(V=>V+1),[]),onFocusableItemRemove:F.useCallback(()=>H(V=>V-1),[]),children:A.jsx(en.div,{tabIndex:E||U===0?-1:0,"data-orientation":n,...x,ref:S,style:{outline:"none",...t.style},onMouseDown:_t(t.onMouseDown,()=>{B.current=!0}),onFocus:_t(t.onFocus,V=>{const W=!B.current;if(V.target===V.currentTarget&&W&&!E){const G=new CustomEvent(PO,Pce);if(V.currentTarget.dispatchEvent(G),!G.defaultPrevented){const Z=I().filter(re=>re.focusable),K=Z.find(re=>re.active),Q=Z.find(re=>re.id===C),ie=[K,Q,...Z].filter(Boolean).map(re=>re.ref.current);wV(ie,y)}}B.current=!1}),onBlur:_t(t.onBlur,()=>P(!1))})})}),yV="RovingFocusGroupItem",xV=F.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:f,...p}=t,m=vf(),v=a||m,y=Lce(yV,r),x=y.currentTabStopId===v,k=mV(r),{onFocusableItemAdd:S,onFocusableItemRemove:O,currentTabStopId:C}=y;return F.useEffect(()=>{if(n)return S(),()=>O()},[n,S,O]),A.jsx(FT.ItemSlot,{scope:r,id:v,focusable:n,active:o,children:A.jsx(en.span,{tabIndex:x?0:-1,"data-orientation":y.orientation,...p,ref:e,onMouseDown:_t(t.onMouseDown,R=>{n?y.onItemFocus(v):R.preventDefault()}),onFocus:_t(t.onFocus,()=>y.onItemFocus(v)),onKeyDown:_t(t.onKeyDown,R=>{if(R.key==="Tab"&&R.shiftKey){y.onItemShiftTab();return}if(R.target!==R.currentTarget)return;const E=Fce(R,y.orientation,y.dir);if(E!==void 0){if(R.metaKey||R.ctrlKey||R.altKey||R.shiftKey)return;R.preventDefault();let M=k().filter(I=>I.focusable).map(I=>I.ref.current);if(E==="last")M.reverse();else if(E==="prev"||E==="next"){E==="prev"&&M.reverse();const I=M.indexOf(R.currentTarget);M=y.loop?Hce(M,I+1):M.slice(I+1)}setTimeout(()=>wV(M))}}),children:typeof f=="function"?f({isCurrentTabStop:x,hasTabStop:C!=null}):f})})});xV.displayName=yV;var Dce={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Bce(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function Fce(t,e,r){const n=Bce(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Dce[n]}function wV(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function Hce(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var Uce=bV,Vce=xV,HT=["Enter"," "],qce=["ArrowDown","PageUp","Home"],_V=["ArrowUp","PageDown","End"],Yce=[...qce,..._V],Wce={ltr:[...HT,"ArrowRight"],rtl:[...HT,"ArrowLeft"]},Xce={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tb="Menu",[av,Gce,$ce]=YU(tb),[Ou,kV]=lh(tb,[$ce,sV,vV]),l1=sV(),jV=vV(),[Zce,Eu]=Ou(tb),[Kce,rb]=Ou(tb),SV=t=>{const{__scopeMenu:e,open:r=!1,children:n,dir:o,onOpenChange:a,modal:f=!0}=t,p=l1(e),[m,v]=F.useState(null),y=F.useRef(!1),x=Ms(a),k=WU(o);return F.useEffect(()=>{const S=()=>{y.current=!0,document.addEventListener("pointerdown",O,{capture:!0,once:!0}),document.addEventListener("pointermove",O,{capture:!0,once:!0})},O=()=>y.current=!1;return document.addEventListener("keydown",S,{capture:!0}),()=>{document.removeEventListener("keydown",S,{capture:!0}),document.removeEventListener("pointerdown",O,{capture:!0}),document.removeEventListener("pointermove",O,{capture:!0})}},[]),A.jsx(Oce,{...p,children:A.jsx(Zce,{scope:e,open:r,onOpenChange:x,content:m,onContentChange:v,children:A.jsx(Kce,{scope:e,onClose:F.useCallback(()=>x(!1),[x]),isUsingKeyboardRef:y,dir:k,modal:f,children:n})})})};SV.displayName=tb;var Jce="MenuAnchor",l3=F.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,o=l1(r);return A.jsx(Ece,{...o,...n,ref:e})});l3.displayName=Jce;var c3="MenuPortal",[Qce,CV]=Ou(c3,{forceMount:void 0}),AV=t=>{const{__scopeMenu:e,forceMount:r,children:n,container:o}=t,a=Eu(c3,e);return A.jsx(Qce,{scope:e,forceMount:r,children:A.jsx(Ql,{present:r||a.open,children:A.jsx(G4,{asChild:!0,container:o,children:n})})})};AV.displayName=c3;var Si="MenuContent",[eue,u3]=Ou(Si),OV=F.forwardRef((t,e)=>{const r=CV(Si,t.__scopeMenu),{forceMount:n=r.forceMount,...o}=t,a=Eu(Si,t.__scopeMenu),f=rb(Si,t.__scopeMenu);return A.jsx(av.Provider,{scope:t.__scopeMenu,children:A.jsx(Ql,{present:n||a.open,children:A.jsx(av.Slot,{scope:t.__scopeMenu,children:f.modal?A.jsx(tue,{...o,ref:e}):A.jsx(rue,{...o,ref:e})})})})}),tue=F.forwardRef((t,e)=>{const r=Eu(Si,t.__scopeMenu),n=F.useRef(null),o=Mn(e,n);return F.useEffect(()=>{const a=n.current;if(a)return bU(a)},[]),A.jsx(d3,{...t,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:_t(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),rue=F.forwardRef((t,e)=>{const r=Eu(Si,t.__scopeMenu);return A.jsx(d3,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),nue=Wf("MenuContent.ScrollLock"),d3=F.forwardRef((t,e)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:f,disableOutsidePointerEvents:p,onEntryFocus:m,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:k,onDismiss:S,disableOutsideScroll:O,...C}=t,R=Eu(Si,r),E=rb(Si,r),P=l1(r),M=jV(r),I=Gce(r),[B,U]=F.useState(null),H=F.useRef(null),V=Mn(e,H,R.onContentChange),W=F.useRef(0),G=F.useRef(""),Z=F.useRef(0),K=F.useRef(null),Q=F.useRef("right"),oe=F.useRef(0),ie=O?$4:F.Fragment,re=O?{as:nue,allowPinchZoom:!0}:void 0,ne=ue=>{var Te,Xe;const pe=G.current+ue,ke=I().filter(rt=>!rt.disabled),ze=document.activeElement,Re=(Te=ke.find(rt=>rt.ref.current===ze))==null?void 0:Te.textValue,Ae=ke.map(rt=>rt.textValue),tt=gue(Ae,pe,Re),Ue=(Xe=ke.find(rt=>rt.textValue===tt))==null?void 0:Xe.ref.current;(function rt(pt){G.current=pt,window.clearTimeout(W.current),pt!==""&&(W.current=window.setTimeout(()=>rt(""),1e3))})(pe),Ue&&setTimeout(()=>Ue.focus())};F.useEffect(()=>()=>window.clearTimeout(W.current),[]),cU();const te=F.useCallback(ue=>{var ke,ze;return Q.current===((ke=K.current)==null?void 0:ke.side)&&vue(ue,(ze=K.current)==null?void 0:ze.area)},[]);return A.jsx(eue,{scope:r,searchRef:G,onItemEnter:F.useCallback(ue=>{te(ue)&&ue.preventDefault()},[te]),onItemLeave:F.useCallback(ue=>{var pe;te(ue)||((pe=H.current)==null||pe.focus(),U(null))},[te]),onTriggerLeave:F.useCallback(ue=>{te(ue)&&ue.preventDefault()},[te]),pointerGraceTimerRef:Z,onPointerGraceIntentChange:F.useCallback(ue=>{K.current=ue},[]),children:A.jsx(ie,{...re,children:A.jsx(X4,{asChild:!0,trapped:o,onMountAutoFocus:_t(a,ue=>{var pe;ue.preventDefault(),(pe=H.current)==null||pe.focus({preventScroll:!0})}),onUnmountAutoFocus:f,children:A.jsx(W4,{asChild:!0,disableOutsidePointerEvents:p,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:k,onDismiss:S,children:A.jsx(Uce,{asChild:!0,...M,dir:E.dir,orientation:"vertical",loop:n,currentTabStopId:B,onCurrentTabStopIdChange:U,onEntryFocus:_t(m,ue=>{E.isUsingKeyboardRef.current||ue.preventDefault()}),preventScrollOnEntryFocus:!0,children:A.jsx(Tce,{role:"menu","aria-orientation":"vertical","data-state":qV(R.open),"data-radix-menu-content":"",dir:E.dir,...P,...C,ref:V,style:{outline:"none",...C.style},onKeyDown:_t(C.onKeyDown,ue=>{const ke=ue.target.closest("[data-radix-menu-content]")===ue.currentTarget,ze=ue.ctrlKey||ue.altKey||ue.metaKey,Re=ue.key.length===1;ke&&(ue.key==="Tab"&&ue.preventDefault(),!ze&&Re&&ne(ue.key));const Ae=H.current;if(ue.target!==Ae||!Yce.includes(ue.key))return;ue.preventDefault();const Ue=I().filter(Te=>!Te.disabled).map(Te=>Te.ref.current);_V.includes(ue.key)&&Ue.reverse(),hue(Ue)}),onBlur:_t(t.onBlur,ue=>{ue.currentTarget.contains(ue.target)||(window.clearTimeout(W.current),G.current="")}),onPointerMove:_t(t.onPointerMove,sv(ue=>{const pe=ue.target,ke=oe.current!==ue.clientX;if(ue.currentTarget.contains(pe)&&ke){const ze=ue.clientX>oe.current?"right":"left";Q.current=ze,oe.current=ue.clientX}}))})})})})})})});OV.displayName=Si;var oue="MenuGroup",f3=F.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return A.jsx(en.div,{role:"group",...n,ref:e})});f3.displayName=oue;var iue="MenuLabel",EV=F.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return A.jsx(en.div,{...n,ref:e})});EV.displayName=iue;var sw="MenuItem",h8="menu.itemSelect",c1=F.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...o}=t,a=F.useRef(null),f=rb(sw,t.__scopeMenu),p=u3(sw,t.__scopeMenu),m=Mn(e,a),v=F.useRef(!1),y=()=>{const x=a.current;if(!r&&x){const k=new CustomEvent(h8,{bubbles:!0,cancelable:!0});x.addEventListener(h8,S=>n==null?void 0:n(S),{once:!0}),iU(x,k),k.defaultPrevented?v.current=!1:f.onClose()}};return A.jsx(TV,{...o,ref:m,disabled:r,onClick:_t(t.onClick,y),onPointerDown:x=>{var k;(k=t.onPointerDown)==null||k.call(t,x),v.current=!0},onPointerUp:_t(t.onPointerUp,x=>{var k;v.current||(k=x.currentTarget)==null||k.click()}),onKeyDown:_t(t.onKeyDown,x=>{const k=p.searchRef.current!=="";r||k&&x.key===" "||HT.includes(x.key)&&(x.currentTarget.click(),x.preventDefault())})})});c1.displayName=sw;var TV=F.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=t,f=u3(sw,r),p=jV(r),m=F.useRef(null),v=Mn(e,m),[y,x]=F.useState(!1),[k,S]=F.useState("");return F.useEffect(()=>{const O=m.current;O&&S((O.textContent??"").trim())},[a.children]),A.jsx(av.ItemSlot,{scope:r,disabled:n,textValue:o??k,children:A.jsx(Vce,{asChild:!0,...p,focusable:!n,children:A.jsx(en.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:v,onPointerMove:_t(t.onPointerMove,sv(O=>{n?f.onItemLeave(O):(f.onItemEnter(O),O.defaultPrevented||O.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:_t(t.onPointerLeave,sv(O=>f.onItemLeave(O))),onFocus:_t(t.onFocus,()=>x(!0)),onBlur:_t(t.onBlur,()=>x(!1))})})})}),aue="MenuCheckboxItem",RV=F.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...o}=t;return A.jsx(LV,{scope:t.__scopeMenu,checked:r,children:A.jsx(c1,{role:"menuitemcheckbox","aria-checked":lw(r)?"mixed":r,...o,ref:e,"data-state":p3(r),onSelect:_t(o.onSelect,()=>n==null?void 0:n(lw(r)?!0:!r),{checkForDefaultPrevented:!1})})})});RV.displayName=aue;var PV="MenuRadioGroup",[sue,lue]=Ou(PV,{value:void 0,onValueChange:()=>{}}),zV=F.forwardRef((t,e)=>{const{value:r,onValueChange:n,...o}=t,a=Ms(n);return A.jsx(sue,{scope:t.__scopeMenu,value:r,onValueChange:a,children:A.jsx(f3,{...o,ref:e})})});zV.displayName=PV;var MV="MenuRadioItem",IV=F.forwardRef((t,e)=>{const{value:r,...n}=t,o=lue(MV,t.__scopeMenu),a=r===o.value;return A.jsx(LV,{scope:t.__scopeMenu,checked:a,children:A.jsx(c1,{role:"menuitemradio","aria-checked":a,...n,ref:e,"data-state":p3(a),onSelect:_t(n.onSelect,()=>{var f;return(f=o.onValueChange)==null?void 0:f.call(o,r)},{checkForDefaultPrevented:!1})})})});IV.displayName=MV;var h3="MenuItemIndicator",[LV,cue]=Ou(h3,{checked:!1}),NV=F.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...o}=t,a=cue(h3,r);return A.jsx(Ql,{present:n||lw(a.checked)||a.checked===!0,children:A.jsx(en.span,{...o,ref:e,"data-state":p3(a.checked)})})});NV.displayName=h3;var uue="MenuSeparator",DV=F.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return A.jsx(en.div,{role:"separator","aria-orientation":"horizontal",...n,ref:e})});DV.displayName=uue;var due="MenuArrow",BV=F.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,o=l1(r);return A.jsx(Rce,{...o,...n,ref:e})});BV.displayName=due;var fue="MenuSub",[gje,FV]=Ou(fue),bm="MenuSubTrigger",HV=F.forwardRef((t,e)=>{const r=Eu(bm,t.__scopeMenu),n=rb(bm,t.__scopeMenu),o=FV(bm,t.__scopeMenu),a=u3(bm,t.__scopeMenu),f=F.useRef(null),{pointerGraceTimerRef:p,onPointerGraceIntentChange:m}=a,v={__scopeMenu:t.__scopeMenu},y=F.useCallback(()=>{f.current&&window.clearTimeout(f.current),f.current=null},[]);return F.useEffect(()=>y,[y]),F.useEffect(()=>{const x=p.current;return()=>{window.clearTimeout(x),m(null)}},[p,m]),A.jsx(l3,{asChild:!0,...v,children:A.jsx(TV,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":qV(r.open),...t,ref:Kw(e,o.onTriggerChange),onClick:x=>{var k;(k=t.onClick)==null||k.call(t,x),!(t.disabled||x.defaultPrevented)&&(x.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:_t(t.onPointerMove,sv(x=>{a.onItemEnter(x),!x.defaultPrevented&&!t.disabled&&!r.open&&!f.current&&(a.onPointerGraceIntentChange(null),f.current=window.setTimeout(()=>{r.onOpenChange(!0),y()},100))})),onPointerLeave:_t(t.onPointerLeave,sv(x=>{var S,O;y();const k=(S=r.content)==null?void 0:S.getBoundingClientRect();if(k){const C=(O=r.content)==null?void 0:O.dataset.side,R=C==="right",E=R?-5:5,P=k[R?"left":"right"],M=k[R?"right":"left"];a.onPointerGraceIntentChange({area:[{x:x.clientX+E,y:x.clientY},{x:P,y:k.top},{x:M,y:k.top},{x:M,y:k.bottom},{x:P,y:k.bottom}],side:C}),window.clearTimeout(p.current),p.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(x),x.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:_t(t.onKeyDown,x=>{var S;const k=a.searchRef.current!=="";t.disabled||k&&x.key===" "||Wce[n.dir].includes(x.key)&&(r.onOpenChange(!0),(S=r.content)==null||S.focus(),x.preventDefault())})})})});HV.displayName=bm;var UV="MenuSubContent",VV=F.forwardRef((t,e)=>{const r=CV(Si,t.__scopeMenu),{forceMount:n=r.forceMount,...o}=t,a=Eu(Si,t.__scopeMenu),f=rb(Si,t.__scopeMenu),p=FV(UV,t.__scopeMenu),m=F.useRef(null),v=Mn(e,m);return A.jsx(av.Provider,{scope:t.__scopeMenu,children:A.jsx(Ql,{present:n||a.open,children:A.jsx(av.Slot,{scope:t.__scopeMenu,children:A.jsx(d3,{id:p.contentId,"aria-labelledby":p.triggerId,...o,ref:v,align:"start",side:f.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{var x;f.isUsingKeyboardRef.current&&((x=m.current)==null||x.focus()),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:_t(t.onFocusOutside,y=>{y.target!==p.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:_t(t.onEscapeKeyDown,y=>{f.onClose(),y.preventDefault()}),onKeyDown:_t(t.onKeyDown,y=>{var S;const x=y.currentTarget.contains(y.target),k=Xce[f.dir].includes(y.key);x&&k&&(a.onOpenChange(!1),(S=p.trigger)==null||S.focus(),y.preventDefault())})})})})})});VV.displayName=UV;function qV(t){return t?"open":"closed"}function lw(t){return t==="indeterminate"}function p3(t){return lw(t)?"indeterminate":t?"checked":"unchecked"}function hue(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function pue(t,e){return t.map((r,n)=>t[(e+n)%t.length])}function gue(t,e,r){const o=e.length>1&&Array.from(e).every(v=>v===e[0])?e[0]:e,a=r?t.indexOf(r):-1;let f=pue(t,Math.max(a,0));o.length===1&&(f=f.filter(v=>v!==r));const m=f.find(v=>v.toLowerCase().startsWith(o.toLowerCase()));return m!==r?m:void 0}function mue(t,e){const{x:r,y:n}=t;let o=!1;for(let a=0,f=e.length-1;a<e.length;f=a++){const p=e[a],m=e[f],v=p.x,y=p.y,x=m.x,k=m.y;y>n!=k>n&&r<(x-v)*(n-y)/(k-y)+v&&(o=!o)}return o}function vue(t,e){if(!e)return!1;const r={x:t.clientX,y:t.clientY};return mue(r,e)}function sv(t){return e=>e.pointerType==="mouse"?t(e):void 0}var bue=SV,yue=l3,xue=AV,wue=OV,_ue=f3,kue=EV,jue=c1,Sue=RV,Cue=zV,Aue=IV,Oue=NV,Eue=DV,Tue=BV,Rue=HV,Pue=VV,u1="DropdownMenu",[zue,mje]=lh(u1,[kV]),so=kV(),[Mue,YV]=zue(u1),WV=t=>{const{__scopeDropdownMenu:e,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:f,modal:p=!0}=t,m=so(e),v=F.useRef(null),[y,x]=Y4({prop:o,defaultProp:a??!1,onChange:f,caller:u1});return A.jsx(Mue,{scope:e,triggerId:vf(),triggerRef:v,contentId:vf(),open:y,onOpenChange:x,onOpenToggle:F.useCallback(()=>x(k=>!k),[x]),modal:p,children:A.jsx(bue,{...m,open:y,onOpenChange:x,dir:n,modal:p,children:r})})};WV.displayName=u1;var XV="DropdownMenuTrigger",GV=F.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=t,a=YV(XV,r),f=so(r);return A.jsx(yue,{asChild:!0,...f,children:A.jsx(en.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:Kw(e,a.triggerRef),onPointerDown:_t(t.onPointerDown,p=>{!n&&p.button===0&&p.ctrlKey===!1&&(a.onOpenToggle(),a.open||p.preventDefault())}),onKeyDown:_t(t.onKeyDown,p=>{n||(["Enter"," "].includes(p.key)&&a.onOpenToggle(),p.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(p.key)&&p.preventDefault())})})})});GV.displayName=XV;var Iue="DropdownMenuPortal",$V=t=>{const{__scopeDropdownMenu:e,...r}=t,n=so(e);return A.jsx(xue,{...n,...r})};$V.displayName=Iue;var ZV="DropdownMenuContent",KV=F.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,o=YV(ZV,r),a=so(r),f=F.useRef(!1);return A.jsx(wue,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:e,onCloseAutoFocus:_t(t.onCloseAutoFocus,p=>{var m;f.current||(m=o.triggerRef.current)==null||m.focus(),f.current=!1,p.preventDefault()}),onInteractOutside:_t(t.onInteractOutside,p=>{const m=p.detail.originalEvent,v=m.button===0&&m.ctrlKey===!0,y=m.button===2||v;(!o.modal||y)&&(f.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});KV.displayName=ZV;var Lue="DropdownMenuGroup",JV=F.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,o=so(r);return A.jsx(_ue,{...o,...n,ref:e})});JV.displayName=Lue;var Nue="DropdownMenuLabel",QV=F.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,o=so(r);return A.jsx(kue,{...o,...n,ref:e})});QV.displayName=Nue;var Due="DropdownMenuItem",eq=F.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,o=so(r);return A.jsx(jue,{...o,...n,ref:e})});eq.displayName=Due;var Bue="DropdownMenuCheckboxItem",tq=F.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,o=so(r);return A.jsx(Sue,{...o,...n,ref:e})});tq.displayName=Bue;var Fue="DropdownMenuRadioGroup",Hue=F.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,o=so(r);return A.jsx(Cue,{...o,...n,ref:e})});Hue.displayName=Fue;var Uue="DropdownMenuRadioItem",rq=F.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,o=so(r);return A.jsx(Aue,{...o,...n,ref:e})});rq.displayName=Uue;var Vue="DropdownMenuItemIndicator",nq=F.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,o=so(r);return A.jsx(Oue,{...o,...n,ref:e})});nq.displayName=Vue;var que="DropdownMenuSeparator",oq=F.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,o=so(r);return A.jsx(Eue,{...o,...n,ref:e})});oq.displayName=que;var Yue="DropdownMenuArrow",Wue=F.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,o=so(r);return A.jsx(Tue,{...o,...n,ref:e})});Wue.displayName=Yue;var Xue="DropdownMenuSubTrigger",iq=F.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,o=so(r);return A.jsx(Rue,{...o,...n,ref:e})});iq.displayName=Xue;var Gue="DropdownMenuSubContent",aq=F.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,o=so(r);return A.jsx(Pue,{...o,...n,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});aq.displayName=Gue;var $ue=WV,Zue=GV,g3=$V,m3=KV,Kue=JV,v3=QV,b3=eq,y3=tq,x3=rq,d1=nq,w3=oq,_3=iq,k3=aq;const Jue=F.forwardRef(({className:t,inset:e,children:r,...n},o)=>A.jsxs(_3,{ref:o,className:Ne("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",e&&"pl-8",t),...n,children:[r,A.jsx(Jw,{className:"ml-auto h-4 w-4"})]}));Jue.displayName="DropdownSubTrigger";const Que=F.forwardRef(({className:t,...e},r)=>A.jsx(g3,{children:A.jsx(k3,{ref:r,className:Ne("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e})}));Que.displayName="DropdownSubContent";const ede=F.forwardRef(({className:t,sideOffset:e=4,container:r,...n},o)=>A.jsx(g3,{container:r,children:A.jsx(m3,{ref:o,sideOffset:e,className:Ne("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n})}));ede.displayName="DropdownContent";const tde=F.forwardRef(({className:t,inset:e,...r},n)=>A.jsx(b3,{ref:n,className:Ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t),...r}));tde.displayName="DropdownItem";const rde=F.forwardRef(({className:t,children:e,checked:r,...n},o)=>A.jsxs(y3,{ref:o,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:r,...n,children:[A.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:A.jsx(d1,{children:A.jsx(tU,{className:"h-4 w-4"})})}),e]}));rde.displayName="DropdownCheckboxItem";const nde=F.forwardRef(({className:t,children:e,...r},n)=>A.jsxs(x3,{ref:n,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[A.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:A.jsx(d1,{children:A.jsx(V4,{className:"h-2 w-2 fill-current"})})}),e]}));nde.displayName="DropdownRadioItem";const ode=F.forwardRef(({className:t,inset:e,...r},n)=>A.jsx(v3,{ref:n,className:Ne("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t),...r}));ode.displayName="DropdownLabel";const ide=F.forwardRef(({className:t,...e},r)=>A.jsx(w3,{ref:r,className:Ne("-mx-1 my-1 h-px bg-border",t),...e}));ide.displayName="DropdownSeparator";const ade={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-12 w-12"},sde={primary:"text-primary",secondary:"text-secondary-foreground",success:"text-success",destructive:"text-destructive",muted:"text-muted-foreground"},cw=({size:t="md",variant:e="primary",className:r,label:n="Loading...",...o})=>A.jsxs("div",{className:Ne("inline-flex items-center justify-center",r),role:"status","aria-label":n,...o,children:[A.jsxs("svg",{className:Ne("animate-spin",ade[t],sde[e]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[A.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),A.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),A.jsx("span",{className:"sr-only",children:n})]}),lde=H4("inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"bg-primary/10 text-primary border-transparent hover:bg-primary/20",secondary:"bg-secondary/10 text-secondary-foreground border-transparent hover:bg-secondary/20",success:"bg-success/10 text-success-foreground border-success/20 hover:bg-success/20",destructive:"bg-destructive/10 text-destructive-foreground border-destructive/20 hover:bg-destructive/20",warning:"bg-warning/10 text-warning-foreground border-warning/20 hover:bg-warning/20",info:"bg-info/10 text-info-foreground border-info/20 hover:bg-info/20",outline:"text-foreground border-border"},size:{sm:"text-xs px-2 py-0.5",md:"text-sm px-2.5 py-0.5",lg:"text-base px-3 py-1"},rounded:{sm:"rounded-sm",md:"rounded",lg:"rounded-md",full:"rounded-full"}},defaultVariants:{variant:"default",size:"md",rounded:"full"}}),cde=F.forwardRef(({className:t,variant:e,size:r,rounded:n,onRemove:o,removeIcon:a,removeButtonClass:f,withDot:p=!1,dotColor:m,children:v,...y},x)=>{const k=m?{backgroundColor:m}:void 0;return A.jsxs("div",{className:Ne(lde({variant:e,size:r,rounded:n,className:t}),"inline-flex items-center gap-1.5",t),ref:x,...y,children:[p&&A.jsx("span",{className:Ne("h-1.5 w-1.5 rounded-full",!m&&e==="default"&&"bg-primary",!m&&e==="secondary"&&"bg-secondary-foreground",!m&&e==="success"&&"bg-success",!m&&e==="destructive"&&"bg-destructive",!m&&e==="warning"&&"bg-warning",!m&&e==="info"&&"bg-info",!m&&e==="outline"&&"bg-foreground"),style:k,"aria-hidden":"true"}),v,o&&A.jsx("button",{type:"button",onClick:o,className:Ne("ml-1.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/20",f),"aria-label":"Remove",children:a||A.jsx(Qw,{className:"h-3 w-3"})})]})});cde.displayName="Badge";const ude={sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-16 w-16 text-lg","2xl":"h-20 w-20 text-xl"},dde={sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3",xl:"h-3.5 w-3.5","2xl":"h-4 w-4"},fde={sm:"bottom-0 right-0",md:"bottom-0 right-0",lg:"bottom-0.5 right-0.5",xl:"bottom-1 right-1","2xl":"bottom-1 right-1"},sq=F.forwardRef(({src:t,alt:e="",fallback:r,size:n="md",shape:o="circle",status:a,statusClassName:f,bordered:p=!1,className:m,imgClassName:v,fallbackClassName:y,...x},k)=>{const S=typeof n=="number"?"":ude[n],O=typeof n=="number"?"md":n,C={circle:"rounded-full",square:"rounded",rounded:"rounded-lg"},R={online:"bg-success",offline:"bg-muted-foreground/30",busy:"bg-destructive",away:"bg-warning"},E=P=>P?P.split(" ").map(M=>M[0]).join("").toUpperCase().substring(0,2):"??";return A.jsxs("div",{ref:k,className:Ne("relative inline-flex items-center justify-center bg-muted overflow-hidden ",S,C[o],p&&"ring-2 ",m),style:typeof n=="number"?{width:n,height:n}:void 0,...x,children:[t?A.jsx("img",{src:t,alt:e,className:Ne("h-full w-full object-cover",C[o],v),onError:P=>{const M=P.target;M.style.display="none"}}):null,(r||!t)&&A.jsx("span",{className:Ne("flex h-full w-full items-center justify-center bg-muted font-medium text-muted-foreground",y),children:E(r)}),a&&A.jsx("span",{className:Ne("absolute block rounded-full border-2 border-background",R[a],dde[O],fde[O],a==="offline"&&"ring-1 ring-muted-foreground/20",f),"aria-label":`Status: ${a}`})]})});sq.displayName="Avatar";var nb=t=>t.type==="checkbox",Bc=t=>t instanceof Date,ro=t=>t==null;const lq=t=>typeof t=="object";var Xr=t=>!ro(t)&&!Array.isArray(t)&&lq(t)&&!Bc(t),cq=t=>Xr(t)&&t.target?nb(t.target)?t.target.checked:t.target.value:t,hde=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,uq=(t,e)=>t.has(hde(e)),pde=t=>{const e=t.constructor&&t.constructor.prototype;return Xr(e)&&e.hasOwnProperty("isPrototypeOf")},j3=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function on(t){let e;const r=Array.isArray(t),n=typeof FileList<"u"?t instanceof FileList:!1;if(t instanceof Date)e=new Date(t);else if(!(j3&&(t instanceof Blob||n))&&(r||Xr(t)))if(e=r?[]:Object.create(Object.getPrototypeOf(t)),!r&&!pde(t))e=t;else for(const o in t)t.hasOwnProperty(o)&&(e[o]=on(t[o]));else return t;return e}var f1=t=>/^\w*$/.test(t),Wr=t=>t===void 0,S3=t=>Array.isArray(t)?t.filter(Boolean):[],C3=t=>S3(t.replace(/["|']|\]/g,"").split(/\.|\[/)),De=(t,e,r)=>{if(!e||!Xr(t))return r;const n=(f1(e)?[e]:C3(e)).reduce((o,a)=>ro(o)?o:o[a],t);return Wr(n)||n===t?Wr(t[e])?r:t[e]:n},No=t=>typeof t=="boolean",Zt=(t,e,r)=>{let n=-1;const o=f1(e)?[e]:C3(e),a=o.length,f=a-1;for(;++n<a;){const p=o[n];let m=r;if(n!==f){const v=t[p];m=Xr(v)||Array.isArray(v)?v:isNaN(+o[n+1])?{}:[]}if(p==="__proto__"||p==="constructor"||p==="prototype")return;t[p]=m,t=t[p]}};const uw={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Xi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ps={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},A3=Ge.createContext(null);A3.displayName="HookFormContext";const h1=()=>Ge.useContext(A3),gde=t=>{const{children:e,...r}=t;return Ge.createElement(A3.Provider,{value:r},e)};var dq=(t,e,r,n=!0)=>{const o={defaultValues:e._defaultValues};for(const a in t)Object.defineProperty(o,a,{get:()=>{const f=a;return e._proxyFormState[f]!==Xi.all&&(e._proxyFormState[f]=!n||Xi.all),r&&(r[f]=!0),t[f]}});return o};const O3=typeof window<"u"?Ge.useLayoutEffect:Ge.useEffect;function mde(t){const e=h1(),{control:r=e.control,disabled:n,name:o,exact:a}=t||{},[f,p]=Ge.useState(r._formState),m=Ge.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return O3(()=>r._subscribe({name:o,formState:m.current,exact:a,callback:v=>{!n&&p({...r._formState,...v})}}),[o,n,a]),Ge.useEffect(()=>{m.current.isValid&&r._setValid(!0)},[r]),Ge.useMemo(()=>dq(f,r,m.current,!1),[f,r])}var Pa=t=>typeof t=="string",fq=(t,e,r,n,o)=>Pa(t)?(n&&e.watch.add(t),De(r,t,o)):Array.isArray(t)?t.map(a=>(n&&e.watch.add(a),De(r,a))):(n&&(e.watchAll=!0),r),UT=t=>ro(t)||!lq(t);function ys(t,e,r=new WeakSet){if(UT(t)||UT(e))return t===e;if(Bc(t)&&Bc(e))return t.getTime()===e.getTime();const n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);for(const a of n){const f=t[a];if(!o.includes(a))return!1;if(a!=="ref"){const p=e[a];if(Bc(f)&&Bc(p)||Xr(f)&&Xr(p)||Array.isArray(f)&&Array.isArray(p)?!ys(f,p,r):f!==p)return!1}}return!0}function vde(t){const e=h1(),{control:r=e.control,name:n,defaultValue:o,disabled:a,exact:f,compute:p}=t||{},m=Ge.useRef(o),v=Ge.useRef(p),y=Ge.useRef(void 0);v.current=p;const x=Ge.useMemo(()=>r._getWatch(n,m.current),[r,n]),[k,S]=Ge.useState(v.current?v.current(x):x);return O3(()=>r._subscribe({name:n,formState:{values:!0},exact:f,callback:O=>{if(!a){const C=fq(n,r._names,O.values||r._formValues,!1,m.current);if(v.current){const R=v.current(C);ys(R,y.current)||(S(R),y.current=R)}else S(C)}}}),[r,a,n,f]),Ge.useEffect(()=>r._removeUnmounted()),k}function bde(t){const e=h1(),{name:r,disabled:n,control:o=e.control,shouldUnregister:a,defaultValue:f}=t,p=uq(o._names.array,r),m=Ge.useMemo(()=>De(o._formValues,r,De(o._defaultValues,r,f)),[o,r,f]),v=vde({control:o,name:r,defaultValue:m,exact:!0}),y=mde({control:o,name:r,exact:!0}),x=Ge.useRef(t),k=Ge.useRef(o.register(r,{...t.rules,value:v,...No(t.disabled)?{disabled:t.disabled}:{}}));x.current=t;const S=Ge.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!De(y.errors,r)},isDirty:{enumerable:!0,get:()=>!!De(y.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!De(y.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!De(y.validatingFields,r)},error:{enumerable:!0,get:()=>De(y.errors,r)}}),[y,r]),O=Ge.useCallback(P=>k.current.onChange({target:{value:cq(P),name:r},type:uw.CHANGE}),[r]),C=Ge.useCallback(()=>k.current.onBlur({target:{value:De(o._formValues,r),name:r},type:uw.BLUR}),[r,o._formValues]),R=Ge.useCallback(P=>{const M=De(o._fields,r);M&&P&&(M._f.ref={focus:()=>P.focus&&P.focus(),select:()=>P.select&&P.select(),setCustomValidity:I=>P.setCustomValidity(I),reportValidity:()=>P.reportValidity()})},[o._fields,r]),E=Ge.useMemo(()=>({name:r,value:v,...No(n)||y.disabled?{disabled:y.disabled||n}:{},onChange:O,onBlur:C,ref:R}),[r,n,y.disabled,O,C,R,v]);return Ge.useEffect(()=>{const P=o._options.shouldUnregister||a;o.register(r,{...x.current.rules,...No(x.current.disabled)?{disabled:x.current.disabled}:{}});const M=(I,B)=>{const U=De(o._fields,I);U&&U._f&&(U._f.mount=B)};if(M(r,!0),P){const I=on(De(o._options.defaultValues,r));Zt(o._defaultValues,r,I),Wr(De(o._formValues,r))&&Zt(o._formValues,r,I)}return!p&&o.register(r),()=>{(p?P&&!o._state.action:P)?o.unregister(r):M(r,!1)}},[r,o,p,a]),Ge.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),Ge.useMemo(()=>({field:E,formState:y,fieldState:S}),[E,y,S])}const yde=t=>t.render(bde(t));var E3=(t,e,r,n,o)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:o||!0}}:{},Nm=t=>Array.isArray(t)?t:[t],p8=()=>{let t=[];return{get observers(){return t},next:o=>{for(const a of t)a.next&&a.next(o)},subscribe:o=>(t.push(o),{unsubscribe:()=>{t=t.filter(a=>a!==o)}}),unsubscribe:()=>{t=[]}}},xo=t=>Xr(t)&&!Object.keys(t).length,T3=t=>t.type==="file",Gi=t=>typeof t=="function",dw=t=>{if(!j3)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},hq=t=>t.type==="select-multiple",R3=t=>t.type==="radio",xde=t=>R3(t)||nb(t),zO=t=>dw(t)&&t.isConnected;function wde(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=Wr(t)?n++:t[e[n++]];return t}function _de(t){for(const e in t)if(t.hasOwnProperty(e)&&!Wr(t[e]))return!1;return!0}function Zr(t,e){const r=Array.isArray(e)?e:f1(e)?[e]:C3(e),n=r.length===1?t:wde(t,r),o=r.length-1,a=r[o];return n&&delete n[a],o!==0&&(Xr(n)&&xo(n)||Array.isArray(n)&&_de(n))&&Zr(t,r.slice(0,-1)),t}var pq=t=>{for(const e in t)if(Gi(t[e]))return!0;return!1};function fw(t,e={}){const r=Array.isArray(t);if(Xr(t)||r)for(const n in t)Array.isArray(t[n])||Xr(t[n])&&!pq(t[n])?(e[n]=Array.isArray(t[n])?[]:{},fw(t[n],e[n])):ro(t[n])||(e[n]=!0);return e}function gq(t,e,r){const n=Array.isArray(t);if(Xr(t)||n)for(const o in t)Array.isArray(t[o])||Xr(t[o])&&!pq(t[o])?Wr(e)||UT(r[o])?r[o]=Array.isArray(t[o])?fw(t[o],[]):{...fw(t[o])}:gq(t[o],ro(e)?{}:e[o],r[o]):r[o]=!ys(t[o],e[o]);return r}var im=(t,e)=>gq(t,e,fw(e));const g8={value:!1,isValid:!1},m8={value:!0,isValid:!0};var mq=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!Wr(t[0].attributes.value)?Wr(t[0].value)||t[0].value===""?m8:{value:t[0].value,isValid:!0}:m8:g8}return g8},vq=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:n})=>Wr(t)?t:e?t===""?NaN:t&&+t:r&&Pa(t)?new Date(t):n?n(t):t;const v8={isValid:!1,value:null};var bq=t=>Array.isArray(t)?t.reduce((e,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:e,v8):v8;function b8(t){const e=t.ref;return T3(e)?e.files:R3(e)?bq(t.refs).value:hq(e)?[...e.selectedOptions].map(({value:r})=>r):nb(e)?mq(t.refs).value:vq(Wr(e.value)?t.ref.value:e.value,t)}var kde=(t,e,r,n)=>{const o={};for(const a of t){const f=De(e,a);f&&Zt(o,a,f._f)}return{criteriaMode:r,names:[...t],fields:o,shouldUseNativeValidation:n}},hw=t=>t instanceof RegExp,am=t=>Wr(t)?t:hw(t)?t.source:Xr(t)?hw(t.value)?t.value.source:t.value:t,y8=t=>({isOnSubmit:!t||t===Xi.onSubmit,isOnBlur:t===Xi.onBlur,isOnChange:t===Xi.onChange,isOnAll:t===Xi.all,isOnTouch:t===Xi.onTouched});const x8="AsyncFunction";var jde=t=>!!t&&!!t.validate&&!!(Gi(t.validate)&&t.validate.constructor.name===x8||Xr(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===x8)),Sde=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),w8=(t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some(n=>t.startsWith(n)&&/^\.\w+/.test(t.slice(n.length))));const Dm=(t,e,r,n)=>{for(const o of r||Object.keys(t)){const a=De(t,o);if(a){const{_f:f,...p}=a;if(f){if(f.refs&&f.refs[0]&&e(f.refs[0],o)&&!n)return!0;if(f.ref&&e(f.ref,f.name)&&!n)return!0;if(Dm(p,e))break}else if(Xr(p)&&Dm(p,e))break}}};function _8(t,e,r){const n=De(t,r);if(n||f1(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const a=o.join("."),f=De(e,a),p=De(t,a);if(f&&!Array.isArray(f)&&r!==a)return{name:r};if(p&&p.type)return{name:a,error:p};if(p&&p.root&&p.root.type)return{name:`${a}.root`,error:p.root};o.pop()}return{name:r}}var Cde=(t,e,r,n)=>{r(t);const{name:o,...a}=t;return xo(a)||Object.keys(a).length>=Object.keys(e).length||Object.keys(a).find(f=>e[f]===(!n||Xi.all))},Ade=(t,e,r)=>!t||!e||t===e||Nm(t).some(n=>n&&(r?n===e:n.startsWith(e)||e.startsWith(n))),Ode=(t,e,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(e||t):(r?n.isOnBlur:o.isOnBlur)?!t:(r?n.isOnChange:o.isOnChange)?t:!0,Ede=(t,e)=>!S3(De(t,e)).length&&Zr(t,e),Tde=(t,e,r)=>{const n=Nm(De(t,r));return Zt(n,"root",e[r]),Zt(t,r,n),t},ax=t=>Pa(t);function k8(t,e,r="validate"){if(ax(t)||Array.isArray(t)&&t.every(ax)||No(t)&&!t)return{type:r,message:ax(t)?t:"",ref:e}}var Bd=t=>Xr(t)&&!hw(t)?t:{value:t,message:""},j8=async(t,e,r,n,o,a)=>{const{ref:f,refs:p,required:m,maxLength:v,minLength:y,min:x,max:k,pattern:S,validate:O,name:C,valueAsNumber:R,mount:E}=t._f,P=De(r,C);if(!E||e.has(C))return{};const M=p?p[0]:f,I=K=>{o&&M.reportValidity&&(M.setCustomValidity(No(K)?"":K||""),M.reportValidity())},B={},U=R3(f),H=nb(f),V=U||H,W=(R||T3(f))&&Wr(f.value)&&Wr(P)||dw(f)&&f.value===""||P===""||Array.isArray(P)&&!P.length,G=E3.bind(null,C,n,B),Z=(K,Q,oe,ie=ps.maxLength,re=ps.minLength)=>{const ne=K?Q:oe;B[C]={type:K?ie:re,message:ne,ref:f,...G(K?ie:re,ne)}};if(a?!Array.isArray(P)||!P.length:m&&(!V&&(W||ro(P))||No(P)&&!P||H&&!mq(p).isValid||U&&!bq(p).isValid)){const{value:K,message:Q}=ax(m)?{value:!!m,message:m}:Bd(m);if(K&&(B[C]={type:ps.required,message:Q,ref:M,...G(ps.required,Q)},!n))return I(Q),B}if(!W&&(!ro(x)||!ro(k))){let K,Q;const oe=Bd(k),ie=Bd(x);if(!ro(P)&&!isNaN(P)){const re=f.valueAsNumber||P&&+P;ro(oe.value)||(K=re>oe.value),ro(ie.value)||(Q=re<ie.value)}else{const re=f.valueAsDate||new Date(P),ne=pe=>new Date(new Date().toDateString()+" "+pe),te=f.type=="time",ue=f.type=="week";Pa(oe.value)&&P&&(K=te?ne(P)>ne(oe.value):ue?P>oe.value:re>new Date(oe.value)),Pa(ie.value)&&P&&(Q=te?ne(P)<ne(ie.value):ue?P<ie.value:re<new Date(ie.value))}if((K||Q)&&(Z(!!K,oe.message,ie.message,ps.max,ps.min),!n))return I(B[C].message),B}if((v||y)&&!W&&(Pa(P)||a&&Array.isArray(P))){const K=Bd(v),Q=Bd(y),oe=!ro(K.value)&&P.length>+K.value,ie=!ro(Q.value)&&P.length<+Q.value;if((oe||ie)&&(Z(oe,K.message,Q.message),!n))return I(B[C].message),B}if(S&&!W&&Pa(P)){const{value:K,message:Q}=Bd(S);if(hw(K)&&!P.match(K)&&(B[C]={type:ps.pattern,message:Q,ref:f,...G(ps.pattern,Q)},!n))return I(Q),B}if(O){if(Gi(O)){const K=await O(P,r),Q=k8(K,M);if(Q&&(B[C]={...Q,...G(ps.validate,Q.message)},!n))return I(Q.message),B}else if(Xr(O)){let K={};for(const Q in O){if(!xo(K)&&!n)break;const oe=k8(await O[Q](P,r),M,Q);oe&&(K={...oe,...G(Q,oe.message)},I(oe.message),n&&(B[C]=K))}if(!xo(K)&&(B[C]={ref:M,...K},!n))return B}}return I(!0),B};const Rde={mode:Xi.onSubmit,reValidateMode:Xi.onChange,shouldFocusError:!0};function Pde(t={}){let e={...Rde,...t},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Gi(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1},n={},o=Xr(e.defaultValues)||Xr(e.values)?on(e.defaultValues||e.values)||{}:{},a=e.shouldUnregister?{}:on(o),f={action:!1,mount:!1,watch:!1},p={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},m,v=0;const y={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let x={...y};const k={array:p8(),state:p8()},S=e.criteriaMode===Xi.all,O=ae=>he=>{clearTimeout(v),v=setTimeout(ae,he)},C=async ae=>{if(!e.disabled&&(y.isValid||x.isValid||ae)){const he=e.resolver?xo((await H()).errors):await W(n,!0);he!==r.isValid&&k.state.next({isValid:he})}},R=(ae,he)=>{!e.disabled&&(y.isValidating||y.validatingFields||x.isValidating||x.validatingFields)&&((ae||Array.from(p.mount)).forEach(ve=>{ve&&(he?Zt(r.validatingFields,ve,he):Zr(r.validatingFields,ve))}),k.state.next({validatingFields:r.validatingFields,isValidating:!xo(r.validatingFields)}))},E=(ae,he=[],ve,He,Le=!0,Ee=!0)=>{if(He&&ve&&!e.disabled){if(f.action=!0,Ee&&Array.isArray(De(n,ae))){const $e=ve(De(n,ae),He.argA,He.argB);Le&&Zt(n,ae,$e)}if(Ee&&Array.isArray(De(r.errors,ae))){const $e=ve(De(r.errors,ae),He.argA,He.argB);Le&&Zt(r.errors,ae,$e),Ede(r.errors,ae)}if((y.touchedFields||x.touchedFields)&&Ee&&Array.isArray(De(r.touchedFields,ae))){const $e=ve(De(r.touchedFields,ae),He.argA,He.argB);Le&&Zt(r.touchedFields,ae,$e)}(y.dirtyFields||x.dirtyFields)&&(r.dirtyFields=im(o,a)),k.state.next({name:ae,isDirty:Z(ae,he),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Zt(a,ae,he)},P=(ae,he)=>{Zt(r.errors,ae,he),k.state.next({errors:r.errors})},M=ae=>{r.errors=ae,k.state.next({errors:r.errors,isValid:!1})},I=(ae,he,ve,He)=>{const Le=De(n,ae);if(Le){const Ee=De(a,ae,Wr(ve)?De(o,ae):ve);Wr(Ee)||He&&He.defaultChecked||he?Zt(a,ae,he?Ee:b8(Le._f)):oe(ae,Ee),f.mount&&C()}},B=(ae,he,ve,He,Le)=>{let Ee=!1,$e=!1;const Mt={name:ae};if(!e.disabled){if(!ve||He){(y.isDirty||x.isDirty)&&($e=r.isDirty,r.isDirty=Mt.isDirty=Z(),Ee=$e!==Mt.isDirty);const Wt=ys(De(o,ae),he);$e=!!De(r.dirtyFields,ae),Wt?Zr(r.dirtyFields,ae):Zt(r.dirtyFields,ae,!0),Mt.dirtyFields=r.dirtyFields,Ee=Ee||(y.dirtyFields||x.dirtyFields)&&$e!==!Wt}if(ve){const Wt=De(r.touchedFields,ae);Wt||(Zt(r.touchedFields,ae,ve),Mt.touchedFields=r.touchedFields,Ee=Ee||(y.touchedFields||x.touchedFields)&&Wt!==ve)}Ee&&Le&&k.state.next(Mt)}return Ee?Mt:{}},U=(ae,he,ve,He)=>{const Le=De(r.errors,ae),Ee=(y.isValid||x.isValid)&&No(he)&&r.isValid!==he;if(e.delayError&&ve?(m=O(()=>P(ae,ve)),m(e.delayError)):(clearTimeout(v),m=null,ve?Zt(r.errors,ae,ve):Zr(r.errors,ae)),(ve?!ys(Le,ve):Le)||!xo(He)||Ee){const $e={...He,...Ee&&No(he)?{isValid:he}:{},errors:r.errors,name:ae};r={...r,...$e},k.state.next($e)}},H=async ae=>{R(ae,!0);const he=await e.resolver(a,e.context,kde(ae||p.mount,n,e.criteriaMode,e.shouldUseNativeValidation));return R(ae),he},V=async ae=>{const{errors:he}=await H(ae);if(ae)for(const ve of ae){const He=De(he,ve);He?Zt(r.errors,ve,He):Zr(r.errors,ve)}else r.errors=he;return he},W=async(ae,he,ve={valid:!0})=>{for(const He in ae){const Le=ae[He];if(Le){const{_f:Ee,...$e}=Le;if(Ee){const Mt=p.array.has(Ee.name),Wt=Le._f&&jde(Le._f);Wt&&y.validatingFields&&R([He],!0);const Ln=await j8(Le,p.disabled,a,S,e.shouldUseNativeValidation&&!he,Mt);if(Wt&&y.validatingFields&&R([He]),Ln[Ee.name]&&(ve.valid=!1,he))break;!he&&(De(Ln,Ee.name)?Mt?Tde(r.errors,Ln,Ee.name):Zt(r.errors,Ee.name,Ln[Ee.name]):Zr(r.errors,Ee.name))}!xo($e)&&await W($e,he,ve)}}return ve.valid},G=()=>{for(const ae of p.unMount){const he=De(n,ae);he&&(he._f.refs?he._f.refs.every(ve=>!zO(ve)):!zO(he._f.ref))&&Te(ae)}p.unMount=new Set},Z=(ae,he)=>!e.disabled&&(ae&&he&&Zt(a,ae,he),!ys(pe(),o)),K=(ae,he,ve)=>fq(ae,p,{...f.mount?a:Wr(he)?o:Pa(ae)?{[ae]:he}:he},ve,he),Q=ae=>S3(De(f.mount?a:o,ae,e.shouldUnregister?De(o,ae,[]):[])),oe=(ae,he,ve={})=>{const He=De(n,ae);let Le=he;if(He){const Ee=He._f;Ee&&(!Ee.disabled&&Zt(a,ae,vq(he,Ee)),Le=dw(Ee.ref)&&ro(he)?"":he,hq(Ee.ref)?[...Ee.ref.options].forEach($e=>$e.selected=Le.includes($e.value)):Ee.refs?nb(Ee.ref)?Ee.refs.forEach($e=>{(!$e.defaultChecked||!$e.disabled)&&(Array.isArray(Le)?$e.checked=!!Le.find(Mt=>Mt===$e.value):$e.checked=Le===$e.value||!!Le)}):Ee.refs.forEach($e=>$e.checked=$e.value===Le):T3(Ee.ref)?Ee.ref.value="":(Ee.ref.value=Le,Ee.ref.type||k.state.next({name:ae,values:on(a)})))}(ve.shouldDirty||ve.shouldTouch)&&B(ae,Le,ve.shouldTouch,ve.shouldDirty,!0),ve.shouldValidate&&ue(ae)},ie=(ae,he,ve)=>{for(const He in he){if(!he.hasOwnProperty(He))return;const Le=he[He],Ee=ae+"."+He,$e=De(n,Ee);(p.array.has(ae)||Xr(Le)||$e&&!$e._f)&&!Bc(Le)?ie(Ee,Le,ve):oe(Ee,Le,ve)}},re=(ae,he,ve={})=>{const He=De(n,ae),Le=p.array.has(ae),Ee=on(he);Zt(a,ae,Ee),Le?(k.array.next({name:ae,values:on(a)}),(y.isDirty||y.dirtyFields||x.isDirty||x.dirtyFields)&&ve.shouldDirty&&k.state.next({name:ae,dirtyFields:im(o,a),isDirty:Z(ae,Ee)})):He&&!He._f&&!ro(Ee)?ie(ae,Ee,ve):oe(ae,Ee,ve),w8(ae,p)&&k.state.next({...r,name:ae}),k.state.next({name:f.mount?ae:void 0,values:on(a)})},ne=async ae=>{f.mount=!0;const he=ae.target;let ve=he.name,He=!0;const Le=De(n,ve),Ee=Wt=>{He=Number.isNaN(Wt)||Bc(Wt)&&isNaN(Wt.getTime())||ys(Wt,De(a,ve,Wt))},$e=y8(e.mode),Mt=y8(e.reValidateMode);if(Le){let Wt,Ln;const Us=he.type?b8(Le._f):cq(ae),Qo=ae.type===uw.BLUR||ae.type===uw.FOCUS_OUT,Ch=!Sde(Le._f)&&!e.resolver&&!De(r.errors,ve)&&!Le._f.deps||Ode(Qo,De(r.touchedFields,ve),r.isSubmitted,Mt,$e),nc=w8(ve,p,Qo);Zt(a,ve,Us),Qo?(!he||!he.readOnly)&&(Le._f.onBlur&&Le._f.onBlur(ae),m&&m(0)):Le._f.onChange&&Le._f.onChange(ae);const oc=B(ve,Us,Qo),Ah=!xo(oc)||nc;if(!Qo&&k.state.next({name:ve,type:ae.type,values:on(a)}),Ch)return(y.isValid||x.isValid)&&(e.mode==="onBlur"?Qo&&C():Qo||C()),Ah&&k.state.next({name:ve,...nc?{}:oc});if(!Qo&&nc&&k.state.next({...r}),e.resolver){const{errors:Mu}=await H([ve]);if(Ee(Us),He){const Oh=_8(r.errors,n,ve),Iu=_8(Mu,n,Oh.name||ve);Wt=Iu.error,ve=Iu.name,Ln=xo(Mu)}}else R([ve],!0),Wt=(await j8(Le,p.disabled,a,S,e.shouldUseNativeValidation))[ve],R([ve]),Ee(Us),He&&(Wt?Ln=!1:(y.isValid||x.isValid)&&(Ln=await W(n,!0)));He&&(Le._f.deps&&ue(Le._f.deps),U(ve,Ln,Wt,oc))}},te=(ae,he)=>{if(De(r.errors,he)&&ae.focus)return ae.focus(),1},ue=async(ae,he={})=>{let ve,He;const Le=Nm(ae);if(e.resolver){const Ee=await V(Wr(ae)?ae:Le);ve=xo(Ee),He=ae?!Le.some($e=>De(Ee,$e)):ve}else ae?(He=(await Promise.all(Le.map(async Ee=>{const $e=De(n,Ee);return await W($e&&$e._f?{[Ee]:$e}:$e)}))).every(Boolean),!(!He&&!r.isValid)&&C()):He=ve=await W(n);return k.state.next({...!Pa(ae)||(y.isValid||x.isValid)&&ve!==r.isValid?{}:{name:ae},...e.resolver||!ae?{isValid:ve}:{},errors:r.errors}),he.shouldFocus&&!He&&Dm(n,te,ae?Le:p.mount),He},pe=ae=>{const he={...f.mount?a:o};return Wr(ae)?he:Pa(ae)?De(he,ae):ae.map(ve=>De(he,ve))},ke=(ae,he)=>({invalid:!!De((he||r).errors,ae),isDirty:!!De((he||r).dirtyFields,ae),error:De((he||r).errors,ae),isValidating:!!De(r.validatingFields,ae),isTouched:!!De((he||r).touchedFields,ae)}),ze=ae=>{ae&&Nm(ae).forEach(he=>Zr(r.errors,he)),k.state.next({errors:ae?r.errors:{}})},Re=(ae,he,ve)=>{const He=(De(n,ae,{_f:{}})._f||{}).ref,Le=De(r.errors,ae)||{},{ref:Ee,message:$e,type:Mt,...Wt}=Le;Zt(r.errors,ae,{...Wt,...he,ref:He}),k.state.next({name:ae,errors:r.errors,isValid:!1}),ve&&ve.shouldFocus&&He&&He.focus&&He.focus()},Ae=(ae,he)=>Gi(ae)?k.state.subscribe({next:ve=>"values"in ve&&ae(K(void 0,he),ve)}):K(ae,he,!0),tt=ae=>k.state.subscribe({next:he=>{Ade(ae.name,he.name,ae.exact)&&Cde(he,ae.formState||y,rc,ae.reRenderRoot)&&ae.callback({values:{...a},...r,...he,defaultValues:o})}}).unsubscribe,Ue=ae=>(f.mount=!0,x={...x,...ae.formState},tt({...ae,formState:x})),Te=(ae,he={})=>{for(const ve of ae?Nm(ae):p.mount)p.mount.delete(ve),p.array.delete(ve),he.keepValue||(Zr(n,ve),Zr(a,ve)),!he.keepError&&Zr(r.errors,ve),!he.keepDirty&&Zr(r.dirtyFields,ve),!he.keepTouched&&Zr(r.touchedFields,ve),!he.keepIsValidating&&Zr(r.validatingFields,ve),!e.shouldUnregister&&!he.keepDefaultValue&&Zr(o,ve);k.state.next({values:on(a)}),k.state.next({...r,...he.keepDirty?{isDirty:Z()}:{}}),!he.keepIsValid&&C()},Xe=({disabled:ae,name:he})=>{(No(ae)&&f.mount||ae||p.disabled.has(he))&&(ae?p.disabled.add(he):p.disabled.delete(he))},rt=(ae,he={})=>{let ve=De(n,ae);const He=No(he.disabled)||No(e.disabled);return Zt(n,ae,{...ve||{},_f:{...ve&&ve._f?ve._f:{ref:{name:ae}},name:ae,mount:!0,...he}}),p.mount.add(ae),ve?Xe({disabled:No(he.disabled)?he.disabled:e.disabled,name:ae}):I(ae,!0,he.value),{...He?{disabled:he.disabled||e.disabled}:{},...e.progressive?{required:!!he.required,min:am(he.min),max:am(he.max),minLength:am(he.minLength),maxLength:am(he.maxLength),pattern:am(he.pattern)}:{},name:ae,onChange:ne,onBlur:ne,ref:Le=>{if(Le){rt(ae,he),ve=De(n,ae);const Ee=Wr(Le.value)&&Le.querySelectorAll&&Le.querySelectorAll("input,select,textarea")[0]||Le,$e=xde(Ee),Mt=ve._f.refs||[];if($e?Mt.find(Wt=>Wt===Ee):Ee===ve._f.ref)return;Zt(n,ae,{_f:{...ve._f,...$e?{refs:[...Mt.filter(zO),Ee,...Array.isArray(De(o,ae))?[{}]:[]],ref:{type:Ee.type,name:ae}}:{ref:Ee}}}),I(ae,!1,void 0,Ee)}else ve=De(n,ae,{}),ve._f&&(ve._f.mount=!1),(e.shouldUnregister||he.shouldUnregister)&&!(uq(p.array,ae)&&f.action)&&p.unMount.add(ae)}}},pt=()=>e.shouldFocusError&&Dm(n,te,p.mount),Lt=ae=>{No(ae)&&(k.state.next({disabled:ae}),Dm(n,(he,ve)=>{const He=De(n,ve);He&&(he.disabled=He._f.disabled||ae,Array.isArray(He._f.refs)&&He._f.refs.forEach(Le=>{Le.disabled=He._f.disabled||ae}))},0,!1))},Cr=(ae,he)=>async ve=>{let He;ve&&(ve.preventDefault&&ve.preventDefault(),ve.persist&&ve.persist());let Le=on(a);if(k.state.next({isSubmitting:!0}),e.resolver){const{errors:Ee,values:$e}=await H();r.errors=Ee,Le=on($e)}else await W(n);if(p.disabled.size)for(const Ee of p.disabled)Zr(Le,Ee);if(Zr(r.errors,"root"),xo(r.errors)){k.state.next({errors:{}});try{await ae(Le,ve)}catch(Ee){He=Ee}}else he&&await he({...r.errors},ve),pt(),setTimeout(pt);if(k.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:xo(r.errors)&&!He,submitCount:r.submitCount+1,errors:r.errors}),He)throw He},$t=(ae,he={})=>{De(n,ae)&&(Wr(he.defaultValue)?re(ae,on(De(o,ae))):(re(ae,he.defaultValue),Zt(o,ae,on(he.defaultValue))),he.keepTouched||Zr(r.touchedFields,ae),he.keepDirty||(Zr(r.dirtyFields,ae),r.isDirty=he.defaultValue?Z(ae,on(De(o,ae))):Z()),he.keepError||(Zr(r.errors,ae),y.isValid&&C()),k.state.next({...r}))},Pr=(ae,he={})=>{const ve=ae?on(ae):o,He=on(ve),Le=xo(ae),Ee=Le?o:He;if(he.keepDefaultValues||(o=ve),!he.keepValues){if(he.keepDirtyValues){const $e=new Set([...p.mount,...Object.keys(im(o,a))]);for(const Mt of Array.from($e))De(r.dirtyFields,Mt)?Zt(Ee,Mt,De(a,Mt)):re(Mt,De(Ee,Mt))}else{if(j3&&Wr(ae))for(const $e of p.mount){const Mt=De(n,$e);if(Mt&&Mt._f){const Wt=Array.isArray(Mt._f.refs)?Mt._f.refs[0]:Mt._f.ref;if(dw(Wt)){const Ln=Wt.closest("form");if(Ln){Ln.reset();break}}}}if(he.keepFieldsRef)for(const $e of p.mount)re($e,De(Ee,$e));else n={}}a=e.shouldUnregister?he.keepDefaultValues?on(o):{}:on(Ee),k.array.next({values:{...Ee}}),k.state.next({values:{...Ee}})}p={mount:he.keepDirtyValues?p.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},f.mount=!y.isValid||!!he.keepIsValid||!!he.keepDirtyValues,f.watch=!!e.shouldUnregister,k.state.next({submitCount:he.keepSubmitCount?r.submitCount:0,isDirty:Le?!1:he.keepDirty?r.isDirty:!!(he.keepDefaultValues&&!ys(ae,o)),isSubmitted:he.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:Le?{}:he.keepDirtyValues?he.keepDefaultValues&&a?im(o,a):r.dirtyFields:he.keepDefaultValues&&ae?im(o,ae):he.keepDirty?r.dirtyFields:{},touchedFields:he.keepTouched?r.touchedFields:{},errors:he.keepErrors?r.errors:{},isSubmitSuccessful:he.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Jo=(ae,he)=>Pr(Gi(ae)?ae(a):ae,he),tc=(ae,he={})=>{const ve=De(n,ae),He=ve&&ve._f;if(He){const Le=He.refs?He.refs[0]:He.ref;Le.focus&&(Le.focus(),he.shouldSelect&&Gi(Le.select)&&Le.select())}},rc=ae=>{r={...r,...ae}},Pi={control:{register:rt,unregister:Te,getFieldState:ke,handleSubmit:Cr,setError:Re,_subscribe:tt,_runSchema:H,_focusError:pt,_getWatch:K,_getDirty:Z,_setValid:C,_setFieldArray:E,_setDisabledField:Xe,_setErrors:M,_getFieldArray:Q,_reset:Pr,_resetDefaultValues:()=>Gi(e.defaultValues)&&e.defaultValues().then(ae=>{Jo(ae,e.resetOptions),k.state.next({isLoading:!1})}),_removeUnmounted:G,_disableForm:Lt,_subjects:k,_proxyFormState:y,get _fields(){return n},get _formValues(){return a},get _state(){return f},set _state(ae){f=ae},get _defaultValues(){return o},get _names(){return p},set _names(ae){p=ae},get _formState(){return r},get _options(){return e},set _options(ae){e={...e,...ae}}},subscribe:Ue,trigger:ue,register:rt,handleSubmit:Cr,watch:Ae,setValue:re,getValues:pe,reset:Jo,resetField:$t,clearErrors:ze,unregister:Te,setError:Re,setFocus:tc,getFieldState:ke};return{...Pi,formControl:Pi}}function dh(t={}){const e=Ge.useRef(void 0),r=Ge.useRef(void 0),[n,o]=Ge.useState({isDirty:!1,isValidating:!1,isLoading:Gi(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,isReady:!1,defaultValues:Gi(t.defaultValues)?void 0:t.defaultValues});if(!e.current)if(t.formControl)e.current={...t.formControl,formState:n},t.defaultValues&&!Gi(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const{formControl:f,...p}=Pde(t);e.current={...p,formState:n}}const a=e.current.control;return a._options=t,O3(()=>{const f=a._subscribe({formState:a._proxyFormState,callback:()=>o({...a._formState}),reRenderRoot:!0});return o(p=>({...p,isReady:!0})),a._formState.isReady=!0,f},[a]),Ge.useEffect(()=>a._disableForm(t.disabled),[a,t.disabled]),Ge.useEffect(()=>{t.mode&&(a._options.mode=t.mode),t.reValidateMode&&(a._options.reValidateMode=t.reValidateMode)},[a,t.mode,t.reValidateMode]),Ge.useEffect(()=>{t.errors&&(a._setErrors(t.errors),a._focusError())},[a,t.errors]),Ge.useEffect(()=>{t.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,t.shouldUnregister]),Ge.useEffect(()=>{if(a._proxyFormState.isDirty){const f=a._getDirty();f!==n.isDirty&&a._subjects.state.next({isDirty:f})}},[a,n.isDirty]),Ge.useEffect(()=>{t.values&&!ys(t.values,r.current)?(a._reset(t.values,{keepFieldsRef:!0,...a._options.resetOptions}),r.current=t.values,o(f=>({...f}))):a._resetDefaultValues()},[a,t.values]),Ge.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),e.current.formState=dq(n,a),e.current}function fh({children:t,onSubmit:e,form:r,className:n="",...o}){return A.jsx(gde,{...r,children:A.jsx("form",{onSubmit:r.handleSubmit(e),className:n,...o,children:t})})}function Yo({name:t,children:e}){const{register:r,formState:n}=h1(),{errors:o}=n,a=o==null?void 0:o[t];return F.Children.map(e,f=>{if(F.isValidElement(f)){const p=r(t);return F.cloneElement(f,{...p,error:a==null?void 0:a.message})}return f})}function ko({children:t}){return A.jsx("div",{className:"space-y-2",children:t})}function Ci({children:t,required:e}){return A.jsxs("label",{className:"text-sm text-text font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:[t," ",e&&A.jsx("span",{className:"text-red-500",children:"*"})]})}function jo({children:t}){return A.jsx("div",{className:"relative",children:t})}function So({children:t,error:e}){const r=e||t;return r?A.jsx("p",{className:"text-sm font-medium text-destructive",children:r}):null}var yq={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},S8=Ge.createContext&&Ge.createContext(yq),zde=["attr","size","title"];function Mde(t,e){if(t==null)return{};var r=Ide(t,e),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Ide(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function pw(){return pw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pw.apply(this,arguments)}function C8(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function gw(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?C8(Object(r),!0).forEach(function(n){Lde(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):C8(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Lde(t,e,r){return e=Nde(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Nde(t){var e=Dde(t,"string");return typeof e=="symbol"?e:e+""}function Dde(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xq(t){return t&&t.map((e,r)=>Ge.createElement(e.tag,gw({key:r},e.attr),xq(e.child)))}function P3(t){return e=>Ge.createElement(Bde,pw({attr:gw({},t.attr)},e),xq(t.child))}function Bde(t){var e=r=>{var{attr:n,size:o,title:a}=t,f=Mde(t,zde),p=o||r.size||"1em",m;return r.className&&(m=r.className),t.className&&(m=(m?m+" ":"")+t.className),Ge.createElement("svg",pw({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,f,{className:m,style:gw(gw({color:t.color||r.color},r.style),t.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),a&&Ge.createElement("title",null,a),t.children)};return S8!==void 0?Ge.createElement(S8.Consumer,null,r=>e(r)):e(yq)}function A8(t){return P3({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.646 15.146 5.854 9.354a.5.5 0 0 1 .353-.854h11.586a.5.5 0 0 1 .353.854l-5.793 5.792a.5.5 0 0 1-.707 0Z"},child:[]}]})(t)}function Fde(t){return P3({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m12.354 8.854 5.792 5.792a.5.5 0 0 1-.353.854H6.207a.5.5 0 0 1-.353-.854l5.792-5.792a.5.5 0 0 1 .708 0Z"},child:[]}]})(t)}function Hde(t,e){return e.cell?e.cell(t):typeof e.accessor=="function"?e.accessor(t):typeof e.accessor=="string"?t[e.accessor]:null}function aa({data:t,columns:e,pageSizeOptions:r=[10,20,30],defaultPageSize:n=10,className:o,currentPage:a,itemsPerPage:f,totalItems:p,onPageChange:m,onPageSizeChange:v,sortColumnIndex:y,sortDirection:x,onSortChange:k,serverPagination:S=!1}){const[O,C]=F.useState(1),[R,E]=F.useState(n),P=a!==void 0?a:O,M=f!==void 0?f:R,I=ne=>{m?m(ne):C(ne)},B=ne=>{v?v(ne):(E(ne),C(1))},[U,H]=F.useState({columnIndex:null,direction:"ASC"}),[V]=F.useState(""),W={columnIndex:y!==void 0?y:U.columnIndex,direction:x!==void 0?x:U.direction},G=(ne,te)=>{if(!te.sortable)return;const ue=W.columnIndex===ne&&W.direction==="ASC"?"DESC":"ASC";k?k(ne,ue):H({columnIndex:ne,direction:ue})},Z=F.useMemo(()=>{if(!V.trim())return t;const ne=V.toLowerCase();return t.filter(te=>JSON.stringify(te).toLowerCase().includes(ne))},[t,V]),K=F.useMemo(()=>{if(W.columnIndex==null)return Z;const ne=e[W.columnIndex];if(!ne)return Z;const te=ke=>{if(typeof ne.accessor=="function")return ne.accessor(ke);if(typeof ne.accessor=="string")return ke[ne.accessor];if(ne.cell)return ne.cell(ke)},ue=ke=>{const ze=new Date(ke);return!isNaN(ze.getTime())},pe=[...Z];return pe.sort((ke,ze)=>{const Re=te(ke),Ae=te(ze);if(Re==null&&Ae==null)return 0;if(Re==null)return W.direction==="ASC"?-1:1;if(Ae==null)return W.direction==="ASC"?1:-1;if(typeof Re=="number"&&typeof Ae=="number")return W.direction==="ASC"?Re-Ae:Ae-Re;if((Re instanceof Date||typeof Re=="string"&&ue(Re))&&(Ae instanceof Date||typeof Ae=="string"&&ue(Ae))){const Te=Re instanceof Date?Re.getTime():new Date(Re).getTime(),Xe=Ae instanceof Date?Ae.getTime():new Date(Ae).getTime();return W.direction==="ASC"?Te-Xe:Xe-Te}const tt=String(Re).toLowerCase(),Ue=String(Ae).toLowerCase();return W.direction==="ASC"?tt.localeCompare(Ue):Ue.localeCompare(tt)}),pe},[Z,W,e]),Q=p!==void 0?p:K.length,oe=Math.max(1,Math.ceil(Q/M)),ie=Math.min(P,oe),re=S?K:K.slice((ie-1)*M,ie*M);return A.jsxs("div",{className:Ne("w-full",o),children:[A.jsx("div",{className:"flex items-center justify-between gap-3 pb-3",children:A.jsx("div",{className:"flex items-center gap-2 text-sm text-text-muted"})}),A.jsx("div",{className:"overflow-x-auto rounded-lg border border-table-divider bg-secondary p-2",children:A.jsxs("table",{className:"min-w-full border-separate border-spacing-0",children:[A.jsx("thead",{children:A.jsx("tr",{className:"bg-table-header-bg rounded-md",children:e.map((ne,te)=>A.jsx("th",{onClick:()=>ne.sortable&&G(te,ne),className:Ne("px-3 py-5 text-left font-medium text-table-header-text uppercase tracking-wide select-none whitespace-nowrap",ne.className,ne.sortable&&"cursor-pointer",te===0?"pl-6 pr-4 rounded-l-md":te===e.length-1?"pl-4 pr-6 rounded-r-md":"px-4"),children:A.jsxs("div",{className:"inline-flex items-center gap-1 whitespace-nowrap",children:[A.jsx("span",{className:"text-sm font-medium text-table-header-text uppercase tracking-wide w-full max-w-[200px]",children:ne.header}),ne.sortable&&A.jsx("span",{className:"inline-flex items-center flex-shrink-0",children:W.columnIndex===te?W.direction==="ASC"?A.jsx(Fde,{className:"text-table-header-text"}):A.jsx(A8,{className:"text-table-header-text"}):A.jsx(A8,{className:"text-text-muted"})})]})},ne.id??te))})}),A.jsxs("tbody",{children:[re.length===0&&A.jsx("tr",{children:A.jsx("td",{className:"px-4 py-6 text-center text-sm text-text-muted",colSpan:e.length,children:"No results"})}),re.map((ne,te)=>A.jsx("tr",{className:Ne(te%2===0?"bg-table-row":"bg-table-row-alt","hover:bg-table-row-hover"),children:e.map((ue,pe)=>A.jsx("td",{className:Ne("px-4 py-3 text-sm text-table-text border-b border-table-divider",pe===0?"pl-6":pe===e.length-1?"pr-6":"",te===re.length-1?"border-b-0":"",ue.className),children:Hde(ne,ue)},(ue.id??pe)+"-"+te))},te))]})]})}),A.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-3 pt-3 text-sm",children:[A.jsxs("div",{className:"text-text-muted flex justify-center items-center gap-4 ",children:[A.jsx("div",{children:A.jsx("select",{className:"h-8 rounded border bg-secondary px-2 text-sm",value:M,"aria-label":"Rows per page",onChange:ne=>{B(Number(ne.target.value)),I(1)},children:r.map(ne=>A.jsx("option",{value:ne,children:ne},ne))})}),A.jsxs("div",{children:["Showing ",re.length?1:0,"-",Math.min(K.length,P*M)," of ",K.length," results"]})]}),A.jsxs("div",{className:"inline-flex items-center gap-1",children:[A.jsx("button",{className:"px-3 py-1 font-bold text-text-secondary disabled:opacity-50",disabled:ie===1,onClick:()=>I(Math.max(1,P-1)),children:"Previous"}),A.jsxs("div",{className:"flex items-center gap-1",children:[A.jsx("button",{className:Ne("h-8 w-8 rounded text-sm font-medium",ie===1?"bg-primary text-black rounded-full":"hover:bg-primary/80 hover:text-black hover:rounded-full"),onClick:()=>I(1),children:"1"}),ie>3&&oe>4&&A.jsx("span",{className:"px-1",children:"..."}),(()=>{const ne=[];let te=Math.max(2,ie-1),ue=Math.min(oe-1,ie+1);ie<=3?ue=Math.min(4,oe-1):ie>=oe-2&&(te=Math.max(2,oe-3));for(let pe=te;pe<=ue;pe++)pe>1&&pe<oe&&ne.push(A.jsx("button",{className:Ne("h-8 w-8 rounded text-sm font-medium",pe===ie?"bg-primary text-black rounded-full":"hover:bg-primary/80 hover:text-black hover:rounded-full"),onClick:()=>I(pe),children:pe},pe));return ne})(),ie<oe-2&&oe>4&&A.jsx("span",{className:"px-1",children:"..."}),oe>1&&A.jsx("button",{className:Ne("h-8 w-8 rounded text-sm font-medium",oe===ie?"bg-primary text-black rounded-full":"hover:bg-primary/80 hover:text-black hover:rounded-full"),onClick:()=>I(oe),children:oe})]}),A.jsx("button",{className:"px-3 py-1 font-bold text-text-secondary disabled:opacity-50",disabled:ie===oe,onClick:()=>I(Math.min(oe,P+1)),children:"Next"})]})]})]})}const Ude=({value:t,onChange:e,label:r,className:n=""})=>{const[o,a]=F.useState(!1),f=F.useRef(null),p=F.useRef(null);F.useEffect(()=>{const y=x=>{p.current&&!p.current.contains(x.target)&&a(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]);const m=y=>{e(y.target.value)},v=()=>{a(!o),f.current&&f.current.click()};return A.jsxs("div",{className:`relative ${n}`,ref:p,children:[r&&A.jsx("label",{className:"block text-sm font-medium  mb-2",children:r}),A.jsxs("div",{className:"flex items-center space-x-3",children:[A.jsx("div",{className:"w-full h-10 rounded-lg border-2 border-gray-300 cursor-pointer relative overflow-hidden",onClick:v,style:{backgroundColor:t},children:A.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:A.jsx("span",{className:"text-white text-xs font-medium drop-shadow-md",children:t})})}),A.jsx("input",{ref:f,type:"color",value:t,onChange:m,className:"opacity-0 absolute pointer-events-none"})]})]})},Xl=({id:t,checked:e,onChange:r,label:n,disabled:o=!1,className:a=""})=>{const f=()=>{o||r(!e)};return A.jsxs("div",{className:`flex items-center ${a}`,children:[A.jsxs("button",{type:"button",id:t,role:"switch","aria-checked":e,disabled:o,onClick:f,className:`
          relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2
          ${e?"bg-primary":"bg-gray-200"}
          ${o?"opacity-50 cursor-not-allowed":""}
        `,children:[A.jsx("span",{className:"sr-only",children:n}),A.jsx("span",{"aria-hidden":"true",className:`
            pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out
            ${e?"translate-x-5":"translate-x-0"}
          `})]}),n&&A.jsx("label",{htmlFor:t,className:`ml-3 text-sm font-medium text-text-muted ${o?"opacity-50":"cursor-pointer"}`,onClick:o?void 0:f,children:n})]})},Vde="modulepreload",qde=function(t){return"/admin/"+t},O8={},p1=function(e,r,n){let o=Promise.resolve();return r&&r.length>0&&(document.getElementsByTagName("link"),o=Promise.all(r.map(a=>{if(a=qde(a),a in O8)return;O8[a]=!0;const f=a.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${p}`))return;const m=document.createElement("link");if(m.rel=f?"stylesheet":Vde,f||(m.as="script",m.crossOrigin=""),m.href=a,document.head.appendChild(m),f)return new Promise((v,y)=>{m.addEventListener("load",v),m.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${a}`)))})}))),o.then(()=>e()).catch(a=>{const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=a,window.dispatchEvent(f),!f.defaultPrevented)throw a})};var E8="popstate";function Yde(t={}){function e(n,o){let{pathname:a,search:f,hash:p}=n.location;return VT("",{pathname:a,search:f,hash:p},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:lv(o)}return Xde(e,r,null,t)}function kr(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function na(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Wde(){return Math.random().toString(36).substring(2,10)}function T8(t,e){return{usr:t.state,key:t.key,idx:e}}function VT(t,e,r=null,n){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?hh(e):e,state:r,key:e&&e.key||n||Wde()}}function lv({pathname:t="/",search:e="",hash:r=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function hh(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substring(r),t=t.substring(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substring(n),t=t.substring(0,n)),t&&(e.pathname=t)}return e}function Xde(t,e,r,n={}){let{window:o=document.defaultView,v5Compat:a=!1}=n,f=o.history,p="POP",m=null,v=y();v==null&&(v=0,f.replaceState({...f.state,idx:v},""));function y(){return(f.state||{idx:null}).idx}function x(){p="POP";let R=y(),E=R==null?null:R-v;v=R,m&&m({action:p,location:C.location,delta:E})}function k(R,E){p="PUSH";let P=VT(C.location,R,E);v=y()+1;let M=T8(P,v),I=C.createHref(P);try{f.pushState(M,"",I)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;o.location.assign(I)}a&&m&&m({action:p,location:C.location,delta:1})}function S(R,E){p="REPLACE";let P=VT(C.location,R,E);v=y();let M=T8(P,v),I=C.createHref(P);f.replaceState(M,"",I),a&&m&&m({action:p,location:C.location,delta:0})}function O(R){return Gde(R)}let C={get action(){return p},get location(){return t(o,f)},listen(R){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(E8,x),m=R,()=>{o.removeEventListener(E8,x),m=null}},createHref(R){return e(o,R)},createURL:O,encodeLocation(R){let E=O(R);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:k,replace:S,go(R){return f.go(R)}};return C}function Gde(t,e=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),kr(r,"No window.location.(origin|href) available to create URL");let n=typeof t=="string"?t:lv(t);return n=n.replace(/ $/,"%20"),!e&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function wq(t,e,r="/"){return $de(t,e,r,!1)}function $de(t,e,r,n){let o=typeof e=="string"?hh(e):e,a=Ds(o.pathname||"/",r);if(a==null)return null;let f=_q(t);Zde(f);let p=null;for(let m=0;p==null&&m<f.length;++m){let v=sfe(a);p=ife(f[m],v,n)}return p}function _q(t,e=[],r=[],n="",o=!1){let a=(f,p,m=o,v)=>{let y={relativePath:v===void 0?f.path||"":v,caseSensitive:f.caseSensitive===!0,childrenIndex:p,route:f};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(n)&&m)return;kr(y.relativePath.startsWith(n),`Absolute route path "${y.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(n.length)}let x=Os([n,y.relativePath]),k=r.concat(y);f.children&&f.children.length>0&&(kr(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),_q(f.children,e,k,x,m)),!(f.path==null&&!f.index)&&e.push({path:x,score:nfe(x,f.index),routesMeta:k})};return t.forEach((f,p)=>{var m;if(f.path===""||!((m=f.path)!=null&&m.includes("?")))a(f,p);else for(let v of kq(f.path))a(f,p,!0,v)}),e}function kq(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let f=kq(n.join("/")),p=[];return p.push(...f.map(m=>m===""?a:[a,m].join("/"))),o&&p.push(...f),p.map(m=>t.startsWith("/")&&m===""?"/":m)}function Zde(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:ofe(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var Kde=/^:[\w-]+$/,Jde=3,Qde=2,efe=1,tfe=10,rfe=-2,R8=t=>t==="*";function nfe(t,e){let r=t.split("/"),n=r.length;return r.some(R8)&&(n+=rfe),e&&(n+=Qde),r.filter(o=>!R8(o)).reduce((o,a)=>o+(Kde.test(a)?Jde:a===""?efe:tfe),n)}function ofe(t,e){return t.length===e.length&&t.slice(0,-1).every((n,o)=>n===e[o])?t[t.length-1]-e[e.length-1]:0}function ife(t,e,r=!1){let{routesMeta:n}=t,o={},a="/",f=[];for(let p=0;p<n.length;++p){let m=n[p],v=p===n.length-1,y=a==="/"?e:e.slice(a.length)||"/",x=mw({path:m.relativePath,caseSensitive:m.caseSensitive,end:v},y),k=m.route;if(!x&&v&&r&&!n[n.length-1].route.index&&(x=mw({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},y)),!x)return null;Object.assign(o,x.params),f.push({params:o,pathname:Os([a,x.pathname]),pathnameBase:dfe(Os([a,x.pathnameBase])),route:k}),x.pathnameBase!=="/"&&(a=Os([a,x.pathnameBase]))}return f}function mw(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=afe(t.path,t.caseSensitive,t.end),o=e.match(r);if(!o)return null;let a=o[0],f=a.replace(/(.)\/+$/,"$1"),p=o.slice(1);return{params:n.reduce((v,{paramName:y,isOptional:x},k)=>{if(y==="*"){let O=p[k]||"";f=a.slice(0,a.length-O.length).replace(/(.)\/+$/,"$1")}const S=p[k];return x&&!S?v[y]=void 0:v[y]=(S||"").replace(/%2F/g,"/"),v},{}),pathname:a,pathnameBase:f,pattern:t}}function afe(t,e=!1,r=!0){na(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let n=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,p,m)=>(n.push({paramName:p,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(n.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),n]}function sfe(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return na(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function Ds(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function lfe(t,e="/"){let{pathname:r,search:n="",hash:o=""}=typeof t=="string"?hh(t):t;return{pathname:r?r.startsWith("/")?r:cfe(r,e):e,search:ffe(n),hash:hfe(o)}}function cfe(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function MO(t,e,r,n){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(n)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ufe(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function z3(t){let e=ufe(t);return e.map((r,n)=>n===e.length-1?r.pathname:r.pathnameBase)}function M3(t,e,r,n=!1){let o;typeof t=="string"?o=hh(t):(o={...t},kr(!o.pathname||!o.pathname.includes("?"),MO("?","pathname","search",o)),kr(!o.pathname||!o.pathname.includes("#"),MO("#","pathname","hash",o)),kr(!o.search||!o.search.includes("#"),MO("#","search","hash",o)));let a=t===""||o.pathname==="",f=a?"/":o.pathname,p;if(f==null)p=r;else{let x=e.length-1;if(!n&&f.startsWith("..")){let k=f.split("/");for(;k[0]==="..";)k.shift(),x-=1;o.pathname=k.join("/")}p=x>=0?e[x]:"/"}let m=lfe(o,p),v=f&&f!=="/"&&f.endsWith("/"),y=(a||f===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(v||y)&&(m.pathname+="/"),m}var Os=t=>t.join("/").replace(/\/\/+/g,"/"),dfe=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),ffe=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,hfe=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function pfe(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var jq=["POST","PUT","PATCH","DELETE"];new Set(jq);var gfe=["GET",...jq];new Set(gfe);var ph=F.createContext(null);ph.displayName="DataRouter";var g1=F.createContext(null);g1.displayName="DataRouterState";F.createContext(!1);var Sq=F.createContext({isTransitioning:!1});Sq.displayName="ViewTransition";var mfe=F.createContext(new Map);mfe.displayName="Fetchers";var vfe=F.createContext(null);vfe.displayName="Await";var sa=F.createContext(null);sa.displayName="Navigation";var ob=F.createContext(null);ob.displayName="Location";var Ti=F.createContext({outlet:null,matches:[],isDataRoute:!1});Ti.displayName="Route";var I3=F.createContext(null);I3.displayName="RouteError";function bfe(t,{relative:e}={}){kr(gh(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=F.useContext(sa),{hash:o,pathname:a,search:f}=ib(t,{relative:e}),p=a;return r!=="/"&&(p=a==="/"?r:Os([r,a])),n.createHref({pathname:p,search:f,hash:o})}function gh(){return F.useContext(ob)!=null}function $o(){return kr(gh(),"useLocation() may be used only in the context of a <Router> component."),F.useContext(ob).location}var Cq="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Aq(t){F.useContext(sa).static||F.useLayoutEffect(t)}function Va(){let{isDataRoute:t}=F.useContext(Ti);return t?zfe():yfe()}function yfe(){kr(gh(),"useNavigate() may be used only in the context of a <Router> component.");let t=F.useContext(ph),{basename:e,navigator:r}=F.useContext(sa),{matches:n}=F.useContext(Ti),{pathname:o}=$o(),a=JSON.stringify(z3(n)),f=F.useRef(!1);return Aq(()=>{f.current=!0}),F.useCallback((m,v={})=>{if(na(f.current,Cq),!f.current)return;if(typeof m=="number"){r.go(m);return}let y=M3(m,JSON.parse(a),o,v.relative==="path");t==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:Os([e,y.pathname])),(v.replace?r.replace:r.push)(y,v.state,v)},[e,r,a,o,t])}var xfe=F.createContext(null);function wfe(t){let e=F.useContext(Ti).outlet;return e&&F.createElement(xfe.Provider,{value:t},e)}function Oq(){let{matches:t}=F.useContext(Ti),e=t[t.length-1];return e?e.params:{}}function ib(t,{relative:e}={}){let{matches:r}=F.useContext(Ti),{pathname:n}=$o(),o=JSON.stringify(z3(r));return F.useMemo(()=>M3(t,JSON.parse(o),n,e==="path"),[t,o,n,e])}function _fe(t,e){return Eq(t,e)}function Eq(t,e,r,n){var E;kr(gh(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=F.useContext(sa),{matches:a}=F.useContext(Ti),f=a[a.length-1],p=f?f.params:{},m=f?f.pathname:"/",v=f?f.pathnameBase:"/",y=f&&f.route;{let P=y&&y.path||"";Tq(m,!y||P.endsWith("*")||P.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${P}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${P}"> to <Route path="${P==="/"?"*":`${P}/*`}">.`)}let x=$o(),k;if(e){let P=typeof e=="string"?hh(e):e;kr(v==="/"||((E=P.pathname)==null?void 0:E.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${P.pathname}" was given in the \`location\` prop.`),k=P}else k=x;let S=k.pathname||"/",O=S;if(v!=="/"){let P=v.replace(/^\//,"").split("/");O="/"+S.replace(/^\//,"").split("/").slice(P.length).join("/")}let C=wq(t,{pathname:O});na(y||C!=null,`No routes matched location "${k.pathname}${k.search}${k.hash}" `),na(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${k.pathname}${k.search}${k.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let R=Afe(C&&C.map(P=>Object.assign({},P,{params:Object.assign({},p,P.params),pathname:Os([v,o.encodeLocation?o.encodeLocation(P.pathname).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?v:Os([v,o.encodeLocation?o.encodeLocation(P.pathnameBase).pathname:P.pathnameBase])})),a,r,n);return e&&R?F.createElement(ob.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...k},navigationType:"POP"}},R):R}function kfe(){let t=Pfe(),e=pfe(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},f=null;return console.error("Error handled by React Router default ErrorBoundary:",t),f=F.createElement(F.Fragment,null,F.createElement("p",null,"💿 Hey developer 👋"),F.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",F.createElement("code",{style:a},"ErrorBoundary")," or"," ",F.createElement("code",{style:a},"errorElement")," prop on your route.")),F.createElement(F.Fragment,null,F.createElement("h2",null,"Unexpected Application Error!"),F.createElement("h3",{style:{fontStyle:"italic"}},e),r?F.createElement("pre",{style:o},r):null,f)}var jfe=F.createElement(kfe,null),Sfe=class extends F.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error!==void 0?F.createElement(Ti.Provider,{value:this.props.routeContext},F.createElement(I3.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Cfe({routeContext:t,match:e,children:r}){let n=F.useContext(ph);return n&&n.static&&n.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=e.route.id),F.createElement(Ti.Provider,{value:t},r)}function Afe(t,e=[],r=null,n=null){if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,a=r==null?void 0:r.errors;if(a!=null){let m=o.findIndex(v=>v.route.id&&(a==null?void 0:a[v.route.id])!==void 0);kr(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let f=!1,p=-1;if(r)for(let m=0;m<o.length;m++){let v=o[m];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(p=m),v.route.id){let{loaderData:y,errors:x}=r,k=v.route.loader&&!y.hasOwnProperty(v.route.id)&&(!x||x[v.route.id]===void 0);if(v.route.lazy||k){f=!0,p>=0?o=o.slice(0,p+1):o=[o[0]];break}}}return o.reduceRight((m,v,y)=>{let x,k=!1,S=null,O=null;r&&(x=a&&v.route.id?a[v.route.id]:void 0,S=v.route.errorElement||jfe,f&&(p<0&&y===0?(Tq("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,O=null):p===y&&(k=!0,O=v.route.hydrateFallbackElement||null)));let C=e.concat(o.slice(0,y+1)),R=()=>{let E;return x?E=S:k?E=O:v.route.Component?E=F.createElement(v.route.Component,null):v.route.element?E=v.route.element:E=m,F.createElement(Cfe,{match:v,routeContext:{outlet:m,matches:C,isDataRoute:r!=null},children:E})};return r&&(v.route.ErrorBoundary||v.route.errorElement||y===0)?F.createElement(Sfe,{location:r.location,revalidation:r.revalidation,component:S,error:x,children:R(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):R()},null)}function L3(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ofe(t){let e=F.useContext(ph);return kr(e,L3(t)),e}function Efe(t){let e=F.useContext(g1);return kr(e,L3(t)),e}function Tfe(t){let e=F.useContext(Ti);return kr(e,L3(t)),e}function N3(t){let e=Tfe(t),r=e.matches[e.matches.length-1];return kr(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function Rfe(){return N3("useRouteId")}function Pfe(){var n;let t=F.useContext(I3),e=Efe("useRouteError"),r=N3("useRouteError");return t!==void 0?t:(n=e.errors)==null?void 0:n[r]}function zfe(){let{router:t}=Ofe("useNavigate"),e=N3("useNavigate"),r=F.useRef(!1);return Aq(()=>{r.current=!0}),F.useCallback(async(o,a={})=>{na(r.current,Cq),r.current&&(typeof o=="number"?t.navigate(o):await t.navigate(o,{fromRouteId:e,...a}))},[t,e])}var P8={};function Tq(t,e,r){!e&&!P8[t]&&(P8[t]=!0,na(!1,r))}F.memo(Mfe);function Mfe({routes:t,future:e,state:r}){return Eq(t,void 0,r,e)}function qT({to:t,replace:e,state:r,relative:n}){kr(gh(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=F.useContext(sa);na(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=F.useContext(Ti),{pathname:f}=$o(),p=Va(),m=M3(t,z3(a),f,n==="path"),v=JSON.stringify(m);return F.useEffect(()=>{p(JSON.parse(v),{replace:e,state:r,relative:n})},[p,v,n,e,r]),null}function Ife(t){return wfe(t.context)}function rr(t){kr(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Lfe({basename:t="/",children:e=null,location:r,navigationType:n="POP",navigator:o,static:a=!1}){kr(!gh(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=t.replace(/^\/*/,"/"),p=F.useMemo(()=>({basename:f,navigator:o,static:a,future:{}}),[f,o,a]);typeof r=="string"&&(r=hh(r));let{pathname:m="/",search:v="",hash:y="",state:x=null,key:k="default"}=r,S=F.useMemo(()=>{let O=Ds(m,f);return O==null?null:{location:{pathname:O,search:v,hash:y,state:x,key:k},navigationType:n}},[f,m,v,y,x,k,n]);return na(S!=null,`<Router basename="${f}"> is not able to match the URL "${m}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:F.createElement(sa.Provider,{value:p},F.createElement(ob.Provider,{children:e,value:S}))}function Nfe({children:t,location:e}){return _fe(YT(t),e)}function YT(t,e=[]){let r=[];return F.Children.forEach(t,(n,o)=>{if(!F.isValidElement(n))return;let a=[...e,o];if(n.type===F.Fragment){r.push.apply(r,YT(n.props.children,a));return}kr(n.type===rr,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),kr(!n.props.index||!n.props.children,"An index route cannot have child routes.");let f={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(f.children=YT(n.props.children,a)),r.push(f)}),r}var sx="get",lx="application/x-www-form-urlencoded";function m1(t){return t!=null&&typeof t.tagName=="string"}function Dfe(t){return m1(t)&&t.tagName.toLowerCase()==="button"}function Bfe(t){return m1(t)&&t.tagName.toLowerCase()==="form"}function Ffe(t){return m1(t)&&t.tagName.toLowerCase()==="input"}function Hfe(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Ufe(t,e){return t.button===0&&(!e||e==="_self")&&!Hfe(t)}var T0=null;function Vfe(){if(T0===null)try{new FormData(document.createElement("form"),0),T0=!1}catch{T0=!0}return T0}var qfe=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function IO(t){return t!=null&&!qfe.has(t)?(na(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${lx}"`),null):t}function Yfe(t,e){let r,n,o,a,f;if(Bfe(t)){let p=t.getAttribute("action");n=p?Ds(p,e):null,r=t.getAttribute("method")||sx,o=IO(t.getAttribute("enctype"))||lx,a=new FormData(t)}else if(Dfe(t)||Ffe(t)&&(t.type==="submit"||t.type==="image")){let p=t.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=t.getAttribute("formaction")||p.getAttribute("action");if(n=m?Ds(m,e):null,r=t.getAttribute("formmethod")||p.getAttribute("method")||sx,o=IO(t.getAttribute("formenctype"))||IO(p.getAttribute("enctype"))||lx,a=new FormData(p,t),!Vfe()){let{name:v,type:y,value:x}=t;if(y==="image"){let k=v?`${v}.`:"";a.append(`${k}x`,"0"),a.append(`${k}y`,"0")}else v&&a.append(v,x)}}else{if(m1(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=sx,n=null,o=lx,f=t}return a&&o==="text/plain"&&(f=a,a=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:a,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function D3(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Wfe(t,e,r){let n=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return n.pathname==="/"?n.pathname=`_root.${r}`:e&&Ds(n.pathname,e)==="/"?n.pathname=`${e.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}async function Xfe(t,e){if(t.id in e)return e[t.id];try{let r=await p1(()=>import(t.module),__vite__mapDeps([]));return e[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Gfe(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function $fe(t,e,r){let n=await Promise.all(t.map(async o=>{let a=e.routes[o.route.id];if(a){let f=await Xfe(a,r);return f.links?f.links():[]}return[]}));return Qfe(n.flat(1).filter(Gfe).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function z8(t,e,r,n,o,a){let f=(m,v)=>r[v]?m.route.id!==r[v].route.id:!0,p=(m,v)=>{var y;return r[v].pathname!==m.pathname||((y=r[v].route.path)==null?void 0:y.endsWith("*"))&&r[v].params["*"]!==m.params["*"]};return a==="assets"?e.filter((m,v)=>f(m,v)||p(m,v)):a==="data"?e.filter((m,v)=>{var x;let y=n.routes[m.route.id];if(!y||!y.hasLoader)return!1;if(f(m,v)||p(m,v))return!0;if(m.route.shouldRevalidate){let k=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((x=r[0])==null?void 0:x.params)||{},nextUrl:new URL(t,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof k=="boolean")return k}return!0}):[]}function Zfe(t,e,{includeHydrateFallback:r}={}){return Kfe(t.map(n=>{let o=e.routes[n.route.id];if(!o)return[];let a=[o.module];return o.clientActionModule&&(a=a.concat(o.clientActionModule)),o.clientLoaderModule&&(a=a.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(a=a.concat(o.hydrateFallbackModule)),o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function Kfe(t){return[...new Set(t)]}function Jfe(t){let e={},r=Object.keys(t).sort();for(let n of r)e[n]=t[n];return e}function Qfe(t,e){let r=new Set;return new Set(e),t.reduce((n,o)=>{let a=JSON.stringify(Jfe(o));return r.has(a)||(r.add(a),n.push({key:a,link:o})),n},[])}function Rq(){let t=F.useContext(ph);return D3(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function ehe(){let t=F.useContext(g1);return D3(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var B3=F.createContext(void 0);B3.displayName="FrameworkContext";function Pq(){let t=F.useContext(B3);return D3(t,"You must render this element inside a <HydratedRouter> element"),t}function the(t,e){let r=F.useContext(B3),[n,o]=F.useState(!1),[a,f]=F.useState(!1),{onFocus:p,onBlur:m,onMouseEnter:v,onMouseLeave:y,onTouchStart:x}=e,k=F.useRef(null);F.useEffect(()=>{if(t==="render"&&f(!0),t==="viewport"){let C=E=>{E.forEach(P=>{f(P.isIntersecting)})},R=new IntersectionObserver(C,{threshold:.5});return k.current&&R.observe(k.current),()=>{R.disconnect()}}},[t]),F.useEffect(()=>{if(n){let C=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(C)}}},[n]);let S=()=>{o(!0)},O=()=>{o(!1),f(!1)};return r?t!=="intent"?[a,k,{}]:[a,k,{onFocus:sm(p,S),onBlur:sm(m,O),onMouseEnter:sm(v,S),onMouseLeave:sm(y,O),onTouchStart:sm(x,S)}]:[!1,k,{}]}function sm(t,e){return r=>{t&&t(r),r.defaultPrevented||e(r)}}function rhe({page:t,...e}){let{router:r}=Rq(),n=F.useMemo(()=>wq(r.routes,t,r.basename),[r.routes,t,r.basename]);return n?F.createElement(ohe,{page:t,matches:n,...e}):null}function nhe(t){let{manifest:e,routeModules:r}=Pq(),[n,o]=F.useState([]);return F.useEffect(()=>{let a=!1;return $fe(t,e,r).then(f=>{a||o(f)}),()=>{a=!0}},[t,e,r]),n}function ohe({page:t,matches:e,...r}){let n=$o(),{manifest:o,routeModules:a}=Pq(),{basename:f}=Rq(),{loaderData:p,matches:m}=ehe(),v=F.useMemo(()=>z8(t,e,m,o,n,"data"),[t,e,m,o,n]),y=F.useMemo(()=>z8(t,e,m,o,n,"assets"),[t,e,m,o,n]),x=F.useMemo(()=>{if(t===n.pathname+n.search+n.hash)return[];let O=new Set,C=!1;if(e.forEach(E=>{var M;let P=o.routes[E.route.id];!P||!P.hasLoader||(!v.some(I=>I.route.id===E.route.id)&&E.route.id in p&&((M=a[E.route.id])!=null&&M.shouldRevalidate)||P.hasClientLoader?C=!0:O.add(E.route.id))}),O.size===0)return[];let R=Wfe(t,f,"data");return C&&O.size>0&&R.searchParams.set("_routes",e.filter(E=>O.has(E.route.id)).map(E=>E.route.id).join(",")),[R.pathname+R.search]},[f,p,n,o,v,e,t,a]),k=F.useMemo(()=>Zfe(y,o),[y,o]),S=nhe(y);return F.createElement(F.Fragment,null,x.map(O=>F.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...r})),k.map(O=>F.createElement("link",{key:O,rel:"modulepreload",href:O,...r})),S.map(({key:O,link:C})=>F.createElement("link",{key:O,nonce:r.nonce,...C})))}function ihe(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}var zq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zq&&(window.__reactRouterVersion="7.8.1")}catch{}function ahe({basename:t,children:e,window:r}){let n=F.useRef();n.current==null&&(n.current=Yde({window:r,v5Compat:!0}));let o=n.current,[a,f]=F.useState({action:o.action,location:o.location}),p=F.useCallback(m=>{F.startTransition(()=>f(m))},[f]);return F.useLayoutEffect(()=>o.listen(p),[o,p]),F.createElement(Lfe,{basename:t,children:e,location:a.location,navigationType:a.action,navigator:o})}var Mq=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$i=F.forwardRef(function({onClick:e,discover:r="render",prefetch:n="none",relative:o,reloadDocument:a,replace:f,state:p,target:m,to:v,preventScrollReset:y,viewTransition:x,...k},S){let{basename:O}=F.useContext(sa),C=typeof v=="string"&&Mq.test(v),R,E=!1;if(typeof v=="string"&&C&&(R=v,zq))try{let W=new URL(window.location.href),G=v.startsWith("//")?new URL(W.protocol+v):new URL(v),Z=Ds(G.pathname,O);G.origin===W.origin&&Z!=null?v=Z+G.search+G.hash:E=!0}catch{na(!1,`<Link to="${v}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let P=bfe(v,{relative:o}),[M,I,B]=the(n,k),U=uhe(v,{replace:f,state:p,target:m,preventScrollReset:y,relative:o,viewTransition:x});function H(W){e&&e(W),W.defaultPrevented||U(W)}let V=F.createElement("a",{...k,...B,href:R||P,onClick:E||a?e:H,ref:ihe(S,I),target:m,"data-discover":!C&&r==="render"?"true":void 0});return M&&!C?F.createElement(F.Fragment,null,V,F.createElement(rhe,{page:P})):V});$i.displayName="Link";var she=F.forwardRef(function({"aria-current":e="page",caseSensitive:r=!1,className:n="",end:o=!1,style:a,to:f,viewTransition:p,children:m,...v},y){let x=ib(f,{relative:v.relative}),k=$o(),S=F.useContext(g1),{navigator:O,basename:C}=F.useContext(sa),R=S!=null&&ghe(x)&&p===!0,E=O.encodeLocation?O.encodeLocation(x).pathname:x.pathname,P=k.pathname,M=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||(P=P.toLowerCase(),M=M?M.toLowerCase():null,E=E.toLowerCase()),M&&C&&(M=Ds(M,C)||M);const I=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let B=P===E||!o&&P.startsWith(E)&&P.charAt(I)==="/",U=M!=null&&(M===E||!o&&M.startsWith(E)&&M.charAt(E.length)==="/"),H={isActive:B,isPending:U,isTransitioning:R},V=B?e:void 0,W;typeof n=="function"?W=n(H):W=[n,B?"active":null,U?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let G=typeof a=="function"?a(H):a;return F.createElement($i,{...v,"aria-current":V,className:W,ref:y,style:G,to:f,viewTransition:p},typeof m=="function"?m(H):m)});she.displayName="NavLink";var lhe=F.forwardRef(({discover:t="render",fetcherKey:e,navigate:r,reloadDocument:n,replace:o,state:a,method:f=sx,action:p,onSubmit:m,relative:v,preventScrollReset:y,viewTransition:x,...k},S)=>{let O=hhe(),C=phe(p,{relative:v}),R=f.toLowerCase()==="get"?"get":"post",E=typeof p=="string"&&Mq.test(p),P=M=>{if(m&&m(M),M.defaultPrevented)return;M.preventDefault();let I=M.nativeEvent.submitter,B=(I==null?void 0:I.getAttribute("formmethod"))||f;O(I||M.currentTarget,{fetcherKey:e,method:B,navigate:r,replace:o,state:a,relative:v,preventScrollReset:y,viewTransition:x})};return F.createElement("form",{ref:S,method:R,action:C,onSubmit:n?m:P,...k,"data-discover":!E&&t==="render"?"true":void 0})});lhe.displayName="Form";function che(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Iq(t){let e=F.useContext(ph);return kr(e,che(t)),e}function uhe(t,{target:e,replace:r,state:n,preventScrollReset:o,relative:a,viewTransition:f}={}){let p=Va(),m=$o(),v=ib(t,{relative:a});return F.useCallback(y=>{if(Ufe(y,e)){y.preventDefault();let x=r!==void 0?r:lv(m)===lv(v);p(t,{replace:x,state:n,preventScrollReset:o,relative:a,viewTransition:f})}},[m,p,v,r,n,e,t,o,a,f])}var dhe=0,fhe=()=>`__${String(++dhe)}__`;function hhe(){let{router:t}=Iq("useSubmit"),{basename:e}=F.useContext(sa),r=Rfe();return F.useCallback(async(n,o={})=>{let{action:a,method:f,encType:p,formData:m,body:v}=Yfe(n,e);if(o.navigate===!1){let y=o.fetcherKey||fhe();await t.fetch(y,r,o.action||a,{preventScrollReset:o.preventScrollReset,formData:m,body:v,formMethod:o.method||f,formEncType:o.encType||p,flushSync:o.flushSync})}else await t.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:m,body:v,formMethod:o.method||f,formEncType:o.encType||p,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[t,e,r])}function phe(t,{relative:e}={}){let{basename:r}=F.useContext(sa),n=F.useContext(Ti);kr(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),a={...ib(t||".",{relative:e})},f=$o();if(t==null){a.search=f.search;let p=new URLSearchParams(a.search),m=p.getAll("index");if(m.some(y=>y==="")){p.delete("index"),m.filter(x=>x).forEach(x=>p.append("index",x));let y=p.toString();a.search=y?`?${y}`:""}}return(!t||t===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Os([r,a.pathname])),lv(a)}function ghe(t,{relative:e}={}){let r=F.useContext(Sq);kr(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Iq("useViewTransitionState"),o=ib(t,{relative:e});if(!r.isTransitioning)return!1;let a=Ds(r.currentLocation.pathname,n)||r.currentLocation.pathname,f=Ds(r.nextLocation.pathname,n)||r.nextLocation.pathname;return mw(o.pathname,f)!=null||mw(o.pathname,a)!=null}function Lq({error:t,onRetry:e,showHomeButton:r=!0}){return A.jsx("div",{className:"min-h-screen flex items-center justify-center p-4 bg-background",children:A.jsxs("div",{className:"max-w-md w-full space-y-6 text-center",children:[A.jsx("div",{className:"text-6xl mb-6 text-destructive",children:A.jsx(rU,{className:"h-16 w-16 mx-auto"})}),A.jsx("h1",{className:"text-3xl font-bold",children:"Something Went Wrong"}),A.jsx("p",{className:"text-muted-foreground",children:t.message||"An unexpected error occurred"}),A.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center mt-6",children:[e&&A.jsxs(Pt,{onClick:e,className:"gap-2",children:[A.jsx(Sie,{className:"h-4 w-4"}),"Try Again"]}),r&&A.jsx($i,{to:"/",children:A.jsxs(Pt,{variant:"outline",className:"gap-2",children:[A.jsx(nie,{className:"h-4 w-4"}),"Go Home"]})})]}),!1]})})}const mhe={sm:"h-4 w-4 border-2",md:"h-6 w-6 border-2",lg:"h-8 w-8 border-[3px]"},vhe={primary:"border-t-primary-500",secondary:"border-t-secondary-500",success:"border-t-green-500",danger:"border-t-red-500",warning:"border-t-yellow-500",info:"border-t-blue-500"},F3=({size:t="md",className:e,color:r="primary",label:n})=>A.jsxs("div",{className:Ne("inline-flex items-center gap-2",e),children:[A.jsx("div",{className:Ne("animate-spin rounded-full border-solid border-transparent",mhe[t],vhe[r]),role:"status",children:A.jsx("span",{className:"sr-only",children:"Loading..."})}),n&&A.jsx("span",{className:"text-sm text-gray-600",children:n})]}),bhe=({message:t="Loading..."})=>A.jsx("div",{className:"fixed inset-0 bg-white/80 dark:bg-gray-900/80 flex items-center justify-center z-50",children:A.jsxs("div",{className:"text-center",children:[A.jsx(F3,{size:"lg"}),t&&A.jsx("p",{className:"mt-4 text-gray-600 dark:text-gray-300",children:t})]})}),yhe={isOnline:typeof navigator<"u"?navigator.onLine:!0,type:"unknown",effectiveType:"unknown",rtt:0,downlink:0,isOverride:!1,lastUpdated:null};function xhe(t={}){const[e,r]=F.useState(yhe),{toast:n}=Ro(),{showNotifications:o=!0,onStatusChange:a}=t,f=F.useCallback(v=>{r(y=>{const x={...y,...v,lastUpdated:new Date};return a==null||a(x),x})},[a]);F.useEffect(()=>{const v=()=>{f({isOnline:!0,isOverride:!1})},y=()=>{f({isOnline:!1,isOverride:!1}),o&&n({title:"You are offline",description:"Please check your internet connection.",variant:"destructive"})};return window.addEventListener("online",v),window.addEventListener("offline",y),navigator.onLine?v():y(),()=>{window.removeEventListener("online",v),window.removeEventListener("offline",y)}},[o,n,f]),F.useEffect(()=>{if(!("connection"in navigator)||!navigator.connection)return;const v=navigator.connection,y=()=>{f({type:v.type||"unknown",effectiveType:v.effectiveType||"unknown",rtt:v.rtt||0,downlink:v.downlink||0})};return y(),v.addEventListener("change",y),()=>{v.removeEventListener("change",y)}},[f]);const p=F.useCallback(v=>{f({isOnline:v,isOverride:!0})},[f]),m=F.useCallback(()=>{const{effectiveType:v,rtt:y,downlink:x}=e;return v==="slow-2g"||v==="2g"||v==="3g"&&(y>400||x<1)},[e]);return{...e,setOnline:p,isSlowConnection:m()}}const M8=t=>{let e;const r=new Set,n=(v,y)=>{const x=typeof v=="function"?v(e):v;if(!Object.is(x,e)){const k=e;e=y??(typeof x!="object"||x===null)?x:Object.assign({},e,x),r.forEach(S=>S(e,k))}},o=()=>e,p={setState:n,getState:o,getInitialState:()=>m,subscribe:v=>(r.add(v),()=>r.delete(v))},m=e=t(n,o,p);return p},whe=t=>t?M8(t):M8,_he=t=>t;function khe(t,e=_he){const r=Ge.useSyncExternalStore(t.subscribe,Ge.useCallback(()=>e(t.getState()),[t,e]),Ge.useCallback(()=>e(t.getInitialState()),[t,e]));return Ge.useDebugValue(r),r}const I8=t=>{const e=whe(t),r=n=>khe(e,n);return Object.assign(r,e),r},v1=t=>t?I8(t):I8;var L8={VITE_API_URL:"/api",VITE_PRODUCT_TYPE:"client",BASE_URL:"/admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const cv=new Map,R0=t=>{const e=cv.get(t);return e?Object.fromEntries(Object.entries(e.stores).map(([r,n])=>[r,n.getState()])):{}},jhe=(t,e,r)=>{if(t===void 0)return{type:"untracked",connection:e.connect(r)};const n=cv.get(r.name);if(n)return{type:"tracked",store:t,...n};const o={connection:e.connect(r),stores:{}};return cv.set(r.name,o),{type:"tracked",store:t,...o}},She=(t,e)=>{if(e===void 0)return;const r=cv.get(t);r&&(delete r.stores[e],Object.keys(r.stores).length===0&&cv.delete(t))},Che=t=>{var e,r;if(!t)return;const n=t.split(`
`),o=n.findIndex(f=>f.includes("api.setState"));if(o<0)return;const a=((e=n[o+1])==null?void 0:e.trim())||"";return(r=/.+ (.+) .+/.exec(a))==null?void 0:r[1]},Ahe=(t,e={})=>(r,n,o)=>{const{enabled:a,anonymousActionType:f,store:p,...m}=e;let v;try{v=(a??(L8?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!v)return t(r,n,o);const{connection:y,...x}=jhe(p,v,m);let k=!0;o.setState=(C,R,E)=>{const P=r(C,R);if(!k)return P;const M=E===void 0?{type:f||Che(new Error().stack)||"anonymous"}:typeof E=="string"?{type:E}:E;return p===void 0?(y==null||y.send(M,n()),P):(y==null||y.send({...M,type:`${p}/${M.type}`},{...R0(m.name),[p]:o.getState()}),P)},o.devtools={cleanup:()=>{y&&typeof y.unsubscribe=="function"&&y.unsubscribe(),She(m.name,p)}};const S=(...C)=>{const R=k;k=!1,r(...C),k=R},O=t(o.setState,n,o);if(x.type==="untracked"?y==null||y.init(O):(x.stores[x.store]=o,y==null||y.init(Object.fromEntries(Object.entries(x.stores).map(([C,R])=>[C,C===x.store?O:R.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let C=!1;const R=o.dispatch;o.dispatch=(...E)=>{(L8?"production":void 0)!=="production"&&E[0].type==="__setState"&&!C&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),C=!0),R(...E)}}return y.subscribe(C=>{var R;switch(C.type){case"ACTION":if(typeof C.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return LO(C.payload,E=>{if(E.type==="__setState"){if(p===void 0){S(E.state);return}Object.keys(E.state).length!==1&&console.error(`
                    [zustand devtools middleware] Unsupported __setState action format.
                    When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
                    and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
                    `);const P=E.state[p];if(P==null)return;JSON.stringify(o.getState())!==JSON.stringify(P)&&S(P);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(E)});case"DISPATCH":switch(C.payload.type){case"RESET":return S(O),p===void 0?y==null?void 0:y.init(o.getState()):y==null?void 0:y.init(R0(m.name));case"COMMIT":if(p===void 0){y==null||y.init(o.getState());return}return y==null?void 0:y.init(R0(m.name));case"ROLLBACK":return LO(C.state,E=>{if(p===void 0){S(E),y==null||y.init(o.getState());return}S(E[p]),y==null||y.init(R0(m.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return LO(C.state,E=>{if(p===void 0){S(E);return}JSON.stringify(o.getState())!==JSON.stringify(E[p])&&S(E[p])});case"IMPORT_STATE":{const{nextLiftedState:E}=C.payload,P=(R=E.computedStates.slice(-1)[0])==null?void 0:R.state;if(!P)return;S(p===void 0?P:P[p]),y==null||y.send(null,E);return}case"PAUSE_RECORDING":return k=!k}return}}),O},Ohe=Ahe,LO=(t,e)=>{let r;try{r=JSON.parse(t)}catch(n){console.error("[zustand devtools middleware] Could not parse the received json",n)}r!==void 0&&e(r)};function H3(t,e){let r;try{r=t()}catch{return}return{getItem:o=>{var a;const f=m=>m===null?null:JSON.parse(m,void 0),p=(a=r.getItem(o))!=null?a:null;return p instanceof Promise?p.then(f):f(p)},setItem:(o,a)=>r.setItem(o,JSON.stringify(a,void 0)),removeItem:o=>r.removeItem(o)}}const WT=t=>e=>{try{const r=t(e);return r instanceof Promise?r:{then(n){return WT(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return WT(n)(r)}}}},Ehe=(t,e)=>(r,n,o)=>{let a={storage:H3(()=>localStorage),partialize:C=>C,version:0,merge:(C,R)=>({...R,...C}),...e},f=!1;const p=new Set,m=new Set;let v=a.storage;if(!v)return t((...C)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...C)},n,o);const y=()=>{const C=a.partialize({...n()});return v.setItem(a.name,{state:C,version:a.version})},x=o.setState;o.setState=(C,R)=>(x(C,R),y());const k=t((...C)=>(r(...C),y()),n,o);o.getInitialState=()=>k;let S;const O=()=>{var C,R;if(!v)return;f=!1,p.forEach(P=>{var M;return P((M=n())!=null?M:k)});const E=((R=a.onRehydrateStorage)==null?void 0:R.call(a,(C=n())!=null?C:k))||void 0;return WT(v.getItem.bind(v))(a.name).then(P=>{if(P)if(typeof P.version=="number"&&P.version!==a.version){if(a.migrate){const M=a.migrate(P.state,P.version);return M instanceof Promise?M.then(I=>[!0,I]):[!0,M]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,P.state];return[!1,void 0]}).then(P=>{var M;const[I,B]=P;if(S=a.merge(B,(M=n())!=null?M:k),r(S,!0),I)return y()}).then(()=>{E==null||E(S,void 0),S=n(),f=!0,m.forEach(P=>P(S))}).catch(P=>{E==null||E(void 0,P)})};return o.persist={setOptions:C=>{a={...a,...C},C.storage&&(v=C.storage)},clearStorage:()=>{v==null||v.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>O(),hasHydrated:()=>f,onHydrate:C=>(p.add(C),()=>{p.delete(C)}),onFinishHydration:C=>(m.add(C),()=>{m.delete(C)})},a.skipHydration||O(),S||k},Nq=Ehe,The=["light","dark"],XT=()=>typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Rhe="theme-preference",au=v1()(Nq((t,e)=>({theme:"light",systemTheme:XT(),resolvedTheme:"light",setTheme:r=>{if(r==="system"||The.includes(r)){const n=r==="system"?e().systemTheme:r;t({theme:r,resolvedTheme:n});const o=window.document.documentElement;o.classList.remove("light","dark"),o.classList.add(n),o.setAttribute("data-theme",n)}},toggleTheme:()=>{const{theme:r,systemTheme:n}=e();let o;r==="system"?o=n==="dark"?"light":"dark":o=r==="dark"?"light":"dark",e().setTheme(o)},setSystemTheme:r=>{const{theme:n}=e(),o=n==="system"?r:n;t({systemTheme:r,resolvedTheme:o});const a=window.document.documentElement;a.classList.remove("light","dark"),a.classList.add(o),a.setAttribute("data-theme",o)}}),{name:Rhe,storage:H3(()=>localStorage),partialize:t=>({theme:t.theme}),onRehydrateStorage:()=>t=>{if(t){const e=XT();t.systemTheme=e;const r=t.theme==="system"?e:t.theme;if(t.resolvedTheme=r,typeof document<"u"){const n=document.documentElement;n.classList.remove("light","dark"),n.classList.add(r),n.setAttribute("data-theme",r)}}}}));if(typeof window<"u"){const t=window.matchMedia("(prefers-color-scheme: dark)"),e=n=>{au.getState().setSystemTheme(n.matches?"dark":"light")},r=XT();au.getState().systemTheme!==r&&au.getState().setSystemTheme(r),t.addEventListener("change",e),window.addEventListener("beforeunload",()=>{t.removeEventListener("change",e)})}function Phe(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}Array(12).fill(0);let GT=1;class zhe{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const r=this.subscribers.indexOf(e);this.subscribers.splice(r,1)}),this.publish=e=>{this.subscribers.forEach(r=>r(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var r;const{message:n,...o}=e,a=typeof(e==null?void 0:e.id)=="number"||((r=e.id)==null?void 0:r.length)>0?e.id:GT++,f=this.toasts.find(m=>m.id===a),p=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),f?this.toasts=this.toasts.map(m=>m.id===a?(this.publish({...m,...e,id:a,title:n}),{...m,...e,id:a,dismissible:p,title:n}):m):this.addToast({title:n,...o,dismissible:p,id:a}),a},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:e,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),e),this.message=(e,r)=>this.create({...r,message:e}),this.error=(e,r)=>this.create({...r,message:e,type:"error"}),this.success=(e,r)=>this.create({...r,type:"success",message:e}),this.info=(e,r)=>this.create({...r,type:"info",message:e}),this.warning=(e,r)=>this.create({...r,type:"warning",message:e}),this.loading=(e,r)=>this.create({...r,type:"loading",message:e}),this.promise=(e,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:e,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(e instanceof Function?e():e);let a=n!==void 0,f;const p=o.then(async v=>{if(f=["resolve",v],Ge.isValidElement(v))a=!1,this.create({id:n,type:"default",message:v});else if(Ihe(v)&&!v.ok){a=!1;const x=typeof r.error=="function"?await r.error(`HTTP error! status: ${v.status}`):r.error,k=typeof r.description=="function"?await r.description(`HTTP error! status: ${v.status}`):r.description,O=typeof x=="object"&&!Ge.isValidElement(x)?x:{message:x};this.create({id:n,type:"error",description:k,...O})}else if(v instanceof Error){a=!1;const x=typeof r.error=="function"?await r.error(v):r.error,k=typeof r.description=="function"?await r.description(v):r.description,O=typeof x=="object"&&!Ge.isValidElement(x)?x:{message:x};this.create({id:n,type:"error",description:k,...O})}else if(r.success!==void 0){a=!1;const x=typeof r.success=="function"?await r.success(v):r.success,k=typeof r.description=="function"?await r.description(v):r.description,O=typeof x=="object"&&!Ge.isValidElement(x)?x:{message:x};this.create({id:n,type:"success",description:k,...O})}}).catch(async v=>{if(f=["reject",v],r.error!==void 0){a=!1;const y=typeof r.error=="function"?await r.error(v):r.error,x=typeof r.description=="function"?await r.description(v):r.description,S=typeof y=="object"&&!Ge.isValidElement(y)?y:{message:y};this.create({id:n,type:"error",description:x,...S})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((v,y)=>p.then(()=>f[0]==="reject"?y(f[1]):v(f[1])).catch(y));return typeof n!="string"&&typeof n!="number"?{unwrap:m}:Object.assign(n,{unwrap:m})},this.custom=(e,r)=>{const n=(r==null?void 0:r.id)||GT++;return this.create({jsx:e(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const fi=new zhe,Mhe=(t,e)=>{const r=(e==null?void 0:e.id)||GT++;return fi.addToast({title:t,...e,id:r}),r},Ihe=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",Lhe=Mhe,Nhe=()=>fi.toasts,Dhe=()=>fi.getActiveToasts(),Bm=Object.assign(Lhe,{success:fi.success,info:fi.info,warning:fi.warning,error:fi.error,custom:fi.custom,message:fi.message,promise:fi.promise,dismiss:fi.dismiss,loading:fi.loading},{getHistory:Nhe,getToasts:Dhe});Phe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");const xt={BASE_URL:"/api",VERSION:"v1",TIMEOUT:3e4,MAX_RETRIES:2,CACHE_TIME:5*60*1e3,STALE_TIME:0,PAGINATION:{DEFAULT_PAGE:1,DEFAULT_PAGE_SIZE:10,MAX_PAGE_SIZE:100},AUTH:{TOKEN_KEY:"auth_token",REFRESH_TOKEN_KEY:"refresh_token",TOKEN_EXPIRY_BUFFER:5*60*1e3},ENDPOINTS:{USERS:{LIST:"/admin/users"},AUTH:{LOGIN:"/login",REGISTER:"/auth/register",REFRESH:"/auth/refresh",LOGOUT:"/auth/logout",ME:"/auth/me",FORGOT_PASSWORD:"/auth/forgot-password",RESET_PASSWORD:"/auth/reset-password",VERIFY_EMAIL:"/auth/verify-email"},ADMIN:{BASE:"/users",PROFILE:"/",PREFERENCES:"/users/preferences"},CONFIG:{BASE:"/config",GET_CONFIGURATION:"/"}}},$T=t=>{if(t.response){const{data:e,status:r}=t.response;throw{message:(e==null?void 0:e.message)||"An error occurred",statusCode:r,error:e==null?void 0:e.error,details:e==null?void 0:e.details}}else throw t.request?{message:"No response received from server",statusCode:0,error:"Network Error"}:{message:t.message||"An error occurred",statusCode:-1,error:"Request Error"}};function Dq(t,e){return function(){return t.apply(e,arguments)}}const{toString:Bhe}=Object.prototype,{getPrototypeOf:U3}=Object,{iterator:b1,toStringTag:Bq}=Symbol,y1=(t=>e=>{const r=Bhe.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),la=t=>(t=t.toLowerCase(),e=>y1(e)===t),x1=t=>e=>typeof e===t,{isArray:mh}=Array,uv=x1("undefined");function ab(t){return t!==null&&!uv(t)&&t.constructor!==null&&!uv(t.constructor)&&Co(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Fq=la("ArrayBuffer");function Fhe(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Fq(t.buffer),e}const Hhe=x1("string"),Co=x1("function"),Hq=x1("number"),sb=t=>t!==null&&typeof t=="object",Uhe=t=>t===!0||t===!1,cx=t=>{if(y1(t)!=="object")return!1;const e=U3(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Bq in t)&&!(b1 in t)},Vhe=t=>{if(!sb(t)||ab(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},qhe=la("Date"),Yhe=la("File"),Whe=la("Blob"),Xhe=la("FileList"),Ghe=t=>sb(t)&&Co(t.pipe),$he=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Co(t.append)&&((e=y1(t))==="formdata"||e==="object"&&Co(t.toString)&&t.toString()==="[object FormData]"))},Zhe=la("URLSearchParams"),[Khe,Jhe,Qhe,epe]=["ReadableStream","Request","Response","Headers"].map(la),tpe=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function lb(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),mh(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{if(ab(t))return;const a=r?Object.getOwnPropertyNames(t):Object.keys(t),f=a.length;let p;for(n=0;n<f;n++)p=a[n],e.call(null,t[p],p,t)}}function Uq(t,e){if(ab(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}const Fc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vq=t=>!uv(t)&&t!==Fc;function ZT(){const{caseless:t}=Vq(this)&&this||{},e={},r=(n,o)=>{const a=t&&Uq(e,o)||o;cx(e[a])&&cx(n)?e[a]=ZT(e[a],n):cx(n)?e[a]=ZT({},n):mh(n)?e[a]=n.slice():e[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&lb(arguments[n],r);return e}const rpe=(t,e,r,{allOwnKeys:n}={})=>(lb(e,(o,a)=>{r&&Co(o)?t[a]=Dq(o,r):t[a]=o},{allOwnKeys:n}),t),npe=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ope=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},ipe=(t,e,r,n)=>{let o,a,f;const p={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),a=o.length;a-- >0;)f=o[a],(!n||n(f,t,e))&&!p[f]&&(e[f]=t[f],p[f]=!0);t=r!==!1&&U3(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},ape=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},spe=t=>{if(!t)return null;if(mh(t))return t;let e=t.length;if(!Hq(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},lpe=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&U3(Uint8Array)),cpe=(t,e)=>{const n=(t&&t[b1]).call(t);let o;for(;(o=n.next())&&!o.done;){const a=o.value;e.call(t,a[0],a[1])}},upe=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},dpe=la("HTMLFormElement"),fpe=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),N8=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),hpe=la("RegExp"),qq=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};lb(r,(o,a)=>{let f;(f=e(o,a,t))!==!1&&(n[a]=f||o)}),Object.defineProperties(t,n)},ppe=t=>{qq(t,(e,r)=>{if(Co(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(Co(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},gpe=(t,e)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return mh(t)?n(t):n(String(t).split(e)),r},mpe=()=>{},vpe=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function bpe(t){return!!(t&&Co(t.append)&&t[Bq]==="FormData"&&t[b1])}const ype=t=>{const e=new Array(10),r=(n,o)=>{if(sb(n)){if(e.indexOf(n)>=0)return;if(ab(n))return n;if(!("toJSON"in n)){e[o]=n;const a=mh(n)?[]:{};return lb(n,(f,p)=>{const m=r(f,o+1);!uv(m)&&(a[p]=m)}),e[o]=void 0,a}}return n};return r(t,0)},xpe=la("AsyncFunction"),wpe=t=>t&&(sb(t)||Co(t))&&Co(t.then)&&Co(t.catch),Yq=((t,e)=>t?setImmediate:e?((r,n)=>(Fc.addEventListener("message",({source:o,data:a})=>{o===Fc&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Fc.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Co(Fc.postMessage)),_pe=typeof queueMicrotask<"u"?queueMicrotask.bind(Fc):typeof process<"u"&&process.nextTick||Yq,kpe=t=>t!=null&&Co(t[b1]),me={isArray:mh,isArrayBuffer:Fq,isBuffer:ab,isFormData:$he,isArrayBufferView:Fhe,isString:Hhe,isNumber:Hq,isBoolean:Uhe,isObject:sb,isPlainObject:cx,isEmptyObject:Vhe,isReadableStream:Khe,isRequest:Jhe,isResponse:Qhe,isHeaders:epe,isUndefined:uv,isDate:qhe,isFile:Yhe,isBlob:Whe,isRegExp:hpe,isFunction:Co,isStream:Ghe,isURLSearchParams:Zhe,isTypedArray:lpe,isFileList:Xhe,forEach:lb,merge:ZT,extend:rpe,trim:tpe,stripBOM:npe,inherits:ope,toFlatObject:ipe,kindOf:y1,kindOfTest:la,endsWith:ape,toArray:spe,forEachEntry:cpe,matchAll:upe,isHTMLForm:dpe,hasOwnProperty:N8,hasOwnProp:N8,reduceDescriptors:qq,freezeMethods:ppe,toObjectSet:gpe,toCamelCase:fpe,noop:mpe,toFiniteNumber:vpe,findKey:Uq,global:Fc,isContextDefined:Vq,isSpecCompliantForm:bpe,toJSONObject:ype,isAsyncFn:xpe,isThenable:wpe,setImmediate:Yq,asap:_pe,isIterable:kpe};function gt(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}me.inherits(gt,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:me.toJSONObject(this.config),code:this.code,status:this.status}}});const Wq=gt.prototype,Xq={};["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(t=>{Xq[t]={value:t}});Object.defineProperties(gt,Xq);Object.defineProperty(Wq,"isAxiosError",{value:!0});gt.from=(t,e,r,n,o,a)=>{const f=Object.create(Wq);return me.toFlatObject(t,f,function(m){return m!==Error.prototype},p=>p!=="isAxiosError"),gt.call(f,t.message,e,r,n,o),f.cause=t,f.name=t.name,a&&Object.assign(f,a),f};const jpe=null;function KT(t){return me.isPlainObject(t)||me.isArray(t)}function Gq(t){return me.endsWith(t,"[]")?t.slice(0,-2):t}function D8(t,e,r){return t?t.concat(e).map(function(o,a){return o=Gq(o),!r&&a?"["+o+"]":o}).join(r?".":""):e}function Spe(t){return me.isArray(t)&&!t.some(KT)}const Cpe=me.toFlatObject(me,{},null,function(e){return/^is[A-Z]/.test(e)});function w1(t,e,r){if(!me.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=me.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,R){return!me.isUndefined(R[C])});const n=r.metaTokens,o=r.visitor||y,a=r.dots,f=r.indexes,m=(r.Blob||typeof Blob<"u"&&Blob)&&me.isSpecCompliantForm(e);if(!me.isFunction(o))throw new TypeError("visitor must be a function");function v(O){if(O===null)return"";if(me.isDate(O))return O.toISOString();if(me.isBoolean(O))return O.toString();if(!m&&me.isBlob(O))throw new gt("Blob is not supported. Use a Buffer instead.");return me.isArrayBuffer(O)||me.isTypedArray(O)?m&&typeof Blob=="function"?new Blob([O]):Buffer.from(O):O}function y(O,C,R){let E=O;if(O&&!R&&typeof O=="object"){if(me.endsWith(C,"{}"))C=n?C:C.slice(0,-2),O=JSON.stringify(O);else if(me.isArray(O)&&Spe(O)||(me.isFileList(O)||me.endsWith(C,"[]"))&&(E=me.toArray(O)))return C=Gq(C),E.forEach(function(M,I){!(me.isUndefined(M)||M===null)&&e.append(f===!0?D8([C],I,a):f===null?C:C+"[]",v(M))}),!1}return KT(O)?!0:(e.append(D8(R,C,a),v(O)),!1)}const x=[],k=Object.assign(Cpe,{defaultVisitor:y,convertValue:v,isVisitable:KT});function S(O,C){if(!me.isUndefined(O)){if(x.indexOf(O)!==-1)throw Error("Circular reference detected in "+C.join("."));x.push(O),me.forEach(O,function(E,P){(!(me.isUndefined(E)||E===null)&&o.call(e,E,me.isString(P)?P.trim():P,C,k))===!0&&S(E,C?C.concat(P):[P])}),x.pop()}}if(!me.isObject(t))throw new TypeError("data must be an object");return S(t),e}function B8(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function V3(t,e){this._pairs=[],t&&w1(t,this,e)}const $q=V3.prototype;$q.append=function(e,r){this._pairs.push([e,r])};$q.toString=function(e){const r=e?function(n){return e.call(this,n,B8)}:B8;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Ape(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zq(t,e,r){if(!e)return t;const n=r&&r.encode||Ape;me.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let a;if(o?a=o(e,r):a=me.isURLSearchParams(e)?e.toString():new V3(e,r).toString(n),a){const f=t.indexOf("#");f!==-1&&(t=t.slice(0,f)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class F8{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){me.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Kq={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ope=typeof URLSearchParams<"u"?URLSearchParams:V3,Epe=typeof FormData<"u"?FormData:null,Tpe=typeof Blob<"u"?Blob:null,Rpe={isBrowser:!0,classes:{URLSearchParams:Ope,FormData:Epe,Blob:Tpe},protocols:["http","https","file","blob","url","data"]},q3=typeof window<"u"&&typeof document<"u",JT=typeof navigator=="object"&&navigator||void 0,Ppe=q3&&(!JT||["ReactNative","NativeScript","NS"].indexOf(JT.product)<0),zpe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mpe=q3&&window.location.href||"http://localhost",Ipe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:q3,hasStandardBrowserEnv:Ppe,hasStandardBrowserWebWorkerEnv:zpe,navigator:JT,origin:Mpe},Symbol.toStringTag,{value:"Module"})),Xn={...Ipe,...Rpe};function Lpe(t,e){return w1(t,new Xn.classes.URLSearchParams,{visitor:function(r,n,o,a){return Xn.isNode&&me.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...e})}function Npe(t){return me.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Dpe(t){const e={},r=Object.keys(t);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],e[a]=t[a];return e}function Jq(t){function e(r,n,o,a){let f=r[a++];if(f==="__proto__")return!0;const p=Number.isFinite(+f),m=a>=r.length;return f=!f&&me.isArray(o)?o.length:f,m?(me.hasOwnProp(o,f)?o[f]=[o[f],n]:o[f]=n,!p):((!o[f]||!me.isObject(o[f]))&&(o[f]=[]),e(r,n,o[f],a)&&me.isArray(o[f])&&(o[f]=Dpe(o[f])),!p)}if(me.isFormData(t)&&me.isFunction(t.entries)){const r={};return me.forEachEntry(t,(n,o)=>{e(Npe(n),o,r,0)}),r}return null}function Bpe(t,e,r){if(me.isString(t))try{return(e||JSON.parse)(t),me.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const cb={transitional:Kq,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=me.isObject(e);if(a&&me.isHTMLForm(e)&&(e=new FormData(e)),me.isFormData(e))return o?JSON.stringify(Jq(e)):e;if(me.isArrayBuffer(e)||me.isBuffer(e)||me.isStream(e)||me.isFile(e)||me.isBlob(e)||me.isReadableStream(e))return e;if(me.isArrayBufferView(e))return e.buffer;if(me.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let p;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Lpe(e,this.formSerializer).toString();if((p=me.isFileList(e))||n.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return w1(p?{"files[]":e}:e,m&&new m,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),Bpe(e)):e}],transformResponse:[function(e){const r=this.transitional||cb.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(me.isResponse(e)||me.isReadableStream(e))return e;if(e&&me.isString(e)&&(n&&!this.responseType||o)){const f=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(p){if(f)throw p.name==="SyntaxError"?gt.from(p,gt.ERR_BAD_RESPONSE,this,null,this.response):p}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xn.classes.FormData,Blob:Xn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};me.forEach(["delete","get","head","post","put","patch"],t=>{cb.headers[t]={}});const Fpe=me.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"]),Hpe=t=>{const e={};let r,n,o;return t&&t.split(`
`).forEach(function(f){o=f.indexOf(":"),r=f.substring(0,o).trim().toLowerCase(),n=f.substring(o+1).trim(),!(!r||e[r]&&Fpe[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},H8=Symbol("internals");function lm(t){return t&&String(t).trim().toLowerCase()}function ux(t){return t===!1||t==null?t:me.isArray(t)?t.map(ux):String(t)}function Upe(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const Vpe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function NO(t,e,r,n,o){if(me.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!me.isString(e)){if(me.isString(n))return e.indexOf(n)!==-1;if(me.isRegExp(n))return n.test(e)}}function qpe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function Ype(t,e){const r=me.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,a,f){return this[n].call(this,e,o,a,f)},configurable:!0})})}let Ao=class{constructor(e){e&&this.set(e)}set(e,r,n){const o=this;function a(p,m,v){const y=lm(m);if(!y)throw new Error("header name must be a non-empty string");const x=me.findKey(o,y);(!x||o[x]===void 0||v===!0||v===void 0&&o[x]!==!1)&&(o[x||m]=ux(p))}const f=(p,m)=>me.forEach(p,(v,y)=>a(v,y,m));if(me.isPlainObject(e)||e instanceof this.constructor)f(e,r);else if(me.isString(e)&&(e=e.trim())&&!Vpe(e))f(Hpe(e),r);else if(me.isObject(e)&&me.isIterable(e)){let p={},m,v;for(const y of e){if(!me.isArray(y))throw TypeError("Object iterator must return a key-value pair");p[v=y[0]]=(m=p[v])?me.isArray(m)?[...m,y[1]]:[m,y[1]]:y[1]}f(p,r)}else e!=null&&a(r,e,n);return this}get(e,r){if(e=lm(e),e){const n=me.findKey(this,e);if(n){const o=this[n];if(!r)return o;if(r===!0)return Upe(o);if(me.isFunction(r))return r.call(this,o,n);if(me.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=lm(e),e){const n=me.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||NO(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let o=!1;function a(f){if(f=lm(f),f){const p=me.findKey(n,f);p&&(!r||NO(n,n[p],p,r))&&(delete n[p],o=!0)}}return me.isArray(e)?e.forEach(a):a(e),o}clear(e){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!e||NO(this,this[a],a,e,!0))&&(delete this[a],o=!0)}return o}normalize(e){const r=this,n={};return me.forEach(this,(o,a)=>{const f=me.findKey(n,a);if(f){r[f]=ux(o),delete r[a];return}const p=e?qpe(a):String(a).trim();p!==a&&delete r[a],r[p]=ux(o),n[p]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return me.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&me.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[H8]=this[H8]={accessors:{}}).accessors,o=this.prototype;function a(f){const p=lm(f);n[p]||(Ype(o,f),n[p]=!0)}return me.isArray(e)?e.forEach(a):a(e),this}};Ao.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);me.reduceDescriptors(Ao.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});me.freezeMethods(Ao);function DO(t,e){const r=this||cb,n=e||r,o=Ao.from(n.headers);let a=n.data;return me.forEach(t,function(p){a=p.call(r,a,o.normalize(),e?e.status:void 0)}),o.normalize(),a}function Qq(t){return!!(t&&t.__CANCEL__)}function vh(t,e,r){gt.call(this,t??"canceled",gt.ERR_CANCELED,e,r),this.name="CanceledError"}me.inherits(vh,gt,{__CANCEL__:!0});function eY(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new gt("Request failed with status code "+r.status,[gt.ERR_BAD_REQUEST,gt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Wpe(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Xpe(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o=0,a=0,f;return e=e!==void 0?e:1e3,function(m){const v=Date.now(),y=n[a];f||(f=v),r[o]=m,n[o]=v;let x=a,k=0;for(;x!==o;)k+=r[x++],x=x%t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),v-f<e)return;const S=y&&v-y;return S?Math.round(k*1e3/S):void 0}}function Gpe(t,e){let r=0,n=1e3/e,o,a;const f=(v,y=Date.now())=>{r=y,o=null,a&&(clearTimeout(a),a=null),t(...v)};return[(...v)=>{const y=Date.now(),x=y-r;x>=n?f(v,y):(o=v,a||(a=setTimeout(()=>{a=null,f(o)},n-x)))},()=>o&&f(o)]}const vw=(t,e,r=3)=>{let n=0;const o=Xpe(50,250);return Gpe(a=>{const f=a.loaded,p=a.lengthComputable?a.total:void 0,m=f-n,v=o(m),y=f<=p;n=f;const x={loaded:f,total:p,progress:p?f/p:void 0,bytes:m,rate:v||void 0,estimated:v&&p&&y?(p-f)/v:void 0,event:a,lengthComputable:p!=null,[e?"download":"upload"]:!0};t(x)},r)},U8=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},V8=t=>(...e)=>me.asap(()=>t(...e)),$pe=Xn.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,Xn.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(Xn.origin),Xn.navigator&&/(msie|trident)/i.test(Xn.navigator.userAgent)):()=>!0,Zpe=Xn.hasStandardBrowserEnv?{write(t,e,r,n,o,a){const f=[t+"="+encodeURIComponent(e)];me.isNumber(r)&&f.push("expires="+new Date(r).toGMTString()),me.isString(n)&&f.push("path="+n),me.isString(o)&&f.push("domain="+o),a===!0&&f.push("secure"),document.cookie=f.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Kpe(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Jpe(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function tY(t,e,r){let n=!Kpe(e);return t&&(n||r==!1)?Jpe(t,e):e}const q8=t=>t instanceof Ao?{...t}:t;function vu(t,e){e=e||{};const r={};function n(v,y,x,k){return me.isPlainObject(v)&&me.isPlainObject(y)?me.merge.call({caseless:k},v,y):me.isPlainObject(y)?me.merge({},y):me.isArray(y)?y.slice():y}function o(v,y,x,k){if(me.isUndefined(y)){if(!me.isUndefined(v))return n(void 0,v,x,k)}else return n(v,y,x,k)}function a(v,y){if(!me.isUndefined(y))return n(void 0,y)}function f(v,y){if(me.isUndefined(y)){if(!me.isUndefined(v))return n(void 0,v)}else return n(void 0,y)}function p(v,y,x){if(x in e)return n(v,y);if(x in t)return n(void 0,v)}const m={url:a,method:a,data:a,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:p,headers:(v,y,x)=>o(q8(v),q8(y),x,!0)};return me.forEach(Object.keys({...t,...e}),function(y){const x=m[y]||o,k=x(t[y],e[y],y);me.isUndefined(k)&&x!==p||(r[y]=k)}),r}const rY=t=>{const e=vu({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:f,auth:p}=e;e.headers=f=Ao.from(f),e.url=Zq(tY(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),p&&f.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?unescape(encodeURIComponent(p.password)):"")));let m;if(me.isFormData(r)){if(Xn.hasStandardBrowserEnv||Xn.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((m=f.getContentType())!==!1){const[v,...y]=m?m.split(";").map(x=>x.trim()).filter(Boolean):[];f.setContentType([v||"multipart/form-data",...y].join("; "))}}if(Xn.hasStandardBrowserEnv&&(n&&me.isFunction(n)&&(n=n(e)),n||n!==!1&&$pe(e.url))){const v=o&&a&&Zpe.read(a);v&&f.set(o,v)}return e},Qpe=typeof XMLHttpRequest<"u",ege=Qpe&&function(t){return new Promise(function(r,n){const o=rY(t);let a=o.data;const f=Ao.from(o.headers).normalize();let{responseType:p,onUploadProgress:m,onDownloadProgress:v}=o,y,x,k,S,O;function C(){S&&S(),O&&O(),o.cancelToken&&o.cancelToken.unsubscribe(y),o.signal&&o.signal.removeEventListener("abort",y)}let R=new XMLHttpRequest;R.open(o.method.toUpperCase(),o.url,!0),R.timeout=o.timeout;function E(){if(!R)return;const M=Ao.from("getAllResponseHeaders"in R&&R.getAllResponseHeaders()),B={data:!p||p==="text"||p==="json"?R.responseText:R.response,status:R.status,statusText:R.statusText,headers:M,config:t,request:R};eY(function(H){r(H),C()},function(H){n(H),C()},B),R=null}"onloadend"in R?R.onloadend=E:R.onreadystatechange=function(){!R||R.readyState!==4||R.status===0&&!(R.responseURL&&R.responseURL.indexOf("file:")===0)||setTimeout(E)},R.onabort=function(){R&&(n(new gt("Request aborted",gt.ECONNABORTED,t,R)),R=null)},R.onerror=function(){n(new gt("Network Error",gt.ERR_NETWORK,t,R)),R=null},R.ontimeout=function(){let I=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const B=o.transitional||Kq;o.timeoutErrorMessage&&(I=o.timeoutErrorMessage),n(new gt(I,B.clarifyTimeoutError?gt.ETIMEDOUT:gt.ECONNABORTED,t,R)),R=null},a===void 0&&f.setContentType(null),"setRequestHeader"in R&&me.forEach(f.toJSON(),function(I,B){R.setRequestHeader(B,I)}),me.isUndefined(o.withCredentials)||(R.withCredentials=!!o.withCredentials),p&&p!=="json"&&(R.responseType=o.responseType),v&&([k,O]=vw(v,!0),R.addEventListener("progress",k)),m&&R.upload&&([x,S]=vw(m),R.upload.addEventListener("progress",x),R.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(y=M=>{R&&(n(!M||M.type?new vh(null,t,R):M),R.abort(),R=null)},o.cancelToken&&o.cancelToken.subscribe(y),o.signal&&(o.signal.aborted?y():o.signal.addEventListener("abort",y)));const P=Wpe(o.url);if(P&&Xn.protocols.indexOf(P)===-1){n(new gt("Unsupported protocol "+P+":",gt.ERR_BAD_REQUEST,t));return}R.send(a||null)})},tge=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,o;const a=function(v){if(!o){o=!0,p();const y=v instanceof Error?v:this.reason;n.abort(y instanceof gt?y:new vh(y instanceof Error?y.message:y))}};let f=e&&setTimeout(()=>{f=null,a(new gt(`timeout ${e} of ms exceeded`,gt.ETIMEDOUT))},e);const p=()=>{t&&(f&&clearTimeout(f),f=null,t.forEach(v=>{v.unsubscribe?v.unsubscribe(a):v.removeEventListener("abort",a)}),t=null)};t.forEach(v=>v.addEventListener("abort",a));const{signal:m}=n;return m.unsubscribe=()=>me.asap(p),m}},rge=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,o;for(;n<r;)o=n+e,yield t.slice(n,o),n=o},nge=async function*(t,e){for await(const r of oge(t))yield*rge(r,e)},oge=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},Y8=(t,e,r,n)=>{const o=nge(t,e);let a=0,f,p=m=>{f||(f=!0,n&&n(m))};return new ReadableStream({async pull(m){try{const{done:v,value:y}=await o.next();if(v){p(),m.close();return}let x=y.byteLength;if(r){let k=a+=x;r(k)}m.enqueue(new Uint8Array(y))}catch(v){throw p(v),v}},cancel(m){return p(m),o.return()}},{highWaterMark:2})},_1=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",nY=_1&&typeof ReadableStream=="function",ige=_1&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),oY=(t,...e)=>{try{return!!t(...e)}catch{return!1}},age=nY&&oY(()=>{let t=!1;const e=new Request(Xn.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),W8=64*1024,QT=nY&&oY(()=>me.isReadableStream(new Response("").body)),bw={stream:QT&&(t=>t.body)};_1&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!bw[e]&&(bw[e]=me.isFunction(t[e])?r=>r[e]():(r,n)=>{throw new gt(`Response type '${e}' is not supported`,gt.ERR_NOT_SUPPORT,n)})})})(new Response);const sge=async t=>{if(t==null)return 0;if(me.isBlob(t))return t.size;if(me.isSpecCompliantForm(t))return(await new Request(Xn.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(me.isArrayBufferView(t)||me.isArrayBuffer(t))return t.byteLength;if(me.isURLSearchParams(t)&&(t=t+""),me.isString(t))return(await ige(t)).byteLength},lge=async(t,e)=>{const r=me.toFiniteNumber(t.getContentLength());return r??sge(e)},cge=_1&&(async t=>{let{url:e,method:r,data:n,signal:o,cancelToken:a,timeout:f,onDownloadProgress:p,onUploadProgress:m,responseType:v,headers:y,withCredentials:x="same-origin",fetchOptions:k}=rY(t);v=v?(v+"").toLowerCase():"text";let S=tge([o,a&&a.toAbortSignal()],f),O;const C=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let R;try{if(m&&age&&r!=="get"&&r!=="head"&&(R=await lge(y,n))!==0){let B=new Request(e,{method:"POST",body:n,duplex:"half"}),U;if(me.isFormData(n)&&(U=B.headers.get("content-type"))&&y.setContentType(U),B.body){const[H,V]=U8(R,vw(V8(m)));n=Y8(B.body,W8,H,V)}}me.isString(x)||(x=x?"include":"omit");const E="credentials"in Request.prototype;O=new Request(e,{...k,signal:S,method:r.toUpperCase(),headers:y.normalize().toJSON(),body:n,duplex:"half",credentials:E?x:void 0});let P=await fetch(O,k);const M=QT&&(v==="stream"||v==="response");if(QT&&(p||M&&C)){const B={};["status","statusText","headers"].forEach(W=>{B[W]=P[W]});const U=me.toFiniteNumber(P.headers.get("content-length")),[H,V]=p&&U8(U,vw(V8(p),!0))||[];P=new Response(Y8(P.body,W8,H,()=>{V&&V(),C&&C()}),B)}v=v||"text";let I=await bw[me.findKey(bw,v)||"text"](P,t);return!M&&C&&C(),await new Promise((B,U)=>{eY(B,U,{data:I,headers:Ao.from(P.headers),status:P.status,statusText:P.statusText,config:t,request:O})})}catch(E){throw C&&C(),E&&E.name==="TypeError"&&/Load failed|fetch/i.test(E.message)?Object.assign(new gt("Network Error",gt.ERR_NETWORK,t,O),{cause:E.cause||E}):gt.from(E,E&&E.code,t,O)}}),eR={http:jpe,xhr:ege,fetch:cge};me.forEach(eR,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const X8=t=>`- ${t}`,uge=t=>me.isFunction(t)||t===null||t===!1,iY={getAdapter:t=>{t=me.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let a=0;a<e;a++){r=t[a];let f;if(n=r,!uge(r)&&(n=eR[(f=String(r)).toLowerCase()],n===void 0))throw new gt(`Unknown adapter '${f}'`);if(n)break;o[f||"#"+a]=n}if(!n){const a=Object.entries(o).map(([p,m])=>`adapter ${p} `+(m===!1?"is not supported by the environment":"is not available in the build"));let f=e?a.length>1?`since :
`+a.map(X8).join(`
`):" "+X8(a[0]):"as no adapter specified";throw new gt("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return n},adapters:eR};function BO(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new vh(null,t)}function G8(t){return BO(t),t.headers=Ao.from(t.headers),t.data=DO.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),iY.getAdapter(t.adapter||cb.adapter)(t).then(function(n){return BO(t),n.data=DO.call(t,t.transformResponse,n),n.headers=Ao.from(n.headers),n},function(n){return Qq(n)||(BO(t),n&&n.response&&(n.response.data=DO.call(t,t.transformResponse,n.response),n.response.headers=Ao.from(n.response.headers))),Promise.reject(n)})}const aY="1.11.0",k1={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{k1[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const $8={};k1.transitional=function(e,r,n){function o(a,f){return"[Axios v"+aY+"] Transitional option '"+a+"'"+f+(n?". "+n:"")}return(a,f,p)=>{if(e===!1)throw new gt(o(f," has been removed"+(r?" in "+r:"")),gt.ERR_DEPRECATED);return r&&!$8[f]&&($8[f]=!0,console.warn(o(f," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,f,p):!0}};k1.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function dge(t,e,r){if(typeof t!="object")throw new gt("options must be an object",gt.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const a=n[o],f=e[a];if(f){const p=t[a],m=p===void 0||f(p,a,t);if(m!==!0)throw new gt("option "+a+" must be "+m,gt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new gt("Unknown option "+a,gt.ERR_BAD_OPTION)}}const dx={assertOptions:dge,validators:k1},xa=dx.validators;let su=class{constructor(e){this.defaults=e||{},this.interceptors={request:new F8,response:new F8}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+a):n.stack=a}catch{}}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=vu(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&dx.assertOptions(n,{silentJSONParsing:xa.transitional(xa.boolean),forcedJSONParsing:xa.transitional(xa.boolean),clarifyTimeoutError:xa.transitional(xa.boolean)},!1),o!=null&&(me.isFunction(o)?r.paramsSerializer={serialize:o}:dx.assertOptions(o,{encode:xa.function,serialize:xa.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),dx.assertOptions(r,{baseUrl:xa.spelling("baseURL"),withXsrfToken:xa.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let f=a&&me.merge(a.common,a[r.method]);a&&me.forEach(["delete","get","head","post","put","patch","common"],O=>{delete a[O]}),r.headers=Ao.concat(f,a);const p=[];let m=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(r)===!1||(m=m&&C.synchronous,p.unshift(C.fulfilled,C.rejected))});const v=[];this.interceptors.response.forEach(function(C){v.push(C.fulfilled,C.rejected)});let y,x=0,k;if(!m){const O=[G8.bind(this),void 0];for(O.unshift(...p),O.push(...v),k=O.length,y=Promise.resolve(r);x<k;)y=y.then(O[x++],O[x++]);return y}k=p.length;let S=r;for(x=0;x<k;){const O=p[x++],C=p[x++];try{S=O(S)}catch(R){C.call(this,R);break}}try{y=G8.call(this,S)}catch(O){return Promise.reject(O)}for(x=0,k=v.length;x<k;)y=y.then(v[x++],v[x++]);return y}getUri(e){e=vu(this.defaults,e);const r=tY(e.baseURL,e.url,e.allowAbsoluteUrls);return Zq(r,e.params,e.paramsSerializer)}};me.forEach(["delete","get","head","options"],function(e){su.prototype[e]=function(r,n){return this.request(vu(n||{},{method:e,url:r,data:(n||{}).data}))}});me.forEach(["post","put","patch"],function(e){function r(n){return function(a,f,p){return this.request(vu(p||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:f}))}}su.prototype[e]=r(),su.prototype[e+"Form"]=r(!0)});let fge=class sY{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const f=new Promise(p=>{n.subscribe(p),a=p}).then(o);return f.cancel=function(){n.unsubscribe(a)},f},e(function(a,f,p){n.reason||(n.reason=new vh(a,f,p),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new sY(function(o){e=o}),cancel:e}}};function hge(t){return function(r){return t.apply(null,r)}}function pge(t){return me.isObject(t)&&t.isAxiosError===!0}const tR={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(tR).forEach(([t,e])=>{tR[e]=t});function lY(t){const e=new su(t),r=Dq(su.prototype.request,e);return me.extend(r,su.prototype,e,{allOwnKeys:!0}),me.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return lY(vu(t,o))},r}const jr=lY(cb);jr.Axios=su;jr.CanceledError=vh;jr.CancelToken=fge;jr.isCancel=Qq;jr.VERSION=aY;jr.toFormData=w1;jr.AxiosError=gt;jr.Cancel=jr.CanceledError;jr.all=function(e){return Promise.all(e)};jr.spread=hge;jr.isAxiosError=pge;jr.mergeConfig=vu;jr.AxiosHeaders=Ao;jr.formToJSON=t=>Jq(me.isHTMLForm(t)?new FormData(t):t);jr.getAdapter=iY.getAdapter;jr.HttpStatusCode=tR;jr.default=jr;const{Axios:yje,AxiosError:xje,CanceledError:wje,isCancel:_je,CancelToken:kje,VERSION:jje,all:Sje,Cancel:Cje,isAxiosError:Aje,spread:Oje,toFormData:Eje,AxiosHeaders:Tje,HttpStatusCode:Rje,formToJSON:Pje,getAdapter:zje,mergeConfig:Mje}=jr;class ym extends Error{}ym.prototype.name="InvalidTokenError";function gge(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function mge(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return gge(e)}catch{return atob(e)}}function vge(t,e){if(typeof t!="string")throw new ym("Invalid token specified: must be a string");e||(e={});const r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new ym(`Invalid token specified: missing part #${r+1}`);let o;try{o=mge(n)}catch(a){throw new ym(`Invalid token specified: invalid base64 for part #${r+1} (${a.message})`)}try{return JSON.parse(o)}catch(a){throw new ym(`Invalid token specified: invalid json for part #${r+1} (${a.message})`)}}function bge(t){if(!t)return!0;try{const e=cY(t);if(!(e!=null&&e.exp))return!0;const r=Date.now()/1e3;return e.exp<r}catch(e){return console.error("Error checking token expiration:",e),!0}}function cY(t){try{return vge(t)}catch(e){return console.error("Error decoding token:",e),null}}var yge={VITE_API_URL:"/api",VITE_PRODUCT_TYPE:"client",BASE_URL:"/admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const xi=Object.assign(jr.create({baseURL:xt.BASE_URL,headers:{"Content-Type":"application/json"},withCredentials:!0,timeout:xt.TIMEOUT}),{setAuthHeader:t=>{xi.defaults.headers.common.Authorization=`Bearer ${t}`},clearAuthHeader:()=>{delete xi.defaults.headers.common.Authorization}});xi.interceptors.request.use(t=>{var n;const e=localStorage.getItem("auth-storage"),r=e?(n=JSON.parse(e).state)==null?void 0:n.tokens:null;return r!=null&&r.accessToken&&(t.headers.Authorization=`Bearer ${r.accessToken}`),t},t=>Promise.reject(t));xi.interceptors.response.use(t=>t,async t=>{var r,n;const e=t.config;if(((r=t.response)==null?void 0:r.status)===401&&!e._retry){e._retry=!0;try{const o=localStorage.getItem("auth-storage"),a=o?(n=JSON.parse(o).state)==null?void 0:n.tokens:null;if(a!=null&&a.refreshToken){const f=await jr.post(`${yge.VITE_API_BASE_URL||"/api"}/auth/refresh`,{refreshToken:a.refreshToken}),{accessToken:p,refreshToken:m}=f.data;if(o){const v=JSON.parse(o);v.state.tokens={accessToken:p,refreshToken:m},localStorage.setItem("auth-storage",JSON.stringify(v))}return e.headers.Authorization=`Bearer ${p}`,xi(e)}}catch(o){return localStorage.removeItem("auth-storage"),window.location.href="/login",Promise.reject(o)}}return Promise.reject(t)});const xge="auth-storage",wge=5*60*1e3,Z8={admin:null,token:null,isAuthenticated:!1,isLoading:!1,error:null},j1=v1()(Nq((t,e)=>({...Z8,login:async r=>{var n,o;t({isLoading:!0,error:null});try{const a=await xi.post("/admin/login",r),{data:f}=a.data;t({admin:f,token:f.token,isAuthenticated:!0,isLoading:!1}),xi.setAuthHeader(f.token),FO(f.token)}catch(a){const f=((o=(n=a.response)==null?void 0:n.data)==null?void 0:o.message)||"Login failed";throw t({error:f,isLoading:!1,isAuthenticated:!1,admin:null,token:null}),new Error(f)}},logout:()=>{e().clearAuth(),xi.clearAuthHeader(),window.tokenRefreshTimeout&&clearTimeout(window.tokenRefreshTimeout)},updateUser:r=>{t(n=>({admin:{...n.admin,...r}}))},resetError:()=>t({error:null}),setTokens:r=>{if(!r){e().clearAuth();return}t({}),xi.setAuthHeader(r),!e().admin&&r&&e().fetchUserProfile(),FO(r)},clearAuth:()=>{t(Z8)},fetchUserProfile:async()=>{try{const r=await xi.put("/admin/");t({admin:r.data})}catch(r){throw console.error("Failed to fetch user profile:",r),r}}}),{name:xge,storage:H3(()=>localStorage),partialize:t=>({tokens:t.token,admin:t.admin}),onRehydrateStorage:()=>t=>{if(!t)return;const{token:e}=t;e&&(xi.setAuthHeader(e),bge(tokens)?e?t.refreshToken().catch(()=>{t.clearAuth()}):t.clearAuth():(FO(e),t.fetchUserProfile().catch(console.error)))}}));function FO(t){if(!(t!=null&&t.accessToken))return;window.tokenRefreshTimeout&&clearTimeout(window.tokenRefreshTimeout);const e=cY(t.accessToken);if(!(e!=null&&e.exp))return;const r=e.exp*1e3-Date.now();if(r<=0)return;const n=Math.max(r-wge,0);window.tokenRefreshTimeout=setTimeout(()=>{j1.getState().refreshToken().catch(console.error)},n)}const _ge=()=>{const{token:t}=j1.getState();t&&xi.setAuthHeader(t)};_ge();const kge=t=>{const e=jr.create({baseURL:t,headers:{"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},withCredentials:!0});return e.interceptors.request.use(async r=>{var o;const n=localStorage.getItem(xt.AUTH.TOKEN_KEY);return n&&(r.headers.Authorization=`Bearer ${n}`),((o=r.method)==null?void 0:o.toLowerCase())==="get"&&(r.params={...r.params}),r},r=>Promise.reject(r)),e.interceptors.response.use(r=>r,async r=>{var o;const n=r.config;if(((o=r.response)==null?void 0:o.status)===401&&!n._retry){n._retry=!0;try{const a=await jge();return n.headers&&(n.headers.Authorization=`Bearer ${a}`),e(n)}catch(a){return j1.getState().logout(),Promise.reject(a)}}return Promise.reject($T(r))}),e};let HO=!1,rR=[];const UO=(t,e=null)=>{rR.forEach(r=>{t?r.reject(t):r.resolve(e)}),rR=[]},jge=async()=>{if(HO)return new Promise((e,r)=>{rR.push({resolve:e,reject:r})});HO=!0;const t=localStorage.getItem(xt.AUTH.REFRESH_TOKEN_KEY);if(!t){const e=new Error("No refresh token available");throw UO(e,null),e}try{const e=await jr.post(`${xt.BASE_URL}${xt.ENDPOINTS.AUTH.REFRESH}`,{refreshToken:t}),{accessToken:r,refreshToken:n}=e.data;return localStorage.setItem(xt.AUTH.TOKEN_KEY,r),n&&localStorage.setItem(xt.AUTH.REFRESH_TOKEN_KEY,n),UO(null,r),r}catch(e){throw UO(e,null),e}finally{HO=!1}},Ic=kge(xt.BASE_URL),Sge={get:(t,e)=>Ic.get(t,e),post:(t,e,r)=>Ic.post(t,e,r),put:(t,e,r)=>Ic.put(t,e,r),patch:(t,e,r)=>Ic.patch(t,e,r),delete:(t,e)=>Ic.delete(t,e),request:t=>Ic.request(t)};class Ri{constructor(e){il(this,"baseUrl");il(this,"http");il(this,"apiClient");this.baseUrl=e,this.http=Sge,this.apiClient=Ic}async request(e){try{return(await this.apiClient.request({...e,url:this.getFullUrl(e.url||"")})).data}catch(r){return Promise.reject($T(r))}}async get(e,r){return this.request({...r,method:"get",url:e})}async post(e,r,n){return this.request({...n,method:"post",url:e,data:r})}async put(e,r,n){return this.request({...n,method:"put",url:e,data:r})}async patch(e,r,n){return this.request({...n,method:"patch",url:e,data:r})}async delete(e,r){return this.request({...r,method:"delete",url:e})}getFullUrl(e){const r=this.baseUrl.replace(/^\/+|\/+$/g,""),n=e.replace(/^\/+|\/+$/g,"");return r?`/${r}/${n}`:`/${n}`}createQueryParams(e){if(!e)return"";const r=new URLSearchParams;Object.entries(e).forEach(([o,a])=>{a!=null&&(Array.isArray(a)?a.forEach(f=>{r.append(o,String(f))}):a instanceof Date?r.append(o,a.toISOString()):typeof a=="object"?r.append(o,JSON.stringify(a)):r.append(o,String(a)))});const n=r.toString();return n?`?${n}`:""}getPaginationParams(e=1,r=xt.PAGINATION.DEFAULT_PAGE_SIZE){return{page:Math.max(1,e),pageSize:Math.min(Math.max(1,r),xt.PAGINATION.MAX_PAGE_SIZE)}}transformResponse(e){return e}transformError(e){throw $T(e)}}class Cge extends Ri{constructor(){super("config")}async getProjectConfig(){return this.get("/")}async updateConfig(e){if(e instanceof FormData)return this.put("/",e,{headers:{"Content-Type":"multipart/form-data"}});{const r=Object.entries(e).reduce((n,[o,a])=>(a!==void 0&&(n[o]=a),n),{});return this.put("/",r)}}}const K8=new Cge,Age=t=>({config:null,isLoading:!1,error:null,fetchConfig:async()=>{t({isLoading:!0,error:null});try{const e=await K8.getProjectConfig();if(console.log("Fetched project configuration:",e),!e.data)throw new Error("No configuration data found in response");t({config:e.data,isLoading:!1}),console.log("Project configuration loaded:",e.data)}catch(e){console.error("Failed to fetch config:",e),t({error:e instanceof Error?e.message:"Failed to load configuration",isLoading:!1}),Bm.error("Failed to load configuration")}},updateConfig:async(e,r)=>{try{t({isLoading:!0}),await K8.updateConfig(e,r),t(n=>({...n,config:n.config?{...n.config,[e]:r}:null,isLoading:!1})),Bm.success("Configuration updated successfully")}catch(n){throw console.error("Failed to update config:",n),t({error:n instanceof Error?n.message:"Failed to update configuration",isLoading:!1}),Bm.error("Failed to update configuration"),n}}}),ub=v1()(Ohe(Age,{name:"project-config-store"})),Oge=()=>{const t=ub.getState();t.config||t.fetchConfig()};typeof window<"u"&&Oge();const Ege=()=>{const t=au(r=>r.resolvedTheme),e=ub(r=>r.config);F.useEffect(()=>{if(!e)return;const r=document.querySelector("link[rel~='icon']")||document.createElement("link");r.rel="icon";const n=t==="dark"&&e.web_logo_dark||e.web_logo_light;n&&n!==r.href&&(r.href=n,document.head.contains(r)||document.head.appendChild(r)),e.app_name?document.title=e.app_name:document.title="My App"},[t,e])};class Tge extends Ri{constructor(){super("admin")}async login(e){try{const r=await this.post(xt.ENDPOINTS.AUTH.LOGIN,e);return this.setAuthTokens(r.data.token),r}catch(r){throw this.clearAuthTokens(),this.transformError(r)}}async register(e){try{const r=await this.post(xt.ENDPOINTS.AUTH.REGISTER,e);return this.setAuthTokens(r.tokens),r}catch(r){throw this.clearAuthTokens(),this.transformError(r)}}async logout(){try{const e=localStorage.getItem(xt.AUTH.REFRESH_TOKEN_KEY);e&&await this.post(xt.ENDPOINTS.AUTH.LOGOUT,{refreshToken:e})}catch(e){console.error("Logout error:",e)}finally{this.clearAuthTokens()}}async refreshToken(){const e=localStorage.getItem(xt.AUTH.REFRESH_TOKEN_KEY);if(!e)throw new Error("No refresh token available");try{const r=await this.post(xt.ENDPOINTS.AUTH.REFRESH,{refreshToken:e});return this.setAuthTokens(r),r}catch(r){throw this.clearAuthTokens(),this.transformError(r)}}async getCurrentUser(){return this.put(xt.ENDPOINTS.ADMIN.PROFILE)}async forgotPassword(e){return this.post(xt.ENDPOINTS.AUTH.FORGOT_PASSWORD,{email:e})}async resetPassword(e,r){return this.post(xt.ENDPOINTS.AUTH.RESET_PASSWORD,{token:e,password:r})}async verifyEmail(e){return this.post(xt.ENDPOINTS.AUTH.VERIFY_EMAIL,{token:e})}setAuthTokens(e){localStorage.setItem(xt.AUTH.TOKEN_KEY,e)}clearAuthTokens(){localStorage.removeItem(xt.AUTH.TOKEN_KEY),localStorage.removeItem(xt.AUTH.REFRESH_TOKEN_KEY)}isAuthenticated(){return!!localStorage.getItem(xt.AUTH.TOKEN_KEY)}}const VO=new Tge,fx=xt.AUTH.TOKEN_KEY,J8=xt.AUTH.REFRESH_TOKEN_KEY,qO=`${fx}_expiry`;class Rge{constructor(){il(this,"refreshPromise",null);il(this,"refreshSubscribers",[])}getAccessToken(){return localStorage.getItem(fx)}getRefreshToken(){return localStorage.getItem(J8)}getTokenExpiry(){const e=localStorage.getItem(qO);return e?parseInt(e,10):null}isTokenExpired(){const e=this.getTokenExpiry();return e?Date.now()>=e-1e4:!0}setTokens(e){const r=e.expiresIn||3600,n=Date.now()+r*1e3;localStorage.setItem(fx,e),localStorage.setItem(qO,n.toString())}clearTokens(){localStorage.removeItem(fx),localStorage.removeItem(J8),localStorage.removeItem(qO)}isAuthenticated(){return!!this.getAccessToken()&&!this.isTokenExpired()}async refreshAccessToken(){if(this.refreshPromise)return this.refreshPromise;if(!this.getRefreshToken())throw new Error("No refresh token available");try{return this.refreshPromise=new Promise(async(r,n)=>{try{const o=this.getAccessToken();r(o)}catch(o){this.clearTokens(),n(o)}finally{this.refreshPromise=null}}),await this.refreshPromise}catch(r){throw this.refreshPromise=null,r}}subscribeToRefresh(e){return this.refreshSubscribers.push(e),()=>{this.refreshSubscribers=this.refreshSubscribers.filter(r=>r!==e)}}}const Fd=new Rge,uY=F.createContext(void 0),Pge=({children:t})=>{const[e,r]=F.useState(!1),n=B7(),o=Va(),a=F.useCallback(async()=>{try{await VO.logout()}catch(S){console.error("Logout error:",S)}finally{Fd.clearTokens(),n.clear(),o("/login")}},[o,n]),{data:f,isLoading:p,refetch:m}=qne({queryKey:["currentUser"],queryFn:async()=>{if(!Fd.isAuthenticated())return null;try{return await VO.getCurrentUser()}catch(S){return console.error("Failed to fetch user:",S),await a(),null}},enabled:Fd.isAuthenticated(),staleTime:5*60*1e3,retry:1}),v=(f==null?void 0:f.data)??null,y=F.useCallback(async()=>{try{await n.invalidateQueries({queryKey:["currentUser"]})}catch(S){console.error("Failed to refresh user:",S)}},[n]);F.useEffect(()=>{(async()=>{try{Fd.isAuthenticated()&&await m()}finally{r(!0)}})();const O=Fd.subscribeToRefresh(C=>{console.log("Token refreshed:",C),m()});return()=>{O()}},[m]);const x=async S=>{try{const{data:O}=await VO.login(S);Fd.setTokens(O.token),await n.invalidateQueries({queryKey:["currentUser"]}),Bm.success(`Welcome back, ${O.full_name}`),o("/dashboard")}catch(O){throw Bm.error(O.message||"Login failed"),O}};if(!e)return null;const k={user:v,isAuthenticated:!!v,isLoading:p,login:x,logout:a,refreshUser:y};return A.jsx(uY.Provider,{value:k,children:t})},bh=()=>{const t=F.useContext(uY);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t};function zge({children:t,redirectTo:e="/login",requireAuth:r=!0}){const{isAuthenticated:n,isLoading:o}=bh(),a=$o();return o?A.jsx(bhe,{visible:!0}):r&&!n?A.jsx(qT,{to:e,state:{from:a},replace:!0}):!r&&n?A.jsx(qT,{to:"/",replace:!0}):A.jsx(A.Fragment,{children:t})}function YO(t){return P3({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10.27 12h3.46a1.5 1.5 0 0 0 1.48-1.75l-.3-1.79a2.951 2.951 0 0 0-5.82.01l-.3 1.79c-.15.91.55 1.74 1.48 1.74zm.79-3.21c.08-.46.47-.79.94-.79s.86.33.94.79l.2 1.21h-2.28l.2-1.21zM1.66 11.11c-.13.26-.18.57-.1.88.16.69.76 1.03 1.53 1h1.95c.83 0 1.51-.58 1.51-1.29 0-.14-.03-.27-.07-.4-.01-.03-.01-.05.01-.08.09-.16.14-.34.14-.53 0-.31-.14-.6-.36-.82-.03-.03-.03-.06-.02-.1.07-.2.07-.43.01-.65a1.12 1.12 0 0 0-.99-.74.09.09 0 0 1-.07-.03C5.03 8.14 4.72 8 4.37 8c-.3 0-.57.1-.75.26-.03.03-.06.03-.09.02a1.24 1.24 0 0 0-1.7 1.03c0 .02-.01.04-.03.06-.29.26-.46.65-.41 1.05.03.22.12.43.25.6.03.02.03.06.02.09zM16.24 13.65c-1.17-.52-2.61-.9-4.24-.9-1.63 0-3.07.39-4.24.9A2.988 2.988 0 0 0 6 16.39V18h12v-1.61c0-1.18-.68-2.26-1.76-2.74zM8.07 16a.96.96 0 0 1 .49-.52c1.1-.49 2.26-.73 3.43-.73 1.18 0 2.33.25 3.43.73.23.1.4.29.49.52H8.07zM1.22 14.58A2.01 2.01 0 0 0 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58zM22.78 14.58A6.95 6.95 0 0 0 20 14c-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24v-1.57c0-.81-.48-1.53-1.22-1.85zM22 11v-.5c0-1.1-.9-2-2-2h-2c-.42 0-.65.48-.39.81l.7.63c-.19.31-.31.67-.31 1.06 0 1.1.9 2 2 2s2-.9 2-2z"},child:[]}]})(t)}class Mge extends Ri{constructor(){super("avatar")}async uploadAvatar(e){const r=new FormData;return r.append("name",e.name),r.append("avatar_gender",e.avatar_gender),r.append("pictureType",e.pictureType),r.append("files",e.files),this.post("/add-avatar",r,{headers:{"Content-Type":"multipart/form-data"}})}async getAvatarList(){return this.get("/get-all-avatars")}async updateAvatar(e){const r=new FormData;return r.append("name",e.name),r.append("avatar_gender",e.avatar_gender),r.append("pictureType",e.pictureType),r.append("avatar_id",e.avatar_id.toString()),e.files&&r.append("files",e.files),this.post("/update-avatar",r,{headers:{"Content-Type":"multipart/form-data"}})}async deleteAvatar(e){const r=new FormData;return r.append("avatar_id",e.toString()),this.post("/delete-avatar",r,{headers:{"Content-Type":"multipart/form-data"}})}}const yw=new Mge,dY=F.createContext(void 0);function Ige({children:t}){const[e,r]=F.useState({Component:null}),[n,o]=F.useState(!1),a=F.useCallback(()=>{o(!1),setTimeout(()=>r({Component:null}),200)},[]),f=F.useCallback(({component:k,props:S,title:O,size:C})=>{r({Component:k,...S!==void 0?{props:S}:{},...O!==void 0?{title:O}:{},...C!==void 0?{size:C}:{}}),o(!0)},[]),p=F.useMemo(()=>({open:f,close:a}),[f,a]),{Component:m,props:v,title:y,size:x}=e;return A.jsxs(dY.Provider,{value:p,children:[t,A.jsx(La,{isOpen:n,onClose:a,...y!==void 0?{title:y}:{},...x!==void 0?{size:x}:{},children:m?A.jsx(m,{...v}):null})]})}function db(){const t=F.useContext(dY);if(!t)throw new Error("useModal must be used within ModalProvider");return t}function lo(){const{toast:t}=Ro();return{checkDemo:()=>!1}}function fY({avatar:t,mode:e="create",onUpdate:r}){const{close:n}=db(),{toast:o}=Ro(),[a,f]=F.useState(!1),[p,m]=F.useState(null),{checkDemo:v}=lo(),y=dh({defaultValues:{name:(t==null?void 0:t.name)||"",avatar_gender:(t==null?void 0:t.avatar_gender)||"male",pictureType:"avatar",files:null},mode:"onChange"});F.useEffect(()=>{t&&e==="edit"&&(y.setValue("name",t.name),y.setValue("avatar_gender",t.avatar_gender))},[t,e,y]);const x=async S=>{var O;if(!v()){if(e==="create"&&(!S.files||S.files.length===0)){o({title:"Error",description:"Please select a file to upload",variant:"error"});return}f(!0);try{let C;if(e==="edit"&&t){const R={avatar_id:t.avatar_id,name:S.name,avatar_gender:S.avatar_gender,pictureType:S.pictureType,files:(O=S.files)==null?void 0:O[0]};C=await yw.updateAvatar(R)}else{const R={name:S.name,avatar_gender:S.avatar_gender,pictureType:S.pictureType,files:S.files[0]};console.log("upload_Params",R),C=await yw.uploadAvatar(R)}if(C.status)if(o({title:"Success!",description:`Avatar ${e==="edit"?"updated":"uploaded"} successfully!`,variant:"success"}),e==="edit"&&t&&r){const R={...t,name:S.name,avatar_gender:S.avatar_gender,updatedAt:new Date().toISOString()};r(R)}else y.reset(),m(null),n();else throw new Error(C.message||`Failed to ${e==="edit"?"update":"upload"} avatar`)}catch{o({title:"Error",description:`Failed to ${e==="edit"?"update":"upload"} avatar. Please try again.`,variant:"error"})}finally{f(!1)}}},k=S=>{const O=S.target.files;if(O&&O.length>0){const C=O[0];m(C||null),y.setValue("files",O)}else m(null),y.setValue("files",null)};return A.jsx("div",{className:"space-y-4 sm:space-y-6 px-3 sm:px-4",children:A.jsxs(fh,{form:y,onSubmit:x,className:"space-y-4 sm:space-y-6",children:[A.jsxs(ko,{children:[A.jsx(Ci,{required:!0,children:"Avatar"}),A.jsx(jo,{children:A.jsxs("div",{className:"flex flex-col items-center",children:[A.jsxs("div",{className:"relative",children:[A.jsx("div",{className:"w-24 h-24 rounded-full border-2 border-gray-200 flex items-center justify-center bg-gray-100 overflow-hidden",children:p?A.jsx("img",{src:URL.createObjectURL(p),alt:"Avatar Preview",className:"w-full h-full object-cover"}):t!=null&&t.avatar_media?A.jsx("img",{src:t.avatar_media,alt:t.name,className:"w-full h-full object-cover"}):A.jsx("span",{className:"text-gray-400 text-4xl",children:"👤"})}),A.jsxs("label",{htmlFor:"avatar-upload",className:"absolute bottom-1 right-1 bg-secondary p-1 rounded-full cursor-pointer ",children:[A.jsx(kie,{className:"w-4 h-4 text-text"}),A.jsx("input",{id:"avatar-upload",type:"file",accept:"image/*",onChange:k,className:"hidden",disabled:a})]})]}),A.jsx("p",{className:"mt-2 text-sm text-text-muted",children:e==="edit"?"Change Avatar":"Add Avatar"})]})}),A.jsx(So,{})]}),A.jsxs(ko,{children:[A.jsx(Ci,{required:!0,children:"Avatar Name"}),A.jsx(jo,{children:A.jsx(Yo,{name:"name",children:A.jsx("input",{placeholder:"Enter Avatar Name",disabled:a,onChange:S=>y.setValue("name",S.target.value),className:"flex h-10 sm:h-10 w-full sm:w-[30vw] max-w-full rounded-md border border-gray-300 px-3 py-2 mt-2 text-sm text-text-muted focus:border-blue-500 focus:ring-2 focus:ring-blue-200 outline-none"})})}),A.jsx(So,{})]}),A.jsxs(ko,{children:[A.jsx(Ci,{required:!0,children:"Gender"}),A.jsx(jo,{children:A.jsx(Yo,{name:"avatar_gender",children:A.jsx("div",{className:"flex flex-col sm:flex-row gap-4 sm:gap-6 mt-2 text-text-muted",children:["male","female"].map(S=>A.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-sm sm:text-base",children:[A.jsx("input",{type:"radio",value:S,checked:y.watch("avatar_gender")===S,onChange:()=>y.setValue("avatar_gender",S),className:"w-4 h-4"}),S.charAt(0).toUpperCase()+S.slice(1)]},S))})})}),A.jsx(So,{})]}),A.jsx("div",{className:"flex justify-center pt-2 sm:pt-2",children:A.jsx(Pt,{type:"submit",disabled:a||e==="create"&&!p,className:"w-32 sm:w-40 bg-primary text-button-text  font-semibold py-2 text-sm sm:text-base rounded-md transition-colors duration-200",children:a?e==="edit"?"Updating...":"Uploading...":"Submit"})})]})})}const yt={LOGIN:"/login",REGISTER:"/register",FORGOT_PASSWORD:"/forgot-password",RESET_PASSWORD:"/reset-password",VERIFY_EMAIL:"/verify-email",SETTINGS:"/settings",CMS:"/cms-pages",HOME:"/",ABOUT:"/about",PRIVACY:"/privacy",TERMS:"/terms",DASHBOARD:"/dashboard",PROFILE:"/profile",USERS:{LIST:"/users/user-list",COUNTRY_WISE:"/users/countrywise-user-list",BLOCKED_USERS:"/users/block-list"},GROUP:{LIST:"/groups/group-list"},CALLS:{AUDIO_CALL_LIST:"/calls/audio-call-list",VIDEO_CALL_LIST:"/calls/video-call-list"},NOTIFICATIONS:{LIST:"/notifications/notification-list"},AVATARS:{LIST:"/avatar/avatar-list"},REPORTS:{USERS:"/reports-list/users",REPORTTYPES:"/reports-list/report-types",GROUPS:"/reports-list/groups"},ADMIN:{DASHBOARD:"/admin",USERS:"/admin/users",ROLES:"/admin/roles",SETTINGS:"/admin/settings"},LANGUAGE:{LIST:"/language/language-list",TRANSLATED_WORD_LIST:"/language/translated-words/:id"},NOT_FOUND:"/404",UNAUTHORIZED:"/unauthorized",ERROR:"/error"},nR={[yt.LOGIN]:{title:"Login",layout:"auth",isPublic:!0,hideFromMenu:!0},[yt.REGISTER]:{title:"Create an Account",layout:"auth",isPublic:!0,hideFromMenu:!0},[yt.FORGOT_PASSWORD]:{title:"Reset Password",layout:"auth",isPublic:!0,hideFromMenu:!0},[yt.RESET_PASSWORD]:{title:"Set New Password",layout:"auth",isPublic:!0,hideFromMenu:!0},[yt.VERIFY_EMAIL]:{title:"Verify Email",layout:"auth",isPublic:!0,hideFromMenu:!0},[yt.HOME]:{title:"Home",layout:"public",isPublic:!0},[yt.ABOUT]:{title:"About Us",layout:"public",isPublic:!0},[yt.PRIVACY]:{title:"Privacy Policy",layout:"public",isPublic:!0},[yt.TERMS]:{title:"Terms of Service",layout:"public",isPublic:!0},[yt.DASHBOARD]:{title:"Dashboard",layout:"dashboard",icon:"grid"},[yt.PROFILE]:{title:"My Profile",layout:"dashboard",icon:"user"},[yt.SETTINGS]:{title:"Settings",layout:"dashboard",icon:"settings"},[yt.ADMIN.DASHBOARD]:{title:"Admin Dashboard",layout:"dashboard",roles:["admin","superadmin"],icon:"shield"},[yt.ADMIN.USERS]:{title:"User Management",layout:"dashboard",roles:["admin","superadmin"],permissions:["manage_users"],icon:"users"},[yt.ADMIN.ROLES]:{title:"Role Management",layout:"dashboard",roles:["superadmin"],permissions:["manage_roles"],icon:"key"},[yt.ADMIN.SETTINGS]:{title:"System Settings",layout:"dashboard",roles:["superadmin"],permissions:["manage_settings"],icon:"settings"},[yt.NOT_FOUND]:{title:"Page Not Found",layout:"public",isPublic:!0,hideFromMenu:!0},[yt.UNAUTHORIZED]:{title:"Unauthorized",layout:"public",isPublic:!0,hideFromMenu:!0},[yt.ERROR]:{title:"Error",layout:"public",isPublic:!0,hideFromMenu:!0}},Lge=t=>{if(t.startsWith("/admin/")){const r=`ADMIN.${t.replace(/^\/admin/,"").replace(/^\//,"").toUpperCase()}`;if(r in yt.ADMIN){const n=yt.ADMIN[r];return nR[n]}}return nR[t]},Nge=t=>{const e=Lge(t);return(e==null?void 0:e.title)||"Page Not Found"};class Dge extends Ri{constructor(){super("admin")}async sendNotification(e){const r=new FormData;return r.append("title",e.title),r.append("message",e.message),this.post("/notification",r,{headers:{"Content-Type":"multipart/form-data"}})}async notificationList(){return this.post("list-broadcast-notification")}}const hY=new Dge;function Bge(){const{close:t}=db(),{toast:e}=Ro(),[r,n]=F.useState(!1),{checkDemo:o}=lo(),a=dh({defaultValues:{title:"",message:""},mode:"onChange"}),f=async p=>{n(!0);try{if(o())return;const m={title:p.title,message:p.message},v=await hY.sendNotification(m);if(v.status)e({title:"Success!",description:"Notification sent successfully!",variant:"success"}),a.reset(),t();else throw new Error(v.message||"Failed to send notification")}catch(m){console.error("Error in sending notification",m),e({title:"Error",description:"Failed to send notification. Please try again.",variant:"error"})}finally{n(!1)}};return A.jsx("div",{className:"px-4",children:A.jsxs(fh,{form:a,onSubmit:f,className:"space-y-6",children:[A.jsxs(ko,{children:[A.jsx(Ci,{required:!0,children:"Title"}),A.jsx(jo,{children:A.jsx(Yo,{name:"title",children:A.jsx("input",{placeholder:"Enter Notification Title",disabled:r,className:"flex h-10 w-full md:w-[60vw] lg:w-[30vw] rounded-md border border-gray-300 px-3 py-2 text-sm text-text-muted focus:border-blue-500 focus:ring-2 focus:ring-blue-200 outline-none"})})}),A.jsx(So,{})]}),A.jsxs(ko,{children:[A.jsx(Ci,{required:!0,children:"Message"}),A.jsx(jo,{children:A.jsx(Yo,{name:"message",children:A.jsx("textarea",{placeholder:"Enter Notification Message",disabled:r,rows:4,className:"flex w-full md:w-[60vw] lg:w-[30vw] rounded-md border border-gray-300 px-3 py-2 text-sm text-text-muted resize-none focus:border-blue-500 focus:ring-2 focus:ring-blue-200 outline-none"})})}),A.jsx(So,{})]}),A.jsx("div",{className:"flex justify-center pt-4",children:A.jsx(Pt,{type:"submit",disabled:r,className:"w-40 bg-primary text-button-text  font-semibold py-2 rounded-md transition-colors duration-200",children:r?"Sending...":"Send"})})]})})}class Fge extends Ri{constructor(){super("report")}async getReportedEntities(e={}){const{page:r=1,limit:n=10,type:o="user"}=e;return this.post("/reported-entities",{page:r,limit:n,type:o})}async addReportType(e={}){return this.post("/add-reports",e)}async getReportTypes(e={}){const{page:r=1,limit:n=10}=e;return this.post("/reported-entities",{page:r,limit:n})}async getReportTypesList(){return this.post("/report-types",{})}async deleteReportType({id:e,shouldDelete:r}){return this.post("/delete-report-type",{report_type_id:e,delete:r})}async getReportDetails(e,r){return this.post("/report-details",{id:e,type:r})}}const bu=new Fge;function Hge({mode:t="create"}){const{close:e}=db(),{toast:r}=Ro(),[n,o]=F.useState(!1),{checkDemo:a}=lo(),f=dh({defaultValues:{report_for:"user",report_text:""},mode:"onChange"}),p=f.watch("report_text"),m=!(p!=null&&p.trim());F.useEffect(()=>{t==="edit"&&(f.setValue("report_for",f.getValues("report_for")),f.setValue("report_text",f.getValues("report_text")))},[t,f]);const v=async y=>{o(!0);try{if(a())return;let x;const k={report_for:y.report_for,report_text:y.report_text};if(x=await bu.addReportType(k),x.status)r({title:"Success!",description:"Report Type added successfully!",variant:"success"}),f.reset(),e();else throw new Error(x.message||`Failed to ${t==="edit"?"update":"upload"} avatar`)}catch{r({title:"Error",description:`Failed to ${t==="edit"?"update":"upload"} avatar. Please try again.`,variant:"error"})}finally{o(!1)}};return A.jsx("div",{className:"space-y-4 sm:space-y-6 px-3 sm:px-4",children:A.jsxs(fh,{form:f,onSubmit:v,className:"space-y-4 sm:space-y-6",children:[A.jsxs(ko,{children:[A.jsx(Ci,{required:!0,children:"Report Text"}),A.jsx(jo,{children:A.jsx(Yo,{name:"report_text",children:A.jsx("input",{placeholder:"Enter Report Text",disabled:n,onChange:y=>f.setValue("report_text",y.target.value),className:"flex h-10 sm:h-10 w-full sm:w-[30vw] max-w-full rounded-md border border-table-divider px-3 py-2 mt-2 text-sm text-text-muted focus:border-blue-500 focus:ring-2 focus:ring-blue-200 outline-none"})})}),A.jsx(So,{})]}),A.jsxs(ko,{children:[A.jsx(Ci,{required:!0,children:"Report For"}),A.jsx(jo,{children:A.jsx(Yo,{name:"report_for",children:A.jsx("div",{className:"flex flex-col sm:flex-row gap-4 sm:gap-6 mt-2 text-text-muted",children:["user","group"].map(y=>A.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-sm sm:text-base",children:[A.jsx("input",{type:"radio",value:y,checked:f.watch("report_for")===y,onChange:()=>f.setValue("report_for",y),className:"w-4 h-4"}),y.charAt(0).toUpperCase()+y.slice(1)]},y))})})}),A.jsx(So,{})]}),A.jsx("div",{className:"flex justify-center pt-2 sm:pt-2",children:A.jsx(Pt,{type:"submit",disabled:m||n,className:"w-32 sm:w-40 bg-primary  text-button-text  font-semibold py-2 text-sm sm:text-base rounded-md transition-colors duration-200",children:n?t==="edit"?"Updating...":"Uploading...":"Submit"})})]})})}class Uge extends Ri{constructor(){super("")}async getLanguageList(e={}){return new URLSearchParams({page:String(e.page??xt.PAGINATION.DEFAULT_PAGE),limit:String(e.limit??xt.PAGINATION.DEFAULT_PAGE_SIZE)}),this.post("/language/get-language",{page:String(e.page??xt.PAGINATION.DEFAULT_PAGE),limit:String(e.limit??xt.PAGINATION.DEFAULT_PAGE_SIZE)})}async editLanguage(e,r){return console.log(e,r),this.post("admin/update-language",{language_id:e,...r})}async getWordListWithTranslation(e){return console.log(e),this.post("language/get-language-words",{language_id:e})}async translateAWord(e,r,n){return this.post("admin/translate-single-keyword",{language_id:e,key_id:r,key:n})}async translateAllWord(e){return this.post("admin/translate-all-keywords",{language_id:e})}async updateAWord(e,r,n){return this.post("admin/manual-edit-keyword",{language_id:e,key_id:r,key:n})}async addLanguage(e){return this.post("/admin/add-language",e)}}const Zi=new Uge;function yu(t){"@babel/helpers - typeof";return yu=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},yu(t)}function Vge(t,e){if(yu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(yu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function pY(t){var e=Vge(t,"string");return yu(e)=="symbol"?e:e+""}function xm(t,e,r){return(e=pY(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Q8(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ot(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Q8(Object(r),!0).forEach(function(n){xm(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q8(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qge(t){if(Array.isArray(t))return t}function Yge(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,o,a,f,p=[],m=!0,v=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;m=!1}else for(;!(m=(n=a.call(r)).done)&&(p.push(n.value),p.length!==e);m=!0);}catch(y){v=!0,o=y}finally{try{if(!m&&r.return!=null&&(f=r.return(),Object(f)!==f))return}finally{if(v)throw o}}return p}}function oR(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function gY(t,e){if(t){if(typeof t=="string")return oR(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oR(t,e):void 0}}function Wge(){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 Es(t,e){return qge(t)||Yge(t,e)||gY(t,e)||Wge()}function Xge(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function Fs(t,e){if(t==null)return{};var r,n,o=Xge(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Gge=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function $ge(t){var e=t.defaultInputValue,r=e===void 0?"":e,n=t.defaultMenuIsOpen,o=n===void 0?!1:n,a=t.defaultValue,f=a===void 0?null:a,p=t.inputValue,m=t.menuIsOpen,v=t.onChange,y=t.onInputChange,x=t.onMenuClose,k=t.onMenuOpen,S=t.value,O=Fs(t,Gge),C=F.useState(p!==void 0?p:r),R=Es(C,2),E=R[0],P=R[1],M=F.useState(m!==void 0?m:o),I=Es(M,2),B=I[0],U=I[1],H=F.useState(S!==void 0?S:f),V=Es(H,2),W=V[0],G=V[1],Z=F.useCallback(function(te,ue){typeof v=="function"&&v(te,ue),G(te)},[v]),K=F.useCallback(function(te,ue){var pe;typeof y=="function"&&(pe=y(te,ue)),P(pe!==void 0?pe:te)},[y]),Q=F.useCallback(function(){typeof k=="function"&&k(),U(!0)},[k]),oe=F.useCallback(function(){typeof x=="function"&&x(),U(!1)},[x]),ie=p!==void 0?p:E,re=m!==void 0?m:B,ne=S!==void 0?S:W;return ot(ot({},O),{},{inputValue:ie,menuIsOpen:re,onChange:Z,onInputChange:K,onMenuClose:oe,onMenuOpen:Q,value:ne})}function at(){return at=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},at.apply(null,arguments)}function Zge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e9(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pY(n.key),n)}}function Kge(t,e,r){return e&&e9(t.prototype,e),r&&e9(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function iR(t,e){return iR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},iR(t,e)}function Jge(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&iR(t,e)}function xw(t){return xw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xw(t)}function mY(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mY=function(){return!!t})()}function Qge(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function eme(t,e){if(e&&(yu(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qge(t)}function tme(t){var e=mY();return function(){var r,n=xw(t);if(e){var o=xw(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return eme(this,r)}}function rme(t){if(Array.isArray(t))return oR(t)}function nme(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ome(){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 Y3(t){return rme(t)||nme(t)||gY(t)||ome()}function ime(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function ame(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var sme=function(){function t(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ame(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=ime(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t}(),Wn="-ms-",ww="-moz-",Ht="-webkit-",vY="comm",W3="rule",X3="decl",lme="@import",bY="@keyframes",cme="@layer",ume=Math.abs,S1=String.fromCharCode,dme=Object.assign;function fme(t,e){return On(t,0)^45?(((e<<2^On(t,0))<<2^On(t,1))<<2^On(t,2))<<2^On(t,3):0}function yY(t){return t.trim()}function hme(t,e){return(t=e.exec(t))?t[0]:t}function Ut(t,e,r){return t.replace(e,r)}function aR(t,e){return t.indexOf(e)}function On(t,e){return t.charCodeAt(e)|0}function dv(t,e,r){return t.slice(e,r)}function Sa(t){return t.length}function G3(t){return t.length}function P0(t,e){return e.push(t),t}function pme(t,e){return t.map(e).join("")}var C1=1,$f=1,xY=0,Eo=0,Jr=0,yh="";function A1(t,e,r,n,o,a,f){return{value:t,root:e,parent:r,type:n,props:o,children:a,line:C1,column:$f,length:f,return:""}}function cm(t,e){return dme(A1("",null,null,"",null,null,0),t,{length:-t.length},e)}function gme(){return Jr}function mme(){return Jr=Eo>0?On(yh,--Eo):0,$f--,Jr===10&&($f=1,C1--),Jr}function Wo(){return Jr=Eo<xY?On(yh,Eo++):0,$f++,Jr===10&&($f=1,C1++),Jr}function Da(){return On(yh,Eo)}function hx(){return Eo}function fb(t,e){return dv(yh,t,e)}function fv(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wY(t){return C1=$f=1,xY=Sa(yh=t),Eo=0,[]}function _Y(t){return yh="",t}function px(t){return yY(fb(Eo-1,sR(t===91?t+2:t===40?t+1:t)))}function vme(t){for(;(Jr=Da())&&Jr<33;)Wo();return fv(t)>2||fv(Jr)>3?"":" "}function bme(t,e){for(;--e&&Wo()&&!(Jr<48||Jr>102||Jr>57&&Jr<65||Jr>70&&Jr<97););return fb(t,hx()+(e<6&&Da()==32&&Wo()==32))}function sR(t){for(;Wo();)switch(Jr){case t:return Eo;case 34:case 39:t!==34&&t!==39&&sR(Jr);break;case 40:t===41&&sR(t);break;case 92:Wo();break}return Eo}function yme(t,e){for(;Wo()&&t+Jr!==57;)if(t+Jr===84&&Da()===47)break;return"/*"+fb(e,Eo-1)+"*"+S1(t===47?t:Wo())}function xme(t){for(;!fv(Da());)Wo();return fb(t,Eo)}function wme(t){return _Y(gx("",null,null,null,[""],t=wY(t),0,[0],t))}function gx(t,e,r,n,o,a,f,p,m){for(var v=0,y=0,x=f,k=0,S=0,O=0,C=1,R=1,E=1,P=0,M="",I=o,B=a,U=n,H=M;R;)switch(O=P,P=Wo()){case 40:if(O!=108&&On(H,x-1)==58){aR(H+=Ut(px(P),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:H+=px(P);break;case 9:case 10:case 13:case 32:H+=vme(O);break;case 92:H+=bme(hx()-1,7);continue;case 47:switch(Da()){case 42:case 47:P0(_me(yme(Wo(),hx()),e,r),m);break;default:H+="/"}break;case 123*C:p[v++]=Sa(H)*E;case 125*C:case 59:case 0:switch(P){case 0:case 125:R=0;case 59+y:E==-1&&(H=Ut(H,/\f/g,"")),S>0&&Sa(H)-x&&P0(S>32?r9(H+";",n,r,x-1):r9(Ut(H," ","")+";",n,r,x-2),m);break;case 59:H+=";";default:if(P0(U=t9(H,e,r,v,y,o,p,M,I=[],B=[],x),a),P===123)if(y===0)gx(H,e,U,U,I,a,x,p,B);else switch(k===99&&On(H,3)===110?100:k){case 100:case 108:case 109:case 115:gx(t,U,U,n&&P0(t9(t,U,U,0,0,o,p,M,o,I=[],x),B),o,B,x,p,n?I:B);break;default:gx(H,U,U,U,[""],B,0,p,B)}}v=y=S=0,C=E=1,M=H="",x=f;break;case 58:x=1+Sa(H),S=O;default:if(C<1){if(P==123)--C;else if(P==125&&C++==0&&mme()==125)continue}switch(H+=S1(P),P*C){case 38:E=y>0?1:(H+="\f",-1);break;case 44:p[v++]=(Sa(H)-1)*E,E=1;break;case 64:Da()===45&&(H+=px(Wo())),k=Da(),y=x=Sa(M=H+=xme(hx())),P++;break;case 45:O===45&&Sa(H)==2&&(C=0)}}return a}function t9(t,e,r,n,o,a,f,p,m,v,y){for(var x=o-1,k=o===0?a:[""],S=G3(k),O=0,C=0,R=0;O<n;++O)for(var E=0,P=dv(t,x+1,x=ume(C=f[O])),M=t;E<S;++E)(M=yY(C>0?k[E]+" "+P:Ut(P,/&\f/g,k[E])))&&(m[R++]=M);return A1(t,e,r,o===0?W3:p,m,v,y)}function _me(t,e,r){return A1(t,e,r,vY,S1(gme()),dv(t,2,-2),0)}function r9(t,e,r,n){return A1(t,e,r,X3,dv(t,0,n),dv(t,n+1,-1),n)}function xf(t,e){for(var r="",n=G3(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function kme(t,e,r,n){switch(t.type){case cme:if(t.children.length)break;case lme:case X3:return t.return=t.return||t.value;case vY:return"";case bY:return t.return=t.value+"{"+xf(t.children,n)+"}";case W3:t.value=t.props.join(",")}return Sa(r=xf(t.children,n))?t.return=t.value+"{"+r+"}":""}function jme(t){var e=G3(t);return function(r,n,o,a){for(var f="",p=0;p<e;p++)f+=t[p](r,n,o,a)||"";return f}}function Sme(t){return function(e){e.root||(e=e.return)&&t(e)}}function Cme(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var Ame=function(e,r,n){for(var o=0,a=0;o=a,a=Da(),o===38&&a===12&&(r[n]=1),!fv(a);)Wo();return fb(e,Eo)},Ome=function(e,r){var n=-1,o=44;do switch(fv(o)){case 0:o===38&&Da()===12&&(r[n]=1),e[n]+=Ame(Eo-1,r,n);break;case 2:e[n]+=px(o);break;case 4:if(o===44){e[++n]=Da()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=S1(o)}while(o=Wo());return e},Eme=function(e,r){return _Y(Ome(wY(e),r))},n9=new WeakMap,Tme=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!n9.get(n))&&!o){n9.set(e,!0);for(var a=[],f=Eme(r,a),p=n.props,m=0,v=0;m<f.length;m++)for(var y=0;y<p.length;y++,v++)e.props[v]=a[m]?f[m].replace(/&\f/g,p[y]):p[y]+" "+f[m]}}},Rme=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function kY(t,e){switch(fme(t,e)){case 5103:return Ht+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ht+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Ht+t+ww+t+Wn+t+t;case 6828:case 4268:return Ht+t+Wn+t+t;case 6165:return Ht+t+Wn+"flex-"+t+t;case 5187:return Ht+t+Ut(t,/(\w+).+(:[^]+)/,Ht+"box-$1$2"+Wn+"flex-$1$2")+t;case 5443:return Ht+t+Wn+"flex-item-"+Ut(t,/flex-|-self/,"")+t;case 4675:return Ht+t+Wn+"flex-line-pack"+Ut(t,/align-content|flex-|-self/,"")+t;case 5548:return Ht+t+Wn+Ut(t,"shrink","negative")+t;case 5292:return Ht+t+Wn+Ut(t,"basis","preferred-size")+t;case 6060:return Ht+"box-"+Ut(t,"-grow","")+Ht+t+Wn+Ut(t,"grow","positive")+t;case 4554:return Ht+Ut(t,/([^-])(transform)/g,"$1"+Ht+"$2")+t;case 6187:return Ut(Ut(Ut(t,/(zoom-|grab)/,Ht+"$1"),/(image-set)/,Ht+"$1"),t,"")+t;case 5495:case 3959:return Ut(t,/(image-set\([^]*)/,Ht+"$1$`$1");case 4968:return Ut(Ut(t,/(.+:)(flex-)?(.*)/,Ht+"box-pack:$3"+Wn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ht+t+t;case 4095:case 3583:case 4068:case 2532:return Ut(t,/(.+)-inline(.+)/,Ht+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Sa(t)-1-e>6)switch(On(t,e+1)){case 109:if(On(t,e+4)!==45)break;case 102:return Ut(t,/(.+:)(.+)-([^]+)/,"$1"+Ht+"$2-$3$1"+ww+(On(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~aR(t,"stretch")?kY(Ut(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(On(t,e+1)!==115)break;case 6444:switch(On(t,Sa(t)-3-(~aR(t,"!important")&&10))){case 107:return Ut(t,":",":"+Ht)+t;case 101:return Ut(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ht+(On(t,14)===45?"inline-":"")+"box$3$1"+Ht+"$2$3$1"+Wn+"$2box$3")+t}break;case 5936:switch(On(t,e+11)){case 114:return Ht+t+Wn+Ut(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ht+t+Wn+Ut(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ht+t+Wn+Ut(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ht+t+Wn+t+t}return t}var Pme=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case X3:e.return=kY(e.value,e.length);break;case bY:return xf([cm(e,{value:Ut(e.value,"@","@"+Ht)})],o);case W3:if(e.length)return pme(e.props,function(a){switch(hme(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xf([cm(e,{props:[Ut(a,/:(read-\w+)/,":"+ww+"$1")]})],o);case"::placeholder":return xf([cm(e,{props:[Ut(a,/:(plac\w+)/,":"+Ht+"input-$1")]}),cm(e,{props:[Ut(a,/:(plac\w+)/,":"+ww+"$1")]}),cm(e,{props:[Ut(a,/:(plac\w+)/,Wn+"input-$1")]})],o)}return""})}},zme=[Pme],Mme=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(C){var R=C.getAttribute("data-emotion");R.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var o=e.stylisPlugins||zme,a={},f,p=[];f=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(C){for(var R=C.getAttribute("data-emotion").split(" "),E=1;E<R.length;E++)a[R[E]]=!0;p.push(C)});var m,v=[Tme,Rme];{var y,x=[kme,Sme(function(C){y.insert(C)})],k=jme(v.concat(o,x)),S=function(R){return xf(wme(R),k)};m=function(R,E,P,M){y=P,S(R?R+"{"+E.styles+"}":E.styles),M&&(O.inserted[E.name]=!0)}}var O={key:r,sheet:new sme({key:r,container:f,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:m};return O.sheet.hydrate(p),O},jY={exports:{}},er={};/** @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 wn=typeof Symbol=="function"&&Symbol.for,$3=wn?Symbol.for("react.element"):60103,Z3=wn?Symbol.for("react.portal"):60106,O1=wn?Symbol.for("react.fragment"):60107,E1=wn?Symbol.for("react.strict_mode"):60108,T1=wn?Symbol.for("react.profiler"):60114,R1=wn?Symbol.for("react.provider"):60109,P1=wn?Symbol.for("react.context"):60110,K3=wn?Symbol.for("react.async_mode"):60111,z1=wn?Symbol.for("react.concurrent_mode"):60111,M1=wn?Symbol.for("react.forward_ref"):60112,I1=wn?Symbol.for("react.suspense"):60113,Ime=wn?Symbol.for("react.suspense_list"):60120,L1=wn?Symbol.for("react.memo"):60115,N1=wn?Symbol.for("react.lazy"):60116,Lme=wn?Symbol.for("react.block"):60121,Nme=wn?Symbol.for("react.fundamental"):60117,Dme=wn?Symbol.for("react.responder"):60118,Bme=wn?Symbol.for("react.scope"):60119;function Zo(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case $3:switch(t=t.type,t){case K3:case z1:case O1:case T1:case E1:case I1:return t;default:switch(t=t&&t.$$typeof,t){case P1:case M1:case N1:case L1:case R1:return t;default:return e}}case Z3:return e}}}function SY(t){return Zo(t)===z1}er.AsyncMode=K3;er.ConcurrentMode=z1;er.ContextConsumer=P1;er.ContextProvider=R1;er.Element=$3;er.ForwardRef=M1;er.Fragment=O1;er.Lazy=N1;er.Memo=L1;er.Portal=Z3;er.Profiler=T1;er.StrictMode=E1;er.Suspense=I1;er.isAsyncMode=function(t){return SY(t)||Zo(t)===K3};er.isConcurrentMode=SY;er.isContextConsumer=function(t){return Zo(t)===P1};er.isContextProvider=function(t){return Zo(t)===R1};er.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===$3};er.isForwardRef=function(t){return Zo(t)===M1};er.isFragment=function(t){return Zo(t)===O1};er.isLazy=function(t){return Zo(t)===N1};er.isMemo=function(t){return Zo(t)===L1};er.isPortal=function(t){return Zo(t)===Z3};er.isProfiler=function(t){return Zo(t)===T1};er.isStrictMode=function(t){return Zo(t)===E1};er.isSuspense=function(t){return Zo(t)===I1};er.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===O1||t===z1||t===T1||t===E1||t===I1||t===Ime||typeof t=="object"&&t!==null&&(t.$$typeof===N1||t.$$typeof===L1||t.$$typeof===R1||t.$$typeof===P1||t.$$typeof===M1||t.$$typeof===Nme||t.$$typeof===Dme||t.$$typeof===Bme||t.$$typeof===Lme)};er.typeOf=Zo;jY.exports=er;var Fme=jY.exports,CY=Fme,Hme={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ume={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},AY={};AY[CY.ForwardRef]=Hme;AY[CY.Memo]=Ume;var Vme=!0;function qme(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var OY=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||Vme===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},Yme=function(e,r,n){OY(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var a=r;do e.insert(r===a?"."+o:"",a,e.sheet,!0),a=a.next;while(a!==void 0)}};function Wme(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Xme={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Gme=/[A-Z]|^ms/g,$me=/_EMO_([^_]+?)_([^]*?)_EMO_/g,EY=function(e){return e.charCodeAt(1)===45},o9=function(e){return e!=null&&typeof e!="boolean"},WO=Cme(function(t){return EY(t)?t:t.replace(Gme,"-$&").toLowerCase()}),i9=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace($me,function(n,o,a){return Ca={name:o,styles:a,next:Ca},o})}return Xme[e]!==1&&!EY(e)&&typeof r=="number"&&r!==0?r+"px":r};function hv(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Ca={name:o.name,styles:o.styles,next:Ca},o.name;var a=r;if(a.styles!==void 0){var f=a.next;if(f!==void 0)for(;f!==void 0;)Ca={name:f.name,styles:f.styles,next:Ca},f=f.next;var p=a.styles+";";return p}return Zme(t,e,r)}case"function":{if(t!==void 0){var m=Ca,v=r(t);return Ca=m,hv(t,e,v)}break}}var y=r;return y}function Zme(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=hv(t,e,r[o])+";";else for(var a in r){var f=r[a];if(typeof f!="object"){var p=f;o9(p)&&(n+=WO(a)+":"+i9(a,p)+";")}else if(Array.isArray(f)&&typeof f[0]=="string"&&e==null)for(var m=0;m<f.length;m++)o9(f[m])&&(n+=WO(a)+":"+i9(a,f[m])+";");else{var v=hv(t,e,f);switch(a){case"animation":case"animationName":{n+=WO(a)+":"+v+";";break}default:n+=a+"{"+v+"}"}}}return n}var a9=/label:\s*([^\s;{]+)\s*(;|$)/g,Ca;function TY(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";Ca=void 0;var a=t[0];if(a==null||a.raw===void 0)n=!1,o+=hv(r,e,a);else{var f=a;o+=f[0]}for(var p=1;p<t.length;p++)if(o+=hv(r,e,t[p]),n){var m=a;o+=m[p]}a9.lastIndex=0;for(var v="",y;(y=a9.exec(o))!==null;)v+="-"+y[1];var x=Wme(o)+v;return{name:x,styles:o,next:Ca}}var Kme=function(e){return e()},Jme=kx.useInsertionEffect?kx.useInsertionEffect:!1,Qme=Jme||Kme,RY=F.createContext(typeof HTMLElement<"u"?Mme({key:"css"}):null);RY.Provider;var eve=function(e){return F.forwardRef(function(r,n){var o=F.useContext(RY);return e(r,o,n)})},tve=F.createContext({}),J3={}.hasOwnProperty,lR="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",rve=function(e,r){var n={};for(var o in r)J3.call(r,o)&&(n[o]=r[o]);return n[lR]=e,n},nve=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return OY(r,n,o),Qme(function(){return Yme(r,n,o)}),null},ove=eve(function(t,e,r){var n=t.css;typeof n=="string"&&e.registered[n]!==void 0&&(n=e.registered[n]);var o=t[lR],a=[n],f="";typeof t.className=="string"?f=qme(e.registered,a,t.className):t.className!=null&&(f=t.className+" ");var p=TY(a,void 0,F.useContext(tve));f+=e.key+"-"+p.name;var m={};for(var v in t)J3.call(t,v)&&v!=="css"&&v!==lR&&(m[v]=t[v]);return m.className=f,r&&(m.ref=r),F.createElement(F.Fragment,null,F.createElement(nve,{cache:e,serialized:p,isStringTag:typeof o=="string"}),F.createElement(o,m))}),ive=ove,et=function(e,r){var n=arguments;if(r==null||!J3.call(r,"css"))return F.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=ive,a[1]=rve(e,r);for(var f=2;f<o;f++)a[f]=n[f];return F.createElement.apply(null,a)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(et||(et={}));function Q3(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return TY(e)}function ave(){var t=Q3.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function sve(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var cR=F.useLayoutEffect,lve=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],_w=function(){};function cve(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function uve(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var a=[].concat(n);if(e&&t)for(var f in e)e.hasOwnProperty(f)&&e[f]&&a.push("".concat(cve(t,f)));return a.filter(function(p){return p}).map(function(p){return String(p).trim()}).join(" ")}var s9=function(e){return yve(e)?e.filter(Boolean):yu(e)==="object"&&e!==null?[e]:[]},PY=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var r=Fs(e,lve);return ot({},r)},Fr=function(e,r,n){var o=e.cx,a=e.getStyles,f=e.getClassNames,p=e.className;return{css:a(r,e),className:o(n??{},f(r,e),p)}};function D1(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function dve(t){return D1(t)?window.innerHeight:t.clientHeight}function zY(t){return D1(t)?window.pageYOffset:t.scrollTop}function kw(t,e){if(D1(t)){window.scrollTo(0,e);return}t.scrollTop=e}function fve(t){var e=getComputedStyle(t),r=e.position==="absolute",n=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var o=t;o=o.parentElement;)if(e=getComputedStyle(o),!(r&&e.position==="static")&&n.test(e.overflow+e.overflowY+e.overflowX))return o;return document.documentElement}function hve(t,e,r,n){return r*((t=t/n-1)*t*t+1)+e}function z0(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:_w,o=zY(t),a=e-o,f=10,p=0;function m(){p+=f;var v=hve(p,o,a,r);kw(t,v),p<r?window.requestAnimationFrame(m):n(t)}m()}function l9(t,e){var r=t.getBoundingClientRect(),n=e.getBoundingClientRect(),o=e.offsetHeight/3;n.bottom+o>r.bottom?kw(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+o,t.scrollHeight)):n.top-o<r.top&&kw(t,Math.max(e.offsetTop-o,0))}function pve(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function c9(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function gve(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var MY=!1,mve={get passive(){return MY=!0}},M0=typeof window<"u"?window:{};M0.addEventListener&&M0.removeEventListener&&(M0.addEventListener("p",_w,mve),M0.removeEventListener("p",_w,!1));var vve=MY;function bve(t){return t!=null}function yve(t){return Array.isArray(t)}function I0(t,e,r){return t?e:r}var xve=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var a=Object.entries(e).filter(function(f){var p=Es(f,1),m=p[0];return!n.includes(m)});return a.reduce(function(f,p){var m=Es(p,2),v=m[0],y=m[1];return f[v]=y,f},{})},wve=["children","innerProps"],_ve=["children","innerProps"];function kve(t){var e=t.maxHeight,r=t.menuEl,n=t.minHeight,o=t.placement,a=t.shouldScroll,f=t.isFixedPosition,p=t.controlHeight,m=fve(r),v={placement:"bottom",maxHeight:e};if(!r||!r.offsetParent)return v;var y=m.getBoundingClientRect(),x=y.height,k=r.getBoundingClientRect(),S=k.bottom,O=k.height,C=k.top,R=r.offsetParent.getBoundingClientRect(),E=R.top,P=f?window.innerHeight:dve(m),M=zY(m),I=parseInt(getComputedStyle(r).marginBottom,10),B=parseInt(getComputedStyle(r).marginTop,10),U=E-B,H=P-C,V=U+M,W=x-M-C,G=S-P+M+I,Z=M+C-B,K=160;switch(o){case"auto":case"bottom":if(H>=O)return{placement:"bottom",maxHeight:e};if(W>=O&&!f)return a&&z0(m,G,K),{placement:"bottom",maxHeight:e};if(!f&&W>=n||f&&H>=n){a&&z0(m,G,K);var Q=f?H-I:W-I;return{placement:"bottom",maxHeight:Q}}if(o==="auto"||f){var oe=e,ie=f?U:V;return ie>=n&&(oe=Math.min(ie-I-p,e)),{placement:"top",maxHeight:oe}}if(o==="bottom")return a&&kw(m,G),{placement:"bottom",maxHeight:e};break;case"top":if(U>=O)return{placement:"top",maxHeight:e};if(V>=O&&!f)return a&&z0(m,Z,K),{placement:"top",maxHeight:e};if(!f&&V>=n||f&&U>=n){var re=e;return(!f&&V>=n||f&&U>=n)&&(re=f?U-B:V-B),a&&z0(m,Z,K),{placement:"top",maxHeight:re}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return v}function jve(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var IY=function(e){return e==="auto"?"bottom":e},Sve=function(e,r){var n,o=e.placement,a=e.theme,f=a.borderRadius,p=a.spacing,m=a.colors;return ot((n={label:"menu"},xm(n,jve(o),"100%"),xm(n,"position","absolute"),xm(n,"width","100%"),xm(n,"zIndex",1),n),r?{}:{backgroundColor:m.neutral0,borderRadius:f,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:p.menuGutter,marginTop:p.menuGutter})},LY=F.createContext(null),Cve=function(e){var r=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,a=e.menuPlacement,f=e.menuPosition,p=e.menuShouldScrollIntoView,m=e.theme,v=F.useContext(LY)||{},y=v.setPortalPlacement,x=F.useRef(null),k=F.useState(o),S=Es(k,2),O=S[0],C=S[1],R=F.useState(null),E=Es(R,2),P=E[0],M=E[1],I=m.spacing.controlHeight;return cR(function(){var B=x.current;if(B){var U=f==="fixed",H=p&&!U,V=kve({maxHeight:o,menuEl:B,minHeight:n,placement:a,shouldScroll:H,isFixedPosition:U,controlHeight:I});C(V.maxHeight),M(V.placement),y==null||y(V.placement)}},[o,a,f,p,n,y,I]),r({ref:x,placerProps:ot(ot({},e),{},{placement:P||IY(a),maxHeight:O})})},Ave=function(e){var r=e.children,n=e.innerRef,o=e.innerProps;return et("div",at({},Fr(e,"menu",{menu:!0}),{ref:n},o),r)},Ove=Ave,Eve=function(e,r){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return ot({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},Tve=function(e){var r=e.children,n=e.innerProps,o=e.innerRef,a=e.isMulti;return et("div",at({},Fr(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:o},n),r)},NY=function(e,r){var n=e.theme,o=n.spacing.baseUnit,a=n.colors;return ot({textAlign:"center"},r?{}:{color:a.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},Rve=NY,Pve=NY,zve=function(e){var r=e.children,n=r===void 0?"No options":r,o=e.innerProps,a=Fs(e,wve);return et("div",at({},Fr(ot(ot({},a),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},Mve=function(e){var r=e.children,n=r===void 0?"Loading...":r,o=e.innerProps,a=Fs(e,_ve);return et("div",at({},Fr(ot(ot({},a),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},Ive=function(e){var r=e.rect,n=e.offset,o=e.position;return{left:r.left,position:o,top:n,width:r.width,zIndex:1}},Lve=function(e){var r=e.appendTo,n=e.children,o=e.controlElement,a=e.innerProps,f=e.menuPlacement,p=e.menuPosition,m=F.useRef(null),v=F.useRef(null),y=F.useState(IY(f)),x=Es(y,2),k=x[0],S=x[1],O=F.useMemo(function(){return{setPortalPlacement:S}},[]),C=F.useState(null),R=Es(C,2),E=R[0],P=R[1],M=F.useCallback(function(){if(o){var H=pve(o),V=p==="fixed"?0:window.pageYOffset,W=H[k]+V;(W!==(E==null?void 0:E.offset)||H.left!==(E==null?void 0:E.rect.left)||H.width!==(E==null?void 0:E.rect.width))&&P({offset:W,rect:H})}},[o,p,k,E==null?void 0:E.offset,E==null?void 0:E.rect.left,E==null?void 0:E.rect.width]);cR(function(){M()},[M]);var I=F.useCallback(function(){typeof v.current=="function"&&(v.current(),v.current=null),o&&m.current&&(v.current=nV(o,m.current,M,{elementResize:"ResizeObserver"in window}))},[o,M]);cR(function(){I()},[I]);var B=F.useCallback(function(H){m.current=H,I()},[I]);if(!r&&p!=="fixed"||!E)return null;var U=et("div",at({ref:B},Fr(ot(ot({},e),{},{offset:E.offset,position:p,rect:E.rect}),"menuPortal",{"menu-portal":!0}),a),n);return et(LY.Provider,{value:O},r?Mv.createPortal(U,r):U)},Nve=function(e){var r=e.isDisabled,n=e.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},Dve=function(e){var r=e.children,n=e.innerProps,o=e.isDisabled,a=e.isRtl;return et("div",at({},Fr(e,"container",{"--is-disabled":o,"--is-rtl":a}),n),r)},Bve=function(e,r){var n=e.theme.spacing,o=e.isMulti,a=e.hasValue,f=e.selectProps.controlShouldRenderValue;return ot({alignItems:"center",display:o&&a&&f?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},Fve=function(e){var r=e.children,n=e.innerProps,o=e.isMulti,a=e.hasValue;return et("div",at({},Fr(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a}),n),r)},Hve=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Uve=function(e){var r=e.children,n=e.innerProps;return et("div",at({},Fr(e,"indicatorsContainer",{indicators:!0}),n),r)},u9,Vve=["size"],qve=["innerProps","isRtl","size"],Yve={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},DY=function(e){var r=e.size,n=Fs(e,Vve);return et("svg",at({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Yve},n))},e5=function(e){return et(DY,at({size:20},e),et("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},BY=function(e){return et(DY,at({size:20},e),et("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},FY=function(e,r){var n=e.isFocused,o=e.theme,a=o.spacing.baseUnit,f=o.colors;return ot({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?f.neutral60:f.neutral20,padding:a*2,":hover":{color:n?f.neutral80:f.neutral40}})},Wve=FY,Xve=function(e){var r=e.children,n=e.innerProps;return et("div",at({},Fr(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||et(BY,null))},Gve=FY,$ve=function(e){var r=e.children,n=e.innerProps;return et("div",at({},Fr(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||et(e5,null))},Zve=function(e,r){var n=e.isDisabled,o=e.theme,a=o.spacing.baseUnit,f=o.colors;return ot({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?f.neutral10:f.neutral20,marginBottom:a*2,marginTop:a*2})},Kve=function(e){var r=e.innerProps;return et("span",at({},r,Fr(e,"indicatorSeparator",{"indicator-separator":!0})))},Jve=ave(u9||(u9=sve([`
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
`]))),Qve=function(e,r){var n=e.isFocused,o=e.size,a=e.theme,f=a.colors,p=a.spacing.baseUnit;return ot({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?f.neutral60:f.neutral20,padding:p*2})},XO=function(e){var r=e.delay,n=e.offset;return et("span",{css:Q3({animation:"".concat(Jve," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ebe=function(e){var r=e.innerProps,n=e.isRtl,o=e.size,a=o===void 0?4:o,f=Fs(e,qve);return et("div",at({},Fr(ot(ot({},f),{},{innerProps:r,isRtl:n,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),et(XO,{delay:0,offset:n}),et(XO,{delay:160,offset:!0}),et(XO,{delay:320,offset:!n}))},tbe=function(e,r){var n=e.isDisabled,o=e.isFocused,a=e.theme,f=a.colors,p=a.borderRadius,m=a.spacing;return ot({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:m.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?f.neutral5:f.neutral0,borderColor:n?f.neutral10:o?f.primary:f.neutral20,borderRadius:p,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(f.primary):void 0,"&:hover":{borderColor:o?f.primary:f.neutral30}})},rbe=function(e){var r=e.children,n=e.isDisabled,o=e.isFocused,a=e.innerRef,f=e.innerProps,p=e.menuIsOpen;return et("div",at({ref:a},Fr(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":p}),f,{"aria-disabled":n||void 0}),r)},nbe=rbe,obe=["data"],ibe=function(e,r){var n=e.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},abe=function(e){var r=e.children,n=e.cx,o=e.getStyles,a=e.getClassNames,f=e.Heading,p=e.headingProps,m=e.innerProps,v=e.label,y=e.theme,x=e.selectProps;return et("div",at({},Fr(e,"group",{group:!0}),m),et(f,at({},p,{selectProps:x,theme:y,getStyles:o,getClassNames:a,cx:n}),v),et("div",null,r))},sbe=function(e,r){var n=e.theme,o=n.colors,a=n.spacing;return ot({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},lbe=function(e){var r=PY(e);r.data;var n=Fs(r,obe);return et("div",at({},Fr(e,"groupHeading",{"group-heading":!0}),n))},cbe=abe,ube=["innerRef","isDisabled","isHidden","inputClassName"],dbe=function(e,r){var n=e.isDisabled,o=e.value,a=e.theme,f=a.spacing,p=a.colors;return ot(ot({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},fbe),r?{}:{margin:f.baseUnit/2,paddingBottom:f.baseUnit/2,paddingTop:f.baseUnit/2,color:p.neutral80})},HY={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},fbe={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ot({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},HY)},hbe=function(e){return ot({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},HY)},pbe=function(e){var r=e.cx,n=e.value,o=PY(e),a=o.innerRef,f=o.isDisabled,p=o.isHidden,m=o.inputClassName,v=Fs(o,ube);return et("div",at({},Fr(e,"input",{"input-container":!0}),{"data-value":n||""}),et("input",at({className:r({input:!0},m),ref:a,style:hbe(p),disabled:f},v)))},gbe=pbe,mbe=function(e,r){var n=e.theme,o=n.spacing,a=n.borderRadius,f=n.colors;return ot({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:f.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},vbe=function(e,r){var n=e.theme,o=n.borderRadius,a=n.colors,f=e.cropWithEllipsis;return ot({overflow:"hidden",textOverflow:f||f===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},bbe=function(e,r){var n=e.theme,o=n.spacing,a=n.borderRadius,f=n.colors,p=e.isFocused;return ot({alignItems:"center",display:"flex"},r?{}:{borderRadius:a/2,backgroundColor:p?f.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:f.dangerLight,color:f.danger}})},UY=function(e){var r=e.children,n=e.innerProps;return et("div",n,r)},ybe=UY,xbe=UY;function wbe(t){var e=t.children,r=t.innerProps;return et("div",at({role:"button"},r),e||et(e5,{size:14}))}var _be=function(e){var r=e.children,n=e.components,o=e.data,a=e.innerProps,f=e.isDisabled,p=e.removeProps,m=e.selectProps,v=n.Container,y=n.Label,x=n.Remove;return et(v,{data:o,innerProps:ot(ot({},Fr(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":f})),a),selectProps:m},et(y,{data:o,innerProps:ot({},Fr(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:m},r),et(x,{data:o,innerProps:ot(ot({},Fr(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},p),selectProps:m}))},kbe=_be,jbe=function(e,r){var n=e.isDisabled,o=e.isFocused,a=e.isSelected,f=e.theme,p=f.spacing,m=f.colors;return ot({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:a?m.primary:o?m.primary25:"transparent",color:n?m.neutral20:a?m.neutral0:"inherit",padding:"".concat(p.baseUnit*2,"px ").concat(p.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:a?m.primary:m.primary50}})},Sbe=function(e){var r=e.children,n=e.isDisabled,o=e.isFocused,a=e.isSelected,f=e.innerRef,p=e.innerProps;return et("div",at({},Fr(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":a}),{ref:f,"aria-disabled":n},p),r)},Cbe=Sbe,Abe=function(e,r){var n=e.theme,o=n.spacing,a=n.colors;return ot({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Obe=function(e){var r=e.children,n=e.innerProps;return et("div",at({},Fr(e,"placeholder",{placeholder:!0}),n),r)},Ebe=Obe,Tbe=function(e,r){var n=e.isDisabled,o=e.theme,a=o.spacing,f=o.colors;return ot({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?f.neutral40:f.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},Rbe=function(e){var r=e.children,n=e.isDisabled,o=e.innerProps;return et("div",at({},Fr(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},Pbe=Rbe,zbe={ClearIndicator:$ve,Control:nbe,DropdownIndicator:Xve,DownChevron:BY,CrossIcon:e5,Group:cbe,GroupHeading:lbe,IndicatorsContainer:Uve,IndicatorSeparator:Kve,Input:gbe,LoadingIndicator:ebe,Menu:Ove,MenuList:Tve,MenuPortal:Lve,LoadingMessage:Mve,NoOptionsMessage:zve,MultiValue:kbe,MultiValueContainer:ybe,MultiValueLabel:xbe,MultiValueRemove:wbe,Option:Cbe,Placeholder:Ebe,SelectContainer:Dve,SingleValue:Pbe,ValueContainer:Fve},Mbe=function(e){return ot(ot({},zbe),e.components)},d9=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Ibe(t,e){return!!(t===e||d9(t)&&d9(e))}function Lbe(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!Ibe(t[r],e[r]))return!1;return!0}function Nbe(t,e){e===void 0&&(e=Lbe);var r=null;function n(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(r&&r.lastThis===this&&e(o,r.lastArgs))return r.lastResult;var f=t.apply(this,o);return r={lastResult:f,lastArgs:o,lastThis:this},f}return n.clear=function(){r=null},n}var Dbe={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Bbe=function(e){return et("span",at({css:Dbe},e))},f9=Bbe,Fbe={guidance:function(e){var r=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,a=e.context,f=e.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return f?"".concat(e["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var r=e.action,n=e.label,o=n===void 0?"":n,a=e.labels,f=e.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return f?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(e){var r=e.context,n=e.focused,o=e.options,a=e.label,f=a===void 0?"":a,p=e.selectValue,m=e.isDisabled,v=e.isSelected,y=e.isAppleDevice,x=function(C,R){return C&&C.length?"".concat(C.indexOf(R)+1," of ").concat(C.length):""};if(r==="value"&&p)return"value ".concat(f," focused, ").concat(x(p,n),".");if(r==="menu"&&y){var k=m?" disabled":"",S="".concat(v?" selected":"").concat(k);return"".concat(f).concat(S,", ").concat(x(o,n),".")}return""},onFilter:function(e){var r=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},Hbe=function(e){var r=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,a=e.focusableOptions,f=e.isFocused,p=e.selectValue,m=e.selectProps,v=e.id,y=e.isAppleDevice,x=m.ariaLiveMessages,k=m.getOptionLabel,S=m.inputValue,O=m.isMulti,C=m.isOptionDisabled,R=m.isSearchable,E=m.menuIsOpen,P=m.options,M=m.screenReaderStatus,I=m.tabSelectsValue,B=m.isLoading,U=m["aria-label"],H=m["aria-live"],V=F.useMemo(function(){return ot(ot({},Fbe),x||{})},[x]),W=F.useMemo(function(){var ie="";if(r&&V.onChange){var re=r.option,ne=r.options,te=r.removedValue,ue=r.removedValues,pe=r.value,ke=function(Xe){return Array.isArray(Xe)?null:Xe},ze=te||re||ke(pe),Re=ze?k(ze):"",Ae=ne||ue||void 0,tt=Ae?Ae.map(k):[],Ue=ot({isDisabled:ze&&C(ze,p),label:Re,labels:tt},r);ie=V.onChange(Ue)}return ie},[r,V,C,p,k]),G=F.useMemo(function(){var ie="",re=n||o,ne=!!(n&&p&&p.includes(n));if(re&&V.onFocus){var te={focused:re,label:k(re),isDisabled:C(re,p),isSelected:ne,options:a,context:re===n?"menu":"value",selectValue:p,isAppleDevice:y};ie=V.onFocus(te)}return ie},[n,o,k,C,V,a,p,y]),Z=F.useMemo(function(){var ie="";if(E&&P.length&&!B&&V.onFilter){var re=M({count:a.length});ie=V.onFilter({inputValue:S,resultsMessage:re})}return ie},[a,S,E,V,P,M,B]),K=(r==null?void 0:r.action)==="initial-input-focus",Q=F.useMemo(function(){var ie="";if(V.guidance){var re=o?"value":E?"menu":"input";ie=V.guidance({"aria-label":U,context:re,isDisabled:n&&C(n,p),isMulti:O,isSearchable:R,tabSelectsValue:I,isInitialFocus:K})}return ie},[U,n,o,O,C,R,E,V,p,I,K]),oe=et(F.Fragment,null,et("span",{id:"aria-selection"},W),et("span",{id:"aria-focused"},G),et("span",{id:"aria-results"},Z),et("span",{id:"aria-guidance"},Q));return et(F.Fragment,null,et(f9,{id:v},K&&oe),et(f9,{"aria-live":H,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},f&&!K&&oe))},Ube=Hbe,uR=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],Vbe=new RegExp("["+uR.map(function(t){return t.letters}).join("")+"]","g"),VY={};for(var GO=0;GO<uR.length;GO++)for(var $O=uR[GO],ZO=0;ZO<$O.letters.length;ZO++)VY[$O.letters[ZO]]=$O.base;var qY=function(e){return e.replace(Vbe,function(r){return VY[r]})},qbe=Nbe(qY),h9=function(e){return e.replace(/^\s+|\s+$/g,"")},Ybe=function(e){return"".concat(e.label," ").concat(e.value)},Wbe=function(e){return function(r,n){if(r.data.__isNew__)return!0;var o=ot({ignoreCase:!0,ignoreAccents:!0,stringify:Ybe,trim:!0,matchFrom:"any"},e),a=o.ignoreCase,f=o.ignoreAccents,p=o.stringify,m=o.trim,v=o.matchFrom,y=m?h9(n):n,x=m?h9(p(r)):p(r);return a&&(y=y.toLowerCase(),x=x.toLowerCase()),f&&(y=qbe(y),x=qY(x)),v==="start"?x.substr(0,y.length)===y:x.indexOf(y)>-1}},Xbe=["innerRef"];function Gbe(t){var e=t.innerRef,r=Fs(t,Xbe),n=xve(r,"onExited","in","enter","exit","appear");return et("input",at({ref:e},n,{css:Q3({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var $be=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function Zbe(t){var e=t.isEnabled,r=t.onBottomArrive,n=t.onBottomLeave,o=t.onTopArrive,a=t.onTopLeave,f=F.useRef(!1),p=F.useRef(!1),m=F.useRef(0),v=F.useRef(null),y=F.useCallback(function(R,E){if(v.current!==null){var P=v.current,M=P.scrollTop,I=P.scrollHeight,B=P.clientHeight,U=v.current,H=E>0,V=I-B-M,W=!1;V>E&&f.current&&(n&&n(R),f.current=!1),H&&p.current&&(a&&a(R),p.current=!1),H&&E>V?(r&&!f.current&&r(R),U.scrollTop=I,W=!0,f.current=!0):!H&&-E>M&&(o&&!p.current&&o(R),U.scrollTop=0,W=!0,p.current=!0),W&&$be(R)}},[r,n,o,a]),x=F.useCallback(function(R){y(R,R.deltaY)},[y]),k=F.useCallback(function(R){m.current=R.changedTouches[0].clientY},[]),S=F.useCallback(function(R){var E=m.current-R.changedTouches[0].clientY;y(R,E)},[y]),O=F.useCallback(function(R){if(R){var E=vve?{passive:!1}:!1;R.addEventListener("wheel",x,E),R.addEventListener("touchstart",k,E),R.addEventListener("touchmove",S,E)}},[S,k,x]),C=F.useCallback(function(R){R&&(R.removeEventListener("wheel",x,!1),R.removeEventListener("touchstart",k,!1),R.removeEventListener("touchmove",S,!1))},[S,k,x]);return F.useEffect(function(){if(e){var R=v.current;return O(R),function(){C(R)}}},[e,O,C]),function(R){v.current=R}}var p9=["boxSizing","height","overflow","paddingRight","position"],g9={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function m9(t){t.cancelable&&t.preventDefault()}function v9(t){t.stopPropagation()}function b9(){var t=this.scrollTop,e=this.scrollHeight,r=t+this.offsetHeight;t===0?this.scrollTop=1:r===e&&(this.scrollTop=t-1)}function y9(){return"ontouchstart"in window||navigator.maxTouchPoints}var x9=!!(typeof window<"u"&&window.document&&window.document.createElement),um=0,Hd={capture:!1,passive:!1};function Kbe(t){var e=t.isEnabled,r=t.accountForScrollbars,n=r===void 0?!0:r,o=F.useRef({}),a=F.useRef(null),f=F.useCallback(function(m){if(x9){var v=document.body,y=v&&v.style;if(n&&p9.forEach(function(O){var C=y&&y[O];o.current[O]=C}),n&&um<1){var x=parseInt(o.current.paddingRight,10)||0,k=document.body?document.body.clientWidth:0,S=window.innerWidth-k+x||0;Object.keys(g9).forEach(function(O){var C=g9[O];y&&(y[O]=C)}),y&&(y.paddingRight="".concat(S,"px"))}v&&y9()&&(v.addEventListener("touchmove",m9,Hd),m&&(m.addEventListener("touchstart",b9,Hd),m.addEventListener("touchmove",v9,Hd))),um+=1}},[n]),p=F.useCallback(function(m){if(x9){var v=document.body,y=v&&v.style;um=Math.max(um-1,0),n&&um<1&&p9.forEach(function(x){var k=o.current[x];y&&(y[x]=k)}),v&&y9()&&(v.removeEventListener("touchmove",m9,Hd),m&&(m.removeEventListener("touchstart",b9,Hd),m.removeEventListener("touchmove",v9,Hd)))}},[n]);return F.useEffect(function(){if(e){var m=a.current;return f(m),function(){p(m)}}},[e,f,p]),function(m){a.current=m}}var Jbe=function(e){var r=e.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},Qbe={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function eye(t){var e=t.children,r=t.lockEnabled,n=t.captureEnabled,o=n===void 0?!0:n,a=t.onBottomArrive,f=t.onBottomLeave,p=t.onTopArrive,m=t.onTopLeave,v=Zbe({isEnabled:o,onBottomArrive:a,onBottomLeave:f,onTopArrive:p,onTopLeave:m}),y=Kbe({isEnabled:r}),x=function(S){v(S),y(S)};return et(F.Fragment,null,r&&et("div",{onClick:Jbe,css:Qbe}),e(x))}var tye={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},rye=function(e){var r=e.name,n=e.onFocus;return et("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:tye,value:"",onChange:function(){}})},nye=rye;function t5(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function oye(){return t5(/^iPhone/i)}function YY(){return t5(/^Mac/i)}function iye(){return t5(/^iPad/i)||YY()&&navigator.maxTouchPoints>1}function aye(){return oye()||iye()}function sye(){return YY()||aye()}var lye=function(e){return e.label},cye=function(e){return e.label},uye=function(e){return e.value},dye=function(e){return!!e.isDisabled},fye={clearIndicator:Gve,container:Nve,control:tbe,dropdownIndicator:Wve,group:ibe,groupHeading:sbe,indicatorsContainer:Hve,indicatorSeparator:Zve,input:dbe,loadingIndicator:Qve,loadingMessage:Pve,menu:Sve,menuList:Eve,menuPortal:Ive,multiValue:mbe,multiValueLabel:vbe,multiValueRemove:bbe,noOptionsMessage:Rve,option:jbe,placeholder:Abe,singleValue:Tbe,valueContainer:Bve},hye={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},pye=4,WY=4,gye=38,mye=WY*2,vye={baseUnit:WY,controlHeight:gye,menuGutter:mye},KO={borderRadius:pye,colors:hye,spacing:vye},bye={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:c9(),captureMenuScroll:!c9(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Wbe(),formatGroupLabel:lye,getOptionLabel:cye,getOptionValue:uye,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:dye,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!gve(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var r=e.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function w9(t,e,r,n){var o=$Y(t,e,r),a=ZY(t,e,r),f=GY(t,e),p=jw(t,e);return{type:"option",data:e,isDisabled:o,isSelected:a,label:f,value:p,index:n}}function mx(t,e){return t.options.map(function(r,n){if("options"in r){var o=r.options.map(function(f,p){return w9(t,f,e,p)}).filter(function(f){return k9(t,f)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var a=w9(t,r,e,n);return k9(t,a)?a:void 0}).filter(bve)}function XY(t){return t.reduce(function(e,r){return r.type==="group"?e.push.apply(e,Y3(r.options.map(function(n){return n.data}))):e.push(r.data),e},[])}function _9(t,e){return t.reduce(function(r,n){return n.type==="group"?r.push.apply(r,Y3(n.options.map(function(o){return{data:o.data,id:"".concat(e,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(e,"-").concat(n.index)}),r},[])}function yye(t,e){return XY(mx(t,e))}function k9(t,e){var r=t.inputValue,n=r===void 0?"":r,o=e.data,a=e.isSelected,f=e.label,p=e.value;return(!JY(t)||!a)&&KY(t,{label:f,value:p,data:o},n)}function xye(t,e){var r=t.focusedValue,n=t.selectValue,o=n.indexOf(r);if(o>-1){var a=e.indexOf(r);if(a>-1)return r;if(o<e.length)return e[o]}return null}function wye(t,e){var r=t.focusedOption;return r&&e.indexOf(r)>-1?r:e[0]}var JO=function(e,r){var n,o=(n=e.find(function(a){return a.data===r}))===null||n===void 0?void 0:n.id;return o||null},GY=function(e,r){return e.getOptionLabel(r)},jw=function(e,r){return e.getOptionValue(r)};function $Y(t,e,r){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,r):!1}function ZY(t,e,r){if(r.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,r);var n=jw(t,e);return r.some(function(o){return jw(t,o)===n})}function KY(t,e,r){return t.filterOption?t.filterOption(e,r):!0}var JY=function(e){var r=e.hideSelectedOptions,n=e.isMulti;return r===void 0?n:r},_ye=1,QY=function(t){Jge(r,t);var e=tme(r);function r(n){var o;if(Zge(this,r),o=e.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(m){o.controlRef=m},o.focusedOptionRef=null,o.getFocusedOptionRef=function(m){o.focusedOptionRef=m},o.menuListRef=null,o.getMenuListRef=function(m){o.menuListRef=m},o.inputRef=null,o.getInputRef=function(m){o.inputRef=m},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(m,v){var y=o.props,x=y.onChange,k=y.name;v.name=k,o.ariaOnChange(m,v),x(m,v)},o.setValue=function(m,v,y){var x=o.props,k=x.closeMenuOnSelect,S=x.isMulti,O=x.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:O}),k&&(o.setState({inputIsHiddenAfterUpdate:!S}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(m,{action:v,option:y})},o.selectOption=function(m){var v=o.props,y=v.blurInputOnSelect,x=v.isMulti,k=v.name,S=o.state.selectValue,O=x&&o.isOptionSelected(m,S),C=o.isOptionDisabled(m,S);if(O){var R=o.getOptionValue(m);o.setValue(S.filter(function(E){return o.getOptionValue(E)!==R}),"deselect-option",m)}else if(!C)x?o.setValue([].concat(Y3(S),[m]),"select-option",m):o.setValue(m,"select-option");else{o.ariaOnChange(m,{action:"select-option",option:m,name:k});return}y&&o.blurInput()},o.removeValue=function(m){var v=o.props.isMulti,y=o.state.selectValue,x=o.getOptionValue(m),k=y.filter(function(O){return o.getOptionValue(O)!==x}),S=I0(v,k,k[0]||null);o.onChange(S,{action:"remove-value",removedValue:m}),o.focusInput()},o.clearValue=function(){var m=o.state.selectValue;o.onChange(I0(o.props.isMulti,[],null),{action:"clear",removedValues:m})},o.popValue=function(){var m=o.props.isMulti,v=o.state.selectValue,y=v[v.length-1],x=v.slice(0,v.length-1),k=I0(m,x,x[0]||null);y&&o.onChange(k,{action:"pop-value",removedValue:y})},o.getFocusedOptionId=function(m){return JO(o.state.focusableOptionsWithIds,m)},o.getFocusableOptionsWithIds=function(){return _9(mx(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];return uve.apply(void 0,[o.props.classNamePrefix].concat(v))},o.getOptionLabel=function(m){return GY(o.props,m)},o.getOptionValue=function(m){return jw(o.props,m)},o.getStyles=function(m,v){var y=o.props.unstyled,x=fye[m](v,y);x.boxSizing="border-box";var k=o.props.styles[m];return k?k(x,v):x},o.getClassNames=function(m,v){var y,x;return(y=(x=o.props.classNames)[m])===null||y===void 0?void 0:y.call(x,v)},o.getElementId=function(m){return"".concat(o.state.instancePrefix,"-").concat(m)},o.getComponents=function(){return Mbe(o.props)},o.buildCategorizedOptions=function(){return mx(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return XY(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(m,v){o.setState({ariaSelection:ot({value:m},v)})},o.onMenuMouseDown=function(m){m.button===0&&(m.stopPropagation(),m.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(m){o.blockOptionHover=!1},o.onControlMouseDown=function(m){if(!m.defaultPrevented){var v=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?m.target.tagName!=="INPUT"&&m.target.tagName!=="TEXTAREA"&&o.onMenuClose():v&&o.openMenu("first"):(v&&(o.openAfterFocus=!0),o.focusInput()),m.target.tagName!=="INPUT"&&m.target.tagName!=="TEXTAREA"&&m.preventDefault()}},o.onDropdownIndicatorMouseDown=function(m){if(!(m&&m.type==="mousedown"&&m.button!==0)&&!o.props.isDisabled){var v=o.props,y=v.isMulti,x=v.menuIsOpen;o.focusInput(),x?(o.setState({inputIsHiddenAfterUpdate:!y}),o.onMenuClose()):o.openMenu("first"),m.preventDefault()}},o.onClearIndicatorMouseDown=function(m){m&&m.type==="mousedown"&&m.button!==0||(o.clearValue(),m.preventDefault(),o.openAfterFocus=!1,m.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(m){typeof o.props.closeMenuOnScroll=="boolean"?m.target instanceof HTMLElement&&D1(m.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(m)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(m){var v=m.touches,y=v&&v.item(0);y&&(o.initialTouchX=y.clientX,o.initialTouchY=y.clientY,o.userIsDragging=!1)},o.onTouchMove=function(m){var v=m.touches,y=v&&v.item(0);if(y){var x=Math.abs(y.clientX-o.initialTouchX),k=Math.abs(y.clientY-o.initialTouchY),S=5;o.userIsDragging=x>S||k>S}},o.onTouchEnd=function(m){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(m.target)&&o.menuListRef&&!o.menuListRef.contains(m.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(m){o.userIsDragging||o.onControlMouseDown(m)},o.onClearIndicatorTouchEnd=function(m){o.userIsDragging||o.onClearIndicatorMouseDown(m)},o.onDropdownIndicatorTouchEnd=function(m){o.userIsDragging||o.onDropdownIndicatorMouseDown(m)},o.handleInputChange=function(m){var v=o.props.inputValue,y=m.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(y,{action:"input-change",prevInputValue:v}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(m){o.props.onFocus&&o.props.onFocus(m),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(m){var v=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(m),o.onInputChange("",{action:"input-blur",prevInputValue:v}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(m){if(!(o.blockOptionHover||o.state.focusedOption===m)){var v=o.getFocusableOptions(),y=v.indexOf(m);o.setState({focusedOption:m,focusedOptionId:y>-1?o.getFocusedOptionId(m):null})}},o.shouldHideSelectedOptions=function(){return JY(o.props)},o.onValueInputFocus=function(m){m.preventDefault(),m.stopPropagation(),o.focus()},o.onKeyDown=function(m){var v=o.props,y=v.isMulti,x=v.backspaceRemovesValue,k=v.escapeClearsValue,S=v.inputValue,O=v.isClearable,C=v.isDisabled,R=v.menuIsOpen,E=v.onKeyDown,P=v.tabSelectsValue,M=v.openMenuOnFocus,I=o.state,B=I.focusedOption,U=I.focusedValue,H=I.selectValue;if(!C&&!(typeof E=="function"&&(E(m),m.defaultPrevented))){switch(o.blockOptionHover=!0,m.key){case"ArrowLeft":if(!y||S)return;o.focusValue("previous");break;case"ArrowRight":if(!y||S)return;o.focusValue("next");break;case"Delete":case"Backspace":if(S)return;if(U)o.removeValue(U);else{if(!x)return;y?o.popValue():O&&o.clearValue()}break;case"Tab":if(o.isComposing||m.shiftKey||!R||!P||!B||M&&o.isOptionSelected(B,H))return;o.selectOption(B);break;case"Enter":if(m.keyCode===229)break;if(R){if(!B||o.isComposing)return;o.selectOption(B);break}return;case"Escape":R?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:S}),o.onMenuClose()):O&&k&&o.clearValue();break;case" ":if(S)return;if(!R){o.openMenu("first");break}if(!B)return;o.selectOption(B);break;case"ArrowUp":R?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":R?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!R)return;o.focusOption("pageup");break;case"PageDown":if(!R)return;o.focusOption("pagedown");break;case"Home":if(!R)return;o.focusOption("first");break;case"End":if(!R)return;o.focusOption("last");break;default:return}m.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++_ye),o.state.selectValue=s9(n.value),n.menuIsOpen&&o.state.selectValue.length){var a=o.getFocusableOptionsWithIds(),f=o.buildFocusableOptions(),p=f.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=a,o.state.focusedOption=f[p],o.state.focusedOptionId=JO(a,f[p])}return o}return Kge(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&l9(this.menuListRef,this.focusedOptionRef),sye()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var a=this.props,f=a.isDisabled,p=a.menuIsOpen,m=this.state.isFocused;(m&&!f&&o.isDisabled||m&&p&&!o.menuIsOpen)&&this.focusInput(),m&&f&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!m&&!f&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(l9(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,a){this.props.onInputChange(o,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var a=this,f=this.state,p=f.selectValue,m=f.isFocused,v=this.buildFocusableOptions(),y=o==="first"?0:v.length-1;if(!this.props.isMulti){var x=v.indexOf(p[0]);x>-1&&(y=x)}this.scrollToFocusedOptionOnUpdate=!(m&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:v[y],focusedOptionId:this.getFocusedOptionId(v[y])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(o){var a=this.state,f=a.selectValue,p=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var m=f.indexOf(p);p||(m=-1);var v=f.length-1,y=-1;if(f.length){switch(o){case"previous":m===0?y=0:m===-1?y=v:y=m-1;break;case"next":m>-1&&m<v&&(y=m+1);break}this.setState({inputIsHidden:y!==-1,focusedValue:f[y]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,f=this.state.focusedOption,p=this.getFocusableOptions();if(p.length){var m=0,v=p.indexOf(f);f||(v=-1),o==="up"?m=v>0?v-1:p.length-1:o==="down"?m=(v+1)%p.length:o==="pageup"?(m=v-a,m<0&&(m=0)):o==="pagedown"?(m=v+a,m>p.length-1&&(m=p.length-1)):o==="last"&&(m=p.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:p[m],focusedValue:null,focusedOptionId:this.getFocusedOptionId(p[m])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(KO):ot(ot({},KO),this.props.theme):KO}},{key:"getCommonProps",value:function(){var o=this.clearValue,a=this.cx,f=this.getStyles,p=this.getClassNames,m=this.getValue,v=this.selectOption,y=this.setValue,x=this.props,k=x.isMulti,S=x.isRtl,O=x.options,C=this.hasValue();return{clearValue:o,cx:a,getStyles:f,getClassNames:p,getValue:m,hasValue:C,isMulti:k,isRtl:S,options:O,selectOption:v,selectProps:x,setValue:y,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,a=o.isClearable,f=o.isMulti;return a===void 0?f:a}},{key:"isOptionDisabled",value:function(o,a){return $Y(this.props,o,a)}},{key:"isOptionSelected",value:function(o,a){return ZY(this.props,o,a)}},{key:"filterOption",value:function(o,a){return KY(this.props,o,a)}},{key:"formatOptionLabel",value:function(o,a){if(typeof this.props.formatOptionLabel=="function"){var f=this.props.inputValue,p=this.state.selectValue;return this.props.formatOptionLabel(o,{context:a,inputValue:f,selectValue:p})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,a=o.isDisabled,f=o.isSearchable,p=o.inputId,m=o.inputValue,v=o.tabIndex,y=o.form,x=o.menuIsOpen,k=o.required,S=this.getComponents(),O=S.Input,C=this.state,R=C.inputIsHidden,E=C.ariaSelection,P=this.commonProps,M=p||this.getElementId("input"),I=ot(ot(ot({"aria-autocomplete":"list","aria-expanded":x,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":k,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},x&&{"aria-controls":this.getElementId("listbox")}),!f&&{"aria-readonly":!0}),this.hasValue()?(E==null?void 0:E.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return f?F.createElement(O,at({},P,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:M,innerRef:this.getInputRef,isDisabled:a,isHidden:R,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:v,form:y,type:"text",value:m},I)):F.createElement(Gbe,at({id:M,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:_w,onFocus:this.onInputFocus,disabled:a,tabIndex:v,inputMode:"none",form:y,value:""},I))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,a=this.getComponents(),f=a.MultiValue,p=a.MultiValueContainer,m=a.MultiValueLabel,v=a.MultiValueRemove,y=a.SingleValue,x=a.Placeholder,k=this.commonProps,S=this.props,O=S.controlShouldRenderValue,C=S.isDisabled,R=S.isMulti,E=S.inputValue,P=S.placeholder,M=this.state,I=M.selectValue,B=M.focusedValue,U=M.isFocused;if(!this.hasValue()||!O)return E?null:F.createElement(x,at({},k,{key:"placeholder",isDisabled:C,isFocused:U,innerProps:{id:this.getElementId("placeholder")}}),P);if(R)return I.map(function(V,W){var G=V===B,Z="".concat(o.getOptionLabel(V),"-").concat(o.getOptionValue(V));return F.createElement(f,at({},k,{components:{Container:p,Label:m,Remove:v},isFocused:G,isDisabled:C,key:Z,index:W,removeProps:{onClick:function(){return o.removeValue(V)},onTouchEnd:function(){return o.removeValue(V)},onMouseDown:function(Q){Q.preventDefault()}},data:V}),o.formatOptionLabel(V,"value"))});if(E)return null;var H=I[0];return F.createElement(y,at({},k,{data:H,isDisabled:C}),this.formatOptionLabel(H,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),a=o.ClearIndicator,f=this.commonProps,p=this.props,m=p.isDisabled,v=p.isLoading,y=this.state.isFocused;if(!this.isClearable()||!a||m||!this.hasValue()||v)return null;var x={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(a,at({},f,{innerProps:x,isFocused:y}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),a=o.LoadingIndicator,f=this.commonProps,p=this.props,m=p.isDisabled,v=p.isLoading,y=this.state.isFocused;if(!a||!v)return null;var x={"aria-hidden":"true"};return F.createElement(a,at({},f,{innerProps:x,isDisabled:m,isFocused:y}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator,f=o.IndicatorSeparator;if(!a||!f)return null;var p=this.commonProps,m=this.props.isDisabled,v=this.state.isFocused;return F.createElement(f,at({},p,{isDisabled:m,isFocused:v}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator;if(!a)return null;var f=this.commonProps,p=this.props.isDisabled,m=this.state.isFocused,v={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(a,at({},f,{innerProps:v,isDisabled:p,isFocused:m}))}},{key:"renderMenu",value:function(){var o=this,a=this.getComponents(),f=a.Group,p=a.GroupHeading,m=a.Menu,v=a.MenuList,y=a.MenuPortal,x=a.LoadingMessage,k=a.NoOptionsMessage,S=a.Option,O=this.commonProps,C=this.state.focusedOption,R=this.props,E=R.captureMenuScroll,P=R.inputValue,M=R.isLoading,I=R.loadingMessage,B=R.minMenuHeight,U=R.maxMenuHeight,H=R.menuIsOpen,V=R.menuPlacement,W=R.menuPosition,G=R.menuPortalTarget,Z=R.menuShouldBlockScroll,K=R.menuShouldScrollIntoView,Q=R.noOptionsMessage,oe=R.onMenuScrollToTop,ie=R.onMenuScrollToBottom;if(!H)return null;var re=function(Re,Ae){var tt=Re.type,Ue=Re.data,Te=Re.isDisabled,Xe=Re.isSelected,rt=Re.label,pt=Re.value,Lt=C===Ue,Cr=Te?void 0:function(){return o.onOptionHover(Ue)},$t=Te?void 0:function(){return o.selectOption(Ue)},Pr="".concat(o.getElementId("option"),"-").concat(Ae),Jo={id:Pr,onClick:$t,onMouseMove:Cr,onMouseOver:Cr,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:Xe};return F.createElement(S,at({},O,{innerProps:Jo,data:Ue,isDisabled:Te,isSelected:Xe,key:Pr,label:rt,type:tt,value:pt,isFocused:Lt,innerRef:Lt?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(Re.data,"menu"))},ne;if(this.hasOptions())ne=this.getCategorizedOptions().map(function(ze){if(ze.type==="group"){var Re=ze.data,Ae=ze.options,tt=ze.index,Ue="".concat(o.getElementId("group"),"-").concat(tt),Te="".concat(Ue,"-heading");return F.createElement(f,at({},O,{key:Ue,data:Re,options:Ae,Heading:p,headingProps:{id:Te,data:ze.data},label:o.formatGroupLabel(ze.data)}),ze.options.map(function(Xe){return re(Xe,"".concat(tt,"-").concat(Xe.index))}))}else if(ze.type==="option")return re(ze,"".concat(ze.index))});else if(M){var te=I({inputValue:P});if(te===null)return null;ne=F.createElement(x,O,te)}else{var ue=Q({inputValue:P});if(ue===null)return null;ne=F.createElement(k,O,ue)}var pe={minMenuHeight:B,maxMenuHeight:U,menuPlacement:V,menuPosition:W,menuShouldScrollIntoView:K},ke=F.createElement(Cve,at({},O,pe),function(ze){var Re=ze.ref,Ae=ze.placerProps,tt=Ae.placement,Ue=Ae.maxHeight;return F.createElement(m,at({},O,pe,{innerRef:Re,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:M,placement:tt}),F.createElement(eye,{captureEnabled:E,onTopArrive:oe,onBottomArrive:ie,lockEnabled:Z},function(Te){return F.createElement(v,at({},O,{innerRef:function(rt){o.getMenuListRef(rt),Te(rt)},innerProps:{role:"listbox","aria-multiselectable":O.isMulti,id:o.getElementId("listbox")},isLoading:M,maxHeight:Ue,focusedOption:C}),ne)}))});return G||W==="fixed"?F.createElement(y,at({},O,{appendTo:G,controlElement:this.controlRef,menuPlacement:V,menuPosition:W}),ke):ke}},{key:"renderFormField",value:function(){var o=this,a=this.props,f=a.delimiter,p=a.isDisabled,m=a.isMulti,v=a.name,y=a.required,x=this.state.selectValue;if(y&&!this.hasValue()&&!p)return F.createElement(nye,{name:v,onFocus:this.onValueInputFocus});if(!(!v||p))if(m)if(f){var k=x.map(function(C){return o.getOptionValue(C)}).join(f);return F.createElement("input",{name:v,type:"hidden",value:k})}else{var S=x.length>0?x.map(function(C,R){return F.createElement("input",{key:"i-".concat(R),name:v,type:"hidden",value:o.getOptionValue(C)})}):F.createElement("input",{name:v,type:"hidden",value:""});return F.createElement("div",null,S)}else{var O=x[0]?this.getOptionValue(x[0]):"";return F.createElement("input",{name:v,type:"hidden",value:O})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,a=this.state,f=a.ariaSelection,p=a.focusedOption,m=a.focusedValue,v=a.isFocused,y=a.selectValue,x=this.getFocusableOptions();return F.createElement(Ube,at({},o,{id:this.getElementId("live-region"),ariaSelection:f,focusedOption:p,focusedValue:m,isFocused:v,selectValue:y,focusableOptions:x,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),a=o.Control,f=o.IndicatorsContainer,p=o.SelectContainer,m=o.ValueContainer,v=this.props,y=v.className,x=v.id,k=v.isDisabled,S=v.menuIsOpen,O=this.state.isFocused,C=this.commonProps=this.getCommonProps();return F.createElement(p,at({},C,{className:y,innerProps:{id:x,onKeyDown:this.onKeyDown},isDisabled:k,isFocused:O}),this.renderLiveRegion(),F.createElement(a,at({},C,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:k,isFocused:O,menuIsOpen:S}),F.createElement(m,at({},C,{isDisabled:k}),this.renderPlaceholderOrValue(),this.renderInput()),F.createElement(f,at({},C,{isDisabled:k}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,a){var f=a.prevProps,p=a.clearFocusValueOnUpdate,m=a.inputIsHiddenAfterUpdate,v=a.ariaSelection,y=a.isFocused,x=a.prevWasFocused,k=a.instancePrefix,S=o.options,O=o.value,C=o.menuIsOpen,R=o.inputValue,E=o.isMulti,P=s9(O),M={};if(f&&(O!==f.value||S!==f.options||C!==f.menuIsOpen||R!==f.inputValue)){var I=C?yye(o,P):[],B=C?_9(mx(o,P),"".concat(k,"-option")):[],U=p?xye(a,P):null,H=wye(a,I),V=JO(B,H);M={selectValue:P,focusedOption:H,focusedOptionId:V,focusableOptionsWithIds:B,focusedValue:U,clearFocusValueOnUpdate:!1}}var W=m!=null&&o!==f?{inputIsHidden:m,inputIsHiddenAfterUpdate:void 0}:{},G=v,Z=y&&x;return y&&!Z&&(G={value:I0(E,P,P[0]||null),options:P,action:"initial-input-focus"},Z=!x),(v==null?void 0:v.action)==="initial-input-focus"&&(G=null),ot(ot(ot({},M),W),{},{prevProps:o,ariaSelection:G,prevWasFocused:Z})}}]),r}(F.Component);QY.defaultProps=bye;var kye=F.forwardRef(function(t,e){var r=$ge(t);return F.createElement(QY,at({ref:e},r))}),eW=kye;const jye=[{value:"AF",label:"Afghanistan"},{value:"AX",label:"Åland Islands"},{value:"AL",label:"Albania"},{value:"DZ",label:"Algeria"},{value:"AS",label:"American Samoa"},{value:"AD",label:"Andorra"},{value:"AO",label:"Angola"},{value:"AI",label:"Anguilla"},{value:"AQ",label:"Antarctica"},{value:"AG",label:"Antigua and Barbuda"},{value:"AR",label:"Argentina"},{value:"AM",label:"Armenia"},{value:"AW",label:"Aruba"},{value:"AU",label:"Australia"},{value:"AT",label:"Austria"},{value:"AZ",label:"Azerbaijan"},{value:"BS",label:"Bahamas"},{value:"BH",label:"Bahrain"},{value:"BD",label:"Bangladesh"},{value:"BB",label:"Barbados"},{value:"BY",label:"Belarus"},{value:"BE",label:"Belgium"},{value:"BZ",label:"Belize"},{value:"BJ",label:"Benin"},{value:"BM",label:"Bermuda"},{value:"BT",label:"Bhutan"},{value:"BO",label:"Bolivia, Plurinational State of"},{value:"BQ",label:"Bonaire, Sint Eustatius and Saba"},{value:"BA",label:"Bosnia and Herzegovina"},{value:"BW",label:"Botswana"},{value:"BV",label:"Bouvet Island"},{value:"BR",label:"Brazil"},{value:"IO",label:"British Indian Ocean Territory"},{value:"BN",label:"Brunei Darussalam"},{value:"BG",label:"Bulgaria"},{value:"BF",label:"Burkina Faso"},{value:"BI",label:"Burundi"},{value:"CV",label:"Cabo Verde"},{value:"KH",label:"Cambodia"},{value:"CM",label:"Cameroon"},{value:"CA",label:"Canada"},{value:"KY",label:"Cayman Islands"},{value:"CF",label:"Central African Republic"},{value:"TD",label:"Chad"},{value:"CL",label:"Chile"},{value:"CN",label:"China"},{value:"CX",label:"Christmas Island"},{value:"CC",label:"Cocos (Keeling) Islands"},{value:"CO",label:"Colombia"},{value:"KM",label:"Comoros"},{value:"CG",label:"Congo"},{value:"CD",label:"Congo, Democratic Republic of the"},{value:"CK",label:"Cook Islands"},{value:"CR",label:"Costa Rica"},{value:"HR",label:"Croatia"},{value:"CU",label:"Cuba"},{value:"CW",label:"Curaçao"},{value:"CY",label:"Cyprus"},{value:"CZ",label:"Czechia"},{value:"CI",label:"Côte d'Ivoire"},{value:"DK",label:"Denmark"},{value:"DJ",label:"Djibouti"},{value:"DM",label:"Dominica"},{value:"DO",label:"Dominican Republic"},{value:"EC",label:"Ecuador"},{value:"EG",label:"Egypt"},{value:"SV",label:"El Salvador"},{value:"GQ",label:"Equatorial Guinea"},{value:"ER",label:"Eritrea"},{value:"EE",label:"Estonia"},{value:"SZ",label:"Eswatini"},{value:"ET",label:"Ethiopia"},{value:"FK",label:"Falkland Islands (Malvinas)"},{value:"FO",label:"Faroe Islands"},{value:"FJ",label:"Fiji"},{value:"FI",label:"Finland"},{value:"FR",label:"France"},{value:"GF",label:"French Guiana"},{value:"PF",label:"French Polynesia"},{value:"TF",label:"French Southern Territories"},{value:"GA",label:"Gabon"},{value:"GM",label:"Gambia"},{value:"GE",label:"Georgia"},{value:"DE",label:"Germany"},{value:"GH",label:"Ghana"},{value:"GI",label:"Gibraltar"},{value:"GR",label:"Greece"},{value:"GL",label:"Greenland"},{value:"GD",label:"Grenada"},{value:"GP",label:"Guadeloupe"},{value:"GU",label:"Guam"},{value:"GT",label:"Guatemala"},{value:"GG",label:"Guernsey"},{value:"GN",label:"Guinea"},{value:"GW",label:"Guinea-Bissau"},{value:"GY",label:"Guyana"},{value:"HT",label:"Haiti"},{value:"HM",label:"Heard Island and McDonald Islands"},{value:"VA",label:"Holy See"},{value:"HN",label:"Honduras"},{value:"HK",label:"Hong Kong"},{value:"HU",label:"Hungary"},{value:"IS",label:"Iceland"},{value:"IN",label:"India"},{value:"ID",label:"Indonesia"},{value:"IR",label:"Iran, Islamic Republic of"},{value:"IQ",label:"Iraq"},{value:"IE",label:"Ireland"},{value:"IM",label:"Isle of Man"},{value:"IL",label:"Israel"},{value:"IT",label:"Italy"},{value:"JM",label:"Jamaica"},{value:"JP",label:"Japan"},{value:"JE",label:"Jersey"},{value:"JO",label:"Jordan"},{value:"KZ",label:"Kazakhstan"},{value:"KE",label:"Kenya"},{value:"KI",label:"Kiribati"},{value:"KP",label:"Korea, Democratic People's Republic of"},{value:"KR",label:"Korea, Republic of"},{value:"KW",label:"Kuwait"},{value:"KG",label:"Kyrgyzstan"},{value:"LA",label:"Lao People's Democratic Republic"},{value:"LV",label:"Latvia"},{value:"LB",label:"Lebanon"},{value:"LS",label:"Lesotho"},{value:"LR",label:"Liberia"},{value:"LY",label:"Libya"},{value:"LI",label:"Liechtenstein"},{value:"LT",label:"Lithuania"},{value:"LU",label:"Luxembourg"},{value:"MO",label:"Macao"},{value:"MG",label:"Madagascar"},{value:"MW",label:"Malawi"},{value:"MY",label:"Malaysia"},{value:"MV",label:"Maldives"},{value:"ML",label:"Mali"},{value:"MT",label:"Malta"},{value:"MH",label:"Marshall Islands"},{value:"MQ",label:"Martinique"},{value:"MR",label:"Mauritania"},{value:"MU",label:"Mauritius"},{value:"YT",label:"Mayotte"},{value:"MX",label:"Mexico"},{value:"FM",label:"Micronesia, Federated States of"},{value:"MD",label:"Moldova, Republic of"},{value:"MC",label:"Monaco"},{value:"MN",label:"Mongolia"},{value:"ME",label:"Montenegro"},{value:"MS",label:"Montserrat"},{value:"MA",label:"Morocco"},{value:"MZ",label:"Mozambique"},{value:"MM",label:"Myanmar"},{value:"NA",label:"Namibia"},{value:"NR",label:"Nauru"},{value:"NP",label:"Nepal"},{value:"NL",label:"Netherlands"},{value:"NC",label:"New Caledonia"},{value:"NZ",label:"New Zealand"},{value:"NI",label:"Nicaragua"},{value:"NE",label:"Niger"},{value:"NG",label:"Nigeria"},{value:"NU",label:"Niue"},{value:"NF",label:"Norfolk Island"},{value:"MK",label:"North Macedonia"},{value:"MP",label:"Northern Mariana Islands"},{value:"NO",label:"Norway"},{value:"OM",label:"Oman"},{value:"PK",label:"Pakistan"},{value:"PW",label:"Palau"},{value:"PS",label:"Palestine, State of"},{value:"PA",label:"Panama"},{value:"PG",label:"Papua New Guinea"},{value:"PY",label:"Paraguay"},{value:"PE",label:"Peru"},{value:"PH",label:"Philippines"},{value:"PN",label:"Pitcairn"},{value:"PL",label:"Poland"},{value:"PT",label:"Portugal"},{value:"PR",label:"Puerto Rico"},{value:"QA",label:"Qatar"},{value:"RO",label:"Romania"},{value:"RU",label:"Russian Federation"},{value:"RW",label:"Rwanda"},{value:"RE",label:"Réunion"},{value:"BL",label:"Saint Barthélemy"},{value:"SH",label:"Saint Helena, Ascension and Tristan da Cunha"},{value:"KN",label:"Saint Kitts and Nevis"},{value:"LC",label:"Saint Lucia"},{value:"MF",label:"Saint Martin (French part)"},{value:"PM",label:"Saint Pierre and Miquelon"},{value:"VC",label:"Saint Vincent and the Grenadines"},{value:"WS",label:"Samoa"},{value:"SM",label:"San Marino"},{value:"ST",label:"Sao Tome and Principe"},{value:"SA",label:"Saudi Arabia"},{value:"SN",label:"Senegal"},{value:"RS",label:"Serbia"},{value:"SC",label:"Seychelles"},{value:"SL",label:"Sierra Leone"},{value:"SG",label:"Singapore"},{value:"SX",label:"Sint Maarten (Dutch part)"},{value:"SK",label:"Slovakia"},{value:"SI",label:"Slovenia"},{value:"SB",label:"Solomon Islands"},{value:"SO",label:"Somalia"},{value:"ZA",label:"South Africa"},{value:"GS",label:"South Georgia and the South Sandwich Islands"},{value:"SS",label:"South Sudan"},{value:"ES",label:"Spain"},{value:"LK",label:"Sri Lanka"},{value:"SD",label:"Sudan"},{value:"SR",label:"Suriname"},{value:"SJ",label:"Svalbard and Jan Mayen"},{value:"SE",label:"Sweden"},{value:"CH",label:"Switzerland"},{value:"SY",label:"Syrian Arab Republic"},{value:"TW",label:"Taiwan, Province of China"},{value:"TJ",label:"Tajikistan"},{value:"TZ",label:"Tanzania, United Republic of"},{value:"TH",label:"Thailand"},{value:"TL",label:"Timor-Leste"},{value:"TG",label:"Togo"},{value:"TK",label:"Tokelau"},{value:"TO",label:"Tonga"},{value:"TT",label:"Trinidad and Tobago"},{value:"TN",label:"Tunisia"},{value:"TR",label:"Turkey"},{value:"TM",label:"Turkmenistan"},{value:"TC",label:"Turks and Caicos Islands"},{value:"TV",label:"Tuvalu"},{value:"UG",label:"Uganda"},{value:"UA",label:"Ukraine"},{value:"AE",label:"United Arab Emirates"},{value:"GB",label:"United Kingdom"},{value:"UM",label:"United States Minor Outlying Islands"},{value:"US",label:"United States"},{value:"UY",label:"Uruguay"},{value:"UZ",label:"Uzbekistan"},{value:"VU",label:"Vanuatu"},{value:"VE",label:"Venezuela, Bolivarian Republic of"},{value:"VN",label:"Viet Nam"},{value:"VG",label:"Virgin Islands, British"},{value:"VI",label:"Virgin Islands, U.S."},{value:"WF",label:"Wallis and Futuna"},{value:"EH",label:"Western Sahara"},{value:"YE",label:"Yemen"},{value:"ZM",label:"Zambia"},{value:"ZW",label:"Zimbabwe"}],Sye=[{value:"AF",label:"افغانستان"},{value:"AX",label:"Åland"},{value:"AL",label:"Shqipëria"},{value:"DZ",label:"الجزائر"},{value:"AS",label:"American Samoa"},{value:"AD",label:"Andorra"},{value:"AO",label:"Angola"},{value:"AI",label:"Anguilla"},{value:"AQ",label:"Antarctica"},{value:"AG",label:"Antigua and Barbuda"},{value:"AR",label:"Argentina"},{value:"AM",label:"Հայաստան"},{value:"AW",label:"Aruba"},{value:"AU",label:"Australia"},{value:"AT",label:"Österreich"},{value:"AZ",label:"Azərbaycan"},{value:"BS",label:"Bahamas"},{value:"BH",label:"‏البحرين"},{value:"BD",label:"Bangladesh"},{value:"BB",label:"Barbados"},{value:"BY",label:"Белару́сь"},{value:"BE",label:"België"},{value:"BZ",label:"Belize"},{value:"BJ",label:"Bénin"},{value:"BM",label:"Bermuda"},{value:"BT",label:"ʼbrug-yul"},{value:"BO",label:"Bolivia"},{value:"BQ",label:"Bonaire"},{value:"BA",label:"Bosna i Hercegovina"},{value:"BW",label:"Botswana"},{value:"BV",label:"Bouvetøya"},{value:"BR",label:"Brasil"},{value:"IO",label:"British Indian Ocean Territory"},{value:"BN",label:"Negara Brunei Darussalam"},{value:"BG",label:"България"},{value:"BF",label:"Burkina Faso"},{value:"BI",label:"Burundi"},{value:"KH",label:"Kâmpŭchéa"},{value:"CM",label:"Cameroon"},{value:"CA",label:"Canada"},{value:"CV",label:"Cabo Verde"},{value:"KY",label:"Cayman Islands"},{value:"CF",label:"Ködörösêse tî Bêafrîka"},{value:"TD",label:"Tchad"},{value:"CL",label:"Chile"},{value:"CN",label:"中国"},{value:"CX",label:"Christmas Island"},{value:"CC",label:"Cocos (Keeling) Islands"},{value:"CO",label:"Colombia"},{value:"KM",label:"Komori"},{value:"CG",label:"République du Congo"},{value:"CD",label:"République démocratique du Congo"},{value:"CK",label:"Cook Islands"},{value:"CR",label:"Costa Rica"},{value:"CI",label:"Côte d'Ivoire"},{value:"HR",label:"Hrvatska"},{value:"CU",label:"Cuba"},{value:"CW",label:"Curaçao"},{value:"CY",label:"Κύπρος"},{value:"CZ",label:"Česká republika"},{value:"DK",label:"Danmark"},{value:"DJ",label:"Djibouti"},{value:"DM",label:"Dominica"},{value:"DO",label:"República Dominicana"},{value:"EC",label:"Ecuador"},{value:"EG",label:"مصر‎"},{value:"SV",label:"El Salvador"},{value:"GQ",label:"Guinea Ecuatorial"},{value:"ER",label:"ኤርትራ"},{value:"EE",label:"Eesti"},{value:"ET",label:"ኢትዮጵያ"},{value:"FK",label:"Falkland Islands"},{value:"FO",label:"Føroyar"},{value:"FJ",label:"Fiji"},{value:"FI",label:"Suomi"},{value:"FR",label:"France"},{value:"GF",label:"Guyane française"},{value:"PF",label:"Polynésie française"},{value:"TF",label:"Territoire des Terres australes et antarctiques fr"},{value:"GA",label:"Gabon"},{value:"GM",label:"Gambia"},{value:"GE",label:"საქართველო"},{value:"DE",label:"Deutschland"},{value:"GH",label:"Ghana"},{value:"GI",label:"Gibraltar"},{value:"GR",label:"Ελλάδα"},{value:"GL",label:"Kalaallit Nunaat"},{value:"GD",label:"Grenada"},{value:"GP",label:"Guadeloupe"},{value:"GU",label:"Guam"},{value:"GT",label:"Guatemala"},{value:"GG",label:"Guernsey"},{value:"GN",label:"Guinée"},{value:"GW",label:"Guiné-Bissau"},{value:"GY",label:"Guyana"},{value:"HT",label:"Haïti"},{value:"HM",label:"Heard Island and McDonald Islands"},{value:"VA",label:"Vaticano"},{value:"HN",label:"Honduras"},{value:"HK",label:"香港"},{value:"HU",label:"Magyarország"},{value:"IS",label:"Ísland"},{value:"IN",label:"भारत"},{value:"ID",label:"Indonesia"},{value:"IR",label:"ایران"},{value:"IQ",label:"العراق"},{value:"IE",label:"Éire"},{value:"IM",label:"Isle of Man"},{value:"IL",label:"יִשְׂרָאֵל"},{value:"IT",label:"Italia"},{value:"JM",label:"Jamaica"},{value:"JP",label:"日本"},{value:"JE",label:"Jersey"},{value:"JO",label:"الأردن"},{value:"KZ",label:"Қазақстан"},{value:"KE",label:"Kenya"},{value:"KI",label:"Kiribati"},{value:"KP",label:"북한"},{value:"KR",label:"대한민국"},{value:"KW",label:"الكويت"},{value:"KG",label:"Кыргызстан"},{value:"LA",label:"ສປປລາວ"},{value:"LV",label:"Latvija"},{value:"LB",label:"لبنان"},{value:"LS",label:"Lesotho"},{value:"LR",label:"Liberia"},{value:"LY",label:"‏ليبيا"},{value:"LI",label:"Liechtenstein"},{value:"LT",label:"Lietuva"},{value:"LU",label:"Luxembourg"},{value:"MO",label:"澳門"},{value:"MK",label:"Северна Македонија"},{value:"MG",label:"Madagasikara"},{value:"MW",label:"Malawi"},{value:"MY",label:"Malaysia"},{value:"MV",label:"Maldives"},{value:"ML",label:"Mali"},{value:"MT",label:"Malta"},{value:"MH",label:"M̧ajeļ"},{value:"MQ",label:"Martinique"},{value:"MR",label:"موريتانيا"},{value:"MU",label:"Maurice"},{value:"YT",label:"Mayotte"},{value:"MX",label:"México"},{value:"FM",label:"Micronesia"},{value:"MD",label:"Moldova"},{value:"MC",label:"Monaco"},{value:"MN",label:"Монгол улс"},{value:"ME",label:"Црна Гора"},{value:"MS",label:"Montserrat"},{value:"MA",label:"المغرب"},{value:"MZ",label:"Moçambique"},{value:"MM",label:"မြန်မာ"},{value:"NA",label:"Namibia"},{value:"NR",label:"Nauru"},{value:"NP",label:"नपल"},{value:"NL",label:"Nederland"},{value:"NC",label:"Nouvelle-Calédonie"},{value:"NZ",label:"New Zealand"},{value:"NI",label:"Nicaragua"},{value:"NE",label:"Niger"},{value:"NG",label:"Nigeria"},{value:"NU",label:"Niuē"},{value:"NF",label:"Norfolk Island"},{value:"MP",label:"Northern Mariana Islands"},{value:"NO",label:"Norge"},{value:"OM",label:"عمان"},{value:"PK",label:"Pakistan"},{value:"PW",label:"Palau"},{value:"PS",label:"فلسطين"},{value:"PA",label:"Panamá"},{value:"PG",label:"Papua Niugini"},{value:"PY",label:"Paraguay"},{value:"PE",label:"Perú"},{value:"PH",label:"Pilipinas"},{value:"PN",label:"Pitcairn Islands"},{value:"PL",label:"Polska"},{value:"PT",label:"Portugal"},{value:"PR",label:"Puerto Rico"},{value:"QA",label:"قطر"},{value:"RE",label:"La Réunion"},{value:"RO",label:"România"},{value:"RU",label:"Россия"},{value:"RW",label:"Rwanda"},{value:"BL",label:"Saint-Barthélemy"},{value:"SH",label:"Saint Helena"},{value:"KN",label:"Saint Kitts and Nevis"},{value:"LC",label:"Saint Lucia"},{value:"MF",label:"Saint-Martin"},{value:"PM",label:"Saint-Pierre-et-Miquelon"},{value:"VC",label:"Saint Vincent and the Grenadines"},{value:"WS",label:"Samoa"},{value:"SM",label:"San Marino"},{value:"ST",label:"São Tomé e Príncipe"},{value:"SA",label:"العربية السعودية"},{value:"SN",label:"Sénégal"},{value:"RS",label:"Србија"},{value:"SC",label:"Seychelles"},{value:"SL",label:"Sierra Leone"},{value:"SG",label:"Singapore"},{value:"SX",label:"Sint Maarten"},{value:"SK",label:"Slovensko"},{value:"SI",label:"Slovenija"},{value:"SB",label:"Solomon Islands"},{value:"SO",label:"Soomaaliya"},{value:"ZA",label:"South Africa"},{value:"GS",label:"South Georgia"},{value:"SS",label:"South Sudan"},{value:"ES",label:"España"},{value:"LK",label:"śrī laṃkāva"},{value:"SD",label:"السودان"},{value:"SR",label:"Suriname"},{value:"SJ",label:"Svalbard og Jan Mayen"},{value:"SZ",label:"Swaziland"},{value:"SE",label:"Sverige"},{value:"CH",label:"Schweiz"},{value:"SY",label:"سوريا"},{value:"TW",label:"臺灣"},{value:"TJ",label:"Тоҷикистон"},{value:"TZ",label:"Tanzania"},{value:"TH",label:"ประเทศไทย"},{value:"TL",label:"Timor-Leste"},{value:"TG",label:"Togo"},{value:"TK",label:"Tokelau"},{value:"TO",label:"Tonga"},{value:"TT",label:"Trinidad and Tobago"},{value:"TN",label:"تونس"},{value:"TR",label:"Türkiye"},{value:"TM",label:"Türkmenistan"},{value:"TC",label:"Turks and Caicos Islands"},{value:"TV",label:"Tuvalu"},{value:"UG",label:"Uganda"},{value:"UA",label:"Україна"},{value:"AE",label:"دولة الإمارات العربية المتحدة"},{value:"GB",label:"United Kingdom"},{value:"US",label:"United States"},{value:"UM",label:"United States Minor Outlying Islands"},{value:"UY",label:"Uruguay"},{value:"UZ",label:"O‘zbekiston"},{value:"VU",label:"Vanuatu"},{value:"VE",label:"Venezuela"},{value:"VN",label:"Việt Nam"},{value:"VG",label:"British Virgin Islands"},{value:"VI",label:"United States Virgin Islands"},{value:"WF",label:"Wallis et Futuna"},{value:"EH",label:"الصحراء الغربية"},{value:"YE",label:"اليَمَن"},{value:"ZM",label:"Zambia"},{value:"ZW",label:"Zimbabwe"}];class j9{constructor(){this.data=jye,this.labelMap={},this.valueMap={},this.data.forEach(e=>{this.labelMap[e.label.toLowerCase()]=e.value,this.valueMap[e.value.toLowerCase()]=e.label})}getValue(e){return this.labelMap[e.toLowerCase()]}getLabel(e){return this.valueMap[e.toLowerCase()]}getLabels(){return this.data.map(e=>e.label)}getValues(){return this.data.map(e=>e.value)}getLabelList(){return this.labelMap}getValueList(){return this.valueMap}getData(){return this.data}setLabel(e,r){return this.data.forEach(n=>{n.value===e&&(n.label=r,this.valueMap[n.value.toLowerCase()]=n.label)}),this}setEmpty(e){return this.data.unshift({value:"",label:e}),this.valueMap[""]=e,this.labelMap[e]="",this}native(){return this.nativeData=Sye,this.nativeData.forEach(e=>{this.labelMap[e.label.toLowerCase()]=e.value,this.valueMap[e.value.toLowerCase()]=e.label}),this}}const Cye=()=>{if(!(void 0 instanceof j9))return new j9};var Aye=Cye;const tW=zv(Aye);function Oye({mode:t="create"}){const{close:e}=db(),{toast:r}=Ro(),[n,o]=F.useState(!1),a=dh({defaultValues:{language_alignment:"LTR",language:"",country:""},mode:"onChange"}),{checkDemo:f}=lo(),p=a.watch("language"),m=!(p!=null&&p.trim()),v=F.useMemo(()=>tW().getData(),[]);F.useEffect(()=>{t==="edit"&&(a.setValue("language_alignment",a.getValues("language_alignment")),a.setValue("language",a.getValues("language")),a.setValue("country",a.getValues("country")))},[t,a]);const y=async x=>{o(!0);try{if(f())return;const k={language_alignment:x.language_alignment,language:x.language,country:x.country},S=await Zi.addLanguage(k);if(S.status)r({title:"Success!",description:"Language added successfully!",variant:"success"}),a.reset(),e();else throw new Error(S.message||`Failed to ${t==="edit"?"update":"upload"} language`)}catch{r({title:"Error",description:"Failed to add language. Please try again.",variant:"error"})}finally{o(!1)}};return A.jsx("div",{className:"space-y-4 sm:space-y-6 px-3 sm:px-4",children:A.jsxs(fh,{form:a,onSubmit:y,className:"space-y-4 sm:space-y-6",children:[A.jsxs(ko,{children:[A.jsx(Ci,{required:!0,children:"Language Alignment"}),A.jsx(jo,{children:A.jsx(Yo,{name:"language_alignment",children:A.jsx("div",{className:"flex flex-col sm:flex-row gap-4 sm:gap-6 mt-2 text-text-muted",children:["RTL","LTR"].map(x=>A.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-sm sm:text-base",children:[A.jsx("input",{type:"radio",value:x,checked:a.watch("language_alignment")===x,onChange:()=>a.setValue("language_alignment",x),className:"w-4 h-4"}),x]},x))})})}),A.jsx(So,{})]}),A.jsxs(ko,{children:[A.jsx(Ci,{required:!0,children:"Language"}),A.jsx(jo,{children:A.jsx(Yo,{name:"language",children:A.jsx("input",{placeholder:"Enter Language",disabled:n,onChange:x=>a.setValue("language",x.target.value),className:"flex h-10 sm:h-10 w-full sm:w-[30vw] max-w-full rounded-md border border-table-divider px-3 py-2 mt-2 text-sm text-text-muted focus:border-blue-500 focus:ring-2 focus:ring-blue-200 outline-none"})})}),A.jsx(So,{})]}),A.jsxs(ko,{children:[A.jsx(Ci,{required:!0,children:"Country"}),A.jsx(jo,{children:A.jsx(Yo,{name:"country",children:A.jsx(eW,{options:v,isSearchable:!0,value:a.watch("country")?v.find(x=>{var k;return x.value===(((k=JSON.parse(a.watch("country")))==null?void 0:k.code)||"")}):null,onChange:x=>{if(x){const{value:k,label:S}=x;a.setValue("country",JSON.stringify({code:k,label:S}))}else a.setValue("country","")},isDisabled:n,classNamePrefix:"rs",classNames:{control:({isFocused:x})=>`flex items-center bg-secondary text-text-muted border border-table-divider w-full sm:w-[30vw] rounded-md px-2 py-1 shadow-sm min-h-[38px]
                    ${x?"ring-1 ring-primary":"border-secondary ring-1 ring-text-muted"}`,option:({isFocused:x,isSelected:k})=>`px-3 py-2 cursor-pointer ${k?"bg-primary text-white":x?"bg-secondary text-primary":"text-text-muted"}`},styles:{control:()=>({})}})})}),A.jsx(So,{})]}),A.jsx("div",{className:"flex justify-center pt-2 sm:pt-2",children:A.jsx(Pt,{type:"submit",disabled:m||n,className:"w-32 sm:w-40 bg-primary text-button-text  font-semibold py-2 text-sm sm:text-base rounded-md transition-colors duration-200",children:n?t==="edit"?"Updating...":"Uploading...":"Submit"})})]})})}const Eye="/admin/Images/dashboard1.png",Tye="/admin/Images/gift.png",QO="/admin/Images/userlisrrr.png",Rye="/admin/Images/flag12.png",Pye="/admin/Images/language12.png",zye="/admin/Images/setttingrrrr.png",Mye="/admin/Images/cms121.png",Iye="/admin/Images/notify12.png",wa=(t,e)=>function({className:n}){return Ge.createElement("img",{src:t,alt:e,className:n})},rW=[{title:"DASHBOARD",children:[{title:"Dashboard",icon:wa(Eye,"Dashboard"),path:"/dashboard"}]},{title:"LIST",isOpen:!0,children:[{title:"Report List",icon:wa(Tye,"Report List"),children:[{title:"Report Types List",path:"/reports-list/report-types",icon:_0},{title:"Add Report Type",modal:{id:"add-report-type-modal",component:Hge,props:{title:"Add Report Type",message:"This is a full-screen modal that can be opened from the sidebar navigation."}}},{title:"User Report List",path:"/reports-list/users",icon:_0},{title:"Group Report List",path:"/reports-list/groups",icon:YO}]},{title:"User List",path:"/users/user-list",icon:wa(QO,"User List")},{title:"Countrywise User List",path:"/users/countrywise-user-list",icon:wa(Rye,"Countrywise User List")},{title:"Group List",path:yt.GROUP.LIST,icon:Lie},{title:"Language",icon:wa(Pye,"Language"),children:[{title:"Language List",path:"/language/language-list",icon:_0},{title:"Language add",icon:YO,modal:{id:"add-avatar-modal",component:Oye,props:{title:"Add Language",message:"This is a full-screen modal that can be opened from the sidebar navigation."}}}]},{title:"Block List",icon:wa(QO,"Block List"),path:"/users/block-list"},{title:"Avatar",icon:wa(QO,"Avatar"),children:[{title:"Avatar List",path:"/avatar/avatar-list",icon:_0},{title:"Avatar add",icon:YO,modal:{id:"add-avatar-modal",component:fY,props:{title:"Add Avatar",message:"This is a full-screen modal that can be opened from the sidebar navigation."}}}]}]},{title:"CALLS",isOpen:!0,children:[{title:"Calls",icon:yie,children:[{title:"Audio Call List",path:"/calls/audio-call-list"},{title:"Video Call List",path:"/calls/video-call-list"}]}]},{title:"NOTIFICATION",isOpen:!0,children:[{title:"Notification",icon:wa(Iye,"Notification"),children:[{title:"Push Notification List",path:"/notifications/notification-list"},{title:"Push Notification add",modal:{id:"add-notifiaction-modal",component:Bge,props:{title:"Send Notification",message:"This is a full-screen modal that can be opened from the sidebar navigation."}}}]}]},{title:"SETTING",isOpen:!0,children:[{title:"Settings",icon:wa(zye,"Settings"),path:"/settings"},{title:"CMS Pages",icon:wa(Mye,"CMS Pages"),path:"/cms-pages"}]}];function Lye(){const{theme:t,systemTheme:e,setTheme:r,toggleTheme:n}=au(),o=t==="light"?"light":t;return{theme:t,systemTheme:e,currentTheme:o,isDark:o==="dark",setTheme:v=>{r(v)},toggleTheme:()=>{n()},getColor:v=>{try{return`var(--color-${v})`}catch{return console.warn(`Color not found: ${v}`),"inherit"}}}}function Nye({variant:t="outline",className:e,...r}){const{theme:n,setTheme:o}=Lye(),a=()=>{o(n==="light"?"dark":"light")};return A.jsxs(Pt,{variant:"default",size:"icon",className:"h-10 w-10 border  rounded-full text-text  ",onClick:a,...r,children:[n==="light"&&A.jsx(Eie,{className:"h-5 w-5 "}),n==="dark"&&A.jsx(gie,{className:"h-5 w-5"}),A.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}const Dye=$ue,Bye=Zue,Fye=Kue,Hye=F.forwardRef(({className:t,inset:e,children:r,...n},o)=>A.jsxs(_3,{ref:o,className:Ne("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",e&&"pl-8",t),...n,children:[r,A.jsx(Jw,{className:"ml-auto h-4 w-4"})]}));Hye.displayName=_3.displayName;const Uye=F.forwardRef(({className:t,...e},r)=>A.jsx(k3,{ref:r,className:Ne("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));Uye.displayName=k3.displayName;const nW=F.forwardRef(({className:t,sideOffset:e=4,...r},n)=>A.jsx(g3,{children:A.jsx(m3,{ref:n,sideOffset:e,className:Ne("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r})}));nW.displayName=m3.displayName;const dR=F.forwardRef(({className:t,inset:e,...r},n)=>A.jsx(b3,{ref:n,className:Ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t),...r}));dR.displayName=b3.displayName;const Vye=F.forwardRef(({className:t,children:e,checked:r,...n},o)=>A.jsxs(y3,{ref:o,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:r,...n,children:[A.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:A.jsx(d1,{children:A.jsx(tU,{className:"h-4 w-4"})})}),e]}));Vye.displayName=y3.displayName;const qye=F.forwardRef(({className:t,children:e,...r},n)=>A.jsxs(x3,{ref:n,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[A.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:A.jsx(d1,{children:A.jsx(V4,{className:"h-2 w-2 fill-current"})})}),e]}));qye.displayName=x3.displayName;const oW=F.forwardRef(({className:t,inset:e,...r},n)=>A.jsx(v3,{ref:n,className:Ne("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t),...r}));oW.displayName=v3.displayName;const fR=F.forwardRef(({className:t,...e},r)=>A.jsx(w3,{ref:r,className:Ne("-mx-1 my-1 h-px bg-muted",t),...e}));fR.displayName=w3.displayName;class Yye extends Ri{constructor(){super("admin")}async isNotificationAvailable(){return this.get("/is-notification-available")}async notificationList(e={}){return this.post("/new-user-notifications",{page:e.page??xt.PAGINATION.DEFAULT_PAGE,limit:e.limit??xt.PAGINATION.DEFAULT_PAGE_SIZE})}}const S9=new Yye,iW=v1((t,e)=>({isAvailable:!1,loading:!1,error:null,notifications:[],pagination:null,loadingMore:!1,fetchAvailability:async()=>{t({loading:!0,error:null});try{const r=await S9.isNotificationAvailable();t({isAvailable:r.data.is_available,loading:!1})}catch(r){t({error:r.message??"Failed to fetch",loading:!1})}},setAvailable:r=>t({isAvailable:r}),fetchNotifications:async(r=1,n=10)=>{const{notifications:o}=e();t({loadingMore:!0});try{const a=await S9.notificationList({page:r,limit:n});t({notifications:r===1?a.data.newUsers:[...o,...a.data.newUsers],pagination:a.data.Pagination,loadingMore:!1})}catch(a){t({error:a.message??"Failed to load notifications",loadingMore:!1})}}}));function Wye(){const{isAvailable:t,setAvailable:e,fetchNotifications:r,notifications:n,pagination:o,loadingMore:a}=iW();function f(S){const O=new Date(S),R=Math.floor((new Date().getTime()-O.getTime())/1e3);if(R<60)return`${R} sec ago`;const E=Math.floor(R/60);if(E<60)return`${E} min ago`;const P=Math.floor(E/60);if(P<24)return`${P} hour${P>1?"s":""} ago`;const M=Math.floor(P/24);if(M<30)return`${M} day${M>1?"s":""} ago`;const I=Math.floor(M/30);if(I<12)return`${I} month${I>1?"s":""} ago`;const B=Math.floor(I/12);return`${B} year${B>1?"s":""} ago`}const[p,m]=F.useState(!1),[v,y]=F.useState(!1),x=F.useRef(null),k=Va();return F.useEffect(()=>{function S(O){x.current&&!x.current.contains(O.target)&&m(!1)}return p&&(r(1,5),e(!1),document.addEventListener("mousedown",S)),()=>{document.removeEventListener("mousedown",S)}},[p,r,e]),A.jsxs("div",{className:"relative inline-block",children:[A.jsxs(Pt,{size:"icon",onClick:()=>m(S=>!S),className:"relative h-10 w-10  border rounded-full    l text-text ",children:[A.jsx(Doe,{className:"h-5 w-5"}),t&&A.jsxs("span",{className:"flex absolute w-3 h-3 ltr:right-0 rtl:left-0 top-0",children:[A.jsx("span",{className:"animate-ping-custom absolute -right-[2px] -top-[3px] inline-flex h-3 w-3 rounded-full bg-green-500/75"}),A.jsx("span",{className:"absolute -right-[2px]  -top-[1px] inline-flex rounded-full w-2 h-2 bg-green-500"})]})]}),p&&A.jsx("div",{ref:x,className:"notification-dropdown w-auto rounded-sm  border border-table-divider bg-secondary shadow-lg overflow-hidden",children:(n==null?void 0:n.length)===0?A.jsx("div",{className:"p-4 text-sm text-gray-500",children:"No notifications"}):A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"w-full  flex  justify-between py-3 text-sm font-medium text-center  border-b border-b-table-divider",children:[A.jsx("div",{className:" px-3 font-semibold text-table-header-text",children:"Notification"}),A.jsx("div",{className:" bg-primary-light mr-3 rounded-md",children:A.jsxs("span",{className:"px-2 py-1 text-[12px] text-black",children:[o==null?void 0:o.total_records," New"]})})]}),A.jsxs("div",{className:"divide-y divide-table-divider",children:[A.jsx("ul",{children:n.map(S=>A.jsx("li",{className:"p-3 text-sm bg-table-row hover:bg-table-row-hover border-b border-b-table-divider",children:A.jsxs("div",{className:"flex items-center",children:[A.jsx("img",{src:(S==null?void 0:S.profile_pic)||"/default-avatar.png",alt:S.first_name,className:"h-12 w-12 rounded-full mr-2 object-cover",onError:O=>{O.target.src="/default-avatar.png"}}),A.jsxs("div",{children:[A.jsxs("div",{children:[A.jsxs("span",{className:"font-semibold text-table-header-text pr-2",children:[S.first_name," ",S.last_name||""]}),A.jsx("span",{className:"text-table-header-text",children:"is added as"}),A.jsx("span",{className:"pl-2 font-semibold text-table-header-text",children:"New User"})]}),A.jsx("p",{className:"text-xs text-gray-500",children:f(S.createdAt)})]})]})},S.user_id))}),A.jsx("div",{className:"w-full flex justify-center py-2 px-3",children:A.jsx("button",{onClick:()=>{m(!1),k("/users/user-list")},className:"w-full  bg-gradient-to-r from-primary to-primary/60 text-black font-medium py-1 rounded-md transition-colors duration-200",children:"View All Users"})})]})]})})]})}function aW({className:t,variant:e="default",onMenuClick:r,showMobileMenu:n=!1,sidebarOpen:o=!1}){au();const{user:a,logout:f}=bh(),[p,m]=F.useState(!1),[v,y]=F.useState(""),[x,k]=F.useState([]),[S,O]=F.useState(!1),C=F.useRef(null),R=Va(),E=e==="transparent",{isAvailable:P,loading:M,fetchAvailability:I}=iW();F.useEffect(()=>{if(E){const W=()=>{const G=window.scrollY>10;G!==p&&m(G)};return window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)}},[E,p]),F.useEffect(()=>{I();function W(G){C.current&&!C.current.contains(G.target)&&O(!1)}return document.addEventListener("mousedown",W),()=>{document.removeEventListener("mousedown",W)}},[]);const B=W=>{if(!W.trim()){k([]);return}const G=[],Z=W.toLowerCase(),K=(Q,oe=[])=>{Q.forEach((ie,re)=>{const ne=[...oe,re];(ie.title.toLowerCase().includes(Z)||ie.path&&ie.path.toLowerCase().includes(Z)||ie.modal&&ie.modal.id.toLowerCase().includes(Z))&&(ie.path||ie.modal)&&G.push({title:ie.title,path:ie.path,icon:ie.icon,modal:ie.modal,onClick:()=>{if(ie.path)R(ie.path);else if(ie.modal){const ue=new CustomEvent("openModal",{detail:{id:ie.modal.id,component:ie.modal.component,props:ie.modal.props}});window.dispatchEvent(ue)}y(""),k([])}}),ie.children&&K(ie.children,ne)})};K(rW),k(G)},U=W=>{const G=W.target.value;y(G),B(G)},H=()=>{y(""),k([])},V=Ne("w-full transition-all duration-300 ease-in-out",E?"fixed top-0 left-0 right-0 z-50 py-4":"border-b border-secondary-light py-3",E&&p?"bg-white/80 dark:bg-gray-900/80 backdrop-blur-md border-b border-secondary-light shadow-sm":"bg-transparent",E&&!p&&"border-transparent",t);return A.jsx("header",{className:V,children:A.jsx("div",{className:"w-full  px-4 sm:px-6 lg:px-8",children:A.jsxs("div",{className:"flex items-center w-full justify-between h-12 md:h-14",children:[n&&r&&A.jsx("button",{onClick:r,className:"p-2 rounded-md text-text-muted hover:text-primary-dark hover:bg-secondary-light focus:outline-none focus:ring-2 focus:ring-inset focus:ring-primary-500 md:hidden","aria-label":o?"Close menu":"Open menu",children:A.jsx(hie,{className:"h-6 w-6"})}),A.jsxs("div",{className:Ne("relative w-64 hidden md:block",n&&"md:block"),ref:C,children:[A.jsxs("div",{className:"relative",children:[A.jsx(sh,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 font-extrabold text-text-muted"}),A.jsx(Dr,{type:"text",placeholder:"Search...",className:"pl-9 bg-secondary/80 text-text-muted  ",value:v,onChange:U,onFocus:()=>O(!0)}),v&&A.jsx("button",{onClick:H,className:"absolute right-2 top-1/2 -translate-y-1/2 font-extrabold text-text-muted","aria-label":"Clear search",children:A.jsx(Qw,{className:"h-4 w-4"})})]}),S&&x.length>0&&A.jsx("div",{className:"absolute z-50 mt-1 w-full bg-secondary rounded-md shadow-lg border !border-text-muted  max-h-96 overflow-y-auto",children:A.jsx("div",{className:"py-1",children:x.map((W,G)=>A.jsxs("button",{onClick:Z=>{Z.preventDefault(),W.onClick(),O(!1)},className:"w-full text-left px-4 py-2 text-sm text-text-muted hover:font-bold hover:bg-table-header-bg flex items-center",children:[W.icon&&A.jsx(W.icon,{className:"mr-3 h-4 w-4 text-gray-400"}),A.jsx("span",{children:W.title})]},`${W.title}-${G}`))})})]}),A.jsxs("div",{className:"flex items-center space-x-2 sm:space-x-4",children:[A.jsx(Nye,{}),A.jsx(Wye,{}),a?A.jsx("div",{children:A.jsxs(Dye,{children:[A.jsx(Bye,{asChild:!0,children:A.jsx(Pt,{variant:"ghost",className:Ne("relative h-10 w-10 rounded-full p-0 mt-1.5",E&&!p?"text-white hover:bg-white/10":"hover:bg-gray-100 dark:hover:bg-gray-800"),children:A.jsx(sq,{src:a.profile_pic??null,alt:a.full_name,size:"md",className:"h-10 w-10 border  rounded-full"})})}),A.jsxs(nW,{className:"w-auto border-table-divider bg-secondary text-text-secondary shadow-default",align:"end",forceMount:!0,children:[A.jsx(oW,{className:"font-normal border-b border-b-table-divider",children:A.jsxs("div",{className:"w-64 flex space-x-2  justify-start py-2 ",children:[A.jsx("img",{src:a.profile_pic,className:"h-8 w-8 rounded-full",alt:""}),A.jsxs("div",{className:"flex flex-col space-y-1 justify-center",children:[A.jsx("span",{className:"text-sm font-semibold leading-none",children:a.full_name}),A.jsx("span",{className:"text-xs font-light leading-none text-muted-foreground",children:a.email})]})]})}),A.jsx(fR,{}),A.jsx(Fye,{children:A.jsx(dR,{asChild:!0,children:A.jsxs($i,{to:"/profile",className:"w-full cursor-pointer border-b border-b-table-divider pb-4",children:[A.jsx(vm,{className:"mr-2 h-4 w-4"}),A.jsx("span",{children:"Profile"})]})})}),A.jsx(fR,{}),A.jsxs(dR,{onClick:()=>f(),className:"cursor-pointer text-red-600 focus:text-red-600",children:[A.jsx(uie,{className:"mr-2 h-4 w-4"}),A.jsx("span",{children:"Log out"})]})]})]})}):A.jsxs(A.Fragment,{children:[A.jsx(Pt,{asChild:!0,variant:E&&!p?"outline":"ghost",className:Ne("hidden sm:inline-flex",E&&!p&&"border-secondary text-white hover:bg-white/10 hover:text-white"),children:A.jsx($i,{to:"/login",children:"Sign in"})}),A.jsx(Pt,{asChild:!0,className:Ne("hidden sm:inline-flex",E&&!p?"bg-white text-gray-900 hover:bg-gray-100":""),children:A.jsx($i,{to:"/register",children:"Get started"})})]})]})]})})})}aW.displayName="Header";const Xye=({className:t,collapsed:e=!1,onCollapse:r})=>{var R;const{config:n}=ub(),o=au(E=>E.resolvedTheme),a=$o(),f=Va();F.useEffect(()=>{const E=P=>{const{id:M,component:I,props:B}=P.detail;m({id:M,component:I,props:B||{}})};return window.addEventListener("openModal",E),()=>{window.removeEventListener("openModal",E)}},[]);const[p,m]=F.useState(null),[v,y]=F.useState(()=>{const E=P=>({...P,isOpen:P.isOpen??!1,children:(P.children||[]).map(E)});return rW.map(E)}),x=E=>E.path&&a.pathname===E.path?!0:E.children&&E.children.length>0?E.children.some(P=>x(P)):!1,k=(E,P)=>E.map((M,I)=>P.length===1&&P[0]===I?{...M,isOpen:!M.isOpen}:P.length>0&&P[0]===I?{...M,children:M.children?k(M.children,P.slice(1)):[]}:M),S=(E,P,M)=>{var I;E.stopPropagation(),(I=P.children)!=null&&I.length?(console.log("clickeddd"),y(B=>k(B,[...M]))):P.modal?(m({id:P.modal.id,component:P.modal.component,props:P.modal.props||{}}),window.innerWidth<768&&r&&r(!0)):P.path&&(f(P.path),window.innerWidth<768&&r&&r(!0))},O=(E,P=[],M=0)=>{const I=E.children.length>0,B=E.path?a.pathname===E.path:!1,U=x(E),H=B||U,V=E.icon,W=M===0,G=M===1;return e&&W?I?A.jsx("div",{className:"space-y-1",children:E.children.map((Z,K)=>A.jsx("div",{className:"flex justify-center",children:Z.title&&A.jsx($i,{to:Z.path||"#",className:Ne("p-2 rounded-md transition-colors","flex items-center justify-center","focus:outline-none",x(Z)?"bg-secondary-light text-primary-dark":"text-text-muted hover:bg-secondary-light "),title:Z.title,children:Z.icon&&A.jsx(Z.icon,{className:"h-6 w-6"})})},K))},P.join("-")):null:W?A.jsxs("div",{className:"space-y-1",children:[A.jsxs("button",{onClick:Z=>S(Z,E,P),style:{border:"none",outline:"none",boxShadow:"none"},className:Ne("w-full flex items-center px-3 py-2 rounded-md text-sm, font-extrabold transition-colors","focus:outline-none focus:ring-1 focus:ring-primary-500",H?" text-primary-dark font-semibold":"text-table-header-text hover:text-primary-dark",e?"justify-center":"justify-start"),children:[A.jsxs("div",{className:`flex items-center ${H?"text-primary-dark font-semibold":""}`,children:[V&&A.jsx(V,{className:Ne("h-1 w-1 flex-shrink-0",e?"mx-auto":"mr-3")}),!e&&A.jsx("span",{className:"truncate ",children:E.title})]}),!e&&E.badge!==void 0&&A.jsx("span",{className:"ml-auto inline-flex items-center justify-center px-2 py-0.5 text-xs font-medium rounded-full bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-200",children:E.badge})]}),I&&A.jsx("div",{className:"ml-1 pl-2   space-y-1 mt-1",children:E.children.map((Z,K)=>A.jsx("div",{children:O(Z,[...P,K],M+1)},K))})]},P.join("-")):G?!I&&E.path?A.jsxs($i,{to:E.path,className:Ne("w-full flex items-center px-3 py-2 rounded-md text-sm  transition-colors ","focus:outline-none",H?" text-primary-dark font-semibold":"text-text-muted ","justify-between"),children:[A.jsxs("div",{className:"flex items-center",children:[V&&A.jsx(V,{className:Ne("h-5 w-5 flex-shrink-0 mr-3")}),A.jsx("span",{className:"truncate hover:text-primary-dark",children:E.title})]}),E.badge!==void 0&&A.jsx("span",{className:"ml-2 inline-flex items-center justify-center px-2 py-0.5 text-xs font-medium rounded-full bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-200",children:E.badge})]},P.join("-")):A.jsxs("div",{className:"space-y-1",children:[A.jsxs("button",{onClick:Z=>S(Z,E,P),style:{border:"none",outline:"none",boxShadow:"none"},className:Ne("w-full flex cursor-pointer items-center px-3 py-2 rounded-md text-sm  transition-colors","focus:outline-none","justify-between",H?" text-primary-dark font-semibold":"text-text-muted "),children:[A.jsxs("div",{className:"flex items-center",children:[V&&A.jsx(V,{className:Ne("h-5 w-5 font-bold flex-shrink-0 mr-3",H?"text-primary-dark font-semibold":"")}),A.jsx("span",{className:"truncate  hover:text-primary-dark",children:E.title})]}),I&&A.jsx(Jw,{className:Ne("h-4 w-4 transition-transform duration-200",E.isOpen?"rotate-90":"")})]}),E.isOpen&&A.jsx("div",{className:"ml-4 mt-1 relative",children:E.children.map((Z,K)=>{const Q=K===E.children.length-1;return A.jsxs("div",{className:"relative pl-4",children:[A.jsx("div",{className:Ne("absolute left-0 top-0 w-px bg-sidebar-branch",Q?"h-4":"h-full")}),A.jsx("svg",{className:"absolute -left-[0.2px] top-2 w-8 h-8 text-sidebar-branch",viewBox:"0 0 34 35",fill:"none",children:A.jsx("path",{d:"M0 0 V14 Q0 20, 8 20 H20",stroke:"currentColor",strokeWidth:"1",fill:"none"})}),A.jsx("div",{onClick:oe=>S(oe,Z,[...P,K]),className:Ne("w-full flex items-center justify-between py-2 pl-2 rounded-md","text-2xl transition-colors cursor-pointer","hover:text-primary-dark/50",x(Z)?"text-primary-dark":"text-table-header-text"),children:O(Z,[...P,K],M+1)})]},K)})})]},P.join("-")):A.jsxs($i,{to:E.path||"#",className:Ne("flex items-center px-3 py-1.5 rounded-md text-sm  transition-colors","focus:outline-none",H?"text-primary-dark font-semibold":"text-text-muted ","hover:bg-secondary-ligh","justify-between","text-sm"),children:[A.jsx("span",{className:"truncate hover:text-primary-dark ",children:E.title}),E.badge!==void 0&&A.jsx("span",{className:"ml-2 inline-flex items-center justify-center px-1.5 py-0.5 text-md font-medium rounded-full bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-200",children:E.badge})]},P.join("-"))},C=()=>{m(null)};return A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:Ne("flex flex-col h-screen bg-secondary border-r border-secondary-light","transition-all duration-200 ease-in-out",e?"w-16":"w-64",t),children:[A.jsx("div",{className:`flex items-center justify-between ${e?"h-18":"h-24"} px-4`,children:A.jsx($i,{to:"/",className:"flex items-center space-x-2",children:e?A.jsx("img",{src:n==null?void 0:n.app_logo_dark,alt:"Logo",className:"h-8"}):A.jsx("img",{src:o==="dark"?n==null?void 0:n.web_logo_dark:n==null?void 0:n.web_logo_light,alt:"Logo",className:"h-20"})})}),A.jsx("div",{className:"flex-1 overflow-y-auto -py-2 px-2 space-y-1 ",children:v.map((E,P)=>A.jsx("div",{children:O(E,[P],0)},P))})]}),p&&A.jsx(La,{isOpen:!0,onClose:C,title:(R=p.props)==null?void 0:R.title,showCloseButton:!0,children:A.jsx("div",{className:"",children:A.jsx(p.component,{...p.props})})})]})},sW=F.createContext(void 0),Gye=({children:t})=>{const[e,r]=F.useState(()=>()=>{}),n=o=>{r(()=>o)};return A.jsx(sW.Provider,{value:{openAvatarModal:e,setOpenAvatarModal:n},children:t})},$ye=()=>{const t=F.useContext(sW);if(t===void 0)throw new Error("useModal must be used within a ModalProvider");return t},Zye=F.createContext(null),eE={didCatch:!1,error:null};class Kye extends F.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=eE}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var r,n,o=arguments.length,a=new Array(o),f=0;f<o;f++)a[f]=arguments[f];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:a,reason:"imperative-api"}),this.setState(eE)}}componentDidCatch(e,r){var n,o;(n=(o=this.props).onError)===null||n===void 0||n.call(o,e,r)}componentDidUpdate(e,r){const{didCatch:n}=this.state,{resetKeys:o}=this.props;if(n&&r.error!==null&&Jye(e.resetKeys,o)){var a,f;(a=(f=this.props).onReset)===null||a===void 0||a.call(f,{next:o,prev:e.resetKeys,reason:"keys"}),this.setState(eE)}}render(){const{children:e,fallbackRender:r,FallbackComponent:n,fallback:o}=this.props,{didCatch:a,error:f}=this.state;let p=e;if(a){const m={error:f,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")p=r(m);else if(n)p=F.createElement(n,m);else if(o!==void 0)p=o;else throw f}return F.createElement(Zye.Provider,{value:{didCatch:a,error:f,resetErrorBoundary:this.resetErrorBoundary}},p)}}function Jye(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.length!==e.length||t.some((r,n)=>!Object.is(r,e[n]))}function lW({children:t,className:e}){const[r,n]=F.useState(!1),[o,a]=F.useState(!1),[f,p]=F.useState(!1),{user:m}=bh(),{openAvatarModal:v}=$ye(),y=$o(),x=Va(),[k,S]=F.useState(!1);if(F.useEffect(()=>{const C=()=>{p(window.innerWidth<768)};return C(),window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[]),F.useEffect(()=>{f&&a(!1)},[y.pathname,f]),F.useEffect(()=>{S(!0)},[]),F.useEffect(()=>{m||x(yt.LOGIN,{replace:!0})},[m,x]),!k)return A.jsx("div",{className:"flex h-screen items-center justify-center",children:A.jsx(HD,{className:"h-8 w-8 animate-spin"})});if(!m)return null;Nge(y.pathname);const O=()=>{n(!r)};return A.jsxs("div",{className:Ne("flex h-screen bg-secondary",e),children:[!f&&A.jsx("button",{onClick:O,className:Ne("fixed top-4   cursor-pointer bg-text-muted/55 shadow-lg"," ","transition-all duration-200 ","flex items-center justify-center h-6 w-6","transform translate-x-0","overflow-visible",r?"md:left-16":"md:left-64"),style:{left:r?"64px":"256px"},"aria-label":r?"Expand sidebar":"Collapse sidebar",children:A.jsx("div",{className:" z-50",children:r?A.jsx(Jw,{className:"h-5 w-5 text-text-muted"}):A.jsx(Voe,{className:"h-5 w-5 text-text-muted"})})}),f&&o&&A.jsx("div",{className:Ne("fixed inset-0 z-40 ","transition-opacity duration-300","bg-secondary","backdrop-blur-sm"),onClick:()=>a(!1),"aria-hidden":!o}),A.jsx("div",{className:Ne("fixed inset-y-0 left-0 z-50 transform transition-transform duration-300 ease-in-out","bg-secondary","border-r border-gray-200 dark:border-gray-700","flex flex-col","shadow-lg",f?o?"translate-x-0 w-64":"-translate-x-full w-64":`static translate-x-0 shadow-none ${r?"w-16":"w-64"}`),children:A.jsx(Xye,{collapsed:!f&&r,onCollapse:n,className:Ne("transition-all duration-200 ease-in-out",f?"w-64":r?"w-16":"w-64")})}),A.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[A.jsx(aW,{onMenuClick:()=>a(!o),variant:"",showMobileMenu:f,sidebarOpen:o}),A.jsx("main",{className:"flex-1 overflow-y-auto focus:outline-none p-4 md:p-6",children:A.jsx("div",{className:"max-w-full mx-auto",children:A.jsx("div",{className:" ",children:A.jsx(Kye,{fallback:A.jsxs("div",{className:"text-center py-8",children:[A.jsx(rU,{className:"mx-auto h-12 w-12 text-red-500"}),A.jsx("h3",{className:"mt-2 text-sm font-medium text-gray-900 dark:text-white",children:"Something went wrong"}),A.jsx("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:"We're having trouble loading this content. Please try again later."}),A.jsx("div",{className:"mt-6",children:A.jsx(Pt,{onClick:()=>window.location.reload(),children:"Try again"})})]}),children:A.jsx(F.Suspense,{fallback:A.jsx("div",{className:"flex items-center justify-center ",children:A.jsx(HD,{className:"h-8 w-8 animate-spin"})}),children:t||A.jsx(Ife,{})})})})})})]})]})}lW.displayName="DashboardLayout";function Qye(){const t=Va();return F.useEffect(()=>{t("/dashboard")},[t]),null}const C9=(t,e,r)=>{if(t&&"reportValidity"in t){const n=De(r,e);t.setCustomValidity(n&&n.message||""),t.reportValidity()}},hR=(t,e)=>{for(const r in e.fields){const n=e.fields[r];n&&n.ref&&"reportValidity"in n.ref?C9(n.ref,r,t):n&&n.refs&&n.refs.forEach(o=>C9(o,r,t))}},A9=(t,e)=>{e.shouldUseNativeValidation&&hR(t,e);const r={};for(const n in t){const o=De(e.fields,n),a=Object.assign(t[n]||{},{ref:o&&o.ref});if(e0e(e.names||Object.keys(t),n)){const f=Object.assign({},De(r,n));Zt(f,"root",a),Zt(r,n,f)}else Zt(r,n,a)}return r},e0e=(t,e)=>{const r=O9(e);return t.some(n=>O9(n).match(`^${r}\\.\\d+`))};function O9(t){return t.replace(/\]|\[/g,"")}function je(t,e,r){function n(p,m){var v;Object.defineProperty(p,"_zod",{value:p._zod??{},enumerable:!1}),(v=p._zod).traits??(v.traits=new Set),p._zod.traits.add(t),e(p,m);for(const y in f.prototype)y in p||Object.defineProperty(p,y,{value:f.prototype[y].bind(p)});p._zod.constr=f,p._zod.def=m}const o=(r==null?void 0:r.Parent)??Object;class a extends o{}Object.defineProperty(a,"name",{value:t});function f(p){var m;const v=r!=null&&r.Parent?new a:this;n(v,p),(m=v._zod).deferred??(m.deferred=[]);for(const y of v._zod.deferred)y();return v}return Object.defineProperty(f,"init",{value:n}),Object.defineProperty(f,Symbol.hasInstance,{value:p=>{var m,v;return r!=null&&r.Parent&&p instanceof r.Parent?!0:(v=(m=p==null?void 0:p._zod)==null?void 0:m.traits)==null?void 0:v.has(t)}}),Object.defineProperty(f,"name",{value:t}),f}class pv extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const cW={};function xu(t){return cW}function t0e(t){const e=Object.values(t).filter(n=>typeof n=="number");return Object.entries(t).filter(([n,o])=>e.indexOf(+n)===-1).map(([n,o])=>o)}function pR(t,e){return typeof e=="bigint"?e.toString():e}function uW(t){return{get value(){{const e=t();return Object.defineProperty(this,"value",{value:e}),e}}}}function r5(t){return t==null}function n5(t){const e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}const E9=Symbol("evaluating");function fr(t,e,r){let n;Object.defineProperty(t,e,{get(){if(n!==E9)return n===void 0&&(n=E9,n=r()),n},set(o){Object.defineProperty(t,e,{value:o})},configurable:!0})}function r0e(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function Tu(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function xh(...t){const e={};for(const r of t){const n=Object.getOwnPropertyDescriptors(r);Object.assign(e,n)}return Object.defineProperties({},e)}function T9(t){return JSON.stringify(t)}const dW="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function gR(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}const n0e=uW(()=>{var t;if(typeof navigator<"u"&&((t=navigator==null?void 0:navigator.userAgent)!=null&&t.includes("Cloudflare")))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Sw(t){if(gR(t)===!1)return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(gR(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function fW(t){return Sw(t)?{...t}:t}const o0e=new Set(["string","number","symbol"]);function B1(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ru(t,e,r){const n=new t._zod.constr(e??t._zod.def);return(!e||r!=null&&r.parent)&&(n._zod.parent=t),n}function ct(t){const e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if((e==null?void 0:e.message)!==void 0){if((e==null?void 0:e.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function i0e(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}function a0e(t,e){const r=t._zod.def,n=xh(t._zod.def,{get shape(){const o={};for(const a in e){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&(o[a]=r.shape[a])}return Tu(this,"shape",o),o},checks:[]});return Ru(t,n)}function s0e(t,e){const r=t._zod.def,n=xh(t._zod.def,{get shape(){const o={...t._zod.def.shape};for(const a in e){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&delete o[a]}return Tu(this,"shape",o),o},checks:[]});return Ru(t,n)}function l0e(t,e){if(!Sw(e))throw new Error("Invalid input to extend: expected a plain object");const r=xh(t._zod.def,{get shape(){const n={...t._zod.def.shape,...e};return Tu(this,"shape",n),n},checks:[]});return Ru(t,r)}function c0e(t,e){const r=xh(t._zod.def,{get shape(){const n={...t._zod.def.shape,...e._zod.def.shape};return Tu(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:[]});return Ru(t,r)}function u0e(t,e,r){const n=xh(e._zod.def,{get shape(){const o=e._zod.def.shape,a={...o};if(r)for(const f in r){if(!(f in o))throw new Error(`Unrecognized key: "${f}"`);r[f]&&(a[f]=t?new t({type:"optional",innerType:o[f]}):o[f])}else for(const f in o)a[f]=t?new t({type:"optional",innerType:o[f]}):o[f];return Tu(this,"shape",a),a},checks:[]});return Ru(e,n)}function d0e(t,e,r){const n=xh(e._zod.def,{get shape(){const o=e._zod.def.shape,a={...o};if(r)for(const f in r){if(!(f in a))throw new Error(`Unrecognized key: "${f}"`);r[f]&&(a[f]=new t({type:"nonoptional",innerType:o[f]}))}else for(const f in o)a[f]=new t({type:"nonoptional",innerType:o[f]});return Tu(this,"shape",a),a},checks:[]});return Ru(e,n)}function Fm(t,e=0){var r;for(let n=e;n<t.issues.length;n++)if(((r=t.issues[n])==null?void 0:r.continue)!==!0)return!0;return!1}function hW(t,e){return e.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(t),r})}function L0(t){return typeof t=="string"?t:t==null?void 0:t.message}function wu(t,e,r){var o,a,f,p,m,v;const n={...t,path:t.path??[]};if(!t.message){const y=L0((f=(a=(o=t.inst)==null?void 0:o._zod.def)==null?void 0:a.error)==null?void 0:f.call(a,t))??L0((p=e==null?void 0:e.error)==null?void 0:p.call(e,t))??L0((m=r.customError)==null?void 0:m.call(r,t))??L0((v=r.localeError)==null?void 0:v.call(r,t))??"Invalid input";n.message=y}return delete n.inst,delete n.continue,e!=null&&e.reportInput||delete n.input,n}function o5(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function gv(...t){const[e,r,n]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:n}:{...e}}const pW=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,pR,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},i5=je("$ZodError",pW),F1=je("$ZodError",pW,{Parent:Error});function f0e(t,e=r=>r.message){const r={},n=[];for(const o of t.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(e(o))):n.push(e(o));return{formErrors:n,fieldErrors:r}}function h0e(t,e){const r=e||function(a){return a.message},n={_errors:[]},o=a=>{for(const f of a.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(p=>o({issues:p}));else if(f.code==="invalid_key")o({issues:f.issues});else if(f.code==="invalid_element")o({issues:f.issues});else if(f.path.length===0)n._errors.push(r(f));else{let p=n,m=0;for(;m<f.path.length;){const v=f.path[m];m===f.path.length-1?(p[v]=p[v]||{_errors:[]},p[v]._errors.push(r(f))):p[v]=p[v]||{_errors:[]},p=p[v],m++}}};return o(t),n}const gW=t=>(e,r,n,o)=>{const a=n?Object.assign(n,{async:!1}):{async:!1},f=e._zod.run({value:r,issues:[]},a);if(f instanceof Promise)throw new pv;if(f.issues.length){const p=new((o==null?void 0:o.Err)??t)(f.issues.map(m=>wu(m,a,xu())));throw dW(p,o==null?void 0:o.callee),p}return f.value},p0e=gW(F1),mW=t=>async(e,r,n,o)=>{const a=n?Object.assign(n,{async:!0}):{async:!0};let f=e._zod.run({value:r,issues:[]},a);if(f instanceof Promise&&(f=await f),f.issues.length){const p=new((o==null?void 0:o.Err)??t)(f.issues.map(m=>wu(m,a,xu())));throw dW(p,o==null?void 0:o.callee),p}return f.value},g0e=mW(F1),vW=t=>(e,r,n)=>{const o=n?{...n,async:!1}:{async:!1},a=e._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new pv;return a.issues.length?{success:!1,error:new(t??i5)(a.issues.map(f=>wu(f,o,xu())))}:{success:!0,data:a.value}},m0e=vW(F1),bW=t=>async(e,r,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let a=e._zod.run({value:r,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new t(a.issues.map(f=>wu(f,o,xu())))}:{success:!0,data:a.value}},v0e=bW(F1),b0e=/^[cC][^\s-]{8,}$/,y0e=/^[0-9a-z]+$/,x0e=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,w0e=/^[0-9a-vA-V]{20}$/,_0e=/^[A-Za-z0-9]{27}$/,k0e=/^[a-zA-Z0-9_-]{21}$/,j0e=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,S0e=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,R9=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,C0e=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,A0e="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function O0e(){return new RegExp(A0e,"u")}const E0e=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,T0e=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,R0e=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,P0e=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,z0e=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,yW=/^[A-Za-z0-9_-]*$/,M0e=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,I0e=/^\+(?:[0-9]){6,14}[0-9]$/,xW="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",L0e=new RegExp(`^${xW}$`);function wW(t){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function N0e(t){return new RegExp(`^${wW(t)}$`)}function D0e(t){const e=wW({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${e}(?:${r.join("|")})`;return new RegExp(`^${xW}T(?:${n})$`)}const B0e=t=>{const e=t?`[\\s\\S]{${(t==null?void 0:t.minimum)??0},${(t==null?void 0:t.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},F0e=/true|false/i,H0e=/^[^A-Z]*$/,U0e=/^[^a-z]*$/,qa=je("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),V0e=je("$ZodCheckMaxLength",(t,e)=>{var r;qa.init(t,e),(r=t._zod.def).when??(r.when=n=>{const o=n.value;return!r5(o)&&o.length!==void 0}),t._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<o&&(n._zod.bag.maximum=e.maximum)}),t._zod.check=n=>{const o=n.value;if(o.length<=e.maximum)return;const f=o5(o);n.issues.push({origin:f,code:"too_big",maximum:e.maximum,inclusive:!0,input:o,inst:t,continue:!e.abort})}}),q0e=je("$ZodCheckMinLength",(t,e)=>{var r;qa.init(t,e),(r=t._zod.def).when??(r.when=n=>{const o=n.value;return!r5(o)&&o.length!==void 0}),t._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>o&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{const o=n.value;if(o.length>=e.minimum)return;const f=o5(o);n.issues.push({origin:f,code:"too_small",minimum:e.minimum,inclusive:!0,input:o,inst:t,continue:!e.abort})}}),Y0e=je("$ZodCheckLengthEquals",(t,e)=>{var r;qa.init(t,e),(r=t._zod.def).when??(r.when=n=>{const o=n.value;return!r5(o)&&o.length!==void 0}),t._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=e.length,o.maximum=e.length,o.length=e.length}),t._zod.check=n=>{const o=n.value,a=o.length;if(a===e.length)return;const f=o5(o),p=a>e.length;n.issues.push({origin:f,...p?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),H1=je("$ZodCheckStringFormat",(t,e)=>{var r,n;qa.init(t,e),t._zod.onattach.push(o=>{const a=o._zod.bag;a.format=e.format,e.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=o=>{e.pattern.lastIndex=0,!e.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:e.format,input:o.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(n=t._zod).check??(n.check=()=>{})}),W0e=je("$ZodCheckRegex",(t,e)=>{H1.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),X0e=je("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=H0e),H1.init(t,e)}),G0e=je("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=U0e),H1.init(t,e)}),$0e=je("$ZodCheckIncludes",(t,e)=>{qa.init(t,e);const r=B1(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=n,t._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),t._zod.check=o=>{o.value.includes(e.includes,e.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:o.value,inst:t,continue:!e.abort})}}),Z0e=je("$ZodCheckStartsWith",(t,e)=>{qa.init(t,e);const r=new RegExp(`^${B1(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),t._zod.check=n=>{n.value.startsWith(e.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:n.value,inst:t,continue:!e.abort})}}),K0e=je("$ZodCheckEndsWith",(t,e)=>{qa.init(t,e);const r=new RegExp(`.*${B1(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),t._zod.check=n=>{n.value.endsWith(e.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:n.value,inst:t,continue:!e.abort})}}),J0e=je("$ZodCheckOverwrite",(t,e)=>{qa.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});class Q0e{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const n=e.split(`
`).filter(f=>f),o=Math.min(...n.map(f=>f.length-f.trimStart().length)),a=n.map(f=>f.slice(o)).map(f=>" ".repeat(this.indent*2)+f);for(const f of a)this.content.push(f)}compile(){const e=Function,r=this==null?void 0:this.args,o=[...((this==null?void 0:this.content)??[""]).map(a=>`  ${a}`)];return new e(...r,o.join(`
`))}}const exe={major:4,minor:0,patch:17},tn=je("$ZodType",(t,e)=>{var o;var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=exe;const n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(const a of n)for(const f of a._zod.onattach)f(t);if(n.length===0)(r=t._zod).deferred??(r.deferred=[]),(o=t._zod.deferred)==null||o.push(()=>{t._zod.run=t._zod.parse});else{const a=(f,p,m)=>{let v=Fm(f),y;for(const x of p){if(x._zod.def.when){if(!x._zod.def.when(f))continue}else if(v)continue;const k=f.issues.length,S=x._zod.check(f);if(S instanceof Promise&&(m==null?void 0:m.async)===!1)throw new pv;if(y||S instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await S,f.issues.length!==k&&(v||(v=Fm(f,k)))});else{if(f.issues.length===k)continue;v||(v=Fm(f,k))}}return y?y.then(()=>f):f};t._zod.run=(f,p)=>{const m=t._zod.parse(f,p);if(m instanceof Promise){if(p.async===!1)throw new pv;return m.then(v=>a(v,n,p))}return a(m,n,p)}}t["~standard"]={validate:a=>{var f;try{const p=m0e(t,a);return p.success?{value:p.data}:{issues:(f=p.error)==null?void 0:f.issues}}catch{return v0e(t,a).then(m=>{var v;return m.success?{value:m.data}:{issues:(v=m.error)==null?void 0:v.issues}})}},vendor:"zod",version:1}}),a5=je("$ZodString",(t,e)=>{var r;tn.init(t,e),t._zod.pattern=[...((r=t==null?void 0:t._zod.bag)==null?void 0:r.patterns)??[]].pop()??B0e(t._zod.bag),t._zod.parse=(n,o)=>{if(e.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:t}),n}}),Sr=je("$ZodStringFormat",(t,e)=>{H1.init(t,e),a5.init(t,e)}),txe=je("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=S0e),Sr.init(t,e)}),rxe=je("$ZodUUID",(t,e)=>{if(e.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=R9(n))}else e.pattern??(e.pattern=R9());Sr.init(t,e)}),nxe=je("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=C0e),Sr.init(t,e)}),oxe=je("$ZodURL",(t,e)=>{Sr.init(t,e),t._zod.check=r=>{try{const n=r.value.trim(),o=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:M0e.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),ixe=je("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=O0e()),Sr.init(t,e)}),axe=je("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=k0e),Sr.init(t,e)}),sxe=je("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=b0e),Sr.init(t,e)}),lxe=je("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=y0e),Sr.init(t,e)}),cxe=je("$ZodULID",(t,e)=>{e.pattern??(e.pattern=x0e),Sr.init(t,e)}),uxe=je("$ZodXID",(t,e)=>{e.pattern??(e.pattern=w0e),Sr.init(t,e)}),dxe=je("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=_0e),Sr.init(t,e)}),fxe=je("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=D0e(e)),Sr.init(t,e)}),hxe=je("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=L0e),Sr.init(t,e)}),pxe=je("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=N0e(e)),Sr.init(t,e)}),gxe=je("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=j0e),Sr.init(t,e)}),mxe=je("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=E0e),Sr.init(t,e),t._zod.onattach.push(r=>{const n=r._zod.bag;n.format="ipv4"})}),vxe=je("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=T0e),Sr.init(t,e),t._zod.onattach.push(r=>{const n=r._zod.bag;n.format="ipv6"}),t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),bxe=je("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=R0e),Sr.init(t,e)}),yxe=je("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=P0e),Sr.init(t,e),t._zod.check=r=>{const[n,o]=r.value.split("/");try{if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function _W(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}const xxe=je("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=z0e),Sr.init(t,e),t._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),t._zod.check=r=>{_W(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function wxe(t){if(!yW.test(t))return!1;const e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return _W(r)}const _xe=je("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=yW),Sr.init(t,e),t._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),t._zod.check=r=>{wxe(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),kxe=je("$ZodE164",(t,e)=>{e.pattern??(e.pattern=I0e),Sr.init(t,e)});function jxe(t,e=null){try{const r=t.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const o=JSON.parse(atob(n));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||e&&(!("alg"in o)||o.alg!==e))}catch{return!1}}const Sxe=je("$ZodJWT",(t,e)=>{Sr.init(t,e),t._zod.check=r=>{jxe(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),Cxe=je("$ZodBoolean",(t,e)=>{tn.init(t,e),t._zod.pattern=F0e,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=!!r.value}catch{}const o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:t}),r}}),Axe=je("$ZodUnknown",(t,e)=>{tn.init(t,e),t._zod.parse=r=>r}),Oxe=je("$ZodNever",(t,e)=>{tn.init(t,e),t._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)});function P9(t,e,r){t.issues.length&&e.issues.push(...hW(r,t.issues)),e.value[r]=t.value}const Exe=je("$ZodArray",(t,e)=>{tn.init(t,e),t._zod.parse=(r,n)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:t}),r;r.value=Array(o.length);const a=[];for(let f=0;f<o.length;f++){const p=o[f],m=e.element._zod.run({value:p,issues:[]},n);m instanceof Promise?a.push(m.then(v=>P9(v,r,f))):P9(m,r,f)}return a.length?Promise.all(a).then(()=>r):r}});function N0(t,e,r,n){t.issues.length&&e.issues.push(...hW(r,t.issues)),t.value===void 0?r in n&&(e.value[r]=void 0):e.value[r]=t.value}const Txe=je("$ZodObject",(t,e)=>{tn.init(t,e);const r=uW(()=>{const x=Object.keys(e.shape);for(const S of x)if(!e.shape[S]._zod.traits.has("$ZodType"))throw new Error(`Invalid element at key "${S}": expected a Zod schema`);const k=i0e(e.shape);return{shape:e.shape,keys:x,keySet:new Set(x),numKeys:x.length,optionalKeys:new Set(k)}});fr(t._zod,"propValues",()=>{const x=e.shape,k={};for(const S in x){const O=x[S]._zod;if(O.values){k[S]??(k[S]=new Set);for(const C of O.values)k[S].add(C)}}return k});const n=x=>{const k=new Q0e(["shape","payload","ctx"]),S=r.value,O=P=>{const M=T9(P);return`shape[${M}]._zod.run({ value: input[${M}], issues: [] }, ctx)`};k.write("const input = payload.value;");const C=Object.create(null);let R=0;for(const P of S.keys)C[P]=`key_${R++}`;k.write("const newResult = {}");for(const P of S.keys){const M=C[P],I=T9(P);k.write(`const ${M} = ${O(P)};`),k.write(`
        if (${M}.issues.length) {
          payload.issues = payload.issues.concat(${M}.issues.map(iss => ({
            ...iss,
            path: iss.path ? [${I}, ...iss.path] : [${I}]
          })));
        }
        
        if (${M}.value === undefined) {
          if (${I} in input) {
            newResult[${I}] = undefined;
          }
        } else {
          newResult[${I}] = ${M}.value;
        }
      `)}k.write("payload.value = newResult;"),k.write("return payload;");const E=k.compile();return(P,M)=>E(x,P,M)};let o;const a=gR,f=!cW.jitless,m=f&&n0e.value,v=e.catchall;let y;t._zod.parse=(x,k)=>{y??(y=r.value);const S=x.value;if(!a(S))return x.issues.push({expected:"object",code:"invalid_type",input:S,inst:t}),x;const O=[];if(f&&m&&(k==null?void 0:k.async)===!1&&k.jitless!==!0)o||(o=n(e.shape)),x=o(x,k);else{x.value={};const M=y.shape;for(const I of y.keys){const U=M[I]._zod.run({value:S[I],issues:[]},k);U instanceof Promise?O.push(U.then(H=>N0(H,x,I,S))):N0(U,x,I,S)}}if(!v)return O.length?Promise.all(O).then(()=>x):x;const C=[],R=y.keySet,E=v._zod,P=E.def.type;for(const M of Object.keys(S)){if(R.has(M))continue;if(P==="never"){C.push(M);continue}const I=E.run({value:S[M],issues:[]},k);I instanceof Promise?O.push(I.then(B=>N0(B,x,M,S))):N0(I,x,M,S)}return C.length&&x.issues.push({code:"unrecognized_keys",keys:C,input:S,inst:t}),O.length?Promise.all(O).then(()=>x):x}});function z9(t,e,r,n){for(const a of t)if(a.issues.length===0)return e.value=a.value,e;const o=t.filter(a=>!Fm(a));return o.length===1?(e.value=o[0].value,o[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(a=>a.issues.map(f=>wu(f,n,xu())))}),e)}const Rxe=je("$ZodUnion",(t,e)=>{tn.init(t,e),fr(t._zod,"optin",()=>e.options.some(o=>o._zod.optin==="optional")?"optional":void 0),fr(t._zod,"optout",()=>e.options.some(o=>o._zod.optout==="optional")?"optional":void 0),fr(t._zod,"values",()=>{if(e.options.every(o=>o._zod.values))return new Set(e.options.flatMap(o=>Array.from(o._zod.values)))}),fr(t._zod,"pattern",()=>{if(e.options.every(o=>o._zod.pattern)){const o=e.options.map(a=>a._zod.pattern);return new RegExp(`^(${o.map(a=>n5(a.source)).join("|")})$`)}});const r=e.options.length===1,n=e.options[0]._zod.run;t._zod.parse=(o,a)=>{if(r)return n(o,a);let f=!1;const p=[];for(const m of e.options){const v=m._zod.run({value:o.value,issues:[]},a);if(v instanceof Promise)p.push(v),f=!0;else{if(v.issues.length===0)return v;p.push(v)}}return f?Promise.all(p).then(m=>z9(m,o,t,a)):z9(p,o,t,a)}}),Pxe=je("$ZodIntersection",(t,e)=>{tn.init(t,e),t._zod.parse=(r,n)=>{const o=r.value,a=e.left._zod.run({value:o,issues:[]},n),f=e.right._zod.run({value:o,issues:[]},n);return a instanceof Promise||f instanceof Promise?Promise.all([a,f]).then(([m,v])=>M9(r,m,v)):M9(r,a,f)}});function mR(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(Sw(t)&&Sw(e)){const r=Object.keys(e),n=Object.keys(t).filter(a=>r.indexOf(a)!==-1),o={...t,...e};for(const a of n){const f=mR(t[a],e[a]);if(!f.valid)return{valid:!1,mergeErrorPath:[a,...f.mergeErrorPath]};o[a]=f.data}return{valid:!0,data:o}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<t.length;n++){const o=t[n],a=e[n],f=mR(o,a);if(!f.valid)return{valid:!1,mergeErrorPath:[n,...f.mergeErrorPath]};r.push(f.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function M9(t,e,r){if(e.issues.length&&t.issues.push(...e.issues),r.issues.length&&t.issues.push(...r.issues),Fm(t))return t;const n=mR(e.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return t.value=n.data,t}const zxe=je("$ZodEnum",(t,e)=>{tn.init(t,e);const r=t0e(e.entries),n=new Set(r);t._zod.values=n,t._zod.pattern=new RegExp(`^(${r.filter(o=>o0e.has(typeof o)).map(o=>typeof o=="string"?B1(o):o.toString()).join("|")})$`),t._zod.parse=(o,a)=>{const f=o.value;return n.has(f)||o.issues.push({code:"invalid_value",values:r,input:f,inst:t}),o}}),Mxe=je("$ZodTransform",(t,e)=>{tn.init(t,e),t._zod.parse=(r,n)=>{const o=e.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(f=>(r.value=f,r));if(o instanceof Promise)throw new pv;return r.value=o,r}});function I9(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}const Ixe=je("$ZodOptional",(t,e)=>{tn.init(t,e),t._zod.optin="optional",t._zod.optout="optional",fr(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),fr(t._zod,"pattern",()=>{const r=e.innerType._zod.pattern;return r?new RegExp(`^(${n5(r.source)})?$`):void 0}),t._zod.parse=(r,n)=>{if(e.innerType._zod.optin==="optional"){const o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(a=>I9(a,r.value)):I9(o,r.value)}return r.value===void 0?r:e.innerType._zod.run(r,n)}}),Lxe=je("$ZodNullable",(t,e)=>{tn.init(t,e),fr(t._zod,"optin",()=>e.innerType._zod.optin),fr(t._zod,"optout",()=>e.innerType._zod.optout),fr(t._zod,"pattern",()=>{const r=e.innerType._zod.pattern;return r?new RegExp(`^(${n5(r.source)}|null)$`):void 0}),fr(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,n)=>r.value===null?r:e.innerType._zod.run(r,n)}),Nxe=je("$ZodDefault",(t,e)=>{tn.init(t,e),t._zod.optin="optional",fr(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>{if(r.value===void 0)return r.value=e.defaultValue,r;const o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(a=>L9(a,e)):L9(o,e)}});function L9(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}const Dxe=je("$ZodPrefault",(t,e)=>{tn.init(t,e),t._zod.optin="optional",fr(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>(r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,n))}),Bxe=je("$ZodNonOptional",(t,e)=>{tn.init(t,e),fr(t._zod,"values",()=>{const r=e.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),t._zod.parse=(r,n)=>{const o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(a=>N9(a,t)):N9(o,t)}});function N9(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}const Fxe=je("$ZodCatch",(t,e)=>{tn.init(t,e),fr(t._zod,"optin",()=>e.innerType._zod.optin),fr(t._zod,"optout",()=>e.innerType._zod.optout),fr(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>{const o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(a=>(r.value=a.value,a.issues.length&&(r.value=e.catchValue({...r,error:{issues:a.issues.map(f=>wu(f,n,xu()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=e.catchValue({...r,error:{issues:o.issues.map(a=>wu(a,n,xu()))},input:r.value}),r.issues=[]),r)}}),Hxe=je("$ZodPipe",(t,e)=>{tn.init(t,e),fr(t._zod,"values",()=>e.in._zod.values),fr(t._zod,"optin",()=>e.in._zod.optin),fr(t._zod,"optout",()=>e.out._zod.optout),fr(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,n)=>{const o=e.in._zod.run(r,n);return o instanceof Promise?o.then(a=>D9(a,e,n)):D9(o,e,n)}});function D9(t,e,r){return t.issues.length?t:e.out._zod.run({value:t.value,issues:t.issues},r)}const Uxe=je("$ZodReadonly",(t,e)=>{tn.init(t,e),fr(t._zod,"propValues",()=>e.innerType._zod.propValues),fr(t._zod,"values",()=>e.innerType._zod.values),fr(t._zod,"optin",()=>e.innerType._zod.optin),fr(t._zod,"optout",()=>e.innerType._zod.optout),t._zod.parse=(r,n)=>{const o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(B9):B9(o)}});function B9(t){return t.value=Object.freeze(t.value),t}const Vxe=je("$ZodCustom",(t,e)=>{qa.init(t,e),tn.init(t,e),t._zod.parse=(r,n)=>r,t._zod.check=r=>{const n=r.value,o=e.fn(n);if(o instanceof Promise)return o.then(a=>F9(a,r,n,t));F9(o,r,n,t)}});function F9(t,e,r,n){if(!t){const o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),e.issues.push(gv(o))}}class qxe{constructor(){this._map=new Map,this._idmap=new Map}add(e,...r){const n=r[0];if(this._map.set(e,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){const r=e._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const o={...n,...this._map.get(e)};return Object.keys(o).length?o:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function Yxe(){return new qxe}const D0=Yxe();function Wxe(t,e){return new t({type:"string",...ct(e)})}function Xxe(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...ct(e)})}function H9(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...ct(e)})}function Gxe(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...ct(e)})}function $xe(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ct(e)})}function Zxe(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ct(e)})}function Kxe(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ct(e)})}function Jxe(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...ct(e)})}function Qxe(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...ct(e)})}function ewe(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...ct(e)})}function twe(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...ct(e)})}function rwe(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...ct(e)})}function nwe(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...ct(e)})}function owe(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...ct(e)})}function iwe(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...ct(e)})}function awe(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...ct(e)})}function swe(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...ct(e)})}function lwe(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ct(e)})}function cwe(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ct(e)})}function uwe(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...ct(e)})}function dwe(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...ct(e)})}function fwe(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...ct(e)})}function hwe(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...ct(e)})}function pwe(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ct(e)})}function gwe(t,e){return new t({type:"string",format:"date",check:"string_format",...ct(e)})}function mwe(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...ct(e)})}function vwe(t,e){return new t({type:"string",format:"duration",check:"string_format",...ct(e)})}function bwe(t,e){return new t({type:"boolean",...ct(e)})}function ywe(t){return new t({type:"unknown"})}function xwe(t,e){return new t({type:"never",...ct(e)})}function kW(t,e){return new V0e({check:"max_length",...ct(e),maximum:t})}function Cw(t,e){return new q0e({check:"min_length",...ct(e),minimum:t})}function jW(t,e){return new Y0e({check:"length_equals",...ct(e),length:t})}function wwe(t,e){return new W0e({check:"string_format",format:"regex",...ct(e),pattern:t})}function _we(t){return new X0e({check:"string_format",format:"lowercase",...ct(t)})}function kwe(t){return new G0e({check:"string_format",format:"uppercase",...ct(t)})}function jwe(t,e){return new $0e({check:"string_format",format:"includes",...ct(e),includes:t})}function Swe(t,e){return new Z0e({check:"string_format",format:"starts_with",...ct(e),prefix:t})}function Cwe(t,e){return new K0e({check:"string_format",format:"ends_with",...ct(e),suffix:t})}function hb(t){return new J0e({check:"overwrite",tx:t})}function Awe(t){return hb(e=>e.normalize(t))}function Owe(){return hb(t=>t.trim())}function Ewe(){return hb(t=>t.toLowerCase())}function Twe(){return hb(t=>t.toUpperCase())}function Rwe(t,e,r){return new t({type:"array",element:e,...ct(r)})}function Pwe(t,e,r){return new t({type:"custom",check:"custom",fn:e,...ct(r)})}function zwe(t){const e=Mwe(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(gv(n,r.value,e._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=e),o.continue??(o.continue=!e._zod.def.abort),r.issues.push(gv(o))}},t(r.value,r)));return e}function Mwe(t,e){const r=new qa({check:"custom",...ct(e)});return r._zod.check=t,r}function U9(t,e){try{var r=t()}catch(n){return e(n)}return r&&r.then?r.then(void 0,e):r}function Iwe(t,e){for(var r={};t.length;){var n=t[0],o=n.code,a=n.message,f=n.path.join(".");if(!r[f])if("unionErrors"in n){var p=n.unionErrors[0].errors[0];r[f]={message:p.message,type:p.code}}else r[f]={message:a,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(y){return y.errors.forEach(function(x){return t.push(x)})}),e){var m=r[f].types,v=m&&m[n.code];r[f]=E3(f,e,r,o,v?[].concat(v,n.message):n.message)}t.shift()}return r}function Lwe(t,e){for(var r={};t.length;){var n=t[0],o=n.code,a=n.message,f=n.path.join(".");if(!r[f])if(n.code==="invalid_union"&&n.errors.length>0){var p=n.errors[0][0];r[f]={message:p.message,type:p.code}}else r[f]={message:a,type:o};if(n.code==="invalid_union"&&n.errors.forEach(function(y){return y.forEach(function(x){return t.push(x)})}),e){var m=r[f].types,v=m&&m[n.code];r[f]=E3(f,e,r,o,v?[].concat(v,n.message):n.message)}t.shift()}return r}function Nwe(t,e,r){if(r===void 0&&(r={}),function(n){return"_def"in n&&typeof n._def=="object"&&"typeName"in n._def}(t))return function(n,o,a){try{return Promise.resolve(U9(function(){return Promise.resolve(t[r.mode==="sync"?"parse":"parseAsync"](n,e)).then(function(f){return a.shouldUseNativeValidation&&hR({},a),{errors:{},values:r.raw?Object.assign({},n):f}})},function(f){if(function(p){return Array.isArray(p==null?void 0:p.issues)}(f))return{values:{},errors:A9(Iwe(f.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw f}))}catch(f){return Promise.reject(f)}};if(function(n){return"_zod"in n&&typeof n._zod=="object"}(t))return function(n,o,a){try{return Promise.resolve(U9(function(){return Promise.resolve((r.mode==="sync"?p0e:g0e)(t,n,e)).then(function(f){return a.shouldUseNativeValidation&&hR({},a),{errors:{},values:r.raw?Object.assign({},n):f}})},function(f){if(function(p){return p instanceof i5}(f))return{values:{},errors:A9(Lwe(f.issues,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw f}))}catch(f){return Promise.reject(f)}};throw new Error("Invalid input: not a Zod schema")}const Dwe=je("ZodISODateTime",(t,e)=>{fxe.init(t,e),Rr.init(t,e)});function Bwe(t){return pwe(Dwe,t)}const Fwe=je("ZodISODate",(t,e)=>{hxe.init(t,e),Rr.init(t,e)});function Hwe(t){return gwe(Fwe,t)}const Uwe=je("ZodISOTime",(t,e)=>{pxe.init(t,e),Rr.init(t,e)});function Vwe(t){return mwe(Uwe,t)}const qwe=je("ZodISODuration",(t,e)=>{gxe.init(t,e),Rr.init(t,e)});function Ywe(t){return vwe(qwe,t)}const Wwe=(t,e)=>{i5.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:r=>h0e(t,r)},flatten:{value:r=>f0e(t,r)},addIssue:{value:r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,pR,2)}},addIssues:{value:r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,pR,2)}},isEmpty:{get(){return t.issues.length===0}}})},U1=je("ZodError",Wwe,{Parent:Error}),Xwe=gW(U1),Gwe=mW(U1),$we=vW(U1),Zwe=bW(U1),un=je("ZodType",(t,e)=>(tn.init(t,e),t.def=e,Object.defineProperty(t,"_def",{value:e}),t.check=(...r)=>t.clone({...e,checks:[...e.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),t.clone=(r,n)=>Ru(t,r,n),t.brand=()=>t,t.register=(r,n)=>(r.add(t,n),t),t.parse=(r,n)=>Xwe(t,r,n,{callee:t.parse}),t.safeParse=(r,n)=>$we(t,r,n),t.parseAsync=async(r,n)=>Gwe(t,r,n,{callee:t.parseAsync}),t.safeParseAsync=async(r,n)=>Zwe(t,r,n),t.spa=t.safeParseAsync,t.refine=(r,n)=>t.check(V1e(r,n)),t.superRefine=r=>t.check(q1e(r)),t.overwrite=r=>t.check(hb(r)),t.optional=()=>W9(t),t.nullable=()=>X9(t),t.nullish=()=>W9(X9(t)),t.nonoptional=r=>L1e(t,r),t.array=()=>w1e(t),t.or=r=>S1e([t,r]),t.and=r=>A1e(t,r),t.transform=r=>G9(t,T1e(r)),t.default=r=>z1e(t,r),t.prefault=r=>I1e(t,r),t.catch=r=>D1e(t,r),t.pipe=r=>G9(t,r),t.readonly=()=>H1e(t),t.describe=r=>{const n=t.clone();return D0.add(n,{description:r}),n},Object.defineProperty(t,"description",{get(){var r;return(r=D0.get(t))==null?void 0:r.description},configurable:!0}),t.meta=(...r)=>{if(r.length===0)return D0.get(t);const n=t.clone();return D0.add(n,r[0]),n},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t)),SW=je("_ZodString",(t,e)=>{a5.init(t,e),un.init(t,e);const r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,t.regex=(...n)=>t.check(wwe(...n)),t.includes=(...n)=>t.check(jwe(...n)),t.startsWith=(...n)=>t.check(Swe(...n)),t.endsWith=(...n)=>t.check(Cwe(...n)),t.min=(...n)=>t.check(Cw(...n)),t.max=(...n)=>t.check(kW(...n)),t.length=(...n)=>t.check(jW(...n)),t.nonempty=(...n)=>t.check(Cw(1,...n)),t.lowercase=n=>t.check(_we(n)),t.uppercase=n=>t.check(kwe(n)),t.trim=()=>t.check(Owe()),t.normalize=(...n)=>t.check(Awe(...n)),t.toLowerCase=()=>t.check(Ewe()),t.toUpperCase=()=>t.check(Twe())}),Kwe=je("ZodString",(t,e)=>{a5.init(t,e),SW.init(t,e),t.email=r=>t.check(Xxe(Jwe,r)),t.url=r=>t.check(Jxe(Qwe,r)),t.jwt=r=>t.check(hwe(p1e,r)),t.emoji=r=>t.check(Qxe(e1e,r)),t.guid=r=>t.check(H9(q9,r)),t.uuid=r=>t.check(Gxe(B0,r)),t.uuidv4=r=>t.check($xe(B0,r)),t.uuidv6=r=>t.check(Zxe(B0,r)),t.uuidv7=r=>t.check(Kxe(B0,r)),t.nanoid=r=>t.check(ewe(t1e,r)),t.guid=r=>t.check(H9(q9,r)),t.cuid=r=>t.check(twe(r1e,r)),t.cuid2=r=>t.check(rwe(n1e,r)),t.ulid=r=>t.check(nwe(o1e,r)),t.base64=r=>t.check(uwe(d1e,r)),t.base64url=r=>t.check(dwe(f1e,r)),t.xid=r=>t.check(owe(i1e,r)),t.ksuid=r=>t.check(iwe(a1e,r)),t.ipv4=r=>t.check(awe(s1e,r)),t.ipv6=r=>t.check(swe(l1e,r)),t.cidrv4=r=>t.check(lwe(c1e,r)),t.cidrv6=r=>t.check(cwe(u1e,r)),t.e164=r=>t.check(fwe(h1e,r)),t.datetime=r=>t.check(Bwe(r)),t.date=r=>t.check(Hwe(r)),t.time=r=>t.check(Vwe(r)),t.duration=r=>t.check(Ywe(r))});function V9(t){return Wxe(Kwe,t)}const Rr=je("ZodStringFormat",(t,e)=>{Sr.init(t,e),SW.init(t,e)}),Jwe=je("ZodEmail",(t,e)=>{nxe.init(t,e),Rr.init(t,e)}),q9=je("ZodGUID",(t,e)=>{txe.init(t,e),Rr.init(t,e)}),B0=je("ZodUUID",(t,e)=>{rxe.init(t,e),Rr.init(t,e)}),Qwe=je("ZodURL",(t,e)=>{oxe.init(t,e),Rr.init(t,e)}),e1e=je("ZodEmoji",(t,e)=>{ixe.init(t,e),Rr.init(t,e)}),t1e=je("ZodNanoID",(t,e)=>{axe.init(t,e),Rr.init(t,e)}),r1e=je("ZodCUID",(t,e)=>{sxe.init(t,e),Rr.init(t,e)}),n1e=je("ZodCUID2",(t,e)=>{lxe.init(t,e),Rr.init(t,e)}),o1e=je("ZodULID",(t,e)=>{cxe.init(t,e),Rr.init(t,e)}),i1e=je("ZodXID",(t,e)=>{uxe.init(t,e),Rr.init(t,e)}),a1e=je("ZodKSUID",(t,e)=>{dxe.init(t,e),Rr.init(t,e)}),s1e=je("ZodIPv4",(t,e)=>{mxe.init(t,e),Rr.init(t,e)}),l1e=je("ZodIPv6",(t,e)=>{vxe.init(t,e),Rr.init(t,e)}),c1e=je("ZodCIDRv4",(t,e)=>{bxe.init(t,e),Rr.init(t,e)}),u1e=je("ZodCIDRv6",(t,e)=>{yxe.init(t,e),Rr.init(t,e)}),d1e=je("ZodBase64",(t,e)=>{xxe.init(t,e),Rr.init(t,e)}),f1e=je("ZodBase64URL",(t,e)=>{_xe.init(t,e),Rr.init(t,e)}),h1e=je("ZodE164",(t,e)=>{kxe.init(t,e),Rr.init(t,e)}),p1e=je("ZodJWT",(t,e)=>{Sxe.init(t,e),Rr.init(t,e)}),g1e=je("ZodBoolean",(t,e)=>{Cxe.init(t,e),un.init(t,e)});function m1e(t){return bwe(g1e,t)}const v1e=je("ZodUnknown",(t,e)=>{Axe.init(t,e),un.init(t,e)});function Y9(){return ywe(v1e)}const b1e=je("ZodNever",(t,e)=>{Oxe.init(t,e),un.init(t,e)});function y1e(t){return xwe(b1e,t)}const x1e=je("ZodArray",(t,e)=>{Exe.init(t,e),un.init(t,e),t.element=e.element,t.min=(r,n)=>t.check(Cw(r,n)),t.nonempty=r=>t.check(Cw(1,r)),t.max=(r,n)=>t.check(kW(r,n)),t.length=(r,n)=>t.check(jW(r,n)),t.unwrap=()=>t.element});function w1e(t,e){return Rwe(x1e,t,e)}const _1e=je("ZodObject",(t,e)=>{Txe.init(t,e),un.init(t,e),fr(t,"shape",()=>e.shape),t.keyof=()=>O1e(Object.keys(t._zod.def.shape)),t.catchall=r=>t.clone({...t._zod.def,catchall:r}),t.passthrough=()=>t.clone({...t._zod.def,catchall:Y9()}),t.loose=()=>t.clone({...t._zod.def,catchall:Y9()}),t.strict=()=>t.clone({...t._zod.def,catchall:y1e()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=r=>l0e(t,r),t.merge=r=>c0e(t,r),t.pick=r=>a0e(t,r),t.omit=r=>s0e(t,r),t.partial=(...r)=>u0e(CW,t,r[0]),t.required=(...r)=>d0e(AW,t,r[0])});function k1e(t,e){const r={type:"object",get shape(){return Tu(this,"shape",t?r0e(t):{}),this.shape},...ct(e)};return new _1e(r)}const j1e=je("ZodUnion",(t,e)=>{Rxe.init(t,e),un.init(t,e),t.options=e.options});function S1e(t,e){return new j1e({type:"union",options:t,...ct(e)})}const C1e=je("ZodIntersection",(t,e)=>{Pxe.init(t,e),un.init(t,e)});function A1e(t,e){return new C1e({type:"intersection",left:t,right:e})}const vR=je("ZodEnum",(t,e)=>{zxe.init(t,e),un.init(t,e),t.enum=e.entries,t.options=Object.values(e.entries);const r=new Set(Object.keys(e.entries));t.extract=(n,o)=>{const a={};for(const f of n)if(r.has(f))a[f]=e.entries[f];else throw new Error(`Key ${f} not found in enum`);return new vR({...e,checks:[],...ct(o),entries:a})},t.exclude=(n,o)=>{const a={...e.entries};for(const f of n)if(r.has(f))delete a[f];else throw new Error(`Key ${f} not found in enum`);return new vR({...e,checks:[],...ct(o),entries:a})}});function O1e(t,e){const r=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new vR({type:"enum",entries:r,...ct(e)})}const E1e=je("ZodTransform",(t,e)=>{Mxe.init(t,e),un.init(t,e),t._zod.parse=(r,n)=>{r.addIssue=a=>{if(typeof a=="string")r.issues.push(gv(a,r.value,e));else{const f=a;f.fatal&&(f.continue=!1),f.code??(f.code="custom"),f.input??(f.input=r.value),f.inst??(f.inst=t),r.issues.push(gv(f))}};const o=e.transform(r.value,r);return o instanceof Promise?o.then(a=>(r.value=a,r)):(r.value=o,r)}});function T1e(t){return new E1e({type:"transform",transform:t})}const CW=je("ZodOptional",(t,e)=>{Ixe.init(t,e),un.init(t,e),t.unwrap=()=>t._zod.def.innerType});function W9(t){return new CW({type:"optional",innerType:t})}const R1e=je("ZodNullable",(t,e)=>{Lxe.init(t,e),un.init(t,e),t.unwrap=()=>t._zod.def.innerType});function X9(t){return new R1e({type:"nullable",innerType:t})}const P1e=je("ZodDefault",(t,e)=>{Nxe.init(t,e),un.init(t,e),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function z1e(t,e){return new P1e({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():fW(e)}})}const M1e=je("ZodPrefault",(t,e)=>{Dxe.init(t,e),un.init(t,e),t.unwrap=()=>t._zod.def.innerType});function I1e(t,e){return new M1e({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():fW(e)}})}const AW=je("ZodNonOptional",(t,e)=>{Bxe.init(t,e),un.init(t,e),t.unwrap=()=>t._zod.def.innerType});function L1e(t,e){return new AW({type:"nonoptional",innerType:t,...ct(e)})}const N1e=je("ZodCatch",(t,e)=>{Fxe.init(t,e),un.init(t,e),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function D1e(t,e){return new N1e({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}const B1e=je("ZodPipe",(t,e)=>{Hxe.init(t,e),un.init(t,e),t.in=e.in,t.out=e.out});function G9(t,e){return new B1e({type:"pipe",in:t,out:e})}const F1e=je("ZodReadonly",(t,e)=>{Uxe.init(t,e),un.init(t,e),t.unwrap=()=>t._zod.def.innerType});function H1e(t){return new F1e({type:"readonly",innerType:t})}const U1e=je("ZodCustom",(t,e)=>{Vxe.init(t,e),un.init(t,e)});function V1e(t,e={}){return Pwe(U1e,t,e)}function q1e(t){return zwe(t)}const Y1e=k1e({email:V9().min(1,"Email is required").email("Please enter a valid email address"),password:V9().min(1,"Password is required").min(8,"Password must be at least 8 characters"),rememberMe:m1e().optional()});function Ije({onSuccess:t,onError:e,className:r}){const{login:n}=bh(),[o,a]=F.useState(!1),f=dh({resolver:Nwe(Y1e),defaultValues:{email:"",password:"",rememberMe:!1}}),{formState:{isSubmitting:p},setValue:m}=f,v=()=>a(x=>!x),y=async x=>{try{await n({email:x.email,password:x.password}),t==null||t()}catch(k){console.error("Login failed:",k),e==null||e(k)}};return A.jsx("div",{className:"w-full    ",children:A.jsxs(fh,{form:f,onSubmit:y,children:[A.jsxs(IU,{className:"w-full flex    flex-col  gap-4",children:[A.jsx(Yo,{name:"email",children:A.jsxs(ko,{children:[A.jsxs("label",{htmlFor:"Password",className:" text-black   font-normal ",children:[" Email ",A.jsx("span",{className:" text-red-500",children:"*"})]}),A.jsx(jo,{children:A.jsxs("div",{className:"relative mt-2",children:[A.jsx(Dr,{type:"email",placeholder:"Enter your email",autoComplete:"email",disabled:p,className:"w-full pl-10  text-black bg-white pr-4",...f.register("email")}),A.jsx(nU,{className:"absolute  text-black left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground pointer-events-none"})]})}),A.jsx(So,{})]})}),A.jsx(Yo,{name:"password",children:A.jsxs(ko,{children:[A.jsxs("label",{htmlFor:"Password",className:" text-black  font-normal ",children:[" Password ",A.jsx("span",{className:" text-red-500",children:"*"})]}),A.jsx(jo,{children:A.jsxs("div",{className:"relative mt-2",children:[A.jsx(Dr,{type:o?"text":"password",placeholder:"Enter your password",autoComplete:"current-password",disabled:p,className:"w-full pl-10  text-black bg-white pr-10",...f.register("password")}),A.jsx(tx,{className:"absolute text-black left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground pointer-events-none"}),A.jsx("button",{type:"button",onClick:v,className:"absolute right-3 top-1/2 text-black -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",disabled:p,"aria-label":o?"Hide password":"Show password",children:o?A.jsx(eie,{className:"h-4 w-4"}):A.jsx(q4,{className:"h-4 w-4"})})]})}),A.jsx(So,{})]})})]}),A.jsx(LU,{className:"flex flex-col  mt-8 w-full",children:A.jsx(Pt,{type:"submit",className:"  mx-auto  w-[40%]   bg-primary  text-button-text     cursor-pointer  border border-primary  py-2  font-medium rounded-md transition-colors duration-200",disabled:p,children:p?A.jsxs("span",{className:"flex items-center",children:[A.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[A.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),A.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Signing in..."]}):"Sign In"})}),!1]})})}class W1e extends Ri{constructor(){super("")}async getUsersList(e={}){return this.post("/admin/users",{page:e.page??xt.PAGINATION.DEFAULT_PAGE,pageSize:e.pageSize??xt.PAGINATION.DEFAULT_PAGE_SIZE,...e.filter!==void 0?{filter:e.filter}:{},...e.search&&{search:e.search}})}async getDailyactiveUsers(e={}){return this.post("/admin/get-daily-active-users",{month:e.month,year:e.year})}async getUsersByCountry(){return this.get("/admin/users-cnt-country-wise")}async getUsersByCountryLast30mins(){return this.get("/admin/users-cnt-country-wise-last-30-mins")}async getUsersCard(){return this.get("/admin/users-cnt")}async getPlatformUserCounts(){return this.get("/admin/users-list-by-platform")}async getWeeklyUsers(){return this.get("/admin/new-users-of-week")}async getBlockedUserList(e={}){return this.post("/admin/get-block-list",{page:e.page??xt.PAGINATION.DEFAULT_PAGE,pageSize:e.pageSize??xt.PAGINATION.DEFAULT_PAGE_SIZE,filter:"user"})}async blockUserByAdmin(e){return this.put("/admin/block-user",{user_id:e.id})}}const lu=new W1e;class X1e extends Ri{constructor(){super("admin")}async getGroupList(e={}){return this.post("/group-chats",{page:e.page??xt.PAGINATION.DEFAULT_PAGE,pageSize:e.pageSize??xt.PAGINATION.DEFAULT_PAGE_SIZE,...e.filter!==void 0?{filter:e.filter}:{},...e.search&&{search:e.search},sortOrder:e.sortOrder,sortBy:e.sortBy})}async getGroupCard(){return this.get("/groups-cnt",{})}async getYearlyUserAndGroups(e){return this.post("/yearly-new-users-and-grps",{year:e.year})}async blockGroupById(e){return this.put("/block-group",{chat_id:e.id})}}const OW=new X1e;class G1e extends Ri{constructor(){super("admin")}async getCallCard(){return this.get("/calls-cnt",{})}async getYearlyCallData(e={}){return this.post("/yearly-calls-data",{year:e.year})}async getCallsList(e){return this.post("/calls-list",{call_type:e.call_type||"audio",page:e.page||1,limit:e.limit||10})}}const $9=new G1e;var EW={};/*!
 * ApexCharts v5.3.4
 * (c) 2018-2025 ApexCharts
 */function bR(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function TW(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Be(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z9(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,zW(n.key),n)}}function Fe(t,e,r){return e&&Z9(t.prototype,e),r&&Z9(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function wm(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=s5(t))||e){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(m){throw m},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,f=!0,p=!1;return{s:function(){r=r.call(t)},n:function(){var m=r.next();return f=m.done,m},e:function(m){p=!0,a=m},f:function(){try{f||r.return==null||r.return()}finally{if(p)throw a}}}}function pb(t){var e=RW();return function(){var r,n=Ow(t);if(e){var o=Ow(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(a,f){if(f&&(typeof f=="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TW(a)}(this,r)}}function Aw(t,e,r){return(e=zW(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ow(t){return Ow=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ow(t)}function gb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yR(t,e)}function RW(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RW=function(){return!!t})()}function K9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Oe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?K9(Object(r),!0).forEach(function(n){Aw(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):K9(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function yR(t,e){return yR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},yR(t,e)}function PW(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var a,f,p,m,v=[],y=!0,x=!1;try{if(p=(o=o.call(r)).next,n===0){if(Object(o)!==o)return;y=!1}else for(;!(y=(a=p.call(o)).done)&&(v.push(a.value),v.length!==n);y=!0);}catch(k){x=!0,f=k}finally{try{if(!y&&o.return!=null&&(m=o.return(),Object(m)!==m))return}finally{if(x)throw f}}return v}}(t,e)||s5(t,e)||function(){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 ln(t){return function(e){if(Array.isArray(e))return bR(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||s5(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function zW(t){var e=function(r,n){if(typeof r!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,n);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(r)}(t,"string");return typeof e=="symbol"?e:e+""}function to(t){return to=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},to(t)}function s5(t,e){if(t){if(typeof t=="string")return bR(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bR(t,e):void 0}}var se=function(){function t(){Be(this,t)}return Fe(t,[{key:"shadeRGBColor",value:function(e,r){var n=r.split(","),o=e<0?0:255,a=e<0?-1*e:e,f=parseInt(n[0].slice(4),10),p=parseInt(n[1],10),m=parseInt(n[2],10);return"rgb("+(Math.round((o-f)*a)+f)+","+(Math.round((o-p)*a)+p)+","+(Math.round((o-m)*a)+m)+")"}},{key:"shadeHexColor",value:function(e,r){var n=parseInt(r.slice(1),16),o=e<0?0:255,a=e<0?-1*e:e,f=n>>16,p=n>>8&255,m=255&n;return"#"+(16777216+65536*(Math.round((o-f)*a)+f)+256*(Math.round((o-p)*a)+p)+(Math.round((o-m)*a)+m)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,r){return t.isColorHex(r)?this.shadeHexColor(e,r):this.shadeRGBColor(e,r)}}],[{key:"bind",value:function(e,r){return function(){return e.apply(r,arguments)}}},{key:"isObject",value:function(e){return e&&to(e)==="object"&&!Array.isArray(e)&&e!=null}},{key:"is",value:function(e,r){return Object.prototype.toString.call(r)==="[object "+e+"]"}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"listToArray",value:function(e){var r,n=[];for(r=0;r<e.length;r++)n[r]=e[r];return n}},{key:"extend",value:function(e,r){var n=this;typeof Object.assign!="function"&&(Object.assign=function(a){if(a==null)throw new TypeError("Cannot convert undefined or null to object");for(var f=Object(a),p=1;p<arguments.length;p++){var m=arguments[p];if(m!=null)for(var v in m)m.hasOwnProperty(v)&&(f[v]=m[v])}return f});var o=Object.assign({},e);return this.isObject(e)&&this.isObject(r)&&Object.keys(r).forEach(function(a){n.isObject(r[a])&&a in e?o[a]=n.extend(e[a],r[a]):Object.assign(o,Aw({},a,r[a]))}),o}},{key:"extendArray",value:function(e,r){var n=[];return e.map(function(o){n.push(t.extend(r,o))}),e=n}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(e){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e===null||to(e)!=="object")return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){r=[],n.set(e,r);for(var o=0;o<e.length;o++)r[o]=this.clone(e[o],n)}else if(e instanceof Date)r=new Date(e.getTime());else for(var a in r={},n.set(e,r),e)e.hasOwnProperty(a)&&(r[a]=this.clone(e[a],n));return r}},{key:"log10",value:function(e){return Math.log(e)/Math.LN10}},{key:"roundToBase10",value:function(e){return Math.pow(10,Math.floor(Math.log10(e)))}},{key:"roundToBase",value:function(e,r){return Math.pow(r,Math.floor(Math.log(e)/Math.log(r)))}},{key:"parseNumber",value:function(e){return typeof e=="number"||e===null?e:parseFloat(e)}},{key:"stripNumber",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Number.isInteger(e)?e:parseFloat(e.toPrecision(r))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){return e.toString().includes("e")?Math.round(e):e}},{key:"elementExists",value:function(e){return!(!e||!e.isConnected)}},{key:"getDimensions",value:function(e){var r=getComputedStyle(e,null),n=e.clientHeight,o=e.clientWidth;return n-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),[o-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),n]}},{key:"getBoundingClientRect",value:function(e){var r=e.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:e.clientWidth,height:e.clientHeight,x:r.left,y:r.top}}},{key:"getLargestStringFromArr",value:function(e){return e.reduce(function(r,n){return Array.isArray(n)&&(n=n.reduce(function(o,a){return o.length>a.length?o:a})),r.length>n.length?r:n},0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;e.substring(0,1)!=="#"&&(e="#999999");var n=e.replace("#","");n=n.match(new RegExp("(.{"+n.length/3+"})","g"));for(var o=0;o<n.length;o++)n[o]=parseInt(n[o].length===1?n[o]+n[o]:n[o],16);return r!==void 0&&n.push(r),"rgba("+n.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&e.length===4?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"getPolygonPos",value:function(e,r){for(var n=[],o=2*Math.PI/r,a=0;a<r;a++){var f={};f.x=e*Math.sin(a*o),f.y=-e*Math.cos(a*o),n.push(f)}return n}},{key:"polarToCartesian",value:function(e,r,n,o){var a=(o-90)*Math.PI/180;return{x:e+n*Math.cos(a),y:r+n*Math.sin(a)}}},{key:"escapeString",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",n=e.toString().slice();return n=n.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,r)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,r,n){if(n>=e.length)for(var o=n-e.length+1;o--;)e.push(void 0);return e.splice(n,0,e.splice(r,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,r){for(;(e=e.parentElement)&&!e.classList.contains(r););return e}},{key:"setELstyles",value:function(e,r){for(var n in r)r.hasOwnProperty(n)&&(e.style.key=r[n])}},{key:"preciseAddition",value:function(e,r){var n=(String(e).split(".")[1]||"").length,o=(String(r).split(".")[1]||"").length,a=Math.pow(10,Math.max(n,o));return(Math.round(e*a)+Math.round(r*a))/a}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%1!=0}},{key:"isMsEdge",value:function(){var e=window.navigator.userAgent,r=e.indexOf("Edge/");return r>0&&parseInt(e.substring(r+5,e.indexOf(".",r)),10)}},{key:"getGCD",value:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:7,o=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,r))));for(e=Math.round(Math.abs(e)*o),r=Math.round(Math.abs(r)*o);r;){var a=r;r=e%r,e=a}return e/o}},{key:"getPrimeFactors",value:function(e){for(var r=[],n=2;e>=2;)e%n==0?(r.push(n),e/=n):n++;return r}},{key:"mod",value:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:7,o=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,r))));return(e=Math.round(Math.abs(e)*o))%(r=Math.round(Math.abs(r)*o))/o}}]),t}(),wh=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"animateLine",value:function(e,r,n,o){e.attr(r).animate(o).attr(n)}},{key:"animateMarker",value:function(e,r,n,o){e.attr({opacity:0}).animate(r).attr({opacity:1}).after(function(){o()})}},{key:"animateRect",value:function(e,r,n,o,a){e.attr(r).animate(o).attr(n).after(function(){return a()})}},{key:"animatePathsGradually",value:function(e){var r=e.el,n=e.realIndex,o=e.j,a=e.fill,f=e.pathFrom,p=e.pathTo,m=e.speed,v=e.delay,y=this.w,x=0;y.config.chart.animations.animateGradually.enabled&&(x=y.config.chart.animations.animateGradually.delay),y.config.chart.animations.dynamicAnimation.enabled&&y.globals.dataChanged&&y.config.chart.type!=="bar"&&(x=0),this.morphSVG(r,n,o,y.config.chart.type!=="line"||y.globals.comboCharts?a:"stroke",f,p,m,v*x)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(e){var r=e.el;r.classList.remove("apexcharts-element-hidden"),r.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(e){var r=this.w;r.globals.animationEnded||(r.globals.animationEnded=!0,this.showDelayedElements(),typeof r.config.chart.events.animationEnd=="function"&&r.config.chart.events.animationEnd(this.ctx,{el:e,w:r}))}},{key:"morphSVG",value:function(e,r,n,o,a,f,p,m){var v=this,y=this.w;a||(a=e.attr("pathFrom")),f||(f=e.attr("pathTo"));var x=function(k){return y.config.chart.type==="radar"&&(p=1),"M 0 ".concat(y.globals.gridHeight)};(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=x()),(!f.trim()||f.indexOf("undefined")>-1||f.indexOf("NaN")>-1)&&(f=x()),y.globals.shouldAnimate||(p=1),e.plot(a).animate(1,m).plot(a).animate(p,m).plot(f).after(function(){se.isNumber(n)?n===y.globals.series[y.globals.maxValsInArrayIndex].length-2&&y.globals.shouldAnimate&&v.animationCompleted(e):o!=="none"&&y.globals.shouldAnimate&&(!y.globals.comboCharts&&r===y.globals.series.length-1||y.globals.comboCharts)&&v.animationCompleted(e),v.showDelayedElements()})}}]),t}();const xR={},MW=[];function mt(t,e){if(Array.isArray(t))for(const r of t)mt(r,e);else if(typeof t!="object")IW(Object.getOwnPropertyNames(e)),xR[t]=Object.assign(xR[t]||{},e);else for(const r in t)mt(r,t[r])}function mo(t){return xR[t]||{}}function IW(t){MW.push(...t)}function l5(t,e){let r;const n=t.length,o=[];for(r=0;r<n;r++)o.push(e(t[r]));return o}function tE(t){return t%360*Math.PI/180}function _h(t){return t.charAt(0).toUpperCase()+t.slice(1)}function kh(t,e,r,n){return e!=null&&r!=null||(n=n||t.bbox(),e==null?e=n.width/n.height*r:r==null&&(r=n.height/n.width*e)),{width:e,height:r}}function wR(t,e){const r=t.origin;let n=t.ox!=null?t.ox:t.originX!=null?t.originX:"center",o=t.oy!=null?t.oy:t.originY!=null?t.originY:"center";r!=null&&([n,o]=Array.isArray(r)?r:typeof r=="object"?[r.x,r.y]:[r,r]);const a=typeof n=="string",f=typeof o=="string";if(a||f){const{height:p,width:m,x:v,y}=e.bbox();a&&(n=n.includes("left")?v:n.includes("right")?v+m:v+m/2),f&&(o=o.includes("top")?y:o.includes("bottom")?y+p:y+p/2)}return[n,o]}const $1e=new Set(["desc","metadata","title"]),_R=t=>$1e.has(t.nodeName),LW=(t,e,r={})=>{const n={...e};for(const o in n)n[o].valueOf()===r[o]&&delete n[o];Object.keys(n).length?t.node.setAttribute("data-svgjs",JSON.stringify(n)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},c5="http://www.w3.org/2000/svg",rE="http://www.w3.org/2000/xmlns/",jh="http://www.w3.org/1999/xlink",Tt={window:typeof window>"u"?null:window,document:typeof document>"u"?null:document};function mb(){return Tt.window}let u5=class{};const cu={},d5="___SYMBOL___ROOT___";function mv(t,e=c5){return Tt.document.createElementNS(e,t)}function oo(t,e=!1){if(t instanceof u5)return t;if(typeof t=="object")return nE(t);if(t==null)return new cu[d5];if(typeof t=="string"&&t.charAt(0)!=="<")return nE(Tt.document.querySelector(t));const r=e?Tt.document.createElement("div"):mv("svg");return r.innerHTML=t,t=nE(r.firstChild),r.removeChild(r.firstChild),t}function ar(t,e){return e&&(e instanceof Tt.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:mv(t)}function mi(t){if(!t)return null;if(t.instance instanceof u5)return t.instance;if(t.nodeName==="#document-fragment")return new cu.Fragment(t);let e=_h(t.nodeName||"Dom");return e==="LinearGradient"||e==="RadialGradient"?e="Gradient":cu[e]||(e="Dom"),new cu[e](t)}let nE=mi;function zt(t,e=t.name,r=!1){return cu[e]=t,r&&(cu[d5]=t),IW(Object.getOwnPropertyNames(t.prototype)),t}let Z1e=1e3;function NW(t){return"Svgjs"+_h(t)+Z1e++}function DW(t){for(let e=t.children.length-1;e>=0;e--)DW(t.children[e]);return t.id&&(t.id=NW(t.nodeName)),t}function nt(t,e){let r,n;for(n=(t=Array.isArray(t)?t:[t]).length-1;n>=0;n--)for(r in e)t[n].prototype[r]=e[r]}function ir(t){return function(...e){const r=e[e.length-1];return!r||r.constructor!==Object||r instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(r)}}mt("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=oo(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=oo(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=oo(t)).before(this),this},insertAfter:function(t){return(t=oo(t)).after(this),this}});const BW=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,K1e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,J1e=/rgb\((\d+),(\d+),(\d+)\)/,Q1e=/(#[a-z_][a-z0-9\-_]*)/i,e_e=/\)\s*,?\s*/,t_e=/\s/g,J9=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Q9=/^rgb\(/,eB=/^(\s+)?$/,tB=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,r_e=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Hs=/[\s,]+/,f5=/[MLHVCSQTAZ]/i;function n_e(t){const e=Math.round(t),r=Math.max(0,Math.min(255,e)).toString(16);return r.length===1?"0"+r:r}function Ud(t,e){for(let r=e.length;r--;)if(t[e[r]]==null)return!1;return!0}function oE(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}mt("Dom",{classes:function(){const t=this.attr("class");return t==null?[]:t.trim().split(Hs)},hasClass:function(t){return this.classes().indexOf(t)!==-1},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter(function(e){return e!==t}).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),mt("Dom",{css:function(t,e){const r={};if(arguments.length===0)return this.node.style.cssText.split(/\s*;\s*/).filter(function(n){return!!n.length}).forEach(function(n){const o=n.split(/\s*:\s*/);r[o[0]]=o[1]}),r;if(arguments.length<2){if(Array.isArray(t)){for(const n of t){const o=n;r[n]=this.node.style.getPropertyValue(o)}return r}if(typeof t=="string")return this.node.style.getPropertyValue(t);if(typeof t=="object")for(const n in t)this.node.style.setProperty(n,t[n]==null||eB.test(t[n])?"":t[n])}return arguments.length===2&&this.node.style.setProperty(t,e==null||eB.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return this.css("display")!=="none"}}),mt("Dom",{data:function(t,e,r){if(t==null)return this.data(l5(function(n,o){let a;const f=n.length,p=[];for(a=0;a<f;a++)o(n[a])&&p.push(n[a]);return p}(this.node.attributes,n=>n.nodeName.indexOf("data-")===0),n=>n.nodeName.slice(5)));if(t instanceof Array){const n={};for(const o of t)n[o]=this.data(o);return n}if(typeof t=="object")for(e in t)this.data(e,t[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch{return this.attr("data-"+t)}else this.attr("data-"+t,e===null?null:r===!0||typeof e=="string"||typeof e=="number"?e:JSON.stringify(e));return this}}),mt("Dom",{remember:function(t,e){if(typeof arguments[0]=="object")for(const r in t)this.remember(r,t[r]);else{if(arguments.length===1)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(arguments.length===0)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class Kt{constructor(...e){this.init(...e)}static isColor(e){return e&&(e instanceof Kt||this.isRgb(e)||this.test(e))}static isRgb(e){return e&&typeof e.r=="number"&&typeof e.g=="number"&&typeof e.b=="number"}static random(e="vibrant",r){const{random:n,round:o,sin:a,PI:f}=Math;if(e==="vibrant"){const p=24*n()+57,m=38*n()+45,v=360*n();return new Kt(p,m,v,"lch")}if(e==="sine"){const p=o(80*a(2*f*(r=r??n())/.5+.01)+150),m=o(50*a(2*f*r/.5+4.6)+200),v=o(100*a(2*f*r/.5+2.3)+150);return new Kt(p,m,v)}if(e==="pastel"){const p=8*n()+86,m=17*n()+9,v=360*n();return new Kt(p,m,v,"lch")}if(e==="dark"){const p=10+10*n(),m=50*n()+86,v=360*n();return new Kt(p,m,v,"lch")}if(e==="rgb"){const p=255*n(),m=255*n(),v=255*n();return new Kt(p,m,v)}if(e==="lab"){const p=100*n(),m=256*n()-128,v=256*n()-128;return new Kt(p,m,v,"lab")}if(e==="grey"){const p=255*n();return new Kt(p,p,p)}throw new Error("Unsupported random color mode")}static test(e){return typeof e=="string"&&(J9.test(e)||Q9.test(e))}cmyk(){const{_a:e,_b:r,_c:n}=this.rgb(),[o,a,f]=[e,r,n].map(m=>m/255),p=Math.min(1-o,1-a,1-f);return p===1?new Kt(0,0,0,1,"cmyk"):new Kt((1-o-p)/(1-p),(1-a-p)/(1-p),(1-f-p)/(1-p),p,"cmyk")}hsl(){const{_a:e,_b:r,_c:n}=this.rgb(),[o,a,f]=[e,r,n].map(k=>k/255),p=Math.max(o,a,f),m=Math.min(o,a,f),v=(p+m)/2,y=p===m,x=p-m;return new Kt(360*(y?0:p===o?((a-f)/x+(a<f?6:0))/6:p===a?((f-o)/x+2)/6:p===f?((o-a)/x+4)/6:0),100*(y?0:v>.5?x/(2-p-m):x/(p+m)),100*v,"hsl")}init(e=0,r=0,n=0,o=0,a="rgb"){if(e=e||0,this.space)for(const x in this.space)delete this[this.space[x]];if(typeof e=="number")a=typeof o=="string"?o:a,o=typeof o=="string"?0:o,Object.assign(this,{_a:e,_b:r,_c:n,_d:o,space:a});else if(e instanceof Array)this.space=r||(typeof e[3]=="string"?e[3]:e[4])||"rgb",Object.assign(this,{_a:e[0],_b:e[1],_c:e[2],_d:e[3]||0});else if(e instanceof Object){const x=function(k,S){const O=Ud(k,"rgb")?{_a:k.r,_b:k.g,_c:k.b,_d:0,space:"rgb"}:Ud(k,"xyz")?{_a:k.x,_b:k.y,_c:k.z,_d:0,space:"xyz"}:Ud(k,"hsl")?{_a:k.h,_b:k.s,_c:k.l,_d:0,space:"hsl"}:Ud(k,"lab")?{_a:k.l,_b:k.a,_c:k.b,_d:0,space:"lab"}:Ud(k,"lch")?{_a:k.l,_b:k.c,_c:k.h,_d:0,space:"lch"}:Ud(k,"cmyk")?{_a:k.c,_b:k.m,_c:k.y,_d:k.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return O.space=S||O.space,O}(e,r);Object.assign(this,x)}else if(typeof e=="string")if(Q9.test(e)){const x=e.replace(t_e,""),[k,S,O]=J1e.exec(x).slice(1,4).map(C=>parseInt(C));Object.assign(this,{_a:k,_b:S,_c:O,_d:0,space:"rgb"})}else{if(!J9.test(e))throw Error("Unsupported string format, can't construct Color");{const x=C=>parseInt(C,16),[,k,S,O]=K1e.exec(function(C){return C.length===4?["#",C.substring(1,2),C.substring(1,2),C.substring(2,3),C.substring(2,3),C.substring(3,4),C.substring(3,4)].join(""):C}(e)).map(x);Object.assign(this,{_a:k,_b:S,_c:O,_d:0,space:"rgb"})}}const{_a:f,_b:p,_c:m,_d:v}=this,y=this.space==="rgb"?{r:f,g:p,b:m}:this.space==="xyz"?{x:f,y:p,z:m}:this.space==="hsl"?{h:f,s:p,l:m}:this.space==="lab"?{l:f,a:p,b:m}:this.space==="lch"?{l:f,c:p,h:m}:this.space==="cmyk"?{c:f,m:p,y:m,k:v}:{};Object.assign(this,y)}lab(){const{x:e,y:r,z:n}=this.xyz();return new Kt(116*r-16,500*(e-r),200*(r-n),"lab")}lch(){const{l:e,a:r,b:n}=this.lab(),o=Math.sqrt(r**2+n**2);let a=180*Math.atan2(n,r)/Math.PI;return a<0&&(a*=-1,a=360-a),new Kt(e,o,a,"lch")}rgb(){if(this.space==="rgb")return this;if((e=this.space)==="lab"||e==="xyz"||e==="lch"){let{x:r,y:n,z:o}=this;if(this.space==="lab"||this.space==="lch"){let{l:S,a:O,b:C}=this;if(this.space==="lch"){const{c:U,h:H}=this,V=Math.PI/180;O=U*Math.cos(V*H),C=U*Math.sin(V*H)}const R=(S+16)/116,E=O/500+R,P=R-C/200,M=16/116,I=.008856,B=7.787;r=.95047*(E**3>I?E**3:(E-M)/B),n=1*(R**3>I?R**3:(R-M)/B),o=1.08883*(P**3>I?P**3:(P-M)/B)}const a=3.2406*r+-1.5372*n+-.4986*o,f=-.9689*r+1.8758*n+.0415*o,p=.0557*r+-.204*n+1.057*o,m=Math.pow,v=.0031308,y=a>v?1.055*m(a,1/2.4)-.055:12.92*a,x=f>v?1.055*m(f,1/2.4)-.055:12.92*f,k=p>v?1.055*m(p,1/2.4)-.055:12.92*p;return new Kt(255*y,255*x,255*k)}if(this.space==="hsl"){let{h:r,s:n,l:o}=this;if(r/=360,n/=100,o/=100,n===0)return o*=255,new Kt(o,o,o);const a=o<.5?o*(1+n):o+n-o*n,f=2*o-a,p=255*oE(f,a,r+1/3),m=255*oE(f,a,r),v=255*oE(f,a,r-1/3);return new Kt(p,m,v)}if(this.space==="cmyk"){const{c:r,m:n,y:o,k:a}=this,f=255*(1-Math.min(1,r*(1-a)+a)),p=255*(1-Math.min(1,n*(1-a)+a)),m=255*(1-Math.min(1,o*(1-a)+a));return new Kt(f,p,m)}return this;var e}toArray(){const{_a:e,_b:r,_c:n,_d:o,space:a}=this;return[e,r,n,o,a]}toHex(){const[e,r,n]=this._clamped().map(n_e);return`#${e}${r}${n}`}toRgb(){const[e,r,n]=this._clamped();return`rgb(${e},${r},${n})`}toString(){return this.toHex()}xyz(){const{_a:e,_b:r,_c:n}=this.rgb(),[o,a,f]=[e,r,n].map(R=>R/255),p=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,m=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92,v=f>.04045?Math.pow((f+.055)/1.055,2.4):f/12.92,y=(.4124*p+.3576*m+.1805*v)/.95047,x=(.2126*p+.7152*m+.0722*v)/1,k=(.0193*p+.1192*m+.9505*v)/1.08883,S=y>.008856?Math.pow(y,1/3):7.787*y+16/116,O=x>.008856?Math.pow(x,1/3):7.787*x+16/116,C=k>.008856?Math.pow(k,1/3):7.787*k+16/116;return new Kt(S,O,C,"xyz")}_clamped(){const{_a:e,_b:r,_c:n}=this.rgb(),{max:o,min:a,round:f}=Math;return[e,r,n].map(p=>o(0,a(f(p),255)))}}class Vt{constructor(...e){this.init(...e)}clone(){return new Vt(this)}init(e,r){const a=Array.isArray(e)?{x:e[0],y:e[1]}:typeof e=="object"?{x:e.x,y:e.y}:{x:e,y:r};return this.x=a.x==null?0:a.x,this.y=a.y==null?0:a.y,this}toArray(){return[this.x,this.y]}transform(e){return this.clone().transformO(e)}transformO(e){Ze.isMatrixLike(e)||(e=new Ze(e));const{x:r,y:n}=this;return this.x=e.a*r+e.c*n+e.e,this.y=e.b*r+e.d*n+e.f,this}}function Vd(t,e,r){return Math.abs(e-t)<1e-6}class Ze{constructor(...e){this.init(...e)}static formatTransforms(e){const r=e.flip==="both"||e.flip===!0,n=e.flip&&(r||e.flip==="x")?-1:1,o=e.flip&&(r||e.flip==="y")?-1:1,a=e.skew&&e.skew.length?e.skew[0]:isFinite(e.skew)?e.skew:isFinite(e.skewX)?e.skewX:0,f=e.skew&&e.skew.length?e.skew[1]:isFinite(e.skew)?e.skew:isFinite(e.skewY)?e.skewY:0,p=e.scale&&e.scale.length?e.scale[0]*n:isFinite(e.scale)?e.scale*n:isFinite(e.scaleX)?e.scaleX*n:n,m=e.scale&&e.scale.length?e.scale[1]*o:isFinite(e.scale)?e.scale*o:isFinite(e.scaleY)?e.scaleY*o:o,v=e.shear||0,y=e.rotate||e.theta||0,x=new Vt(e.origin||e.around||e.ox||e.originX,e.oy||e.originY),k=x.x,S=x.y,O=new Vt(e.position||e.px||e.positionX||NaN,e.py||e.positionY||NaN),C=O.x,R=O.y,E=new Vt(e.translate||e.tx||e.translateX,e.ty||e.translateY),P=E.x,M=E.y,I=new Vt(e.relative||e.rx||e.relativeX,e.ry||e.relativeY);return{scaleX:p,scaleY:m,skewX:a,skewY:f,shear:v,theta:y,rx:I.x,ry:I.y,tx:P,ty:M,ox:k,oy:S,px:C,py:R}}static fromArray(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}static isMatrixLike(e){return e.a!=null||e.b!=null||e.c!=null||e.d!=null||e.e!=null||e.f!=null}static matrixMultiply(e,r,n){const o=e.a*r.a+e.c*r.b,a=e.b*r.a+e.d*r.b,f=e.a*r.c+e.c*r.d,p=e.b*r.c+e.d*r.d,m=e.e+e.a*r.e+e.c*r.f,v=e.f+e.b*r.e+e.d*r.f;return n.a=o,n.b=a,n.c=f,n.d=p,n.e=m,n.f=v,n}around(e,r,n){return this.clone().aroundO(e,r,n)}aroundO(e,r,n){const o=e||0,a=r||0;return this.translateO(-o,-a).lmultiplyO(n).translateO(o,a)}clone(){return new Ze(this)}decompose(e=0,r=0){const n=this.a,o=this.b,a=this.c,f=this.d,p=this.e,m=this.f,v=n*f-o*a,y=v>0?1:-1,x=y*Math.sqrt(n*n+o*o),k=Math.atan2(y*o,y*n),S=180/Math.PI*k,O=Math.cos(k),C=Math.sin(k),R=(n*a+o*f)/v,E=a*x/(R*n-o)||f*x/(R*o+n);return{scaleX:x,scaleY:E,shear:R,rotate:S,translateX:p-e+e*O*x+r*(R*O*x-C*E),translateY:m-r+e*C*x+r*(R*C*x+O*E),originX:e,originY:r,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(e){if(e===this)return!0;const r=new Ze(e);return Vd(this.a,r.a)&&Vd(this.b,r.b)&&Vd(this.c,r.c)&&Vd(this.d,r.d)&&Vd(this.e,r.e)&&Vd(this.f,r.f)}flip(e,r){return this.clone().flipO(e,r)}flipO(e,r){return e==="x"?this.scaleO(-1,1,r,0):e==="y"?this.scaleO(1,-1,0,r):this.scaleO(-1,-1,e,r||e)}init(e){const r=Ze.fromArray([1,0,0,1,0,0]);return e=e instanceof In?e.matrixify():typeof e=="string"?Ze.fromArray(e.split(Hs).map(parseFloat)):Array.isArray(e)?Ze.fromArray(e):typeof e=="object"&&Ze.isMatrixLike(e)?e:typeof e=="object"?new Ze().transform(e):arguments.length===6?Ze.fromArray([].slice.call(arguments)):r,this.a=e.a!=null?e.a:r.a,this.b=e.b!=null?e.b:r.b,this.c=e.c!=null?e.c:r.c,this.d=e.d!=null?e.d:r.d,this.e=e.e!=null?e.e:r.e,this.f=e.f!=null?e.f:r.f,this}inverse(){return this.clone().inverseO()}inverseO(){const e=this.a,r=this.b,n=this.c,o=this.d,a=this.e,f=this.f,p=e*o-r*n;if(!p)throw new Error("Cannot invert "+this);const m=o/p,v=-r/p,y=-n/p,x=e/p,k=-(m*a+y*f),S=-(v*a+x*f);return this.a=m,this.b=v,this.c=y,this.d=x,this.e=k,this.f=S,this}lmultiply(e){return this.clone().lmultiplyO(e)}lmultiplyO(e){const r=e instanceof Ze?e:new Ze(e);return Ze.matrixMultiply(r,this,this)}multiply(e){return this.clone().multiplyO(e)}multiplyO(e){const r=e instanceof Ze?e:new Ze(e);return Ze.matrixMultiply(this,r,this)}rotate(e,r,n){return this.clone().rotateO(e,r,n)}rotateO(e,r=0,n=0){e=tE(e);const o=Math.cos(e),a=Math.sin(e),{a:f,b:p,c:m,d:v,e:y,f:x}=this;return this.a=f*o-p*a,this.b=p*o+f*a,this.c=m*o-v*a,this.d=v*o+m*a,this.e=y*o-x*a+n*a-r*o+r,this.f=x*o+y*a-r*a-n*o+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(e,r=e,n=0,o=0){arguments.length===3&&(o=n,n=r,r=e);const{a,b:f,c:p,d:m,e:v,f:y}=this;return this.a=a*e,this.b=f*r,this.c=p*e,this.d=m*r,this.e=v*e-n*e+n,this.f=y*r-o*r+o,this}shear(e,r,n){return this.clone().shearO(e,r,n)}shearO(e,r=0,n=0){const{a:o,b:a,c:f,d:p,e:m,f:v}=this;return this.a=o+a*e,this.c=f+p*e,this.e=m+v*e-n*e,this}skew(){return this.clone().skewO(...arguments)}skewO(e,r=e,n=0,o=0){arguments.length===3&&(o=n,n=r,r=e),e=tE(e),r=tE(r);const a=Math.tan(e),f=Math.tan(r),{a:p,b:m,c:v,d:y,e:x,f:k}=this;return this.a=p+m*a,this.b=m+p*f,this.c=v+y*a,this.d=y+v*f,this.e=x+k*a-o*a,this.f=k+x*f-n*f,this}skewX(e,r,n){return this.skew(e,0,r,n)}skewY(e,r,n){return this.skew(0,e,r,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(e){if(Ze.isMatrixLike(e))return new Ze(e).multiplyO(this);const r=Ze.formatTransforms(e),{x:n,y:o}=new Vt(r.ox,r.oy).transform(this),a=new Ze().translateO(r.rx,r.ry).lmultiplyO(this).translateO(-n,-o).scaleO(r.scaleX,r.scaleY).skewO(r.skewX,r.skewY).shearO(r.shear).rotateO(r.theta).translateO(n,o);if(isFinite(r.px)||isFinite(r.py)){const f=new Vt(n,o).transform(a),p=isFinite(r.px)?r.px-f.x:0,m=isFinite(r.py)?r.py-f.y:0;a.translateO(p,m)}return a.translateO(r.tx,r.ty),a}translate(e,r){return this.clone().translateO(e,r)}translateO(e,r){return this.e+=e||0,this.f+=r||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function yl(){if(!yl.nodes){const t=oo().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const e=t.path().node;yl.nodes={svg:t,path:e}}if(!yl.nodes.svg.node.parentNode){const t=Tt.document.body||Tt.document.documentElement;yl.nodes.svg.addTo(t)}return yl.nodes}function FW(t){return!(t.width||t.height||t.x||t.y)}zt(Ze,"Matrix");class Br{constructor(...e){this.init(...e)}addOffset(){return this.x+=Tt.window.pageXOffset,this.y+=Tt.window.pageYOffset,new Br(this)}init(e){return e=typeof e=="string"?e.split(Hs).map(parseFloat):Array.isArray(e)?e:typeof e=="object"?[e.left!=null?e.left:e.x,e.top!=null?e.top:e.y,e.width,e.height]:arguments.length===4?[].slice.call(arguments):[0,0,0,0],this.x=e[0]||0,this.y=e[1]||0,this.width=this.w=e[2]||0,this.height=this.h=e[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return FW(this)}merge(e){const r=Math.min(this.x,e.x),n=Math.min(this.y,e.y),o=Math.max(this.x+this.width,e.x+e.width)-r,a=Math.max(this.y+this.height,e.y+e.height)-n;return new Br(r,n,o,a)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(e){e instanceof Ze||(e=new Ze(e));let r=1/0,n=-1/0,o=1/0,a=-1/0;return[new Vt(this.x,this.y),new Vt(this.x2,this.y),new Vt(this.x,this.y2),new Vt(this.x2,this.y2)].forEach(function(f){f=f.transform(e),r=Math.min(r,f.x),n=Math.max(n,f.x),o=Math.min(o,f.y),a=Math.max(a,f.y)}),new Br(r,o,n-r,a-o)}}function rB(t,e,r){let n;try{if(n=e(t.node),FW(n)&&(o=t.node)!==Tt.document&&!(Tt.document.documentElement.contains||function(a){for(;a.parentNode;)a=a.parentNode;return a===Tt.document}).call(Tt.document.documentElement,o))throw new Error("Element not in the dom")}catch{n=r(t)}var o;return n}mt({viewbox:{viewbox(t,e,r,n){return t==null?new Br(this.attr("viewBox")):this.attr("viewBox",new Br(t,e,r,n))},zoom(t,e){let{width:r,height:n}=this.attr(["width","height"]);if((r||n)&&typeof r!="string"&&typeof n!="string"||(r=this.node.clientWidth,n=this.node.clientHeight),!r||!n)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const o=this.viewbox(),a=r/o.width,f=n/o.height,p=Math.min(a,f);if(t==null)return p;let m=p/t;m===1/0&&(m=Number.MAX_SAFE_INTEGER/100),e=e||new Vt(r/2/a+o.x,n/2/f+o.y);const v=new Br(o).transform(new Ze({scale:m,origin:e}));return this.viewbox(v)}}}),zt(Br,"Box");class _u extends Array{constructor(e=[],...r){if(super(e,...r),typeof e=="number")return this;this.length=0,this.push(...e)}}nt([_u],{each(t,...e){return typeof t=="function"?this.map((r,n,o)=>t.call(r,r,n,o)):this.map(r=>r[t](...e))},toArray(){return Array.prototype.concat.apply([],this)}});const o_e=["toArray","constructor","each"];function Pu(t,e){return new _u(l5((e||Tt.document).querySelectorAll(t),function(r){return mi(r)}))}_u.extend=function(t){t=t.reduce((e,r)=>(o_e.includes(r)||r[0]==="_"||(r in Array.prototype&&(e["$"+r]=Array.prototype[r]),e[r]=function(...n){return this.each(r,...n)}),e),{}),nt([_u],t)};let i_e=0;const HW={};function UW(t){let e=t.getEventHolder();return e===Tt.window&&(e=HW),e.events||(e.events={}),e.events}function h5(t){return t.getEventTarget()}function Ss(t,e,r,n,o){const a=r.bind(n||t),f=oo(t),p=UW(f),m=h5(f);e=Array.isArray(e)?e:e.split(Hs),r._svgjsListenerId||(r._svgjsListenerId=++i_e),e.forEach(function(v){const y=v.split(".")[0],x=v.split(".")[1]||"*";p[y]=p[y]||{},p[y][x]=p[y][x]||{},p[y][x][r._svgjsListenerId]=a,m.addEventListener(y,a,o||!1)})}function ji(t,e,r,n){const o=oo(t),a=UW(o),f=h5(o);(typeof r!="function"||(r=r._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Hs)).forEach(function(p){const m=p&&p.split(".")[0],v=p&&p.split(".")[1];let y,x;if(r)a[m]&&a[m][v||"*"]&&(f.removeEventListener(m,a[m][v||"*"][r],n||!1),delete a[m][v||"*"][r]);else if(m&&v){if(a[m]&&a[m][v]){for(x in a[m][v])ji(f,[m,v].join("."),x);delete a[m][v]}}else if(v)for(p in a)for(y in a[p])v===y&&ji(f,[p,v].join("."));else if(m){if(a[m]){for(y in a[m])ji(f,[m,y].join("."));delete a[m]}}else{for(p in a)ji(f,p);(function(k){let S=k.getEventHolder();S===Tt.window&&(S=HW),S.events&&(S.events={})})(o)}})}class vb extends u5{addEventListener(){}dispatch(e,r,n){return function(o,a,f,p){const m=h5(o);return a instanceof Tt.window.Event||(a=new Tt.window.CustomEvent(a,{detail:f,cancelable:!0,...p})),m.dispatchEvent(a),a}(this,e,r,n)}dispatchEvent(e){const r=this.getEventHolder().events;if(!r)return!0;const n=r[e.type];for(const o in n)for(const a in n[o])n[o][a](e);return!e.defaultPrevented}fire(e,r,n){return this.dispatch(e,r,n),this}getEventHolder(){return this}getEventTarget(){return this}off(e,r,n){return ji(this,e,r,n),this}on(e,r,n,o){return Ss(this,e,r,n,o),this}removeEventListener(){}}function nB(){}zt(vb,"EventTarget");const iE=400,a_e=">",s_e=0,l_e={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class ku extends Array{constructor(...e){super(...e),this.init(...e)}clone(){return new this.constructor(this)}init(e){return typeof e=="number"||(this.length=0,this.push(...this.parse(e))),this}parse(e=[]){return e instanceof Array?e:e.trim().split(Hs).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const e=[];return e.push(...this),e}}class ft{constructor(...e){this.init(...e)}convert(e){return new ft(this.value,e)}divide(e){return e=new ft(e),new ft(this/e,this.unit||e.unit)}init(e,r){return r=Array.isArray(e)?e[1]:r,e=Array.isArray(e)?e[0]:e,this.value=0,this.unit=r||"",typeof e=="number"?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:typeof e=="string"?(r=e.match(BW))&&(this.value=parseFloat(r[1]),r[5]==="%"?this.value/=100:r[5]==="s"&&(this.value*=1e3),this.unit=r[5]):e instanceof ft&&(this.value=e.valueOf(),this.unit=e.unit),this}minus(e){return e=new ft(e),new ft(this-e,this.unit||e.unit)}plus(e){return e=new ft(e),new ft(this+e,this.unit||e.unit)}times(e){return e=new ft(e),new ft(this*e,this.unit||e.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return(this.unit==="%"?~~(1e8*this.value)/1e6:this.unit==="s"?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const c_e=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),VW=[];class Gl extends vb{constructor(e,r){super(),this.node=e,this.type=e.nodeName,r&&e!==r&&this.attr(r)}add(e,r){return(e=oo(e)).removeNamespace&&this.node instanceof Tt.window.SVGElement&&e.removeNamespace(),r==null?this.node.appendChild(e.node):e.node!==this.node.childNodes[r]&&this.node.insertBefore(e.node,this.node.childNodes[r]),this}addTo(e,r){return oo(e).put(this,r)}children(){return new _u(l5(this.node.children,function(e){return mi(e)}))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(e=!0,r=!0){this.writeDataToDom();let n=this.node.cloneNode(e);return r&&(n=DW(n)),new this.constructor(n)}each(e,r){const n=this.children();let o,a;for(o=0,a=n.length;o<a;o++)e.apply(n[o],[o,n]),r&&n[o].each(e,r);return this}element(e,r){return this.put(new Gl(mv(e),r))}first(){return mi(this.node.firstChild)}get(e){return mi(this.node.childNodes[e])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(e){return this.index(e)>=0}html(e,r){return this.xml(e,r,"http://www.w3.org/1999/xhtml")}id(e){return e!==void 0||this.node.id||(this.node.id=NW(this.type)),this.attr("id",e)}index(e){return[].slice.call(this.node.childNodes).indexOf(e.node)}last(){return mi(this.node.lastChild)}matches(e){const r=this.node,n=r.matches||r.matchesSelector||r.msMatchesSelector||r.mozMatchesSelector||r.webkitMatchesSelector||r.oMatchesSelector||null;return n&&n.call(r,e)}parent(e){let r=this;if(!r.node.parentNode)return null;if(r=mi(r.node.parentNode),!e)return r;do if(typeof e=="string"?r.matches(e):r instanceof e)return r;while(r=mi(r.node.parentNode));return r}put(e,r){return e=oo(e),this.add(e,r),e}putIn(e,r){return oo(e).add(this,r)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(e){return this.node.removeChild(e.node),this}replace(e){return e=oo(e),this.node.parentNode&&this.node.parentNode.replaceChild(e.node,this.node),e}round(e=2,r=null){const n=10**e,o=this.attr(r);for(const a in o)typeof o[a]=="number"&&(o[a]=Math.round(o[a]*n)/n);return this.attr(o),this}svg(e,r){return this.xml(e,r,c5)}toString(){return this.id()}words(e){return this.node.textContent=e,this}wrap(e){const r=this.parent();if(!r)return this.addTo(e);const n=r.index(this);return r.put(e,n).put(this)}writeDataToDom(){return this.each(function(){this.writeDataToDom()}),this}xml(e,r,n){if(typeof e=="boolean"&&(n=r,r=e,e=null),e==null||typeof e=="function"){r=r==null||r,this.writeDataToDom();let p=this;if(e!=null){if(p=mi(p.node.cloneNode(!0)),r){const m=e(p);if(p=m||p,m===!1)return""}p.each(function(){const m=e(this),v=m||this;m===!1?this.remove():m&&this!==v&&this.replace(v)},!0)}return r?p.node.outerHTML:p.node.innerHTML}r=r!=null&&r;const o=mv("wrapper",n),a=Tt.document.createDocumentFragment();o.innerHTML=e;for(let p=o.children.length;p--;)a.appendChild(o.firstElementChild);const f=this.parent();return r?this.replace(a)&&f:this.add(a)}}nt(Gl,{attr:function(t,e,r){if(t==null){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=tB.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return t}if(t instanceof Array)return t.reduce((n,o)=>(n[o]=this.attr(o),n),{});if(typeof t=="object"&&t.constructor===Object)for(e in t)this.attr(e,t[e]);else if(e===null)this.node.removeAttribute(t);else{if(e==null)return(e=this.node.getAttribute(t))==null?l_e[t]:tB.test(e)?parseFloat(e):e;typeof(e=VW.reduce((n,o)=>o(t,n,this),e))=="number"?e=new ft(e):c_e.has(t)&&Kt.isColor(e)?e=new Kt(e):e.constructor===Array&&(e=new ku(e)),t==="leading"?this.leading&&this.leading(e):typeof r=="string"?this.node.setAttributeNS(r,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||t!=="font-size"&&t!=="x"||this.rebuild()}return this},find:function(t){return Pu(t,this.node)},findOne:function(t){return mi(this.node.querySelector(t))}}),zt(Gl,"Dom");let In=class extends Gl{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,e){return this.cx(t).cy(e)}cx(t){return t==null?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return t==null?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new ft(t).plus(this.x()))}dy(t=0){return this.y(new ft(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e=typeof t=="string";e||(t=oo(t));const r=new _u;let n=this;for(;(n=n.parent())&&n.node!==Tt.document&&n.nodeName!=="#document-fragment"&&(r.push(n),e||n.node!==t.node)&&(!e||!n.matches(t));)if(n.node===this.root().node)return null;return r}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(Q1e);return e?oo(e[1]):null}root(){const t=this.parent(function(e){return cu[e]}(d5));return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const r=kh(this,t,e);return this.width(new ft(r.width)).height(new ft(r.height))}width(t){return this.attr("width",t)}writeDataToDom(){return LW(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}};nt(In,{bbox:function(){const t=rB(this,e=>e.getBBox(),e=>{try{const r=e.clone().addTo(yl().svg).show(),n=r.node.getBBox();return r.remove(),n}catch(r){throw new Error(`Getting bbox of element "${e.node.nodeName}" is not possible: ${r.toString()}`)}});return new Br(t)},rbox:function(t){const e=rB(this,n=>n.getBoundingClientRect(),n=>{throw new Error(`Getting rbox of element "${n.node.nodeName}" is not possible`)}),r=new Br(e);return t?r.transform(t.screenCTM().inverseO()):r.addOffset()},inside:function(t,e){const r=this.bbox();return t>r.x&&e>r.y&&t<r.x+r.width&&e<r.y+r.height},point:function(t,e){return new Vt(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new Ze(this.node.getCTM())},screenCTM:function(){try{if(typeof this.isRoot=="function"&&!this.isRoot()){const t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new Ze(e)}return new Ze(this.node.getScreenCTM())}catch{return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new Ze}}}),zt(In,"Element");const dm={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return e==="color"?t:t+"-"+e}};["fill","stroke"].forEach(function(t){const e={};let r;e[t]=function(n){if(n===void 0)return this.attr(t);if(typeof n=="string"||n instanceof Kt||Kt.isRgb(n)||n instanceof In)this.attr(t,n);else for(r=dm[t].length-1;r>=0;r--)n[dm[t][r]]!=null&&this.attr(dm.prefix(t,dm[t][r]),n[dm[t][r]]);return this},mt(["Element","Runner"],e)}),mt(["Element","Runner"],{matrix:function(t,e,r,n,o,a){return t==null?new Ze(this):this.attr("transform",new Ze(t,e,r,n,o,a))},rotate:function(t,e,r){return this.transform({rotate:t,ox:e,oy:r},!0)},skew:function(t,e,r,n){return arguments.length===1||arguments.length===3?this.transform({skew:t,ox:e,oy:r},!0):this.transform({skew:[t,e],ox:r,oy:n},!0)},shear:function(t,e,r){return this.transform({shear:t,ox:e,oy:r},!0)},scale:function(t,e,r,n){return arguments.length===1||arguments.length===3?this.transform({scale:t,ox:e,oy:r},!0):this.transform({scale:[t,e],ox:r,oy:n},!0)},translate:function(t,e){return this.transform({translate:[t,e]},!0)},relative:function(t,e){return this.transform({relative:[t,e]},!0)},flip:function(t="both",e="center"){return"xybothtrue".indexOf(t)===-1&&(e=t,t="both"),this.transform({flip:t,origin:e},!0)},opacity:function(t){return this.attr("opacity",t)}}),mt("radius",{radius:function(t,e=t){return(this._element||this).type==="radialGradient"?this.attr("r",new ft(t)):this.rx(t).ry(e)}}),mt("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new Vt(this.node.getPointAtLength(t))}}),mt(["Element","Runner"],{font:function(t,e){if(typeof t=="object"){for(e in t)this.font(e,t[e]);return this}return t==="leading"?this.leading(e):t==="anchor"?this.attr("text-anchor",e):t==="size"||t==="family"||t==="weight"||t==="stretch"||t==="variant"||t==="style"?this.attr("font-"+t,e):this.attr(t,e)}});mt("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce(function(t,e){return t[e]=function(r){return r===null?this.off(e):this.on(e,r),this},t},{})),mt("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(e_e).slice(0,-1).map(function(e){const r=e.trim().split("(");return[r[0],r[1].split(Hs).map(function(n){return parseFloat(n)})]}).reverse().reduce(function(e,r){return r[0]==="matrix"?e.lmultiply(Ze.fromArray(r[1])):e[r[0]].apply(e,r[1])},new Ze)},toParent:function(t,e){if(this===t)return this;if(_R(this.node))return this.addTo(t,e);const r=this.screenCTM(),n=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(n.multiply(r)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,e){if(t==null||typeof t=="string"){const n=new Ze(this).decompose();return t==null?n:n[t]}Ze.isMatrixLike(t)||(t={...t,origin:wR(t,this)});const r=new Ze(e===!0?this:e||!1).transform(t);return this.attr("transform",r)}});class co extends In{flatten(){return this.each(function(){if(this instanceof co)return this.flatten().ungroup()}),this}ungroup(e=this.parent(),r=e.index(this)){return r=r===-1?e.children().length:r,this.each(function(n,o){return o[o.length-n-1].toParent(e,r)}),this.remove()}}zt(co,"Container");class V1 extends co{constructor(e,r=e){super(ar("defs",e),r)}flatten(){return this}ungroup(){return this}}zt(V1,"Defs");class Ko extends In{}function p5(t){return this.attr("rx",t)}function g5(t){return this.attr("ry",t)}function qW(t){return t==null?this.cx()-this.rx():this.cx(t+this.rx())}function YW(t){return t==null?this.cy()-this.ry():this.cy(t+this.ry())}function WW(t){return this.attr("cx",t)}function XW(t){return this.attr("cy",t)}function GW(t){return t==null?2*this.rx():this.rx(new ft(t).divide(2))}function $W(t){return t==null?2*this.ry():this.ry(new ft(t).divide(2))}zt(Ko,"Shape");var u_e=Object.freeze({__proto__:null,cx:WW,cy:XW,height:$W,rx:p5,ry:g5,width:GW,x:qW,y:YW});class vx extends Ko{constructor(e,r=e){super(ar("ellipse",e),r)}size(e,r){const n=kh(this,e,r);return this.rx(new ft(n.width).divide(2)).ry(new ft(n.height).divide(2))}}nt(vx,u_e),mt("Container",{ellipse:ir(function(t=0,e=t){return this.put(new vx).size(t,e).move(0,0)})}),zt(vx,"Ellipse");class ZW extends Gl{constructor(e=Tt.document.createDocumentFragment()){super(e)}xml(e,r,n){if(typeof e=="boolean"&&(n=r,r=e,e=null),e==null||typeof e=="function"){const o=new Gl(mv("wrapper",n));return o.add(this.node.cloneNode(!0)),o.xml(!1,n)}return super.xml(e,!1,n)}}function KW(t,e){return(this._element||this).type==="radialGradient"?this.attr({fx:new ft(t),fy:new ft(e)}):this.attr({x1:new ft(t),y1:new ft(e)})}function JW(t,e){return(this._element||this).type==="radialGradient"?this.attr({cx:new ft(t),cy:new ft(e)}):this.attr({x2:new ft(t),y2:new ft(e)})}zt(ZW,"Fragment");var d_e=Object.freeze({__proto__:null,from:KW,to:JW});class Hm extends co{constructor(e,r){super(ar(e+"Gradient",typeof e=="string"?null:e),r)}attr(e,r,n){return e==="transform"&&(e="gradientTransform"),super.attr(e,r,n)}bbox(){return new Br}targets(){return Pu("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(e){return this.clear(),typeof e=="function"&&e.call(this,this),this}url(){return"url(#"+this.id()+")"}}nt(Hm,d_e),mt({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:ir(function(t,e){return this.put(new Hm(t)).update(e)})}}),zt(Hm,"Gradient");class vv extends co{constructor(e,r=e){super(ar("pattern",e),r)}attr(e,r,n){return e==="transform"&&(e="patternTransform"),super.attr(e,r,n)}bbox(){return new Br}targets(){return Pu("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(e){return this.clear(),typeof e=="function"&&e.call(this,this),this}url(){return"url(#"+this.id()+")"}}mt({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:ir(function(t,e,r){return this.put(new vv).update(r).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})})}}),zt(vv,"Pattern");let bx=class extends Ko{constructor(t,e=t){super(ar("image",t),e)}load(t,e){if(!t)return this;const r=new Tt.window.Image;return Ss(r,"load",function(n){const o=this.parent(vv);this.width()===0&&this.height()===0&&this.size(r.width,r.height),o instanceof vv&&o.width()===0&&o.height()===0&&o.size(this.width(),this.height()),typeof e=="function"&&e.call(this,n)},this),Ss(r,"load error",function(){ji(r)}),this.attr("href",r.src=t,jh)}};var oB;oB=function(t,e,r){return t!=="fill"&&t!=="stroke"||r_e.test(e)&&(e=r.root().defs().image(e)),e instanceof bx&&(e=r.root().defs().pattern(0,0,n=>{n.add(e)})),e},VW.push(oB),mt({Container:{image:ir(function(t,e){return this.put(new bx).size(0,0).load(t,e)})}}),zt(bx,"Image");class $l extends ku{bbox(){let e=-1/0,r=-1/0,n=1/0,o=1/0;return this.forEach(function(a){e=Math.max(a[0],e),r=Math.max(a[1],r),n=Math.min(a[0],n),o=Math.min(a[1],o)}),new Br(n,o,e-n,r-o)}move(e,r){const n=this.bbox();if(e-=n.x,r-=n.y,!isNaN(e)&&!isNaN(r))for(let o=this.length-1;o>=0;o--)this[o]=[this[o][0]+e,this[o][1]+r];return this}parse(e=[0,0]){const r=[];(e=e instanceof Array?Array.prototype.concat.apply([],e):e.trim().split(Hs).map(parseFloat)).length%2!=0&&e.pop();for(let n=0,o=e.length;n<o;n+=2)r.push([e[n],e[n+1]]);return r}size(e,r){let n;const o=this.bbox();for(n=this.length-1;n>=0;n--)o.width&&(this[n][0]=(this[n][0]-o.x)*e/o.width+o.x),o.height&&(this[n][1]=(this[n][1]-o.y)*r/o.height+o.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const e=[];for(let r=0,n=this.length;r<n;r++)e.push(this[r].join(","));return e.join(" ")}transform(e){return this.clone().transformO(e)}transformO(e){Ze.isMatrixLike(e)||(e=new Ze(e));for(let r=this.length;r--;){const[n,o]=this[r];this[r][0]=e.a*n+e.c*o+e.e,this[r][1]=e.b*n+e.d*o+e.f}return this}}const f_e=$l;var m5=Object.freeze({__proto__:null,MorphArray:f_e,height:function(t){const e=this.bbox();return t==null?e.height:this.size(e.width,t)},width:function(t){const e=this.bbox();return t==null?e.width:this.size(t,e.height)},x:function(t){return t==null?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return t==null?this.bbox().y:this.move(this.bbox().x,t)}});let Hc=class extends Ko{constructor(t,e=t){super(ar("line",t),e)}array(){return new $l([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,r,n){return t==null?this.array():(t=e!==void 0?{x1:t,y1:e,x2:r,y2:n}:new $l(t).toLine(),this.attr(t))}size(t,e){const r=kh(this,t,e);return this.attr(this.array().size(r.width,r.height).toLine())}};nt(Hc,m5),mt({Container:{line:ir(function(...t){return Hc.prototype.plot.apply(this.put(new Hc),t[0]!=null?t:[0,0,0,0])})}}),zt(Hc,"Line");let yx=class extends co{constructor(t,e=t){super(ar("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),typeof t=="function"&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}};function sf(t,e){return function(r){return r==null?this[t]:(this[t]=r,e&&e.call(this),this)}}mt({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:ir(function(t,e,r){return this.put(new yx).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(r)})},marker:{marker(t,e,r,n){let o=["marker"];return t!=="all"&&o.push(t),o=o.join("-"),t=arguments[1]instanceof yx?arguments[1]:this.defs().marker(e,r,n),this.attr(o,t)}}}),zt(yx,"Marker");const h_e={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,e,r,n){return function(o){return o<0?t>0?e/t*o:r>0?n/r*o:0:o>1?r<1?(1-n)/(1-r)*o+(n-r)/(1-r):t<1?(1-e)/(1-t)*o+(e-t)/(1-t):1:3*o*(1-o)**2*e+3*o**2*(1-o)*n+o**3}},steps:function(t,e="end"){e=e.split("-").reverse()[0];let r=t;return e==="none"?--r:e==="both"&&++r,(n,o=!1)=>{let a=Math.floor(n*t);const f=n*a%1==0;return e!=="start"&&e!=="both"||++a,o&&f&&--a,n>=0&&a<0&&(a=0),n<=1&&a>r&&(a=r),a/r}}};class v5{done(){return!1}}class kR extends v5{constructor(e=a_e){super(),this.ease=h_e[e]||e}step(e,r,n){return typeof e!="number"?n<1?e:r:e+(r-e)*this.ease(n)}}class Ew extends v5{constructor(e){super(),this.stepper=e}done(e){return e.done}step(e,r,n,o){return this.stepper(e,r,n,o)}}function iB(){const t=(this._duration||500)/1e3,e=this._overshoot||0,r=Math.PI,n=Math.log(e/100+1e-10),o=-n/Math.sqrt(r*r+n*n),a=3.9/(o*t);this.d=2*o*a,this.k=a*a}nt(class extends Ew{constructor(t=500,e=0){super(),this.duration(t).overshoot(e)}step(t,e,r,n){if(typeof t=="string")return t;if(n.done=r===1/0,r===1/0)return e;if(r===0)return t;r>100&&(r=16),r/=1e3;const o=n.velocity||0,a=-this.d*o-this.k*(t-e),f=t+o*r+a*r*r/2;return n.velocity=o+a*r,n.done=Math.abs(e-f)+Math.abs(o)<.002,n.done?e:f}},{duration:sf("_duration",iB),overshoot:sf("_overshoot",iB)});nt(class extends Ew{constructor(t=.1,e=.01,r=0,n=1e3){super(),this.p(t).i(e).d(r).windup(n)}step(t,e,r,n){if(typeof t=="string")return t;if(n.done=r===1/0,r===1/0)return e;if(r===0)return t;const o=e-t;let a=(n.integral||0)+o*r;const f=(o-(n.error||0))/r,p=this._windup;return p!==!1&&(a=Math.max(-p,Math.min(a,p))),n.error=o,n.integral=a,n.done=Math.abs(o)<.001,n.done?e:t+(this.P*o+this.I*a+this.D*f)}},{windup:sf("_windup"),p:sf("P"),i:sf("I"),d:sf("D")});const p_e={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},jR={M:function(t,e,r){return e.x=r.x=t[0],e.y=r.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,r){return e.x=r.x,e.y=r.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},aE="mlhvqtcsaz".split("");for(let t=0,e=aE.length;t<e;++t)jR[aE[t]]=function(r){return function(n,o,a){if(r==="H")n[0]=n[0]+o.x;else if(r==="V")n[0]=n[0]+o.y;else if(r==="A")n[5]=n[5]+o.x,n[6]=n[6]+o.y;else for(let f=0,p=n.length;f<p;++f)n[f]=n[f]+(f%2?o.y:o.x);return jR[r](n,o,a)}}(aE[t].toUpperCase());function SR(t){return t.segment.length&&t.segment.length-1===p_e[t.segment[0].toUpperCase()]}function g_e(t,e){t.inNumber&&Lc(t,!1);const r=f5.test(e);if(r)t.segment=[e];else{const n=t.lastCommand,o=n.toLowerCase(),a=n===o;t.segment=[o==="m"?a?"l":"L":n]}return t.inSegment=!0,t.lastCommand=t.segment[0],r}function Lc(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,SR(t)&&CR(t)}function CR(t){t.inSegment=!1,t.absolute&&(t.segment=function(e){const r=e.segment[0];return jR[r](e.segment.slice(1),e.p,e.p0)}(t)),t.segments.push(t.segment)}function m_e(t){if(!t.segment.length)return!1;const e=t.segment[0].toUpperCase()==="A",r=t.segment.length;return e&&(r===4||r===5)}function v_e(t){return t.lastToken.toUpperCase()==="E"}const b_e=new Set([" ",",","	",`
`,"\r","\f"]);class Ki extends ku{bbox(){return yl().path.setAttribute("d",this.toString()),new Br(yl.nodes.path.getBBox())}move(e,r){const n=this.bbox();if(e-=n.x,r-=n.y,!isNaN(e)&&!isNaN(r))for(let o,a=this.length-1;a>=0;a--)o=this[a][0],o==="M"||o==="L"||o==="T"?(this[a][1]+=e,this[a][2]+=r):o==="H"?this[a][1]+=e:o==="V"?this[a][1]+=r:o==="C"||o==="S"||o==="Q"?(this[a][1]+=e,this[a][2]+=r,this[a][3]+=e,this[a][4]+=r,o==="C"&&(this[a][5]+=e,this[a][6]+=r)):o==="A"&&(this[a][6]+=e,this[a][7]+=r);return this}parse(e="M0 0"){return Array.isArray(e)&&(e=Array.prototype.concat.apply([],e).toString()),function(r,n=!0){let o=0,a="";const f={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:n,p0:new Vt,p:new Vt};for(;f.lastToken=a,a=r.charAt(o++);)if(f.inSegment||!g_e(f,a))if(a!==".")if(isNaN(parseInt(a)))if(b_e.has(a))f.inNumber&&Lc(f,!1);else if(a!=="-"&&a!=="+")if(a.toUpperCase()!=="E"){if(f5.test(a)){if(f.inNumber)Lc(f,!1);else{if(!SR(f))throw new Error("parser Error");CR(f)}--o}}else f.number+=a,f.hasExponent=!0;else{if(f.inNumber&&!v_e(f)){Lc(f,!1),--o;continue}f.number+=a,f.inNumber=!0}else{if(f.number==="0"||m_e(f)){f.inNumber=!0,f.number=a,Lc(f,!0);continue}f.inNumber=!0,f.number+=a}else{if(f.pointSeen||f.hasExponent){Lc(f,!1),--o;continue}f.inNumber=!0,f.pointSeen=!0,f.number+=a}return f.inNumber&&Lc(f,!1),f.inSegment&&SR(f)&&CR(f),f.segments}(e)}size(e,r){const n=this.bbox();let o,a;for(n.width=n.width===0?1:n.width,n.height=n.height===0?1:n.height,o=this.length-1;o>=0;o--)a=this[o][0],a==="M"||a==="L"||a==="T"?(this[o][1]=(this[o][1]-n.x)*e/n.width+n.x,this[o][2]=(this[o][2]-n.y)*r/n.height+n.y):a==="H"?this[o][1]=(this[o][1]-n.x)*e/n.width+n.x:a==="V"?this[o][1]=(this[o][1]-n.y)*r/n.height+n.y:a==="C"||a==="S"||a==="Q"?(this[o][1]=(this[o][1]-n.x)*e/n.width+n.x,this[o][2]=(this[o][2]-n.y)*r/n.height+n.y,this[o][3]=(this[o][3]-n.x)*e/n.width+n.x,this[o][4]=(this[o][4]-n.y)*r/n.height+n.y,a==="C"&&(this[o][5]=(this[o][5]-n.x)*e/n.width+n.x,this[o][6]=(this[o][6]-n.y)*r/n.height+n.y)):a==="A"&&(this[o][1]=this[o][1]*e/n.width,this[o][2]=this[o][2]*r/n.height,this[o][6]=(this[o][6]-n.x)*e/n.width+n.x,this[o][7]=(this[o][7]-n.y)*r/n.height+n.y);return this}toString(){return function(e){let r="";for(let n=0,o=e.length;n<o;n++)r+=e[n][0],e[n][1]!=null&&(r+=e[n][1],e[n][2]!=null&&(r+=" ",r+=e[n][2],e[n][3]!=null&&(r+=" ",r+=e[n][3],r+=" ",r+=e[n][4],e[n][5]!=null&&(r+=" ",r+=e[n][5],r+=" ",r+=e[n][6],e[n][7]!=null&&(r+=" ",r+=e[n][7])))));return r+" "}(this)}}const QW=t=>{const e=typeof t;return e==="number"?ft:e==="string"?Kt.isColor(t)?Kt:Hs.test(t)?f5.test(t)?Ki:ku:BW.test(t)?ft:AR:OR.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?ku:e==="object"?bv:AR};class Nc{constructor(e){this._stepper=e||new kR("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(e){return this._morphObj.morph(this._from,this._to,e,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce(function(e,r){return e&&r},!0)}from(e){return e==null?this._from:(this._from=this._set(e),this)}stepper(e){return e==null?this._stepper:(this._stepper=e,this)}to(e){return e==null?this._to:(this._to=this._set(e),this)}type(e){return e==null?this._type:(this._type=e,this)}_set(e){this._type||this.type(QW(e));let r=new this._type(e);return this._type===Kt&&(r=this._to?r[this._to[4]]():this._from?r[this._from[4]]():r),this._type===bv&&(r=this._to?r.align(this._to):this._from?r.align(this._from):r),r=r.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(r.length)).map(Object).map(function(n){return n.done=!0,n}),r}}class AR{constructor(...e){this.init(...e)}init(e){return e=Array.isArray(e)?e[0]:e,this.value=e,this}toArray(){return[this.value]}valueOf(){return this.value}}class bb{constructor(...e){this.init(...e)}init(e){return Array.isArray(e)&&(e={scaleX:e[0],scaleY:e[1],shear:e[2],rotate:e[3],translateX:e[4],translateY:e[5],originX:e[6],originY:e[7]}),Object.assign(this,bb.defaults,e),this}toArray(){const e=this;return[e.scaleX,e.scaleY,e.shear,e.rotate,e.translateX,e.translateY,e.originX,e.originY]}}bb.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const y_e=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class bv{constructor(...e){this.init(...e)}align(e){const r=this.values;for(let n=0,o=r.length;n<o;++n){if(r[n+1]===e[n+1]){if(r[n+1]===Kt&&e[n+7]!==r[n+7]){const p=e[n+7],m=new Kt(this.values.splice(n+3,5))[p]().toArray();this.values.splice(n+3,0,...m)}n+=r[n+2]+2;continue}if(!e[n+1])return this;const a=new e[n+1]().toArray(),f=r[n+2]+3;r.splice(n,f,e[n],e[n+1],e[n+2],...a),n+=r[n+2]+2}return this}init(e){if(this.values=[],Array.isArray(e))return void(this.values=e.slice());e=e||{};const r=[];for(const n in e){const o=QW(e[n]),a=new o(e[n]).toArray();r.push([n,o,a.length,...a])}return r.sort(y_e),this.values=r.reduce((n,o)=>n.concat(o),[]),this}toArray(){return this.values}valueOf(){const e={},r=this.values;for(;r.length;){const n=r.shift(),o=r.shift(),a=r.shift(),f=r.splice(0,a);e[n]=new o(f)}return e}}const OR=[AR,bb,bv];class wf extends Ko{constructor(e,r=e){super(ar("path",e),r)}array(){return this._array||(this._array=new Ki(this.attr("d")))}clear(){return delete this._array,this}height(e){return e==null?this.bbox().height:this.size(this.bbox().width,e)}move(e,r){return this.attr("d",this.array().move(e,r))}plot(e){return e==null?this.array():this.clear().attr("d",typeof e=="string"?e:this._array=new Ki(e))}size(e,r){const n=kh(this,e,r);return this.attr("d",this.array().size(n.width,n.height))}width(e){return e==null?this.bbox().width:this.size(e,this.bbox().height)}x(e){return e==null?this.bbox().x:this.move(e,this.bbox().y)}y(e){return e==null?this.bbox().y:this.move(this.bbox().x,e)}}wf.prototype.MorphArray=Ki,mt({Container:{path:ir(function(t){return this.put(new wf).plot(t||new Ki)})}}),zt(wf,"Path");var eX=Object.freeze({__proto__:null,array:function(){return this._array||(this._array=new $l(this.attr("points")))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},plot:function(t){return t==null?this.array():this.clear().attr("points",typeof t=="string"?t:this._array=new $l(t))},size:function(t,e){const r=kh(this,t,e);return this.attr("points",this.array().size(r.width,r.height))}});class Uc extends Ko{constructor(e,r=e){super(ar("polygon",e),r)}}mt({Container:{polygon:ir(function(t){return this.put(new Uc).plot(t||new $l)})}}),nt(Uc,m5),nt(Uc,eX),zt(Uc,"Polygon");class Vc extends Ko{constructor(e,r=e){super(ar("polyline",e),r)}}mt({Container:{polyline:ir(function(t){return this.put(new Vc).plot(t||new $l)})}}),nt(Vc,m5),nt(Vc,eX),zt(Vc,"Polyline");class xx extends Ko{constructor(e,r=e){super(ar("rect",e),r)}}nt(xx,{rx:p5,ry:g5}),mt({Container:{rect:ir(function(t,e){return this.put(new xx).size(t,e)})}}),zt(xx,"Rect");class sE{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(e){const r=e.next!==void 0?e:{value:e,next:null,prev:null};return this._last?(r.prev=this._last,this._last.next=r,this._last=r):(this._last=r,this._first=r),r}remove(e){e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e===this._last&&(this._last=e.prev),e===this._first&&(this._first=e.next),e.prev=null,e.next=null}shift(){const e=this._first;return e?(this._first=e.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,e.value):null}}const Gt={nextDraw:null,frames:new sE,timeouts:new sE,immediates:new sE,timer:()=>Tt.window.performance||Tt.window.Date,transforms:[],frame(t){const e=Gt.frames.push({run:t});return Gt.nextDraw===null&&(Gt.nextDraw=Tt.window.requestAnimationFrame(Gt._draw)),e},timeout(t,e){e=e||0;const r=Gt.timer().now()+e,n=Gt.timeouts.push({run:t,time:r});return Gt.nextDraw===null&&(Gt.nextDraw=Tt.window.requestAnimationFrame(Gt._draw)),n},immediate(t){const e=Gt.immediates.push(t);return Gt.nextDraw===null&&(Gt.nextDraw=Tt.window.requestAnimationFrame(Gt._draw)),e},cancelFrame(t){t!=null&&Gt.frames.remove(t)},clearTimeout(t){t!=null&&Gt.timeouts.remove(t)},cancelImmediate(t){t!=null&&Gt.immediates.remove(t)},_draw(t){let e=null;const r=Gt.timeouts.last();for(;(e=Gt.timeouts.shift())&&(t>=e.time?e.run():Gt.timeouts.push(e),e!==r););let n=null;const o=Gt.frames.last();for(;n!==o&&(n=Gt.frames.shift());)n.run(t);let a=null;for(;a=Gt.immediates.shift();)a();Gt.nextDraw=Gt.timeouts.first()||Gt.frames.first()?Tt.window.requestAnimationFrame(Gt._draw):null}},x_e=function(t){const e=t.start,r=t.runner.duration();return{start:e,duration:r,end:e+r,runner:t.runner}},w_e=function(){const t=Tt.window;return(t.performance||t.Date).now()};class tX extends vb{constructor(e=w_e){super(),this._timeSource=e,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const e=this.getLastRunnerInfo(),r=e?e.runner.duration():0;return(e?e.start:this._time)+r}getEndTimeOfTimeline(){const e=this._runners.map(r=>r.start+r.runner.duration());return Math.max(0,...e)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(e){return this._runners[this._runnerIds.indexOf(e)]||null}pause(){return this._paused=!0,this._continue()}persist(e){return e==null?this._persist:(this._persist=e,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(e){const r=this.speed();if(e==null)return this.speed(-r);const n=Math.abs(r);return this.speed(e?-n:n)}schedule(e,r,n){if(e==null)return this._runners.map(x_e);let o=0;const a=this.getEndTime();if(r=r||0,n==null||n==="last"||n==="after")o=a;else if(n==="absolute"||n==="start")o=r,r=0;else if(n==="now")o=this._time;else if(n==="relative"){const m=this.getRunnerInfoById(e.id);m&&(o=m.start+r,r=0)}else{if(n!=="with-last")throw new Error('Invalid value for the "when" parameter');{const m=this.getLastRunnerInfo();o=m?m.start:this._time}}e.unschedule(),e.timeline(this);const f=e.persist(),p={persist:f===null?this._persist:f,start:o+r,runner:e};return this._lastRunnerId=e.id,this._runners.push(p),this._runners.sort((m,v)=>m.start-v.start),this._runnerIds=this._runners.map(m=>m.runner.id),this.updateTime()._continue(),this}seek(e){return this.time(this._time+e)}source(e){return e==null?this._timeSource:(this._timeSource=e,this)}speed(e){return e==null?this._speed:(this._speed=e,this)}stop(){return this.time(0),this.pause()}time(e){return e==null?this._time:(this._time=e,this._continue(!0))}unschedule(e){const r=this._runnerIds.indexOf(e.id);return r<0||(this._runners.splice(r,1),this._runnerIds.splice(r,1),e.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(e=!1){return Gt.cancelFrame(this._nextFrame),this._nextFrame=null,e?this._stepImmediate():(this._paused||(this._nextFrame=Gt.frame(this._step)),this)}_stepFn(e=!1){const r=this._timeSource();let n=r-this._lastSourceTime;e&&(n=0);const o=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=r,e||(this._time+=o,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let f=this._runners.length;f--;){const p=this._runners[f],m=p.runner;this._time-p.start<=0&&m.reset()}let a=!1;for(let f=0,p=this._runners.length;f<p;f++){const m=this._runners[f],v=m.runner;let y=o;const x=this._time-m.start;if(x<=0){a=!0;continue}x<y&&(y=x),v.active()&&(v.step(y).done?m.persist!==!0&&v.duration()-v.time()+this._time+m.persist<this._time&&(v.unschedule(),--f,--p):a=!0)}return a&&!(this._speed<0&&this._time===0)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}mt({Element:{timeline:function(t){return t==null?(this._timeline=this._timeline||new tX,this._timeline):(this._timeline=t,this)}}});class Xo extends vb{constructor(e){super(),this.id=Xo.id++,e=typeof(e=e??iE)=="function"?new Ew(e):e,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration=typeof e=="number"&&e,this._isDeclarative=e instanceof Ew,this._stepper=this._isDeclarative?e:new kR,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new Ze,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(e,r,n){let o=1,a=!1,f=0;return r=r??s_e,n=n||"last",typeof(e=e??iE)!="object"||e instanceof v5||(r=e.delay??r,n=e.when??n,a=e.swing||a,o=e.times??o,f=e.wait??f,e=e.duration??iE),{duration:e,delay:r,swing:a,times:o,wait:f,when:n}}active(e){return e==null?this.enabled:(this.enabled=e,this)}addTransform(e){return this.transforms.lmultiplyO(e),this}after(e){return this.on("finished",e)}animate(e,r,n){const o=Xo.sanitise(e,r,n),a=new Xo(o.duration);return this._timeline&&a.timeline(this._timeline),this._element&&a.element(this._element),a.loop(o).schedule(o.delay,o.when)}clearTransform(){return this.transforms=new Ze,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter(e=>!e.isTransform))}delay(e){return this.animate(0,e)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(e){return this.queue(null,e)}ease(e){return this._stepper=new kR(e),this}element(e){return e==null?this._element:(this._element=e,e._prepareRunner(),this)}finish(){return this.step(1/0)}loop(e,r,n){return typeof e=="object"&&(r=e.swing,n=e.wait,e=e.times),this._times=e||1/0,this._swing=r||!1,this._wait=n||0,this._times===!0&&(this._times=1/0),this}loops(e){const r=this._duration+this._wait;if(e==null){const a=Math.floor(this._time/r),f=(this._time-a*r)/this._duration;return Math.min(a+f,this._times)}const n=e%1,o=r*Math.floor(e)+this._duration*n;return this.time(o)}persist(e){return e==null?this._persist:(this._persist=e,this)}position(e){const r=this._time,n=this._duration,o=this._wait,a=this._times,f=this._swing,p=this._reverse;let m;if(e==null){const x=function(S){const O=f*Math.floor(S%(2*(o+n))/(o+n)),C=O&&!p||!O&&p,R=Math.pow(-1,C)*(S%(o+n))/n+C;return Math.max(Math.min(R,1),0)},k=a*(o+n)-o;return m=r<=0?Math.round(x(1e-5)):r<k?x(r):Math.round(x(k-1e-5)),m}const v=Math.floor(this.loops()),y=f&&v%2==0;return m=v+(y&&!p||p&&y?e:1-e),this.loops(m)}progress(e){return e==null?Math.min(1,this._time/this.duration()):this.time(e*this.duration())}queue(e,r,n,o){return this._queue.push({initialiser:e||nB,runner:r||nB,retarget:n,isTransform:o,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(e){return this._reverse=e??!this._reverse,this}schedule(e,r,n){if(e instanceof tX||(n=r,r=e,e=this.timeline()),!e)throw Error("Runner cannot be scheduled without timeline");return e.schedule(this,r,n),this}step(e){if(!this.enabled)return this;e=e??16,this._time+=e;const r=this.position(),n=this._lastPosition!==r&&this._time>=0;this._lastPosition=r;const o=this.duration(),a=this._lastTime<=0&&this._time>0,f=this._lastTime<o&&this._time>=o;this._lastTime=this._time,a&&this.fire("start",this);const p=this._isDeclarative;this.done=!p&&!f&&this._time>=o,this._reseted=!1;let m=!1;return(n||p)&&(this._initialise(n),this.transforms=new Ze,m=this._run(p?e:r),this.fire("step",this)),this.done=this.done||m&&p,f&&this.fire("finished",this),this}time(e){if(e==null)return this._time;const r=e-this._time;return this.step(r),this}timeline(e){return e===void 0?this._timeline:(this._timeline=e,this)}unschedule(){const e=this.timeline();return e&&e.unschedule(this),this}_initialise(e){if(e||this._isDeclarative)for(let r=0,n=this._queue.length;r<n;++r){const o=this._queue[r],a=this._isDeclarative||!o.initialised&&e;e=!o.finished,a&&e&&(o.initialiser.call(this),o.initialised=!0)}}_rememberMorpher(e,r){if(this._history[e]={morpher:r,caller:this._queue[this._queue.length-1]},this._isDeclarative){const n=this.timeline();n&&n.play()}}_run(e){let r=!0;for(let n=0,o=this._queue.length;n<o;++n){const a=this._queue[n],f=a.runner.call(this,e);a.finished=a.finished||f===!0,r=r&&a.finished}return r}_tryRetarget(e,r,n){if(this._history[e]){if(!this._history[e].caller.initialised){const a=this._queue.indexOf(this._history[e].caller);return this._queue.splice(a,1),!1}this._history[e].caller.retarget?this._history[e].caller.retarget.call(this,r,n):this._history[e].morpher.to(r),this._history[e].caller.finished=!1;const o=this.timeline();return o&&o.play(),!0}return!1}}Xo.id=0;class Tw{constructor(e=new Ze,r=-1,n=!0){this.transforms=e,this.id=r,this.done=n}clearTransformsFromQueue(){}}nt([Xo,Tw],{mergeWith(t){return new Tw(t.transforms.lmultiply(this.transforms),t.id)}});const rX=(t,e)=>t.lmultiplyO(e),nX=t=>t.transforms;function __e(){const t=this._transformationRunners.runners.map(nX).reduce(rX,new Ze);this.transform(t),this._transformationRunners.merge(),this._transformationRunners.length()===1&&(this._frameId=null)}class k_e{constructor(){this.runners=[],this.ids=[]}add(e){if(this.runners.includes(e))return;const r=e.id+1;return this.runners.push(e),this.ids.push(r),this}clearBefore(e){const r=this.ids.indexOf(e+1)||1;return this.ids.splice(0,r,0),this.runners.splice(0,r,new Tw).forEach(n=>n.clearTransformsFromQueue()),this}edit(e,r){const n=this.ids.indexOf(e+1);return this.ids.splice(n,1,e+1),this.runners.splice(n,1,r),this}getByID(e){return this.runners[this.ids.indexOf(e+1)]}length(){return this.ids.length}merge(){let e=null;for(let r=0;r<this.runners.length;++r){const n=this.runners[r];if(e&&n.done&&e.done&&(!n._timeline||!n._timeline._runnerIds.includes(n.id))&&(!e._timeline||!e._timeline._runnerIds.includes(e.id))){this.remove(n.id);const o=n.mergeWith(e);this.edit(e.id,o),e=o,--r}else e=n}return this}remove(e){const r=this.ids.indexOf(e+1);return this.ids.splice(r,1),this.runners.splice(r,1),this}}mt({Element:{animate(t,e,r){const n=Xo.sanitise(t,e,r),o=this.timeline();return new Xo(n.duration).loop(n).element(this).timeline(o.play()).schedule(n.delay,n.when)},delay(t,e){return this.animate(0,t,e)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter(e=>e.id<=t.id).map(nX).reduce(rX,new Ze)},_addRunner(t){this._transformationRunners.add(t),Gt.cancelImmediate(this._frameId),this._frameId=Gt.immediate(__e.bind(this))},_prepareRunner(){this._frameId==null&&(this._transformationRunners=new k_e().add(new Tw(new Ze(this))))}}});nt(Xo,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,r){if(typeof e=="string")return this.styleAttr(t,{[e]:r});let n=e;if(this._tryRetarget(t,n))return this;let o=new Nc(this._stepper).to(n),a=Object.keys(n);return this.queue(function(){o=o.from(this.element()[t](a))},function(f){return this.element()[t](o.at(f).valueOf()),o.done()},function(f){const p=Object.keys(f),m=(v=a,p.filter(x=>!v.includes(x)));var v;if(m.length){const x=this.element()[t](m),k=new bv(o.from()).valueOf();Object.assign(k,x),o.from(k)}const y=new bv(o.to()).valueOf();Object.assign(y,f),o.to(y),a=p,n=f}),this._rememberMorpher(t,o),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let r=new Nc(this._stepper).to(new ft(t));return this.queue(function(){r=r.from(this.element().zoom())},function(n){return this.element().zoom(r.at(n),e),r.done()},function(n,o){e=o,r.to(n)}),this._rememberMorpher("zoom",r),this},transform(t,e,r){if(e=t.relative||e,this._isDeclarative&&!e&&this._tryRetarget("transform",t))return this;const n=Ze.isMatrixLike(t);r=t.affine!=null?t.affine:r??!n;const o=new Nc(this._stepper).type(r?bb:Ze);let a,f,p,m,v;return this.queue(function(){f=f||this.element(),a=a||wR(t,f),v=new Ze(e?void 0:f),f._addRunner(this),e||f._clearTransformRunnersBefore(this)},function(y){e||this.clearTransform();const{x,y:k}=new Vt(a).transform(f._currentTransform(this));let S=new Ze({...t,origin:[x,k]}),O=this._isDeclarative&&p?p:v;if(r){S=S.decompose(x,k),O=O.decompose(x,k);const R=S.rotate,E=O.rotate,P=[R-360,R,R+360],M=P.map(U=>Math.abs(U-E)),I=Math.min(...M),B=M.indexOf(I);S.rotate=P[B]}e&&(n||(S.rotate=t.rotate||0),this._isDeclarative&&m&&(O.rotate=m)),o.from(O),o.to(S);const C=o.at(y);return m=C.rotate,p=new Ze(C),this.addTransform(p),f._addRunner(this),o.done()},function(y){(y.origin||"center").toString()!==(t.origin||"center").toString()&&(a=wR(y,f)),t={...y,origin:a}},!0),this._isDeclarative&&this._rememberMorpher("transform",o),this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,e){return this.dx(t).dy(e)},_queueNumberDelta(t,e){if(e=new ft(e),this._tryRetarget(t,e))return this;const r=new Nc(this._stepper).to(e);let n=null;return this.queue(function(){n=this.element()[t](),r.from(n),r.to(n+e)},function(o){return this.element()[t](r.at(o)),r.done()},function(o){r.to(n+new ft(o))}),this._rememberMorpher(t,r),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const r=new Nc(this._stepper).to(e);return this.queue(function(){r.from(this.element()[t]())},function(n){return this.element()[t](r.at(n)),r.done()}),this._rememberMorpher(t,r),this},_queueNumber(t,e){return this._queueObject(t,new ft(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},amove(t,e){return this.ax(t).ay(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let r;return t&&e||(r=this._element.bbox()),t||(t=r.width/r.height*e),e||(e=r.height/r.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,r,n){if(arguments.length===4)return this.plot([t,e,r,n]);if(this._tryRetarget("plot",t))return this;const o=new Nc(this._stepper).type(this._element.MorphArray).to(t);return this.queue(function(){o.from(this._element.array())},function(a){return this._element.plot(o.at(a)),o.done()}),this._rememberMorpher("plot",o),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,r,n){return this._queueObject("viewbox",new Br(t,e,r,n))},update(t){return typeof t!="object"?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(t.opacity!=null&&this.attr("stop-opacity",t.opacity),t.color!=null&&this.attr("stop-color",t.color),t.offset!=null&&this.attr("offset",t.offset),this)}}),nt(Xo,{rx:p5,ry:g5,from:KW,to:JW}),zt(Xo,"Runner");class ER extends co{constructor(e,r=e){super(ar("svg",e),r),this.namespace()}defs(){return this.isRoot()?mi(this.node.querySelector("defs"))||this.put(new V1):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Tt.window.SVGElement)&&this.node.parentNode.nodeName!=="#document-fragment"}namespace(){return this.isRoot()?this.attr({xmlns:c5,version:"1.1"}).attr("xmlns:xlink",jh,rE):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,rE).attr("xmlns:svgjs",null,rE)}root(){return this.isRoot()?this:super.root()}}mt({Container:{nested:ir(function(){return this.put(new ER)})}}),zt(ER,"Svg",!0);let TR=class extends co{constructor(t,e=t){super(ar("symbol",t),e)}};mt({Container:{symbol:ir(function(){return this.put(new TR)})}}),zt(TR,"Symbol");var oX=Object.freeze({__proto__:null,amove:function(t,e){return this.ax(t).ay(e)},ax:function(t){return this.attr("x",t)},ay:function(t){return this.attr("y",t)},build:function(t){return this._build=!!t,this},center:function(t,e,r=this.bbox()){return this.cx(t,r).cy(e,r)},cx:function(t,e=this.bbox()){return t==null?e.cx:this.attr("x",this.attr("x")+t-e.cx)},cy:function(t,e=this.bbox()){return t==null?e.cy:this.attr("y",this.attr("y")+t-e.cy)},length:function(){return this.node.getComputedTextLength()},move:function(t,e,r=this.bbox()){return this.x(t,r).y(e,r)},plain:function(t){return this._build===!1&&this.clear(),this.node.appendChild(Tt.document.createTextNode(t)),this},x:function(t,e=this.bbox()){return t==null?e.x:this.attr("x",this.attr("x")+t-e.x)},y:function(t,e=this.bbox()){return t==null?e.y:this.attr("y",this.attr("y")+t-e.y)}});class Ji extends Ko{constructor(e,r=e){super(ar("text",e),r),this.dom.leading=this.dom.leading??new ft(1.3),this._rebuild=!0,this._build=!1}leading(e){return e==null?this.dom.leading:(this.dom.leading=new ft(e),this.rebuild())}rebuild(e){if(typeof e=="boolean"&&(this._rebuild=e),this._rebuild){const r=this;let n=0;const o=this.dom.leading;this.each(function(a){if(_R(this.node))return;const f=Tt.window.getComputedStyle(this.node).getPropertyValue("font-size"),p=o*new ft(f);this.dom.newLined&&(this.attr("x",r.attr("x")),this.text()===`
`?n+=p:(this.attr("dy",a?p+n:0),n=0))}),this.fire("rebuild")}return this}setData(e){return this.dom=e,this.dom.leading=new ft(e.leading||1.3),this}writeDataToDom(){return LW(this,this.dom,{leading:1.3}),this}text(e){if(e===void 0){const r=this.node.childNodes;let n=0;e="";for(let o=0,a=r.length;o<a;++o)r[o].nodeName==="textPath"||_R(r[o])?o===0&&(n=o+1):(o!==n&&r[o].nodeType!==3&&mi(r[o]).dom.newLined===!0&&(e+=`
`),e+=r[o].textContent);return e}if(this.clear().build(!0),typeof e=="function")e.call(this,this);else for(let r=0,n=(e=(e+"").split(`
`)).length;r<n;r++)this.newLine(e[r]);return this.build(!1).rebuild()}}nt(Ji,oX),mt({Container:{text:ir(function(t=""){return this.put(new Ji).text(t)}),plain:ir(function(t=""){return this.put(new Ji).plain(t)})}}),zt(Ji,"Text");class wx extends Ko{constructor(e,r=e){super(ar("tspan",e),r),this._build=!1}dx(e){return this.attr("dx",e)}dy(e){return this.attr("dy",e)}newLine(){this.dom.newLined=!0;const e=this.parent();if(!(e instanceof Ji))return this;const r=e.index(this),n=Tt.window.getComputedStyle(this.node).getPropertyValue("font-size"),o=e.dom.leading*new ft(n);return this.dy(r?o:0).attr("x",e.x())}text(e){return e==null?this.node.textContent+(this.dom.newLined?`
`:""):(typeof e=="function"?(this.clear().build(!0),e.call(this,this),this.build(!1)):this.plain(e),this)}}nt(wx,oX),mt({Tspan:{tspan:ir(function(t=""){const e=new wx;return this._build||this.clear(),this.put(e).text(t)})},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),zt(wx,"Tspan");class lE extends Ko{constructor(e,r=e){super(ar("circle",e),r)}radius(e){return this.attr("r",e)}rx(e){return this.attr("r",e)}ry(e){return this.rx(e)}size(e){return this.radius(new ft(e).divide(2))}}nt(lE,{x:qW,y:YW,cx:WW,cy:XW,width:GW,height:$W}),mt({Container:{circle:ir(function(t=0){return this.put(new lE).size(t).move(0,0)})}}),zt(lE,"Circle");class cE extends co{constructor(e,r=e){super(ar("clipPath",e),r)}remove(){return this.targets().forEach(function(e){e.unclip()}),super.remove()}targets(){return Pu("svg [clip-path*="+this.id()+"]")}}mt({Container:{clip:ir(function(){return this.defs().put(new cE)})},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof cE?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),zt(cE,"ClipPath");class aB extends In{constructor(e,r=e){super(ar("foreignObject",e),r)}}mt({Container:{foreignObject:ir(function(t,e){return this.put(new aB).size(t,e)})}}),zt(aB,"ForeignObject");var iX=Object.freeze({__proto__:null,dmove:function(t,e){return this.children().forEach(r=>{let n;try{n=r.node instanceof mb().SVGSVGElement?new Br(r.attr(["x","y","width","height"])):r.bbox()}catch{return}const o=new Ze(r),a=o.translate(t,e).transform(o.inverse()),f=new Vt(n.x,n.y).transform(a);r.move(f.x,f.y)}),this},dx:function(t){return this.dmove(t,0)},dy:function(t){return this.dmove(0,t)},height:function(t,e=this.bbox()){return t==null?e.height:this.size(e.width,t,e)},move:function(t=0,e=0,r=this.bbox()){const n=t-r.x,o=e-r.y;return this.dmove(n,o)},size:function(t,e,r=this.bbox()){const n=kh(this,t,e,r),o=n.width/r.width,a=n.height/r.height;return this.children().forEach(f=>{const p=new Vt(r).transform(new Ze(f).inverse());f.scale(o,a,p.x,p.y)}),this},width:function(t,e=this.bbox()){return t==null?e.width:this.size(t,e.height,e)},x:function(t,e=this.bbox()){return t==null?e.x:this.move(t,e.y,e)},y:function(t,e=this.bbox()){return t==null?e.y:this.move(e.x,t,e)}});class Fl extends co{constructor(e,r=e){super(ar("g",e),r)}}nt(Fl,iX),mt({Container:{group:ir(function(){return this.put(new Fl)})}}),zt(Fl,"G");class F0 extends co{constructor(e,r=e){super(ar("a",e),r)}target(e){return this.attr("target",e)}to(e){return this.attr("href",e,jh)}}nt(F0,iX),mt({Container:{link:ir(function(t){return this.put(new F0).to(t)})},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const r=e.index(t);return e.add(this,r),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new F0,this.wrap(e)),typeof t=="function"?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&t.node.nodeName.toLowerCase()==="a"?t:null}}}),zt(F0,"A");class uE extends co{constructor(e,r=e){super(ar("mask",e),r)}remove(){return this.targets().forEach(function(e){e.unmask()}),super.remove()}targets(){return Pu("svg [mask*="+this.id()+"]")}}mt({Container:{mask:ir(function(){return this.defs().put(new uE)})},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof uE?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),zt(uE,"Mask");class sB extends In{constructor(e,r=e){super(ar("stop",e),r)}update(e){return(typeof e=="number"||e instanceof ft)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),e.opacity!=null&&this.attr("stop-opacity",e.opacity),e.color!=null&&this.attr("stop-color",e.color),e.offset!=null&&this.attr("offset",new ft(e.offset)),this}}mt({Gradient:{stop:function(t,e,r){return this.put(new sB).update(t,e,r)}}}),zt(sB,"Stop");class dE extends In{constructor(e,r=e){super(ar("style",e),r)}addText(e=""){return this.node.textContent+=e,this}font(e,r,n={}){return this.rule("@font-face",{fontFamily:e,src:r,...n})}rule(e,r){return this.addText(function(n,o){if(!n)return"";if(!o)return n;let a=n+"{";for(const f in o)a+=f.replace(/([A-Z])/g,function(p,m){return"-"+m.toLowerCase()})+":"+o[f]+";";return a+="}",a}(e,r))}}mt("Dom",{style(t,e){return this.put(new dE).rule(t,e)},fontface(t,e,r){return this.put(new dE).font(t,e,r)}}),zt(dE,"Style");class fE extends Ji{constructor(e,r=e){super(ar("textPath",e),r)}array(){const e=this.track();return e?e.array():null}plot(e){const r=this.track();let n=null;return r&&(n=r.plot(e)),e==null?n:this}track(){return this.reference("href")}}mt({Container:{textPath:ir(function(t,e){return t instanceof Ji||(t=this.text(t)),t.path(e)})},Text:{path:ir(function(t,e=!0){const r=new fE;let n;if(t instanceof wf||(t=this.defs().path(t)),r.attr("href","#"+t,jh),e)for(;n=this.node.firstChild;)r.node.appendChild(n);return this.put(r)}),textPath(){return this.findOne("textPath")}},Path:{text:ir(function(t){return t instanceof Ji||(t=new Ji().addTo(this.parent()).text(t)),t.path(this)}),targets(){return Pu("svg textPath").filter(t=>(t.attr("href")||"").includes(this.id()))}}}),fE.prototype.MorphArray=Ki,zt(fE,"TextPath");class lB extends Ko{constructor(e,r=e){super(ar("use",e),r)}use(e,r){return this.attr("href",(r||"")+"#"+e,jh)}}mt({Container:{use:ir(function(t,e){return this.put(new lB).use(t,e)})}}),zt(lB,"Use");const j_e=oo;nt([ER,TR,bx,vv,yx],mo("viewbox")),nt([Hc,Vc,Uc,wf],mo("marker")),nt(Ji,mo("Text")),nt(wf,mo("Path")),nt(V1,mo("Defs")),nt([Ji,wx],mo("Tspan")),nt([xx,vx,Hm,Xo],mo("radius")),nt(vb,mo("EventTarget")),nt(Gl,mo("Dom")),nt(In,mo("Element")),nt(Ko,mo("Shape")),nt([co,ZW],mo("Container")),nt(Hm,mo("Gradient")),nt(Xo,mo("Runner")),_u.extend([...new Set(MW)]),function(t=[]){OR.push(...[].concat(t))}([ft,Kt,Br,Ze,ku,$l,Ki,Vt]),nt(OR,{to(t){return new Nc().type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,r,n,o){return this.fromArray(t.map(function(a,f){return n.step(a,e[f],r,o[f],o)}))}});class dr extends In{constructor(e){super(ar("filter",e),e),this.$source="SourceGraphic",this.$sourceAlpha="SourceAlpha",this.$background="BackgroundImage",this.$backgroundAlpha="BackgroundAlpha",this.$fill="FillPaint",this.$stroke="StrokePaint",this.$autoSetIn=!0}put(e,r){return!(e=super.put(e,r)).attr("in")&&this.$autoSetIn&&e.attr("in",this.$source),e.attr("result")||e.attr("result",e.id()),e}remove(){return this.targets().each("unfilter"),super.remove()}targets(){return Pu('svg [filter*="'+this.id()+'"]')}toString(){return"url(#"+this.id()+")"}}class b5 extends In{constructor(e,r){super(e,r),this.result(this.id())}in(e){if(e==null){const r=this.attr("in");return this.parent()&&this.parent().find(`[result="${r}"]`)[0]||r}return this.attr("in",e)}result(e){return this.attr("result",e)}toString(){return this.result()}}const di=t=>function(...e){for(let r=t.length;r--;)e[r]!=null&&this.attr(t[r],e[r])},S_e={blend:di(["in","in2","mode"]),colorMatrix:di(["type","values"]),composite:di(["in","in2","operator"]),convolveMatrix:function(t){t=new ku(t).toString(),this.attr({order:Math.sqrt(t.split(" ").length),kernelMatrix:t})},diffuseLighting:di(["surfaceScale","lightingColor","diffuseConstant","kernelUnitLength"]),displacementMap:di(["in","in2","scale","xChannelSelector","yChannelSelector"]),dropShadow:di(["in","dx","dy","stdDeviation"]),flood:di(["flood-color","flood-opacity"]),gaussianBlur:function(t=0,e=t){this.attr("stdDeviation",t+" "+e)},image:function(t){this.attr("href",t,jh)},morphology:di(["operator","radius"]),offset:di(["dx","dy"]),specularLighting:di(["surfaceScale","lightingColor","diffuseConstant","specularExponent","kernelUnitLength"]),tile:di([]),turbulence:di(["baseFrequency","numOctaves","seed","stitchTiles","type"])};["blend","colorMatrix","componentTransfer","composite","convolveMatrix","diffuseLighting","displacementMap","dropShadow","flood","gaussianBlur","image","merge","morphology","offset","specularLighting","tile","turbulence"].forEach(t=>{const e=_h(t),r=S_e[t];dr[e+"Effect"]=class extends b5{constructor(n){super(ar("fe"+e,n),n)}update(n){return r.apply(this,n),this}},dr.prototype[t]=ir(function(n,...o){const a=new dr[e+"Effect"];return n==null?this.put(a):(typeof n=="function"?n.call(a,a):o.unshift(n),this.put(a).update(o))})}),nt(dr,{merge(t){const e=this.put(new dr.MergeEffect);return typeof t=="function"?(t.call(e,e),e):((t instanceof Array?t:[...arguments]).forEach(r=>{r instanceof dr.MergeNode?e.put(r):e.mergeNode(r)}),e)},componentTransfer(t={}){const e=this.put(new dr.ComponentTransferEffect);if(typeof t=="function")return t.call(e,e),e;t.r||t.g||t.b||t.a||(t={r:t,g:t,b:t,a:t});for(const r in t)e.add(new dr["Func"+r.toUpperCase()](t[r]));return e}});["distantLight","pointLight","spotLight","mergeNode","FuncR","FuncG","FuncB","FuncA"].forEach(t=>{const e=_h(t);dr[e]=class extends b5{constructor(r){super(ar("fe"+e,r),r)}}});["funcR","funcG","funcB","funcA"].forEach(function(t){const e=dr[_h(t)],r=ir(function(){return this.put(new e)});dr.ComponentTransferEffect.prototype[t]=r});["distantLight","pointLight","spotLight"].forEach(t=>{const e=dr[_h(t)],r=ir(function(){return this.put(new e)});dr.DiffuseLightingEffect.prototype[t]=r,dr.SpecularLightingEffect.prototype[t]=r}),nt(dr.MergeEffect,{mergeNode(t){return this.put(new dr.MergeNode).attr("in",t)}}),nt(V1,{filter:function(t){const e=this.put(new dr);return typeof t=="function"&&t.call(e,e),e}}),nt(co,{filter:function(t){return this.defs().filter(t)}}),nt(In,{filterWith:function(t){const e=t instanceof dr?t:this.defs().filter(t);return this.attr("filter",e)},unfilter:function(t){return this.attr("filter",null)},filterer(){return this.reference("filter")}});const C_e={blend:function(t,e){return this.parent()&&this.parent().blend(this,t,e)},colorMatrix:function(t,e){return this.parent()&&this.parent().colorMatrix(t,e).in(this)},componentTransfer:function(t){return this.parent()&&this.parent().componentTransfer(t).in(this)},composite:function(t,e){return this.parent()&&this.parent().composite(this,t,e)},convolveMatrix:function(t){return this.parent()&&this.parent().convolveMatrix(t).in(this)},diffuseLighting:function(t,e,r,n){return this.parent()&&this.parent().diffuseLighting(t,r,n).in(this)},displacementMap:function(t,e,r,n){return this.parent()&&this.parent().displacementMap(this,t,e,r,n)},dropShadow:function(t,e,r){return this.parent()&&this.parent().dropShadow(this,t,e,r).in(this)},flood:function(t,e){return this.parent()&&this.parent().flood(t,e)},gaussianBlur:function(t,e){return this.parent()&&this.parent().gaussianBlur(t,e).in(this)},image:function(t){return this.parent()&&this.parent().image(t)},merge:function(t){return t=t instanceof Array?t:[...t],this.parent()&&this.parent().merge(this,...t)},morphology:function(t,e){return this.parent()&&this.parent().morphology(t,e).in(this)},offset:function(t,e){return this.parent()&&this.parent().offset(t,e).in(this)},specularLighting:function(t,e,r,n,o){return this.parent()&&this.parent().specularLighting(t,r,n,o).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(t,e,r,n,o){return this.parent()&&this.parent().turbulence(t,e,r,n,o).in(this)}};nt(b5,C_e),nt(dr.MergeEffect,{in:function(t){return t instanceof dr.MergeNode?this.add(t,0):this.add(new dr.MergeNode().in(t),0),this}}),nt([dr.CompositeEffect,dr.BlendEffect,dr.DisplacementMapEffect],{in2:function(t){if(t==null){const e=this.attr("in2");return this.parent()&&this.parent().find(`[result="${e}"]`)[0]||e}return this.attr("in2",t)}}),dr.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]};var Pn=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"getDefaultFilter",value:function(e,r){var n=this.w;e.unfilter(!0),new dr().size("120%","180%","-5%","-40%"),n.config.chart.dropShadow.enabled&&this.dropShadow(e,n.config.chart.dropShadow,r)}},{key:"applyFilter",value:function(e,r,n){var o,a=this,f=this.w;if(e.unfilter(!0),n!=="none"){var p,m,v=f.config.chart.dropShadow,y=n==="lighten"?2:.3;e.filterWith(function(x){x.colorMatrix({type:"matrix",values:`
          `.concat(y,` 0 0 0 0
          0 `).concat(y,` 0 0 0
          0 0 `).concat(y,` 0 0
          0 0 0 1 0
        `),in:"SourceGraphic",result:"brightness"}),v.enabled&&a.addShadow(x,r,v,"brightness")}),!v.noUserSpaceOnUse&&((p=e.filterer())===null||p===void 0||(m=p.node)===null||m===void 0||m.setAttribute("filterUnits","userSpaceOnUse")),this._scaleFilterSize((o=e.filterer())===null||o===void 0?void 0:o.node)}else this.getDefaultFilter(e,r)}},{key:"addShadow",value:function(e,r,n,o){var a,f=this.w,p=n.blur,m=n.top,v=n.left,y=n.color,x=n.opacity;if(y=Array.isArray(y)?y[r]:y,((a=f.config.chart.dropShadow.enabledOnSeries)===null||a===void 0?void 0:a.length)>0&&f.config.chart.dropShadow.enabledOnSeries.indexOf(r)===-1)return e;e.offset({in:o,dx:v,dy:m,result:"offset"}),e.gaussianBlur({in:"offset",stdDeviation:p,result:"blur"}),e.flood({"flood-color":y,"flood-opacity":x,result:"flood"}),e.composite({in:"flood",in2:"blur",operator:"in",result:"shadow"}),e.merge(["shadow",o])}},{key:"dropShadow",value:function(e,r){var n,o,a,f,p,m=this,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,y=this.w;return e.unfilter(!0),se.isMsEdge()&&y.config.chart.type==="radialBar"||((n=y.config.chart.dropShadow.enabledOnSeries)===null||n===void 0?void 0:n.length)>0&&((a=y.config.chart.dropShadow.enabledOnSeries)===null||a===void 0?void 0:a.indexOf(v))===-1?e:(e.filterWith(function(x){m.addShadow(x,v,r,"SourceGraphic")}),r.noUserSpaceOnUse||(f=e.filterer())===null||f===void 0||(p=f.node)===null||p===void 0||p.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize((o=e.filterer())===null||o===void 0?void 0:o.node),e)}},{key:"setSelectionFilter",value:function(e,r,n){var o=this.w;if(o.globals.selectedDataPoints[r]!==void 0&&o.globals.selectedDataPoints[r].indexOf(n)>-1){e.node.setAttribute("selected",!0);var a=o.config.states.active.filter;a!=="none"&&this.applyFilter(e,r,a.type)}}},{key:"_scaleFilterSize",value:function(e){e&&function(r){for(var n in r)r.hasOwnProperty(n)&&e.setAttribute(n,r[n])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),t}(),xe=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"roundPathCorners",value:function(e,r){function n(V,W,G){var Z=W.x-V.x,K=W.y-V.y,Q=Math.sqrt(Z*Z+K*K);return o(V,W,Math.min(1,G/Q))}function o(V,W,G){return{x:V.x+(W.x-V.x)*G,y:V.y+(W.y-V.y)*G}}function a(V,W){V.length>2&&(V[V.length-2]=W.x,V[V.length-1]=W.y)}function f(V){return{x:parseFloat(V[V.length-2]),y:parseFloat(V[V.length-1])}}e.indexOf("NaN")>-1&&(e="");var p=e.split(/[,\s]/).reduce(function(V,W){var G=W.match(/^([a-zA-Z])(.+)/);return G?(V.push(G[1]),V.push(G[2])):V.push(W),V},[]).reduce(function(V,W){return parseFloat(W)==W&&V.length?V[V.length-1].push(W):V.push([W]),V},[]),m=[];if(p.length>1){var v=f(p[0]),y=null;p[p.length-1][0]=="Z"&&p[0].length>2&&(y=["L",v.x,v.y],p[p.length-1]=y),m.push(p[0]);for(var x=1;x<p.length;x++){var k=m[m.length-1],S=p[x],O=S==y?p[1]:p[x+1];if(O&&k&&k.length>2&&S[0]=="L"&&O.length>2&&O[0]=="L"){var C,R,E=f(k),P=f(S),M=f(O);C=n(P,E,r),R=n(P,M,r),a(S,C),S.origPoint=P,m.push(S);var I=o(C,P,.5),B=o(P,R,.5),U=["C",I.x,I.y,B.x,B.y,R.x,R.y];U.origPoint=P,m.push(U)}else m.push(S)}if(y){var H=f(m[m.length-1]);m.push(["Z"]),a(m[0],H)}}else m=p;return m.reduce(function(V,W){return V+W.join(" ")+" "},"")}},{key:"drawLine",value:function(e,r,n,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,p=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,m=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:e,y1:r,x2:n,y2:o,stroke:a,"stroke-dasharray":f,"stroke-width":p,"stroke-linecap":m})}},{key:"drawRect",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",p=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,m=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,v=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,y=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,x=this.w.globals.dom.Paper.rect();return x.attr({x:e,y:r,width:n>0?n:0,height:o>0?o:0,rx:a,ry:a,opacity:p,"stroke-width":m!==null?m:0,stroke:v!==null?v:"none","stroke-dasharray":y}),x.node.setAttribute("fill",f),x}},{key:"drawPolygon",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(e).attr({fill:o,stroke:r,"stroke-width":n})}},{key:"drawCircle",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;e<0&&(e=0);var n=this.w.globals.dom.Paper.circle(2*e);return r!==null&&n.attr(r),n}},{key:"drawPath",value:function(e){var r=e.d,n=r===void 0?"":r,o=e.stroke,a=o===void 0?"#a8a8a8":o,f=e.strokeWidth,p=f===void 0?1:f,m=e.fill,v=e.fillOpacity,y=v===void 0?1:v,x=e.strokeOpacity,k=x===void 0?1:x,S=e.classes,O=e.strokeLinecap,C=O===void 0?null:O,R=e.strokeDashArray,E=R===void 0?0:R,P=this.w;return C===null&&(C=P.config.stroke.lineCap),(n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n="M 0 ".concat(P.globals.gridHeight)),P.globals.dom.Paper.path(n).attr({fill:m,"fill-opacity":y,stroke:a,"stroke-opacity":k,"stroke-linecap":C,"stroke-width":p,"stroke-dasharray":E,class:S})}},{key:"group",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=this.w.globals.dom.Paper.group();return e!==null&&r.attr(e),r}},{key:"move",value:function(e,r){var n=["M",e,r].join(" ");return n}},{key:"line",value:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=null;return n===null?o=[" L",e,r].join(" "):n==="H"?o=[" H",e].join(" "):n==="V"&&(o=[" V",r].join(" ")),o}},{key:"curve",value:function(e,r,n,o,a,f){var p=["C",e,r,n,o,a,f].join(" ");return p}},{key:"quadraticCurve",value:function(e,r,n,o){return["Q",e,r,n,o].join(" ")}},{key:"arc",value:function(e,r,n,o,a,f,p){var m="A";arguments.length>7&&arguments[7]!==void 0&&arguments[7]&&(m="a");var v=[m,e,r,n,o,a,f,p].join(" ");return v}},{key:"renderPaths",value:function(e){var r,n=e.j,o=e.realIndex,a=e.pathFrom,f=e.pathTo,p=e.stroke,m=e.strokeWidth,v=e.strokeLinecap,y=e.fill,x=e.animationDelay,k=e.initialSpeed,S=e.dataChangeSpeed,O=e.className,C=e.chartType,R=e.shouldClipToGrid,E=R===void 0||R,P=e.bindEventsOnPaths,M=P===void 0||P,I=e.drawShadow,B=I===void 0||I,U=this.w,H=new Pn(this.ctx),V=new wh(this.ctx),W=this.w.config.chart.animations.enabled,G=W&&this.w.config.chart.animations.dynamicAnimation.enabled;if(a&&a.startsWith("M 0 0")&&f){var Z=f.match(/^M\s+[\d.-]+\s+[\d.-]+/);Z&&(a=a.replace(/^M\s+0\s+0/,Z[0]))}var K=!!(W&&!U.globals.resized||G&&U.globals.dataChanged&&U.globals.shouldAnimate);K?r=a:(r=f,U.globals.animationEnded=!0);var Q=U.config.stroke.dashArray,oe=0;oe=Array.isArray(Q)?Q[o]:U.config.stroke.dashArray;var ie=this.drawPath({d:r,stroke:p,strokeWidth:m,fill:y,fillOpacity:1,classes:O,strokeLinecap:v,strokeDashArray:oe});ie.attr("index",o),E&&(C==="bar"&&!U.globals.isHorizontal||U.globals.comboCharts?ie.attr({"clip-path":"url(#gridRectBarMask".concat(U.globals.cuid,")")}):ie.attr({"clip-path":"url(#gridRectMask".concat(U.globals.cuid,")")})),U.config.chart.dropShadow.enabled&&B&&H.dropShadow(ie,U.config.chart.dropShadow,o),M&&(ie.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,ie)),ie.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,ie)),ie.node.addEventListener("mousedown",this.pathMouseDown.bind(this,ie))),ie.attr({pathTo:f,pathFrom:a});var re={el:ie,j:n,realIndex:o,pathFrom:a,pathTo:f,fill:y,strokeWidth:m,delay:x};return!W||U.globals.resized||U.globals.dataChanged?!U.globals.resized&&U.globals.dataChanged||V.showDelayedElements():V.animatePathsGradually(Oe(Oe({},re),{},{speed:k})),U.globals.dataChanged&&G&&K&&V.animatePathsGradually(Oe(Oe({},re),{},{speed:S})),ie}},{key:"drawPattern",value:function(e,r,n){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;return this.w.globals.dom.Paper.pattern(r,n,function(f){e==="horizontalLines"?f.line(0,0,n,0).stroke({color:o,width:a+1}):e==="verticalLines"?f.line(0,0,0,r).stroke({color:o,width:a+1}):e==="slantedLines"?f.line(0,0,r,n).stroke({color:o,width:a}):e==="squares"?f.rect(r,n).fill("none").stroke({color:o,width:a}):e==="circles"&&f.circle(r).fill("none").stroke({color:o,width:a})})}},{key:"drawGradient",value:function(e,r,n,o,a){var f,p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,m=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,v=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],y=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,x=this.w;r.length<9&&r.indexOf("#")===0&&(r=se.hexToRgba(r,o)),n.length<9&&n.indexOf("#")===0&&(n=se.hexToRgba(n,a));var k=0,S=1,O=1,C=null;m!==null&&(k=m[0]!==void 0?m[0]/100:0,S=m[1]!==void 0?m[1]/100:1,O=m[2]!==void 0?m[2]/100:1,C=m[3]!==void 0?m[3]/100:null);var R=!(x.config.chart.type!=="donut"&&x.config.chart.type!=="pie"&&x.config.chart.type!=="polarArea"&&x.config.chart.type!=="bubble");if(f=v&&v.length!==0?x.globals.dom.Paper.gradient(R?"radial":"linear",function(M){(Array.isArray(v[y])?v[y]:v).forEach(function(I){M.stop(I.offset/100,I.color,I.opacity)})}):x.globals.dom.Paper.gradient(R?"radial":"linear",function(M){M.stop(k,r,o),M.stop(S,n,a),M.stop(O,n,a),C!==null&&M.stop(C,r,o)}),R){var E=x.globals.gridWidth/2,P=x.globals.gridHeight/2;x.config.chart.type!=="bubble"?f.attr({gradientUnits:"userSpaceOnUse",cx:E,cy:P,r:p}):f.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else e==="vertical"?f.from(0,0).to(0,1):e==="diagonal"?f.from(0,0).to(1,1):e==="horizontal"?f.from(0,1).to(1,1):e==="diagonal2"&&f.from(1,0).to(0,1);return f}},{key:"getTextBasedOnMaxWidth",value:function(e){var r=e.text,n=e.maxWidth,o=e.fontSize,a=e.fontFamily,f=this.getTextRects(r,o,a),p=f.width/r.length,m=Math.floor(n/p);return n<f.width?r.slice(0,m-3)+"...":r}},{key:"drawText",value:function(e){var r=this,n=e.x,o=e.y,a=e.text,f=e.textAnchor,p=e.fontSize,m=e.fontFamily,v=e.fontWeight,y=e.foreColor,x=e.opacity,k=e.maxWidth,S=e.cssClass,O=S===void 0?"":S,C=e.isPlainText,R=C===void 0||C,E=e.dominantBaseline,P=E===void 0?"auto":E,M=this.w;a===void 0&&(a="");var I=a;f||(f="start"),y&&y.length||(y=M.config.chart.foreColor),m=m||M.config.chart.fontFamily,v=v||"regular";var B,U={maxWidth:k,fontSize:p=p||"11px",fontFamily:m};return Array.isArray(a)?B=M.globals.dom.Paper.text(function(H){for(var V=0;V<a.length;V++)I=a[V],k&&(I=r.getTextBasedOnMaxWidth(Oe({text:a[V]},U))),V===0?H.tspan(I):H.tspan(I).newLine()}):(k&&(I=this.getTextBasedOnMaxWidth(Oe({text:a},U))),B=R?M.globals.dom.Paper.plain(a):M.globals.dom.Paper.text(function(H){return H.tspan(I)})),B.attr({x:n,y:o,"text-anchor":f,"dominant-baseline":P,"font-size":p,"font-family":m,"font-weight":v,fill:y,class:"apexcharts-text "+O}),B.node.style.fontFamily=m,B.node.style.opacity=x,B}},{key:"getMarkerPath",value:function(e,r,n,o){var a="";switch(n){case"cross":a="M ".concat(e-(o/=1.4)," ").concat(r-o," L ").concat(e+o," ").concat(r+o,"  M ").concat(e-o," ").concat(r+o," L ").concat(e+o," ").concat(r-o);break;case"plus":a="M ".concat(e-(o/=1.12)," ").concat(r," L ").concat(e+o," ").concat(r,"  M ").concat(e," ").concat(r-o," L ").concat(e," ").concat(r+o);break;case"star":case"sparkle":var f=5;o*=1.15,n==="sparkle"&&(o/=1.1,f=4);for(var p=Math.PI/f,m=0;m<=2*f;m++){var v=m*p,y=m%2==0?o:o/2;a+=(m===0?"M":"L")+(e+y*Math.sin(v))+","+(r-y*Math.cos(v))}a+="Z";break;case"triangle":a="M ".concat(e," ").concat(r-o,` 
             L `).concat(e+o," ").concat(r+o,` 
             L `).concat(e-o," ").concat(r+o,` 
             Z`);break;case"square":case"rect":a="M ".concat(e-(o/=1.125)," ").concat(r-o,` 
           L `).concat(e+o," ").concat(r-o,` 
           L `).concat(e+o," ").concat(r+o,` 
           L `).concat(e-o," ").concat(r+o,` 
           Z`);break;case"diamond":o*=1.05,a="M ".concat(e," ").concat(r-o,` 
             L `).concat(e+o," ").concat(r,` 
             L `).concat(e," ").concat(r+o,` 
             L `).concat(e-o," ").concat(r,` 
            Z`);break;case"line":a="M ".concat(e-(o/=1.1)," ").concat(r,` 
           L `).concat(e+o," ").concat(r);break;default:o*=2,a="M ".concat(e,", ").concat(r,` 
           m -`).concat(o/2,`, 0 
           a `).concat(o/2,",").concat(o/2," 0 1,0 ").concat(o,`,0 
           a `).concat(o/2,",").concat(o/2," 0 1,0 -").concat(o,",0")}return a}},{key:"drawMarkerShape",value:function(e,r,n,o,a){var f=this.drawPath({d:this.getMarkerPath(e,r,n,o,a),stroke:a.pointStrokeColor,strokeDashArray:a.pointStrokeDashArray,strokeWidth:a.pointStrokeWidth,fill:a.pointFillColor,fillOpacity:a.pointFillOpacity,strokeOpacity:a.pointStrokeOpacity});return f.attr({cx:e,cy:r,shape:a.shape,class:a.class?a.class:""}),f}},{key:"drawMarker",value:function(e,r,n){e=e||0;var o=n.pSize||0;return se.isNumber(r)||(o=0,r=0),this.drawMarkerShape(e,r,n==null?void 0:n.shape,o,Oe(Oe({},n),n.shape==="line"||n.shape==="plus"||n.shape==="cross"?{pointStrokeColor:n.pointFillColor,pointStrokeOpacity:n.pointFillOpacity}:{}))}},{key:"pathMouseEnter",value:function(e,r){var n=this.w,o=new Pn(this.ctx),a=parseInt(e.node.getAttribute("index"),10),f=parseInt(e.node.getAttribute("j"),10);if(typeof n.config.chart.events.dataPointMouseEnter=="function"&&n.config.chart.events.dataPointMouseEnter(r,this.ctx,{seriesIndex:a,dataPointIndex:f,w:n}),this.ctx.events.fireEvent("dataPointMouseEnter",[r,this.ctx,{seriesIndex:a,dataPointIndex:f,w:n}]),(n.config.states.active.filter.type==="none"||e.node.getAttribute("selected")!=="true")&&n.config.states.hover.filter.type!=="none"&&!n.globals.isTouchDevice){var p=n.config.states.hover.filter;o.applyFilter(e,a,p.type)}}},{key:"pathMouseLeave",value:function(e,r){var n=this.w,o=new Pn(this.ctx),a=parseInt(e.node.getAttribute("index"),10),f=parseInt(e.node.getAttribute("j"),10);typeof n.config.chart.events.dataPointMouseLeave=="function"&&n.config.chart.events.dataPointMouseLeave(r,this.ctx,{seriesIndex:a,dataPointIndex:f,w:n}),this.ctx.events.fireEvent("dataPointMouseLeave",[r,this.ctx,{seriesIndex:a,dataPointIndex:f,w:n}]),n.config.states.active.filter.type!=="none"&&e.node.getAttribute("selected")==="true"||n.config.states.hover.filter.type!=="none"&&o.getDefaultFilter(e,a)}},{key:"pathMouseDown",value:function(e,r){var n=this.w,o=new Pn(this.ctx),a=parseInt(e.node.getAttribute("index"),10),f=parseInt(e.node.getAttribute("j"),10),p="false";if(e.node.getAttribute("selected")==="true"){if(e.node.setAttribute("selected","false"),n.globals.selectedDataPoints[a].indexOf(f)>-1){var m=n.globals.selectedDataPoints[a].indexOf(f);n.globals.selectedDataPoints[a].splice(m,1)}}else{if(!n.config.states.active.allowMultipleDataPointsSelection&&n.globals.selectedDataPoints.length>0){n.globals.selectedDataPoints=[];var v=n.globals.dom.Paper.find(".apexcharts-series path:not(.apexcharts-decoration-element)"),y=n.globals.dom.Paper.find(".apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)"),x=function(O){Array.prototype.forEach.call(O,function(C){C.node.setAttribute("selected","false"),o.getDefaultFilter(C,a)})};x(v),x(y)}e.node.setAttribute("selected","true"),p="true",n.globals.selectedDataPoints[a]===void 0&&(n.globals.selectedDataPoints[a]=[]),n.globals.selectedDataPoints[a].push(f)}if(p==="true"){var k=n.config.states.active.filter;if(k!=="none")o.applyFilter(e,a,k.type);else if(n.config.states.hover.filter!=="none"&&!n.globals.isTouchDevice){var S=n.config.states.hover.filter;o.applyFilter(e,a,S.type)}}else n.config.states.active.filter.type!=="none"&&(n.config.states.hover.filter.type==="none"||n.globals.isTouchDevice?o.getDefaultFilter(e,a):(S=n.config.states.hover.filter,o.applyFilter(e,a,S.type)));typeof n.config.chart.events.dataPointSelection=="function"&&n.config.chart.events.dataPointSelection(r,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:f,w:n}),r&&this.ctx.events.fireEvent("dataPointSelection",[r,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:f,w:n}])}},{key:"rotateAroundCenter",value:function(e){var r={};return e&&typeof e.getBBox=="function"&&(r=e.getBBox()),{x:r.x+r.width/2,y:r.y+r.height/2}}},{key:"getTextRects",value:function(e,r,n,o){var a=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],f=this.w,p=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:r,fontFamily:n,foreColor:"#fff",opacity:0});o&&p.attr("transform",o),f.globals.dom.Paper.add(p);var m=p.bbox();return a||(m=p.node.getBoundingClientRect()),p.remove(),{width:m.width,height:m.height}}},{key:"placeTextWithEllipsis",value:function(e,r,n){if(typeof e.getComputedTextLength=="function"&&(e.textContent=r,r.length>0&&e.getComputedTextLength()>=n/1.1)){for(var o=r.length-3;o>0;o-=3)if(e.getSubStringLength(0,o)<=n/1.1)return void(e.textContent=r.substring(0,o)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,r){for(var n in r)r.hasOwnProperty(n)&&e.setAttribute(n,r[n])}}]),t}(),Hr=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=this.w,n=[];if(r.globals.series.length===0)return n;for(var o=0;o<r.globals.series[r.globals.maxValsInArrayIndex].length;o++){for(var a=0,f=0;f<r.globals.series.length;f++)r.globals.series[f][o]!==void 0&&e.indexOf(f)===-1&&(a+=r.globals.series[f][o]);n.push(a)}return n}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return e===null?this.w.config.series.reduce(function(r,n){return r+n},0):this.w.globals.series[e].reduce(function(r,n){return r+n},0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var e=this,r=this.w,n=[];return r.globals.seriesGroups.forEach(function(o){var a=[];r.config.series.forEach(function(p,m){o.indexOf(r.globals.seriesNames[m])>-1&&a.push(m)});var f=r.globals.series.map(function(p,m){return a.indexOf(m)===-1?m:-1}).filter(function(p){return p!==-1});n.push(e.getStackedSeriesTotals(f))}),n}},{key:"setSeriesYAxisMappings",value:function(){var e=this.w.globals,r=this.w.config,n=[],o=[],a=[],f=e.series.length>r.yaxis.length||r.yaxis.some(function(x){return Array.isArray(x.seriesName)});r.series.forEach(function(x,k){a.push(k),o.push(null)}),r.yaxis.forEach(function(x,k){n[k]=[]});var p=[];r.yaxis.forEach(function(x,k){var S=!1;if(x.seriesName){var O=[];Array.isArray(x.seriesName)?O=x.seriesName:O.push(x.seriesName),O.forEach(function(C){r.series.forEach(function(R,E){if(R.name===C){var P=E;k===E||f?!f||a.indexOf(E)>-1?n[k].push([k,E]):console.warn("Series '"+R.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(n[E].push([E,k]),P=k),S=!0,(P=a.indexOf(P))!==-1&&a.splice(P,1)}})})}S||p.push(k)}),n=n.map(function(x,k){var S=[];return x.forEach(function(O){o[O[1]]=O[0],S.push(O[1])}),S});for(var m=r.yaxis.length-1,v=0;v<p.length&&(m=p[v],n[m]=[],a);v++){var y=a[0];a.shift(),n[m].push(y),o[y]=m}a.forEach(function(x){n[m].push(x),o[x]=m}),e.seriesYAxisMap=n.map(function(x){return x}),e.seriesYAxisReverseMap=o.map(function(x){return x}),e.seriesYAxisMap.forEach(function(x,k){x.forEach(function(S){r.series[S]&&r.series[S].group===void 0&&(r.series[S].__apexParsed?r.series[S].group="apexcharts-axis-".concat(S.toString()):r.series[S].group="apexcharts-axis-".concat(k.toString()))})})}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(e===null?this.w.config.series.filter(function(r){return r!==null}):this.w.config.series[e].data.filter(function(r){return r!==null})).length===0}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every(function(r,n,o){return r===o[0]})}},{key:"getCategoryLabels",value:function(e){var r=this.w,n=e.slice();return r.config.xaxis.convertedCatToNumeric&&(n=e.map(function(o,a){return r.config.xaxis.labels.formatter(o-r.globals.minX+1)})),n}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map(function(r){return r.length}).indexOf(Math.max.apply(Math,e.globals.series.map(function(r){return r.length})))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,r=0;return e.globals.markers.size.forEach(function(n){r=Math.max(r,n)}),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach(function(n){r=Math.max(r,n.size)}),r>0&&(e.config.markers.hover.size>0?r=e.config.markers.hover.size:r+=e.config.markers.hover.sizeOffset),e.globals.markers.largestSize=r,r}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map(function(r,n){var o=0;if(Array.isArray(r))for(var a=0;a<r.length;a++)o+=r[a];else o+=r;return o})}},{key:"getSeriesTotalsXRange",value:function(e,r){var n=this.w;return n.globals.series.map(function(o,a){for(var f=0,p=0;p<o.length;p++)n.globals.seriesX[a][p]>e&&n.globals.seriesX[a][p]<r&&(f+=o[p]);return f})}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map(function(r,n){var o=[];if(Array.isArray(r))for(var a=0;a<r.length;a++){var f=e.globals.stackedSeriesTotals[a],p=0;f&&(p=100*r[a]/f),o.push(p)}else{var m=100*r/e.globals.seriesTotals.reduce(function(v,y){return v+y},0);o.push(m)}return o})}},{key:"getCalculatedRatios",value:function(){var e,r,n,o=this,a=this.w,f=a.globals,p=[],m=0,v=[],y=.1,x=0;if(f.yRange=[],f.isMultipleYAxis)for(var k=0;k<f.minYArr.length;k++)f.yRange.push(Math.abs(f.minYArr[k]-f.maxYArr[k])),v.push(0);else f.yRange.push(Math.abs(f.minY-f.maxY));f.xRange=Math.abs(f.maxX-f.minX),f.zRange=Math.abs(f.maxZ-f.minZ);for(var S=0;S<f.yRange.length;S++)p.push(f.yRange[S]/f.gridHeight);if(r=f.xRange/f.gridWidth,e=f.yRange/f.gridWidth,n=f.xRange/f.gridHeight,(m=f.zRange/f.gridHeight*16)||(m=1),f.minY!==Number.MIN_VALUE&&Math.abs(f.minY)!==0&&(f.hasNegs=!0),a.globals.seriesYAxisReverseMap.length>0){var O=function(R,E){var P=a.config.yaxis[a.globals.seriesYAxisReverseMap[E]],M=R<0?-1:1;return R=Math.abs(R),P.logarithmic&&(R=o.getBaseLog(P.logBase,R)),-M*R/p[E]};if(f.isMultipleYAxis){v=[];for(var C=0;C<p.length;C++)v.push(O(f.minYArr[C],C))}else(v=[]).push(O(f.minY,0)),f.minY!==Number.MIN_VALUE&&Math.abs(f.minY)!==0&&(y=-f.minY/e,x=f.minX/r)}else(v=[]).push(0),y=0,x=0;return{yRatio:p,invertedYRatio:e,zRatio:m,xRatio:r,invertedXRatio:n,baseLineInvertedY:y,baseLineY:v,baseLineX:x}}},{key:"getLogSeries",value:function(e){var r=this,n=this.w;return n.globals.seriesLog=e.map(function(o,a){var f=n.globals.seriesYAxisReverseMap[a];return n.config.yaxis[f]&&n.config.yaxis[f].logarithmic?o.map(function(p){return p===null?null:r.getLogVal(n.config.yaxis[f].logBase,p,a)}):o}),n.globals.invalidLogScale?e:n.globals.seriesLog}},{key:"getLogValAtSeriesIndex",value:function(e,r){if(e===null)return null;var n=this.w,o=n.globals.seriesYAxisReverseMap[r];return n.config.yaxis[o]&&n.config.yaxis[o].logarithmic?this.getLogVal(n.config.yaxis[o].logBase,e,r):e}},{key:"getBaseLog",value:function(e,r){return Math.log(r)/Math.log(e)}},{key:"getLogVal",value:function(e,r,n){if(r<=0)return 0;var o=this.w,a=o.globals.minYArr[n]===0?-1:this.getBaseLog(e,o.globals.minYArr[n]),f=(o.globals.maxYArr[n]===0?0:this.getBaseLog(e,o.globals.maxYArr[n]))-a;return r<1?r/f:(this.getBaseLog(e,r)-a)/f}},{key:"getLogYRatios",value:function(e){var r=this,n=this.w,o=this.w.globals;return o.yLogRatio=e.slice(),o.logYRange=o.yRange.map(function(a,f){var p=n.globals.seriesYAxisReverseMap[f];if(n.config.yaxis[p]&&r.w.config.yaxis[p].logarithmic){var m,v=-Number.MAX_VALUE,y=Number.MIN_VALUE;return o.seriesLog.forEach(function(x,k){x.forEach(function(S){n.config.yaxis[k]&&n.config.yaxis[k].logarithmic&&(v=Math.max(S,v),y=Math.min(S,y))})}),m=Math.pow(o.yRange[f],Math.abs(y-v)/o.yRange[f]),o.yLogRatio[f]=m/o.gridHeight,m}}),o.invalidLogScale?e.slice():o.yLogRatio}},{key:"drawSeriesByGroup",value:function(e,r,n,o){var a=this.w,f=[];return e.series.length>0&&r.forEach(function(p){var m=[],v=[];e.i.forEach(function(y,x){a.config.series[y].group===p&&(m.push(e.series[x]),v.push(y))}),m.length>0&&f.push(o.draw(m,n,v))}),f}}],[{key:"checkComboSeries",value:function(e,r){var n=!1,o=0,a=0;return r===void 0&&(r="line"),e.length&&e[0].type!==void 0&&e.forEach(function(f){f.type!=="bar"&&f.type!=="column"&&f.type!=="candlestick"&&f.type!=="boxPlot"||o++,f.type!==void 0&&f.type!==r&&a++}),a>0&&(n=!0),{comboBarCount:o,comboCharts:n}}},{key:"extendArrayProps",value:function(e,r,n){var o,a,f,p,m,v;return(o=r)!==null&&o!==void 0&&o.yaxis&&(r=e.extendYAxis(r,n)),(a=r)!==null&&a!==void 0&&a.annotations&&(r.annotations.yaxis&&(r=e.extendYAxisAnnotations(r)),(f=r)!==null&&f!==void 0&&(p=f.annotations)!==null&&p!==void 0&&p.xaxis&&(r=e.extendXAxisAnnotations(r)),(m=r)!==null&&m!==void 0&&(v=m.annotations)!==null&&v!==void 0&&v.points&&(r=e.extendPointAnnotations(r))),r}}]),t}(),q1=function(){function t(e){Be(this,t),this.w=e.w,this.annoCtx=e}return Fe(t,[{key:"setOrientations",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=this.w;if(e.label.orientation==="vertical"){var o=r!==null?r:0,a=n.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(o,"']"));if(a!==null){var f=a.getBoundingClientRect();a.setAttribute("x",parseFloat(a.getAttribute("x"))-f.height+4);var p=e.label.position==="top"?f.width:-f.width;a.setAttribute("y",parseFloat(a.getAttribute("y"))+p);var m=this.annoCtx.graphics.rotateAroundCenter(a),v=m.x,y=m.y;a.setAttribute("transform","rotate(-90 ".concat(v," ").concat(y,")"))}}}},{key:"addBackgroundToAnno",value:function(e,r){var n=this.w;if(!e||!r.label.text||!String(r.label.text).trim())return null;var o=n.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),a=e.getBoundingClientRect(),f=r.label.style.padding,p=f.left,m=f.right,v=f.top,y=f.bottom;if(r.label.orientation==="vertical"){var x=[p,m,v,y];v=x[0],y=x[1],p=x[2],m=x[3]}var k=a.left-o.left-p,S=a.top-o.top-v,O=this.annoCtx.graphics.drawRect(k-n.globals.barPadForNumericAxis,S,a.width+p+m,a.height+v+y,r.label.borderRadius,r.label.style.background,1,r.label.borderWidth,r.label.borderColor,0);return r.id&&O.node.classList.add(r.id),O}},{key:"annotationsBackground",value:function(){var e=this,r=this.w,n=function(o,a,f){var p=r.globals.dom.baseEl.querySelector(".apexcharts-".concat(f,"-annotations .apexcharts-").concat(f,"-annotation-label[rel='").concat(a,"']"));if(p){var m=p.parentNode,v=e.addBackgroundToAnno(p,o);v&&(m.insertBefore(v.node,p),o.label.mouseEnter&&v.node.addEventListener("mouseenter",o.label.mouseEnter.bind(e,o)),o.label.mouseLeave&&v.node.addEventListener("mouseleave",o.label.mouseLeave.bind(e,o)),o.label.click&&v.node.addEventListener("click",o.label.click.bind(e,o)))}};r.config.annotations.xaxis.forEach(function(o,a){return n(o,a,"xaxis")}),r.config.annotations.yaxis.forEach(function(o,a){return n(o,a,"yaxis")}),r.config.annotations.points.forEach(function(o,a){return n(o,a,"point")})}},{key:"getY1Y2",value:function(e,r){var n,o=this.w,a=e==="y1"?r.y:r.y2,f=!1;if(this.annoCtx.invertAxis){var p=o.config.xaxis.convertedCatToNumeric?o.globals.categoryLabels:o.globals.labels,m=p.indexOf(a),v=o.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child(".concat(m+1,")"));n=v?parseFloat(v.getAttribute("y")):(o.globals.gridHeight/p.length-1)*(m+1)-o.globals.barHeight,r.seriesIndex!==void 0&&o.globals.barHeight&&(n-=o.globals.barHeight/2*(o.globals.series.length-1)-o.globals.barHeight*r.seriesIndex)}else{var y,x=o.globals.seriesYAxisMap[r.yAxisIndex][0],k=o.config.yaxis[r.yAxisIndex].logarithmic?new Hr(this.annoCtx.ctx).getLogVal(o.config.yaxis[r.yAxisIndex].logBase,a,x)/o.globals.yLogRatio[x]:(a-o.globals.minYArr[x])/(o.globals.yRange[x]/o.globals.gridHeight);n=o.globals.gridHeight-Math.min(Math.max(k,0),o.globals.gridHeight),f=k>o.globals.gridHeight||k<0,!r.marker||r.y!==void 0&&r.y!==null||(n=0),(y=o.config.yaxis[r.yAxisIndex])!==null&&y!==void 0&&y.reversed&&(n=k)}return typeof a=="string"&&a.includes("px")&&(n=parseFloat(a)),{yP:n,clipped:f}}},{key:"getX1X2",value:function(e,r){var n=this.w,o=e==="x1"?r.x:r.x2,a=this.annoCtx.invertAxis?n.globals.minY:n.globals.minX,f=this.annoCtx.invertAxis?n.globals.maxY:n.globals.maxX,p=this.annoCtx.invertAxis?n.globals.yRange[0]:n.globals.xRange,m=!1,v=this.annoCtx.inversedReversedAxis?(f-o)/(p/n.globals.gridWidth):(o-a)/(p/n.globals.gridWidth);return n.config.xaxis.type!=="category"&&!n.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||n.globals.dataFormatXNumeric||n.config.chart.sparkline.enabled||(v=this.getStringX(o)),typeof o=="string"&&o.includes("px")&&(v=parseFloat(o)),o==null&&r.marker&&(v=n.globals.gridWidth),r.seriesIndex!==void 0&&n.globals.barWidth&&!this.annoCtx.invertAxis&&(v-=n.globals.barWidth/2*(n.globals.series.length-1)-n.globals.barWidth*r.seriesIndex),typeof v!="number"&&(v=0,m=!0),parseFloat(v.toFixed(10))>parseFloat(n.globals.gridWidth.toFixed(10))?(v=n.globals.gridWidth,m=!0):v<0&&(v=0,m=!0),{x:v,clipped:m}}},{key:"getStringX",value:function(e){var r=this.w,n=e;r.config.xaxis.convertedCatToNumeric&&r.globals.categoryLabels.length&&(e=r.globals.categoryLabels.indexOf(e)+1);var o=r.globals.labels.map(function(f){return Array.isArray(f)?f.join(" "):f}).indexOf(e),a=r.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child(".concat(o+1,")"));return a&&(n=parseFloat(a.getAttribute("x"))),n}}]),t}(),A_e=function(){function t(e){Be(this,t),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new q1(this.annoCtx)}return Fe(t,[{key:"addXaxisAnnotation",value:function(e,r,n){var o,a=this.w,f=this.helpers.getX1X2("x1",e),p=f.x,m=f.clipped,v=!0,y=e.label.text,x=e.strokeDashArray;if(se.isNumber(p)){if(e.x2===null||e.x2===void 0){if(!m){var k=this.annoCtx.graphics.drawLine(p+e.offsetX,0+e.offsetY,p+e.offsetX,a.globals.gridHeight+e.offsetY,e.borderColor,x,e.borderWidth);r.appendChild(k.node),e.id&&k.node.classList.add(e.id)}}else{var S=this.helpers.getX1X2("x2",e);if(o=S.x,v=S.clipped,o<p){var O=p;p=o,o=O}var C=this.annoCtx.graphics.drawRect(p+e.offsetX,0+e.offsetY,o-p,a.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,x);C.node.classList.add("apexcharts-annotation-rect"),C.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),r.appendChild(C.node),e.id&&C.node.classList.add(e.id)}if(!m||!v){var R=this.annoCtx.graphics.getTextRects(y,parseFloat(e.label.style.fontSize)),E=e.label.position==="top"?4:e.label.position==="center"?a.globals.gridHeight/2+(e.label.orientation==="vertical"?R.width/2:0):a.globals.gridHeight,P=this.annoCtx.graphics.drawText({x:p+e.label.offsetX,y:E+e.label.offsetY-(e.label.orientation==="vertical"?e.label.position==="top"?R.width/2-12:-R.width/2:0),text:y,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});P.attr({rel:n}),r.appendChild(P.node),this.annoCtx.helpers.setOrientations(e,n)}}}},{key:"drawXAxisAnnotations",value:function(){var e=this,r=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return r.config.annotations.xaxis.map(function(o,a){e.addXaxisAnnotation(o,n.node,a)}),n}}]),t}(),Tn=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return Fe(t,[{key:"isValidDate",value:function(e){return typeof e!="number"&&!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var r=Date.parse(e);if(!isNaN(r))return this.getTimeStamp(e);var n=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return n=this.getTimeStamp(n)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,r){var n=this.w.globals.locale,o=this.w.config.xaxis.labels.datetimeUTC,a=["\0"].concat(ln(n.months)),f=[""].concat(ln(n.shortMonths)),p=[""].concat(ln(n.days)),m=[""].concat(ln(n.shortDays));function v(V,W){var G=V+"";for(W=W||2;G.length<W;)G="0"+G;return G}var y=o?e.getUTCFullYear():e.getFullYear();r=(r=(r=r.replace(/(^|[^\\])yyyy+/g,"$1"+y)).replace(/(^|[^\\])yy/g,"$1"+y.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+y);var x=(o?e.getUTCMonth():e.getMonth())+1;r=(r=(r=(r=r.replace(/(^|[^\\])MMMM+/g,"$1"+a[0])).replace(/(^|[^\\])MMM/g,"$1"+f[0])).replace(/(^|[^\\])MM/g,"$1"+v(x))).replace(/(^|[^\\])M/g,"$1"+x);var k=o?e.getUTCDate():e.getDate();r=(r=(r=(r=r.replace(/(^|[^\\])dddd+/g,"$1"+p[0])).replace(/(^|[^\\])ddd/g,"$1"+m[0])).replace(/(^|[^\\])dd/g,"$1"+v(k))).replace(/(^|[^\\])d/g,"$1"+k);var S=o?e.getUTCHours():e.getHours(),O=S>12?S-12:S===0?12:S;r=(r=(r=(r=r.replace(/(^|[^\\])HH+/g,"$1"+v(S))).replace(/(^|[^\\])H/g,"$1"+S)).replace(/(^|[^\\])hh+/g,"$1"+v(O))).replace(/(^|[^\\])h/g,"$1"+O);var C=o?e.getUTCMinutes():e.getMinutes();r=(r=r.replace(/(^|[^\\])mm+/g,"$1"+v(C))).replace(/(^|[^\\])m/g,"$1"+C);var R=o?e.getUTCSeconds():e.getSeconds();r=(r=r.replace(/(^|[^\\])ss+/g,"$1"+v(R))).replace(/(^|[^\\])s/g,"$1"+R);var E=o?e.getUTCMilliseconds():e.getMilliseconds();r=r.replace(/(^|[^\\])fff+/g,"$1"+v(E,3)),E=Math.round(E/10),r=r.replace(/(^|[^\\])ff/g,"$1"+v(E)),E=Math.round(E/10);var P=S<12?"AM":"PM";r=(r=(r=r.replace(/(^|[^\\])f/g,"$1"+E)).replace(/(^|[^\\])TT+/g,"$1"+P)).replace(/(^|[^\\])T/g,"$1"+P.charAt(0));var M=P.toLowerCase();r=(r=r.replace(/(^|[^\\])tt+/g,"$1"+M)).replace(/(^|[^\\])t/g,"$1"+M.charAt(0));var I=-e.getTimezoneOffset(),B=o||!I?"Z":I>0?"+":"-";if(!o){var U=(I=Math.abs(I))%60;B+=v(Math.floor(I/60))+":"+v(U)}r=r.replace(/(^|[^\\])K/g,"$1"+B);var H=(o?e.getUTCDay():e.getDay())+1;return r=(r=(r=(r=(r=r.replace(new RegExp(p[0],"g"),p[H])).replace(new RegExp(m[0],"g"),m[H])).replace(new RegExp(a[0],"g"),a[x])).replace(new RegExp(f[0],"g"),f[x])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,r,n){var o=this.w;o.config.xaxis.min!==void 0&&(e=o.config.xaxis.min),o.config.xaxis.max!==void 0&&(r=o.config.xaxis.max);var a=this.getDate(e),f=this.getDate(r),p=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" "),m=this.formatDate(f,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(p[6],10),maxMillisecond:parseInt(m[6],10),minSecond:parseInt(p[5],10),maxSecond:parseInt(m[5],10),minMinute:parseInt(p[4],10),maxMinute:parseInt(m[4],10),minHour:parseInt(p[3],10),maxHour:parseInt(m[3],10),minDate:parseInt(p[2],10),maxDate:parseInt(m[2],10),minMonth:parseInt(p[1],10)-1,maxMonth:parseInt(m[1],10)-1,minYear:parseInt(p[0],10),maxYear:parseInt(m[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,r,n){return this.determineDaysOfMonths(e,r)-n}},{key:"determineDaysOfYear",value:function(e){var r=365;return this.isLeapYear(e)&&(r=366),r}},{key:"determineRemainingDaysOfYear",value:function(e,r,n){var o=this.daysCntOfYear[r]+n;return r>1&&this.isLeapYear()&&o++,o}},{key:"determineDaysOfMonths",value:function(e,r){var n=30;switch(e=se.monthMod(e),!0){case this.months30.indexOf(e)>-1:e===2&&(n=this.isLeapYear(r)?29:28);break;case this.months31.indexOf(e)>-1:default:n=31}return n}}]),t}(),yb=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return Fe(t,[{key:"xLabelFormat",value:function(e,r,n,o){var a=this.w;if(a.config.xaxis.type==="datetime"&&a.config.xaxis.labels.formatter===void 0&&a.config.tooltip.x.formatter===void 0){var f=new Tn(this.ctx);return f.formatDate(f.getDate(r),a.config.tooltip.x.format)}return e(r,n,o)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map(function(r){return r}):e}},{key:"defaultYFormatter",value:function(e,r,n){var o=this.w;if(se.isNumber(e))if(o.globals.yValueDecimal!==0)e=e.toFixed(r.decimalsInFloat!==void 0?r.decimalsInFloat:o.globals.yValueDecimal);else{var a=e.toFixed(0);e=e==a?a:e.toFixed(1)}return e}},{key:"setLabelFormatters",value:function(){var e=this,r=this.w;return r.globals.xaxisTooltipFormatter=function(n){return e.defaultGeneralFormatter(n)},r.globals.ttKeyFormatter=function(n){return e.defaultGeneralFormatter(n)},r.globals.ttZFormatter=function(n){return n},r.globals.legendFormatter=function(n){return e.defaultGeneralFormatter(n)},r.config.xaxis.labels.formatter!==void 0?r.globals.xLabelFormatter=r.config.xaxis.labels.formatter:r.globals.xLabelFormatter=function(n){if(se.isNumber(n)){if(!r.config.xaxis.convertedCatToNumeric&&r.config.xaxis.type==="numeric"){if(se.isNumber(r.config.xaxis.decimalsInFloat))return n.toFixed(r.config.xaxis.decimalsInFloat);var o=r.globals.maxX-r.globals.minX;return o>0&&o<100?n.toFixed(1):n.toFixed(0)}return r.globals.isBarHorizontal&&r.globals.maxY-r.globals.minYArr<4?n.toFixed(1):n.toFixed(0)}return n},typeof r.config.tooltip.x.formatter=="function"?r.globals.ttKeyFormatter=r.config.tooltip.x.formatter:r.globals.ttKeyFormatter=r.globals.xLabelFormatter,typeof r.config.xaxis.tooltip.formatter=="function"&&(r.globals.xaxisTooltipFormatter=r.config.xaxis.tooltip.formatter),(Array.isArray(r.config.tooltip.y)||r.config.tooltip.y.formatter!==void 0)&&(r.globals.ttVal=r.config.tooltip.y),r.config.tooltip.z.formatter!==void 0&&(r.globals.ttZFormatter=r.config.tooltip.z.formatter),r.config.legend.formatter!==void 0&&(r.globals.legendFormatter=r.config.legend.formatter),r.config.yaxis.forEach(function(n,o){n.labels.formatter!==void 0?r.globals.yLabelFormatters[o]=n.labels.formatter:r.globals.yLabelFormatters[o]=function(a){return r.globals.xyCharts?Array.isArray(a)?a.map(function(f){return e.defaultYFormatter(f,n,o)}):e.defaultYFormatter(a,n,o):a}}),r.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if(e.config.chart.type==="heatmap"){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var r=e.globals.seriesNames.reduce(function(n,o){return n.length>o.length?n:o},0);e.globals.yAxisScale[0].niceMax=r,e.globals.yAxisScale[0].niceMin=r}}}]),t}(),Zl=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"getLabel",value:function(e,r,n,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",p=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],m=this.w,v=e[o]===void 0?"":e[o],y=v,x=m.globals.xLabelFormatter,k=m.config.xaxis.labels.formatter,S=!1,O=new yb(this.ctx),C=v;p&&(y=O.xLabelFormat(x,v,C,{i:o,dateFormatter:new Tn(this.ctx).formatDate,w:m}),k!==void 0&&(y=k(v,e[o],{i:o,dateFormatter:new Tn(this.ctx).formatDate,w:m})));var R,E;r.length>0?(R=r[o].unit,E=null,r.forEach(function(B){B.unit==="month"?E="year":B.unit==="day"?E="month":B.unit==="hour"?E="day":B.unit==="minute"&&(E="hour")}),S=E===R,n=r[o].position,y=r[o].value):m.config.xaxis.type==="datetime"&&k===void 0&&(y=""),y===void 0&&(y=""),y=Array.isArray(y)?y:y.toString();var P=new xe(this.ctx),M={};M=m.globals.rotateXLabels&&p?P.getTextRects(y,parseInt(f,10),null,"rotate(".concat(m.config.xaxis.labels.rotate," 0 0)"),!1):P.getTextRects(y,parseInt(f,10));var I=!m.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(y)&&(String(y)==="NaN"||a.indexOf(y)>=0&&I)&&(y=""),{x:n,text:y,textRect:M,isBold:S}}},{key:"checkLabelBasedOnTickamount",value:function(e,r,n){var o=this.w,a=o.config.xaxis.tickAmount;return a==="dataPoints"&&(a=Math.round(o.globals.gridWidth/120)),a>n||e%Math.round(n/(a+1))==0||(r.text=""),r}},{key:"checkForOverflowingLabels",value:function(e,r,n,o,a){var f=this.w;if(e===0&&f.globals.skipFirstTimelinelabel&&(r.text=""),e===n-1&&f.globals.skipLastTimelinelabel&&(r.text=""),f.config.xaxis.labels.hideOverlappingLabels&&o.length>0){var p=a[a.length-1];if(f.config.xaxis.labels.trim&&f.config.xaxis.type!=="datetime")return r;r.x<p.textRect.width/(f.globals.rotateXLabels?Math.abs(f.config.xaxis.labels.rotate)/12:1.01)+p.x&&(r.text="")}return r}},{key:"checkForReversedLabels",value:function(e,r){var n=this.w;return n.config.yaxis[e]&&n.config.yaxis[e].reversed&&r.reverse(),r}},{key:"yAxisAllSeriesCollapsed",value:function(e){var r=this.w.globals;return!r.seriesYAxisMap[e].some(function(n){return r.collapsedSeriesIndices.indexOf(n)===-1})}},{key:"translateYAxisIndex",value:function(e){var r=this.w,n=r.globals,o=r.config.yaxis;return n.series.length>o.length||o.some(function(a){return Array.isArray(a.seriesName)})?e:n.seriesYAxisReverseMap[e]}},{key:"isYAxisHidden",value:function(e){var r=this.w,n=r.config.yaxis[e];if(!n.show||this.yAxisAllSeriesCollapsed(e))return!0;if(!n.showForNullSeries){var o=r.globals.seriesYAxisMap[e],a=new Hr(this.ctx);return o.every(function(f){return a.isSeriesNull(f)})}return!1}},{key:"getYAxisForeColor",value:function(e,r){var n=this.w;return Array.isArray(e)&&n.globals.yAxisScale[r]&&this.ctx.theme.pushExtraColors(e,n.globals.yAxisScale[r].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,r,n,o,a,f,p){var m=this.w,v=new xe(this.ctx),y=m.globals.translateY+m.config.yaxis[a].labels.offsetY;if(m.globals.isBarHorizontal?y=0:m.config.chart.type==="heatmap"&&(y+=f/2),o.show&&r>0){m.config.yaxis[a].opposite===!0&&(e+=o.width);for(var x=r;x>=0;x--){var k=v.drawLine(e+n.offsetX-o.width+o.offsetX,y+o.offsetY,e+n.offsetX+o.offsetX,y+o.offsetY,o.color);p.add(k),y+=f}}}}]),t}(),O_e=function(){function t(e){Be(this,t),this.w=e.w,this.annoCtx=e,this.helpers=new q1(this.annoCtx),this.axesUtils=new Zl(this.annoCtx)}return Fe(t,[{key:"addYaxisAnnotation",value:function(e,r,n){var o,a=this.w,f=e.strokeDashArray,p=this.helpers.getY1Y2("y1",e),m=p.yP,v=p.clipped,y=!0,x=!1,k=e.label.text;if(e.y2===null||e.y2===void 0){if(!v){x=!0;var S=this.annoCtx.graphics.drawLine(0+e.offsetX,m+e.offsetY,this._getYAxisAnnotationWidth(e),m+e.offsetY,e.borderColor,f,e.borderWidth);r.appendChild(S.node),e.id&&S.node.classList.add(e.id)}}else{if(o=(p=this.helpers.getY1Y2("y2",e)).yP,y=p.clipped,o>m){var O=m;m=o,o=O}if(!v||!y){x=!0;var C=this.annoCtx.graphics.drawRect(0+e.offsetX,o+e.offsetY,this._getYAxisAnnotationWidth(e),m-o,0,e.fillColor,e.opacity,1,e.borderColor,f);C.node.classList.add("apexcharts-annotation-rect"),C.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),r.appendChild(C.node),e.id&&C.node.classList.add(e.id)}}if(x){var R=e.label.position==="right"?a.globals.gridWidth:e.label.position==="center"?a.globals.gridWidth/2:0,E=this.annoCtx.graphics.drawText({x:R+e.label.offsetX,y:(o??m)+e.label.offsetY-3,text:k,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});E.attr({rel:n}),r.appendChild(E.node)}}},{key:"_getYAxisAnnotationWidth",value:function(e){var r=this.w;return r.globals.gridWidth,(e.width.indexOf("%")>-1?r.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,r=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return r.config.annotations.yaxis.forEach(function(o,a){o.yAxisIndex=e.axesUtils.translateYAxisIndex(o.yAxisIndex),e.axesUtils.isYAxisHidden(o.yAxisIndex)&&e.axesUtils.yAxisAllSeriesCollapsed(o.yAxisIndex)||e.addYaxisAnnotation(o,n.node,a)}),n}}]),t}(),E_e=function(){function t(e){Be(this,t),this.w=e.w,this.annoCtx=e,this.helpers=new q1(this.annoCtx)}return Fe(t,[{key:"addPointAnnotation",value:function(e,r,n){if(!(this.w.globals.collapsedSeriesIndices.indexOf(e.seriesIndex)>-1)){var o=this.helpers.getX1X2("x1",e),a=o.x,f=o.clipped,p=(o=this.helpers.getY1Y2("y1",e)).yP,m=o.clipped;if(se.isNumber(a)&&!m&&!f){var v={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},y=this.annoCtx.graphics.drawMarker(a+e.marker.offsetX,p+e.marker.offsetY,v);r.appendChild(y.node);var x=e.label.text?e.label.text:"",k=this.annoCtx.graphics.drawText({x:a+e.label.offsetX,y:p+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:x,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(k.attr({rel:n}),r.appendChild(k.node),e.customSVG.SVG){var S=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});S.attr({transform:"translate(".concat(a+e.customSVG.offsetX,", ").concat(p+e.customSVG.offsetY,")")}),S.node.innerHTML=e.customSVG.SVG,r.appendChild(S.node)}if(e.image.path){var O=e.image.width?e.image.width:20,C=e.image.height?e.image.height:20;y=this.annoCtx.addImage({x:a+e.image.offsetX-O/2,y:p+e.image.offsetY-C/2,width:O,height:C,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&y.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&y.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&y.node.addEventListener("click",e.click.bind(this,e))}}}},{key:"drawPointAnnotations",value:function(){var e=this,r=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return r.config.annotations.points.map(function(o,a){e.addPointAnnotation(o,n.node,a)}),n}}]),t}(),aX={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},Dc=function(){function t(){Be(this,t),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,showDuplicates:!1,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return Fe(t,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"",locales:[aX],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.7},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,injectStyleSheet:!0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",categoryFormatter:void 0,valueFormatter:void 0},png:{filename:void 0},svg:{filename:void 0},scale:void 0,width:void 0},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,allowMouseWheelZoom:!0,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},parsing:{x:void 0,y:void 0},plotOptions:{line:{isSlopeChart:!1,colors:{threshold:0,colorAboveThreshold:void 0,colorBelowThreshold:void 0}},area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0},seriesTitle:{show:!0,offsetY:1,offsetX:1,borderColor:"#000",borderWidth:1,borderRadius:2,style:{background:"rgba(0, 0, 0, 0.6)",color:"#fff",fontSize:"12px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:6,right:6,top:2,bottom:2}}}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(r,n){return r+n},0)/e.globals.series.length+"%"}}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(e){return e},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(r,n){return r+n},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return e!==null?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",backgroundColor:void 0,borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],clusterGroupedSeries:!0,clusterGroupedSeriesOrientation:"vertical",labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{hover:{filter:{type:"lighten"}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken"}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.8}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),t}(),T_e=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w,this.graphics=new xe(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new q1(this),this.xAxisAnnotations=new A_e(this),this.yAxisAnnotations=new O_e(this),this.pointsAnnotations=new E_e(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return Fe(t,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts&&e.globals.dataPoints){for(var r=this.yAxisAnnotations.drawYAxisAnnotations(),n=this.xAxisAnnotations.drawXAxisAnnotations(),o=this.pointsAnnotations.drawPointAnnotations(),a=e.config.chart.animations.enabled,f=[r,n,o],p=[n.node,r.node,o.node],m=0;m<3;m++)e.globals.dom.elGraphical.add(f[m]),!a||e.globals.resized||e.globals.dataChanged||e.config.chart.type!=="scatter"&&e.config.chart.type!=="bubble"&&e.globals.dataPoints>1&&p[m].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:p[m],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map(function(r,n){e.addImage(r,n)})}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map(function(r,n){e.addText(r,n)})}},{key:"addXaxisAnnotation",value:function(e,r,n){this.xAxisAnnotations.addXaxisAnnotation(e,r,n)}},{key:"addYaxisAnnotation",value:function(e,r,n){this.yAxisAnnotations.addYaxisAnnotation(e,r,n)}},{key:"addPointAnnotation",value:function(e,r,n){this.pointsAnnotations.addPointAnnotation(e,r,n)}},{key:"addText",value:function(e,r){var n=e.x,o=e.y,a=e.text,f=e.textAnchor,p=e.foreColor,m=e.fontSize,v=e.fontFamily,y=e.fontWeight,x=e.cssClass,k=e.backgroundColor,S=e.borderWidth,O=e.strokeDashArray,C=e.borderRadius,R=e.borderColor,E=e.appendTo,P=E===void 0?".apexcharts-svg":E,M=e.paddingLeft,I=M===void 0?4:M,B=e.paddingRight,U=B===void 0?4:B,H=e.paddingBottom,V=H===void 0?2:H,W=e.paddingTop,G=W===void 0?2:W,Z=this.w,K=this.graphics.drawText({x:n,y:o,text:a,textAnchor:f||"start",fontSize:m||"12px",fontWeight:y||"regular",fontFamily:v||Z.config.chart.fontFamily,foreColor:p||Z.config.chart.foreColor,cssClass:x}),Q=Z.globals.dom.baseEl.querySelector(P);Q&&Q.appendChild(K.node);var oe=K.bbox();if(a){var ie=this.graphics.drawRect(oe.x-I,oe.y-G,oe.width+I+U,oe.height+V+G,C,k||"transparent",1,S,R,O);Q.insertBefore(ie.node,K.node)}}},{key:"addImage",value:function(e,r){var n=this.w,o=e.path,a=e.x,f=a===void 0?0:a,p=e.y,m=p===void 0?0:p,v=e.width,y=v===void 0?20:v,x=e.height,k=x===void 0?20:x,S=e.appendTo,O=S===void 0?".apexcharts-svg":S,C=n.globals.dom.Paper.image(o);C.size(y,k).move(f,m);var R=n.globals.dom.baseEl.querySelector(O);return R&&R.appendChild(C.node),C}},{key:"addXaxisAnnotationExternal",value:function(e,r,n){return this.addAnnotationExternal({params:e,pushToMemory:r,context:n,type:"xaxis",contextMethod:n.addXaxisAnnotation}),n}},{key:"addYaxisAnnotationExternal",value:function(e,r,n){return this.addAnnotationExternal({params:e,pushToMemory:r,context:n,type:"yaxis",contextMethod:n.addYaxisAnnotation}),n}},{key:"addPointAnnotationExternal",value:function(e,r,n){return this.invertAxis===void 0&&(this.invertAxis=n.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:r,context:n,type:"point",contextMethod:n.addPointAnnotation}),n}},{key:"addAnnotationExternal",value:function(e){var r=e.params,n=e.pushToMemory,o=e.context,a=e.type,f=e.contextMethod,p=o,m=p.w,v=m.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations")),y=v.childNodes.length+1,x=new Dc,k=Object.assign({},a==="xaxis"?x.xAxisAnnotation:a==="yaxis"?x.yAxisAnnotation:x.pointAnnotation),S=se.extend(k,r);switch(a){case"xaxis":this.addXaxisAnnotation(S,v,y);break;case"yaxis":this.addYaxisAnnotation(S,v,y);break;case"point":this.addPointAnnotation(S,v,y)}var O=m.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations .apexcharts-").concat(a,"-annotation-label[rel='").concat(y,"']")),C=this.helpers.addBackgroundToAnno(O,S);return C&&v.insertBefore(C.node,O),n&&m.globals.memory.methodsToExec.push({context:p,id:S.id?S.id:se.randomId(),method:f,label:"addAnnotation",params:r}),o}},{key:"clearAnnotations",value:function(e){for(var r=e.w,n=r.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations"),o=r.globals.memory.methodsToExec.length-1;o>=0;o--)r.globals.memory.methodsToExec[o].label!=="addText"&&r.globals.memory.methodsToExec[o].label!=="addAnnotation"||r.globals.memory.methodsToExec.splice(o,1);n=se.listToArray(n),Array.prototype.forEach.call(n,function(a){for(;a.firstChild;)a.removeChild(a.firstChild)})}},{key:"removeAnnotation",value:function(e,r){var n=e.w,o=n.globals.dom.baseEl.querySelectorAll(".".concat(r));o&&(n.globals.memory.methodsToExec.map(function(a,f){a.id===r&&n.globals.memory.methodsToExec.splice(f,1)}),Object.keys(n.config.annotations).forEach(function(a){var f=n.config.annotations[a];Array.isArray(f)&&(n.config.annotations[a]=f.filter(function(p){return p.id!==r}))}),Array.prototype.forEach.call(o,function(a){a.parentElement.removeChild(a)}))}}]),t}(),hE=function(t){var e,r=t.isTimeline,n=t.ctx,o=t.seriesIndex,a=t.dataPointIndex,f=t.y1,p=t.y2,m=t.w,v=m.globals.seriesRangeStart[o][a],y=m.globals.seriesRangeEnd[o][a],x=m.globals.labels[a],k=m.config.series[o].name?m.config.series[o].name:"",S=m.globals.ttKeyFormatter,O=m.config.tooltip.y.title.formatter,C={w:m,seriesIndex:o,dataPointIndex:a,start:v,end:y};typeof O=="function"&&(k=O(k,C)),(e=m.config.series[o].data[a])!==null&&e!==void 0&&e.x&&(x=m.config.series[o].data[a].x),r||m.config.xaxis.type==="datetime"&&(x=new yb(n).xLabelFormat(m.globals.ttKeyFormatter,x,x,{i:void 0,dateFormatter:new Tn(n).formatDate,w:m})),typeof S=="function"&&(x=S(x,C)),Number.isFinite(f)&&Number.isFinite(p)&&(v=f,y=p);var R="",E="",P=m.globals.colors[o];if(m.config.tooltip.x.formatter===void 0)if(m.config.xaxis.type==="datetime"){var M=new Tn(n);R=M.formatDate(M.getDate(v),m.config.tooltip.x.format),E=M.formatDate(M.getDate(y),m.config.tooltip.x.format)}else R=v,E=y;else R=m.config.tooltip.x.formatter(v),E=m.config.tooltip.x.formatter(y);return{start:v,end:y,startVal:R,endVal:E,ylabel:x,color:P,seriesName:k}},pE=function(t){var e=t.color,r=t.seriesName,n=t.ylabel,o=t.start,a=t.end,f=t.seriesIndex,p=t.dataPointIndex,m=t.ctx.tooltip.tooltipLabels.getFormatters(f);o=m.yLbFormatter(o),a=m.yLbFormatter(a);var v=m.yLbFormatter(t.w.globals.series[f][p]),y=`<span class="value start-value">
  `.concat(o,`
  </span> <span class="separator">-</span> <span class="value end-value">
  `).concat(a,`
  </span>`);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+e+'">'+(r||"")+'</span></div><div> <span class="category">'+n+": </span> "+(t.w.globals.comboCharts?t.w.config.series[f].type==="rangeArea"||t.w.config.series[f].type==="rangeBar"?y:"<span>".concat(v,"</span>"):y)+" </div></div>"},yv=function(){function t(e){Be(this,t),this.opts=e}return Fe(t,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(e){return this.hideYAxis(),se.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"slope",value:function(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter:function(e,r){var n=r.w.config.series[r.seriesIndex].name;return e!==null?n+": "+e:""},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:"top",labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}},markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:"straight"}}}},{key:"bar",value:function(){return{chart:{stacked:!1},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"square"},fill:{opacity:.85},legend:{markers:{shape:"square"}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),Oe(Oe({},this.bar()),{},{chart:{animations:{speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(r){var n=r.seriesIndex,o=r.dataPointIndex,a=r.w;return e._getBoxTooltip(a,n,o,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(r){var n=r.seriesIndex,o=r.dataPointIndex,a=r.w;return e._getBoxTooltip(a,n,o,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,r){r.ctx;var n=r.seriesIndex,o=r.dataPointIndex,a=r.w,f=function(){var p=a.globals.seriesRangeStart[n][o];return a.globals.seriesRangeEnd[n][o]-p};return a.globals.comboCharts?a.config.series[n].type==="rangeBar"||a.config.series[n].type==="rangeArea"?f():e:f()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(r){var n=hE(Oe(Oe({},r),{},{isTimeline:!0})),o=n.color,a=n.seriesName,f=n.ylabel,p=n.startVal,m=n.endVal;return pE(Oe(Oe({},r),{},{color:o,seriesName:a,ylabel:f,start:p,end:m}))}(e):function(r){var n=hE(r),o=n.color,a=n.seriesName,f=n.ylabel,p=n.start,m=n.end;return pE(Oe(Oe({},r),{},{color:o,seriesName:a,ylabel:f,start:p,end:m}))}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(e){var r,n;return(r=e.plotOptions.bar)!==null&&r!==void 0&&r.barHeight||(e.plotOptions.bar.barHeight=2),(n=e.plotOptions.bar)!==null&&n!==void 0&&n.columnWidth||(e.plotOptions.bar.columnWidth=2),e}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){return function(r){var n=hE(r),o=n.color,a=n.seriesName,f=n.ylabel,p=n.start,m=n.end;return pE(Oe(Oe({},r),{},{color:o,seriesName:a,ylabel:f,start:p,end:m}))}(e)}}}}},{key:"brush",value:function(e){return se.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var r=e.dataLabels.formatter;return e.yaxis.forEach(function(n,o){e.yaxis[o].min=0,e.yaxis[o].max=100}),e.chart.type==="bar"&&(e.dataLabels.formatter=r||function(n){return typeof n=="number"&&n?n.toFixed(0)+"%":n}),e}},{key:"stackedBars",value:function(){var e=this.bar();return Oe(Oe({},e),{},{plotOptions:Oe(Oe({},e.plotOptions),{},{bar:Oe(Oe({},e.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,r,n){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(f){return se.isNumber(f)?Math.floor(f):f};var o=e.xaxis.labels.formatter,a=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return n&&n.length&&(a=n.map(function(f){return Array.isArray(f)?f:String(f)})),a&&a.length&&(e.xaxis.labels.formatter=function(f){return se.isNumber(f)?o(a[Math.floor(f)-1]):o(f)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square"}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{opacity:1,gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"polarArea",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:5,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},xaxis:{labels:{formatter:function(e){return e},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"_getBoxTooltip",value:function(e,r,n,o,a){var f=e.globals.seriesCandleO[r][n],p=e.globals.seriesCandleH[r][n],m=e.globals.seriesCandleM[r][n],v=e.globals.seriesCandleL[r][n],y=e.globals.seriesCandleC[r][n];return e.config.series[r].type&&e.config.series[r].type!==a?`<div class="apexcharts-custom-tooltip">
          `.concat(e.config.series[r].name?e.config.series[r].name:"series-"+(r+1),": <strong>").concat(e.globals.series[r][n],`</strong>
        </div>`):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(o[0],': <span class="value">')+f+"</span></div>"+"<div>".concat(o[1],': <span class="value">')+p+"</span></div>"+(m?"<div>".concat(o[2],': <span class="value">')+m+"</span></div>":"")+"<div>".concat(o[3],': <span class="value">')+v+"</span></div>"+"<div>".concat(o[4],': <span class="value">')+y+"</span></div></div>"}}]),t}(),xv=function(){function t(e){Be(this,t),this.opts=e}return Fe(t,[{key:"init",value:function(e){var r=e.responsiveOverride,n=this.opts,o=new Dc,a=new yv(n);this.chartType=n.chart.type,n=this.extendYAxis(n),n=this.extendAnnotations(n);var f=o.init(),p={};if(n&&to(n)==="object"){var m,v,y,x,k,S,O,C,R,E,P={};P=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(n.chart.type)!==-1?a[n.chart.type]():a.line(),(m=n.plotOptions)!==null&&m!==void 0&&(v=m.bar)!==null&&v!==void 0&&v.isFunnel&&(P=a.funnel()),n.chart.stacked&&n.chart.type==="bar"&&(P=a.stackedBars()),(y=n.chart.brush)!==null&&y!==void 0&&y.enabled&&(P=a.brush(P)),(x=n.plotOptions)!==null&&x!==void 0&&(k=x.line)!==null&&k!==void 0&&k.isSlopeChart&&(P=a.slope()),n.chart.stacked&&n.chart.stackType==="100%"&&(n=a.stacked100(n)),(S=n.plotOptions)!==null&&S!==void 0&&(O=S.bar)!==null&&O!==void 0&&O.isDumbbell&&(n=a.dumbbell(n)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(n),n.xaxis=n.xaxis||window.Apex.xaxis||{},r||(n.xaxis.convertedCatToNumeric=!1),((C=(n=this.checkForCatToNumericXAxis(this.chartType,P,n)).chart.sparkline)!==null&&C!==void 0&&C.enabled||(R=window.Apex.chart)!==null&&R!==void 0&&(E=R.sparkline)!==null&&E!==void 0&&E.enabled)&&(P=a.sparkline(P)),p=se.extend(f,P)}var M=se.extend(p,window.Apex);return f=se.extend(M,n),f=this.handleUserInputErrors(f)}},{key:"checkForCatToNumericXAxis",value:function(e,r,n){var o,a,f=new yv(n),p=(e==="bar"||e==="boxPlot")&&((o=n.plotOptions)===null||o===void 0||(a=o.bar)===null||a===void 0?void 0:a.horizontal),m=e==="pie"||e==="polarArea"||e==="donut"||e==="radar"||e==="radialBar"||e==="heatmap",v=n.xaxis.type!=="datetime"&&n.xaxis.type!=="numeric",y=n.xaxis.tickPlacement?n.xaxis.tickPlacement:r.xaxis&&r.xaxis.tickPlacement;return p||m||!v||y==="between"||(n=f.convertCatToNumeric(n)),n}},{key:"extendYAxis",value:function(e,r){var n=new Dc;(e.yaxis===void 0||!e.yaxis||Array.isArray(e.yaxis)&&e.yaxis.length===0)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=se.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[se.extend(n.yAxis,e.yaxis)]:e.yaxis=se.extendArray(e.yaxis,n.yAxis);var o=!1;e.yaxis.forEach(function(f){f.logarithmic&&(o=!0)});var a=e.series;return r&&!a&&(a=r.config.series),o&&a.length!==e.yaxis.length&&a.length&&(e.yaxis=a.map(function(f,p){if(f.name||(a[p].name="series-".concat(p+1)),e.yaxis[p])return e.yaxis[p].seriesName=a[p].name,e.yaxis[p];var m=se.extend(n.yAxis,e.yaxis[0]);return m.show=!1,m})),o&&a.length>1&&a.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),e}},{key:"extendAnnotations",value:function(e){return e.annotations===void 0&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),e=this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var r=new Dc;return e.annotations.yaxis=se.extendArray(e.annotations.yaxis!==void 0?e.annotations.yaxis:[],r.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var r=new Dc;return e.annotations.xaxis=se.extendArray(e.annotations.xaxis!==void 0?e.annotations.xaxis:[],r.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var r=new Dc;return e.annotations.points=se.extendArray(e.annotations.points!==void 0?e.annotations.points:[],r.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&e.theme.mode==="dark"&&(e.tooltip||(e.tooltip={}),e.tooltip.theme!=="light"&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var r=e;if(r.tooltip.shared&&r.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(r.chart.type==="bar"&&r.plotOptions.bar.horizontal){if(r.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");r.yaxis[0].reversed&&(r.yaxis[0].opposite=!0),r.xaxis.tooltip.enabled=!1,r.yaxis[0].tooltip.enabled=!1,r.chart.zoom.enabled=!1}return r.chart.type!=="bar"&&r.chart.type!=="rangeBar"||r.tooltip.shared&&r.xaxis.crosshairs.width==="barWidth"&&r.series.length>1&&(r.xaxis.crosshairs.width="tickWidth"),r.chart.type!=="candlestick"&&r.chart.type!=="boxPlot"||r.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(r.chart.type," chart is not supported.")),r.yaxis[0].reversed=!1),r}}]),t}(),sX=function(){function t(){Be(this,t)}return Fe(t,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.dataWasParsed=!1,e.originalSeries=null,e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.barGroups=[],e.lineGroups=[],e.areaGroups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.lastWheelExecution=0,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0,e.multiAxisTickAmount=0}},{key:"globalVars",value:function(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],invalidLogScale:!1,ignoreYAxisIndexes:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:e.chart.toolbar.autoSelected==="zoom"&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:e.chart.toolbar.autoSelected==="pan"&&e.chart.toolbar.tools.pan,selectionEnabled:e.chart.toolbar.autoSelected==="selection"&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,isSlopeChart:e.plotOptions.line.isSlopeChart,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null,niceScaleAllowedMagMsd:[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],niceScaleDefaultTicks:[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24],seriesYAxisMap:[],seriesYAxisReverseMap:[]}}},{key:"init",value:function(e){var r=this.globalVars(e);return this.initGlobalVars(r),r.initialConfig=se.extend({},e),r.initialSeries=se.clone(e.series),r.lastXAxis=se.clone(r.initialConfig.xaxis),r.lastYAxis=se.clone(r.initialConfig.yaxis),r}}]),t}(),R_e=function(){function t(e){Be(this,t),this.opts=e}return Fe(t,[{key:"init",value:function(){var e=new xv(this.opts).init({responsiveOverride:!1});return{config:e,globals:new sX().init(e)}}}]),t}(),ea=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}return Fe(t,[{key:"clippedImgArea",value:function(e){var r=this.w,n=r.config,o=parseInt(r.globals.gridWidth,10),a=parseInt(r.globals.gridHeight,10),f=o>a?o:a,p=e.image,m=0,v=0;e.width===void 0&&e.height===void 0?n.fill.image.width!==void 0&&n.fill.image.height!==void 0?(m=n.fill.image.width+1,v=n.fill.image.height):(m=f+1,v=f):(m=e.width,v=e.height);var y=document.createElementNS(r.globals.SVGNS,"pattern");xe.setAttrs(y,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:m+"px",height:v+"px"});var x=document.createElementNS(r.globals.SVGNS,"image");y.appendChild(x),x.setAttributeNS(window.SVG.xlink,"href",p),xe.setAttrs(x,{x:0,y:0,preserveAspectRatio:"none",width:m+"px",height:v+"px"}),x.style.opacity=e.opacity,r.globals.dom.elDefs.node.appendChild(y)}},{key:"getSeriesIndex",value:function(e){var r=this.w,n=r.config.chart.type;return(n==="bar"||n==="rangeBar")&&r.config.plotOptions.bar.distributed||n==="heatmap"||n==="treemap"?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%r.globals.series.length,this.seriesIndex}},{key:"computeColorStops",value:function(e,r){var n,o=this.w,a=null,f=null,p=wm(e);try{for(p.s();!(n=p.n()).done;){var m=n.value;m>=r.threshold?(a===null||m>a)&&(a=m):(f===null||m<f)&&(f=m)}}catch(x){p.e(x)}finally{p.f()}a===null&&(a=r.threshold),f===null&&(f=r.threshold);var v=a-r.threshold+(r.threshold-f);v===0&&(v=1);var y=100-(r.threshold-f)/v*100;return[{offset:y=Math.max(0,Math.min(y,100)),color:r.colorAboveThreshold,opacity:o.config.fill.opacity},{offset:0,color:r.colorBelowThreshold,opacity:o.config.fill.opacity}]}},{key:"fillPath",value:function(e){var r,n,o,a=this.w;this.opts=e;var f,p,m,v=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var y=v.plotOptions.line.colors.colorAboveThreshold&&v.plotOptions.line.colors.colorBelowThreshold,x=this.getFillColors()[this.seriesIndex];a.globals.seriesColors[this.seriesIndex]!==void 0&&(x=a.globals.seriesColors[this.seriesIndex]),typeof x=="function"&&(x=x({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:a}));var k,S,O,C=e.fillType?e.fillType:this.getFillType(this.seriesIndex),R=Array.isArray(v.fill.opacity)?v.fill.opacity[this.seriesIndex]:v.fill.opacity,E=C==="gradient"||y;e.color&&(x=e.color),(r=a.config.series[this.seriesIndex])!==null&&r!==void 0&&(n=r.data)!==null&&n!==void 0&&(o=n[e.dataPointIndex])!==null&&o!==void 0&&o.fillColor&&(x=(k=a.config.series[this.seriesIndex])===null||k===void 0||(S=k.data)===null||S===void 0||(O=S[e.dataPointIndex])===null||O===void 0?void 0:O.fillColor),x||(x="#fff",console.warn("undefined color - ApexCharts"));var P=x;if(x.indexOf("rgb")===-1?x.indexOf("#")===-1?P=x:x.length<9&&(P=se.hexToRgba(x,R)):x.indexOf("rgba")>-1?R=se.getOpacityFromRGBA(x):P=se.hexToRgba(se.rgb2hex(x),R),e.opacity&&(R=e.opacity),C==="pattern"&&(p=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:p,fillColor:x,fillOpacity:R,defaultColor:P})),E){var M=ln(v.fill.gradient.colorStops)||[],I=v.fill.gradient.type;y&&(M[this.seriesIndex]=this.computeColorStops(a.globals.series[this.seriesIndex],v.plotOptions.line.colors),I="vertical"),m=this.handleGradientFill({type:I,fillConfig:e.fillConfig,fillColor:x,fillOpacity:R,colorStops:M,i:this.seriesIndex})}if(C==="image"){var B=v.fill.image.src,U=e.patternID?e.patternID:"",H="pattern".concat(a.globals.cuid).concat(e.seriesNumber+1).concat(U);this.patternIDs.indexOf(H)===-1&&(this.clippedImgArea({opacity:R,image:Array.isArray(B)?e.seriesNumber<B.length?B[e.seriesNumber]:B[0]:B,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:H}),this.patternIDs.push(H)),f="url(#".concat(H,")")}else f=E?m:C==="pattern"?p:P;return e.solid&&(f=P),f}},{key:"getFillType",value:function(e){var r=this.w;return Array.isArray(r.config.fill.type)?r.config.fill.type[e]:r.config.fill.type}},{key:"getFillColors",value:function(){var e=this.w,r=e.config,n=this.opts,o=[];return e.globals.comboCharts?e.config.series[this.seriesIndex].type==="line"?Array.isArray(e.globals.stroke.colors)?o=e.globals.stroke.colors:o.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?o=e.globals.fill.colors:o.push(e.globals.fill.colors):r.chart.type==="line"?Array.isArray(e.globals.stroke.colors)?o=e.globals.stroke.colors:o.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?o=e.globals.fill.colors:o.push(e.globals.fill.colors),n.fillColors!==void 0&&(o=[],Array.isArray(n.fillColors)?o=n.fillColors.slice():o.push(n.fillColors)),o}},{key:"handlePatternFill",value:function(e){var r=e.fillConfig,n=e.patternFill,o=e.fillColor,a=e.fillOpacity,f=e.defaultColor,p=this.w.config.fill;r&&(p=r);var m=this.opts,v=new xe(this.ctx),y=Array.isArray(p.pattern.strokeWidth)?p.pattern.strokeWidth[this.seriesIndex]:p.pattern.strokeWidth,x=o;return Array.isArray(p.pattern.style)?n=p.pattern.style[m.seriesNumber]!==void 0?v.drawPattern(p.pattern.style[m.seriesNumber],p.pattern.width,p.pattern.height,x,y,a):f:n=v.drawPattern(p.pattern.style,p.pattern.width,p.pattern.height,x,y,a),n}},{key:"handleGradientFill",value:function(e){var r=e.type,n=e.fillColor,o=e.fillOpacity,a=e.fillConfig,f=e.colorStops,p=e.i,m=this.w.config.fill;a&&(m=Oe(Oe({},m),a));var v=this.opts,y=new xe(this.ctx),x=new se;r=r||m.gradient.type;var k,S=n,O=m.gradient.opacityFrom===void 0?o:Array.isArray(m.gradient.opacityFrom)?m.gradient.opacityFrom[p]:m.gradient.opacityFrom;S.indexOf("rgba")>-1&&(O=se.getOpacityFromRGBA(S));var C=m.gradient.opacityTo===void 0?o:Array.isArray(m.gradient.opacityTo)?m.gradient.opacityTo[p]:m.gradient.opacityTo;if(m.gradient.gradientToColors===void 0||m.gradient.gradientToColors.length===0)k=m.gradient.shade==="dark"?x.shadeColor(-1*parseFloat(m.gradient.shadeIntensity),n.indexOf("rgb")>-1?se.rgb2hex(n):n):x.shadeColor(parseFloat(m.gradient.shadeIntensity),n.indexOf("rgb")>-1?se.rgb2hex(n):n);else if(m.gradient.gradientToColors[v.seriesNumber]){var R=m.gradient.gradientToColors[v.seriesNumber];k=R,R.indexOf("rgba")>-1&&(C=se.getOpacityFromRGBA(R))}else k=n;if(m.gradient.gradientFrom&&(S=m.gradient.gradientFrom),m.gradient.gradientTo&&(k=m.gradient.gradientTo),m.gradient.inverseColors){var E=S;S=k,k=E}return S.indexOf("rgb")>-1&&(S=se.rgb2hex(S)),k.indexOf("rgb")>-1&&(k=se.rgb2hex(k)),y.drawGradient(r,S,k,O,C,v.size,m.gradient.stops,f,p)}}]),t}(),Sh=function(){function t(e,r){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.globals.series.length+1)for(var r=0;r<=e.globals.series.length;r++)e.globals.markers.size[r]===void 0&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map(function(n){return e.config.markers.size})}},{key:"plotChartMarkers",value:function(e){var r=e.pointsPos,n=e.seriesIndex,o=e.j,a=e.pSize,f=e.alwaysDrawMarker,p=f!==void 0&&f,m=e.isVirtualPoint,v=m!==void 0&&m,y=this.w,x=n,k=r,S=null,O=new xe(this.ctx),C=y.config.markers.discrete&&y.config.markers.discrete.length;if(Array.isArray(k.x))for(var R=0;R<k.x.length;R++){var E=void 0,P=o,M=!se.isNumber(k.y[R]);y.globals.markers.largestSize===0&&y.globals.hasNullValues&&y.globals.series[x][o+1]!==null&&!v&&(M=!0),o===1&&R===0&&(P=0),o===1&&R===1&&(P=1);var I="apexcharts-marker";if(y.config.chart.type!=="line"&&y.config.chart.type!=="area"||y.globals.comboCharts||y.config.tooltip.intersect||(I+=" no-pointer-events"),(Array.isArray(y.config.markers.size)?y.globals.markers.size[n]>0:y.config.markers.size>0)||p||C){M||(I+=" w".concat(se.randomId()));var B=this.getMarkerConfig({cssClass:I,seriesIndex:n,dataPointIndex:P});y.config.series[x].data[P]&&(y.config.series[x].data[P].fillColor&&(B.pointFillColor=y.config.series[x].data[P].fillColor),y.config.series[x].data[P].strokeColor&&(B.pointStrokeColor=y.config.series[x].data[P].strokeColor)),a!==void 0&&(B.pSize=a),(k.x[R]<-y.globals.markers.largestSize||k.x[R]>y.globals.gridWidth+y.globals.markers.largestSize||k.y[R]<-y.globals.markers.largestSize||k.y[R]>y.globals.gridHeight+y.globals.markers.largestSize)&&(B.pSize=0),!M&&((y.globals.markers.size[n]>0||p||C)&&!S&&(S=O.group({class:p||C?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(y.globals.cuid,")")),(E=O.drawMarker(k.x[R],k.y[R],B)).attr("rel",P),E.attr("j",P),E.attr("index",n),E.node.setAttribute("default-marker-size",B.pSize),new Pn(this.ctx).setSelectionFilter(E,n,P),this.addEvents(E),S&&S.add(E))}else y.globals.pointsArray[n]===void 0&&(y.globals.pointsArray[n]=[]),y.globals.pointsArray[n].push([k.x[R],k.y[R]])}return S}},{key:"getMarkerConfig",value:function(e){var r=e.cssClass,n=e.seriesIndex,o=e.dataPointIndex,a=o===void 0?null:o,f=e.radius,p=f===void 0?null:f,m=e.size,v=m===void 0?null:m,y=e.strokeWidth,x=y===void 0?null:y,k=this.w,S=this.getMarkerStyle(n),O=v===null?k.globals.markers.size[n]:v,C=k.config.markers;return a!==null&&C.discrete.length&&C.discrete.map(function(R){R.seriesIndex===n&&R.dataPointIndex===a&&(S.pointStrokeColor=R.strokeColor,S.pointFillColor=R.fillColor,O=R.size,S.pointShape=R.shape)}),{pSize:p===null?O:p,pRadius:p!==null?p:C.radius,pointStrokeWidth:x!==null?x:Array.isArray(C.strokeWidth)?C.strokeWidth[n]:C.strokeWidth,pointStrokeColor:S.pointStrokeColor,pointFillColor:S.pointFillColor,shape:S.pointShape||(Array.isArray(C.shape)?C.shape[n]:C.shape),class:r,pointStrokeOpacity:Array.isArray(C.strokeOpacity)?C.strokeOpacity[n]:C.strokeOpacity,pointStrokeDashArray:Array.isArray(C.strokeDashArray)?C.strokeDashArray[n]:C.strokeDashArray,pointFillOpacity:Array.isArray(C.fillOpacity)?C.fillOpacity[n]:C.fillOpacity,seriesIndex:n}}},{key:"addEvents",value:function(e){var r=this.w,n=new xe(this.ctx);e.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",n.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",r.config.markers.onClick),e.node.addEventListener("dblclick",r.config.markers.onDblClick),e.node.addEventListener("touchstart",n.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var r=this.w,n=r.globals.markers.colors,o=r.config.markers.strokeColor||r.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(o)?o[e]:o,pointFillColor:Array.isArray(n)?n[e]:n}}}]),t}(),lX=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled}return Fe(t,[{key:"draw",value:function(e,r,n){var o=this.w,a=new xe(this.ctx),f=n.realIndex,p=n.pointsPos,m=n.zRatio,v=n.elParent,y=a.group({class:"apexcharts-series-markers apexcharts-series-".concat(o.config.chart.type)});if(y.attr("clip-path","url(#gridRectMarkerMask".concat(o.globals.cuid,")")),Array.isArray(p.x))for(var x=0;x<p.x.length;x++){var k=r+1,S=!0;r===0&&x===0&&(k=0),r===0&&x===1&&(k=1);var O=o.globals.markers.size[f];if(m!==1/0){var C=o.config.plotOptions.bubble;O=o.globals.seriesZ[f][k],C.zScaling&&(O/=m),C.minBubbleRadius&&O<C.minBubbleRadius&&(O=C.minBubbleRadius),C.maxBubbleRadius&&O>C.maxBubbleRadius&&(O=C.maxBubbleRadius)}var R=p.x[x],E=p.y[x];if(O=O||0,E!==null&&o.globals.series[f][k]!==void 0||(S=!1),S){var P=this.drawPoint(R,E,O,f,k,r);y.add(P)}v.add(y)}}},{key:"drawPoint",value:function(e,r,n,o,a,f){var p=this.w,m=o,v=new wh(this.ctx),y=new Pn(this.ctx),x=new ea(this.ctx),k=new Sh(this.ctx),S=new xe(this.ctx),O=k.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:m,dataPointIndex:a,radius:p.config.chart.type==="bubble"||p.globals.comboCharts&&p.config.series[o]&&p.config.series[o].type==="bubble"?n:null}),C=x.fillPath({seriesNumber:o,dataPointIndex:a,color:O.pointFillColor,patternUnits:"objectBoundingBox",value:p.globals.series[o][f]}),R=S.drawMarker(e,r,O);if(p.config.series[m].data[a]&&p.config.series[m].data[a].fillColor&&(C=p.config.series[m].data[a].fillColor),R.attr({fill:C}),p.config.chart.dropShadow.enabled){var E=p.config.chart.dropShadow;y.dropShadow(R,E,o)}if(!this.initialAnim||p.globals.dataChanged||p.globals.resized)p.globals.animationEnded=!0;else{var P=p.config.chart.animations.speed;v.animateMarker(R,P,p.globals.easing,function(){window.setTimeout(function(){v.animationCompleted(R)},100)})}return R.attr({rel:a,j:a,index:o,"default-marker-size":O.pSize}),y.setSelectionFilter(R,o,a),k.addEvents(R),R.node.classList.add("apexcharts-marker"),R}},{key:"centerTextInBubble",value:function(e){var r=this.w;return{y:e+=parseInt(r.config.dataLabels.style.fontSize,10)/4}}}]),t}(),Zf=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"dataLabelsCorrection",value:function(e,r,n,o,a,f,p){var m=this.w,v=!1,y=new xe(this.ctx).getTextRects(n,p),x=y.width,k=y.height;r<0&&(r=0),r>m.globals.gridHeight+k&&(r=m.globals.gridHeight+k/2),m.globals.dataLabelsRects[o]===void 0&&(m.globals.dataLabelsRects[o]=[]),m.globals.dataLabelsRects[o].push({x:e,y:r,width:x,height:k});var S=m.globals.dataLabelsRects[o].length-2,O=m.globals.lastDrawnDataLabelsIndexes[o]!==void 0?m.globals.lastDrawnDataLabelsIndexes[o][m.globals.lastDrawnDataLabelsIndexes[o].length-1]:0;if(m.globals.dataLabelsRects[o][S]!==void 0){var C=m.globals.dataLabelsRects[o][O];(e>C.x+C.width||r>C.y+C.height||r+k<C.y||e+x<C.x)&&(v=!0)}return(a===0||f)&&(v=!0),{x:e,y:r,textRects:y,drawnextLabel:v}}},{key:"drawDataLabel",value:function(e){var r=this,n=e.type,o=e.pos,a=e.i,f=e.j,p=e.isRangeStart,m=e.strokeWidth,v=m===void 0?2:m,y=this.w,x=new xe(this.ctx),k=y.config.dataLabels,S=0,O=0,C=f,R=null;if(y.globals.collapsedSeriesIndices.indexOf(a)!==-1||!k.enabled||!Array.isArray(o.x))return R;R=x.group({class:"apexcharts-data-labels"});for(var E=0;E<o.x.length;E++)if(S=o.x[E]+k.offsetX,O=o.y[E]+k.offsetY+v,!isNaN(S)){f===1&&E===0&&(C=0),f===1&&E===1&&(C=1);var P=y.globals.series[a][C];n==="rangeArea"&&(P=p?y.globals.seriesRangeStart[a][C]:y.globals.seriesRangeEnd[a][C]);var M="",I=function(U){return y.config.dataLabels.formatter(U,{ctx:r.ctx,seriesIndex:a,dataPointIndex:C,w:y})};y.config.chart.type==="bubble"?(M=I(P=y.globals.seriesZ[a][C]),O=o.y[E],O=new lX(this.ctx).centerTextInBubble(O,a,C).y):P!==void 0&&(M=I(P));var B=y.config.dataLabels.textAnchor;y.globals.isSlopeChart&&(B=C===0?"end":C===y.config.series[a].data.length-1?"start":"middle"),this.plotDataLabelsText({x:S,y:O,text:M,i:a,j:C,parent:R,offsetCorrection:!0,dataLabelsConfig:y.config.dataLabels,textAnchor:B})}return R}},{key:"plotDataLabelsText",value:function(e){var r=this.w,n=new xe(this.ctx),o=e.x,a=e.y,f=e.i,p=e.j,m=e.text,v=e.textAnchor,y=e.fontSize,x=e.parent,k=e.dataLabelsConfig,S=e.color,O=e.alwaysDrawDataLabel,C=e.offsetCorrection,R=e.className,E=null;if(Array.isArray(r.config.dataLabels.enabledOnSeries)&&r.config.dataLabels.enabledOnSeries.indexOf(f)<0)return E;var P={x:o,y:a,drawnextLabel:!0,textRects:null};C&&(P=this.dataLabelsCorrection(o,a,m,f,p,O,parseInt(k.style.fontSize,10))),r.globals.zoomed||(o=P.x,a=P.y),P.textRects&&(o<-20-P.textRects.width||o>r.globals.gridWidth+P.textRects.width+30)&&(m="");var M=r.globals.dataLabels.style.colors[f];((r.config.chart.type==="bar"||r.config.chart.type==="rangeBar")&&r.config.plotOptions.bar.distributed||r.config.dataLabels.distributed)&&(M=r.globals.dataLabels.style.colors[p]),typeof M=="function"&&(M=M({series:r.globals.series,seriesIndex:f,dataPointIndex:p,w:r})),S&&(M=S);var I=k.offsetX,B=k.offsetY;if(r.config.chart.type!=="bar"&&r.config.chart.type!=="rangeBar"||(I=0,B=0),r.globals.isSlopeChart&&(p!==0&&(I=-2*k.offsetX+5),p!==0&&p!==r.config.series[f].data.length-1&&(I=0)),P.drawnextLabel){if(v==="middle"&&o===r.globals.gridWidth&&(v="end"),(E=n.drawText({width:100,height:parseInt(k.style.fontSize,10),x:o+I,y:a+B,foreColor:M,textAnchor:v||k.textAnchor,text:m,fontSize:y||k.style.fontSize,fontFamily:k.style.fontFamily,fontWeight:k.style.fontWeight||"normal"})).attr({class:R||"apexcharts-datalabel",cx:o,cy:a}),k.dropShadow.enabled){var U=k.dropShadow;new Pn(this.ctx).dropShadow(E,U)}x.add(E),r.globals.lastDrawnDataLabelsIndexes[f]===void 0&&(r.globals.lastDrawnDataLabelsIndexes[f]=[]),r.globals.lastDrawnDataLabelsIndexes[f].push(p)}return E}},{key:"addBackgroundToDataLabel",value:function(e,r){var n=this.w,o=n.config.dataLabels.background,a=o.padding,f=o.padding/2,p=r.width,m=r.height,v=new xe(this.ctx).drawRect(r.x-a,r.y-f/2,p+2*a,m+f,o.borderRadius,n.config.chart.background!=="transparent"&&n.config.chart.background?n.config.chart.background:"#fff",o.opacity,o.borderWidth,o.borderColor);return o.dropShadow.enabled&&new Pn(this.ctx).dropShadow(v,o.dropShadow),v}},{key:"dataLabelsBackground",value:function(){var e=this.w;if(e.config.chart.type!=="bubble")for(var r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),n=0;n<r.length;n++){var o=r[n],a=o.getBBox(),f=null;if(a.width&&a.height&&(f=this.addBackgroundToDataLabel(o,a)),f){o.parentNode.insertBefore(f.node,o);var p=e.config.dataLabels.background.backgroundColor||o.getAttribute("fill");e.config.chart.animations.enabled&&!e.globals.resized&&!e.globals.dataChanged?f.animate().attr({fill:p}):f.attr({fill:p}),o.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),n=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),o=0;o<r.length;o++)n&&n.insertBefore(r[o],n.nextSibling)}}]),t}(),cX=`.apexcharts-flip-y {
  transform: scaleY(-1) translateY(-100%);
  transform-origin: top;
  transform-box: fill-box;
}
.apexcharts-flip-x {
  transform: scaleX(-1);
  transform-origin: center;
  transform-box: fill-box;
}
.apexcharts-legend {
  display: flex;
  overflow: auto;
  padding: 0 10px;
}
.apexcharts-legend.apexcharts-legend-group-horizontal {
  flex-direction: column;
}
.apexcharts-legend-group {
  display: flex;
}
.apexcharts-legend-group-vertical {
  flex-direction: column-reverse;
}
.apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {
  flex-wrap: wrap
}
.apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
  flex-direction: column;
  bottom: 0;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
  justify-content: flex-start;
  align-items: flex-start;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {
  justify-content: center;
  align-items: center;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {
  justify-content: flex-end;
  align-items: flex-end;
}
.apexcharts-legend-series {
  cursor: pointer;
  line-height: normal;
  display: flex;
  align-items: center;
}
.apexcharts-legend-text {
  position: relative;
  font-size: 14px;
}
.apexcharts-legend-text *, .apexcharts-legend-marker * {
  pointer-events: none;
}
.apexcharts-legend-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 1px;
}

.apexcharts-legend-series.apexcharts-no-click {
  cursor: auto;
}
.apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {
  display: none !important;
}
.apexcharts-inactive-legend {
  opacity: 0.45;
} `,Ai=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w,this.legendInactiveClass="legend-mouseover-inactive"}return Fe(t,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(e){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(se.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var r=this.getSeriesByName(e),n=parseInt(r.getAttribute("data:realIndex"),10);return{isHidden:r.classList.contains("apexcharts-series-collapsed"),realIndex:n}}},{key:"addCollapsedClassToSeries",value:function(e,r){var n=this.w;function o(a){for(var f=0;f<a.length;f++)a[f].index===r&&e.node.classList.add("apexcharts-series-collapsed")}o(n.globals.collapsedSeries),o(n.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(e){var r=this.isSeriesHidden(e);return this.ctx.legend.legendHelpers.toggleDataSeries(r.realIndex,r.isHidden),r.isHidden}},{key:"showSeries",value:function(e){var r=this.isSeriesHidden(e);r.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(r.realIndex,!0)}},{key:"hideSeries",value:function(e){var r=this.isSeriesHidden(e);r.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(r.realIndex,!1)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],o=this.w,a=se.clone(o.globals.initialSeries);o.globals.previousPaths=[],n?(o.globals.collapsedSeries=[],o.globals.ancillaryCollapsedSeries=[],o.globals.collapsedSeriesIndices=[],o.globals.ancillaryCollapsedSeriesIndices=[]):a=this.emptyCollapsedSeries(a),o.config.series=a,e&&(r&&(o.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(a,o.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var r=this.w,n=0;n<e.length;n++)r.globals.collapsedSeriesIndices.indexOf(n)>-1&&(e[n].data=[]);return e}},{key:"highlightSeries",value:function(e){var r=this.w,n=this.getSeriesByName(e),o=parseInt(n==null?void 0:n.getAttribute("data:realIndex"),10),a=r.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),f=null,p=null,m=null;if(r.globals.axisCharts||r.config.chart.type==="radialBar")if(r.globals.axisCharts){f=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(o,"']")),p=r.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(o,"']"));var v=r.globals.seriesYAxisReverseMap[o];m=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(v,"']"))}else f=r.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(o+1,"']"));else f=r.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(o+1,"'] path"));for(var y=0;y<a.length;y++)a[y].classList.add(this.legendInactiveClass);if(f)r.globals.axisCharts||f.parentNode.classList.remove(this.legendInactiveClass),f.classList.remove(this.legendInactiveClass),p!==null&&p.classList.remove(this.legendInactiveClass),m!==null&&m.classList.remove(this.legendInactiveClass);else for(var x=0;x<a.length;x++)a[x].classList.remove(this.legendInactiveClass)}},{key:"toggleSeriesOnHover",value:function(e,r){var n=this.w;r||(r=e.target);var o=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if(e.type==="mousemove"){var a=parseInt(r.getAttribute("rel"),10)-1;this.highlightSeries(n.globals.seriesNames[a])}else if(e.type==="mouseout")for(var f=0;f<o.length;f++)o[f].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,r){var n=this,o=this.w,a=o.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),f=function(v){for(var y=0;y<a.length;y++)a[y].classList[v](n.legendInactiveClass)};if(e.type==="mousemove"){var p=parseInt(r.getAttribute("rel"),10)-1;f("add");var m=o.config.plotOptions.heatmap.colorScale.ranges;(function(v,y){for(var x=0;x<a.length;x++){var k=Number(a[x].getAttribute("val"));k>=v.from&&(k<v.to||v.to===y&&k===y)&&a[x].classList.remove(n.legendInactiveClass)}})(m[p],m.reduce(function(v,y){return Math.max(v,y.to)},0))}else e.type==="mouseout"&&f("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"asc",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=this.w,o=0;if(n.config.series.length>1){for(var a=n.config.series.map(function(p,m){return p.data&&p.data.length>0&&n.globals.collapsedSeriesIndices.indexOf(m)===-1&&(!n.globals.comboCharts||r.length===0||r.length&&r.indexOf(n.config.series[m].type)>-1)?m:-1}),f=e==="asc"?0:a.length-1;e==="asc"?f<a.length:f>=0;e==="asc"?f++:f--)if(a[f]!==-1){o=a[f];break}}return o}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(e,r){return e.type==="bar"||e.type==="column"?r:-1}).filter(function(e){return e!==-1}):this.w.config.series.map(function(e,r){return r})}},{key:"getPreviousPaths",value:function(){var e=this.w;function r(f,p,m){for(var v=f[p].childNodes,y={type:m,paths:[],realIndex:f[p].getAttribute("data:realIndex")},x=0;x<v.length;x++)if(v[x].hasAttribute("pathTo")){var k=v[x].getAttribute("pathTo");y.paths.push({d:k})}e.globals.previousPaths.push(y)}e.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(f){for(var p,m=(p=f,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(p,"-series .apexcharts-series"))),v=0;v<m.length;v++)r(m,v,f)});var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(n.length>0)for(var o=function(f){for(var p=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(f,"'] rect")),m=[],v=function(x){var k=function(O){return p[x].getAttribute(O)},S={x:parseFloat(k("x")),y:parseFloat(k("y")),width:parseFloat(k("width")),height:parseFloat(k("height"))};m.push({rect:S,color:p[x].getAttribute("color")})},y=0;y<p.length;y++)v(y);e.globals.previousPaths.push(m)},a=0;a<n.length;a++)o(a);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"clearPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var e=this.w,r=e.config.noData,n=new xe(this.ctx),o=e.globals.svgWidth/2,a=e.globals.svgHeight/2,f="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,r.align==="left"?(o=10,f="start"):r.align==="right"&&(o=e.globals.svgWidth-10,f="end"),r.verticalAlign==="top"?a=50:r.verticalAlign==="bottom"&&(a=e.globals.svgHeight-50),o+=r.offsetX,a=a+parseInt(r.style.fontSize,10)+2+r.offsetY,r.text!==void 0&&r.text!==""){var p=n.drawText({x:o,y:a,text:r.text,textAnchor:f,fontSize:r.style.fontSize,fontFamily:r.style.fontFamily,foreColor:r.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(p)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var r=this.w,n=0;n<e.length;n++)if(e[n].length===0)for(var o=0;o<e[r.globals.maxValsInArrayIndex].length;o++)e[n].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,r=this.w,n=this.filteredSeriesX(),o=0;o<n.length-1;o++)if(n[o][0]!==n[o+1][0]){e=!1;break}return r.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){var e=this.w.globals.seriesX.map(function(r){return r.length>0?r:[]});return e}}]),t}(),y5=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new Hr(this.ctx)}return Fe(t,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),r=new Ai(this.ctx);if(this.activeSeriesIndex=r.getActiveConfigSeriesIndex(),e[this.activeSeriesIndex].data!==void 0&&e[this.activeSeriesIndex].data.length>0&&e[this.activeSeriesIndex].data[0]!==null&&e[this.activeSeriesIndex].data[0].x!==void 0&&e[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),r=new Ai(this.ctx);if(this.activeSeriesIndex=r.getActiveConfigSeriesIndex(),e[this.activeSeriesIndex].data!==void 0&&e[this.activeSeriesIndex].data.length>0&&e[this.activeSeriesIndex].data[0]!==void 0&&e[this.activeSeriesIndex].data[0]!==null&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,r){for(var n=this.w.config,o=this.w.globals,a=n.chart.type==="boxPlot"||n.series[r].type==="boxPlot",f=0;f<e[r].data.length;f++)if(e[r].data[f][1]!==void 0&&(Array.isArray(e[r].data[f][1])&&e[r].data[f][1].length===4&&!a?this.twoDSeries.push(se.parseNumber(e[r].data[f][1][3])):e[r].data[f].length>=5?this.twoDSeries.push(se.parseNumber(e[r].data[f][4])):this.twoDSeries.push(se.parseNumber(e[r].data[f][1])),o.dataFormatXNumeric=!0),n.xaxis.type==="datetime"){var p=new Date(e[r].data[f][0]);p=new Date(p).getTime(),this.twoDSeriesX.push(p)}else this.twoDSeriesX.push(e[r].data[f][0]);for(var m=0;m<e[r].data.length;m++)e[r].data[m][2]!==void 0&&(this.threeDSeries.push(e[r].data[m][2]),o.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,r){var n=this.w.config,o=this.w.globals,a=new Tn(this.ctx),f=r;o.collapsedSeriesIndices.indexOf(r)>-1&&(f=this.activeSeriesIndex);for(var p=0;p<e[r].data.length;p++)e[r].data[p].y!==void 0&&(Array.isArray(e[r].data[p].y)?this.twoDSeries.push(se.parseNumber(e[r].data[p].y[e[r].data[p].y.length-1])):this.twoDSeries.push(se.parseNumber(e[r].data[p].y))),e[r].data[p].goals!==void 0&&Array.isArray(e[r].data[p].goals)?(this.seriesGoals[r]===void 0&&(this.seriesGoals[r]=[]),this.seriesGoals[r].push(e[r].data[p].goals)):(this.seriesGoals[r]===void 0&&(this.seriesGoals[r]=[]),this.seriesGoals[r].push(null));for(var m=0;m<e[f].data.length;m++){var v=typeof e[f].data[m].x=="string",y=Array.isArray(e[f].data[m].x),x=!y&&!!a.isValidDate(e[f].data[m].x);if(v||x)if(v||n.xaxis.convertedCatToNumeric){var k=o.isBarHorizontal&&o.isRangeData;n.xaxis.type!=="datetime"||k?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[f].data[m].x),isNaN(e[f].data[m].x)||this.w.config.xaxis.type==="category"||typeof e[f].data[m].x=="string"||(o.isXNumeric=!0)):this.twoDSeriesX.push(a.parseDate(e[f].data[m].x))}else n.xaxis.type==="datetime"?this.twoDSeriesX.push(a.parseDate(e[f].data[m].x.toString())):(o.dataFormatXNumeric=!0,o.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[f].data[m].x)));else y?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[f].data[m].x)):(o.isXNumeric=!0,o.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[f].data[m].x))}if(e[r].data[0]&&e[r].data[0].z!==void 0){for(var S=0;S<e[r].data.length;S++)this.threeDSeries.push(e[r].data[S].z);o.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,r){var n=this.w.globals,o={};return this.isFormat2DArray()?o=this.handleRangeDataFormat("array",e,r):this.isFormatXY()&&(o=this.handleRangeDataFormat("xy",e,r)),n.seriesRangeStart[r]=o.start===void 0?[]:o.start,n.seriesRangeEnd[r]=o.end===void 0?[]:o.end,n.seriesRange[r]=o.rangeUniques,n.seriesRange.forEach(function(a,f){a&&a.forEach(function(p,m){p.y.forEach(function(v,y){for(var x=0;x<p.y.length;x++)if(y!==x){var k=v.y1,S=v.y2,O=p.y[x].y1;k<=p.y[x].y2&&O<=S&&(p.overlaps.indexOf(v.rangeName)<0&&p.overlaps.push(v.rangeName),p.overlaps.indexOf(p.y[x].rangeName)<0&&p.overlaps.push(p.y[x].rangeName))}})})}),o}},{key:"handleCandleStickBoxData",value:function(e,r){var n=this.w.globals,o={};return this.isFormat2DArray()?o=this.handleCandleStickBoxDataFormat("array",e,r):this.isFormatXY()&&(o=this.handleCandleStickBoxDataFormat("xy",e,r)),n.seriesCandleO[r]=o.o,n.seriesCandleH[r]=o.h,n.seriesCandleM[r]=o.m,n.seriesCandleL[r]=o.l,n.seriesCandleC[r]=o.c,o}},{key:"handleRangeDataFormat",value:function(e,r,n){var o=[],a=[],f=r[n].data.filter(function(y,x,k){return x===k.findIndex(function(S){return S.x===y.x})}).map(function(y,x){return{x:y.x,overlaps:[],y:[]}});if(e==="array")for(var p=0;p<r[n].data.length;p++)Array.isArray(r[n].data[p])?(o.push(r[n].data[p][1][0]),a.push(r[n].data[p][1][1])):(o.push(r[n].data[p]),a.push(r[n].data[p]));else if(e==="xy")for(var m=function(y){var x=Array.isArray(r[n].data[y].y),k=se.randomId(),S=r[n].data[y].x,O={y1:x?r[n].data[y].y[0]:r[n].data[y].y,y2:x?r[n].data[y].y[1]:r[n].data[y].y,rangeName:k};r[n].data[y].rangeName=k;var C=f.findIndex(function(R){return R.x===S});f[C].y.push(O),o.push(O.y1),a.push(O.y2)},v=0;v<r[n].data.length;v++)m(v);return{start:o,end:a,rangeUniques:f}}},{key:"handleCandleStickBoxDataFormat",value:function(e,r,n){var o=this.w,a=o.config.chart.type==="boxPlot"||o.config.series[n].type==="boxPlot",f=[],p=[],m=[],v=[],y=[];if(e==="array")if(a&&r[n].data[0].length===6||!a&&r[n].data[0].length===5)for(var x=0;x<r[n].data.length;x++)f.push(r[n].data[x][1]),p.push(r[n].data[x][2]),a?(m.push(r[n].data[x][3]),v.push(r[n].data[x][4]),y.push(r[n].data[x][5])):(v.push(r[n].data[x][3]),y.push(r[n].data[x][4]));else for(var k=0;k<r[n].data.length;k++)Array.isArray(r[n].data[k][1])&&(f.push(r[n].data[k][1][0]),p.push(r[n].data[k][1][1]),a?(m.push(r[n].data[k][1][2]),v.push(r[n].data[k][1][3]),y.push(r[n].data[k][1][4])):(v.push(r[n].data[k][1][2]),y.push(r[n].data[k][1][3])));else if(e==="xy")for(var S=0;S<r[n].data.length;S++)Array.isArray(r[n].data[S].y)&&(f.push(r[n].data[S].y[0]),p.push(r[n].data[S].y[1]),a?(m.push(r[n].data[S].y[2]),v.push(r[n].data[S].y[3]),y.push(r[n].data[S].y[4])):(v.push(r[n].data[S].y[2]),y.push(r[n].data[S].y[3])));return{o:f,h:p,m,l:v,c:y}}},{key:"parseDataAxisCharts",value:function(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.ctx,o=this.w.config,a=this.w.globals,f=new Tn(n),p=o.labels.length>0?o.labels.slice():o.xaxis.categories.slice();a.isRangeBar=o.chart.type==="rangeBar"&&a.isBarHorizontal,a.hasXaxisGroups=o.xaxis.type==="category"&&o.xaxis.group.groups.length>0,a.hasXaxisGroups&&(a.groups=o.xaxis.group.groups),e.forEach(function(S,O){S.name!==void 0?a.seriesNames.push(S.name):a.seriesNames.push("series-"+parseInt(O+1,10))}),this.coreUtils.setSeriesYAxisMappings();var m=[],v=ln(new Set(o.series.map(function(S){return S.group})));o.series.forEach(function(S,O){var C=v.indexOf(S.group);m[C]||(m[C]=[]),m[C].push(a.seriesNames[O])}),a.seriesGroups=m;for(var y=function(){for(var S=0;S<p.length;S++)if(typeof p[S]=="string"){if(!f.isValidDate(p[S]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");r.twoDSeriesX.push(f.parseDate(p[S]))}else r.twoDSeriesX.push(p[S])},x=0;x<e.length;x++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],e[x].data===void 0)return void console.error("It is a possibility that you may have not included 'data' property in series.");if(o.chart.type!=="rangeBar"&&o.chart.type!=="rangeArea"&&e[x].type!=="rangeBar"&&e[x].type!=="rangeArea"||(a.isRangeData=!0,this.handleRangeData(e,x)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,x):this.isFormatXY()&&this.handleFormatXY(e,x),o.chart.type!=="candlestick"&&e[x].type!=="candlestick"&&o.chart.type!=="boxPlot"&&e[x].type!=="boxPlot"||this.handleCandleStickBoxData(e,x),a.series.push(this.twoDSeries),a.labels.push(this.twoDSeriesX),a.seriesX.push(this.twoDSeriesX),a.seriesGoals=this.seriesGoals,x!==this.activeSeriesIndex||this.fallbackToCategory||(a.isXNumeric=!0);else{o.xaxis.type==="datetime"?(a.isXNumeric=!0,y(),a.seriesX.push(this.twoDSeriesX)):o.xaxis.type==="numeric"&&(a.isXNumeric=!0,p.length>0&&(this.twoDSeriesX=p,a.seriesX.push(this.twoDSeriesX))),a.labels.push(this.twoDSeriesX);var k=e[x].data.map(function(S){return se.parseNumber(S)});a.series.push(k)}a.seriesZ.push(this.threeDSeries),e[x].color!==void 0?a.seriesColors.push(e[x].color):a.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var r=this.w.globals,n=this.w.config,o=Array.isArray(e)&&e.every(function(y){return typeof y=="number"})&&n.labels.length>0,a=Array.isArray(e)&&e.some(function(y){return y&&to(y)==="object"&&y.data||y&&to(y)==="object"&&y.parsing});if(o&&a&&console.warn("ApexCharts: Both old format (numeric series + labels) and new format (series objects with data/parsing) detected. Using old format for backward compatibility."),o){r.series=e.slice(),r.seriesNames=n.labels.slice();for(var f=0;f<r.series.length;f++)r.seriesNames[f]===void 0&&r.seriesNames.push("series-"+(f+1));return this.w}if(Array.isArray(e)&&e.every(function(y){return typeof y=="number"})){r.series=e.slice(),r.seriesNames=[];for(var p=0;p<r.series.length;p++)r.seriesNames.push(n.labels[p]||"series-".concat(p+1));return this.w}var m=this.extractPieDataFromSeries(e);r.series=m.values,r.seriesNames=m.labels,n.chart.type==="radialBar"&&(r.series=r.series.map(function(y){var x=se.parseNumber(y);return x>100&&console.warn("ApexCharts: RadialBar value ".concat(x," > 100, consider using percentage values (0-100)")),x}));for(var v=0;v<r.series.length;v++)r.seriesNames[v]===void 0&&r.seriesNames.push("series-"+(v+1));return this.w}},{key:"resetParsingFlags",value:function(){var e=this.w;e.globals.dataWasParsed=!1,e.globals.originalSeries=null,e.config.series&&e.config.series.forEach(function(r){r.__apexParsed&&delete r.__apexParsed})}},{key:"extractPieDataFromSeries",value:function(e){var r=[],n=[];if(!Array.isArray(e))return console.warn("ApexCharts: Expected array for series data"),{values:[],labels:[]};if(e.length===0)return console.warn("ApexCharts: Empty series array"),{values:[],labels:[]};var o=e[0];return to(o)==="object"&&o!==null&&o.data?(this.extractPieDataFromSeriesObjects(e,r,n),{values:r,labels:n}):(console.warn("ApexCharts: Unsupported series format for pie/donut/radialBar. Expected series objects with data property."),{values:[],labels:[]})}},{key:"extractPieDataFromSeriesObjects",value:function(e,r,n){e.forEach(function(o,a){o.data&&Array.isArray(o.data)?o.data.forEach(function(f){to(f)==="object"&&f!==null?f.x!==void 0&&f.y!==void 0?(n.push(String(f.x)),r.push(se.parseNumber(f.y))):console.warn("ApexCharts: Invalid data point format for pie chart. Expected {x, y} format:",f):console.warn("ApexCharts: Expected object data point, got:",to(f))}):console.warn("ApexCharts: Series ".concat(a," has no valid data array"))})}},{key:"handleExternalLabelsData",value:function(e){var r=this.w.config,n=this.w.globals;r.xaxis.categories.length>0?n.labels=r.xaxis.categories:r.labels.length>0?n.labels=r.labels.slice():this.fallbackToCategory?(n.labels=n.labels[0],n.seriesRange.length&&(n.seriesRange.map(function(o){o.forEach(function(a){n.labels.indexOf(a.x)<0&&a.x&&n.labels.push(a.x)})}),n.labels=Array.from(new Set(n.labels.map(JSON.stringify)),JSON.parse)),r.xaxis.convertedCatToNumeric&&(new yv(r).convertCatToNumericXaxis(r,this.ctx,n.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var r=this.w.globals,n=this.w.config,o=[];if(r.axisCharts){if(r.series.length>0)if(this.isFormatXY())for(var a=n.series.map(function(x,k){return x.data.filter(function(S,O,C){return C.findIndex(function(R){return R.x===S.x})===O})}),f=a.reduce(function(x,k,S,O){return O[x].length>k.length?x:S},0),p=0;p<a[f].length;p++)o.push(p+1);else for(var m=0;m<r.series[r.maxValsInArrayIndex].length;m++)o.push(m+1);r.seriesX=[];for(var v=0;v<e.length;v++)r.seriesX.push(o);this.w.globals.isBarHorizontal||(r.isXNumeric=!0)}if(o.length===0){o=r.axisCharts?[]:r.series.map(function(x,k){return k+1});for(var y=0;y<e.length;y++)r.seriesX.push(o)}r.labels=o,n.xaxis.convertedCatToNumeric&&(r.categoryLabels=o.map(function(x){return n.xaxis.labels.formatter(x)})),r.noLabelsProvided=!0}},{key:"parseRawDataIfNeeded",value:function(e){var r=this,n=this.w.config,o=this.w.globals,a=n.parsing;if(o.dataWasParsed||!a&&!e.some(function(p){return p.parsing}))return e;var f=e.map(function(p,m){var v,y,x;if(!p.data||!Array.isArray(p.data)||p.data.length===0)return p;var k={x:((v=p.parsing)===null||v===void 0?void 0:v.x)||(a==null?void 0:a.x),y:((y=p.parsing)===null||y===void 0?void 0:y.y)||(a==null?void 0:a.y),z:((x=p.parsing)===null||x===void 0?void 0:x.z)||(a==null?void 0:a.z)};if(!k.x&&!k.y)return p;var S=p.data[0];if(to(S)==="object"&&S!==null&&(S.hasOwnProperty("x")||S.hasOwnProperty("y"))||Array.isArray(S))return p;if(!k.x||!k.y||Array.isArray(k.y)&&k.y.length===0)return console.warn("ApexCharts: Series ".concat(m," has parsing config but missing x or y field specification")),p;var O=p.data.map(function(C,R){if(to(C)!=="object"||C===null)return console.warn("ApexCharts: Series ".concat(m,", data point ").concat(R," is not an object, skipping parsing")),C;var E,P=r.getNestedValue(C,k.x),M=void 0;if(Array.isArray(k.y)){var I=k.y.map(function(H){return r.getNestedValue(C,H)});E=r.w.config.chart.type==="bubble"&&I.length===2?I[0]:I}else E=r.getNestedValue(C,k.y);k.z&&(M=r.getNestedValue(C,k.z)),P===void 0&&console.warn("ApexCharts: Series ".concat(m,", data point ").concat(R," missing field '").concat(k.x,"'")),E===void 0&&console.warn("ApexCharts: Series ".concat(m,", data point ").concat(R," missing field '").concat(k.y,"'"));var B={x:P,y:E};if(r.w.config.chart.type==="bubble"&&Array.isArray(k.y)&&k.y.length===2){var U=r.getNestedValue(C,k.y[1]);U!==void 0&&(B.z=U)}return M!==void 0&&(B.z=M),B});return Oe(Oe({},p),{},{data:O,__apexParsed:!0})});return o.dataWasParsed=!0,o.originalSeries||(o.originalSeries=se.clone(e)),f}},{key:"getNestedValue",value:function(e,r){if(e&&to(e)==="object"&&r){if(r.indexOf(".")===-1)return e[r];for(var n=r.split("."),o=e,a=0;a<n.length;a++){if(o==null||to(o)!=="object")return;o=o[n[a]]}return o}}},{key:"parseData",value:function(e){var r=this.w,n=r.config,o=r.globals;if(e=this.parseRawDataIfNeeded(e),n.series=e,o.initialSeries=se.clone(e),this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),o.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),n.chart.stacked){var a=new Ai(this.ctx);o.series=a.setNullSeriesToZeroValues(o.series)}this.coreUtils.getSeriesTotals(),o.axisCharts&&(o.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),o.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),o.dataFormatXNumeric||o.isXNumeric&&(n.xaxis.type!=="numeric"||n.labels.length!==0||n.xaxis.categories.length!==0)||this.handleExternalLabelsData(e);for(var f=this.coreUtils.getCategoryLabels(o.labels),p=0;p<f.length;p++)if(Array.isArray(f[p])){o.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this.w,r=[];e.globals.seriesYAxisMap.forEach(function(n,o){var a=0;n.forEach(function(f){e.globals.collapsedSeriesIndices.indexOf(f)!==-1&&a++}),a>0&&a==n.length&&r.push(o)}),e.globals.ignoreYAxisIndexes=r.map(function(n){return n})}}]),t}(),Um=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"svgStringToNode",value:function(e){return new DOMParser().parseFromString(e,"image/svg+xml").documentElement}},{key:"scaleSvgNode",value:function(e,r){var n=parseFloat(e.getAttributeNS(null,"width")),o=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",n*r),e.setAttributeNS(null,"height",o*r),e.setAttributeNS(null,"viewBox","0 0 "+n+" "+o)}},{key:"getSvgString",value:function(e){var r=this;return new Promise(function(n){var o=r.w,a=e||o.config.chart.toolbar.export.scale||o.config.chart.toolbar.export.width/o.globals.svgWidth;a||(a=1);var f=o.globals.svgWidth*a,p=o.globals.svgHeight*a,m=o.globals.dom.elWrap.cloneNode(!0);m.style.width=f+"px",m.style.height=p+"px";var v=new XMLSerializer().serializeToString(m),y=`
        .apexcharts-tooltip, .apexcharts-toolbar, .apexcharts-xaxistooltip, .apexcharts-yaxistooltip, .apexcharts-xcrosshairs, .apexcharts-ycrosshairs, .apexcharts-zoom-rect, .apexcharts-selection-rect {
          display: none;
        }
      `;o.config.legend.show&&o.globals.dom.elLegendWrap&&o.globals.dom.elLegendWrap.children.length>0&&(y+=cX);var x=`
        <svg xmlns="http://www.w3.org/2000/svg"
          version="1.1"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          class="apexcharts-svg"
          xmlns:data="ApexChartsNS"
          transform="translate(0, 0)"
          width="`.concat(o.globals.svgWidth,'px" height="').concat(o.globals.svgHeight,`px">
          <foreignObject width="100%" height="100%">
            <div xmlns="http://www.w3.org/1999/xhtml" style="width:`).concat(f,"px; height:").concat(p,`px;">
            <style type="text/css">
              `).concat(y,`
            </style>
              `).concat(v,`
            </div>
          </foreignObject>
        </svg>
      `),k=r.svgStringToNode(x);a!==1&&r.scaleSvgNode(k,a),r.convertImagesToBase64(k).then(function(){x=new XMLSerializer().serializeToString(k),n(x.replace(/&nbsp;/g,"&#160;"))})})}},{key:"convertImagesToBase64",value:function(e){var r=this,n=e.getElementsByTagName("image"),o=Array.from(n).map(function(a){var f=a.getAttributeNS("http://www.w3.org/1999/xlink","href");return f&&!f.startsWith("data:")?r.getBase64FromUrl(f).then(function(p){a.setAttributeNS("http://www.w3.org/1999/xlink","href",p)}).catch(function(p){console.error("Error converting image to base64:",p)}):Promise.resolve()});return Promise.all(o)}},{key:"getBase64FromUrl",value:function(e){return new Promise(function(r,n){var o=new Image;o.crossOrigin="Anonymous",o.onload=function(){var a=document.createElement("canvas");a.width=o.width,a.height=o.height,a.getContext("2d").drawImage(o,0,0),r(a.toDataURL())},o.onerror=n,o.src=e})}},{key:"svgUrl",value:function(){var e=this;return new Promise(function(r){e.getSvgString().then(function(n){var o=new Blob([n],{type:"image/svg+xml;charset=utf-8"});r(URL.createObjectURL(o))})})}},{key:"dataURI",value:function(e){var r=this;return new Promise(function(n){var o=r.w,a=e?e.scale||e.width/o.globals.svgWidth:1,f=document.createElement("canvas");f.width=o.globals.svgWidth*a,f.height=parseInt(o.globals.dom.elWrap.style.height,10)*a;var p=o.config.chart.background!=="transparent"&&o.config.chart.background?o.config.chart.background:"#fff",m=f.getContext("2d");m.fillStyle=p,m.fillRect(0,0,f.width*a,f.height*a),r.getSvgString(a).then(function(v){var y="data:image/svg+xml,"+encodeURIComponent(v),x=new Image;x.crossOrigin="anonymous",x.onload=function(){if(m.drawImage(x,0,0),f.msToBlob){var k=f.msToBlob();n({blob:k})}else{var S=f.toDataURL("image/png");n({imgURI:S})}},x.src=y})})}},{key:"exportToSVG",value:function(){var e=this;this.svgUrl().then(function(r){e.triggerDownload(r,e.w.config.chart.toolbar.export.svg.filename,".svg")})}},{key:"exportToPng",value:function(){var e=this,r=this.w.config.chart.toolbar.export.scale,n=this.w.config.chart.toolbar.export.width,o=r?{scale:r}:n?{width:n}:void 0;this.dataURI(o).then(function(a){var f=a.imgURI,p=a.blob;p?navigator.msSaveOrOpenBlob(p,e.w.globals.chartID+".png"):e.triggerDownload(f,e.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(e){var r=this,n=e.series,o=e.fileName,a=e.columnDelimiter,f=a===void 0?",":a,p=e.lineDelimiter,m=p===void 0?`
`:p,v=this.w;n||(n=v.config.series);var y=[],x=[],k="",S=v.globals.series.map(function(B,U){return v.globals.collapsedSeriesIndices.indexOf(U)===-1?B:[]}),O=function(B){return typeof v.config.chart.toolbar.export.csv.categoryFormatter=="function"?v.config.chart.toolbar.export.csv.categoryFormatter(B):v.config.xaxis.type==="datetime"&&String(B).length>=10?new Date(B).toDateString():se.isNumber(B)?B:B.split(f).join("")},C=function(B){return typeof v.config.chart.toolbar.export.csv.valueFormatter=="function"?v.config.chart.toolbar.export.csv.valueFormatter(B):B},R=Math.max.apply(Math,ln(n.map(function(B){return B.data?B.data.length:0}))),E=new y5(this.ctx),P=new Zl(this.ctx),M=function(B){var U="";if(v.globals.axisCharts){if(v.config.xaxis.type==="category"||v.config.xaxis.convertedCatToNumeric)if(v.globals.isBarHorizontal){var H=v.globals.yLabelFormatters[0],V=new Ai(r.ctx).getActiveConfigSeriesIndex();U=H(v.globals.labels[B],{seriesIndex:V,dataPointIndex:B,w:v})}else U=P.getLabel(v.globals.labels,v.globals.timescaleLabels,0,B).text;v.config.xaxis.type==="datetime"&&(v.config.xaxis.categories.length?U=v.config.xaxis.categories[B]:v.config.labels.length&&(U=v.config.labels[B]))}else U=v.config.labels[B];return U===null?"nullvalue":(Array.isArray(U)&&(U=U.join(" ")),se.isNumber(U)?U:U.split(f).join(""))},I=function(B,U){if(y.length&&U===0&&x.push(y.join(f)),B.data){B.data=B.data.length&&B.data||ln(Array(R)).map(function(){return""});for(var H=0;H<B.data.length;H++){y=[];var V=M(H);if(V!=="nullvalue"){if(V||(E.isFormatXY()?V=n[U].data[H].x:E.isFormat2DArray()&&(V=n[U].data[H]?n[U].data[H][0]:"")),U===0){y.push(O(V));for(var W=0;W<v.globals.series.length;W++){var G,Z=E.isFormatXY()?(G=n[W].data[H])===null||G===void 0?void 0:G.y:S[W][H];y.push(C(Z))}}(v.config.chart.type==="candlestick"||B.type&&B.type==="candlestick")&&(y.pop(),y.push(v.globals.seriesCandleO[U][H]),y.push(v.globals.seriesCandleH[U][H]),y.push(v.globals.seriesCandleL[U][H]),y.push(v.globals.seriesCandleC[U][H])),(v.config.chart.type==="boxPlot"||B.type&&B.type==="boxPlot")&&(y.pop(),y.push(v.globals.seriesCandleO[U][H]),y.push(v.globals.seriesCandleH[U][H]),y.push(v.globals.seriesCandleM[U][H]),y.push(v.globals.seriesCandleL[U][H]),y.push(v.globals.seriesCandleC[U][H])),v.config.chart.type==="rangeBar"&&(y.pop(),y.push(v.globals.seriesRangeStart[U][H]),y.push(v.globals.seriesRangeEnd[U][H])),y.length&&x.push(y.join(f))}}}};y.push(v.config.chart.toolbar.export.csv.headerCategory),v.config.chart.type==="boxPlot"?(y.push("minimum"),y.push("q1"),y.push("median"),y.push("q3"),y.push("maximum")):v.config.chart.type==="candlestick"?(y.push("open"),y.push("high"),y.push("low"),y.push("close")):v.config.chart.type==="rangeBar"?(y.push("minimum"),y.push("maximum")):n.map(function(B,U){var H=(B.name?B.name:"series-".concat(U))+"";v.globals.axisCharts&&y.push(H.split(f).join("")?H.split(f).join(""):"series-".concat(U))}),v.globals.axisCharts||(y.push(v.config.chart.toolbar.export.csv.headerValue),x.push(y.join(f))),v.globals.allSeriesHasEqualX||!v.globals.axisCharts||v.config.xaxis.categories.length||v.config.labels.length?n.map(function(B,U){v.globals.axisCharts?I(B,U):((y=[]).push(O(v.globals.labels[U])),y.push(C(S[U])),x.push(y.join(f)))}):function(){var B=new Set,U={};n.forEach(function(H,V){H==null||H.data.forEach(function(W){var G,Z;if(E.isFormatXY())G=W.x,Z=W.y;else{if(!E.isFormat2DArray())return;G=W[0],Z=W[1]}U[G]||(U[G]=Array(n.length).fill("")),U[G][V]=C(Z),B.add(G)})}),y.length&&x.push(y.join(f)),Array.from(B).sort().forEach(function(H){x.push([O(H),U[H].join(f)])})}(),k+=x.join(m),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+k),o||v.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,r,n){var o=document.createElement("a");o.href=e,o.download=(r||this.w.globals.chartID)+n,document.body.appendChild(o),o.click(),document.body.removeChild(o)}}]),t}(),wv=function(){function t(e,r){Be(this,t),this.ctx=e,this.elgrid=r,this.w=e.w;var n=this.w;this.axesUtils=new Zl(e),this.xaxisLabels=n.globals.labels.slice(),n.globals.timescaleLabels.length>0&&!n.globals.isBarHorizontal&&(this.xaxisLabels=n.globals.timescaleLabels.slice()),n.config.xaxis.overwriteCategories&&(this.xaxisLabels=n.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],n.config.xaxis.position==="top"?this.offY=0:this.offY=n.globals.gridHeight,this.offY=this.offY+n.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=n.config.chart.type==="bar"&&n.config.plotOptions.bar.horizontal,this.xaxisFontSize=n.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=n.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=n.config.xaxis.labels.style.colors,this.xaxisBorderWidth=n.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=n.config.yaxis[0].axisBorder.width.toString()),String(this.xaxisBorderWidth).indexOf("%")>-1?this.xaxisBorderWidth=n.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=n.config.xaxis.axisBorder.height,this.yaxis=n.config.yaxis[0]}return Fe(t,[{key:"drawXaxis",value:function(){var e=this.w,r=new xe(this.ctx),n=r.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),o=r.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});n.add(o);for(var a=[],f=0;f<this.xaxisLabels.length;f++)a.push(this.xaxisLabels[f]);if(this.drawXAxisLabelAndGroup(!0,r,o,a,e.globals.isXNumeric,function(O,C){return C}),e.globals.hasXaxisGroups){var p=e.globals.groups;a=[];for(var m=0;m<p.length;m++)a.push(p[m].title);var v={};e.config.xaxis.group.style&&(v.xaxisFontSize=e.config.xaxis.group.style.fontSize,v.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,v.xaxisForeColors=e.config.xaxis.group.style.colors,v.fontWeight=e.config.xaxis.group.style.fontWeight,v.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,r,o,a,!1,function(O,C){return p[O].cols*C},v)}if(e.config.xaxis.title.text!==void 0){var y=r.group({class:"apexcharts-xaxis-title"}),x=r.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+(e.config.xaxis.position==="bottom"?e.globals.xAxisLabelsHeight:-e.globals.xAxisLabelsHeight-10)+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});y.add(x),n.add(y)}if(e.config.xaxis.axisBorder.show){var k=e.globals.barPadForNumericAxis,S=r.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-k,this.offY,this.xaxisBorderWidth+k,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(S):n.add(S)}return n}},{key:"drawXAxisLabelAndGroup",value:function(e,r,n,o,a,f){var p,m=this,v=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},y=[],x=[],k=this.w,S=v.xaxisFontSize||this.xaxisFontSize,O=v.xaxisFontFamily||this.xaxisFontFamily,C=v.xaxisForeColors||this.xaxisForeColors,R=v.fontWeight||k.config.xaxis.labels.style.fontWeight,E=v.cssClass||k.config.xaxis.labels.style.cssClass,P=k.globals.padHorizontal,M=o.length,I=k.config.xaxis.type==="category"?k.globals.dataPoints:M;if(I===0&&M>I&&(I=M),a){var B=Math.max(Number(k.config.xaxis.tickAmount)||1,I>1?I-1:I);p=k.globals.gridWidth/Math.min(B,M-1),P=P+f(0,p)/2+k.config.xaxis.labels.offsetX}else p=k.globals.gridWidth/I,P=P+f(0,p)+k.config.xaxis.labels.offsetX;for(var U=function(V){var W=P-f(V,p)/2+k.config.xaxis.labels.offsetX;V===0&&M===1&&p/2===P&&I===1&&(W=k.globals.gridWidth/2);var G=m.axesUtils.getLabel(o,k.globals.timescaleLabels,W,V,y,S,e),Z=28;if(k.globals.rotateXLabels&&e&&(Z=22),k.config.xaxis.title.text&&k.config.xaxis.position==="top"&&(Z+=parseFloat(k.config.xaxis.title.style.fontSize)+2),e||(Z=Z+parseFloat(S)+(k.globals.xAxisLabelsHeight-k.globals.xAxisGroupLabelsHeight)+(k.globals.rotateXLabels?10:0)),G=k.config.xaxis.tickAmount!==void 0&&k.config.xaxis.tickAmount!=="dataPoints"&&k.config.xaxis.type!=="datetime"?m.axesUtils.checkLabelBasedOnTickamount(V,G,M):m.axesUtils.checkForOverflowingLabels(V,G,M,y,x),k.config.xaxis.labels.show){var K=r.drawText({x:G.x,y:m.offY+k.config.xaxis.labels.offsetY+Z-(k.config.xaxis.position==="top"?k.globals.xAxisHeight+k.config.xaxis.axisTicks.height-2:0),text:G.text,textAnchor:"middle",fontWeight:G.isBold?600:R,fontSize:S,fontFamily:O,foreColor:Array.isArray(C)?e&&k.config.xaxis.convertedCatToNumeric?C[k.globals.minX+V-1]:C[V]:C,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+E});if(n.add(K),K.on("click",function(oe){if(typeof k.config.chart.events.xAxisLabelClick=="function"){var ie=Object.assign({},k,{labelIndex:V});k.config.chart.events.xAxisLabelClick(oe,m.ctx,ie)}}),e){var Q=document.createElementNS(k.globals.SVGNS,"title");Q.textContent=Array.isArray(G.text)?G.text.join(" "):G.text,K.node.appendChild(Q),G.text!==""&&(y.push(G.text),x.push(G))}}V<M-1&&(P+=f(V+1,p))},H=0;H<=M-1;H++)U(H)}},{key:"drawXaxisInversed",value:function(e){var r,n,o=this,a=this.w,f=new xe(this.ctx),p=a.config.yaxis[0].opposite?a.globals.translateYAxisX[e]:0,m=f.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),v=f.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+p+", 0)"});m.add(v);var y=[];if(a.config.yaxis[e].show)for(var x=0;x<this.xaxisLabels.length;x++)y.push(this.xaxisLabels[x]);r=a.globals.gridHeight/y.length,n=-r/2.2;var k=a.globals.yLabelFormatters[0],S=a.config.yaxis[0].labels;if(S.show)for(var O=function(B){var U=y[B]===void 0?"":y[B];U=k(U,{seriesIndex:e,dataPointIndex:B,w:a});var H=o.axesUtils.getYAxisForeColor(S.style.colors,e),V=0;Array.isArray(U)&&(V=U.length/2*parseInt(S.style.fontSize,10));var W=S.offsetX-15,G="end";o.yaxis.opposite&&(G="start"),a.config.yaxis[0].labels.align==="left"?(W=S.offsetX,G="start"):a.config.yaxis[0].labels.align==="center"?(W=S.offsetX,G="middle"):a.config.yaxis[0].labels.align==="right"&&(G="end");var Z=f.drawText({x:W,y:n+r+S.offsetY-V,text:U,textAnchor:G,foreColor:Array.isArray(H)?H[B]:H,fontSize:S.style.fontSize,fontFamily:S.style.fontFamily,fontWeight:S.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+S.style.cssClass,maxWidth:S.maxWidth});v.add(Z),Z.on("click",function(oe){if(typeof a.config.chart.events.xAxisLabelClick=="function"){var ie=Object.assign({},a,{labelIndex:B});a.config.chart.events.xAxisLabelClick(oe,o.ctx,ie)}});var K=document.createElementNS(a.globals.SVGNS,"title");if(K.textContent=Array.isArray(U)?U.join(" "):U,Z.node.appendChild(K),a.config.yaxis[e].labels.rotate!==0){var Q=f.rotateAroundCenter(Z.node);Z.node.setAttribute("transform","rotate(".concat(a.config.yaxis[e].labels.rotate," 0 ").concat(Q.y,")"))}n+=r},C=0;C<=y.length-1;C++)O(C);if(a.config.yaxis[0].title.text!==void 0){var R=f.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+p+", 0)"}),E=f.drawText({x:a.config.yaxis[0].title.offsetX,y:a.globals.gridHeight/2+a.config.yaxis[0].title.offsetY,text:a.config.yaxis[0].title.text,textAnchor:"middle",foreColor:a.config.yaxis[0].title.style.color,fontSize:a.config.yaxis[0].title.style.fontSize,fontWeight:a.config.yaxis[0].title.style.fontWeight,fontFamily:a.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+a.config.yaxis[0].title.style.cssClass});R.add(E),m.add(R)}var P=0;this.isCategoryBarHorizontal&&a.config.yaxis[0].opposite&&(P=a.globals.gridWidth);var M=a.config.xaxis.axisBorder;if(M.show){var I=f.drawLine(a.globals.padHorizontal+M.offsetX+P,1+M.offsetY,a.globals.padHorizontal+M.offsetX+P,a.globals.gridHeight+M.offsetY,M.color,0);this.elgrid&&this.elgrid.elGridBorders&&a.config.grid.show?this.elgrid.elGridBorders.add(I):m.add(I)}return a.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(P,y.length,a.config.yaxis[0].axisBorder,a.config.yaxis[0].axisTicks,0,r,m),m}},{key:"drawXaxisTicks",value:function(e,r,n){var o=this.w,a=e;if(!(e<0||e-2>o.globals.gridWidth)){var f=this.offY+o.config.xaxis.axisTicks.offsetY;if(r=r+f+o.config.xaxis.axisTicks.height,o.config.xaxis.position==="top"&&(r=f-o.config.xaxis.axisTicks.height),o.config.xaxis.axisTicks.show){var p=new xe(this.ctx).drawLine(e+o.config.xaxis.axisTicks.offsetX,f+o.config.xaxis.offsetY,a+o.config.xaxis.axisTicks.offsetX,r+o.config.xaxis.offsetY,o.config.xaxis.axisTicks.color);n.add(p),p.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,r=[],n=this.xaxisLabels.length,o=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var a=0;a<n;a++)o=this.xaxisLabels[a].position,r.push(o);else for(var f=n,p=0;p<f;p++){var m=f;e.globals.isXNumeric&&e.config.chart.type!=="bar"&&(m-=1),o+=e.globals.gridWidth/m,r.push(o)}return r}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,r=new xe(this.ctx),n=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),f=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var p=0;p<o.length;p++){var m=r.rotateAroundCenter(o[p]);m.y=m.y-1,m.x=m.x+1,o[p].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(m.x," ").concat(m.y,")")),o[p].setAttribute("text-anchor","end"),n.setAttribute("transform","translate(0, ".concat(-10,")"));var v=o[p].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(v,function(S){r.placeTextWithEllipsis(S,S.textContent,e.globals.xAxisLabelsHeight-(e.config.legend.position==="bottom"?20:10))})}else(function(){for(var S=e.globals.gridWidth/(e.globals.labels.length+1),O=0;O<o.length;O++){var C=o[O].childNodes;e.config.xaxis.labels.trim&&e.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(C,function(R){r.placeTextWithEllipsis(R,R.textContent,S)})}})();if(a.length>0){var y=a[a.length-1].getBBox(),x=a[0].getBBox();y.x<-20&&a[a.length-1].parentNode.removeChild(a[a.length-1]),x.x+x.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&a[0].parentNode.removeChild(a[0]);for(var k=0;k<f.length;k++)r.placeTextWithEllipsis(f[k],f[k].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),t}(),uX=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w;var r=this.w;this.xaxisLabels=r.globals.labels.slice(),this.axesUtils=new Zl(e),this.isRangeBar=r.globals.seriesRange.length&&r.globals.isBarHorizontal,r.globals.timescaleLabels.length>0&&(this.xaxisLabels=r.globals.timescaleLabels.slice())}return Fe(t,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=this.w,n=new xe(this.ctx);e||(e=n.group({class:"apexcharts-grid"}));var o=n.drawLine(r.globals.padHorizontal,1,r.globals.padHorizontal,r.globals.gridHeight,"transparent"),a=n.drawLine(r.globals.padHorizontal,r.globals.gridHeight,r.globals.gridWidth,r.globals.gridHeight,"transparent");return e.add(a),e.add(o),e}},{key:"drawGrid",value:function(){if(this.w.globals.axisCharts){var e=this.renderGrid();return this.drawGridArea(e.el),e}return null}},{key:"createGridMask",value:function(){var e=this.w,r=e.globals,n=new xe(this.ctx),o=Array.isArray(e.config.stroke.width)?Math.max.apply(Math,ln(e.config.stroke.width)):e.config.stroke.width,a=function(y){var x=document.createElementNS(r.SVGNS,"clipPath");return x.setAttribute("id",y),x};r.dom.elGridRectMask=a("gridRectMask".concat(r.cuid)),r.dom.elGridRectBarMask=a("gridRectBarMask".concat(r.cuid)),r.dom.elGridRectMarkerMask=a("gridRectMarkerMask".concat(r.cuid)),r.dom.elForecastMask=a("forecastMask".concat(r.cuid)),r.dom.elNonForecastMask=a("nonForecastMask".concat(r.cuid));var f=0,p=0;(["bar","rangeBar","candlestick","boxPlot"].includes(e.config.chart.type)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(f=Math.max(e.config.grid.padding.left,r.barPadForNumericAxis),p=Math.max(e.config.grid.padding.right,r.barPadForNumericAxis)),r.dom.elGridRect=n.drawRect(-o/2-2,-o/2-2,r.gridWidth+o+4,r.gridHeight+o+4,0,"#fff"),r.dom.elGridRectBar=n.drawRect(-o/2-f-2,-o/2-2,r.gridWidth+o+p+f+4,r.gridHeight+o+4,0,"#fff");var m=e.globals.markers.largestSize;r.dom.elGridRectMarker=n.drawRect(Math.min(-o/2-f-2,-m),-m,r.gridWidth+Math.max(o+p+f+4,2*m),r.gridHeight+2*m,0,"#fff"),r.dom.elGridRectMask.appendChild(r.dom.elGridRect.node),r.dom.elGridRectBarMask.appendChild(r.dom.elGridRectBar.node),r.dom.elGridRectMarkerMask.appendChild(r.dom.elGridRectMarker.node);var v=r.dom.baseEl.querySelector("defs");v.appendChild(r.dom.elGridRectMask),v.appendChild(r.dom.elGridRectBarMask),v.appendChild(r.dom.elGridRectMarkerMask),v.appendChild(r.dom.elForecastMask),v.appendChild(r.dom.elNonForecastMask)}},{key:"_drawGridLines",value:function(e){var r=e.i,n=e.x1,o=e.y1,a=e.x2,f=e.y2,p=e.xCount,m=e.parent,v=this.w;if(!(r===0&&v.globals.skipFirstTimelinelabel||r===p-1&&v.globals.skipLastTimelinelabel&&!v.config.xaxis.labels.formatter||v.config.chart.type==="radar")){v.config.grid.xaxis.lines.show&&this._drawGridLine({i:r,x1:n,y1:o,x2:a,y2:f,xCount:p,parent:m});var y=0;if(v.globals.hasXaxisGroups&&v.config.xaxis.tickPlacement==="between"){var x=v.globals.groups;if(x){for(var k=0,S=0;k<r&&S<x.length;S++)k+=x[S].cols;k===r&&(y=.6*v.globals.xAxisLabelsHeight)}}new wv(this.ctx).drawXaxisTicks(n,y,v.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(e){var r=e.i,n=e.x1,o=e.y1,a=e.x2,f=e.y2,p=e.xCount,m=e.parent,v=this.w,y=m.node.classList.contains("apexcharts-gridlines-horizontal"),x=v.globals.barPadForNumericAxis,k=o===0&&f===0||n===0&&a===0||o===v.globals.gridHeight&&f===v.globals.gridHeight||v.globals.isBarHorizontal&&(r===0||r===p-1),S=new xe(this).drawLine(n-(y?x:0),o,a+(y?x:0),f,v.config.grid.borderColor,v.config.grid.strokeDashArray);S.node.classList.add("apexcharts-gridline"),k&&v.config.grid.show?this.elGridBorders.add(S):m.add(S)}},{key:"_drawGridBandRect",value:function(e){var r=e.c,n=e.x1,o=e.y1,a=e.x2,f=e.y2,p=e.type,m=this.w,v=new xe(this.ctx),y=m.globals.barPadForNumericAxis,x=m.config.grid[p].colors[r],k=v.drawRect(n-(p==="row"?y:0),o,a+(p==="row"?2*y:0),f,0,x,m.config.grid[p].opacity);this.elg.add(k),k.attr("clip-path","url(#gridRectMask".concat(m.globals.cuid,")")),k.node.classList.add("apexcharts-grid-".concat(p))}},{key:"_drawXYLines",value:function(e){var r=this,n=e.xCount,o=e.tickAmount,a=this.w;if(a.config.grid.xaxis.lines.show||a.config.xaxis.axisTicks.show){var f,p=a.globals.padHorizontal,m=a.globals.gridHeight;a.globals.timescaleLabels.length?function(O){for(var C=O.xC,R=O.x1,E=O.y1,P=O.x2,M=O.y2,I=0;I<C;I++)R=r.xaxisLabels[I].position,P=r.xaxisLabels[I].position,r._drawGridLines({i:I,x1:R,y1:E,x2:P,y2:M,xCount:n,parent:r.elgridLinesV})}({xC:n,x1:p,y1:0,x2:f,y2:m}):(a.globals.isXNumeric&&(n=a.globals.xAxisScale.result.length),function(O){for(var C=O.xC,R=O.x1,E=O.y1,P=O.x2,M=O.y2,I=0;I<C+(a.globals.isXNumeric?0:1);I++)I===0&&C===1&&a.globals.dataPoints===1&&(P=R=a.globals.gridWidth/2),r._drawGridLines({i:I,x1:R,y1:E,x2:P,y2:M,xCount:n,parent:r.elgridLinesV}),P=R+=a.globals.gridWidth/(a.globals.isXNumeric?C-1:C)}({xC:n,x1:p,y1:0,x2:f,y2:m}))}if(a.config.grid.yaxis.lines.show){var v=0,y=0,x=a.globals.gridWidth,k=o+1;this.isRangeBar&&(k=a.globals.labels.length);for(var S=0;S<k+(this.isRangeBar?1:0);S++)this._drawGridLine({i:S,xCount:k+(this.isRangeBar?1:0),x1:0,y1:v,x2:x,y2:y,parent:this.elgridLinesH}),y=v+=a.globals.gridHeight/(this.isRangeBar?k:o)}}},{key:"_drawInvertedXYLines",value:function(e){var r=e.xCount,n=this.w;if(n.config.grid.xaxis.lines.show||n.config.xaxis.axisTicks.show)for(var o,a=n.globals.padHorizontal,f=n.globals.gridHeight,p=0;p<r+1;p++)n.config.grid.xaxis.lines.show&&this._drawGridLine({i:p,xCount:r+1,x1:a,y1:0,x2:o,y2:f,parent:this.elgridLinesV}),new wv(this.ctx).drawXaxisTicks(a,0,n.globals.dom.elGraphical),o=a+=n.globals.gridWidth/r;if(n.config.grid.yaxis.lines.show)for(var m=0,v=0,y=n.globals.gridWidth,x=0;x<n.globals.dataPoints+1;x++)this._drawGridLine({i:x,xCount:n.globals.dataPoints+1,x1:0,y1:m,x2:y,y2:v,parent:this.elgridLinesH}),v=m+=n.globals.gridHeight/n.globals.dataPoints}},{key:"renderGrid",value:function(){var e=this.w,r=e.globals,n=new xe(this.ctx);this.elg=n.group({class:"apexcharts-grid"}),this.elgridLinesH=n.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=n.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=n.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),e.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var o=0;o<r.seriesYAxisMap.length&&r.ignoreYAxisIndexes.includes(o);)o++;o===r.seriesYAxisMap.length&&(o=0);var a,f=r.yAxisScale[o].result.length-1;if(!r.isBarHorizontal||this.isRangeBar){var p,m,v;a=this.xaxisLabels.length,this.isRangeBar&&(f=r.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(a=e.config.xaxis.tickAmount),((p=r.yAxisScale)===null||p===void 0||(m=p[o])===null||m===void 0||(v=m.result)===null||v===void 0?void 0:v.length)>0&&e.config.xaxis.type!=="datetime"&&(a=r.yAxisScale[o].result.length-1)),this._drawXYLines({xCount:a,tickAmount:f})}else a=f,f=r.xTickAmount,this._drawInvertedXYLines({xCount:a,tickAmount:f});return this.drawGridBands(a,f),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:r.gridWidth/a}}},{key:"drawGridBands",value:function(e,r){var n,o,a=this,f=this.w;if(((n=f.config.grid.row.colors)===null||n===void 0?void 0:n.length)>0&&function(O,C,R,E,P,M){for(var I=0,B=0;I<C;I++,B++)B>=f.config.grid[O].colors.length&&(B=0),a._drawGridBandRect({c:B,x1:R,y1:E,x2:P,y2:M,type:O}),E+=f.globals.gridHeight/r}("row",r,0,0,f.globals.gridWidth,f.globals.gridHeight/r),((o=f.config.grid.column.colors)===null||o===void 0?void 0:o.length)>0){var p=f.globals.isBarHorizontal||f.config.xaxis.tickPlacement!=="on"||f.config.xaxis.type!=="category"&&!f.config.xaxis.convertedCatToNumeric?e:e-1;f.globals.isXNumeric&&(p=f.globals.xAxisScale.result.length-1);for(var m=f.globals.padHorizontal,v=f.globals.padHorizontal+f.globals.gridWidth/p,y=f.globals.gridHeight,x=0,k=0;x<e;x++,k++){var S;k>=f.config.grid.column.colors.length&&(k=0),f.config.xaxis.type==="datetime"&&(m=this.xaxisLabels[x].position,v=(((S=this.xaxisLabels[x+1])===null||S===void 0?void 0:S.position)||f.globals.gridWidth)-this.xaxisLabels[x].position),this._drawGridBandRect({c:k,x1:m,y1:0,x2:v,y2:y,type:"column"}),m+=f.globals.gridWidth/p}}}}]),t}(),dX=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w,this.coreUtils=new Hr(this.ctx)}return Fe(t,[{key:"niceScale",value:function(e,r){var n,o,a,f,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,m=1e-11,v=this.w,y=v.globals;y.isBarHorizontal?(n=v.config.xaxis,o=Math.max((y.svgWidth-100)/25,2)):(n=v.config.yaxis[p],o=Math.max((y.svgHeight-100)/15,2)),se.isNumber(o)||(o=10),a=n.min!==void 0&&n.min!==null,f=n.max!==void 0&&n.min!==null;var x=n.stepSize!==void 0&&n.stepSize!==null,k=n.tickAmount!==void 0&&n.tickAmount!==null,S=k?n.tickAmount:y.niceScaleDefaultTicks[Math.min(Math.round(o/2),y.niceScaleDefaultTicks.length-1)];if(y.isMultipleYAxis&&!k&&y.multiAxisTickAmount>0&&(S=y.multiAxisTickAmount,k=!0),S=S==="dataPoints"?y.dataPoints-1:Math.abs(Math.round(S)),(e===Number.MIN_VALUE&&r===0||!se.isNumber(e)&&!se.isNumber(r)||e===Number.MIN_VALUE&&r===-Number.MAX_VALUE)&&(e=se.isNumber(n.min)?n.min:0,r=se.isNumber(n.max)?n.max:e+S,y.allSeriesCollapsed=!1),e>r){console.warn("axis.min cannot be greater than axis.max: swapping min and max");var O=r;r=e,e=O}else e===r&&(e=e===0?0:e-1,r=r===0?2:r+1);var C=[];S<1&&(S=1);var R=S,E=Math.abs(r-e);!a&&e>0&&e/E<.15&&(e=0,a=!0),!f&&r<0&&-r/E<.15&&(r=0,f=!0);var P=(E=Math.abs(r-e))/R,M=P,I=Math.floor(Math.log10(M)),B=Math.pow(10,I),U=Math.ceil(M/B);if(P=M=(U=y.niceScaleAllowedMagMsd[y.yValueDecimal===0?0:1][U])*B,y.isBarHorizontal&&n.stepSize&&n.type!=="datetime"?(P=n.stepSize,x=!0):x&&(P=n.stepSize),x&&n.forceNiceScale){var H=Math.floor(Math.log10(P));P*=Math.pow(10,I-H)}if(a&&f){var V=E/R;if(k)if(x)if(se.mod(E,P)!=0){var W=se.getGCD(P,V);P=V/W<10?W:V}else se.mod(P,V)==0?P=V:(V=P,k=!1);else P=V;else if(x)se.mod(E,P)==0?V=P:P=V;else if(se.mod(E,P)==0)V=P;else{V=E/(R=Math.ceil(E/P));var G=se.getGCD(E,P);E/G<o&&(V=G),P=V}R=Math.round(E/P)}else{if(a||f){if(f)if(k)e=r-P*R;else{var Z=e;e=P*Math.floor(e/P),Math.abs(r-e)/se.getGCD(E,P)>o&&(e=r-P*S,e+=P*Math.floor((Z-e)/P))}else if(a)if(k)r=e+P*R;else{var K=r;r=P*Math.ceil(r/P),Math.abs(r-e)/se.getGCD(E,P)>o&&(r=e+P*S,r+=P*Math.ceil((K-r)/P))}}else if(y.isMultipleYAxis&&k){var Q=P*Math.floor(e/P),oe=Q+P*R;oe<r&&(P*=2),oe=r,r=(e=Q)+P*R,E=Math.abs(r-e),e>0&&e<Math.abs(oe-r)&&(e=0,r=P*R),r<0&&-r<Math.abs(Q-e)&&(r=0,e=-P*R)}else e=P*Math.floor(e/P),r=P*Math.ceil(r/P);E=Math.abs(r-e),P=se.getGCD(E,P),R=Math.round(E/P)}if(k||a||f||(R=Math.ceil((E-m)/(P+m)))>16&&se.getPrimeFactors(R).length<2&&R++,!k&&n.forceNiceScale&&y.yValueDecimal===0&&R>E&&(R=E,P=Math.round(E/R)),R>o&&(!k&&!x||n.forceNiceScale)){var ie=se.getPrimeFactors(R),re=ie.length-1,ne=R;e:for(var te=0;te<re;te++)for(var ue=0;ue<=re-te;ue++){for(var pe=Math.min(ue+te,re),ke=ne,ze=1,Re=ue;Re<=pe;Re++)ze*=ie[Re];if((ke/=ze)<o){ne=ke;break e}}P=ne===R?E:E/ne,R=Math.round(E/P)}y.isMultipleYAxis&&y.multiAxisTickAmount==0&&y.ignoreYAxisIndexes.indexOf(p)<0&&(y.multiAxisTickAmount=R);var Ae=e-P,tt=P*m;do Ae+=P,C.push(se.stripNumber(Ae,7));while(r-Ae>tt);return{result:C,niceMin:C[0],niceMax:C[C.length-1]}}},{key:"linearScale",value:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,f=Math.abs(r-e),p=[];if(e===r)return{result:p=[e],niceMin:p[0],niceMax:p[p.length-1]};(n=this._adjustTicksForSmallRange(n,o,f))==="dataPoints"&&(n=this.w.globals.dataPoints-1),a||(a=f/n),a=Math.round(100*(a+Number.EPSILON))/100,n===Number.MAX_VALUE&&(n=5,a=1);for(var m=e;n>=0;)p.push(m),m=se.preciseAddition(m,a),n-=1;return{result:p,niceMin:p[0],niceMax:p[p.length-1]}}},{key:"logarithmicScaleNice",value:function(e,r,n){r<=0&&(r=Math.max(e,n)),e<=0&&(e=Math.min(r,n));for(var o=[],a=Math.ceil(Math.log(r)/Math.log(n)+1),f=Math.floor(Math.log(e)/Math.log(n));f<a;f++)o.push(Math.pow(n,f));return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:"logarithmicScale",value:function(e,r,n){r<=0&&(r=Math.max(e,n)),e<=0&&(e=Math.min(r,n));for(var o=[],a=Math.log(r)/Math.log(n),f=Math.log(e)/Math.log(n),p=a-f,m=Math.round(p),v=p/m,y=0,x=f;y<m;y++,x+=v)o.push(Math.pow(n,x));return o.push(Math.pow(n,a)),{result:o,niceMin:e,niceMax:r}}},{key:"_adjustTicksForSmallRange",value:function(e,r,n){var o=e;if(r!==void 0&&this.w.config.yaxis[r].labels.formatter&&this.w.config.yaxis[r].tickAmount===void 0){var a=Number(this.w.config.yaxis[r].labels.formatter(1));se.isNumber(a)&&this.w.globals.yValueDecimal===0&&(o=Math.ceil(n))}return o<e?o:e}},{key:"setYScaleForIndex",value:function(e,r,n){var o=this.w.globals,a=this.w.config,f=o.isBarHorizontal?a.xaxis:a.yaxis[e];o.yAxisScale[e]===void 0&&(o.yAxisScale[e]=[]);var p=Math.abs(n-r);f.logarithmic&&p<=5&&(o.invalidLogScale=!0),f.logarithmic&&p>5?(o.allSeriesCollapsed=!1,o.yAxisScale[e]=f.forceNiceScale?this.logarithmicScaleNice(r,n,f.logBase):this.logarithmicScale(r,n,f.logBase)):n!==-Number.MAX_VALUE&&se.isNumber(n)&&r!==Number.MAX_VALUE&&se.isNumber(r)?(o.allSeriesCollapsed=!1,o.yAxisScale[e]=this.niceScale(r,n,e)):o.yAxisScale[e]=this.niceScale(Number.MIN_VALUE,0,e)}},{key:"setXScale",value:function(e,r){var n=this.w,o=n.globals;if(r!==-Number.MAX_VALUE&&se.isNumber(r)){var a=o.xTickAmount;o.xAxisScale=this.linearScale(e,r,a,0,n.config.xaxis.max===void 0?n.config.xaxis.stepSize:void 0)}else o.xAxisScale=this.linearScale(0,10,10);return o.xAxisScale}},{key:"scaleMultipleYAxes",value:function(){var e=this,r=this.w.config,n=this.w.globals;this.coreUtils.setSeriesYAxisMappings();var o=n.seriesYAxisMap,a=n.minYArr,f=n.maxYArr;n.allSeriesCollapsed=!0,n.barGroups=[],o.forEach(function(p,m){var v=[];p.forEach(function(y){var x,k=(x=r.series[y])===null||x===void 0?void 0:x.group;v.indexOf(k)<0&&v.push(k)}),p.length>0?function(){var y,x,k=Number.MAX_VALUE,S=-Number.MAX_VALUE,O=k,C=S;if(r.chart.stacked)(function(){var P=new Array(n.dataPoints).fill(0),M=[],I=[],B=[];v.forEach(function(){M.push(P.map(function(){return Number.MIN_VALUE})),I.push(P.map(function(){return Number.MIN_VALUE})),B.push(P.map(function(){return Number.MIN_VALUE}))});for(var U=function(V){!y&&r.series[p[V]].type&&(y=r.series[p[V]].type);var W=p[V];x=r.series[W].group?r.series[W].group:"axis-".concat(m),!(n.collapsedSeriesIndices.indexOf(W)<0&&n.ancillaryCollapsedSeriesIndices.indexOf(W)<0)||(n.allSeriesCollapsed=!1,v.forEach(function(G,Z){if(r.series[W].group===G)for(var K=0;K<n.series[W].length;K++){var Q=n.series[W][K];Q>=0?I[Z][K]+=Q:B[Z][K]+=Q,M[Z][K]+=Q,O=Math.min(O,Q),C=Math.max(C,Q)}})),y!=="bar"&&y!=="column"||n.barGroups.push(x)},H=0;H<p.length;H++)U(H);y||(y=r.chart.type),y==="bar"||y==="column"?v.forEach(function(V,W){k=Math.min(k,Math.min.apply(null,B[W])),S=Math.max(S,Math.max.apply(null,I[W]))}):(v.forEach(function(V,W){O=Math.min(O,Math.min.apply(null,M[W])),C=Math.max(C,Math.max.apply(null,M[W]))}),k=O,S=C),k===Number.MIN_VALUE&&S===Number.MIN_VALUE&&(S=-Number.MAX_VALUE)})();else for(var R=0;R<p.length;R++){var E=p[R];k=Math.min(k,a[E]),S=Math.max(S,f[E]),!(n.collapsedSeriesIndices.indexOf(E)<0&&n.ancillaryCollapsedSeriesIndices.indexOf(E)<0)||(n.allSeriesCollapsed=!1)}r.yaxis[m].min!==void 0&&(k=typeof r.yaxis[m].min=="function"?r.yaxis[m].min(k):r.yaxis[m].min),r.yaxis[m].max!==void 0&&(S=typeof r.yaxis[m].max=="function"?r.yaxis[m].max(S):r.yaxis[m].max),n.barGroups=n.barGroups.filter(function(P,M,I){return I.indexOf(P)===M}),e.setYScaleForIndex(m,k,S),p.forEach(function(P){a[P]=n.yAxisScale[m].niceMin,f[P]=n.yAxisScale[m].niceMax})}():e.setYScaleForIndex(m,0,-Number.MAX_VALUE)})}}]),t}(),RR=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w,this.scales=new dX(e)}return Fe(t,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=this.w.config,f=this.w.globals,p=-Number.MAX_VALUE,m=Number.MIN_VALUE;o===null&&(o=e+1);var v=f.series,y=v,x=v;a.chart.type==="candlestick"?(y=f.seriesCandleL,x=f.seriesCandleH):a.chart.type==="boxPlot"?(y=f.seriesCandleO,x=f.seriesCandleC):f.isRangeData&&(y=f.seriesRangeStart,x=f.seriesRangeEnd);var k=!1;if(f.seriesX.length>=o){var S,O=(S=f.brushSource)===null||S===void 0?void 0:S.w.config.chart.brush;(a.chart.zoom.enabled&&a.chart.zoom.autoScaleYaxis||O!=null&&O.enabled&&O!=null&&O.autoScaleYaxis)&&(k=!0)}for(var C=e;C<o;C++){f.dataPoints=Math.max(f.dataPoints,v[C].length);var R=a.series[C].type;f.categoryLabels.length&&(f.dataPoints=f.categoryLabels.filter(function(W){return W!==void 0}).length),f.labels.length&&a.xaxis.type!=="datetime"&&f.series.reduce(function(W,G){return W+G.length},0)!==0&&(f.dataPoints=Math.max(f.dataPoints,f.labels.length));var E=0,P=v[C].length-1;if(k){if(a.xaxis.min)for(;E<P&&f.seriesX[C][E]<a.xaxis.min;E++);if(a.xaxis.max)for(;P>E&&f.seriesX[C][P]>a.xaxis.max;P--);}for(var M=E;M<=P&&M<f.series[C].length;M++){var I=v[C][M];if(I!==null&&se.isNumber(I)){var B,U,H,V;switch(((B=x[C])===null||B===void 0?void 0:B[M])!==void 0&&(p=Math.max(p,x[C][M]),r=Math.min(r,x[C][M])),((U=y[C])===null||U===void 0?void 0:U[M])!==void 0&&(r=Math.min(r,y[C][M]),n=Math.max(n,y[C][M])),R){case"candlestick":f.seriesCandleC[C][M]!==void 0&&(p=Math.max(p,f.seriesCandleH[C][M]),r=Math.min(r,f.seriesCandleL[C][M]));break;case"boxPlot":f.seriesCandleC[C][M]!==void 0&&(p=Math.max(p,f.seriesCandleC[C][M]),r=Math.min(r,f.seriesCandleO[C][M]))}R&&R!=="candlestick"&&R!=="boxPlot"&&R!=="rangeArea"&&R!=="rangeBar"&&(p=Math.max(p,f.series[C][M]),r=Math.min(r,f.series[C][M])),f.seriesGoals[C]&&f.seriesGoals[C][M]&&Array.isArray(f.seriesGoals[C][M])&&f.seriesGoals[C][M].forEach(function(W){p=Math.max(p,W.value),r=Math.min(r,W.value)}),n=p,I=se.noExponents(I),se.isFloat(I)&&(f.yValueDecimal=Math.max(f.yValueDecimal,I.toString().split(".")[1].length)),m>((H=y[C])===null||H===void 0?void 0:H[M])&&((V=y[C])===null||V===void 0?void 0:V[M])<0&&(m=y[C][M])}else f.hasNullValues=!0}R!=="bar"&&R!=="column"||(m<0&&p<0&&(p=0,n=Math.max(n,0)),m===Number.MIN_VALUE&&(m=0,r=Math.min(r,0)))}return a.chart.type==="rangeBar"&&f.seriesRangeStart.length&&f.isBarHorizontal&&(m=r),a.chart.type==="bar"&&(m<0&&p<0&&(p=0),m===Number.MIN_VALUE&&(m=0)),{minY:m,maxY:p,lowestY:r,highestY:n}}},{key:"setYRange",value:function(){var e=this.w.globals,r=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var n,o=Number.MAX_VALUE;if(e.isMultipleYAxis){o=Number.MAX_VALUE;for(var a=0;a<e.series.length;a++)n=this.getMinYMaxY(a),e.minYArr[a]=n.lowestY,e.maxYArr[a]=n.highestY,o=Math.min(o,n.lowestY)}return n=this.getMinYMaxY(0,o,null,e.series.length),r.chart.type==="bar"?(e.minY=n.minY,e.maxY=n.maxY):(e.minY=n.lowestY,e.maxY=n.highestY),o=n.lowestY,r.chart.stacked&&this._setStackedMinMax(),r.chart.type==="line"||r.chart.type==="area"||r.chart.type==="scatter"||r.chart.type==="candlestick"||r.chart.type==="boxPlot"||r.chart.type==="rangeBar"&&!e.isBarHorizontal?e.minY===Number.MIN_VALUE&&o!==-Number.MAX_VALUE&&o!==e.maxY&&(e.minY=o):e.minY=e.minY!==Number.MIN_VALUE?Math.min(n.minY,e.minY):n.minY,r.yaxis.forEach(function(f,p){f.max!==void 0&&(typeof f.max=="number"?e.maxYArr[p]=f.max:typeof f.max=="function"&&(e.maxYArr[p]=f.max(e.isMultipleYAxis?e.maxYArr[p]:e.maxY)),e.maxY=e.maxYArr[p]),f.min!==void 0&&(typeof f.min=="number"?e.minYArr[p]=f.min:typeof f.min=="function"&&(e.minYArr[p]=f.min(e.isMultipleYAxis?e.minYArr[p]===Number.MIN_VALUE?0:e.minYArr[p]:e.minY)),e.minY=e.minYArr[p])}),e.isBarHorizontal&&["min","max"].forEach(function(f){r.xaxis[f]!==void 0&&typeof r.xaxis[f]=="number"&&(f==="min"?e.minY=r.xaxis[f]:e.maxY=r.xaxis[f])}),e.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),e.minY=o):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.minY,e.maxYArr[0]=e.maxY),e.barGroups=[],e.lineGroups=[],e.areaGroups=[],r.series.forEach(function(f){switch(f.type||r.chart.type){case"bar":case"column":e.barGroups.push(f.group);break;case"line":e.lineGroups.push(f.group);break;case"area":e.areaGroups.push(f.group)}}),e.barGroups=e.barGroups.filter(function(f,p,m){return m.indexOf(f)===p}),e.lineGroups=e.lineGroups.filter(function(f,p,m){return m.indexOf(f)===p}),e.areaGroups=e.areaGroups.filter(function(f,p,m){return m.indexOf(f)===p}),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,r=this.w.config,n=r.xaxis.type==="numeric"||r.xaxis.type==="datetime"||r.xaxis.type==="category"&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var m=0;m<e.series.length;m++)if(e.labels[m])for(var v=0;v<e.labels[m].length;v++)e.labels[m][v]!==null&&se.isNumber(e.labels[m][v])&&(e.maxX=Math.max(e.maxX,e.labels[m][v]),e.initialMaxX=Math.max(e.maxX,e.labels[m][v]),e.minX=Math.min(e.minX,e.labels[m][v]),e.initialMinX=Math.min(e.minX,e.labels[m][v]))}(),e.noLabelsProvided&&r.xaxis.categories.length===0&&(e.maxX=e.labels[e.labels.length-1],e.initialMaxX=e.labels[e.labels.length-1],e.minX=1,e.initialMinX=1),e.isXNumeric||e.noLabelsProvided||e.dataFormatXNumeric){var o=10;if(r.xaxis.tickAmount===void 0)o=Math.round(e.svgWidth/150),r.xaxis.type==="numeric"&&e.dataPoints<30&&(o=e.dataPoints-1),o>e.dataPoints&&e.dataPoints!==0&&(o=e.dataPoints-1);else if(r.xaxis.tickAmount==="dataPoints"){if(e.series.length>1&&(o=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric){var a=Math.round(e.maxX-e.minX);a<30&&(o=a)}}else o=r.xaxis.tickAmount;if(e.xTickAmount=o,r.xaxis.max!==void 0&&typeof r.xaxis.max=="number"&&(e.maxX=r.xaxis.max),r.xaxis.min!==void 0&&typeof r.xaxis.min=="number"&&(e.minX=r.xaxis.min),r.xaxis.range!==void 0&&(e.minX=e.maxX-r.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(r.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var f=[],p=e.minX-1;p<e.maxX;p++)f.push(p+1);e.xAxisScale={result:f,niceMin:f[0],niceMax:f[f.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(0,o,o,0,r.xaxis.stepSize),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,o-1,0,r.xaxis.stepSize),e.seriesX=e.labels.slice());n&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ){for(var r=0;r<e.series.length;r++)if(e.seriesZ[r]!==void 0)for(var n=0;n<e.seriesZ[r].length;n++)e.seriesZ[r][n]!==null&&se.isNumber(e.seriesZ[r][n])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[r][n]),e.minZ=Math.min(e.minZ,e.seriesZ[r][n]))}}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,r=this.w.config;if(e.minX===e.maxX){var n=new Tn(this.ctx);if(r.xaxis.type==="datetime"){var o=n.getDate(e.minX);r.xaxis.labels.datetimeUTC?o.setUTCDate(o.getUTCDate()-2):o.setDate(o.getDate()-2),e.minX=new Date(o).getTime();var a=n.getDate(e.maxX);r.xaxis.labels.datetimeUTC?a.setUTCDate(a.getUTCDate()+2):a.setDate(a.getDate()+2),e.maxX=new Date(a).getTime()}else(r.xaxis.type==="numeric"||r.xaxis.type==="category"&&!e.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}},{key:"_getMinXDiff",value:function(){var e=this.w.globals;e.isXNumeric&&e.seriesX.forEach(function(r,n){if(r.length){r.length===1&&r.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var o=r.slice();o.sort(function(a,f){return a-f}),o.forEach(function(a,f){if(f>0){var p=a-o[f-1];p>0&&(e.minXDiff=Math.min(p,e.minXDiff))}}),e.dataPoints!==1&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)}})}},{key:"_setStackedMinMax",value:function(){var e=this,r=this.w.globals;if(r.series.length){var n=r.seriesGroups;n.length||(n=[this.w.globals.seriesNames.map(function(f){return f})]);var o={},a={};n.forEach(function(f){o[f]=[],a[f]=[],e.w.config.series.map(function(p,m){return f.indexOf(r.seriesNames[m])>-1?m:null}).filter(function(p){return p!==null}).forEach(function(p){for(var m=0;m<r.series[r.maxValsInArrayIndex].length;m++){var v,y,x,k;o[f][m]===void 0&&(o[f][m]=0,a[f][m]=0),(e.w.config.chart.stacked&&!r.comboCharts||e.w.config.chart.stacked&&r.comboCharts&&(!e.w.config.chart.stackOnlyBar||((v=e.w.config.series)===null||v===void 0||(y=v[p])===null||y===void 0?void 0:y.type)==="bar"||((x=e.w.config.series)===null||x===void 0||(k=x[p])===null||k===void 0?void 0:k.type)==="column"))&&r.series[p][m]!==null&&se.isNumber(r.series[p][m])&&(r.series[p][m]>0?o[f][m]+=parseFloat(r.series[p][m])+1e-4:a[f][m]+=parseFloat(r.series[p][m]))}})}),Object.entries(o).forEach(function(f){var p=PW(f,1)[0];o[p].forEach(function(m,v){r.maxY=Math.max(r.maxY,o[p][v]),r.minY=Math.min(r.minY,a[p][v])})})}}}]),t}(),x5=function(){function t(e,r){Be(this,t),this.ctx=e,this.elgrid=r,this.w=e.w;var n=this.w;this.xaxisFontSize=n.config.xaxis.labels.style.fontSize,this.axisFontFamily=n.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=n.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=n.config.chart.type==="bar"&&n.config.plotOptions.bar.horizontal,this.xAxisoffX=n.config.xaxis.position==="bottom"?n.globals.gridHeight:0,this.drawnLabels=[],this.axesUtils=new Zl(e)}return Fe(t,[{key:"drawYaxis",value:function(e){var r=this.w,n=new xe(this.ctx),o=r.config.yaxis[e].labels.style,a=o.fontSize,f=o.fontFamily,p=o.fontWeight,m=n.group({class:"apexcharts-yaxis",rel:e,transform:"translate(".concat(r.globals.translateYAxisX[e],", 0)")});if(this.axesUtils.isYAxisHidden(e))return m;var v=n.group({class:"apexcharts-yaxis-texts-g"});m.add(v);var y=r.globals.yAxisScale[e].result.length-1,x=r.globals.gridHeight/y,k=r.globals.yLabelFormatters[e],S=this.axesUtils.checkForReversedLabels(e,r.globals.yAxisScale[e].result.slice());if(r.config.yaxis[e].labels.show){var O=r.globals.translateY+r.config.yaxis[e].labels.offsetY;r.globals.isBarHorizontal?O=0:r.config.chart.type==="heatmap"&&(O-=x/2),O+=parseInt(a,10)/3;for(var C=y;C>=0;C--){var R=k(S[C],C,r),E=r.config.yaxis[e].labels.padding;r.config.yaxis[e].opposite&&r.config.yaxis.length!==0&&(E*=-1);var P=this.getTextAnchor(r.config.yaxis[e].labels.align,r.config.yaxis[e].opposite),M=this.axesUtils.getYAxisForeColor(o.colors,e),I=Array.isArray(M)?M[C]:M,B=se.listToArray(r.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-label tspan"))).map(function(H){return H.textContent}),U=n.drawText({x:E,y:O,text:B.includes(R)&&!r.config.yaxis[e].labels.showDuplicates?"":R,textAnchor:P,fontSize:a,fontFamily:f,fontWeight:p,maxWidth:r.config.yaxis[e].labels.maxWidth,foreColor:I,isPlainText:!1,cssClass:"apexcharts-yaxis-label ".concat(o.cssClass)});v.add(U),this.addTooltip(U,R),r.config.yaxis[e].labels.rotate!==0&&this.rotateLabel(n,U,firstLabel,r.config.yaxis[e].labels.rotate),O+=x}}return this.addYAxisTitle(n,m,e),this.addAxisBorder(n,m,e,y,x),m}},{key:"getTextAnchor",value:function(e,r){return e==="left"?"start":e==="center"?"middle":e==="right"?"end":r?"start":"end"}},{key:"addTooltip",value:function(e,r){var n=document.createElementNS(this.w.globals.SVGNS,"title");n.textContent=Array.isArray(r)?r.join(" "):r,e.node.appendChild(n)}},{key:"rotateLabel",value:function(e,r,n,o){var a=e.rotateAroundCenter(n.node),f=e.rotateAroundCenter(r.node);r.node.setAttribute("transform","rotate(".concat(o," ").concat(a.x," ").concat(f.y,")"))}},{key:"addYAxisTitle",value:function(e,r,n){var o=this.w;if(o.config.yaxis[n].title.text!==void 0){var a=e.group({class:"apexcharts-yaxis-title"}),f=o.config.yaxis[n].opposite?o.globals.translateYAxisX[n]:0,p=e.drawText({x:f,y:o.globals.gridHeight/2+o.globals.translateY+o.config.yaxis[n].title.offsetY,text:o.config.yaxis[n].title.text,textAnchor:"end",foreColor:o.config.yaxis[n].title.style.color,fontSize:o.config.yaxis[n].title.style.fontSize,fontWeight:o.config.yaxis[n].title.style.fontWeight,fontFamily:o.config.yaxis[n].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text ".concat(o.config.yaxis[n].title.style.cssClass)});a.add(p),r.add(a)}}},{key:"addAxisBorder",value:function(e,r,n,o,a){var f=this.w,p=f.config.yaxis[n].axisBorder,m=31+p.offsetX;if(f.config.yaxis[n].opposite&&(m=-31-p.offsetX),p.show){var v=e.drawLine(m,f.globals.translateY+p.offsetY-2,m,f.globals.gridHeight+f.globals.translateY+p.offsetY+2,p.color,0,p.width);r.add(v)}f.config.yaxis[n].axisTicks.show&&this.axesUtils.drawYAxisTicks(m,o,p,f.config.yaxis[n].axisTicks,n,a,r)}},{key:"drawYaxisInversed",value:function(e){var r=this.w,n=new xe(this.ctx),o=n.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),a=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(r.globals.translateXAxisX,", ").concat(r.globals.translateXAxisY,")")});o.add(a);var f=r.globals.yAxisScale[e].result.length-1,p=r.globals.gridWidth/f+.1,m=p+r.config.xaxis.labels.offsetX,v=r.globals.xLabelFormatter,y=this.axesUtils.checkForReversedLabels(e,r.globals.yAxisScale[e].result.slice()),x=r.globals.timescaleLabels;if(x.length>0&&(this.xaxisLabels=x.slice(),f=(y=x.slice()).length),r.config.xaxis.labels.show)for(var k=x.length?0:f;x.length?k<x.length:k>=0;x.length?k++:k--){var S=v(y[k],k,r),O=r.globals.gridWidth+r.globals.padHorizontal-(m-p+r.config.xaxis.labels.offsetX);if(x.length){var C=this.axesUtils.getLabel(y,x,O,k,this.drawnLabels,this.xaxisFontSize);O=C.x,S=C.text,this.drawnLabels.push(C.text),k===0&&r.globals.skipFirstTimelinelabel&&(S=""),k===y.length-1&&r.globals.skipLastTimelinelabel&&(S="")}var R=n.drawText({x:O,y:this.xAxisoffX+r.config.xaxis.labels.offsetY+30-(r.config.xaxis.position==="top"?r.globals.xAxisHeight+r.config.xaxis.axisTicks.height-2:0),text:S,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:r.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label ".concat(r.config.xaxis.labels.style.cssClass)});a.add(R),R.tspan(S),this.addTooltip(R,S),m+=p}return this.inversedYAxisTitleText(o),this.inversedYAxisBorder(o),o}},{key:"inversedYAxisBorder",value:function(e){var r=this.w,n=new xe(this.ctx),o=r.config.xaxis.axisBorder;if(o.show){var a=0;r.config.chart.type==="bar"&&r.globals.isXNumeric&&(a-=15);var f=n.drawLine(r.globals.padHorizontal+a+o.offsetX,this.xAxisoffX,r.globals.gridWidth,this.xAxisoffX,o.color,0,o.height);this.elgrid&&this.elgrid.elGridBorders&&r.config.grid.show?this.elgrid.elGridBorders.add(f):e.add(f)}}},{key:"inversedYAxisTitleText",value:function(e){var r=this.w,n=new xe(this.ctx);if(r.config.xaxis.title.text!==void 0){var o=n.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),a=n.drawText({x:r.globals.gridWidth/2+r.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(r.config.xaxis.title.style.fontSize)+r.config.xaxis.title.offsetY+20,text:r.config.xaxis.title.text,textAnchor:"middle",fontSize:r.config.xaxis.title.style.fontSize,fontFamily:r.config.xaxis.title.style.fontFamily,fontWeight:r.config.xaxis.title.style.fontWeight,foreColor:r.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text ".concat(r.config.xaxis.title.style.cssClass)});o.add(a),e.add(o)}}},{key:"yAxisTitleRotate",value:function(e,r){var n=this.w,o=new xe(this.ctx),a=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g")),f=a?a.getBoundingClientRect():{width:0,height:0},p=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text")),m=p?p.getBoundingClientRect():{width:0,height:0};if(p){var v=this.xPaddingForYAxisTitle(e,f,m,r);p.setAttribute("x",v.xPos-(r?10:0));var y=o.rotateAroundCenter(p);p.setAttribute("transform","rotate(".concat(r?-1*n.config.yaxis[e].title.rotate:n.config.yaxis[e].title.rotate," ").concat(y.x," ").concat(y.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,r,n,o){var a=this.w,f=0,p=10;return a.config.yaxis[e].title.text===void 0||e<0?{xPos:f,padd:0}:(o?f=r.width+a.config.yaxis[e].title.offsetX+n.width/2+p/2:(f=-1*r.width+a.config.yaxis[e].title.offsetX+p/2+n.width/2,a.globals.isBarHorizontal&&(p=25,f=-1*r.width-a.config.yaxis[e].title.offsetX-p)),{xPos:f,padd:p})}},{key:"setYAxisXPosition",value:function(e,r){var n=this.w,o=0,a=0,f=18,p=1;n.config.yaxis.length>1&&(this.multipleYs=!0),n.config.yaxis.forEach(function(m,v){var y=n.globals.ignoreYAxisIndexes.includes(v)||!m.show||m.floating||e[v].width===0,x=e[v].width+r[v].width;m.opposite?n.globals.isBarHorizontal?(a=n.globals.gridWidth+n.globals.translateX-1,n.globals.translateYAxisX[v]=a-m.labels.offsetX):(a=n.globals.gridWidth+n.globals.translateX+p,y||(p+=x+20),n.globals.translateYAxisX[v]=a-m.labels.offsetX+20):(o=n.globals.translateX-f,y||(f+=x+20),n.globals.translateYAxisX[v]=o+m.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var e=this.w;se.listToArray(e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach(function(r,n){var o=e.config.yaxis[n];if(o&&!o.floating&&o.labels.align!==void 0){var a=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-texts-g")),f=se.listToArray(e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-label"))),p=a.getBoundingClientRect();f.forEach(function(m){m.setAttribute("text-anchor",o.labels.align)}),o.labels.align!=="left"||o.opposite?o.labels.align==="center"?a.setAttribute("transform","translate(".concat(p.width/2*(o.opposite?1:-1),", 0)")):o.labels.align==="right"&&o.opposite&&a.setAttribute("transform","translate(".concat(p.width,", 0)")):a.setAttribute("transform","translate(-".concat(p.width,", 0)"))}})}}]),t}(),P_e=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w,this.documentEvent=se.bind(this.documentEvent,this)}return Fe(t,[{key:"addEventListener",value:function(e,r){var n=this.w;n.globals.events.hasOwnProperty(e)?n.globals.events[e].push(r):n.globals.events[e]=[r]}},{key:"removeEventListener",value:function(e,r){var n=this.w;if(n.globals.events.hasOwnProperty(e)){var o=n.globals.events[e].indexOf(r);o!==-1&&n.globals.events[e].splice(o,1)}}},{key:"fireEvent",value:function(e,r){var n=this.w;if(n.globals.events.hasOwnProperty(e)){r&&r.length||(r=[]);for(var o=n.globals.events[e],a=o.length,f=0;f<a;f++)o[f].apply(null,r)}}},{key:"setupEventHandlers",value:function(){var e=this,r=this.w,n=this.ctx,o=r.globals.dom.baseEl.querySelector(r.globals.chartClass);this.ctx.eventList.forEach(function(a){o.addEventListener(a,function(f){var p=f.target.getAttribute("i")===null&&r.globals.capturedSeriesIndex!==-1?r.globals.capturedSeriesIndex:f.target.getAttribute("i"),m=f.target.getAttribute("j")===null&&r.globals.capturedDataPointIndex!==-1?r.globals.capturedDataPointIndex:f.target.getAttribute("j"),v=Object.assign({},r,{seriesIndex:r.globals.axisCharts?p:0,dataPointIndex:m});f.type==="mousemove"||f.type==="touchmove"?typeof r.config.chart.events.mouseMove=="function"&&r.config.chart.events.mouseMove(f,n,v):f.type==="mouseleave"||f.type==="touchleave"?typeof r.config.chart.events.mouseLeave=="function"&&r.config.chart.events.mouseLeave(f,n,v):(f.type==="mouseup"&&f.which===1||f.type==="touchend")&&(typeof r.config.chart.events.click=="function"&&r.config.chart.events.click(f,n,v),n.ctx.events.fireEvent("click",[f,n,v]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(a){r.globals.dom.baseEl.addEventListener(a,e.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var r=this.w,n=e.target.className;if(e.type==="click"){var o=r.globals.dom.baseEl.querySelector(".apexcharts-menu");o&&o.classList.contains("apexcharts-menu-open")&&n!=="apexcharts-menu-icon"&&o.classList.remove("apexcharts-menu-open")}r.globals.clientX=e.type==="touchmove"?e.touches[0].clientX:e.clientX,r.globals.clientY=e.type==="touchmove"?e.touches[0].clientY:e.clientY}}]),t}(),z_e=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"setCurrentLocaleValues",value:function(e){var r=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(r=this.w.config.chart.locales.concat(window.Apex.chart.locales));var n=r.filter(function(a){return a.name===e})[0];if(!n)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var o=se.extend(aX,n);this.w.globals.locale=o.options}}]),t}(),M_e=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"drawAxis",value:function(e,r){var n,o,a=this,f=this.w.globals,p=this.w.config,m=new wv(this.ctx,r),v=new x5(this.ctx,r);f.axisCharts&&e!=="radar"&&(f.isBarHorizontal?(o=v.drawYaxisInversed(0),n=m.drawXaxisInversed(0),f.dom.elGraphical.add(n),f.dom.elGraphical.add(o)):(n=m.drawXaxis(),f.dom.elGraphical.add(n),p.yaxis.map(function(y,x){if(f.ignoreYAxisIndexes.indexOf(x)===-1&&(o=v.drawYaxis(x),f.dom.Paper.add(o),a.w.config.grid.position==="back")){var k=f.dom.Paper.children()[1];k.remove(),f.dom.Paper.add(k)}})))}}]),t}(),PR=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"drawXCrosshairs",value:function(){var e=this.w,r=new xe(this.ctx),n=new Pn(this.ctx),o=e.config.xaxis.crosshairs.fill.gradient,a=e.config.xaxis.crosshairs.dropShadow,f=e.config.xaxis.crosshairs.fill.type,p=o.colorFrom,m=o.colorTo,v=o.opacityFrom,y=o.opacityTo,x=o.stops,k=a.enabled,S=a.left,O=a.top,C=a.blur,R=a.color,E=a.opacity,P=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){f==="gradient"&&(P=r.drawGradient("vertical",p,m,v,y,null,x,null));var M=r.drawRect();e.config.xaxis.crosshairs.width===1&&(M=r.drawLine());var I=e.globals.gridHeight;(!se.isNumber(I)||I<0)&&(I=0);var B=e.config.xaxis.crosshairs.width;(!se.isNumber(B)||B<0)&&(B=0),M.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:I,width:B,height:I,fill:P,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),k&&(M=n.dropShadow(M,{left:S,top:O,blur:C,color:R,opacity:E})),e.globals.dom.elGraphical.add(M)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,r=new xe(this.ctx),n=e.config.yaxis[0].crosshairs,o=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var a=r.drawLine(-o,0,e.globals.gridWidth+o,0,n.stroke.color,n.stroke.dashArray,n.stroke.width);a.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(a)}var f=r.drawLine(-o,0,e.globals.gridWidth+o,0,n.stroke.color,0,0);f.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(f)}}]),t}(),I_e=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"checkResponsiveConfig",value:function(e){var r=this,n=this.w,o=n.config;if(o.responsive.length!==0){var a=o.responsive.slice();a.sort(function(v,y){return v.breakpoint>y.breakpoint?1:y.breakpoint>v.breakpoint?-1:0}).reverse();var f=new xv({}),p=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=a[0].breakpoint,x=window.innerWidth>0?window.innerWidth:screen.width;if(x>y){var k=se.clone(n.globals.initialConfig);k.series=se.clone(n.config.series);var S=Hr.extendArrayProps(f,k,n);v=se.extend(S,v),v=se.extend(n.config,v),r.overrideResponsiveOptions(v)}else for(var O=0;O<a.length;O++)x<a[O].breakpoint&&(v=Hr.extendArrayProps(f,a[O].options,n),v=se.extend(n.config,v),r.overrideResponsiveOptions(v))};if(e){var m=Hr.extendArrayProps(f,e,n);m=se.extend(n.config,m),p(m=se.extend(m,e))}else p({})}}},{key:"overrideResponsiveOptions",value:function(e){var r=new xv(e).init({responsiveOverride:!0});this.w.config=r}}]),t}(),L_e=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}return Fe(t,[{key:"checkHeatmapDistributed",value:function(){var e=this.w.config,r=e.chart,n=e.plotOptions;return r.type==="treemap"&&n.treemap&&n.treemap.distributed||r.type==="heatmap"&&n.heatmap&&n.heatmap.distributed}},{key:"checkBarDistributed",value:function(){var e=this.w.config,r=e.chart,n=e.plotOptions;return n.bar&&n.bar.distributed&&(r.type==="bar"||r.type==="rangeBar")}},{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e=this.w,r=new se;e.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(e.config.theme.mode||"light"));var n=ln(e.config.colors||e.config.fill.colors||[]);e.globals.colors=this.getColors(n),this.applySeriesColors(e.globals.seriesColors,e.globals.colors),e.config.theme.monochrome.enabled&&(e.globals.colors=this.getMonochromeColors(e.config.theme.monochrome,e.globals.series,r));var o=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),this.applyColorTypes(["fill","stroke"],o),this.applyDataLabelsColors(o),this.applyRadarPolygonsColors(),this.applyMarkersColors(o)}},{key:"getColors",value:function(e){var r=this,n=this.w;return e&&e.length!==0?Array.isArray(e)&&e.length>0&&typeof e[0]=="function"?(this.isColorFn=!0,n.config.series.map(function(o,a){var f=e[a]||e[0];return typeof f=="function"?f({value:n.globals.axisCharts?n.globals.series[a][0]||0:n.globals.series[a],seriesIndex:a,dataPointIndex:a,w:r.w}):f})):e:this.predefined()}},{key:"applySeriesColors",value:function(e,r){e.forEach(function(n,o){n&&(r[o]=n)})}},{key:"getMonochromeColors",value:function(e,r,n){var o=e.color,a=e.shadeIntensity,f=e.shadeTo,p=this.isBarDistributed||this.isHeatmapDistributed?r[0].length*r.length:r.length,m=1/(p/a),v=0;return Array.from({length:p},function(){var y=f==="dark"?n.shadeColor(-1*v,o):n.shadeColor(v,o);return v+=m,y})}},{key:"applyColorTypes",value:function(e,r){var n=this,o=this.w;e.forEach(function(a){o.globals[a].colors=o.config[a].colors===void 0?n.isColorFn?o.config.colors:r:o.config[a].colors.slice(),n.pushExtraColors(o.globals[a].colors)})}},{key:"applyDataLabelsColors",value:function(e){var r=this.w;r.globals.dataLabels.style.colors=r.config.dataLabels.style.colors===void 0?e:r.config.dataLabels.style.colors.slice(),this.pushExtraColors(r.globals.dataLabels.style.colors,50)}},{key:"applyRadarPolygonsColors",value:function(){var e=this.w;e.globals.radarPolygons.fill.colors=e.config.plotOptions.radar.polygons.fill.colors===void 0?[e.config.theme.mode==="dark"?"#343A3F":"none"]:e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20)}},{key:"applyMarkersColors",value:function(e){var r=this.w;r.globals.markers.colors=r.config.markers.colors===void 0?e:r.config.markers.colors.slice(),this.pushExtraColors(r.globals.markers.colors)}},{key:"pushExtraColors",value:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=this.w,a=r||o.globals.series.length;if(n===null&&(n=this.isBarDistributed||this.isHeatmapDistributed||o.config.chart.type==="heatmap"&&o.config.plotOptions.heatmap&&o.config.plotOptions.heatmap.colorScale.inverse),n&&o.globals.series.length&&(a=o.globals.series[o.globals.maxValsInArrayIndex].length*o.globals.series.length),e.length<a)for(var f=a-e.length,p=0;p<f;p++)e.push(e[p])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var r=e.theme.mode,n=r==="dark"?"palette4":r==="light"?"palette1":e.theme.palette||"palette1",o=r==="dark"?"#f6f7f8":r==="light"?"#373d3f":e.chart.foreColor||"#373d3f";return e.tooltip.theme=r||"light",e.chart.foreColor=o,e.theme.palette=n,e}},{key:"predefined",value:function(){var e=this.w.config.theme.palette,r=this.ctx.constructor.getThemePalettes();return r[e]||r.palette1}}]),t}(),N_e=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var r=this.w,n=e==="title"?r.config.title:r.config.subtitle,o=r.globals.svgWidth/2,a=n.offsetY,f="middle";if(n.align==="left"?(o=10,f="start"):n.align==="right"&&(o=r.globals.svgWidth-10,f="end"),o+=n.offsetX,a=a+parseInt(n.style.fontSize,10)+n.margin/2,n.text!==void 0){var p=new xe(this.ctx).drawText({x:o,y:a,text:n.text,textAnchor:f,fontSize:n.style.fontSize,fontFamily:n.style.fontFamily,fontWeight:n.style.fontWeight,foreColor:n.style.color,opacity:1});p.node.setAttribute("class","apexcharts-".concat(e,"-text")),r.globals.dom.Paper.add(p)}}}]),t}(),D_e=function(){function t(e){Be(this,t),this.w=e.w,this.dCtx=e}return Fe(t,[{key:"getTitleSubtitleCoords",value:function(e){var r=this.w,n=0,o=0,a=e==="title"?r.config.title.floating:r.config.subtitle.floating,f=r.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(f!==null&&!a){var p=f.getBoundingClientRect();n=p.width,o=r.globals.axisCharts?p.height+5:p.height}return{width:n,height:o}}},{key:"getLegendsRect",value:function(){var e=this.w,r=e.globals.dom.elLegendWrap;e.config.legend.height||e.config.legend.position!=="top"&&e.config.legend.position!=="bottom"||(r.style.maxHeight=e.globals.svgHeight/2+"px");var n=Object.assign({},se.getBoundingClientRect(r));return r!==null&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:n.x,y:n.y,height:n.height,width:n.height===0?0:n.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},e.config.legend.position!=="left"&&e.config.legend.position!=="right"||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getDatalabelsRect",value:function(){var e=this,r=this.w,n=[];r.config.series.forEach(function(m,v){m.data.forEach(function(y,x){var k;k=r.globals.series[v][x],o=r.config.dataLabels.formatter(k,{ctx:e.dCtx.ctx,seriesIndex:v,dataPointIndex:x,w:r}),n.push(o)})});var o=se.getLargestStringFromArr(n),a=new xe(this.dCtx.ctx),f=r.config.dataLabels.style,p=a.getTextRects(o,parseInt(f.fontSize),f.fontFamily);return{width:1.05*p.width,height:p.height}}},{key:"getLargestStringFromMultiArr",value:function(e,r){var n=e;if(this.w.globals.isMultiLineX){var o=r.map(function(f,p){return Array.isArray(f)?f.length:1}),a=Math.max.apply(Math,ln(o));n=r[o.indexOf(a)]}return n}}]),t}(),B_e=function(){function t(e){Be(this,t),this.w=e.w,this.dCtx=e}return Fe(t,[{key:"getxAxisLabelsCoords",value:function(){var e,r=this.w,n=r.globals.labels.slice();if(r.config.xaxis.convertedCatToNumeric&&n.length===0&&(n=r.globals.categoryLabels),r.globals.timescaleLabels.length>0){var o=this.getxAxisTimeScaleLabelsCoords();e={width:o.width,height:o.height},r.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=r.config.legend.position!=="left"&&r.config.legend.position!=="right"||r.config.legend.floating?0:this.dCtx.lgRect.width;var a=r.globals.xLabelFormatter,f=se.getLargestStringFromArr(n),p=this.dCtx.dimHelpers.getLargestStringFromMultiArr(f,n);r.globals.isBarHorizontal&&(p=f=r.globals.yAxisScale[0].result.reduce(function(O,C){return O.length>C.length?O:C},0));var m=new yb(this.dCtx.ctx),v=f;f=m.xLabelFormat(a,f,v,{i:void 0,dateFormatter:new Tn(this.dCtx.ctx).formatDate,w:r}),p=m.xLabelFormat(a,p,v,{i:void 0,dateFormatter:new Tn(this.dCtx.ctx).formatDate,w:r}),(r.config.xaxis.convertedCatToNumeric&&f===void 0||String(f).trim()==="")&&(p=f="1");var y=new xe(this.dCtx.ctx),x=y.getTextRects(f,r.config.xaxis.labels.style.fontSize),k=x;if(f!==p&&(k=y.getTextRects(p,r.config.xaxis.labels.style.fontSize)),(e={width:x.width>=k.width?x.width:k.width,height:x.height>=k.height?x.height:k.height}).width*n.length>r.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&r.config.xaxis.labels.rotate!==0||r.config.xaxis.labels.rotateAlways){if(!r.globals.isBarHorizontal){r.globals.rotateXLabels=!0;var S=function(O){return y.getTextRects(O,r.config.xaxis.labels.style.fontSize,r.config.xaxis.labels.style.fontFamily,"rotate(".concat(r.config.xaxis.labels.rotate," 0 0)"),!1)};x=S(f),f!==p&&(k=S(p)),e.height=(x.height>k.height?x.height:k.height)/1.5,e.width=x.width>k.width?x.width:k.width}}else r.globals.rotateXLabels=!1}return r.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,r=this.w;if(!r.globals.hasXaxisGroups)return{width:0,height:0};var n,o=((e=r.config.xaxis.group.style)===null||e===void 0?void 0:e.fontSize)||r.config.xaxis.labels.style.fontSize,a=r.globals.groups.map(function(x){return x.title}),f=se.getLargestStringFromArr(a),p=this.dCtx.dimHelpers.getLargestStringFromMultiArr(f,a),m=new xe(this.dCtx.ctx),v=m.getTextRects(f,o),y=v;return f!==p&&(y=m.getTextRects(p,o)),n={width:v.width>=y.width?v.width:y.width,height:v.height>=y.height?v.height:y.height},r.config.xaxis.labels.show||(n={width:0,height:0}),{width:n.width,height:n.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,r=0,n=0;if(e.config.xaxis.title.text!==void 0){var o=new xe(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);r=o.width,n=o.height}return{width:r,height:n}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,r=this.w;this.dCtx.timescaleLabels=r.globals.timescaleLabels.slice();var n=this.dCtx.timescaleLabels.map(function(a){return a.value}),o=n.reduce(function(a,f){return a===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):a.length>f.length?a:f},0);return 1.05*(e=new xe(this.dCtx.ctx).getTextRects(o,r.config.xaxis.labels.style.fontSize)).width*n.length>r.globals.gridWidth&&r.config.xaxis.labels.rotate!==0&&(r.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var r=this,n=this.w,o=n.globals,a=n.config,f=a.xaxis.type,p=e.width;o.skipLastTimelinelabel=!1,o.skipFirstTimelinelabel=!1;var m=n.config.yaxis[0].opposite&&n.globals.isBarHorizontal,v=function(y,x){a.yaxis.length>1&&function(k){return o.collapsedSeriesIndices.indexOf(k)!==-1}(x)||function(k){if(r.dCtx.timescaleLabels&&r.dCtx.timescaleLabels.length){var S=r.dCtx.timescaleLabels[0],O=r.dCtx.timescaleLabels[r.dCtx.timescaleLabels.length-1].position+p/1.75-r.dCtx.yAxisWidthRight,C=S.position-p/1.75+r.dCtx.yAxisWidthLeft,R=n.config.legend.position==="right"&&r.dCtx.lgRect.width>0?r.dCtx.lgRect.width:0;O>o.svgWidth-o.translateX-R&&(o.skipLastTimelinelabel=!0),C<-(k.show&&!k.floating||a.chart.type!=="bar"&&a.chart.type!=="candlestick"&&a.chart.type!=="rangeBar"&&a.chart.type!=="boxPlot"?10:p/1.75)&&(o.skipFirstTimelinelabel=!0)}else f==="datetime"?r.dCtx.gridPad.right<p&&!o.rotateXLabels&&(o.skipLastTimelinelabel=!0):f!=="datetime"&&r.dCtx.gridPad.right<p/2-r.dCtx.yAxisWidthRight&&!o.rotateXLabels&&!n.config.xaxis.labels.trim&&(r.dCtx.xPadRight=p/2+1)}(y)};a.yaxis.forEach(function(y,x){m?(r.dCtx.gridPad.left<p&&(r.dCtx.xPadLeft=p/2+1),r.dCtx.xPadRight=p/2+1):v(y,x)})}}]),t}(),F_e=function(){function t(e){Be(this,t),this.w=e.w,this.dCtx=e}return Fe(t,[{key:"getyAxisLabelsCoords",value:function(){var e=this,r=this.w,n=[],o=10,a=new Zl(this.dCtx.ctx);return r.config.yaxis.map(function(f,p){var m={seriesIndex:p,dataPointIndex:-1,w:r},v=r.globals.yAxisScale[p],y=0;if(!a.isYAxisHidden(p)&&f.labels.show&&f.labels.minWidth!==void 0&&(y=f.labels.minWidth),!a.isYAxisHidden(p)&&f.labels.show&&v.result.length){var x=r.globals.yLabelFormatters[p],k=v.niceMin===Number.MIN_VALUE?0:v.niceMin,S=v.result.reduce(function(I,B){var U,H;return((U=String(x(I,m)))===null||U===void 0?void 0:U.length)>((H=String(x(B,m)))===null||H===void 0?void 0:H.length)?I:B},k),O=S=x(S,m);if(S!==void 0&&S.length!==0||(S=v.niceMax),r.globals.isBarHorizontal){o=0;var C=r.globals.labels.slice();S=se.getLargestStringFromArr(C),S=x(S,{seriesIndex:p,dataPointIndex:-1,w:r}),O=e.dCtx.dimHelpers.getLargestStringFromMultiArr(S,C)}var R=new xe(e.dCtx.ctx),E="rotate(".concat(f.labels.rotate," 0 0)"),P=R.getTextRects(S,f.labels.style.fontSize,f.labels.style.fontFamily,E,!1),M=P;S!==O&&(M=R.getTextRects(O,f.labels.style.fontSize,f.labels.style.fontFamily,E,!1)),n.push({width:(y>M.width||y>P.width?y:M.width>P.width?M.width:P.width)+o,height:M.height>P.height?M.height:P.height})}else n.push({width:0,height:0})}),n}},{key:"getyAxisTitleCoords",value:function(){var e=this,r=this.w,n=[];return r.config.yaxis.map(function(o,a){if(o.show&&o.title.text!==void 0){var f=new xe(e.dCtx.ctx),p="rotate(".concat(o.title.rotate," 0 0)"),m=f.getTextRects(o.title.text,o.title.style.fontSize,o.title.style.fontFamily,p,!1);n.push({width:m.width,height:m.height})}else n.push({width:0,height:0})}),n}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,r=0,n=0,o=0,a=e.globals.yAxisScale.length>1?10:0,f=new Zl(this.dCtx.ctx),p=function(m,v){var y=e.config.yaxis[v].floating,x=0;m.width>0&&!y?(x=m.width+a,function(k){return e.globals.ignoreYAxisIndexes.indexOf(k)>-1}(v)&&(x=x-m.width-a)):x=y||f.isYAxisHidden(v)?0:5,e.config.yaxis[v].opposite?o+=x:n+=x,r+=x};return e.globals.yLabelsCoords.map(function(m,v){p(m,v)}),e.globals.yTitleCoords.map(function(m,v){p(m,v)}),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(r=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=n,this.dCtx.yAxisWidthRight=o,r}}]),t}(),H_e=function(){function t(e){Be(this,t),this.w=e.w,this.dCtx=e}return Fe(t,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var r=this.w,n=r.config,o=r.globals;if(o.noData||o.collapsedSeries.length+o.ancillaryCollapsedSeries.length===n.series.length)return 0;var a=function(S){return["bar","rangeBar","candlestick","boxPlot"].includes(S)},f=n.chart.type,p=0,m=a(f)?n.series.length:1;o.comboBarCount>0&&(m=o.comboBarCount),o.collapsedSeries.forEach(function(S){a(S.type)&&(m-=1)}),n.chart.stacked&&(m=1);var v=a(f)||o.comboBarCount>0,y=Math.abs(o.initialMaxX-o.initialMinX);if(v&&o.isXNumeric&&!o.isBarHorizontal&&m>0&&y!==0){y<=3&&(y=o.dataPoints);var x=y/e,k=o.minXDiff&&o.minXDiff/x>0?o.minXDiff/x:0;k>e/2&&(k/=2),(p=k*parseInt(n.plotOptions.bar.columnWidth,10)/100)<1&&(p=1),o.barPadForNumericAxis=p}return p}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,r=this.w,n=r.globals,o=this.dCtx.isSparkline||!n.axisCharts?0:10;["title","subtitle"].forEach(function(p){r.config[p].text!==void 0?o+=r.config[p].margin:o+=e.dCtx.isSparkline||!n.axisCharts?0:5}),!r.config.legend.show||r.config.legend.position!=="bottom"||r.config.legend.floating||n.axisCharts||(o+=10);var a=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),f=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");n.gridHeight-=a.height+f.height+o,n.translateY+=a.height+f.height+o}},{key:"setGridXPosForDualYAxis",value:function(e,r){var n=this.w,o=new Zl(this.dCtx.ctx);n.config.yaxis.forEach(function(a,f){n.globals.ignoreYAxisIndexes.indexOf(f)!==-1||a.floating||o.isYAxisHidden(f)||(a.opposite&&(n.globals.translateX-=r[f].width+e[f].width+parseInt(a.labels.style.fontSize,10)/1.2+12),n.globals.translateX<2&&(n.globals.translateX=2))})}}]),t}(),Rw=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new D_e(this),this.dimYAxis=new F_e(this),this.dimXAxis=new B_e(this),this.dimGrid=new H_e(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return Fe(t,[{key:"plotCoords",value:function(){var e=this,r=this.w,n=r.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};var o=Array.isArray(r.config.stroke.width)?Math.max.apply(Math,ln(r.config.stroke.width)):r.config.stroke.width;this.isSparkline&&((r.config.markers.discrete.length>0||r.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(f){var p=PW(f,2),m=p[0],v=p[1];e.gridPad[m]=Math.max(v,e.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(o/2,this.gridPad.top),this.gridPad.bottom=Math.max(o/2,this.gridPad.bottom)),n.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),n.gridHeight=n.gridHeight-this.gridPad.top-this.gridPad.bottom,n.gridWidth=n.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var a=this.dimGrid.gridPadForColumnsInNumericAxis(n.gridWidth);n.gridWidth=n.gridWidth-2*a,n.translateX=n.translateX+this.gridPad.left+this.xPadLeft+(a>0?a:0),n.translateY=n.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,r=this.w,n=r.globals,o=this.dimYAxis.getyAxisLabelsCoords(),a=this.dimYAxis.getyAxisTitleCoords();n.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),r.globals.yLabelsCoords=[],r.globals.yTitleCoords=[],r.config.yaxis.map(function(S,O){r.globals.yLabelsCoords.push({width:o[O].width,index:O}),r.globals.yTitleCoords.push({width:a[O].width,index:O})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var f=this.dimXAxis.getxAxisLabelsCoords(),p=this.dimXAxis.getxAxisGroupLabelsCoords(),m=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(f,m,p),n.translateXAxisY=r.globals.rotateXLabels?this.xAxisHeight/8:-4,n.translateXAxisX=r.globals.rotateXLabels&&r.globals.isXNumeric&&r.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,r.globals.isBarHorizontal&&(n.rotateXLabels=!1,n.translateXAxisY=parseInt(r.config.xaxis.labels.style.fontSize,10)/1.5*-1),n.translateXAxisY=n.translateXAxisY+r.config.xaxis.labels.offsetY,n.translateXAxisX=n.translateXAxisX+r.config.xaxis.labels.offsetX;var v=this.yAxisWidth,y=this.xAxisHeight;n.xAxisLabelsHeight=this.xAxisHeight-m.height,n.xAxisGroupLabelsHeight=n.xAxisLabelsHeight-f.height,n.xAxisLabelsWidth=this.xAxisWidth,n.xAxisHeight=this.xAxisHeight;var x=10;(r.config.chart.type==="radar"||this.isSparkline)&&(v=0,y=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||r.config.chart.type==="treemap")&&(v=0,y=0,x=0),this.isSparkline||r.config.chart.type==="treemap"||this.dimXAxis.additionalPaddingXLabels(f);var k=function(){n.translateX=v+e.datalabelsCoords.width,n.gridHeight=n.svgHeight-e.lgRect.height-y-(e.isSparkline||r.config.chart.type==="treemap"?0:r.globals.rotateXLabels?10:15),n.gridWidth=n.svgWidth-v-2*e.datalabelsCoords.width};switch(r.config.xaxis.position==="top"&&(x=n.xAxisHeight-r.config.xaxis.axisTicks.height-5),r.config.legend.position){case"bottom":n.translateY=x,k();break;case"top":n.translateY=this.lgRect.height+x,k();break;case"left":n.translateY=x,n.translateX=this.lgRect.width+v+this.datalabelsCoords.width,n.gridHeight=n.svgHeight-y-12,n.gridWidth=n.svgWidth-this.lgRect.width-v-2*this.datalabelsCoords.width;break;case"right":n.translateY=x,n.translateX=v+this.datalabelsCoords.width,n.gridHeight=n.svgHeight-y-12,n.gridWidth=n.svgWidth-this.lgRect.width-v-2*this.datalabelsCoords.width-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(a,o),new x5(this.ctx).setYAxisXPosition(o,a)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,r=e.globals,n=e.config,o=0;e.config.legend.show&&!e.config.legend.floating&&(o=20);var a=n.chart.type==="pie"||n.chart.type==="polarArea"||n.chart.type==="donut"?"pie":"radialBar",f=n.plotOptions[a].offsetY,p=n.plotOptions[a].offsetX;if(!n.legend.show||n.legend.floating){r.gridHeight=r.svgHeight;var m=r.dom.elWrap.getBoundingClientRect().width;return r.gridWidth=Math.min(m,r.gridHeight),r.translateY=f,void(r.translateX=p+(r.svgWidth-r.gridWidth)/2)}switch(n.legend.position){case"bottom":r.gridHeight=r.svgHeight-this.lgRect.height,r.gridWidth=r.svgWidth,r.translateY=f-10,r.translateX=p+(r.svgWidth-r.gridWidth)/2;break;case"top":r.gridHeight=r.svgHeight-this.lgRect.height,r.gridWidth=r.svgWidth,r.translateY=this.lgRect.height+f+10,r.translateX=p+(r.svgWidth-r.gridWidth)/2;break;case"left":r.gridWidth=r.svgWidth-this.lgRect.width-o,r.gridHeight=n.chart.height!=="auto"?r.svgHeight:r.gridWidth,r.translateY=f,r.translateX=p+this.lgRect.width+o;break;case"right":r.gridWidth=r.svgWidth-this.lgRect.width-o-5,r.gridHeight=n.chart.height!=="auto"?r.svgHeight:r.gridWidth,r.translateY=f,r.translateX=p+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,r,n){var o=this.w,a=o.globals.hasXaxisGroups?2:1,f=n.height+e.height+r.height,p=o.globals.isMultiLineX?1.2:o.globals.LINE_HEIGHT_RATIO,m=o.globals.rotateXLabels?22:10,v=o.globals.rotateXLabels&&o.config.legend.position==="bottom"?10:0;this.xAxisHeight=f*p+a*m+v,this.xAxisWidth=e.width,this.xAxisHeight-r.height>o.config.xaxis.labels.maxHeight&&(this.xAxisHeight=o.config.xaxis.labels.maxHeight),o.config.xaxis.labels.minHeight&&this.xAxisHeight<o.config.xaxis.labels.minHeight&&(this.xAxisHeight=o.config.xaxis.labels.minHeight),o.config.xaxis.floating&&(this.xAxisHeight=0);var y=0,x=0;o.config.yaxis.forEach(function(k){y+=k.labels.minWidth,x+=k.labels.maxWidth}),this.yAxisWidth<y&&(this.yAxisWidth=y),this.yAxisWidth>x&&(this.yAxisWidth=x)}}]),t}(),U_e=function(){function t(e){Be(this,t),this.w=e.w,this.lgCtx=e}return Fe(t,[{key:"getLegendStyles",value:function(){var e,r,n,o=document.createElement("style");o.setAttribute("type","text/css");var a=((e=this.lgCtx.ctx)===null||e===void 0||(r=e.opts)===null||r===void 0||(n=r.chart)===null||n===void 0?void 0:n.nonce)||this.w.config.chart.nonce;a&&o.setAttribute("nonce",a);var f=document.createTextNode(cX);return o.appendChild(f),o}},{key:"getLegendDimensions",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),r=e.width;return{clwh:e.height,clww:r}}},{key:"appendToForeignObject",value:function(){var e=this.w.globals;this.w.config.chart.injectStyleSheet!==!1&&e.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(e,r){var n=this,o=this.w;if(o.globals.axisCharts||o.config.chart.type==="radialBar"){o.globals.resized=!0;var a=null,f=null;o.globals.risingSeries=[],o.globals.axisCharts?(a=o.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),f=parseInt(a.getAttribute("data:realIndex"),10)):(a=o.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),f=parseInt(a.getAttribute("rel"),10)-1),r?[{cs:o.globals.collapsedSeries,csi:o.globals.collapsedSeriesIndices},{cs:o.globals.ancillaryCollapsedSeries,csi:o.globals.ancillaryCollapsedSeriesIndices}].forEach(function(y){n.riseCollapsedSeries(y.cs,y.csi,f)}):this.hideSeries({seriesEl:a,realIndex:f})}else{var p=o.globals.dom.Paper.findOne(" .apexcharts-series[rel='".concat(e+1,"'] path")),m=o.config.chart.type;if(m==="pie"||m==="polarArea"||m==="donut"){var v=o.config.plotOptions.pie.donut.labels;new xe(this.lgCtx.ctx).pathMouseDown(p,null),this.lgCtx.ctx.pie.printDataLabelsInner(p.node,v)}p.fire("click")}}},{key:"getSeriesAfterCollapsing",value:function(e){var r=e.realIndex,n=this.w,o=n.globals,a=se.clone(n.config.series);if(o.axisCharts){var f=n.config.yaxis[o.seriesYAxisReverseMap[r]],p={index:r,data:a[r].data.slice(),type:a[r].type||n.config.chart.type};if(f&&f.show&&f.showAlways)o.ancillaryCollapsedSeriesIndices.indexOf(r)<0&&(o.ancillaryCollapsedSeries.push(p),o.ancillaryCollapsedSeriesIndices.push(r));else if(o.collapsedSeriesIndices.indexOf(r)<0){o.collapsedSeries.push(p),o.collapsedSeriesIndices.push(r);var m=o.risingSeries.indexOf(r);o.risingSeries.splice(m,1)}}else o.collapsedSeries.push({index:r,data:a[r]}),o.collapsedSeriesIndices.push(r);return o.allSeriesCollapsed=o.collapsedSeries.length+o.ancillaryCollapsedSeries.length===n.config.series.length,this._getSeriesBasedOnCollapsedState(a)}},{key:"hideSeries",value:function(e){for(var r=e.seriesEl,n=e.realIndex,o=this.w,a=this.getSeriesAfterCollapsing({realIndex:n}),f=r.childNodes,p=0;p<f.length;p++)f[p].classList.contains("apexcharts-series-markers-wrap")&&(f[p].classList.contains("apexcharts-hide")?f[p].classList.remove("apexcharts-hide"):f[p].classList.add("apexcharts-hide"));this.lgCtx.ctx.updateHelpers._updateSeries(a,o.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,r,n){var o=this.w,a=se.clone(o.config.series);if(e.length>0){for(var f=0;f<e.length;f++)e[f].index===n&&(o.globals.axisCharts?a[n].data=e[f].data.slice():a[n]=e[f].data,typeof a[n]!="number"&&(a[n].hidden=!1),e.splice(f,1),r.splice(f,1),o.globals.risingSeries.push(n));a=this._getSeriesBasedOnCollapsedState(a),this.lgCtx.ctx.updateHelpers._updateSeries(a,o.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var r=this.w,n=0;return r.globals.axisCharts?e.forEach(function(o,a){r.globals.collapsedSeriesIndices.indexOf(a)<0&&r.globals.ancillaryCollapsedSeriesIndices.indexOf(a)<0||(e[a].data=[],n++)}):e.forEach(function(o,a){!r.globals.collapsedSeriesIndices.indexOf(a)<0&&(e[a]=0,n++)}),r.globals.allSeriesCollapsed=n===e.length,e}}]),t}(),fX=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new U_e(this)}return Fe(t,[{key:"init",value:function(){var e=this.w,r=e.globals,n=e.config,o=n.legend.showForSingleSeries&&r.series.length===1||this.isBarsDistributed||r.series.length>1;if(this.legendHelpers.appendToForeignObject(),(o||!r.axisCharts)&&n.legend.show){for(;r.dom.elLegendWrap.firstChild;)r.dom.elLegendWrap.removeChild(r.dom.elLegendWrap.firstChild);this.drawLegends(),n.legend.position==="bottom"||n.legend.position==="top"?this.legendAlignHorizontal():n.legend.position!=="right"&&n.legend.position!=="left"||this.legendAlignVertical()}}},{key:"createLegendMarker",value:function(e){var r=e.i,n=e.fillcolor,o=this.w,a=document.createElement("span");a.classList.add("apexcharts-legend-marker");var f=o.config.legend.markers.shape||o.config.markers.shape,p=f;Array.isArray(f)&&(p=f[r]);var m=Array.isArray(o.config.legend.markers.size)?parseFloat(o.config.legend.markers.size[r]):parseFloat(o.config.legend.markers.size),v=Array.isArray(o.config.legend.markers.offsetX)?parseFloat(o.config.legend.markers.offsetX[r]):parseFloat(o.config.legend.markers.offsetX),y=Array.isArray(o.config.legend.markers.offsetY)?parseFloat(o.config.legend.markers.offsetY[r]):parseFloat(o.config.legend.markers.offsetY),x=Array.isArray(o.config.legend.markers.strokeWidth)?parseFloat(o.config.legend.markers.strokeWidth[r]):parseFloat(o.config.legend.markers.strokeWidth),k=a.style;if(k.height=2*(m+x)+"px",k.width=2*(m+x)+"px",k.left=v+"px",k.top=y+"px",o.config.legend.markers.customHTML)k.background="transparent",k.color=n[r],Array.isArray(o.config.legend.markers.customHTML)?o.config.legend.markers.customHTML[r]&&(a.innerHTML=o.config.legend.markers.customHTML[r]()):a.innerHTML=o.config.legend.markers.customHTML();else{var S=new Sh(this.ctx).getMarkerConfig({cssClass:"apexcharts-legend-marker apexcharts-marker apexcharts-marker-".concat(p),seriesIndex:r,strokeWidth:x,size:m}),O=window.SVG().addTo(a).size("100%","100%"),C=new xe(this.ctx).drawMarker(0,0,Oe(Oe({},S),{},{pointFillColor:Array.isArray(n)?n[r]:S.pointFillColor,shape:p}));o.globals.dom.Paper.find(".apexcharts-legend-marker.apexcharts-marker").forEach(function(R){R.node.classList.contains("apexcharts-marker-triangle")?R.node.style.transform="translate(50%, 45%)":R.node.style.transform="translate(50%, 50%)"}),O.add(C)}return a}},{key:"drawLegends",value:function(){var e=this,r=this,n=this.w,o=n.config.legend.fontFamily,a=n.globals.seriesNames,f=n.config.legend.markers.fillColors?n.config.legend.markers.fillColors.slice():n.globals.colors.slice();if(n.config.chart.type==="heatmap"){var p=n.config.plotOptions.heatmap.colorScale.ranges;a=p.map(function(S){return S.name?S.name:S.from+" - "+S.to}),f=p.map(function(S){return S.color})}else this.isBarsDistributed&&(a=n.globals.labels.slice());n.config.legend.customLegendItems.length&&(a=n.config.legend.customLegendItems);var m=n.globals.legendFormatter,v=n.config.legend.inverseOrder,y=[];n.globals.seriesGroups.length>1&&n.config.legend.clusterGroupedSeries&&n.globals.seriesGroups.forEach(function(S,O){y[O]=document.createElement("div"),y[O].classList.add("apexcharts-legend-group","apexcharts-legend-group-".concat(O)),n.config.legend.clusterGroupedSeriesOrientation==="horizontal"?n.globals.dom.elLegendWrap.classList.add("apexcharts-legend-group-horizontal"):y[O].classList.add("apexcharts-legend-group-vertical")});for(var x=function(S){var O,C=m(a[S],{seriesIndex:S,w:n}),R=!1,E=!1;if(n.globals.collapsedSeries.length>0)for(var P=0;P<n.globals.collapsedSeries.length;P++)n.globals.collapsedSeries[P].index===S&&(R=!0);if(n.globals.ancillaryCollapsedSeriesIndices.length>0)for(var M=0;M<n.globals.ancillaryCollapsedSeriesIndices.length;M++)n.globals.ancillaryCollapsedSeriesIndices[M]===S&&(E=!0);var I=e.createLegendMarker({i:S,fillcolor:f});xe.setAttrs(I,{rel:S+1,"data:collapsed":R||E}),(R||E)&&I.classList.add("apexcharts-inactive-legend");var B=document.createElement("div"),U=document.createElement("span");U.classList.add("apexcharts-legend-text"),U.innerHTML=Array.isArray(C)?C.join(" "):C;var H=n.config.legend.labels.useSeriesColors?n.globals.colors[S]:Array.isArray(n.config.legend.labels.colors)?(O=n.config.legend.labels.colors)===null||O===void 0?void 0:O[S]:n.config.legend.labels.colors;H||(H=n.config.chart.foreColor),U.style.color=H,U.style.fontSize=parseFloat(n.config.legend.fontSize)+"px",U.style.fontWeight=n.config.legend.fontWeight,U.style.fontFamily=o||n.config.chart.fontFamily,xe.setAttrs(U,{rel:S+1,i:S,"data:default-text":encodeURIComponent(C),"data:collapsed":R||E}),B.appendChild(I),B.appendChild(U);var V=new Hr(e.ctx);n.config.legend.showForZeroSeries||V.getSeriesTotalByIndex(S)===0&&V.seriesHaveSameValues(S)&&!V.isSeriesNull(S)&&n.globals.collapsedSeriesIndices.indexOf(S)===-1&&n.globals.ancillaryCollapsedSeriesIndices.indexOf(S)===-1&&B.classList.add("apexcharts-hidden-zero-series"),n.config.legend.showForNullSeries||V.isSeriesNull(S)&&n.globals.collapsedSeriesIndices.indexOf(S)===-1&&n.globals.ancillaryCollapsedSeriesIndices.indexOf(S)===-1&&B.classList.add("apexcharts-hidden-null-series"),y.length?n.globals.seriesGroups.forEach(function(W,G){var Z;W.includes((Z=n.config.series[S])===null||Z===void 0?void 0:Z.name)&&(n.globals.dom.elLegendWrap.appendChild(y[G]),y[G].appendChild(B))}):n.globals.dom.elLegendWrap.appendChild(B),n.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(n.config.legend.horizontalAlign)),n.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+n.config.legend.position),B.classList.add("apexcharts-legend-series"),B.style.margin="".concat(n.config.legend.itemMargin.vertical,"px ").concat(n.config.legend.itemMargin.horizontal,"px"),n.globals.dom.elLegendWrap.style.width=n.config.legend.width?n.config.legend.width+"px":"",n.globals.dom.elLegendWrap.style.height=n.config.legend.height?n.config.legend.height+"px":"",xe.setAttrs(B,{rel:S+1,seriesName:se.escapeString(a[S]),"data:collapsed":R||E}),(R||E)&&B.classList.add("apexcharts-inactive-legend"),n.config.legend.onItemClick.toggleDataSeries||B.classList.add("apexcharts-no-click")},k=v?a.length-1:0;v?k>=0:k<=a.length-1;v?k--:k++)x(k);n.globals.dom.elWrap.addEventListener("click",r.onLegendClick,!0),n.config.legend.onItemHover.highlightDataSeries&&n.config.legend.customLegendItems.length===0&&(n.globals.dom.elWrap.addEventListener("mousemove",r.onLegendHovered,!0),n.globals.dom.elWrap.addEventListener("mouseout",r.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(e,r){var n=this.w,o=n.globals.dom.elLegendWrap,a=o.clientHeight,f=0,p=0;if(n.config.legend.position==="bottom")p=n.globals.svgHeight-Math.min(a,n.globals.svgHeight/2)-5;else if(n.config.legend.position==="top"){var m=new Rw(this.ctx),v=m.dimHelpers.getTitleSubtitleCoords("title").height,y=m.dimHelpers.getTitleSubtitleCoords("subtitle").height;p=(v>0?v-10:0)+(y>0?y-10:0)}o.style.position="absolute",f=f+e+n.config.legend.offsetX,p=p+r+n.config.legend.offsetY,o.style.left=f+"px",o.style.top=p+"px",n.config.legend.position==="right"&&(o.style.left="auto",o.style.right=25+n.config.legend.offsetX+"px"),["width","height"].forEach(function(x){o.style[x]&&(o.style[x]=parseInt(n.config.legend[x],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.elLegendWrap.style.right=0;var r=new Rw(this.ctx),n=r.dimHelpers.getTitleSubtitleCoords("title"),o=r.dimHelpers.getTitleSubtitleCoords("subtitle"),a=0;e.config.legend.position==="top"&&(a=n.height+o.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,a)}},{key:"legendAlignVertical",value:function(){var e=this.w,r=this.legendHelpers.getLegendDimensions(),n=0;e.config.legend.position==="left"&&(n=20),e.config.legend.position==="right"&&(n=e.globals.svgWidth-r.clww-10),this.setLegendWrapXY(n,20)}},{key:"onLegendHovered",value:function(e){var r=this.w,n=e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if(r.config.chart.type==="heatmap"||this.isBarsDistributed){if(n){var o=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,o,this.w]),new Ai(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&n&&new Ai(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var r=this.w;if(!r.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var n=parseInt(e.target.getAttribute("rel"),10)-1,o=e.target.getAttribute("data:collapsed")==="true",a=this.w.config.chart.events.legendClick;typeof a=="function"&&a(this.ctx,n,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,n,this.w]);var f=this.w.config.legend.markers.onClick;typeof f=="function"&&e.target.classList.contains("apexcharts-legend-marker")&&(f(this.ctx,n,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,n,this.w])),r.config.chart.type!=="treemap"&&r.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&r.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(n,o)}}}]),t}(),hX=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w;var r=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=r.globals.minX,this.maxX=r.globals.maxX}return Fe(t,[{key:"createToolbar",value:function(){var e=this,r=this.w,n=function(){return document.createElement("div")},o=n();if(o.setAttribute("class","apexcharts-toolbar"),o.style.top=r.config.chart.toolbar.offsetY+"px",o.style.right=3-r.config.chart.toolbar.offsetX+"px",r.globals.dom.elWrap.appendChild(o),this.elZoom=n(),this.elZoomIn=n(),this.elZoomOut=n(),this.elPan=n(),this.elSelection=n(),this.elZoomReset=n(),this.elMenuIcon=n(),this.elMenu=n(),this.elCustomIcons=[],this.t=r.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var a=0;a<this.t.customIcons.length;a++)this.elCustomIcons.push(n());var f=[],p=function(x,k,S){var O=x.toLowerCase();e.t[O]&&r.config.chart.zoom.enabled&&f.push({el:k,icon:typeof e.t[O]=="string"?e.t[O]:S,title:e.localeValues[x],class:"apexcharts-".concat(O,"-icon")})};p("zoomIn",this.elZoomIn,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
    <path d="M0 0h24v24H0z" fill="none"/>
    <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
</svg>
`),p("zoomOut",this.elZoomOut,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
    <path d="M0 0h24v24H0z" fill="none"/>
    <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
</svg>
`);var m=function(x){e.t[x]&&r.config.chart[x].enabled&&f.push({el:x==="zoom"?e.elZoom:e.elSelection,icon:typeof e.t[x]=="string"?e.t[x]:x==="zoom"?`<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
    <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
    <path d="M0 0h24v24H0V0z" fill="none"/>
    <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>
</svg>`:`<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
    <path d="M0 0h24v24H0z" fill="none"/>
    <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>
</svg>`,title:e.localeValues[x==="zoom"?"selectionZoom":"selection"],class:"apexcharts-".concat(x,"-icon")})};m("zoom"),m("selection"),this.t.pan&&r.config.chart.zoom.enabled&&f.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
    <defs>
        <path d="M0 0h24v24H0z" id="a"/>
    </defs>
    <clipPath id="b">
        <use overflow="visible" xlink:href="#a"/>
    </clipPath>
    <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>
</svg>`,title:this.localeValues.pan,class:"apexcharts-pan-icon"}),p("reset",this.elZoomReset,`<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
    <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
    <path d="M0 0h24v24H0z" fill="none"/>
</svg>`),this.t.download&&f.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var v=0;v<this.elCustomIcons.length;v++)f.push({el:this.elCustomIcons[v],icon:this.t.customIcons[v].icon,title:this.t.customIcons[v].title,index:this.t.customIcons[v].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[v].class});f.forEach(function(x,k){x.index&&se.moveIndexInArray(f,k,x.index)});for(var y=0;y<f.length;y++)xe.setAttrs(f[y].el,{class:f[y].class,title:f[y].title}),f[y].el.innerHTML=f[y].icon,o.appendChild(f[y].el);this._createHamburgerMenu(o),r.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):r.globals.panEnabled?this.elPan.classList.add(this.selectedClass):r.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(e){this.elMenuItems=[],e.appendChild(this.elMenu),xe.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var r=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],n=0;n<r.length;n++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[n].innerHTML=r[n].title,xe.setAttrs(this.elMenuItems[n],{class:"apexcharts-menu-item ".concat(r[n].name),title:r[n].title}),this.elMenu.appendChild(this.elMenuItems[n])}},{key:"addToolbarEventListeners",value:function(){var e=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(n){n.classList.contains("exportSVG")?n.addEventListener("click",e.handleDownload.bind(e,"svg")):n.classList.contains("exportPNG")?n.addEventListener("click",e.handleDownload.bind(e,"png")):n.classList.contains("exportCSV")&&n.addEventListener("click",e.handleDownload.bind(e,"csv"))});for(var r=0;r<this.t.customIcons.length;r++)this.elCustomIcons[r].addEventListener("click",this.t.customIcons[r].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(e){this.ctx.getSyncedCharts().forEach(function(r){r.ctx.toolbar.toggleOtherControls();var n=e==="selection"?r.ctx.toolbar.elSelection:r.ctx.toolbar.elZoom,o=e==="selection"?"selectionEnabled":"zoomEnabled";r.w.globals[o]=!r.w.globals[o],n.classList.contains(r.ctx.toolbar.selectedClass)?n.classList.remove(r.ctx.toolbar.selectedClass):n.classList.add(r.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var e=this.w;this.elZoom||(this.elZoom=e.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(e){this.toggleOtherControls(),e==="pan"?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var r=e==="pan"?this.elPan:this.elZoom,n=e==="pan"?this.elZoom:this.elPan;r&&r.classList.add(this.selectedClass),n&&n.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(e){e.ctx.toolbar.toggleOtherControls(),e.w.globals.panEnabled=!e.w.globals.panEnabled,e.ctx.toolbar.elPan.classList.contains(e.ctx.toolbar.selectedClass)?e.ctx.toolbar.elPan.classList.remove(e.ctx.toolbar.selectedClass):e.ctx.toolbar.elPan.classList.add(e.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var e=this,r=this.w;r.globals.panEnabled=!1,r.globals.zoomEnabled=!1,r.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(n){n&&n.classList.remove(e.selectedClass)})}},{key:"handleZoomIn",value:function(){var e=this.w;e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY);var r=(this.minX+this.maxX)/2,n=(this.minX+r)/2,o=(this.maxX+r)/2,a=this._getNewMinXMaxX(n,o);e.globals.disableZoomIn||this.zoomUpdateOptions(a.minX,a.maxX)}},{key:"handleZoomOut",value:function(){var e=this.w;if(e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY),!(e.config.xaxis.type==="datetime"&&new Date(this.minX).getUTCFullYear()<1e3)){var r=(this.minX+this.maxX)/2,n=this.minX-(r-this.minX),o=this.maxX-(r-this.maxX),a=this._getNewMinXMaxX(n,o);e.globals.disableZoomOut||this.zoomUpdateOptions(a.minX,a.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,r){var n=this.w.config.xaxis.convertedCatToNumeric;return{minX:n?Math.floor(e):e,maxX:n?Math.floor(r):r}}},{key:"zoomUpdateOptions",value:function(e,r){var n=this.w;if(e!==void 0||r!==void 0){if(!(n.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,r=n.globals.dataPoints),r-e<2))){var o={min:e,max:r},a=this.getBeforeZoomRange(o);a&&(o=a.xaxis);var f={xaxis:o},p=se.clone(n.globals.initialConfig.yaxis);n.config.chart.group||(f.yaxis=p),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(f,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(o,p)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,r){typeof this.ev.zoomed=="function"&&(this.ev.zoomed(this.ctx,{xaxis:e,yaxis:r}),this.ctx.events.fireEvent("zoomed",{xaxis:e,yaxis:r}))}},{key:"getBeforeZoomRange",value:function(e,r){var n=null;return typeof this.ev.beforeZoom=="function"&&(n=this.ev.beforeZoom(this,{xaxis:e,yaxis:r})),n}},{key:"toggleMenu",value:function(){var e=this;window.setTimeout(function(){e.elMenu.classList.contains("apexcharts-menu-open")?e.elMenu.classList.remove("apexcharts-menu-open"):e.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(e){var r=this.w,n=new Um(this.ctx);switch(e){case"svg":n.exportToSVG(this.ctx);break;case"png":n.exportToPng(this.ctx);break;case"csv":n.exportToCSV({series:r.config.series,columnDelimiter:r.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(e){this.ctx.getSyncedCharts().forEach(function(r){var n=r.w;if(n.globals.lastXAxis.min=n.globals.initialConfig.xaxis.min,n.globals.lastXAxis.max=n.globals.initialConfig.xaxis.max,r.updateHelpers.revertDefaultAxisMinMax(),typeof n.config.chart.events.beforeResetZoom=="function"){var o=n.config.chart.events.beforeResetZoom(r,n);o&&r.updateHelpers.revertDefaultAxisMinMax(o)}typeof n.config.chart.events.zoomed=="function"&&r.ctx.toolbar.zoomCallback({min:n.config.xaxis.min,max:n.config.xaxis.max}),n.globals.zoomed=!1;var a=r.ctx.series.emptyCollapsedSeries(se.clone(n.globals.initialSeries));r.updateHelpers._updateSeries(a,n.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),t}(),V_e=function(t){gb(r,hX);var e=pb(r);function r(n){var o;return Be(this,r),(o=e.call(this,n)).ctx=n,o.w=n.w,o.dragged=!1,o.graphics=new xe(o.ctx),o.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend","wheel"],o.clientX=0,o.clientY=0,o.startX=0,o.endX=0,o.dragX=0,o.startY=0,o.endY=0,o.dragY=0,o.moveDirection="none",o.debounceTimer=null,o.debounceDelay=100,o.wheelDelay=400,o}return Fe(r,[{key:"init",value:function(n){var o=this,a=n.xyRatios,f=this.w,p=this;this.xyRatios=a,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=f.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.constraints=new Br(0,0,f.globals.gridWidth,f.globals.gridHeight),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),f.globals.dom.Paper.add(this.zoomRect),f.globals.dom.Paper.add(this.selectionRect),f.config.chart.selection.type==="x"?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:f.globals.gridWidth,maxY:f.globals.gridHeight}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):f.config.chart.selection.type==="y"?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:f.globals.gridWidth}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=f.globals.dom.baseEl.querySelector("".concat(f.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(m){o.hoverArea.addEventListener(m,p.svgMouseEvents.bind(p,a),{capture:!1,passive:!0})}),f.config.chart.zoom.enabled&&f.config.chart.zoom.allowMouseWheelZoom&&this.hoverArea.addEventListener("wheel",p.mouseWheelEvent.bind(p),{capture:!1,passive:!1})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(n,o){var a=this.w,f=this.ctx.toolbar,p=a.globals.zoomEnabled?a.config.chart.zoom.type:a.config.chart.selection.type,m=a.config.chart.toolbar.autoSelected;if(o.shiftKey?(this.shiftWasPressed=!0,f.enableZoomPanFromToolbar(m==="pan"?"zoom":"pan")):this.shiftWasPressed&&(f.enableZoomPanFromToolbar(m),this.shiftWasPressed=!1),o.target){var v,y=o.target.classList;if(o.target.parentNode&&o.target.parentNode!==null&&(v=o.target.parentNode.classList),!(y.contains("apexcharts-legend-marker")||y.contains("apexcharts-legend-text")||v&&v.contains("apexcharts-toolbar"))){if(this.clientX=o.type==="touchmove"||o.type==="touchstart"?o.touches[0].clientX:o.type==="touchend"?o.changedTouches[0].clientX:o.clientX,this.clientY=o.type==="touchmove"||o.type==="touchstart"?o.touches[0].clientY:o.type==="touchend"?o.changedTouches[0].clientY:o.clientY,o.type==="mousedown"&&o.which===1||o.type==="touchstart"){var x=this.gridRect.getBoundingClientRect();this.startX=this.clientX-x.left-a.globals.barPadForNumericAxis,this.startY=this.clientY-x.top,this.dragged=!1,this.w.globals.mousedown=!0}(o.type==="mousemove"&&o.which===1||o.type==="touchmove")&&(this.dragged=!0,a.globals.panEnabled?(a.globals.selection=null,this.w.globals.mousedown&&this.panDragging({context:this,zoomtype:p,xyRatios:n})):(this.w.globals.mousedown&&a.globals.zoomEnabled||this.w.globals.mousedown&&a.globals.selectionEnabled)&&(this.selection=this.selectionDrawing({context:this,zoomtype:p}))),o.type!=="mouseup"&&o.type!=="touchend"&&o.type!=="mouseleave"||this.handleMouseUp({zoomtype:p}),this.makeSelectionRectDraggable()}}}},{key:"handleMouseUp",value:function(n){var o,a=n.zoomtype,f=n.isResized,p=this.w,m=(o=this.gridRect)===null||o===void 0?void 0:o.getBoundingClientRect();m&&(this.w.globals.mousedown||f)&&(this.endX=this.clientX-m.left-p.globals.barPadForNumericAxis,this.endY=this.clientY-m.top,this.dragX=Math.abs(this.endX-this.startX),this.dragY=Math.abs(this.endY-this.startY),(p.globals.zoomEnabled||p.globals.selectionEnabled)&&this.selectionDrawn({context:this,zoomtype:a})),p.globals.zoomEnabled&&this.hideSelectionRect(this.selectionRect),this.dragged=!1,this.w.globals.mousedown=!1}},{key:"mouseWheelEvent",value:function(n){var o=this,a=this.w;n.preventDefault();var f=Date.now();f-a.globals.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(n),a.globals.lastWheelExecution=f),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){f-a.globals.lastWheelExecution>o.wheelDelay&&(o.executeMouseWheelZoom(n),a.globals.lastWheelExecution=f)},this.debounceDelay)}},{key:"executeMouseWheelZoom",value:function(n){var o,a=this.w;this.minX=a.globals.isRangeBar?a.globals.minY:a.globals.minX,this.maxX=a.globals.isRangeBar?a.globals.maxY:a.globals.maxX;var f=(o=this.gridRect)===null||o===void 0?void 0:o.getBoundingClientRect();if(f){var p,m,v,y=(n.clientX-f.left)/f.width,x=this.minX,k=this.maxX,S=k-x;if(n.deltaY<0){var O=x+y*S;m=O-(p=.5*S)/2,v=O+p/2}else m=x-(p=1.5*S)/2,v=k+p/2;if(!a.globals.isRangeBar){m=Math.max(m,a.globals.initialMinX),v=Math.min(v,a.globals.initialMaxX);var C=.01*(a.globals.initialMaxX-a.globals.initialMinX);if(v-m<C){var R=(m+v)/2;m=R-C/2,v=R+C/2}}var E=this._getNewMinXMaxX(m,v);isNaN(E.minX)||isNaN(E.maxX)||this.zoomUpdateOptions(E.minX,E.maxX)}}},{key:"makeSelectionRectDraggable",value:function(){var n=this,o=this.w;if(this.selectionRect){var a=this.selectionRect.node.getBoundingClientRect();a.width>0&&a.height>0&&(this.selectionRect.select(!1).resize(!1),this.selectionRect.select({createRot:function(){},updateRot:function(){},createHandle:function(f,p,m,v,y){return y==="l"||y==="r"?f.circle(8).css({"stroke-width":1,stroke:"#333",fill:"#fff"}):f.circle(0)},updateHandle:function(f,p){return f.center(p[0],p[1])}}).resize().on("resize",function(){var f=o.globals.zoomEnabled?o.config.chart.zoom.type:o.config.chart.selection.type;n.handleMouseUp({zoomtype:f,isResized:!0})}))}}},{key:"preselectedSelection",value:function(){var n=this.w,o=this.xyRatios;if(!n.globals.zoomEnabled){if(n.globals.selection!==void 0&&n.globals.selection!==null)this.drawSelectionRect(Oe(Oe({},n.globals.selection),{},{translateX:n.globals.translateX,translateY:n.globals.translateY}));else if(n.config.chart.selection.xaxis.min!==void 0&&n.config.chart.selection.xaxis.max!==void 0){var a=(n.config.chart.selection.xaxis.min-n.globals.minX)/o.xRatio,f=n.globals.gridWidth-(n.globals.maxX-n.config.chart.selection.xaxis.max)/o.xRatio-a;n.globals.isRangeBar&&(a=(n.config.chart.selection.xaxis.min-n.globals.yAxisScale[0].niceMin)/o.invertedYRatio,f=(n.config.chart.selection.xaxis.max-n.config.chart.selection.xaxis.min)/o.invertedYRatio);var p={x:a,y:0,width:f,height:n.globals.gridHeight,translateX:n.globals.translateX,translateY:n.globals.translateY,selectionEnabled:!0};this.drawSelectionRect(p),this.makeSelectionRectDraggable(),typeof n.config.chart.events.selection=="function"&&n.config.chart.events.selection(this.ctx,{xaxis:{min:n.config.chart.selection.xaxis.min,max:n.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(n){var o=n.x,a=n.y,f=n.width,p=n.height,m=n.translateX,v=m===void 0?0:m,y=n.translateY,x=y===void 0?0:y,k=this.w,S=this.zoomRect,O=this.selectionRect;if(this.dragged||k.globals.selection!==null){var C={transform:"translate("+v+", "+x+")"};k.globals.zoomEnabled&&this.dragged&&(f<0&&(f=1),S.attr({x:o,y:a,width:f,height:p,fill:k.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":k.config.chart.zoom.zoomedArea.fill.opacity,stroke:k.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":k.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":k.config.chart.zoom.zoomedArea.stroke.opacity}),xe.setAttrs(S.node,C)),k.globals.selectionEnabled&&(O.attr({x:o,y:a,width:f>0?f:0,height:p>0?p:0,fill:k.config.chart.selection.fill.color,"fill-opacity":k.config.chart.selection.fill.opacity,stroke:k.config.chart.selection.stroke.color,"stroke-width":k.config.chart.selection.stroke.width,"stroke-dasharray":k.config.chart.selection.stroke.dashArray,"stroke-opacity":k.config.chart.selection.stroke.opacity}),xe.setAttrs(O.node,C))}}},{key:"hideSelectionRect",value:function(n){n&&n.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(n){var o=n.context,a=n.zoomtype,f=this.w,p=o,m=this.gridRect.getBoundingClientRect(),v=p.startX-1,y=p.startY,x=!1,k=!1,S=p.clientX-m.left-f.globals.barPadForNumericAxis,O=p.clientY-m.top,C=S-v,R=O-y,E={translateX:f.globals.translateX,translateY:f.globals.translateY};return Math.abs(C+v)>f.globals.gridWidth?C=f.globals.gridWidth-v:S<0&&(C=v),v>S&&(x=!0,C=Math.abs(C)),y>O&&(k=!0,R=Math.abs(R)),E=Oe(Oe({},E=a==="x"?{x:x?v-C:v,y:0,width:C,height:f.globals.gridHeight}:a==="y"?{x:0,y:k?y-R:y,width:f.globals.gridWidth,height:R}:{x:x?v-C:v,y:k?y-R:y,width:C,height:R}),{},{translateX:f.globals.translateX,translateY:f.globals.translateY}),p.drawSelectionRect(E),p.selectionDragging("resizing"),E}},{key:"selectionDragging",value:function(n,o){var a=this,f=this.w;if(o){o.preventDefault();var p=o.detail,m=p.handler,v=p.box,y=v.x,x=v.y;y<this.constraints.x&&(y=this.constraints.x),x<this.constraints.y&&(x=this.constraints.y),v.x2>this.constraints.x2&&(y=this.constraints.x2-v.w),v.y2>this.constraints.y2&&(x=this.constraints.y2-v.h),m.move(y,x);var k=this.xyRatios,S=this.selectionRect,O=0;n==="resizing"&&(O=30);var C=function(E){return parseFloat(S.node.getAttribute(E))},R={x:C("x"),y:C("y"),width:C("width"),height:C("height")};f.globals.selection=R,typeof f.config.chart.events.selection=="function"&&f.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var E,P,M,I,B=a.gridRect.getBoundingClientRect(),U=S.node.getBoundingClientRect();f.globals.isRangeBar?(E=f.globals.yAxisScale[0].niceMin+(U.left-B.left)*k.invertedYRatio,P=f.globals.yAxisScale[0].niceMin+(U.right-B.left)*k.invertedYRatio,M=0,I=1):(E=f.globals.xAxisScale.niceMin+(U.left-B.left)*k.xRatio,P=f.globals.xAxisScale.niceMin+(U.right-B.left)*k.xRatio,M=f.globals.yAxisScale[0].niceMin+(B.bottom-U.bottom)*k.yRatio[0],I=f.globals.yAxisScale[0].niceMax-(U.top-B.top)*k.yRatio[0]);var H={xaxis:{min:E,max:P},yaxis:{min:M,max:I}};f.config.chart.events.selection(a.ctx,H),f.config.chart.brush.enabled&&f.config.chart.events.brushScrolled!==void 0&&f.config.chart.events.brushScrolled(a.ctx,H)},O))}}},{key:"selectionDrawn",value:function(n){var o,a,f=n.context,p=n.zoomtype,m=this.w,v=f,y=this.xyRatios,x=this.ctx.toolbar,k=m.globals.zoomEnabled?v.zoomRect.node.getBoundingClientRect():v.selectionRect.node.getBoundingClientRect(),S=v.gridRect.getBoundingClientRect(),O=k.left-S.left-m.globals.barPadForNumericAxis,C=k.right-S.left-m.globals.barPadForNumericAxis,R=k.top-S.top,E=k.bottom-S.top;m.globals.isRangeBar?(o=m.globals.yAxisScale[0].niceMin+O*y.invertedYRatio,a=m.globals.yAxisScale[0].niceMin+C*y.invertedYRatio):(o=m.globals.xAxisScale.niceMin+O*y.xRatio,a=m.globals.xAxisScale.niceMin+C*y.xRatio);var P=[],M=[];if(m.config.yaxis.forEach(function(G,Z){var K=m.globals.seriesYAxisMap[Z][0],Q=m.globals.yAxisScale[Z].niceMax-y.yRatio[K]*R,oe=m.globals.yAxisScale[Z].niceMax-y.yRatio[K]*E;P.push(Q),M.push(oe)}),v.dragged&&(v.dragX>10||v.dragY>10)&&o!==a){if(m.globals.zoomEnabled){var I=se.clone(m.globals.initialConfig.yaxis),B=se.clone(m.globals.initialConfig.xaxis);if(m.globals.zoomed=!0,m.config.xaxis.convertedCatToNumeric&&(o=Math.floor(o),a=Math.floor(a),o<1&&(o=1,a=m.globals.dataPoints),a-o<2&&(a=o+1)),p!=="xy"&&p!=="x"||(B={min:o,max:a}),p!=="xy"&&p!=="y"||I.forEach(function(G,Z){I[Z].min=M[Z],I[Z].max=P[Z]}),x){var U=x.getBeforeZoomRange(B,I);U&&(B=U.xaxis?U.xaxis:B,I=U.yaxis?U.yaxis:I)}var H={xaxis:B};m.config.chart.group||(H.yaxis=I),v.ctx.updateHelpers._updateOptions(H,!1,v.w.config.chart.animations.dynamicAnimation.enabled),typeof m.config.chart.events.zoomed=="function"&&x.zoomCallback(B,I)}else if(m.globals.selectionEnabled){var V,W=null;V={min:o,max:a},p!=="xy"&&p!=="y"||(W=se.clone(m.config.yaxis)).forEach(function(G,Z){W[Z].min=M[Z],W[Z].max=P[Z]}),m.globals.selection=v.selection,typeof m.config.chart.events.selection=="function"&&m.config.chart.events.selection(v.ctx,{xaxis:V,yaxis:W})}}}},{key:"panDragging",value:function(n){var o=n.context,a=this.w,f=o;if(a.globals.lastClientPosition.x!==void 0){var p=a.globals.lastClientPosition.x-f.clientX,m=a.globals.lastClientPosition.y-f.clientY;Math.abs(p)>Math.abs(m)&&p>0?this.moveDirection="left":Math.abs(p)>Math.abs(m)&&p<0?this.moveDirection="right":Math.abs(m)>Math.abs(p)&&m>0?this.moveDirection="up":Math.abs(m)>Math.abs(p)&&m<0&&(this.moveDirection="down")}a.globals.lastClientPosition={x:f.clientX,y:f.clientY};var v=a.globals.isRangeBar?a.globals.minY:a.globals.minX,y=a.globals.isRangeBar?a.globals.maxY:a.globals.maxX;f.panScrolled(v,y)}},{key:"panScrolled",value:function(n,o){var a=this.w,f=this.xyRatios,p=se.clone(a.globals.initialConfig.yaxis),m=f.xRatio,v=a.globals.minX,y=a.globals.maxX;a.globals.isRangeBar&&(m=f.invertedYRatio,v=a.globals.minY,y=a.globals.maxY),this.moveDirection==="left"?(n=v+a.globals.gridWidth/15*m,o=y+a.globals.gridWidth/15*m):this.moveDirection==="right"&&(n=v-a.globals.gridWidth/15*m,o=y-a.globals.gridWidth/15*m),a.globals.isRangeBar||(n<a.globals.initialMinX||o>a.globals.initialMaxX)&&(n=v,o=y);var x={xaxis:{min:n,max:o}};a.config.chart.group||(x.yaxis=p),this.updateScrolledChart(x,n,o)}},{key:"updateScrolledChart",value:function(n,o,a){var f=this.w;if(this.ctx.updateHelpers._updateOptions(n,!1,!1),typeof f.config.chart.events.scrolled=="function"){var p={xaxis:{min:o,max:a}};f.config.chart.events.scrolled(this.ctx,p),this.ctx.events.fireEvent("scrolled",p)}}}]),r}(),pX=function(){function t(e){Be(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return Fe(t,[{key:"getNearestValues",value:function(e){var r=e.hoverArea,n=e.elGrid,o=e.clientX,a=e.clientY,f=this.w,p=n.getBoundingClientRect(),m=p.width,v=p.height,y=m/(f.globals.dataPoints-1),x=v/f.globals.dataPoints,k=this.hasBars();!f.globals.comboCharts&&!k||f.config.xaxis.convertedCatToNumeric||(y=m/f.globals.dataPoints);var S=o-p.left-f.globals.barPadForNumericAxis,O=a-p.top;S<0||O<0||S>m||O>v?(r.classList.remove("hovering-zoom"),r.classList.remove("hovering-pan")):f.globals.zoomEnabled?(r.classList.remove("hovering-pan"),r.classList.add("hovering-zoom")):f.globals.panEnabled&&(r.classList.remove("hovering-zoom"),r.classList.add("hovering-pan"));var C=Math.round(S/y),R=Math.floor(O/x);k&&!f.config.xaxis.convertedCatToNumeric&&(C=Math.ceil(S/y),C-=1);var E=null,P=null,M=f.globals.seriesXvalues.map(function(V){return V.filter(function(W){return se.isNumber(W)})}),I=f.globals.seriesYvalues.map(function(V){return V.filter(function(W){return se.isNumber(W)})});if(f.globals.isXNumeric){var B=this.ttCtx.getElGrid().getBoundingClientRect(),U=S*(B.width/m),H=O*(B.height/v);E=(P=this.closestInMultiArray(U,H,M,I)).index,C=P.j,E!==null&&f.globals.hasNullValues&&(M=f.globals.seriesXvalues[E],C=(P=this.closestInArray(U,M)).j)}return f.globals.capturedSeriesIndex=E===null?-1:E,(!C||C<1)&&(C=0),f.globals.isBarHorizontal?f.globals.capturedDataPointIndex=R:f.globals.capturedDataPointIndex=C,{capturedSeries:E,j:f.globals.isBarHorizontal?R:C,hoverX:S,hoverY:O}}},{key:"getFirstActiveXArray",value:function(e){for(var r=this.w,n=0,o=e.map(function(f,p){return f.length>0?p:-1}),a=0;a<o.length;a++)if(o[a]!==-1&&r.globals.collapsedSeriesIndices.indexOf(a)===-1&&r.globals.ancillaryCollapsedSeriesIndices.indexOf(a)===-1){n=o[a];break}return n}},{key:"closestInMultiArray",value:function(e,r,n,o){for(var a,f=this.w,p=1/0,m=null,v=null,y=0;y<n.length;y++)if(a=y,f.globals.collapsedSeriesIndices.indexOf(a)===-1&&f.globals.ancillaryCollapsedSeriesIndices.indexOf(a)===-1)for(var x=n[y],k=o[y],S=Math.min(x.length,k.length),O=0;O<S;O++){var C=e-x[O],R=Math.sqrt(C*C);if(!f.globals.allSeriesHasEqualX){var E=r-k[O];R=Math.sqrt(C*C+E*E)}R<p&&(p=R,m=y,v=O)}return{index:m,j:v}}},{key:"closestInArray",value:function(e,r){for(var n=r[0],o=null,a=Math.abs(e-n),f=0;f<r.length;f++){var p=Math.abs(e-r[f]);p<a&&(a=p,o=f)}return{j:o}}},{key:"isXoverlap",value:function(e){var r=[],n=this.w.globals.seriesX.filter(function(a){return a[0]!==void 0});if(n.length>0)for(var o=0;o<n.length-1;o++)n[o][e]!==void 0&&n[o+1][e]!==void 0&&n[o][e]!==n[o+1][e]&&r.push("unEqual");return r.length===0}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,r=this.w.globals.initialSeries,n=0;n<r.length-1;n++)if(r[n].data.length!==r[n+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return ln(e).reduce(function(r,n){return r+n.getBBox().height},0)}},{key:"getElMarkers",value:function(e){return typeof e=="number"?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var e=this,r=arguments.length>0&&arguments[0]!==void 0&&arguments[0],n=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");n=ln(n),r&&(n=n.filter(function(a){var f=Number(a.getAttribute("data:realIndex"));return e.w.globals.collapsedSeriesIndices.indexOf(f)===-1})),n.sort(function(a,f){var p=Number(a.getAttribute("data:realIndex")),m=Number(f.getAttribute("data:realIndex"));return m<p?1:m>p?-1:0});var o=[];return n.forEach(function(a){o.push(a.querySelector(".apexcharts-marker"))}),o}},{key:"hasMarkers",value:function(e){return this.getElMarkers(e).length>0}},{key:"getPathFromPoint",value:function(e,r){var n=Number(e.getAttribute("cx")),o=Number(e.getAttribute("cy")),a=e.getAttribute("shape");return new xe(this.ctx).getMarkerPath(n,o,a,r)}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series,  .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(e){var r=this.w,n=r.config.markers.hover.size;return n===void 0&&(n=r.globals.markers.size[e]+r.config.markers.hover.sizeOffset),n}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var r=this.w,n=this.ttCtx;n.allTooltipSeriesGroups.length===0&&(n.allTooltipSeriesGroups=r.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var o=n.allTooltipSeriesGroups,a=0;a<o.length;a++)e==="enable"?(o[a].classList.add("apexcharts-active"),o[a].style.display=r.config.tooltip.items.display):(o[a].classList.remove("apexcharts-active"),o[a].style.display="none")}}]),t}(),q_e=function(){function t(e){Be(this,t),this.w=e.w,this.ctx=e.ctx,this.ttCtx=e,this.tooltipUtil=new pX(e)}return Fe(t,[{key:"drawSeriesTexts",value:function(e){var r=e.shared,n=r===void 0||r,o=e.ttItems,a=e.i,f=a===void 0?0:a,p=e.j,m=p===void 0?null:p,v=e.y1,y=e.y2,x=e.e,k=this.w;k.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:f,j:m,y1:v,y2:y,w:k}):this.toggleActiveInactiveSeries(n,f);var S=this.getValuesToPrint({i:f,j:m});this.printLabels({i:f,j:m,values:S,ttItems:o,shared:n,e:x});var O=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=O.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=O.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var r,n=this,o=e.i,a=e.j,f=e.values,p=e.ttItems,m=e.shared,v=e.e,y=this.w,x=[],k=function(B){return y.globals.seriesGoals[B]&&y.globals.seriesGoals[B][a]&&Array.isArray(y.globals.seriesGoals[B][a])},S=f.xVal,O=f.zVal,C=f.xAxisTTVal,R="",E=y.globals.colors[o];a!==null&&y.config.plotOptions.bar.distributed&&(E=y.globals.colors[a]);for(var P=function(B,U){var H=n.getFormatters(o);R=n.getSeriesName({fn:H.yLbTitleFormatter,index:o,seriesIndex:o,j:a}),y.config.chart.type==="treemap"&&(R=H.yLbTitleFormatter(String(y.config.series[o].data[a].x),{series:y.globals.series,seriesIndex:o,dataPointIndex:a,w:y}));var V=y.config.tooltip.inverseOrder?U:B;if(y.globals.axisCharts){var W=function(K){var Q,oe,ie,re;return y.globals.isRangeData?H.yLbFormatter((Q=y.globals.seriesRangeStart)===null||Q===void 0||(oe=Q[K])===null||oe===void 0?void 0:oe[a],{series:y.globals.seriesRangeStart,seriesIndex:K,dataPointIndex:a,w:y})+" - "+H.yLbFormatter((ie=y.globals.seriesRangeEnd)===null||ie===void 0||(re=ie[K])===null||re===void 0?void 0:re[a],{series:y.globals.seriesRangeEnd,seriesIndex:K,dataPointIndex:a,w:y}):H.yLbFormatter(y.globals.series[K][a],{series:y.globals.series,seriesIndex:K,dataPointIndex:a,w:y})};if(m)H=n.getFormatters(V),R=n.getSeriesName({fn:H.yLbTitleFormatter,index:V,seriesIndex:o,j:a}),E=y.globals.colors[V],r=W(V),k(V)&&(x=y.globals.seriesGoals[V][a].map(function(K){return{attrs:K,val:H.yLbFormatter(K.value,{seriesIndex:V,dataPointIndex:a,w:y})}}));else{var G,Z=v==null||(G=v.target)===null||G===void 0?void 0:G.getAttribute("fill");Z&&(Z.indexOf("url")!==-1?Z.indexOf("Pattern")!==-1&&(E=y.globals.dom.baseEl.querySelector(Z.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke")):E=Z),r=W(o),k(o)&&Array.isArray(y.globals.seriesGoals[o][a])&&(x=y.globals.seriesGoals[o][a].map(function(K){return{attrs:K,val:H.yLbFormatter(K.value,{seriesIndex:o,dataPointIndex:a,w:y})}}))}}a===null&&(r=H.yLbFormatter(y.globals.series[o],Oe(Oe({},y),{},{seriesIndex:o,dataPointIndex:o}))),n.DOMHandling({i:o,t:V,j:a,ttItems:p,values:{val:r,goalVals:x,xVal:S,xAxisTTVal:C,zVal:O},seriesName:R,shared:m,pColor:E})},M=0,I=y.globals.series.length-1;M<y.globals.series.length;M++,I--)P(M,I)}},{key:"getFormatters",value:function(e){var r,n=this.w,o=n.globals.yLabelFormatters[e];return n.globals.ttVal!==void 0?Array.isArray(n.globals.ttVal)?(o=n.globals.ttVal[e]&&n.globals.ttVal[e].formatter,r=n.globals.ttVal[e]&&n.globals.ttVal[e].title&&n.globals.ttVal[e].title.formatter):(o=n.globals.ttVal.formatter,typeof n.globals.ttVal.title.formatter=="function"&&(r=n.globals.ttVal.title.formatter)):r=n.config.tooltip.y.title.formatter,typeof o!="function"&&(o=n.globals.yLabelFormatters[0]?n.globals.yLabelFormatters[0]:function(a){return a}),typeof r!="function"&&(r=function(a){return a?a+": ":""}),{yLbFormatter:o,yLbTitleFormatter:r}}},{key:"getSeriesName",value:function(e){var r=e.fn,n=e.index,o=e.seriesIndex,a=e.j,f=this.w;return r(String(f.globals.seriesNames[n]),{series:f.globals.series,seriesIndex:o,dataPointIndex:a,w:f})}},{key:"DOMHandling",value:function(e){e.i;var r=e.t,n=e.j,o=e.ttItems,a=e.values,f=e.seriesName,p=e.shared,m=e.pColor,v=this.w,y=this.ttCtx,x=a.val,k=a.goalVals,S=a.xVal,O=a.xAxisTTVal,C=a.zVal,R=null;R=o[r].children,v.config.tooltip.fillSeriesColor&&(o[r].style.backgroundColor=m,R[0].style.display="none"),y.showTooltipTitle&&(y.tooltipTitle===null&&(y.tooltipTitle=v.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),y.tooltipTitle.innerHTML=S),y.isXAxisTooltipEnabled&&(y.xaxisTooltipText.innerHTML=O!==""?O:S);var E=o[r].querySelector(".apexcharts-tooltip-text-y-label");E&&(E.innerHTML=f||"");var P=o[r].querySelector(".apexcharts-tooltip-text-y-value");P&&(P.innerHTML=x!==void 0?x:""),R[0]&&R[0].classList.contains("apexcharts-tooltip-marker")&&(v.config.tooltip.marker.fillColors&&Array.isArray(v.config.tooltip.marker.fillColors)&&(m=v.config.tooltip.marker.fillColors[r]),v.config.tooltip.fillSeriesColor?R[0].style.backgroundColor=m:R[0].style.color=m),v.config.tooltip.marker.show||(R[0].style.display="none");var M=o[r].querySelector(".apexcharts-tooltip-text-goals-label"),I=o[r].querySelector(".apexcharts-tooltip-text-goals-value");if(k.length&&v.globals.seriesGoals[r]){var B=function(){var V="<div>",W="<div>";k.forEach(function(G,Z){V+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(G.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(G.attrs.name,"</div>"),W+="<div>".concat(G.val,"</div>")}),M.innerHTML=V+"</div>",I.innerHTML=W+"</div>"};p?v.globals.seriesGoals[r][n]&&Array.isArray(v.globals.seriesGoals[r][n])?B():(M.innerHTML="",I.innerHTML=""):B()}else M.innerHTML="",I.innerHTML="";if(C!==null&&(o[r].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=v.config.tooltip.z.title,o[r].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=C!==void 0?C:""),p&&R[0]){if(v.config.tooltip.hideEmptySeries){var U=o[r].querySelector(".apexcharts-tooltip-marker"),H=o[r].querySelector(".apexcharts-tooltip-text");parseFloat(x)==0?(U.style.display="none",H.style.display="none"):(U.style.display="block",H.style.display="block")}x==null||v.globals.ancillaryCollapsedSeriesIndices.indexOf(r)>-1||v.globals.collapsedSeriesIndices.indexOf(r)>-1||Array.isArray(y.tConfig.enabledOnSeries)&&y.tConfig.enabledOnSeries.indexOf(r)===-1?R[0].parentNode.style.display="none":R[0].parentNode.style.display=v.config.tooltip.items.display}else Array.isArray(y.tConfig.enabledOnSeries)&&y.tConfig.enabledOnSeries.indexOf(r)===-1&&(R[0].parentNode.style.display="none")}},{key:"toggleActiveInactiveSeries",value:function(e,r){var n=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var o=n.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group-".concat(r));o&&(o.classList.add("apexcharts-active"),o.style.display=n.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var r=e.i,n=e.j,o=this.w,a=this.ctx.series.filteredSeriesX(),f="",p="",m=null,v=null,y={series:o.globals.series,seriesIndex:r,dataPointIndex:n,w:o},x=o.globals.ttZFormatter;n===null?v=o.globals.series[r]:o.globals.isXNumeric&&o.config.chart.type!=="treemap"?(f=a[r][n],a[r].length===0&&(f=a[this.tooltipUtil.getFirstActiveXArray(a)][n])):f=new y5(this.ctx).isFormatXY()?o.config.series[r].data[n]!==void 0?o.config.series[r].data[n].x:"":o.globals.labels[n]!==void 0?o.globals.labels[n]:"";var k=f;return o.globals.isXNumeric&&o.config.xaxis.type==="datetime"?f=new yb(this.ctx).xLabelFormat(o.globals.ttKeyFormatter,k,k,{i:void 0,dateFormatter:new Tn(this.ctx).formatDate,w:this.w}):f=o.globals.isBarHorizontal?o.globals.yLabelFormatters[0](k,y):o.globals.xLabelFormatter(k,y),o.config.tooltip.x.formatter!==void 0&&(f=o.globals.ttKeyFormatter(k,y)),o.globals.seriesZ.length>0&&o.globals.seriesZ[r].length>0&&(m=x(o.globals.seriesZ[r][n],o)),p=typeof o.config.xaxis.tooltip.formatter=="function"?o.globals.xaxisTooltipFormatter(k,y):f,{val:Array.isArray(v)?v.join(" "):v,xVal:Array.isArray(f)?f.join(" "):f,xAxisTTVal:Array.isArray(p)?p.join(" "):p,zVal:m}}},{key:"handleCustomTooltip",value:function(e){var r=e.i,n=e.j,o=e.y1,a=e.y2,f=e.w,p=this.ttCtx.getElTooltip(),m=f.config.tooltip.custom;Array.isArray(m)&&m[r]&&(m=m[r]);var v=m({ctx:this.ctx,series:f.globals.series,seriesIndex:r,dataPointIndex:n,y1:o,y2:a,w:f});typeof v=="string"||typeof v=="number"?p.innerHTML=v:(v instanceof Element||typeof v.nodeName=="string")&&(p.innerHTML="",p.appendChild(v.cloneNode(!0)))}}]),t}(),gX=function(){function t(e){Be(this,t),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return Fe(t,[{key:"moveXCrosshairs",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=this.ttCtx,o=this.w,a=n.getElXCrosshairs(),f=e-n.xcrosshairsWidth/2,p=o.globals.labels.slice().length;if(r!==null&&(f=o.globals.gridWidth/p*r),a===null||o.globals.isBarHorizontal||(a.setAttribute("x",f),a.setAttribute("x1",f),a.setAttribute("x2",f),a.setAttribute("y2",o.globals.gridHeight),a.classList.add("apexcharts-active")),f<0&&(f=0),f>o.globals.gridWidth&&(f=o.globals.gridWidth),n.isXAxisTooltipEnabled){var m=f;o.config.xaxis.crosshairs.width!=="tickWidth"&&o.config.xaxis.crosshairs.width!=="barWidth"||(m=f+n.xcrosshairsWidth/2),this.moveXAxisTooltip(m)}}},{key:"moveYCrosshairs",value:function(e){var r=this.ttCtx;r.ycrosshairs!==null&&xe.setAttrs(r.ycrosshairs,{y1:e,y2:e}),r.ycrosshairsHidden!==null&&xe.setAttrs(r.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var r=this.w,n=this.ttCtx;if(n.xaxisTooltip!==null&&n.xcrosshairsWidth!==0){n.xaxisTooltip.classList.add("apexcharts-active");var o=n.xaxisOffY+r.config.xaxis.tooltip.offsetY+r.globals.translateY+1+r.config.xaxis.offsetY;if(e-=n.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e)){e+=r.globals.translateX;var a;a=new xe(this.ctx).getTextRects(n.xaxisTooltipText.innerHTML),n.xaxisTooltipText.style.minWidth=a.width+"px",n.xaxisTooltip.style.left=e+"px",n.xaxisTooltip.style.top=o+"px"}}}},{key:"moveYAxisTooltip",value:function(e){var r=this.w,n=this.ttCtx;n.yaxisTTEls===null&&(n.yaxisTTEls=r.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var o=parseInt(n.ycrosshairsHidden.getAttribute("y1"),10),a=r.globals.translateY+o,f=n.yaxisTTEls[e].getBoundingClientRect(),p=f.height,m=r.globals.translateYAxisX[e]-2;r.config.yaxis[e].opposite&&(m-=f.width),a-=p/2,r.globals.ignoreYAxisIndexes.indexOf(e)===-1&&a>0&&a<r.globals.gridHeight?(n.yaxisTTEls[e].classList.add("apexcharts-active"),n.yaxisTTEls[e].style.top=a+"px",n.yaxisTTEls[e].style.left=m+r.config.yaxis[e].tooltip.offsetX+"px"):n.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=this.w,a=this.ttCtx,f=a.getElTooltip(),p=a.tooltipRect,m=n!==null?parseFloat(n):1,v=parseFloat(e)+m+5,y=parseFloat(r)+m/2;if(v>o.globals.gridWidth/2&&(v=v-p.ttWidth-m-10),v>o.globals.gridWidth-p.ttWidth-10&&(v=o.globals.gridWidth-p.ttWidth),v<-20&&(v=-20),o.config.tooltip.followCursor){var x=a.getElGrid().getBoundingClientRect();(v=a.e.clientX-x.left)>o.globals.gridWidth/2&&(v-=a.tooltipRect.ttWidth),(y=a.e.clientY+o.globals.translateY-x.top)>o.globals.gridHeight/2&&(y-=a.tooltipRect.ttHeight)}else o.globals.isBarHorizontal||p.ttHeight/2+y>o.globals.gridHeight&&(y=o.globals.gridHeight-p.ttHeight+o.globals.translateY);isNaN(v)||(v+=o.globals.translateX,f.style.left=v+"px",f.style.top=y+"px")}},{key:"moveMarkers",value:function(e,r){var n=this.w,o=this.ttCtx;if(n.globals.markers.size[e]>0)for(var a=n.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),f=0;f<a.length;f++)parseInt(a[f].getAttribute("rel"),10)===r&&(o.marker.resetPointsSize(),o.marker.enlargeCurrentPoint(r,a[f]));else o.marker.resetPointsSize(),this.moveDynamicPointOnHover(r,e)}},{key:"moveDynamicPointOnHover",value:function(e,r){var n,o,a,f,p=this.w,m=this.ttCtx,v=new xe(this.ctx),y=p.globals.pointsArray,x=m.tooltipUtil.getHoverMarkerSize(r),k=p.config.series[r].type;if(!k||k!=="column"&&k!=="candlestick"&&k!=="boxPlot"){a=(n=y[r][e])===null||n===void 0?void 0:n[0],f=((o=y[r][e])===null||o===void 0?void 0:o[1])||0;var S=p.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(r,"'] .apexcharts-series-markers path"));if(S&&f<p.globals.gridHeight&&f>0){var O=S.getAttribute("shape"),C=v.getMarkerPath(a,f,O,1.5*x);S.setAttribute("d",C)}this.moveXCrosshairs(a),m.fixedTooltip||this.moveTooltip(a,f,x)}}},{key:"moveDynamicPointsOnHover",value:function(e){var r,n=this.ttCtx,o=n.w,a=0,f=0,p=o.globals.pointsArray,m=new Ai(this.ctx),v=new xe(this.ctx);r=m.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var y=n.tooltipUtil.getHoverMarkerSize(r);if(p[r]&&(a=p[r][e][0],f=p[r][e][1]),!isNaN(a)){var x=n.tooltipUtil.getAllMarkers();if(x.length)for(var k=0;k<o.globals.series.length;k++){var S=p[k];if(o.globals.comboCharts&&S===void 0&&x.splice(k,0,null),S&&S.length){var O=p[k][e][1],C=void 0;x[k].setAttribute("cx",a);var R=x[k].getAttribute("shape");if(o.config.chart.type==="rangeArea"&&!o.globals.comboCharts){var E=e+o.globals.series[k].length;C=p[k][E][1],O-=Math.abs(O-C)/2}if(O!==null&&!isNaN(O)&&O<o.globals.gridHeight+y&&O+y>0){var P=v.getMarkerPath(a,O,R,y);x[k].setAttribute("d",P)}else x[k].setAttribute("d","")}}this.moveXCrosshairs(a),n.fixedTooltip||this.moveTooltip(a,f||o.globals.gridHeight,y)}}},{key:"moveStickyTooltipOverBars",value:function(e,r){var n=this.w,o=this.ttCtx,a=n.globals.columnSeries?n.globals.columnSeries.length:n.globals.series.length;n.config.chart.stacked&&(a=n.globals.barGroups.length);var f=a>=2&&a%2==0?Math.floor(a/2):Math.floor(a/2)+1;n.globals.isBarHorizontal&&(f=new Ai(this.ctx).getActiveConfigSeriesIndex("desc")+1);var p=n.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(f,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(f,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(f,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(f,"'] path[j='").concat(e,"']"));p||typeof r!="number"||(p=n.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(r,"'] path[j='").concat(e,`'],
        .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='`).concat(r,"'] path[j='").concat(e,`'],
        .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='`).concat(r,"'] path[j='").concat(e,`'],
        .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='`).concat(r,"'] path[j='").concat(e,"']")));var m=p?parseFloat(p.getAttribute("cx")):0,v=p?parseFloat(p.getAttribute("cy")):0,y=p?parseFloat(p.getAttribute("barWidth")):0,x=o.getElGrid().getBoundingClientRect(),k=p&&(p.classList.contains("apexcharts-candlestick-area")||p.classList.contains("apexcharts-boxPlot-area"));n.globals.isXNumeric?(p&&!k&&(m-=a%2!=0?y/2:0),p&&k&&(m-=y/2)):n.globals.isBarHorizontal||(m=o.xAxisTicksPositions[e-1]+o.dataPointsDividedWidth/2,isNaN(m)&&(m=o.xAxisTicksPositions[e]-o.dataPointsDividedWidth/2)),n.globals.isBarHorizontal?v-=o.tooltipRect.ttHeight:n.config.tooltip.followCursor?v=o.e.clientY-x.top-o.tooltipRect.ttHeight/2:v+o.tooltipRect.ttHeight+15>n.globals.gridHeight&&(v=n.globals.gridHeight),n.globals.isBarHorizontal||this.moveXCrosshairs(m),o.fixedTooltip||this.moveTooltip(m,v||n.globals.gridHeight)}}]),t}(),Y_e=function(){function t(e){Be(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new gX(e)}return Fe(t,[{key:"drawDynamicPoints",value:function(){var e=this.w,r=new xe(this.ctx),n=new Sh(this.ctx),o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");o=ln(o),e.config.chart.stacked&&o.sort(function(x,k){return parseFloat(x.getAttribute("data:realIndex"))-parseFloat(k.getAttribute("data:realIndex"))});for(var a=0;a<o.length;a++){var f=o[a].querySelector(".apexcharts-series-markers-wrap");if(f!==null){var p=void 0,m="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));e.config.chart.type!=="line"&&e.config.chart.type!=="area"||e.globals.comboCharts||e.config.tooltip.intersect||(m+=" no-pointer-events");var v=n.getMarkerConfig({cssClass:m,seriesIndex:Number(f.getAttribute("data:realIndex"))});(p=r.drawMarker(0,0,v)).node.setAttribute("default-marker-size",0);var y=document.createElementNS(e.globals.SVGNS,"g");y.classList.add("apexcharts-series-markers"),y.appendChild(p.node),f.appendChild(y)}}}},{key:"enlargeCurrentPoint",value:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=this.w;a.config.chart.type!=="bubble"&&this.newPointSize(e,r);var f=r.getAttribute("cx"),p=r.getAttribute("cy");if(n!==null&&o!==null&&(f=n,p=o),this.tooltipPosition.moveXCrosshairs(f),!this.fixedTooltip){if(a.config.chart.type==="radar"){var m=this.ttCtx.getElGrid().getBoundingClientRect();f=this.ttCtx.e.clientX-m.left}this.tooltipPosition.moveTooltip(f,p,a.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var r=this.w,n=this,o=this.ttCtx,a=e,f=r.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),p=r.config.markers.hover.size,m=0;m<f.length;m++){var v=f[m].getAttribute("rel"),y=f[m].getAttribute("index");if(p===void 0&&(p=r.globals.markers.size[y]+r.config.markers.hover.sizeOffset),a===parseInt(v,10)){n.newPointSize(a,f[m]);var x=f[m].getAttribute("cx"),k=f[m].getAttribute("cy");n.tooltipPosition.moveXCrosshairs(x),o.fixedTooltip||n.tooltipPosition.moveTooltip(x,k,p)}else n.oldPointSize(f[m])}}},{key:"newPointSize",value:function(e,r){var n=this.w,o=n.config.markers.hover.size,a=e===0?r.parentNode.firstChild:r.parentNode.lastChild;if(a.getAttribute("default-marker-size")!=="0"){var f=parseInt(a.getAttribute("index"),10);o===void 0&&(o=n.globals.markers.size[f]+n.config.markers.hover.sizeOffset),o<0&&(o=0);var p=this.ttCtx.tooltipUtil.getPathFromPoint(r,o);r.setAttribute("d",p)}}},{key:"oldPointSize",value:function(e){var r=parseFloat(e.getAttribute("default-marker-size")),n=this.ttCtx.tooltipUtil.getPathFromPoint(e,r);e.setAttribute("d",n)}},{key:"resetPointsSize",value:function(){for(var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),r=0;r<e.length;r++){var n=parseFloat(e[r].getAttribute("default-marker-size"));if(se.isNumber(n)&&n>0){var o=this.ttCtx.tooltipUtil.getPathFromPoint(e[r],n);e[r].setAttribute("d",o)}else e[r].setAttribute("d","M0,0")}}}]),t}(),W_e=function(){function t(e){Be(this,t),this.w=e.w;var r=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!r.globals.isBarHorizontal&&r.config.chart.type==="rangeBar"&&r.config.plotOptions.bar.rangeBarGroupRows}return Fe(t,[{key:"getAttr",value:function(e,r){return parseFloat(e.target.getAttribute(r))}},{key:"handleHeatTreeTooltip",value:function(e){var r=e.e,n=e.opt,o=e.x,a=e.y,f=e.type,p=this.ttCtx,m=this.w;if(r.target.classList.contains("apexcharts-".concat(f,"-rect"))){var v=this.getAttr(r,"i"),y=this.getAttr(r,"j"),x=this.getAttr(r,"cx"),k=this.getAttr(r,"cy"),S=this.getAttr(r,"width"),O=this.getAttr(r,"height");if(p.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:v,j:y,shared:!1,e:r}),m.globals.capturedSeriesIndex=v,m.globals.capturedDataPointIndex=y,o=x+p.tooltipRect.ttWidth/2+S,a=k+p.tooltipRect.ttHeight/2-O/2,p.tooltipPosition.moveXCrosshairs(x+S/2),o>m.globals.gridWidth/2&&(o=x-p.tooltipRect.ttWidth/2+S),p.w.config.tooltip.followCursor){var C=m.globals.dom.elWrap.getBoundingClientRect();o=m.globals.clientX-C.left-(o>m.globals.gridWidth/2?p.tooltipRect.ttWidth:0),a=m.globals.clientY-C.top-(a>m.globals.gridHeight/2?p.tooltipRect.ttHeight:0)}}return{x:o,y:a}}},{key:"handleMarkerTooltip",value:function(e){var r,n,o=e.e,a=e.opt,f=e.x,p=e.y,m=this.w,v=this.ttCtx;if(o.target.classList.contains("apexcharts-marker")){var y=parseInt(a.paths.getAttribute("cx"),10),x=parseInt(a.paths.getAttribute("cy"),10),k=parseFloat(a.paths.getAttribute("val"));if(n=parseInt(a.paths.getAttribute("rel"),10),r=parseInt(a.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,v.intersect){var S=se.findAncestor(a.paths,"apexcharts-series");S&&(r=parseInt(S.getAttribute("data:realIndex"),10))}if(v.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:r,j:n,shared:!v.showOnIntersect&&m.config.tooltip.shared,e:o}),o.type==="mouseup"&&v.markerClick(o,r,n),m.globals.capturedSeriesIndex=r,m.globals.capturedDataPointIndex=n,f=y,p=x+m.globals.translateY-1.4*v.tooltipRect.ttHeight,v.w.config.tooltip.followCursor){var O=v.getElGrid().getBoundingClientRect();p=v.e.clientY+m.globals.translateY-O.top}k<0&&(p=x),v.marker.enlargeCurrentPoint(n,a.paths,f,p)}return{x:f,y:p}}},{key:"handleBarTooltip",value:function(e){var r,n,o=e.e,a=e.opt,f=this.w,p=this.ttCtx,m=p.getElTooltip(),v=0,y=0,x=0,k=this.getBarTooltipXY({e:o,opt:a});if(k.j!==null||k.barHeight!==0||k.barWidth!==0){r=k.i;var S=k.j;if(f.globals.capturedSeriesIndex=r,f.globals.capturedDataPointIndex=S,f.globals.isBarHorizontal&&p.tooltipUtil.hasBars()||!f.config.tooltip.shared?(y=k.x,x=k.y,n=Array.isArray(f.config.stroke.width)?f.config.stroke.width[r]:f.config.stroke.width,v=y):f.globals.comboCharts||f.config.tooltip.shared||(v/=2),isNaN(x)&&(x=f.globals.svgHeight-p.tooltipRect.ttHeight),parseInt(a.paths.parentNode.getAttribute("data:realIndex"),10),y+p.tooltipRect.ttWidth>f.globals.gridWidth?y-=p.tooltipRect.ttWidth:y<0&&(y=0),p.w.config.tooltip.followCursor){var O=p.getElGrid().getBoundingClientRect();x=p.e.clientY-O.top}p.tooltip===null&&(p.tooltip=f.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),f.config.tooltip.shared||(f.globals.comboBarCount>0?p.tooltipPosition.moveXCrosshairs(v+n/2):p.tooltipPosition.moveXCrosshairs(v)),!p.fixedTooltip&&(!f.config.tooltip.shared||f.globals.isBarHorizontal&&p.tooltipUtil.hasBars())&&(x=x+f.globals.translateY-p.tooltipRect.ttHeight/2,m.style.left=y+f.globals.translateX+"px",m.style.top=x+"px")}}},{key:"getBarTooltipXY",value:function(e){var r=this,n=e.e,o=e.opt,a=this.w,f=null,p=this.ttCtx,m=0,v=0,y=0,x=0,k=0,S=n.target.classList;if(S.contains("apexcharts-bar-area")||S.contains("apexcharts-candlestick-area")||S.contains("apexcharts-boxPlot-area")||S.contains("apexcharts-rangebar-area")){var O=n.target,C=O.getBoundingClientRect(),R=o.elGrid.getBoundingClientRect(),E=C.height;k=C.height;var P=C.width,M=parseInt(O.getAttribute("cx"),10),I=parseInt(O.getAttribute("cy"),10);x=parseFloat(O.getAttribute("barWidth"));var B=n.type==="touchmove"?n.touches[0].clientX:n.clientX;f=parseInt(O.getAttribute("j"),10),m=parseInt(O.parentNode.getAttribute("rel"),10)-1;var U=O.getAttribute("data-range-y1"),H=O.getAttribute("data-range-y2");a.globals.comboCharts&&(m=parseInt(O.parentNode.getAttribute("data:realIndex"),10));var V=function(G){return a.globals.isXNumeric?M-P/2:r.isVerticalGroupedRangeBar?M+P/2:M-p.dataPointsDividedWidth+P/2},W=function(){return I-p.dataPointsDividedHeight+E/2-p.tooltipRect.ttHeight/2};p.tooltipLabels.drawSeriesTexts({ttItems:o.ttItems,i:m,j:f,y1:U?parseInt(U,10):null,y2:H?parseInt(H,10):null,shared:!p.showOnIntersect&&a.config.tooltip.shared,e:n}),a.config.tooltip.followCursor?a.globals.isBarHorizontal?(v=B-R.left+15,y=W()):(v=V(),y=n.clientY-R.top-p.tooltipRect.ttHeight/2-15):a.globals.isBarHorizontal?((v=M)<p.xyRatios.baseLineInvertedY&&(v=M-p.tooltipRect.ttWidth),y=W()):(v=V(),y=I)}return{x:v,y,barHeight:k,barWidth:x,i:m,j:f}}}]),t}(),X_e=function(){function t(e){Be(this,t),this.w=e.w,this.ttCtx=e}return Fe(t,[{key:"drawXaxisTooltip",value:function(){var e=this.w,r=this.ttCtx,n=e.config.xaxis.position==="bottom";r.xaxisOffY=n?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var o=n?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",a=e.globals.dom.elWrap;r.isXAxisTooltipEnabled&&e.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")===null&&(r.xaxisTooltip=document.createElement("div"),r.xaxisTooltip.setAttribute("class",o+" apexcharts-theme-"+e.config.tooltip.theme),a.appendChild(r.xaxisTooltip),r.xaxisTooltipText=document.createElement("div"),r.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),r.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,r.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,r.xaxisTooltip.appendChild(r.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var e=this.w,r=this.ttCtx,n=0;n<e.config.yaxis.length;n++){var o=e.config.yaxis[n].opposite||e.config.yaxis[n].crosshairs.opposite;r.yaxisOffX=o?e.globals.gridWidth+1:1;var a="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n,o?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left"),f=e.globals.dom.elWrap;e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n))===null&&(r.yaxisTooltip=document.createElement("div"),r.yaxisTooltip.setAttribute("class",a+" apexcharts-theme-"+e.config.tooltip.theme),f.appendChild(r.yaxisTooltip),n===0&&(r.yaxisTooltipText=[]),r.yaxisTooltipText[n]=document.createElement("div"),r.yaxisTooltipText[n].classList.add("apexcharts-yaxistooltip-text"),r.yaxisTooltip.appendChild(r.yaxisTooltipText[n]))}}},{key:"setXCrosshairWidth",value:function(){var e=this.w,r=this.ttCtx,n=r.getElXCrosshairs();if(r.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts){var o=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(o!==null&&e.config.xaxis.crosshairs.width==="barWidth"){var a=parseFloat(o.getAttribute("barWidth"));r.xcrosshairsWidth=a}else if(e.config.xaxis.crosshairs.width==="tickWidth"){var f=e.globals.labels.length;r.xcrosshairsWidth=e.globals.gridWidth/f}}else if(e.config.xaxis.crosshairs.width==="tickWidth"){var p=e.globals.labels.length;r.xcrosshairsWidth=e.globals.gridWidth/p}else if(e.config.xaxis.crosshairs.width==="barWidth"){var m=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(m!==null){var v=parseFloat(m.getAttribute("barWidth"));r.xcrosshairsWidth=v}else r.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(r.xcrosshairsWidth=0),n!==null&&r.xcrosshairsWidth>0&&n.setAttribute("width",r.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,r=this.ttCtx;r.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),r.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,r,n){var o=this.ttCtx,a=this.w,f=a.globals,p=f.seriesYAxisMap[e];if(o.yaxisTooltips[e]&&p.length>0){var m=f.yLabelFormatters[e],v=o.getElGrid().getBoundingClientRect(),y=p[0],x=0;n.yRatio.length>1&&(x=y);var k=(r-v.top)*n.yRatio[x],S=f.maxYArr[y]-f.minYArr[y],O=f.minYArr[y]+(S-k);a.config.yaxis[e].reversed&&(O=f.maxYArr[y]-(S-k)),o.tooltipPosition.moveYCrosshairs(r-v.top),o.yaxisTooltipText[e].innerHTML=m(O),o.tooltipPosition.moveYAxisTooltip(e)}}}]),t}(),cB=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w;var r=this.w;this.tConfig=r.config.tooltip,this.tooltipUtil=new pX(this),this.tooltipLabels=new q_e(this),this.tooltipPosition=new gX(this),this.marker=new Y_e(this),this.intersect=new W_e(this),this.axesTooltip=new X_e(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!r.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return Fe(t,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var r=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=r.config.xaxis.tooltip.enabled&&r.globals.axisCharts,this.yaxisTooltips=r.config.yaxis.map(function(f,p){return!!(f.show&&f.tooltip.enabled&&r.globals.axisCharts)}),this.allTooltipSeriesGroups=[],r.globals.axisCharts||(this.showTooltipTitle=!1);var n=document.createElement("div");if(n.classList.add("apexcharts-tooltip"),r.config.tooltip.cssClass&&n.classList.add(r.config.tooltip.cssClass),n.classList.add("apexcharts-theme-".concat(this.tConfig.theme||"light")),r.globals.dom.elWrap.appendChild(n),r.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var o=new wv(this.ctx);this.xAxisTicksPositions=o.getXAxisTicksPositions()}if(!r.globals.comboCharts&&!this.tConfig.intersect&&r.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),r.config.markers.size!==0&&r.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),r.globals.collapsedSeries.length!==r.globals.series.length){this.dataPointsDividedHeight=r.globals.gridHeight/r.globals.dataPoints,this.dataPointsDividedWidth=r.globals.gridWidth/r.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||r.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,n.appendChild(this.tooltipTitle));var a=r.globals.series.length;(r.globals.xyCharts||r.globals.comboCharts)&&this.tConfig.shared&&(a=this.showOnIntersect?1:r.globals.series.length),this.legendLabels=r.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(a),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var r=this,n=this.w,o=[],a=this.getElTooltip(),f=function(m){var v=document.createElement("div");v.classList.add("apexcharts-tooltip-series-group","apexcharts-tooltip-series-group-".concat(m)),v.style.order=n.config.tooltip.inverseOrder?e-m:m+1;var y=document.createElement("span");y.classList.add("apexcharts-tooltip-marker"),n.config.tooltip.fillSeriesColor?y.style.backgroundColor=n.globals.colors[m]:y.style.color=n.globals.colors[m];var x=n.config.markers.shape,k=x;Array.isArray(x)&&(k=x[m]),y.setAttribute("shape",k),v.appendChild(y);var S=document.createElement("div");S.classList.add("apexcharts-tooltip-text"),S.style.fontFamily=r.tConfig.style.fontFamily||n.config.chart.fontFamily,S.style.fontSize=r.tConfig.style.fontSize,["y","goals","z"].forEach(function(O){var C=document.createElement("div");C.classList.add("apexcharts-tooltip-".concat(O,"-group"));var R=document.createElement("span");R.classList.add("apexcharts-tooltip-text-".concat(O,"-label")),C.appendChild(R);var E=document.createElement("span");E.classList.add("apexcharts-tooltip-text-".concat(O,"-value")),C.appendChild(E),S.appendChild(C)}),v.appendChild(S),a.appendChild(v),o.push(v)},p=0;p<e;p++)f(p);return o}},{key:"addSVGEvents",value:function(){var e=this.w,r=e.config.chart.type,n=this.getElTooltip(),o=!(r!=="bar"&&r!=="candlestick"&&r!=="boxPlot"&&r!=="rangeBar"),a=r==="area"||r==="line"||r==="scatter"||r==="bubble"||r==="radar",f=e.globals.dom.Paper.node,p=this.getElGrid();p&&(this.seriesBound=p.getBoundingClientRect());var m,v=[],y=[],x={hoverArea:f,elGrid:p,tooltipEl:n,tooltipY:v,tooltipX:y,ttItems:this.ttItems};if(e.globals.axisCharts&&(a?m=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):o?m=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):r!=="heatmap"&&r!=="treemap"||(m=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),m&&m.length))for(var k=0;k<m.length;k++)v.push(m[k].getAttribute("cy")),y.push(m[k].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||o&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([f],x);else if(o&&!e.globals.comboCharts||a&&this.showOnIntersect)this.addDatapointEventsListeners(x);else if(!e.globals.axisCharts||r==="heatmap"||r==="treemap"){var S=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(S,x)}if(this.showOnIntersect){var O=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");O.length>0&&this.addPathsEventListeners(O,x),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(x)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,r=this.getElTooltip(),n=r.getBoundingClientRect(),o=n.width+10,a=n.height+10,f=this.tConfig.fixed.offsetX,p=this.tConfig.fixed.offsetY,m=this.tConfig.fixed.position.toLowerCase();return m.indexOf("right")>-1&&(f=f+e.globals.svgWidth-o+10),m.indexOf("bottom")>-1&&(p=p+e.globals.svgHeight-a-10),r.style.left=f+"px",r.style.top=p+"px",{x:f,y:p,ttWidth:o,ttHeight:a}}},{key:"addDatapointEventsListeners",value:function(e){var r=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(r,e)}},{key:"addPathsEventListeners",value:function(e,r){for(var n=this,o=function(f){var p={paths:e[f],tooltipEl:r.tooltipEl,tooltipY:r.tooltipY,tooltipX:r.tooltipX,elGrid:r.elGrid,hoverArea:r.hoverArea,ttItems:r.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(m){return e[f].addEventListener(m,n.onSeriesHover.bind(n,p),{capture:!1,passive:!0})})},a=0;a<e.length;a++)o(a)}},{key:"onSeriesHover",value:function(e,r){var n=this,o=Date.now()-this.lastHoverTime;o>=20?this.seriesHover(e,r):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){n.seriesHover(e,r)},20-o))}},{key:"seriesHover",value:function(e,r){var n=this;this.lastHoverTime=Date.now();var o=[],a=this.w;a.config.chart.group&&(o=this.ctx.getGroupedCharts()),a.globals.axisCharts&&(a.globals.minX===-1/0&&a.globals.maxX===1/0||a.globals.dataPoints===0)||(o.length?o.forEach(function(f){var p=n.getElTooltip(f),m={paths:e.paths,tooltipEl:p,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:f.w.globals.tooltip.ttItems};f.w.globals.minX===n.w.globals.minX&&f.w.globals.maxX===n.w.globals.maxX&&f.w.globals.tooltip.seriesHoverByContext({chartCtx:f,ttCtx:f.w.globals.tooltip,opt:m,e:r})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:r}))}},{key:"seriesHoverByContext",value:function(e){var r=e.chartCtx,n=e.ttCtx,o=e.opt,a=e.e,f=r.w,p=this.getElTooltip(r);p&&(n.tooltipRect={x:0,y:0,ttWidth:p.getBoundingClientRect().width,ttHeight:p.getBoundingClientRect().height},n.e=a,n.tooltipUtil.hasBars()&&!f.globals.comboCharts&&!n.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new Ai(r).toggleSeriesOnHover(a,a.target.parentNode),f.globals.axisCharts?n.axisChartsTooltips({e:a,opt:o,tooltipRect:n.tooltipRect}):n.nonAxisChartsTooltips({e:a,opt:o,tooltipRect:n.tooltipRect}),n.fixedTooltip&&n.drawFixedTooltipRect())}},{key:"axisChartsTooltips",value:function(e){var r,n,o=e.e,a=e.opt,f=this.w,p=a.elGrid.getBoundingClientRect(),m=o.type==="touchmove"?o.touches[0].clientX:o.clientX,v=o.type==="touchmove"?o.touches[0].clientY:o.clientY;if(this.clientY=v,this.clientX=m,f.globals.capturedSeriesIndex=-1,f.globals.capturedDataPointIndex=-1,v<p.top||v>p.top+p.height)this.handleMouseOut(a);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!f.config.tooltip.shared){var y=parseInt(a.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(y)<0)return void this.handleMouseOut(a)}var x=this.getElTooltip(),k=this.getElXCrosshairs(),S=[];f.config.chart.group&&(S=this.ctx.getSyncedCharts());var O=f.globals.xyCharts||f.config.chart.type==="bar"&&!f.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||f.globals.comboCharts&&this.tooltipUtil.hasBars();if(o.type==="mousemove"||o.type==="touchmove"||o.type==="mouseup"){if(f.globals.collapsedSeries.length+f.globals.ancillaryCollapsedSeries.length===f.globals.series.length)return;k!==null&&k.classList.add("apexcharts-active");var C=this.yaxisTooltips.filter(function(P){return P===!0});if(this.ycrosshairs!==null&&C.length&&this.ycrosshairs.classList.add("apexcharts-active"),O&&!this.showOnIntersect||S.length>1)this.handleStickyTooltip(o,m,v,a);else if(f.config.chart.type==="heatmap"||f.config.chart.type==="treemap"){var R=this.intersect.handleHeatTreeTooltip({e:o,opt:a,x:r,y:n,type:f.config.chart.type});r=R.x,n=R.y,x.style.left=r+"px",x.style.top=n+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:o,opt:a}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:o,opt:a,x:r,y:n});if(this.yaxisTooltips.length)for(var E=0;E<f.config.yaxis.length;E++)this.axesTooltip.drawYaxisTooltipText(E,v,this.xyRatios);f.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),a.tooltipEl.classList.add("apexcharts-active")}else o.type!=="mouseout"&&o.type!=="touchend"||this.handleMouseOut(a)}}},{key:"nonAxisChartsTooltips",value:function(e){var r=e.e,n=e.opt,o=e.tooltipRect,a=this.w,f=n.paths.getAttribute("rel"),p=this.getElTooltip(),m=a.globals.dom.elWrap.getBoundingClientRect();if(r.type==="mousemove"||r.type==="touchmove"){a.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),p.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:parseInt(f,10)-1,shared:!1});var v=a.globals.clientX-m.left-o.ttWidth/2,y=a.globals.clientY-m.top-o.ttHeight-10;if(p.style.left=v+"px",p.style.top=y+"px",a.config.legend.tooltipHoverFormatter){var x=f-1,k=(0,a.config.legend.tooltipHoverFormatter)(this.legendLabels[x].getAttribute("data:default-text"),{seriesIndex:x,dataPointIndex:x,w:a});this.legendLabels[x].innerHTML=k}}else r.type!=="mouseout"&&r.type!=="touchend"||(p.classList.remove("apexcharts-active"),a.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),a.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(S){var O=S.getAttribute("data:default-text");S.innerHTML=decodeURIComponent(O)}))}},{key:"handleStickyTooltip",value:function(e,r,n,o){var a=this.w,f=this.tooltipUtil.getNearestValues({context:this,hoverArea:o.hoverArea,elGrid:o.elGrid,clientX:r,clientY:n}),p=f.j,m=f.capturedSeries;a.globals.collapsedSeriesIndices.includes(m)&&(m=null);var v=o.elGrid.getBoundingClientRect();if(f.hoverX<0||f.hoverX>v.width)this.handleMouseOut(o);else if(m!==null)this.handleStickyCapturedSeries(e,m,o,p);else if(this.tooltipUtil.isXoverlap(p)||a.globals.isBarHorizontal){var y=a.globals.series.findIndex(function(x,k){return!a.globals.collapsedSeriesIndices.includes(k)});this.create(e,this,y,p,o.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,r,n,o){var a=this.w;if(!this.tConfig.shared&&a.globals.series[r][o]===null)return void this.handleMouseOut(n);if(a.globals.series[r][o]!==void 0)this.tConfig.shared&&this.tooltipUtil.isXoverlap(o)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,r,o,n.ttItems):this.create(e,this,r,o,n.ttItems,!1);else if(this.tooltipUtil.isXoverlap(o)){var f=a.globals.series.findIndex(function(p,m){return!a.globals.collapsedSeriesIndices.includes(m)});this.create(e,this,f,o,n.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,r=new xe(this.ctx),n=e.globals.dom.Paper.find(".apexcharts-bar-area"),o=0;o<n.length;o++)r.pathMouseLeave(n[o])}},{key:"handleMouseOut",value:function(e){var r=this.w,n=this.getElXCrosshairs();if(r.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),r.config.chart.type!=="bubble"&&this.marker.resetPointsSize(),n!==null&&n.classList.remove("apexcharts-active"),this.ycrosshairs!==null&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){this.yaxisTTEls===null&&(this.yaxisTTEls=r.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var o=0;o<this.yaxisTTEls.length;o++)this.yaxisTTEls[o].classList.remove("apexcharts-active")}r.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(a){var f=a.getAttribute("data:default-text");a.innerHTML=decodeURIComponent(f)})}},{key:"markerClick",value:function(e,r,n){var o=this.w;typeof o.config.chart.events.markerClick=="function"&&o.config.chart.events.markerClick(e,this.ctx,{seriesIndex:r,dataPointIndex:n,w:o}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:r,dataPointIndex:n,w:o}])}},{key:"create",value:function(e,r,n,o,a){var f,p,m,v,y,x,k,S,O,C,R,E,P,M,I,B,U=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,H=this.w,V=r;e.type==="mouseup"&&this.markerClick(e,n,o),U===null&&(U=this.tConfig.shared);var W=this.tooltipUtil.hasMarkers(n),G=this.tooltipUtil.getElBars(),Z=function(){H.globals.markers.largestSize>0?V.marker.enlargePoints(o):V.tooltipPosition.moveDynamicPointsOnHover(o)};if(H.config.legend.tooltipHoverFormatter){var K=H.config.legend.tooltipHoverFormatter,Q=Array.from(this.legendLabels);Q.forEach(function(Re){var Ae=Re.getAttribute("data:default-text");Re.innerHTML=decodeURIComponent(Ae)});for(var oe=0;oe<Q.length;oe++){var ie=Q[oe],re=parseInt(ie.getAttribute("i"),10),ne=decodeURIComponent(ie.getAttribute("data:default-text")),te=K(ne,{seriesIndex:U?re:n,dataPointIndex:o,w:H});if(U)ie.innerHTML=H.globals.collapsedSeriesIndices.indexOf(re)<0?te:ne;else if(ie.innerHTML=re===n?te:ne,n===re)break}}var ue=Oe(Oe({ttItems:a,i:n,j:o},((f=H.globals.seriesRange)===null||f===void 0||(p=f[n])===null||p===void 0||(m=p[o])===null||m===void 0||(v=m.y[0])===null||v===void 0?void 0:v.y1)!==void 0&&{y1:(y=H.globals.seriesRange)===null||y===void 0||(x=y[n])===null||x===void 0||(k=x[o])===null||k===void 0||(S=k.y[0])===null||S===void 0?void 0:S.y1}),((O=H.globals.seriesRange)===null||O===void 0||(C=O[n])===null||C===void 0||(R=C[o])===null||R===void 0||(E=R.y[0])===null||E===void 0?void 0:E.y2)!==void 0&&{y2:(P=H.globals.seriesRange)===null||P===void 0||(M=P[n])===null||M===void 0||(I=M[o])===null||I===void 0||(B=I.y[0])===null||B===void 0?void 0:B.y2});if(U){if(V.tooltipLabels.drawSeriesTexts(Oe(Oe({},ue),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),W)Z();else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(G),this.barSeriesHeight>0)){var pe=new xe(this.ctx),ke=H.globals.dom.Paper.find(".apexcharts-bar-area[j='".concat(o,"']"));this.deactivateHoverFilter(),V.tooltipUtil.getAllMarkers(!0).length&&!this.barSeriesHeight&&Z(),V.tooltipPosition.moveStickyTooltipOverBars(o,n);for(var ze=0;ze<ke.length;ze++)pe.pathMouseEnter(ke[ze])}}else V.tooltipLabels.drawSeriesTexts(Oe({shared:!1},ue)),this.tooltipUtil.hasBars()&&V.tooltipPosition.moveStickyTooltipOverBars(o,n),W&&V.tooltipPosition.moveMarkers(n,o)}}]),t}(),G_e=function(){function t(e){Be(this,t),this.w=e.w,this.barCtx=e,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return Fe(t,[{key:"handleBarDataLabels",value:function(e){var r,n,o=e.x,a=e.y,f=e.y1,p=e.y2,m=e.i,v=e.j,y=e.realIndex,x=e.columnGroupIndex,k=e.series,S=e.barHeight,O=e.barWidth,C=e.barXPosition,R=e.barYPosition,E=e.visibleSeries,P=this.w,M=new xe(this.barCtx.ctx),I=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[y]:this.barCtx.strokeWidth;P.globals.isXNumeric&&!P.globals.isBarHorizontal?(r=o+parseFloat(O*(E+1)),n=a+parseFloat(S*(E+1))-I):(r=o+parseFloat(O*E),n=a+parseFloat(S*E));var B,U=null,H=o,V=a,W={},G=P.config.dataLabels,Z=this.barCtx.barOptions.dataLabels,K=this.barCtx.barOptions.dataLabels.total;R!==void 0&&this.barCtx.isRangeBar&&(n=R,V=R),C!==void 0&&this.barCtx.isVerticalGroupedRangeBar&&(r=C,H=C);var Q=G.offsetX,oe=G.offsetY,ie={width:0,height:0};if(P.config.dataLabels.enabled){var re=P.globals.series[m][v];ie=M.getTextRects(P.config.dataLabels.formatter?P.config.dataLabels.formatter(re,Oe(Oe({},P),{},{seriesIndex:m,dataPointIndex:v,w:P})):P.globals.yLabelFormatters[0](re),parseFloat(G.style.fontSize))}var ne={x:o,y:a,i:m,j:v,realIndex:y,columnGroupIndex:x,bcx:r,bcy:n,barHeight:S,barWidth:O,textRects:ie,strokeWidth:I,dataLabelsX:H,dataLabelsY:V,dataLabelsConfig:G,barDataLabelsConfig:Z,barTotalDataLabelsConfig:K,offX:Q,offY:oe};return W=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(ne):this.calculateColumnsDataLabelsPosition(ne),B=this.drawCalculatedDataLabels({x:W.dataLabelsX,y:W.dataLabelsY,val:this.barCtx.isRangeBar?[f,p]:P.config.chart.stackType==="100%"?k[y][v]:P.globals.series[y][v],i:y,j:v,barWidth:O,barHeight:S,textRects:ie,dataLabelsConfig:G}),P.config.chart.stacked&&K.enabled&&(U=this.drawTotalDataLabels({x:W.totalDataLabelsX,y:W.totalDataLabelsY,barWidth:O,barHeight:S,realIndex:y,textAnchor:W.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:y,j:v}),dataLabelsConfig:G,barTotalDataLabelsConfig:K})),{dataLabelsPos:W,dataLabels:B,totalDataLabels:U}}},{key:"getStackedTotalDataLabel",value:function(e){var r=e.realIndex,n=e.j,o=this.w,a=this.barCtx.stackedSeriesTotals[n];return this.totalFormatter&&(a=this.totalFormatter(a,Oe(Oe({},o),{},{seriesIndex:r,dataPointIndex:n,w:o}))),a}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var r=this,n=this.w,o=e.i,a=e.j,f=e.realIndex;e.columnGroupIndex;var p,m,v=e.y,y=e.bcx,x=e.barWidth,k=e.barHeight,S=e.textRects,O=e.dataLabelsX,C=e.dataLabelsY,R=e.dataLabelsConfig,E=e.barDataLabelsConfig,P=e.barTotalDataLabelsConfig,M=e.strokeWidth,I=e.offX,B=e.offY,U=y;k=Math.abs(k);var H=n.config.plotOptions.bar.dataLabels.orientation==="vertical",V=this.barCtx.barHelpers.getZeroValueEncounters({i:o,j:a}).zeroEncounters;y-=M/2;var W=n.globals.gridWidth/n.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?O+=x/2:(O=n.globals.isXNumeric?y-x/2+I:y-W+x/2+I,!n.config.chart.stacked&&V>0&&n.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(O-=x*V)),H&&(O=O+S.height/2-M/2-2);var G=n.globals.series[o][a]<0,Z=v;switch(this.barCtx.isReversed&&(Z=v+(G?k:-k)),E.position){case"center":C=H?G?Z-k/2+B:Z+k/2-B:G?Z-k/2+S.height/2+B:Z+k/2+S.height/2-B;break;case"bottom":C=H?G?Z-k+B:Z+k-B:G?Z-k+S.height+M+B:Z+k-S.height/2+M-B;break;case"top":C=H?G?Z+B:Z-B:G?Z-S.height/2-B:Z+S.height+B}var K=Z;if(n.globals.seriesGroups.forEach(function(ie){var re;(re=r.barCtx[ie.join(",")])===null||re===void 0||re.prevY.forEach(function(ne){K=G?Math.max(ne[a],K):Math.min(ne[a],K)})}),this.barCtx.lastActiveBarSerieIndex===f&&P.enabled){var Q=new xe(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:f,j:a}),R.fontSize);p=G?K-Q.height/2-B-P.offsetY+18:K+Q.height+B+P.offsetY-18;var oe=W;m=U+(n.globals.isXNumeric?-x*n.globals.barGroups.length/2:n.globals.barGroups.length*x/2-(n.globals.barGroups.length-1)*x-oe)+P.offsetX}return n.config.chart.stacked||(C<0?C=0+M:C+S.height/3>n.globals.gridHeight&&(C=n.globals.gridHeight-M)),{bcx:y,bcy:v,dataLabelsX:O,dataLabelsY:C,totalDataLabelsX:m,totalDataLabelsY:p,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var r=this,n=this.w,o=e.x,a=e.i,f=e.j,p=e.realIndex,m=e.bcy,v=e.barHeight,y=e.barWidth,x=e.textRects,k=e.dataLabelsX,S=e.strokeWidth,O=e.dataLabelsConfig,C=e.barDataLabelsConfig,R=e.barTotalDataLabelsConfig,E=e.offX,P=e.offY,M=n.globals.gridHeight/n.globals.dataPoints,I=this.barCtx.barHelpers.getZeroValueEncounters({i:a,j:f}).zeroEncounters;y=Math.abs(y);var B,U,H=m-(this.barCtx.isRangeBar?0:M)+v/2+x.height/2+P-3;!n.config.chart.stacked&&I>0&&n.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(H-=v*I);var V="start",W=n.globals.series[a][f]<0,G=o;switch(this.barCtx.isReversed&&(G=o+(W?-y:y),V=W?"start":"end"),C.position){case"center":k=W?G+y/2-E:Math.max(x.width/2,G-y/2)+E;break;case"bottom":k=W?G+y-S-E:G-y+S+E;break;case"top":k=W?G-S-E:G-S+E}var Z=G;if(n.globals.seriesGroups.forEach(function(Q){var oe;(oe=r.barCtx[Q.join(",")])===null||oe===void 0||oe.prevX.forEach(function(ie){Z=W?Math.min(ie[f],Z):Math.max(ie[f],Z)})}),this.barCtx.lastActiveBarSerieIndex===p&&R.enabled){var K=new xe(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:p,j:f}),O.fontSize);W?(B=Z-S-E-R.offsetX,V="end"):B=Z+E+R.offsetX+(this.barCtx.isReversed?-(y+S):S),U=H-x.height/2+K.height/2+R.offsetY+S,n.globals.barGroups.length>1&&(U-=n.globals.barGroups.length/2*(v/2))}return n.config.chart.stacked||(O.textAnchor==="start"?k-x.width<0?k=W?x.width+S:S:k+x.width>n.globals.gridWidth&&(k=W?n.globals.gridWidth-S:n.globals.gridWidth-x.width-S):O.textAnchor==="middle"?k-x.width/2<0?k=x.width/2+S:k+x.width/2>n.globals.gridWidth&&(k=n.globals.gridWidth-x.width/2-S):O.textAnchor==="end"&&(k<1?k=x.width+S:k+1>n.globals.gridWidth&&(k=n.globals.gridWidth-x.width-S))),{bcx:o,bcy:m,dataLabelsX:k,dataLabelsY:H,totalDataLabelsX:B,totalDataLabelsY:U,totalDataLabelsAnchor:V}}},{key:"drawCalculatedDataLabels",value:function(e){var r=e.x,n=e.y,o=e.val,a=e.i,f=e.j,p=e.textRects,m=e.barHeight,v=e.barWidth,y=e.dataLabelsConfig,x=this.w,k="rotate(0)";x.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(k="rotate(-90, ".concat(r,", ").concat(n,")"));var S=new Zf(this.barCtx.ctx),O=new xe(this.barCtx.ctx),C=y.formatter,R=null,E=x.globals.collapsedSeriesIndices.indexOf(a)>-1;if(y.enabled&&!E){R=O.group({class:"apexcharts-data-labels",transform:k});var P="";o!==void 0&&(P=C(o,Oe(Oe({},x),{},{seriesIndex:a,dataPointIndex:f,w:x}))),!o&&x.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(P="");var M=x.globals.series[a][f]<0,I=x.config.plotOptions.bar.dataLabels.position;x.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(I==="top"&&(y.textAnchor=M?"end":"start"),I==="center"&&(y.textAnchor="middle"),I==="bottom"&&(y.textAnchor=M?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&v<O.getTextRects(P,parseFloat(y.style.fontSize)).width&&(P=""),x.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?p.width/1.6>Math.abs(v)&&(P=""):p.height/1.6>Math.abs(m)&&(P=""));var B=Oe({},y);this.barCtx.isHorizontal&&o<0&&(y.textAnchor==="start"?B.textAnchor="end":y.textAnchor==="end"&&(B.textAnchor="start")),S.plotDataLabelsText({x:r,y:n,text:P,i:a,j:f,parent:R,dataLabelsConfig:B,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return R}},{key:"drawTotalDataLabels",value:function(e){var r=e.x,n=e.y,o=e.val,a=e.realIndex,f=e.textAnchor,p=e.barTotalDataLabelsConfig;this.w;var m,v=new xe(this.barCtx.ctx);return p.enabled&&r!==void 0&&n!==void 0&&this.barCtx.lastActiveBarSerieIndex===a&&(m=v.drawText({x:r,y:n,foreColor:p.style.color,text:o,textAnchor:f,fontFamily:p.style.fontFamily,fontSize:p.style.fontSize,fontWeight:p.style.fontWeight})),m}}]),t}(),$_e=function(){function t(e){Be(this,t),this.w=e.w,this.barCtx=e}return Fe(t,[{key:"initVariables",value:function(e){var r=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var n=0;n<e.length;n++)if(e[n].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[n].length),r.globals.isXNumeric)for(var o=0;o<e[n].length;o++)r.globals.seriesX[n][o]>r.globals.minX&&r.globals.seriesX[n][o]<r.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=r.globals.dataPoints;this.arrBorderRadius=this.createBorderRadiusArr(r.globals.series),se.isSafari()&&(this.arrBorderRadius=this.arrBorderRadius.map(function(a){return a.map(function(f){return"none"})})),this.barCtx.seriesLen===0&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],r.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(e){var r,n,o,a,f,p,m,v,y=this.w,x=y.globals.dataPoints;this.barCtx.isRangeBar&&(x=y.globals.labels.length);var k=this.barCtx.seriesLen;if(y.config.plotOptions.bar.rangeBarGroupRows&&(k=1),this.barCtx.isHorizontal)f=(o=y.globals.gridHeight/x)/k,y.globals.isXNumeric&&(f=(o=y.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),f=f*parseInt(this.barCtx.barOptions.barHeight,10)/100,String(this.barCtx.barOptions.barHeight).indexOf("%")===-1&&(f=parseInt(this.barCtx.barOptions.barHeight,10)),v=this.barCtx.baseLineInvertedY+y.globals.padHorizontal+(this.barCtx.isReversed?y.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(v=y.globals.gridWidth/2),n=(o-f*this.barCtx.seriesLen)/2;else{if(a=y.globals.gridWidth/this.barCtx.visibleItems,y.config.xaxis.convertedCatToNumeric&&(a=y.globals.gridWidth/y.globals.dataPoints),p=a/k*parseInt(this.barCtx.barOptions.columnWidth,10)/100,y.globals.isXNumeric){var S=this.barCtx.xRatio;y.globals.minXDiff&&y.globals.minXDiff!==.5&&y.globals.minXDiff/S>0&&(a=y.globals.minXDiff/S),(p=a/k*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(p=1)}String(this.barCtx.barOptions.columnWidth).indexOf("%")===-1&&(p=parseInt(this.barCtx.barOptions.columnWidth,10)),m=y.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?y.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),y.globals.isXNumeric?r=this.barCtx.getBarXForNumericXAxis({x:r,j:0,realIndex:e,barWidth:p}).x:r=y.globals.padHorizontal+se.noExponents(a-p*this.barCtx.seriesLen)/2}return y.globals.barHeight=f,y.globals.barWidth=p,{x:r,y:n,yDivision:o,xDivision:a,barHeight:f,barWidth:p,zeroH:m,zeroW:v}}},{key:"initializeStackedPrevVars",value:function(e){e.w.globals.seriesGroups.forEach(function(r){e[r]||(e[r]={}),e[r].prevY=[],e[r].prevX=[],e[r].prevYF=[],e[r].prevXF=[],e[r].prevYVal=[],e[r].prevXVal=[]})}},{key:"initializeStackedXYVars",value:function(e){e.w.globals.seriesGroups.forEach(function(r){e[r]||(e[r]={}),e[r].xArrj=[],e[r].xArrjF=[],e[r].xArrjVal=[],e[r].yArrj=[],e[r].yArrjF=[],e[r].yArrjVal=[]})}},{key:"getPathFillColor",value:function(e,r,n,o){var a,f,p,m,v=this.w,y=this.barCtx.ctx.fill,x=null,k=this.barCtx.barOptions.distributed?n:r,S=!1;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(O){e[r][n]>=O.from&&e[r][n]<=O.to&&(x=O.color,S=!0)}),{color:y.fillPath({seriesNumber:this.barCtx.barOptions.distributed?k:o,dataPointIndex:n,color:x,value:e[r][n],fillConfig:(a=v.config.series[r].data[n])===null||a===void 0?void 0:a.fill,fillType:(f=v.config.series[r].data[n])!==null&&f!==void 0&&(p=f.fill)!==null&&p!==void 0&&p.type?(m=v.config.series[r].data[n])===null||m===void 0?void 0:m.fill.type:Array.isArray(v.config.fill.type)?v.config.fill.type[o]:v.config.fill.type}),useRangeColor:S}}},{key:"getStrokeWidth",value:function(e,r,n){var o=0,a=this.w;return this.barCtx.series[e][r]===void 0||this.barCtx.series[e][r]===null||a.config.chart.type==="bar"&&!this.barCtx.series[e][r]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,a.config.stroke.show&&(this.barCtx.isNullValue||(o=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[n]:this.barCtx.strokeWidth)),o}},{key:"createBorderRadiusArr",value:function(e){var r,n=this.w,o=!this.w.config.chart.stacked||n.config.plotOptions.bar.borderRadius<=0,a=e.length,f=0|((r=e[0])===null||r===void 0?void 0:r.length),p=Array.from({length:a},function(){return Array(f).fill(o?"top":"none")});if(o)return p;for(var m=0;m<f;m++){for(var v=[],y=[],x=0,k=0;k<a;k++){var S=e[k][m];S>0?(v.push(k),x++):S<0&&(y.push(k),x++)}if(v.length>0&&y.length===0)if(v.length===1)p[v[0]][m]="both";else{var O,C=v[0],R=v[v.length-1],E=wm(v);try{for(E.s();!(O=E.n()).done;){var P=O.value;p[P][m]=P===C?"bottom":P===R?"top":"none"}}catch(re){E.e(re)}finally{E.f()}}else if(y.length>0&&v.length===0)if(y.length===1)p[y[0]][m]="both";else{var M,I=Math.max.apply(Math,y),B=Math.min.apply(Math,y),U=wm(y);try{for(U.s();!(M=U.n()).done;){var H=M.value;p[H][m]=H===I?"bottom":H===B?"top":"none"}}catch(re){U.e(re)}finally{U.f()}}else if(v.length>0&&y.length>0){var V,W=v[v.length-1],G=wm(v);try{for(G.s();!(V=G.n()).done;){var Z=V.value;p[Z][m]=Z===W?"top":"none"}}catch(re){G.e(re)}finally{G.f()}var K,Q=Math.max.apply(Math,y),oe=wm(y);try{for(oe.s();!(K=oe.n()).done;){var ie=K.value;p[ie][m]=ie===Q?"bottom":"none"}}catch(re){oe.e(re)}finally{oe.f()}}else x===1&&(p[v[0]||y[0]][m]="both")}return p}},{key:"barBackground",value:function(e){var r=e.j,n=e.i,o=e.x1,a=e.x2,f=e.y1,p=e.y2,m=e.elSeries,v=this.w,y=new xe(this.barCtx.ctx),x=new Ai(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&x===n){r>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(r%=this.barCtx.barOptions.colors.backgroundBarColors.length);var k=this.barCtx.barOptions.colors.backgroundBarColors[r],S=y.drawRect(o!==void 0?o:0,f!==void 0?f:0,a!==void 0?a:v.globals.gridWidth,p!==void 0?p:v.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,k,this.barCtx.barOptions.colors.backgroundBarOpacity);m.add(S),S.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var r,n=e.barWidth,o=e.barXPosition,a=e.y1,f=e.y2,p=e.strokeWidth,m=e.isReversed,v=e.series,y=e.seriesGroup,x=e.realIndex,k=e.i,S=e.j,O=e.w,C=new xe(this.barCtx.ctx);(p=Array.isArray(p)?p[x]:p)||(p=0);var R=n,E=o;(r=O.config.series[x].data[S])!==null&&r!==void 0&&r.columnWidthOffset&&(E=o-O.config.series[x].data[S].columnWidthOffset/2,R=n+O.config.series[x].data[S].columnWidthOffset);var P=p/2,M=E+P,I=E+R-P,B=(v[k][S]>=0?1:-1)*(m?-1:1);a+=.001-P*B,f+=.001+P*B;var U=C.move(M,a),H=C.move(M,a),V=C.line(I,a);if(O.globals.previousPaths.length>0&&(H=this.barCtx.getPreviousPath(x,S,!1)),U=U+C.line(M,f)+C.line(I,f)+V+(O.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[x][S]==="both"?" Z":" z"),H=H+C.line(M,a)+V+V+V+V+V+C.line(M,a)+(O.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[x][S]==="both"?" Z":" z"),this.arrBorderRadius[x][S]!=="none"&&(U=C.roundPathCorners(U,O.config.plotOptions.bar.borderRadius)),O.config.chart.stacked){var W=this.barCtx;(W=this.barCtx[y]).yArrj.push(f-P*B),W.yArrjF.push(Math.abs(a-f+p*B)),W.yArrjVal.push(this.barCtx.series[k][S])}return{pathTo:U,pathFrom:H}}},{key:"getBarpaths",value:function(e){var r,n=e.barYPosition,o=e.barHeight,a=e.x1,f=e.x2,p=e.strokeWidth,m=e.isReversed,v=e.series,y=e.seriesGroup,x=e.realIndex,k=e.i,S=e.j,O=e.w,C=new xe(this.barCtx.ctx);(p=Array.isArray(p)?p[x]:p)||(p=0);var R=n,E=o;(r=O.config.series[x].data[S])!==null&&r!==void 0&&r.barHeightOffset&&(R=n-O.config.series[x].data[S].barHeightOffset/2,E=o+O.config.series[x].data[S].barHeightOffset);var P=p/2,M=R+P,I=R+E-P,B=(v[k][S]>=0?1:-1)*(m?-1:1);a+=.001+P*B,f+=.001-P*B;var U=C.move(a,M),H=C.move(a,M);O.globals.previousPaths.length>0&&(H=this.barCtx.getPreviousPath(x,S,!1));var V=C.line(a,I);if(U=U+C.line(f,M)+C.line(f,I)+V+(O.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[x][S]==="both"?" Z":" z"),H=H+C.line(a,M)+V+V+V+V+V+C.line(a,M)+(O.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[x][S]==="both"?" Z":" z"),this.arrBorderRadius[x][S]!=="none"&&(U=C.roundPathCorners(U,O.config.plotOptions.bar.borderRadius)),O.config.chart.stacked){var W=this.barCtx;(W=this.barCtx[y]).xArrj.push(f+P*B),W.xArrjF.push(Math.abs(a-f-p*B)),W.xArrjVal.push(this.barCtx.series[k][S])}return{pathTo:U,pathFrom:H}}},{key:"checkZeroSeries",value:function(e){for(var r=e.series,n=this.w,o=0;o<r.length;o++){for(var a=0,f=0;f<r[n.globals.maxValsInArrayIndex].length;f++)a+=r[o][f];a===0&&this.barCtx.zeroSerieses.push(o)}}},{key:"getXForValue",value:function(e,r){var n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?r:null;return e!=null&&(n=r+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),n}},{key:"getYForValue",value:function(e,r,n){var o=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3]?r:null;return e!=null&&(o=r-e/this.barCtx.yRatio[n]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[n]:0)),o}},{key:"getGoalValues",value:function(e,r,n,o,a,f){var p=this,m=this.w,v=[],y=function(S,O){var C;v.push((Aw(C={},e,e==="x"?p.getXForValue(S,r,!1):p.getYForValue(S,n,f,!1)),Aw(C,"attrs",O),C))};if(m.globals.seriesGoals[o]&&m.globals.seriesGoals[o][a]&&Array.isArray(m.globals.seriesGoals[o][a])&&m.globals.seriesGoals[o][a].forEach(function(S){y(S.value,S)}),this.barCtx.barOptions.isDumbbell&&m.globals.seriesRange.length){var x=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:m.globals.colors,k={strokeHeight:e==="x"?0:m.globals.markers.size[o],strokeWidth:e==="x"?m.globals.markers.size[o]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(x[o])?x[o][0]:x[o]};y(m.globals.seriesRangeStart[o][a],k),y(m.globals.seriesRangeEnd[o][a],Oe(Oe({},k),{},{strokeColor:Array.isArray(x[o])?x[o][1]:x[o]}))}return v}},{key:"drawGoalLine",value:function(e){var r=e.barXPosition,n=e.barYPosition,o=e.goalX,a=e.goalY,f=e.barWidth,p=e.barHeight,m=new xe(this.barCtx.ctx),v=m.group({className:"apexcharts-bar-goals-groups"});v.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:v.node}),v.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var y=null;return this.barCtx.isHorizontal?Array.isArray(o)&&o.forEach(function(x){if(x.x>=-1&&x.x<=m.w.globals.gridWidth+1){var k=x.attrs.strokeHeight!==void 0?x.attrs.strokeHeight:p/2,S=n+k+p/2;y=m.drawLine(x.x,S-2*k,x.x,S,x.attrs.strokeColor?x.attrs.strokeColor:void 0,x.attrs.strokeDashArray,x.attrs.strokeWidth?x.attrs.strokeWidth:2,x.attrs.strokeLineCap),v.add(y)}}):Array.isArray(a)&&a.forEach(function(x){if(x.y>=-1&&x.y<=m.w.globals.gridHeight+1){var k=x.attrs.strokeWidth!==void 0?x.attrs.strokeWidth:f/2,S=r+k+f/2;y=m.drawLine(S-2*k,x.y,S,x.y,x.attrs.strokeColor?x.attrs.strokeColor:void 0,x.attrs.strokeDashArray,x.attrs.strokeHeight?x.attrs.strokeHeight:2,x.attrs.strokeLineCap),v.add(y)}}),v}},{key:"drawBarShadow",value:function(e){var r=e.prevPaths,n=e.currPaths,o=e.color,a=this.w,f=r.x,p=r.x1,m=r.barYPosition,v=n.x,y=n.x1,x=n.barYPosition,k=m+n.barHeight,S=new xe(this.barCtx.ctx),O=new se,C=S.move(p,k)+S.line(f,k)+S.line(v,x)+S.line(y,x)+S.line(p,k)+(a.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[realIndex][j]==="both"?" Z":" z");return S.drawPath({d:C,fill:O.shadeColor(.5,se.rgb2hex(o)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadow apexcharts-decoration-element"})}},{key:"getZeroValueEncounters",value:function(e){var r,n=e.i,o=e.j,a=this.w,f=0,p=0;return(a.config.plotOptions.bar.horizontal?a.globals.series.map(function(m,v){return v}):((r=a.globals.columnSeries)===null||r===void 0?void 0:r.i.map(function(m){return m}))||[]).forEach(function(m){var v=a.globals.seriesPercent[m][o];v&&f++,m<n&&v===0&&p++}),{nonZeroColumns:f,zeroEncounters:p}}},{key:"getGroupIndex",value:function(e){var r=this.w,n=r.globals.seriesGroups.findIndex(function(f){return f.indexOf(r.globals.seriesNames[e])>-1}),o=this.barCtx.columnGroupIndices,a=o.indexOf(n);return a<0&&(o.push(n),a=o.length-1),{groupIndex:n,columnGroupIndex:a}}}]),t}(),Kf=function(){function t(e,r){Be(this,t),this.ctx=e,this.w=e.w;var n=this.w;this.barOptions=n.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=n.config.stroke.width,this.isNullValue=!1,this.isRangeBar=n.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!n.globals.isBarHorizontal&&n.globals.seriesRange.length&&n.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=r,this.xyRatios!==null&&(this.xRatio=r.xRatio,this.yRatio=r.yRatio,this.invertedXRatio=r.invertedXRatio,this.invertedYRatio=r.invertedYRatio,this.baseLineY=r.baseLineY,this.baseLineInvertedY=r.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[];var o=new Ai(this.ctx);this.lastActiveBarSerieIndex=o.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[];var a=o.getBarSeriesIndices(),f=new Hr(this.ctx);this.stackedSeriesTotals=f.getStackedSeriesTotals(this.w.config.series.map(function(p,m){return a.indexOf(m)===-1?m:-1}).filter(function(p){return p!==-1})),this.barHelpers=new $_e(this)}return Fe(t,[{key:"draw",value:function(e,r){var n=this.w,o=new xe(this.ctx),a=new Hr(this.ctx,n);e=a.getLogSeries(e),this.series=e,this.yRatio=a.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var f=o.group({class:"apexcharts-bar-series apexcharts-plot-series"});n.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var p=0,m=0;p<e.length;p++,m++){var v,y,x,k,S=void 0,O=void 0,C=[],R=[],E=n.globals.comboCharts?r[p]:p,P=this.barHelpers.getGroupIndex(E).columnGroupIndex,M=o.group({class:"apexcharts-series",rel:p+1,seriesName:se.escapeString(n.globals.seriesNames[E]),"data:realIndex":E});this.ctx.series.addCollapsedClassToSeries(M,E),e[p].length>0&&(this.visibleI=this.visibleI+1);var I=0,B=0;this.yRatio.length>1&&(this.yaxisIndex=n.globals.seriesYAxisReverseMap[E],this.translationsIndex=E);var U=this.translationsIndex;this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed;var H=this.barHelpers.initialPositions(E);O=H.y,I=H.barHeight,y=H.yDivision,k=H.zeroW,S=H.x,B=H.barWidth,v=H.xDivision,x=H.zeroH,this.isHorizontal||R.push(S+B/2);var V=o.group({class:"apexcharts-datalabels","data:realIndex":E});n.globals.delayedElements.push({el:V.node}),V.node.classList.add("apexcharts-element-hidden");var W=o.group({class:"apexcharts-bar-goals-markers"}),G=o.group({class:"apexcharts-bar-shadows"});n.globals.delayedElements.push({el:G.node}),G.node.classList.add("apexcharts-element-hidden");for(var Z=0;Z<e[p].length;Z++){var K=this.barHelpers.getStrokeWidth(p,Z,E),Q=null,oe={indexes:{i:p,j:Z,realIndex:E,translationsIndex:U,bc:m},x:S,y:O,strokeWidth:K,elSeries:M};this.isHorizontal?(Q=this.drawBarPaths(Oe(Oe({},oe),{},{barHeight:I,zeroW:k,yDivision:y})),B=this.series[p][Z]/this.invertedYRatio):(Q=this.drawColumnPaths(Oe(Oe({},oe),{},{xDivision:v,barWidth:B,zeroH:x})),I=this.series[p][Z]/this.yRatio[U]);var ie=this.barHelpers.getPathFillColor(e,p,Z,E);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&Z>0){var re,ne=this.barHelpers.drawBarShadow({color:typeof ie.color=="string"&&((re=ie.color)===null||re===void 0?void 0:re.indexOf("url"))===-1?ie.color:se.hexToRgba(n.globals.colors[p]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:Q});G.add(ne),n.config.chart.dropShadow.enabled&&new Pn(this.ctx).dropShadow(ne,n.config.chart.dropShadow,E)}this.pathArr.push(Q);var te=this.barHelpers.drawGoalLine({barXPosition:Q.barXPosition,barYPosition:Q.barYPosition,goalX:Q.goalX,goalY:Q.goalY,barHeight:I,barWidth:B});te&&W.add(te),O=Q.y,S=Q.x,Z>0&&R.push(S+B/2),C.push(O),this.renderSeries(Oe(Oe({realIndex:E,pathFill:ie.color},ie.useRangeColor?{lineFill:ie.color}:{}),{},{j:Z,i:p,columnGroupIndex:P,pathFrom:Q.pathFrom,pathTo:Q.pathTo,strokeWidth:K,elSeries:M,x:S,y:O,series:e,barHeight:Math.abs(Q.barHeight?Q.barHeight:I),barWidth:Math.abs(Q.barWidth?Q.barWidth:B),elDataLabelsWrap:V,elGoalsMarkers:W,elBarShadows:G,visibleSeries:this.visibleI,type:"bar"}))}n.globals.seriesXvalues[E]=R,n.globals.seriesYvalues[E]=C,f.add(M)}return f}},{key:"renderSeries",value:function(e){var r=e.realIndex,n=e.pathFill,o=e.lineFill,a=e.j,f=e.i,p=e.columnGroupIndex,m=e.pathFrom,v=e.pathTo,y=e.strokeWidth,x=e.elSeries,k=e.x,S=e.y,O=e.y1,C=e.y2,R=e.series,E=e.barHeight,P=e.barWidth,M=e.barXPosition,I=e.barYPosition,B=e.elDataLabelsWrap,U=e.elGoalsMarkers,H=e.elBarShadows,V=e.visibleSeries,W=e.type,G=e.classes,Z=this.w,K=new xe(this.ctx),Q=!1;if(!o){var oe=typeof Z.globals.stroke.colors[r]=="function"?function(ue){var pe,ke=Z.config.stroke.colors;return Array.isArray(ke)&&ke.length>0&&((pe=ke[ue])||(pe=""),typeof pe=="function")?pe({value:Z.globals.series[ue][a],dataPointIndex:a,w:Z}):pe}(r):Z.globals.stroke.colors[r];o=this.barOptions.distributed?Z.globals.stroke.colors[a]:oe}var ie=new G_e(this).handleBarDataLabels({x:k,y:S,y1:O,y2:C,i:f,j:a,series:R,realIndex:r,columnGroupIndex:p,barHeight:E,barWidth:P,barXPosition:M,barYPosition:I,visibleSeries:V});Z.globals.isBarHorizontal||(ie.dataLabelsPos.dataLabelsX+Math.max(P,Z.globals.barPadForNumericAxis)<0||ie.dataLabelsPos.dataLabelsX-Math.max(P,Z.globals.barPadForNumericAxis)>Z.globals.gridWidth)&&(Q=!0),Z.config.series[f].data[a]&&Z.config.series[f].data[a].strokeColor&&(o=Z.config.series[f].data[a].strokeColor),this.isNullValue&&(n="none");var re=a/Z.config.chart.animations.animateGradually.delay*(Z.config.chart.animations.speed/Z.globals.dataPoints)/2.4;if(!Q){var ne=K.renderPaths({i:f,j:a,realIndex:r,pathFrom:m,pathTo:v,stroke:o,strokeWidth:y,strokeLineCap:Z.config.stroke.lineCap,fill:n,animationDelay:re,initialSpeed:Z.config.chart.animations.speed,dataChangeSpeed:Z.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(W,"-area ").concat(G),chartType:W});ne.attr("clip-path","url(#gridRectBarMask".concat(Z.globals.cuid,")"));var te=Z.config.forecastDataPoints;te.count>0&&a>=Z.globals.dataPoints-te.count&&(ne.node.setAttribute("stroke-dasharray",te.dashArray),ne.node.setAttribute("stroke-width",te.strokeWidth),ne.node.setAttribute("fill-opacity",te.fillOpacity)),O!==void 0&&C!==void 0&&(ne.attr("data-range-y1",O),ne.attr("data-range-y2",C)),new Pn(this.ctx).setSelectionFilter(ne,r,a),x.add(ne),ne.attr({cy:ie.dataLabelsPos.bcy,cx:ie.dataLabelsPos.bcx,j:a,val:Z.globals.series[f][a],barHeight:E,barWidth:P}),ie.dataLabels!==null&&B.add(ie.dataLabels),ie.totalDataLabels&&B.add(ie.totalDataLabels),x.add(B),U&&x.add(U),H&&x.add(H)}return x}},{key:"drawBarPaths",value:function(e){var r,n=e.indexes,o=e.barHeight,a=e.strokeWidth,f=e.zeroW,p=e.x,m=e.y,v=e.yDivision,y=e.elSeries,x=this.w,k=n.i,S=n.j;if(x.globals.isXNumeric)r=(m=(x.globals.seriesX[k][S]-x.globals.minX)/this.invertedXRatio-o)+o*this.visibleI;else if(x.config.plotOptions.bar.hideZeroBarsWhenGrouped){var O=this.barHelpers.getZeroValueEncounters({i:k,j:S}),C=O.nonZeroColumns,R=O.zeroEncounters;C>0&&(o=this.seriesLen*o/C),r=m+o*this.visibleI,r-=o*R}else r=m+o*this.visibleI;this.isFunnel&&(f-=(this.barHelpers.getXForValue(this.series[k][S],f)-f)/2),p=this.barHelpers.getXForValue(this.series[k][S],f);var E=this.barHelpers.getBarpaths({barYPosition:r,barHeight:o,x1:f,x2:p,strokeWidth:a,isReversed:this.isReversed,series:this.series,realIndex:n.realIndex,i:k,j:S,w:x});return x.globals.isXNumeric||(m+=v),this.barHelpers.barBackground({j:S,i:k,y1:r-o*this.visibleI,y2:o*this.seriesLen,elSeries:y}),{pathTo:E.pathTo,pathFrom:E.pathFrom,x1:f,x:p,y:m,goalX:this.barHelpers.getGoalValues("x",f,null,k,S),barYPosition:r,barHeight:o}}},{key:"drawColumnPaths",value:function(e){var r,n=e.indexes,o=e.x,a=e.y,f=e.xDivision,p=e.barWidth,m=e.zeroH,v=e.strokeWidth,y=e.elSeries,x=this.w,k=n.realIndex,S=n.translationsIndex,O=n.i,C=n.j,R=n.bc;if(x.globals.isXNumeric){var E=this.getBarXForNumericXAxis({x:o,j:C,realIndex:k,barWidth:p});o=E.x,r=E.barXPosition}else if(x.config.plotOptions.bar.hideZeroBarsWhenGrouped){var P=this.barHelpers.getZeroValueEncounters({i:O,j:C}),M=P.nonZeroColumns,I=P.zeroEncounters;M>0&&(p=this.seriesLen*p/M),r=o+p*this.visibleI,r-=p*I}else r=o+p*this.visibleI;a=this.barHelpers.getYForValue(this.series[O][C],m,S);var B=this.barHelpers.getColumnPaths({barXPosition:r,barWidth:p,y1:m,y2:a,strokeWidth:v,isReversed:this.isReversed,series:this.series,realIndex:k,i:O,j:C,w:x});return x.globals.isXNumeric||(o+=f),this.barHelpers.barBackground({bc:R,j:C,i:O,x1:r-v/2-p*this.visibleI,x2:p*this.seriesLen+v/2,elSeries:y}),{pathTo:B.pathTo,pathFrom:B.pathFrom,x:o,y:a,goalY:this.barHelpers.getGoalValues("y",null,m,O,C,S),barXPosition:r,barWidth:p}}},{key:"getBarXForNumericXAxis",value:function(e){var r=e.x,n=e.barWidth,o=e.realIndex,a=e.j,f=this.w,p=o;return f.globals.seriesX[o].length||(p=f.globals.maxValsInArrayIndex),se.isNumber(f.globals.seriesX[p][a])&&(r=(f.globals.seriesX[p][a]-f.globals.minX)/this.xRatio-n*this.seriesLen/2),{barXPosition:r+n*this.visibleI,x:r}}},{key:"getPreviousPath",value:function(e,r){for(var n=this.w,o="M 0 0",a=0;a<n.globals.previousPaths.length;a++){var f=n.globals.previousPaths[a];f.paths&&f.paths.length>0&&parseInt(f.realIndex,10)===parseInt(e,10)&&n.globals.previousPaths[a].paths[r]!==void 0&&(o=n.globals.previousPaths[a].paths[r].d)}return o}}]),t}(),uB=function(t){gb(r,Kf);var e=pb(r);function r(){return Be(this,r),e.apply(this,arguments)}return Fe(r,[{key:"draw",value:function(n,o){var a=this,f=this.w;this.graphics=new xe(this.ctx),this.bar=new Kf(this.ctx,this.xyRatios);var p=new Hr(this.ctx,f);n=p.getLogSeries(n),this.yRatio=p.getLogYRatios(this.yRatio),this.barHelpers.initVariables(n),f.config.chart.stackType==="100%"&&(n=f.globals.comboCharts?o.map(function(O){return f.globals.seriesPercent[O]}):f.globals.seriesPercent.slice()),this.series=n,this.barHelpers.initializeStackedPrevVars(this);for(var m=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),v=0,y=0,x=function(O,C){var R=void 0,E=void 0,P=void 0,M=void 0,I=f.globals.comboCharts?o[O]:O,B=a.barHelpers.getGroupIndex(I),U=B.groupIndex,H=B.columnGroupIndex;a.groupCtx=a[f.globals.seriesGroups[U]];var V=[],W=[],G=0;a.yRatio.length>1&&(a.yaxisIndex=f.globals.seriesYAxisReverseMap[I][0],G=I),a.isReversed=f.config.yaxis[a.yaxisIndex]&&f.config.yaxis[a.yaxisIndex].reversed;var Z=a.graphics.group({class:"apexcharts-series",seriesName:se.escapeString(f.globals.seriesNames[I]),rel:O+1,"data:realIndex":I});a.ctx.series.addCollapsedClassToSeries(Z,I);var K=a.graphics.group({class:"apexcharts-datalabels","data:realIndex":I}),Q=a.graphics.group({class:"apexcharts-bar-goals-markers"}),oe=0,ie=0,re=a.initialPositions(v,y,R,E,P,M,G);y=re.y,oe=re.barHeight,E=re.yDivision,M=re.zeroW,v=re.x,ie=re.barWidth,R=re.xDivision,P=re.zeroH,f.globals.barHeight=oe,f.globals.barWidth=ie,a.barHelpers.initializeStackedXYVars(a),a.groupCtx.prevY.length===1&&a.groupCtx.prevY[0].every(function(tt){return isNaN(tt)})&&(a.groupCtx.prevY[0]=a.groupCtx.prevY[0].map(function(){return P}),a.groupCtx.prevYF[0]=a.groupCtx.prevYF[0].map(function(){return 0}));for(var ne=0;ne<f.globals.dataPoints;ne++){var te=a.barHelpers.getStrokeWidth(O,ne,I),ue={indexes:{i:O,j:ne,realIndex:I,translationsIndex:G,bc:C},strokeWidth:te,x:v,y,elSeries:Z,columnGroupIndex:H,seriesGroup:f.globals.seriesGroups[U]},pe=null;a.isHorizontal?(pe=a.drawStackedBarPaths(Oe(Oe({},ue),{},{zeroW:M,barHeight:oe,yDivision:E})),ie=a.series[O][ne]/a.invertedYRatio):(pe=a.drawStackedColumnPaths(Oe(Oe({},ue),{},{xDivision:R,barWidth:ie,zeroH:P})),oe=a.series[O][ne]/a.yRatio[G]);var ke=a.barHelpers.drawGoalLine({barXPosition:pe.barXPosition,barYPosition:pe.barYPosition,goalX:pe.goalX,goalY:pe.goalY,barHeight:oe,barWidth:ie});ke&&Q.add(ke),y=pe.y,v=pe.x,V.push(v),W.push(y);var ze=a.barHelpers.getPathFillColor(n,O,ne,I),Re="",Ae=f.globals.isBarHorizontal?"apexcharts-flip-x":"apexcharts-flip-y";(a.barHelpers.arrBorderRadius[I][ne]==="bottom"&&f.globals.series[I][ne]>0||a.barHelpers.arrBorderRadius[I][ne]==="top"&&f.globals.series[I][ne]<0)&&(Re=Ae),Z=a.renderSeries(Oe(Oe({realIndex:I,pathFill:ze.color},ze.useRangeColor?{lineFill:ze.color}:{}),{},{j:ne,i:O,columnGroupIndex:H,pathFrom:pe.pathFrom,pathTo:pe.pathTo,strokeWidth:te,elSeries:Z,x:v,y,series:n,barHeight:oe,barWidth:ie,elDataLabelsWrap:K,elGoalsMarkers:Q,type:"bar",visibleSeries:H,classes:Re}))}f.globals.seriesXvalues[I]=V,f.globals.seriesYvalues[I]=W,a.groupCtx.prevY.push(a.groupCtx.yArrj),a.groupCtx.prevYF.push(a.groupCtx.yArrjF),a.groupCtx.prevYVal.push(a.groupCtx.yArrjVal),a.groupCtx.prevX.push(a.groupCtx.xArrj),a.groupCtx.prevXF.push(a.groupCtx.xArrjF),a.groupCtx.prevXVal.push(a.groupCtx.xArrjVal),m.add(Z)},k=0,S=0;k<n.length;k++,S++)x(k,S);return m}},{key:"initialPositions",value:function(n,o,a,f,p,m,v){var y,x,k=this.w;if(this.isHorizontal){f=k.globals.gridHeight/k.globals.dataPoints;var S=k.config.plotOptions.bar.barHeight;y=String(S).indexOf("%")===-1?parseInt(S,10):f*parseInt(S,10)/100,m=k.globals.padHorizontal+(this.isReversed?k.globals.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),o=(f-y)/2}else{x=a=k.globals.gridWidth/k.globals.dataPoints;var O=k.config.plotOptions.bar.columnWidth;k.globals.isXNumeric&&k.globals.dataPoints>1?x=(a=k.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:String(O).indexOf("%")===-1?x=parseInt(O,10):x*=parseInt(O,10)/100,p=this.isReversed?this.baseLineY[v]:k.globals.gridHeight-this.baseLineY[v],n=k.globals.padHorizontal+(a-x)/2}var C=k.globals.barGroups.length||1;return{x:n,y:o,yDivision:f,xDivision:a,barHeight:y/C,barWidth:x/C,zeroH:p,zeroW:m}}},{key:"drawStackedBarPaths",value:function(n){for(var o,a=n.indexes,f=n.barHeight,p=n.strokeWidth,m=n.zeroW,v=n.x,y=n.y,x=n.columnGroupIndex,k=n.seriesGroup,S=n.yDivision,O=n.elSeries,C=this.w,R=y+x*f,E=a.i,P=a.j,M=a.realIndex,I=a.translationsIndex,B=0,U=0;U<this.groupCtx.prevXF.length;U++)B+=this.groupCtx.prevXF[U][P];var H=E;if(C.config.series[M].name&&(H=k.indexOf(C.config.series[M].name)),H>0){var V=m;this.groupCtx.prevXVal[H-1][P]<0?V=this.series[E][P]>=0?this.groupCtx.prevX[H-1][P]+B-2*(this.isReversed?B:0):this.groupCtx.prevX[H-1][P]:this.groupCtx.prevXVal[H-1][P]>=0&&(V=this.series[E][P]>=0?this.groupCtx.prevX[H-1][P]:this.groupCtx.prevX[H-1][P]-B+2*(this.isReversed?B:0)),o=V}else o=m;v=this.series[E][P]===null?o:o+this.series[E][P]/this.invertedYRatio-2*(this.isReversed?this.series[E][P]/this.invertedYRatio:0);var W=this.barHelpers.getBarpaths({barYPosition:R,barHeight:f,x1:o,x2:v,strokeWidth:p,isReversed:this.isReversed,series:this.series,realIndex:a.realIndex,seriesGroup:k,i:E,j:P,w:C});return this.barHelpers.barBackground({j:P,i:E,y1:R,y2:f,elSeries:O}),y+=S,{pathTo:W.pathTo,pathFrom:W.pathFrom,goalX:this.barHelpers.getGoalValues("x",m,null,E,P,I),barXPosition:o,barYPosition:R,x:v,y}}},{key:"drawStackedColumnPaths",value:function(n){var o=n.indexes,a=n.x,f=n.y,p=n.xDivision,m=n.barWidth,v=n.zeroH,y=n.columnGroupIndex,x=n.seriesGroup,k=n.elSeries,S=this.w,O=o.i,C=o.j,R=o.bc,E=o.realIndex,P=o.translationsIndex;if(S.globals.isXNumeric){var M=S.globals.seriesX[E][C];M||(M=0),a=(M-S.globals.minX)/this.xRatio-m/2*S.globals.barGroups.length}for(var I,B=a+y*m,U=0,H=0;H<this.groupCtx.prevYF.length;H++)U+=isNaN(this.groupCtx.prevYF[H][C])?0:this.groupCtx.prevYF[H][C];var V=O;if(x&&(V=x.indexOf(S.globals.seriesNames[E])),V>0&&!S.globals.isXNumeric||V>0&&S.globals.isXNumeric&&S.globals.seriesX[E-1][C]===S.globals.seriesX[E][C]){var W,G,Z,K=Math.min(this.yRatio.length+1,E+1);if(this.groupCtx.prevY[V-1]!==void 0&&this.groupCtx.prevY[V-1].length)for(var Q=1;Q<K;Q++){var oe;if(!isNaN((oe=this.groupCtx.prevY[V-Q])===null||oe===void 0?void 0:oe[C])){Z=this.groupCtx.prevY[V-Q][C];break}}for(var ie=1;ie<K;ie++){var re,ne;if(((re=this.groupCtx.prevYVal[V-ie])===null||re===void 0?void 0:re[C])<0){G=this.series[O][C]>=0?Z-U+2*(this.isReversed?U:0):Z;break}if(((ne=this.groupCtx.prevYVal[V-ie])===null||ne===void 0?void 0:ne[C])>=0){G=this.series[O][C]>=0?Z:Z+U-2*(this.isReversed?U:0);break}}G===void 0&&(G=S.globals.gridHeight),I=(W=this.groupCtx.prevYF[0])!==null&&W!==void 0&&W.every(function(ue){return ue===0})&&this.groupCtx.prevYF.slice(1,V).every(function(ue){return ue.every(function(pe){return isNaN(pe)})})?v:G}else I=v;f=this.series[O][C]?I-this.series[O][C]/this.yRatio[P]+2*(this.isReversed?this.series[O][C]/this.yRatio[P]:0):I;var te=this.barHelpers.getColumnPaths({barXPosition:B,barWidth:m,y1:I,y2:f,yRatio:this.yRatio[P],strokeWidth:this.strokeWidth,isReversed:this.isReversed,series:this.series,seriesGroup:x,realIndex:o.realIndex,i:O,j:C,w:S});return this.barHelpers.barBackground({bc:R,j:C,i:O,x1:B,x2:m,elSeries:k}),{pathTo:te.pathTo,pathFrom:te.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,v,O,C),barXPosition:B,x:S.globals.isXNumeric?a:a+p,y:f}}}]),r}(),gE=function(t){gb(r,Kf);var e=pb(r);function r(){return Be(this,r),e.apply(this,arguments)}return Fe(r,[{key:"draw",value:function(n,o,a){var f=this,p=this.w,m=new xe(this.ctx),v=p.globals.comboCharts?o:p.config.chart.type,y=new ea(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=p.config.plotOptions.bar.horizontal,this.isOHLC=this.candlestickOptions&&this.candlestickOptions.type==="ohlc";var x=new Hr(this.ctx,p);n=x.getLogSeries(n),this.series=n,this.yRatio=x.getLogYRatios(this.yRatio),this.barHelpers.initVariables(n);for(var k=m.group({class:"apexcharts-".concat(v,"-series apexcharts-plot-series")}),S=function(C){f.isBoxPlot=p.config.chart.type==="boxPlot"||p.config.series[C].type==="boxPlot";var R,E,P,M,I=void 0,B=void 0,U=[],H=[],V=p.globals.comboCharts?a[C]:C,W=f.barHelpers.getGroupIndex(V).columnGroupIndex,G=m.group({class:"apexcharts-series",seriesName:se.escapeString(p.globals.seriesNames[V]),rel:C+1,"data:realIndex":V});f.ctx.series.addCollapsedClassToSeries(G,V),n[C].length>0&&(f.visibleI=f.visibleI+1);var Z,K,Q=0;f.yRatio.length>1&&(f.yaxisIndex=p.globals.seriesYAxisReverseMap[V][0],Q=V);var oe=f.barHelpers.initialPositions(V);B=oe.y,Z=oe.barHeight,E=oe.yDivision,M=oe.zeroW,I=oe.x,K=oe.barWidth,R=oe.xDivision,P=oe.zeroH,H.push(I+K/2);for(var ie=m.group({class:"apexcharts-datalabels","data:realIndex":V}),re=m.group({class:"apexcharts-bar-goals-markers"}),ne=function(ue){var pe=f.barHelpers.getStrokeWidth(C,ue,V),ke=null,ze={indexes:{i:C,j:ue,realIndex:V,translationsIndex:Q},x:I,y:B,strokeWidth:pe,elSeries:G};ke=f.isHorizontal?f.drawHorizontalBoxPaths(Oe(Oe({},ze),{},{yDivision:E,barHeight:Z,zeroW:M})):f.drawVerticalBoxPaths(Oe(Oe({},ze),{},{xDivision:R,barWidth:K,zeroH:P})),B=ke.y,I=ke.x;var Re=f.barHelpers.drawGoalLine({barXPosition:ke.barXPosition,barYPosition:ke.barYPosition,goalX:ke.goalX,goalY:ke.goalY,barHeight:Z,barWidth:K});Re&&re.add(Re),ue>0&&H.push(I+K/2),U.push(B),ke.pathTo.forEach(function(Ae,tt){var Ue=!f.isBoxPlot&&f.candlestickOptions.wick.useFillColor?ke.color[tt]:p.globals.stroke.colors[C],Te=y.fillPath({seriesNumber:V,dataPointIndex:ue,color:ke.color[tt],value:n[C][ue]});f.renderSeries({realIndex:V,pathFill:Te,lineFill:Ue,j:ue,i:C,pathFrom:ke.pathFrom,pathTo:Ae,strokeWidth:pe,elSeries:G,x:I,y:B,series:n,columnGroupIndex:W,barHeight:Z,barWidth:K,elDataLabelsWrap:ie,elGoalsMarkers:re,visibleSeries:f.visibleI,type:p.config.chart.type})})},te=0;te<p.globals.dataPoints;te++)ne(te);p.globals.seriesXvalues[V]=H,p.globals.seriesYvalues[V]=U,k.add(G)},O=0;O<n.length;O++)S(O);return k}},{key:"drawVerticalBoxPaths",value:function(n){var o=n.indexes,a=n.x;n.y;var f=n.xDivision,p=n.barWidth,m=n.zeroH,v=n.strokeWidth,y=this.w,x=new xe(this.ctx),k=o.i,S=o.j,O=y.config.plotOptions.candlestick.colors,C=this.boxOptions.colors,R=o.realIndex,E=function(te){return Array.isArray(te)?te[R]:te},P=E(O.upward),M=E(O.downward),I=this.yRatio[o.translationsIndex],B=this.getOHLCValue(R,S),U=m,H=m,V=B.o<B.c?[P]:[M];this.isBoxPlot&&(V=[E(C.lower),E(C.upper)]);var W=Math.min(B.o,B.c),G=Math.max(B.o,B.c),Z=B.m;y.globals.isXNumeric&&(a=(y.globals.seriesX[R][S]-y.globals.minX)/this.xRatio-p/2);var K=a+p*this.visibleI;this.series[k][S]===void 0||this.series[k][S]===null?(W=m,G=m):(W=m-W/I,G=m-G/I,U=m-B.h/I,H=m-B.l/I,Z=m-B.m/I);var Q=x.move(K,m),oe=x.move(K+p/2,W);if(y.globals.previousPaths.length>0&&(oe=this.getPreviousPath(R,S,!0)),this.isOHLC){var ie=K+p/2,re=m-B.o/I,ne=m-B.c/I;Q=[x.move(ie,U)+x.line(ie,H)+x.move(ie,re)+x.line(K,re)+x.move(ie,ne)+x.line(K+p,ne)]}else Q=this.isBoxPlot?[x.move(K,W)+x.line(K+p/2,W)+x.line(K+p/2,U)+x.line(K+p/4,U)+x.line(K+p-p/4,U)+x.line(K+p/2,U)+x.line(K+p/2,W)+x.line(K+p,W)+x.line(K+p,Z)+x.line(K,Z)+x.line(K,W+v/2),x.move(K,Z)+x.line(K+p,Z)+x.line(K+p,G)+x.line(K+p/2,G)+x.line(K+p/2,H)+x.line(K+p-p/4,H)+x.line(K+p/4,H)+x.line(K+p/2,H)+x.line(K+p/2,G)+x.line(K,G)+x.line(K,Z)+"z"]:[x.move(K,G)+x.line(K+p/2,G)+x.line(K+p/2,U)+x.line(K+p/2,G)+x.line(K+p,G)+x.line(K+p,W)+x.line(K+p/2,W)+x.line(K+p/2,H)+x.line(K+p/2,W)+x.line(K,W)+x.line(K,G-v/2)];return oe+=x.move(K,W),y.globals.isXNumeric||(a+=f),{pathTo:Q,pathFrom:oe,x:a,y:G,goalY:this.barHelpers.getGoalValues("y",null,m,k,S,o.translationsIndex),barXPosition:K,color:V}}},{key:"drawHorizontalBoxPaths",value:function(n){var o=n.indexes;n.x;var a=n.y,f=n.yDivision,p=n.barHeight,m=n.zeroW,v=n.strokeWidth,y=this.w,x=new xe(this.ctx),k=o.i,S=o.j,O=this.boxOptions.colors.lower;this.isBoxPlot&&(O=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var C=this.invertedYRatio,R=o.realIndex,E=this.getOHLCValue(R,S),P=m,M=m,I=Math.min(E.o,E.c),B=Math.max(E.o,E.c),U=E.m;y.globals.isXNumeric&&(a=(y.globals.seriesX[R][S]-y.globals.minX)/this.invertedXRatio-p/2);var H=a+p*this.visibleI;this.series[k][S]===void 0||this.series[k][S]===null?(I=m,B=m):(I=m+I/C,B=m+B/C,P=m+E.h/C,M=m+E.l/C,U=m+E.m/C);var V=x.move(m,H),W=x.move(I,H+p/2);return y.globals.previousPaths.length>0&&(W=this.getPreviousPath(R,S,!0)),V=[x.move(I,H)+x.line(I,H+p/2)+x.line(P,H+p/2)+x.line(P,H+p/2-p/4)+x.line(P,H+p/2+p/4)+x.line(P,H+p/2)+x.line(I,H+p/2)+x.line(I,H+p)+x.line(U,H+p)+x.line(U,H)+x.line(I+v/2,H),x.move(U,H)+x.line(U,H+p)+x.line(B,H+p)+x.line(B,H+p/2)+x.line(M,H+p/2)+x.line(M,H+p-p/4)+x.line(M,H+p/4)+x.line(M,H+p/2)+x.line(B,H+p/2)+x.line(B,H)+x.line(U,H)+"z"],W+=x.move(I,H),y.globals.isXNumeric||(a+=f),{pathTo:V,pathFrom:W,x:B,y:a,goalX:this.barHelpers.getGoalValues("x",m,null,k,S),barYPosition:H,color:O}}},{key:"getOHLCValue",value:function(n,o){var a=this.w,f=new Hr(this.ctx,a),p=f.getLogValAtSeriesIndex(a.globals.seriesCandleH[n][o],n),m=f.getLogValAtSeriesIndex(a.globals.seriesCandleO[n][o],n),v=f.getLogValAtSeriesIndex(a.globals.seriesCandleM[n][o],n),y=f.getLogValAtSeriesIndex(a.globals.seriesCandleC[n][o],n),x=f.getLogValAtSeriesIndex(a.globals.seriesCandleL[n][o],n);return{o:this.isBoxPlot?p:m,h:this.isBoxPlot?m:p,m:v,l:this.isBoxPlot?y:x,c:this.isBoxPlot?x:y}}}]),r}(),mX=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"checkColorRange",value:function(){var e=this.w,r=!1,n=e.config.plotOptions[e.config.chart.type];return n.colorScale.ranges.length>0&&n.colorScale.ranges.map(function(o,a){o.from<=0&&(r=!0)}),r}},{key:"getShadeColor",value:function(e,r,n,o){var a=this.w,f=1,p=a.config.plotOptions[e].shadeIntensity,m=this.determineColor(e,r,n);a.globals.hasNegs||o?f=a.config.plotOptions[e].reverseNegativeShade?m.percent<0?m.percent/100*(1.25*p):(1-m.percent/100)*(1.25*p):m.percent<=0?1-(1+m.percent/100)*p:(1-m.percent/100)*p:(f=1-m.percent/100,e==="treemap"&&(f=(1-m.percent/100)*(1.25*p)));var v=m.color,y=new se;if(a.config.plotOptions[e].enableShades)if(this.w.config.theme.mode==="dark"){var x=y.shadeColor(-1*f,m.color);v=se.hexToRgba(se.isColorHex(x)?x:se.rgb2hex(x),a.config.fill.opacity)}else{var k=y.shadeColor(f,m.color);v=se.hexToRgba(se.isColorHex(k)?k:se.rgb2hex(k),a.config.fill.opacity)}return{color:v,colorProps:m}}},{key:"determineColor",value:function(e,r,n){var o=this.w,a=o.globals.series[r][n],f=o.config.plotOptions[e],p=f.colorScale.inverse?n:r;f.distributed&&o.config.chart.type==="treemap"&&(p=n);var m=o.globals.colors[p],v=null,y=Math.min.apply(Math,ln(o.globals.series[r])),x=Math.max.apply(Math,ln(o.globals.series[r]));f.distributed||e!=="heatmap"||(y=o.globals.minY,x=o.globals.maxY),f.colorScale.min!==void 0&&(y=f.colorScale.min<o.globals.minY?f.colorScale.min:o.globals.minY,x=f.colorScale.max>o.globals.maxY?f.colorScale.max:o.globals.maxY);var k=Math.abs(x)+Math.abs(y),S=100*a/(k===0?k-1e-6:k);return f.colorScale.ranges.length>0&&f.colorScale.ranges.map(function(O,C){if(a>=O.from&&a<=O.to){m=O.color,v=O.foreColor?O.foreColor:null,y=O.from,x=O.to;var R=Math.abs(x)+Math.abs(y);S=100*a/(R===0?R-1e-6:R)}}),{color:m,foreColor:v,percent:S}}},{key:"calculateDataLabels",value:function(e){var r=e.text,n=e.x,o=e.y,a=e.i,f=e.j,p=e.colorProps,m=e.fontSize,v=this.w.config.dataLabels,y=new xe(this.ctx),x=new Zf(this.ctx),k=null;if(v.enabled){k=y.group({class:"apexcharts-data-labels"});var S=v.offsetX,O=v.offsetY,C=n+S,R=o+parseFloat(v.style.fontSize)/3+O;x.plotDataLabelsText({x:C,y:R,text:r,i:a,j:f,color:p.foreColor,parent:k,fontSize:m,dataLabelsConfig:v})}return k}},{key:"addListeners",value:function(e){var r=new xe(this.ctx);e.node.addEventListener("mouseenter",r.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",r.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",r.pathMouseDown.bind(this,e))}}]),t}(),Z_e=function(){function t(e,r){Be(this,t),this.ctx=e,this.w=e.w,this.xRatio=r.xRatio,this.yRatio=r.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new mX(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return Fe(t,[{key:"draw",value:function(e){var r=this.w,n=new xe(this.ctx),o=n.group({class:"apexcharts-heatmap"});o.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")"));var a=r.globals.gridWidth/r.globals.dataPoints,f=r.globals.gridHeight/r.globals.series.length,p=0,m=!1;this.negRange=this.helpers.checkColorRange();var v=e.slice();r.config.yaxis[0].reversed&&(m=!0,v.reverse());for(var y=m?0:v.length-1;m?y<v.length:y>=0;m?y++:y--){var x=n.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:se.escapeString(r.globals.seriesNames[y]),rel:y+1,"data:realIndex":y});if(this.ctx.series.addCollapsedClassToSeries(x,y),r.config.chart.dropShadow.enabled){var k=r.config.chart.dropShadow;new Pn(this.ctx).dropShadow(x,k,y)}for(var S=0,O=r.config.plotOptions.heatmap.shadeIntensity,C=0,R=0;R<r.globals.dataPoints;R++)if(r.globals.seriesX.length&&!r.globals.allSeriesHasEqualX&&r.globals.minX+r.globals.minXDiff*R<r.globals.seriesX[y][C])S+=a;else{if(C>=v[y].length)break;var E=this.helpers.getShadeColor(r.config.chart.type,y,C,this.negRange),P=E.color,M=E.colorProps;r.config.fill.type==="image"&&(P=new ea(this.ctx).fillPath({seriesNumber:y,dataPointIndex:C,opacity:r.globals.hasNegs?M.percent<0?1-(1+M.percent/100):O+M.percent/100:M.percent/100,patternID:se.randomId(),width:r.config.fill.image.width?r.config.fill.image.width:a,height:r.config.fill.image.height?r.config.fill.image.height:f}));var I=this.rectRadius,B=n.drawRect(S,p,a,f,I);if(B.attr({cx:S,cy:p}),B.node.classList.add("apexcharts-heatmap-rect"),x.add(B),B.attr({fill:P,i:y,index:y,j:C,val:e[y][C],"stroke-width":this.strokeWidth,stroke:r.config.plotOptions.heatmap.useFillColorAsStroke?P:r.globals.stroke.colors[0],color:P}),this.helpers.addListeners(B),r.config.chart.animations.enabled&&!r.globals.dataChanged){var U=1;r.globals.resized||(U=r.config.chart.animations.speed),this.animateHeatMap(B,S,p,a,f,U)}if(r.globals.dataChanged){var H=1;if(this.dynamicAnim.enabled&&r.globals.shouldAnimate){H=this.dynamicAnim.speed;var V=r.globals.previousPaths[y]&&r.globals.previousPaths[y][C]&&r.globals.previousPaths[y][C].color;V||(V="rgba(255, 255, 255, 0)"),this.animateHeatColor(B,se.isColorHex(V)?V:se.rgb2hex(V),se.isColorHex(P)?P:se.rgb2hex(P),H)}}var W=(0,r.config.dataLabels.formatter)(r.globals.series[y][C],{value:r.globals.series[y][C],seriesIndex:y,dataPointIndex:C,w:r}),G=this.helpers.calculateDataLabels({text:W,x:S+a/2,y:p+f/2,i:y,j:C,colorProps:M,series:v});G!==null&&x.add(G),S+=a,C++}p+=f,o.add(x)}var Z=r.globals.yAxisScale[0].result.slice();return r.config.yaxis[0].reversed?Z.unshift(""):Z.push(""),r.globals.yAxisScale[0].result=Z,o}},{key:"animateHeatMap",value:function(e,r,n,o,a,f){var p=new wh(this.ctx);p.animateRect(e,{x:r+o/2,y:n+a/2,width:0,height:0},{x:r,y:n,width:o,height:a},f,function(){p.animationCompleted(e)})}},{key:"animateHeatColor",value:function(e,r,n,o){e.attr({fill:r}).animate(o).attr({fill:n})}}]),t}(),vX=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"drawYAxisTexts",value:function(e,r,n,o){var a=this.w,f=a.config.yaxis[0],p=a.globals.yLabelFormatters[0];return new xe(this.ctx).drawText({x:e+f.labels.offsetX,y:r+f.labels.offsetY,text:p(o,n),textAnchor:"middle",fontSize:f.labels.style.fontSize,fontFamily:f.labels.style.fontFamily,foreColor:Array.isArray(f.labels.style.colors)?f.labels.style.colors[n]:f.labels.style.colors})}}]),t}(),bX=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w;var r=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=r.globals.stroke.colors!==void 0?r.globals.stroke.colors:r.globals.colors,this.defaultSize=Math.min(r.globals.gridWidth,r.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=r.globals.gridWidth/2,r.config.chart.type==="radialBar"?this.fullAngle=360:this.fullAngle=Math.abs(r.config.plotOptions.pie.endAngle-r.config.plotOptions.pie.startAngle),this.initialAngle=r.config.plotOptions.pie.startAngle%this.fullAngle,r.globals.radialSize=this.defaultSize/2.05-r.config.stroke.width-(r.config.chart.sparkline.enabled?0:r.config.chart.dropShadow.blur),this.donutSize=r.globals.radialSize*parseInt(r.config.plotOptions.pie.donut.size,10)/100;var n=r.config.plotOptions.pie.customScale,o=r.globals.gridWidth/2,a=r.globals.gridHeight/2;this.translateX=o-o*n,this.translateY=a-a*n,this.dataLabelsGroup=new xe(this.ctx).group({class:"apexcharts-datalabels-group",transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(n,")")}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return Fe(t,[{key:"draw",value:function(e){var r=this,n=this.w,o=new xe(this.ctx),a=o.group({class:"apexcharts-pie"});if(n.globals.noData)return a;for(var f=0,p=0;p<e.length;p++)f+=se.negToZero(e[p]);var m=[],v=o.group();f===0&&(f=1e-5),e.forEach(function(M){r.maxY=Math.max(r.maxY,M)}),n.config.yaxis[0].max&&(this.maxY=n.config.yaxis[0].max),n.config.grid.position==="back"&&this.chartType==="polarArea"&&this.drawPolarElements(a);for(var y=0;y<e.length;y++){var x=this.fullAngle*se.negToZero(e[y])/f;m.push(x),this.chartType==="polarArea"?(m[y]=this.fullAngle/e.length,this.sliceSizes.push(n.globals.radialSize*e[y]/this.maxY)):this.sliceSizes.push(n.globals.radialSize)}if(n.globals.dataChanged){for(var k,S=0,O=0;O<n.globals.previousPaths.length;O++)S+=se.negToZero(n.globals.previousPaths[O]);for(var C=0;C<n.globals.previousPaths.length;C++)k=this.fullAngle*se.negToZero(n.globals.previousPaths[C])/S,this.prevSectorAngleArr.push(k)}if(this.donutSize<0&&(this.donutSize=0),this.chartType==="donut"){var R=o.drawCircle(this.donutSize);R.attr({cx:this.centerX,cy:this.centerY,fill:n.config.plotOptions.pie.donut.background?n.config.plotOptions.pie.donut.background:"transparent"}),v.add(R)}var E=this.drawArcs(m,e);if(this.sliceLabels.forEach(function(M){E.add(M)}),v.attr({transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(n.config.plotOptions.pie.customScale,")")}),v.add(E),a.add(v),this.donutDataLabels.show){var P=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});a.add(P)}return n.config.grid.position==="front"&&this.chartType==="polarArea"&&this.drawPolarElements(a),a}},{key:"drawArcs",value:function(e,r){var n=this.w,o=new Pn(this.ctx),a=new xe(this.ctx),f=new ea(this.ctx),p=a.group({class:"apexcharts-slices"}),m=this.initialAngle,v=this.initialAngle,y=this.initialAngle,x=this.initialAngle;this.strokeWidth=n.config.stroke.show?n.config.stroke.width:0;for(var k=0;k<e.length;k++){var S=a.group({class:"apexcharts-series apexcharts-pie-series",seriesName:se.escapeString(n.globals.seriesNames[k]),rel:k+1,"data:realIndex":k});p.add(S),v=x,y=(m=y)+e[k],x=v+this.prevSectorAngleArr[k];var O=y<m?this.fullAngle+y-m:y-m,C=f.fillPath({seriesNumber:k,size:this.sliceSizes[k],value:r[k]}),R=this.getChangedPath(v,x),E=a.drawPath({d:R,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[k]:this.lineColorArr,strokeWidth:0,fill:C,fillOpacity:n.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(k)});if(E.attr({index:0,j:k}),o.setSelectionFilter(E,0,k),n.config.chart.dropShadow.enabled){var P=n.config.chart.dropShadow;o.dropShadow(E,P,k)}this.addListeners(E,this.donutDataLabels),xe.setAttrs(E.node,{"data:angle":O,"data:startAngle":m,"data:strokeWidth":this.strokeWidth,"data:value":r[k]});var M={x:0,y:0};this.chartType==="pie"||this.chartType==="polarArea"?M=se.polarToCartesian(this.centerX,this.centerY,n.globals.radialSize/1.25+n.config.plotOptions.pie.dataLabels.offset,(m+O/2)%this.fullAngle):this.chartType==="donut"&&(M=se.polarToCartesian(this.centerX,this.centerY,(n.globals.radialSize+this.donutSize)/2+n.config.plotOptions.pie.dataLabels.offset,(m+O/2)%this.fullAngle)),S.add(E);var I=0;if(!this.initialAnim||n.globals.resized||n.globals.dataChanged?this.animBeginArr.push(0):((I=O/this.fullAngle*n.config.chart.animations.speed)===0&&(I=1),this.animDur=I+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&n.globals.dataChanged?this.animatePaths(E,{size:this.sliceSizes[k],endAngle:y,startAngle:m,prevStartAngle:v,prevEndAngle:x,animateStartingPos:!0,i:k,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:n.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(E,{size:this.sliceSizes[k],endAngle:y,startAngle:m,i:k,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:I}),n.config.plotOptions.pie.expandOnClick&&this.chartType!=="polarArea"&&E.node.addEventListener("mouseup",this.pieClicked.bind(this,k)),n.globals.selectedDataPoints[0]!==void 0&&n.globals.selectedDataPoints[0].indexOf(k)>-1&&this.pieClicked(k),n.config.dataLabels.enabled){var B=M.x,U=M.y,H=100*O/this.fullAngle+"%";if(O!==0&&n.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[k]){var V=n.config.dataLabels.formatter;V!==void 0&&(H=V(n.globals.seriesPercent[k][0],{seriesIndex:k,w:n}));var W=n.globals.dataLabels.style.colors[k],G=a.group({class:"apexcharts-datalabels"}),Z=a.drawText({x:B,y:U,text:H,textAnchor:"middle",fontSize:n.config.dataLabels.style.fontSize,fontFamily:n.config.dataLabels.style.fontFamily,fontWeight:n.config.dataLabels.style.fontWeight,foreColor:W});if(G.add(Z),n.config.dataLabels.dropShadow.enabled){var K=n.config.dataLabels.dropShadow;o.dropShadow(Z,K)}Z.node.classList.add("apexcharts-pie-label"),n.config.chart.animations.animate&&n.globals.resized===!1&&(Z.node.classList.add("apexcharts-pie-label-delay"),Z.node.style.animationDelay=n.config.chart.animations.speed/940+"s"),this.sliceLabels.push(G)}}}return p}},{key:"addListeners",value:function(e,r){var n=new xe(this.ctx);e.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,r)),e.node.addEventListener("mousedown",n.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,r)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,r)))}},{key:"animatePaths",value:function(e,r){var n=this.w,o=r.endAngle<r.startAngle?this.fullAngle+r.endAngle-r.startAngle:r.endAngle-r.startAngle,a=o,f=r.startAngle,p=r.startAngle;r.prevStartAngle!==void 0&&r.prevEndAngle!==void 0&&(f=r.prevEndAngle,a=r.prevEndAngle<r.prevStartAngle?this.fullAngle+r.prevEndAngle-r.prevStartAngle:r.prevEndAngle-r.prevStartAngle),r.i===n.config.series.length-1&&(o+p>this.fullAngle?r.endAngle=r.endAngle-(o+p):o+p<this.fullAngle&&(r.endAngle=r.endAngle+(this.fullAngle-(o+p)))),o===this.fullAngle&&(o=this.fullAngle-.01),this.animateArc(e,f,p,o,a,r)}},{key:"animateArc",value:function(e,r,n,o,a,f){var p,m=this,v=this.w,y=new wh(this.ctx),x=f.size;(isNaN(r)||isNaN(a))&&(r=n,a=o,f.dur=0);var k=o,S=n,O=r<n?this.fullAngle+r-n:r-n;v.globals.dataChanged&&f.shouldSetPrevPaths&&f.prevEndAngle&&(p=m.getPiePath({me:m,startAngle:f.prevStartAngle,angle:f.prevEndAngle<f.prevStartAngle?this.fullAngle+f.prevEndAngle-f.prevStartAngle:f.prevEndAngle-f.prevStartAngle,size:x}),e.attr({d:p})),f.dur!==0?e.animate(f.dur,f.animBeginArr[f.i]).after(function(){m.chartType!=="pie"&&m.chartType!=="donut"&&m.chartType!=="polarArea"||this.animate(v.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":m.strokeWidth}),f.i===v.config.series.length-1&&y.animationCompleted(e)}).during(function(C){k=O+(o-O)*C,f.animateStartingPos&&(k=a+(o-a)*C,S=r-a+(n-(r-a))*C),p=m.getPiePath({me:m,startAngle:S,angle:k,size:x}),e.node.setAttribute("data:pathOrig",p),e.attr({d:p})}):(p=m.getPiePath({me:m,startAngle:S,angle:o,size:x}),f.isTrack||(v.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",p),e.attr({d:p,"stroke-width":m.strokeWidth}))}},{key:"pieClicked",value:function(e){var r,n=this.w,o=this,a=o.sliceSizes[e]+(n.config.plotOptions.pie.expandOnClick?4:0),f=n.globals.dom.Paper.findOne(".apexcharts-".concat(o.chartType.toLowerCase(),"-slice-").concat(e));if(f.attr("data:pieClicked")!=="true"){var p=n.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(p,function(x){x.setAttribute("data:pieClicked","false");var k=x.getAttribute("data:pathOrig");k&&x.setAttribute("d",k)}),n.globals.capturedDataPointIndex=e,f.attr("data:pieClicked","true");var m=parseInt(f.attr("data:startAngle"),10),v=parseInt(f.attr("data:angle"),10);r=o.getPiePath({me:o,startAngle:m,angle:v,size:a}),v!==360&&f.plot(r)}else{f.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(f.node,this.donutDataLabels);var y=f.attr("data:pathOrig");f.attr({d:y})}}},{key:"getChangedPath",value:function(e,r){var n="";return this.dynamicAnim&&this.w.globals.dataChanged&&(n=this.getPiePath({me:this,startAngle:e,angle:r-e,size:this.size})),n}},{key:"getPiePath",value:function(e){var r,n=e.me,o=e.startAngle,a=e.angle,f=e.size,p=new xe(this.ctx),m=o,v=Math.PI*(m-90)/180,y=a+o;Math.ceil(y)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(y=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(y)>this.fullAngle&&(y-=this.fullAngle);var x=Math.PI*(y-90)/180,k=n.centerX+f*Math.cos(v),S=n.centerY+f*Math.sin(v),O=n.centerX+f*Math.cos(x),C=n.centerY+f*Math.sin(x),R=se.polarToCartesian(n.centerX,n.centerY,n.donutSize,y),E=se.polarToCartesian(n.centerX,n.centerY,n.donutSize,m),P=a>180?1:0,M=["M",k,S,"A",f,f,0,P,1,O,C];return r=n.chartType==="donut"?[].concat(M,["L",R.x,R.y,"A",n.donutSize,n.donutSize,0,P,0,E.x,E.y,"L",k,S,"z"]).join(" "):n.chartType==="pie"||n.chartType==="polarArea"?[].concat(M,["L",n.centerX,n.centerY,"L",k,S]).join(" "):[].concat(M).join(" "),p.roundPathCorners(r,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(e){var r=this.w,n=new dX(this.ctx),o=new xe(this.ctx),a=new vX(this.ctx),f=o.group(),p=o.group(),m=n.niceScale(0,Math.ceil(this.maxY),0),v=m.result.reverse(),y=m.result.length;this.maxY=m.niceMax;for(var x=r.globals.radialSize,k=x/(y-1),S=0;S<y-1;S++){var O=o.drawCircle(x);if(O.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":r.config.plotOptions.polarArea.rings.strokeWidth,stroke:r.config.plotOptions.polarArea.rings.strokeColor}),r.config.yaxis[0].show){var C=a.drawYAxisTexts(this.centerX,this.centerY-x+parseInt(r.config.yaxis[0].labels.style.fontSize,10)/2,S,v[S]);p.add(C)}f.add(O),x-=k}this.drawSpokes(e),e.add(f),e.add(p)}},{key:"renderInnerDataLabels",value:function(e,r,n){var o=this.w,a=new xe(this.ctx),f=r.total.show;e.node.innerHTML="",e.node.style.opacity=n.opacity;var p,m,v=n.centerX,y=this.donutDataLabels.total.label?n.centerY:n.centerY-n.centerY/6;p=r.name.color===void 0?o.globals.colors[0]:r.name.color;var x=r.name.fontSize,k=r.name.fontFamily,S=r.name.fontWeight;m=r.value.color===void 0?o.config.chart.foreColor:r.value.color;var O=r.value.formatter,C="",R="";if(f?(p=r.total.color,x=r.total.fontSize,k=r.total.fontFamily,S=r.total.fontWeight,R=this.donutDataLabels.total.label?r.total.label:"",C=r.total.formatter(o)):o.globals.series.length===1&&(C=O(o.globals.series[0],o),R=o.globals.seriesNames[0]),R&&(R=r.name.formatter(R,r.total.show,o)),r.name.show){var E=a.drawText({x:v,y:y+parseFloat(r.name.offsetY),text:R,textAnchor:"middle",foreColor:p,fontSize:x,fontWeight:S,fontFamily:k});E.node.classList.add("apexcharts-datalabel-label"),e.add(E)}if(r.value.show){var P=r.name.show?parseFloat(r.value.offsetY)+16:r.value.offsetY,M=a.drawText({x:v,y:y+P,text:C,textAnchor:"middle",foreColor:m,fontWeight:r.value.fontWeight,fontSize:r.value.fontSize,fontFamily:r.value.fontFamily});M.node.classList.add("apexcharts-datalabel-value"),e.add(M)}return e}},{key:"printInnerLabels",value:function(e,r,n,o){var a,f=this.w;o?a=e.name.color===void 0?f.globals.colors[parseInt(o.parentNode.getAttribute("rel"),10)-1]:e.name.color:f.globals.series.length>1&&e.total.show&&(a=e.total.color);var p=f.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),m=f.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");n=(0,e.value.formatter)(n,f),o||typeof e.total.formatter!="function"||(n=e.total.formatter(f));var v=r===e.total.label;r=this.donutDataLabels.total.label?e.name.formatter(r,v,f):"",p!==null&&(p.textContent=r),m!==null&&(m.textContent=n),p!==null&&(p.style.fill=a)}},{key:"printDataLabelsInner",value:function(e,r){var n=this.w,o=e.getAttribute("data:value"),a=n.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];n.globals.series.length>1&&this.printInnerLabels(r,a,o,e);var f=n.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");f!==null&&(f.style.opacity=1)}},{key:"drawSpokes",value:function(e){var r=this,n=this.w,o=new xe(this.ctx),a=n.config.plotOptions.polarArea.spokes;if(a.strokeWidth!==0){for(var f=[],p=360/n.globals.series.length,m=0;m<n.globals.series.length;m++)f.push(se.polarToCartesian(this.centerX,this.centerY,n.globals.radialSize,n.config.plotOptions.pie.startAngle+p*m));f.forEach(function(v,y){var x=o.drawLine(v.x,v.y,r.centerX,r.centerY,Array.isArray(a.connectorColors)?a.connectorColors[y]:a.connectorColors);e.add(x)})}}},{key:"revertDataLabelsInner",value:function(){var e=this.w;if(this.donutDataLabels.show){var r=e.globals.dom.Paper.findOne(".apexcharts-datalabels-group"),n=this.renderInnerDataLabels(r,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});e.globals.dom.Paper.findOne(".apexcharts-radialbar, .apexcharts-pie").add(n)}}}]),t}(),K_e=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var r=this.w;this.graphics=new xe(this.ctx),this.lineColorArr=r.globals.stroke.colors!==void 0?r.globals.stroke.colors:r.globals.colors,this.defaultSize=r.globals.svgHeight<r.globals.svgWidth?r.globals.gridHeight:r.globals.gridWidth,this.isLog=r.config.yaxis[0].logarithmic,this.logBase=r.config.yaxis[0].logBase,this.coreUtils=new Hr(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,r.globals.maxY,0):r.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,this.w.globals.minY,0):r.globals.minY,this.polygons=r.config.plotOptions.radar.polygons,this.strokeWidth=r.config.stroke.show?r.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-r.config.chart.dropShadow.blur,r.config.xaxis.labels.show&&(this.size=this.size-r.globals.xAxisLabelsWidth/1.75),r.config.plotOptions.radar.size!==void 0&&(this.size=r.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return Fe(t,[{key:"draw",value:function(e){var r=this,n=this.w,o=new ea(this.ctx),a=[],f=new Zf(this.ctx);e.length&&(this.dataPointsLen=e[n.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var p=n.globals.gridWidth/2,m=n.globals.gridHeight/2,v=p+n.config.plotOptions.radar.offsetX,y=m+n.config.plotOptions.radar.offsetY,x=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(v||0,", ").concat(y||0,")")}),k=[],S=null,O=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach(function(R,E){var P=R.length===n.globals.dataPoints,M=r.graphics.group().attr({class:"apexcharts-series","data:longestSeries":P,seriesName:se.escapeString(n.globals.seriesNames[E]),rel:E+1,"data:realIndex":E});r.dataRadiusOfPercent[E]=[],r.dataRadius[E]=[],r.angleArr[E]=[],R.forEach(function(Q,oe){var ie=Math.abs(r.maxValue-r.minValue);Q-=r.minValue,r.isLog&&(Q=r.coreUtils.getLogVal(r.logBase,Q,0)),r.dataRadiusOfPercent[E][oe]=Q/ie,r.dataRadius[E][oe]=r.dataRadiusOfPercent[E][oe]*r.size,r.angleArr[E][oe]=oe*r.disAngle}),k=r.getDataPointsPos(r.dataRadius[E],r.angleArr[E]);var I=r.createPaths(k,{x:0,y:0});S=r.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),O=r.graphics.group({class:"apexcharts-datalabels","data:realIndex":E}),n.globals.delayedElements.push({el:S.node,index:E});var B={i:E,realIndex:E,animationDelay:E,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:n.globals.stroke.colors[E],strokeLineCap:n.config.stroke.lineCap},U=null;n.globals.previousPaths.length>0&&(U=r.getPreviousPath(E));for(var H=0;H<I.linePathsTo.length;H++){var V=r.graphics.renderPaths(Oe(Oe({},B),{},{pathFrom:U===null?I.linePathsFrom[H]:U,pathTo:I.linePathsTo[H],strokeWidth:Array.isArray(r.strokeWidth)?r.strokeWidth[E]:r.strokeWidth,fill:"none",drawShadow:!1}));M.add(V);var W=o.fillPath({seriesNumber:E}),G=r.graphics.renderPaths(Oe(Oe({},B),{},{pathFrom:U===null?I.areaPathsFrom[H]:U,pathTo:I.areaPathsTo[H],strokeWidth:0,fill:W,drawShadow:!1}));if(n.config.chart.dropShadow.enabled){var Z=new Pn(r.ctx),K=n.config.chart.dropShadow;Z.dropShadow(G,Object.assign({},K,{noUserSpaceOnUse:!0}),E)}M.add(G)}R.forEach(function(Q,oe){var ie=new Sh(r.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:E,dataPointIndex:oe}),re=r.graphics.drawMarker(k[oe].x,k[oe].y,ie);re.attr("rel",oe),re.attr("j",oe),re.attr("index",E),re.node.setAttribute("default-marker-size",ie.pSize);var ne=r.graphics.group({class:"apexcharts-series-markers"});ne&&ne.add(re),S.add(ne),M.add(S);var te=n.config.dataLabels;if(te.enabled){var ue=te.formatter(n.globals.series[E][oe],{seriesIndex:E,dataPointIndex:oe,w:n});f.plotDataLabelsText({x:k[oe].x,y:k[oe].y,text:ue,textAnchor:"middle",i:E,j:E,parent:O,offsetCorrection:!1,dataLabelsConfig:Oe({},te)})}M.add(O)}),a.push(M)}),this.drawPolygons({parent:x}),n.config.xaxis.labels.show){var C=this.drawXAxisTexts();x.add(C)}return a.forEach(function(R){x.add(R)}),x.add(this.yaxisLabels),x}},{key:"drawPolygons",value:function(e){for(var r=this,n=this.w,o=e.parent,a=new vX(this.ctx),f=n.globals.yAxisScale[0].result.reverse(),p=f.length,m=[],v=this.size/(p-1),y=0;y<p;y++)m[y]=v*y;m.reverse();var x=[],k=[];m.forEach(function(S,O){var C=se.getPolygonPos(S,r.dataPointsLen),R="";C.forEach(function(E,P){if(O===0){var M=r.graphics.drawLine(E.x,E.y,0,0,Array.isArray(r.polygons.connectorColors)?r.polygons.connectorColors[P]:r.polygons.connectorColors);k.push(M)}P===0&&r.yaxisLabelsTextsPos.push({x:E.x,y:E.y}),R+=E.x+","+E.y+" "}),x.push(R)}),x.forEach(function(S,O){var C=r.polygons.strokeColors,R=r.polygons.strokeWidth,E=r.graphics.drawPolygon(S,Array.isArray(C)?C[O]:C,Array.isArray(R)?R[O]:R,n.globals.radarPolygons.fill.colors[O]);o.add(E)}),k.forEach(function(S){o.add(S)}),n.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(S,O){var C=a.drawYAxisTexts(S.x,S.y,O,f[O]);r.yaxisLabels.add(C)})}},{key:"drawXAxisTexts",value:function(){var e=this,r=this.w,n=r.config.xaxis.labels,o=this.graphics.group({class:"apexcharts-xaxis"}),a=se.getPolygonPos(this.size,this.dataPointsLen);return r.globals.labels.forEach(function(f,p){var m=r.config.xaxis.labels.formatter,v=new Zf(e.ctx);if(a[p]){var y=e.getTextPos(a[p],e.size),x=m(f,{seriesIndex:-1,dataPointIndex:p,w:r});v.plotDataLabelsText({x:y.newX,y:y.newY,text:x,textAnchor:y.textAnchor,i:p,j:p,parent:o,className:"apexcharts-xaxis-label",color:Array.isArray(n.style.colors)&&n.style.colors[p]?n.style.colors[p]:"#a8a8a8",dataLabelsConfig:Oe({textAnchor:y.textAnchor,dropShadow:{enabled:!1}},n),offsetCorrection:!1}).on("click",function(k){if(typeof r.config.chart.events.xAxisLabelClick=="function"){var S=Object.assign({},r,{labelIndex:p});r.config.chart.events.xAxisLabelClick(k,e.ctx,S)}})}}),o}},{key:"createPaths",value:function(e,r){var n=this,o=[],a=[],f=[],p=[];if(e.length){a=[this.graphics.move(r.x,r.y)],p=[this.graphics.move(r.x,r.y)];var m=this.graphics.move(e[0].x,e[0].y),v=this.graphics.move(e[0].x,e[0].y);e.forEach(function(y,x){m+=n.graphics.line(y.x,y.y),v+=n.graphics.line(y.x,y.y),x===e.length-1&&(m+="Z",v+="Z")}),o.push(m),f.push(v)}return{linePathsFrom:a,linePathsTo:o,areaPathsFrom:p,areaPathsTo:f}}},{key:"getTextPos",value:function(e,r){var n="middle",o=e.x,a=e.y;return Math.abs(e.x)>=10?e.x>0?(n="start",o+=10):e.x<0&&(n="end",o-=10):n="middle",Math.abs(e.y)>=r-10&&(e.y<0?a-=10:e.y>0&&(a+=10)),{textAnchor:n,newX:o,newY:a}}},{key:"getPreviousPath",value:function(e){for(var r=this.w,n=null,o=0;o<r.globals.previousPaths.length;o++){var a=r.globals.previousPaths[o];a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(e,10)&&r.globals.previousPaths[o].paths[0]!==void 0&&(n=r.globals.previousPaths[o].paths[0].d)}return n}},{key:"getDataPointsPos",value:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;e=e||[],r=r||[];for(var o=[],a=0;a<n;a++){var f={};f.x=e[a]*Math.sin(r[a]),f.y=-e[a]*Math.cos(r[a]),o.push(f)}return o}}]),t}(),J_e=function(t){gb(r,bX);var e=pb(r);function r(n){var o;Be(this,r),(o=e.call(this,n)).ctx=n,o.w=n.w,o.animBeginArr=[0],o.animDur=0;var a=o.w;return o.startAngle=a.config.plotOptions.radialBar.startAngle,o.endAngle=a.config.plotOptions.radialBar.endAngle,o.totalAngle=Math.abs(a.config.plotOptions.radialBar.endAngle-a.config.plotOptions.radialBar.startAngle),o.trackStartAngle=a.config.plotOptions.radialBar.track.startAngle,o.trackEndAngle=a.config.plotOptions.radialBar.track.endAngle,o.barLabels=o.w.config.plotOptions.radialBar.barLabels,o.donutDataLabels=o.w.config.plotOptions.radialBar.dataLabels,o.radialDataLabels=o.donutDataLabels,o.trackStartAngle||(o.trackStartAngle=o.startAngle),o.trackEndAngle||(o.trackEndAngle=o.endAngle),o.endAngle===360&&(o.endAngle=359.99),o.margin=parseInt(a.config.plotOptions.radialBar.track.margin,10),o.onBarLabelClick=o.onBarLabelClick.bind(TW(o)),o}return Fe(r,[{key:"draw",value:function(n){var o=this.w,a=new xe(this.ctx),f=a.group({class:"apexcharts-radialbar"});if(o.globals.noData)return f;var p=a.group(),m=this.defaultSize/2,v=o.globals.gridWidth/2,y=this.defaultSize/2.05;o.config.chart.sparkline.enabled||(y=y-o.config.stroke.width-o.config.chart.dropShadow.blur);var x=o.globals.fill.colors;if(o.config.plotOptions.radialBar.track.show){var k=this.drawTracks({size:y,centerX:v,centerY:m,colorArr:x,series:n});p.add(k)}var S=this.drawArcs({size:y,centerX:v,centerY:m,colorArr:x,series:n}),O=360;o.config.plotOptions.radialBar.startAngle<0&&(O=this.totalAngle);var C=(360-O)/360;if(o.globals.radialSize=y-y*C,this.radialDataLabels.value.show){var R=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);o.globals.radialSize+=R*C}return p.add(S.g),o.config.plotOptions.radialBar.hollow.position==="front"&&(S.g.add(S.elHollow),S.dataLabels&&S.g.add(S.dataLabels)),f.add(p),f}},{key:"drawTracks",value:function(n){var o=this.w,a=new xe(this.ctx),f=a.group({class:"apexcharts-tracks"}),p=new Pn(this.ctx),m=new ea(this.ctx),v=this.getStrokeWidth(n);n.size=n.size-v/2;for(var y=0;y<n.series.length;y++){var x=a.group({class:"apexcharts-radialbar-track apexcharts-track"});f.add(x),x.attr({rel:y+1}),n.size=n.size-v-this.margin;var k=o.config.plotOptions.radialBar.track,S=m.fillPath({seriesNumber:0,size:n.size,fillColors:Array.isArray(k.background)?k.background[y]:k.background,solid:!0}),O=this.trackStartAngle,C=this.trackEndAngle;Math.abs(C)+Math.abs(O)>=360&&(C=360-Math.abs(this.startAngle)-.1);var R=a.drawPath({d:"",stroke:S,strokeWidth:v*parseInt(k.strokeWidth,10)/100,fill:"none",strokeOpacity:k.opacity,classes:"apexcharts-radialbar-area"});if(k.dropShadow.enabled){var E=k.dropShadow;p.dropShadow(R,E)}x.add(R),R.attr("id","apexcharts-radialbarTrack-"+y),this.animatePaths(R,{centerX:n.centerX,centerY:n.centerY,endAngle:C,startAngle:O,size:n.size,i:y,totalItems:2,animBeginArr:0,dur:0,isTrack:!0})}return f}},{key:"drawArcs",value:function(n){var o=this.w,a=new xe(this.ctx),f=new ea(this.ctx),p=new Pn(this.ctx),m=a.group(),v=this.getStrokeWidth(n);n.size=n.size-v/2;var y=o.config.plotOptions.radialBar.hollow.background,x=n.size-v*n.series.length-this.margin*n.series.length-v*parseInt(o.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,k=x-o.config.plotOptions.radialBar.hollow.margin;o.config.plotOptions.radialBar.hollow.image!==void 0&&(y=this.drawHollowImage(n,m,x,y));var S=this.drawHollow({size:k,centerX:n.centerX,centerY:n.centerY,fill:y||"transparent"});if(o.config.plotOptions.radialBar.hollow.dropShadow.enabled){var O=o.config.plotOptions.radialBar.hollow.dropShadow;p.dropShadow(S,O)}var C=1;!this.radialDataLabels.total.show&&o.globals.series.length>1&&(C=0);var R=null;if(this.radialDataLabels.show){var E=o.globals.dom.Paper.findOne(".apexcharts-datalabels-group");R=this.renderInnerDataLabels(E,this.radialDataLabels,{hollowSize:x,centerX:n.centerX,centerY:n.centerY,opacity:C})}o.config.plotOptions.radialBar.hollow.position==="back"&&(m.add(S),R&&m.add(R));var P=!1;o.config.plotOptions.radialBar.inverseOrder&&(P=!0);for(var M=P?n.series.length-1:0;P?M>=0:M<n.series.length;P?M--:M++){var I=a.group({class:"apexcharts-series apexcharts-radial-series",seriesName:se.escapeString(o.globals.seriesNames[M])});m.add(I),I.attr({rel:M+1,"data:realIndex":M}),this.ctx.series.addCollapsedClassToSeries(I,M),n.size=n.size-v-this.margin;var B=f.fillPath({seriesNumber:M,size:n.size,value:n.series[M]}),U=this.startAngle,H=void 0,V=se.negToZero(n.series[M]>100?100:n.series[M])/100,W=Math.round(this.totalAngle*V)+this.startAngle,G=void 0;o.globals.dataChanged&&(H=this.startAngle,G=Math.round(this.totalAngle*se.negToZero(o.globals.previousPaths[M])/100)+H),Math.abs(W)+Math.abs(U)>360&&(W-=.01),Math.abs(G)+Math.abs(H)>360&&(G-=.01);var Z=W-U,K=Array.isArray(o.config.stroke.dashArray)?o.config.stroke.dashArray[M]:o.config.stroke.dashArray,Q=a.drawPath({d:"",stroke:B,strokeWidth:v,fill:"none",fillOpacity:o.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+M,strokeDashArray:K});if(xe.setAttrs(Q.node,{"data:angle":Z,"data:value":n.series[M]}),o.config.chart.dropShadow.enabled){var oe=o.config.chart.dropShadow;p.dropShadow(Q,oe,M)}if(p.setSelectionFilter(Q,0,M),this.addListeners(Q,this.radialDataLabels),I.add(Q),Q.attr({index:0,j:M}),this.barLabels.enabled){var ie=se.polarToCartesian(n.centerX,n.centerY,n.size,U),re=this.barLabels.formatter(o.globals.seriesNames[M],{seriesIndex:M,w:o}),ne=["apexcharts-radialbar-label"];this.barLabels.onClick||ne.push("apexcharts-no-click");var te=this.barLabels.useSeriesColors?o.globals.colors[M]:o.config.chart.foreColor;te||(te=o.config.chart.foreColor);var ue=ie.x+this.barLabels.offsetX,pe=ie.y+this.barLabels.offsetY,ke=a.drawText({x:ue,y:pe,text:re,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:te,cssClass:ne.join(" ")});ke.on("click",this.onBarLabelClick),ke.attr({rel:M+1}),U!==0&&ke.attr({"transform-origin":"".concat(ue," ").concat(pe),transform:"rotate(".concat(U," 0 0)")}),I.add(ke)}var ze=0;!this.initialAnim||o.globals.resized||o.globals.dataChanged||(ze=o.config.chart.animations.speed),o.globals.dataChanged&&(ze=o.config.chart.animations.dynamicAnimation.speed),this.animDur=ze/(1.2*n.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(Q,{centerX:n.centerX,centerY:n.centerY,endAngle:W,startAngle:U,prevEndAngle:G,prevStartAngle:H,size:n.size,i:M,totalItems:2,animBeginArr:this.animBeginArr,dur:ze,shouldSetPrevPaths:!0})}return{g:m,elHollow:S,dataLabels:R}}},{key:"drawHollow",value:function(n){var o=new xe(this.ctx).drawCircle(2*n.size);return o.attr({class:"apexcharts-radialbar-hollow",cx:n.centerX,cy:n.centerY,r:n.size,fill:n.fill}),o}},{key:"drawHollowImage",value:function(n,o,a,f){var p=this.w,m=new ea(this.ctx),v=se.randomId(),y=p.config.plotOptions.radialBar.hollow.image;if(p.config.plotOptions.radialBar.hollow.imageClipped)m.clippedImgArea({width:a,height:a,image:y,patternID:"pattern".concat(p.globals.cuid).concat(v)}),f="url(#pattern".concat(p.globals.cuid).concat(v,")");else{var x=p.config.plotOptions.radialBar.hollow.imageWidth,k=p.config.plotOptions.radialBar.hollow.imageHeight;if(x===void 0&&k===void 0){var S=p.globals.dom.Paper.image(y,function(C){this.move(n.centerX-C.width/2+p.config.plotOptions.radialBar.hollow.imageOffsetX,n.centerY-C.height/2+p.config.plotOptions.radialBar.hollow.imageOffsetY)});o.add(S)}else{var O=p.globals.dom.Paper.image(y,function(C){this.move(n.centerX-x/2+p.config.plotOptions.radialBar.hollow.imageOffsetX,n.centerY-k/2+p.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(x,k)});o.add(O)}}return f}},{key:"getStrokeWidth",value:function(n){var o=this.w;return n.size*(100-parseInt(o.config.plotOptions.radialBar.hollow.size,10))/100/(n.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(n){var o=parseInt(n.target.getAttribute("rel"),10)-1,a=this.barLabels.onClick,f=this.w;a&&a(f.globals.seriesNames[o],{w:f,seriesIndex:o})}}]),r}(),Q_e=function(t){gb(r,Kf);var e=pb(r);function r(){return Be(this,r),e.apply(this,arguments)}return Fe(r,[{key:"draw",value:function(n,o){var a=this.w,f=new xe(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=n,this.seriesRangeStart=a.globals.seriesRangeStart,this.seriesRangeEnd=a.globals.seriesRangeEnd,this.barHelpers.initVariables(n);for(var p=f.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),m=0;m<n.length;m++){var v,y,x,k,S=void 0,O=void 0,C=a.globals.comboCharts?o[m]:m,R=this.barHelpers.getGroupIndex(C).columnGroupIndex,E=f.group({class:"apexcharts-series",seriesName:se.escapeString(a.globals.seriesNames[C]),rel:m+1,"data:realIndex":C});this.ctx.series.addCollapsedClassToSeries(E,C),n[m].length>0&&(this.visibleI=this.visibleI+1);var P=0,M=0,I=0;this.yRatio.length>1&&(this.yaxisIndex=a.globals.seriesYAxisReverseMap[C][0],I=C);var B=this.barHelpers.initialPositions(C);O=B.y,k=B.zeroW,S=B.x,M=B.barWidth,P=B.barHeight,v=B.xDivision,y=B.yDivision,x=B.zeroH;for(var U=f.group({class:"apexcharts-datalabels","data:realIndex":C}),H=f.group({class:"apexcharts-rangebar-goals-markers"}),V=0;V<a.globals.dataPoints;V++){var W=this.barHelpers.getStrokeWidth(m,V,C),G=this.seriesRangeStart[m][V],Z=this.seriesRangeEnd[m][V],K=null,Q=null,oe=null,ie={x:S,y:O,strokeWidth:W,elSeries:E},re=this.seriesLen;if(a.config.plotOptions.bar.rangeBarGroupRows&&(re=1),a.config.series[m].data[V]===void 0)break;if(this.isHorizontal){oe=O+P*this.visibleI;var ne=(y-P*re)/2;if(a.config.series[m].data[V].x){var te=this.detectOverlappingBars({i:m,j:V,barYPosition:oe,srty:ne,barHeight:P,yDivision:y,initPositions:B});P=te.barHeight,oe=te.barYPosition}M=(K=this.drawRangeBarPaths(Oe({indexes:{i:m,j:V,realIndex:C},barHeight:P,barYPosition:oe,zeroW:k,yDivision:y,y1:G,y2:Z},ie))).barWidth}else{a.globals.isXNumeric&&(S=(a.globals.seriesX[m][V]-a.globals.minX)/this.xRatio-M/2),Q=S+M*this.visibleI;var ue=(v-M*re)/2;if(a.config.series[m].data[V].x){var pe=this.detectOverlappingBars({i:m,j:V,barXPosition:Q,srtx:ue,barWidth:M,xDivision:v,initPositions:B});M=pe.barWidth,Q=pe.barXPosition}P=(K=this.drawRangeColumnPaths(Oe({indexes:{i:m,j:V,realIndex:C,translationsIndex:I},barWidth:M,barXPosition:Q,zeroH:x,xDivision:v},ie))).barHeight}var ke=this.barHelpers.drawGoalLine({barXPosition:K.barXPosition,barYPosition:oe,goalX:K.goalX,goalY:K.goalY,barHeight:P,barWidth:M});ke&&H.add(ke),O=K.y,S=K.x;var ze=this.barHelpers.getPathFillColor(n,m,V,C);this.renderSeries({realIndex:C,pathFill:ze.color,lineFill:ze.useRangeColor?ze.color:a.globals.stroke.colors[C],j:V,i:m,x:S,y:O,y1:G,y2:Z,pathFrom:K.pathFrom,pathTo:K.pathTo,strokeWidth:W,elSeries:E,series:n,barHeight:P,barWidth:M,barXPosition:Q,barYPosition:oe,columnGroupIndex:R,elDataLabelsWrap:U,elGoalsMarkers:H,visibleSeries:this.visibleI,type:"rangebar"})}p.add(E)}return p}},{key:"detectOverlappingBars",value:function(n){var o=n.i,a=n.j,f=n.barYPosition,p=n.barXPosition,m=n.srty,v=n.srtx,y=n.barHeight,x=n.barWidth,k=n.yDivision,S=n.xDivision,O=n.initPositions,C=this.w,R=[],E=C.config.series[o].data[a].rangeName,P=C.config.series[o].data[a].x,M=Array.isArray(P)?P.join(" "):P,I=C.globals.labels.map(function(U){return Array.isArray(U)?U.join(" "):U}).indexOf(M),B=C.globals.seriesRange[o].findIndex(function(U){return U.x===M&&U.overlaps.length>0});return this.isHorizontal?(f=C.config.plotOptions.bar.rangeBarGroupRows?m+k*I:m+y*this.visibleI+k*I,B>-1&&!C.config.plotOptions.bar.rangeBarOverlap&&(R=C.globals.seriesRange[o][B].overlaps).indexOf(E)>-1&&(f=(y=O.barHeight/R.length)*this.visibleI+k*(100-parseInt(this.barOptions.barHeight,10))/100/2+y*(this.visibleI+R.indexOf(E))+k*I)):(I>-1&&!C.globals.timescaleLabels.length&&(p=C.config.plotOptions.bar.rangeBarGroupRows?v+S*I:v+x*this.visibleI+S*I),B>-1&&!C.config.plotOptions.bar.rangeBarOverlap&&(R=C.globals.seriesRange[o][B].overlaps).indexOf(E)>-1&&(p=(x=O.barWidth/R.length)*this.visibleI+S*(100-parseInt(this.barOptions.barWidth,10))/100/2+x*(this.visibleI+R.indexOf(E))+S*I)),{barYPosition:f,barXPosition:p,barHeight:y,barWidth:x}}},{key:"drawRangeColumnPaths",value:function(n){var o=n.indexes,a=n.x,f=n.xDivision,p=n.barWidth,m=n.barXPosition,v=n.zeroH,y=this.w,x=o.i,k=o.j,S=o.realIndex,O=o.translationsIndex,C=this.yRatio[O],R=this.getRangeValue(S,k),E=Math.min(R.start,R.end),P=Math.max(R.start,R.end);this.series[x][k]===void 0||this.series[x][k]===null?E=v:(E=v-E/C,P=v-P/C);var M=Math.abs(P-E),I=this.barHelpers.getColumnPaths({barXPosition:m,barWidth:p,y1:E,y2:P,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:S,i:S,j:k,w:y});if(y.globals.isXNumeric){var B=this.getBarXForNumericXAxis({x:a,j:k,realIndex:S,barWidth:p});a=B.x,m=B.barXPosition}else a+=f;return{pathTo:I.pathTo,pathFrom:I.pathFrom,barHeight:M,x:a,y:R.start<0&&R.end<0?E:P,goalY:this.barHelpers.getGoalValues("y",null,v,x,k,O),barXPosition:m}}},{key:"preventBarOverflow",value:function(n){var o=this.w;return n<0&&(n=0),n>o.globals.gridWidth&&(n=o.globals.gridWidth),n}},{key:"drawRangeBarPaths",value:function(n){var o=n.indexes,a=n.y,f=n.y1,p=n.y2,m=n.yDivision,v=n.barHeight,y=n.barYPosition,x=n.zeroW,k=this.w,S=o.realIndex,O=o.j,C=this.preventBarOverflow(x+f/this.invertedYRatio),R=this.preventBarOverflow(x+p/this.invertedYRatio),E=this.getRangeValue(S,O),P=Math.abs(R-C),M=this.barHelpers.getBarpaths({barYPosition:y,barHeight:v,x1:C,x2:R,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:S,realIndex:S,j:O,w:k});return k.globals.isXNumeric||(a+=m),{pathTo:M.pathTo,pathFrom:M.pathFrom,barWidth:P,x:E.start<0&&E.end<0?C:R,goalX:this.barHelpers.getGoalValues("x",x,null,S,O),y:a}}},{key:"getRangeValue",value:function(n,o){var a=this.w;return{start:a.globals.seriesRangeStart[n][o],end:a.globals.seriesRangeEnd[n][o]}}}]),r}(),eke=function(){function t(e){Be(this,t),this.w=e.w,this.lineCtx=e}return Fe(t,[{key:"sameValueSeriesFix",value:function(e,r){var n=this.w;if((n.config.fill.type==="gradient"||n.config.fill.type[e]==="gradient")&&new Hr(this.lineCtx.ctx,n).seriesHaveSameValues(e)){var o=r[e].slice();o[o.length-1]=o[o.length-1]+1e-6,r[e]=o}return r}},{key:"calculatePoints",value:function(e){var r=e.series,n=e.realIndex,o=e.x,a=e.y,f=e.i,p=e.j,m=e.prevY,v=this.w,y=[],x=[],k=this.lineCtx.categoryAxisCorrection+v.config.markers.offsetX;return v.globals.isXNumeric&&(k=(v.globals.seriesX[n][0]-v.globals.minX)/this.lineCtx.xRatio+v.config.markers.offsetX),p===0&&(y.push(k),x.push(se.isNumber(r[f][0])?m+v.config.markers.offsetY:null)),y.push(o+v.config.markers.offsetX),x.push(se.isNumber(r[f][p+1])?a+v.config.markers.offsetY:null),{x:y,y:x}}},{key:"checkPreviousPaths",value:function(e){for(var r=e.pathFromLine,n=e.pathFromArea,o=e.realIndex,a=this.w,f=0;f<a.globals.previousPaths.length;f++){var p=a.globals.previousPaths[f];(p.type==="line"||p.type==="area")&&p.paths.length>0&&parseInt(p.realIndex,10)===parseInt(o,10)&&(p.type==="line"?(this.lineCtx.appendPathFrom=!1,r=a.globals.previousPaths[f].paths[0].d):p.type==="area"&&(this.lineCtx.appendPathFrom=!1,n=a.globals.previousPaths[f].paths[0].d,a.config.stroke.show&&a.globals.previousPaths[f].paths[1]&&(r=a.globals.previousPaths[f].paths[1].d)))}return{pathFromLine:r,pathFromArea:n}}},{key:"determineFirstPrevY",value:function(e){var r,n,o,a=e.i,f=e.realIndex,p=e.series,m=e.prevY,v=e.lineYPosition,y=e.translationsIndex,x=this.w,k=x.config.chart.stacked&&!x.globals.comboCharts||x.config.chart.stacked&&x.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((r=this.w.config.series[f])===null||r===void 0?void 0:r.type)==="bar"||((n=this.w.config.series[f])===null||n===void 0?void 0:n.type)==="column");if(((o=p[a])===null||o===void 0?void 0:o[0])!==void 0)m=(v=k&&a>0?this.lineCtx.prevSeriesY[a-1][0]:this.lineCtx.zeroY)-p[a][0]/this.lineCtx.yRatio[y]+2*(this.lineCtx.isReversed?p[a][0]/this.lineCtx.yRatio[y]:0);else if(k&&a>0&&p[a][0]===void 0){for(var S=a-1;S>=0;S--)if(p[S][0]!==null&&p[S][0]!==void 0){m=v=this.lineCtx.prevSeriesY[S][0];break}}return{prevY:m,lineYPosition:v}}}]),t}(),tke=function(t){for(var e,r,n,o,a=function(y){for(var x=[],k=y[0],S=y[1],O=x[0]=mE(k,S),C=1,R=y.length-1;C<R;C++)k=S,S=y[C+1],x[C]=.5*(O+(O=mE(k,S)));return x[C]=O,x}(t),f=t.length-1,p=[],m=0;m<f;m++)n=mE(t[m],t[m+1]),Math.abs(n)<1e-6?a[m]=a[m+1]=0:(o=(e=a[m]/n)*e+(r=a[m+1]/n)*r)>9&&(o=3*n/Math.sqrt(o),a[m]=o*e,a[m+1]=o*r);for(var v=0;v<=f;v++)o=(t[Math.min(f,v+1)][0]-t[Math.max(0,v-1)][0])/(6*(1+a[v]*a[v])),p.push([o||0,a[v]*o||0]);return p},rke=function(t){var e=tke(t),r=t[1],n=t[0],o=[],a=e[1],f=e[0];o.push(n,[n[0]+f[0],n[1]+f[1],r[0]-a[0],r[1]-a[1],r[0],r[1]]);for(var p=2,m=e.length;p<m;p++){var v=t[p],y=e[p];o.push([v[0]-y[0],v[1]-y[1],v[0],v[1]])}return o},nke=function(t,e,r){var n=t.slice(e,r);if(e){if(r-e>1&&n[1].length<6){var o=n[0].length;n[1]=[2*n[0][o-2]-n[0][o-4],2*n[0][o-1]-n[0][o-3]].concat(n[1])}n[0]=n[0].slice(-2)}return n};function mE(t,e){return(e[1]-t[1])/(e[0]-t[0])}var vE=function(){function t(e,r,n){Be(this,t),this.ctx=e,this.w=e.w,this.xyRatios=r,this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||n,this.scatter=new lX(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new eke(this),this.markers=new Sh(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return Fe(t,[{key:"draw",value:function(e,r,n,o){var a,f=this.w,p=new xe(this.ctx),m=f.globals.comboCharts?r:f.config.chart.type,v=p.group({class:"apexcharts-".concat(m,"-series apexcharts-plot-series")}),y=new Hr(this.ctx,f);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=y.getLogSeries(e),this.yRatio=y.getLogYRatios(this.yRatio),this.prevSeriesY=[];for(var x=[],k=0;k<e.length;k++){e=this.lineHelpers.sameValueSeriesFix(k,e);var S=f.globals.comboCharts?n[k]:k,O=this.yRatio.length>1?S:0;this._initSerieVariables(e,k,S);var C=[],R=[],E=[],P=f.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,S),f.globals.isXNumeric&&f.globals.seriesX.length>0&&(P=(f.globals.seriesX[S][0]-f.globals.minX)/this.xRatio),E.push(P);var M,I=P,B=void 0,U=I,H=this.zeroY,V=this.zeroY;H=this.lineHelpers.determineFirstPrevY({i:k,realIndex:S,series:e,prevY:H,lineYPosition:0,translationsIndex:O}).prevY,f.config.stroke.curve==="monotoneCubic"&&e[k][0]===null?C.push(null):C.push(H),M=H,m==="rangeArea"&&(B=V=this.lineHelpers.determineFirstPrevY({i:k,realIndex:S,series:o,prevY:V,lineYPosition:0,translationsIndex:O}).prevY,R.push(C[0]!==null?V:null));var W=this._calculatePathsFrom({type:m,series:e,i:k,realIndex:S,translationsIndex:O,prevX:U,prevY:H,prevY2:V}),G=[C[0]],Z=[R[0]],K={type:m,series:e,realIndex:S,translationsIndex:O,i:k,x:P,y:1,pX:I,pY:M,pathsFrom:W,linePaths:[],areaPaths:[],seriesIndex:n,lineYPosition:0,xArrj:E,yArrj:C,y2Arrj:R,seriesRangeEnd:o},Q=this._iterateOverDataPoints(Oe(Oe({},K),{},{iterations:m==="rangeArea"?e[k].length-1:void 0,isRangeStart:!0}));if(m==="rangeArea"){for(var oe=this._calculatePathsFrom({series:o,i:k,realIndex:S,prevX:U,prevY:V}),ie=this._iterateOverDataPoints(Oe(Oe({},K),{},{series:o,xArrj:[P],yArrj:G,y2Arrj:Z,pY:B,areaPaths:Q.areaPaths,pathsFrom:oe,iterations:o[k].length-1,isRangeStart:!1})),re=Q.linePaths.length/2,ne=0;ne<re;ne++)Q.linePaths[ne]=ie.linePaths[ne+re]+Q.linePaths[ne];Q.linePaths.splice(re),Q.pathFromLine=ie.pathFromLine+Q.pathFromLine}else Q.pathFromArea+="z";this._handlePaths({type:m,realIndex:S,i:k,paths:Q}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),x.push(this.elSeries)}if(((a=f.config.series[0])===null||a===void 0?void 0:a.zIndex)!==void 0&&x.sort(function(pe,ke){return Number(pe.node.getAttribute("zIndex"))-Number(ke.node.getAttribute("zIndex"))}),f.config.chart.stacked)for(var te=x.length-1;te>=0;te--)v.add(x[te]);else for(var ue=0;ue<x.length;ue++)v.add(x[ue]);return v}},{key:"_initSerieVariables",value:function(e,r,n){var o=this.w,a=new xe(this.ctx);this.xDivision=o.globals.gridWidth/(o.globals.dataPoints-(o.config.xaxis.tickPlacement==="on"?1:0)),this.strokeWidth=Array.isArray(o.config.stroke.width)?o.config.stroke.width[n]:o.config.stroke.width;var f=0;if(this.yRatio.length>1&&(this.yaxisIndex=o.globals.seriesYAxisReverseMap[n],f=n),this.isReversed=o.config.yaxis[this.yaxisIndex]&&o.config.yaxis[this.yaxisIndex].reversed,this.zeroY=o.globals.gridHeight-this.baseLineY[f]-(this.isReversed?o.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[f]:0),this.areaBottomY=this.zeroY,(this.zeroY>o.globals.gridHeight||o.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=o.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=a.group({class:"apexcharts-series",zIndex:o.config.series[n].zIndex!==void 0?o.config.series[n].zIndex:n,seriesName:se.escapeString(o.globals.seriesNames[n])}),this.elPointsMain=a.group({class:"apexcharts-series-markers-wrap","data:realIndex":n}),o.globals.hasNullValues){var p=this.markers.plotChartMarkers({pointsPos:{x:[0],y:[o.globals.gridHeight+o.globals.markers.largestSize]},seriesIndex:r,j:0,pSize:.1,alwaysDrawMarker:!0,isVirtualPoint:!0});p!==null&&this.elPointsMain.add(p)}this.elDataLabelsWrap=a.group({class:"apexcharts-datalabels","data:realIndex":n});var m=e[r].length===o.globals.dataPoints;this.elSeries.attr({"data:longestSeries":m,rel:r+1,"data:realIndex":n}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var r,n,o,a,f=e.type,p=e.series,m=e.i,v=e.realIndex,y=e.translationsIndex,x=e.prevX,k=e.prevY,S=e.prevY2,O=this.w,C=new xe(this.ctx);if(p[m][0]===null){for(var R=0;R<p[m].length;R++)if(p[m][R]!==null){x=this.xDivision*R,k=this.zeroY-p[m][R]/this.yRatio[y],r=C.move(x,k),n=C.move(x,this.areaBottomY);break}}else r=C.move(x,k),f==="rangeArea"&&(r=C.move(x,S)+C.line(x,k)),n=C.move(x,this.areaBottomY)+C.line(x,k);if(o=C.move(0,this.areaBottomY)+C.line(0,this.areaBottomY),a=C.move(0,this.areaBottomY)+C.line(0,this.areaBottomY),O.globals.previousPaths.length>0){var E=this.lineHelpers.checkPreviousPaths({pathFromLine:o,pathFromArea:a,realIndex:v});o=E.pathFromLine,a=E.pathFromArea}return{prevX:x,prevY:k,linePath:r,areaPath:n,pathFromLine:o,pathFromArea:a}}},{key:"_handlePaths",value:function(e){var r=e.type,n=e.realIndex,o=e.i,a=e.paths,f=this.w,p=new xe(this.ctx),m=new ea(this.ctx);this.prevSeriesY.push(a.yArrj),f.globals.seriesXvalues[n]=a.xArrj,f.globals.seriesYvalues[n]=a.yArrj;var v=f.config.forecastDataPoints;if(v.count>0&&r!=="rangeArea"){var y=f.globals.seriesXvalues[n][f.globals.seriesXvalues[n].length-v.count-1],x=p.drawRect(y,0,f.globals.gridWidth,f.globals.gridHeight,0);f.globals.dom.elForecastMask.appendChild(x.node);var k=p.drawRect(0,0,y,f.globals.gridHeight,0);f.globals.dom.elNonForecastMask.appendChild(k.node)}this.pointsChart||f.globals.delayedElements.push({el:this.elPointsMain.node,index:n});var S={i:o,realIndex:n,animationDelay:o,initialSpeed:f.config.chart.animations.speed,dataChangeSpeed:f.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(r)};if(r==="area")for(var O=m.fillPath({seriesNumber:n}),C=0;C<a.areaPaths.length;C++){var R=p.renderPaths(Oe(Oe({},S),{},{pathFrom:a.pathFromArea,pathTo:a.areaPaths[C],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:O}));this.elSeries.add(R)}if(f.config.stroke.show&&!this.pointsChart){var E=null;if(r==="line")E=m.fillPath({seriesNumber:n,i:o});else if(f.config.stroke.fill.type==="solid")E=f.globals.stroke.colors[n];else{var P=f.config.fill;f.config.fill=f.config.stroke.fill,E=m.fillPath({seriesNumber:n,i:o}),f.config.fill=P}for(var M=0;M<a.linePaths.length;M++){var I=E;r==="rangeArea"&&(I=m.fillPath({seriesNumber:n}));var B=Oe(Oe({},S),{},{pathFrom:a.pathFromLine,pathTo:a.linePaths[M],stroke:E,strokeWidth:this.strokeWidth,strokeLineCap:f.config.stroke.lineCap,fill:r==="rangeArea"?I:"none"}),U=p.renderPaths(B);if(this.elSeries.add(U),U.attr("fill-rule","evenodd"),v.count>0&&r!=="rangeArea"){var H=p.renderPaths(B);H.node.setAttribute("stroke-dasharray",v.dashArray),v.strokeWidth&&H.node.setAttribute("stroke-width",v.strokeWidth),this.elSeries.add(H),H.attr("clip-path","url(#forecastMask".concat(f.globals.cuid,")")),U.attr("clip-path","url(#nonForecastMask".concat(f.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var r,n,o=this,a=e.type,f=e.series,p=e.iterations,m=e.realIndex,v=e.translationsIndex,y=e.i,x=e.x,k=e.y,S=e.pX,O=e.pY,C=e.pathsFrom,R=e.linePaths,E=e.areaPaths,P=e.seriesIndex,M=e.lineYPosition,I=e.xArrj,B=e.yArrj,U=e.y2Arrj,H=e.isRangeStart,V=e.seriesRangeEnd,W=this.w,G=new xe(this.ctx),Z=this.yRatio,K=C.prevY,Q=C.linePath,oe=C.areaPath,ie=C.pathFromLine,re=C.pathFromArea,ne=se.isNumber(W.globals.minYArr[m])?W.globals.minYArr[m]:W.globals.minY;p||(p=W.globals.dataPoints>1?W.globals.dataPoints-1:W.globals.dataPoints);var te=function(rt,pt){return pt-rt/Z[v]+2*(o.isReversed?rt/Z[v]:0)},ue=k,pe=W.config.chart.stacked&&!W.globals.comboCharts||W.config.chart.stacked&&W.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((r=this.w.config.series[m])===null||r===void 0?void 0:r.type)==="bar"||((n=this.w.config.series[m])===null||n===void 0?void 0:n.type)==="column"),ke=W.config.stroke.curve;Array.isArray(ke)&&(ke=Array.isArray(P)?ke[P[y]]:ke[y]);for(var ze,Re=0,Ae=0;Ae<p&&f[y].length!==0;Ae++){var tt=f[y][Ae+1]===void 0||f[y][Ae+1]===null;if(W.globals.isXNumeric){var Ue=W.globals.seriesX[m][Ae+1];W.globals.seriesX[m][Ae+1]===void 0&&(Ue=W.globals.seriesX[m][p-1]),x=(Ue-W.globals.minX)/this.xRatio}else x+=this.xDivision;pe?y>0&&W.globals.collapsedSeries.length<W.config.series.length-1?M=this.prevSeriesY[function(rt){for(var pt=rt;pt>0;pt--){if(!(W.globals.collapsedSeriesIndices.indexOf((P==null?void 0:P[pt])||pt)>-1))return pt;pt--}return 0}(y-1)][Ae+1]:M=this.zeroY:M=this.zeroY,tt?k=te(ne,M):(k=te(f[y][Ae+1],M),a==="rangeArea"&&(ue=te(V[y][Ae+1],M))),I.push(f[y][Ae+1]===null?null:x),!tt||W.config.stroke.curve!=="smooth"&&W.config.stroke.curve!=="monotoneCubic"?(B.push(k),U.push(ue)):(B.push(null),U.push(null));var Te=this.lineHelpers.calculatePoints({series:f,x,y:k,realIndex:m,i:y,j:Ae,prevY:K}),Xe=this._createPaths({type:a,series:f,i:y,realIndex:m,j:Ae,x,y:k,y2:ue,xArrj:I,yArrj:B,y2Arrj:U,pX:S,pY:O,pathState:Re,segmentStartX:ze,linePath:Q,areaPath:oe,linePaths:R,areaPaths:E,curve:ke,isRangeStart:H});E=Xe.areaPaths,R=Xe.linePaths,S=Xe.pX,O=Xe.pY,Re=Xe.pathState,ze=Xe.segmentStartX,oe=Xe.areaPath,Q=Xe.linePath,!this.appendPathFrom||W.globals.hasNullValues||ke==="monotoneCubic"&&a==="rangeArea"||(ie+=G.line(x,this.areaBottomY),re+=G.line(x,this.areaBottomY)),this.handleNullDataPoints(f,Te,y,Ae,m),this._handleMarkersAndLabels({type:a,pointsPos:Te,i:y,j:Ae,realIndex:m,isRangeStart:H})}return{yArrj:B,xArrj:I,pathFromArea:re,areaPaths:E,pathFromLine:ie,linePaths:R,linePath:Q,areaPath:oe}}},{key:"_handleMarkersAndLabels",value:function(e){var r=e.type,n=e.pointsPos,o=e.isRangeStart,a=e.i,f=e.j,p=e.realIndex,m=this.w,v=new Zf(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,f,{realIndex:p,pointsPos:n,zRatio:this.zRatio,elParent:this.elPointsMain});else{m.globals.series[a].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var y=this.markers.plotChartMarkers({pointsPos:n,seriesIndex:p,j:f+1});y!==null&&this.elPointsMain.add(y)}var x=v.drawDataLabel({type:r,isRangeStart:o,pos:n,i:p,j:f+1});x!==null&&this.elDataLabelsWrap.add(x)}},{key:"_createPaths",value:function(e){var r=e.type,n=e.series,o=e.i;e.realIndex;var a,f=e.j,p=e.x,m=e.y,v=e.xArrj,y=e.yArrj,x=e.y2,k=e.y2Arrj,S=e.pX,O=e.pY,C=e.pathState,R=e.segmentStartX,E=e.linePath,P=e.areaPath,M=e.linePaths,I=e.areaPaths,B=e.curve,U=e.isRangeStart,H=new xe(this.ctx),V=this.areaBottomY,W=r==="rangeArea",G=r==="rangeArea"&&U;switch(B){case"monotoneCubic":var Z=U?y:k;switch(C){case 0:if(Z[f+1]===null)break;C=1;case 1:if(!(W?v.length===n[o].length:f===n[o].length-2))break;case 2:var K=U?v:v.slice().reverse(),Q=U?Z:Z.slice().reverse(),oe=(a=Q,K.map(function(Ue,Te){return[Ue,a[Te]]}).filter(function(Ue){return Ue[1]!==null})),ie=oe.length>1?rke(oe):oe,re=[];W&&(G?I=oe:re=I.reverse());var ne=0,te=0;if(function(Ue,Te){for(var Xe=function(Cr){var $t=[],Pr=0;return Cr.forEach(function(Jo){Jo!==null?Pr++:Pr>0&&($t.push(Pr),Pr=0)}),Pr>0&&$t.push(Pr),$t}(Ue),rt=[],pt=0,Lt=0;pt<Xe.length;Lt+=Xe[pt++])rt[pt]=nke(Te,Lt,Lt+Xe[pt]);return rt}(Q,ie).forEach(function(Ue){ne++;var Te=function(pt){for(var Lt="",Cr=0;Cr<pt.length;Cr++){var $t=pt[Cr],Pr=$t.length;Pr>4?(Lt+="C".concat($t[0],", ").concat($t[1]),Lt+=", ".concat($t[2],", ").concat($t[3]),Lt+=", ".concat($t[4],", ").concat($t[5])):Pr>2&&(Lt+="S".concat($t[0],", ").concat($t[1]),Lt+=", ".concat($t[2],", ").concat($t[3]))}return Lt}(Ue),Xe=te,rt=(te+=Ue.length)-1;G?E=H.move(oe[Xe][0],oe[Xe][1])+Te:W?E=H.move(re[Xe][0],re[Xe][1])+H.line(oe[Xe][0],oe[Xe][1])+Te+H.line(re[rt][0],re[rt][1]):(E=H.move(oe[Xe][0],oe[Xe][1])+Te,P=E+H.line(oe[rt][0],V)+H.line(oe[Xe][0],V)+"z",I.push(P)),M.push(E)}),W&&ne>1&&!G){var ue=M.slice(ne).reverse();M.splice(ne),ue.forEach(function(Ue){return M.push(Ue)})}C=0}break;case"smooth":var pe=.35*(p-S);if(n[o][f]===null)C=0;else switch(C){case 0:if(R=S,E=G?H.move(S,k[f])+H.line(S,O):H.move(S,O),P=H.move(S,O),n[o][f+1]===null||n[o][f+1]===void 0){M.push(E),I.push(P);break}if(C=1,f<n[o].length-2){var ke=H.curve(S+pe,O,p-pe,m,p,m);E+=ke,P+=ke;break}case 1:if(n[o][f+1]===null)E+=G?H.line(S,x):H.move(S,O),P+=H.line(S,V)+H.line(R,V)+"z",M.push(E),I.push(P),C=-1;else{var ze=H.curve(S+pe,O,p-pe,m,p,m);E+=ze,P+=ze,f>=n[o].length-2&&(G&&(E+=H.curve(p,m,p,m,p,x)+H.move(p,x)),P+=H.curve(p,m,p,m,p,V)+H.line(R,V)+"z",M.push(E),I.push(P),C=-1)}}S=p,O=m;break;default:var Re=function(Ue,Te,Xe){var rt=[];switch(Ue){case"stepline":rt=H.line(Te,null,"H")+H.line(null,Xe,"V");break;case"linestep":rt=H.line(null,Xe,"V")+H.line(Te,null,"H");break;case"straight":rt=H.line(Te,Xe)}return rt};if(n[o][f]===null)C=0;else switch(C){case 0:if(R=S,E=G?H.move(S,k[f])+H.line(S,O):H.move(S,O),P=H.move(S,O),n[o][f+1]===null||n[o][f+1]===void 0){M.push(E),I.push(P);break}if(C=1,f<n[o].length-2){var Ae=Re(B,p,m);E+=Ae,P+=Ae;break}case 1:if(n[o][f+1]===null)E+=G?H.line(S,x):H.move(S,O),P+=H.line(S,V)+H.line(R,V)+"z",M.push(E),I.push(P),C=-1;else{var tt=Re(B,p,m);E+=tt,P+=tt,f>=n[o].length-2&&(G&&(E+=H.line(p,x)),P+=H.line(p,V)+H.line(R,V)+"z",M.push(E),I.push(P),C=-1)}}S=p,O=m}return{linePaths:M,areaPaths:I,pX:S,pY:O,pathState:C,segmentStartX:R,linePath:E,areaPath:P}}},{key:"handleNullDataPoints",value:function(e,r,n,o,a){var f=this.w;if(e[n][o]===null&&f.config.markers.showNullDataPoints||e[n].length===1){var p=this.strokeWidth-f.config.markers.strokeWidth/2;p>0||(p=0);var m=this.markers.plotChartMarkers({pointsPos:r,seriesIndex:a,j:o+1,pSize:p,alwaysDrawMarker:!0});m!==null&&this.elPointsMain.add(m)}}}]),t}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function t(p,m,v,y){this.xoffset=p,this.yoffset=m,this.height=y,this.width=v,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(x){var k,S=[],O=this.xoffset,C=this.yoffset,R=a(x)/this.height,E=a(x)/this.width;if(this.width>=this.height)for(k=0;k<x.length;k++)S.push([O,C,O+R,C+x[k]/R]),C+=x[k]/R;else for(k=0;k<x.length;k++)S.push([O,C,O+x[k]/E,C+E]),O+=x[k]/E;return S},this.cutArea=function(x){var k;if(this.width>=this.height){var S=x/this.height,O=this.width-S;k=new t(this.xoffset+S,this.yoffset,O,this.height)}else{var C=x/this.width,R=this.height-C;k=new t(this.xoffset,this.yoffset+C,this.width,R)}return k}}function e(p,m,v,y,x){y=y===void 0?0:y,x=x===void 0?0:x;var k=r(function(S,O){var C,R=[],E=O/a(S);for(C=0;C<S.length;C++)R[C]=S[C]*E;return R}(p,m*v),[],new t(y,x,m,v),[]);return function(S){var O,C,R=[];for(O=0;O<S.length;O++)for(C=0;C<S[O].length;C++)R.push(S[O][C]);return R}(k)}function r(p,m,v,y){var x,k,S;if(p.length!==0)return x=v.shortestEdge(),function(O,C,R){var E;if(O.length===0)return!0;(E=O.slice()).push(C);var P=n(O,R),M=n(E,R);return P>=M}(m,k=p[0],x)?(m.push(k),r(p.slice(1),m,v,y)):(S=v.cutArea(a(m),y),y.push(v.getCoordinates(m)),r(p,[],S,y)),y;y.push(v.getCoordinates(m))}function n(p,m){var v=Math.min.apply(Math,p),y=Math.max.apply(Math,p),x=a(p);return Math.max(Math.pow(m,2)*y/Math.pow(x,2),Math.pow(x,2)/(Math.pow(m,2)*v))}function o(p){return p&&p.constructor===Array}function a(p){var m,v=0;for(m=0;m<p.length;m++)v+=p[m];return v}function f(p){var m,v=0;if(o(p[0]))for(m=0;m<p.length;m++)v+=f(p[m]);else v=a(p);return v}return function p(m,v,y,x,k){x=x===void 0?0:x,k=k===void 0?0:k;var S,O,C=[],R=[];if(o(m[0])){for(O=0;O<m.length;O++)C[O]=f(m[O]);for(S=e(C,v,y,x,k),O=0;O<m.length;O++)R.push(p(m[O],S[O][2]-S[O][0],S[O][3]-S[O][1],S[O][0],S[O][1]))}else R=e(m,v,y,x,k);return R}}();var oke=function(){function t(e,r){Be(this,t),this.ctx=e,this.w=e.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new mX(e),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return Fe(t,[{key:"draw",value:function(e){var r=this,n=this.w,o=new xe(this.ctx),a=new ea(this.ctx),f=o.group({class:"apexcharts-treemap"});if(n.globals.noData)return f;var p=[];return e.forEach(function(m){var v=m.map(function(y){return Math.abs(y)});p.push(v)}),this.negRange=this.helpers.checkColorRange(),n.config.series.forEach(function(m,v){m.data.forEach(function(y){Array.isArray(r.labels[v])||(r.labels[v]=[]),r.labels[v].push(y.x)})}),window.TreemapSquared.generate(p,n.globals.gridWidth,n.globals.gridHeight).forEach(function(m,v){var y=o.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:se.escapeString(n.globals.seriesNames[v]),rel:v+1,"data:realIndex":v});if(n.config.chart.dropShadow.enabled){var x=n.config.chart.dropShadow;new Pn(r.ctx).dropShadow(f,x,v)}var k=o.group({class:"apexcharts-data-labels"}),S={xMin:1/0,yMin:1/0,xMax:-1/0,yMax:-1/0};m.forEach(function(ie,re){var ne=ie[0],te=ie[1],ue=ie[2],pe=ie[3];S.xMin=Math.min(S.xMin,ne),S.yMin=Math.min(S.yMin,te),S.xMax=Math.max(S.xMax,ue),S.yMax=Math.max(S.yMax,pe);var ke=r.helpers.getShadeColor(n.config.chart.type,v,re,r.negRange),ze=ke.color,Re=a.fillPath({color:ze,seriesNumber:v,dataPointIndex:re}),Ae=o.drawRect(ne,te,ue-ne,pe-te,n.config.plotOptions.treemap.borderRadius,"#fff",1,r.strokeWidth,n.config.plotOptions.treemap.useFillColorAsStroke?ze:n.globals.stroke.colors[v]);Ae.attr({cx:ne,cy:te,index:v,i:v,j:re,width:ue-ne,height:pe-te,fill:Re}),Ae.node.classList.add("apexcharts-treemap-rect"),r.helpers.addListeners(Ae);var tt={x:ne+(ue-ne)/2,y:te+(pe-te)/2,width:0,height:0},Ue={x:ne,y:te,width:ue-ne,height:pe-te};if(n.config.chart.animations.enabled&&!n.globals.dataChanged){var Te=1;n.globals.resized||(Te=n.config.chart.animations.speed),r.animateTreemap(Ae,tt,Ue,Te)}if(n.globals.dataChanged){var Xe=1;r.dynamicAnim.enabled&&n.globals.shouldAnimate&&(Xe=r.dynamicAnim.speed,n.globals.previousPaths[v]&&n.globals.previousPaths[v][re]&&n.globals.previousPaths[v][re].rect&&(tt=n.globals.previousPaths[v][re].rect),r.animateTreemap(Ae,tt,Ue,Xe))}var rt=r.getFontSize(ie),pt=n.config.dataLabels.formatter(r.labels[v][re],{value:n.globals.series[v][re],seriesIndex:v,dataPointIndex:re,w:n});n.config.plotOptions.treemap.dataLabels.format==="truncate"&&(rt=parseInt(n.config.dataLabels.style.fontSize,10),pt=r.truncateLabels(pt,rt,ne,te,ue,pe));var Lt=null;n.globals.series[v][re]&&(Lt=r.helpers.calculateDataLabels({text:pt,x:(ne+ue)/2,y:(te+pe)/2+r.strokeWidth/2+rt/3,i:v,j:re,colorProps:ke,fontSize:rt,series:e})),n.config.dataLabels.enabled&&Lt&&r.rotateToFitLabel(Lt,rt,pt,ne,te,ue,pe),y.add(Ae),Lt!==null&&y.add(Lt)});var O=n.config.plotOptions.treemap.seriesTitle;if(n.config.series.length>1&&O&&O.show){var C=n.config.series[v].name||"";if(C&&S.xMin<1/0&&S.yMin<1/0){var R=O.offsetX,E=O.offsetY,P=O.borderColor,M=O.borderWidth,I=O.borderRadius,B=O.style,U=B.color||n.config.chart.foreColor,H={left:B.padding.left,right:B.padding.right,top:B.padding.top,bottom:B.padding.bottom},V=o.getTextRects(C,B.fontSize,B.fontFamily),W=V.width+H.left+H.right,G=V.height+H.top+H.bottom,Z=S.xMin+(R||0),K=S.yMin+(E||0),Q=o.drawRect(Z,K,W,G,I,B.background,1,M,P),oe=o.drawText({x:Z+H.left,y:K+H.top+.75*V.height,text:C,fontSize:B.fontSize,fontFamily:B.fontFamily,fontWeight:B.fontWeight,foreColor:U,cssClass:B.cssClass||""});y.add(Q),y.add(oe)}}y.add(k),f.add(y)}),f}},{key:"getFontSize",value:function(e){var r=this.w,n=function o(a){var f,p=0;if(Array.isArray(a[0]))for(f=0;f<a.length;f++)p+=o(a[f]);else for(f=0;f<a.length;f++)p+=a[f].length;return p}(this.labels)/function o(a){var f,p=0;if(Array.isArray(a[0]))for(f=0;f<a.length;f++)p+=o(a[f]);else for(f=0;f<a.length;f++)p+=1;return p}(this.labels);return function(o,a){var f=o*a,p=Math.pow(f,.5);return Math.min(p/n,parseInt(r.config.dataLabels.style.fontSize,10))}(e[2]-e[0],e[3]-e[1])}},{key:"rotateToFitLabel",value:function(e,r,n,o,a,f,p){var m=new xe(this.ctx),v=m.getTextRects(n,r);if(v.width+this.w.config.stroke.width+5>f-o&&v.width<=p-a){var y=m.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(y.x," ").concat(y.y,") translate(").concat(v.height/3,")"))}}},{key:"truncateLabels",value:function(e,r,n,o,a,f){var p=new xe(this.ctx),m=p.getTextRects(e,r).width+this.w.config.stroke.width+5>a-n&&f-o>a-n?f-o:a-n,v=p.getTextBasedOnMaxWidth({text:e,maxWidth:m,fontSize:r});return e.length!==v.length&&m/r<5?"":v}},{key:"animateTreemap",value:function(e,r,n,o){var a=new wh(this.ctx);a.animateRect(e,r,n,o,function(){a.animationCompleted(e)})}}]),t}(),yX=86400,ike=10/yX,ake=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return Fe(t,[{key:"calculateTimeScaleTicks",value:function(e,r){var n=this,o=this.w;if(o.globals.allSeriesCollapsed)return o.globals.labels=[],o.globals.timescaleLabels=[],[];var a=new Tn(this.ctx),f=(r-e)/864e5;this.determineInterval(f),o.globals.disableZoomIn=!1,o.globals.disableZoomOut=!1,f<ike?o.globals.disableZoomIn=!0:f>5e4&&(o.globals.disableZoomOut=!0);var p=a.getTimeUnitsfromTimestamp(e,r,this.utc),m=o.globals.gridWidth/f,v=m/24,y=v/60,x=y/60,k=Math.floor(24*f),S=Math.floor(1440*f),O=Math.floor(f*yX),C=Math.floor(f),R=Math.floor(f/30),E=Math.floor(f/365),P={minMillisecond:p.minMillisecond,minSecond:p.minSecond,minMinute:p.minMinute,minHour:p.minHour,minDate:p.minDate,minMonth:p.minMonth,minYear:p.minYear},M={firstVal:P,currentMillisecond:P.minMillisecond,currentSecond:P.minSecond,currentMinute:P.minMinute,currentHour:P.minHour,currentMonthDate:P.minDate,currentDate:P.minDate,currentMonth:P.minMonth,currentYear:P.minYear,daysWidthOnXAxis:m,hoursWidthOnXAxis:v,minutesWidthOnXAxis:y,secondsWidthOnXAxis:x,numberOfSeconds:O,numberOfMinutes:S,numberOfHours:k,numberOfDays:C,numberOfMonths:R,numberOfYears:E};switch(this.tickInterval){case"years":this.generateYearScale(M);break;case"months":case"half_year":this.generateMonthScale(M);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(M);break;case"hours":this.generateHourScale(M);break;case"minutes_fives":case"minutes":this.generateMinuteScale(M);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(M)}var I=this.timeScaleArray.map(function(B){var U={position:B.position,unit:B.unit,year:B.year,day:B.day?B.day:1,hour:B.hour?B.hour:0,month:B.month+1};return B.unit==="month"?Oe(Oe({},U),{},{day:1,value:B.value+1}):B.unit==="day"||B.unit==="hour"?Oe(Oe({},U),{},{value:B.value}):B.unit==="minute"?Oe(Oe({},U),{},{value:B.value,minute:B.value}):B.unit==="second"?Oe(Oe({},U),{},{value:B.value,minute:B.minute,second:B.second}):B});return I.filter(function(B){var U=1,H=Math.ceil(o.globals.gridWidth/120),V=B.value;o.config.xaxis.tickAmount!==void 0&&(H=o.config.xaxis.tickAmount),I.length>H&&(U=Math.floor(I.length/H));var W=!1,G=!1;switch(n.tickInterval){case"years":B.unit==="year"&&(W=!0);break;case"half_year":U=7,B.unit==="year"&&(W=!0);break;case"months":U=1,B.unit==="year"&&(W=!0);break;case"months_fortnight":U=15,B.unit!=="year"&&B.unit!=="month"||(W=!0),V===30&&(G=!0);break;case"months_days":U=10,B.unit==="month"&&(W=!0),V===30&&(G=!0);break;case"week_days":U=8,B.unit==="month"&&(W=!0);break;case"days":U=1,B.unit==="month"&&(W=!0);break;case"hours":B.unit==="day"&&(W=!0);break;case"minutes_fives":case"seconds_fives":V%5!=0&&(G=!0);break;case"seconds_tens":V%10!=0&&(G=!0)}if(n.tickInterval==="hours"||n.tickInterval==="minutes_fives"||n.tickInterval==="seconds_tens"||n.tickInterval==="seconds_fives"){if(!G)return!0}else if((V%U==0||W)&&!G)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(e,r){var n=this.w,o=this.formatDates(e),a=this.removeOverlappingTS(o);n.globals.timescaleLabels=a.slice(),new Rw(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var r=24*e,n=60*r;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case r>2.4:this.tickInterval="hours";break;case n>15:this.tickInterval="minutes_fives";break;case n>5:this.tickInterval="minutes";break;case n>1:this.tickInterval="seconds_tens";break;case 60*n>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var r=e.firstVal,n=e.currentMonth,o=e.currentYear,a=e.daysWidthOnXAxis,f=e.numberOfYears,p=r.minYear,m=0,v=new Tn(this.ctx),y="year";if(r.minDate>1||r.minMonth>0){var x=v.determineRemainingDaysOfYear(r.minYear,r.minMonth,r.minDate);m=(v.determineDaysOfYear(r.minYear)-x+1)*a,p=r.minYear+1,this.timeScaleArray.push({position:m,value:p,unit:y,year:p,month:se.monthMod(n+1)})}else r.minDate===1&&r.minMonth===0&&this.timeScaleArray.push({position:m,value:p,unit:y,year:o,month:se.monthMod(n+1)});for(var k=p,S=m,O=0;O<f;O++)k++,S=v.determineDaysOfYear(k-1)*a+S,this.timeScaleArray.push({position:S,value:k,unit:y,year:k,month:1})}},{key:"generateMonthScale",value:function(e){var r=e.firstVal,n=e.currentMonthDate,o=e.currentMonth,a=e.currentYear,f=e.daysWidthOnXAxis,p=e.numberOfMonths,m=o,v=0,y=new Tn(this.ctx),x="month",k=0;if(r.minDate>1){v=(y.determineDaysOfMonths(o+1,r.minYear)-n+1)*f,m=se.monthMod(o+1);var S=a+k,O=se.monthMod(m),C=m;m===0&&(x="year",C=S,O=1,S+=k+=1),this.timeScaleArray.push({position:v,value:C,unit:x,year:S,month:O})}else this.timeScaleArray.push({position:v,value:m,unit:x,year:a,month:se.monthMod(o)});for(var R=m+1,E=v,P=0,M=1;P<p;P++,M++){(R=se.monthMod(R))===0?(x="year",k+=1):x="month";var I=this._getYear(a,R,k);E=y.determineDaysOfMonths(R,I)*f+E;var B=R===0?I:R;this.timeScaleArray.push({position:E,value:B,unit:x,year:I,month:R===0?1:R}),R++}}},{key:"generateDayScale",value:function(e){var r=e.firstVal,n=e.currentMonth,o=e.currentYear,a=e.hoursWidthOnXAxis,f=e.numberOfDays,p=new Tn(this.ctx),m="day",v=r.minDate+1,y=v,x=function(M,I,B){return M>p.determineDaysOfMonths(I+1,B)&&(y=1,m="month",S=I+=1),I},k=(24-r.minHour)*a,S=v,O=x(y,n,o);r.minHour===0&&r.minDate===1?(k=0,S=se.monthMod(r.minMonth),m="month",y=r.minDate):r.minDate!==1&&r.minHour===0&&r.minMinute===0&&(k=0,v=r.minDate,S=v,O=x(y=v,n,o),S!==1&&(m="day")),this.timeScaleArray.push({position:k,value:S,unit:m,year:this._getYear(o,O,0),month:se.monthMod(O),day:y});for(var C=k,R=0;R<f;R++){m="day",O=x(y+=1,O,this._getYear(o,O,0));var E=this._getYear(o,O,0);C=24*a+C;var P=y===1?se.monthMod(O):y;this.timeScaleArray.push({position:C,value:P,unit:m,year:E,month:se.monthMod(O),day:P})}}},{key:"generateHourScale",value:function(e){var r=e.firstVal,n=e.currentDate,o=e.currentMonth,a=e.currentYear,f=e.minutesWidthOnXAxis,p=e.numberOfHours,m=new Tn(this.ctx),v="hour",y=function(U,H){return U>m.determineDaysOfMonths(H+1,a)&&(R=1,H+=1),{month:H,date:R}},x=function(U,H){return U>m.determineDaysOfMonths(H+1,a)?H+=1:H},k=60-(r.minMinute+r.minSecond/60),S=k*f,O=r.minHour+1,C=O;k===60&&(S=0,C=O=r.minHour);var R=n;C>=24&&(C=0,v="day",O=R+=1);var E=y(R,o).month;E=x(R,E),O>31&&(O=R=1),this.timeScaleArray.push({position:S,value:O,unit:v,day:R,hour:C,year:a,month:se.monthMod(E)}),C++;for(var P=S,M=0;M<p;M++){v="hour",C>=24&&(C=0,v="day",E=y(R+=1,E).month,E=x(R,E));var I=this._getYear(a,E,0);P=60*f+P;var B=C===0?R:C;this.timeScaleArray.push({position:P,value:B,unit:v,hour:C,day:R,year:I,month:se.monthMod(E)}),C++}}},{key:"generateMinuteScale",value:function(e){for(var r=e.currentMillisecond,n=e.currentSecond,o=e.currentMinute,a=e.currentHour,f=e.currentDate,p=e.currentMonth,m=e.currentYear,v=e.minutesWidthOnXAxis,y=e.secondsWidthOnXAxis,x=e.numberOfMinutes,k=o+1,S=f,O=p,C=m,R=a,E=(60-n-r/1e3)*y,P=0;P<x;P++)k>=60&&(k=0,(R+=1)===24&&(R=0)),this.timeScaleArray.push({position:E,value:k,unit:"minute",hour:R,minute:k,day:S,year:this._getYear(C,O,0),month:se.monthMod(O)}),E+=v,k++}},{key:"generateSecondScale",value:function(e){for(var r=e.currentMillisecond,n=e.currentSecond,o=e.currentMinute,a=e.currentHour,f=e.currentDate,p=e.currentMonth,m=e.currentYear,v=e.secondsWidthOnXAxis,y=e.numberOfSeconds,x=n+1,k=o,S=f,O=p,C=m,R=a,E=(1e3-r)/1e3*v,P=0;P<y;P++)x>=60&&(x=0,++k>=60&&(k=0,++R===24&&(R=0))),this.timeScaleArray.push({position:E,value:x,unit:"second",hour:R,minute:k,second:x,day:S,year:this._getYear(C,O,0),month:se.monthMod(O)}),E+=v,x++}},{key:"createRawDateString",value:function(e,r){var n=e.year;return e.month===0&&(e.month=1),n+="-"+("0"+e.month.toString()).slice(-2),e.unit==="day"?n+=e.unit==="day"?"-"+("0"+r).slice(-2):"-01":n+="-"+("0"+(e.day?e.day:"1")).slice(-2),e.unit==="hour"?n+=e.unit==="hour"?"T"+("0"+r).slice(-2):"T00":n+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),e.unit==="minute"?n+=":"+("0"+r).slice(-2):n+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),e.unit==="second"?n+=":"+("0"+r).slice(-2):n+=":00",this.utc&&(n+=".000Z"),n}},{key:"formatDates",value:function(e){var r=this,n=this.w;return e.map(function(o){var a=o.value.toString(),f=new Tn(r.ctx),p=r.createRawDateString(o,a),m=f.getDate(f.parseDate(p));if(r.utc||(m=f.getDate(f.parseDateWithTimezone(p))),n.config.xaxis.labels.format===void 0){var v="dd MMM",y=n.config.xaxis.labels.datetimeFormatter;o.unit==="year"&&(v=y.year),o.unit==="month"&&(v=y.month),o.unit==="day"&&(v=y.day),o.unit==="hour"&&(v=y.hour),o.unit==="minute"&&(v=y.minute),o.unit==="second"&&(v=y.second),a=f.formatDate(m,v)}else a=f.formatDate(m,n.config.xaxis.labels.format);return{dateString:p,position:o.position,value:a,unit:o.unit,year:o.year,month:o.month}})}},{key:"removeOverlappingTS",value:function(e){var r,n=this,o=new xe(this.ctx),a=!1;e.length>0&&e[0].value&&e.every(function(m){return m.value.length===e[0].value.length})&&(a=!0,r=o.getTextRects(e[0].value).width);var f=0,p=e.map(function(m,v){if(v>0&&n.w.config.xaxis.labels.hideOverlappingLabels){var y=a?r:o.getTextRects(e[f].value).width,x=e[f].position;return m.position>x+y+10?(f=v,m):null}return m});return p=p.filter(function(m){return m!==null})}},{key:"_getYear",value:function(e,r,n){return e+Math.floor(r/12)+n}}]),t}(),ske=function(){function t(e,r){Be(this,t),this.ctx=r,this.w=r.w,this.el=e}return Fe(t,[{key:"setupElements",value:function(){var e=this.w,r=e.globals,n=e.config,o=n.chart.type;r.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].includes(o),r.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].includes(o),r.isBarHorizontal=["bar","rangeBar","boxPlot"].includes(o)&&n.plotOptions.bar.horizontal,r.chartClass=".apexcharts".concat(r.chartID),r.dom.baseEl=this.el,r.dom.elWrap=document.createElement("div"),xe.setAttrs(r.dom.elWrap,{id:r.chartClass.substring(1),class:"apexcharts-canvas ".concat(r.chartClass.substring(1))}),this.el.appendChild(r.dom.elWrap),r.dom.Paper=window.SVG().addTo(r.dom.elWrap),r.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(n.chart.offsetX,", ").concat(n.chart.offsetY,")")}),r.dom.Paper.node.style.background=n.theme.mode!=="dark"||n.chart.background?n.theme.mode!=="light"||n.chart.background?n.chart.background:"#fff":"#343A3F",this.setSVGDimensions(),r.dom.elLegendForeign=document.createElementNS(r.SVGNS,"foreignObject"),xe.setAttrs(r.dom.elLegendForeign,{x:0,y:0,width:r.svgWidth,height:r.svgHeight}),r.dom.elLegendWrap=document.createElement("div"),r.dom.elLegendWrap.classList.add("apexcharts-legend"),r.dom.elWrap.appendChild(r.dom.elLegendWrap),r.dom.Paper.node.appendChild(r.dom.elLegendForeign),r.dom.elGraphical=r.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),r.dom.elDefs=r.dom.Paper.defs(),r.dom.Paper.add(r.dom.elGraphical),r.dom.elGraphical.add(r.dom.elDefs)}},{key:"plotChartType",value:function(e,r){var n=this.w,o=this.ctx,a=n.config,f=n.globals,p={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},bar:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},m=a.chart.type||"line",v=null,y=0;f.series.forEach(function(U,H){var V,W,G=((V=e[H])===null||V===void 0?void 0:V.type)==="column"?"bar":((W=e[H])===null||W===void 0?void 0:W.type)||(m==="column"?"bar":m);p[G]?(G==="rangeArea"?(p[G].series.push(f.seriesRangeStart[H]),p[G].seriesRangeEnd.push(f.seriesRangeEnd[H])):p[G].series.push(U),p[G].i.push(H),G==="bar"&&(n.globals.columnSeries=p.bar)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(G)?v=G:console.warn("You have specified an unrecognized series type (".concat(G,").")),m!==G&&G!=="scatter"&&y++}),y>0&&(v&&console.warn("Chart or series type ".concat(v," cannot appear with other chart or series types.")),p.bar.series.length>0&&a.plotOptions.bar.horizontal&&(y-=p.bar.series.length,p.bar={series:[],i:[]},n.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"))),f.comboCharts||(f.comboCharts=y>0);var x=new vE(o,r),k=new gE(o,r);o.pie=new bX(o);var S=new J_e(o);o.rangeBar=new Q_e(o,r);var O=new K_e(o),C=[];if(f.comboCharts){var R,E,P=new Hr(o);if(p.area.series.length>0&&(R=C).push.apply(R,ln(P.drawSeriesByGroup(p.area,f.areaGroups,"area",x))),p.bar.series.length>0)if(a.chart.stacked){var M=new uB(o,r);C.push(M.draw(p.bar.series,p.bar.i))}else o.bar=new Kf(o,r),C.push(o.bar.draw(p.bar.series,p.bar.i));if(p.rangeArea.series.length>0&&C.push(x.draw(p.rangeArea.series,"rangeArea",p.rangeArea.i,p.rangeArea.seriesRangeEnd)),p.line.series.length>0&&(E=C).push.apply(E,ln(P.drawSeriesByGroup(p.line,f.lineGroups,"line",x))),p.candlestick.series.length>0&&C.push(k.draw(p.candlestick.series,"candlestick",p.candlestick.i)),p.boxPlot.series.length>0&&C.push(k.draw(p.boxPlot.series,"boxPlot",p.boxPlot.i)),p.rangeBar.series.length>0&&C.push(o.rangeBar.draw(p.rangeBar.series,p.rangeBar.i)),p.scatter.series.length>0){var I=new vE(o,r,!0);C.push(I.draw(p.scatter.series,"scatter",p.scatter.i))}if(p.bubble.series.length>0){var B=new vE(o,r,!0);C.push(B.draw(p.bubble.series,"bubble",p.bubble.i))}}else switch(a.chart.type){case"line":C=x.draw(f.series,"line");break;case"area":C=x.draw(f.series,"area");break;case"bar":a.chart.stacked?C=new uB(o,r).draw(f.series):(o.bar=new Kf(o,r),C=o.bar.draw(f.series));break;case"candlestick":C=new gE(o,r).draw(f.series,"candlestick");break;case"boxPlot":C=new gE(o,r).draw(f.series,a.chart.type);break;case"rangeBar":C=o.rangeBar.draw(f.series);break;case"rangeArea":C=x.draw(f.seriesRangeStart,"rangeArea",void 0,f.seriesRangeEnd);break;case"heatmap":C=new Z_e(o,r).draw(f.series);break;case"treemap":C=new oke(o,r).draw(f.series);break;case"pie":case"donut":case"polarArea":C=o.pie.draw(f.series);break;case"radialBar":C=S.draw(f.series);break;case"radar":C=O.draw(f.series);break;default:C=x.draw(f.series)}return C}},{key:"setSVGDimensions",value:function(){var e=this.w,r=e.globals,n=e.config;n.chart.width=n.chart.width||"100%",n.chart.height=n.chart.height||"auto",r.svgWidth=n.chart.width,r.svgHeight=n.chart.height;var o=se.getDimensions(this.el),a=n.chart.width.toString().split(/[0-9]+/g).pop();a==="%"?se.isNumber(o[0])&&(o[0].width===0&&(o=se.getDimensions(this.el.parentNode)),r.svgWidth=o[0]*parseInt(n.chart.width,10)/100):a!=="px"&&a!==""||(r.svgWidth=parseInt(n.chart.width,10));var f=String(n.chart.height).toString().split(/[0-9]+/g).pop();if(r.svgHeight!=="auto"&&r.svgHeight!=="")if(f==="%"){var p=se.getDimensions(this.el.parentNode);r.svgHeight=p[1]*parseInt(n.chart.height,10)/100}else r.svgHeight=parseInt(n.chart.height,10);else r.svgHeight=r.axisCharts?r.svgWidth/1.61:r.svgWidth/1.2;if(r.svgWidth=Math.max(r.svgWidth,0),r.svgHeight=Math.max(r.svgHeight,0),xe.setAttrs(r.dom.Paper.node,{width:r.svgWidth,height:r.svgHeight}),f!=="%"){var m=n.chart.sparkline.enabled?0:r.axisCharts?n.chart.parentHeightOffset:0;r.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(r.svgHeight+m,"px")}r.dom.elWrap.style.width="".concat(r.svgWidth,"px"),r.dom.elWrap.style.height="".concat(r.svgHeight,"px")}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,r=e.translateY,n=e.translateX;xe.setAttrs(e.dom.elGraphical.node,{transform:"translate(".concat(n,", ").concat(r,")")})}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,r=e.globals,n=0,o=e.config.chart.sparkline.enabled?1:15;o+=e.config.grid.padding.bottom,["top","bottom"].includes(e.config.legend.position)&&e.config.legend.show&&!e.config.legend.floating&&(n=new fX(this.ctx).legendHelpers.getLegendDimensions().clwh+7);var a=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),f=2.05*e.globals.radialSize;if(a&&!e.config.chart.sparkline.enabled&&e.config.plotOptions.radialBar.startAngle!==0){var p=se.getBoundingClientRect(a);f=p.bottom;var m=p.bottom-p.top;f=Math.max(2.05*e.globals.radialSize,m)}var v=Math.ceil(f+r.translateY+n+o);r.dom.elLegendForeign&&r.dom.elLegendForeign.setAttribute("height",v),e.config.chart.height&&String(e.config.chart.height).includes("%")||(r.dom.elWrap.style.height="".concat(v,"px"),xe.setAttrs(r.dom.Paper.node,{height:v}),r.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(v,"px"))}},{key:"coreCalculations",value:function(){new RR(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,r=function(){return e.w.config.series.map(function(){return[]})},n=new sX,o=this.w.globals,a={dataWasParsed:o.dataWasParsed,originalSeries:o.originalSeries};n.initGlobalVars(o),o.seriesXvalues=r(),o.seriesYvalues=r(),a.dataWasParsed&&(o.dataWasParsed=a.dataWasParsed,o.originalSeries=a.originalSeries)}},{key:"isMultipleY",value:function(){return!!(Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1)&&(this.w.globals.isMultipleYAxis=!0,!0)}},{key:"xySettings",value:function(){var e=this.w,r=null;if(e.globals.axisCharts){if(e.config.xaxis.crosshairs.position==="back"&&new PR(this.ctx).drawXCrosshairs(),e.config.yaxis[0].crosshairs.position==="back"&&new PR(this.ctx).drawYCrosshairs(),e.config.xaxis.type==="datetime"&&e.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new ake(this.ctx);var n=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?n=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(n=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(n)}r=new Hr(this.ctx).getCalculatedRatios()}return r}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,r=this.ctx,n=this.w;if(n.config.chart.brush.enabled&&typeof n.config.chart.events.selection!="function"){var o=Array.isArray(n.config.chart.brush.targets)?n.config.chart.brush.targets:[n.config.chart.brush.target];o.forEach(function(a){var f=r.constructor.getChartByID(a);f.w.globals.brushSource=e.ctx,typeof f.w.config.chart.events.zoomed!="function"&&(f.w.config.chart.events.zoomed=function(){return e.updateSourceChart(f)}),typeof f.w.config.chart.events.scrolled!="function"&&(f.w.config.chart.events.scrolled=function(){return e.updateSourceChart(f)})}),n.config.chart.events.selection=function(a,f){o.forEach(function(p){r.constructor.getChartByID(p).ctx.updateHelpers._updateOptions({xaxis:{min:f.xaxis.min,max:f.xaxis.max}},!1,!1,!1,!1)})}}}}]),t}(),lke=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"_updateOptions",value:function(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],o=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],f=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(p){var m=[r.ctx];a&&(m=r.ctx.getSyncedCharts()),r.ctx.w.globals.isExecCalled&&(m=[r.ctx],r.ctx.w.globals.isExecCalled=!1),m.forEach(function(v,y){var x=v.w;if(x.globals.shouldAnimate=o,n||(x.globals.resized=!0,x.globals.dataChanged=!0,o&&v.series.getPreviousPaths()),e&&to(e)==="object"&&(v.config=new xv(e),e=Hr.extendArrayProps(v.config,e,x),v.w.globals.chartID!==r.ctx.w.globals.chartID&&delete e.series,x.config=se.extend(x.config,e),f&&(x.globals.lastXAxis=e.xaxis?se.clone(e.xaxis):[],x.globals.lastYAxis=e.yaxis?se.clone(e.yaxis):[],x.globals.initialConfig=se.extend({},x.config),x.globals.initialSeries=se.clone(x.config.series),e.series))){for(var k=0;k<x.globals.collapsedSeriesIndices.length;k++){var S=x.config.series[x.globals.collapsedSeriesIndices[k]];x.globals.collapsedSeries[k].data=x.globals.axisCharts?S.data.slice():S}for(var O=0;O<x.globals.ancillaryCollapsedSeriesIndices.length;O++){var C=x.config.series[x.globals.ancillaryCollapsedSeriesIndices[O]];x.globals.ancillaryCollapsedSeries[O].data=x.globals.axisCharts?C.data.slice():C}v.series.emptyCollapsedSeries(x.config.series)}return v.update(e).then(function(){y===m.length-1&&p(v)})})})}},{key:"_updateSeries",value:function(e,r){var n=this,o=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(a){var f=n.w;return f.globals.shouldAnimate=r,f.globals.dataChanged=!0,r&&n.ctx.series.getPreviousPaths(),n.ctx.data.resetParsingFlags(),n.ctx.data.parseData(e),o&&(f.globals.initialConfig.series=se.clone(f.config.series),f.globals.initialSeries=se.clone(f.config.series)),n.ctx.update().then(function(){a(n.ctx)})})}},{key:"_extendSeries",value:function(e,r){var n=this.w,o=n.config.series[r];return Oe(Oe({},n.config.series[r]),{},{name:e.name?e.name:o==null?void 0:o.name,color:e.color?e.color:o==null?void 0:o.color,type:e.type?e.type:o==null?void 0:o.type,group:e.group?e.group:o==null?void 0:o.group,hidden:e.hidden!==void 0?e.hidden:o==null?void 0:o.hidden,data:e.data?e.data:o==null?void 0:o.data,zIndex:e.zIndex!==void 0?e.zIndex:r})}},{key:"toggleDataPointSelection",value:function(e,r){var n=this.w,o=null,a=".apexcharts-series[data\\:realIndex='".concat(e,"']");return n.globals.axisCharts?o=n.globals.dom.Paper.findOne("".concat(a," path[j='").concat(r,"'], ").concat(a," circle[j='").concat(r,"'], ").concat(a," rect[j='").concat(r,"']")):r===void 0&&(o=n.globals.dom.Paper.findOne("".concat(a," path[j='").concat(e,"']")),n.config.chart.type!=="pie"&&n.config.chart.type!=="polarArea"&&n.config.chart.type!=="donut"||this.ctx.pie.pieClicked(e)),o?(new xe(this.ctx).pathMouseDown(o,null),o.node?o.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var r=this.w;if(["min","max"].forEach(function(o){e.xaxis[o]!==void 0&&(r.config.xaxis[o]=e.xaxis[o],r.globals.lastXAxis[o]=e.xaxis[o])}),e.xaxis.categories&&e.xaxis.categories.length&&(r.config.xaxis.categories=e.xaxis.categories),r.config.xaxis.convertedCatToNumeric){var n=new yv(e);e=n.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&e.chart.stackType==="100%"&&(Array.isArray(e.yaxis)?e.yaxis.forEach(function(r,n){e.yaxis[n].min=0,e.yaxis[n].max=100}):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var r=this,n=this.w,o=n.globals.lastXAxis,a=n.globals.lastYAxis;e&&e.xaxis&&(o=e.xaxis),e&&e.yaxis&&(a=e.yaxis),n.config.xaxis.min=o.min,n.config.xaxis.max=o.max;var f=function(p){a[p]!==void 0&&(n.config.yaxis[p].min=a[p].min,n.config.yaxis[p].max=a[p].max)};n.config.yaxis.map(function(p,m){n.globals.zoomed||a[m]!==void 0?f(m):r.ctx.opts.yaxis[m]!==void 0&&(p.min=r.ctx.opts.yaxis[m].min,p.max=r.ctx.opts.yaxis[m].max)})}}]),t}();(function(){function t(){for(var a=arguments.length>0&&arguments[0]!==x?arguments[0]:[],f=arguments.length>1?arguments[1]:x,p=arguments.length>2?arguments[2]:x,m=arguments.length>3?arguments[3]:x,v=arguments.length>4?arguments[4]:x,y=arguments.length>5?arguments[5]:x,x=arguments.length>6?arguments[6]:x,k=a.slice(f,p||x),S=m.slice(v,y||x),O=0,C={pos:[0,0],start:[0,0]},R={pos:[0,0],start:[0,0]};k[O]=e.call(C,k[O]),S[O]=e.call(R,S[O]),k[O][0]!=S[O][0]||k[O][0]=="M"||k[O][0]=="A"&&(k[O][4]!=S[O][4]||k[O][5]!=S[O][5])?(Array.prototype.splice.apply(k,[O,1].concat(n.call(C,k[O]))),Array.prototype.splice.apply(S,[O,1].concat(n.call(R,S[O])))):(k[O]=r.call(C,k[O]),S[O]=r.call(R,S[O])),!(++O==k.length&&O==S.length);)O==k.length&&k.push(["C",C.pos[0],C.pos[1],C.pos[0],C.pos[1],C.pos[0],C.pos[1]]),O==S.length&&S.push(["C",R.pos[0],R.pos[1],R.pos[0],R.pos[1],R.pos[0],R.pos[1]]);return{start:k,dest:S}}function e(a){switch(a[0]){case"z":case"Z":a[0]="L",a[1]=this.start[0],a[2]=this.start[1];break;case"H":a[0]="L",a[2]=this.pos[1];break;case"V":a[0]="L",a[2]=a[1],a[1]=this.pos[0];break;case"T":a[0]="Q",a[3]=a[1],a[4]=a[2],a[1]=this.reflection[1],a[2]=this.reflection[0];break;case"S":a[0]="C",a[6]=a[4],a[5]=a[3],a[4]=a[2],a[3]=a[1],a[2]=this.reflection[1],a[1]=this.reflection[0]}return a}function r(a){var f=a.length;return this.pos=[a[f-2],a[f-1]],"SCQT".indexOf(a[0])!=-1&&(this.reflection=[2*this.pos[0]-a[f-4],2*this.pos[1]-a[f-3]]),a}function n(a){var f=[a];switch(a[0]){case"M":return this.pos=this.start=[a[1],a[2]],f;case"L":a[5]=a[3]=a[1],a[6]=a[4]=a[2],a[1]=this.pos[0],a[2]=this.pos[1];break;case"Q":a[6]=a[4],a[5]=a[3],a[4]=1*a[4]/3+2*a[2]/3,a[3]=1*a[3]/3+2*a[1]/3,a[2]=1*this.pos[1]/3+2*a[2]/3,a[1]=1*this.pos[0]/3+2*a[1]/3;break;case"A":f=function(p,m){var v,y,x,k,S,O,C,R,E,P,M,I,B,U,H,V,W,G,Z,K,Q,oe,ie,re,ne,te,ue=Math.abs(m[1]),pe=Math.abs(m[2]),ke=m[3]%360,ze=m[4],Re=m[5],Ae=m[6],tt=m[7],Ue=new Vt(p),Te=new Vt(Ae,tt),Xe=[];if(ue===0||pe===0||Ue.x===Te.x&&Ue.y===Te.y)return[["C",Ue.x,Ue.y,Te.x,Te.y,Te.x,Te.y]];for(v=new Vt((Ue.x-Te.x)/2,(Ue.y-Te.y)/2).transform(new Ze().rotate(ke)),y=v.x*v.x/(ue*ue)+v.y*v.y/(pe*pe),y>1&&(ue*=y=Math.sqrt(y),pe*=y),x=new Ze().rotate(ke).scale(1/ue,1/pe).rotate(-ke),Ue=Ue.transform(x),Te=Te.transform(x),k=[Te.x-Ue.x,Te.y-Ue.y],O=k[0]*k[0]+k[1]*k[1],S=Math.sqrt(O),k[0]/=S,k[1]/=S,C=O<4?Math.sqrt(1-O/4):0,ze===Re&&(C*=-1),R=new Vt((Te.x+Ue.x)/2+C*-k[1],(Te.y+Ue.y)/2+C*k[0]),E=new Vt(Ue.x-R.x,Ue.y-R.y),P=new Vt(Te.x-R.x,Te.y-R.y),M=Math.acos(E.x/Math.sqrt(E.x*E.x+E.y*E.y)),E.y<0&&(M*=-1),I=Math.acos(P.x/Math.sqrt(P.x*P.x+P.y*P.y)),P.y<0&&(I*=-1),Re&&M>I&&(I+=2*Math.PI),!Re&&M<I&&(I-=2*Math.PI),U=Math.ceil(2*Math.abs(M-I)/Math.PI),V=[],W=M,B=(I-M)/U,H=4*Math.tan(B/4)/3,Q=0;Q<=U;Q++)Z=Math.cos(W),G=Math.sin(W),K=new Vt(R.x+Z,R.y+G),V[Q]=[new Vt(K.x+H*G,K.y-H*Z),K,new Vt(K.x-H*G,K.y+H*Z)],W+=B;for(V[0][0]=V[0][1].clone(),V[V.length-1][2]=V[V.length-1][1].clone(),x=new Ze().rotate(ke).scale(ue,pe).rotate(-ke),Q=0,oe=V.length;Q<oe;Q++)V[Q][0]=V[Q][0].transform(x),V[Q][1]=V[Q][1].transform(x),V[Q][2]=V[Q][2].transform(x);for(Q=1,oe=V.length;Q<oe;Q++)ie=(K=V[Q-1][2]).x,re=K.y,ne=(K=V[Q][0]).x,te=K.y,Ae=(K=V[Q][1]).x,tt=K.y,Xe.push(["C",ie,re,ne,te,Ae,tt]);return Xe}(this.pos,a),a=f[0]}return a[0]="C",this.pos=[a[5],a[6]],this.reflection=[2*a[5]-a[3],2*a[6]-a[4]],f}function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1?arguments[1]:void 0;if(f===!1)return!1;for(var p=f,m=a.length;p<m;++p)if(a[p][0]=="M")return p;return!1}nt(Ki,{morph:function(a,f,p,m,v){for(var y=this.parse(a),x=this.parse(f),k=0,S=0,O=!1,C=!1;k!==!1||S!==!1;){var R;O=o(y,k!==!1&&k+1),C=o(x,S!==!1&&S+1),k===!1&&(k=(R=new Ki(E.start).bbox()).height==0||R.width==0?y.push(y[0])-1:y.push(["M",R.x+R.width/2,R.y+R.height/2])-1),S===!1&&(S=(R=new Ki(E.dest).bbox()).height==0||R.width==0?x.push(x[0])-1:x.push(["M",R.x+R.width/2,R.y+R.height/2])-1);var E=t(y,k,O,x,S,C);y=y.slice(0,k).concat(E.start,O===!1?[]:y.slice(O)),x=x.slice(0,S).concat(E.dest,C===!1?[]:x.slice(C)),k=O!==!1&&k+E.start.length,S=C!==!1&&S+E.dest.length}this._array=y,this.destination=new Ki,this.destination._array=x;var P=this.fromArray(y.map(function(M,I){var B=x[I].map(function(U,H){return H===0?U:m.step(M[H],x[I][H],p,v[I],v)});return B}));return P}})})();const dB=t=>(t.changedTouches&&(t=t.changedTouches[0]),{x:t.clientX,y:t.clientY});class cke{constructor(e){e.remember("_draggable",this),this.el=e,this.drag=this.drag.bind(this),this.startDrag=this.startDrag.bind(this),this.endDrag=this.endDrag.bind(this)}init(e){e?(this.el.on("mousedown.drag",this.startDrag),this.el.on("touchstart.drag",this.startDrag,{passive:!1})):(this.el.off("mousedown.drag"),this.el.off("touchstart.drag"))}startDrag(e){const r=!e.type.indexOf("mouse");if(r&&e.which!==1&&e.buttons!==0||this.el.dispatch("beforedrag",{event:e,handler:this}).defaultPrevented)return;e.preventDefault(),e.stopPropagation(),this.init(!1),this.box=this.el.bbox(),this.lastClick=this.el.point(dB(e));const n=(r?"mouseup":"touchend")+".drag";Ss(window,(r?"mousemove":"touchmove")+".drag",this.drag,this,{passive:!1}),Ss(window,n,this.endDrag,this,{passive:!1}),this.el.fire("dragstart",{event:e,handler:this,box:this.box})}drag(e){const{box:r,lastClick:n}=this,o=this.el.point(dB(e)),a=o.x-n.x,f=o.y-n.y;if(!a&&!f)return r;const p=r.x+a,m=r.y+f;this.box=new Br(p,m,r.w,r.h),this.lastClick=o,this.el.dispatch("dragmove",{event:e,handler:this,box:this.box}).defaultPrevented||this.move(p,m)}move(e,r){this.el.type==="svg"?Fl.prototype.move.call(this.el,e,r):this.el.move(e,r)}endDrag(e){this.drag(e),this.el.fire("dragend",{event:e,handler:this,box:this.box}),ji(window,"mousemove.drag"),ji(window,"touchmove.drag"),ji(window,"mouseup.drag"),ji(window,"touchend.drag"),this.init(!0)}}/*!
* @svgdotjs/svg.select.js - An extension of svg.js which allows to select elements with mouse
* @version 4.0.1
* https://github.com/svgdotjs/svg.select.js
*
* @copyright Ulrich-Matthias Schäfer
* @license MIT
*
* BUILT: Mon Jul 01 2024 15:04:42 GMT+0200 (Central European Summer Time)
*/function zR(t,e,r,n=null){return function(o){o.preventDefault(),o.stopPropagation();var a=o.pageX||o.touches[0].pageX,f=o.pageY||o.touches[0].pageY;e.fire(t,{x:a,y:f,event:o,index:n,points:r})}}function MR([t,e],{a:r,b:n,c:o,d:a,e:f,f:p}){return[t*r+e*o+f,t*n+e*a+p]}nt(In,{draggable(t=!0){return(this.remember("_draggable")||new cke(this)).init(t),this}});let xX=class{constructor(t){this.el=t,t.remember("_selectHandler",this),this.selection=new Fl,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const e=mb();this.observer=new e.MutationObserver(this.mutationHandler)}init(t){this.createHandle=t.createHandle||this.createHandleFn,this.createRot=t.createRot||this.createRotFn,this.updateHandle=t.updateHandle||this.updateHandleFn,this.updateRot=t.updateRot||this.updateRotFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createResizeHandles(),this.updateResizeHandles(),this.createRotationHandle(),this.updateRotationHandle(),this.observer.observe(this.el.node,{attributes:!0})}active(t,e){if(!t)return this.selection.clear().remove(),void this.observer.disconnect();this.init(e)}createSelection(){this.selection.polygon(this.handlePoints).addClass("svg_select_shape")}updateSelection(){this.selection.get(0).plot(this.handlePoints)}createResizeHandles(){this.handlePoints.forEach((t,e,r)=>{const n=this.order[e];this.createHandle.call(this,this.selection,t,e,r,n),this.selection.get(e+1).addClass("svg_select_handle svg_select_handle_"+n).on("mousedown.selection touchstart.selection",zR(n,this.el,this.handlePoints,e))})}createHandleFn(t){t.polyline()}updateHandleFn(t,e,r,n){const o=n.at(r-1),a=n[(r+1)%n.length],f=e,p=[f[0]-o[0],f[1]-o[1]],m=[f[0]-a[0],f[1]-a[1]],v=Math.sqrt(p[0]*p[0]+p[1]*p[1]),y=Math.sqrt(m[0]*m[0]+m[1]*m[1]),x=[p[0]/v,p[1]/v],k=[m[0]/y,m[1]/y],S=[f[0]-10*x[0],f[1]-10*x[1]],O=[f[0]-10*k[0],f[1]-10*k[1]];t.plot([S,f,O])}updateResizeHandles(){this.handlePoints.forEach((t,e,r)=>{const n=this.order[e];this.updateHandle.call(this,this.selection.get(e+1),t,e,r,n)})}createRotFn(t){t.line(),t.circle(5)}getPoint(t){return this.handlePoints[this.order.indexOf(t)]}getPointHandle(t){return this.selection.get(this.order.indexOf(t)+1)}updateRotFn(t,e){const r=this.getPoint("t");t.get(0).plot(r[0],r[1],e[0],e[1]),t.get(1).center(e[0],e[1])}createRotationHandle(){const t=this.selection.group().addClass("svg_select_handle_rot").on("mousedown.selection touchstart.selection",zR("rot",this.el,this.handlePoints));this.createRot.call(this,t)}updateRotationHandle(){const t=this.selection.findOne("g.svg_select_handle_rot");this.updateRot(t,this.rotationPoint,this.handlePoints)}updatePoints(){const t=this.el.bbox(),e=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.handlePoints=this.getHandlePoints(t).map(r=>MR(r,e)),this.rotationPoint=MR(this.getRotationPoint(t),e)}getHandlePoints({x:t,x2:e,y:r,y2:n,cx:o,cy:a}=this.el.bbox()){return[[t,r],[o,r],[e,r],[e,a],[e,n],[o,n],[t,n],[t,a]]}getRotationPoint({y:t,cx:e}=this.el.bbox()){return[e,t-20]}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updateResizeHandles(),this.updateRotationHandle()}};const fB=t=>function(e=!0,r={}){typeof e=="object"&&(r=e,e=!0);let n=this.remember("_"+t.name);return n||(e.prototype instanceof xX?(n=new e(this),e=!0):n=new t(this),this.remember("_"+t.name,n)),n.active(e,r),this};/*!
* @svgdotjs/svg.resize.js - An extension for svg.js which allows to resize elements which are selected
* @version 2.0.4
* https://github.com/svgdotjs/svg.resize.js
*
* @copyright [object Object]
* @license MIT
*
* BUILT: Fri Sep 13 2024 12:43:14 GMT+0200 (Central European Summer Time)
*//*!
* @svgdotjs/svg.select.js - An extension of svg.js which allows to select elements with mouse
* @version 4.0.1
* https://github.com/svgdotjs/svg.select.js
*
* @copyright Ulrich-Matthias Schäfer
* @license MIT
*
* BUILT: Mon Jul 01 2024 15:04:42 GMT+0200 (Central European Summer Time)
*/function IR(t,e,r,n=null){return function(o){o.preventDefault(),o.stopPropagation();var a=o.pageX||o.touches[0].pageX,f=o.pageY||o.touches[0].pageY;e.fire(t,{x:a,y:f,event:o,index:n,points:r})}}function LR([t,e],{a:r,b:n,c:o,d:a,e:f,f:p}){return[t*r+e*o+f,t*n+e*a+p]}nt(In,{select:fB(xX)}),nt([Uc,Vc,Hc],{pointSelect:fB(class{constructor(t){this.el=t,t.remember("_pointSelectHandler",this),this.selection=new Fl,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const e=mb();this.observer=new e.MutationObserver(this.mutationHandler)}init(t){this.createHandle=t.createHandle||this.createHandleFn,this.updateHandle=t.updateHandle||this.updateHandleFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createPointHandles(),this.updatePointHandles(),this.observer.observe(this.el.node,{attributes:!0})}active(t,e){if(!t)return this.selection.clear().remove(),void this.observer.disconnect();this.init(e)}createSelection(){this.selection.polygon(this.points).addClass("svg_select_shape_pointSelect")}updateSelection(){this.selection.get(0).plot(this.points)}createPointHandles(){this.points.forEach((t,e,r)=>{this.createHandle.call(this,this.selection,t,e,r),this.selection.get(e+1).addClass("svg_select_handle_point").on("mousedown.selection touchstart.selection",zR("point",this.el,this.points,e))})}createHandleFn(t){t.circle(5)}updateHandleFn(t,e){t.center(e[0],e[1])}updatePointHandles(){this.points.forEach((t,e,r)=>{this.updateHandle.call(this,this.selection.get(e+1),t,e,r)})}updatePoints(){const t=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.points=this.el.array().map(e=>MR(e,t))}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updatePointHandles()}})});class wX{constructor(e){this.el=e,e.remember("_selectHandler",this),this.selection=new Fl,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const r=mb();this.observer=new r.MutationObserver(this.mutationHandler)}init(e){this.createHandle=e.createHandle||this.createHandleFn,this.createRot=e.createRot||this.createRotFn,this.updateHandle=e.updateHandle||this.updateHandleFn,this.updateRot=e.updateRot||this.updateRotFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createResizeHandles(),this.updateResizeHandles(),this.createRotationHandle(),this.updateRotationHandle(),this.observer.observe(this.el.node,{attributes:!0})}active(e,r){if(!e)return this.selection.clear().remove(),void this.observer.disconnect();this.init(r)}createSelection(){this.selection.polygon(this.handlePoints).addClass("svg_select_shape")}updateSelection(){this.selection.get(0).plot(this.handlePoints)}createResizeHandles(){this.handlePoints.forEach((e,r,n)=>{const o=this.order[r];this.createHandle.call(this,this.selection,e,r,n,o),this.selection.get(r+1).addClass("svg_select_handle svg_select_handle_"+o).on("mousedown.selection touchstart.selection",IR(o,this.el,this.handlePoints,r))})}createHandleFn(e){e.polyline()}updateHandleFn(e,r,n,o){const a=o.at(n-1),f=o[(n+1)%o.length],p=r,m=[p[0]-a[0],p[1]-a[1]],v=[p[0]-f[0],p[1]-f[1]],y=Math.sqrt(m[0]*m[0]+m[1]*m[1]),x=Math.sqrt(v[0]*v[0]+v[1]*v[1]),k=[m[0]/y,m[1]/y],S=[v[0]/x,v[1]/x],O=[p[0]-10*k[0],p[1]-10*k[1]],C=[p[0]-10*S[0],p[1]-10*S[1]];e.plot([O,p,C])}updateResizeHandles(){this.handlePoints.forEach((e,r,n)=>{const o=this.order[r];this.updateHandle.call(this,this.selection.get(r+1),e,r,n,o)})}createRotFn(e){e.line(),e.circle(5)}getPoint(e){return this.handlePoints[this.order.indexOf(e)]}getPointHandle(e){return this.selection.get(this.order.indexOf(e)+1)}updateRotFn(e,r){const n=this.getPoint("t");e.get(0).plot(n[0],n[1],r[0],r[1]),e.get(1).center(r[0],r[1])}createRotationHandle(){const e=this.selection.group().addClass("svg_select_handle_rot").on("mousedown.selection touchstart.selection",IR("rot",this.el,this.handlePoints));this.createRot.call(this,e)}updateRotationHandle(){const e=this.selection.findOne("g.svg_select_handle_rot");this.updateRot(e,this.rotationPoint,this.handlePoints)}updatePoints(){const e=this.el.bbox(),r=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.handlePoints=this.getHandlePoints(e).map(n=>LR(n,r)),this.rotationPoint=LR(this.getRotationPoint(e),r)}getHandlePoints({x:e,x2:r,y:n,y2:o,cx:a,cy:f}=this.el.bbox()){return[[e,n],[a,n],[r,n],[r,f],[r,o],[a,o],[e,o],[e,f]]}getRotationPoint({y:e,cx:r}=this.el.bbox()){return[r,e-20]}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updateResizeHandles(),this.updateRotationHandle()}}const hB=t=>function(e=!0,r={}){typeof e=="object"&&(r=e,e=!0);let n=this.remember("_"+t.name);return n||(e.prototype instanceof wX?(n=new e(this),e=!0):n=new t(this),this.remember("_"+t.name,n)),n.active(e,r),this};nt(In,{select:hB(wX)}),nt([Uc,Vc,Hc],{pointSelect:hB(class{constructor(t){this.el=t,t.remember("_pointSelectHandler",this),this.selection=new Fl,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const e=mb();this.observer=new e.MutationObserver(this.mutationHandler)}init(t){this.createHandle=t.createHandle||this.createHandleFn,this.updateHandle=t.updateHandle||this.updateHandleFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createPointHandles(),this.updatePointHandles(),this.observer.observe(this.el.node,{attributes:!0})}active(t,e){if(!t)return this.selection.clear().remove(),void this.observer.disconnect();this.init(e)}createSelection(){this.selection.polygon(this.points).addClass("svg_select_shape_pointSelect")}updateSelection(){this.selection.get(0).plot(this.points)}createPointHandles(){this.points.forEach((t,e,r)=>{this.createHandle.call(this,this.selection,t,e,r),this.selection.get(e+1).addClass("svg_select_handle_point").on("mousedown.selection touchstart.selection",IR("point",this.el,this.points,e))})}createHandleFn(t){t.circle(5)}updateHandleFn(t,e){t.center(e[0],e[1])}updatePointHandles(){this.points.forEach((t,e,r)=>{this.updateHandle.call(this,this.selection.get(e+1),t,e,r)})}updatePoints(){const t=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.points=this.el.array().map(e=>LR(e,t))}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updatePointHandles()}})});const H0=t=>(t.changedTouches&&(t=t.changedTouches[0]),{x:t.clientX,y:t.clientY}),pB=t=>{let e=1/0,r=1/0,n=-1/0,o=-1/0;for(let a=0;a<t.length;a++){const f=t[a];e=Math.min(e,f[0]),r=Math.min(r,f[1]),n=Math.max(n,f[0]),o=Math.max(o,f[1])}return new Br(e,r,n-e,o-r)};class gB{constructor(e){this.el=e,e.remember("_ResizeHandler",this),this.lastCoordinates=null,this.eventType="",this.lastEvent=null,this.handleResize=this.handleResize.bind(this),this.resize=this.resize.bind(this),this.endResize=this.endResize.bind(this),this.rotate=this.rotate.bind(this),this.movePoint=this.movePoint.bind(this)}active(e,r){this.preserveAspectRatio=r.preserveAspectRatio??!1,this.aroundCenter=r.aroundCenter??!1,this.grid=r.grid??0,this.degree=r.degree??0,this.el.off(".resize"),e&&(this.el.on(["lt.resize","rt.resize","rb.resize","lb.resize","t.resize","r.resize","b.resize","l.resize","rot.resize","point.resize"],this.handleResize),this.lastEvent&&(this.eventType==="rot"?this.rotate(this.lastEvent):this.eventType==="point"?this.movePoint(this.lastEvent):this.resize(this.lastEvent)))}handleResize(e){this.eventType=e.type;const{event:r,index:n,points:o}=e.detail,a=!r.type.indexOf("mouse");if(a&&(r.which||r.buttons)!==1||this.el.dispatch("beforeresize",{event:e,handler:this}).defaultPrevented)return;this.box=this.el.bbox(),this.startPoint=this.el.point(H0(r)),this.index=n,this.points=o.slice();const f=(a?"mousemove":"touchmove")+".resize",p=(a?"mouseup":"touchcancel.resize touchend")+".resize";e.type==="point"?Ss(window,f,this.movePoint):e.type==="rot"?Ss(window,f,this.rotate):Ss(window,f,this.resize),Ss(window,p,this.endResize)}resize(e){this.lastEvent=e;const r=this.snapToGrid(this.el.point(H0(e)));let n=r.x-this.startPoint.x,o=r.y-this.startPoint.y;this.preserveAspectRatio&&this.aroundCenter&&(n*=2,o*=2);const a=this.box.x+n,f=this.box.y+o,p=this.box.x2+n,m=this.box.y2+o;let v=new Br(this.box);if(this.eventType.includes("l")&&(v.x=Math.min(a,this.box.x2),v.x2=Math.max(a,this.box.x2)),this.eventType.includes("r")&&(v.x=Math.min(p,this.box.x),v.x2=Math.max(p,this.box.x)),this.eventType.includes("t")&&(v.y=Math.min(f,this.box.y2),v.y2=Math.max(f,this.box.y2)),this.eventType.includes("b")&&(v.y=Math.min(m,this.box.y),v.y2=Math.max(m,this.box.y)),v.width=v.x2-v.x,v.height=v.y2-v.y,this.preserveAspectRatio){const y=v.width/this.box.width,x=v.height/this.box.height,k=["lt","t","rt","r","rb","b","lb","l"],S=(k.indexOf(this.eventType)+4)%k.length,O=this.aroundCenter?[this.box.cx,this.box.cy]:this.points[S];let C=this.eventType.includes("t")||this.eventType.includes("b")?x:y;C=this.eventType.length===2?Math.max(y,x):C,v=function(R,E,P){const M=[[R.x,R.y],[R.x+R.width,R.y],[R.x+R.width,R.y+R.height],[R.x,R.y+R.height]].map(([I,B])=>{const U=I-E[0],H=(B-E[1])*P;return[U*P+E[0],H+E[1]]});return pB(M)}(this.box,O,C)}this.el.dispatch("resize",{box:new Br(v),angle:0,eventType:this.eventType,event:e,handler:this}).defaultPrevented||this.el.size(v.width,v.height).move(v.x,v.y)}movePoint(e){this.lastEvent=e;const{x:r,y:n}=this.snapToGrid(this.el.point(H0(e))),o=this.el.array().slice();o[this.index]=[r,n],this.el.dispatch("resize",{box:pB(o),angle:0,eventType:this.eventType,event:e,handler:this}).defaultPrevented||this.el.plot(o)}rotate(e){this.lastEvent=e;const r=this.startPoint,n=this.el.point(H0(e)),{cx:o,cy:a}=this.box,f=r.x-o,p=r.y-a,m=n.x-o,v=n.y-a,y=Math.sqrt(f*f+p*p)*Math.sqrt(m*m+v*v);if(y===0)return;let x=Math.acos((f*m+p*v)/y)/Math.PI*180;if(!x)return;n.x<r.x&&(x=-x);const k=new Ze(this.el),{x:S,y:O}=new Vt(o,a).transformO(k),{rotate:C}=k.decompose(),R=this.snapToAngle(C+x)-C;this.el.dispatch("resize",{box:this.box,angle:R,eventType:this.eventType,event:e,handler:this}).defaultPrevented||this.el.transform(k.rotateO(R,S,O))}endResize(e){this.eventType!=="rot"&&this.eventType!=="point"&&this.resize(e),this.lastEvent=null,this.eventType="",ji(window,"mousemove.resize touchmove.resize"),ji(window,"mouseup.resize touchend.resize")}snapToGrid(e){return this.grid&&(e.x=Math.round(e.x/this.grid)*this.grid,e.y=Math.round(e.y/this.grid)*this.grid),e}snapToAngle(e){return this.degree&&(e=Math.round(e/this.degree)*this.degree),e}}nt(In,{resize:function(t=!0,e={}){typeof t=="object"&&(e=t,t=!0);let r=this.remember("_ResizeHandler");return r||(t.prototype instanceof gB?(r=new t(this),t=!0):r=new gB(this),this.remember("_resizeHandler",r)),r.active(t,e),this}}),window.SVG===void 0&&(window.SVG=j_e),window.Apex===void 0&&(window.Apex={});var mB=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","highlightSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new wh(this.ctx),this.ctx.axes=new M_e(this.ctx),this.ctx.core=new ske(this.ctx.el,this.ctx),this.ctx.config=new xv({}),this.ctx.data=new y5(this.ctx),this.ctx.grid=new uX(this.ctx),this.ctx.graphics=new xe(this.ctx),this.ctx.coreUtils=new Hr(this.ctx),this.ctx.crosshairs=new PR(this.ctx),this.ctx.events=new P_e(this.ctx),this.ctx.exports=new Um(this.ctx),this.ctx.fill=new ea(this.ctx),this.ctx.localization=new z_e(this.ctx),this.ctx.options=new Dc,this.ctx.responsive=new I_e(this.ctx),this.ctx.series=new Ai(this.ctx),this.ctx.theme=new L_e(this.ctx),this.ctx.formatters=new yb(this.ctx),this.ctx.titleSubtitle=new N_e(this.ctx),this.ctx.legend=new fX(this.ctx),this.ctx.toolbar=new hX(this.ctx),this.ctx.tooltip=new cB(this.ctx),this.ctx.dimensions=new Rw(this.ctx),this.ctx.updateHelpers=new lke(this.ctx),this.ctx.zoomPanSelection=new V_e(this.ctx),this.ctx.w.globals.tooltip=new cB(this.ctx)}}]),t}(),vB=function(){function t(e){Be(this,t),this.ctx=e,this.w=e.w}return Fe(t,[{key:"clear",value:function(e){var r=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:r})}},{key:"killSVG",value:function(e){e.each(function(){this.removeClass("*"),this.off()},!0),e.clear()}},{key:"clearDomElements",value:function(e){var r=this,n=e.isUpdating,o=this.w.globals.dom.Paper.node;o.parentNode&&o.parentNode.parentNode&&!n&&(o.parentNode.parentNode.style.minHeight="unset");var a=this.w.globals.dom.baseEl;a&&this.ctx.eventList.forEach(function(p){a.removeEventListener(p,r.ctx.events.documentEvent)});var f=this.w.globals.dom;if(this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(f.Paper),f.Paper.remove(),f.elWrap=null,f.elGraphical=null,f.elLegendWrap=null,f.elLegendForeign=null,f.baseEl=null,f.elGridRect=null,f.elGridRectMask=null,f.elGridRectBarMask=null,f.elGridRectMarkerMask=null,f.elForecastMask=null,f.elNonForecastMask=null,f.elDefs=null}}]),t}(),bE=new WeakMap,uke=function(){function t(e,r){Be(this,t),this.opts=r,this.ctx=this,this.w=new R_e(r).init(),this.el=e,this.w.globals.cuid=se.randomId(),this.w.globals.chartID=this.w.config.chart.id?se.escapeString(this.w.config.chart.id):this.w.globals.cuid,new mB(this).initModules(),this.lastUpdateOptions=null,this.create=se.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return Fe(t,[{key:"render",value:function(){var e=this;return new Promise(function(r,n){if(se.elementExists(e.el)){Apex._chartInstances===void 0&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var o=e.w.config.chart.events.beforeMount;typeof o=="function"&&o(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(k,S){var O=!1;if(k.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var C=k.getBoundingClientRect();k.style.display!=="none"&&C.width!==0||(O=!0)}var R=new ResizeObserver(function(E){O&&S.call(k,E),O=!0});k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(k.children).forEach(function(E){return R.observe(E)}):R.observe(k),bE.set(S,R)}(e.el.parentNode,e.parentResizeHandler);var a=e.el.getRootNode&&e.el.getRootNode(),f=se.is("ShadowRoot",a),p=e.el.ownerDocument,m=f?a.getElementById("apexcharts-css"):p.getElementById("apexcharts-css");if(!m){var v;(m=document.createElement("style")).id="apexcharts-css",m.textContent=`@keyframes opaque {
  0% {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes resizeanim {

  0%,
  to {
    opacity: 0
  }
}

.apexcharts-canvas {
  position: relative;
  direction: ltr !important;
  user-select: none
}

.apexcharts-canvas ::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 6px
}

.apexcharts-canvas ::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, .5);
  box-shadow: 0 0 1px rgba(255, 255, 255, .5);
  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)
}

.apexcharts-inner {
  position: relative
}

.apexcharts-text tspan {
  font-family: inherit
}

rect.legend-mouseover-inactive,
.legend-mouseover-inactive rect,
.legend-mouseover-inactive path,
.legend-mouseover-inactive circle,
.legend-mouseover-inactive line,
.legend-mouseover-inactive text.apexcharts-yaxis-title-text,
.legend-mouseover-inactive text.apexcharts-yaxis-label {
  transition: .15s ease all;
  opacity: .2
}

.apexcharts-legend-text {
  padding-left: 15px;
  margin-left: -15px;
}

.apexcharts-series-collapsed {
  opacity: 0
}

.apexcharts-tooltip {
  border-radius: 5px;
  box-shadow: 2px 2px 6px -4px #999;
  cursor: default;
  font-size: 14px;
  left: 62px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
  z-index: 12;
  transition: .15s ease all
}

.apexcharts-tooltip.apexcharts-active {
  opacity: 1;
  transition: .15s ease all
}

.apexcharts-tooltip.apexcharts-theme-light {
  border: 1px solid #e3e3e3;
  background: rgba(255, 255, 255, .96)
}

.apexcharts-tooltip.apexcharts-theme-dark {
  color: #fff;
  background: rgba(30, 30, 30, .8)
}

.apexcharts-tooltip * {
  font-family: inherit
}

.apexcharts-tooltip-title {
  padding: 6px;
  font-size: 15px;
  margin-bottom: 4px
}

.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
  background: #eceff1;
  border-bottom: 1px solid #ddd
}

.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
  background: rgba(0, 0, 0, .7);
  border-bottom: 1px solid #333
}

.apexcharts-tooltip-text-goals-value,
.apexcharts-tooltip-text-y-value,
.apexcharts-tooltip-text-z-value {
  display: inline-block;
  margin-left: 5px;
  font-weight: 600
}

.apexcharts-tooltip-text-goals-label:empty,
.apexcharts-tooltip-text-goals-value:empty,
.apexcharts-tooltip-text-y-label:empty,
.apexcharts-tooltip-text-y-value:empty,
.apexcharts-tooltip-text-z-value:empty,
.apexcharts-tooltip-title:empty {
  display: none
}

.apexcharts-tooltip-text-goals-label,
.apexcharts-tooltip-text-goals-value {
  padding: 6px 0 5px
}

.apexcharts-tooltip-goals-group,
.apexcharts-tooltip-text-goals-label,
.apexcharts-tooltip-text-goals-value {
  display: flex
}

.apexcharts-tooltip-text-goals-label:not(:empty),
.apexcharts-tooltip-text-goals-value:not(:empty) {
  margin-top: -6px
}

.apexcharts-tooltip-marker {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
  margin-right: 4px;
  text-align: center;
  vertical-align: middle;
  color: inherit;
}

.apexcharts-tooltip-marker::before {
  content: "";
  display: inline-block;
  width: 100%;
  text-align: center;
  color: currentcolor;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-size: 26px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 14px;
  font-weight: 900;
}

.apexcharts-tooltip-marker[shape="circle"]::before {
  content: "\\25CF";
}

.apexcharts-tooltip-marker[shape="square"]::before,
.apexcharts-tooltip-marker[shape="rect"]::before {
  content: "\\25A0";
  transform: translate(-1px, -2px);
}

.apexcharts-tooltip-marker[shape="line"]::before {
  content: "\\2500";
}

.apexcharts-tooltip-marker[shape="diamond"]::before {
  content: "\\25C6";
  font-size: 28px;
}

.apexcharts-tooltip-marker[shape="triangle"]::before {
  content: "\\25B2";
  font-size: 22px;
}

.apexcharts-tooltip-marker[shape="cross"]::before {
  content: "\\2715";
  font-size: 18px;
}

.apexcharts-tooltip-marker[shape="plus"]::before {
  content: "\\2715";
  transform: rotate(45deg) translate(-1px, -1px);
  font-size: 18px;
}

.apexcharts-tooltip-marker[shape="star"]::before {
  content: "\\2605";
  font-size: 18px;
}

.apexcharts-tooltip-marker[shape="sparkle"]::before {
  content: "\\2726";
  font-size: 20px;
}

.apexcharts-tooltip-series-group {
  padding: 0 10px;
  display: none;
  text-align: left;
  justify-content: left;
  align-items: center
}

.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
  opacity: 1
}

.apexcharts-tooltip-series-group.apexcharts-active,
.apexcharts-tooltip-series-group:last-child {
  padding-bottom: 4px
}

.apexcharts-tooltip-y-group {
  padding: 6px 0 5px
}

.apexcharts-custom-tooltip,
.apexcharts-tooltip-box {
  padding: 4px 8px
}

.apexcharts-tooltip-boxPlot {
  display: flex;
  flex-direction: column-reverse
}

.apexcharts-tooltip-box>div {
  margin: 4px 0
}

.apexcharts-tooltip-box span.value {
  font-weight: 700
}

.apexcharts-tooltip-rangebar {
  padding: 5px 8px
}

.apexcharts-tooltip-rangebar .category {
  font-weight: 600;
  color: #777
}

.apexcharts-tooltip-rangebar .series-name {
  font-weight: 700;
  display: block;
  margin-bottom: 5px
}

.apexcharts-xaxistooltip,
.apexcharts-yaxistooltip {
  opacity: 0;
  pointer-events: none;
  color: #373d3f;
  font-size: 13px;
  text-align: center;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
  background: #eceff1;
  border: 1px solid #90a4ae
}

.apexcharts-xaxistooltip {
  padding: 9px 10px;
  transition: .15s ease all
}

.apexcharts-xaxistooltip.apexcharts-theme-dark {
  background: rgba(0, 0, 0, .7);
  border: 1px solid rgba(0, 0, 0, .5);
  color: #fff
}

.apexcharts-xaxistooltip:after,
.apexcharts-xaxistooltip:before {
  left: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none
}

.apexcharts-xaxistooltip:after {
  border-color: transparent;
  border-width: 6px;
  margin-left: -6px
}

.apexcharts-xaxistooltip:before {
  border-color: transparent;
  border-width: 7px;
  margin-left: -7px
}

.apexcharts-xaxistooltip-bottom:after,
.apexcharts-xaxistooltip-bottom:before {
  bottom: 100%
}

.apexcharts-xaxistooltip-top:after,
.apexcharts-xaxistooltip-top:before {
  top: 100%
}

.apexcharts-xaxistooltip-bottom:after {
  border-bottom-color: #eceff1
}

.apexcharts-xaxistooltip-bottom:before {
  border-bottom-color: #90a4ae
}

.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,
.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {
  border-bottom-color: rgba(0, 0, 0, .5)
}

.apexcharts-xaxistooltip-top:after {
  border-top-color: #eceff1
}

.apexcharts-xaxistooltip-top:before {
  border-top-color: #90a4ae
}

.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,
.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {
  border-top-color: rgba(0, 0, 0, .5)
}

.apexcharts-xaxistooltip.apexcharts-active {
  opacity: 1;
  transition: .15s ease all
}

.apexcharts-yaxistooltip {
  padding: 4px 10px
}

.apexcharts-yaxistooltip.apexcharts-theme-dark {
  background: rgba(0, 0, 0, .7);
  border: 1px solid rgba(0, 0, 0, .5);
  color: #fff
}

.apexcharts-yaxistooltip:after,
.apexcharts-yaxistooltip:before {
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none
}

.apexcharts-yaxistooltip:after {
  border-color: transparent;
  border-width: 6px;
  margin-top: -6px
}

.apexcharts-yaxistooltip:before {
  border-color: transparent;
  border-width: 7px;
  margin-top: -7px
}

.apexcharts-yaxistooltip-left:after,
.apexcharts-yaxistooltip-left:before {
  left: 100%
}

.apexcharts-yaxistooltip-right:after,
.apexcharts-yaxistooltip-right:before {
  right: 100%
}

.apexcharts-yaxistooltip-left:after {
  border-left-color: #eceff1
}

.apexcharts-yaxistooltip-left:before {
  border-left-color: #90a4ae
}

.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,
.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {
  border-left-color: rgba(0, 0, 0, .5)
}

.apexcharts-yaxistooltip-right:after {
  border-right-color: #eceff1
}

.apexcharts-yaxistooltip-right:before {
  border-right-color: #90a4ae
}

.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,
.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {
  border-right-color: rgba(0, 0, 0, .5)
}

.apexcharts-yaxistooltip.apexcharts-active {
  opacity: 1
}

.apexcharts-yaxistooltip-hidden {
  display: none
}

.apexcharts-xcrosshairs,
.apexcharts-ycrosshairs {
  pointer-events: none;
  opacity: 0;
  transition: .15s ease all
}

.apexcharts-xcrosshairs.apexcharts-active,
.apexcharts-ycrosshairs.apexcharts-active {
  opacity: 1;
  transition: .15s ease all
}

.apexcharts-ycrosshairs-hidden {
  opacity: 0
}

.apexcharts-selection-rect {
  cursor: move
}

.svg_select_shape {
  stroke-width: 1;
  stroke-dasharray: 10 10;
  stroke: black;
  stroke-opacity: 0.1;
  pointer-events: none;
  fill: none;
}

.svg_select_handle {
  stroke-width: 3;
  stroke: black;
  fill: none;
}

.svg_select_handle_r {
  cursor: e-resize;
}

.svg_select_handle_l {
  cursor: w-resize;
}

.apexcharts-svg.apexcharts-zoomable.hovering-zoom {
  cursor: crosshair
}

.apexcharts-svg.apexcharts-zoomable.hovering-pan {
  cursor: move
}

.apexcharts-menu-icon,
.apexcharts-pan-icon,
.apexcharts-reset-icon,
.apexcharts-selection-icon,
.apexcharts-toolbar-custom-icon,
.apexcharts-zoom-icon,
.apexcharts-zoomin-icon,
.apexcharts-zoomout-icon {
  cursor: pointer;
  width: 20px;
  height: 20px;
  line-height: 24px;
  color: #6e8192;
  text-align: center
}

.apexcharts-menu-icon svg,
.apexcharts-reset-icon svg,
.apexcharts-zoom-icon svg,
.apexcharts-zoomin-icon svg,
.apexcharts-zoomout-icon svg {
  fill: #6e8192
}

.apexcharts-selection-icon svg {
  fill: #444;
  transform: scale(.76)
}

.apexcharts-theme-dark .apexcharts-menu-icon svg,
.apexcharts-theme-dark .apexcharts-pan-icon svg,
.apexcharts-theme-dark .apexcharts-reset-icon svg,
.apexcharts-theme-dark .apexcharts-selection-icon svg,
.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,
.apexcharts-theme-dark .apexcharts-zoom-icon svg,
.apexcharts-theme-dark .apexcharts-zoomin-icon svg,
.apexcharts-theme-dark .apexcharts-zoomout-icon svg {
  fill: #f3f4f5
}

.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,
.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,
.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {
  fill: #008ffb
}

.apexcharts-theme-light .apexcharts-menu-icon:hover svg,
.apexcharts-theme-light .apexcharts-reset-icon:hover svg,
.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,
.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,
.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,
.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {
  fill: #333
}

.apexcharts-menu-icon,
.apexcharts-selection-icon {
  position: relative
}

.apexcharts-reset-icon {
  margin-left: 5px
}

.apexcharts-menu-icon,
.apexcharts-reset-icon,
.apexcharts-zoom-icon {
  transform: scale(.85)
}

.apexcharts-zoomin-icon,
.apexcharts-zoomout-icon {
  transform: scale(.7)
}

.apexcharts-zoomout-icon {
  margin-right: 3px
}

.apexcharts-pan-icon {
  transform: scale(.62);
  position: relative;
  left: 1px;
  top: 0
}

.apexcharts-pan-icon svg {
  fill: #fff;
  stroke: #6e8192;
  stroke-width: 2
}

.apexcharts-pan-icon.apexcharts-selected svg {
  stroke: #008ffb
}

.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {
  stroke: #333
}

.apexcharts-toolbar {
  position: absolute;
  z-index: 11;
  max-width: 176px;
  text-align: right;
  border-radius: 3px;
  padding: 0 6px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.apexcharts-menu {
  background: #fff;
  position: absolute;
  top: 100%;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 3px;
  right: 10px;
  opacity: 0;
  min-width: 110px;
  transition: .15s ease all;
  pointer-events: none
}

.apexcharts-menu.apexcharts-menu-open {
  opacity: 1;
  pointer-events: all;
  transition: .15s ease all
}

.apexcharts-menu-item {
  padding: 6px 7px;
  font-size: 12px;
  cursor: pointer
}

.apexcharts-theme-light .apexcharts-menu-item:hover {
  background: #eee
}

.apexcharts-theme-dark .apexcharts-menu {
  background: rgba(0, 0, 0, .7);
  color: #fff
}

@media screen and (min-width:768px) {
  .apexcharts-canvas:hover .apexcharts-toolbar {
    opacity: 1
  }
}

.apexcharts-canvas .apexcharts-element-hidden,
.apexcharts-datalabel.apexcharts-element-hidden,
.apexcharts-hide .apexcharts-series-points {
  opacity: 0;
}

.apexcharts-hidden-element-shown {
  opacity: 1;
  transition: 0.25s ease all;
}

.apexcharts-datalabel,
.apexcharts-datalabel-label,
.apexcharts-datalabel-value,
.apexcharts-datalabels,
.apexcharts-pie-label {
  cursor: default;
  pointer-events: none
}

.apexcharts-pie-label-delay {
  opacity: 0;
  animation-name: opaque;
  animation-duration: .3s;
  animation-fill-mode: forwards;
  animation-timing-function: ease
}

.apexcharts-radialbar-label {
  cursor: pointer;
}

.apexcharts-annotation-rect,
.apexcharts-area-series .apexcharts-area,
.apexcharts-gridline,
.apexcharts-line,
.apexcharts-point-annotation-label,
.apexcharts-radar-series path:not(.apexcharts-marker),
.apexcharts-radar-series polygon,
.apexcharts-toolbar svg,
.apexcharts-tooltip .apexcharts-marker,
.apexcharts-xaxis-annotation-label,
.apexcharts-yaxis-annotation-label,
.apexcharts-zoom-rect,
.no-pointer-events {
  pointer-events: none
}

.apexcharts-tooltip-active .apexcharts-marker {
  transition: .15s ease all
}

.apexcharts-radar-series .apexcharts-yaxis {
  pointer-events: none;
}

.resize-triggers {
  animation: 1ms resizeanim;
  visibility: hidden;
  opacity: 0;
  height: 100%;
  width: 100%;
  overflow: hidden
}

.contract-trigger:before,
.resize-triggers,
.resize-triggers>div {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0
}

.resize-triggers>div {
  height: 100%;
  width: 100%;
  background: #eee;
  overflow: auto
}

.contract-trigger:before {
  overflow: hidden;
  width: 200%;
  height: 200%
}

.apexcharts-bar-goals-markers {
  pointer-events: none
}

.apexcharts-bar-shadows {
  pointer-events: none
}

.apexcharts-rangebar-goals-markers {
  pointer-events: none
}

.apexcharts-disable-transitions * {
  transition: none !important;
}`;var y=((v=e.opts.chart)===null||v===void 0?void 0:v.nonce)||e.w.config.chart.nonce;y&&m.setAttribute("nonce",y),f?a.prepend(m):e.w.config.chart.injectStyleSheet!==!1&&p.head.appendChild(m)}var x=e.create(e.w.config.series,{});if(!x)return r(e);e.mount(x).then(function(){typeof e.w.config.chart.events.mounted=="function"&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),r(x)}).catch(function(k){n(k)})}else n(new Error("Element not found"))})}},{key:"create",value:function(e,r){var n=this,o=this.w;new mB(this).initModules();var a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,!se.elementExists(this.el)||(this.responsive.checkResponsiveConfig(r),o.config.xaxis.convertedCatToNumeric&&new yv(o.config).convertCatToNumericXaxis(o.config,this.ctx),this.core.setupElements(),o.config.chart.type==="treemap"&&(o.config.grid.show=!1,o.config.yaxis[0].show=!1),a.svgWidth===0))return a.animationEnded=!0,null;var f=e;e.forEach(function(k,S){k.hidden&&(f=n.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:S}))});var p=Hr.checkComboSeries(f,o.config.chart.type);a.comboCharts=p.comboCharts,a.comboBarCount=p.comboBarCount;var m=f.every(function(k){return k.data&&k.data.length===0});(f.length===0||m&&a.collapsedSeries.length<1)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(f),this.theme.init(),new Sh(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),a.noData&&a.collapsedSeries.length!==a.series.length&&!o.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),o.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=o.globals.minX,this.ctx.toolbar.maxX=o.globals.maxX),this.formatters.heatmapLabelFormatters(),new Hr(this).getLargestMarkerSize(),this.dimensions.plotCoords();var v=this.core.xySettings();this.grid.createGridMask();var y=this.core.plotChartType(f,v),x=new Zf(this);return x.bringForward(),o.config.dataLabels.background.enabled&&x.dataLabelsBackground(),this.core.shiftGraphPosition(),o.globals.dataPoints>50&&o.globals.dom.elWrap.classList.add("apexcharts-disable-transitions"),{elGraph:y,xyRatios:v,dimensions:{plot:{left:o.globals.translateX,top:o.globals.translateY,width:o.globals.gridWidth,height:o.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=this,o=n.w;return new Promise(function(a,f){if(n.el===null)return f(new Error("Not enough data to display or target element not found"));(r===null||o.globals.allSeriesCollapsed)&&n.series.handleNoData(),n.grid=new uX(n);var p,m,v=n.grid.drawGrid();if(n.annotations=new T_e(n),n.annotations.drawImageAnnos(),n.annotations.drawTextAnnos(),o.config.grid.position==="back"&&(v&&o.globals.dom.elGraphical.add(v.el),v!=null&&(p=v.elGridBorders)!==null&&p!==void 0&&p.node&&o.globals.dom.elGraphical.add(v.elGridBorders)),Array.isArray(r.elGraph))for(var y=0;y<r.elGraph.length;y++)o.globals.dom.elGraphical.add(r.elGraph[y]);else o.globals.dom.elGraphical.add(r.elGraph);o.config.grid.position==="front"&&(v&&o.globals.dom.elGraphical.add(v.el),v!=null&&(m=v.elGridBorders)!==null&&m!==void 0&&m.node&&o.globals.dom.elGraphical.add(v.elGridBorders)),o.config.xaxis.crosshairs.position==="front"&&n.crosshairs.drawXCrosshairs(),o.config.yaxis[0].crosshairs.position==="front"&&n.crosshairs.drawYCrosshairs(),o.config.chart.type!=="treemap"&&n.axes.drawAxis(o.config.chart.type,v);var x=new wv(e.ctx,v),k=new x5(e.ctx,v);if(v!==null&&(x.xAxisLabelCorrections(v.xAxisTickWidth),k.setYAxisTextAlignments(),o.config.yaxis.map(function(O,C){o.globals.ignoreYAxisIndexes.indexOf(C)===-1&&k.yAxisTitleRotate(C,O.opposite)})),n.annotations.drawAxesAnnotations(),!o.globals.noData){if(o.config.tooltip.enabled&&!o.globals.noData&&n.w.globals.tooltip.drawTooltip(r.xyRatios),o.globals.axisCharts&&(o.globals.isXNumeric||o.config.xaxis.convertedCatToNumeric||o.globals.isRangeBar))(o.config.chart.zoom.enabled||o.config.chart.selection&&o.config.chart.selection.enabled||o.config.chart.pan&&o.config.chart.pan.enabled)&&n.zoomPanSelection.init({xyRatios:r.xyRatios});else{var S=o.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(O){S[O]=!1})}o.config.chart.toolbar.show&&!o.globals.allSeriesCollapsed&&n.toolbar.createToolbar()}o.globals.memory.methodsToExec.length>0&&o.globals.memory.methodsToExec.forEach(function(O){O.method(O.params,!1,O.context)}),o.globals.axisCharts||o.globals.noData||n.core.resizeNonAxisCharts(),a(n)})}},{key:"destroy",value:function(){window.removeEventListener("resize",this.windowResizeHandler),function(r,n){var o=bE.get(n);o&&(o.disconnect(),bE.delete(n))}(this.el.parentNode,this.parentResizeHandler);var e=this.w.config.chart.id;e&&Apex._chartInstances.forEach(function(r,n){r.id===se.escapeString(e)&&Apex._chartInstances.splice(n,1)}),new vB(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],o=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],f=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],p=this.w;return p.globals.selection=void 0,this.lastUpdateOptions&&JSON.stringify(this.lastUpdateOptions)===JSON.stringify(e)?this:(e.series&&(this.data.resetParsingFlags(),this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map(function(m,v){return r.updateHelpers._extendSeries(m,v)})),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),p.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,n,o,a,f))}},{key:"updateSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.data.resetParsingFlags(),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,r,n)}},{key:"appendSeries",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];this.data.resetParsingFlags();var o=this.w.config.series.slice();return o.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(o,r,n)}},{key:"appendData",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],n=this;n.data.resetParsingFlags(),n.w.globals.dataChanged=!0,n.series.getPreviousPaths();for(var o=n.w.config.series.slice(),a=0;a<o.length;a++)if(e[a]!==null&&e[a]!==void 0)for(var f=0;f<e[a].data.length;f++)o[a].data.push(e[a].data[f]);return n.w.config.series=o,r&&(n.w.globals.initialSeries=se.clone(n.w.config.series)),this.update()}},{key:"update",value:function(e){var r=this;return new Promise(function(n,o){if(r.lastUpdateOptions&&JSON.stringify(r.lastUpdateOptions)===JSON.stringify(e))return n(r);r.lastUpdateOptions=se.clone(e),new vB(r.ctx).clear({isUpdating:!0});var a=r.create(r.w.config.series,e);if(!a)return n(r);r.mount(a).then(function(){typeof r.w.config.chart.events.updated=="function"&&r.w.config.chart.events.updated(r,r.w),r.events.fireEvent("updated",[r,r.w]),r.w.globals.isDirty=!0,n(r)}).catch(function(f){o(f)})})}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),r=[this];return e.length&&(r=[],e.forEach(function(n){r.push(n)})),r}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter(function(r){if(r.group)return!0}).map(function(r){return e.w.config.chart.group===r.group?r.chart:e})}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,r){return this.series.toggleSeriesOnHover(e,r)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"highlightSeries",value:function(e){this.series.highlightSeries(e)}},{key:"isSeriesHidden",value:function(e){this.series.isSeriesHidden(e)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(e,r)}},{key:"addEventListener",value:function(e,r){this.events.addEventListener(e,r)}},{key:"removeEventListener",value:function(e,r){this.events.removeEventListener(e,r)}},{key:"addXaxisAnnotation",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,o=this;n&&(o=n),o.annotations.addXaxisAnnotationExternal(e,r,o)}},{key:"addYaxisAnnotation",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,o=this;n&&(o=n),o.annotations.addYaxisAnnotationExternal(e,r,o)}},{key:"addPointAnnotation",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,o=this;n&&(o=n),o.annotations.addPointAnnotationExternal(e,r,o)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,r=this;e&&(r=e),r.annotations.clearAnnotations(r)}},{key:"removeAnnotation",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,n=this;r&&(n=r),n.annotations.removeAnnotation(n,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,r){return this.coreUtils.getSeriesTotalsXRange(e,r)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new RR(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new RR(this.ctx).getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,r){return this.updateHelpers.toggleDataPointSelection(e,r)}},{key:"zoomX",value:function(e,r){this.ctx.toolbar.zoomUpdateOptions(e,r)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new Um(this.ctx).dataURI(e)}},{key:"getSvgString",value:function(e){return new Um(this.ctx).getSvgString(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Um(this.ctx).exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;typeof e=="function"&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var r=se.escapeString(e);if(Apex._chartInstances){var n=Apex._chartInstances.filter(function(o){return o.id===r})[0];return n&&n.chart}}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),r=0;r<e.length;r++)new t(e[r],JSON.parse(e[r].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,r){var n=this.getChartByID(e);if(n){n.w.globals.isExecCalled=!0;var o=null;if(n.publicMethods.indexOf(r)!==-1){for(var a=arguments.length,f=new Array(a>2?a-2:0),p=2;p<a;p++)f[p-2]=arguments[p];o=n[r].apply(n,f)}return o}}},{key:"merge",value:function(e,r){return se.extend(e,r)}},{key:"getThemePalettes",value:function(){return{palette1:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"],palette2:["#3F51B5","#03A9F4","#4CAF50","#F9CE1D","#FF9800"],palette3:["#33B2DF","#546E7A","#D4526E","#13D8AA","#A5978B"],palette4:["#4ECDC4","#C7F464","#81D4FA","#FD6A6A","#546E7A"],palette5:["#2B908F","#F9A3A4","#90EE7E","#FA4443","#69D2E7"],palette6:["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"],palette7:["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"],palette8:["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"],palette9:["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"],palette10:["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}}}]),t}();const dke=Object.freeze(Object.defineProperty({__proto__:null,default:uke},Symbol.toStringTag,{value:"Module"})),fke=pee(dke);var _X={exports:{}},hke="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",pke=hke,gke=pke;function kX(){}function jX(){}jX.resetWarningCache=kX;var mke=function(){function t(n,o,a,f,p,m){if(m!==gke){var v=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 v.name="Invariant Violation",v}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:jX,resetWarningCache:kX};return r.PropTypes=r,r};_X.exports=mke();var vke=_X.exports;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=M;var e=p(F),r=a(fke),n=a(vke),o=["type","width","height","series","options"];function a(I){return I&&I.__esModule?I:{default:I}}function f(I){var B,U;return typeof WeakMap!="function"?null:(B=new WeakMap,U=new WeakMap,(f=function(H){return H?U:B})(I))}function p(I,B){if(!B&&I&&I.__esModule)return I;if(I===null||x(I)!="object"&&typeof I!="function")return{default:I};if(B=f(B),B&&B.has(I))return B.get(I);var U,H,V={__proto__:null},W=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(U in I)U!=="default"&&{}.hasOwnProperty.call(I,U)&&((H=W?Object.getOwnPropertyDescriptor(I,U):null)&&(H.get||H.set)?Object.defineProperty(V,U,H):V[U]=I[U]);return V.default=I,B&&B.set(I,V),V}function m(){return(m=Object.assign?Object.assign.bind():function(I){for(var B=1;B<arguments.length;B++){var U,H=arguments[B];for(U in H)!{}.hasOwnProperty.call(H,U)||(I[U]=H[U])}return I}).apply(null,arguments)}function v(I,B){if(I==null)return{};var U,H=y(I,B);if(Object.getOwnPropertySymbols)for(var V=Object.getOwnPropertySymbols(I),W=0;W<V.length;W++)U=V[W],B.includes(U)||{}.propertyIsEnumerable.call(I,U)&&(H[U]=I[U]);return H}function y(I,B){if(I==null)return{};var U,H={};for(U in I)if({}.hasOwnProperty.call(I,U)){if(B.includes(U))continue;H[U]=I[U]}return H}function x(I){return(x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B})(I)}function k(I,B){var U,H=Object.keys(I);return Object.getOwnPropertySymbols&&(U=Object.getOwnPropertySymbols(I),B&&(U=U.filter(function(V){return Object.getOwnPropertyDescriptor(I,V).enumerable})),H.push.apply(H,U)),H}function S(I){for(var B=1;B<arguments.length;B++){var U=arguments[B]!=null?arguments[B]:{};B%2?k(Object(U),!0).forEach(function(H){O(I,H,U[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(U)):k(Object(U)).forEach(function(H){Object.defineProperty(I,H,Object.getOwnPropertyDescriptor(U,H))})}return I}function O(I,B,U){return(B=C(B))in I?Object.defineProperty(I,B,{value:U,enumerable:!0,configurable:!0,writable:!0}):I[B]=U,I}function C(I){return I=R(I,"string"),x(I)=="symbol"?I:I+""}function R(I,B){if(x(I)!="object"||!I)return I;var U=I[Symbol.toPrimitive];if(U===void 0)return(B==="string"?String:Number)(I);if(U=U.call(I,B),x(U)!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}function E(I,B){var U=S({},I);return B.forEach(function(H){delete U[H]}),U}function P(I,B){var U=2<arguments.length&&arguments[2]!==void 0?arguments[2]:new WeakSet;if(I!==B){if(x(I)!=="object"||I===null||x(B)!=="object"||B===null)return!1;if(!U.has(I)&&!U.has(B)){U.add(I),U.add(B);var H=Object.keys(I),V=Object.keys(B);if(H.length!==V.length)return!1;for(var W=0,G=H;W<G.length;W++){var Z=G[W];if(!V.includes(Z)||!P(I[Z],B[Z],U))return!1}}}return!0}function M(ne){function B(te){return te&&x(te)==="object"&&!Array.isArray(te)}var Z=ne.type,U=Z===void 0?"line":Z,Z=ne.width,H=Z===void 0?"100%":Z,Z=ne.height,V=Z===void 0?"auto":Z,W=ne.series,G=ne.options,Z=v(ne,o),K=(0,e.useRef)(null),Q=(0,e.useRef)(null),oe=(0,e.useRef)(),ie=((0,e.useEffect)(function(){oe.current=G;var te=K.current;return Q.current=new r.default(te,ie()),Q.current.render(),function(){Q.current&&typeof Q.current.destroy=="function"&&Q.current.destroy()}},[]),(0,e.useEffect)(function(){var te=!P(Q.current.w.config.series,W),ue=!P(oe.current,G)||V!==Q.current.opts.chart.height||H!==Q.current.opts.chart.width;(te||ue)&&(!te||ue?Q.current.updateOptions(ie()):Q.current.updateSeries(W)),oe.current=G},[G,W,V,H]),function(){return re(G,{chart:{type:U,height:V,width:H},series:W})}),re=function(te,ue){var pe=S({},te);return B(te)&&B(ue)&&Object.keys(ue).forEach(function(ke){B(ue[ke])&&ke in te?pe[ke]=re(te[ke],ue[ke]):Object.assign(pe,O({},ke,ue[ke]))}),pe},ne=E(Z,Object.keys(M.propTypes));return e.default.createElement("div",m({ref:K},ne))}M.propTypes={type:n.default.string.isRequired,series:n.default.array.isRequired,options:n.default.object.isRequired,width:n.default.oneOfType([n.default.string,n.default.number]),height:n.default.oneOfType([n.default.string,n.default.number])}})(EW);const Lje=zv(EW);class bke extends Ri{constructor(){super("")}async getProfile(){return this.get("/admin")}async updateProfile(e){if(e.profile_pic){const o=new FormData;return o.append("first_name",e.first_name),o.append("last_name",e.last_name),o.append("email",e.email),o.append("country_code",e.country_code),o.append("mobile_num",e.mobile_num),o.append("pictureType","profile_pic"),o.append("files",e.profile_pic),this.put("/admin",o,{headers:{"Content-Type":"multipart/form-data"}})}const{profile_pic:r,...n}=e;return this.put("/admin",n)}async updatePassword(e){const r=new FormData;return r.append("current_password",e.current_password),r.append("password",e.password),r.append("confirm_password",e.confirm_password),this.put("/admin",r)}}const yE=new bke,yke={error:UD,warning:UD,info:iie,success:$oe},xke={error:"bg-red-50 border-red-200 dark:bg-red-900/20 dark:border-red-800/30",warning:"bg-amber-50 border-amber-200 dark:bg-amber-900/20 dark:border-amber-800/30",info:"bg-blue-50 border-blue-200 dark:bg-blue-900/20 dark:border-blue-800/30",success:"bg-green-50 border-green-200 dark:bg-green-900/20 dark:border-green-800/30"},bB={error:"text-red-800 dark:text-red-200",warning:"text-amber-800 dark:text-amber-200",info:"text-blue-800 dark:text-blue-200",success:"text-green-800 dark:text-green-200"},wke={error:"text-red-500",warning:"text-amber-500",info:"text-blue-500",success:"text-green-500"},yB=({message:t,title:e,severity:r="error",showIcon:n=!0,dismissible:o=!1,onDismiss:a,className:f,actions:p})=>{const m=yke[r],v=()=>a==null?void 0:a();return A.jsx("div",{className:Ne("rounded-lg border p-4",xke[r],f),role:"alert",children:A.jsxs("div",{className:"flex",children:[n&&A.jsx("div",{className:"flex-shrink-0",children:A.jsx(m,{className:Ne("h-5 w-5",wke[r])})}),A.jsxs("div",{className:Ne("flex-1",{"ml-3":n}),children:[e&&A.jsx("h3",{className:Ne("text-sm font-medium",bB[r]),children:e}),A.jsx("div",{className:Ne("text-sm",bB[r],{"mt-1":e}),children:t}),p&&A.jsx("div",{className:"mt-3",children:A.jsx("div",{className:"flex flex-wrap gap-2",children:p})})]}),o&&A.jsx("div",{className:"ml-4",children:A.jsxs("button",{type:"button",onClick:v,className:Ne("inline-flex rounded-md p-1 focus:outline-none","text-gray-400 hover:text-gray-500","dark:text-gray-500 dark:hover:text-gray-400","focus:ring-2 focus:ring-offset-2","focus:ring-primary-500 focus:ring-offset-transparent","dark:focus:ring-offset-gray-900"),children:[A.jsx("span",{className:"sr-only",children:"Dismiss"}),A.jsx(Qw,{className:"h-5 w-5"})]})})]})})},_ke=()=>{const[t,e]=F.useState(null),[r]=F.useState(!0),[n,o]=F.useState(!0),[a,f]=F.useState(!1),[p,m]=F.useState(null),v=j1(),[y,x]=F.useState({first_name:"",last_name:"",email:"",country_code:"+1",mobile_num:"",date_of_birth:"",gender:"Male"}),{refreshUser:k}=bh(),{checkDemo:S}=lo(),[O,C]=F.useState({current_password:"",password:"",confirm_password:""}),[R,E]=F.useState(null),[P,M]=F.useState(void 0),[I,B]=F.useState("profile"),{toast:U}=Ro();F.useEffect(()=>{V()},[]);const H=async()=>{try{if(S())return;if(console.log(O),!O.current_password||!O.password||!O.confirm_password||O.password!==O.confirm_password){U({title:"Error",description:"Password and confirm password are required, and they should match"});return}const K=await yE.updatePassword(O);K.status?(U({title:"Success",description:"Password updated successfully"}),C({current_password:"",password:"",confirm_password:""})):U({title:"Error",description:K.message,variant:"error"})}catch(K){console.error("Password update error:",K),m("Failed to update password")}},V=async()=>{var K;try{o(!0),m(null);const Q=await yE.getProfile();Q.status==!0?(e(Q.data),x({first_name:Q.data.first_name,last_name:Q.data.last_name,email:Q.data.email,country_code:Q.data.country_code||"+1",mobile_num:Q.data.mobile_num,date_of_birth:Q.data.date_of_birth,gender:Q.data.gender}),E(null),M((K=Q.data)==null?void 0:K.profile_pic)):U({title:"Error",description:Q.message,variant:"error"})}catch(Q){m("Failed to load profile"),console.error("Profile load error:",Q)}finally{o(!1)}},W=async()=>{try{if(S())return;f(!0),m(null);const K={...y,...R&&{profile_pic:R}},Q=await yE.updateProfile(K);Q.status&&(k(),e(Q.data),v.fetchUserProfile(),U({title:"Success!",description:"Profile updated successfully!",variant:"success"}),E(null))}catch(K){m("Failed to update profile"),console.error("Profile update error:",K)}finally{f(!1)}},G=(K,Q)=>{x(oe=>({...oe,[K]:Q}))},Z=K=>{var oe;const Q=(oe=K.target.files)==null?void 0:oe[0];Q&&(E(Q),M(URL.createObjectURL(Q)))};return n?A.jsx("div",{className:"flex justify-center items-center min-h-screen",children:A.jsx(F3,{})}):t?A.jsx("div",{className:"min-h-screen py-4 px-4 sm:py-6 sm:px-6",children:A.jsxs("div",{className:"max-w-4xl mx-auto",children:[A.jsx("div",{className:"mb-4 sm:mb-6",children:A.jsx("h1",{className:"text-lg sm:text-xl font-bold text-table-header-text",children:"My Profile"})}),A.jsxs("div",{className:"border border-table-divider rounded-sm",children:[A.jsxs("div",{className:"flex border-b border-table-divider rounded-sm",children:[A.jsx("button",{onClick:()=>B("profile"),className:`h-10 sm:h-12 flex items-center justify-center px-3 sm:px-4 text-xs sm:text-sm font-medium flex-1 sm:flex-none ${I==="profile"?"bg-primary-dark/20 text-primary-dark rounded-tl-xs":"text-text-muted"}`,children:"Edit Profile"}),A.jsx("button",{onClick:()=>B("password"),className:`h-10 sm:h-12 flex items-center justify-center px-3 sm:px-4 text-xs sm:text-sm font-medium flex-1 sm:flex-none ${I==="password"?"bg-primary-dark/20 text-primary-dark":"text-gray-500"}`,children:"Change Password"})]}),p&&A.jsx("div",{className:"mb-4 sm:mb-6 p-4",children:A.jsx(yB,{message:p})}),I==="profile"&&A.jsxs("div",{className:"max-w-5xl mx-auto p-4 sm:p-6 h-full",children:[A.jsxs("div",{className:"flex flex-col items-center justify-center mb-6 sm:mb-8",children:[A.jsxs("div",{className:"relative mb-4",children:[A.jsx("div",{className:"w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden",children:t.profile_pic?A.jsx("img",{src:P,alt:"Profile",className:"w-full h-full object-cover"}):A.jsx("div",{className:"w-full h-full flex items-center justify-center",children:A.jsx(vm,{className:"w-10 h-10 sm:w-12 sm:h-12 text-text-muted"})})}),A.jsxs("label",{className:"absolute text-text -bottom-1 -right-1 w-8 h-8 sm:w-10 sm:h-10 d rounded-full flex items-center justify-center cursor-pointer bg-secondary transition-all duration-200 shadow-lg border-2 border-table-divider",children:[A.jsx(Foe,{className:"w-4 h-4 sm:w-5 sm:h-5 "}),A.jsx("input",{type:"file",accept:"image/*",onChange:Z,className:"hidden",disabled:a})]})]}),A.jsx("h2",{className:"text-lg sm:text-xl font-bold text-table-header-text mb-2 text-center",children:t.full_name})]}),A.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 sm:gap-6 mb-8 sm:mb-12",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"First Name"}),A.jsxs("div",{className:"relative",children:[A.jsx(vm,{className:"absolute text-text rounded-lg left-3 top-1/2 transform -translate-y-1/2 w-5 h-5    "}),A.jsx("input",{type:"text",value:y.first_name,onChange:K=>G("first_name",K.target.value),className:"w-full pl-12 sm:pl-14 pr-4 py-3 sm:py-4 border border-table-divider rounded-2xl text-text-muted text-sm",placeholder:"Enter First Name"})]})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"Last Name"}),A.jsxs("div",{className:"relative",children:[A.jsx(vm,{className:"absolute text-text rounded-lg left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 "}),A.jsx("input",{type:"text",value:y.last_name,onChange:K=>G("last_name",K.target.value),className:"w-full pl-12 sm:pl-14 pr-4 py-3 sm:py-4 border border-table-divider rounded-2xl text-text-muted text-sm",placeholder:"Enter Last Name"})]})]})]}),A.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 sm:gap-6 pt-2 sm:pt-5 mb-8 sm:mb-12",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"Email"}),A.jsxs("div",{className:"relative",children:[A.jsx(nU,{className:"absolute text-text rounded-lg left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 "}),A.jsx("input",{type:"email",value:r?y.email:t.email,onChange:K=>G("email",K.target.value),disabled:!r,className:"w-full pl-12 sm:pl-14 pr-4 py-3 sm:py-4 border border-table-divider rounded-2xl text-text-muted text-sm",placeholder:"demo@realboost.com"})]})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"Mobile Number"}),A.jsx("div",{className:"flex space-x-2 items-center",children:A.jsxs("div",{className:"relative flex-1",children:[A.jsx(wie,{className:"absolute text-text rounded-lg left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 "}),A.jsx("input",{type:"tel",value:r?y.mobile_num:t.mobile_num,onChange:K=>G("mobile_num",K.target.value),disabled:!r,className:"w-full pl-12 sm:pl-14 pr-4 py-3 sm:py-4 border border-table-divider rounded-2xl text-text-muted text-sm",placeholder:"Enter Mobile Number"})]})})]})]}),A.jsx("div",{className:"mt-8 sm:mt-12 mb-6 sm:mb-8 pt-4 sm:pt-6",children:A.jsx("div",{className:"flex justify-center",children:A.jsx(Pt,{onClick:W,disabled:a,className:"w-32 sm:w-40 bg-primary text-button-text  font-semibold py-2 rounded-md transition-colors duration-200",children:a?A.jsxs(A.Fragment,{children:[A.jsx(cw,{size:"sm",className:"mr-2"}),"Saving..."]}):"Submit"})})})]}),I==="password"&&A.jsxs("div",{className:"max-w-5xl mx-auto p-4 sm:p-6 h-full",children:[A.jsxs("div",{className:"flex flex-col items-center mb-6 sm:mb-8 text-center content-center",children:[A.jsx("div",{className:"w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden mx-auto",children:A.jsx("div",{className:"relative mb-4",children:A.jsx("div",{className:"w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden mb-6 sm:mb-8",children:t.profile_pic?A.jsx("img",{src:t.profile_pic,alt:"Profile",className:"w-full h-full object-cover"}):A.jsx("div",{className:"w-full h-full flex items-center justify-center",children:A.jsx(vm,{className:"w-10 h-10 sm:w-12 sm:h-12 text-text-muted"})})})})}),A.jsx("h2",{className:"text-lg sm:text-xl font-bold text-table-header-text mb-2 mt-2 text-center",children:t.full_name})]}),A.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 sm:gap-6 pt-2 sm:pt-5 mb-8 sm:mb-12",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"Current Password"}),A.jsxs("div",{className:"relative",children:[A.jsx(tx,{className:"absolute text-text rounded-lg left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 "}),A.jsx("input",{type:"password",className:"w-full pl-12 sm:pl-14 pr-4 py-3 sm:py-4 border border-table-divider rounded-2xl text-text-muted text-sm",placeholder:"Enter current password",onChange:K=>C({...O,current_password:K.target.value}),value:O.current_password})]})]}),A.jsxs("div",{className:"col-span-1",children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"New Password"}),A.jsxs("div",{className:"relative",children:[A.jsx(tx,{className:"absolute text-text rounded-lg left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 "}),A.jsx("input",{type:"password",className:"w-full pl-12 sm:pl-14 pr-4 py-3 sm:py-4 border border-table-divider rounded-2xl text-text-muted text-sm",placeholder:"Enter new password",onChange:K=>C({...O,password:K.target.value}),value:O.password})]})]}),A.jsxs("div",{className:"col-span-1 lg:col-span-1 mt-0 lg:mt-12",children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"Confirm Password"}),A.jsxs("div",{className:"relative",children:[A.jsx(tx,{className:"absolute text-text rounded-lg left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 "}),A.jsx("input",{type:"password",className:"w-full pl-12 sm:pl-14 pr-4 py-3 sm:py-4 border border-table-divider rounded-2xl text-text-muted text-sm",placeholder:"Confirm new password",onChange:K=>C({...O,confirm_password:K.target.value}),value:O.confirm_password})]})]})]}),A.jsx("div",{className:"flex justify-center mt-8 sm:mt-12 mb-6 sm:mb-8 pt-4 sm:pt-6",children:A.jsx(Pt,{variant:"default",className:"w-32 sm:w-40 bg-primary text-button-text  font-semibold py-2 rounded-md transition-colors duration-200",onClick:H,children:"Submit"})})]})]})]})}):A.jsx("div",{className:"flex justify-center items-center min-h-screen",children:A.jsx(yB,{message:"Profile not found"})})};function Po({className:t,customItems:e,homeLabel:r="Dashboard",separator:n=A.jsx(V4,{className:"h-1 w-1 bg-text-muted/20 rounded-full"})}){const o=$o();Oq();const a=e||(()=>{const f=o.pathname.split("/").filter(Boolean),p=[];let m="";return p.push({label:r,href:"/dashboard",active:o.pathname==="/"}),f.forEach((v,y)=>{m+=`/${v}`;const x=y===f.length-1,k=nR[m];k&&!k.hideFromMenu?p.push({label:k.title.toUpperCase()||v.toUpperCase(),href:x?void 0:m,active:x}):x&&p.push({label:v.replace(/-/g," ").replace(/\b\w/g,S=>S.toUpperCase()),href:void 0,active:!0})}),p})();return a.length<=1?null:A.jsx("nav",{className:Ne("flex items-center text-sm",t),"aria-label":"Breadcrumb",children:A.jsx("ol",{className:"flex items-center space-x-2",children:a.map((f,p)=>A.jsxs(F.Fragment,{children:[p>0&&A.jsx("li",{className:"text-text-muted","aria-hidden":"true",children:n}),A.jsx("li",{children:f.href?A.jsx($i,{to:f.href,className:Ne("text-sm font-medium hover:text-primary-600 dark:hover:text-primary-400",p===0?"text-table-header-text font-bold":(f.active,"text-text-muted")),children:f.label}):A.jsx("span",{className:Ne("text-sm text-text-muted",p===0?"text-text-muted ":(f.active,"text-text-muted")),children:f.label})})]},p))})})}Po.displayName="Breadcrumb";function kke(t){return t.toUpperCase().replace(/./g,r=>String.fromCodePoint(127397+r.charCodeAt(0)))}const jke=[];function Ske(){const[t,e]=F.useState(jke),[r,n]=F.useState(""),{checkDemo:o}=lo(),a=[{header:"ID",cell:p=>A.jsxs("span",{className:"text-primary-600",children:["#",p.id]}),className:"w-24"},{header:"Full Name",cell:p=>A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("img",{src:p.profile_pic,className:"h-8 w-8 rounded-full",alt:"avatar"}),A.jsxs("div",{children:[A.jsx("div",{className:"text-table-text text-sm font-medium",children:p.fullName}),A.jsx("div",{className:"text-xs text-text-muted",children:p.emailMasked})]})]})},{header:"User Name",accessor:"username",sortable:!0},{header:"Country",cell:p=>A.jsxs("div",{className:"inline-flex items-center gap-2",children:[A.jsx("span",{className:"text-lg leading-none",children:kke(p.countryCode)}),A.jsx("span",{className:"text-sm text-table-text",children:p.country})]})},{header:"Joining date",cell:p=>new Date(p.joinedAt).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"}),sortable:!0},{header:"Platform",cell:p=>A.jsx("span",{className:p.platform==="Web"?"text-green-500 border font-medium border-green-300 px-2 py-1 rounded-full text-xs":"text-yellow-700 border font-medium font-bold border-yellow-500 px-2 py-1 rounded-full text-xs",children:p.platform})},{header:"Report Counts",accessor:"reportCounts"},{header:"Status",cell:p=>A.jsx("span",{className:p.status==="Online"?"text-green-600 border border-emerald-100 px-2 py-1 rounded-full text-xs":"text-red-500 border border-red-400 px-2 py-1 rounded-full text-xs",children:p.status})},{header:"Block",cell:p=>A.jsx(Xl,{checked:p.is_blocked,onChange:async m=>{if(!o()){e(v=>v.map(y=>y.id===p.id?{...y,is_blocked:m}:y));try{await lu.blockUserByAdmin({id:p.id,is_blocked:m})}catch(v){console.error("Block toggle failed",v),e(y=>y.map(x=>x.id===p.id?{...x,is_blocked:!m}:x))}}},className:"p-2"}),className:"w-28"}],f=async p=>{var m,v;try{const y=await lu.getUsersList({page:1,pageSize:50,search:p}),x=((v=(m=y.data)==null?void 0:m.pagination)==null?void 0:v.total_pages)??1,k=Array.from({length:Math.max(0,x-1)}).map((R,E)=>lu.getUsersList({page:E+2,pageSize:50,search:p})),S=await Promise.all(k),C=[y,...S].flatMap(R=>{var E;return((E=R==null?void 0:R.data)==null?void 0:E.users)||[]}).map((R,E)=>({id:Number(R.user_id??E+1),profile_pic:R.profile_pic??"/assets/Avatar.png",fullName:R.full_name||R.user_name||"-",emailMasked:R.email?R.email.replace(/(.{4}).+(@.*)/,"$1xxxxxxxx$2"):"xxxxxxxxxxxxxx@demo",username:R.user_name||"-",countryCode:(R.country_short_name||"IN").toUpperCase(),country:R.country||"India",joinedAt:R.createdAt||new Date().toISOString(),platform:(R.platforms||["android"]).includes("web")?"Web":"App",reportCounts:0,status:Array.isArray(R.socket_ids)&&R.socket_ids.length>0?"Online":"Offline",is_blocked:R==null?void 0:R.blocked_by_admin}));e(C)}catch(y){console.error("Failed to load users list:",y),e([])}};return F.useEffect(()=>{f(r)},[r]),A.jsxs("div",{className:"space-y-4",children:[A.jsx("h1",{className:"text-xl font-semibold text-table-header-text",children:"User List"}),A.jsxs("div",{className:"flex items-center justify-between ",children:[A.jsx("div",{className:"mt-2",children:A.jsx(Po,{})}),A.jsxs("div",{className:"flex items-center gap-2 relative w-full max-w-md",children:[A.jsx(sh,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 font-extrabold text-text-muted"}),A.jsx(Dr,{value:r,onChange:p=>n(p.target.value),onKeyDown:p=>{p.key==="Enter"&&f(r)},placeholder:"Search by name or number",className:"pl-9 bg-secondary/80 text-text-muted sm:w-full  min-w-[200px]"})]})]}),A.jsx(aa,{data:t,columns:a,defaultPageSize:10})]})}function Cke(t){return(t||"").toUpperCase().replace(/./g,r=>String.fromCodePoint(127397+r.charCodeAt(0)))}function xB(t){const e=(t||"").trim().toLowerCase(),r={"united kingdom":"GB",uk:"GB","great britain":"GB",gb:"GB",england:"GB",scotland:"GB",wales:"GB","northern ireland":"GB","united states":"US","united states of america":"US",usa:"US",us:"US",india:"IN",unknown:""};return r[e]?r[e]:(t||"").replace(/[^a-zA-Z]/g,"").toUpperCase().slice(0,2)||""}const wB=["bg-blue-500","bg-green-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-teal-500","bg-red-500","bg-indigo-500","bg-yellow-500"];function Ake(t){const e=t.split("").reduce((r,n)=>r+n.charCodeAt(0),0);return wB[e%wB.length]}function Oke(t,e){return!t||e.toLowerCase()==="unknown"?A.jsx("span",{className:"text-xl px- py-1 rounded ",children:"🏳"}):A.jsx("span",{className:"text-base leading-none",children:Cke(t)})}function Eke(){const[t,e]=F.useState([]),r=async()=>{try{const a=((await lu.getUsersByCountry()).data||[]).map((f,p)=>({id:p+1,profile_pic:"/assets/Avatar.png",fullName:f.country||"Unknown",emailMasked:"",username:"",countryCode:xB(f.country||""),country:f.country||"Unknown",joinedAt:new Date().toISOString(),platform:"App",reportCounts:Number(f.count)||0,status:"Offline"}));e(a)}catch(n){console.error("Failed to load users list by country:",n),e([])}};return F.useEffect(()=>{r()},[]),A.jsxs("div",{className:"space-y-4",children:[A.jsx("div",{className:"flex items-center justify-between",children:A.jsx("h1",{className:"text-xl font-semibold text-text-muted",children:"Country Wise Users"})}),(()=>{const n=t.map(f=>({name:f.country,code:f.countryCode,count:f.reportCounts})).sort((f,p)=>p.count-f.count),o=Math.max(1,...n.map(f=>f.count)),a=n;return A.jsxs("div",{className:"p-4",children:[A.jsx("div",{className:"space-y-4",children:a.map(f=>{const p=Math.round(f.count/o*100);return A.jsxs("div",{className:"space-y-1",children:[A.jsxs("div",{className:"text-sm text-text-secondary flex items-center justify-between gap-2",children:[A.jsxs("div",{className:"flex items-center gap-2",children:[Oke(xB(f.name),f.name),A.jsx("span",{children:f.name||"Unknown"})]}),A.jsxs("span",{className:"text-xs text-text-muted whitespace-nowrap",children:[f.count," Users"]})]}),A.jsx("div",{className:"h-2.5 w-full bg-table-header-bg rounded-full",children:A.jsx("div",{className:`h-2.5 rounded-full ${Ake(f.name)}`,style:{width:`${p}%`}})})]},f.name)})}),A.jsxs("div",{className:"mt-6 text-sm text-text-muted",children:["Showing ",a.length," results"]})]})})()]})}function Tke(){const t=[],[e,r]=F.useState(t),[n,o]=F.useState(""),a=[{header:"ID",cell:p=>A.jsxs("span",{className:"text-primary-600",children:["#",p.id]}),className:"w-24"},{header:"Date",cell:p=>new Date(p.date).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"}),sortable:!0},{header:"Blocked By",cell:p=>A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("img",{src:p.block_by.profile_pic,className:"h-8 w-8 rounded-full",alt:"avatar"}),A.jsxs("div",{children:[A.jsx("div",{className:"text-gray-900 text-sm font-medium",children:p.block_by.full_name}),A.jsx("div",{className:"text-gray-500 text-sm font-extralight",children:p.block_by.user_name})]})]})},{header:"Blocked To",cell:p=>A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("img",{src:p.block_to.profile_pic,className:"h-8 w-8 rounded-full",alt:"avatar"}),A.jsxs("div",{children:[A.jsx("div",{className:"text-gray-900 text-sm font-medium",children:p.block_to.full_name}),A.jsx("div",{className:"text-gray-500 text-sm font-extralight",children:p.block_to.user_name})]})]})}],f=async p=>{var m,v;try{const y=await lu.getBlockedUserList({page:1,pageSize:50,search:p});console.log("Blocked users API response:",y);const x=((v=(m=y.data)==null?void 0:m.Pagination)==null?void 0:v.total_pages)??1,k=Array.from({length:Math.max(0,x-1)}).map((R,E)=>lu.getBlockedUserList({page:E+2,pageSize:50,search:p})),S=await Promise.all(k),C=[y,...S].flatMap(R=>{var E;return((E=R==null?void 0:R.data)==null?void 0:E.Records)||[]}).map((R,E)=>({id:Number(R.user_id??E+1),block_to:{user_id:R.blocked.user_id,user_name:R.blocked.user_name,email:R.blocked.email,first_name:R.blocked.first_name,last_name:R.blocked.last_name,profile_pic:R.blocked.profile_pic},block_by:{user_id:R.blocker.user_id,user_name:R.blocker.user_name,email:R.blocker.email,first_name:R.blocker.first_name,last_name:R.blocker.last_name,profile_pic:R.blocker.profile_pic},date:R.createdAt}));r(C)}catch(y){console.error("Failed to load blocked users list:",y),r([])}};return F.useEffect(()=>{f(n)},[n]),A.jsxs("div",{className:"space-y-4",children:[A.jsx("div",{className:"mt-2",children:A.jsx(Po,{})}),A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Blocked Users List"}),A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx(Dr,{value:n,onChange:p=>o(p.target.value),onKeyDown:p=>{p.key==="Enter"&&f(n)},placeholder:"Search by name or number",className:"w-72"}),A.jsx(Pt,{variant:"secondary",className:"text-black",onClick:()=>{f(n)},children:"Search"})]})]}),A.jsx(aa,{data:e,columns:a,defaultPageSize:10})]})}function Rke({refreshTrigger:t}){const[e,r]=F.useState([]),[n,o]=F.useState(!0),[a,f]=F.useState(null),[p,m]=F.useState(null),[v,y]=F.useState(null),[x,k]=F.useState(!1),{toast:S}=Ro(),{checkDemo:O}=lo(),C=async()=>{var V;try{o(!0);const W=await yw.getAvatarList();if(W.status&&((V=W.data)!=null&&V.Records))r(W.data.Records);else throw new Error(W.message||"Failed to fetch avatars")}catch(W){console.error("Error fetching avatars:",W),S({title:"Error",description:"Failed to load avatars. Please try again.",variant:"error"})}finally{o(!1)}};F.useEffect(()=>{C()},[t]);const R=()=>{y(null)},E=V=>{f(V)},P=()=>{f(null)},M=V=>{r(W=>W.map(G=>G.avatar_id===V.avatar_id?V:G)),f(null)},I=V=>{m(V)},B=async()=>{if(!O()&&p){k(!0);try{const V=await yw.deleteAvatar(p.avatar_id);if(V.status)S({title:"Success!",description:"Avatar deleted successfully!",variant:"success"}),r(W=>W.filter(G=>G.avatar_id!==p.avatar_id)),m(null);else throw new Error(V.message||"Failed to delete avatar")}catch(V){console.error("Error deleting avatar:",V),S({title:"Error",description:"Failed to delete avatar. Please try again.",variant:"error"})}finally{k(!1)}}},U=()=>{m(null)},H=[{id:"avatar_id",header:"ID",accessor:"avatar_id",sortable:!0,className:"w-20"},{id:"avatar_media",header:"Avatar",cell:V=>A.jsx("div",{className:"flex items-center",children:V.avatar_media?A.jsx("img",{src:V.avatar_media,alt:V.name,className:"w-12 h-12 rounded-full object-cover border",onError:W=>{W.target.src="/placeholder-avatar.png"}}):A.jsx("div",{className:"w-12 h-12 rounded-full  flex items-center justify-center",children:A.jsx("span",{className:"text-gray- text-xs",children:"No Image"})})}),className:"w-20"},{id:"name",header:"Name",accessor:"name",sortable:!0},{id:"avatar_gender",header:"Gender",cell:V=>A.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800 capitalize",children:V.avatar_gender}),sortable:!0},{id:"status",header:"Status",cell:V=>A.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium ${V.status?"bg-green-100 text-green-800":"bg-red-100 text-red-800"}`,children:V.status?"Active":"Inactive"}),sortable:!0},{id:"createdAt",header:"Created",cell:V=>A.jsx("span",{className:"text-sm ",children:new Date(V.createdAt).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}),sortable:!0},{id:"actions",header:"Actions",cell:V=>A.jsxs("div",{className:"flex items-center space-x-2 ",children:[A.jsx(Pt,{variant:"ghost",size:"sm",onClick:()=>E(V),className:"p-1 h-8 w-8",title:"Edit Avatar",children:A.jsx(oU,{className:"h-4 w-4 text-blue-500"})}),A.jsx(Pt,{variant:"ghost",size:"sm",onClick:()=>I(V),className:"p-1 h-8 w-8 text-red-600 hover:text-red-700",title:"Delete Avatar",children:A.jsx(Rie,{className:"h-4 w-4"})})]}),className:"w-32"}];return n?A.jsxs("div",{className:"flex items-center justify-center py-12",children:[A.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-gray-900"}),A.jsx("span",{className:"ml-2 text-text-muted",children:"Loading avatars..."})]}):A.jsxs("div",{className:"",children:[A.jsx("div",{className:"mt-2",children:A.jsx(Po,{})}),A.jsx("div",{className:"flex items-center justify-between",children:A.jsx("h1",{className:"text-xl font-semibold text-text-muted",children:"Avatar List"})}),A.jsx(aa,{data:e,columns:H,defaultPageSize:10,pageSizeOptions:[10,20,50]}),A.jsx(La,{isOpen:!!a,onClose:P,title:"Edit Avatar",size:"sm",children:a&&A.jsx("div",{className:"p-6",children:A.jsx(fY,{avatar:a,mode:"edit",onUpdate:M})})}),v&&A.jsx(La,{isOpen:!!v,onClose:R,title:"View Avatar",size:"sm",children:A.jsxs("div",{className:"space-y-4",children:[A.jsx("div",{className:"flex justify-center",children:v.avatar_media?A.jsx("img",{src:v.avatar_media,alt:v.name,className:"w-24 h-24 sm:w-32 sm:h-32 rounded-full object-cover border-4 border-gray-200 shadow-lg",onError:V=>{V.target.src="/placeholder-avatar.png"}}):A.jsx("div",{className:"w-24 h-24 sm:w-32 sm:h-32 rounded-full bg-gray-200 flex items-center justify-center border-4 border-gray-300",children:A.jsx("span",{className:"text-gray-500 text-xs sm:text-sm",children:"No Image"})})}),A.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 pt-4 border-t",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"ID"}),A.jsx("p",{className:"text-sm text-gray-900",children:v.avatar_id})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Name"}),A.jsx("p",{className:"text-sm text-gray-900",children:v.name})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Gender"}),A.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800 capitalize",children:v.avatar_gender})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Status"}),A.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium ${v.status?"bg-green-100 text-green-800":"bg-red-100 text-red-800"}`,children:v.status?"Active":"Inactive"})]}),A.jsxs("div",{className:"sm:col-span-2",children:[A.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Created"}),A.jsx("p",{className:"text-sm text-gray-900",children:new Date(v.createdAt).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})})]}),A.jsxs("div",{className:"sm:col-span-2",children:[A.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Updated"}),A.jsx("p",{className:"text-sm text-gray-900",children:new Date(v.updatedAt).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})})]})]})]})}),A.jsx(La,{isOpen:!!p,onClose:U,title:"Delete Avatar",size:"sm",children:p&&A.jsxs("div",{className:"space-y-4 p-6",children:[A.jsxs("div",{className:"flex items-center",children:[A.jsx("div",{className:"flex-shrink-0",children:A.jsx("svg",{className:"w-8 h-8 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),A.jsx("div",{className:"ml-3",children:A.jsxs("p",{className:"text-sm text-gray-500",children:['Are you sure you want to delete "',p.name,'"?',A.jsx("br",{}),"This action cannot be undone."]})})]}),A.jsxs("div",{className:"flex justify-end space-x-3 pt-4 border-t",children:[A.jsx("button",{type:"button",onClick:U,disabled:x,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:opacity-50",children:"Cancel"}),A.jsx("button",{type:"button",onClick:B,disabled:x,className:"px-4 py-2 text-sm font-medium text-white rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:opacity-50",style:{backgroundColor:"#dc2626",borderColor:"transparent"},onMouseEnter:V=>V.target.style.backgroundColor="#b91c1c",onMouseLeave:V=>V.target.style.backgroundColor="#dc2626",children:x?"Deleting...":"Delete"})]})]})})]})}function Pke(){var P,M,I,B;const[t,e]=F.useState([]),[r,n]=F.useState(!0),[o,a]=F.useState(""),{toast:f}=Ro(),[p,m]=F.useState([]),[v,y]=F.useState(null),{checkDemo:x}=lo(),k=async(U=1)=>{try{n(!0);const H=await bu.getReportedEntities({page:U,limit:10,type:"user"});H.status?e(H.data.data):f({title:"Error",description:"Failed to fetch reported users",variant:"error"})}catch(H){console.error("Error fetching reports:",H),f({title:"Error",description:"Failed to fetch reported users",variant:"error"})}finally{n(!1)}};F.useEffect(()=>{k(1)},[]);const S=async U=>{var V,W;if(y(U),!((V=U.reported_user)!=null&&V.user_id))return;const H=await bu.getReportDetails((W=U.reported_user)==null?void 0:W.user_id,"user");m(H.data)},O=()=>{y(null)},C=U=>{var H,V,W,G;return{type:"User",name:((H=U.reported_user)==null?void 0:H.user_name)||"Unknown User",image:(V=U.reported_user)==null?void 0:V.profile_pic,id:(W=U.reported_user)==null?void 0:W.user_id,is_blocked:((G=U.reported_user)==null?void 0:G.blocked_by_admin)??!1}},R=U=>new Date(U).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}),E=[{header:"Reported user id",cell:U=>{const H=C(U);return A.jsx("div",{children:A.jsx("div",{className:"text-sm font-medium ",children:H.id})})}},{header:"Reported User",cell:U=>{const H=C(U);return A.jsxs("div",{className:"flex items-center",children:[H.image&&A.jsx("div",{className:"flex-shrink-0 h-8 w-8 mr-3",children:A.jsx("img",{className:"h-8 w-8 rounded-full object-cover",src:H.image,alt:H.name,onError:V=>{const W=V.target;W.src="/assets/Avatar.png"}})}),A.jsxs("div",{children:[A.jsx("div",{className:"text-sm font-medium ",children:H.name}),A.jsx("div",{className:"text-sm text-text-muted",children:H.type})]})]})}},{header:"Report Counts",cell:U=>A.jsx("div",{className:"flex items-center",children:A.jsx("div",{className:"ml-4",children:A.jsx("div",{className:"text-sm font-medium ",children:U.report_count})})})},{header:"Block",cell:U=>{var H;return A.jsx(Xl,{checked:((H=U.reported_user)==null?void 0:H.blocked_by_admin)||!1,onChange:async V=>{if(x())return;const W=C(U);e(G=>G.map(Z=>{var K,Q;return((K=Z.reported_user)==null?void 0:K.user_id)==((Q=U.reported_user)==null?void 0:Q.user_id)?{...Z,reported_user:Z.reported_user?{...Z.reported_user,blocked_by_admin:V}:Z.reported_user}:Z}));try{await lu.blockUserByAdmin({id:W.id})}catch(G){console.error("Block toggle failed",G),e(Z=>Z.map(K=>{var Q;return K.id===((Q=U.reported_user)==null?void 0:Q.user_id)?{...K,reported_user:K.reported_user?{...K.reported_user,blocked_by_admin:!V}:K.reported_user}:K}))}},className:"p-2"})}},{header:"Actions",cell:U=>A.jsx(Pt,{variant:"destructive",size:"sm",onClick:()=>S(U),className:"p-2 text-primary-dark bg-primary-dark/20",children:A.jsx(q4,{className:"h-4 w-4"})})}];return r?A.jsx("div",{className:"bg-white shadow rounded-lg",children:A.jsx("div",{className:"p-6",children:A.jsx("div",{className:"animate-pulse space-y-4",children:[...Array(5)].map((U,H)=>A.jsxs("div",{className:"flex items-center space-x-4",children:[A.jsx("div",{className:"rounded-full bg-gray-200 h-10 w-10"}),A.jsxs("div",{className:"flex-1 space-y-2",children:[A.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4"}),A.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2"})]})]},H))})})}):A.jsxs("div",{className:"space-y-4",children:[A.jsx("div",{className:"mt-2",children:A.jsx(Po,{})}),A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsx("div",{children:A.jsx("h1",{className:"text-xl font-semibold text-table-header-text",children:"Reported Users List"})}),A.jsxs("div",{className:"flex items-center gap-2 relative w-full max-w-md",children:[A.jsx(sh,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 font-extrabold text-text-muted"}),A.jsx(Dr,{value:o,onChange:U=>a(U.target.value),placeholder:"Search reports...",className:"pl-9 bg-secondary/80 text-text-muted border border-table-divider w-full min-w-[200px]"})]})]}),A.jsx(aa,{data:t,columns:E,defaultPageSize:10}),v&&A.jsx(La,{isOpen:!!v,onClose:O,title:`Report Details (${v==null?void 0:v.report_count})`,size:"md",children:A.jsxs("div",{className:"space-y-6 overflow-auto w-[100vw] max-h-[80vh] md:w-[30vw]",children:[A.jsxs("div",{children:[A.jsx("h4",{className:"text-lg font-medium text-table-header-text mb-3",children:"Reported User"}),A.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:space-x-4 sm:gap-5 space-y-3 sm:space-y-0",children:[A.jsx("img",{className:"h-12 w-12 rounded-full object-cover mx-auto sm:mx-0",src:((P=v.reported_user)==null?void 0:P.profile_pic)||"/assets/Avatar.png",alt:(M=v.reported_user)==null?void 0:M.user_name,onError:U=>{const H=U.target;H.src="/assets/Avatar.png"}}),A.jsxs("div",{className:"text-center sm:text-left",children:[A.jsx("p",{className:"text-sm font-medium text-table-header-text",children:(I=v.reported_user)==null?void 0:I.user_name}),A.jsxs("p",{className:"text-sm text-table-header-text",children:["User ID: ",(B=v.reported_user)==null?void 0:B.user_id]}),A.jsx("p",{className:"text-sm text-table-header-text",children:"Type: User"})]})]})]}),A.jsxs("div",{children:[A.jsx("h4",{className:"text-lg font-medium text-table-header-text mb-3",children:"Reports"}),p&&p.map(U=>{var H;return A.jsxs("div",{className:"space-y-6 border-t pt-4 mt-4",children:[A.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:gap-3 sm:space-x-4 space-y-3 sm:space-y-0",children:[A.jsx("img",{className:"h-12 w-12 rounded-full object-cover mx-auto sm:mx-0",src:U.reporter.profile_pic||"/assets/Avatar.png",alt:U.reporter.user_name,onError:V=>{const W=V.target;W.src="/assets/Avatar.png"}}),A.jsxs("div",{className:"text-center sm:text-left",children:[A.jsx("p",{className:"text-sm font-medium text-table-header-text",children:U.reporter.user_name||"Anonymous"}),A.jsxs("p",{className:"text-sm text-table-header-text",children:["User ID: ",U.reporter.user_id]})]})]}),A.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-table-header-text mb-1",children:"Report ID"}),A.jsxs("p",{className:"text-sm text-text-muted",children:["#",U.report_id]})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-table-header-text mb-1",children:"Report Type"}),A.jsx("p",{className:"text-sm text-text-muted",children:((H=U.Report_type)==null?void 0:H.report_text)||"Unknown"})]}),A.jsxs("div",{className:"sm:col-span-2",children:[A.jsx("label",{className:"block text-sm font-medium text-table-header-text mb-1",children:"Report Text"}),A.jsx("p",{className:"text-sm text-text-muted capitalize break-words",children:U.report_text||"Unknown"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-table-header-text mb-1",children:"Created"}),A.jsx("p",{className:"text-sm text-text-muted",children:R(U.createdAt)})]})]})]},U.report_id)})]}),A.jsx("div",{className:"mb-7"})]})})]})}const zke=[{id:"general",label:"General Settings",icon:"⚙️"},{id:"sms",label:"SMS Configuration",icon:"📱"},{id:"push",label:"Push Notification Configuration",icon:"🔔"},{id:"purchase",label:"Purchase Code",icon:"🛒"}],Mke=({activeSection:t,onSectionChange:e})=>A.jsx("div",{className:"  lg:min-h-screen",children:A.jsx("div",{className:"p-3 mt-4",children:A.jsx("nav",{className:"space-y-2",children:zke.map(r=>A.jsxs("button",{onClick:()=>e(r.id),className:`w-full flex items-center p-3  text-left rounded-lg transition-all duration-200 ${t===r.id?"bg-primary-dark text-button-text shadow-md":"text-table-header-text hover:bg-table-row-hover border border-table-divider"}`,children:[A.jsx("div",{className:"flex items-center justify-center w-8 h-8 mr-3 flex-shrink-0",children:A.jsx("span",{className:"text-lg",children:r.icon})}),A.jsx("div",{className:"flex-1 min-w-0",children:A.jsx("span",{className:"font-medium  leading-5 block",children:r.label})})]},r.id))})})}),Ike=({data:t,onChange:e,onFileChange:r})=>A.jsxs("div",{className:"w-full",children:[A.jsx("h3",{className:"text-lg font-extrabold text-table-header-text mb-4 px-2",children:"General Settings"}),A.jsxs("div",{className:"border border-table-divider rounded-md grid grid-cols-1 md:grid-cols-2 gap-6 p-4 mb-4",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"App/Website Name"}),A.jsx(Dr,{type:"text",value:t.app_name||"",onChange:n=>e("app_name",n.target.value),placeholder:"Enter app/website name",className:"w-full border border-table-divider"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"Contact Email"}),A.jsx(Dr,{type:"email",value:t.app_email||"",onChange:n=>e("app_email",n.target.value),placeholder:"Enter contact email",className:"w-full border border-table-divider"})]})]}),A.jsx("div",{className:"border border-table-divider rounded-md grid grid-cols-1 md:grid-cols-2 gap-6 p-4 mb-4",children:[{label:"Web Logo Light",field:"web_logo_light"},{label:"Web Logo Dark",field:"web_logo_dark"},{label:"App Logo Light",field:"app_logo_light"},{label:"App Logo Dark",field:"app_logo_dark"}].map(({label:n,field:o})=>A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:n}),A.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:space-x-4 space-y-2 sm:space-y-0",children:[A.jsx("input",{type:"file",id:`${o}-upload`,accept:"image/*",className:"hidden",onChange:a=>r(o,a)}),A.jsx("label",{htmlFor:`${o}-upload`,className:"px-3 py-2  text-sm text-black bg-gray-200 rounded-lg cursor-pointer hover:opacity-90 transition",children:"Choose File"}),A.jsx("span",{className:"text-sm text-text-muted truncate max-w-[200px]",children:t[o]?String(t[o]).split("/").pop():"No file chosen"})]}),t[o]&&A.jsx("div",{className:"mt-3",children:A.jsx("img",{src:String(t[o]),alt:n,className:"h-16 w-auto object-contain"})})]},o))}),A.jsxs("div",{className:"border border-table-divider rounded-md grid grid-cols-1 md:grid-cols-2 gap-6 p-4",children:[A.jsx(Ude,{label:"Primary Color",value:t.app_primary_color||"#FCC604",onChange:n=>e("app_primary_color",n),className:"text-text-muted"}),A.jsxs("div",{className:"flex flex-col",children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"Button Text Color"}),A.jsx("div",{className:"flex gap-4",children:[{color:"#FFFFFF",label:"White"},{color:"#000000",label:"Black"}].map(({color:n,label:o})=>{const a=t.app_secondary_color===n;return A.jsx("div",{onClick:()=>e("app_secondary_color",n),className:`relative w-12 h-12 rounded-md border-2 cursor-pointer transition 
              ${a?"border-primary shadow-md":"border-table-divider"}
            `,style:{backgroundColor:n},children:a&&A.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"absolute top-1 right-1 h-5 w-5 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})},n)})})]}),A.jsxs("div",{className:"md:col-span-2",children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"Copyright Text"}),A.jsx(Dr,{type:"text",value:t.copyright_text||"",onChange:n=>e("copyright_text",n.target.value),placeholder:"Enter copyright text",className:"w-full border border-table-divider"})]})]})]}),Lke=({data:t,onChange:e})=>A.jsxs("div",{className:"space-y-6",children:[A.jsx("h3",{className:"text-lg font-extrabold text-table-header-text mb-6",children:"SMS Configuration"}),A.jsxs("div",{className:"grid grid-cols-1 gap-6 border-1 border-table-divider p-4 rounded-lg",children:[A.jsxs("div",{children:[A.jsxs("div",{className:"w-full flex justify-between items-center mb-6",children:[A.jsx("div",{className:"text-md font-bold text-table-header-text ",children:"Twilio Settings"}),A.jsx(Xl,{id:"is_twilio_enabled",checked:t.is_twilio_enabled=="true",onChange:r=>e("is_twilio_enabled",r.toString()),label:"Twilio"})]}),A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"Twilio Account SID"}),A.jsx(Dr,{type:"text",value:t.twilio_account_sid||"",onChange:r=>e("twilio_account_sid",r.target.value),placeholder:"Enter Twilio Account SID",className:"w-full border border-table-divider"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"Twilio Auth Token"}),A.jsx(Dr,{type:"password",value:t.twilio_auth_token||"",onChange:r=>e("twilio_auth_token",r.target.value),placeholder:"Enter Twilio Auth Token",className:"w-full border border-table-divider"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"Twilio Phone Number"}),A.jsx(Dr,{type:"tel",value:t.twilio_phone_number||"",onChange:r=>e("twilio_phone_number",r.target.value),placeholder:"Enter Twilio Phone Number",className:"w-full border border-table-divider"})]})]}),A.jsxs("div",{className:"grid grid-cols-1 gap-6 border-1 border-table-divider p-4 rounded-lg",children:[A.jsxs("div",{children:[A.jsxs("div",{className:"w-full flex justify-between items-center mb-6",children:[A.jsx("div",{className:"text-md font-bold text-table-header-text ",children:"MSG 91 Settings"}),A.jsx(Xl,{id:"is_msg91_enabled",checked:t.is_msg91_enabled=="true",onChange:r=>e("is_msg91_enabled",r.toString()),label:"MSG 91"})]}),A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"MSG 91 Sender ID"}),A.jsx(Dr,{type:"text",value:t.msg91_sender_id||"",onChange:r=>e("msg91_sender_id",r.target.value),placeholder:"Enter  MSG 91 Sender ID",className:"w-full border border-table-divider"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"MSG 91 API Key"}),A.jsx(Dr,{type:"password",value:t.msg91_api_key||"",onChange:r=>e("msg91_api_key",r.target.value),placeholder:"Enter MSG 91 API Key",className:"w-full border border-table-divider"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"MSG 91 Template ID"}),A.jsx(Dr,{type:"tel",value:t.msg91_template_id||"",onChange:r=>e("msg91_template_id",r.target.value),placeholder:"Enter MSG 91 Template ID",className:"w-full border border-table-divider"})]})]})]}),Nke=({data:t,onChange:e})=>A.jsxs("div",{className:"space-y-6",children:[A.jsx("h3",{className:"text-lg font-semibold text-table-header-text mb-6",children:"Push Notification Configuration"}),A.jsxs("div",{className:"grid grid-cols-1 gap-6 border-1 border-table-divider p-4 rounded-lg",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"OneSignal App ID"}),A.jsx(Dr,{type:"text",value:t.one_signal_app_id||"",onChange:r=>e("one_signal_app_id",r.target.value),placeholder:"Enter OneSignal App ID",className:"w-full border border-table-divider"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"OneSignal API Key"}),A.jsx(Dr,{type:"password",value:t.one_signal_api_key||"",onChange:r=>e("one_signal_api_key",r.target.value),placeholder:"Enter OneSignal API Key",className:"w-full border border-table-divider"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-text-muted mb-2",children:"Android Channel ID"}),A.jsx(Dr,{type:"text",value:t.android_channel_id||"",onChange:r=>e("android_channel_id",r.target.value),placeholder:"Enter Android Channel ID",className:"w-full border border-table-divider"})]})]})]});class Dke extends Ri{constructor(){super("")}async getConfig(){return this.get("/config")}async updateConfig(e){if(e instanceof FormData)return this.put("/config",e,{headers:{"Content-Type":"multipart/form-data"}});{const r={};return Object.entries(e).forEach(([n,o])=>{o!==void 0&&(r[n]=o)}),this.put("/config",r)}}async deactivate(){return this.post("/config/deactivate",{headers:{"Content-Type":"multipart/form-data"}})}}const lf=new Dke,Bke=()=>{const[t,e]=F.useState("general"),[r,n]=F.useState(null),[o,a]=F.useState(null),[f,p]=F.useState(!0),[m,v]=F.useState(!1),[y,x]=F.useState(null),[k,S]=F.useState(!1),{fetchConfig:O}=ub(),{checkDemo:C}=lo();F.useEffect(()=>{R()},[]);const R=async()=>{try{p(!0);const V=await lf.getConfig();n(V.data),o||a(JSON.parse(JSON.stringify(V.data))),x(null)}catch(V){x("Failed to load configuration"),console.error("Error loading config:",V)}finally{p(!1)}},E=V=>["app_logo_light","app_logo_dark","web_logo_light","web_logo_dark","email_banner"].includes(V),P=V=>V instanceof File,M=(V,W)=>{if(!W.target.files||W.target.files.length===0)return;const G=W.target.files[0];if(!G)return;const Z=URL.createObjectURL(G);r&&n({...r,[V]:Z}),W.target.value=""},I=(V,W)=>{console.log(r==null?void 0:r.is_msg91_enabled),console.log(r==null?void 0:r.is_twilio_enabled),r&&n({...r,[V]:W})},B=async()=>{if(!(!r||!o)&&!C()){if(t==="purchase"){await lf.deactivate(),window.location.reload();return}try{v(!0);const V={};if(Object.keys(r).forEach(G=>{const Z=r[G],K=o[G];JSON.stringify(Z)!==JSON.stringify(K)&&(V[G]=Z)}),Object.keys(V).length===0)return;if(Object.entries(V).some(([G,Z])=>{if(!E(G))return!1;const K=Z,Q=o==null?void 0:o[G];return P(K)||typeof K=="string"&&(K.startsWith("blob:")||K!==Q)})){const G=new FormData;for(const[Z,K]of Object.entries(V)){if(!E(Z))continue;const Q=K,oe=o==null?void 0:o[Z];if(Q!==void 0)if(P(Q))G.append(Z,Q),delete V[Z];else if(typeof Q=="string"&&Q.startsWith("blob:"))try{const re=await(await fetch(Q)).blob(),ne=new File([re],`${Z}-${Date.now()}.${re.type.split("/")[1]||"png"}`,{type:re.type});G.append(Z,ne),delete V[Z]}catch(ie){console.error(`Error processing file ${Z}:`,ie),delete V[Z]}else typeof Q=="string"&&Q!==oe&&(G.append(Z,Q),delete V[Z])}Object.entries(V).forEach(([Z,K])=>{K!=null&&G.append(Z,String(K))}),await lf.updateConfig(G),O()}else if(Object.keys(V).length>0)await lf.updateConfig(V),O();else return;await R(),console.log("Configuration saved successfully")}catch(V){throw console.error("Error saving configuration:",V),x("Failed to save configuration"),V}finally{window.location.reload()}}},U=V=>{e(V),S(!1)},H=()=>{if(!r)return null;switch(t){case"general":return A.jsx(Ike,{data:r,onChange:I,onFileChange:M});case"sms":return A.jsx(Lke,{data:r,onChange:I});case"push":return A.jsx(Nke,{data:r,onChange:I});case"purchase":return A.jsxs("div",{className:"space-y-6",children:[A.jsx("h3",{className:"text-lg font-semibold text-table-header-text",children:"Purchase Code"}),A.jsx("p",{className:"text-text-muted",children:"Your purchase code configuration:"}),A.jsx("div",{className:"border border-gray-200 rounded-md p-4",children:A.jsx("p",{className:"text-sm font-mono text-text-muted break-all",children:(r==null?void 0:r.masked_purchase_code)||"No purchase code found."})})]});default:return A.jsxs("div",{className:"space-y-6",children:[A.jsx("h3",{className:"text-lg font-semibold text-text-dark",children:"Settings"}),A.jsx("p",{className:"text-text-muted",children:"Select a section from the sidebar to configure settings."})]})}};return f?A.jsx("div",{className:"flex items-center justify-center min-h-screen",children:A.jsx(cw,{size:"lg"})}):A.jsxs("div",{className:"min-h-screen bg-secondary rounded-4xl",children:[A.jsx("div",{className:"px-2 sm:px-4 lg:px-6 my-3",children:A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsxs("div",{children:[A.jsx("div",{className:"text-xl font-semibold text-table-header-text mb-3",children:"Settings"}),A.jsx(Po,{})]}),A.jsx("button",{onClick:()=>S(!k),className:"lg:hidden p-2 rounded-md border border-table-divider bg-white shadow-sm","aria-label":"Toggle sidebar",children:A.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:k?A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}):A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})})]})}),A.jsx("div",{className:"relative",children:A.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 lg:gap-6 border border-table-divider mt-4 rounded-lg mx-2 sm:mx-4 lg:mx-6 p-2 sm:p-4",children:[k&&A.jsx("div",{className:"lg:hidden fixed inset-0 bg-black bg-opacity-50 z-40",onClick:()=>S(!1)}),A.jsx("div",{className:`
            lg:relative lg:translate-x-0 lg:w-64 xl:w-96
            ${k?"fixed inset-y-0 left-0 z-50 w-64 transform translate-x-0":"fixed inset-y-0 left-0 z-50 w-64 transform -translate-x-full lg:translate-x-0"}
            transition-transform duration-300 ease-in-out
            bg-white lg:bg-transparent
            border-r lg:border-r-0 border-table-divider
            overflow-y-auto
            lg:overflow-visible
          `,children:A.jsxs("div",{className:"p-4 lg:p-0",children:[A.jsx("div",{className:"lg:hidden flex justify-end mb-4",children:A.jsx("button",{onClick:()=>S(!1),className:"p-2 rounded-md text-gray-400 hover:text-gray-600",children:A.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})}),A.jsx("div",{className:"rounded-lg lg:rounded-[30px] overflow-hidden",children:A.jsx(Mke,{activeSection:t,onSectionChange:U})})]})}),A.jsx("div",{className:"flex-1 min-w-0 w-full",children:A.jsx("div",{className:"h-full",children:A.jsxs("div",{className:"bg-secondary rounded-lg p-3 sm:p-4 lg:p-6",children:[y&&A.jsx("div",{className:"mb-6 p-4 bg-red-50 border border-red-200 rounded-lg",children:A.jsx("p",{className:"text-red-600 text-sm",children:y})}),A.jsx("div",{className:"overflow-x-auto",children:H()}),A.jsx("div",{className:"mt-8 pt-6",children:A.jsx("div",{className:"flex justify-center",children:A.jsx(Pt,{onClick:B,disabled:m,className:"w-full sm:w-40 bg-primary text-button-text font-semibold py-2 px-4 rounded-md transition-colors duration-200 flex items-center justify-center",children:m?A.jsxs(A.Fragment,{children:[A.jsx(cw,{size:"sm",className:"mr-2"}),t==="purchase"?"Deactivating...":"Saving..."]}):t==="purchase"?"Deactivate":"Save Changes"})})})]})})})]})})]})};function Fke({mode:t="edit",language:e,onUpdate:r}){var S;const{close:n}=db(),{toast:o}=Ro(),[a,f]=F.useState(!1),{checkDemo:p}=lo(),m=F.useMemo(()=>tW().getData(),[]),v=dh({defaultValues:{language_alignment:(e==null?void 0:e.language_alignment)||"LTR",language:(e==null?void 0:e.language)||"",country:""},mode:"onChange"}),y=!((S=v.watch("language"))!=null&&S.trim()),x=O=>{if(!O&&O!=="")return null;if(typeof O=="object"&&O!==null&&"value"in O&&"label"in O)return m.find(C=>String(C.value)===String(O.value))||null;if(typeof O=="string"){const C=O.trim();if(C.startsWith("{")&&C.endsWith("}"))try{const P=JSON.parse(C);if(P&&(P.code||P.value||P.label)){const M=P.code||P.value||P.label;return m.find(I=>String(I.value).toLowerCase()===String(M).toLowerCase())||null}}catch{}const R=m.find(P=>String(P.value).toLowerCase()===C.toLowerCase());if(R)return R;const E=m.find(P=>String(P.label).toLowerCase().includes(C.toLowerCase()));if(E)return E;if(C.length===3){const P=C.slice(0,2),M=m.find(I=>String(I.value).toLowerCase()===P.toLowerCase());if(M)return M}return null}return null};F.useEffect(()=>{if(t==="edit"&&e){const O=e.country,C=x(O),R=C?String(C.value):typeof O=="string"?O:"";v.reset({language_alignment:e.language_alignment||"LTR",language:e.language||"",country:R})}},[t,e,m]);const k=async O=>{var C,R;if(!p()){console.log("Form submitted with data:",O),f(!0);try{const E=x(O.country),P=E?String(E.value):O.country||"";let M;if(t==="edit"&&(e!=null&&e.language_id)){const I={language_alignment:O.language_alignment,language:O.language,country:P,status:e.status,default_status:e.default_status};console.log("Updating language with:",I),M=await Zi.editLanguage(e.language_id,I),M!=null&&M.status&&r&&r({...e,...I,language_id:e.language_id})}else{const I={language_alignment:O.language_alignment,language:O.language,country:P,status:!0,default_status:!1};console.log("Adding new language:",I),M=await Zi.addLanguage(I)}if(M!=null&&M.status)o({title:"Success!",description:`Language ${t==="edit"?"updated":"added"} successfully!`,variant:"success"}),t==="edit"&&r&&(R=(C=M.data)==null?void 0:C.row)!=null&&R[0]&&r({...M.data.row[0],language_id:e==null?void 0:e.language_id}),v.reset(),n();else throw new Error((M==null?void 0:M.message)||`Failed to ${t==="edit"?"update":"upload"} language`)}catch(E){console.error(E),o({title:"Error",description:`Failed to ${t==="edit"?"update":"upload"} language. Please try again.`,variant:"error"})}finally{f(!1)}}};return A.jsx("div",{className:"space-y-4 sm:space-y-6 px-3 sm:px-4",children:A.jsxs(fh,{form:v,onSubmit:k,className:"space-y-4 sm:space-y-6",children:[A.jsx(Yo,{name:"language",children:A.jsxs("div",{className:"relative",children:[A.jsx("input",{placeholder:"Enter Language",disabled:a||t==="edit",title:t==="edit"?"Language name cannot be changed":"",value:v.watch("language"),onChange:O=>v.setValue("language",O.target.value),className:`flex h-10 w-full sm:w-[30vw] max-w-full rounded-md border px-3 py-2 mt-2 text-sm
            ${a||t==="edit"?"bg-gray-50 text-text-muted cursor-not-allowed border-table-divider":"border-table-divider focus:border-blue-500 focus:ring-2 focus:ring-blue-200"}
            outline-none`}),t==="edit"&&A.jsx("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-sm select-none",title:"Language name cannot be changed","aria-hidden":!0,children:"Language name cannot be changed"})]})}),A.jsxs(ko,{children:[A.jsx(Ci,{required:!0,children:"Language Alignment"}),A.jsx(jo,{children:A.jsx(Yo,{name:"language_alignment",children:A.jsx("div",{className:"flex flex-col sm:flex-row gap-4 sm:gap-6 mt-2 text-text-muted",children:["LTR","RTL"].map(O=>A.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-sm sm:text-base",children:[A.jsx("input",{type:"radio",value:O,checked:v.watch("language_alignment")===O,onChange:()=>v.setValue("language_alignment",O),className:"w-4 h-4"}),O]},O))})})}),A.jsx(So,{})]}),A.jsxs(ko,{children:[A.jsx(Ci,{required:!0,children:"Country"}),A.jsx(jo,{children:A.jsx(yde,{name:"country",control:v.control,render:({field:O})=>{const C=x(O.value);return A.jsx(eW,{options:m,isSearchable:!0,value:C,onChange:R=>{R?O.onChange(String(R.value)):O.onChange("")},isDisabled:a,classNamePrefix:"rs",classNames:{control:({isFocused:R})=>`flex items-center bg-secondary text-text-muted border border-table-divider w-full rounded-md px-2 py-1 shadow-sm min-h-[38px] ${R?"ring-1 ring-primary":"border-secondary ring-1 ring-text-muted"}`,option:({isFocused:R,isSelected:E})=>`px-3 py-2 cursor-pointer ${E?"bg-primary text-white":R?"bg-secondary text-primary":"text-text-muted"}`}})}})}),A.jsx(So,{})]}),A.jsx("div",{className:"flex justify-center pt-2 sm:pt-2",children:A.jsx(Pt,{type:"submit",disabled:y||a,className:"w-32 sm:w-40 bg-primary text-button-text  font-semibold py-2 text-sm sm:text-base rounded-md transition-colors duration-200",children:a?t==="edit"?"Updating...":"Uploading...":"Submit"})})]})})}function Hke(){const t=Va(),[e,r]=F.useState([]),[n,o]=F.useState(!1),[a,f]=F.useState(null),[p,m]=F.useState(),{checkDemo:v}=lo(),y=O=>{r(C=>C.map(R=>R.id===O.language_id?{...R,...O}:R)),m(null)};function x(O){m({language_id:O.id,language:O.language,language_alignment:O.language_alignment,country:O.country})}const k=[{header:"ID",cell:O=>A.jsxs("span",{className:"text-primary-600",children:["#",O.id]}),className:"w-20"},{header:"Language",cell:O=>A.jsxs("div",{children:[A.jsx("div",{className:"text-table-text text-sm font-medium",children:O.language}),A.jsx("div",{className:"text-xs text-text-muted",children:O.languageShort})]})},{header:"Country",accessor:"country",cell:O=>A.jsx("span",{className:"text-primary-600",children:O.country}),sortable:!0},{header:"Language Alignment",cell:O=>A.jsx("span",{className:O.language_alignment?"text-green-600 border border-emerald-100 px-2 py-1 rounded-full text-xs":"text-red-500 border border-red-400 px-2 py-1 rounded-full text-xs",children:O.language_alignment})},{header:"Status",cell:O=>A.jsx(Xl,{checked:O.status,onChange:async C=>{if(!v()){r(R=>R.map(E=>E.id==O.id?{...E,status:C}:E));try{await Zi.editLanguage(O.id,{status:C})}catch(R){console.error("Block toggle failed",R),r(E=>E.map(P=>P.id===O.id?{...P,status:!C}:P))}}},className:"p-2"}),className:"w-24"},{header:"Default",cell:O=>A.jsx(Xl,{checked:O.defaultStatus,disabled:e.length==1,onChange:async C=>{if(!v()){r(R=>{if(C)return R.map(E=>E.id===O.id?{...E,defaultStatus:!0,status:!0}:{...E,defaultStatus:!1});{const E=[...R].sort((I,B)=>I.id-B.id);if(!E[0]||!E[1])return R;const P=O.id===E[0].id;let M=E[0].id;return P&&E.length>1?M=E[1].id:P||(M=E[0].id),R.map(I=>({...I,defaultStatus:I.id===M}))}});try{if(await Zi.editLanguage(O.id,{default_status:C,...C&&{status:!0}}),!C){const R=[...e].sort((E,P)=>E.id-P.id);if(R[0]&&R[1]){const E=O.id===R[0].id;let P=R[0].id;E&&R.length>1&&(P=R[1].id),P!==O.id&&await Zi.editLanguage(P,{default_status:!0})}}}catch(R){console.error("Toggle failed",R),r(E=>E.map(P=>P.id===O.id?{...P,defaultStatus:!C}:P))}}},className:"p-2"}),className:"w-24"},{header:"Actions",cell:O=>A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx(Pt,{variant:"ghost",size:"sm",onClick:()=>x(O),className:"p-1 h-8 w-8",title:"Edit Language",children:A.jsx(oU,{className:"h-4 w-4 text-blue-500"})}),A.jsx(Pt,{variant:"ghost",size:"sm",onClick:()=>t(`/language/translated-words/${O.id}`),className:"p-1 h-8 w-8",title:"Manage Translations",children:A.jsx(PT,{className:"h-4 w-4 text-green-500"})})]})}],S=async()=>{var O;o(!0),f(null);try{const C=await Zi.getLanguageList({page:1,limit:50});console.log("API Response:",C);let R=[];if(C.status)if((O=C.data)!=null&&O.Records?R=C.data.Records:C.data&&Array.isArray(C.data)?R=C.data:Array.isArray(C)&&(R=C),R&&R.length>0){const E=R.map(P=>({id:P.language_id||P.id,language:P.language||P.name||"Unknown",languageShort:P.language_short||P.short||P.code||"",country:P.country||"Unknown",status:P.status!==void 0?P.status:!0,language_alignment:P.language_alignment||"Unknown",defaultStatus:P.default_status!==void 0?P.default_status:!1,createdAt:P.createdAt||P.created_at||new Date().toISOString(),updatedAt:P.updatedAt||P.updated_at||new Date().toISOString()}));r(E)}else r([]);else console.log("Response structure:",C),f(C.message||"Failed to load languages")}catch(C){console.error("Failed to load languages:",C),f("Failed to load languages"),r([])}finally{o(!1)}};return F.useEffect(()=>{S()},[]),A.jsxs("div",{className:"space-y-4",children:[A.jsx("div",{className:"mt-2",children:A.jsx(Po,{})}),a&&A.jsx("div",{className:"bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-lg",children:a}),A.jsx(aa,{data:e,columns:k,defaultPageSize:10}),A.jsx(La,{isOpen:!!p,onClose:()=>m(null),title:"Edit Language",size:"sm",children:p&&A.jsx("div",{className:"p-6",children:A.jsx(Fke,{language:p,mode:"edit",onUpdate:y})})})]})}const xE=[{header:"ID",cell:t=>A.jsxs("span",{className:"text-primary-600",children:["#",t.id]}),className:"w-24"},{header:"Full Name",cell:t=>A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("img",{src:t.group_icon,className:"h-8 w-8 rounded-full",alt:"avatar"}),A.jsxs("div",{children:[A.jsx("div",{className:"text-table-text text-sm font-medium",children:t.group_name}),A.jsx("div",{className:"text-xs text-text-muted",children:t.group_description})]})]})},{header:"Participants",cell:t=>A.jsx("span",{children:t.participants.length}),sortable:!0,accessor:"participants"},{header:"Creation date",accessor:"createdAt",cell:t=>new Date(t.createdAt).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"}),sortable:!0},{header:"Actions",cell:t=>A.jsx(Uke,{group:t}),className:"w-56"}],Uke=({group:t})=>{const[e,r]=F.useState(!1);return A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"inline-flex items-center gap-3 w-full",children:A.jsx(Pt,{size:"sm",className:"text-black bg-primary-dark hover:underline text-sm  text-left",onClick:n=>{n.stopPropagation(),r(!0)},children:"View Members"})}),A.jsx(Vke,{isOpen:e,onClose:()=>r(!1),group:t})]})},Vke=({isOpen:t,onClose:e,group:r})=>{var n,o;return r?A.jsx(La,{isOpen:t,onClose:e,title:`${r.group_name} - Members (${((n=r.participants)==null?void 0:n.length)||0})`,size:"md",children:A.jsx("div",{className:"space-y-4 p-6",children:A.jsx("div",{className:"max-h-[60vh] overflow-y-auto",children:(o=r.participants)!=null&&o.length?A.jsx("ul",{className:"divide-y divide-table-divider",children:r.participants.map((a,f)=>{var p,m,v,y;return A.jsxs("li",{className:"py-3 flex items-center justify-between",children:[A.jsxs("div",{className:"flex items-center space-x-3",children:[A.jsx("img",{src:((p=a.User)==null?void 0:p.profile_pic)||"/default-avatar.png",alt:((m=a.User)==null?void 0:m.full_name)||"User",className:"h-10 w-10 rounded-full"}),A.jsxs("div",{children:[A.jsx("p",{className:"text-sm font-bold text-text-muted",children:((v=a.User)==null?void 0:v.full_name)||"Unknown User"}),A.jsxs("p",{className:"text-sm text-text-muted",children:["@",((y=a.User)==null?void 0:y.user_name)||"nousername"]})]})]}),a.is_creator?A.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-primary-dark text-black",children:"Admin"}):A.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-primary-light text-text-muted",children:"Member"})]},f)})}):A.jsx("p",{className:"text-center font-bold text-text-muted py-4",children:"No members found in this group."})})})}):null};function qke(){const[t,e]=F.useState([]),[r,n]=F.useState(!1),[o,a]=F.useState(""),[f,p]=F.useState(null),[m,v]=F.useState("ASC"),[y,x]=F.useState({currentPage:1,itemsPerPage:10,totalItems:0,totalPages:1});F.useEffect(()=>{const R=new AbortController;let E=!0;return(async()=>{try{n(!0);let M;if(f!==null&&f<xE.length){const G=xE[f];G&&G.accessor&&typeof G.accessor=="string"&&(M=G.accessor)}const I={page:y.currentPage,pageSize:y.itemsPerPage};M&&(console.log("sortby",M),M=="participants"?I.sortBy="user_count":I.sortBy=M,I.sortOrder=m),o&&(I.search=o),console.log("params",I);const B=await OW.getGroupList(I);if(!E)return;const U=(B==null?void 0:B.data)||{},H=U.chats||[],V=U.pagination||{};x(G=>({...G,currentPage:y.currentPage||1,itemsPerPage:V.pageSize||1,totalItems:V.total||0,totalPages:V.total_pages||1}));const W=H.map(G=>{let Z;try{const K=G.createdAt||G.created_at;Z=K?new Date(K).toISOString():new Date().toISOString()}catch(K){console.warn("Error parsing date, using current date",K),Z=new Date().toISOString()}return{id:G.chat_id,group_icon:G.group_icon||"/assets/group-default.png",group_name:G.group_name||"Unnamed Group",group_description:G.group_description||"",is_group_blocked:G.is_group_blocked?"Blocked":"Active",countryCode:"IN",country:"India",createdAt:Z,participants:G.participants||[]}});e(W)}catch(M){E&&(console.error("Failed to load Group list:",M),e([]))}finally{E&&n(!1)}})(),()=>{E=!1,R.abort()}},[y.currentPage,y.itemsPerPage,f,m,o]);const k=R=>{x(E=>({...E,currentPage:R}))},S=R=>{x(E=>({...E,itemsPerPage:R,currentPage:1}))},O=()=>{x(R=>({...R,currentPage:1}))},C=(R,E)=>{console.log("hitted",R),p(R),v(E),x(P=>({...P,currentPage:1}))};return A.jsxs("div",{className:"space-y-4",children:[A.jsx("div",{className:"mt-2",children:A.jsx("div",{className:"mb-5",children:A.jsx(Po,{})})}),A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsx("h1",{className:"text-xl font-semibold text-text-muted",children:"Group List"}),A.jsxs("div",{className:"flex items-center gap-2 relative w-full max-w-md",children:[A.jsx(sh,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 font-extrabold text-text-muted"}),A.jsx(Dr,{value:o,onChange:R=>a(R.target.value),onKeyDown:R=>R.key==="Enter"&&O(),placeholder:"Search by name or number",className:"pl-9 bg-secondary/80 text-text-muted w-full min-w-[200px]"})]})]}),A.jsx(aa,{data:t,columns:xE,className:r?"opacity-50":"",currentPage:y.currentPage,itemsPerPage:y.itemsPerPage,totalItems:y.totalItems,onPageChange:k,onPageSizeChange:S,sortColumnIndex:f,sortDirection:m,onSortChange:C,serverPagination:!0})]})}function Yke(){const[t,e]=F.useState([]),[r,n]=F.useState(!0),{toast:o}=Ro(),a=async()=>{var p;try{n(!0);const m=await hY.notificationList();if(m.status&&((p=m.data)!=null&&p.Records))e(m.data.Records);else throw new Error(m.message||"Failed to fetch notification List")}catch(m){console.error("Error fetching notification List:",m),o({title:"Error",description:"Failed to load notification List. Please try again.",variant:"error"})}finally{n(!1)}};F.useEffect(()=>{a()},[]);const f=[{id:"notification_id",header:"ID",accessor:"notification_id",className:"w-20"},{id:"title",header:"Title",accessor:"title"},{id:"message",header:"Message",accessor:"message",cell:p=>A.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded text-xs font-medium ",children:p.message})},{id:"users",header:"Views",cell:p=>{var m;return A.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800",children:((m=p.users)==null?void 0:m.length)||0})},sortable:!0},{id:"createdAt",header:"Created",cell:p=>A.jsx("span",{className:"text-sm",children:new Date(p.createdAt).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})})}];return A.jsxs("div",{className:"space-y-4",children:[A.jsx("h1",{className:"text-xl font-semibold text-table-header-text",children:"Notification List"}),A.jsx("div",{className:"flex items-center justify-between",children:A.jsx("div",{className:"mt-2",children:A.jsx(Po,{})})}),A.jsx("div",{className:"",children:A.jsx(aa,{columns:f,data:t,defaultPageSize:10})})]})}function Wke(){const[t,e]=F.useState([]),[r,n]=F.useState(!1),[o,a]=F.useState(null),{toast:f}=Ro(),{checkDemo:p}=lo(),m=async({id:x,shouldDelete:k})=>{try{if(p())return;(await bu.deleteReportType({id:x,shouldDelete:k})).status===!0&&(e(O=>O.map(C=>C.report_type_id===x?{...C,is_deleted:!k,updatedAt:new Date().toISOString()}:C)),f({title:"Success!",description:`Report type ${k?"restored":"deleted"} successfully!`,variant:"success"}))}catch(S){console.error("Error updating report type status:",S),f({title:"Error",description:"Failed to update report type status",variant:"error"})}},v=[{header:"ID",cell:x=>A.jsxs("span",{className:"text-primary-600",children:["#",x.report_type_id]}),className:"w-20"},{header:"Report Text",cell:x=>A.jsxs("div",{children:[A.jsx("div",{className:"text-table-text text-sm font-medium",children:x.report_text}),A.jsx("div",{className:"text-xs text-text-muted",children:x.report_for})]})},{header:"Report For",accessor:"report_for",sortable:!0},{header:"Created",cell:x=>new Date(x.createdAt).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}),sortable:!0,className:"w-32"},{header:"Active",cell:x=>A.jsx("div",{className:"flex items-center gap-2",children:A.jsx(Xl,{checked:!x.is_deleted,onChange:k=>{m({id:x.report_type_id,shouldDelete:k})},className:"p-2"})}),className:"w-32"}],y=async()=>{var x;n(!0),a(null);try{const k=await bu.getReportTypesList();let S=[];if(k.status)if((x=k.data)!=null&&x.ReportTypes?S=k.data.ReportTypes:k.data&&Array.isArray(k.data)&&(S=k.data),S&&S.length>0){const O=S.map(C=>({report_type_id:C.report_type_id||C.id,report_text:C.report_text||C.name||"Unknown",report_for:C.report_for||C.short||C.code||"",is_deleted:C.is_deleted,createdAt:C.createdAt||C.created_at||new Date().toISOString(),updatedAt:C.updatedAt||C.updated_at||new Date().toISOString()}));e(O)}else e([]);else console.log("Response structure:",k),a(k.message||"Failed to load Report types")}catch(k){console.error("Failed to load Report types:",k),a("Failed to load Report types"),e([])}finally{n(!1)}};return F.useEffect(()=>{y()},[]),A.jsxs("div",{className:"space-y-4",children:[A.jsx("div",{className:"mt-2",children:A.jsx(Po,{})}),o&&A.jsx("div",{className:"bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-lg",children:o}),A.jsx(aa,{data:t,columns:v,defaultPageSize:10})]})}function Xke(){var P,M,I,B;const[t,e]=F.useState([]),[r,n]=F.useState(!0),[o,a]=F.useState(""),{toast:f}=Ro(),{checkDemo:p}=lo(),[m,v]=F.useState(null),y=async(U=1)=>{try{n(!0);const H=await bu.getReportedEntities({page:U,limit:10,type:"group"});H.status?e(H.data.data):f({title:"Error",description:"Failed to fetch reported groups",variant:"error"})}catch(H){console.error("Error fetching reports:",H),f({title:"Error",description:"Failed to fetch reported groups",variant:"error"})}finally{n(!1)}};F.useEffect(()=>{y(1)},[]),t.filter(U=>{var V,W,G,Z,K,Q;const H=o.toLowerCase();return((W=(V=U.reported_user)==null?void 0:V.user_name)==null?void 0:W.toLowerCase().includes(H))||((Z=(G=U.reported_group)==null?void 0:G.group_name)==null?void 0:Z.toLowerCase().includes(H))||((K=U.report_text)==null?void 0:K.toLowerCase().includes(H))||((Q=U.report_id)==null?void 0:Q.toString().includes(H))});const[x,k]=F.useState(null),S=async U=>{var V,W;if(k(U),!((V=U.reported_group)!=null&&V.chat_id))return;const H=await bu.getReportDetails((W=U.reported_group)==null?void 0:W.chat_id,"group");v(H.data),console.log(H)},O=()=>{k(null)},C=U=>{var H,V,W,G;return{type:"group",name:((H=U.reported_group)==null?void 0:H.group_name)||"Unknown Group",image:(V=U.reported_group)==null?void 0:V.group_icon,id:(W=U.reported_group)==null?void 0:W.chat_id,is_blocked:(G=U.reported_group)==null?void 0:G.is_group_blocked}},R=U=>new Date(U).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}),E=[{header:"Reported Group id",cell:U=>{const H=C(U);return A.jsx("div",{children:A.jsx("div",{className:"text-sm font-medium text-text-muted",children:H.id})})}},{header:"Reported Group",cell:U=>{const H=C(U);return A.jsxs("div",{className:"flex items-center",children:[H.image&&A.jsx("div",{className:"flex-shrink-0 h-8 w-8 mr-3",children:A.jsx("img",{className:"h-8 w-8 rounded-full object-cover",src:H.image||"/assets/Avatar.png",alt:H.name,onError:V=>{const W=V.target;W.src="/assets/Avatar.png"}})}),A.jsxs("div",{children:[A.jsx("div",{className:"text-sm font-medium text-table-header-text",children:H.name}),A.jsx("div",{className:"text-sm text-text-muted",children:H.type})]})]})}},{header:"Report Counts",cell:U=>A.jsx("div",{className:"flex items-center",children:A.jsx("div",{className:"ml-4",children:A.jsx("div",{className:"text-sm font-medium text-table-header-text",children:U.report_count})})})},{header:"Block",cell:U=>{var H;return A.jsx(Xl,{checked:((H=U.reported_group)==null?void 0:H.is_group_blocked)||!1,onChange:async V=>{if(p())return;const W=C(U);e(G=>G.map(Z=>{var K;return((K=Z.reported_group)==null?void 0:K.chat_id)===W.id?{...Z,reported_group:Z.reported_group?{...Z.reported_group,is_group_blocked:V}:Z.reported_group}:Z}));try{await OW.blockGroupById({id:W.id})}catch(G){console.error("Block toggle failed",G),e(Z=>Z.map(K=>K.report_id===U.report_id?{...K,reported_group:K.reported_group?{...K.reported_group,is_group_blocked:!V}:K.reported_group}:K))}},className:"p-2"})}},{header:"Actions",cell:U=>A.jsx(Pt,{variant:"destructive",size:"sm",onClick:()=>S(U),className:"p-2 bg-white",children:A.jsx(q4,{className:"h-4 w-4"})})}];return r?A.jsx("div",{className:"bg-white shadow rounded-lg",children:A.jsx("div",{className:"p-6",children:A.jsx("div",{className:"animate-pulse space-y-4",children:[...Array(5)].map((U,H)=>A.jsxs("div",{className:"flex items-center space-x-4",children:[A.jsx("div",{className:"rounded-full bg-gray-200 h-10 w-10"}),A.jsxs("div",{className:"flex-1 space-y-2",children:[A.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4"}),A.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2"})]})]},H))})})}):A.jsxs("div",{className:"space-y-4",children:[A.jsx("div",{className:"mt-2",children:A.jsx(Po,{})}),A.jsxs("div",{className:"flex items-center justify-between",children:[A.jsx("div",{children:A.jsx("h1",{className:"text-xl font-semibold text-table-header-text",children:"Reported Groups List"})}),A.jsxs("div",{className:"flex items-center gap-2 relative w-full max-w-md",children:[A.jsx(sh,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 font-extrabold text-text-muted"}),A.jsx(Dr,{value:o,onChange:U=>a(U.target.value),placeholder:"Search reports...",className:"pl-9 bg-secondary/80 text-text-muted w-full min-w-[200px]"})]})]}),A.jsx(aa,{data:t,columns:E,defaultPageSize:10}),x&&A.jsx(La,{isOpen:!!x,onClose:O,title:"Report Details",size:"md",children:A.jsxs("div",{className:"space-y-6 overflow-auto w-[100vw] max-h-[80vh] md:w-[30vw]",children:[A.jsxs("div",{children:[A.jsx("h4",{className:"text-lg font-medium text-table-header-text mb-3",children:"Reported Group"}),A.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:gap-5 sm:space-x-4 space-y-3 sm:space-y-0",children:[A.jsx("img",{className:"h-12 w-12 rounded-full object-cover mx-auto sm:mx-0",src:((P=x.reported_group)==null?void 0:P.group_icon)||"/assets/Avatar.png",alt:(M=x.reported_group)==null?void 0:M.group_name,onError:U=>{const H=U.target;H.src="/assets/Avatar.png"}}),A.jsxs("div",{className:"text-center sm:text-left",children:[A.jsx("p",{className:"text-sm font-medium text-table-header-text",children:(I=x.reported_group)==null?void 0:I.group_name}),A.jsxs("p",{className:"text-sm text-table-header-text",children:["Group ID: ",(B=x.reported_group)==null?void 0:B.chat_id]})]})]})]}),A.jsxs("div",{children:[A.jsx("h4",{className:"text-lg font-medium text-table-header-text mb-3",children:"Reports"}),m&&m.map(U=>{var H;return A.jsxs("div",{className:"space-y-6 border-t pt-4 mt-4",children:[A.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:space-x-4 sm:gap-5 space-y-3 sm:space-y-0",children:[A.jsx("img",{className:"h-12 w-12 rounded-full object-cover mx-auto sm:mx-0",src:U.reporter.profile_pic,alt:U.reporter.user_name,onError:V=>{const W=V.target;W.src="/assets/Avatar.png"}}),A.jsxs("div",{className:"text-center sm:text-left",children:[A.jsx("p",{className:"text-sm font-medium text-table-header-text",children:U.reporter.user_name||"Anonymous"}),A.jsxs("p",{className:"text-sm text-table-header-text",children:["User ID: ",U.reporter.user_id]})]})]}),A.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-table-header-text mb-1",children:"Report ID"}),A.jsxs("p",{className:"text-sm text-text-muted",children:["#",U.report_id]})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-table-header-text mb-1",children:"Report Type"}),A.jsx("p",{className:"text-sm text-text-muted",children:((H=U.Report_type)==null?void 0:H.report_text)||"Unknown"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-table-header-text mb-1",children:"Report Text"}),A.jsx("p",{className:"text-sm text-text-muted capitalize break-words",children:U.report_text||"Unknown"})]}),A.jsxs("div",{children:[A.jsx("label",{className:"block text-sm font-medium text-table-header-text mb-1",children:"Created"}),A.jsx("p",{className:"text-sm text-text-muted",children:R(U.createdAt)})]})]})]},U.report_id)})]}),A.jsx("div",{className:"mb-7"})]})})]})}var SX={exports:{}};/*! For license information please see jodit-react.js.LICENSE.txt */(function(t,e){(function(r,n){t.exports=n(F)})(self,r=>(()=>{var n={616:(l,c,h)=>{h.d(c,{A:()=>Y});var u=h(772),i=h.n(u),s=h(333),d=h.n(s),g=h(504),b=h.n(g),w=new URL(h(523),h.b),_=new URL(h(789),h.b),T=new URL(h(65),h.b),z=d()(i()),L=b()(w),D=b()(_),q=b()(T);z.push([l.id,`.jodit-ui-group{display:inline-flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;max-width:100%}.jodit-ui-group_line_true{display:flex;justify-content:stretch}.jodit-ui-group_separated_true:not(:last-child):not(.jodit-ui-group_before-spacer_true):after{border-left:0;border-right:1px solid var(--jd-color-border);content:"";cursor:default;margin:2px;padding:0}.jodit-ui-group:last-child{border-bottom:0}.jodit-ui-list{display:flex;flex-direction:column}.jodit-ui-list_mode_vertical .jodit-ui-group{background-color:transparent;border:0;flex-direction:column}.jodit-ui-list_mode_vertical .jodit-toolbar-button{height:auto;min-height:var(--jd-button-size)}.jodit-ui-list_mode_vertical .jodit-toolbar-button__button{cursor:pointer;height:auto;min-height:var(--jd-button-size);width:100%}.jodit-ui-list_mode_vertical .jodit-toolbar-button__text:not(:empty){justify-content:left}.jodit-ui-separator{border-left:0;border-right:1px solid var(--jd-color-border);cursor:default;margin:2px;padding:0}.jodit-ui-break{border-top:1px solid var(--jd-color-border);flex-basis:100%;height:0!important;width:0}.jodit-ui-spacer{flex:1}.jodit-ui-button-icon-text__icon{display:none}.jodit-ui-button-icon-text__icon:not(:empty){display:inline-flex}.jodit-ui-button-icon-text__text{display:none}.jodit-ui-button-icon-text__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-ui-button-icon-text_context_menu .jodit-ui-button-icon-text__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-ui-button-icon-text_context_menu .jodit-ui-button-icon-text__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-ui-button-icon-text__icon:not(:empty)+.jodit-ui-button-icon-text__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-ui-button-icon-text__icon:empty+.jodit-ui-button-icon-text__text:not(:empty){padding:0 var(--jd-padding-default)}.jodit-ui-button-clear,.jodit-ui-button_clear{appearance:none;background:0 0;border:0;box-shadow:none;box-sizing:border-box;font-style:normal;outline:0;padding:0;position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-ui-button-sizes{height:34px;min-width:34px}.jodit-ui-button-sizes .jodit-icon{height:14px;width:14px}.jodit-ui-button-sizes button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-ui-button-sizes_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_tiny{height:16px;min-width:16px}.jodit-ui-button-sizes_size_tiny .jodit-icon{height:8px;width:8px}.jodit-ui-button-sizes_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-ui-button-sizes_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_xsmall{height:22px;min-width:22px}.jodit-ui-button-sizes_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-ui-button-sizes_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-ui-button-sizes_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_small{height:28px;min-width:28px}.jodit-ui-button-sizes_size_small .jodit-icon{height:12px;width:12px}.jodit-ui-button-sizes_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-ui-button-sizes_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_large{height:40px;min-width:40px}.jodit-ui-button-sizes_size_large .jodit-icon{height:16px;width:16px}.jodit-ui-button-sizes_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-ui-button-sizes_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-variants_variant_outline{border:1px solid var(--jd-color-border)}.jodit-ui-button-variants_variant_default{background-color:#e3e3e3;color:#212529}.jodit-ui-button-variants_variant_default svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_default [disabled]{opacity:.7}.jodit-ui-button-variants_variant_default:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button-variants_variant_default:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_default:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button-variants_variant_default:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_default:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button-variants_variant_primary{background-color:#007bff;color:#fff}.jodit-ui-button-variants_variant_primary svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_primary [disabled]{opacity:.7}.jodit-ui-button-variants_variant_primary:hover:not([disabled]){background-color:#0069d9;color:#fff}.jodit-ui-button-variants_variant_primary:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_primary:active:not([disabled]){background-color:#0062cc;color:#fff}.jodit-ui-button-variants_variant_primary:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_primary:focus:not([disabled]){outline:1px dashed #0062cc}.jodit-ui-button-variants_variant_secondary{background-color:#d8d8d8;border-radius:0;color:#212529}.jodit-ui-button-variants_variant_secondary svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_secondary [disabled]{opacity:.7}.jodit-ui-button-variants_variant_secondary:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button-variants_variant_secondary:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_secondary:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button-variants_variant_secondary:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_secondary:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button-variants_variant_success{background-color:#28a745;color:#fff}.jodit-ui-button-variants_variant_success svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_success [disabled]{opacity:.7}.jodit-ui-button-variants_variant_success:hover:not([disabled]){background-color:#218838;color:#fff}.jodit-ui-button-variants_variant_success:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_success:active:not([disabled]){background-color:#1e7e34;color:#fff}.jodit-ui-button-variants_variant_success:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_success:focus:not([disabled]){outline:1px dashed #1e7e34}.jodit-ui-button-variants_variant_danger{background-color:#dc3545;color:#fff}.jodit-ui-button-variants_variant_danger svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_danger [disabled]{opacity:.7}.jodit-ui-button-variants_variant_danger:hover:not([disabled]){background-color:#c82333;color:#fff}.jodit-ui-button-variants_variant_danger:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_danger:active:not([disabled]){background-color:#bd2130;color:#fff}.jodit-ui-button-variants_variant_danger:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_danger:focus:not([disabled]){outline:1px dashed #bd2130}.jodit-ui-button-style{border-radius:var(--jd-border-radius-default);padding:0 var(--jd-padding-default)}.jodit-ui-button,.jodit-ui-button-style{align-items:center;color:var(--jd-color-text-icons);display:inline-flex;justify-content:center}.jodit-ui-button{appearance:none;background:0 0;border:0;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;cursor:pointer;font-style:normal;height:34px;min-width:34px;outline:0;padding:0;padding:0 var(--jd-padding-default);position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-ui-button:focus-visible:not([disabled]),.jodit-ui-button:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-ui-button:active:not([disabled]),.jodit-ui-button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-ui-button[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-ui-button[disabled]{opacity:.3;pointer-events:none}.jodit-ui-button .jodit-icon{height:14px;width:14px}.jodit-ui-button button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-ui-button_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_tiny{height:16px;min-width:16px}.jodit-ui-button_size_tiny .jodit-icon{height:8px;width:8px}.jodit-ui-button_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-ui-button_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_xsmall{height:22px;min-width:22px}.jodit-ui-button_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-ui-button_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-ui-button_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_small{height:28px;min-width:28px}.jodit-ui-button_size_small .jodit-icon{height:12px;width:12px}.jodit-ui-button_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-ui-button_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_large{height:40px;min-width:40px}.jodit-ui-button_size_large .jodit-icon{height:16px;width:16px}.jodit-ui-button_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-ui-button_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button__icon{display:none}.jodit-ui-button__icon:not(:empty){display:inline-flex}.jodit-ui-button__text{display:none}.jodit-ui-button__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-ui-button_context_menu .jodit-ui-button__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-ui-button_context_menu .jodit-ui-button__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-ui-button__icon:not(:empty)+.jodit-ui-button__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-ui-button__icon:empty+.jodit-ui-button__text:not(:empty){padding:0 var(--jd-padding-default)}.jodit-ui-button:focus:not([disabled]){outline:1px dashed var(--jd-color-background-selection)}.jodit-ui-button_variant_outline{border:1px solid var(--jd-color-border)}.jodit-ui-button_variant_default{background-color:#e3e3e3;color:#212529}.jodit-ui-button_variant_default svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_default [disabled]{opacity:.7}.jodit-ui-button_variant_default:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button_variant_default:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_default:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button_variant_default:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_default:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button_variant_primary{background-color:#007bff;color:#fff}.jodit-ui-button_variant_primary svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_primary [disabled]{opacity:.7}.jodit-ui-button_variant_primary:hover:not([disabled]){background-color:#0069d9;color:#fff}.jodit-ui-button_variant_primary:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_primary:active:not([disabled]){background-color:#0062cc;color:#fff}.jodit-ui-button_variant_primary:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_primary:focus:not([disabled]){outline:1px dashed #0062cc}.jodit-ui-button_variant_secondary{background-color:#d8d8d8;border-radius:0;color:#212529}.jodit-ui-button_variant_secondary svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_secondary [disabled]{opacity:.7}.jodit-ui-button_variant_secondary:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button_variant_secondary:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_secondary:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button_variant_secondary:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_secondary:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button_variant_success{background-color:#28a745;color:#fff}.jodit-ui-button_variant_success svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_success [disabled]{opacity:.7}.jodit-ui-button_variant_success:hover:not([disabled]){background-color:#218838;color:#fff}.jodit-ui-button_variant_success:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_success:active:not([disabled]){background-color:#1e7e34;color:#fff}.jodit-ui-button_variant_success:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_success:focus:not([disabled]){outline:1px dashed #1e7e34}.jodit-ui-button_variant_danger{background-color:#dc3545;color:#fff}.jodit-ui-button_variant_danger svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_danger [disabled]{opacity:.7}.jodit-ui-button_variant_danger:hover:not([disabled]){background-color:#c82333;color:#fff}.jodit-ui-button_variant_danger:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_danger:active:not([disabled]){background-color:#bd2130;color:#fff}.jodit-ui-button_variant_danger:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_danger:focus:not([disabled]){outline:1px dashed #bd2130}.jodit-ui-button-group{margin-bottom:var(--jd-padding-default)}.jodit-ui-button-group__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-button-group__options{display:flex;justify-content:flex-start}.jodit-ui-button-group .jodit-ui-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.jodit-ui-button-group .jodit-ui-button+.jodit-ui-button{border-bottom-left-radius:0;border-left:1px solid var(--jd-color-button-background-hover-opacity40);border-top-left-radius:0}.jodit-ui-button-group .jodit-ui-button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover);border-left:0;box-shadow:inset 0 0 3px 0 var(--jd-color-dark);color:var(--jd-color-dark);outline:0}.jodit-ui-button-group .jodit-ui-button[aria-pressed=true]:not([disabled])+.jodit-ui-button{border:0}:root{--jd-tooltip-color:#fff;--jd-tooltip-background-color:rgba(0,0,0,.7);--jd-tooltip-sfx-shadow:rgba(0,0,0,.15);--jd-tooltip-border-width:0;--jd-tooltip-border-color:#e5e5e5}.jodit-ui-tooltip{animation-fill-mode:forwards;animation-timing-function:ease-out;background-clip:padding-box;background-color:var(--jd-tooltip-background-color);border-radius:4px;box-shadow:0 0 0 var(--jd-tooltip-border-width) var(--jd-tooltip-border-color),0 8px 20px var(--jd-tooltip-border-width) var(--jd-tooltip-sfx-shadow);color:var(--jd-tooltip-color);font-family:var(--jd-font-default);font-size:var(--jd-font-size-small);line-height:1.4;max-width:120px;opacity:0;outline:none;pointer-events:none;position:fixed;text-rendering:optimizelegibility;transform:translate(-50%,calc(var(--jd-padding-default)/2));transition:opacity .2s ease 0s;user-select:none;white-space:normal;width:auto;z-index:var(--jd-z-index-tooltip)}@media (max-width:768px){.jodit-ui-tooltip{display:none}}.jodit-ui-tooltip__content{padding:calc(var(--jd-padding-default)/2) calc(var(--jd-padding-default)*1.5)}.jodit-ui-tooltip.jodit-ui-tooltip_visible_true{opacity:1}.jodit-ui-block{align-items:center;display:flex;justify-content:stretch;margin-bottom:var(--jd-padding-default)}.jodit-ui-block_width_full{width:100%}.jodit-ui-block_align_full{justify-content:space-between}.jodit-ui-block_align_right{justify-content:flex-end}.jodit-ui-block_padding_true{padding:var(--jd-padding-default)}.jodit-ui-label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-input{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default)}.jodit-ui-input__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-input__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-ui-input__input_has-error_true{border-color:var(--jd-color-red)}.jodit-ui-input__input:focus{outline:0}.jodit-ui-input_theme_dark .jodit-ui-input__input{background-color:var(--jd-color-gray)}.jodit-ui-input_has-error_true .jodit-ui-input__input{border-color:var(--jd-color-red)}.jodit-ui-input__error,.jodit-ui-input__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-input__error,.jodit-ui-input_has-error_true .jodit-ui-input__label{color:var(--jd-color-error)}.jodit-ui-input__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;min-width:200px}@media (max-width:480px){.jodit-ui-input__wrapper{min-width:140px}}.jodit-ui-input_theme_dark .jodit-ui-input__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-ui-input_focused_true .jodit-ui-input__wrapper{border-color:var(--jd-color-border-selected)}.jodit-ui-input__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-ui-input__icon:not(:empty) svg{height:16px;width:16px;fill:var(--jd-color-border)}.jodit-ui-input__icon:not(:empty)+.jodit-ui-input__input{padding-left:0}.jodit-ui-input__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-ui-input__clear:active{opacity:1;transform:scale(1.1)}.jodit-ui-input__clear svg{height:12px;width:12px;fill:var(--jd-color-border)}.jodit-ui-input_theme_dark .jodit-ui-input__clear svg,.jodit-ui-input_theme_dark .jodit-ui-input__icon svg{fill:var(--jd-color-dark)}.jodit-ui-block .jodit-ui-input{margin-bottom:0}.jodit-ui-select{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default)}.jodit-ui-select__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-select__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-ui-select__input_has-error_true{border-color:var(--jd-color-red)}.jodit-ui-select__input:focus{outline:0}.jodit-ui-select_theme_dark .jodit-ui-select__input{background-color:var(--jd-color-gray)}.jodit-ui-select_has-error_true .jodit-ui-select__input{border-color:var(--jd-color-red)}.jodit-ui-select__error,.jodit-ui-select__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-select__error,.jodit-ui-select_has-error_true .jodit-ui-select__label{color:var(--jd-color-error)}.jodit-ui-select__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;min-width:200px}@media (max-width:480px){.jodit-ui-select__wrapper{min-width:140px}}.jodit-ui-select_theme_dark .jodit-ui-select__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-ui-select_focused_true .jodit-ui-select__wrapper{border-color:var(--jd-color-border-selected)}.jodit-ui-select__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-ui-select__icon:not(:empty) svg{height:16px;width:16px;fill:var(--jd-color-border)}.jodit-ui-select__icon:not(:empty)+.jodit-ui-select__input{padding-left:0}.jodit-ui-select__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-ui-select__clear:active{opacity:1;transform:scale(1.1)}.jodit-ui-select__clear svg{height:12px;width:12px;fill:var(--jd-color-border)}.jodit-ui-select_theme_dark .jodit-ui-select__clear svg,.jodit-ui-select_theme_dark .jodit-ui-select__icon svg{fill:var(--jd-color-dark)}.jodit-ui-select__input{background-image:url(${L});background-position:98% 50%;background-repeat:no-repeat;padding-right:calc(var(--jd-padding-default)*2)}.jodit-ui-select_size_tiny{margin-bottom:0}.jodit-ui-select_size_tiny .jodit-ui-select__input{--jd-height:calc(var(--jd-input-height)/1.8);height:var(--jd-height);line-height:var(--jd-height)}.jodit-ui-select_variant_outline .jodit-ui-select__wrapper{border:0}.jodit-ui-select_variant_outline .jodit-ui-select__wrapper select{outline:0}.jodit-ui-select_width_auto{width:auto}.jodit-ui-select_width_auto .jodit-ui-select__wrapper{min-width:auto}.jodit-ui-text-area{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default);width:100%}.jodit-ui-text-area__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-text-area__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-ui-text-area__input_has-error_true{border-color:var(--jd-color-red)}.jodit-ui-text-area__input:focus{outline:0}.jodit-ui-text-area_theme_dark .jodit-ui-text-area__input{background-color:var(--jd-color-gray)}.jodit-ui-text-area_has-error_true .jodit-ui-text-area__input{border-color:var(--jd-color-red)}.jodit-ui-text-area__error,.jodit-ui-text-area__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-text-area__error,.jodit-ui-text-area_has-error_true .jodit-ui-text-area__label{color:var(--jd-color-error)}.jodit-ui-text-area__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;min-width:200px}@media (max-width:480px){.jodit-ui-text-area__wrapper{min-width:140px}}.jodit-ui-text-area_theme_dark .jodit-ui-text-area__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-ui-text-area_focused_true .jodit-ui-text-area__wrapper{border-color:var(--jd-color-border-selected)}.jodit-ui-text-area__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-ui-text-area__icon:not(:empty) svg{height:16px;width:16px;fill:var(--jd-color-border)}.jodit-ui-text-area__icon:not(:empty)+.jodit-ui-text-area__input{padding-left:0}.jodit-ui-text-area__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-ui-text-area__clear:active{opacity:1;transform:scale(1.1)}.jodit-ui-text-area__clear svg{height:12px;width:12px;fill:var(--jd-color-border)}.jodit-ui-text-area_theme_dark .jodit-ui-text-area__clear svg,.jodit-ui-text-area_theme_dark .jodit-ui-text-area__icon svg{fill:var(--jd-color-dark)}.jodit-ui-text-area__wrapper{flex:1}.jodit-ui-text-area__input{height:100%;min-height:60px;padding:var(--jd-padding-default)}.jodit-ui-checkbox{align-items:center;display:flex;flex-direction:row-reverse;justify-content:flex-end;margin-bottom:var(--jd-padding-default)}.jodit-ui-checkbox__input{margin-right:var(--jd-padding-default)}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__wrapper{display:inline-block;height:34px;margin-right:var(--jd-padding-default);position:relative;width:60px}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__wrapper input{height:0;opacity:0;width:0}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__switch-slider{background-color:#ccc;border-radius:34px;cursor:pointer;inset:0;position:absolute;transition:.4s}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__switch-slider:before{background-color:#fff;border-radius:50%;bottom:4px;content:"";height:26px;left:4px;position:absolute;transition:.4s;width:26px}.jodit-ui-checkbox_switch_true.jodit-ui-checkbox_checked_true .jodit-ui-checkbox__switch-slider{background-color:#2196f3}.jodit-ui-checkbox_switch_true.jodit-ui-checkbox_checked_true .jodit-ui-checkbox__switch-slider:before{transform:translateX(26px)}.jodit-ui-checkbox_switch_true.jodit-ui-checkbox_focused_true .jodit-ui-checkbox__switch-slider{box-shadow:0 0 1px #2196f3}.jodit-ui-block .jodit-ui-checkbox{margin-bottom:0}.jodit-ui-file-input{overflow:hidden;position:relative}.jodit-ui-file-input__input{bottom:0;cursor:pointer;font-size:400px;margin:0 calc(var(--jd-padding-default)*-1) 0 0;opacity:0;padding:0;position:absolute;right:0;top:0}:root{--jd-popup-box-shadow:0 4px 1px -2px rgba(76,76,76,.2),0 3px 3px 0 rgba(76,76,76,.15),0 1px 4px 0 rgba(76,76,76,.13);--jd-popup-max-height:max(50vh,350px)}.jodit-popup{background:0 0;border:0;box-shadow:var(--jd-popup-box-shadow);display:inline-block;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;position:fixed;transform:translateZ(0);width:auto;z-index:var(--jd-z-index-popup)}.jodit-popup__content{background:var(--jd-color-background-default);font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);max-height:var(--jd-popup-max-height,400px);overflow:auto;padding:var(--jd-padding-default);overflow-scrolling:touch}.jodit-popup_padding_false .jodit-popup__content{padding:0}.jodit-popup_max-height_false .jodit-popup__content{max-height:fit-content}@keyframes a{30%{opacity:.6}60%{opacity:0}to{opacity:.6}}.jodit-progress-bar{border-radius:1px;height:2px;left:0;opacity:.7;position:absolute;top:0;z-index:2147483647}.jodit-progress-bar div{background:var(--jd-color-background-progress);height:2px;position:relative;transition:width .5s ease-out,opacity .5s linear;will-change:width,opacity}.jodit-progress-bar div:after,.jodit-progress-bar div:before{animation:a 2s ease-out 0s infinite;border-radius:100%;box-shadow:var(--jd-color-background-progress) 1px 0 6px 1px;content:"";display:inline-block;height:2px;opacity:.6;position:absolute;top:0}.jodit-progress-bar div:before{right:-80px;width:180px;clip:rect(-6px,90px,14px,-6px)}.jodit-progress-bar div:after{right:0;width:20px;clip:rect(-6px,22px,14px,var(--jd-padding-default))}:root{--jd-em-color-border:#b6d4fe;--jd-em-color-bg:#cfe2ff;--jd-em-color-color:#084298;--jd-em-border-radius:0.375rem;--jd-em-padding:0.5rem 1rem;--jd-em-font-size:1rem}.jodit-ui-messages{bottom:0;height:0;overflow:visible;position:absolute;right:0;width:0;z-index:3}.jodit-ui-message{background:var(--jd-em-color-bg);border:1px solid var(--jd-em-color-border);border-radius:var(--jd-em-border-radius);bottom:0;color:var(--jd-em-color-color);cursor:pointer;display:block;font-size:var(--jd-em-font-size);opacity:0;padding:var(--jd-em-padding);position:absolute;right:calc(var(--jd-padding-default)/2);transition:opacity .1s linear,bottom .3s linear,transform .1s ease-out;white-space:pre}.jodit-ui-message_active_true{opacity:1}.jodit-ui-message:active{transform:scale(.76)}.jodit-ui-message_variant_secondary{--jd-em-color-border:#d3d6d8;--jd-em-color-bg:#e2e3e5;--jd-em-color-color:#41464b}.jodit-ui-message_variant_danger,.jodit-ui-message_variant_error,.jodit-ui-message_variant_secondary{background:var(--jd-em-color-bg);border-color:var(--jd-em-color-border);color:var(--jd-em-color-color)}.jodit-ui-message_variant_danger,.jodit-ui-message_variant_error{--jd-em-color-border:#f5c2c7;--jd-em-color-bg:#f8d7da;--jd-em-color-color:#842029}.jodit-ui-message_variant_success{--jd-em-color-border:#badbcc;--jd-em-color-bg:#d1e7dd;--jd-em-color-color:#0f5132;background:var(--jd-em-color-bg);border-color:var(--jd-em-color-border);color:var(--jd-em-color-color)}.jodit-toolbar-collection,.jodit-toolbar-editor-collection{display:flex;flex-direction:column}.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent calc(var(--jd-button-size) - 1px),var(--jd-color-border) var(--jd-button-size));position:relative}.jodit-toolbar-collection_mode_horizontal:after,.jodit-toolbar-editor-collection_mode_horizontal:after{background-color:var(--jd-color-background-default);bottom:0;content:"";display:block;height:1px;left:0;position:absolute;width:100%}.jodit-toolbar-collection_size_tiny,.jodit-toolbar-editor-collection_size_tiny{--jd-button-icon-size:8px}.jodit-toolbar-collection_size_tiny.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_tiny.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_tiny.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_tiny.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 19px,var(--jd-color-border) 20px)}.jodit-toolbar-collection_size_xsmall,.jodit-toolbar-editor-collection_size_xsmall{--jd-button-icon-size:10px}.jodit-toolbar-collection_size_xsmall.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_xsmall.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_xsmall.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_xsmall.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 25px,var(--jd-color-border) 26px)}.jodit-toolbar-collection_size_small,.jodit-toolbar-editor-collection_size_small{--jd-button-icon-size:12px}.jodit-toolbar-collection_size_small.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_small.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_small.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_small.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 31px,var(--jd-color-border) 32px)}.jodit-toolbar-collection_size_middle,.jodit-toolbar-editor-collection_size_middle{--jd-button-icon-size:14px}.jodit-toolbar-collection_size_middle.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_middle.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_middle.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_middle.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 37px,var(--jd-color-border) 38px)}.jodit-toolbar-collection_size_large,.jodit-toolbar-editor-collection_size_large{--jd-button-icon-size:16px}.jodit-toolbar-collection_size_large.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_large.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_large.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_large.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 43px,var(--jd-color-border) 44px)}.jodit-toolbar-collection_mode_vertical .jodit-ui-group,.jodit-toolbar-editor-collection_mode_vertical .jodit-ui-group{background-color:transparent;border:0;flex-direction:column}.jodit-toolbar-collection_mode_vertical .jodit-toolbar-button,.jodit-toolbar-editor-collection_mode_vertical .jodit-toolbar-button{height:auto;min-height:var(--jd-button-size)}.jodit-toolbar-collection_mode_vertical .jodit-toolbar-button__button,.jodit-toolbar-editor-collection_mode_vertical .jodit-toolbar-button__button{cursor:pointer;height:auto;min-height:var(--jd-button-size);width:100%}.jodit-toolbar-collection_mode_vertical .jodit-toolbar-button__text:not(:empty),.jodit-toolbar-editor-collection_mode_vertical .jodit-toolbar-button__text:not(:empty){justify-content:left}.jodit-toolbar-collection .jodit-toolbar-button,.jodit-toolbar-collection .jodit-toolbar-content,.jodit-toolbar-collection .jodit-toolbar-select,.jodit-toolbar-editor-collection .jodit-toolbar-button,.jodit-toolbar-editor-collection .jodit-toolbar-content,.jodit-toolbar-editor-collection .jodit-toolbar-select{margin:var(--jd-margin-v) 1px;padding:0}.jodit-dialog .jodit-toolbar-collection_mode_horizontal,.jodit-dialog .jodit-toolbar-editor-collection_mode_horizontal{background-image:none}:root{--jd-button-trigger-size:14px}.jodit-toolbar-button{align-items:center;border:1px solid transparent;border-radius:var(--jd-border-radius-default);display:flex;height:34px;justify-content:center;min-width:34px;overflow:hidden}.jodit-toolbar-button__icon{display:none}.jodit-toolbar-button__icon:not(:empty){display:inline-flex}.jodit-toolbar-button__text{display:none}.jodit-toolbar-button__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-toolbar-button_context_menu .jodit-toolbar-button__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-toolbar-button_context_menu .jodit-toolbar-button__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-toolbar-button__icon:not(:empty)+.jodit-toolbar-button__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-toolbar-button__icon:empty+.jodit-toolbar-button__text:not(:empty){padding:0 var(--jd-padding-default);padding:0}.jodit-toolbar-button .jodit-icon{height:14px;width:14px}.jodit-toolbar-button button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-toolbar-button_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_tiny{height:16px;min-width:16px}.jodit-toolbar-button_size_tiny .jodit-icon{height:8px;width:8px}.jodit-toolbar-button_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-toolbar-button_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_xsmall{height:22px;min-width:22px}.jodit-toolbar-button_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-toolbar-button_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-toolbar-button_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_small{height:28px;min-width:28px}.jodit-toolbar-button_size_small .jodit-icon{height:12px;width:12px}.jodit-toolbar-button_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-toolbar-button_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_large{height:40px;min-width:40px}.jodit-toolbar-button_size_large .jodit-icon{height:16px;width:16px}.jodit-toolbar-button_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-toolbar-button_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button__button{align-items:center;appearance:none;background:0 0;border:0;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;color:var(--jd-color-text-icons);cursor:pointer;display:inline-flex;font-style:normal;justify-content:center;outline:0;padding:0;padding:0 var(--jd-padding-default);position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-toolbar-button__button:focus-visible:not([disabled]),.jodit-toolbar-button__button:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-button__button:active:not([disabled]),.jodit-toolbar-button__button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-button__button[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-button__button[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-button__trigger{align-items:center;border-radius:0 var(--jd-border-radius-default) var(--jd-border-radius-default) 0;cursor:pointer;display:flex;height:100%;justify-content:center;opacity:.4;--jd-button-trigger-size:14px;width:calc(var(--jd-button-trigger-size, 14px) + 2px)}.jodit-toolbar-button__trigger:focus-visible:not([disabled]),.jodit-toolbar-button__trigger:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-button__trigger:active:not([disabled]),.jodit-toolbar-button__trigger[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-button__trigger[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-button__trigger[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 14px) - 4px)}.jodit-toolbar-button_size_tiny .jodit-toolbar-button__trigger{--jd-button-trigger-size:8px;width:calc(var(--jd-button-trigger-size, 8px) + 2px)}.jodit-toolbar-button_size_tiny .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 8px) - 4px)}.jodit-toolbar-button_size_xsmall .jodit-toolbar-button__trigger{--jd-button-trigger-size:10px;width:calc(var(--jd-button-trigger-size, 10px) + 2px)}.jodit-toolbar-button_size_xsmall .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 10px) - 4px)}.jodit-toolbar-button_size_small .jodit-toolbar-button__trigger{--jd-button-trigger-size:12px;width:calc(var(--jd-button-trigger-size, 12px) + 2px)}.jodit-toolbar-button_size_small .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 12px) - 4px)}.jodit-toolbar-button_size_large .jodit-toolbar-button__trigger{--jd-button-trigger-size:16px;width:calc(var(--jd-button-trigger-size, 16px) + 2px)}.jodit-toolbar-button_size_large .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 16px) - 4px)}.jodit-toolbar-button_with-trigger_true .jodit-toolbar-button__button{border-radius:var(--jd-border-radius-default) 0 0 var(--jd-border-radius-default)}.jodit-toolbar-button_with-trigger_true:hover:not([disabled]){border-color:var(--jd-color-border)}.jodit-toolbar-button_stroke_false svg{stroke:none}.jodit-toolbar-content{align-items:center;appearance:none;background:0 0;border:1px solid transparent;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;color:var(--jd-color-text-icons);cursor:pointer;display:inline-flex;font-style:normal;height:34px;justify-content:center;min-width:34px;outline:0;padding:0;position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-toolbar-content:focus-visible:not([disabled]),.jodit-toolbar-content:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-content:active:not([disabled]),.jodit-toolbar-content[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-content[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-content[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-content .jodit-icon{height:14px;width:14px}.jodit-toolbar-content button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-toolbar-content_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_tiny{height:16px;min-width:16px}.jodit-toolbar-content_size_tiny .jodit-icon{height:8px;width:8px}.jodit-toolbar-content_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-toolbar-content_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_xsmall{height:22px;min-width:22px}.jodit-toolbar-content_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-toolbar-content_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-toolbar-content_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_small{height:28px;min-width:28px}.jodit-toolbar-content_size_small .jodit-icon{height:12px;width:12px}.jodit-toolbar-content_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-toolbar-content_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_large{height:40px;min-width:40px}.jodit-toolbar-content_size_large .jodit-icon{height:16px;width:16px}.jodit-toolbar-content_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-toolbar-content_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content__icon{display:none}.jodit-toolbar-content__icon:not(:empty){display:inline-flex}.jodit-toolbar-content__text{display:none}.jodit-toolbar-content__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-toolbar-content_context_menu .jodit-toolbar-content__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-toolbar-content_context_menu .jodit-toolbar-content__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-toolbar-content__icon:not(:empty)+.jodit-toolbar-content__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-toolbar-content__icon:empty+.jodit-toolbar-content__text:not(:empty){padding:0 var(--jd-padding-default)}.jodit-toolbar-content:focus:not([disabled]){outline:1px dashed var(--jd-color-background-selection)}.jodit-toolbar-content_variant_outline{border:1px solid var(--jd-color-border)}.jodit-toolbar-content_variant_default{background-color:#e3e3e3;color:#212529}.jodit-toolbar-content_variant_default svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_default [disabled]{opacity:.7}.jodit-toolbar-content_variant_default:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-toolbar-content_variant_default:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_default:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-toolbar-content_variant_default:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_default:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-toolbar-content_variant_primary{background-color:#007bff;color:#fff}.jodit-toolbar-content_variant_primary svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_primary [disabled]{opacity:.7}.jodit-toolbar-content_variant_primary:hover:not([disabled]){background-color:#0069d9;color:#fff}.jodit-toolbar-content_variant_primary:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_primary:active:not([disabled]){background-color:#0062cc;color:#fff}.jodit-toolbar-content_variant_primary:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_primary:focus:not([disabled]){outline:1px dashed #0062cc}.jodit-toolbar-content_variant_secondary{background-color:#d8d8d8;border-radius:0;color:#212529}.jodit-toolbar-content_variant_secondary svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_secondary [disabled]{opacity:.7}.jodit-toolbar-content_variant_secondary:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-toolbar-content_variant_secondary:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_secondary:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-toolbar-content_variant_secondary:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_secondary:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-toolbar-content_variant_success{background-color:#28a745;color:#fff}.jodit-toolbar-content_variant_success svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_success [disabled]{opacity:.7}.jodit-toolbar-content_variant_success:hover:not([disabled]){background-color:#218838;color:#fff}.jodit-toolbar-content_variant_success:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_success:active:not([disabled]){background-color:#1e7e34;color:#fff}.jodit-toolbar-content_variant_success:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_success:focus:not([disabled]){outline:1px dashed #1e7e34}.jodit-toolbar-content_variant_danger{background-color:#dc3545;color:#fff}.jodit-toolbar-content_variant_danger svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_danger [disabled]{opacity:.7}.jodit-toolbar-content_variant_danger:hover:not([disabled]){background-color:#c82333;color:#fff}.jodit-toolbar-content_variant_danger:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_danger:active:not([disabled]){background-color:#bd2130;color:#fff}.jodit-toolbar-content_variant_danger:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_danger:focus:not([disabled]){outline:1px dashed #bd2130}.jodit-toolbar-content:hover:not([disabled]){background-color:transparent;opacity:1;outline:0}.jodit-toolbar-select{--jd-color-button-background-hover-opacity40:hsla(0,0%,86%,.2);--jd-color-button-background-hover-opacity60:hsla(0,0%,86%,.1);align-items:center;border:1px solid transparent;border-radius:var(--jd-border-radius-default);cursor:pointer;display:flex;height:34px;justify-content:center;justify-content:space-between;min-width:34px;min-width:100px;overflow:hidden}.jodit-toolbar-select__icon{display:none}.jodit-toolbar-select__icon:not(:empty){display:inline-flex}.jodit-toolbar-select__text{display:none}.jodit-toolbar-select__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-toolbar-select_context_menu .jodit-toolbar-select__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-toolbar-select_context_menu .jodit-toolbar-select__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-toolbar-select__icon:not(:empty)+.jodit-toolbar-select__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-toolbar-select__icon:empty+.jodit-toolbar-select__text:not(:empty){padding:0 var(--jd-padding-default);padding:0}.jodit-toolbar-select .jodit-icon{height:14px;width:14px}.jodit-toolbar-select button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-toolbar-select_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_tiny{height:16px;min-width:16px}.jodit-toolbar-select_size_tiny .jodit-icon{height:8px;width:8px}.jodit-toolbar-select_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-toolbar-select_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_xsmall{height:22px;min-width:22px}.jodit-toolbar-select_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-toolbar-select_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-toolbar-select_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_small{height:28px;min-width:28px}.jodit-toolbar-select_size_small .jodit-icon{height:12px;width:12px}.jodit-toolbar-select_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-toolbar-select_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_large{height:40px;min-width:40px}.jodit-toolbar-select_size_large .jodit-icon{height:16px;width:16px}.jodit-toolbar-select_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-toolbar-select_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select__button{align-items:center;appearance:none;background:0 0;border:0;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;color:var(--jd-color-text-icons);cursor:pointer;display:inline-flex;font-style:normal;justify-content:center;outline:0;padding:0;padding:0 var(--jd-padding-default);position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-toolbar-select__button:focus-visible:not([disabled]),.jodit-toolbar-select__button:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-select__button:active:not([disabled]),.jodit-toolbar-select__button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-select__button[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-select__button[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-select__trigger{align-items:center;border-radius:0 var(--jd-border-radius-default) var(--jd-border-radius-default) 0;cursor:pointer;display:flex;height:100%;justify-content:center;opacity:.4;--jd-button-trigger-size:14px;width:calc(var(--jd-button-trigger-size, 14px) + 2px)}.jodit-toolbar-select__trigger:focus-visible:not([disabled]),.jodit-toolbar-select__trigger:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-select__trigger:active:not([disabled]),.jodit-toolbar-select__trigger[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-select__trigger[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-select__trigger[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 14px) - 4px)}.jodit-toolbar-select_size_tiny .jodit-toolbar-select__trigger{--jd-button-trigger-size:8px;width:calc(var(--jd-button-trigger-size, 8px) + 2px)}.jodit-toolbar-select_size_tiny .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 8px) - 4px)}.jodit-toolbar-select_size_xsmall .jodit-toolbar-select__trigger{--jd-button-trigger-size:10px;width:calc(var(--jd-button-trigger-size, 10px) + 2px)}.jodit-toolbar-select_size_xsmall .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 10px) - 4px)}.jodit-toolbar-select_size_small .jodit-toolbar-select__trigger{--jd-button-trigger-size:12px;width:calc(var(--jd-button-trigger-size, 12px) + 2px)}.jodit-toolbar-select_size_small .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 12px) - 4px)}.jodit-toolbar-select_size_large .jodit-toolbar-select__trigger{--jd-button-trigger-size:16px;width:calc(var(--jd-button-trigger-size, 16px) + 2px)}.jodit-toolbar-select_size_large .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 16px) - 4px)}.jodit-toolbar-select_with-trigger_true .jodit-toolbar-button__button{border-radius:var(--jd-border-radius-default) 0 0 var(--jd-border-radius-default)}.jodit-toolbar-select_with-trigger_true:hover:not([disabled]){border-color:var(--jd-color-border)}.jodit-toolbar-select_stroke_false svg{stroke:none}.jodit-toolbar-select:focus-visible:not([disabled]),.jodit-toolbar-select:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-select:active:not([disabled]),.jodit-toolbar-select[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-select[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-select[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-select__text:not(:empty){justify-content:left}.jodit-toolbar-select__button{flex:1}.jodit-toolbar__box:not(:empty){--jd-color-background-default:var(--jd-color-panel);background-color:var(--jd-color-background-default);border-bottom:1px solid var(--jd-color-border);border-radius:var(--jd-border-radius-default) var(--jd-border-radius-default) 0 0;overflow:hidden}.jodit-toolbar__box:not(:empty) .jodit-toolbar-editor-collection:after{background-color:var(--jd-color-panel)}.jodit-dialog{border:0;box-sizing:border-box;display:none;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:0;position:absolute;width:0;will-change:left,top,width,height}.jodit-dialog_moved_true{user-select:none}.jodit-dialog *{box-sizing:border-box}.jodit-dialog .jodit_elfinder,.jodit-dialog .jodit_elfinder *{box-sizing:initial}.jodit-dialog__overlay{background-color:rgba(0,0,0,.5);display:none;height:100%;left:0;overflow:auto;position:fixed;text-align:center;top:0;white-space:nowrap;width:100%;z-index:var(--jd-z-index-dialog-overlay)}.jodit-dialog_static_true .jodit-dialog__overlay{display:none}.jodit-dialog_active_true,.jodit-dialog_modal_true .jodit-dialog__overlay{display:block}.jodit-dialog__panel{background-color:#fff;display:flex;flex-flow:column nowrap;left:0;max-height:100%;max-width:100%;min-height:100px;min-width:200px;position:fixed;top:0;z-index:var(--jd-z-index-dialog);--jd-box-shadow-blur:calc(var(--jd-padding-default)*2);--jd-box-shadow-1:0 var(--jd-padding-default) var(--jd-box-shadow-blur) rgba(0,0,0,.19);box-shadow:var(--jd-box-shadow-1),0 6px 6px rgba(0,0,0,.23);text-align:left;white-space:normal}@media (max-width:480px){.jodit-dialog:not(.jodit-dialog_adaptive_false) .jodit-dialog__panel{height:100%!important;left:0!important;max-width:100%;top:0!important;width:100%!important}}.jodit-dialog_static_true{box-sizing:border-box;display:block;height:auto;position:relative;width:auto;z-index:inherit}.jodit-dialog_static_true .jodit-dialog__panel{border:1px solid var(--jd-color-border);box-shadow:none;left:auto!important;position:relative;top:auto!important;width:100%!important;z-index:inherit}.jodit-dialog_theme_dark,.jodit-dialog_theme_dark .jodit-dialog__panel{background-color:var(--jd-dark-background-darknes);color:var(--jd-dark-text-color)}.jodit-dialog__header{border-bottom:1px solid var(--jd-color-border);cursor:move;display:flex;justify-content:space-between;min-height:50px;text-align:left}.jodit-dialog__header-title,.jodit-dialog__header-toolbar{align-items:center;display:flex;flex-shrink:3;font-size:18px;font-weight:400;line-height:48px;margin:0;padding:0 var(--jd-padding-default);vertical-align:top}@media (max-width:480px){.jodit-dialog__header-toolbar{padding-left:0}}.jodit-dialog__header-button{color:#222;flex-basis:48px;font-size:28px;height:48px;line-height:48px;text-align:center;text-decoration:none;transition:background-color .2s ease 0s}.jodit-dialog__header-button:hover{background-color:var(--jd-color-background-button-hover)}.jodit-dialog__header .jodit_toolbar{background:transparent;border:0;box-shadow:none}.jodit-dialog__header .jodit_toolbar>li.jodit-toolbar-button .jodit-input{padding-left:var(--jd-padding-default);width:auto}@media (max-width:480px){.jodit-dialog:not(.jodit-dialog_adaptive_false) .jodit-dialog__header{flex-direction:column}}.jodit-dialog_slim_true .jodit-dialog__header{min-height:10px}.jodit-dialog_slim_true .jodit-dialog__header-title,.jodit-dialog_slim_true .jodit-dialog__header-toolbar{padding:0 calc(var(--jd-padding-default)/4)}.jodit-dialog_theme_dark .jodit-dialog__header{border-color:var(--jd-color-dark)}.jodit-dialog_fullsize_true .jodit-dialog__header{cursor:default}.jodit-dialog__content{flex:1;min-height:100px;overflow:auto}.jodit-dialog__content .jodit-form__group{margin-bottom:calc(var(--jd-padding-default)*1.5);padding:0 var(--jd-padding-default)}.jodit-dialog__content .jodit-form__group:first-child{margin-top:var(--jd-padding-default)}.jodit-dialog__content .jodit-form__group .jodit-input_group{border-collapse:separate;display:table;width:100%}.jodit-dialog__content .jodit-form__group .jodit-input_group>*{display:table-cell;height:34px;vertical-align:middle}.jodit-dialog__content .jodit-form__group .jodit-input_group>input{margin:0!important}.jodit-dialog__content .jodit-form__group .jodit-input_group>input:not([class*=col-]){width:100%}.jodit-dialog__content .jodit-form__group .jodit-input_group-buttons{font-size:0;vertical-align:middle;white-space:nowrap;width:1%}.jodit-dialog__content .jodit-form__group .jodit-input_group-buttons>.jodit-button{border:1px solid var(--jd-color-border);border-radius:0;height:34px;line-height:34px;margin-left:-1px}.jodit-dialog__footer{display:none;flex-wrap:nowrap;justify-content:space-between;padding:var(--jd-padding-default)}.jodit-dialog__footer button{margin-right:calc(var(--jd-padding-default)/2)}.jodit-dialog__footer button:last-child{margin-right:0}.jodit-dialog__column{display:flex}.jodit-dialog__resizer{display:none;position:relative}.jodit-dialog__resizer svg{bottom:0;cursor:nwse-resize;height:12px;overflow:hidden;position:absolute;right:0;width:12px;fill:var(--jd-color-gray-dark);user-select:none}.jodit-dialog_resizable_true .jodit-dialog__resizer{display:block}@media (max-width:480px){.jodit-dialog__resizer{display:none}}.jodit-dialog_prompt{max-width:300px;min-width:200px;padding:var(--jd-padding-default);word-break:break-all}.jodit-dialog_prompt label{display:block;margin-bottom:calc(var(--jd-padding-default)/2)}.jodit-dialog_alert{max-width:300px;min-width:200px;padding:var(--jd-padding-default);word-break:break-all}.jodit-dialog_footer_true .jodit-dialog__footer{display:flex}.jodit_fullsize .jodit-dialog__panel{height:100%!important;inset:0!important;width:100%!important}.jodit_fullsize .jodit-dialog__panel .jodit-dialog__resizer{display:none}.jodit-dialog .jodit-ui-messages{z-index:var(--jd-z-index-dialog)}.jodit-context-menu{background:0 0;border:0;box-shadow:var(--jd-popup-box-shadow);display:inline-block;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;position:fixed;transform:translateZ(0);width:auto;z-index:var(--jd-z-index-popup);z-index:var(--jd-z-index-context-menu)}.jodit-context-menu,.jodit-context-menu__content{font-family:var(--jd-font-default);font-size:var(--jd-font-size-default)}.jodit-context-menu__content{background:var(--jd-color-background-default);max-height:var(--jd-popup-max-height,400px);overflow:auto;padding:var(--jd-padding-default);overflow-scrolling:touch}.jodit-context-menu_padding_false .jodit-context-menu__content{padding:0}.jodit-context-menu_max-height_false .jodit-context-menu__content{max-height:fit-content}.jodit-context-menu .jodit-ui-button{display:flex}.jodit-context-menu button{width:100%}.jodit-context-menu_theme_dark{background-color:var(--jd-dark-background-color)}:root{--jd-image-editor-resizer-border-color:#05ff00;--jd-image-editor-resizer-target-size:padding-default;--jd-image-editor-resizer-target-border-color:#383838;--jd-image-editor-resizer-target-bg-color:#8c7878}.jodit-image-editor{height:100%;overflow:hidden;padding:var(--jd-padding-default);width:100%}@media (max-width:768px){.jodit-image-editor{height:auto}}.jodit-image-editor>div,.jodit-image-editor>div>div{height:100%}@media (max-width:768px){.jodit-image-editor>div,.jodit-image-editor>div>div{height:auto;min-height:200px}}.jodit-image-editor *{box-sizing:border-box}.jodit-image-editor .jodit-image-editor__slider-title{background-color:#f9f9f9;border-bottom:1px solid hsla(0,0%,62%,.31);color:#333;cursor:pointer;font-weight:700;line-height:1em;padding:.8em 1em;text-overflow:ellipsis;text-shadow:#f3f3f3 0 1px 0;user-select:none;white-space:nowrap}.jodit-image-editor .jodit-image-editor__slider-title svg{display:inline-block;margin-right:var(--jd-padding-default);vertical-align:middle;width:16px}.jodit-image-editor .jodit-image-editor__slider-content{display:none}.jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-title{background-color:#5d5d5d;color:#fff;text-shadow:#000 0 1px 0}.jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-title svg{fill:#fff}.jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-content{display:block}.jodit-image-editor__area{background-color:#eee;background-image:linear-gradient(45deg,var(--jd-color-border) 25%,transparent 25%,transparent 75%,var(--jd-color-border) 75%,var(--jd-color-border)),linear-gradient(45deg,var(--jd-color-border) 25%,transparent 25%,transparent 75%,var(--jd-color-border) 75%,var(--jd-color-border));background-position:0 0,15px 15px;background-size:30px 30px;display:none;height:100%;overflow:hidden;position:relative;user-select:none;width:100%}.jodit-image-editor__area.jodit-image-editor_active{display:block}.jodit-image-editor__area .jodit-image-editor__box{height:100%;overflow:hidden;pointer-events:none;position:relative;z-index:1}.jodit-image-editor__area .jodit-image-editor__box img{max-height:100%;max-width:100%;user-select:none}.jodit-image-editor__area .jodit-image-editor__croper,.jodit-image-editor__area .jodit-image-editor__resizer{background-repeat:no-repeat;border:1px solid #fff;box-shadow:0 0 11px #000;height:100px;left:20px;pointer-events:none;position:absolute;top:var(--jd-padding-default);width:100px;z-index:2}.jodit-image-editor__area .jodit-image-editor__croper i.jodit_bottomright,.jodit-image-editor__area .jodit-image-editor__resizer i.jodit_bottomright{background-color:var(--jd-image-editor-resizer-target-bg-color);border:1px solid var(--jd-image-editor-resizer-target-border-color);border-radius:50%;bottom:calc(var(--jd-padding-default)*-1);box-shadow:0 0 11px #000;cursor:se-resize;display:inline-block;height:20px;pointer-events:all;position:absolute;right:calc(var(--jd-padding-default)*-1);width:20px;z-index:4}.jodit-image-editor__area .jodit-image-editor__croper i.jodit_bottomright:active,.jodit-image-editor__area .jodit-image-editor__resizer i.jodit_bottomright:active{border:1px solid #ff0}.jodit-image-editor__area.jodit-image-editor__area_crop{background:#eee;height:100%;line-height:100%;position:relative;text-align:center}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box{height:100%;line-height:100%;overflow:visible;pointer-events:all;text-align:left}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box img{height:100%;max-height:100%;max-width:100%;width:100%}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box:after{background:hsla(0,0%,100%,.3);content:"";inset:0;margin:auto;position:absolute;z-index:1}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box .jodit-image-editor__croper{cursor:move;pointer-events:all}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box .jodit-image-editor__croper i.jodit-image-editor__sizes{background:rgba(0,0,0,.2);border-radius:.4em;bottom:-30px;color:#fff;display:block;font-size:12px;left:100%;padding:9px 6px;position:absolute;text-align:center;text-shadow:none;white-space:pre}.jodit-image-editor__area.jodit-image-editor__area_crop.jodit-image-editor_active{align-items:center;display:flex;justify-content:center}.jodit-file-browser-files{display:none;height:100%;overflow-anchor:auto;position:relative;vertical-align:top}.jodit-file-browser-files .jodit-button{border-radius:0}.jodit-file-browser-files_loading_true:before{content:"";height:100%;left:0;position:absolute;top:0;width:100%}.jodit-file-browser-files_loading_true:after{animation:b 2s ease-out 0s infinite;background:url(${D}) no-repeat 50%;background-size:100% 100%;content:"";display:inline-block;height:var(--jd-icon-loader-size);left:50%;margin-left:calc(var(--jd-icon-loader-size)/-2);margin-top:calc(var(--jd-icon-loader-size)/-2);opacity:.7;position:absolute;top:50%;vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-file-browser-files::-webkit-scrollbar{width:calc(var(--jd-padding-default)/2)}.jodit-file-browser-files::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.jodit-file-browser-files::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #708090}.jodit-file-browser-files_active_true{align-content:flex-start;display:flex;flex-wrap:wrap;overflow-y:auto;padding:calc(var(--jd-padding-default)/2);width:100%}.jodit-file-browser-files__item{align-items:center;border:1px solid var(--jd-color-border);display:flex;font-size:0;height:var(--jd-col-size);justify-content:center;margin:calc(var(--jd-padding-default)/2);overflow:hidden;position:relative;text-align:center;transition:border .1s linear,bottom .1s linear;width:var(--jd-col-size)}@media (max-width:480px){.jodit-file-browser-files__item{width:calc(50% - var(--jd-padding-default))}}.jodit-file-browser-files__item img{max-width:100%}.jodit-file-browser-files__item:hover{border-color:#433b5c}.jodit-file-browser-files__item_active_true{background-color:var(--jd-color-border-active);border-color:var(--jd-color-border-selected)}.jodit-file-browser-files__item_active_true .jodit-file-browser-files__item-info{background-color:var(--jd-color-border-active);color:#fff;text-shadow:none}.jodit-file-browser-files__item-info{background-color:var(--jd-info-background);bottom:0;color:#333;font-size:14px;left:0;line-height:16px;opacity:.85;overflow:visible;padding:.3em .6em;position:absolute;right:0;text-align:left;text-shadow:#eee 0 1px 0;transition:opacity .4s ease;white-space:normal}.jodit-file-browser-files__item-info>span{display:block;font-size:.75em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jodit-file-browser-files__item-info>span.jodit-file-browser-files__item-info-filename{font-size:.9em;font-weight:700}.jodit-file-browser-files__item:hover:not(.jodit-file-browser-files__item_active_true) .jodit-file-browser-files__item-info{bottom:-100px}.jodit-file-browser-files_view_list{scroll-behavior:smooth}.jodit-file-browser-files_view_list a{border-width:0 0 1px;display:block;height:26px;line-height:26px;margin:0;text-align:left;white-space:nowrap;width:100%}.jodit-file-browser-files_view_list a img{display:inline-block;margin-left:4px;max-width:16px;min-width:16px;vertical-align:middle}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info{background-color:transparent;display:inline-block;font-size:0;height:100%;line-height:inherit;margin-left:4px;padding:0;position:static;vertical-align:middle;width:calc(100% - 20px)}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info>span{display:inline-block;font-size:12px;height:100%}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info-filename{width:50%}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info-filechanged,.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info-filesize{width:25%}.jodit-file-browser-files_view_list a:hover{background-color:#433b5c}.jodit-file-browser-files_view_list a:hover .jodit-file-browser-files__item-info{color:#fff;text-shadow:none}.jodit-file-browser-files_view_list a:before{content:"";display:inline-block;height:100%;vertical-align:middle}:root{--jd-color-folder-title:#b1b1b1}.jodit-file-browser-tree{--jd-color-background-filebrowser-folders:#3f3f3f;display:none;height:100%;overflow-anchor:auto;position:relative;vertical-align:top}.jodit-file-browser-tree .jodit-button{border-radius:0}.jodit-file-browser-tree_loading_true:before{content:"";height:100%;left:0;position:absolute;top:0;width:100%}.jodit-file-browser-tree_loading_true:after{animation:b 2s ease-out 0s infinite;background:url(${D}) no-repeat 50%;background-size:100% 100%;content:"";display:inline-block;height:var(--jd-icon-loader-size);left:50%;margin-left:calc(var(--jd-icon-loader-size)/-2);margin-top:calc(var(--jd-icon-loader-size)/-2);opacity:.7;position:absolute;top:50%;vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-file-browser-tree::-webkit-scrollbar{width:calc(var(--jd-padding-default)/2)}.jodit-file-browser-tree::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.jodit-file-browser-tree::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #708090}.jodit-file-browser-tree_active_true{background-color:var(--jd-color-background-filebrowser-folders);display:flex;flex-direction:column;max-width:290px;min-width:200px;overflow-y:auto;width:var(--jd-first-column);z-index:2}@media (max-width:480px){.jodit-file-browser-tree_active_true{height:100px;max-width:100%;width:auto}}.jodit-file-browser-tree_active_true::-webkit-scrollbar{width:calc(var(--jd-padding-default)/2)}.jodit-file-browser-tree_active_true::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.jodit-file-browser-tree_active_true::-webkit-scrollbar-thumb{background-color:hsla(0,0%,50%,.5);outline:1px solid #708090}.jodit-file-browser-tree__item{align-items:center;border-bottom:1px solid #474747;color:var(--jd-color-folder-title);display:flex;justify-content:space-between;min-height:38px;padding:calc(var(--jd-padding-default)/2) var(--jd-padding-default);position:relative;text-decoration:none;transition:background-color .2s ease 0s;word-break:break-all}.jodit-file-browser-tree__item-title{color:var(--jd-color-folder-title);flex:1}.jodit-file-browser-tree__item .jodit-icon_folder{align-items:center;display:flex;height:calc(var(--jd-icon-size) + 4px);justify-content:center;margin-left:calc(var(--jd-padding-default)/2);opacity:.3;width:calc(var(--jd-icon-size) + 4px)}.jodit-file-browser-tree__item .jodit-icon_folder svg{height:var(--jd-icon-size);width:var(--jd-icon-size);fill:var(--jd-color-folder-title)!important;stroke:var(--jd-color-folder-title)!important}.jodit-file-browser-tree__item .jodit-icon_folder:hover{background:#696969}.jodit-file-browser-tree__item:hover{background-color:var(--jd-color-background-button-hover)}.jodit-file-browser-tree__item:hover-title{color:var(--jd-color-text)}.jodit-file-browser-tree__item:hover i.jodit-icon_folder{opacity:.6}.jodit-file-browser-tree__source-title{background:#5a5a5a;border-bottom:1px solid #484848;color:#969696;display:block;font-size:12px;padding:2px 4px;position:relative;user-select:none;word-break:break-all}a+.jodit-file-browser-tree__source-title{margin-top:var(--jd-padding-default)}:root{--jd-first-column:31%;--jd-cols:4;--jd-info-background:#e9e9e9;--jd-icon-size:12px;--jd-col-size:150px}.jodit-file-browser{display:flex;font-family:var(--jd-font-default);height:100%}.jodit-file-browser_no-files_true{padding:var(--jd-padding-default)}@media (max-width:480px){.jodit-file-browser{flex-flow:column-reverse}}.jodit-dialog .jodit-dialog__header-title.jodit-file-browser__title-box{align-items:center;display:flex;padding-left:var(--jd-padding-default)}.jodit-file-browser-preview{align-items:center;display:flex;height:100%;justify-content:center;margin:auto;max-height:100%;max-width:min(100%,1000px);min-height:min(100%,500px);min-width:400px;position:relative;text-align:center}@media (max-width:768px){.jodit-file-browser-preview{height:100%;max-height:100%;max-width:100%;min-height:auto;min-width:auto}}.jodit-file-browser-preview__box{align-items:center;display:flex;flex-grow:1;justify-content:center}.jodit-file-browser-preview__navigation{cursor:pointer;height:100%;left:0;position:absolute;top:0}.jodit-file-browser-preview__navigation_arrow_next{left:auto;right:0}.jodit-file-browser-preview__navigation svg{height:45px;position:relative;top:50%;width:45px;fill:#9e9ba7;transform:translateY(-50%);transition:fill .3s linear}.jodit-file-browser-preview__navigation:hover svg{fill:#000}.jodit-file-browser-preview img{max-height:100%;max-width:100%}.jodit-status-bar{align-items:center;background-color:var(--jd-color-panel);border-radius:0 0 var(--jd-border-radius-default) var(--jd-border-radius-default);color:var(--jd-color-text-icons);display:flex;font-size:var(--jd-font-size-small);height:20px;justify-content:flex-start;overflow:hidden;padding:0 calc(var(--jd-padding-default)/2);text-transform:uppercase}.jodit-status-bar_resize-handle_true{padding-right:14px}.jodit-status-bar:before{content:"";flex:auto;order:1}.jodit-status-bar .jodit-status-bar__item{line-height:1.5714em;margin:0 var(--jd-padding-default) 0 0;order:0;padding:0}.jodit-status-bar .jodit-status-bar__item,.jodit-status-bar .jodit-status-bar__item>span{font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);font-size:var(--jd-font-size-small)}.jodit-status-bar .jodit-status-bar__item.jodit-status-bar__item-right{margin:0 0 0 var(--jd-padding-default);order:2}.jodit-status-bar .jodit-status-bar__item a{border-radius:3px;cursor:default;text-decoration:none}.jodit-status-bar .jodit-status-bar__item a:hover{background-color:var(--jd-color-background-gray);text-decoration:none}.jodit-status-bar a.jodit-status-bar-link{cursor:pointer}.jodit-status-bar a.jodit-status-bar-link,.jodit-status-bar a.jodit-status-bar-link:hover,.jodit-status-bar a.jodit-status-bar-link:visited{background-color:transparent;color:var(--jd-color-text-icons)}.jodit-status-bar a.jodit-status-bar-link:hover{text-decoration:underline}.jodit-workplace+.jodit-status-bar:not(:empty){border-top:1px solid var(--jd-color-border)}.jodit_disabled .jodit-status-bar{opacity:.4}.jodit-drag-and-drop__file-box,.jodit_uploadfile_button{border:1px dashed var(--jd-color-gray);margin:var(--jd-padding-default) 0;overflow:hidden;padding:25px 0;position:relative;text-align:center;width:100%}.jodit-drag-and-drop__file-box:hover,.jodit_uploadfile_button:hover{background-color:var(--jd-color-background-button-hover)}.jodit-drag-and-drop__file-box input,.jodit_uploadfile_button input{cursor:pointer;font-size:400px;inset:0;margin:0;opacity:0;padding:0;position:absolute}@media (max-width:768px){.jodit-drag-and-drop__file-box{max-width:100%;min-width:var(--jd-width-input-min);width:auto}}.jodit-about{padding:20px}.jodit-about a{color:#459ce7;text-decoration:none}.jodit-about a:focus,.jodit-about a:hover{color:#23527c;outline:0;text-decoration:underline}.jodit-about div{margin-bottom:calc(var(--jd-padding-default)/2)}:root{--jd-anl-color-new-line:var(--jd-color-border);--jd-anl-handle-size:20px;--jd-anl-handle-offset:calc(100% - var(--jd-anl-handle-size))}.jodit-add-new-line{display:block;height:1px;outline:none;position:fixed;top:0;z-index:1}.jodit-add-new-line,.jodit-add-new-line *{box-sizing:border-box}.jodit-add-new-line:after{background-color:var(--jd-anl-color-new-line);content:"";display:block;height:1px;width:100%}.jodit-add-new-line span{align-items:center;background:var(--jd-color-background-button-hover-opacity30);border:1px solid var(--jd-anl-color-new-line);cursor:pointer;display:flex;height:var(--jd-anl-handle-size);justify-content:center;left:var(--jd-anl-handle-offset);position:absolute;top:0;transform:translateY(-50%);width:var(--jd-anl-handle-size)}.jodit-add-new-line span:hover{background:var(--jd-color-background-button-hover)}.jodit-add-new-line svg{width:calc(var(--jd-anl-handle-size)/2);fill:var(--jd-anl-color-new-line)}.jodit-source__mode .jodit-add-new-line{display:none!important}:root{--jd-color-picker-cell-size:24px}.jodit-color-picker{margin:0;text-align:left;user-select:none}.jodit-color-picker__group{display:flex;flex-wrap:wrap;margin-bottom:calc(var(--jd-padding-default)/2);max-width:calc(var(--jd-color-picker-cell-size)*10);white-space:normal}.jodit-color-picker__color-item{border:1px solid transparent;display:block;height:var(--jd-color-picker-cell-size);text-align:center;text-decoration:none;vertical-align:middle;width:var(--jd-color-picker-cell-size)}.jodit-color-picker__color-item:hover{border-color:#000}.jodit-color-picker__color-item:active,.jodit-color-picker__color-item_active_true{border:2px solid var(--jd-color-border-selected)}.jodit-color-picker__native svg{display:inline-block;height:16px;margin-right:4px;width:16px}.jodit-color-picker__native input{appearance:none;border:none;height:18px;padding:0;width:18px}.jodit-color-picker__native input[type=color]::-webkit-color-swatch-wrapper{padding:0}.jodit-color-picker__native input input[type=color]::-webkit-color-swatch{border:none}.jodit-tabs{--jd-box-shadow-tabs:0 0 #0000,0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);font-family:var(--jd-font-default);font-size:var(--jd-font-size-default)}.jodit-tabs .jodit-tabs__buttons{background-color:var(--jd-color-background-light-gray);border-radius:var(--jd-border-radius-default);display:flex;justify-content:center;margin-bottom:var(--jd-padding-default);margin-top:calc(var(--jd-padding-default)/2);padding:calc(var(--jd-padding-default)/2)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button{color:var(--jd-color-placeholder)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button svg{fill:var(--jd-color-placeholder)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]),.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]){box-shadow:var(--jd-box-shadow-tabs);color:var(--jd-color-text-icons)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]),.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) .jodit-ui-button__text,.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]),.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) .jodit-ui-button__text{background-color:var(--jd-color-background-default)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) svg,.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) svg{fill:var(--jd-color-text-icons)}.jodit-tabs .jodit-tabs__buttons>*{cursor:pointer;margin-left:calc(var(--jd-padding-default)/2)}.jodit-tabs .jodit-tabs__buttons>:only-of-type{width:100%}.jodit-tabs .jodit-tabs__buttons>:first-child{margin-left:0}@media (max-width:480px){.jodit-tabs .jodit-tabs__buttons{display:block}.jodit-tabs .jodit-tabs__buttons>*{margin-left:0;width:100%}}.jodit-tabs__button{max-width:210px;min-width:80px}.jodit-tabs__button .jodit-ui-button__text{flex:1;justify-content:space-around;white-space:nowrap}.jodit-tabs__button_columns_3{width:33.33333%}.jodit-tabs__button_columns_2{width:50%}.jodit-tabs .jodit-tabs__wrapper .jodit-tab{display:none}.jodit-tabs .jodit-tabs__wrapper .jodit-tab.jodit-tab_active{display:block}.jodit-tabs .jodit-tabs__wrapper .jodit-tab.jodit-tab_empty{min-height:100px;min-width:220px}.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons{background-color:var(--jd-dark-background-color);border-radius:var(--jd-border-radius-default)}.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) .jodit-ui-button__text,.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) .jodit-ui-button__text,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) .jodit-ui-button__text,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) .jodit-ui-button__text{color:var(--jd-dark-toolbar-color)}.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) svg,.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) svg,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) svg,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) svg{fill:var(--jd-color-text-icons)}.jodit_fullsize-box_true{overflow:visible!important;position:static!important;z-index:var(--jd-z-index-full-size)!important}body.jodit_fullsize-box_true,html.jodit_fullsize-box_true{height:0!important;overflow:hidden!important;width:0!important}html.jodit_fullsize-box_true{position:fixed!important}.jodit_fullsize{inset:0;max-width:none!important;position:absolute;z-index:var(--jd-z-index-full-size)}.jodit_fullsize .toolbar{width:100%!important}.jodit_fullsize .jodit__area,.jodit_fullsize .jodit_editor{height:100%}.jodit-ui-image-position-tab__lockMargin>svg,.jodit-ui-image-position-tab__lockSize>svg,.jodit-ui-image-properties-form__lockMargin>svg,.jodit-ui-image-properties-form__lockSize>svg{display:inline-block;height:var(--jd-icon-middle-size);overflow:hidden;width:var(--jd-icon-middle-size);fill:var(--jd-color-dark);line-height:var(--jd-icon-middle-size);transform-origin:0 0!important;vertical-align:middle}.jodit-ui-image-position-tab__view-box,.jodit-ui-image-properties-form__view-box{padding:var(--jd-padding-default)}.jodit-ui-image-position-tab__imageView,.jodit-ui-image-properties-form__imageView{align-items:center;background-color:var(--jd-color-background-light-gray);display:flex;height:var(--jd-width-default);justify-content:center;margin:0 0 var(--jd-padding-default);padding:0}.jodit-ui-image-position-tab__imageView img,.jodit-ui-image-properties-form__imageView img{max-height:100%;max-width:100%}.jodit-ui-image-position-tab__imageSizes.jodit-form__group,.jodit-ui-image-properties-form__imageSizes.jodit-form__group{align-items:center;flex-direction:row;margin:0;min-width:auto;padding:0}.jodit-ui-image-position-tab__imageSizes.jodit-form__group a,.jodit-ui-image-properties-form__imageSizes.jodit-form__group a{cursor:pointer;display:inline-block}.jodit-ui-image-position-tab .jodit-form__group,.jodit-ui-image-properties-form .jodit-form__group{padding:0}.jodit-ui-image-position-tab__tabsBox,.jodit-ui-image-properties-form__tabsBox{padding:0 var(--jd-padding-default)}.jodit-dialog_theme_dark .jodit-ui-image-properties-form__imageView,.jodit_theme_dark .jodit-ui-image-properties-form__imageView{background-color:var(--jd-dark-background-color)}.jodit-ui-image-properties-form_lock_true:before{background-color:var(--jd-color-button-background-hover-opacity60);content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:3}.jodit-ui-image-properties-form_lock_true:after{animation:b 2s ease-out 0s infinite;background:url(${D}) no-repeat 50%;background-size:100% 100%;background-size:var(--jd-icon-loader-size);content:"";display:inline-block;height:var(--jd-icon-loader-size);left:50%;margin-left:-10px;margin-top:-10px;position:absolute;top:50%;vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-popup-inline__container{min-width:700px;z-index:1300}.jodit-paste-storage{max-width:600px;padding:var(--jd-padding-default)}@media (max-width:768px){.jodit-paste-storage{max-width:100%}}.jodit-paste-storage>div{border:1px solid var(--jd-color-border);max-height:300px;max-width:100%}.jodit-paste-storage>div:first-child{margin-bottom:var(--jd-padding-default)}.jodit-paste-storage>div:first-child a{border:1px solid transparent;box-sizing:border-box;color:var(--jd-color-default);display:block;margin:0;max-width:100%;outline:none;overflow:hidden;padding:calc(var(--jd-padding-default)/2);text-decoration:none;text-overflow:ellipsis;white-space:pre}.jodit-paste-storage>div:first-child a.jodit_active{background-color:var(--jd-dark-background-color);color:var(--jd-color-white)}.jodit-paste-storage>div:first-child a:focus{outline:none}.jodit-paste-storage>div:last-child{overflow:auto;padding:var(--jd-padding-default)}.jodit-paste-storage>div:last-child li,.jodit-paste-storage>div:last-child ul{margin:0}.jodit-placeholder{color:var(--jd-color-placeholder);display:block;left:0;padding:var(--jd-padding-default);pointer-events:none;position:absolute;top:0;user-select:none!important;width:100%;z-index:1}.jodit__preview-box table{border:none;border-collapse:collapse;empty-cells:show;margin-bottom:1em;margin-top:1em;max-width:100%}.jodit__preview-box table tr{user-select:none}.jodit__preview-box table tr td,.jodit__preview-box table tr th{border:1px solid var(--jd-color-border);min-width:2em;padding:.4em;user-select:text;vertical-align:middle}.jodit-table-resizer{cursor:col-resize;margin-left:calc(var(--jd-padding-default)/-2);padding-left:calc(var(--jd-padding-default)/2);padding-right:calc(var(--jd-padding-default)/2);position:absolute;z-index:3}.jodit-table-resizer:after{border:0;content:"";display:block;height:100%;width:0}.jodit-table-resizer_moved{background-color:var(--jd-color-background-selection);z-index:2}.jodit-table-resizer_moved:after{border-right:1px solid moved}[data-jodit_iframe_wrapper]{display:block;position:relative;user-select:none}[data-jodit_iframe_wrapper] iframe{position:relative}[data-jodit_iframe_wrapper]:after{background:transparent;content:"";cursor:pointer;display:block;inset:0;position:absolute;z-index:1}[data-jodit_iframe_wrapper][data-jodit-wrapper_active=true] iframe{z-index:2}.jodit_lock [data-jodit-wrapper_active=true] iframe{z-index:1}:root{--jd-viewer-width:70px;--jd-viewer-height:24px;--jd-resizer-handle-size:10px;--jd-resizer-border-color:#98c1f1;--jd-resizer-handle-color:#5ba4f3;--jd-resizer-handle-hover-color:#537ebb}.jodit-resizer{font-size:0;height:100px;left:0;outline:3px solid var(--jd-resizer-border-color);pointer-events:none;position:absolute;top:0;width:100px}.jodit-resizer,.jodit-resizer *{box-sizing:border-box}.jodit-resizer>span{background-color:var(--jd-color-placeholder);color:var(--jd-color-white);display:inline-block;font-size:12px;height:var(--jd-viewer-height);left:50%;line-height:var(--jd-viewer-height);margin-left:calc(var(--jd-viewer-width)/-2);margin-top:calc(var(--jd-viewer-height)/-2);opacity:0;overflow:visible;position:absolute;text-align:center;top:50%;transition:opacity .2s linear;width:var(--jd-viewer-width)}.jodit-resizer>div{background-color:var(--jd-resizer-handle-color);display:inline-block;height:var(--jd-resizer-handle-size);pointer-events:all;position:absolute;width:var(--jd-resizer-handle-size);z-index:4}.jodit-resizer>div:hover{background-color:var(--jd-resizer-handle-hover-color)}.jodit-resizer>div:first-child{cursor:nwse-resize;left:calc(var(--jd-resizer-handle-size)/-2);top:calc(var(--jd-resizer-handle-size)/-2)}.jodit-resizer>div:nth-child(2){cursor:nesw-resize;right:calc(var(--jd-resizer-handle-size)/-2);top:calc(var(--jd-resizer-handle-size)/-2)}.jodit-resizer>div:nth-child(3){bottom:calc(var(--jd-resizer-handle-size)/-2);cursor:nwse-resize;right:calc(var(--jd-resizer-handle-size)/-2)}.jodit-resizer>div:nth-child(4){bottom:calc(var(--jd-resizer-handle-size)/-2);cursor:nesw-resize;left:calc(var(--jd-resizer-handle-size)/-2)}@media (max-width:768px){.jodit-resizer>div :root{--jd-resizer-handle-size:calc(var(--jd-resizer-handle-size)*2)}}:root{--jd-height-search:30px;--jd-width-search:320px;--jd-width-search-input-box:60%;--jd-width-search-count-box:15%;--jd-transform-button-active:0.95;--jd-timeout-button-active:0.1s}.jodit-ui-search{height:0;position:absolute;right:0;top:0;width:0}.jodit-ui-search_sticky_true{position:fixed}.jodit-ui-search__box{background-color:var(--jd-color-panel);border:solid var(--jd-color-border);border-width:0 0 1px 1px;display:flex;max-width:100vw;padding:calc(var(--jd-padding-default)/2);position:absolute;right:0;width:var(--jd-width-search)}.jodit-ui-search__box input{background-color:transparent;border:0;height:100%;margin:0;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-search__box input[data-ref=replace]{display:none}.jodit-ui-search__box input:not(:focus)+input:not(:focus){border-top:1px solid var(--jd-color-border)}.jodit-ui-search__buttons,.jodit-ui-search__counts,.jodit-ui-search__inputs{height:var(--jd-height-search)}.jodit-ui-search__inputs{padding-right:calc(var(--jd-padding-default)/2);width:var(--jd-width-search-input-box)}.jodit-ui-search__counts{border-left:1px solid var(--jd-color-border);color:var(--jd-color-border);width:var(--jd-width-search-count-box)}.jodit-ui-search__buttons,.jodit-ui-search__counts{align-items:center;display:flex;justify-content:center}.jodit-ui-search__buttons{flex:1;padding-left:0}.jodit-ui-search__buttons button{background-color:transparent;border:1px solid transparent;height:100%;margin-right:1%;width:32%}.jodit-ui-search__buttons button[data-ref=replace-btn]{border:1px solid var(--jd-color-border);display:none;margin-top:2px;width:100%}.jodit-ui-search__buttons button:hover{background-color:var(--jd-color-background-button-hover)}.jodit-ui-search__buttons button:focus{border:1px solid var(--jd-color-background-selection-opacity50)}.jodit-ui-search__buttons button:active{border:1px solid var(--jd-color-background-selection);transform:scale(var(--jd-transform-button-active))}.jodit-ui-search_empty-query_true [data-ref=next],.jodit-ui-search_empty-query_true [data-ref=prev]{opacity:.5}.jodit-ui-search_replace_true .jodit-ui-search__counts,.jodit-ui-search_replace_true .jodit-ui-search__inputs{height:calc(var(--jd-height-search)*2)}.jodit-ui-search_replace_true .jodit-ui-search__counts input,.jodit-ui-search_replace_true .jodit-ui-search__inputs input{height:50%;transition:background-color var(--jd-timeout-button-active) linear}.jodit-ui-search_replace_true .jodit-ui-search__counts input:focus,.jodit-ui-search_replace_true .jodit-ui-search__inputs input:focus{box-shadow:inset 0 0 3px 0 var(--jd-color-border)}.jodit-ui-search_replace_true .jodit-ui-search__counts input[data-ref=replace],.jodit-ui-search_replace_true .jodit-ui-search__inputs input[data-ref=replace]{display:block}.jodit-ui-search_replace_true .jodit-ui-search__buttons{flex-wrap:wrap}.jodit-ui-search_replace_true .jodit-ui-search__buttons button[data-ref=replace-btn]{display:block}::highlight(jodit-search-result),[jd-tmp-selection]{background-color:var(--jd-color-background-selection);color:var(--jd-color-text-selection)}.jodit-container:not(.jodit_inline){min-height:100px}.jodit-container:not(.jodit_inline) .jodit-workplace{display:flex;flex-direction:column;height:auto;min-height:50px;overflow:hidden}.jodit-container:not(.jodit_inline) .jodit-editor__resize{position:relative}.jodit-container:not(.jodit_inline) .jodit-editor__resize svg{bottom:0;cursor:nwse-resize;height:12px;overflow:hidden;position:absolute;right:0;width:12px;fill:var(--jd-color-gray-dark);user-select:none}.jodit-source{background-color:var(--jd-color-source-area);display:none;flex:auto;overflow:auto;position:relative}.jodit-source,.jodit-source .jodit-source__mirror-fake{min-height:100%}.jodit-source *{font:12px/normal Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace}.jodit-container.jodit-source__mode .jodit-wysiwyg,.jodit-container.jodit-source__mode .jodit-wysiwyg_iframe{display:none!important}.jodit-container.jodit-source__mode .jodit-source{display:block!important}.jodit-container.jodit_split_mode .jodit-workplace{flex-flow:row nowrap}.jodit-container.jodit_split_mode .jodit-source,.jodit-container.jodit_split_mode .jodit-wysiwyg,.jodit-container.jodit_split_mode .jodit-wysiwyg_iframe{display:block!important;flex:1;width:50%}.jodit-source__mirror{background:var(--jd-color-source-area);border:0;box-shadow:none;box-sizing:border-box;color:#f0f0f0;height:100%;line-height:1.5;font:12px/normal Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;margin:0;min-height:100%;outline:none;overflow:auto;padding:var(--jd-padding-default);resize:none;tab-size:2em;white-space:pre-wrap;width:100%;z-index:2}.jodit-source__mirror::selection{background:var(--jd-color-selection-area)}.jodit_sticky-dummy_toolbar{display:none}.jodit_sticky>.jodit-toolbar__box{border-bottom:1px solid var(--jd-color-border);left:auto;position:fixed;position:sticky;top:0;z-index:3}.jodit_sticky .jodit_sticky-dummy_toolbar{display:block}.jodit-symbols{padding:var(--jd-padding-default);width:460px}.jodit-symbols__container{display:flex}.jodit-symbols__container_table{width:88%}.jodit-symbols__container_preview{width:12%}.jodit-symbols__preview{border:1px solid var(--jd-color-border);font-size:34px;padding:20px 0;text-align:center}.jodit-symbols__table{border:0;border-spacing:0;table-layout:fixed}.jodit-symbols__table td{padding:0}.jodit-symbols__table td a{border:1px solid transparent;box-sizing:border-box;color:var(--jd-color-text);cursor:pointer;display:inline-block;font-size:16px;height:calc(var(--jd-height-element-default)*1.2);line-height:calc(var(--jd-height-element-default)*1.2);text-align:center;text-decoration:none;vertical-align:top;width:calc(var(--jd-width-element-default)*1.2)}.jodit-symbols__table td a:focus,.jodit-symbols__table td a:hover{outline:2px solid var(--jd-color-border)}.jodit-ui-ai-assistant{min-width:460px;padding:var(--jd-padding-default);width:100%}@media (max-width:768px){.jodit-ui-ai-assistant{min-width:100%}}.jodit-ui-ai-assistant__body{margin-bottom:10px}.jodit-ui-ai-assistant__prompt-row{align-items:flex-start;display:flex;margin-bottom:10px}.jodit-ui-ai-assistant__prompt-row-label{margin-right:10px}.jodit-ui-ai-assistant__prompt-row-input{flex:1;margin-right:10px}.jodit-ui-ai-assistant__prompt-row .jodit-icon_ai_assistant{cursor:pointer;height:22px;width:22px}.jodit-ui-ai-assistant__prompt-row .jodit-ui-button{margin-right:10px}.jodit-ui-ai-assistant__prompt-row .jodit-ui-button_ai_assistant{margin-right:0;margin-top:20px}.jodit-ui-ai-assistant__results{border-color:var(--jd-color-label);border-style:solid;border-width:1px;height:300px;line-height:1.5;max-width:460px;min-height:300px;min-width:100%;overflow:auto;padding:var(--jd-padding-default);position:relative}.jodit-ui-ai-assistant__results p{margin:0 0 10px}.jodit-ui-ai-assistant__close{cursor:pointer;padding:10px;position:absolute;right:0;top:0}.jodit-ui-ai-assistant_hide_true{display:none}.jodit-ui-ai-assistant__spinner:before{animation:b .6s linear infinite;border:1px solid #ccc;border-radius:50%;border-top-color:#8817c3;box-sizing:border-box;content:"";height:30px;left:50%;margin-left:-15px;margin-top:-15px;position:absolute;top:50%;width:30px}.jodit-ui-ai-assistant__error{color:var(--jd-color-error)}.jodit-context table,.jodit-wysiwyg table{border:none;border-collapse:collapse;empty-cells:show;margin-bottom:1em;margin-top:1em;max-width:100%}.jodit-context table tr,.jodit-wysiwyg table tr{user-select:none}.jodit-context table tr td,.jodit-context table tr th,.jodit-wysiwyg table tr td,.jodit-wysiwyg table tr th{border:1px solid var(--jd-color-border);min-width:2em;padding:.4em;user-select:text;vertical-align:middle}.jodit-form__inserter{--jd-color-table-cell-background-hover:var(--jd-color-button-background-hover)}.jodit-form__inserter .jodit-form__table-creator-box{display:flex}@media (max-width:768px){.jodit-form__inserter .jodit-form__table-creator-box{flex-direction:column}}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container{font-size:0;margin:0;min-width:180px;padding:0}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container>div>span{border:1px solid var(--jd-color-border);box-sizing:border-box;cursor:pointer;display:inline-block;height:var(--jd-height-element-default);margin-bottom:2px;margin-left:2px;vertical-align:top;width:var(--jd-width-element-default)}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container>div>span:first-child{margin-left:0}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container>div>span.jodit_hovered{background:var(--jd-color-table-cell-background-hover);border-color:var(--jd-color-table-cell-background-hover)}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__options{font-size:var(--jd-font-size-default)}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__options label{padding-top:0;text-align:left}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__options label input{margin-right:var(--jd-padding-default)}.jodit-form__inserter label{font-size:14px;margin:0;padding:8px;text-align:center}.jodit-xpath{align-items:center;display:flex;margin-left:calc(var(--jd-padding-default)/-2)}.jodit-xpath__item{display:flex;height:var(--jd-font-size-small);line-height:calc(var(--jd-font-size-small) - 1px)}.jodit-xpath__item a{color:var(--jd-color-default);font-size:var(--jd-font-size-small);margin-left:2px;outline:0;padding:0 3px}:root{--jd-color-white:#fff;--jd-color-gray:#dadada;--jd-color-gray-dark:#a5a5a5;--jd-color-dark:#4c4c4c;--jd-color-blue:#b5d6fd;--jd-color-light-blue:rgba(181,214,253,.5);--jd-color-red:#ff3b3b;--jd-color-light-red:rgba(255,59,59,.4);--jd-color-default:var(--jd-color-dark);--jd-color-text:#222;--jd-color-label:var(--jd-color-gray-dark);--jd-color-error:var(--jd-color-red);--jd-color-border:var(--jd-color-gray);--jd-color-border-dark:var(--jd-color-dark);--jd-color-border-selected:#1e88e5;--jd-color-border-active:#b5b5b5;--jd-color-selection:var(--jd-color-dark);--jd-color-selection-area:#bdbdbd;--jd-color-separator:var(--jd-color-border);--jd-color-placeholder:var(--jd-color-gray-dark);--jd-color-panel:#f9f9f9;--jd-color-resizer:#c8c8c8;--jd-color-background-default:var(--jd-color-white);--jd-color-background-light-gray:#f5f5f6;--jd-color-background-gray:var(--jd-color-gray);--jd-color-background-gray-hover:#f8f8f8;--jd-color-background-button-hover:#ecebe9;--jd-color-background-button-hover-opacity30:hsla(40,7%,92%,.3);--jd-color-background-progress:#b91f1f;--jd-color-background-active:#2196f3;--jd-color-background-selection:#b5d6fd;--jd-color-text-selection:var(--jd-color-white);--jd-color-background-selection-opacity50:rgba(181,214,253,.995);--jd-color-source-area:#323232;--jd-color-button-background-hover:#dcdcdc;--jd-color-button-background-hover-opacity40:hsla(0,0%,86%,.4);--jd-color-button-background-hover-opacity60:hsla(0,0%,86%,.6);--jd-font-default:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;--jd-font-size-default:14px;--jd-font-size-small:11px;--jd-color-text-icons:rgba(0,0,0,.75);--jd-color-icon:var(--jd-color-dark);--jd-padding-default:8px;--jd-border-radius-default:3px;--jd-icon-tiny-size:8px;--jd-icon-xsmall-size:10px;--jd-icon-small-size:12px;--jd-icon-middle-size:14px;--jd-icon-large-size:16px;--jd-z-index-full-size:100000;--jd-z-index-popup:10000001;--jd-z-index-dialog-overlay:20000003;--jd-z-index-dialog:20000004;--jd-z-index-context-menu:30000005;--jd-z-index-tooltip:30000006;--jd-icon-loader-size:48px;--jd-width-element-default:18px;--jd-height-element-default:18px;--jd-dark-background-color:#575757;--jd-dark-background-ligher:silver;--jd-dark-background-darknes:#353535;--jd-dark-border-color:#444;--jd-dark-text-color:#d1cccc;--jd-dark-text-color-opacity80:hsla(0,5%,81%,.8);--jd-dark-text-color-opacity50:hsla(0,5%,81%,.5);--jd-dark-icon-color:silver;--jd-dark-toolbar-color:#5f5c5c;--jd-dark-toolbar-seperator-color1:rgba(81,81,81,.41);--jd-dark-toolbar-seperator-color2:#686767;--jd-dark-toolbar-seperator-color-opacity80:hsla(0,0%,41%,.8);--jd-dark-toolbar-seperator-color3:hsla(0,0%,41%,.75);--jd-dark-color-border-selected:#152f5f;--jd-width-default:180px;--jd-width-input-min:var(--jd-width-default);--jd-input-height:32px;--jd-button-icon-size:14px;--jd-margin-v:2px;--jd-button-df-size:calc((var(--jd-button-icon-size) - 4px)*2);--jd-button-size:calc(var(--jd-button-icon-size) + var(--jd-button-df-size) + var(--jd-margin-v)*2);--jd-focus-input-box-shadow:0 0 0 0.05rem rgba(0,123,255,.25)}.jodit-wysiwyg{outline:0}.jodit-wysiwyg ::selection,.jodit-wysiwyg::selection{background:#b5d6fd;color:#4c4c4c}.jodit-container:not(.jodit_inline) .jodit-wysiwyg{margin:0;outline:0;overflow-x:auto;padding:8px;position:relative}.jodit-container:not(.jodit_inline) .jodit-wysiwyg img{max-width:100%;position:relative}.jodit-container:not(.jodit_inline) .jodit-wysiwyg jodit-media{position:relative}.jodit-container:not(.jodit_inline) .jodit-wysiwyg jodit-media *{position:relative;z-index:0}.jodit-container:not(.jodit_inline) .jodit-wysiwyg jodit-media:before{content:"";inset:0;position:absolute;z-index:1}:root{--jd-switche-width:60px;--jd-switche-height:32px;--jd-switche-slider-margin:4px;--jd-switche-slider-size:calc(var(--jd-switche-height) - var(--jd-switche-slider-margin)*2)}.jodit-form{color:var(--jd-color-default);font-family:var(--jd-font-default);font-size:var(--jd-font-size-default)}.jodit-form.jodit_error{border-color:var(--jd-color-error);box-shadow:inset 0 0 3px 0 hsla(0,0%,74%,.3)}@media (max-width:768px){.jodit-form{min-width:150px}}.jodit-form button{background:#d6d6d6;border:none;color:var(--jd-color-dark);cursor:pointer;font-size:16px;height:36px;line-height:1;margin-bottom:var(--jd-padding-default);margin-top:var(--jd-padding-default);outline:none;padding:var(--jd-padding-default);text-decoration:none;transition:background .2s ease 0s}.jodit-form button:hover{background-color:var(--jd-color-background-button-hover);color:var(--jd-color-dark)}.jodit-form button:active{background:var(--jd-color-background-button-hover);color:var(--jd-color-dark)}.jodit-form label{align-items:center;display:flex;margin-bottom:var(--jd-padding-default);text-align:left;white-space:nowrap}.jodit-form label:last-child{margin-bottom:0}.jodit-form .jodit-form__center{justify-content:center}.jodit .jodit-input,.jodit .jodit-select,.jodit .jodit-textarea{appearance:none;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit .jodit-input[disabled],.jodit .jodit-select[disabled],.jodit .jodit-textarea[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit .jodit-input_has-error_true,.jodit .jodit-select_has-error_true,.jodit .jodit-textarea_has-error_true{border-color:var(--jd-color-red)}.jodit .jodit-input:focus{border-color:#66afe9;outline:0}.jodit-checkbox{border:0;cursor:pointer;height:16px;margin:0 calc(var(--jd-padding-default)/2) 0 0;outline:none;padding:0;position:relative;width:16px;z-index:2}.jodit-select{background-image:url(${q});background-position:98% 50%;background-repeat:no-repeat;padding-right:calc(var(--jd-padding-default)*2)}.jodit-textarea{height:auto}.jodit-form__group,.jodit-textarea{min-width:var(--jd-width-input-min)}.jodit-form__group{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default)}.jodit-form__group label{margin-bottom:calc(var(--jd-padding-default)/2)}.jodit-button{align-items:center;background-color:var(--jd-color-background-gray);border:0;border-radius:.25rem;color:var(--jd-color-default);cursor:pointer;display:inline-flex;height:calc(var(--jd-padding-default)*4);justify-content:center;line-height:1;margin:0;padding:0 var(--jd-padding-default);position:relative;text-decoration:none;user-select:none;width:auto}.jodit-button svg{display:inline-block;height:24px;width:24px}.jodit-button svg+span{margin-left:calc(var(--jd-padding-default)/2)}.jodit-button:active,.jodit-button:focus{outline:0}.jodit-button.disabled{opacity:.7}.jodit-buttons{display:flex;flex-wrap:nowrap;justify-content:space-between;margin-bottom:var(--jd-padding-default)}.jodit-button .jodit_icon,.jodit-button svg,.jodit-dialog__header .jodit_icon,.jodit-dialog__header svg{display:inline-block;height:16px;vertical-align:middle;width:16px}.jodit-switcher-wrapper{align-items:center;display:flex}.jodit-switcher-wrapper .jodit-switcher+span{margin-left:var(--jd-padding-default)}.jodit-switcher{display:inline-block;height:var(--jd-switche-height);position:relative;width:var(--jd-switche-width)}.jodit-switcher input{height:0;opacity:0;width:0}.jodit-switcher .jodit-switcher__slider{background-color:var(--jd-color-gray);border-radius:var(--jd-switche-height);cursor:pointer;inset:0;position:absolute;transition:.4s}.jodit-switcher .jodit-switcher__slider:before{background-color:#fff;border-radius:50%;bottom:var(--jd-switche-slider-margin);content:"";height:var(--jd-switche-slider-size);left:var(--jd-switche-slider-margin);position:absolute;transition:.4s;width:var(--jd-switche-slider-size)}input:checked+.jodit-switcher__slider{background-color:var(--jd-color-background-active)}input:checked+.jodit-switcher__slider:before{transform:translateX(calc(var(--jd-switche-width) - var(--jd-switche-slider-margin)*2 - var(--jd-switche-slider-size)))}input:focus+.jodit-switcher__slider{box-shadow:0 0 1px var(--jd-color-background-active)}.jodit-button-group{display:flex}.jodit-button-group input{display:none}.jodit-button-group button{display:flex;flex:1;justify-content:center;text-align:center}.jodit-button-group button+button{margin-left:-1px}.jodit-button-group button:first-child,.jodit-button-group input:first-child+button{border-bottom-right-radius:0;border-right:0;border-top-right-radius:0}.jodit-button-group button:last-child,.jodit-button-group input:last-child+button{border-bottom-left-radius:0;border-left:0;border-top-left-radius:0}.jodit-button-group input[type=checkbox]:checked+button,.jodit-button-group input[type=checkbox]:not(:checked)+button+button{background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.3),0 1px 2px rgba(0,0,0,.05)}.jodit_text_icons .jodit_icon{font-size:var(--jd-font-size-default);width:auto}.jodit_text_icons .jodit_icon:first-letter{text-transform:uppercase}.jodit_text_icons .jodit-tabs .jodit-tabs__buttons>a{font-family:var(--jd-font-default);width:auto}.jodit_text_icons .jodit-tabs .jodit-tabs__buttons>a i{width:auto}.jodit_text_icons.jodit-dialog .jodit-button,.jodit_text_icons.jodit-dialog .jodit-dialog__header a{color:var(--jd-color-text-icons);font-family:var(--jd-font-default);padding:var(--jd-padding-default);width:auto}.jodit_text_icons.jodit-dialog .jodit-button .jodit_icon,.jodit_text_icons.jodit-dialog .jodit-dialog__header a .jodit_icon{width:auto}.jodit-grid{display:flex;width:100%}.jodit-grid.jodit-grid_column{flex-direction:column}@media (max-width:480px){.jodit-grid.jodit-grid_xs-column{flex-direction:column}}.jodit-grid [class*=jodit_col-]{flex:1 1 auto}.jodit-grid .jodit_col-lg-5-5{width:100%}.jodit-grid .jodit_col-lg-4-5{width:80%}.jodit-grid .jodit_col-lg-3-5{width:60%}.jodit-grid .jodit_col-lg-2-5{width:40%}.jodit-grid .jodit_col-lg-1-5{width:20%}.jodit-grid .jodit_col-lg-4-4{width:100%}.jodit-grid .jodit_col-lg-3-4{width:75%}.jodit-grid .jodit_col-lg-2-4{width:50%}.jodit-grid .jodit_col-lg-1-4{width:25%}@media (max-width:992px){.jodit-grid .jodit_col-md-5-5{width:100%}.jodit-grid .jodit_col-md-4-5{width:80%}.jodit-grid .jodit_col-md-3-5{width:60%}.jodit-grid .jodit_col-md-2-5{width:40%}.jodit-grid .jodit_col-md-1-5{width:20%}.jodit-grid .jodit_col-md-4-4{width:100%}.jodit-grid .jodit_col-md-3-4{width:75%}.jodit-grid .jodit_col-md-2-4{width:50%}.jodit-grid .jodit_col-md-1-4{width:25%}}@media (max-width:768px){.jodit-grid .jodit_col-sm-5-5{width:100%}.jodit-grid .jodit_col-sm-4-5{width:80%}.jodit-grid .jodit_col-sm-3-5{width:60%}.jodit-grid .jodit_col-sm-2-5{width:40%}.jodit-grid .jodit_col-sm-1-5{width:20%}.jodit-grid .jodit_col-sm-4-4{width:100%}.jodit-grid .jodit_col-sm-3-4{width:75%}.jodit-grid .jodit_col-sm-2-4{width:50%}.jodit-grid .jodit_col-sm-1-4{width:25%}}@media (max-width:480px){.jodit-grid .jodit_col-xs-5-5{width:100%}.jodit-grid .jodit_col-xs-4-5{width:80%}.jodit-grid .jodit_col-xs-3-5{width:60%}.jodit-grid .jodit_col-xs-2-5{width:40%}.jodit-grid .jodit_col-xs-1-5{width:20%}.jodit-grid .jodit_col-xs-4-4{width:100%}.jodit-grid .jodit_col-xs-3-4{width:75%}.jodit-grid .jodit_col-xs-2-4{width:50%}.jodit-grid .jodit_col-xs-1-4{width:25%}}@keyframes b{to{transform:rotate(1turn)}}.jodit-icon_loader{animation:b 2s ease-out 0s infinite;background:url(${D}) no-repeat 50%;background-size:100% 100%;display:inline-block;height:var(--jd-icon-loader-size);vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-icon{background:50% no-repeat;background-size:contain;height:14px;overflow:visible;width:14px;fill:var(--jd-color-icon);transform-origin:0 0!important}.jodit-icon,.jodit-icon_close{stroke:var(--jd-color-icon)}svg.jodit-icon{height:auto;isolation:isolate}.jodit-icon_text{font-size:14px}.jodit,.jodit *,.jodit-container,.jodit-container *{box-sizing:border-box}.jodit .jodit-workplace,.jodit-container .jodit-workplace{overflow:auto;position:relative}.jodit .jodit-workplace .jodit-wysiwyg,.jodit .jodit-workplace .jodit-wysiwyg_iframe,.jodit-container .jodit-workplace .jodit-wysiwyg,.jodit-container .jodit-workplace .jodit-wysiwyg_iframe{height:100%;width:100%}.jodit-wysiwyg [contenteditable=false]{cursor:default}.jodit-container:not(.jodit_inline){background-color:var(--jd-color-background-light-gray);border:1px solid var(--jd-color-border);border-radius:var(--jd-border-radius-default)}.jodit-container:not(.jodit_inline) .jodit-workplace{background-color:var(--jd-color-background-default);border:0 solid var(--jd-color-border);max-height:100%}.jodit-container:not(.jodit_inline).jodit_disabled{background:var(--jd-color-background-gray)}.jodit-container:not(.jodit_inline).jodit_disabled .jodit-workplace{opacity:.4}.jodit_disabled,.jodit_lock{user-select:none!important}.jodit_hidden{display:none!important}.jodit_vertical_middle{align-items:center;display:flex}.jodit-box{background:0 0;border:0;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.jodit-dialog_theme_dark,.jodit_theme_dark{--jd-color-border:#6b6b6b;--jd-color-text:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-toolbar-collection_mode_horizontal,.jodit-dialog_theme_dark .jodit-toolbar-editor-collection_mode_horizontal,.jodit_theme_dark .jodit-toolbar-collection_mode_horizontal,.jodit_theme_dark .jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent calc(var(--jd-button-size) - 1px),var(--jd-color-border) var(--jd-button-size))}.jodit-dialog_theme_dark .jodit-toolbar-collection_mode_horizontal:after,.jodit-dialog_theme_dark .jodit-toolbar-editor-collection_mode_horizontal:after,.jodit_theme_dark .jodit-toolbar-collection_mode_horizontal:after,.jodit_theme_dark .jodit-toolbar-editor-collection_mode_horizontal:after{background-color:var(--jd-color-border)}.jodit-dialog_theme_dark .jodit-toolbar__box:not(:empty),.jodit_theme_dark .jodit-toolbar__box:not(:empty){border-color:var(--jd-color-border)}.jodit-dialog_theme_dark .jodit-toolbar__box:not(:empty) .jodit-toolbar-editor-collection:after,.jodit_theme_dark .jodit-toolbar__box:not(:empty) .jodit-toolbar-editor-collection:after{background-color:var(--jd-color-border)}.jodit-dialog_theme_dark .jodit-ui-group_separated_true:not(:last-child,.jodit-ui-group_before-spacer_true):after,.jodit_theme_dark .jodit-ui-group_separated_true:not(:last-child,.jodit-ui-group_before-spacer_true):after{border-right-color:var(--jd-color-border)}.jodit-dialog_theme_dark.jodit-container,.jodit_theme_dark.jodit-container{background-color:var(--jd-dark-background-color);border-color:var(--jd-color-border)}.jodit-dialog_theme_dark.jodit-container.jodit_disabled,.jodit_theme_dark.jodit-container.jodit_disabled{background-color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark.jodit-container:not(.jodit_inline) .jodit-workplace,.jodit_theme_dark.jodit-container:not(.jodit_inline) .jodit-workplace{border-color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark .jodit-popup__content,.jodit_theme_dark .jodit-popup__content{background:var(--jd-dark-background-color)}.jodit-dialog_theme_dark .jodit-toolbar-button,.jodit-dialog_theme_dark .jodit-toolbar-select,.jodit-dialog_theme_dark .jodit-ui-button,.jodit_theme_dark .jodit-toolbar-button,.jodit_theme_dark .jodit-toolbar-select,.jodit_theme_dark .jodit-ui-button{--jd-color-icon:var(--jd-dark-icon-color)}.jodit-dialog_theme_dark .jodit-toolbar-button__text,.jodit-dialog_theme_dark .jodit-toolbar-select__text,.jodit-dialog_theme_dark .jodit-ui-button__text,.jodit_theme_dark .jodit-toolbar-button__text,.jodit_theme_dark .jodit-toolbar-select__text,.jodit_theme_dark .jodit-ui-button__text{color:var(--jd-color-text)}.jodit-dialog_theme_dark .jodit-toolbar-button .jodit-icon,.jodit-dialog_theme_dark .jodit-toolbar-button svg,.jodit-dialog_theme_dark .jodit-toolbar-button__trigger,.jodit-dialog_theme_dark .jodit-toolbar-select .jodit-icon,.jodit-dialog_theme_dark .jodit-toolbar-select svg,.jodit-dialog_theme_dark .jodit-toolbar-select__trigger,.jodit-dialog_theme_dark .jodit-ui-button .jodit-icon,.jodit-dialog_theme_dark .jodit-ui-button svg,.jodit-dialog_theme_dark .jodit-ui-button__trigger,.jodit_theme_dark .jodit-toolbar-button .jodit-icon,.jodit_theme_dark .jodit-toolbar-button svg,.jodit_theme_dark .jodit-toolbar-button__trigger,.jodit_theme_dark .jodit-toolbar-select .jodit-icon,.jodit_theme_dark .jodit-toolbar-select svg,.jodit_theme_dark .jodit-toolbar-select__trigger,.jodit_theme_dark .jodit-ui-button .jodit-icon,.jodit_theme_dark .jodit-ui-button svg,.jodit_theme_dark .jodit-ui-button__trigger{fill:var(--jd-color-icon);stroke:var(--jd-color-icon)}.jodit-dialog_theme_dark .jodit-toolbar-button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-button__button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-button__text:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-button__trigger:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select__button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select__text:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select__trigger:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button__button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button__text:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button__trigger:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button__button:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button__text:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button__trigger:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select__button:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select__text:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select__trigger:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button__button:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button__text:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button__trigger:hover:not([disabled]){--jd-color-text:var(--jd-dark-background-color);--jd-color-icon:var(--jd-dark-background-color);background-color:var(--jd-dark-background-ligher);color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark .jodit-status-bar,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty),.jodit_theme_dark .jodit-status-bar,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty){background-color:var(--jd-dark-toolbar-color);border-color:var(--jd-color-border);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-status-bar,.jodit-dialog_theme_dark .jodit-status-bar .jodit-status-bar__item a,.jodit-dialog_theme_dark .jodit-status-bar .jodit-status-bar__item span,.jodit-dialog_theme_dark .jodit-status-bar a.jodit-status-bar-link,.jodit-dialog_theme_dark .jodit-status-bar a.jodit-status-bar-link:hover,.jodit-dialog_theme_dark .jodit-status-bar a.jodit-status-bar-link:visited,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty),.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) .jodit-status-bar__item a,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) .jodit-status-bar__item span,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link:hover,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link:visited,.jodit_theme_dark .jodit-status-bar,.jodit_theme_dark .jodit-status-bar .jodit-status-bar__item a,.jodit_theme_dark .jodit-status-bar .jodit-status-bar__item span,.jodit_theme_dark .jodit-status-bar a.jodit-status-bar-link,.jodit_theme_dark .jodit-status-bar a.jodit-status-bar-link:hover,.jodit_theme_dark .jodit-status-bar a.jodit-status-bar-link:visited,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty),.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) .jodit-status-bar__item a,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) .jodit-status-bar__item span,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link:hover,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link:visited{color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-toolbar__box:not(:empty),.jodit_theme_dark .jodit-toolbar__box:not(:empty){background:var(--jd-dark-toolbar-color)}.jodit-dialog_theme_dark .jodit-icon-close,.jodit_theme_dark .jodit-icon-close{stroke:var(--jd-dark-icon-color)}.jodit-dialog_theme_dark .jodit-wysiwyg,.jodit-dialog_theme_dark .jodit-wysiwyg_iframe,.jodit_theme_dark .jodit-wysiwyg,.jodit_theme_dark .jodit-wysiwyg_iframe{background-color:var(--jd-dark-background-color);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-form input[type=text],.jodit-dialog_theme_dark .jodit-form input[type=url],.jodit-dialog_theme_dark .jodit-form textarea,.jodit_theme_dark .jodit-form input[type=text],.jodit_theme_dark .jodit-form input[type=url],.jodit_theme_dark .jodit-form textarea{background-color:var(--jd-dark-toolbar-seperator-color1);border-color:var(--jd-dark-toolbar-seperator-color2);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-form button,.jodit_theme_dark .jodit-form button{background-color:var(--jd-dark-toolbar-seperator-color3);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-placeholder,.jodit_theme_dark .jodit-placeholder{color:var(--jd-dark-text-color-opacity80)}.jodit-dialog_theme_dark .jodit-drag-and-drop__file-box,.jodit-dialog_theme_dark .jodit_uploadfile_button,.jodit_theme_dark .jodit-drag-and-drop__file-box,.jodit_theme_dark .jodit_uploadfile_button{color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-drag-and-drop__file-box:hover,.jodit-dialog_theme_dark .jodit_uploadfile_button:hover,.jodit_theme_dark .jodit-drag-and-drop__file-box:hover,.jodit_theme_dark .jodit_uploadfile_button:hover{background-color:var(--jd-dark-toolbar-seperator-color3)}.jodit-dialog_theme_dark .jodit-add-new-line:before,.jodit_theme_dark .jodit-add-new-line:before{border-top-color:var(--jd-dark-toolbar-seperator-color2)}.jodit-dialog_theme_dark .jodit-add-new-line span,.jodit_theme_dark .jodit-add-new-line span{background:var(--jd-dark-toolbar-seperator-color3);border-color:var(--jd-dark-toolbar-seperator-color2)}.jodit-dialog_theme_dark .jodit-add-new-line span svg,.jodit_theme_dark .jodit-add-new-line span svg{fill:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-resizer>i,.jodit_theme_dark .jodit-resizer>i{background:var(--jd-dark-toolbar-seperator-color3);border-color:var(--jd-dark-icon-color)}.jodit-dialog_theme_dark .jodit-input,.jodit-dialog_theme_dark .jodit-select,.jodit_theme_dark .jodit-input,.jodit_theme_dark .jodit-select{background-color:var(--jd-dark-background-ligher);border-color:var(--jd-dark-border-color);color:var(--jd-dark-border-color)}.jodit-dialog_theme_dark.jodit-dialog,.jodit_theme_dark.jodit-dialog{background-color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark.jodit-dialog .jodit-dialog__header,.jodit-dialog_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item,.jodit_theme_dark.jodit-dialog .jodit-dialog__header,.jodit_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item{border-color:var(--jd-dark-border-color)}.jodit-dialog_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item-info,.jodit_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item-info{background-color:var(--jd-dark-text-color)}`,""]);const Y=z},72:l=>{var c=[];function h(s){for(var d=-1,g=0;g<c.length;g++)if(c[g].identifier===s){d=g;break}return d}function u(s,d){for(var g={},b=[],w=0;w<s.length;w++){var _=s[w],T=d.base?_[0]+d.base:_[0],z=g[T]||0,L="".concat(T," ").concat(z);g[T]=z+1;var D=h(L),q={css:_[1],media:_[2],sourceMap:_[3],supports:_[4],layer:_[5]};if(D!==-1)c[D].references++,c[D].updater(q);else{var Y=i(q,d);d.byIndex=w,c.splice(w,0,{identifier:L,updater:Y,references:1})}b.push(L)}return b}function i(s,d){var g=d.domAPI(d);return g.update(s),function(b){if(b){if(b.css===s.css&&b.media===s.media&&b.sourceMap===s.sourceMap&&b.supports===s.supports&&b.layer===s.layer)return;g.update(s=b)}else g.remove()}}l.exports=function(s,d){var g=u(s=s||[],d=d||{});return function(b){b=b||[];for(var w=0;w<g.length;w++){var _=h(g[w]);c[_].references--}for(var T=u(b,d),z=0;z<g.length;z++){var L=h(g[z]);c[L].references===0&&(c[L].updater(),c.splice(L,1))}g=T}}},659:l=>{var c={};l.exports=function(h,u){var i=function(s){if(c[s]===void 0){var d=document.querySelector(s);if(window.HTMLIFrameElement&&d instanceof window.HTMLIFrameElement)try{d=d.contentDocument.head}catch{d=null}c[s]=d}return c[s]}(h);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(u)}},540:l=>{l.exports=function(c){var h=document.createElement("style");return c.setAttributes(h,c.attributes),c.insert(h,c.options),h}},56:(l,c,h)=>{l.exports=function(u){var i=h.nc;i&&u.setAttribute("nonce",i)}},825:l=>{l.exports=function(c){if(typeof document>"u")return{update:function(){},remove:function(){}};var h=c.insertStyleElement(c);return{update:function(u){(function(i,s,d){var g="";d.supports&&(g+="@supports (".concat(d.supports,") {")),d.media&&(g+="@media ".concat(d.media," {"));var b=d.layer!==void 0;b&&(g+="@layer".concat(d.layer.length>0?" ".concat(d.layer):""," {")),g+=d.css,b&&(g+="}"),d.media&&(g+="}"),d.supports&&(g+="}");var w=d.sourceMap;w&&typeof btoa<"u"&&(g+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(w))))," */")),s.styleTagTransform(g,i,s.options)})(h,c,u)},remove:function(){(function(u){if(u.parentNode===null)return!1;u.parentNode.removeChild(u)})(h)}}}},113:l=>{l.exports=function(c,h){if(h.styleSheet)h.styleSheet.cssText=c;else{for(;h.firstChild;)h.removeChild(h.firstChild);h.appendChild(document.createTextNode(c))}}},333:l=>{l.exports=function(c){var h=[];return h.toString=function(){return this.map(function(u){var i="",s=u[5]!==void 0;return u[4]&&(i+="@supports (".concat(u[4],") {")),u[2]&&(i+="@media ".concat(u[2]," {")),s&&(i+="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {")),i+=c(u),s&&(i+="}"),u[2]&&(i+="}"),u[4]&&(i+="}"),i}).join("")},h.i=function(u,i,s,d,g){typeof u=="string"&&(u=[[null,u,void 0]]);var b={};if(s)for(var w=0;w<this.length;w++){var _=this[w][0];_!=null&&(b[_]=!0)}for(var T=0;T<u.length;T++){var z=[].concat(u[T]);s&&b[z[0]]||(g!==void 0&&(z[5]===void 0||(z[1]="@layer".concat(z[5].length>0?" ".concat(z[5]):""," {").concat(z[1],"}")),z[5]=g),i&&(z[2]&&(z[1]="@media ".concat(z[2]," {").concat(z[1],"}")),z[2]=i),d&&(z[4]?(z[1]="@supports (".concat(z[4],") {").concat(z[1],"}"),z[4]=d):z[4]="".concat(d)),h.push(z))}},h}},504:l=>{l.exports=function(c,h){return h||(h={}),c&&(c=String(c.__esModule?c.default:c),/^['"].*['"]$/.test(c)&&(c=c.slice(1,-1)),h.hash&&(c+=h.hash),/["'() \t\n]|(%20)/.test(c)||h.needQuotes?'"'.concat(c.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):c)}},772:l=>{l.exports=function(c){return c[1]}},789:l=>{l.exports="data:image/png;base64, "},523:l=>{l.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJMYXllcl8xIiBkYXRhLW5hbWU9IkxheWVyIDEiIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6IzQ0NH08L3N0eWxlPjwvZGVmcz48dGl0bGU+YXJyb3dzPC90aXRsZT48cGF0aCBkPSJNMCAwaDQuOTV2MTBIMHoiIHN0eWxlPSJmaWxsOiNmZmYiLz48cGF0aCBkPSJtMS40MSA0LjY3IDEuMDctMS40OSAxLjA2IDEuNDl6TTMuNTQgNS4zMyAyLjQ4IDYuODIgMS40MSA1LjMzeiIgY2xhc3M9ImNscy0yIi8+PC9zdmc+"},65:l=>{l.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 id=%27Layer_1%27 data-name=%27Layer 1%27 viewBox=%270 0 4.95 10%27%3E%3Cdefs%3E%3Cstyle%3E.cls-2{fill:%23444}%3C/style%3E%3C/defs%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d=%27M0 0h4.95v10H0z%27 style=%27fill:%23fff%27/%3E%3Cpath d=%27m1.41 4.67 1.07-1.49 1.06 1.49zM3.54 5.33 2.48 6.82 1.41 5.33z%27 class=%27cls-2%27/%3E%3C/svg%3E"},442:l=>{l.exports=r}},o={};function a(l){var c=o[l];if(c!==void 0)return c.exports;var h=o[l]={id:l,exports:{}};return n[l](h,h.exports,a),h.exports}a.m=n,a.n=l=>{var c=l&&l.__esModule?()=>l.default:()=>l;return a.d(c,{a:c}),c},a.d=(l,c)=>{for(var h in c)a.o(c,h)&&!a.o(l,h)&&Object.defineProperty(l,h,{enumerable:!0,get:c[h]})},a.o=(l,c)=>Object.prototype.hasOwnProperty.call(l,c),a.r=l=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},a.b=document.baseURI||self.location.href,a.nc=void 0;var f={};a.r(f),a.d(f,{Jodit:()=>ZN,default:()=>uee});var p={};a.r(p),a.d(p,{ACCURACY:()=>Th,APP_VERSION:()=>_5,BASE_PATH:()=>V5,BASE_PATH_IS_MIN:()=>q5,BR:()=>kb,CLIPBOARD_ID:()=>ua,COMMAND_KEYS:()=>I5,EMULATE_DBLCLICK_TIMEOUT:()=>N5,ES:()=>k5,FAT_MODE:()=>C5,HOMEPAGE:()=>P_,INSEPARABLE_TAGS:()=>zi,INSERT_AS_HTML:()=>Fu,INSERT_AS_TEXT:()=>Ph,INSERT_CLEAR_HTML:()=>D5,INSERT_ONLY_TEXT:()=>zh,INVISIBLE_SPACE:()=>dn,INVISIBLE_SPACE_REG_EXP:()=>Ya,INVISIBLE_SPACE_REG_EXP_END:()=>z_,INVISIBLE_SPACE_REG_EXP_START:()=>M_,IS_BLOCK:()=>_b,IS_ES_MODERN:()=>j5,IS_ES_NEXT:()=>R_,IS_IE:()=>Du,IS_INLINE:()=>E5,IS_MAC:()=>F5,IS_PROD:()=>Vs,IS_TEST:()=>S5,KEY_ALIASES:()=>H5,KEY_ALT:()=>M5,KEY_BACKSPACE:()=>z5,KEY_DELETE:()=>I_,KEY_DOWN:()=>Mi,KEY_ENTER:()=>ic,KEY_ESC:()=>Nu,KEY_F3:()=>L_,KEY_LEFT:()=>Ys,KEY_META:()=>P5,KEY_RIGHT:()=>ac,KEY_SPACE:()=>OX,KEY_TAB:()=>qs,KEY_UP:()=>ti,LIST_TAGS:()=>Lu,MARKER_CLASS:()=>Bu,MODE_SOURCE:()=>Nn,MODE_SPLIT:()=>ca,MODE_WYSIWYG:()=>gr,NBSP_SPACE:()=>wb,NEARBY:()=>sc,NO_EMPTY_TAGS:()=>R5,PARAGRAPH:()=>jb,PASSIVE_EVENTS:()=>Y5,SAFE_COUNT_CHANGE_CALL:()=>B5,SET_TEST:()=>CX,SOURCE_CONSUMER:()=>D_,SPACE_REG_EXP:()=>Eh,SPACE_REG_EXP_END:()=>O5,SPACE_REG_EXP_START:()=>A5,TEMP_ATTR:()=>Sb,TEXT_HTML:()=>Rh,TEXT_PLAIN:()=>Ws,TEXT_RTF:()=>L5,TOKENS:()=>AX,globalDocument:()=>pr,globalWindow:()=>Ar,lang:()=>uo});var m={};a.r(m),a.d(m,{$$:()=>Ct,CamelCaseToKebabCase:()=>lP,ConfigDeepFlatten:()=>gP,ConfigFlatten:()=>Hh,ConfigProto:()=>fn,ConnectionError:()=>mP,LimitedStack:()=>wP,NUMBER_FIELDS_REG:()=>Z_,OptionsError:()=>vP,abort:()=>qh,alignElement:()=>J_,alreadyLoadedList:()=>Rb,appendScriptAsync:()=>ek,appendStyleAsync:()=>tk,applyStyles:()=>OP,asArray:()=>Kh,assert:()=>dt,attr:()=>fe,browser:()=>NX,buildQuery:()=>Bh,call:()=>Mr,callPromise:()=>Xa,camelCase:()=>jn,cleanFromWord:()=>Ib,clearAlign:()=>uP,clearCenterAlign:()=>K_,clearTimeout:()=>Zh,cns:()=>bP,colorToHex:()=>$_,completeUrl:()=>Q_,connection:()=>vk,convertMediaUrlToVideoEmbed:()=>zb,css:()=>be,cssPath:()=>yP,ctrlKey:()=>Uh,dataBind:()=>St,defaultLanguage:()=>Vh,error:()=>ht,fastClone:()=>BX,fuzzySearchIndex:()=>IP,get:()=>Cb,getClassName:()=>yk,getContentWidth:()=>MP,getDataTransfer:()=>cc,getScrollParent:()=>Ik,getXPathByElement:()=>_k,hAlignElement:()=>Tb,hasBrowserColorPicker:()=>$5,hasContainer:()=>eP,htmlspecialchars:()=>EP,humanSizeToBytes:()=>xk,i18n:()=>NP,inView:()=>jk,innerWidth:()=>Lk,isAbort:()=>HX,isAbortError:()=>Xs,isArray:()=>Nt,isAtom:()=>ik,isBoolean:()=>Wa,isDestructable:()=>U_,isEqual:()=>PX,isFastEqual:()=>K5,isFunction:()=>Pe,isHTML:()=>Mh,isHtmlFromWord:()=>J5,isInitable:()=>Q5,isInt:()=>zX,isJoditObject:()=>_n,isLicense:()=>rP,isMarker:()=>ni,isNativeFunction:()=>X5,isNumber:()=>kn,isNumeric:()=>ri,isPlainObject:()=>tr,isPromise:()=>Ih,isSet:()=>V_,isString:()=>Se,isStringArray:()=>Hu,isURL:()=>Ob,isValidName:()=>q_,isViewObject:()=>lc,isVoid:()=>zr,isWindow:()=>nP,kebabCase:()=>oi,keepNames:()=>bk,keys:()=>Ga,loadImage:()=>FX,loadNext:()=>Pb,loadNextStyle:()=>fP,markAsAtomic:()=>hP,markDeprecated:()=>VX,markOwner:()=>Fh,memorizeExec:()=>lk,nl2br:()=>TP,normalizeColor:()=>Pk,normalizeCssNumericValue:()=>cP,normalizeCssValue:()=>Lh,normalizeKeyAliases:()=>zk,normalizeLicense:()=>RP,normalizePath:()=>Yu,normalizeRelativePath:()=>PP,normalizeSize:()=>zP,normalizeUrl:()=>Mk,offset:()=>fa,options:()=>UX,parseQuery:()=>uk,position:()=>Bn,previewBox:()=>kk,refs:()=>ii,reset:()=>G5,resolveElement:()=>$h,safeHTML:()=>Rk,sanitizeHTMLElement:()=>Vu,scrollIntoViewIfNeeded:()=>Gs,set:()=>xP,setTimeout:()=>CP,size:()=>Wu,splitArray:()=>Dn,sprintf:()=>LP,stringify:()=>Ab,stripTags:()=>qu,toArray:()=>mr,trim:()=>cr,trimChars:()=>oP,trimInv:()=>iP,ucfirst:()=>Lb});var v={};a.r(v),a.d(v,{autobind:()=>Ce,cache:()=>vr,cacheHTML:()=>Sk,cached:()=>Zn,component:()=>Dt,debounce:()=>Ii,derive:()=>Ku,getPropertyDescriptor:()=>Hk,hook:()=>Ur,idle:()=>nG,nonenumerable:()=>oG,persistent:()=>iG,throttle:()=>Za,wait:()=>QP,watch:()=>_e});var y={};a.r(y),a.d(y,{required:()=>wj,url:()=>wG});var x={};a.r(x),a.d(x,{Ajax:()=>Ju,Alert:()=>PM,Async:()=>Tk,Button:()=>sr,CommitStyle:()=>II,Component:()=>fo,Confirm:()=>zM,ContextMenu:()=>rp,Create:()=>Dj,Dialog:()=>Sn,Dom:()=>N,EventEmitter:()=>Bk,EventHandlersStore:()=>VP,Eventify:()=>W_,FileBrowser:()=>ts,Helpers:()=>m,History:()=>S2,Icon:()=>Ke,ImageEditor:()=>Di,LazyWalker:()=>Eb,Plugin:()=>ut,PluginSystem:()=>UP,Popup:()=>Li,ProgressBar:()=>oM,Prompt:()=>MM,Response:()=>nz,STATUSES:()=>Xt,Selection:()=>_c,Snapshot:()=>_2,StatusBar:()=>yy,Table:()=>sp,ToolbarButton:()=>pa,ToolbarCollection:()=>Ni,ToolbarContent:()=>cy,ToolbarEditorCollection:()=>dy,ToolbarSelect:()=>uy,UIBlock:()=>ho,UIButton:()=>Bt,UIButtonGroup:()=>mj,UIButtonState:()=>Wb,UICheckbox:()=>Ka,UIElement:()=>Vr,UIFileInput:()=>ty,UIForm:()=>Zs,UIGroup:()=>Kn,UIInput:()=>br,UIList:()=>ed,UIMessages:()=>ay,UISelect:()=>id,UISeparator:()=>Ub,UISpacer:()=>qb,UITextArea:()=>pc,UITooltip:()=>$s,Uploader:()=>C$,View:()=>Fn,ViewComponent:()=>ha,ViewWithToolbar:()=>gd,defaultNameSpace:()=>Xu,observable:()=>Nb});var k={};a.r(k),a.d(k,{angle_down:()=>I$,angle_left:()=>L$,angle_right:()=>N$,angle_up:()=>D$,bin:()=>B$,cancel:()=>F$,center:()=>H$,check:()=>U$,chevron:()=>V$,dots:()=>q$,eye:()=>Y$,file:()=>W$,folder:()=>X$,info_circle:()=>G$,left:()=>$$,lock:()=>Z$,ok:()=>K$,pencil:()=>J$,plus:()=>Q$,resize_handler:()=>eZ,right:()=>tZ,save:()=>rZ,settings:()=>nZ,unlock:()=>oZ,update:()=>iZ,upload:()=>aZ,valign:()=>sZ});var S={};a.r(S),a.d(S,{removeExtraBr:()=>zZ});var O={};a.r(O),a.d(O,{checkBlockNesting:()=>MZ});var C={};a.r(C),a.d(C,{allowAttributes:()=>JZ,fillEmptyParagraph:()=>eK,removeEmptyTextNode:()=>tK,removeInvTextNodes:()=>rK,replaceOldTags:()=>nK,sanitizeAttributes:()=>oK,tryRemoveNode:()=>iK});var R={};a.r(R),a.d(R,{ar:()=>uK,cs_cz:()=>dK,de:()=>fK,es:()=>hK,fa:()=>pK,fi:()=>gK,fr:()=>mK,he:()=>vK,hu:()=>bK,id:()=>yK,it:()=>xK,ja:()=>wK,ko:()=>_K,mn:()=>kK,nl:()=>jK,pl:()=>SK,pt_br:()=>CK,ru:()=>AK,tr:()=>OK,zh_cn:()=>EK,zh_tw:()=>TK});var E={};a.r(E),a.d(E,{default:()=>UK});var P={};a.r(P),a.d(P,{default:()=>VK});var M={};a.r(M),a.d(M,{default:()=>qK});var I={};a.r(I),a.d(I,{default:()=>YK});var B={};a.r(B),a.d(B,{default:()=>WK});var U={};a.r(U),a.d(U,{default:()=>XK});var H={};a.r(H),a.d(H,{default:()=>GK});var V={};a.r(V),a.d(V,{default:()=>$K});var W={};a.r(W),a.d(W,{default:()=>ZK});var G={};a.r(G),a.d(G,{default:()=>KK});var Z={};a.r(Z),a.d(Z,{default:()=>JK});var K={};a.r(K),a.d(K,{default:()=>QK});var Q={};a.r(Q),a.d(Q,{default:()=>eJ});var oe={};a.r(oe),a.d(oe,{default:()=>tJ});var ie={};a.r(ie),a.d(ie,{default:()=>rJ});var re={};a.r(re),a.d(re,{default:()=>nJ});var ne={};a.r(ne),a.d(ne,{default:()=>oJ});var te={};a.r(te),a.d(te,{default:()=>iJ});var ue={};a.r(ue),a.d(ue,{default:()=>aJ});var pe={};a.r(pe),a.d(pe,{default:()=>sJ});var ke={};a.r(ke),a.d(ke,{default:()=>lJ});var ze={};a.r(ze),a.d(ze,{default:()=>cJ});var Re={};a.r(Re),a.d(Re,{ar:()=>E,cs_cz:()=>P,de:()=>M,es:()=>I,fa:()=>B,fi:()=>U,fr:()=>H,he:()=>V,hu:()=>W,id:()=>G,it:()=>Z,ja:()=>K,ko:()=>Q,mn:()=>oe,nl:()=>ie,pl:()=>re,pt_br:()=>ne,ru:()=>te,tr:()=>ue,ua:()=>pe,zh_cn:()=>ke,zh_tw:()=>ze});var Ae={};a.r(Ae),a.d(Ae,{default:()=>MJ});var tt={};a.r(tt),a.d(tt,{default:()=>IJ});var Ue={};a.r(Ue),a.d(Ue,{default:()=>LJ});var Te={};a.r(Te),a.d(Te,{default:()=>NJ});var Xe={};a.r(Xe),a.d(Xe,{default:()=>DJ});var rt={};a.r(rt),a.d(rt,{default:()=>BJ});var pt={};a.r(pt),a.d(pt,{default:()=>FJ});var Lt={};a.r(Lt),a.d(Lt,{default:()=>HJ});var Cr={};a.r(Cr),a.d(Cr,{default:()=>UJ});var $t={};a.r($t),a.d($t,{default:()=>VJ});var Pr={};a.r(Pr),a.d(Pr,{default:()=>qJ});var Jo={};a.r(Jo),a.d(Jo,{default:()=>YJ});var tc={};a.r(tc),a.d(tc,{default:()=>WJ});var rc={};a.r(rc),a.d(rc,{default:()=>XJ});var zu={};a.r(zu),a.d(zu,{default:()=>GJ});var Pi={};a.r(Pi),a.d(Pi,{default:()=>$J});var ae={};a.r(ae),a.d(ae,{default:()=>ZJ});var he={};a.r(he),a.d(he,{default:()=>KJ});var ve={};a.r(ve),a.d(ve,{default:()=>JJ});var He={};a.r(He),a.d(He,{default:()=>QJ});var Le={};a.r(Le),a.d(Le,{default:()=>eQ});var Ee={};a.r(Ee),a.d(Ee,{default:()=>tQ});var $e={};a.r($e),a.d($e,{default:()=>rQ});var Mt={};a.r(Mt),a.d(Mt,{ar:()=>Ae,cs_cz:()=>tt,de:()=>Ue,es:()=>Te,fa:()=>Xe,fi:()=>rt,fr:()=>pt,he:()=>Lt,hu:()=>Cr,id:()=>$t,it:()=>Pr,ja:()=>Jo,ko:()=>tc,mn:()=>rc,nl:()=>zu,no:()=>Pi,pl:()=>ae,pt_br:()=>he,ru:()=>ve,tr:()=>He,ua:()=>Le,zh_cn:()=>Ee,zh_tw:()=>$e});var Wt={};a.r(Wt),a.d(Wt,{default:()=>iQ});var Ln={};a.r(Ln),a.d(Ln,{default:()=>aQ});var Us={};a.r(Us),a.d(Us,{default:()=>sQ});var Qo={};a.r(Qo),a.d(Qo,{default:()=>lQ});var Ch={};a.r(Ch),a.d(Ch,{default:()=>cQ});var nc={};a.r(nc),a.d(nc,{default:()=>uQ});var oc={};a.r(oc),a.d(oc,{default:()=>dQ});var Ah={};a.r(Ah),a.d(Ah,{default:()=>fQ});var Mu={};a.r(Mu),a.d(Mu,{default:()=>hQ});var Oh={};a.r(Oh),a.d(Oh,{default:()=>pQ});var Iu={};a.r(Iu),a.d(Iu,{default:()=>gQ});var Y1={};a.r(Y1),a.d(Y1,{default:()=>mQ});var W1={};a.r(W1),a.d(W1,{default:()=>vQ});var X1={};a.r(X1),a.d(X1,{default:()=>bQ});var G1={};a.r(G1),a.d(G1,{default:()=>yQ});var $1={};a.r($1),a.d($1,{default:()=>xQ});var Z1={};a.r(Z1),a.d(Z1,{default:()=>wQ});var K1={};a.r(K1),a.d(K1,{default:()=>_Q});var J1={};a.r(J1),a.d(J1,{default:()=>kQ});var Q1={};a.r(Q1),a.d(Q1,{default:()=>jQ});var e_={};a.r(e_),a.d(e_,{default:()=>SQ});var t_={};a.r(t_),a.d(t_,{default:()=>CQ});var r_={};a.r(r_),a.d(r_,{ar:()=>Wt,cs_cz:()=>Ln,de:()=>Us,es:()=>Qo,fa:()=>Ch,fi:()=>nc,fr:()=>oc,he:()=>Ah,hu:()=>Mu,id:()=>Oh,it:()=>Iu,ja:()=>Y1,ko:()=>W1,mn:()=>X1,nl:()=>G1,pl:()=>$1,pt_br:()=>Z1,ru:()=>K1,tr:()=>J1,ua:()=>Q1,zh_cn:()=>e_,zh_tw:()=>t_});var n_={};a.r(n_),a.d(n_,{default:()=>TQ});var o_={};a.r(o_),a.d(o_,{default:()=>RQ});var i_={};a.r(i_),a.d(i_,{en:()=>n_,es:()=>o_});var a_={};a.r(a_),a.d(a_,{default:()=>FQ});var s_={};a.r(s_),a.d(s_,{default:()=>HQ});var l_={};a.r(l_),a.d(l_,{default:()=>UQ});var c_={};a.r(c_),a.d(c_,{default:()=>VQ});var u_={};a.r(u_),a.d(u_,{default:()=>qQ});var d_={};a.r(d_),a.d(d_,{default:()=>YQ});var f_={};a.r(f_),a.d(f_,{default:()=>WQ});var h_={};a.r(h_),a.d(h_,{default:()=>XQ});var p_={};a.r(p_),a.d(p_,{default:()=>GQ});var g_={};a.r(g_),a.d(g_,{default:()=>$Q});var m_={};a.r(m_),a.d(m_,{default:()=>ZQ});var v_={};a.r(v_),a.d(v_,{default:()=>KQ});var b_={};a.r(b_),a.d(b_,{default:()=>JQ});var y_={};a.r(y_),a.d(y_,{default:()=>QQ});var x_={};a.r(x_),a.d(x_,{default:()=>eee});var w_={};a.r(w_),a.d(w_,{default:()=>tee});var __={};a.r(__),a.d(__,{default:()=>ree});var k_={};a.r(k_),a.d(k_,{default:()=>nee});var j_={};a.r(j_),a.d(j_,{default:()=>oee});var S_={};a.r(S_),a.d(S_,{default:()=>iee});var C_={};a.r(C_),a.d(C_,{default:()=>aee});var A_={};a.r(A_),a.d(A_,{default:()=>see});var O_={};a.r(O_),a.d(O_,{default:()=>lee});var E_={};a.r(E_),a.d(E_,{ar:()=>a_,cs_cz:()=>s_,de:()=>l_,es:()=>c_,fa:()=>u_,fi:()=>d_,fr:()=>f_,he:()=>h_,hu:()=>p_,id:()=>g_,it:()=>m_,ja:()=>v_,ko:()=>b_,mn:()=>y_,nl:()=>x_,no:()=>w_,pl:()=>__,pt_br:()=>k_,ru:()=>j_,tr:()=>S_,ua:()=>C_,zh_cn:()=>A_,zh_tw:()=>O_});var ei=a(442),w5=a.n(ei);function T_(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}var xb,_5="4.6.2",k5="es2020",j5=!0,R_=!0,Vs=!0,S5=!1,C5=!0,P_="https://xdsoft.net/jodit/",CX=function(){return S5=!0},AX={},dn="\uFEFF",wb=" ",Ya=function(){return/[\uFEFF]/g},z_=function(){return/[\uFEFF]+$/g},M_=function(){return/^[\uFEFF]+/g},Eh=function(){return/[\s\n\t\r\uFEFF\u200b]+/g},A5=function(){return/^[\s\n\t\r\uFEFF\u200b]+/g},O5=function(){return/[\s\n\t\r\uFEFF\u200b]+$/g},Ar=typeof window<"u"?window:void 0,pr=typeof document<"u"?document:void 0,_b=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,E5=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,Lu=new Set(["ul","ol"]),T5=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],zi=new Set((xb=T5,function(l){if(Array.isArray(l))return T_(l)}(xb)||function(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}(xb)||function(l,c){if(l){if(typeof l=="string")return T_(l,c);var h=Object.prototype.toString.call(l).slice(8,-1);return h==="Object"&&l.constructor&&(h=l.constructor.name),h==="Map"||h==="Set"?Array.from(h):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?T_(l,c):void 0}}(xb)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(["br","hr"])),R5=new Set(T5),P5="Meta",z5="Backspace",qs="Tab",ic="Enter",Nu="Escape",M5="Alt",Ys="ArrowLeft",ti="ArrowUp",ac="ArrowRight",Mi="ArrowDown",OX="Space",I_="Delete",L_="F3",sc=5,Th=10,I5=[P5,z5,I_,ti,Mi,ac,Ys,ic,Nu,L_,qs],kb="br",jb="p",gr=1,Nn=2,ca=3,Du=typeof navigator<"u"&&(navigator.userAgent.indexOf("MSIE")!==-1||/rv:11.0/i.test(navigator.userAgent)),Ws=Du?"text":"text/plain",Rh=Du?"html":"text/html",L5=Du?"rtf":"text/rtf",Bu="jodit-selection_marker",N5=300,Fu="insert_as_html",D5="insert_clear_html",Ph="insert_as_text",zh="insert_only_text",B5=10,F5=Ar!==void 0&&/Mac|iPod|iPhone|iPad/.test(Ar.navigator.platform),H5={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:F5?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},N_=function(l){var c=l.split("/"),h=!1;return/\.js/.test(c[c.length-1])?{basePath:c.slice(0,c.length-1).join("/")+"/",isMin:h}:{basePath:l,isMin:h}},U5=function(){if(typeof document>"u")return{basePath:"",isMin:!1};var l=pr.currentScript;if(l)return N_(l.src);var c=pr.querySelectorAll("script[src]");return c&&c.length?N_(c[c.length-1].src):N_(Ar.location.href)}(),EX=U5.basePath,TX=U5.isMin,V5=EX,q5=TX,Sb="data-jodit-temp",uo={},ua="clipboard",D_="source-consumer",Y5=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);function B_(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function F_(l){return F_=typeof Symbol=="function"&&B_(Symbol.iterator)==="symbol"?function(c){return c===void 0?"undefined":B_(c)}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":c===void 0?"undefined":B_(c)},F_(l)}function W5(l,c,h){var u=h.value;if(typeof u!="function")throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(F_(u)));var i=!1;return{configurable:!0,get:function(){if(i||this===l.prototype||this.hasOwnProperty(c)||typeof u!="function")return u;var s=u.bind(this);return i=!0,Object.defineProperty(this,c,{configurable:!0,get:function(){return s},set:function(d){u=d,delete this[c]}}),i=!1,s},set:function(s){u=s}}}function RX(l){var c;return typeof Reflect<"u"&&typeof Reflect.ownKeys=="function"?c=Reflect.ownKeys(l.prototype):(c=Object.getOwnPropertyNames(l.prototype),typeof Object.getOwnPropertySymbols=="function"&&(c=c.concat(Object.getOwnPropertySymbols(l.prototype)))),c.forEach(function(h){if(h!=="constructor"){var u=Object.getOwnPropertyDescriptor(l.prototype,h);typeof u.value=="function"&&Object.defineProperty(l.prototype,h,W5(l,h,u))}}),l}function Ce(){return arguments.length===1?RX.apply(void 0,arguments):W5.apply(void 0,arguments)}var Xt={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"};function X5(l){return!!l&&(l===void 0?"undefined":(c=l,c&&typeof Symbol<"u"&&c.constructor===Symbol?"symbol":typeof c)).toLowerCase()==="function"&&(l===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(l)));var c}function Pe(l){return typeof l=="function"}function Nt(l){return Array.isArray(l)}function Se(l){return typeof l=="string"}function Hu(l){return Nt(l)&&Se(l[0])}function zr(l){return l==null}function Cb(l,c){if(!Se(l)||!l.length)return null;var h=l.split("."),u=c;try{var i=!0,s=!1,d=void 0;try{for(var g,b=h[Symbol.iterator]();!(i=(g=b.next()).done);i=!0){var w=g.value;if(zr(u[w]))return null;u=u[w]}}catch(_){s=!0,d=_}finally{try{i||b.return==null||b.return()}finally{if(s)throw d}}}catch{return null}return zr(u)?null:u}var H_={};function G5(l){var c,h;if(!(l in H_)){var u=pr.createElement("iframe");try{if(u.src="about:blank",pr.body.appendChild(u),!u.contentWindow)return null;var i=Cb(l,u.contentWindow),s=Cb(l.split(".").slice(0,-1).join("."),u.contentWindow);Pe(i)&&(H_[l]=i.bind(s))}catch{}finally{(c=u.parentNode)===null||c===void 0||c.removeChild(u)}}return(h=H_[l])!==null&&h!==void 0?h:null}var mr=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];var u;return(X5(Array.from)?Array.from:(u=G5("Array.from"))!==null&&u!==void 0?u:Array.from).apply(Array,c)};function $5(){var l=!0;try{var c=pr.createElement("input");c.type="color",c.value="!",l=c.type==="color"&&c.value!=="!"}catch{l=!1}return l}function Xs(l){return!!l&&(c=l,(h=DOMException)!=null&&typeof Symbol<"u"&&h[Symbol.hasInstance]?!!h[Symbol.hasInstance](c):c instanceof h)&&l.name==="AbortError";var c,h}function Wa(l){return typeof l=="boolean"}function Z5(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function Ab(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if((l===void 0?"undefined":Z5(l))!=="object")return String(l);var h=new Set(c.excludeKeys),u=new WeakMap;return JSON.stringify(l,function(i,s){if(!h.has(i)){if((s===void 0?"undefined":Z5(s))==="object"&&s!=null){if(u.get(s))return"[refObject]";u.set(s,!0)}return s}},c.prettify)}function PX(l,c){return l===c||Ab(l)===Ab(c)}function K5(l,c){return l===c}var Mh=function(l){return Se(l)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(l.replace(/[\r\n]/g,""))};function J5(l){return l.search(/<meta.*?Microsoft Excel\s[\d].*?>/)!==-1||l.search(/<meta.*?Microsoft Word\s[\d].*?>/)!==-1||l.search(/style="[^"]*mso-/)!==-1&&l.search(/<font/)!==-1}function Q5(l){return!zr(l)&&Pe(l.init)}function U_(l){return!zr(l)&&Pe(l.destruct)}function eP(l){return!zr(l)&&N.isElement(l.container)}function ri(l){if(Se(l)){if(!l.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;l=parseFloat(l)}return typeof l=="number"&&!isNaN(l)&&isFinite(l)}function zX(l){return Se(l)&&ri(l)&&(l=parseFloat(l)),typeof l=="number"&&Number.isFinite(l)&&!(l%1)}function tP(l,c){return c!=null&&typeof Symbol<"u"&&c[Symbol.hasInstance]?!!c[Symbol.hasInstance](l):l instanceof c}function _n(l){return!!(l&&tP(l,Object)&&Pe(l.constructor)&&(typeof Jodit<"u"&&tP(l,Jodit)||l.isJodit))}var rP=function(l){return Se(l)&&l.length===23&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(l)};function ni(l){return N.isNode(l)&&N.isTag(l,"span")&&l.hasAttribute("data-"+Bu)}function kn(l){return typeof l=="number"&&!isNaN(l)&&isFinite(l)}function nP(l){return l!=null&&l===l.window}function tr(l){return!(!l||(l===void 0?"undefined":function(c){return c&&typeof Symbol<"u"&&c.constructor===Symbol?"symbol":typeof c}(l))!=="object"||l.nodeType||nP(l)||l.constructor&&!{}.hasOwnProperty.call(l.constructor.prototype,"isPrototypeOf"))}function Ih(l){return l&&typeof l.then=="function"}function V_(l){return!!l&&Pe(l.has)&&Pe(l.add)&&Pe(l.delete)}function Ob(l){if(l.includes(" "))return!1;if(typeof URL<"u")try{var c=new URL(l);return["https:","http:","ftp:","file:","rtmp:"].includes(c.protocol)}catch{return!1}var h=pr.createElement("a");return h.href=l,!!h.hostname}function q_(l){return!!l.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(l)&&l.trim().length>0}function lc(l){return!!(l&&(c=l,(h=Object)!=null&&typeof Symbol<"u"&&h[Symbol.hasInstance]?!!h[Symbol.hasInstance](c):c instanceof h)&&Pe(l.constructor)&&l.isView);var c,h}function cr(l){return l.replace(O5(),"").replace(A5(),"")}function oP(l,c){return l.replace(RegExp("[".concat(c,"]+$")),"").replace(RegExp("^[".concat(c,"]+")),"")}function iP(l){return l.replace(z_(),"").replace(M_(),"")}function Y_(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function MX(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var W_=function(){function l(){(function(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")})(this,l),this.__map=new Map}var c,h;return c=l,h=[{key:"on",value:function(u,i){var s;return this.__map.has(u)||this.__map.set(u,new Set),(s=this.__map.get(u))===null||s===void 0||s.add(i),this}},{key:"off",value:function(u,i){var s;return this.__map.has(u)&&((s=this.__map.get(u))===null||s===void 0||s.delete(i)),this}},{key:"destruct",value:function(){this.__map.clear()}},{key:"emit",value:function(u){for(var i=arguments.length,s=new Array(i>1?i-1:0),d=1;d<i;d++)s[d-1]=arguments[d];var g,b;return this.__map.has(u)&&((g=this.__map.get(u))===null||g===void 0||g.forEach(function(w){b=w.apply(void 0,function(_){return function(T){if(Array.isArray(T))return Y_(T)}(_)||function(T){if(typeof Symbol<"u"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}(_)||function(T,z){if(T){if(typeof T=="string")return Y_(T,z);var L=Object.prototype.toString.call(T).slice(8,-1);return L==="Object"&&T.constructor&&(L=T.constructor.name),L==="Map"||L==="Set"?Array.from(L):L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L)?Y_(T,z):void 0}}(_)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(s))})),b}}],h&&MX(c.prototype,h),l}();function IX(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function X_(l,c,h){return X_=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=Uu(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},X_(l,c,h||l)}function Uu(l){return Uu=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Uu(l)}function G_(l,c){return G_=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},G_(l,c)}function aP(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function sP(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sP=function(){return!!l})()}var Eb=function(l){function c(i){var s,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(g,b,w){return b=Uu(b),function(_,T){return!T||aP(T)!=="object"&&typeof T!="function"?function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(_):T}(g,sP()?Reflect.construct(b,[],Uu(g).constructor):b.apply(g,w))}(this,c)).async=i,s.options=d,s.workNodes=null,s.hadAffect=!1,s.isWorked=!1,s.isFinished=!1,s.idleId=0,s.__schedulerController=null,s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&G_(i,s)}(c,l),h=c,(u=[{key:"setWork",value:function(i){return this.isWorked&&this.break(),this.workNodes=N.eachGen(i,!this.options.reverse),this.isFinished=!1,this._requestStarting(),this}},{key:"_requestStarting",value:function(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(function(){return null})}},{key:"break",value:function(i){this.isWorked&&(this.stop(),this.emit("break",i))}},{key:"end",value:function(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}},{key:"stop",value:function(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}},{key:"destruct",value:function(){X_(Uu(c.prototype),"destruct",this).call(this),this.stop()}},{key:"__workPerform",value:function(){var i;if(this.workNodes){this.isWorked=!0;for(var s=0,d=(i=this.options.timeoutChunkSize)!==null&&i!==void 0?i:50;!this.isFinished&&s<=d;){var g=this.workNodes.next();if(s+=1,this.visitNode(g.value)&&(this.hadAffect=!0),g.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}},{key:"visitNode",value:function(i){var s;return!(!i||this.options.whatToShow!==void 0&&i.nodeType!==this.options.whatToShow)&&(s=this.emit("visit",i))!==null&&s!==void 0&&s}}])&&IX(h.prototype,u),c}(W_);(function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":aP(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);s>3&&d&&Object.defineProperty(c,h,d)})([Ce],Eb.prototype,"__workPerform",null);var $_=function(l){if(l==="rgba(0, 0, 0, 0)"||l==="")return!1;if(!l)return"#000000";if(l.substr(0,1)==="#")return l;var c=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(l)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(l);if(!c)return"#000000";for(var h=parseInt(c[2],10),u=parseInt(c[3],10),i=(parseInt(c[4],10)|u<<8|h<<16).toString(16).toUpperCase();i.length<6;)i="0"+i;return c[1]+"#"+i},oi=function(l){return l.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()},lP=function(l){return l.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},Z_=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function cP(l,c){return!zr(c)&&Z_.test(l)&&ri(c.toString())?parseInt(c.toString(),10)+"px":c}function Lh(l,c){if(oi(l)==="font-weight"){switch(c.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return ri(c)?Number(c):c}return/color/i.test(l)&&/^rgb/i.test(c.toString())&&$_(c.toString())||c}var jn=function(l){return l.replace(/([-_])(.)/g,function(c,h,u){return u.toUpperCase()})};function be(l,c,h){var u=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(Wa(h)&&(u=h,h=void 0),tr(c)||h!==void 0){var i=function(z,L,D){(D=cP(L,D))===void 0||D!=null&&be(z,L,!0)===Lh(L,D)||(z.style[L]=D)};if(tr(c))for(var s=Object.keys(c),d=0;d<s.length;d+=1)i(l,jn(s[d]),c[s[d]]);else i(l,jn(c),h);return""}var g=oi(c),b=l.ownerDocument||document,w=!!b&&(b.defaultView||b.parentWindow),_=l.style[c],T="";return _!==void 0&&_!==""?T=_:w&&!u&&(T=w.getComputedStyle(l).getPropertyValue(g)),Z_.test(c)&&/^[-+]?[0-9.]+px$/.test(T.toString())&&(T=parseInt(T.toString(),10)),Lh(c,T)}var K_=function(l){be(l,"display")==="block"&&be(l,"display","");var c=l.style;c.marginLeft==="auto"&&c.marginRight==="auto"&&(c.marginLeft="",c.marginRight="")};function Tb(l,c){c&&c!=="normal"?c!=="center"?(be(l,"float",c),K_(l)):be(l,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):(be(l,"float")&&["right","left"].indexOf(be(l,"float").toString().toLowerCase())!==-1&&be(l,"float",""),K_(l))}function uP(l){N.each(l,function(c){N.isHTMLElement(c)&&c.style.textAlign&&(c.style.textAlign="",c.style.cssText.trim().length||c.removeAttribute("style"))})}function J_(l,c){if(N.isNode(c)&&N.isElement(c))switch(uP(c),l.toLowerCase()){case"justifyfull":c.style.textAlign="justify";break;case"justifyright":c.style.textAlign="right";break;case"justifyleft":c.style.textAlign="left";break;case"justifycenter":c.style.textAlign="center"}}var Q_=function(l){return Ar.location.protocol==="file:"&&/^\/\//.test(l)&&(l="https:"+l),l},Rb=new Map,dP=function(l){return function(c,h){if(Rb.has(h))return Rb.get(h);var u=l(c,h);return Rb.set(h,u),u}},ek=dP(function(l,c){return l.async.promise(function(h,u){if(l.isInDestruct)return u();var i=l.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:Q_(c)});l.e.one(i,"error",u).one(i,"load",h),l.od.body.appendChild(i)})}),tk=dP(function(l,c){return l.async.promise(function(h,u){if(l.isInDestruct)return u();var i=l.c.element("link");i.rel="stylesheet",i.media="all",i.crossOrigin="anonymous",!l.isInDestruct&&l.e.on(i,"load",function(){return h(i)}).on(i,"error",u),i.href=Q_(c),l.o.shadowRoot?l.o.shadowRoot.appendChild(i):l.od.body.appendChild(i)})});function Pb(l,c){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return Se(c[h])?ek(l,c[h]).then(function(){return Pb(l,c,h+1)}):Promise.resolve()}function fP(l,c){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return Se(c[h])?tk(l,c[h]).then(function(){return fP(l,c,h+1)}):Promise.resolve()}function rk(l,c,h){return rk=ok()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Dh(g,s.prototype),g},rk.apply(null,arguments)}function Nh(l){return Nh=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Nh(l)}function Dh(l,c){return Dh=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Dh(l,c)}function nk(l){var c=typeof Map=="function"?new Map:void 0;return nk=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return rk(h,arguments,Nh(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Dh(i,h)},nk(l)}function ok(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ok=function(){return!!l})()}var LX=function(l){function c(h){var u;return function(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}(this,c),(u=function(i,s,d){return s=Nh(s),function(g,b){return!b||((w=b)&&typeof Symbol<"u"&&w.constructor===Symbol?"symbol":typeof w)!="object"&&typeof b!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(g):b;var w}(i,ok()?Reflect.construct(s,d||[],Nh(i).constructor):s.apply(i,d))}(this,c,[h])).name="AssertionError",u}return function(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),u&&Dh(h,u)}(c,l),c}(nk(Error));function dt(l,c){if(!l)throw new LX("Assertion failed: ".concat(c))}function fe(l,c,h){if(!l||!Pe(l.getAttribute))return null;if(!Se(c))return Object.keys(c).forEach(function(d){var g=c[d];tr(g)&&d==="style"?be(l,g):(d==="className"&&(d="class"),fe(l,d,g))}),null;var u=lP(c);if(/^-/.test(u)){var i=fe(l,"data".concat(u));if(i)return i;u=u.substr(1)}if(h!==void 0){if(h!=null){var s=h.toString();return l.nodeName!=="IMG"||u!=="width"&&u!=="height"||(s=s.replace("px","")),l.setAttribute(u,s),s}l.hasAttribute(u)&&l.removeAttribute(u)}return l.getAttribute(u)}var NX=function(l){var c=navigator.userAgent.toLowerCase(),h=/(firefox)[\s/]([\w.]+)/.exec(c)||/(chrome)[\s/]([\w.]+)/.exec(c)||/(webkit)[\s/]([\w.]+)/.exec(c)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(c)||/(msie)[\s]([\w.]+)/.exec(c)||/(trident)\/([\w.]+)/.exec(c)||c.indexOf("compatible")<0||[];return l==="version"?h[2]:l==="webkit"?h[1]==="chrome"||h[1]==="webkit":l==="ff"?h[1]==="firefox":l==="msie"?h[1]==="trident"||h[1]==="msie":h[1]===l},Bh=function(l,c){var h=[],u=encodeURIComponent;for(var i in l)if(Object.prototype.hasOwnProperty.call(l,i)){var s=c?c+"["+i+"]":i,d=l[i];h.push(tr(d)?Bh(d,s):u(s)+"="+u(d))}return h.join("&")};function DX(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var de=function(){function l(){(function(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")})(this,l),this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=pr,this.ownerWindow=Ar,this.shadowRoot=null,this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=Fu,this.enter=jb,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock=this.enter!=="br"?this.enter:jb,this.defaultMode=gr,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},`
`,{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0}var c,h;return c=l,h=[{key:"defaultOptions",get:function(){return l.__defaultOptions||(l.__defaultOptions=new l),l.__defaultOptions}}],h&&DX(c,h),l}();function ik(l){return l&&l.isAtom}function hP(l){return Object.defineProperty(l,"isAtom",{enumerable:!1,value:!0,configurable:!1}),l}function BX(l){return JSON.parse(Ab(l))}de.prototype.controls={};var ak=new WeakMap,St=function(l,c,h){var u=ak.get(l);if(!u){u={},ak.set(l,u);var i=null;lc(l.j)&&(i=l.j.e),lc(l)&&(i=l.e),i&&i.on("beforeDestruct",function(){ak.delete(l)})}return h===void 0?u[c]:(u[c]=h,h)};function sk(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function Mr(l){for(var c=arguments.length,h=new Array(c>1?c-1:0),u=1;u<c;u++)h[u-1]=arguments[u];return l.apply(void 0,function(i){return function(s){if(Array.isArray(s))return sk(s)}(i)||function(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}(i)||function(s,d){if(s){if(typeof s=="string")return sk(s,d);var g=Object.prototype.toString.call(s).slice(8,-1);return g==="Object"&&s.constructor&&(g=s.constructor.name),g==="Map"||g==="Set"?Array.from(g):g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?sk(s,d):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(h))}function Fh(l,c){fe(c,"data-editor_id",l.id),!c.component&&Object.defineProperty(c,"jodit",{value:l})}function Xa(l,c){return Ih(l)?l.then(function(h){return h},function(){return null}).finally(c):c==null?void 0:c()}var FX=function(l,c){return c.async.promise(function(h,u){var i=new Image,s=function(){c.e.off(i),u==null||u()},d=function(){c.e.off(i),h(i)};c.e.one(i,"load",d).one(i,"error",s).one(i,"abort",s),i.src=l,i.complete&&d()})},Ga=function(l){if(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])return Object.keys(l);var c=[];for(var h in l)c.push(h);return c},lk=function(l,c,h,u){var i,s=h.control,d="button".concat(s.command),g=(i=s.args&&s.args[0])!==null&&i!==void 0?i:St(l,d);if(zr(g))return!1;St(l,d,g),u&&(g=u(g)),l.execCommand(s.command,!1,g??void 0)},cc=function(l){if(l.clipboardData)return l.clipboardData;try{return l.dataTransfer||new DataTransfer}catch{return null}};function ck(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function pP(l){return function(c){if(Array.isArray(c))return ck(c)}(l)||function(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(l)||function(c,h){if(c){if(typeof c=="string")return ck(c,h);var u=Object.prototype.toString.call(c).slice(8,-1);return u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set"?Array.from(u):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?ck(c,h):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fn(l,c){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Object.getPrototypeOf(l)!==Object.prototype)return l;var u=de.defaultOptions;if(Se(l.preset)){if(u.presets[l.preset]!==void 0){var i=u.presets[l.preset];Object.keys(i).forEach(function(d){zr(l[d])&&(l[d]=i[d])})}delete l.preset}var s={};return Object.keys(l).forEach(function(d){var g=l[d],b=c?c[d]:null;tr(g)&&tr(b)&&!ik(g)?s[d]=fn(g,b,h+1):h!==0&&Nt(g)&&!ik(g)&&Nt(b)?s[d]=pP(g).concat(pP(b.slice(g.length))):s[d]=g}),Object.setPrototypeOf(s,c),s}function Hh(l){return Ga(l,!1).reduce(function(c,h){return c[h]=l[h],c},{})}function gP(l){return Ga(l,!1).reduce(function(c,h){return c[h]=tr(l[h])?gP(l[h]):l[h],c},{})}var uk=function(l){for(var c={},h=l.substring(1).split("&"),u=0;u<h.length;u+=1){var i=h[u].split("=");c[decodeURIComponent(i[0])]=decodeURIComponent(i[1]||"")}return c},zb=function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=c.width,u=h===void 0?400:h,i=c.height,s=i===void 0?345:i;if(!Ob(l))return l;var d=pr.createElement("a"),g=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;d.href=l,u||(u=400),s||(s=345);var b=d.protocol||"";switch(d.hostname){case"www.vimeo.com":case"vimeo.com":return g.test(l)?l.replace(g,'<iframe width="'+u+'" height="'+s+'" src="'+b+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):l;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":var w=d.search?uk(d.search):{v:d.pathname.substring(1)};return/^embed\/.*/.test(w.v)&&(w.v=w.v.substring(6)),w.v?'<iframe width="'+u+'" height="'+s+'" src="'+b+"//www.youtube.com/embed/"+w.v+'" frameborder="0" allowfullscreen></iframe>':l}return l},Uh=function(l){if(typeof navigator<"u"&&navigator.userAgent.indexOf("Mac OS X")!==-1){if(l.metaKey&&!l.altKey)return!0}else if(l.ctrlKey&&!l.altKey)return!0;return!1},Vh=function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en";return l!=="auto"&&Se(l)?l:pr.documentElement&&pr.documentElement.lang?pr.documentElement.lang:navigator.language?navigator.language.substring(0,2):c};function qh(){return new DOMException(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Aborted","AbortError")}var HX=Xs;function dk(l,c,h){return dk=hk()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Wh(g,s.prototype),g},dk.apply(null,arguments)}function Yh(l){return Yh=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Yh(l)}function Wh(l,c){return Wh=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Wh(l,c)}function fk(l){var c=typeof Map=="function"?new Map:void 0;return fk=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return dk(h,arguments,Yh(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Wh(i,h)},fk(l)}function hk(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hk=function(){return!!l})()}var mP=function(l){function c(h){var u;return function(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}(this,c),u=function(i,s,d){return s=Yh(s),function(g,b){return!b||((w=b)&&typeof Symbol<"u"&&w.constructor===Symbol?"symbol":typeof w)!="object"&&typeof b!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(g):b;var w}(i,hk()?Reflect.construct(s,d||[],Yh(i).constructor):s.apply(i,d))}(this,c,[h]),Object.setPrototypeOf(u,c.prototype),u}return function(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),u&&Wh(h,u)}(c,l),c}(fk(Error));function pk(l,c,h){return pk=mk()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Gh(g,s.prototype),g},pk.apply(null,arguments)}function Xh(l){return Xh=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Xh(l)}function Gh(l,c){return Gh=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Gh(l,c)}function gk(l){var c=typeof Map=="function"?new Map:void 0;return gk=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return pk(h,arguments,Xh(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Gh(i,h)},gk(l)}function mk(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mk=function(){return!!l})()}var vP=function(l){function c(h){var u;return function(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}(this,c),u=function(i,s,d){return s=Xh(s),function(g,b){return!b||((w=b)&&typeof Symbol<"u"&&w.constructor===Symbol?"symbol":typeof w)!="object"&&typeof b!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(g):b;var w}(i,mk()?Reflect.construct(s,d||[],Xh(i).constructor):s.apply(i,d))}(this,c,[h]),Object.setPrototypeOf(u,c.prototype),u}return function(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),u&&Gh(h,u)}(c,l),c}(gk(TypeError));function ht(l){return new TypeError(l)}function vk(l){return new mP(l)}function UX(l){return new vP(l)}var bk=new Map,yk=function(l){var c;if(Pe(l.className))return l.className();var h=((c=l.constructor)===null||c===void 0?void 0:c.originalConstructor)||l.constructor;if(bk.has(h))return bk.get(h);if(h.name)return h.name;var u=new RegExp(/^\s*function\s*(\S*)\s*\(/),i=h.toString().match(u);return i?i[1]:""},xk=function(l){if(/^[0-9.]+$/.test(l.toString()))return parseFloat(l);var c=l.substr(-2,2).toUpperCase(),h=["KB","MB","GB","TB"],u=parseFloat(l.substr(0,l.length-2));return h.indexOf(c)!==-1?u*Math.pow(1024,h.indexOf(c)+1):parseInt(l,10)};function wk(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}var bP=console;function VX(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[""],h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return function(){for(var u=arguments.length,i=new Array(u),s=0;s<u;s++)i[s]=arguments[s];var d;return bP.warn('Method "'.concat(c[0],'" deprecated.')+(c[1]?' Use "'.concat(c[1],'" instead'):"")),(d=l).call.apply(d,[h].concat(function(g){return function(b){if(Array.isArray(b))return wk(b)}(g)||function(b){if(typeof Symbol<"u"&&b[Symbol.iterator]!=null||b["@@iterator"]!=null)return Array.from(b)}(g)||function(b,w){if(b){if(typeof b=="string")return wk(b,w);var _=Object.prototype.toString.call(b).slice(8,-1);return _==="Object"&&b.constructor&&(_=b.constructor.name),_==="Map"||_==="Set"?Array.from(_):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?wk(b,w):void 0}}(g)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(i)))}}function Ct(l,c){var h;return h=c.querySelectorAll(l),[].slice.call(h)}var _k=function(l,c){if(!l||l.nodeType!==Node.ELEMENT_NODE||!l.parentNode||c===l)return"";if(l.id)return"//*[@id='"+l.id+"']";var h=[].filter.call(l.parentNode.childNodes,function(u){return u.nodeName===l.nodeName});return _k(l.parentNode,c)+"/"+l.nodeName.toLowerCase()+(h.length>1?"["+(mr(h).indexOf(l)+1)+"]":"")},ii=function(l){return"container"in l&&(l=l.container),Ct("[ref],[data-ref]",l).reduce(function(c,h){var u=fe(h,"-ref");return u&&Se(u)&&(c[jn(u)]=h,c[u]=h),c},{})},yP=function(l){if(!N.isElement(l))return null;for(var c=[],h=l;h&&h.nodeType===Node.ELEMENT_NODE;){var u=h.nodeName.toLowerCase();if(h.id){u+="#"+h.id,c.unshift(u);break}var i=h,s=1;do(i=i.previousElementSibling)&&i.nodeName.toLowerCase()===u&&s++;while(i);u+=":nth-of-type("+s+")",c.unshift(u),h=h.parentNode}return c.join(" > ")};function $h(l,c){var h,u=l;if(Se(l))try{u=c.querySelector(l)}catch{throw ht('String "'+l+'" should be valid HTML selector')}if(!u||(u===void 0?"undefined":(h=u)&&typeof Symbol<"u"&&h.constructor===Symbol?"symbol":typeof h)!="object"||!N.isElement(u)||!u.cloneNode)throw ht('Element "'+l+'" should be string or HTMLElement instance');return u}function kk(l,c){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"px",u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=[],s=function(Y,X){var J=[];try{Ct("img",Y.editor).forEach(function($){var ee=[fe($,"width"),fe($,"height"),$.src];fe($,{width:$.offsetWidth+X,height:$.offsetHeight+X});var ce=Y.createInside.a();Y.ed.body.appendChild(ce),ce.href=$.src,$.src=ce.href,N.safeRemove(ce),J.push(function(){var ge;$.src=(ge=ee[2])!==null&&ge!==void 0?ge:"",fe($,{width:ee[0]||null,height:ee[1]||null})})})}catch($){throw J.forEach(function(ee){return ee()}),J.length=0,$}return J}(l,h);try{var d=l.e.fire("beforePreviewBox",c,h);if(d!=null)return d;var g=l.c.div("jodit__preview-box jodit-context");u&&u.appendChild(g),be(g,{position:"relative",padding:16});var b=l.value||"<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>".concat(l.i18n("Empty"),"</div>");if(l.iframe){var w=l.create.element("iframe");be(w,{minWidth:800,minHeight:600,border:0}),g.appendChild(w);var _=w.contentWindow;if(_&&(l.e.fire("generateDocumentStructure.iframe",_.document,l),g=_.document.body,typeof ResizeObserver=="function")){var T=!1,z=_.document.body,L=new ResizeObserver(l.async.debounce(function(){L.unobserve(z),w.style.height="".concat(z.offsetHeight+20,"px"),l.async.requestAnimationFrame(function(){!T&&L.observe(z)})},100)),D=function(){T=!0,L.unobserve(z),L.disconnect(),l.e.off("beforeDestruct",D)};i.push(D),l.e.on("beforeDestruct",D)}}else be(g,{minWidth:1024,minHeight:600,border:0});var q=function(Y,X){var J=Se(X)?l.c.div():X;Se(X)&&(J.innerHTML=X);for(var $=0;$<J.childNodes.length;$+=1){var ee=J.childNodes[$];if(N.isElement(ee)){for(var ce=Y.ownerDocument.createElement(ee.nodeName),ge=0;ge<ee.attributes.length;ge+=1)fe(ce,ee.attributes[ge].nodeName,ee.attributes[ge].nodeValue);ee.childNodes.length===0||N.isTag(ee,"table")?ee.nodeName==="SCRIPT"?ee.textContent&&(ce.textContent=ee.textContent):ee.innerHTML&&(ce.innerHTML=ee.innerHTML):q(ce,ee);try{Y.appendChild(ce)}catch{}}else try{Y.appendChild(ee.cloneNode(!0))}catch{}}};return q(g,b),l.e.fire("afterPreviewBox",g),[g,function(){i.forEach(function(Y){return Y()})}]}finally{s.forEach(function(Y){return Y()})}}function jk(l,c,h){for(var u=l.getBoundingClientRect(),i=l,s=u.top,d=u.height;i&&i!==c&&i.parentNode;)if(!(s<=(u=(i=i.parentNode).getBoundingClientRect()).bottom)||s+d<=u.top)return!1;return s<=(h.documentElement&&h.documentElement.clientHeight||0)}function Gs(l,c,h){N.isHTMLElement(l)&&!jk(l,c,h)&&(c.clientHeight!==c.scrollHeight&&(c.scrollTop=l.offsetTop),jk(l,c,h)||l.scrollIntoView())}function xP(l,c,h){if(Se(l)&&l.length){for(var u=l.split("."),i=h,s=u[0],d=0;d<u.length-1;d+=1)Nt(i[s=u[d]])||tr(i[s])||(i[s]=ri(u[d+1])?[]:{}),i=i[s];i&&(i[u[u.length-1]]=c)}}function qX(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var wP=function(){function l(u){(function(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")})(this,l),this.limit=u,this.stack=[]}var c,h;return c=l,(h=[{key:"push",value:function(u){return this.stack.push(u),this.stack.length>this.limit&&this.stack.shift(),this}},{key:"pop",value:function(){return this.stack.pop()}},{key:"find",value:function(u){return this.stack.find(u)}}])&&qX(c.prototype,h),l}();function YX(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function _P(l,c){return c!=null&&typeof Symbol<"u"&&c[Symbol.hasInstance]?!!c[Symbol.hasInstance](l):l instanceof c}function kP(l,c){var h,u,i,s,d={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function g(b){return function(w){return function(_){if(h)throw new TypeError("Generator is already executing.");for(;d;)try{if(h=1,u&&(i=2&_[0]?u.return:_[0]?u.throw||((i=u.return)&&i.call(u),0):u.next)&&!(i=i.call(u,_[1])).done)return i;switch(u=0,i&&(_=[2&_[0],i.value]),_[0]){case 0:case 1:i=_;break;case 4:return d.label++,{value:_[1],done:!1};case 5:d.label++,u=_[1],_=[0];continue;case 7:_=d.ops.pop(),d.trys.pop();continue;default:if(!((i=(i=d.trys).length>0&&i[i.length-1])||_[0]!==6&&_[0]!==2)){d=0;continue}if(_[0]===3&&(!i||_[1]>i[0]&&_[1]<i[3])){d.label=_[1];break}if(_[0]===6&&d.label<i[1]){d.label=i[1],i=_;break}if(i&&d.label<i[2]){d.label=i[2],d.ops.push(_);break}i[2]&&d.ops.pop(),d.trys.pop();continue}_=c.call(l,d)}catch(T){_=[6,T],u=0}finally{h=i=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([b,w])}}}function WX(l){var c=typeof Symbol=="function"&&Symbol.iterator,h=c&&l[c],u=0;if(h)return h.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&u>=l.length&&(l=void 0),{value:l&&l[u++],done:!l}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}var N=function(){function l(){throw function(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")}(this,l),new Error("Dom is static module")}var c,h;return c=l,h=[{key:"detach",value:function(u){for(;u&&u.firstChild;)u.removeChild(u.firstChild)}},{key:"wrapNextInline",value:function(u,i,s){var d,g=u,b=u;s.s.save();var w=!1;do w=!1,!(d=b.nextSibling)||l.isBlock(d)||l.isTag(d,"br")||(w=!0,b=d);while(w);return l.__wrapElements(i,s,g,b)}},{key:"__wrapElements",value:function(u,i,s,d){var g=Se(u)?i.createInside.element(u):u;s.parentNode&&s.parentNode.insertBefore(g,s);for(var b=s;b&&(b=s.nextSibling,g.appendChild(s),s!==d&&b);)s=b;return i.s.restore(),g}},{key:"wrapInline",value:function(u,i,s){var d,g=u,b=u;s.s.save();var w=!1;do w=!1,(d=g.previousSibling)&&!l.isBlock(d)&&(w=!0,g=d);while(w);do w=!1,(d=b.nextSibling)&&!l.isBlock(d)&&(w=!0,b=d);while(w);return l.__wrapElements(i,s,g,b)}},{key:"wrap",value:function(u,i,s){var d=Se(i)?s.element(i):i;if(l.isNode(u)){if(!u.parentNode)throw ht("Element should be in DOM");u.parentNode.insertBefore(d,u),d.appendChild(u)}else{var g=u.extractContents();u.insertNode(d),d.appendChild(g)}return d}},{key:"unwrap",value:function(u){var i=u.parentNode;if(i){for(;u.firstChild;)i.insertBefore(u.firstChild,u);l.safeRemove(u)}}},{key:"between",value:function(u,i,s){for(var d=u;d&&d!==i&&(u===d||!s(d));){var g=d.firstChild||d.nextSibling;if(!g){for(;d&&!d.nextSibling;)d=d.parentNode;g=d==null?void 0:d.nextSibling}d=g}}},{key:"replace",value:function(u,i,s){var d,g=arguments.length>3&&arguments[3]!==void 0&&arguments[3],b=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(Mh(i)&&(dt(s,"Need create instance for new tag"),i=s.fromHTML(i)),Se(i)?(dt(s,"Need create instance for new tag"),d=s.element(i)):d=i,!b)for(;u.firstChild;)d.appendChild(u.firstChild);return g&&l.isElement(u)&&l.isElement(d)&&mr(u.attributes).forEach(function(w){d.setAttribute(w.name,w.value)}),u.parentNode&&u.parentNode.replaceChild(d,u),d}},{key:"isEmptyTextNode",value:function(u){return l.isText(u)&&(!u.nodeValue||u.nodeValue.replace(Ya(),"").trim().length===0)}},{key:"isEmptyContent",value:function(u){return l.each(u,function(i){return l.isEmptyTextNode(i)})}},{key:"isContentEditable",value:function(u,i){return l.isNode(u)&&!l.closest(u,function(s){return l.isElement(s)&&s.getAttribute("contenteditable")==="false"},i)}},{key:"isEmpty",value:function(u){var i,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R5;if(!u)return!0;i=Pe(s)?s:function(g){return s.has(g.nodeName.toLowerCase())};var d=function(g){return g.nodeValue==null||cr(g.nodeValue).length===0};return l.isText(u)?d(u):!(l.isElement(u)&&i(u))&&l.each(u,function(g){if(l.isText(g)&&!d(g)||l.isElement(g)&&i(g))return!1})}},{key:"isNode",value:function(u){return!!(u&&Se(u.nodeName)&&typeof u.nodeType=="number"&&u.childNodes&&Pe(u.appendChild))}},{key:"isCell",value:function(u){return l.isNode(u)&&(u.nodeName==="TD"||u.nodeName==="TH")}},{key:"isList",value:function(u){return l.isTag(u,Lu)}},{key:"isLeaf",value:function(u){return l.isTag(u,"li")}},{key:"isImage",value:function(u){return l.isNode(u)&&/^(img|svg|picture|canvas)$/i.test(u.nodeName)}},{key:"isBlock",value:function(u){return!zr(u)&&(u===void 0?"undefined":(i=u)&&typeof Symbol<"u"&&i.constructor===Symbol?"symbol":typeof i)=="object"&&l.isNode(u)&&_b.test(u.nodeName);var i}},{key:"isText",value:function(u){return!!(u&&u.nodeType===Node.TEXT_NODE)}},{key:"isComment",value:function(u){return!!(u&&u.nodeType===Node.COMMENT_NODE)}},{key:"isElement",value:function(u){var i;if(!l.isNode(u))return!1;var s=(i=u.ownerDocument)===null||i===void 0?void 0:i.defaultView;return!!(s&&u.nodeType===Node.ELEMENT_NODE)}},{key:"isFragment",value:function(u){var i;if(!l.isNode(u))return!1;var s=(i=u.ownerDocument)===null||i===void 0?void 0:i.defaultView;return!!(s&&u.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}},{key:"isHTMLElement",value:function(u){var i;if(!l.isNode(u))return!1;var s=(i=u.ownerDocument)===null||i===void 0?void 0:i.defaultView;return!!(s&&_P(u,s.HTMLElement))}},{key:"isInlineBlock",value:function(u){return l.isElement(u)&&!/^(BR|HR)$/i.test(u.tagName)&&["inline","inline-block"].indexOf(be(u,"display").toString())!==-1}},{key:"canSplitBlock",value:function(u){return!zr(u)&&l.isHTMLElement(u)&&l.isBlock(u)&&!/^(TD|TH|CAPTION|FORM)$/.test(u.nodeName)&&u.style!==void 0&&!/^(fixed|absolute)/i.test(u.style.position)}},{key:"last",value:function(u,i){var s=u==null?void 0:u.lastChild;if(!s)return null;do{if(i(s))return s;var d=s.lastChild;if(d||(d=s.previousSibling),!d&&s.parentNode!==u){do s=s.parentNode;while(s&&!(s!=null&&s.previousSibling)&&s.parentNode!==u);d=s==null?void 0:s.previousSibling}s=d}while(s);return null}},{key:"prev",value:function(u,i,s){var d=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3];return l.find(u,i,s,!1,d)}},{key:"next",value:function(u,i,s){var d=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3];return l.find(u,i,s,!0,d)}},{key:"prevWithClass",value:function(u,i){return l.prev(u,function(s){return l.isElement(s)&&s.classList.contains(i)},u.parentNode)}},{key:"nextWithClass",value:function(u,i){return l.next(u,function(s){return l.isElement(s)&&s.classList.contains(i)},u.parentNode)}},{key:"find",value:function(u,i,s){for(var d=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],g=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],b=this.nextGen(u,s,d,g),w=b.next();!w.done;){if(i(w.value))return w.value;w=b.next()}return null}},{key:"nextGen",value:function(u,i){var s,d,g,b,w,_=arguments;return kP(this,function(T){switch(T.label){case 0:s=!(_.length>2&&_[2]!==void 0)||_[2],d=!(_.length>3&&_[3]!==void 0)||_[3],g=[],b=u,T.label=1;case 1:for(w=s?b.nextSibling:b.previousSibling;w;)g.unshift(w),w=s?w.nextSibling:w.previousSibling;return[5,WX(this.runInStack(u,g,s,d))];case 2:T.sent(),b=b.parentNode,T.label=3;case 3:if(b&&b!==i)return[3,1];T.label=4;case 4:return[2,null]}})}},{key:"each",value:function(u,i){for(var s=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],d=this.eachGen(u,s),g=d.next();!g.done;){if(i(g.value)===!1)return!1;g=d.next()}return!0}},{key:"eachGen",value:function(u){var i=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return this.runInStack(u,[u],i)}},{key:"runInStack",value:function(u,i,s){var d,g,b,w=arguments;return kP(this,function(_){switch(_.label){case 0:d=!(w.length>3&&w[3]!==void 0)||w[3],_.label=1;case 1:if(!i.length)return[3,4];if(g=i.pop(),d)for(b=s?g.lastChild:g.firstChild;b;)i.push(b),b=s?b.previousSibling:b.nextSibling;return u===g?[3,3]:[4,g];case 2:_.sent(),_.label=3;case 3:return[3,1];case 4:return[2]}})}},{key:"findWithCurrent",value:function(u,i,s){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"nextSibling",g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"firstChild",b=u;do{if(i(b))return b||null;if(g&&b&&b[g]){var w=l.findWithCurrent(b[g],i,b,d,g);if(w)return w}for(;b&&!b[d]&&b!==s;)b=b.parentNode;b&&b[d]&&b!==s&&(b=b[d])}while(b&&b!==s);return null}},{key:"findSibling",value:function(u){for(var i=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(g){return!l.isEmptyTextNode(g)},d=l.sibling(u,i);d&&!s(d);)d=l.sibling(d,i);return d&&s(d)?d:null}},{key:"findNotEmptySibling",value:function(u,i){return l.findSibling(u,i,function(s){var d;return!l.isEmptyTextNode(s)&&!!(!l.isText(s)||!((d=s.nodeValue)===null||d===void 0)&&d.length&&cr(s.nodeValue))})}},{key:"findNotEmptyNeighbor",value:function(u,i,s){return Mr(i?l.prev:l.next,u,function(d){return!!(d&&(!(l.isText(d)||l.isComment(d))||cr((d==null?void 0:d.nodeValue)||"").length))},s)}},{key:"sibling",value:function(u,i){return i?u.previousSibling:u.nextSibling}},{key:"up",value:function(u,i,s){var d=arguments.length>3&&arguments[3]!==void 0&&arguments[3],g=u;if(!g)return null;do{if(i(g))return g;if(g===s||!g.parentNode)break;g=g.parentNode}while(g&&g!==s);return g===s&&d&&i(g)?g:null}},{key:"closest",value:function(u,i,s){var d,g=function(w){return w.toLowerCase()};if(Pe(i))d=i;else if(Nt(i)||V_(i)){var b=V_(i)?i:new Set(i.map(g));d=function(w){return!!(w&&b.has(g(w.nodeName)))}}else d=function(w){return!!(w&&g(i)===g(w.nodeName))};return l.up(u,d,s)}},{key:"furthest",value:function(u,i,s){for(var d=null,g=u==null?void 0:u.parentElement;g&&g!==s;)i(g)&&(d=g),g=g==null?void 0:g.parentElement;return d}},{key:"appendChildFirst",value:function(u,i){var s=u.firstChild;s?s!==i&&u.insertBefore(i,s):u.appendChild(i)}},{key:"after",value:function(u,i){var s=u.parentNode;s&&(s.lastChild===u?s.appendChild(i):s.insertBefore(i,u.nextSibling))}},{key:"before",value:function(u,i){var s=u.parentNode;s&&s.insertBefore(i,u)}},{key:"prepend",value:function(u,i){u.insertBefore(i,u.firstChild)}},{key:"append",value:function(u,i){var s=this;Nt(i)?i.forEach(function(d){s.append(u,d)}):u.appendChild(i)}},{key:"moveContent",value:function(u,i){var s=arguments.length>2&&arguments[2]!==void 0&&arguments[2],d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0},g=(u.ownerDocument||pr).createDocumentFragment();mr(u.childNodes).filter(function(b){return!!d(b)||(l.safeRemove(b),!1)}).forEach(function(b){g.appendChild(b)}),s&&i.firstChild?i.insertBefore(g,i.firstChild):i.appendChild(g)}},{key:"isOrContains",value:function(u,i){return u===i?!(arguments.length>2&&arguments[2]!==void 0&&arguments[2]):!!(i&&u&&this.up(i,function(s){return s===u},u,!0))}},{key:"safeRemove",value:function(){for(var u=arguments.length,i=new Array(u),s=0;s<u;s++)i[s]=arguments[s];i.forEach(function(d){return l.isNode(d)&&d.parentNode&&d.parentNode.removeChild(d)})}},{key:"safeInsertNode",value:function(u,i){u.collapsed||u.deleteContents();var s=l.isFragment(i)?i.lastChild:i;u.startContainer===u.endContainer&&u.collapsed&&l.isTag(u.startContainer,zi)?l.after(u.startContainer,i):(u.insertNode(i),s&&u.setStartBefore(s)),u.collapse(!0),[i.nextSibling,i.previousSibling].forEach(function(d){return l.isText(d)&&!d.nodeValue&&l.safeRemove(d)})}},{key:"hide",value:function(u){u&&(St(u,"__old_display",u.style.display),u.style.display="none")}},{key:"show",value:function(u){if(u){var i=St(u,"__old_display");u.style.display==="none"&&(u.style.display=i||"")}}},{key:"isTag",value:function(u,i){if(!this.isElement(u))return!1;var s=u.tagName.toLowerCase(),d=u.tagName.toUpperCase();if(_P(i,Set))return i.has(s)||i.has(d);if(Array.isArray(i))throw new TypeError("Dom.isTag does not support array");return s===i||d===i}},{key:"markTemporary",value:function(u,i){return i&&fe(u,i),fe(u,Sb,!0),u}},{key:"isTemporary",value:function(u){return!!l.isElement(u)&&(ni(u)||fe(u,Sb)==="true")}},{key:"replaceTemporaryFromString",value:function(u){return u.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}},{key:"temporaryList",value:function(u){return Ct("[".concat(Sb,"]"),u)}}],h&&YX(c,h),l}();function Zn(l,c){var h=Object.getOwnPropertyDescriptor(l,c);return!h||Pe(h.get)?null:h.value}function vr(l,c,h){var u=h.get;if(!u)throw ht("Getter property descriptor expected");h.get=function(){var i=u.call(this);return i&&i.noCache===!0||Object.defineProperty(this,c,{configurable:h.configurable,enumerable:h.enumerable,writable:!1,value:i}),i}}function Sk(l,c,h){var u=h.value;if(!Pe(u))throw ht("Handler must be a Function");var i=!0,s=new WeakMap;h.value=function(){for(var d=arguments.length,g=new Array(d),b=0;b<d;b++)g[b]=arguments[b];var w;if(i&&s.has(this.constructor))return(w=s.get(this.constructor))===null||w===void 0?void 0:w.cloneNode(!0);var _=u.apply(this,g);return i&&N.isElement(_)&&s.set(this.constructor,_),i?_.cloneNode(!0):_},l.hookStatus(Xt.ready,function(d){var g=lc(d)?d:d.jodit;i=!!g.options.cache})}function Ck(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function Mb(l){return Mb=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Mb(l)}function Ak(l,c){return Ak=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Ak(l,c)}function jP(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jP=function(){return!!l})()}function Dt(l){var c=function(h){function u(){for(var i=arguments.length,s=new Array(i),d=0;d<i;d++)s[d]=arguments[d];var g,b,w;return function(_,T){if(!(_ instanceof T))throw new TypeError("Cannot call a class as a function")}(this,u),(g=function(_,T,z){return T=Mb(T),function(L,D){return!D||((q=D)&&typeof Symbol<"u"&&q.constructor===Symbol?"symbol":typeof q)!="object"&&typeof D!="function"?function(Y){if(Y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y}(L):D;var q}(_,jP()?Reflect.construct(T,z||[],Mb(_).constructor):T.apply(_,z))}(this,u,function(_){return function(T){if(Array.isArray(T))return Ck(T)}(_)||function(T){if(typeof Symbol<"u"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}(_)||function(T,z){if(T){if(typeof T=="string")return Ck(T,z);var L=Object.prototype.toString.call(T).slice(8,-1);return L==="Object"&&T.constructor&&(L=T.constructor.name),L==="Map"||L==="Set"?Array.from(L):L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L)?Ck(T,z):void 0}}(_)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(s))).constructor===u&&(b=g,((w=u)!=null&&typeof Symbol<"u"&&w[Symbol.hasInstance]?w[Symbol.hasInstance](b):b instanceof w)||Object.setPrototypeOf(g,u.prototype),g.setStatus("ready")),g}return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Ak(i,s)}(u,h),u}(l);return c}function Ok(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function SP(l){return function(c){if(Array.isArray(c))return Ok(c)}(l)||function(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(l)||function(c,h){if(c){if(typeof c=="string")return Ok(c,h);var u=Object.prototype.toString.call(c).slice(8,-1);return u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set"?Array.from(u):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Ok(c,h):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CP(l,c){for(var h=arguments.length,u=new Array(h>2?h-2:0),i=2;i<h;i++)u[i-2]=arguments[i];var s,d;return c?(s=Ar).setTimeout.apply(s,[l,c].concat(SP(u))):((d=l).call.apply(d,[null].concat(SP(u))),0)}function Zh(l){Ar.clearTimeout(l)}function Ek(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function XX(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function GX(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function da(l){return function(c){if(Array.isArray(c))return Ek(c)}(l)||function(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(l)||function(c,h){if(c){if(typeof c=="string")return Ek(c,h);var u=Object.prototype.toString.call(c).slice(8,-1);return u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set"?Array.from(u):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Ek(c,h):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Tk=function(){function l(){var u,i,s,d,g,b=this;(function(w,_){if(!(w instanceof _))throw new TypeError("Cannot call a class as a function")})(this,l),this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=(u=queueMicrotask==null?void 0:queueMicrotask.bind(window))!==null&&u!==void 0?u:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=(s=(i=window.requestIdleCallback)===null||i===void 0?void 0:i.bind(window))!==null&&s!==void 0?s:function(w,_){var T,z=Date.now();return b.setTimeout(function(){w({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-z))}})},(T=_==null?void 0:_.timeout)!==null&&T!==void 0?T:1)},this.__cancelIdleCallbackNative=(g=(d=window.cancelIdleCallback)===null||d===void 0?void 0:d.bind(window))!==null&&g!==void 0?g:function(w){b.clearTimeout(w)},this.isDestructed=!1}var c,h;return c=l,h=[{key:"delay",value:function(u){var i=this;return this.promise(function(s){return i.setTimeout(s,u)})}},{key:"setTimeout",value:function(u,i){for(var s=arguments.length,d=new Array(s>2?s-2:0),g=2;g<s;g++)d[g-2]=arguments[g];if(this.isDestructed)return 0;var b={};zr(i)&&(i=0),kn(i)||(i=(b=i).timeout||0),b.label&&this.clearLabel(b.label);var w=CP.apply(void 0,[u,i].concat(da(d))),_=b.label||w;return this.timers.set(_,w),this.__callbacks.set(_,u),w}},{key:"updateTimeout",value:function(u,i){if(dt(u&&this.timers.has(u),"Label does not exist"),!u||!this.timers.has(u))return null;var s=this.__callbacks.get(u);return dt(Pe(s),"Callback is not a function"),this.setTimeout(s,{label:u,timeout:i})}},{key:"clearLabel",value:function(u){u&&this.timers.has(u)&&(Zh(this.timers.get(u)),this.timers.delete(u),this.__callbacks.delete(u))}},{key:"clearTimeout",value:function(u){if(Se(u))return this.clearLabel(u);Zh(u),this.timers.delete(u),this.__callbacks.delete(u)}},{key:"debounce",value:function(u,i){var s=arguments.length>2&&arguments[2]!==void 0&&arguments[2],d=this,g=0,b=!1,w=[],_=function(){for(var z=arguments.length,L=new Array(z),D=0;D<z;D++)L[D]=arguments[D];if(!b){g=0;var q=u.apply(void 0,da(L));if(b=!0,w.length){var Y=function(){w.forEach(function(X){return X()}),w.length=0};Ih(q)?q.finally(Y):Y()}}},T=function(){for(var z=arguments.length,L=new Array(z),D=0;D<z;D++)L[D]=arguments[D];b=!1,i?(!g&&s&&_.apply(void 0,da(L)),Zh(g),g=d.setTimeout(function(){return _.apply(void 0,da(L))},Pe(i)?i():i),d.timers.set(u,g)):_.apply(void 0,da(L))};return tr(i)&&i.promisify?function(){for(var z=arguments.length,L=new Array(z),D=0;D<z;D++)L[D]=arguments[D];var q=d.promise(function(Y){w.push(Y)}).catch(function(Y){if(Xs(Y))return null;throw Y});return T.apply(void 0,da(L)),q}:T}},{key:"microDebounce",value:function(u){var i,s=arguments.length>1&&arguments[1]!==void 0&&arguments[1],d=this,g=!1,b=!0;return function(){for(var w=arguments.length,_=new Array(w),T=0;T<w;T++)_[T]=arguments[T];i=_,g?b=!0:(b=!0,s&&(b=!1,u.apply(void 0,da(i))),g=!0,d.__queueMicrotaskNative(function(){g=!1,d.isDestructed||b&&u.apply(void 0,da(i))}))}}},{key:"throttle",value:function(u,i){var s,d,g,b=this,w=null;return function(){for(var _=arguments.length,T=new Array(_),z=0;z<_;z++)T[z]=arguments[z];s=!0,g=T,i?w||(d=function(){s?(u.apply(void 0,da(g)),s=!1,w=b.setTimeout(d,Pe(i)?i():i),b.timers.set(d,w)):w=null})():u.apply(void 0,da(g))}}},{key:"promise",value:function(u){var i=this,s=function(){},d=new Promise(function(g,b){s=function(){return b(qh("Abort async"))},i.promisesRejections.add(s),u(g,b)});return d.finally||typeof process>"u",d.finally(function(){i.promisesRejections.delete(s)}).catch(function(){return null}),d.rejectCallback=s,d}},{key:"promiseState",value:function(u){var i=this;if(u.status)return u.status;if(!Promise.race)return new Promise(function(d){u.then(function(g){return d("fulfilled"),g},function(g){throw d("rejected"),g}),i.setTimeout(function(){d("pending")},100)});var s={};return Promise.race([u,s]).then(function(d){return d===s?"pending":"fulfilled"},function(){return"rejected"})}},{key:"requestIdleCallback",value:function(u){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{timeout:100},s=this.__requestIdleCallbackNative(u,i);return this.__requestsIdle.add(s),s}},{key:"requestIdlePromise",value:function(u){var i=this;return this.promise(function(s){var d=i.requestIdleCallback(function(){return s(d)},u)})}},{key:"schedulerPostTask",value:function(u){var i=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{delay:0,priority:"user-visible"},d=new AbortController;if(s.signal&&s.signal.addEventListener("abort",function(){return d.abort()}),this.__controllers.add(d),globalThis.scheduler!==void 0){var g=globalThis.scheduler.postTask(u,function(b,w){return w=w??{},Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(w)):function(_){var T=Object.keys(_);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(_);T.push.apply(T,z)}return T}(Object(w)).forEach(function(_){Object.defineProperty(b,_,Object.getOwnPropertyDescriptor(w,_))}),b}(function(b){for(var w=1;w<arguments.length;w++){var _=arguments[w]!=null?arguments[w]:{},T=Object.keys(_);typeof Object.getOwnPropertySymbols=="function"&&(T=T.concat(Object.getOwnPropertySymbols(_).filter(function(z){return Object.getOwnPropertyDescriptor(_,z).enumerable}))),T.forEach(function(z){GX(b,z,_[z])})}return b}({},s),{signal:d.signal}));return g.finally(function(){i.__controllers.delete(d)}).catch(function(){return null}),g}return this.promise(function(b,w){var _=i.setTimeout(function(){try{b(u())}catch(T){w(T)}i.__controllers.delete(d)},s.delay||1);d.signal.addEventListener("abort",function(){i.clearTimeout(_),i.__controllers.delete(d),w(qh())})})}},{key:"schedulerYield",value:function(){return this.schedulerPostTask(function(){},{priority:"user-visible"})}},{key:"cancelIdleCallback",value:function(u){return this.__requestsIdle.delete(u),this.__cancelIdleCallbackNative(u)}},{key:"requestAnimationFrame",value:function(u){var i=requestAnimationFrame(u);return this.__requestsRaf.add(i),i}},{key:"cancelAnimationFrame",value:function(u){this.__requestsRaf.delete(u),cancelAnimationFrame(u)}},{key:"clear",value:function(){var u=this;this.__requestsIdle.forEach(function(i){return u.cancelIdleCallback(i)}),this.__requestsRaf.forEach(function(i){return u.cancelAnimationFrame(i)}),this.__controllers.forEach(function(i){return i.abort()}),this.timers.forEach(function(i){return Zh(u.timers.get(i))}),this.timers.clear(),this.promisesRejections.forEach(function(i){return i()}),this.promisesRejections.clear()}},{key:"destruct",value:function(){this.clear(),this.isDestructed=!0}}],h&&XX(c.prototype,h),l}(),Kh=function(l){return Nt(l)?l:[l]};function Dn(l){return Array.isArray(l)?l:l.split(/[,\s]+/)}function AP(l){return l.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,function(c,h,u){switch(u.toLowerCase()){case"pt":return(1.328*parseFloat(h)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(h)).toFixed(0)+"px"}return c})}function OP(l){if(l.indexOf("<html ")===-1)return l;l=(l=l.substring(l.indexOf("<html "),l.length)).substring(0,l.lastIndexOf("</html>")+7);var c=pr.createElement("iframe");c.style.display="none",pr.body.appendChild(c);var h="";try{var u=c.contentDocument||(c.contentWindow?c.contentWindow.document:null);if(u){u.open(),u.write(l),u.close();try{for(var i=function(d){for(var g=function(_){if(b[_].selectorText==="")return"continue";Ct(b[_].selectorText,u.body).forEach(function(T){T.style.cssText=AP(b[_].style.cssText+";"+T.style.cssText)})},b=u.styleSheets[d].cssRules,w=0;w<b.length;w+=1)g(w)},s=0;s<u.styleSheets.length;s+=1)i(s)}catch{}N.each(u.body,function(d){if(N.isElement(d)){var g=d,b=g.getAttribute("style");b&&(g.style.cssText=AP(b)),g.hasAttribute("style")&&!g.getAttribute("style")&&g.removeAttribute("style")}}),h=u.firstChild?cr(u.body.innerHTML):""}}catch{}finally{N.safeRemove(c)}return h&&(l=h),cr(l.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}function Ib(l){l.indexOf("<html ")!==-1&&(l=(l=l.substring(l.indexOf("<html "),l.length)).substring(0,l.lastIndexOf("</html>")+7));var c="";try{var h=pr.createElement("div");h.innerHTML=l;var u=[];h.firstChild&&N.each(h,function(i){if(i)switch(i.nodeType){case Node.ELEMENT_NODE:switch(i.nodeName){case"STYLE":case"LINK":case"META":u.push(i);break;case"W:SDT":case"W:SDTPR":case"FONT":N.unwrap(i);break;default:mr(i.attributes).forEach(function(s){["src","href","rel","content"].indexOf(s.name.toLowerCase())===-1&&i.removeAttribute(s.name)})}break;case Node.TEXT_NODE:break;default:u.push(i)}}),N.safeRemove.apply(null,u),c=h.innerHTML}catch{}return c&&(l=c),(l=l.split(/(\n)/).filter(cr).join(`
`)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}function EP(l){var c=pr.createElement("div");return c.textContent=l,c.innerHTML}function TP(l){return l.replace(/\r\n|\r|\n/g,"<br/>")}function Rk(l,c){(N.isElement(l)||N.isFragment(l))&&(c.removeOnError&&(Vu(l),Ct("[onerror]",l).forEach(function(h){return Vu(h,c)})),c.safeJavaScriptLink&&(Vu(l),Ct('a[href^="javascript"]',l).forEach(function(h){return Vu(h,c)})))}function Vu(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{safeJavaScriptLink:!0,removeOnError:!0},h=c.safeJavaScriptLink,u=c.removeOnError;if(!N.isElement(l))return!1;var i=!1;u&&l.hasAttribute("onerror")&&(fe(l,"onerror",null),i=!0);var s=l.getAttribute("href");return h&&s&&s.trim().indexOf("javascript")===0&&(fe(l,"href",location.protocol+"//"+s),i=!0),i}var $X=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),ZX=new Set(["script","style"]),KX=new Set(["br","hr","input"]);function qu(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=c.createElement("div");return Se(l)?u.innerHTML=l:u.appendChild(l),Ct("*",u).forEach(function(i){var s=i.parentNode;if(s){if(h&&N.isTag(i,h)){var d=i.nodeName.toLowerCase(),g=N.isTag(i,KX)?"%%%jodit-single-".concat(d,"%%%"):"%%%jodit-".concat(d,"%%%").concat(qu(i.innerHTML,c,h),"%%%/jodit-").concat(d,"%%%");return N.before(i,c.createTextNode(g)),void N.safeRemove(i)}if(N.isTag(i,ZX))N.safeRemove(i);else if(N.isTag(i,$X)){var b=i.nextSibling;N.isText(b)&&/^\s/.test(b.nodeValue||"")||b&&s.insertBefore(c.createTextNode(" "),b)}}}),cr(u.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,function(i,s,d,g){return"<".concat(s?"/":"").concat(g,">")})}var Pk=function(l){var c=["#"],h=$_(l);if(!h)return!1;if((h=(h=cr(h.toUpperCase())).substring(1)).length===3){for(var u=0;u<3;u+=1)c.push(h[u]),c.push(h[u]);return c.join("")}return h.length>6&&(h=h.slice(0,6)),"#"+h};function zk(l){var c={},h={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return l.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(function(u){return cr(u.toLowerCase())}).map(function(u){return H5[u]||u}).sort(function(u,i){return h[u]&&!h[i]?-1:!h[u]&&h[i]?1:h[u]&&h[i]?h[u]-h[i]:u>i?1:-1}).filter(function(u){return!c[u]&&u!==""&&(c[u]=!0)}).join("+")}var RP=function(l){for(var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8,h=[];l.length;)h.push(l.substr(0,c)),l=l.substr(c);return h[1]=h[1].replace(/./g,"*"),h[2]=h[2].replace(/./g,"*"),h.join("-")},Yu=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];return c.filter(function(u){return cr(u).length}).map(function(u,i){return u=u.replace(/([^:])[\\/]+/g,"$1/"),i&&(u=u.replace(/^\//,"")),i!==c.length-1&&(u=u.replace(/\/$/,"")),u}).join("/")},PP=function(l){return l.split("/").reduce(function(c,h){switch(h){case"":case".":break;case"..":c.pop();break;default:c.push(h)}return c},[]).join("/")+(l.endsWith("/")?"/":"")},zP=function(l,c){return/^[0-9]+$/.test(l.toString())?l+c:l.toString()},Mk=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];return c.filter(function(u){return u.length}).map(function(u){return u.replace(/\/$/,"")}).join("/").replace(/([^:])[\\/]+/g,"$1/")},MP=function(l,c){var h=function(i){return parseInt(i,10)},u=c.getComputedStyle(l);return l.offsetWidth-h(u.getPropertyValue("padding-left")||"0")-h(u.getPropertyValue("padding-right")||"0")};function Ik(l){if(!l)return null;var c=N.isHTMLElement(l),h=c&&be(l,"overflowY");return c&&h!=="visible"&&h!=="hidden"&&l.scrollHeight>=l.clientHeight?l:Ik(l.parentNode)||pr.scrollingElement||pr.body}var Lk=function(l,c){var h=c.getComputedStyle(l);return l.clientWidth-(parseFloat(h.paddingLeft||"0")+parseFloat(h.paddingRight||"0"))};function Wu(l){return Se(l)||Nt(l)?l.length:tr(l)?Object.keys(l).length:0}var fa=function(l,c,h){var u,i=arguments.length>3&&arguments[3]!==void 0&&arguments[3];try{u=l.getBoundingClientRect()}catch{u={top:0,bottom:0,left:0,right:0,width:0,height:0}}var s,d,g=h.body,b=h.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},w=h.defaultView||h.parentWindow,_=w.pageYOffset||b.scrollTop||g.scrollTop,T=w.pageXOffset||b.scrollLeft||g.scrollLeft,z=b.clientTop||g.clientTop||0,L=b.clientLeft||g.clientLeft||0,D=c.iframe;if(!i&&c&&c.options&&c.o.iframe&&D){var q=fa(D,c,c.od,!0),Y=q.top,X=q.left;s=u.top+Y,d=u.left+X}else s=u.top+_-z,d=u.left+T-L;return{top:Math.round(s),left:Math.round(d),width:u.width,height:u.height}};function Bn(l,c){var h,u,i=arguments.length>2&&arguments[2]!==void 0&&arguments[2],s=l.getBoundingClientRect(),d=s.left,g=s.top;if(_n(c)&&c.iframe&&c.ed.body.contains(l)&&!i){var b=Bn(c.iframe,c,!0);d+=b.left,g+=b.top}return{left:Math.round(d),top:Math.round(g),width:Math.round((h=l.offsetWidth)!==null&&h!==void 0?h:s.width),height:Math.round((u=l.offsetHeight)!==null&&u!==void 0?u:s.height)}}function IP(l,c){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,u=0,i=0,s=-1,d=0,g=0;for(i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;u<l.length&&i<c.length;)l[u].toLowerCase()===c[i].toLowerCase()?(u++,d++,g=0,s===-1&&(s=i)):u>0&&(g>=h&&c[i]!==dn?(u=0,s=-1,d=0,g=0,i--):(g++,d++)),i++;return u===l.length?[s,d]:[-1,0]}function Lb(l){return l.length?l[0].toUpperCase()+l.substring(1):""}var LP=function(l,c){if(!c||!c.length)return l;for(var h=/%([sd])/g,u=h.exec(l),i=l,s=0;u&&c[s]!==void 0;)i=i.replace(u[0],c[s].toString()),s+=1,u=h.exec(l);return i};function NP(l,c,h){if(!Se(l))throw ht("i18n: Need string in first argument");if(!l.length)return l;var u=!!(h!=null&&h.debugLanguage),i={},s=function(T){return c&&c.length?LP(T,c):T},d=Vh(de.defaultOptions.language,de.defaultOptions.language),g=Vh(h==null?void 0:h.language,d),b=function(T){if(T){if(Se(T[l]))return s(T[l]);var z=l.toLowerCase();if(Se(T[z]))return s(T[z]);var L=Lb(l);return Se(T[L])?s(T[L]):void 0}};uo[g]!==void 0?i=uo[g]:u||(i=uo[d]!==void 0?uo[d]:uo.en);var w=h==null?void 0:h.i18n;if(w&&w[g]){var _=b(w[g]);if(_)return _}return b(i)||(!u&&uo.en&&Se(uo.en[l])&&uo.en[l]?s(uo.en[l]):u?"{"+l+"}":s(l))}function Jh(l){return oi(l).toLowerCase()}function DP(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}var BP=new Set;function Nk(){var l;return l=function(c,h){var u;return function(i,s){var d,g,b,w,_={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return w={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function T(z){return function(L){return function(D){if(d)throw new TypeError("Generator is already executing.");for(;_;)try{if(d=1,g&&(b=2&D[0]?g.return:D[0]?g.throw||((b=g.return)&&b.call(g),0):g.next)&&!(b=b.call(g,D[1])).done)return b;switch(g=0,b&&(D=[2&D[0],b.value]),D[0]){case 0:case 1:b=D;break;case 4:return _.label++,{value:D[1],done:!1};case 5:_.label++,g=D[1],D=[0];continue;case 7:D=_.ops.pop(),_.trys.pop();continue;default:if(!((b=(b=_.trys).length>0&&b[b.length-1])||D[0]!==6&&D[0]!==2)){_=0;continue}if(D[0]===3&&(!b||D[1]>b[0]&&D[1]<b[3])){_.label=D[1];break}if(D[0]===6&&_.label<b[1]){_.label=b[1],b=D;break}if(b&&_.label<b[2]){_.label=b[2],_.ops.push(D);break}b[2]&&_.ops.pop(),_.trys.pop();continue}D=s.call(i,_)}catch(q){D=[6,q],g=0}finally{d=b=0}if(5&D[0])throw D[1];return{value:D[0]?D[1]:void 0,done:!0}}([z,L])}}}(this,function(i){return u=FP(c,h,!1),BP.has(u)?[2]:(BP.add(u),[2,tk(c,u)])})},Nk=function(){var c=this,h=arguments;return new Promise(function(u,i){var s=l.apply(c,h);function d(b){DP(s,u,i,d,g,"next",b)}function g(b){DP(s,u,i,d,g,"throw",b)}d(void 0)})},Nk.apply(this,arguments)}function FP(l,c,h){c=oi(c);var u=l.minified?".min":"";return l.basePath+"plugins/"+c+"/"+c+u+"."+(h?"js":"css")}function HP(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function JX(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var UP=function(){function l(){(function(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")})(this,l),this.__items=new Map}var c,h;return c=l,h=[{key:"size",get:function(){return this.__items.size}},{key:"add",value:function(u,i){this.__items.set(Jh(u),i),$a.fire("plugin:".concat(u,":ready"))}},{key:"get",value:function(u){return this.__items.get(Jh(u))}},{key:"remove",value:function(u){this.__items.delete(Jh(u))}},{key:"__getFullPluginsList",value:function(u){var i=[];return this.__items.forEach(function(s,d){u&&!u.has(d)||i.push([d,s])}),i}},{key:"__init",value:function(u){var i=this,s=function(L){return{extraList:L.o.extraPlugins.map(function(D){return Se(D)?{name:D}:D}),disableList:new Set(Dn(L.o.disablePlugins).map(Jh)),filter:L.o.safeMode?new Set(L.o.safePluginsList):null}}(u),d=s.extraList,g=s.disableList,b=s.filter,w=new Map,_={},T=new Set;u.__plugins=_;var z=function(){if(!u.isInDestruct){var L=!1;i.__getFullPluginsList(b).forEach(function(D){var q=function(ee,ce){return function(ge){if(Array.isArray(ge))return ge}(ee)||function(ge,ye){var Me=ge==null?null:typeof Symbol<"u"&&ge[Symbol.iterator]||ge["@@iterator"];if(Me!=null){var Ie,st,Ft=[],it=!0,Qe=!1;try{for(Me=Me.call(ge);!(it=(Ie=Me.next()).done)&&(Ft.push(Ie.value),!ye||Ft.length!==ye);it=!0);}catch(Or){Qe=!0,st=Or}finally{try{it||Me.return==null||Me.return()}finally{if(Qe)throw st}}return Ft}}(ee,ce)||function(ge,ye){if(ge){if(typeof ge=="string")return HP(ge,ye);var Me=Object.prototype.toString.call(ge).slice(8,-1);return Me==="Object"&&ge.constructor&&(Me=ge.constructor.name),Me==="Map"||Me==="Set"?Array.from(Me):Me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Me)?HP(ge,ye):void 0}}(ee,ce)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(D,2),Y=q[0],X=q[1];if(!g.has(Y)&&!w.has(Y)){var J=X==null?void 0:X.requires;if(J&&Nt(J)&&J.length){if(J.some(function(ee){return g.has(ee)}))return;if(!J.every(function(ee){return w.has(ee)}))return void T.add(Y)}L=!0;var $=function(ee,ce){try{try{return Pe(ce)?new ce(ee):ce}catch{if(Pe(ce)&&!ce.prototype)return ce(ee)}}catch(ge){console.error(ge)}return null}(u,X);if(!$)return w.set(Y,null),void T.delete(Y);(function(ee,ce,ge,ye,Me,Ie){if(Q5(ye))try{ye.init(ee)}catch(st){console.error(st)}Me.set(ce,ye),Ie.delete(ce),ye.hasStyle&&function(st,Ft){return Nk.apply(this,arguments)}(ee,ce).catch(function(st){}),ye.styles&&(dc(ee,ce,"style").innerHTML=ye.styles)})(u,Y,0,$,w,T),_[Y]=$}}),L&&(u.e.fire("updatePlugins"),z())}};d&&d.length&&function(L,D,q,Y){try{var X=q.filter(function(J){return!L.has(Jh(J.name))});X.length&&function(J,$,ee){$.map(function(ce){var ge=ce.url||FP(J,ce.name,!0);return ek(J,ge).then(ee).catch(function(){return null})})}(D,X,Y)}catch{}}(this.__items,u,d,z),z(),function(L,D){L.e.on("beforeDestruct",function(){Object.keys(D).forEach(function(q){var Y=D[q];U_(Y)&&Y.destruct(L),delete D[q]}),delete L.__plugins})}(u,_)}},{key:"wait",value:function(u){var i=this;return new Promise(function(s){if(i.get(u))return s();var d=function(){s(),$a.off("plugin:".concat(u,":ready"),d)};$a.on("plugin:".concat(u,":ready"),d)})}}],h&&JX(c.prototype,h),l}();function QX(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var Xu="JoditEventDefaultNamespace",VP=function(){function l(){(function(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")})(this,l),this.__store=new Map}var c,h;return c=l,h=[{key:"get",value:function(u,i){if(this.__store.has(i)){var s=this.__store.get(i);return dt(s,"-"),s[u]}}},{key:"indexOf",value:function(u,i,s){var d=this.get(u,i);if(d){for(var g=0;g<d.length;g+=1)if(d[g].originalCallback===s)return g}return!1}},{key:"namespaces",value:function(){var u=arguments.length>0&&arguments[0]!==void 0&&arguments[0],i=mr(this.__store.keys());return u?i.filter(function(s){return s!==Xu}):i}},{key:"events",value:function(u){var i=this.__store.get(u);return i?Object.keys(i):[]}},{key:"set",value:function(u,i,s){var d=arguments.length>3&&arguments[3]!==void 0&&arguments[3],g=this.__store.get(i);g||(g={},this.__store.set(i,g)),g[u]===void 0&&(g[u]=[]),d?g[u].unshift(s):g[u].push(s)}},{key:"clear",value:function(){this.__store.clear()}},{key:"clearEvents",value:function(u,i){var s=this.__store.get(u);s&&s[i]&&(delete s[i],Object.keys(s).length||this.__store.delete(u))}},{key:"isEmpty",value:function(){return this.__store.size===0}}],h&&QX(c.prototype,h),l}();function Dk(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function eG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Gu(l){return function(c){if(Array.isArray(c))return Dk(c)}(l)||function(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(l)||function(c,h){if(c){if(typeof c=="string")return Dk(c,h);var u=Object.prototype.toString.call(c).slice(8,-1);return u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set"?Array.from(u):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Dk(c,h):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Bk=function(){function l(u){var i=this;(function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")})(this,l),this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=pr,this.__prepareEvent=function(s){s.cancelBubble||(s.composed&&Pe(s.composedPath)&&s.composedPath()[0]&&Object.defineProperty(s,"target",{value:s.composedPath()[0],configurable:!0,enumerable:!0}),s.type.match(/^touch/)&&s.changedTouches&&s.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(function(d){Object.defineProperty(s,d,{value:s.changedTouches[0][d],configurable:!0,enumerable:!0})}),s.originalEvent||(s.originalEvent=s),s.type==="paste"&&s.clipboardData===void 0&&i.__doc.defaultView.clipboardData&&Object.defineProperty(s,"clipboardData",{get:function(){return i.__doc.defaultView.clipboardData},configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,u&&(this.__doc=u),this.__key+=new Date().getTime()}var c,h;return c=l,h=[{key:"mute",value:function(u){return this.__mutedEvents.add(u??"*"),this}},{key:"isMuted",value:function(u){return!(!u||!this.__mutedEvents.has(u))||this.__mutedEvents.has("*")}},{key:"unmute",value:function(u){return this.__mutedEvents.delete(u??"*"),this}},{key:"__eachEvent",value:function(u,i){var s=this;Dn(u).map(function(d){return d.trim()}).forEach(function(d){var g=d.split("."),b=g[1]||Xu;i.call(s,g[0],b)})}},{key:"__getStore",value:function(u){if(!u)throw ht("Need subject");if(u[this.__key]===void 0){var i=new VP;Object.defineProperty(u,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:i})}return u[this.__key]}},{key:"__removeStoreFromSubject",value:function(u){u[this.__key]!==void 0&&Object.defineProperty(u,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}},{key:"__triggerNativeEvent",value:function(u,i){var s=this.__doc.createEvent("HTMLEvents");Se(i)?s.initEvent(i,!0,!0):(s.initEvent(i.type,i.bubbles,i.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(function(d){Object.defineProperty(s,d,{value:i[d],enumerable:!0})}),Object.defineProperty(s,"originalEvent",{value:i,enumerable:!0})),u.dispatchEvent(s)}},{key:"current",get:function(){return this.currents[this.currents.length-1]}},{key:"on",value:function(u,i,s,d){var g,b,w,_,T=this;if(Se(u)||Hu(u)?(g=this,b=u,w=i,_=s):(g=u,b=i,w=s,_=d),!Se(b)&&!Hu(b)||b.length===0)throw ht("Need events names");if(!Pe(w))throw ht("Need event handler");if(Nt(g))return g.forEach(function(Y){T.on(Y,b,w,_)}),this;var z=g,L=this.__getStore(z),D=this,q=function(Y){for(var X=arguments.length,J=new Array(X>1?X-1:0),$=1;$<X;$++)J[$-1]=arguments[$];var ee;if(!D.isMuted(Y))return w&&(ee=w).call.apply(ee,[this].concat(Gu(J)))};return uc(z)&&(q=function(Y){if(!D.isMuted(Y.type))return D.__prepareEvent(Y),w&&w.call(this,Y)===!1?(Y.preventDefault(),Y.stopImmediatePropagation(),!1):void 0}),this.__eachEvent(b,function(Y,X){var J,$;if(Y.length===0)throw ht("Need event name");if(L.indexOf(Y,X,w)===!1){var ee={event:Y,originalCallback:w,syntheticCallback:q};if(L.set(Y,X,ee,_==null?void 0:_.top),uc(z)){var ce=Y5.has(Y)?{passive:!0,capture:(J=_==null?void 0:_.capture)!==null&&J!==void 0&&J}:($=_==null?void 0:_.capture)!==null&&$!==void 0&&$;q.options=ce,z.addEventListener(Y,q,ce),T.__memoryDOMSubjectToHandler(z,q)}}}),this}},{key:"__memoryDOMSubjectToHandler",value:function(u,i){var s=this.__domEventsMap.get(u)||new Set;s.add(i),this.__domEventsMap.set(u,s)}},{key:"__unmemoryDOMSubjectToHandler",value:function(u,i){var s=this.__domEventsMap,d=s.get(u)||new Set;d.delete(i),d.size?s.set(u,d):s.delete(u)}},{key:"one",value:function(u,i,s,d){var g,b,w,_,T=this;Se(u)||Hu(u)?(g=this,b=u,w=i,_=s):(g=u,b=i,w=s,_=d);var z=function(){for(var L=arguments.length,D=new Array(L),q=0;q<L;q++)D[q]=arguments[q];return T.off(g,b,z),w.apply(void 0,Gu(D))};return this.on(g,b,z,_),this}},{key:"off",value:function(u,i,s){var d,g,b,w=this;if(Se(u)||Hu(u)?(d=this,g=u,b=i):(d=u,g=i,b=s),Nt(d))return d.forEach(function(D){w.off(D,g,b)}),this;var _=d,T=this.__getStore(_);if(!Se(g)&&!Hu(g)||g.length===0)return T.namespaces().forEach(function(D){w.off(_,"."+D)}),this.__removeStoreFromSubject(_),this;var z=function(D){var q;uc(_)&&(_.removeEventListener(D.event,D.syntheticCallback,(q=D.syntheticCallback.options)!==null&&q!==void 0&&q),w.__unmemoryDOMSubjectToHandler(_,D.syntheticCallback))},L=function(D,q){if(D!==""){var Y=T.get(D,q);if(Y&&Y.length)if(Pe(b)){var X=T.indexOf(D,q,b);X!==!1&&(z(Y[X]),Y.splice(X,1),Y.length||T.clearEvents(q,D))}else Y.forEach(z),Y.length=0,T.clearEvents(q,D)}else T.events(q).forEach(function(J){J!==""&&L(J,q)})};return this.__eachEvent(g,function(D,q){q===Xu?T.namespaces().forEach(function(Y){L(D,Y)}):L(D,q)}),T.isEmpty()&&this.__removeStoreFromSubject(_),this}},{key:"stopPropagation",value:function(u,i){var s=this,d=Se(u)?this:u,g=Se(u)?u:i;if(typeof g!="string")throw ht("Need event names");var b=this.__getStore(d);this.__eachEvent(g,function(w,_){var T=b.get(w,_);T&&s.__stopped.push(T),_===Xu&&b.namespaces(!0).forEach(function(z){return s.stopPropagation(d,w+"."+z)})})}},{key:"__removeStop",value:function(u){if(u){var i=this.__stopped.indexOf(u);i!==-1&&this.__stopped.splice(0,i+1)}}},{key:"__isStopped",value:function(u){return u!==void 0&&this.__stopped.indexOf(u)!==-1}},{key:"fire",value:function(u,i){for(var s,d,g=this,b=arguments.length,w=new Array(b>2?b-2:0),_=2;_<b;_++)w[_-2]=arguments[_];var T=Se(u)?this:u,z=Se(u)?u:i,L=Se(u)?[i].concat(Gu(w)):w;if(!uc(T)&&!Se(z))throw ht("Need events names");var D=this.__getStore(T);return!Se(z)&&uc(T)?this.__triggerNativeEvent(T,i):this.__eachEvent(z,function(q,Y){if(uc(T))g.__triggerNativeEvent(T,q);else{var X=D.get(q,Y);if(X)try{Gu(X).every(function(J){var $;return!g.__isStopped(X)&&(g.currents.push(q),d=($=J.syntheticCallback).call.apply($,[T,q].concat(Gu(L))),g.currents.pop(),d!==void 0&&(s=d),!0)})}finally{g.__removeStop(X)}Y!==Xu||uc(T)||D.namespaces().filter(function(J){return J!==Y}).forEach(function(J){var $=g.fire.apply(g,[T,q+"."+J].concat(Gu(L)));$!==void 0&&(s=$)})}}),s}},{key:"destruct",value:function(){var u=this;this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach(function(i,s){u.off(s)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}}],h&&eG(c.prototype,h),l}();function uc(l){return Pe(l.addEventListener)}function Fk(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function qP(l,c){return function(h){if(Array.isArray(h))return h}(l)||function(h,u){var i=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(i!=null){var s,d,g=[],b=!0,w=!1;try{for(i=i.call(h);!(b=(s=i.next()).done)&&(g.push(s.value),!u||g.length!==u);b=!0);}catch(_){w=!0,d=_}finally{try{b||i.return==null||i.return()}finally{if(w)throw d}}return g}}(l,c)||YP(l,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YP(l,c){if(l){if(typeof l=="string")return Fk(l,c);var h=Object.prototype.toString.call(l).slice(8,-1);return h==="Object"&&l.constructor&&(h=l.constructor.name),h==="Map"||h==="Set"?Array.from(h):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?Fk(l,c):void 0}}function Hk(l,c){var h;do h=Object.getOwnPropertyDescriptor(l,c),l=Object.getPrototypeOf(l);while(!h&&l);return h}function _e(l,c){return function(h,u){var i;if(!Pe(h[u]))throw ht("Handler must be a Function");var s=(i=c==null?void 0:c.immediately)===null||i===void 0||i,d=c==null?void 0:c.context,g=function(b){var w=lc(b)?b:b.jodit,_=function(T){for(var z=arguments.length,L=new Array(z>1?z-1:0),D=1;D<z;D++)L[D-1]=arguments[D];var q;if(!b.isInDestruct)return(q=b)[u].apply(q,[T].concat(function(Y){return function(X){if(Array.isArray(X))return Fk(X)}(Y)||function(X){if(typeof Symbol<"u"&&X[Symbol.iterator]!=null||X["@@iterator"]!=null)return Array.from(X)}(Y)||YP(Y)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(L)))};s||(_=b.async.microDebounce(_,!0)),Dn(l).forEach(function(T){if(/:/.test(T)){var z=qP(T.split(":"),2),L=z[0],D=z[1],q=d;return L.length&&(q=b.get(L)),Pe(q)&&(q=q(b)),w.events.on(q||b,D,_),q||w.events.on(D,_),void b.hookStatus("beforeDestruct",function(){w.events.off(q||b,D,_).off(D,_)})}var Y=T.split("."),X=qP(Y,1)[0],J=Y.slice(1),$=b[X];tr($)&&Nb($).on("change.".concat(J.join(".")),_);var ee=Hk(h,X);Object.defineProperty(b,X,{configurable:!0,set:function(ce){var ge=$;ge!==ce&&($=ce,ee&&ee.set&&ee.set.call(b,ce),tr($)&&($=Nb($)).on("change.".concat(J.join(".")),_),_(X,ge,$))},get:function(){return ee&&ee.get?ee.get.call(b):$}})})};Pe(h.hookStatus)?h.hookStatus(Xt.ready,g):g(h)}}function Uk(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function Vk(l){return function(c){if(Array.isArray(c))return Uk(c)}(l)||function(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(l)||function(c,h){if(c){if(typeof c=="string")return Uk(c,h);var u=Object.prototype.toString.call(c).slice(8,-1);return u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set"?Array.from(u):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Uk(c,h):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var WP=Symbol("observable-object");function XP(l){return l[WP]!==void 0}function Nb(l){if(XP(l))return l;var c={},h={},u=function(d,g){return Nt(d)?(d.map(function(b){return u(b,g)}),l):(h[d]||(h[d]=[]),h[d].push(g),l)},i=function(d){for(var g=arguments.length,b=new Array(g>1?g-1:0),w=1;w<g;w++)b[w-1]=arguments[w];if(Nt(d))d.map(function(T){return i.apply(void 0,[T].concat(Vk(b)))});else try{var _;!c[d]&&h[d]&&(c[d]=!0,h[d].forEach(function(T){return(_=T).call.apply(_,[l].concat(Vk(b)))}))}finally{c[d]=!1}},s=function(d){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],b={};XP(d)||(Object.defineProperty(d,WP,{enumerable:!1,value:!0}),Object.keys(d).forEach(function(w){var _=w,T=g.concat(_).filter(function(L){return L.length});b[_]=d[_];var z=Hk(d,_);Object.defineProperty(d,_,{set:function(L){var D=b[_];if(!K5(b[_],L)){i(["beforeChange","beforeChange.".concat(T.join("."))],_,L),tr(L)&&s(L,T),z&&z.set?z.set.call(l,L):b[_]=L;var q=[];i(["change"].concat(Vk(T.reduce(function(Y,X){return q.push(X),Y.push("change.".concat(q.join("."))),Y},[]))),T.join("."),D,L!=null&&L.valueOf?L.valueOf():L)}},get:function(){return z&&z.get?z.get.call(l):b[_]},enumerable:!0,configurable:!0}),tr(b[_])&&s(b[_],T)}),Object.defineProperty(l,"on",{value:u}))};return s(l),l}var Db={},GP=1,$P=new Set,Ve=new UP,qk={},$u=function(l){Object.keys(l).forEach(function(c){uo[c]?Object.assign(uo[c],l[c]):uo[c]=l[c]})},Yk=new WeakMap;function dc(l,c){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"div",u=arguments.length>3&&arguments[3]!==void 0&&arguments[3],i=Se(c)?c:c?yk(c.prototype):"jodit-utils",s=Yk.get(l)||{},d=i+h,g=lc(l)?l:l.j,b=null;if(!s[d]){var w=g.c;if(b=ZP(g.o,g.container,l.od.body),u&&_n(l)&&l.od!==l.ed){w=l.createInside;var _=h==="style"?l.ed.head:l.ed.body;b=_n(l)&&l.o.shadowRoot?l.o.shadowRoot:_}var T=w.element(h,{className:"jodit jodit-".concat(oi(i),"-container jodit-box")});T.classList.add("jodit_theme_".concat(g.o.theme||"default")),b.appendChild(T),s[d]=T,l.hookStatus("beforeDestruct",function(){g.events.off(T),N.safeRemove(T),delete s[d],Object.keys(s).length&&Yk.delete(l)}),Yk.set(l,s),g.events.fire("getContainer",T)}return s[d].classList.remove("jodit_theme_default","jodit_theme_dark"),s[d].classList.add("jodit_theme_".concat(g.o.theme||"default")),s[d]}function ZP(l,c,h){var u,i,s;return(s=(i=(u=l.popupRoot)!==null&&u!==void 0?u:l.shadowRoot)!==null&&i!==void 0?i:N.closest(c,function(d){return N.isHTMLElement(d)&&(N.isTag(d,"dialog")||["fixed","absolute"].includes(be(d,"position")))},h))!==null&&s!==void 0?s:h}var $a=new Bk;function KP(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var Qh=new Map,fo=function(){function l(){(function(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")})(this,l),this.async=new Tk,this.ownerWindow=window,this.__componentStatus=Xt.beforeInit,this.uid="jodit-uid-"+function(){function i(){return GP+=10*(Math.random()+1),Math.round(GP).toString(16)}for(var s=i();$P.has(s);)s=i();return $P.add(s),s}()}var c,h,u;return c=l,h=[{key:"componentName",get:function(){return this.__componentName||(this.__componentName="jodit-"+oi((Pe(this.className)?this.className():"")||yk(this))),this.__componentName}},{key:"getFullElName",value:function(i,s,d){var g=[this.componentName];return i&&(i=i.replace(/[^a-z0-9-]/gi,"-"),g.push("__".concat(i))),s&&(g.push("_",s),g.push("_",zr(d)?"true":d.toString())),g.join("")}},{key:"ownerDocument",get:function(){return this.ow.document}},{key:"od",get:function(){return this.ownerDocument}},{key:"ow",get:function(){return this.ownerWindow}},{key:"get",value:function(i,s){return Cb(i,s||this)}},{key:"isReady",get:function(){return this.componentStatus===Xt.ready}},{key:"isDestructed",get:function(){return this.componentStatus===Xt.destructed}},{key:"isInDestruct",get:function(){return Xt.beforeDestruct===this.componentStatus||Xt.destructed===this.componentStatus}},{key:"bindDestruct",value:function(i){var s=this;return i.hookStatus(Xt.beforeDestruct,function(){return!s.isInDestruct&&s.destruct()}),this}},{key:"destruct",value:function(){this.setStatus(Xt.destructed),this.async&&(this.async.destruct(),this.async=void 0),Qh.get(this)&&Qh.delete(this),this.ownerWindow=void 0}},{key:"componentStatus",get:function(){return this.__componentStatus},set:function(i){this.setStatus(i)}},{key:"setStatus",value:function(i){return this.setStatusComponent(i,this)}},{key:"setStatusComponent",value:function(i,s){if(i!==this.__componentStatus){s===this&&(this.__componentStatus=i);var d=Object.getPrototypeOf(this);d&&Pe(d.setStatusComponent)&&d.setStatusComponent(i,s);var g=Qh.get(this),b=g==null?void 0:g[i];b&&b.length&&b.forEach(function(w){return w(s)})}}},{key:"hookStatus",value:function(i,s){var d=Qh.get(this);d||(d={},Qh.set(this,d)),d[i]||(d[i]=[]),d[i].push(s)}}],u=[{key:"isInstanceOf",value:function(i,s){return d=i,(g=s)!=null&&typeof Symbol<"u"&&g[Symbol.hasInstance]?!!g[Symbol.hasInstance](d):d instanceof g;var d,g}}],h&&KP(c.prototype,h),u&&KP(c,u),l}();function Wk(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function tG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Xk(l,c,h){return Xk=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=Zu(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},Xk(l,c,h||l)}function Zu(l){return Zu=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Zu(l)}function Gk(l,c){return Gk=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Gk(l,c)}function JP(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JP=function(){return!!l})()}fo.STATUSES=Xt;var ha=function(l){function c(i){var s;return function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(d,g,b){return g=Zu(g),function(w,_){return!_||((T=_)&&typeof Symbol<"u"&&T.constructor===Symbol?"symbol":typeof T)!="object"&&typeof _!="function"?function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(w):_;var T}(d,JP()?Reflect.construct(g,[],Zu(d).constructor):g.apply(d,b))}(this,c)).setParentView(i),s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Gk(i,s)}(c,l),h=c,u=[{key:"j",get:function(){return this.jodit}},{key:"defaultTimeout",get:function(){return this.j.defaultTimeout}},{key:"i18n",value:function(i){for(var s=arguments.length,d=new Array(s>1?s-1:0),g=1;g<s;g++)d[g-1]=arguments[g];var b;return(b=this.j).i18n.apply(b,[i].concat(function(w){return function(_){if(Array.isArray(_))return Wk(_)}(w)||function(_){if(typeof Symbol<"u"&&_[Symbol.iterator]!=null||_["@@iterator"]!=null)return Array.from(_)}(w)||function(_,T){if(_){if(typeof _=="string")return Wk(_,T);var z=Object.prototype.toString.call(_).slice(8,-1);return z==="Object"&&_.constructor&&(z=_.constructor.name),z==="Map"||z==="Set"?Array.from(z):z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?Wk(_,T):void 0}}(w)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(d)))}},{key:"setParentView",value:function(i){return this.jodit=i,i.components.add(this),this}},{key:"destruct",value:function(){return this.j.components.delete(this),Xk(Zu(c.prototype),"destruct",this).call(this)}}],u&&tG(h.prototype,u),c}(fo);function Ii(l){var c=arguments.length>1&&arguments[1]!==void 0&&arguments[1],h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"debounce";return function(u,i){var s=u[i];if(!Pe(s))throw ht("Handler must be a Function");return u.hookStatus(Xt.ready,function(d){var g=d.async;dt(g!=null,"Component ".concat(d.componentName||d.constructor.name,' should have "async:IAsync" field'));var b=Pe(l)?l(d):l,w=kn(b)||tr(b)?b:d.defaultTimeout;Object.defineProperty(d,i,{configurable:!0,value:g[h](d[i].bind(d),w,c)})}),{configurable:!0,get:function(){return s.bind(this)}}}}function Za(l){return Ii(l,arguments.length>1&&arguments[1]!==void 0&&arguments[1],"throttle")}function $k(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function rG(l){return function(c){if(Array.isArray(c))return $k(c)}(l)||function(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(l)||function(c,h){if(c){if(typeof c=="string")return $k(c,h);var u=Object.prototype.toString.call(c).slice(8,-1);return u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set"?Array.from(u):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?$k(c,h):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ku(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];return function(u){for(var i=u.prototype,s=0;s<c.length;s++)for(var d=function(_){var T=b[_],z=Object.getOwnPropertyDescriptor(g.prototype,T);z!=null&&Pe(z.value)&&!Pe(i[T])&&Object.defineProperty(i,T,{enumerable:!0,configurable:!0,writable:!0,value:function(){for(var L=arguments.length,D=new Array(L),q=0;q<L;q++)D[q]=arguments[q];var Y;return(Y=z.value).call.apply(Y,[this].concat(rG(D)))}})},g=c[s],b=Object.getOwnPropertyNames(g.prototype),w=0;w<b.length;w++)d(w)}}function Ur(l){return function(c,h){if(!Pe(c[h]))throw ht("Handler must be a Function");c.hookStatus(l,function(u){u[h].call(u)})}}function Zk(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function nG(){return function(l,c){if(!Pe(l[c]))throw ht("Handler must be a Function");l.hookStatus(Xt.ready,function(h){var u,i=h.async,s=h[c];h[c]=function(){for(var d=arguments.length,g=new Array(d),b=0;b<d;b++)g[b]=arguments[b];return i.requestIdleCallback((u=s).bind.apply(u,[h].concat(function(w){return function(_){if(Array.isArray(_))return Zk(_)}(w)||function(_){if(typeof Symbol<"u"&&_[Symbol.iterator]!=null||_["@@iterator"]!=null)return Array.from(_)}(w)||function(_,T){if(_){if(typeof _=="string")return Zk(_,T);var z=Object.prototype.toString.call(_).slice(8,-1);return z==="Object"&&_.constructor&&(z=_.constructor.name),z==="Map"||z==="Set"?Array.from(z):z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?Zk(_,T):void 0}}(w)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(g))))}})}}var oG=function(l,c){(Object.getOwnPropertyDescriptor(l,c)||{}).enumerable!==!1&&Object.defineProperty(l,c,{enumerable:!1,set:function(h){Object.defineProperty(this,c,{enumerable:!1,writable:!0,value:h})}})};function iG(l,c){l.hookStatus(Xt.ready,function(h){var u=lc(h)?h:h.jodit,i="".concat(u.options.namespace).concat(h.componentName,"_prop_").concat(c),s=h[c];Object.defineProperty(h,c,{get:function(){var d;return(d=u.storage.get(i))!==null&&d!==void 0?d:s},set:function(d){u.storage.set(i,d)}})})}function Kk(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function QP(l){return function(c,h){if(!Pe(c[h]))throw ht("Handler must be a Function");c.hookStatus(Xt.ready,function(u){var i=u.async,s=u[h],d=0;Object.defineProperty(u,h,{configurable:!0,value:function g(){for(var b=arguments.length,w=new Array(b),_=0;_<b;_++)w[_]=arguments[_];i.clearTimeout(d),l(u)?s.apply(u,w):d=i.setTimeout(function(){return g.apply(void 0,function(T){return function(z){if(Array.isArray(z))return Kk(z)}(T)||function(z){if(typeof Symbol<"u"&&z[Symbol.iterator]!=null||z["@@iterator"]!=null)return Array.from(z)}(T)||function(z,L){if(z){if(typeof z=="string")return Kk(z,L);var D=Object.prototype.toString.call(z).slice(8,-1);return D==="Object"&&z.constructor&&(D=z.constructor.name),D==="Map"||D==="Set"?Array.from(D):D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D)?Kk(z,L):void 0}}(T)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(w))},10)}})})}}function ez(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}function tz(l){return function(){var c=this,h=arguments;return new Promise(function(u,i){var s=l.apply(c,h);function d(b){ez(s,u,i,d,g,"next",b)}function g(b){ez(s,u,i,d,g,"throw",b)}d(void 0)})}}function aG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function rz(l,c){var h,u,i,s,d={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function g(b){return function(w){return function(_){if(h)throw new TypeError("Generator is already executing.");for(;d;)try{if(h=1,u&&(i=2&_[0]?u.return:_[0]?u.throw||((i=u.return)&&i.call(u),0):u.next)&&!(i=i.call(u,_[1])).done)return i;switch(u=0,i&&(_=[2&_[0],i.value]),_[0]){case 0:case 1:i=_;break;case 4:return d.label++,{value:_[1],done:!1};case 5:d.label++,u=_[1],_=[0];continue;case 7:_=d.ops.pop(),d.trys.pop();continue;default:if(!((i=(i=d.trys).length>0&&i[i.length-1])||_[0]!==6&&_[0]!==2)){d=0;continue}if(_[0]===3&&(!i||_[1]>i[0]&&_[1]<i[3])){d.label=_[1];break}if(_[0]===6&&d.label<i[1]){d.label=i[1],i=_;break}if(i&&d.label<i[2]){d.label=i[2],d.ops.push(_);break}i[2]&&d.ops.pop(),d.trys.pop();continue}_=c.call(l,d)}catch(T){_=[6,T],u=0}finally{h=i=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([b,w])}}}de.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr:function(){return new XMLHttpRequest}};var nz=function(){function l(u,i,s,d){(function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")})(this,l),this.request=u,this.status=i,this.statusText=s,this.body=d}var c,h;return c=l,(h=[{key:"url",get:function(){return this.request.url}},{key:"json",value:function(){var u=this;return tz(function(){return rz(this,function(i){return[2,JSON.parse(u.body)]})})()}},{key:"text",value:function(){return Promise.resolve(this.body)}},{key:"blob",value:function(){var u=this;return tz(function(){return rz(this,function(i){return[2,u.body]})})()}}])&&aG(c.prototype,h),l}();function oz(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}function sG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function lG(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function iz(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}var Ju=function(){function l(u){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:de.prototype.defaultAjaxOptions;(function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")})(this,l),this.__async=new Tk,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=fn(u||{},i),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}var c,h;return c=l,h=[{key:"className",value:function(){return"Ajax"}},{key:"__buildParams",value:function(u,i){return tr(u)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(u):Pe(this.o.queryBuild)?this.o.queryBuild.call(this,u,i):Se(u)||(s=u,(d=Ar.FormData)!=null&&typeof Symbol<"u"&&d[Symbol.hasInstance]?d[Symbol.hasInstance](s):s instanceof d)||(u===void 0?"undefined":iz(u))==="object"&&u!=null&&Pe(u.append)?u:Bh(u);var s,d}},{key:"o",get:function(){return this.options}},{key:"abort",value:function(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch{}return this}},{key:"send",value:function(){this.__activated=!0;var u=this.xhr,i=this.o,s=this.prepareRequest(),d=this;return this.__async.promise(function(){var g,b=(g=function(w,_){var T,z,L,D,q,Y,X;return function(J,$){var ee,ce,ge,ye,Me={label:0,sent:function(){if(1&ge[0])throw ge[1];return ge[1]},trys:[],ops:[]};return ye={next:Ie(0),throw:Ie(1),return:Ie(2)},typeof Symbol=="function"&&(ye[Symbol.iterator]=function(){return this}),ye;function Ie(st){return function(Ft){return function(it){if(ee)throw new TypeError("Generator is already executing.");for(;Me;)try{if(ee=1,ce&&(ge=2&it[0]?ce.return:it[0]?ce.throw||((ge=ce.return)&&ge.call(ce),0):ce.next)&&!(ge=ge.call(ce,it[1])).done)return ge;switch(ce=0,ge&&(it=[2&it[0],ge.value]),it[0]){case 0:case 1:ge=it;break;case 4:return Me.label++,{value:it[1],done:!1};case 5:Me.label++,ce=it[1],it=[0];continue;case 7:it=Me.ops.pop(),Me.trys.pop();continue;default:if(!((ge=(ge=Me.trys).length>0&&ge[ge.length-1])||it[0]!==6&&it[0]!==2)){Me=0;continue}if(it[0]===3&&(!ge||it[1]>ge[0]&&it[1]<ge[3])){Me.label=it[1];break}if(it[0]===6&&Me.label<ge[1]){Me.label=ge[1],ge=it;break}if(ge&&Me.label<ge[2]){Me.label=ge[2],Me.ops.push(it);break}ge[2]&&Me.ops.pop(),Me.trys.pop();continue}it=$.call(J,Me)}catch(Qe){it=[6,Qe],ce=0}finally{ee=ge=0}if(5&it[0])throw it[1];return{value:it[0]?it[1]:void 0,done:!0}}([st,Ft])}}}(this,function(J){switch(J.label){case 0:return z=function(){d.__isFulfilled=!0,_(vk("Connection error"))},L=function(){d.__isFulfilled=!0,w(new nz(s,u.status,u.statusText,u.responseType?u.response:u.responseText))},u.onload=L,u.onabort=function(){d.__isFulfilled=!0,_(qh("Abort connection"))},u.onerror=z,u.ontimeout=z,i.responseType&&(u.responseType=i.responseType),u.onprogress=function($){var ee,ce,ge=0;$.lengthComputable&&(ge=$.loaded/$.total*100),(ce=(ee=d.options).onProgress)===null||ce===void 0||ce.call(ee,ge)},u.onreadystatechange=function(){var $,ee;(ee=($=d.options).onProgress)===null||ee===void 0||ee.call($,10),u.readyState===XMLHttpRequest.DONE&&(i.successStatuses.includes(u.status)?L():u.statusText&&(d.__isFulfilled=!0,_(vk(u.statusText))))},u.withCredentials=(T=i.withCredentials)!==null&&T!==void 0&&T,D=s.url,q=s.data,Y=s.method,u.open(Y,D,!0),i.contentType&&u.setRequestHeader&&u.setRequestHeader("Content-type",i.contentType),Pe(X=i.headers)?[4,X.call(d)]:[3,2];case 1:X=J.sent(),J.label=2;case 2:return X&&u.setRequestHeader&&Object.keys(X).forEach(function($){u.setRequestHeader($,X[$])}),d.__async.setTimeout(function(){u.send(q?d.__buildParams(q):void 0)},0),[2]}})},function(){var w=this,_=arguments;return new Promise(function(T,z){var L=g.apply(w,_);function D(Y){oz(L,T,z,D,q,"next",Y)}function q(Y){oz(L,T,z,D,q,"throw",Y)}D(void 0)})});return function(w,_){return b.apply(this,arguments)}}())}},{key:"prepareRequest",value:function(){if(!this.o.url)throw ht("Need URL for AJAX request");var u=this.o.url,i=this.o.data,s=(this.o.method||"get").toLowerCase();if(s==="get"&&i&&tr(i)){var d=u.indexOf("?");if(d!==-1){var g=uk(u);u=u.substring(0,d)+"?"+Bh(function(w){for(var _=1;_<arguments.length;_++){var T=arguments[_]!=null?arguments[_]:{},z=Object.keys(T);typeof Object.getOwnPropertySymbols=="function"&&(z=z.concat(Object.getOwnPropertySymbols(T).filter(function(L){return Object.getOwnPropertyDescriptor(T,L).enumerable}))),z.forEach(function(L){lG(w,L,T[L])})}return w}({},g,i))}else u+="?"+Bh(this.o.data)}var b={url:u,method:s,data:i};return l.log.splice(100),l.log.push(b),b}},{key:"destruct",value:function(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}}],h&&sG(c.prototype,h),l}();function cG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}Ju.log=[],function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":iz(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);s>3&&d&&Object.defineProperty(c,h,d)}([Ce],Ju.prototype,"destruct",null);var Jk=function(){function l(){(function(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")})(this,l)}var c,h;return c=l,(h=[{key:"getElm",value:function(u){return this.container.querySelector(".".concat(this.getFullElName(u)))}},{key:"getElms",value:function(u){return mr(this.container.querySelectorAll(".".concat(this.getFullElName(u))))}}])&&cG(c.prototype,h),l}();function uG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var Qk=function(){function l(){(function(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")})(this,l)}var c,h;return c=l,(h=[{key:"afterSetMod",value:function(u,i){}},{key:"setMod",value:function(u,i,s){u=u.toLowerCase();var d=this.mods[u];if(d===i)return this;var g="".concat(this.componentName,"_").concat(u,"_"),b=(s||this.container).classList;return d!=null&&b.remove("".concat(g).concat(d.toString().toLowerCase())),!zr(i)&&i!==""&&b.add("".concat(g).concat(i.toString().toLowerCase())),this.mods[u]=i,this.afterSetMod(u,i),this}},{key:"getMod",value:function(u){var i;return(i=this.mods[u])!==null&&i!==void 0?i:null}}])&&uG(c.prototype,h),l}();function dG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var Ke=function(){function l(){(function(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")})(this,l)}var c,h;return c=l,h=[{key:"getIcon",value:function(u){if(/<svg/i.test(u))return u;var i=l.icons[u]||l.icons[u.replace(/-/g,"_")]||l.icons[u.replace(/_/g,"-")]||l.icons[jn(u)]||l.icons[oi(u)]||l.icons[u.toLowerCase()];return i}},{key:"exists",value:function(u){return this.getIcon(u)!==void 0}},{key:"get",value:function(u){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"<span></span>";return this.getIcon(u)||i}},{key:"set",value:function(u,i){return this.icons[u.replace("_","-")]=i,this}},{key:"makeIcon",value:function(u,i){var s,d,g,b;if(i){var w,_,T=i.name,z=i.iconURL,L=i.fill,D=T.replace(/[^a-zA-Z0-9]/g,"_");/<svg/.test(T)||(_=(d=(s=u.o).getIcon)===null||d===void 0?void 0:d.call(s,T,D));var q="".concat(T).concat(z).concat(L).concat(_??"");if(u.o.cache&&this.__cache.has(q))return(g=this.__cache.get(q))===null||g===void 0?void 0:g.cloneNode(!0);if(z)be(w=u.c.span(),"backgroundImage","url("+z.replace("{basePath}",(u==null?void 0:u.basePath)||"")+")");else{var Y=_||l.get(T,"")||((b=u.o.extraIcons)===null||b===void 0?void 0:b[T]);Y&&(w=u.c.fromHTML(Y.trim()),/^<svg/i.test(T)||w.classList.add("jodit-icon_"+D))}return w&&(w.classList.add("jodit-icon"),w.style.fill=L,u.o.cache&&this.__cache.set(q,w.cloneNode(!0))),w}}}],h&&dG(c,h),l}();function az(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Bb(l,c,h){return Bb=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=fc(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},Bb(l,c,h||l)}function fc(l){return fc=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},fc(l)}function ej(l,c){return ej=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},ej(l,c)}function tj(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function sz(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sz=function(){return!!l})()}Ke.icons={},Ke.__cache=new Map;var Fb,Vr=Fb=function(l){function c(s,d){var g;return function(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}(this,c),(g=function(b,w,_){return w=fc(w),function(T,z){return!z||tj(z)!=="object"&&typeof z!="function"?function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(T):z}(b,sz()?Reflect.construct(w,_||[],fc(b).constructor):w.apply(b,_))}(this,c,[s])).name="",g.__parentElement=null,g.mods={},g.container=g.createContainer(d),Object.defineProperty(g.container,"component",{value:g,configurable:!0}),g}var h,u,i;return function(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),d&&ej(s,d)}(c,l),h=c,u=[{key:"parentElement",get:function(){return this.__parentElement},set:function(s){var d=this;this.__parentElement=s,s&&s.hookStatus("beforeDestruct",function(){return d.destruct()}),this.updateParentElement(this)}},{key:"bubble",value:function(s){for(var d=this.parentElement;d;)s(d),d=d.parentElement;return this}},{key:"updateParentElement",value:function(s){var d;return(d=this.__parentElement)===null||d===void 0||d.updateParentElement(s),this}},{key:"get",value:function(s,d){return Bb(fc(c.prototype),"get",this).call(this,s,d)||this.getElm(s)}},{key:"closest",value:function(s){for(var d=(s===void 0?"undefined":tj(s))==="object"?function(b){return b===s}:function(b){return fo.isInstanceOf(b,s)},g=this.__parentElement;g;){if(d(g))return g;g=!g.parentElement&&g.container.parentElement?Fb.closestElement(g.container.parentElement,Fb):g.parentElement}return null}},{key:"update",value:function(){}},{key:"appendTo",value:function(s){return s.appendChild(this.container),this}},{key:"clearName",value:function(s){return s.replace(/[^a-zA-Z0-9]/g,"_")}},{key:"render",value:function(s){return this.j.c.div(this.componentName)}},{key:"createContainer",value:function(s){var d=this.render(s);if(Se(d)){var g=this.parseTemplate(d);return g.classList.add(this.componentName),g}return d}},{key:"parseTemplate",value:function(s){var d=this;return this.j.c.fromHTML(s.replace(/\*([^*]+?)\*/g,function(g,b){return Ke.get(b)||""}).replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,function(g,b){return d.i18n(b)}))}},{key:"destruct",value:function(){return N.safeRemove(this.container),this.parentElement=null,Bb(fc(c.prototype),"destruct",this).call(this)}}],i=[{key:"closestElement",value:function(s,d){var g=N.up(s,function(b){if(b){var w=b.component;return w&&fo.isInstanceOf(w,d)}return!1});return g?g==null?void 0:g.component:null}}],u&&az(h.prototype,u),i&&az(h,i),c}(ha);function rj(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function fG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function nj(l,c,h){return nj=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=Qu(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},nj(l,c,h||l)}function Qu(l){return Qu=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Qu(l)}function oj(l,c){return oj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},oj(l,c)}function ij(l){return function(c){if(Array.isArray(c))return rj(c)}(l)||function(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(l)||function(c,h){if(c){if(typeof c=="string")return rj(c,h);var u=Object.prototype.toString.call(c).slice(8,-1);return u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set"?Array.from(u):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?rj(c,h):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lz(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function cz(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cz=function(){return!!l})()}Vr=Fb=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":tj(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Ku(Qk,Jk)],Vr);var aj,uz=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":lz(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Kn=aj=function(l){function c(i,s,d){var g;return function(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}(this,c),(g=function(b,w,_){return w=Qu(w),function(T,z){return!z||lz(z)!=="object"&&typeof z!="function"?function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(T):z}(b,cz()?Reflect.construct(w,_||[],Qu(b).constructor):w.apply(b,_))}(this,c,[i,d])).options=d,g.syncMod=!1,g.elements=[],g.buttonSize="middle",s==null||s.forEach(function(b){return b&&g.append(b)}),d!=null&&d.name&&(g.name=d.name),g}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&oj(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"UIGroup"}},{key:"allChildren",get:function(){for(var i=[],s=ij(this.elements);s.length;){var d,g=s.shift();if(Nt(g))(d=s).push.apply(d,ij(g));else if(fo.isInstanceOf(g,aj)){var b;(b=s).push.apply(b,ij(g.elements))}else g&&i.push(g)}return i}},{key:"update",value:function(){this.elements.forEach(function(i){return i.update()}),this.setMod("size",this.buttonSize)}},{key:"append",value:function(i,s){var d=this;if(Nt(i))return i.forEach(function(b){return d.append(b,s)}),this;if(this.elements.push(i),i.name&&i.container.classList.add(this.getFullElName(i.name)),s){var g=this.getElm(s);dt(g!=null,"Element does not exist"),g.appendChild(i.container)}else this.appendChildToContainer(i.container);return i.parentElement=this,this}},{key:"afterSetMod",value:function(i,s){this.syncMod&&this.elements.forEach(function(d){return d.setMod(i,s)})}},{key:"appendChildToContainer",value:function(i){this.container.appendChild(i)}},{key:"remove",value:function(i){var s=this.elements.indexOf(i);return s!==-1&&(this.elements.splice(s,1),N.safeRemove(i.container),i.parentElement=null),this}},{key:"clear",value:function(){return this.elements.forEach(function(i){return i.destruct()}),this.elements.length=0,this}},{key:"destruct",value:function(){return this.clear(),nj(Qu(c.prototype),"destruct",this).call(this)}}],u&&fG(h.prototype,u),c}(Vr);function hG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Hb(l){return Hb=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Hb(l)}function sj(l,c){return sj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},sj(l,c)}function dz(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function fz(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fz=function(){return!!l})()}uz([_e("buttonSize")],Kn.prototype,"update",null),Kn=aj=uz([Dt],Kn);var Ub=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=Hb(s=c),function(g,b){return!b||dz(b)!=="object"&&typeof b!="function"?function(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(g):b}(i,fz()?Reflect.construct(s,d||[],Hb(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&sj(i,s)}(c,l),h=c,(u=[{key:"className",value:function(){return"UISeparator"}}])&&hG(h.prototype,u),c}(Vr);function pG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Vb(l){return Vb=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Vb(l)}function lj(l,c){return lj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},lj(l,c)}function hz(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function pz(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pz=function(){return!!l})()}Ub=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":dz(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Dt],Ub);var qb=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=Vb(s=c),function(g,b){return!b||hz(b)!=="object"&&typeof b!="function"?function(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(g):b}(i,pz()?Reflect.construct(s,d||[],Vb(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&lj(i,s)}(c,l),h=c,(u=[{key:"className",value:function(){return"UISpacer"}}])&&pG(h.prototype,u),c}(Vr);function cj(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function gz(l){return function(c){if(Array.isArray(c))return cj(c)}(l)||function(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(l)||function(c,h){if(c){if(typeof c=="string")return cj(c,h);var u=Object.prototype.toString.call(c).slice(8,-1);return u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set"?Array.from(u):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?cj(c,h):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}qb=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":hz(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Dt],qb);var uj=function(l){return Nt(l.buttons)};function mz(l,c){var h=c.getRegisteredButtonGroups();return new Set(l.reduce(function(u,i){var s;return uj(i)?u=u.concat(gz(i.buttons).concat(gz((s=h[i.group])!==null&&s!==void 0?s:[]))):u.push(i),u},[]))}function vz(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function gG(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function dj(l){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{},u=Object.keys(h);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(h).filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable}))),u.forEach(function(i){gG(l,i,h[i])})}return l}function bz(l,c){var h;return c||(c=de.defaultOptions.controls),Se(l)?h=yz(l,c)||{name:l,command:l,tooltip:l}:c[(h=dj({name:"empty"},Hh(l))).name]!==void 0&&(h=dj({},Hh(c[h.name]),Hh(h))),h}function yz(l,c){var h=function(d,g){return function(b){if(Array.isArray(b))return b}(d)||function(b,w){var _=b==null?null:typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(_!=null){var T,z,L=[],D=!0,q=!1;try{for(_=_.call(b);!(D=(T=_.next()).done)&&(L.push(T.value),!w||L.length!==w);D=!0);}catch(Y){q=!0,z=Y}finally{try{D||_.return==null||_.return()}finally{if(q)throw z}}return L}}(d,g)||function(b,w){if(b){if(typeof b=="string")return vz(b,w);var _=Object.prototype.toString.call(b).slice(8,-1);return _==="Object"&&b.constructor&&(_=b.constructor.name),_==="Map"||_==="Set"?Array.from(_):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?vz(b,w):void 0}}(d,g)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(l.split(/\./),2),u=h[0],i=h[1],s=c;return i!=null?c[u]!==void 0&&(s=c[u]):i=u,s[i]?dj({name:i},Hh(s[i])):void 0}function mG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Yb(l){return Yb=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Yb(l)}function fj(l,c){return fj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},fj(l,c)}function xz(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function wz(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wz=function(){return!!l})()}var _z=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":xz(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},ed=function(l){function c(i){var s;return function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(d,g,b){return g=Yb(g),function(w,_){return!_||xz(_)!=="object"&&typeof _!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(w):_}(d,wz()?Reflect.construct(g,b||[],Yb(d).constructor):g.apply(d,b))}(this,c,[i])).mode="horizontal",s.removeButtons=[],s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&fj(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"UIList"}},{key:"__onChangeMode",value:function(){this.setMod("mode",this.mode)}},{key:"makeGroup",value:function(){return new Kn(this.jodit)}},{key:"buttons",get:function(){return this.allChildren.filter(function(i){return fo.isInstanceOf(i,Bt)})}},{key:"getButtonsNames",value:function(){return this.buttons.map(function(i){return s=i,((d=Bt)!=null&&typeof Symbol<"u"&&d[Symbol.hasInstance]?!!d[Symbol.hasInstance](s):s instanceof d)&&i.state.name||"";var s,d}).filter(function(i){return i!==""})}},{key:"setRemoveButtons",value:function(i){return this.removeButtons=i||[],this}},{key:"build",value:function(i){var s=this,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;i=Dn(i),this.clear();var g,b=!1,w=this.makeGroup();this.append(w),w.setMod("line",!0);var _=function(z){var L=null;switch(z.name){case`
`:(w=s.makeGroup()).setMod("line",!0),g=s.makeGroup(),w.append(g),s.append(w);break;case"|":b||(b=!0,L=new Ub(s.j));break;case"---":g.setMod("before-spacer",!0);var D=new qb(s.j);w.append(D),g=s.makeGroup(),w.append(g),b=!1;break;default:b=!1,L=z.component==="select"?s.makeSelect(z,d):s.makeButton(z,d)}L&&(g||(g=s.makeGroup(),w.append(g)),g.append(L))},T=function(z){var L;return!s.removeButtons.includes(z.name)&&(!z.isVisible||((L=z.isVisible)===null||L===void 0?void 0:L.call(z,s.j,z)))};return i.forEach(function(z){if(uj(z)){var L=z.buttons.filter(function(q){return q});L.length&&((g=s.makeGroup()).setMod("separated",!0).setMod("group",z.group),w.append(g),function(q,Y){var X=Nt(q)?q:Ga(q,!1).map(function(J){return fn({name:J},q[J]||{})});return X.map(function(J){return bz(J,Y||de.defaultOptions.controls)})}(L,s.j.o.controls).filter(T).forEach(_))}else{g||(g=s.makeGroup(),w.append(g));var D=bz(z,s.j.o.controls);T(D)&&_(D)}}),this.update(),this}},{key:"makeSelect",value:function(i,s){throw new Error("Not implemented behaviour")}},{key:"makeButton",value:function(i,s){return new Bt(this.j,{name:i.name})}}],u&&mG(h.prototype,u),c}(Kn);function vG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function hj(l,c,h){return hj=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=td(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},hj(l,c,h||l)}function td(l){return td=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},td(l)}function pj(l,c){return pj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},pj(l,c)}function kz(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function jz(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jz=function(){return!!l})()}_z([_e("mode"),Ur("ready")],ed.prototype,"__onChangeMode",null),ed=_z([Dt],ed);var hn=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":kz(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Wb=function(){return{size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0}},Bt=function(l){function c(i,s){var d;return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),(d=function(g,b,w){return b=td(b),function(_,T){return!T||kz(T)!=="object"&&typeof T!="function"?function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(_):T}(g,jz()?Reflect.construct(b,w||[],td(g).constructor):b.apply(g,w))}(this,c,[i])).isButton=!0,d.state=Wb(),d.actionHandlers=[],d.button=d.container,d.updateSize(),d.onChangeSize(),d.onChangeStatus(),s&&d.hookStatus(Xt.ready,function(){d.setState(s)}),d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&pj(i,s)}(c,l),h=c,(u=[{key:"className",value:function(){return"UIButton"}},{key:"setState",value:function(i){return Object.assign(this.state,i),this}},{key:"text",get:function(){var i=this.getElm("text");return dt(i,"Text element not found"),i}},{key:"icon",get:function(){var i=this.getElm("icon");return dt(i,"Icon element not found"),i}},{key:"onChangeSize",value:function(){this.setMod("size",this.state.size)}},{key:"onChangeType",value:function(){fe(this.container,"type",this.state.type)}},{key:"onChangeRole",value:function(){fe(this.container,"role",this.state.role)}},{key:"updateSize",value:function(){var i=this.closest(ed);i&&(this.state.size=i.buttonSize)}},{key:"onChangeStatus",value:function(){this.setMod("variant",this.state.variant)}},{key:"onChangeText",value:function(){this.text.textContent=this.jodit.i18n(this.state.text)}},{key:"onChangeTextSetMode",value:function(){this.setMod("text-icons",!!this.state.text.trim().length)}},{key:"onChangeDisabled",value:function(){fe(this.container,"disabled",this.state.disabled||null)}},{key:"onChangeActivated",value:function(){fe(this.container,"aria-pressed",this.state.activated)}},{key:"onChangeName",value:function(){this.container.classList.add("".concat(this.componentName,"_").concat(this.clearName(this.state.name))),this.name=this.state.name,fe(this.container,"data-ref",this.state.name),fe(this.container,"ref",this.state.name)}},{key:"onChangeTooltip",value:function(){this.get("j.o.useNativeTooltip")&&fe(this.container,"title",this.state.tooltip),fe(this.container,"aria-label",this.state.tooltip)}},{key:"onChangeTabIndex",value:function(){fe(this.container,"tabindex",this.state.tabIndex)}},{key:"onChangeIcon",value:function(){var i=this.get("j.o.textIcons");if(!(i===!0||Pe(i)&&i(this.state.name))){N.detach(this.icon);var s=Ke.makeIcon(this.j,this.state.icon);s&&this.icon.appendChild(s)}}},{key:"focus",value:function(){this.container.focus()}},{key:"isFocused",value:function(){var i=this.od.activeElement;return!!(i&&N.isOrContains(this.container,i))}},{key:"createContainer",value:function(){var i=this.componentName,s=this.j.c.element("button",{class:i,type:"button",role:"button",ariaPressed:!1}),d=this.j.c.span(i+"__icon"),g=this.j.c.span(i+"__text");return s.appendChild(d),s.appendChild(g),s}},{key:"destruct",value:function(){return this.j.e.off(this.container),hj(td(c.prototype),"destruct",this).call(this)}},{key:"onAction",value:function(i){return this.actionHandlers.push(i),this}},{key:"__onActionFire",value:function(i){var s=this;i.buffer={actionTrigger:this},this.actionHandlers.forEach(function(d){return d.call(s,i)})}}])&&vG(h.prototype,u),c}(Vr);function sr(l,c,h,u){var i=new Bt(l);return i.state.tabIndex=l.o.allowTabNavigation?0:-1,Se(c)?(i.state.icon.name=c,i.state.name=c,u&&(i.state.variant=u),h&&(i.state.text=h)):i.setState(c),i}function Sz(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function bG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Xb(l){return Xb=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Xb(l)}function gj(l,c){return gj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},gj(l,c)}function Cz(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function Az(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Az=function(){return!!l})()}hn([vr],Bt.prototype,"text",null),hn([vr],Bt.prototype,"icon",null),hn([_e("state.size",{immediately:!1})],Bt.prototype,"onChangeSize",null),hn([_e("state.type",{immediately:!1})],Bt.prototype,"onChangeType",null),hn([_e("state.role",{immediately:!1})],Bt.prototype,"onChangeRole",null),hn([_e("parentElement")],Bt.prototype,"updateSize",null),hn([_e("state.variant",{immediately:!1})],Bt.prototype,"onChangeStatus",null),hn([_e("state.text",{immediately:!1})],Bt.prototype,"onChangeText",null),hn([_e("state.text",{immediately:!1})],Bt.prototype,"onChangeTextSetMode",null),hn([_e("state.disabled")],Bt.prototype,"onChangeDisabled",null),hn([_e("state.activated")],Bt.prototype,"onChangeActivated",null),hn([_e("state.name",{immediately:!1})],Bt.prototype,"onChangeName",null),hn([_e("state.tooltip",{immediately:!1})],Bt.prototype,"onChangeTooltip",null),hn([_e("state.tabIndex",{immediately:!1})],Bt.prototype,"onChangeTabIndex",null),hn([_e("state.icon",{immediately:!1})],Bt.prototype,"onChangeIcon",null),hn([Sk],Bt.prototype,"createContainer",null),hn([_e("button:click")],Bt.prototype,"__onActionFire",null),Bt=hn([Dt],Bt);var mj=function(l){function c(i){var s,d,g,b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{radio:!0};return function(w,_){if(!(w instanceof _))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(w,_,T){return _=Xb(_),function(z,L){return!L||Cz(L)!=="object"&&typeof L!="function"?Sz(z):L}(w,Az()?Reflect.construct(_,T||[],Xb(w).constructor):_.apply(w,T))}(this,c,[i,(d=b.options)===null||d===void 0?void 0:d.map(function(w){var _=new Bt(i,{text:w.text,value:w.value,variant:"primary"});return _.onAction(function(){Sz(s).select(w.value)}),_}),b])).options=b,s.select((g=b.value)!==null&&g!==void 0?g:0),s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&gj(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"UIButtonGroup"}},{key:"render",value:function(i){return`<div>
			<div class="&__label">~`.concat(i.label,`~</div>
			<div class="&__options"></div>
		</div>`)}},{key:"appendChildToContainer",value:function(i){var s=this.getElm("options");dt(s!=null,"Options does not exist"),s.appendChild(i)}},{key:"select",value:function(i){var s,d,g=this;this.elements.forEach(function(w,_){_===i||w.state.value===i?w.state.activated=!0:g.options.radio&&(w.state.activated=!1)});var b=this.elements.filter(function(w){return w.state.activated}).map(function(w){return{text:w.state.text,value:w.state.value}});this.jodit.e.fire(this,"select",b),(d=(s=this.options).onChange)===null||d===void 0||d.call(s,b)}}],u&&bG(h.prototype,u),c}(Kn);function yG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function vj(l,c,h){return vj=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=rd(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},vj(l,c,h||l)}function rd(l){return rd=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},rd(l)}function bj(l,c){return bj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},bj(l,c)}function Oz(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function Ez(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ez=function(){return!!l})()}mj=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":Cz(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Dt],mj);var yj,ep=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":Oz(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Tz=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],Rz=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"],$s=yj=function(l){function c(i){var s;return function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(d,g,b){return g=rd(g),function(w,_){return!_||Oz(_)!=="object"&&typeof _!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(w):_}(d,Ez()?Reflect.construct(g,b||[],rd(d).constructor):g.apply(d,b))}(this,c,[i])).__isOpened=!1,s.__attachedContainers=new Set,s.__listenClose=!1,s.__currentTarget=null,s.__delayShowTimeout=0,s.__hideTimeout=0,i.o.textIcons||!i.o.showTooltip||i.o.useNativeTooltip||(s.j.e.on("getContainer",function(d){s.__onAttach(d)}),i.hookStatus(Xt.ready,function(){s.__onAttach(s.j.container)})),s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&bj(i,s)}(c,l),h=c,(u=[{key:"className",value:function(){return"UITooltip"}},{key:"render",value:function(){return'<div><div class="&__content"></div></div>'}},{key:"__onAttach",value:function(i){dc(this.j,yj).appendChild(this.container),this.__attachedContainers.add(i),this.__attachedContainers.add(this.j.container),this.j.e.on(i,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(i,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}},{key:"__addListenersOnEnter",value:function(){if(!this.__listenClose){this.__listenClose=!0;var i=this.j;i.e.on(i.ow,Tz,this.__hide).on(Rz,this.__hide)}}},{key:"__removeListenersOnLeave",value:function(){if(this.__listenClose){this.__listenClose=!1;var i=this.j;i.e.off(i.ow,Tz,this.__hide).off(Rz,this.__hide)}}},{key:"__onMouseLeave",value:function(i){this.__currentTarget===i.target&&(this.__hideDelay(),this.__currentTarget=null)}},{key:"__onMouseEnter",value:function(i){if(N.isHTMLElement(i.target)){var s=fe(i.target,"aria-label");if(s&&!fe(i.target,"disabled")&&i.target.className.includes("jodit")){this.__currentTarget=i.target;var d=i.target;this.__open(function(){var g=Bn(d);return{x:g.left+g.width/2,y:g.top+g.height}},s)}}}},{key:"__open",value:function(i,s){var d=this;this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);var g=this.j.o.showTooltipDelay||this.j.defaultTimeout;g?this.__delayShowTimeout=this.j.async.setTimeout(function(){return d.__show(i,s)},g):this.__show(i,s)}},{key:"__show",value:function(i,s){this.setMod("visible",!0),this.getElm("content").innerHTML=s;var d=i();be(this.container,{left:d.x,top:d.y})}},{key:"__hide",value:function(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",be(this.container,{left:-5e3}))}},{key:"__hideDelay",value:function(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}},{key:"destruct",value:function(){var i=this;this.__attachedContainers.forEach(function(s){i.j.e.off(s,"mouseenter.tooltip",i.__onMouseEnter).off(s,"mouseleave.tooltip",i.__onMouseLeave)}),this.__hide(),vj(rd(c.prototype),"destruct",this).call(this)}}])&&yG(h.prototype,u),c}(Vr);function xG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Gb(l){return Gb=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Gb(l)}function xj(l,c){return xj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},xj(l,c)}function Pz(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function zz(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zz=function(){return!!l})()}ep([Ce],$s.prototype,"__onMouseLeave",null),ep([Ce],$s.prototype,"__onMouseEnter",null),ep([Ce],$s.prototype,"__hide",null),ep([Ce],$s.prototype,"__hideDelay",null),$s=yj=ep([Dt],$s);var ho=function(l){function c(i,s){var d,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{align:"left"};return function(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}(this,c),(d=function(b,w,_){return w=Gb(w),function(T,z){return!z||Pz(z)!=="object"&&typeof z!="function"?function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(T):z}(b,zz()?Reflect.construct(w,_||[],Gb(b).constructor):w.apply(b,_))}(this,c,[i,s])).options=g,d.setMod("align",d.options.align||"left"),d.setMod("width",d.options.width||""),d.options.mod&&d.setMod(d.options.mod,!0),d.options.className&&d.container.classList.add(d.options.className),fe(d.container,"data-ref",g.ref),fe(d.container,"ref",g.ref),d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&xj(i,s)}(c,l),h=c,(u=[{key:"className",value:function(){return"UIBlock"}}])&&xG(h.prototype,u),c}(Kn);ho=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":Pz(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Dt],ho);var wj=function(l){return!!cr(l.value).length||(l.error="Please fill out this field",!1)},wG=function(l){return!!Ob(cr(l.value))||(l.error="Please enter a web address",!1)},_G=function(l){return!!cr(l.value).length||(l.error="Please fill out this field",!1)};function kG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function jG(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function _j(l,c,h){return _j=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=nd(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},_j(l,c,h||l)}function nd(l){return nd=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},nd(l)}function kj(l,c){return kj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},kj(l,c)}function Mz(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function Iz(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Iz=function(){return!!l})()}var jj,od=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":Mz(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},br=jj=function(l){function c(i,s){var d;return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),(d=function(g,b,w){return b=nd(b),function(_,T){return!T||Mz(T)!=="object"&&typeof T!="function"?function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(_):T}(g,Iz()?Reflect.construct(b,w||[],nd(g).constructor):b.apply(g,w))}(this,c,[i,s])).label=d.j.c.span(d.getFullElName("label")),d.icon=d.j.c.span(d.getFullElName("icon")),d.clearButton=d.j.c.span(d.getFullElName("clear"),Ke.get("cancel")),d.state=function(g){for(var b=1;b<arguments.length;b++){var w=arguments[b]!=null?arguments[b]:{},_=Object.keys(w);typeof Object.getOwnPropertySymbols=="function"&&(_=_.concat(Object.getOwnPropertySymbols(w).filter(function(T){return Object.getOwnPropertyDescriptor(w,T).enumerable}))),_.forEach(function(T){jG(g,T,w[T])})}return g}({},jj.defaultState),d.__errorBox=d.j.c.span(d.getFullElName("error")),d.validators=new Set([]),(s==null?void 0:s.value)!==void 0&&(s.value=s.value.toString()),Object.assign(d.state,s),d.state.clearButton!==void 0&&(d.j.e.on(d.clearButton,"click",function(g){g.preventDefault(),d.nativeInput.value="",d.j.e.fire(d.nativeInput,"input"),d.focus()}).on(d.nativeInput,"input",function(){d.state.clearButton=!!d.value.length}),d.state.clearButton=!!d.value.length),d.j.e.on(d.nativeInput,"focus blur",function(){d.onChangeFocus()}).on(d.nativeInput,"input change",d.onChangeValue),d.onChangeState(),d.onChangeClassName(),d.onChangeStateValue(),d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&kj(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"UIInput"}},{key:"onChangeClear",value:function(){this.state.clearButton?N.after(this.nativeInput,this.clearButton):N.safeRemove(this.clearButton)}},{key:"onChangeClassName",value:function(i,s){s&&this.container.classList.remove(s),this.state.className&&this.container.classList.add(this.state.className)}},{key:"onChangeState",value:function(){this.name=this.state.name;var i=this.nativeInput,s=this.state,d=s.name,g=s.icon,b=s.type,w=s.ref,_=s.required,T=s.placeholder,z=s.autocomplete,L=s.label;fe(i,"name",d),fe(i,"type",b),fe(i,"data-ref",w||d),fe(i,"ref",w||d),fe(i,"required",_||null),fe(i,"autocomplete",z?null:"off"),fe(i,"placeholder",T?this.j.i18n(T):""),g&&Ke.exists(g)?(N.before(i,this.icon),this.icon.innerHTML=Ke.get(g)):N.safeRemove(this.icon),L?(N.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(L)):N.safeRemove(this.label),this.updateValidators()}},{key:"updateValidators",value:function(){var i,s=this;this.validators.clear(),this.state.required&&this.validators.add(wj),(i=this.state.validators)===null||i===void 0||i.forEach(function(d){var g=y[d];g&&s.validators.add(g)})}},{key:"error",set:function(i){this.setMod("has-error",!!i),i?(this.__errorBox.innerText=this.j.i18n(i,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):N.safeRemove(this.__errorBox)}},{key:"value",get:function(){return this.nativeInput.value},set:function(i){this.value!==i&&(this.nativeInput.value=i,this.onChangeValue())}},{key:"onChangeStateValue",value:function(){var i=this.state.value.toString();i!==this.value&&(this.value=i)}},{key:"onChangeValue",value:function(){var i,s,d=this.value;this.state.value!==d&&(this.state.value=d,this.j.e.fire(this,"change",d),(s=(i=this.state).onChange)===null||s===void 0||s.call(i,d))}},{key:"validate",value:function(){var i=this;this.error="";var s=mr(this.validators).every(function(d){return d(i)});return this.__markInputInvalid(),s}},{key:"__markInputInvalid",value:function(){var i,s,d,g;this.error?(this.nativeInput.setAttribute("aria-invalid","true"),(s=(i=this.nativeInput).setCustomValidity)===null||s===void 0||s.call(i,this.error)):(this.nativeInput.removeAttribute("aria-invalid"),(g=(d=this.nativeInput).setCustomValidity)===null||g===void 0||g.call(d,""))}},{key:"createContainer",value:function(i){var s=_j(nd(c.prototype),"createContainer",this).call(this);this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());var d=this.nativeInput;return d.classList.add(this.getFullElName("input")),this.wrapper.appendChild(d),s.appendChild(this.wrapper),fe(d,"dir",this.j.o.direction||"auto"),s}},{key:"createNativeInput",value:function(i){return this.j.create.element("input")}},{key:"focus",value:function(){this.nativeInput.focus()}},{key:"isFocused",get:function(){return this.nativeInput===this.j.od.activeElement}},{key:"onChangeFocus",value:function(){this.setMod("focused",this.isFocused)}}],u&&kG(h.prototype,u),c}(Vr);function SG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function CG(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function $b(l,c,h){return $b=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=hc(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},$b(l,c,h||l)}function hc(l){return hc=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},hc(l)}function Lz(l){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{},u=Object.keys(h);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(h).filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable}))),u.forEach(function(i){CG(l,i,h[i])})}return l}function Sj(l,c){return Sj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Sj(l,c)}function Nz(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function Dz(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dz=function(){return!!l})()}br.defaultState={className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]},od([_e("state.clearButton")],br.prototype,"onChangeClear",null),od([_e("state.className")],br.prototype,"onChangeClassName",null),od([_e(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),Ii()],br.prototype,"onChangeState",null),od([_e("state.value")],br.prototype,"onChangeStateValue",null),od([Ce],br.prototype,"onChangeValue",null),br=jj=od([Dt],br);var Cj,id=Cj=function(l){function c(i,s){var d;return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),(d=function(g,b,w){return b=hc(b),function(_,T){return!T||Nz(T)!=="object"&&typeof T!="function"?function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(_):T}(g,Dz()?Reflect.construct(b,w||[],hc(g).constructor):b.apply(g,w))}(this,c,[i,s])).state=Lz({},Cj.defaultState),Object.assign(d.state,s),d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Sj(i,s)}(c,l),h=c,(u=[{key:"className",value:function(){return"UISelect"}},{key:"createContainer",value:function(i){var s,d=$b(hc(c.prototype),"createContainer",this).call(this,i),g=this.j,b=this.nativeInput,w=function(){return g.create.element("option")};if(i.placeholder!==void 0){var _=w();_.value="",_.text=g.i18n(i.placeholder),b.add(_)}return(s=i.options)===null||s===void 0||s.forEach(function(T){var z=w();z.value=T.value.toString(),z.text=g.i18n(T.text),b.add(z)}),i.size&&i.size>0&&fe(b,"size",i.size),i.multiple&&fe(b,"multiple",""),d}},{key:"createNativeInput",value:function(){return this.j.create.element("select")}},{key:"updateValidators",value:function(){$b(hc(c.prototype),"updateValidators",this).call(this),this.state.required&&(this.validators.delete(wj),this.validators.add(_G))}}])&&SG(h.prototype,u),c}(br);function Aj(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function AG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Zb(l){return Zb=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Zb(l)}function Oj(l,c){return Oj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Oj(l,c)}function Bz(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function Fz(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fz=function(){return!!l})()}id.defaultState=function(l,c){return c=c??{},Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):function(h){var u=Object.keys(h);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(h);u.push.apply(u,i)}return u}(Object(c)).forEach(function(h){Object.defineProperty(l,h,Object.getOwnPropertyDescriptor(c,h))}),l}(Lz({},br.defaultState),{options:[],size:1,multiple:!1}),id=Cj=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":Nz(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Dt],id);var Zs=function(l){function c(){for(var i=arguments.length,s=new Array(i),d=0;d<i;d++)s[d]=arguments[d];var g,b,w;return function(_,T){if(!(_ instanceof T))throw new TypeError("Cannot call a class as a function")}(this,c),!((b=(g=function(_,T,z){return T=Zb(T),function(L,D){return!D||Bz(D)!=="object"&&typeof D!="function"?function(q){if(q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q}(L):D}(_,Fz()?Reflect.construct(T,z||[],Zb(_).constructor):T.apply(_,z))}(this,c,function(_){return function(T){if(Array.isArray(T))return Aj(T)}(_)||function(T){if(typeof Symbol<"u"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}(_)||function(T,z){if(T){if(typeof T=="string")return Aj(T,z);var L=Object.prototype.toString.call(T).slice(8,-1);return L==="Object"&&T.constructor&&(L=T.constructor.name),L==="Map"||L==="Set"?Array.from(L):L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L)?Aj(T,z):void 0}}(_)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(s))).options)===null||b===void 0)&&b.className&&g.container.classList.add((w=g.options)===null||w===void 0?void 0:w.className),g}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Oj(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"UIForm"}},{key:"submit",value:function(){this.j.e.fire(this.container,"submit")}},{key:"validate",value:function(){var i=this.allChildren.filter(function(Y){return fo.isInstanceOf(Y,br)}),s=!0,d=!1,g=void 0;try{for(var b,w=i[Symbol.iterator]();!(s=(b=w.next()).done);s=!0)if(!b.value.validate())return!1}catch(Y){d=!0,g=Y}finally{try{s||w.return==null||w.return()}finally{if(d)throw g}}var _=this.allChildren.filter(function(Y){return fo.isInstanceOf(Y,id)}),T=!0,z=!1,L=void 0;try{for(var D,q=_[Symbol.iterator]();!(T=(D=q.next()).done);T=!0)if(!D.value.validate())return!1}catch(Y){z=!0,L=Y}finally{try{T||q.return==null||q.return()}finally{if(z)throw L}}return!0}},{key:"onSubmit",value:function(i){var s=this;return this.j.e.on(this.container,"submit",function(){var d=s.allChildren.filter(function(g){return fo.isInstanceOf(g,br)});return!!s.validate()&&(i(d.reduce(function(g,b){return g[b.state.name]=b.value,g},{})),!1)}),this}},{key:"createContainer",value:function(){var i=this.j.c.element("form");return i.classList.add(this.componentName),fe(i,"dir",this.j.o.direction||"auto"),fe(i,"novalidate",""),i}}],u&&AG(h.prototype,u),c}(Kn);function OG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function EG(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function Kb(l){return Kb=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Kb(l)}function Hz(l){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{},u=Object.keys(h);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(h).filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable}))),u.forEach(function(i){EG(l,i,h[i])})}return l}function Ej(l,c){return Ej=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Ej(l,c)}function Uz(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function Vz(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vz=function(){return!!l})()}Zs=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":Bz(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Dt],Zs);var Tj,qz=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":Uz(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},pc=Tj=function(l){function c(i,s){var d;return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),(d=function(g,b,w){return b=Kb(b),function(_,T){return!T||Uz(T)!=="object"&&typeof T!="function"?function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(_):T}(g,Vz()?Reflect.construct(b,w||[],Kb(g).constructor):b.apply(g,w))}(this,c,[i,s])).state=Hz({},Tj.defaultState),Object.assign(d.state,s),d.state.resizable===!1&&(d.nativeInput.style.resize="none"),d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Ej(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"UITextArea"}},{key:"createNativeInput",value:function(i){return this.j.create.element("textarea")}},{key:"onChangeStateSize",value:function(){var i=this.state,s=i.size,d=i.resizable;this.nativeInput.style.resize=d?"auto":"none",this.nativeInput.rows=s??5}}],u&&OG(h.prototype,u),c}(br);function TG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function RG(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function Jb(l){return Jb=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Jb(l)}function Rj(l){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{},u=Object.keys(h);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(h).filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable}))),u.forEach(function(i){RG(l,i,h[i])})}return l}function Yz(l,c){return c=c??{},Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):function(h){var u=Object.keys(h);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(h);u.push.apply(u,i)}return u}(Object(c)).forEach(function(h){Object.defineProperty(l,h,Object.getOwnPropertyDescriptor(c,h))}),l}function Pj(l,c){return Pj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Pj(l,c)}function Wz(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function Xz(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xz=function(){return!!l})()}pc.defaultState=function(l,c){return c=c??{},Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):function(h){var u=Object.keys(h);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(h);u.push.apply(u,i)}return u}(Object(c)).forEach(function(h){Object.defineProperty(l,h,Object.getOwnPropertyDescriptor(c,h))}),l}(Hz({},br.defaultState),{size:5,resizable:!0}),qz([_e(["state.size","state.resizable"])],pc.prototype,"onChangeStateSize",null),pc=Tj=qz([Dt],pc);var zj,Qb=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":Wz(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Ka=zj=function(l){function c(i,s){var d;return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),(d=function(g,b,w){return b=Jb(b),function(_,T){return!T||Wz(T)!=="object"&&typeof T!="function"?function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(_):T}(g,Xz()?Reflect.construct(b,w||[],Jb(g).constructor):b.apply(g,w))}(this,c,[i,Yz(Rj({},s),{type:"checkbox"})])).state=Rj({},zj.defaultState),Object.assign(d.state,s),d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Pj(i,s)}(c,l),h=c,(u=[{key:"className",value:function(){return"UICheckbox"}},{key:"render",value:function(){return this.j.c.element("label",{className:this.componentName})}},{key:"onChangeChecked",value:function(){this.value=this.state.checked.toString(),this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}},{key:"onChangeNativeCheckBox",value:function(){this.state.checked=this.nativeInput.checked}},{key:"onChangeSwitch",value:function(){this.setMod("switch",this.state.switch);var i=this.getElm("switch-slider");this.state.switch?(i||(i=this.j.c.div(this.getFullElName("switch-slider"))),N.after(this.nativeInput,i)):N.safeRemove(i)}}])&&TG(h.prototype,u),c}(br);function PG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function zG(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function ey(l){return ey=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},ey(l)}function Gz(l){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{},u=Object.keys(h);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(h).filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable}))),u.forEach(function(i){zG(l,i,h[i])})}return l}function Mj(l,c){return Mj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Mj(l,c)}function $z(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function Zz(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zz=function(){return!!l})()}Ka.defaultState=Yz(Rj({},br.defaultState),{checked:!1,switch:!1}),Qb([_e("state.checked"),Ur("ready")],Ka.prototype,"onChangeChecked",null),Qb([_e("nativeInput:change")],Ka.prototype,"onChangeNativeCheckBox",null),Qb([_e("state.switch"),Ur("ready")],Ka.prototype,"onChangeSwitch",null),Ka=zj=Qb([Dt],Ka);var ty=function(l){function c(i,s){var d;return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),(d=function(g,b,w){return b=ey(b),function(_,T){return!T||$z(T)!=="object"&&typeof T!="function"?function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(_):T}(g,Zz()?Reflect.construct(b,w||[],ey(g).constructor):b.apply(g,w))}(this,c,[i,Gz({type:"file"},s)])).state=function(g,b){return b=b??{},Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):function(w){var _=Object.keys(w);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(w);_.push.apply(_,T)}return _}(Object(b)).forEach(function(w){Object.defineProperty(g,w,Object.getOwnPropertyDescriptor(b,w))}),g}(Gz({},br.defaultState),{type:"file",onlyImages:!0}),d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Mj(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"UIFileInput"}},{key:"createContainer",value:function(i){this.button=new Bt(this.j,{tooltip:i.tooltip,icon:{name:"plus"}});var s=this.button.container;this.nativeInput||(this.nativeInput=this.createNativeInput(i));var d=this.nativeInput;return d.classList.add(this.getFullElName("input")),s.classList.add(this.componentName),s.appendChild(d),s}},{key:"createNativeInput",value:function(i){return this.j.create.fromHTML(`<input
			type="file"
			accept="`.concat(i.onlyImages?"image/*":"*",`"
			tabindex="-1"
			dir="auto"
			multiple=""
		/>`))}}],u&&PG(h.prototype,u),c}(br);function Kz(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function Jz(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function MG(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function ry(l,c,h){return ry=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=gc(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},ry(l,c,h||l)}function gc(l){return gc=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},gc(l)}function Ij(l,c){return Ij=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Ij(l,c)}function Qz(l,c){return function(h){if(Array.isArray(h))return h}(l)||function(h,u){var i=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(i!=null){var s,d,g=[],b=!0,w=!1;try{for(i=i.call(h);!(b=(s=i.next()).done)&&(g.push(s.value),!u||g.length!==u);b=!0);}catch(_){w=!0,d=_}finally{try{b||i.return==null||i.return()}finally{if(w)throw d}}return g}}(l,c)||function(h,u){if(h){if(typeof h=="string")return Kz(h,u);var i=Object.prototype.toString.call(h).slice(8,-1);return i==="Object"&&h.constructor&&(i=h.constructor.name),i==="Map"||i==="Set"?Array.from(i):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Kz(h,u):void 0}}(l,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eM(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function tM(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tM=function(){return!!l})()}ty=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":$z(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Dt],ty);var ny=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":eM(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},rM=["escape","cut","delete","backSpaceAfterDelete","beforeCommandDelete"],Li=function(l){function c(s){var d,g=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return function(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}(this,c),(d=function(b,w,_){return w=gc(w),function(T,z){return!z||eM(z)!=="object"&&typeof z!="function"?function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(T):z}(b,tM()?Reflect.construct(w,_||[],gc(b).constructor):w.apply(b,_))}(this,c,[s])).smart=g,d.isOpened=!1,d.strategy="leftBottom",d.viewBound=function(){return{left:0,top:0,width:d.ow.innerWidth,height:d.ow.innerHeight}},d.__childrenPopups=new Set,fe(d.container,"role","popup"),d}var h,u,i;return function(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),d&&Ij(s,d)}(c,l),h=c,u=[{key:"className",value:function(){return"Popup"}},{key:"appendChildToContainer",value:function(s){var d=this.getElm("content");dt(d,"Content element should exist"),d.appendChild(s)}},{key:"updateParentElement",value:function(s){var d=this;return s!==this&&fo.isInstanceOf(s,c)&&(this.__childrenPopups.forEach(function(g){!s.closest(g)&&g.isOpened&&g.close()}),this.__childrenPopups.has(s)||this.j.e.on(s,"beforeClose",function(){d.__childrenPopups.delete(s)}),this.__childrenPopups.add(s)),ry(gc(c.prototype),"updateParentElement",this).call(this,s)}},{key:"setContent",value:function(s){if(this.allChildren.length)throw new Error("Remove children");if(fo.isInstanceOf(s,Vr))this.append(s);else{var d=Se(s)?this.j.c.fromHTML(s):s;this.appendChildToContainer(d)}return this.updatePosition(),this}},{key:"open",value:function(s){var d=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=arguments.length>2?arguments[2]:void 0;if(Fh(this.jodit,this.container),this.container.classList.add("jodit_theme_".concat(this.jodit.o.theme)),this.__calculateZIndex(),this.isOpened=!0,this.__addGlobalListeners(),this.__targetBound=d?this.getKeepBound(s):s,g)g.appendChild(this.container);else{var b=dc(this.jodit,c);g!==this.container.parentElement&&b.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}},{key:"__calculateZIndex",value:function(){var s=this;if(!this.container.style.zIndex){var d=function(w){var _=w.container.style.zIndex||w.o.zIndex;return!!_&&(s.setZIndex(1+parseInt(_.toString(),10)),!0)};if(!d(this.j))for(var g=this.parentElement;g;){if(d(g.j))return;if(g.container.style.zIndex)return void this.setZIndex(1+parseInt(g.container.style.zIndex.toString(),10));if(!g.parentElement&&g.container.parentElement){var b=Vr.closestElement(g.container.parentElement,Vr);if(b){g=b;continue}}g=g.parentElement}}}},{key:"getKeepBound",value:function(s){var d=this,g=s(),b=this.od.elementFromPoint(g.left,g.top);if(!b)return s;var w=N.isHTMLElement(b)?b:b.parentElement,_=Bn(w,this.j);return function(){var T=s(),z=Bn(w,d.j);return function(L,D){return D=D??{},Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(D)):function(q){var Y=Object.keys(q);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(q);Y.push.apply(Y,X)}return Y}(Object(D)).forEach(function(q){Object.defineProperty(L,q,Object.getOwnPropertyDescriptor(D,q))}),L}(function(L){for(var D=1;D<arguments.length;D++){var q=arguments[D]!=null?arguments[D]:{},Y=Object.keys(q);typeof Object.getOwnPropertySymbols=="function"&&(Y=Y.concat(Object.getOwnPropertySymbols(q).filter(function(X){return Object.getOwnPropertyDescriptor(q,X).enumerable}))),Y.forEach(function(X){MG(L,X,q[X])})}return L}({},T),{top:T.top+(z.top-_.top),left:T.left+(z.left-_.left)})}}},{key:"updatePosition",value:function(){if(!this.isOpened)return this;var s=Qz(this.__calculatePosition(this.__targetBound(),this.viewBound(),Bn(this.container,this.j)),2),d=s[0],g=s[1];return this.setMod("strategy",g),be(this.container,{left:d.left,top:d.top}),this.__childrenPopups.forEach(function(b){return b.updatePosition()}),this}},{key:"__throttleUpdatePosition",value:function(){this.updatePosition()}},{key:"__calculatePosition",value:function(s,d,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.strategy,w={left:s.left,right:s.left-(g.width-s.width)},_={bottom:s.top+s.height,top:s.top-g.height},T=Object.keys(w).reduce(function(q,Y){return q.concat(Object.keys(_).map(function(X){return"".concat(Y).concat(Lb(X))}))},[]),z=function(q){var Y=Qz(oi(q).split("-"),2),X=Y[0],J=Y[1];return{left:w[X],top:_[J],width:g.width,height:g.height}},L=function(q){var Y;return Y=c.boxInView(z(b),q)?b:T.find(function(X){if(c.boxInView(z(X),q))return X})||null,Y},D=L(Bn(this.j.container,this.j));return D&&c.boxInView(z(D),d)||(D=L(d)||D||b),[z(D),D]}},{key:"close",value:function(){return this.isOpened?(this.isOpened=!1,this.__childrenPopups.forEach(function(s){return s.close()}),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.__removeGlobalListeners(),N.safeRemove(this.container),this):this}},{key:"__closeOnOutsideClick",value:function(s){this.isOpened&&!this.isOwnClick(s)&&this.close()}},{key:"isOwnClick",value:function(s){if(!s.target)return!1;var d=Vr.closestElement(s.target,c);return!!(d&&(this===d||d.closest(this)))}},{key:"__addGlobalListeners",value:function(){var s=this,d=this.__throttleUpdatePosition,g=this.ow;$a.on("closeAllPopups",this.close),this.smart&&this.j.e.on(rM,this.close).on("mousedown touchstart",this.__closeOnOutsideClick).on(g,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",d).on(this.container,"scroll mousewheel",d).on(g,"scroll",d).on(g,"resize",d),N.up(this.j.container,function(b){b&&s.j.e.on(b,"scroll mousewheel",d)})}},{key:"__removeGlobalListeners",value:function(){var s=this,d=this.__throttleUpdatePosition,g=this.ow;$a.off("closeAllPopups",this.close),this.smart&&this.j.e.off(rM,this.close).off("mousedown touchstart",this.__closeOnOutsideClick).off(g,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",d).off(this.container,"scroll mousewheel",d).off(g,"scroll",d).off(g,"resize",d),this.j.container.isConnected&&N.up(this.j.container,function(b){b&&s.j.e.off(b,"scroll mousewheel",d)})}},{key:"setZIndex",value:function(s){this.container.style.zIndex=s.toString()}},{key:"render",value:function(){return`<div>
			<div class="&__content"></div>
		</div>`}},{key:"destruct",value:function(){return this.close(),ry(gc(c.prototype),"destruct",this).call(this)}}],i=[{key:"boxInView",value:function(s,d){return s.top-d.top>=-2&&s.left-d.left>=-2&&d.top+d.height-(s.top+s.height)>=-2&&d.left+d.width-(s.left+s.width)>=-2}}],u&&Jz(h.prototype,u),i&&Jz(h,i),c}(Kn);function IG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Lj(l,c,h){return Lj=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=ad(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},Lj(l,c,h||l)}function ad(l){return ad=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},ad(l)}function Nj(l,c){return Nj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Nj(l,c)}function nM(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nM=function(){return!!l})()}ny([Ce],Li.prototype,"updatePosition",null),ny([Za(10),Ce],Li.prototype,"__throttleUpdatePosition",null),ny([Ce],Li.prototype,"close",null),ny([Ce],Li.prototype,"__closeOnOutsideClick",null);var oM=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=ad(s=c),function(g,b){return!b||((w=b)&&typeof Symbol<"u"&&w.constructor===Symbol?"symbol":typeof w)!="object"&&typeof b!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(g):b;var w}(i,nM()?Reflect.construct(s,d||[],ad(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Nj(i,s)}(c,l),h=c,(u=[{key:"className",value:function(){return"ProgressBar"}},{key:"render",value:function(){return"<div><div></div></div>"}},{key:"show",value:function(){return(this.j.workplace||this.j.container).appendChild(this.container),this}},{key:"hide",value:function(){return N.safeRemove(this.container),this}},{key:"progress",value:function(i){return this.container.style.width=i.toFixed(2)+"%",this}},{key:"destruct",value:function(){return this.hide(),Lj(ad(c.prototype),"destruct",this).call(this)}}])&&IG(h.prototype,u),c}(Vr);function LG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var Dj=function(){function l(u,i){(function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")})(this,l),this.document=u,this.createAttributes=i}var c,h;return c=l,h=[{key:"doc",get:function(){return Pe(this.document)?this.document():this.document}},{key:"element",value:function(u,i,s){var d=this,g=this.doc.createElement(u.toLowerCase());return this.applyCreateAttributes(g),i&&(tr(i)?fe(g,i):s=i),s&&Kh(s).forEach(function(b){return g.appendChild(Se(b)?d.fromHTML(b):b)}),g}},{key:"div",value:function(u,i,s){var d=this.element("div",i,s);return u&&(d.className=u),d}},{key:"sandbox",value:function(){var u,i=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(i);var s=(u=i.contentWindow)===null||u===void 0?void 0:u.document;if(dt(s,"iframe.contentWindow.document"),!s)throw Error("Iframe error");return s.open(),s.write("<!DOCTYPE html><html><head></head><body></body></html>"),s.close(),[s.body,i]}},{key:"span",value:function(u,i,s){var d=this.element("span",i,s);return u&&(d.className=u),d}},{key:"a",value:function(u,i,s){var d=this.element("a",i,s);return u&&(d.className=u),d}},{key:"text",value:function(u){return this.doc.createTextNode(u)}},{key:"fake",value:function(){return this.text(dn)}},{key:"fragment",value:function(){return this.doc.createDocumentFragment()}},{key:"fromHTML",value:function(u,i){var s=this.div();s.innerHTML=u.toString();var d=s.firstChild===s.lastChild&&s.firstChild?s.firstChild:s;if(N.safeRemove(d),i){var g=ii(d);Object.keys(i).forEach(function(b){var w=g[b];w&&i[b]===!1&&N.hide(w)})}return d}},{key:"applyCreateAttributes",value:function(u){if(this.createAttributes){var i=this.createAttributes;if(i&&i[u.tagName.toLowerCase()]){var s=i[u.tagName.toLowerCase()];Pe(s)?s(u):tr(s)&&fe(u,s)}}}}],h&&LG(c.prototype,h),l}();function NG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var Bj,DG=function(){function l(u){(function(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")})(this,l),this.rootKey=u}var c,h;return c=l,h=[{key:"set",value:function(u,i){try{var s=localStorage.getItem(this.rootKey),d=s?JSON.parse(s):{};d[u]=i,localStorage.setItem(this.rootKey,JSON.stringify(d))}catch{}return this}},{key:"delete",value:function(u){try{localStorage.removeItem(this.rootKey)}catch{}return this}},{key:"get",value:function(u){try{var i=localStorage.getItem(this.rootKey),s=i?JSON.parse(i):{};return s[u]!==void 0?s[u]:void 0}catch{}}},{key:"exists",value:function(u){return this.get(u)!=null}},{key:"clear",value:function(){try{localStorage.removeItem(this.rootKey)}catch{}return this}}],h&&NG(c.prototype,h),l}();function BG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var FG=function(){function l(){(function(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")})(this,l),this.data=new Map}var c,h;return c=l,h=[{key:"set",value:function(u,i){return this.data.set(u,i),this}},{key:"delete",value:function(u){return this.data.delete(u),this}},{key:"get",value:function(u){return this.data.get(u)}},{key:"exists",value:function(u){return this.data.has(u)}},{key:"clear",value:function(){return this.data.clear(),this}}],h&&BG(c.prototype,h),l}();function iM(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var aM="Jodit_",Fj=function(){function l(i,s){(function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")})(this,l),this.provider=i,this.prefix=aM,s&&(this.prefix+=s)}var c,h,u;return c=l,h=[{key:"set",value:function(i,s){return this.provider.set(jn(this.prefix+i),s),this}},{key:"delete",value:function(i){return this.provider.delete(jn(this.prefix+i)),this}},{key:"get",value:function(i){return this.provider.get(jn(this.prefix+i))}},{key:"exists",value:function(i){return this.provider.exists(jn(this.prefix+i))}},{key:"clear",value:function(){return this.provider.clear(),this}}],u=[{key:"makeStorage",value:function(){var i,s=arguments.length>1?arguments[1]:void 0;return arguments.length>0&&arguments[0]!==void 0&&arguments[0]&&(Bj===void 0&&(Bj=function(){var d="___Jodit___"+Math.random().toString();try{localStorage.setItem(d,"1");var g=localStorage.getItem(d)==="1";return localStorage.removeItem(d),g}catch{}return!1}()),Bj)&&(i=new DG(aM+s)),i||(i=new FG),new l(i,s)}}],h&&iM(c.prototype,h),u&&iM(c,u),l}();function HG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function oy(l){return oy=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},oy(l)}function Hj(l,c){return Hj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Hj(l,c)}function sM(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function lM(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lM=function(){return!!l})()}var Uj=function(l){function c(i,s){var d;return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),(d=function(g,b,w){return b=oy(b),function(_,T){return!T||sM(T)!=="object"&&typeof T!="function"?function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(_):T}(g,lM()?Reflect.construct(b,w||[],oy(g).constructor):b.apply(g,w))}(this,c,[i])).setMod("active",!0),d.setMod("variant",s.variant),d.container.textContent=s.text,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Hj(i,s)}(c,l),h=c,(u=[{key:"className",value:function(){return"UIMessage"}}])&&HG(h.prototype,u),c}(Vr);function UG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function iy(l){return iy=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},iy(l)}function Vj(l,c){return Vj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Vj(l,c)}function cM(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function uM(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uM=function(){return!!l})()}Uj=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":sM(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Dt],Uj);var ay=function(l){function c(i,s){var d,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{defaultTimeout:3e3,defaultOffset:5};return function(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}(this,c),(d=function(b,w,_){return w=iy(w),function(T,z){return!z||cM(z)!=="object"&&typeof z!="function"?function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(T):z}(b,uM()?Reflect.construct(w,_||[],iy(b).constructor):w.apply(b,_))}(this,c,[i])).__box=s,d.options=g,d.__messages=new Set,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Vj(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"UIMessages"}},{key:"info",value:function(i,s){this.__message(i,"info",s)}},{key:"success",value:function(i,s){this.__message(i,"success",s)}},{key:"error",value:function(i,s){this.__message(i,"error",s)}},{key:"message",value:function(i,s,d){this.__message(i,s,d)}},{key:"__message",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"info",d=arguments.length>2?arguments[2]:void 0,g=i+":"+s;if(this.__messages.has(g))this.async.updateTimeout(g,d||this.options.defaultTimeout);else{if(!this.__box)throw new Error("Container is not defined: "+g);this.__box.appendChild(this.container);var b=new Uj(this.j,{text:i,variant:s});this.append(b),this.__calcOffsets(),this.__messages.add(g);var w=this.__getRemoveCallback(b,g);this.j.e.on(b.container,"pointerdown",w),this.async.setTimeout(w,{label:g,timeout:d||this.options.defaultTimeout})}}},{key:"__getRemoveCallback",value:function(i,s){var d=this,g=function(b){b&&b.preventDefault(),i.isInDestruct||(d.async.clearTimeout(s),d.j.e.off(i.container,"pointerdown",g),d.__messages.delete(s),i.setMod("active",!1),d.async.setTimeout(function(){d.remove(i),i.destruct(),d.__calcOffsets()},300))};return g}},{key:"__calcOffsets",value:function(){var i=this,s=5;this.elements.forEach(function(d){be(d.container,"bottom",s+"px"),s+=d.container.offsetHeight+i.options.defaultOffset})}}],u&&UG(h.prototype,u),c}(Kn);function dM(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function qj(l,c,h){return qj=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=sd(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},qj(l,c,h||l)}function sd(l){return sd=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},sd(l)}function Yj(l,c){return Yj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Yj(l,c)}function fM(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function hM(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hM=function(){return!!l})()}ay=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":cM(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Dt],ay);var ld,Ks=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":fM(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Fn=ld=function(l){function c(s){var d,g=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return function(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}(this,c),(d=function(b,w,_){return w=sd(w),function(T,z){return!z||fM(z)!=="object"&&typeof z!="function"?function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(T):z}(b,hM()?Reflect.construct(w,[],sd(b).constructor):w.apply(b,_))}(this,c)).isJodit=g,d.isView=!0,d.parent=null,d.mods={},d.components=new Set,d.OPTIONS=ld.defaultOptions,d.__isFullSize=!1,d.__whoLocked="",d.isLockedNotBy=function(b){return d.isLocked&&d.__whoLocked!==b},d.__modulesInstances=new Map,d.id=new Date().getTime().toString(),d.initOptions(s),d.initOwners(),d.events=new Bk(d.od),d.create=new Dj(d.od),d.container=d.c.div("jodit ".concat(d.componentName)),d}var h,u,i;return function(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),d&&Yj(s,d)}(c,l),h=c,u=[{key:"basePath",get:function(){return this.o.basePath?this.o.basePath:V5}},{key:"minified",get:function(){return this.o.minified!==void 0?this.o.minified:q5}},{key:"defaultTimeout",get:function(){return zr(this.o.defaultTimeout)?100:this.o.defaultTimeout}},{key:"buffer",get:function(){return Fj.makeStorage()}},{key:"message",get:function(){return this.getMessageModule(this.container)}},{key:"getMessageModule",value:function(s){return new ay(this,s)}},{key:"storage",get:function(){return Fj.makeStorage(!0,this.id)}},{key:"c",get:function(){return this.create}},{key:"container",get:function(){return this.__container},set:function(s){this.__container=s}},{key:"e",get:function(){return this.events}},{key:"progressbar",get:function(){return new oM(this)}},{key:"options",get:function(){return this.__options},set:function(s){this.__options=s}},{key:"o",get:function(){return this.options}},{key:"i18n",value:function(s){for(var d=arguments.length,g=new Array(d>1?d-1:0),b=1;b<d;b++)g[b-1]=arguments[b];return NP(s,g,this.options)}},{key:"toggleFullSize",value:function(s){s===void 0&&(s=!this.__isFullSize),s!==this.__isFullSize&&(this.__isFullSize=s,this.e.fire("toggleFullSize",s))}},{key:"isLocked",get:function(){return this.__whoLocked!==""}},{key:"lock",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"any";return!this.isLocked&&(this.__whoLocked=s,!0)}},{key:"unlock",value:function(){return!!this.isLocked&&(this.__whoLocked="",!0)}},{key:"isFullSize",get:function(){return this.__isFullSize}},{key:"getVersion",value:function(){return ld.version}},{key:"initOptions",value:function(s){this.options=fn(s||{},fn(this.options||{},ld.defaultOptions))}},{key:"initOwners",value:function(){var s;this.ownerWindow=(s=this.o.ownerWindow)!==null&&s!==void 0?s:window}},{key:"attachEvents",value:function(s){var d=this;if(s){var g=s==null?void 0:s.events;g&&Object.keys(g).forEach(function(b){return d.e.on(b,g[b])})}}},{key:"getInstance",value:function(s,d){var g=Pe(s)?s.prototype.className():s,b=this.e.fire(jn("getInstance_"+g),d);if(b)return b;var w,_,T=Pe(s)?s:qk[g],z=this.__modulesInstances;if(!Pe(T))throw ht("Need real module name");if(!z.has(g)){var L=(w=T.prototype,((_=ha)!=null&&typeof Symbol<"u"&&_[Symbol.hasInstance]?_[Symbol.hasInstance](w):w instanceof _)?new T(this,d):new T(d));this.components.add(L),z.set(g,L)}return z.get(g)}},{key:"addDisclaimer",value:function(s){this.container.appendChild(s)}},{key:"beforeDestruct",value:function(){this.e.fire(Xt.beforeDestruct,this),this.components.forEach(function(s){U_(s)&&!s.isInDestruct&&s.destruct()}),this.components.clear()}},{key:"destruct",value:function(){var s,d,g;this.isDestructed||((s=Zn(this,"progressbar"))===null||s===void 0||s.destruct(),(d=Zn(this,"message"))===null||d===void 0||d.destruct(),this.events&&(this.events.destruct(),this.events=void 0),(g=Zn(this,"buffer"))===null||g===void 0||g.clear(),N.safeRemove(this.container),qj(sd(c.prototype),"destruct",this).call(this))}}],i=[{key:"getVersion",value:function(){return ld.version}}],u&&dM(h.prototype,u),i&&dM(h,i),c}(fo);function pM(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function VG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function tp(l,c,h){return tp=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=Js(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},tp(l,c,h||l)}function Js(l){return Js=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Js(l)}function Wj(l,c){return Wj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Wj(l,c)}function gM(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function mM(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mM=function(){return!!l})()}Fn.ES=k5,Fn.version=_5,Fn.esNext=R_,Fn.esModern=j5,Ks([vr],Fn.prototype,"buffer",null),Ks([vr],Fn.prototype,"message",null),Ks([vr],Fn.prototype,"storage",null),Ks([vr],Fn.prototype,"c",null),Ks([vr],Fn.prototype,"e",null),Ks([vr],Fn.prototype,"progressbar",null),Ks([Ur(Xt.beforeDestruct)],Fn.prototype,"beforeDestruct",null),(Fn=ld=Ks([Ku(Qk,Jk)],Fn)).defaultOptions={extraButtons:[],cache:!0,textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0,language:"auto"};var sy=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":gM(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Ni=function(l){function c(i){var s;return function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(d,g,b){return g=Js(g),function(w,_){return!_||gM(_)!=="object"&&typeof _!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(w):_}(d,mM()?Reflect.construct(g,b||[],Js(d).constructor):g.apply(d,b))}(this,c,[i])).__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur",s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Wj(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"ToolbarCollection"}},{key:"firstButton",get:function(){return function(i,s){return function(d){if(Array.isArray(d))return d}(i)||function(d,g){var b=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(b!=null){var w,_,T=[],z=!0,L=!1;try{for(b=b.call(d);!(z=(w=b.next()).done)&&(T.push(w.value),!g||T.length!==g);z=!0);}catch(D){L=!0,_=D}finally{try{z||b.return==null||b.return()}finally{if(L)throw _}}return T}}(i,s)||function(d,g){if(d){if(typeof d=="string")return pM(d,g);var b=Object.prototype.toString.call(d).slice(8,-1);return b==="Object"&&d.constructor&&(b=d.constructor.name),b==="Map"||b==="Set"?Array.from(b):b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?pM(d,g):void 0}}(i,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.buttons,1)[0]||null}},{key:"makeButton",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return SM(this.j,i,s)}},{key:"makeSelect",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return function(d,g){return new uy(d,g,arguments.length>2&&arguments[2]!==void 0?arguments[2]:null)}(this.j,i,s)}},{key:"shouldBeActive",value:function(i){}},{key:"shouldBeDisabled",value:function(i){}},{key:"getTarget",value:function(i){return i.target||null}},{key:"__immediateUpdate",value:function(){this.isDestructed||this.j.isLocked||(tp(Js(c.prototype),"update",this).call(this),this.j.e.fire("afterUpdateToolbar",this))}},{key:"update",value:function(){this.__immediateUpdate()}},{key:"setDirection",value:function(i){this.container.style.direction=i,this.container.setAttribute("dir",i)}},{key:"__initEvents",value:function(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}},{key:"hide",value:function(){this.container.remove()}},{key:"show",value:function(){this.appendTo(this.j.toolbarContainer)}},{key:"showInline",value:function(i){throw ht("The method is not implemented for this class.")}},{key:"build",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,d=this.j.e.fire("beforeToolbarBuild",i);return d&&(i=d),tp(Js(c.prototype),"build",this).call(this,i,s),this}},{key:"destruct",value:function(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),tp(Js(c.prototype),"destruct",this).call(this))}}],u&&VG(h.prototype,u),c}(ed);function Xj(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function qG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function YG(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function cd(l,c,h){return cd=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=Ja(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},cd(l,c,h||l)}function Ja(l){return Ja=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Ja(l)}function ly(l){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{},u=Object.keys(h);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(h).filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable}))),u.forEach(function(i){YG(l,i,h[i])})}return l}function vM(l,c){return c=c??{},Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):function(h){var u=Object.keys(h);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(h);u.push.apply(u,i)}return u}(Object(c)).forEach(function(h){Object.defineProperty(l,h,Object.getOwnPropertyDescriptor(c,h))}),l}function Gj(l,c){return Gj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Gj(l,c)}function WG(l){return function(c){if(Array.isArray(c))return Xj(c)}(l)||function(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(l)||function(c,h){if(c){if(typeof c=="string")return Xj(c,h);var u=Object.prototype.toString.call(c).slice(8,-1);return u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set"?Array.from(u):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Xj(c,h):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $j(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function bM(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bM=function(){return!!l})()}sy([Ce],Ni.prototype,"__immediateUpdate",null),sy([Ii(function(l){return l.j.defaultTimeout},!0)],Ni.prototype,"update",null),sy([Ur("ready")],Ni.prototype,"__initEvents",null),Ni=sy([Dt],Ni);var ud=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":$j(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},pa=function(l){function c(i,s){var d,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;(function(_,T){if(!(_ instanceof T))throw new TypeError("Cannot call a class as a function")})(this,c),(d=function(_,T,z){return T=Ja(T),function(L,D){return!D||$j(D)!=="object"&&typeof D!="function"?function(q){if(q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q}(L):D}(_,bM()?Reflect.construct(T,z||[],Ja(_).constructor):T.apply(_,z))}(this,c,[i])).control=s,d.target=g,d.state=vM(ly({},Wb()),{theme:"toolbar",currentValue:"",hasTrigger:!1}),d.openedPopup=null;var b=d.getElm("button");dt(b,"Element button should exists"),d.button=b,Object.defineProperty(b,"component",{value:d,configurable:!0});var w=d.getElm("trigger");return dt(w,"Element trigger should exists"),d.trigger=w,w.remove(),i.e.on([d.button,d.trigger],"mousedown",function(_){return _.preventDefault()}),d.onAction(d.onClick),d.hookStatus(Xt.ready,function(){d.__initFromControl(),d.update()}),s.mods&&Object.keys(s.mods).forEach(function(_){s.mods&&d.setMod(_,s.mods[_])}),d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Gj(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"ToolbarButton"}},{key:"toolbar",get:function(){return this.closest(Ni)}},{key:"update",value:function(){var i,s,d=this.control,g=this.state,b=this.closest(Ni);if(b){var w=(i=d.value)===null||i===void 0?void 0:i.call(d,b.jodit,this);w!==void 0&&(g.value=w),g.disabled=this.__calculateDisabledStatus(b),g.activated=this.__calculateActivatedStatus(b),(s=d.update)===null||s===void 0||s.call(d,b.jodit,this)}}},{key:"__calculateActivatedStatus",value:function(i){var s,d;return!(_n(this.j)&&!this.j.editorIsActive)&&(!!(!((d=(s=this.control).isActive)===null||d===void 0)&&d.call(s,this.j,this))||!!(i&&i.shouldBeActive(this)))}},{key:"__calculateDisabledStatus",value:function(i){var s,d;return!!this.j.o.disabled||!(!this.j.o.readonly||this.j.o.activeButtonsInReadOnly&&this.j.o.activeButtonsInReadOnly.includes(this.control.name))||!!(!((d=(s=this.control).isDisabled)===null||d===void 0)&&d.call(s,this.j,this))||!!(i&&i.shouldBeDisabled(this))}},{key:"onChangeActivated",value:function(){fe(this.button,"aria-pressed",this.state.activated),cd(Ja(c.prototype),"onChangeActivated",this).call(this)}},{key:"onChangeText",value:function(){Pe(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):cd(Ja(c.prototype),"onChangeText",this).call(this),this.setMod("text-icons",!!this.text.innerText.trim().length)}},{key:"onChangeTabIndex",value:function(){fe(this.button,"tabindex",this.state.tabIndex)}},{key:"createContainer",value:function(){var i=this.componentName,s=this.j.c.span(i),d=cd(Ja(c.prototype),"createContainer",this).call(this);fe(s,"role","listitem"),d.classList.remove(i),d.classList.add(i+"__button"),Object.defineProperty(d,"component",{value:this}),s.appendChild(d);var g=this.j.c.fromHTML('<span role="trigger" class="'.concat(i,'__trigger">').concat(Ke.get("chevron"),"</span>"));return d.appendChild(g),s}},{key:"focus",value:function(){var i;(i=this.container.querySelector("button"))===null||i===void 0||i.focus()}},{key:"onChangeHasTrigger",value:function(){this.state.hasTrigger?this.container.appendChild(this.trigger):N.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}},{key:"onChangeDisabled",value:function(){var i=this.state.disabled?"disabled":null;fe(this.trigger,"disabled",i),fe(this.button,"disabled",i),fe(this.container,"disabled",i)}},{key:"__initFromControl",value:function(){var i,s=this.control,d=this.state;this.updateSize(),d.name=s.name;var g=this.j.o.textIcons;if(g===!0||Pe(g)&&g(s.name)||s.template)d.icon=Wb().icon,d.text=s.text||s.name;else{if(s.iconURL)d.icon.iconURL=s.iconURL;else{var b=s.icon||s.name;d.icon.name=Ke.exists(b)||!((i=this.j.o.extraIcons)===null||i===void 0)&&i[b]?b:""}s.iconURL||d.icon.name||(d.text=s.text||s.name)}s.tooltip&&(d.tooltip=this.j.i18n(Pe(s.tooltip)?s.tooltip(this.j,s,this):s.tooltip)),d.hasTrigger=!!(s.list||s.popup&&s.exec)}},{key:"onTriggerClick",value:function(i){var s,d,g,b=this;if(this.openedPopup)this.__closePopup();else{var w=this.control;if(i.buffer={actionTrigger:this},w.list)return this.__openControlList(w);if(Pe(w.popup)){var _=this.openPopup();_.parentElement=this;try{if(this.j.e.fire(jn("before-".concat(w.name,"-open-popup")),this.target,w,_)!==!1){var T=(g=(d=(s=this.toolbar)===null||s===void 0?void 0:s.getTarget(this))!==null&&d!==void 0?d:this.target)!==null&&g!==void 0?g:null,z=w.popup(this.j,T,this.__closePopup,this);z?_.setContent(Se(z)?this.j.c.fromHTML(z):z).open(function(){return Bn(b.container)},!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(L){throw this.__closePopup(),L}this.j.e.fire(jn("after-".concat(w.name,"-open-popup")),_.container)}}}},{key:"__openControlList",value:function(i){var s,d=this,g=(s=this.jodit.options.controls)!==null&&s!==void 0?s:{},b=function(L){return yz(L,g)},w=i.list,_=this.openPopup(),T=fy(this.j);_.parentElement=this,T.parentElement=_,T.mode="vertical";var z=function(L,D){if(Se(D)&&b(D))return ly({name:D.toString()},b(D));if(Se(L)&&b(L))return ly({name:L.toString()},b(L),(D===void 0?"undefined":$j(D))==="object"?D:{});(function(X){return tr(X)&&"title"in X&&"value"in X})(L)&&(D=L.value,L=L.title);var q=i.childTemplate,Y={name:L.toString(),template:q&&function(X,J,$){return q(X,J,$,d)},exec:i.childExec?function(X,J,$){var ee;return(ee=i.childExec)===null||ee===void 0?void 0:ee.call(i,X,J,vM(ly({},$),{parentControl:i}))}:i.exec,data:i.data,command:i.command,isActive:i.isChildActive,value:i.value,isDisabled:i.isChildDisabled,mode:i.mode,args:WG(i.args?i.args:[]).concat([L,D])};return Se(D)&&(Y.text=D),Y};T.build(Nt(w)?w.map(z):Ga(w,!1).map(function(L){return z(L,w[L])}),this.target),_.setContent(T).open(function(){return Bn(d.container)},!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}},{key:"onOutsideClick",value:function(i){this.openedPopup&&(i&&N.isNode(i.target)&&(N.isOrContains(this.container,i.target)||this.openedPopup.isOwnClick(i))||this.__closePopup())}},{key:"openPopup",value:function(){return this.__closePopup(),this.openedPopup=new Li(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}},{key:"__closePopup",value:function(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}},{key:"onClick",value:function(i){var s,d,g,b,w,_,T,z=this.control;if(Pe(z.exec)){var L=(g=(d=(s=this.toolbar)===null||s===void 0?void 0:s.getTarget(this))!==null&&d!==void 0?d:this.target)!==null&&g!==void 0?g:null,D=z.exec(this.j,L,{control:z,originalEvent:i,button:this});if(D!==!1&&D!==!0&&((w=(b=this.j)===null||b===void 0?void 0:b.e)===null||w===void 0||w.fire("synchro"),this.parentElement&&this.parentElement.update(),(T=(_=this.j)===null||_===void 0?void 0:_.e)===null||T===void 0||T.fire("closeAllPopups afterExec")),D!==!1)return}return z.list?this.__openControlList(z):Pe(z.popup)?this.onTriggerClick(i):void((z.command||z.name)&&(Mr(_n(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),z.command||z.name,!1,z.args&&z.args[0]),this.j.e.fire("closeAllPopups")))}},{key:"destruct",value:function(){return this.__closePopup(),cd(Ja(c.prototype),"destruct",this).call(this)}}],u&&qG(h.prototype,u),c}(Bt);function XG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Zj(l,c,h){return Zj=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=dd(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},Zj(l,c,h||l)}function dd(l){return dd=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},dd(l)}function Kj(l,c){return Kj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Kj(l,c)}function yM(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function xM(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xM=function(){return!!l})()}ud([Sk],pa.prototype,"createContainer",null),ud([_e("state.hasTrigger",{immediately:!1})],pa.prototype,"onChangeHasTrigger",null),ud([_e("trigger:click")],pa.prototype,"onTriggerClick",null),ud([Ce],pa.prototype,"onOutsideClick",null),ud([Ce],pa.prototype,"__closePopup",null),pa=ud([Dt],pa);var cy=function(l){function c(i,s){var d,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return function(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}(this,c),(d=function(b,w,_){return w=dd(w),function(T,z){return!z||yM(z)!=="object"&&typeof z!="function"?function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(T):z}(b,xM()?Reflect.construct(w,_||[],dd(b).constructor):w.apply(b,_))}(this,c,[i])).control=s,d.target=g,d.container.classList.add("".concat(d.componentName,"_").concat(d.clearName(s.name))),fe(d.container,"role","content"),d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Kj(i,s)}(c,l),h=c,(u=[{key:"className",value:function(){return"ToolbarContent"}},{key:"update",value:function(){var i=this.control.getContent(this.j,this);(Se(i)||i.parentNode!==this.container)&&(N.detach(this.container),this.container.appendChild(Se(i)?this.j.create.fromHTML(i):i)),Zj(dd(c.prototype),"update",this).call(this)}},{key:"createContainer",value:function(){return this.j.c.span(this.componentName)}}])&&XG(h.prototype,u),c}(Bt);function GG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Jj(l,c,h){return Jj=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=fd(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},Jj(l,c,h||l)}function fd(l){return fd=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},fd(l)}function Qj(l,c){return Qj=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Qj(l,c)}function wM(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function _M(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_M=function(){return!!l})()}cy=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":yM(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Dt],cy);var uy=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=fd(s=c),function(g,b){return!b||wM(b)!=="object"&&typeof b!="function"?function(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(g):b}(i,_M()?Reflect.construct(s,d||[],fd(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Qj(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"ToolbarSelect"}},{key:"update",value:function(){var i,s,d;Jj(fd(c.prototype),"update",this).call(this),this.state.icon.name="";var g=this.control,b=g.list,w=g.data;if(b){var _=this.state.value||(w&&Se(w.currentValue)?w.currentValue:void 0);_||(_=Object.keys(b)[0]);var T=(tr(b)&&b[_.toString()]||_).toString();this.state.text=(d=(s=(i=this.control).textTemplate)===null||s===void 0?void 0:s.call(i,this.jodit,T))!==null&&d!==void 0?d:T}}}],u&&GG(h.prototype,u),c}(pa);function $G(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function hd(l,c,h){return hd=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=Qa(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},hd(l,c,h||l)}function Qa(l){return Qa=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Qa(l)}function e2(l,c){return e2=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},e2(l,c)}function kM(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function jM(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jM=function(){return!!l})()}uy=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":wM(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Dt],uy);var dy=function(l){function c(i){var s;return function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(d,g,b){return g=Qa(g),function(w,_){return!_||kM(_)!=="object"&&typeof _!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(w):_}(d,jM()?Reflect.construct(g,b||[],Qa(d).constructor):g.apply(d,b))}(this,c,[i])).checkActiveStatus=function(d,g){var b=0,w=0;return Object.keys(d).forEach(function(_){var T=d[_];Pe(T)?T(s.j,be(g,_).toString())&&(b+=1):T.indexOf(be(g,_).toString())!==-1&&(b+=1),w+=1}),w===b},s.prependInvisibleInput(s.container),s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&e2(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"ToolbarEditorCollection"}},{key:"shouldBeDisabled",value:function(i){var s=hd(Qa(c.prototype),"shouldBeDisabled",this).call(this,i);if(s!==void 0)return s;var d=i.control.mode===void 0?gr:i.control.mode;return!(d===ca||d===this.j.getRealMode())}},{key:"shouldBeActive",value:function(i){var s=this,d=hd(Qa(c.prototype),"shouldBeActive",this).call(this,i);if(d!==void 0)return d;var g,b=this.j.selection?this.j.s.current():null;if(!b)return!1;if(i.control.tags){var w=i.control.tags;if(g=b,N.up(g,function(T){if(T&&w.indexOf(T.nodeName.toLowerCase())!==-1)return!0},this.j.editor))return!0}if(i.control.css){var _=i.control.css;if(g=b,N.up(g,function(T){if(T&&!N.isText(T)&&!N.isComment(T))return s.checkActiveStatus(_,T)},this.j.editor))return!0}return!1}},{key:"getTarget",value:function(i){return i.target||this.j.s.current()||null}},{key:"prependInvisibleInput",value:function(i){var s=this.j.create.element("input",{tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});N.appendChildFirst(i,s)}},{key:"showInline",value:function(i){this.jodit.e.fire("showInlineToolbar",i)}},{key:"hide",value:function(){this.jodit.e.fire("hidePopup"),hd(Qa(c.prototype),"hide",this).call(this),this.jodit.e.fire("toggleToolbar")}},{key:"show",value:function(){hd(Qa(c.prototype),"show",this).call(this),this.jodit.e.fire("toggleToolbar")}}],u&&$G(h.prototype,u),c}(Ni);function fy(l,c){var h=_n(l)?new dy(l):new Ni(l);return l.o.textIcons&&h.container.classList.add("jodit_text_icons"),c&&(h.parentElement=c),l.o.toolbarButtonSize&&(h.buttonSize=l.o.toolbarButtonSize),h}function SM(l,c){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Pe(c.getContent))return new cy(l,c,h);var u=new pa(l,c,h);return u.state.tabIndex=l.o.allowTabNavigation?0:-1,u}function t2(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function ZG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function r2(l,c,h){return r2=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=pd(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},r2(l,c,h||l)}function pd(l){return pd=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},pd(l)}function n2(l,c){return n2=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},n2(l,c)}function CM(l){return function(c){if(Array.isArray(c))return t2(c)}(l)||function(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(l)||function(c,h){if(c){if(typeof c=="string")return t2(c,h);var u=Object.prototype.toString.call(c).slice(8,-1);return u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set"?Array.from(u):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?t2(c,h):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AM(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function OM(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OM=function(){return!!l})()}dy=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":kM(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Dt],dy);var EM=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":AM(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},gd=function(l){function c(i){var s,d=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(g,b,w){return b=pd(b),function(_,T){return!T||AM(T)!=="object"&&typeof T!="function"?function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(_):T}(g,OM()?Reflect.construct(b,w||[],pd(g).constructor):b.apply(g,w))}(this,c,[i,d])).toolbar=fy(s),s.__defaultToolbarContainer=s.c.div("jodit-toolbar__box"),s.registeredButtons=new Set,s.groupToButtons={},s.isJodit=!1,s.__tooltip=new $s(s),s.isJodit=d,s.e.on("beforeToolbarBuild",s.beforeToolbarBuild),s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&n2(i,s)}(c,l),h=c,(u=[{key:"toolbarContainer",get:function(){return this.o.fullsize||!Se(this.o.toolbar)&&!N.isHTMLElement(this.o.toolbar)?(this.o.toolbar&&N.appendChildFirst(this.container,this.__defaultToolbarContainer),this.__defaultToolbarContainer):$h(this.o.toolbar,this.o.shadowRoot||this.od)}},{key:"setPanel",value:function(i){this.o.toolbar=i,this.buildToolbar()}},{key:"buildToolbar",value:function(){var i;if(this.o.toolbar){var s=this.o.buttons?Dn(this.o.buttons):[];(i=this.toolbar)===null||i===void 0||i.setRemoveButtons(this.o.removeButtons).build(s.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}}},{key:"getRegisteredButtonGroups",value:function(){return this.groupToButtons}},{key:"registerButton",value:function(i){var s;this.registeredButtons.add(i);var d=(s=i.group)!==null&&s!==void 0?s:"other";return this.groupToButtons[d]||(this.groupToButtons[d]=[]),i.position!=null?this.groupToButtons[d][i.position]=i.name:this.groupToButtons[d].push(i.name),this}},{key:"unregisterButton",value:function(i){var s;this.registeredButtons.delete(i);var d=(s=i.group)!==null&&s!==void 0?s:"other",g=this.groupToButtons[d];if(g){var b=g.indexOf(i.name);b!==-1&&g.splice(b,1),g.length===0&&delete this.groupToButtons[d]}return this}},{key:"beforeToolbarBuild",value:function(i){var s=this;if(Object.keys(this.groupToButtons).length)return i.map(function(d){return uj(d)&&d.group&&s.groupToButtons[d.group]?{group:d.group,buttons:CM(d.buttons).concat(CM(s.groupToButtons[d.group]))}:d})}},{key:"destruct",value:function(){this.isDestructed||(this.setStatus(Xt.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.__tooltip.destruct(),this.toolbar.destruct(),this.toolbar=void 0,r2(pd(c.prototype),"destruct",this).call(this))}}])&&ZG(h.prototype,u),c}(Fn);function KG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function JG(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function hy(l,c,h){return hy=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=mc(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},hy(l,c,h||l)}function mc(l){return mc=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},mc(l)}function o2(l,c){return o2=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},o2(l,c)}function TM(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function RM(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RM=function(){return!!l})()}EM([_e(":rebuildToolbar")],gd.prototype,"buildToolbar",null),EM([Ce],gd.prototype,"beforeToolbarBuild",null);var i2,Qs=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":TM(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d};de.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},de.prototype.controls.dialog={close:{icon:"cancel",exec:function(l){l.close()}}};var Sn=i2=function(l){function c(){var i,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(function(X,J){if(!(X instanceof J))throw new TypeError("Cannot call a class as a function")})(this,c),(i=function(X,J,$){return J=mc(J),function(ee,ce){return!ce||TM(ce)!=="object"&&typeof ce!="function"?function(ge){if(ge===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge}(ee):ce}(X,RM()?Reflect.construct(J,$||[],mc(X).constructor):J.apply(X,$))}(this,c,[s])).destroyAfterClose=!1,i.moved=!1,i.resizable=!1,i.draggable=!1,i.startX=0,i.startY=0,i.startPoint={x:0,y:0,w:0,h:0},i.lockSelect=function(){i.setMod("moved",!0)},i.unlockSelect=function(){i.setMod("moved",!1)},i.__onResize=function(){i.options&&i.o.resizable&&!i.moved&&i.isOpened&&!i.offsetX&&!i.offsetY&&i.setPosition()},i.isModal=!1,i.isOpened=!1;var d=i;d.options=fn(s,fn(de.prototype.dialog,i2.defaultOptions)),N.safeRemove(d.container);var g=i.getFullElName.bind(i);d.container=i.c.fromHTML('<div class="jodit jodit-dialog '.concat(i.componentName,`">
				<div class="`).concat(g("overlay"),`"></div>
				<div class="`).concat(i.getFullElName("panel"),`">
					<div class="`).concat(g("header"),`">
						<div class="`).concat(g("header-title"),`"></div>
						<div class="`).concat(g("header-toolbar"),`"></div>
					</div>
					<div class="`).concat(g("content"),`"></div>
					<div class="`).concat(g("footer"),`"></div>
					<div class="`).concat(g("resizer"),'">').concat(Ke.get("resize_handler"),`</div>
				</div>
			</div>`)),d.options.direction==="rtl"&&(d.container.style.direction="rtl",d.container.setAttribute("dir","rtl")),i.o.zIndex&&(i.container.style.zIndex=i.o.zIndex.toString()),fe(d.container,"role","dialog"),Object.defineProperty(d.container,"component",{value:i}),d.setMod("theme",d.o.theme||"default").setMod("resizable",!!d.o.resizable);var b=d.getElm("panel");dt(b!=null,"Panel element does not exist");var w=d.getElm("resizer");dt(w!=null,"Resizer element does not exist");var _=d.getElm("header-title");dt(_!=null,"header-title element does not exist");var T=d.getElm("content");dt(T!=null,"Content element does not exist");var z=d.getElm("footer");dt(z!=null,"Footer element does not exist");var L=d.getElm("header-toolbar");dt(L!=null,"header-toolbar element does not exist"),i.dialog=b,i.resizer=w,i.dialogbox_header=_,i.dialogbox_content=T,i.dialogbox_footer=z,i.dialogbox_toolbar=L,be(d.dialog,{maxWidth:d.options.maxWidth,minHeight:d.options.minHeight,minWidth:d.options.minWidth});var D=d.getElm("header");D&&d.e.on(D,"pointerdown touchstart",d.__onHeaderMouseDown),d.e.on(d.resizer,"mousedown touchstart",d.__onResizerMouseDown);var q=Ve.get("fullsize");if(Pe(q)&&q(d),i.e.on(d.container,"close_dialog",d.close).on(i.ow,"keydown",i.__onEsc).on(i.ow,"resize",i.__onResize),i.o.closeOnClickOverlay){var Y=d.getElm("overlay");dt(Y!=null,"Overlay element does not exist"),i.e.on(Y,"click",d.close)}return i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&o2(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"Dialog"}},{key:"destination",get:function(){var i=this.o,s=i.popupRoot,d=i.shadowRoot;return s||d||this.od.body}},{key:"setElements",value:function(i,s){var d=this,g=[];Kh(s).forEach(function(b){if(Nt(b)){var w=d.c.div(d.getFullElName("column"));return g.push(w),i.appendChild(w),d.setElements(w,b)}var _;_=Se(b)?d.c.fromHTML(b):eP(b)?b.container:b,g.push(_),_.parentNode!==i&&i.appendChild(_)}),mr(i.childNodes).forEach(function(b){g.indexOf(b)===-1&&i.removeChild(b)})}},{key:"__onMouseUp",value:function(){(this.draggable||this.resizable)&&(this.__removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.__removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}},{key:"__onHeaderMouseDown",value:function(i){var s=i.target;!this.o.draggable||s&&s.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=i.clientX,this.startY=i.clientY,this.startPoint.x=be(this.dialog,"left"),this.startPoint.y=be(this.dialog,"top"),this.setMaxZIndex(),i.cancelable&&i.preventDefault(),this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&(this.e.fire(this,"startMove"),this.e.fire("closeAllPopups")))}},{key:"__onMouseMove",value:function(i){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+i.clientX-this.startX,this.startPoint.y+i.clientY-this.startY),this.e&&this.e.fire(this,"move",i.clientX-this.startX,i.clientY-this.startY),i.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+i.clientX-this.startX,this.startPoint.h+i.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",i.clientX-this.startX,i.clientY-this.startY))}},{key:"__onEsc",value:function(i){if(this.o.closeOnEsc&&this.isOpened&&i.key===Nu&&this.getMod("static")!==!0){var s=this.getMaxZIndexDialog();s?s.close():this.close(),i.stopImmediatePropagation()}}},{key:"__onResizerMouseDown",value:function(i){this.resizable=!0,this.startX=i.clientX,this.startY=i.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}},{key:"__addGlobalResizeListeners",value:function(){var i=this;i.e.on(i.ow,"pointermove touchmove",i.__onMouseMove).on(i.ow,"pointerup touchend",i.__onMouseUp)}},{key:"__removeGlobalResizeListeners",value:function(){var i=this;i.e.off(i.ow,"mousemove pointermove",i.__onMouseMove).off(i.ow,"mouseup pointerup",i.__onMouseUp)}},{key:"setSize",value:function(i,s){return i==null&&(i=this.dialog.offsetWidth),s==null&&(s=this.dialog.offsetHeight),be(this.dialog,{width:i,height:s}),this}},{key:"calcAutoSize",value:function(){return this.setSize("auto","auto"),this.setSize(),this}},{key:"setPosition",value:function(i,s){var d=this.ow.innerWidth,g=this.ow.innerHeight,b=d/2-this.dialog.offsetWidth/2,w=g/2-this.dialog.offsetHeight/2;return b<0&&(b=0),w<0&&(w=0),i!==void 0&&s!==void 0&&(this.offsetX=i,this.offsetY=s,this.moved=Math.abs(i-b)>100||Math.abs(s-w)>100),this.dialog.style.left=(i||b)+"px",this.dialog.style.top=(s||w)+"px",this}},{key:"setHeader",value:function(i){return this.setElements(this.dialogbox_header,i),this}},{key:"setContent",value:function(i){return this.setElements(this.dialogbox_content,i),this}},{key:"setFooter",value:function(i){return this.setElements(this.dialogbox_footer,i),this.setMod("footer",!!i),this}},{key:"getZIndex",value:function(){return parseInt(be(this.container,"zIndex"),10)||0}},{key:"getMaxZIndexDialog",value:function(){var i,s,d=0,g=this;return Ct(".jodit-dialog",this.destination).forEach(function(b){i=b.component,s=parseInt(be(b,"zIndex"),10),i.isOpened&&!isNaN(s)&&s>d&&(g=i,d=s)}),g}},{key:"setMaxZIndex",value:function(){if(!this.getMod("static")){var i=20000004,s=0;Ct(".jodit-dialog",this.destination).forEach(function(d){s=parseInt(be(d,"zIndex"),10),i=Math.max(isNaN(s)?0:s,i)}),this.container.style.zIndex=(i+1).toString()}}},{key:"toggleFullSize",value:function(i){zr(i)&&(i=!this.getMod("fullsize")),this.setMod("fullsize",i),hy(mc(c.prototype),"toggleFullSize",this).call(this,i)}},{key:"open",value:function(i,s,d,g){if($a.fire("closeAllPopups hideHelpers"),this.e.fire(this,"beforeOpen")===!1)return this;Wa(i)&&(d=i),Wa(s)&&(g=s),this.destroyAfterClose=d===!0;var b=Wa(i)?void 0:i,w=Wa(s)?void 0:s;return w!==void 0&&this.setHeader(w),b&&this.setContent(b),this.setMod("active",!0),this.isOpened=!0,this.setModal(g),this.destination.appendChild(this.container),this.getMod("static")!==!0?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):this.container.style.removeProperty("z-index"),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}},{key:"setModal",value:function(i){return this.isModal=!!i,this.setMod("modal",this.isModal),this}},{key:"close",value:function(){if(this.isDestructed||!this.isOpened||this.getMod("static")===!0)return this;var i=this.e;return i.fire(this,"beforeClose")===!1||i.fire("beforeClose",this)===!1||(this.setMod("active",!1),this.isOpened=!1,this.isFullSize&&this.toggleFullSize(!1),N.safeRemove(this.container),this.__removeGlobalResizeListeners(),i.fire(this,"afterClose"),i.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}},{key:"buildToolbar",value:function(){this.o.buttons&&this.toolbar.build(Dn(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}},{key:"destruct",value:function(){this.isInDestruct||(this.setStatus(Xt.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.__removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.__onEsc).off(this.ow,"resize",this.__onResize)),hy(mc(c.prototype),"destruct",this).call(this))}}],u&&KG(h.prototype,u),c}(gd);function PM(l,c,h){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"jodit-dialog_alert";Pe(c)&&(h=c,c=void 0);var i,s=((i=Sn)!=null&&typeof Symbol<"u"&&i[Symbol.hasInstance]?i[Symbol.hasInstance](this):this instanceof i)?this:new Sn({closeOnClickOverlay:!0}),d=s.c.div(u),g=sr(s,"ok","Ok");return Kh(l).forEach(function(b){d.appendChild(N.isNode(b)?b:s.c.fromHTML(b))}),g.onAction(function(){h&&Pe(h)&&h(s)===!1||s.close()}),s.setFooter([g]),s.open(d,c||"&nbsp;",!0,!0),g.focus(),s}function zM(l,c,h){var u,i=((u=Sn)!=null&&typeof Symbol<"u"&&u[Symbol.hasInstance]?u[Symbol.hasInstance](this):this instanceof u)?this:new Sn({closeOnClickOverlay:!0}),s=i.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),d=i.c.element("label");Pe(c)&&(h=c,c=void 0),d.appendChild(i.c.fromHTML(l)),s.appendChild(d);var g=function(_){return function(){h&&h(_)===!1||i.close()}},b=sr(i,"cancel","Cancel"),w=sr(i,"ok","Yes");return b.onAction(g(!1)),w.onAction(g(!0)),i.e.on(s,"submit",function(){return g(!0)(),!1}),i.setFooter([w,b]),i.open(s,c||"&nbsp;",!0,!0),w.focus(),i}function MM(l,c,h,u,i){var s,d=((s=Sn)!=null&&typeof Symbol<"u"&&s[Symbol.hasInstance]?s[Symbol.hasInstance](this):this instanceof s)?this:new Sn({closeOnClickOverlay:!0}),g=sr(d,"cancel","Cancel"),b=sr(d,"ok","Ok"),w=d.c.element("form",{class:"jodit-dialog_prompt"}),_=d.c.element("input",{autofocus:!0,class:"jodit-input"}),T=d.c.element("label");Pe(c)&&(h=c,c=void 0),u&&fe(_,"placeholder",u),T.appendChild(d.c.text(l)),w.appendChild(T),w.appendChild(_),g.onAction(d.close);var z=function(){h&&Pe(h)&&h(_.value)===!1||d.close()};return b.onAction(z),d.e.on(w,"submit",function(){return z(),!1}),d.setFooter([b,g]),d.open(w,c||"&nbsp;",!0,!0),_.focus(),i!==void 0&&i.length&&(_.value=i,_.select()),d}function QG(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function e$(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}Qs([Ce],Sn.prototype,"__onMouseUp",null),Qs([Ce],Sn.prototype,"__onHeaderMouseDown",null),Qs([Ce],Sn.prototype,"__onMouseMove",null),Qs([Ce],Sn.prototype,"__onEsc",null),Qs([Ce],Sn.prototype,"__onResizerMouseDown",null),Qs([Ce],Sn.prototype,"close",null),Qs([Ur("ready")],Sn.prototype,"buildToolbar",null),(Sn=i2=Qs([Dt],Sn)).defaultOptions=function(l,c){return c=c??{},Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):function(h){var u=Object.keys(h);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(h);u.push.apply(u,i)}return u}(Object(c)).forEach(function(h){Object.defineProperty(l,h,Object.getOwnPropertyDescriptor(c,h))}),l}(function(l){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{},u=Object.keys(h);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(h).filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable}))),u.forEach(function(i){JG(l,i,h[i])})}return l}({},Fn.defaultOptions),{closeOnClickOverlay:!1,closeOnEsc:!0});var IM=function(){function l(){(function(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")})(this,l)}var c,h;return c=l,h=[{key:"dlg",value:function(u){var i=ZP(this.o,this.container,this.od.body),s=new Sn(function(d){for(var g=1;g<arguments.length;g++){var b=arguments[g]!=null?arguments[g]:{},w=Object.keys(b);typeof Object.getOwnPropertySymbols=="function"&&(w=w.concat(Object.getOwnPropertySymbols(b).filter(function(_){return Object.getOwnPropertyDescriptor(b,_).enumerable}))),w.forEach(function(_){e$(d,_,b[_])})}return d}({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:i,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize},u));return Fh(this,s.container),s.parent=this,s.bindDestruct(this)}},{key:"confirm",value:function(u,i,s){return u=vc(u,this),i=vc(i,this),zM.call(this.dlg({closeOnClickOverlay:!0}),u,i,s)}},{key:"prompt",value:function(u,i,s,d,g){return u=vc(u,this),i=vc(i,this),d=vc(d,this),MM.call(this.dlg({closeOnClickOverlay:!0}),u,i,s,d,g)}},{key:"alert",value:function(u,i,s,d){return u=vc(u,this),i=vc(i,this),PM.call(this.dlg({closeOnClickOverlay:!0}),u,i,s,d)}}],h&&QG(c.prototype,h),l}();function vc(l,c){return Se(l)&&!Mh(l)&&(l=c.i18n(l)),l}function t$(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function py(l){return py=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},py(l)}function a2(l,c){return a2=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},a2(l,c)}function LM(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function NM(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NM=function(){return!!l})()}var rp=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=py(s=c),function(g,b){return!b||LM(b)!=="object"&&typeof b!="function"?function(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(g):b}(i,NM()?Reflect.construct(s,d||[],py(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&a2(i,s)}(c,l),h=c,(u=[{key:"className",value:function(){return"ContextMenu"}},{key:"show",value:function(i,s,d){var g=this,b=this;b.clear(),Nt(d)&&(d.forEach(function(w){if(w){var _=sr(g.jodit,w.icon||"empty",w.title);g.jodit&&_.setParentView(g.jodit),_.setMod("context","menu"),_.onAction(function(T){var z;return(z=w.exec)===null||z===void 0||z.call(b,T),b.clear(),b.close(),!1}),g.append(_)}}),this.open(function(){return{left:i,top:s,width:0,height:0}},!0))}}])&&t$(h.prototype,u),c}(Li);function DM(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function r$(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function np(l){return l.files.setMod("active",!0),l.files.setMod("loading",!0),l.dataProvider.items(l.state.currentPath,l.state.currentSource,{sortBy:l.state.sortBy,onlyImages:l.state.onlyImages,filterWord:l.state.filterWord}).then(function(c){c&&(l.state.elements=c,l.state.activeElements=[])}).catch(l.status).finally(function(){return l.files.setMod("loading",!1)})}function BM(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}function es(l){return s2.apply(this,arguments)}function s2(){var l;return l=function(c){var h,u;return function(i,s){var d,g,b,w,_={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return w={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function T(z){return function(L){return function(D){if(d)throw new TypeError("Generator is already executing.");for(;_;)try{if(d=1,g&&(b=2&D[0]?g.return:D[0]?g.throw||((b=g.return)&&b.call(g),0):g.next)&&!(b=b.call(g,D[1])).done)return b;switch(g=0,b&&(D=[2&D[0],b.value]),D[0]){case 0:case 1:b=D;break;case 4:return _.label++,{value:D[1],done:!1};case 5:_.label++,g=D[1],D=[0];continue;case 7:D=_.ops.pop(),_.trys.pop();continue;default:if(!((b=(b=_.trys).length>0&&b[b.length-1])||D[0]!==6&&D[0]!==2)){_=0;continue}if(D[0]===3&&(!b||D[1]>b[0]&&D[1]<b[3])){_.label=D[1];break}if(D[0]===6&&_.label<b[1]){_.label=b[1],b=D;break}if(b&&_.label<b[2]){_.label=b[2],_.ops.push(D);break}b[2]&&_.ops.pop(),_.trys.pop();continue}D=s.call(i,_)}catch(q){D=[6,q],g=0}finally{d=b=0}if(5&D[0])throw D[1];return{value:D[0]?D[1]:void 0,done:!0}}([z,L])}}}(this,function(i){return c.tree.setMod("active",!0),N.detach(c.tree.container),h=np(c),c.o.showFoldersPanel?(c.tree.setMod("loading",!0),u=c.dataProvider.tree(c.state.currentPath,c.state.currentSource).then(function(s){c.state.sources=s}).catch(c.status).finally(function(){return c.tree.setMod("loading",!1)}),[2,Promise.all([u,h])]):(c.tree.setMod("active",!1),[2,h])})},s2=function(){var c=this,h=arguments;return new Promise(function(u,i){var s=l.apply(c,h);function d(b){BM(s,u,i,d,g,"next",b)}function g(b){BM(s,u,i,d,g,"throw",b)}d(void 0)})},s2.apply(this,arguments)}rp=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":LM(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Dt],rp),de.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:function(l,c){return c=c.toLowerCase(),Se(l)?l.toLowerCase().indexOf(c)!==-1:Se(l.name)?l.name.toLowerCase().indexOf(c)!==-1:!Se(l.file)||l.file.toLowerCase().indexOf(c)!==-1},sortBy:"changed-desc",sort:function(l,c,h){var u=function(T,z){return function(L){if(Array.isArray(L))return L}(T)||function(L,D){var q=L==null?null:typeof Symbol<"u"&&L[Symbol.iterator]||L["@@iterator"];if(q!=null){var Y,X,J=[],$=!0,ee=!1;try{for(q=q.call(L);!($=(Y=q.next()).done)&&(J.push(Y.value),!D||J.length!==D);$=!0);}catch(ce){ee=!0,X=ce}finally{try{$||q.return==null||q.return()}finally{if(ee)throw X}}return J}}(T,z)||function(L,D){if(L){if(typeof L=="string")return DM(L,D);var q=Object.prototype.toString.call(L).slice(8,-1);return q==="Object"&&L.constructor&&(q=L.constructor.name),q==="Map"||q==="Set"?Array.from(q):q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q)?DM(L,D):void 0}}(T,z)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(h.toLowerCase().split("-"),2),i=u[0],s=u[1]==="asc",d=function(T,z){return T<z?s?-1:1:T>z?s?1:-1:0};if(Se(l))return d(l.toLowerCase(),c.toLowerCase());if(l[i]===void 0||i==="name")return Se(l.name)?d(l.name.toLowerCase(),c.name.toLowerCase()):Se(l.file)?d(l.file.toLowerCase(),c.file.toLowerCase()):0;switch(i){case"changed":var g=new Date(l.changed).getTime(),b=new Date(c.changed).getTime();return s?g-b:b-g;case"size":var w=xk(l.size),_=xk(c.size);return s?w-_:_-w}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:function(l){return l.success},getMessage:function(l){return l.data.messages!==void 0&&Nt(l.data.messages)?l.data.messages.join(" "):""},showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate:function(l,c,h){var u=this.options,i=this.files.getFullElName("item"),s=u.showFileName,d=u.showFileSize&&l.size,g=u.showFileChangeTime&&l.time,b="";l.file!==void 0&&(b=l.file);var w='<div class="'.concat(i,'-info">').concat(s?'<span class="'.concat(i,'-info-filename">').concat(b,"</span>"):"").concat(d?'<span class="'.concat(i,'-info-filesize">').concat(l.size,"</span>"):"").concat(g?'<span class="'.concat(i,'-info-filechanged">').concat(g,"</span>"):"","</div>");return`<a
			data-jodit-file-browser-item="true"
			data-is-file="`.concat(l.isImage?0:1,`"
			draggable="true"
			class="`).concat(i,`"
			href="`).concat(l.fileURL,`"
			data-source="`).concat(h,`"
			data-path="`).concat(l.path,`"
			data-name="`).concat(b,`"
			title="`).concat(b,`"
			data-url="`).concat(l.fileURL,`">
				<img
					data-is-file="`).concat(l.isImage?0:1,`"
					data-src="`).concat(l.fileURL,`"
					src="`).concat(l.imageURL,`"
					alt="`).concat(b,`"
					loading="lazy"
				/>
				`).concat(s||d||g?w:"",`
			</a>`)},ajax:function(l,c){return c=c??{},Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):function(h){var u=Object.keys(h);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(h);u.push.apply(u,i)}return u}(Object(c)).forEach(function(h){Object.defineProperty(l,h,Object.getOwnPropertyDescriptor(c,h))}),l}(function(l){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{},u=Object.keys(h);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(h).filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable}))),u.forEach(function(i){r$(l,i,h[i])})}return l}({},de.prototype.defaultAjaxOptions),{url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData:function(l){return l},process:function(l){return l}}),create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},de.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:function(l){return!l.dataProvider.canI("FileUpload")},getContent:function(l,c){var h=new ty(l,{tooltip:c.control.tooltip,onlyImages:l.state.onlyImages});return l.e.fire("bindUploader.filebrowser",h.container),h.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:function(l){return!l.state.activeElements.length||!l.dataProvider.canI("FileRemove")},exec:function(l){l.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec:function(l){l.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:function(l){return!l.state.activeElements.length},exec:function(l){l.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled:function(l){var c=l.state.activeElements;return c.length!==1||!c[0].isImage||!(l.dataProvider.canI("ImageCrop")||l.dataProvider.canI("ImageResize"))},exec:function(l){l.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:function(l){return l.state.view==="tiles"},exec:function(l){l.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:function(l){return l.state.view==="list"},exec:function(l){l.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent:function(l,c){var h=c.container.querySelector(".jodit-input");if(h)return h;var u=l.c.element("input",{class:"jodit-input",placeholder:l.i18n("Filter")});return u.value=l.state.filterWord,l.e.on(u,"keydown mousedown",l.async.debounce(function(){l.e.fire("filter.filebrowser",u.value)},l.defaultTimeout)),u}},sort:{isInput:!0,getContent:function(l){var c=l.c.fromHTML('<select class="jodit-input jodit-select">'+'<option value="changed-asc">'.concat(l.i18n("Sort by changed")," (⬆)</option>")+'<option value="changed-desc">'.concat(l.i18n("Sort by changed")," (⬇)</option>")+'<option value="name-asc">'.concat(l.i18n("Sort by name")," (⬆)</option>")+'<option value="name-desc">'.concat(l.i18n("Sort by name")," (⬇)</option>")+'<option value="size-asc">'.concat(l.i18n("Sort by size")," (⬆)</option>")+'<option value="size-desc">'.concat(l.i18n("Sort by size")," (⬇)</option>")+"</select>");return c.value=l.state.sortBy,l.e.on("sort.filebrowser",function(h){c.value!==h&&(c.value=h)}).on(c,"change",function(){l.e.fire("sort.filebrowser",c.value)}),c}}};var FM=new WeakMap,l2=function(l){var c=FM.get(l);return c||(c={},FM.set(l,c)),c};function HM(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var n$=function(){function l(i){var s=this;(function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")})(this,l),this.data=i,Object.keys(i).forEach(function(d){s[d]=i[d]})}var c,h,u;return c=l,h=[{key:"path",get:function(){return Yu(this.data.source.path?this.data.source.path+"/":"/")}},{key:"imageURL",get:function(){var i=this.time||new Date().getTime().toString(),s=this.data,d=s.thumbIsAbsolute,g=s.source,b=s.thumb,w=s.file,_=b||w;return d&&_?_:Mk(g.baseurl,g.path,_||"")+"?_tmst="+encodeURIComponent(i)}},{key:"fileURL",get:function(){var i=this.data.name,s=this.data,d=s.file,g=s.fileIsAbsolute,b=s.source;return d!==void 0&&(i=d),g&&i?i:Mk(b.baseurl,b.path,i||"")}},{key:"time",get:function(){var i=this.data.changed;return i&&(typeof i=="number"?new Date(i).toLocaleString():i)||""}},{key:"uniqueHashKey",get:function(){var i=this.data,s=[i.sourceName,i.name,i.file,this.time,i.thumb].join("_");return s.toLowerCase().replace(/[^0-9a-z\-.]/g,"-")}},{key:"toJSON",value:function(){return this.data}}],u=[{key:"create",value:function(i){return s=i,((d=l)!=null&&typeof Symbol<"u"&&d[Symbol.hasInstance]?d[Symbol.hasInstance](s):s instanceof d)?i:new l(i);var s,d}}],h&&HM(c.prototype,h),u&&HM(c,u),l}();function UM(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}function VM(l){return function(){var c=this,h=arguments;return new Promise(function(u,i){var s=l.apply(c,h);function d(b){UM(s,u,i,d,g,"next",b)}function g(b){UM(s,u,i,d,g,"throw",b)}d(void 0)})}}function o$(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function i$(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function qM(l,c){var h,u,i,s,d={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function g(b){return function(w){return function(_){if(h)throw new TypeError("Generator is already executing.");for(;d;)try{if(h=1,u&&(i=2&_[0]?u.return:_[0]?u.throw||((i=u.return)&&i.call(u),0):u.next)&&!(i=i.call(u,_[1])).done)return i;switch(u=0,i&&(_=[2&_[0],i.value]),_[0]){case 0:case 1:i=_;break;case 4:return d.label++,{value:_[1],done:!1};case 5:d.label++,u=_[1],_=[0];continue;case 7:_=d.ops.pop(),d.trys.pop();continue;default:if(!((i=(i=d.trys).length>0&&i[i.length-1])||_[0]!==6&&_[0]!==2)){d=0;continue}if(_[0]===3&&(!i||_[1]>i[0]&&_[1]<i[3])){d.label=_[1];break}if(_[0]===6&&d.label<i[1]){d.label=i[1],i=_;break}if(i&&d.label<i[2]){d.label=i[2],d.ops.push(_);break}i[2]&&d.ops.pop(),d.trys.pop();continue}_=c.call(l,d)}catch(T){_=[6,T],u=0}finally{h=i=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([b,w])}}}var YM="default",WM=function(){function l(u,i){(function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")})(this,l),this.parent=u,this.options=i,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=function(s){}}var c,h;return c=l,h=[{key:"o",get:function(){return this.options}},{key:"get",value:function(u){var i=this,s=this.__ajaxInstances;if(s.has(u)){var d=s.get(u);d==null||d.abort(),s.delete(u)}var g=fn(this.options[u]!==void 0?this.options[u]:{},fn({onProgress:this.progressHandler},this.o.ajax));g.prepareData&&(g.data=g.prepareData.call(this,g.data));var b=new Ju(g);s.set(u,b);var w=b.send();return w.finally(function(){b.destruct(),s.delete(u),i.progressHandler(100)}).catch(function(){return null}),w.then(function(_){return _.json()}).then(function(_){if(_&&!i.isSuccess(_))throw new Error(i.getMessage(_));return _})}},{key:"onProgress",value:function(u){this.progressHandler=u}},{key:"permissions",value:function(u,i){var s=this;return VM(function(){return qM(this,function(d){return s.o.permissions?(s.o.permissions.data.path=u,s.o.permissions.data.source=i,s.o.permissions.url?[2,s.get("permissions").then(function(g){if(s.parent.isInDestruct)throw qh();var b=s.o.permissions.process;if(b||(b=s.o.ajax.process),b){var w=b.call(self,g);w.data.permissions&&(s.parent.events.fire(s,"changePermissions",s.__currentPermissions,w.data.permissions),s.__currentPermissions=w.data.permissions)}return s.__currentPermissions})]:[2,null]):[2,null]})})()}},{key:"canI",value:function(u){var i="allow"+u,s=this.o.permissionsPresets[i];return s!==void 0?s:this.__currentPermissions==null||this.__currentPermissions[i]===void 0||this.__currentPermissions[i]}},{key:"__items",value:function(u,i,s,d){var g=this,b=this.options;return b.items?(b.items.data.path=u,b.items.data.source=i,b.items.data.mods=s,this.get("items").then(function(w){var _=g.o.items.process;return _||(_=g.o.ajax.process),_&&(w=_.call(self,w)),d(w)})):Promise.reject(Error("Set Items api options"))}},{key:"items",value:function(u,i){var s=this,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.__items(u,i,d,function(g){return s.generateItemsList(g.data.sources,d)})}},{key:"itemsEx",value:function(u,i){var s=this,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.__items(u,i,d,function(g){return{items:s.generateItemsList(g.data.sources,d),loadedTotal:(b=g.data.sources,b.reduce(function(w,_){return w+_.files.length},0))};var b})}},{key:"generateItemsList",value:function(u){var i=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=[];return u.forEach(function(g){if(g.files&&g.files.length){var b=i.o.sort;Pe(b)&&s.sortBy&&g.files.sort(function(w,_){return b(w,_,s.sortBy)}),g.files.forEach(function(w){(function(_){var T;return!(!((T=s.filterWord)===null||T===void 0)&&T.length)||i.o.filter===void 0||i.o.filter(_,s.filterWord)})(w)&&function(_){return _.type==="folder"||!s.onlyImages||_.isImage===void 0||_.isImage}(w)&&d.push(n$.create(function(_,T){return T=T??{},Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(T)):function(z){var L=Object.keys(z);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(z);L.push.apply(L,D)}return L}(Object(T)).forEach(function(z){Object.defineProperty(_,z,Object.getOwnPropertyDescriptor(T,z))}),_}(function(_){for(var T=1;T<arguments.length;T++){var z=arguments[T]!=null?arguments[T]:{},L=Object.keys(z);typeof Object.getOwnPropertySymbols=="function"&&(L=L.concat(Object.getOwnPropertySymbols(z).filter(function(D){return Object.getOwnPropertyDescriptor(z,D).enumerable}))),L.forEach(function(D){i$(_,D,z[D])})}return _}({},w),{sourceName:g.name,source:g})))})}}),d}},{key:"tree",value:function(u,i){var s=this;return VM(function(){return qM(this,function(d){switch(d.label){case 0:return u=PP(u),s.o.folder?[4,s.permissions(u,i)]:[2,Promise.reject(Error("Set Folder Api options"))];case 1:return d.sent(),s.o.folder.data.path=u,s.o.folder.data.source=i,[2,s.get("folder").then(function(g){var b=s.o.folder.process;return b||(b=s.o.ajax.process),b&&(g=b.call(self,g)),g.data.sources})]}})})()}},{key:"getPathByUrl",value:function(u){var i=this;return xP("options.getLocalFileByUrl.data.url",u,this),this.get("getLocalFileByUrl").then(function(s){if(i.isSuccess(s))return s.data;throw ht(i.getMessage(s))})}},{key:"createFolder",value:function(u,i,s){var d=this,g=this.o.create;if(!g)throw ht("Set Create api options");return g.data.source=s,g.data.path=i,g.data.name=u,this.get("create").then(function(b){if(d.isSuccess(b))return!0;throw ht(d.getMessage(b))})}},{key:"move",value:function(u,i,s,d){var g=this,b=d?"fileMove":"folderMove",w=this.options[b];if(!w)throw ht("Set Move api options");return w.data.from=u,w.data.path=i,w.data.source=s,this.get(b).then(function(_){if(g.isSuccess(_))return!0;throw ht(g.getMessage(_))})}},{key:"remove",value:function(u,i,s,d){var g=this,b=this.o[u];if(!b)throw ht('Set "'.concat(u,'" api options'));return b.data.path=i,b.data.name=s,b.data.source=d,this.get(u).then(function(w){return b.process&&(w=b.process.call(g,w)),g.getMessage(w)})}},{key:"fileRemove",value:function(u,i,s){return this.remove("fileRemove",u,i,s)}},{key:"folderRemove",value:function(u,i,s){return this.remove("folderRemove",u,i,s)}},{key:"rename",value:function(u,i,s,d,g){var b=this,w=this.o[u];if(!w)throw ht('Set "'.concat(u,'" api options'));return w.data.path=i,w.data.name=s,w.data.newname=d,w.data.source=g,this.get(u).then(function(_){return w.process&&(_=w.process.call(self,_)),b.getMessage(_)})}},{key:"folderRename",value:function(u,i,s,d){return this.rename("folderRename",u,i,s,d)}},{key:"fileRename",value:function(u,i,s,d){return this.rename("fileRename",u,i,s,d)}},{key:"changeImage",value:function(u,i,s,d,g,b){this.o[u]||(this.o[u]={data:{}});var w=this.o[u];return w.data===void 0&&(w.data={action:u}),w.data.newname=g||d,b&&(w.data.box=b),w.data.path=i,w.data.name=d,w.data.source=s,this.get(u).then(function(){return!0})}},{key:"crop",value:function(u,i,s,d,g){return this.changeImage("crop",u,i,s,d,g)}},{key:"resize",value:function(u,i,s,d,g){return this.changeImage("resize",u,i,s,d,g)}},{key:"getMessage",value:function(u){return this.options.getMessage(u)}},{key:"isSuccess",value:function(u){return this.options.isSuccess(u)}},{key:"destruct",value:function(){this.__ajaxInstances.forEach(function(u){return u.destruct()}),this.__ajaxInstances.clear()}}],h&&o$(c.prototype,h),l}();const a$=WM=function(l,c,h,u){var i,s,d=arguments.length,g=d<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":(s=Reflect)&&typeof Symbol<"u"&&s.constructor===Symbol?"symbol":typeof s)=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(l,c,h,u);else for(var b=l.length-1;b>=0;b--)(i=l[b])&&(g=(d<3?i(g):d>3?i(c,h,g):i(c,h))||g);return d>3&&g&&Object.defineProperty(c,h,g),g}([Ce],WM);function XM(l,c,h){return l.dataProvider.fileRemove(l.state.currentPath,c,h).then(function(u){l.status(u||l.i18n('File "%s" was deleted',c),!0)}).catch(l.status)}de.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},Ke.set("crop",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg> `).set("resize",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg> `);var pn="jodit-image-editor",GM=Ke.get.bind(Ke),c2=function(l){return l?arguments.length>1&&arguments[1]!==void 0?arguments[1]:"jodti-image-editor_active":""};function s$(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function u2(l,c,h){return u2=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=md(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},u2(l,c,h||l)}function md(l){return md=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},md(l)}function d2(l,c){return d2=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},d2(l,c)}function $M(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function ZM(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZM=function(){return!!l})()}var gy,el=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":$M(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Hn="jodit-image-editor",bc="resize",op="crop",Di=gy=function(l){function c(i){var s;(function(_,T){if(!(_ instanceof T))throw new TypeError("Cannot call a class as a function")})(this,c),(s=function(_,T,z){return T=md(T),function(L,D){return!D||$M(D)!=="object"&&typeof D!="function"?function(q){if(q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q}(L):D}(_,ZM()?Reflect.construct(T,z||[],md(_).constructor):T.apply(_,z))}(this,c,[i])).resizeUseRatio=!0,s.cropUseRatio=!0,s.clicked=!1,s.start_x=0,s.start_y=0,s.top_x=0,s.top_y=0,s.width=0,s.height=0,s.activeTab=bc,s.naturalWidth=0,s.naturalHeight=0,s.ratio=0,s.new_h=0,s.new_w=0,s.diff_x=0,s.diff_y=0,s.cropBox={x:0,y:0,w:0,h:0},s.resizeBox={w:0,h:0},s.calcCropBox=function(){var _=s.crop_box.parentNode,T=.8*_.offsetWidth,z=.8*_.offsetHeight,L=T,D=z,q=s.naturalWidth,Y=s.naturalHeight;T>q&&z>Y?(L=q,D=Y):s.ratio>T/z?(L=T,D=Y*(T/q)):(L=q*(z/Y),D=z),be(s.crop_box,{width:L,height:D})},s.showCrop=function(){if(s.cropImage){s.calcCropBox();var _=s.cropImage.offsetWidth||s.image.offsetWidth||s.image.naturalWidth;s.new_w=gy.calcValueByPercent(_,s.o.cropDefaultWidth);var T=s.cropImage.offsetHeight||s.image.offsetHeight||s.image.naturalHeight;s.cropUseRatio?s.new_h=s.new_w/s.ratio:s.new_h=gy.calcValueByPercent(T,s.o.cropDefaultHeight),be(s.cropHandler,{backgroundImage:"url("+fe(s.cropImage,"src")+")",width:s.new_w,height:s.new_h,left:_/2-s.new_w/2,top:T/2-s.new_h/2}),s.j.e.fire(s.cropHandler,"updatesize")}},s.updateCropBox=function(){if(s.cropImage){var _=s.cropImage.offsetWidth/s.naturalWidth,T=s.cropImage.offsetHeight/s.naturalHeight;s.cropBox.x=be(s.cropHandler,"left")/_,s.cropBox.y=be(s.cropHandler,"top")/T,s.cropBox.w=s.cropHandler.offsetWidth/_,s.cropBox.h=s.cropHandler.offsetHeight/T,s.sizes.textContent=s.cropBox.w.toFixed(0)+"x"+s.cropBox.h.toFixed(0)}},s.updateResizeBox=function(){s.resizeBox.w=s.image.offsetWidth||s.naturalWidth,s.resizeBox.h=s.image.offsetHeight||s.naturalHeight},s.setHandlers=function(){var _=s,T=ii(s.editor),z=T.widthInput,L=T.heightInput;_.j.e.on([_.editor.querySelector(".jodit_bottomright"),_.cropHandler],"mousedown.".concat(Hn),s.onResizeHandleMouseDown).on(s.j.ow,"resize.".concat(Hn),function(){s.j.e.fire(_.resizeHandler,"updatesize"),_.showCrop(),s.j.e.fire(_.cropHandler,"updatesize")}),_.j.e.on(mr(s.editor.querySelectorAll(".".concat(Hn,"__slider-title"))),"click",s.onTitleModeClick).on([z,L],"input",s.onChangeSizeInput);var D=ii(s.editor),q=D.keepAspectRatioResize,Y=D.keepAspectRatioCrop;q&&q.addEventListener("change",function(){s.resizeUseRatio=q.checked}),Y&&Y.addEventListener("change",function(){s.cropUseRatio=Y.checked}),_.j.e.on(_.resizeHandler,"updatesize",function(){be(_.resizeHandler,{top:0,left:0,width:_.image.offsetWidth||_.naturalWidth,height:_.image.offsetHeight||_.naturalHeight}),s.updateResizeBox()}).on(_.cropHandler,"updatesize",function(){if(_.cropImage){var X=be(_.cropHandler,"left"),J=be(_.cropHandler,"top"),$=_.cropHandler.offsetWidth,ee=_.cropHandler.offsetHeight;X<0&&(X=0),J<0&&(J=0),X+$>_.cropImage.offsetWidth&&($=_.cropImage.offsetWidth-X,_.cropUseRatio&&(ee=$/_.ratio)),J+ee>_.cropImage.offsetHeight&&(ee=_.cropImage.offsetHeight-J,_.cropUseRatio&&($=ee*_.ratio)),be(_.cropHandler,{width:$,height:ee,left:X,top:J,backgroundPosition:-X-1+"px "+(-J-1)+"px",backgroundSize:_.cropImage.offsetWidth+"px "+_.cropImage.offsetHeight+"px"}),_.updateCropBox()}}),Object.values(_.buttons).forEach(function(X){X.onAction(function(){var J={action:_.activeTab,box:_.activeTab===bc?_.resizeBox:_.cropBox};switch(X){case _.buttons.saveas:_.j.prompt("Enter new name","Save in new file",function($){if(!cr($))return _.j.alert("The name should not be empty"),!1;_.onSave($,J,_.hide,function(ee){_.j.alert(ee.message)})});break;case _.buttons.save:_.onSave(void 0,J,_.hide,function($){_.j.alert($.message)});break;case _.buttons.reset:_.activeTab===bc?(be(_.image,{width:null,height:null}),z.value=_.naturalWidth.toString(),L.value=_.naturalHeight.toString(),_.j.e.fire(_.resizeHandler,"updatesize")):_.showCrop()}})})},s.options=i&&i.o&&i.o.imageeditor?i.o.imageeditor:de.defaultOptions.imageeditor;var d=s.options;s.resizeUseRatio=d.resizeUseRatio,s.cropUseRatio=d.cropUseRatio,s.buttons={reset:sr(s.j,"update","Reset"),save:sr(s.j,"save","Save"),saveas:sr(s.j,"save","Save as ...")},s.activeTab=d.resize?bc:op,s.editor=function(_,T){var z=_.i18n.bind(_),L=function(D,q){return`<div class="jodit-form__group">
			<label class="jodit-switcher-wrapper">
				<span class='jodit-switcher'>
					<input `.concat(c2(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],"checked"),' data-ref="').concat(q,`" type="checkbox"/>
					<span class="jodit-switcher__slider"></span>
				</span>
				<span>`).concat(z(D),`</span>
			</label>
	</div>`)};return _.create.fromHTML('<form class="'.concat(pn,` jodit-properties">
		<div class="jodit-grid jodit-grid_xs-column">
			<div class="jodit_col-lg-3-4 jodit_col-sm-5-5">
			`).concat(T.resize?'<div class="'.concat(pn,"__area ").concat(pn,"__area_resize ").concat(pn,`_active">
							<div data-ref="resizeBox" class="`).concat(pn,`__box"></div>
							<div class="`).concat(pn,`__resizer">
								<i class="jodit_bottomright"></i>
							</div>
						</div>`):"",`
			`).concat(T.crop?'<div class="'.concat(pn,"__area ").concat(pn,"__area_crop ").concat(c2(!T.resize),`">
							<div data-ref="cropBox" class="`).concat(pn,`__box">
								<div class="`).concat(pn,`__croper">
									<i class="jodit_bottomright"></i>
									<i class="`).concat(pn,`__sizes"></i>
								</div>
							</div>
						</div>`):"",`
			</div>
			<div class="jodit_col-lg-1-4 jodit_col-sm-5-5">
			`).concat(T.resize?'<div data-area="resize" class="'.concat(pn,"__slider ").concat(pn,`_active">
							<div class="`).concat(pn,`__slider-title">
								`).concat(GM("resize"),`
								`).concat(z("Resize"),`
							</div>
							<div class="`).concat(pn,`__slider-content">
								<div class="jodit-form__group">
									<label>
										`).concat(z("Width"),`
									</label>
									<input type="number" data-ref="widthInput" class="jodit-input"/>
								</div>
								<div class="jodit-form__group">
									<label>
										`).concat(z("Height"),`
									</label>
									<input type="number" data-ref="heightInput" class="jodit-input"/>
								</div>
								`).concat(L("Keep Aspect Ratio","keepAspectRatioResize"),`
							</div>
						</div>`):"",`
			`).concat(T.crop?'<div data-area="crop" class="'.concat(pn,"__slider ").concat(c2(!T.resize),`'">
							<div class="`).concat(pn,`__slider-title">
								`).concat(GM("crop"),`
								`).concat(z("Crop"),`
							</div>
							<div class="`).concat(pn,`__slider-content">
								`).concat(L("Keep Aspect Ratio","keepAspectRatioCrop"),`
							</div>
						</div>`):"",`
			</div>
		</div>
	</form>`))}(s.j,s.options);var g=ii(s.editor),b=g.resizeBox,w=g.cropBox;return s.resize_box=b,s.crop_box=w,s.sizes=s.editor.querySelector(".".concat(Hn,"__area.").concat(Hn,"__area_crop .jodit-image-editor__sizes")),s.resizeHandler=s.editor.querySelector(".".concat(Hn,"__resizer")),s.cropHandler=s.editor.querySelector(".".concat(Hn,"__croper")),s._dialog=s.j.dlg({buttons:["fullsize","dialog.close"]}),s._dialog.setContent(s.editor),s._dialog.setSize(s.o.width,s.o.height),s._dialog.setHeader([s.buttons.reset,s.buttons.save,s.buttons.saveas]),s.setHandlers(),s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&d2(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"ImageEditor"}},{key:"o",get:function(){return this.options}},{key:"hide",value:function(){this._dialog.close()}},{key:"open",value:function(i,s){var d=this;return this.j.async.promise(function(g){var b=new Date().getTime();d.image=d.j.c.element("img"),Ct("img,.jodit-icon_loader",d.resize_box).forEach(N.safeRemove),Ct("img,.jodit-icon_loader",d.crop_box).forEach(N.safeRemove),be(d.cropHandler,"background","transparent"),d.onSave=s,d.resize_box.appendChild(d.j.c.element("i",{class:"jodit-icon_loader"})),d.crop_box.appendChild(d.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(i)?i+="&_tst="+b:i+="?_tst="+b,d.image.setAttribute("src",i),d._dialog.open();var w=ii(d.editor),_=w.widthInput,T=w.heightInput,z=function(){d.isDestructed||(d.image.removeEventListener("load",z),d.naturalWidth=d.image.naturalWidth,d.naturalHeight=d.image.naturalHeight,_.value=d.naturalWidth.toString(),T.value=d.naturalHeight.toString(),d.ratio=d.naturalWidth/d.naturalHeight,d.resize_box.appendChild(d.image),d.cropImage=d.image.cloneNode(!0),d.crop_box.appendChild(d.cropImage),N.safeRemove.apply(null,Ct(".jodit-icon_loader",d.editor)),d.activeTab===op&&d.showCrop(),d.j.e.fire(d.resizeHandler,"updatesize"),d.j.e.fire(d.cropHandler,"updatesize"),d._dialog.setPosition(),d.j.e.fire("afterImageEditor"),g(d._dialog))};d.image.addEventListener("load",z),d.image.complete&&z()})}},{key:"onTitleModeClick",value:function(i){var s=this,d=i.target,g=d==null?void 0:d.parentElement;if(g){Ct(".".concat(Hn,"__slider,.").concat(Hn,"__area"),s.editor).forEach(function(w){return w.classList.remove("".concat(Hn,"_active"))}),g.classList.add("".concat(Hn,"_active")),this.activeTab=fe(g,"-area")||bc;var b=s.editor.querySelector(".".concat(Hn,"__area.").concat(Hn,"__area_")+s.activeTab);b&&b.classList.add("".concat(Hn,"_active")),s.activeTab===op&&s.showCrop()}}},{key:"onChangeSizeInput",value:function(i){var s,d=this,g=i.target,b=ii(this.editor),w=b.widthInput,_=b.heightInput,T=fe(g,"data-ref")==="widthInput",z=parseInt(g.value,10),L=T?d.o.min_width:d.o.min_height,D=T?d.o.min_height:d.o.min_width;z>L&&(be(d.image,T?"width":"height",z),d.resizeUseRatio&&(s=Math.round(T?z/d.ratio:z*d.ratio))>D&&(be(d.image,T?"height":"width",s),T?_.value=s.toString():w.value=s.toString())),this.j.e.fire(d.resizeHandler,"updatesize")}},{key:"onResizeHandleMouseDown",value:function(i){var s=this;s.target=i.target,i.preventDefault(),i.stopImmediatePropagation(),s.clicked=!0,s.start_x=i.clientX,s.start_y=i.clientY,s.activeTab===op?(s.top_x=be(s.cropHandler,"left"),s.top_y=be(s.cropHandler,"top"),s.width=s.cropHandler.offsetWidth,s.height=s.cropHandler.offsetHeight):(s.width=s.image.offsetWidth,s.height=s.image.offsetHeight),s.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}},{key:"onGlobalMouseUp",value:function(i){this.clicked&&(this.clicked=!1,i.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}},{key:"onGlobalMouseMove",value:function(i){var s=this;if(s.clicked){var d=ii(this.editor),g=d.widthInput,b=d.heightInput;s.diff_x=i.clientX-s.start_x,s.diff_y=i.clientY-s.start_y,s.activeTab===bc&&s.resizeUseRatio||s.activeTab===op&&s.cropUseRatio?s.diff_x?(s.new_w=s.width+s.diff_x,s.new_h=Math.round(s.new_w/s.ratio)):(s.new_h=s.height+s.diff_y,s.new_w=Math.round(s.new_h*s.ratio)):(s.new_w=s.width+s.diff_x,s.new_h=s.height+s.diff_y),s.activeTab===bc?(s.new_w>s.o.resizeMinWidth&&(be(s.image,"width",s.new_w+"px"),g.value=s.new_w.toString()),s.new_h>s.o.resizeMinHeight&&(be(s.image,"height",s.new_h+"px"),b.value=s.new_h.toString()),this.j.e.fire(s.resizeHandler,"updatesize")):(s.target!==s.cropHandler?(s.top_x+s.new_w>s.cropImage.offsetWidth&&(s.new_w=s.cropImage.offsetWidth-s.top_x),s.top_y+s.new_h>s.cropImage.offsetHeight&&(s.new_h=s.cropImage.offsetHeight-s.top_y),be(s.cropHandler,{width:s.new_w,height:s.new_h})):(s.top_x+s.diff_x+s.cropHandler.offsetWidth>s.cropImage.offsetWidth&&(s.diff_x=s.cropImage.offsetWidth-s.top_x-s.cropHandler.offsetWidth),be(s.cropHandler,"left",s.top_x+s.diff_x),s.top_y+s.diff_y+s.cropHandler.offsetHeight>s.cropImage.offsetHeight&&(s.diff_y=s.cropImage.offsetHeight-s.top_y-s.cropHandler.offsetHeight),be(s.cropHandler,"top",s.top_y+s.diff_y)),this.j.e.fire(s.cropHandler,"updatesize"))}}},{key:"destruct",value:function(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),N.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,".".concat(Hn)).off(".".concat(Hn)),u2(md(c.prototype),"destruct",this).call(this))}}],u&&s$(h.prototype,u),c}(ha);function f2(l,c,h,u,i,s){var d=this;return this.getInstance("ImageEditor",this.o).open(l,function(g,b,w,_){return Mr(b.action==="resize"?d.dataProvider.resize:d.dataProvider.crop,h,u,c,g,b.box).then(function(T){T&&(w(),i&&i())}).catch(function(T){_(T),s&&s(T)})})}function KM(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}function l$(l){return function(){var c=this,h=arguments;return new Promise(function(u,i){var s=l.apply(c,h);function d(b){KM(s,u,i,d,g,"next",b)}function g(b){KM(s,u,i,d,g,"throw",b)}d(void 0)})}}Di.calcValueByPercent=function(l,c){var h,u=c.toString(),i=parseFloat(l.toString());return(h=/^[-+]?[0-9]+(px)?$/.exec(u))?parseInt(u,10):(h=/^([-+]?[0-9.]+)%$/.exec(u))?Math.round(i*(parseFloat(h[1])/100)):i||0},el([Ce],Di.prototype,"hide",null),el([Ce],Di.prototype,"open",null),el([Ce],Di.prototype,"onTitleModeClick",null),el([Ii(),Ce],Di.prototype,"onChangeSizeInput",null),el([Ce],Di.prototype,"onResizeHandleMouseDown",null),el([Ce],Di.prototype,"onGlobalMouseUp",null),el([Za(10)],Di.prototype,"onGlobalMouseMove",null),Di=gy=el([Dt],Di);var ip="jodit-file-browser-preview",JM=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"next",c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"right";return'<div class="'.concat(ip,"__navigation ").concat(ip,"__navigation_arrow_").concat(l,'">')+""+Ke.get("angle-"+c)+"</a>"};function c$(l){if(!l.o.contextMenu)return function(){};var c=new rp(l);return function(h){var u=ap(h.target,l.container);if(u){var i=u,s=l.options,d=function(g){return fe(i,g)||""};return l.async.setTimeout(function(){var g=QM(u,l2(l));g&&(l.state.activeElements=[g],c.show(h.clientX,h.clientY,[!(d("data-is-file")==="1"||!s.editImage||!l.dataProvider.canI("ImageResize")&&!l.dataProvider.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec:function(){return f2.call(l,d("href"),d("data-name"),d("data-path"),d("data-source"))}},!!l.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec:function(){l.e.fire("fileRename.filebrowser",d("data-name"),d("data-path"),d("data-source"))}},!!l.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",exec:l$(function(){var b;return function(w,_){var T,z,L,D,q={label:0,sent:function(){if(1&L[0])throw L[1];return L[1]},trys:[],ops:[]};return D={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function Y(X){return function(J){return function($){if(T)throw new TypeError("Generator is already executing.");for(;q;)try{if(T=1,z&&(L=2&$[0]?z.return:$[0]?z.throw||((L=z.return)&&L.call(z),0):z.next)&&!(L=L.call(z,$[1])).done)return L;switch(z=0,L&&($=[2&$[0],L.value]),$[0]){case 0:case 1:L=$;break;case 4:return q.label++,{value:$[1],done:!1};case 5:q.label++,z=$[1],$=[0];continue;case 7:$=q.ops.pop(),q.trys.pop();continue;default:if(!((L=(L=q.trys).length>0&&L[L.length-1])||$[0]!==6&&$[0]!==2)){q=0;continue}if($[0]===3&&(!L||$[1]>L[0]&&$[1]<L[3])){q.label=$[1];break}if($[0]===6&&q.label<L[1]){q.label=L[1],L=$;break}if(L&&q.label<L[2]){q.label=L[2],q.ops.push($);break}L[2]&&q.ops.pop(),q.trys.pop();continue}$=_.call(w,q)}catch(ee){$=[6,ee],z=0}finally{T=L=0}if(5&$[0])throw $[1];return{value:$[0]?$[1]:void 0,done:!0}}([X,J])}}}(this,function(w){switch(w.label){case 0:return w.trys.push([0,2,,3]),[4,XM(l,d("data-name"),d("data-source"))];case 1:return w.sent(),[3,3];case 2:return b=w.sent(),[2,l.status(b)];case 3:return l.state.activeElements=[],[2,es(l).catch(l.status)]}})})},!!s.preview&&{icon:"eye",title:"Preview",exec:function(){var b=l.dlg({buttons:["fullsize","dialog.close"]}),w=l.c.div(ip,'<div class="jodit-icon_loader"></div>'),_=l.c.div(ip+"__box"),T=l.c.fromHTML(JM()),z=l.c.fromHTML(JM("prev","left")),L=function(D){var q=l.c.element("img");q.setAttribute("src",D);var Y=function(){var X;l.isInDestruct||(l.e.off(q,"load"),N.detach(w),s.showPreviewNavigation&&(N.prevWithClass(i,l.files.getFullElName("item"))&&w.appendChild(z),N.nextWithClass(i,l.files.getFullElName("item"))&&w.appendChild(T)),w.appendChild(_),_.appendChild(q),b.setPosition(),(X=l==null?void 0:l.events)===null||X===void 0||X.fire("previewOpenedAndLoaded"))};l.e.on(q,"load",Y),q.complete&&Y()};l.e.on([T,z],"click",function(){if(!(i=this===T?N.nextWithClass(i,l.files.getFullElName("item")):N.prevWithClass(i,l.files.getFullElName("item"))))throw ht("Need element");N.detach(w),N.detach(_),w.innerHTML='<div class="jodit-icon_loader"></div>',L(d("href"))}),l.e.on("beforeDestruct",function(){b.destruct()}),b.container.classList.add(ip+"__dialog"),b.setContent(w),b.setPosition(),b.open(),L(d("href")),l.events.on("beforeDestruct",function(){b.destruct()}).fire("previewOpened")}},{icon:"upload",title:"Download",exec:function(){var b=d("href");b&&l.ow.open(b)}}]))},l.defaultTimeout),l.e.on("beforeClose",function(){c.close()}).on("beforeDestruct",function(){return c.destruct()}),h.stopPropagation(),h.preventDefault(),!1}}}function h2(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}var ap=function(l,c){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"a";return N.closest(l,function(u){return N.isTag(u,h)},c)},QM=function(l,c){return c[l.dataset.key||""].item};function u$(){var l=this,c=!1,h=l2(this),u=this;u.e.on(u.tree.container,"dragstart",function(i){var s=ap(i.target,u.container);s&&u.o.moveFolder&&(c=s)}).on(u.tree.container,"drop",function(i){if((u.o.moveFile||u.o.moveFolder)&&c){var s=fe(c,"-path")||"";if(!u.o.moveFolder&&c.classList.contains(l.tree.getFullElName("item"))||c.classList.contains(l.files.getFullElName("item"))&&(s+=fe(c,"-name"),!u.o.moveFile))return!1;var d=ap(i.target,u.container);if(!d)return;u.dataProvider.move(s,fe(d,"-path")||"",fe(d,"-source")||"",c.classList.contains(l.files.getFullElName("item"))).then(function(){return es(l)}).catch(u.status),c=!1}}).on(u.files.container,"contextmenu",c$(u)).on(u.files.container,"click",function(i){Uh(i)||(l.state.activeElements=[])}).on(u.files.container,"click",function(i){var s=ap(i.target,u.container);if(s){var d=QM(s,h);if(d)return Uh(i)?u.state.activeElements=function(g){return function(b){if(Array.isArray(b))return h2(b)}(g)||function(b){if(typeof Symbol<"u"&&b[Symbol.iterator]!=null||b["@@iterator"]!=null)return Array.from(b)}(g)||function(b,w){if(b){if(typeof b=="string")return h2(b,w);var _=Object.prototype.toString.call(b).slice(8,-1);return _==="Object"&&b.constructor&&(_=b.constructor.name),_==="Map"||_==="Set"?Array.from(_):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?h2(b,w):void 0}}(g)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(u.state.activeElements).concat([d]):u.state.activeElements=[d],i.stopPropagation(),!1}}).on(u.files.container,"dragstart",function(i){if(u.o.moveFile){var s=ap(i.target,u.container);if(!s)return;c=s}}).on(u.container,"drop",function(i){return i.preventDefault()})}function eI(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function d$(){var l=this,c=this.state,h=this.dataProvider,u=this;u.e.on("view.filebrowser",function(i){i!==c.view&&(c.view=i)}).on("sort.filebrowser",function(i){i!==c.sortBy&&(c.sortBy=i,np(u))}).on("filter.filebrowser",function(i){i!==c.filterWord&&(c.filterWord=i,np(u))}).on("openFolder.filebrowser",function(i){var s;s=i.name===".."?i.path.split("/").filter(function(d){return d.length}).slice(0,-1).join("/"):Yu(i.path,i.name),u.state.currentPath=s,u.state.currentSource=i.name==="."?YM:i.source}).on("removeFolder.filebrowser",function(i){u.confirm("Are you sure?","Delete",function(s){s&&h.folderRemove(i.path,i.name,i.source).then(function(d){return u.status(d,!0),es(u)}).catch(u.status)})}).on("renameFolder.filebrowser",function(i){u.prompt("Enter new name","Rename",function(s){if(!q_(s))return u.status(u.i18n("Enter new name")),!1;h.folderRename(i.path,i.name,s,i.source).then(function(d){return u.state.activeElements=[],u.status(d,!0),es(u)}).catch(u.status)},"type name",i.name)}).on("addFolder.filebrowser",function(i){u.prompt("Enter Directory name","Create directory",function(s){h.createFolder(s,i.path,i.source).then(function(){return es(u)}).catch(u.status)},"type name")}).on("fileRemove.filebrowser",function(){u.state.activeElements.length&&u.confirm("Are you sure?","",function(i){if(i){var s=[];u.state.activeElements.forEach(function(d){s.push(XM(u,d.file||d.name||"",d.sourceName))}),u.state.activeElements=[],Promise.all(s).then(function(){return es(u).catch(u.status)},u.status)}})}).on("edit.filebrowser",function(){if(u.state.activeElements.length===1){var i=function(s,d){return function(g){if(Array.isArray(g))return g}(s)||function(g,b){var w=g==null?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(w!=null){var _,T,z=[],L=!0,D=!1;try{for(w=w.call(g);!(L=(_=w.next()).done)&&(z.push(_.value),!b||z.length!==b);L=!0);}catch(q){D=!0,T=q}finally{try{L||w.return==null||w.return()}finally{if(D)throw T}}return z}}(s,d)||function(g,b){if(g){if(typeof g=="string")return eI(g,b);var w=Object.prototype.toString.call(g).slice(8,-1);return w==="Object"&&g.constructor&&(w=g.constructor.name),w==="Map"||w==="Set"?Array.from(w):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?eI(g,b):void 0}}(s,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(l.state.activeElements,1)[0];f2.call(u,i.fileURL,i.file||"",i.path,i.sourceName)}}).on("fileRename.filebrowser",function(i,s,d){u.state.activeElements.length===1&&u.prompt("Enter new name","Rename",function(g){if(!q_(g))return u.status(u.i18n("Enter new name")),!1;h.fileRename(s,i,g,d).then(function(b){u.state.activeElements=[],u.status(b,!0),np(u)}).catch(u.status)},"type name",i)}).on("update.filebrowser",function(){es(l).then(l.status,l.status)})}function f$(){var l=this,c=l2(this),h=this,u=h.state,i=h.files,s=h.create,d=h.options;u.on(["change.currentPath","change.currentSource"],this.async.debounce(function(){l.o.saveStateInStorage&&l.o.saveStateInStorage.storeLastOpenedFolder&&l.storage.set("currentPath",l.state.currentPath).set("currentSource",l.state.currentSource),es(l).catch(l.status)},this.defaultTimeout)).on("beforeChange.activeElements",function(){u.activeElements.forEach(function(g){var b=g.uniqueHashKey,w=c[b].elm;w&&w.classList.remove(i.getFullElName("item","active",!0))})}).on("change.activeElements",function(){l.e.fire("changeSelection"),u.activeElements.forEach(function(g){var b=g.uniqueHashKey,w=c[b].elm;w&&w.classList.add(i.getFullElName("item","active",!0))})}).on("change.view",function(){i.setMod("view",u.view),l.o.saveStateInStorage&&l.o.saveStateInStorage.storeView&&l.storage.set("view",u.view)}).on("change.sortBy",function(){l.o.saveStateInStorage&&l.o.saveStateInStorage.storeSortBy&&l.storage.set("sortBy",u.sortBy)}).on("change.elements",this.async.debounce(function(){N.detach(i.container),u.elements.length?u.elements.forEach(function(g){l.files.container.appendChild(function(b){var w=b.uniqueHashKey;if(c[w])return c[w].elm;var _=s.fromHTML(d.getThumbTemplate.call(l,b,b.source,b.sourceName.toString()));return _.dataset.key=w,c[w]={item:b,elm:_},c[w].elm}(g))}):i.container.appendChild(s.div(l.componentName+"_no-files_true",l.i18n("There are no files")))},this.defaultTimeout)).on("change.sources",this.async.debounce(function(){N.detach(l.tree.container),u.sources.forEach(function(g){var b=g.name;if(b&&b!=="default"&&l.tree.container.appendChild(s.div(l.tree.getFullElName("source-title"),b)),g.folders.forEach(function(_){var T=s.a(l.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":Yu(g.path,_+"/"),"data-name":_,"data-source":b,"data-source-path":g.path},s.span(l.tree.getFullElName("item-title"),_)),z=function(q){return function(Y){l.e.fire("".concat(q,".filebrowser"),{name:_,path:Yu(g.path+"/"),source:b}),Y.stopPropagation(),Y.preventDefault()}};if(l.e.on(T,"click",z("openFolder")),l.tree.container.appendChild(T),_!==".."&&_!=="."){if(d.renameFolder&&l.dataProvider.canI("FolderRename")){var L=sr(l,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});L.onAction(z("renameFolder")),T.appendChild(L.container)}if(d.deleteFolder&&l.dataProvider.canI("FolderRemove")){var D=sr(l,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});D.onAction(z("removeFolder")),T.appendChild(D.container)}}}),d.createNewFolder&&l.dataProvider.canI("FolderCreate")){var w=sr(l,"plus","Add folder","secondary");w.onAction(function(){l.e.fire("addFolder",{path:Yu(g.path+"/"),source:b})}),l.tree.append(w)}})},this.defaultTimeout))}function h$(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function my(l){return my=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},my(l)}function p2(l,c){return p2=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},p2(l,c)}function tI(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tI=function(){return!!l})()}var rI=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=my(s=c),function(g,b){return!b||((w=b)&&typeof Symbol<"u"&&w.constructor===Symbol?"symbol":typeof w)!="object"&&typeof b!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(g):b;var w}(i,tI()?Reflect.construct(s,d||[],my(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&p2(i,s)}(c,l),h=c,(u=[{key:"className",value:function(){return"FileBrowserFiles"}}])&&h$(h.prototype,u),c}(Kn);function p$(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function vy(l){return vy=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},vy(l)}function g2(l,c){return g2=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},g2(l,c)}function nI(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nI=function(){return!!l})()}var g$=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=vy(s=c),function(g,b){return!b||((w=b)&&typeof Symbol<"u"&&w.constructor===Symbol?"symbol":typeof w)!="object"&&typeof b!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(g):b;var w}(i,nI()?Reflect.construct(s,d||[],vy(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&g2(i,s)}(c,l),h=c,(u=[{key:"className",value:function(){return"FileBrowserTree"}}])&&p$(h.prototype,u),c}(Kn);function m$(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function m2(l,c,h){return m2=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=vd(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},m2(l,c,h||l)}function vd(l){return vd=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},vd(l)}function v2(l,c){return v2=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},v2(l,c)}function oI(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function iI(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iI=function(){return!!l})()}var yc=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":oI(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},ts=function(l){function c(i){var s;(function(Y,X){if(!(Y instanceof X))throw new TypeError("Cannot call a class as a function")})(this,c),(s=function(Y,X,J){return X=vd(X),function($,ee){return!ee||oI(ee)!=="object"&&typeof ee!="function"?function(ce){if(ce===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce}($):ee}(Y,iI()?Reflect.construct(X,J||[],vd(Y).constructor):X.apply(Y,J))}(this,c,[i])).browser=s.c.div(s.componentName),s.status_line=s.c.div(s.getFullElName("status")),s.tree=new g$(s),s.files=new rI(s),s.state=Nb({currentPath:"",currentSource:YM,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),s.errorHandler=function(Y){var X,J;Xs(Y)||(X=Y,((J=Error)!=null&&typeof Symbol<"u"&&J[Symbol.hasInstance]?J[Symbol.hasInstance](X):X instanceof J)?s.status(s.i18n(Y.message)):s.status(s.dataProvider.getMessage(Y)))},s.close=function(){s._dialog.close()},s.__prevButtons=[],s.attachEvents(i);var d=s;d.options=fn(i||{},de.defaultOptions.filebrowser),d.browser.component=s,d.container=d.browser,d.o.showFoldersPanel&&d.browser.appendChild(d.tree.container),d.browser.appendChild(d.files.container),d.browser.appendChild(d.status_line),d$.call(d),u$.call(d),f$.call(d),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(function(Y){s.options[Y]!=null&&(s.options[Y]=fn(s.options[Y],s.o.ajax))});var g=s.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},b=g.storeView,w=g.storeSortBy,_=g.storeLastOpenedFolder,T=b&&s.storage.get("view");T&&s.o.view==null?d.state.view=T==="list"?"list":"tiles":d.state.view=d.o.view==="list"?"list":"tiles",d.files.setMod("view",d.state.view);var z=w&&d.storage.get("sortBy");if(z){var L=z.split("-");d.state.sortBy=["changed","name","size"].includes(L[0])?z:"changed-desc"}else d.state.sortBy=d.o.sortBy||"changed-desc";if(_){var D=d.storage.get("currentPath"),q=d.storage.get("currentSource");d.state.currentPath=D??"",d.state.currentSource=q??""}return d.initUploader(d),d.setStatus(Xt.ready),s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&v2(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"FileBrowser"}},{key:"dataProvider",get:function(){return function(i,s){return new a$(i,s)}(this,this.options)}},{key:"onSelect",value:function(i){var s=this;return function(){if(s.state.activeElements.length){var d=[],g=[];s.state.activeElements.forEach(function(w){var _=w.fileURL;_&&(d.push(_),g.push(w.isImage||!1))}),s.close();var b={baseurl:"",files:d,isImages:g};Pe(i)&&i(b),s.close()}return!1}}},{key:"_dialog",get:function(){var i,s=this,d=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:(i=this.o.headerButtons)!==null&&i!==void 0?i:["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(function(g){return d.events.on(d,g,function(){return s.e.fire(g)})}),d.setSize(this.o.width,this.o.height),d}},{key:"storage",get:function(){return Fj.makeStorage(!!this.o.saveStateInStorage,this.componentName)}},{key:"isOpened",get:function(){return this._dialog.isOpened&&this.browser.style.display!=="none"}},{key:"status",value:function(i,s){i&&!Xs(i)&&(Se(i)||(i=i.message),Se(i)&&cr(i).length&&this.message.message(i,s?"success":"error",this.o.howLongShowMsg))}},{key:"open",value:function(){var i=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.o.defaultCallback,d=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.state.onlyImages=d,this.async.promise(function(g,b){var w;if(!i.o.items||!i.o.items.url)throw ht("Need set options.filebrowser.ajax.url");var _=0;i.e.off(i.files.container,"dblclick").on(i.files.container,"dblclick",i.onSelect(s)).on(i.files.container,"touchstart",function(){var z=new Date().getTime();z-_<N5&&i.onSelect(s)(),_=z}).off("select.filebrowser").on("select.filebrowser",i.onSelect(s));var T=i.c.div();(w=i.toolbar)===null||w===void 0||w.appendTo(T),i.__updateToolbarButtons(),i._dialog.open(i.browser,T),i.e.fire("sort.filebrowser",i.state.sortBy),es(i).then(g,b).finally(function(){var z;i.isInDestruct||(z=i==null?void 0:i.e)===null||z===void 0||z.fire("fileBrowserReady.filebrowser")})}).catch(function(g){Xs(g)})}},{key:"__getButtons",value:function(){var i,s=this;return((i=this.o.buttons)!==null&&i!==void 0?i:[]).filter(function(d){if(!Se(d))return!0;switch(d){case"filebrowser.upload":return s.dataProvider.canI("FileUpload");case"filebrowser.edit":return s.dataProvider.canI("ImageResize")||s.dataProvider.canI("ImageCrop");case"filebrowser.remove":return s.dataProvider.canI("FileRemove")}return!0})}},{key:"initUploader",value:function(i){var s,d=this,g=this,b=fn(((s=i==null?void 0:i.options)===null||s===void 0?void 0:s.uploader)||{},de.defaultOptions.uploader),w=function(){return np(d)};g.uploader=g.getInstance("Uploader",b),g.uploader.setPath(g.state.currentPath).setSource(g.state.currentSource).bind(g.browser,w,g.errorHandler),this.state.on(["change.currentPath","change.currentSource"],function(){d.uploader.setPath(d.state.currentPath).setSource(d.state.currentSource)}),g.e.on("bindUploader.filebrowser",function(_){g.uploader.bind(_,w,g.errorHandler)})}},{key:"destruct",value:function(){var i;this.isInDestruct||((i=Zn(this,"_dialog"))===null||i===void 0||i.destruct(),m2(vd(c.prototype),"destruct",this).call(this),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}},{key:"__updateToolbarButtons",value:function(){var i,s=this.__getButtons();(function(d,g){if(d.length!==g.length)return!1;for(var b=0;b<d.length;b++)if(d[b]!==g[b])return!1;return!0})(this.__prevButtons,s)||(this.__prevButtons=s,(i=this.toolbar)===null||i===void 0||i.build(s))}}],u&&m$(h.prototype,u),c}(gd);function v$(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function by(l,c,h){return by=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=xc(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},by(l,c,h||l)}function xc(l){return xc=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},xc(l)}function b2(l,c){return b2=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},b2(l,c)}function aI(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function sI(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sI=function(){return!!l})()}yc([vr],ts.prototype,"dataProvider",null),yc([vr],ts.prototype,"_dialog",null),yc([vr],ts.prototype,"storage",null),yc([Ce],ts.prototype,"status",null),yc([Ce],ts.prototype,"open",null),yc([_e("dataProvider:changePermissions")],ts.prototype,"__updateToolbarButtons",null),ts=yc([Ku(IM)],ts);var y2=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":aI(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},ut=function(l){function c(i){var s;return function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(d,g,b){return g=xc(g),function(w,_){return!_||aI(_)!=="object"&&typeof _!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(w):_}(d,sI()?Reflect.construct(g,b||[],xc(d).constructor):g.apply(d,b))}(this,c,[i])).buttons=[],s.hasStyle=!1,s.__inited=!1,i.e.on("afterPluginSystemInit",s.__afterPluginSystemInit).on("afterInit",s.__afterInit).on("beforeDestruct",s.__beforeDestruct),s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&b2(i,s)}(c,l),h=c,(u=[{key:"className",value:function(){return"Plugin"}},{key:"__afterPluginSystemInit",value:function(){var i=this.j,s=this.buttons;s&&_n(i)&&s.forEach(function(d){i.registerButton(d)})}},{key:"__afterInit",value:function(){this.__inited=!0,this.setStatus(Xt.ready),this.afterInit(this.jodit)}},{key:"init",value:function(i){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}},{key:"__beforeDestruct",value:function(){var i;if(!this.isInDestruct){var s=this.j;if(s.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(Xt.beforeDestruct),!this.__inited)return by(xc(c.prototype),"destruct",this).call(this);_n(s)&&((i=this.buttons)===null||i===void 0||i.forEach(function(d){s==null||s.unregisterButton(d)})),this.beforeDestruct(this.j),by(xc(c.prototype),"destruct",this).call(this)}}}])&&v$(h.prototype,u),c}(ha);function b$(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}ut.requires=[],y2([Ce],ut.prototype,"__afterPluginSystemInit",null),y2([Ce],ut.prototype,"__afterInit",null),y2([Ce],ut.prototype,"__beforeDestruct",null);var y$=function(){function l(u,i,s,d){(function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")})(this,l),this.oldValue=u,this.newValue=i,this.history=s,this.tick=d}var c,h;return c=l,(h=[{key:"undo",value:function(){this.history.snapshot.restore(this.oldValue)}},{key:"redo",value:function(){this.history.snapshot.restore(this.newValue)}}])&&b$(c.prototype,h),l}();function lI(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function x2(l,c,h){return x2=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=bd(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},x2(l,c,h||l)}function bd(l){return bd=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},bd(l)}function w2(l,c){return w2=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},w2(l,c)}function cI(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cI=function(){return!!l})()}var _2=function(l){function c(){var s;return function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(d,g,b){return g=bd(g),function(w,_){return!_||((T=_)&&typeof Symbol<"u"&&T.constructor===Symbol?"symbol":typeof T)!="object"&&typeof _!="function"?function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(w):_;var T}(d,cI()?Reflect.construct(g,b||[],bd(d).constructor):g.apply(d,b))}(this,c,arguments)).__isBlocked=!1,s.__levelOfTransaction=0,s}var h,u,i;return function(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),d&&w2(s,d)}(c,l),h=c,u=[{key:"className",value:function(){return"Snapshot"}},{key:"calcHierarchyLadder",value:function(s){var d=[];if(!s||!s.parentNode||!N.isOrContains(this.j.editor,s))return[];for(;s&&s!==this.j.editor;)s&&!c.isIgnoredNode(s)&&d.push(c.countNodesBeforeInParent(s)),s=s.parentNode;return d.reverse()}},{key:"getElementByLadder",value:function(s){var d,g=this.j.editor;for(d=0;g&&d<s.length;d+=1)g=g.childNodes[s[d]];return g}},{key:"isBlocked",get:function(){return this.__isBlocked}},{key:"__block",value:function(s){this.__isBlocked=s}},{key:"transaction",value:function(s){this.__block(!0),this.__levelOfTransaction+=1;try{s()}catch{}finally{this.__levelOfTransaction-=1,this.__levelOfTransaction===0&&this.__block(!1)}}},{key:"make",value:function(){var s={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};s.html=this.__getCleanedEditorValue(this.j.editor);var d=this.j.s.sel;if(d&&d.rangeCount){var g=d.getRangeAt(0),b=this.calcHierarchyLadder(g.startContainer),w=this.calcHierarchyLadder(g.endContainer),_=c.strokeOffset(g.startContainer,g.startOffset),T=c.strokeOffset(g.endContainer,g.endOffset);b.length||g.startContainer===this.j.editor||(_=0),w.length||g.endContainer===this.j.editor||(T=0),s.range={startContainer:b,startOffset:_,endContainer:w,endOffset:T}}return s}},{key:"restore",value:function(s){var d=this;this.transaction(function(){var g=d.storeScrollState();d.__getCleanedEditorValue(d.j.editor)!==s.html&&(d.j.value=s.html),d.restoreOnlySelection(s),d.restoreScrollState(g)})}},{key:"storeScrollState",value:function(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}},{key:"restoreScrollState",value:function(s){var d=this.j,g=d.ow;g.scrollTo(g.scrollX,s[0]),d.editor.scrollTop=s[1]}},{key:"restoreOnlySelection",value:function(s){try{if(s.range){var d=this.j.ed.createRange();d.setStart(this.getElementByLadder(s.range.startContainer),s.range.startOffset),d.setEnd(this.getElementByLadder(s.range.endContainer),s.range.endOffset),this.j.s.selectRange(d)}}catch{this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild)}}},{key:"destruct",value:function(){this.__block(!1),x2(bd(c.prototype),"destruct",this).call(this)}},{key:"__getCleanedEditorValue",value:function(s){var d=s.cloneNode(!0);return N.temporaryList(d).forEach(N.unwrap),d.innerHTML}}],i=[{key:"equal",value:function(s,d){return s.html===d.html&&JSON.stringify(s.range)===JSON.stringify(d.range)}},{key:"countNodesBeforeInParent",value:function(s){if(!s.parentNode)return 0;for(var d=s.parentNode.childNodes,g=0,b=null,w=0;w<d.length;w+=1){if(!b||this.isIgnoredNode(d[w])||N.isText(b)&&N.isText(d[w])||(g+=1),d[w]===s)return g;b=d[w]}return 0}},{key:"strokeOffset",value:function(s,d){for(;N.isText(s);)s=s.previousSibling,N.isText(s)&&s.nodeValue&&(d+=s.nodeValue.length);return d}},{key:"isIgnoredNode",value:function(s){return N.isText(s)&&!s.nodeValue||N.isTemporary(s)}}],u&&lI(h.prototype,u),i&&lI(h,i),c}(ha);function x$(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var w$=function(){function l(u){(function(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")})(this,l),this.size=u,this.commands=[],this.stackPosition=-1}var c,h;return c=l,(h=[{key:"length",get:function(){return this.commands.length}},{key:"clearRedo",value:function(){this.commands.length=this.stackPosition+1}},{key:"clear",value:function(){this.commands.length=0,this.stackPosition=-1}},{key:"push",value:function(u){this.clearRedo(),this.commands.push(u),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}},{key:"replace",value:function(u){this.commands[this.stackPosition]=u}},{key:"current",value:function(){return this.commands[this.stackPosition]}},{key:"undo",value:function(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}},{key:"redo",value:function(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}},{key:"canUndo",value:function(){return this.stackPosition>=0}},{key:"canRedo",value:function(){return this.stackPosition<this.commands.length-1}}])&&x$(c.prototype,h),l}();function _$(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function k2(l,c,h){return k2=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=yd(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},k2(l,c,h||l)}function yd(l){return yd=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},yd(l)}function j2(l,c){return j2=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},j2(l,c)}function uI(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function dI(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dI=function(){return!!l})()}de.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};var S2=function(l){function c(i){var s,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new w$(i.o.history.maxHistoryLength),g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new _2(i);return function(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(b,w,_){return w=yd(w),function(T,z){return!z||uI(z)!=="object"&&typeof z!="function"?function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(T):z}(b,dI()?Reflect.construct(w,_||[],yd(b).constructor):w.apply(b,_))}(this,c,[i])).updateTick=0,s.__stack=d,s.snapshot=g,i.o.history.enable&&i.e.on("afterAddPlace.history",function(){s.isInDestruct||(s.startValue=s.snapshot.make(),i.events.on("internalChange internalUpdate",function(){s.startValue=s.snapshot.make()}).on(i.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(function(b){return b+".history"}).join(" "),function(){s.startValue.html===s.j.getNativeEditorValue()&&(s.startValue=s.snapshot.make())}).on(s,"change.history",s.onChange))}),s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&j2(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"History"}},{key:"redo",value:function(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}},{key:"canRedo",value:function(){return this.__stack.canRedo()}},{key:"undo",value:function(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}},{key:"canUndo",value:function(){return this.__stack.canUndo()}},{key:"clear",value:function(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}},{key:"length",get:function(){return this.__stack.length}},{key:"startValue",get:function(){return this.__startValue},set:function(i){this.__startValue=i}},{key:"__upTick",value:function(){this.updateTick+=1}},{key:"onChange",value:function(){this.__processChanges()}},{key:"__processChanges",value:function(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}},{key:"updateStack",value:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0],s=this.snapshot.make();if(!_2.equal(s,this.startValue)){var d=new y$(this.startValue,s,this,this.updateTick);if(i){var g=this.__stack.current();g&&this.updateTick===g.tick&&this.__stack.replace(d)}else this.__stack.push(d);this.startValue=s,this.fireChangeStack()}}},{key:"fireChangeStack",value:function(){var i;this.j&&!this.j.isInDestruct&&((i=this.j.events)===null||i===void 0||i.fire("changeStack"))}},{key:"destruct",value:function(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),k2(yd(c.prototype),"destruct",this).call(this))}}],u&&_$(h.prototype,u),c}(ha);function k$(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function C2(l,c,h){return C2=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=xd(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},C2(l,c,h||l)}function xd(l){return xd=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},xd(l)}function A2(l,c){return A2=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},A2(l,c)}function fI(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function hI(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hI=function(){return!!l})()}(function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":uI(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);s>3&&d&&Object.defineProperty(c,h,d)})([Ii()],S2.prototype,"onChange",null);var yy=function(l){function c(i,s){var d;return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),(d=function(g,b,w){return b=xd(b),function(_,T){return!T||fI(T)!=="object"&&typeof T!="function"?function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(_):T}(g,hI()?Reflect.construct(b,w||[],xd(g).constructor):b.apply(g,w))}(this,c,[i])).target=s,d.mods={},d.container=i.c.div("jodit-status-bar"),s.appendChild(d.container),d.hide(),d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&A2(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"StatusBar"}},{key:"hide",value:function(){this.container.classList.add("jodit_hidden")}},{key:"show",value:function(){this.container.classList.remove("jodit_hidden")}},{key:"isShown",get:function(){return!this.container.classList.contains("jodit_hidden")}},{key:"getHeight",value:function(){var i,s;return(s=(i=this.container)===null||i===void 0?void 0:i.offsetHeight)!==null&&s!==void 0?s:0}},{key:"findEmpty",value:function(){for(var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0],s=this.getElms(i?"item-right":"item"),d=0;d<s.length;d+=1)if(!s[d].innerHTML.trim().length)return s[d]}},{key:"append",value:function(i){var s,d=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=this.findEmpty(d)||this.j.c.div(this.getFullElName("item"));d&&g.classList.add(this.getFullElName("item-right")),g.appendChild(i),(s=this.container)===null||s===void 0||s.appendChild(g),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}},{key:"destruct",value:function(){this.isInDestruct||(this.setStatus(Xt.beforeDestruct),N.safeRemove(this.container),C2(xd(c.prototype),"destruct",this).call(this))}}],u&&k$(h.prototype,u),c}(ha);function pI(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function O2(l,c,h){return O2=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=wd(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},O2(l,c,h||l)}function wd(l){return wd=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},wd(l)}function E2(l,c){return E2=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},E2(l,c)}function gI(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function mI(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mI=function(){return!!l})()}yy=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":fI(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Dt,Ku(Qk,Jk)],yy);var xy=new WeakMap,sp=function(l){function c(){var s;return function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(d,g,b){return g=wd(g),function(w,_){return!_||gI(_)!=="object"&&typeof _!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(w):_}(d,mI()?Reflect.construct(g,b||[],wd(d).constructor):g.apply(d,b))}(this,c,arguments)).selected=new Set,s}var h,u,i;return function(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),d&&E2(s,d)}(c,l),h=c,u=[{key:"className",value:function(){return"Table"}},{key:"__recalculateStyles",value:function(){var s=dc(this.j,c,"style",!0),d=[];this.selected.forEach(function(g){var b=yP(g);b&&d.push(b)}),s.innerHTML=d.length?d.join(",")+"{".concat(this.jodit.options.table.selectionCellStyle,"}"):""}},{key:"addSelection",value:function(s){this.selected.add(s),this.__recalculateStyles();var d=N.closest(s,"table",this.j.editor);if(d){var g=c.__selectedByTable.get(d)||new Set;g.add(s),c.__selectedByTable.set(d,g)}}},{key:"removeSelection",value:function(s){this.selected.delete(s),this.__recalculateStyles();var d=N.closest(s,"table",this.j.editor);if(d){var g=c.__selectedByTable.get(d);g&&(g.delete(s),g.size||c.__selectedByTable.delete(d))}}},{key:"getAllSelectedCells",value:function(){return mr(this.selected)}},{key:"destruct",value:function(){return this.selected.clear(),O2(wd(c.prototype),"destruct",this).call(this)}},{key:"getRowsCount",value:function(s){return c.__getRowsCount(s)}},{key:"getColumnsCount",value:function(s){return c.__getColumnsCount(s)}},{key:"formalMatrix",value:function(s,d){return c.__formalMatrix(s,d)}},{key:"formalCoordinate",value:function(s,d){var g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return c.__formalCoordinate(s,d,g)}},{key:"appendRow",value:function(s,d,g){return c.__appendRow(s,d,g,this.j.createInside)}},{key:"removeRow",value:function(s,d){return c.__removeRow(s,d)}},{key:"appendColumn",value:function(s,d){var g=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],b=c.__formalMatrix(s);if(!g&&N.isCell(d.previousElementSibling))return this.appendColumn(s,d.previousElementSibling,!0);for(var w=g?d.cellIndex+((d.colSpan||1)-1):d.cellIndex,_=g?w+1:w,T=0;T<b.length;){var z=b[T];if(z[w]!==z[_]||w===_){var L=this.j.createInside.element("td");g?N.after(z[w],L):N.before(z[w],L),z[w].rowSpan>1&&(L.rowSpan=z[w].rowSpan)}else z[w].colSpan+=1;T+=z[w].rowSpan||1}}},{key:"removeColumn",value:function(s,d){return c.__removeColumn(s,d)}},{key:"getSelectedBound",value:function(s,d){return c.__getSelectedBound(s,d)}},{key:"normalizeTable",value:function(s){return c.__normalizeTable(s)}},{key:"mergeSelected",value:function(s){return c.__mergeSelected(s,this.j)}},{key:"splitHorizontal",value:function(s){return c.__splitHorizontal(s,this.j)}},{key:"splitVertical",value:function(s){return c.__splitVertical(s,this.j)}},{key:"setColumnWidthByDelta",value:function(s,d,g,b,w){return c.__setColumnWidthByDelta(s,d,g,b,w)}}],i=[{key:"__getSelectedCellsByTable",value:function(s){var d=c.__selectedByTable.get(s);return d?mr(d):[]}},{key:"__getRowsCount",value:function(s){return s.rows.length}},{key:"__getColumnsCount",value:function(s){return c.__formalMatrix(s).reduce(function(d,g){return Math.max(d,g.length)},0)}},{key:"__formalMatrix",value:function(s,d){for(var g=[[]],b=mr(s.rows),w=function(L,D){g[D]===void 0&&(g[D]=[]);for(var q,Y,X=L.colSpan,J=L.rowSpan,$=0;g[D][$];)$+=1;for(Y=0;Y<J;Y+=1)for(q=0;q<X;q+=1){if(g[D+Y]===void 0&&(g[D+Y]=[]),d&&d(L,D+Y,$+q,X,J)===!1)return!1;g[D+Y][$+q]=L}},_=0;_<b.length;_+=1)for(var T=mr(b[_].cells),z=0;z<T.length;z+=1)if(w(T[z],_)===!1)return g;return g}},{key:"__formalCoordinate",value:function(s,d){var g=arguments.length>2&&arguments[2]!==void 0&&arguments[2],b=0,w=0,_=1,T=1;return c.__formalMatrix(s,function(z,L,D,q,Y){if(d===z)return b=L,w=D,_=q||1,T=Y||1,g&&(w+=(q||1)-1,b+=(Y||1)-1),!1}),[b,w,_,T]}},{key:"__appendRow",value:function(s,d,g,b){var w,_;if(d)_=d.cloneNode(!0),Ct("td,th",d).forEach(function(L){var D=fe(L,"rowspan");if(D&&parseInt(D,10)>1){var q=parseInt(D,10)-1;fe(L,"rowspan",q>1?q:null)}}),Ct("td,th",_).forEach(function(L){L.innerHTML=""});else{var T=c.__getColumnsCount(s);_=b.element("tr");for(var z=0;z<T;z+=1)_.appendChild(b.element("td"))}g&&d&&d.nextSibling?d.parentNode&&d.parentNode.insertBefore(_,d.nextSibling):!g&&d?d.parentNode&&d.parentNode.insertBefore(_,d):(((w=s.getElementsByTagName("tbody"))===null||w===void 0?void 0:w[0])||s).appendChild(_)}},{key:"__removeRow",value:function(s,d){var g,b=c.__formalMatrix(s),w=s.rows[d];b[d].forEach(function(_,T){if(g=!1,d-1>=0&&b[d-1][T]===_)g=!0;else if(b[d+1]&&b[d+1][T]===_){if(_.parentNode===w&&_.parentNode.nextSibling){g=!0;for(var z=T+1;b[d+1][z]===_;)z+=1;var L=N.next(_.parentNode,function(q){return N.isTag(q,"tr")},s);L&&(b[d+1][z]?L.insertBefore(_,b[d+1][z]):L.appendChild(_))}}else N.safeRemove(_);if(g&&(_.parentNode===w||_!==b[d][T-1])){var D=_.rowSpan;fe(_,"rowspan",D-1>1?D-1:null)}}),N.safeRemove(w)}},{key:"__removeColumn",value:function(s,d){var g,b=c.__formalMatrix(s);b.forEach(function(w,_){var T=w[d];if(g=!1,d-1>=0&&b[_][d-1]===T||d+1<w.length&&b[_][d+1]===T?g=!0:N.safeRemove(T),g&&(_-1<0||T!==b[_-1][d])){var z=T.colSpan;fe(T,"colspan",z-1>1?(z-1).toString():null)}})}},{key:"__getSelectedBound",value:function(s,d){var g,b,w,_=[[1/0,1/0],[0,0]],T=c.__formalMatrix(s);for(g=0;g<T.length;g+=1)for(b=0;T[g]&&b<T[g].length;b+=1)d.includes(T[g][b])&&(_[0][0]=Math.min(g,_[0][0]),_[0][1]=Math.min(b,_[0][1]),_[1][0]=Math.max(g,_[1][0]),_[1][1]=Math.max(b,_[1][1]));for(g=_[0][0];g<=_[1][0];g+=1)for(w=1,b=_[0][1];b<=_[1][1];b+=1){for(;T[g]&&T[g][b-w]&&T[g][b]===T[g][b-w];)_[0][1]=Math.min(b-w,_[0][1]),_[1][1]=Math.max(b-w,_[1][1]),w+=1;for(w=1;T[g]&&T[g][b+w]&&T[g][b]===T[g][b+w];)_[0][1]=Math.min(b+w,_[0][1]),_[1][1]=Math.max(b+w,_[1][1]),w+=1;for(w=1;T[g-w]&&T[g][b]===T[g-w][b];)_[0][0]=Math.min(g-w,_[0][0]),_[1][0]=Math.max(g-w,_[1][0]),w+=1;for(w=1;T[g+w]&&T[g][b]===T[g+w][b];)_[0][0]=Math.min(g+w,_[0][0]),_[1][0]=Math.max(g+w,_[1][0]),w+=1}return _}},{key:"__normalizeTable",value:function(s){var d=[],g=c.__formalMatrix(s);c.__removeExtraColspans(g,d),c.__removeExtraRowspans(g,d);for(var b=0;b<g.length;b+=1)for(var w=0;w<g[b].length;w+=1)g[b][w]!==void 0&&(g[b][w].hasAttribute("rowspan")&&g[b][w].rowSpan===1&&fe(g[b][w],"rowspan",null),g[b][w].hasAttribute("colspan")&&g[b][w].colSpan===1&&fe(g[b][w],"colspan",null),g[b][w].hasAttribute("class")&&!fe(g[b][w],"class")&&fe(g[b][w],"class",null));c.__unmark(d)}},{key:"__removeExtraColspans",value:function(s,d){for(var g=0;g<s[0].length;g+=1){for(var b=1e6,w=!1,_=0;_<s.length;_+=1)if(s[_][g]!==void 0){if(s[_][g].colSpan<2){w=!0;break}b=Math.min(b,s[_][g].colSpan)}if(!w)for(var T=0;T<s.length;T+=1)s[T][g]!==void 0&&c.__mark(s[T][g],"colspan",s[T][g].colSpan-b+1,d)}}},{key:"__removeExtraRowspans",value:function(s,d){var g=0,b=0;for(g=0;g<s.length;g+=1){var w=1e6,_=!1;for(b=0;b<s[g].length;b+=1)if(s[g][b]!==void 0){if(s[g][b].rowSpan<2){_=!0;break}w=Math.min(w,s[g][b].rowSpan)}if(!_)for(b=0;b<s[g].length;b+=1)s[g][b]!==void 0&&c.__mark(s[g][b],"rowspan",s[g][b].rowSpan-w+1,d)}}},{key:"__mergeSelected",value:function(s,d){var g,b=[],w=c.__getSelectedBound(s,c.__getSelectedCellsByTable(s)),_=0,T=null,z=0,L=0,D=0,q=new Set,Y=[];w&&(w[0][0]-w[1][0]||w[0][1]-w[1][1])&&(c.__formalMatrix(s,function(X,J,$,ee,ce){if(J>=w[0][0]&&J<=w[1][0]&&$>=w[0][1]&&$<=w[1][1]){if(g=X,q.has(g))return;q.add(g),J===w[0][0]&&g.style.width&&(_+=g.offsetWidth),cr(X.innerHTML.replace(/<br(\/)?>/g,""))!==""&&b.push(X.innerHTML),ee>1&&(L+=ee-1),ce>1&&(D+=ce-1),T?(c.__mark(g,"remove",1,Y),wy(d).removeSelection(g)):(T=X,z=$)}}),L=w[1][1]-w[0][1]+1,D=w[1][0]-w[0][0]+1,T&&(L>1&&c.__mark(T,"colspan",L,Y),D>1&&c.__mark(T,"rowspan",D,Y),_&&(c.__mark(T,"width",(_/s.offsetWidth*100).toFixed(Th)+"%",Y),z&&c.__setColumnWidthByDelta(s,z,0,!0,Y)),T.innerHTML=b.join("<br/>"),wy(d).addSelection(T),q.delete(T),c.__unmark(Y),c.__normalizeTable(s),mr(s.rows).forEach(function(X){X.cells.length||N.safeRemove(X)})))}},{key:"__splitHorizontal",value:function(s,d){var g,b,w,_,T,z=[];c.__getSelectedCellsByTable(s).forEach(function(L){(b=d.createInside.element("td")).appendChild(d.createInside.element("br")),w=d.createInside.element("tr"),g=c.__formalCoordinate(s,L),L.rowSpan<2?(c.__formalMatrix(s,function(D,q,Y){g[0]===q&&g[1]!==Y&&D!==L&&c.__mark(D,"rowspan",D.rowSpan+1,z)}),N.after(N.closest(L,"tr",s),w),w.appendChild(b)):(c.__mark(L,"rowspan",L.rowSpan-1,z),c.__formalMatrix(s,function(D,q,Y){q>g[0]&&q<g[0]+L.rowSpan&&g[1]>Y&&D.parentNode.rowIndex===q&&(T=D),g[0]<q&&D===L&&(_=s.rows[q])}),T?N.after(T,b):_.insertBefore(b,_.firstChild)),L.colSpan>1&&c.__mark(b,"colspan",L.colSpan,z),c.__unmark(z),wy(d).removeSelection(L)}),this.__normalizeTable(s)}},{key:"__splitVertical",value:function(s,d){var g,b,w,_=[];c.__getSelectedCellsByTable(s).forEach(function(T){g=c.__formalCoordinate(s,T),T.colSpan<2?c.__formalMatrix(s,function(L,D,q){g[1]===q&&g[0]!==D&&L!==T&&c.__mark(L,"colspan",L.colSpan+1,_)}):c.__mark(T,"colspan",T.colSpan-1,_),(b=d.createInside.element("td")).appendChild(d.createInside.element("br")),T.rowSpan>1&&c.__mark(b,"rowspan",T.rowSpan,_);var z=T.offsetWidth;N.after(T,b),w=z/s.offsetWidth/2,c.__mark(T,"width",(100*w).toFixed(Th)+"%",_),c.__mark(b,"width",(100*w).toFixed(Th)+"%",_),c.__unmark(_),wy(d).removeSelection(T)}),c.__normalizeTable(s)}},{key:"__setColumnWidthByDelta",value:function(s,d,g,b,w){for(var _=c.__formalMatrix(s),T=0,z=0;z<_.length;z+=1){var L=_[z][d];if(!(L.colSpan>1&&_.length>1)){var D=(L.offsetWidth+g)/s.offsetWidth*100;c.__mark(L,"width",D.toFixed(Th)+"%",w),T=z;break}}for(var q=T+1;q<_.length;q+=1){var Y=_[q][d];c.__mark(Y,"width",null,w)}b||c.__unmark(w)}},{key:"__mark",value:function(s,d,g,b){var w;b.push(s);var _=(w=xy.get(s))!==null&&w!==void 0?w:{};_[d]=g===void 0?1:g,xy.set(s,_)}},{key:"__unmark",value:function(s){s.forEach(function(d){var g=xy.get(d);g&&(Object.keys(g).forEach(function(b){var w=g[b];switch(b){case"remove":N.safeRemove(d);break;case"rowspan":fe(d,"rowspan",kn(w)&&w>1?w:null);break;case"colspan":fe(d,"colspan",kn(w)&&w>1?w:null);break;case"width":w==null?(d.style.removeProperty("width"),fe(d,"style")||fe(d,"style",null)):d.style.width=w.toString()}delete g[b]}),xy.delete(d))})}}],u&&pI(h.prototype,u),i&&pI(h,i),c}(ha);sp.__selectedByTable=new WeakMap,function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":gI(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);s>3&&d&&Object.defineProperty(c,h,d)}([Ii()],sp.prototype,"__recalculateStyles",null);var wy=function(l){return l.getInstance("Table",l.o)},T2=new WeakMap;function vI(l,c){var h=function(i,s){if(Pe(i.o.buildData))return i.o.buildData.call(i,s);var d,g,b=i.ow.FormData;if(b!==void 0){if(d=s,((g=b)!=null&&typeof Symbol<"u"&&g[Symbol.hasInstance]?g[Symbol.hasInstance](d):d instanceof g)||Se(s))return s;var w=new b,_=s;return Object.keys(_).forEach(function(T){w.append(T,_[T])}),w}return s}(l,c),u=function(i){var s=new Ju({xhr:function(){var g=new XMLHttpRequest;return l.j.ow.FormData!==void 0&&g.upload?(l.j.progressbar.show().progress(10),g.upload.addEventListener("progress",function(b){if(b.lengthComputable){var w=b.loaded/b.total;w*=100,l.j.progressbar.show().progress(w),w>=100&&l.j.progressbar.hide()}},!1)):l.j.progressbar.hide(),g},method:l.o.method||"POST",data:i,url:Pe(l.o.url)?l.o.url(i):l.o.url,headers:l.o.headers,queryBuild:l.o.queryBuild,contentType:l.o.contentType.call(l,i),withCredentials:l.o.withCredentials||!1}),d=T2.get(l);return d||(d=new Set,T2.set(l,d)),d.add(s),l.j.e.one("beforeDestruct",s.destruct),s.send().then(function(g){return g.json()}).catch(function(g){return{success:!1,data:{messages:[g]}}}).finally(function(){s.destruct(),d==null||d.delete(s)})};return Ih(h)?h.then(u).catch(function(i){l.o.error.call(l,i)}):u(h)}function bI(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function j$(l,c){return function(h){if(Array.isArray(h))return h}(l)||function(h,u){var i=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(i!=null){var s,d,g=[],b=!0,w=!1;try{for(i=i.call(h);!(b=(s=i.next()).done)&&(g.push(s.value),!u||g.length!==u);b=!0);}catch(_){w=!0,d=_}finally{try{b||i.return==null||i.return()}finally{if(w)throw d}}return g}}(l,c)||function(h,u){if(h){if(typeof h=="string")return bI(h,u);var i=Object.prototype.toString.call(h).slice(8,-1);return i==="Object"&&h.constructor&&(i=h.constructor.name),i==="Map"||i==="Set"?Array.from(i):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?bI(h,u):void 0}}(l,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _y(l,c,h,u,i){if(!c)return Promise.reject(ht("Need files"));var s=l.o,d=mr(c);if(!d.length)return Promise.reject(ht("Need files"));var g=[];if(s.insertImageAsBase64URI&&function(ee,ce,ge,ye,Me,Ie){var st,Ft,it=function(){if((st=ee[Ft])&&st.type){var Qe=st.type.match(/\/([a-z0-9]+)/i),Or=Qe[1]?Qe[1].toLowerCase():"";if(!ce.includes(Or))return"continue";var rn=new FileReader;ge.push(ye.j.async.promise(function(Cn,It){rn.onerror=It,rn.onloadend=function(){var qn={baseurl:"",files:[rn.result],isImages:[!0]};(Pe(Me)?Me:Ie).call(ye,qn),Cn(qn)},rn.readAsDataURL(st)})),ee[Ft]=null}};for(Ft=0;Ft<ee.length;Ft+=1)it()}(d,s.imagesExtensions,g,l,h,s.defaultHandlerSuccess),d=d.filter(function(ee){return ee}),d.length){var b,w=new FormData;w.append(s.pathVariableName,l.path),w.append("source",l.source);for(var _=0;_<d.length;_+=1)if(b=d[_]){var T=/\.\w+$/.test(b.name),z=b.type.match(/\/([a-z0-9]+)/i),L=z&&z[1]?z[1].toLowerCase():"",D=d[_].name||Math.random().toString().replace(".","");if(!T&&L){var q=L;["jpeg","jpg"].includes(q)&&(q="jpeg|jpg"),new RegExp(".("+q+")$","i").test(D)||(D+="."+L)}var Y=j$(s.processFileName.call(l,s.filesVariableName(_),d[_],D),3),X=Y[0],J=Y[1],$=Y[2];w.append(X,J,$)}i&&i(w),s.data&&tr(s.data)&&Object.keys(s.data).forEach(function(ee){w.append(ee,s.data[ee])}),s.prepareData.call(l,w),g.push(vI(l,w).then(function(ee){return s.isSuccess.call(l,ee)?((Pe(h)?h:s.defaultHandlerSuccess).call(l,s.process.call(l,ee)),ee):((Pe(u)?u:s.defaultHandlerError).call(l,ht(s.getMessage.call(l,ee))),ee)}).then(function(){l.j.events&&l.j.e.fire("filesWereUploaded")}))}return Promise.all(g)}function ky(l){return!!(l&&l.files&&l.files.length>0)}function yI(l){return!!(l&&l.items&&l.items.length>0)}function xI(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function S$(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function R2(l,c,h){return R2=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=_d(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},R2(l,c,h||l)}function _d(l){return _d=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},_d(l)}function P2(l,c){return P2=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},P2(l,c)}function wI(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wI=function(){return!!l})()}de.prototype.enableDragAndDropFileToEditor=!0,de.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","png","jpeg","gif"],headers:null,data:null,filesVariableName:function(l){return"files[".concat(l,"]")},withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:function(l){return l},isSuccess:function(l){return l.success},getMessage:function(l){return l.data.messages!==void 0&&Nt(l.data.messages)?l.data.messages.join(" "):""},processFileName:function(l,c,h){return[l,c,h]},process:function(l){return l.data},error:function(l){this.j.message.error(l.message,4e3)},getDisplayName:function(l,c){return l+c},defaultHandlerSuccess:function(l){var c=this,h=this.j||this;_n(h)&&l.files&&l.files.length&&l.files.forEach(function(u,i){var s=function(w,_){return function(T){if(Array.isArray(T))return T}(w)||function(T,z){var L=T==null?null:typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(L!=null){var D,q,Y=[],X=!0,J=!1;try{for(L=L.call(T);!(X=(D=L.next()).done)&&(Y.push(D.value),!z||Y.length!==z);X=!0);}catch($){J=!0,q=$}finally{try{X||L.return==null||L.return()}finally{if(J)throw q}}return Y}}(w,_)||function(T,z){if(T){if(typeof T=="string")return xI(T,z);var L=Object.prototype.toString.call(T).slice(8,-1);return L==="Object"&&T.constructor&&(L=T.constructor.name),L==="Map"||L==="Set"?Array.from(L):L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L)?xI(T,z):void 0}}(w,_)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(l.isImages&&l.isImages[i]?["img","src"]:["a","href"],2),d=s[0],g=s[1],b=h.createInside.element(d);b.setAttribute(g,l.baseurl+u),d==="a"&&(b.textContent=h.o.uploader.getDisplayName.call(c,l.baseurl,u)),d==="img"?h.s.insertImage(b,null,h.o.imageDefaultWidth):h.s.insertNode(b)})},defaultHandlerError:function(l){this.j.message.error(l.message)},contentType:function(l){return(this.ow.FormData===void 0||typeof l=="string")&&"application/x-www-form-urlencoded; charset=UTF-8"}};var C$=function(l){function c(i,s){var d;return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),(d=function(g,b,w){return b=_d(b),function(_,T){return!T||((z=T)&&typeof Symbol<"u"&&z.constructor===Symbol?"symbol":typeof z)!="object"&&typeof T!="function"?function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(_):T;var z}(g,wI()?Reflect.construct(b,w||[],_d(g).constructor):b.apply(g,w))}(this,c,[i])).path="",d.source="default",d.options=fn(s||{},fn(de.defaultOptions.uploader,_n(i)?i.o.uploader:{})),d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&P2(i,s)}(c,l),h=c,u=[{key:"j",get:function(){return this.jodit}},{key:"className",value:function(){return"Uploader"}},{key:"o",get:function(){return this.options}},{key:"setPath",value:function(i){return this.path=i,this}},{key:"setSource",value:function(i){return this.source=i,this}},{key:"bind",value:function(i,s,d){var g=function(){i.classList.remove("jodit_drag_hover")},b=this,w=function(_){var T,z,L,D=_.clipboardData,q=function(J){z&&(J.append("extension",L),J.append("mimetype",z.type))};if(!Du&&ky(D))return _y(b,D.files,s,d).finally(g),!1;if(yI(D)){var Y=D.items;for(T=0;T<Y.length;T+=1)if(Y[T].kind==="file"&&Y[T].type==="image/png"){if(z=Y[T].getAsFile()){var X=z.type.match(/\/([a-z0-9]+)/i);L=X[1]?X[1].toLowerCase():"",_y(b,[z],s,d,q).finally(g)}_.preventDefault();break}}};b.j&&b.j.editor!==i?b.j.e.on(i,"paste",w):b.j.e.on("beforePaste",w),this.attachEvents(i,s,d,g)}},{key:"attachEvents",value:function(i,s,d,g){var b=this;b.j.e.on(i,"dragend dragover dragenter dragleave drop",function(_){_.preventDefault()}).on(i,"dragover",function(_){(ky(_.dataTransfer)||yI(_.dataTransfer))&&(i.classList.add("jodit_drag_hover"),_.preventDefault())}).on(i,"dragend dragleave",function(_){i.classList.remove("jodit_drag_hover"),ky(_.dataTransfer)&&_.preventDefault()}).on(i,"drop",function(_){i.classList.remove("jodit_drag_hover"),ky(_.dataTransfer)&&(_.preventDefault(),_.stopImmediatePropagation(),_y(b,_.dataTransfer.files,s,d).finally(g))});var w=i.querySelector("input[type=file]");w&&b.j.e.on(w,"change",function(){_y(b,w.files,s,d).then(function(){w.value="",/safari/i.test(navigator.userAgent)||(w.type="",w.type="file")}).finally(g)})}},{key:"uploadRemoteImage",value:function(i,s,d){var g=this,b=g.o,w=Pe(d)?d:b.defaultHandlerError;vI(g,{action:"fileUploadRemote",url:i}).then(function(_){b.isSuccess.call(g,_)?(Pe(s)?s:b.defaultHandlerSuccess).call(g,b.process.call(g,_)):w.call(g,ht(b.getMessage.call(g,_)))}).catch(function(_){return w.call(g,_)})}},{key:"destruct",value:function(){this.setStatus(Xt.beforeDestruct);var i=T2.get(this);i&&(i.forEach(function(s){try{s.destruct()}catch{}}),i.clear()),R2(_d(c.prototype),"destruct",this).call(this)}}],u&&S$(h.prototype,u),c}(ha),z2="wrap",rs="unwrap",jy="change",Sy="unset",kd="initial",wc="replace",ga="commitStyle";function _I(l,c,h){var u=h.s.createRange(),i=ni(c.previousSibling)?c.previousSibling:c;u.setStartBefore(l),u.setEndBefore(i),kI(l,u,!0);var s=ni(c.nextSibling)?c.nextSibling:c;u.setStartAfter(s),u.setEndAfter(l),kI(l,u,!1)}function kI(l,c,h){var u=c.extractContents();u.textContent&&cr(u.textContent).length||!u.firstChild||N.unwrap(u.firstChild),l.parentNode&&Mr(h?N.before:N.after,l,u)}function A$(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var O$=function(){function l(u,i){(function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")})(this,l),this.transitions=i,this.silent=!0,this.__previewsStates=new Set,this.setState(u)}var c,h;return c=l,(h=[{key:"setState",value:function(u){dt(!this.__previewsStates.has(u),"Circled states"),this.__previewsStates.add(u),this.__state=u}},{key:"getState",value:function(){return this.__state}},{key:"disableSilent",value:function(){this.silent=!1}},{key:"dispatch",value:function(u,i){var s=this.transitions[this.getState()][u];if(s){var d=s.call(this,i);return dt(d&&d!==i,"Action should return new value"),dt(Se(d.next),"Value should contain the next state"),dt(d.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(d.next),d}throw new Error("invalid action: ".concat(this.getState(),".").concat(u.toString()))}}])&&A$(c.prototype,h),l}();function jd(l){return!!(l&&!N.isEmptyTextNode(l)&&!N.isTemporary(l)&&!ni(l))}function lp(l,c){return!!(!N.isTag(l,"font")&&N.isHTMLElement(l)&&Object.keys(c).every(function(h){var u=be(l,h,!0);return u===""&&(c[h]===""||c[h]==null)||!zr(u)&&u!==""&&!zr(c[h])&&Lh(h,c[h]).toString().toLowerCase()===u.toString().toLowerCase()}))}if(pr){var Cy=pr.createElement("div");Cy.style.color="red",dt(lp(Cy,{color:"red"}),"Style test"),dt(lp(Cy,{fontSize:null}),"Style test"),dt(lp(Cy,{fontSize:""}),"Style test")}function Sd(l,c){return!!(!N.isTag(l,"font")&&N.isHTMLElement(l)&&Object.keys(c).every(function(h){return be(l,h,!0)!==""}))}if(pr){var Ay=pr.createElement("div");Ay.style.color="red",dt(Sd(Ay,{color:"red"}),"Style test"),dt(!Sd(Ay,{font:"Arial",color:"red"}),"Style test"),dt(!Sd(Ay,{border:"1px solid #ccc"}),"Style test")}function Oy(l,c,h){var u,i=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3];if(!c||!jd(c))return!1;var s=l.element,d=l.elementIsDefault,g=l.options;if(N.isList(c)&&l.elementIsList)return!0;var b=N.isTag(c,s);return!(!b||d&&h)||!(!(!((u=g.attributes)===null||u===void 0)&&u.style&&(i?lp(c,g.attributes.style):Sd(c,g.attributes.style)))||l.elementIsList)||!b&&!h&&d&&N.isInlineBlock(c)}function jI(l,c,h){return N.closest(c,function(u){return Oy(l,u,!0,!1)},h)}function M2(l,c,h){var u=c.parentNode;return u===h||!N.isHTMLElement(u)||N.next(c,jd,u)||N.prev(c,jd,u)?null:l.isElementCommit&&l.elementIsBlock&&!N.isBlock(u)?M2(l,u,h):!Oy(l,u,!1)||N.isBlock(u)&&!l.elementIsBlock?l.isElementCommit&&!N.isBlock(u)?M2(l,u,h):null:u}var SI="toggleAttributes";function Ey(l,c,h,u){var i=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(!i&&l.isApplied(c,SI))return u;!i&&l.setApplied(c,SI);var s=l.options.attributes;return s&&Wu(s)>0&&Object.keys(s).forEach(function(d){var g=s[d];switch(d){case"style":u=function(b,w,_,T,z,L){return dt(tr(_)&&Wu(_),"Style must be an object"),Object.keys(_).forEach(function(D){var q=T.style.getPropertyValue(oi(D)),Y=_[D];if(q!==""||Y!=null){if(function(X,J,$){var ee=X.create.element(J.tagName.toLowerCase());ee.style.cssText=J.style.cssText;var ce=function(ye){var Me;if(St(ye,"shadowRoot")!==void 0)return St(ye,"shadowRoot");var Ie=dc(ye),st=pr.createElement("iframe");be(st,{width:0,height:0,position:"absolute",border:0}),st.src="about:blank",Ie.appendChild(st);var Ft=(Me=st.contentWindow)===null||Me===void 0?void 0:Me.document,it=Ft?Ft.body:ye.od.body;return St(ye,"shadowRoot",it),it}(X);ce.appendChild(ee);var ge=be(ee,$);return N.safeRemove(ee),ge}(w,T,D)===Lh(D,Y))return q?(!z&&be(T,D,null),void(L=CI(b,T,L=Sy))):void 0;L=jy,z||(be(T,D,Y),L=CI(b,T,L))}}),L}(l,h,g,c,i,u);break;case"className":case"class":u=function(b,w,_,T,z){dt(Se(w),"Class name must be a string");var L=b.e.fire.bind(b.e,"".concat(ga,"AfterToggleAttribute"));return _.classList.contains(w.toString())?(T=Sy,z||(_.classList.remove(w),_.classList.length===0&&(fe(_,"class",null),L(T,_,"class",null)))):(T=jy,z||(_.classList.add(w),L(T,_,"class",w))),T}(h,g,c,u,i);break;default:u=function(b,w,_,T,z,L){dt(Se(w)||kn(w)||Wa(w)||w==null,"Attribute value must be a string or number or boolean or null");var D=b.e.fire.bind(b.e,"".concat(ga,"AfterToggleAttribute"));return fe(_,T)===w?(!z&&fe(_,T,null),L=Sy,!z&&D(L,_,T,w),L):(L=jy,z||(fe(_,T,w),D(L,_,T,w)),L)}(h,g,c,d,i,u)}}),u}function CI(l,c,h){return fe(c,"style")||(fe(c,"style",null),c.tagName.toLowerCase()===l.defaultTag&&(N.unwrap(c),h=rs)),h}function AI(l,c,h){var u=h.e.fire("".concat(ga,"BeforeWrapList"),wc,c,l),i=u??N.replace(c,"li",h.createInside),s=i.previousElementSibling,d=i.nextElementSibling,g=N.isTag(s,l.element)?s:null;return g!=null||(g=N.isTag(d,l.element)?d:null),N.isList(g)&&function(b,w){return!b.attributes.length&&!Wu(w)||!Wu(w)||(dt(w,"Attrs must be a non-empty object"),Object.keys(w).every(function(_){return _==="class"||_==="className"?b.classList.contains(w[_]):_==="style"?lp(b,w[_]):fe(b,_)===w[_]}))}(g,l.options.attributes)||(Ey(l,g=h.createInside.element(l.element),h,kd),N.before(i,g)),s===g?N.append(g,i):N.prepend(g,i),N.isTag(g.nextElementSibling,l.element)&&function(b,w){return b.attributes.length===w.attributes.length&&Array.from(b.attributes).every(function(_){return w.hasAttribute(_.name)&&w.getAttribute(_.name)===_.value})}(g,g.nextElementSibling)&&(N.append(g,Array.from(g.nextElementSibling.childNodes)),N.safeRemove(g.nextElementSibling)),h.e.fire("".concat(ga,"AfterWrapList"),z2,g,l),g}function E$(l,c,h,u){if(!c)return u;var i=c.parentElement;if(!i)return u;var s=h.e.fire("".concat(ga,"BeforeToggleList"),u,l,i);if(s!==void 0)return s;var d=h.e.fire.bind(h.e,"".concat(ga,"AfterToggleList"));if(u!==rs){var g=Ey(l,c.parentElement,h,kd,!0)===jy;if(u===wc||g||i.tagName.toLowerCase()!==l.element){var b=AI(l,OI(wc,i,c,h,l),h);return d(wc,b,l),wc}}var w=OI(rs,i,c,h,l);return d(rs,w,l),rs}function OI(l,c,h,u,i){var s=u.e.fire("".concat(ga,"BeforeUnwrapList"),l,c,i);return s?(dt(N.isHTMLElement(s),"".concat(ga,"BeforeUnwrapList hook must return HTMLElement")),s):(_I(c,h,u),dt(N.isHTMLElement(h.parentElement),"Element should be inside the list"),N.unwrap(h.parentElement),N.replace(h,u.o.enter.toLowerCase()!=="br"?u.o.enter:u.createInside.fragment(),u.createInside))}var T$=new Set(["td","th","tr","tbody","table","li","ul","ol"]);function ai(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function Gr(l){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{},u=Object.keys(h);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(h).filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable}))),u.forEach(function(i){ai(l,i,h[i])})}return l}function $r(l,c){return c=c??{},Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):function(h){var u=Object.keys(h);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(h);u.push.apply(u,i)}return u}(Object(c)).forEach(function(h){Object.defineProperty(l,h,Object.getOwnPropertyDescriptor(c,h))}),l}var si,I2="START",L2="ELEMENT",N2="UNWRAP",EI="UNWRAP_CHILDREN",D2="CHANGE",TI="REPLACE_DEFAULT",RI="LIST",PI="TOGGLE_LIST",zI="WRAP",MI="EXTRACT",po="END",R$=(ai(si={},I2,{exec:function(l){var c,h,u=l.element,i=l.jodit,s=l.style,d=l.mode,g=l.collapsed;if(c=u,h=i.editor,!!N.closest(c,["style","script"],h)||!g&&N.isEmptyContent(u))return $r(Gr({},l),{next:po});var b=M2(s,u,i.editor)||function(_,T){for(var z=T.firstChild;z&&!jd(z);)if(!(z=z.nextSibling))return null;return z&&!N.next(z,jd,T)&&Oy(_,z,!1)?z:null}(s,u);if(b)return $r(Gr({},l),{next:L2,element:b});var w=jI(s,u,i.editor);return s.elementIsList&&N.isList(w)?$r(Gr({},l),{next:RI}):$r(Gr({},l),w?{next:MI}:{next:d!==rs?EI:po})}}),ai(si,RI,{exec:function(l){var c=l.element,h=l.jodit,u=l.mode;if(u!==kd&&u!==rs&&u!==wc)return $r(Gr({},l),{next:po});var i=N.closest(c,"li",h.editor);if(!i)return $r(Gr({},l),{next:po});var s=N.closest(c,Lu,h.editor);return $r(Gr({},l),s?{element:i,next:PI}:{next:po})}}),ai(si,PI,{exec:function(l){return $r(Gr({},l),{mode:E$(l.style,l.element,l.jodit,l.mode),next:po})}}),ai(si,MI,{exec:function(l){var c=l.element,h=l.jodit,u=l.style,i=jI(u,c,h.editor);return dt(i,"This place should have an element"),u.elementIsBlock||_I(i,c,h),$r(Gr({},l),{element:i,next:L2})}}),ai(si,EI,{exec:function(l){var c=l.element;return function(h,u){var i,s,d=[],g=[],b=(i=h.options.attributes)===null||i===void 0?void 0:i.style;if(u.firstChild)for(var w=function(){var z=T.value;!Oy(h,z,!0)||b&&!Sd(z,b)?b&&function(L,D){var q,Y,X=L.element,J=L.options;if(!D||!jd(D))return!1;var $=D.nodeName.toLowerCase()===X,ee=!!(!((q=J.attributes)===null||q===void 0)&&q.style&&Sd(D,(Y=J.attributes)===null||Y===void 0?void 0:Y.style));return $&&ee}(h,z)?(s===void 0&&(s=!1),g.push(function(){be(z,Object.keys(b).reduce(function(L,D){return L[D]=null,L},{})),fe(z,"style")||fe(z,"style",null),fe(z,"style")||z.nodeName.toLowerCase()!==h.element||d.push(z)})):N.isEmptyTextNode(z)||s===void 0&&(s=!1):(s===void 0&&(s=!0),d.push(z)),T=_.next()},_=N.eachGen(u),T=_.next();!T.done;)w();return g.forEach(function(z){return z()}),d.forEach(N.unwrap),!!s}(l.style,c)?$r(Gr({},l),{mode:rs,next:po}):$r(Gr({},l),{next:zI})}}),ai(si,zI,{exec:function(l){var c=l.element,h=l.jodit,u=l.style,i=function(s,d,g){var b=function(w,_,T){return w.elementIsBlock?N.up(_,function(z){return N.isBlock(z)&&!N.isTag(z,T$)},T.editor)||function(z,L,D){var q=D.editor,Y=D.createInside,X=function(ye){for(var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"previousSibling",Ie=ye,st=ye;st&&!ni(st)&&!N.isTag(st,D.o.enter)&&(Ie=st,st=st[Me]?st[Me]:st.parentNode&&!N.isBlock(st.parentNode)&&st.parentNode!==q?st.parentNode:null,!N.isBlock(st)););return Ie},J=X(L),$=X(L,"nextSibling"),ee=D.s.createRange();ee.setStartBefore(J),ee.setEndAfter($);var ce=ee.extractContents(),ge=Y.element(z.element);return ge.appendChild(ce),N.safeInsertNode(ee,ge),z.elementIsBlock&&N.isEmpty(ge)&&!N.isTag(ge.firstElementChild,"br")&&ge.appendChild(Y.element("br")),ge}(w,_,T):(fe(_,"size",null),_)}(s,d,g);return s.elementIsList?AI(s,b,g):N.replace(b,s.element,g.createInside,!0)}(u,c,h);return $r(Gr({},l),{next:u.elementIsList?po:D2,mode:z2,element:i})}}),ai(si,L2,{exec:function(l){var c=l.style,h=l.element;return Ey(c,h,l.jodit,kd,!0)!==kd?$r(Gr({},l),{next:D2}):N.isTag(h,c.element)?$r(Gr({},l),{next:N2}):$r(Gr({},l),{next:po})}}),ai(si,D2,{exec:function(l){var c=l.style,h=l.element,u=l.jodit,i=l.mode,s=Ey(c,h,u,l.mode);return i!==z2&&s===Sy&&!h.attributes.length&&N.isTag(h,c.element)?$r(Gr({},l),{next:N2}):$r(Gr({},l),{mode:s,next:po})}}),ai(si,N2,{exec:function(l){return l.element.attributes.length&&N.isTag(l.element,l.style.element)?$r(Gr({},l),{next:TI}):(N.unwrap(l.element),$r(Gr({},l),{mode:rs,next:po}))}}),ai(si,TI,{exec:function(l){return N.replace(l.element,l.style.defaultTag,l.jodit.createInside,!0),$r(Gr({},l),{mode:wc,next:po})}}),ai(si,po,{exec:function(l){return l}}),si);function P$(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}var II=function(){function l(u){(function(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")})(this,l),this.options=u,this.__applyMap=new WeakMap}var c,h;return c=l,h=[{key:"isApplied",value:function(u,i){var s=this.__applyMap.get(u);return!!s&&s[i]}},{key:"setApplied",value:function(u,i){var s,d=(s=this.__applyMap.get(u))!==null&&s!==void 0?s:{};d[i]=!0,this.__applyMap.set(u,d)}},{key:"elementIsList",get:function(){return!!(this.options.element&&Lu.has(this.options.element))}},{key:"element",get:function(){return this.options.element||this.defaultTag}},{key:"elementIsBlock",get:function(){return!!(this.options.element&&_b.test(this.options.element))}},{key:"isElementCommit",get:function(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}},{key:"defaultTag",get:function(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}},{key:"elementIsDefault",get:function(){return this.element===this.defaultTag}},{key:"apply",value:function(u){var i=this.options.hooks,s=i?Object.keys(i):[];try{s.forEach(function(d){u.e.on(jn(ga+"_"+d),i[d])}),function(d,g){var b,w=d.s;(b=d.editor.firstChild)===null||b===void 0||b.normalize();var _=w.fakes(),T=d.s.wrapInTagGen(_),z=T.next();if(!z.done){for(var L={collapsed:w.isCollapsed(),mode:kd,element:z.value,next:I2,jodit:d,style:g};z&&!z.done;){var D=new O$(I2,R$);for(L.element=z.value;D.getState()!==po;)L=D.dispatch("exec",L);z=T.next()}w.restoreFakes(_)}}(u,this)}finally{s.forEach(function(d){u.e.off(jn(ga+"_"+d),i[d])}),this.__applyMap=new WeakMap}u.synchronizeValues(),u.e.fire("afterCommitStyle",this)}}],h&&P$(c.prototype,h),l}();function LI(l,c,h){for(var u=N.findSibling(c,h),i=N.findSibling(c,!h);N.isElement(u)&&!N.isTag(u,zi)&&N.isContentEditable(u,l.editor)&&(!i||!N.closest(c,N.isElement,l.editor));)h||!u.firstChild?u.appendChild(c):N.before(u.firstChild,c),u=N.sibling(c,h),i=N.sibling(c,!h)}function NI(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function z$(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function DI(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}var cp=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":DI(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},_c=function(){function l(u){var i=this;(function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")})(this,l),this.jodit=u,u.e.on("removeMarkers",function(){i.removeMarkers()})}var c,h;return c=l,h=[{key:"j",get:function(){return this.jodit}},{key:"errorNode",value:function(u){if(!N.isNode(u))throw ht("Parameter node must be instance of Node")}},{key:"area",get:function(){return this.j.editor}},{key:"win",get:function(){return this.j.ew}},{key:"doc",get:function(){return this.j.ed}},{key:"sel",get:function(){return this.j.o.shadowRoot&&Pe(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}},{key:"range",get:function(){var u=this.sel;return u&&u.rangeCount?u.getRangeAt(0):this.createRange()}},{key:"isInsideArea",get:function(){var u=this.sel,i=u!=null&&u.rangeCount?u.getRangeAt(0):null;return!(!i||!N.isOrContains(this.area,i.startContainer))}},{key:"createRange",value:function(){var u=arguments.length>0&&arguments[0]!==void 0&&arguments[0],i=this.doc.createRange();return u&&this.selectRange(i),i}},{key:"remove",value:function(){var u=this.sel,i=this.current();if(u&&i)for(var s=0;s<u.rangeCount;s+=1)u.getRangeAt(s).deleteContents(),u.getRangeAt(s).collapse(!0)}},{key:"clear",value:function(){var u,i;!((u=this.sel)===null||u===void 0)&&u.rangeCount&&((i=this.sel)===null||i===void 0||i.removeAllRanges())}},{key:"removeNode",value:function(u){if(!N.isOrContains(this.j.editor,u,!0))throw ht("Selection.removeNode can remove only editor's children");N.safeRemove(u),this.j.e.fire("afterRemoveNode",u)}},{key:"insertCursorAtPoint",value:function(u,i){var s=this;this.removeMarkers();try{var d=this.createRange();return function(){if(s.doc.caretPositionFromPoint){var g=s.doc.caretPositionFromPoint(u,i);if(g)return void d.setStart(g.offsetNode,g.offset)}if(s.doc.caretRangeFromPoint){var b=s.doc.caretRangeFromPoint(u,i);dt(b,"Incorrect caretRangeFromPoint behaviour"),d.setStart(b.startContainer,b.startOffset)}}(),d.collapse(!0),this.selectRange(d),!0}catch{}return!1}},{key:"hasMarkers",get:function(){return!!this.markers.length}},{key:"markers",get:function(){return Ct("span[data-"+Bu+"]",this.area)}},{key:"removeMarkers",value:function(){N.safeRemove.apply(null,this.markers)}},{key:"marker",value:function(){var u=arguments.length>0&&arguments[0]!==void 0&&arguments[0],i=arguments.length>1?arguments[1]:void 0,s=null;i&&(s=i.cloneRange()).collapse(u);var d=this.j.createInside.span();return d.id=Bu+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),d.style.lineHeight="0",d.style.display="none",N.markTemporary(d),fe(d,"data-"+Bu,u?"start":"end"),d.appendChild(this.j.createInside.text(dn)),s&&N.isOrContains(this.area,u?s.startContainer:s.endContainer)&&s.insertNode(d),d}},{key:"restore",value:function(){var u=!1,i=function(b){return"span[data-".concat(Bu,"=").concat(b?"start":"end","]")},s=this.area.querySelector(i(!0)),d=this.area.querySelector(i(!1));if(s){if(u=this.createRange(),d)u.setStartAfter(s),N.safeRemove(s),u.setEndBefore(d),N.safeRemove(d);else{var g=s.previousSibling;N.isText(g)?u.setStart(g,g.nodeValue?g.nodeValue.length:0):u.setStartBefore(s),N.safeRemove(s),u.collapse(!0)}u&&this.selectRange(u)}}},{key:"fakes",value:function(){var u=this.sel;if(!u||!u.rangeCount)return[];var i=u.getRangeAt(0);dt(i,"Range is null");var s=i.cloneRange();s.collapse(!0);var d=this.j.createInside.fake();N.safeInsertNode(s,d),i.setStartBefore(d);var g=[d];if(!i.collapsed){var b=i.cloneRange();b.collapse(!1);var w=this.j.createInside.fake();N.safeInsertNode(b,w),i.setEndAfter(w),g.push(w)}return this.selectRange(i),g}},{key:"restoreFakes",value:function(u){var i,s,d,g,b=u.filter(function(L){return L.isConnected});if(b.length){var w=function(L,D){return function(q){if(Array.isArray(q))return q}(L)||function(q,Y){var X=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(X!=null){var J,$,ee=[],ce=!0,ge=!1;try{for(X=X.call(q);!(ce=(J=X.next()).done)&&(ee.push(J.value),!Y||ee.length!==Y);ce=!0);}catch(ye){ge=!0,$=ye}finally{try{ce||X.return==null||X.return()}finally{if(ge)throw $}}return ee}}(L,D)||function(q,Y){if(q){if(typeof q=="string")return NI(q,Y);var X=Object.prototype.toString.call(q).slice(8,-1);return X==="Object"&&q.constructor&&(X=q.constructor.name),X==="Map"||X==="Set"?Array.from(X):X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X)?NI(q,Y):void 0}}(L,D)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(b,2),_=w[0],T=w[1],z=this.createRange();z.setStartAfter(_),T&&z.setEndBefore(T),this.selectRange(z),((i=_.parentNode)===null||i===void 0?void 0:i.firstChild)!==((s=_.parentNode)===null||s===void 0?void 0:s.lastChild)&&N.safeRemove(_),((d=T==null?void 0:T.parentNode)===null||d===void 0?void 0:d.firstChild)!==((g=T==null?void 0:T.parentNode)===null||g===void 0?void 0:g.lastChild)&&N.safeRemove(T)}}},{key:"save",value:function(){var u=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this.hasMarkers)return[];var i=this.sel;if(!i||!i.rangeCount)return[];for(var s=[],d=i.rangeCount,g=[],b=0;b<d;b+=1)if(g[b]=i.getRangeAt(b),g[b].collapsed){var w=this.marker(!0,g[b]);s[b]={startId:w.id,collapsed:!0,startMarker:w.outerHTML}}else{var _=this.marker(!0,g[b]),T=this.marker(!1,g[b]);s[b]={startId:_.id,endId:T.id,collapsed:!1,startMarker:_.outerHTML,endMarker:T.outerHTML}}if(!u){i.removeAllRanges();for(var z=d-1;z>=0;--z){var L=this.doc.getElementById(s[z].startId);if(L){if(s[z].collapsed)g[z].setStartAfter(L),g[z].collapse(!0);else if(g[z].setStartBefore(L),s[z].endId){var D=this.doc.getElementById(s[z].endId);D&&g[z].setEndAfter(D)}try{i.addRange(g[z].cloneRange())}catch{}}}}return s}},{key:"focus",value:function(){var u,i,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{preventScroll:!0};if(!this.isFocused()){var d=Ik(this.j.container),g=d==null?void 0:d.scrollTop;this.j.iframe&&this.doc.readyState==="complete"&&this.j.iframe.focus(s),this.win.focus(),this.area.focus(s),g&&(d!=null&&d.scrollTo)&&d.scrollTo(0,g);var b=this.sel,w=b!=null&&b.rangeCount?b==null?void 0:b.getRangeAt(0):null;if(!w||!N.isOrContains(this.area,w.startContainer)){var _=this.createRange();_.setStart(this.area,0),_.collapse(!0),this.selectRange(_,!1)}return this.j.editorIsActive||(i=(u=this.j)===null||u===void 0?void 0:u.events)===null||i===void 0||i.fire("focus"),!0}return!1}},{key:"isCollapsed",value:function(){for(var u=this.sel,i=0;u&&i<u.rangeCount;i+=1)if(!u.getRangeAt(i).collapsed)return!1;return!0}},{key:"isFocused",value:function(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}},{key:"current",value:function(){var u=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];if(this.j.getRealMode()!==gr)return null;var i=this.sel;if(!i||i.rangeCount===0)return null;var s=i.getRangeAt(0),d=s.startContainer,g=!1;if(N.isTag(d,"br")&&i.isCollapsed)return d;if(!N.isText(d)){var b=function(w,_,T,z,L,D){if((w=_.startContainer.childNodes[_.startOffset])||(w=_.startContainer.childNodes[_.startOffset-1],T=!0),w&&z&&!N.isText(w)){if(!T&&N.isText(w.previousSibling))w=w.previousSibling;else if(L)for(var q=D(w);q;){if(q&&N.isText(q)){w=q;break}q=D(q)}}if(w&&!z&&!N.isText(w)){var Y=w,X=w;do Y=Y.firstChild,X=X.lastChild;while(Y&&X&&!N.isText(Y));Y===X&&Y&&N.isText(Y)&&(w=Y)}return{node:w,rightMode:T}}(d,s,g,i.isCollapsed,u,function(w){return g?w.lastChild:w.firstChild});d=b.node,g=b.rightMode}return d&&N.isOrContains(this.area,d)?d:null}},{key:"insertNode",value:function(u){var i=this,s=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],d=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];this.errorNode(u);var g=N.isFragment(u)?u.lastChild:u;this.j.e.fire("safeHTML",u),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());var b=this.sel;this.j.history.snapshot.transaction(function(){if(i.isCollapsed()||i.j.execCommand("Delete"),i.j.e.fire("beforeInsertNode",u),b&&b.rangeCount){var w=b.getRangeAt(0);N.isOrContains(i.area,w.commonAncestorContainer)?N.safeInsertNode(w,u):i.area.appendChild(u)}else i.area.appendChild(u);var _=function(T){if(N.isBlock(T)){var z=T.lastChild;if(z)return _(z)}i.setCursorAfter(T)};s&&(N.isFragment(u)?g&&_(g):_(u)),i.j.o.scrollToPastedContent&&Gs(g??u,i.j.editor,i.doc)}),d&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",N.isFragment(u)?g:u)}},{key:"insertHTML",value:function(u){var i=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];if(u!==""){var s=this.j.createInside.div(),d=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),N.isNode(u)?s.appendChild(u):s.innerHTML=u.toString(),(this.j.isEditorMode()||this.j.e.fire("insertHTML",s.innerHTML)!==!1)&&s.lastChild){for(;s.firstChild;)s.firstChild,d.appendChild(s.firstChild);this.insertNode(d,i,!1),this.j.__imdSynchronizeValues()}}}},{key:"insertImage",value:function(u){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,d=Se(u)?this.j.createInside.element("img"):u;if(Se(u)&&d.setAttribute("src",u),s!=null){var g=s.toString();g&&g!=="auto"&&String(g).indexOf("px")<0&&String(g).indexOf("%")<0&&(g+="px"),fe(d,"width",g)}i&&(i===void 0?"undefined":DI(i))==="object"&&be(d,i);var b=function(){(d.naturalHeight<d.offsetHeight||d.naturalWidth<d.offsetWidth)&&(d.style.width="",d.style.height=""),d.removeEventListener("load",b)};this.j.e.on(d,"load",b),d.complete&&b(),this.insertNode(d),this.j.e.fire("afterInsertImage",d)}},{key:"eachSelection",value:function(u){var i,s=this,d=this.sel;if(d&&d.rangeCount){var g=d.getRangeAt(0),b=g.commonAncestorContainer;N.isHTMLElement(b)||(b=b.parentElement);var w=[],_=g.startOffset,T=b.childNodes.length,z=_<T?_:T-1,L=g.startContainer===this.area?b.childNodes[z]:g.startContainer,D=g.endContainer===this.area?b.childNodes[g.endOffset-1]:g.endContainer;N.isText(L)&&L===g.startContainer&&g.startOffset===((i=L.nodeValue)===null||i===void 0?void 0:i.length)&&L.nextSibling&&(L=L.nextSibling),N.isText(D)&&D===g.endContainer&&g.endOffset===0&&D.previousSibling&&(D=D.previousSibling);var q=function(X){!X||X===b||N.isEmptyTextNode(X)||ni(X)||w.push(X)};q(L),L!==D&&N.isOrContains(b,L,!0)&&N.find(L,function(X){return q(X),X===D||X&&X.contains&&X.contains(D)},b,!0,!1);var Y=function(X){if(N.isOrContains(s.j.editor,X,!0)){if(X.nodeName.match(/^(UL|OL)$/))return mr(X.childNodes).forEach(Y);if(N.isTag(X,"li"))if(X.firstChild)X=X.firstChild;else{var J=s.j.createInside.text(dn);X.appendChild(J),X=J}u(X)}};w.length===0&&(N.isEmptyTextNode(L)&&w.push(L),L.firstChild&&w.push(L.firstChild)),w.forEach(Y)}}},{key:"cursorInTheEdge",value:function(u,i){var s,d=this,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,b=!u,w=(s=this.sel)===null||s===void 0?void 0:s.getRangeAt(0);if(g!=null||(g=this.current(!1)),!w||!g||!N.isOrContains(i,g,!0))return null;var _=u?w.startContainer:w.endContainer,T=u?w.startOffset:w.endOffset,z=function(Y){return!!(Y&&!N.isTag(Y,"br")&&!N.isEmptyTextNode(Y)&&!N.isTemporary(Y)&&!(N.isElement(Y)&&d.j.e.fire("isInvisibleForCursor",Y)===!0))};if(N.isText(_)){if(function(Y,X,J,$){var ee,ce=!((ee=Y.nodeValue)===null||ee===void 0)&&ee.length?Y.nodeValue:"";if($&&ce.replace(z_(),"").length>X)return!0;var ge=M_().exec(ce);return J&&(ge&&ge[0].length<X||!ge&&X>0)}(_,T,u,b))return!1}else{var L=mr(_.childNodes);if(b){if(L.slice(T).some(z))return!1}else if(L.slice(0,T).some(z))return!1}for(var D=g;D&&D!==i;){var q=N.sibling(D,u);if(q){if((D=q)&&z(D))return!1}else D=D.parentNode}return!0}},{key:"cursorOnTheLeft",value:function(u,i){return this.cursorInTheEdge(!0,u,i)}},{key:"cursorOnTheRight",value:function(u,i){return this.cursorInTheEdge(!1,u,i)}},{key:"setCursorAfter",value:function(u){return this.setCursorNearWith(u,!1)}},{key:"setCursorBefore",value:function(u){return this.setCursorNearWith(u,!0)}},{key:"setCursorNearWith",value:function(u,i){var s,d,g=this;if(this.errorNode(u),!N.up(u,function(_){return _===g.area||_&&_.parentNode===g.area},this.area))throw ht("Node element must be in editor");var b=this.createRange(),w=null;return N.isText(u)?i?b.setStart(u,0):b.setEnd(u,(d=(s=u.nodeValue)===null||s===void 0?void 0:s.length)!==null&&d!==void 0?d:0):(w=this.j.createInside.fake(),i?b.setStartBefore(u):b.setEndAfter(u),b.collapse(i),N.safeInsertNode(b,w),b.selectNode(w)),b.collapse(i),this.selectRange(b),w}},{key:"setCursorIn",value:function(u){var i=this,s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(this.errorNode(u),!N.up(u,function(T){return T===i.area||T&&T.parentNode===i.area},this.area))throw ht("Node element must be in editor");var d=this.createRange(),g=u,b=u;do{if(N.isText(g)||N.isTag(g,zi))break;b=g,g=s?g.firstChild:g.lastChild}while(g);if(!g){var w=this.j.createInside.text(dn);N.isTag(b,zi)?g=b:(b.appendChild(w),b=w)}var _=g||b;return N.isTag(_,zi)?(s||N.isTag(_,"br")?d.setStartBefore(_):d.setEndAfter(_),d.collapse(s)):(d.selectNodeContents(_),d.collapse(s)),this.selectRange(d),b}},{key:"selectRange",value:function(u){var i=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],s=this.sel;return i&&!this.isFocused()&&this.focus(),s&&(s.removeAllRanges(),s.addRange(u)),this.j.e.fire("changeSelection"),this}},{key:"select",value:function(u){var i=this,s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(this.errorNode(u),!N.up(u,function(g){return g===i.area||g&&g.parentNode===i.area},this.area))throw ht("Node element must be in editor");var d=this.createRange();return d[s?"selectNodeContents":"selectNode"](u),this.selectRange(d)}},{key:"html",get:function(){var u=this.sel;if(u&&u.rangeCount>0){var i=u.getRangeAt(0).cloneContents(),s=this.j.createInside.div();return s.appendChild(i),s.innerHTML}return""}},{key:"wrapInTagGen",value:function(u){var i,s,d,g,b,w,_,T,z,L,D;return function(q,Y){var X,J,$,ee,ce={label:0,sent:function(){if(1&$[0])throw $[1];return $[1]},trys:[],ops:[]};return ee={next:ge(0),throw:ge(1),return:ge(2)},typeof Symbol=="function"&&(ee[Symbol.iterator]=function(){return this}),ee;function ge(ye){return function(Me){return function(Ie){if(X)throw new TypeError("Generator is already executing.");for(;ce;)try{if(X=1,J&&($=2&Ie[0]?J.return:Ie[0]?J.throw||(($=J.return)&&$.call(J),0):J.next)&&!($=$.call(J,Ie[1])).done)return $;switch(J=0,$&&(Ie=[2&Ie[0],$.value]),Ie[0]){case 0:case 1:$=Ie;break;case 4:return ce.label++,{value:Ie[1],done:!1};case 5:ce.label++,J=Ie[1],Ie=[0];continue;case 7:Ie=ce.ops.pop(),ce.trys.pop();continue;default:if(!(($=($=ce.trys).length>0&&$[$.length-1])||Ie[0]!==6&&Ie[0]!==2)){ce=0;continue}if(Ie[0]===3&&(!$||Ie[1]>$[0]&&Ie[1]<$[3])){ce.label=Ie[1];break}if(Ie[0]===6&&ce.label<$[1]){ce.label=$[1],$=Ie;break}if($&&ce.label<$[2]){ce.label=$[2],ce.ops.push(Ie);break}$[2]&&ce.ops.pop(),ce.trys.pop();continue}Ie=Y.call(q,ce)}catch(st){Ie=[6,st],J=0}finally{X=$=0}if(5&Ie[0])throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}([ye,Me])}}}(this,function(q){switch(q.label){case 0:return this.isCollapsed()?(i=this.jodit.createInside.element("font",dn),this.insertNode(i,!1,!1),u&&u[0]&&i.appendChild(u[0]),[4,i]):[3,2];case 1:return q.sent(),N.unwrap(i),[2];case 2:Ct("*[style*=font-size]",this.area).forEach(function(Y){fe(Y,"data-font-size",Y.style.fontSize.toString()),Y.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),Ct("*[data-font-size]",this.area).forEach(function(Y){var X=fe(Y,"data-font-size");X&&(Y.style.fontSize=X,fe(Y,"data-font-size",null))}),s=Ct('font[size="7"]',this.area),d=!0,g=!1,b=void 0,q.label=3;case 3:q.trys.push([3,8,9,10]),w=s[Symbol.iterator](),q.label=4;case 4:return(d=(_=w.next()).done)?[3,7]:(T=_.value,z=T.firstChild,L=T.lastChild,z&&z===L&&ni(z)?(N.unwrap(T),[3,6]):(z&&ni(z)&&N.before(T,z),L&&ni(L)&&N.after(T,L),[4,T]));case 5:q.sent(),N.unwrap(T),q.label=6;case 6:return d=!0,[3,4];case 7:return[3,10];case 8:return D=q.sent(),g=!0,b=D,[3,10];case 9:try{d||w.return==null||w.return()}finally{if(g)throw b}return[7];case 10:return[2]}})}},{key:"wrapInTag",value:function(u){var i=[],s=!0,d=!1,g=void 0;try{for(var b,w=this.wrapInTagGen()[Symbol.iterator]();!(s=(b=w.next()).done);s=!0){var _=b.value;try{if(_.firstChild&&_.firstChild===_.lastChild&&ni(_.firstChild))continue;Pe(u)?u(_):i.push(N.replace(_,u,this.j.createInside))}finally{var T=_.parentNode;T&&(N.unwrap(_),N.isEmpty(T)&&N.unwrap(T))}}}catch(z){d=!0,g=z}finally{try{s||w.return==null||w.return()}finally{if(d)throw g}}return i}},{key:"commitStyle",value:function(u){dt(Wu(u)>0,"Need to pass at least one option"),new II(u).apply(this.j)}},{key:"splitSelection",value:function(u,i){if(!this.isCollapsed())return null;var s=this.createRange(),d=this.range;s.setStartBefore(u);var g=this.cursorOnTheRight(u,i),b=this.cursorOnTheLeft(u,i),w=this.j.createInside.element("br"),_=this.j.createInside.fake(),T=_.cloneNode();try{if(g||b){i?N.before(i,w):N.safeInsertNode(d,w);var z=function(X,J){for(var $=J(X);$;){var ee=J($);if(!$||!N.isTag($,"br")&&!N.isEmptyTextNode($))break;N.safeRemove($),$=ee}};z(w,function(X){return X.nextSibling}),z(w,function(X){return X.previousSibling}),N.after(w,T),N.before(w,_),g?(s.setEndBefore(w),d.setEndBefore(w)):(s.setEndAfter(w),d.setEndAfter(w))}else s.setEnd(d.startContainer,d.startOffset);var L=s.extractContents(),D=function(X){return N.each(X,function(J){return N.isEmptyTextNode(J)&&N.safeRemove(J)})};dt(u.parentNode,"Splitting fails");try{if(D(L),D(u),u.parentNode.insertBefore(L,u),!i&&g&&(w==null?void 0:w.parentNode)){var q=this.createRange();q.setStartBefore(w),this.selectRange(q)}}catch{}var Y=function(X){var J,$,ee;((J=X==null?void 0:X.parentNode)===null||J===void 0?void 0:J.firstChild)===(($=X==null?void 0:X.parentNode)===null||$===void 0?void 0:$.lastChild)&&((ee=X==null?void 0:X.parentNode)===null||ee===void 0||ee.appendChild(w.cloneNode()))};Y(_),Y(T)}finally{N.safeRemove(_),N.safeRemove(T)}return u.previousElementSibling}},{key:"expandSelection",value:function(){var u=this;if(this.isCollapsed())return this;var i=this.range,s=i.cloneRange();if(!N.isOrContains(this.j.editor,i.commonAncestorContainer,!0))return this;var d=function(q){var Y=u.j.createInside.fake(),X=i.cloneRange();return X.collapse(q),N.safeInsertNode(X,Y),function(J,$,ee){for(var ce=J;ce&&ce!==ee;){if(N.findSibling(ce,$))return;if(N.isBlock(ce.parentElement))break;(ce=ce.parentElement)&&ce!==ee&&($?N.before(ce,J):N.after(ce,J))}}(Y,q,u.j.editor),Y},g=d(!0),b=d(!1);s.setStartAfter(g),s.setEndBefore(b);var w=N.findSibling(g,!1),_=N.findSibling(b,!0);if(w!==_){var T=N.isElement(w)&&N.isOrContains(w,b),z=!T&&N.isElement(_)&&N.isOrContains(_,g);if(T||z){for(var L=T?w:_,D=L;N.isElement(L);)(L=T?L.firstElementChild:L.lastElementChild)&&(T?N.isOrContains(L,b):N.isOrContains(L,g))&&(D=L);T?s.setStart(D,0):s.setEnd(D,D.childNodes.length)}}if(this.selectRange(s),N.safeRemove(g,b),this.isCollapsed())throw ht("Selection is collapsed");return this}}],h&&z$(c.prototype,h),l}();function B2(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function BI(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function M$(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function up(l,c,h){return up=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=tl(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},up(l,c,h||l)}function tl(l){return tl=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},tl(l)}function FI(l,c){return!c||HI(c)!=="object"&&typeof c!="function"?function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(l):c}function F2(l,c){return F2=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},F2(l,c)}function Ty(l){return function(c){if(Array.isArray(c))return B2(c)}(l)||function(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(l)||function(c,h){if(c){if(typeof c=="string")return B2(c,h);var u=Object.prototype.toString.call(c).slice(8,-1);return u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set"?Array.from(u):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?B2(c,h):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function HI(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function UI(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UI=function(){return!!l})()}cp([Ce],_c.prototype,"createRange",null),cp([Ce],_c.prototype,"focus",null),cp([Ce],_c.prototype,"setCursorAfter",null),cp([Ce],_c.prototype,"setCursorBefore",null),cp([Ce],_c.prototype,"setCursorIn",null);var H2,ns=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":HI(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Ry="data-jodit-default-style-display",Py="data-jodit-default-classes",ur=H2=function(l){function c(s,d){var g;(function(w,_){if(!(w instanceof _))throw new TypeError("Cannot call a class as a function")})(this,c),(g=function(w,_,T){return _=tl(_),FI(w,UI()?Reflect.construct(_,T||[],tl(w).constructor):_.apply(w,T))}(this,c,[d,!0])).isJodit=!0,g.commands=new Map,g.__selectionLocked=null,g.__wasReadOnly=!1,g.editorIsActive=!1,g.__mode=gr,g.__callChangeCount=0,g.__isSilentChange=!1,g.__elementToPlace=new Map;try{var b=$h(s,g.o.shadowRoot||g.od);if(H2.isJoditAssigned(b))return FI(g,b.component)}catch(w){throw g.destruct(),w}return g.setStatus(Xt.beforeInit),g.id=fe($h(s,g.o.shadowRoot||g.od),"id")||new Date().getTime().toString(),Db[g.id]=g,g.attachEvents(d),g.e.on(g.ow,"resize",function(){g.e&&g.e.fire("resize")}),g.e.on("prepareWYSIWYGEditor",g.__prepareWYSIWYGEditor),g.selection=new _c(g),Xa(g.beforeInitHook(),function(){if(!g.isInDestruct){g.e.fire("beforeInit",g),Ve.__init(g),g.e.fire("afterPluginSystemInit",g),g.e.on("changePlace",function(){g.setReadOnly(g.o.readonly),g.setDisabled(g.o.disabled)}),g.places.length=0;var w=g.addPlace(s,d);Db[g.id]=g,Xa(w,function(){g.isInDestruct||(g.e&&g.e.fire("afterInit",g),Xa(g.afterInitHook()),g.setStatus(Xt.ready),g.e.fire("afterConstructor",g))})}}),g}var h,u,i;return function(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),d&&F2(s,d)}(c,l),h=c,u=[{key:"className",value:function(){return"Jodit"}},{key:"waitForReady",value:function(){var s=this;return this.isReady?Promise.resolve(this):this.async.promise(function(d){s.hookStatus("ready",function(){return d(s)})})}},{key:"text",get:function(){if(this.editor)return this.editor.innerText||"";var s=this.createInside.div();return s.innerHTML=this.getElementValue(),s.innerText||""}},{key:"defaultTimeout",get:function(){return kn(this.o.defaultTimeout)?this.o.defaultTimeout:de.defaultOptions.defaultTimeout}},{key:"createInside",get:function(){var s=this;return new Dj(function(){return s.ed},this.o.createAttributes)}},{key:"__setPlaceField",value:function(s,d){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[s]=d}},{key:"element",get:function(){return this.currentPlace.element}},{key:"editor",get:function(){return this.currentPlace.editor},set:function(s){this.__setPlaceField("editor",s)}},{key:"container",get:function(){return this.currentPlace.container},set:function(s){this.__setPlaceField("container",s)}},{key:"workplace",get:function(){return this.currentPlace.workplace}},{key:"message",get:function(){return this.getMessageModule(this.workplace)}},{key:"statusbar",get:function(){return this.currentPlace.statusbar}},{key:"iframe",get:function(){return this.currentPlace.iframe},set:function(s){this.__setPlaceField("iframe",s)}},{key:"history",get:function(){return this.currentPlace.history}},{key:"editorWindow",get:function(){return this.currentPlace.editorWindow},set:function(s){this.__setPlaceField("editorWindow",s)}},{key:"ew",get:function(){return this.editorWindow}},{key:"editorDocument",get:function(){return this.currentPlace.editorWindow.document}},{key:"ed",get:function(){return this.editorDocument}},{key:"options",get:function(){return this.currentPlace.options},set:function(s){this.__setPlaceField("options",s)}},{key:"s",get:function(){return this.selection}},{key:"uploader",get:function(){return this.getInstance("Uploader",this.o.uploader)}},{key:"filebrowser",get:function(){var s=this,d=fn({defaultTimeout:s.defaultTimeout,uploader:s.o.uploader,language:s.o.language,license:s.o.license,theme:s.o.theme,shadowRoot:s.o.shadowRoot,defaultCallback:function(g){g.files&&g.files.length&&g.files.forEach(function(b,w){var _=g.baseurl+b;g.isImages&&g.isImages[w]?s.s.insertImage(_,null,s.o.imageDefaultWidth):s.s.insertNode(s.createInside.fromHTML("<a href='".concat(_,"' title='").concat(_,"'>").concat(_,"</a>")))})}},this.o.filebrowser);return s.getInstance("FileBrowser",d)}},{key:"mode",get:function(){return this.__mode},set:function(s){this.setMode(s)}},{key:"getNativeEditorValue",value:function(){var s=this.e.fire("beforeGetNativeEditorValue");return Se(s)?s:this.editor?this.editor.innerHTML:this.getElementValue()}},{key:"setNativeEditorValue",value:function(s){var d={value:s};this.e.fire("beforeSetNativeEditorValue",d)||this.editor&&(this.editor.innerHTML=d.value)}},{key:"value",get:function(){return this.getEditorValue()},set:function(s){this.setEditorValue(s),this.history.__processChanges()}},{key:"synchronizeValues",value:function(){this.__imdSynchronizeValues()}},{key:"__imdSynchronizeValues",value:function(){this.setEditorValue()}},{key:"getEditorValue",value:function(){var s,d=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],g=arguments.length>1?arguments[1]:void 0;if((s=this.e.fire("beforeGetValueFromEditor",g))!==void 0)return s;s=this.getNativeEditorValue().replace(Ya(),""),d&&(s=s.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),s==="<br>"&&(s="");var b={value:s};return this.e.fire("afterGetValueFromEditor",b,g),b.value}},{key:"setEditorValue",value:function(s){var d=this.e.fire("beforeSetValueToEditor",s);if(d!==!1)if(Se(d)&&(s=d),this.editor){if(!Se(s)&&!zr(s))throw ht("value must be string");zr(s)||this.getNativeEditorValue()===s||this.setNativeEditorValue(s),this.e.fire("postProcessSetEditorValue");var g=this.getElementValue(),b=this.getEditorValue();if(!this.__isSilentChange&&g!==b&&this.__callChangeCount<B5){this.__setElementValue(b),this.__callChangeCount+=1;try{this.history.__upTick(),this.e.fire("change",b,g),this.e.fire(this.history,"change",b,g)}finally{this.__callChangeCount=0}}}else s!==void 0&&this.__setElementValue(s)}},{key:"updateElementValue",value:function(){this.__setElementValue(this.getEditorValue())}},{key:"getElementValue",value:function(){return this.element.value!==void 0?this.element.value:this.element.innerHTML}},{key:"__setElementValue",value:function(s){var d=this;if(!Se(s))throw ht("value must be string");if(this.element!==this.container&&s!==this.getElementValue()){var g={value:s};Xa(this.e.fire("beforeSetElementValue",g),function(){d.element.value!==void 0?d.element.value=g.value:d.element.innerHTML=g.value,d.e.fire("afterSetElementValue",g)})}}},{key:"registerCommand",value:function(s,d,g){var b=s.toLowerCase(),w=this.commands.get(b);if(w===void 0&&(w=[],this.commands.set(b,w)),w.push(d),!Pe(d)){var _=this.o.commandToHotkeys[b]||this.o.commandToHotkeys[s]||d.hotkeys;_&&this.registerHotkeyToCommand(_,b,g==null?void 0:g.stopPropagation)}return this}},{key:"registerHotkeyToCommand",value:function(s,d){var g=this,b=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],w=Kh(s).map(zk).map(function(_){return _+".hotkey"}).join(" ");this.e.off(w).on(w,function(_,T){return T&&(T.shouldStop=b==null||b),g.execCommand(d)})}},{key:"execCommand",value:function(s,d,g){for(var b=arguments.length,w=new Array(b>3?b-3:0),_=3;_<b;_++)w[_-3]=arguments[_];var T;if(this.s.isFocused()||this.s.focus(),!this.o.readonly||this.o.allowCommandsInReadOnly.includes(s)){var z,L;if(s=s.toLowerCase(),(z=(T=this.e).fire.apply(T,["beforeCommand".concat(Lb(s)),d,g].concat(Ty(w))))!==!1&&(z=(L=this.e).fire.apply(L,["beforeCommand",s,d,g].concat(Ty(w)))),z!==!1&&(z=this.__execCustomCommands.apply(this,[s,d,g].concat(Ty(w)))),z!==!1){this.s.focus();try{z=this.nativeExecCommand(s,d,g)}catch{}}return this.e.fire("afterCommand",s,d,g),this.__imdSynchronizeValues(),z}}},{key:"nativeExecCommand",value:function(s,d,g){this.__isSilentChange=!0;try{return this.ed.execCommand(s,d,g)}finally{this.__isSilentChange=!1}}},{key:"__execCustomCommands",value:function(s,d,g){for(var b=this,w=arguments.length,_=new Array(w>3?w-3:0),T=3;T<w;T++)_[T-3]=arguments[T];s=s.toLowerCase();var z,L=this.commands.get(s);if(L!==void 0)return L.forEach(function(D){var q,Y=(q=Pe(D)?D:D.exec).call.apply(q,[b,s,d,g].concat(Ty(_)));Y!==void 0&&(z=Y)}),z}},{key:"lock",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"any";return!!up(tl(c.prototype),"lock",this).call(this,s)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.editor.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}},{key:"unlock",value:function(){return!!up(tl(c.prototype),"unlock",this).call(this)&&(this.editor.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}},{key:"getMode",value:function(){return this.mode}},{key:"isEditorMode",value:function(){return this.getRealMode()===gr}},{key:"getRealMode",value:function(){if(this.getMode()!==ca)return this.getMode();var s=this.od.activeElement;return s&&(s===this.iframe||N.isOrContains(this.editor,s)||N.isOrContains(this.toolbar.container,s))?gr:Nn}},{key:"setMode",value:function(s){var d=this,g=this.getMode(),b={mode:parseInt(s.toString(),10)},w=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];this.e.fire("beforeSetMode",b)!==!1&&(this.__mode=[Nn,gr,ca].includes(b.mode)?b.mode:gr,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),w.forEach(function(_){d.container.classList.remove(_)}),this.container.classList.add(w[this.mode-1]),g!==this.getMode()&&this.e.fire("afterSetMode"))}},{key:"toggleMode",value:function(){var s=this.getMode();[Nn,gr,this.o.useSplitMode?ca:9].includes(s+1)?s+=1:s=gr,this.setMode(s)}},{key:"setDisabled",value:function(s){this.o.disabled=s;var d=this.__wasReadOnly;this.setReadOnly(s||d),this.__wasReadOnly=d,this.editor&&(this.editor.setAttribute("aria-disabled",s.toString()),this.container.classList.toggle("jodit_disabled",s),this.e.fire("disabled",s))}},{key:"getDisabled",value:function(){return this.o.disabled}},{key:"setReadOnly",value:function(s){this.__wasReadOnly!==s&&(this.__wasReadOnly=s,this.o.readonly=s,s?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",s))}},{key:"getReadOnly",value:function(){return this.o.readonly}},{key:"focus",value:function(){this.getMode()!==Nn&&this.s.focus()}},{key:"isFocused",get:function(){return this.s.isFocused()}},{key:"beforeInitHook",value:function(){}},{key:"afterInitHook",value:function(){}},{key:"initOptions",value:function(s){this.options=fn(s||{},de.defaultOptions)}},{key:"initOwners",value:function(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}},{key:"addPlace",value:function(s,d){var g=this,b=$h(s,this.o.shadowRoot||this.od);this.attachEvents(d),b.attributes&&mr(b.attributes).forEach(function(X){var J=X.name,$=X.value;de.defaultOptions[J]===void 0||d&&d[J]!==void 0||(["readonly","disabled"].indexOf(J)!==-1&&($=$===""||$==="true"),/^[0-9]+(\.)?([0-9]+)?$/.test($.toString())&&($=Number($)),g.options[J]=$)});var w=this.c.div("jodit-container");w.classList.add("jodit"),w.classList.add("jodit-container"),w.classList.add("jodit_theme_".concat(this.o.theme||"default")),VI(this.o.className,w),this.o.containerStyle&&be(w,this.o.containerStyle);var _=this.o.styleValues;Object.keys(_).forEach(function(X){var J=oi(X);w.style.setProperty("--jd-".concat(J),_[X])}),w.setAttribute("contenteditable","false");var T=null;this.o.inline&&(["TEXTAREA","INPUT"].indexOf(b.nodeName)===-1&&(w=b,b.setAttribute(Py,b.className.toString()),T=w.innerHTML,w.innerHTML=""),w.classList.add("jodit_inline"),w.classList.add("jodit-container")),b!==w&&(b.style.display&&b.setAttribute(Ry,b.style.display),b.style.display="none");var z=this.c.div("jodit-workplace",{contenteditable:!1});w.appendChild(z),b.parentNode&&b!==w&&b.parentNode.insertBefore(w,b),Object.defineProperty(b,"component",{enumerable:!1,configurable:!0,value:this});var L=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});z.appendChild(L);var D={editor:L,element:b,container:w,workplace:z,statusbar:new yy(this,w),options:this.isReady?fn(d||{},de.defaultOptions):this.options,history:new S2(this),editorWindow:this.ow};this.__elementToPlace.set(L,D),this.setCurrentPlace(D),this.places.push(D),this.setNativeEditorValue(this.getElementValue());var q=this.__initEditor(T),Y=this.options;return Xa(q,function(){Y.enableDragAndDropFileToEditor&&Y.uploader&&(Y.uploader.url||Y.uploader.insertImageAsBase64URI)&&g.uploader.bind(g.editor),g.__elementToPlace.get(g.editor)||g.__elementToPlace.set(g.editor,D),g.e.fire("afterAddPlace",D)})}},{key:"addDisclaimer",value:function(s){this.workplace.appendChild(s)}},{key:"setCurrentPlace",value:function(s){this.currentPlace!==s&&(this.isEditorMode()||this.setMode(gr),this.currentPlace=s,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",s))}},{key:"__initEditor",value:function(s){var d=this;return Xa(this.__createEditor(),function(){if(!d.isInDestruct){if(d.element!==d.container){var g=d.getElementValue();g!==d.getEditorValue()&&d.setEditorValue(g)}else s!=null&&d.setEditorValue(s);var b=d.o.defaultMode;if(d.o.saveModeInStorage){var w=d.storage.get("jodit_default_mode");typeof w=="string"&&(b=parseInt(w,10))}d.setMode(b),d.o.readonly&&(d.__wasReadOnly=!1,d.setReadOnly(!0)),d.o.disabled&&d.setDisabled(!0);try{d.ed.execCommand("defaultParagraphSeparator",!1,d.o.enter.toLowerCase())}catch{}}})}},{key:"__createEditor",value:function(){var s=this,d=this.editor,g=this.e.fire("createEditor",this);return Xa(g,function(){s.isInDestruct||((g===!1||Ih(g))&&N.safeRemove(d),VI(s.o.editorClassName,s.editor),s.o.style&&be(s.editor,s.o.style),s.e.on("synchro",function(){s.setEditorValue()}).on("focus",function(){s.editorIsActive=!0}).on("blur",function(){return s.editorIsActive=!1}),s.__prepareWYSIWYGEditor(),s.o.triggerChangeEvent&&s.e.on("change",s.async.debounce(function(){s.e&&s.e.fire(s.element,"change")},s.defaultTimeout)))})}},{key:"__prepareWYSIWYGEditor",value:function(){var s=this,d=this.editor;if(this.o.direction){var g=this.o.direction.toLowerCase()==="rtl"?"rtl":"ltr";this.editor.style.direction=g,this.editor.setAttribute("dir",g),this.container.style.direction=g,this.container.setAttribute("dir",g),this.toolbar.setDirection(g)}this.e.on(d,"mousedown touchstart focus",function(){var b=s.__elementToPlace.get(d);b&&s.setCurrentPlace(b)}).on(d,"compositionend",this.synchronizeValues).on(d,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",function(b){var w,_;if(!s.o.readonly&&!s.__isSilentChange&&(w=b,(!((_=s.ew.KeyboardEvent)!=null&&typeof Symbol<"u"&&_[Symbol.hasInstance]?_[Symbol.hasInstance](w):w instanceof _)||!b.isComposing)&&s.e&&s.e.fire)){if(s.e.fire(b.type,b)===!1)return!1;s.synchronizeValues()}})}},{key:"fetch",value:function(s,d){var g=this,b=new Ju(function(T){for(var z=1;z<arguments.length;z++){var L=arguments[z]!=null?arguments[z]:{},D=Object.keys(L);typeof Object.getOwnPropertySymbols=="function"&&(D=D.concat(Object.getOwnPropertySymbols(L).filter(function(q){return Object.getOwnPropertyDescriptor(L,q).enumerable}))),D.forEach(function(q){M$(T,q,L[q])})}return T}({url:s},d),this.o.defaultAjaxOptions),w=function(){g.e.off("beforeDestruct",w),g.progressbar.progress(100).hide(),b.destruct()};this.e.one("beforeDestruct",w),this.progressbar.show().progress(30);var _=b.send();return _.finally(w).catch(function(){return null}),_}},{key:"destruct",value:function(){var s,d,g=this;if(!this.isInDestruct){this.setStatus(Xt.beforeDestruct),this.__elementToPlace.clear(),(s=Zn(this,"storage"))===null||s===void 0||s.clear(),(d=Zn(this,"buffer"))===null||d===void 0||d.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body);var b=this.editor?this.getEditorValue():"";this.places.forEach(function(w){var _=w.container,T=w.workplace,z=w.statusbar,L=w.element,D=w.iframe,q=w.editor,Y=w.history;if(L){if(L!==_)if(L.hasAttribute(Ry)){var X=fe(L,Ry);X&&(L.style.display=X,L.removeAttribute(Ry))}else L.style.display="";else L.hasAttribute(Py)&&(L.className=fe(L,Py)||"",L.removeAttribute(Py));L.hasAttribute("style")&&!fe(L,"style")&&L.removeAttribute("style"),z.destruct(),g.e.off(_),g.e.off(L),g.e.off(q),N.safeRemove(T),N.safeRemove(q),_!==L&&N.safeRemove(_),Object.defineProperty(L,"component",{enumerable:!1,configurable:!0,value:null}),N.safeRemove(D),_===L&&(L.innerHTML=b),Y.destruct()}}),this.places.length=0,this.currentPlace={},delete Db[this.id],up(tl(c.prototype),"destruct",this).call(this)}}}],i=[{key:"ready",get:function(){return new Promise(function(s){$a.on("joditready",s)})}},{key:"atom",value:function(s){return hP(s)}},{key:"make",value:function(s,d){return new this(s,d)}},{key:"isJoditAssigned",value:function(s){return s&&_n(s.component)&&!s.component.isInDestruct}},{key:"defaultOptions",get:function(){return de.defaultOptions}}],u&&BI(h.prototype,u),i&&BI(h,i),c}(gd);function VI(l,c){l&&l.split(/\s+/).forEach(function(h){return c.classList.add(h)})}ur.fatMode=C5,ur.plugins=Ve,ur.modules=qk,ur.ns=qk,ur.decorators={},ur.constants=p,ur.instances=Db,ur.lang=uo,ur.core={Plugin:ut},ns([vr],ur.prototype,"createInside",null),ns([vr],ur.prototype,"message",null),ns([vr],ur.prototype,"s",null),ns([vr],ur.prototype,"uploader",null),ns([vr],ur.prototype,"filebrowser",null),ns([Za()],ur.prototype,"synchronizeValues",null),ns([_e(":internalChange")],ur.prototype,"updateElementValue",null),ns([Ce],ur.prototype,"__prepareWYSIWYGEditor",null),ur=H2=ns([Ku(IM)],ur);const I$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> `,L$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> `,N$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> `,D$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> `,B$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg> `,F$='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg> ',H$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg> `,U$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> `,V$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg> `,q$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg> `,Y$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg> `,W$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg> `,X$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg> `,G$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg> `,$$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> `,Z$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg> `,K$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg> `,J$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg> `,Q$=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> `,eZ='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg> ',tZ=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> `,rZ=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg> `,nZ='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg> ',oZ=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg> `,iZ=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg> `,aZ=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg> `,sZ=`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg> `,qI={};var kc={};kc={ar:{"Type something":"إبدأ في الكتابة...","About Jodit":"حول جوديت","Jodit Editor":"محرر جوديت","Jodit User's Guide":"دليل مستخدم جوديت","contains detailed help for using":"يحتوي على مساعدة مفصلة للاستخدام","For information about the license, please go to our website:":"للحصول على معلومات حول الترخيص، يرجى الذهاب لموقعنا:","Buy full version":"شراء النسخة الكاملة","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"حقوق الطبع والنشر © XDSoft.net - Chupurnov Valeriy. كل الحقوق محفوظة.",Anchor:"مِرْساة","Open in new tab":"فتح في نافذة جديدة","Open in fullsize":"فتح المحرر في الحجم الكامل","Clear Formatting":"مسح التنسيق","Fill color or set the text color":"ملء اللون أو تعيين لون النص",Redo:"إعادة",Undo:"تراجع",Bold:"عريض",Italic:"مائل","Insert Unordered List":"إدراج قائمة غير مرتبة","Insert Ordered List":"إدراج قائمة مرتبة","Align Center":"محاذاة للوسط","Align Justify":"محاذاة مثبتة","Align Left":"محاذاة لليسار","Align Right":"محاذاة لليمين","Insert Horizontal Line":"إدراج خط أفقي","Insert Image":"إدراج صورة","Insert file":"ادخال الملف","Insert youtube/vimeo video":"إدراج فيديو يوتيوب/فيميو ","Insert link":"إدراج رابط","Font size":"حجم الخط","Font family":"نوع الخط","Insert format block":"إدراج كتلة تنسيق",Normal:"عادي","Heading 1":"عنوان 1","Heading 2":"عنوان 2","Heading 3":"عنوان 3","Heading 4":"عنوان 4",Quote:"إقتباس",Code:"كود",Insert:"إدراج","Insert table":"إدراج جدول","Decrease Indent":"تقليل المسافة البادئة","Increase Indent":"زيادة المسافة البادئة","Select Special Character":"تحديد أحرف خاصة","Insert Special Character":"إدراج حرف خاص","Paint format":"تنسيق الرسم","Change mode":"تغيير الوضع",Margins:"هوامش",top:"أعلى",right:"يمين",bottom:"أسفل",left:"يسار",Styles:"الأنماط",Classes:"الطبقات",Align:"محاذاة",Right:"اليمين",Center:"الوسط",Left:"اليسار","--Not Set--":"--غير مضبوط--",Src:"Src",Title:"العنوان",Alternative:"العنوان البديل",Link:"الرابط","Open link in new tab":"افتح الرابط في نافذة جديدة",Image:"الصورة",file:"ملف",Advanced:"متقدم","Image properties":"خصائص الصورة",Cancel:"إلغاء",Ok:"حسنا","File Browser":"متصفح الملفات","Error on load list":"حدث خطأ في تحميل القائمة ","Error on load folders":"حدث خطأ في تحميل المجلدات","Are you sure?":"هل أنت واثق؟","Enter Directory name":"أدخل اسم المجلد","Create directory":"إنشاء مجلد","type name":"أكتب إسم","Drop image":"إسقاط صورة","Drop file":"إسقاط الملف","or click":"أو أنقر","Alternative text":"النص البديل",Upload:"رفع",Browse:"تصفح",Background:"الخلفية",Text:"نص",Top:"أعلى",Middle:"الوسط",Bottom:"الأسفل","Insert column before":"إدراج عمود قبل","Insert column after":"إدراج عمود بعد","Insert row above":"إدراج صف أعلى","Insert row below":"إدراج صف أسفل","Delete table":"حذف الجدول","Delete row":"حذف الصف","Delete column":"حذف العمود","Empty cell":"خلية فارغة","Chars: %d":"%d حرف","Words: %d":"%d كلام","Strike through":"اضرب من خلال",Underline:"أكد",superscript:"حرف فوقي",subscript:"مخطوطة","Cut selection":"قطع الاختيار","Select all":"اختر الكل",Break:"استراحة","Search for":"البحث عن","Replace with":"استبدل ب",Replace:"محل",Paste:"معجون","Choose Content to Paste":"اختر محتوى للصق",source:"مصدر",bold:"بالخط العريض",italic:"مائل",brush:"شغل",link:"صلة",undo:"إلغاء",redo:"كرر",table:"طاولة",image:"صورة",eraser:"نظيف",paragraph:"فقرة",fontsize:"حجم الخط",video:"فيديو",font:"الخط",about:"حول المحرر",print:"طباعة",underline:"أكد",strikethrough:"شطب",indent:"المسافة البادئة",outdent:"نتوء",fullsize:"ملء الشاشة",shrink:"الحجم التقليدي",hr:"الخط",ul:"قائمة",ol:"قائمة مرقمة",cut:"قطع",selectall:"اختر الكل","Embed code":"قانون","Open link":"فتح الرابط","Edit link":"تعديل الرابط","No follow":"سمة Nofollow",Unlink:"إزالة الرابط",Update:"تحديث",pencil:"لتحرير",Eye:"مراجعة"," URL":"URL",Edit:"تحرير","Horizontal align":"محاذاة أفقية",Filter:"فلتر","Sort by changed":"عن طريق التغيير","Sort by name":"بالاسم","Sort by size":"حسب الحجم","Add folder":"إضافة مجلد",Reset:"إعادة",Save:"احتفظ","Save as ...":"حفظ باسم",Resize:"تغيير الحجم",Crop:"حجم القطع",Width:"عرض",Height:"ارتفاع","Keep Aspect Ratio":"حافظ على النسب",Yes:"أن",No:"لا",Remove:"حذف",Select:"تميز","Select %s":"تميز %s","Vertical align":"محاذاة عمودية",Split:"انشق، مزق",Merge:"اذهب","Add column":"أضف العمود","Add row":"اضف سطر","License: %s":"رخصة %s",Delete:"حذف","Split vertical":"انقسام عمودي","Split horizontal":"تقسيم أفقي",Border:"الحدود","Your code is similar to HTML. Keep as HTML?":"يشبه الكود الخاص بك HTML. تبقي كما HTML؟","Paste as HTML":"الصق ك HTML",Keep:"احتفظ","Insert as Text":"إدراج كنص","Insert only Text":"إدراج النص فقط","You can only edit your own images. Download this image on the host?":"يمكنك فقط تحرير صورك الخاصة. تحميل هذه الصورة على المضيف؟","The image has been successfully uploaded to the host!":"تم تحميل الصورة بنجاح على الخادم!",palette:"لوحة","There are no files":"لا توجد ملفات في هذا الدليل.",Rename:"إعادة تسمية","Enter new name":"أدخل اسم جديد",preview:"معاينة",download:"تحميل","Paste from clipboard":"لصق من الحافظة","Your browser doesn't support direct access to the clipboard.":"متصفحك لا يدعم إمكانية الوصول المباشر إلى الحافظة.","Copy selection":"نسخ التحديد",copy:"نسخ","Border radius":"دائرة نصف قطرها الحدود","Show all":"عرض كل",Apply:"تطبيق","Please fill out this field":"يرجى ملء هذا المجال","Please enter a web address":"يرجى إدخال عنوان ويب",Default:"الافتراضي",Circle:"دائرة",Dot:"نقطة",Quadrate:"المربعة",Find:"البحث","Find Previous":"تجد السابقة","Find Next":"تجد التالي","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"للصق المحتوى قادم من Microsoft Word/Excel الوثيقة. هل تريد أن تبقي شكل أو تنظيفه ؟ ","Word Paste Detected":"كلمة لصق الكشف عن",Clean:"نظيفة","Insert className":"أدخل اسم الفصل","Press Alt for custom resizing":"اضغط البديل لتغيير حجم مخصص","Line height":"ارتفاع الخط",spellcheck:"التدقيق الإملائي","Speech Recognize":"التعرف على الكلام"},cs_cz:{"Type something":"Napiš něco","About Jodit":"O Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Verze pro nekomerční použití","Jodit User's Guide":"Jodit Uživatelská příručka","contains detailed help for using":"obsahuje detailní nápovědu","For information about the license, please go to our website:":"Pro informace o licenci, prosím, přejděte na naši stránku:","Buy full version":"Koupit plnou verzi","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Všechna práva vyhrazena.",Anchor:"Anchor","Open in new tab":"Otevřít v nové záložce","Open in fullsize":"Otevřít v celoobrazovkovém režimu","Clear Formatting":"Vyčistit formátování","Fill color or set the text color":"Barva výplně a písma",Redo:"Vpřed",Undo:"Zpět",Bold:"Tučné",Italic:"Kurzíva","Insert Unordered List":"Odrážky","Insert Ordered List":"Číslovaný seznam","Align Center":"Zarovnat na střed","Align Justify":"Zarovnat do bloku","Align Left":"Zarovnat vlevo","Align Right":"Zarovnat vpravo","Insert Horizontal Line":"Vložit horizontální linku","Insert Image":"Vložit obrázek","Insert file":"Vložit soubor","Insert youtube/vimeo video":"Vložit video (YT/Vimeo)","Insert link":"Vložit odkaz","Font size":"Velikost písma","Font family":"Typ písma","Insert format block":"Formátovat blok",Normal:"Normální text","Heading 1":"Nadpis 1","Heading 2":"Nadpis 2","Heading 3":"Nadpis 3","Heading 4":"Nadpis 4",Quote:"Citát",Code:"Kód",Insert:"Vložit","Insert table":"Vložit tabulku","Decrease Indent":"Zmenšit odsazení","Increase Indent":"Zvětšit odsazení","Select Special Character":"Vybrat speciální symbol","Insert Special Character":"Vložit speciální symbol","Paint format":"Použít formát","Change mode":"Změnit mód",Margins:"Okraje",top:"horní",right:"pravý",bottom:"spodní",left:"levý",Styles:"Styly",Classes:"Třídy",Align:"Zarovnání",Right:"Vpravo",Center:"Na střed",Left:"Vlevo","--Not Set--":"--nenastaveno--",Src:"src",Title:"Titulek",Alternative:"Alternativní text (alt)",Link:"Link","Open link in new tab":"Otevřít link v nové záložce",Image:"Obrázek",file:"soubor",Advanced:"Rozšířené","Image properties":"Vlastnosti obrázku",Cancel:"Zpět",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Váš text se podobá HTML. Vložit ho jako HTML?","Paste as HTML":"Vložit jako HTML",Keep:"Ponechat originál",Clean:"Vyčistit","Insert as Text":"Vložit jako TEXT","Insert only Text":"Vložit pouze TEXT","Word Paste Detected":"Detekován fragment z Wordu nebo Excelu","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Obsah, který vkládáte, je pravděpodobně z Microsoft Word / Excel. Chcete ponechat formát nebo vložit pouze text?","File Browser":"Prohlížeč souborů","Error on load list":"Chyba při načítání seznamu souborů","Error on load folders":"Chyba při načítání složek","Are you sure?":"Jste si jistý(á)?","Enter Directory name":"Název složky","Create directory":"Vytvořit složku","type name":"název","Drop image":"Přetáhněte sem obrázek","Drop file":"Přetáhněte sem soubor","or click":"nebo klikněte","Alternative text":"Alternativní text",Browse:"Server",Upload:"Nahrát",Background:"Pozadí",Text:"Text",Top:"Nahoru",Middle:"Na střed",Bottom:"Dolu","Insert column before":"Vložit sloupec před","Insert column after":"Vložit sloupec za","Insert row above":"Vložit řádek nad","Insert row below":"Vložit řádek pod","Delete table":"Vymazat tabulku","Delete row":"Vymazat řádku","Delete column":"Vymazat sloupec","Empty cell":"Vyčistit buňku",source:"HTML",bold:"tučně",italic:"kurzíva",brush:"štětec",link:"odkaz",undo:"zpět",redo:"vpřed",table:"tabulka",image:"obrázek",eraser:"guma",paragraph:"odstavec",fontsize:"velikost písma",video:"video",font:"písmo",about:"о editoru",print:"tisk",underline:"podtrženo",strikethrough:"přeškrtnuto",indent:"zvětšit odsazení",outdent:"zmenšit odsazení",fullsize:"celoobrazovkový režim",shrink:"smrsknout",hr:"Linka",ul:"Odrážka",ol:"Číslovaný seznam",cut:"Vyjmout",selectall:"Označit vše","Embed code":"Kód","Open link":"Otevřít odkaz","Edit link":"Upravit odkaz","No follow":"Atribut no-follow",Unlink:"Odstranit odkaz",Eye:"Zobrazit",pencil:"Chcete-li upravit",Update:"Aktualizovat"," URL":"URL",Edit:"Editovat","Horizontal align":"Horizontální zarovnání",Filter:"Filtr","Sort by changed":"Dle poslední změny","Sort by name":"Dle názvu","Sort by size":"Dle velikosti","Add folder":"Přidat složku",Reset:"Reset",Save:"Uložit","Save as ...":"Uložit jako...",Resize:"Změnit rozměr",Crop:"Ořezat",Width:"Šířka",Height:"Výška","Keep Aspect Ratio":"Ponechat poměr",Yes:"Ano",No:"Ne",Remove:"Vyjmout",Select:"Označit","Chars: %d":"Znaky: %d","Words: %d":"Slova: %d",All:"Vše","Select %s":"Označit %s","Select all":"Označit vše","Vertical align":"Vertikální zarovnání",Split:"Rozdělit","Split vertical":"Rozdělit vertikálně","Split horizontal":"Rozdělit horizontálně",Merge:"Spojit","Add column":"Přidat sloupec","Add row":"Přidat řádek",Delete:"Vymazat",Border:"Okraj","License: %s":"Licence: %s","Strike through":"Přeškrtnuto",Underline:"Podtrženo",superscript:"Horní index",subscript:"Dolní index","Cut selection":"Vyjmout označené",Break:"Zalomení","Search for":"Najdi","Replace with":"Nahradit za",Replace:"Vyměňte",Paste:"Vložit","Choose Content to Paste":"Vyber obsah pro vložení","You can only edit your own images. Download this image on the host?":"Můžete upravovat pouze své obrázky. Načíst obrázek?","The image has been successfully uploaded to the host!":"Obrázek byl úspěšně nahrán!",palette:"paleta","There are no files":"V tomto adresáři nejsou žádné soubory.",Rename:"přejmenovat","Enter new name":"Zadejte nový název",preview:"náhled",download:"Stažení","Paste from clipboard":"Vložit ze schránky","Your browser doesn't support direct access to the clipboard.":"Váš prohlížeč nepodporuje přímý přístup do schránky.","Copy selection":"Kopírovat výběr",copy:"kopírování","Border radius":"Border radius","Show all":"Zobrazit všechny",Apply:"Platí","Please fill out this field":"Prosím, vyplňte toto pole","Please enter a web address":"Prosím, zadejte webovou adresu",Default:"Výchozí",Circle:"Kruh",Dot:"Dot",Quadrate:"Quadrate",Find:"Najít","Find Previous":"Najít Předchozí","Find Next":"Najít Další","Insert className":"Vložte název třídy","Press Alt for custom resizing":"Stiskněte Alt pro vlastní změnu velikosti"},de:{"Type something":"Bitte geben Sie einen Text ein",Advanced:"Fortgeschritten","About Jodit":"Über Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Das Jodit Benutzerhandbuch","contains detailed help for using":"beinhaltet ausführliche Informationen wie Sie den Editor verwenden können.","For information about the license, please go to our website:":"Für Informationen zur Lizenz, besuchen Sie bitte unsere Web-Präsenz:","Buy full version":"Vollversion kaufen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.",Anchor:"Anker","Open in new tab":"In neuer Registerkarte öffnen","Open in fullsize":"Editor in voller Größe öffnen","Clear Formatting":"Formatierung löschen","Fill color or set the text color":"Füllfarbe oder Textfarbe ändern",Redo:"Wiederholen",Undo:"Rückgängig machen",Bold:"Fett",Italic:"Kursiv","Insert Unordered List":"Unsortierte Liste einfügen","Insert Ordered List":"Nummerierte Liste einfügen","Align Center":"Mittig ausrichten","Align Justify":"Blocksatz","Align Left":"Links ausrichten","Align Right":"Rechts ausrichten","Insert Horizontal Line":"Horizontale Linie einfügen","Insert Image":"Bild einfügen","Insert file":"Datei einfügen","Insert youtube/vimeo video":"Youtube/vimeo Video einfügen","Insert link":"Link einfügen","Font size":"Schriftgröße","Font family":"Schriftfamilie","Insert format block":"Formatblock einfügen",Normal:"Normal","Heading 1":"Überschrift 1","Heading 2":"Überschrift 2","Heading 3":"Überschrift 3","Heading 4":"Überschrift 4",Quote:"Zitat",Code:"Code",Insert:"Einfügen","Insert table":"Tabelle einfügen","Decrease Indent":"Einzug verkleinern","Increase Indent":"Einzug vergrößern","Select Special Character":"Sonderzeichen auswählen","Insert Special Character":"Sonderzeichen einfügen","Paint format":"Format kopieren","Change mode":"Änderungsmodus",Margins:"Ränder",top:"Oben",right:"Rechts",bottom:"Unten",left:"Links",Styles:"CSS Stil",Classes:"CSS Klassen",Align:"Ausrichtung",Right:"Rechts",Center:"Zentriert",Left:"Links","--Not Set--":"Keine",Src:"Pfad",Title:"Titel",Alternative:"Alternativer Text",Link:"Link","Open link in new tab":"Link in neuem Tab öffnen",Image:"Bild",file:"Datei","Image properties":"Bildeigenschaften",Cancel:"Abbrechen",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Ihr Text ähnelt HTML-Code. Als HTML beibehalten?","Paste as HTML":"Als HTML einfügen?",Keep:"Original speichern",Clean:"Säubern","Insert as Text":"Als Text einfügen","Word Paste Detected":"In Word formatierter Text erkannt","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder bereinigen?","Insert only Text":"Nur Text einfügen","File Browser":"Dateibrowser","Error on load list":"Fehler beim Laden der Liste","Error on load folders":"Fehler beim Laden der Ordner","Are you sure?":"Sind Sie sicher?","Enter Directory name":"Geben Sie den Verzeichnisnamen ein","Create directory":"Verzeichnis erstellen","type name":"Typname","Drop image":"Bild hier hinziehen","Drop file":"Datei löschen","or click":"oder hier klicken","Alternative text":"Alternativtext",Browse:"Auswählen",Upload:"Hochladen",Background:"Hintergrund",Text:"Text",Top:"Oben",Middle:"Mittig",Bottom:"Unten","Insert column before":"Spalte davor einfügen","Insert column after":"Spalte danach einfügen","Insert row above":"Zeile oberhalb einfügen","Insert row below":"Zeile unterhalb einfügen","Delete table":"Tabelle löschen","Delete row":"Zeile löschen","Delete column":"Spalte löschen","Empty cell":"Zelle leeren",Delete:"Löschen","Strike through":"Durchstreichen",Underline:"Unterstreichen",Break:"Pause","Search for":"Suche nach","Replace with":"Ersetzen durch",Replace:"Ersetzen",Edit:"Bearbeiten","Vertical align":"Vertikale Ausrichtung","Horizontal align":"Horizontale Ausrichtung",Filter:"Filter","Sort by changed":"Sortieren nach geändert","Sort by name":"Nach Name sortieren","Sort by size":"Nach Größe sortiert","Add folder":"Ordner hinzufügen","Split vertical":"Vertikal unterteilen","Split horizontal":"Horizontal unterteilen",Split:"Unterteilen",Merge:"Vereinen","Add column":"Spalte hinzufügen","Add row":"Zeile hinzufügen",Border:"Rand","Embed code":"Code einbetten",Update:"Aktualisieren",superscript:"Hochstellen",subscript:"Tiefstellen","Cut selection":"Auswahl ausschneiden",Paste:"Einfügen","Choose Content to Paste":"Wählen Sie den Inhalt zum Einfügen aus","Chars: %d":"Zeichen: %d","Words: %d":"Wörter: %d",All:"Alles markieren","Select %s":"Markieren: %s","Select all":"Alles markieren",source:"HTML",bold:"Fett gedruckt",italic:"Kursiv",brush:"Bürste",link:"Verknüpfung",undo:"Rückgängig machen",redo:"Wiederholen",table:"Tabelle",image:"Bild",eraser:"Radiergummi",paragraph:"Absatz",fontsize:"Schriftgröße",video:"Video",font:"Schriftart",about:"Über",print:"Drucken",underline:"Unterstreichen",strikethrough:"Durchstreichen",indent:"Einzug",outdent:"Herausstellen",fullsize:"Vollgröße",shrink:"Schrumpfen",hr:"die Linie",ul:"Liste von",ol:"Nummerierte Liste","Lower Alpha":"Standard, Alphabet (klein)","Upper Alpha":"Standard, Alphabet (gross)","Lower Roman":"Römisch (klein)","Upper Roman":"Römisch (gross)","Lower Greek":"Griechisch",cut:"Schneiden",selectall:"Wählen Sie Alle aus","Open link":"Link öffnen","Edit link":"Link bearbeiten","No follow":"Nofollow-Attribut",Unlink:"Link entfernen",Eye:"Ansehen",pencil:"Bearbeiten"," URL":"URL",Reset:"Wiederherstellen",Save:"Speichern","Save as ...":"Speichern als",Resize:"Größe ändern",Crop:"Größe anpassen",Width:"Breite",Height:"Höhe","Keep Aspect Ratio":"Seitenverhältnis beibehalten",Yes:"Ja",No:"Nein",Remove:"Entfernen",Select:"Markieren","You can only edit your own images. Download this image on the host?":"Sie können nur Ihre eigenen Bilder bearbeiten. Dieses Bild auf den Host herunterladen?","The image has been successfully uploaded to the host!":"Das Bild wurde erfolgreich auf den Server hochgeladen!",palette:"Palette","There are no files":"In diesem Verzeichnis befinden sich keine Dateien.",Rename:"Umbenennen","Enter new name":"Geben Sie einen neuen Namen ein",preview:"Vorschau",download:"Herunterladen","Paste from clipboard":"Aus Zwischenablage einfügen","Your browser doesn't support direct access to the clipboard.":"Ihr Browser unterstützt keinen direkten Zugriff auf die Zwischenablage.","Copy selection":"Auswahl kopieren",copy:"Kopieren","Border radius":"Radius für abgerundete Ecken","Show all":"Alle anzeigen",Apply:"Anwenden","Please fill out this field":"Bitte füllen Sie dieses Feld aus","Please enter a web address":"Bitte geben Sie eine Web-Adresse ein",Default:"Standard",Circle:"Kreis",Dot:"Punkte",Quadrate:"Quadrate",Find:"Suchen","Find Previous":"Suche vorherige","Find Next":"Weitersuchen","Insert className":"className (CSS) einfügen","Press Alt for custom resizing":"Drücken Sie Alt für benutzerdefinierte Größenanpassung"},en:{"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"},es:{"Type something":"Escriba algo...",Advanced:"Avanzado","About Jodit":"Acerca de Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guía de usuario Jodit","contains detailed help for using":"contiene ayuda detallada para el uso.","For information about the license, please go to our website:":"Para información sobre la licencia, por favor visite nuestro sitio:","Buy full version":"Compre la versión completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.",Anchor:"Anclar","Open in new tab":"Abrir en nueva pestaña","Open in fullsize":"Abrir editor en pantalla completa","Clear Formatting":"Limpiar formato","Fill color or set the text color":"Color de relleno o de letra",Redo:"Rehacer",Undo:"Deshacer",Bold:"Negrita",Italic:"Cursiva","Insert Unordered List":"Insertar lista no ordenada","Insert Ordered List":"Insertar lista ordenada","Align Center":"Alinear Centrado","Align Justify":"Alinear Justificado","Align Left":"Alinear Izquierda","Align Right":"Alinear Derecha","Insert Horizontal Line":"Insertar línea horizontal","Insert Image":"Insertar imagen","Insert file":"Insertar archivo","Insert youtube/vimeo video":"Insertar video de Youtube/vimeo","Insert link":"Insertar vínculo","Font size":"Tamaño de letra","Font family":"Familia de letra","Insert format block":"Insertar bloque",Normal:"Normal","Heading 1":"Encabezado 1","Heading 2":"Encabezado 2","Heading 3":"Encabezado 3","Heading 4":"Encabezado 4",Quote:"Cita",Code:"Código",Insert:"Insertar","Insert table":"Insertar tabla","Decrease Indent":"Disminuir sangría","Increase Indent":"Aumentar sangría","Select Special Character":"Seleccionar caracter especial","Insert Special Character":"Insertar caracter especial","Paint format":"Copiar formato","Change mode":"Cambiar modo",Margins:"Márgenes",top:"arriba",right:"derecha",bottom:"abajo",left:"izquierda",Styles:"Estilos CSS",Classes:"Clases CSS",Align:"Alinear",Right:"Derecha",Center:"Centrado",Left:"Izquierda","--Not Set--":"--No Establecido--",Src:"Fuente",Title:"Título",Alternative:"Texto Alternativo",Filter:"Filtrar",Link:"Vínculo","Open link in new tab":"Abrir vínculo en nueva pestaña",Image:"Imagen",file:"Archivo","Image properties":"Propiedades de imagen",Cancel:"Cancelar",Ok:"Aceptar","Your code is similar to HTML. Keep as HTML?":"El código es similar a HTML. ¿Mantener como HTML?","Paste as HTML":"Pegar como HTML?",Keep:"Mantener",Clean:"Limpiar","Insert as Text":"Insertar como texto","Word Paste Detected":"Pegado desde Word detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"El contenido pegado proviene de un documento de Microsoft Word/Excel. ¿Desea mantener el formato o limpiarlo?","Insert only Text":"Insertar solo texto","File Browser":"Buscar archivo","Error on load list":"Error al cargar la lista","Error on load folders":"Error al cargar las carpetas","Are you sure?":"¿Está seguro?","Enter Directory name":"Entre nombre de carpeta","Create directory":"Crear carpeta","type name":"Entre el nombre","Drop image":"Soltar imagen","Drop file":"Soltar archivo","or click":"o click","Alternative text":"Texto alternativo",Browse:"Buscar",Upload:"Subir",Background:"Fondo",Text:"Texto",Top:"Arriba",Middle:"Centro",Bottom:"Abajo","Insert column before":"Insertar columna antes","Insert column after":"Interar columna después","Insert row above":"Insertar fila arriba","Insert row below":"Insertar fila debajo","Delete table":"Borrar tabla","Delete row":"Borrar fila","Delete column":"Borrar columna","Empty cell":"Vaciar celda",Delete:"Borrar","Strike through":"Tachado",Underline:"Subrayado",Break:"Pausa","Search for":"Buscar","Replace with":"Reemplazar con",Replace:"Reemplazar",Edit:"Editar","Vertical align":"Alineación vertical","Horizontal align":"Alineación horizontal","Sort by changed":"Ordenar por fecha modificación","Sort by name":"Ordenar por nombre","Sort by size":"Ordenar por tamaño","Add folder":"Agregar carpeta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mezclar","Add column":"Agregar columna","Add row":"Agregar fila",Border:"Borde","Embed code":"Incluir código",Update:"Actualizar",superscript:"superíndice",subscript:"subíndice","Cut selection":"Cortar selección",Paste:"Pegar","Choose Content to Paste":"Seleccionar contenido para pegar","Chars: %d":"Caracteres: %d","Words: %d":"Palabras: %d",All:"Todo","Select %s":"Seleccionar: %s","Select all":"Seleccionar todo",source:"HTML",bold:"negrita",italic:"cursiva",brush:"Brocha",link:"Vínculo",undo:"deshacer",redo:"rehacer",table:"Tabla",image:"Imagen",eraser:"Borrar",paragraph:"Párrafo",fontsize:"Tamaño de letra",video:"Video",font:"Letra",about:"Acerca de",print:"Imprimir",underline:"subrayar",strikethrough:"tachar",indent:"sangría",outdent:"quitar sangría",fullsize:"Tamaño completo",shrink:"encoger",hr:"línea horizontal",ul:"lista sin ordenar",ol:"lista ordenada",cut:"Cortar",selectall:"Seleccionar todo","Open link":"Abrir vínculo","Edit link":"Editar vínculo","No follow":"No seguir",Unlink:"Desvincular",Eye:"Ver",pencil:"Para editar"," URL":"URL",Reset:"Resetear",Save:"Guardar","Save as ...":"Guardar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Ancho",Height:"Alto","Keep Aspect Ratio":"Mantener relación de aspecto",Yes:"Si",No:"No",Remove:"Quitar",Select:"Seleccionar","You can only edit your own images. Download this image on the host?":"Solo puedes editar tus propias imágenes. ¿Descargar esta imagen en el servidor?","The image has been successfully uploaded to the host!":"¡La imagen se ha subido correctamente al servidor!",palette:"paleta","There are no files":"No hay archivos en este directorio.",Rename:"renombrar","Enter new name":"Ingresa un nuevo nombre",preview:"avance",download:"Descargar","Paste from clipboard":"Pegar desde el portapapeles","Your browser doesn't support direct access to the clipboard.":"Su navegador no soporta el acceso directo en el portapapeles.","Copy selection":"Selección de copia",copy:"copia","Border radius":"Radio frontera","Show all":"Mostrar todos los",Apply:"Aplicar","Please fill out this field":"Por favor, rellene este campo","Please enter a web address":"Por favor, introduzca una dirección web",Default:"Predeterminado",Circle:"Círculo",Dot:"Punto",Quadrate:"Cuadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Griego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Mayúscula","Upper Roman":"Romano Mayúscula",Find:"Encontrar","Find Previous":"Buscar Anterior","Find Next":"Buscar Siguiente","Insert className":"Insertar nombre de clase","Press Alt for custom resizing":"Presione Alt para cambiar el tamaño personalizado"},fi:{"Type something":"Kirjoita jotain...",Advanced:"Avanzado","About Jodit":"Tietoja Jodit:ista","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit käyttäjän ohje","contains detailed help for using":"sisältää tarkempaa tietoa käyttämiseen","For information about the license, please go to our website:":"Tietoa lisensoinnista, vieraile verkkosivuillamme:","Buy full version":"Osta täysi versio","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Kaikki oikeudet pidätetään.",Anchor:"Ankkuri","Open in new tab":"Avaa uudessa välilehdessä","Open in fullsize":"Avaa täysikokoisena","Clear Formatting":"Poista muotoilu","Fill color or set the text color":"Täytä värillä tai aseta tekstin väri",Redo:"Tee uudelleen",Undo:"Peruuta",Bold:"Lihavoitu",Italic:"Kursiivi","Insert Unordered List":"Lisää järjestämätön lista","Insert Ordered List":"Lisää järjestetty lista","Align Center":"Asemoi keskelle","Align Justify":"Asemoi tasavälein","Align Left":"Asemoi vasemmalle","Align Right":"Asemoi oikealle","Insert Horizontal Line":"Lisää vaakasuuntainen viiva","Insert Image":"Lisää kuva","Insert file":"Lisää tiedosto","Insert youtube/vimeo video":"Lisää Youtube-/vimeo- video","Insert link":"Lisää linkki","Font size":"Kirjasimen koko","Font family":"Kirjasimen nimi","Insert format block":"Lisää muotoilualue",Normal:"Normaali","Heading 1":"Otsikko 1","Heading 2":"Otsikko 2","Heading 3":"Otsikko 3","Heading 4":"Otsikko 4",Quote:"Lainaus",Code:"Koodi",Insert:"Lisää","Insert table":"Lisää taulukko","Decrease Indent":"Pienennä sisennystä","Increase Indent":"Lisää sisennystä","Select Special Character":"Valitse erikoismerkki","Insert Special Character":"Lisää erikoismerkki","Paint format":"Maalaa muotoilu","Change mode":"Vaihda tilaa",Margins:"Marginaalit",top:"ylös",right:"oikealle",bottom:"alas",left:"vasemmalle",Styles:"CSS-tyylit",Classes:"CSS-luokat",Align:"Asemointi",Right:"Oikea",Center:"Keskellä",Left:"Vasen","--Not Set--":"--Ei asetettu--",Src:"Fuente",Title:"Otsikko",Alternative:"Vaihtoehtoinen teksti",Filter:"Suodatin",Link:"Linkki","Open link in new tab":"Avaa uudessa välilehdessä",Image:"Kuva",file:"Tiedosto","Image properties":"Kuvan ominaisuudet",Cancel:"Peruuta",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Koodi on HTML:n tapaista. Säilytetäänkö HTML?","Paste as HTML":"Liitä HTML:nä?",Keep:"Säilytä",Clean:"Tyhjennä","Insert as Text":"Lisää tekstinä","Word Paste Detected":"Word liittäminen havaittu","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Liitetty sisältö tulee Microsoft Word-/Excel- tiedostosta. Haluatko säilyttää muotoilun vai poistaa sen?","Insert only Text":"Lisää vain teksti","File Browser":"Tiedostoselain","Error on load list":"Virhe listan latauksessa","Error on load folders":"Virhe kansioiden latauksessa","Are you sure?":"Oletko varma?","Enter Directory name":"Syötä hakemiston nimi","Create directory":"Luo hakemisto","type name":"Syötä nimi","Drop image":"Pudota kuva","Drop file":"Pudota tiedosto","or click":"tai klikkaa","Alternative text":"Vaihtoehtoinen teksti",Browse:"Selaa",Upload:"Lataa",Background:"Tausta",Text:"Teksti",Top:"Ylös",Middle:"Keskelle",Bottom:"Alas","Insert column before":"Lisää sarake ennen","Insert column after":"Lisää sarake jälkeen","Insert row above":"Lisää rivi ylös","Insert row below":"Lisää rivi alle","Delete table":"Poista taulukko","Delete row":"Poista rivi","Delete column":"Poista sarake","Empty cell":"Tyhjennä solu",Delete:"Poista","Strike through":"Yliviivaus",Underline:"Alleviivaus",Break:"Vaihto","Search for":"Etsi arvoa","Replace with":"Korvaa arvolla",Replace:"Korvaa",Edit:"Muokkaa","Vertical align":"Pystyasemointi","Horizontal align":"Vaaka-asemointi","Sort by changed":"Järjestä muuttuneilla","Sort by name":"Järjestä nimellä","Sort by size":"Järjestä koolla","Add folder":"Lisää kansio",Split:"Jaa","Split vertical":"Jaa pystysuuntaisesti","Split horizontal":"Jaa vaakasuuntaisesti",Merge:"Yhdistä","Add column":"Lisää sarake","Add row":"Lisää rivi",Border:"Reuna","Embed code":"Sisällytä koodi",Update:"Päivitä",superscript:"yläviite",subscript:"alaviite","Cut selection":"Leikkaa valinta",Paste:"Liitä","Choose Content to Paste":"Valitse liitettävä sisältö","Chars: %d":"Merkit: %d","Words: %d":"Sanat: %d",All:"Kaikki","Select %s":"Valitse: %s","Select all":"Valitse kaikki",source:"HTML",bold:"lihavoitu",italic:"kursiivi",brush:"sivellin",link:"linkki",undo:"peruuta",redo:"tee uudelleen",table:"taulukko",image:"kuva",eraser:"pyyhekumi",paragraph:"kappale",fontsize:"tekstin koko",video:"video",font:"kirjasin",about:"tietoja",print:"tulosta",underline:"alleviivaa",strikethrough:"yliviivaa",indent:"sisennä",outdent:"pienennä sisennystä",fullsize:"täysikokoinen",shrink:"pienennä",hr:"vaakaviiva",ul:"järjestetty lista",ol:"järjestämätön lista",cut:"leikkaa",selectall:"valitse kaikki","Open link":"Avaa linkki","Edit link":"Muokkaa linkkiä","No follow":"Älä seuraa",Unlink:"Pura linkki",Eye:"Ver",pencil:"Muokkaa"," URL":"URL",Reset:"Nollaa",Save:"Tallenna","Save as ...":"Tallenna nimellä ...",Resize:"Muuta kokoa",Crop:"Rajaa",Width:"Leveys",Height:"Korkeus","Keep Aspect Ratio":"Säilytä kuvasuhde",Yes:"Kyllä",No:"Ei",Remove:"Poista",Select:"Valitse","You can only edit your own images. Download this image on the host?":"Voit muokata vain omia kuvia. Lataa tämä kuva palvelimelle?","The image has been successfully uploaded to the host!":"Kuva on onnistuneesti ladattu palvelimelle!",palette:"paletti","There are no files":"Tiedostoja ei ole",Rename:"Nimeä uudelleen","Enter new name":"Syötä uusi nimi",preview:"esikatselu",download:"Lataa","Paste from clipboard":"Liitä leikepöydältä","Your browser doesn't support direct access to the clipboard.":"Selaimesi ei tue suoraa pääsyä leikepöydälle.","Copy selection":"Kopioi valinta",copy:"kopioi","Border radius":"Reunan pyöristys","Show all":"Näytä kaikki",Apply:"Käytä","Please fill out this field":"Täytä tämä kenttä","Please enter a web address":"Annan web-osoite",Default:"Oletus",Circle:"Ympyrä",Dot:"Piste",Quadrate:"Neliö","Lower Alpha":"Pieni aakkosellinen","Lower Greek":"Pieni kreikkalainen","Lower Roman":"Pieni roomalainen","Upper Alpha":"Suuri aakkosellinen","Upper Roman":"Suuri roomalainen",Find:"Hae","Find Previous":"Hae edellinen","Find Next":"Hae seuraava","Insert className":"Lisää luokkanimi","Press Alt for custom resizing":"Paina Alt muokattuun koon muuttamiseen","Class name":"Luokan nimi"},fr:{"Type something":"Ecrivez ici","About Jodit":"A propos de Jodit","Jodit Editor":"Editeur Jodit","Jodit User's Guide":"Guide de l'utilisateur","contains detailed help for using":"Aide détaillée à l'utilisation","For information about the license, please go to our website:":"Consulter la licence sur notre site web:","Buy full version":"Acheter la version complète","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tous droits réservés.",Anchor:"Ancre","Open in new tab":"Ouvrir dans un nouvel onglet","Open in fullsize":"Ouvrir l'éditeur en pleine page","Clear Formatting":"Supprimer le formattage","Fill color or set the text color":"Modifier la couleur du fond ou du texte",Redo:"Refaire",Undo:"Défaire",Bold:"Gras",Italic:"Italique","Insert Unordered List":"Liste non ordonnée","Insert Ordered List":"Liste ordonnée","Align Center":"Centrer","Align Justify":"Justifier","Align Left":"Aligner à gauche ","Align Right":"Aligner à droite","Insert Horizontal Line":"Insérer une ligne horizontale","Insert Image":"Insérer une image","Insert file":"Insérer un fichier","Insert youtube/vimeo video":"Insérer une vidéo","Insert link":"Insérer un lien","Font size":"Taille des caractères","Font family":"Famille des caractères","Insert format block":"Bloc formatté",Normal:"Normal","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4",Quote:"Citation",Code:"Code",Insert:"Insérer","Insert table":"Insérer un tableau","Decrease Indent":"Diminuer le retrait","Increase Indent":"Retrait plus","Select Special Character":"Sélectionnez un caractère spécial","Insert Special Character":"Insérer un caractère spécial","Paint format":"Cloner le format","Change mode":"Mode wysiwyg <-> code html",Margins:"Marges",top:"haut",right:"droite",bottom:"Bas",left:"gauche",Styles:"Styles",Classes:"Classes",Align:"Alignement",Right:"Droite",Center:"Centre",Left:"Gauche","--Not Set--":"--Non disponible--",Src:"Source",Title:"Titre",Alternative:"Alternative",Filter:"Filtre",Link:"Lien","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Image:"Image",file:"fichier",Advanced:"Avancé","Image properties":"Propriétés de l'image",Cancel:"Annuler",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Votre texte que vous essayez de coller est similaire au HTML. Collez-le en HTML?","Paste as HTML":"Coller en HTML?",Keep:"Sauvegarder l'original",Clean:"Nettoyer","Insert as Text":"Coller en tant que texte","Word Paste Detected":"C'est peut-être un fragment de Word ou Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Le contenu que vous insérez provient d'un document Microsoft Word / Excel. Voulez-vous enregistrer le format ou l'effacer?","Insert only Text":"Coller le texte seulement","File Browser":"Explorateur de fichiers","Error on load list":"Erreur de liste de chargement","Error on load folders":"Erreur de dossier de chargement","Are you sure?":"Etes-vous sûrs ?","Enter Directory name":"Entrer le nom de dossier","Create directory":"Créer un dossier","type name":"type de fichier","Drop image":"Coller une image","Drop file":"Déposer un fichier","or click":"ou cliquer","Alternative text":"Texte de remplacemement",Browse:"Chercher",Upload:"Charger",Background:"Arrière-plan",Border:"Bordure",Text:"Texte",Top:"Haut",Middle:"Milieu",Bottom:"Bas","Insert column before":"Insérer une colonne avant","Insert column after":"Insérer une colonne après","Insert row above":"Insérer une ligne au dessus","Insert row below":"Insérer une ligne en dessous","Delete table":"Supprimer le tableau","Delete row":"Supprimer la ligne","Delete column":"Supprimer la colonne","Empty cell":"Vider la cellule","Chars: %d":"Symboles: %d","Words: %d":"Mots: %d",Split:"Split","Split vertical":"Split vertical","Split horizontal":"Split horizontal","Strike through":"Barrer",Underline:"Souligner",superscript:"exposant",subscript:"indice","Cut selection":"Couper la sélection","Select all":"Tout sélectionner",Break:"Pause","Search for":"Rechercher","Replace with":"Remplacer par",Replace:"Remplacer",Paste:"Coller","Choose Content to Paste":"Choisissez le contenu à coller",source:"la source",bold:"gras",italic:"italique",brush:"pinceau",link:"lien",undo:"annuler",redo:"refaire",table:"tableau",image:"image",eraser:"gomme",paragraph:"clause",fontsize:"taille de police",video:"Video",font:"police",about:"à propos de l'éditeur",print:"impression",underline:"souligné",strikethrough:"barré",indent:"indentation",outdent:"retrait",fullsize:"taille réelle",shrink:"taille conventionnelle",hr:"la ligne",ul:"Liste",ol:"Liste numérotée",cut:"Couper",selectall:"Sélectionner tout","Open link":"Ouvrir le lien","Edit link":"Modifier le lien","No follow":"Attribut Nofollow",Unlink:"Supprimer le lien",Eye:"Voir",pencil:"Pour éditer"," URL":"URL",Reset:"Restaurer",Save:"Sauvegarder","Save as ...":"Enregistrer sous",Resize:"Changer la taille",Crop:"Taille de garniture",Width:"Largeur",Height:"Hauteur","Keep Aspect Ratio":"Garder les proportions",Yes:"Oui",No:"Non",Remove:"Supprimer",Select:"Mettre en évidence","Select %s":"Mettre en évidence: %s",Update:"Mettre à jour","Vertical align":"Alignement vertical",Merge:"aller","Add column":"Ajouter une colonne","Add row":"Ajouter une rangée",Delete:"Effacer","Horizontal align":"Alignement horizontal","Sort by changed":"Trier par modification","Sort by name":"Trier par nom","Sort by size":"Trier par taille","Add folder":"Créer le dossier","You can only edit your own images. Download this image on the host?":"Vous ne pouvez éditer que vos propres images. Téléchargez cette image sur l'hôte?","The image has been successfully uploaded to the host!":"L'image a été téléchargée avec succès sur le serveur!",palette:"Palette","There are no files":"Il n'y a aucun fichier dans ce répertoire.",Rename:"renommer","Enter new name":"Entrez un nouveau nom",preview:"Aperçu",download:"Télécharger","Paste from clipboard":"Coller à partir du presse-papiers","Your browser doesn't support direct access to the clipboard.":"Votre navigateur ne prend pas en charge l'accès direct au presse-papiers.","Copy selection":"Copier la sélection",copy:"copie","Border radius":"Rayon des bordures","Show all":"Afficher tous",Apply:"Appliquer","Please fill out this field":"Veuillez remplir ce champ","Please enter a web address":"Veuillez entrer une adresse web",Default:"Par défaut",Circle:"Cercle",Dot:"Point",Quadrate:"Quadratique",Find:"Trouver","Find Previous":"Précédent","Find Next":"Suivant","Insert className":"Insérer un nom de classe","Press Alt for custom resizing":"Appuyez sur Alt pour un redimensionnement personnalisé"},he:{"Type something":"הקלד משהו...",Advanced:"מתקדם","About Jodit":"About Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit User's Guide","contains detailed help for using":"contains detailed help for using.","For information about the license, please go to our website:":"For information about the license, please go to our website:","Buy full version":"Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"מקום עיגון","Open in new tab":"פתח בכרטיסיה חדשה","Open in fullsize":"פתח את העורך בחלון חדש","Clear Formatting":"נקה עיצוב","Fill color or set the text color":"שנה צבע טקסט או רקע",Redo:"בצע שוב",Undo:"בטל",Bold:"מודגש",Italic:"נטוי","Insert Unordered List":"הכנס רשימת תבליטים","Insert Ordered List":"הכנס רשימה ממוספרת","Align Center":"מרכז","Align Justify":"ישר ","Align Left":"ישר לשמאל","Align Right":"ישר לימין","Insert Horizontal Line":"הכנס קו אופקי","Insert Image":"הכנס תמונה","Insert file":"הכנס קובץ","Insert youtube/vimeo video":"הכנס סרטון וידאו מYouTube/Vimeo","Insert link":"הכנס קישור","Font size":"גודל גופן","Font family":"גופן","Insert format block":"מעוצב מראש",Normal:"רגיל","Heading 1":"כותרת 1","Heading 2":"כותרת 2","Heading 3":"כותרת 3","Heading 4":"כותרת 4",Quote:"ציטוט",Code:"קוד",Insert:"הכנס","Insert table":"הכנס טבלה","Decrease Indent":"הקטן כניסה","Increase Indent":"הגדל כניסה","Select Special Character":"בחר תו מיוחד","Insert Special Character":"הכנס תו מיוחד","Paint format":"העתק עיצוב","Change mode":"החלף מצב",Margins:"ריווח",top:"עליון",right:"ימין",bottom:"תחתון",left:"שמאל",Styles:"עיצוב CSS",Classes:"מחלקת CSS",Align:"יישור",Right:"ימין",Center:"מרכז",Left:"שמאל","--Not Set--":"--לא נקבע--",Src:"מקור",Title:"כותרת",Alternative:"כיתוב חלופי",Link:"קישור","Open link in new tab":"פתח בכרטיסיה חדשה",Image:"תמונה",file:"קובץ","Image properties":"מאפייני תמונה",Cancel:"ביטול",Ok:"אישור","Your code is similar to HTML. Keep as HTML?":"הקוד דומה לHTML, האם להשאיר כHTML","Paste as HTML":"הדבק כHTML",Keep:"השאר",Clean:"נקה","Insert as Text":"הכנס כטקסט","Word Paste Detected":'זוהתה הדבקה מ"וורד"',"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"התוכן המודבק מגיע ממסמך וורד/אקסל. האם ברצונך להשאיר את העיצוב או לנקותו","Insert only Text":"הכנס טקסט בלבד","File Browser":"סייר הקבצים","Error on load list":"שגיאה  בזמן טעינת רשימה","Error on load folders":"שגיאה בזמן טעינת תקיות","Are you sure?":"האם אתה בטוח?","Enter Directory name":"הכנס שם תקיה","Create directory":"צור תקיה","type name":"סוג הקובץ","Drop image":"הסר תמונה","Drop file":"הסר קובץ","or click":"או לחץ","Alternative text":"כיתוב חלופי",Browse:"סייר",Upload:"העלה",Background:"רקע",Text:"טקסט",Top:"עליון",Middle:"מרכז",Bottom:"תחתון","Insert column before":"הכנס עמודה לפני","Insert column after":"הכנס עמודה אחרי","Insert row above":"הכנס שורה מעל","Insert row below":"הכנס שורה מתחת","Delete table":"מחק טבלה","Delete row":"מחק שורה","Delete column":"מחק עמודה","Empty cell":"רוקן תא",Delete:"מחק","Strike through":"קו חוצה",Underline:"קו תחתון",Break:"שבירת שורה","Search for":"חפש","Replace with":"החלף ב",Replace:"להחליף",Edit:"ערוך","Vertical align":"יישור אנכי","Horizontal align":"יישור אופקי",Filter:"סנן","Sort by changed":"מין לפי שינוי","Sort by name":"מיין לפי שם","Sort by size":"מיין לפי גודל","Add folder":"הוסף תקייה",Split:"פיצול","Split vertical":"פיצול אנכי","Split horizontal":"פיצול אופקי",Merge:"מזג","Add column":"הוסף עמודה","Add row":"הוסף שורה",Border:"מסגרת","Embed code":"הוסף קוד",Update:"עדכן",superscript:"superscript",subscript:"subscript","Cut selection":"גזור בחירה",Paste:"הדבק","Choose Content to Paste":"בחר תוכן להדבקה","Chars: %d":"תווים: %d","Words: %d":"מילים: %d",All:"הכל","Select %s":"נבחר: %s","Select all":"בחר הכל",source:"HTML",bold:"מודגש",italic:"נטוי",brush:"מברשת",link:"קישור",undo:"בטל",redo:"בצע שוב",table:"טבלה",image:"תמונה",eraser:"מחק",paragraph:"פסקה",fontsize:"גודל גופן",video:"וידאו",font:"גופן",about:"עלינו",print:"הדפס",underline:"קו תחתון",strikethrough:"קו חוצה",indent:"הגדל כניסה",outdent:"הקטן כניסה",fullsize:"גודל מלא",shrink:"כווץ",hr:"קו אופקי",ul:"רשימת תבליטים",ol:"רשימה ממוספרת",cut:"חתוך",selectall:"בחר הכל","Open link":"פתח קישור","Edit link":"ערוך קישור","No follow":"ללא מעקב",Unlink:"בטל קישור",Eye:"הצג",pencil:"כדי לערוך"," URL":"כתובת",Reset:"אפס",Save:"שמור","Save as ...":"שמור בשם...",Resize:"שנה גודל",Crop:"חתוך",Width:"רוחב",Height:"גובה","Keep Aspect Ratio":"שמור יחס",Yes:"כן",No:"לא",Remove:"הסר",Select:"בחר","You can only edit your own images. Download this image on the host?":"רק קבצים המשוייכים שלך ניתנים לעריכה. האם להוריד את הקובץ?","The image has been successfully uploaded to the host!":"התמונה עלתה בהצלחה!",palette:"לוח","There are no files":"אין קבצים בספריה זו.",Rename:"הונגרית","Enter new name":"הזן שם חדש",preview:"תצוגה מקדימה",download:"הורד","Paste from clipboard":"להדביק מהלוח","Your browser doesn't support direct access to the clipboard.":"הדפדפן שלך לא תומך גישה ישירה ללוח.","Copy selection":"העתק בחירה",copy:"העתק","Border radius":"רדיוס הגבול","Show all":"הצג את כל",Apply:"החל","Please fill out this field":"נא למלא שדה זה","Please enter a web address":"אנא הזן כתובת אינטרנט",Default:"ברירת המחדל",Circle:"מעגל",Dot:"נקודה",Quadrate:"הריבוע הזה",Find:"למצוא","Find Previous":"מצא את הקודם","Find Next":"חפש את הבא","Insert className":"הכנס את שם הכיתה","Press Alt for custom resizing":"לחץ על אלט לשינוי גודל מותאם אישית"},hu:{"Type something":"Írjon be valamit",Advanced:"Haladó","About Jodit":"Joditról","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Ingyenes változat","Jodit User's Guide":"Jodit útmutató","contains detailed help for using":"további segítséget tartalmaz","For information about the license, please go to our website:":"További licence információkért látogassa meg a weboldalunkat:","Buy full version":"Teljes verzió megvásárlása","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Minden jog fenntartva.",Anchor:"Horgony","Open in new tab":"Megnyitás új lapon","Open in fullsize":"Megnyitás teljes méretben","Clear Formatting":"Formázás törlése","Fill color or set the text color":"Háttér/szöveg szín",Redo:"Újra",Undo:"Visszavon",Bold:"Félkövér",Italic:"Dőlt","Insert Unordered List":"Pontozott lista","Insert Ordered List":"Számozott lista","Align Center":"Középre zárt","Align Justify":"Sorkizárt","Align Left":"Balra zárt","Align Right":"Jobbra zárt","Insert Horizontal Line":"Vízszintes vonal beszúrása","Insert Image":"Kép beszúrás","Insert file":"Fájl beszúrás","Insert youtube/vimeo video":"Youtube videó beszúrása","Insert link":"Link beszúrás","Font size":"Betűméret","Font family":"Betűtípus","Insert format block":"Formázott blokk beszúrása",Normal:"Normál","Heading 1":"Fejléc 1","Heading 2":"Fejléc 2","Heading 3":"Fejléc 3","Heading 4":"Fejléc 4",Quote:"Idézet",Code:"Kód",Insert:"Beszúr","Insert table":"Táblázat beszúrása","Decrease Indent":"Behúzás csökkentése","Increase Indent":"Behúzás növelése","Select Special Character":"Speciális karakter kiválasztása","Insert Special Character":"Speciális karakter beszúrása","Paint format":"Kép formázása","Change mode":"Nézet váltása",Print:"Nyomtatás",Margins:"Szegélyek",top:"felső",right:"jobb",bottom:"alsó",left:"bal",Styles:"CSS stílusok",Classes:"CSS osztályok",Align:"Igazítás",Right:"Jobbra",Center:"Középre",Left:"Balra","--Not Set--":"Nincs",Src:"Forrás",Title:"Cím",Alternative:"Helyettesítő szöveg",Link:"Link","Open link in new tab":"Link megnyitása új lapon",Image:"Kép",file:"Fájl","Image properties":"Kép tulajdonságai",Cancel:"Mégsem",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"A beillesztett szöveg HTML-nek tűnik. Megtartsuk HTML-ként?","Paste as HTML":"Beszúrás HTML-ként",Keep:"Megtartás",Clean:"Elvetés","Insert as Text":"Beszúrás szövegként","Word Paste Detected":"Word-ből másolt szöveg","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"A beillesztett tartalom Microsoft Word/Excel dokumentumból származik. Meg szeretné tartani a formátumát?","Insert only Text":"Csak szöveg beillesztése","File Browser":"Fájl tallózó","Error on load list":"Hiba a lista betöltése közben","Error on load folders":"Hiba a mappák betöltése közben","Are you sure?":"Biztosan ezt szeretné?","Enter Directory name":"Írjon be egy mappanevet","Create directory":"Mappa létrehozása","type name":"írjon be bevet","Drop image":"Húzza ide a képet","Drop file":"Húzza ide a fájlt","or click":"vagy kattintson","Alternative text":"Helyettesítő szöveg",Browse:"Tallóz",Upload:"Feltölt",Background:"Háttér",Text:"Szöveg",Top:"Fent",Middle:"Középen",Bottom:"Lent","Insert column before":"Oszlop beszúrás elé","Insert column after":"Oszlop beszúrás utána","Insert row above":"Sor beszúrás fölé","Insert row below":"Sor beszúrás alá","Delete table":"Táblázat törlése","Delete row":"Sor törlése","Delete column":"Oszlop törlése","Empty cell":"Cella tartalmának törlése",Delete:"Törlés","Strike through":"Áthúzott",Underline:"Aláhúzott",Break:"Szünet","Search for":"Keresés","Replace with":"Csere erre",Replace:"Cserélje ki",Edit:"Szerkeszt","Vertical align":"Függőleges igazítás","Horizontal align":"Vízszintes igazítás",Filter:"Szűrő","Sort by changed":"Rendezés módosítás szerint","Sort by name":"Rendezés név szerint","Sort by size":"Rendezés méret szerint","Add folder":"Mappa hozzáadás","Split vertical":"Függőleges felosztás","Split horizontal":"Vízszintes felosztás",Merge:"Összevonás","Add column":"Oszlop hozzáadás","Add row":"Sor hozzáadás",Border:"Szegély","Embed code":"Beágyazott kód",Update:"Frissít",superscript:"Felső index",subscript:"Alsó index","Cut selection":"Kivágás",Paste:"Beillesztés","Choose Content to Paste":"Válasszon tartalmat a beillesztéshez",Split:"Felosztás","Chars: %d":"Karakterek száma: %d","Words: %d":"Szavak száma: %d",All:"Összes","Select %s":"Kijelöl: %s","Select all":"Összes kijelölése",source:"HTML",bold:"Félkövér",italic:"Dőlt",brush:"Ecset",link:"Link",undo:"Visszavon",redo:"Újra",table:"Táblázat",image:"Kép",eraser:"Törlés",paragraph:"Paragráfus",fontsize:"Betűméret",video:"Videó",font:"Betű",about:"Rólunk",print:"Nyomtat",underline:"Aláhúzott",strikethrough:"Áthúzott",indent:"Behúzás",outdent:"Aussenseiter",fullsize:"Teljes méret",shrink:"Összenyom",hr:"Egyenes vonal",ul:"Lista",ol:"Számozott lista",cut:"Kivág",selectall:"Összes kijelölése","Open link":"Link megnyitása","Edit link":"Link szerkesztése","No follow":"Nincs követés",Unlink:"Link leválasztása",Eye:"felülvizsgálat",pencil:"Szerkesztés"," URL":"URL",Reset:"Visszaállít",Save:"Mentés","Save as ...":"Mentés másként...",Resize:"Átméretezés",Crop:"Kivág",Width:"Szélesség",Height:"Magasság","Keep Aspect Ratio":"Képarány megtartása",Yes:"Igen",No:"Nem",Remove:"Eltávolít",Select:"Kijelöl","You can only edit your own images. Download this image on the host?":"Csak a saját képeit tudja szerkeszteni. Letölti ezt a képet?","The image has been successfully uploaded to the host!":"Kép sikeresen feltöltve!",palette:"Palette","There are no files":"Er zijn geen bestanden in deze map.",Rename:"átnevezés","Enter new name":"Adja meg az új nevet",preview:"előnézet",download:"Letöltés","Paste from clipboard":"Illessze be a vágólap","Your browser doesn't support direct access to the clipboard.":"A böngésző nem támogatja a közvetlen hozzáférést biztosít a vágólapra.","Copy selection":"Másolás kiválasztása",copy:"másolás","Border radius":"Határ sugár","Show all":"Összes",Apply:"Alkalmazni","Please fill out this field":"Kérjük, töltse ki ezt a mezőt,","Please enter a web address":"Kérjük, írja be a webcímet",Default:"Alapértelmezett",Circle:"Kör",Dot:"Pont",Quadrate:"Quadrate",Find:"Találni","Find Previous":"Megtalálja Előző","Find Next":"Következő Keresése","Insert className":"Helyezze be az osztály nevét","Press Alt for custom resizing":"Nyomja meg az Alt egyéni átméretezés"},id:{"Type something":"Ketik sesuatu","About Jodit":"Tentang Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Versi Bebas Non-komersil","Jodit User's Guide":"Panduan Pengguna Jodit","contains detailed help for using":"mencakup detail bantuan penggunaan","For information about the license, please go to our website:":"Untuk informasi tentang lisensi, silakan kunjungi website:","Buy full version":"Beli versi lengkap","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.",Anchor:"Tautan","Open in new tab":"Buka di tab baru","Open in fullsize":"Buka editor dalam ukuran penuh","Clear Formatting":"Hapus Pemformatan","Fill color or set the text color":"Isi warna atau atur warna teks",Redo:"Ulangi",Undo:"Batalkan",Bold:"Tebal",Italic:"Miring","Insert Unordered List":"Sisipkan Daftar Tidak Berurut","Insert Ordered List":"Sisipkan Daftar Berurut","Align Center":"Tengah","Align Justify":"Penuh","Align Left":"Kiri","Align Right":"Kanan","Insert Horizontal Line":"Sisipkan Garis Horizontal","Insert Image":"Sisipkan Gambar","Insert file":"Sisipkan Berkas","Insert youtube/vimeo video":"Sisipkan video youtube/vimeo","Insert link":"Sisipkan tautan","Font size":"Ukuran font","Font family":"Keluarga font","Insert format block":"Sisipkan blok format",Normal:"Normal","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4",Quote:"Kutip",Code:"Kode",Insert:"Sisipkan","Insert table":"Sisipkan tabel","Decrease Indent":"Kurangi Indentasi","Increase Indent":"Tambah Indentasi","Select Special Character":"Pilih Karakter Spesial","Insert Special Character":"Sisipkan Karakter Spesial","Paint format":"Formar warna","Change mode":"Ubah mode",Margins:"Batas",top:"atas",right:"kanan",bottom:"bawah",left:"kiri",Styles:"Gaya",Classes:"Class",Align:"Rata",Right:"Kanan",Center:"Tengah",Left:"Kiri","--Not Set--":"--Tidak diset--",Src:"Src",Title:"Judul",Alternative:"Teks alternatif",Link:"Tautan","Open link in new tab":"Buka tautan di tab baru",Image:"Gambar",file:"berkas",Advanced:"Lanjutan","Image properties":"Properti gambar",Cancel:"Batal",Ok:"Ya","Your code is similar to HTML. Keep as HTML?":"Kode Anda cenderung ke HTML. Biarkan sebagai HTML?","Paste as HTML":"Paste sebagai HTML",Keep:"Jaga",Clean:"Bersih","Insert as Text":"Sisipkan sebagai teks","Insert only Text":"Sisipkan hanya teks","Word Paste Detected":"Terdeteksi paste dari Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Konten dipaste dari dokumen Microsoft Word/Excel. Apakah Anda ingin tetap menjaga format atau membersihkannya?","File Browser":"Penjelajah Berkas","Error on load list":"Error ketika memuat list","Error on load folders":"Error ketika memuat folder","Are you sure?":"Apakah Anda yakin?","Enter Directory name":"Masukkan nama Direktori","Create directory":"Buat direktori","type name":"ketik nama","Drop image":"Letakkan gambar","Drop file":"Letakkan berkas","or click":"atau klik","Alternative text":"Teks alternatif",Browse:"Jelajahi",Upload:"Unggah",Background:"Latar Belakang",Text:"Teks",Top:"Atas",Middle:"Tengah",Bottom:"Bawah","Insert column before":"Sisipkan kolom sebelumnya","Insert column after":"Sisipkan kolom setelahnya","Insert row above":"Sisipkan baris di atasnya","Insert row below":"Sisipkan baris di bawahnya","Delete table":"Hapus tabel","Delete row":"Hapus baris","Delete column":"Hapus kolom","Empty cell":"Kosongkan cell",source:"sumber",bold:"tebal",italic:"miring",brush:"sikat",link:"tautan",undo:"batalkan",redo:"ulangi",table:"tabel",image:"gambar",eraser:"penghapus",paragraph:"paragraf",fontsize:"ukuran font",video:"video",font:"font",about:"tentang",print:"cetak",underline:"garis bawah",strikethrough:"coret",indent:"menjorok ke dalam",outdent:"menjorok ke luar",fullsize:"ukuran penuh",shrink:"menyusut",hr:"hr",ul:"ul",ol:"ol",cut:"potong",selectall:"Pilih semua","Embed code":"Kode embed","Open link":"Buka tautan","Edit link":"Edit tautan","No follow":"No follow",Unlink:"Hapus tautan",Eye:"Mata",pencil:"pensil",Update:"Perbarui"," URL":"URL",Edit:"Edit","Horizontal align":"Perataan horizontal",Filter:"Filter","Sort by changed":"Urutkan berdasarkan perubahan","Sort by name":"Urutkan berdasarkan nama","Sort by size":"Urutkan berdasarkan ukuran","Add folder":"Tambah folder",Reset:"Reset",Save:"Simpan","Save as ...":"Simpan sebagai...",Resize:"Ubah ukuran",Crop:"Crop",Width:"Lebar",Height:"Tinggi","Keep Aspect Ratio":"Jaga aspek rasio",Yes:"Ya",No:"Tidak",Remove:"Copot",Select:"Pilih","Chars: %d":"Karakter: %d","Words: %d":"Kata: %d",All:"Semua","Select %s":"Pilih %s","Select all":"Pilih semua","Vertical align":"Rata vertikal",Split:"Bagi","Split vertical":"Bagi secara vertikal","Split horizontal":"Bagi secara horizontal",Merge:"Gabungkan","Add column":"Tambah kolom","Add row":"tambah baris",Delete:"Hapus",Border:"Bingkai","License: %s":"Lisensi: %s","Strike through":"Coret",Underline:"Garis Bawah",superscript:"Superskrip",subscript:"Subskrip","Cut selection":"Potong pilihan",Break:"Berhenti","Search for":"Mencari","Replace with":"Ganti dengan",Replace:"Mengganti",Paste:"Paste","Choose Content to Paste":"Pilih konten untuk dipaste","You can only edit your own images. Download this image on the host?":"Anda hanya dapat mengedit gambar Anda sendiri. Unduh gambar ini di host?","The image has been successfully uploaded to the host!":"Gambar telah sukses diunggah ke host!",palette:"palet","There are no files":"Tidak ada berkas",Rename:"ganti nama","Enter new name":"Masukkan nama baru",preview:"pratinjau",download:"Unduh","Paste from clipboard":"Paste dari clipboard","Your browser doesn't support direct access to the clipboard.":"Browser anda tidak mendukung akses langsung ke clipboard.","Copy selection":"Copy seleksi",copy:"copy","Border radius":"Border radius","Show all":"Tampilkan semua",Apply:"Menerapkan","Please fill out this field":"Silahkan mengisi kolom ini","Please enter a web address":"Silahkan masukkan alamat web",Default:"Default",Circle:"Lingkaran",Dot:"Dot",Quadrate:"Kuadrat",Find:"Menemukan","Find Previous":"Menemukan Sebelumnya","Find Next":"Menemukan Berikutnya","Insert className":"Masukkan nama kelas","Press Alt for custom resizing":"Tekan Alt untuk mengubah ukuran kustom"},it:{"Type something":"Scrivi qualcosa...",Advanced:"Avanzato","About Jodit":"A proposito di Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guida utente di Jodit","contains detailed help for using":"contiene una guida dettagliata per l'uso.","For information about the license, please go to our website:":"Per informazioni sulla licenza, si prega di visitare il nostro sito web:","Buy full version":"Acquista la versione completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tutti i diritti riservati.",Anchor:"Link","Open in new tab":"Apri in una nuova scheda","Open in fullsize":"Apri l'editor a schermo intero","Clear Formatting":"Pulisci Formattazione","Fill color or set the text color":"Colore di sfondo o del testo",Redo:"Ripristina",Undo:"Annulla",Bold:"Grassetto",Italic:"Corsivo","Insert Unordered List":"Inserisci lista non ordinata","Insert Ordered List":"Inserisci lista ordinata","Align Center":"Allinea al centro","Align Justify":"Allineamento Giustificato","Align Left":"Allinea a Sinistra","Align Right":"Allinea a Destra","Insert Horizontal Line":"Inserisci una linea orizzontale","Insert Image":"Inserisci immagine","Insert file":"Inserisci un file","Insert youtube/vimeo video":"Inserisci video Youtube/Vimeo","Insert link":"Inserisci link","Font size":"Dimensione carattere","Font family":"Tipo di font","Insert format block":"Inserisci blocco",Normal:"Normale","Heading 1":"Intestazione 1","Heading 2":"Intestazione 2","Heading 3":"Intestazione 3","Heading 4":"Intestazione 4",Quote:"Citazione",Code:"Codice",Insert:"Inserisci","Insert table":"Inserisci tabella","Decrease Indent":"Riduci il rientro","Increase Indent":"Aumenta il rientro","Select Special Character":"Seleziona un carattere speciale","Insert Special Character":"Inserisci un carattere speciale","Paint format":"Copia formato","Change mode":"Cambia modalita'",Margins:"Margini",top:"su",right:"destra",bottom:"giù",left:"sinistra",Styles:"Stili CSS",Classes:"Classi CSS",Align:"Allinea",Right:"Destra",Center:"Centro",Left:"Sinistra","--Not Set--":"--Non Impostato--",Src:"Fonte",Title:"Titolo",Alternative:"Testo Alternativo",Link:"Link","Open link in new tab":"Apri il link in una nuova scheda",Image:"Immagine",file:"Archivio","Image properties":"Proprietà dell'immagine",Cancel:"Annulla",Ok:"Accetta","Your code is similar to HTML. Keep as HTML?":"Il codice è simile all'HTML. Mantieni come HTML?","Paste as HTML":"Incolla come HTML",Keep:"Mantieni",Clean:"Pulisci","Insert as Text":"Inserisci come testo","Word Paste Detected":"Incolla testo da Word rilevato","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Il contenuto incollato proviene da un documento Microsoft Word / Excel. Vuoi mantenere il formato o pulirlo?","Insert only Text":"Inserisci solo il testo","File Browser":"Cerca file","Error on load list":"Errore durante il caricamento dell'elenco","Error on load folders":"Errore durante il caricamento delle cartelle","Are you sure?":"Sei sicuro?","Enter Directory name":"Inserisci il nome della cartella","Create directory":"Crea cartella","type name":"Digita il nome","Drop image":"Cancella immagine","Drop file":"Cancella file","or click":"o clicca","Alternative text":"Testo alternativo",Browse:"Sfoglia",Upload:"Carica",Background:"Sfondo",Text:"Testo",Top:"Su",Middle:"Centro",Bottom:"Sotto","Insert column before":"Inserisci la colonna prima","Insert column after":"Inserisci la colonna dopo","Insert row above":"Inserisci la riga sopra","Insert row below":"Inserisci la riga sotto","Delete table":"Elimina tabella","Delete row":"Elimina riga","Delete column":"Elimina colonna","Empty cell":"Cella vuota",Delete:"Cancella","Strike through":"Barrato",Underline:"Sottolineato",Break:"Pausa","Search for":"Cerca per","Replace with":"Sostituisci con",Replace:"Sostituisci",Edit:"Modifica","Vertical align":"Allineamento verticala","Horizontal align":"Allineamento orizzontale",Filter:"Filtro","Sort by changed":"Ordina per data di modifica","Sort by name":"Ordina per nome","Sort by size":"Ordina per dimensione","Add folder":"Aggiungi cartella",Split:"Dividi","Split vertical":"Dividi verticalmente","Split horizontal":"Dividi orizzontale",Merge:"Fondi","Add column":"Aggiungi colonna","Add row":"Aggiungi riga",Border:"Bordo","Embed code":"Includi codice",Update:"Aggiorna",superscript:"indice",subscript:"pedice","Cut selection":"Taglia selezione",Paste:"Incolla","Choose Content to Paste":"Seleziona il contenuto da incollare","Chars: %d":"Caratteri: %d","Words: %d":"Parole: %d",All:"Tutto","Select %s":"Seleziona: %s","Select all":"Seleziona tutto",source:"risorsa",bold:"Grassetto",italic:"Corsivo",brush:"Pennello",link:"Link",undo:"Annulla",redo:"Ripristina",table:"Tabella",image:"Immagine",eraser:"Gomma",paragraph:"Paragrafo",fontsize:"Dimensione del carattere",video:"Video",font:"Font",about:"Approposito di",print:"Stampa",underline:"Sottolineato",strikethrough:"Barrato",indent:"aumenta rientro",outdent:"riduci rientro",fullsize:"espandi",shrink:"comprimi",hr:"linea orizzontale",ul:"lista non ordinata",ol:"lista ordinata",cut:"Taglia",selectall:"Seleziona tutto","Open link":"Apri link","Edit link":"Modifica link","No follow":"Non seguire",Unlink:"Rimuovi link",Eye:"Recensione",pencil:"Per modificare"," URL":" URL",Reset:"Reset",Save:"Salva","Save as ...":"Salva con nome...",Resize:"Ridimensiona",Crop:"Ritaglia",Width:"Larghezza",Height:"Altezza","Keep Aspect Ratio":"Mantieni le proporzioni",Yes:"Si",No:"No",Remove:"Rimuovi",Select:"Seleziona","You can only edit your own images. Download this image on the host?":"Puoi modificare solo le tue immagini. Vuoi scaricare questa immagine dal server?","The image has been successfully uploaded to the host!":"L'immagine è stata caricata correttamente sul server!",palette:"tavolozza","There are no files":"Non ci sono file in questa directory.",Rename:"Rinomina","Enter new name":"Inserisci un nuovo nome",preview:"anteprima",download:"Scarica","Paste from clipboard":"Incolla dagli appunti","Your browser doesn't support direct access to the clipboard.":"Il tuo browser non supporta l'accesso diretto agli appunti.","Copy selection":"Copia selezione",copy:"copia","Border radius":"Border radius","Show all":"Mostra tutti",Apply:"Applica","Please fill out this field":"Si prega di compilare questo campo","Please enter a web address":"Si prega di inserire un indirizzo web",Default:"Default",Circle:"Cerchio",Dot:"Punto",Quadrate:"Quadrato","Lower Alpha":"Lettera Minuscola","Lower Greek":"Lettera Greca Minuscola","Lower Roman":"Numero Romano Minuscolo","Upper Alpha":"Lettera Maiuscola","Upper Roman":"Numero Romano Maiuscolo",Find:"Trova","Find Previous":"Trova Precedente","Find Next":"Trova Successivo","Insert className":"Inserisci il nome della classe","Press Alt for custom resizing":"Premere Alt per il ridimensionamento personalizzato"},ja:{"Type something":"なにかタイプしてください",Advanced:"高度な設定","About Jodit":"Joditについて","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit ユーザーズ・ガイド","contains detailed help for using":"詳しい使い方","For information about the license, please go to our website:":"ライセンス詳細についてはJodit Webサイトを確認ください：","Buy full version":"フルバージョンを購入","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"Anchor","Open in new tab":"新しいタブで開く","Open in fullsize":"エディターのサイズ（フル/ノーマル）","Clear Formatting":"書式をクリア","Fill color or set the text color":"テキストの色",Redo:"やり直し",Undo:"元に戻す",Bold:"太字",Italic:"斜体","Insert Unordered List":"箇条書き","Insert Ordered List":"番号付きリスト","Align Center":"中央揃え","Align Justify":"両端揃え","Align Left":"左揃え","Align Right":"右揃え","Insert Horizontal Line":"区切り線を挿入","Insert Image":"画像を挿入","Insert file":"ファイルを挿入","Insert youtube/vimeo video":"Youtube/Vimeo 動画","Insert link":"リンクを挿入","Font size":"フォントサイズ","Font family":"フォント","Insert format block":"テキストのスタイル",Normal:"指定なし","Heading 1":"タイトル1","Heading 2":"タイトル2","Heading 3":"タイトル3","Heading 4":"タイトル4",Quote:"引用",Code:"コード",Insert:"挿入","Insert table":"表を挿入","Decrease Indent":"インデント減","Increase Indent":"インデント増","Select Special Character":"特殊文字を選択","Insert Special Character":"特殊文字を挿入","Paint format":"書式を貼付け","Change mode":"編集モード切替え",Margins:"マージン",top:"上",right:"右",bottom:"下",left:"左",Styles:"スタイル",Classes:"クラス",Align:"配置",Right:"右寄せ",Center:"中央寄せ",Left:"左寄せ","--Not Set--":"指定なし",Src:"ソース",Title:"タイトル",Alternative:"代替テキスト",Link:"リンク","Open link in new tab":"新しいタブで開く",Image:"画像",file:"ファイル","Image properties":"画像のプロパティー",Cancel:"キャンセル",Ok:"確定","Your code is similar to HTML. Keep as HTML?":"HTMLコードを保持しますか？","Paste as HTML":"HTMLで貼付け",Keep:"HTMLを保持",Clean:"Clean","Insert as Text":"HTMLをテキストにする","Word Paste Detected":"Word Paste Detected","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Insert only Text":"テキストだけ","File Browser":"File Browser","Error on load list":"Error on load list","Error on load folders":"Error on load folders","Are you sure?":"Are you sure?","Enter Directory name":"Enter Directory name","Create directory":"Create directory","type name":"type name","Drop image":"ここに画像をドロップ","Drop file":"ここにファイルをドロップ","or click":"or クリック","Alternative text":"代替テキスト",Browse:"ブラウズ",Upload:"アップロード",Background:"背景",Text:"文字",Top:"上",Middle:"中央",Bottom:"下","Insert column before":"左に列を挿入","Insert column after":"右に列を挿入","Insert row above":"上に行を挿入","Insert row below":"下に行を挿入","Delete table":"表を削除","Delete row":"行を削除","Delete column":"列を削除","Empty cell":"セルを空にする","Chars: %d":"文字数: %d","Words: %d":"単語数: %d","Strike through":"取り消し線",Underline:"下線",superscript:"上付き文字",subscript:"下付き文字","Cut selection":"切り取り","Select all":"すべて選択",Break:"Pause","Search for":"検索","Replace with":"置換",Replace:"交換",Paste:"貼付け","Choose Content to Paste":"選択した内容を貼付け",All:"全部",source:"source",bold:"bold",italic:"italic",brush:"brush",link:"link",undo:"undo",redo:"redo",table:"table",image:"image",eraser:"eraser",paragraph:"paragraph",fontsize:"fontsize",video:"video",font:"font",about:"about",print:"print",underline:"underline",strikethrough:"strikethrough",indent:"indent",outdent:"outdent",fullsize:"fullsize",shrink:"shrink",hr:"分割線",ul:"箇条書き",ol:"番号付きリスト",cut:"切り取り",selectall:"すべて選択","Open link":"リンクを開く","Edit link":"リンクを編集","No follow":"No follow",Unlink:"リンク解除",Eye:"サイトを確認"," URL":"URL",Reset:"リセット",Save:"保存","Save as ...":"Save as ...",Resize:"リサイズ",Crop:"Crop",Width:"幅",Height:"高さ","Keep Aspect Ratio":"縦横比を保持",Yes:"はい",No:"いいえ",Remove:"移除",Select:"選択","Select %s":"選択: %s",Update:"更新","Vertical align":"垂直方向の配置",Merge:"セルの結合","Add column":"列を追加","Add row":"行を追加",Border:"境界線","Embed code":"埋め込みコード",Delete:"削除",Edit:"編集","Horizontal align":"水平方向の配置",Filter:"Filter","Sort by changed":"Sort by changed","Sort by name":"Sort by name","Sort by size":"Sort by size","Add folder":"Add folder",Split:"分割","Split vertical":"セルの分割（垂直方向）","Split horizontal":"セルの分割（水平方向）","You can only edit your own images. Download this image on the host?":"You can only edit your own images. Download this image on the host?","The image has been successfully uploaded to the host!":"The image has been successfully uploaded to the host!",palette:"パレット",pencil:"鉛筆","There are no files":"There are no files",Rename:"Rename","Enter new name":"Enter new name",preview:"プレビュー",download:"ダウンロード","Paste from clipboard":"貼り付け","Your browser doesn't support direct access to the clipboard.":"お使いのブラウザはクリップボードを使用できません","Copy selection":"コピー",copy:"copy","Border radius":"角の丸み","Show all":"全て表示",Apply:"適用","Please fill out this field":"まだこの分野","Please enter a web address":"を入力してくださいウェブアドレス",Default:"デフォルト",Circle:"白丸",Dot:"黒丸",Quadrate:"四角",Find:"見","Find Previous":"探前","Find Next":"由来","Lower Alpha":"英小文字","Lower Greek":"ギリシャ文字","Lower Roman":"ローマ数字小文字","Upper Alpha":"英大文字","Upper Roman":"ローマ数字大文字","Insert className":"クラス名を挿入","Press Alt for custom resizing":"カスタムサイズ変更のためのAltキーを押します"},ko:{"Type something":"무엇이든 입력하세요","About Jodit":"Jodit에 대하여","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit 사용자 안내서","contains detailed help for using":"자세한 도움말이 들어있어요","For information about the license, please go to our website:":"라이센스에 관해서는 Jodit 웹 사이트를 방문해주세요：","Buy full version":"풀 버전 구입하기","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"© XDSoft.net - Chupurnov Valeriy. 에게 저작권과 모든 권리가 있습니다.",Anchor:"Anchor","Open in new tab":"새 탭에서 열기","Open in fullsize":"전체 크기로 보기","Clear Formatting":"서식 지우기","Fill color or set the text color":"글씨 색상",Redo:"재실행",Undo:"실행 취소",Bold:"굵게",Italic:"기울임","Insert Unordered List":"글머리 목록","Insert Ordered List":"번호 목록","Align Center":"가운데 정렬","Align Justify":"양쪽 정렬","Align Left":"왼쪽 정렬","Align Right":"오른쪽 정렬","Insert Horizontal Line":"수평 구분선 넣기","Insert Image":"이미지 넣기","Insert file":"파일 넣기","Insert youtube/vimeo video":"Youtube/Vimeo 동영상","Insert link":"링크 넣기","Font size":"글꼴 크기","Font family":"글꼴","Insert format block":"블록 요소 넣기",Normal:"일반 텍스트","Heading 1":"제목 1","Heading 2":"제목 2","Heading 3":"제목 3","Heading 4":"제목 4",Quote:"인용",Code:"코드",Insert:"붙여 넣기","Insert table":"테이블","Decrease Indent":"들여쓰기 감소","Increase Indent":"들여쓰기 증가","Select Special Character":"특수문자 선택","Insert Special Character":"특수문자 입력","Paint format":"페인트 형식","Change mode":"편집모드 변경",Margins:"마진",top:"위",right:"오른쪽",bottom:"아래",left:"왼쪽",Styles:"스타일",Classes:"클래스",Align:"정렬",Right:"오른쪽으로",Center:"가운데로",Left:"왼쪽으로","--Not Set--":"--지정 안 함--",Src:"경로(src)",Title:"제목",Alternative:"대체 텍스트(alt)",Link:"링크","Open link in new tab":"새 탭에서 열기",file:"파일",Advanced:"고급","Image properties":"이미지 속성",Cancel:"취소",Ok:"확인","Your code is similar to HTML. Keep as HTML?":"HTML 코드로 감지했어요. 코드인채로 붙여넣을까요?","Paste as HTML":"HTML로 붙여넣기",Keep:"원본 유지",Clean:"지우기","Insert as Text":"텍스트로 넣기","Insert only Text":"텍스트만 넣기","Word Paste Detected":"Word 붙여넣기 감지","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Microsoft Word/Excel 문서로 감지했어요. 서식을 유지한채로 붙여넣을까요?","File Browser":"파일 탐색기","Error on load list":"목록 불러오기 에러","Error on load folders":"폴더 불러오기","Are you sure?":"정말 진행할까요?","Enter Directory name":"디렉토리 이름 입력","Create directory":"디렉토리 생성","type name":"이름 입력","Drop image":"이미지 드래그","Drop file":"파일 드래그","or click":"혹은 클릭","Alternative text":"대체 텍스트",Browse:"탐색",Upload:"업로드",Background:"배경",Text:"텍스트",Top:"위",Middle:"중앙",Bottom:"아래","Insert column before":"이전 열에 삽입","Insert column after":"다음 열에 삽입","Insert row above":"위 행에 삽입","Insert row below":"아래 행에 삽입","Delete table":"테이블 삭제","Delete row":"행 삭제","Delete column":"열 삭제","Empty cell":"빈 셀",source:"HTML 소스",bold:"볼드",italic:"이탤릭",brush:"브러시",link:"링크",undo:"실행 취소",redo:"재실행",table:"테이블",image:"이미지",eraser:"지우개",paragraph:"문단",fontsize:"글꼴 크기",video:"비디오",font:"글꼴",about:"편집기 정보",print:"프린트",underline:"밑줄",strikethrough:"취소선",indent:"들여쓰기",outdent:"내어쓰기",fullsize:"전체 화면",shrink:"일반 화면",hr:"구분선",ul:"글머리 목록",ol:"번호 목록",cut:"잘라내기",selectall:"모두 선택","Embed code":"Embed 코드","Open link":"링크 열기","Edit link":"링크 편집","No follow":"No follow",Unlink:"링크 제거",Eye:"사이트 확인",pencil:"연필",Update:"갱신"," URL":"URL",Edit:"편집","Horizontal align":"수평 정렬",Filter:"필터","Sort by changed":"변경일 정렬","Sort by name":"이름 정렬","Sort by size":"크기 정렬","Add folder":"새 폴더",Reset:"초기화",Save:"저장","Save as ...":"새로 저장하기 ...",Resize:"리사이즈",Crop:"크롭",Width:"가로 길이",Height:"세로 높이","Keep Aspect Ratio":"비율 유지하기",Yes:"네",No:"아니오",Remove:"제거",Select:"선택","Chars: %d":"문자수: %d","Words: %d":"단어수: %d",All:"모두","Select all":"모두 선택","Select %s":"선택: %s","Vertical align":"수직 정렬",Split:"분할","Split vertical":"세로 셀 분할","Split horizontal":"가로 셀 분할",Merge:"셀 병합","Add column":"열 추가","Add row":"행 추가",Delete:"삭제",Border:"외곽선","License: %s":"라이센스: %s","Strike through":"취소선",Underline:"밑줄",superscript:"윗첨자",subscript:"아래첨자","Cut selection":"선택 잘라내기",Break:"구분자","Search for":"검색","Replace with":"대체하기",Replace:"대체",Paste:"붙여넣기","Choose Content to Paste":"붙여넣을 내용 선택","You can only edit your own images. Download this image on the host?":"외부 이미지는 편집할 수 없어요. 외부 이미지를 다운로드 할까요?","The image has been successfully uploaded to the host!":"이미지를 무사히 업로드 했어요!",palette:"팔레트","There are no files":"파일이 없어요",Rename:"이름 변경","Enter new name":"새 이름 입력",preview:"미리보기",download:"다운로드","Paste from clipboard":"클립보드 붙여넣기","Your browser doesn't support direct access to the clipboard.":"사용중인 브라우저가 클립보드 접근을 지원하지 않아요.","Copy selection":"선택 복사",copy:"복사","Border radius":"둥근 테두리","Show all":"모두 보기",Apply:"적용","Please fill out this field":"이 항목을 입력해주세요!","Please enter a web address":"웹 URL을 입력해주세요.",Default:"기본",Circle:"원",Dot:"점",Quadrate:"정사각형",Find:"찾기","Find Previous":"이전 찾기","Find Next":"다음 찾기","Insert className":"className 입력","Press Alt for custom resizing":"사용자 지정 크기 조정에 대 한 고도 누르십시오"},mn:{"Type something":"Бичээд үзээрэй",Advanced:"Дэвшилтэт","About Jodit":"Jodit-ын талаар ","Jodit Editor":"Jodit програм","Jodit User's Guide":"Jodit гарын авлага","contains detailed help for using":"хэрэглээний талаар дэлгэрэнгүй мэдээллийг агуулна","For information about the license, please go to our website:":"Лицензийн мэдээллийг манай вэб хуудаснаас авна уу:","Buy full version":"Бүрэн хувилбар худалдан авах","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Зохиогчийн эрх хамгаалагдсан © XDSoft.net - Chupurnov Valeriy. Бүх эрхийг эзэмшинэ.",Anchor:"Холбоо барих","Open in new tab":"Шинэ табаар нээх","Open in fullsize":"Бүтэн дэлгэцээр нээх","Clear Formatting":"Форматыг арилгах","Fill color or set the text color":"Өнгөөр будах эсвэл текстийн өнгө сонгох",Redo:"Дахих",Undo:"Буцаах",Bold:"Тод",Italic:"Налуу","Insert Unordered List":"Тэмдэгт жагсаалт нэмэх","Insert Ordered List":"Дугаарт жагсаалт нэмэх","Align Center":"Голлож байрлуулах","Align Justify":"Тэгшитгэн байрлуулах","Align Left":"Зүүнд байрлуулах","Align Right":"Баруунд байрлуулах","Insert Horizontal Line":"Хэвтээ зураас нэмэх","Insert Image":"Зураг нэмэх","Insert file":"Файл нэмэх","Insert youtube/vimeo video":"Youtube/Vimeo видео нэмэх","Insert link":"Холбоос нэмэх","Font size":"Фонтын хэмжээ","Font family":"Фонтын бүл","Insert format block":"Блок нэмэх",Normal:"Хэвийн","Heading 1":"Гарчиг 1","Heading 2":"Гарчиг 2","Heading 3":"Гарчиг 3","Heading 4":"Гарчиг 4",Quote:"Ишлэл",Code:"Код",Insert:"Оруулах","Insert table":"Хүснэгт оруулах","Decrease Indent":"Доголын зай хасах","Increase Indent":"Доголын зай нэмэх","Select Special Character":"Тусгай тэмдэгт сонгох","Insert Special Character":"Тусгай тэмдэгт нэмэх","Paint format":"Зургийн формат","Change mode":"Горим өөрчлөх",Margins:"Цаасны зай",top:"Дээрээс",right:"Баруунаас",bottom:"Доороос",left:"Зүүнээс",Styles:"CSS стиль",Classes:"CSS анги",Align:"Байрлуулах",Right:"Баруун",Center:"Төв",Left:"Зүүн","--Not Set--":"--Тодорхойгүй--",Src:"Эх үүсвэр",Title:"Гарчиг",Alternative:"Алтернатив текст",Link:"Холбоос","Open link in new tab":"Холбоосыг шинэ хавтсанд нээх",Image:"Зураг",file:"Файл","Image properties":"Зургийн үзүүлэлт",Cancel:"Цуцлах",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Таны код HTML кодтой адил байна. HTML форматаар үргэлжлүүлэх үү?","Paste as HTML":"HTML байдлаар буулгах",Keep:"Хадгалах",Clean:"Цэвэрлэх","Insert as Text":"Текст байдлаар нэмэх","Word Paste Detected":"Word байдлаар буулгасан байна","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Буулгасан агуулга Microsoft Word/Excel форматтай байна. Энэ форматыг хэвээр хадгалах уу эсвэл арилгах уу?","Insert only Text":"Зөвхөн текст оруулах","File Browser":"Файлын цонх","Error on load list":"Жагсаалт татах үед алдаа гарлаа","Error on load folders":"Хавтас татах үед алдаа гарлаа","Are you sure?":"Итгэлтэй байна уу?","Enter Directory name":"Хавтсын нэр оруулах","Create directory":"Хавтас үүсгэх","type name":"Нэр бичих","Drop image":"Зураг буулгах","Drop file":"Файл буулгах","or click":"эсвэл товш","Alternative text":"Алтернатив текст",Browse:"Үзэх",Upload:"Байршуулах",Background:"Арын зураг",Text:"Текст",Top:"Дээр",Middle:"Дунд",Bottom:"Доор","Insert column before":"Урд нь багана нэмэх","Insert column after":"Ард нь багана нэмэх","Insert row above":"Дээр нь мөр нэмэх","Insert row below":"Доор нь мөр нэмэх","Delete table":"Хүснэгт устгах","Delete row":"Мөр устгах","Delete column":"Багана устгах","Empty cell":"Нүд цэвэрлэх",Delete:"Устгах","Strike through":"Дээгүүр зураас",Underline:"Доогуур зураас",Break:"Мөрийг таслах","Search for":"Хайх","Replace with":"Үүгээр солих",Replace:"Солих",Edit:"Засах","Vertical align":"Босоо эгнүүлэх","Horizontal align":"Хэвтээ эгнүүлэх",Filter:"Шүүх","Sort by changed":"Сүүлд өөрчлөгдсөнөөр жагсаах","Sort by name":"Нэрээр жагсаах","Sort by size":"Хэмжээгээр жагсаах","Add folder":"Хавтас нэмэх",Split:"Задлах","Split vertical":"Баганаар задлах","Split horizontal":"Мөрөөр задлах",Merge:"Нэгтгэх","Add column":"Багана нэмэх","Add row":"Мөр нэмэх",Border:"Хүрээ","Embed code":"Код оруулах",Update:"Шинэчлэх",superscript:"Дээд индекс",subscript:"Доод индекс","Cut selection":"Сонголтыг таслах",Paste:"Буулгах","Choose Content to Paste":"Буулгах агуулгаа сонгоно уу","Chars: %d":"Тэмдэгт: %d","Words: %d":"Үг: %d",All:"Бүгдийг","Select %s":"Сонго: %s","Select all":"Бүгдийг сонго",source:"Эх үүсвэр",bold:"Тод",italic:"Налуу",brush:"Будах",link:"Холбоос",undo:"Буцаах",redo:"Дахих",table:"Хүснэгт",image:"Зураг",eraser:"Баллуур",paragraph:"Параграф",fontsize:"Фонтын хэмжээ",video:"Видео",font:"Фонт",about:"Тухай",print:"Хэвлэх",underline:"Доогуур зураас",strikethrough:"Дээгүүр зураас",indent:"Догол нэмэх",outdent:"Догол багасгах",fullsize:"Бүтэн дэлгэц",shrink:"Багасга",hr:"Хаалт",ul:"Тэмдэгт жагсаалт",ol:"Дугаарласан жагсаалт",cut:"Таслах",selectall:"Бүгдийг сонго","Open link":"Холбоос нээх","Edit link":"Холбоос засах","No follow":"Nofollow özelliği",Unlink:"Холбоос салгах",Eye:"Нүд",pencil:"Засах"," URL":"URL",Reset:"Буцаах",Save:"Хадгалах","Save as ...":"Өөрөөр хадгалах",Resize:"Хэмжээг өөрчил",Crop:"Тайрах",Width:"Өргөн",Height:"Өндөр","Keep Aspect Ratio":"Харьцааг хадгал",Yes:"Тийм",No:"Үгүй",Remove:"Арилга",Select:"Сонго","You can only edit your own images. Download this image on the host?":"Та зөвхөн өөрийн зургуудаа янзлах боломжтой. Энэ зургийг өөр лүүгээ татмаар байна уу?","The image has been successfully uploaded to the host!":"Зургийг хост руу амжилттай хадгалсан",palette:"Палет","There are no files":"Энд ямар нэг файл алга",Rename:"Шинээр нэрлэх","Enter new name":"Шинэ нэр оруулна уу",preview:"Урьдчилан харах",download:"Татах","Paste from clipboard":"Самбараас хуулах ","Your browser doesn't support direct access to the clipboard.":"Энэ вэб хөтчөөс самбарт хандах эрх алга.","Copy selection":"Сонголтыг хуул",copy:"Хуулах","Border radius":"Хүрээний радиус","Show all":"Бүгдийг харуулах",Apply:"Хэрэгжүүл","Please fill out this field":"Энэ талбарыг бөглөнө үү","Please enter a web address":"Вэб хаягаа оруулна уу",Default:"Үндсэн",Circle:"Дугуй",Dot:"Цэг",Quadrate:"Дөрвөлжин",Find:"Хайх","Find Previous":"Өмнөхийг ол","Find Next":"Дараагийнхийг ол","Insert className":"Бүлгийн нэрээ оруулна уу","Press Alt for custom resizing":"Хэмжээсийг шинээр өөчрлөхийн тулд Alt товчин дээр дарна уу"},nl:{"Type something":"Begin met typen..",Advanced:"Geavanceerd","About Jodit":"Over Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Gratis niet-commerciële versie","Jodit User's Guide":"Jodit gebruikershandleiding","contains detailed help for using":"bevat gedetailleerde informatie voor gebruik.","For information about the license, please go to our website:":"Voor informatie over de licentie, ga naar onze website:","Buy full version":"Volledige versie kopen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle rechten voorbehouden.",Anchor:"Anker","Open in new tab":"Open in nieuwe tab","Open in fullsize":"Editor in volledig scherm openen","Clear Formatting":"Opmaak verwijderen","Fill color or set the text color":"Vulkleur of tekstkleur aanpassen",Redo:"Opnieuw",Undo:"Ongedaan maken",Bold:"Vet",Italic:"Cursief","Insert Unordered List":"Geordende list invoegen","Insert Ordered List":"Ongeordende lijst invoegen","Align Center":"Centreren","Align Justify":"Uitlijnen op volledige breedte","Align Left":"Links uitlijnen","Align Right":"Rechts uitlijnen","Insert Horizontal Line":"Horizontale lijn invoegen","Insert Image":"Afbeelding invoegen","Insert file":"Bestand invoegen","Insert youtube/vimeo video":"Youtube/Vimeo video invoegen","Insert link":"Link toevoegen","Font size":"Tekstgrootte","Font family":"Lettertype","Insert format block":"Format blok invoegen",Normal:"Normaal","Heading 1":"Koptekst 1","Heading 2":"Koptekst 2","Heading 3":"Koptekst 3","Heading 4":"Koptekst 4",Quote:"Citaat",Code:"Code",Insert:"Invoegen","Insert table":"Tabel invoegen","Decrease Indent":"Inspringing verkleinen","Increase Indent":"Inspringing vergroten","Select Special Character":"Symbool selecteren","Insert Special Character":"Symbool invoegen","Paint format":"Opmaak kopieren","Change mode":"Modus veranderen",Margins:"Marges",top:"Boven",right:"Rechts",bottom:"Onder",left:"Links",Styles:"CSS styles",Classes:"CSS classes",Align:"Uitlijning",Right:"Rechts",Center:"Gecentreerd",Left:"Links","--Not Set--":"--Leeg--",Src:"Src",Title:"Titel",Alternative:"Alternatieve tekst",Link:"Link","Open link in new tab":"Link in nieuwe tab openen",Image:"Afbeelding",file:"Bestand","Image properties":"Afbeeldingseigenschappen",Cancel:"Annuleren",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Deze code lijkt op HTML. Als HTML behouden?","Paste as HTML":"Invoegen als HTML",Keep:"Origineel behouden",Clean:"Opschonen","Insert as Text":"Als tekst invoegen","Word Paste Detected":"Word-tekst gedetecteerd","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"De geplakte tekst is afkomstig van een Microsoft Word/Excel document. Wil je de opmaak behouden of opschonen?","Insert only Text":"Als onopgemaakte tekst invoegen","File Browser":"Bestandsbrowser","Error on load list":"Fout bij het laden van de lijst","Error on load folders":"Fout bij het laden van de mappenlijst","Are you sure?":"Weet je het zeker?","Enter Directory name":"Geef de map een naam","Create directory":"Map aanmaken","type name":"Type naam","Drop image":"Sleep hier een afbeelding naartoe","Drop file":"Sleep hier een bestand naartoe","or click":"of klik","Alternative text":"Alternatieve tekst",Browse:"Bladeren",Upload:"Uploaden",Background:"Achtergrond",Text:"Tekst",Top:"Boven",Middle:"Midden",Bottom:"Onder","Insert column before":"Kolom invoegen (voor)","Insert column after":"Kolom invoegen (na)","Insert row above":"Rij invoegen (boven)","Insert row below":"Rij invoegen (onder)","Delete table":"Tabel verwijderen","Delete row":"Rij verwijderen","Delete column":"Kolom verwijderen","Empty cell":"Cel leegmaken",Delete:"Verwijderen","Strike through":"Doorstrepen",Underline:"Onderstrepen",Break:"Enter","Search for":"Zoek naar","Replace with":"Vervangen door",Replace:"Vervangen",Edit:"Bewerken","Vertical align":"Verticaal uitlijnen","Horizontal align":"Horizontaal uitlijnen",Filter:"Filteren","Sort by changed":"Sorteren op wijzigingsdatum","Sort by name":"Sorteren op naam","Sort by size":"Sorteren op grootte","Add folder":"Map toevoegen",Split:"Splitsen","Split vertical":"Verticaal splitsen","Split horizontal":"Horizontaal splitsen",Merge:"Samenvoegen","Add column":"Kolom toevoegen","Add row":"Rij toevoegen",Border:"Rand","Embed code":"Embed code",Update:"Updaten",superscript:"Superscript",subscript:"Subscript","Cut selection":"Selectie knippen",Paste:"Plakken","Choose Content to Paste":"Kies content om te plakken","Chars: %d":"Tekens: %d","Words: %d":"Woorden: %d",All:"Alles","Select %s":"Selecteer: %s","Select all":"Selecteer alles",source:"Broncode",bold:"vet",italic:"cursief",brush:"kwast",link:"link",undo:"ongedaan maken",redo:"opnieuw",table:"tabel",image:"afbeelding",eraser:"gum",paragraph:"paragraaf",fontsize:"lettergrootte",video:"video",font:"lettertype",about:"over",print:"afdrukken",underline:"onderstreept",strikethrough:"doorgestreept",indent:"inspringen",outdent:"minder inspringen",fullsize:"volledige grootte",shrink:"kleiner maken",hr:"horizontale lijn",ul:"lijst",ol:"genummerde lijst",cut:"knip",selectall:"alles selecteren","Open link":"Link openen","Edit link":"Link aanpassen","No follow":"Niet volgen",Unlink:"link verwijderen",Eye:"Recensie",pencil:"Om te bewerken"," URL":" URL",Reset:"Herstellen",Save:"Opslaan","Save as ...":"Opslaan als ...",Resize:"Grootte aanpassen",Crop:"Bijknippen",Width:"Breedte",Height:"Hoogte","Keep Aspect Ratio":"Verhouding behouden",Yes:"Ja",No:"Nee",Remove:"Verwijderen",Select:"Selecteren","You can only edit your own images. Download this image on the host?":"Je kunt alleen je eigen afbeeldingen aanpassen. Deze afbeelding downloaden?","The image has been successfully uploaded to the host!":"De afbeelding is succesvol geüploadet!",palette:"Palette","There are no files":"Er zijn geen bestanden in deze map.",Rename:"Hernoemen","Enter new name":"Voer een nieuwe naam in",preview:"Voorvertoning",download:"Download","Paste from clipboard":"Plakken van klembord","Your browser doesn't support direct access to the clipboard.":"Uw browser ondersteunt geen directe toegang tot het klembord.","Copy selection":"Selectie kopiëren",copy:"kopiëren","Border radius":"Border radius","Show all":"Toon alle",Apply:"Toepassen","Please fill out this field":"Vul dit veld in","Please enter a web address":"Voer een webadres in",Default:"Standaard",Circle:"Cirkel",Dot:"Punt",Quadrate:"Kwadraat",Find:"Zoeken","Find Previous":"Vorige Zoeken","Find Next":"Volgende Zoeken","Insert className":"Voeg de klassenaam in","Press Alt for custom resizing":"Druk op Alt voor aangepaste grootte"},no:{"Type something":"Skriv noe","About Jodit":"Om Jodit","Jodit Editor":"Jodit-redigerer","Jodit User's Guide":"Jodit brukerveiledning","contains detailed help for using":"Inneholder detaljert hjelp for bruk","For information about the license, please go to our website:":"For informasjon om lisensen, besøk vår nettside:","Buy full version":"Kjøp fullversjon","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Opphavsrett © XDSoft.net - Chupurnov Valeriy. Alle rettigheter forbeholdt.",Anchor:"Anker","Open in new tab":"Åpne i ny fane","Open in fullsize":"Åpne i fullskjerm","Clear Formatting":"Fjern formatering","Fill color or set the text color":"Endre bakgrunns- eller tekstfarge",Redo:"Gjør om",Undo:"Angre",Bold:"Fet",Italic:"Kursiv","Insert Unordered List":"Sett inn punktliste","Insert Ordered List":"Sett inn nummerert liste","Align Center":"Midtstill","Align Justify":"Juster","Align Left":"Venstrejuster","Align Right":"Høyrejuster","Insert Horizontal Line":"Sett inn horisontal linje","Insert Image":"Sett inn bilde","Insert file":"Sett inn fil","Insert youtube/vimeo video":"Sett inn YouTube/Vimeo-video","Insert link":"Sett inn lenke","Font size":"Skriftstørrelse","Font family":"Skriftfamilie","Insert format block":"Sett inn formateringsblokk",Normal:"Normal","Heading 1":"Overskrift 1","Heading 2":"Overskrift 2","Heading 3":"Overskrift 3","Heading 4":"Overskrift 4",Quote:"Sitat",Code:"Kode",Insert:"Sett inn","Insert table":"Sett inn tabell","Decrease Indent":"Reduser innrykk","Increase Indent":"Øk innrykk","Select Special Character":"Velg spesialtegn","Insert Special Character":"Sett inn spesialtegn","Paint format":"Kopier format","Change mode":"Bytt modus (WYSIWYG/HTML)",Margins:"Marger",top:"topp",right:"høyre",bottom:"bunn",left:"venstre",Styles:"Stiler",Classes:"Klasser",Align:"Justering",Right:"Høyre",Center:"Senter",Left:"Venstre","--Not Set--":"--Ikke satt--",Src:"Kilde",Title:"Tittel",Alternative:"Alternativ",Filter:"Filter",Link:"Lenke","Open link in new tab":"Åpne lenke i ny fane",Image:"Bilde",file:"fil",Advanced:"Avansert","Image properties":"Bildeegenskaper",Cancel:"Avbryt",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Koden din ligner HTML. Beholde som HTML?","Paste as HTML":"Lim inn som HTML",Keep:"Behold",Clean:"Rens","Insert as Text":"Lim inn som tekst","Word Paste Detected":"Word-innliming oppdaget","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Innholdet du limer inn kommer fra et Microsoft Word/Excel-dokument. Vil du beholde formatet eller rense det?","Insert only Text":"Lim inn kun tekst","File Browser":"Filutforsker","Error on load list":"Feil ved lasting av liste","Error on load folders":"Feil ved lasting av mapper","Are you sure?":"Er du sikker?","Enter Directory name":"Skriv inn mappenavn","Create directory":"Opprett mappe","type name":"skriv navn","Drop image":"Slipp bilde","Drop file":"Slipp fil","or click":"eller klikk","Alternative text":"Alternativ tekst",Browse:"Bla gjennom",Upload:"Last opp",Background:"Bakgrunn",Border:"Kantlinje",Text:"Tekst",Top:"Topp",Middle:"Midt",Bottom:"Bunn","Insert column before":"Sett inn kolonne før","Insert column after":"Sett inn kolonne etter","Insert row above":"Sett inn rad over","Insert row below":"Sett inn rad under","Delete table":"Slett tabell","Delete row":"Slett rad","Delete column":"Slett kolonne","Empty cell":"Tøm celle","Chars: %d":"Tegn: %d","Words: %d":"Ord: %d",Split:"Del","Split vertical":"Del vertikalt","Split horizontal":"Del horisontalt","Strike through":"Gjennomstreking",Underline:"Understreking",superscript:"hevet skrift",subscript:"senket skrift","Cut selection":"Klipp ut markering","Select all":"Velg alt",Break:"Pause","Search for":"Søk etter","Replace with":"Erstatt med",Replace:"Erstatt",Paste:"Lim inn","Choose Content to Paste":"Velg innhold å lime inn",source:"kilde",bold:"fet",italic:"kursiv",brush:"pensel",link:"lenke",undo:"angre",redo:"gjør om",table:"tabell",image:"bilde",eraser:"viskelær",paragraph:"avsnitt",fontsize:"skriftstørrelse",video:"video",font:"skrift",about:"om redigeringsverktøyet",print:"skriv ut",underline:"understreking",strikethrough:"gjennomstreking",indent:"innrykk",outdent:"reduser innrykk",fullsize:"full størrelse",shrink:"krympe",hr:"linje",ul:"punktliste",ol:"nummerert liste",cut:"klipp ut",selectall:"velg alt","Open link":"Åpne lenke","Edit link":"Rediger lenke","No follow":"Ingen oppfølging",Unlink:"Fjern lenke",Eye:"Forhåndsvisning",pencil:"Rediger"," URL":"URL",Reset:"Tilbakestill",Save:"Lagre","Save as ...":"Lagre som ...",Resize:"Endre størrelse",Crop:"Beskjær",Width:"Bredde",Height:"Høyde","Keep Aspect Ratio":"Behold proporsjoner",Yes:"Ja",No:"Nei",Remove:"Fjern",Select:"Velg","Select %s":"Velg: %s",Update:"Oppdater","Vertical align":"Vertikal justering",Merge:"Slå sammen","Add column":"Legg til kolonne","Add row":"Legg til rad",Delete:"Slett","Horizontal align":"Horisontal justering","Sort by changed":"Sorter etter endring","Sort by name":"Sorter etter navn","Sort by size":"Sorter etter størrelse","Add folder":"Legg til mappe",palette:"Palett",preview:"Forhåndsvisning","Line height":"Linjehøyde","Insert className":"Sett inn klassenavn",apply:"Bruk",edit:"Rediger","Show all":"Vis alle",sound:"Lyd","Interim Results":"Foreløpige resultater",default:"Standard",circle:"Sirkel",dot:"Punkt",square:"Firkant","Press Alt for custom resizing":"Trykk på Alt for å endre størrelse","Copy selection":"Kopier utvalg","Paste from clipboard":"Lim inn fra utklippstavlen",Find:"Finne"},pl:{"Type something":"Napisz coś",Advanced:"Zaawansowane","About Jodit":"O Jodit","Jodit Editor":"Edytor Jodit","Jodit User's Guide":"Instrukcja Jodit","contains detailed help for using":"zawiera szczegółowe informacje dotyczące użytkowania.","For information about the license, please go to our website:":"Odwiedź naszą stronę, aby uzyskać więcej informacji na temat licencji:","Buy full version":"Zakup pełnej wersji","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Wszystkie prawa zastrzeżone.",Anchor:"Kotwica","Open in new tab":"Otwórz w nowej zakładce","Open in fullsize":"Otwórz edytor w pełnym rozmiarze","Clear Formatting":"Wyczyść formatowanie","Fill color or set the text color":"Kolor wypełnienia lub ustaw kolor tekstu",Redo:"Ponów",Undo:"Cofnij",Bold:"Pogrubienie",Italic:"Kursywa","Insert Unordered List":"Wstaw listę wypunktowaną","Insert Ordered List":"Wstaw listę numeryczną","Align Center":"Wyśrodkuj","Align Justify":"Wyjustuj","Align Left":"Wyrównaj do lewej","Align Right":"Wyrównaj do prawej","Insert Horizontal Line":"Wstaw linię poziomą","Insert Image":"Wstaw grafikę","Insert file":"Wstaw plik","Insert youtube/vimeo video":"Wstaw film Youtube/vimeo","Insert link":"Wstaw link","Font size":"Rozmiar tekstu","Font family":"Krój czcionki","Insert format block":"Wstaw formatowanie",Normal:"Normalne","Heading 1":"Nagłówek 1","Heading 2":"Nagłówek 2","Heading 3":"Nagłówek 3","Heading 4":"Nagłówek 4",Quote:"Cytat",Code:"Kod",Insert:"Wstaw","Insert table":"Wstaw tabelę","Decrease Indent":"Zmniejsz wcięcie","Increase Indent":"Zwiększ wcięcie","Select Special Character":"Wybierz znak specjalny","Insert Special Character":"Wstaw znak specjalny","Paint format":"Malarz formatów","Change mode":"Zmień tryb",Margins:"Marginesy",top:"Górny",right:"Prawy",bottom:"Dolny",left:"Levy",Styles:"Style CSS",Classes:"Klasy CSS",Align:"Wyrównanie",Right:"Prawa",Center:"środek",Left:"Lewa","--Not Set--":"brak",Src:"Źródło",Title:"Tytuł",Alternative:"Tekst alternatywny",Link:"Link","Open link in new tab":"Otwórz w nowej zakładce",Image:"Grafika",file:"Plik","Image properties":"Właściwości grafiki",Cancel:"Anuluj",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Twój kod wygląda jak HTML. Zachować HTML?","Paste as HTML":"Wkleić jako HTML?",Keep:"Oryginalny tekst",Clean:"Wyczyść","Insert as Text":"Wstaw jako tekst","Word Paste Detected":"Wykryto tekst w formacie Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Wklejany tekst pochodzi z dokumentu Microsoft Word/Excel. Chcesz zachować ten format czy wyczyścić go? ","Insert only Text":"Wstaw tylko treść","File Browser":"Przeglądarka plików","Error on load list":"Błąd ładowania listy plików","Error on load folders":"Błąd ładowania folderów","Are you sure?":"Czy jesteś pewien?","Enter Directory name":"Wprowadź nazwę folderu","Create directory":"Utwórz folder","type name":"wprowadź nazwę","Drop image":"Upuść plik graficzny","Drop file":"Upuść plik","or click":"lub kliknij tu","Alternative text":"Tekst alternatywny",Browse:"Przeglądaj",Upload:"Wczytaj",Background:"Tło",Text:"Treść",Top:"Góra",Middle:"Środek",Bottom:"Dół","Insert column before":"Wstaw kolumnę przed","Insert column after":"Wstaw kolumnę po","Insert row above":"Wstaw wiersz przed","Insert row below":"Wstaw wiersz po","Delete table":"Usuń tabelę","Delete row":"Usuń wiersz","Delete column":"Usuń kolumnę","Empty cell":"Wyczyść komórkę",Delete:"Usuń","Strike through":"Przekreślenie",Underline:"Podkreślenie",Break:"Przerwa","Search for":"Szukaj","Replace with":"Zamień na",Replace:"Wymienić",Edit:"Edytuj","Vertical align":"Wyrównywanie w pionie","Horizontal align":"Wyrównywanie w poziomie",Filter:"Filtruj","Sort by changed":"Sortuj wg zmiany","Sort by name":"Sortuj wg nazwy","Sort by size":"Sortuj wg rozmiaru","Add folder":"Dodaj folder","Split vertical":"Podziel w pionie","Split horizontal":"Podziel w poziomie",Split:"Podziel",Merge:"Scal","Add column":"Dodaj kolumnę","Add row":"Dodaj wiersz",Border:"Obramowanie","Embed code":"Wstaw kod",Update:"Aktualizuj",superscript:"indeks górny",subscript:"index dolny","Cut selection":"Wytnij zaznaczenie",Paste:"Wklej","Choose Content to Paste":"Wybierz zawartość do wklejenia","Chars: %d":"Znaki: %d","Words: %d":"Słowa: %d",All:"Wszystko","Select %s":"Wybierz: %s","Select all":"Wybierz wszystko",source:"HTML",bold:"pogrubienie",italic:"kursywa",brush:"pędzel",link:"link",undo:"cofnij",redo:"ponów",table:"tabela",image:"grafika",eraser:"wyczyść",paragraph:"akapit",fontsize:"rozmiar czcionki",video:"wideo",font:"czcionka",about:"O programie",print:"drukuj",underline:"podkreślenie",strikethrough:"przekreślenie",indent:"wcięcie",outdent:"wycięcie",fullsize:"pełen rozmiar",shrink:"przytnij",hr:"linia pozioma",ul:"lista",ol:"lista numerowana",cut:"wytnij",selectall:"zaznacz wszystko","Open link":"otwórz link","Edit link":"edytuj link","No follow":"Atrybut no-follow",Unlink:"Usuń link",Eye:"szukaj",pencil:"edytuj"," URL":"URL",Reset:"wyczyść",Save:"zapisz","Save as ...":"zapisz jako",Resize:"Zmień rozmiar",Crop:"Przytnij",Width:"Szerokość",Height:"Wysokość","Keep Aspect Ratio":"Zachowaj proporcje",Yes:"Tak",No:"Nie",Remove:"Usuń",Select:"Wybierz","You can only edit your own images. Download this image on the host?":"Możesz edytować tylko swoje grafiki. Czy chcesz pobrać tą grafikę?","The image has been successfully uploaded to the host!":"Grafika została pomyślnienie dodana na serwer",palette:"Paleta","There are no files":"Brak plików.",Rename:"zmień nazwę","Enter new name":"Wprowadź nową nazwę",preview:"podgląd",download:"pobierz","Paste from clipboard":"Wklej ze schowka","Your browser doesn't support direct access to the clipboard.":"Twoja przeglądarka nie obsługuje schowka","Copy selection":"Kopiuj zaznaczenie",copy:"kopiuj","Border radius":"Zaokrąglenie krawędzi","Show all":"Pokaż wszystkie",Apply:"Zastosuj","Please fill out this field":"Proszę wypełnić to pole","Please enter a web address":"Proszę, wpisz adres sieci web",Default:"Domyślnie",Circle:"Koło",Dot:"Punkt",Quadrate:"Kwadrat",Find:"Znaleźć","Find Previous":"Znaleźć Poprzednie","Find Next":"Znajdź Dalej","Insert className":"Wstaw nazwę zajęć","Press Alt for custom resizing":"Naciśnij Alt, aby zmienić rozmiar"},pt_br:{"Type something":"Escreva algo...",Advanced:"Avançado","About Jodit":"Sobre o Jodit","Jodit Editor":"Editor Jodit","Jodit User's Guide":"Guia de usuário Jodit","contains detailed help for using":"contém ajuda detalhada para o uso.","For information about the license, please go to our website:":"Para informação sobre a licença, por favor visite nosso site:","Buy full version":"Compre a versão completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos os direitos reservados.",Anchor:"Link","Open in new tab":"Abrir em nova aba","Open in fullsize":"Abrir editor em tela cheia","Clear Formatting":"Limpar formatação","Fill color or set the text color":"Cor de preenchimento ou cor do texto",Redo:"Refazer",Undo:"Desfazer",Bold:"Negrito",Italic:"Itálico","Insert Unordered List":"Inserir lista não ordenada","Insert Ordered List":"Inserir lista ordenada","Align Center":"Centralizar","Align Justify":"Justificar","Align Left":"Alinhar à Esquerda","Align Right":"Alinhar à Direita","Insert Horizontal Line":"Inserir linha horizontal","Insert Image":"Inserir imagem","Insert file":"Inserir arquivo","Insert youtube/vimeo video":"Inserir vídeo do Youtube/vimeo","Insert link":"Inserir link","Font size":"Tamanho da letra","Font family":"Fonte","Insert format block":"Inserir bloco",Normal:"Normal","Heading 1":"Cabeçalho 1","Heading 2":"Cabeçalho 2","Heading 3":"Cabeçalho 3","Heading 4":"Cabeçalho 4",Quote:"Citação",Code:"Código",Insert:"Inserir","Insert table":"Inserir tabela","Decrease Indent":"Diminuir recuo","Increase Indent":"Aumentar recuo","Select Special Character":"Selecionar caractere especial","Insert Special Character":"Inserir caractere especial","Paint format":"Copiar formato","Change mode":"Mudar modo",Margins:"Margens",top:"cima",right:"direta",bottom:"baixo",left:"esquerda",Styles:"Estilos CSS",Classes:"Classes CSS",Align:"Alinhamento",Right:"Direita",Center:"Centro",Left:"Esquerda","--Not Set--":"--Não Estabelecido--",Src:"Fonte",Title:"Título",Alternative:"Texto Alternativo",Link:"Link","Open link in new tab":"Abrir link em nova aba",Image:"Imagem",file:"Arquivo","Image properties":"Propriedades da imagem",Cancel:"Cancelar",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Seu código é similar ao HTML. Manter como HTML?","Paste as HTML":"Colar como HTML?",Keep:"Manter",Clean:"Limpar","Insert as Text":"Inserir como Texto","Word Paste Detected":"Colado do Word Detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"O conteúdo colado veio de um documento Microsoft Word/Excel. Você deseja manter o formato ou limpa-lo?","Insert only Text":"Inserir somente o Texto","File Browser":"Procurar arquivo","Error on load list":"Erro ao carregar a lista","Error on load folders":"Erro ao carregar as pastas","Are you sure?":"Você tem certeza?","Enter Directory name":"Escreva o nome da pasta","Create directory":"Criar pasta","type name":"Escreva seu nome","Drop image":"Soltar imagem","Drop file":"Soltar arquivo","or click":"ou clique","Alternative text":"Texto alternativo",Browse:"Explorar",Upload:"Upload",Background:"Fundo",Text:"Texto",Top:"Cima",Middle:"Meio",Bottom:"Baixo","Insert column before":"Inserir coluna antes","Insert column after":"Inserir coluna depois","Insert row above":"Inserir linha acima","Insert row below":"Inserir linha abaixo","Delete table":"Excluir tabela","Delete row":"Excluir linha","Delete column":"Excluir coluna","Empty cell":"Limpar célula",Delete:"Excluir","Strike through":"Tachado",Underline:"Sublinhar",Break:"Pausa","Search for":"Procurar por","Replace with":"Substituir com",Replace:"Substituir",Edit:"Editar","Vertical align":"Alinhamento vertical","Horizontal align":"Alinhamento horizontal",Filter:"filtrar","Sort by changed":"Ordenar por modificação","Sort by name":"Ordenar por nome","Sort by size":"Ordenar por tamanho","Add folder":"Adicionar pasta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mesclar","Add column":"Adicionar coluna","Add row":"Adicionar linha",Border:"Borda","Embed code":"Incluir código",Update:"Atualizar",superscript:"sobrescrito",subscript:"subscrito","Cut selection":"Cortar seleção",Paste:"Colar","Choose Content to Paste":"Escolher conteúdo para colar","Chars: %d":"Caracteres: %d","Words: %d":"Palavras: %d",All:"Tudo","Select %s":"Selecionar: %s","Select all":"Selecionar tudo",source:"HTML",bold:"negrito",italic:"itálico",brush:"pincel",link:"link",undo:"desfazer",redo:"refazer",table:"tabela",image:"imagem",eraser:"apagar",paragraph:"parágrafo",fontsize:"tamanho da letra",video:"vídeo",font:"fonte",about:"Sobre de",print:"Imprimir",underline:"sublinhar",strikethrough:"tachado",indent:"recuar",outdent:"diminuir recuo",fullsize:"Tamanho completo",shrink:"diminuir",hr:"linha horizontal",ul:"lista não ordenada",ol:"lista ordenada",cut:"Cortar",selectall:"Selecionar tudo","Open link":"Abrir link","Edit link":"Editar link","No follow":"Não siga",Unlink:"Remover link",Eye:"Visualizar",pencil:"Editar"," URL":"URL",Reset:"Resetar",Save:"Salvar","Save as ...":"Salvar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Largura",Height:"Altura","Keep Aspect Ratio":"Manter a proporção",Yes:"Sim",No:"Não",Remove:"Remover",Select:"Selecionar","You can only edit your own images. Download this image on the host?":"Você só pode editar suas próprias imagens. Baixar essa imagem pro servidor?","The image has been successfully uploaded to the host!":"A imagem foi enviada com sucesso para o servidor!",palette:"Palette","There are no files":"Não há arquivos nesse diretório.",Rename:"Húngara","Enter new name":"Digite um novo nome",preview:"preview",download:"Baixar","Paste from clipboard":"Colar da área de transferência","Your browser doesn't support direct access to the clipboard.":"O seu navegador não oferece suporte a acesso direto para a área de transferência.","Copy selection":"Selecção de cópia",copy:"cópia","Border radius":"Border radius","Show all":"Mostrar todos os",Apply:"Aplicar","Please fill out this field":"Por favor, preencha este campo","Please enter a web address":"Por favor introduza um endereço web",Default:"Padrão",Circle:"Círculo",Dot:"Ponto",Quadrate:"Quadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Grego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Maiúscula","Upper Roman":"Romano Maiúscula",Find:"Encontrar","Find Previous":"Encontrar Anteriores","Find Next":"Localizar Próxima","Insert className":"Insira o nome da classe","Press Alt for custom resizing":"Pressione Alt para redimensionamento personalizado"},ru:{"Type something":"Напишите что-либо","About Jodit":"О Jodit","Jodit Editor":"Редактор Jodit","Jodit User's Guide":"Jodit Руководство пользователя","contains detailed help for using":"содержит детальную информацию по использованию","For information about the license, please go to our website:":"Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:","Buy full version":"Купить полную версию","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.",Anchor:"Анкор","Open in new tab":"Открывать ссылку в новой вкладке","Open in fullsize":"Открыть редактор в полном размере","Clear Formatting":"Очистить форматирование","Fill color or set the text color":"Цвет заливки или цвет текста",Redo:"Повтор",Undo:"Отмена",Bold:"Жирный",Italic:"Наклонный","Insert Unordered List":"Вставка маркированного списка","Insert Ordered List":"Вставить нумерованный список","Align Center":"Выровнять по центру","Align Justify":"Выровнять по ширине","Align Left":"Выровнять по левому краю","Align Right":"Выровнять по правому краю","Insert Horizontal Line":"Вставить горизонтальную линию","Insert Image":"Вставить изображение","Insert file":"Вставить файл","Insert youtube/vimeo video":"Вставьте видео","Insert link":"Вставить ссылку","Font size":"Размер шрифта","Font family":"Шрифт","Insert format block":"Вставить блочный элемент",Normal:"Нормальный текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставить","Insert table":"Вставить таблицу","Decrease Indent":"Уменьшить отступ","Increase Indent":"Увеличить отступ","Select Special Character":"Выберите специальный символ","Insert Special Character":"Вставить специальный символ","Paint format":"Формат краски","Change mode":"Источник",Margins:"Отступы",top:"сверху",right:"справа",bottom:"снизу",left:"слева",Styles:"Стили",Classes:"Классы",Align:"Выравнивание",Right:"По правому краю",Center:"По центру",Left:"По левому краю","--Not Set--":"--не устанавливать--",Src:"src",Title:"Заголовок",Alternative:"Альтернативный текст (alt)",Link:"Ссылка","Open link in new tab":"Открывать ссылку в новом окне",file:"Файл",Advanced:"Расширенные","Image properties":"Свойства изображения",Cancel:"Отмена",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?","Paste as HTML":"Вставить как HTML?",Keep:"Сохранить оригинал",Clean:"Почистить","Insert as Text":"Вставить как текст","Insert only Text":"Вставить только текст","Word Paste Detected":"Возможно это фрагмент Word или Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Контент который вы вставляете поступает из документа Microsoft Word / Excel. Вы хотите сохранить формат или очистить его?","File Browser":"Браузер файлов","Error on load list":"Ошибка при загрузке списка изображений","Error on load folders":"Ошибка при загрузке списка директорий","Are you sure?":"Вы уверены?","Enter Directory name":"Введите название директории","Create directory":"Создать директорию","type name":"введите название","Drop image":"Перетащите сюда изображение","Drop file":"Перетащите сюда файл","or click":"или нажмите","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Загрузка",Background:"Фон",Text:"Текст",Top:" К верху",Middle:"По середине",Bottom:"К низу","Insert column before":"Вставить столбец до","Insert column after":"Вставить столбец после","Insert row above":"Вставить ряд выше","Insert row below":"Вставить ряд ниже","Delete table":"Удалить таблицу","Delete row":"Удалять ряд","Delete column":"Удалить столбец","Empty cell":"Очистить ячейку",source:"HTML",bold:"жирный",italic:"курсив",brush:"заливка",link:"ссылка",undo:"отменить",redo:"повторить",table:"таблица",image:"Изображение",eraser:"очистить",paragraph:"параграф",fontsize:"размер шрифта",video:"видео",font:"шрифт",about:"о редакторе",print:"печать",underline:"подчеркнутый",strikethrough:"перечеркнутый",indent:"отступ",outdent:"выступ",fullsize:"во весь экран",shrink:"обычный размер",hr:"линия",ul:"Список",ol:"Нумерованный список",cut:"Вырезать",selectall:"Выделить все","Embed code":"Код","Open link":"Открыть ссылку","Edit link":"Редактировать ссылку","No follow":"Атрибут nofollow",Unlink:"Убрать ссылку",Eye:"Просмотр",pencil:"Редактировать",Update:"Обновить"," URL":"URL",Edit:"Редактировать","Horizontal align":"Горизонтальное выравнивание",Filter:"Фильтр","Sort by changed":"По изменению","Sort by name":"По имени","Sort by size":"По размеру","Add folder":"Добавить папку",Reset:"Восстановить",Save:"Сохранить","Save as ...":"Сохранить как",Resize:"Изменить размер",Crop:"Обрезать размер",Width:"Ширина",Height:"Высота","Keep Aspect Ratio":"Сохранять пропорции",Yes:"Да",No:"Нет",Remove:"Удалить",Select:"Выделить","Chars: %d":"Символов: %d","Words: %d":"Слов: %d",All:"Выделить все","Select %s":"Выделить: %s","Select all":"Выделить все","Vertical align":"Вертикальное выравнивание",Split:"Разделить","Split vertical":"Разделить по вертикали","Split horizontal":"Разделить по горизонтали",Merge:"Объединить в одну","Add column":"Добавить столбец","Add row":"Добавить строку",Delete:"Удалить",Border:"Рамка","License: %s":"Лицензия: %s","Strike through":"Перечеркнуть",Underline:"Подчеркивание",superscript:"верхний индекс",subscript:"индекс","Cut selection":"Вырезать",Break:"Разделитель","Search for":"Найти","Replace with":"Заменить на",Replace:"Заменить",Paste:"Вставить","Choose Content to Paste":"Выбрать контент для вставки","You can only edit your own images. Download this image on the host?":"Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?","The image has been successfully uploaded to the host!":"Изображение успешно загружено на сервер!",palette:"палитра","There are no files":"В данном каталоге нет файлов",Rename:"Переименовать","Enter new name":"Введите новое имя",preview:"Предпросмотр",download:"Скачать","Paste from clipboard":"Вставить из буфера обмена","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не поддерживает прямой доступ к буферу обмена.","Copy selection":"Скопировать выделенное",copy:"копия","Border radius":"Радиус границы","Show all":"Показать все",Apply:"Применить","Please fill out this field":"Пожалуйста, заполните это поле","Please enter a web address":"Пожалуйста, введите веб-адрес",Default:"По умолчанию",Circle:"Круг",Dot:"Точка",Quadrate:"Квадрат",Find:"Найти","Find Previous":"Найти Предыдущие","Find Next":"Найти Далее","Insert className":"Вставить название класса","Press Alt for custom resizing":"Нажмите Alt для изменения пользовательского размера"},tr:{"Type something":"Bir şeyler yaz",Advanced:"Gelişmiş","About Jodit":"Jodit Hakkında","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit Kullanım Kılavuzu","contains detailed help for using":"kullanım için detaylı bilgiler içerir","For information about the license, please go to our website:":"Lisans hakkında bilgi için lütfen web sitemize gidin:","Buy full version":"Tam versiyonunu satın al","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tüm hakları saklıdır.",Anchor:"Bağlantı","Open in new tab":"Yeni sekmede aç","Open in fullsize":"Editörü tam ekranda aç","Clear Formatting":"Stili temizle","Fill color or set the text color":"Renk doldur veya yazı rengi seç",Redo:"Yinele",Undo:"Geri Al",Bold:"Kalın",Italic:"İtalik","Insert Unordered List":"Sırasız Liste Ekle","Insert Ordered List":"Sıralı Liste Ekle","Align Center":"Ortala","Align Justify":"Kenarlara Yasla","Align Left":"Sola Yasla","Align Right":"Sağa Yasla","Insert Horizontal Line":"Yatay Çizgi Ekle","Insert Image":"Resim Ekle","Insert file":"Dosya Ekle","Insert youtube/vimeo video":"Youtube/Vimeo Videosu Ekle","Insert link":"Bağlantı Ekle","Font size":"Font Boyutu","Font family":"Font Ailesi","Insert format block":"Blok Ekle",Normal:"Normal","Heading 1":"Başlık 1","Heading 2":"Başlık 2","Heading 3":"Başlık 3","Heading 4":"Başlık 4",Quote:"Alıntı",Code:"Kod",Insert:"Ekle","Insert table":"Tablo Ekle","Decrease Indent":"Girintiyi Azalt","Increase Indent":"Girintiyi Arttır","Select Special Character":"Özel Karakter Seç","Insert Special Character":"Özel Karakter Ekle","Paint format":"Resim Biçimi","Change mode":"Mod Değiştir",Margins:"Boşluklar",top:"Üst",right:"Sağ",bottom:"Alt",left:"Sol",Styles:"CSS Stilleri",Classes:"CSS Sınıfları",Align:"Hizalama",Right:"Sağ",Center:"Ortalı",Left:"Sol","--Not Set--":"Belirsiz",Src:"Kaynak",Title:"Başlık",Alternative:"Alternatif Yazı",Link:"Link","Open link in new tab":"Bağlantıyı yeni sekmede aç",Image:"Resim",file:"Dosya","Image properties":"Resim özellikleri",Cancel:"İptal",Ok:"Tamam","Your code is similar to HTML. Keep as HTML?":"Kodunuz HTML koduna benziyor. HTML olarak devam etmek ister misiniz?","Paste as HTML":"HTML olarak yapıştır",Keep:"Sakla",Clean:"Temizle","Insert as Text":"Yazı olarak ekle","Word Paste Detected":"Word biçiminde yapıştırma algılandı","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder löschen?","Insert only Text":"Sadece yazıyı ekle","File Browser":"Dosya Listeleyici","Error on load list":"Liste yüklenirken hata oluştu","Error on load folders":"Klasörler yüklenirken hata oluştur","Are you sure?":"Emin misiniz?","Enter Directory name":"Dizin yolu giriniz","Create directory":"Dizin oluştur","type name":"İsim yaz","Drop image":"Resim bırak","Drop file":"Dosya bırak","or click":"veya tıkla","Alternative text":"Alternatif yazı",Browse:"Gözat",Upload:"Yükle",Background:"Arka plan",Text:"Yazı",Top:"Üst",Middle:"Orta",Bottom:"Aşağı","Insert column before":"Öncesine kolon ekle","Insert column after":"Sonrasına kolon ekle","Insert row above":"Üstüne satır ekle","Insert row below":"Altına satır ekle","Delete table":"Tabloyu sil","Delete row":"Satırı sil","Delete column":"Kolonu sil","Empty cell":"Hücreyi temizle",Delete:"Sil","Strike through":"Üstü çizili",Underline:"Alt çizgi",Break:"Satır sonu","Search for":"Ara","Replace with":"Şununla değiştir",Replace:"Değiştir",Edit:"Düzenle","Vertical align":"Dikey hizala","Horizontal align":"Yatay hizala",Filter:"Filtre","Sort by changed":"Değişime göre sırala","Sort by name":"İsme göre sırala","Sort by size":"Boyuta göre sırala","Add folder":"Klasör ekle",Split:"Ayır","Split vertical":"Dikey ayır","Split horizontal":"Yatay ayır",Merge:"Birleştir","Add column":"Kolon ekle","Add row":"Satır ekle",Border:"Kenarlık","Embed code":"Kod ekle",Update:"Güncelle",superscript:"Üst yazı",subscript:"Alt yazı","Cut selection":"Seçilimi kes",Paste:"Yapıştır","Choose Content to Paste":"Yapıştırılacak içerik seç","Chars: %d":"Harfler: %d","Words: %d":"Kelimeler: %d",All:"Tümü","Select %s":"Seç: %s","Select all":"Tümünü seç",source:"Kaynak",bold:"Kalın",italic:"italik",brush:"Fırça",link:"Bağlantı",undo:"Geri al",redo:"Yinele",table:"Tablo",image:"Resim",eraser:"Silgi",paragraph:"Paragraf",fontsize:"Font boyutu",video:"Video",font:"Font",about:"Hakkında",print:"Yazdır",underline:"Alt çizgi",strikethrough:"Üstü çizili",indent:"Girinti",outdent:"Çıkıntı",fullsize:"Tam ekran",shrink:"Küçült",hr:"Ayraç",ul:"Sırasız liste",ol:"Sıralı liste",cut:"Kes",selectall:"Tümünü seç","Open link":"Bağlantıyı aç","Edit link":"Bağlantıyı düzenle","No follow":"Nofollow özelliği",Unlink:"Bağlantıyı kaldır",Eye:"Yorumu",pencil:"Düzenlemek için"," URL":"URL",Reset:"Sıfırla",Save:"Kaydet","Save as ...":"Farklı kaydet",Resize:"Boyutlandır",Crop:"Kırp",Width:"Genişlik",Height:"Yükseklik","Keep Aspect Ratio":"En boy oranını koru",Yes:"Evet",No:"Hayır",Remove:"Sil",Select:"Seç","You can only edit your own images. Download this image on the host?":"Sadece kendi resimlerinizi düzenleyebilirsiniz. Bu görseli kendi hostunuza indirmek ister misiniz?","The image has been successfully uploaded to the host!":"Görsel başarıyla hostunuza yüklendi",palette:"Palet","There are no files":"Bu dizinde dosya yok",Rename:"Yeniden isimlendir","Enter new name":"Yeni isim girin",preview:"Ön izleme",download:"İndir","Paste from clipboard":"Panodan yapıştır ","Your browser doesn't support direct access to the clipboard.":"Tarayıcınız panoya doğrudan erişimi desteklemiyor.","Copy selection":"Seçimi kopyala",copy:"Kopyala","Border radius":"Sınır yarıçapı","Show all":"Tümünü Göster",Apply:"Uygula","Please fill out this field":"Lütfen bu alanı doldurun","Please enter a web address":"Lütfen bir web adresi girin",Default:"Varsayılan",Circle:"Daire",Dot:"Nokta",Quadrate:"Kare",Find:"Bul","Find Previous":"Öncekini Bul","Find Next":"Sonrakini Bul","Insert className":"Sınıf adı girin","Press Alt for custom resizing":"Özel yeniden boyutlandırma için Alt tuşuna basın"},ua:{"Type something":"Напишіть щось","About Jodit":"Про Jodit","Jodit Editor":"Редактор Jodit","Jodit User's Guide":"Jodit інструкція користувача","contains detailed help for using":"містить детальну інформацію щодо користування","For information about the license, please go to our website:":"Щоб дізнатись більше про ліцензію , будь ласка, перейдіть на наш сайт:","Buy full version":"Купити повну версію","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторські права © XDSoft.net - Чупурнов Валерій. Всі права захищені.",Anchor:"Анкор","Open in new tab":"Відкрити у новій вкладці","Open in fullsize":"Відкрити редактор в повному розмірі","Clear Formatting":"Очистити форматування","Fill color or set the text color":"Колір заливки або колір текста",Redo:"Повторити",Undo:"Відмінити",Bold:"Жирний",Italic:"Курсів","Insert Unordered List":"Вставити невпорядкований список","Insert Ordered List":"Вставити нумерованний список","Align Center":"Вирівняти по центру","Align Justify":"Вирівняти по ширині","Align Left":"Вирівняти по лівому краю","Align Right":"Вирівняти по правому краю","Insert Horizontal Line":"Вставити горизонтальну лінію","Insert Image":"Вставити зображення","Insert file":"Вставити файл","Insert youtube/vimeo video":"Вставити відео","Insert link":"Вставити посилання","Font size":"Розмір шрифту","Font family":"Шрифт","Insert format block":"Вставити блочний елемент",Normal:"Нормальний текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставити","Insert table":"Вставити таблицю","Decrease Indent":"Збільшити відступ","Increase Indent":"Зменшити відступ","Select Special Character":"Оберіть спеціальный символ","Insert Special Character":"Вставити спеціальный символ","Paint format":"Формат краски","Change mode":"Джерело",Margins:"Відступи",top:"зверху",right:"справа",bottom:"знизу",left:"зліва",Styles:"Стилі",Classes:"Класи",Align:"Вирівнювання",Right:"По правому краю",Center:"По центру",Left:"По лівому краю","--Not Set--":"--не встановлено--",Src:"src",Title:"Заголовок",Alternative:"Альтернативний текст (alt)",Link:"Посилання","Open link in new tab":"Відкрити посилання в новій вкладці",file:"Файл",Advanced:"Розширені","Image properties":"Властивості зображення",Cancel:"Відміна",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Текст, який Ви намагаєтесь вставити схожий на HTML. Вставити його як HTML?","Paste as HTML":"Вставити його як HTML",Keep:"Зберегти оригінал",Clean:"Почистити","Insert as Text":"Вставити як текст","Insert only Text":"Вставити тільки текст","Word Paste Detected":"Можливо це фрагмент Word або Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Ви вставляєте контент з документа Microsoft Word або Excel. Бажаєте зберегти форматування?","File Browser":"Браузер файлів","Error on load list":"Помилка при завантаженні списку зображень","Error on load folders":"Помилка при завантаженні списку папок","Are you sure?":"Ви впевнені?","Enter Directory name":"Введіть назву папки","Create directory":"Створити папку","type name":"введіть назву","Drop image":"Перетягніть зображення сюди","Drop file":"Перетягніть файл сюди","or click":"або клікніть","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Завантаження",Background:"Фон",Text:"Текст",Top:" Вгору",Middle:"По центру",Bottom:"Донизу","Insert column before":"Вставити стовпець до","Insert column after":"Вставити стовпець після","Insert row above":"Вставити рядок вище","Insert row below":"Вставити рядок нижче","Delete table":"Видалити таблицю","Delete row":"Видалити рядок","Delete column":"Видалити стовпчик","Empty cell":"Очистити кліинку",source:"HTML",bold:"жирний",italic:"курсів",brush:"заливка",link:"посилання",undo:"відмінити",redo:"повторити",table:"таблиця",image:"зображення",eraser:"видалення",paragraph:"параграф",fontsize:"розмір шрифту",video:"відео",font:"шрифт",about:"про редактор",print:"друк",underline:"підкреслений",strikethrough:"закреслений",indent:"відступ",outdent:"заступ",fullsize:"на весь екран",shrink:"звичайний розмір",hr:"лінія",ul:"Список",ol:"Нумерований список",cut:"Вирізати",selectall:"Виділити все","Embed code":"Код","Open link":"Відкрити посилання","Edit link":"Редагувати посилання","No follow":"Атрибут nofollow",Unlink:"Видалити посилання",Eye:"Перегляд",pencil:"Редагування",Update:"Оновити"," URL":"URL",Edit:"Редагувати","Horizontal align":"Горизонтальне вирівнювання",Filter:"Фільтр","Sort by changed":"Сортувати за зміною","Sort by name":"Сортувати за ім'ям","Sort by size":"Сортувати за розміром","Add folder":"Додати папку",Reset:"Відновити",Save:"Зберегти","Save as ...":"Зберегти як",Resize:"Змінити розмір",Crop:"Обрізати розмір",Width:"Ширина",Height:"Висота","Keep Aspect Ratio":"Зберегти пропорції",Yes:"Так",No:"Ні",Remove:"Видалити",Select:"Вибрати","Chars: %d":"Символів: %d","Words: %d":"Слів: %d",All:"Вибрати все","Select %s":"Вибрати: %s","Select all":"Вибрати все","Vertical align":"Вертикальне вирівнювання",Split:"Розділити","Split vertical":"Розділити по вертикалі","Split horizontal":"Розділити по горизонталі",Merge:"Об'єднати в одну","Add column":"Додати стовпчик","Add row":"Додати рядок",Delete:"Видалити",Border:"Рамка","License: %s":"Ліцензія: %s","Strike through":"Закреслений",Underline:"Підкреслений",superscript:"верхній індекс",subscript:"індекс","Cut selection":"Обрізати вибране",Break:"Межа","Search for":"Шукати","Replace with":"Замінити на",Replace:"Замінити",Paste:"Вставити","Choose Content to Paste":"Обрати контент для вставки","You can only edit your own images. Download this image on the host?":"Ви можете редагувати лише власні зображення. Завантажити зображення на ваш сервер?","The image has been successfully uploaded to the host!":"Зображення успішно завантажено на сервер!",palette:"палітра","There are no files":"Файли відсутні",Rename:"Змінити назву","Enter new name":"Введіть нове імя'",preview:"Попередній перегляд",download:"Завантажити","Paste from clipboard":"Вставити з буфера обміну","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не підтримує доступ до буфера обміну.","Copy selection":"Копіювати виділене",copy:"копія","Border radius":"Радіус рамки","Show all":"Показати все",Apply:"Застосувати","Please fill out this field":"Будь ласка, заповніть це поле","Please enter a web address":"Будь ласка, введіть веб-адресу",Default:"За замовченням",Circle:"Коло",Dot:"Крапка",Quadrate:"Квадрат",Find:"Знайти","Find Previous":"Знайти попередні","Find Next":"Знайти наступні","Insert className":"Вставити клас","Press Alt for custom resizing":"Натисніть Alt для зміни розміру"},zh_cn:{"Type something":"输入一些内容",Advanced:"高级","About Jodit":"关于Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Free Non-commercial Version","Jodit User's Guide":"开发者指南","contains detailed help for using":"使用帮助","For information about the license, please go to our website:":"有关许可证的信息，请访问我们的网站：","Buy full version":"购买完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. 版权所有",Anchor:"Anchor","Open in new tab":"在新窗口打开","Open in fullsize":"全屏编辑","Clear Formatting":"清除样式","Fill color or set the text color":"颜色",Redo:"重做",Undo:"撤销",Bold:"粗体",Italic:"斜体","Insert Unordered List":"符号列表","Insert Ordered List":"编号","Align Center":"居中","Align Justify":"对齐文本","Align Left":"左对齐","Align Right":"右对齐","Insert Horizontal Line":"分割线","Insert Image":"图片","Insert file":"文件","Insert youtube/vimeo video":"视频","Insert link":"链接","Font size":"字号","Font family":"字体","Insert format block":"格式块",Normal:"默认","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4",Quote:"引用",Code:"代码",Insert:"插入","Insert table":"表格","Decrease Indent":"减少缩进","Increase Indent":"增加缩进","Select Special Character":"选择特殊符号","Insert Special Character":"特殊符号","Paint format":"格式复制","Change mode":"改变模式",Margins:"外边距（Margins）",top:"top",right:"right",bottom:"bottom",left:"left",Styles:"样式",Classes:"Classes",Align:"对齐方式",Right:"居右",Center:"居中",Left:"居左","--Not Set--":"无",Src:"Src",Title:"Title",Alternative:"Alternative",Link:"Link","Open link in new tab":"在新窗口打开链接",Image:"图片",file:"file","Image properties":"图片属性",Cancel:"取消",Ok:"确定","Your code is similar to HTML. Keep as HTML?":"你粘贴的文本是一段html代码，是否保留源格式","Paste as HTML":"html粘贴",Keep:"保留源格式",Clean:"匹配目标格式","Insert as Text":"把html代码视为普通文本","Word Paste Detected":"文本粘贴","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"正在粘贴 Word/Excel 的文本，是否保留源格式？","Insert only Text":"只保留文本","File Browser":"文件管理","Error on load list":"加载list错误","Error on load folders":"加载folders错误","Are you sure?":"你确定吗？","Enter Directory name":"输入路径","Create directory":"创建路径","type name":"type name","Drop image":"拖动图片到此","Drop file":"拖动文件到此","or click":"或点击","Alternative text":"Alternative text",Browse:"浏览",Upload:"上传",Background:"背景色",Text:"文字",Top:"顶部",Middle:"中间",Bottom:"底部","Insert column before":"在之前插入列","Insert column after":"在之后插入列","Insert row above":"在之前插入行","Insert row below":"在之后插入行","Delete table":"删除表格","Delete row":"删除行","Delete column":"删除列","Empty cell":"清除内容","Chars: %d":"字符数: %d","Words: %d":"单词数: %d","Strike through":"删除线",Underline:"下划线",superscript:"上标",subscript:"下标","Cut selection":"剪切","Select all":"全选",Break:"Break","Search for":"查找","Replace with":"替换为",Replace:"替换",Edit:"编辑",Paste:"粘贴","Choose Content to Paste":"选择内容并粘贴",All:"全部",source:"源码",bold:"粗体",italic:"斜体",brush:"颜色",link:"链接",undo:"撤销",redo:"重做",table:"表格",image:"图片",eraser:"橡皮擦",paragraph:"段落",fontsize:"字号",video:"视频",font:"字体",about:"关于",print:"打印",underline:"下划线",strikethrough:"上出现",indent:"增加缩进",outdent:"减少缩进",fullsize:"全屏",shrink:"收缩",hr:"分割线",ul:"无序列表",ol:"顺序列表",cut:"剪切",selectall:"全选","Open link":"打开链接","Edit link":"编辑链接","No follow":"No follow",Unlink:"取消链接",Eye:"预览"," URL":"URL",Reset:"重置",Save:"保存","Save as ...":"保存为",Resize:"调整大小",Crop:"剪切",Width:"宽",Height:"高","Keep Aspect Ratio":"保持长宽比",Yes:"是",No:"不",Remove:"移除",Select:"选择","Select %s":"选择: %s",Update:"更新","Vertical align":"垂直对齐",Merge:"合并","Add column":"添加列","Add row":"添加行",Border:"边框","Embed code":"嵌入代码",Delete:"删除","Horizontal align":"水平对齐",Filter:"筛选","Sort by changed":"修改时间排序","Sort by name":"名称排序","Sort by size":"大小排序","Add folder":"新建文件夹",Split:"拆分","Split vertical":"垂直拆分","Split horizontal":"水平拆分","You can only edit your own images. Download this image on the host?":"你只能编辑你自己的图片。Download this image on the host?","The image has been successfully uploaded to the host!":"图片上传成功",palette:"调色板",pencil:"铅笔","There are no files":"此目录中沒有文件。",Rename:"重命名","Enter new name":"输入新名称",preview:"预览",download:"下载","Paste from clipboard":"粘贴从剪贴板","Your browser doesn't support direct access to the clipboard.":"你浏览器不支持直接访问的剪贴板。","Copy selection":"复制选中内容",copy:"复制","Border radius":"边界半径","Show all":"显示所有",Apply:"应用","Please fill out this field":"请填写这个字段","Please enter a web address":"请输入一个网址",Default:"默认",Circle:"圆圈",Dot:"点",Quadrate:"方形",Find:"搜索","Find Previous":"查找上一个","Find Next":"查找下一个","Insert className":"插入班级名称","Press Alt for custom resizing":"按Alt自定义调整大小"},zh_tw:{"Type something":"輸入一些內容",Advanced:"進階","About Jodit":"關於Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"開發者指南","contains detailed help for using":"使用幫助","For information about the license, please go to our website:":"相關授權條款資訊，請造訪我們的網站：","Buy full version":"購買完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"錨點","Open in new tab":"在新分頁開啟","Open in fullsize":"全螢幕編輯","Clear Formatting":"清除樣式","Fill color or set the text color":"顏色",Redo:"取消復原",Undo:"復原",Bold:"粗體",Italic:"斜體","Insert Unordered List":"項目符號清單","Insert Ordered List":"編號清單","Align Center":"置中","Align Justify":"文字對齊","Align Left":"靠左","Align Right":"靠右","Insert Horizontal Line":"分割線","Insert Image":"圖片","Insert file":"檔案","Insert youtube/vimeo video":"插入 youtube/vimeo 影片","Insert link":"插入連結","Font size":"文字大小","Font family":"字型","Insert format block":"格式化區塊",Normal:"內文","Heading 1":"標題1","Heading 2":"標題2","Heading 3":"標題3","Heading 4":"標題4",Quote:"引文",Code:"程式碼",Insert:"插入","Insert table":"表格","Decrease Indent":"減少縮排","Increase Indent":"增加縮排","Select Special Character":"選擇特殊符號","Insert Special Character":"特殊符號","Paint format":"格式複製","Change mode":"檢視原始碼",Margins:"邊距",top:"上",right:"右",bottom:"下",left:"左",Styles:"樣式",Classes:"Classes",Align:"對齊方式",Right:"靠右",Center:"置中",Left:"靠左","--Not Set--":"無",Src:"Src",Title:"Title",Alternative:"替代",Link:"Link","Open link in new tab":"在新分頁開啟連結",Image:"圖片",file:"檔案","Image properties":"圖片屬性",Cancel:"取消",Ok:"確定","Your code is similar to HTML. Keep as HTML?":"您的程式碼與 HTML 類似，是否貼上 HTML 格式？","Paste as HTML":"貼上 HTML",Keep:"保留原始格式",Clean:"清除格式","Insert as Text":"以純文字貼上","Word Paste Detected":"貼上 Word 格式","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"正在貼上 Word/Excel 文件的內容，是否保留原始格式？","Insert only Text":"僅貼上內文","File Browser":"檔案瀏覽","Error on load list":"清單載入錯誤","Error on load folders":"資料夾載入錯誤","Are you sure?":"您確定嗎？","Enter Directory name":"輸入路徑","Create directory":"創建路徑","type name":"type name","Drop image":"拖曳圖片至此","Drop file":"拖曳檔案至此","or click":"或點擊","Alternative text":"替代文字",Browse:"瀏覽",Upload:"上傳",Background:"背景色",Text:"文字",Top:"頂部",Middle:"中間",Bottom:"底部","Insert column before":"插入左方欄","Insert column after":"插入右方欄","Insert row above":"插入上方列","Insert row below":"插入下方列","Delete table":"刪除表格","Delete row":"刪除整列","Delete column":"刪除整欄","Empty cell":"清除內容","Chars: %d":"字元數: %d","Words: %d":"單字數: %d","Strike through":"刪除線",Underline:"底線",superscript:"上標",subscript:"下標","Cut selection":"剪下","Select all":"全選",Break:"斷行","Search for":"尋找","Replace with":"取代為",Replace:"取代",Paste:"貼上","Choose Content to Paste":"選擇內容並貼上",All:"全部",source:"原始碼",bold:"粗體",italic:"斜體",brush:"顏色",link:"連結",undo:"復原",redo:"取消復原",table:"表格",image:"圖片",eraser:"橡皮擦",paragraph:"段落",fontsize:"文字大小",video:"影片",font:"字型",about:"關於",print:"列印",underline:"底線",strikethrough:"刪除線",indent:"增加縮排",outdent:"減少縮排",fullsize:"全螢幕",shrink:"縮減",hr:"分隔線",ul:"項目符號清單",ol:"編號清單",cut:"剪下",selectall:"全選","Open link":"打開連結","Edit link":"編輯連結","No follow":"No follow",Unlink:"取消連結",Eye:"查看"," URL":"URL",Reset:"重設",Save:"儲存","Save as ...":"另存為...",Resize:"調整大小",Crop:"裁切",Width:"寬",Height:"高","Keep Aspect Ratio":"維持長寬比",Yes:"是",No:"否",Remove:"移除",Select:"選擇","Select %s":"選擇: %s",Update:"更新","Vertical align":"垂直對齊",Merge:"合併","Add column":"新增欄","Add row":"新增列",Border:"邊框","Embed code":"嵌入程式碼",Delete:"刪除","Horizontal align":"水平對齊",Filter:"篩選","Sort by changed":"修改時間排序","Sort by name":"名稱排序","Sort by size":"大小排序","Add folder":"新增資料夾",Split:"分割","Split vertical":"垂直分割","Split horizontal":"水平分割","You can only edit your own images. Download this image on the host?":"您只能編輯您自己的圖片。是否下載此圖片?","The image has been successfully uploaded to the host!":"圖片上傳成功",palette:"調色盤",pencil:"鉛筆","There are no files":"沒有檔案",Rename:"重新命名","Enter new name":"輸入新名稱",preview:"預覽",download:"下載","Paste from clipboard":"從剪貼簿貼上","Your browser doesn't support direct access to the clipboard.":"瀏覽器無法存取剪貼簿。","Copy selection":"複製已選取項目",copy:"複製","Border radius":"邊框圓角","Show all":"顯示全部",Apply:"應用","Please fill out this field":"請輸入此欄位","Please enter a web address":"請輸入網址",Default:"預設",Circle:"圓圈",Dot:"點",Quadrate:"方形",Find:"尋找","Find Previous":"尋找上一個","Find Next":"尋找下一個","Insert className":"插入 class 名稱","Press Alt for custom resizing":"按住 Alt 以調整自訂大小"}};var U2=function(l){return l?l.default||l:{}},YI={};Nt(U2(qI))&&U2(qI).forEach(function(l,c){YI[c]=l}),Object.keys(kc).forEach(function(l){var c=U2(kc[l]);Nt(c)?(kc[l]={},c.forEach(function(h,u){kc[l][YI[u]]=h})):kc[l]=c});const WI=kc;function XI(l){return function(c){return l.e.fire("backSpaceIsMovedIgnore",c)!==!0}}function V2(l,c,h,u){if(c&&N.isElement(h)){N.moveContent(c,h,!u,XI(l));for(var i=c;i&&i!==l.editor&&N.isEmpty(i);){var s=i.parentElement;N.safeRemove(i),i=s}return!0}return!1}function GI(l,c,h){var u=N.findSibling(c,h),i=N.findSibling(c,!h);if(!N.closest(c,N.isElement,l.editor)&&N.isList(u)&&N.isList(i)&&N.isTag(u.lastElementChild,"li")&&N.isTag(i.firstElementChild,"li")){var s=l.s,d=s.setCursorBefore,g=s.setCursorAfter,b=u.lastElementChild,w=i.firstElementChild;return Mr(h?N.prepend:N.append,w,c),N.moveContent(i,u,!h,XI(l)),N.safeRemove(i),Mr(h?N.append:N.prepend,b,c),Mr(h?d:g,c),!0}return!1}function $I(l,c,h,u){var i,s,d,g=h?-1:1,b=N.sibling(c,!h),w=N.sibling(c,h),_=null,T=!1;for(w||(w=ZI(c,h,l.editor));w&&(N.isText(w)||N.isInlineBlock(w));){for(;N.isInlineBlock(w);)w=h?w==null?void 0:w.lastChild:w==null?void 0:w.firstChild;if(!w)break;if(!((i=w.nodeValue)===null||i===void 0)&&i.length&&(d=lZ(w,h,g,b),!w.nodeValue.length&&N.isInlineBlock(w.parentNode)&&(w.nodeValue=dn)),!((s=w.nodeValue)===null||s===void 0)&&s.length||(_=w),!zr(d)&&d!==dn){cZ(h,w,c,u,d,l),T=!0;break}var z=ZI(w,h,l.editor);_&&(N.safeRemove(_),_=null),w=z}return _&&(N.safeRemove(_),_=null),T&&(function(L){for(var D=L.parentElement;D&&N.isInlineBlock(D)&&N.isTag(D,"a");){var q=D.parentElement;N.isEmpty(D)&&(N.after(D,L),N.safeRemove(D)),D=q}}(c),function(L,D){D.parentElement!==L.editor&&N.isBlock(D.parentElement)&&N.each(D.parentElement,N.isEmptyTextNode)&&N.after(D,L.createInside.element("br"))}(l,c),l.s.setCursorBefore(c),N.isTag(c.previousSibling,"br")&&!N.findNotEmptySibling(c,!1)&&N.after(c,l.createInside.element("br"))),T}function ZI(l,c,h){var u=N.sibling(l,c);return!u&&l.parentNode&&l.parentNode!==h&&(u=function(i,s,d){var g=arguments.length>3&&arguments[3]!==void 0&&arguments[3],b=function(_){return s?_.firstChild:_.lastChild},w=N.findNotEmptyNeighbor(i,!s,d);if(g&&N.isElement(w)&&!N.isInlineBlock(w))return null;if(w)do{if(!b(w))return w;w=b(w)}while(w);return null}(l,!c,h,!0)),u}function lZ(l,c,h,u){var i=mr(l.nodeValue),s=i.length,d=c?s-1:0;if(i[d]===dn)for(;i[d]===dn;)d+=h;var g=i[d];if(i[d+h]===dn){for(d+=h;i[d]===dn;)d+=h;d+=c?1:-1}return function(b,w,_){var T;if(!b||!N.isText(b)||(w?/^ /:/ $/).test((T=b.nodeValue)!==null&&T!==void 0?T:"")||!iP(b.nodeValue||"").length)for(var z=w?_.length-1:0;(w?z>=0:z<_.length)&&_[z]===" ";z+=w?-1:1)_[z]=wb}(u,c,i=c&&d<0?[]:i.slice(c?0:d+1,c?d:s)),l.nodeValue=i.join(""),g}function cZ(l,c,h,u,i,s){Mr(l?N.after:N.before,c,h),(u==="sentence"||u==="word"&&i!==" "&&i!==wb)&&$I(s,h,l,u)}function KI(l,c,h){var u=!1,i=l.s,s=i.setCursorBefore,d=i.setCursorIn,g=N.closest(c,N.isElement,l.editor);if(!g||!N.isEmpty(g))return!1;var b=N.findNotEmptyNeighbor(c,h,l.editor);do{if(!g||!N.isEmpty(g)||N.isCell(g))break;N.after(g,c);var w=N.closest(g,function(_){return N.isElement(_)&&_!==g},l.editor);N.safeRemove(g),u=!0,g=w}while(g);return!(!u||!GI(l,c,h))||(!b||N.isText(b)||N.isTag(b,zi)?s(c):d(b,!h),u)}de.prototype.controls.about={exec:function(l){var c=l.dlg({closeOnClickOverlay:!0}),h=l.i18n.bind(l);c.setMod("theme",l.o.theme).setHeader(h("About Jodit")).setContent(`<div class="jodit-about">
					<div>`.concat(h("Jodit Editor")," v.").concat(l.getVersion(),`</div>
					<div>`).concat(h("License: %s",rP(l.o.license)?RP(l.o.license):"MIT"),`</div>
					<div>
						<a href="`).concat(P_,'" target="_blank">').concat(P_,`</a>
					</div>
					<div>
						<a href="https://xdsoft.net/jodit/docs/" target="_blank">`).concat(h("Jodit User's Guide"),`</a>
						`).concat(h("contains detailed help for using"),`
					</div>
					<div>`).concat(h("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved."),`</div>
				</div>`)),be(c.dialog,{minHeight:200,minWidth:420}),c.open(!0,!0)},tooltip:"About Jodit",mode:Nn+gr},Ve.add("about",function(l){l.registerButton({name:"about",group:"info"})}),Ke.set("about",'<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg> '),de.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}};var uZ=[function(l,c,h){var u=N.findSibling(c,h);return!(!N.isElement(u)||!N.isTag(u,zi)&&!N.isEmpty(u)||(N.safeRemove(u),N.isTag(u,"br")&&!N.findNotEmptySibling(c,!1)&&N.after(c,l.createInside.element("br")),l.s.setCursorBefore(c),N.isTag(u,"br")&&KI(l,c,h),0))},function(l,c,h){var u=N.findSibling(c,h);return!u&&c.parentElement&&c.parentElement!==l.editor&&(u=N.findSibling(c.parentElement,h)),!(!N.isElement(u)||N.isContentEditable(u,l.editor)||(Mr(h?N.before:N.after,u,c),N.safeRemove(u),LI(l,c,h),Mr(h?l.s.setCursorBefore:l.s.setCursorAfter,c),0))},$I,function(l,c){var h=c.parentElement;return!!N.isCell(h)},KI,function(l,c,h){var u=N.closest(c,N.isElement,l.editor);if(!u)return!1;var i=N.findNotEmptySibling(u,h);return!(!i||!N.isEmpty(i)||(N.safeRemove(i),l.s.setCursorBefore(c),0))},GI,function(l,c,h){for(var u=c,i=u;u&&!N.findNotEmptySibling(u,h)&&u.parentElement!==l.editor;)i=u=u.parentElement;if(N.isElement(i)&&N.isContentEditable(i,l.editor)){var s=N.findNotEmptySibling(i,h);if(s&&(function(d,g,b,w){var _=N.isTag(b,Lu),T=N.isTag(g,Lu),z=function(L,D){return D?L.firstElementChild:L.lastElementChild};return T?(b=d.createInside.element(d.o.enterBlock),N.before(g,b),V2(d,z(g,w),b,w)):!(!b||!_||T)&&V2(d,g,z(b,!w),w)}(l,i,s,h)||V2(l,i,s,h)))return l.s.setCursorBefore(c),!0}return!1},function(l,c,h){var u,i=N.closest(c,N.isElement,l.editor),s=l.s;if(N.isLeaf(i)&&((u=i==null?void 0:i.parentElement)===null||u===void 0?void 0:u[h?"firstElementChild":"lastElementChild"])===i&&s.cursorInTheEdge(h,i)){var d=i.parentElement,g=l.createInside.element(l.o.enterBlock);return Mr(h?N.before:N.after,d,g),N.moveContent(i,g),N.safeRemove(i),N.isEmpty(d)&&N.safeRemove(d),Mr(h?s.setCursorBefore:s.setCursorAfter,c),!0}return!1}];function q2(l,c,h){return q2=W2()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&fp(g,s.prototype),g},q2.apply(null,arguments)}function dZ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function dp(l){return dp=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},dp(l)}function fp(l,c){return fp=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},fp(l,c)}function Y2(l){var c=typeof Map=="function"?new Map:void 0;return Y2=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return q2(h,arguments,dp(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),fp(i,h)},Y2(l)}function W2(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W2=function(){return!!l})()}var JI=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=dp(s=c),function(g,b){return!b||((w=b)&&typeof Symbol<"u"&&w.constructor===Symbol?"symbol":typeof w)!="object"&&typeof b!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(g):b;var w}(i,W2()?Reflect.construct(s,d||[],dp(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&fp(i,s)}(c,l),h=c,u=[{key:"afterInit",value:function(i){var s=this;i.registerCommand("deleteButton",{exec:function(){return s.onDelete(!1)},hotkeys:i.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:function(){return s.onDelete(!0)},hotkeys:i.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:function(){return s.onDelete(!1,"word")},hotkeys:i.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:function(){return s.onDelete(!0,"word")},hotkeys:i.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:function(){return s.onDelete(!1,"sentence")},hotkeys:i.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:function(){return s.onDelete(!0,"sentence")},hotkeys:i.o.delete.hotkeys.backspaceSentence})}},{key:"beforeDestruct",value:function(i){i.e.off("afterCommand.delete")}},{key:"onDelete",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"char",d=this.j,g=d.selection;if(g.isFocused()||g.focus(),function(_){return!_.s.isCollapsed()&&(_.execCommand("Delete"),!0)}(d))return!1;var b=g.range,w=d.createInside.text(dn);try{if(N.safeInsertNode(b,w),!N.isOrContains(d.editor,w))return;if(d.e.fire("backSpaceBeforeCases",i,w)||(LI(d,w,i),uZ.some(function(_){if(Pe(_)&&_(d,w,i,s))return Vs||console.info("Remove case:",_.name),!0})))return!1}catch(_){throw _}finally{d.e.fire("backSpaceAfterDelete",i,w),this.safeRemoveEmptyNode(w)}return!1}},{key:"safeRemoveEmptyNode",value:function(i){var s,d,g=this.j.s.range;g.startContainer===i&&(i.previousSibling?N.isText(i.previousSibling)?g.setStart(i.previousSibling,(d=(s=i.previousSibling.nodeValue)===null||s===void 0?void 0:s.length)!==null&&d!==void 0?d:0):g.setStartAfter(i.previousSibling):i.nextSibling&&(N.isText(i.nextSibling)?g.setStart(i.nextSibling,0):g.setStartBefore(i.nextSibling)),g.collapse(!0),this.j.s.selectRange(g)),N.safeRemove(i)}}],u&&dZ(h.prototype,u),c}(Y2(ut));function X2(l,c,h){return X2=$2()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&pp(g,s.prototype),g},X2.apply(null,arguments)}function fZ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function hp(l){return hp=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},hp(l)}function pp(l,c){return pp=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},pp(l,c)}function G2(l){var c=typeof Map=="function"?new Map:void 0;return G2=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return X2(h,arguments,hp(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),pp(i,h)},G2(l)}function $2(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($2=function(){return!!l})()}JI.requires=["hotkeys"],Ve.add("backspace",JI);var QI=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=hp(s=c),function(g,b){return!b||((w=b)&&typeof Symbol<"u"&&w.constructor===Symbol?"symbol":typeof w)!="object"&&typeof b!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(g):b;var w}(i,$2()?Reflect.construct(s,d||[],hp(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&pp(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(i){var s=this;i.e.on("afterCommand.delete",function(d){d==="delete"&&s.__afterDeleteCommand()}),i.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}},{key:"beforeDestruct",value:function(i){i.e.off("afterCommand.delete")}},{key:"__afterDeleteCommand",value:function(){var i=this.j,s=i.s.current();if(s&&N.isTag(s.firstChild,"br")&&i.s.removeNode(s.firstChild),!(cr(i.editor.textContent||"")||i.editor.querySelector("img,table,jodit,iframe,hr")||s&&N.closest(s,"table",i.editor))){i.editor.innerHTML="";var d=i.s.setCursorIn(i.editor);i.s.removeNode(d)}}},{key:"__onDeleteCommand",value:function(){var i=this.jodit;if(!i.s.isCollapsed()){i.s.expandSelection();var s=i.s.range;s.deleteContents();var d=i.createInside.fake();s.insertNode(d);var g=N.findSibling(d,!0),b=N.findSibling(d,!1);return this.__moveContentInLeftSibling(d,g,b),s.setStartBefore(d),s.collapse(!0),this.__moveCursorInEditableSibling(i,g,d,s),this.__addBrInEmptyBlock(d,b,s),N.safeRemove(d),i.s.selectRange(s),!1}}},{key:"__moveContentInLeftSibling",value:function(i,s,d){s=this.__defineRightLeftBox(s),!N.isList(d)&&!N.isTag(d,"table")&&N.isBlock(d)&&N.isBlock(s)&&(N.append(s,i),N.moveContent(d,s),N.safeRemove(d)),N.isList(d)&&N.isLeaf(d.firstElementChild)&&N.isEmpty(d.firstElementChild)&&N.safeRemove(d.firstElementChild)}},{key:"__defineRightLeftBox",value:function(i){if(!N.isList(i))return i;var s=i.lastElementChild;return N.isLeaf(s)||(s=this.j.createInside.element("li"),N.append(i,s)),s}},{key:"__addBrInEmptyBlock",value:function(i,s,d){var g=this.j;if(i.isConnected&&N.isBlock(i.parentNode)&&!i.nextSibling&&!i.previousSibling){var b=g.createInside.element("br");N.after(i,b),d.setStartBefore(b),d.collapse(!0)}if(N.isTag(s,"table")){var w=Ct("td,th",s).shift();N.isCell(w)&&N.isEmpty(w)&&N.append(w,g.createInside.element("br"))}}},{key:"__moveCursorInEditableSibling",value:function(i,s,d,g){var b;if(!s||!N.isText(s)){var w=(b=N.closest(d,N.isBlock,i.editor))!==null&&b!==void 0?b:i.editor,_=N.prev(d,N.isText,w);_&&(g.setStartAfter(_),g.collapse(!0),N.safeRemove(d))}}}])&&fZ(h.prototype,u),c}(G2(ut));function hZ(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}QI.requires=["backspace"],Ve.add("deleteCommand",QI),de.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},de.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},de.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},de.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},de.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},de.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"},Ve.add("bold",function(l){var c=function(h){var u,i=de.defaultOptions.controls[h],s=function(d){for(var g=1;g<arguments.length;g++){var b=arguments[g]!=null?arguments[g]:{},w=Object.keys(b);typeof Object.getOwnPropertySymbols=="function"&&(w=w.concat(Object.getOwnPropertySymbols(b).filter(function(_){return Object.getOwnPropertyDescriptor(b,_).enumerable}))),w.forEach(function(_){hZ(d,_,b[_])})}return d}({},i.css);return Object.keys(s).forEach(function(d){u||(u={}),u[d]=Nt(s[d])?s[d][0]:s[d]}),l.s.commitStyle({element:i.tags?i.tags[0]:void 0}),l.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(function(h){l.registerButton({name:h,group:"font-style"})}),["superscript","subscript"].forEach(function(h){l.registerButton({name:h,group:"script"})}),l.registerCommand("bold",{exec:c,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:c,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:c,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:c}).registerCommand("subscript",{exec:c}).registerCommand("superscript",{exec:c})}),Ke.set("bold",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg> `).set("italic",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg> `).set("strikethrough",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg> `).set("subscript",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg> `).set("superscript",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg> `).set("underline",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg> `),Ke.set("palette",`<svg xmlns='http://www.w3.org/2000/svg' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg> `);var Z2=function(l,c,h){var u="jodit-color-picker",i=Pk(h),s=l.c.div(u),d=l.o.textIcons?"<span>".concat(l.i18n("palette"),"</span>"):Ke.get("palette"),g=function(w){var _=[];return tr(w)?Object.keys(w).forEach(function(T){_.push('<div class="'.concat(u,"__group ").concat(u,"__group-").concat(T,'">')),_.push(g(w[T])),_.push("</div>")}):Nt(w)&&w.forEach(function(T){_.push("<span class='".concat(u,"__color-item ").concat(i===T?u+"__color-item_active_true":"",`' title="`).concat(T,'" style="background-color:').concat(T,'" data-color="').concat(T,'"></span>'))}),_.join("")};s.appendChild(l.c.fromHTML('<div class="'.concat(u,'__groups">').concat(g(l.o.colors),"</div>"))),s.appendChild(l.c.fromHTML('<div data-ref="extra" class="'.concat(u,'__extra"></div>')));var b=ii(s).extra;return l.o.showBrowserColorPicker&&$5()&&(b.appendChild(l.c.fromHTML('<div class="'.concat(u,'__native">').concat(d,'<input type="color" value="#ffffff"/></div>'))),l.e.on(s,"change",function(w){w.stopPropagation();var _=w.target;if(_&&_.tagName&&N.isTag(_,"input")){var T=_.value||"";Pe(c)&&c(T),w.preventDefault()}})),l.e.on(s,"mousedown touchend",function(w){w.stopPropagation(),w.preventDefault();var _=w.target;if(_&&_.tagName&&!N.isTag(_,"svg")&&!N.isTag(_,"path")||!_.parentNode||(_=N.closest(_.parentNode,"span",l.editor)),N.isTag(_,"span")&&_.classList.contains(u+"__color-item")){var T=fe(_,"-color")||"";c&&Pe(c)&&c(T)}}),l.e.fire("afterGenerateColorPicker",s,b,c,i),s},gp=function(l,c,h){var u=l.c.div("jodit-tabs"),i=l.c.div("jodit-tabs__wrapper"),s=l.c.div("jodit-tabs__buttons");fe(s,{role:"tablist","aria-orientation":"horizontal"});var d={},g=[],b="";u.appendChild(s),u.appendChild(i);var w=function(z){d[z]&&(g.forEach(function(L){L.state.activated=!1}),Object.values(d).forEach(function(L){return L.tab.classList.remove("jodit-tab_active")}),d[z].button.state.activated=!0,d[z].tab.classList.add("jodit-tab_active"))};c.forEach(function(z){var L=z.icon,D=z.name,q=z.content,Y=l.c.div("jodit-tab");fe(Y,{role:"tabpanel"});var X=sr(l,L||D,D);X.state.role="tab",l.e.on(X.container,"pointerdown",function(J){return J.preventDefault()}),b||(b=D),s.appendChild(X.container),g.push(X),X.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+c.length),Pe(q)?Y.appendChild(l.c.div("jodit-tab_empty")):Y.appendChild(fo.isInstanceOf(q,Vr)?q.container:q),i.appendChild(Y),X.onAction(function(){return w(D),Pe(q)&&!N.isElement(q)&&q.call(l),h&&(h.activeTab=D),!1}),d[D]={button:X,tab:Y}}),Object.values(d).forEach(function(z){z.button.container.style.width=(100/c.length).toFixed(10)+"%"});var _=h&&h.activeTab&&d[h.activeTab]?h.activeTab:b;if(w(_),h){var T=h.activeTab;Object.defineProperty(h,"activeTab",{configurable:!0,enumerable:!1,get:function(){return T},set:function(z){T=z,w(z)}})}return u},K2=function(l,c,h,u){var i,s=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],d=[];if(c.upload&&l.o.uploader&&(l.o.uploader.url||l.o.uploader.insertImageAsBase64URI)){var g=l.c.fromHTML('<div class="jodit-drag-and-drop__file-box">'+"<strong>".concat(l.i18n(s?"Drop image":"Drop file"),"</strong>")+"<span><br>".concat(l.i18n("or click"),"</span>")+'<input type="file" accept="'.concat(s?"image/*":"*",'" tabindex="-1" dir="auto" multiple=""/>')+"</div>");l.uploader.bind(g,function(_){var T=Pe(c.upload)?c.upload:l.o.uploader.defaultHandlerSuccess;Pe(T)&&T.call(l,_),l.e.fire("closeAllPopups")},function(_){l.message.error(_.message),l.e.fire("closeAllPopups")}),d.push({icon:"upload",name:"Upload",content:g})}if(c.filebrowser&&(l.o.filebrowser.ajax.url||l.o.filebrowser.items.url)&&d.push({icon:"folder",name:"Browse",content:function(){u&&u(),c.filebrowser&&l.filebrowser.open(c.filebrowser,s)}}),c.url){var b=new Bt(l,{type:"submit",variant:"primary",text:"Insert"}),w=new Zs(l,[new br(l,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new br(l,{name:"text",label:"Alternative text"}),new ho(l,[b])]);i=null,!h||N.isText(h)||N.isComment(h)||!N.isTag(h,"img")&&!Ct("img",h).length||(i=h.tagName==="IMG"?h:Ct("img",h)[0],zy(w.container,"input[name=url]",fe(i,"src")),zy(w.container,"input[name=text]",fe(i,"alt")),b.state.text="Update"),h&&N.isTag(h,"a")&&(zy(w.container,"input[name=url]",fe(h,"href")),zy(w.container,"input[name=text]",fe(h,"title")),b.state.text="Update"),w.onSubmit(function(_){Pe(c.url)&&c.url.call(l,_.url,_.text)}),d.push({icon:"link",name:"URL",content:w.container})}return gp(l,d)};function zy(l,c,h){var u=l.querySelector(c);return u?(h&&(u.value=h),u.value):""}function J2(l){if(!l)return!1;var c=N.findSibling(l,!0);return!(!c||!N.isTag(c,"br"))&&c}function eL(l,c){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_b,u=l,i=c.editor;do{if(!u||u===i)break;if(h.test(u.nodeName))return N.isLeaf(u)?u:eL(u.parentNode,c,/^li$/i)||u;u=u.parentNode}while(u&&u!==i);return null}function Q2(l,c,h,u){var i=h.toLowerCase()==="br",s=c.createInside,d=s.element(h),g=s.element("br");return i||d.appendChild(g),N.after(l,d),N.before(i?d:g,l),Gs(d,c.editor,c.ed),d}function eS(l,c,h){return eS=rS()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&vp(g,s.prototype),g},eS.apply(null,arguments)}function pZ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function mp(l){return mp=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},mp(l)}function vp(l,c){return vp=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},vp(l,c)}function tL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function tS(l){var c=typeof Map=="function"?new Map:void 0;return tS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return eS(h,arguments,mp(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),vp(i,h)},tS(l)}function rS(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rS=function(){return!!l})()}Ke.set("brush",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> `),de.prototype.controls.brushCell={isVisible:function(l){return!l.o.disablePlugins.includes("color")},icon:"brush",popup:function(l,c,h){if(_n(l)){var u=l.getInstance("Table",l.o).getAllSelectedCells();if(!u.length)return!1;var i=function(s){return Z2(l,function(d){u.forEach(function(g){be(g,s,d)}),l.lock(),l.synchronizeValues(),h(),l.unlock()},be(u[0],s))};return gp(l,[{name:"Background",content:i("background-color")},{name:"Text",content:i("color")},{name:"Border",content:i("border-color")}])}},tooltip:"Background"},de.prototype.controls.brush={isVisible:function(l){return!l.o.disablePlugins.includes("color")},update:function(l,c){var h=St(c,"color"),u=function(g,b){b&&b!==be(l.editor,g).toString()&&(c.state.icon.fill=b)};if(h){var i=St(c,"color");u(i==="color"?i:"background-color",h)}else{var s=l.s.current();if(s&&!c.state.disabled){var d=N.closest(s,N.isElement,l.editor)||l.editor;u("color",be(d,"color").toString()),u("background-color",be(d,"background-color").toString())}c.state.icon.fill="",c.state.activated=!1}},popup:function(l,c,h,u){var i="",s="",d=[],g=null;return c&&c!==l.editor&&N.isNode(c)&&(N.isElement(c)&&l.s.isCollapsed()&&!N.isTag(c,new Set(["br","hr"]))&&(g=c),N.up(c,function(b){if(N.isHTMLElement(b)){var w=be(b,"color",!0),_=be(b,"background-color",!0);if(w)return i=w.toString(),!0;if(_)return s=_.toString(),!0}},l.editor)),d=[{name:"Background",content:Z2(l,function(b){g?g.style.backgroundColor=b:l.execCommand("background",!1,b),St(u,"color",b),St(u,"color-mode","background"),h()},s)},{name:"Text",content:Z2(l,function(b){g?g.style.color=b:l.execCommand("forecolor",!1,b),St(u,"color",b),St(u,"color-mode","color"),h()},i)}],l.o.colorPickerDefaultTab!=="background"&&(d=d.reverse()),gp(l,d,g)},exec:function(l,c,h){var u=h.button,i=St(u,"color-mode"),s=St(u,"color");if(!i)return!1;if(c&&c!==l.editor&&N.isNode(c)&&N.isElement(c))switch(i){case"color":c.style.color=s;break;case"background":c.style.backgroundColor=s}else l.execCommand(i==="background"?i:"forecolor",!1,s)},tooltip:"Fill color or set the text color"},Ve.add("color",function(l){l.registerButton({name:"brush",group:"color"});var c=function(h,u,i){var s=Pk(i);switch(h){case"background":l.s.commitStyle({attributes:{style:{backgroundColor:s||""}}});break;case"forecolor":l.s.commitStyle({attributes:{style:{color:s||""}}})}return l.synchronizeValues(),!1};l.registerCommand("forecolor",c).registerCommand("background",c)});var rL=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=mp(s=c),function(g,b){return!b||tL(b)!=="object"&&typeof b!="function"?function(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(g):b}(i,rS()?Reflect.construct(s,d||[],mp(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&vp(i,s)}(c,l),h=c,u=[{key:"afterInit",value:function(i){var s=this,d=i.o.enter.toLowerCase(),g=d===kb.toLowerCase();i.o.enterBlock||(i.o.enterBlock=g?jb:d),i.registerCommand("enter",function(b,w){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return s.onEnter(_)})}},{key:"onEnterKeyDown",value:function(i){if(i.key===ic){var s=this.j,d=s.e.fire("beforeEnter",i);return d!==void 0?d:(s.s.isCollapsed()||s.execCommand("Delete"),s.s.focus(),this.onEnter(i),s.e.fire("afterEnter",i),s.synchronizeValues(),!1)}}},{key:"onEnter",value:function(i){var s=this.jodit,d=s.createInside.fake();try{N.safeInsertNode(s.s.range,d),function(w,_){var T=w.s,z=N.closest(_,["a"],w.editor);z&&(T.cursorOnTheRight(z,_)?N.after(z,_):T.cursorOnTheLeft(z,_)&&N.before(z,_))}(s,d);var g=eL(d,s),b=N.isLeaf(g);if((!b||i!=null&&i.shiftKey)&&function(w,_,T){var z=!!N.closest(w,["pre","blockquote"],_.editor),L=!z&&N.closest(w,["td","th"],_.editor);if(_.o.enter.toLowerCase()===kb.toLowerCase()||L||T&&!z||!T&&z){if(z&&function(Y){var X=J2(J2(Y));return!!X&&(N.safeRemove(J2(Y)),N.safeRemove(X),!0)}(w))return!1;var D=_.createInside.element("br");if(N.before(w,D),!N.findNotEmptySibling(D,!1)){var q=D.cloneNode();N.after(D,q),N.before(q,w)}return Gs(D,_.editor,_.ed),!0}return!1}(d,s,i==null?void 0:i.shiftKey))return!1;if(g||function(w,_){return!!N.prev(w,function(T){return N.isBlock(T)||N.isImage(T)},_.editor)}(d,s)||(g=function(w,_){var T=w;N.up(T,function(D){D&&D.hasChildNodes()&&D!==_.editor&&(T=D)},_.editor);var z=N.wrapInline(T,_.o.enter,_);if(N.isEmpty(z)){var L=_.createInside.element("br");z.appendChild(L),N.before(L,w)}return z}(d,s)),!g)return Q2(d,s,b?"li":s.o.enter),!1;if(!function(w,_,T){return!!N.canSplitBlock(T)||(N.before(w,_.createInside.element("br")),!1)}(d,s,g))return!1;if(b&&this.__isEmptyListLeaf(g))return function(w,_,T){var z=N.closest(T,["ol","ul"],_.editor);if(z){var L=z.parentElement,D=N.isLeaf(L),q=D?L:z,Y=_.s.createRange();Y.setStartAfter(T),Y.setEndAfter(z);var X=Y.extractContents();N.after(q,w),N.safeRemove(T),Ct("li",z).length||N.safeRemove(z);var J=Q2(w,_,D?"li":_.o.enter);X.querySelector("li")&&(D?J.appendChild(X):N.after(J,X))}}(d,s,g),!1;(function(w,_,T){var z=_.s,L=_.o.enter.toLowerCase(),D=N.isLeaf(T),q=T.tagName.toLowerCase()===L||D,Y=z.cursorOnTheRight(T,w),X=z.cursorOnTheLeft(T,w);if(!q&&(Y||X))return Y?N.after(T,w):N.before(T,w),Q2(w,_,L),void(X&&!Y&&N.prepend(T,w));Gs(z.splitSelection(T,w),_.editor,_.ed)})(d,s,g)}finally{d.isConnected&&s.s.setCursorBefore(d),N.safeRemove(d)}}},{key:"__isEmptyListLeaf",value:function(i){var s=this.j.e.fire("enterIsEmptyListLeaf",i);return Wa(s)?s:N.isEmpty(i)}},{key:"beforeDestruct",value:function(i){i.e.off("keydown.enter")}}],u&&pZ(h.prototype,u),c}(tS(ut));function nL(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function gZ(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function nS(l,c,h){return nS=iS()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&yp(g,s.prototype),g},nS.apply(null,arguments)}function mZ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function bp(l){return bp=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},bp(l)}function yp(l,c){return yp=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},yp(l,c)}function oS(l){var c=typeof Map=="function"?new Map:void 0;return oS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return nS(h,arguments,bp(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),yp(i,h)},oS(l)}function iS(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iS=function(){return!!l})()}(function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":tL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);s>3&&d&&Object.defineProperty(c,h,d)})([_e(":keydown.enter")],rL.prototype,"onEnterKeyDown",null),Ve.add("enter",rL),de.prototype.defaultFontSizePoints="px",Ke.set("font",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg> `).set("fontsize",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> `),de.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalise:function(l,c){return/pt$/i.test(l)&&c.o.defaultFontSizePoints==="pt"?l.replace(/pt$/i,""):l}},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:function(l,c){return c+l.o.defaultFontSizePoints},childTemplate:function(l,c,h){return"".concat(h).concat(l.o.defaultFontSizePoints)},tooltip:"Font size",value:function(l,c){var h,u=l.s.current();if(u){var i=N.closest(u,N.isElement,l.editor);if(i)return be(i,((h=c.control.data)===null||h===void 0?void 0:h.cssRule)||"font-size").toString()}},isChildActive:function(l,c){var h,u,i=c.state.value,s=(u=(h=c.control.data)===null||h===void 0?void 0:h.normalize)!==null&&u!==void 0?u:function(d){return d};return!!(i&&c.control.args&&s(c.control.args[0].toString())===s(i.toString()))},isActive:function(l,c){var h,u,i=c.state.value;if(!i)return!1;var s=(u=(h=c.control.data)===null||h===void 0?void 0:h.normalize)!==null&&u!==void 0?u:function(b){return b},d=c.control.data.cacheListSet;if(!d){var g=Object.keys(c.control.list).map(s);d=new Set(g),c.control.data.cacheListSet=d}return d.has(s(i.toString()))}},de.prototype.controls.font=function(l,c){return c=c??{},Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):function(h){var u=Object.keys(h);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(h);u.push.apply(u,i)}return u}(Object(c)).forEach(function(h){Object.defineProperty(l,h,Object.getOwnPropertyDescriptor(c,h))}),l}(function(l){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{},u=Object.keys(h);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(h).filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable}))),u.forEach(function(i){gZ(l,i,h[i])})}return l}({},de.prototype.controls.fontsize),{command:"fontname",textTemplate:function(l,c){return oP(function(h,u){return function(i){if(Array.isArray(i))return i}(h)||function(i,s){var d=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(d!=null){var g,b,w=[],_=!0,T=!1;try{for(d=d.call(i);!(_=(g=d.next()).done)&&(w.push(g.value),!s||w.length!==s);_=!0);}catch(z){T=!0,b=z}finally{try{_||d.return==null||d.return()}finally{if(T)throw b}}return w}}(h,u)||function(i,s){if(i){if(typeof i=="string")return nL(i,s);var d=Object.prototype.toString.call(i).slice(8,-1);return d==="Object"&&i.constructor&&(d=i.constructor.name),d==="Map"||d==="Set"?Array.from(d):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?nL(i,s):void 0}}(h,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(c.split(","),1)[0],`"'`)},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate:function(l,c,h){var u=!1;try{u=c.indexOf("dings")===-1&&document.fonts.check("16px ".concat(c),h)}catch{}return'<span data-style="'.concat(c,'" style="').concat(u?"font-family: ".concat(c,"!important;"):"",'">').concat(h,"</span>")},data:{cssRule:"font-family",normalize:function(l){return l.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")}},tooltip:"Font family"}),Ve.add("font",function(l){l.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});var c=function(h,u,i){switch(h){case"fontsize":l.s.commitStyle({attributes:{style:{fontSize:zP(i,l.o.defaultFontSizePoints)}}});break;case"fontname":l.s.commitStyle({attributes:{style:{fontFamily:i}}})}return l.synchronizeValues(),!1};l.registerCommand("fontsize",c).registerCommand("fontname",c)}),Ke.set("paragraph",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg> `),de.prototype.controls.paragraph={command:"formatBlock",value:function(l,c){var h,u,i=c.control,s=l.s.current(),d=N.closest(s,N.isBlock,l.editor);return(h=d==null?void 0:d.nodeName.toLowerCase())!==null&&h!==void 0?h:(u=i.data)===null||u===void 0?void 0:u.currentValue},update:function(l,c){var h=c.control;if(!l.s.current())return!1;var u=c.state.value,i=h.list;return tr(i)&&i[u.toString()]&&l.o.textIcons&&(c.state.text=i[u.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:function(l,c){var h,u;return c.state.value===((u=(h=c.control)===null||h===void 0?void 0:h.args)===null||u===void 0?void 0:u[0])},isActive:function(l,c){return c.state.value!==l.o.enter&&tr(c.control.list)&&!!c.control.list[c.state.value]},childTemplate:function(l,c,h){return"<".concat(c,' style="margin:0;padding:0"><span>').concat(l.i18n(h),"</span></").concat(c,">")},tooltip:"Insert format block"},Ve.add("formatBlock",function(l){l.registerButton({name:"paragraph",group:"font"}),l.registerCommand("formatblock",function(c,h,u){return l.s.commitStyle({element:u}),l.synchronizeValues(),!1})}),de.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8, cmd+shift+8"],selectall:["ctrl+a","cmd+a"]};var vZ=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=bp(d),function(b,w){return!w||((_=w)&&typeof Symbol<"u"&&_.constructor===Symbol?"symbol":typeof _)!="object"&&typeof w!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(b):w;var _}(s,iS()?Reflect.construct(d,g||[],bp(s).constructor):d.apply(s,g))}(this,c,arguments)).onKeyPress=function(s){var d=i.specialKeys[s.which],g=(s.key||String.fromCharCode(s.which)).toLowerCase(),b=[d||g];return["alt","ctrl","shift","meta"].forEach(function(w){s[w+"Key"]&&d!==w&&b.push(w)}),zk(b.join("+"))},i.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",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:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&yp(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(i){var s=this;Ga(i.o.commandToHotkeys,!1).forEach(function(g){var b=i.o.commandToHotkeys[g];b&&(Nt(b)||Se(b))&&i.registerHotkeyToCommand(b,g)});var d=!1;i.e.off(".hotkeys").on([i.ow,i.ew],"keydown.hotkeys",function(g){if(g.key===Nu)return s.j.e.fire("escape",g)}).on("keydown.hotkeys",function(g){var b=s.onKeyPress(g),w={shouldStop:!0};if(s.j.e.fire(b+".hotkey",g.type,w)===!1){if(w.shouldStop)return d=!0,i.e.stopPropagation("keydown"),!1;g.preventDefault()}},{top:!0}).on("keyup.hotkeys",function(){if(d)return d=!1,i.e.stopPropagation("keyup"),!1},{top:!0})}},{key:"beforeDestruct",value:function(i){i.events&&i.e.off(".hotkeys")}}])&&mZ(h.prototype,u),c}(oS(ut));function oL(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}Ve.add("hotkeys",vZ),de.prototype.iframeBaseUrl="",de.prototype.iframeTitle="Jodit Editor",de.prototype.iframeDoctype="<!DOCTYPE html>",de.prototype.iframeDefaultSrc="about:blank",de.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',de.prototype.iframeCSSLinks=[],de.prototype.iframeSandbox=null,Ve.add("iframe",function(l){var c=l.options;l.e.on("afterSetMode",function(){l.isEditorMode()&&l.s.focus()}).on("generateDocumentStructure.iframe",function(h,u){var i=h||u.iframe.contentWindow.document;if(i.open(),i.write(c.iframeDoctype+'<html dir="'.concat(c.direction,'" class="jodit" lang="').concat(Vh(c.language),'">')+"<head>"+"<title>".concat(c.iframeTitle,"</title>")+(c.iframeBaseUrl?'<base href="'.concat(c.iframeBaseUrl,'"/>'):"")+'</head><body class="jodit-wysiwyg"></body></html>'),i.close(),c.iframeCSSLinks&&c.iframeCSSLinks.forEach(function(d){var g=i.createElement("link");g.setAttribute("rel","stylesheet"),g.setAttribute("href",d),i.head&&i.head.appendChild(g)}),c.iframeStyle){var s=i.createElement("style");s.innerHTML=c.iframeStyle,i.head&&i.head.appendChild(s)}}).on("createEditor",function(){if(c.iframe){var h=l.c.element("iframe");return h.style.display="block",h.src="about:blank",h.className="jodit-wysiwyg_iframe",h.setAttribute("allowtransparency","true"),h.setAttribute("tabindex",c.tabIndex.toString()),h.setAttribute("frameborder","0"),c.iframeSandbox!=null&&h.setAttribute("sandbox",c.iframeSandbox),l.workplace.appendChild(h),l.iframe=h,Xa(l.e.fire("generateDocumentStructure.iframe",null,l),function(){if(!l.iframe)return!1;var u=l.iframe.contentWindow.document;l.editorWindow=l.iframe.contentWindow;var i=c.editHTMLDocumentMode,s=function(){fe(u.body,"contenteditable",l.getMode()!==Nn&&!l.getReadOnly()||null)},d=function(_){var T=/<body.*<\/body>/im,z="{%%BODY%%}",L=T.exec(_);return L&&(_=_.replace(T,z).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(z,L[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),_};if(i){var g=l.element.tagName;if(g!=="TEXTAREA"&&g!=="INPUT")throw ht("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");l.e.on("beforeGetNativeEditorValue",function(){return d(l.o.iframeDoctype+u.documentElement.outerHTML)}).on("beforeSetNativeEditorValue",function(_){var T=_.value;if(l.isLocked)return!1;if(/<(html|body)/i.test(T)){var z=u.documentElement.outerHTML;d(z)!==d(T)&&(u.open(),u.write(l.o.iframeDoctype+d(T)),u.close(),l.editor=u.body,l.e.fire("safeHTML",l.editor),s(),l.e.fire("prepareWYSIWYGEditor"),l.e.stopPropagation("beforeSetNativeEditorValue"))}else u.body.innerHTML=T;return!0},{top:!0})}if(l.editor=u.body,l.e.on("afterSetMode afterInit afterAddPlace",s),c.height==="auto"){u.documentElement&&(u.documentElement.style.overflowY="hidden");var b=l.async.throttle(function(){for(var _=arguments.length,T=new Array(_),z=0;z<_;z++)T[z]=arguments[z];l.async.requestAnimationFrame(function(){if(l.editor&&l.iframe&&c.height==="auto"){var L=l.ew.getComputedStyle(l.editor),D=parseInt(L.marginTop||"0",10)+parseInt(L.marginBottom||"0",10);be(l.iframe,"height",l.editor.offsetHeight+D)}})},l.defaultTimeout/2);if(l.e.on("change afterInit afterSetMode resize",b).on([l.iframe,l.ew,u.documentElement],"load",b).on(u,"readystatechange DOMContentLoaded",b),typeof ResizeObserver=="function"){var w=new ResizeObserver(b);w.observe(u.body),l.e.on("beforeDestruct",function(){w.disconnect()})}}return u.documentElement&&l.e.on(u.documentElement,"mousedown touchend",function(){l.s.isFocused()||(l.s.focus(),l.editor===u.body&&l.s.setCursorIn(u.body))}).on(l.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",function(_){var T;(T=l.events)===null||T===void 0||T.fire(l.ow,_)}),!1})}})}),Ke.set("image",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg> `),de.prototype.controls.image={popup:function(l,c,h){var u=null;return c&&!N.isText(c)&&N.isHTMLElement(c)&&(N.isTag(c,"img")||Ct("img",c).length)&&(u=N.isTag(c,"img")?c:Ct("img",c)[0]),l.s.save(),K2(l,{filebrowser:function(i){l.s.restore(),i.files&&i.files.forEach(function(s){return l.s.insertImage(i.baseurl+s,null,l.o.imageDefaultWidth)}),h()},upload:!0,url:function(){var i,s=(i=function(d,g){var b;return function(w,_){var T,z,L,D,q={label:0,sent:function(){if(1&L[0])throw L[1];return L[1]},trys:[],ops:[]};return D={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function Y(X){return function(J){return function($){if(T)throw new TypeError("Generator is already executing.");for(;q;)try{if(T=1,z&&(L=2&$[0]?z.return:$[0]?z.throw||((L=z.return)&&L.call(z),0):z.next)&&!(L=L.call(z,$[1])).done)return L;switch(z=0,L&&($=[2&$[0],L.value]),$[0]){case 0:case 1:L=$;break;case 4:return q.label++,{value:$[1],done:!1};case 5:q.label++,z=$[1],$=[0];continue;case 7:$=q.ops.pop(),q.trys.pop();continue;default:if(!((L=(L=q.trys).length>0&&L[L.length-1])||$[0]!==6&&$[0]!==2)){q=0;continue}if($[0]===3&&(!L||$[1]>L[0]&&$[1]<L[3])){q.label=$[1];break}if($[0]===6&&q.label<L[1]){q.label=L[1],L=$;break}if(L&&q.label<L[2]){q.label=L[2],q.ops.push($);break}L[2]&&q.ops.pop(),q.trys.pop();continue}$=_.call(w,q)}catch(ee){$=[6,ee],z=0}finally{T=L=0}if(5&$[0])throw $[1];return{value:$[0]?$[1]:void 0,done:!0}}([X,J])}}}(this,function(w){switch(w.label){case 0:return l.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(d)&&(d="//"+d),(b=u||l.createInside.element("img")).setAttribute("src",d),b.setAttribute("alt",g),u?[3,2]:[4,l.s.insertImage(b,null,l.o.imageDefaultWidth)];case 1:w.sent(),w.label=2;case 2:return h(),[2]}})},function(){var d=this,g=arguments;return new Promise(function(b,w){var _=i.apply(d,g);function T(L){oL(_,b,w,T,z,"next",L)}function z(L){oL(_,b,w,T,z,"throw",L)}T(void 0)})});return function(d,g){return s.apply(this,arguments)}}()},u,h)},tags:["img"],tooltip:"Insert Image"},Ve.add("image",function(l){l.registerButton({name:"image",group:"media"})});const bZ=[{name:"eye",tooltip:"Open link",exec:function(l,c){var h=fe(c,"href");c&&h&&l.ow.open(h)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"];var My=function(l){return l.args&&Se(l.args[0])?l.args[0].toLowerCase():""};const yZ=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:function(l,c,h){return h},exec:function(l,c,h){var u=h.control,i=My(u);l.getInstance("Table",l.o).getAllSelectedCells().forEach(function(s){be(s,"vertical-align",i==="normal"?"":i)})},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},`
`,{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec:function(l,c,h){var u=h.control;if(_n(l)){if(!u.args)return!1;var i=My(u);l.execCommand(i,!1,c)}},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec:function(l,c,h){var u=h.control;if(_n(l)){if(!u.args)return!1;var i=My(u);l.execCommand(i,!1,c)}},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec:function(l,c,h){var u=h.control;if(_n(l)){if(!u.args)return!1;var i=My(u);l.execCommand(i,!1,c),l.e.fire("hidePopup")}},tooltip:"Delete"}];var iL={name:"left",childTemplate:function(l,c,h){return h},list:["Left","Right","Center","Normal"],exec:function(l,c,h){var u=h.control;if(N.isTag(c,new Set(["img","jodit","jodit-media"]))){var i=u.args&&Se(u.args[0])?u.args[0].toLowerCase():"";if(!i)return!1;Tb(c,i),N.isTag(c,new Set(["jodit","jodit-media"]))&&c.firstElementChild&&Tb(c.firstElementChild,i),l.synchronizeValues(),l.e.fire("recalcPositionPopup")}},tooltip:"Horizontal align"};const xZ=[{name:"delete",icon:"bin",tooltip:"Delete",exec:function(l,c){c&&l.s.removeNode(c)}},{name:"pencil",exec:function(l,c){c.tagName.toLowerCase()==="img"&&l.e.fire("openImageProperties",c)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec:function(l,c,h){var u=h.control;if(N.isTag(c,"img")){var i=u.args&&Se(u.args[0])?u.args[0].toLowerCase():"";if(!i)return!1;be(c,"vertical-align",i==="normal"?"":i),l.e.fire("recalcPositionPopup")}}},iL],aS=[{name:"bin",tooltip:"Delete",exec:function(l,c){c&&l.s.removeNode(c)}},iL];function sS(l,c,h){return sS=cS()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&wp(g,s.prototype),g},sS.apply(null,arguments)}function wZ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function xp(l){return xp=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},xp(l)}function wp(l,c){return wp=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},wp(l,c)}function aL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function lS(l){var c=typeof Map=="function"?new Map:void 0;return lS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return sS(h,arguments,xp(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),wp(i,h)},lS(l)}function cS(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cS=function(){return!!l})()}de.prototype.toolbarInline=!0,de.prototype.toolbarInlineForSelection=!1,de.prototype.toolbarInlineDisableFor=[],de.prototype.toolbarInlineDisabledButtons=["source"],Ke.set("addcolumn",'<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg> ').set("addrow",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg> `).set("merge",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg> `).set("th",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg> `).set("splitg",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> `).set("splitv",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> `).set("th-list",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg> `),de.prototype.popup={a:bZ,img:xZ,cells:yZ,toolbar:["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table",`
`,"link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"],jodit:aS,iframe:aS,"jodit-media":aS,selection:["bold","underline","italic","ul","ol",`
`,"outdent","indent","fontsize","brush","cut",`
`,"paragraph","link","align","dots"]};var ma=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":aL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},li=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=xp(d),function(b,w){return!w||aL(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,cS()?Reflect.construct(d,g||[],xp(s).constructor):d.apply(s,g))}(this,c,arguments)).type=null,i.snapRange=null,i.elmsList=Ga(i.j.o.popup,!1).filter(function(s){return!i.isExcludedTarget(s)}),i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&wp(i,s)}(c,l),h=c,u=[{key:"popup",get:function(){return new Li(this.jodit,!1)}},{key:"toolbar",get:function(){return fy(this.jodit,this.popup)}},{key:"onClick",value:function(i){var s=this,d=this.elmsList,g=N.isTag(i,"img")?i:N.closest(i,d,this.j.editor);if(g&&this.canShowPopupForType(g.nodeName.toLowerCase()))return this.showPopup(function(){return Bn(g,s.j)},g.nodeName.toLowerCase(),g),!1}},{key:"showPopup",value:function(i,s,d){if(s=s.toLowerCase(),!this.canShowPopupForType(s))return!1;if(this.type!==s||d!==this.previousTarget){this.previousTarget=d;var g,b=this.j.o.popup[s];Nt(g=Pe(b)?b(this.j,d,this.popup.close):b)&&(this.toolbar.build(g,d),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,g=this.toolbar.container),this.popup.setContent(g),this.type=s}return this.popup.open(i),!0}},{key:"hidePopup",value:function(i){!this.popup.isOpened||Se(i)&&i!==this.type||this.popup.close()}},{key:"onOutsideClick",value:function(){this.popup.close()}},{key:"canShowPopupForType",value:function(i){var s=this.j.o.popup[i.toLowerCase()];return!(this.j.o.readonly||!this.j.o.toolbarInline||!s||this.isExcludedTarget(i))}},{key:"isExcludedTarget",value:function(i){return Dn(this.j.o.toolbarInlineDisableFor).map(function(s){return s.toLowerCase()}).includes(i.toLowerCase())}},{key:"afterInit",value:function(i){var s=this;this.j.e.on("getDiffButtons.mobile",function(d){if(s.toolbar===d){var g=s.toolbar.getButtonsNames();return mr(i.registeredButtons).filter(function(b){return!s.j.o.toolbarInlineDisabledButtons.includes(b.name)}).filter(function(b){var w=Se(b)?b:b.name;return w&&w!=="|"&&w!==`
`&&!g.includes(w)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",function(d,g,b){s.showPopup(g,b||(Se(d)?d:d.nodeName),Se(d)?void 0:d)}).on("mousedown keydown",this.onSelectionStart).on("change",function(){s.popup.isOpened&&s.previousTarget&&!s.previousTarget.parentNode&&(s.hidePopup(),s.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.addListenersForElements()}},{key:"onSelectionStart",value:function(){this.snapRange=this.j.s.range.cloneRange()}},{key:"onSelectionEnd",value:function(i){if(!(i&&i.target&&Vr.closestElement(i.target,Li))){var s=this.snapRange,d=this.j.s.range;s&&!d.collapsed&&d.startContainer===s.startContainer&&d.startOffset===s.startOffset&&d.endContainer===s.endContainer&&d.endOffset===s.endOffset||this.onSelectionChange()}}},{key:"onSelectionChange",value:function(){if(this.j.o.toolbarInlineForSelection){var i="selection",s=this.j.s.sel,d=this.j.s.range;s!=null&&s.isCollapsed||this.isSelectedTarget(d)?this.type===i&&this.popup.isOpened&&this.hidePopup():this.j.s.current()&&this.showPopup(function(){return d.getBoundingClientRect()},i)}}},{key:"isSelectedTarget",value:function(i){var s=i.startContainer;return N.isElement(s)&&s===i.endContainer&&N.isTag(s.childNodes[i.startOffset],new Set(Ga(this.j.o.popup,!1)))&&i.startOffset===i.endOffset-1}},{key:"beforeDestruct",value:function(i){i.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}},{key:"_eventsList",value:function(){var i=this.elmsList;return i.map(function(s){return jn("click_".concat(s))}).concat(i.map(function(s){return jn("touchstart_".concat(s))})).join(" ")}},{key:"addListenersForElements",value:function(){this.j.e.on(this._eventsList(),this.onClick)}},{key:"removeListenersForElements",value:function(){this.j.e.off(this._eventsList(),this.onClick)}},{key:"showInlineToolbar",value:function(i){var s=this;this.showPopup(function(){return i||s.j.s.range.getBoundingClientRect()},"toolbar")}}],u&&wZ(h.prototype,u),c}(lS(ut));function uS(l,c,h){return uS=fS()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&kp(g,s.prototype),g},uS.apply(null,arguments)}function _Z(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function _p(l){return _p=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},_p(l)}function kp(l,c){return kp=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},kp(l,c)}function sL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function dS(l){var c=typeof Map=="function"?new Map:void 0;return dS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return uS(h,arguments,_p(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),kp(i,h)},dS(l)}function fS(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fS=function(){return!!l})()}li.requires=["select"],ma([vr],li.prototype,"popup",null),ma([vr],li.prototype,"toolbar",null),ma([Ce],li.prototype,"onClick",null),ma([QP(function(l){return!l.j.isLocked})],li.prototype,"showPopup",null),ma([_e([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),Ce],li.prototype,"hidePopup",null),ma([_e(":outsideClick")],li.prototype,"onOutsideClick",null),ma([Ce],li.prototype,"onSelectionStart",null),ma([Ce],li.prototype,"onSelectionEnd",null),ma([Ii(function(l){return l.defaultTimeout})],li.prototype,"onSelectionChange",null),ma([Ce],li.prototype,"showInlineToolbar",null),Ve.add("inlinePopup",li),de.prototype.link={formTemplate:function(l){var c=l.o.link,h=c.openInNewTabCheckbox,u=c.noFollowCheckbox,i=c.modeClassName,s=c.selectSizeClassName,d=c.selectMultipleClassName,g=c.selectOptionsClassName;return new Zs(l,[new ho(l,[new br(l,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new ho(l,[new br(l,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),i?new ho(l,[i==="input"?new br(l,{name:"className",ref:"className_input",label:"Class name"}):i==="select"?new id(l,{name:"className",ref:"className_select",label:"Class name",size:s,multiple:d,options:g}):null]):null,h?new Ka(l,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,u?new Ka(l,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new ho(l,[new Bt(l,{name:"unlink",variant:"default",text:"Unlink"}),new Bt(l,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])},followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},Ke.set("link",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg> `).set("unlink",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg> `),de.prototype.controls.unlink={exec:function(l,c){var h=N.closest(c,"a",l.editor);h&&N.unwrap(h),l.synchronizeValues(),l.e.fire("hidePopup")},tooltip:"Unlink"},de.prototype.controls.link={isActive:function(l){var c=l.s.current();return!!(c&&N.closest(c,"a",l.editor))},popup:function(l,c,h){return l.e.fire("generateLinkForm.link",c,h)},tags:["a"],tooltip:"Insert link"};var Iy=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":sL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},jp=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=_p(d),function(b,w){return!w||sL(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,fS()?Reflect.construct(d,g||[],_p(s).constructor):d.apply(s,g))}(this,c,arguments)).buttons=[{name:"link",group:"insert"}],i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&kp(i,s)}(c,l),h=c,u=[{key:"afterInit",value:function(i){var s=this;i.o.link.followOnDblClick&&i.e.on("dblclick.link",this.__onDblClickOnLink),i.e.on(i.editor,"click.link",this.__onClickReadOnlyLink),i.o.link.processPastedLink&&i.e.on("processPaste.link",this.onProcessPasteLink),i.e.on("generateLinkForm.link",this.__generateForm),i.registerCommand("openLinkDialog",{exec:function(){var d=i.dlg({resizable:!1}),g=s.__generateForm(i.s.current(),function(){d.close()});g.container.classList.add("jodit-dialog_alert"),d.setContent(g),d.open(),i.async.requestIdleCallback(function(){var b=ii(g.container).url_input;b==null||b.focus()})},hotkeys:i.o.link.hotkeys})}},{key:"__onDblClickOnLink",value:function(i){if(N.isTag(i.target,"a")){var s=fe(i.target,"href");s&&(location.href=s,i.preventDefault())}}},{key:"onProcessPasteLink",value:function(i,s){var d,g,b,w,_=this.jodit;if(Ob(s)&&_.o.link.processPastedLink){if(_.e.stopPropagation("processPaste"),_.o.link.processVideoLink){var T=Mr((g=(d=_.o.video)===null||d===void 0?void 0:d.parseUrlToVideoEmbed)!==null&&g!==void 0?g:zb,s,{width:(b=_.o.video)===null||b===void 0?void 0:b.defaultWidth,height:(w=_.o.video)===null||w===void 0?void 0:w.defaultHeight});if(T!==s)return _.createInside.fromHTML(T)}if(_.s.isCollapsed()){var z=_.createInside.element("a");return z.setAttribute("href",s),z.textContent=s,_.e.fire("applyLink",_,z,null),z}return _.s.commitStyle({element:"a",attributes:{href:s}}),!0}}},{key:"__generateForm",value:function(i,s){var d,g=this.jodit,b=g.i18n.bind(g),w=g.o.link,_=w.openInNewTabCheckbox,T=w.noFollowCheckbox,z=w.formTemplate,L=w.formClassName,D=w.modeClassName,q=z(g),Y=Se(q)?g.c.fromHTML(q,{target_checkbox_box:_,nofollow_checkbox_box:T}):q,X=N.isElement(Y)?Y:Y.container,J=ii(X),$=J.insert,ee=J.unlink,ce=J.content_input_box,ge=J.target_checkbox,ye=J.nofollow_checkbox,Me=J.url_input,Ie=i,st=N.isImage(Ie),Ft=J.content_input,it=J.className_input,Qe=J.className_select;Ft||(Ft=g.c.element("input",{type:"hidden",ref:"content_input"})),L&&X.classList.add(L),st&&N.hide(ce);var Or=function(){return d?d.innerText:qu(g.s.range.cloneContents(),g.ed)};d=!(!i||!N.closest(i,"a",g.editor))&&N.closest(i,"a",g.editor),!st&&i&&(Ft.value=Or()),d?(Me.value=fe(d,"href")||"",D&&function(It,qn,ss,ba){switch(It){case"input":qn&&(qn.value=fe(ss,"class")||"");break;case"select":if(ba){for(var ls=0;ls<ba.selectedOptions.length;ls++){var zo=ba.options.item(ls);zo&&(zo.selected=!1)}(fe(ss,"class")||"").split(" ").forEach(function(Jn){if(Jn)for(var Yn=0;Yn<ba.options.length;Yn++){var ui=ba.options.item(Yn);ui!=null&&ui.value&&ui.value===Jn&&(ui.selected=!0)}})}}}(D,it,d,Qe),_&&ge&&(ge.checked=fe(d,"target")==="_blank"),T&&ye&&(ye.checked=fe(d,"rel")==="nofollow"),$.textContent=b("Update")):N.hide(ee),g.editor.normalize();var rn=g.history.snapshot.make();ee&&g.e.on(ee,"click",function(It){g.s.restore(),g.history.snapshot.restore(rn),d&&N.unwrap(d),g.synchronizeValues(),s(),It.preventDefault()});var Cn=function(){if(!Me.value.trim().length)return Me.focus(),Me.classList.add("jodit_error"),!1;var It;g.s.restore(),g.s.removeMarkers(),g.editor.normalize(),g.history.snapshot.restore(rn);var qn=Or()!==Ft.value.trim(),ss=g.createInside;if(d&&N.isOrContains(g.editor,d))It=[d];else{if(g.s.isCollapsed()){var ba=ss.element("a");g.s.insertNode(ba,!1,!1),It=[ba]}else{var ls=g.s.current();It=N.isTag(ls,"img")?[N.wrap(ls,"a",ss)]:g.s.wrapInTag("a")}It.forEach(function(zo){return g.s.select(zo)})}return It.forEach(function(zo){fe(zo,"href",Me.value),function(Jn,Yn,ui,Vi){var ol;if(Jn&&(Yn??ui)){if(Jn==="input")Yn.value===""&&Vi.hasAttribute("class")&&fe(Vi,"class",null),Yn.value!==""&&fe(Vi,"class",Yn.value);else if(Jn==="select"){Vi.hasAttribute("class")&&fe(Vi,"class",null);for(var DA=0;DA<ui.selectedOptions.length;DA++){var JN=(ol=ui.selectedOptions.item(DA))===null||ol===void 0?void 0:ol.value;JN&&Vi.classList.add(JN)}}}}(D,it,Qe,zo),st||function(Jn,Yn,ui,Vi){var ol=Jn.textContent;Yn.value.trim().length?ui&&(ol=Yn.value):ol=Vi.value,ol!==Jn.textContent&&(Jn.textContent=ol)}(zo,Ft,qn,Me),_&&ge&&fe(zo,"target",ge.checked?"_blank":null),T&&ye&&fe(zo,"rel",ye.checked?"nofollow":null),g.e.fire("applyLink",g,zo,Y)}),g.synchronizeValues(),s(),!1};return N.isElement(Y)?g.e.on(Y,"submit",function(It){return It.preventDefault(),It.stopImmediatePropagation(),Cn(),!1}):Y.onSubmit(Cn),Y}},{key:"beforeDestruct",value:function(i){i.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(i.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}},{key:"__onClickReadOnlyLink",value:function(i){var s=this.jodit;s.o.readonly&&s.o.link.preventReadOnlyNavigation&&N.isTag(i.target,"a")&&i.preventDefault()}}],u&&_Z(h.prototype,u),c}(dS(ut));Iy([Ce],jp.prototype,"__onDblClickOnLink",null),Iy([Ce],jp.prototype,"onProcessPasteLink",null),Iy([Ce],jp.prototype,"__generateForm",null),Iy([Ce],jp.prototype,"__onClickReadOnlyLink",null),Ve.add("link",jp);var lL=function(l,c,h){var u,i=h.control,s="button".concat(i.command),d=(u=i.args&&i.args[0])!==null&&u!==void 0?u:St(l,s);St(l,s,d),l.execCommand(i.command,!1,d==="default"?null:d)};function hS(l,c,h){return hS=gS()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Cp(g,s.prototype),g},hS.apply(null,arguments)}function kZ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Sp(l){return Sp=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Sp(l)}function Cp(l,c){return Cp=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Cp(l,c)}function cL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function pS(l){var c=typeof Map=="function"?new Map:void 0;return pS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return hS(h,arguments,Sp(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Cp(i,h)},pS(l)}function gS(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gS=function(){return!!l})()}Ke.set("ol",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> `).set("ul",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> `),de.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:lL},de.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:lL};var uL=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Sp(d),function(b,w){return!w||cL(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,gS()?Reflect.construct(d,g||[],Sp(s).constructor):d.apply(s,g))}(this,c,arguments)).buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}],i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Cp(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(i){i.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}},{key:"onCommand",value:function(i,s,d){return this.jodit.s.commitStyle({element:i==="insertunorderedlist"?"ul":"ol",attributes:{style:{listStyleType:d??null}}}),this.jodit.synchronizeValues(),!1}},{key:"beforeDestruct",value:function(i){}}])&&kZ(h.prototype,u),c}(pS(ut));function mS(l,c,h){return mS=bS()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Op(g,s.prototype),g},mS.apply(null,arguments)}function jZ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Ap(l){return Ap=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Ap(l)}function Op(l,c){return Op=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Op(l,c)}function dL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function vS(l){var c=typeof Map=="function"?new Map:void 0;return vS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return mS(h,arguments,Ap(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Op(i,h)},vS(l)}function bS(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bS=function(){return!!l})()}(function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":cL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);s>3&&d&&Object.defineProperty(c,h,d)})([Ce],uL.prototype,"onCommand",null),Ve.add("orderedList",uL),de.prototype.showPlaceholder=!0,de.prototype.placeholder="Type something",de.prototype.useInputsPlaceholder=!0;var fL=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Ap(d),function(b,w){return!w||dL(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,bS()?Reflect.construct(d,g||[],Ap(s).constructor):d.apply(s,g))}(this,c,arguments)).addNativeListeners=function(){i.j.e.off(i.j.editor,"input.placeholder keydown.placeholder").on(i.j.editor,"input.placeholder keydown.placeholder",i.toggle)},i.addEvents=function(){var s=i.j;s.o.useInputsPlaceholder&&s.element.hasAttribute("placeholder")&&(i.placeholderElm.innerHTML=fe(s.element,"placeholder")||""),s.e.fire("placeholder",i.placeholderElm.innerHTML),s.e.off(".placeholder").on("changePlace.placeholder",i.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",i.toggle).on(window,"load",i.toggle),i.addNativeListeners(),i.toggle()},i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Op(i,s)}(c,l),h=c,u=[{key:"afterInit",value:function(i){var s=this;i.o.showPlaceholder&&(this.placeholderElm=i.c.fromHTML('<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">'.concat(i.i18n(i.o.placeholder),"</span>")),i.o.direction==="rtl"&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),i.e.on("readonly",function(d){d?s.hide():s.toggle()}).on("changePlace",this.addEvents),this.addEvents())}},{key:"show",value:function(){var i=this.j;if(!i.o.readonly){var s=0,d=0,g=i.s.current(),b=g&&N.closest(g,N.isBlock,i.editor)||i.editor,w=i.ew.getComputedStyle(b),_=i.ew.getComputedStyle(i.editor);i.workplace.appendChild(this.placeholderElm);var T=i.editor.firstChild;if(N.isElement(T)&&!ni(T)){var z=i.ew.getComputedStyle(T);s=parseInt(z.getPropertyValue("margin-top"),10),d=parseInt(z.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(z.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=z.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(w.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=w.getPropertyValue("line-height");be(this.placeholderElm,{display:"block",textAlign:w.getPropertyValue("text-align"),paddingTop:parseInt(_.paddingTop,10)+"px",paddingLeft:parseInt(_.paddingLeft,10)+"px",paddingRight:parseInt(_.paddingRight,10)+"px",marginTop:Math.max(parseInt(w.getPropertyValue("margin-top"),10),s),marginLeft:Math.max(parseInt(w.getPropertyValue("margin-left"),10),d)})}}},{key:"hide",value:function(){N.safeRemove(this.placeholderElm)}},{key:"toggle",value:function(){var i=this.j;i.editor&&!i.isInDestruct&&(i.getRealMode()===gr&&function(s){var d;if(!s.firstChild)return!0;var g=s.firstChild;if(zi.has((d=g.nodeName)===null||d===void 0?void 0:d.toLowerCase())||/^(TABLE)$/i.test(g.nodeName))return!1;var b=N.next(g,function(w){return w&&!N.isEmptyTextNode(w)},s);return N.isText(g)&&!b?N.isEmptyTextNode(g):!b&&N.each(g,function(w){return!(N.isLeaf(w)||N.isList(w))&&(N.isEmpty(w)||N.isTag(w,"br"))})}(i.editor)?this.show():this.hide())}},{key:"beforeDestruct",value:function(i){this.hide(),i.e.off(".placeholder").off(window,"load",this.toggle)}}],u&&jZ(h.prototype,u),c}(vS(ut));function yS(l,c,h){return yS=wS()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Tp(g,s.prototype),g},yS.apply(null,arguments)}function SZ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Ep(l){return Ep=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Ep(l)}function Tp(l,c){return Tp=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Tp(l,c)}function xS(l){var c=typeof Map=="function"?new Map:void 0;return xS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return yS(h,arguments,Ep(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Tp(i,h)},xS(l)}function wS(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wS=function(){return!!l})()}(function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":dL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);s>3&&d&&Object.defineProperty(c,h,d)})([Ii(function(l){return l.defaultTimeout/10},!0)],fL.prototype,"toggle",null),Ve.add("placeholder",fL),Ve.add("poweredByJodit",function(l){var c=l.o;c.hidePoweredByJodit||c.inline||!(c.showCharsCounter||c.showWordsCounter||c.showXPathInStatusbar)||l.hookStatus("ready",function(){l.statusbar.append(l.create.fromHTML(`<a
						tabindex="-1"
						style="text-transform: uppercase"
						class="jodit-status-bar-link"
						target="_blank"
						href="https://xdsoft.net/jodit/">
							Powered by Jodit
						</a>`),!0)})}),Ke.set("redo",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg> `).set("undo",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg> `),de.prototype.controls.redo={mode:ca,isDisabled:function(l){return!l.history.canRedo()},tooltip:"Redo"},de.prototype.controls.undo={mode:ca,isDisabled:function(l){return!l.history.canUndo()},tooltip:"Undo"};var CZ=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Ep(d),function(b,w){return!w||((_=w)&&typeof Symbol<"u"&&_.constructor===Symbol?"symbol":typeof _)!="object"&&typeof w!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(b):w;var _}(s,wS()?Reflect.construct(d,g||[],Ep(s).constructor):d.apply(s,g))}(this,c,arguments)).buttons=[{name:"undo",group:"history"},{name:"redo",group:"history"}],i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Tp(i,s)}(c,l),h=c,(u=[{key:"beforeDestruct",value:function(){}},{key:"afterInit",value:function(i){var s=function(d){return i.history[d](),!1};i.registerCommand("redo",{exec:s,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),i.registerCommand("undo",{exec:s,hotkeys:["ctrl+z","cmd+z"]})}}])&&SZ(h.prototype,u),c}(xS(ut));function _S(l,c,h){return _S=jS()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Pp(g,s.prototype),g},_S.apply(null,arguments)}function AZ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Rp(l){return Rp=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Rp(l)}function Pp(l,c){return Pp=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Pp(l,c)}function hL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function kS(l){var c=typeof Map=="function"?new Map:void 0;return kS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return _S(h,arguments,Rp(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Pp(i,h)},kS(l)}function jS(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jS=function(){return!!l})()}Ve.add("redoUndo",CZ),de.prototype.minWidth=200,de.prototype.maxWidth="100%",de.prototype.minHeight=200,de.prototype.maxHeight="auto",de.prototype.saveHeightInStorage=!1;var SS=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":hL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},zp=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Rp(d),function(b,w){return!w||hL(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,jS()?Reflect.construct(d,g||[],Rp(s).constructor):d.apply(s,g))}(this,c,arguments)).__resizeWorkspaces=i.j.async.debounce(i.__resizeWorkspaceImd,i.j.defaultTimeout,!0),i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Pp(i,s)}(c,l),h=c,u=[{key:"afterInit",value:function(i){i.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(i.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__initialize()}},{key:"__initialize",value:function(){var i=this.j;if(!i.o.inline){var s=i.o.height;if(i.o.saveHeightInStorage&&s!=="auto"){var d=i.storage.get("height");d&&(s=d)}be(i.editor,{minHeight:"100%"}),be(i.container,{minHeight:i.o.minHeight,maxHeight:i.o.maxHeight,minWidth:i.o.minWidth,maxWidth:i.o.maxWidth}),i.isFullSize||(this.__setHeight(s),this.__setWidth(i.o.width))}}},{key:"__setHeight",value:function(i){var s=this.j.container,d=s.clientHeight,g=s.clientWidth;if(kn(i)){var b=this.j.o,w=b.minHeight,_=b.maxHeight;kn(w)&&w>i&&(i=w),kn(_)&&_<i&&(i=_)}be(this.j.container,"height",i),this.j.o.saveHeightInStorage&&this.j.storage.set("height",i),this.__resizeWorkspaceImd({clientHeight:d,clientWidth:g})}},{key:"__setWidth",value:function(i){var s=this.j.container,d=s.clientHeight,g=s.clientWidth;if(kn(i)){var b=this.j.o,w=b.minWidth,_=b.maxWidth;kn(w)&&w>i&&(i=w),kn(_)&&_<i&&(i=_)}be(this.j.container,"width",i),this.__resizeWorkspaceImd({clientHeight:d,clientWidth:g})}},{key:"__getNotWorkHeight",value:function(){var i,s;return(((i=this.j.toolbarContainer)===null||i===void 0?void 0:i.offsetHeight)||0)+(((s=this.j.statusbar)===null||s===void 0?void 0:s.getHeight())||0)+2}},{key:"__resizeWorkspaceImd",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.j.container,s=i.clientHeight,d=i.clientWidth;if(this.j&&!this.j.isDestructed&&this.j.o&&!this.j.o.inline&&this.j.container&&this.j.container.parentNode){var g=(be(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if(kn(g)&&g>0&&([this.j.workplace,this.j.iframe,this.j.editor].map(function(z){z&&be(z,"minHeight",g)}),this.j.e.fire("setMinHeight",g)),kn(this.j.o.maxHeight)){var b=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.iframe,this.j.editor].map(function(z){z&&be(z,"maxHeight",b)}),this.j.e.fire("setMaxHeight",b)}this.j.container&&be(this.j.workplace,"height",this.j.o.height!=="auto"||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto");var w=this.j.container,_=w.clientHeight,T=w.clientWidth;s===_&&d===T||this.j.e.fire(this.j,"resize")}}},{key:"beforeDestruct",value:function(i){i.e.off(i.ow,"load.size",this.__resizeWorkspaces).off(".size")}}],u&&AZ(h.prototype,u),c}(kS(ut));function CS(l,c,h){return CS=OS()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Ip(g,s.prototype),g},CS.apply(null,arguments)}function OZ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Mp(l){return Mp=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Mp(l)}function Ip(l,c){return Ip=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Ip(l,c)}function AS(l){var c=typeof Map=="function"?new Map:void 0;return AS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return CS(h,arguments,Mp(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ip(i,h)},AS(l)}function OS(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OS=function(){return!!l})()}SS([Za()],zp.prototype,"__initialize",null),SS([Ce],zp.prototype,"__resizeWorkspaceImd",null),zp=SS([Ce],zp),Ve.add("size",zp),de.prototype.showCharsCounter=!0,de.prototype.countHTMLChars=!1,de.prototype.countTextSpaces=!1,de.prototype.showWordsCounter=!0;var EZ=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Mp(d),function(b,w){return!w||((_=w)&&typeof Symbol<"u"&&_.constructor===Symbol?"symbol":typeof _)!="object"&&typeof w!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(b):w;var _}(s,OS()?Reflect.construct(d,g||[],Mp(s).constructor):d.apply(s,g))}(this,c,arguments)).charCounter=null,i.wordCounter=null,i.reInit=function(){i.j.o.showCharsCounter&&i.charCounter&&i.j.statusbar.append(i.charCounter,!0),i.j.o.showWordsCounter&&i.wordCounter&&i.j.statusbar.append(i.wordCounter,!0),i.j.e.off("change keyup",i.calc).on("change keyup",i.calc),i.calc()},i.calc=i.j.async.throttle(function(){var s,d=i.j.text;i.j.o.showCharsCounter&&i.charCounter&&(s=i.j.o.countHTMLChars?i.j.value:i.j.o.countTextSpaces?d.replace(Ya(),"").replace(/[\r\n]/g,""):d.replace(Eh(),""),i.charCounter.textContent=i.j.i18n("Chars: %d",s.length)),i.j.o.showWordsCounter&&i.wordCounter&&(i.wordCounter.textContent=i.j.i18n("Words: %d",d.replace(Ya(),"").split(Eh()).filter(function(g){return g.length}).length))},i.j.defaultTimeout),i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Ip(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}},{key:"beforeDestruct",value:function(){N.safeRemove(this.charCounter),N.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}}])&&OZ(h.prototype,u),c}(AS(ut));function ES(l,c,h){return ES=RS()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Np(g,s.prototype),g},ES.apply(null,arguments)}function TZ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Lp(l){return Lp=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Lp(l)}function Np(l,c){return Np=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Np(l,c)}function pL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function TS(l){var c=typeof Map=="function"?new Map:void 0;return TS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return ES(h,arguments,Lp(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Np(i,h)},TS(l)}function RS(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RS=function(){return!!l})()}Ve.add("stat",EZ),de.prototype.table={selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},Ke.set("table",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> `),de.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup:function(l,c,h,u){l.editor.normalize();for(var i=l.history.snapshot.make(),s=u.control,d=s.data&&s.data.rows?s.data.rows:10,g=s.data&&s.data.cols?s.data.cols:10,b=l.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+function(){if(!l.o.table.useExtraClassesOptions)return"";var $=[];if(s.data){var ee=s.data.classList;Object.keys(ee).forEach(function(ce){$.push('<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="'.concat(ce,'" type="checkbox"/>').concat(ee[ce],"</label>"))})}return $.join("")}()+'</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'),w=b.querySelectorAll("span")[0],_=b.querySelectorAll("span")[1],T=b.querySelector(".jodit-form__container"),z=b.querySelector(".jodit-form__options"),L=[],D=d*g,q=0;q<D;q+=1)L[q]||L.push(l.c.element("span",{dataIndex:q}));if(l.e.on(T,"mousemove",function($,ee){var ce=$.target;if(N.isTag(ce,"span")){for(var ge=ee===void 0||isNaN(ee)?parseInt(fe(ce,"-index")||"0",10):ee||0,ye=Math.ceil((ge+1)/g),Me=ge%g+1,Ie=0;Ie<L.length;Ie+=1)Me>=Ie%g+1&&ye>=Math.ceil((Ie+1)/g)?L[Ie].className="jodit_hovered":L[Ie].className="";_.textContent=Me.toString(),w.textContent=ye.toString()}}).on(T,"touchstart mousedown",function($){var ee=$.target;if($.preventDefault(),$.stopImmediatePropagation(),N.isTag(ee,"span")){var ce=parseInt(fe(ee,"-index")||"0",10),ge=Math.ceil((ce+1)/g),ye=ce%g+1,Me=l.createInside,Ie=Me.element("tbody"),st=Me.element("table");st.appendChild(Ie);for(var Ft,it,Qe=null,Or=1;Or<=ge;Or+=1){Ft=Me.element("tr");for(var rn=1;rn<=ye;rn+=1)it=Me.element("td"),Qe||(Qe=it),be(it,"width",(100/ye).toFixed(4)+"%"),it.appendChild(Me.element("br")),Ft.appendChild(Me.text(`
`)),Ft.appendChild(Me.text("	")),Ft.appendChild(it);Ie.appendChild(Me.text(`
`)),Ie.appendChild(Ft)}Ct("input[type=checkbox]:checked",z).forEach(function(qn){qn.value.split(/[\s]+/).forEach(function(ss){st.classList.add(ss)})}),l.s.restore(),l.s.removeMarkers(),l.editor.normalize(),l.history.snapshot.restore(i);var Cn=N.furthest(l.s.current(),N.isBlock,l.editor);if(Cn&&N.isEmpty(Cn))N.replace(Cn,st,void 0,!1,!0);else if(Cn){var It=Me.text(`
`);N.after(Cn,It),N.after(It,st)}else l.s.insertNode(st,!1);Qe&&(l.s.setCursorIn(Qe),Gs(Qe,l.editor,l.ed)),h()}}),u&&u.parentElement){for(var Y=0;Y<d;Y+=1){for(var X=l.c.div(),J=0;J<g;J+=1)X.appendChild(L[Y*g+J]);T.appendChild(X)}L[0]&&(L[0].className="hovered")}return b},tooltip:"Insert table"},Ve.add("table",function(l){l.registerButton({name:"table",group:"insert"})}),de.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0};var gL=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":pL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},PS=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Lp(d),function(b,w){return!w||pL(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,RS()?Reflect.construct(d,g||[],Lp(s).constructor):d.apply(s,g))}(this,c,arguments)).isSuitableStart=function(s){var d;return N.isText(s)&&Se(s.nodeValue)&&(/[^\s]/.test(s.nodeValue)||((d=s.parentNode)===null||d===void 0?void 0:d.firstChild)===s&&i.isSuitable(s.nextSibling))||i.isNotWrapped(s)&&!N.isTemporary(s)},i.isSuitable=function(s){return N.isText(s)||i.isNotWrapped(s)},i.isNotWrapped=function(s){return N.isElement(s)&&!(N.isBlock(s)||N.isTag(s,i.j.o.wrapNodes.exclude))},i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Np(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(i){i.o.enter.toLowerCase()!=="br"&&i.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}},{key:"beforeDestruct",value:function(i){i.e.off(".wtn")}},{key:"postProcessSetEditorValue",value:function(){var i=this.jodit;if(i.isEditorMode()){for(var s=i.editor.firstChild,d=!1;s;){if(s=RZ(s,i),this.isSuitableStart(s)){d||i.s.save(),d=!0;var g=i.createInside.element(i.o.enter);for(N.before(s,g);s&&this.isSuitable(s);){var b=s.nextSibling;g.appendChild(s),s=b}g.normalize(),s=g}s=s&&s.nextSibling}d&&(i.s.restore(),i.e.current==="afterInit"&&i.e.fire("internalChange"))}}},{key:"preprocessInput",value:function(){var i=this.jodit,s=i.e.current==="afterInit";if(i.isEditorMode()&&!i.editor.firstChild&&(i.o.wrapNodes.emptyBlockAfterInit||!s)){var d=i.createInside.element(i.o.enter),g=i.createInside.element("br");N.append(d,g),N.append(i.editor,d),i.s.isFocused()&&i.s.setCursorBefore(g),i.e.fire("internalChange")}}}])&&TZ(h.prototype,u),c}(TS(ut));function RZ(l,c){var h=l,u=l;do{if(!N.isElement(u)||!N.isLeaf(u)||N.isList(u.parentElement))break;var i=N.findNotEmptySibling(u,!1);N.isTag(h,"ul")?h.appendChild(u):h=N.wrap(u,"ul",c.createInside),u=i}while(u);return h}gL([Ce],PS.prototype,"postProcessSetEditorValue",null),gL([Ce],PS.prototype,"preprocessInput",null),Ve.add("wrapNodes",PS),de.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}};var PZ=new Set(["table","pre","blockquote","code"]);function zZ(l,c){if(l.o.dtd.removeExtraBr&&!N.isTag(c,"br")){var h=N.furthest(c,N.isBlock,l.editor);if(h&&!N.isTag(h,PZ)){var u=N.isTag(c,"br")?c:N.findNotEmptySibling(c,!1);if(!N.isTag(u,"br"))return;l.s.setCursorBefore(u),N.safeRemove(u)}}}function MZ(l,c){if(N.isFragment(c)&&(c=c.firstChild),l.o.dtd.checkBlockNesting&&N.isBlock(c)){var h=N.furthest(l.s.current(),N.isBlock,l.editor);h&&!l.o.dtd.blockLimits[h.tagName.toLowerCase()]&&(l.s.setCursorAfter(h),N.isEmpty(h)&&N.safeRemove(h))}}function zS(l,c,h){return zS=IS()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Bp(g,s.prototype),g},zS.apply(null,arguments)}function IZ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Dp(l){return Dp=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Dp(l)}function Bp(l,c){return Bp=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Bp(l,c)}function mL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function MS(l){var c=typeof Map=="function"?new Map:void 0;return MS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return zS(h,arguments,Dp(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Bp(i,h)},MS(l)}function IS(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IS=function(){return!!l})()}var vL=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":mL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},LS=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=Dp(s=c),function(g,b){return!b||mL(b)!=="object"&&typeof b!="function"?function(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(g):b}(i,IS()?Reflect.construct(s,d||[],Dp(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Bp(i,s)}(c,l),h=c,u=[{key:"afterInit",value:function(i){}},{key:"beforeDestruct",value:function(i){}},{key:"__onBeforeInsertNode",value:function(i){var s=this;Object.keys(O).forEach(function(d){O[d](s.j,i)})}},{key:"__onAfterInsertNode",value:function(i){var s=this;Object.keys(S).forEach(function(d){S[d](s.j,i)})}}],u&&IZ(h.prototype,u),c}(MS(ut));vL([_e(":beforeInsertNode")],LS.prototype,"__onBeforeInsertNode",null),vL([_e(":afterInsertNode")],LS.prototype,"__onAfterInsertNode",null),Ve.add("dtd",LS),Object.keys(p).forEach(function(l){ur[l]=p[l]});var Ly=function(l){return l!=="__esModule"};Object.keys(k).filter(Ly).forEach(function(l){Ke.set(l.replace("_","-"),k[l])}),Object.keys(x).filter(Ly).forEach(function(l){var c,h=x[l],u=Pe((c=h.prototype)===null||c===void 0?void 0:c.className)?h.prototype.className():l;Se(u)?ur.modules[u]=h:console.warn("Module name must be a string",l)}),Object.keys(v).filter(Ly).forEach(function(l){ur.decorators[l]=v[l]}),["Confirm","Alert","Prompt"].forEach(function(l){ur[l]=x[l]}),Object.keys(WI).filter(Ly).forEach(function(l){ur.lang[l]=WI[l]});var LZ=a(72),NZ=a.n(LZ),DZ=a(825),BZ=a.n(DZ),FZ=a(659),HZ=a.n(FZ),UZ=a(56),VZ=a.n(UZ),qZ=a(540),YZ=a.n(qZ),WZ=a(113),XZ=a.n(WZ),Ny=a(616),Cd={};function NS(l,c,h){return NS=BS()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Hp(g,s.prototype),g},NS.apply(null,arguments)}function GZ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Fp(l){return Fp=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Fp(l)}function Hp(l,c){return Hp=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Hp(l,c)}function bL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function DS(l){var c=typeof Map=="function"?new Map:void 0;return DS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return NS(h,arguments,Fp(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Hp(i,h)},DS(l)}function BS(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BS=function(){return!!l})()}Cd.styleTagTransform=XZ(),Cd.setAttributes=VZ(),Cd.insert=HZ().bind(null,"head"),Cd.domAPI=BZ(),Cd.insertStyleElement=YZ(),NZ()(Ny.A,Cd),Ny.A&&Ny.A.locals&&Ny.A.locals,de.prototype.addNewLine=!0,de.prototype.addNewLineOnDBLClick=!0,de.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],de.prototype.addNewLineDeltaShow=20,Ke.set("enter",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg> `);var Dy=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":bL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Bi="addnewline",Up=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Fp(d),function(b,w){return!w||bL(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,BS()?Reflect.construct(d,g||[],Fp(s).constructor):d.apply(s,g))}(this,c,arguments)).__line=i.j.c.fromHTML('<div role="button" tabindex="-1" title="'.concat(i.j.i18n("Break"),'" class="jodit-add-new-line"><span>').concat(Ke.get("enter"),"</span></div>")),i.__isMatchedTag=function(s){return!!(s&&i.j.o.addNewLineTagsTriggers.includes(s.nodeName.toLowerCase()))},i.__isBeforeContent=!1,i.__lineInFocus=!1,i.__isShown=!1,i.__hideForce=function(){i.__isShown&&(i.__isShown=!1,i.j.async.clearTimeout(i.__timeout),i.__lineInFocus=!1,N.safeRemove(i.__line),i.__line.style.setProperty("--jd-anl-handle-offset","0"))},i.__canGetFocus=function(s){return s!=null&&N.isBlock(s)&&!/^(img|table|iframe|hr)$/i.test(s.nodeName)},i.__onClickLine=function(s){var d=i.j,g=d.createInside.element(d.o.enter);i.__isBeforeContent&&i.__current&&i.__current.parentNode?i.__current===d.editor?N.prepend(d.editor,g):i.__current.parentNode.insertBefore(g,i.__current):d.editor.appendChild(g),d.s.setCursorIn(g),Gs(g,d.editor,d.ed),d.synchronizeValues(),i.__hideForce(),s.preventDefault()},i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Hp(i,s)}(c,l),h=c,(u=[{key:"__show",value:function(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,this.j.container.appendChild(this.__line),this.__line.style.width=this.j.container.clientWidth+"px"))}},{key:"onLock",value:function(i){i&&this.__isShown&&this.__hideForce()}},{key:"__hide",value:function(){this.__isShown&&!this.__lineInFocus&&(this.__timeout=this.j.async.setTimeout(this.__hideForce,{timeout:500,label:"add-new-line-hide"}))}},{key:"afterInit",value:function(i){var s=this;i.o.addNewLine&&(i.e.on(this.__line,"mousemove",function(d){d.stopPropagation()}).on(this.__line,"mousedown touchstart",this.__onClickLine).on("change",this.__hideForce).on(this.__line,"mouseenter",function(){s.j.async.clearTimeout(s.__timeout),s.__lineInFocus=!0}).on(this.__line,"mouseleave",function(){s.__lineInFocus=!1}).on("changePlace",this.__addEventListeners.bind(this)),this.__addEventListeners())}},{key:"__addEventListeners",value:function(){var i=this.j;i.e.off(i.editor,"."+Bi).off(i.container,"."+Bi).off("."+Bi).on([i.ow,i.ew,i.editor],"scroll."+Bi,this.__hideForce).on("finishedCleanHTMLWorker."+Bi,this.__hideForce).on(i.editor,"click."+Bi,this.__hide).on(i.container,"mouseleave."+Bi,this.__hide).on(i.editor,"mousemove."+Bi,this.__onMouseMove)}},{key:"onDblClickEditor",value:function(i){var s=this.j;if(!s.o.readonly&&s.o.addNewLineOnDBLClick&&i.target===s.editor&&s.s.isCollapsed()){var d=fa(s.editor,s,s.ed),g=i.pageY-s.ew.scrollX,b=s.createInside.element(s.o.enter);Math.abs(g-d.top)<Math.abs(g-(d.height+d.top))&&s.editor.firstChild?s.editor.insertBefore(b,s.editor.firstChild):s.editor.appendChild(b),s.s.setCursorIn(b),s.synchronizeValues(),this.__hideForce(),i.preventDefault()}}},{key:"__onMouseMove",value:function(i){var s=this.j,d=s.ed.elementFromPoint(i.clientX,i.clientY);if(N.isHTMLElement(d)&&N.isOrContains(s.editor,d))if(s.editor===d||this.__isMatchedTag(d)||(d=N.closest(d,this.__isMatchedTag,s.editor)),d){if(this.__isMatchedTag(d)){var g=N.up(d,N.isBlock,s.editor);g&&g!==s.editor&&(d=g)}var b=Bn(d,this.j),w=!1,_=i.clientY,T=i.clientX;if(this.j.iframe){var z=Bn(this.j.iframe,this.j,!0);_+=z.top,T+=z.left}var L=this.j.o.addNewLineDeltaShow;Math.abs(_-b.top)<=L?(w=b.top,this.__isBeforeContent=!0):Math.abs(_-(b.top+b.height))<=L&&(w=b.top+b.height,this.__isBeforeContent=!1);var D=s.editor===d;w!==!1&&(D&&!this.__isBeforeContent||!D&&!Mr(this.__isBeforeContent?N.prev:N.next,d,this.__canGetFocus,s.editor))?(this.__line.style.top=w+"px",this.__current=d,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",T-b.left-10+"px")):(this.__current=!1,this.__hide())}else this.__hide()}},{key:"beforeDestruct",value:function(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),N.safeRemove(this.__line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+Bi).off(this.j.container,"."+Bi).off("."+Bi)}}])&&GZ(h.prototype,u),c}(DS(ut));function FS(l,c,h){return FS=US()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&qp(g,s.prototype),g},FS.apply(null,arguments)}function $Z(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function ZZ(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function Vp(l){return Vp=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Vp(l)}function qp(l,c){return qp=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},qp(l,c)}function HS(l){var c=typeof Map=="function"?new Map:void 0;return HS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return FS(h,arguments,Vp(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),qp(i,h)},HS(l)}function US(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(US=function(){return!!l})()}Dy([_e(":lock")],Up.prototype,"onLock",null),Dy([Ce],Up.prototype,"__hide",null),Dy([_e(":dblclick")],Up.prototype,"onDblClickEditor",null),Dy([Za(function(l){return l.defaultTimeout})],Up.prototype,"__onMouseMove",null),Ve.add("addNewLine",Up),de.prototype.controls.classSpan={command:"applyClassName",exec:lk,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive:function(l,c){var h=l.s.current();if(h){var u=N.closest(h,N.isElement,l.editor)||l.editor;return!!(c.control.args&&u.classList.contains(c.control.args[0].toString()))}return!1},isActive:function(l,c){var h=l.s.current();if(h){var u=N.closest(h,N.isElement,l.editor)||l.editor,i=!1;return c.control.list&&Object.keys(c.control.list).forEach(function(s){u.classList.contains(s)&&(i=!0)}),!!(u&&u!==l.editor&&c.control.list!==void 0&&i)}return!1},childTemplate:function(l,c,h){return'<span class="'.concat(c,'">').concat(l.i18n(h),"</span>")},tooltip:"Insert className"};var KZ=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Vp(d),function(b,w){return!w||((_=w)&&typeof Symbol<"u"&&_.constructor===Symbol?"symbol":typeof _)!="object"&&typeof w!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(b):w;var _}(s,US()?Reflect.construct(d,g||[],Vp(s).constructor):d.apply(s,g))}(this,c,arguments)).buttons=[{name:"classSpan",group:"script"}],i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&qp(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(i){i.registerCommand("applyClassName",function(s,d,g){return i.s.commitStyle({attributes:ZZ({},"class",g)}),!1})}},{key:"beforeDestruct",value:function(){}}])&&$Z(h.prototype,u),c}(HS(ut));function yL(l){var c=/([^[]*)\[([^\]]+)]/,h=/[\s]*,[\s]*/,u=/^(.*)[\s]*=[\s]*(.*)$/,i={};return Se(l)?(l.split(h).map(function(s){s=cr(s);var d=c.exec(s),g={};if(d){var b=d[2].split(h);d[1]&&(b.forEach(function(w){w=cr(w);var _=u.exec(w);_?g[_[1]]=_[2]:g[w]=!0}),i[d[1].toUpperCase()]=g)}else i[s.toUpperCase()]=!0}),i):!!l&&(Object.keys(l).forEach(function(s){i[s.toUpperCase()]=l[s]}),i)}function VS(l,c){var h=l.s,u=c;if(!u){u=l.createInside.fake();var i=h.range;N.safeInsertNode(i,u),i.collapse()}var s=N.furthest(u,xL,l.editor);if(s)if(h.cursorOnTheLeft(s))N.before(s,u);else if(h.cursorOnTheRight(s))N.after(s,u);else{var d=h.splitSelection(s);d&&N.after(d,u)}c||(h.setCursorBefore(u),N.safeRemove(u))}function xL(l){return N.isInlineBlock(l)&&!N.isTag(l,zi)}function JZ(l,c,h,u){if(u&&N.isElement(c)&&u[c.nodeName]!==!0){var i=c.attributes;if(i&&i.length){for(var s=[],d=0;d<i.length;d+=1){var g=u[c.nodeName][i[d].name];(!g||g!==!0&&g!==i[d].value)&&s.push(i[d].name)}s.length&&(h=!0),s.forEach(function(b){c.removeAttribute(b)})}}return h}Ve.add("classSpan",KZ),Ke.set("class-span",'<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg> '),de.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script",useIframeSandbox:!1,removeOnError:!0,safeJavaScriptLink:!0,disableCleanFilter:null},de.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},Ke.set("eraser",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> `);var QZ=new Set(["table","tbody","thead","tfoot","tr"]);function eK(l,c,h){if(l.o.cleanHTML.fillEmptyParagraph&&N.isBlock(c)&&N.isEmpty(c,zi)&&!N.isTag(c,QZ)){var u=l.createInside.element("br");return c.appendChild(u),!0}return h}function tK(l,c,h,u,i,s){return N.isText(c)&&!c.nodeValue?(c===s&&l.s.isCollapsed()&&l.s.setCursorAfter(c),N.safeRemove(c),!0):h}function rK(l,c,h,u,i,s){if(s===c||!N.isText(c)||c.nodeValue==null||!Ya().test(c.nodeValue))return h;var d=N.furthest(s,N.isBlock,l.editor);return!d||N.isOrContains(d,c)?h:(c.nodeValue=c.nodeValue.replace(Ya(),""),c===s&&l.s.isCollapsed()&&l.s.setCursorAfter(c),c.nodeValue||N.safeRemove(c),!0)}function nK(l,c,h){var u=function(i,s,d){if(!d||!N.isHTMLElement(s))return s;var g=d[s.nodeName.toLowerCase()]||d[s.nodeName];return g?N.replace(s,g,i.createInside,!0,!1):s}(l,c,l.o.cleanHTML.replaceOldTags);return c!==u?(c=u,!0):h}function oK(l,c,h){return!(!N.isElement(c)||!Vu(c,{safeJavaScriptLink:l.options.cleanHTML.safeJavaScriptLink,removeOnError:l.options.cleanHTML.removeOnError}))||h}function iK(l,c,h,u,i,s){return function(d,g,b,w,_){return!N.isText(g)&&(w&&!w[g.nodeName]||!w&&_&&_[g.nodeName])?!0:!!d.o.cleanHTML.removeEmptyElements&&N.isElement(g)&&g.nodeName.match(E5)!=null&&!N.isTemporary(g)&&cr(g.innerHTML).length===0&&(b==null||!N.isOrContains(g,b))}(l,c,s,u,i)?(N.safeRemove(c),!0):h}var aK=Object.keys(C);function wL(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function qS(l,c,h){return qS=WS()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Wp(g,s.prototype),g},qS.apply(null,arguments)}function sK(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Yp(l){return Yp=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Yp(l)}function Wp(l,c){return Wp=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Wp(l,c)}function _L(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function YS(l){var c=typeof Map=="function"?new Map:void 0;return YS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return qS(h,arguments,Yp(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Wp(i,h)},YS(l)}function WS(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WS=function(){return!!l})()}var Xp=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":_L(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Ad=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Yp(d),function(b,w){return!w||_L(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,WS()?Reflect.construct(d,g||[],Yp(s).constructor):d.apply(s,g))}(this,c,arguments)).buttons=[{name:"eraser",group:"font-style"}],i.currentSelectionNode=null,i.walker=new Eb(i.j.async,{timeout:i.j.o.cleanHTML.timeout}),i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Wp(i,s)}(c,l),h=c,u=[{key:"afterInit",value:function(i){}},{key:"isEditMode",get:function(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}},{key:"onChangeCleanHTML",value:function(){if(this.isEditMode){var i=this.j;this.walker.setWork(i.editor),this.currentSelectionNode=i.s.current()}}},{key:"startWalker",value:function(){var i=this,s=this.jodit,d=yL(this.j.o.cleanHTML.allowTags),g=yL(this.j.o.cleanHTML.denyTags);this.walker.on("visit",function(b){return function(w,_,T,z,L){var D=!1,q=w.o.cleanHTML.disableCleanFilter,Y=!0,X=!1,J=void 0;try{for(var $,ee=aK[Symbol.iterator]();!(Y=($=ee.next()).done);Y=!0){var ce=$.value;if(!q||!q.has(ce)){var ge=D;if(D=(0,C[ce])(w,_,D,T,z,L),Vs||ge||!D||console.warn('CleanHTML: Effect "'.concat(ce,'"')),!_.isConnected)return!0}}}catch(ye){X=!0,J=ye}finally{try{Y||ee.return==null||ee.return()}finally{if(X)throw J}}return D}(s,b,d,g,i.currentSelectionNode)}).on("end",function(b){i.j.e.fire(b?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}},{key:"beforeCommand",value:function(i){if(i.toLowerCase()==="removeformat")return this.j.s.isCollapsed()?VS(this.j):function(s){var d=s.s,g=s.editor,b=s.createInside,w=d.range,_=w.cloneRange(),T=w.cloneRange(),z=b.fake(),L=b.fake();_.collapse(!0),T.collapse(!1),N.safeInsertNode(_,z),N.safeInsertNode(T,L),w.setStartBefore(z),w.collapse(!0),d.selectRange(w),VS(s,z),w.setEndAfter(L),w.collapse(!1),d.selectRange(w),VS(s,L);var D=[];N.between(z,L,function(Y){xL(Y)&&!N.isTag(Y,"a")&&D.push(Y),N.isElement(Y)&&fe(Y,"style")&&fe(Y,"style",null)}),D.forEach(function(Y){return N.unwrap(Y)});var q=function(Y,X){if(!N.findNotEmptySibling(Y,X)){var J=Y.parentNode;if(J&&J!==g&&fe(J,"style"))return fe(J,"style",null),q(J,X),!0}};q(z,!0)&&q(L,!1),w.setStartAfter(z),w.setEndBefore(L),d.selectRange(w),N.safeRemove(z),N.safeRemove(L)}(this.j),!1}},{key:"onBeforeSetNativeEditorValue",value:function(i){var s=function(b,w){return function(_){if(Array.isArray(_))return _}(b)||function(_,T){var z=_==null?null:typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(z!=null){var L,D,q=[],Y=!0,X=!1;try{for(z=z.call(_);!(Y=(L=z.next()).done)&&(q.push(L.value),!T||q.length!==T);Y=!0);}catch(J){X=!0,D=J}finally{try{Y||z.return==null||z.return()}finally{if(X)throw D}}return q}}(b,w)||function(_,T){if(_){if(typeof _=="string")return wL(_,T);var z=Object.prototype.toString.call(_).slice(8,-1);return z==="Object"&&_.constructor&&(z=_.constructor.name),z==="Map"||z==="Set"?Array.from(z):z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?wL(_,T):void 0}}(b,w)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.createInside.div()],2),d=s[0],g=s[1];return d.innerHTML=i.value,this.onSafeHTML(d),i.value=d.innerHTML,Rk(d,{safeJavaScriptLink:!0,removeOnError:!0}),N.safeRemove(g),!1}},{key:"onSafeHTML",value:function(i){Rk(i,this.j.o.cleanHTML)}},{key:"beforeDestruct",value:function(){this.walker.destruct()}}],u&&sK(h.prototype,u),c}(YS(ut));function lK(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}Xp([_e([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],Ad.prototype,"onChangeCleanHTML",null),Xp([Ur("ready")],Ad.prototype,"startWalker",null),Xp([_e(":beforeCommand")],Ad.prototype,"beforeCommand",null),Xp([_e(":beforeSetNativeEditorValue")],Ad.prototype,"onBeforeSetNativeEditorValue",null),Xp([_e(":safeHTML")],Ad.prototype,"onSafeHTML",null),Ve.add("cleanHtml",Ad),de.prototype.controls.cut={command:"cut",isDisabled:function(l){return l.s.isCollapsed()},tooltip:"Cut selection"},de.prototype.controls.copy={command:"copy",isDisabled:function(l){return l.s.isCollapsed()},tooltip:"Copy selection"},de.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},Ke.set("copy",'<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg> ').set("cut",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg> `).set("paste",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg> ').set("select-all",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg> `);var cK=function(){function l(){(function(u,i){if(!(u instanceof i))throw new TypeError("Cannot call a class as a function")})(this,l),this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}var c,h;return c=l,(h=[{key:"init",value:function(u){var i;(i=this.buttons)===null||i===void 0||i.forEach(function(s){return u.registerButton(s)}),u.e.off("copy.".concat(ua," cut.").concat(ua)).on("copy.".concat(ua," cut.").concat(ua),function(s){var d,g=u.s.html,b=cc(s)||cc(u.ew)||cc(s.originalEvent);b&&(b.setData(Ws,qu(g)),b.setData(Rh,g)),u.buffer.set(ua,g),u.e.fire("pasteStack",{html:g,action:u.o.defaultActionOnPaste||Fu}),s.type==="cut"&&(u.s.remove(),u.s.focus()),s.preventDefault(),(d=u==null?void 0:u.events)===null||d===void 0||d.fire("afterCopy",g)})}},{key:"destruct",value:function(u){var i,s;(i=Zn(u,"buffer"))===null||i===void 0||i.set(ua,""),(s=u==null?void 0:u.events)===null||s===void 0||s.off("."+ua)}}])&&lK(c.prototype,h),l}();Ve.add("clipboard",cK);const uK={"copy-format":"نسخ التنسيق"},dK={"copy-format":"Kopírovat formát"},fK={"copy-format":"Format kopierenт"},hK={"copy-format":"Copiar formato"},pK={"copy-format":"کپی کردن قالب"},gK={"copy-format":"Kopioi muotoilu"},mK={"copy-format":"Format de copie"},vK={"copy-format":"העתק עיצוב"},bK={"copy-format":"Formátum másolás"},yK={"copy-format":"salin format"},xK={"copy-format":"Copia il formato"},wK={"copy-format":"copyformat"},_K={"copy-format":"복사 형식"},kK={"copy-format":"Формат хуулах"},jK={"copy-format":"opmaak kopiëren"},SK={"copy-format":"format kopii"},CK={"copy-format":"Copiar formato"},AK={"copy-format":"Копировать формат"},OK={"copy-format":"Kopyalama Biçimi"},EK={"copy-format":"复制格式"},TK={"copy-format":"複製格式"};var rl="copy-format",kL=["fontWeight","fontStyle","fontSize","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine","fontFamily"],jL=function(l,c,h,u){var i=be(h,c);return i===u[c]&&(i=h.parentNode&&h!==l.editor&&h.parentNode!==l.editor?jL(l,c,h.parentNode,u):void 0),i};function SL(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function XS(l,c,h){return XS=$S()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&$p(g,s.prototype),g},XS.apply(null,arguments)}function RK(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Gp(l){return Gp=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Gp(l)}function $p(l,c){return $p=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},$p(l,c)}function CL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function GS(l){var c=typeof Map=="function"?new Map:void 0;return GS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return XS(h,arguments,Gp(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),$p(i,h)},GS(l)}function $S(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($S=function(){return!!l})()}de.prototype.controls.copyformat={exec:function(l,c,h){var u=h.button;if(c){if(l.buffer.exists(rl))l.buffer.delete(rl),l.e.off(l.editor,"mouseup."+rl);else{var i={},s=N.up(c,function(b){return b&&!N.isText(b)},l.editor)||l.editor,d=l.createInside.span();l.editor.appendChild(d),kL.forEach(function(b){i[b]=be(d,b)}),d!==l.editor&&N.safeRemove(d);var g=function(b,w,_){var T={};return w&&kL.forEach(function(z){T[z]=jL(b,z,w,_),z.match(/border(Style|Color)/)&&!T.borderWidth&&(T[z]=void 0)}),T}(l,s,i);l.e.on(l.editor,"mouseup."+rl,function(){l.buffer.delete(rl);var b=l.s.current();b&&(N.isTag(b,"img")?be(b,g):l.s.commitStyle({attributes:{style:g}})),l.e.off(l.editor,"mouseup."+rl)}),l.buffer.set(rl,!0)}u.update()}},isActive:function(l){return l.buffer.exists(rl)},tooltip:"Paint format"},Ve.add("copyformat",function(l){l.registerButton({name:"copyformat",group:"clipboard"}),$u(R)}),Ke.set("copyformat",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg> `);var By=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":CL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Zp=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Gp(d),function(b,w){return!w||CL(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,$S()?Reflect.construct(d,g||[],Gp(s).constructor):d.apply(s,g))}(this,c,arguments)).isFragmentFromEditor=!1,i.isCopyMode=!1,i.startDragPoint={x:0,y:0},i.draggable=null,i.bufferRange=null,i.getText=function(s){var d=cc(s);return d?d.getData(Rh)||d.getData(Ws):null},i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&$p(i,s)}(c,l),h=c,u=[{key:"afterInit",value:function(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}},{key:"onDragStart",value:function(i){var s=i.target;if(this.onDragEnd(),this.isFragmentFromEditor=N.isOrContains(this.j.editor,s,!0),this.isCopyMode=!this.isFragmentFromEditor||Uh(i),this.isFragmentFromEditor){var d=this.j.s.sel,g=d&&d.rangeCount?d.getRangeAt(0):null;g&&(this.bufferRange=g.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=i.clientX,this.startDragPoint.y=i.clientY,function(b){return N.isElement(b)&&b.classList.contains(rI.prototype.getFullElName("item"))}(s)&&(s=s.querySelector("img")),N.isTag(s,"img")&&(this.draggable=s.cloneNode(!0),St(this.draggable,"target",s)),this.addDragListeners()}},{key:"addDragListeners",value:function(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}},{key:"removeDragListeners",value:function(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}},{key:"onDrag",value:function(i){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(i.clientX,i.clientY),i.preventDefault(),i.stopPropagation())}},{key:"onDragEnd",value:function(){this.draggable&&(N.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}},{key:"onDrop",value:function(i){if(!i.dataTransfer||!i.dataTransfer.files||!i.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",i),i.preventDefault(),i.stopPropagation(),!1;var s=this.j.s.sel,d=this.bufferRange||(s&&s.rangeCount?s.getRangeAt(0):null),g=this.__getWorkFragment(d,i);s&&s.removeAllRanges(),this.j.s.insertCursorAtPoint(i.clientX,i.clientY),g&&this.__insertFragment.call(this,g,d),i.preventDefault(),i.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}},{key:"__getWorkFragment",value:function(i,s){var d=null;if(!this.draggable&&i)d=this.isCopyMode?i.cloneContents():i.extractContents();else if(this.draggable)if(this.isCopyMode){var g=function(_,T){return function(z){if(Array.isArray(z))return z}(_)||function(z,L){var D=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(D!=null){var q,Y,X=[],J=!0,$=!1;try{for(D=D.call(z);!(J=(q=D.next()).done)&&(X.push(q.value),!L||X.length!==L);J=!0);}catch(ee){$=!0,Y=ee}finally{try{J||D.return==null||D.return()}finally{if($)throw Y}}return X}}(_,T)||function(z,L){if(z){if(typeof z=="string")return SL(z,L);var D=Object.prototype.toString.call(z).slice(8,-1);return D==="Object"&&z.constructor&&(D=z.constructor.name),D==="Map"||D==="Set"?Array.from(D):D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D)?SL(z,L):void 0}}(_,T)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(fe(this.draggable,"-is-file")==="1"?["a","href"]:["img","src"],2),b=g[0],w=g[1];(d=this.j.createInside.element(b)).setAttribute(w,fe(this.draggable,"data-src")||fe(this.draggable,"src")||""),b==="a"&&(d.textContent=fe(d,w)||"")}else d=St(this.draggable,"target");else this.getText(s)&&(d=this.j.createInside.fromHTML(this.getText(s)));return d}},{key:"__insertFragment",value:function(i,s){this.j.s.insertNode(i,!1,!1),s&&i.firstChild&&i.lastChild&&(s.setStartBefore(i.firstChild),s.setEndAfter(i.lastChild),this.j.s.selectRange(s),this.j.e.fire("synchro")),N.isTag(i,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",i)}},{key:"beforeDestruct",value:function(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}}],u&&RK(h.prototype,u),c}(GS(ut));function ZS(l,c,h){return ZS=JS()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Jp(g,s.prototype),g},ZS.apply(null,arguments)}function PK(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Kp(l){return Kp=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Kp(l)}function Jp(l,c){return Jp=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Jp(l,c)}function AL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function KS(l){var c=typeof Map=="function"?new Map:void 0;return KS=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return ZS(h,arguments,Kp(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Jp(i,h)},KS(l)}function JS(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JS=function(){return!!l})()}By([Ce],Zp.prototype,"onDragStart",null),By([Za(function(l){return l.defaultTimeout/10})],Zp.prototype,"onDrag",null),By([Ce],Zp.prototype,"onDragEnd",null),By([Ce],Zp.prototype,"onDrop",null),Ve.add("dragAndDrop",Zp),de.prototype.draggableTags=["img","jodit-media","jodit"];var Fi,Fy=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":AL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d};(function(l){l[l.IDLE=0]="IDLE",l[l.WAIT_DRAGGING=1]="WAIT_DRAGGING",l[l.DRAGGING=2]="DRAGGING"})(Fi||(Fi={}));var Qp=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Kp(d),function(b,w){return!w||AL(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,JS()?Reflect.construct(d,g||[],Kp(s).constructor):d.apply(s,g))}(this,c,arguments)).dragList=[],i.draggable=null,i.isCopyMode=!1,i.diffStep=10,i.startX=0,i.startY=0,i.state=Fi.IDLE,i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Jp(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(){this.dragList=this.j.o.draggableTags?Dn(this.j.o.draggableTags).filter(Boolean).map(function(i){return i.toLowerCase()}):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}},{key:"onDragStart",value:function(i){var s=this;if(i.type==="dragstart"&&this.draggable)return!1;if(!(this.state>Fi.IDLE)){var d=i.target;if(this.dragList.length&&d){var g=function(w){return!!(w&&s.dragList.includes(w.nodeName.toLowerCase()))},b=N.furthest(d,g,this.j.editor)||(g(d)?d:null);b&&(N.isTag(b.parentElement,"a")&&b.parentElement.firstChild===b&&b.parentElement.lastChild===b&&(b=b.parentElement),this.startX=i.clientX,this.startY=i.clientY,this.isCopyMode=Uh(i),this.draggable=b.cloneNode(!0),St(this.draggable,"target",b),this.state=Fi.WAIT_DRAGGING,this.addDragListeners())}}}},{key:"onDrag",value:function(i){var s,d;if(this.draggable&&this.state!==Fi.IDLE){var g=i.clientX,b=i.clientY;if(!(this.state===Fi.WAIT_DRAGGING&&Math.sqrt(Math.pow(g-this.startX,2)+Math.pow(b-this.startY,2))<this.diffStep)){if(this.state===Fi.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=Fi.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){var w=St(this.draggable,"target");be(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:i.clientX,top:i.clientY,width:(s=w==null?void 0:w.offsetWidth)!==null&&s!==void 0?s:100,height:(d=w==null?void 0:w.offsetHeight)!==null&&d!==void 0?d:100}),dc(this.j,c).appendChild(this.draggable)}be(this.draggable,{left:i.clientX,top:i.clientY}),this.j.s.insertCursorAtPoint(i.clientX,i.clientY)}}}},{key:"onDragEnd",value:function(){this.isInDestruct||(this.removeDragListeners(),this.j.unlock(),this.state=Fi.IDLE,this.draggable&&(N.safeRemove(this.draggable),this.draggable=null))}},{key:"onDrop",value:function(){if(!this.draggable||this.state<Fi.DRAGGING)this.onDragEnd();else{var i=St(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(i=i.cloneNode(!0));var s=i.parentElement;this.j.s.insertNode(i,!0,!1),s&&N.isEmpty(s)&&!N.isCell(s)&&N.safeRemove(s),N.isTag(i,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",i),this.j.e.fire("synchro")}}},{key:"addDragListeners",value:function(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}},{key:"removeDragListeners",value:function(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}},{key:"beforeDestruct",value:function(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}}])&&PK(h.prototype,u),c}(KS(ut));Fy([Ce],Qp.prototype,"onDragStart",null),Fy([Za(function(l){return l.defaultTimeout/10})],Qp.prototype,"onDrag",null),Fy([Ce],Qp.prototype,"onDragEnd",null),Fy([Ce],Qp.prototype,"onDrop",null),Ve.add("dragAndDropElement",Qp),de.prototype.controls.file={popup:function(l,c,h){var u=function(s){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";l.s.insertNode(l.createInside.fromHTML('<a href="'.concat(s,'" title="').concat(d,'">').concat(d||s,"</a>")))},i=null;return c&&(N.isTag(c,"a")||N.closest(c,"a",l.editor))&&(i=N.isTag(c,"a")?c:N.closest(c,"a",l.editor)),K2(l,{filebrowser:function(s){s.files&&s.files.forEach(function(d){return u(s.baseurl+d)}),h()},upload:!0,url:function(s,d){i?(i.setAttribute("href",s),i.setAttribute("title",d)):u(s,d),h()}},i,h,!1)},tags:["a"],tooltip:"Insert file"},Ve.add("file",function(l){l.registerButton({name:"file",group:"media"})}),de.prototype.autofocus=!1,de.prototype.cursorAfterAutofocus="end",de.prototype.saveSelectionOnBlur=!0,Ve.add("focus",function(l){l.o.saveSelectionOnBlur&&l.e.on("blur",function(){l.isEditorMode()&&l.s.save(!0)}).on("focus",function(){l.s.restore()});var c=function(){if(l.s.focus(),l.o.cursorAfterAutofocus==="end"){var h=N.last(l.editor,function(u){return N.isText(u)});h&&l.s.setCursorIn(h,!1)}};l.e.on("afterInit",function(){l.o.autofocus&&(l.defaultTimeout?l.async.setTimeout(c,300):c())}),l.e.on("afterInit afterAddPlace",function(){l.e.off(l.editor,"mousedown.autofocus").on(l.editor,"mousedown.autofocus",function(h){l.isEditorMode()&&h.target&&N.isBlock(h.target)&&!h.target.childNodes.length&&(l.editor===h.target?l.s.focus():l.s.setCursorIn(h.target))})})}),de.prototype.fullsize=!1,de.prototype.globalFullSize=!0,Ke.set("fullsize",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg> `).set("shrink",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg> `),de.prototype.controls.fullsize={exec:function(l){l.toggleFullSize()},update:function(l,c){var h=l.isFullSize?"shrink":"fullsize";c.state.activated=l.isFullSize,l.o.textIcons?c.state.text=h:c.state.icon.name=h},tooltip:"Open in fullsize",mode:Nn+gr};var Hy=new Set;function OL(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}function QS(l,c,h){return QS=tC()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&tg(g,s.prototype),g},QS.apply(null,arguments)}function zK(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function eg(l){return eg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},eg(l)}function tg(l,c){return tg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},tg(l,c)}function EL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function eC(l){var c=typeof Map=="function"?new Map:void 0;return eC=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return QS(h,arguments,eg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),tg(i,h)},eC(l)}function tC(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tC=function(){return!!l})()}Ve.add("fullsize",function(l){l.registerButton({name:"fullsize"});var c=!1,h=0,u=0,i=!1,s=function(){var g=l.container;l.events&&(c?(h=be(g,"height",!0),u=be(g,"width",!0),be(g,{height:l.ow.innerHeight,width:l.ow.innerWidth}),i=!0):i&&be(g,{height:h||"auto",width:u||"auto"}))},d=function(g){var b,w=l.container,_=l.events;if(w){if(g===void 0&&(g=!w.classList.contains("jodit_fullsize")),l.setMod("fullsize",g),l.o.fullsize=g,c=g,w.classList.toggle("jodit_fullsize",g),l.toolbar&&(_n(l)&&((b=l.toolbarContainer)===null||b===void 0||b.appendChild(l.toolbar.container)),be(l.toolbar.container,"width","auto")),g?Hy.add(w):Hy.delete(w),l.o.globalFullSize&&(Hy.size===1&&g||Hy.size===0&&!g)){for(var T=w.parentNode;T&&T.nodeType!==Node.DOCUMENT_NODE&&T.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)T.classList.toggle("jodit_fullsize-box_true",g),T=T.parentNode;s()}_.fire("afterResize")}};l.o.globalFullSize&&l.e.on(l.ow,"resize",s),l.e.on("afterInit afterOpen",function(){var g;l.toggleFullSize((g=l==null?void 0:l.options)===null||g===void 0?void 0:g.fullsize)}).on("toggleFullSize",d).on("beforeDestruct",function(){c&&d(!1)}).on("beforeDestruct",function(){l.events&&l.e.off(l.ow,"resize",s)})}),Ke.set("hr",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg> `),de.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},Ve.add("hr",function(l){l.registerButton({name:"hr",group:"insert"}),l.registerCommand("insertHorizontalRule",function(){var c=l.createInside.element("hr");l.s.insertNode(c,!1,!1);var h=N.closest(c.parentElement,N.isBlock,l.editor);h&&N.isEmpty(h)&&h!==l.editor&&(N.after(h,c),N.safeRemove(h));var u=N.next(c,N.isBlock,l.editor,!1);return u||(u=l.createInside.element(l.o.enter),N.after(c,u)),l.s.setCursorIn(u),!1})}),de.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0};var rC=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":EL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},nC="__jodit_imageprocessor_binded",rg=nC+"blob-id",Uy=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=eg(s=c),function(g,b){return!b||EL(b)!=="object"&&typeof b!="function"?function(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(g):b}(i,tC()?Reflect.construct(s,d||[],eg(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&tg(i,s)}(c,l),h=c,u=[{key:"afterInit",value:function(i){}},{key:"beforeDestruct",value:function(i){var s=Zn(i,"buffer"),d=s==null?void 0:s.get(rg);if(s&&d){var g=Object.keys(d),b=!0,w=!1,_=void 0;try{for(var T,z=g[Symbol.iterator]();!(b=(T=z.next()).done);b=!0){var L=T.value;URL.revokeObjectURL(L)}}catch(D){w=!0,_=D}finally{try{b||z.return==null||z.return()}finally{if(w)throw _}}s.delete(rg)}}},{key:"onAfterGetValueFromEditor",value:function(i,s){if(s!==D_)return this.onBeforeSetElementValue(i)}},{key:"onBeforeSetElementValue",value:function(i){var s=this.jodit;if(s.o.imageProcessor.replaceDataURIToBlobIdInView){var d=s.buffer.get(rg);if(d){var g=Object.keys(d),b=!0,w=!1,_=void 0;try{for(var T,z=g[Symbol.iterator]();!(b=(T=z.next()).done);b=!0)for(var L=T.value;i.value.includes(L);)i.value=i.value.replace(L,d[L])}catch(D){w=!0,_=D}finally{try{b||z.return==null||z.return()}finally{if(w)throw _}}}}}},{key:"afterChange",value:function(i){var s,d=this;return(s=function(){var g;return function(b,w){var _,T,z,L,D={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return L={next:q(0),throw:q(1),return:q(2)},typeof Symbol=="function"&&(L[Symbol.iterator]=function(){return this}),L;function q(Y){return function(X){return function(J){if(_)throw new TypeError("Generator is already executing.");for(;D;)try{if(_=1,T&&(z=2&J[0]?T.return:J[0]?T.throw||((z=T.return)&&z.call(T),0):T.next)&&!(z=z.call(T,J[1])).done)return z;switch(T=0,z&&(J=[2&J[0],z.value]),J[0]){case 0:case 1:z=J;break;case 4:return D.label++,{value:J[1],done:!1};case 5:D.label++,T=J[1],J=[0];continue;case 7:J=D.ops.pop(),D.trys.pop();continue;default:if(!((z=(z=D.trys).length>0&&z[z.length-1])||J[0]!==6&&J[0]!==2)){D=0;continue}if(J[0]===3&&(!z||J[1]>z[0]&&J[1]<z[3])){D.label=J[1];break}if(J[0]===6&&D.label<z[1]){D.label=z[1],z=J;break}if(z&&D.label<z[2]){D.label=z[2],D.ops.push(J);break}z[2]&&D.ops.pop(),D.trys.pop();continue}J=w.call(b,D)}catch($){J=[6,$],T=0}finally{_=z=0}if(5&J[0])throw J[1];return{value:J[0]?J[1]:void 0,done:!0}}([Y,X])}}}(this,function(b){return(g=d.jodit).editor?(Ct("img",g.editor).forEach(function(w){St(w,nC)||(St(w,nC,!0),w.complete||g.e.on(w,"load",function _(){var T;!g.isInDestruct&&((T=g.e)===null||T===void 0||T.fire("resize")),g.e.off(w,"load",_)}),w.src&&/^data:/.test(w.src)&&function(_,T){if(_.o.imageProcessor.replaceDataURIToBlobIdInView&&typeof ArrayBuffer<"u"&&typeof URL<"u"){var z=T.src,L=function(q){for(var Y=atob(q.split(",")[1]),X=q.split(",")[0].split(":")[1].split(";")[0],J=new ArrayBuffer(Y.length),$=new Uint8Array(J),ee=0;ee<Y.length;ee++)$[ee]=Y.charCodeAt(ee);return new Blob([J],{type:X})}(z);T.src=URL.createObjectURL(L),_.e.fire("internalUpdate");var D=_.buffer.get(rg)||{};D[T.src]=z,_.buffer.set(rg,D)}}(g,w),g.e.on(w,"mousedown touchstart",function(){g.s.select(w)}))}),[2]):[2]})},function(){var g=this,b=arguments;return new Promise(function(w,_){var T=s.apply(g,b);function z(D){OL(T,w,_,z,L,"next",D)}function L(D){OL(T,w,_,z,L,"throw",D)}z(void 0)})})()}}],u&&zK(h.prototype,u),c}(eC(ut));function TL(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function RL(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}function MK(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Vy(l){return Vy=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Vy(l)}function oC(l,c){return oC=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},oC(l,c)}function PL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function zL(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zL=function(){return!!l})()}rC([_e(":afterGetValueFromEditor")],Uy.prototype,"onAfterGetValueFromEditor",null),rC([_e(":beforeSetElementValue")],Uy.prototype,"onBeforeSetElementValue",null),rC([_e([":change",":afterInit",":changePlace"]),Ii()],Uy.prototype,"afterChange",null),Ve.add("imageProcessor",Uy),de.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0};var go=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":PL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Un=function(l){function c(i,s,d){var g;return function(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}(this,c),(g=function(b,w,_){return w=Vy(w),function(T,z){return!z||PL(z)!=="object"&&typeof z!="function"?function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(T):z}(b,zL()?Reflect.construct(w,_||[],Vy(b).constructor):w.apply(b,_))}(this,c,[i])).state=s,g.handlers=d,g}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&oC(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"UIImageMainTab"}},{key:"appendChildToContainer",value:function(){}},{key:"render",value:function(){return`<div class="jodit-form__group &__editSrc">
			<label>~Src~</label>
			<div class="jodit-input_group">
				<input class="jodit-input &__imageSrc" type="text"/>
				<div class="jodit-input_group-buttons &__fixImage">
						<a class="jodit-button &__changeImage">*image*</a>
						<a class="jodit-button &__editImage">*crop*</a>
				</div>
			</div>
		</div>
		<div class="jodit-form__group &__editTitle">
			<label>~Title~</label>
			<input type="text" class="jodit-input &__imageTitle"/>
		</div>
		<div class="jodit-form__group &__editAlt">
			<label>~Alternative~</label>
			<input type="text" class="jodit-input &__imageAlt"/>
		</div>
		<div class="jodit-form__group &__editLink">
			<label>~Link~</label>
			<input type="text" class="jodit-input &__imageLink"/>
		</div>
		<div class="jodit-form__group &__editLinkTarget">
			<label class="jodit_vertical_middle">
				<input type="checkbox" class="jodit-checkbox &__imageLinkOpenInNewTab"/>
				<span>~Open link in new tab~</span>
			</label>
		</div>`}},{key:"onStateImageSrcChange",value:function(){var i,s=this;return(i=function(){return function(d,g){var b,w,_,T,z={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return T={next:L(0),throw:L(1),return:L(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function L(D){return function(q){return function(Y){if(b)throw new TypeError("Generator is already executing.");for(;z;)try{if(b=1,w&&(_=2&Y[0]?w.return:Y[0]?w.throw||((_=w.return)&&_.call(w),0):w.next)&&!(_=_.call(w,Y[1])).done)return _;switch(w=0,_&&(Y=[2&Y[0],_.value]),Y[0]){case 0:case 1:_=Y;break;case 4:return z.label++,{value:Y[1],done:!1};case 5:z.label++,w=Y[1],Y=[0];continue;case 7:Y=z.ops.pop(),z.trys.pop();continue;default:if(!((_=(_=z.trys).length>0&&_[_.length-1])||Y[0]!==6&&Y[0]!==2)){z=0;continue}if(Y[0]===3&&(!_||Y[1]>_[0]&&Y[1]<_[3])){z.label=Y[1];break}if(Y[0]===6&&z.label<_[1]){z.label=_[1],_=Y;break}if(_&&z.label<_[2]){z.label=_[2],z.ops.push(Y);break}_[2]&&z.ops.pop(),z.trys.pop();continue}Y=g.call(d,z)}catch(X){Y=[6,X],w=0}finally{b=_=0}if(5&Y[0])throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}([D,q])}}}(this,function(d){return s.getElm("imageSrc").value=s.state.values.imageSrc,[2]})},function(){var d=this,g=arguments;return new Promise(function(b,w){var _=i.apply(d,g);function T(L){RL(_,b,w,T,z,"next",L)}function z(L){RL(_,b,w,T,z,"throw",L)}T(void 0)})})()}},{key:"onImageSrcChange",value:function(){this.state.values.imageSrc=this.getElm("imageSrc").value}},{key:"onEditImageClick",value:function(i){this.handlers.openImageEditor(),i.stopPropagation()}},{key:"onChangeImageClick",value:function(i){this.handlers.openImagePopup(this.getElm("changeImage")),i.stopPropagation()}},{key:"onStateTitleChange",value:function(){this.getElm("imageTitle").value=this.state.values.imageTitle}},{key:"onTitleChange",value:function(){this.state.values.imageTitle=this.getElm("imageTitle").value}},{key:"onStateAltChange",value:function(){this.getElm("imageAlt").value=this.state.values.imageAlt}},{key:"onAltChange",value:function(){this.state.values.imageAlt=this.getElm("imageAlt").value}},{key:"onStateImageLinkChange",value:function(){this.getElm("imageLink").value=this.state.values.imageLink}},{key:"onImageLinkChange",value:function(){this.state.values.imageLink=this.getElm("imageLink").value}},{key:"onStateImageLinkOpenInNewTabChange",value:function(){this.getElm("imageLinkOpenInNewTab").checked=this.state.values.imageLinkOpenInNewTab}},{key:"onImageLinkOpenInNewTabChange",value:function(){this.state.values.imageLinkOpenInNewTab=this.getElm("imageLinkOpenInNewTab").checked}},{key:"hideFieldByOptions",value:function(){var i=this,s=this.j.o,d=s.image;[["editSrc","editSrc"],["editTitle","editTitle"],["editAlt","editAlt"],["editLink","editLink"],["editLink","editLinkTarget"],["useImageEditor","editImage"]].forEach(function(T){var z=function(q,Y){return function(X){if(Array.isArray(X))return X}(q)||function(X,J){var $=X==null?null:typeof Symbol<"u"&&X[Symbol.iterator]||X["@@iterator"];if($!=null){var ee,ce,ge=[],ye=!0,Me=!1;try{for($=$.call(X);!(ye=(ee=$.next()).done)&&(ge.push(ee.value),!J||ge.length!==J);ye=!0);}catch(Ie){Me=!0,ce=Ie}finally{try{ye||$.return==null||$.return()}finally{if(Me)throw ce}}return ge}}(q,Y)||function(X,J){if(X){if(typeof X=="string")return TL(X,J);var $=Object.prototype.toString.call(X).slice(8,-1);return $==="Object"&&X.constructor&&($=X.constructor.name),$==="Map"||$==="Set"?Array.from($):$==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($)?TL(X,J):void 0}}(q,Y)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(T,2),L=z[0],D=z[1];be(i.getElm(D),"display",d[L]?null:"none")});var g=this.getElm("changeImage"),b=!!(s.filebrowser.ajax.url||s.uploader.url);be(g,"display",b?null:"none");var w=this.getElm("editImage"),_=!!s.filebrowser.ajax.url&&d.useImageEditor;be(w,"display",_?null:"none"),be(this.getElm("fixImage"),"display",b||_?null:"none")}}],u&&MK(h.prototype,u),c}(Kn);go([_e("state.values.imageSrc")],Un.prototype,"onStateImageSrcChange",null),go([_e("imageSrc:change")],Un.prototype,"onImageSrcChange",null),go([_e("editImage:click")],Un.prototype,"onEditImageClick",null),go([_e("changeImage:click")],Un.prototype,"onChangeImageClick",null),go([_e("state.values.imageTitle")],Un.prototype,"onStateTitleChange",null),go([_e("imageTitle:change")],Un.prototype,"onTitleChange",null),go([_e("state.values.imageAlt")],Un.prototype,"onStateAltChange",null),go([_e("imageAlt:change")],Un.prototype,"onAltChange",null),go([_e("state.values.imageLink")],Un.prototype,"onStateImageLinkChange",null),go([_e("imageLink:change")],Un.prototype,"onImageLinkChange",null),go([_e("state.values.imageLinkOpenInNewTab")],Un.prototype,"onStateImageLinkOpenInNewTabChange",null),go([_e("imageLinkOpenInNewTab:change")],Un.prototype,"onImageLinkOpenInNewTabChange",null),go([Ur("ready")],Un.prototype,"hideFieldByOptions",null),Un=go([Dt],Un);var Od=function(l){return/^[-+]?[0-9.]+(px)?$/.test(l.toString())?parseFloat(l.toString()):l},iC=function(l){return kn(l)?l?l+"px":l.toString():(l=cr(l),/^[0-9]+$/.test(l)?l+"px":l)};function ML(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function IK(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function qy(l){return qy=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},qy(l)}function aC(l,c){return aC=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},aC(l,c)}function IL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function LL(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LL=function(){return!!l})()}var Vn=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":IL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},gn=function(l){function c(i,s,d){var g;return function(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}(this,c),(g=function(b,w,_){return w=qy(w),function(T,z){return!z||IL(z)!=="object"&&typeof z!="function"?function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(T):z}(b,LL()?Reflect.construct(w,_||[],qy(b).constructor):w.apply(b,_))}(this,c,[i,{availableClasses:i.o.image.availableClasses}])).state=s,g.handlers=d,g}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&aC(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"UIImagePositionTab"}},{key:"render",value:function(i){var s,d=i.availableClasses;return`<div class="jodit-form__group &__editMargins">
			<label>~Margins~</label>
			<div class="jodit-grid jodit_vertical_middle">
				<input class="jodit_col-lg-1-5 jodit-input &__marginTop" type="text" placeholder="~top~"/>
				<a style="text-align: center;" class="jodit-properties__lock jodit_col-lg-1-5 &__lockMargin">*lock*</a>
				<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginRight" type="text" placeholder="~right~"/>
				<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginBottom" type="text" placeholder="~bottom~"/>
				<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginLeft" type="text" placeholder="~left~"/>
			</div>
		</div>
		<div class="jodit-form__group &__editAlign">
			<label>~Align~</label>
			<select class="jodit-select &__align">
				<option value="">~--Not Set--~</option>
				<option value="left">~Left~</option>
				<option value="center">~Center~</option>
				<option value="right">~Right~</option>
			</select>
		</div>
		<div class="jodit-form__group &__editStyle">
			<label>~Styles~</label>
			<input type="text" class="jodit-input &__style"/>
		</div>
		<div class="jodit-form__group &__editClass">
			<label>~Classes~</label>
			`.concat((s=[],d&&d.length>0?(s.push('<select class="jodit-input jodit-select &__classes">'),d.forEach(function(g){Se(g)?s.push('<option value="'.concat(g,'">').concat(g,"</option>")):s.push('<option value="'.concat(g[0],'">').concat(g[1],"</option>"))}),s.push("</select>")):s.push('<input type="text" class="jodit-input &__classes"/>'),s.join("")),`
		</div>
		<div class="jodit-form__group &__editId">
			<label>Id</label>
			<input type="text" class="jodit-input &__id"/>
		</div>
		<div
			class="jodit-form__group &__editBorderRadius"
		>
			<label>~Border radius~</label>
			<input type="number" class="jodit-input &__borderRadius"/>
		</div>`)}},{key:"onStateAlignChange",value:function(){this.getElm("align").value=this.state.values.align}},{key:"onChangeAlign",value:function(){var i=this.getElm("align");this.state.values.align=i.value}},{key:"onStateValuesBorderRadiusChange",value:function(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}},{key:"onChangeBorderRadius",value:function(){var i=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(i.value)}},{key:"onStateValuesIdChange",value:function(){this.getElm("id").value=this.state.values.id}},{key:"onChangeId",value:function(){var i=this.getElm("id");this.state.values.id=i.value}},{key:"onStateValuesStyleChange",value:function(){this.getElm("style").value=this.state.values.style}},{key:"onChangeStyle",value:function(){var i=this.getElm("style");this.state.values.style=i.value}},{key:"onStateValuesClassesChange",value:function(){this.getElm("classes").value=this.state.values.classes}},{key:"onChangClasses",value:function(){var i=this.getElm("classes");this.state.values.classes=i.value}},{key:"onLockMarginClick",value:function(i){this.state.marginIsLocked=!this.state.marginIsLocked,i.preventDefault()}},{key:"onChangeMarginIsLocked",value:function(){var i=this,s=this.getElm("marginBottom"),d=this.getElm("marginRight"),g=this.getElm("marginLeft"),b=this.getElm("lockMargin");if([d,s,g].forEach(function(_){fe(_,"disabled",i.state.marginIsLocked||null)}),b.innerHTML=Ke.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){var w=this.state.values.marginTop;this.state.values.marginRight=w,this.state.values.marginBottom=w,this.state.values.marginLeft=w}}},{key:"onStateValuesMarginChange",value:function(){var i=this.getElm("marginTop"),s=this.getElm("marginRight"),d=this.getElm("marginBottom"),g=this.getElm("marginLeft");i.value=this.state.values.marginTop.toString(),s.value=this.state.values.marginRight.toString(),d.value=this.state.values.marginBottom.toString(),g.value=this.state.values.marginLeft.toString()}},{key:"onChangeMargin",value:function(){var i=this.getElm("marginTop"),s=this.getElm("marginRight"),d=this.getElm("marginBottom"),g=this.getElm("marginLeft");this.state.values.marginTop=Od(i.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=Od(s.value),this.state.values.marginBottom=Od(d.value),this.state.values.marginLeft=Od(g.value))}},{key:"hideFieldByOptions",value:function(){var i=this,s=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(function(d){var g=function(_,T){return function(z){if(Array.isArray(z))return z}(_)||function(z,L){var D=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(D!=null){var q,Y,X=[],J=!0,$=!1;try{for(D=D.call(z);!(J=(q=D.next()).done)&&(X.push(q.value),!L||X.length!==L);J=!0);}catch(ee){$=!0,Y=ee}finally{try{J||D.return==null||D.return()}finally{if($)throw Y}}return X}}(_,T)||function(z,L){if(z){if(typeof z=="string")return ML(z,L);var D=Object.prototype.toString.call(z).slice(8,-1);return D==="Object"&&z.constructor&&(D=z.constructor.name),D==="Map"||D==="Set"?Array.from(D):D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D)?ML(z,L):void 0}}(_,T)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(d,2),b=g[0],w=g[1];be(i.getElm(w),"display",s[b]?null:"none")})}}],u&&IK(h.prototype,u),c}(Vr);function NL(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function LK(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function sC(l,c,h){return sC=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=Ed(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},sC(l,c,h||l)}function Ed(l){return Ed=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Ed(l)}function lC(l,c){return lC=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},lC(l,c)}function DL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function BL(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BL=function(){return!!l})()}Vn([Ur("ready"),_e("state.values.align")],gn.prototype,"onStateAlignChange",null),Vn([_e("align:change")],gn.prototype,"onChangeAlign",null),Vn([Ur("ready"),_e("state.values.borderRadius")],gn.prototype,"onStateValuesBorderRadiusChange",null),Vn([_e("borderRadius:change")],gn.prototype,"onChangeBorderRadius",null),Vn([Ur("ready"),_e("state.values.id")],gn.prototype,"onStateValuesIdChange",null),Vn([_e("id:change")],gn.prototype,"onChangeId",null),Vn([Ur("ready"),_e("state.values.style")],gn.prototype,"onStateValuesStyleChange",null),Vn([_e("style:change")],gn.prototype,"onChangeStyle",null),Vn([Ur("ready"),_e("state.values.classes")],gn.prototype,"onStateValuesClassesChange",null),Vn([_e("classes:change")],gn.prototype,"onChangClasses",null),Vn([_e("lockMargin:click")],gn.prototype,"onLockMarginClick",null),Vn([Ur("ready"),_e("state.marginIsLocked")],gn.prototype,"onChangeMarginIsLocked",null),Vn([Ur("ready"),_e(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],gn.prototype,"onStateValuesMarginChange",null),Vn([_e(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],gn.prototype,"onChangeMargin",null),Vn([Ur("ready")],gn.prototype,"hideFieldByOptions",null),gn=Vn([Dt],gn);var jc=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":DL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},os=function(l){function c(i,s,d,g){var b;return function(w,_){if(!(w instanceof _))throw new TypeError("Cannot call a class as a function")}(this,c),(b=function(w,_,T){return _=Ed(_),function(z,L){return!L||DL(L)!=="object"&&typeof L!="function"?function(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}(z):L}(w,BL()?Reflect.construct(_,T||[],Ed(w).constructor):_.apply(w,T))}(this,c,[i])).state=s,b.handlers=g,b.__mainTab=new Un(b.jodit,b.state,b.handlers),b.__positionTab=new gn(b.jodit,b.state,b.handlers),b.getElm("tabsBox").appendChild(gp(i,[{name:"Image",content:b.__mainTab},{name:"Advanced",content:b.__positionTab}],d)),b.setMod("lock-size",b.state.sizeIsLocked),b.append(b.__mainTab).append(b.__positionTab),b}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&lC(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"UIImagePropertiesForm"}},{key:"appendChildToContainer",value:function(){}},{key:"getElm",value:function(i){var s=sC(Ed(c.prototype),"getElm",this).call(this,i);if(s)return s;var d=!0,g=!1,b=void 0;try{for(var w,_=this.elements[Symbol.iterator]();!(d=(w=_.next()).done);d=!0){var T=w.value.getElm(i);if(T)return T}}catch(z){g=!0,b=z}finally{try{d||_.return==null||_.return()}finally{if(g)throw b}}return null}},{key:"render",value:function(){return`<form>
		<div class="jodit-grid jodit-grid_xs-column">
			<div class="jodit_col-lg-2-5 jodit_col-xs-5-5">
				<div class="&__view-box">
					<div class="&__imageView">
						<img class="&__imageViewSrc" src="" alt=""/>
					</div>
					<div class="jodit-form__group &__imageSizes">
						<input type="text" class="jodit-input &__imageWidth"/>
						<a class="&__lockSize">`.concat(Ke.get("lock"),`</a>
						<input type="text" class="&__imageHeight jodit-input"/>
					</div>
				</div>
			</div>
			<div class="jodit_col-lg-3-5 jodit_col-xs-5-5 &__tabsBox"></div>
		</div>
	</form>`)}},{key:"onChangeSizeIsLocked",value:function(){var i=this.getElm("lockSize"),s=this.getElm("imageWidth");i.innerHTML=Ke.get(this.state.sizeIsLocked?"lock":"unlock"),this.setMod("lock-size",this.state.sizeIsLocked),this.j.e.fire(s,"change")}},{key:"onLockSizeClick",value:function(){this.state.sizeIsLocked=!this.state.sizeIsLocked}},{key:"onStateValuesSizeChange",value:function(){var i=this.getElm("imageWidth"),s=this.getElm("imageHeight");i!==this.j.od.activeElement&&(i.value=this.state.values.imageWidth.toString()),s!==this.j.od.activeElement&&(s.value=this.state.values.imageHeight.toString())}},{key:"onImageWidthChange",value:function(i){var s=this.getElm("imageWidth"),d=this.getElm("imageHeight");if(!this.state.sizeIsLocked||!ri(s.value)||!ri(d.value))return this.state.values.imageWidth=s.value,void(this.state.values.imageHeight=d.value);var g=parseFloat(s.value),b=parseFloat(d.value);i.target===s?(this.state.values.imageWidth=g,this.state.values.imageHeight=Math.round(g/this.state.ratio)):(this.state.values.imageWidth=Math.round(b*this.state.ratio),this.state.values.imageHeight=b)}},{key:"onStateValuesImageSrcChange",value:function(){var i=this.state.values.imageSrc;if(i){fe(this.getElm("imageViewSrc"),"src",i);var s=new Image;s.src=i,this.state.image=s}}},{key:"hideFieldByOptions",value:function(){var i=this,s=this.j.o.image;[["editSize","imageSizes"],["showPreview","imageView"]].forEach(function(d){var g=function(_,T){return function(z){if(Array.isArray(z))return z}(_)||function(z,L){var D=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(D!=null){var q,Y,X=[],J=!0,$=!1;try{for(D=D.call(z);!(J=(q=D.next()).done)&&(X.push(q.value),!L||X.length!==L);J=!0);}catch(ee){$=!0,Y=ee}finally{try{J||D.return==null||D.return()}finally{if($)throw Y}}return X}}(_,T)||function(z,L){if(z){if(typeof z=="string")return NL(z,L);var D=Object.prototype.toString.call(z).slice(8,-1);return D==="Object"&&z.constructor&&(D=z.constructor.name),D==="Map"||D==="Set"?Array.from(D):D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D)?NL(z,L):void 0}}(_,T)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(d,2),b=g[0],w=g[1];be(i.getElm(w),"display",s[b]?null:"none")})}}],u&&LK(h.prototype,u),c}(Kn);function FL(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}function NK(l,c,h,u){var i=new Li(c),s=function(){i.close(),i.destruct()};i.setContent(K2(l,{upload:function(d){d.files&&d.files.length&&(h.values.imageSrc=d.baseurl+d.files[0]),s()},filebrowser:function(){var d,g=(d=function(b){return function(w,_){var T,z,L,D,q={label:0,sent:function(){if(1&L[0])throw L[1];return L[1]},trys:[],ops:[]};return D={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function Y(X){return function(J){return function($){if(T)throw new TypeError("Generator is already executing.");for(;q;)try{if(T=1,z&&(L=2&$[0]?z.return:$[0]?z.throw||((L=z.return)&&L.call(z),0):z.next)&&!(L=L.call(z,$[1])).done)return L;switch(z=0,L&&($=[2&$[0],L.value]),$[0]){case 0:case 1:L=$;break;case 4:return q.label++,{value:$[1],done:!1};case 5:q.label++,z=$[1],$=[0];continue;case 7:$=q.ops.pop(),q.trys.pop();continue;default:if(!((L=(L=q.trys).length>0&&L[L.length-1])||$[0]!==6&&$[0]!==2)){q=0;continue}if($[0]===3&&(!L||$[1]>L[0]&&$[1]<L[3])){q.label=$[1];break}if($[0]===6&&q.label<L[1]){q.label=L[1],L=$;break}if(L&&q.label<L[2]){q.label=L[2],q.ops.push($);break}L[2]&&q.ops.pop(),q.trys.pop();continue}$=_.call(w,q)}catch(ee){$=[6,ee],z=0}finally{T=L=0}if(5&$[0])throw $[1];return{value:$[0]?$[1]:void 0,done:!0}}([X,J])}}}(this,function(w){return b&&Nt(b.files)&&b.files.length&&(h.values.imageSrc=b.files[0],s()),[2]})},function(){var b=this,w=arguments;return new Promise(function(_,T){var z=d.apply(b,w);function L(q){FL(z,_,T,L,D,"next",q)}function D(q){FL(z,_,T,L,D,"throw",q)}L(void 0)})});return function(b){return g.apply(this,arguments)}}()},h.image,s)).open(function(){return Bn(u)})}function HL(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}function DK(l,c,h){return cC.apply(this,arguments)}function cC(){var l;return l=function(c,h,u){var i,s,d,g,b,w;return function(_,T){var z,L,D,q,Y={label:0,sent:function(){if(1&D[0])throw D[1];return D[1]},trys:[],ops:[]};return q={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(q[Symbol.iterator]=function(){return this}),q;function X(J){return function($){return function(ee){if(z)throw new TypeError("Generator is already executing.");for(;Y;)try{if(z=1,L&&(D=2&ee[0]?L.return:ee[0]?L.throw||((D=L.return)&&D.call(L),0):L.next)&&!(D=D.call(L,ee[1])).done)return D;switch(L=0,D&&(ee=[2&ee[0],D.value]),ee[0]){case 0:case 1:D=ee;break;case 4:return Y.label++,{value:ee[1],done:!1};case 5:Y.label++,L=ee[1],ee=[0];continue;case 7:ee=Y.ops.pop(),Y.trys.pop();continue;default:if(!((D=(D=Y.trys).length>0&&D[D.length-1])||ee[0]!==6&&ee[0]!==2)){Y=0;continue}if(ee[0]===3&&(!D||ee[1]>D[0]&&ee[1]<D[3])){Y.label=ee[1];break}if(ee[0]===6&&Y.label<D[1]){Y.label=D[1],D=ee;break}if(D&&Y.label<D[2]){Y.label=D[2],Y.ops.push(ee);break}D[2]&&Y.ops.pop(),Y.trys.pop();continue}ee=T.call(_,Y)}catch(ce){ee=[6,ce],L=0}finally{z=D=0}if(5&ee[0])throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}([J,$])}}}(this,function(_){switch(_.label){case 0:return[4,c.decode()];case 1:return _.sent(),i=be(c,"width",!0)||fe(c,"width")||!1,s=be(c,"height",!0)||fe(c,"height")||!1,h.imageWidth=i!==!1?Od(i):c.offsetWidth||c.naturalWidth,ri(h.imageWidth)?h.imageHeight=s!==!1?Od(s):c.offsetHeight||c.naturalHeight:h.imageHeight=s||"",d=h.imageWidth,g=h.imageHeight,b=parseFloat(d.toString()),ri(d)&&ri(g)?s===!1?(h.imageHeight=Math.round(b/u.ratio),u.sizeIsLocked=!0,[2]):(w=parseFloat(g.toString()),u.sizeIsLocked=Math.abs(b-w*u.ratio)<1,[2]):(u.sizeIsLocked=!1,[2])}})},cC=function(){var c=this,h=arguments;return new Promise(function(u,i){var s=l.apply(c,h);function d(b){HL(s,u,i,d,g,"next",b)}function g(b){HL(s,u,i,d,g,"throw",b)}d(void 0)})},cC.apply(this,arguments)}function UL(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}function uC(){var l;return l=function(c,h){var u,i;return function(s,d){var g,b,w,_,T={label:0,sent:function(){if(1&w[0])throw w[1];return w[1]},trys:[],ops:[]};return _={next:z(0),throw:z(1),return:z(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function z(L){return function(D){return function(q){if(g)throw new TypeError("Generator is already executing.");for(;T;)try{if(g=1,b&&(w=2&q[0]?b.return:q[0]?b.throw||((w=b.return)&&w.call(b),0):b.next)&&!(w=w.call(b,q[1])).done)return w;switch(b=0,w&&(q=[2&q[0],w.value]),q[0]){case 0:case 1:w=q;break;case 4:return T.label++,{value:q[1],done:!1};case 5:T.label++,b=q[1],q=[0];continue;case 7:q=T.ops.pop(),T.trys.pop();continue;default:if(!((w=(w=T.trys).length>0&&w[w.length-1])||q[0]!==6&&q[0]!==2)){T=0;continue}if(q[0]===3&&(!w||q[1]>w[0]&&q[1]<w[3])){T.label=q[1];break}if(q[0]===6&&T.label<w[1]){T.label=w[1],w=q;break}if(w&&T.label<w[2]){T.label=w[2],T.ops.push(q);break}w[2]&&T.ops.pop(),T.trys.pop();continue}q=d.call(s,T)}catch(Y){q=[6,Y],b=0}finally{g=w=0}if(5&q[0])throw q[1];return{value:q[0]?q[1]:void 0,done:!0}}([L,D])}}}(this,function(s){return u=h.sourceImage,i=h.values,function(d,g){d.style.cssFloat&&["left","right"].indexOf(d.style.cssFloat.toLowerCase())!==-1?g.align=be(d,"float"):be(d,"display")==="block"&&d.style.marginLeft==="auto"&&d.style.marginRight==="auto"?g.align="center":g.align=""}(u,i),i.borderRadius=parseInt(u.style.borderRadius||"0",10)||0,i.id=fe(u,"id")||"",i.imageTitle=fe(u,"title")||"",i.imageAlt=fe(u,"alt")||"",i.style=fe(u,"style")||"",i.classes=(fe(u,"class")||"").replace(/jodit_focused_image[\s]*/,""),function(d,g,b){var w=!0,_=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(function(T){var z=d.style.getPropertyValue(oi(T));if(!z)return _=!0,void(g[T]=0);/^[0-9]+(px)?$/.test(z)&&(z=parseInt(z,10)),g[T]=z,(_&&g[T]||w&&T!=="marginTop"&&g[T]!==g.marginTop)&&(w=!1)}),b.marginIsLocked=w}(u,i,h),function(d,g,b){var w=N.closest(d.sourceImage,"a",g.editor);w?(b.imageLink=fe(w,"href")||"",b.imageLinkOpenInNewTab=fe(w,"target")==="_blank"):(b.imageLink="",b.imageLinkOpenInNewTab=!1)}(h,c,i),i.imageSrc=fe(u,"src")||"",[2,DK(u,i,h)]})},uC=function(){var c=this,h=arguments;return new Promise(function(u,i){var s=l.apply(c,h);function d(b){UL(s,u,i,d,g,"next",b)}function g(b){UL(s,u,i,d,g,"throw",b)}d(void 0)})},uC.apply(this,arguments)}function VL(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}function dC(l,c,h){return dC=hC()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&og(g,s.prototype),g},dC.apply(null,arguments)}function BK(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function ng(l){return ng=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},ng(l)}function og(l,c){return og=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},og(l,c)}function qL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function fC(l){var c=typeof Map=="function"?new Map:void 0;return fC=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return dC(h,arguments,ng(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),og(i,h)},fC(l)}function hC(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hC=function(){return!!l})()}jc([Ur("ready"),_e("state.sizeIsLocked")],os.prototype,"onChangeSizeIsLocked",null),jc([_e("lockSize:click")],os.prototype,"onLockSizeClick",null),jc([Ur("ready"),_e(["state.values.imageWidth","state.values.imageHeight"])],os.prototype,"onStateValuesSizeChange",null),jc([_e(["imageWidth:change","imageHeight:change","imageWidth:keydown","imageHeight:keydown","imageWidth:mousedown","imageHeight:mousedown","imageWidth:paste","imageHeight:paste"]),Ii()],os.prototype,"onImageWidthChange",null),jc([Ur("ready"),_e("state.values.imageSrc")],os.prototype,"onStateValuesImageSrcChange",null),jc([Ur("ready")],os.prototype,"hideFieldByOptions",null),os=jc([Dt],os);var Yy=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":qL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},ig=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=ng(d),function(b,w){return!w||qL(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,hC()?Reflect.construct(d,g||[],ng(s).constructor):d.apply(s,g))}(this,c,arguments)).state={image:new Image,sourceImage:new Image,get ratio(){var s=this.image;return s.naturalWidth/s.naturalHeight||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},i.activeTabState={activeTab:"Image"},i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&og(i,s)}(c,l),h=c,u=[{key:"form",get:function(){var i=this;return new os(this.j,this.state,this.activeTabState,{openImageEditor:function(){return function(s,d){var g=fe(d.image,"src")||"",b=s.c.element("a"),w=function(){b.host===location.host||s.confirm("You can only edit your own images. Download this image on the host?",function(_){_&&s.uploader&&s.uploader.uploadRemoteImage(b.href.toString(),function(T){s.alert("The image has been successfully uploaded to the host!",function(){Se(T.newfilename)&&(d.values.imageSrc=T.baseurl+T.newfilename)})},function(T){s.alert("There was an error loading %s",T.message)})})};b.href=g,s.filebrowser.dataProvider.getPathByUrl(b.href.toString()).then(function(_){f2.call(s.filebrowser,b.href,_.name,_.path,_.source,function(){var T=new Date().getTime();d.values.imageSrc=g+(g.indexOf("?")!==-1?"":"?")+"&_tmp="+T.toString()},function(T){s.alert(T.message)})}).catch(function(_){s.alert(_.message,w)})}(i.j,i.state)},openImagePopup:function(s){return NK(i.j,i.dialog,i.state,s)}})}},{key:"dialog",get:function(){var i=this,s=this.j,d=s.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),g=this.__buttons;return g.check.onAction(function(){(function(b,w,_){var T=w.values,z=T.style,L=T.imageSrc,D=T.borderRadius,q=T.imageTitle,Y=T.imageAlt,X=T.imageLink,J=T.imageWidth,$=T.imageHeight,ee=T.marginTop,ce=T.marginRight,ge=T.marginBottom,ye=T.marginLeft,Me=T.imageLinkOpenInNewTab,Ie=T.align,st=T.classes,Ft=T.id,it=b.o;it.image.editStyle&&fe(_,"style",z||null),L?(fe(_,"src",L),_.style.borderRadius=D?D+"px":"",fe(_,"title",q||null),fe(_,"alt",Y||null),function(Qe,Or,rn,Cn){var It=N.closest(Or,"a",Qe.editor);rn?(It||(It=N.wrap(Or,"a",Qe.createInside)),fe(It,"href",rn),fe(It,"target",Cn?"_blank":null)):It&&It.parentNode&&It.parentNode.replaceChild(Or,It)}(b,_,X,Me),function(Qe,Or,rn,Cn){if(Or!==Qe.offsetWidth||rn!==Qe.offsetHeight){var It=Or?iC(Or):null,qn=rn?iC(rn):null;be(Qe,{width:It,height:It&&Cn?null:qn}),fe(Qe,"width",It&&ri(Or)&&fe(Qe,"width")?It:null),fe(Qe,"width")&&!Cn||(qn=null),fe(Qe,"height",qn)}}(_,J,$,w.sizeIsLocked),b.o.image.editMargins&&function(Qe,Or,rn,Cn,It,qn,ss){var ba=[Or,rn,Cn,It],ls=function(Jn,Yn){var ui=be(qn,Jn),Vi=iC(Yn);ui.toString()!==Vi.toString()&&be(qn,Jn,Vi)};if(ss)ls("margin",Or);else{var zo=["margin-top","margin-right","margin-bottom","margin-left"];ba.forEach(function(Jn,Yn){ls(zo[Yn],Jn)})}}(0,ee,ce,ge,ye,_,w.marginIsLocked),it.image.editClass&&fe(_,"class",st||null),it.image.editId&&fe(_,"id",Ft||null),it.image.editAlign&&Tb(_,Ie)):N.safeRemove(_)})(s,i.state,i.state.sourceImage),s.synchronizeValues(),d.close()}),g.remove.onAction(function(){s.s.removeNode(i.state.sourceImage),d.close()}),g.cancel.onAction(function(){d.close()}),d.setHeader(s.i18n("Image properties")),d.setContent(this.form),d.setFooter([[g.cancel,g.remove],g.check]),s.e.on(d,"afterClose",function(){i.state.image.parentNode&&s.o.image.selectImageAfterClose&&s.s.select(i.state.sourceImage)}),d.setSize(s.o.image.dialogWidth),Fh(s,d.container),d}},{key:"__buttons",get:function(){var i=this.j;return{check:sr(i,"ok","Apply","primary"),remove:sr(i,"bin","Delete"),cancel:sr(i,"cancel","Cancel")}}},{key:"open",value:function(){var i=this;return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise(function(s,d){return function(g,b){return uC.apply(this,arguments)}(i.j,i.state).then(s,d)}).catch(function(s){Xs(s)||i.dialog.message.error(s.message)}).finally(function(){return i.__unlock()}),!1}},{key:"__lock",value:function(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(function(i){return i.state.disabled=!0})}},{key:"__unlock",value:function(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(function(i){return i.state.disabled=!1})}},{key:"afterInit",value:function(i){var s=this,d=this;i.e.on("afterConstructor changePlace",function(){i.e.off(i.editor,".imageproperties").on(i.editor,"dblclick.imageproperties",function(g){var b=g.target;if(N.isTag(b,"img"))if(i.o.image.openOnDblClick){if(s.j.e.fire("openOnDblClick",b)===!1)return;d.state.sourceImage=b,d.state.image=b.cloneNode(!0),i.o.readonly||(g.stopImmediatePropagation(),g.preventDefault(),d.open())}else g.stopImmediatePropagation(),i.s.select(b)})}).on("openImageProperties.imageproperties",function(g){d.state.sourceImage=g,s.state.image=g.cloneNode(!0),s.open()})}},{key:"onStateValuesImageSrcChange",value:function(){var i,s=this;return(i=function(){var d,g,b,w,_;return function(T,z){var L,D,q,Y,X={label:0,sent:function(){if(1&q[0])throw q[1];return q[1]},trys:[],ops:[]};return Y={next:J(0),throw:J(1),return:J(2)},typeof Symbol=="function"&&(Y[Symbol.iterator]=function(){return this}),Y;function J($){return function(ee){return function(ce){if(L)throw new TypeError("Generator is already executing.");for(;X;)try{if(L=1,D&&(q=2&ce[0]?D.return:ce[0]?D.throw||((q=D.return)&&q.call(D),0):D.next)&&!(q=q.call(D,ce[1])).done)return q;switch(D=0,q&&(ce=[2&ce[0],q.value]),ce[0]){case 0:case 1:q=ce;break;case 4:return X.label++,{value:ce[1],done:!1};case 5:X.label++,D=ce[1],ce=[0];continue;case 7:ce=X.ops.pop(),X.trys.pop();continue;default:if(!((q=(q=X.trys).length>0&&q[q.length-1])||ce[0]!==6&&ce[0]!==2)){X=0;continue}if(ce[0]===3&&(!q||ce[1]>q[0]&&ce[1]<q[3])){X.label=ce[1];break}if(ce[0]===6&&X.label<q[1]){X.label=q[1],q=ce;break}if(q&&X.label<q[2]){X.label=q[2],X.ops.push(ce);break}q[2]&&X.ops.pop(),X.trys.pop();continue}ce=z.call(T,X)}catch(ge){ce=[6,ge],D=0}finally{L=q=0}if(5&ce[0])throw ce[1];return{value:ce[0]?ce[1]:void 0,done:!0}}([$,ee])}}}(this,function(T){switch(T.label){case 0:if(d=s.state,g=d.image,b=d.values,!g.src)return[2];T.label=1;case 1:return T.trys.push([1,3,4,5]),s.__lock(),[4,g.decode()];case 2:return T.sent(),s.state.sizeIsLocked&&ri(b.imageWidth)&&(w=parseFloat(b.imageWidth.toString()),b.imageHeight=Math.round(w/s.state.ratio)),s.j.e.fire("updateImageProperties.imageproperties",g),[3,5];case 3:return _=T.sent(),s.j.alert(_.message),[3,5];case 4:return s.__unlock(),[7];case 5:return[2]}})},function(){var d=this,g=arguments;return new Promise(function(b,w){var _=i.apply(d,g);function T(L){VL(_,b,w,T,z,"next",L)}function z(L){VL(_,b,w,T,z,"throw",L)}T(void 0)})})()}},{key:"beforeDestruct",value:function(i){var s,d,g;Object.values((s=Zn(this,"__buttons"))!==null&&s!==void 0?s:{}).forEach(function(b){return b.destruct()}),(d=Zn(this,"dialog"))===null||d===void 0||d.destruct(),(g=Zn(this,"form"))===null||g===void 0||g.destruct(),i.e.off(i.editor,".imageproperties").off(".imageproperties")}}],u&&BK(h.prototype,u),c}(fC(ut));Yy([vr],ig.prototype,"form",null),Yy([vr],ig.prototype,"dialog",null),Yy([vr],ig.prototype,"__buttons",null),Yy([_e("state.image")],ig.prototype,"onStateValuesImageSrcChange",null),Ve.add("imageProperties",ig);var YL=function(l,c){return"".concat(N.isCell(c)?"padding":"margin").concat(l==="rtl"?"Right":"Left")};Ke.set("indent",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> `).set("outdent",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> `),de.prototype.controls.indent={tooltip:"Increase Indent"},de.prototype.controls.outdent={isDisabled:function(l){var c=l.s.current();if(c){var h=N.closest(c,N.isBlock,l.editor);if(h){var u=YL(l.o.direction,h);return!h.style[u]||parseInt(h.style[u],10)<=0}}return!0},tooltip:"Decrease Indent"},de.prototype.indentMargin=10;var WL=function(l,c,h,u){if(c&&!l.has(c)){var i=YL(h.o.direction,c);l.add(c);var s=c.style[i]?parseInt(c.style[i],10):0;s+=h.o.indentMargin*(u==="outdent"?-1:1),c.style[i]=s>0?s+"px":"",fe(c,"style")||fe(c,"style",null)}};function pC(l,c,h){return pC=mC()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&sg(g,s.prototype),g},pC.apply(null,arguments)}function FK(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function ag(l){return ag=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},ag(l)}function sg(l,c){return sg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},sg(l,c)}function XL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function gC(l){var c=typeof Map=="function"?new Map:void 0;return gC=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return pC(h,arguments,ag(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),sg(i,h)},gC(l)}function mC(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mC=function(){return!!l})()}Ve.add("indent",function(l){l.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});var c=function(h){var u=new Set,i=l.o,s=i.enter,d=i.enterBlock,g=s.toLowerCase()===kb,b=l.s.current();if(g&&l.s.isCollapsed()&&b){var w=N.wrapNextInline(b,d,l);return WL(u,w,l,h),!1}return l.s.eachSelection(function(_){l.s.save();var T=!!_&&N.up(_,N.isBlock,l.editor);if(!T&&_&&(T=Mr(g?N.wrapNextInline:N.wrapInline,_,g?d:s.toLowerCase(),l)),!T)return l.s.restore(),!1;WL(u,T,l,h),l.s.restore()}),l.synchronizeValues(),!1};l.registerCommand("indent",{exec:c,hotkeys:["ctrl+]","cmd+]"]}),l.registerCommand("outdent",{exec:c,hotkeys:["ctrl+[","cmd+["]})}),Ke.set("justify",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg> `),de.prototype.controls.align={name:"left",tooltip:"Align",update:function(l,c){var h=c.control,u=l.s.current();if(u){var i=be(N.closest(u,N.isBlock,l.editor)||l.editor,"text-align").toString();h.defaultValue&&h.defaultValue.indexOf(i)!==-1&&(i="left");var s=h.list,d=h.data;d&&d.currentValue!==i&&s&&(tr(s)?s[i]:s.includes(i))&&(l.o.textIcons||h.component==="select"?c.state.text=i:c.state.icon.name=i,d.currentValue=i)}},isActive:function(l,c){var h=l.s.current();if(!h||!c.control.defaultValue)return!1;var u=N.closest(h,N.isBlock,l.editor)||l.editor;return c.control.defaultValue.indexOf(be(u,"text-align").toString())===-1},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},de.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},de.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},de.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},de.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},Ve.add("justify",function(l){l.registerButton({name:"align",group:"indent"});var c=function(h){return l.s.focus(),l.s.eachSelection(function(u){if(u){var i=N.up(u,N.isBlock,l.editor);i||(i=N.wrapInline(u,l.o.enterBlock,l)),J_(h,i)}}),!1};l.registerCommand("justifyfull",c),l.registerCommand("justifyright",c),l.registerCommand("justifyleft",c),l.registerCommand("justifycenter",c)});var GL=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=ag(s=c),function(g,b){return!b||XL(b)!=="object"&&typeof b!="function"?function(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(g):b}(i,mC()?Reflect.construct(s,d||[],ag(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&sg(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(i){}},{key:"beforeDestruct",value:function(i){}},{key:"onKeyDownArrow",value:function(i){var s;if(i.key===ac&&this.j.selection.isCollapsed()){var d=this.j.selection.range,g=d.endContainer,b=d.endOffset;if(N.isText(g)&&((s=g.nodeValue)===null||s===void 0?void 0:s.length)===b){var w=g.parentNode;N.isInlineBlock(w)&&!N.findNotEmptyNeighbor(w,!1,this.j.editor)&&N.after(w,this.j.createInside.text(wb))}}}}])&&FK(h.prototype,u),c}(gC(ut));function vC(l,c,h){return vC=yC()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&cg(g,s.prototype),g},vC.apply(null,arguments)}function HK(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function lg(l){return lg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},lg(l)}function cg(l,c){return cg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},cg(l,c)}function $L(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function bC(l){var c=typeof Map=="function"?new Map:void 0;return bC=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return vC(h,arguments,lg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),cg(i,h)},bC(l)}function yC(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yC=function(){return!!l})()}(function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":XL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);s>3&&d&&Object.defineProperty(c,h,d)})([_e(":keydown")],GL.prototype,"onKeyDownArrow",null),Ve.add("keyArrowOutside",GL),de.prototype.limitWords=!1,de.prototype.limitChars=!1,de.prototype.limitHTML=!1;var ZL=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":$L(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},xC=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=lg(s=c),function(g,b){return!b||$L(b)!=="object"&&typeof b!="function"?function(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(g):b}(i,yC()?Reflect.construct(s,d||[],lg(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&cg(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(i){var s=this,d=i.o,g=d.limitWords,b=d.limitChars;if(i&&(g||b)){var w=null;i.e.off(".limit").on("beforePaste.limit",function(){w=i.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",function(){if(s.__shouldDenyInput(!0)&&w)return i.history.snapshot.restore(w),i.e.fire("denyPaste.limit"),!1})}}},{key:"shouldPreventInsertHTML",value:function(i){return(!i||!(I5.includes(i.key)||i.ctrlKey||i.metaKey))&&this.__shouldDenyInput(!1)}},{key:"__shouldDenyInput",value:function(i){var s=this.jodit,d=s.o,g=d.limitWords,b=d.limitChars,w=s.o.limitHTML?s.value:s.text,_=this.__splitWords(w);if(g&&KL(_.length,g,i))return s.e.fire("denyWords.limit limit.limit"),!0;var T=!!(b&&KL(_.join("").length,b,i));return T&&s.e.fire("denyChars.limit limit.limit"),T}},{key:"checkPreventKeyPressOrPaste",value:function(i){if(this.shouldPreventInsertHTML(i))return!1}},{key:"checkPreventChanging",value:function(i,s){var d=this.jodit;this.__shouldDenyInput(!0)&&(d.value=s)}},{key:"__splitWords",value:function(i){return i.replace(Ya(),"").split(Eh()).filter(function(s){return s.length})}},{key:"beforeDestruct",value:function(i){i.e.off(".limit")}}])&&HK(h.prototype,u),c}(bC(ut));function KL(l,c,h){return h?l>c:l>=c}ZL([Ce],xC.prototype,"checkPreventKeyPressOrPaste",null),ZL([Ce],xC.prototype,"checkPreventChanging",null),Ve.add("limit",xC),de.prototype.defaultLineHeight=null,Ke.set("line-height",'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg> '),de.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:function(l,c,h){var u=h.control;return lk(l,c,{control:u},function(i){return i})}};const UK={"Line height":"ارتفاع الخط"},VK={"Line height":"Výška čáry"},qK={"Line height":"Zeilenhöhe"},YK={"Line height":"Altura de la línea"},WK={"Line height":"ارتفاع خط"},XK={"Line height":"Rivin korkeus"},GK={"Line height":"Hauteur de ligne"},$K={"Line height":"גובה שורה"},ZK={"Line height":"Vonal magassága"},KK={"Line height":"Tinggi baris"},JK={"Line height":"Altezza linea"},QK={"Line height":"ラインの高さ"},eJ={"Line height":"선 높이"},tJ={"Line height":"Зураасны өндөр"},rJ={"Line height":"Lijnhoogte"},nJ={"Line height":"Wysokość linii"},oJ={"Line height":"Altura da linha"},iJ={"Line height":"Высота линии"},aJ={"Line height":"Çizgi yüksekliği"},sJ={"Line height":"Висота лінії"},lJ={"Line height":"线高"},cJ={"Line height":"行高"};function wC(l,c,h){return wC=kC()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&dg(g,s.prototype),g},wC.apply(null,arguments)}function uJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function ug(l){return ug=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},ug(l)}function dg(l,c){return dg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},dg(l,c)}function JL(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function _C(l){var c=typeof Map=="function"?new Map:void 0;return _C=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return wC(h,arguments,ug(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),dg(i,h)},_C(l)}function kC(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kC=function(){return!!l})()}var QL=function(l){function c(i){var s;return function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(d,g,b){return g=ug(g),function(w,_){return!_||JL(_)!=="object"&&typeof _!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(w):_}(d,kC()?Reflect.construct(g,b||[],ug(d).constructor):g.apply(d,b))}(this,c,[i])).buttons=[{name:"lineHeight",group:"font"}],$u(Re),s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&dg(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(i){be(i.editor,{lineHeight:i.o.defaultLineHeight}),i.registerCommand("applyLineHeight",this.applyLineHeight)}},{key:"applyLineHeight",value:function(i,s,d){var g,b=this.j,w=b.s,_=b.createInside,T=b.editor,z=b.o;w.isFocused()||w.focus(),w.save();var L=function(q){var Y=N.closest(q,N.isBlock,T);Y||(Y=N.wrap(q,z.enter,_));var X=be(Y,"lineHeight");g===void 0&&(g=X.toString()!==d.toString()),be(Y,"lineHeight",g?d:null)};try{if(w.isCollapsed()){var D=_.fake();w.insertNode(D,!1,!1),L(D),N.safeRemove(D)}else w.eachSelection(L)}finally{w.restore()}}},{key:"beforeDestruct",value:function(i){be(i.editor,{lineHeight:null})}}])&&uJ(h.prototype,u),c}(_C(ut));function jC(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function SC(l,c,h){if(!c.isInDestruct){(function(i){return!!(i&&i.type==="drop")})(l)&&c.s.insertCursorAtPoint(l.clientX,l.clientY);var u=c.e.fire("beforePasteInsert",h);!zr(u)&&(Se(u)||kn(u)||N.isNode(u))&&(h=u),Se(h)&&(h=function(i){var s=(i=i.replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i);s!==-1&&(i=i.substring(s+20));var d=i.search(/<!--EndFragment-->/i);return d!==-1&&(i=i.substring(0,d)),i}(h)),c.s.insertHTML(h)}}function eN(l,c,h,u,i){if(l.e.fire("beforeOpenPasteDialog",c,h,u,i)!==!1){var s=l.confirm('<div style="word-break: normal; white-space: normal">'.concat(l.i18n(c),"</div>"),l.i18n(h)),d=i.map(function(b){var w=b.text,_=b.value;return sr(l,{text:w,name:w.toLowerCase(),tabIndex:0}).onAction(function(){s.close(),u(_)})});s.e.one(s,"afterClose",function(){l.s.isFocused()||l.s.focus()});var g=sr(l,{text:"Cancel",tabIndex:0}).onAction(function(){s.close()});return s.setFooter(function(b){return function(w){if(Array.isArray(w))return jC(w)}(b)||function(w){if(typeof Symbol<"u"&&w[Symbol.iterator]!=null||w["@@iterator"]!=null)return Array.from(w)}(b)||function(w,_){if(w){if(typeof w=="string")return jC(w,_);var T=Object.prototype.toString.call(w).slice(8,-1);return T==="Object"&&w.constructor&&(T=w.constructor.name),T==="Map"||T==="Set"?Array.from(T):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?jC(w,_):void 0}}(b)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(d).concat([g])),d[0].focus(),d[0].state.variant="primary",l.e.fire("afterOpenPasteDialog",s,c,h,u,i),s}}function tN(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}(function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":JL(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);s>3&&d&&Object.defineProperty(c,h,d)})([Ce],QL.prototype,"applyLineHeight",null),Ve.add("lineHeight",QL),de.prototype.mediaFakeTag="jodit-media",de.prototype.mediaInFakeBlock=!0,de.prototype.mediaBlocks=["video","audio"],Ve.add("media",function(l){var c="jodit_fake_wrapper",h=l.options,u=h.mediaFakeTag,i=h.mediaBlocks,s=h.mediaInFakeBlock;s&&l.e.on("afterGetValueFromEditor",function(d){var g=new RegExp("<".concat(u,"[^>]+data-").concat(c,"[^>]+>([^]+?)</").concat(u,">"),"ig");g.test(d.value)&&(d.value=d.value.replace(g,"$1"))}).on("change afterInit afterSetMode changePlace",l.async.debounce(function(){l.isDestructed||l.getMode()===Nn||Ct(i.join(","),l.editor).forEach(function(d){St(d,c)||(St(d,c,!0),function(g){if(g.parentNode&&fe(g.parentNode,"data-jodit_iframe_wrapper"))g=g.parentNode;else{var b=l.createInside.element(u,function(w,_){return _ in w?Object.defineProperty(w,_,{value:1,enumerable:!0,configurable:!0,writable:!0}):w[_]=1,w}({"data-jodit-temp":1,contenteditable:!1,draggable:!0},"data-".concat(c)));fe(b,"style",fe(g,"style")),b.style.display=g.style.display==="inline-block"?"inline-block":"block",b.style.width=g.offsetWidth+"px",b.style.height=g.offsetHeight+"px",g.parentNode&&g.parentNode.insertBefore(b,g),b.appendChild(g),g=b}l.e.off(g,"mousedown.select touchstart.select").on(g,"mousedown.select touchstart.select",function(){l.s.setCursorAfter(g)})}(d))})},l.defaultTimeout))}),de.prototype.mobileTapTimeout=300,de.prototype.toolbarAdaptive=!0,de.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},`
`,{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],de.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},`
`,{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],de.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],de.prototype.controls.dots={mode:Nn+gr,popup:function(l,c,h,u){var i=u.control.data;return i===void 0&&(i={toolbar:fy(l),rebuild:function(){var s,d;if(u){var g=l.e.fire("getDiffButtons.mobile",u.closest(Ni));if(g&&i){i.toolbar.build(Dn(g));var b=((d=(s=l.toolbar)===null||s===void 0?void 0:s.firstButton)===null||d===void 0?void 0:d.container.offsetWidth)||36;i.toolbar.container.style.width=3*(b+4)+"px"}}}},u.control.data=i),i.rebuild(),i.toolbar},tooltip:"Show all"},Ve.add("mobile",function(l){var c=0,h=Dn(l.o.buttons);l.o.mobileTapTimeout&&l.e.on("touchend",function(u){if(u.changedTouches&&u.changedTouches.length){var i=new Date().getTime(),s=i-c;s>l.o.mobileTapTimeout&&(c=i,s<1.5*l.o.mobileTapTimeout&&l.s.insertCursorAtPoint(u.clientX,u.clientY))}}),l.e.on("getDiffButtons.mobile",function(u){if(u===l.toolbar){var i=mz(Dn(l.o.buttons),l),s=mz(h,l);return mr(i).reduce(function(d,g){return s.has(g)||d.push(g),d},[])}}),l.o.toolbarAdaptive&&l.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",function(){var u,i;if(l.o.toolbar){var s=((u=l.container.parentElement)!==null&&u!==void 0?u:l.container).offsetWidth,d=l.isFullSize||s>=l.o.sizeLG?Dn(l.o.buttons):s>=l.o.sizeMD?Dn(l.o.buttonsMD):s>=l.o.sizeSM?Dn(l.o.buttonsSM):Dn(l.o.buttonsXS);d.toString()!==h.toString()&&(h=d,l.e.fire("closeAllPopups"),(i=l.toolbar)===null||i===void 0||i.setRemoveButtons(l.o.removeButtons).build(h.concat(l.o.extraButtons)))}}).on(l.ow,"load resize",function(){return l.e.fire("recalcAdaptive")})}),de.prototype.askBeforePasteHTML=!0,de.prototype.processPasteHTML=!0,de.prototype.scrollToPastedContent=!0,de.prototype.pasteExcludeStripTags=["br","hr"],de.prototype.pasteHTMLActionList=[{value:Fu,text:"Keep"},{value:Ph,text:"Insert as Text"},{value:zh,text:"Insert only Text"}],de.prototype.memorizeChoiceWhenPasteFragment=!1,de.prototype.nl2brInPlainText=!0;var rN="pasteStorage";function CC(l,c,h){return CC=OC()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&hg(g,s.prototype),g},CC.apply(null,arguments)}function dJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function fg(l){return fg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},fg(l)}function hg(l,c){return hg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},hg(l,c)}function nN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function AC(l){var c=typeof Map=="function"?new Map:void 0;return AC=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return CC(h,arguments,fg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),hg(i,h)},AC(l)}function OC(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OC=function(){return!!l})()}de.prototype.controls.paste={tooltip:"Paste from clipboard",exec:function(l,c,h){var u,i=h.control;return(u=function(){var s,d,g,b,w;return function(_,T){var z,L,D,q,Y={label:0,sent:function(){if(1&D[0])throw D[1];return D[1]},trys:[],ops:[]};return q={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(q[Symbol.iterator]=function(){return this}),q;function X(J){return function($){return function(ee){if(z)throw new TypeError("Generator is already executing.");for(;Y;)try{if(z=1,L&&(D=2&ee[0]?L.return:ee[0]?L.throw||((D=L.return)&&D.call(L),0):L.next)&&!(D=D.call(L,ee[1])).done)return D;switch(L=0,D&&(ee=[2&ee[0],D.value]),ee[0]){case 0:case 1:D=ee;break;case 4:return Y.label++,{value:ee[1],done:!1};case 5:Y.label++,L=ee[1],ee=[0];continue;case 7:ee=Y.ops.pop(),Y.trys.pop();continue;default:if(!((D=(D=Y.trys).length>0&&D[D.length-1])||ee[0]!==6&&ee[0]!==2)){Y=0;continue}if(ee[0]===3&&(!D||ee[1]>D[0]&&ee[1]<D[3])){Y.label=ee[1];break}if(ee[0]===6&&Y.label<D[1]){Y.label=D[1],D=ee;break}if(D&&Y.label<D[2]){Y.label=D[2],Y.ops.push(ee);break}D[2]&&Y.ops.pop(),Y.trys.pop();continue}ee=T.call(_,Y)}catch(ce){ee=[6,ce],L=0}finally{z=D=0}if(5&ee[0])throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}([J,$])}}}(this,function(_){switch(_.label){case 0:if(i.name===rN)return l.execCommand("showPasteStorage"),[2];if(l.s.focus(),s="",d=!0,!navigator.clipboard)return[3,11];_.label=1;case 1:return _.trys.push([1,6,,7]),[4,navigator.clipboard.read()];case 2:return(g=_.sent())&&g.length?[4,g[0].getType(Ws)]:[3,5];case 3:return b=_.sent(),[4,new Response(b).text()];case 4:s=_.sent(),_.label=5;case 5:return d=!1,[3,7];case 6:return _.sent(),[3,7];case 7:if(!d)return[3,11];_.label=8;case 8:return _.trys.push([8,10,,11]),[4,navigator.clipboard.readText()];case 9:return s=_.sent(),d=!1,[3,11];case 10:return _.sent(),[3,11];case 11:return d&&(s=l.buffer.get(ua)||"",d=s.length===0),w=l.value,d?(l.ed.execCommand("paste"),!(d=w===l.value)&&l.e.fire("afterPaste")):s.length?(SC(null,l,s),l.e.fire("afterPaste")):d&&l.alert("Your browser doesn't support direct access to the clipboard.",function(){l.s.focus()}),[2]}})},function(){var s=this,d=arguments;return new Promise(function(g,b){var w=u.apply(s,d);function _(z){tN(w,g,b,_,T,"next",z)}function T(z){tN(w,g,b,_,T,"throw",z)}_(void 0)})})()},list:function(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}({},rN,"Paste Storage"),isChildDisabled:function(l){return l.e.fire("pasteStorageList")<2}};var oN=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":nN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},EC=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=fg(d),function(b,w){return!w||nN(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,OC()?Reflect.construct(d,g||[],fg(s).constructor):d.apply(s,g))}(this,c,arguments)).pasteStack=new wP(20),i._isDialogOpened=!1,i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&hg(i,s)}(c,l),h=c,u=[{key:"afterInit",value:function(i){var s=this;i.e.on("paste.paste",this.onPaste).on("pasteStack.paste",function(d){return s.pasteStack.push(d)}),i.o.nl2brInPlainText&&this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}},{key:"beforeDestruct",value:function(i){i.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}},{key:"onPaste",value:function(i){try{if(this.customPasteProcess(i)===!1||this.j.e.fire("beforePaste",i)===!1)return i.preventDefault(),!1;this.defaultPasteProcess(i)}finally{this.j.e.fire("afterPaste",i)}}},{key:"customPasteProcess",value:function(i){if(this.j.o.processPasteHTML){var s=cc(i),d=[s==null?void 0:s.getData(Ws),s==null?void 0:s.getData(Rh),s==null?void 0:s.getData(L5)],g=!0,b=!1,w=void 0;try{for(var _,T=d[Symbol.iterator]();!(g=(_=T.next()).done);g=!0){var z=_.value;if(Mh(z)&&(this.j.e.fire("processHTML",i,z,{plain:d[0],html:d[1],rtf:d[2]})||this.processHTML(i,z)))return!1}}catch(L){b=!0,w=L}finally{try{g||T.return==null||T.return()}finally{if(b)throw w}}}}},{key:"defaultPasteProcess",value:function(i){var s=cc(i),d=(s==null?void 0:s.getData(Rh))||(s==null?void 0:s.getData(Ws));if(s&&d&&cr(d)!==""){var g=this.j.e.fire("processPaste",i,d,function(b){var w=b.types,_="";if(Nt(w)||{}.toString.call(w)==="[object DOMStringList]")for(var T=0;T<w.length;T+=1)_+=w[T]+";";else _=(w||Ws).toString()+";";return _}(s));g!==void 0&&(d=g),(Se(d)||N.isNode(d))&&this.__insertByType(i,d,this.j.o.defaultActionOnPaste),i.preventDefault(),i.stopPropagation()}}},{key:"processHTML",value:function(i,s){var d=this;if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){var g=this.pasteStack.find(function(w){return w.html===s});if(g)return this.__insertByType(i,s,g.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;var b=eN(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",function(w){d._isDialogOpened=!1,d.__insertByType(i,s,w)},this.j.o.pasteHTMLActionList);return b&&(this._isDialogOpened=!0,b.e.on("beforeClose",function(){d._isDialogOpened=!1})),!0}},{key:"__insertByType",value:function(i,s,d){if(this.pasteStack.push({html:s,action:d}),Se(s))switch(this.j.buffer.set(ua,s),d){case D5:s=Ib(s);break;case zh:s=qu(s,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case Ph:s=EP(s);break;default:var g=this.j.e.fire("onCustomPasteHTMLOption",d,s,i);typeof g=="string"&&(s=g)}SC(i,this.j,s)}},{key:"onProcessPasteReplaceNl2Br",value:function(i,s,d){if(d===Ws+";"&&!Mh(s))return TP(s)}}],u&&dJ(h.prototype,u),c}(AC(ut));function TC(l,c,h){return TC=PC()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&gg(g,s.prototype),g},TC.apply(null,arguments)}function fJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function pg(l){return pg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},pg(l)}function gg(l,c){return gg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},gg(l,c)}function iN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function RC(l){var c=typeof Map=="function"?new Map:void 0;return RC=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return TC(h,arguments,pg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),gg(i,h)},RC(l)}function PC(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PC=function(){return!!l})()}oN([Ce],EC.prototype,"onPaste",null),oN([Ce],EC.prototype,"onProcessPasteReplaceNl2Br",null),Ve.add("paste",EC),de.prototype.askBeforePasteFromWord=!0,de.prototype.processPasteFromWord=!0,de.prototype.defaultActionOnPasteFromWord=null,de.prototype.pasteFromWordActionList=[{value:Fu,text:"Keep"},{value:Ph,text:"Clean"},{value:zh,text:"Insert only Text"}];var zC=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=pg(s=c),function(g,b){return!b||iN(b)!=="object"&&typeof b!="function"?function(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(g):b}(i,PC()?Reflect.construct(s,d||[],pg(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&gg(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(i){}},{key:"beforeDestruct",value:function(i){}},{key:"processWordHTML",value:function(i,s,d){var g=this,b=this.j,w=b.o,_=w.processPasteFromWord,T=w.askBeforePasteFromWord,z=w.defaultActionOnPasteFromWord,L=w.defaultActionOnPaste,D=w.pasteFromWordActionList;return!(!_||!J5(s)||(T?eN(b,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",function(q){g.insertFromWordByType(i,s,q,d)},D):this.insertFromWordByType(i,s,z||L,d),0))}},{key:"insertFromWordByType",value:function(i,s,d,g){var b;switch(d){case Fu:s=OP(s);var w=(b=this.j.events)===null||b===void 0?void 0:b.fire("beautifyHTML",s);Se(w)&&(s=w);break;case Ph:s=Ib(s);break;case zh:s=qu(Ib(s))}SC(i,this.j,s)}}])&&fJ(h.prototype,u),c}(RC(ut));function MC(l,c,h){return MC=LC()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&vg(g,s.prototype),g},MC.apply(null,arguments)}function hJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function mg(l){return mg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},mg(l)}function vg(l,c){return vg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},vg(l,c)}function IC(l){var c=typeof Map=="function"?new Map:void 0;return IC=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return MC(h,arguments,mg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),vg(i,h)},IC(l)}function LC(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LC=function(){return!!l})()}zC.requires=["paste"],function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":iN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);s>3&&d&&Object.defineProperty(c,h,d)}([_e(":processHTML")],zC.prototype,"processWordHTML",null),Ve.add("pasteFromWord",zC);var pJ=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=mg(d),function(b,w){return!w||((_=w)&&typeof Symbol<"u"&&_.constructor===Symbol?"symbol":typeof _)!="object"&&typeof w!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(b):w;var _}(s,LC()?Reflect.construct(d,g||[],mg(s).constructor):d.apply(s,g))}(this,c,arguments)).currentIndex=0,i.list=[],i.container=null,i.listBox=null,i.previewBox=null,i.dialog=null,i.paste=function(){if(i.j.s.focus(),i.j.s.insertHTML(i.list[i.currentIndex]),i.currentIndex!==0){var s=i.list[0];i.list[0]=i.list[i.currentIndex],i.list[i.currentIndex]=s}i.dialog&&i.dialog.close(),i.j.synchronizeValues(),i.j.e.fire("afterPaste")},i.onKeyDown=function(s){var d=i.currentIndex;[ti,Mi,ic].indexOf(s.key)!==-1&&(s.key===ti&&(d===0?d=i.list.length-1:d-=1),s.key===Mi&&(d===i.list.length-1?d=0:d+=1),s.key!==ic?(d!==i.currentIndex&&i.selectIndex(d),s.stopImmediatePropagation(),s.preventDefault()):i.paste())},i.selectIndex=function(s){i.listBox&&mr(i.listBox.childNodes).forEach(function(d,g){d.classList.remove("jodit_active"),s===g&&i.previewBox&&(d.classList.add("jodit_active"),i.previewBox.innerHTML=i.list[s],d.focus())}),i.currentIndex=s},i.showDialog=function(){i.list.length<2||(i.dialog||i.createDialog(),i.listBox&&(i.listBox.innerHTML=""),i.previewBox&&(i.previewBox.innerHTML=""),i.list.forEach(function(s,d){var g=i.j.c.element("a");g.textContent=d+1+". "+s.replace(Eh(),""),i.j.e.on(g,"keydown",i.onKeyDown),fe(g,"href","#"),fe(g,"data-index",d.toString()),fe(g,"tab-index","-1"),i.listBox&&i.listBox.appendChild(g)}),i.dialog&&i.dialog.open(),i.j.async.setTimeout(function(){i.selectIndex(0)},100))},i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&vg(i,s)}(c,l),h=c,u=[{key:"createDialog",value:function(){var i=this;this.dialog=this.j.dlg();var s=sr(this.j,"paste","Paste","primary");s.onAction(this.paste);var d=sr(this.j,"","Cancel");d.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([s,d]),this.j.e.on(this.listBox,"click dblclick",function(g){var b=g.target;return N.isTag(b,"a")&&b.hasAttribute("data-index")&&i.selectIndex(parseInt(fe(b,"-index")||"0",10)),g.type==="dblclick"&&i.paste(),!1})}},{key:"afterInit",value:function(){var i=this;this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",function(){return i.list.length}).on("afterCopy.paste-storage",function(s){i.list.indexOf(s)!==-1&&i.list.splice(i.list.indexOf(s),1),i.list.unshift(s),i.list.length>5&&(i.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}},{key:"beforeDestruct",value:function(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),N.safeRemove(this.previewBox),N.safeRemove(this.listBox),N.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}}],u&&hJ(h.prototype,u),c}(IC(ut));function aN(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function sN(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function gJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function mJ(l,c){return function(h){if(Array.isArray(h))return h}(l)||function(h,u){var i=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(i!=null){var s,d,g=[],b=!0,w=!1;try{for(i=i.call(h);!(b=(s=i.next()).done)&&(g.push(s.value),!u||g.length!==u);b=!0);}catch(_){w=!0,d=_}finally{try{b||i.return==null||i.return()}finally{if(w)throw d}}return g}}(l,c)||function(h,u){if(h){if(typeof h=="string")return sN(h,u);var i=Object.prototype.toString.call(h).slice(8,-1);return i==="Object"&&h.constructor&&(i=h.constructor.name),i==="Map"||i==="Set"?Array.from(i):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?sN(h,u):void 0}}(l,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NC(l,c,h){return NC=BC()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&yg(g,s.prototype),g},NC.apply(null,arguments)}function vJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function bg(l){return bg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},bg(l)}function yg(l,c){return yg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},yg(l,c)}function lN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function DC(l){var c=typeof Map=="function"?new Map:void 0;return DC=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return NC(h,arguments,bg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),yg(i,h)},DC(l)}function BC(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BC=function(){return!!l})()}Ve.add("pasteStorage",pJ),de.prototype.controls.preview={icon:"eye",command:"preview",mode:Nn+gr,tooltip:"Preview"},Ve.add("preview",function(l){l.registerButton({name:"preview"}),l.registerCommand("preview",function(c,h,u){var i=l.dlg();i.setSize(1024,600).open("",l.i18n("Preview")).setModal(!0);var s=function(d,g){return function(b){if(Array.isArray(b))return b}(d)||function(b,w){var _=b==null?null:typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(_!=null){var T,z,L=[],D=!0,q=!1;try{for(_=_.call(b);!(D=(T=_.next()).done)&&(L.push(T.value),!w||L.length!==w);D=!0);}catch(Y){q=!0,z=Y}finally{try{D||_.return==null||_.return()}finally{if(q)throw z}}return L}}(d,g)||function(b,w){if(b){if(typeof b=="string")return aN(b,w);var _=Object.prototype.toString.call(b).slice(8,-1);return _==="Object"&&b.constructor&&(_=b.constructor.name),_==="Map"||_==="Set"?Array.from(_):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?aN(b,w):void 0}}(d,g)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(kk(l,u,"px",i.getElm("content")),2)[1];i.e.on(i,"afterClose",s)})}),Ke.set("print",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg> `),de.prototype.controls.print={exec:function(l){var c=l.create.element("iframe");Object.assign(c.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),dc(l,de).appendChild(c);var h=function(){l.e.off(l.ow,"mousemove",h),N.safeRemove(c)},u=c.contentWindow;if(u){l.e.on(u,"onbeforeunload onafterprint",h).on(l.ow,"mousemove",h),l.o.iframe?(l.e.fire("generateDocumentStructure.iframe",u.document,l),u.document.body.innerHTML=l.value):(u.document.write('<!doctype html><html lang="'+Vh(l.o.language)+'"><head><title></title></head><style>'+function(s){var d=function(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b.ownerDocument.styleSheets;return mr(w).map(function(_){try{return mr(_.cssRules)}catch{}return[]}).flat().filter(function(_){try{return!!(_&&b.matches(_.selectorText))}catch{}return!1})},g=function(){function b(_,T,z){var L=this;(function(Y,X){if(!(Y instanceof X))throw new TypeError("Cannot call a class as a function")})(this,b),this.css={};var D=z||{},q=function(Y){var X=Y.selectorText.split(",").map(function(ce){return ce.trim()}).sort().join(",");!L.css[X]&&(L.css[X]={});for(var J=Y.style.cssText.split(/;(?![A-Za-z0-9])/),$=0;$<J.length;$++)if(J[$]){var ee=J[$].split(":");ee[0]=ee[0].trim(),ee[1]=ee[1].trim(),L.css[X][ee[0]]=ee[1].replace(/var\(([^)]+)\)/g,function(ce,ge){var ye=mJ(ge.split(","),2),Me=ye[0],Ie=ye[1];return(s.ew.getComputedStyle(s.editor).getPropertyValue(Me.trim())||Ie||ce).trim()})}};(function(){for(var Y=_.innerHeight,X=T.createTreeWalker(s.editor,NodeFilter.SHOW_ELEMENT,function(){return NodeFilter.FILTER_ACCEPT});X.nextNode();){var J=X.currentNode;if(J.getBoundingClientRect().top<Y||D.scanFullPage){var $=d(J);if($)for(var ee=0;ee<$.length;ee++)q($[ee])}}})()}var w;return(w=[{key:"generateCSS",value:function(){var _="";for(var T in this.css)if(!/:not\(/.test(T)){for(var z in _+=T+" { ",this.css[T])_+=z+": "+this.css[T][z]+"; ";_+=`}
`}return _}}])&&gJ(b.prototype,w),b}();try{return new g(s.ew,s.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}(l)+"</style><body></body></html>"),u.document.close(),kk(l,void 0,"px",u.document.body));var i=u.document.createElement("style");i.innerHTML=`@media print {
					body {
							-webkit-print-color-adjust: exact;
					}
			}`,u.document.head.appendChild(i),u.focus(),u.print()}},mode:Nn+gr,tooltip:"Print"},Ve.add("print",function(l){l.registerButton({name:"print"})}),de.prototype.tableAllowCellResize=!0;var Wy=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":lN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},FC="table_processor_observer-resize",xg=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=bg(d),function(b,w){return!w||lN(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,BC()?Reflect.construct(d,g||[],bg(s).constructor):d.apply(s,g))}(this,c,arguments)).selectMode=!1,i.resizeDelta=0,i.createResizeHandle=function(){i.resizeHandler||(i.resizeHandler=i.j.c.div("jodit-table-resizer"),i.j.e.on(i.resizeHandler,"mousedown.table touchstart.table",i.onHandleMouseDown).on(i.resizeHandler,"mouseenter.table",function(){i.j.async.clearTimeout(i.hideTimeout)}))},i.hideTimeout=0,i.drag=!1,i.minX=0,i.maxX=0,i.startX=0,i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&yg(i,s)}(c,l),h=c,u=[{key:"module",get:function(){return this.j.getInstance("Table",this.j.o)}},{key:"isRTL",get:function(){return this.j.o.direction==="rtl"}},{key:"showResizeHandle",value:function(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}},{key:"hideResizeHandle",value:function(){var i=this;this.hideTimeout=this.j.async.setTimeout(function(){N.safeRemove(i.resizeHandler)},{timeout:this.j.defaultTimeout,label:"hideResizer"})}},{key:"onHandleMouseDown",value:function(i){var s=this;if(!this.j.isLocked){this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=i.clientX,this.j.lock(FC),this.resizeHandler.classList.add("jodit-table-resizer_moved");var d,g=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,this.wholeTable!=null)g=this.workTable.parentNode.getBoundingClientRect(),this.minX=g.left,this.maxX=this.minX+g.width;else{var b=this.module.formalCoordinate(this.workTable,this.workCell,!0);this.module.formalMatrix(this.workTable,function(w,_,T){b[1]===T&&(d=w.getBoundingClientRect(),s.minX=Math.max(d.left+sc/2,s.minX)),b[1]+(s.isRTL?-1:1)===T&&(d=w.getBoundingClientRect(),s.maxX=Math.min(d.left+d.width-sc/2,s.maxX))})}return!1}}},{key:"onMouseMove",value:function(i){if(this.drag){this.j.e.fire("closeAllPopups");var s=i.clientX,d=fa(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);s<this.minX&&(s=this.minX),s>this.maxX&&(s=this.maxX),this.resizeDelta=s-this.startX+(this.j.o.iframe?d.left:0),this.resizeHandler.style.left=s-(this.j.o.iframe?0:d.left)+"px";var g=this.j.s.sel;g&&g.removeAllRanges()}}},{key:"onMouseUp",value:function(i){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==i.clientX&&(this.wholeTable==null?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}},{key:"resizeColumns",value:function(){var i=this.resizeDelta,s=[],d=this.module;d.setColumnWidthByDelta(this.workTable,d.formalCoordinate(this.workTable,this.workCell,!0)[1],i,!0,s);var g=Mr(this.isRTL?N.prev:N.next,this.workCell,N.isCell,this.workCell.parentNode);d.setColumnWidthByDelta(this.workTable,d.formalCoordinate(this.workTable,g)[1],-i,!1,s)}},{key:"resizeTable",value:function(){var i=this.resizeDelta*(this.isRTL?-1:1),s=this.workTable.offsetWidth,d=MP(this.workTable.parentNode,this.j.ew),g=!this.wholeTable;if(this.isRTL?!g:g)this.workTable.style.width=(s+i)/d*100+"%";else{var b=this.isRTL?"marginRight":"marginLeft",w=parseInt(this.j.ew.getComputedStyle(this.workTable)[b]||"0",10);this.workTable.style.width=(s-i)/d*100+"%",this.workTable.style[b]=(w+i)/d*100+"%"}}},{key:"setWorkCell",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.wholeTable=s,this.workCell=i,this.workTable=N.up(i,function(d){return N.isTag(d,"table")},this.j.editor)}},{key:"calcHandlePosition",value:function(i,s){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,b=fa(s,this.j,this.j.ed);if(d>sc&&d<b.width-sc)this.hideResizeHandle();else{var w=fa(this.j.workplace,this.j,this.j.od,!0),_=fa(i,this.j,this.j.ed);if(this.resizeHandler.style.left=(d<=sc?b.left:b.left+b.width)-w.left+g+"px",Object.assign(this.resizeHandler.style,{height:_.height+"px",top:_.top-w.top+"px"}),this.showResizeHandle(),d<=sc){var T=Mr(this.isRTL?N.next:N.prev,s,N.isCell,s.parentNode);this.setWorkCell(T||s,!T||null)}else{var z=Mr(this.isRTL?N.prev:N.next,s,N.isCell,s.parentNode);this.setWorkCell(s,!!z&&null)}}}},{key:"afterInit",value:function(i){var s=this;i.o.tableAllowCellResize&&i.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",function(){Ct("table",i.editor).forEach(s.observe)}).on(this.j.ow,"scroll.resize-cells",function(){if(s.drag){var d=N.up(s.workCell,function(b){return N.isTag(b,"table")},i.editor);if(d){var g=d.getBoundingClientRect();s.resizeHandler.style.top=g.top+"px"}}}).on("beforeSetMode.resize-cells",function(){var d=s.module;d.getAllSelectedCells().forEach(function(g){d.removeSelection(g),d.normalizeTable(N.closest(g,"table",i.editor))})})}},{key:"observe",value:function(i){var s=this;St(i,FC)||(St(i,FC,!0),this.j.e.on(i,"mouseleave.resize-cells",function(d){s.resizeHandler&&s.resizeHandler!==d.relatedTarget&&s.hideResizeHandle()}).on(i,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle(function(d){if(!s.j.isLocked){var g=N.up(d.target,N.isCell,i);g&&s.calcHandlePosition(i,g,d.offsetX)}},{timeout:this.j.defaultTimeout})),this.createResizeHandle())}},{key:"beforeDestruct",value:function(i){i.events&&(i.e.off(this.j.ow,".resize-cells"),i.e.off(".resize-cells"))}}],u&&vJ(h.prototype,u),c}(DC(ut));function HC(l,c,h){return HC=VC()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&_g(g,s.prototype),g},HC.apply(null,arguments)}function bJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function wg(l){return wg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},wg(l)}function _g(l,c){return _g=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},_g(l,c)}function cN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function UC(l){var c=typeof Map=="function"?new Map:void 0;return UC=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return HC(h,arguments,wg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_g(i,h)},UC(l)}function VC(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VC=function(){return!!l})()}Wy([Ce],xg.prototype,"onHandleMouseDown",null),Wy([Ce],xg.prototype,"onMouseMove",null),Wy([Ce],xg.prototype,"onMouseUp",null),Wy([Ce],xg.prototype,"observe",null),Ve.add("resizeCells",xg),de.prototype.allowResizeX=!1,de.prototype.allowResizeY=!0;var Xy=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=wg(d),function(b,w){return!w||cN(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,VC()?Reflect.construct(d,g||[],wg(s).constructor):d.apply(s,g))}(this,c,arguments)).isResized=!1,i.start={x:0,y:0,w:0,h:0},i.handle=i.j.c.div("jodit-editor__resize",Ke.get("resize_handler")),i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&_g(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(i){var s=this,d=i.o,g=d.height,b=d.width,w=d.allowResizeX,_=i.o.allowResizeY;g==="auto"&&b!=="auto"&&(_=!1),g==="auto"&&b==="auto"||!w&&!_||(i.statusbar.setMod("resize-handle",!0),i.e.on("toggleFullSize.resizeHandler",function(){s.handle.style.display=i.isFullSize?"none":"block"}).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(i.ow,"mouseup touchend",this.onHandleResizeEnd),i.container.appendChild(this.handle))}},{key:"onHandleResizeStart",value:function(i){this.isResized=!0,this.start.x=i.clientX,this.start.y=i.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),i.preventDefault()}},{key:"onHandleResize",value:function(i){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+i.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+i.clientX-this.start.x),this.j.e.fire("resize"))}},{key:"onHandleResizeEnd",value:function(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}},{key:"beforeDestruct",value:function(){N.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}}])&&bJ(h.prototype,u),c}(UC(ut));function qC(l,c,h){return qC=WC()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&jg(g,s.prototype),g},qC.apply(null,arguments)}function yJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function kg(l){return kg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},kg(l)}function jg(l,c){return jg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},jg(l,c)}function uN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function YC(l){var c=typeof Map=="function"?new Map:void 0;return YC=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return qC(h,arguments,kg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),jg(i,h)},YC(l)}function WC(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WC=function(){return!!l})()}Xy.requires=["size"],Xy=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":cN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Ce],Xy),Ve.add("resizeHandler",Xy),de.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),de.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])};var Hi=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":uN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},dN="__jodit-resizer_binded",ci=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=kg(d),function(b,w){return!w||uN(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,WC()?Reflect.construct(d,g||[],kg(s).constructor):d.apply(s,g))}(this,c,arguments)).LOCK_KEY="resizer",i.element=null,i.isResizeMode=!1,i.isShown=!1,i.startX=0,i.startY=0,i.width=0,i.height=0,i.ratio=0,i.rect=i.j.c.fromHTML('<div title="'.concat(i.j.i18n("Press Alt for custom resizing"),`" class="jodit-resizer">
				<div class="jodit-resizer__top-left"></div>
				<div class="jodit-resizer__top-right"></div>
				<div class="jodit-resizer__bottom-right"></div>
				<div class="jodit-resizer__bottom-left"></div>
				<span>100x100</span>
			</div>`)),i.sizeViewer=i.rect.getElementsByTagName("span")[0],i.pointerX=0,i.pointerY=0,i.isAltMode=!1,i.onClickElement=function(s){i.isResizeMode||i.element===s&&i.isShown||(i.element=s,i.show(),N.isTag(i.element,"img")&&!i.element.complete&&i.j.e.one(i.element,"load",i.updateSize))},i.updateSize=function(){if(!i.isInDestruct&&i.isShown&&i.element&&i.rect){var s=i.getWorkplacePosition(),d=fa(i.element,i.j,i.j.ed),g=parseInt(i.rect.style.left||"0",10),b=parseInt(i.rect.style.top||"0",10),w=i.rect.offsetWidth,_=i.rect.offsetHeight,T=d.top-s.top,z=d.left-s.left;b===T&&g===z&&w===i.element.offsetWidth&&_===i.element.offsetHeight||(be(i.rect,{top:T,left:z,width:i.element.offsetWidth,height:i.element.offsetHeight}),i.j.events&&(i.j.e.fire(i.element,"changesize"),isNaN(g)||i.j.e.fire("resize")))}},i.hideSizeViewer=function(){i.sizeViewer.style.opacity="0"},i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&jg(i,s)}(c,l),h=c,u=[{key:"afterInit",value:function(i){var s=this;Ct("div",this.rect).forEach(function(d){i.e.on(d,"mousedown.resizer touchstart.resizer",s.onStartResizing.bind(s,d))}),$a.on("hideHelpers",this.hide),i.e.on("readonly",function(d){d&&s.hide()}).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",function(d){var g=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;g.test(d.value)&&(d.value=d.value.replace(g,"$1"))}),this.addEventListeners(),this.__onChangeEditor()}},{key:"onEditorClick",value:function(i){for(var s=i.target,d=this.j,g=d.editor,b=d.options.allowResizeTags;s&&s!==g;){if(N.isTag(s,b))return this.__bind(s),void this.onClickElement(s);s=s.parentNode}}},{key:"__afterInsertImage",value:function(i){if(!this.j.o.resizer.forImageChangeAttributes){var s=fe(i,"width");s&&!be(i,"width",!0)&&(be(i,"width",s),fe(i,"width",null))}}},{key:"addEventListeners",value:function(){var i=this,s=this.j;s.e.off(s.editor,".resizer").off(s.ow,".resizer").on(s.editor,"keydown.resizer",function(d){i.isShown&&d.key===I_&&i.element&&!N.isTag(i.element,"table")&&i.onDelete(d)}).on(s.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([s.ow,s.editor],"scroll.resizer",function(){i.isShown&&!i.isResizeMode&&i.hide()}).on(s.ow,"keydown.resizer",this.onKeyDown).on(s.ow,"keyup.resizer",this.onKeyUp).on(s.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}},{key:"onStartResizing",value:function(i,s){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=i,s.cancelable&&s.preventDefault(),s.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=s.clientX,this.startY=s.clientY,this.pointerX=s.clientX,this.pointerY=s.clientY;var d=this.j;d.e.fire("hidePopup"),d.lock(this.LOCK_KEY),d.e.on(d.ow,"mousemove.resizer touchmove.resizer",this.onResize)}},{key:"onEndResizing",value:function(){var i=this.j;i.unlock(),this.isResizeMode=!1,this.isAltMode=!1,i.synchronizeValues(),i.e.off(i.ow,"mousemove.resizer touchmove.resizer",this.onResize)}},{key:"onResize",value:function(i){if(this.isResizeMode){if(!this.element)return;var s,d;if(this.pointerX=i.clientX,this.pointerY=i.clientY,this.j.options.iframe){var g=this.getWorkplacePosition();s=i.clientX+g.left-this.startX,d=i.clientY+g.top-this.startY}else s=this.pointerX-this.startX,d=this.pointerY-this.startY;var b=this.handle.className,w=0,_=0,T=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(T===!0||T&&N.isTag(this.element,T))?(s?(w=this.width+(b.match(/left/)?-1:1)*s,_=Math.round(w/this.ratio)):(_=this.height+(b.match(/top/)?-1:1)*d,w=Math.round(_*this.ratio)),w>Lk(this.j.editor,this.j.ow)&&(w=Lk(this.j.editor,this.j.ow),_=Math.round(w/this.ratio))):(w=this.width+(b.match(/left/)?-1:1)*s,_=this.height+(b.match(/top/)?-1:1)*d),w>this.j.o.resizer.min_width&&(w<this.rect.parentNode.offsetWidth?this.applySize(this.element,"width",w):this.applySize(this.element,"width","100%")),_>this.j.o.resizer.min_height&&this.applySize(this.element,"height",_),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),i.stopImmediatePropagation()}}},{key:"onKeyDown",value:function(i){this.isAltMode=i.key===M5,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}},{key:"onKeyUp",value:function(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}},{key:"onClickOutside",value:function(i){if(this.isShown){if(!this.isResizeMode)return this.hide();i.stopImmediatePropagation(),this.onEndResizing()}}},{key:"getWorkplacePosition",value:function(){return fa(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}},{key:"applySize",value:function(i,s,d){var g=N.isImage(i)&&this.j.o.resizer.forImageChangeAttributes;g&&fe(i,s,d),g&&!i.style[s]||be(i,s,d)}},{key:"onDelete",value:function(i){this.element&&(this.element.tagName!=="JODIT"?this.j.s.select(this.element):(N.safeRemove(this.element),this.hide(),i.preventDefault()))}},{key:"__onChangeEditor",value:function(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),Ct("iframe",this.j.editor).forEach(this.__bind)}},{key:"__bind",value:function(i){var s=this;if(N.isHTMLElement(i)&&this.j.o.allowResizeTags.has(i.tagName.toLowerCase())&&!St(i,dN)){var d;if(St(i,dN,!0),N.isTag(i,"iframe")){var g=i;N.isHTMLElement(i.parentNode)&&fe(i.parentNode,"-jodit_iframe_wrapper")?i=i.parentNode:(fe(d=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),"style",fe(i,"style")),be(d,{display:i.style.display==="inline-block"?"inline-block":"block",width:i.offsetWidth,height:i.offsetHeight}),i.parentNode&&i.parentNode.insertBefore(d,i),d.appendChild(i),this.j.e.on(d,"click",function(){fe(d,"data-jodit-wrapper_active",!0)}),i=d),this.j.e.off(i,"mousedown.select touchstart.select").on(i,"mousedown.select touchstart.select",function(){s.j.s.select(i)}).off(i,"changesize").on(i,"changesize",function(){g.setAttribute("width",i.offsetWidth+"px"),g.setAttribute("height",i.offsetHeight+"px")})}this.j.e.on(i,"dragstart",this.hide)}}},{key:"showSizeViewer",value:function(i,s){this.j.o.resizer.showSize&&(i<this.sizeViewer.offsetWidth||s<this.sizeViewer.offsetHeight?this.hideSizeViewer():(this.sizeViewer.style.opacity="1",this.sizeViewer.textContent="".concat(i," x ").concat(s),this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})))}},{key:"show",value:function(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||(Fh(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=be(this.j.container,"zIndex").toString()),this.updateSize())}},{key:"hide",value:function(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,N.safeRemove(this.rect),Ct("[data-jodit-wrapper_active='true']",this.j.editor).forEach(function(i){return fe(i,"data-jodit-wrapper_active",!1)}))}},{key:"beforeDestruct",value:function(i){this.hide(),$a.off("hideHelpers",this.hide),i.e.off(this.j.ow,".resizer").off(".resizer")}}],u&&yJ(h.prototype,u),c}(YC(ut));function XC(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function GC(l,c,h){return GC=hN()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&$C(g,s.prototype),g},GC.apply(null,arguments)}function $C(l,c){return $C=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},$C(l,c)}function fN(l){return function(c){if(Array.isArray(c))return XC(c)}(l)||function(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}(l)||function(c,h){if(c){if(typeof c=="string")return XC(c,h);var u=Object.prototype.toString.call(c).slice(8,-1);return u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set"?Array.from(u):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?XC(c,h):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hN(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hN=function(){return!!l})()}Hi([_e(":click")],ci.prototype,"onEditorClick",null),Hi([_e(":afterInsertImage")],ci.prototype,"__afterInsertImage",null),Hi([Ce],ci.prototype,"onStartResizing",null),Hi([Ce],ci.prototype,"onEndResizing",null),Hi([Ce],ci.prototype,"onResize",null),Hi([Ce],ci.prototype,"onKeyDown",null),Hi([Ce],ci.prototype,"onKeyUp",null),Hi([Ce],ci.prototype,"onClickOutside",null),Hi([_e(":change")],ci.prototype,"__onChangeEditor",null),Hi([Ce],ci.prototype,"__bind",null),Hi([Ce,_e(":hideResizer")],ci.prototype,"hide",null),Ve.add("resizer",ci),de.prototype.useSearch=!0,de.prototype.search={lazyIdleTimeout:0,useCustomHighlightAPI:Ar&&Ar.Highlight!==void 0},Ke.set("search",'<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg> '),de.prototype.controls.find={tooltip:"Find",icon:"search",exec:function(l,c,h){var u=h.control;switch(u.args&&u.args[0]){case"findPrevious":l.e.fire("searchPrevious");break;case"findNext":l.e.fire("searchNext");break;case"replace":l.execCommand("openReplaceDialog");break;default:l.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate:function(l,c,h){return h}};var Gy="jd-tmp-selection";function xJ(l,c,h,u,i){if(c.startContainer.nodeValue!=null&&c.endContainer.nodeValue!=null&&!function(w,_,T){if(w.o.search.useCustomHighlightAPI&&Ar&&Ar.Highlight!==void 0){var z=[_].concat(fN(T)).map(function(D){var q=w.selection.createRange();return q.setStart(D.startContainer,D.startOffset),q.setEnd(D.endContainer,D.endOffset),q}),L=GC(Highlight,fN(z));return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",L),T.length=0,!0}return!1}(l,c,h)){var s=u.element("span",function(w,_,T){return _ in w?Object.defineProperty(w,_,{value:T,enumerable:!0,configurable:!0,writable:!0}):w[_]=T,w}({},Gy,!0));N.markTemporary(s),function(w,_,T){var z=w.startContainer.nodeValue,L=0;if(w.startOffset!==0){var D=T.text(z.substring(0,w.startOffset));w.startContainer.nodeValue=z.substring(w.startOffset),N.before(w.startContainer,D),w.startContainer===w.endContainer&&(L=w.startOffset,w.endOffset-=L),w.startOffset=0}var q=w.endContainer.nodeValue;if(w.endOffset!==q.length){var Y=T.text(q.substring(w.endOffset));w.endContainer.nodeValue=q.substring(0,w.endOffset),N.after(w.endContainer,Y);var X=!0,J=!1,$=void 0;try{for(var ee,ce=_[Symbol.iterator]();!(X=(ee=ce.next()).done);X=!0){var ge=ee.value;if(ge.startContainer!==w.endContainer)break;ge.startContainer=Y,ge.startOffset=ge.startOffset-w.endOffset-L,ge.endContainer===w.endContainer&&(ge.endContainer=Y,ge.endOffset=ge.endOffset-w.endOffset-L)}}catch(ye){J=!0,$=ye}finally{try{X||ce.return==null||ce.return()}finally{if(J)throw $}}w.endOffset=w.endContainer.nodeValue.length}}(c,h,u);var d,g=c.startContainer;do{if(!g||(!N.isText(g)||(d=g.parentNode,N.isElement(d)&&d.hasAttribute(Gy))||N.wrap(g,s.cloneNode(),u),g===c.endContainer))break;var b=g.firstChild||g.nextSibling;if(!b){for(;g&&!g.nextSibling&&g!==i;)g=g.parentNode;b=g==null?void 0:g.nextSibling}g=b}while(g&&g!==i)}}function pN(l){return Ct("[".concat(Gy,"]"),l)}function $y(l){pN(l.editor).forEach(function(c){return N.unwrap(c)}),function(c){c.o.search.useCustomHighlightAPI&&Ar&&Ar.Highlight!==void 0&&CSS.highlights.clear()}(l)}function gN(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function wJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function _J(l,c){return function(h){if(Array.isArray(h))return h}(l)||function(h,u){var i=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(i!=null){var s,d,g=[],b=!0,w=!1;try{for(i=i.call(h);!(b=(s=i.next()).done)&&(g.push(s.value),!u||g.length!==u);b=!0);}catch(_){w=!0,d=_}finally{try{b||i.return==null||i.return()}finally{if(w)throw d}}return g}}(l,c)||function(h,u){if(h){if(typeof h=="string")return gN(h,u);var i=Object.prototype.toString.call(h).slice(8,-1);return i==="Object"&&h.constructor&&(i=h.constructor.name),i==="Map"||i==="Set"?Array.from(i):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?gN(h,u):void 0}}(l,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var kJ=function(){function l(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:IP;(function(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")})(this,l),this.searchIndex=u,this.queue=[],this.value=""}var c,h;return c=l,h=[{key:"add",value:function(u){var i,s=((i=u.nodeValue)!==null&&i!==void 0?i:"").toLowerCase();if(s.length){var d=this.value.length;this.queue.push({startIndex:d,endIndex:d+s.length,node:u}),this.value+=s}}},{key:"ranges",value:function(u){var i=[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,d=0,g=0;do{var b;if(s=(b=_J(this.searchIndex(u,this.value,s),2))[0],d=b[1],s!==-1){for(var w=void 0,_=0,T=void 0,z=0,L=g;L<this.queue.length;L+=1)if(!w&&this.queue[L].endIndex>s&&(w=this.queue[L].node,_=s-this.queue[L].startIndex),w&&this.queue[L].endIndex>=s+d){T=this.queue[L].node,z=s+d-this.queue[L].startIndex,g=L;break}w&&T&&i.push({startContainer:w,startOffset:_,endContainer:T,endOffset:z}),s+=d}}while(s!==-1);return i.length===0?null:i}}],h&&wJ(c.prototype,h),l}();function mN(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}function jJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Zy(l){return Zy=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Zy(l)}function ZC(l,c){return ZC=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},ZC(l,c)}function vN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function bN(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bN=function(){return!!l})()}var Sg=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":vN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Sc=function(l){function c(i){var s,d;(function(Y,X){if(!(Y instanceof X))throw new TypeError("Cannot call a class as a function")})(this,c),s=function(Y,X,J){return X=Zy(X),function($,ee){return!ee||vN(ee)!=="object"&&typeof ee!="function"?function(ce){if(ce===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce}($):ee}(Y,bN()?Reflect.construct(X,J||[],Zy(Y).constructor):X.apply(Y,J))}(this,c,[i]),d=s,s.selInfo=null,s._currentIndex=0,s.isOpened=!1;var g=ii(s.container),b=g.query,w=g.replace,_=g.cancel,T=g.next,z=g.prev,L=g.replaceBtn,D=g.current,q=g.count;return s.queryInput=b,s.replaceInput=w,s.closeButton=_,s.replaceButton=L,s.currentBox=D,s.countBox=q,i.e.on(s.closeButton,"pointerdown",function(){return s.close(),!1}).on(s.queryInput,"input",function(){s.currentIndex=0}).on(s.queryInput,"pointerdown",function(){i.s.isFocused()&&(i.s.removeMarkers(),s.selInfo=i.s.save())}).on(s.replaceButton,"pointerdown",function(){return i.e.fire(s,"pressReplaceButton"),!1}).on(T,"pointerdown",function(){return i.e.fire("searchNext"),!1}).on(z,"pointerdown",function(){return i.e.fire("searchPrevious"),!1}).on(s.queryInput,"input",function(){s.setMod("empty-query",!cr(s.queryInput.value).length)}).on(s.queryInput,"keydown",s.j.async.debounce(function(){var Y,X=(Y=function(J){return function($,ee){var ce,ge,ye,Me,Ie={label:0,sent:function(){if(1&ye[0])throw ye[1];return ye[1]},trys:[],ops:[]};return Me={next:st(0),throw:st(1),return:st(2)},typeof Symbol=="function"&&(Me[Symbol.iterator]=function(){return this}),Me;function st(Ft){return function(it){return function(Qe){if(ce)throw new TypeError("Generator is already executing.");for(;Ie;)try{if(ce=1,ge&&(ye=2&Qe[0]?ge.return:Qe[0]?ge.throw||((ye=ge.return)&&ye.call(ge),0):ge.next)&&!(ye=ye.call(ge,Qe[1])).done)return ye;switch(ge=0,ye&&(Qe=[2&Qe[0],ye.value]),Qe[0]){case 0:case 1:ye=Qe;break;case 4:return Ie.label++,{value:Qe[1],done:!1};case 5:Ie.label++,ge=Qe[1],Qe=[0];continue;case 7:Qe=Ie.ops.pop(),Ie.trys.pop();continue;default:if(!((ye=(ye=Ie.trys).length>0&&ye[ye.length-1])||Qe[0]!==6&&Qe[0]!==2)){Ie=0;continue}if(Qe[0]===3&&(!ye||Qe[1]>ye[0]&&Qe[1]<ye[3])){Ie.label=Qe[1];break}if(Qe[0]===6&&Ie.label<ye[1]){Ie.label=ye[1],ye=Qe;break}if(ye&&Ie.label<ye[2]){Ie.label=ye[2],Ie.ops.push(Qe);break}ye[2]&&Ie.ops.pop(),Ie.trys.pop();continue}Qe=ee.call($,Ie)}catch(Or){Qe=[6,Or],ge=0}finally{ce=ye=0}if(5&Qe[0])throw Qe[1];return{value:Qe[0]?Qe[1]:void 0,done:!0}}([Ft,it])}}}(this,function($){switch($.label){case 0:return J.key===ic?[3,1]:[3,3];case 1:return J.preventDefault(),J.stopImmediatePropagation(),[4,i.e.fire("searchNext")];case 2:return $.sent()&&d.close(),[3,4];case 3:return i.e.fire(d,"needUpdateCounters"),[3,4];case 4:return[2]}})},function(){var J=this,$=arguments;return new Promise(function(ee,ce){var ge=Y.apply(J,$);function ye(Ie){mN(ge,ee,ce,ye,Me,"next",Ie)}function Me(Ie){mN(ge,ee,ce,ye,Me,"throw",Ie)}ye(void 0)})});return function(J){return X.apply(this,arguments)}}(),s.j.defaultTimeout)),s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&ZC(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"UISearch"}},{key:"render",value:function(){return`<div>
			<div class="&__box">
				<div class="&__inputs">
					<input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>
					<input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>
				</div>
				<div class="&__counts">
					<span data-ref="counter-box">
						<span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>
					</span>
				</div>
				<div class="&__buttons">
					<button data-ref="next" tabindex="0" type="button">`.concat(Ke.get("angle-down"),`</button>
					<button data-ref="prev" tabindex="0" type="button">`).concat(Ke.get("angle-up"),`</button>
					<button data-ref="cancel" tabindex="0" type="button">`).concat(Ke.get("cancel"),`</button>
					<button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>
				</div>
			</div>
		</div>`)}},{key:"currentIndex",get:function(){return this._currentIndex},set:function(i){this._currentIndex=i,this.currentBox.innerText=i.toString()}},{key:"count",set:function(i){this.countBox.innerText=i.toString()}},{key:"query",get:function(){return this.queryInput.value}},{key:"replace",get:function(){return this.replaceInput.value}},{key:"onEditorKeyDown",value:function(i){if(this.isOpened){var s=this.j;if(s.getRealMode()===gr)switch(i.key){case Nu:this.close();break;case L_:this.queryInput.value&&(s.e.fire(i.shiftKey?"searchPrevious":"searchNext"),i.preventDefault())}}}},{key:"open",value:function(i,s){var d=arguments.length>2&&arguments[2]!==void 0&&arguments[2];this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",d);var g=i??(this.j.s.sel||"").toString();g&&(this.queryInput.value=g),s&&(this.replaceInput.value=s),this.setMod("empty-query",!g.length),this.j.e.fire(this,"needUpdateCounters"),g?this.queryInput.select():this.queryInput.focus()}},{key:"close",value:function(){this.isOpened&&(this.j.s.restore(),N.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}},{key:"calcSticky",value:function(i){if(this.isOpened)if(this.setMod("sticky",i),i){var s=Bn(this.j.toolbarContainer);be(this.container,{top:s.top+s.height,left:s.left+s.width})}else be(this.container,{top:null,left:null})}}],u&&jJ(h.prototype,u),c}(Vr);function KC(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function yN(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}function Cc(l){return function(){var c=this,h=arguments;return new Promise(function(u,i){var s=l.apply(c,h);function d(b){yN(s,u,i,d,g,"next",b)}function g(b){yN(s,u,i,d,g,"throw",b)}d(void 0)})}}function JC(l,c,h){return JC=eA()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Ag(g,s.prototype),g},JC.apply(null,arguments)}function SJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Cg(l){return Cg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Cg(l)}function Ag(l,c){return Ag=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Ag(l,c)}function xN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function QC(l){var c=typeof Map=="function"?new Map:void 0;return QC=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return JC(h,arguments,Cg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ag(i,h)},QC(l)}function eA(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eA=function(){return!!l})()}function Ac(l,c){var h,u,i,s,d={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function g(b){return function(w){return function(_){if(h)throw new TypeError("Generator is already executing.");for(;d;)try{if(h=1,u&&(i=2&_[0]?u.return:_[0]?u.throw||((i=u.return)&&i.call(u),0):u.next)&&!(i=i.call(u,_[1])).done)return i;switch(u=0,i&&(_=[2&_[0],i.value]),_[0]){case 0:case 1:i=_;break;case 4:return d.label++,{value:_[1],done:!1};case 5:d.label++,u=_[1],_=[0];continue;case 7:_=d.ops.pop(),d.trys.pop();continue;default:if(!((i=(i=d.trys).length>0&&i[i.length-1])||_[0]!==6&&_[0]!==2)){d=0;continue}if(_[0]===3&&(!i||_[1]>i[0]&&_[1]<i[3])){d.label=_[1];break}if(_[0]===6&&d.label<i[1]){d.label=i[1],i=_;break}if(i&&d.label<i[2]){d.label=i[2],d.ops.push(_);break}i[2]&&d.ops.pop(),d.trys.pop();continue}_=c.call(l,d)}catch(T){_=[6,T],u=0}finally{h=i=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([b,w])}}}Sg([_e([":keydown","queryInput:keydown"])],Sc.prototype,"onEditorKeyDown",null),Sg([Ce],Sc.prototype,"open",null),Sg([Ce],Sc.prototype,"close",null),Sg([_e(":toggleSticky")],Sc.prototype,"calcSticky",null),Sc=Sg([Dt],Sc);var nl=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":xN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},is=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Cg(d),function(b,w){return!w||xN(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,eA()?Reflect.construct(d,g||[],Cg(s).constructor):d.apply(s,g))}(this,c,arguments)).buttons=[{name:"find",group:"search"}],i.previousQuery="",i.drawPromise=null,i.walker=null,i.walkerCount=null,i.cache={},i.wrapFrameRequest=0,i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Ag(i,s)}(c,l),h=c,u=[{key:"ui",get:function(){return new Sc(this.j)}},{key:"updateCounters",value:function(){var i=this;return Cc(function(){var s;return Ac(this,function(d){switch(d.label){case 0:return i.ui.isOpened?(s=i.ui,[4,i.calcCounts(i.ui.query)]):[2];case 1:return s.count=d.sent(),[2]}})})()}},{key:"onPressReplaceButton",value:function(){this.findAndReplace(this.ui.query),this.updateCounters()}},{key:"tryScrollToElement",value:function(i){var s=N.closest(i,N.isElement,this.j.editor);s||(s=N.prev(i,N.isElement,this.j.editor)),s&&s!==this.j.editor&&Gs(s,this.j.editor,this.j.ed)}},{key:"calcCounts",value:function(i){var s=this;return Cc(function(){return Ac(this,function(d){switch(d.label){case 0:return[4,s.findQueryBounds(i,"walkerCount")];case 1:return[2,d.sent().length]}})})()}},{key:"findQueryBounds",value:function(i,s){var d=this;return Cc(function(){var g;return Ac(this,function(b){return(g=d[s])&&g.break(),g=new Eb(d.j.async,{timeout:d.j.o.search.lazyIdleTimeout}),d[s]=g,[2,d.find(g,i).catch(function(w){return[]})]})})()}},{key:"findAndReplace",value:function(i){var s=this;return Cc(function(){var d,g,b,w,_;return Ac(this,function(T){switch(T.label){case 0:return[4,s.findQueryBounds(i,"walker")];case 1:if(!(d=T.sent()).length)return[2,!1];if((g=s.findCurrentIndexInRanges(d,s.j.s.range))===-1&&(g=0),!(b=d[g]))return[3,6];T.label=2;case 2:return T.trys.push([2,,4,5]),(w=s.j.ed.createRange()).setStart(b.startContainer,b.startOffset),w.setEnd(b.endContainer,b.endOffset),w.deleteContents(),_=s.j.createInside.text(s.ui.replace),N.safeInsertNode(w,_),$y(s.j),s.j.s.setCursorAfter(_),s.tryScrollToElement(_),s.cache={},s.ui.currentIndex=g,[4,s.findAndSelect(i,!0).catch(function(z){return null})];case 3:return T.sent(),[3,5];case 4:return s.j.synchronizeValues(),[7];case 5:return s.j.e.fire("afterFindAndReplace"),[2,!0];case 6:return[2,!1]}})})()}},{key:"findAndSelect",value:function(i,s){var d=this;return Cc(function(){var g,b,w,_,T;return Ac(this,function(z){switch(z.label){case 0:return[4,d.findQueryBounds(i,"walker")];case 1:if(!(b=z.sent()).length)return[2,!1];if(d.previousQuery===i&&pN(d.j.editor).length||((g=d.drawPromise)===null||g===void 0||g.rejectCallback(),d.j.async.cancelAnimationFrame(d.wrapFrameRequest),$y(d.j),d.drawPromise=d.__drawSelectionRanges(b)),d.previousQuery=i,w=(w=d.ui.currentIndex-1)==-1?0:s?w===b.length-1?0:w+1:w===0?b.length-1:w-1,d.ui.currentIndex=w+1,!(_=b[w]))return[3,4];T=d.j.ed.createRange();try{T.setStart(_.startContainer,_.startOffset),T.setEnd(_.endContainer,_.endOffset),d.j.s.selectRange(T)}catch{}return d.tryScrollToElement(_.startContainer),[4,d.updateCounters()];case 2:return z.sent(),[4,d.drawPromise];case 3:return z.sent(),d.j.e.fire("afterFindAndSelect"),[2,!0];case 4:return[2,!1]}})})()}},{key:"findCurrentIndexInRanges",value:function(i,s){return i.findIndex(function(d){return d.startContainer===s.startContainer&&d.startOffset===s.startOffset&&d.endContainer===s.startContainer&&d.endOffset===s.endOffset})}},{key:"isValidCache",value:function(i){return Cc(function(){return Ac(this,function(s){switch(s.label){case 0:return[4,i];case 1:return[2,s.sent().every(function(d){var g,b,w,_;return d.startContainer.isConnected&&d.startOffset<=((b=(g=d.startContainer.nodeValue)===null||g===void 0?void 0:g.length)!==null&&b!==void 0?b:0)&&d.endContainer.isConnected&&d.endOffset<=((_=(w=d.endContainer.nodeValue)===null||w===void 0?void 0:w.length)!==null&&_!==void 0?_:0)})]}})})()}},{key:"find",value:function(i,s){var d=this;return Cc(function(){var g,b;return Ac(this,function(w){switch(w.label){case 0:return s.length?(g=d.cache[s],(b=g)?[4,d.isValidCache(g)]:[3,2]):[2,[]];case 1:b=w.sent(),w.label=2;case 2:return b?[2,g]:(d.cache[s]=d.j.async.promise(function(_){var T=new kJ(d.j.o.search.fuzzySearch);i.on("break",function(){_([])}).on("visit",function(z){return N.isText(z)&&T.add(z),!1}).on("end",function(){var z;_((z=T.ranges(s))!==null&&z!==void 0?z:[])}).setWork(d.j.editor)}),[2,d.cache[s]])}})})()}},{key:"__drawSelectionRanges",value:function(i){var s=this,d=this.j,g=d.async,b=d.createInside,w=d.editor;g.cancelAnimationFrame(this.wrapFrameRequest);var _,T=function(L){return function(D){if(Array.isArray(D))return KC(D)}(L)||function(D){if(typeof Symbol<"u"&&D[Symbol.iterator]!=null||D["@@iterator"]!=null)return Array.from(D)}(L)||function(D,q){if(D){if(typeof D=="string")return KC(D,q);var Y=Object.prototype.toString.call(D).slice(8,-1);return Y==="Object"&&D.constructor&&(Y=D.constructor.name),Y==="Map"||Y==="Set"?Array.from(Y):Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y)?KC(D,q):void 0}}(L)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(i),z=0;return g.promise(function(L){var D=function(){do(_=T.shift())&&xJ(s.j,_,T,b,w),z+=1;while(_&&z<=5);T.length?s.wrapFrameRequest=g.requestAnimationFrame(D):L()};D()})}},{key:"onAfterGetValueFromEditor",value:function(i){i.value=i.value.replace(RegExp("<span[^>]+".concat(Gy,"[^>]+>(.*?)</span>"),"g"),"$1")}},{key:"afterInit",value:function(i){var s=this;if(i.o.useSearch){var d=this,g=this;i.e.on("beforeSetMode.search",function(){s.ui.close()}).on(this.ui,"afterClose",function(){$y(i),s.ui.currentIndex=0,s.ui.count=0,s.cache={},i.focus()}).on("click",function(){s.ui.currentIndex=0,$y(i)}).on("change.search",function(){s.cache={}}).on("keydown.search mousedown.search",i.async.debounce(function(){s.ui.selInfo&&(i.s.removeMarkers(),s.ui.selInfo=null),s.ui.isOpened&&s.updateCounters()},i.defaultTimeout)).on("searchNext.search searchPrevious.search",function(){return s.ui.isOpened||s.ui.open(),g.findAndSelect(g.ui.query,i.e.current==="searchNext").catch(function(b){})}).on("search.search",function(b){var w=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return d.ui.currentIndex=0,g.findAndSelect(b||"",w).catch(function(_){})}),i.registerCommand("search",{exec:function(b,w){var _=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return w&&g.findAndSelect(w,_).catch(function(T){}),!1}}).registerCommand("openSearchDialog",{exec:function(b,w){return g.ui.open(w),!1},hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec:function(b,w,_){return i.o.readonly||g.ui.open(w,_,!0),!1},hotkeys:["ctrl+h","cmd+h"]})}}},{key:"beforeDestruct",value:function(i){var s;(s=Zn(this,"ui"))===null||s===void 0||s.destruct(),i.e.off(".search")}}],u&&SJ(h.prototype,u),c}(QC(ut));function tA(l,c,h){return tA=nA()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Eg(g,s.prototype),g},tA.apply(null,arguments)}function CJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Og(l){return Og=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Og(l)}function Eg(l,c){return Eg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Eg(l,c)}function wN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function rA(l){var c=typeof Map=="function"?new Map:void 0;return rA=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return tA(h,arguments,Og(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Eg(i,h)},rA(l)}function nA(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nA=function(){return!!l})()}nl([vr],is.prototype,"ui",null),nl([_e("ui:needUpdateCounters")],is.prototype,"updateCounters",null),nl([_e("ui:pressReplaceButton")],is.prototype,"onPressReplaceButton",null),nl([Ce],is.prototype,"findQueryBounds",null),nl([Ce],is.prototype,"findAndReplace",null),nl([Ce],is.prototype,"findAndSelect",null),nl([Ce],is.prototype,"find",null),nl([_e(":afterGetValueFromEditor")],is.prototype,"onAfterGetValueFromEditor",null),Ve.add("search",is),de.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0};var Td=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":wN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Oc=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Og(d),function(b,w){return!w||wN(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,nA()?Reflect.construct(d,g||[],Og(s).constructor):d.apply(s,g))}(this,c,arguments)).proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"],i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Eg(i,s)}(c,l),h=c,u=[{key:"afterInit",value:function(i){var s=this;this.proxyEventsList.forEach(function(d){i.e.on(d+".select",s.onStartSelection)})}},{key:"beforeDestruct",value:function(i){var s=this;this.proxyEventsList.forEach(function(d){i.e.on(d+".select",s.onStartSelection)})}},{key:"onStartSelection",value:function(i){for(var s,d=this.j,g=i.target;s===void 0&&g&&g!==d.editor;)s=d.e.fire(jn(i.type+"_"+g.nodeName.toLowerCase()),g,i),g=g.parentElement;i.type==="click"&&s===void 0&&g===d.editor&&d.e.fire(i.type+"Editor",g,i)}},{key:"onOutsideClick",value:function(i){var s=this,d=i.target;N.up(d,function(g){return g===s.j.editor})||Vr.closestElement(d,Li)||this.j.e.fire("outsideClick",i)}},{key:"beforeCommandCut",value:function(){var i=this.j.s;if(!i.isCollapsed()){var s=i.current();s&&N.isOrContains(this.j.editor,s)&&this.onCopyNormalizeSelectionBound()}}},{key:"beforeCommandSelectAll",value:function(){var i=this.j.s;return i.focus(),i.select(this.j.editor,!0),i.expandSelection(),!1}},{key:"onTripleClickNormalizeSelection",value:function(i){if(i.detail===3&&this.j.o.select.normalizeTripleClick){var s=this.j.s,d=s.range,g=d.startContainer;d.startOffset===0&&N.isText(g)&&s.select(N.closest(g,N.isBlock,this.j.editor)||g,!0)}}},{key:"onCopyNormalizeSelectionBound",value:function(i){var s=this.j,d=s.s,g=s.editor;s.o.select.normalizeSelectionBeforeCutAndCopy&&!d.isCollapsed()&&(!i||i.isTrusted&&N.isNode(i.target)&&N.isOrContains(g,i.target))&&this.jodit.s.expandSelection()}}],u&&CJ(h.prototype,u),c}(rA(ut));function _N(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function oA(l,c,h){return oA=aA()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Rg(g,s.prototype),g},oA.apply(null,arguments)}function AJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Tg(l){return Tg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Tg(l)}function Rg(l,c){return Rg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Rg(l,c)}function kN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function iA(l){var c=typeof Map=="function"?new Map:void 0;return iA=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return oA(h,arguments,Tg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Rg(i,h)},iA(l)}function aA(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aA=function(){return!!l})()}Td([Ce],Oc.prototype,"onStartSelection",null),Td([_e("ow:click")],Oc.prototype,"onOutsideClick",null),Td([_e([":beforeCommandCut"])],Oc.prototype,"beforeCommandCut",null),Td([_e([":beforeCommandSelectall"])],Oc.prototype,"beforeCommandSelectAll",null),Td([_e([":click"])],Oc.prototype,"onTripleClickNormalizeSelection",null),Td([_e([":copy",":cut"])],Oc.prototype,"onCopyNormalizeSelectionBound",null),Ve.add("select",Oc),de.prototype.tableAllowCellSelection=!0;var Ec=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":kN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},jN="table_processor_observer",SN="onMoveTableSelectCell",as=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Tg(d),function(b,w){return!w||kN(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,aA()?Reflect.construct(d,g||[],Tg(s).constructor):d.apply(s,g))}(this,c,arguments)).__selectedCell=null,i.__isSelectionMode=!1,i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Rg(i,s)}(c,l),h=c,u=[{key:"__tableModule",get:function(){return this.j.getInstance(sp,this.j.o)}},{key:"afterInit",value:function(i){var s=this;i.o.tableAllowCellSelection&&i.e.on("keydown.select-cells",function(d){d.key===qs&&s.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(function(d){return d+".select-cells"}).join(" "),this.onStartSelection).on("clickTr clickTbody",function(){var d,g=s.__tableModule.getAllSelectedCells().length;if(g)return g>1&&((d=s.j.s.sel)===null||d===void 0||d.removeAllRanges()),!1})}},{key:"onStartSelection",value:function(i){if(!this.j.o.readonly&&(this.unselectCells(),i!==this.j.editor)){var s=N.closest(i,"table",this.j.editor);if(i&&s)return i.firstChild||i.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=i,this.__tableModule.addSelection(i),this.j.e.on(s,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,s),{label:SN,timeout:this.j.defaultTimeout/2})).on(s,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,s)),!1}}},{key:"onOutsideClick",value:function(){this.__selectedCell=null,this.__onRemoveSelection()}},{key:"onChange",value:function(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}},{key:"__onMove",value:function(i,s){var d,g=this;if((!this.j.o.readonly||this.j.isLocked)&&!this.j.isLockedNotBy(jN)){var b=this.j.ed.elementFromPoint(s.clientX,s.clientY);if(b){var w=N.closest(b,["td","th"],i);if(w&&this.__selectedCell){w!==this.__selectedCell&&this.j.lock(jN),this.unselectCells();for(var _=this.__tableModule.getSelectedBound(i,[w,this.__selectedCell]),T=this.__tableModule.formalMatrix(i),z=_[0][0];z<=_[1][0];z+=1)for(var L=_[0][1];L<=_[1][1];L+=1)this.__tableModule.addSelection(T[z][L]);var D;this.__tableModule.getAllSelectedCells().length>1&&((d=this.j.s.sel)===null||d===void 0||d.removeAllRanges()),this.j.e.fire("hidePopup"),s.stopPropagation(),D=g.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>'),w.appendChild(D),g.j.async.setTimeout(function(){var q;(q=D.parentNode)===null||q===void 0||q.removeChild(D)},g.j.defaultTimeout/5)}}}}},{key:"__onRemoveSelection",value:function(i){var s;if(!(!((s=i==null?void 0:i.buffer)===null||s===void 0)&&s.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length)return this.j.unlock(),this.unselectCells(),void this.j.e.fire("hidePopup","cells");this.__isSelectionMode=!1,this.__selectedCell=null}},{key:"__onStopSelection",value:function(i,s){var d=this;if(this.__selectedCell){this.__isSelectionMode=!1,this.j.unlock();var g=this.j.ed.elementFromPoint(s.clientX,s.clientY);if(g){var b=N.closest(g,["td","th"],i);if(b){var w=N.closest(b,"table",i);if(!w||w===i){var _=this.__tableModule.getSelectedBound(i,[b,this.__selectedCell]),T=this.__tableModule.formalMatrix(i),z=T[_[1][0]][_[1][1]],L=T[_[0][0]][_[0][1]];this.j.e.fire("showPopup",i,function(){var D=Bn(L,d.j),q=Bn(z,d.j);return{left:D.left,top:D.top,width:q.left-D.left+q.width,height:q.top-D.top+q.height}},"cells"),Ct("table",this.j.editor).forEach(function(D){d.j.e.off(D,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(SN)}}}}}},{key:"unselectCells",value:function(i){var s=this.__tableModule,d=s.getAllSelectedCells();d.length&&d.forEach(function(g){i&&i===g||s.removeSelection(g)})}},{key:"onExecCommand",value:function(i){var s=this;if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(i)){i=i.replace("table","");var d=this.__tableModule.getAllSelectedCells();if(d.length){var g=function(_,T){return function(z){if(Array.isArray(z))return z}(_)||function(z,L){var D=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(D!=null){var q,Y,X=[],J=!0,$=!1;try{for(D=D.call(z);!(J=(q=D.next()).done)&&(X.push(q.value),!L||X.length!==L);J=!0);}catch(ee){$=!0,Y=ee}finally{try{J||D.return==null||D.return()}finally{if($)throw Y}}return X}}(_,T)||function(z,L){if(z){if(typeof z=="string")return _N(z,L);var D=Object.prototype.toString.call(z).slice(8,-1);return D==="Object"&&z.constructor&&(D=z.constructor.name),D==="Map"||D==="Set"?Array.from(D):D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D)?_N(z,L):void 0}}(_,T)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(d,1)[0];if(!g)return;var b=N.closest(g,"table",this.j.editor);if(!b)return;switch(i){case"splitv":this.__tableModule.splitVertical(b);break;case"splitg":this.__tableModule.splitHorizontal(b);break;case"merge":this.__tableModule.mergeSelected(b);break;case"empty":d.forEach(function(_){return N.detach(_)});break;case"bin":N.safeRemove(b);break;case"binrow":new Set(d.map(function(_){return _.parentNode})).forEach(function(_){s.__tableModule.removeRow(b,_.rowIndex)});break;case"bincolumn":var w=new Set;d.reduce(function(_,T){return w.has(T.cellIndex)||(_.push(T),w.add(T.cellIndex)),_},[]).forEach(function(_){s.__tableModule.removeColumn(b,_.cellIndex)});break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(b,g,i==="addcolumnafter");break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(b,g.parentNode,i==="addrowafter")}}return!1}}},{key:"onAfterCommand",value:function(i){/^justify/.test(i)&&this.__tableModule.getAllSelectedCells().forEach(function(s){return J_(i,s)})}},{key:"beforeDestruct",value:function(i){this.__onRemoveSelection(),i.e.off(".select-cells")}}],u&&AJ(h.prototype,u),c}(iA(ut));function OJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}as.requires=["select"],Ec([Ce],as.prototype,"onStartSelection",null),Ec([_e(":outsideClick")],as.prototype,"onOutsideClick",null),Ec([_e(":change")],as.prototype,"onChange",null),Ec([Ce],as.prototype,"__onRemoveSelection",null),Ec([Ce],as.prototype,"__onStopSelection",null),Ec([Ce],as.prototype,"onExecCommand",null),Ec([Ce],as.prototype,"onAfterCommand",null),Ve.add("selectCells",as),de.prototype.beautifyHTML=!Du,de.prototype.sourceEditor="ace",de.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},de.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],de.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],Ke.set("source",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg> `),de.prototype.controls.source={mode:ca,exec:function(l){l.toggleMode()},isActive:function(l){return l.getRealMode()===Nn},tooltip:"Change mode"};var CN=function(){function l(u,i,s,d){(function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")})(this,l),this.jodit=u,this.container=i,this.toWYSIWYG=s,this.fromWYSIWYG=d,this.className="",this.isReady=!1}var c,h;return c=l,(h=[{key:"j",get:function(){return this.jodit}},{key:"onReady",value:function(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}},{key:"onReadyAlways",value:function(u){var i;this.isReady?u():(i=this.j.events)===null||i===void 0||i.on(this,"ready",u)}}])&&OJ(c.prototype,h),l}();function EJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Ky(l){return Ky=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Ky(l)}function sA(l,c){return sA=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},sA(l,c)}function AN(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AN=function(){return!!l})()}var TJ=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Ky(d),function(b,w){return!w||((_=w)&&typeof Symbol<"u"&&_.constructor===Symbol?"symbol":typeof _)!="object"&&typeof w!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(b):w;var _}(s,AN()?Reflect.construct(d,g||[],Ky(s).constructor):d.apply(s,g))}(this,c,arguments)).className="jodit_ace_editor",i.proxyOnBlur=function(s){i.j.e.fire("blur",s)},i.proxyOnFocus=function(s){i.j.e.fire("focus",s)},i.proxyOnMouseDown=function(s){i.j.e.fire("mousedown",s)},i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&sA(i,s)}(c,l),h=c,(u=[{key:"aceExists",value:function(){return this.j.ow.ace!==void 0}},{key:"getLastColumnIndex",value:function(i){return this.instance.session.getLine(i).length}},{key:"getLastColumnIndices",value:function(){for(var i=this.instance.session.getLength(),s=[],d=0,g=0;g<i;g++)d+=this.getLastColumnIndex(g),g>0&&(d+=1),s[g]=d;return s}},{key:"getRowColumnIndices",value:function(i){var s=this.getLastColumnIndices();if(i<=s[0])return{row:0,column:i};for(var d=1,g=1;g<s.length;g++)i>s[g]&&(d=g+1);return{row:d,column:i-s[d-1]-1}}},{key:"setSelectionRangeIndices",value:function(i,s){var d=this.getRowColumnIndices(i),g=this.getRowColumnIndices(s);this.instance.getSelection().setSelectionRange({start:d,end:g})}},{key:"getIndexByRowColumn",value:function(i,s){return this.getLastColumnIndices()[i]-this.getLastColumnIndex(i)+s}},{key:"init",value:function(i){var s=this,d=function(){if(s.instance===void 0&&s.aceExists()){var g=s.j.c.div("jodit-source__mirror-fake");s.container.appendChild(g);var b=i.ow.ace;s.instance=b.edit(g),i.o.direction==="rtl"&&(s.instance.setOption("rtlText",!0),s.instance.setOption("rtl",!0)),s.instance.setTheme(i.o.sourceEditorNativeOptions.theme),s.instance.renderer.setShowGutter(i.o.sourceEditorNativeOptions.showGutter),s.instance.getSession().setMode(i.o.sourceEditorNativeOptions.mode),s.instance.setHighlightActiveLine(i.o.sourceEditorNativeOptions.highlightActiveLine),s.instance.getSession().setUseWrapMode(!0),s.instance.setOption("indentedSoftWrap",!1),s.instance.setOption("wrap",i.o.sourceEditorNativeOptions.wrap),s.instance.getSession().setUseWorker(!1),s.instance.$blockScrolling=1/0,s.instance.on("change",s.toWYSIWYG),s.instance.on("focus",s.proxyOnFocus),s.instance.on("mousedown",s.proxyOnMouseDown),s.instance.on("blur",s.proxyOnBlur),i.getRealMode()!==gr&&s.setValue(s.getValue());var w=s.j.async.throttle(function(){if(!i.isInDestruct&&i.getMode()!==gr){var _=s.instance.isFocused();i.o.height!=="auto"?s.instance.setOption("maxLines",i.workplace.offsetHeight/s.instance.renderer.lineHeight):s.instance.setOption("maxLines",1/0),s.instance.resize(),_&&s.focus()}},2*s.j.defaultTimeout);i.e.on(i,"resize",w).on("afterResize afterSetMode",w),w(),s.onReady()}};i.e.on("afterSetMode",function(){i.getRealMode()!==Nn&&i.getMode()!==ca||(s.fromWYSIWYG(),d())}),d(),this.aceExists()||Pb(i,i.o.sourceEditorCDNUrlsJS).then(function(){i.isInDestruct||d()}).catch(function(){return null})}},{key:"destruct",value:function(){var i,s;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),(s=(i=this.j)===null||i===void 0?void 0:i.events)===null||s===void 0||s.off("aceInited.source")}},{key:"setValue",value:function(i){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){var s=this.j.e.fire("beautifyHTML",i);Se(s)&&(i=s)}this.instance.setValue(i),this.instance.clearSelection()}},{key:"getValue",value:function(){return this.instance.getValue()}},{key:"setReadOnly",value:function(i){this.instance.setReadOnly(i)}},{key:"isFocused",get:function(){return this.instance.isFocused()}},{key:"focus",value:function(){this.instance.container.focus(),this.instance.focus()}},{key:"blur",value:function(){this.instance.blur()}},{key:"getSelectionStart",value:function(){var i=this.instance.selection.getRange();return this.getIndexByRowColumn(i.start.row,i.start.column)}},{key:"getSelectionEnd",value:function(){var i=this.instance.selection.getRange();return this.getIndexByRowColumn(i.end.row,i.end.column)}},{key:"selectAll",value:function(){this.instance.selection.selectAll()}},{key:"insertRaw",value:function(i){var s=this.instance.selection.getCursor(),d=this.instance.session.insert(s,i);this.instance.selection.setRange({start:s,end:d},!1)}},{key:"setSelectionRange",value:function(i,s){this.setSelectionRangeIndices(i,s)}},{key:"setPlaceHolder",value:function(i){}},{key:"replaceUndoManager",value:function(){var i=this.jodit.history;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:function(){i.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:function(){i.redo()}})}}])&&EJ(h.prototype,u),c}(CN);function RJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Jy(l){return Jy=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Jy(l)}function lA(l,c){return lA=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},lA(l,c)}function ON(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ON=function(){return!!l})()}var PJ=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Jy(d),function(b,w){return!w||((_=w)&&typeof Symbol<"u"&&_.constructor===Symbol?"symbol":typeof _)!="object"&&typeof w!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(b):w;var _}(s,ON()?Reflect.construct(d,g||[],Jy(s).constructor):d.apply(s,g))}(this,c,arguments)).autosize=i.j.async.debounce(function(){i.instance.style.height="auto",i.instance.style.height=i.instance.scrollHeight+"px"},i.j.defaultTimeout),i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&lA(i,s)}(c,l),h=c,u=[{key:"init",value:function(i){var s=this;this.instance=i.c.element("textarea",{class:"jodit-source__mirror",dir:i.o.direction==="rtl"?"rtl":void 0}),this.container.appendChild(this.instance),i.e.on(this.instance,"mousedown keydown touchstart input",i.async.debounce(this.toWYSIWYG,i.defaultTimeout)).on("setMinHeight.source",function(d){be(s.instance,"minHeight",d)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",function(d){i.e.fire(d.type,d)}),this.autosize(),this.onReady()}},{key:"destruct",value:function(){N.safeRemove(this.instance)}},{key:"getValue",value:function(){return this.instance.value}},{key:"setValue",value:function(i){this.instance.value=i}},{key:"insertRaw",value:function(i){var s=this.getValue();if(this.getSelectionStart()>=0){var d=this.getSelectionStart(),g=this.getSelectionEnd();this.setValue(s.substring(0,d)+i+s.substring(g,s.length))}else this.setValue(s+i)}},{key:"getSelectionStart",value:function(){return this.instance.selectionStart}},{key:"getSelectionEnd",value:function(){return this.instance.selectionEnd}},{key:"setSelectionRange",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i;this.instance.setSelectionRange(i,s)}},{key:"isFocused",get:function(){return this.instance===this.j.od.activeElement}},{key:"focus",value:function(){this.instance.focus()}},{key:"blur",value:function(){this.instance.blur()}},{key:"setPlaceHolder",value:function(i){this.instance.setAttribute("placeholder",i)}},{key:"setReadOnly",value:function(i){i?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}},{key:"selectAll",value:function(){this.instance.select()}},{key:"replaceUndoManager",value:function(){var i=this,s=this.jodit.history;this.j.e.on(this.instance,"keydown",function(d){if((d.ctrlKey||d.metaKey)&&d.key==="z")return d.shiftKey?s.redo():s.undo(),i.setSelectionRange(i.getValue().length),!1})}}],u&&RJ(h.prototype,u),c}(CN);function EN(l,c,h,u,i){var s;if(Pe(l))s=l(c);else switch(l){case"ace":if(!c.o.shadowRoot){s=new TJ(c,h,u,i);break}default:s=new PJ(c,h,u,i)}return s.init(c),s.onReadyAlways(function(){s.setReadOnly(c.o.readonly)}),s}function cA(l,c,h){return cA=dA()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&zg(g,s.prototype),g},cA.apply(null,arguments)}function zJ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Pg(l){return Pg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Pg(l)}function zg(l,c){return zg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},zg(l,c)}function TN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function uA(l){var c=typeof Map=="function"?new Map:void 0;return uA=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return cA(h,arguments,Pg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),zg(i,h)},uA(l)}function dA(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dA=function(){return!!l})()}var va=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":TN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Ui=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Pg(d),function(b,w){return!w||TN(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,dA()?Reflect.construct(d,g||[],Pg(s).constructor):d.apply(s,g))}(this,c,arguments)).buttons=[{name:"source",group:"source"}],i.__lock=!1,i.__oldMirrorValue="",i.tempMarkerStart="{start-jodit-selection}",i.tempMarkerStartReg=/{start-jodit-selection}/g,i.tempMarkerEnd="{end-jodit-selection}",i.tempMarkerEndReg=/{end-jodit-selection}/g,i.getSelectionStart=function(){var s,d;return(d=(s=i.sourceEditor)===null||s===void 0?void 0:s.getSelectionStart())!==null&&d!==void 0?d:0},i.getSelectionEnd=function(){var s,d;return(d=(s=i.sourceEditor)===null||s===void 0?void 0:s.getSelectionEnd())!==null&&d!==void 0?d:0},i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&zg(i,s)}(c,l),h=c,u=[{key:"onInsertHTML",value:function(i){var s;if(!this.j.o.readonly&&!this.j.isEditorMode())return(s=this.sourceEditor)===null||s===void 0||s.insertRaw(i),this.toWYSIWYG(),!1}},{key:"fromWYSIWYG",value:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!this.__lock||i===!0){this.__lock=!0;var s=this.j.getEditorValue(!1,D_);s!==this.getMirrorValue()&&this.setMirrorValue(s),this.__lock=!1}}},{key:"toWYSIWYG",value:function(){if(!this.__lock){var i=this.getMirrorValue();i!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=i,this.__lock=!1,this.__oldMirrorValue=i)}}},{key:"getNormalPosition",value:function(i,s){for(s=s.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,function(g){for(var b="",w=0;w<g.length;w+=1)b+=dn;return b});i>0&&s[i]===dn;)i--;for(var d=i;d>0;){if(s[--d]==="<"&&s[d+1]!==void 0&&s[d+1].match(/[\w/]+/i))return d;if(s[d]===">")return i}return i}},{key:"clnInv",value:function(i){return i.replace(Ya(),"")}},{key:"onSelectAll",value:function(i){var s;if(i.toLowerCase()==="selectall"&&this.j.getRealMode()===Nn)return(s=this.sourceEditor)===null||s===void 0||s.selectAll(),!1}},{key:"getMirrorValue",value:function(){var i;return((i=this.sourceEditor)===null||i===void 0?void 0:i.getValue())||""}},{key:"setMirrorValue",value:function(i){var s;(s=this.sourceEditor)===null||s===void 0||s.setValue(i)}},{key:"setFocusToMirror",value:function(){var i;(i=this.sourceEditor)===null||i===void 0||i.focus()}},{key:"saveSelection",value:function(){if(this.j.getRealMode()===gr)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;var i=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){var s=this.j.s.marker(!0),d=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(i.substring(0,d)+this.clnInv(s.outerHTML)+i.substring(d))}else{var g=this.j.s.marker(!0),b=this.j.s.marker(!1),w=this.getNormalPosition(this.getSelectionStart(),i),_=this.getNormalPosition(this.getSelectionEnd(),i);this.setMirrorValue(i.slice(0,w)+this.clnInv(g.outerHTML)+i.slice(w,_)+this.clnInv(b.outerHTML)+i.slice(_))}this.toWYSIWYG()}}},{key:"removeSelection",value:function(){if(this.j.getRealMode()===gr)return this.__lock=!0,this.j.s.restore(),void(this.__lock=!1);var i=this.getMirrorValue(),s=0,d=0;try{if(i=i.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){var g=this.j.e.fire("beautifyHTML",i);Se(g)&&(i=g)}if(d=s=i.indexOf(this.tempMarkerStart),i=i.replace(this.tempMarkerStartReg,""),s!==-1){var b=i.indexOf(this.tempMarkerEnd);b!==-1&&(d=b)}i=i.replace(this.tempMarkerEndReg,"")}finally{i=i.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(i),this.setMirrorSelectionRange(s,d),this.toWYSIWYG(),this.setFocusToMirror()}},{key:"setMirrorSelectionRange",value:function(i,s){var d;(d=this.sourceEditor)===null||d===void 0||d.setSelectionRange(i,s)}},{key:"onReadonlyReact",value:function(){var i;(i=this.sourceEditor)===null||i===void 0||i.setReadOnly(this.j.o.readonly)}},{key:"afterInit",value:function(i){var s=this;if(this.mirrorContainer=i.c.div("jodit-source"),i.workplace.appendChild(this.mirrorContainer),i.e.on("afterAddPlace changePlace afterInit",function(){i.workplace.appendChild(s.mirrorContainer)}),this.sourceEditor=EN("area",i,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),i.e.on(i.ow,"keydown",function(g){var b;g.key===Nu&&(!((b=s.sourceEditor)===null||b===void 0)&&b.isFocused)&&s.sourceEditor.blur()}),this.onReadonlyReact(),i.e.on("placeholder.source",function(g){var b;(b=s.sourceEditor)===null||b===void 0||b.setPlaceHolder(g)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",function(g){return g}),i.o.beautifyHTML){var d=function(){var g;if(i.isInDestruct)return!1;var b=i.ow.html_beautify;return!(!b||i.isInDestruct||((g=i.events)===null||g===void 0||g.off("beautifyHTML").on("beautifyHTML",function(w){return b(w)}),0))};d()||Pb(i,i.o.beautifyHTMLCDNUrlsJS).then(d,function(){return null})}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(i)}},{key:"syncValueFromWYSIWYG",value:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0],s=this.j;s.getMode()!==ca&&s.getMode()!==Nn||this.fromWYSIWYG(i)}},{key:"initSourceEditor",value:function(i){var s,d=this;if(i.o.sourceEditor!=="area"){var g=EN(i.o.sourceEditor,i,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);g.onReadyAlways(function(){var b,w;(b=d.sourceEditor)===null||b===void 0||b.destruct(),d.sourceEditor=g,d.syncValueFromWYSIWYG(!0),(w=i.events)===null||w===void 0||w.fire("sourceEditorReady",i)})}else(s=this.sourceEditor)===null||s===void 0||s.onReadyAlways(function(){var b;d.syncValueFromWYSIWYG(!0),(b=i.events)===null||b===void 0||b.fire("sourceEditorReady",i)})}},{key:"beforeDestruct",value:function(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),N.safeRemove(this.mirrorContainer)}}],u&&zJ(h.prototype,u),c}(uA(ut));va([_e(":insertHTML.source")],Ui.prototype,"onInsertHTML",null),va([Ce],Ui.prototype,"fromWYSIWYG",null),va([Ce],Ui.prototype,"toWYSIWYG",null),va([Ce],Ui.prototype,"getNormalPosition",null),va([_e(":beforeCommand.source")],Ui.prototype,"onSelectAll",null),va([_e(":beforeSetMode.source")],Ui.prototype,"saveSelection",null),va([_e(":afterSetMode.source")],Ui.prototype,"removeSelection",null),va([Ce],Ui.prototype,"setMirrorSelectionRange",null),va([_e(":readonly.source")],Ui.prototype,"onReadonlyReact",null),va([Ce],Ui.prototype,"syncValueFromWYSIWYG",null),Ve.add("source",Ui);const RN='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg> ';de.prototype.spellcheck=!1,Ke.set("spellcheck",RN),de.prototype.controls.spellcheck={isActive:function(l){return l.o.spellcheck},icon:RN,name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"};const MJ={Spellcheck:"التدقيق الإملائي"},IJ={Spellcheck:"Kontrola pravopisu"},LJ={Spellcheck:"Rechtschreibprüfung"},NJ={Spellcheck:"Corrección ortográfica"},DJ={Spellcheck:"غلطیابی املایی"},BJ={Spellcheck:"Oikeinkirjoituksen tarkistus"},FJ={Spellcheck:"Vérification Orthographique"},HJ={Spellcheck:"בדיקת איות"},UJ={Spellcheck:"Helyesírás-ellenőrzés"},VJ={Spellcheck:"Spellchecking"},qJ={Spellcheck:"Controllo ortografico"},YJ={Spellcheck:"スペルチェック"},WJ={Spellcheck:"맞춤법 검사"},XJ={Spellcheck:"Дүрмийн алдаа шалгах"},GJ={Spellcheck:"Spellingcontrole"},$J={Spellcheck:"Stavekontroll"},ZJ={Spellcheck:"Sprawdzanie pisowni"},KJ={Spellcheck:"Verificação ortográfica"},JJ={Spellcheck:"Проверка орфографии"},QJ={Spellcheck:"Yazım denetimi"},eQ={Spellcheck:"Перевірка орфографії"},tQ={Spellcheck:"拼写检查"},rQ={Spellcheck:"拼字檢查"};function fA(l,c,h){return fA=pA()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Ig(g,s.prototype),g},fA.apply(null,arguments)}function nQ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Mg(l){return Mg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Mg(l)}function Ig(l,c){return Ig=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Ig(l,c)}function PN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function hA(l){var c=typeof Map=="function"?new Map:void 0;return hA=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return fA(h,arguments,Mg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ig(i,h)},hA(l)}function pA(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pA=function(){return!!l})()}var zN=function(l){function c(i){var s;return function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(d,g,b){return g=Mg(g),function(w,_){return!_||PN(_)!=="object"&&typeof _!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(w):_}(d,pA()?Reflect.construct(g,b||[],Mg(d).constructor):g.apply(d,b))}(this,c,[i])).buttons=[{group:"state",name:"spellcheck"}],$u(Mt),s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Ig(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(i){var s=this;i.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),i.registerCommand("toggleSpellcheck",function(){s.jodit.o.spellcheck=!s.jodit.o.spellcheck,s.toggleSpellcheck(),s.j.e.fire("updateToolbar")})}},{key:"toggleSpellcheck",value:function(){fe(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}},{key:"beforeDestruct",value:function(i){}}])&&nQ(h.prototype,u),c}(hA(ut));function gA(l,c,h){return gA=vA()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Ng(g,s.prototype),g},gA.apply(null,arguments)}function oQ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Lg(l){return Lg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Lg(l)}function Ng(l,c){return Ng=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Ng(l,c)}function MN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function mA(l){var c=typeof Map=="function"?new Map:void 0;return mA=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return gA(h,arguments,Lg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ng(i,h)},mA(l)}function vA(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vA=function(){return!!l})()}(function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":PN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);s>3&&d&&Object.defineProperty(c,h,d)})([Ce],zN.prototype,"toggleSpellcheck",null),Ve.add("spellcheck",zN),de.prototype.toolbarSticky=!0,de.prototype.toolbarDisableStickyForMobile=!0,de.prototype.toolbarStickyOffset=0;var IN=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Lg(d),function(b,w){return!w||MN(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,vA()?Reflect.construct(d,g||[],Lg(s).constructor):d.apply(s,g))}(this,c,arguments)).__isToolbarStuck=!1,i.__createDummy=function(s){i.__dummyBox=i.j.c.div(),i.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),i.j.container.insertBefore(i.__dummyBox,s)},i.addSticky=function(s){i.__isToolbarStuck||(i.j.container.classList.add("jodit_sticky"),i.__isToolbarStuck=!0),be(s,{top:i.j.o.toolbarStickyOffset||null,width:i.j.container.offsetWidth-2}),i.__dummyBox&&be(i.__dummyBox,{height:s.offsetHeight})},i.removeSticky=function(s){i.__isToolbarStuck&&(be(s,{width:"",top:""}),i.j.container.classList.remove("jodit_sticky"),i.__isToolbarStuck=!1)},i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Ng(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(i){var s=this;i.e.on(i.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",function(){return s.__isToolbarStuck})}},{key:"__onScroll",value:function(){var i=this.jodit;if(i.o.toolbarSticky&&i.o.toolbar){var s=i.ow.pageYOffset||i.od.documentElement&&i.od.documentElement.scrollTop||0,d=fa(i.container,i,i.od,!0),g=i.getMode()===gr&&s+i.o.toolbarStickyOffset>d.top&&s+i.o.toolbarStickyOffset<d.top+d.height&&!(i.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck!==g){var b=i.toolbarContainer;b&&(g?this.addSticky(b):this.removeSticky(b)),i.e.fire("toggleSticky",g)}}}},{key:"__isMobile",value:function(){var i=this.j;return i&&i.options&&i.container&&i.options.sizeSM>=i.container.offsetWidth}},{key:"beforeDestruct",value:function(i){N.safeRemove(this.__dummyBox),i.e.off(i.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}}])&&oQ(h.prototype,u),c}(mA(ut));(function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":MN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);s>3&&d&&Object.defineProperty(c,h,d)})([Za()],IN.prototype,"__onScroll",null),Ve.add("sticky",IN),de.prototype.usePopupForSpecialCharacters=!1,de.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],Ke.set("symbols",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg> `),de.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:function(l,c,h){var u=l.e.fire("generateSpecialCharactersTable.symbols");if(u){if(l.o.usePopupForSpecialCharacters){var i=l.c.div();return i.classList.add("jodit-symbols"),i.appendChild(u),l.e.on(u,"close_dialog",h),i}l.alert(u,"Select Special Character",void 0,"jodit-symbols").bindDestruct(l);var s=u.querySelector("a");s&&s.focus()}}};const iQ={symbols:"رمز"},aQ={symbols:"symbol"},sQ={symbols:"Symbol"},lQ={symbols:"Símbolo"},cQ={symbols:"سمبل"},uQ={symbols:"Symbolit"},dQ={symbols:"caractère"},fQ={symbols:"תו מיוחד"},hQ={symbols:"Szimbólum"},pQ={symbols:"simbol"},gQ={symbols:"Simbolo"},mQ={symbols:"symbol"},vQ={symbols:"기호"},bQ={symbols:"тэмдэгт"},yQ={symbols:"symbool"},xQ={symbols:"symbol"},wQ={symbols:"Símbolo"},_Q={symbols:"символ"},kQ={symbols:"Sembol"},jQ={symbols:"символ"},SQ={symbols:"符号"},CQ={symbols:"符號"};function bA(l,c,h){return bA=xA()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Bg(g,s.prototype),g},bA.apply(null,arguments)}function AQ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Dg(l){return Dg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Dg(l)}function Bg(l,c){return Bg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Bg(l,c)}function yA(l){var c=typeof Map=="function"?new Map:void 0;return yA=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return bA(h,arguments,Dg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Bg(i,h)},yA(l)}function xA(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xA=function(){return!!l})()}var OQ=function(l){function c(i){var s;return function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(d,g,b){return g=Dg(g),function(w,_){return!_||((T=_)&&typeof Symbol<"u"&&T.constructor===Symbol?"symbol":typeof T)!="object"&&typeof _!="function"?function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(w):_;var T}(d,xA()?Reflect.construct(g,b||[],Dg(d).constructor):g.apply(d,b))}(this,c,[i])).buttons=[{name:"symbols",group:"insert"}],s.__countInRow=17,$u(r_),s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Bg(i,s)}(c,l),h=c,u=[{key:"afterInit",value:function(i){var s=this;i.e.on("generateSpecialCharactersTable.symbols",function(){for(var d=i.c.fromHTML(`<div class="jodit-symbols__container">
						<div class="jodit-symbols__container_table">
							<table class="jodit-symbols__table"><tbody></tbody></table>
						</div>
						<div class="jodit-symbols__container_preview">
							<div class="jodit-symbols__preview"></div>
						</div>
					</div>`),g=d.querySelector(".jodit-symbols__preview"),b=d.querySelector("table").tBodies[0],w=[],_=0;_<i.o.specialCharacters.length;){for(var T=i.c.element("tr"),z=0;z<s.__countInRow&&_<i.o.specialCharacters.length;z+=1,_+=1){var L=i.c.element("td"),D=i.c.fromHTML(`<a
									data-index="`.concat(_,`"
									data-index-j="`).concat(z,`"
									role="option"
									tabindex="-1"
							>`).concat(i.o.specialCharacters[_],"</a>"));w.push(D),L.appendChild(D),T.appendChild(L)}b.appendChild(T)}var q=s;return i.e.on(w,"focus",function(){g.innerHTML=this.innerHTML}).on(w,"mousedown",function(Y){N.isTag(this,"a")&&(i.s.focus(),i.s.insertHTML(this.innerHTML),Y!=null&&Y.shiftKey||i.e.fire(this,"close_dialog"),Y&&Y.preventDefault(),Y&&Y.stopImmediatePropagation())}).on(w,"mouseenter",function(){N.isTag(this,"a")&&this.focus()}).on(w,"keydown",function(Y){var X=Y.target;if(N.isTag(X,"a")){var J,$=parseInt(fe(X,"-index")||"0",10),ee=parseInt(fe(X,"data-index-j")||"0",10);switch(Y.key){case ti:case Mi:J=Y.key===ti?$-q.__countInRow:$+q.__countInRow,w[J]===void 0&&(J=Y.key===ti?Math.floor(w.length/q.__countInRow)*q.__countInRow+ee:ee)>w.length-1&&(J-=q.__countInRow),w[J]&&w[J].focus();break;case ac:case Ys:J=Y.key===Ys?$-1:$+1,w[J]===void 0&&(J=Y.key===Ys?w.length-1:0),w[J]&&w[J].focus();break;case ic:i.e.fire(X,"mousedown"),Y.stopImmediatePropagation(),Y.preventDefault()}}}),d})}},{key:"beforeDestruct",value:function(i){i.e.off("generateSpecialCharactersTable.symbols")}}],u&&AQ(h.prototype,u),c}(yA(ut));function EQ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Qy(l){return Qy=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Qy(l)}function wA(l,c){return wA=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},wA(l,c)}function LN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function NN(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NN=function(){return!!l})()}Ve.add("symbols",OQ),de.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},Ke.set("ai-assistant",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 24 24"> <g transform="scale(1.2 1.2) translate(-2 -0.5)"> <path d="M 22,12.5 A 1.49995,1.49995 0 0 0 20.50006,11 H 20 V 10 A 3,3 0 0 0 17,7 H 13 V 5.7226 a 2,2 0 1 0 -2,0 V 7 H 7 a 3,3 0 0 0 -3,3 v 1 H 3.49994 a 1.5,1.5 0 0 0 0,3 H 4 v 1 A 3.00128,3.00128 0 0 0 6.20251,17.89282 1.03113,1.03113 0 0 1 7,18.86975 v 0.716 a 0.99928,0.99928 0 0 0 1.00726,1.002 0.9792,0.9792 0 0 0 0.69983,-0.29486 l 2,-2 A 1,1 0 0 1 11.41425,18 H 17 a 3,3 0 0 0 3,-3 v -1 h 0.50006 A 1.49995,1.49995 0 0 0 22,12.5 Z M 19,15 a 2.00226,2.00226 0 0 1 -2,2 H 11.41425 A 1.987,1.987 0 0 0 10,17.58575 l -2,2 v -0.716 A 2.02082,2.02082 0 0 0 6.46771,16.92865 2.00439,2.00439 0 0 1 5,15 V 10 A 2.00226,2.00226 0 0 1 7,8 h 10 a 2.00222,2.00222 0 0 1 2,2 z M 10,12.5 A 1.5,1.5 0 1 1 8.5,11 1.5,1.5 0 0 1 10,12.5 Z m 7,0 A 1.5,1.5 0 1 1 15.5,11 1.5,1.5 0 0 1 17,12.5 Z"/> </g> </svg> `),Ke.set("ai-commands",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 270 270"> <path d="M 255.9537,58.150081 237.69527,40.997278 c -1.49414,-1.375593 -3.43653,-2.077427 -5.37891,-2.077427 -1.94239,0 -3.88478,0.701834 -5.37892,2.077427 L 29.919751,226.1128 c -2.988286,2.77926 -2.988286,7.32714 0,10.13447 L 48.148295,253.372 c 1.46426,1.37559 3.406646,2.1055 5.378915,2.1055 1.972268,0 3.884771,-0.72991 5.378914,-2.1055 L 221.34935,100.73732 255.9537,68.284552 c 2.9584,-2.807333 2.9584,-7.355212 0,-10.134471 z M 251.17244,63.79282 221.34935,91.781927 201.89561,73.506191 231.68882,45.48901 c 0.20918,-0.140367 0.38847,-0.224587 0.62754,-0.224587 0.23906,0 0.44824,0.08422 0.59765,0.224587 l 18.25843,17.152803 c 0,0 0.23906,0.33688 0.23906,0.561467 0,0.224586 -0.0896,0.4211 -0.23906,0.58954 z" style="stroke-width:2.8964;stroke-opacity:1" /> <path d="m 48.626421,116.87948 10.578532,23.10435 c 0.83672,1.82477 3.615826,1.85284 4.452546,0 l 10.937126,-23.52545 c 2.629692,-5.69888 7.470715,-10.24676 13.536935,-12.71722 l 25.07172,-10.274833 c 1.94239,-0.786053 1.94239,-3.396873 0,-4.182926 L 88.13156,79.008563 C 82.06534,76.53811 77.224317,71.990231 74.594625,66.291346 L 63.657499,42.737824 c -0.83672,-1.824766 -3.615826,-1.824766 -4.452546,0 L 48.267826,66.291346 C 45.638135,71.990231 40.797112,76.53811 34.730891,79.008563 L 9.6292894,89.311474 c -1.9423859,0.786054 -1.9423859,3.3688 0,4.182926 l 25.5498446,10.61172 c 6.036338,2.49852 10.847478,7.07448 13.477169,12.77336 z" style="stroke-width:2.8964;fill-opacity:1;stroke-opacity:1" /> <path d="m 111.79878,33.136746 13.56682,5.642739 c 3.19747,1.319446 5.76739,3.761826 7.14201,6.793745 l 5.61797,12.268044 c 0.44825,0.982567 1.91251,0.982567 2.36075,0 l 5.79727,-12.492631 c 1.4045,-3.031919 3.97442,-5.446225 7.20177,-6.765672 l 13.29788,-5.446225 c 1.0459,-0.4211 1.0459,-1.796693 0,-2.217793 l -13.29788,-5.446225 c -3.22735,-1.319447 -5.79727,-3.733753 -7.20177,-6.765672 L 140.48633,6.2144248 c -0.44824,-0.9825664 -1.9125,-0.9825664 -2.36075,0 l -5.79727,12.4926312 c -1.4045,3.031919 -3.97442,5.446225 -7.20177,6.765672 l -13.32776,5.474298 c -1.01601,0.4211 -1.0459,1.796693 0,2.217793 z" style="stroke-width:2.8964;fill-opacity:1" /> <path d="m 233.09331,192.98627 -14.13459,-5.7831 c -3.40665,-1.40367 -6.12599,-3.95834 -7.62013,-7.1587 l -6.15587,-13.27868 c -0.47813,-1.03872 -2.03203,-1.03872 -2.51016,0 l -6.15587,13.27868 c -1.49414,3.20036 -4.21348,5.75503 -7.62013,7.1587 l -14.13459,5.81118 c -1.10567,0.44917 -1.10567,1.90898 0,2.35816 l 14.40354,5.97961 c 3.40664,1.40367 6.12598,3.98642 7.59024,7.21485 l 5.97658,13.02602 c 0.47812,1.03872 2.03203,1.03872 2.51016,0 l 6.15586,-13.25061 c 1.49415,-3.20036 4.21349,-5.75503 7.62013,-7.1587 l 14.1346,-5.7831 c 1.10566,-0.44917 1.10566,-1.90899 0,-2.35816 z" style="stroke-width:2.8964;stroke-opacity:1" /> </svg> `),de.prototype.controls["ai-commands"]={isDisabled:function(l){return!l.o.aiAssistant.aiAssistantCallback},tooltip:"AI Commands",list:{aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"},exec:function(l,c,h){var u=h.control;l.e.fire("generateAiAssistantForm.ai-assistant",u.name)}},de.prototype.controls["ai-assistant"]={isDisabled:function(l){return!l.o.aiAssistant.aiAssistantCallback},hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec:function(l,c,h){l.e.fire("generateAiAssistantForm.ai-assistant")}};var e0=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":LN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Rd=function(l){function c(i,s){var d,g=s.onInsert,b=s.onInsertAfter;(function(T,z){if(!(T instanceof z))throw new TypeError("Cannot call a class as a function")})(this,c),(d=function(T,z,L){return z=Qy(z),function(D,q){return!q||LN(q)!=="object"&&typeof q!="function"?function(Y){if(Y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y}(D):q}(T,NN()?Reflect.construct(z,L||[],Qy(T).constructor):z.apply(T,L))}(this,c,[i])).__aiResult="",d.__error=d.getElm("error"),d.__body=d.getElm("body"),d.__buttons=d.getElm("buttons"),d.__results=d.getElm("results"),d.__spinner=d.getElm("spinner"),d.__insertButton=sr(i,"","Insert","primary").onAction(function(){return g(d.__aiResult)}),d.__insertAfterButton=sr(i,"","Insert After","initial").onAction(function(){return b(d.__aiResult)});var w=function(){d.__formAiAssistant.validate()&&(d.__formAiAssistant.submit(),d.__toggleInsertButton(!0),d.__toggleSubmitButton(!0))};d.__submitButton=sr(i,"ai-assistant","").onAction(w),d.__tryAgainButton=sr(i,"update","","initial").onAction(w),d.promptInput=new pc(i,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:d.getFullElName("prompt-row-input")});var _=new ho(i,[d.__insertButton,d.__insertAfterButton,d.__tryAgainButton],{className:d.getFullElName("prompt-row")});return d.__formAiAssistant=new Zs(i,[new ho(i,[d.promptInput,d.__submitButton],{className:d.getFullElName("prompt-row")})]).onSubmit(function(T){d.__error.textContent="",d.setMod("loading",!0),i.e.fire("invokeAiAssistant",T.prompt);var z=d.getFullElName("","hide","true");d.__results.classList.remove(z),d.__buttons.classList.remove(z),N.detach(d.__results),d.__results.appendChild(d.__spinner),d.__insertButton.focus()}),d.__buttons.appendChild(_.container),d.__body.appendChild(d.__formAiAssistant.container),d.onChangePromptValue(),d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&wA(i,s)}(c,l),h=c,u=[{key:"className",value:function(){return"UIAiAssistant"}},{key:"render",value:function(){return`<div>
				<div class="&__container">
						<div class="&__error"></div>
						<div class="&__body"></div>
						<div class="&__buttons &_hide_true"></div>
						<div class="&__results &_hide_true">
								<div class="&__spinner"></div>
						</div>
				</div>
		</div>`}},{key:"setPrompt",value:function(i){if(i){var s=this.jodit,d=s.o.aiAssistant[i],g=s.o.aiAssistant,b=g.aiCommonPrefixPrompt,w=g.aiCommonSuffixPrompt;this.promptInput.value=[b,Se(d)?d:"",w].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}},{key:"onAiAssistentResponse",value:function(i){this.setMod("loading",!1),N.detach(this.__results),this.__aiResult=i,this.__results.appendChild(this.jodit.c.fromHTML(i)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}},{key:"onAiAssistentError",value:function(i){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=i,N.detach(this.__results),this.__toggleSubmitButton(!1);var s=this.getFullElName("","hide","true");this.__results.classList.add(s),this.__toggleInsertButton(!0)}},{key:"onChangePromptValue",value:function(){this.__toggleSubmitButton(!this.promptInput.value)}},{key:"__toggleSubmitButton",value:function(i){this.__submitButton.state.disabled=i,this.__tryAgainButton.state.disabled=i}},{key:"__toggleInsertButton",value:function(i){this.__insertButton.state.disabled=i,this.__insertAfterButton.state.disabled=i}}],u&&EQ(h.prototype,u),c}(Vr);e0([_e(":ai-assistant-response")],Rd.prototype,"onAiAssistentResponse",null),e0([_e(":ai-assistant-error")],Rd.prototype,"onAiAssistentError",null),e0([_e("promptInput:change")],Rd.prototype,"onChangePromptValue",null),Rd=e0([Dt],Rd);const TQ={aiAssistant:"AI Assistant",aiCommands:"AI Commands","AI Assistant":"AI Assistant",Prompt:"Prompt","Ask AI to improve generated text":"Ask AI to improve generated text",Submit:"Submit"},RQ={aiAssistant:"Asistente de IA",aiCommands:"Comandos de IA","AI Assistant":"Asistente de IA","AI Commands":"Comandos de IA","Improve writing":"Mejorar escritura","Make shorter":"Hacer más corto","Make longer":"Hacer más largo","Simplify language":"Simplificar lenguaje",Summarize:"Resumir",Continue:"Continuar",Prompt:"Solicitud",Insert:"Insertar","Insert After":"Insertar después","Try Again":"Intentar de nuevo","Ask AI to improve generated text":"Pida a la IA que mejore el texto generado","Change tone to professional":"Cambiar tono a profesional","Change tone to friendly":"Cambiar tono a amigable","Change tone to formal":"Cambiar tono a formal","Change tone to casual":"Cambiar tono a casual","Change tone to direct":"Cambiar tono a directo","Change tone to confident":"Cambiar tono a confiado","Change tone to business":"Cambiar tono a empresarial","Change style to legal":"Cambiar estilo a legal","Change style to journalism":"Cambiar estilo a periodístico","Change style to poetic":"Cambiar estilo a poético","Translate to Spanish":"Traducir al español","Translate to French":"Traducir al francés","Translate to German":"Traducir al alemán","Translate to Italian":"Traducir al italiano","Translate to Portuguese":"Traducir al portugués","Translate to English":"Traducir al inglés","Translate to Chinese":"Traducir al chino","Translate to Japanese":"Traducid al japonés","Translate to Korean":"Traducir al coreano","Translate to Russian":"Traducir al ruso","Translate to Arabic":"Traducir al árabe",Submit:"Enviar"};function DN(l,c,h,u,i,s,d){try{var g=l[s](d),b=g.value}catch(w){return void h(w)}g.done?c(b):Promise.resolve(b).then(u,i)}function _A(l,c,h){return _A=jA()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Hg(g,s.prototype),g},_A.apply(null,arguments)}function PQ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Fg(l){return Fg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Fg(l)}function Hg(l,c){return Hg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Hg(l,c)}function BN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function kA(l){var c=typeof Map=="function"?new Map:void 0;return kA=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return _A(h,arguments,Fg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Hg(i,h)},kA(l)}function jA(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jA=function(){return!!l})()}var t0=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":BN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},Ug=function(l){function c(i){var s;return function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}(this,c),(s=function(d,g,b){return g=Fg(g),function(w,_){return!_||BN(_)!=="object"&&typeof _!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(w):_}(d,jA()?Reflect.construct(g,b||[],Fg(d).constructor):g.apply(d,b))}(this,c,[i])).buttons=[{name:"ai-commands",group:"insert"},{name:"ai-assistant",group:"insert"}],$u(i_),s}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Hg(i,s)}(c,l),h=c,u=[{key:"__dialog",get:function(){return this.jodit.dlg({buttons:["fullsize","dialog.close"],closeOnClickOverlay:!0,closeOnEsc:!0,resizable:!1,draggable:!0,minHeight:160})}},{key:"__container",get:function(){var i=this.jodit,s=this.__dialog;return new Rd(i,{onInsertAfter:function(d){i.s.focus(),i.s.setCursorAfter(i.s.current()),i.s.insertHTML(d),s.close()},onInsert:function(d){i.s.focus(),i.s.insertHTML(d),s.close()}})}},{key:"afterInit",value:function(){}},{key:"onGenerateAiAssistantForm",value:function(i){this.__dialog.open(this.__container,"AI Assistant"),this.__container.setPrompt(i)}},{key:"onInvokeAiAssistant",value:function(i){var s=this.jodit;s.s.focus();var d=s.s.html;s.async.promise(function(){var g,b=(g=function(w,_){var T,z;return function(L,D){var q,Y,X,J,$={label:0,sent:function(){if(1&X[0])throw X[1];return X[1]},trys:[],ops:[]};return J={next:ee(0),throw:ee(1),return:ee(2)},typeof Symbol=="function"&&(J[Symbol.iterator]=function(){return this}),J;function ee(ce){return function(ge){return function(ye){if(q)throw new TypeError("Generator is already executing.");for(;$;)try{if(q=1,Y&&(X=2&ye[0]?Y.return:ye[0]?Y.throw||((X=Y.return)&&X.call(Y),0):Y.next)&&!(X=X.call(Y,ye[1])).done)return X;switch(Y=0,X&&(ye=[2&ye[0],X.value]),ye[0]){case 0:case 1:X=ye;break;case 4:return $.label++,{value:ye[1],done:!1};case 5:$.label++,Y=ye[1],ye=[0];continue;case 7:ye=$.ops.pop(),$.trys.pop();continue;default:if(!((X=(X=$.trys).length>0&&X[X.length-1])||ye[0]!==6&&ye[0]!==2)){$=0;continue}if(ye[0]===3&&(!X||ye[1]>X[0]&&ye[1]<X[3])){$.label=ye[1];break}if(ye[0]===6&&$.label<X[1]){$.label=X[1],X=ye;break}if(X&&$.label<X[2]){$.label=X[2],$.ops.push(ye);break}X[2]&&$.ops.pop(),$.trys.pop();continue}ye=D.call(L,$)}catch(Me){ye=[6,Me],Y=0}finally{q=X=0}if(5&ye[0])throw ye[1];return{value:ye[0]?ye[1]:void 0,done:!0}}([ce,ge])}}}(this,function(L){switch(L.label){case 0:return L.trys.push([0,2,,3]),[4,s.o.aiAssistant.aiAssistantCallback(i,d)];case 1:return T=L.sent(),w(T),[3,3];case 2:return z=L.sent(),_(z),[3,3];case 3:return[2]}})},function(){var w=this,_=arguments;return new Promise(function(T,z){var L=g.apply(w,_);function D(Y){DN(L,T,z,D,q,"next",Y)}function q(Y){DN(L,T,z,D,q,"throw",Y)}D(void 0)})});return function(w,_){return b.apply(this,arguments)}}()).then(function(g){s.e.fire("ai-assistant-response",g)}).catch(function(g){Xs(g)||(s.message.error(g.message),s.e.fire("ai-assistant-error",g.message))})}},{key:"beforeDestruct",value:function(i){var s,d;(s=Zn(this,"__container"))===null||s===void 0||s.destruct(),(d=Zn(this,"__dialog"))===null||d===void 0||d.destruct()}}],u&&PQ(h.prototype,u),c}(kA(ut));function FN(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}function zQ(l){var c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!l.o.tab.tabInsideLiInsertNewList)return!1;var h=function(b,w){return function(_){if(Array.isArray(_))return _}(b)||function(_,T){var z=_==null?null:typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(z!=null){var L,D,q=[],Y=!0,X=!1;try{for(z=z.call(_);!(Y=(L=z.next()).done)&&(q.push(L.value),!T||q.length!==T);Y=!0);}catch(J){X=!0,D=J}finally{try{Y||z.return==null||z.return()}finally{if(X)throw D}}return q}}(b,w)||function(_,T){if(_){if(typeof _=="string")return FN(_,T);var z=Object.prototype.toString.call(_).slice(8,-1);return z==="Object"&&_.constructor&&(z=_.constructor.name),z==="Map"||z==="Set"?Array.from(z):z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?FN(_,T):void 0}}(b,w)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(function(b){var w=b.createInside.fake(),_=b.createInside.fake(),T=b.s.range.cloneRange();T.collapse(!0),T.insertNode(w);var z=b.s.range.cloneRange();return z.collapse(!1),z.insertNode(_),[w,_]}(l),2),u=h[0],i=h[1];try{var s=function(b,w,_){var T=N.closest(w,"li",b.editor);return!!T&&!(!_&&!N.isLeaf(T.previousElementSibling))&&!(_&&!N.closest(T,"li",b.editor))&&T}(l,u,c);if(!s||!function(b,w,_){var T=N.closest(_,"li",w.editor);return!(!T||T!==b&&!b.contains(T))}(s,l,u))return!1;var d=N.closest(s,["ol","ul"],l.editor);return!(!d||c&&!N.closest(d,"li",l.editor)||(c?function(b,w,_){var T=N.closest(w,"li",b.editor);dt(T,"tab parentLi is null");var z=Array.from(w.children).filter(function(Y){return N.isLeaf(Y)});N.after(T,_);var L=z.indexOf(_);if(L!==0&&z.length!==1||N.safeRemove(w),L!==z.length-1){var D=w.cloneNode();N.append(_,D);for(var q=L+1;q<z.length;q+=1)N.append(D,z[q])}}(l,d,s):function(b,w,_){var T=_.previousElementSibling;dt(T,"tab previousElementSibling is null");var z=T.lastElementChild,L=N.isTag(z,w.tagName)?z:b.createInside.element(w.tagName,Array.from(w.attributes).reduce(function(D,q){return D[q.name]=q.value,D},{}));L.appendChild(_),z!==L&&T.appendChild(L)}(l,d,s),0))}finally{var g=l.s.createRange();g.setStartAfter(u),g.setEndBefore(i),l.s.selectRange(g),N.safeRemove(u),N.safeRemove(i)}return!1}function SA(l,c,h){return SA=AA()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&qg(g,s.prototype),g},SA.apply(null,arguments)}function MQ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Vg(l){return Vg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Vg(l)}function qg(l,c){return qg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},qg(l,c)}function HN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function CA(l){var c=typeof Map=="function"?new Map:void 0;return CA=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return SA(h,arguments,Vg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),qg(i,h)},CA(l)}function AA(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AA=function(){return!!l})()}t0([vr],Ug.prototype,"__dialog",null),t0([vr],Ug.prototype,"__container",null),t0([_e(":generateAiAssistantForm.ai-assistant")],Ug.prototype,"onGenerateAiAssistantForm",null),t0([_e(":invokeAiAssistant")],Ug.prototype,"onInvokeAiAssistant",null),Ve.add("ai-assistant",Ug),de.prototype.tab={tabInsideLiInsertNewList:!0};var UN=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":HN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},OA=function(l){function c(){return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),i=this,d=arguments,s=Vg(s=c),function(g,b){return!b||HN(b)!=="object"&&typeof b!="function"?function(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(g):b}(i,AA()?Reflect.construct(s,d||[],Vg(i).constructor):s.apply(i,d));var i,s,d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&qg(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(i){}},{key:"__onTab",value:function(i){if(i.key===qs&&this.__onShift(i.shiftKey))return!1}},{key:"__onCommand",value:function(i){if((i==="indent"||i==="outdent")&&this.__onShift(i==="outdent"))return!1}},{key:"__onShift",value:function(i){var s=zQ(this.j,i);return s&&this.j.e.fire("afterTab",i),s}},{key:"beforeDestruct",value:function(i){}}])&&MQ(h.prototype,u),c}(CA(ut));function VN(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}UN([_e(":keydown.tab")],OA.prototype,"__onTab",null),UN([_e(":beforeCommand.tab")],OA.prototype,"__onCommand",null),Ve.add("tab",OA);var IQ=new Set([qs,Ys,ac,ti,Mi]);function EA(l,c,h){return EA=RA()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&Wg(g,s.prototype),g},EA.apply(null,arguments)}function LQ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function NQ(l,c,h){return c in l?Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[c]=h,l}function Yg(l){return Yg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Yg(l)}function Wg(l,c){return Wg=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},Wg(l,c)}function TA(l){var c=typeof Map=="function"?new Map:void 0;return TA=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return EA(h,arguments,Yg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Wg(i,h)},TA(l)}function RA(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RA=function(){return!!l})()}Ve.add("tableKeyboardNavigation",function(l){l.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",function(c){var h=c.key,u=function(D,q){if(IQ.has(q)){var Y=D.s.current();if(Y){var X=N.up(Y,N.isCell,D.editor);if(X){var J=D.s.range;if(q!==qs&&Y!==X){var $=q===ac||q===Mi,ee=Mr($?N.next:N.prev,Y,function(ce){return q===ti||q===Mi?N.isTag(ce,"br"):!!ce},X);if(!$&&(ee||q!==ti&&N.isText(Y)&&J.startOffset!==0)||$&&(ee||q!==Mi&&N.isText(Y)&&Y.nodeValue&&J.startOffset!==Y.nodeValue.length))return}return X}}}}(l,h);if(u){var i=l.getInstance(sp,l.o),s=N.closest(u,"table",l.editor),d=null,g=h===Ys||c.shiftKey,b=function(){return Mr(g?N.prev:N.next,u,N.isCell,s)};switch(h){case qs:case Ys:(d=b())||(i.appendRow(s,!!g&&s.querySelector("tr"),!g),d=b());break;case ti:case Mi:var w=i.formalMatrix(s),_=function(D,q){return function(Y){if(Array.isArray(Y))return Y}(D)||function(Y,X){var J=Y==null?null:typeof Symbol<"u"&&Y[Symbol.iterator]||Y["@@iterator"];if(J!=null){var $,ee,ce=[],ge=!0,ye=!1;try{for(J=J.call(Y);!(ge=($=J.next()).done)&&(ce.push($.value),!X||ce.length!==X);ge=!0);}catch(Me){ye=!0,ee=Me}finally{try{ge||J.return==null||J.return()}finally{if(ye)throw ee}}return ce}}(D,q)||function(Y,X){if(Y){if(typeof Y=="string")return VN(Y,X);var J=Object.prototype.toString.call(Y).slice(8,-1);return J==="Object"&&Y.constructor&&(J=Y.constructor.name),J==="Map"||J==="Set"?Array.from(J):J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J)?VN(Y,X):void 0}}(D,q)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(i.formalCoordinate(s,u),2),T=_[0],z=_[1];h===ti?w[T-1]!==void 0&&(d=w[T-1][z]):w[T+1]!==void 0&&(d=w[T+1][z])}if(d){if(l.e.fire("hidePopup hideResizer"),d.firstChild)h===qs?l.s.select(d,!0):l.s.setCursorIn(d,h===ac||h===Mi);else{var L=l.createInside.element("br");d.appendChild(L),l.s.setCursorBefore(L)}return l.synchronizeValues(),!1}}})}),de.prototype.video={parseUrlToVideoEmbed:zb,defaultWidth:400,defaultHeight:345},Ke.set("video",`<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg> `),de.prototype.controls.video={popup:function(l,c,h){var u=new Zs(l,[new ho(l,[new br(l,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new ho(l,[sr(l,"","Insert","primary").onAction(function(){return u.submit()})])]),i=new Zs(l,[new ho(l,[new pc(l,{name:"code",required:!0,label:"Embed code"})]),new ho(l,[sr(l,"","Insert","primary").onAction(function(){return i.submit()})])]),s=[],d=function(g){l.s.restore(),l.s.insertHTML(g),h()};return l.s.save(),s.push({icon:"link",name:"Link",content:u.container},{icon:"source",name:"Code",content:i.container}),u.onSubmit(function(g){var b,w,_,T;d(Mr((w=(b=l.o.video)===null||b===void 0?void 0:b.parseUrlToVideoEmbed)!==null&&w!==void 0?w:zb,g.url,{width:(_=l.o.video)===null||_===void 0?void 0:_.defaultWidth,height:(T=l.o.video)===null||T===void 0?void 0:T.defaultHeight}))}),i.onSubmit(function(g){d(g.code)}),gp(l,s)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"},Ve.add("video",function(l){l.registerButton({name:"video",group:"media"})}),de.prototype.showXPathInStatusbar=!0;var DQ=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Yg(d),function(b,w){return!w||((_=w)&&typeof Symbol<"u"&&_.constructor===Symbol?"symbol":typeof _)!="object"&&typeof w!="function"?function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(b):w;var _}(s,RA()?Reflect.construct(d,g||[],Yg(s).constructor):d.apply(s,g))}(this,c,arguments)).onContext=function(s,d){return i.menu||(i.menu=new rp(i.j)),i.menu.show(d.clientX,d.clientY,[{icon:"bin",title:s===i.j.editor?"Clear":"Remove",exec:function(){s!==i.j.editor?N.safeRemove(s):i.j.value="",i.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:function(){i.j.s.select(s)}}]),!1},i.onSelectPath=function(s,d){i.j.s.focus();var g=fe(d.target,"-path")||"/";if(g==="/")return i.j.execCommand("selectall"),!1;try{var b=i.j.ed.evaluate(g,i.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(b)return i.j.s.select(b),!1}catch{}return i.j.s.select(s),!1},i.tpl=function(s,d,g,b){var w=i.j.c.fromHTML('<span class="jodit-xpath__item"><a role="button" data-path="'.concat(d,'" title="').concat(b,`" tabindex="-1"'>`).concat(cr(g),"</a></span>")),_=w.firstChild;return i.j.e.on(_,"click",i.onSelectPath.bind(i,s)).on(_,"contextmenu",i.onContext.bind(i,s)),w},i.removeSelectAll=function(){i.selectAllButton&&(i.selectAllButton.destruct(),delete i.selectAllButton)},i.appendSelectAll=function(){i.removeSelectAll(),i.selectAllButton=SM(i.j,function(s){for(var d=1;d<arguments.length;d++){var g=arguments[d]!=null?arguments[d]:{},b=Object.keys(g);typeof Object.getOwnPropertySymbols=="function"&&(b=b.concat(Object.getOwnPropertySymbols(g).filter(function(w){return Object.getOwnPropertyDescriptor(g,w).enumerable}))),b.forEach(function(w){NQ(s,w,g[w])})}return s}({name:"selectall"},i.j.o.controls.selectall)),i.selectAllButton.state.size="tiny",i.container&&i.container.insertBefore(i.selectAllButton.container,i.container.firstChild)},i.calcPathImd=function(){if(!i.isDestructed){var s,d,g,b=i.j.s.current();i.container&&(i.container.innerHTML=dn),b&&N.up(b,function(w){!w||i.j.editor===w||N.isText(w)||N.isComment(w)||(s=w.nodeName.toLowerCase(),d=_k(w,i.j.editor).replace(/^\//,""),g=i.tpl(w,d,s,i.j.i18n("Select %s",s)),i.container&&i.container.insertBefore(g,i.container.firstChild))},i.j.editor),i.appendSelectAll()}},i.calcPath=i.j.async.debounce(i.calcPathImd,2*i.j.defaultTimeout),i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&Wg(i,s)}(c,l),h=c,(u=[{key:"afterInit",value:function(){var i=this;this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",function(){i.j.o.showXPathInStatusbar&&i.container&&(i.j.statusbar.append(i.container),i.j.getRealMode()===gr?i.calcPath():(i.container&&(i.container.innerHTML=dn),i.appendSelectAll()))}),this.calcPath())}},{key:"beforeDestruct",value:function(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),N.safeRemove(this.container),delete this.menu,delete this.container}}])&&LQ(h.prototype,u),c}(TA(ut));Ve.add("xpath",DQ);var qN=Ar?Ar.SpeechRecognition||Ar.webkitSpeechRecognition:void 0;function BQ(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function PA(l,c,h){return PA=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(u,i,s){var d=function(b,w){for(;!Object.prototype.hasOwnProperty.call(b,w)&&(b=Pd(b))!==null;);return b}(u,i);if(d){var g=Object.getOwnPropertyDescriptor(d,i);return g.get?g.get.call(s||u):g.value}},PA(l,c,h||l)}function Pd(l){return Pd=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Pd(l)}function zA(l,c){return zA=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},zA(l,c)}function YN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function WN(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WN=function(){return!!l})()}var Xg,r0=Xg=function(l){function c(i,s){var d;return function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),(d=function(g,b,w){return b=Pd(b),function(_,T){return!T||YN(T)!=="object"&&typeof T!="function"?function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(_):T}(g,WN()?Reflect.construct(b,[],Pd(g).constructor):b.apply(g,w))}(this,c)).async=i,d._continuous=!1,d._interimResults=!1,d.sound=!0,d._isEnabled=!1,d._restartTimeout=0,d._onSpeechStart=function(g){d._isEnabled&&(d.async.clearTimeout(d._restartTimeout),d._restartTimeout=d.async.setTimeout(function(){d.restart(),d.emit("pulse",!1),d._makeSound(940)},5e3),d.emit("pulse",!0))},d.__interimResults="",d._api=s,Xg._instances.add(d),d}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&zA(i,s)}(c,l),h=c,u=[{key:"lang",get:function(){return this._lang},set:function(i){this._lang=i,this._api.lang=i}},{key:"continuous",get:function(){return this._continuous},set:function(i){this._continuous=i,this._api.continuous=i}},{key:"interimResults",get:function(){return this._interimResults},set:function(i){this._interimResults=i,this._api.interimResults=i}},{key:"destruct",value:function(){this.stop(),Xg._instances.delete(this),PA(Pd(c.prototype),"destruct",this).call(this)}},{key:"isEnabled",get:function(){return this._isEnabled}},{key:"start",value:function(){var i=this;if(!this._isEnabled){this._isEnabled=!0,Xg._instances.forEach(function(s){s!==i&&s.stop()});try{this._api.start()}catch(s){return this._onError(s),void this.stop()}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}},{key:"stop",value:function(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}},{key:"toggle",value:function(){this._isEnabled?this.stop():this.start()}},{key:"restart",value:function(){this.stop(),this.start()}},{key:"__on",value:function(i,s){return this._api.addEventListener(i,s),this}},{key:"__off",value:function(i,s){return this._api.removeEventListener(i,s),this}},{key:"_onResults",value:function(i){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(440),this.restart()}},{key:"_onProgress",value:function(i){if(this._isEnabled&&(this.__interimResults="",i.results)){for(var s=0;s<i.results.length;s++){var d=i.results.item(s);if(d.length){var g=d.item(0).transcript;this.__interimResults+=g}}this.__interimResults&&this.emit("progress",this.__interimResults)}}},{key:"_onError",value:function(i){i.error==="voice-unavailable"&&this.emit("error","Voice unavailable"),i.error==="not-allowed"&&this.emit("error","Not allowed"),i.error!=="language-unavailable"&&i.error!=="language-not-supported"||this.emit("error","Language unavailable"),this._makeSound(940),this.emit("pulse",!1),this.stop()}},{key:"_makeSound",value:function(i){this.sound&&function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=s.sec,g=d===void 0?.1:d,b=s.frequency,w=b===void 0?440:b,_=s.gain,T=_===void 0?.1:_,z=s.type,L=z===void 0?"sine":z;if(Ar&&(Ar.AudioContext!==void 0||Ar.webkitAudioContext!==void 0)){var D=new(Ar.AudioContext||Ar.webkitAudioContext),q=D.createGain(),Y=D.createOscillator();Y.type=L,Y.frequency.value=w,Y.connect(q),q.connect(D.destination),Y.start(),Y.stop(D.currentTime+g),q.gain.value=T}}({frequency:i})}}],u&&BQ(h.prototype,u),c}(W_);function XN(l,c){(c==null||c>l.length)&&(c=l.length);for(var h=0,u=new Array(c);h<c;h++)u[h]=l[h];return u}r0._instances=new Set,r0=Xg=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":YN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d}([Ce],r0),de.prototype.speechRecognize={api:qN!==void 0?qN:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},Ke.set("speech-recognize",'<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg> '),de.prototype.controls.speechRecognize={isVisible:function(l){return!!l.o.speechRecognize.api},isActive:function(l,c){var h=St(l,"speech");return!!(h!=null&&h.isEnabled)},isDisabled:function(l){return!l.o.speechRecognize.api},exec:function(l,c,h){var u,i=h.button,s=h.control,d=l.o.speechRecognize,g=d.api,b=d.lang,w=d.continuous,_=d.interimResults,T=d.sound;if(g){var z=St(l,"speech");if(!z){var L=new g;(z=new r0(l.async,L)).lang=Se(b)?b:(u=fe(l.od.documentElement,"lang"))!==null&&u!==void 0?u:void 0,z.continuous=w,z.interimResults=_,z.sound=T,St(l,"speech",z),z.on("pulse",function(q){i.setMod("pulse",q)}),z.on("result",function(q){return l.e.fire("speechRecognizeResult",q)}),z.on("progress",function(q){return l.e.fire("speechRecognizeProgressResult",q)}),z.on("error",function(q){return l.message.error(q)}),i.hookStatus("beforeDestruct",function(){St(l,"speech",null),z.destruct()})}if(s.args){var D=s.args[0];if(Wa(z[D]))return z[D]=!z[D],void(z.isEnabled&&z.restart())}z.toggle(),z.isEnabled&&i.setMod("pulse",!0),i.state.activated=z.isEnabled}else l.alert("Speech recognize API unsupported in your browser")},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate:function(l,c,h){var u,i=St(l,"speech"),s=(u=i==null?void 0:i[c])!==null&&u!==void 0?u:l.o.speechRecognize[c];return"<span class='jodit-speech-recognize__list-item'><input ".concat(s?"checked":""," class='jodit-checkbox' type='checkbox'>&nbsp;").concat(h,"</span>")},mods:{stroke:!1}};const FQ={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"},HQ={newline:"řádek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpoznání Řeči",Sound:"Zvuk","Interim Results":"Průběžné Výsledky"},UQ={newline:"Zeilenumbruch",delete:"löschen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"},VQ={newline:"nueva línea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"},qQ={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"},YQ={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"Ääni","Interim Results":"Välitulokset"},WQ={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"Résultats Intermédiaires"},XQ={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"},GQ={newline:"újsor",delete:"törlés",space:"tér","Speech Recognize":"A Beszéd Felismeri",Sound:"Hang","Interim Results":"Időközi Eredmények"},$Q={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"},ZQ={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"},KQ={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"},JQ={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"},QQ={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"},eee={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"},tee={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"},ree={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"},nee={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provisórios"},oee={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"},iee={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonuçlar"},aee={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"},see={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"},lee={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"};function MA(l,c,h){return MA=LA()?Reflect.construct:function(u,i,s){var d=[null];d.push.apply(d,i);var g=new(Function.bind.apply(u,d));return s&&$g(g,s.prototype),g},MA.apply(null,arguments)}function cee(l,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function Gg(l){return Gg=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},Gg(l)}function $g(l,c){return $g=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},$g(l,c)}function GN(l){return l&&typeof Symbol<"u"&&l.constructor===Symbol?"symbol":typeof l}function IA(l){var c=typeof Map=="function"?new Map:void 0;return IA=function(h){if(h===null||(u=h,Function.toString.call(u).indexOf("[native code]")===-1))return h;var u;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(h))return c.get(h);c.set(h,i)}function i(){return MA(h,arguments,Gg(this).constructor)}return i.prototype=Object.create(h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),$g(i,h)},IA(l)}function LA(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LA=function(){return!!l})()}var $N=function(l,c,h,u){var i,s=arguments.length,d=s<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,h):u;if((typeof Reflect>"u"?"undefined":GN(Reflect))==="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,c,h,u);else for(var g=l.length-1;g>=0;g--)(i=l[g])&&(d=(s<3?i(d):s>3?i(c,h,d):i(c,h))||d);return s>3&&d&&Object.defineProperty(c,h,d),d},NA=function(l){function c(){var i;return function(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(i=function(s,d,g){return d=Gg(d),function(b,w){return!w||GN(w)!=="object"&&typeof w!="function"?function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(b):w}(s,LA()?Reflect.construct(d,g||[],Gg(s).constructor):d.apply(s,g))}(this,c,arguments)).buttons=[{group:"state",name:"speechRecognize"}],i._commandToWord={},i}var h,u;return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&$g(i,s)}(c,l),h=c,u=[{key:"afterInit",value:function(i){var s=this,d=i.o.speechRecognize.commands;d&&($u(E_),Ga(d,!1).forEach(function(g){g.split("|").forEach(function(b){b=b.trim().toLowerCase(),s._commandToWord[b]=d[g];var w=i.i18n(b);w!==b&&w.split("|").forEach(function(_){s._commandToWord[_.trim().toLowerCase()]=d[g].trim()})})}))}},{key:"beforeDestruct",value:function(i){N.safeRemove(this.messagePopup)}},{key:"onSpeechRecognizeProgressResult",value:function(i){var s=this;this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(function(){N.safeRemove(s.messagePopup)},1e3),this.messagePopup.innerText=i+"|"}},{key:"onSpeechRecognizeResult",value:function(i){this.j.async.clearTimeout(this.__hidePopupTimeout),N.safeRemove(this.messagePopup);var s=this.j,d=s.s;if(!this._checkCommand(i)){var g=d.range,b=d.current();if(d.isCollapsed()&&N.isText(b)&&N.isOrContains(s.editor,b)&&b.nodeValue){var w=b.nodeValue;b.nodeValue=w+(/[\u00A0 ]\uFEFF*$/.test(w)?"":" ")+i,g.setStartAfter(b),d.selectRange(g),s.synchronizeValues()}else d.insertHTML(i)}}},{key:"_checkCommand",value:function(i){return i=i.toLowerCase().replace(/\./g,""),!!this._commandToWord[i]&&(function(s,d){var g=function(_,T){return function(z){if(Array.isArray(z))return z}(_)||function(z,L){var D=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(D!=null){var q,Y,X=[],J=!0,$=!1;try{for(D=D.call(z);!(J=(q=D.next()).done)&&(X.push(q.value),!L||X.length!==L);J=!0);}catch(ee){$=!0,Y=ee}finally{try{J||D.return==null||D.return()}finally{if($)throw Y}}return X}}(_,T)||function(z,L){if(z){if(typeof z=="string")return XN(z,L);var D=Object.prototype.toString.call(z).slice(8,-1);return D==="Object"&&z.constructor&&(D=z.constructor.name),D==="Map"||D==="Set"?Array.from(D):D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D)?XN(z,L):void 0}}(_,T)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(d.split("::"),2),b=g[0],w=g[1];s.execCommand(b,null,w)}(this.j,this._commandToWord[i]),!0)}}],u&&cee(h.prototype,u),c}(IA(ut));$N([_e(":speechRecognizeProgressResult")],NA.prototype,"onSpeechRecognizeProgressResult",null),$N([_e(":speechRecognizeResult")],NA.prototype,"onSpeechRecognizeResult",null),ur.plugins.add("speech-recognize",NA);var ZN=ur,KN=(0,ei.forwardRef)(function(l,c){var h=l.JoditConstructor,u=h===void 0?ZN:h,i=l.className,s=l.config,d=l.id,g=l.name,b=l.onBlur,w=l.onChange,_=l.tabIndex,T=l.value,z=l.editorRef,L=(0,ei.useRef)(null),D=(0,ei.useRef)(null);(0,ei.useEffect)(function(){var Y=L.current,X=u.make(Y,s);return D.current=X,typeof z=="function"&&z(X),function(){X.isReady?X.destruct():X.waitForReady().then(function(J){return J.destruct()})}},[u,s,z]),(0,ei.useEffect)(function(){c&&(typeof c=="function"?c(D.current):c.current=D.current)},[L,c,D]);var q=function(Y){var X=(0,ei.useRef)("");return(0,ei.useEffect)(function(){X.current=Y},[Y]),X.current}(i??"");return(0,ei.useEffect)(function(){var Y,X,J=(X=D.current)===null||X===void 0||(Y=X.container)===null||Y===void 0?void 0:Y.classList;q!==i&&typeof q=="string"&&q.split(/\s+/).filter(Boolean).forEach(function($){return J==null?void 0:J.remove($)}),i&&typeof i=="string"&&i.split(/\s+/).filter(Boolean).forEach(function($){return J==null?void 0:J.add($)})},[i,q]),(0,ei.useEffect)(function(){var Y;!((Y=D.current)===null||Y===void 0)&&Y.workplace&&(D.current.workplace.tabIndex=_||-1)},[_]),(0,ei.useEffect)(function(){var Y=D.current;if(Y!=null&&Y.events&&(b||w)){var X=function($){var ee,ce;return b&&b((ce=D==null||(ee=D.current)===null||ee===void 0?void 0:ee.value)!==null&&ce!==void 0?ce:"",$)},J=function($){return w&&w($)};return Y.events.on("blur",X).on("change",J),function(){var $;($=Y.events)===null||$===void 0||$.off("blur",X).off("change",J)}}},[b,w]),(0,ei.useEffect)(function(){var Y=D.current,X=function(){Y&&T!==void 0&&Y.value!==T&&(Y.value=T)};Y&&(Y.isReady?X():Y.waitForReady().then(X))},[T]),w5().createElement("div",{className:"jodit-react-container"},w5().createElement("textarea",{defaultValue:T,name:g,id:d,ref:L}))});KN.displayName="JoditEditor";const uee=KN;return f})())})(SX);var Gke=SX.exports;const _B=zv(Gke),$ke=()=>{const[t,e]=F.useState(""),[r,n]=F.useState(""),[o,a]=F.useState(!1),{toast:f}=Ro(),{checkDemo:p}=lo(),m=async()=>{try{if(p())return;a(!0);const v=await lf.updateConfig({privacy_policy:r,terms_and_conditions:t});v.status?f({title:"Success",description:"CMS content updated successfully!"}):f({title:"Error",description:v.message,variant:"error"})}catch(v){console.error(v),f({title:"Error",description:"Something went wrong, try again.",variant:"error"})}finally{a(!1)}};return F.useEffect(()=>{(async()=>{try{const y=await lf.getConfig();y.status&&(e(y.data.terms_and_conditions||""),n(y.data.privacy_policy||""))}catch(y){console.error(y),f({title:"Error",description:"Something went wrong, try again.",variant:"error"})}})()},[]),A.jsxs("div",{className:"max-w-9xl mx-auto p-6",children:[A.jsx(Po,{}),A.jsx("h1",{className:"my-5 font-bold text-text",children:"Terms and Conditions"}),A.jsx("div",{className:"max-h-[500px] overflow-y-scroll  rounded-lg",children:A.jsx(_B,{value:t,onBlur:v=>e(v),config:{readonly:!1,height:400,iframe:!0,iframeCSS:`
      body {
        @apply bg-secondary text-table-header-text;
        font-size: 14px;
        padding: 12px;
        border-radius: 8px;
      }
    `}})}),A.jsx(Pt,{variant:"default",onClick:m,disabled:o,className:"w-40 bg-primary mt-5 text-button-text  font-semibold py-2 rounded-md transition-colors duration-200",children:o?"Saving...":"Submit"}),A.jsx("h1",{className:"my-5 font-bold text-text",children:"Privacy Policy"}),A.jsx("div",{className:"max-h-[500px] overflow-y-scroll rounded-lg",children:A.jsx(_B,{value:r,onBlur:v=>n(v),config:{readonly:!1,height:400,iframe:!0,iframeCSS:`
      body {
        @apply bg-secondary text-table-header-text;
        font-size: 14px;
        padding: 12px;
        border-radius: 8px;
      }
    `}})}),A.jsx(Pt,{variant:"default",onClick:m,disabled:o,className:"w-40 bg-primary mt-5 text-button-text  font-semibold py-2 rounded-md transition-colors duration-200",children:o?"Saving...":"Submit"})]})},Zke=[];function kB({type:t}){const[e,r]=F.useState(Zke),[n,o]=F.useState(""),a=[{header:"ID",cell:p=>A.jsxs("span",{className:"text-primary-600",children:["#",p.id]}),className:"w-24"},{header:"Caller",cell:p=>A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("img",{src:p.caller.profile_pic,className:"h-8 w-8 rounded-full",alt:"avatar"}),A.jsxs("div",{children:[A.jsxs("div",{className:"text-table-text text-sm font-medium",children:[p.caller.first_name," ",p.caller.last_name]}),p.caller.username&&A.jsxs("div",{className:"text-xs text-text-muted",children:["@",p.caller.username]})]})]})},{header:"Chat",cell:p=>{var m,v,y;return A.jsxs("div",{className:"flex items-center gap-3",children:[p.chat&&A.jsx("img",{src:(m=p.chat)==null?void 0:m.group_icon,className:"h-8 w-8 rounded-full",alt:"avatar"}),A.jsxs("div",{children:[A.jsx("div",{className:"text-table-text text-sm font-medium",children:(v=p.chat)==null?void 0:v.group_name}),A.jsxs("div",{className:"text-xs text-text-muted",children:[(y=p.chat)==null?void 0:y.chat_type," Chat"]})]})]})}},{header:"Call Status",cell:p=>A.jsx("span",{className:p.call_status==="ended"?"text-green-500 border font-medium border-green-300 px-2 py-1 rounded-full text-xs":p.call_status==="ringing"?"text-yellow-700 border font-medium font-bold border-yellow-500 px-2 py-1 rounded-full text-xs":p.call_status==="missed"?"text-red-500 border font-medium font-bold border-red-500 px-2 py-1 rounded-full text-xs":"text-green-500 border font-medium border-green-300 px-2 py-1 rounded-full text-xs",children:p.call_status})},{header:"Call Duration(sec)",accessor:"call_duration"},{header:"Created At",cell:p=>new Date(p.createdAt).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"}),sortable:!0}],f=async()=>{var p,m;try{const v=await $9.getCallsList({page:1,pageSize:50,call_type:t}),y=((m=(p=v.data)==null?void 0:p.pagination)==null?void 0:m.total_pages)??1,x=Array.from({length:Math.max(0,y-1)}).map((C,R)=>$9.getCallsList({page:R+2,pageSize:50,call_type:t})),k=await Promise.all(x),O=[v,...k].flatMap(C=>{var R;return((R=C==null?void 0:C.data)==null?void 0:R.call)||[]}).map((C,R)=>({id:Number(C.call_id??R+1),call_status:C.call_status,call_duration:C.call_duration,start_time:C.start_time,end_time:C.end_time,users_count:C.users_count,chat:C.Chat,caller:C.caller,createdAt:C.createdAt,call_type:C.call_type}));r(O)}catch(v){console.error("Failed to load users list:",v),r([])}};return F.useEffect(()=>{f()},[t]),A.jsxs("div",{className:"space-y-4",children:[A.jsx("h1",{className:"text-xl font-semibold text-table-header-text",children:"User List"}),A.jsxs("div",{className:"flex items-center justify-between ",children:[A.jsx("div",{className:"mt-2",children:A.jsx(Po,{})}),A.jsxs("div",{className:"flex items-center gap-2 relative w-full max-w-md",children:[A.jsx(sh,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 font-extrabold text-text-muted"}),A.jsx(Dr,{value:n,onChange:p=>o(p.target.value),onKeyDown:p=>{p.key==="Enter"&&f()},placeholder:"Search by name or number",className:"pl-9 bg-secondary/80 text-text-muted w-full min-w-[200px]"})]})]}),A.jsx(aa,{data:e,columns:a,defaultPageSize:10})]})}function Kke(){const{id:t}=Oq(),e=Va(),[r,n]=F.useState([]),[o,a]=F.useState(!1),[f,p]=F.useState(null),[m,v]=F.useState(!1),{checkDemo:y}=lo(),x=async(R,E)=>{const P=await Zi.translateAWord(Number(t),R,E);return P.status&&P.data&&P.data[R]||""},k=async(R,E)=>{try{await Zi.updateAWord(Number(t),R,E),n(P=>P.map(M=>M.key_id===R?{...M,Translation:E,edited:!1}:M))}catch(P){console.error("Failed to update translation",P)}},S=[{header:"ID",cell:R=>A.jsxs("span",{className:"text-primary-600",children:["#",R.key_id]}),className:"w-20"},{header:"Word",cell:R=>A.jsx("div",{children:A.jsx("div",{className:"text-table-text text-sm font-medium",children:R.key})})},{header:"Translation",accessor:"Translation",cell:R=>A.jsx("input",{type:"text",value:R.Translation||"",onChange:E=>n(P=>P.map(M=>M.key_id===R.key_id?{...M,Translation:E.target.value,dirty:!0}:M)),className:"border  border-table-divider focus:ring-0 focus:border-table-divider rounded px-2 py-1 text-sm w-full"})},{header:"Actions",cell:R=>A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsxs(Pt,{variant:"default",size:"sm",onClick:()=>{y()||x(R.key_id,R.key).then(E=>{n(P=>P.map(M=>M.key_id===R.key_id?{...M,Translation:E,dirty:!1}:M))})},className:"flex items-center gap-1 px-2 py-1 h-8 bg-[#4260ee] text-white",title:"Translate Word",children:[A.jsx(PT,{className:"h-4 w-4 text-white"}),A.jsx("span",{className:"text-sm",children:"Translate"})]}),A.jsxs(Pt,{variant:"outline",size:"sm",disabled:!R.dirty,onClick:async()=>{y()||(k(R.key_id,R.Translation||""),R.dirty=!1)},className:"flex items-center gap-1 px-2 py-1 h-8 bg-[#e6505a] text-white",title:"Translate Word",children:[A.jsx(vie,{className:"h-4 w-4 text-white"}),A.jsx("span",{className:"text-sm",children:"Update"})]})]})}],O=async()=>{try{if(y())return;v(!0);const R=await Zi.translateAllWord(Number(t));if(R.status&&R.data){const E=r.map(P=>({...P,Translation:R.data[P.key_id]||P.Translation,dirty:!1}));n(E)}}catch(R){console.error("Translation failed:",R)}finally{v(!1)}},C=async()=>{var R;a(!0),p(null);try{const E=await Zi.getWordListWithTranslation(t);console.log("API Response:",E);let P=[];if(E.status)if((R=E.data)!=null&&R.Records?P=E.data.Records:E.data&&Array.isArray(E.data)?P=E.data:Array.isArray(E)&&(P=E),P&&P.length>0){const M=P.map(I=>({key_id:I.key_id,key:I.key,Translation:I.Translation}));n(M)}else n([]);else console.log("Response structure:",E),p(E.message||"Failed to load languages")}catch(E){console.error("Failed to load languages:",E),p("Failed to load languages"),n([])}finally{a(!1)}};return F.useEffect(()=>{C()},[]),A.jsxs("div",{className:"space-y-4",children:[A.jsxs("div",{className:"mt-2  flex justify-between",children:[A.jsx(Po,{}),A.jsxs("div",{className:"flex gap-4",children:[A.jsxs(Pt,{variant:"default",size:"sm",onClick:O,className:"flex items-center gap-1 px-3 py-2 bg-green-600 text-white",children:[A.jsx(PT,{className:"h-4 w-4 text-white"}),A.jsx("span",{className:"text-sm",children:"Translate All"})]}),A.jsx(Pt,{variant:"default",size:"icon",className:"h-10 w-10 bg-primary-dark/20 hover:bg-primary-dark/20 rounded-full text-primary  ",onClick:()=>e("/language/language-list"),children:A.jsx(Xoe,{className:"h-4 w-4"})})]})]}),f&&A.jsx("div",{className:"bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-lg",children:f}),A.jsx(aa,{data:r,columns:S,defaultPageSize:10}),A.jsx(La,{isOpen:m,onClose:()=>{},title:"Translating Words",size:"md",showCloseButton:!1,children:A.jsxs("div",{className:"flex flex-col items-center gap-4 py-6",children:[A.jsxs("p",{className:"text-center text-xl",children:[A.jsx("strong",{children:"Translating"}),"."]}),A.jsx(cw,{}),A.jsxs("p",{className:"text-center text-lg",children:["Translating all words might take ",A.jsx("strong",{children:"10–15 minutes"}),". Please keep this tab open until it finishes."]})]})})]})}const Jke=({error:t,resetErrorBoundary:e})=>A.jsx(Lq,{error:t,onRetry:e}),Qke=()=>A.jsx("div",{className:"flex items-center justify-center min-h-screen",children:A.jsx(F3,{size:"lg",label:"Loading page..."})}),eje=F.lazy(()=>p1(()=>import("./LoginPage-B5FgWtDA.js"),__vite__mapDeps([]))),tje=F.lazy(()=>p1(()=>import("./Dashboard-CUxkMjt1.js"),__vite__mapDeps([]))),rje=F.lazy(()=>p1(()=>import("./NotFound-VDOn3bnX.js"),__vite__mapDeps([]))),nje=({children:t})=>{const{isAuthenticated:e}=bh(),r=$o();return e?A.jsx(qT,{to:"/dashboard",state:{from:r},replace:!0}):A.jsx(A.Fragment,{children:t})};function oje(){Ege();const{isOnline:t}=xhe();return A.jsxs("div",{className:"min-h-screen ",children:[!t&&A.jsx("div",{className:"bg-yellow-100 text-yellow-800 text-center p-2 text-sm",children:"You are currently offline. Some features may be limited."}),A.jsx(Q7,{fallback:Jke,children:A.jsx(qU,{children:A.jsx(Gye,{children:A.jsx(F.Suspense,{fallback:A.jsx(Qke,{}),children:A.jsxs(Nfe,{children:[A.jsx(rr,{path:"/login",element:A.jsx(nje,{children:A.jsx(eje,{})})}),A.jsxs(rr,{element:A.jsx(zge,{children:A.jsx(lW,{})}),children:[A.jsx(rr,{path:"/",element:A.jsx(Qye,{})}),A.jsx(rr,{path:"/dashboard",element:A.jsx(tje,{})}),A.jsxs(rr,{path:"/users",children:[A.jsx(rr,{path:yt.USERS.LIST,element:A.jsx(Ske,{})}),A.jsx(rr,{path:yt.USERS.COUNTRY_WISE,element:A.jsx(Eke,{})}),A.jsx(rr,{path:yt.USERS.BLOCKED_USERS,element:A.jsx(Tke,{})})]}),A.jsx(rr,{path:"/groups",children:A.jsx(rr,{path:yt.GROUP.LIST,element:A.jsx(qke,{})})}),A.jsx(rr,{path:"/notifications",children:A.jsx(rr,{path:yt.NOTIFICATIONS.LIST,element:A.jsx(Yke,{})})}),A.jsx(rr,{path:yt.AVATARS.LIST,element:A.jsx(Rke,{})}),A.jsxs(rr,{path:"/reports-list",children:[A.jsx(rr,{path:yt.REPORTS.USERS,element:A.jsx(Pke,{})}),A.jsx(rr,{path:yt.REPORTS.GROUPS,element:A.jsx(Xke,{})}),A.jsx(rr,{path:yt.REPORTS.REPORTTYPES,element:A.jsx(Wke,{})})]}),A.jsx(rr,{path:yt.SETTINGS,element:A.jsx(Bke,{})}),A.jsx(rr,{path:yt.PROFILE,element:A.jsx(_ke,{})}),A.jsxs(rr,{path:"/language",children:[A.jsx(rr,{path:yt.LANGUAGE.LIST,element:A.jsx(Hke,{})}),A.jsx(rr,{path:yt.LANGUAGE.TRANSLATED_WORD_LIST,element:A.jsx(Kke,{})})]}),A.jsx(rr,{path:yt.CMS,element:A.jsx($ke,{})}),A.jsxs(rr,{path:"/calls",children:[A.jsx(rr,{path:yt.CALLS.AUDIO_CALL_LIST,element:A.jsx(kB,{type:"audio"})}),A.jsx(rr,{path:yt.CALLS.VIDEO_CALL_LIST,element:A.jsx(kB,{type:"video"})})]})]}),A.jsx(rr,{path:"*",element:A.jsx(rje,{})})]})})})})})]})}const ije=(t,e)=>{const r=document.documentElement,n=(o,a)=>{let[f,p,m]=o.replace("#","").match(/.{1,2}/g).map(v=>parseInt(v,16));return f=Math.min(255,Math.max(0,f+a)),p=Math.min(255,Math.max(0,p+a)),m=Math.min(255,Math.max(0,m+a)),`#${((1<<24)+(f<<16)+(p<<8)+m).toString(16).slice(1).toUpperCase()}`};r.style.setProperty("--color-primary",t),r.style.setProperty("--color-primary-light",n(t,30)),r.style.setProperty("--color-primary-dark",n(t,-30)),r.style.setProperty("--color-button-text",e)},aje=F.createContext(void 0),sje=({children:t})=>{const{config:e,isLoading:r,error:n,updateConfig:o}=ub(),a=(f,p)=>e?e.data&&f in e.data?e.data[f]:f in e?e[f]:p:p;return F.useEffect(()=>{if(!e)return;console.log("config",e);const f=a("app_primary_color")||"#fdc604",p=a("app_secondary_color")||"#ffffff";ije(f,p)},[e]),A.jsx(aje.Provider,{value:{config:e,isLoading:r,error:n,updateConfig:o,getConfigValue:a},children:t})},lje=new One({defaultOptions:{queries:{retry:2,refetchOnWindowFocus:!1,staleTime:5*60*1e3}}}),cje=({error:t,resetErrorBoundary:e})=>A.jsx(Lq,{error:t,onRetry:e}),NR=document.getElementById("root");let _x=NR._reactRoot??null;_x||(_x=une.createRoot(NR),NR._reactRoot=_x);_x.render(A.jsx(ahe,{basename:"/admin",children:A.jsx(qU,{children:A.jsx(Q7,{fallback:cje,onError:t=>{console.error("Error caught by boundary:",t)},children:A.jsx(Pne,{client:lje,children:A.jsx(Pge,{children:A.jsx(sje,{children:A.jsx(Ige,{children:A.jsx(oje,{})})})})})})})}));export{gse as A,mse as B,pse as C,IU as D,Lje as E,zv as F,P3 as G,Fme as H,U7 as I,Pt as J,nie as K,Ije as L,Ge as R,UD as T,QO as U,Va as a,au as b,Et as c,qne as d,Ne as e,lu as f,OW as g,$9 as h,Mv as i,A as j,uce as k,ta as l,Ls as m,pje as n,fce as o,Do as p,nw as q,F as r,Yl as s,Bm as t,ub as u,kx as v,hce as w,gce as x,mce as y,nV as z};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
