diff --git a/dist/assets/index.83e97322.js b/dist/assets/index.2ea22416.js similarity index 78% rename from dist/assets/index.83e97322.js rename to dist/assets/index.2ea22416.js index 7ac59eb..dc5c87f 100644 --- a/dist/assets/index.83e97322.js +++ b/dist/assets/index.2ea22416.js @@ -6,7 +6,7 @@ var xg=Object.defineProperty;var Eg=(e,t,n)=>t in e?xg(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var bu=Symbol.for("react.element"),Dg=Symbol.for("react.portal"),kg=Symbol.for("react.fragment"),Sg=Symbol.for("react.strict_mode"),Pg=Symbol.for("react.profiler"),Cg=Symbol.for("react.provider"),Og=Symbol.for("react.context"),Fg=Symbol.for("react.forward_ref"),Ng=Symbol.for("react.suspense"),Ag=Symbol.for("react.memo"),Rg=Symbol.for("react.lazy"),j0=Symbol.iterator;function Tg(e){return e===null||typeof e!="object"?null:(e=j0&&e[j0]||e["@@iterator"],typeof e=="function"?e:null)}var eh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},th=Object.assign,nh={};function ei(e,t,n){this.props=e,this.context=t,this.refs=nh,this.updater=n||eh}ei.prototype.isReactComponent={};ei.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ei.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rh(){}rh.prototype=ei.prototype;function yc(e,t,n){this.props=e,this.context=t,this.refs=nh,this.updater=n||eh}var vc=yc.prototype=new rh;vc.constructor=yc;th(vc,ei.prototype);vc.isPureReactComponent=!0;var U0=Array.isArray,ih=Object.prototype.hasOwnProperty,bc={current:null},uh={key:!0,ref:!0,__self:!0,__source:!0};function sh(e,t,n){var r,i={},u=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(u=""+t.key),t)ih.call(t,r)&&!uh.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1t in e?xg(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(A,R){var N=A.length;A.push(R);e:for(;0>>1,U=A[z];if(0>>1;zi(X,N))Qi(G,X)?(A[z]=G,A[Q]=N,z=Q):(A[z]=X,A[q]=N,z=q);else if(Qi(G,N))A[z]=G,A[Q]=N,z=Q;else break e}}return R}function i(A,R){var N=A.sortIndex-R.sortIndex;return N!==0?N:A.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var o=[],l=[],d=1,p=null,g=3,v=!1,b=!1,k=!1,O=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(A){for(var R=n(l);R!==null;){if(R.callback===null)r(l);else if(R.startTime<=A)r(l),R.sortIndex=R.expirationTime,t(o,R);else break;R=n(l)}}function T(A){if(k=!1,w(A),!b)if(n(o)!==null)b=!0,I(D);else{var R=n(l);R!==null&&L(T,R.startTime-A)}}function D(A,R){b=!1,k&&(k=!1,x(f),f=-1),v=!0;var N=g;try{for(w(R),p=n(o);p!==null&&(!(p.expirationTime>R)||A&&!E());){var z=p.callback;if(typeof z=="function"){p.callback=null,g=p.priorityLevel;var U=z(p.expirationTime<=R);R=e.unstable_now(),typeof U=="function"?p.callback=U:p===n(o)&&r(o),w(R)}else r(o);p=n(o)}if(p!==null)var W=!0;else{var q=n(l);q!==null&&L(T,q.startTime-R),W=!1}return W}finally{p=null,g=N,v=!1}}var P=!1,y=null,f=-1,m=5,h=-1;function E(){return!(e.unstable_now()-hA||125z?(A.sortIndex=N,t(l,A),n(o)===null&&A===n(l)&&(k?(x(f),f=-1):k=!0,L(T,N-z))):(A.sortIndex=U,t(o,A),b||v||(b=!0,I(D))),A},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(A){var R=g;return function(){var N=g;g=R;try{return A.apply(this,arguments)}finally{g=N}}}})(lh);(function(e){e.exports=lh})(oh);/** + */(function(e){function t(A,R){var N=A.length;A.push(R);e:for(;0>>1,U=A[z];if(0>>1;zi(X,N))Qi(G,X)?(A[z]=G,A[Q]=N,z=Q):(A[z]=X,A[q]=N,z=q);else if(Qi(G,N))A[z]=G,A[Q]=N,z=Q;else break e}}return R}function i(A,R){var N=A.sortIndex-R.sortIndex;return N!==0?N:A.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var o=[],l=[],d=1,p=null,g=3,v=!1,b=!1,k=!1,O=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(A){for(var R=n(l);R!==null;){if(R.callback===null)r(l);else if(R.startTime<=A)r(l),R.sortIndex=R.expirationTime,t(o,R);else break;R=n(l)}}function T(A){if(k=!1,w(A),!b)if(n(o)!==null)b=!0,I(D);else{var R=n(l);R!==null&&L(T,R.startTime-A)}}function D(A,R){b=!1,k&&(k=!1,x(f),f=-1),v=!0;var N=g;try{for(w(R),p=n(o);p!==null&&(!(p.expirationTime>R)||A&&!E());){var z=p.callback;if(typeof z=="function"){p.callback=null,g=p.priorityLevel;var U=z(p.expirationTime<=R);R=e.unstable_now(),typeof U=="function"?p.callback=U:p===n(o)&&r(o),w(R)}else r(o);p=n(o)}if(p!==null)var W=!0;else{var q=n(l);q!==null&&L(T,q.startTime-R),W=!1}return W}finally{p=null,g=N,v=!1}}var S=!1,y=null,f=-1,m=5,h=-1;function E(){return!(e.unstable_now()-hA||125z?(A.sortIndex=N,t(l,A),n(o)===null&&A===n(l)&&(k?(x(f),f=-1):k=!0,L(T,N-z))):(A.sortIndex=U,t(o,A),b||v||(b=!0,I(D))),A},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(A){var R=g;return function(){var N=g;g=R;try{return A.apply(this,arguments)}finally{g=N}}}})(lh);(function(e){e.exports=lh})(oh);/** * @license React * react-dom.production.min.js * @@ -22,14 +22,14 @@ var xg=Object.defineProperty;var Eg=(e,t,n)=>t in e?xg(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ch=j.exports,ft=oh.exports;function H(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nl=Object.prototype.hasOwnProperty,jg=/^[: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]*$/,W0={},H0={};function Ug(e){return nl.call(H0,e)?!0:nl.call(W0,e)?!1:jg.test(e)?H0[e]=!0:(W0[e]=!0,!1)}function Vg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Wg(e,t,n,r){if(t===null||typeof t>"u"||Vg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Je(e,t,n,r,i,u,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=s}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Je(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Le[e]=new Je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Je(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ec=/[\-:]([a-z])/g;function _c(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ec,_c);Le[t]=new Je(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ec,_c);Le[t]=new Je(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ec,_c);Le[t]=new Je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Je(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Je(e,1,!1,e.toLowerCase(),null,!0,!0)});function wc(e,t,n,r){var i=Le.hasOwnProperty(t)?Le[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nl=Object.prototype.hasOwnProperty,jg=/^[: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]*$/,W0={},H0={};function Ug(e){return nl.call(H0,e)?!0:nl.call(W0,e)?!1:jg.test(e)?H0[e]=!0:(W0[e]=!0,!1)}function Vg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Wg(e,t,n,r){if(t===null||typeof t>"u"||Vg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Je(e,t,n,r,i,u,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=s}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Je(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Le[e]=new Je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Je(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ec=/[\-:]([a-z])/g;function _c(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ec,_c);Le[t]=new Je(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ec,_c);Le[t]=new Je(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ec,_c);Le[t]=new Je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Je(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Je(e,1,!1,e.toLowerCase(),null,!0,!0)});function wc(e,t,n,r){var i=Le.hasOwnProperty(t)?Le[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==u[a]){var o=` -`+i[s].replace(" at new "," at ");return e.displayName&&o.includes("")&&(o=o.replace("",e.displayName)),o}while(1<=s&&0<=a);break}}}finally{Ga=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Pi(e):""}function Hg(e){switch(e.tag){case 5:return Pi(e.type);case 16:return Pi("Lazy");case 13:return Pi("Suspense");case 19:return Pi("SuspenseList");case 0:case 2:case 15:return e=Qa(e.type,!1),e;case 11:return e=Qa(e.type.render,!1),e;case 1:return e=Qa(e.type,!0),e;default:return""}}function sl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case kr:return"Fragment";case Dr:return"Portal";case rl:return"Profiler";case Dc:return"StrictMode";case il:return"Suspense";case ul:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hh:return(e.displayName||"Context")+".Consumer";case fh:return(e._context.displayName||"Context")+".Provider";case kc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Sc:return t=e.displayName||null,t!==null?t:sl(e.type)||"Memo";case yn:t=e._payload,e=e._init;try{return sl(e(t))}catch{}}return null}function $g(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return sl(t);case 8:return t===Dc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kg(e){var t=mh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,u.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Iu(e){e._valueTracker||(e._valueTracker=Kg(e))}function gh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Cs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function al(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function K0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ln(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yh(e,t){t=t.checked,t!=null&&wc(e,"checked",t,!1)}function ol(e,t){yh(e,t);var n=Ln(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ll(e,t.type,n):t.hasOwnProperty("defaultValue")&&ll(e,t.type,Ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Y0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ll(e,t,n){(t!=="number"||Cs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ci=Array.isArray;function Lr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=zu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Mi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Yg=["Webkit","ms","Moz","O"];Object.keys(Mi).forEach(function(e){Yg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mi[t]=Mi[e]})});function Eh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Mi.hasOwnProperty(e)&&Mi[e]?(""+t).trim():t+"px"}function _h(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Eh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var qg=ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fl(e,t){if(t){if(qg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function hl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pl=null;function Pc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ml=null,Br=null,Ir=null;function G0(e){if(e=_u(e)){if(typeof ml!="function")throw Error(H(280));var t=e.stateNode;t&&(t=ba(t),ml(e.stateNode,e.type,t))}}function wh(e){Br?Ir?Ir.push(e):Ir=[e]:Br=e}function Dh(){if(Br){var e=Br,t=Ir;if(Ir=Br=null,G0(e),t)for(e=0;e>>=0,e===0?32:31-(uy(e)/sy|0)|0}var ju=64,Uu=4194304;function Oi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function As(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,u=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Oi(a):(u&=s,u!==0&&(r=Oi(u)))}else s=n&~i,s!==0?r=Oi(s):u!==0&&(r=Oi(u));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,u=t&-t,i>=u||i===16&&(u&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function xu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mt(t),e[t]=n}function cy(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Bi),u4=String.fromCharCode(32),s4=!1;function Hh(e,t){switch(e){case"keyup":return Iy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $h(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sr=!1;function jy(e,t){switch(e){case"compositionend":return $h(t);case"keypress":return t.which!==32?null:(s4=!0,u4);case"textInput":return e=t.data,e===u4&&s4?null:e;default:return null}}function Uy(e,t){if(Sr)return e==="compositionend"||!Mc&&Hh(e,t)?(e=Vh(),gs=Ac=En=null,Sr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=c4(n)}}function Xh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gh(){for(var e=window,t=Cs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Cs(e.document)}return t}function Lc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Gy(e){var t=Gh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xh(n.ownerDocument.documentElement,n)){if(r!==null&&Lc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,u=Math.min(r.start,i);r=r.end===void 0?u:Math.min(r.end,i),!e.extend&&u>r&&(i=r,r=u,u=i),i=d4(n,u);var s=d4(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),u>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Pr=null,El=null,zi=null,_l=!1;function f4(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_l||Pr==null||Pr!==Cs(r)||(r=Pr,"selectionStart"in r&&Lc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),zi&&ru(zi,r)||(zi=r,r=Ms(El,"onSelect"),0Fr||(e.current=Cl[Fr],Cl[Fr]=null,Fr--)}function le(e,t){Fr++,Cl[Fr]=e.current,e.current=t}var Bn={},$e=Un(Bn),nt=Un(!1),ur=Bn;function Hr(e,t){var n=e.type.contextTypes;if(!n)return Bn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},u;for(u in n)i[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function rt(e){return e=e.childContextTypes,e!=null}function Bs(){fe(nt),fe($e)}function b4(e,t,n){if($e.current!==Bn)throw Error(H(168));le($e,t),le(nt,n)}function up(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(H(108,$g(e)||"Unknown",i));return ye({},n,r)}function Is(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bn,ur=$e.current,le($e,e),le(nt,nt.current),!0}function x4(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=up(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,fe(nt),fe($e),le($e,e)):fe(nt),le(nt,n)}var en=null,xa=!1,fo=!1;function sp(e){en===null?en=[e]:en.push(e)}function ov(e){xa=!0,sp(e)}function Vn(){if(!fo&&en!==null){fo=!0;var e=0,t=se;try{var n=en;for(se=1;e>=s,i-=s,nn=1<<32-Mt(t)+i|n<f?(m=y,y=null):m=y.sibling;var h=g(x,y,w[f],T);if(h===null){y===null&&(y=m);break}e&&y&&h.alternate===null&&t(x,y),_=u(h,_,f),P===null?D=h:P.sibling=h,P=h,y=m}if(f===w.length)return n(x,y),he&&Kn(x,f),D;if(y===null){for(;ff?(m=y,y=null):m=y.sibling;var E=g(x,y,h.value,T);if(E===null){y===null&&(y=m);break}e&&y&&E.alternate===null&&t(x,y),_=u(E,_,f),P===null?D=E:P.sibling=E,P=E,y=m}if(h.done)return n(x,y),he&&Kn(x,f),D;if(y===null){for(;!h.done;f++,h=w.next())h=p(x,h.value,T),h!==null&&(_=u(h,_,f),P===null?D=h:P.sibling=h,P=h);return he&&Kn(x,f),D}for(y=r(x,y);!h.done;f++,h=w.next())h=v(y,x,f,h.value,T),h!==null&&(e&&h.alternate!==null&&y.delete(h.key===null?f:h.key),_=u(h,_,f),P===null?D=h:P.sibling=h,P=h);return e&&y.forEach(function(C){return t(x,C)}),he&&Kn(x,f),D}function O(x,_,w,T){if(typeof w=="object"&&w!==null&&w.type===kr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Bu:e:{for(var D=w.key,P=_;P!==null;){if(P.key===D){if(D=w.type,D===kr){if(P.tag===7){n(x,P.sibling),_=i(P,w.props.children),_.return=x,x=_;break e}}else if(P.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===yn&&P4(D)===P.type){n(x,P.sibling),_=i(P,w.props),_.ref=pi(x,P,w),_.return=x,x=_;break e}n(x,P);break}else t(x,P);P=P.sibling}w.type===kr?(_=nr(w.props.children,x.mode,T,w.key),_.return=x,x=_):(T=Ds(w.type,w.key,w.props,null,x.mode,T),T.ref=pi(x,_,w),T.return=x,x=T)}return s(x);case Dr:e:{for(P=w.key;_!==null;){if(_.key===P)if(_.tag===4&&_.stateNode.containerInfo===w.containerInfo&&_.stateNode.implementation===w.implementation){n(x,_.sibling),_=i(_,w.children||[]),_.return=x,x=_;break e}else{n(x,_);break}else t(x,_);_=_.sibling}_=xo(w,x.mode,T),_.return=x,x=_}return s(x);case yn:return P=w._init,O(x,_,P(w._payload),T)}if(Ci(w))return b(x,_,w,T);if(li(w))return k(x,_,w,T);qu(x,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,_!==null&&_.tag===6?(n(x,_.sibling),_=i(_,w),_.return=x,x=_):(n(x,_),_=bo(w,x.mode,T),_.return=x,x=_),s(x)):n(x,_)}return O}var Kr=pp(!0),mp=pp(!1),wu={},Yt=Un(wu),au=Un(wu),ou=Un(wu);function Zn(e){if(e===wu)throw Error(H(174));return e}function $c(e,t){switch(le(ou,t),le(au,e),le(Yt,wu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:dl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=dl(t,e)}fe(Yt),le(Yt,t)}function Yr(){fe(Yt),fe(au),fe(ou)}function gp(e){Zn(ou.current);var t=Zn(Yt.current),n=dl(t,e.type);t!==n&&(le(au,e),le(Yt,n))}function Kc(e){au.current===e&&(fe(Yt),fe(au))}var me=Un(0);function Hs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ho=[];function Yc(){for(var e=0;en?n:4,e(!0);var r=po.transition;po.transition={};try{e(!1),t()}finally{se=n,po.transition=r}}function Ap(){return St().memoizedState}function fv(e,t,n){var r=An(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Rp(e))Tp(t,n);else if(n=cp(e,t,n,r),n!==null){var i=Xe();Lt(n,e,r,i),Mp(n,t,r)}}function hv(e,t,n){var r=An(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rp(e))Tp(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var s=t.lastRenderedState,a=u(s,n);if(i.hasEagerState=!0,i.eagerState=a,Bt(a,s)){var o=t.interleaved;o===null?(i.next=i,Wc(t)):(i.next=o.next,o.next=i),t.interleaved=i;return}}catch{}finally{}n=cp(e,t,i,r),n!==null&&(i=Xe(),Lt(n,e,r,i),Mp(n,t,r))}}function Rp(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Tp(e,t){ji=$s=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Mp(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Oc(e,n)}}var Ks={readContext:kt,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useInsertionEffect:Ie,useLayoutEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useMutableSource:Ie,useSyncExternalStore:Ie,useId:Ie,unstable_isNewReconciler:!1},pv={readContext:kt,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:O4,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xs(4194308,4,Pp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xs(4194308,4,e,t)},useInsertionEffect:function(e,t){return xs(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=fv.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:C4,useDebugValue:Jc,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=C4(!1),t=e[0];return e=dv.bind(null,e[1]),Wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,i=Wt();if(he){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),Ne===null)throw Error(H(349));(ar&30)!==0||bp(r,t,n)}i.memoizedState=n;var u={value:n,getSnapshot:t};return i.queue=u,O4(Ep.bind(null,r,u,e),[e]),r.flags|=2048,du(9,xp.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=Wt(),t=Ne.identifierPrefix;if(he){var n=rn,r=nn;n=(r&~(1<<32-Mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=lu++,0")&&(o=o.replace("",e.displayName)),o}while(1<=s&&0<=a);break}}}finally{Ga=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Pi(e):""}function Hg(e){switch(e.tag){case 5:return Pi(e.type);case 16:return Pi("Lazy");case 13:return Pi("Suspense");case 19:return Pi("SuspenseList");case 0:case 2:case 15:return e=Qa(e.type,!1),e;case 11:return e=Qa(e.type.render,!1),e;case 1:return e=Qa(e.type,!0),e;default:return""}}function sl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case kr:return"Fragment";case Dr:return"Portal";case rl:return"Profiler";case Dc:return"StrictMode";case il:return"Suspense";case ul:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hh:return(e.displayName||"Context")+".Consumer";case fh:return(e._context.displayName||"Context")+".Provider";case kc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Sc:return t=e.displayName||null,t!==null?t:sl(e.type)||"Memo";case gn:t=e._payload,e=e._init;try{return sl(e(t))}catch{}}return null}function $g(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return sl(t);case 8:return t===Dc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kg(e){var t=mh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,u.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Iu(e){e._valueTracker||(e._valueTracker=Kg(e))}function gh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Cs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function al(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function K0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Mn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yh(e,t){t=t.checked,t!=null&&wc(e,"checked",t,!1)}function ol(e,t){yh(e,t);var n=Mn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ll(e,t.type,n):t.hasOwnProperty("defaultValue")&&ll(e,t.type,Mn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Y0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ll(e,t,n){(t!=="number"||Cs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ci=Array.isArray;function Lr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=zu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Mi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Yg=["Webkit","ms","Moz","O"];Object.keys(Mi).forEach(function(e){Yg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mi[t]=Mi[e]})});function Eh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Mi.hasOwnProperty(e)&&Mi[e]?(""+t).trim():t+"px"}function _h(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Eh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var qg=ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fl(e,t){if(t){if(qg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function hl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pl=null;function Pc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ml=null,Br=null,Ir=null;function G0(e){if(e=_u(e)){if(typeof ml!="function")throw Error(H(280));var t=e.stateNode;t&&(t=ba(t),ml(e.stateNode,e.type,t))}}function wh(e){Br?Ir?Ir.push(e):Ir=[e]:Br=e}function Dh(){if(Br){var e=Br,t=Ir;if(Ir=Br=null,G0(e),t)for(e=0;e>>=0,e===0?32:31-(uy(e)/sy|0)|0}var ju=64,Uu=4194304;function Oi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function As(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,u=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Oi(a):(u&=s,u!==0&&(r=Oi(u)))}else s=n&~i,s!==0?r=Oi(s):u!==0&&(r=Oi(u));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,u=t&-t,i>=u||i===16&&(u&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function xu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function cy(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Bi),u4=String.fromCharCode(32),s4=!1;function Hh(e,t){switch(e){case"keyup":return Iy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $h(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sr=!1;function jy(e,t){switch(e){case"compositionend":return $h(t);case"keypress":return t.which!==32?null:(s4=!0,u4);case"textInput":return e=t.data,e===u4&&s4?null:e;default:return null}}function Uy(e,t){if(Sr)return e==="compositionend"||!Mc&&Hh(e,t)?(e=Vh(),gs=Ac=xn=null,Sr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=c4(n)}}function Xh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gh(){for(var e=window,t=Cs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Cs(e.document)}return t}function Lc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Gy(e){var t=Gh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xh(n.ownerDocument.documentElement,n)){if(r!==null&&Lc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,u=Math.min(r.start,i);r=r.end===void 0?u:Math.min(r.end,i),!e.extend&&u>r&&(i=r,r=u,u=i),i=d4(n,u);var s=d4(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),u>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Pr=null,El=null,zi=null,_l=!1;function f4(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_l||Pr==null||Pr!==Cs(r)||(r=Pr,"selectionStart"in r&&Lc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),zi&&ru(zi,r)||(zi=r,r=Ms(El,"onSelect"),0Fr||(e.current=Cl[Fr],Cl[Fr]=null,Fr--)}function le(e,t){Fr++,Cl[Fr]=e.current,e.current=t}var Ln={},$e=jn(Ln),nt=jn(!1),ur=Ln;function Hr(e,t){var n=e.type.contextTypes;if(!n)return Ln;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},u;for(u in n)i[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function rt(e){return e=e.childContextTypes,e!=null}function Bs(){fe(nt),fe($e)}function b4(e,t,n){if($e.current!==Ln)throw Error(H(168));le($e,t),le(nt,n)}function up(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(H(108,$g(e)||"Unknown",i));return ye({},n,r)}function Is(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ln,ur=$e.current,le($e,e),le(nt,nt.current),!0}function x4(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=up(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,fe(nt),fe($e),le($e,e)):fe(nt),le(nt,n)}var Zt=null,xa=!1,fo=!1;function sp(e){Zt===null?Zt=[e]:Zt.push(e)}function ov(e){xa=!0,sp(e)}function Un(){if(!fo&&Zt!==null){fo=!0;var e=0,t=se;try{var n=Zt;for(se=1;e>=s,i-=s,tn=1<<32-Tt(t)+i|n<f?(m=y,y=null):m=y.sibling;var h=g(x,y,w[f],T);if(h===null){y===null&&(y=m);break}e&&y&&h.alternate===null&&t(x,y),_=u(h,_,f),S===null?D=h:S.sibling=h,S=h,y=m}if(f===w.length)return n(x,y),he&&$n(x,f),D;if(y===null){for(;ff?(m=y,y=null):m=y.sibling;var E=g(x,y,h.value,T);if(E===null){y===null&&(y=m);break}e&&y&&E.alternate===null&&t(x,y),_=u(E,_,f),S===null?D=E:S.sibling=E,S=E,y=m}if(h.done)return n(x,y),he&&$n(x,f),D;if(y===null){for(;!h.done;f++,h=w.next())h=p(x,h.value,T),h!==null&&(_=u(h,_,f),S===null?D=h:S.sibling=h,S=h);return he&&$n(x,f),D}for(y=r(x,y);!h.done;f++,h=w.next())h=v(y,x,f,h.value,T),h!==null&&(e&&h.alternate!==null&&y.delete(h.key===null?f:h.key),_=u(h,_,f),S===null?D=h:S.sibling=h,S=h);return e&&y.forEach(function(C){return t(x,C)}),he&&$n(x,f),D}function O(x,_,w,T){if(typeof w=="object"&&w!==null&&w.type===kr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Bu:e:{for(var D=w.key,S=_;S!==null;){if(S.key===D){if(D=w.type,D===kr){if(S.tag===7){n(x,S.sibling),_=i(S,w.props.children),_.return=x,x=_;break e}}else if(S.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===gn&&P4(D)===S.type){n(x,S.sibling),_=i(S,w.props),_.ref=pi(x,S,w),_.return=x,x=_;break e}n(x,S);break}else t(x,S);S=S.sibling}w.type===kr?(_=nr(w.props.children,x.mode,T,w.key),_.return=x,x=_):(T=Ds(w.type,w.key,w.props,null,x.mode,T),T.ref=pi(x,_,w),T.return=x,x=T)}return s(x);case Dr:e:{for(S=w.key;_!==null;){if(_.key===S)if(_.tag===4&&_.stateNode.containerInfo===w.containerInfo&&_.stateNode.implementation===w.implementation){n(x,_.sibling),_=i(_,w.children||[]),_.return=x,x=_;break e}else{n(x,_);break}else t(x,_);_=_.sibling}_=xo(w,x.mode,T),_.return=x,x=_}return s(x);case gn:return S=w._init,O(x,_,S(w._payload),T)}if(Ci(w))return b(x,_,w,T);if(li(w))return k(x,_,w,T);qu(x,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,_!==null&&_.tag===6?(n(x,_.sibling),_=i(_,w),_.return=x,x=_):(n(x,_),_=bo(w,x.mode,T),_.return=x,x=_),s(x)):n(x,_)}return O}var Kr=pp(!0),mp=pp(!1),wu={},Kt=jn(wu),au=jn(wu),ou=jn(wu);function Zn(e){if(e===wu)throw Error(H(174));return e}function $c(e,t){switch(le(ou,t),le(au,e),le(Kt,wu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:dl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=dl(t,e)}fe(Kt),le(Kt,t)}function Yr(){fe(Kt),fe(au),fe(ou)}function gp(e){Zn(ou.current);var t=Zn(Kt.current),n=dl(t,e.type);t!==n&&(le(au,e),le(Kt,n))}function Kc(e){au.current===e&&(fe(Kt),fe(au))}var me=jn(0);function Hs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ho=[];function Yc(){for(var e=0;en?n:4,e(!0);var r=po.transition;po.transition={};try{e(!1),t()}finally{se=n,po.transition=r}}function Ap(){return kt().memoizedState}function fv(e,t,n){var r=Nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Rp(e))Tp(t,n);else if(n=cp(e,t,n,r),n!==null){var i=Xe();Mt(n,e,r,i),Mp(n,t,r)}}function hv(e,t,n){var r=Nn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rp(e))Tp(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var s=t.lastRenderedState,a=u(s,n);if(i.hasEagerState=!0,i.eagerState=a,Lt(a,s)){var o=t.interleaved;o===null?(i.next=i,Wc(t)):(i.next=o.next,o.next=i),t.interleaved=i;return}}catch{}finally{}n=cp(e,t,i,r),n!==null&&(i=Xe(),Mt(n,e,r,i),Mp(n,t,r))}}function Rp(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Tp(e,t){ji=$s=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Mp(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Oc(e,n)}}var Ks={readContext:Dt,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useInsertionEffect:Ie,useLayoutEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useMutableSource:Ie,useSyncExternalStore:Ie,useId:Ie,unstable_isNewReconciler:!1},pv={readContext:Dt,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:O4,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xs(4194308,4,Pp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xs(4194308,4,e,t)},useInsertionEffect:function(e,t){return xs(4,2,e,t)},useMemo:function(e,t){var n=Vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=fv.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:C4,useDebugValue:Jc,useDeferredValue:function(e){return Vt().memoizedState=e},useTransition:function(){var e=C4(!1),t=e[0];return e=dv.bind(null,e[1]),Vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,i=Vt();if(he){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),Ne===null)throw Error(H(349));(ar&30)!==0||bp(r,t,n)}i.memoizedState=n;var u={value:n,getSnapshot:t};return i.queue=u,O4(Ep.bind(null,r,u,e),[e]),r.flags|=2048,du(9,xp.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=Vt(),t=Ne.identifierPrefix;if(he){var n=nn,r=tn;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=lu++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ht]=t,e[su]=r,Hp(e,t,!1,!1),t.stateNode=e;e:{switch(s=hl(n,r),n){case"dialog":de("cancel",e),de("close",e),i=r;break;case"iframe":case"object":case"embed":de("load",e),i=r;break;case"video":case"audio":for(i=0;iXr&&(t.flags|=128,r=!0,mi(u,!1),t.lanes=4194304)}else{if(!r)if(e=Hs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mi(u,!0),u.tail===null&&u.tailMode==="hidden"&&!s.alternate&&!he)return ze(t),null}else 2*De()-u.renderingStartTime>Xr&&n!==1073741824&&(t.flags|=128,r=!0,mi(u,!1),t.lanes=4194304);u.isBackwards?(s.sibling=t.child,t.child=s):(n=u.last,n!==null?n.sibling=s:t.child=s,u.last=s)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=De(),t.sibling=null,n=me.current,le(me,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return i0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(ot&1073741824)!==0&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function _v(e,t){switch(Ic(t),t.tag){case 1:return rt(t.type)&&Bs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yr(),fe(nt),fe($e),Yc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Kc(t),null;case 13:if(fe(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));$r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(me),null;case 4:return Yr(),null;case 10:return Vc(t.type._context),null;case 22:case 23:return i0(),null;case 24:return null;default:return null}}var Gu=!1,Ve=!1,wv=typeof WeakSet=="function"?WeakSet:Set,$=null;function Tr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function jl(e,t,n){try{n()}catch(r){xe(e,t,r)}}var I4=!1;function Dv(e,t){if(wl=Rs,e=Gh(),Lc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var s=0,a=-1,o=-1,l=0,d=0,p=e,g=null;t:for(;;){for(var v;p!==n||i!==0&&p.nodeType!==3||(a=s+i),p!==u||r!==0&&p.nodeType!==3||(o=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(v=p.firstChild)!==null;)g=p,p=v;for(;;){if(p===e)break t;if(g===n&&++l===i&&(a=s),g===u&&++d===r&&(o=s),(v=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=v}n=a===-1||o===-1?null:{start:a,end:o}}else n=null}n=n||{start:0,end:0}}else n=null;for(Dl={focusedElem:e,selectionRange:n},Rs=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var b=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var k=b.memoizedProps,O=b.memoizedState,x=t.stateNode,_=x.getSnapshotBeforeUpdate(t.elementType===t.type?k:Ft(t.type,k),O);x.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(T){xe(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return b=I4,I4=!1,b}function Ui(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var u=i.destroy;i.destroy=void 0,u!==void 0&&jl(t,n,u)}i=i.next}while(i!==r)}}function wa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ul(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Yp(e){var t=e.alternate;t!==null&&(e.alternate=null,Yp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ht],delete t[su],delete t[Pl],delete t[sv],delete t[av])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function qp(e){return e.tag===5||e.tag===3||e.tag===4}function z4(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ls));else if(r!==4&&(e=e.child,e!==null))for(Vl(e,t,n),e=e.sibling;e!==null;)Vl(e,t,n),e=e.sibling}function Wl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Wl(e,t,n),e=e.sibling;e!==null;)Wl(e,t,n),e=e.sibling}var Re=null,Nt=!1;function mn(e,t,n){for(n=n.child;n!==null;)Xp(e,t,n),n=n.sibling}function Xp(e,t,n){if(Kt&&typeof Kt.onCommitFiberUnmount=="function")try{Kt.onCommitFiberUnmount(ma,n)}catch{}switch(n.tag){case 5:Ve||Tr(n,t);case 6:var r=Re,i=Nt;Re=null,mn(e,t,n),Re=r,Nt=i,Re!==null&&(Nt?(e=Re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Re.removeChild(n.stateNode));break;case 18:Re!==null&&(Nt?(e=Re,n=n.stateNode,e.nodeType===8?co(e.parentNode,n):e.nodeType===1&&co(e,n),tu(e)):co(Re,n.stateNode));break;case 4:r=Re,i=Nt,Re=n.stateNode.containerInfo,Nt=!0,mn(e,t,n),Re=r,Nt=i;break;case 0:case 11:case 14:case 15:if(!Ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var u=i,s=u.destroy;u=u.tag,s!==void 0&&((u&2)!==0||(u&4)!==0)&&jl(n,t,s),i=i.next}while(i!==r)}mn(e,t,n);break;case 1:if(!Ve&&(Tr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){xe(n,t,a)}mn(e,t,n);break;case 21:mn(e,t,n);break;case 22:n.mode&1?(Ve=(r=Ve)||n.memoizedState!==null,mn(e,t,n),Ve=r):mn(e,t,n);break;default:mn(e,t,n)}}function j4(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wv),t.forEach(function(r){var i=Rv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ot(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~u}if(r=i,r=De()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sv(r/1960))-r,10e?16:e,_n===null)var r=!1;else{if(e=_n,_n=null,Xs=0,(te&6)!==0)throw Error(H(331));var i=te;for(te|=4,$=e.current;$!==null;){var u=$,s=u.child;if(($.flags&16)!==0){var a=u.deletions;if(a!==null){for(var o=0;oDe()-n0?tr(e,0):t0|=n),it(e,t)}function r3(e,t){t===0&&((e.mode&1)===0?t=1:(t=Uu,Uu<<=1,(Uu&130023424)===0&&(Uu=4194304)));var n=Xe();e=ln(e,t),e!==null&&(xu(e,t,n),it(e,n))}function Av(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),r3(e,n)}function Rv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(H(314))}r!==null&&r.delete(t),r3(e,n)}var i3;i3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)tt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return tt=!1,xv(e,t,n);tt=(e.flags&131072)!==0}else tt=!1,he&&(t.flags&1048576)!==0&&ap(t,js,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Es(e,t),e=t.pendingProps;var i=Hr(t,$e.current);jr(t,n),i=Xc(null,t,r,e,i,n);var u=Gc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(r)?(u=!0,Is(t)):u=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Hc(t),i.updater=Ea,t.stateNode=i,i._reactInternals=t,Rl(t,r,e,n),t=Ll(null,t,r,!0,u,n)):(t.tag=0,he&&u&&Bc(t),qe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Es(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Mv(r),e=Ft(r,e),i){case 0:t=Ml(null,t,r,e,n);break e;case 1:t=M4(null,t,r,e,n);break e;case 11:t=R4(null,t,r,e,n);break e;case 14:t=T4(null,t,r,Ft(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),Ml(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),M4(e,t,r,i,n);case 3:e:{if(Up(t),e===null)throw Error(H(387));r=t.pendingProps,u=t.memoizedState,i=u.element,dp(e,t),Ws(t,r,null,n);var s=t.memoizedState;if(r=s.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){i=qr(Error(H(423)),t),t=L4(e,t,r,n,i);break e}else if(r!==i){i=qr(Error(H(424)),t),t=L4(e,t,r,n,i);break e}else for(lt=On(t.stateNode.containerInfo.firstChild),dt=t,he=!0,Rt=null,n=mp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($r(),r===i){t=cn(e,t,n);break e}qe(e,t,r,n)}t=t.child}return t;case 5:return gp(t),e===null&&Fl(t),r=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,s=i.children,kl(r,i)?s=null:u!==null&&kl(r,u)&&(t.flags|=32),jp(e,t),qe(e,t,s,n),t.child;case 6:return e===null&&Fl(t),null;case 13:return Vp(e,t,n);case 4:return $c(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Kr(t,null,r,n):qe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),R4(e,t,r,i,n);case 7:return qe(e,t,t.pendingProps,n),t.child;case 8:return qe(e,t,t.pendingProps.children,n),t.child;case 12:return qe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,u=t.memoizedProps,s=i.value,le(Us,r._currentValue),r._currentValue=s,u!==null)if(Bt(u.value,s)){if(u.children===i.children&&!nt.current){t=cn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var a=u.dependencies;if(a!==null){s=u.child;for(var o=a.firstContext;o!==null;){if(o.context===r){if(u.tag===1){o=un(-1,n&-n),o.tag=2;var l=u.updateQueue;if(l!==null){l=l.shared;var d=l.pending;d===null?o.next=o:(o.next=d.next,d.next=o),l.pending=o}}u.lanes|=n,o=u.alternate,o!==null&&(o.lanes|=n),Nl(u.return,n,t),a.lanes|=n;break}o=o.next}}else if(u.tag===10)s=u.type===t.type?null:u.child;else if(u.tag===18){if(s=u.return,s===null)throw Error(H(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Nl(s,n,t),s=u.sibling}else s=u.child;if(s!==null)s.return=u;else for(s=u;s!==null;){if(s===t){s=null;break}if(u=s.sibling,u!==null){u.return=s.return,s=u;break}s=s.return}u=s}qe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,jr(t,n),i=kt(i),r=r(i),t.flags|=1,qe(e,t,r,n),t.child;case 14:return r=t.type,i=Ft(r,t.pendingProps),i=Ft(r.type,i),T4(e,t,r,i,n);case 15:return Ip(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),Es(e,t),t.tag=1,rt(r)?(e=!0,Is(t)):e=!1,jr(t,n),hp(t,r,i),Rl(t,r,i,n),Ll(null,t,r,!0,e,n);case 19:return Wp(e,t,n);case 22:return zp(e,t,n)}throw Error(H(156,t.tag))};function u3(e,t){return Nh(e,t)}function Tv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,r){return new Tv(e,t,n,r)}function s0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mv(e){if(typeof e=="function")return s0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kc)return 11;if(e===Sc)return 14}return 2}function Rn(e,t){var n=e.alternate;return n===null?(n=_t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ds(e,t,n,r,i,u){var s=2;if(r=e,typeof e=="function")s0(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case kr:return nr(n.children,i,u,t);case Dc:s=8,i|=8;break;case rl:return e=_t(12,n,t,i|2),e.elementType=rl,e.lanes=u,e;case il:return e=_t(13,n,t,i),e.elementType=il,e.lanes=u,e;case ul:return e=_t(19,n,t,i),e.elementType=ul,e.lanes=u,e;case ph:return ka(n,i,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fh:s=10;break e;case hh:s=9;break e;case kc:s=11;break e;case Sc:s=14;break e;case yn:s=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=_t(s,n,t,i),t.elementType=e,t.type=r,t.lanes=u,t}function nr(e,t,n,r){return e=_t(7,e,r,t),e.lanes=n,e}function ka(e,t,n,r){return e=_t(22,e,r,t),e.elementType=ph,e.lanes=n,e.stateNode={isHidden:!1},e}function bo(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function xo(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lv(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Za(0),this.expirationTimes=Za(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Za(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function a0(e,t,n,r,i,u,s,a,o){return e=new Lv(e,t,n,a,o),t===1?(t=1,u===!0&&(t|=8)):t=0,u=_t(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hc(u),e}function Bv(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=ht})(ah);var l3,q4=ah.exports;l3=q4.createRoot,q4.hydrateRoot;/** +`+u.stack}return{value:e,source:t,stack:i,digest:null}}function yo(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function Tl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var yv=typeof WeakMap=="function"?WeakMap:Map;function Lp(e,t,n){n=rn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qs||(qs=!0,Hl=r),Tl(e,t)},n}function Bp(e,t,n){n=rn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Tl(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Tl(e,t),typeof r!="function"&&(Fn===null?Fn=new Set([this]):Fn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function F4(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new yv;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Nv.bind(null,e,t,n),t.then(e,e))}function N4(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function A4(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=rn(-1,1),t.tag=2,On(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var vv=cn.ReactCurrentOwner,tt=!1;function qe(e,t,n,r){t.child=e===null?mp(t,null,n,r):Kr(t,e.child,n,r)}function R4(e,t,n,r,i){n=n.render;var u=t.ref;return jr(t,i),r=Xc(e,t,n,r,u,i),n=Gc(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ln(e,t,i)):(he&&n&&Bc(t),t.flags|=1,qe(e,t,r,i),t.child)}function T4(e,t,n,r,i){if(e===null){var u=n.type;return typeof u=="function"&&!s0(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Ip(e,t,u,r,i)):(e=Ds(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&i)===0){var s=u.memoizedProps;if(n=n.compare,n=n!==null?n:ru,n(s,r)&&e.ref===t.ref)return ln(e,t,i)}return t.flags|=1,e=An(u,r),e.ref=t.ref,e.return=t,t.child=e}function Ip(e,t,n,r,i){if(e!==null){var u=e.memoizedProps;if(ru(u,r)&&e.ref===t.ref)if(tt=!1,t.pendingProps=r=u,(e.lanes&i)!==0)(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,ln(e,t,i)}return Ml(e,t,n,r,i)}function zp(e,t,n){var r=t.pendingProps,i=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(Mr,at),at|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,le(Mr,at),at|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,le(Mr,at),at|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,le(Mr,at),at|=r;return qe(e,t,i,n),t.child}function jp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ml(e,t,n,r,i){var u=rt(n)?ur:$e.current;return u=Hr(t,u),jr(t,i),n=Xc(e,t,n,r,u,i),r=Gc(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ln(e,t,i)):(he&&r&&Bc(t),t.flags|=1,qe(e,t,n,i),t.child)}function M4(e,t,n,r,i){if(rt(n)){var u=!0;Is(t)}else u=!1;if(jr(t,i),t.stateNode===null)Es(e,t),hp(t,n,r),Rl(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var o=s.context,l=n.contextType;typeof l=="object"&&l!==null?l=Dt(l):(l=rt(n)?ur:$e.current,l=Hr(t,l));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||o!==l)&&S4(t,s,r,l),yn=!1;var g=t.memoizedState;s.state=g,Ws(t,r,s,i),o=t.memoizedState,a!==r||g!==o||nt.current||yn?(typeof d=="function"&&(Al(t,n,d,r),o=t.memoizedState),(a=yn||k4(t,n,a,r,g,o,l))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=o),s.props=r,s.state=o,s.context=l,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,dp(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:Ot(t.type,a),s.props=l,p=t.pendingProps,g=s.context,o=n.contextType,typeof o=="object"&&o!==null?o=Dt(o):(o=rt(n)?ur:$e.current,o=Hr(t,o));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==p||g!==o)&&S4(t,s,r,o),yn=!1,g=t.memoizedState,s.state=g,Ws(t,r,s,i);var b=t.memoizedState;a!==p||g!==b||nt.current||yn?(typeof v=="function"&&(Al(t,n,v,r),b=t.memoizedState),(l=yn||k4(t,n,l,r,g,b,o)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,b,o),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,b,o)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),s.props=r,s.state=b,s.context=o,r=l):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return Ll(e,t,n,r,u,i)}function Ll(e,t,n,r,i,u){jp(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&x4(t,n,!1),ln(e,t,u);r=t.stateNode,vv.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Kr(t,e.child,null,u),t.child=Kr(t,null,a,u)):qe(e,t,a,u),t.memoizedState=r.state,i&&x4(t,n,!0),t.child}function Up(e){var t=e.stateNode;t.pendingContext?b4(e,t.pendingContext,t.pendingContext!==t.context):t.context&&b4(e,t.context,!1),$c(e,t.containerInfo)}function L4(e,t,n,r,i){return $r(),zc(i),t.flags|=256,qe(e,t,n,r),t.child}var Bl={dehydrated:null,treeContext:null,retryLane:0};function Il(e){return{baseLanes:e,cachePool:null,transitions:null}}function Vp(e,t,n){var r=t.pendingProps,i=me.current,u=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),le(me,i&1),e===null)return Fl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,u?(r=t.mode,u=t.child,s={mode:"hidden",children:s},(r&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=s):u=ka(s,r,0,null),e=nr(e,r,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Il(n),t.memoizedState=Bl,e):Zc(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return bv(e,t,s,r,a,i,n);if(u){u=r.fallback,s=t.mode,i=e.child,a=i.sibling;var o={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=o,t.deletions=null):(r=An(i,o),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?u=An(a,u):(u=nr(u,s,n,null),u.flags|=2),u.return=t,r.return=t,r.sibling=u,t.child=r,r=u,u=t.child,s=e.child.memoizedState,s=s===null?Il(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},u.memoizedState=s,u.childLanes=e.childLanes&~n,t.memoizedState=Bl,r}return u=e.child,e=u.sibling,r=An(u,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Zc(e,t){return t=ka({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Xu(e,t,n,r){return r!==null&&zc(r),Kr(t,e.child,null,n),e=Zc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bv(e,t,n,r,i,u,s){if(n)return t.flags&256?(t.flags&=-257,r=yo(Error(H(422))),Xu(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=r.fallback,i=t.mode,r=ka({mode:"visible",children:r.children},i,0,null),u=nr(u,i,s,null),u.flags|=2,r.return=t,u.return=t,r.sibling=u,t.child=r,(t.mode&1)!==0&&Kr(t,e.child,null,s),t.child.memoizedState=Il(s),t.memoizedState=Bl,u);if((t.mode&1)===0)return Xu(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,u=Error(H(419)),r=yo(u,r,void 0),Xu(e,t,s,r)}if(a=(s&e.childLanes)!==0,tt||a){if(r=Ne,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(r.suspendedLanes|s))!==0?0:i,i!==0&&i!==u.retryLane&&(u.retryLane=i,on(e,i),Mt(r,e,i,-1))}return u0(),r=yo(Error(H(421))),Xu(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Av.bind(null,e),i._reactRetry=t,null):(e=u.treeContext,ot=Cn(i.nextSibling),ct=t,he=!0,At=null,e!==null&&(vt[bt++]=tn,vt[bt++]=nn,vt[bt++]=sr,tn=e.id,nn=e.overflow,sr=t),t=Zc(t,r.children),t.flags|=4096,t)}function B4(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Nl(e.return,t,n)}function vo(e,t,n,r,i){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=r,u.tail=n,u.tailMode=i)}function Wp(e,t,n){var r=t.pendingProps,i=r.revealOrder,u=r.tail;if(qe(e,t,r.children,n),r=me.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&B4(e,n,t);else if(e.tag===19)B4(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(le(me,r),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Hs(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),vo(t,!1,i,n,u);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Hs(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}vo(t,!0,n,null,u);break;case"together":vo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Es(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ln(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),or|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,n=An(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=An(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xv(e,t,n){switch(t.tag){case 3:Up(t),$r();break;case 5:gp(t);break;case 1:rt(t.type)&&Is(t);break;case 4:$c(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;le(Us,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(le(me,me.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Vp(e,t,n):(le(me,me.current&1),e=ln(e,t,n),e!==null?e.sibling:null);le(me,me.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Wp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),le(me,me.current),r)break;return null;case 22:case 23:return t.lanes=0,zp(e,t,n)}return ln(e,t,n)}var Hp,zl,$p,Kp;Hp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};zl=function(){};$p=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Zn(Kt.current);var u=null;switch(n){case"input":i=al(e,i),r=al(e,r),u=[];break;case"select":i=ye({},i,{value:void 0}),r=ye({},r,{value:void 0}),u=[];break;case"textarea":i=cl(e,i),r=cl(e,r),u=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ls)}fl(n,r);var s;n=null;for(l in i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var a=i[l];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Gi.hasOwnProperty(l)?u||(u=[]):(u=u||[]).push(l,null));for(l in r){var o=r[l];if(a=i!=null?i[l]:void 0,r.hasOwnProperty(l)&&o!==a&&(o!=null||a!=null))if(l==="style")if(a){for(s in a)!a.hasOwnProperty(s)||o&&o.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in o)o.hasOwnProperty(s)&&a[s]!==o[s]&&(n||(n={}),n[s]=o[s])}else n||(u||(u=[]),u.push(l,n)),n=o;else l==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,a=a?a.__html:void 0,o!=null&&a!==o&&(u=u||[]).push(l,o)):l==="children"?typeof o!="string"&&typeof o!="number"||(u=u||[]).push(l,""+o):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Gi.hasOwnProperty(l)?(o!=null&&l==="onScroll"&&de("scroll",e),u||a===o||(u=[])):(u=u||[]).push(l,o))}n&&(u=u||[]).push("style",n);var l=u;(t.updateQueue=l)&&(t.flags|=4)}};Kp=function(e,t,n,r){n!==r&&(t.flags|=4)};function mi(e,t){if(!he)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ev(e,t,n){var r=t.pendingProps;switch(Ic(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return rt(t.type)&&Bs(),ze(t),null;case 3:return r=t.stateNode,Yr(),fe(nt),fe($e),Yc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Yu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,At!==null&&(Yl(At),At=null))),zl(e,t),ze(t),null;case 5:Kc(t);var i=Zn(ou.current);if(n=t.type,e!==null&&t.stateNode!=null)$p(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(H(166));return ze(t),null}if(e=Zn(Kt.current),Yu(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[Wt]=t,r[su]=u,e=(t.mode&1)!==0,n){case"dialog":de("cancel",r),de("close",r);break;case"iframe":case"object":case"embed":de("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Wt]=t,e[su]=r,Hp(e,t,!1,!1),t.stateNode=e;e:{switch(s=hl(n,r),n){case"dialog":de("cancel",e),de("close",e),i=r;break;case"iframe":case"object":case"embed":de("load",e),i=r;break;case"video":case"audio":for(i=0;iXr&&(t.flags|=128,r=!0,mi(u,!1),t.lanes=4194304)}else{if(!r)if(e=Hs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mi(u,!0),u.tail===null&&u.tailMode==="hidden"&&!s.alternate&&!he)return ze(t),null}else 2*De()-u.renderingStartTime>Xr&&n!==1073741824&&(t.flags|=128,r=!0,mi(u,!1),t.lanes=4194304);u.isBackwards?(s.sibling=t.child,t.child=s):(n=u.last,n!==null?n.sibling=s:t.child=s,u.last=s)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=De(),t.sibling=null,n=me.current,le(me,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return i0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(at&1073741824)!==0&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function _v(e,t){switch(Ic(t),t.tag){case 1:return rt(t.type)&&Bs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yr(),fe(nt),fe($e),Yc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Kc(t),null;case 13:if(fe(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));$r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(me),null;case 4:return Yr(),null;case 10:return Vc(t.type._context),null;case 22:case 23:return i0(),null;case 24:return null;default:return null}}var Gu=!1,Ve=!1,wv=typeof WeakSet=="function"?WeakSet:Set,$=null;function Tr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function jl(e,t,n){try{n()}catch(r){xe(e,t,r)}}var I4=!1;function Dv(e,t){if(wl=Rs,e=Gh(),Lc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var s=0,a=-1,o=-1,l=0,d=0,p=e,g=null;t:for(;;){for(var v;p!==n||i!==0&&p.nodeType!==3||(a=s+i),p!==u||r!==0&&p.nodeType!==3||(o=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(v=p.firstChild)!==null;)g=p,p=v;for(;;){if(p===e)break t;if(g===n&&++l===i&&(a=s),g===u&&++d===r&&(o=s),(v=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=v}n=a===-1||o===-1?null:{start:a,end:o}}else n=null}n=n||{start:0,end:0}}else n=null;for(Dl={focusedElem:e,selectionRange:n},Rs=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var b=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var k=b.memoizedProps,O=b.memoizedState,x=t.stateNode,_=x.getSnapshotBeforeUpdate(t.elementType===t.type?k:Ot(t.type,k),O);x.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(T){xe(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return b=I4,I4=!1,b}function Ui(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var u=i.destroy;i.destroy=void 0,u!==void 0&&jl(t,n,u)}i=i.next}while(i!==r)}}function wa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ul(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Yp(e){var t=e.alternate;t!==null&&(e.alternate=null,Yp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wt],delete t[su],delete t[Pl],delete t[sv],delete t[av])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function qp(e){return e.tag===5||e.tag===3||e.tag===4}function z4(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ls));else if(r!==4&&(e=e.child,e!==null))for(Vl(e,t,n),e=e.sibling;e!==null;)Vl(e,t,n),e=e.sibling}function Wl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Wl(e,t,n),e=e.sibling;e!==null;)Wl(e,t,n),e=e.sibling}var Re=null,Ft=!1;function pn(e,t,n){for(n=n.child;n!==null;)Xp(e,t,n),n=n.sibling}function Xp(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(ma,n)}catch{}switch(n.tag){case 5:Ve||Tr(n,t);case 6:var r=Re,i=Ft;Re=null,pn(e,t,n),Re=r,Ft=i,Re!==null&&(Ft?(e=Re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Re.removeChild(n.stateNode));break;case 18:Re!==null&&(Ft?(e=Re,n=n.stateNode,e.nodeType===8?co(e.parentNode,n):e.nodeType===1&&co(e,n),tu(e)):co(Re,n.stateNode));break;case 4:r=Re,i=Ft,Re=n.stateNode.containerInfo,Ft=!0,pn(e,t,n),Re=r,Ft=i;break;case 0:case 11:case 14:case 15:if(!Ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var u=i,s=u.destroy;u=u.tag,s!==void 0&&((u&2)!==0||(u&4)!==0)&&jl(n,t,s),i=i.next}while(i!==r)}pn(e,t,n);break;case 1:if(!Ve&&(Tr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){xe(n,t,a)}pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:n.mode&1?(Ve=(r=Ve)||n.memoizedState!==null,pn(e,t,n),Ve=r):pn(e,t,n);break;default:pn(e,t,n)}}function j4(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wv),t.forEach(function(r){var i=Rv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~u}if(r=i,r=De()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sv(r/1960))-r,10e?16:e,En===null)var r=!1;else{if(e=En,En=null,Xs=0,(te&6)!==0)throw Error(H(331));var i=te;for(te|=4,$=e.current;$!==null;){var u=$,s=u.child;if(($.flags&16)!==0){var a=u.deletions;if(a!==null){for(var o=0;oDe()-n0?tr(e,0):t0|=n),it(e,t)}function r3(e,t){t===0&&((e.mode&1)===0?t=1:(t=Uu,Uu<<=1,(Uu&130023424)===0&&(Uu=4194304)));var n=Xe();e=on(e,t),e!==null&&(xu(e,t,n),it(e,n))}function Av(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),r3(e,n)}function Rv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(H(314))}r!==null&&r.delete(t),r3(e,n)}var i3;i3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)tt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return tt=!1,xv(e,t,n);tt=(e.flags&131072)!==0}else tt=!1,he&&(t.flags&1048576)!==0&&ap(t,js,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Es(e,t),e=t.pendingProps;var i=Hr(t,$e.current);jr(t,n),i=Xc(null,t,r,e,i,n);var u=Gc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(r)?(u=!0,Is(t)):u=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Hc(t),i.updater=Ea,t.stateNode=i,i._reactInternals=t,Rl(t,r,e,n),t=Ll(null,t,r,!0,u,n)):(t.tag=0,he&&u&&Bc(t),qe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Es(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Mv(r),e=Ot(r,e),i){case 0:t=Ml(null,t,r,e,n);break e;case 1:t=M4(null,t,r,e,n);break e;case 11:t=R4(null,t,r,e,n);break e;case 14:t=T4(null,t,r,Ot(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ot(r,i),Ml(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ot(r,i),M4(e,t,r,i,n);case 3:e:{if(Up(t),e===null)throw Error(H(387));r=t.pendingProps,u=t.memoizedState,i=u.element,dp(e,t),Ws(t,r,null,n);var s=t.memoizedState;if(r=s.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){i=qr(Error(H(423)),t),t=L4(e,t,r,n,i);break e}else if(r!==i){i=qr(Error(H(424)),t),t=L4(e,t,r,n,i);break e}else for(ot=Cn(t.stateNode.containerInfo.firstChild),ct=t,he=!0,At=null,n=mp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($r(),r===i){t=ln(e,t,n);break e}qe(e,t,r,n)}t=t.child}return t;case 5:return gp(t),e===null&&Fl(t),r=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,s=i.children,kl(r,i)?s=null:u!==null&&kl(r,u)&&(t.flags|=32),jp(e,t),qe(e,t,s,n),t.child;case 6:return e===null&&Fl(t),null;case 13:return Vp(e,t,n);case 4:return $c(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Kr(t,null,r,n):qe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ot(r,i),R4(e,t,r,i,n);case 7:return qe(e,t,t.pendingProps,n),t.child;case 8:return qe(e,t,t.pendingProps.children,n),t.child;case 12:return qe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,u=t.memoizedProps,s=i.value,le(Us,r._currentValue),r._currentValue=s,u!==null)if(Lt(u.value,s)){if(u.children===i.children&&!nt.current){t=ln(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var a=u.dependencies;if(a!==null){s=u.child;for(var o=a.firstContext;o!==null;){if(o.context===r){if(u.tag===1){o=rn(-1,n&-n),o.tag=2;var l=u.updateQueue;if(l!==null){l=l.shared;var d=l.pending;d===null?o.next=o:(o.next=d.next,d.next=o),l.pending=o}}u.lanes|=n,o=u.alternate,o!==null&&(o.lanes|=n),Nl(u.return,n,t),a.lanes|=n;break}o=o.next}}else if(u.tag===10)s=u.type===t.type?null:u.child;else if(u.tag===18){if(s=u.return,s===null)throw Error(H(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Nl(s,n,t),s=u.sibling}else s=u.child;if(s!==null)s.return=u;else for(s=u;s!==null;){if(s===t){s=null;break}if(u=s.sibling,u!==null){u.return=s.return,s=u;break}s=s.return}u=s}qe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,jr(t,n),i=Dt(i),r=r(i),t.flags|=1,qe(e,t,r,n),t.child;case 14:return r=t.type,i=Ot(r,t.pendingProps),i=Ot(r.type,i),T4(e,t,r,i,n);case 15:return Ip(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ot(r,i),Es(e,t),t.tag=1,rt(r)?(e=!0,Is(t)):e=!1,jr(t,n),hp(t,r,i),Rl(t,r,i,n),Ll(null,t,r,!0,e,n);case 19:return Wp(e,t,n);case 22:return zp(e,t,n)}throw Error(H(156,t.tag))};function u3(e,t){return Nh(e,t)}function Tv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,n,r){return new Tv(e,t,n,r)}function s0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mv(e){if(typeof e=="function")return s0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kc)return 11;if(e===Sc)return 14}return 2}function An(e,t){var n=e.alternate;return n===null?(n=Et(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ds(e,t,n,r,i,u){var s=2;if(r=e,typeof e=="function")s0(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case kr:return nr(n.children,i,u,t);case Dc:s=8,i|=8;break;case rl:return e=Et(12,n,t,i|2),e.elementType=rl,e.lanes=u,e;case il:return e=Et(13,n,t,i),e.elementType=il,e.lanes=u,e;case ul:return e=Et(19,n,t,i),e.elementType=ul,e.lanes=u,e;case ph:return ka(n,i,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fh:s=10;break e;case hh:s=9;break e;case kc:s=11;break e;case Sc:s=14;break e;case gn:s=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=Et(s,n,t,i),t.elementType=e,t.type=r,t.lanes=u,t}function nr(e,t,n,r){return e=Et(7,e,r,t),e.lanes=n,e}function ka(e,t,n,r){return e=Et(22,e,r,t),e.elementType=ph,e.lanes=n,e.stateNode={isHidden:!1},e}function bo(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function xo(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lv(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Za(0),this.expirationTimes=Za(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Za(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function a0(e,t,n,r,i,u,s,a,o){return e=new Lv(e,t,n,a,o),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Et(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hc(u),e}function Bv(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=ft})(ah);var l3,q4=ah.exports;l3=q4.createRoot,q4.hydrateRoot;/** * @remix-run/router v1.0.2 * * Copyright (c) Remix Software Inc. @@ -38,7 +38,7 @@ Error generating stack: `+u.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Hv(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:u=!1}=r,s=i.history,a=wn.Pop,o=null;function l(){a=wn.Pop,o&&o({action:a,location:g.location})}function d(v,b){a=wn.Push;let k=ql(g.location,v,b);n&&n(k,v);let O=G4(k),x=g.createHref(k);try{s.pushState(O,"",x)}catch{i.location.assign(x)}u&&o&&o({action:a,location:k})}function p(v,b){a=wn.Replace;let k=ql(g.location,v,b);n&&n(k,v);let O=G4(k),x=g.createHref(k);s.replaceState(O,"",x),u&&o&&o({action:a,location:k})}let g={get action(){return a},get location(){return e(i,s)},listen(v){if(o)throw new Error("A history only accepts one active listener");return i.addEventListener(X4,l),o=v,()=>{i.removeEventListener(X4,l),o=null}},createHref(v){return t(i,v)},push:d,replace:p,go(v){return s.go(v)}};return g}var Q4;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Q4||(Q4={}));function $v(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ri(t):t,i=d3(r.pathname||"/",n);if(i==null)return null;let u=c3(e);Kv(u);let s=null;for(let a=0;s==null&&a{let s={relativePath:i.path||"",caseSensitive:i.caseSensitive===!0,childrenIndex:u,route:i};s.relativePath.startsWith("/")&&(Ae(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let a=Tn([r,s.relativePath]),o=n.concat(s);i.children&&i.children.length>0&&(Ae(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),c3(i.children,t,o,a)),!(i.path==null&&!i.index)&&t.push({path:a,score:Zv(a,i.index),routesMeta:o})}),t}function Kv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:e1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Yv=/^:\w+$/,qv=3,Xv=2,Gv=1,Qv=10,Jv=-2,J4=e=>e==="*";function Zv(e,t){let n=e.split("/"),r=n.length;return n.some(J4)&&(r+=Jv),t&&(r+=Xv),n.filter(i=>!J4(i)).reduce((i,u)=>i+(Yv.test(u)?qv:u===""?Gv:Qv),r)}function e1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function t1(e,t){let{routesMeta:n}=e,r={},i="/",u=[];for(let s=0;s{if(d==="*"){let g=a[p]||"";s=u.slice(0,u.length-g.length).replace(/(.)\/+$/,"$1")}return l[d]=i1(a[p]||"",d),l},{}),pathname:u,pathnameBase:s,pattern:e}}function r1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),f3(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(s,a)=>(r.push(a),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function i1(e,t){try{return decodeURIComponent(e)}catch(n){return f3(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function d3(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function f3(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function u1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ri(e):e;return{pathname:n?n.startsWith("/")?n:s1(n,t):t,search:o1(r),hash:l1(i)}}function s1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Eo(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function h3(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ri(e):(i=Js({},e),Ae(!i.pathname||!i.pathname.includes("?"),Eo("?","pathname","search",i)),Ae(!i.pathname||!i.pathname.includes("#"),Eo("#","pathname","hash",i)),Ae(!i.search||!i.search.includes("#"),Eo("#","search","hash",i)));let u=e===""||i.pathname==="",s=u?"/":i.pathname,a;if(r||s==null)a=n;else{let p=t.length-1;if(s.startsWith("..")){let g=s.split("/");for(;g[0]==="..";)g.shift(),p-=1;i.pathname=g.join("/")}a=p>=0?t[p]:"/"}let o=u1(i,a),l=s&&s!=="/"&&s.endsWith("/"),d=(u||s===".")&&n.endsWith("/");return!o.pathname.endsWith("/")&&(l||d)&&(o.pathname+="/"),o}const Tn=e=>e.join("/").replace(/\/\/+/g,"/"),a1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),o1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,l1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class c1{constructor(t,n,r){this.status=t,this.statusText=n||"",this.data=r}}function d1(e){return e instanceof c1}var Fa={exports:{}},Na={};/** + */function Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Hv(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:u=!1}=r,s=i.history,a=_n.Pop,o=null;function l(){a=_n.Pop,o&&o({action:a,location:g.location})}function d(v,b){a=_n.Push;let k=ql(g.location,v,b);n&&n(k,v);let O=G4(k),x=g.createHref(k);try{s.pushState(O,"",x)}catch{i.location.assign(x)}u&&o&&o({action:a,location:k})}function p(v,b){a=_n.Replace;let k=ql(g.location,v,b);n&&n(k,v);let O=G4(k),x=g.createHref(k);s.replaceState(O,"",x),u&&o&&o({action:a,location:k})}let g={get action(){return a},get location(){return e(i,s)},listen(v){if(o)throw new Error("A history only accepts one active listener");return i.addEventListener(X4,l),o=v,()=>{i.removeEventListener(X4,l),o=null}},createHref(v){return t(i,v)},push:d,replace:p,go(v){return s.go(v)}};return g}var Q4;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Q4||(Q4={}));function $v(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ri(t):t,i=d3(r.pathname||"/",n);if(i==null)return null;let u=c3(e);Kv(u);let s=null;for(let a=0;s==null&&a{let s={relativePath:i.path||"",caseSensitive:i.caseSensitive===!0,childrenIndex:u,route:i};s.relativePath.startsWith("/")&&(Ae(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let a=Rn([r,s.relativePath]),o=n.concat(s);i.children&&i.children.length>0&&(Ae(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),c3(i.children,t,o,a)),!(i.path==null&&!i.index)&&t.push({path:a,score:Zv(a,i.index),routesMeta:o})}),t}function Kv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:e1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Yv=/^:\w+$/,qv=3,Xv=2,Gv=1,Qv=10,Jv=-2,J4=e=>e==="*";function Zv(e,t){let n=e.split("/"),r=n.length;return n.some(J4)&&(r+=Jv),t&&(r+=Xv),n.filter(i=>!J4(i)).reduce((i,u)=>i+(Yv.test(u)?qv:u===""?Gv:Qv),r)}function e1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function t1(e,t){let{routesMeta:n}=e,r={},i="/",u=[];for(let s=0;s{if(d==="*"){let g=a[p]||"";s=u.slice(0,u.length-g.length).replace(/(.)\/+$/,"$1")}return l[d]=i1(a[p]||"",d),l},{}),pathname:u,pathnameBase:s,pattern:e}}function r1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),f3(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(s,a)=>(r.push(a),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function i1(e,t){try{return decodeURIComponent(e)}catch(n){return f3(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function d3(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function f3(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function u1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ri(e):e;return{pathname:n?n.startsWith("/")?n:s1(n,t):t,search:o1(r),hash:l1(i)}}function s1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Eo(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function h3(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ri(e):(i=Js({},e),Ae(!i.pathname||!i.pathname.includes("?"),Eo("?","pathname","search",i)),Ae(!i.pathname||!i.pathname.includes("#"),Eo("#","pathname","hash",i)),Ae(!i.search||!i.search.includes("#"),Eo("#","search","hash",i)));let u=e===""||i.pathname==="",s=u?"/":i.pathname,a;if(r||s==null)a=n;else{let p=t.length-1;if(s.startsWith("..")){let g=s.split("/");for(;g[0]==="..";)g.shift(),p-=1;i.pathname=g.join("/")}a=p>=0?t[p]:"/"}let o=u1(i,a),l=s&&s!=="/"&&s.endsWith("/"),d=(u||s===".")&&n.endsWith("/");return!o.pathname.endsWith("/")&&(l||d)&&(o.pathname+="/"),o}const Rn=e=>e.join("/").replace(/\/\/+/g,"/"),a1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),o1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,l1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class c1{constructor(t,n,r){this.status=t,this.statusText=n||"",this.data=r}}function d1(e){return e instanceof c1}var Fa={exports:{}},Na={};/** * @license React * react-jsx-runtime.production.min.js * @@ -46,7 +46,7 @@ Error generating stack: `+u.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var f1=j.exports,h1=Symbol.for("react.element"),p1=Symbol.for("react.fragment"),m1=Object.prototype.hasOwnProperty,g1=f1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y1={key:!0,ref:!0,__self:!0,__source:!0};function p3(e,t,n){var r,i={},u=null,s=null;n!==void 0&&(u=""+n),t.key!==void 0&&(u=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)m1.call(t,r)&&!y1.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:h1,type:e,key:u,ref:s,props:i,_owner:g1.current}}Na.Fragment=p1;Na.jsx=p3;Na.jsxs=p3;(function(e){e.exports=Na})(Fa);const He=Fa.exports.Fragment,c=Fa.exports.jsx,S=Fa.exports.jsxs;/** + */var f1=j.exports,h1=Symbol.for("react.element"),p1=Symbol.for("react.fragment"),m1=Object.prototype.hasOwnProperty,g1=f1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y1={key:!0,ref:!0,__self:!0,__source:!0};function p3(e,t,n){var r,i={},u=null,s=null;n!==void 0&&(u=""+n),t.key!==void 0&&(u=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)m1.call(t,r)&&!y1.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:h1,type:e,key:u,ref:s,props:i,_owner:g1.current}}Na.Fragment=p1;Na.jsx=p3;Na.jsxs=p3;(function(e){e.exports=Na})(Fa);const He=Fa.exports.Fragment,c=Fa.exports.jsx,P=Fa.exports.jsxs;/** * React Router v6.4.2 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+u.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Gl(){return Gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.value=r,i.getSnapshot=t,_o(i)&&u({inst:i})},[e,r,t]),E1(()=>(_o(i)&&u({inst:i}),e(()=>{_o(i)&&u({inst:i})})),[e]),w1(r),r}function _o(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!b1(n,r)}catch{return!0}}function k1(e,t,n){return t()}const S1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",P1=!S1,C1=P1?k1:D1;"useSyncExternalStore"in tl&&(e=>e.useSyncExternalStore)(tl);const O1=j.exports.createContext(null),F1=j.exports.createContext(null),m3=j.exports.createContext(null),d0=j.exports.createContext(null),Aa=j.exports.createContext(null),ii=j.exports.createContext({outlet:null,matches:[]}),g3=j.exports.createContext(null);function N1(e,t){let{relative:n}=t===void 0?{}:t;Du()||Ae(!1);let{basename:r,navigator:i}=j.exports.useContext(d0),{hash:u,pathname:s,search:a}=v3(e,{relative:n}),o=s;return r!=="/"&&(o=s==="/"?r:Tn([r,s])),i.createHref({pathname:o,search:a,hash:u})}function Du(){return j.exports.useContext(Aa)!=null}function Ra(){return Du()||Ae(!1),j.exports.useContext(Aa).location}function y3(e){return e.filter((t,n)=>n===0||!t.route.index&&t.pathnameBase!==e[n-1].pathnameBase)}function A1(){Du()||Ae(!1);let{basename:e,navigator:t}=j.exports.useContext(d0),{matches:n}=j.exports.useContext(ii),{pathname:r}=Ra(),i=JSON.stringify(y3(n).map(a=>a.pathnameBase)),u=j.exports.useRef(!1);return j.exports.useEffect(()=>{u.current=!0}),j.exports.useCallback(function(a,o){if(o===void 0&&(o={}),!u.current)return;if(typeof a=="number"){t.go(a);return}let l=h3(a,JSON.parse(i),r,o.relative==="path");e!=="/"&&(l.pathname=l.pathname==="/"?e:Tn([e,l.pathname])),(o.replace?t.replace:t.push)(l,o.state,o)},[e,t,i,r])}function R1(){let{matches:e}=j.exports.useContext(ii),t=e[e.length-1];return t?t.params:{}}function v3(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=j.exports.useContext(ii),{pathname:i}=Ra(),u=JSON.stringify(y3(r).map(s=>s.pathnameBase));return j.exports.useMemo(()=>h3(e,JSON.parse(u),i,n==="path"),[e,u,i,n])}function T1(e,t){Du()||Ae(!1);let n=j.exports.useContext(m3),{matches:r}=j.exports.useContext(ii),i=r[r.length-1],u=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let a=Ra(),o;if(t){var l;let b=typeof t=="string"?ri(t):t;s==="/"||((l=b.pathname)==null?void 0:l.startsWith(s))||Ae(!1),o=b}else o=a;let d=o.pathname||"/",p=s==="/"?d:d.slice(s.length)||"/",g=$v(e,{pathname:p}),v=I1(g&&g.map(b=>Object.assign({},b,{params:Object.assign({},u,b.params),pathname:Tn([s,b.pathname]),pathnameBase:b.pathnameBase==="/"?s:Tn([s,b.pathnameBase])})),r,n||void 0);return t?c(Aa.Provider,{value:{location:Gl({pathname:"/",search:"",hash:"",state:null,key:"default"},o),navigationType:wn.Pop},children:v}):v}function M1(){let e=j1(),t=d1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},u={padding:"2px 4px",backgroundColor:r};return S(He,{children:[c("h2",{children:"Unhandled Thrown Error!"}),c("h3",{style:{fontStyle:"italic"},children:t}),n?c("pre",{style:i,children:n}):null,c("p",{children:"\u{1F4BF} Hey developer \u{1F44B}"}),S("p",{children:["You can provide a way better UX than this when your app throws errors by providing your own\xA0",c("code",{style:u,children:"errorElement"})," props on\xA0",c("code",{style:u,children:""})]})]})}class L1 extends j.exports.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?c(g3.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function B1(e){let{routeContext:t,match:n,children:r}=e,i=j.exports.useContext(O1);return i&&n.route.errorElement&&(i._deepestRenderedBoundaryId=n.route.id),c(ii.Provider,{value:t,children:r})}function I1(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n==null?void 0:n.errors;if(i!=null){let u=r.findIndex(s=>s.route.id&&(i==null?void 0:i[s.route.id]));u>=0||Ae(!1),r=r.slice(0,Math.min(r.length,u+1))}return r.reduceRight((u,s,a)=>{let o=s.route.id?i==null?void 0:i[s.route.id]:null,l=n?s.route.errorElement||c(M1,{}):null,d=()=>c(B1,{match:s,routeContext:{outlet:u,matches:t.concat(r.slice(0,a+1))},children:o?l:s.route.element!==void 0?s.route.element:u});return n&&(s.route.errorElement||a===0)?c(L1,{location:n.location,component:l,error:o,children:d()}):d()},null)}var Z4;(function(e){e.UseRevalidator="useRevalidator"})(Z4||(Z4={}));var Ql;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Ql||(Ql={}));function z1(e){let t=j.exports.useContext(m3);return t||Ae(!1),t}function j1(){var e;let t=j.exports.useContext(g3),n=z1(Ql.UseRouteError),r=j.exports.useContext(ii),i=r.matches[r.matches.length-1];return t||(r||Ae(!1),i.route.id||Ae(!1),(e=n.errors)==null?void 0:e[i.route.id])}function yt(e){Ae(!1)}function U1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=wn.Pop,navigator:u,static:s=!1}=e;Du()&&Ae(!1);let a=t.replace(/^\/*/,"/"),o=j.exports.useMemo(()=>({basename:a,navigator:u,static:s}),[a,u,s]);typeof r=="string"&&(r=ri(r));let{pathname:l="/",search:d="",hash:p="",state:g=null,key:v="default"}=r,b=j.exports.useMemo(()=>{let k=d3(l,a);return k==null?null:{pathname:k,search:d,hash:p,state:g,key:v}},[a,l,d,p,g,v]);return b==null?null:c(d0.Provider,{value:o,children:c(Aa.Provider,{children:n,value:{location:b,navigationType:i}})})}function V1(e){let{children:t,location:n}=e,r=j.exports.useContext(F1),i=r&&!t?r.router.routes:Jl(t);return T1(i,n)}var ed;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(ed||(ed={}));new Promise(()=>{});function Jl(e,t){t===void 0&&(t=[]);let n=[];return j.exports.Children.forEach(e,(r,i)=>{if(!j.exports.isValidElement(r))return;if(r.type===j.exports.Fragment){n.push.apply(n,Jl(r.props.children,t));return}r.type!==yt&&Ae(!1),!r.props.index||!r.props.children||Ae(!1);let u=[...t,i],s={id:r.props.id||u.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(s.children=Jl(r.props.children,u)),n.push(s)}),n}/** + */function Gl(){return Gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.value=r,i.getSnapshot=t,_o(i)&&u({inst:i})},[e,r,t]),E1(()=>(_o(i)&&u({inst:i}),e(()=>{_o(i)&&u({inst:i})})),[e]),w1(r),r}function _o(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!b1(n,r)}catch{return!0}}function k1(e,t,n){return t()}const S1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",P1=!S1,C1=P1?k1:D1;"useSyncExternalStore"in tl&&(e=>e.useSyncExternalStore)(tl);const O1=j.exports.createContext(null),F1=j.exports.createContext(null),m3=j.exports.createContext(null),d0=j.exports.createContext(null),Aa=j.exports.createContext(null),ii=j.exports.createContext({outlet:null,matches:[]}),g3=j.exports.createContext(null);function N1(e,t){let{relative:n}=t===void 0?{}:t;Du()||Ae(!1);let{basename:r,navigator:i}=j.exports.useContext(d0),{hash:u,pathname:s,search:a}=v3(e,{relative:n}),o=s;return r!=="/"&&(o=s==="/"?r:Rn([r,s])),i.createHref({pathname:o,search:a,hash:u})}function Du(){return j.exports.useContext(Aa)!=null}function Ra(){return Du()||Ae(!1),j.exports.useContext(Aa).location}function y3(e){return e.filter((t,n)=>n===0||!t.route.index&&t.pathnameBase!==e[n-1].pathnameBase)}function A1(){Du()||Ae(!1);let{basename:e,navigator:t}=j.exports.useContext(d0),{matches:n}=j.exports.useContext(ii),{pathname:r}=Ra(),i=JSON.stringify(y3(n).map(a=>a.pathnameBase)),u=j.exports.useRef(!1);return j.exports.useEffect(()=>{u.current=!0}),j.exports.useCallback(function(a,o){if(o===void 0&&(o={}),!u.current)return;if(typeof a=="number"){t.go(a);return}let l=h3(a,JSON.parse(i),r,o.relative==="path");e!=="/"&&(l.pathname=l.pathname==="/"?e:Rn([e,l.pathname])),(o.replace?t.replace:t.push)(l,o.state,o)},[e,t,i,r])}function R1(){let{matches:e}=j.exports.useContext(ii),t=e[e.length-1];return t?t.params:{}}function v3(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=j.exports.useContext(ii),{pathname:i}=Ra(),u=JSON.stringify(y3(r).map(s=>s.pathnameBase));return j.exports.useMemo(()=>h3(e,JSON.parse(u),i,n==="path"),[e,u,i,n])}function T1(e,t){Du()||Ae(!1);let n=j.exports.useContext(m3),{matches:r}=j.exports.useContext(ii),i=r[r.length-1],u=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let a=Ra(),o;if(t){var l;let b=typeof t=="string"?ri(t):t;s==="/"||((l=b.pathname)==null?void 0:l.startsWith(s))||Ae(!1),o=b}else o=a;let d=o.pathname||"/",p=s==="/"?d:d.slice(s.length)||"/",g=$v(e,{pathname:p}),v=I1(g&&g.map(b=>Object.assign({},b,{params:Object.assign({},u,b.params),pathname:Rn([s,b.pathname]),pathnameBase:b.pathnameBase==="/"?s:Rn([s,b.pathnameBase])})),r,n||void 0);return t?c(Aa.Provider,{value:{location:Gl({pathname:"/",search:"",hash:"",state:null,key:"default"},o),navigationType:_n.Pop},children:v}):v}function M1(){let e=j1(),t=d1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},u={padding:"2px 4px",backgroundColor:r};return P(He,{children:[c("h2",{children:"Unhandled Thrown Error!"}),c("h3",{style:{fontStyle:"italic"},children:t}),n?c("pre",{style:i,children:n}):null,c("p",{children:"\u{1F4BF} Hey developer \u{1F44B}"}),P("p",{children:["You can provide a way better UX than this when your app throws errors by providing your own\xA0",c("code",{style:u,children:"errorElement"})," props on\xA0",c("code",{style:u,children:""})]})]})}class L1 extends j.exports.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?c(g3.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function B1(e){let{routeContext:t,match:n,children:r}=e,i=j.exports.useContext(O1);return i&&n.route.errorElement&&(i._deepestRenderedBoundaryId=n.route.id),c(ii.Provider,{value:t,children:r})}function I1(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n==null?void 0:n.errors;if(i!=null){let u=r.findIndex(s=>s.route.id&&(i==null?void 0:i[s.route.id]));u>=0||Ae(!1),r=r.slice(0,Math.min(r.length,u+1))}return r.reduceRight((u,s,a)=>{let o=s.route.id?i==null?void 0:i[s.route.id]:null,l=n?s.route.errorElement||c(M1,{}):null,d=()=>c(B1,{match:s,routeContext:{outlet:u,matches:t.concat(r.slice(0,a+1))},children:o?l:s.route.element!==void 0?s.route.element:u});return n&&(s.route.errorElement||a===0)?c(L1,{location:n.location,component:l,error:o,children:d()}):d()},null)}var Z4;(function(e){e.UseRevalidator="useRevalidator"})(Z4||(Z4={}));var Ql;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Ql||(Ql={}));function z1(e){let t=j.exports.useContext(m3);return t||Ae(!1),t}function j1(){var e;let t=j.exports.useContext(g3),n=z1(Ql.UseRouteError),r=j.exports.useContext(ii),i=r.matches[r.matches.length-1];return t||(r||Ae(!1),i.route.id||Ae(!1),(e=n.errors)==null?void 0:e[i.route.id])}function gt(e){Ae(!1)}function U1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=_n.Pop,navigator:u,static:s=!1}=e;Du()&&Ae(!1);let a=t.replace(/^\/*/,"/"),o=j.exports.useMemo(()=>({basename:a,navigator:u,static:s}),[a,u,s]);typeof r=="string"&&(r=ri(r));let{pathname:l="/",search:d="",hash:p="",state:g=null,key:v="default"}=r,b=j.exports.useMemo(()=>{let k=d3(l,a);return k==null?null:{pathname:k,search:d,hash:p,state:g,key:v}},[a,l,d,p,g,v]);return b==null?null:c(d0.Provider,{value:o,children:c(Aa.Provider,{children:n,value:{location:b,navigationType:i}})})}function V1(e){let{children:t,location:n}=e,r=j.exports.useContext(F1),i=r&&!t?r.router.routes:Jl(t);return T1(i,n)}var ed;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(ed||(ed={}));new Promise(()=>{});function Jl(e,t){t===void 0&&(t=[]);let n=[];return j.exports.Children.forEach(e,(r,i)=>{if(!j.exports.isValidElement(r))return;if(r.type===j.exports.Fragment){n.push.apply(n,Jl(r.props.children,t));return}r.type!==gt&&Ae(!1),!r.props.index||!r.props.children||Ae(!1);let u=[...t,i],s={id:r.props.id||u.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(s.children=Jl(r.props.children,u)),n.push(s)}),n}/** * React Router DOM v6.4.2 * * Copyright (c) Remix Software Inc. @@ -64,32 +64,32 @@ Error generating stack: `+u.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function W1(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,u;for(u=0;u=0)&&(n[i]=e[i]);return n}function H1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $1(e,t){return e.button===0&&(!t||t==="_self")&&!H1(e)}const K1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Y1(e){let{basename:t,children:n,window:r}=e,i=j.exports.useRef();i.current==null&&(i.current=Vv({window:r,v5Compat:!0}));let u=i.current,[s,a]=j.exports.useState({action:u.action,location:u.location});return j.exports.useLayoutEffect(()=>u.listen(a),[u]),c(U1,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:u})}const K=j.exports.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:u,replace:s,state:a,target:o,to:l,preventScrollReset:d}=t,p=W1(t,K1),g=N1(l,{relative:i}),v=q1(l,{replace:s,state:a,target:o,preventScrollReset:d,relative:i});function b(k){r&&r(k),k.defaultPrevented||v(k)}return c("a",{...p,href:g,onClick:u?r:b,ref:n,target:o})});var td;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(td||(td={}));var nd;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(nd||(nd={}));function q1(e,t){let{target:n,replace:r,state:i,preventScrollReset:u,relative:s}=t===void 0?{}:t,a=A1(),o=Ra(),l=v3(e,{relative:s});return j.exports.useCallback(d=>{if($1(d,n)){d.preventDefault();let p=r!==void 0?r:Xl(o)===Xl(l);a(e,{replace:p,state:i,preventScrollReset:u,relative:s})}},[o,a,l,r,i,n,e,u,s])}const rd="/assets/logo.fe8c8333.svg",X1="/assets/burger.2c869322.svg",G1=({lang:e,setLang:t})=>{const[n,r]=j.exports.useState(!1),i=()=>{r(!n)};return S("header",{className:"header",children:[c("nav",{className:"nav-top",children:c("div",{className:"container",children:S("div",{className:"nav-top-wrapper",children:[c(K,{to:"/",className:"logo",children:c("img",{src:rd,alt:"logo"})}),e==="ru"?S("ul",{className:"nav-top-list",children:[c("li",{className:"nav-top-list-item",children:c(K,{to:"/gtsbt",children:"\u0413\u0422\u0421\u0411\u0422"})}),c("li",{className:"nav-top-list-item",children:c("a",{href:`https://tmex.gov.tm/${e}`,target:"_blank",children:"\u041A\u043E\u0442\u0438\u0440\u043E\u0432\u043A\u0438"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/norm",children:"\u041D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0431\u0430\u0437\u0430"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/news",children:"\u041D\u043E\u0432\u043E\u0441\u0442\u0438"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/multimedia",children:"\u041C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/contacts",children:"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u044B"})})]}):null,e==="tm"?S("ul",{className:"nav-top-list",children:[c("li",{className:"nav-top-list-item",children:c(K,{to:"/gtsbt",children:"TDH\xC7MB"})}),c("li",{className:"nav-top-list-item",children:c("a",{href:`https://tmex.gov.tm/${e}`,target:"_blank",children:"Kotirowkalar"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/norm",children:"Kanun\xE7ylyk"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/news",children:"Habarlar"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/multimedia",children:"Multimedi\xFDa"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/contacts",children:"Salgymyz"})})]}):null,e==="en"?S("ul",{className:"nav-top-list",children:[c("li",{className:"nav-top-list-item",children:c(K,{to:"/gtsbt",children:"SCRMET"})}),c("li",{className:"nav-top-list-item",children:c("a",{href:`https://tmex.gov.tm/${e}`,target:"_blank",children:"Quotations"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/norm",children:"Normative base"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/news",children:"News"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/multimedia",children:"Multimedia"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/contacts",children:"Contacts"})})]}):null,e==="ru"?c("div",{className:"sign-in",children:c("a",{href:"https://shahsyotag.exchange.gov.tm/login",target:"_blank",className:"sign-in-item",children:"\u041B\u0438\u0447\u043D\u044B\u0439 \u043A\u0430\u0431\u0438\u043D\u0435\u0442"})}):null,e==="tm"?c("div",{className:"sign-in",children:c("a",{href:"https://shahsyotag.exchange.gov.tm/login",target:"_blank",className:"sign-in-item",children:"\u015Eahsy otagy"})}):null,e==="en"?c("div",{className:"sign-in",children:c("a",{href:"https://shahsyotag.exchange.gov.tm/login",target:"_blank",className:"sign-in-item",children:"My account"})}):null]})})}),c("nav",{className:"nav-bottom",children:c("div",{className:"container",children:S("div",{className:"nav-bottom-wrapper",children:[e==="ru"?S("ul",{className:"nav-bottom-list",children:[c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/trade",children:"\u0411\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/fin",children:"\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u044B\u0439 \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/register",children:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/tarif",children:"\u0422\u0430\u0440\u0438\u0444\u044B \u0438 \u0441\u0431\u043E\u0440\u044B"})})]}):null,e==="tm"?S("ul",{className:"nav-bottom-list",children:[c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/trade",children:"Bir\u017Ea s\xF6wdalary"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/fin",children:"Mali\xFDe g\xF6zeg\xE7iligi"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/register",children:"\u015Eertnamalary hasaba almak"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/tarif",children:"Nyrhlar we \xFDygymlar"})})]}):null,e==="en"?S("ul",{className:"nav-bottom-list",children:[c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/trade",children:"Exchange auctions"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/fin",children:"Financial monitoring"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/register",children:"Contracts registration"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/tarif",children:"Tariffs and fees"})})]}):null,S("div",{className:"nav-lang-wrapper",children:[c("button",{className:`nav-lang-item ${e==="en"?"lang-active":""}`,onClick:()=>t("en"),children:"EN"}),c("button",{className:`nav-lang-item ${e==="tm"?"lang-active":""}`,onClick:()=>t("tm"),children:"TK"}),c("button",{className:`nav-lang-item ${e==="ru"?"lang-active":""}`,onClick:()=>t("ru"),children:"RU"})]})]})})}),c("div",{className:"mobile-nav",children:c("div",{className:"container",children:S("div",{className:"mobile-nav-wrapper",children:[c(K,{to:"/",className:"logo",children:c("img",{src:rd,alt:"logo"})}),c("div",{className:"burger",onClick:i,children:c("img",{src:X1})})]})})}),c("nav",{className:`mobile-nav-content ${n?"active":null}`,children:S("div",{className:"mobile-nav-content-wrapper",children:[S("ul",{className:"mobile-nav-list",children:[c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/gtsbt",children:"\u0413\u0422\u0421\u0411\u0422"})}),c("li",{className:"mobile-nav-list-item",children:c("a",{href:`https://tmex.gov.tm/${e}`,target:"_blank",children:"\u041A\u0430\u0442\u0438\u0440\u043E\u0432\u043A\u0438"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/norm",children:"\u041D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0431\u0430\u0437\u0430"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/",children:"\u041D\u043E\u0432\u043E\u0441\u0442\u0438"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/",children:"\u041C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u044F"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/",children:"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u044B"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/trade",children:"\u0411\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/fin",children:"\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u044B\u0439 \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/register",children:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/trade",children:"\u0422\u0430\u0440\u0438\u0444\u044B \u0438 \u0441\u0431\u043E\u0440\u044B"})})]}),S("div",{className:"nav-lang-wrapper-mobile",children:[c("button",{className:`nav-lang-item ${e==="en"?"lang-active":""}`,onClick:()=>t("en"),children:"EN"}),c("button",{className:`nav-lang-item ${e==="tm"?"lang-active":""}`,onClick:()=>t("tm"),children:"TK"}),c("button",{className:`nav-lang-item ${e==="ru"?"lang-active":""}`,onClick:()=>t("ru"),children:"RU"})]})]})})]})},ce=({title:e})=>c("h2",{className:"section-title",children:e}),Q1=({lang:e})=>S("footer",{className:"footer",children:[c("div",{className:"footer-top",children:c("div",{className:"container",children:S("div",{className:"footer-top-wrapper",children:[c(ce,{title:` - ${e==="ru"?"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u044B":e==="tm"?"Salgymyz":e==="en"?"Contacts":null}`}),S("div",{className:"footer-top-content",children:[S("div",{className:"footer-top-item",children:[c("h3",{className:"footer-top-item-title",children:e==="ru"?"\u0422\u0435\u043B\u0435\u0444\u043E\u043D:":e==="tm"?"Telefon belgisi":e==="en"?"Phone":null}),c("h4",{className:"footer-top-item-text",children:"+993 12 44-60-15"})]}),S("div",{className:"footer-top-item",children:[c("h3",{className:"footer-top-item-title",children:e==="ru"?"\u0412\u0440\u0435\u043C\u044F \u0440\u0430\u0431\u043E\u0442\u044B:":e==="tm"?"I\u015F wagty":e==="en"?"Working time":null}),c("h4",{className:"footer-top-item-text",children:e==="ru"?"\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A - \u043F\u044F\u0442\u043D\u0438\u0446\u0430: 9:00 - 18:00":e==="tm"?"Du\u015Fenbe - anna: 9:00 - 18:00":e==="en"?"Monday - friday: 9:00 - 18:00":null})]}),S("div",{className:"footer-top-item",children:[c("h3",{className:"footer-top-item-title",children:"Email:"}),c(K,{to:"/",className:"footer-top-item-text",children:"info@exchange.gov.tm"}),c(K,{to:"/",className:"footer-top-item-text",children:"broker@exchange.gov.tm"})]}),S("div",{className:"footer-top-item",children:[c("h3",{className:"footer-top-item-title",children:e==="ru"?"\u041F\u0440\u0438\u0435\u043C\u043D\u044B\u0435 \u0434\u043D\u0438:":e==="tm"?"Kabul edi\u015F g\xFCnleri":e==="en"?"Reception days":null}),c("h4",{className:"footer-top-item-text",children:e==="ru"?"\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A - \u0447\u0435\u0442\u0432\u0435\u0440\u0433: 9:00 - 17:00":e==="tm"?"Du\u015Fenbe - pen\u015Fenbe: 9:00 - 17:00":e==="en"?"Monday - thursday: 9:00 - 17:00":null}),c("h4",{className:"footer-top-item-text",children:e==="ru"?"\u041F\u044F\u0442\u043D\u0438\u0446\u0430: 9:00 - 13:00":e==="tm"?"Anna: 9:00 - 17:00":e==="en"?"Friday: 9:00 - 17:00":null})]}),S("div",{className:"footer-top-item",children:[c("h3",{className:"footer-top-item-title",children:e==="ru"?"\u0410\u0434\u0440\u0435\u0441:":e==="tm"?"Salgy":e==="en"?"Adress":null}),c("h4",{className:"footer-top-item-text",children:e==="ru"?"744000, \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D \u0433. \u0410\u0448\u0445\u0430\u0431\u0430\u0442, \u0410\u0440\u0447\u0430\u0431\u0438\u043B\u044C \u0448\u0430\u0435\u043B\u044B 52":e==="tm"?"744000, T\xFCrkmenistan \u015F. A\u015Fgabat, Ar\xE7abil \u015Fa\xFDoly 52":e==="en"?"744000, Turkmenistan c. Ashgabat, Archabil shayoly 52":null})]})]})]})})}),c("div",{className:"footer-bottom",children:c("div",{className:"container",children:c("div",{className:"footer-bottom-wrapper",children:S("ul",{className:"footer-nav-list",children:[c("li",{className:"footer-nav-list-item",children:c(K,{to:"/gtsbt",className:"footer-nav-list-link",children:e==="ru"?"\u0413\u0422\u0421\u0411\u0422":e==="tm"?"TDH\xC7MB":e==="en"?"SCRMET":null})}),c("li",{className:"footer-nav-list-item",children:c(K,{to:"/norm",className:"footer-nav-list-link",children:e==="ru"?"\u041D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0431\u0430\u0437\u0430":e==="tm"?"Kanun\xE7ylyk":e==="en"?"Normative base":null})}),c("li",{className:"footer-nav-list-item",children:c(K,{to:"/trade",className:"footer-nav-list-link",children:e==="ru"?"\u0411\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438":e==="tm"?"Bir\u017Ea s\xF6wdalary":e==="en"?"Exchange auctions":null})}),c("li",{className:"footer-nav-list-item",children:c(K,{to:"/multimedia",className:"footer-nav-list-link",children:e==="ru"?"\u041C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430":e==="tm"?"Multimedi\xFDa":e==="en"?"Multimedia":null})}),c("li",{className:"footer-nav-list-item",children:c(K,{to:"/fin",className:"footer-nav-list-link",children:e==="ru"?"\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u044B\u0439 \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433":e==="tm"?"Mali\xFDe g\xF6zeg\xE7iligi":e==="en"?"Financial monitoring":null})}),c("li",{className:"footer-nav-list-item",children:c(K,{to:"/news",className:"footer-nav-list-link",children:e==="ru"?"\u041D\u043E\u0432\u043E\u0441\u0442\u0438":e==="tm"?"Habarlar":e==="en"?"News":null})}),c("li",{className:"footer-nav-list-item",children:c(K,{to:"/register",className:"footer-nav-list-link",children:e==="ru"?"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432":e==="tm"?"\u015Eertnamalary hasaba almak":e==="en"?"Contracts registration":null})}),c("li",{className:"footer-nav-list-item",children:c(K,{to:"/contacts",className:"footer-nav-list-link",children:e==="ru"?"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u044B":e==="tm"?"Salgymyz":e==="en"?"Contacts":null})})]})})})})]}),J1=({lang:e})=>c("section",{className:"hero",children:c("div",{className:"container",children:c("div",{className:"hero-wrapper",children:S("div",{className:"buttons-wrapper",children:[c("a",{href:`https://tmex.gov.tm/${e}`,target:"_blank",className:"hero-button",children:e==="ru"?"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0442\u043E\u0440\u0433\u043E\u0432\u0443\u044E \u043F\u043B\u043E\u0449\u0430\u0434\u043A\u0443":e==="tm"?"S\xF6wda me\xFDdan\xE7a ge\xE7mek":e==="en"?"Go to the marketplace":null}),c("a",{href:"https://shahsyotag.exchange.gov.tm/login",className:"hero-button",children:e==="ru"?"\u041F\u043E\u0434\u0430\u0442\u044C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u043E\u043D\u043B\u0430\u0439\u043D":e==="tm"?"Resminamalary onla\xFDn tab\u015Fyrmak":e==="en"?"Apply documents online":null})]})})})}),id=e=>j.exports.createElement("svg",{width:17,height:8,viewBox:"0 0 17 8",fill:"",xmlns:"http://www.w3.org/2000/svg",role:"img",...e},j.exports.createElement("path",{d:"M16.3536 4.35355C16.5488 4.15829 16.5488 3.84171 16.3536 3.64645L13.1716 0.464466C12.9763 0.269204 12.6597 0.269204 12.4645 0.464466C12.2692 0.659728 12.2692 0.976311 12.4645 1.17157L15.2929 4L12.4645 6.82843C12.2692 7.02369 12.2692 7.34027 12.4645 7.53553C12.6597 7.7308 12.9763 7.7308 13.1716 7.53553L16.3536 4.35355ZM0 4.5H16V3.5H0V4.5Z",fill:""})),at="/assets/arrow.a0470258.svg",b3=({title:e,shortDes:t,date:n,image:r,setPostId:i,id:u,lang:s})=>S("div",{className:"news-post",children:[c("div",{className:"news-post-img",children:c("img",{src:r,alt:"news-image"})}),S("div",{className:"news-post-content",children:[c("h3",{className:"news-post-date",children:n}),c("h2",{className:"news-post-title",children:e}),c("p",{className:"news-post-text",children:t})]}),S(K,{className:"news-post-link",to:`/post/${u}`,onClick:()=>i(u),children:[c("img",{src:at,alt:"arrow"}),c("h3",{children:s==="ru"?"\u0427\u0438\u0442\u0430\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E":s==="tm"?"Doly okamak":s==="en"?"Read all":null})]})]}),Z1=e=>j.exports.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...e},j.exports.createElement("g",{clipPath:"url(#clip0_555_638)"},j.exports.createElement("path",{d:"M30 32H18C17.4696 32 16.9609 32.2107 16.5858 32.5858C16.2107 32.9609 16 33.4696 16 34C16 34.5304 16.2107 35.0391 16.5858 35.4142C16.9609 35.7893 17.4696 36 18 36H30C30.5304 36 31.0391 35.7893 31.4142 35.4142C31.7893 35.0391 32 34.5304 32 34C32 33.4696 31.7893 32.9609 31.4142 32.5858C31.0391 32.2107 30.5304 32 30 32Z",fill:""}),j.exports.createElement("path",{d:"M18 28H24C24.5304 28 25.0391 27.7893 25.4142 27.4142C25.7893 27.0391 26 26.5304 26 26C26 25.4696 25.7893 24.9609 25.4142 24.5858C25.0391 24.2107 24.5304 24 24 24H18C17.4696 24 16.9609 24.2107 16.5858 24.5858C16.2107 24.9609 16 25.4696 16 26C16 26.5304 16.2107 27.0391 16.5858 27.4142C16.9609 27.7893 17.4696 28 18 28Z",fill:""}),j.exports.createElement("path",{d:"M39.48 16.6599L28.6 4.65987C28.413 4.45269 28.1847 4.28693 27.9298 4.17326C27.6749 4.05959 27.3991 4.00053 27.12 3.99987H13.12C12.4555 3.99195 11.7959 4.11499 11.179 4.36198C10.5621 4.60898 9.99981 4.97508 9.52436 5.43938C9.04892 5.90368 8.66959 6.45709 8.40804 7.068C8.14648 7.67892 8.00783 8.33537 8 8.99987V38.9999C8.00783 39.6644 8.14648 40.3208 8.40804 40.9317C8.66959 41.5426 9.04892 42.0961 9.52436 42.5604C9.99981 43.0247 10.5621 43.3908 11.179 43.6378C11.7959 43.8848 12.4555 44.0078 13.12 43.9999H34.88C35.5445 44.0078 36.2041 43.8848 36.821 43.6378C37.4379 43.3908 38.0002 43.0247 38.4756 42.5604C38.9511 42.0961 39.3304 41.5426 39.592 40.9317C39.8535 40.3208 39.9922 39.6644 40 38.9999V17.9999C39.9987 17.5042 39.8134 17.0267 39.48 16.6599ZM28 9.99987L33.48 15.9999H29.48C29.2706 15.9872 29.0657 15.933 28.8775 15.8403C28.6892 15.7477 28.5213 15.6185 28.3835 15.4602C28.2458 15.3019 28.1409 15.1178 28.075 14.9186C28.0092 14.7194 27.9837 14.5091 28 14.2999V9.99987ZM34.88 39.9999H13.12C12.9807 40.008 12.8413 39.9885 12.7095 39.9426C12.5778 39.8967 12.4565 39.8253 12.3524 39.7324C12.2484 39.6395 12.1637 39.5269 12.1032 39.4012C12.0427 39.2755 12.0077 39.1391 12 38.9999V8.99987C12.0077 8.8606 12.0427 8.7242 12.1032 8.5985C12.1637 8.47281 12.2484 8.36029 12.3524 8.26739C12.4565 8.17449 12.5778 8.10303 12.7095 8.05713C12.8413 8.01122 12.9807 7.99177 13.12 7.99987H24V14.2999C23.9677 15.7731 24.5195 17.1993 25.5349 18.2672C26.5504 19.3351 27.947 19.958 29.42 19.9999H36V38.9999C35.9923 39.1391 35.9573 39.2755 35.8968 39.4012C35.8363 39.5269 35.7516 39.6395 35.6476 39.7324C35.5435 39.8253 35.4222 39.8967 35.2905 39.9426C35.1587 39.9885 35.0193 40.008 34.88 39.9999Z",fill:""})),j.exports.createElement("defs",null,j.exports.createElement("clipPath",{id:"clip0_555_638"},j.exports.createElement("rect",{width:48,height:48,fill:"white"})))),Ta=({title:e,link:t})=>S("a",{href:t,download:!0,className:"document-link",children:[c("div",{className:"document-img",children:c(Z1,{})}),c("h3",{className:"document-title",children:e})]});var x3={},E3={},ae={},eb=function(t,n,r){var i=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},u.type=n.type||"text/javascript",u.charset=n.charset||"utf8",u.async="async"in n?!!n.async:!0,u.src=t,n.attrs&&tb(u,n.attrs),n.text&&(u.text=""+n.text);var s="onload"in u?ud:nb;s(u,r),u.onload||ud(u,r),i.appendChild(u)};function tb(e,t){for(var n in t)e.setAttribute(n,t[n])}function ud(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function nb(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var rb=function(t){return ib(t)&&!ub(t)};function ib(e){return!!e&&typeof e=="object"}function ub(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ob(e)}var sb=typeof Symbol=="function"&&Symbol.for,ab=sb?Symbol.for("react.element"):60103;function ob(e){return e.$$typeof===ab}function lb(e){return Array.isArray(e)?[]:{}}function hu(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Gr(lb(e),e,t):e}function cb(e,t,n){return e.concat(t).map(function(r){return hu(r,n)})}function db(e,t){if(!t.customMerge)return Gr;var n=t.customMerge(e);return typeof n=="function"?n:Gr}function fb(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}function sd(e){return Object.keys(e).concat(fb(e))}function _3(e,t){try{return t in e}catch{return!1}}function hb(e,t){return _3(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function pb(e,t,n){var r={};return n.isMergeableObject(e)&&sd(e).forEach(function(i){r[i]=hu(e[i],n)}),sd(t).forEach(function(i){hb(e,i)||(_3(e,i)&&n.isMergeableObject(t[i])?r[i]=db(i,n)(e[i],t[i],n):r[i]=hu(t[i],n))}),r}function Gr(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||cb,n.isMergeableObject=n.isMergeableObject||rb,n.cloneUnlessOtherwiseSpecified=hu;var r=Array.isArray(t),i=Array.isArray(e),u=r===i;return u?r?n.arrayMerge(e,t,n):pb(e,t,n):hu(t,n)}Gr.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Gr(r,i,n)},{})};var mb=Gr,w3=mb;Object.defineProperty(ae,"__esModule",{value:!0});ae.parseStartTime=Pb;ae.parseEndTime=Cb;ae.randomString=Ob;ae.queryString=Fb;ae.getSDK=Nb;ae.getConfig=Ab;ae.omit=Rb;ae.callPlayer=Tb;ae.isMediaStream=Mb;ae.isBlobUrl=Lb;ae.supportsWebKitPresentationMode=Bb;var gb=D3(eb),yb=D3(w3);function D3(e){return e&&e.__esModule?e:{default:e}}function vb(e,t){return _b(e)||Eb(e,t)||xb(e,t)||bb()}function bb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. + */function W1(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,u;for(u=0;u=0)&&(n[i]=e[i]);return n}function H1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $1(e,t){return e.button===0&&(!t||t==="_self")&&!H1(e)}const K1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Y1(e){let{basename:t,children:n,window:r}=e,i=j.exports.useRef();i.current==null&&(i.current=Vv({window:r,v5Compat:!0}));let u=i.current,[s,a]=j.exports.useState({action:u.action,location:u.location});return j.exports.useLayoutEffect(()=>u.listen(a),[u]),c(U1,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:u})}const K=j.exports.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:u,replace:s,state:a,target:o,to:l,preventScrollReset:d}=t,p=W1(t,K1),g=N1(l,{relative:i}),v=q1(l,{replace:s,state:a,target:o,preventScrollReset:d,relative:i});function b(k){r&&r(k),k.defaultPrevented||v(k)}return c("a",{...p,href:g,onClick:u?r:b,ref:n,target:o})});var td;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(td||(td={}));var nd;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(nd||(nd={}));function q1(e,t){let{target:n,replace:r,state:i,preventScrollReset:u,relative:s}=t===void 0?{}:t,a=A1(),o=Ra(),l=v3(e,{relative:s});return j.exports.useCallback(d=>{if($1(d,n)){d.preventDefault();let p=r!==void 0?r:Xl(o)===Xl(l);a(e,{replace:p,state:i,preventScrollReset:u,relative:s})}},[o,a,l,r,i,n,e,u,s])}const rd="/assets/logo.fe8c8333.svg",X1="/assets/burger.2c869322.svg",G1=({lang:e,setLang:t})=>{const[n,r]=j.exports.useState(!1),i=()=>{r(!n)};return P("header",{className:"header",children:[c("nav",{className:"nav-top",children:c("div",{className:"container",children:P("div",{className:"nav-top-wrapper",children:[c(K,{to:"/",className:"logo",children:c("img",{src:rd,alt:"logo"})}),e==="ru"?P("ul",{className:"nav-top-list",children:[c("li",{className:"nav-top-list-item",children:c(K,{to:"/gtsbt",children:"\u0413\u0422\u0421\u0411\u0422"})}),c("li",{className:"nav-top-list-item",children:c("a",{href:`https://tmex.gov.tm/${e}`,target:"_blank",children:"\u041A\u043E\u0442\u0438\u0440\u043E\u0432\u043A\u0438"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/norm",children:"\u041D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0431\u0430\u0437\u0430"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/news",children:"\u041D\u043E\u0432\u043E\u0441\u0442\u0438"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/multimedia",children:"\u041C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/contacts",children:"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u044B"})})]}):null,e==="tm"?P("ul",{className:"nav-top-list",children:[c("li",{className:"nav-top-list-item",children:c(K,{to:"/gtsbt",children:"TDH\xC7MB"})}),c("li",{className:"nav-top-list-item",children:c("a",{href:`https://tmex.gov.tm/${e}`,target:"_blank",children:"Kotirowkalar"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/norm",children:"Kanun\xE7ylyk"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/news",children:"Habarlar"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/multimedia",children:"Multimedi\xFDa"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/contacts",children:"Salgymyz"})})]}):null,e==="en"?P("ul",{className:"nav-top-list",children:[c("li",{className:"nav-top-list-item",children:c(K,{to:"/gtsbt",children:"SCRMET"})}),c("li",{className:"nav-top-list-item",children:c("a",{href:`https://tmex.gov.tm/${e}`,target:"_blank",children:"Quotations"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/norm",children:"Normative base"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/news",children:"News"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/multimedia",children:"Multimedia"})}),c("li",{className:"nav-top-list-item",children:c(K,{to:"/contacts",children:"Contacts"})})]}):null,e==="ru"?c("div",{className:"sign-in",children:c("a",{href:"https://shahsyotag.exchange.gov.tm/login",target:"_blank",className:"sign-in-item",children:"\u041B\u0438\u0447\u043D\u044B\u0439 \u043A\u0430\u0431\u0438\u043D\u0435\u0442"})}):null,e==="tm"?c("div",{className:"sign-in",children:c("a",{href:"https://shahsyotag.exchange.gov.tm/login",target:"_blank",className:"sign-in-item",children:"\u015Eahsy otagy"})}):null,e==="en"?c("div",{className:"sign-in",children:c("a",{href:"https://shahsyotag.exchange.gov.tm/login",target:"_blank",className:"sign-in-item",children:"My account"})}):null]})})}),c("nav",{className:"nav-bottom",children:c("div",{className:"container",children:P("div",{className:"nav-bottom-wrapper",children:[e==="ru"?P("ul",{className:"nav-bottom-list",children:[c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/trade",children:"\u0411\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/fin",children:"\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u044B\u0439 \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/register",children:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/tarif",children:"\u0422\u0430\u0440\u0438\u0444\u044B \u0438 \u0441\u0431\u043E\u0440\u044B"})})]}):null,e==="tm"?P("ul",{className:"nav-bottom-list",children:[c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/trade",children:"Bir\u017Ea s\xF6wdalary"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/fin",children:"Mali\xFDe g\xF6zeg\xE7iligi"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/register",children:"\u015Eertnamalary hasaba almak"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/tarif",children:"Nyrhlar we \xFDygymlar"})})]}):null,e==="en"?P("ul",{className:"nav-bottom-list",children:[c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/trade",children:"Exchange auctions"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/fin",children:"Financial monitoring"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/register",children:"Contracts registration"})}),c("li",{className:"nav-bottom-list-item",children:c(K,{to:"/tarif",children:"Tariffs and fees"})})]}):null,P("div",{className:"nav-lang-wrapper",children:[c("button",{className:`nav-lang-item ${e==="en"?"lang-active":""}`,onClick:()=>t("en"),children:"EN"}),c("button",{className:`nav-lang-item ${e==="tm"?"lang-active":""}`,onClick:()=>t("tm"),children:"TK"}),c("button",{className:`nav-lang-item ${e==="ru"?"lang-active":""}`,onClick:()=>t("ru"),children:"RU"})]})]})})}),c("div",{className:"mobile-nav",children:c("div",{className:"container",children:P("div",{className:"mobile-nav-wrapper",children:[c(K,{to:"/",className:"logo",children:c("img",{src:rd,alt:"logo"})}),c("div",{className:"burger",onClick:i,children:c("img",{src:X1})})]})})}),c("nav",{className:`mobile-nav-content ${n?"active":null}`,children:P("div",{className:"mobile-nav-content-wrapper",children:[P("ul",{className:"mobile-nav-list",children:[c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/gtsbt",children:"\u0413\u0422\u0421\u0411\u0422"})}),c("li",{className:"mobile-nav-list-item",children:c("a",{href:`https://tmex.gov.tm/${e}`,target:"_blank",children:"\u041A\u0430\u0442\u0438\u0440\u043E\u0432\u043A\u0438"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/norm",children:"\u041D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0431\u0430\u0437\u0430"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/",children:"\u041D\u043E\u0432\u043E\u0441\u0442\u0438"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/",children:"\u041C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u044F"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/",children:"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u044B"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/trade",children:"\u0411\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/fin",children:"\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u044B\u0439 \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/register",children:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432"})}),c("li",{className:"mobile-nav-list-item",onClick:i,children:c(K,{to:"/trade",children:"\u0422\u0430\u0440\u0438\u0444\u044B \u0438 \u0441\u0431\u043E\u0440\u044B"})})]}),P("div",{className:"nav-lang-wrapper-mobile",children:[c("button",{className:`nav-lang-item ${e==="en"?"lang-active":""}`,onClick:()=>t("en"),children:"EN"}),c("button",{className:`nav-lang-item ${e==="tm"?"lang-active":""}`,onClick:()=>t("tm"),children:"TK"}),c("button",{className:`nav-lang-item ${e==="ru"?"lang-active":""}`,onClick:()=>t("ru"),children:"RU"})]})]})})]})},ce=({title:e})=>c("h2",{className:"section-title",children:e}),Q1=({lang:e})=>P("footer",{className:"footer",children:[c("div",{className:"footer-top",children:c("div",{className:"container",children:P("div",{className:"footer-top-wrapper",children:[c(ce,{title:` + ${e==="ru"?"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u044B":e==="tm"?"Salgymyz":e==="en"?"Contacts":null}`}),P("div",{className:"footer-top-content",children:[P("div",{className:"footer-top-item",children:[c("h3",{className:"footer-top-item-title",children:e==="ru"?"\u0422\u0435\u043B\u0435\u0444\u043E\u043D:":e==="tm"?"Telefon belgisi":e==="en"?"Phone":null}),c("h4",{className:"footer-top-item-text",children:"+993 12 44-60-15"})]}),P("div",{className:"footer-top-item",children:[c("h3",{className:"footer-top-item-title",children:e==="ru"?"\u0412\u0440\u0435\u043C\u044F \u0440\u0430\u0431\u043E\u0442\u044B:":e==="tm"?"I\u015F wagty":e==="en"?"Working time":null}),c("h4",{className:"footer-top-item-text",children:e==="ru"?"\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A - \u043F\u044F\u0442\u043D\u0438\u0446\u0430: 9:00 - 18:00":e==="tm"?"Du\u015Fenbe - anna: 9:00 - 18:00":e==="en"?"Monday - friday: 9:00 - 18:00":null})]}),P("div",{className:"footer-top-item",children:[c("h3",{className:"footer-top-item-title",children:"Email:"}),c(K,{to:"/",className:"footer-top-item-text",children:"info@exchange.gov.tm"}),c(K,{to:"/",className:"footer-top-item-text",children:"broker@exchange.gov.tm"})]}),P("div",{className:"footer-top-item",children:[c("h3",{className:"footer-top-item-title",children:e==="ru"?"\u041F\u0440\u0438\u0435\u043C\u043D\u044B\u0435 \u0434\u043D\u0438:":e==="tm"?"Kabul edi\u015F g\xFCnleri":e==="en"?"Reception days":null}),c("h4",{className:"footer-top-item-text",children:e==="ru"?"\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A - \u0447\u0435\u0442\u0432\u0435\u0440\u0433: 9:00 - 17:00":e==="tm"?"Du\u015Fenbe - pen\u015Fenbe: 9:00 - 17:00":e==="en"?"Monday - thursday: 9:00 - 17:00":null}),c("h4",{className:"footer-top-item-text",children:e==="ru"?"\u041F\u044F\u0442\u043D\u0438\u0446\u0430: 9:00 - 13:00":e==="tm"?"Anna: 9:00 - 17:00":e==="en"?"Friday: 9:00 - 17:00":null})]}),P("div",{className:"footer-top-item",children:[c("h3",{className:"footer-top-item-title",children:e==="ru"?"\u0410\u0434\u0440\u0435\u0441:":e==="tm"?"Salgy":e==="en"?"Adress":null}),c("h4",{className:"footer-top-item-text",children:e==="ru"?"744000, \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D \u0433. \u0410\u0448\u0445\u0430\u0431\u0430\u0442, \u0410\u0440\u0447\u0430\u0431\u0438\u043B\u044C \u0448\u0430\u0435\u043B\u044B 52":e==="tm"?"744000, T\xFCrkmenistan \u015F. A\u015Fgabat, Ar\xE7abil \u015Fa\xFDoly 52":e==="en"?"744000, Turkmenistan c. Ashgabat, Archabil shayoly 52":null})]})]})]})})}),c("div",{className:"footer-bottom",children:c("div",{className:"container",children:c("div",{className:"footer-bottom-wrapper",children:P("ul",{className:"footer-nav-list",children:[c("li",{className:"footer-nav-list-item",children:c(K,{to:"/gtsbt",className:"footer-nav-list-link",children:e==="ru"?"\u0413\u0422\u0421\u0411\u0422":e==="tm"?"TDH\xC7MB":e==="en"?"SCRMET":null})}),c("li",{className:"footer-nav-list-item",children:c(K,{to:"/norm",className:"footer-nav-list-link",children:e==="ru"?"\u041D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0431\u0430\u0437\u0430":e==="tm"?"Kanun\xE7ylyk":e==="en"?"Normative base":null})}),c("li",{className:"footer-nav-list-item",children:c(K,{to:"/trade",className:"footer-nav-list-link",children:e==="ru"?"\u0411\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438":e==="tm"?"Bir\u017Ea s\xF6wdalary":e==="en"?"Exchange auctions":null})}),c("li",{className:"footer-nav-list-item",children:c(K,{to:"/multimedia",className:"footer-nav-list-link",children:e==="ru"?"\u041C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430":e==="tm"?"Multimedi\xFDa":e==="en"?"Multimedia":null})}),c("li",{className:"footer-nav-list-item",children:c(K,{to:"/fin",className:"footer-nav-list-link",children:e==="ru"?"\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u044B\u0439 \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433":e==="tm"?"Mali\xFDe g\xF6zeg\xE7iligi":e==="en"?"Financial monitoring":null})}),c("li",{className:"footer-nav-list-item",children:c(K,{to:"/news",className:"footer-nav-list-link",children:e==="ru"?"\u041D\u043E\u0432\u043E\u0441\u0442\u0438":e==="tm"?"Habarlar":e==="en"?"News":null})}),c("li",{className:"footer-nav-list-item",children:c(K,{to:"/register",className:"footer-nav-list-link",children:e==="ru"?"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432":e==="tm"?"\u015Eertnamalary hasaba almak":e==="en"?"Contracts registration":null})}),c("li",{className:"footer-nav-list-item",children:c(K,{to:"/contacts",className:"footer-nav-list-link",children:e==="ru"?"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u044B":e==="tm"?"Salgymyz":e==="en"?"Contacts":null})})]})})})})]}),J1=({lang:e})=>c("section",{className:"hero",children:c("div",{className:"container",children:c("div",{className:"hero-wrapper",children:P("div",{className:"buttons-wrapper",children:[c("a",{href:`https://tmex.gov.tm/${e}`,target:"_blank",className:"hero-button",children:e==="ru"?"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0442\u043E\u0440\u0433\u043E\u0432\u0443\u044E \u043F\u043B\u043E\u0449\u0430\u0434\u043A\u0443":e==="tm"?"S\xF6wda me\xFDdan\xE7a ge\xE7mek":e==="en"?"Go to the marketplace":null}),c("a",{href:"https://shahsyotag.exchange.gov.tm/login",className:"hero-button",children:e==="ru"?"\u041F\u043E\u0434\u0430\u0442\u044C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u043E\u043D\u043B\u0430\u0439\u043D":e==="tm"?"Resminamalary onla\xFDn tab\u015Fyrmak":e==="en"?"Apply documents online":null})]})})})}),id=e=>j.exports.createElement("svg",{width:17,height:8,viewBox:"0 0 17 8",fill:"",xmlns:"http://www.w3.org/2000/svg",role:"img",...e},j.exports.createElement("path",{d:"M16.3536 4.35355C16.5488 4.15829 16.5488 3.84171 16.3536 3.64645L13.1716 0.464466C12.9763 0.269204 12.6597 0.269204 12.4645 0.464466C12.2692 0.659728 12.2692 0.976311 12.4645 1.17157L15.2929 4L12.4645 6.82843C12.2692 7.02369 12.2692 7.34027 12.4645 7.53553C12.6597 7.7308 12.9763 7.7308 13.1716 7.53553L16.3536 4.35355ZM0 4.5H16V3.5H0V4.5Z",fill:""})),Yn="/assets/arrow.a0470258.svg",b3=({title:e,shortDes:t,date:n,image:r,setPostId:i,id:u,lang:s})=>P("div",{className:"news-post",children:[c("div",{className:"news-post-img",children:c("img",{src:r,alt:"news-image"})}),P("div",{className:"news-post-content",children:[c("h3",{className:"news-post-date",children:n}),c("h2",{className:"news-post-title",children:e}),c("p",{className:"news-post-text",children:t})]}),P(K,{className:"news-post-link",to:`/post/${u}`,onClick:()=>i(u),children:[c("img",{src:Yn,alt:"arrow"}),c("h3",{children:s==="ru"?"\u0427\u0438\u0442\u0430\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E":s==="tm"?"Doly okamak":s==="en"?"Read all":null})]})]}),Z1=e=>j.exports.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...e},j.exports.createElement("g",{clipPath:"url(#clip0_555_638)"},j.exports.createElement("path",{d:"M30 32H18C17.4696 32 16.9609 32.2107 16.5858 32.5858C16.2107 32.9609 16 33.4696 16 34C16 34.5304 16.2107 35.0391 16.5858 35.4142C16.9609 35.7893 17.4696 36 18 36H30C30.5304 36 31.0391 35.7893 31.4142 35.4142C31.7893 35.0391 32 34.5304 32 34C32 33.4696 31.7893 32.9609 31.4142 32.5858C31.0391 32.2107 30.5304 32 30 32Z",fill:""}),j.exports.createElement("path",{d:"M18 28H24C24.5304 28 25.0391 27.7893 25.4142 27.4142C25.7893 27.0391 26 26.5304 26 26C26 25.4696 25.7893 24.9609 25.4142 24.5858C25.0391 24.2107 24.5304 24 24 24H18C17.4696 24 16.9609 24.2107 16.5858 24.5858C16.2107 24.9609 16 25.4696 16 26C16 26.5304 16.2107 27.0391 16.5858 27.4142C16.9609 27.7893 17.4696 28 18 28Z",fill:""}),j.exports.createElement("path",{d:"M39.48 16.6599L28.6 4.65987C28.413 4.45269 28.1847 4.28693 27.9298 4.17326C27.6749 4.05959 27.3991 4.00053 27.12 3.99987H13.12C12.4555 3.99195 11.7959 4.11499 11.179 4.36198C10.5621 4.60898 9.99981 4.97508 9.52436 5.43938C9.04892 5.90368 8.66959 6.45709 8.40804 7.068C8.14648 7.67892 8.00783 8.33537 8 8.99987V38.9999C8.00783 39.6644 8.14648 40.3208 8.40804 40.9317C8.66959 41.5426 9.04892 42.0961 9.52436 42.5604C9.99981 43.0247 10.5621 43.3908 11.179 43.6378C11.7959 43.8848 12.4555 44.0078 13.12 43.9999H34.88C35.5445 44.0078 36.2041 43.8848 36.821 43.6378C37.4379 43.3908 38.0002 43.0247 38.4756 42.5604C38.9511 42.0961 39.3304 41.5426 39.592 40.9317C39.8535 40.3208 39.9922 39.6644 40 38.9999V17.9999C39.9987 17.5042 39.8134 17.0267 39.48 16.6599ZM28 9.99987L33.48 15.9999H29.48C29.2706 15.9872 29.0657 15.933 28.8775 15.8403C28.6892 15.7477 28.5213 15.6185 28.3835 15.4602C28.2458 15.3019 28.1409 15.1178 28.075 14.9186C28.0092 14.7194 27.9837 14.5091 28 14.2999V9.99987ZM34.88 39.9999H13.12C12.9807 40.008 12.8413 39.9885 12.7095 39.9426C12.5778 39.8967 12.4565 39.8253 12.3524 39.7324C12.2484 39.6395 12.1637 39.5269 12.1032 39.4012C12.0427 39.2755 12.0077 39.1391 12 38.9999V8.99987C12.0077 8.8606 12.0427 8.7242 12.1032 8.5985C12.1637 8.47281 12.2484 8.36029 12.3524 8.26739C12.4565 8.17449 12.5778 8.10303 12.7095 8.05713C12.8413 8.01122 12.9807 7.99177 13.12 7.99987H24V14.2999C23.9677 15.7731 24.5195 17.1993 25.5349 18.2672C26.5504 19.3351 27.947 19.958 29.42 19.9999H36V38.9999C35.9923 39.1391 35.9573 39.2755 35.8968 39.4012C35.8363 39.5269 35.7516 39.6395 35.6476 39.7324C35.5435 39.8253 35.4222 39.8967 35.2905 39.9426C35.1587 39.9885 35.0193 40.008 34.88 39.9999Z",fill:""})),j.exports.createElement("defs",null,j.exports.createElement("clipPath",{id:"clip0_555_638"},j.exports.createElement("rect",{width:48,height:48,fill:"white"})))),Ta=({title:e,link:t})=>P("a",{href:t,download:!0,className:"document-link",children:[c("div",{className:"document-img",children:c(Z1,{})}),c("h3",{className:"document-title",children:e})]});var x3={},E3={},ae={},eb=function(t,n,r){var i=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},u.type=n.type||"text/javascript",u.charset=n.charset||"utf8",u.async="async"in n?!!n.async:!0,u.src=t,n.attrs&&tb(u,n.attrs),n.text&&(u.text=""+n.text);var s="onload"in u?ud:nb;s(u,r),u.onload||ud(u,r),i.appendChild(u)};function tb(e,t){for(var n in t)e.setAttribute(n,t[n])}function ud(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function nb(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var rb=function(t){return ib(t)&&!ub(t)};function ib(e){return!!e&&typeof e=="object"}function ub(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ob(e)}var sb=typeof Symbol=="function"&&Symbol.for,ab=sb?Symbol.for("react.element"):60103;function ob(e){return e.$$typeof===ab}function lb(e){return Array.isArray(e)?[]:{}}function hu(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Gr(lb(e),e,t):e}function cb(e,t,n){return e.concat(t).map(function(r){return hu(r,n)})}function db(e,t){if(!t.customMerge)return Gr;var n=t.customMerge(e);return typeof n=="function"?n:Gr}function fb(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}function sd(e){return Object.keys(e).concat(fb(e))}function _3(e,t){try{return t in e}catch{return!1}}function hb(e,t){return _3(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function pb(e,t,n){var r={};return n.isMergeableObject(e)&&sd(e).forEach(function(i){r[i]=hu(e[i],n)}),sd(t).forEach(function(i){hb(e,i)||(_3(e,i)&&n.isMergeableObject(t[i])?r[i]=db(i,n)(e[i],t[i],n):r[i]=hu(t[i],n))}),r}function Gr(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||cb,n.isMergeableObject=n.isMergeableObject||rb,n.cloneUnlessOtherwiseSpecified=hu;var r=Array.isArray(t),i=Array.isArray(e),u=r===i;return u?r?n.arrayMerge(e,t,n):pb(e,t,n):hu(t,n)}Gr.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Gr(r,i,n)},{})};var mb=Gr,w3=mb;Object.defineProperty(ae,"__esModule",{value:!0});ae.parseStartTime=Pb;ae.parseEndTime=Cb;ae.randomString=Ob;ae.queryString=Fb;ae.getSDK=Nb;ae.getConfig=Ab;ae.omit=Rb;ae.callPlayer=Tb;ae.isMediaStream=Mb;ae.isBlobUrl=Lb;ae.supportsWebKitPresentationMode=Bb;var gb=D3(eb),yb=D3(w3);function D3(e){return e&&e.__esModule?e:{default:e}}function vb(e,t){return _b(e)||Eb(e,t)||xb(e,t)||bb()}function bb(){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 xb(e,t){if(!!e){if(typeof e=="string")return ad(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ad(e,t)}}function ad(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,u=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(o){i=!0,u=o}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw u}}return n}}function _b(e){if(Array.isArray(e))return e}var wb=/[?&#](?:start|t)=([0-9hms]+)/,Db=/[?&#]end=([0-9hms]+)/,Zl=/(\d+)(h|m|s)/g,kb=/^\d+$/;function k3(e,t){if(!(e instanceof Array)){var n=e.match(t);if(n){var r=n[1];if(r.match(Zl))return Sb(r);if(kb.test(r))return parseInt(r)}}}function Sb(e){for(var t=0,n=Zl.exec(e);n!==null;){var r=n,i=vb(r,3),u=i[1],s=i[2];s==="h"&&(t+=parseInt(u,10)*60*60),s==="m"&&(t+=parseInt(u,10)*60),s==="s"&&(t+=parseInt(u,10)),n=Zl.exec(e)}return t}function Pb(e){return k3(e,wb)}function Cb(e){return k3(e,Db)}function Ob(){return Math.random().toString(36).substr(2,5)}function Fb(e){return Object.keys(e).map(function(t){return"".concat(t,"=").concat(e[t])}).join("&")}function wo(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}var vr={};function Nb(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:gb.default,u=wo(t);return u&&r(u)?Promise.resolve(u):new Promise(function(s,a){if(vr[e]){vr[e].push({resolve:s,reject:a});return}vr[e]=[{resolve:s,reject:a}];var o=function(p){vr[e].forEach(function(g){return g.resolve(p)})};if(n){var l=window[n];window[n]=function(){l&&l(),o(wo(t))}}i(e,function(d){d?(vr[e].forEach(function(p){return p.reject(d)}),vr[e]=null):n||o(wo(t))})})}function Ab(e,t){return(0,yb.default)(t.config,e.config)}function Rb(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?r-1:0),u=1;u0&&arguments[0]!==void 0?arguments[0]:document.createElement("video"),t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var Y={};Object.defineProperty(Y,"__esModule",{value:!0});Y.canPlay=Y.FLV_EXTENSIONS=Y.DASH_EXTENSIONS=Y.HLS_EXTENSIONS=Y.VIDEO_EXTENSIONS=Y.AUDIO_EXTENSIONS=Y.MATCH_URL_KALTURA=Y.MATCH_URL_VIDYARD=Y.MATCH_URL_MIXCLOUD=Y.MATCH_URL_DAILYMOTION=Y.MATCH_URL_TWITCH_CHANNEL=Y.MATCH_URL_TWITCH_VIDEO=Y.MATCH_URL_WISTIA=Y.MATCH_URL_STREAMABLE=Y.MATCH_URL_FACEBOOK_WATCH=Y.MATCH_URL_FACEBOOK=Y.MATCH_URL_VIMEO=Y.MATCH_URL_SOUNDCLOUD=Y.MATCH_URL_YOUTUBE=void 0;var od=ae;function Ib(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=zb(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,s=!1,a;return{s:function(){n=e[Symbol.iterator]()},n:function(){var l=n.next();return u=l.done,l},e:function(l){s=!0,a=l},f:function(){try{!u&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function zb(e,t){if(!!e){if(typeof e=="string")return ld(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ld(e,t)}}function ld(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nA.length)&&(R=A.length);for(var N=0,z=new Array(R);N"u"||!(Symbol.iterator in Object(A)))){var N=[],z=!0,U=!1,W=void 0;try{for(var q=A[Symbol.iterator](),X;!(z=(X=q.next()).done)&&(N.push(X.value),!(R&&N.length===R));z=!0);}catch(Q){U=!0,W=Q}finally{try{!z&&q.return!=null&&q.return()}finally{if(U)throw W}}return N}}function b(A){if(Array.isArray(A))return A}function k(A,R){if(!(A instanceof R))throw new TypeError("Cannot call a class as a function")}function O(A,R){for(var N=0;N"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function f(A){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)},f(A)}function m(A,R,N){return R in A?Object.defineProperty(A,R,{value:N,enumerable:!0,configurable:!0,writable:!0}):A[R]=N,A}var h="https://www.youtube.com/iframe_api",E="YT",C="onYouTubeIframeAPIReady",B=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,F=/user\/([a-zA-Z0-9_-]+)\/?/,M=/youtube-nocookie\.com/,I="https://www.youtube-nocookie.com",L=function(A){_(N,A);var R=T(N);function N(){var z;k(this,N);for(var U=arguments.length,W=new Array(U),q=0;q"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(y){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)},_(y)}function w(y,f,m){return f in y?Object.defineProperty(y,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[f]=m,y}var T="https://w.soundcloud.com/player/api.js",D="SC",P=function(y){g(m,y);var f=b(m);function m(){var h;l(this,m);for(var E=arguments.length,C=new Array(E),B=0;B"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(y){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)},_(y)}function w(y,f,m){return f in y?Object.defineProperty(y,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[f]=m,y}var T="https://player.vimeo.com/api/player.js",D="Vimeo",P=function(y){g(m,y);var f=b(m);function m(){var h;l(this,m);for(var E=arguments.length,C=new Array(E),B=0;B"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function x(f){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},x(f)}function _(f,m,h){return m in f?Object.defineProperty(f,m,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[m]=h,f}var w="https://connect.facebook.net/en_US/sdk.js",T="FB",D="fbAsyncInit",P="facebook-player-",y=function(f){p(h,f);var m=v(h);function h(){var E;o(this,h);for(var C=arguments.length,B=new Array(C),F=0;F"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(D){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},O(D)}function x(D,P,y){return P in D?Object.defineProperty(D,P,{value:y,enumerable:!0,configurable:!0,writable:!0}):D[P]=y,D}var _="https://cdn.embed.ly/player-0.1.0.min.js",w="playerjs",T=function(D){d(y,D);var P=g(y);function y(){var f;a(this,y);for(var m=arguments.length,h=new Array(m),E=0;E"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(f){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},_(f)}function w(f,m,h){return m in f?Object.defineProperty(f,m,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[m]=h,f}var T="https://fast.wistia.com/assets/external/E-v1.js",D="Wistia",P="wistia-player-",y=function(f){g(h,f);var m=b(h);function h(){var E;l(this,h);for(var C=arguments.length,B=new Array(C),F=0;F"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(f){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},_(f)}function w(f,m,h){return m in f?Object.defineProperty(f,m,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[m]=h,f}var T="https://player.twitch.tv/js/embed/v1.js",D="Twitch",P="twitch-player-",y=function(f){g(h,f);var m=b(h);function h(){var E;l(this,h);for(var C=arguments.length,B=new Array(C),F=0;FF.length)&&(M=F.length);for(var I=0,L=new Array(M);I"u"||!(Symbol.iterator in Object(F)))){var I=[],L=!0,A=!1,R=void 0;try{for(var N=F[Symbol.iterator](),z;!(L=(z=N.next()).done)&&(I.push(z.value),!(M&&I.length===M));L=!0);}catch(U){A=!0,R=U}finally{try{!L&&N.return!=null&&N.return()}finally{if(A)throw R}}return I}}function b(F){if(Array.isArray(F))return F}function k(F,M){if(!(F instanceof M))throw new TypeError("Cannot call a class as a function")}function O(F,M){for(var I=0;I"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function f(F){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)},f(F)}function m(F,M,I){return M in F?Object.defineProperty(F,M,{value:I,enumerable:!0,configurable:!0,writable:!0}):F[M]=I,F}var h="https://api.dmcdn.net/all.js",E="DM",C="dmAsyncInit",B=function(F){_(I,F);var M=T(I);function I(){var L;k(this,I);for(var A=arguments.length,R=new Array(A),N=0;N"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(y){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)},_(y)}function w(y,f,m){return f in y?Object.defineProperty(y,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[f]=m,y}var T="https://widget.mixcloud.com/media/js/widgetApi.js",D="Mixcloud",P=function(y){g(m,y);var f=b(m);function m(){var h;l(this,m);for(var E=arguments.length,C=new Array(E),B=0;B"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(f){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},_(f)}function w(f,m,h){return m in f?Object.defineProperty(f,m,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[m]=h,f}var T="https://play.vidyard.com/embed/v4.js",D="VidyardV4",P="onVidyardAPI",y=function(f){g(h,f);var m=b(h);function h(){var E;l(this,h);for(var C=arguments.length,B=new Array(C),F=0;F"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(D){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},O(D)}function x(D,P,y){return P in D?Object.defineProperty(D,P,{value:y,enumerable:!0,configurable:!0,writable:!0}):D[P]=y,D}var _="https://cdn.embed.ly/player-0.1.0.min.js",w="playerjs",T=function(D){d(y,D);var P=g(y);function y(){var f;a(this,y);for(var m=arguments.length,h=new Array(m),E=0;E"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function x(I){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},x(I)}function _(I,L,A){return L in I?Object.defineProperty(I,L,{value:A,enumerable:!0,configurable:!0,writable:!0}):I[L]=A,I}var w=typeof navigator<"u",T=w&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,D=w&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||T)&&!window.MSStream,P="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",y="Hls",f="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",m="dashjs",h="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",E="flvjs",C=/www\.dropbox\.com\/.+/,B=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,F="https://videodelivery.net/{id}/manifest/video.m3u8",M=function(I){p(A,I);var L=v(A);function A(){var R;o(this,A);for(var N=arguments.length,z=new Array(N),U=0;U0?U.end(U.length-1):z}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var N=this.player.buffered;if(N.length===0)return 0;var z=N.end(N.length-1),U=this.getDuration();return z>U?U:z}},{key:"getSource",value:function(N){var z=this.shouldUseHLS(N),U=this.shouldUseDASH(N),W=this.shouldUseFLV(N);if(!(N instanceof Array||(0,r.isMediaStream)(N)||z||U||W))return C.test(N)?N.replace("www.dropbox.com","dl.dropboxusercontent.com"):N}},{key:"render",value:function(){var N=this.props,z=N.url,U=N.playing,W=N.loop,q=N.controls,X=N.muted,Q=N.config,G=N.width,we=N.height,Se=this.shouldUseAudio(this.props),ut=Se?"audio":"video",zt={width:G==="auto"?G:"100%",height:we==="auto"?we:"100%"};return n.default.createElement(ut,a({ref:this.ref,src:this.getSource(z),style:zt,preload:"auto",autoPlay:U||void 0,controls:q,muted:X,loop:W},Q.attributes),z instanceof Array&&z.map(this.renderSourceElement),Q.tracks.map(this.renderTrack))}}]),A}(n.Component);e.default=M,_(M,"displayName","FilePlayer"),_(M,"canPlay",i.canPlay.file)}(Mo)),Mo}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=j.exports,n=ae,r=Y;function i(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(d){return typeof d}:i=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},i(o)}function u(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return u=function(){return o},o}function s(o){if(o&&o.__esModule)return o;if(o===null||i(o)!=="object"&&typeof o!="function")return{default:o};var l=u();if(l&&l.has(o))return l.get(o);var d={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in o)if(Object.prototype.hasOwnProperty.call(o,g)){var v=p?Object.getOwnPropertyDescriptor(o,g):null;v&&(v.get||v.set)?Object.defineProperty(d,g,v):d[g]=o[g]}return d.default=o,l&&l.set(o,d),d}var a=[{key:"youtube",name:"YouTube",canPlay:r.canPlay.youtube,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Vb())})})},{key:"soundcloud",name:"SoundCloud",canPlay:r.canPlay.soundcloud,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Wb())})})},{key:"vimeo",name:"Vimeo",canPlay:r.canPlay.vimeo,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Hb())})})},{key:"facebook",name:"Facebook",canPlay:r.canPlay.facebook,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s($b())})})},{key:"streamable",name:"Streamable",canPlay:r.canPlay.streamable,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Kb())})})},{key:"wistia",name:"Wistia",canPlay:r.canPlay.wistia,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Yb())})})},{key:"twitch",name:"Twitch",canPlay:r.canPlay.twitch,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(qb())})})},{key:"dailymotion",name:"DailyMotion",canPlay:r.canPlay.dailymotion,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Xb())})})},{key:"mixcloud",name:"Mixcloud",canPlay:r.canPlay.mixcloud,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Gb())})})},{key:"vidyard",name:"Vidyard",canPlay:r.canPlay.vidyard,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Qb())})})},{key:"kaltura",name:"Kaltura",canPlay:r.canPlay.kaltura,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Jb())})})},{key:"file",name:"FilePlayer",canPlay:r.canPlay.file,canEnablePIP:function(l){return r.canPlay.file(l)&&(document.pictureInPictureEnabled||(0,n.supportsWebKitPresentationMode)())&&!r.AUDIO_EXTENSIONS.test(l)},lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Zb())})})}];e.default=a})(E3);var Ma={},_d=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ex(e,t){return!!(e===t||_d(e)&&_d(t))}function tx(e,t){if(e.length!==t.length)return!1;for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function w(y){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)},w(y)}function T(y,f,m){return f in y?Object.defineProperty(y,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[f]=m,y}var D=5e3,P=function(y){v(m,y);var f=k(m);function m(){var h;d(this,m);for(var E=arguments.length,C=new Array(E),B=0;B0&&E<1;if(F){var M=this.player.getDuration();if(!M){console.warn("ReactPlayer: could not seek using fraction \u2013\xA0duration not yet available");return}this.player.seekTo(M*E);return}this.player.seekTo(E)}},{key:"render",value:function(){var E=this.props.activePlayer;return E?n.default.createElement(E,l({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}]),m}(n.Component);e.default=P,T(P,"displayName","Player"),T(P,"propTypes",i.propTypes),T(P,"defaultProps",i.defaultProps)})(H3);var Bo={},Dd;function gx(){return Dd||(Dd=1,function(e){function t(D){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(y){return typeof y}:t=function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},t(D)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(j.exports);function r(){if(typeof WeakMap!="function")return null;var D=new WeakMap;return r=function(){return D},D}function i(D){if(D&&D.__esModule)return D;if(D===null||t(D)!=="object"&&typeof D!="function")return{default:D};var P=r();if(P&&P.has(D))return P.get(D);var y={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in D)if(Object.prototype.hasOwnProperty.call(D,m)){var h=f?Object.getOwnPropertyDescriptor(D,m):null;h&&(h.get||h.set)?Object.defineProperty(y,m,h):y[m]=D[m]}return y.default=D,P&&P.set(D,y),y}function u(D,P){var y=Object.keys(D);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(D);P&&(f=f.filter(function(m){return Object.getOwnPropertyDescriptor(D,m).enumerable})),y.push.apply(y,f)}return y}function s(D){for(var P=1;P"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(D){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},O(D)}function x(D,P,y){return P in D?Object.defineProperty(D,P,{value:y,enumerable:!0,configurable:!0,writable:!0}):D[P]=y,D}var _="64px",w={},T=function(D){d(y,D);var P=g(y);function y(){var f;a(this,y);for(var m=arguments.length,h=new Array(m),E=0;Ee.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ea(e)}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $3(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return $3=function(){return e},e}function K3(e){if(e&&e.__esModule)return e;if(e===null||Hi(e)!=="object"&&typeof e!="function")return{default:e};var t=$3();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var u=r?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var Fx=(0,Gn.lazy)(function(){return Promise.resolve().then(function(){return K3(gx())})}),Nx=typeof window<"u"&&window.document,Ax=typeof Ya<"u"&&Ya.window&&Ya.window.document,Rx=Object.keys(Ni.propTypes),Tx=Nx||Ax?Gn.Suspense:function(){return null},vi=[],Mx=function(t,n){var r,i;return i=r=function(u){Sx(a,u);var s=Px(a);function a(){var o;Dx(this,a);for(var l=arguments.length,d=new Array(l),p=0;p0&&arguments[0]!==void 0?arguments[0]:"player";return o.player?o.player.getInternalPlayer(g):null}),ve(Ue(o),"seekTo",function(g,v){if(!o.player)return null;o.player.seekTo(g,v)}),ve(Ue(o),"handleReady",function(){o.props.onReady(Ue(o))}),ve(Ue(o),"getActivePlayer",(0,Io.default)(function(g){for(var v=0,b=[].concat(vi,zo(t));vc("div",{className:"video-player",children:c(Lx,{url:e,controls:!0,volume:1,light:!0,height:"100%",width:"100%"})});function q3(e,t){return function(){return e.apply(t,arguments)}}const{toString:X3}=Object.prototype,{getPrototypeOf:m0}=Object,g0=(e=>t=>{const n=X3.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hn=e=>(e=e.toLowerCase(),t=>g0(t)===e),Ba=e=>t=>typeof t===e,{isArray:ku}=Array,rc=Ba("undefined");function Bx(e){return e!==null&&!rc(e)&&e.constructor!==null&&!rc(e.constructor)&&ui(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const G3=hn("ArrayBuffer");function Ix(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&G3(e.buffer),t}const zx=Ba("string"),ui=Ba("function"),Q3=Ba("number"),J3=e=>e!==null&&typeof e=="object",jx=e=>e===!0||e===!1,Ss=e=>{if(g0(e)!=="object")return!1;const t=m0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ux=hn("Date"),Vx=hn("File"),Wx=hn("Blob"),Hx=hn("FileList"),$x=e=>J3(e)&&ui(e.pipe),Kx=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||X3.call(e)===t||ui(e.toString)&&e.toString()===t)},Yx=hn("URLSearchParams"),qx=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ia(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ku(e))for(r=0,i=e.length;r{Ss(e[r])&&Ss(n)?e[r]=ic(e[r],n):Ss(n)?e[r]=ic({},n):ku(n)?e[r]=n.slice():e[r]=n};for(let n=0,r=arguments.length;n(Ia(t,(i,u)=>{n&&ui(i)?e[u]=q3(i,n):e[u]=i},{allOwnKeys:r}),e),Gx=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Qx=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Jx=(e,t,n,r)=>{let i,u,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),u=i.length;u-- >0;)s=i[u],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&m0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Zx=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},eE=e=>{if(!e)return null;if(ku(e))return e;let t=e.length;if(!Q3(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},tE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&m0(Uint8Array)),nE=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const u=i.value;t.call(e,u[0],u[1])}},rE=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},iE=hn("HTMLFormElement"),uE=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Od=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sE=hn("RegExp"),Z3=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ia(n,(i,u)=>{t(i,u,e)!==!1&&(r[u]=i)}),Object.defineProperties(e,r)},aE=e=>{Z3(e,(t,n)=>{const r=e[n];if(!!ui(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")})}})},oE=(e,t)=>{const n={},r=i=>{i.forEach(u=>{n[u]=!0})};return ku(e)?r(e):r(String(e).split(t)),n},lE=()=>{},cE=(e,t)=>(e=+e,Number.isFinite(e)?e:t),V={isArray:ku,isArrayBuffer:G3,isBuffer:Bx,isFormData:Kx,isArrayBufferView:Ix,isString:zx,isNumber:Q3,isBoolean:jx,isObject:J3,isPlainObject:Ss,isUndefined:rc,isDate:Ux,isFile:Vx,isBlob:Wx,isRegExp:sE,isFunction:ui,isStream:$x,isURLSearchParams:Yx,isTypedArray:tE,isFileList:Hx,forEach:Ia,merge:ic,extend:Xx,trim:qx,stripBOM:Gx,inherits:Qx,toFlatObject:Jx,kindOf:g0,kindOfTest:hn,endsWith:Zx,toArray:eE,forEachEntry:nE,matchAll:rE,isHTMLForm:iE,hasOwnProperty:Od,hasOwnProp:Od,reduceDescriptors:Z3,freezeMethods:aE,toObjectSet:oE,toCamelCase:uE,noop:lE,toFiniteNumber:cE};function re(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}V.inherits(re,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const em=re.prototype,tm={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{tm[e]={value:e}});Object.defineProperties(re,tm);Object.defineProperty(em,"isAxiosError",{value:!0});re.from=(e,t,n,r,i,u)=>{const s=Object.create(em);return V.toFlatObject(e,s,function(o){return o!==Error.prototype},a=>a!=="isAxiosError"),re.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,u&&Object.assign(s,u),s};var dE=typeof self=="object"?self.FormData:window.FormData;function uc(e){return V.isPlainObject(e)||V.isArray(e)}function nm(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function Fd(e,t,n){return e?e.concat(t).map(function(i,u){return i=nm(i),!n&&u?"["+i+"]":i}).join(n?".":""):t}function fE(e){return V.isArray(e)&&!e.some(uc)}const hE=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function pE(e){return e&&V.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function za(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new(dE||FormData),n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,O){return!V.isUndefined(O[k])});const r=n.metaTokens,i=n.visitor||d,u=n.dots,s=n.indexes,o=(n.Blob||typeof Blob<"u"&&Blob)&&pE(t);if(!V.isFunction(i))throw new TypeError("visitor must be a function");function l(b){if(b===null)return"";if(V.isDate(b))return b.toISOString();if(!o&&V.isBlob(b))throw new re("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(b)||V.isTypedArray(b)?o&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function d(b,k,O){let x=b;if(b&&!O&&typeof b=="object"){if(V.endsWith(k,"{}"))k=r?k:k.slice(0,-2),b=JSON.stringify(b);else if(V.isArray(b)&&fE(b)||V.isFileList(b)||V.endsWith(k,"[]")&&(x=V.toArray(b)))return k=nm(k),x.forEach(function(w,T){!V.isUndefined(w)&&t.append(s===!0?Fd([k],T,u):s===null?k:k+"[]",l(w))}),!1}return uc(b)?!0:(t.append(Fd(O,k,u),l(b)),!1)}const p=[],g=Object.assign(hE,{defaultVisitor:d,convertValue:l,isVisitable:uc});function v(b,k){if(!V.isUndefined(b)){if(p.indexOf(b)!==-1)throw Error("Circular reference detected in "+k.join("."));p.push(b),V.forEach(b,function(x,_){(!V.isUndefined(x)&&i.call(t,x,V.isString(_)?_.trim():_,k,g))===!0&&v(x,k?k.concat(_):[_])}),p.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Nd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function y0(e,t){this._pairs=[],e&&za(e,this,t)}const rm=y0.prototype;rm.append=function(t,n){this._pairs.push([t,n])};rm.toString=function(t){const n=t?function(r){return t.call(this,r,Nd)}:Nd;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function mE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function im(e,t,n){if(!t)return e;const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r));const i=n&&n.encode||mE,u=V.isURLSearchParams(t)?t.toString():new y0(t,n).toString(i);return u&&(e+=(e.indexOf("?")===-1?"?":"&")+u),e}class Ad{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){V.forEach(this.handlers,function(r){r!==null&&t(r)})}}const um={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gE=typeof URLSearchParams<"u"?URLSearchParams:y0,yE=FormData,vE=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),sn={isBrowser:!0,classes:{URLSearchParams:gE,FormData:yE,Blob},isStandardBrowserEnv:vE,protocols:["http","https","file","blob","url","data"]};function bE(e,t){return za(e,new sn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,u){return sn.isNode&&V.isBuffer(n)?(this.append(r,n.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},t))}function xE(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function EE(e){const t={},n=Object.keys(e);let r;const i=n.length;let u;for(r=0;r=n.length;return s=!s&&V.isArray(i)?i.length:s,o?(V.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!V.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],u)&&V.isArray(i[s])&&(i[s]=EE(i[s])),!a)}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,(r,i)=>{t(xE(r),i,n,0)}),n}return null}function _E(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new re("Request failed with status code "+n.status,[re.ERR_BAD_REQUEST,re.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const wE=sn.isStandardBrowserEnv?function(){return{write:function(n,r,i,u,s,a){const o=[];o.push(n+"="+encodeURIComponent(r)),V.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),V.isString(u)&&o.push("path="+u),V.isString(s)&&o.push("domain="+s),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function DE(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function kE(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function am(e,t){return e&&!DE(t)?kE(e,t):t}const SE=sn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(u){let s=u;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const a=V.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Su(e,t,n){re.call(this,e==null?"canceled":e,re.ERR_CANCELED,t,n),this.name="CanceledError"}V.inherits(Su,re,{__CANCEL__:!0});function PE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const CE=V.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"]),OE=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&CE[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Rd=Symbol("internals"),om=Symbol("defaults");function Ai(e){return e&&String(e).trim().toLowerCase()}function Zu(e){return e===!1||e==null?e:String(e)}function FE(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function Td(e,t,n,r){if(V.isFunction(r))return r.call(this,t,n);if(!!V.isString(t)){if(V.isString(r))return t.indexOf(r)!==-1;if(V.isRegExp(r))return r.test(t)}}function NE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function AE(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,u,s){return this[r].call(this,t,i,u,s)},configurable:!0})})}function bi(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}function Dt(e,t){e&&this.set(e),this[om]=t||null}Object.assign(Dt.prototype,{set:function(e,t,n){const r=this;function i(u,s,a){const o=Ai(s);if(!o)throw new Error("header name must be a non-empty string");const l=bi(r,o);l&&a!==!0&&(r[l]===!1||a===!1)||(V.isArray(u)?u=u.map(Zu):u=Zu(u),r[l||s]=u)}return V.isPlainObject(e)?V.forEach(e,(u,s)=>{i(u,s,t)}):i(t,e,n),this},get:function(e,t){if(e=Ai(e),!e)return;const n=bi(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return FE(r);if(V.isFunction(t))return t.call(this,r,n);if(V.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=Ai(e),e){const n=bi(this,e);return!!(n&&(!t||Td(this,this[n],n,t)))}return!1},delete:function(e,t){const n=this;let r=!1;function i(u){if(u=Ai(u),u){const s=bi(n,u);s&&(!t||Td(n,n[s],s,t))&&(delete n[s],r=!0)}}return V.isArray(e)?e.forEach(i):i(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return V.forEach(this,(r,i)=>{const u=bi(n,i);if(u){t[u]=Zu(r),delete t[i];return}const s=e?NE(i):String(i).trim();s!==i&&delete t[i],t[s]=Zu(r),n[s]=!0}),this},toJSON:function(){const e=Object.create(null);return V.forEach(Object.assign({},this[om]||null,this),(t,n)=>{t==null||t===!1||(e[n]=V.isArray(t)?t.join(", "):t)}),e}});Object.assign(Dt,{from:function(e){return V.isString(e)?new this(OE(e)):e instanceof this?e:new this(e)},accessor:function(e){const n=(this[Rd]=this[Rd]={accessors:{}}).accessors,r=this.prototype;function i(u){const s=Ai(u);n[s]||(AE(r,u),n[s]=!0)}return V.isArray(e)?e.forEach(i):i(e),this}});Dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);V.freezeMethods(Dt.prototype);V.freezeMethods(Dt);function RE(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,u=0,s;return t=t!==void 0?t:1e3,function(o){const l=Date.now(),d=r[u];s||(s=l),n[i]=o,r[i]=l;let p=u,g=0;for(;p!==i;)g+=n[p++],p=p%e;if(i=(i+1)%e,i===u&&(u=(u+1)%e),l-s{const u=i.loaded,s=i.lengthComputable?i.total:void 0,a=u-n,o=r(a),l=u<=s;n=u;const d={loaded:u,total:s,progress:s?u/s:void 0,bytes:a,rate:o||void 0,estimated:o&&s&&l?(s-u)/o:void 0};d[t?"download":"upload"]=!0,e(d)}}function Ld(e){return new Promise(function(n,r){let i=e.data;const u=Dt.from(e.headers).normalize(),s=e.responseType;let a;function o(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}V.isFormData(i)&&sn.isStandardBrowserEnv&&u.setContentType(!1);let l=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";u.set("Authorization","Basic "+btoa(v+":"+b))}const d=am(e.baseURL,e.url);l.open(e.method.toUpperCase(),im(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function p(){if(!l)return;const v=Dt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),k={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:v,config:e,request:l};_E(function(x){n(x),o()},function(x){r(x),o()},k),l=null}if("onloadend"in l?l.onloadend=p:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(p)},l.onabort=function(){!l||(r(new re("Request aborted",re.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new re("Network Error",re.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const k=e.transitional||um;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new re(b,k.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,e,l)),l=null},sn.isStandardBrowserEnv){const v=(e.withCredentials||SE(d))&&e.xsrfCookieName&&wE.read(e.xsrfCookieName);v&&u.set(e.xsrfHeaderName,v)}i===void 0&&u.setContentType(null),"setRequestHeader"in l&&V.forEach(u.toJSON(),function(b,k){l.setRequestHeader(k,b)}),V.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),s&&s!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",Md(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Md(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=v=>{!l||(r(!v||v.type?new Su(null,e,l):v),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const g=PE(d);if(g&&sn.protocols.indexOf(g)===-1){r(new re("Unsupported protocol "+g+":",re.ERR_BAD_REQUEST,e));return}l.send(i||null)})}const Bd={http:Ld,xhr:Ld},Id={getAdapter:e=>{if(V.isString(e)){const t=Bd[e];if(!e)throw Error(V.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!V.isFunction(e))throw new TypeError("adapter is not a function");return e},adapters:Bd},TE={"Content-Type":"application/x-www-form-urlencoded"};function ME(){let e;return typeof XMLHttpRequest<"u"?e=Id.getAdapter("xhr"):typeof process<"u"&&V.kindOf(process)==="process"&&(e=Id.getAdapter("http")),e}function LE(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const si={transitional:um,adapter:ME(),transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,u=V.isObject(t);if(u&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return i&&i?JSON.stringify(sm(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(u){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bE(t,this.formSerializer).toString();if((a=V.isFileList(t))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return za(a?{"files[]":t}:t,o&&new o,this.formSerializer)}}return u||i?(n.setContentType("application/json",!1),LE(t)):t}],transformResponse:[function(t){const n=this.transitional||si.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&V.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?re.from(a,re.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sn.classes.FormData,Blob:sn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};V.forEach(["delete","get","head"],function(t){si.headers[t]={}});V.forEach(["post","put","patch"],function(t){si.headers[t]=V.merge(TE)});function jo(e,t){const n=this||si,r=t||n,i=Dt.from(r.headers);let u=r.data;return V.forEach(e,function(a){u=a.call(n,u,i.normalize(),t?t.status:void 0)}),i.normalize(),u}function lm(e){return!!(e&&e.__CANCEL__)}function Uo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Su}function zd(e){return Uo(e),e.headers=Dt.from(e.headers),e.data=jo.call(e,e.transformRequest),(e.adapter||si.adapter)(e).then(function(r){return Uo(e),r.data=jo.call(e,e.transformResponse,r),r.headers=Dt.from(r.headers),r},function(r){return lm(r)||(Uo(e),r&&r.response&&(r.response.data=jo.call(e,e.transformResponse,r.response),r.response.headers=Dt.from(r.response.headers))),Promise.reject(r)})}function pu(e,t){t=t||{};const n={};function r(l,d){return V.isPlainObject(l)&&V.isPlainObject(d)?V.merge(l,d):V.isPlainObject(d)?V.merge({},d):V.isArray(d)?d.slice():d}function i(l){if(V.isUndefined(t[l])){if(!V.isUndefined(e[l]))return r(void 0,e[l])}else return r(e[l],t[l])}function u(l){if(!V.isUndefined(t[l]))return r(void 0,t[l])}function s(l){if(V.isUndefined(t[l])){if(!V.isUndefined(e[l]))return r(void 0,e[l])}else return r(void 0,t[l])}function a(l){if(l in t)return r(e[l],t[l]);if(l in e)return r(void 0,e[l])}const o={url:u,method:u,data:u,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return V.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const p=o[d]||i,g=p(d);V.isUndefined(g)&&p!==a||(n[d]=g)}),n}const cm="1.1.2",v0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{v0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const jd={};v0.transitional=function(t,n,r){function i(u,s){return"[Axios v"+cm+"] Transitional option '"+u+"'"+s+(r?". "+r:"")}return(u,s,a)=>{if(t===!1)throw new re(i(s," has been removed"+(n?" in "+n:"")),re.ERR_DEPRECATED);return n&&!jd[s]&&(jd[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(u,s,a):!0}};function BE(e,t,n){if(typeof e!="object")throw new re("options must be an object",re.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const u=r[i],s=t[u];if(s){const a=e[u],o=a===void 0||s(a,u,e);if(o!==!0)throw new re("option "+u+" must be "+o,re.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new re("Unknown option "+u,re.ERR_BAD_OPTION)}}const dm={assertOptions:BE,validators:v0},xr=dm.validators;class rr{constructor(t){this.defaults=t,this.interceptors={request:new Ad,response:new Ad}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pu(this.defaults,n);const r=n.transitional;r!==void 0&&dm.assertOptions(r,{silentJSONParsing:xr.transitional(xr.boolean),forcedJSONParsing:xr.transitional(xr.boolean),clarifyTimeoutError:xr.transitional(xr.boolean)},!1),n.method=(n.method||this.defaults.method||"get").toLowerCase();const i=n.headers&&V.merge(n.headers.common,n.headers[n.method]);i&&V.forEach(["delete","get","head","post","put","patch","common"],function(v){delete n.headers[v]}),n.headers=new Dt(n.headers,i);const u=[];let s=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(s=s&&v.synchronous,u.unshift(v.fulfilled,v.rejected))});const a=[];this.interceptors.response.forEach(function(v){a.push(v.fulfilled,v.rejected)});let o,l=0,d;if(!s){const g=[zd.bind(this),void 0];for(g.unshift.apply(g,u),g.push.apply(g,a),d=g.length,o=Promise.resolve(n);l{if(!r._listeners)return;let u=r._listeners.length;for(;u-- >0;)r._listeners[u](i);r._listeners=null}),this.promise.then=i=>{let u;const s=new Promise(a=>{r.subscribe(a),u=a}).then(i);return s.cancel=function(){r.unsubscribe(u)},s},t(function(u,s,a){r.reason||(r.reason=new Su(u,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new b0(function(i){t=i}),cancel:t}}}function IE(e){return function(n){return e.apply(null,n)}}function zE(e){return V.isObject(e)&&e.isAxiosError===!0}function fm(e){const t=new rr(e),n=q3(rr.prototype.request,t);return V.extend(n,rr.prototype,t,{allOwnKeys:!0}),V.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return fm(pu(e,i))},n}const Ge=fm(si);Ge.Axios=rr;Ge.CanceledError=Su;Ge.CancelToken=b0;Ge.isCancel=lm;Ge.VERSION=cm;Ge.toFormData=za;Ge.AxiosError=re;Ge.Cancel=Ge.CanceledError;Ge.all=function(t){return Promise.all(t)};Ge.spread=IE;Ge.isAxiosError=zE;Ge.formToJSON=e=>sm(V.isHTMLForm(e)?new FormData(e):e);class Be{constructor(t,n,r,i,u){gr(this,"destination");gr(this,"initialState");gr(this,"setState");gr(this,"setLoader");gr(this,"middleware",t=>t);this.destination=t,this.initialState=n,this.setState=r,this.setLoader=i,this.middleware=u}get(t,n=!1){try{return Ge.get(this.destination,t?{headers:t}:null).then(r=>{n&&this.setLoader(!0),this.setState(r.data)}).finally(()=>{n&&this.setLoader(!1)})}catch(r){throw new Error("Bad parameters",r)}}post(t,n=!1,r=!1){try{return Ge.post(this.destination,t).then(i=>{r&&this.setLoader(!0),n&&this.setState(i.data)}).finally(()=>{r&&this.setLoader(!1)})}catch(i){throw new Error("Bad parameters",i)}}}const hm="/assets/arrow-up.403bca16.svg",pm="/assets/arrow-down.6e85faaa.svg",jE=({active:e,onClick:t,title:n,priceChange:r,price:i,currency:u,titleHide:s})=>{const a=d=>{const p=Array.from(d);p.pop();let g="";return p.forEach(v=>{g=g+v}),parseFloat(g)},[o,l]=j.exports.useState();return j.exports.useEffect(()=>{l(a(r))},[r]),S("div",{className:`table-row ${e}`,onClick:()=>t(),children:[c("div",{className:`table-product-name ${s}`,children:n}),S("div",{className:"table-row-status",children:[c("div",{className:"table-row-arrow",children:c("img",{src:o>0?hm:o<0?pm:""})}),c("span",{className:o>0?"table-row-status-title green":o<0?"table-row-status-title red":"table-row-status-title",children:r})]}),S("div",{className:"table-product-price",children:[i," ",u]})]})},UE=({activeRow:e,setActiveRow:t,tabIndex:n,lang:r})=>{const[i,u]=j.exports.useState(),s=a=>{t(a)};return j.exports.useEffect(()=>{n&&new Be(`http://tmex.gov.tm:8765/api/categories/${n}/tradings`,i,u).get()},[n]),S("div",{className:"table",children:[S("div",{className:"table-top",children:[c("h4",{className:"table-title",children:r==="ru"?"\u0422\u043E\u0432\u0430\u0440\u043D\u0430\u044F \u043F\u043E\u0437\u0438\u0446\u0438\u044F":r==="tm"?"Harydy\u0148 ady":r==="en"?"Product name":null}),c("h4",{className:"table-title",children:r==="ru"?"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0446\u0435\u043D\u044B":r==="tm"?"Bahany\u0148 \xFC\xFDtge\xFD\u015Fi":r==="en"?"Price change":null}),c("h4",{className:"table-title",children:r==="ru"?"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0446\u0435\u043D\u0430":r==="tm"?"H\xE4zirki baha":r==="en"?"Current price":null})]}),c("div",{className:"table-bottom",children:i?i.data.map((a,o)=>c(jE,{title:a.title,titleHide:a.title.length>7?"title-hide":null,priceChange:a.price_change,price:a.price,currency:a.currency,onClick:()=>s(o),active:e===o?"active":""},a.id)):null})]})};/*! +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(A,R){if(!!A){if(typeof A=="string")return g(A,R);var N=Object.prototype.toString.call(A).slice(8,-1);if(N==="Object"&&A.constructor&&(N=A.constructor.name),N==="Map"||N==="Set")return Array.from(A);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return g(A,R)}}function g(A,R){(R==null||R>A.length)&&(R=A.length);for(var N=0,z=new Array(R);N"u"||!(Symbol.iterator in Object(A)))){var N=[],z=!0,U=!1,W=void 0;try{for(var q=A[Symbol.iterator](),X;!(z=(X=q.next()).done)&&(N.push(X.value),!(R&&N.length===R));z=!0);}catch(Q){U=!0,W=Q}finally{try{!z&&q.return!=null&&q.return()}finally{if(U)throw W}}return N}}function b(A){if(Array.isArray(A))return A}function k(A,R){if(!(A instanceof R))throw new TypeError("Cannot call a class as a function")}function O(A,R){for(var N=0;N"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function f(A){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)},f(A)}function m(A,R,N){return R in A?Object.defineProperty(A,R,{value:N,enumerable:!0,configurable:!0,writable:!0}):A[R]=N,A}var h="https://www.youtube.com/iframe_api",E="YT",C="onYouTubeIframeAPIReady",B=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,F=/user\/([a-zA-Z0-9_-]+)\/?/,M=/youtube-nocookie\.com/,I="https://www.youtube-nocookie.com",L=function(A){_(N,A);var R=T(N);function N(){var z;k(this,N);for(var U=arguments.length,W=new Array(U),q=0;q"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(y){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)},_(y)}function w(y,f,m){return f in y?Object.defineProperty(y,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[f]=m,y}var T="https://w.soundcloud.com/player/api.js",D="SC",S=function(y){g(m,y);var f=b(m);function m(){var h;l(this,m);for(var E=arguments.length,C=new Array(E),B=0;B"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(y){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)},_(y)}function w(y,f,m){return f in y?Object.defineProperty(y,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[f]=m,y}var T="https://player.vimeo.com/api/player.js",D="Vimeo",S=function(y){g(m,y);var f=b(m);function m(){var h;l(this,m);for(var E=arguments.length,C=new Array(E),B=0;B"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function x(f){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},x(f)}function _(f,m,h){return m in f?Object.defineProperty(f,m,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[m]=h,f}var w="https://connect.facebook.net/en_US/sdk.js",T="FB",D="fbAsyncInit",S="facebook-player-",y=function(f){p(h,f);var m=v(h);function h(){var E;o(this,h);for(var C=arguments.length,B=new Array(C),F=0;F"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(D){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},O(D)}function x(D,S,y){return S in D?Object.defineProperty(D,S,{value:y,enumerable:!0,configurable:!0,writable:!0}):D[S]=y,D}var _="https://cdn.embed.ly/player-0.1.0.min.js",w="playerjs",T=function(D){d(y,D);var S=g(y);function y(){var f;a(this,y);for(var m=arguments.length,h=new Array(m),E=0;E"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(f){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},_(f)}function w(f,m,h){return m in f?Object.defineProperty(f,m,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[m]=h,f}var T="https://fast.wistia.com/assets/external/E-v1.js",D="Wistia",S="wistia-player-",y=function(f){g(h,f);var m=b(h);function h(){var E;l(this,h);for(var C=arguments.length,B=new Array(C),F=0;F"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(f){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},_(f)}function w(f,m,h){return m in f?Object.defineProperty(f,m,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[m]=h,f}var T="https://player.twitch.tv/js/embed/v1.js",D="Twitch",S="twitch-player-",y=function(f){g(h,f);var m=b(h);function h(){var E;l(this,h);for(var C=arguments.length,B=new Array(C),F=0;FF.length)&&(M=F.length);for(var I=0,L=new Array(M);I"u"||!(Symbol.iterator in Object(F)))){var I=[],L=!0,A=!1,R=void 0;try{for(var N=F[Symbol.iterator](),z;!(L=(z=N.next()).done)&&(I.push(z.value),!(M&&I.length===M));L=!0);}catch(U){A=!0,R=U}finally{try{!L&&N.return!=null&&N.return()}finally{if(A)throw R}}return I}}function b(F){if(Array.isArray(F))return F}function k(F,M){if(!(F instanceof M))throw new TypeError("Cannot call a class as a function")}function O(F,M){for(var I=0;I"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function f(F){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)},f(F)}function m(F,M,I){return M in F?Object.defineProperty(F,M,{value:I,enumerable:!0,configurable:!0,writable:!0}):F[M]=I,F}var h="https://api.dmcdn.net/all.js",E="DM",C="dmAsyncInit",B=function(F){_(I,F);var M=T(I);function I(){var L;k(this,I);for(var A=arguments.length,R=new Array(A),N=0;N"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(y){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)},_(y)}function w(y,f,m){return f in y?Object.defineProperty(y,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[f]=m,y}var T="https://widget.mixcloud.com/media/js/widgetApi.js",D="Mixcloud",S=function(y){g(m,y);var f=b(m);function m(){var h;l(this,m);for(var E=arguments.length,C=new Array(E),B=0;B"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(f){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},_(f)}function w(f,m,h){return m in f?Object.defineProperty(f,m,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[m]=h,f}var T="https://play.vidyard.com/embed/v4.js",D="VidyardV4",S="onVidyardAPI",y=function(f){g(h,f);var m=b(h);function h(){var E;l(this,h);for(var C=arguments.length,B=new Array(C),F=0;F"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(D){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},O(D)}function x(D,S,y){return S in D?Object.defineProperty(D,S,{value:y,enumerable:!0,configurable:!0,writable:!0}):D[S]=y,D}var _="https://cdn.embed.ly/player-0.1.0.min.js",w="playerjs",T=function(D){d(y,D);var S=g(y);function y(){var f;a(this,y);for(var m=arguments.length,h=new Array(m),E=0;E"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function x(I){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},x(I)}function _(I,L,A){return L in I?Object.defineProperty(I,L,{value:A,enumerable:!0,configurable:!0,writable:!0}):I[L]=A,I}var w=typeof navigator<"u",T=w&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,D=w&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||T)&&!window.MSStream,S="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",y="Hls",f="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",m="dashjs",h="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",E="flvjs",C=/www\.dropbox\.com\/.+/,B=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,F="https://videodelivery.net/{id}/manifest/video.m3u8",M=function(I){p(A,I);var L=v(A);function A(){var R;o(this,A);for(var N=arguments.length,z=new Array(N),U=0;U0?U.end(U.length-1):z}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var N=this.player.buffered;if(N.length===0)return 0;var z=N.end(N.length-1),U=this.getDuration();return z>U?U:z}},{key:"getSource",value:function(N){var z=this.shouldUseHLS(N),U=this.shouldUseDASH(N),W=this.shouldUseFLV(N);if(!(N instanceof Array||(0,r.isMediaStream)(N)||z||U||W))return C.test(N)?N.replace("www.dropbox.com","dl.dropboxusercontent.com"):N}},{key:"render",value:function(){var N=this.props,z=N.url,U=N.playing,W=N.loop,q=N.controls,X=N.muted,Q=N.config,G=N.width,we=N.height,Se=this.shouldUseAudio(this.props),ut=Se?"audio":"video",It={width:G==="auto"?G:"100%",height:we==="auto"?we:"100%"};return n.default.createElement(ut,a({ref:this.ref,src:this.getSource(z),style:It,preload:"auto",autoPlay:U||void 0,controls:q,muted:X,loop:W},Q.attributes),z instanceof Array&&z.map(this.renderSourceElement),Q.tracks.map(this.renderTrack))}}]),A}(n.Component);e.default=M,_(M,"displayName","FilePlayer"),_(M,"canPlay",i.canPlay.file)}(Mo)),Mo}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=j.exports,n=ae,r=Y;function i(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(d){return typeof d}:i=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},i(o)}function u(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return u=function(){return o},o}function s(o){if(o&&o.__esModule)return o;if(o===null||i(o)!=="object"&&typeof o!="function")return{default:o};var l=u();if(l&&l.has(o))return l.get(o);var d={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in o)if(Object.prototype.hasOwnProperty.call(o,g)){var v=p?Object.getOwnPropertyDescriptor(o,g):null;v&&(v.get||v.set)?Object.defineProperty(d,g,v):d[g]=o[g]}return d.default=o,l&&l.set(o,d),d}var a=[{key:"youtube",name:"YouTube",canPlay:r.canPlay.youtube,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Vb())})})},{key:"soundcloud",name:"SoundCloud",canPlay:r.canPlay.soundcloud,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Wb())})})},{key:"vimeo",name:"Vimeo",canPlay:r.canPlay.vimeo,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Hb())})})},{key:"facebook",name:"Facebook",canPlay:r.canPlay.facebook,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s($b())})})},{key:"streamable",name:"Streamable",canPlay:r.canPlay.streamable,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Kb())})})},{key:"wistia",name:"Wistia",canPlay:r.canPlay.wistia,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Yb())})})},{key:"twitch",name:"Twitch",canPlay:r.canPlay.twitch,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(qb())})})},{key:"dailymotion",name:"DailyMotion",canPlay:r.canPlay.dailymotion,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Xb())})})},{key:"mixcloud",name:"Mixcloud",canPlay:r.canPlay.mixcloud,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Gb())})})},{key:"vidyard",name:"Vidyard",canPlay:r.canPlay.vidyard,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Qb())})})},{key:"kaltura",name:"Kaltura",canPlay:r.canPlay.kaltura,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Jb())})})},{key:"file",name:"FilePlayer",canPlay:r.canPlay.file,canEnablePIP:function(l){return r.canPlay.file(l)&&(document.pictureInPictureEnabled||(0,n.supportsWebKitPresentationMode)())&&!r.AUDIO_EXTENSIONS.test(l)},lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Zb())})})}];e.default=a})(E3);var Ma={},_d=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ex(e,t){return!!(e===t||_d(e)&&_d(t))}function tx(e,t){if(e.length!==t.length)return!1;for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function w(y){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)},w(y)}function T(y,f,m){return f in y?Object.defineProperty(y,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[f]=m,y}var D=5e3,S=function(y){v(m,y);var f=k(m);function m(){var h;d(this,m);for(var E=arguments.length,C=new Array(E),B=0;B0&&E<1;if(F){var M=this.player.getDuration();if(!M){console.warn("ReactPlayer: could not seek using fraction \u2013\xA0duration not yet available");return}this.player.seekTo(M*E);return}this.player.seekTo(E)}},{key:"render",value:function(){var E=this.props.activePlayer;return E?n.default.createElement(E,l({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}]),m}(n.Component);e.default=S,T(S,"displayName","Player"),T(S,"propTypes",i.propTypes),T(S,"defaultProps",i.defaultProps)})(H3);var Bo={},Dd;function gx(){return Dd||(Dd=1,function(e){function t(D){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(y){return typeof y}:t=function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},t(D)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(j.exports);function r(){if(typeof WeakMap!="function")return null;var D=new WeakMap;return r=function(){return D},D}function i(D){if(D&&D.__esModule)return D;if(D===null||t(D)!=="object"&&typeof D!="function")return{default:D};var S=r();if(S&&S.has(D))return S.get(D);var y={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in D)if(Object.prototype.hasOwnProperty.call(D,m)){var h=f?Object.getOwnPropertyDescriptor(D,m):null;h&&(h.get||h.set)?Object.defineProperty(y,m,h):y[m]=D[m]}return y.default=D,S&&S.set(D,y),y}function u(D,S){var y=Object.keys(D);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(D);S&&(f=f.filter(function(m){return Object.getOwnPropertyDescriptor(D,m).enumerable})),y.push.apply(y,f)}return y}function s(D){for(var S=1;S"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(D){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},O(D)}function x(D,S,y){return S in D?Object.defineProperty(D,S,{value:y,enumerable:!0,configurable:!0,writable:!0}):D[S]=y,D}var _="64px",w={},T=function(D){d(y,D);var S=g(y);function y(){var f;a(this,y);for(var m=arguments.length,h=new Array(m),E=0;Ee.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ea(e)}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $3(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return $3=function(){return e},e}function K3(e){if(e&&e.__esModule)return e;if(e===null||Hi(e)!=="object"&&typeof e!="function")return{default:e};var t=$3();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var u=r?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var Fx=(0,Gn.lazy)(function(){return Promise.resolve().then(function(){return K3(gx())})}),Nx=typeof window<"u"&&window.document,Ax=typeof Ya<"u"&&Ya.window&&Ya.window.document,Rx=Object.keys(Ni.propTypes),Tx=Nx||Ax?Gn.Suspense:function(){return null},vi=[],Mx=function(t,n){var r,i;return i=r=function(u){Sx(a,u);var s=Px(a);function a(){var o;Dx(this,a);for(var l=arguments.length,d=new Array(l),p=0;p0&&arguments[0]!==void 0?arguments[0]:"player";return o.player?o.player.getInternalPlayer(g):null}),ve(Ue(o),"seekTo",function(g,v){if(!o.player)return null;o.player.seekTo(g,v)}),ve(Ue(o),"handleReady",function(){o.props.onReady(Ue(o))}),ve(Ue(o),"getActivePlayer",(0,Io.default)(function(g){for(var v=0,b=[].concat(vi,zo(t));vc("div",{className:"video-player",children:c(Lx,{url:e,controls:!0,volume:1,light:!0,height:"100%",width:"100%"})});function q3(e,t){return function(){return e.apply(t,arguments)}}const{toString:X3}=Object.prototype,{getPrototypeOf:m0}=Object,g0=(e=>t=>{const n=X3.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fn=e=>(e=e.toLowerCase(),t=>g0(t)===e),Ba=e=>t=>typeof t===e,{isArray:ku}=Array,rc=Ba("undefined");function Bx(e){return e!==null&&!rc(e)&&e.constructor!==null&&!rc(e.constructor)&&ui(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const G3=fn("ArrayBuffer");function Ix(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&G3(e.buffer),t}const zx=Ba("string"),ui=Ba("function"),Q3=Ba("number"),J3=e=>e!==null&&typeof e=="object",jx=e=>e===!0||e===!1,Ss=e=>{if(g0(e)!=="object")return!1;const t=m0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ux=fn("Date"),Vx=fn("File"),Wx=fn("Blob"),Hx=fn("FileList"),$x=e=>J3(e)&&ui(e.pipe),Kx=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||X3.call(e)===t||ui(e.toString)&&e.toString()===t)},Yx=fn("URLSearchParams"),qx=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ia(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ku(e))for(r=0,i=e.length;r{Ss(e[r])&&Ss(n)?e[r]=ic(e[r],n):Ss(n)?e[r]=ic({},n):ku(n)?e[r]=n.slice():e[r]=n};for(let n=0,r=arguments.length;n(Ia(t,(i,u)=>{n&&ui(i)?e[u]=q3(i,n):e[u]=i},{allOwnKeys:r}),e),Gx=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Qx=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Jx=(e,t,n,r)=>{let i,u,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),u=i.length;u-- >0;)s=i[u],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&m0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Zx=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},eE=e=>{if(!e)return null;if(ku(e))return e;let t=e.length;if(!Q3(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},tE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&m0(Uint8Array)),nE=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const u=i.value;t.call(e,u[0],u[1])}},rE=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},iE=fn("HTMLFormElement"),uE=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Od=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sE=fn("RegExp"),Z3=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ia(n,(i,u)=>{t(i,u,e)!==!1&&(r[u]=i)}),Object.defineProperties(e,r)},aE=e=>{Z3(e,(t,n)=>{const r=e[n];if(!!ui(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")})}})},oE=(e,t)=>{const n={},r=i=>{i.forEach(u=>{n[u]=!0})};return ku(e)?r(e):r(String(e).split(t)),n},lE=()=>{},cE=(e,t)=>(e=+e,Number.isFinite(e)?e:t),V={isArray:ku,isArrayBuffer:G3,isBuffer:Bx,isFormData:Kx,isArrayBufferView:Ix,isString:zx,isNumber:Q3,isBoolean:jx,isObject:J3,isPlainObject:Ss,isUndefined:rc,isDate:Ux,isFile:Vx,isBlob:Wx,isRegExp:sE,isFunction:ui,isStream:$x,isURLSearchParams:Yx,isTypedArray:tE,isFileList:Hx,forEach:Ia,merge:ic,extend:Xx,trim:qx,stripBOM:Gx,inherits:Qx,toFlatObject:Jx,kindOf:g0,kindOfTest:fn,endsWith:Zx,toArray:eE,forEachEntry:nE,matchAll:rE,isHTMLForm:iE,hasOwnProperty:Od,hasOwnProp:Od,reduceDescriptors:Z3,freezeMethods:aE,toObjectSet:oE,toCamelCase:uE,noop:lE,toFiniteNumber:cE};function re(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}V.inherits(re,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const em=re.prototype,tm={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{tm[e]={value:e}});Object.defineProperties(re,tm);Object.defineProperty(em,"isAxiosError",{value:!0});re.from=(e,t,n,r,i,u)=>{const s=Object.create(em);return V.toFlatObject(e,s,function(o){return o!==Error.prototype},a=>a!=="isAxiosError"),re.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,u&&Object.assign(s,u),s};var dE=typeof self=="object"?self.FormData:window.FormData;function uc(e){return V.isPlainObject(e)||V.isArray(e)}function nm(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function Fd(e,t,n){return e?e.concat(t).map(function(i,u){return i=nm(i),!n&&u?"["+i+"]":i}).join(n?".":""):t}function fE(e){return V.isArray(e)&&!e.some(uc)}const hE=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function pE(e){return e&&V.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function za(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new(dE||FormData),n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,O){return!V.isUndefined(O[k])});const r=n.metaTokens,i=n.visitor||d,u=n.dots,s=n.indexes,o=(n.Blob||typeof Blob<"u"&&Blob)&&pE(t);if(!V.isFunction(i))throw new TypeError("visitor must be a function");function l(b){if(b===null)return"";if(V.isDate(b))return b.toISOString();if(!o&&V.isBlob(b))throw new re("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(b)||V.isTypedArray(b)?o&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function d(b,k,O){let x=b;if(b&&!O&&typeof b=="object"){if(V.endsWith(k,"{}"))k=r?k:k.slice(0,-2),b=JSON.stringify(b);else if(V.isArray(b)&&fE(b)||V.isFileList(b)||V.endsWith(k,"[]")&&(x=V.toArray(b)))return k=nm(k),x.forEach(function(w,T){!V.isUndefined(w)&&t.append(s===!0?Fd([k],T,u):s===null?k:k+"[]",l(w))}),!1}return uc(b)?!0:(t.append(Fd(O,k,u),l(b)),!1)}const p=[],g=Object.assign(hE,{defaultVisitor:d,convertValue:l,isVisitable:uc});function v(b,k){if(!V.isUndefined(b)){if(p.indexOf(b)!==-1)throw Error("Circular reference detected in "+k.join("."));p.push(b),V.forEach(b,function(x,_){(!V.isUndefined(x)&&i.call(t,x,V.isString(_)?_.trim():_,k,g))===!0&&v(x,k?k.concat(_):[_])}),p.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Nd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function y0(e,t){this._pairs=[],e&&za(e,this,t)}const rm=y0.prototype;rm.append=function(t,n){this._pairs.push([t,n])};rm.toString=function(t){const n=t?function(r){return t.call(this,r,Nd)}:Nd;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function mE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function im(e,t,n){if(!t)return e;const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r));const i=n&&n.encode||mE,u=V.isURLSearchParams(t)?t.toString():new y0(t,n).toString(i);return u&&(e+=(e.indexOf("?")===-1?"?":"&")+u),e}class Ad{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){V.forEach(this.handlers,function(r){r!==null&&t(r)})}}const um={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gE=typeof URLSearchParams<"u"?URLSearchParams:y0,yE=FormData,vE=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),un={isBrowser:!0,classes:{URLSearchParams:gE,FormData:yE,Blob},isStandardBrowserEnv:vE,protocols:["http","https","file","blob","url","data"]};function bE(e,t){return za(e,new un.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,u){return un.isNode&&V.isBuffer(n)?(this.append(r,n.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},t))}function xE(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function EE(e){const t={},n=Object.keys(e);let r;const i=n.length;let u;for(r=0;r=n.length;return s=!s&&V.isArray(i)?i.length:s,o?(V.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!V.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],u)&&V.isArray(i[s])&&(i[s]=EE(i[s])),!a)}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,(r,i)=>{t(xE(r),i,n,0)}),n}return null}function _E(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new re("Request failed with status code "+n.status,[re.ERR_BAD_REQUEST,re.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const wE=un.isStandardBrowserEnv?function(){return{write:function(n,r,i,u,s,a){const o=[];o.push(n+"="+encodeURIComponent(r)),V.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),V.isString(u)&&o.push("path="+u),V.isString(s)&&o.push("domain="+s),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function DE(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function kE(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function am(e,t){return e&&!DE(t)?kE(e,t):t}const SE=un.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(u){let s=u;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const a=V.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Su(e,t,n){re.call(this,e==null?"canceled":e,re.ERR_CANCELED,t,n),this.name="CanceledError"}V.inherits(Su,re,{__CANCEL__:!0});function PE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const CE=V.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"]),OE=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&CE[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Rd=Symbol("internals"),om=Symbol("defaults");function Ai(e){return e&&String(e).trim().toLowerCase()}function Zu(e){return e===!1||e==null?e:String(e)}function FE(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function Td(e,t,n,r){if(V.isFunction(r))return r.call(this,t,n);if(!!V.isString(t)){if(V.isString(r))return t.indexOf(r)!==-1;if(V.isRegExp(r))return r.test(t)}}function NE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function AE(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,u,s){return this[r].call(this,t,i,u,s)},configurable:!0})})}function bi(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}function wt(e,t){e&&this.set(e),this[om]=t||null}Object.assign(wt.prototype,{set:function(e,t,n){const r=this;function i(u,s,a){const o=Ai(s);if(!o)throw new Error("header name must be a non-empty string");const l=bi(r,o);l&&a!==!0&&(r[l]===!1||a===!1)||(V.isArray(u)?u=u.map(Zu):u=Zu(u),r[l||s]=u)}return V.isPlainObject(e)?V.forEach(e,(u,s)=>{i(u,s,t)}):i(t,e,n),this},get:function(e,t){if(e=Ai(e),!e)return;const n=bi(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return FE(r);if(V.isFunction(t))return t.call(this,r,n);if(V.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=Ai(e),e){const n=bi(this,e);return!!(n&&(!t||Td(this,this[n],n,t)))}return!1},delete:function(e,t){const n=this;let r=!1;function i(u){if(u=Ai(u),u){const s=bi(n,u);s&&(!t||Td(n,n[s],s,t))&&(delete n[s],r=!0)}}return V.isArray(e)?e.forEach(i):i(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return V.forEach(this,(r,i)=>{const u=bi(n,i);if(u){t[u]=Zu(r),delete t[i];return}const s=e?NE(i):String(i).trim();s!==i&&delete t[i],t[s]=Zu(r),n[s]=!0}),this},toJSON:function(){const e=Object.create(null);return V.forEach(Object.assign({},this[om]||null,this),(t,n)=>{t==null||t===!1||(e[n]=V.isArray(t)?t.join(", "):t)}),e}});Object.assign(wt,{from:function(e){return V.isString(e)?new this(OE(e)):e instanceof this?e:new this(e)},accessor:function(e){const n=(this[Rd]=this[Rd]={accessors:{}}).accessors,r=this.prototype;function i(u){const s=Ai(u);n[s]||(AE(r,u),n[s]=!0)}return V.isArray(e)?e.forEach(i):i(e),this}});wt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);V.freezeMethods(wt.prototype);V.freezeMethods(wt);function RE(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,u=0,s;return t=t!==void 0?t:1e3,function(o){const l=Date.now(),d=r[u];s||(s=l),n[i]=o,r[i]=l;let p=u,g=0;for(;p!==i;)g+=n[p++],p=p%e;if(i=(i+1)%e,i===u&&(u=(u+1)%e),l-s{const u=i.loaded,s=i.lengthComputable?i.total:void 0,a=u-n,o=r(a),l=u<=s;n=u;const d={loaded:u,total:s,progress:s?u/s:void 0,bytes:a,rate:o||void 0,estimated:o&&s&&l?(s-u)/o:void 0};d[t?"download":"upload"]=!0,e(d)}}function Ld(e){return new Promise(function(n,r){let i=e.data;const u=wt.from(e.headers).normalize(),s=e.responseType;let a;function o(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}V.isFormData(i)&&un.isStandardBrowserEnv&&u.setContentType(!1);let l=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";u.set("Authorization","Basic "+btoa(v+":"+b))}const d=am(e.baseURL,e.url);l.open(e.method.toUpperCase(),im(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function p(){if(!l)return;const v=wt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),k={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:v,config:e,request:l};_E(function(x){n(x),o()},function(x){r(x),o()},k),l=null}if("onloadend"in l?l.onloadend=p:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(p)},l.onabort=function(){!l||(r(new re("Request aborted",re.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new re("Network Error",re.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const k=e.transitional||um;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new re(b,k.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,e,l)),l=null},un.isStandardBrowserEnv){const v=(e.withCredentials||SE(d))&&e.xsrfCookieName&&wE.read(e.xsrfCookieName);v&&u.set(e.xsrfHeaderName,v)}i===void 0&&u.setContentType(null),"setRequestHeader"in l&&V.forEach(u.toJSON(),function(b,k){l.setRequestHeader(k,b)}),V.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),s&&s!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",Md(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Md(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=v=>{!l||(r(!v||v.type?new Su(null,e,l):v),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const g=PE(d);if(g&&un.protocols.indexOf(g)===-1){r(new re("Unsupported protocol "+g+":",re.ERR_BAD_REQUEST,e));return}l.send(i||null)})}const Bd={http:Ld,xhr:Ld},Id={getAdapter:e=>{if(V.isString(e)){const t=Bd[e];if(!e)throw Error(V.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!V.isFunction(e))throw new TypeError("adapter is not a function");return e},adapters:Bd},TE={"Content-Type":"application/x-www-form-urlencoded"};function ME(){let e;return typeof XMLHttpRequest<"u"?e=Id.getAdapter("xhr"):typeof process<"u"&&V.kindOf(process)==="process"&&(e=Id.getAdapter("http")),e}function LE(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const si={transitional:um,adapter:ME(),transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,u=V.isObject(t);if(u&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return i&&i?JSON.stringify(sm(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(u){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bE(t,this.formSerializer).toString();if((a=V.isFileList(t))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return za(a?{"files[]":t}:t,o&&new o,this.formSerializer)}}return u||i?(n.setContentType("application/json",!1),LE(t)):t}],transformResponse:[function(t){const n=this.transitional||si.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&V.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?re.from(a,re.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:un.classes.FormData,Blob:un.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};V.forEach(["delete","get","head"],function(t){si.headers[t]={}});V.forEach(["post","put","patch"],function(t){si.headers[t]=V.merge(TE)});function jo(e,t){const n=this||si,r=t||n,i=wt.from(r.headers);let u=r.data;return V.forEach(e,function(a){u=a.call(n,u,i.normalize(),t?t.status:void 0)}),i.normalize(),u}function lm(e){return!!(e&&e.__CANCEL__)}function Uo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Su}function zd(e){return Uo(e),e.headers=wt.from(e.headers),e.data=jo.call(e,e.transformRequest),(e.adapter||si.adapter)(e).then(function(r){return Uo(e),r.data=jo.call(e,e.transformResponse,r),r.headers=wt.from(r.headers),r},function(r){return lm(r)||(Uo(e),r&&r.response&&(r.response.data=jo.call(e,e.transformResponse,r.response),r.response.headers=wt.from(r.response.headers))),Promise.reject(r)})}function pu(e,t){t=t||{};const n={};function r(l,d){return V.isPlainObject(l)&&V.isPlainObject(d)?V.merge(l,d):V.isPlainObject(d)?V.merge({},d):V.isArray(d)?d.slice():d}function i(l){if(V.isUndefined(t[l])){if(!V.isUndefined(e[l]))return r(void 0,e[l])}else return r(e[l],t[l])}function u(l){if(!V.isUndefined(t[l]))return r(void 0,t[l])}function s(l){if(V.isUndefined(t[l])){if(!V.isUndefined(e[l]))return r(void 0,e[l])}else return r(void 0,t[l])}function a(l){if(l in t)return r(e[l],t[l]);if(l in e)return r(void 0,e[l])}const o={url:u,method:u,data:u,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return V.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const p=o[d]||i,g=p(d);V.isUndefined(g)&&p!==a||(n[d]=g)}),n}const cm="1.1.2",v0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{v0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const jd={};v0.transitional=function(t,n,r){function i(u,s){return"[Axios v"+cm+"] Transitional option '"+u+"'"+s+(r?". "+r:"")}return(u,s,a)=>{if(t===!1)throw new re(i(s," has been removed"+(n?" in "+n:"")),re.ERR_DEPRECATED);return n&&!jd[s]&&(jd[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(u,s,a):!0}};function BE(e,t,n){if(typeof e!="object")throw new re("options must be an object",re.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const u=r[i],s=t[u];if(s){const a=e[u],o=a===void 0||s(a,u,e);if(o!==!0)throw new re("option "+u+" must be "+o,re.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new re("Unknown option "+u,re.ERR_BAD_OPTION)}}const dm={assertOptions:BE,validators:v0},xr=dm.validators;class rr{constructor(t){this.defaults=t,this.interceptors={request:new Ad,response:new Ad}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pu(this.defaults,n);const r=n.transitional;r!==void 0&&dm.assertOptions(r,{silentJSONParsing:xr.transitional(xr.boolean),forcedJSONParsing:xr.transitional(xr.boolean),clarifyTimeoutError:xr.transitional(xr.boolean)},!1),n.method=(n.method||this.defaults.method||"get").toLowerCase();const i=n.headers&&V.merge(n.headers.common,n.headers[n.method]);i&&V.forEach(["delete","get","head","post","put","patch","common"],function(v){delete n.headers[v]}),n.headers=new wt(n.headers,i);const u=[];let s=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(s=s&&v.synchronous,u.unshift(v.fulfilled,v.rejected))});const a=[];this.interceptors.response.forEach(function(v){a.push(v.fulfilled,v.rejected)});let o,l=0,d;if(!s){const g=[zd.bind(this),void 0];for(g.unshift.apply(g,u),g.push.apply(g,a),d=g.length,o=Promise.resolve(n);l{if(!r._listeners)return;let u=r._listeners.length;for(;u-- >0;)r._listeners[u](i);r._listeners=null}),this.promise.then=i=>{let u;const s=new Promise(a=>{r.subscribe(a),u=a}).then(i);return s.cancel=function(){r.unsubscribe(u)},s},t(function(u,s,a){r.reason||(r.reason=new Su(u,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new b0(function(i){t=i}),cancel:t}}}function IE(e){return function(n){return e.apply(null,n)}}function zE(e){return V.isObject(e)&&e.isAxiosError===!0}function fm(e){const t=new rr(e),n=q3(rr.prototype.request,t);return V.extend(n,rr.prototype,t,{allOwnKeys:!0}),V.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return fm(pu(e,i))},n}const Ge=fm(si);Ge.Axios=rr;Ge.CanceledError=Su;Ge.CancelToken=b0;Ge.isCancel=lm;Ge.VERSION=cm;Ge.toFormData=za;Ge.AxiosError=re;Ge.Cancel=Ge.CanceledError;Ge.all=function(t){return Promise.all(t)};Ge.spread=IE;Ge.isAxiosError=zE;Ge.formToJSON=e=>sm(V.isHTMLForm(e)?new FormData(e):e);class Be{constructor(t,n,r,i,u){gr(this,"destination");gr(this,"initialState");gr(this,"setState");gr(this,"setLoader");gr(this,"middleware",t=>t);this.destination=t,this.initialState=n,this.setState=r,this.setLoader=i,this.middleware=u}get(t,n=!1){try{return Ge.get(this.destination,t?{headers:t}:null).then(r=>{n&&this.setLoader(!0),this.setState(r.data)}).finally(()=>{n&&this.setLoader(!1)})}catch(r){throw new Error("Bad parameters",r)}}post(t,n=!1,r=!1){try{return Ge.post(this.destination,t).then(i=>{r&&this.setLoader(!0),n&&this.setState(i.data)}).finally(()=>{r&&this.setLoader(!1)})}catch(i){throw new Error("Bad parameters",i)}}}const hm="/assets/arrow-up.403bca16.svg",pm="/assets/arrow-down.6e85faaa.svg",jE=({active:e,onClick:t,title:n,priceChange:r,price:i,currency:u,titleHide:s})=>{const a=d=>{const p=Array.from(d);p.pop();let g="";return p.forEach(v=>{g=g+v}),parseFloat(g)},[o,l]=j.exports.useState();return j.exports.useEffect(()=>{l(a(r))},[r]),P("div",{className:`table-row ${e}`,onClick:()=>t(),children:[c("div",{className:`table-product-name ${s}`,children:n}),P("div",{className:"table-row-status",children:[c("div",{className:"table-row-arrow",children:c("img",{src:o>0?hm:o<0?pm:""})}),c("span",{className:o>0?"table-row-status-title green":o<0?"table-row-status-title red":"table-row-status-title",children:r})]}),P("div",{className:"table-product-price",children:[i," ",u]})]})},UE=({activeRow:e,setActiveRow:t,tabIndex:n,lang:r})=>{const[i,u]=j.exports.useState(),s=a=>{t(a)};return j.exports.useEffect(()=>{n&&new Be(`http://tmex.gov.tm:8765/api/categories/${n}/tradings`,i,u).get()},[n]),P("div",{className:"table",children:[P("div",{className:"table-top",children:[c("h4",{className:"table-title",children:r==="ru"?"\u0422\u043E\u0432\u0430\u0440\u043D\u0430\u044F \u043F\u043E\u0437\u0438\u0446\u0438\u044F":r==="tm"?"Harydy\u0148 ady":r==="en"?"Product name":null}),c("h4",{className:"table-title",children:r==="ru"?"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0446\u0435\u043D\u044B":r==="tm"?"Bahany\u0148 \xFC\xFDtge\xFD\u015Fi":r==="en"?"Price change":null}),c("h4",{className:"table-title",children:r==="ru"?"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0446\u0435\u043D\u0430":r==="tm"?"H\xE4zirki baha":r==="en"?"Current price":null})]}),c("div",{className:"table-bottom",children:i?i.data.map((a,o)=>c(jE,{title:a.title,titleHide:a.title.length>7?"title-hide":null,priceChange:a.price_change,price:a.price,currency:a.currency,onClick:()=>s(o),active:e===o?"active":""},a.id)):null})]})};/*! * Chart.js v3.9.1 * https://www.chartjs.org * (c) 2022 Chart.js Contributors * Released under the MIT License - */function Xt(){}const VE=function(){let e=0;return function(){return e++}}();function ie(e){return e===null||typeof e>"u"}function pe(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function ne(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}const Me=e=>(typeof e=="number"||e instanceof Number)&&isFinite(+e);function vt(e,t){return Me(e)?e:t}function ee(e,t){return typeof e>"u"?t:e}const WE=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:e/t,mm=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function be(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function ue(e,t,n,r){let i,u,s;if(pe(e))if(u=e.length,r)for(i=u-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function In(e,t){return(Ud[t]||(Ud[t]=KE(t)))(e)}function KE(e){const t=YE(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function YE(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function x0(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Pt=e=>typeof e<"u",zn=e=>typeof e=="function",Vd=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function qE(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const _e=Math.PI,oe=2*_e,XE=oe+_e,ra=Number.POSITIVE_INFINITY,GE=_e/180,Ee=_e/2,xi=_e/4,Wd=_e*2/3,Et=Math.log10,qt=Math.sign;function Hd(e){const t=Math.round(e);e=Ki(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Et(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function QE(e){const t=[],n=Math.sqrt(e);let r;for(r=1;ri-u).pop(),t}function Qr(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Ki(e,t,n){return Math.abs(e-t)=e}function ym(e,t,n){let r,i,u;for(r=0,i=e.length;ro&&l=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function _0(e,t,n){n=n||(s=>e[s]1;)u=i+r>>1,n(u)?i=u:r=u;return{lo:i,hi:r}}const er=(e,t,n,r)=>_0(e,n,r?i=>e[i][t]<=n:i=>e[i][t]_0(e,n,r=>e[r][t]>=n);function n_(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+x0(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...u){const s=i.apply(this,u);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...u)}),s}})})}function Kd(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(bm.forEach(u=>{delete e[u]}),delete e._chartjs)}function xm(e){const t=new Set;let n,r;for(n=0,r=e.length;n"u"?function(e){return e()}:window.requestAnimationFrame}();function _m(e,t,n){const r=n||(s=>Array.prototype.slice.call(s));let i=!1,u=[];return function(...s){u=r(s),i||(i=!0,Em.call(window,()=>{i=!1,e.apply(t,u)}))}}function i_(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const u_=e=>e==="start"?"left":e==="end"?"right":"center",Yd=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2;function wm(e,t,n){const r=t.length;let i=0,u=r;if(e._sorted){const{iScale:s,_parsed:a}=e,o=s.axis,{min:l,max:d,minDefined:p,maxDefined:g}=s.getUserBounds();p&&(i=We(Math.min(er(a,s.axis,l).lo,n?r:er(t,o,s.getPixelForValue(l)).lo),0,r-1)),g?u=We(Math.max(er(a,s.axis,d,!0).hi+1,n?0:er(t,o,s.getPixelForValue(d),!0).hi+1),i,r)-i:u=r-i}return{start:i,count:u}}function Dm(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const u=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),u}const es=e=>e===0||e===1,qd=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*oe/n)),Xd=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*oe/n)+1,Yi={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Ee)+1,easeOutSine:e=>Math.sin(e*Ee),easeInOutSine:e=>-.5*(Math.cos(_e*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>es(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>es(e)?e:qd(e,.075,.3),easeOutElastic:e=>es(e)?e:Xd(e,.075,.3),easeInOutElastic(e){return es(e)?e:e<.5?.5*qd(e*2,.1125,.45):.5+.5*Xd(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Yi.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Yi.easeInBounce(e*2)*.5:Yi.easeOutBounce(e*2-1)*.5+.5};/*! + */function qt(){}const VE=function(){let e=0;return function(){return e++}}();function ie(e){return e===null||typeof e>"u"}function pe(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function ne(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}const Me=e=>(typeof e=="number"||e instanceof Number)&&isFinite(+e);function yt(e,t){return Me(e)?e:t}function ee(e,t){return typeof e>"u"?t:e}const WE=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:e/t,mm=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function be(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function ue(e,t,n,r){let i,u,s;if(pe(e))if(u=e.length,r)for(i=u-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function Bn(e,t){return(Ud[t]||(Ud[t]=KE(t)))(e)}function KE(e){const t=YE(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function YE(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function x0(e){return e.charAt(0).toUpperCase()+e.slice(1)}const St=e=>typeof e<"u",In=e=>typeof e=="function",Vd=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function qE(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const _e=Math.PI,oe=2*_e,XE=oe+_e,ra=Number.POSITIVE_INFINITY,GE=_e/180,Ee=_e/2,xi=_e/4,Wd=_e*2/3,xt=Math.log10,Yt=Math.sign;function Hd(e){const t=Math.round(e);e=Ki(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(xt(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function QE(e){const t=[],n=Math.sqrt(e);let r;for(r=1;ri-u).pop(),t}function Qr(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Ki(e,t,n){return Math.abs(e-t)=e}function ym(e,t,n){let r,i,u;for(r=0,i=e.length;ro&&l=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function _0(e,t,n){n=n||(s=>e[s]1;)u=i+r>>1,n(u)?i=u:r=u;return{lo:i,hi:r}}const er=(e,t,n,r)=>_0(e,n,r?i=>e[i][t]<=n:i=>e[i][t]_0(e,n,r=>e[r][t]>=n);function n_(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+x0(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...u){const s=i.apply(this,u);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...u)}),s}})})}function Kd(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(bm.forEach(u=>{delete e[u]}),delete e._chartjs)}function xm(e){const t=new Set;let n,r;for(n=0,r=e.length;n"u"?function(e){return e()}:window.requestAnimationFrame}();function _m(e,t,n){const r=n||(s=>Array.prototype.slice.call(s));let i=!1,u=[];return function(...s){u=r(s),i||(i=!0,Em.call(window,()=>{i=!1,e.apply(t,u)}))}}function i_(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const u_=e=>e==="start"?"left":e==="end"?"right":"center",Yd=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2;function wm(e,t,n){const r=t.length;let i=0,u=r;if(e._sorted){const{iScale:s,_parsed:a}=e,o=s.axis,{min:l,max:d,minDefined:p,maxDefined:g}=s.getUserBounds();p&&(i=We(Math.min(er(a,s.axis,l).lo,n?r:er(t,o,s.getPixelForValue(l)).lo),0,r-1)),g?u=We(Math.max(er(a,s.axis,d,!0).hi+1,n?0:er(t,o,s.getPixelForValue(d),!0).hi+1),i,r)-i:u=r-i}return{start:i,count:u}}function Dm(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const u=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),u}const es=e=>e===0||e===1,qd=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*oe/n)),Xd=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*oe/n)+1,Yi={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Ee)+1,easeOutSine:e=>Math.sin(e*Ee),easeInOutSine:e=>-.5*(Math.cos(_e*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>es(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>es(e)?e:qd(e,.075,.3),easeOutElastic:e=>es(e)?e:Xd(e,.075,.3),easeInOutElastic(e){return es(e)?e:e<.5?.5*qd(e*2,.1125,.45):.5+.5*Xd(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Yi.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Yi.easeInBounce(e*2)*.5:Yi.easeOutBounce(e*2-1)*.5+.5};/*! * @kurkle/color v0.2.1 * https://github.com/kurkle/color#readme * (c) 2022 Jukka Kurkela * Released under the MIT License - */function Pu(e){return e+.5|0}const Dn=(e,t,n)=>Math.max(Math.min(e,n),t);function Ri(e){return Dn(Pu(e*2.55),0,255)}function Mn(e){return Dn(Pu(e*255),0,255)}function tn(e){return Dn(Pu(e/2.55)/100,0,1)}function Gd(e){return Dn(Pu(e*100),0,100)}const gt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ac=[..."0123456789ABCDEF"],s_=e=>ac[e&15],a_=e=>ac[(e&240)>>4]+ac[e&15],ts=e=>(e&240)>>4===(e&15),o_=e=>ts(e.r)&&ts(e.g)&&ts(e.b)&&ts(e.a);function l_(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255>[e[1]]*17,g:255>[e[2]]*17,b:255>[e[3]]*17,a:t===5?gt[e[4]]*17:255}:(t===7||t===9)&&(n={r:gt[e[1]]<<4|gt[e[2]],g:gt[e[3]]<<4|gt[e[4]],b:gt[e[5]]<<4|gt[e[6]],a:t===9?gt[e[7]]<<4|gt[e[8]]:255})),n}const c_=(e,t)=>e<255?t(e):"";function d_(e){var t=o_(e)?s_:a_;return e?"#"+t(e.r)+t(e.g)+t(e.b)+c_(e.a,t):void 0}const f_=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function km(e,t,n){const r=t*Math.min(n,1-n),i=(u,s=(u+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function h_(e,t,n){const r=(i,u=(i+e/60)%6)=>n-n*t*Math.max(Math.min(u,4-u,1),0);return[r(5),r(3),r(1)]}function p_(e,t,n){const r=km(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function m_(e,t,n,r,i){return e===i?(t-n)/r+(t.5?d/(2-u-s):d/(u+s),o=m_(n,r,i,d,u),o=o*60+.5),[o|0,l||0,a]}function D0(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Mn)}function k0(e,t,n){return D0(km,e,t,n)}function g_(e,t,n){return D0(p_,e,t,n)}function y_(e,t,n){return D0(h_,e,t,n)}function Sm(e){return(e%360+360)%360}function v_(e){const t=f_.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Ri(+t[5]):Mn(+t[5]));const i=Sm(+t[2]),u=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=g_(i,u,s):t[1]==="hsv"?r=y_(i,u,s):r=k0(i,u,s),{r:r[0],g:r[1],b:r[2],a:n}}function b_(e,t){var n=w0(e);n[0]=Sm(n[0]+t),n=k0(n),e.r=n[0],e.g=n[1],e.b=n[2]}function x_(e){if(!e)return;const t=w0(e),n=t[0],r=Gd(t[1]),i=Gd(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${tn(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const Qd={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Jd={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function E_(){const e={},t=Object.keys(Jd),n=Object.keys(Qd);let r,i,u,s,a;for(r=0;r>16&255,u>>8&255,u&255]}return e}let ns;function __(e){ns||(ns=E_(),ns.transparent=[0,0,0,0]);const t=ns[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const w_=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function D_(e){const t=w_.exec(e);let n=255,r,i,u;if(!!t){if(t[7]!==r){const s=+t[7];n=t[8]?Ri(s):Dn(s*255,0,255)}return r=+t[1],i=+t[3],u=+t[5],r=255&(t[2]?Ri(r):Dn(r,0,255)),i=255&(t[4]?Ri(i):Dn(i,0,255)),u=255&(t[6]?Ri(u):Dn(u,0,255)),{r,g:i,b:u,a:n}}}function k_(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${tn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Vo=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Er=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function S_(e,t,n){const r=Er(tn(e.r)),i=Er(tn(e.g)),u=Er(tn(e.b));return{r:Mn(Vo(r+n*(Er(tn(t.r))-r))),g:Mn(Vo(i+n*(Er(tn(t.g))-i))),b:Mn(Vo(u+n*(Er(tn(t.b))-u))),a:e.a+n*(t.a-e.a)}}function rs(e,t,n){if(e){let r=w0(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=k0(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Pm(e,t){return e&&Object.assign(t||{},e)}function Zd(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Mn(e[3]))):(t=Pm(e,{r:0,g:0,b:0,a:1}),t.a=Mn(t.a)),t}function P_(e){return e.charAt(0)==="r"?D_(e):v_(e)}class ua{constructor(t){if(t instanceof ua)return t;const n=typeof t;let r;n==="object"?r=Zd(t):n==="string"&&(r=l_(t)||__(t)||P_(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=Pm(this._rgb);return t&&(t.a=tn(t.a)),t}set rgb(t){this._rgb=Zd(t)}rgbString(){return this._valid?k_(this._rgb):void 0}hexString(){return this._valid?d_(this._rgb):void 0}hslString(){return this._valid?x_(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let u;const s=n===u?.5:n,a=2*s-1,o=r.a-i.a,l=((a*o===-1?a:(a+o)/(1+a*o))+1)/2;u=1-l,r.r=255&l*r.r+u*i.r+.5,r.g=255&l*r.g+u*i.g+.5,r.b=255&l*r.b+u*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=S_(this._rgb,t._rgb,n)),this}clone(){return new ua(this.rgb)}alpha(t){return this._rgb.a=Mn(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Pu(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return rs(this._rgb,2,t),this}darken(t){return rs(this._rgb,2,-t),this}saturate(t){return rs(this._rgb,1,t),this}desaturate(t){return rs(this._rgb,1,-t),this}rotate(t){return b_(this._rgb,t),this}}function Cm(e){return new ua(e)}function Om(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function ef(e){return Om(e)?e:Cm(e)}function Wo(e){return Om(e)?e:Cm(e).saturate(.5).darken(.1).hexString()}const dr=Object.create(null),oc=Object.create(null);function qi(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rn.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,r)=>Wo(r.backgroundColor),this.hoverBorderColor=(n,r)=>Wo(r.borderColor),this.hoverColor=(n,r)=>Wo(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,n){return Ho(this,t,n)}get(t){return qi(this,t)}describe(t,n){return Ho(oc,t,n)}override(t,n){return Ho(dr,t,n)}route(t,n,r,i){const u=qi(this,t),s=qi(this,r),a="_"+n;Object.defineProperties(u,{[a]:{value:u[n],writable:!0},[n]:{enumerable:!0,get(){const o=this[a],l=s[i];return ne(o)?Object.assign({},l,o):ee(o,l)},set(o){this[a]=o}}})}}var Z=new C_({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function O_(e){return!e||ie(e.size)||ie(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function sa(e,t,n,r,i){let u=t[i];return u||(u=t[i]=e.measureText(i).width,n.push(i)),u>r&&(r=u),r}function F_(e,t,n,r){r=r||{};let i=r.data=r.data||{},u=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},u=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const a=n.length;let o,l,d,p,g;for(o=0;on.length){for(o=0;o0&&e.stroke()}}function yu(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&u.strokeColor!=="";let o,l;for(e.save(),e.font=i.string,T_(e,u),o=0;o+e||0;function S0(e,t){const n={},r=ne(t),i=r?Object.keys(t):t,u=ne(e)?r?s=>ee(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of i)n[s]=z_(u(s));return n}function Am(e){return S0(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Vr(e){return S0(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Ct(e){const t=Am(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function ct(e,t){e=e||{},t=t||Z.font;let n=ee(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=ee(e.style,t.style);r&&!(""+r).match(B_)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const i={family:ee(e.family,t.family),lineHeight:I_(ee(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:ee(e.weight,t.weight),string:""};return i.string=O_(i),i}function is(e,t,n,r){let i=!0,u,s,a;for(u=0,s=e.length;un&&a===0?0:a+o;return{min:s(r,-Math.abs(u)),max:s(i,u)}}function Wn(e,t){return Object.assign(Object.create(e),t)}function P0(e,t=[""],n=e,r,i=()=>e[0]){Pt(r)||(r=Lm("_fallback",e));const u={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:i,override:s=>P0([s,...e],t,n,r)};return new Proxy(u,{deleteProperty(s,a){return delete s[a],delete s._keys,delete e[0][a],!0},get(s,a){return Tm(s,a,()=>q_(a,t,e,s))},getOwnPropertyDescriptor(s,a){return Reflect.getOwnPropertyDescriptor(s._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,a){return rf(s).includes(a)},ownKeys(s){return rf(s)},set(s,a,o){const l=s._storage||(s._storage=i());return s[a]=l[a]=o,delete s._keys,!0}})}function Jr(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Rm(e,r),setContext:u=>Jr(e,u,n,r),override:u=>Jr(e.override(u),t,n,r)};return new Proxy(i,{deleteProperty(u,s){return delete u[s],delete e[s],!0},get(u,s,a){return Tm(u,s,()=>V_(u,s,a))},getOwnPropertyDescriptor(u,s){return u._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(u,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(u,s,a){return e[s]=a,delete u[s],!0}})}function Rm(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:zn(n)?n:()=>n,isIndexable:zn(r)?r:()=>r}}const U_=(e,t)=>e?e+x0(t):t,C0=(e,t)=>ne(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Tm(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function V_(e,t,n){const{_proxy:r,_context:i,_subProxy:u,_descriptors:s}=e;let a=r[t];return zn(a)&&s.isScriptable(t)&&(a=W_(t,a,e,n)),pe(a)&&a.length&&(a=H_(t,a,e,s.isIndexable)),C0(t,a)&&(a=Jr(a,i,u&&u[t],s)),a}function W_(e,t,n,r){const{_proxy:i,_context:u,_subProxy:s,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);return a.add(e),t=t(u,s||r),a.delete(e),C0(e,t)&&(t=O0(i._scopes,i,e,t)),t}function H_(e,t,n,r){const{_proxy:i,_context:u,_subProxy:s,_descriptors:a}=n;if(Pt(u.index)&&r(e))t=t[u.index%t.length];else if(ne(t[0])){const o=t,l=i._scopes.filter(d=>d!==o);t=[];for(const d of o){const p=O0(l,i,e,d);t.push(Jr(p,u,s&&s[e],a))}}return t}function Mm(e,t,n){return zn(e)?e(t,n):e}const $_=(e,t)=>e===!0?t:typeof e=="string"?In(t,e):void 0;function K_(e,t,n,r,i){for(const u of t){const s=$_(n,u);if(s){e.add(s);const a=Mm(s._fallback,n,i);if(Pt(a)&&a!==n&&a!==r)return a}else if(s===!1&&Pt(r)&&n!==r)return null}return!1}function O0(e,t,n,r){const i=t._rootScopes,u=Mm(t._fallback,n,r),s=[...e,...i],a=new Set;a.add(r);let o=nf(a,s,n,u||n,r);return o===null||Pt(u)&&u!==n&&(o=nf(a,s,u,o,r),o===null)?!1:P0(Array.from(a),[""],i,u,()=>Y_(t,n,r))}function nf(e,t,n,r,i){for(;n;)n=K_(e,t,n,r,i);return n}function Y_(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return pe(i)&&ne(n)?n:i}function q_(e,t,n,r){let i;for(const u of t)if(i=Lm(U_(u,e),n),Pt(i))return C0(e,i)?O0(n,r,e,i):i}function Lm(e,t){for(const n of t){if(!n)continue;const r=n[e];if(Pt(r))return r}}function rf(e){let t=e._keys;return t||(t=e._keys=X_(e._scopes)),t}function X_(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function Bm(e,t,n,r){const{iScale:i}=e,{key:u="r"}=this._parsing,s=new Array(r);let a,o,l,d;for(a=0,o=r;ate==="x"?"y":"x";function Q_(e,t,n,r){const i=e.skip?t:e,u=t,s=n.skip?t:n,a=sc(u,i),o=sc(s,u);let l=a/(a+o),d=o/(a+o);l=isNaN(l)?0:l,d=isNaN(d)?0:d;const p=r*l,g=r*d;return{previous:{x:u.x-p*(s.x-i.x),y:u.y-p*(s.y-i.y)},next:{x:u.x+g*(s.x-i.x),y:u.y+g*(s.y-i.y)}}}function J_(e,t,n){const r=e.length;let i,u,s,a,o,l=Zr(e,0);for(let d=0;d!l.skip)),t.cubicInterpolationMode==="monotone")ew(e,i);else{let l=r?e[e.length-1]:e[0];for(u=0,s=e.length;uwindow.getComputedStyle(e,null);function rw(e,t){return ja(e).getPropertyValue(t)}const iw=["top","right","bottom","left"];function ir(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const u=iw[i];r[u]=parseFloat(e[t+"-"+u+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const uw=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function sw(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:u}=r;let s=!1,a,o;if(uw(i,u,e.target))a=i,o=u;else{const l=t.getBoundingClientRect();a=r.clientX-l.left,o=r.clientY-l.top,s=!0}return{x:a,y:o,box:s}}function qn(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=ja(n),u=i.boxSizing==="border-box",s=ir(i,"padding"),a=ir(i,"border","width"),{x:o,y:l,box:d}=sw(e,n),p=s.left+(d&&a.left),g=s.top+(d&&a.top);let{width:v,height:b}=t;return u&&(v-=s.width+a.width,b-=s.height+a.height),{x:Math.round((o-p)/v*n.width/r),y:Math.round((l-g)/b*n.height/r)}}function aw(e,t,n){let r,i;if(t===void 0||n===void 0){const u=F0(e);if(!u)t=e.clientWidth,n=e.clientHeight;else{const s=u.getBoundingClientRect(),a=ja(u),o=ir(a,"border","width"),l=ir(a,"padding");t=s.width-l.width-o.width,n=s.height-l.height-o.height,r=la(a.maxWidth,u,"clientWidth"),i=la(a.maxHeight,u,"clientHeight")}}return{width:t,height:n,maxWidth:r||ra,maxHeight:i||ra}}const $o=e=>Math.round(e*10)/10;function ow(e,t,n,r){const i=ja(e),u=ir(i,"margin"),s=la(i.maxWidth,e,"clientWidth")||ra,a=la(i.maxHeight,e,"clientHeight")||ra,o=aw(e,t,n);let{width:l,height:d}=o;if(i.boxSizing==="content-box"){const p=ir(i,"border","width"),g=ir(i,"padding");l-=g.width+p.width,d-=g.height+p.height}return l=Math.max(0,l-u.width),d=Math.max(0,r?Math.floor(l/r):d-u.height),l=$o(Math.min(l,s,o.maxWidth)),d=$o(Math.min(d,a,o.maxHeight)),l&&!d&&(d=$o(l/2)),{width:l,height:d}}function uf(e,t,n){const r=t||1,i=Math.floor(e.height*r),u=Math.floor(e.width*r);e.height=i/r,e.width=u/r;const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==i||s.width!==u?(e.currentDevicePixelRatio=r,s.height=i,s.width=u,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const lw=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function sf(e,t){const n=rw(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Xn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function cw(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function dw(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},u={x:t.cp1x,y:t.cp1y},s=Xn(e,i,n),a=Xn(i,u,n),o=Xn(u,t,n),l=Xn(s,a,n),d=Xn(a,o,n);return Xn(l,d,n)}const af=new Map;function fw(e,t){t=t||{};const n=e+JSON.stringify(t);let r=af.get(n);return r||(r=new Intl.NumberFormat(e,t),af.set(n,r)),r}function Cu(e,t,n){return fw(t,n).format(e)}const hw=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},pw=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Ko(e,t,n){return e?hw(t,n):pw()}function mw(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function gw(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function jm(e){return e==="angle"?{between:gu,compare:ZE,normalize:At}:{between:ia,compare:(t,n)=>t-n,normalize:t=>t}}function of({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function yw(e,t,n){const{property:r,start:i,end:u}=n,{between:s,normalize:a}=jm(r),o=t.length;let{start:l,end:d,loop:p}=e,g,v;if(p){for(l+=o,d+=o,g=0,v=o;go(i,w,x)&&a(i,w)!==0,D=()=>a(u,x)===0||o(u,w,x),P=()=>k||T(),y=()=>!k||D();for(let f=d,m=d;f<=p;++f)_=t[f%s],!_.skip&&(x=l(_[r]),x!==w&&(k=o(x,i,u),O===null&&P()&&(O=a(x,i)===0?f:m),O!==null&&y()&&(b.push(of({start:O,end:f,loop:g,count:s,style:v})),O=null),m=f,w=x));return O!==null&&b.push(of({start:O,end:p,loop:g,count:s,style:v})),b}function bw(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[u%t].skip;)u--;return u%=t,{start:i,end:u}}function Ew(e,t,n,r){const i=e.length,u=[];let s=t,a=e[t],o;for(o=t+1;o<=n;++o){const l=e[o%i];l.skip||l.stop?a.skip||(r=!1,u.push({start:t%i,end:(o-1)%i,loop:r}),t=s=l.stop?o:null):(s=o,a.skip&&(t=o)),a=l}return s!==null&&u.push({start:t%i,end:s%i,loop:r}),u}function _w(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const u=!!e._loop,{start:s,end:a}=xw(n,i,u,r);if(r===!0)return lf(e,[{start:s,end:a,loop:u}],n,t);const o=aMath.max(Math.min(e,n),t);function Ri(e){return wn(Pu(e*2.55),0,255)}function Tn(e){return wn(Pu(e*255),0,255)}function en(e){return wn(Pu(e/2.55)/100,0,1)}function Gd(e){return wn(Pu(e*100),0,100)}const mt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ac=[..."0123456789ABCDEF"],s_=e=>ac[e&15],a_=e=>ac[(e&240)>>4]+ac[e&15],ts=e=>(e&240)>>4===(e&15),o_=e=>ts(e.r)&&ts(e.g)&&ts(e.b)&&ts(e.a);function l_(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&mt[e[1]]*17,g:255&mt[e[2]]*17,b:255&mt[e[3]]*17,a:t===5?mt[e[4]]*17:255}:(t===7||t===9)&&(n={r:mt[e[1]]<<4|mt[e[2]],g:mt[e[3]]<<4|mt[e[4]],b:mt[e[5]]<<4|mt[e[6]],a:t===9?mt[e[7]]<<4|mt[e[8]]:255})),n}const c_=(e,t)=>e<255?t(e):"";function d_(e){var t=o_(e)?s_:a_;return e?"#"+t(e.r)+t(e.g)+t(e.b)+c_(e.a,t):void 0}const f_=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function km(e,t,n){const r=t*Math.min(n,1-n),i=(u,s=(u+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function h_(e,t,n){const r=(i,u=(i+e/60)%6)=>n-n*t*Math.max(Math.min(u,4-u,1),0);return[r(5),r(3),r(1)]}function p_(e,t,n){const r=km(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function m_(e,t,n,r,i){return e===i?(t-n)/r+(t.5?d/(2-u-s):d/(u+s),o=m_(n,r,i,d,u),o=o*60+.5),[o|0,l||0,a]}function D0(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Tn)}function k0(e,t,n){return D0(km,e,t,n)}function g_(e,t,n){return D0(p_,e,t,n)}function y_(e,t,n){return D0(h_,e,t,n)}function Sm(e){return(e%360+360)%360}function v_(e){const t=f_.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Ri(+t[5]):Tn(+t[5]));const i=Sm(+t[2]),u=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=g_(i,u,s):t[1]==="hsv"?r=y_(i,u,s):r=k0(i,u,s),{r:r[0],g:r[1],b:r[2],a:n}}function b_(e,t){var n=w0(e);n[0]=Sm(n[0]+t),n=k0(n),e.r=n[0],e.g=n[1],e.b=n[2]}function x_(e){if(!e)return;const t=w0(e),n=t[0],r=Gd(t[1]),i=Gd(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${en(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const Qd={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Jd={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function E_(){const e={},t=Object.keys(Jd),n=Object.keys(Qd);let r,i,u,s,a;for(r=0;r>16&255,u>>8&255,u&255]}return e}let ns;function __(e){ns||(ns=E_(),ns.transparent=[0,0,0,0]);const t=ns[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const w_=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function D_(e){const t=w_.exec(e);let n=255,r,i,u;if(!!t){if(t[7]!==r){const s=+t[7];n=t[8]?Ri(s):wn(s*255,0,255)}return r=+t[1],i=+t[3],u=+t[5],r=255&(t[2]?Ri(r):wn(r,0,255)),i=255&(t[4]?Ri(i):wn(i,0,255)),u=255&(t[6]?Ri(u):wn(u,0,255)),{r,g:i,b:u,a:n}}}function k_(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${en(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Vo=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Er=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function S_(e,t,n){const r=Er(en(e.r)),i=Er(en(e.g)),u=Er(en(e.b));return{r:Tn(Vo(r+n*(Er(en(t.r))-r))),g:Tn(Vo(i+n*(Er(en(t.g))-i))),b:Tn(Vo(u+n*(Er(en(t.b))-u))),a:e.a+n*(t.a-e.a)}}function rs(e,t,n){if(e){let r=w0(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=k0(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Pm(e,t){return e&&Object.assign(t||{},e)}function Zd(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Tn(e[3]))):(t=Pm(e,{r:0,g:0,b:0,a:1}),t.a=Tn(t.a)),t}function P_(e){return e.charAt(0)==="r"?D_(e):v_(e)}class ua{constructor(t){if(t instanceof ua)return t;const n=typeof t;let r;n==="object"?r=Zd(t):n==="string"&&(r=l_(t)||__(t)||P_(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=Pm(this._rgb);return t&&(t.a=en(t.a)),t}set rgb(t){this._rgb=Zd(t)}rgbString(){return this._valid?k_(this._rgb):void 0}hexString(){return this._valid?d_(this._rgb):void 0}hslString(){return this._valid?x_(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let u;const s=n===u?.5:n,a=2*s-1,o=r.a-i.a,l=((a*o===-1?a:(a+o)/(1+a*o))+1)/2;u=1-l,r.r=255&l*r.r+u*i.r+.5,r.g=255&l*r.g+u*i.g+.5,r.b=255&l*r.b+u*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=S_(this._rgb,t._rgb,n)),this}clone(){return new ua(this.rgb)}alpha(t){return this._rgb.a=Tn(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Pu(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return rs(this._rgb,2,t),this}darken(t){return rs(this._rgb,2,-t),this}saturate(t){return rs(this._rgb,1,t),this}desaturate(t){return rs(this._rgb,1,-t),this}rotate(t){return b_(this._rgb,t),this}}function Cm(e){return new ua(e)}function Om(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function ef(e){return Om(e)?e:Cm(e)}function Wo(e){return Om(e)?e:Cm(e).saturate(.5).darken(.1).hexString()}const dr=Object.create(null),oc=Object.create(null);function qi(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rn.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,r)=>Wo(r.backgroundColor),this.hoverBorderColor=(n,r)=>Wo(r.borderColor),this.hoverColor=(n,r)=>Wo(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,n){return Ho(this,t,n)}get(t){return qi(this,t)}describe(t,n){return Ho(oc,t,n)}override(t,n){return Ho(dr,t,n)}route(t,n,r,i){const u=qi(this,t),s=qi(this,r),a="_"+n;Object.defineProperties(u,{[a]:{value:u[n],writable:!0},[n]:{enumerable:!0,get(){const o=this[a],l=s[i];return ne(o)?Object.assign({},l,o):ee(o,l)},set(o){this[a]=o}}})}}var Z=new C_({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function O_(e){return!e||ie(e.size)||ie(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function sa(e,t,n,r,i){let u=t[i];return u||(u=t[i]=e.measureText(i).width,n.push(i)),u>r&&(r=u),r}function F_(e,t,n,r){r=r||{};let i=r.data=r.data||{},u=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},u=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const a=n.length;let o,l,d,p,g;for(o=0;on.length){for(o=0;o0&&e.stroke()}}function yu(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&u.strokeColor!=="";let o,l;for(e.save(),e.font=i.string,T_(e,u),o=0;o+e||0;function S0(e,t){const n={},r=ne(t),i=r?Object.keys(t):t,u=ne(e)?r?s=>ee(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of i)n[s]=z_(u(s));return n}function Am(e){return S0(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Vr(e){return S0(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Pt(e){const t=Am(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function lt(e,t){e=e||{},t=t||Z.font;let n=ee(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=ee(e.style,t.style);r&&!(""+r).match(B_)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const i={family:ee(e.family,t.family),lineHeight:I_(ee(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:ee(e.weight,t.weight),string:""};return i.string=O_(i),i}function is(e,t,n,r){let i=!0,u,s,a;for(u=0,s=e.length;un&&a===0?0:a+o;return{min:s(r,-Math.abs(u)),max:s(i,u)}}function Vn(e,t){return Object.assign(Object.create(e),t)}function P0(e,t=[""],n=e,r,i=()=>e[0]){St(r)||(r=Lm("_fallback",e));const u={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:i,override:s=>P0([s,...e],t,n,r)};return new Proxy(u,{deleteProperty(s,a){return delete s[a],delete s._keys,delete e[0][a],!0},get(s,a){return Tm(s,a,()=>q_(a,t,e,s))},getOwnPropertyDescriptor(s,a){return Reflect.getOwnPropertyDescriptor(s._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,a){return rf(s).includes(a)},ownKeys(s){return rf(s)},set(s,a,o){const l=s._storage||(s._storage=i());return s[a]=l[a]=o,delete s._keys,!0}})}function Jr(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Rm(e,r),setContext:u=>Jr(e,u,n,r),override:u=>Jr(e.override(u),t,n,r)};return new Proxy(i,{deleteProperty(u,s){return delete u[s],delete e[s],!0},get(u,s,a){return Tm(u,s,()=>V_(u,s,a))},getOwnPropertyDescriptor(u,s){return u._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(u,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(u,s,a){return e[s]=a,delete u[s],!0}})}function Rm(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:In(n)?n:()=>n,isIndexable:In(r)?r:()=>r}}const U_=(e,t)=>e?e+x0(t):t,C0=(e,t)=>ne(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Tm(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function V_(e,t,n){const{_proxy:r,_context:i,_subProxy:u,_descriptors:s}=e;let a=r[t];return In(a)&&s.isScriptable(t)&&(a=W_(t,a,e,n)),pe(a)&&a.length&&(a=H_(t,a,e,s.isIndexable)),C0(t,a)&&(a=Jr(a,i,u&&u[t],s)),a}function W_(e,t,n,r){const{_proxy:i,_context:u,_subProxy:s,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);return a.add(e),t=t(u,s||r),a.delete(e),C0(e,t)&&(t=O0(i._scopes,i,e,t)),t}function H_(e,t,n,r){const{_proxy:i,_context:u,_subProxy:s,_descriptors:a}=n;if(St(u.index)&&r(e))t=t[u.index%t.length];else if(ne(t[0])){const o=t,l=i._scopes.filter(d=>d!==o);t=[];for(const d of o){const p=O0(l,i,e,d);t.push(Jr(p,u,s&&s[e],a))}}return t}function Mm(e,t,n){return In(e)?e(t,n):e}const $_=(e,t)=>e===!0?t:typeof e=="string"?Bn(t,e):void 0;function K_(e,t,n,r,i){for(const u of t){const s=$_(n,u);if(s){e.add(s);const a=Mm(s._fallback,n,i);if(St(a)&&a!==n&&a!==r)return a}else if(s===!1&&St(r)&&n!==r)return null}return!1}function O0(e,t,n,r){const i=t._rootScopes,u=Mm(t._fallback,n,r),s=[...e,...i],a=new Set;a.add(r);let o=nf(a,s,n,u||n,r);return o===null||St(u)&&u!==n&&(o=nf(a,s,u,o,r),o===null)?!1:P0(Array.from(a),[""],i,u,()=>Y_(t,n,r))}function nf(e,t,n,r,i){for(;n;)n=K_(e,t,n,r,i);return n}function Y_(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return pe(i)&&ne(n)?n:i}function q_(e,t,n,r){let i;for(const u of t)if(i=Lm(U_(u,e),n),St(i))return C0(e,i)?O0(n,r,e,i):i}function Lm(e,t){for(const n of t){if(!n)continue;const r=n[e];if(St(r))return r}}function rf(e){let t=e._keys;return t||(t=e._keys=X_(e._scopes)),t}function X_(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function Bm(e,t,n,r){const{iScale:i}=e,{key:u="r"}=this._parsing,s=new Array(r);let a,o,l,d;for(a=0,o=r;ate==="x"?"y":"x";function Q_(e,t,n,r){const i=e.skip?t:e,u=t,s=n.skip?t:n,a=sc(u,i),o=sc(s,u);let l=a/(a+o),d=o/(a+o);l=isNaN(l)?0:l,d=isNaN(d)?0:d;const p=r*l,g=r*d;return{previous:{x:u.x-p*(s.x-i.x),y:u.y-p*(s.y-i.y)},next:{x:u.x+g*(s.x-i.x),y:u.y+g*(s.y-i.y)}}}function J_(e,t,n){const r=e.length;let i,u,s,a,o,l=Zr(e,0);for(let d=0;d!l.skip)),t.cubicInterpolationMode==="monotone")ew(e,i);else{let l=r?e[e.length-1]:e[0];for(u=0,s=e.length;uwindow.getComputedStyle(e,null);function rw(e,t){return ja(e).getPropertyValue(t)}const iw=["top","right","bottom","left"];function ir(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const u=iw[i];r[u]=parseFloat(e[t+"-"+u+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const uw=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function sw(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:u}=r;let s=!1,a,o;if(uw(i,u,e.target))a=i,o=u;else{const l=t.getBoundingClientRect();a=r.clientX-l.left,o=r.clientY-l.top,s=!0}return{x:a,y:o,box:s}}function qn(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=ja(n),u=i.boxSizing==="border-box",s=ir(i,"padding"),a=ir(i,"border","width"),{x:o,y:l,box:d}=sw(e,n),p=s.left+(d&&a.left),g=s.top+(d&&a.top);let{width:v,height:b}=t;return u&&(v-=s.width+a.width,b-=s.height+a.height),{x:Math.round((o-p)/v*n.width/r),y:Math.round((l-g)/b*n.height/r)}}function aw(e,t,n){let r,i;if(t===void 0||n===void 0){const u=F0(e);if(!u)t=e.clientWidth,n=e.clientHeight;else{const s=u.getBoundingClientRect(),a=ja(u),o=ir(a,"border","width"),l=ir(a,"padding");t=s.width-l.width-o.width,n=s.height-l.height-o.height,r=la(a.maxWidth,u,"clientWidth"),i=la(a.maxHeight,u,"clientHeight")}}return{width:t,height:n,maxWidth:r||ra,maxHeight:i||ra}}const $o=e=>Math.round(e*10)/10;function ow(e,t,n,r){const i=ja(e),u=ir(i,"margin"),s=la(i.maxWidth,e,"clientWidth")||ra,a=la(i.maxHeight,e,"clientHeight")||ra,o=aw(e,t,n);let{width:l,height:d}=o;if(i.boxSizing==="content-box"){const p=ir(i,"border","width"),g=ir(i,"padding");l-=g.width+p.width,d-=g.height+p.height}return l=Math.max(0,l-u.width),d=Math.max(0,r?Math.floor(l/r):d-u.height),l=$o(Math.min(l,s,o.maxWidth)),d=$o(Math.min(d,a,o.maxHeight)),l&&!d&&(d=$o(l/2)),{width:l,height:d}}function uf(e,t,n){const r=t||1,i=Math.floor(e.height*r),u=Math.floor(e.width*r);e.height=i/r,e.width=u/r;const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==i||s.width!==u?(e.currentDevicePixelRatio=r,s.height=i,s.width=u,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const lw=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function sf(e,t){const n=rw(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Xn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function cw(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function dw(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},u={x:t.cp1x,y:t.cp1y},s=Xn(e,i,n),a=Xn(i,u,n),o=Xn(u,t,n),l=Xn(s,a,n),d=Xn(a,o,n);return Xn(l,d,n)}const af=new Map;function fw(e,t){t=t||{};const n=e+JSON.stringify(t);let r=af.get(n);return r||(r=new Intl.NumberFormat(e,t),af.set(n,r)),r}function Cu(e,t,n){return fw(t,n).format(e)}const hw=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},pw=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Ko(e,t,n){return e?hw(t,n):pw()}function mw(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function gw(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function jm(e){return e==="angle"?{between:gu,compare:ZE,normalize:Nt}:{between:ia,compare:(t,n)=>t-n,normalize:t=>t}}function of({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function yw(e,t,n){const{property:r,start:i,end:u}=n,{between:s,normalize:a}=jm(r),o=t.length;let{start:l,end:d,loop:p}=e,g,v;if(p){for(l+=o,d+=o,g=0,v=o;go(i,w,x)&&a(i,w)!==0,D=()=>a(u,x)===0||o(u,w,x),S=()=>k||T(),y=()=>!k||D();for(let f=d,m=d;f<=p;++f)_=t[f%s],!_.skip&&(x=l(_[r]),x!==w&&(k=o(x,i,u),O===null&&S()&&(O=a(x,i)===0?f:m),O!==null&&y()&&(b.push(of({start:O,end:f,loop:g,count:s,style:v})),O=null),m=f,w=x));return O!==null&&b.push(of({start:O,end:p,loop:g,count:s,style:v})),b}function bw(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[u%t].skip;)u--;return u%=t,{start:i,end:u}}function Ew(e,t,n,r){const i=e.length,u=[];let s=t,a=e[t],o;for(o=t+1;o<=n;++o){const l=e[o%i];l.skip||l.stop?a.skip||(r=!1,u.push({start:t%i,end:(o-1)%i,loop:r}),t=s=l.stop?o:null):(s=o,a.skip&&(t=o)),a=l}return s!==null&&u.push({start:t%i,end:s%i,loop:r}),u}function _w(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const u=!!e._loop,{start:s,end:a}=xw(n,i,u,r);if(r===!0)return lf(e,[{start:s,end:a,loop:u}],n,t);const o=aa({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=Em.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const u=r.items;let s=u.length-1,a=!1,o;for(;s>=0;--s)o=u[s],o._active?(o._total>r.duration&&(r.duration=o._total),o.tick(t),a=!0):(u[s]=u[u.length-1],u.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),u.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=u.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Gt=new kw;const df="transparent",Sw={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=ef(e||df),i=r.valid&&ef(t||df);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Pw{constructor(t,n,r,i){const u=n[r];i=is([t.to,i,u,t.from]);const s=is([t.from,u,i]);this._active=!0,this._fn=t.fn||Sw[t.type||typeof s],this._easing=Yi[t.easing]||Yi.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],u=r-this._start,s=this._duration-u;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=u,this._loop=!!t.loop,this._to=is([t.to,n,i,t.from]),this._from=is([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,u=this._from,s=this._loop,a=this._to;let o;if(this._active=u!==a&&(s||n1?2-o:o,o=this._easing(Math.min(1,Math.max(0,o))),this._target[i]=this._fn(u,a,o)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;ie!=="onProgress"&&e!=="onComplete"&&e!=="fn"});Z.set("animations",{colors:{type:"color",properties:Ow},numbers:{type:"number",properties:Cw}});Z.describe("animations",{_fallback:"animation"});Z.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}});class Um{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!ne(t))return;const n=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const i=t[r];if(!ne(i))return;const u={};for(const s of Fw)u[s]=i[s];(pe(i.properties)&&i.properties||[r]).forEach(s=>{(s===r||!n.has(s))&&n.set(s,u)})})}_animateOptions(t,n){const r=n.options,i=Aw(t,r);if(!i)return[];const u=this._createAnimations(i,r);return r.$shared&&Nw(t.options.$animations,r).then(()=>{t.options=r},()=>{}),u}_createAnimations(t,n){const r=this._properties,i=[],u=t.$animations||(t.$animations={}),s=Object.keys(n),a=Date.now();let o;for(o=s.length-1;o>=0;--o){const l=s[o];if(l.charAt(0)==="$")continue;if(l==="options"){i.push(...this._animateOptions(t,n));continue}const d=n[l];let p=u[l];const g=r.get(l);if(p)if(g&&p.active()){p.update(g,d,a);continue}else p.cancel();if(!g||!g.duration){t[l]=d;continue}u[l]=p=new Pw(g,t,l,d),i.push(p)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Gt.add(this._chart,r),!0}}function Nw(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&u<0)return i.index}return null}function gf(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:u,vScale:s,index:a}=r,o=u.axis,l=s.axis,d=Lw(u,s,r),p=t.length;let g;for(let v=0;vn[r].axis===t).shift()}function zw(e,t){return Wn(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function jw(e,t,n){return Wn(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Ei(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(!!r){t=t||e._parsed;for(const i of t){const u=i._stacks;if(!u||u[r]===void 0||u[r][n]===void 0)return;delete u[r][n]}}}const qo=e=>e==="reset"||e==="none",yf=(e,t)=>t?e:Object.assign({},e),Uw=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Vm(n,!0),values:null};class It{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=pf(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Ei(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(p,g,v,b)=>p==="x"?g:p==="r"?b:v,u=n.xAxisID=ee(r.xAxisID,Yo(t,"x")),s=n.yAxisID=ee(r.yAxisID,Yo(t,"y")),a=n.rAxisID=ee(r.rAxisID,Yo(t,"r")),o=n.indexAxis,l=n.iAxisID=i(o,u,s,a),d=n.vAxisID=i(o,s,u,a);n.xScale=this.getScaleForId(u),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(l),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Kd(this._data,this),t._stacked&&Ei(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(ne(n))this._data=Mw(n);else if(r!==n){if(r){Kd(r,this);const i=this._cachedMeta;Ei(i),i._parsed=[]}n&&Object.isExtensible(n)&&r_(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const u=n._stacked;n._stacked=pf(n.vScale,n),n.stack!==r.stack&&(i=!0,Ei(n),n.stack=r.stack),this._resyncElements(t),(i||u!==n._stacked)&&gf(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:u,_stacked:s}=r,a=u.axis;let o=t===0&&n===i.length?!0:r._sorted,l=t>0&&r._parsed[t-1],d,p,g;if(this._parsing===!1)r._parsed=i,r._sorted=!0,g=i;else{pe(i[t])?g=this.parseArrayData(r,i,t,n):ne(i[t])?g=this.parseObjectData(r,i,t,n):g=this.parsePrimitiveData(r,i,t,n);const v=()=>p[a]===null||l&&p[a]k||p=0;--g)if(!b()){this.updateRangeFromParsed(l,t,v,o);break}}return l}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,u,s;for(i=0,u=n.length;i=0&&tthis.getContext(r,i),k=l.resolveNamedOptions(g,v,b,p);return k.$shared&&(k.$shared=o,u[s]=Object.freeze(yf(k,o))),k}_resolveAnimations(t,n,r){const i=this.chart,u=this._cachedDataOpts,s=`animation-${n}`,a=u[s];if(a)return a;let o;if(i.options.animation!==!1){const d=this.chart.config,p=d.datasetAnimationScopeKeys(this._type,n),g=d.getOptionScopes(this.getDataset(),p);o=d.createResolver(g,this.getContext(t,r,n))}const l=new Um(i,o&&o.animations);return o&&o._cacheable&&(u[s]=Object.freeze(l)),l}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||qo(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,u=this.getSharedOptions(r),s=this.includeOptions(n,u)||u!==i;return this.updateSharedOptions(u,n,r),{sharedOptions:u,includeOptions:s}}updateElement(t,n,r,i){qo(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!qo(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const u=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(u)||u})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,o,l]of this._syncList)this[a](o,l);this._syncList=[];const i=r.length,u=n.length,s=Math.min(u,i);s&&this.parse(0,s),u>i?this._insertElements(i,u-i,t):u{for(l.length+=n,a=l.length-1;a>=s;a--)l[a]=l[a-n]};for(o(u),a=t;ai-u))}return e._cache.$bar}function Ww(e){const t=e.iScale,n=Vw(t,e.type);let r=t._length,i,u,s,a;const o=()=>{s===32767||s===-32768||(Pt(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,u=n.length;i0?i[e-1]:null,a=eMath.abs(a)&&(o=a,l=s),t[n.axis]=l,t._custom={barStart:o,barEnd:l,start:i,end:u,min:s,max:a}}function Wm(e,t,n,r){return pe(e)?Kw(e,t,n,r):t[n.axis]=n.parse(e,r),t}function vf(e,t,n,r){const i=e.iScale,u=e.vScale,s=i.getLabels(),a=i===u,o=[];let l,d,p,g;for(l=n,d=n+r;l=n?1:-1)}function qw(e){let t,n,r,i,u;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.baseo.controller.options.grouped),u=r.options.stacked,s=[],a=o=>{const l=o.controller.getParsed(n),d=l&&l[o.vScale.axis];if(ie(d)||isNaN(d))return!0};for(const o of i)if(!(n!==void 0&&a(o))&&((u===!1||s.indexOf(o.stack)===-1||u===void 0&&o.stack===void 0)&&s.push(o.stack),o.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),u=n!==void 0?i.indexOf(n):-1;return u===-1?i.length-1:u}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let u,s;for(u=0,s=n.data.length;u=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,{xScale:r,yScale:i}=n,u=this.getParsed(t),s=r.getLabelForValue(u.x),a=i.getLabelForValue(u.y),o=u._custom;return{label:n.label,value:"("+s+", "+a+(o?", "+o:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const u=i==="reset",{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:o,includeOptions:l}=this._getSharedOptions(n,i),d=s.axis,p=a.axis;for(let g=n;ggu(w,a,o,!0)?1:Math.max(T,T*n,D,D*n),b=(w,T,D)=>gu(w,a,o,!0)?-1:Math.min(T,T*n,D,D*n),k=v(0,l,p),O=v(Ee,d,g),x=b(_e,l,p),_=b(_e+Ee,d,g);r=(k-x)/2,i=(O-_)/2,u=-(k+x)/2,s=-(O+_)/2}return{ratioX:r,ratioY:i,offsetX:u,offsetY:s}}class Ou extends It{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let u=o=>+r[o];if(ne(r[t])){const{key:o="value"}=this._parsing;u=l=>+In(r[l],o)}let s,a;for(s=t,a=t+n;s0&&!isNaN(t)?oe*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],u=Cu(n._parsed[t],r.options.locale);return{label:i[t]||"",value:u}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,u,s,a,o;if(!t){for(i=0,u=r.data.datasets.length;ie!=="spacing",_indexable:e=>e!=="spacing"};Ou.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((r,i)=>{const s=e.getDatasetMeta(0).controller.getStyle(i);return{text:r,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(e){let t=e.label;const n=": "+e.formattedValue;return pe(t)?(t=t.slice(),t[0]+=n):t+=n,t}}}}};class Ua extends It{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:u}=n,s=this.chart._animationsDisabled;let{start:a,count:o}=wm(n,i,s);this._drawStart=a,this._drawCount=o,Dm(n)&&(a=0,o=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!u._decimated,r.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:l},t),this.updateElements(i,a,o,t)}updateElements(t,n,r,i){const u=i==="reset",{iScale:s,vScale:a,_stacked:o,_dataset:l}=this._cachedMeta,{sharedOptions:d,includeOptions:p}=this._getSharedOptions(n,i),g=s.axis,v=a.axis,{spanGaps:b,segment:k}=this.options,O=Qr(b)?b:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||u||i==="none";let _=n>0&&this.getParsed(n-1);for(let w=n;w0&&Math.abs(D[g]-_[g])>O,k&&(P.parsed=D,P.raw=l.data[w]),p&&(P.options=d||this.resolveDataElementOptions(w,T.active?"active":i)),x||this.updateElement(T,w,P,i),_=D}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const u=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,u,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Ua.id="line";Ua.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};Ua.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class R0 extends It{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],u=Cu(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:u}}parseObjectData(t,n,r,i){return Bm.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const u=this.getParsed(i).r;!isNaN(u)&&this.chart.getDataVisibility(i)&&(un.max&&(n.max=u))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),u=Math.max(i/2,0),s=Math.max(r.cutoutPercentage?u/100*r.cutoutPercentage:1,0),a=(u-s)/t.getVisibleDatasetCount();this.outerRadius=u-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,r,i){const u=i==="reset",s=this.chart,o=s.options.animation,l=this._cachedMeta.rScale,d=l.xCenter,p=l.yCenter,g=l.getIndexAngle(0)-.5*_e;let v=g,b;const k=360/this.countVisibleElements();for(b=0;b{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?Tt(this.resolveDataElementOptions(t,n).angle||r):0}}R0.id="polarArea";R0.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};R0.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((r,i)=>{const s=e.getDatasetMeta(0).controller.getStyle(i);return{text:r,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(e){return e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Hm extends Ou{}Hm.id="pie";Hm.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class T0 extends It{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return Bm.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],u=n.iScale.getLabels();if(r.points=i,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const a={_loop:!0,_fullLoop:u.length===i.length,options:s};this.updateElement(r,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const u=this._cachedMeta.rScale,s=i==="reset";for(let a=n;a{i[u]=r[u]&&r[u].active()?r[u]._to:this[u]}),i}}pn.defaults={};pn.defaultRoutes=void 0;const $m={values(e){return pe(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,u=e;if(n.length>1){const l=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(l<1e-4||l>1e15)&&(i="scientific"),u=Zw(e,n)}const s=Et(Math.abs(u)),a=Math.max(Math.min(-1*Math.floor(s),20),0),o={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(o,this.options.ticks.format),Cu(e,r,o)},logarithmic(e,t,n){if(e===0)return"0";const r=e/Math.pow(10,Math.floor(Et(e)));return r===1||r===2||r===5?$m.numeric.call(this,e,t,n):""}};function Zw(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Va={formatters:$m};Z.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Va.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}});Z.route("scale.ticks","color","","color");Z.route("scale.grid","color","","borderColor");Z.route("scale.grid","borderColor","","borderColor");Z.route("scale.title","color","","color");Z.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"});Z.describe("scales",{_fallback:"scale"});Z.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"});function e2(e,t){const n=e.options.ticks,r=n.maxTicksLimit||t2(e),i=n.major.enabled?r2(t):[],u=i.length,s=i[0],a=i[u-1],o=[];if(u>r)return i2(t,o,i,u/r),o;const l=n2(i,t,r);if(u>0){let d,p;const g=u>1?Math.round((a-s)/(u-1)):null;for(ss(t,o,l,ie(g)?0:s-g,s),d=0,p=u-1;di)return o}return Math.max(i,1)}function r2(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,Ef=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function _f(e,t){const n=[],r=e.length/t,i=e.length;let u=0;for(;us+a)))return o}function o2(e,t){ue(e,n=>{const r=n.gc,i=r.length/2;let u;if(i>t){for(u=0;ur?r:n,r=i&&n>r?n:r,{min:vt(n,vt(r,n)),max:vt(r,vt(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){be(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:u,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=j_(this,u,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const o=a=u||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),p=d.widest.width,g=d.highest.height,v=We(this.chart.width-p,0,this.maxWidth);a=t.offset?this.maxWidth/r:v/(r-1),p+6>a&&(a=v/(r-(t.offset?.5:1)),o=this.maxHeight-_i(t.grid)-n.padding-wf(t.title,this.chart.options.font),l=Math.sqrt(p*p+g*g),s=E0(Math.min(Math.asin(We((d.highest.height+6)/a,-1,1)),Math.asin(We(o/l,-1,1))-Math.asin(We(g/l,-1,1)))),s=Math.max(i,Math.min(u,s))),this.labelRotation=s}afterCalculateLabelRotation(){be(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){be(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:u}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const o=wf(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=_i(u)+o):(t.height=this.maxHeight,t.width=_i(u)+o),r.display&&this.ticks.length){const{first:l,last:d,widest:p,highest:g}=this._getLabelSizes(),v=r.padding*2,b=Tt(this.labelRotation),k=Math.cos(b),O=Math.sin(b);if(a){const x=r.mirror?0:O*p.width+k*g.height;t.height=Math.min(this.maxHeight,t.height+x+v)}else{const x=r.mirror?0:k*p.width+O*g.height;t.width=Math.min(this.maxWidth,t.width+x+v)}this._calculatePadding(l,d,O,k)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:u,padding:s},position:a}=this.options,o=this.labelRotation!==0,l=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let g=0,v=0;o?l?(g=i*t.width,v=r*n.height):(g=r*t.height,v=i*n.width):u==="start"?v=n.width:u==="end"?g=t.width:u!=="inner"&&(g=t.width/2,v=n.width/2),this.paddingLeft=Math.max((g-d+s)*this.width/(this.width-d),0),this.paddingRight=Math.max((v-p+s)*this.width/(this.width-p),0)}else{let d=n.height/2,p=t.height/2;u==="start"?(d=0,p=t.height):u==="end"&&(d=n.height,p=0),this.paddingTop=d+s,this.paddingBottom=p+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){be(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:u[y]||0,height:s[y]||0});return{first:P(0),last:P(n-1),widest:P(T),highest:P(D),widths:u,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return e_(this._alignToPixels?Hn(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ta*i?a/r:o/i:o*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:u,position:s}=i,a=u.offset,o=this.isHorizontal(),d=this.ticks.length+(a?1:0),p=_i(u),g=[],v=u.setContext(this.getContext()),b=v.drawBorder?v.borderWidth:0,k=b/2,O=function(M){return Hn(r,M,b)};let x,_,w,T,D,P,y,f,m,h,E,C;if(s==="top")x=O(this.bottom),P=this.bottom-p,f=x-k,h=O(t.top)+k,C=t.bottom;else if(s==="bottom")x=O(this.top),h=t.top,C=O(t.bottom)-k,P=x+k,f=this.top+p;else if(s==="left")x=O(this.right),D=this.right-p,y=x-k,m=O(t.left)+k,E=t.right;else if(s==="right")x=O(this.left),m=t.left,E=O(t.right)-k,D=x+k,y=this.left+p;else if(n==="x"){if(s==="center")x=O((t.top+t.bottom)/2+.5);else if(ne(s)){const M=Object.keys(s)[0],I=s[M];x=O(this.chart.scales[M].getPixelForValue(I))}h=t.top,C=t.bottom,P=x+k,f=P+p}else if(n==="y"){if(s==="center")x=O((t.left+t.right)/2);else if(ne(s)){const M=Object.keys(s)[0],I=s[M];x=O(this.chart.scales[M].getPixelForValue(I))}D=x-k,y=D-p,m=t.left,E=t.right}const B=ee(i.ticks.maxTicksLimit,d),F=Math.max(1,Math.ceil(d/B));for(_=0;_u.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let u,s;const a=(o,l,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(o.x,o.y),r.lineTo(l.x,l.y),r.stroke(),r.restore())};if(n.display)for(u=0,s=i.length;u{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:r+1,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let u,s;for(u=0,s=n.length;u{const r=n.split("."),i=r.pop(),u=[e].concat(r).join("."),s=t[n].split("."),a=s.pop(),o=s.join(".");Z.route(u,i,o,a)})}function m2(e){return"id"in e&&"defaults"in e}class g2{constructor(){this.controllers=new as(It,"datasets",!0),this.elements=new as(pn,"elements"),this.plugins=new as(Object,"plugins"),this.scales=new as(pr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const u=r||this._getRegistryForType(i);r||u.isForType(i)||u===this.plugins&&i.id?this._exec(t,u,i):ue(i,s=>{const a=r||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,n,r){const i=x0(t);be(r["before"+i],[],r),n[t](r),be(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n0&&this.getParsed(n-1);for(let T=n;T0&&Math.abs(P[v]-w[v])>x,O&&(y.parsed=P,y.raw=l.data[T]),g&&(y.options=p||this.resolveDataElementOptions(T,D.active?"active":i)),_||this.updateElement(D,T,y,i),w=P}this.updateSharedOptions(p,i,d)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let o=n.length-1;o>=0;--o)a=Math.max(a,n[o].size(this.resolveDataElementOptions(o))/2);return a>0&&a}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const u=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,u,s)/2}}M0.id="scatter";M0.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};M0.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(e){return"("+e.label+", "+e.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function $n(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class cc{constructor(t){this.options=t||{}}init(t){}formats(){return $n()}parse(t,n){return $n()}format(t,n){return $n()}add(t,n,r){return $n()}diff(t,n,r){return $n()}startOf(t,n,r){return $n()}endOf(t,n){return $n()}}cc.override=function(e){Object.assign(cc.prototype,e)};var y2={_date:cc};function v2(e,t,n,r){const{controller:i,data:u,_sorted:s}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&s&&u.length){const o=a._reversePixels?t_:er;if(r){if(i._sharedOptions){const l=u[0],d=typeof l.getRange=="function"&&l.getRange(t);if(d){const p=o(u,t,n-d),g=o(u,t,n+d);return{lo:p.lo,hi:g.hi}}}}else return o(u,t,n)}return{lo:0,hi:u.length-1}}function Fu(e,t,n,r,i){const u=e.getSortedVisibleDatasetMetas(),s=n[t];for(let a=0,o=u.length;a{o[s](t[n],i)&&(u.push({element:o,datasetIndex:l,index:d}),a=a||o.inRange(t.x,t.y,i))}),r&&!a?[]:u}var _2={evaluateInteractionItems:Fu,modes:{index(e,t,n,r){const i=qn(t,e),u=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?Go(e,i,u,r,s):Qo(e,i,u,!1,r,s),o=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(l=>{const d=a[0].index,p=l.data[d];p&&!p.skip&&o.push({element:p,datasetIndex:l.index,index:d})}),o):[]},dataset(e,t,n,r){const i=qn(t,e),u=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?Go(e,i,u,r,s):Qo(e,i,u,!1,r,s);if(a.length>0){const o=a[0].datasetIndex,l=e.getDatasetMeta(o).data;a=[];for(let d=0;dn.pos===t)}function kf(e,t){return e.filter(n=>Km.indexOf(n.pos)===-1&&n.box.axis===t)}function Di(e,t){return e.sort((n,r)=>{const i=t?r:n,u=t?n:r;return i.weight===u.weight?i.index-u.index:i.weight-u.weight})}function w2(e){const t=[];let n,r,i,u,s,a;for(n=0,r=(e||[]).length;nl.box.fullSize),!0),r=Di(wi(t,"left"),!0),i=Di(wi(t,"right")),u=Di(wi(t,"top"),!0),s=Di(wi(t,"bottom")),a=kf(t,"x"),o=kf(t,"y");return{fullSize:n,leftAndTop:r.concat(u),rightAndBottom:i.concat(o).concat(s).concat(a),chartArea:wi(t,"chartArea"),vertical:r.concat(i).concat(o),horizontal:u.concat(s).concat(a)}}function Sf(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Ym(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function P2(e,t,n,r){const{pos:i,box:u}=n,s=e.maxPadding;if(!ne(i)){n.size&&(e[i]-=n.size);const p=r[n.stack]||{size:0,count:1};p.size=Math.max(p.size,n.horizontal?u.height:u.width),n.size=p.size/p.count,e[i]+=n.size}u.getPadding&&Ym(s,u.getPadding());const a=Math.max(0,t.outerWidth-Sf(s,e,"left","right")),o=Math.max(0,t.outerHeight-Sf(s,e,"top","bottom")),l=a!==e.w,d=o!==e.h;return e.w=a,e.h=o,n.horizontal?{same:l,other:d}:{same:d,other:l}}function C2(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function O2(e,t){const n=t.maxPadding;function r(i){const u={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{u[s]=Math.max(t[s],n[s])}),u}return r(e?["left","right"]:["top","bottom"])}function Ti(e,t,n,r){const i=[];let u,s,a,o,l,d;for(u=0,s=e.length,l=0;u{typeof k.beforeLayout=="function"&&k.beforeLayout()});const d=o.reduce((k,O)=>O.box.options&&O.box.options.display===!1?k:k+1,0)||1,p=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:u,availableHeight:s,vBoxMaxWidth:u/2/d,hBoxMaxHeight:s/2}),g=Object.assign({},i);Ym(g,Ct(r));const v=Object.assign({maxPadding:g,w:u,h:s,x:i.left,y:i.top},i),b=k2(o.concat(l),p);Ti(a.fullSize,v,p,b),Ti(o,v,p,b),Ti(l,v,p,b)&&Ti(o,v,p,b),C2(v),Pf(a.leftAndTop,v,p,b),v.x+=v.w,v.y+=v.h,Pf(a.rightAndBottom,v,p,b),e.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h,height:v.h,width:v.w},ue(a.chartArea,k=>{const O=k.box;Object.assign(O,e.chartArea),O.update(v.w,v.h,{left:0,top:0,right:0,bottom:0})})}};class qm{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class F2 extends qm{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ps="$chartjs",N2={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Cf=e=>e===null||e==="";function A2(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Ps]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Cf(i)){const u=sf(e,"width");u!==void 0&&(e.width=u)}if(Cf(r))if(e.style.height==="")e.height=e.width/(t||2);else{const u=sf(e,"height");u!==void 0&&(e.height=u)}return e}const Xm=lw?{passive:!0}:!1;function R2(e,t,n){e.addEventListener(t,n,Xm)}function T2(e,t,n){e.canvas.removeEventListener(t,n,Xm)}function M2(e,t){const n=N2[e.type]||e.type,{x:r,y:i}=qn(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function ca(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function L2(e,t,n){const r=e.canvas,i=new MutationObserver(u=>{let s=!1;for(const a of u)s=s||ca(a.addedNodes,r),s=s&&!ca(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function B2(e,t,n){const r=e.canvas,i=new MutationObserver(u=>{let s=!1;for(const a of u)s=s||ca(a.removedNodes,r),s=s&&!ca(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const vu=new Map;let Of=0;function Gm(){const e=window.devicePixelRatio;e!==Of&&(Of=e,vu.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function I2(e,t){vu.size||window.addEventListener("resize",Gm),vu.set(e,t)}function z2(e){vu.delete(e),vu.size||window.removeEventListener("resize",Gm)}function j2(e,t,n){const r=e.canvas,i=r&&F0(r);if(!i)return;const u=_m((a,o)=>{const l=i.clientWidth;n(a,o),l{const o=a[0],l=o.contentRect.width,d=o.contentRect.height;l===0&&d===0||u(l,d)});return s.observe(i),I2(e,u),s}function Jo(e,t,n){n&&n.disconnect(),t==="resize"&&z2(e)}function U2(e,t,n){const r=e.canvas,i=_m(u=>{e.ctx!==null&&n(M2(u,e))},e,u=>{const s=u[0];return[s,s.offsetX,s.offsetY]});return R2(r,t,i),i}class V2 extends qm{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(A2(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Ps])return!1;const r=n[Ps].initial;["height","width"].forEach(u=>{const s=r[u];ie(s)?n.removeAttribute(u):n.setAttribute(u,s)});const i=r.style||{};return Object.keys(i).forEach(u=>{n.style[u]=i[u]}),n.width=n.width,delete n[Ps],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),s={attach:L2,detach:B2,resize:j2}[n]||U2;i[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Jo,detach:Jo,resize:Jo}[n]||T2)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return ow(t,n,r,i)}isAttached(t){const n=F0(t);return!!(n&&n.isConnected)}}function W2(e){return!zm()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?F2:V2}class H2{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const u=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(u,t,n,r);return n==="afterDestroy"&&(this._notify(u,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,n,r,i){i=i||{};for(const u of t){const s=u.plugin,a=s[r],o=[n,i,u.options];if(be(a,o,s)===!1&&i.cancelable)return!1}return!0}invalidate(){ie(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=ee(r.options&&r.options.plugins,{}),u=$2(r);return i===!1&&!n?[]:Y2(t,u,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(u,s)=>u.filter(a=>!s.some(o=>a.plugin.id===o.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function $2(e){const t={},n=[],r=Object.keys($t.plugins.items);for(let u=0;u{const o=r[a];if(!ne(o))return console.error(`Invalid scale configuration for scale: ${a}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=fc(a,o),d=G2(l,i),p=n.scales||{};u[l]=u[l]||a,s[a]=$i(Object.create(null),[{axis:l},o,p[l],p[d]])}),e.data.datasets.forEach(a=>{const o=a.type||e.type,l=a.indexAxis||dc(o,t),p=(dr[o]||{}).scales||{};Object.keys(p).forEach(g=>{const v=X2(g,l),b=a[v+"AxisID"]||u[v]||v;s[b]=s[b]||Object.create(null),$i(s[b],[{axis:v},r[b],p[g]])})}),Object.keys(s).forEach(a=>{const o=s[a];$i(o,[Z.scales[o.type],Z.scale])}),s}function Qm(e){const t=e.options||(e.options={});t.plugins=ee(t.plugins,{}),t.scales=J2(e,t)}function Jm(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Z2(e){return e=e||{},e.data=Jm(e.data),Qm(e),e}const Ff=new Map,Zm=new Set;function cs(e,t){let n=Ff.get(e);return n||(n=t(),Ff.set(e,n),Zm.add(n)),n}const ki=(e,t,n)=>{const r=In(t,n);r!==void 0&&e.add(r)};class eD{constructor(t){this._config=Z2(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Jm(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Qm(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return cs(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return cs(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return cs(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return cs(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:u}=this,s=this._cachedScopes(t,r),a=s.get(n);if(a)return a;const o=new Set;n.forEach(d=>{t&&(o.add(t),d.forEach(p=>ki(o,t,p))),d.forEach(p=>ki(o,i,p)),d.forEach(p=>ki(o,dr[u]||{},p)),d.forEach(p=>ki(o,Z,p)),d.forEach(p=>ki(o,oc,p))});const l=Array.from(o);return l.length===0&&l.push(Object.create(null)),Zm.has(n)&&s.set(n,l),l}chartOptionScopes(){const{options:t,type:n}=this;return[t,dr[n]||{},Z.datasets[n]||{},{type:n},Z,oc]}resolveNamedOptions(t,n,r,i=[""]){const u={$shared:!0},{resolver:s,subPrefixes:a}=Nf(this._resolverCache,t,i);let o=s;if(nD(s,n)){u.$shared=!1,r=zn(r)?r():r;const l=this.createResolver(t,r,a);o=Jr(s,r,l)}for(const l of n)u[l]=o[l];return u}createResolver(t,n,r=[""],i){const{resolver:u}=Nf(this._resolverCache,t,r);return ne(n)?Jr(u,n,void 0,i):u}}function Nf(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let u=r.get(i);return u||(u={resolver:P0(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,u)),u}const tD=e=>ne(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||zn(e[n]),!1);function nD(e,t){const{isScriptable:n,isIndexable:r}=Rm(e);for(const i of t){const u=n(i),s=r(i),a=(s||u)&&e[i];if(u&&(zn(a)||tD(a))||s&&pe(a))return!0}return!1}var rD="3.9.1";const iD=["top","bottom","left","right","chartArea"];function Af(e,t){return e==="top"||e==="bottom"||iD.indexOf(e)===-1&&t==="x"}function Rf(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Tf(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),be(n&&n.onComplete,[e],t)}function uD(e){const t=e.chart,n=t.options.animation;be(n&&n.onProgress,[e],t)}function eg(e){return zm()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const da={},tg=e=>{const t=eg(e);return Object.values(da).filter(n=>n.canvas===t).pop()};function sD(e,t,n){const r=Object.keys(e);for(const i of r){const u=+i;if(u>=t){const s=e[i];delete e[i],(n>0||u>t)&&(e[u+n]=s)}}}function aD(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}class Nu{constructor(t,n){const r=this.config=new eD(n),i=eg(t),u=tg(i);if(u)throw new Error("Canvas is already in use. Chart with ID '"+u.id+"' must be destroyed before the canvas with ID '"+u.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||W2(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,s.aspectRatio),o=a&&a.canvas,l=o&&o.height,d=o&&o.width;if(this.id=VE(),this.ctx=a,this.canvas=o,this.width=d,this.height=l,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new H2,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=i_(p=>this.update(p),s.resizeDelay||0),this._dataChanges=[],da[this.id]=this,!a||!o){console.error("Failed to create chart: can't acquire context from the given item");return}Gt.listen(this,"complete",Tf),Gt.listen(this,"progress",uD),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:u}=this;return ie(t)?n&&u?u:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():uf(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return tf(this.canvas,this.ctx),this}stop(){return Gt.stop(this),this}resize(t,n){Gt.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,u=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,n,u),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),o=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,uf(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),be(r.onResize,[this,s],this),this.attached&&this._doResize(o)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};ue(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let u=[];n&&(u=u.concat(Object.keys(n).map(s=>{const a=n[s],o=fc(s,a),l=o==="r",d=o==="x";return{options:a,dposition:l?"chartArea":d?"bottom":"left",dtype:l?"radialLinear":d?"category":"linear"}}))),ue(u,s=>{const a=s.options,o=a.id,l=fc(o,a),d=ee(a.type,s.dtype);(a.position===void 0||Af(a.position,l)!==Af(s.dposition))&&(a.position=s.dposition),i[o]=!0;let p=null;if(o in r&&r[o].type===d)p=r[o];else{const g=$t.getScale(d);p=new g({id:o,type:d,ctx:this.ctx,chart:this}),r[p.id]=p}p.init(a,t)}),ue(i,(s,a)=>{s||delete r[a]}),ue(r,s=>{ls.configure(this,s,s.options),ls.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,u)=>i.index-u.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(u=>u===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const u=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let l=0,d=this.data.datasets.length;l{l.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Rf("z","_idx"));const{_active:a,_lastEvent:o}=this;o?this._eventHandler(o,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ue(this.scales,t=>{ls.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Vd(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:u}of n){const s=r==="_removeElements"?-u:u;sD(t,i,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=u=>new Set(t.filter(s=>s[0]===u).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let u=1;uu.split(",")).map(u=>({method:u[1],start:+u[2],count:+u[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;ls.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],ue(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,u)=>{i._idx=u}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,u=this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&Fm(n,{left:r.left===!1?0:u.left-r.left,right:r.right===!1?this.width:u.right+r.right,top:r.top===!1?0:u.top-r.top,bottom:r.bottom===!1?this.height:u.bottom+r.bottom}),t.controller.draw(),i&&Nm(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return yu(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const u=_2.modes[n];return typeof u=="function"?u(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(u=>u&&u._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Wn(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",u=this.getDatasetMeta(t),s=u.controller._resolveAnimations(void 0,i);Pt(n)?(u.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(u,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Gt.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,u,s),t[u]=s},i=(u,s,a)=>{u.offsetX=s,u.offsetY=a,this._eventHandler(u)};ue(this.options.events,u=>r(u,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(o,l)=>{n.addEventListener(this,o,l),t[o]=l},i=(o,l)=>{t[o]&&(n.removeEventListener(this,o,l),delete t[o])},u=(o,l)=>{this.canvas&&this.resize(o,l)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",u),r("detach",s)};s=()=>{this.attached=!1,i("resize",u),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){ue(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},ue(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let u,s,a,o;for(n==="dataset"&&(u=this.getDatasetMeta(t[0].datasetIndex),u.controller["_"+i+"DatasetHoverStyle"]()),a=0,o=t.length;a{const a=this.getDatasetMeta(u);if(!a)throw new Error("No dataset found at index "+u);return{datasetIndex:u,element:a.data[s],index:s}});!ta(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}_updateHoverStyles(t,n,r){const i=this.options.hover,u=(o,l)=>o.filter(d=>!l.some(p=>d.datasetIndex===p.datasetIndex&&d.index===p.index)),s=u(n,t),a=r?t:u(t,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const u=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(u||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:u}=this,s=n,a=this._getActiveElements(t,i,r,s),o=qE(t),l=aD(t,this._lastEvent,r,o);r&&(this._lastEvent=null,be(u.onHover,[t,a,this],this),o&&be(u.onClick,[t,a,this],this));const d=!ta(a,i);return(d||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=l,d}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const u=this.options.hover;return this.getElementsAtEventForMode(t,u.mode,u,i)}}const Mf=()=>ue(Nu.instances,e=>e._plugins.invalidate()),gn=!0;Object.defineProperties(Nu,{defaults:{enumerable:gn,value:Z},instances:{enumerable:gn,value:da},overrides:{enumerable:gn,value:dr},registry:{enumerable:gn,value:$t},version:{enumerable:gn,value:rD},getChart:{enumerable:gn,value:tg},register:{enumerable:gn,value:(...e)=>{$t.add(...e),Mf()}},unregister:{enumerable:gn,value:(...e)=>{$t.remove(...e),Mf()}}});function ng(e,t,n){const{startAngle:r,pixelMargin:i,x:u,y:s,outerRadius:a,innerRadius:o}=t;let l=i/a;e.beginPath(),e.arc(u,s,a,r-l,n+l),o>i?(l=i/o,e.arc(u,s,o,n+l,r-l,!0)):e.arc(u,s,i,n+Ee,r-Ee),e.closePath(),e.clip()}function oD(e){return S0(e,["outerStart","outerEnd","innerStart","innerEnd"])}function lD(e,t,n,r){const i=oD(e.options.borderRadius),u=(n-t)/2,s=Math.min(u,r*t/2),a=o=>{const l=(n-Math.min(u,o))*r/2;return We(o,0,Math.min(u,l))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:We(i.innerStart,0,s),innerEnd:We(i.innerEnd,0,s)}}function _r(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function hc(e,t,n,r,i,u){const{x:s,y:a,startAngle:o,pixelMargin:l,innerRadius:d}=t,p=Math.max(t.outerRadius+r+n-l,0),g=d>0?d+r+n+l:0;let v=0;const b=i-o;if(r){const M=d>0?d-r:0,I=p>0?p-r:0,L=(M+I)/2,A=L!==0?b*L/(L+r):b;v=(b-A)/2}const k=Math.max(.001,b*p-n/_e)/p,O=(b-k)/2,x=o+O+v,_=i-O-v,{outerStart:w,outerEnd:T,innerStart:D,innerEnd:P}=lD(t,g,p,_-x),y=p-w,f=p-T,m=x+w/y,h=_-T/f,E=g+D,C=g+P,B=x+D/E,F=_-P/C;if(e.beginPath(),u){if(e.arc(s,a,p,m,h),T>0){const L=_r(f,h,s,a);e.arc(L.x,L.y,T,h,_+Ee)}const M=_r(C,_,s,a);if(e.lineTo(M.x,M.y),P>0){const L=_r(C,F,s,a);e.arc(L.x,L.y,P,_+Ee,F+Math.PI)}if(e.arc(s,a,g,_-P/g,x+D/g,!0),D>0){const L=_r(E,B,s,a);e.arc(L.x,L.y,D,B+Math.PI,x-Ee)}const I=_r(y,x,s,a);if(e.lineTo(I.x,I.y),w>0){const L=_r(y,m,s,a);e.arc(L.x,L.y,w,x-Ee,m)}}else{e.moveTo(s,a);const M=Math.cos(m)*p+s,I=Math.sin(m)*p+a;e.lineTo(M,I);const L=Math.cos(h)*p+s,A=Math.sin(h)*p+a;e.lineTo(L,A)}e.closePath()}function cD(e,t,n,r,i){const{fullCircles:u,startAngle:s,circumference:a}=t;let o=t.endAngle;if(u){hc(e,t,n,r,s+oe,i);for(let l=0;l=oe||gu(u,a,o),k=ia(s,l+g,d+g);return b&&k}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:u,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:o,spacing:l}=this.options,d=(i+u)/2,p=(s+a+l+o)/2;return{x:n+Math.cos(d)*p,y:r+Math.sin(d)*p}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/2,u=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>oe?Math.floor(r/oe):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(i){a=i/2;const l=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(l)*a,Math.sin(l)*a),this.circumference>=_e&&(a=i)}t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor;const o=cD(t,this,a,u,s);fD(t,this,a,u,o,s),t.restore()}}L0.id="arc";L0.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};L0.defaultRoutes={backgroundColor:"backgroundColor"};function rg(e,t,n=t){e.lineCap=ee(n.borderCapStyle,t.borderCapStyle),e.setLineDash(ee(n.borderDash,t.borderDash)),e.lineDashOffset=ee(n.borderDashOffset,t.borderDashOffset),e.lineJoin=ee(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=ee(n.borderWidth,t.borderWidth),e.strokeStyle=ee(n.borderColor,t.borderColor)}function hD(e,t,n){e.lineTo(n.x,n.y)}function pD(e){return e.stepped?A_:e.tension||e.cubicInterpolationMode==="monotone"?R_:hD}function ig(e,t,n={}){const r=e.length,{start:i=0,end:u=r-1}=n,{start:s,end:a}=t,o=Math.max(i,s),l=Math.min(u,a),d=ia&&u>a;return{count:r,start:o,loop:t.loop,ilen:l(s+(l?a-T:T))%u,w=()=>{k!==O&&(e.lineTo(d,O),e.lineTo(d,k),e.lineTo(d,x))};for(o&&(v=i[_(0)],e.moveTo(v.x,v.y)),g=0;g<=a;++g){if(v=i[_(g)],v.skip)continue;const T=v.x,D=v.y,P=T|0;P===b?(DO&&(O=D),d=(p*d+T)/++p):(w(),e.lineTo(T,D),b=P,p=0,k=O=D),x=D}w()}function pc(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?gD:mD}function yD(e){return e.stepped?cw:e.tension||e.cubicInterpolationMode==="monotone"?dw:Xn}function vD(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),rg(e,t.options),e.stroke(i)}function bD(e,t,n,r){const{segments:i,options:u}=t,s=pc(t);for(const a of i)rg(e,u,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const xD=typeof Path2D=="function";function ED(e,t,n,r){xD&&!t.options.segment?vD(e,t,n,r):bD(e,t,n,r)}class Au extends pn{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;nw(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=_w(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],u=this.points,s=bw(this,{property:n,start:i,end:i});if(!s.length)return;const a=[],o=yD(r);let l,d;for(l=0,d=s.length;le!=="borderDash"&&e!=="fill"};function Lf(e,t,n,r){const i=e.options,{[n]:u}=e.getProps([n],r);return Math.abs(t-u)a({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=Em.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const u=r.items;let s=u.length-1,a=!1,o;for(;s>=0;--s)o=u[s],o._active?(o._total>r.duration&&(r.duration=o._total),o.tick(t),a=!0):(u[s]=u[u.length-1],u.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),u.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=u.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Xt=new kw;const df="transparent",Sw={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=ef(e||df),i=r.valid&&ef(t||df);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Pw{constructor(t,n,r,i){const u=n[r];i=is([t.to,i,u,t.from]);const s=is([t.from,u,i]);this._active=!0,this._fn=t.fn||Sw[t.type||typeof s],this._easing=Yi[t.easing]||Yi.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],u=r-this._start,s=this._duration-u;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=u,this._loop=!!t.loop,this._to=is([t.to,n,i,t.from]),this._from=is([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,u=this._from,s=this._loop,a=this._to;let o;if(this._active=u!==a&&(s||n1?2-o:o,o=this._easing(Math.min(1,Math.max(0,o))),this._target[i]=this._fn(u,a,o)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;ie!=="onProgress"&&e!=="onComplete"&&e!=="fn"});Z.set("animations",{colors:{type:"color",properties:Ow},numbers:{type:"number",properties:Cw}});Z.describe("animations",{_fallback:"animation"});Z.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}});class Um{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!ne(t))return;const n=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const i=t[r];if(!ne(i))return;const u={};for(const s of Fw)u[s]=i[s];(pe(i.properties)&&i.properties||[r]).forEach(s=>{(s===r||!n.has(s))&&n.set(s,u)})})}_animateOptions(t,n){const r=n.options,i=Aw(t,r);if(!i)return[];const u=this._createAnimations(i,r);return r.$shared&&Nw(t.options.$animations,r).then(()=>{t.options=r},()=>{}),u}_createAnimations(t,n){const r=this._properties,i=[],u=t.$animations||(t.$animations={}),s=Object.keys(n),a=Date.now();let o;for(o=s.length-1;o>=0;--o){const l=s[o];if(l.charAt(0)==="$")continue;if(l==="options"){i.push(...this._animateOptions(t,n));continue}const d=n[l];let p=u[l];const g=r.get(l);if(p)if(g&&p.active()){p.update(g,d,a);continue}else p.cancel();if(!g||!g.duration){t[l]=d;continue}u[l]=p=new Pw(g,t,l,d),i.push(p)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Xt.add(this._chart,r),!0}}function Nw(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&u<0)return i.index}return null}function gf(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:u,vScale:s,index:a}=r,o=u.axis,l=s.axis,d=Lw(u,s,r),p=t.length;let g;for(let v=0;vn[r].axis===t).shift()}function zw(e,t){return Vn(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function jw(e,t,n){return Vn(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Ei(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(!!r){t=t||e._parsed;for(const i of t){const u=i._stacks;if(!u||u[r]===void 0||u[r][n]===void 0)return;delete u[r][n]}}}const qo=e=>e==="reset"||e==="none",yf=(e,t)=>t?e:Object.assign({},e),Uw=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Vm(n,!0),values:null};class Bt{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=pf(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Ei(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(p,g,v,b)=>p==="x"?g:p==="r"?b:v,u=n.xAxisID=ee(r.xAxisID,Yo(t,"x")),s=n.yAxisID=ee(r.yAxisID,Yo(t,"y")),a=n.rAxisID=ee(r.rAxisID,Yo(t,"r")),o=n.indexAxis,l=n.iAxisID=i(o,u,s,a),d=n.vAxisID=i(o,s,u,a);n.xScale=this.getScaleForId(u),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(l),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Kd(this._data,this),t._stacked&&Ei(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(ne(n))this._data=Mw(n);else if(r!==n){if(r){Kd(r,this);const i=this._cachedMeta;Ei(i),i._parsed=[]}n&&Object.isExtensible(n)&&r_(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const u=n._stacked;n._stacked=pf(n.vScale,n),n.stack!==r.stack&&(i=!0,Ei(n),n.stack=r.stack),this._resyncElements(t),(i||u!==n._stacked)&&gf(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:u,_stacked:s}=r,a=u.axis;let o=t===0&&n===i.length?!0:r._sorted,l=t>0&&r._parsed[t-1],d,p,g;if(this._parsing===!1)r._parsed=i,r._sorted=!0,g=i;else{pe(i[t])?g=this.parseArrayData(r,i,t,n):ne(i[t])?g=this.parseObjectData(r,i,t,n):g=this.parsePrimitiveData(r,i,t,n);const v=()=>p[a]===null||l&&p[a]k||p=0;--g)if(!b()){this.updateRangeFromParsed(l,t,v,o);break}}return l}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,u,s;for(i=0,u=n.length;i=0&&tthis.getContext(r,i),k=l.resolveNamedOptions(g,v,b,p);return k.$shared&&(k.$shared=o,u[s]=Object.freeze(yf(k,o))),k}_resolveAnimations(t,n,r){const i=this.chart,u=this._cachedDataOpts,s=`animation-${n}`,a=u[s];if(a)return a;let o;if(i.options.animation!==!1){const d=this.chart.config,p=d.datasetAnimationScopeKeys(this._type,n),g=d.getOptionScopes(this.getDataset(),p);o=d.createResolver(g,this.getContext(t,r,n))}const l=new Um(i,o&&o.animations);return o&&o._cacheable&&(u[s]=Object.freeze(l)),l}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||qo(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,u=this.getSharedOptions(r),s=this.includeOptions(n,u)||u!==i;return this.updateSharedOptions(u,n,r),{sharedOptions:u,includeOptions:s}}updateElement(t,n,r,i){qo(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!qo(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const u=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(u)||u})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,o,l]of this._syncList)this[a](o,l);this._syncList=[];const i=r.length,u=n.length,s=Math.min(u,i);s&&this.parse(0,s),u>i?this._insertElements(i,u-i,t):u{for(l.length+=n,a=l.length-1;a>=s;a--)l[a]=l[a-n]};for(o(u),a=t;ai-u))}return e._cache.$bar}function Ww(e){const t=e.iScale,n=Vw(t,e.type);let r=t._length,i,u,s,a;const o=()=>{s===32767||s===-32768||(St(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,u=n.length;i0?i[e-1]:null,a=eMath.abs(a)&&(o=a,l=s),t[n.axis]=l,t._custom={barStart:o,barEnd:l,start:i,end:u,min:s,max:a}}function Wm(e,t,n,r){return pe(e)?Kw(e,t,n,r):t[n.axis]=n.parse(e,r),t}function vf(e,t,n,r){const i=e.iScale,u=e.vScale,s=i.getLabels(),a=i===u,o=[];let l,d,p,g;for(l=n,d=n+r;l=n?1:-1)}function qw(e){let t,n,r,i,u;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.baseo.controller.options.grouped),u=r.options.stacked,s=[],a=o=>{const l=o.controller.getParsed(n),d=l&&l[o.vScale.axis];if(ie(d)||isNaN(d))return!0};for(const o of i)if(!(n!==void 0&&a(o))&&((u===!1||s.indexOf(o.stack)===-1||u===void 0&&o.stack===void 0)&&s.push(o.stack),o.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),u=n!==void 0?i.indexOf(n):-1;return u===-1?i.length-1:u}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let u,s;for(u=0,s=n.data.length;u=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,{xScale:r,yScale:i}=n,u=this.getParsed(t),s=r.getLabelForValue(u.x),a=i.getLabelForValue(u.y),o=u._custom;return{label:n.label,value:"("+s+", "+a+(o?", "+o:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const u=i==="reset",{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:o,includeOptions:l}=this._getSharedOptions(n,i),d=s.axis,p=a.axis;for(let g=n;ggu(w,a,o,!0)?1:Math.max(T,T*n,D,D*n),b=(w,T,D)=>gu(w,a,o,!0)?-1:Math.min(T,T*n,D,D*n),k=v(0,l,p),O=v(Ee,d,g),x=b(_e,l,p),_=b(_e+Ee,d,g);r=(k-x)/2,i=(O-_)/2,u=-(k+x)/2,s=-(O+_)/2}return{ratioX:r,ratioY:i,offsetX:u,offsetY:s}}class Ou extends Bt{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let u=o=>+r[o];if(ne(r[t])){const{key:o="value"}=this._parsing;u=l=>+Bn(r[l],o)}let s,a;for(s=t,a=t+n;s0&&!isNaN(t)?oe*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],u=Cu(n._parsed[t],r.options.locale);return{label:i[t]||"",value:u}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,u,s,a,o;if(!t){for(i=0,u=r.data.datasets.length;ie!=="spacing",_indexable:e=>e!=="spacing"};Ou.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((r,i)=>{const s=e.getDatasetMeta(0).controller.getStyle(i);return{text:r,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(e){let t=e.label;const n=": "+e.formattedValue;return pe(t)?(t=t.slice(),t[0]+=n):t+=n,t}}}}};class Ua extends Bt{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:u}=n,s=this.chart._animationsDisabled;let{start:a,count:o}=wm(n,i,s);this._drawStart=a,this._drawCount=o,Dm(n)&&(a=0,o=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!u._decimated,r.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:l},t),this.updateElements(i,a,o,t)}updateElements(t,n,r,i){const u=i==="reset",{iScale:s,vScale:a,_stacked:o,_dataset:l}=this._cachedMeta,{sharedOptions:d,includeOptions:p}=this._getSharedOptions(n,i),g=s.axis,v=a.axis,{spanGaps:b,segment:k}=this.options,O=Qr(b)?b:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||u||i==="none";let _=n>0&&this.getParsed(n-1);for(let w=n;w0&&Math.abs(D[g]-_[g])>O,k&&(S.parsed=D,S.raw=l.data[w]),p&&(S.options=d||this.resolveDataElementOptions(w,T.active?"active":i)),x||this.updateElement(T,w,S,i),_=D}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const u=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,u,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Ua.id="line";Ua.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};Ua.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class R0 extends Bt{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],u=Cu(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:u}}parseObjectData(t,n,r,i){return Bm.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const u=this.getParsed(i).r;!isNaN(u)&&this.chart.getDataVisibility(i)&&(un.max&&(n.max=u))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),u=Math.max(i/2,0),s=Math.max(r.cutoutPercentage?u/100*r.cutoutPercentage:1,0),a=(u-s)/t.getVisibleDatasetCount();this.outerRadius=u-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,r,i){const u=i==="reset",s=this.chart,o=s.options.animation,l=this._cachedMeta.rScale,d=l.xCenter,p=l.yCenter,g=l.getIndexAngle(0)-.5*_e;let v=g,b;const k=360/this.countVisibleElements();for(b=0;b{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?Rt(this.resolveDataElementOptions(t,n).angle||r):0}}R0.id="polarArea";R0.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};R0.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((r,i)=>{const s=e.getDatasetMeta(0).controller.getStyle(i);return{text:r,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(e){return e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Hm extends Ou{}Hm.id="pie";Hm.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class T0 extends Bt{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return Bm.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],u=n.iScale.getLabels();if(r.points=i,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const a={_loop:!0,_fullLoop:u.length===i.length,options:s};this.updateElement(r,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const u=this._cachedMeta.rScale,s=i==="reset";for(let a=n;a{i[u]=r[u]&&r[u].active()?r[u]._to:this[u]}),i}}hn.defaults={};hn.defaultRoutes=void 0;const $m={values(e){return pe(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,u=e;if(n.length>1){const l=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(l<1e-4||l>1e15)&&(i="scientific"),u=Zw(e,n)}const s=xt(Math.abs(u)),a=Math.max(Math.min(-1*Math.floor(s),20),0),o={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(o,this.options.ticks.format),Cu(e,r,o)},logarithmic(e,t,n){if(e===0)return"0";const r=e/Math.pow(10,Math.floor(xt(e)));return r===1||r===2||r===5?$m.numeric.call(this,e,t,n):""}};function Zw(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Va={formatters:$m};Z.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Va.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}});Z.route("scale.ticks","color","","color");Z.route("scale.grid","color","","borderColor");Z.route("scale.grid","borderColor","","borderColor");Z.route("scale.title","color","","color");Z.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"});Z.describe("scales",{_fallback:"scale"});Z.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"});function e2(e,t){const n=e.options.ticks,r=n.maxTicksLimit||t2(e),i=n.major.enabled?r2(t):[],u=i.length,s=i[0],a=i[u-1],o=[];if(u>r)return i2(t,o,i,u/r),o;const l=n2(i,t,r);if(u>0){let d,p;const g=u>1?Math.round((a-s)/(u-1)):null;for(ss(t,o,l,ie(g)?0:s-g,s),d=0,p=u-1;di)return o}return Math.max(i,1)}function r2(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,Ef=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function _f(e,t){const n=[],r=e.length/t,i=e.length;let u=0;for(;us+a)))return o}function o2(e,t){ue(e,n=>{const r=n.gc,i=r.length/2;let u;if(i>t){for(u=0;ur?r:n,r=i&&n>r?n:r,{min:yt(n,yt(r,n)),max:yt(r,yt(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){be(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:u,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=j_(this,u,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const o=a=u||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),p=d.widest.width,g=d.highest.height,v=We(this.chart.width-p,0,this.maxWidth);a=t.offset?this.maxWidth/r:v/(r-1),p+6>a&&(a=v/(r-(t.offset?.5:1)),o=this.maxHeight-_i(t.grid)-n.padding-wf(t.title,this.chart.options.font),l=Math.sqrt(p*p+g*g),s=E0(Math.min(Math.asin(We((d.highest.height+6)/a,-1,1)),Math.asin(We(o/l,-1,1))-Math.asin(We(g/l,-1,1)))),s=Math.max(i,Math.min(u,s))),this.labelRotation=s}afterCalculateLabelRotation(){be(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){be(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:u}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const o=wf(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=_i(u)+o):(t.height=this.maxHeight,t.width=_i(u)+o),r.display&&this.ticks.length){const{first:l,last:d,widest:p,highest:g}=this._getLabelSizes(),v=r.padding*2,b=Rt(this.labelRotation),k=Math.cos(b),O=Math.sin(b);if(a){const x=r.mirror?0:O*p.width+k*g.height;t.height=Math.min(this.maxHeight,t.height+x+v)}else{const x=r.mirror?0:k*p.width+O*g.height;t.width=Math.min(this.maxWidth,t.width+x+v)}this._calculatePadding(l,d,O,k)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:u,padding:s},position:a}=this.options,o=this.labelRotation!==0,l=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let g=0,v=0;o?l?(g=i*t.width,v=r*n.height):(g=r*t.height,v=i*n.width):u==="start"?v=n.width:u==="end"?g=t.width:u!=="inner"&&(g=t.width/2,v=n.width/2),this.paddingLeft=Math.max((g-d+s)*this.width/(this.width-d),0),this.paddingRight=Math.max((v-p+s)*this.width/(this.width-p),0)}else{let d=n.height/2,p=t.height/2;u==="start"?(d=0,p=t.height):u==="end"&&(d=n.height,p=0),this.paddingTop=d+s,this.paddingBottom=p+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){be(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:u[y]||0,height:s[y]||0});return{first:S(0),last:S(n-1),widest:S(T),highest:S(D),widths:u,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return e_(this._alignToPixels?Wn(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ta*i?a/r:o/i:o*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:u,position:s}=i,a=u.offset,o=this.isHorizontal(),d=this.ticks.length+(a?1:0),p=_i(u),g=[],v=u.setContext(this.getContext()),b=v.drawBorder?v.borderWidth:0,k=b/2,O=function(M){return Wn(r,M,b)};let x,_,w,T,D,S,y,f,m,h,E,C;if(s==="top")x=O(this.bottom),S=this.bottom-p,f=x-k,h=O(t.top)+k,C=t.bottom;else if(s==="bottom")x=O(this.top),h=t.top,C=O(t.bottom)-k,S=x+k,f=this.top+p;else if(s==="left")x=O(this.right),D=this.right-p,y=x-k,m=O(t.left)+k,E=t.right;else if(s==="right")x=O(this.left),m=t.left,E=O(t.right)-k,D=x+k,y=this.left+p;else if(n==="x"){if(s==="center")x=O((t.top+t.bottom)/2+.5);else if(ne(s)){const M=Object.keys(s)[0],I=s[M];x=O(this.chart.scales[M].getPixelForValue(I))}h=t.top,C=t.bottom,S=x+k,f=S+p}else if(n==="y"){if(s==="center")x=O((t.left+t.right)/2);else if(ne(s)){const M=Object.keys(s)[0],I=s[M];x=O(this.chart.scales[M].getPixelForValue(I))}D=x-k,y=D-p,m=t.left,E=t.right}const B=ee(i.ticks.maxTicksLimit,d),F=Math.max(1,Math.ceil(d/B));for(_=0;_u.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let u,s;const a=(o,l,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(o.x,o.y),r.lineTo(l.x,l.y),r.stroke(),r.restore())};if(n.display)for(u=0,s=i.length;u{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:r+1,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let u,s;for(u=0,s=n.length;u{const r=n.split("."),i=r.pop(),u=[e].concat(r).join("."),s=t[n].split("."),a=s.pop(),o=s.join(".");Z.route(u,i,o,a)})}function m2(e){return"id"in e&&"defaults"in e}class g2{constructor(){this.controllers=new as(Bt,"datasets",!0),this.elements=new as(hn,"elements"),this.plugins=new as(Object,"plugins"),this.scales=new as(pr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const u=r||this._getRegistryForType(i);r||u.isForType(i)||u===this.plugins&&i.id?this._exec(t,u,i):ue(i,s=>{const a=r||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,n,r){const i=x0(t);be(r["before"+i],[],r),n[t](r),be(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n0&&this.getParsed(n-1);for(let T=n;T0&&Math.abs(S[v]-w[v])>x,O&&(y.parsed=S,y.raw=l.data[T]),g&&(y.options=p||this.resolveDataElementOptions(T,D.active?"active":i)),_||this.updateElement(D,T,y,i),w=S}this.updateSharedOptions(p,i,d)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let o=n.length-1;o>=0;--o)a=Math.max(a,n[o].size(this.resolveDataElementOptions(o))/2);return a>0&&a}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const u=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,u,s)/2}}M0.id="scatter";M0.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};M0.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(e){return"("+e.label+", "+e.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function Hn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class cc{constructor(t){this.options=t||{}}init(t){}formats(){return Hn()}parse(t,n){return Hn()}format(t,n){return Hn()}add(t,n,r){return Hn()}diff(t,n,r){return Hn()}startOf(t,n,r){return Hn()}endOf(t,n){return Hn()}}cc.override=function(e){Object.assign(cc.prototype,e)};var y2={_date:cc};function v2(e,t,n,r){const{controller:i,data:u,_sorted:s}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&s&&u.length){const o=a._reversePixels?t_:er;if(r){if(i._sharedOptions){const l=u[0],d=typeof l.getRange=="function"&&l.getRange(t);if(d){const p=o(u,t,n-d),g=o(u,t,n+d);return{lo:p.lo,hi:g.hi}}}}else return o(u,t,n)}return{lo:0,hi:u.length-1}}function Fu(e,t,n,r,i){const u=e.getSortedVisibleDatasetMetas(),s=n[t];for(let a=0,o=u.length;a{o[s](t[n],i)&&(u.push({element:o,datasetIndex:l,index:d}),a=a||o.inRange(t.x,t.y,i))}),r&&!a?[]:u}var _2={evaluateInteractionItems:Fu,modes:{index(e,t,n,r){const i=qn(t,e),u=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?Go(e,i,u,r,s):Qo(e,i,u,!1,r,s),o=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(l=>{const d=a[0].index,p=l.data[d];p&&!p.skip&&o.push({element:p,datasetIndex:l.index,index:d})}),o):[]},dataset(e,t,n,r){const i=qn(t,e),u=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?Go(e,i,u,r,s):Qo(e,i,u,!1,r,s);if(a.length>0){const o=a[0].datasetIndex,l=e.getDatasetMeta(o).data;a=[];for(let d=0;dn.pos===t)}function kf(e,t){return e.filter(n=>Km.indexOf(n.pos)===-1&&n.box.axis===t)}function Di(e,t){return e.sort((n,r)=>{const i=t?r:n,u=t?n:r;return i.weight===u.weight?i.index-u.index:i.weight-u.weight})}function w2(e){const t=[];let n,r,i,u,s,a;for(n=0,r=(e||[]).length;nl.box.fullSize),!0),r=Di(wi(t,"left"),!0),i=Di(wi(t,"right")),u=Di(wi(t,"top"),!0),s=Di(wi(t,"bottom")),a=kf(t,"x"),o=kf(t,"y");return{fullSize:n,leftAndTop:r.concat(u),rightAndBottom:i.concat(o).concat(s).concat(a),chartArea:wi(t,"chartArea"),vertical:r.concat(i).concat(o),horizontal:u.concat(s).concat(a)}}function Sf(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Ym(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function P2(e,t,n,r){const{pos:i,box:u}=n,s=e.maxPadding;if(!ne(i)){n.size&&(e[i]-=n.size);const p=r[n.stack]||{size:0,count:1};p.size=Math.max(p.size,n.horizontal?u.height:u.width),n.size=p.size/p.count,e[i]+=n.size}u.getPadding&&Ym(s,u.getPadding());const a=Math.max(0,t.outerWidth-Sf(s,e,"left","right")),o=Math.max(0,t.outerHeight-Sf(s,e,"top","bottom")),l=a!==e.w,d=o!==e.h;return e.w=a,e.h=o,n.horizontal?{same:l,other:d}:{same:d,other:l}}function C2(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function O2(e,t){const n=t.maxPadding;function r(i){const u={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{u[s]=Math.max(t[s],n[s])}),u}return r(e?["left","right"]:["top","bottom"])}function Ti(e,t,n,r){const i=[];let u,s,a,o,l,d;for(u=0,s=e.length,l=0;u{typeof k.beforeLayout=="function"&&k.beforeLayout()});const d=o.reduce((k,O)=>O.box.options&&O.box.options.display===!1?k:k+1,0)||1,p=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:u,availableHeight:s,vBoxMaxWidth:u/2/d,hBoxMaxHeight:s/2}),g=Object.assign({},i);Ym(g,Pt(r));const v=Object.assign({maxPadding:g,w:u,h:s,x:i.left,y:i.top},i),b=k2(o.concat(l),p);Ti(a.fullSize,v,p,b),Ti(o,v,p,b),Ti(l,v,p,b)&&Ti(o,v,p,b),C2(v),Pf(a.leftAndTop,v,p,b),v.x+=v.w,v.y+=v.h,Pf(a.rightAndBottom,v,p,b),e.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h,height:v.h,width:v.w},ue(a.chartArea,k=>{const O=k.box;Object.assign(O,e.chartArea),O.update(v.w,v.h,{left:0,top:0,right:0,bottom:0})})}};class qm{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class F2 extends qm{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ps="$chartjs",N2={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Cf=e=>e===null||e==="";function A2(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Ps]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Cf(i)){const u=sf(e,"width");u!==void 0&&(e.width=u)}if(Cf(r))if(e.style.height==="")e.height=e.width/(t||2);else{const u=sf(e,"height");u!==void 0&&(e.height=u)}return e}const Xm=lw?{passive:!0}:!1;function R2(e,t,n){e.addEventListener(t,n,Xm)}function T2(e,t,n){e.canvas.removeEventListener(t,n,Xm)}function M2(e,t){const n=N2[e.type]||e.type,{x:r,y:i}=qn(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function ca(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function L2(e,t,n){const r=e.canvas,i=new MutationObserver(u=>{let s=!1;for(const a of u)s=s||ca(a.addedNodes,r),s=s&&!ca(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function B2(e,t,n){const r=e.canvas,i=new MutationObserver(u=>{let s=!1;for(const a of u)s=s||ca(a.removedNodes,r),s=s&&!ca(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const vu=new Map;let Of=0;function Gm(){const e=window.devicePixelRatio;e!==Of&&(Of=e,vu.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function I2(e,t){vu.size||window.addEventListener("resize",Gm),vu.set(e,t)}function z2(e){vu.delete(e),vu.size||window.removeEventListener("resize",Gm)}function j2(e,t,n){const r=e.canvas,i=r&&F0(r);if(!i)return;const u=_m((a,o)=>{const l=i.clientWidth;n(a,o),l{const o=a[0],l=o.contentRect.width,d=o.contentRect.height;l===0&&d===0||u(l,d)});return s.observe(i),I2(e,u),s}function Jo(e,t,n){n&&n.disconnect(),t==="resize"&&z2(e)}function U2(e,t,n){const r=e.canvas,i=_m(u=>{e.ctx!==null&&n(M2(u,e))},e,u=>{const s=u[0];return[s,s.offsetX,s.offsetY]});return R2(r,t,i),i}class V2 extends qm{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(A2(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Ps])return!1;const r=n[Ps].initial;["height","width"].forEach(u=>{const s=r[u];ie(s)?n.removeAttribute(u):n.setAttribute(u,s)});const i=r.style||{};return Object.keys(i).forEach(u=>{n.style[u]=i[u]}),n.width=n.width,delete n[Ps],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),s={attach:L2,detach:B2,resize:j2}[n]||U2;i[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Jo,detach:Jo,resize:Jo}[n]||T2)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return ow(t,n,r,i)}isAttached(t){const n=F0(t);return!!(n&&n.isConnected)}}function W2(e){return!zm()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?F2:V2}class H2{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const u=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(u,t,n,r);return n==="afterDestroy"&&(this._notify(u,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,n,r,i){i=i||{};for(const u of t){const s=u.plugin,a=s[r],o=[n,i,u.options];if(be(a,o,s)===!1&&i.cancelable)return!1}return!0}invalidate(){ie(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=ee(r.options&&r.options.plugins,{}),u=$2(r);return i===!1&&!n?[]:Y2(t,u,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(u,s)=>u.filter(a=>!s.some(o=>a.plugin.id===o.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function $2(e){const t={},n=[],r=Object.keys(Ht.plugins.items);for(let u=0;u{const o=r[a];if(!ne(o))return console.error(`Invalid scale configuration for scale: ${a}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=fc(a,o),d=G2(l,i),p=n.scales||{};u[l]=u[l]||a,s[a]=$i(Object.create(null),[{axis:l},o,p[l],p[d]])}),e.data.datasets.forEach(a=>{const o=a.type||e.type,l=a.indexAxis||dc(o,t),p=(dr[o]||{}).scales||{};Object.keys(p).forEach(g=>{const v=X2(g,l),b=a[v+"AxisID"]||u[v]||v;s[b]=s[b]||Object.create(null),$i(s[b],[{axis:v},r[b],p[g]])})}),Object.keys(s).forEach(a=>{const o=s[a];$i(o,[Z.scales[o.type],Z.scale])}),s}function Qm(e){const t=e.options||(e.options={});t.plugins=ee(t.plugins,{}),t.scales=J2(e,t)}function Jm(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Z2(e){return e=e||{},e.data=Jm(e.data),Qm(e),e}const Ff=new Map,Zm=new Set;function cs(e,t){let n=Ff.get(e);return n||(n=t(),Ff.set(e,n),Zm.add(n)),n}const ki=(e,t,n)=>{const r=Bn(t,n);r!==void 0&&e.add(r)};class eD{constructor(t){this._config=Z2(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Jm(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Qm(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return cs(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return cs(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return cs(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return cs(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:u}=this,s=this._cachedScopes(t,r),a=s.get(n);if(a)return a;const o=new Set;n.forEach(d=>{t&&(o.add(t),d.forEach(p=>ki(o,t,p))),d.forEach(p=>ki(o,i,p)),d.forEach(p=>ki(o,dr[u]||{},p)),d.forEach(p=>ki(o,Z,p)),d.forEach(p=>ki(o,oc,p))});const l=Array.from(o);return l.length===0&&l.push(Object.create(null)),Zm.has(n)&&s.set(n,l),l}chartOptionScopes(){const{options:t,type:n}=this;return[t,dr[n]||{},Z.datasets[n]||{},{type:n},Z,oc]}resolveNamedOptions(t,n,r,i=[""]){const u={$shared:!0},{resolver:s,subPrefixes:a}=Nf(this._resolverCache,t,i);let o=s;if(nD(s,n)){u.$shared=!1,r=In(r)?r():r;const l=this.createResolver(t,r,a);o=Jr(s,r,l)}for(const l of n)u[l]=o[l];return u}createResolver(t,n,r=[""],i){const{resolver:u}=Nf(this._resolverCache,t,r);return ne(n)?Jr(u,n,void 0,i):u}}function Nf(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let u=r.get(i);return u||(u={resolver:P0(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,u)),u}const tD=e=>ne(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||In(e[n]),!1);function nD(e,t){const{isScriptable:n,isIndexable:r}=Rm(e);for(const i of t){const u=n(i),s=r(i),a=(s||u)&&e[i];if(u&&(In(a)||tD(a))||s&&pe(a))return!0}return!1}var rD="3.9.1";const iD=["top","bottom","left","right","chartArea"];function Af(e,t){return e==="top"||e==="bottom"||iD.indexOf(e)===-1&&t==="x"}function Rf(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Tf(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),be(n&&n.onComplete,[e],t)}function uD(e){const t=e.chart,n=t.options.animation;be(n&&n.onProgress,[e],t)}function eg(e){return zm()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const da={},tg=e=>{const t=eg(e);return Object.values(da).filter(n=>n.canvas===t).pop()};function sD(e,t,n){const r=Object.keys(e);for(const i of r){const u=+i;if(u>=t){const s=e[i];delete e[i],(n>0||u>t)&&(e[u+n]=s)}}}function aD(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}class Nu{constructor(t,n){const r=this.config=new eD(n),i=eg(t),u=tg(i);if(u)throw new Error("Canvas is already in use. Chart with ID '"+u.id+"' must be destroyed before the canvas with ID '"+u.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||W2(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,s.aspectRatio),o=a&&a.canvas,l=o&&o.height,d=o&&o.width;if(this.id=VE(),this.ctx=a,this.canvas=o,this.width=d,this.height=l,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new H2,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=i_(p=>this.update(p),s.resizeDelay||0),this._dataChanges=[],da[this.id]=this,!a||!o){console.error("Failed to create chart: can't acquire context from the given item");return}Xt.listen(this,"complete",Tf),Xt.listen(this,"progress",uD),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:u}=this;return ie(t)?n&&u?u:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():uf(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return tf(this.canvas,this.ctx),this}stop(){return Xt.stop(this),this}resize(t,n){Xt.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,u=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,n,u),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),o=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,uf(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),be(r.onResize,[this,s],this),this.attached&&this._doResize(o)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};ue(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let u=[];n&&(u=u.concat(Object.keys(n).map(s=>{const a=n[s],o=fc(s,a),l=o==="r",d=o==="x";return{options:a,dposition:l?"chartArea":d?"bottom":"left",dtype:l?"radialLinear":d?"category":"linear"}}))),ue(u,s=>{const a=s.options,o=a.id,l=fc(o,a),d=ee(a.type,s.dtype);(a.position===void 0||Af(a.position,l)!==Af(s.dposition))&&(a.position=s.dposition),i[o]=!0;let p=null;if(o in r&&r[o].type===d)p=r[o];else{const g=Ht.getScale(d);p=new g({id:o,type:d,ctx:this.ctx,chart:this}),r[p.id]=p}p.init(a,t)}),ue(i,(s,a)=>{s||delete r[a]}),ue(r,s=>{ls.configure(this,s,s.options),ls.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,u)=>i.index-u.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(u=>u===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const u=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let l=0,d=this.data.datasets.length;l{l.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Rf("z","_idx"));const{_active:a,_lastEvent:o}=this;o?this._eventHandler(o,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ue(this.scales,t=>{ls.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Vd(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:u}of n){const s=r==="_removeElements"?-u:u;sD(t,i,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=u=>new Set(t.filter(s=>s[0]===u).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let u=1;uu.split(",")).map(u=>({method:u[1],start:+u[2],count:+u[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;ls.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],ue(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,u)=>{i._idx=u}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,u=this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&Fm(n,{left:r.left===!1?0:u.left-r.left,right:r.right===!1?this.width:u.right+r.right,top:r.top===!1?0:u.top-r.top,bottom:r.bottom===!1?this.height:u.bottom+r.bottom}),t.controller.draw(),i&&Nm(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return yu(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const u=_2.modes[n];return typeof u=="function"?u(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(u=>u&&u._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Vn(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",u=this.getDatasetMeta(t),s=u.controller._resolveAnimations(void 0,i);St(n)?(u.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(u,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Xt.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,u,s),t[u]=s},i=(u,s,a)=>{u.offsetX=s,u.offsetY=a,this._eventHandler(u)};ue(this.options.events,u=>r(u,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(o,l)=>{n.addEventListener(this,o,l),t[o]=l},i=(o,l)=>{t[o]&&(n.removeEventListener(this,o,l),delete t[o])},u=(o,l)=>{this.canvas&&this.resize(o,l)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",u),r("detach",s)};s=()=>{this.attached=!1,i("resize",u),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){ue(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},ue(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let u,s,a,o;for(n==="dataset"&&(u=this.getDatasetMeta(t[0].datasetIndex),u.controller["_"+i+"DatasetHoverStyle"]()),a=0,o=t.length;a{const a=this.getDatasetMeta(u);if(!a)throw new Error("No dataset found at index "+u);return{datasetIndex:u,element:a.data[s],index:s}});!ta(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}_updateHoverStyles(t,n,r){const i=this.options.hover,u=(o,l)=>o.filter(d=>!l.some(p=>d.datasetIndex===p.datasetIndex&&d.index===p.index)),s=u(n,t),a=r?t:u(t,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const u=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(u||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:u}=this,s=n,a=this._getActiveElements(t,i,r,s),o=qE(t),l=aD(t,this._lastEvent,r,o);r&&(this._lastEvent=null,be(u.onHover,[t,a,this],this),o&&be(u.onClick,[t,a,this],this));const d=!ta(a,i);return(d||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=l,d}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const u=this.options.hover;return this.getElementsAtEventForMode(t,u.mode,u,i)}}const Mf=()=>ue(Nu.instances,e=>e._plugins.invalidate()),mn=!0;Object.defineProperties(Nu,{defaults:{enumerable:mn,value:Z},instances:{enumerable:mn,value:da},overrides:{enumerable:mn,value:dr},registry:{enumerable:mn,value:Ht},version:{enumerable:mn,value:rD},getChart:{enumerable:mn,value:tg},register:{enumerable:mn,value:(...e)=>{Ht.add(...e),Mf()}},unregister:{enumerable:mn,value:(...e)=>{Ht.remove(...e),Mf()}}});function ng(e,t,n){const{startAngle:r,pixelMargin:i,x:u,y:s,outerRadius:a,innerRadius:o}=t;let l=i/a;e.beginPath(),e.arc(u,s,a,r-l,n+l),o>i?(l=i/o,e.arc(u,s,o,n+l,r-l,!0)):e.arc(u,s,i,n+Ee,r-Ee),e.closePath(),e.clip()}function oD(e){return S0(e,["outerStart","outerEnd","innerStart","innerEnd"])}function lD(e,t,n,r){const i=oD(e.options.borderRadius),u=(n-t)/2,s=Math.min(u,r*t/2),a=o=>{const l=(n-Math.min(u,o))*r/2;return We(o,0,Math.min(u,l))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:We(i.innerStart,0,s),innerEnd:We(i.innerEnd,0,s)}}function _r(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function hc(e,t,n,r,i,u){const{x:s,y:a,startAngle:o,pixelMargin:l,innerRadius:d}=t,p=Math.max(t.outerRadius+r+n-l,0),g=d>0?d+r+n+l:0;let v=0;const b=i-o;if(r){const M=d>0?d-r:0,I=p>0?p-r:0,L=(M+I)/2,A=L!==0?b*L/(L+r):b;v=(b-A)/2}const k=Math.max(.001,b*p-n/_e)/p,O=(b-k)/2,x=o+O+v,_=i-O-v,{outerStart:w,outerEnd:T,innerStart:D,innerEnd:S}=lD(t,g,p,_-x),y=p-w,f=p-T,m=x+w/y,h=_-T/f,E=g+D,C=g+S,B=x+D/E,F=_-S/C;if(e.beginPath(),u){if(e.arc(s,a,p,m,h),T>0){const L=_r(f,h,s,a);e.arc(L.x,L.y,T,h,_+Ee)}const M=_r(C,_,s,a);if(e.lineTo(M.x,M.y),S>0){const L=_r(C,F,s,a);e.arc(L.x,L.y,S,_+Ee,F+Math.PI)}if(e.arc(s,a,g,_-S/g,x+D/g,!0),D>0){const L=_r(E,B,s,a);e.arc(L.x,L.y,D,B+Math.PI,x-Ee)}const I=_r(y,x,s,a);if(e.lineTo(I.x,I.y),w>0){const L=_r(y,m,s,a);e.arc(L.x,L.y,w,x-Ee,m)}}else{e.moveTo(s,a);const M=Math.cos(m)*p+s,I=Math.sin(m)*p+a;e.lineTo(M,I);const L=Math.cos(h)*p+s,A=Math.sin(h)*p+a;e.lineTo(L,A)}e.closePath()}function cD(e,t,n,r,i){const{fullCircles:u,startAngle:s,circumference:a}=t;let o=t.endAngle;if(u){hc(e,t,n,r,s+oe,i);for(let l=0;l=oe||gu(u,a,o),k=ia(s,l+g,d+g);return b&&k}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:u,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:o,spacing:l}=this.options,d=(i+u)/2,p=(s+a+l+o)/2;return{x:n+Math.cos(d)*p,y:r+Math.sin(d)*p}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/2,u=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>oe?Math.floor(r/oe):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(i){a=i/2;const l=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(l)*a,Math.sin(l)*a),this.circumference>=_e&&(a=i)}t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor;const o=cD(t,this,a,u,s);fD(t,this,a,u,o,s),t.restore()}}L0.id="arc";L0.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};L0.defaultRoutes={backgroundColor:"backgroundColor"};function rg(e,t,n=t){e.lineCap=ee(n.borderCapStyle,t.borderCapStyle),e.setLineDash(ee(n.borderDash,t.borderDash)),e.lineDashOffset=ee(n.borderDashOffset,t.borderDashOffset),e.lineJoin=ee(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=ee(n.borderWidth,t.borderWidth),e.strokeStyle=ee(n.borderColor,t.borderColor)}function hD(e,t,n){e.lineTo(n.x,n.y)}function pD(e){return e.stepped?A_:e.tension||e.cubicInterpolationMode==="monotone"?R_:hD}function ig(e,t,n={}){const r=e.length,{start:i=0,end:u=r-1}=n,{start:s,end:a}=t,o=Math.max(i,s),l=Math.min(u,a),d=ia&&u>a;return{count:r,start:o,loop:t.loop,ilen:l(s+(l?a-T:T))%u,w=()=>{k!==O&&(e.lineTo(d,O),e.lineTo(d,k),e.lineTo(d,x))};for(o&&(v=i[_(0)],e.moveTo(v.x,v.y)),g=0;g<=a;++g){if(v=i[_(g)],v.skip)continue;const T=v.x,D=v.y,S=T|0;S===b?(DO&&(O=D),d=(p*d+T)/++p):(w(),e.lineTo(T,D),b=S,p=0,k=O=D),x=D}w()}function pc(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?gD:mD}function yD(e){return e.stepped?cw:e.tension||e.cubicInterpolationMode==="monotone"?dw:Xn}function vD(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),rg(e,t.options),e.stroke(i)}function bD(e,t,n,r){const{segments:i,options:u}=t,s=pc(t);for(const a of i)rg(e,u,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const xD=typeof Path2D=="function";function ED(e,t,n,r){xD&&!t.options.segment?vD(e,t,n,r):bD(e,t,n,r)}class Au extends hn{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;nw(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=_w(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],u=this.points,s=bw(this,{property:n,start:i,end:i});if(!s.length)return;const a=[],o=yD(r);let l,d;for(l=0,d=s.length;le!=="borderDash"&&e!=="fill"};function Lf(e,t,n,r){const i=e.options,{[n]:u}=e.getProps([n],r);return Math.abs(t-u)-1?e.split(` -`):e}function PD(e,t){const{element:n,datasetIndex:r,index:i}=t,u=e.getDatasetMeta(r).controller,{label:s,value:a}=u.getLabelAndValue(i);return{chart:e,label:s,parsed:u.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:u.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Bf(e,t){const n=e.chart.ctx,{body:r,footer:i,title:u}=e,{boxWidth:s,boxHeight:a}=t,o=ct(t.bodyFont),l=ct(t.titleFont),d=ct(t.footerFont),p=u.length,g=i.length,v=r.length,b=Ct(t.padding);let k=b.height,O=0,x=r.reduce((T,D)=>T+D.before.length+D.lines.length+D.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,p&&(k+=p*l.lineHeight+(p-1)*t.titleSpacing+t.titleMarginBottom),x){const T=t.displayColors?Math.max(a,o.lineHeight):o.lineHeight;k+=v*T+(x-v)*o.lineHeight+(x-1)*t.bodySpacing}g&&(k+=t.footerMarginTop+g*d.lineHeight+(g-1)*t.footerSpacing);let _=0;const w=function(T){O=Math.max(O,n.measureText(T).width+_)};return n.save(),n.font=l.string,ue(e.title,w),n.font=o.string,ue(e.beforeBody.concat(e.afterBody),w),_=t.displayColors?s+2+t.boxPadding:0,ue(r,T=>{ue(T.before,w),ue(T.lines,w),ue(T.after,w)}),_=0,n.font=d.string,ue(e.footer,w),n.restore(),O+=b.width,{width:O,height:k}}function CD(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function OD(e,t,n,r){const{x:i,width:u}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&i+u+s>t.width||e==="right"&&i-u-s<0)return!0}function FD(e,t,n,r){const{x:i,width:u}=n,{width:s,chartArea:{left:a,right:o}}=e;let l="center";return r==="center"?l=i<=(a+o)/2?"left":"right":i<=u/2?l="left":i>=s-u/2&&(l="right"),OD(l,e,t,n)&&(l="center"),l}function If(e,t,n){const r=n.yAlign||t.yAlign||CD(e,n);return{xAlign:n.xAlign||t.xAlign||FD(e,t,n,r),yAlign:r}}function ND(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function AD(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function zf(e,t,n,r){const{caretSize:i,caretPadding:u,cornerRadius:s}=e,{xAlign:a,yAlign:o}=n,l=i+u,{topLeft:d,topRight:p,bottomLeft:g,bottomRight:v}=Vr(s);let b=ND(t,a);const k=AD(t,o,l);return o==="center"?a==="left"?b+=l:a==="right"&&(b-=l):a==="left"?b-=Math.max(d,g)+i:a==="right"&&(b+=Math.max(p,v)+i),{x:We(b,0,r.width-t.width),y:We(k,0,r.height-t.height)}}function ds(e,t,n){const r=Ct(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function jf(e){return Vt([],Qt(e))}function RD(e,t,n){return Wn(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Uf(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}class mc extends pn{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,u=new Um(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(u)),u}getContext(){return this.$context||(this.$context=RD(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=r.beforeTitle.apply(this,[t]),u=r.title.apply(this,[t]),s=r.afterTitle.apply(this,[t]);let a=[];return a=Vt(a,Qt(i)),a=Vt(a,Qt(u)),a=Vt(a,Qt(s)),a}getBeforeBody(t,n){return jf(n.callbacks.beforeBody.apply(this,[t]))}getBody(t,n){const{callbacks:r}=n,i=[];return ue(t,u=>{const s={before:[],lines:[],after:[]},a=Uf(r,u);Vt(s.before,Qt(a.beforeLabel.call(this,u))),Vt(s.lines,a.label.call(this,u)),Vt(s.after,Qt(a.afterLabel.call(this,u))),i.push(s)}),i}getAfterBody(t,n){return jf(n.callbacks.afterBody.apply(this,[t]))}getFooter(t,n){const{callbacks:r}=n,i=r.beforeFooter.apply(this,[t]),u=r.footer.apply(this,[t]),s=r.afterFooter.apply(this,[t]);let a=[];return a=Vt(a,Qt(i)),a=Vt(a,Qt(u)),a=Vt(a,Qt(s)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],u=[],s=[];let a=[],o,l;for(o=0,l=n.length;ot.filter(d,p,g,r))),t.itemSort&&(a=a.sort((d,p)=>t.itemSort(d,p,r))),ue(a,d=>{const p=Uf(t.callbacks,d);i.push(p.labelColor.call(this,d)),u.push(p.labelPointStyle.call(this,d)),s.push(p.labelTextColor.call(this,d))}),this.labelColors=i,this.labelPointStyles=u,this.labelTextColors=s,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let u,s=[];if(!i.length)this.opacity!==0&&(u={opacity:0});else{const a=Xi[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const o=this._size=Bf(this,r),l=Object.assign({},a,o),d=If(this.chart,r,l),p=zf(r,l,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,u={opacity:1,x:p.x,y:p.y,width:o.width,height:o.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,u&&this._resolveAnimations().update(this,u),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const u=this.getCaretPosition(t,r,i);n.lineTo(u.x1,u.y1),n.lineTo(u.x2,u.y2),n.lineTo(u.x3,u.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:u}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:o,topRight:l,bottomLeft:d,bottomRight:p}=Vr(a),{x:g,y:v}=t,{width:b,height:k}=n;let O,x,_,w,T,D;return u==="center"?(T=v+k/2,i==="left"?(O=g,x=O-s,w=T+s,D=T-s):(O=g+b,x=O+s,w=T-s,D=T+s),_=O):(i==="left"?x=g+Math.max(o,d)+s:i==="right"?x=g+b-Math.max(l,p)-s:x=this.caretX,u==="top"?(w=v,T=w-s,O=x-s,_=x+s):(w=v+k,T=w+s,O=x+s,_=x-s),D=w),{x1:O,x2:x,x3:_,y1:w,y2:T,y3:D}}drawTitle(t,n,r){const i=this.title,u=i.length;let s,a,o;if(u){const l=Ko(r.rtl,this.x,this.width);for(t.x=ds(this,r.titleAlign,r),n.textAlign=l.textAlign(r.titleAlign),n.textBaseline="middle",s=ct(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,o=0;ow!==0)?(t.beginPath(),t.fillStyle=u.multiKeyBackground,oa(t,{x:O,y:k,w:l,h:o,radius:_}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),oa(t,{x,y:k+1,w:l-2,h:o-2,radius:_}),t.fill()):(t.fillStyle=u.multiKeyBackground,t.fillRect(O,k,l,o),t.strokeRect(O,k,l,o),t.fillStyle=s.backgroundColor,t.fillRect(x,k+1,l-2,o-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:u,bodyAlign:s,displayColors:a,boxHeight:o,boxWidth:l,boxPadding:d}=r,p=ct(r.bodyFont);let g=p.lineHeight,v=0;const b=Ko(r.rtl,this.x,this.width),k=function(f){n.fillText(f,b.x(t.x+v),t.y+g/2),t.y+=g+u},O=b.textAlign(s);let x,_,w,T,D,P,y;for(n.textAlign=s,n.textBaseline="middle",n.font=p.string,t.x=ds(this,O,r),n.fillStyle=r.bodyColor,ue(this.beforeBody,k),v=a&&O!=="right"?s==="center"?l/2+d:l+2+d:0,T=0,P=i.length;T0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,u=r&&r.y;if(i||u){const s=Xi[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=Bf(this,t),o=Object.assign({},s,this._size),l=If(n,t,o),d=zf(t,o,l,n);(i._to!==d.x||u._to!==d.y)&&(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},u={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=Ct(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(u,t,i,n),mw(t,n.textDirection),u.y+=s.top,this.drawTitle(u,t,n),this.drawBody(u,t,n),this.drawFooter(u,t,n),gw(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:o})=>{const l=this.chart.getDatasetMeta(a);if(!l)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:l.data[o],index:o}}),u=!ta(r,i),s=this._positionChanged(i,n);(u||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,u=this._active||[],s=this._getActiveElements(t,u,n,r),a=this._positionChanged(s,t),o=n||!ta(s,u)||a;return o&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),o}_getActiveElements(t,n,r,i){const u=this.options;if(t.type==="mouseout")return[];if(!i)return n;const s=this.chart.getElementsAtEventForMode(t,u.mode,u,r);return u.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:i,options:u}=this,s=Xi[u.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}}mc.positioners=Xi;var TD={id:"tooltip",_element:mc,positioners:Xi,afterInit(e,t,n){n&&(e.tooltip=new mc({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",n)===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Xt,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndexe!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const MD=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function LD(e,t,n,r){const i=e.indexOf(t);if(i===-1)return MD(e,t,n,r);const u=e.lastIndexOf(t);return i!==u?n:i}const BD=(e,t)=>e===null?null:We(Math.round(e),0,t);class fa extends pr{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:u}of n)r[i]===u&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(ie(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:LD(r,t,ee(n,t),this._addedLabels),BD(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let u=this.getLabels();u=t===0&&n===u.length-1?u:u.slice(t,n+1),this._valueRange=Math.max(u.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=n;s++)i.push({value:s});return i}getLabelForValue(t){const n=this.getLabels();return t>=0&&tn.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}fa.id="category";fa.defaults={ticks:{callback:fa.prototype.getLabelForValue}};function ID(e,t){const n=[],{bounds:i,step:u,min:s,max:a,precision:o,count:l,maxTicks:d,maxDigits:p,includeBounds:g}=e,v=u||1,b=d-1,{min:k,max:O}=t,x=!ie(s),_=!ie(a),w=!ie(l),T=(O-k)/(p+1);let D=Hd((O-k)/b/v)*v,P,y,f,m;if(D<1e-14&&!x&&!_)return[{value:k},{value:O}];m=Math.ceil(O/D)-Math.floor(k/D),m>b&&(D=Hd(m*D/b/v)*v),ie(o)||(P=Math.pow(10,o),D=Math.ceil(D*P)/P),i==="ticks"?(y=Math.floor(k/D)*D,f=Math.ceil(O/D)*D):(y=k,f=O),x&&_&&u&&JE((a-s)/u,D/1e3)?(m=Math.round(Math.min((a-s)/D,d)),D=(a-s)/m,y=s,f=a):w?(y=x?s:y,f=_?a:f,m=l-1,D=(f-y)/m):(m=(f-y)/D,Ki(m,Math.round(m),D/1e3)?m=Math.round(m):m=Math.ceil(m));const h=Math.max($d(D),$d(y));P=Math.pow(10,ie(o)?h:o),y=Math.round(y*P)/P,f=Math.round(f*P)/P;let E=0;for(x&&(g&&y!==s?(n.push({value:s}),yi=n?i:o,a=o=>u=r?u:o;if(t){const o=qt(i),l=qt(u);o<0&&l<0?a(0):o>0&&l>0&&s(0)}if(i===u){let o=1;(u>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(o=Math.abs(u*.05)),a(u+o),t||s(i-o)}this.min=i,this.max=u}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},u=this._range||this,s=ID(i,u);return t.bounds==="ticks"&&ym(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Cu(t,this.chart.options.locale,this.options.ticks.format)}}class I0 extends ha{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Me(t)?t:0,this.max=Me(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Tt(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,u=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,u.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}I0.id="linear";I0.defaults={ticks:{callback:Va.formatters.numeric}};function Wf(e){return e/Math.pow(10,Math.floor(Et(e)))===1}function zD(e,t){const n=Math.floor(Et(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),i=[];let u=vt(e.min,Math.pow(10,Math.floor(Et(t.min)))),s=Math.floor(Et(u)),a=Math.floor(u/Math.pow(10,s)),o=s<0?Math.pow(10,Math.abs(s)):1;do i.push({value:u,major:Wf(u)}),++a,a===10&&(a=1,++s,o=s>=0?1:o),u=Math.round(a*Math.pow(10,s)*o)/o;while(s0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Me(t)?Math.max(0,t):null,this.max=Me(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const u=o=>r=t?r:o,s=o=>i=n?i:o,a=(o,l)=>Math.pow(10,Math.floor(Et(o))+l);r===i&&(r<=0?(u(1),s(10)):(u(a(r,-1)),s(a(i,1)))),r<=0&&u(a(i,-1)),i<=0&&s(a(r,1)),this._zero&&this.min!==this._suggestedMin&&r===a(this.min,0)&&u(a(r,-1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=zD(n,this);return t.bounds==="ticks"&&ym(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Cu(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Et(t),this._valueRange=Et(this.max)-Et(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Et(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}sg.id="logarithmic";sg.defaults={ticks:{callback:Va.formatters.logarithmic,major:{enabled:!0}}};function gc(e){const t=e.ticks;if(t.display&&e.display){const n=Ct(t.backdropPadding);return ee(t.font&&t.font.size,Z.font.size)+n.height}return 0}function jD(e,t,n){return n=pe(n)?n:[n],{w:F_(e,t.string,n),h:n.length*t.lineHeight}}function Hf(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function UD(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],u=e._pointLabels.length,s=e.options.pointLabels,a=s.centerPointLabels?_e/u:0;for(let o=0;ot.r&&(a=(r.end-t.r)/u,e.r=Math.max(e.r,t.r+a)),i.startt.b&&(o=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+o))}function WD(e,t,n){const r=[],i=e._pointLabels.length,u=e.options,s=gc(u)/2,a=e.drawingArea,o=u.pointLabels.centerPointLabels?_e/i:0;for(let l=0;l270||n<90)&&(e-=t),e}function YD(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const u=r.setContext(e.getPointLabelContext(i)),s=ct(u.font),{x:a,y:o,textAlign:l,left:d,top:p,right:g,bottom:v}=e._pointLabelItems[i],{backdropColor:b}=u;if(!ie(b)){const k=Vr(u.borderRadius),O=Ct(u.backdropPadding);n.fillStyle=b;const x=d-O.left,_=p-O.top,w=g-d+O.width,T=v-p+O.height;Object.values(k).some(D=>D!==0)?(n.beginPath(),oa(n,{x,y:_,w,h:T,radius:k}),n.fill()):n.fillRect(x,_,w,T)}aa(n,e._pointLabels[i],a,o+s.lineHeight/2,s,{color:u.color,textAlign:l,textBaseline:"middle"})}}function ag(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,oe);else{let u=e.getPointPosition(0,t);i.moveTo(u.x,u.y);for(let s=1;s{const i=be(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?UD(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=oe/(this._pointLabels.length||1),r=this.options.startAngle||0;return At(t*n+Tt(r))}getDistanceFromCenterForValue(t){if(ie(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(ie(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(d!==0){a=this.getDistanceFromCenterForValue(l.value);const p=i.setContext(this.getContext(d-1));qD(this,p,a,u)}}),r.display){for(t.save(),s=u-1;s>=0;s--){const l=r.setContext(this.getPointLabelContext(s)),{color:d,lineWidth:p}=l;!p||!d||(t.lineWidth=p,t.strokeStyle=d,t.setLineDash(l.borderDash),t.lineDashOffset=l.borderDashOffset,a=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),o=this.getPointPosition(s,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(o.x,o.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let u,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,o)=>{if(o===0&&!n.reverse)return;const l=r.setContext(this.getContext(o)),d=ct(l.font);if(u=this.getDistanceFromCenterForValue(this.ticks[o].value),l.showLabelBackdrop){t.font=d.string,s=t.measureText(a.label).width,t.fillStyle=l.backdropColor;const p=Ct(l.backdropPadding);t.fillRect(-s/2-p.left,-u-d.size/2-p.top,s+p.width,d.size+p.height)}aa(t,a.label,0,-u,d,{color:l.color})}),t.restore()}drawTitle(){}}Ha.id="radialLinear";Ha.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Va.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}};Ha.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};Ha.descriptors={angleLines:{_fallback:"grid"}};const $a={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},et=Object.keys($a);function GD(e,t){return e-t}function $f(e,t){if(ie(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:u}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),Me(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(Qr(u)||u===!0)?n.startOf(s,"isoWeek",u):n.startOf(s,i)),+s)}function Kf(e,t,n,r){const i=et.length;for(let u=et.indexOf(e);u=et.indexOf(n);u--){const s=et[u];if($a[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return et[n?et.indexOf(n):0]}function JD(e){for(let t=et.indexOf(e)+1,n=et.length;t=t?n[r]:n[i];e[u]=!0}}function ZD(e,t,n,r){const i=e._adapter,u=+i.startOf(t[0].value,r),s=t[t.length-1].value;let a,o;for(a=u;a<=s;a=+i.add(a,1,r))o=n[a],o>=0&&(t[o].major=!0);return t}function qf(e,t,n){const r=[],i={},u=t.length;let s,a;for(s=0;s+t.value))}initOffsets(t){let n=0,r=0,i,u;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,u=this.getDecimalForValue(t[t.length-1]),t.length===1?r=u:r=(u-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=We(n,0,s),r=We(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,u=i.time,s=u.unit||Kf(u.minUnit,n,r,this._getLabelCapacity(n)),a=ee(u.stepSize,1),o=s==="week"?u.isoWeekday:!1,l=Qr(o)||o===!0,d={};let p=n,g,v;if(l&&(p=+t.startOf(p,"isoWeek",o)),p=+t.startOf(p,l?"day":s),t.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const b=i.ticks.source==="data"&&this.getDataTimestamps();for(g=p,v=0;gk-O).map(k=>+k)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}_tickFormatFunction(t,n,r,i){const u=this.options,s=u.time.displayFormats,a=this._unit,o=this._majorUnit,l=a&&s[a],d=o&&s[o],p=r[n],g=o&&d&&p&&p.major,v=this._adapter.format(t,i||(g?d:l)),b=u.ticks.callback;return b?be(b,[v,n,r],this):v}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=er(e,"pos",t)),{pos:u,time:a}=e[r],{pos:s,time:o}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=er(e,"time",t)),{time:u,pos:a}=e[r],{time:s,pos:o}=e[i]);const l=s-u;return l?a+(o-a)*(t-u)/l:a}class og extends Ka{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=fs(n,this.min),this._tableRange=fs(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],u=[];let s,a,o,l,d;for(s=0,a=t.length;s=n&&l<=r&&i.push(l);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s2&&arguments[2]!==void 0?arguments[2]:lg;const r=[];e.datasets=t.map(i=>{const u=e.datasets.find(s=>s[n]===i[n]);return!u||!i.data||r.includes(u)?{...i}:(r.push(u),Object.assign(u,i),u)})}function tk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lg;const n={labels:[],datasets:[]};return cg(n,e.labels),dg(n,e.datasets,t),n}function nk(e,t){let{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:u,type:s,data:a,options:o,plugins:l=[],fallbackContent:d,updateMode:p,...g}=e;const v=j.exports.useRef(null),b=j.exports.useRef(),k=()=>{!v.current||(b.current=new Nu(v.current,{type:s,data:tk(a,u),options:o&&{...o},plugins:l}),Xf(t,b.current))},O=()=>{Xf(t,null),b.current&&(b.current.destroy(),b.current=null)};return j.exports.useEffect(()=>{!i&&b.current&&o&&ek(b.current,o)},[i,o]),j.exports.useEffect(()=>{!i&&b.current&&cg(b.current.config.data,a.labels)},[i,a.labels]),j.exports.useEffect(()=>{!i&&b.current&&a.datasets&&dg(b.current.config.data,a.datasets,u)},[i,a.datasets]),j.exports.useEffect(()=>{!b.current||(i?(O(),setTimeout(k)):b.current.update(p))},[i,o,a.labels,a.datasets,p]),j.exports.useEffect(()=>{!b.current||(O(),setTimeout(k))},[s]),j.exports.useEffect(()=>(k(),()=>O()),[]),c("canvas",{...Object.assign({ref:v,role:"img",height:n,width:r},g),children:d})}const rk=j.exports.forwardRef(nk);function ik(e,t){return Nu.register(t),j.exports.forwardRef((n,r)=>c(rk,{...Object.assign({},n,{ref:r,type:e})}))}const uk=ik("line",Ua),z0=e=>e.split("-").reverse().join("."),sk=e=>e.split(" ")[0].split("-").reverse().join(".");Nu.register(Au,Wa,I0,TD,fa);const ak=({activeRow:e,tabIndex:t})=>{const[n,r]=j.exports.useState();j.exports.useEffect(()=>{t&&new Be(`http://tmex.gov.tm:8765/api/categories/${t}/tradings`,n,r).get()},[t]);let i;const u={labels:n?n.data[e].all_prices.map(a=>sk(a.date)):[""],datasets:[{data:n?n.data[e].all_prices.map((a,o)=>o<=9?a.price:""):[""],borderColor:"#4b8dff",pointBorderWidth:2,pointBackgroundColor:"#4b8dff",tension:.1,animation:{onComplete:()=>{i=!0},delay:a=>{let o=0;return a.type==="data"&&a.mode==="default"&&!i&&(o=a.dataIndex*100+a.datasetIndex*100),o}}}]};return c("div",{className:"line-chart",children:c(uk,{data:u,options:{maintainAspectRatio:!1,radius:5,hitRadius:30,hoverRadius:7,scales:{x:{grid:{display:!1}},y:{ticks:{callback:a=>a},grid:{borderDash:[10]}}}}})})},ok=({lang:e})=>{const[t,n]=j.exports.useState(),[r,i]=j.exports.useState(0),[u,s]=j.exports.useState(0),[a,o]=j.exports.useState();j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/categories",t,n).get({"X-Localization":e})},[e]),j.exports.useEffect(()=>{t&&o(t.data[0].id)},[t]),j.exports.useEffect(()=>{i(0)},[u]);const l=(d,p)=>{o(d),s(p)};return c("section",{className:"chart",children:c("div",{className:"container",children:S("div",{className:"chart-wrapper",children:[c("div",{className:"chart-tabs",children:t?t.data.map((d,p)=>c("div",{className:`${a===d.id?"active":""} tab`,onClick:()=>{l(d.id,p)},children:c("span",{children:d.title})},d.id)):null}),S("div",{className:"chart-data",children:[c(UE,{activeRow:r,setActiveRow:i,tabIndex:a,lang:e}),c("div",{className:"line-chart-wrapper",children:c(ak,{activeRow:r,tabIndex:a})})]})]})})})},lk=({lang:e,setPostId:t})=>{const[n,r]=j.exports.useState();return j.exports.useState(),j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/news",n,r).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),S("main",{className:"home-main",children:[c(J1,{lang:e}),c("section",{className:"about",children:c("div",{className:"container",children:S("div",{className:"about-wrapper",children:[e==="ru"?S("div",{className:"about-left",children:[c(ce,{title:"\u041E \u0413\u0422\u0421\u0411\u0422"}),c("div",{className:"about-text-wrapper",children:c("p",{className:"about-text",children:"\u0413\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043D\u043D\u0430\u044F \u0442\u043E\u0432\u0430\u0440\u043D\u043E-\u0441\u044B\u0440\u044C\u0435\u0432\u0430\u044F \u0431\u0438\u0440\u0436\u0430 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u0431\u044B\u043B\u0430 \u0441\u043E\u0437\u0434\u0430\u043D\u0430 \u0423\u043A\u0430\u0437\u043E\u043C \u041F\u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u0430 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u043E\u0442 29 \u0438\u044E\u043B\u044F 1994 \u0433\u043E\u0434\u0430 \u0438 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0432\u0430\u0436\u043D\u0435\u0439\u0448\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u043C \u0438\u043D\u0441\u0442\u0438\u0442\u0443\u0442\u043E\u043C \u0441\u0442\u0440\u0430\u043D\u044B. \u0411\u0438\u0440\u0436\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442 \u0444\u0443\u043D\u043A\u0446\u0438\u044E \u0433\u043B\u0430\u0432\u043D\u043E\u0433\u043E \u043E\u0440\u0433\u0430\u043D\u0430 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0433\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E-\u0438\u043C\u043F\u043E\u0440\u0442\u043D\u044B\u0445 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0439. \u041E\u0442\u043B\u0430\u0436\u0435\u043D\u043D\u044B\u0439 \u043C\u0435\u0445\u0430\u043D\u0438\u0437\u043C \u0444\u0443\u043D\u043A\u0446\u0438\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0435\u0439 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0438\u043D\u0442\u0435\u0433\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u0436\u0434\u0443\u043D\u0430\u0440\u043E\u0434\u043D\u0443\u044E \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0441\u0438\u0441\u0442\u0435\u043C\u0443."})}),S("div",{className:"about-link-wrapper",children:[S(K,{to:"/",className:"about-link",children:[c("img",{src:at,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"\u041F\u043E\u0434\u0430\u0442\u044C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u043E\u043D\u043B\u0430\u0439\u043D"})]}),S(K,{to:"/",className:"about-link",children:[c("img",{src:at,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u0441\u0442\u0430\u0442\u0443\u0441 \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0438\u044F \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u043E\u0432"})]}),S(K,{to:"/",className:"about-link",children:[c("img",{src:at,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"\u0423\u0437\u043D\u0430\u0442\u044C \u0438\u043C\u043F\u043E\u0440\u0442\u043D\u044B\u0435 \u0446\u0435\u043D\u044B \u043C\u043E\u0436\u043D\u043E \u0437\u0434\u0435\u0441\u044C"})]}),S(K,{to:"/",className:"about-link",children:[c("img",{src:at,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0442\u0430\u0440\u0438\u0444\u044B \u0438 \u0441\u0431\u043E\u0440\u044B \u0434\u043B\u044F \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u043E\u0432 \u0431\u0438\u0440\u0436\u044B"})]})]})]}):null,e==="tm"?S("div",{className:"about-left",children:[c(ce,{title:"TDH\xC7MB BARADA"}),c("div",{className:"about-text-wrapper",children:c("p",{className:"about-text",children:"T\xFCrkmenistany\u0148 D\xF6wlet haryt we \xE7ig mal bir\u017Easy (TDH\xC7MB) T\xFCrkmenistany\u0148 Prezidentini\u0148 1994-nji \xFDyly\u0148 29-njy i\xFDulyndaky Karary bilen d\xF6redildi we \xFDurdu\u0148 i\u0148 m\xF6h\xFCm ykdysady instituty bolup dur\xFDar. Bir\u017Ea eksport we import amallaryny amala a\u015Fyrmakda d\xF6wleti d\xFCzg\xFCnle\u015Fdir\xFD\xE4n esasy edarany\u0148 wezipesini \xFDerine \xFDetir\xFD\xE4r. Sazla\u015Fykly d\xF6redilen mehanizm halkara ykdysady ulgamyna \xFCst\xFCnlikli birle\u015Fm\xE4ge m\xFCmkin\xE7ilik ber\xFD\xE4r. TDH\xC7MB-ny\u0148 i\u015Fini\u0148 gerimi \xF6r\xE4n gi\u0148dir \u2013 d\xFCrli haryt we maddy ba\xFDlyklary (intellektual e\xFDe\xE7iligi hasaba almazdan), sungat eserlerini we gozgalma\xFDan eml\xE4kleri kabul edip sat\xFDan k\xF6ptarapla\xFDyn bir\u017Easydyr."})}),S("div",{className:"about-link-wrapper",children:[S(K,{to:"/",className:"about-link",children:[c("img",{src:at,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"Resminamalary onla\xFDn tab\u015Fyrmak"})]}),S(K,{to:"/",className:"about-link",children:[c("img",{src:at,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"Gol \xE7ekilen \u015Fertnamalary\u0148 \xFDagda\xFDlaryny barlamak"})]}),S(K,{to:"/",className:"about-link",children:[c("img",{src:at,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"Import bahalaryny \u015Fu \xFDerden tapyp bilersi\u0148iz"})]}),S(K,{to:"/",className:"about-link",children:[c("img",{src:at,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"Bir\u017Eany\u0148 agzalary \xFC\xE7in nyrhlary we t\xF6legleri g\xF6r\xFC\u0148"})]})]})]}):null,e==="en"?S("div",{className:"about-left",children:[c(ce,{title:"About the SCRMET"}),c("div",{className:"about-text-wrapper",children:c("p",{className:"about-text",children:"The State Commodity and Raw Materials Exchange of Turkmenistan (SCRMET) was established by the Decree of the President of Turkmenistan on July 29, 1994 and is the most important economic institution of the country. The Exchange functions as the main body of state regulation of export-import operations. Its smoothly functioning mechanism enables it to successfully integrate into the international economic system."})}),S("div",{className:"about-link-wrapper",children:[S(K,{to:"/",className:"about-link",children:[c("img",{src:at,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"Apply documents online"})]}),S(K,{to:"/",className:"about-link",children:[c("img",{src:at,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"Check the status of signed contracts"})]}),S(K,{to:"/",className:"about-link",children:[c("img",{src:at,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"You can find import prices here"})]}),S(K,{to:"/",className:"about-link",children:[c("img",{src:at,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"View rates and fees for exchange members"})]})]})]}):null,c("div",{className:"about-right",children:c(Y3,{videoUrl:"https://www.exchange.gov.tm/page/normative-base?lang=ru"})})]})})}),c(ok,{lang:e}),c("section",{className:"news",children:c("div",{className:"container",children:S("div",{className:"news-wrapper",children:[c(ce,{title:` - ${e==="ru"?"\u041D\u043E\u0432\u043E\u0441\u0442\u0438":e==="tm"?"Habarlar":e==="en"?"News":null}`}),c("div",{className:"news-post-wrapper",children:n?n.data.map((i,u)=>u<=2?c(b3,{title:i.title,shortDes:i.short_description,date:z0(i.date),image:i.image,id:i.id,setPostId:t,lang:e},i.id):null):""})]})})})]})},ck=({lang:e})=>(j.exports.useEffect(()=>{window.scrollTo(0,0)},[]),c("main",{children:S("div",{className:"container",children:[e==="ru"?S("div",{className:"sub-page-wrapper",children:[c(ce,{title:"\u041E \u0431\u0438\u0440\u0436\u0435"}),S("div",{className:"sub-page-content-wrapper",children:[S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"\u0413\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043D\u043D\u0430\u044F \u0442\u043E\u0432\u0430\u0440\u043D\u043E-\u0441\u044B\u0440\u044C\u0435\u0432\u0430\u044F \u0431\u0438\u0440\u0436\u0430 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u0431\u044B\u043B\u0430 \u0441\u043E\u0437\u0434\u0430\u043D\u0430 \u0423\u043A\u0430\u0437\u043E\u043C \u041F\u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u0430 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u043E\u0442 29 \u0438\u044E\u043B\u044F 1994 \u0433\u043E\u0434\u0430 \u0438 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0432\u0430\u0436\u043D\u0435\u0439\u0448\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u043C \u0438\u043D\u0441\u0442\u0438\u0442\u0443\u0442\u043E\u043C \u0441\u0442\u0440\u0430\u043D\u044B. \u0411\u0438\u0440\u0436\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442 \u0444\u0443\u043D\u043A\u0446\u0438\u044E \u0433\u043B\u0430\u0432\u043D\u043E\u0433\u043E \u043E\u0440\u0433\u0430\u043D\u0430 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0433\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E-\u0438\u043C\u043F\u043E\u0440\u0442\u043D\u044B\u0445 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0439. \u041E\u0442\u043B\u0430\u0436\u0435\u043D\u043D\u044B\u0439 \u043C\u0435\u0445\u0430\u043D\u0438\u0437\u043C \u0444\u0443\u043D\u043A\u0446\u0438\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0435\u0439 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0438\u043D\u0442\u0435\u0433\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u0436\u0434\u0443\u043D\u0430\u0440\u043E\u0434\u043D\u0443\u044E \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0441\u0438\u0441\u0442\u0435\u043C\u0443."}),c("p",{children:"\u0421\u043F\u0435\u043A\u0442\u0440 \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0413\u0422\u0421\u0411\u0422 \u0447\u0440\u0435\u0437\u0432\u044B\u0447\u0430\u0439\u043D\u043E \u0448\u0438\u0440\u043E\u043A \u2013 \u043E\u043D\u0430 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0443\u043D\u0438\u0432\u0435\u0440\u0441\u0430\u043B\u044C\u043D\u043E\u0439 \u0431\u0438\u0440\u0436\u0435\u0439, \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u044F \u0438 \u0440\u0435\u0430\u043B\u0438\u0437\u0443\u044F \u0447\u0435\u0440\u0435\u0437 \u0442\u043E\u0440\u0433\u0438 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0435 \u0442\u043E\u0432\u0430\u0440\u043D\u043E-\u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u044B\u0435 \u0446\u0435\u043D\u043D\u043E\u0441\u0442\u0438 (\u0437\u0430 \u0438\u0441\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435\u043C \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432 \u0438\u043D\u0442\u0435\u043B\u043B\u0435\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E\u0439 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0441\u0442\u0438), \u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0430 \u0438 \u043D\u0435\u0434\u0432\u0438\u0436\u0438\u043C\u043E\u0441\u0442\u044C."})]}),S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"\u0417\u0430\u0434\u0430\u0447\u0438 \u0438 \u0446\u0435\u043B\u0438 \u0431\u0438\u0440\u0436\u0438"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0440\u0430\u0432\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u0434\u043B\u044F \u0435\u0435 \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u043E\u0432 \u2013 \u0434\u0435\u043B\u043E\u0432\u044B\u043C \u0438\u043D\u043E\u0441\u0442\u0440\u0430\u043D\u043D\u044B\u043C \u043B\u044E\u0434\u044F\u043C \u0438 \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044F\u043C \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430"})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0438 \u0443\u0441\u043A\u043E\u0440\u0438\u0442\u044C \u0442\u043E\u0432\u0430\u0440\u043E\u043E\u0431\u043E\u0440\u043E\u0442"})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\u041D\u0430\u0441\u044B\u0442\u0438\u0442\u044C \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0439 \u0440\u044B\u043D\u043E\u043A \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u043C\u0438 \u0442\u043E\u0432\u0430\u0440\u0430\u043C\u0438 \u043D\u0430\u0440\u043E\u0434\u043D\u043E\u0433\u043E \u043F\u043E\u0442\u0440\u0435\u0431\u043B\u0435\u043D\u0438\u044F, \u043F\u0440\u043E\u0434\u0443\u043A\u0446\u0438\u0435\u0439 \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0441\u0442\u0432\u0435\u043D\u043D\u043E-\u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0438 \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u0435\u043C, \u043F\u0440\u0435\u0434\u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044B\u043C \u0434\u043B\u044F \u043C\u043E\u0434\u0435\u0440\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u043D\u0430\u0440\u043E\u0434\u043D\u043E-\u0445\u043E\u0437\u044F\u0439\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u043A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u0430 \u0441\u0442\u0440\u0430\u043D\u044B."})]})]})]}),S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"\u041A\u0432\u0430\u043B\u0438\u0444\u0438\u0446\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0441\u0442\u044B \u0431\u0438\u0440\u0436\u0438 \u043E\u0446\u0435\u043D\u0438\u0432\u0430\u044E\u0442 \u0446\u0435\u043B\u0435\u0441\u043E\u043E\u0431\u0440\u0430\u0437\u043D\u043E\u0441\u0442\u044C \u0432\u0432\u043E\u0437\u0430 \u0438 \u0432\u044B\u0432\u043E\u0437\u0430 \u043F\u0440\u043E\u0434\u0443\u043A\u0446\u0438\u0438, \u043F\u0440\u043E\u0432\u043E\u0434\u044F\u0442 \u0430\u043D\u0430\u043B\u0438\u0437 \u0432\u043B\u0438\u044F\u043D\u0438\u044F \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0445 \u0444\u0430\u043A\u0442\u043E\u0440\u043E\u0432 \u043D\u0430 \u0438\u043C\u043F\u043E\u0440\u0442 \u0438 \u044D\u043A\u0441\u043F\u043E\u0440\u0442 \u0442\u043E\u0432\u0430\u0440\u043E\u0432 \u0438 \u043F\u0440\u043E\u0434\u0443\u043A\u0446\u0438\u0438."}),c("p",{children:"\u0413\u043B\u0430\u0432\u043D\u044B\u043C \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0435 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0445 \u043B\u0435\u0442 \u0441\u0442\u0430\u043B\u043E \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u0435 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0433\u043E \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u043E\u0431\u043E\u0440\u043E\u0442\u0430 \u2013 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0439 \u0441\u0438\u0441\u0442\u0435\u043C\u044B, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u043D\u043E \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u0435 \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u043E\u0432 \u0438 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u043D\u0430\u0447\u0438\u043D\u0430\u044F \u0441 \u0438\u0445 \u0432\u0432\u043E\u0434\u0430 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043D\u043D\u044B\u0445 \u0438 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u044F \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u0438 \u0432\u044B\u0434\u0430\u0447\u0435\u0439 \u043A\u043B\u0438\u0435\u043D\u0442\u0443."}),c("p",{children:"\u041D\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445 \u0440\u0435\u0430\u043B\u0438\u0437\u0443\u0435\u0442\u0441\u044F \u043F\u0440\u043E\u0434\u0443\u043A\u0446\u0438\u044F \u043E\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0441\u0442\u0432\u0430, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u0432 \u0431\u043E\u043B\u0435\u0435 40 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432 \u043C\u0438\u0440\u0430. \u0421\u0440\u0435\u0434\u0438 \u043D\u0438\u0445 - \u0422\u0443\u0440\u0446\u0438\u044F, \u041A\u0438\u0442\u0430\u0439, \u0420\u043E\u0441\u0441\u0438\u044F, \u041E\u0410\u042D, \u0413\u0435\u0440\u043C\u0430\u043D\u0438\u044F, \u0421\u0428\u0410, \u0412\u0435\u043B\u0438\u043A\u043E\u0431\u0440\u0438\u0442\u0430\u043D\u0438\u044F, \u0423\u043A\u0440\u0430\u0438\u043D\u0430, \u0428\u0432\u0435\u0439\u0446\u0430\u0440\u0438\u044F. \u041E\u0441\u043D\u043E\u0432\u043D\u044B\u043C\u0438 \u0441\u0442\u0430\u0442\u044C\u044F\u043C\u0438 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0430 \u044F\u0432\u043B\u044F\u044E\u0442\u0441\u044F \u043D\u0435\u0444\u0442\u0435\u043F\u0440\u043E\u0434\u0443\u043A\u0442\u044B, \u0445\u043B\u043E\u043F\u043E\u043A-\u0432\u043E\u043B\u043E\u043A\u043D\u043E, \u043F\u0440\u043E\u0434\u0443\u043A\u0446\u0438\u044F \u0442\u0435\u043A\u0441\u0442\u0438\u043B\u044C\u043D\u043E\u0439 \u0438 \u0445\u0438\u043C\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u043F\u0440\u043E\u043C\u044B\u0448\u043B\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u0438 \u0442.\u0434."})]}),S("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:"\u041F\u0440\u0430\u0432\u0438\u043B\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u043E\u0439 \u0442\u043E\u0440\u0433\u043E\u0432\u043B\u0438"}),c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"\u0412 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0417\u0430\u043A\u043E\u043D\u043E\u043C \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \xAB\u041E \u0442\u043E\u0432\u0430\u0440\u043D\u043E-\u0441\u044B\u0440\u044C\u0435\u0432\u044B\u0445 \u0431\u0438\u0440\u0436\u0430\u0445\xBB, \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u0430\u043C\u0438 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u043E\u0432 \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u044F\u0442\u0438\u044F \u0438 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0445 \u0444\u043E\u0440\u043C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0441\u0442\u0438, \u0433\u0440\u0430\u0436\u0434\u0430\u043D\u0435 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432 \u043F\u0443\u0442\u0435\u043C \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u044F \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u0438\u043B\u0438 \u0437\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435\u043C \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u0430 \u043D\u0430 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0441 \u0431\u0440\u043E\u043A\u0435\u0440\u0430\u043C\u0438 \u0431\u0438\u0440\u0436\u0438."})})]}),S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"\u0411\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0443\u044E\u0442\u0441\u044F \u043D\u0430 \u043E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u0438 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0445 \u043F\u0440\u0438\u043D\u0446\u0438\u043F\u043E\u0432:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u0413\u043B\u0430\u0441\u043D\u043E\u0441\u0442\u044C \u0438 \u043F\u0443\u0431\u043B\u0438\u0447\u043D\u043E\u0441\u0442\u044C \u043F\u0440\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u043E\u0432."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"\u0421\u0432\u043E\u0431\u043E\u0434\u0430 \u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0446\u0435\u043D \u043D\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\u0414\u043E\u0431\u0440\u043E\u0432\u043E\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0437\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0441\u0434\u0435\u043B\u043E\u043A."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"\u0420\u0430\u0432\u0435\u043D\u0441\u0442\u0432\u043E \u0443\u0441\u043B\u043E\u0432\u0438\u0439 \u0443\u0447\u0430\u0441\u0442\u0438\u044F \u0432 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445 \u0434\u043B\u044F \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u043E\u0432 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u043E\u0432."})]})]})]}),S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"\u0427\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043D\u044F\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0441\u0442\u0438 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0435 \u043C\u0435\u0441\u0442\u043E. \u0412 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043F\u0440\u043E\u0434\u0430\u0432\u0446\u0430 \u0438\u043B\u0438 \u043F\u043E\u043A\u0443\u043F\u0430\u0442\u0435\u043B\u044F \u043C\u043E\u0433\u0443\u0442 \u0432\u044B\u0441\u0442\u0443\u043F\u0430\u0442\u044C \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0438 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043B\u0438\u0446\u0430 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u0438 \u0438\u043D\u043E\u0441\u0442\u0440\u0430\u043D\u043D\u044B\u0445 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432 \u0432\u0441\u0435\u0445 \u0444\u043E\u0440\u043C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0441\u0442\u0438."}),c("p",{children:"\u041B\u0438\u0446\u0430, \u043D\u0435 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0448\u0438\u0435 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0435 \u043C\u0435\u0441\u0442\u043E, \u0447\u0442\u043E\u0431\u044B \u043E\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043B\u044F\u0442\u044C \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043A\u0443\u043F\u043B\u0438-\u043F\u0440\u043E\u0434\u0430\u0436\u0438 \u0442\u043E\u0432\u0430\u0440\u043E\u0432, \u043C\u043E\u0433\u0443\u0442 \u0437\u0430\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0434\u043E\u0433\u043E\u0432\u043E\u0440 \u043D\u0430 \u043E\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u0438\u0445 \u0443\u0441\u043B\u0443\u0433 \u0441 \u0431\u0440\u043E\u043A\u0435\u0440\u0430\u043C\u0438 \u0411\u0438\u0440\u0436\u0438."})]})]})]}):null,e==="tm"?S("div",{className:"sub-page-wrapper",children:[c(ce,{title:"Bir\u017Ea barada"}),S("div",{className:"sub-page-content-wrapper",children:[S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"T\xFCrkmenistany\u0148 D\xF6wlet haryt we \xE7ig mal bir\u017Easy (TDH\xC7MB) T\xFCrkmenistany\u0148 Prezidentini\u0148 1994-nji \xFDyly\u0148 29-njy i\xFDulyndaky Karary bilen d\xF6redildi we \xFDurdu\u0148 i\u0148 m\xF6h\xFCm ykdysady instituty bolup dur\xFDar. Bir\u017Ea eksport we import amallaryny amala a\u015Fyrmakda d\xF6wleti d\xFCzg\xFCnle\u015Fdir\xFD\xE4n esasy edarany\u0148 wezipesini \xFDerine \xFDetir\xFD\xE4r. Sazla\u015Fykly d\xF6redilen mehanizm halkara ykdysady ulgamyna \xFCst\xFCnlikli birle\u015Fm\xE4ge m\xFCmkin\xE7ilik ber\xFD\xE4r."}),c("p",{children:"TDH\xC7MB-ny\u0148 i\u015Fini\u0148 gerimi \xF6r\xE4n gi\u0148dir \u2013 d\xFCrli haryt we maddy ba\xFDlyklary (intellektual e\xFDe\xE7iligi hasaba almazdan), sungat eserlerini we gozgalma\xFDan eml\xE4kleri kabul edip sat\xFDan k\xF6ptarapla\xFDyn bir\u017Easydyr."})]}),S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Bir\u017Eany\u0148 wezipeleri we maksatlary:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Eany\u0148 m\xFC\u015Fderileri \u2013 T\xFCrkmenistany\u0148 da\u015Fary \xFDurtly i\u015Few\xFCr adamlary we teleke\xE7ileri \xFC\xE7in de\u0148 \u015Fertleri d\xF6retmek."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"S\xF6wda dolany\u015Fygyny \xFDokarlandyrmak we \xE7altla\u015Fdyrmak."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\xDDurdu\u0148 milli ykdysady toplumyny d\xF6wrebapla\u015Fdyrmak \xFC\xE7in i\xE7erki bazary zerur sarp edi\u015F harytlary, \xF6n\xFCm\xE7ilik, tehniki \xF6n\xFCmler we enjamlar bilen doldurmak."})]})]})]}),S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"Bir\u017Eany\u0148 \xF6kde h\xFCn\xE4rmenleri \xF6n\xFCmleri\u0148 importyny\u0148 we eksportyny\u0148 maksadala\xFDyklygyna baha ber\xFD\xE4rler, d\xFCrli faktorlary\u0148 harytlary\u0148 we \xF6n\xFCmleri\u0148 importyna we eksportyna ed\xFD\xE4n t\xE4sirini seljer\xFD\xE4rler."}),c("p",{children:"Bir\u017Ea s\xF6wdasynda \xFDerli \xF6nd\xFCrilen \xF6n\xFCmler d\xFCn\xFD\xE4ni\u0148 40-dan gowrak \xFDurduna eksport edil\xFD\xE4r we aly\u015F-\xE7aly\u015F auksionlarynda satyl\xFDar. Olary\u0148 arasynda T\xFCrki\xFDe, Hyta\xFD, Russi\xFDa, BAE, Germani\xFDa, AB\u015E, Be\xFDik Britani\xFDa, Ukraina, \u015Ewe\xFDsari\xFDa \xFDaly \xFDurtlar bar. Esasy eksport \xF6n\xFCmleri bolup nebit, pagta s\xFC\xFD\xFCmi, dokma we himi\xFDa senagatyny\u0148 \xF6n\xFCmleri we \u015F.m. hyzmat ed\xFD\xE4r."})]})]})]}):null,e==="en"?S("div",{className:"sub-page-wrapper",children:[c(ce,{title:"About the Exchange"}),S("div",{className:"sub-page-content-wrapper",children:[S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"The State Commodity and Raw Materials Exchange of Turkmenistan (SCRMET) was established by the Decree of the President of Turkmenistan on July 29, 1994 and is the most important economic institution of the country. The Exchange functions as the main body of state regulation of export-import operations. Its smoothly functioning mechanism enables it to successfully integrate into the international economic system."}),c("p",{children:"The range of the SCRMET activities is extremely wide \u2013 it is a universal exchange, accepting and selling various commodities and materials (except intellectual property objects), works of art and real estate through auctions."})]}),S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Objectives and aims of the exchange:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"to create an equal playing field for its participants \u2013 foreign businessmen and entrepreneurs of Turkmenistan;"})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"to increase and accelerate trade turnover;"})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"to saturate domestic market with necessary consumer goods, production of industrial-technical purpose and equipment for modernization of national economy complex."})]})]})]}),S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"Qualified specialists of the exchange evaluate expediency of import and export of products, analyze influence of various factors on import and export of goods and products."}),c("p",{children:"Domestic products, which are exported to more than 40 countries, are traded at commodity exchanges. Among them are Turkey, China, Russia, UAE, Germany, USA, UK, Ukraine and Switzerland. The main export items are petroleum products, cotton fibre, textile and chemical products, etc."})]})]})]}):null]})})),dk=({lang:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/documents",t,n).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),c("main",{children:c("div",{className:"container",children:S("div",{className:"sub-page-wrapper",children:[e==="ru"?S(He,{children:[c(ce,{title:"\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u044B\u0439 \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433"}),S("div",{className:"sub-page-content-wrapper",children:[S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"\u0412 \u0446\u0435\u043B\u044F\u0445 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u043F\u0440\u043E\u0442\u0438\u0432\u043E\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u043B\u0435\u0433\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043E\u0445\u043E\u0434\u043E\u0432, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u044B\u0445 \u043E\u0442 \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043D\u043E\u0439 \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438, \u0438 \u0444\u0438\u043D\u0430\u043D\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044E \u0442\u0435\u0440\u0440\u043E\u0440\u0438\u0437\u043C\u0430, \u043D\u0430 \u0431\u0438\u0440\u0436\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u044B \u041F\u0440\u0430\u0432\u0438\u043B\u0430, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u044E\u0442 \u043E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u0446\u0435\u043B\u0438 \u0438 \u0437\u0430\u0434\u0430\u0447\u0438, \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0435\u0433\u043E \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044F. \u0422\u0430\u043A\u0436\u0435 \u0431\u0438\u0440\u0436\u0435\u0439 \u043D\u0430\u0437\u043D\u0430\u0447\u0430\u0435\u0442\u0441\u044F \u043B\u0438\u0446\u043E, \u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435 \u0437\u0430 \u0441\u043E\u0431\u043B\u044E\u0434\u0435\u043D\u0438\u0435 \u044D\u0442\u0438\u0445 \u043F\u0440\u0430\u0432\u0438\u043B."}),c("p",{children:"\u0421\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A \u043A\u043E\u043C\u0438\u0441\u0441\u0438\u0438, \u043D\u0430 \u043E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u0438 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043E\u0442 \u043A\u043B\u0438\u0435\u043D\u0442\u0430, \u0442\u0449\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u043F\u0440\u043E\u0432\u0435\u0440\u044F\u0435\u0442 \u0435\u0435 \u0441 \u0443\u0447\u0435\u0442\u043E\u043C \u0432\u0438\u0434\u043E\u0432 \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0438 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0439 \u043A\u043B\u0438\u0435\u043D\u0442\u0430, \u043E\u0446\u0435\u043D\u0438\u0432\u0430\u0435\u0442 \u0438 \u043F\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0440\u0438\u0441\u043A\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0432\u043D\u043E\u0441\u0438\u0442 \u0435\u0435 \u0432 \u0410\u0411\u0421."})]}),S("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0432 \u043E\u0442\u0434\u0435\u043B\u0435 \u0444\u0438\u043D. \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433\u0430"}),S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"\u041F\u043E\u0434\u0430\u0442\u044C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u043D\u0430 \u043B\u0435\u0433\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044E \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043B\u0438\u0446\u0430 \u0438\u043B\u0438 \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044F \u043C\u043E\u0436\u043D\u043E \u043E\u043D\u043B\u0430\u0439\u043D. \u041B\u0438\u0447\u043D\u044B\u0439 \u043A\u0430\u0431\u0438\u043D\u0435\u0442 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u043D\u0435\u0441\u0442\u0438 \u0434\u0430\u043D\u043D\u044B\u0435 \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B, \u0441\u043A\u0430\u0447\u0430\u0442\u044C \u0431\u043B\u0430\u043D\u043A\u0438 \u0438 \u043E\u0431\u0440\u0430\u0437\u0446\u044B \u0437\u0430\u044F\u0432\u043B\u0435\u043D\u0438\u0439, \u0432\u0435\u0441\u0442\u0438 \u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0441 \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u0430\u043C\u0438 \u0431\u0438\u0440\u0436\u0438, \u0434\u043E\u043F\u043E\u043B\u043D\u044F\u0442\u044C \u043F\u0430\u043A\u0435\u0442 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0435\u0441\u043B\u0438 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043A\u0430\u044F \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \u0424\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u0438, \u0432\u0441\u044F \u0440\u0430\u0431\u043E\u0442\u0430 \u0441 \u0431\u0438\u0440\u0436\u0435\u0439 \u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0439 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442\u0430."}),c("p",{children:"\u0427\u0442\u043E\u0431\u044B \u0432\u043E\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u043C \u2013 \u043F\u0440\u043E\u0439\u0434\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044E \u0432 \u041B\u0438\u0447\u043D\u043E\u043C \u043A\u0430\u0431\u0438\u043D\u0435\u0442\u0435."})]})]})]})]}):null,e==="tm"?S(He,{children:[c(ce,{title:"Mali\xFDe g\xF6zeg\xE7iligi"}),S("div",{className:"sub-page-content-wrapper",children:[S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"Jena\xFDat\xE7ylykdan alnan girdejileri\u0148 kanunla\u015Fdyrylmagyna we terror\xE7ylygy mali\xFDele\u015Fdirm\xE4ge gar\u015Fy \xE7\xE4releri guramak \xFC\xE7in bir\u017Ea esasy maksatlary we wezipeleri, i\xE7erki g\xF6zeg\xE7ilik talaplaryny kesgitle\xFD\xE4n d\xFCzg\xFCnlerini d\xF6retdi. \u015Ee\xFDle hem, bir\u017Ea bu d\xFCzg\xFCnleri\u0148 berja\xFD edilmegi \xFC\xE7in jogapk\xE4r adamy belle\xFD\xE4r."}),c("p",{children:"M\xFC\u015Fderiden alnan maglumatlara esaslanyp, komissi\xFDany\u0148 i\u015Fg\xE4ri m\xFC\u015Fderini\u0148 i\u015Flerini\u0148 we amallaryny\u0148 g\xF6rn\xFC\u015Flerini g\xF6z \xF6\u0148\xFCnde tutup, ony \xFCns bilen barla\xFDar, degi\u015Fli t\xF6wekgel\xE7ilik derejesini bahalandyr\xFDar we belle\xFD\xE4r, \u015Fe\xFDle hem ABU-yna giriz\xFD\xE4r."})]}),S("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:"Mali\xFDe g\xF6zeg\xE7iligi b\xF6l\xFCminde hasaba aly\u015F "}),S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"Hukuk guramasyny\u0148 \xFDa-da teleke\xE7ini\u0148 kanunla\u015Fdyrylmagy \xFC\xE7in resminamalary onla\xFDn g\xF6rn\xFC\u015Finde hasaba alyp bolar. Ulanyjyny\u0148 \u015Fahsy otagy maglumatlary girizm\xE4ge we resminamalary \xFD\xFCklem\xE4ge, anketalary we nusgalary g\xF6\xE7\xFCrip almaga, aly\u015F-\xE7aly\u015F dolandyryjylary bilen habarla\u015Fmaga, zerur bolsa resminamalar bukjasyny doldurmaga m\xFCmkin\xE7ilik ber\xFD\xE4r. Umuman, bir\u017Ea bilen baglany\u015Fykly \xE4hli i\u015Fler interneti\u0148 k\xF6megi bilen doly awtomatla\u015Fdyryl\xFDar."}),c("p",{children:"Hyzmaty ulanmak \xFC\xE7in \u015Eahsy otagy\u0148yzda hasaba alynmagy\u0148yz h\xF6kmanydyr."})]})]})]})]}):null,e==="en"?S(He,{children:[c(ce,{title:"Financial monitoring"}),S("div",{className:"sub-page-content-wrapper",children:[S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"In order to organize counteraction to the legalization of proceeds from criminal activity and the financing of terrorism, the exchange has established Rules that define the main goals and objectives, internal control requirements. The exchange also appoints a person responsible for compliance with these rules."}),c("p",{children:"An employee of the commission, based on the information received from the client, carefully checks it taking into account the types of activities and operations of the client, evaluates and assigns the appropriate level of risk, and also enters it into the AES."})]}),S("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:"Registration in the financial monitoring department"}),S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"You can submit documents for the legalization of a legal entity or entrepreneur online. The user's personal account allows you to enter data and upload documents, download forms and application samples, communicate with exchange administrators, supplement the package of documents if necessary. In fact, all work with the exchange becomes automated using the Internet."}),c("p",{children:"To use the service, register in your Personal Account."})]})]})]})]}):null,S("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:e==="ru"?"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u0434\u043B\u044F \u0441\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u044F":e==="tm"?"G\xF6\xE7\xFCrip almak \xFC\xE7in resminamalar":e==="en"?"Documents for download":null}),c("div",{className:"documents-wrapper",children:c("div",{className:"documents-links-wrapper",children:t?t.data.map(r=>r.page==="\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u044B\u0439 \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433"&&r.title!="-"?c(Ta,{title:r.title,link:r.file},r.id):null):""})})]})]})})})},fk=({lang:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/documents",t,n).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),c("main",{children:c("div",{className:"container",children:S("div",{className:"sub-page-wrapper",children:[e==="ru"?S(He,{children:[c(ce,{title:"\u041D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0431\u0430\u0437\u0430"}),S("div",{className:"sub-page-content-wrapper",children:[c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"\u0410\u0440\u0431\u0438\u0442\u0440\u0430\u0436\u043D\u0430\u044F \u043A\u043E\u043C\u0438\u0441\u0441\u0438\u044F \u0432 \u0441\u0432\u043E\u0435\u0439 \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044F \u041A\u043E\u043D\u0441\u0442\u0438\u0442\u0443\u0446\u0438\u0435\u0439, \u0437\u0430\u043A\u043E\u043D\u0430\u043C\u0438, \u0430\u043A\u0442\u0430\u043C\u0438 \u041F\u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u0430, \u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435\u043C \u0411\u0438\u0440\u0436\u0438, \u043F\u0440\u0430\u0432\u0438\u043B\u0430\u043C\u0438 \u0431\u0438\u0440\u0436\u0435\u0432\u043E\u0439 \u0442\u043E\u0440\u0433\u043E\u0432\u043B\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u043D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u043E-\u043F\u0440\u0430\u0432\u043E\u0432\u044B\u043C\u0438 \u0430\u043A\u0442\u0430\u043C\u0438."})}),S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"\u0412 \u043A\u043E\u043C\u043F\u0435\u0442\u0435\u043D\u0446\u0438\u044E \u0410\u0440\u0431\u0438\u0442\u0440\u0430\u0436\u043D\u043E\u0439 \u043A\u043E\u043C\u0438\u0441\u0441\u0438\u0438 \u0432\u0445\u043E\u0434\u0438\u0442:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u0410\u043D\u043D\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0441\u0434\u0435\u043B\u043E\u043A, \u0437\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0445 \u043D\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"\u0410\u043D\u043D\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0438 \u043D\u0435\u0432\u043E\u0441\u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u043D\u0430 \u0411\u0438\u0440\u0436\u0435 \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\u0420\u0430\u0441\u0441\u043C\u043E\u0442\u0440\u0435\u043D\u0438\u0435 \u0441\u043F\u043E\u0440\u043E\u0432 \u043F\u043E \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u043C \u0441\u0434\u0435\u043B\u043A\u0430\u043C \u0438 \u0432\u043E\u043F\u0440\u043E\u0441\u0430\u043C \u0431\u0438\u0440\u0436\u0435\u0432\u043E\u0439 \u0442\u043E\u0440\u0433\u043E\u0432\u043B\u0438."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"\u0420\u0430\u0441\u0441\u043C\u043E\u0442\u0440\u0435\u043D\u0438\u0435 \u0441\u043F\u043E\u0440\u043E\u0432 \u043F\u043E \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u0430\u043C, \u043F\u0440\u0438 \u0438\u0445 \u0437\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438, \u0432\u043D\u0435\u0441\u0435\u043D\u0438\u0438 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0439 \u0438 \u0440\u0430\u0441\u0442\u043E\u0440\u0436\u0435\u043D\u0438\u0438."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"\u041A\u043E\u043C\u0438\u0441\u0441\u0438\u044F \u0432\u043F\u0440\u0430\u0432\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C, \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u0438\u043D\u044F\u0442\u043E\u0435 \u0440\u0435\u0448\u0435\u043D\u0438\u0435."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"6"}),c("h3",{className:"sub-page-list-item-text",children:"\u0420\u0430\u0441\u0441\u043C\u043E\u0442\u0440\u0435\u043D\u0438\u0435 \u043D\u0430\u0440\u0443\u0448\u0435\u043D\u0438\u0439, \u0434\u043E\u043F\u0443\u0449\u0435\u043D\u043D\u044B\u0445 \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u0430\u043C\u0438 \u0431\u0438\u0440\u0436\u0435\u0432\u043E\u0439 \u0442\u043E\u0440\u0433\u043E\u0432\u043B\u0438."})]})]})]}),S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"\u0418\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0438\u044F \u043E \u043F\u043E\u0440\u044F\u0434\u043A\u0435 \u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0441\u043A\u043E\u0439 \u043B\u0435\u0433\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438"}),c("p",{children:"\u041A\u043E\u043D\u0441\u0443\u043B\u044C\u0441\u043A\u0430\u044F \u043B\u0435\u0433\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u0437\u0430\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F \u0432 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0438 \u0438 \u0437\u0430\u0441\u0432\u0438\u0434\u0435\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u0438 \u043F\u043E\u0434\u043B\u0438\u043D\u043D\u043E\u0441\u0442\u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u0435\u0439 \u043D\u0430 \u044A\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0445 \u0438 \u0430\u043A\u0442\u0430\u0445, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044F \u0438\u0445 \u0437\u0430\u043A\u043E\u043D\u0430\u043C \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0430 \u043F\u0440\u0435\u0431\u044B\u0432\u0430\u043D\u0438\u044F \u043A\u043E\u043D\u0441\u0443\u043B\u0430 \u043F\u0443\u0442\u0435\u043C \u0441\u043E\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u044F \u043B\u0435\u0433\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439 \u043D\u0430\u0434\u043F\u0438\u0441\u0438 \u0438\u043B\u0438 \u043F\u0440\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u044F \u043B\u0435\u0433\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0433\u043E \u0448\u0442\u0430\u043C\u043F\u0430 \u043D\u0430 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u043C \u0438 \u0430\u043D\u0433\u043B\u0438\u0439\u0441\u043A\u043E\u043C \u044F\u0437\u044B\u043A\u0430\u0445."})]})]})]}):null,e==="tm"?S(He,{children:[c(ce,{title:"Kadala\u015Fdyrylan toplum"}),S("div",{className:"sub-page-content-wrapper",children:[c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"Arbitra\u017E ge\u0148e\u015Fi \xF6z i\u015Finde Konstitusi\xFDa, Prezidenti\u0148 Kanunlary, bir\u017Eany\u0148 d\xFCzg\xFCnleri, aly\u015F-\xE7aly\u015F s\xF6wdasyny\u0148 kadalary we be\xFDleki kadala\u015Fdyryjy hukuk hereketlerine esaslan\xFDar."})}),S("div",{className:"sub-page-list-wrapper",children:[S("h2",{className:"sub-page-title",children:["Arbitra\u017E ge\u0148e\u015Fini\u0148 ygty\xFDarlygy \u015Fulary \xF6z i\xE7ine al\xFDar:"," "]}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Ea auksionlarynda baglany\u015Fylan ylala\u015Fyklary\u0148 t\xE4sirini\u0148 \xFDatyrylmagy."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Eada hasaba alnan we talap edilmedik \u015Fertnamalary\u0148 \xFDatyrylmagy."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Ea amallary we aly\u015F-\xE7aly\u015F s\xF6wdasy baradaky jedellere garamak."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Jedeller baglany\u015Fylanda, \xFC\xFDtgedilende we \xFDatyrylanda \u015Fertnamalara garamak."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"Ge\u0148e\u015Fi\u0148 kabul edilen karary \xFC\xFDtgetm\xE4ge, \xFDatyrmaga we dikeltm\xE4ge hukugy bar."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"6"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Ea s\xF6wdasyna gatna\u015Fyjylar tarapyndan edilen d\xFCzg\xFCn bozmalara garamak."})]})]})]}),S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"Konsullygy kanunla\u015Fdyrmagy\u0148 tertibi bo\xFDun\xE7a g\xF6rkezmeler"}),c("p",{children:"Konsullygy\u0148 kanunla\u015Fdyrylmagy resminamalara we hereketlere gollary\u0148 dogrudygyny kesgitlemekden, \u015Fe\xFDle hem kanunla\u015Fdyrmak \xFDazgysyny \xFDazmak \xFDa-da d\xF6wlet we i\u0148lis dillerinde kanunla\u015Fdyry\u015F m\xF6h\xFCrini go\xFDmak arkaly konsuly\u0148 kabul ed\xFD\xE4n d\xF6wletini\u0148 kanunlaryna la\xFDyk gelmegini kesgitlemekden ybaratdyr."})]})]})]}):null,e==="en"?S(He,{children:[c(ce,{title:"Regulatory framework"}),S("div",{className:"sub-page-content-wrapper",children:[c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"The Arbitration Commission in its activities is guided by the Constitution, laws, acts of the President, the regulations of the Exchange, the rules of exchange trading and other regulatory legal acts."})}),S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"The competence of the Arbitration Commission includes:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Cancellation of transactions concluded at exchange trading."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Cancellation of contracts registered and unclaimed on the Exchange."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Consideration of disputes on exchange transactions and issues of exchange trading."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Consideration of disputes under contracts, when they are concluded, amended and terminated."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"The Commission has the right to change, cancel and restore the adopted decision."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"6"}),c("h3",{className:"sub-page-list-item-text",children:"Consideration of violations committed by participants of exchange trading."})]})]})]}),S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"Instructions on the procedure of consular legalization"}),c("p",{children:"Consular legalization consists in establishing and certifying the authenticity of signatures on legal documents and acts, as well as their compliance with the laws of the consul's state of residence by making a legalization inscription or affixing a legalization stamp in the state and English languages."})]})]})]}):null,S("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:e==="ru"?"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u0434\u043B\u044F \u0441\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u044F":e==="tm"?"G\xF6\xE7\xFCrip almak \xFC\xE7in resminamalar":e==="en"?"Documents for download":null}),c("div",{className:"documents-wrapper",children:c("div",{className:"documents-links-wrapper",children:t?t.data.map(r=>r.page==="\u041D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0431\u0430\u0437\u0430"&&r.title!="-"?c(Ta,{title:r.title,link:r.file},r.id):null):""})})]})]})})})},hk=({lang:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/documents",t,n).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),c("main",{children:c("div",{className:"container",children:S("div",{className:"sub-page-wrapper",children:[e==="ru"?S(He,{children:[c(ce,{title:"\u041F\u0440\u0430\u0432\u0438\u043B\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u043E\u0439 \u0442\u043E\u0440\u0433\u043E\u0432\u043B\u0438"}),S("div",{className:"sub-page-content-wrapper",children:[c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"\u0412 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0417\u0430\u043A\u043E\u043D\u043E\u043C \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \xAB\u041E \u0442\u043E\u0432\u0430\u0440\u043D\u043E-\u0441\u044B\u0440\u044C\u0435\u0432\u044B\u0445 \u0431\u0438\u0440\u0436\u0430\u0445\xBB, \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u0430\u043C\u0438 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u043E\u0432 \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u044F\u0442\u0438\u044F \u0438 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0445 \u0444\u043E\u0440\u043C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0441\u0442\u0438, \u0433\u0440\u0430\u0436\u0434\u0430\u043D\u0435 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432 \u043F\u0443\u0442\u0435\u043C \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u044F \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u0438\u043B\u0438 \u0437\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435\u043C \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u0430 \u043D\u0430 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0441 \u0431\u0440\u043E\u043A\u0435\u0440\u0430\u043C\u0438 \u0431\u0438\u0440\u0436\u0438."})}),S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"\u0411\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0443\u044E\u0442\u0441\u044F \u043D\u0430 \u043E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u0438 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0445 \u043F\u0440\u0438\u043D\u0446\u0438\u043F\u043E\u0432:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u0413\u043B\u0430\u0441\u043D\u043E\u0441\u0442\u044C \u0438 \u043F\u0443\u0431\u043B\u0438\u0447\u043D\u043E\u0441\u0442\u044C \u043F\u0440\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u043E\u0432."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"\u0421\u0432\u043E\u0431\u043E\u0434\u0430 \u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0446\u0435\u043D \u043D\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\u0414\u043E\u0431\u0440\u043E\u0432\u043E\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0437\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0441\u0434\u0435\u043B\u043E\u043A."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"\u0420\u0430\u0432\u0435\u043D\u0441\u0442\u0432\u043E \u0443\u0441\u043B\u043E\u0432\u0438\u0439 \u0443\u0447\u0430\u0441\u0442\u0438\u044F \u0432 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445 \u0434\u043B\u044F \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u043E\u0432 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u043E\u0432."})]})]})]}),S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"\u0427\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043D\u044F\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0441\u0442\u0438 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0435 \u043C\u0435\u0441\u0442\u043E. \u0412 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043F\u0440\u043E\u0434\u0430\u0432\u0446\u0430 \u0438\u043B\u0438 \u043F\u043E\u043A\u0443\u043F\u0430\u0442\u0435\u043B\u044F \u043C\u043E\u0433\u0443\u0442 \u0432\u044B\u0441\u0442\u0443\u043F\u0430\u0442\u044C \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0438 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043B\u0438\u0446\u0430 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u0438 \u0438\u043D\u043E\u0441\u0442\u0440\u0430\u043D\u043D\u044B\u0445 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432 \u0432\u0441\u0435\u0445 \u0444\u043E\u0440\u043C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0441\u0442\u0438."}),c("p",{children:"\u041B\u0438\u0446\u0430, \u043D\u0435 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0448\u0438\u0435 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0435 \u043C\u0435\u0441\u0442\u043E, \u0447\u0442\u043E\u0431\u044B \u043E\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043B\u044F\u0442\u044C \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043A\u0443\u043F\u043B\u0438-\u043F\u0440\u043E\u0434\u0430\u0436\u0438 \u0442\u043E\u0432\u0430\u0440\u043E\u0432, \u043C\u043E\u0433\u0443\u0442 \u0437\u0430\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0434\u043E\u0433\u043E\u0432\u043E\u0440 \u043D\u0430 \u043E\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u0438\u0445 \u0443\u0441\u043B\u0443\u0433 \u0441 \u0431\u0440\u043E\u043A\u0435\u0440\u0430\u043C\u0438 \u0411\u0438\u0440\u0436\u0438."})]}),S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"\u041F\u043E\u0440\u044F\u0434\u043E\u043A \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u041F\u0440\u043E\u0439\u0442\u0438 \u043F\u0440\u043E\u0446\u0435\u0434\u0443\u0440\u0443 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0432 \u043E\u0442\u0434\u0435\u043B\u0435 \u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u043E\u0433\u043E \u041C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433\u0430."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),S("div",{className:"sub-page-list-item-content",children:[c("h3",{className:"sub-page-list-item-text",children:"\u041F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u043A\u0435\u0442 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432:"}),S("ul",{className:"sub-page-list-item-list",children:[c("li",{className:"sub-page-list-item-list-item",children:"\u041F\u0438\u0441\u044C\u043C\u043E-\u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u043D\u0430 \u0438\u043C\u044F \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044F \u0413\u0422\u0421\u0411\u0422 \u043E \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u043F\u043E\u043A\u0443\u043F\u043A\u0438 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430"}),c("li",{className:"sub-page-list-item-list-item",children:"\u0414\u043E\u0432\u0435\u0440\u0435\u043D\u043D\u043E\u0441\u0442\u044C \u043D\u0430 \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044F (\u0431\u0440\u043E\u043A\u0435\u0440\u0430) \u0441 \u043E\u0440\u0438\u0433\u0438\u043D\u0430\u043B\u043E\u043C \u043F\u0435\u0447\u0430\u0442\u0438 \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u0438 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044F \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0438;"}),c("li",{className:"sub-page-list-item-list-item",children:"\u041A\u043E\u043F\u0438\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0439 \u0434\u043E\u0432\u0435\u0440\u0435\u043D\u043D\u043E\u0441\u0442\u0438 (\u043B\u0435\u0433\u0430\u043B\u0438\u0437\u043E\u0432\u0430\u043D\u043D\u043E\u0439)"}),c("li",{className:"sub-page-list-item-list-item",children:"\u041A\u043E\u043F\u0438\u044F \u043F\u0430\u0441\u043F\u043E\u0440\u0442\u0430 \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044F (\u0431\u0440\u043E\u043A\u0435\u0440\u0430) \u0438 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044F \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0438;"}),c("li",{className:"sub-page-list-item-list-item",children:"\u0417\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u044B\u0439 \u0431\u043B\u0430\u043D\u043A \u0431\u0430\u043D\u043A\u043E\u0432\u0441\u043A\u0438\u0445 \u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u043E\u0432, \u0437\u0430\u0432\u0435\u0440\u0435\u043D\u043D\u044B\u0439 \u043E\u0440\u0438\u0433\u0438\u043D\u0430\u043B\u044C\u043D\u043E\u0439 \u043F\u0435\u0447\u0430\u0442\u044C\u044E \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044C\u044E \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044F \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0438;"}),c("li",{className:"sub-page-list-item-list-item",children:"\u041A\u043E\u043F\u0438\u044E \u0443\u0447\u0440\u0435\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432 (\u0443\u0441\u0442\u0430\u0432, \u0440\u0435\u0435\u0441\u0442\u0440);"}),c("li",{className:"sub-page-list-item-list-item",children:"\u041E\u0434\u043D\u0430 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u044F \u0431\u0440\u043E\u043A\u0435\u0440\u0430 3x4;"}),c("li",{className:"sub-page-list-item-list-item",children:'\u0417\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u044B\u0439 \u0431\u043B\u0430\u043D\u043A "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u043E", \u0437\u0430\u0432\u0435\u0440\u0435\u043D\u043D\u044B\u0439 \u043F\u0435\u0447\u0430\u0442\u044C\u044E \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044C\u044E \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044F \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0438.'})]})]})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),S("div",{className:"sub-page-list-item-content",children:[c("h3",{className:"sub-page-list-item-text",children:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0432 \u043E\u0442\u0434\u0435\u043B\u0435 \xAB\u0412\u0437\u0430\u0438\u043C\u043E\u0440\u0430\u0441\u0447\u0435\u0442\u043E\u0432\xBB \u0413\u0422\u0421\u0411\u0422 \u0441\u0447\u0435\u0442\u0430 \u0438 \u043E\u043F\u043B\u0430\u0442\u0438\u0442\u044C:"}),c("h3",{className:"sub-page-list-item-text",children:"\u0414\u043B\u044F \u043D\u0435\u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u043E\u0432:"}),S("ul",{className:"sub-page-list-item-list",children:[c("li",{className:"sub-page-list-item-list-item",children:"\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u043D\u0430 \u043B\u0451\u0433\u043A\u0443\u044E \u043F\u0440\u043E\u043C\u044B\u0448\u043B\u0435\u043D\u043D\u043E\u0441\u0442\u044C \u0441\u0440\u043E\u043A\u043E\u043C \u043D\u0430 1 \u0433\u043E\u0434 \u0441\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 5000 \u0434\u043E\u043B\u043B\u0430\u0440\u043E\u0432 \u0421\u0428\u0410. \u0414\u0435\u043F\u043E\u0437\u0438\u0442 \u2013 6 000 \u0434\u043E\u043B\u043B\u0430\u0440\u043E\u0432 \u0421\u0428\u0410."}),c("li",{className:"sub-page-list-item-list-item",children:"\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u043D\u0430 \u043D\u0435\u0444\u0442\u044F\u043D\u0443\u044E \u043F\u0440\u043E\u043C\u044B\u0448\u043B\u0435\u043D\u043D\u043E\u0441\u0442\u044C \u0441\u0440\u043E\u043A\u043E\u043C \u043D\u0430 1 \u0433\u043E\u0434 \u0441\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 10 000 \u0434\u043E\u043B\u043B\u0430\u0440\u043E\u0432 \u0421\u0428\u0410. \u0414\u0435\u043F\u043E\u0437\u0438\u0442 \u2013 50 000 \u0434\u043E\u043B\u043B\u0430\u0440\u043E\u0432 \u0421\u0428\u0410."})]}),c("h3",{className:"sub-page-list-item-text",children:"\u0414\u043B\u044F \u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u043E\u0432:"}),c("ul",{className:"sub-page-list-item-list",children:c("li",{className:"sub-page-list-item-list-item",children:"\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u0441\u0440\u043E\u043A\u043E\u043C \u043D\u0430 1 \u0433\u043E\u0434 \u0441\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 10 000 \u043C\u0430\u043D\u0430\u0442."})})]})]})]})]}),S("div",{className:"sub-page-list-wrapper",children:[S("h2",{className:"sub-page-title",children:["\u041E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u044F \u0434\u043B\u044F \u043F\u0440\u0435\u043A\u0440\u0430\u0449\u0435\u043D\u0438\u044F \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0431\u0440\u043E\u043A\u0435\u0440\u0430:"," "]}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u0417\u0430\u044F\u0432\u043B\u0435\u043D\u0438\u0435 \u043E \u0437\u0430\u043A\u0440\u044B\u0442\u0438\u0438 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"\u041D\u0435 \u0443\u043F\u043B\u0430\u0442\u0430 \u0433\u043E\u0434\u043E\u0432\u043E\u0439 \u043E\u043F\u043B\u0430\u0442\u044B \u0437\u0430 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0435 \u043C\u0435\u0441\u0442\u043E \u0432 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0441\u0440\u043E\u043A\u0438."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\u041E\u0442\u043A\u0430\u0437 \u043E\u0442 \u0443\u043F\u043B\u0430\u0442\u044B \u0433\u043E\u0434\u043E\u0432\u043E\u0439 \u043E\u043F\u043B\u0430\u0442\u044B \u0437\u0430 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0435 \u043C\u0435\u0441\u0442\u043E."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"\u0420\u0435\u0448\u0435\u043D\u0438\u0435 \u0410\u0440\u0431\u0438\u0442\u0440\u0430\u0436\u043D\u043E\u0439 \u043A\u043E\u043C\u0438\u0441\u0441\u0438\u0438 \u0411\u0438\u0440\u0436\u0438."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"\u041F\u0440\u0435\u043A\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043B\u0438\u043A\u0432\u0438\u0434\u0430\u0446\u0438\u044F \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043B\u0438\u0446\u0430."})]})]})]})]})]}):null,e==="tm"?S(He,{children:[c(ce,{title:"Bir\u017Ea s\xF6wda d\xFCzg\xFCnleri"}),S("div",{className:"sub-page-content-wrapper",children:[c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"\u201CHaryt-\xE7ig mal bir\u017Ealary barada\u201D T\xFCrkmenisyany\u0148 Kanunyna la\xFDyklykda, aly\u015F-\xE7aly\u015F s\xF6wdasyna gatna\u015Fyjylary dellal\xE7ylyk \xFDerini satyn almak \xFDa-da aly\u015F-\xE7aly\u015F dellallary bilen hyzmat \u015Fertnamasyny bagla\u015Fyp, \xE4hli e\xFDe\xE7ilik g\xF6rn\xFC\u015Find\xE4ki k\xE4rhanalar we guramalar, T\xFCrkmenistany\u0148 \xFDa-da be\xFDleki d\xF6wletleri\u0148 ra\xFDatlary bolup bilerler."})}),S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Bir\u017Ea s\xF6wdasy a\u015Fakdaky \xFD\xF6relgeler esasynda gurnal\xFDar:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Ea s\xF6wdasyny\u0148 el\xFDeterliligi we mahabaty."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Ea auksionlarynda bahalary\u0148 emele gelmegini\u0148 azatlygy."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Ea amallaryny bagla\u015Fdyrylmagyny\u0148 me\xFDletin h\xE4si\xFDeti."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Ea s\xF6wdasyna gatna\u015Fyjylar \xFC\xE7in aly\u015F-\xE7aly\u015F s\xF6wdasyna gatna\u015Fmak \u015Fertlerini\u0148 de\u0148ligi."})]})]})]}),S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"Bir\u017Ea s\xF6wdasyna gatna\u015Fmak \xFC\xE7in birinjilik bilen dellal \xFDerini satyn almaly. Satyjy \xFDa-da alyjy h\xF6km\xFCnde T\xFCrkmenistany\u0148 we da\u015Fary \xFDurtlary\u0148 e\xFDe\xE7iligind\xE4ki \xE4hli \u015Fahslar we \xFDuridiki \u015Fahslar hereket edip bilerler."}),c("p",{children:"Haryt satyn almak we satmak \xFC\xE7in amallary amala a\u015Fyrmak \xFC\xE7in dellal\xE7ylyk \xFDerini satyn almadyk adamlar bir\u017Eany\u0148 dellallary bilen dellal\xE7ylyk hyzmatlary barada \u015Fertnama bagla\u015Fyp bilerler."})]}),S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Dellal\xE7ylyk \xFDerini hasaba almagy\u0148 tertibi"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Mali\xFDe g\xF6zeg\xE7iligi b\xF6l\xFCminde hasaba aly\u015F prosedurasyny tamamlamaly."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),S("div",{className:"sub-page-list-item-content",children:[c("h3",{className:"sub-page-list-item-text",children:"Resminamalar bukjasyny bermeli:"}),S("ul",{className:"sub-page-list-item-list",children:[c("li",{className:"sub-page-list-item-list-item",children:"TDH\xC7MB-ny\u0148 wekiline dellal\xE7ylyk \xFDerini hasaba almak we satyn almak barada \xFD\xFCz tutma haty"}),c("li",{className:"sub-page-list-item-list-item",children:"Kompani\xFDany\u0148 ba\u015Flygyny\u0148 m\xF6h\xFCri we goly bilen wekil (dellal) \xFC\xE7in ynan\xE7 haty"}),c("li",{className:"sub-page-list-item-list-item",children:"Umumy ynan\xE7 hatyny\u0148 g\xF6\xE7\xFCrmesi (kanunla\u015Fdyrylan)"}),c("li",{className:"sub-page-list-item-list-item",children:"Wekili\u0148 (dellaly\u0148) we kompani\xFDany\u0148 \xFDolba\u015F\xE7ysyny\u0148 pasportyny\u0148 g\xF6\xE7\xFCrmesi"}),c("li",{className:"sub-page-list-item-list-item",children:"Kompani\xFDany\u0148 ba\u015Flygyny\u0148 m\xF6h\xFCri we goly bilen tassyklanan bank maglumatlaryny\u0148 doldurylan g\xF6rn\xFC\u015Fi"})]})]})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),S("div",{className:"sub-page-list-item-content",children:[c("h3",{className:"sub-page-list-item-text",children:"GTSBT-y\u0148 \xF6zara hasapla\u015Fyk b\xF6l\xFCminden hasap-faktura almaly we t\xF6legini ge\xE7irmeli:"}),c("h3",{className:"sub-page-list-item-text",children:"D\xF6wleti\u0148 \xFDa\u015Fa\xFDjysy bolmadyk \u015Fahslar \xFC\xE7in:"}),S("ul",{className:"sub-page-list-item-list",children:[c("li",{className:"sub-page-list-item-list-item",children:"\xDDe\u0148il senagat \xFC\xE7in bir \xFDyllyk dellal\xE7ylyk \xFDerini\u0148 bahasy 5000 AB\u015E dollary. Go\xFDum - 6000 AB\u015E dollary."}),c("li",{className:"sub-page-list-item-list-item",children:"\u0421Nebit pudagynda 1 \xFDyllyk dellal \xFDerini\u0148 bahasy 10,000 AB\u015E dollary. Go\xFDum - 50,000 AB\u015E dollary."})]}),c("h3",{className:"sub-page-list-item-text",children:"D\xF6wleti\u0148 \xFDa\u015Fa\xFDjysy bolan \u015Fahslar \xFC\xE7in:"}),c("ul",{className:"sub-page-list-item-list",children:c("li",{className:"sub-page-list-item-list-item",children:"1 \xFDyllyk dellal\xE7ylyk \xFDerini\u0148 bahasy 10,000 manat."})})]})]})]})]}),S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Dellaly\u0148 i\u015Fini bes etmegi\u0148 esaslary:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Dellal\xE7ylyk \xFDerini \xFDapmak \xFC\xE7in \xFD\xFCztutma."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Dellal\xE7ylyk \xFDeri \xFC\xE7in \xFDyllyk t\xF6legini wagtynda t\xF6lemezlik."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Dellal\xE7ylyk \xFDeri \xFC\xE7in \xFDyllyk t\xF6legi t\xF6lemekden \xFD\xFCz \xF6w\xFCrmek."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Eany\u0148 arbitrar komissi\xFDasy toparyny\u0148 karary."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"\xDDuridik \u015Fahsy\u0148 i\u015Fini\u0148 bes edilmegi \xFDa-da \xFDatyrylmagy."})]})]})]})]})]}):null,e==="en"?S(He,{children:[c(ce,{title:"Exchange trading Rules"}),S("div",{className:"sub-page-content-wrapper",children:[c("div",{className:"sub-page-text-wrapper",children:c("p",{children:'In accordance with the Law of Turkmenistan "On Commodity Exchanges", enterprises and organizations of all forms of ownership, citizens of Turkmenistan and other states can participate in exchange trading by purchasing a brokerage place or concluding a service contract with exchange brokers.'})}),S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Exchange trading is organized on the basis of the following principles:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Transparency and publicity of exchange trading."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Freedom of price formation at stock trading."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Voluntary conclusion of exchange transactions."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Equality of conditions of participation in exchange trading for participants of exchange trading."})]})]})]}),S("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"To participate in stock trading, you need to purchase a brokerage place. Individuals and legal entities of Turkmenistan and foreign states of all forms of ownership can act as a seller or buyer."}),c("p",{children:"Persons who have not acquired a brokerage place in order to carry out transactions for the purchase and sale of goods can conclude a contract for the provision of brokerage services with brokers of the Exchange."})]}),S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"To register a brokerage place, you must:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Go through the registration procedure in the Financial Monitoring Department."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),S("div",{className:"sub-page-list-item-content",children:[c("h3",{className:"sub-page-list-item-text",children:"Provide a package of documents:"}),S("ul",{className:"sub-page-list-item-list",children:[c("li",{className:"sub-page-list-item-list-item",children:"letter of appeal addressed to the representative of the SCRMET about registration and purchase of a brokerage place;"}),c("li",{className:"sub-page-list-item-list-item",children:"power of attorney for a representative (broker) with the original seal and signature of the head of the company;"}),c("li",{className:"sub-page-list-item-list-item",children:"a copy of the general power of attorney (legalized);"}),c("li",{className:"sub-page-list-item-list-item",children:"a copy of the passport of the representative (broker) and the head of the company;"}),c("li",{className:"sub-page-list-item-list-item",children:"a completed form of bank details, certified with the original seal and signature of the head of the company;"}),c("li",{className:"sub-page-list-item-list-item",children:"a copy of the constituent documents (charter, register);"}),c("li",{className:"sub-page-list-item-list-item",children:"one 3x4 broker photo;"}),c("li",{className:"sub-page-list-item-list-item",children:'a completed "Commitment" form, stamped and signed by the head of the company.'})]})]})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),S("div",{className:"sub-page-list-item-content",children:[c("h3",{className:"sub-page-list-item-text",children:'Get invoices from the SCRMET "Mutual Settlements" department and pay:'}),c("h3",{className:"sub-page-list-item-text",children:"For non-residents:"}),S("ul",{className:"sub-page-list-item-list",children:[c("li",{className:"sub-page-list-item-list-item",children:"The cost of a brokerage place for light industry for a period of 1 year is $ 5,000. The deposit is $6,000."}),c("li",{className:"sub-page-list-item-list-item",children:"The cost of a brokerage place for the oil industry for a period of 1 year is $ 10,000. The deposit is 50,000 US dollars."})]}),c("h3",{className:"sub-page-list-item-text",children:"For residents:"}),c("ul",{className:"sub-page-list-item-list",children:c("li",{className:"sub-page-list-item-list-item",children:"The cost of a brokerage place for a period of 1 year is 10,000 manats."})})]})]})]})]}),S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Grounds for termination of the broker's activity:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Application for the closure of the brokerage place."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Failure to pay the annual fee for the brokerage place within the established time limits."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Failure to pay the annual fee for the brokerage place within the established time limits."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"The decision of the Arbitration Commission of the Exchange."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"Termination or liquidation of the activity of a legal entity."})]})]})]})]})]}):null,S("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:e==="ru"?"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u0434\u043B\u044F \u0441\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u044F":e==="tm"?"G\xF6\xE7\xFCrip almak \xFC\xE7in resminamalar":e==="en"?"Documents for download":null}),c("div",{className:"documents-wrapper",children:c("div",{className:"documents-links-wrapper",children:t?t.data.map(r=>r.page==="\u0411\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438"&&r.title!="-"?c(Ta,{title:r.title,link:r.file},r.id):null):""})})]})]})})})},pk=({lang:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/documents",t,n).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),c("main",{children:c("div",{className:"container",children:S("div",{className:"sub-page-wrapper",children:[e==="ru"?S(He,{children:[c(ce,{title:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432"}),c("div",{className:"sub-page-content-wrapper",children:S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432 \u043D\u0430 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0439 \u0442\u043E\u0432\u0430\u0440\u043D\u043E-\u0441\u044B\u0440\u044C\u0435\u0432\u043E\u0439 \u0431\u0438\u0440\u0436\u0435 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u043E\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043F\u043E \u043F\u0440\u0438\u0432\u0435\u0434\u0435\u043D\u043D\u043E\u0439 \u0441\u0445\u0435\u043C\u0435:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u041F\u0440\u0438\u0435\u043C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u0441 9.00 \u0434\u043E 17.00."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"\u041E\u0442\u0434\u0435\u043B \u0430\u043D\u0430\u043B\u0438\u0437\u0430 \u0438 \u0440\u044B\u043D\u043A\u0430 \u0446\u0435\u043D."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043F\u0440\u0430\u0432\u0430 \u0438 \u043A\u0430\u0434\u0440\u043E\u0432."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0439 \u043E\u0442\u0434\u0435\u043B."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"\u041E\u0442\u0434\u0435\u043B \u0432\u0437\u0430\u0438\u043C\u043E\u0440\u0430\u0441\u0447\u0435\u0442\u0430."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"6"}),c("h3",{className:"sub-page-list-item-text",children:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u043D\u0430 \u043F\u043E\u0434\u043F\u0438\u0441\u044C \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044F\u043C."})]})]})]})}),c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"\u0422\u0430\u043A\u0436\u0435 \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u0438 \u0431\u0438\u0440\u0436\u0438 \u043C\u043E\u0433\u0443\u0442 \u043E\u0442\u0441\u043B\u0435\u0436\u0438\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0446\u0435\u0441\u0441 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u043E\u0432 \u043E\u043D\u043B\u0430\u0439\u043D \u043D\u0430 \u0441\u0430\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u041B\u0438\u0447\u043D\u043E\u0433\u043E \u043A\u0430\u0431\u0438\u043D\u0435\u0442\u0430. \u0414\u043B\u044F \u044D\u0442\u043E\u0433\u043E \u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0435, \u043F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043B \u0438 \u0441\u043B\u0435\u0434\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043B\u044C\u043D\u0435\u0439\u0448\u0438\u043C \u0443\u043A\u0430\u0437\u0430\u043D\u0438\u044F\u043C. \u0420\u0430\u0431\u043E\u0442\u0430 \u043D\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438\u0434\u0435\u043D\u0442\u0438\u0447\u043D\u0430 \u0441 \u0440\u0430\u0431\u043E\u0442\u043E\u0439 \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B\u044B \u0432 \u0437\u0434\u0430\u043D\u0438\u0438 \u0431\u0438\u0440\u0436\u0438."})}),c("div",{className:"sub-page-content-wrapper",children:S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"\u041F\u0435\u0440\u0435\u0447\u0435\u043D\u044C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0445 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u0434\u043B\u044F \u0432\u044B\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u044F \u0442\u043E\u0432\u0430\u0440\u043E\u0432 \u043D\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u041F\u0438\u0441\u044C\u043C\u043E-\u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u0441 \u043F\u0440\u043E\u0441\u044C\u0431\u043E\u0439 \u043E \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0438 \u0432\u044B\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0442\u043E\u0432\u0430\u0440 \u043D\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"\u041F\u0438\u0441\u044C\u043C\u043E-\u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u043E \u043F\u0440\u043E\u0434\u0430\u0436\u0435 \u0442\u043E\u0432\u0430\u0440\u0430, \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u043E\u0435 \u0432 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u043E\u0439 \u0444\u043E\u0440\u043C\u0435."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\u0421\u043F\u0435\u0446\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0442\u043E\u0432\u0430\u0440\u0430, \u0441\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u043D\u0430\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0413\u0422\u0421\u0411\u0422."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E\u0449\u0438\u0435 \u043F\u0440\u0430\u0432\u043E \u0437\u0430\u043D\u0438\u043C\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u043E\u0439 \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C\u044E."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E\u0449\u0438\u0435 \u043F\u0440\u043E\u0438\u0441\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u0435 \u0442\u043E\u0432\u0430\u0440\u0430."})]})]})]})})]}):null,e==="tm"?S(He,{children:[c(ce,{title:"\u015Eertnamalary hasaba almak"}),c("div",{className:"sub-page-content-wrapper",children:S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"T\xFCrkmenistany\u0148 D\xF6wlet haryt we \xE7ig mal bir\u017Easynda \u015Fertnamalary hasaba aly\u015F a\u015Fakdaky tertibe la\xFDyklykda amala a\u015Fyryl\xFDar:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"9:00-dan 17:00-a \xE7enli resminamalary kabul etmek."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Der\u0148ew we bahalary anyklamak b\xF6l\xFCmi."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Hukuk we i\u015Fg\xE4rleri dolandyrmak."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Hasaba aly\u015F b\xF6l\xFCmi."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"\xD6zara hasapla\u015Fyk b\xF6l\xFCmi."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"6"}),c("h3",{className:"sub-page-list-item-text",children:"Gol \xE7ekmek \xFC\xE7in dolandyryjylara ge\xE7irmek."})]})]})]})}),c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"\u015Ee\xFDle hem, bir\u017Ea gatna\u015Fyjylary \u015Eahsy otagy ulanyp, internet sahypalarynda \u015Fertnamalary hasaba almak prosesini yzarlap bilerler. Munu\u0148 \xFC\xE7in di\u0148e ulgamda hasaba alynyp, degi\u015Fli b\xF6l\xFCme ge\xE7meli we indiki g\xF6rkezmelere e\xFDermeli. Internet sahypasynda i\u015Flemek, aly\u015F-\xE7aly\u015F binasyndaky terminallarynda i\u015Flemek bilen de\u0148dir."})}),c("div",{className:"sub-page-content-wrapper",children:S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Harytlary aly\u015F-\xE7aly\u015F auksionlaryna \xFDerle\u015Fdirmek \xFC\xE7in zerur resminamalary\u0148 sanawy:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Harytlary aly\u015F-\xE7aly\u015F auksionlaryna go\xFDmak \xFC\xE7in rugsat soramak bilen \xFD\xFCz tutma haty."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Harytlary satmak \xFC\xE7in bellenen g\xF6rn\xFC\u015Fde doldurylan hat."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"TDH\xC7MB-i\u0148 talaplaryna la\xFDyklykda d\xFCz\xFClen harytlary\u0148 spesifikasi\xFDasy."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Teleke\xE7ilik i\u015Fi bilen me\u015Fgullanmak hukugyny tassykla\xFDan resminamalar."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"Harytlary\u0148 gelip \xE7yky\u015Fyny tassykla\xFDan resminamalar."})]})]})]})})]}):null,e==="en"?S(He,{children:[c(ce,{title:"Registration of contracts"}),c("div",{className:"sub-page-content-wrapper",children:S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Registration of contracts at the The State Commodity and Raw Materials Exchange of Turkmenistan is carried out according to the following scheme:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Acceptance of documents from 9.00 to 17.00."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Department of Analysis and Securities market."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Management of Law and Personnel."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Registration Department."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"Mutual Settlements Department."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"6"}),c("h3",{className:"sub-page-list-item-text",children:"Transfer to managers for signature."})]})]})]})}),c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"Also, exchange participants can track the process of registering contracts online on the website using their Personal Account. To do this, it is enough to register in the system, go to the appropriate section and follow further instructions. Working on the site is identical to working through terminals in the exchange building."})}),c("div",{className:"sub-page-content-wrapper",children:S("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"The list of necessary documents for placing goods on the stock exchange:"}),S("div",{className:"sub-page-list",children:[S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"A letter of request for permission to put the goods on the stock exchange."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"A letter of appeal for the sale of goods, filled out in the prescribed form."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Product specification, compiled in accordance with the requirements of the SCRMET."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Documents confirming the right to engage in entrepreneurial activity."})]}),S("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"Documents confirming the origin of the goods."})]})]})]})})]}):null,S("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:e==="ru"?"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u0434\u043B\u044F \u0441\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u044F":e==="tm"?"G\xF6\xE7\xFCrip almak \xFC\xE7in resminamalar":e==="en"?"Documents for download":null}),c("div",{className:"documents-wrapper",children:c("div",{className:"documents-links-wrapper",children:t?t.data.map(r=>r.page==="\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432"&&r.title!="-"?c(Ta,{title:r.title,link:r.file},r.id):null):""})})]})]})})})};var fg={};function mk(e){if(!e||typeof window>"u")return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}Object.defineProperty(fg,"__esModule",{value:!0});var Jt=j.exports;function gk(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Si=gk(Jt);/*! ***************************************************************************** +`):e}function PD(e,t){const{element:n,datasetIndex:r,index:i}=t,u=e.getDatasetMeta(r).controller,{label:s,value:a}=u.getLabelAndValue(i);return{chart:e,label:s,parsed:u.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:u.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Bf(e,t){const n=e.chart.ctx,{body:r,footer:i,title:u}=e,{boxWidth:s,boxHeight:a}=t,o=lt(t.bodyFont),l=lt(t.titleFont),d=lt(t.footerFont),p=u.length,g=i.length,v=r.length,b=Pt(t.padding);let k=b.height,O=0,x=r.reduce((T,D)=>T+D.before.length+D.lines.length+D.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,p&&(k+=p*l.lineHeight+(p-1)*t.titleSpacing+t.titleMarginBottom),x){const T=t.displayColors?Math.max(a,o.lineHeight):o.lineHeight;k+=v*T+(x-v)*o.lineHeight+(x-1)*t.bodySpacing}g&&(k+=t.footerMarginTop+g*d.lineHeight+(g-1)*t.footerSpacing);let _=0;const w=function(T){O=Math.max(O,n.measureText(T).width+_)};return n.save(),n.font=l.string,ue(e.title,w),n.font=o.string,ue(e.beforeBody.concat(e.afterBody),w),_=t.displayColors?s+2+t.boxPadding:0,ue(r,T=>{ue(T.before,w),ue(T.lines,w),ue(T.after,w)}),_=0,n.font=d.string,ue(e.footer,w),n.restore(),O+=b.width,{width:O,height:k}}function CD(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function OD(e,t,n,r){const{x:i,width:u}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&i+u+s>t.width||e==="right"&&i-u-s<0)return!0}function FD(e,t,n,r){const{x:i,width:u}=n,{width:s,chartArea:{left:a,right:o}}=e;let l="center";return r==="center"?l=i<=(a+o)/2?"left":"right":i<=u/2?l="left":i>=s-u/2&&(l="right"),OD(l,e,t,n)&&(l="center"),l}function If(e,t,n){const r=n.yAlign||t.yAlign||CD(e,n);return{xAlign:n.xAlign||t.xAlign||FD(e,t,n,r),yAlign:r}}function ND(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function AD(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function zf(e,t,n,r){const{caretSize:i,caretPadding:u,cornerRadius:s}=e,{xAlign:a,yAlign:o}=n,l=i+u,{topLeft:d,topRight:p,bottomLeft:g,bottomRight:v}=Vr(s);let b=ND(t,a);const k=AD(t,o,l);return o==="center"?a==="left"?b+=l:a==="right"&&(b-=l):a==="left"?b-=Math.max(d,g)+i:a==="right"&&(b+=Math.max(p,v)+i),{x:We(b,0,r.width-t.width),y:We(k,0,r.height-t.height)}}function ds(e,t,n){const r=Pt(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function jf(e){return Ut([],Gt(e))}function RD(e,t,n){return Vn(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Uf(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}class mc extends hn{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,u=new Um(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(u)),u}getContext(){return this.$context||(this.$context=RD(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=r.beforeTitle.apply(this,[t]),u=r.title.apply(this,[t]),s=r.afterTitle.apply(this,[t]);let a=[];return a=Ut(a,Gt(i)),a=Ut(a,Gt(u)),a=Ut(a,Gt(s)),a}getBeforeBody(t,n){return jf(n.callbacks.beforeBody.apply(this,[t]))}getBody(t,n){const{callbacks:r}=n,i=[];return ue(t,u=>{const s={before:[],lines:[],after:[]},a=Uf(r,u);Ut(s.before,Gt(a.beforeLabel.call(this,u))),Ut(s.lines,a.label.call(this,u)),Ut(s.after,Gt(a.afterLabel.call(this,u))),i.push(s)}),i}getAfterBody(t,n){return jf(n.callbacks.afterBody.apply(this,[t]))}getFooter(t,n){const{callbacks:r}=n,i=r.beforeFooter.apply(this,[t]),u=r.footer.apply(this,[t]),s=r.afterFooter.apply(this,[t]);let a=[];return a=Ut(a,Gt(i)),a=Ut(a,Gt(u)),a=Ut(a,Gt(s)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],u=[],s=[];let a=[],o,l;for(o=0,l=n.length;ot.filter(d,p,g,r))),t.itemSort&&(a=a.sort((d,p)=>t.itemSort(d,p,r))),ue(a,d=>{const p=Uf(t.callbacks,d);i.push(p.labelColor.call(this,d)),u.push(p.labelPointStyle.call(this,d)),s.push(p.labelTextColor.call(this,d))}),this.labelColors=i,this.labelPointStyles=u,this.labelTextColors=s,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let u,s=[];if(!i.length)this.opacity!==0&&(u={opacity:0});else{const a=Xi[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const o=this._size=Bf(this,r),l=Object.assign({},a,o),d=If(this.chart,r,l),p=zf(r,l,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,u={opacity:1,x:p.x,y:p.y,width:o.width,height:o.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,u&&this._resolveAnimations().update(this,u),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const u=this.getCaretPosition(t,r,i);n.lineTo(u.x1,u.y1),n.lineTo(u.x2,u.y2),n.lineTo(u.x3,u.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:u}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:o,topRight:l,bottomLeft:d,bottomRight:p}=Vr(a),{x:g,y:v}=t,{width:b,height:k}=n;let O,x,_,w,T,D;return u==="center"?(T=v+k/2,i==="left"?(O=g,x=O-s,w=T+s,D=T-s):(O=g+b,x=O+s,w=T-s,D=T+s),_=O):(i==="left"?x=g+Math.max(o,d)+s:i==="right"?x=g+b-Math.max(l,p)-s:x=this.caretX,u==="top"?(w=v,T=w-s,O=x-s,_=x+s):(w=v+k,T=w+s,O=x+s,_=x-s),D=w),{x1:O,x2:x,x3:_,y1:w,y2:T,y3:D}}drawTitle(t,n,r){const i=this.title,u=i.length;let s,a,o;if(u){const l=Ko(r.rtl,this.x,this.width);for(t.x=ds(this,r.titleAlign,r),n.textAlign=l.textAlign(r.titleAlign),n.textBaseline="middle",s=lt(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,o=0;ow!==0)?(t.beginPath(),t.fillStyle=u.multiKeyBackground,oa(t,{x:O,y:k,w:l,h:o,radius:_}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),oa(t,{x,y:k+1,w:l-2,h:o-2,radius:_}),t.fill()):(t.fillStyle=u.multiKeyBackground,t.fillRect(O,k,l,o),t.strokeRect(O,k,l,o),t.fillStyle=s.backgroundColor,t.fillRect(x,k+1,l-2,o-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:u,bodyAlign:s,displayColors:a,boxHeight:o,boxWidth:l,boxPadding:d}=r,p=lt(r.bodyFont);let g=p.lineHeight,v=0;const b=Ko(r.rtl,this.x,this.width),k=function(f){n.fillText(f,b.x(t.x+v),t.y+g/2),t.y+=g+u},O=b.textAlign(s);let x,_,w,T,D,S,y;for(n.textAlign=s,n.textBaseline="middle",n.font=p.string,t.x=ds(this,O,r),n.fillStyle=r.bodyColor,ue(this.beforeBody,k),v=a&&O!=="right"?s==="center"?l/2+d:l+2+d:0,T=0,S=i.length;T0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,u=r&&r.y;if(i||u){const s=Xi[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=Bf(this,t),o=Object.assign({},s,this._size),l=If(n,t,o),d=zf(t,o,l,n);(i._to!==d.x||u._to!==d.y)&&(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},u={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=Pt(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(u,t,i,n),mw(t,n.textDirection),u.y+=s.top,this.drawTitle(u,t,n),this.drawBody(u,t,n),this.drawFooter(u,t,n),gw(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:o})=>{const l=this.chart.getDatasetMeta(a);if(!l)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:l.data[o],index:o}}),u=!ta(r,i),s=this._positionChanged(i,n);(u||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,u=this._active||[],s=this._getActiveElements(t,u,n,r),a=this._positionChanged(s,t),o=n||!ta(s,u)||a;return o&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),o}_getActiveElements(t,n,r,i){const u=this.options;if(t.type==="mouseout")return[];if(!i)return n;const s=this.chart.getElementsAtEventForMode(t,u.mode,u,r);return u.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:i,options:u}=this,s=Xi[u.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}}mc.positioners=Xi;var TD={id:"tooltip",_element:mc,positioners:Xi,afterInit(e,t,n){n&&(e.tooltip=new mc({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",n)===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:qt,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndexe!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const MD=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function LD(e,t,n,r){const i=e.indexOf(t);if(i===-1)return MD(e,t,n,r);const u=e.lastIndexOf(t);return i!==u?n:i}const BD=(e,t)=>e===null?null:We(Math.round(e),0,t);class fa extends pr{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:u}of n)r[i]===u&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(ie(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:LD(r,t,ee(n,t),this._addedLabels),BD(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let u=this.getLabels();u=t===0&&n===u.length-1?u:u.slice(t,n+1),this._valueRange=Math.max(u.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=n;s++)i.push({value:s});return i}getLabelForValue(t){const n=this.getLabels();return t>=0&&tn.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}fa.id="category";fa.defaults={ticks:{callback:fa.prototype.getLabelForValue}};function ID(e,t){const n=[],{bounds:i,step:u,min:s,max:a,precision:o,count:l,maxTicks:d,maxDigits:p,includeBounds:g}=e,v=u||1,b=d-1,{min:k,max:O}=t,x=!ie(s),_=!ie(a),w=!ie(l),T=(O-k)/(p+1);let D=Hd((O-k)/b/v)*v,S,y,f,m;if(D<1e-14&&!x&&!_)return[{value:k},{value:O}];m=Math.ceil(O/D)-Math.floor(k/D),m>b&&(D=Hd(m*D/b/v)*v),ie(o)||(S=Math.pow(10,o),D=Math.ceil(D*S)/S),i==="ticks"?(y=Math.floor(k/D)*D,f=Math.ceil(O/D)*D):(y=k,f=O),x&&_&&u&&JE((a-s)/u,D/1e3)?(m=Math.round(Math.min((a-s)/D,d)),D=(a-s)/m,y=s,f=a):w?(y=x?s:y,f=_?a:f,m=l-1,D=(f-y)/m):(m=(f-y)/D,Ki(m,Math.round(m),D/1e3)?m=Math.round(m):m=Math.ceil(m));const h=Math.max($d(D),$d(y));S=Math.pow(10,ie(o)?h:o),y=Math.round(y*S)/S,f=Math.round(f*S)/S;let E=0;for(x&&(g&&y!==s?(n.push({value:s}),yi=n?i:o,a=o=>u=r?u:o;if(t){const o=Yt(i),l=Yt(u);o<0&&l<0?a(0):o>0&&l>0&&s(0)}if(i===u){let o=1;(u>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(o=Math.abs(u*.05)),a(u+o),t||s(i-o)}this.min=i,this.max=u}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},u=this._range||this,s=ID(i,u);return t.bounds==="ticks"&&ym(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Cu(t,this.chart.options.locale,this.options.ticks.format)}}class I0 extends ha{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Me(t)?t:0,this.max=Me(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Rt(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,u=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,u.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}I0.id="linear";I0.defaults={ticks:{callback:Va.formatters.numeric}};function Wf(e){return e/Math.pow(10,Math.floor(xt(e)))===1}function zD(e,t){const n=Math.floor(xt(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),i=[];let u=yt(e.min,Math.pow(10,Math.floor(xt(t.min)))),s=Math.floor(xt(u)),a=Math.floor(u/Math.pow(10,s)),o=s<0?Math.pow(10,Math.abs(s)):1;do i.push({value:u,major:Wf(u)}),++a,a===10&&(a=1,++s,o=s>=0?1:o),u=Math.round(a*Math.pow(10,s)*o)/o;while(s0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Me(t)?Math.max(0,t):null,this.max=Me(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const u=o=>r=t?r:o,s=o=>i=n?i:o,a=(o,l)=>Math.pow(10,Math.floor(xt(o))+l);r===i&&(r<=0?(u(1),s(10)):(u(a(r,-1)),s(a(i,1)))),r<=0&&u(a(i,-1)),i<=0&&s(a(r,1)),this._zero&&this.min!==this._suggestedMin&&r===a(this.min,0)&&u(a(r,-1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=zD(n,this);return t.bounds==="ticks"&&ym(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Cu(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=xt(t),this._valueRange=xt(this.max)-xt(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(xt(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}sg.id="logarithmic";sg.defaults={ticks:{callback:Va.formatters.logarithmic,major:{enabled:!0}}};function gc(e){const t=e.ticks;if(t.display&&e.display){const n=Pt(t.backdropPadding);return ee(t.font&&t.font.size,Z.font.size)+n.height}return 0}function jD(e,t,n){return n=pe(n)?n:[n],{w:F_(e,t.string,n),h:n.length*t.lineHeight}}function Hf(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function UD(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],u=e._pointLabels.length,s=e.options.pointLabels,a=s.centerPointLabels?_e/u:0;for(let o=0;ot.r&&(a=(r.end-t.r)/u,e.r=Math.max(e.r,t.r+a)),i.startt.b&&(o=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+o))}function WD(e,t,n){const r=[],i=e._pointLabels.length,u=e.options,s=gc(u)/2,a=e.drawingArea,o=u.pointLabels.centerPointLabels?_e/i:0;for(let l=0;l270||n<90)&&(e-=t),e}function YD(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const u=r.setContext(e.getPointLabelContext(i)),s=lt(u.font),{x:a,y:o,textAlign:l,left:d,top:p,right:g,bottom:v}=e._pointLabelItems[i],{backdropColor:b}=u;if(!ie(b)){const k=Vr(u.borderRadius),O=Pt(u.backdropPadding);n.fillStyle=b;const x=d-O.left,_=p-O.top,w=g-d+O.width,T=v-p+O.height;Object.values(k).some(D=>D!==0)?(n.beginPath(),oa(n,{x,y:_,w,h:T,radius:k}),n.fill()):n.fillRect(x,_,w,T)}aa(n,e._pointLabels[i],a,o+s.lineHeight/2,s,{color:u.color,textAlign:l,textBaseline:"middle"})}}function ag(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,oe);else{let u=e.getPointPosition(0,t);i.moveTo(u.x,u.y);for(let s=1;s{const i=be(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?UD(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=oe/(this._pointLabels.length||1),r=this.options.startAngle||0;return Nt(t*n+Rt(r))}getDistanceFromCenterForValue(t){if(ie(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(ie(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(d!==0){a=this.getDistanceFromCenterForValue(l.value);const p=i.setContext(this.getContext(d-1));qD(this,p,a,u)}}),r.display){for(t.save(),s=u-1;s>=0;s--){const l=r.setContext(this.getPointLabelContext(s)),{color:d,lineWidth:p}=l;!p||!d||(t.lineWidth=p,t.strokeStyle=d,t.setLineDash(l.borderDash),t.lineDashOffset=l.borderDashOffset,a=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),o=this.getPointPosition(s,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(o.x,o.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let u,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,o)=>{if(o===0&&!n.reverse)return;const l=r.setContext(this.getContext(o)),d=lt(l.font);if(u=this.getDistanceFromCenterForValue(this.ticks[o].value),l.showLabelBackdrop){t.font=d.string,s=t.measureText(a.label).width,t.fillStyle=l.backdropColor;const p=Pt(l.backdropPadding);t.fillRect(-s/2-p.left,-u-d.size/2-p.top,s+p.width,d.size+p.height)}aa(t,a.label,0,-u,d,{color:l.color})}),t.restore()}drawTitle(){}}Ha.id="radialLinear";Ha.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Va.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}};Ha.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};Ha.descriptors={angleLines:{_fallback:"grid"}};const $a={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},et=Object.keys($a);function GD(e,t){return e-t}function $f(e,t){if(ie(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:u}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),Me(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(Qr(u)||u===!0)?n.startOf(s,"isoWeek",u):n.startOf(s,i)),+s)}function Kf(e,t,n,r){const i=et.length;for(let u=et.indexOf(e);u=et.indexOf(n);u--){const s=et[u];if($a[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return et[n?et.indexOf(n):0]}function JD(e){for(let t=et.indexOf(e)+1,n=et.length;t=t?n[r]:n[i];e[u]=!0}}function ZD(e,t,n,r){const i=e._adapter,u=+i.startOf(t[0].value,r),s=t[t.length-1].value;let a,o;for(a=u;a<=s;a=+i.add(a,1,r))o=n[a],o>=0&&(t[o].major=!0);return t}function qf(e,t,n){const r=[],i={},u=t.length;let s,a;for(s=0;s+t.value))}initOffsets(t){let n=0,r=0,i,u;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,u=this.getDecimalForValue(t[t.length-1]),t.length===1?r=u:r=(u-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=We(n,0,s),r=We(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,u=i.time,s=u.unit||Kf(u.minUnit,n,r,this._getLabelCapacity(n)),a=ee(u.stepSize,1),o=s==="week"?u.isoWeekday:!1,l=Qr(o)||o===!0,d={};let p=n,g,v;if(l&&(p=+t.startOf(p,"isoWeek",o)),p=+t.startOf(p,l?"day":s),t.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const b=i.ticks.source==="data"&&this.getDataTimestamps();for(g=p,v=0;gk-O).map(k=>+k)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}_tickFormatFunction(t,n,r,i){const u=this.options,s=u.time.displayFormats,a=this._unit,o=this._majorUnit,l=a&&s[a],d=o&&s[o],p=r[n],g=o&&d&&p&&p.major,v=this._adapter.format(t,i||(g?d:l)),b=u.ticks.callback;return b?be(b,[v,n,r],this):v}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=er(e,"pos",t)),{pos:u,time:a}=e[r],{pos:s,time:o}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=er(e,"time",t)),{time:u,pos:a}=e[r],{time:s,pos:o}=e[i]);const l=s-u;return l?a+(o-a)*(t-u)/l:a}class og extends Ka{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=fs(n,this.min),this._tableRange=fs(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],u=[];let s,a,o,l,d;for(s=0,a=t.length;s=n&&l<=r&&i.push(l);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s2&&arguments[2]!==void 0?arguments[2]:lg;const r=[];e.datasets=t.map(i=>{const u=e.datasets.find(s=>s[n]===i[n]);return!u||!i.data||r.includes(u)?{...i}:(r.push(u),Object.assign(u,i),u)})}function tk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lg;const n={labels:[],datasets:[]};return cg(n,e.labels),dg(n,e.datasets,t),n}function nk(e,t){let{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:u,type:s,data:a,options:o,plugins:l=[],fallbackContent:d,updateMode:p,...g}=e;const v=j.exports.useRef(null),b=j.exports.useRef(),k=()=>{!v.current||(b.current=new Nu(v.current,{type:s,data:tk(a,u),options:o&&{...o},plugins:l}),Xf(t,b.current))},O=()=>{Xf(t,null),b.current&&(b.current.destroy(),b.current=null)};return j.exports.useEffect(()=>{!i&&b.current&&o&&ek(b.current,o)},[i,o]),j.exports.useEffect(()=>{!i&&b.current&&cg(b.current.config.data,a.labels)},[i,a.labels]),j.exports.useEffect(()=>{!i&&b.current&&a.datasets&&dg(b.current.config.data,a.datasets,u)},[i,a.datasets]),j.exports.useEffect(()=>{!b.current||(i?(O(),setTimeout(k)):b.current.update(p))},[i,o,a.labels,a.datasets,p]),j.exports.useEffect(()=>{!b.current||(O(),setTimeout(k))},[s]),j.exports.useEffect(()=>(k(),()=>O()),[]),c("canvas",{...Object.assign({ref:v,role:"img",height:n,width:r},g),children:d})}const rk=j.exports.forwardRef(nk);function ik(e,t){return Nu.register(t),j.exports.forwardRef((n,r)=>c(rk,{...Object.assign({},n,{ref:r,type:e})}))}const uk=ik("line",Ua),z0=e=>e.split("-").reverse().join("."),sk=e=>e.split(" ")[0].split("-").reverse().join(".");Nu.register(Au,Wa,I0,TD,fa);const ak=({activeRow:e,tabIndex:t})=>{const[n,r]=j.exports.useState();j.exports.useEffect(()=>{t&&new Be(`http://tmex.gov.tm:8765/api/categories/${t}/tradings`,n,r).get()},[t]);let i;const u={labels:n?n.data[e].all_prices.map(a=>sk(a.date)):[""],datasets:[{data:n?n.data[e].all_prices.map((a,o)=>o<=9?a.price:""):[""],borderColor:"#4b8dff",pointBorderWidth:2,pointBackgroundColor:"#4b8dff",tension:.1,animation:{onComplete:()=>{i=!0},delay:a=>{let o=0;return a.type==="data"&&a.mode==="default"&&!i&&(o=a.dataIndex*100+a.datasetIndex*100),o}}}]};return c("div",{className:"line-chart",children:c(uk,{data:u,options:{maintainAspectRatio:!1,radius:5,hitRadius:30,hoverRadius:7,scales:{x:{grid:{display:!1}},y:{ticks:{callback:a=>a},grid:{borderDash:[10]}}}}})})},ok=({lang:e})=>{const[t,n]=j.exports.useState(),[r,i]=j.exports.useState(0),[u,s]=j.exports.useState(0),[a,o]=j.exports.useState();j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/categories",t,n).get({"X-Localization":e})},[e]),j.exports.useEffect(()=>{t&&o(t.data[0].id)},[t]),j.exports.useEffect(()=>{i(0)},[u]);const l=(d,p)=>{o(d),s(p)};return c("section",{className:"chart",children:c("div",{className:"container",children:P("div",{className:"chart-wrapper",children:[c("div",{className:"chart-tabs",children:t?t.data.map((d,p)=>c("div",{className:`${a===d.id?"active":""} tab`,onClick:()=>{l(d.id,p)},children:c("span",{children:d.title})},d.id)):null}),P("div",{className:"chart-data",children:[c(UE,{activeRow:r,setActiveRow:i,tabIndex:a,lang:e}),c("div",{className:"line-chart-wrapper",children:c(ak,{activeRow:r,tabIndex:a})})]})]})})})},lk=({lang:e,setPostId:t})=>{const[n,r]=j.exports.useState();return j.exports.useState(),j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/news",n,r).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),P("main",{className:"home-main",children:[c(J1,{lang:e}),c("section",{className:"about",children:c("div",{className:"container",children:P("div",{className:"about-wrapper",children:[e==="ru"?P("div",{className:"about-left",children:[c(ce,{title:"\u041E \u0413\u0422\u0421\u0411\u0422"}),c("div",{className:"about-text-wrapper",children:c("p",{className:"about-text",children:"\u0413\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043D\u043D\u0430\u044F \u0442\u043E\u0432\u0430\u0440\u043D\u043E-\u0441\u044B\u0440\u044C\u0435\u0432\u0430\u044F \u0431\u0438\u0440\u0436\u0430 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u0431\u044B\u043B\u0430 \u0441\u043E\u0437\u0434\u0430\u043D\u0430 \u0423\u043A\u0430\u0437\u043E\u043C \u041F\u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u0430 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u043E\u0442 29 \u0438\u044E\u043B\u044F 1994 \u0433\u043E\u0434\u0430 \u0438 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0432\u0430\u0436\u043D\u0435\u0439\u0448\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u043C \u0438\u043D\u0441\u0442\u0438\u0442\u0443\u0442\u043E\u043C \u0441\u0442\u0440\u0430\u043D\u044B. \u0411\u0438\u0440\u0436\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442 \u0444\u0443\u043D\u043A\u0446\u0438\u044E \u0433\u043B\u0430\u0432\u043D\u043E\u0433\u043E \u043E\u0440\u0433\u0430\u043D\u0430 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0433\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E-\u0438\u043C\u043F\u043E\u0440\u0442\u043D\u044B\u0445 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0439. \u041E\u0442\u043B\u0430\u0436\u0435\u043D\u043D\u044B\u0439 \u043C\u0435\u0445\u0430\u043D\u0438\u0437\u043C \u0444\u0443\u043D\u043A\u0446\u0438\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0435\u0439 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0438\u043D\u0442\u0435\u0433\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u0436\u0434\u0443\u043D\u0430\u0440\u043E\u0434\u043D\u0443\u044E \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0441\u0438\u0441\u0442\u0435\u043C\u0443."})}),P("div",{className:"about-link-wrapper",children:[P("a",{href:`https://tmex.gov.tm/${e}`,className:"about-link",children:[c("img",{src:Yn,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u043A\u043E\u0442\u0438\u0440\u043E\u0432\u043A\u0438"})]}),P(K,{to:"/tarif",className:"about-link",children:[c("img",{src:Yn,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0442\u0430\u0440\u0438\u0444\u044B \u0438 \u0441\u0431\u043E\u0440\u044B"})]})]})]}):null,e==="tm"?P("div",{className:"about-left",children:[c(ce,{title:"TDH\xC7MB BARADA"}),c("div",{className:"about-text-wrapper",children:c("p",{className:"about-text",children:"T\xFCrkmenistany\u0148 D\xF6wlet haryt we \xE7ig mal bir\u017Easy (TDH\xC7MB) T\xFCrkmenistany\u0148 Prezidentini\u0148 1994-nji \xFDyly\u0148 29-njy i\xFDulyndaky Karary bilen d\xF6redildi we \xFDurdu\u0148 i\u0148 m\xF6h\xFCm ykdysady instituty bolup dur\xFDar. Bir\u017Ea eksport we import amallaryny amala a\u015Fyrmakda d\xF6wleti d\xFCzg\xFCnle\u015Fdir\xFD\xE4n esasy edarany\u0148 wezipesini \xFDerine \xFDetir\xFD\xE4r. Sazla\u015Fykly d\xF6redilen mehanizm halkara ykdysady ulgamyna \xFCst\xFCnlikli birle\u015Fm\xE4ge m\xFCmkin\xE7ilik ber\xFD\xE4r. TDH\xC7MB-ny\u0148 i\u015Fini\u0148 gerimi \xF6r\xE4n gi\u0148dir \u2013 d\xFCrli haryt we maddy ba\xFDlyklary (intellektual e\xFDe\xE7iligi hasaba almazdan), sungat eserlerini we gozgalma\xFDan eml\xE4kleri kabul edip sat\xFDan k\xF6ptarapla\xFDyn bir\u017Easydyr."})}),P("div",{className:"about-link-wrapper",children:[P("a",{href:`https://tmex.gov.tm/${e}`,className:"about-link",children:[c("img",{src:Yn,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"Kotirowkalara ge\xE7"})]}),P(K,{to:"/tarif",className:"about-link",children:[c("img",{src:Yn,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"Nyrhlar we \xFDygymlar"})]})]})]}):null,e==="en"?P("div",{className:"about-left",children:[c(ce,{title:"About the SCRMET"}),c("div",{className:"about-text-wrapper",children:c("p",{className:"about-text",children:"The State Commodity and Raw Materials Exchange of Turkmenistan (SCRMET) was established by the Decree of the President of Turkmenistan on July 29, 1994 and is the most important economic institution of the country. The Exchange functions as the main body of state regulation of export-import operations. Its smoothly functioning mechanism enables it to successfully integrate into the international economic system."})}),P("div",{className:"about-link-wrapper",children:[P("a",{href:`https://tmex.gov.tm/${e}`,className:"about-link",children:[c("img",{src:Yn,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"View Quotations"})]}),P(K,{to:"/tarif",className:"about-link",children:[c("img",{src:Yn,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"View tariffs and fees"})]})]})]}):null,c("div",{className:"about-right",children:c(Y3,{videoUrl:"https://www.exchange.gov.tm/page/normative-base?lang=ru"})})]})})}),c(ok,{lang:e}),c("section",{className:"news",children:c("div",{className:"container",children:P("div",{className:"news-wrapper",children:[c(ce,{title:` + ${e==="ru"?"\u041D\u043E\u0432\u043E\u0441\u0442\u0438":e==="tm"?"Habarlar":e==="en"?"News":null}`}),c("div",{className:"news-post-wrapper",children:n?n.data.map((i,u)=>u<=2?c(b3,{title:i.title,shortDes:i.short_description,date:z0(i.date),image:i.image,id:i.id,setPostId:t,lang:e},i.id):null):""})]})})})]})},ck=({lang:e})=>(j.exports.useEffect(()=>{window.scrollTo(0,0)},[]),c("main",{children:P("div",{className:"container",children:[e==="ru"?P("div",{className:"sub-page-wrapper",children:[c(ce,{title:"\u041E \u0431\u0438\u0440\u0436\u0435"}),P("div",{className:"sub-page-content-wrapper",children:[P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"\u0413\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043D\u043D\u0430\u044F \u0442\u043E\u0432\u0430\u0440\u043D\u043E-\u0441\u044B\u0440\u044C\u0435\u0432\u0430\u044F \u0431\u0438\u0440\u0436\u0430 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u0431\u044B\u043B\u0430 \u0441\u043E\u0437\u0434\u0430\u043D\u0430 \u0423\u043A\u0430\u0437\u043E\u043C \u041F\u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u0430 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u043E\u0442 29 \u0438\u044E\u043B\u044F 1994 \u0433\u043E\u0434\u0430 \u0438 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0432\u0430\u0436\u043D\u0435\u0439\u0448\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u043C \u0438\u043D\u0441\u0442\u0438\u0442\u0443\u0442\u043E\u043C \u0441\u0442\u0440\u0430\u043D\u044B. \u0411\u0438\u0440\u0436\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442 \u0444\u0443\u043D\u043A\u0446\u0438\u044E \u0433\u043B\u0430\u0432\u043D\u043E\u0433\u043E \u043E\u0440\u0433\u0430\u043D\u0430 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0433\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E-\u0438\u043C\u043F\u043E\u0440\u0442\u043D\u044B\u0445 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0439. \u041E\u0442\u043B\u0430\u0436\u0435\u043D\u043D\u044B\u0439 \u043C\u0435\u0445\u0430\u043D\u0438\u0437\u043C \u0444\u0443\u043D\u043A\u0446\u0438\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0435\u0439 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0438\u043D\u0442\u0435\u0433\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u0436\u0434\u0443\u043D\u0430\u0440\u043E\u0434\u043D\u0443\u044E \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0441\u0438\u0441\u0442\u0435\u043C\u0443."}),c("p",{children:"\u0421\u043F\u0435\u043A\u0442\u0440 \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0413\u0422\u0421\u0411\u0422 \u0447\u0440\u0435\u0437\u0432\u044B\u0447\u0430\u0439\u043D\u043E \u0448\u0438\u0440\u043E\u043A \u2013 \u043E\u043D\u0430 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0443\u043D\u0438\u0432\u0435\u0440\u0441\u0430\u043B\u044C\u043D\u043E\u0439 \u0431\u0438\u0440\u0436\u0435\u0439, \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u044F \u0438 \u0440\u0435\u0430\u043B\u0438\u0437\u0443\u044F \u0447\u0435\u0440\u0435\u0437 \u0442\u043E\u0440\u0433\u0438 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0435 \u0442\u043E\u0432\u0430\u0440\u043D\u043E-\u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u044B\u0435 \u0446\u0435\u043D\u043D\u043E\u0441\u0442\u0438 (\u0437\u0430 \u0438\u0441\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435\u043C \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432 \u0438\u043D\u0442\u0435\u043B\u043B\u0435\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E\u0439 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0441\u0442\u0438), \u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0430 \u0438 \u043D\u0435\u0434\u0432\u0438\u0436\u0438\u043C\u043E\u0441\u0442\u044C."})]}),P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"\u0417\u0430\u0434\u0430\u0447\u0438 \u0438 \u0446\u0435\u043B\u0438 \u0431\u0438\u0440\u0436\u0438"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0440\u0430\u0432\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u0434\u043B\u044F \u0435\u0435 \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u043E\u0432 \u2013 \u0434\u0435\u043B\u043E\u0432\u044B\u043C \u0438\u043D\u043E\u0441\u0442\u0440\u0430\u043D\u043D\u044B\u043C \u043B\u044E\u0434\u044F\u043C \u0438 \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044F\u043C \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430"})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0438 \u0443\u0441\u043A\u043E\u0440\u0438\u0442\u044C \u0442\u043E\u0432\u0430\u0440\u043E\u043E\u0431\u043E\u0440\u043E\u0442"})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\u041D\u0430\u0441\u044B\u0442\u0438\u0442\u044C \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0439 \u0440\u044B\u043D\u043E\u043A \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u043C\u0438 \u0442\u043E\u0432\u0430\u0440\u0430\u043C\u0438 \u043D\u0430\u0440\u043E\u0434\u043D\u043E\u0433\u043E \u043F\u043E\u0442\u0440\u0435\u0431\u043B\u0435\u043D\u0438\u044F, \u043F\u0440\u043E\u0434\u0443\u043A\u0446\u0438\u0435\u0439 \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0441\u0442\u0432\u0435\u043D\u043D\u043E-\u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0438 \u043E\u0431\u043E\u0440\u0443\u0434\u043E\u0432\u0430\u043D\u0438\u0435\u043C, \u043F\u0440\u0435\u0434\u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044B\u043C \u0434\u043B\u044F \u043C\u043E\u0434\u0435\u0440\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u043D\u0430\u0440\u043E\u0434\u043D\u043E-\u0445\u043E\u0437\u044F\u0439\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u043A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u0430 \u0441\u0442\u0440\u0430\u043D\u044B."})]})]})]}),P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"\u041A\u0432\u0430\u043B\u0438\u0444\u0438\u0446\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0441\u0442\u044B \u0431\u0438\u0440\u0436\u0438 \u043E\u0446\u0435\u043D\u0438\u0432\u0430\u044E\u0442 \u0446\u0435\u043B\u0435\u0441\u043E\u043E\u0431\u0440\u0430\u0437\u043D\u043E\u0441\u0442\u044C \u0432\u0432\u043E\u0437\u0430 \u0438 \u0432\u044B\u0432\u043E\u0437\u0430 \u043F\u0440\u043E\u0434\u0443\u043A\u0446\u0438\u0438, \u043F\u0440\u043E\u0432\u043E\u0434\u044F\u0442 \u0430\u043D\u0430\u043B\u0438\u0437 \u0432\u043B\u0438\u044F\u043D\u0438\u044F \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0445 \u0444\u0430\u043A\u0442\u043E\u0440\u043E\u0432 \u043D\u0430 \u0438\u043C\u043F\u043E\u0440\u0442 \u0438 \u044D\u043A\u0441\u043F\u043E\u0440\u0442 \u0442\u043E\u0432\u0430\u0440\u043E\u0432 \u0438 \u043F\u0440\u043E\u0434\u0443\u043A\u0446\u0438\u0438."}),c("p",{children:"\u0413\u043B\u0430\u0432\u043D\u044B\u043C \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0435 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0445 \u043B\u0435\u0442 \u0441\u0442\u0430\u043B\u043E \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u0435 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0433\u043E \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u043E\u0431\u043E\u0440\u043E\u0442\u0430 \u2013 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0439 \u0441\u0438\u0441\u0442\u0435\u043C\u044B, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u043D\u043E \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u0435 \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u043E\u0432 \u0438 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u043D\u0430\u0447\u0438\u043D\u0430\u044F \u0441 \u0438\u0445 \u0432\u0432\u043E\u0434\u0430 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043D\u043D\u044B\u0445 \u0438 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u044F \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u0438 \u0432\u044B\u0434\u0430\u0447\u0435\u0439 \u043A\u043B\u0438\u0435\u043D\u0442\u0443."}),c("p",{children:"\u041D\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445 \u0440\u0435\u0430\u043B\u0438\u0437\u0443\u0435\u0442\u0441\u044F \u043F\u0440\u043E\u0434\u0443\u043A\u0446\u0438\u044F \u043E\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0441\u0442\u0432\u0430, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u0432 \u0431\u043E\u043B\u0435\u0435 40 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432 \u043C\u0438\u0440\u0430. \u0421\u0440\u0435\u0434\u0438 \u043D\u0438\u0445 - \u0422\u0443\u0440\u0446\u0438\u044F, \u041A\u0438\u0442\u0430\u0439, \u0420\u043E\u0441\u0441\u0438\u044F, \u041E\u0410\u042D, \u0413\u0435\u0440\u043C\u0430\u043D\u0438\u044F, \u0421\u0428\u0410, \u0412\u0435\u043B\u0438\u043A\u043E\u0431\u0440\u0438\u0442\u0430\u043D\u0438\u044F, \u0423\u043A\u0440\u0430\u0438\u043D\u0430, \u0428\u0432\u0435\u0439\u0446\u0430\u0440\u0438\u044F. \u041E\u0441\u043D\u043E\u0432\u043D\u044B\u043C\u0438 \u0441\u0442\u0430\u0442\u044C\u044F\u043C\u0438 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0430 \u044F\u0432\u043B\u044F\u044E\u0442\u0441\u044F \u043D\u0435\u0444\u0442\u0435\u043F\u0440\u043E\u0434\u0443\u043A\u0442\u044B, \u0445\u043B\u043E\u043F\u043E\u043A-\u0432\u043E\u043B\u043E\u043A\u043D\u043E, \u043F\u0440\u043E\u0434\u0443\u043A\u0446\u0438\u044F \u0442\u0435\u043A\u0441\u0442\u0438\u043B\u044C\u043D\u043E\u0439 \u0438 \u0445\u0438\u043C\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u043F\u0440\u043E\u043C\u044B\u0448\u043B\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u0438 \u0442.\u0434."})]}),P("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:"\u041F\u0440\u0430\u0432\u0438\u043B\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u043E\u0439 \u0442\u043E\u0440\u0433\u043E\u0432\u043B\u0438"}),c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"\u0412 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0417\u0430\u043A\u043E\u043D\u043E\u043C \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \xAB\u041E \u0442\u043E\u0432\u0430\u0440\u043D\u043E-\u0441\u044B\u0440\u044C\u0435\u0432\u044B\u0445 \u0431\u0438\u0440\u0436\u0430\u0445\xBB, \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u0430\u043C\u0438 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u043E\u0432 \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u044F\u0442\u0438\u044F \u0438 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0445 \u0444\u043E\u0440\u043C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0441\u0442\u0438, \u0433\u0440\u0430\u0436\u0434\u0430\u043D\u0435 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432 \u043F\u0443\u0442\u0435\u043C \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u044F \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u0438\u043B\u0438 \u0437\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435\u043C \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u0430 \u043D\u0430 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0441 \u0431\u0440\u043E\u043A\u0435\u0440\u0430\u043C\u0438 \u0431\u0438\u0440\u0436\u0438."})})]}),P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"\u0411\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0443\u044E\u0442\u0441\u044F \u043D\u0430 \u043E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u0438 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0445 \u043F\u0440\u0438\u043D\u0446\u0438\u043F\u043E\u0432:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u0413\u043B\u0430\u0441\u043D\u043E\u0441\u0442\u044C \u0438 \u043F\u0443\u0431\u043B\u0438\u0447\u043D\u043E\u0441\u0442\u044C \u043F\u0440\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u043E\u0432."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"\u0421\u0432\u043E\u0431\u043E\u0434\u0430 \u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0446\u0435\u043D \u043D\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\u0414\u043E\u0431\u0440\u043E\u0432\u043E\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0437\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0441\u0434\u0435\u043B\u043E\u043A."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"\u0420\u0430\u0432\u0435\u043D\u0441\u0442\u0432\u043E \u0443\u0441\u043B\u043E\u0432\u0438\u0439 \u0443\u0447\u0430\u0441\u0442\u0438\u044F \u0432 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445 \u0434\u043B\u044F \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u043E\u0432 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u043E\u0432."})]})]})]}),P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"\u0427\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043D\u044F\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0441\u0442\u0438 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0435 \u043C\u0435\u0441\u0442\u043E. \u0412 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043F\u0440\u043E\u0434\u0430\u0432\u0446\u0430 \u0438\u043B\u0438 \u043F\u043E\u043A\u0443\u043F\u0430\u0442\u0435\u043B\u044F \u043C\u043E\u0433\u0443\u0442 \u0432\u044B\u0441\u0442\u0443\u043F\u0430\u0442\u044C \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0438 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043B\u0438\u0446\u0430 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u0438 \u0438\u043D\u043E\u0441\u0442\u0440\u0430\u043D\u043D\u044B\u0445 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432 \u0432\u0441\u0435\u0445 \u0444\u043E\u0440\u043C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0441\u0442\u0438."}),c("p",{children:"\u041B\u0438\u0446\u0430, \u043D\u0435 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0448\u0438\u0435 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0435 \u043C\u0435\u0441\u0442\u043E, \u0447\u0442\u043E\u0431\u044B \u043E\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043B\u044F\u0442\u044C \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043A\u0443\u043F\u043B\u0438-\u043F\u0440\u043E\u0434\u0430\u0436\u0438 \u0442\u043E\u0432\u0430\u0440\u043E\u0432, \u043C\u043E\u0433\u0443\u0442 \u0437\u0430\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0434\u043E\u0433\u043E\u0432\u043E\u0440 \u043D\u0430 \u043E\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u0438\u0445 \u0443\u0441\u043B\u0443\u0433 \u0441 \u0431\u0440\u043E\u043A\u0435\u0440\u0430\u043C\u0438 \u0411\u0438\u0440\u0436\u0438."})]})]})]}):null,e==="tm"?P("div",{className:"sub-page-wrapper",children:[c(ce,{title:"Bir\u017Ea barada"}),P("div",{className:"sub-page-content-wrapper",children:[P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"T\xFCrkmenistany\u0148 D\xF6wlet haryt we \xE7ig mal bir\u017Easy (TDH\xC7MB) T\xFCrkmenistany\u0148 Prezidentini\u0148 1994-nji \xFDyly\u0148 29-njy i\xFDulyndaky Karary bilen d\xF6redildi we \xFDurdu\u0148 i\u0148 m\xF6h\xFCm ykdysady instituty bolup dur\xFDar. Bir\u017Ea eksport we import amallaryny amala a\u015Fyrmakda d\xF6wleti d\xFCzg\xFCnle\u015Fdir\xFD\xE4n esasy edarany\u0148 wezipesini \xFDerine \xFDetir\xFD\xE4r. Sazla\u015Fykly d\xF6redilen mehanizm halkara ykdysady ulgamyna \xFCst\xFCnlikli birle\u015Fm\xE4ge m\xFCmkin\xE7ilik ber\xFD\xE4r."}),c("p",{children:"TDH\xC7MB-ny\u0148 i\u015Fini\u0148 gerimi \xF6r\xE4n gi\u0148dir \u2013 d\xFCrli haryt we maddy ba\xFDlyklary (intellektual e\xFDe\xE7iligi hasaba almazdan), sungat eserlerini we gozgalma\xFDan eml\xE4kleri kabul edip sat\xFDan k\xF6ptarapla\xFDyn bir\u017Easydyr."})]}),P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Bir\u017Eany\u0148 wezipeleri we maksatlary:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Eany\u0148 m\xFC\u015Fderileri \u2013 T\xFCrkmenistanly teleke\xE7iler we da\u015Fary \xFDurtly i\u015Few\xFCrler \xFC\xE7in de\u0148 \u015Fertleri d\xF6retmek."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"S\xF6wda dolany\u015Fygyny \xFDokarlandyrmak we \xE7altla\u015Fdyrmak."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\xDDurdu\u0148 milli ykdysady toplumyny d\xF6wrebapla\u015Fdyrmak \xFC\xE7in i\xE7erki bazary zerur sarp edi\u015F harytlary, \xF6n\xFCm\xE7ilik, tehniki \xF6n\xFCmler we enjamlar bilen doldurmak."})]})]})]}),P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"Bir\u017Eany\u0148 \xF6kde h\xFCn\xE4rmenleri \xF6n\xFCmleri\u0148 importyny\u0148 we eksportyny\u0148 maksadala\xFDyklygyna baha ber\xFD\xE4rler, d\xFCrli faktorlary\u0148 harytlary\u0148 we \xF6n\xFCmleri\u0148 importyna we eksportyna ed\xFD\xE4n t\xE4sirini seljer\xFD\xE4rler."}),c("p",{children:"Bir\u017Ea s\xF6wdasynda \xFDerli \xF6nd\xFCrilen \xF6n\xFCmler d\xFCn\xFD\xE4ni\u0148 40-dan gowrak \xFDurduna eksport edil\xFD\xE4r we aly\u015F-\xE7aly\u015F s\xF6wdala\u015Fyklarynda satyl\xFDar. Olary\u0148 arasynda T\xFCrki\xFDe, Hyta\xFD, Russi\xFDa, BAE, Germani\xFDa, AB\u015E, Be\xFDik Britani\xFDa, Ukraina, \u015Ewe\xFDsari\xFDa \xFDaly \xFDurtlar bar. Esasy eksport \xF6n\xFCmleri bolup nebit, pagta s\xFC\xFD\xFCmi, dokma we himi\xFDa senagatyny\u0148 \xF6n\xFCmleri we \u015F.m. hyzmat ed\xFD\xE4r."})]})]})]}):null,e==="en"?P("div",{className:"sub-page-wrapper",children:[c(ce,{title:"About the Exchange"}),P("div",{className:"sub-page-content-wrapper",children:[P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"The State Commodity and Raw Materials Exchange of Turkmenistan (SCRMET) was established by the Decree of the President of Turkmenistan on July 29, 1994 and is the most important economic institution of the country. The Exchange functions as the main body of state regulation of export-import operations. Its smoothly functioning mechanism enables it to successfully integrate into the international economic system."}),c("p",{children:"The range of the SCRMET activities is extremely wide \u2013 it is a universal exchange, accepting and selling various commodities and materials (except intellectual property objects), works of art and real estate through auctions."})]}),P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Objectives and aims of the exchange:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"to create an equal playing field for its participants \u2013 foreign businessmen and entrepreneurs of Turkmenistan;"})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"to increase and accelerate trade turnover;"})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"to saturate domestic market with necessary consumer goods, production of industrial-technical purpose and equipment for modernization of national economy complex."})]})]})]}),P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"Qualified specialists of the exchange evaluate expediency of import and export of products, analyze influence of various factors on import and export of goods and products."}),c("p",{children:"Domestic products, which are exported to more than 40 countries, are traded at commodity exchanges. Among them are Turkey, China, Russia, UAE, Germany, USA, UK, Ukraine and Switzerland. The main export items are petroleum products, cotton fibre, textile and chemical products, etc."})]})]})]}):null]})})),dk=({lang:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/documents",t,n).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),c("main",{children:c("div",{className:"container",children:P("div",{className:"sub-page-wrapper",children:[e==="ru"?P(He,{children:[c(ce,{title:"\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u044B\u0439 \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433"}),P("div",{className:"sub-page-content-wrapper",children:[P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"\u0412 \u0446\u0435\u043B\u044F\u0445 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u043F\u0440\u043E\u0442\u0438\u0432\u043E\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u043B\u0435\u0433\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043E\u0445\u043E\u0434\u043E\u0432, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u044B\u0445 \u043E\u0442 \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043D\u043E\u0439 \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438, \u0438 \u0444\u0438\u043D\u0430\u043D\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044E \u0442\u0435\u0440\u0440\u043E\u0440\u0438\u0437\u043C\u0430, \u043D\u0430 \u0431\u0438\u0440\u0436\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u044B \u041F\u0440\u0430\u0432\u0438\u043B\u0430, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u044E\u0442 \u043E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u0446\u0435\u043B\u0438 \u0438 \u0437\u0430\u0434\u0430\u0447\u0438, \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0435\u0433\u043E \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044F. \u0422\u0430\u043A\u0436\u0435 \u0431\u0438\u0440\u0436\u0435\u0439 \u043D\u0430\u0437\u043D\u0430\u0447\u0430\u0435\u0442\u0441\u044F \u043B\u0438\u0446\u043E, \u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435 \u0437\u0430 \u0441\u043E\u0431\u043B\u044E\u0434\u0435\u043D\u0438\u0435 \u044D\u0442\u0438\u0445 \u043F\u0440\u0430\u0432\u0438\u043B."}),c("p",{children:"\u0421\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A \u043A\u043E\u043C\u0438\u0441\u0441\u0438\u0438, \u043D\u0430 \u043E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u0438 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043E\u0442 \u043A\u043B\u0438\u0435\u043D\u0442\u0430, \u0442\u0449\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u043F\u0440\u043E\u0432\u0435\u0440\u044F\u0435\u0442 \u0435\u0435 \u0441 \u0443\u0447\u0435\u0442\u043E\u043C \u0432\u0438\u0434\u043E\u0432 \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0438 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0439 \u043A\u043B\u0438\u0435\u043D\u0442\u0430, \u043E\u0446\u0435\u043D\u0438\u0432\u0430\u0435\u0442 \u0438 \u043F\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0440\u0438\u0441\u043A\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0432\u043D\u043E\u0441\u0438\u0442 \u0435\u0435 \u0432 \u0410\u0411\u0421."})]}),P("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0432 \u043E\u0442\u0434\u0435\u043B\u0435 \u0444\u0438\u043D. \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433\u0430"}),P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"\u041F\u043E\u0434\u0430\u0442\u044C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u043D\u0430 \u043B\u0435\u0433\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044E \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043B\u0438\u0446\u0430 \u0438\u043B\u0438 \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044F \u043C\u043E\u0436\u043D\u043E \u043E\u043D\u043B\u0430\u0439\u043D. \u041B\u0438\u0447\u043D\u044B\u0439 \u043A\u0430\u0431\u0438\u043D\u0435\u0442 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u043D\u0435\u0441\u0442\u0438 \u0434\u0430\u043D\u043D\u044B\u0435 \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B, \u0441\u043A\u0430\u0447\u0430\u0442\u044C \u0431\u043B\u0430\u043D\u043A\u0438 \u0438 \u043E\u0431\u0440\u0430\u0437\u0446\u044B \u0437\u0430\u044F\u0432\u043B\u0435\u043D\u0438\u0439, \u0432\u0435\u0441\u0442\u0438 \u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0441 \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u0430\u043C\u0438 \u0431\u0438\u0440\u0436\u0438, \u0434\u043E\u043F\u043E\u043B\u043D\u044F\u0442\u044C \u043F\u0430\u043A\u0435\u0442 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0435\u0441\u043B\u0438 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043A\u0430\u044F \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \u0424\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u0438, \u0432\u0441\u044F \u0440\u0430\u0431\u043E\u0442\u0430 \u0441 \u0431\u0438\u0440\u0436\u0435\u0439 \u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0439 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442\u0430."}),c("p",{children:"\u0427\u0442\u043E\u0431\u044B \u0432\u043E\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u043C \u2013 \u043F\u0440\u043E\u0439\u0434\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044E \u0432 \u041B\u0438\u0447\u043D\u043E\u043C \u043A\u0430\u0431\u0438\u043D\u0435\u0442\u0435."})]})]})]})]}):null,e==="tm"?P(He,{children:[c(ce,{title:"Mali\xFDe g\xF6zeg\xE7iligi"}),P("div",{className:"sub-page-content-wrapper",children:[P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"Jena\xFDat\xE7ylykdan alnan girdejileri\u0148 kanunla\u015Fdyrylmagyna we terror\xE7ylygy mali\xFDele\u015Fdirm\xE4ge gar\u015Fy \xE7\xE4releri guramak \xFC\xE7in bir\u017Ea esasy maksatlary we wezipeleri, i\xE7erki g\xF6zeg\xE7ilik talaplaryny kesgitle\xFD\xE4n d\xFCzg\xFCnlerini d\xF6retdi. \u015Ee\xFDle hem, bir\u017Ea bu d\xFCzg\xFCnleri\u0148 berja\xFD edilmegi \xFC\xE7in jogapk\xE4r adamy belle\xFD\xE4r."}),c("p",{children:"M\xFC\u015Fderiden alnan maglumatlara esaslanyp, komissi\xFDany\u0148 i\u015Fg\xE4ri m\xFC\u015Fderini\u0148 i\u015Flerini\u0148 we amallaryny\u0148 g\xF6rn\xFC\u015Flerini g\xF6z \xF6\u0148\xFCnde tutup, ony \xFCns bilen barla\xFDar, degi\u015Fli t\xF6wekgel\xE7ilik derejesini bahalandyr\xFDar we belle\xFD\xE4r, \u015Fe\xFDle hem ABU-yna giriz\xFD\xE4r."})]}),P("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:"Mali\xFDe g\xF6zeg\xE7iligi b\xF6l\xFCminde hasaba aly\u015F "}),P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"Hukuk guramasyny\u0148 \xFDa-da teleke\xE7ini\u0148 kanunla\u015Fdyrylmagy \xFC\xE7in resminamalary onla\xFDn g\xF6rn\xFC\u015Finde hasaba alyp bolar. Ulanyjyny\u0148 \u015Fahsy otagy maglumatlary girizm\xE4ge we resminamalary \xFD\xFCklem\xE4ge, anketalary we nusgalary g\xF6\xE7\xFCrip almaga, aly\u015F-\xE7aly\u015F dolandyryjylary bilen habarla\u015Fmaga, zerur bolsa resminamalar bukjasyny doldurmaga m\xFCmkin\xE7ilik ber\xFD\xE4r. Umuman, bir\u017Ea bilen baglany\u015Fykly \xE4hli i\u015Fler interneti\u0148 k\xF6megi bilen doly awtomatla\u015Fdyryl\xFDar."}),c("p",{children:"Hyzmaty ulanmak \xFC\xE7in \u015Eahsy otagy\u0148yzda hasaba alynmagy\u0148yz h\xF6kmanydyr."})]})]})]})]}):null,e==="en"?P(He,{children:[c(ce,{title:"Financial monitoring"}),P("div",{className:"sub-page-content-wrapper",children:[P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"In order to organize counteraction to the legalization of proceeds from criminal activity and the financing of terrorism, the exchange has established Rules that define the main goals and objectives, internal control requirements. The exchange also appoints a person responsible for compliance with these rules."}),c("p",{children:"An employee of the commission, based on the information received from the client, carefully checks it taking into account the types of activities and operations of the client, evaluates and assigns the appropriate level of risk, and also enters it into the AES."})]}),P("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:"Registration in the financial monitoring department"}),P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"You can submit documents for the legalization of a legal entity or entrepreneur online. The user's personal account allows you to enter data and upload documents, download forms and application samples, communicate with exchange administrators, supplement the package of documents if necessary. In fact, all work with the exchange becomes automated using the Internet."}),c("p",{children:"To use the service, register in your Personal Account."})]})]})]})]}):null,P("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:e==="ru"?"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u0434\u043B\u044F \u0441\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u044F":e==="tm"?"G\xF6\xE7\xFCrip almak \xFC\xE7in resminamalar":e==="en"?"Documents for download":null}),c("div",{className:"documents-wrapper",children:c("div",{className:"documents-links-wrapper",children:t?t.data.map(r=>r.page==="\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u044B\u0439 \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433"&&r.title!="-"?c(Ta,{title:r.title,link:r.file},r.id):null):""})})]})]})})})},fk=({lang:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/documents",t,n).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),c("main",{children:c("div",{className:"container",children:P("div",{className:"sub-page-wrapper",children:[e==="ru"?P(He,{children:[c(ce,{title:"\u041D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0431\u0430\u0437\u0430"}),P("div",{className:"sub-page-content-wrapper",children:[c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"\u0410\u0440\u0431\u0438\u0442\u0440\u0430\u0436\u043D\u0430\u044F \u043A\u043E\u043C\u0438\u0441\u0441\u0438\u044F \u0432 \u0441\u0432\u043E\u0435\u0439 \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044F \u041A\u043E\u043D\u0441\u0442\u0438\u0442\u0443\u0446\u0438\u0435\u0439, \u0437\u0430\u043A\u043E\u043D\u0430\u043C\u0438, \u0430\u043A\u0442\u0430\u043C\u0438 \u041F\u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u0430, \u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435\u043C \u0411\u0438\u0440\u0436\u0438, \u043F\u0440\u0430\u0432\u0438\u043B\u0430\u043C\u0438 \u0431\u0438\u0440\u0436\u0435\u0432\u043E\u0439 \u0442\u043E\u0440\u0433\u043E\u0432\u043B\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u043D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u043E-\u043F\u0440\u0430\u0432\u043E\u0432\u044B\u043C\u0438 \u0430\u043A\u0442\u0430\u043C\u0438."})}),P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"\u0412 \u043A\u043E\u043C\u043F\u0435\u0442\u0435\u043D\u0446\u0438\u044E \u0410\u0440\u0431\u0438\u0442\u0440\u0430\u0436\u043D\u043E\u0439 \u043A\u043E\u043C\u0438\u0441\u0441\u0438\u0438 \u0432\u0445\u043E\u0434\u0438\u0442:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u0410\u043D\u043D\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0441\u0434\u0435\u043B\u043E\u043A, \u0437\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0445 \u043D\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"\u0410\u043D\u043D\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0438 \u043D\u0435\u0432\u043E\u0441\u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u043D\u0430 \u0411\u0438\u0440\u0436\u0435 \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\u0420\u0430\u0441\u0441\u043C\u043E\u0442\u0440\u0435\u043D\u0438\u0435 \u0441\u043F\u043E\u0440\u043E\u0432 \u043F\u043E \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u043C \u0441\u0434\u0435\u043B\u043A\u0430\u043C \u0438 \u0432\u043E\u043F\u0440\u043E\u0441\u0430\u043C \u0431\u0438\u0440\u0436\u0435\u0432\u043E\u0439 \u0442\u043E\u0440\u0433\u043E\u0432\u043B\u0438."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"\u0420\u0430\u0441\u0441\u043C\u043E\u0442\u0440\u0435\u043D\u0438\u0435 \u0441\u043F\u043E\u0440\u043E\u0432 \u043F\u043E \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u0430\u043C, \u043F\u0440\u0438 \u0438\u0445 \u0437\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438, \u0432\u043D\u0435\u0441\u0435\u043D\u0438\u0438 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0439 \u0438 \u0440\u0430\u0441\u0442\u043E\u0440\u0436\u0435\u043D\u0438\u0438."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"\u041A\u043E\u043C\u0438\u0441\u0441\u0438\u044F \u0432\u043F\u0440\u0430\u0432\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C, \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u0438\u043D\u044F\u0442\u043E\u0435 \u0440\u0435\u0448\u0435\u043D\u0438\u0435."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"6"}),c("h3",{className:"sub-page-list-item-text",children:"\u0420\u0430\u0441\u0441\u043C\u043E\u0442\u0440\u0435\u043D\u0438\u0435 \u043D\u0430\u0440\u0443\u0448\u0435\u043D\u0438\u0439, \u0434\u043E\u043F\u0443\u0449\u0435\u043D\u043D\u044B\u0445 \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u0430\u043C\u0438 \u0431\u0438\u0440\u0436\u0435\u0432\u043E\u0439 \u0442\u043E\u0440\u0433\u043E\u0432\u043B\u0438."})]})]})]}),P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"\u0418\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0438\u044F \u043E \u043F\u043E\u0440\u044F\u0434\u043A\u0435 \u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0441\u043A\u043E\u0439 \u043B\u0435\u0433\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438"}),c("p",{children:"\u041A\u043E\u043D\u0441\u0443\u043B\u044C\u0441\u043A\u0430\u044F \u043B\u0435\u0433\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u0437\u0430\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F \u0432 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0438 \u0438 \u0437\u0430\u0441\u0432\u0438\u0434\u0435\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u0438 \u043F\u043E\u0434\u043B\u0438\u043D\u043D\u043E\u0441\u0442\u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u0435\u0439 \u043D\u0430 \u044A\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0445 \u0438 \u0430\u043A\u0442\u0430\u0445, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044F \u0438\u0445 \u0437\u0430\u043A\u043E\u043D\u0430\u043C \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0430 \u043F\u0440\u0435\u0431\u044B\u0432\u0430\u043D\u0438\u044F \u043A\u043E\u043D\u0441\u0443\u043B\u0430 \u043F\u0443\u0442\u0435\u043C \u0441\u043E\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u044F \u043B\u0435\u0433\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439 \u043D\u0430\u0434\u043F\u0438\u0441\u0438 \u0438\u043B\u0438 \u043F\u0440\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u044F \u043B\u0435\u0433\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0433\u043E \u0448\u0442\u0430\u043C\u043F\u0430 \u043D\u0430 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u043C \u0438 \u0430\u043D\u0433\u043B\u0438\u0439\u0441\u043A\u043E\u043C \u044F\u0437\u044B\u043A\u0430\u0445."})]})]})]}):null,e==="tm"?P(He,{children:[c(ce,{title:"KADALA\u015EDYRYLAN TOPLUM"}),P("div",{className:"sub-page-content-wrapper",children:[c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"Arbitra\u017E ge\u0148e\u015Fi \xF6z i\u015Finde T\xFCrkmenistany\u0148 Konstitusi\xFDasy, T\xFCrkmenistany\u0148 Prezidentini\u0148 Permanlary, Kararlary, Bir\u017Eany\u0148 d\xFCzg\xFCnleri, aly\u015F-\xE7aly\u015F s\xF6wdasyny\u0148 kadalary we be\xFDleki kadala\u015Fdyryjy hukuk namalaryna esaslan\xFDar."})}),P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Arbitra\u017E ge\u0148e\u015Fini\u0148 ygty\xFDarlygy \u015Fulary \xF6z i\xE7ine al\xFDar:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Ea s\xF6wdala\u015Fyklarynda baglany\u015Fylan ylala\u015Fyklary\u0148 t\xE4sirini\u0148 \xFDatyrylmagy."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Eada hasaba alnan we talap edilmedik \u015Fertnamalary\u0148 \xFDatyrylmagy."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Ea amallary we aly\u015F-\xE7aly\u015F s\xF6wdasy baradaky jedellere garamak."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Jedeller baglany\u015Fylanda, \xFC\xFDtgedilende we \xFDatyrylanda \u015Fertnamalara garamak."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"Ge\u0148e\u015Fi\u0148 kabul edilen karary \xFC\xFDtgetm\xE4ge, \xFDatyrmaga we dikeltm\xE4ge hukugy bar."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"6"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Ea s\xF6wdasyna gatna\u015Fyjylar tarapyndan \xFDol berlen d\xFCzg\xFCn bozulmalaryna garamak."})]})]})]}),P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"Konsullygy kanunla\u015Fdyrmagy\u0148 tertibi bo\xFDun\xE7a g\xF6rkezmeler"}),c("p",{children:"Konsullygy\u0148 kanunla\u015Fdyrylmagy resminamalara we hereketlere gollary\u0148 dogrudygyny kesgitlemekden, \u015Fe\xFDle hem kanunla\u015Fdyrmak \xFDazgysyny \xFDazmak \xFDa-da d\xF6wlet we i\u0148lis dillerinde kanunla\u015Fdyry\u015F m\xF6h\xFCrini go\xFDmak arkaly konsuly\u0148 kabul ed\xFD\xE4n d\xF6wletini\u0148 kanunlaryna la\xFDyk gelmegini kesgitlemekden ybaratdyr."})]})]})]}):null,e==="en"?P(He,{children:[c(ce,{title:"Regulatory framework"}),P("div",{className:"sub-page-content-wrapper",children:[c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"The Arbitration Commission in its activities is guided by the Constitution, laws, acts of the President, the regulations of the Exchange, the rules of exchange trading and other regulatory legal acts."})}),P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"The competence of the Arbitration Commission includes:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Cancellation of transactions concluded at exchange trading."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Cancellation of contracts registered and unclaimed on the Exchange."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Consideration of disputes on exchange transactions and issues of exchange trading."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Consideration of disputes under contracts, when they are concluded, amended and terminated."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"The Commission has the right to change, cancel and restore the adopted decision."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"6"}),c("h3",{className:"sub-page-list-item-text",children:"Consideration of violations committed by participants of exchange trading."})]})]})]}),P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"Instructions on the procedure of consular legalization"}),c("p",{children:"Consular legalization consists in establishing and certifying the authenticity of signatures on legal documents and acts, as well as their compliance with the laws of the consul's state of residence by making a legalization inscription or affixing a legalization stamp in the state and English languages."})]})]})]}):null,P("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:e==="ru"?"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u0434\u043B\u044F \u0441\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u044F":e==="tm"?"G\xF6\xE7\xFCrip almak \xFC\xE7in resminamalar":e==="en"?"Documents for download":null}),c("div",{className:"documents-wrapper",children:c("div",{className:"documents-links-wrapper",children:t?t.data.map(r=>r.page==="\u041D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0431\u0430\u0437\u0430"&&r.title!="-"?c(Ta,{title:r.title,link:r.file},r.id):null):""})})]})]})})})},hk=({lang:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/documents",t,n).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),c("main",{children:c("div",{className:"container",children:P("div",{className:"sub-page-wrapper",children:[e==="ru"?P(He,{children:[c(ce,{title:"\u041F\u0440\u0430\u0432\u0438\u043B\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u043E\u0439 \u0442\u043E\u0440\u0433\u043E\u0432\u043B\u0438"}),P("div",{className:"sub-page-content-wrapper",children:[c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"\u0412 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0417\u0430\u043A\u043E\u043D\u043E\u043C \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \xAB\u041E \u0442\u043E\u0432\u0430\u0440\u043D\u043E-\u0441\u044B\u0440\u044C\u0435\u0432\u044B\u0445 \u0431\u0438\u0440\u0436\u0430\u0445\xBB, \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u0430\u043C\u0438 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u043E\u0432 \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u044F\u0442\u0438\u044F \u0438 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0445 \u0444\u043E\u0440\u043C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0441\u0442\u0438, \u0433\u0440\u0430\u0436\u0434\u0430\u043D\u0435 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432 \u043F\u0443\u0442\u0435\u043C \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u044F \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u0438\u043B\u0438 \u0437\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435\u043C \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u0430 \u043D\u0430 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0441 \u0431\u0440\u043E\u043A\u0435\u0440\u0430\u043C\u0438 \u0431\u0438\u0440\u0436\u0438."})}),P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"\u0411\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0443\u044E\u0442\u0441\u044F \u043D\u0430 \u043E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u0438 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0445 \u043F\u0440\u0438\u043D\u0446\u0438\u043F\u043E\u0432:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u0413\u043B\u0430\u0441\u043D\u043E\u0441\u0442\u044C \u0438 \u043F\u0443\u0431\u043B\u0438\u0447\u043D\u043E\u0441\u0442\u044C \u043F\u0440\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u043E\u0432."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"\u0421\u0432\u043E\u0431\u043E\u0434\u0430 \u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0446\u0435\u043D \u043D\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\u0414\u043E\u0431\u0440\u043E\u0432\u043E\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0437\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0441\u0434\u0435\u043B\u043E\u043A."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"\u0420\u0430\u0432\u0435\u043D\u0441\u0442\u0432\u043E \u0443\u0441\u043B\u043E\u0432\u0438\u0439 \u0443\u0447\u0430\u0441\u0442\u0438\u044F \u0432 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445 \u0434\u043B\u044F \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u043E\u0432 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u043E\u0432."})]})]})]}),P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"\u0427\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043D\u044F\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0445 \u0442\u043E\u0440\u0433\u0430\u0445, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0441\u0442\u0438 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0435 \u043C\u0435\u0441\u0442\u043E. \u0412 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043F\u0440\u043E\u0434\u0430\u0432\u0446\u0430 \u0438\u043B\u0438 \u043F\u043E\u043A\u0443\u043F\u0430\u0442\u0435\u043B\u044F \u043C\u043E\u0433\u0443\u0442 \u0432\u044B\u0441\u0442\u0443\u043F\u0430\u0442\u044C \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0438 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043B\u0438\u0446\u0430 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u0438 \u0438\u043D\u043E\u0441\u0442\u0440\u0430\u043D\u043D\u044B\u0445 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432 \u0432\u0441\u0435\u0445 \u0444\u043E\u0440\u043C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0441\u0442\u0438."}),c("p",{children:"\u041B\u0438\u0446\u0430, \u043D\u0435 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0448\u0438\u0435 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0435 \u043C\u0435\u0441\u0442\u043E, \u0447\u0442\u043E\u0431\u044B \u043E\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043B\u044F\u0442\u044C \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043A\u0443\u043F\u043B\u0438-\u043F\u0440\u043E\u0434\u0430\u0436\u0438 \u0442\u043E\u0432\u0430\u0440\u043E\u0432, \u043C\u043E\u0433\u0443\u0442 \u0437\u0430\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0434\u043E\u0433\u043E\u0432\u043E\u0440 \u043D\u0430 \u043E\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u0438\u0445 \u0443\u0441\u043B\u0443\u0433 \u0441 \u0431\u0440\u043E\u043A\u0435\u0440\u0430\u043C\u0438 \u0411\u0438\u0440\u0436\u0438."})]}),P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"\u041F\u043E\u0440\u044F\u0434\u043E\u043A \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u041F\u0440\u043E\u0439\u0442\u0438 \u043F\u0440\u043E\u0446\u0435\u0434\u0443\u0440\u0443 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0432 \u043E\u0442\u0434\u0435\u043B\u0435 \u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u043E\u0433\u043E \u041C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433\u0430."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),P("div",{className:"sub-page-list-item-content",children:[c("h3",{className:"sub-page-list-item-text",children:"\u041F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u043A\u0435\u0442 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432:"}),P("ul",{className:"sub-page-list-item-list",children:[c("li",{className:"sub-page-list-item-list-item",children:"\u041F\u0438\u0441\u044C\u043C\u043E-\u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u043D\u0430 \u0438\u043C\u044F \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044F \u0413\u0422\u0421\u0411\u0422 \u043E \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u043F\u043E\u043A\u0443\u043F\u043A\u0438 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430"}),c("li",{className:"sub-page-list-item-list-item",children:"\u0414\u043E\u0432\u0435\u0440\u0435\u043D\u043D\u043E\u0441\u0442\u044C \u043D\u0430 \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044F (\u0431\u0440\u043E\u043A\u0435\u0440\u0430) \u0441 \u043E\u0440\u0438\u0433\u0438\u043D\u0430\u043B\u043E\u043C \u043F\u0435\u0447\u0430\u0442\u0438 \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u0438 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044F \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0438;"}),c("li",{className:"sub-page-list-item-list-item",children:"\u041A\u043E\u043F\u0438\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0439 \u0434\u043E\u0432\u0435\u0440\u0435\u043D\u043D\u043E\u0441\u0442\u0438 (\u043B\u0435\u0433\u0430\u043B\u0438\u0437\u043E\u0432\u0430\u043D\u043D\u043E\u0439)"}),c("li",{className:"sub-page-list-item-list-item",children:"\u041A\u043E\u043F\u0438\u044F \u043F\u0430\u0441\u043F\u043E\u0440\u0442\u0430 \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044F (\u0431\u0440\u043E\u043A\u0435\u0440\u0430) \u0438 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044F \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0438;"}),c("li",{className:"sub-page-list-item-list-item",children:"\u0417\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u044B\u0439 \u0431\u043B\u0430\u043D\u043A \u0431\u0430\u043D\u043A\u043E\u0432\u0441\u043A\u0438\u0445 \u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u043E\u0432, \u0437\u0430\u0432\u0435\u0440\u0435\u043D\u043D\u044B\u0439 \u043E\u0440\u0438\u0433\u0438\u043D\u0430\u043B\u044C\u043D\u043E\u0439 \u043F\u0435\u0447\u0430\u0442\u044C\u044E \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044C\u044E \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044F \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0438;"}),c("li",{className:"sub-page-list-item-list-item",children:"\u041A\u043E\u043F\u0438\u044E \u0443\u0447\u0440\u0435\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432 (\u0443\u0441\u0442\u0430\u0432, \u0440\u0435\u0435\u0441\u0442\u0440);"}),c("li",{className:"sub-page-list-item-list-item",children:"\u041E\u0434\u043D\u0430 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u044F \u0431\u0440\u043E\u043A\u0435\u0440\u0430 3x4;"}),c("li",{className:"sub-page-list-item-list-item",children:'\u0417\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u044B\u0439 \u0431\u043B\u0430\u043D\u043A "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u043E", \u0437\u0430\u0432\u0435\u0440\u0435\u043D\u043D\u044B\u0439 \u043F\u0435\u0447\u0430\u0442\u044C\u044E \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044C\u044E \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044F \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0438.'})]})]})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),P("div",{className:"sub-page-list-item-content",children:[c("h3",{className:"sub-page-list-item-text",children:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0432 \u043E\u0442\u0434\u0435\u043B\u0435 \xAB\u0412\u0437\u0430\u0438\u043C\u043E\u0440\u0430\u0441\u0447\u0435\u0442\u043E\u0432\xBB \u0413\u0422\u0421\u0411\u0422 \u0441\u0447\u0435\u0442\u0430 \u0438 \u043E\u043F\u043B\u0430\u0442\u0438\u0442\u044C:"}),c("h3",{className:"sub-page-list-item-text",children:"\u0414\u043B\u044F \u043D\u0435\u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u043E\u0432:"}),P("ul",{className:"sub-page-list-item-list",children:[c("li",{className:"sub-page-list-item-list-item",children:"\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u043D\u0430 \u043B\u0451\u0433\u043A\u0443\u044E \u043F\u0440\u043E\u043C\u044B\u0448\u043B\u0435\u043D\u043D\u043E\u0441\u0442\u044C \u0441\u0440\u043E\u043A\u043E\u043C \u043D\u0430 1 \u0433\u043E\u0434 \u0441\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 5000 \u0434\u043E\u043B\u043B\u0430\u0440\u043E\u0432 \u0421\u0428\u0410. \u0414\u0435\u043F\u043E\u0437\u0438\u0442 \u2013 6 000 \u0434\u043E\u043B\u043B\u0430\u0440\u043E\u0432 \u0421\u0428\u0410."}),c("li",{className:"sub-page-list-item-list-item",children:"\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u043D\u0430 \u043D\u0435\u0444\u0442\u044F\u043D\u0443\u044E \u043F\u0440\u043E\u043C\u044B\u0448\u043B\u0435\u043D\u043D\u043E\u0441\u0442\u044C \u0441\u0440\u043E\u043A\u043E\u043C \u043D\u0430 1 \u0433\u043E\u0434 \u0441\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 10 000 \u0434\u043E\u043B\u043B\u0430\u0440\u043E\u0432 \u0421\u0428\u0410. \u0414\u0435\u043F\u043E\u0437\u0438\u0442 \u2013 50 000 \u0434\u043E\u043B\u043B\u0430\u0440\u043E\u0432 \u0421\u0428\u0410."})]}),c("h3",{className:"sub-page-list-item-text",children:"\u0414\u043B\u044F \u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u043E\u0432:"}),c("ul",{className:"sub-page-list-item-list",children:c("li",{className:"sub-page-list-item-list-item",children:"\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u0441\u0440\u043E\u043A\u043E\u043C \u043D\u0430 1 \u0433\u043E\u0434 \u0441\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 10 000 \u043C\u0430\u043D\u0430\u0442."})})]})]})]})]}),P("div",{className:"sub-page-list-wrapper",children:[P("h2",{className:"sub-page-title",children:["\u041E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u044F \u0434\u043B\u044F \u043F\u0440\u0435\u043A\u0440\u0430\u0449\u0435\u043D\u0438\u044F \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0431\u0440\u043E\u043A\u0435\u0440\u0430:"," "]}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u0417\u0430\u044F\u0432\u043B\u0435\u043D\u0438\u0435 \u043E \u0437\u0430\u043A\u0440\u044B\u0442\u0438\u0438 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"\u041D\u0435 \u0443\u043F\u043B\u0430\u0442\u0430 \u0433\u043E\u0434\u043E\u0432\u043E\u0439 \u043E\u043F\u043B\u0430\u0442\u044B \u0437\u0430 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0435 \u043C\u0435\u0441\u0442\u043E \u0432 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0441\u0440\u043E\u043A\u0438."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\u041E\u0442\u043A\u0430\u0437 \u043E\u0442 \u0443\u043F\u043B\u0430\u0442\u044B \u0433\u043E\u0434\u043E\u0432\u043E\u0439 \u043E\u043F\u043B\u0430\u0442\u044B \u0437\u0430 \u0431\u0440\u043E\u043A\u0435\u0440\u0441\u043A\u043E\u0435 \u043C\u0435\u0441\u0442\u043E."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"\u0420\u0435\u0448\u0435\u043D\u0438\u0435 \u0410\u0440\u0431\u0438\u0442\u0440\u0430\u0436\u043D\u043E\u0439 \u043A\u043E\u043C\u0438\u0441\u0441\u0438\u0438 \u0411\u0438\u0440\u0436\u0438."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"\u041F\u0440\u0435\u043A\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043B\u0438\u043A\u0432\u0438\u0434\u0430\u0446\u0438\u044F \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043B\u0438\u0446\u0430."})]})]})]})]})]}):null,e==="tm"?P(He,{children:[c(ce,{title:"Bir\u017Ea s\xF6wda d\xFCzg\xFCnleri"}),P("div",{className:"sub-page-content-wrapper",children:[c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"T\xFCrkmenistany\u0148 \u201CHaryt-\xE7ig mal bir\u017Ealary baradaky\u201D Kanunyna la\xFDyklykda, e\xFDe\xE7iligi\u0148 \xE4hli g\xF6rn\xFC\u015Find\xE4ki k\xE4rhanalar we guramalar, T\xFCrkmenistany\u0148 we be\xFDleki d\xF6wletleri\u0148 ra\xFDatlary dellal\xE7ylyk \xFDerini satyn almak \xFDa-da aly\u015F-\xE7aly\u015F dellallary bilen hyzmat \u015Fertnamasyny bagla\u015Fmak arkaly aly\u015F-\xE7aly\u015F s\xF6wdasyna gatna\u015Fyp bilerler."})}),P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Bir\u017Ea s\xF6wdasy a\u015Fakdaky \xFD\xF6relgeler esasynda gurnal\xFDar:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Ea s\xF6wdasyny\u0148 el\xFDeterliligi we mahabaty."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Ea auksionlarynda bahalary\u0148 emele gelmegini\u0148 azatlygy."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Ea amallaryny\u0148 me\xFDletin bagla\u015Fylmagy."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Ea s\xF6wdasyna gatna\u015Fyjylar \xFC\xE7in aly\u015F-\xE7aly\u015F s\xF6wdasyna gatna\u015Fmak \u015Fertlerini\u0148 de\u0148ligi."})]})]})]}),P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"Bir\u017Ea s\xF6wdasyna gatna\u015Fmak \xFC\xE7in birinjilik bilen dellal \xFDerini satyn almaly. Satyjy \xFDa-da alyjy h\xF6km\xFCnde T\xFCrkmenistany\u0148 we da\u015Fary \xFDurtlary\u0148 e\xFDe\xE7iligind\xE4ki \xE4hli \u015Fahslar we \xFDuridiki \u015Fahslar hereket edip bilerler."}),c("p",{children:"Haryt satyn almak we satmak \xFC\xE7in amallary amala a\u015Fyrmak \xFC\xE7in dellal\xE7ylyk \xFDerini satyn almadyk adamlar bir\u017Eany\u0148 dellallary bilen dellal\xE7ylyk hyzmatlary barada \u015Fertnama bagla\u015Fyp bilerler."})]}),P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Dellal\xE7ylyk \xFDerini hasaba almagy\u0148 tertibi"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Mali\xFDe g\xF6zeg\xE7iligi b\xF6l\xFCminde hasaba aly\u015F prosedurasyny tamamlamaly."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),P("div",{className:"sub-page-list-item-content",children:[c("h3",{className:"sub-page-list-item-text",children:"Resminamalar bukjasyny bermeli:"}),P("ul",{className:"sub-page-list-item-list",children:[c("li",{className:"sub-page-list-item-list-item",children:"TDH\xC7MB-ny\u0148 wekiline dellal\xE7ylyk \xFDerini hasaba almak we satyn almak barada \xFD\xFCz tutma haty"}),c("li",{className:"sub-page-list-item-list-item",children:"Kompani\xFDany\u0148 ba\u015Flygyny\u0148 m\xF6h\xFCri we goly bilen wekil (dellal) \xFC\xE7in ynan\xE7 haty"}),c("li",{className:"sub-page-list-item-list-item",children:"Umumy ynan\xE7 hatyny\u0148 g\xF6\xE7\xFCrmesi (kanunla\u015Fdyrylan)"}),c("li",{className:"sub-page-list-item-list-item",children:"Wekili\u0148 (dellaly\u0148) we kompani\xFDany\u0148 \xFDolba\u015F\xE7ysyny\u0148 pasportyny\u0148 g\xF6\xE7\xFCrmesi"}),c("li",{className:"sub-page-list-item-list-item",children:"Kompani\xFDany\u0148 ba\u015Flygyny\u0148 m\xF6h\xFCri we goly bilen tassyklanan bank maglumatlaryny\u0148 doldurylan g\xF6rn\xFC\u015Fi"})]})]})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),P("div",{className:"sub-page-list-item-content",children:[c("h3",{className:"sub-page-list-item-text",children:"TDH\xC7MB-ny\u0148 \xF6zara hasapla\u015Fyk b\xF6l\xFCminden hasap-faktura almaly we t\xF6legini ge\xE7irmeli:"}),c("h3",{className:"sub-page-list-item-text",children:"D\xF6wleti\u0148 \xFDa\u015Fa\xFDjysy bolmadyk \u015Fahslar \xFC\xE7in:"}),P("ul",{className:"sub-page-list-item-list",children:[c("li",{className:"sub-page-list-item-list-item",children:"\xDDe\u0148il senagat \xFC\xE7in bir \xFDyllyk dellal\xE7ylyk \xFDerini\u0148 bahasy 5000 AB\u015E dollary. Go\xFDum - 6000 AB\u015E dollary."}),c("li",{className:"sub-page-list-item-list-item",children:"\u0421Nebit pudagynda 1 \xFDyllyk dellal \xFDerini\u0148 bahasy 10,000 AB\u015E dollary. Go\xFDum - 50,000 AB\u015E dollary."})]}),c("h3",{className:"sub-page-list-item-text",children:"D\xF6wleti\u0148 \xFDa\u015Fa\xFDjysy bolan \u015Fahslar \xFC\xE7in:"}),c("ul",{className:"sub-page-list-item-list",children:c("li",{className:"sub-page-list-item-list-item",children:"1 \xFDyllyk dellal\xE7ylyk \xFDerini\u0148 bahasy 10,000 manat."})})]})]})]})]}),P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Dellaly\u0148 i\u015Fini bes etmegi\u0148 esaslary:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Dellal\xE7ylyk \xFDerini \xFDapmak \xFC\xE7in \xFD\xFCztutma."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Dellal\xE7ylyk \xFDeri \xFC\xE7in \xFDyllyk t\xF6legini wagtynda t\xF6lemezlik."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Dellal\xE7ylyk \xFDeri \xFC\xE7in \xFDyllyk t\xF6legi t\xF6lemekden \xFD\xFCz \xF6w\xFCrmek."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Bir\u017Eany\u0148 Arbitra\u017E Kommissi\xFDasyny\u0148 karary esasynda"})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"\xDDuridik \u015Fahsy\u0148 i\u015Fini\u0148 bes edilmegi \xFDa-da \xFDatyrylmagy."})]})]})]})]})]}):null,e==="en"?P(He,{children:[c(ce,{title:"Exchange trading Rules"}),P("div",{className:"sub-page-content-wrapper",children:[c("div",{className:"sub-page-text-wrapper",children:c("p",{children:'In accordance with the Law of Turkmenistan "On Commodity Exchanges", enterprises and organizations of all forms of ownership, citizens of Turkmenistan and other states can participate in exchange trading by purchasing a brokerage place or concluding a service contract with exchange brokers.'})}),P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Exchange trading is organized on the basis of the following principles:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Transparency and publicity of exchange trading."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Freedom of price formation at stock trading."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Voluntary conclusion of exchange transactions."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Equality of conditions of participation in exchange trading for participants of exchange trading."})]})]})]}),P("div",{className:"sub-page-text-wrapper",children:[c("p",{children:"To participate in stock trading, you need to purchase a brokerage place. Individuals and legal entities of Turkmenistan and foreign states of all forms of ownership can act as a seller or buyer."}),c("p",{children:"Persons who have not acquired a brokerage place in order to carry out transactions for the purchase and sale of goods can conclude a contract for the provision of brokerage services with brokers of the Exchange."})]}),P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"To register a brokerage place, you must:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Go through the registration procedure in the Financial Monitoring Department."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),P("div",{className:"sub-page-list-item-content",children:[c("h3",{className:"sub-page-list-item-text",children:"Provide a package of documents:"}),P("ul",{className:"sub-page-list-item-list",children:[c("li",{className:"sub-page-list-item-list-item",children:"letter of appeal addressed to the representative of the SCRMET about registration and purchase of a brokerage place;"}),c("li",{className:"sub-page-list-item-list-item",children:"power of attorney for a representative (broker) with the original seal and signature of the head of the company;"}),c("li",{className:"sub-page-list-item-list-item",children:"a copy of the general power of attorney (legalized);"}),c("li",{className:"sub-page-list-item-list-item",children:"a copy of the passport of the representative (broker) and the head of the company;"}),c("li",{className:"sub-page-list-item-list-item",children:"a completed form of bank details, certified with the original seal and signature of the head of the company;"}),c("li",{className:"sub-page-list-item-list-item",children:"a copy of the constituent documents (charter, register);"}),c("li",{className:"sub-page-list-item-list-item",children:"one 3x4 broker photo;"}),c("li",{className:"sub-page-list-item-list-item",children:'a completed "Commitment" form, stamped and signed by the head of the company.'})]})]})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),P("div",{className:"sub-page-list-item-content",children:[c("h3",{className:"sub-page-list-item-text",children:'Get invoices from the SCRMET "Mutual Settlements" department and pay:'}),c("h3",{className:"sub-page-list-item-text",children:"For non-residents:"}),P("ul",{className:"sub-page-list-item-list",children:[c("li",{className:"sub-page-list-item-list-item",children:"The cost of a brokerage place for light industry for a period of 1 year is $ 5,000. The deposit is $6,000."}),c("li",{className:"sub-page-list-item-list-item",children:"The cost of a brokerage place for the oil industry for a period of 1 year is $ 10,000. The deposit is 50,000 US dollars."})]}),c("h3",{className:"sub-page-list-item-text",children:"For residents:"}),c("ul",{className:"sub-page-list-item-list",children:c("li",{className:"sub-page-list-item-list-item",children:"The cost of a brokerage place for a period of 1 year is 10,000 manats."})})]})]})]})]}),P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Grounds for termination of the broker's activity:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Application for the closure of the brokerage place."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Failure to pay the annual fee for the brokerage place within the established time limits."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Failure to pay the annual fee for the brokerage place within the established time limits."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"The decision of the Arbitration Commission of the Exchange."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"Termination or liquidation of the activity of a legal entity."})]})]})]})]})]}):null,P("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:e==="ru"?"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u0434\u043B\u044F \u0441\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u044F":e==="tm"?"G\xF6\xE7\xFCrip almak \xFC\xE7in resminamalar":e==="en"?"Documents for download":null}),c("div",{className:"documents-wrapper",children:c("div",{className:"documents-links-wrapper",children:t?t.data.map(r=>r.page==="\u0411\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438"&&r.title!="-"?c(Ta,{title:r.title,link:r.file},r.id):null):""})})]})]})})})},pk=({lang:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/documents",t,n).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),c("main",{children:c("div",{className:"container",children:P("div",{className:"sub-page-wrapper",children:[e==="ru"?P(He,{children:[c(ce,{title:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432"}),c("div",{className:"sub-page-content-wrapper",children:P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432 \u043D\u0430 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0439 \u0442\u043E\u0432\u0430\u0440\u043D\u043E-\u0441\u044B\u0440\u044C\u0435\u0432\u043E\u0439 \u0431\u0438\u0440\u0436\u0435 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u043E\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043F\u043E \u043F\u0440\u0438\u0432\u0435\u0434\u0435\u043D\u043D\u043E\u0439 \u0441\u0445\u0435\u043C\u0435:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u041F\u0440\u0438\u0435\u043C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u0441 9.00 \u0434\u043E 17.00."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"\u041E\u0442\u0434\u0435\u043B \u0430\u043D\u0430\u043B\u0438\u0437\u0430 \u0438 \u0440\u044B\u043D\u043A\u0430 \u0446\u0435\u043D."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043F\u0440\u0430\u0432\u0430 \u0438 \u043A\u0430\u0434\u0440\u043E\u0432."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0439 \u043E\u0442\u0434\u0435\u043B."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"\u041E\u0442\u0434\u0435\u043B \u0432\u0437\u0430\u0438\u043C\u043E\u0440\u0430\u0441\u0447\u0435\u0442\u0430."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"6"}),c("h3",{className:"sub-page-list-item-text",children:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u043D\u0430 \u043F\u043E\u0434\u043F\u0438\u0441\u044C \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044F\u043C."})]})]})]})}),c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"\u0422\u0430\u043A\u0436\u0435 \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u0438 \u0431\u0438\u0440\u0436\u0438 \u043C\u043E\u0433\u0443\u0442 \u043E\u0442\u0441\u043B\u0435\u0436\u0438\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0446\u0435\u0441\u0441 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u043E\u0432 \u043E\u043D\u043B\u0430\u0439\u043D \u043D\u0430 \u0441\u0430\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u041B\u0438\u0447\u043D\u043E\u0433\u043E \u043A\u0430\u0431\u0438\u043D\u0435\u0442\u0430. \u0414\u043B\u044F \u044D\u0442\u043E\u0433\u043E \u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0435, \u043F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043B \u0438 \u0441\u043B\u0435\u0434\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043B\u044C\u043D\u0435\u0439\u0448\u0438\u043C \u0443\u043A\u0430\u0437\u0430\u043D\u0438\u044F\u043C. \u0420\u0430\u0431\u043E\u0442\u0430 \u043D\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438\u0434\u0435\u043D\u0442\u0438\u0447\u043D\u0430 \u0441 \u0440\u0430\u0431\u043E\u0442\u043E\u0439 \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B\u044B \u0432 \u0437\u0434\u0430\u043D\u0438\u0438 \u0431\u0438\u0440\u0436\u0438."})}),c("div",{className:"sub-page-content-wrapper",children:P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"\u041F\u0435\u0440\u0435\u0447\u0435\u043D\u044C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0445 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u0434\u043B\u044F \u0432\u044B\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u044F \u0442\u043E\u0432\u0430\u0440\u043E\u0432 \u043D\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"\u041F\u0438\u0441\u044C\u043C\u043E-\u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u0441 \u043F\u0440\u043E\u0441\u044C\u0431\u043E\u0439 \u043E \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0438 \u0432\u044B\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0442\u043E\u0432\u0430\u0440 \u043D\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"\u041F\u0438\u0441\u044C\u043C\u043E-\u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u043E \u043F\u0440\u043E\u0434\u0430\u0436\u0435 \u0442\u043E\u0432\u0430\u0440\u0430, \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u043E\u0435 \u0432 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u043E\u0439 \u0444\u043E\u0440\u043C\u0435."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"\u0421\u043F\u0435\u0446\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0442\u043E\u0432\u0430\u0440\u0430, \u0441\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u043D\u0430\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0413\u0422\u0421\u0411\u0422."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E\u0449\u0438\u0435 \u043F\u0440\u0430\u0432\u043E \u0437\u0430\u043D\u0438\u043C\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u043E\u0439 \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C\u044E."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E\u0449\u0438\u0435 \u043F\u0440\u043E\u0438\u0441\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u0435 \u0442\u043E\u0432\u0430\u0440\u0430."})]})]})]})})]}):null,e==="tm"?P(He,{children:[c(ce,{title:"\u015Eertnamalary hasaba almak"}),c("div",{className:"sub-page-content-wrapper",children:P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"T\xFCrkmenistany\u0148 D\xF6wlet haryt we \xE7ig mal bir\u017Easynda \u015Fertnamalary hasaba aly\u015F a\u015Fakdaky tertibe la\xFDyklykda amala a\u015Fyryl\xFDar:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"9:00-dan 17:00-a \xE7enli resminamalary kabul etmek."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Der\u0148ew we bahalary anyklamak b\xF6l\xFCmi."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Hukuk we i\u015Fg\xE4rleri dolandyrmak."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Hasaba aly\u015F b\xF6l\xFCmi."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"\xD6zara hasapla\u015Fyk b\xF6l\xFCmi."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"6"}),c("h3",{className:"sub-page-list-item-text",children:"Gol \xE7ekmek \xFC\xE7in dolandyryjylara ge\xE7irmek."})]})]})]})}),c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"\u015Ee\xFDle hem, bir\u017Ea gatna\u015Fyjylary \u015Eahsy otagy ulanyp, internet sahypalarynda \u015Fertnamalary hasaba almak prosesini yzarlap bilerler. Munu\u0148 \xFC\xE7in di\u0148e ulgamda hasaba alynyp, degi\u015Fli b\xF6l\xFCme ge\xE7meli we indiki g\xF6rkezmelere e\xFDermeli. Internet sahypasynda i\u015Flemek, aly\u015F-\xE7aly\u015F binasyndaky terminallarynda i\u015Flemek bilen de\u0148dir."})}),c("div",{className:"sub-page-content-wrapper",children:P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Harytlary aly\u015F-\xE7aly\u015F auksionlaryna \xFDerle\u015Fdirmek \xFC\xE7in zerur resminamalary\u0148 sanawy:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Harytlary aly\u015F-\xE7aly\u015F auksionlaryna go\xFDmak \xFC\xE7in rugsat soramak bilen \xFD\xFCz tutma haty."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Harytlary satmak \xFC\xE7in bellenen g\xF6rn\xFC\u015Fde doldurylan hat."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"TDH\xC7MB-i\u0148 talaplaryna la\xFDyklykda d\xFCz\xFClen harytlary\u0148 spesifikasi\xFDasy."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Teleke\xE7ilik i\u015Fi bilen me\u015Fgullanmak hukugyny tassykla\xFDan resminamalar."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"Harytlary\u0148 gelip \xE7yky\u015Fyny tassykla\xFDan resminamalar."})]})]})]})})]}):null,e==="en"?P(He,{children:[c(ce,{title:"Registration of contracts"}),c("div",{className:"sub-page-content-wrapper",children:P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"Registration of contracts at the The State Commodity and Raw Materials Exchange of Turkmenistan is carried out according to the following scheme:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"Acceptance of documents from 9.00 to 17.00."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"Department of Analysis and Securities market."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Management of Law and Personnel."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Registration Department."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"Mutual Settlements Department."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"6"}),c("h3",{className:"sub-page-list-item-text",children:"Transfer to managers for signature."})]})]})]})}),c("div",{className:"sub-page-text-wrapper",children:c("p",{children:"Also, exchange participants can track the process of registering contracts online on the website using their Personal Account. To do this, it is enough to register in the system, go to the appropriate section and follow further instructions. Working on the site is identical to working through terminals in the exchange building."})}),c("div",{className:"sub-page-content-wrapper",children:P("div",{className:"sub-page-list-wrapper",children:[c("h2",{className:"sub-page-title",children:"The list of necessary documents for placing goods on the stock exchange:"}),P("div",{className:"sub-page-list",children:[P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"1"}),c("h3",{className:"sub-page-list-item-text",children:"A letter of request for permission to put the goods on the stock exchange."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"2"}),c("h3",{className:"sub-page-list-item-text",children:"A letter of appeal for the sale of goods, filled out in the prescribed form."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"3"}),c("h3",{className:"sub-page-list-item-text",children:"Product specification, compiled in accordance with the requirements of the SCRMET."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"4"}),c("h3",{className:"sub-page-list-item-text",children:"Documents confirming the right to engage in entrepreneurial activity."})]}),P("div",{className:"sub-page-list-item",children:[c("div",{className:"sub-page-list-num",children:"5"}),c("h3",{className:"sub-page-list-item-text",children:"Documents confirming the origin of the goods."})]})]})]})})]}):null,P("div",{className:"sub-page-title-text",children:[c("h2",{className:"sub-page-title",children:e==="ru"?"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u0434\u043B\u044F \u0441\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u044F":e==="tm"?"G\xF6\xE7\xFCrip almak \xFC\xE7in resminamalar":e==="en"?"Documents for download":null}),c("div",{className:"documents-wrapper",children:c("div",{className:"documents-links-wrapper",children:t?t.data.map(r=>r.page==="\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432"&&r.title!="-"?c(Ta,{title:r.title,link:r.file},r.id):null):""})})]})]})})})};var fg={};function mk(e){if(!e||typeof window>"u")return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}Object.defineProperty(fg,"__esModule",{value:!0});var Qt=j.exports;function gk(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Si=gk(Qt);/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -158,4 +158,4 @@ PERFORMANCE OF THIS SOFTWARE. 100% { transform: translateX(-100%); } -}`);var yk=function(e){var t,n,r,i,u=e.style,s=u===void 0?{}:u,a=e.className,o=a===void 0?"":a,l=e.play,d=l===void 0?!0:l,p=e.pauseOnHover,g=p===void 0?!1:p,v=e.pauseOnClick,b=v===void 0?!1:v,k=e.direction,O=k===void 0?"left":k,x=e.speed,_=x===void 0?20:x,w=e.delay,T=w===void 0?0:w,D=e.loop,P=D===void 0?0:D,y=e.gradient,f=y===void 0?!0:y,m=e.gradientColor,h=m===void 0?[255,255,255]:m,E=e.gradientWidth,C=E===void 0?200:E,B=e.onFinish,F=e.onCycleComplete,M=e.children,I=Jt.useState(0),L=I[0],A=I[1],R=Jt.useState(0),N=R[0],z=R[1],U=Jt.useState(!1),W=U[0],q=U[1],X=Jt.useRef(null),Q=Jt.useRef(null);Jt.useEffect(function(){if(!!W){var Se=function(){Q.current&&X.current&&(A(X.current.getBoundingClientRect().width),z(Q.current.getBoundingClientRect().width))};return Se(),window.addEventListener("resize",Se),function(){window.removeEventListener("resize",Se)}}},[W]),Jt.useEffect(function(){q(!0)},[]);var G="rgba("+h[0]+", "+h[1]+", "+h[2],we=NS("div",{className:"ticker-block",children:[c("h3",{className:"ticker-title",children:e}),S("div",{className:"ticker-content",children:[S("div",{className:"ticker-price",children:[n," ",i]}),S("div",{className:"ticker-status",children:[c("div",{className:"ticker-arrow",children:c("img",{src:n>=r?hm:pm})}),c("span",{className:`ticker-status-title ${n>=r?"green":"red"}`,children:t})]})]})]}),xk=40,Ek=()=>{const[e,t]=j.exports.useState();return j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/tradings",e,t).get()},[]),c(vk,{className:"ticker",gradient:!1,speed:xk,children:c("div",{className:"ticker-wrapper",children:e?e.data.map(n=>c(bk,{title:n.title,change:n.price_change,price:n.price,oldPrice:n.old_price,currency:n.currency},n.id)):""})})},Gf="/assets/phone.827f98ca.svg",_k="/assets/fax.75231e49.svg",wk="/assets/mail.ecbe6887.svg",Dk=({title:e,firstPosition:t,secondPosition:n,firstPhone:r,secondPhone:i,firstFax:u,firstMail:s})=>S("div",{className:"contacts-card",children:[c("h2",{className:"contacts-card-title",children:e}),S("div",{className:"contacts-card-pos-wrapper",children:[t&&r?S("div",{className:"contacts-card-pos",children:[c("h3",{className:"contacts-card-pos-title",children:t}),S("div",{className:"contacts-card-pos-contact",children:[c("div",{className:"contacts-card-pos-contact-icon",children:c("img",{src:Gf,alt:"phone"})}),c("h4",{className:"contacts-card-pos-contact-title",children:r})]}),u?S("div",{className:"contacts-card-pos-contact",children:[c("div",{className:"contacts-card-pos-contact-icon",children:c("img",{src:_k,alt:"fax"})}),c("h4",{className:"contacts-card-pos-contact-title",children:r})]}):null,s?S("div",{className:"contacts-card-pos-contact",children:[c("div",{className:"contacts-card-pos-contact-icon",children:c("img",{src:wk,alt:"mail"})}),c("h4",{className:"contacts-card-pos-contact-title",children:s})]}):null]}):null,n&&i?S("div",{className:"contacts-card-pos",children:[c("h3",{className:"contacts-card-pos-title",children:n}),S("div",{className:"contacts-card-pos-contact",children:[c("div",{className:"contacts-card-pos-contact-icon",children:c("img",{src:Gf,alt:"phone"})}),c("h4",{className:"contacts-card-pos-contact-title",children:i})]})]}):null]})]}),kk=({lang:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/contacts",t,n).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),c("main",{children:c("div",{className:"container",children:S("div",{className:"sub-page-wrapper sub-page-full",children:[c(ce,{title:"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u044B"}),c("div",{className:"contacts-wrapper",children:t?t.data.map(r=>{var i,u,s,a;return c(Dk,{title:r.name,firstPosition:r.contacts[0].title,firstPhone:r.contacts[0].phone,firstFax:r.contacts[0].fax,firstMail:r.contacts[0].mail,secondPosition:(i=r.contacts[1])!=null&&i.title?(u=r.contacts[1])==null?void 0:u.title:null,secondPhone:(s=r.contacts[1])!=null&&s.phone?(a=r.contacts[1])==null?void 0:a.phone:null},r.id)}):null})]})})})},Sk=({lang:e,setPostId:t,postsData:n,setPostsData:r})=>{const[i,u]=j.exports.useState("http://tmex.gov.tm:8765/api/news");return j.exports.useEffect(()=>{new Be(i,n,r).get({"X-Localization":e})},[e,i]),j.exports.useEffect(()=>{setTimeout(()=>{window.scrollTo(0,0)},300)},[i]),c("main",{children:c("div",{className:"container",children:S("div",{className:"sub-page-wrapper sub-page-full",children:[c(ce,{title:`${e==="ru"?"\u041D\u043E\u0432\u043E\u0441\u0442\u0438":e==="tm"?"Habarlar":e==="en"?"News":null}`}),c("div",{className:"news-page-wrapper",children:n?n.data.map(s=>c(b3,{title:s.title,shortDes:s.short_description,description:s.description,date:z0(s.date),image:s.image,id:s.id,setPostId:t,lang:e},s.id)):null}),n?S("div",{className:"pagination",children:[c("button",{disabled:!n.meta.pagination.links.previous,className:"arr-left pagination-arrow",onClick:()=>{n&&n.meta.pagination.links.previous&&u(n.meta.pagination.links.previous)},children:c(id,{className:"arr-pagination-svg"})}),c("div",{className:"pagination-count",children:n?`${n.meta.pagination.current_page} / ${n.meta.pagination.total_pages}`:"1 / 1"}),c("button",{disabled:!n.meta.pagination.links.next,className:"arr-right pagination-arrow",onClick:()=>{n&&n.meta.pagination.links.next&&u(n.meta.pagination.links.next)},children:c(id,{className:"arr-pagination-svg"})})]}):null]})})})},Pk=({title:e,date:t,setPostId:n,id:r})=>S(K,{to:`/post/${r}`,className:"latest-new",onClick:()=>n(r),children:[c("h3",{className:"latest-new-date",children:t}),c("h2",{className:"latest-new-title",children:e})]}),Ck=({lang:e,setPostId:t,postsData:n,setPostsData:r})=>{const{id:i}=R1(),u=j.exports.useRef(!0);return j.exports.useEffect(()=>{n||new Be("http://tmex.gov.tm:8765/api/news",n,r).get({"X-localization":e})},[n]),j.exports.useEffect(()=>{if(u.current){u.current=!1;return}new Be("http://tmex.gov.tm:8765/api/news",n,r).get({"X-localization":e})},[e]),c("div",{className:"container",children:S("div",{className:"post-page-wrapper",children:[c("main",{children:n?n.data.map(s=>s.id===parseInt(i)?S("div",{className:"post-page-main-wrapper",children:[S("div",{className:"post-page-header",children:[c("h1",{className:"post-page-title",children:s.title}),c("h2",{className:"post-page-main-date",children:s.data})]}),c("div",{className:"post-page-img",children:c("img",{src:s.image,alt:"img"})}),c("div",{className:"post-page-text",children:c("p",{className:"post-page-text-item",children:s.description})})]},s.id):null):null}),c("aside",{children:S("div",{className:"post-page-latest-wrapper",children:[c("h2",{className:"post-page-latest-title",children:e==="ru"?"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 \u043D\u043E\u0432\u043E\u0441\u0442\u0438":e==="tm"?"So\u0148ky habarlar":e==="en"?"The latest news":null}),c("div",{className:"post-page-latest-news",children:n?n.data.map((s,a)=>a<=6?c(Pk,{title:s.title,setPostId:t,id:s.id,date:z0(s.date).split(" ")[0].replace("-",".").replace("-",".")},s.id):null):null})]})})]})})},wr=({text:e,active:t,onClick:n})=>c("div",{className:`tab-dark ${t?"active-tab":null}`,onClick:n,children:c("span",{children:e})}),Qf=({title:e,price:t})=>S("div",{className:"tarif-service-item",children:[c("h2",{className:"tarif-service-text",children:e}),S("h2",{className:"tarif-service-price",children:[t," "]})]}),Ok=({lang:e})=>{const[t,n]=j.exports.useState(1),[r,i]=j.exports.useState();return j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/tariffs",r,i).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),c("main",{children:c("div",{className:"container",children:S("div",{className:"sub-page-wrapper sub-page-full",children:[e==="ru"?c(ce,{title:"\u0422\u0430\u0440\u0438\u0444\u044B \u0438 \u0441\u0431\u043E\u0440\u044B"}):e==="tm"?c(ce,{title:"Nyrhlar we \xFDygymlar"}):e==="en"?c(ce,{title:"Tariffs and fees"}):null,c("div",{className:"tarif-wrapper",children:c("div",{className:"tarif-wrapper-top",children:e==="ru"?S(He,{children:[c(wr,{text:"\u0414\u043B\u044F \u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u043E\u0432",active:t===1,onClick:()=>n(1)}),c(wr,{text:"\u0414\u043B\u044F \u043D\u0435 \u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u043E\u0432",active:t===2,onClick:()=>n(2)})]}):e==="tm"?S(He,{children:[c(wr,{text:"\xDDerli \xFDa\u015Fa\xFDjylar \xFC\xE7in",active:t===1,onClick:()=>n(1)}),c(wr,{text:"\xDDerli bolmadyk \xFDa\u015Fa\xFDjylar \xFC\xE7in",active:t===2,onClick:()=>n(2)})]}):e==="en"?S(He,{children:[c(wr,{text:"For residents",active:t===1,onClick:()=>n(1)}),c(wr,{text:"For non-residents",active:t===2,onClick:()=>n(2)})]}):null})}),t===1?c("div",{className:"tarif-table",children:r?r.data.map(u=>u.type==="resident"&&u.title!="-"?c(Qf,{title:u.title,price:u.prices.map(s=>s.price+" ")}):null):null}):null,t===2?c("div",{className:"tarif-table",children:r?r.data.map(u=>u.type==="non_resident"&&u.title!="-"?c(Qf,{title:u.title,price:u.prices.map(s=>s.price+" ")}):null):null}):null]})})})},Jf=({title:e,onClick:t,active:n})=>c("h2",{className:`multimedia-tab ${n?"m-tab-active":null}`,onClick:t,children:e}),Fk=({img:e})=>c("div",{className:"gallery-item",children:c("img",{src:e,alt:"image"})}),Nk=({imageTabIndex:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{e&&new Be(`http://tmex.gov.tm:8765/api/medias/${e}`,t,n).get()},[e]),c("div",{className:"gallery-wrapper",children:c("div",{className:"gallery",children:t?t.data.map(r=>c(Fk,{img:r.media},r.id)):null})})},Ak=({videoTabIndex:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{e&&new Be(`http://tmex.gov.tm:8765/api/medias/${e}`,t,n).get()},[e]),c("div",{className:"videos-wrapper",children:t?t.data.map(r=>c(Y3,{videoUrl:r.media},r.id)):null})},Rk=({lang:e})=>{const[t,n]=j.exports.useState(0),[r,i]=j.exports.useState(),[u,s]=j.exports.useState(0),[a,o]=j.exports.useState(),[l,d]=j.exports.useState();j.exports.useEffect(()=>{window.scrollTo(0,0)},[]),j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/media/categories",l,d).get({"X-Localization":e})},[e]),j.exports.useEffect(()=>{l&&i(l.data[0].id)},[l]);const p=(v,b)=>{n(v),i(b),s(null)},g=(v,b)=>{s(v),o(b),n(null)};return c("main",{children:c("div",{className:"container",children:S("div",{className:"sub-page-wrapper sub-page-full",children:[c(ce,{title:`${e==="ru"?"\u041C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430":e==="tm"?"Multimedi\xFDa":e==="en"?"Multimedia":null}`}),S("div",{className:"multimedia-wrapper",children:[S("nav",{className:"multimedia-nav",children:[c("div",{className:"multimedia-top-gallery",children:l?l.data.map((v,b)=>v.type==="image"?c(Jf,{title:v.title,active:t===b,onClick:()=>p(b,v.id)},v.id):null):null}),c("div",{className:"multimedia-top-video",children:l?l.data.map((v,b)=>v.type==="video"?c(Jf,{title:v.title,active:u===b,onClick:()=>g(b,v.id)},v.id):null):null})]}),u?c(Ak,{videoTabIndex:a}):c(Nk,{imageTabIndex:r})]})]})})})};class Tk{getLang(){return localStorage.getItem("lastLanguage")?localStorage.getItem("lastLanguage"):"ru"}saveLang(t){localStorage.setItem("lastLanguage",t)}}const Mk=()=>{const e=new Tk,[t,n]=j.exports.useState(e.getLang()),[r,i]=j.exports.useState(),[u,s]=j.exports.useState();return j.exports.useEffect(()=>{e.saveLang(t)},[t]),S("div",{className:"App",children:[c(Ek,{}),c(G1,{lang:t,setLang:n}),S(V1,{children:[c(yt,{index:!0,element:c(lk,{lang:t,setPostId:i})}),c(yt,{path:"/gtsbt",element:c(ck,{lang:t})}),c(yt,{path:"/norm",element:c(fk,{lang:t})}),c(yt,{path:"/news",element:c(Sk,{lang:t,setPostId:i,postId:r,postsData:u,setPostsData:s})}),c(yt,{path:"/multimedia",element:c(Rk,{lang:t})}),c(yt,{path:"/contacts",element:c(kk,{lang:t})}),c(yt,{path:"/trade",element:c(hk,{lang:t})}),c(yt,{path:"/fin",element:c(dk,{lang:t})}),c(yt,{path:"/register",element:c(pk,{lang:t})}),c(yt,{path:"/tarif",element:c(Ok,{lang:t})}),c(yt,{path:"/post/:id",element:c(Ck,{lang:t,setPostId:i,postsData:u,setPostsData:s})})]}),c(Q1,{lang:t})]})},Lk=document.getElementById("root"),Bk=l3(Lk);Bk.render(c(j.exports.StrictMode,{children:c(Y1,{children:c(Mk,{})})})); +}`);var yk=function(e){var t,n,r,i,u=e.style,s=u===void 0?{}:u,a=e.className,o=a===void 0?"":a,l=e.play,d=l===void 0?!0:l,p=e.pauseOnHover,g=p===void 0?!1:p,v=e.pauseOnClick,b=v===void 0?!1:v,k=e.direction,O=k===void 0?"left":k,x=e.speed,_=x===void 0?20:x,w=e.delay,T=w===void 0?0:w,D=e.loop,S=D===void 0?0:D,y=e.gradient,f=y===void 0?!0:y,m=e.gradientColor,h=m===void 0?[255,255,255]:m,E=e.gradientWidth,C=E===void 0?200:E,B=e.onFinish,F=e.onCycleComplete,M=e.children,I=Qt.useState(0),L=I[0],A=I[1],R=Qt.useState(0),N=R[0],z=R[1],U=Qt.useState(!1),W=U[0],q=U[1],X=Qt.useRef(null),Q=Qt.useRef(null);Qt.useEffect(function(){if(!!W){var Se=function(){Q.current&&X.current&&(A(X.current.getBoundingClientRect().width),z(Q.current.getBoundingClientRect().width))};return Se(),window.addEventListener("resize",Se),function(){window.removeEventListener("resize",Se)}}},[W]),Qt.useEffect(function(){q(!0)},[]);var G="rgba("+h[0]+", "+h[1]+", "+h[2],we=NP("div",{className:"ticker-block",children:[c("h3",{className:"ticker-title",children:e}),P("div",{className:"ticker-content",children:[P("div",{className:"ticker-price",children:[n," ",i]}),P("div",{className:"ticker-status",children:[c("div",{className:"ticker-arrow",children:c("img",{src:n>=r?hm:pm})}),c("span",{className:`ticker-status-title ${n>=r?"green":"red"}`,children:t})]})]})]}),xk=20,Ek=()=>{const[e,t]=j.exports.useState();return j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/tradings",e,t).get()},[]),c(vk,{className:"ticker",gradient:!1,speed:xk,children:c("div",{className:"ticker-wrapper",children:e?e.data.map(n=>c(bk,{title:n.title,change:n.price_change,price:n.price,oldPrice:n.old_price,currency:n.currency},n.id)):""})})},Gf="/assets/phone.827f98ca.svg",_k="/assets/fax.75231e49.svg",wk="/assets/mail.ecbe6887.svg",Dk=({title:e,firstPosition:t,secondPosition:n,firstPhone:r,secondPhone:i,firstFax:u,firstMail:s})=>P("div",{className:"contacts-card",children:[c("h2",{className:"contacts-card-title",children:e}),P("div",{className:"contacts-card-pos-wrapper",children:[t&&r?P("div",{className:"contacts-card-pos",children:[c("h3",{className:"contacts-card-pos-title",children:t}),P("div",{className:"contacts-card-pos-contact",children:[c("div",{className:"contacts-card-pos-contact-icon",children:c("img",{src:Gf,alt:"phone"})}),c("h4",{className:"contacts-card-pos-contact-title",children:r})]}),u?P("div",{className:"contacts-card-pos-contact",children:[c("div",{className:"contacts-card-pos-contact-icon",children:c("img",{src:_k,alt:"fax"})}),c("h4",{className:"contacts-card-pos-contact-title",children:r})]}):null,s?P("div",{className:"contacts-card-pos-contact",children:[c("div",{className:"contacts-card-pos-contact-icon",children:c("img",{src:wk,alt:"mail"})}),c("h4",{className:"contacts-card-pos-contact-title",children:s})]}):null]}):null,n&&i?P("div",{className:"contacts-card-pos",children:[c("h3",{className:"contacts-card-pos-title",children:n}),P("div",{className:"contacts-card-pos-contact",children:[c("div",{className:"contacts-card-pos-contact-icon",children:c("img",{src:Gf,alt:"phone"})}),c("h4",{className:"contacts-card-pos-contact-title",children:i})]})]}):null]})]}),kk=({lang:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/contacts",t,n).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),c("main",{children:c("div",{className:"container",children:P("div",{className:"sub-page-wrapper sub-page-full",children:[c(ce,{title:"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u044B"}),c("div",{className:"contacts-wrapper",children:t?t.data.map(r=>{var i,u,s,a;return c(Dk,{title:r.name,firstPosition:r.contacts[0].title,firstPhone:r.contacts[0].phone,firstFax:r.contacts[0].fax,firstMail:r.contacts[0].mail,secondPosition:(i=r.contacts[1])!=null&&i.title?(u=r.contacts[1])==null?void 0:u.title:null,secondPhone:(s=r.contacts[1])!=null&&s.phone?(a=r.contacts[1])==null?void 0:a.phone:null},r.id)}):null})]})})})},Sk=({lang:e,setPostId:t,postsData:n,setPostsData:r})=>{const[i,u]=j.exports.useState("http://tmex.gov.tm:8765/api/news");return j.exports.useEffect(()=>{new Be(i,n,r).get({"X-Localization":e})},[e,i]),j.exports.useEffect(()=>{setTimeout(()=>{window.scrollTo(0,0)},300)},[i]),c("main",{children:c("div",{className:"container",children:P("div",{className:"sub-page-wrapper sub-page-full",children:[c(ce,{title:`${e==="ru"?"\u041D\u043E\u0432\u043E\u0441\u0442\u0438":e==="tm"?"Habarlar":e==="en"?"News":null}`}),c("div",{className:"news-page-wrapper",children:n?n.data.map(s=>c(b3,{title:s.title,shortDes:s.short_description,description:s.description,date:z0(s.date),image:s.image,id:s.id,setPostId:t,lang:e},s.id)):null}),n?P("div",{className:"pagination",children:[c("button",{disabled:!n.meta.pagination.links.previous,className:"arr-left pagination-arrow",onClick:()=>{n&&n.meta.pagination.links.previous&&u(n.meta.pagination.links.previous)},children:c(id,{className:"arr-pagination-svg"})}),c("div",{className:"pagination-count",children:n?`${n.meta.pagination.current_page} / ${n.meta.pagination.total_pages}`:"1 / 1"}),c("button",{disabled:!n.meta.pagination.links.next,className:"arr-right pagination-arrow",onClick:()=>{n&&n.meta.pagination.links.next&&u(n.meta.pagination.links.next)},children:c(id,{className:"arr-pagination-svg"})})]}):null]})})})},Pk=({title:e,date:t,setPostId:n,id:r})=>P(K,{to:`/post/${r}`,className:"latest-new",onClick:()=>n(r),children:[c("h3",{className:"latest-new-date",children:t}),c("h2",{className:"latest-new-title",children:e})]}),Ck=({lang:e,setPostId:t,postsData:n,setPostsData:r})=>{const{id:i}=R1(),u=j.exports.useRef(!0);return j.exports.useEffect(()=>{n||new Be("http://tmex.gov.tm:8765/api/news",n,r).get({"X-localization":e})},[n]),j.exports.useEffect(()=>{if(u.current){u.current=!1;return}new Be("http://tmex.gov.tm:8765/api/news",n,r).get({"X-localization":e})},[e]),c("div",{className:"container",children:P("div",{className:"post-page-wrapper",children:[c("main",{children:n?n.data.map(s=>s.id===parseInt(i)?P("div",{className:"post-page-main-wrapper",children:[P("div",{className:"post-page-header",children:[c("h1",{className:"post-page-title",children:s.title}),c("h2",{className:"post-page-main-date",children:s.data})]}),c("div",{className:"post-page-img",children:c("img",{src:s.image,alt:"img"})}),c("div",{className:"post-page-text",children:c("p",{className:"post-page-text-item",children:s.description})})]},s.id):null):null}),c("aside",{children:P("div",{className:"post-page-latest-wrapper",children:[c("h2",{className:"post-page-latest-title",children:e==="ru"?"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 \u043D\u043E\u0432\u043E\u0441\u0442\u0438":e==="tm"?"So\u0148ky habarlar":e==="en"?"The latest news":null}),c("div",{className:"post-page-latest-news",children:n?n.data.map((s,a)=>a<=6?c(Pk,{title:s.title,setPostId:t,id:s.id,date:z0(s.date).split(" ")[0].replace("-",".").replace("-",".")},s.id):null):null})]})})]})})},wr=({text:e,active:t,onClick:n})=>c("div",{className:`tab-dark ${t?"active-tab":null}`,onClick:n,children:c("span",{children:e})}),Qf=({title:e,price:t})=>P("div",{className:"tarif-service-item",children:[c("h2",{className:"tarif-service-text",children:e}),P("h2",{className:"tarif-service-price",children:[t," "]})]}),Ok=({lang:e})=>{const[t,n]=j.exports.useState(1),[r,i]=j.exports.useState();return j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/tariffs",r,i).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),c("main",{children:c("div",{className:"container",children:P("div",{className:"sub-page-wrapper sub-page-full",children:[e==="ru"?c(ce,{title:"\u0422\u0430\u0440\u0438\u0444\u044B \u0438 \u0441\u0431\u043E\u0440\u044B"}):e==="tm"?c(ce,{title:"Nyrhlar we \xFDygymlar"}):e==="en"?c(ce,{title:"Tariffs and fees"}):null,c("div",{className:"tarif-wrapper",children:c("div",{className:"tarif-wrapper-top",children:e==="ru"?P(He,{children:[c(wr,{text:"\u0414\u043B\u044F \u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u043E\u0432",active:t===1,onClick:()=>n(1)}),c(wr,{text:"\u0414\u043B\u044F \u043D\u0435 \u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u043E\u0432",active:t===2,onClick:()=>n(2)})]}):e==="tm"?P(He,{children:[c(wr,{text:"\xDDerli \xFDa\u015Fa\xFDjylar \xFC\xE7in",active:t===1,onClick:()=>n(1)}),c(wr,{text:"\xDDerli bolmadyk \xFDa\u015Fa\xFDjylar \xFC\xE7in",active:t===2,onClick:()=>n(2)})]}):e==="en"?P(He,{children:[c(wr,{text:"For residents",active:t===1,onClick:()=>n(1)}),c(wr,{text:"For non-residents",active:t===2,onClick:()=>n(2)})]}):null})}),t===1?c("div",{className:"tarif-table",children:r?r.data.map(u=>u.type==="resident"&&u.title!="-"?c(Qf,{title:u.title,price:u.prices.map(s=>s.price+" ")}):null):null}):null,t===2?c("div",{className:"tarif-table",children:r?r.data.map(u=>u.type==="non_resident"&&u.title!="-"?c(Qf,{title:u.title,price:u.prices.map(s=>s.price+" ")}):null):null}):null]})})})},Jf=({title:e,onClick:t,active:n})=>c("h2",{className:`multimedia-tab ${n?"m-tab-active":null}`,onClick:t,children:e}),Fk=({img:e})=>c("div",{className:"gallery-item",children:c("img",{src:e,alt:"image"})}),Nk=({imageTabIndex:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{e&&new Be(`http://tmex.gov.tm:8765/api/medias/${e}`,t,n).get()},[e]),c("div",{className:"gallery-wrapper",children:c("div",{className:"gallery",children:t?t.data.map(r=>c(Fk,{img:r.media},r.id)):null})})},Ak=({videoTabIndex:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{e&&new Be(`http://tmex.gov.tm:8765/api/medias/${e}`,t,n).get()},[e]),c("div",{className:"videos-wrapper",children:t?t.data.map(r=>c(Y3,{videoUrl:r.media},r.id)):null})},Rk=({lang:e})=>{const[t,n]=j.exports.useState(0),[r,i]=j.exports.useState(),[u,s]=j.exports.useState(0),[a,o]=j.exports.useState(),[l,d]=j.exports.useState();j.exports.useEffect(()=>{window.scrollTo(0,0)},[]),j.exports.useEffect(()=>{new Be("http://tmex.gov.tm:8765/api/media/categories",l,d).get({"X-Localization":e})},[e]),j.exports.useEffect(()=>{l&&i(l.data[0].id)},[l]);const p=(v,b)=>{n(v),i(b),s(null)},g=(v,b)=>{s(v),o(b),n(null)};return c("main",{children:c("div",{className:"container",children:P("div",{className:"sub-page-wrapper sub-page-full",children:[c(ce,{title:`${e==="ru"?"\u041C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430":e==="tm"?"Multimedi\xFDa":e==="en"?"Multimedia":null}`}),P("div",{className:"multimedia-wrapper",children:[P("nav",{className:"multimedia-nav",children:[c("div",{className:"multimedia-top-gallery",children:l?l.data.map((v,b)=>v.type==="image"?c(Jf,{title:v.title,active:t===b,onClick:()=>p(b,v.id)},v.id):null):null}),c("div",{className:"multimedia-top-video",children:l?l.data.map((v,b)=>v.type==="video"?c(Jf,{title:v.title,active:u===b,onClick:()=>g(b,v.id)},v.id):null):null})]}),u?c(Ak,{videoTabIndex:a}):c(Nk,{imageTabIndex:r})]})]})})})};class Tk{getLang(){return localStorage.getItem("lastLanguage")?localStorage.getItem("lastLanguage"):"ru"}saveLang(t){localStorage.setItem("lastLanguage",t)}}const Mk=()=>{const e=new Tk,[t,n]=j.exports.useState(e.getLang()),[r,i]=j.exports.useState(),[u,s]=j.exports.useState();return j.exports.useEffect(()=>{e.saveLang(t)},[t]),P("div",{className:"App",children:[c(Ek,{}),c(G1,{lang:t,setLang:n}),P(V1,{children:[c(gt,{index:!0,element:c(lk,{lang:t,setPostId:i})}),c(gt,{path:"/gtsbt",element:c(ck,{lang:t})}),c(gt,{path:"/norm",element:c(fk,{lang:t})}),c(gt,{path:"/news",element:c(Sk,{lang:t,setPostId:i,postId:r,postsData:u,setPostsData:s})}),c(gt,{path:"/multimedia",element:c(Rk,{lang:t})}),c(gt,{path:"/contacts",element:c(kk,{lang:t})}),c(gt,{path:"/trade",element:c(hk,{lang:t})}),c(gt,{path:"/fin",element:c(dk,{lang:t})}),c(gt,{path:"/register",element:c(pk,{lang:t})}),c(gt,{path:"/tarif",element:c(Ok,{lang:t})}),c(gt,{path:"/post/:id",element:c(Ck,{lang:t,setPostId:i,postsData:u,setPostsData:s})})]}),c(Q1,{lang:t})]})},Lk=document.getElementById("root"),Bk=l3(Lk);Bk.render(c(j.exports.StrictMode,{children:c(Y1,{children:c(Mk,{})})})); diff --git a/dist/index.html b/dist/index.html index 5bab9b1..9eeeb37 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,7 +5,7 @@ Exchange - +