exchange-client_2/dist/assets/index.4dab28f5.js

162 lines
602 KiB
JavaScript

var Dg=Object.defineProperty;var kg=(e,t,n)=>t in e?Dg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var yr=(e,t,n)=>(kg(e,typeof t!="symbol"?t+"":t,n),n);function Sg(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const u=Object.getOwnPropertyDescriptor(r,i);u&&Object.defineProperty(e,i,u.get?u:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const u of i)if(u.type==="childList")for(const s of u.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const u={};return i.integrity&&(u.integrity=i.integrity),i.referrerpolicy&&(u.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?u.credentials="include":i.crossorigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(i){if(i.ep)return;i.ep=!0;const u=n(i);fetch(i.href,u)}})();var Ga=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pg(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var j={exports:{}},J={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Eu=Symbol.for("react.element"),Cg=Symbol.for("react.portal"),Og=Symbol.for("react.fragment"),Fg=Symbol.for("react.strict_mode"),Ng=Symbol.for("react.profiler"),Ag=Symbol.for("react.provider"),Rg=Symbol.for("react.context"),Tg=Symbol.for("react.forward_ref"),Mg=Symbol.for("react.suspense"),Lg=Symbol.for("react.memo"),Bg=Symbol.for("react.lazy"),H0=Symbol.iterator;function Ig(e){return e===null||typeof e!="object"?null:(e=H0&&e[H0]||e["@@iterator"],typeof e=="function"?e:null)}var ih={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},uh=Object.assign,sh={};function ni(e,t,n){this.props=e,this.context=t,this.refs=sh,this.updater=n||ih}ni.prototype.isReactComponent={};ni.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")};ni.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ah(){}ah.prototype=ni.prototype;function Ec(e,t,n){this.props=e,this.context=t,this.refs=sh,this.updater=n||ih}var _c=Ec.prototype=new ah;_c.constructor=Ec;uh(_c,ni.prototype);_c.isPureReactComponent=!0;var $0=Array.isArray,oh=Object.prototype.hasOwnProperty,wc={current:null},lh={key:!0,ref:!0,__self:!0,__source:!0};function ch(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)oh.call(t,r)&&!lh.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var o=Array(a),l=0;l<a;l++)o[l]=arguments[l+2];i.children=o}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Eu,type:e,key:u,ref:s,props:i,_owner:wc.current}}function zg(e,t){return{$$typeof:Eu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Dc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Eu}function jg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var K0=/\/+/g;function Qa(e,t){return typeof e=="object"&&e!==null&&e.key!=null?jg(""+e.key):t.toString(36)}function gs(e,t,n,r,i){var u=typeof e;(u==="undefined"||u==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Eu:case Cg:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Qa(s,0):r,$0(i)?(n="",e!=null&&(n=e.replace(K0,"$&/")+"/"),gs(i,t,n,"",function(l){return l})):i!=null&&(Dc(i)&&(i=zg(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(K0,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",$0(e))for(var a=0;a<e.length;a++){u=e[a];var o=r+Qa(u,a);s+=gs(u,t,n,o,i)}else if(o=Ig(e),typeof o=="function")for(e=o.call(e),a=0;!(u=e.next()).done;)u=u.value,o=r+Qa(u,a++),s+=gs(u,t,n,o,i);else if(u==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Iu(e,t,n){if(e==null)return e;var r=[],i=0;return gs(e,r,"","",function(u){return t.call(n,u,i++)}),r}function Vg(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Je={current:null},ys={transition:null},Ug={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:ys,ReactCurrentOwner:wc};J.Children={map:Iu,forEach:function(e,t,n){Iu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Iu(e,function(){t++}),t},toArray:function(e){return Iu(e,function(t){return t})||[]},only:function(e){if(!Dc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};J.Component=ni;J.Fragment=Og;J.Profiler=Ng;J.PureComponent=Ec;J.StrictMode=Fg;J.Suspense=Mg;J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ug;J.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=uh({},e.props),i=e.key,u=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(u=t.ref,s=wc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(o in t)oh.call(t,o)&&!lh.hasOwnProperty(o)&&(r[o]=t[o]===void 0&&a!==void 0?a[o]:t[o])}var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){a=Array(o);for(var l=0;l<o;l++)a[l]=arguments[l+2];r.children=a}return{$$typeof:Eu,type:e.type,key:i,ref:u,props:r,_owner:s}};J.createContext=function(e){return e={$$typeof:Rg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ag,_context:e},e.Consumer=e};J.createElement=ch;J.createFactory=function(e){var t=ch.bind(null,e);return t.type=e,t};J.createRef=function(){return{current:null}};J.forwardRef=function(e){return{$$typeof:Tg,render:e}};J.isValidElement=Dc;J.lazy=function(e){return{$$typeof:Bg,_payload:{_status:-1,_result:e},_init:Vg}};J.memo=function(e,t){return{$$typeof:Lg,type:e,compare:t===void 0?null:t}};J.startTransition=function(e){var t=ys.transition;ys.transition={};try{e()}finally{ys.transition=t}};J.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};J.useCallback=function(e,t){return Je.current.useCallback(e,t)};J.useContext=function(e){return Je.current.useContext(e)};J.useDebugValue=function(){};J.useDeferredValue=function(e){return Je.current.useDeferredValue(e)};J.useEffect=function(e,t){return Je.current.useEffect(e,t)};J.useId=function(){return Je.current.useId()};J.useImperativeHandle=function(e,t,n){return Je.current.useImperativeHandle(e,t,n)};J.useInsertionEffect=function(e,t){return Je.current.useInsertionEffect(e,t)};J.useLayoutEffect=function(e,t){return Je.current.useLayoutEffect(e,t)};J.useMemo=function(e,t){return Je.current.useMemo(e,t)};J.useReducer=function(e,t,n){return Je.current.useReducer(e,t,n)};J.useRef=function(e){return Je.current.useRef(e)};J.useState=function(e){return Je.current.useState(e)};J.useSyncExternalStore=function(e,t,n){return Je.current.useSyncExternalStore(e,t,n)};J.useTransition=function(){return Je.current.useTransition()};J.version="18.2.0";(function(e){e.exports=J})(j);const Wg=rh(j.exports),ul=Sg({__proto__:null,default:Wg},[j.exports]);var dh={exports:{}},ht={},fh={exports:{}},hh={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(A,R){var N=A.length;A.push(R);e:for(;0<N;){var z=N-1>>>1,V=A[z];if(0<i(V,R))A[z]=R,A[N]=V,N=z;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var R=A[0],N=A.pop();if(N!==R){A[0]=N;e:for(var z=0,V=A.length,W=V>>>1;z<W;){var q=2*(z+1)-1,X=A[q],Q=q+1,G=A[Q];if(0>i(X,N))Q<V&&0>i(G,X)?(A[z]=G,A[Q]=N,z=Q):(A[z]=X,A[q]=N,z=q);else if(Q<V&&0>i(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 V=z(p.expirationTime<=R);R=e.unstable_now(),typeof V=="function"?p.callback=V: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()-h<m)}function C(){if(y!==null){var A=e.unstable_now();h=A;var R=!0;try{R=y(!0,A)}finally{R?B():(S=!1,y=null)}}else S=!1}var B;if(typeof _=="function")B=function(){_(C)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,M=F.port2;F.port1.onmessage=C,B=function(){M.postMessage(null)}}else B=function(){O(C,0)};function I(A){y=A,S||(S=!0,B())}function L(A,R){f=O(function(){A(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){b||v||(b=!0,I(D))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):m=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(o)},e.unstable_next=function(A){switch(g){case 1:case 2:case 3:var R=3;break;default:R=g}var N=g;g=R;try{return A()}finally{g=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,R){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var N=g;g=A;try{return R()}finally{g=N}},e.unstable_scheduleCallback=function(A,R,N){var z=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?z+N:z):N=z,A){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=N+V,A={id:d++,callback:R,priorityLevel:A,startTime:N,expirationTime:V,sortIndex:-1},N>z?(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=V,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}}}})(hh);(function(e){e.exports=hh})(fh);/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ph=j.exports,ft=fh.exports;function H(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var mh=new Set,Ji={};function hr(e,t){Hr(e,t),Hr(e+"Capture",t)}function Hr(e,t){for(Ji[e]=t,e=0;e<t.length;e++)mh.add(t[e])}var an=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sl=Object.prototype.hasOwnProperty,Hg=/^[: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]*$/,Y0={},q0={};function $g(e){return sl.call(q0,e)?!0:sl.call(Y0,e)?!1:Hg.test(e)?q0[e]=!0:(Y0[e]=!0,!1)}function Kg(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 Yg(e,t,n,r){if(t===null||typeof t>"u"||Kg(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 Ze(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 Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ie[t]=new Ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ze(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){Ie[e]=new Ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var kc=/[\-:]([a-z])/g;function Sc(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(kc,Sc);Ie[t]=new Ze(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(kc,Sc);Ie[t]=new Ze(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(kc,Sc);Ie[t]=new Ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ze(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pc(e,t,n,r){var i=Ie.hasOwnProperty(t)?Ie[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Yg(t,n,i,r)&&(n=null),r||i===null?$g(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var dn=ph.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zu=Symbol.for("react.element"),kr=Symbol.for("react.portal"),Sr=Symbol.for("react.fragment"),Cc=Symbol.for("react.strict_mode"),al=Symbol.for("react.profiler"),gh=Symbol.for("react.provider"),yh=Symbol.for("react.context"),Oc=Symbol.for("react.forward_ref"),ol=Symbol.for("react.suspense"),ll=Symbol.for("react.suspense_list"),Fc=Symbol.for("react.memo"),yn=Symbol.for("react.lazy"),vh=Symbol.for("react.offscreen"),X0=Symbol.iterator;function di(e){return e===null||typeof e!="object"?null:(e=X0&&e[X0]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Object.assign,Ja;function Oi(e){if(Ja===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ja=t&&t[1]||""}return`
`+Ja+e}var Za=!1;function eo(e,t){if(!e||Za)return"";Za=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&typeof l.stack=="string"){for(var i=l.stack.split(`
`),u=r.stack.split(`
`),s=i.length-1,a=u.length-1;1<=s&&0<=a&&i[s]!==u[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==u[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==u[a]){var o=`
`+i[s].replace(" at new "," at ");return e.displayName&&o.includes("<anonymous>")&&(o=o.replace("<anonymous>",e.displayName)),o}while(1<=s&&0<=a);break}}}finally{Za=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Oi(e):""}function qg(e){switch(e.tag){case 5:return Oi(e.type);case 16:return Oi("Lazy");case 13:return Oi("Suspense");case 19:return Oi("SuspenseList");case 0:case 2:case 15:return e=eo(e.type,!1),e;case 11:return e=eo(e.type.render,!1),e;case 1:return e=eo(e.type,!0),e;default:return""}}function cl(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 Sr:return"Fragment";case kr:return"Portal";case al:return"Profiler";case Cc:return"StrictMode";case ol:return"Suspense";case ll:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yh:return(e.displayName||"Context")+".Consumer";case gh:return(e._context.displayName||"Context")+".Provider";case Oc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fc:return t=e.displayName||null,t!==null?t:cl(e.type)||"Memo";case yn:t=e._payload,e=e._init;try{return cl(e(t))}catch{}}return null}function Xg(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 cl(t);case 8:return t===Cc?"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 bh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gg(e){var t=bh(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 ju(e){e._valueTracker||(e._valueTracker=Gg(e))}function xh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=bh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ns(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 dl(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 G0(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 Eh(e,t){t=t.checked,t!=null&&Pc(e,"checked",t,!1)}function fl(e,t){Eh(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")?hl(e,t.type,n):t.hasOwnProperty("defaultValue")&&hl(e,t.type,Ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Q0(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 hl(e,t,n){(t!=="number"||Ns(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fi=Array.isArray;function Br(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ln(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function pl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(H(91));return ye({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function J0(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(H(92));if(Fi(n)){if(1<n.length)throw Error(H(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ln(n)}}function _h(e,t){var n=Ln(t.value),r=Ln(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Z0(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function wh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ml(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?wh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Vu,Dh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Vu=Vu||document.createElement("div"),Vu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Vu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bi={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},Qg=["Webkit","ms","Moz","O"];Object.keys(Bi).forEach(function(e){Qg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bi[t]=Bi[e]})});function kh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bi.hasOwnProperty(e)&&Bi[e]?(""+t).trim():t+"px"}function Sh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=kh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Jg=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 gl(e,t){if(t){if(Jg[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 yl(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 vl=null;function Nc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bl=null,Ir=null,zr=null;function e4(e){if(e=Du(e)){if(typeof bl!="function")throw Error(H(280));var t=e.stateNode;t&&(t=_a(t),bl(e.stateNode,e.type,t))}}function Ph(e){Ir?zr?zr.push(e):zr=[e]:Ir=e}function Ch(){if(Ir){var e=Ir,t=zr;if(zr=Ir=null,e4(e),t)for(e=0;e<t.length;e++)e4(t[e])}}function Oh(e,t){return e(t)}function Fh(){}var to=!1;function Nh(e,t,n){if(to)return e(t,n);to=!0;try{return Oh(e,t,n)}finally{to=!1,(Ir!==null||zr!==null)&&(Fh(),Ch())}}function eu(e,t){var n=e.stateNode;if(n===null)return null;var r=_a(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(H(231,t,typeof n));return n}var xl=!1;if(an)try{var fi={};Object.defineProperty(fi,"passive",{get:function(){xl=!0}}),window.addEventListener("test",fi,fi),window.removeEventListener("test",fi,fi)}catch{xl=!1}function Zg(e,t,n,r,i,u,s,a,o){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(d){this.onError(d)}}var Ii=!1,As=null,Rs=!1,El=null,ey={onError:function(e){Ii=!0,As=e}};function ty(e,t,n,r,i,u,s,a,o){Ii=!1,As=null,Zg.apply(ey,arguments)}function ny(e,t,n,r,i,u,s,a,o){if(ty.apply(this,arguments),Ii){if(Ii){var l=As;Ii=!1,As=null}else throw Error(H(198));Rs||(Rs=!0,El=l)}}function pr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ah(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function t4(e){if(pr(e)!==e)throw Error(H(188))}function ry(e){var t=e.alternate;if(!t){if(t=pr(e),t===null)throw Error(H(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var u=i.alternate;if(u===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===n)return t4(i),e;if(u===r)return t4(i),t;u=u.sibling}throw Error(H(188))}if(n.return!==r.return)n=i,r=u;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=u;break}if(a===r){s=!0,r=i,n=u;break}a=a.sibling}if(!s){for(a=u.child;a;){if(a===n){s=!0,n=u,r=i;break}if(a===r){s=!0,r=u,n=i;break}a=a.sibling}if(!s)throw Error(H(189))}}if(n.alternate!==r)throw Error(H(190))}if(n.tag!==3)throw Error(H(188));return n.stateNode.current===n?e:t}function Rh(e){return e=ry(e),e!==null?Th(e):null}function Th(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Th(e);if(t!==null)return t;e=e.sibling}return null}var Mh=ft.unstable_scheduleCallback,n4=ft.unstable_cancelCallback,iy=ft.unstable_shouldYield,uy=ft.unstable_requestPaint,De=ft.unstable_now,sy=ft.unstable_getCurrentPriorityLevel,Ac=ft.unstable_ImmediatePriority,Lh=ft.unstable_UserBlockingPriority,Ts=ft.unstable_NormalPriority,ay=ft.unstable_LowPriority,Bh=ft.unstable_IdlePriority,va=null,Kt=null;function oy(e){if(Kt&&typeof Kt.onCommitFiberRoot=="function")try{Kt.onCommitFiberRoot(va,e,void 0,(e.current.flags&128)===128)}catch{}}var Mt=Math.clz32?Math.clz32:dy,ly=Math.log,cy=Math.LN2;function dy(e){return e>>>=0,e===0?32:31-(ly(e)/cy|0)|0}var Uu=64,Wu=4194304;function Ni(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 Ms(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=Ni(a):(u&=s,u!==0&&(r=Ni(u)))}else s=n&~i,s!==0?r=Ni(s):u!==0&&(r=Ni(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;0<t;)n=31-Mt(t),i=1<<n,r|=e[n],t&=~i;return r}function fy(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hy(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes;0<u;){var s=31-Mt(u),a=1<<s,o=i[s];o===-1?((a&n)===0||(a&r)!==0)&&(i[s]=fy(a,t)):o<=t&&(e.expiredLanes|=a),u&=~a}}function _l(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ih(){var e=Uu;return Uu<<=1,(Uu&4194240)===0&&(Uu=64),e}function no(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _u(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 py(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Mt(n),u=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~u}}function Rc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var se=0;function zh(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var jh,Tc,Vh,Uh,Wh,wl=!1,Hu=[],Sn=null,Pn=null,Cn=null,tu=new Map,nu=new Map,bn=[],my="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function r4(e,t){switch(e){case"focusin":case"focusout":Sn=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":Cn=null;break;case"pointerover":case"pointerout":tu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nu.delete(t.pointerId)}}function hi(e,t,n,r,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:u,targetContainers:[i]},t!==null&&(t=Du(t),t!==null&&Tc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function gy(e,t,n,r,i){switch(t){case"focusin":return Sn=hi(Sn,e,t,n,r,i),!0;case"dragenter":return Pn=hi(Pn,e,t,n,r,i),!0;case"mouseover":return Cn=hi(Cn,e,t,n,r,i),!0;case"pointerover":var u=i.pointerId;return tu.set(u,hi(tu.get(u)||null,e,t,n,r,i)),!0;case"gotpointercapture":return u=i.pointerId,nu.set(u,hi(nu.get(u)||null,e,t,n,r,i)),!0}return!1}function Hh(e){var t=Jn(e.target);if(t!==null){var n=pr(t);if(n!==null){if(t=n.tag,t===13){if(t=Ah(n),t!==null){e.blockedOn=t,Wh(e.priority,function(){Vh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Dl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);vl=r,n.target.dispatchEvent(r),vl=null}else return t=Du(n),t!==null&&Tc(t),e.blockedOn=n,!1;t.shift()}return!0}function i4(e,t,n){vs(e)&&n.delete(t)}function yy(){wl=!1,Sn!==null&&vs(Sn)&&(Sn=null),Pn!==null&&vs(Pn)&&(Pn=null),Cn!==null&&vs(Cn)&&(Cn=null),tu.forEach(i4),nu.forEach(i4)}function pi(e,t){e.blockedOn===t&&(e.blockedOn=null,wl||(wl=!0,ft.unstable_scheduleCallback(ft.unstable_NormalPriority,yy)))}function ru(e){function t(i){return pi(i,e)}if(0<Hu.length){pi(Hu[0],e);for(var n=1;n<Hu.length;n++){var r=Hu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Sn!==null&&pi(Sn,e),Pn!==null&&pi(Pn,e),Cn!==null&&pi(Cn,e),tu.forEach(t),nu.forEach(t),n=0;n<bn.length;n++)r=bn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<bn.length&&(n=bn[0],n.blockedOn===null);)Hh(n),n.blockedOn===null&&bn.shift()}var jr=dn.ReactCurrentBatchConfig,Ls=!0;function vy(e,t,n,r){var i=se,u=jr.transition;jr.transition=null;try{se=1,Mc(e,t,n,r)}finally{se=i,jr.transition=u}}function by(e,t,n,r){var i=se,u=jr.transition;jr.transition=null;try{se=4,Mc(e,t,n,r)}finally{se=i,jr.transition=u}}function Mc(e,t,n,r){if(Ls){var i=Dl(e,t,n,r);if(i===null)ho(e,t,r,Bs,n),r4(e,r);else if(gy(i,e,t,n,r))r.stopPropagation();else if(r4(e,r),t&4&&-1<my.indexOf(e)){for(;i!==null;){var u=Du(i);if(u!==null&&jh(u),u=Dl(e,t,n,r),u===null&&ho(e,t,r,Bs,n),u===i)break;i=u}i!==null&&r.stopPropagation()}else ho(e,t,r,null,n)}}var Bs=null;function Dl(e,t,n,r){if(Bs=null,e=Nc(r),e=Jn(e),e!==null)if(t=pr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ah(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Bs=e,null}function $h(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(sy()){case Ac:return 1;case Lh:return 4;case Ts:case ay:return 16;case Bh:return 536870912;default:return 16}default:return 16}}var En=null,Lc=null,bs=null;function Kh(){if(bs)return bs;var e,t=Lc,n=t.length,r,i="value"in En?En.value:En.textContent,u=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[u-r];r++);return bs=i.slice(e,1<r?1-r:void 0)}function xs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function $u(){return!0}function u4(){return!1}function pt(e){function t(n,r,i,u,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=u,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(u):u[a]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?$u:u4,this.isPropagationStopped=u4,this}return ye(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=$u)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=$u)},persist:function(){},isPersistent:$u}),t}var ri={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bc=pt(ri),wu=ye({},ri,{view:0,detail:0}),xy=pt(wu),ro,io,mi,ba=ye({},wu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ic,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==mi&&(mi&&e.type==="mousemove"?(ro=e.screenX-mi.screenX,io=e.screenY-mi.screenY):io=ro=0,mi=e),ro)},movementY:function(e){return"movementY"in e?e.movementY:io}}),s4=pt(ba),Ey=ye({},ba,{dataTransfer:0}),_y=pt(Ey),wy=ye({},wu,{relatedTarget:0}),uo=pt(wy),Dy=ye({},ri,{animationName:0,elapsedTime:0,pseudoElement:0}),ky=pt(Dy),Sy=ye({},ri,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Py=pt(Sy),Cy=ye({},ri,{data:0}),a4=pt(Cy),Oy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ny={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ay(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ny[e])?!!t[e]:!1}function Ic(){return Ay}var Ry=ye({},wu,{key:function(e){if(e.key){var t=Oy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ic,charCode:function(e){return e.type==="keypress"?xs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ty=pt(Ry),My=ye({},ba,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),o4=pt(My),Ly=ye({},wu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ic}),By=pt(Ly),Iy=ye({},ri,{propertyName:0,elapsedTime:0,pseudoElement:0}),zy=pt(Iy),jy=ye({},ba,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Vy=pt(jy),Uy=[9,13,27,32],zc=an&&"CompositionEvent"in window,zi=null;an&&"documentMode"in document&&(zi=document.documentMode);var Wy=an&&"TextEvent"in window&&!zi,Yh=an&&(!zc||zi&&8<zi&&11>=zi),l4=String.fromCharCode(32),c4=!1;function qh(e,t){switch(e){case"keyup":return Uy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pr=!1;function Hy(e,t){switch(e){case"compositionend":return Xh(t);case"keypress":return t.which!==32?null:(c4=!0,l4);case"textInput":return e=t.data,e===l4&&c4?null:e;default:return null}}function $y(e,t){if(Pr)return e==="compositionend"||!zc&&qh(e,t)?(e=Kh(),bs=Lc=En=null,Pr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yh&&t.locale!=="ko"?null:t.data;default:return null}}var Ky={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function d4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ky[e.type]:t==="textarea"}function Gh(e,t,n,r){Ph(r),t=Is(t,"onChange"),0<t.length&&(n=new Bc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ji=null,iu=null;function Yy(e){ap(e,0)}function xa(e){var t=Fr(e);if(xh(t))return e}function qy(e,t){if(e==="change")return t}var Qh=!1;if(an){var so;if(an){var ao="oninput"in document;if(!ao){var f4=document.createElement("div");f4.setAttribute("oninput","return;"),ao=typeof f4.oninput=="function"}so=ao}else so=!1;Qh=so&&(!document.documentMode||9<document.documentMode)}function h4(){ji&&(ji.detachEvent("onpropertychange",Jh),iu=ji=null)}function Jh(e){if(e.propertyName==="value"&&xa(iu)){var t=[];Gh(t,iu,e,Nc(e)),Nh(Yy,t)}}function Xy(e,t,n){e==="focusin"?(h4(),ji=t,iu=n,ji.attachEvent("onpropertychange",Jh)):e==="focusout"&&h4()}function Gy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xa(iu)}function Qy(e,t){if(e==="click")return xa(t)}function Jy(e,t){if(e==="input"||e==="change")return xa(t)}function Zy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:Zy;function uu(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!sl.call(t,i)||!Bt(e[i],t[i]))return!1}return!0}function p4(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function m4(e,t){var n=p4(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=p4(n)}}function Zh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ep(){for(var e=window,t=Ns();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ns(e.document)}return t}function jc(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 ev(e){var t=ep(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zh(n.ownerDocument.documentElement,n)){if(r!==null&&jc(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=m4(n,u);var s=m4(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<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var tv=an&&"documentMode"in document&&11>=document.documentMode,Cr=null,kl=null,Vi=null,Sl=!1;function g4(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Sl||Cr==null||Cr!==Ns(r)||(r=Cr,"selectionStart"in r&&jc(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}),Vi&&uu(Vi,r)||(Vi=r,r=Is(kl,"onSelect"),0<r.length&&(t=new Bc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Cr)))}function Ku(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Or={animationend:Ku("Animation","AnimationEnd"),animationiteration:Ku("Animation","AnimationIteration"),animationstart:Ku("Animation","AnimationStart"),transitionend:Ku("Transition","TransitionEnd")},oo={},tp={};an&&(tp=document.createElement("div").style,"AnimationEvent"in window||(delete Or.animationend.animation,delete Or.animationiteration.animation,delete Or.animationstart.animation),"TransitionEvent"in window||delete Or.transitionend.transition);function Ea(e){if(oo[e])return oo[e];if(!Or[e])return e;var t=Or[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in tp)return oo[e]=t[n];return e}var np=Ea("animationend"),rp=Ea("animationiteration"),ip=Ea("animationstart"),up=Ea("transitionend"),sp=new Map,y4="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function jn(e,t){sp.set(e,t),hr(t,[e])}for(var lo=0;lo<y4.length;lo++){var co=y4[lo],nv=co.toLowerCase(),rv=co[0].toUpperCase()+co.slice(1);jn(nv,"on"+rv)}jn(np,"onAnimationEnd");jn(rp,"onAnimationIteration");jn(ip,"onAnimationStart");jn("dblclick","onDoubleClick");jn("focusin","onFocus");jn("focusout","onBlur");jn(up,"onTransitionEnd");Hr("onMouseEnter",["mouseout","mouseover"]);Hr("onMouseLeave",["mouseout","mouseover"]);Hr("onPointerEnter",["pointerout","pointerover"]);Hr("onPointerLeave",["pointerout","pointerover"]);hr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));hr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));hr("onBeforeInput",["compositionend","keypress","textInput","paste"]);hr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));hr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));hr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ai="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),iv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ai));function v4(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ny(r,t,void 0,e),e.currentTarget=null}function ap(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],o=a.instance,l=a.currentTarget;if(a=a.listener,o!==u&&i.isPropagationStopped())break e;v4(i,a,l),u=o}else for(s=0;s<r.length;s++){if(a=r[s],o=a.instance,l=a.currentTarget,a=a.listener,o!==u&&i.isPropagationStopped())break e;v4(i,a,l),u=o}}}if(Rs)throw e=El,Rs=!1,El=null,e}function de(e,t){var n=t[Nl];n===void 0&&(n=t[Nl]=new Set);var r=e+"__bubble";n.has(r)||(op(t,e,2,!1),n.add(r))}function fo(e,t,n){var r=0;t&&(r|=4),op(n,e,r,t)}var Yu="_reactListening"+Math.random().toString(36).slice(2);function su(e){if(!e[Yu]){e[Yu]=!0,mh.forEach(function(n){n!=="selectionchange"&&(iv.has(n)||fo(n,!1,e),fo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yu]||(t[Yu]=!0,fo("selectionchange",!1,t))}}function op(e,t,n,r){switch($h(t)){case 1:var i=vy;break;case 4:i=by;break;default:i=Mc}n=i.bind(null,t,n,e),i=void 0,!xl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ho(e,t,n,r,i){var u=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var o=s.tag;if((o===3||o===4)&&(o=s.stateNode.containerInfo,o===i||o.nodeType===8&&o.parentNode===i))return;s=s.return}for(;a!==null;){if(s=Jn(a),s===null)return;if(o=s.tag,o===5||o===6){r=u=s;continue e}a=a.parentNode}}r=r.return}Nh(function(){var l=u,d=Nc(n),p=[];e:{var g=sp.get(e);if(g!==void 0){var v=Bc,b=e;switch(e){case"keypress":if(xs(n)===0)break e;case"keydown":case"keyup":v=Ty;break;case"focusin":b="focus",v=uo;break;case"focusout":b="blur",v=uo;break;case"beforeblur":case"afterblur":v=uo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=s4;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=_y;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=By;break;case np:case rp:case ip:v=ky;break;case up:v=zy;break;case"scroll":v=xy;break;case"wheel":v=Vy;break;case"copy":case"cut":case"paste":v=Py;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=o4}var k=(t&4)!==0,O=!k&&e==="scroll",x=k?g!==null?g+"Capture":null:g;k=[];for(var _=l,w;_!==null;){w=_;var T=w.stateNode;if(w.tag===5&&T!==null&&(w=T,x!==null&&(T=eu(_,x),T!=null&&k.push(au(_,T,w)))),O)break;_=_.return}0<k.length&&(g=new v(g,b,null,n,d),p.push({event:g,listeners:k}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",g&&n!==vl&&(b=n.relatedTarget||n.fromElement)&&(Jn(b)||b[on]))break e;if((v||g)&&(g=d.window===d?d:(g=d.ownerDocument)?g.defaultView||g.parentWindow:window,v?(b=n.relatedTarget||n.toElement,v=l,b=b?Jn(b):null,b!==null&&(O=pr(b),b!==O||b.tag!==5&&b.tag!==6)&&(b=null)):(v=null,b=l),v!==b)){if(k=s4,T="onMouseLeave",x="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(k=o4,T="onPointerLeave",x="onPointerEnter",_="pointer"),O=v==null?g:Fr(v),w=b==null?g:Fr(b),g=new k(T,_+"leave",v,n,d),g.target=O,g.relatedTarget=w,T=null,Jn(d)===l&&(k=new k(x,_+"enter",b,n,d),k.target=w,k.relatedTarget=O,T=k),O=T,v&&b)t:{for(k=v,x=b,_=0,w=k;w;w=vr(w))_++;for(w=0,T=x;T;T=vr(T))w++;for(;0<_-w;)k=vr(k),_--;for(;0<w-_;)x=vr(x),w--;for(;_--;){if(k===x||x!==null&&k===x.alternate)break t;k=vr(k),x=vr(x)}k=null}else k=null;v!==null&&b4(p,g,v,k,!1),b!==null&&O!==null&&b4(p,O,b,k,!0)}}e:{if(g=l?Fr(l):window,v=g.nodeName&&g.nodeName.toLowerCase(),v==="select"||v==="input"&&g.type==="file")var D=qy;else if(d4(g))if(Qh)D=Jy;else{D=Gy;var S=Xy}else(v=g.nodeName)&&v.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(D=Qy);if(D&&(D=D(e,l))){Gh(p,D,n,d);break e}S&&S(e,g,l),e==="focusout"&&(S=g._wrapperState)&&S.controlled&&g.type==="number"&&hl(g,"number",g.value)}switch(S=l?Fr(l):window,e){case"focusin":(d4(S)||S.contentEditable==="true")&&(Cr=S,kl=l,Vi=null);break;case"focusout":Vi=kl=Cr=null;break;case"mousedown":Sl=!0;break;case"contextmenu":case"mouseup":case"dragend":Sl=!1,g4(p,n,d);break;case"selectionchange":if(tv)break;case"keydown":case"keyup":g4(p,n,d)}var y;if(zc)e:{switch(e){case"compositionstart":var f="onCompositionStart";break e;case"compositionend":f="onCompositionEnd";break e;case"compositionupdate":f="onCompositionUpdate";break e}f=void 0}else Pr?qh(e,n)&&(f="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(f="onCompositionStart");f&&(Yh&&n.locale!=="ko"&&(Pr||f!=="onCompositionStart"?f==="onCompositionEnd"&&Pr&&(y=Kh()):(En=d,Lc="value"in En?En.value:En.textContent,Pr=!0)),S=Is(l,f),0<S.length&&(f=new a4(f,e,null,n,d),p.push({event:f,listeners:S}),y?f.data=y:(y=Xh(n),y!==null&&(f.data=y)))),(y=Wy?Hy(e,n):$y(e,n))&&(l=Is(l,"onBeforeInput"),0<l.length&&(d=new a4("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:l}),d.data=y))}ap(p,t)})}function au(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Is(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,u=i.stateNode;i.tag===5&&u!==null&&(i=u,u=eu(e,n),u!=null&&r.unshift(au(e,u,i)),u=eu(e,t),u!=null&&r.push(au(e,u,i))),e=e.return}return r}function vr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function b4(e,t,n,r,i){for(var u=t._reactName,s=[];n!==null&&n!==r;){var a=n,o=a.alternate,l=a.stateNode;if(o!==null&&o===r)break;a.tag===5&&l!==null&&(a=l,i?(o=eu(n,u),o!=null&&s.unshift(au(n,o,a))):i||(o=eu(n,u),o!=null&&s.push(au(n,o,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var uv=/\r\n?/g,sv=/\u0000|\uFFFD/g;function x4(e){return(typeof e=="string"?e:""+e).replace(uv,`
`).replace(sv,"")}function qu(e,t,n){if(t=x4(t),x4(e)!==t&&n)throw Error(H(425))}function zs(){}var Pl=null,Cl=null;function Ol(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Fl=typeof setTimeout=="function"?setTimeout:void 0,av=typeof clearTimeout=="function"?clearTimeout:void 0,E4=typeof Promise=="function"?Promise:void 0,ov=typeof queueMicrotask=="function"?queueMicrotask:typeof E4<"u"?function(e){return E4.resolve(null).then(e).catch(lv)}:Fl;function lv(e){setTimeout(function(){throw e})}function po(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),ru(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ru(t)}function On(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function _4(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ii=Math.random().toString(36).slice(2),Ht="__reactFiber$"+ii,ou="__reactProps$"+ii,on="__reactContainer$"+ii,Nl="__reactEvents$"+ii,cv="__reactListeners$"+ii,dv="__reactHandles$"+ii;function Jn(e){var t=e[Ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[on]||n[Ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_4(e);e!==null;){if(n=e[Ht])return n;e=_4(e)}return t}e=n,n=e.parentNode}return null}function Du(e){return e=e[Ht]||e[on],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(H(33))}function _a(e){return e[ou]||null}var Al=[],Nr=-1;function Vn(e){return{current:e}}function fe(e){0>Nr||(e.current=Al[Nr],Al[Nr]=null,Nr--)}function le(e,t){Nr++,Al[Nr]=e.current,e.current=t}var Bn={},Ke=Vn(Bn),rt=Vn(!1),sr=Bn;function $r(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 it(e){return e=e.childContextTypes,e!=null}function js(){fe(rt),fe(Ke)}function w4(e,t,n){if(Ke.current!==Bn)throw Error(H(168));le(Ke,t),le(rt,n)}function lp(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,Xg(e)||"Unknown",i));return ye({},n,r)}function Vs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bn,sr=Ke.current,le(Ke,e),le(rt,rt.current),!0}function D4(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=lp(e,t,sr),r.__reactInternalMemoizedMergedChildContext=e,fe(rt),fe(Ke),le(Ke,e)):fe(rt),le(rt,n)}var en=null,wa=!1,mo=!1;function cp(e){en===null?en=[e]:en.push(e)}function fv(e){wa=!0,cp(e)}function Un(){if(!mo&&en!==null){mo=!0;var e=0,t=se;try{var n=en;for(se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}en=null,wa=!1}catch(i){throw en!==null&&(en=en.slice(e+1)),Mh(Ac,Un),i}finally{se=t,mo=!1}}return null}var Ar=[],Rr=0,Us=null,Ws=0,bt=[],xt=0,ar=null,nn=1,rn="";function Kn(e,t){Ar[Rr++]=Ws,Ar[Rr++]=Us,Us=e,Ws=t}function dp(e,t,n){bt[xt++]=nn,bt[xt++]=rn,bt[xt++]=ar,ar=e;var r=nn;e=rn;var i=32-Mt(r)-1;r&=~(1<<i),n+=1;var u=32-Mt(t)+i;if(30<u){var s=i-i%5;u=(r&(1<<s)-1).toString(32),r>>=s,i-=s,nn=1<<32-Mt(t)+i|n<<i|r,rn=u+e}else nn=1<<u|n<<i|r,rn=e}function Vc(e){e.return!==null&&(Kn(e,1),dp(e,1,0))}function Uc(e){for(;e===Us;)Us=Ar[--Rr],Ar[Rr]=null,Ws=Ar[--Rr],Ar[Rr]=null;for(;e===ar;)ar=bt[--xt],bt[xt]=null,rn=bt[--xt],bt[xt]=null,nn=bt[--xt],bt[xt]=null}var dt=null,lt=null,he=!1,Rt=null;function fp(e,t){var n=_t(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function k4(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,dt=e,lt=On(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,dt=e,lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ar!==null?{id:nn,overflow:rn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=_t(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,dt=e,lt=null,!0):!1;default:return!1}}function Rl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Tl(e){if(he){var t=lt;if(t){var n=t;if(!k4(e,t)){if(Rl(e))throw Error(H(418));t=On(n.nextSibling);var r=dt;t&&k4(e,t)?fp(r,n):(e.flags=e.flags&-4097|2,he=!1,dt=e)}}else{if(Rl(e))throw Error(H(418));e.flags=e.flags&-4097|2,he=!1,dt=e}}}function S4(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;dt=e}function Xu(e){if(e!==dt)return!1;if(!he)return S4(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ol(e.type,e.memoizedProps)),t&&(t=lt)){if(Rl(e))throw hp(),Error(H(418));for(;t;)fp(e,t),t=On(t.nextSibling)}if(S4(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){lt=On(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}lt=null}}else lt=dt?On(e.stateNode.nextSibling):null;return!0}function hp(){for(var e=lt;e;)e=On(e.nextSibling)}function Kr(){lt=dt=null,he=!1}function Wc(e){Rt===null?Rt=[e]:Rt.push(e)}var hv=dn.ReactCurrentBatchConfig;function Ft(e,t){if(e&&e.defaultProps){t=ye({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Hs=Vn(null),$s=null,Tr=null,Hc=null;function $c(){Hc=Tr=$s=null}function Kc(e){var t=Hs.current;fe(Hs),e._currentValue=t}function Ml(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vr(e,t){$s=e,Hc=Tr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(nt=!0),e.firstContext=null)}function kt(e){var t=e._currentValue;if(Hc!==e)if(e={context:e,memoizedValue:t,next:null},Tr===null){if($s===null)throw Error(H(308));Tr=e,$s.dependencies={lanes:0,firstContext:e}}else Tr=Tr.next=e;return t}var Zn=null;function Yc(e){Zn===null?Zn=[e]:Zn.push(e)}function pp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Yc(t)):(n.next=i.next,i.next=n),t.interleaved=n,ln(e,r)}function ln(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var vn=!1;function qc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function un(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(te&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ln(e,n)}return i=r.interleaved,i===null?(t.next=t,Yc(r)):(t.next=i.next,i.next=t),r.interleaved=t,ln(e,n)}function Es(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rc(e,n)}}function P4(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?i=u=s:u=u.next=s,n=n.next}while(n!==null);u===null?i=u=t:u=u.next=t}else i=u=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ks(e,t,n,r){var i=e.updateQueue;vn=!1;var u=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var o=a,l=o.next;o.next=null,s===null?u=l:s.next=l,s=o;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=l:a.next=l,d.lastBaseUpdate=o))}if(u!==null){var p=i.baseState;s=0,d=l=o=null,a=u;do{var g=a.lane,v=a.eventTime;if((r&g)===g){d!==null&&(d=d.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,k=a;switch(g=t,v=n,k.tag){case 1:if(b=k.payload,typeof b=="function"){p=b.call(v,p,g);break e}p=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=k.payload,g=typeof b=="function"?b.call(v,p,g):b,g==null)break e;p=ye({},p,g);break e;case 2:vn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=i.effects,g===null?i.effects=[a]:g.push(a))}else v={eventTime:v,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(l=d=v,o=p):d=d.next=v,s|=g;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;g=a,a=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(1);if(d===null&&(o=p),i.baseState=o,i.firstBaseUpdate=l,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else u===null&&(i.shared.lanes=0);lr|=s,e.lanes=s,e.memoizedState=p}}function C4(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(H(191,i));i.call(r)}}}var gp=new ph.Component().refs;function Ll(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ye({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Da={isMounted:function(e){return(e=e._reactInternals)?pr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ge(),i=An(e),u=un(r,i);u.payload=t,n!=null&&(u.callback=n),t=Fn(e,u,i),t!==null&&(Lt(t,e,i,r),Es(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ge(),i=An(e),u=un(r,i);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Fn(e,u,i),t!==null&&(Lt(t,e,i,r),Es(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ge(),r=An(e),i=un(n,r);i.tag=2,t!=null&&(i.callback=t),t=Fn(e,i,r),t!==null&&(Lt(t,e,r,n),Es(t,e,r))}};function O4(e,t,n,r,i,u,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,s):t.prototype&&t.prototype.isPureReactComponent?!uu(n,r)||!uu(i,u):!0}function yp(e,t,n){var r=!1,i=Bn,u=t.contextType;return typeof u=="object"&&u!==null?u=kt(u):(i=it(t)?sr:Ke.current,r=t.contextTypes,u=(r=r!=null)?$r(e,i):Bn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Da,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=u),t}function F4(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Da.enqueueReplaceState(t,t.state,null)}function Bl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=gp,qc(e);var u=t.contextType;typeof u=="object"&&u!==null?i.context=kt(u):(u=it(t)?sr:Ke.current,i.context=$r(e,u)),i.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Ll(e,t,u,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Da.enqueueReplaceState(i,i.state,null),Ks(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function gi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(H(309));var r=n.stateNode}if(!r)throw Error(H(147,e));var i=r,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(s){var a=i.refs;a===gp&&(a=i.refs={}),s===null?delete a[u]:a[u]=s},t._stringRef=u,t)}if(typeof e!="string")throw Error(H(284));if(!n._owner)throw Error(H(290,e))}return e}function Gu(e,t){throw e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function N4(e){var t=e._init;return t(e._payload)}function vp(e){function t(x,_){if(e){var w=x.deletions;w===null?(x.deletions=[_],x.flags|=16):w.push(_)}}function n(x,_){if(!e)return null;for(;_!==null;)t(x,_),_=_.sibling;return null}function r(x,_){for(x=new Map;_!==null;)_.key!==null?x.set(_.key,_):x.set(_.index,_),_=_.sibling;return x}function i(x,_){return x=Rn(x,_),x.index=0,x.sibling=null,x}function u(x,_,w){return x.index=w,e?(w=x.alternate,w!==null?(w=w.index,w<_?(x.flags|=2,_):w):(x.flags|=2,_)):(x.flags|=1048576,_)}function s(x){return e&&x.alternate===null&&(x.flags|=2),x}function a(x,_,w,T){return _===null||_.tag!==6?(_=_o(w,x.mode,T),_.return=x,_):(_=i(_,w),_.return=x,_)}function o(x,_,w,T){var D=w.type;return D===Sr?d(x,_,w.props.children,T,w.key):_!==null&&(_.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===yn&&N4(D)===_.type)?(T=i(_,w.props),T.ref=gi(x,_,w),T.return=x,T):(T=Ps(w.type,w.key,w.props,null,x.mode,T),T.ref=gi(x,_,w),T.return=x,T)}function l(x,_,w,T){return _===null||_.tag!==4||_.stateNode.containerInfo!==w.containerInfo||_.stateNode.implementation!==w.implementation?(_=wo(w,x.mode,T),_.return=x,_):(_=i(_,w.children||[]),_.return=x,_)}function d(x,_,w,T,D){return _===null||_.tag!==7?(_=rr(w,x.mode,T,D),_.return=x,_):(_=i(_,w),_.return=x,_)}function p(x,_,w){if(typeof _=="string"&&_!==""||typeof _=="number")return _=_o(""+_,x.mode,w),_.return=x,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case zu:return w=Ps(_.type,_.key,_.props,null,x.mode,w),w.ref=gi(x,null,_),w.return=x,w;case kr:return _=wo(_,x.mode,w),_.return=x,_;case yn:var T=_._init;return p(x,T(_._payload),w)}if(Fi(_)||di(_))return _=rr(_,x.mode,w,null),_.return=x,_;Gu(x,_)}return null}function g(x,_,w,T){var D=_!==null?_.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return D!==null?null:a(x,_,""+w,T);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case zu:return w.key===D?o(x,_,w,T):null;case kr:return w.key===D?l(x,_,w,T):null;case yn:return D=w._init,g(x,_,D(w._payload),T)}if(Fi(w)||di(w))return D!==null?null:d(x,_,w,T,null);Gu(x,w)}return null}function v(x,_,w,T,D){if(typeof T=="string"&&T!==""||typeof T=="number")return x=x.get(w)||null,a(_,x,""+T,D);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case zu:return x=x.get(T.key===null?w:T.key)||null,o(_,x,T,D);case kr:return x=x.get(T.key===null?w:T.key)||null,l(_,x,T,D);case yn:var S=T._init;return v(x,_,w,S(T._payload),D)}if(Fi(T)||di(T))return x=x.get(w)||null,d(_,x,T,D,null);Gu(_,T)}return null}function b(x,_,w,T){for(var D=null,S=null,y=_,f=_=0,m=null;y!==null&&f<w.length;f++){y.index>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&&Kn(x,f),D;if(y===null){for(;f<w.length;f++)y=p(x,w[f],T),y!==null&&(_=u(y,_,f),S===null?D=y:S.sibling=y,S=y);return he&&Kn(x,f),D}for(y=r(x,y);f<w.length;f++)m=v(y,x,f,w[f],T),m!==null&&(e&&m.alternate!==null&&y.delete(m.key===null?f:m.key),_=u(m,_,f),S===null?D=m:S.sibling=m,S=m);return e&&y.forEach(function(E){return t(x,E)}),he&&Kn(x,f),D}function k(x,_,w,T){var D=di(w);if(typeof D!="function")throw Error(H(150));if(w=D.call(w),w==null)throw Error(H(151));for(var S=D=null,y=_,f=_=0,m=null,h=w.next();y!==null&&!h.done;f++,h=w.next()){y.index>f?(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&&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),S===null?D=h:S.sibling=h,S=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),S===null?D=h:S.sibling=h,S=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===Sr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case zu:e:{for(var D=w.key,S=_;S!==null;){if(S.key===D){if(D=w.type,D===Sr){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===yn&&N4(D)===S.type){n(x,S.sibling),_=i(S,w.props),_.ref=gi(x,S,w),_.return=x,x=_;break e}n(x,S);break}else t(x,S);S=S.sibling}w.type===Sr?(_=rr(w.props.children,x.mode,T,w.key),_.return=x,x=_):(T=Ps(w.type,w.key,w.props,null,x.mode,T),T.ref=gi(x,_,w),T.return=x,x=T)}return s(x);case kr: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}_=wo(w,x.mode,T),_.return=x,x=_}return s(x);case yn:return S=w._init,O(x,_,S(w._payload),T)}if(Fi(w))return b(x,_,w,T);if(di(w))return k(x,_,w,T);Gu(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,_),_=_o(w,x.mode,T),_.return=x,x=_),s(x)):n(x,_)}return O}var Yr=vp(!0),bp=vp(!1),ku={},Yt=Vn(ku),lu=Vn(ku),cu=Vn(ku);function er(e){if(e===ku)throw Error(H(174));return e}function Xc(e,t){switch(le(cu,t),le(lu,e),le(Yt,ku),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ml(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ml(t,e)}fe(Yt),le(Yt,t)}function qr(){fe(Yt),fe(lu),fe(cu)}function xp(e){er(cu.current);var t=er(Yt.current),n=ml(t,e.type);t!==n&&(le(lu,e),le(Yt,n))}function Gc(e){lu.current===e&&(fe(Yt),fe(lu))}var me=Vn(0);function Ys(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 go=[];function Qc(){for(var e=0;e<go.length;e++)go[e]._workInProgressVersionPrimary=null;go.length=0}var _s=dn.ReactCurrentDispatcher,yo=dn.ReactCurrentBatchConfig,or=0,ge=null,Pe=null,Ne=null,qs=!1,Ui=!1,du=0,pv=0;function ze(){throw Error(H(321))}function Jc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bt(e[n],t[n]))return!1;return!0}function Zc(e,t,n,r,i,u){if(or=u,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_s.current=e===null||e.memoizedState===null?vv:bv,e=n(r,i),Ui){u=0;do{if(Ui=!1,du=0,25<=u)throw Error(H(301));u+=1,Ne=Pe=null,t.updateQueue=null,_s.current=xv,e=n(r,i)}while(Ui)}if(_s.current=Xs,t=Pe!==null&&Pe.next!==null,or=0,Ne=Pe=ge=null,qs=!1,t)throw Error(H(300));return e}function e0(){var e=du!==0;return du=0,e}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ne===null?ge.memoizedState=Ne=e:Ne=Ne.next=e,Ne}function St(){if(Pe===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=Ne===null?ge.memoizedState:Ne.next;if(t!==null)Ne=t,Pe=e;else{if(e===null)throw Error(H(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},Ne===null?ge.memoizedState=Ne=e:Ne=Ne.next=e}return Ne}function fu(e,t){return typeof t=="function"?t(e):t}function vo(e){var t=St(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=Pe,i=r.baseQueue,u=n.pending;if(u!==null){if(i!==null){var s=i.next;i.next=u.next,u.next=s}r.baseQueue=i=u,n.pending=null}if(i!==null){u=i.next,r=r.baseState;var a=s=null,o=null,l=u;do{var d=l.lane;if((or&d)===d)o!==null&&(o=o.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var p={lane:d,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};o===null?(a=o=p,s=r):o=o.next=p,ge.lanes|=d,lr|=d}l=l.next}while(l!==null&&l!==u);o===null?s=r:o.next=a,Bt(r,t.memoizedState)||(nt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=o,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do u=i.lane,ge.lanes|=u,lr|=u,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function bo(e){var t=St(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,u=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do u=e(u,s.action),s=s.next;while(s!==i);Bt(u,t.memoizedState)||(nt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,r]}function Ep(){}function _p(e,t){var n=ge,r=St(),i=t(),u=!Bt(r.memoizedState,i);if(u&&(r.memoizedState=i,nt=!0),r=r.queue,t0(kp.bind(null,n,r,e),[e]),r.getSnapshot!==t||u||Ne!==null&&Ne.memoizedState.tag&1){if(n.flags|=2048,hu(9,Dp.bind(null,n,r,i,t),void 0,null),Ae===null)throw Error(H(349));(or&30)!==0||wp(n,t,i)}return i}function wp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Dp(e,t,n,r){t.value=n,t.getSnapshot=r,Sp(t)&&Pp(e)}function kp(e,t,n){return n(function(){Sp(t)&&Pp(e)})}function Sp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bt(e,n)}catch{return!0}}function Pp(e){var t=ln(e,1);t!==null&&Lt(t,e,1,-1)}function A4(e){var t=Wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fu,lastRenderedState:e},t.queue=e,e=e.dispatch=yv.bind(null,ge,e),[t.memoizedState,e]}function hu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Cp(){return St().memoizedState}function ws(e,t,n,r){var i=Wt();ge.flags|=e,i.memoizedState=hu(1|t,n,void 0,r===void 0?null:r)}function ka(e,t,n,r){var i=St();r=r===void 0?null:r;var u=void 0;if(Pe!==null){var s=Pe.memoizedState;if(u=s.destroy,r!==null&&Jc(r,s.deps)){i.memoizedState=hu(t,n,u,r);return}}ge.flags|=e,i.memoizedState=hu(1|t,n,u,r)}function R4(e,t){return ws(8390656,8,e,t)}function t0(e,t){return ka(2048,8,e,t)}function Op(e,t){return ka(4,2,e,t)}function Fp(e,t){return ka(4,4,e,t)}function Np(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ap(e,t,n){return n=n!=null?n.concat([e]):null,ka(4,4,Np.bind(null,t,e),n)}function n0(){}function Rp(e,t){var n=St();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Tp(e,t){var n=St();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Mp(e,t,n){return(or&21)===0?(e.baseState&&(e.baseState=!1,nt=!0),e.memoizedState=n):(Bt(n,t)||(n=Ih(),ge.lanes|=n,lr|=n,e.baseState=!0),t)}function mv(e,t){var n=se;se=n!==0&&4>n?n:4,e(!0);var r=yo.transition;yo.transition={};try{e(!1),t()}finally{se=n,yo.transition=r}}function Lp(){return St().memoizedState}function gv(e,t,n){var r=An(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Bp(e))Ip(t,n);else if(n=pp(e,t,n,r),n!==null){var i=Ge();Lt(n,e,r,i),zp(n,t,r)}}function yv(e,t,n){var r=An(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bp(e))Ip(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,Yc(t)):(i.next=o.next,o.next=i),t.interleaved=i;return}}catch{}finally{}n=pp(e,t,i,r),n!==null&&(i=Ge(),Lt(n,e,r,i),zp(n,t,r))}}function Bp(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Ip(e,t){Ui=qs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zp(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rc(e,n)}}var Xs={readContext:kt,useCallback:ze,useContext:ze,useEffect:ze,useImperativeHandle:ze,useInsertionEffect:ze,useLayoutEffect:ze,useMemo:ze,useReducer:ze,useRef:ze,useState:ze,useDebugValue:ze,useDeferredValue:ze,useTransition:ze,useMutableSource:ze,useSyncExternalStore:ze,useId:ze,unstable_isNewReconciler:!1},vv={readContext:kt,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:R4,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ws(4194308,4,Np.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ws(4194308,4,e,t)},useInsertionEffect:function(e,t){return ws(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=gv.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:A4,useDebugValue:n0,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=A4(!1),t=e[0];return e=mv.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(),Ae===null)throw Error(H(349));(or&30)!==0||wp(r,t,n)}i.memoizedState=n;var u={value:n,getSnapshot:t};return i.queue=u,R4(kp.bind(null,r,u,e),[e]),r.flags|=2048,hu(9,Dp.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=Wt(),t=Ae.identifierPrefix;if(he){var n=rn,r=nn;n=(r&~(1<<32-Mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=du++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=pv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},bv={readContext:kt,useCallback:Rp,useContext:kt,useEffect:t0,useImperativeHandle:Ap,useInsertionEffect:Op,useLayoutEffect:Fp,useMemo:Tp,useReducer:vo,useRef:Cp,useState:function(){return vo(fu)},useDebugValue:n0,useDeferredValue:function(e){var t=St();return Mp(t,Pe.memoizedState,e)},useTransition:function(){var e=vo(fu)[0],t=St().memoizedState;return[e,t]},useMutableSource:Ep,useSyncExternalStore:_p,useId:Lp,unstable_isNewReconciler:!1},xv={readContext:kt,useCallback:Rp,useContext:kt,useEffect:t0,useImperativeHandle:Ap,useInsertionEffect:Op,useLayoutEffect:Fp,useMemo:Tp,useReducer:bo,useRef:Cp,useState:function(){return bo(fu)},useDebugValue:n0,useDeferredValue:function(e){var t=St();return Pe===null?t.memoizedState=e:Mp(t,Pe.memoizedState,e)},useTransition:function(){var e=bo(fu)[0],t=St().memoizedState;return[e,t]},useMutableSource:Ep,useSyncExternalStore:_p,useId:Lp,unstable_isNewReconciler:!1};function Xr(e,t){try{var n="",r=t;do n+=qg(r),r=r.return;while(r);var i=n}catch(u){i=`
Error generating stack: `+u.message+`
`+u.stack}return{value:e,source:t,stack:i,digest:null}}function xo(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function Il(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ev=typeof WeakMap=="function"?WeakMap:Map;function jp(e,t,n){n=un(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qs||(Qs=!0,ql=r),Il(e,t)},n}function Vp(e,t,n){n=un(-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(){Il(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Il(e,t),typeof r!="function"&&(Nn===null?Nn=new Set([this]):Nn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function T4(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ev;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=Mv.bind(null,e,t,n),t.then(e,e))}function M4(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 L4(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=un(-1,1),t.tag=2,Fn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var _v=dn.ReactCurrentOwner,nt=!1;function Xe(e,t,n,r){t.child=e===null?bp(t,null,n,r):Yr(t,e.child,n,r)}function B4(e,t,n,r,i){n=n.render;var u=t.ref;return Vr(t,i),r=Zc(e,t,n,r,u,i),n=e0(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,cn(e,t,i)):(he&&n&&Vc(t),t.flags|=1,Xe(e,t,r,i),t.child)}function I4(e,t,n,r,i){if(e===null){var u=n.type;return typeof u=="function"&&!c0(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Up(e,t,u,r,i)):(e=Ps(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:uu,n(s,r)&&e.ref===t.ref)return cn(e,t,i)}return t.flags|=1,e=Rn(u,r),e.ref=t.ref,e.return=t,t.child=e}function Up(e,t,n,r,i){if(e!==null){var u=e.memoizedProps;if(uu(u,r)&&e.ref===t.ref)if(nt=!1,t.pendingProps=r=u,(e.lanes&i)!==0)(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,cn(e,t,i)}return zl(e,t,n,r,i)}function Wp(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(Lr,ot),ot|=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(Lr,ot),ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,le(Lr,ot),ot|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,le(Lr,ot),ot|=r;return Xe(e,t,i,n),t.child}function Hp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function zl(e,t,n,r,i){var u=it(n)?sr:Ke.current;return u=$r(t,u),Vr(t,i),n=Zc(e,t,n,r,u,i),r=e0(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,cn(e,t,i)):(he&&r&&Vc(t),t.flags|=1,Xe(e,t,n,i),t.child)}function z4(e,t,n,r,i){if(it(n)){var u=!0;Vs(t)}else u=!1;if(Vr(t,i),t.stateNode===null)Ds(e,t),yp(t,n,r),Bl(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=kt(l):(l=it(n)?sr:Ke.current,l=$r(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)&&F4(t,s,r,l),vn=!1;var g=t.memoizedState;s.state=g,Ks(t,r,s,i),o=t.memoizedState,a!==r||g!==o||rt.current||vn?(typeof d=="function"&&(Ll(t,n,d,r),o=t.memoizedState),(a=vn||O4(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,mp(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:Ft(t.type,a),s.props=l,p=t.pendingProps,g=s.context,o=n.contextType,typeof o=="object"&&o!==null?o=kt(o):(o=it(n)?sr:Ke.current,o=$r(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)&&F4(t,s,r,o),vn=!1,g=t.memoizedState,s.state=g,Ks(t,r,s,i);var b=t.memoizedState;a!==p||g!==b||rt.current||vn?(typeof v=="function"&&(Ll(t,n,v,r),b=t.memoizedState),(l=vn||O4(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 jl(e,t,n,r,u,i)}function jl(e,t,n,r,i,u){Hp(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&D4(t,n,!1),cn(e,t,u);r=t.stateNode,_v.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Yr(t,e.child,null,u),t.child=Yr(t,null,a,u)):Xe(e,t,a,u),t.memoizedState=r.state,i&&D4(t,n,!0),t.child}function $p(e){var t=e.stateNode;t.pendingContext?w4(e,t.pendingContext,t.pendingContext!==t.context):t.context&&w4(e,t.context,!1),Xc(e,t.containerInfo)}function j4(e,t,n,r,i){return Kr(),Wc(i),t.flags|=256,Xe(e,t,n,r),t.child}var Vl={dehydrated:null,treeContext:null,retryLane:0};function Ul(e){return{baseLanes:e,cachePool:null,transitions:null}}function Kp(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 Tl(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=Ca(s,r,0,null),e=rr(e,r,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Ul(n),t.memoizedState=Vl,e):r0(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return wv(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=Rn(i,o),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?u=Rn(a,u):(u=rr(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?Ul(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},u.memoizedState=s,u.childLanes=e.childLanes&~n,t.memoizedState=Vl,r}return u=e.child,e=u.sibling,r=Rn(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 r0(e,t){return t=Ca({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qu(e,t,n,r){return r!==null&&Wc(r),Yr(t,e.child,null,n),e=r0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wv(e,t,n,r,i,u,s){if(n)return t.flags&256?(t.flags&=-257,r=xo(Error(H(422))),Qu(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=r.fallback,i=t.mode,r=Ca({mode:"visible",children:r.children},i,0,null),u=rr(u,i,s,null),u.flags|=2,r.return=t,u.return=t,r.sibling=u,t.child=r,(t.mode&1)!==0&&Yr(t,e.child,null,s),t.child.memoizedState=Ul(s),t.memoizedState=Vl,u);if((t.mode&1)===0)return Qu(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=xo(u,r,void 0),Qu(e,t,s,r)}if(a=(s&e.childLanes)!==0,nt||a){if(r=Ae,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,ln(e,i),Lt(r,e,i,-1))}return l0(),r=xo(Error(H(421))),Qu(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Lv.bind(null,e),i._reactRetry=t,null):(e=u.treeContext,lt=On(i.nextSibling),dt=t,he=!0,Rt=null,e!==null&&(bt[xt++]=nn,bt[xt++]=rn,bt[xt++]=ar,nn=e.id,rn=e.overflow,ar=t),t=r0(t,r.children),t.flags|=4096,t)}function V4(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ml(e.return,t,n)}function Eo(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 Yp(e,t,n){var r=t.pendingProps,i=r.revealOrder,u=r.tail;if(Xe(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&&V4(e,n,t);else if(e.tag===19)V4(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&&Ys(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Eo(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&&Ys(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Eo(t,!0,n,null,u);break;case"together":Eo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ds(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),lr|=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=Rn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Rn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Dv(e,t,n){switch(t.tag){case 3:$p(t),Kr();break;case 5:xp(t);break;case 1:it(t.type)&&Vs(t);break;case 4:Xc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;le(Hs,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?Kp(e,t,n):(le(me,me.current&1),e=cn(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 Yp(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,Wp(e,t,n)}return cn(e,t,n)}var qp,Wl,Xp,Gp;qp=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}};Wl=function(){};Xp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,er(Yt.current);var u=null;switch(n){case"input":i=dl(e,i),r=dl(e,r),u=[];break;case"select":i=ye({},i,{value:void 0}),r=ye({},r,{value:void 0}),u=[];break;case"textarea":i=pl(e,i),r=pl(e,r),u=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=zs)}gl(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"&&(Ji.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"&&(Ji.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)}};Gp=function(e,t,n,r){n!==r&&(t.flags|=4)};function yi(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 je(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 kv(e,t,n){var r=t.pendingProps;switch(Uc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(t),null;case 1:return it(t.type)&&js(),je(t),null;case 3:return r=t.stateNode,qr(),fe(rt),fe(Ke),Qc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Xu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Rt!==null&&(Ql(Rt),Rt=null))),Wl(e,t),je(t),null;case 5:Gc(t);var i=er(cu.current);if(n=t.type,e!==null&&t.stateNode!=null)Xp(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 je(t),null}if(e=er(Yt.current),Xu(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[Ht]=t,r[ou]=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<Ai.length;i++)de(Ai[i],r);break;case"source":de("error",r);break;case"img":case"image":case"link":de("error",r),de("load",r);break;case"details":de("toggle",r);break;case"input":G0(r,u),de("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},de("invalid",r);break;case"textarea":J0(r,u),de("invalid",r)}gl(n,u),i=null;for(var s in u)if(u.hasOwnProperty(s)){var a=u[s];s==="children"?typeof a=="string"?r.textContent!==a&&(u.suppressHydrationWarning!==!0&&qu(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(u.suppressHydrationWarning!==!0&&qu(r.textContent,a,e),i=["children",""+a]):Ji.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&de("scroll",r)}switch(n){case"input":ju(r),Q0(r,u,!0);break;case"textarea":ju(r),Z0(r);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(r.onclick=zs)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=wh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/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[ou]=r,qp(e,t,!1,!1),t.stateNode=e;e:{switch(s=yl(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;i<Ai.length;i++)de(Ai[i],e);i=r;break;case"source":de("error",e),i=r;break;case"img":case"image":case"link":de("error",e),de("load",e),i=r;break;case"details":de("toggle",e),i=r;break;case"input":G0(e,r),i=dl(e,r),de("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ye({},r,{value:void 0}),de("invalid",e);break;case"textarea":J0(e,r),i=pl(e,r),de("invalid",e);break;default:i=r}gl(n,i),a=i;for(u in a)if(a.hasOwnProperty(u)){var o=a[u];u==="style"?Sh(e,o):u==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,o!=null&&Dh(e,o)):u==="children"?typeof o=="string"?(n!=="textarea"||o!=="")&&Zi(e,o):typeof o=="number"&&Zi(e,""+o):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ji.hasOwnProperty(u)?o!=null&&u==="onScroll"&&de("scroll",e):o!=null&&Pc(e,u,o,s))}switch(n){case"input":ju(e),Q0(e,r,!1);break;case"textarea":ju(e),Z0(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ln(r.value));break;case"select":e.multiple=!!r.multiple,u=r.value,u!=null?Br(e,!!r.multiple,u,!1):r.defaultValue!=null&&Br(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=zs)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return je(t),null;case 6:if(e&&t.stateNode!=null)Gp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(n=er(cu.current),er(Yt.current),Xu(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ht]=t,(u=r.nodeValue!==n)&&(e=dt,e!==null))switch(e.tag){case 3:qu(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qu(r.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ht]=t,t.stateNode=r}return je(t),null;case 13:if(fe(me),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&lt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)hp(),Kr(),t.flags|=98560,u=!1;else if(u=Xu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(H(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(H(317));u[Ht]=t}else Kr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;je(t),u=!1}else Rt!==null&&(Ql(Rt),Rt=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(me.current&1)!==0?Ce===0&&(Ce=3):l0())),t.updateQueue!==null&&(t.flags|=4),je(t),null);case 4:return qr(),Wl(e,t),e===null&&su(t.stateNode.containerInfo),je(t),null;case 10:return Kc(t.type._context),je(t),null;case 17:return it(t.type)&&js(),je(t),null;case 19:if(fe(me),u=t.memoizedState,u===null)return je(t),null;if(r=(t.flags&128)!==0,s=u.rendering,s===null)if(r)yi(u,!1);else{if(Ce!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Ys(e),s!==null){for(t.flags|=128,yi(u,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)u=n,e=r,u.flags&=14680066,s=u.alternate,s===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=s.childLanes,u.lanes=s.lanes,u.child=s.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=s.memoizedProps,u.memoizedState=s.memoizedState,u.updateQueue=s.updateQueue,u.type=s.type,e=s.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return le(me,me.current&1|2),t.child}e=e.sibling}u.tail!==null&&De()>Gr&&(t.flags|=128,r=!0,yi(u,!1),t.lanes=4194304)}else{if(!r)if(e=Ys(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yi(u,!0),u.tail===null&&u.tailMode==="hidden"&&!s.alternate&&!he)return je(t),null}else 2*De()-u.renderingStartTime>Gr&&n!==1073741824&&(t.flags|=128,r=!0,yi(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):(je(t),null);case 22:case 23:return o0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(ot&1073741824)!==0&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function Sv(e,t){switch(Uc(t),t.tag){case 1:return it(t.type)&&js(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qr(),fe(rt),fe(Ke),Qc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Gc(t),null;case 13:if(fe(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Kr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(me),null;case 4:return qr(),null;case 10:return Kc(t.type._context),null;case 22:case 23:return o0(),null;case 24:return null;default:return null}}var Ju=!1,We=!1,Pv=typeof WeakSet=="function"?WeakSet:Set,$=null;function Mr(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 Hl(e,t,n){try{n()}catch(r){xe(e,t,r)}}var U4=!1;function Cv(e,t){if(Pl=Ls,e=ep(),jc(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(Cl={focusedElem:e,selectionRange:n},Ls=!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=U4,U4=!1,b}function Wi(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&&Hl(t,n,u)}i=i.next}while(i!==r)}}function Sa(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 $l(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 Qp(e){var t=e.alternate;t!==null&&(e.alternate=null,Qp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ht],delete t[ou],delete t[Nl],delete t[cv],delete t[dv])),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 Jp(e){return e.tag===5||e.tag===3||e.tag===4}function W4(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jp(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 Kl(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=zs));else if(r!==4&&(e=e.child,e!==null))for(Kl(e,t,n),e=e.sibling;e!==null;)Kl(e,t,n),e=e.sibling}function Yl(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(Yl(e,t,n),e=e.sibling;e!==null;)Yl(e,t,n),e=e.sibling}var Me=null,Nt=!1;function mn(e,t,n){for(n=n.child;n!==null;)Zp(e,t,n),n=n.sibling}function Zp(e,t,n){if(Kt&&typeof Kt.onCommitFiberUnmount=="function")try{Kt.onCommitFiberUnmount(va,n)}catch{}switch(n.tag){case 5:We||Mr(n,t);case 6:var r=Me,i=Nt;Me=null,mn(e,t,n),Me=r,Nt=i,Me!==null&&(Nt?(e=Me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&&(Nt?(e=Me,n=n.stateNode,e.nodeType===8?po(e.parentNode,n):e.nodeType===1&&po(e,n),ru(e)):po(Me,n.stateNode));break;case 4:r=Me,i=Nt,Me=n.stateNode.containerInfo,Nt=!0,mn(e,t,n),Me=r,Nt=i;break;case 0:case 11:case 14:case 15:if(!We&&(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)&&Hl(n,t,s),i=i.next}while(i!==r)}mn(e,t,n);break;case 1:if(!We&&(Mr(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?(We=(r=We)||n.memoizedState!==null,mn(e,t,n),We=r):mn(e,t,n);break;default:mn(e,t,n)}}function H4(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Pv),t.forEach(function(r){var i=Bv.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;r<n.length;r++){var i=n[r];try{var u=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Me=a.stateNode,Nt=!1;break e;case 3:Me=a.stateNode.containerInfo,Nt=!0;break e;case 4:Me=a.stateNode.containerInfo,Nt=!0;break e}a=a.return}if(Me===null)throw Error(H(160));Zp(u,s,i),Me=null,Nt=!1;var o=i.alternate;o!==null&&(o.return=null),i.return=null}catch(l){xe(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)e3(t,e),t=t.sibling}function e3(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ot(t,e),Vt(e),r&4){try{Wi(3,e,e.return),Sa(3,e)}catch(k){xe(e,e.return,k)}try{Wi(5,e,e.return)}catch(k){xe(e,e.return,k)}}break;case 1:Ot(t,e),Vt(e),r&512&&n!==null&&Mr(n,n.return);break;case 5:if(Ot(t,e),Vt(e),r&512&&n!==null&&Mr(n,n.return),e.flags&32){var i=e.stateNode;try{Zi(i,"")}catch(k){xe(e,e.return,k)}}if(r&4&&(i=e.stateNode,i!=null)){var u=e.memoizedProps,s=n!==null?n.memoizedProps:u,a=e.type,o=e.updateQueue;if(e.updateQueue=null,o!==null)try{a==="input"&&u.type==="radio"&&u.name!=null&&Eh(i,u),yl(a,s);var l=yl(a,u);for(s=0;s<o.length;s+=2){var d=o[s],p=o[s+1];d==="style"?Sh(i,p):d==="dangerouslySetInnerHTML"?Dh(i,p):d==="children"?Zi(i,p):Pc(i,d,p,l)}switch(a){case"input":fl(i,u);break;case"textarea":_h(i,u);break;case"select":var g=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!u.multiple;var v=u.value;v!=null?Br(i,!!u.multiple,v,!1):g!==!!u.multiple&&(u.defaultValue!=null?Br(i,!!u.multiple,u.defaultValue,!0):Br(i,!!u.multiple,u.multiple?[]:"",!1))}i[ou]=u}catch(k){xe(e,e.return,k)}}break;case 6:if(Ot(t,e),Vt(e),r&4){if(e.stateNode===null)throw Error(H(162));i=e.stateNode,u=e.memoizedProps;try{i.nodeValue=u}catch(k){xe(e,e.return,k)}}break;case 3:if(Ot(t,e),Vt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ru(t.containerInfo)}catch(k){xe(e,e.return,k)}break;case 4:Ot(t,e),Vt(e);break;case 13:Ot(t,e),Vt(e),i=e.child,i.flags&8192&&(u=i.memoizedState!==null,i.stateNode.isHidden=u,!u||i.alternate!==null&&i.alternate.memoizedState!==null||(s0=De())),r&4&&H4(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(We=(l=We)||d,Ot(t,e),We=l):Ot(t,e),Vt(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!d&&(e.mode&1)!==0)for($=e,d=e.child;d!==null;){for(p=$=d;$!==null;){switch(g=$,v=g.child,g.tag){case 0:case 11:case 14:case 15:Wi(4,g,g.return);break;case 1:Mr(g,g.return);var b=g.stateNode;if(typeof b.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(k){xe(r,n,k)}}break;case 5:Mr(g,g.return);break;case 22:if(g.memoizedState!==null){K4(p);continue}}v!==null?(v.return=g,$=v):K4(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{i=p.stateNode,l?(u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(a=p.stateNode,o=p.memoizedProps.style,s=o!=null&&o.hasOwnProperty("display")?o.display:null,a.style.display=kh("display",s))}catch(k){xe(e,e.return,k)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=l?"":p.memoizedProps}catch(k){xe(e,e.return,k)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Ot(t,e),Vt(e),r&4&&H4(e);break;case 21:break;default:Ot(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Jp(n)){var r=n;break e}n=n.return}throw Error(H(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Zi(i,""),r.flags&=-33);var u=W4(e);Yl(e,u,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=W4(e);Kl(e,a,s);break;default:throw Error(H(161))}}catch(o){xe(e,e.return,o)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ov(e,t,n){$=e,t3(e)}function t3(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var i=$,u=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Ju;if(!s){var a=i.alternate,o=a!==null&&a.memoizedState!==null||We;a=Ju;var l=We;if(Ju=s,(We=o)&&!l)for($=i;$!==null;)s=$,o=s.child,s.tag===22&&s.memoizedState!==null?Y4(i):o!==null?(o.return=s,$=o):Y4(i);for(;u!==null;)$=u,t3(u),u=u.sibling;$=i,Ju=a,We=l}$4(e)}else(i.subtreeFlags&8772)!==0&&u!==null?(u.return=i,$=u):$4(e)}}function $4(e){for(;$!==null;){var t=$;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:We||Sa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!We)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ft(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&C4(t,u,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}C4(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var o=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":o.autoFocus&&n.focus();break;case"img":o.src&&(n.src=o.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var d=l.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&ru(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(H(163))}We||t.flags&512&&$l(t)}catch(g){xe(t,t.return,g)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function K4(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function Y4(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Sa(4,t)}catch(o){xe(t,n,o)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(o){xe(t,i,o)}}var u=t.return;try{$l(t)}catch(o){xe(t,u,o)}break;case 5:var s=t.return;try{$l(t)}catch(o){xe(t,s,o)}}}catch(o){xe(t,t.return,o)}if(t===e){$=null;break}var a=t.sibling;if(a!==null){a.return=t.return,$=a;break}$=t.return}}var Fv=Math.ceil,Gs=dn.ReactCurrentDispatcher,i0=dn.ReactCurrentOwner,wt=dn.ReactCurrentBatchConfig,te=0,Ae=null,ke=null,Le=0,ot=0,Lr=Vn(0),Ce=0,pu=null,lr=0,Pa=0,u0=0,Hi=null,et=null,s0=0,Gr=1/0,Zt=null,Qs=!1,ql=null,Nn=null,Zu=!1,_n=null,Js=0,$i=0,Xl=null,ks=-1,Ss=0;function Ge(){return(te&6)!==0?De():ks!==-1?ks:ks=De()}function An(e){return(e.mode&1)===0?1:(te&2)!==0&&Le!==0?Le&-Le:hv.transition!==null?(Ss===0&&(Ss=Ih()),Ss):(e=se,e!==0||(e=window.event,e=e===void 0?16:$h(e.type)),e)}function Lt(e,t,n,r){if(50<$i)throw $i=0,Xl=null,Error(H(185));_u(e,n,r),((te&2)===0||e!==Ae)&&(e===Ae&&((te&2)===0&&(Pa|=n),Ce===4&&xn(e,Le)),ut(e,r),n===1&&te===0&&(t.mode&1)===0&&(Gr=De()+500,wa&&Un()))}function ut(e,t){var n=e.callbackNode;hy(e,t);var r=Ms(e,e===Ae?Le:0);if(r===0)n!==null&&n4(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&n4(n),t===1)e.tag===0?fv(q4.bind(null,e)):cp(q4.bind(null,e)),ov(function(){(te&6)===0&&Un()}),n=null;else{switch(zh(r)){case 1:n=Ac;break;case 4:n=Lh;break;case 16:n=Ts;break;case 536870912:n=Bh;break;default:n=Ts}n=l3(n,n3.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function n3(e,t){if(ks=-1,Ss=0,(te&6)!==0)throw Error(H(327));var n=e.callbackNode;if(Ur()&&e.callbackNode!==n)return null;var r=Ms(e,e===Ae?Le:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Zs(e,r);else{t=r;var i=te;te|=2;var u=i3();(Ae!==e||Le!==t)&&(Zt=null,Gr=De()+500,nr(e,t));do try{Rv();break}catch(a){r3(e,a)}while(1);$c(),Gs.current=u,te=i,ke!==null?t=0:(Ae=null,Le=0,t=Ce)}if(t!==0){if(t===2&&(i=_l(e),i!==0&&(r=i,t=Gl(e,i))),t===1)throw n=pu,nr(e,0),xn(e,r),ut(e,De()),n;if(t===6)xn(e,r);else{if(i=e.current.alternate,(r&30)===0&&!Nv(i)&&(t=Zs(e,r),t===2&&(u=_l(e),u!==0&&(r=u,t=Gl(e,u))),t===1))throw n=pu,nr(e,0),xn(e,r),ut(e,De()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(H(345));case 2:Yn(e,et,Zt);break;case 3:if(xn(e,r),(r&130023424)===r&&(t=s0+500-De(),10<t)){if(Ms(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ge(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Fl(Yn.bind(null,e,et,Zt),t);break}Yn(e,et,Zt);break;case 4:if(xn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Mt(r);u=1<<s,s=t[s],s>i&&(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*Fv(r/1960))-r,10<r){e.timeoutHandle=Fl(Yn.bind(null,e,et,Zt),r);break}Yn(e,et,Zt);break;case 5:Yn(e,et,Zt);break;default:throw Error(H(329))}}}return ut(e,De()),e.callbackNode===n?n3.bind(null,e):null}function Gl(e,t){var n=Hi;return e.current.memoizedState.isDehydrated&&(nr(e,t).flags|=256),e=Zs(e,t),e!==2&&(t=et,et=n,t!==null&&Ql(t)),e}function Ql(e){et===null?et=e:et.push.apply(et,e)}function Nv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],u=i.getSnapshot;i=i.value;try{if(!Bt(u(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xn(e,t){for(t&=~u0,t&=~Pa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Mt(t),r=1<<n;e[n]=-1,t&=~r}}function q4(e){if((te&6)!==0)throw Error(H(327));Ur();var t=Ms(e,0);if((t&1)===0)return ut(e,De()),null;var n=Zs(e,t);if(e.tag!==0&&n===2){var r=_l(e);r!==0&&(t=r,n=Gl(e,r))}if(n===1)throw n=pu,nr(e,0),xn(e,t),ut(e,De()),n;if(n===6)throw Error(H(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Yn(e,et,Zt),ut(e,De()),null}function a0(e,t){var n=te;te|=1;try{return e(t)}finally{te=n,te===0&&(Gr=De()+500,wa&&Un())}}function cr(e){_n!==null&&_n.tag===0&&(te&6)===0&&Ur();var t=te;te|=1;var n=wt.transition,r=se;try{if(wt.transition=null,se=1,e)return e()}finally{se=r,wt.transition=n,te=t,(te&6)===0&&Un()}}function o0(){ot=Lr.current,fe(Lr)}function nr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,av(n)),ke!==null)for(n=ke.return;n!==null;){var r=n;switch(Uc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&js();break;case 3:qr(),fe(rt),fe(Ke),Qc();break;case 5:Gc(r);break;case 4:qr();break;case 13:fe(me);break;case 19:fe(me);break;case 10:Kc(r.type._context);break;case 22:case 23:o0()}n=n.return}if(Ae=e,ke=e=Rn(e.current,null),Le=ot=t,Ce=0,pu=null,u0=Pa=lr=0,et=Hi=null,Zn!==null){for(t=0;t<Zn.length;t++)if(n=Zn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,u=n.pending;if(u!==null){var s=u.next;u.next=i,r.next=s}n.pending=r}Zn=null}return e}function r3(e,t){do{var n=ke;try{if($c(),_s.current=Xs,qs){for(var r=ge.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}qs=!1}if(or=0,Ne=Pe=ge=null,Ui=!1,du=0,i0.current=null,n===null||n.return===null){Ce=1,pu=t,ke=null;break}e:{var u=e,s=n.return,a=n,o=t;if(t=Le,a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){var l=o,d=a,p=d.tag;if((d.mode&1)===0&&(p===0||p===11||p===15)){var g=d.alternate;g?(d.updateQueue=g.updateQueue,d.memoizedState=g.memoizedState,d.lanes=g.lanes):(d.updateQueue=null,d.memoizedState=null)}var v=M4(s);if(v!==null){v.flags&=-257,L4(v,s,a,u,t),v.mode&1&&T4(u,l,t),t=v,o=l;var b=t.updateQueue;if(b===null){var k=new Set;k.add(o),t.updateQueue=k}else b.add(o);break e}else{if((t&1)===0){T4(u,l,t),l0();break e}o=Error(H(426))}}else if(he&&a.mode&1){var O=M4(s);if(O!==null){(O.flags&65536)===0&&(O.flags|=256),L4(O,s,a,u,t),Wc(Xr(o,a));break e}}u=o=Xr(o,a),Ce!==4&&(Ce=2),Hi===null?Hi=[u]:Hi.push(u),u=s;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var x=jp(u,o,t);P4(u,x);break e;case 1:a=o;var _=u.type,w=u.stateNode;if((u.flags&128)===0&&(typeof _.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Nn===null||!Nn.has(w)))){u.flags|=65536,t&=-t,u.lanes|=t;var T=Vp(u,a,t);P4(u,T);break e}}u=u.return}while(u!==null)}s3(n)}catch(D){t=D,ke===n&&n!==null&&(ke=n=n.return);continue}break}while(1)}function i3(){var e=Gs.current;return Gs.current=Xs,e===null?Xs:e}function l0(){(Ce===0||Ce===3||Ce===2)&&(Ce=4),Ae===null||(lr&268435455)===0&&(Pa&268435455)===0||xn(Ae,Le)}function Zs(e,t){var n=te;te|=2;var r=i3();(Ae!==e||Le!==t)&&(Zt=null,nr(e,t));do try{Av();break}catch(i){r3(e,i)}while(1);if($c(),te=n,Gs.current=r,ke!==null)throw Error(H(261));return Ae=null,Le=0,Ce}function Av(){for(;ke!==null;)u3(ke)}function Rv(){for(;ke!==null&&!iy();)u3(ke)}function u3(e){var t=o3(e.alternate,e,ot);e.memoizedProps=e.pendingProps,t===null?s3(e):ke=t,i0.current=null}function s3(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=kv(n,t,ot),n!==null){ke=n;return}}else{if(n=Sv(n,t),n!==null){n.flags&=32767,ke=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ce=6,ke=null;return}}if(t=t.sibling,t!==null){ke=t;return}ke=t=e}while(t!==null);Ce===0&&(Ce=5)}function Yn(e,t,n){var r=se,i=wt.transition;try{wt.transition=null,se=1,Tv(e,t,n,r)}finally{wt.transition=i,se=r}return null}function Tv(e,t,n,r){do Ur();while(_n!==null);if((te&6)!==0)throw Error(H(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(H(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(py(e,u),e===Ae&&(ke=Ae=null,Le=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Zu||(Zu=!0,l3(Ts,function(){return Ur(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=wt.transition,wt.transition=null;var s=se;se=1;var a=te;te|=4,i0.current=null,Cv(e,n),e3(n,e),ev(Cl),Ls=!!Pl,Cl=Pl=null,e.current=n,Ov(n),uy(),te=a,se=s,wt.transition=u}else e.current=n;if(Zu&&(Zu=!1,_n=e,Js=i),u=e.pendingLanes,u===0&&(Nn=null),oy(n.stateNode),ut(e,De()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Qs)throw Qs=!1,e=ql,ql=null,e;return(Js&1)!==0&&e.tag!==0&&Ur(),u=e.pendingLanes,(u&1)!==0?e===Xl?$i++:($i=0,Xl=e):$i=0,Un(),null}function Ur(){if(_n!==null){var e=zh(Js),t=wt.transition,n=se;try{if(wt.transition=null,se=16>e?16:e,_n===null)var r=!1;else{if(e=_n,_n=null,Js=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;o<a.length;o++){var l=a[o];for($=l;$!==null;){var d=$;switch(d.tag){case 0:case 11:case 15:Wi(8,d,u)}var p=d.child;if(p!==null)p.return=d,$=p;else for(;$!==null;){d=$;var g=d.sibling,v=d.return;if(Qp(d),d===l){$=null;break}if(g!==null){g.return=v,$=g;break}$=v}}}var b=u.alternate;if(b!==null){var k=b.child;if(k!==null){b.child=null;do{var O=k.sibling;k.sibling=null,k=O}while(k!==null)}}$=u}}if((u.subtreeFlags&2064)!==0&&s!==null)s.return=u,$=s;else e:for(;$!==null;){if(u=$,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:Wi(9,u,u.return)}var x=u.sibling;if(x!==null){x.return=u.return,$=x;break e}$=u.return}}var _=e.current;for($=_;$!==null;){s=$;var w=s.child;if((s.subtreeFlags&2064)!==0&&w!==null)w.return=s,$=w;else e:for(s=_;$!==null;){if(a=$,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:Sa(9,a)}}catch(D){xe(a,a.return,D)}if(a===s){$=null;break e}var T=a.sibling;if(T!==null){T.return=a.return,$=T;break e}$=a.return}}if(te=i,Un(),Kt&&typeof Kt.onPostCommitFiberRoot=="function")try{Kt.onPostCommitFiberRoot(va,e)}catch{}r=!0}return r}finally{se=n,wt.transition=t}}return!1}function X4(e,t,n){t=Xr(n,t),t=jp(e,t,1),e=Fn(e,t,1),t=Ge(),e!==null&&(_u(e,1,t),ut(e,t))}function xe(e,t,n){if(e.tag===3)X4(e,e,n);else for(;t!==null;){if(t.tag===3){X4(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Nn===null||!Nn.has(r))){e=Xr(n,e),e=Vp(t,e,1),t=Fn(t,e,1),e=Ge(),t!==null&&(_u(t,1,e),ut(t,e));break}}t=t.return}}function Mv(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ge(),e.pingedLanes|=e.suspendedLanes&n,Ae===e&&(Le&n)===n&&(Ce===4||Ce===3&&(Le&130023424)===Le&&500>De()-s0?nr(e,0):u0|=n),ut(e,t)}function a3(e,t){t===0&&((e.mode&1)===0?t=1:(t=Wu,Wu<<=1,(Wu&130023424)===0&&(Wu=4194304)));var n=Ge();e=ln(e,t),e!==null&&(_u(e,t,n),ut(e,n))}function Lv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),a3(e,n)}function Bv(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),a3(e,n)}var o3;o3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)nt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return nt=!1,Dv(e,t,n);nt=(e.flags&131072)!==0}else nt=!1,he&&(t.flags&1048576)!==0&&dp(t,Ws,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ds(e,t),e=t.pendingProps;var i=$r(t,Ke.current);Vr(t,n),i=Zc(null,t,r,e,i,n);var u=e0();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,it(r)?(u=!0,Vs(t)):u=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,qc(t),i.updater=Da,t.stateNode=i,i._reactInternals=t,Bl(t,r,e,n),t=jl(null,t,r,!0,u,n)):(t.tag=0,he&&u&&Vc(t),Xe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ds(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=zv(r),e=Ft(r,e),i){case 0:t=zl(null,t,r,e,n);break e;case 1:t=z4(null,t,r,e,n);break e;case 11:t=B4(null,t,r,e,n);break e;case 14:t=I4(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),zl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),z4(e,t,r,i,n);case 3:e:{if($p(t),e===null)throw Error(H(387));r=t.pendingProps,u=t.memoizedState,i=u.element,mp(e,t),Ks(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=Xr(Error(H(423)),t),t=j4(e,t,r,n,i);break e}else if(r!==i){i=Xr(Error(H(424)),t),t=j4(e,t,r,n,i);break e}else for(lt=On(t.stateNode.containerInfo.firstChild),dt=t,he=!0,Rt=null,n=bp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kr(),r===i){t=cn(e,t,n);break e}Xe(e,t,r,n)}t=t.child}return t;case 5:return xp(t),e===null&&Tl(t),r=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,s=i.children,Ol(r,i)?s=null:u!==null&&Ol(r,u)&&(t.flags|=32),Hp(e,t),Xe(e,t,s,n),t.child;case 6:return e===null&&Tl(t),null;case 13:return Kp(e,t,n);case 4:return Xc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yr(t,null,r,n):Xe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),B4(e,t,r,i,n);case 7:return Xe(e,t,t.pendingProps,n),t.child;case 8:return Xe(e,t,t.pendingProps.children,n),t.child;case 12:return Xe(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(Hs,r._currentValue),r._currentValue=s,u!==null)if(Bt(u.value,s)){if(u.children===i.children&&!rt.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),Ml(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),Ml(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}Xe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vr(t,n),i=kt(i),r=r(i),t.flags|=1,Xe(e,t,r,n),t.child;case 14:return r=t.type,i=Ft(r,t.pendingProps),i=Ft(r.type,i),I4(e,t,r,i,n);case 15:return Up(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),Ds(e,t),t.tag=1,it(r)?(e=!0,Vs(t)):e=!1,Vr(t,n),yp(t,r,i),Bl(t,r,i,n),jl(null,t,r,!0,e,n);case 19:return Yp(e,t,n);case 22:return Wp(e,t,n)}throw Error(H(156,t.tag))};function l3(e,t){return Mh(e,t)}function Iv(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 Iv(e,t,n,r)}function c0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zv(e){if(typeof e=="function")return c0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Oc)return 11;if(e===Fc)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 Ps(e,t,n,r,i,u){var s=2;if(r=e,typeof e=="function")c0(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Sr:return rr(n.children,i,u,t);case Cc:s=8,i|=8;break;case al:return e=_t(12,n,t,i|2),e.elementType=al,e.lanes=u,e;case ol:return e=_t(13,n,t,i),e.elementType=ol,e.lanes=u,e;case ll:return e=_t(19,n,t,i),e.elementType=ll,e.lanes=u,e;case vh:return Ca(n,i,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gh:s=10;break e;case yh:s=9;break e;case Oc:s=11;break e;case Fc: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 rr(e,t,n,r){return e=_t(7,e,r,t),e.lanes=n,e}function Ca(e,t,n,r){return e=_t(22,e,r,t),e.elementType=vh,e.lanes=n,e.stateNode={isHidden:!1},e}function _o(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function wo(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 jv(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=no(0),this.expirationTimes=no(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=no(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function d0(e,t,n,r,i,u,s,a,o){return e=new jv(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},qc(u),e}function Vv(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function c3(e){if(!e)return Bn;e=e._reactInternals;e:{if(pr(e)!==e||e.tag!==1)throw Error(H(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(it(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(H(171))}if(e.tag===1){var n=e.type;if(it(n))return lp(e,n,t)}return t}function d3(e,t,n,r,i,u,s,a,o){return e=d0(n,r,!0,e,i,u,s,a,o),e.context=c3(null),n=e.current,r=Ge(),i=An(n),u=un(r,i),u.callback=t!=null?t:null,Fn(n,u,i),e.current.lanes=i,_u(e,i,r),ut(e,r),e}function Oa(e,t,n,r){var i=t.current,u=Ge(),s=An(i);return n=c3(n),t.context===null?t.context=n:t.pendingContext=n,t=un(u,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Fn(i,t,s),e!==null&&(Lt(e,i,s,u),Es(e,i,s)),s}function ea(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function G4(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function f0(e,t){G4(e,t),(e=e.alternate)&&G4(e,t)}function Uv(){return null}var f3=typeof reportError=="function"?reportError:function(e){console.error(e)};function h0(e){this._internalRoot=e}Fa.prototype.render=h0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));Oa(e,t,null,null)};Fa.prototype.unmount=h0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;cr(function(){Oa(null,e,null,null)}),t[on]=null}};function Fa(e){this._internalRoot=e}Fa.prototype.unstable_scheduleHydration=function(e){if(e){var t=Uh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bn.length&&t!==0&&t<bn[n].priority;n++);bn.splice(n,0,e),n===0&&Hh(e)}};function p0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Na(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Q4(){}function Wv(e,t,n,r,i){if(i){if(typeof r=="function"){var u=r;r=function(){var l=ea(s);u.call(l)}}var s=d3(t,r,e,0,null,!1,!1,"",Q4);return e._reactRootContainer=s,e[on]=s.current,su(e.nodeType===8?e.parentNode:e),cr(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var l=ea(o);a.call(l)}}var o=d0(e,0,!1,null,null,!1,!1,"",Q4);return e._reactRootContainer=o,e[on]=o.current,su(e.nodeType===8?e.parentNode:e),cr(function(){Oa(t,o,n,r)}),o}function Aa(e,t,n,r,i){var u=n._reactRootContainer;if(u){var s=u;if(typeof i=="function"){var a=i;i=function(){var o=ea(s);a.call(o)}}Oa(t,s,e,i)}else s=Wv(n,t,e,i,r);return ea(s)}jh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ni(t.pendingLanes);n!==0&&(Rc(t,n|1),ut(t,De()),(te&6)===0&&(Gr=De()+500,Un()))}break;case 13:cr(function(){var r=ln(e,1);if(r!==null){var i=Ge();Lt(r,e,1,i)}}),f0(e,1)}};Tc=function(e){if(e.tag===13){var t=ln(e,134217728);if(t!==null){var n=Ge();Lt(t,e,134217728,n)}f0(e,134217728)}};Vh=function(e){if(e.tag===13){var t=An(e),n=ln(e,t);if(n!==null){var r=Ge();Lt(n,e,t,r)}f0(e,t)}};Uh=function(){return se};Wh=function(e,t){var n=se;try{return se=e,t()}finally{se=n}};bl=function(e,t,n){switch(t){case"input":if(fl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=_a(r);if(!i)throw Error(H(90));xh(r),fl(r,i)}}}break;case"textarea":_h(e,n);break;case"select":t=n.value,t!=null&&Br(e,!!n.multiple,t,!1)}};Oh=a0;Fh=cr;var Hv={usingClientEntryPoint:!1,Events:[Du,Fr,_a,Ph,Ch,a0]},vi={findFiberByHostInstance:Jn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},$v={bundleType:vi.bundleType,version:vi.version,rendererPackageName:vi.rendererPackageName,rendererConfig:vi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:dn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Rh(e),e===null?null:e.stateNode},findFiberByHostInstance:vi.findFiberByHostInstance||Uv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var es=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!es.isDisabled&&es.supportsFiber)try{va=es.inject($v),Kt=es}catch{}}ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hv;ht.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p0(t))throw Error(H(200));return Vv(e,t,null,n)};ht.createRoot=function(e,t){if(!p0(e))throw Error(H(299));var n=!1,r="",i=f3;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=d0(e,1,!1,null,null,n,!1,r,i),e[on]=t.current,su(e.nodeType===8?e.parentNode:e),new h0(t)};ht.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=Rh(t),e=e===null?null:e.stateNode,e};ht.flushSync=function(e){return cr(e)};ht.hydrate=function(e,t,n){if(!Na(t))throw Error(H(200));return Aa(null,e,t,!0,n)};ht.hydrateRoot=function(e,t,n){if(!p0(e))throw Error(H(405));var r=n!=null&&n.hydratedSources||null,i=!1,u="",s=f3;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=d3(t,null,e,1,n!=null?n:null,i,!1,u,s),e[on]=t.current,su(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Fa(t)};ht.render=function(e,t,n){if(!Na(t))throw Error(H(200));return Aa(null,e,t,!1,n)};ht.unmountComponentAtNode=function(e){if(!Na(e))throw Error(H(40));return e._reactRootContainer?(cr(function(){Aa(null,null,e,!1,function(){e._reactRootContainer=null,e[on]=null})}),!0):!1};ht.unstable_batchedUpdates=a0;ht.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Na(n))throw Error(H(200));if(e==null||e._reactInternals===void 0)throw Error(H(38));return Aa(e,t,n,!1,r)};ht.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=ht})(dh);var h3,J4=dh.exports;h3=J4.createRoot,J4.hydrateRoot;/**
* @remix-run/router v1.0.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ta.apply(this,arguments)}var wn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(wn||(wn={}));const Z4="popstate";function Kv(e){e===void 0&&(e={});function t(r,i){let{pathname:u,search:s,hash:a}=r.location;return Jl("",{pathname:u,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Zl(i)}return qv(t,n,null,e)}function Yv(){return Math.random().toString(36).substr(2,8)}function ed(e){return{usr:e.state,key:e.key}}function Jl(e,t,n,r){return n===void 0&&(n=null),ta({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ui(t):t,{state:n,key:t&&t.key||r||Yv()})}function Zl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ui(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function qv(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=Jl(g.location,v,b);n&&n(k,v);let O=ed(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=Jl(g.location,v,b);n&&n(k,v);let O=ed(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(Z4,l),o=v,()=>{i.removeEventListener(Z4,l),o=null}},createHref(v){return t(i,v)},push:d,replace:p,go(v){return s.go(v)}};return g}var td;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(td||(td={}));function Xv(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ui(t):t,i=m3(r.pathname||"/",n);if(i==null)return null;let u=p3(e);Gv(u);let s=null;for(let a=0;s==null&&a<u.length;++a)s=u1(u[a],i);return s}function p3(e,t,n,r){return t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=""),e.forEach((i,u)=>{let s={relativePath:i.path||"",caseSensitive:i.caseSensitive===!0,childrenIndex:u,route:i};s.relativePath.startsWith("/")&&(Re(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&&(Re(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),p3(i.children,t,o,a)),!(i.path==null&&!i.index)&&t.push({path:a,score:r1(a,i.index),routesMeta:o})}),t}function Gv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:i1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Qv=/^:\w+$/,Jv=3,Zv=2,e1=1,t1=10,n1=-2,nd=e=>e==="*";function r1(e,t){let n=e.split("/"),r=n.length;return n.some(nd)&&(r+=n1),t&&(r+=Zv),n.filter(i=>!nd(i)).reduce((i,u)=>i+(Qv.test(u)?Jv:u===""?e1:t1),r)}function i1(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 u1(e,t){let{routesMeta:n}=e,r={},i="/",u=[];for(let s=0;s<n.length;++s){let a=n[s],o=s===n.length-1,l=i==="/"?t:t.slice(i.length)||"/",d=s1({path:a.relativePath,caseSensitive:a.caseSensitive,end:o},l);if(!d)return null;Object.assign(r,d.params);let p=a.route;u.push({params:r,pathname:Tn([i,d.pathname]),pathnameBase:d1(Tn([i,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(i=Tn([i,d.pathnameBase]))}return u}function s1(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=a1(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let u=i[0],s=u.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((l,d,p)=>{if(d==="*"){let g=a[p]||"";s=u.slice(0,u.length-g.length).replace(/(.)\/+$/,"$1")}return l[d]=o1(a[p]||"",d),l},{}),pathname:u,pathnameBase:s,pattern:e}}function a1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),g3(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 o1(e,t){try{return decodeURIComponent(e)}catch(n){return g3(!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 m3(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 Re(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function g3(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function l1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ui(e):e;return{pathname:n?n.startsWith("/")?n:c1(n,t):t,search:f1(r),hash:h1(i)}}function c1(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 Do(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function y3(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ui(e):(i=ta({},e),Re(!i.pathname||!i.pathname.includes("?"),Do("?","pathname","search",i)),Re(!i.pathname||!i.pathname.includes("#"),Do("#","pathname","hash",i)),Re(!i.search||!i.search.includes("#"),Do("#","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=l1(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,"/"),d1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),f1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,h1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class p1{constructor(t,n,r){this.status=t,this.statusText=n||"",this.data=r}}function m1(e){return e instanceof p1}var Ra={exports:{}},Ta={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var g1=j.exports,y1=Symbol.for("react.element"),v1=Symbol.for("react.fragment"),b1=Object.prototype.hasOwnProperty,x1=g1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,E1={key:!0,ref:!0,__self:!0,__source:!0};function v3(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)b1.call(t,r)&&!E1.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:y1,type:e,key:u,ref:s,props:i,_owner:x1.current}}Ta.Fragment=v1;Ta.jsx=v3;Ta.jsxs=v3;(function(e){e.exports=Ta})(Ra);const $e=Ra.exports.Fragment,c=Ra.exports.jsx,P=Ra.exports.jsxs;/**
* React Router v6.4.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ec.apply(this,arguments)}function _1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const w1=typeof Object.is=="function"?Object.is:_1,{useState:D1,useEffect:k1,useLayoutEffect:S1,useDebugValue:P1}=ul;function C1(e,t,n){const r=t(),[{inst:i},u]=D1({inst:{value:r,getSnapshot:t}});return S1(()=>{i.value=r,i.getSnapshot=t,ko(i)&&u({inst:i})},[e,r,t]),k1(()=>(ko(i)&&u({inst:i}),e(()=>{ko(i)&&u({inst:i})})),[e]),P1(r),r}function ko(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!w1(n,r)}catch{return!0}}function O1(e,t,n){return t()}const F1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",N1=!F1,A1=N1?O1:C1;"useSyncExternalStore"in ul&&(e=>e.useSyncExternalStore)(ul);const R1=j.exports.createContext(null),T1=j.exports.createContext(null),b3=j.exports.createContext(null),m0=j.exports.createContext(null),Ma=j.exports.createContext(null),si=j.exports.createContext({outlet:null,matches:[]}),x3=j.exports.createContext(null);function M1(e,t){let{relative:n}=t===void 0?{}:t;Su()||Re(!1);let{basename:r,navigator:i}=j.exports.useContext(m0),{hash:u,pathname:s,search:a}=_3(e,{relative:n}),o=s;return r!=="/"&&(o=s==="/"?r:Tn([r,s])),i.createHref({pathname:o,search:a,hash:u})}function Su(){return j.exports.useContext(Ma)!=null}function La(){return Su()||Re(!1),j.exports.useContext(Ma).location}function E3(e){return e.filter((t,n)=>n===0||!t.route.index&&t.pathnameBase!==e[n-1].pathnameBase)}function L1(){Su()||Re(!1);let{basename:e,navigator:t}=j.exports.useContext(m0),{matches:n}=j.exports.useContext(si),{pathname:r}=La(),i=JSON.stringify(E3(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=y3(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 B1(){let{matches:e}=j.exports.useContext(si),t=e[e.length-1];return t?t.params:{}}function _3(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=j.exports.useContext(si),{pathname:i}=La(),u=JSON.stringify(E3(r).map(s=>s.pathnameBase));return j.exports.useMemo(()=>y3(e,JSON.parse(u),i,n==="path"),[e,u,i,n])}function I1(e,t){Su()||Re(!1);let n=j.exports.useContext(b3),{matches:r}=j.exports.useContext(si),i=r[r.length-1],u=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let a=La(),o;if(t){var l;let b=typeof t=="string"?ui(t):t;s==="/"||((l=b.pathname)==null?void 0:l.startsWith(s))||Re(!1),o=b}else o=a;let d=o.pathname||"/",p=s==="/"?d:d.slice(s.length)||"/",g=Xv(e,{pathname:p}),v=U1(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(Ma.Provider,{value:{location:ec({pathname:"/",search:"",hash:"",state:null,key:"default"},o),navigationType:wn.Pop},children:v}):v}function z1(){let e=H1(),t=m1(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($e,{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:"<Route>"})]})]})}class j1 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(x3.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function V1(e){let{routeContext:t,match:n,children:r}=e,i=j.exports.useContext(R1);return i&&n.route.errorElement&&(i._deepestRenderedBoundaryId=n.route.id),c(si.Provider,{value:t,children:r})}function U1(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||Re(!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(z1,{}):null,d=()=>c(V1,{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(j1,{location:n.location,component:l,error:o,children:d()}):d()},null)}var rd;(function(e){e.UseRevalidator="useRevalidator"})(rd||(rd={}));var tc;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(tc||(tc={}));function W1(e){let t=j.exports.useContext(b3);return t||Re(!1),t}function H1(){var e;let t=j.exports.useContext(x3),n=W1(tc.UseRouteError),r=j.exports.useContext(si),i=r.matches[r.matches.length-1];return t||(r||Re(!1),i.route.id||Re(!1),(e=n.errors)==null?void 0:e[i.route.id])}function yt(e){Re(!1)}function $1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=wn.Pop,navigator:u,static:s=!1}=e;Su()&&Re(!1);let a=t.replace(/^\/*/,"/"),o=j.exports.useMemo(()=>({basename:a,navigator:u,static:s}),[a,u,s]);typeof r=="string"&&(r=ui(r));let{pathname:l="/",search:d="",hash:p="",state:g=null,key:v="default"}=r,b=j.exports.useMemo(()=>{let k=m3(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(m0.Provider,{value:o,children:c(Ma.Provider,{children:n,value:{location:b,navigationType:i}})})}function K1(e){let{children:t,location:n}=e,r=j.exports.useContext(T1),i=r&&!t?r.router.routes:nc(t);return I1(i,n)}var id;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(id||(id={}));new Promise(()=>{});function nc(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,nc(r.props.children,t));return}r.type!==yt&&Re(!1),!r.props.index||!r.props.children||Re(!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=nc(r.props.children,u)),n.push(s)}),n}/**
* React Router DOM v6.4.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Y1(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,u;for(u=0;u<r.length;u++)i=r[u],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function q1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function X1(e,t){return e.button===0&&(!t||t==="_self")&&!q1(e)}const G1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Q1(e){let{basename:t,children:n,window:r}=e,i=j.exports.useRef();i.current==null&&(i.current=Kv({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($1,{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=Y1(t,G1),g=M1(l,{relative:i}),v=J1(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 ud;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(ud||(ud={}));var sd;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(sd||(sd={}));function J1(e,t){let{target:n,replace:r,state:i,preventScrollReset:u,relative:s}=t===void 0?{}:t,a=L1(),o=La(),l=_3(e,{relative:s});return j.exports.useCallback(d=>{if(X1(d,n)){d.preventDefault();let p=r!==void 0?r:Zl(o)===Zl(l);a(e,{replace:p,state:i,preventScrollReset:u,relative:s})}},[o,a,l,r,i,n,e,u,s])}const ad="/assets/logo.fe8c8333.svg",Z1="/assets/burger.2c869322.svg",eb=({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:ad,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:"Habarla\u015Fmak \xFC\xE7in"})})]}):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:ad,alt:"logo"})}),c("div",{className:"burger",onClick:i,children:c("img",{src:Z1})})]})})}),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}),tb=({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"?"Habarla\u015Fmak \xFC\xE7in":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-20"})]}),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"?"Habarla\u015Fmak \xFC\xE7in":e==="en"?"Contacts":null})})]})})})})]}),nb=({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})]})})})}),od=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:""})),qn="/assets/arrow.a0470258.svg",w3=({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:qn,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})]})]}),rb=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"})))),Ba=({title:e,link:t})=>P("a",{href:t,download:!0,className:"document-link",children:[c("div",{className:"document-img",children:c(rb,{})}),c("h3",{className:"document-title",children:e})]});var D3={},k3={},ae={},ib=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&&ub(u,n.attrs),n.text&&(u.text=""+n.text);var s="onload"in u?ld:sb;s(u,r),u.onload||ld(u,r),i.appendChild(u)};function ub(e,t){for(var n in t)e.setAttribute(n,t[n])}function ld(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 sb(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var ab=function(t){return ob(t)&&!lb(t)};function ob(e){return!!e&&typeof e=="object"}function lb(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||fb(e)}var cb=typeof Symbol=="function"&&Symbol.for,db=cb?Symbol.for("react.element"):60103;function fb(e){return e.$$typeof===db}function hb(e){return Array.isArray(e)?[]:{}}function mu(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Qr(hb(e),e,t):e}function pb(e,t,n){return e.concat(t).map(function(r){return mu(r,n)})}function mb(e,t){if(!t.customMerge)return Qr;var n=t.customMerge(e);return typeof n=="function"?n:Qr}function gb(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}function cd(e){return Object.keys(e).concat(gb(e))}function S3(e,t){try{return t in e}catch{return!1}}function yb(e,t){return S3(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function vb(e,t,n){var r={};return n.isMergeableObject(e)&&cd(e).forEach(function(i){r[i]=mu(e[i],n)}),cd(t).forEach(function(i){yb(e,i)||(S3(e,i)&&n.isMergeableObject(t[i])?r[i]=mb(i,n)(e[i],t[i],n):r[i]=mu(t[i],n))}),r}function Qr(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||pb,n.isMergeableObject=n.isMergeableObject||ab,n.cloneUnlessOtherwiseSpecified=mu;var r=Array.isArray(t),i=Array.isArray(e),u=r===i;return u?r?n.arrayMerge(e,t,n):vb(e,t,n):mu(t,n)}Qr.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Qr(r,i,n)},{})};var bb=Qr,P3=bb;Object.defineProperty(ae,"__esModule",{value:!0});ae.parseStartTime=Nb;ae.parseEndTime=Ab;ae.randomString=Rb;ae.queryString=Tb;ae.getSDK=Mb;ae.getConfig=Lb;ae.omit=Bb;ae.callPlayer=Ib;ae.isMediaStream=zb;ae.isBlobUrl=jb;ae.supportsWebKitPresentationMode=Vb;var xb=C3(ib),Eb=C3(P3);function C3(e){return e&&e.__esModule?e:{default:e}}function _b(e,t){return Sb(e)||kb(e,t)||Db(e,t)||wb()}function wb(){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 Db(e,t){if(!!e){if(typeof e=="string")return dd(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 dd(e,t)}}function dd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kb(e,t){if(!(typeof Symbol>"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 Sb(e){if(Array.isArray(e))return e}var Pb=/[?&#](?:start|t)=([0-9hms]+)/,Cb=/[?&#]end=([0-9hms]+)/,rc=/(\d+)(h|m|s)/g,Ob=/^\d+$/;function O3(e,t){if(!(e instanceof Array)){var n=e.match(t);if(n){var r=n[1];if(r.match(rc))return Fb(r);if(Ob.test(r))return parseInt(r)}}}function Fb(e){for(var t=0,n=rc.exec(e);n!==null;){var r=n,i=_b(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=rc.exec(e)}return t}function Nb(e){return O3(e,Pb)}function Ab(e){return O3(e,Cb)}function Rb(){return Math.random().toString(36).substr(2,5)}function Tb(e){return Object.keys(e).map(function(t){return"".concat(t,"=").concat(e[t])}).join("&")}function So(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 br={};function Mb(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]:xb.default,u=So(t);return u&&r(u)?Promise.resolve(u):new Promise(function(s,a){if(br[e]){br[e].push({resolve:s,reject:a});return}br[e]=[{resolve:s,reject:a}];var o=function(p){br[e].forEach(function(g){return g.resolve(p)})};if(n){var l=window[n];window[n]=function(){l&&l(),o(So(t))}}i(e,function(d){d?(br[e].forEach(function(p){return p.reject(d)}),br[e]=null):n||o(So(t))})})}function Lb(e,t){return(0,Eb.default)(t.config,e.config)}function Bb(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var u=(t=[]).concat.apply(t,r),s={},a=Object.keys(e),o=0,l=a;o<l.length;o++){var d=l[o];u.indexOf(d)===-1&&(s[d]=e[d])}return s}function Ib(e){var t;if(!this.player||!this.player[e]){var n="ReactPlayer: ".concat(this.constructor.displayName," player could not call %c").concat(e,"%c \u2013 ");return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}for(var r=arguments.length,i=new Array(r>1?r-1:0),u=1;u<r;u++)i[u-1]=arguments[u];return(t=this.player)[e].apply(t,i)}function zb(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function jb(e){return/^blob:/.test(e)}function Vb(){var e=arguments.length>0&&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 fd=ae;function Ub(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Wb(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 Wb(e,t){if(!!e){if(typeof e=="string")return hd(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 hd(e,t)}}function hd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ic=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//;Y.MATCH_URL_YOUTUBE=ic;var F3=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/;Y.MATCH_URL_SOUNDCLOUD=F3;var N3=/vimeo\.com\/(?!progressive_redirect).+/;Y.MATCH_URL_VIMEO=N3;var A3=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;Y.MATCH_URL_FACEBOOK=A3;var R3=/^https?:\/\/fb\.watch\/.+$/;Y.MATCH_URL_FACEBOOK_WATCH=R3;var T3=/streamable\.com\/([a-z0-9]+)$/;Y.MATCH_URL_STREAMABLE=T3;var M3=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?(.*)$/;Y.MATCH_URL_WISTIA=M3;var L3=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;Y.MATCH_URL_TWITCH_VIDEO=L3;var B3=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/;Y.MATCH_URL_TWITCH_CHANNEL=B3;var I3=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;Y.MATCH_URL_DAILYMOTION=I3;var z3=/mixcloud\.com\/([^/]+\/[^/]+)/;Y.MATCH_URL_MIXCLOUD=z3;var j3=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/;Y.MATCH_URL_VIDYARD=j3;var V3=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/;Y.MATCH_URL_KALTURA=V3;var g0=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;Y.AUDIO_EXTENSIONS=g0;var y0=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i;Y.VIDEO_EXTENSIONS=y0;var v0=/\.(m3u8)($|\?)/i;Y.HLS_EXTENSIONS=v0;var U3=/\.(mpd)($|\?)/i;Y.DASH_EXTENSIONS=U3;var W3=/\.(flv)($|\?)/i;Y.FLV_EXTENSIONS=W3;var Hb=function e(t){if(t instanceof Array){var n=Ub(t),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;if(typeof i=="string"&&e(i)||e(i.src))return!0}}catch(u){n.e(u)}finally{n.f()}return!1}return(0,fd.isMediaStream)(t)||(0,fd.isBlobUrl)(t)?!0:g0.test(t)||y0.test(t)||v0.test(t)||U3.test(t)||W3.test(t)},$b={youtube:function(t){return t instanceof Array?t.every(function(n){return ic.test(n)}):ic.test(t)},soundcloud:function(t){return F3.test(t)&&!g0.test(t)},vimeo:function(t){return N3.test(t)&&!y0.test(t)&&!v0.test(t)},facebook:function(t){return A3.test(t)||R3.test(t)},streamable:function(t){return T3.test(t)},wistia:function(t){return M3.test(t)},twitch:function(t){return L3.test(t)||B3.test(t)},dailymotion:function(t){return I3.test(t)},mixcloud:function(t){return z3.test(t)},vidyard:function(t){return j3.test(t)},kaltura:function(t){return V3.test(t)},file:Hb};Y.canPlay=$b;var Po={},pd;function Kb(){return pd||(pd=1,function(e){function t(A){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(N){return typeof N}:t=function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},t(A)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(j.exports),r=ae,i=Y;function u(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return u=function(){return A},A}function s(A){if(A&&A.__esModule)return A;if(A===null||t(A)!=="object"&&typeof A!="function")return{default:A};var R=u();if(R&&R.has(A))return R.get(A);var N={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in A)if(Object.prototype.hasOwnProperty.call(A,V)){var W=z?Object.getOwnPropertyDescriptor(A,V):null;W&&(W.get||W.set)?Object.defineProperty(N,V,W):N[V]=A[V]}return N.default=A,R&&R.set(A,N),N}function a(A,R){var N=Object.keys(A);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(A);R&&(z=z.filter(function(V){return Object.getOwnPropertyDescriptor(A,V).enumerable})),N.push.apply(N,z)}return N}function o(A){for(var R=1;R<arguments.length;R++){var N=arguments[R]!=null?arguments[R]:{};R%2?a(Object(N),!0).forEach(function(z){m(A,z,N[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(N)):a(Object(N)).forEach(function(z){Object.defineProperty(A,z,Object.getOwnPropertyDescriptor(N,z))})}return A}function l(A,R){return b(A)||v(A,R)||p(A,R)||d()}function d(){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 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<R;N++)z[N]=A[N];return z}function v(A,R){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(A)))){var N=[],z=!0,V=!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){V=!0,W=Q}finally{try{!z&&q.return!=null&&q.return()}finally{if(V)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<R.length;N++){var z=R[N];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(A,z.key,z)}}function x(A,R,N){return R&&O(A.prototype,R),N&&O(A,N),A}function _(A,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(R&&R.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),R&&w(A,R)}function w(A,R){return w=Object.setPrototypeOf||function(z,V){return z.__proto__=V,z},w(A,R)}function T(A){var R=y();return function(){var z=f(A),V;if(R){var W=f(this).constructor;V=Reflect.construct(z,arguments,W)}else V=z.apply(this,arguments);return D(this,V)}}function D(A,R){return R&&(t(R)==="object"||typeof R=="function")?R:S(A)}function S(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function 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 V=arguments.length,W=new Array(V),q=0;q<V;q++)W[q]=arguments[q];return z=R.call.apply(R,[this].concat(W)),m(S(z),"callPlayer",r.callPlayer),m(S(z),"parsePlaylist",function(X){if(X instanceof Array)return{listType:"playlist",playlist:X.map(z.getID).join(",")};if(B.test(X)){var Q=X.match(B),G=l(Q,2),we=G[1];return{listType:"playlist",list:we.replace(/^UC/,"UU")}}if(F.test(X)){var Se=X.match(F),st=l(Se,2),zt=st[1];return{listType:"user_uploads",list:zt}}return{}}),m(S(z),"onStateChange",function(X){var Q=X.data,G=z.props,we=G.onPlay,Se=G.onPause,st=G.onBuffer,zt=G.onBufferEnd,Mu=G.onEnded,li=G.onReady,Lu=G.loop,ci=G.config,gr=ci.playerVars,Bu=ci.onUnstarted,jt=window[E].PlayerState,yg=jt.UNSTARTED,vg=jt.PLAYING,bg=jt.PAUSED,xg=jt.BUFFERING,Eg=jt.ENDED,_g=jt.CUED;if(Q===yg&&Bu(),Q===vg&&(we(),zt()),Q===bg&&Se(),Q===xg&&st(),Q===Eg){var wg=!!z.callPlayer("getPlaylist");Lu&&!wg&&(gr.start?z.seekTo(gr.start):z.play()),Mu()}Q===_g&&li()}),m(S(z),"mute",function(){z.callPlayer("mute")}),m(S(z),"unmute",function(){z.callPlayer("unMute")}),m(S(z),"ref",function(X){z.container=X}),z}return x(N,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"getID",value:function(V){return!V||V instanceof Array||B.test(V)?null:V.match(i.MATCH_URL_YOUTUBE)[1]}},{key:"load",value:function(V,W){var q=this,X=this.props,Q=X.playing,G=X.muted,we=X.playsinline,Se=X.controls,st=X.loop,zt=X.config,Mu=X.onError,li=zt.playerVars,Lu=zt.embedOptions,ci=this.getID(V);if(W){if(B.test(V)||F.test(V)||V instanceof Array){this.player.loadPlaylist(this.parsePlaylist(V));return}this.player.cueVideoById({videoId:ci,startSeconds:(0,r.parseStartTime)(V)||li.start,endSeconds:(0,r.parseEndTime)(V)||li.end});return}(0,r.getSDK)(h,E,C,function(gr){return gr.loaded}).then(function(gr){!q.container||(q.player=new gr.Player(q.container,o({width:"100%",height:"100%",videoId:ci,playerVars:o(o({autoplay:Q?1:0,mute:G?1:0,controls:Se?1:0,start:(0,r.parseStartTime)(V),end:(0,r.parseEndTime)(V),origin:window.location.origin,playsinline:we?1:0},q.parsePlaylist(V)),li),events:{onReady:function(){st&&q.player.setLoop(!0),q.props.onReady()},onPlaybackRateChange:function(jt){return q.props.onPlaybackRateChange(jt.data)},onStateChange:q.onStateChange,onError:function(jt){return Mu(jt.data)}},host:M.test(V)?I:void 0},Lu)))},Mu),Lu.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause")}},{key:"play",value:function(){this.callPlayer("playVideo")}},{key:"pause",value:function(){this.callPlayer("pauseVideo")}},{key:"stop",value:function(){!document.body.contains(this.callPlayer("getIframe"))||this.callPlayer("stopVideo")}},{key:"seekTo",value:function(V){this.callPlayer("seekTo",V),this.props.playing||this.pause()}},{key:"setVolume",value:function(V){this.callPlayer("setVolume",V*100)}},{key:"setPlaybackRate",value:function(V){this.callPlayer("setPlaybackRate",V)}},{key:"setLoop",value:function(V){this.callPlayer("setLoop",V)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}},{key:"render",value:function(){var V=this.props.display,W={width:"100%",height:"100%",display:V};return n.default.createElement("div",{style:W},n.default.createElement("div",{ref:this.ref}))}}]),N}(n.Component);e.default=L,m(L,"displayName","YouTube"),m(L,"canPlay",i.canPlay.youtube)}(Po)),Po}var Co={},md;function Yb(){return md||(md=1,function(e){function t(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(m){return typeof m}:t=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},t(y)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(j.exports),r=ae,i=Y;function u(){if(typeof WeakMap!="function")return null;var y=new WeakMap;return u=function(){return y},y}function s(y){if(y&&y.__esModule)return y;if(y===null||t(y)!=="object"&&typeof y!="function")return{default:y};var f=u();if(f&&f.has(y))return f.get(y);var m={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in y)if(Object.prototype.hasOwnProperty.call(y,E)){var C=h?Object.getOwnPropertyDescriptor(y,E):null;C&&(C.get||C.set)?Object.defineProperty(m,E,C):m[E]=y[E]}return m.default=y,f&&f.set(y,m),m}function a(y,f){var m=Object.keys(y);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(y);f&&(h=h.filter(function(E){return Object.getOwnPropertyDescriptor(y,E).enumerable})),m.push.apply(m,h)}return m}function o(y){for(var f=1;f<arguments.length;f++){var m=arguments[f]!=null?arguments[f]:{};f%2?a(Object(m),!0).forEach(function(h){w(y,h,m[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(m)):a(Object(m)).forEach(function(h){Object.defineProperty(y,h,Object.getOwnPropertyDescriptor(m,h))})}return y}function l(y,f){if(!(y instanceof f))throw new TypeError("Cannot call a class as a function")}function d(y,f){for(var m=0;m<f.length;m++){var h=f[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(y,h.key,h)}}function p(y,f,m){return f&&d(y.prototype,f),m&&d(y,m),y}function g(y,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),f&&v(y,f)}function v(y,f){return v=Object.setPrototypeOf||function(h,E){return h.__proto__=E,h},v(y,f)}function b(y){var f=x();return function(){var h=_(y),E;if(f){var C=_(this).constructor;E=Reflect.construct(h,arguments,C)}else E=h.apply(this,arguments);return k(this,E)}}function k(y,f){return f&&(t(f)==="object"||typeof f=="function")?f:O(y)}function O(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(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<E;B++)C[B]=arguments[B];return h=f.call.apply(f,[this].concat(C)),w(O(h),"callPlayer",r.callPlayer),w(O(h),"duration",null),w(O(h),"currentTime",null),w(O(h),"fractionLoaded",null),w(O(h),"mute",function(){h.setVolume(0)}),w(O(h),"unmute",function(){h.props.volume!==null&&h.setVolume(h.props.volume)}),w(O(h),"ref",function(F){h.iframe=F}),h}return p(m,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(E,C){var B=this;(0,r.getSDK)(T,D).then(function(F){if(!!B.iframe){var M=F.Widget.Events,I=M.PLAY,L=M.PLAY_PROGRESS,A=M.PAUSE,R=M.FINISH,N=M.ERROR;C||(B.player=F.Widget(B.iframe),B.player.bind(I,B.props.onPlay),B.player.bind(A,function(){var z=B.duration-B.currentTime;z<.05||B.props.onPause()}),B.player.bind(L,function(z){B.currentTime=z.currentPosition/1e3,B.fractionLoaded=z.loadedProgress}),B.player.bind(R,function(){return B.props.onEnded()}),B.player.bind(N,function(z){return B.props.onError(z)})),B.player.load(E,o(o({},B.props.config.options),{},{callback:function(){B.player.getDuration(function(V){B.duration=V/1e3,B.props.onReady()})}}))}})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(E){this.callPlayer("seekTo",E*1e3)}},{key:"setVolume",value:function(E){this.callPlayer("setVolume",E*100)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.fractionLoaded*this.duration}},{key:"render",value:function(){var E=this.props.display,C={width:"100%",height:"100%",display:E};return n.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),style:C,frameBorder:0,allow:"autoplay"})}}]),m}(n.Component);e.default=S,w(S,"displayName","SoundCloud"),w(S,"canPlay",i.canPlay.soundcloud),w(S,"loopOnEnded",!0)}(Co)),Co}var Oo={},gd;function qb(){return gd||(gd=1,function(e){function t(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(m){return typeof m}:t=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},t(y)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(j.exports),r=ae,i=Y;function u(){if(typeof WeakMap!="function")return null;var y=new WeakMap;return u=function(){return y},y}function s(y){if(y&&y.__esModule)return y;if(y===null||t(y)!=="object"&&typeof y!="function")return{default:y};var f=u();if(f&&f.has(y))return f.get(y);var m={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in y)if(Object.prototype.hasOwnProperty.call(y,E)){var C=h?Object.getOwnPropertyDescriptor(y,E):null;C&&(C.get||C.set)?Object.defineProperty(m,E,C):m[E]=y[E]}return m.default=y,f&&f.set(y,m),m}function a(y,f){var m=Object.keys(y);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(y);f&&(h=h.filter(function(E){return Object.getOwnPropertyDescriptor(y,E).enumerable})),m.push.apply(m,h)}return m}function o(y){for(var f=1;f<arguments.length;f++){var m=arguments[f]!=null?arguments[f]:{};f%2?a(Object(m),!0).forEach(function(h){w(y,h,m[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(m)):a(Object(m)).forEach(function(h){Object.defineProperty(y,h,Object.getOwnPropertyDescriptor(m,h))})}return y}function l(y,f){if(!(y instanceof f))throw new TypeError("Cannot call a class as a function")}function d(y,f){for(var m=0;m<f.length;m++){var h=f[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(y,h.key,h)}}function p(y,f,m){return f&&d(y.prototype,f),m&&d(y,m),y}function g(y,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),f&&v(y,f)}function v(y,f){return v=Object.setPrototypeOf||function(h,E){return h.__proto__=E,h},v(y,f)}function b(y){var f=x();return function(){var h=_(y),E;if(f){var C=_(this).constructor;E=Reflect.construct(h,arguments,C)}else E=h.apply(this,arguments);return k(this,E)}}function k(y,f){return f&&(t(f)==="object"||typeof f=="function")?f:O(y)}function O(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(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<E;B++)C[B]=arguments[B];return h=f.call.apply(f,[this].concat(C)),w(O(h),"callPlayer",r.callPlayer),w(O(h),"duration",null),w(O(h),"currentTime",null),w(O(h),"secondsLoaded",null),w(O(h),"mute",function(){h.setVolume(0)}),w(O(h),"unmute",function(){h.props.volume!==null&&h.setVolume(h.props.volume)}),w(O(h),"ref",function(F){h.container=F}),h}return p(m,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(E){var C=this;this.duration=null,(0,r.getSDK)(T,D).then(function(B){if(!!C.container){var F=C.props.config,M=F.playerOptions,I=F.title;C.player=new B.Player(C.container,o({url:E,autoplay:C.props.playing,muted:C.props.muted,loop:C.props.loop,playsinline:C.props.playsinline,controls:C.props.controls},M)),C.player.ready().then(function(){var L=C.container.querySelector("iframe");L.style.width="100%",L.style.height="100%",I&&(L.title=I)}).catch(C.props.onError),C.player.on("loaded",function(){C.props.onReady(),C.refreshDuration()}),C.player.on("play",function(){C.props.onPlay(),C.refreshDuration()}),C.player.on("pause",C.props.onPause),C.player.on("seeked",function(L){return C.props.onSeek(L.seconds)}),C.player.on("ended",C.props.onEnded),C.player.on("error",C.props.onError),C.player.on("timeupdate",function(L){var A=L.seconds;C.currentTime=A}),C.player.on("progress",function(L){var A=L.seconds;C.secondsLoaded=A}),C.player.on("bufferstart",C.props.onBuffer),C.player.on("bufferend",C.props.onBufferEnd),C.player.on("playbackratechange",function(L){return C.props.onPlaybackRateChange(L.playbackRate)})}},this.props.onError)}},{key:"refreshDuration",value:function(){var E=this;this.player.getDuration().then(function(C){E.duration=C})}},{key:"play",value:function(){var E=this.callPlayer("play");E&&E.catch(this.props.onError)}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("unload")}},{key:"seekTo",value:function(E){this.callPlayer("setCurrentTime",E)}},{key:"setVolume",value:function(E){this.callPlayer("setVolume",E)}},{key:"setLoop",value:function(E){this.callPlayer("setLoop",E)}},{key:"setPlaybackRate",value:function(E){this.callPlayer("setPlaybackRate",E)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var E=this.props.display,C={width:"100%",height:"100%",overflow:"hidden",display:E};return n.default.createElement("div",{key:this.props.url,ref:this.ref,style:C})}}]),m}(n.Component);e.default=S,w(S,"displayName","Vimeo"),w(S,"canPlay",i.canPlay.vimeo),w(S,"forceLoad",!0)}(Oo)),Oo}var Fo={},yd;function Xb(){return yd||(yd=1,function(e){function t(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(h){return typeof h}:t=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},t(f)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(j.exports),r=ae,i=Y;function u(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return u=function(){return f},f}function s(f){if(f&&f.__esModule)return f;if(f===null||t(f)!=="object"&&typeof f!="function")return{default:f};var m=u();if(m&&m.has(f))return m.get(f);var h={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in f)if(Object.prototype.hasOwnProperty.call(f,C)){var B=E?Object.getOwnPropertyDescriptor(f,C):null;B&&(B.get||B.set)?Object.defineProperty(h,C,B):h[C]=f[C]}return h.default=f,m&&m.set(f,h),h}function a(){return a=Object.assign||function(f){for(var m=1;m<arguments.length;m++){var h=arguments[m];for(var E in h)Object.prototype.hasOwnProperty.call(h,E)&&(f[E]=h[E])}return f},a.apply(this,arguments)}function o(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function l(f,m){for(var h=0;h<m.length;h++){var E=m[h];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(f,E.key,E)}}function d(f,m,h){return m&&l(f.prototype,m),h&&l(f,h),f}function p(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),m&&g(f,m)}function g(f,m){return g=Object.setPrototypeOf||function(E,C){return E.__proto__=C,E},g(f,m)}function v(f){var m=O();return function(){var E=x(f),C;if(m){var B=x(this).constructor;C=Reflect.construct(E,arguments,B)}else C=E.apply(this,arguments);return b(this,C)}}function b(f,m){return m&&(t(m)==="object"||typeof m=="function")?m:k(f)}function k(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function O(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function 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<C;F++)B[F]=arguments[F];return E=m.call.apply(m,[this].concat(B)),_(k(E),"callPlayer",r.callPlayer),_(k(E),"playerID",E.props.config.playerId||"".concat(S).concat((0,r.randomString)())),_(k(E),"mute",function(){E.callPlayer("mute")}),_(k(E),"unmute",function(){E.callPlayer("unmute")}),E}return d(h,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(C,B){var F=this;if(B){(0,r.getSDK)(w,T,D).then(function(M){return M.XFBML.parse()});return}(0,r.getSDK)(w,T,D).then(function(M){M.init({appId:F.props.config.appId,xfbml:!0,version:F.props.config.version}),M.Event.subscribe("xfbml.render",function(I){F.props.onLoaded()}),M.Event.subscribe("xfbml.ready",function(I){I.type==="video"&&I.id===F.playerID&&(F.player=I.instance,F.player.subscribe("startedPlaying",F.props.onPlay),F.player.subscribe("paused",F.props.onPause),F.player.subscribe("finishedPlaying",F.props.onEnded),F.player.subscribe("startedBuffering",F.props.onBuffer),F.player.subscribe("finishedBuffering",F.props.onBufferEnd),F.player.subscribe("error",F.props.onError),F.props.muted?F.callPlayer("mute"):F.callPlayer("unmute"),F.props.onReady(),document.getElementById(F.playerID).querySelector("iframe").style.visibility="visible")})})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(C){this.callPlayer("seek",C)}},{key:"setVolume",value:function(C){this.callPlayer("setVolume",C)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentPosition")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var C=this.props.config.attributes,B={width:"100%",height:"100%"};return n.default.createElement("div",a({style:B,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false"},C))}}]),h}(n.Component);e.default=y,_(y,"displayName","Facebook"),_(y,"canPlay",i.canPlay.facebook),_(y,"loopOnEnded",!0)}(Fo)),Fo}var No={},vd;function Gb(){return vd||(vd=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=s(j.exports),r=ae,i=Y;function u(){if(typeof WeakMap!="function")return null;var D=new WeakMap;return u=function(){return D},D}function s(D){if(D&&D.__esModule)return D;if(D===null||t(D)!=="object"&&typeof D!="function")return{default:D};var S=u();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 a(D,S){if(!(D instanceof S))throw new TypeError("Cannot call a class as a function")}function o(D,S){for(var y=0;y<S.length;y++){var f=S[y];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(D,f.key,f)}}function l(D,S,y){return S&&o(D.prototype,S),y&&o(D,y),D}function d(D,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(S&&S.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),S&&p(D,S)}function p(D,S){return p=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},p(D,S)}function g(D){var S=k();return function(){var f=O(D),m;if(S){var h=O(this).constructor;m=Reflect.construct(f,arguments,h)}else m=f.apply(this,arguments);return v(this,m)}}function v(D,S){return S&&(t(S)==="object"||typeof S=="function")?S:b(D)}function b(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function 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<m;E++)h[E]=arguments[E];return f=S.call.apply(S,[this].concat(h)),x(b(f),"callPlayer",r.callPlayer),x(b(f),"duration",null),x(b(f),"currentTime",null),x(b(f),"secondsLoaded",null),x(b(f),"mute",function(){f.callPlayer("mute")}),x(b(f),"unmute",function(){f.callPlayer("unmute")}),x(b(f),"ref",function(C){f.iframe=C}),f}return l(y,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(m){var h=this;(0,r.getSDK)(_,w).then(function(E){!h.iframe||(h.player=new E.Player(h.iframe),h.player.setLoop(h.props.loop),h.player.on("ready",h.props.onReady),h.player.on("play",h.props.onPlay),h.player.on("pause",h.props.onPause),h.player.on("seeked",h.props.onSeek),h.player.on("ended",h.props.onEnded),h.player.on("error",h.props.onError),h.player.on("timeupdate",function(C){var B=C.duration,F=C.seconds;h.duration=B,h.currentTime=F}),h.player.on("buffered",function(C){var B=C.percent;h.duration&&(h.secondsLoaded=h.duration*B)}),h.props.muted&&h.player.mute())},this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(m){this.callPlayer("setCurrentTime",m)}},{key:"setVolume",value:function(m){this.callPlayer("setVolume",m*100)}},{key:"setLoop",value:function(m){this.callPlayer("setLoop",m)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var m=this.props.url.match(i.MATCH_URL_STREAMABLE)[1],h={width:"100%",height:"100%"};return n.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/".concat(m),frameBorder:"0",scrolling:"no",style:h,allow:"encrypted-media; autoplay; fullscreen;"})}}]),y}(n.Component);e.default=T,x(T,"displayName","Streamable"),x(T,"canPlay",i.canPlay.streamable)}(No)),No}var Ao={},bd;function Qb(){return bd||(bd=1,function(e){function t(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(h){return typeof h}:t=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},t(f)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(j.exports),r=ae,i=Y;function u(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return u=function(){return f},f}function s(f){if(f&&f.__esModule)return f;if(f===null||t(f)!=="object"&&typeof f!="function")return{default:f};var m=u();if(m&&m.has(f))return m.get(f);var h={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in f)if(Object.prototype.hasOwnProperty.call(f,C)){var B=E?Object.getOwnPropertyDescriptor(f,C):null;B&&(B.get||B.set)?Object.defineProperty(h,C,B):h[C]=f[C]}return h.default=f,m&&m.set(f,h),h}function a(f,m){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(f);m&&(E=E.filter(function(C){return Object.getOwnPropertyDescriptor(f,C).enumerable})),h.push.apply(h,E)}return h}function o(f){for(var m=1;m<arguments.length;m++){var h=arguments[m]!=null?arguments[m]:{};m%2?a(Object(h),!0).forEach(function(E){w(f,E,h[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):a(Object(h)).forEach(function(E){Object.defineProperty(f,E,Object.getOwnPropertyDescriptor(h,E))})}return f}function l(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function d(f,m){for(var h=0;h<m.length;h++){var E=m[h];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(f,E.key,E)}}function p(f,m,h){return m&&d(f.prototype,m),h&&d(f,h),f}function g(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),m&&v(f,m)}function v(f,m){return v=Object.setPrototypeOf||function(E,C){return E.__proto__=C,E},v(f,m)}function b(f){var m=x();return function(){var E=_(f),C;if(m){var B=_(this).constructor;C=Reflect.construct(E,arguments,B)}else C=E.apply(this,arguments);return k(this,C)}}function k(f,m){return m&&(t(m)==="object"||typeof m=="function")?m:O(f)}function O(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(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<C;F++)B[F]=arguments[F];return E=m.call.apply(m,[this].concat(B)),w(O(E),"callPlayer",r.callPlayer),w(O(E),"playerID",E.props.config.playerId||"".concat(S).concat((0,r.randomString)())),w(O(E),"onPlay",function(){var M;return(M=E.props).onPlay.apply(M,arguments)}),w(O(E),"onPause",function(){var M;return(M=E.props).onPause.apply(M,arguments)}),w(O(E),"onSeek",function(){var M;return(M=E.props).onSeek.apply(M,arguments)}),w(O(E),"onEnded",function(){var M;return(M=E.props).onEnded.apply(M,arguments)}),w(O(E),"onPlaybackRateChange",function(){var M;return(M=E.props).onPlaybackRateChange.apply(M,arguments)}),w(O(E),"mute",function(){E.callPlayer("mute")}),w(O(E),"unmute",function(){E.callPlayer("unmute")}),E}return p(h,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(C){var B=this,F=this.props,M=F.playing,I=F.muted,L=F.controls,A=F.onReady,R=F.config,N=F.onError;(0,r.getSDK)(T,D).then(function(z){R.customControls&&R.customControls.forEach(function(V){return z.defineControl(V)}),window._wq=window._wq||[],window._wq.push({id:B.playerID,options:o({autoPlay:M,silentAutoPlay:"allow",muted:I,controlsVisibleOnLoad:L,fullscreenButton:L,playbar:L,playbackRateControl:L,qualityControl:L,volumeControl:L,settingsControl:L,smallPlayButton:L},R.options),onReady:function(W){B.player=W,B.unbind(),B.player.bind("play",B.onPlay),B.player.bind("pause",B.onPause),B.player.bind("seek",B.onSeek),B.player.bind("end",B.onEnded),B.player.bind("playbackratechange",B.onPlaybackRateChange),A()}})},N)}},{key:"unbind",value:function(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.unbind(),this.callPlayer("remove")}},{key:"seekTo",value:function(C){this.callPlayer("time",C)}},{key:"setVolume",value:function(C){this.callPlayer("volume",C)}},{key:"setPlaybackRate",value:function(C){this.callPlayer("playbackRate",C)}},{key:"getDuration",value:function(){return this.callPlayer("duration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("time")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var C=this.props.url,B=C&&C.match(i.MATCH_URL_WISTIA)[1],F="wistia_embed wistia_async_".concat(B),M={width:"100%",height:"100%"};return n.default.createElement("div",{id:this.playerID,key:B,className:F,style:M})}}]),h}(n.Component);e.default=y,w(y,"displayName","Wistia"),w(y,"canPlay",i.canPlay.wistia),w(y,"loopOnEnded",!0)}(Ao)),Ao}var Ro={},xd;function Jb(){return xd||(xd=1,function(e){function t(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(h){return typeof h}:t=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},t(f)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(j.exports),r=ae,i=Y;function u(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return u=function(){return f},f}function s(f){if(f&&f.__esModule)return f;if(f===null||t(f)!=="object"&&typeof f!="function")return{default:f};var m=u();if(m&&m.has(f))return m.get(f);var h={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in f)if(Object.prototype.hasOwnProperty.call(f,C)){var B=E?Object.getOwnPropertyDescriptor(f,C):null;B&&(B.get||B.set)?Object.defineProperty(h,C,B):h[C]=f[C]}return h.default=f,m&&m.set(f,h),h}function a(f,m){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(f);m&&(E=E.filter(function(C){return Object.getOwnPropertyDescriptor(f,C).enumerable})),h.push.apply(h,E)}return h}function o(f){for(var m=1;m<arguments.length;m++){var h=arguments[m]!=null?arguments[m]:{};m%2?a(Object(h),!0).forEach(function(E){w(f,E,h[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):a(Object(h)).forEach(function(E){Object.defineProperty(f,E,Object.getOwnPropertyDescriptor(h,E))})}return f}function l(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function d(f,m){for(var h=0;h<m.length;h++){var E=m[h];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(f,E.key,E)}}function p(f,m,h){return m&&d(f.prototype,m),h&&d(f,h),f}function g(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),m&&v(f,m)}function v(f,m){return v=Object.setPrototypeOf||function(E,C){return E.__proto__=C,E},v(f,m)}function b(f){var m=x();return function(){var E=_(f),C;if(m){var B=_(this).constructor;C=Reflect.construct(E,arguments,B)}else C=E.apply(this,arguments);return k(this,C)}}function k(f,m){return m&&(t(m)==="object"||typeof m=="function")?m:O(f)}function O(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(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;F<C;F++)B[F]=arguments[F];return E=m.call.apply(m,[this].concat(B)),w(O(E),"callPlayer",r.callPlayer),w(O(E),"playerID",E.props.config.playerId||"".concat(S).concat((0,r.randomString)())),w(O(E),"mute",function(){E.callPlayer("setMuted",!0)}),w(O(E),"unmute",function(){E.callPlayer("setMuted",!1)}),E}return p(h,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(C,B){var F=this,M=this.props,I=M.playsinline,L=M.onError,A=M.config,R=M.controls,N=i.MATCH_URL_TWITCH_CHANNEL.test(C),z=N?C.match(i.MATCH_URL_TWITCH_CHANNEL)[1]:C.match(i.MATCH_URL_TWITCH_VIDEO)[1];if(B){N?this.player.setChannel(z):this.player.setVideo("v"+z);return}(0,r.getSDK)(T,D).then(function(V){F.player=new V.Player(F.playerID,o({video:N?"":z,channel:N?z:"",height:"100%",width:"100%",playsinline:I,autoplay:F.props.playing,muted:F.props.muted,controls:N?!0:R,time:(0,r.parseStartTime)(C)},A.options));var W=V.Player,q=W.READY,X=W.PLAYING,Q=W.PAUSE,G=W.ENDED,we=W.ONLINE,Se=W.OFFLINE,st=W.SEEK;F.player.addEventListener(q,F.props.onReady),F.player.addEventListener(X,F.props.onPlay),F.player.addEventListener(Q,F.props.onPause),F.player.addEventListener(G,F.props.onEnded),F.player.addEventListener(st,F.props.onSeek),F.player.addEventListener(we,F.props.onLoaded),F.player.addEventListener(Se,F.props.onLoaded)},L)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("pause")}},{key:"seekTo",value:function(C){this.callPlayer("seek",C)}},{key:"setVolume",value:function(C){this.callPlayer("setVolume",C)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var C={width:"100%",height:"100%"};return n.default.createElement("div",{style:C,id:this.playerID})}}]),h}(n.Component);e.default=y,w(y,"displayName","Twitch"),w(y,"canPlay",i.canPlay.twitch),w(y,"loopOnEnded",!0)}(Ro)),Ro}var To={},Ed;function Zb(){return Ed||(Ed=1,function(e){function t(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(I){return typeof I}:t=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},t(F)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(j.exports),r=ae,i=Y;function u(){if(typeof WeakMap!="function")return null;var F=new WeakMap;return u=function(){return F},F}function s(F){if(F&&F.__esModule)return F;if(F===null||t(F)!=="object"&&typeof F!="function")return{default:F};var M=u();if(M&&M.has(F))return M.get(F);var I={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in F)if(Object.prototype.hasOwnProperty.call(F,A)){var R=L?Object.getOwnPropertyDescriptor(F,A):null;R&&(R.get||R.set)?Object.defineProperty(I,A,R):I[A]=F[A]}return I.default=F,M&&M.set(F,I),I}function a(F,M){var I=Object.keys(F);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(F);M&&(L=L.filter(function(A){return Object.getOwnPropertyDescriptor(F,A).enumerable})),I.push.apply(I,L)}return I}function o(F){for(var M=1;M<arguments.length;M++){var I=arguments[M]!=null?arguments[M]:{};M%2?a(Object(I),!0).forEach(function(L){m(F,L,I[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(I)):a(Object(I)).forEach(function(L){Object.defineProperty(F,L,Object.getOwnPropertyDescriptor(I,L))})}return F}function l(F,M){return b(F)||v(F,M)||p(F,M)||d()}function d(){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 p(F,M){if(!!F){if(typeof F=="string")return g(F,M);var I=Object.prototype.toString.call(F).slice(8,-1);if(I==="Object"&&F.constructor&&(I=F.constructor.name),I==="Map"||I==="Set")return Array.from(F);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return g(F,M)}}function g(F,M){(M==null||M>F.length)&&(M=F.length);for(var I=0,L=new Array(M);I<M;I++)L[I]=F[I];return L}function v(F,M){if(!(typeof Symbol>"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(V){A=!0,R=V}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<M.length;I++){var L=M[I];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(F,L.key,L)}}function x(F,M,I){return M&&O(F.prototype,M),I&&O(F,I),F}function _(F,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(M&&M.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),M&&w(F,M)}function w(F,M){return w=Object.setPrototypeOf||function(L,A){return L.__proto__=A,L},w(F,M)}function T(F){var M=y();return function(){var L=f(F),A;if(M){var R=f(this).constructor;A=Reflect.construct(L,arguments,R)}else A=L.apply(this,arguments);return D(this,A)}}function D(F,M){return M&&(t(M)==="object"||typeof M=="function")?M:S(F)}function S(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function 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<A;N++)R[N]=arguments[N];return L=M.call.apply(M,[this].concat(R)),m(S(L),"callPlayer",r.callPlayer),m(S(L),"onDurationChange",function(){var z=L.getDuration();L.props.onDuration(z)}),m(S(L),"mute",function(){L.callPlayer("setMuted",!0)}),m(S(L),"unmute",function(){L.callPlayer("setMuted",!1)}),m(S(L),"ref",function(z){L.container=z}),L}return x(I,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(A){var R=this,N=this.props,z=N.controls,V=N.config,W=N.onError,q=N.playing,X=A.match(i.MATCH_URL_DAILYMOTION),Q=l(X,2),G=Q[1];if(this.player){this.player.load(G,{start:(0,r.parseStartTime)(A),autoplay:q});return}(0,r.getSDK)(h,E,C,function(we){return we.player}).then(function(we){if(!!R.container){var Se=we.player;R.player=new Se(R.container,{width:"100%",height:"100%",video:G,params:o({controls:z,autoplay:R.props.playing,mute:R.props.muted,start:(0,r.parseStartTime)(A),origin:window.location.origin},V.params),events:{apiready:R.props.onReady,seeked:function(){return R.props.onSeek(R.player.currentTime)},video_end:R.props.onEnded,durationchange:R.onDurationChange,pause:R.props.onPause,playing:R.props.onPlay,waiting:R.props.onBuffer,error:function(zt){return W(zt)}}})}},W)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(A){this.callPlayer("seek",A)}},{key:"setVolume",value:function(A){this.callPlayer("setVolume",A)}},{key:"getDuration",value:function(){return this.player.duration||null}},{key:"getCurrentTime",value:function(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function(){return this.player.bufferedTime}},{key:"render",value:function(){var A=this.props.display,R={width:"100%",height:"100%",display:A};return n.default.createElement("div",{style:R},n.default.createElement("div",{ref:this.ref}))}}]),I}(n.Component);e.default=B,m(B,"displayName","DailyMotion"),m(B,"canPlay",i.canPlay.dailymotion),m(B,"loopOnEnded",!0)}(To)),To}var Mo={},_d;function ex(){return _d||(_d=1,function(e){function t(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(m){return typeof m}:t=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},t(y)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(j.exports),r=ae,i=Y;function u(){if(typeof WeakMap!="function")return null;var y=new WeakMap;return u=function(){return y},y}function s(y){if(y&&y.__esModule)return y;if(y===null||t(y)!=="object"&&typeof y!="function")return{default:y};var f=u();if(f&&f.has(y))return f.get(y);var m={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in y)if(Object.prototype.hasOwnProperty.call(y,E)){var C=h?Object.getOwnPropertyDescriptor(y,E):null;C&&(C.get||C.set)?Object.defineProperty(m,E,C):m[E]=y[E]}return m.default=y,f&&f.set(y,m),m}function a(y,f){var m=Object.keys(y);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(y);f&&(h=h.filter(function(E){return Object.getOwnPropertyDescriptor(y,E).enumerable})),m.push.apply(m,h)}return m}function o(y){for(var f=1;f<arguments.length;f++){var m=arguments[f]!=null?arguments[f]:{};f%2?a(Object(m),!0).forEach(function(h){w(y,h,m[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(m)):a(Object(m)).forEach(function(h){Object.defineProperty(y,h,Object.getOwnPropertyDescriptor(m,h))})}return y}function l(y,f){if(!(y instanceof f))throw new TypeError("Cannot call a class as a function")}function d(y,f){for(var m=0;m<f.length;m++){var h=f[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(y,h.key,h)}}function p(y,f,m){return f&&d(y.prototype,f),m&&d(y,m),y}function g(y,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),f&&v(y,f)}function v(y,f){return v=Object.setPrototypeOf||function(h,E){return h.__proto__=E,h},v(y,f)}function b(y){var f=x();return function(){var h=_(y),E;if(f){var C=_(this).constructor;E=Reflect.construct(h,arguments,C)}else E=h.apply(this,arguments);return k(this,E)}}function k(y,f){return f&&(t(f)==="object"||typeof f=="function")?f:O(y)}function O(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(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<E;B++)C[B]=arguments[B];return h=f.call.apply(f,[this].concat(C)),w(O(h),"callPlayer",r.callPlayer),w(O(h),"duration",null),w(O(h),"currentTime",null),w(O(h),"secondsLoaded",null),w(O(h),"mute",function(){}),w(O(h),"unmute",function(){}),w(O(h),"ref",function(F){h.iframe=F}),h}return p(m,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(E){var C=this;(0,r.getSDK)(T,D).then(function(B){C.player=B.PlayerWidget(C.iframe),C.player.ready.then(function(){C.player.events.play.on(C.props.onPlay),C.player.events.pause.on(C.props.onPause),C.player.events.ended.on(C.props.onEnded),C.player.events.error.on(C.props.error),C.player.events.progress.on(function(F,M){C.currentTime=F,C.duration=M}),C.props.onReady()})},this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(E){this.callPlayer("seek",E)}},{key:"setVolume",value:function(E){}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var E=this.props,C=E.url,B=E.config,F=C.match(i.MATCH_URL_MIXCLOUD)[1],M={width:"100%",height:"100%"},I=(0,r.queryString)(o(o({},B.options),{},{feed:"/".concat(F,"/")}));return n.default.createElement("iframe",{key:F,ref:this.ref,style:M,src:"https://www.mixcloud.com/widget/iframe/?".concat(I),frameBorder:"0",allow:"autoplay"})}}]),m}(n.Component);e.default=S,w(S,"displayName","Mixcloud"),w(S,"canPlay",i.canPlay.mixcloud),w(S,"loopOnEnded",!0)}(Mo)),Mo}var Lo={},wd;function tx(){return wd||(wd=1,function(e){function t(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(h){return typeof h}:t=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},t(f)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(j.exports),r=ae,i=Y;function u(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return u=function(){return f},f}function s(f){if(f&&f.__esModule)return f;if(f===null||t(f)!=="object"&&typeof f!="function")return{default:f};var m=u();if(m&&m.has(f))return m.get(f);var h={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in f)if(Object.prototype.hasOwnProperty.call(f,C)){var B=E?Object.getOwnPropertyDescriptor(f,C):null;B&&(B.get||B.set)?Object.defineProperty(h,C,B):h[C]=f[C]}return h.default=f,m&&m.set(f,h),h}function a(f,m){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(f);m&&(E=E.filter(function(C){return Object.getOwnPropertyDescriptor(f,C).enumerable})),h.push.apply(h,E)}return h}function o(f){for(var m=1;m<arguments.length;m++){var h=arguments[m]!=null?arguments[m]:{};m%2?a(Object(h),!0).forEach(function(E){w(f,E,h[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):a(Object(h)).forEach(function(E){Object.defineProperty(f,E,Object.getOwnPropertyDescriptor(h,E))})}return f}function l(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function d(f,m){for(var h=0;h<m.length;h++){var E=m[h];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(f,E.key,E)}}function p(f,m,h){return m&&d(f.prototype,m),h&&d(f,h),f}function g(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),m&&v(f,m)}function v(f,m){return v=Object.setPrototypeOf||function(E,C){return E.__proto__=C,E},v(f,m)}function b(f){var m=x();return function(){var E=_(f),C;if(m){var B=_(this).constructor;C=Reflect.construct(E,arguments,B)}else C=E.apply(this,arguments);return k(this,C)}}function k(f,m){return m&&(t(m)==="object"||typeof m=="function")?m:O(f)}function O(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(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<C;F++)B[F]=arguments[F];return E=m.call.apply(m,[this].concat(B)),w(O(E),"callPlayer",r.callPlayer),w(O(E),"mute",function(){E.setVolume(0)}),w(O(E),"unmute",function(){E.props.volume!==null&&E.setVolume(E.props.volume)}),w(O(E),"ref",function(M){E.container=M}),E}return p(h,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(C){var B=this,F=this.props,M=F.playing,I=F.config,L=F.onError,A=F.onDuration,R=C&&C.match(i.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,r.getSDK)(T,D,S).then(function(N){!B.container||(N.api.addReadyListener(function(z,V){B.player||(B.player=V,B.player.on("ready",B.props.onReady),B.player.on("play",B.props.onPlay),B.player.on("pause",B.props.onPause),B.player.on("seek",B.props.onSeek),B.player.on("playerComplete",B.props.onEnded))},R),N.api.renderPlayer(o({uuid:R,container:B.container,autoplay:M?1:0},I.options)),N.api.getPlayerMetadata(R).then(function(z){B.duration=z.length_in_seconds,A(z.length_in_seconds)}))},L)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){window.VidyardV4.api.destroyPlayer(this.player)}},{key:"seekTo",value:function(C){this.callPlayer("seek",C)}},{key:"setVolume",value:function(C){this.callPlayer("setVolume",C)}},{key:"setPlaybackRate",value:function(C){this.callPlayer("setPlaybackSpeed",C)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.callPlayer("currentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var C=this.props.display,B={width:"100%",height:"100%",display:C};return n.default.createElement("div",{style:B},n.default.createElement("div",{ref:this.ref}))}}]),h}(n.Component);e.default=y,w(y,"displayName","Vidyard"),w(y,"canPlay",i.canPlay.vidyard)}(Lo)),Lo}var Bo={},Dd;function nx(){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=s(j.exports),r=ae,i=Y;function u(){if(typeof WeakMap!="function")return null;var D=new WeakMap;return u=function(){return D},D}function s(D){if(D&&D.__esModule)return D;if(D===null||t(D)!=="object"&&typeof D!="function")return{default:D};var S=u();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 a(D,S){if(!(D instanceof S))throw new TypeError("Cannot call a class as a function")}function o(D,S){for(var y=0;y<S.length;y++){var f=S[y];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(D,f.key,f)}}function l(D,S,y){return S&&o(D.prototype,S),y&&o(D,y),D}function d(D,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(S&&S.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),S&&p(D,S)}function p(D,S){return p=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},p(D,S)}function g(D){var S=k();return function(){var f=O(D),m;if(S){var h=O(this).constructor;m=Reflect.construct(f,arguments,h)}else m=f.apply(this,arguments);return v(this,m)}}function v(D,S){return S&&(t(S)==="object"||typeof S=="function")?S:b(D)}function b(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function 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<m;E++)h[E]=arguments[E];return f=S.call.apply(S,[this].concat(h)),x(b(f),"callPlayer",r.callPlayer),x(b(f),"duration",null),x(b(f),"currentTime",null),x(b(f),"secondsLoaded",null),x(b(f),"mute",function(){f.callPlayer("mute")}),x(b(f),"unmute",function(){f.callPlayer("unmute")}),x(b(f),"ref",function(C){f.iframe=C}),f}return l(y,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(m){var h=this;(0,r.getSDK)(_,w).then(function(E){!h.iframe||(h.player=new E.Player(h.iframe),h.player.on("ready",function(){setTimeout(function(){h.player.isReady=!0,h.player.setLoop(h.props.loop),h.props.muted&&h.player.mute(),h.addListeners(h.player,h.props),h.props.onReady()},500)}))},this.props.onError)}},{key:"addListeners",value:function(m,h){var E=this;m.on("play",h.onPlay),m.on("pause",h.onPause),m.on("ended",h.onEnded),m.on("error",h.onError),m.on("timeupdate",function(C){var B=C.duration,F=C.seconds;E.duration=B,E.currentTime=F})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(m){this.callPlayer("setCurrentTime",m)}},{key:"setVolume",value:function(m){this.callPlayer("setVolume",m)}},{key:"setLoop",value:function(m){this.callPlayer("setLoop",m)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var m={width:"100%",height:"100%"};return n.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:m,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}]),y}(n.Component);e.default=T,x(T,"displayName","Kaltura"),x(T,"canPlay",i.canPlay.kaltura)}(Bo)),Bo}var Io={},kd;function rx(){return kd||(kd=1,function(e){function t(I){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(A){return typeof A}:t=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(I)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(j.exports),r=ae,i=Y;function u(){if(typeof WeakMap!="function")return null;var I=new WeakMap;return u=function(){return I},I}function s(I){if(I&&I.__esModule)return I;if(I===null||t(I)!=="object"&&typeof I!="function")return{default:I};var L=u();if(L&&L.has(I))return L.get(I);var A={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var N in I)if(Object.prototype.hasOwnProperty.call(I,N)){var z=R?Object.getOwnPropertyDescriptor(I,N):null;z&&(z.get||z.set)?Object.defineProperty(A,N,z):A[N]=I[N]}return A.default=I,L&&L.set(I,A),A}function a(){return a=Object.assign||function(I){for(var L=1;L<arguments.length;L++){var A=arguments[L];for(var R in A)Object.prototype.hasOwnProperty.call(A,R)&&(I[R]=A[R])}return I},a.apply(this,arguments)}function o(I,L){if(!(I instanceof L))throw new TypeError("Cannot call a class as a function")}function l(I,L){for(var A=0;A<L.length;A++){var R=L[A];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(I,R.key,R)}}function d(I,L,A){return L&&l(I.prototype,L),A&&l(I,A),I}function p(I,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(L&&L.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),L&&g(I,L)}function g(I,L){return g=Object.setPrototypeOf||function(R,N){return R.__proto__=N,R},g(I,L)}function v(I){var L=O();return function(){var R=x(I),N;if(L){var z=x(this).constructor;N=Reflect.construct(R,arguments,z)}else N=R.apply(this,arguments);return b(this,N)}}function b(I,L){return L&&(t(L)==="object"||typeof L=="function")?L:k(I)}function k(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function O(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function 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),V=0;V<N;V++)z[V]=arguments[V];return R=L.call.apply(L,[this].concat(z)),_(k(R),"onReady",function(){var W;return(W=R.props).onReady.apply(W,arguments)}),_(k(R),"onPlay",function(){var W;return(W=R.props).onPlay.apply(W,arguments)}),_(k(R),"onBuffer",function(){var W;return(W=R.props).onBuffer.apply(W,arguments)}),_(k(R),"onBufferEnd",function(){var W;return(W=R.props).onBufferEnd.apply(W,arguments)}),_(k(R),"onPause",function(){var W;return(W=R.props).onPause.apply(W,arguments)}),_(k(R),"onEnded",function(){var W;return(W=R.props).onEnded.apply(W,arguments)}),_(k(R),"onError",function(){var W;return(W=R.props).onError.apply(W,arguments)}),_(k(R),"onPlayBackRateChange",function(W){return R.props.onPlaybackRateChange(W.target.playbackRate)}),_(k(R),"onEnablePIP",function(){var W;return(W=R.props).onEnablePIP.apply(W,arguments)}),_(k(R),"onDisablePIP",function(W){var q=R.props,X=q.onDisablePIP,Q=q.playing;X(W),Q&&R.play()}),_(k(R),"onPresentationModeChange",function(W){if(R.player&&(0,r.supportsWebKitPresentationMode)(R.player)){var q=R.player.webkitPresentationMode;q==="picture-in-picture"?R.onEnablePIP(W):q==="inline"&&R.onDisablePIP(W)}}),_(k(R),"onSeek",function(W){R.props.onSeek(W.target.currentTime)}),_(k(R),"mute",function(){R.player.muted=!0}),_(k(R),"unmute",function(){R.player.muted=!1}),_(k(R),"renderSourceElement",function(W,q){return typeof W=="string"?n.default.createElement("source",{key:q,src:W}):n.default.createElement("source",a({key:q},W))}),_(k(R),"renderTrack",function(W,q){return n.default.createElement("track",a({key:q},W))}),_(k(R),"ref",function(W){R.player&&(R.prevPlayer=R.player),R.player=W}),R}return d(A,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player),D&&this.player.load()}},{key:"componentDidUpdate",value:function(N){this.shouldUseAudio(this.props)!==this.shouldUseAudio(N)&&(this.removeListeners(this.prevPlayer,N.url),this.addListeners(this.player)),this.props.url!==N.url&&!(0,r.isMediaStream)(this.props.url)&&(this.player.srcObject=null)}},{key:"componentWillUnmount",value:function(){this.player.src="",this.removeListeners(this.player),this.hls&&this.hls.destroy()}},{key:"addListeners",value:function(N){var z=this.props,V=z.url,W=z.playsinline;N.addEventListener("play",this.onPlay),N.addEventListener("waiting",this.onBuffer),N.addEventListener("playing",this.onBufferEnd),N.addEventListener("pause",this.onPause),N.addEventListener("seeked",this.onSeek),N.addEventListener("ended",this.onEnded),N.addEventListener("error",this.onError),N.addEventListener("ratechange",this.onPlayBackRateChange),N.addEventListener("enterpictureinpicture",this.onEnablePIP),N.addEventListener("leavepictureinpicture",this.onDisablePIP),N.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(V)||N.addEventListener("canplay",this.onReady),W&&(N.setAttribute("playsinline",""),N.setAttribute("webkit-playsinline",""),N.setAttribute("x5-playsinline",""))}},{key:"removeListeners",value:function(N,z){N.removeEventListener("canplay",this.onReady),N.removeEventListener("play",this.onPlay),N.removeEventListener("waiting",this.onBuffer),N.removeEventListener("playing",this.onBufferEnd),N.removeEventListener("pause",this.onPause),N.removeEventListener("seeked",this.onSeek),N.removeEventListener("ended",this.onEnded),N.removeEventListener("error",this.onError),N.removeEventListener("ratechange",this.onPlayBackRateChange),N.removeEventListener("enterpictureinpicture",this.onEnablePIP),N.removeEventListener("leavepictureinpicture",this.onDisablePIP),N.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(z)||N.removeEventListener("canplay",this.onReady)}},{key:"shouldUseAudio",value:function(N){return N.config.forceVideo||N.config.attributes.poster?!1:i.AUDIO_EXTENSIONS.test(N.url)||N.config.forceAudio}},{key:"shouldUseHLS",value:function(N){return this.props.config.forceHLS?!0:D?!1:i.HLS_EXTENSIONS.test(N)||B.test(N)}},{key:"shouldUseDASH",value:function(N){return i.DASH_EXTENSIONS.test(N)||this.props.config.forceDASH}},{key:"shouldUseFLV",value:function(N){return i.FLV_EXTENSIONS.test(N)||this.props.config.forceFLV}},{key:"load",value:function(N){var z=this,V=this.props.config,W=V.hlsVersion,q=V.hlsOptions,X=V.dashVersion,Q=V.flvVersion;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(N)&&(0,r.getSDK)(S.replace("VERSION",W),y).then(function(G){if(z.hls=new G(q),z.hls.on(G.Events.MANIFEST_PARSED,function(){z.props.onReady()}),z.hls.on(G.Events.ERROR,function(Se,st){z.props.onError(Se,st,z.hls,G)}),B.test(N)){var we=N.match(B)[1];z.hls.loadSource(F.replace("{id}",we))}else z.hls.loadSource(N);z.hls.attachMedia(z.player),z.props.onLoaded()}),this.shouldUseDASH(N)&&(0,r.getSDK)(f.replace("VERSION",X),m).then(function(G){z.dash=G.MediaPlayer().create(),z.dash.initialize(z.player,N,z.props.playing),z.dash.on("error",z.props.onError),parseInt(X)<3?z.dash.getDebug().setLogToBrowserConsole(!1):z.dash.updateSettings({debug:{logLevel:G.Debug.LOG_LEVEL_NONE}}),z.props.onLoaded()}),this.shouldUseFLV(N)&&(0,r.getSDK)(h.replace("VERSION",Q),E).then(function(G){z.flv=G.createPlayer({type:"flv",url:N}),z.flv.attachMediaElement(z.player),z.flv.on(G.Events.ERROR,function(we,Se){z.props.onError(we,Se,z.flv,G)}),z.flv.load(),z.props.onLoaded()}),N instanceof Array)this.player.load();else if((0,r.isMediaStream)(N))try{this.player.srcObject=N}catch{this.player.src=window.URL.createObjectURL(N)}}},{key:"play",value:function(){var N=this.player.play();N&&N.catch(this.props.onError)}},{key:"pause",value:function(){this.player.pause()}},{key:"stop",value:function(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}},{key:"seekTo",value:function(N){this.player.currentTime=N}},{key:"setVolume",value:function(N){this.player.volume=N}},{key:"enablePIP",value:function(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,r.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}},{key:"disablePIP",value:function(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,r.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}},{key:"setPlaybackRate",value:function(N){try{this.player.playbackRate=N}catch(z){this.props.onError(z)}}},{key:"getDuration",value:function(){if(!this.player)return null;var N=this.player,z=N.duration,V=N.seekable;return z===1/0&&V.length>0?V.end(V.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),V=this.getDuration();return z>V?V:z}},{key:"getSource",value:function(N){var z=this.shouldUseHLS(N),V=this.shouldUseDASH(N),W=this.shouldUseFLV(N);if(!(N instanceof Array||(0,r.isMediaStream)(N)||z||V||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,V=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),st=Se?"audio":"video",zt={width:G==="auto"?G:"100%",height:we==="auto"?we:"100%"};return n.default.createElement(st,a({ref:this.ref,src:this.getSource(z),style:zt,preload:"auto",autoPlay:V||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)}(Io)),Io}(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(Kb())})})},{key:"soundcloud",name:"SoundCloud",canPlay:r.canPlay.soundcloud,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Yb())})})},{key:"vimeo",name:"Vimeo",canPlay:r.canPlay.vimeo,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(qb())})})},{key:"facebook",name:"Facebook",canPlay:r.canPlay.facebook,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Xb())})})},{key:"streamable",name:"Streamable",canPlay:r.canPlay.streamable,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Gb())})})},{key:"wistia",name:"Wistia",canPlay:r.canPlay.wistia,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Qb())})})},{key:"twitch",name:"Twitch",canPlay:r.canPlay.twitch,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Jb())})})},{key:"dailymotion",name:"DailyMotion",canPlay:r.canPlay.dailymotion,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(Zb())})})},{key:"mixcloud",name:"Mixcloud",canPlay:r.canPlay.mixcloud,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(ex())})})},{key:"vidyard",name:"Vidyard",canPlay:r.canPlay.vidyard,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(tx())})})},{key:"kaltura",name:"Kaltura",canPlay:r.canPlay.kaltura,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return s(nx())})})},{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(rx())})})}];e.default=a})(k3);var Ia={},Sd=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ix(e,t){return!!(e===t||Sd(e)&&Sd(t))}function ux(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!ix(e[n],t[n]))return!1;return!0}function sx(e,t){t===void 0&&(t=ux);var n,r=[],i,u=!1;function s(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return u&&n===this&&t(a,r)||(i=e.apply(this,a),u=!0,n=this,r=a),i}return s}const ax=Object.freeze(Object.defineProperty({__proto__:null,default:sx},Symbol.toStringTag,{value:"Module"})),ox=Pg(ax);var lx=typeof Element<"u",cx=typeof Map=="function",dx=typeof Set=="function",fx=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Cs(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Cs(e[r],t[r]))return!1;return!0}var u;if(cx&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(r=u.next()).done;)if(!t.has(r.value[0]))return!1;for(u=e.entries();!(r=u.next()).done;)if(!Cs(r.value[1],t.get(r.value[0])))return!1;return!0}if(dx&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(r=u.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(fx&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(lx&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Cs(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var H3=function(t,n){try{return Cs(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},dr={},$3={exports:{}},hx="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",px=hx,mx=px;function K3(){}function Y3(){}Y3.resetWarningCache=K3;var gx=function(){function e(r,i,u,s,a,o){if(o!==mx){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Y3,resetWarningCache:K3};return n.PropTypes=n,n};$3.exports=gx();Object.defineProperty(dr,"__esModule",{value:!0});dr.defaultProps=dr.propTypes=void 0;var fn=yx($3.exports);function yx(e){return e&&e.__esModule?e:{default:e}}var Ye=fn.default.string,at=fn.default.bool,xr=fn.default.number,zo=fn.default.array,bi=fn.default.oneOfType,mt=fn.default.shape,qe=fn.default.object,Fe=fn.default.func,Pd=fn.default.node,vx={url:bi([Ye,zo,qe]),playing:at,loop:at,controls:at,volume:xr,muted:at,playbackRate:xr,width:bi([Ye,xr]),height:bi([Ye,xr]),style:qe,progressInterval:xr,playsinline:at,pip:at,stopOnUnmount:at,light:bi([at,Ye,qe]),playIcon:Pd,previewTabIndex:xr,fallback:Pd,oEmbedUrl:Ye,wrapper:bi([Ye,Fe,mt({render:Fe.isRequired})]),config:mt({soundcloud:mt({options:qe}),youtube:mt({playerVars:qe,embedOptions:qe,onUnstarted:Fe}),facebook:mt({appId:Ye,version:Ye,playerId:Ye,attributes:qe}),dailymotion:mt({params:qe}),vimeo:mt({playerOptions:qe,title:Ye}),file:mt({attributes:qe,tracks:zo,forceVideo:at,forceAudio:at,forceHLS:at,forceDASH:at,forceFLV:at,hlsOptions:qe,hlsVersion:Ye,dashVersion:Ye,flvVersion:Ye}),wistia:mt({options:qe,playerId:Ye,customControls:zo}),mixcloud:mt({options:qe}),twitch:mt({options:qe,playerId:Ye}),vidyard:mt({options:qe})}),onReady:Fe,onStart:Fe,onPlay:Fe,onPause:Fe,onBuffer:Fe,onBufferEnd:Fe,onEnded:Fe,onError:Fe,onDuration:Fe,onSeek:Fe,onPlaybackRateChange:Fe,onProgress:Fe,onClickPreview:Fe,onEnablePIP:Fe,onDisablePIP:Fe};dr.propTypes=vx;var Ve=function(){},bx={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Ve},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0"},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Ve,onStart:Ve,onPlay:Ve,onPause:Ve,onBuffer:Ve,onBufferEnd:Ve,onEnded:Ve,onError:Ve,onDuration:Ve,onSeek:Ve,onPlaybackRateChange:Ve,onProgress:Ve,onClickPreview:Ve,onEnablePIP:Ve,onDisablePIP:Ve};dr.defaultProps=bx;var q3={};(function(e){function t(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(m){return typeof m}:t=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},t(y)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(j.exports),r=s(H3),i=dr,u=ae;function s(y){return y&&y.__esModule?y:{default:y}}function a(){if(typeof WeakMap!="function")return null;var y=new WeakMap;return a=function(){return y},y}function o(y){if(y&&y.__esModule)return y;if(y===null||t(y)!=="object"&&typeof y!="function")return{default:y};var f=a();if(f&&f.has(y))return f.get(y);var m={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in y)if(Object.prototype.hasOwnProperty.call(y,E)){var C=h?Object.getOwnPropertyDescriptor(y,E):null;C&&(C.get||C.set)?Object.defineProperty(m,E,C):m[E]=y[E]}return m.default=y,f&&f.set(y,m),m}function l(){return l=Object.assign||function(y){for(var f=1;f<arguments.length;f++){var m=arguments[f];for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&(y[h]=m[h])}return y},l.apply(this,arguments)}function d(y,f){if(!(y instanceof f))throw new TypeError("Cannot call a class as a function")}function p(y,f){for(var m=0;m<f.length;m++){var h=f[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(y,h.key,h)}}function g(y,f,m){return f&&p(y.prototype,f),m&&p(y,m),y}function v(y,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),f&&b(y,f)}function b(y,f){return b=Object.setPrototypeOf||function(h,E){return h.__proto__=E,h},b(y,f)}function k(y){var f=_();return function(){var h=w(y),E;if(f){var C=w(this).constructor;E=Reflect.construct(h,arguments,C)}else E=h.apply(this,arguments);return O(this,E)}}function O(y,f){return f&&(t(f)==="object"||typeof f=="function")?f:x(y)}function x(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}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;B<E;B++)C[B]=arguments[B];return h=f.call.apply(f,[this].concat(C)),T(x(h),"mounted",!1),T(x(h),"isReady",!1),T(x(h),"isPlaying",!1),T(x(h),"isLoading",!0),T(x(h),"loadOnReady",null),T(x(h),"startOnPlay",!0),T(x(h),"seekOnPlay",null),T(x(h),"onDurationCalled",!1),T(x(h),"handlePlayerMount",function(F){if(h.player){h.progress();return}h.player=F,h.player.load(h.props.url),h.progress()}),T(x(h),"getInternalPlayer",function(F){return h.player?h.player[F]:null}),T(x(h),"progress",function(){if(h.props.url&&h.player&&h.isReady){var F=h.getCurrentTime()||0,M=h.getSecondsLoaded(),I=h.getDuration();if(I){var L={playedSeconds:F,played:F/I};M!==null&&(L.loadedSeconds=M,L.loaded=M/I),(L.playedSeconds!==h.prevPlayed||L.loadedSeconds!==h.prevLoaded)&&h.props.onProgress(L),h.prevPlayed=L.playedSeconds,h.prevLoaded=L.loadedSeconds}}h.progressTimeout=setTimeout(h.progress,h.props.progressFrequency||h.props.progressInterval)}),T(x(h),"handleReady",function(){if(!!h.mounted){h.isReady=!0,h.isLoading=!1;var F=h.props,M=F.onReady,I=F.playing,L=F.volume,A=F.muted;M(),!A&&L!==null&&h.player.setVolume(L),h.loadOnReady?(h.player.load(h.loadOnReady,!0),h.loadOnReady=null):I&&h.player.play(),h.handleDurationCheck()}}),T(x(h),"handlePlay",function(){h.isPlaying=!0,h.isLoading=!1;var F=h.props,M=F.onStart,I=F.onPlay,L=F.playbackRate;h.startOnPlay&&(h.player.setPlaybackRate&&L!==1&&h.player.setPlaybackRate(L),M(),h.startOnPlay=!1),I(),h.seekOnPlay&&(h.seekTo(h.seekOnPlay),h.seekOnPlay=null),h.handleDurationCheck()}),T(x(h),"handlePause",function(F){h.isPlaying=!1,h.isLoading||h.props.onPause(F)}),T(x(h),"handleEnded",function(){var F=h.props,M=F.activePlayer,I=F.loop,L=F.onEnded;M.loopOnEnded&&I&&h.seekTo(0),I||(h.isPlaying=!1,L())}),T(x(h),"handleError",function(){var F;h.isLoading=!1,(F=h.props).onError.apply(F,arguments)}),T(x(h),"handleDurationCheck",function(){clearTimeout(h.durationCheckTimeout);var F=h.getDuration();F?h.onDurationCalled||(h.props.onDuration(F),h.onDurationCalled=!0):h.durationCheckTimeout=setTimeout(h.handleDurationCheck,100)}),T(x(h),"handleLoaded",function(){h.isLoading=!1}),h}return g(m,[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}},{key:"componentDidUpdate",value:function(E){var C=this;if(!!this.player){var B=this.props,F=B.url,M=B.playing,I=B.volume,L=B.muted,A=B.playbackRate,R=B.pip,N=B.loop,z=B.activePlayer,V=B.disableDeferredLoading;if(!(0,r.default)(E.url,F)){if(this.isLoading&&!z.forceLoad&&!V&&!(0,u.isMediaStream)(F)){console.warn("ReactPlayer: the attempt to load ".concat(F," is being deferred until the player has loaded")),this.loadOnReady=F;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(F,this.isReady)}!E.playing&&M&&!this.isPlaying&&this.player.play(),E.playing&&!M&&this.isPlaying&&this.player.pause(),!E.pip&&R&&this.player.enablePIP&&this.player.enablePIP(),E.pip&&!R&&this.player.disablePIP&&this.player.disablePIP(),E.volume!==I&&I!==null&&this.player.setVolume(I),E.muted!==L&&(L?this.player.mute():(this.player.unmute(),I!==null&&setTimeout(function(){return C.player.setVolume(I)}))),E.playbackRate!==A&&this.player.setPlaybackRate&&this.player.setPlaybackRate(A),E.loop!==N&&this.player.setLoop&&this.player.setLoop(N)}}},{key:"getDuration",value:function(){return this.isReady?this.player.getDuration():null}},{key:"getCurrentTime",value:function(){return this.isReady?this.player.getCurrentTime():null}},{key:"getSecondsLoaded",value:function(){return this.isReady?this.player.getSecondsLoaded():null}},{key:"seekTo",value:function(E,C){var B=this;if(!this.isReady){E!==0&&(this.seekOnPlay=E,setTimeout(function(){B.seekOnPlay=null},D));return}var F=C?C==="fraction":E>0&&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)})(q3);var jo={},Cd;function xx(){return Cd||(Cd=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<arguments.length;S++){var y=arguments[S]!=null?arguments[S]:{};S%2?u(Object(y),!0).forEach(function(f){x(D,f,y[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(y)):u(Object(y)).forEach(function(f){Object.defineProperty(D,f,Object.getOwnPropertyDescriptor(y,f))})}return D}function a(D,S){if(!(D instanceof S))throw new TypeError("Cannot call a class as a function")}function o(D,S){for(var y=0;y<S.length;y++){var f=S[y];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(D,f.key,f)}}function l(D,S,y){return S&&o(D.prototype,S),y&&o(D,y),D}function d(D,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(S&&S.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),S&&p(D,S)}function p(D,S){return p=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},p(D,S)}function g(D){var S=k();return function(){var f=O(D),m;if(S){var h=O(this).constructor;m=Reflect.construct(f,arguments,h)}else m=f.apply(this,arguments);return v(this,m)}}function v(D,S){return S&&(t(S)==="object"||typeof S=="function")?S:b(D)}function b(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function 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;E<m;E++)h[E]=arguments[E];return f=S.call.apply(S,[this].concat(h)),x(b(f),"mounted",!1),x(b(f),"state",{image:null}),x(b(f),"handleKeyPress",function(C){(C.key==="Enter"||C.key===" ")&&f.props.onClick()}),f}return l(y,[{key:"componentDidMount",value:function(){this.mounted=!0,this.fetchImage(this.props)}},{key:"componentDidUpdate",value:function(m){var h=this.props,E=h.url,C=h.light;(m.url!==E||m.light!==C)&&this.fetchImage(this.props)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"fetchImage",value:function(m){var h=this,E=m.url,C=m.light,B=m.oEmbedUrl;if(!n.default.isValidElement(C)){if(typeof C=="string"){this.setState({image:C});return}if(w[E]){this.setState({image:w[E]});return}return this.setState({image:null}),window.fetch(B.replace("{url}",E)).then(function(F){return F.json()}).then(function(F){if(F.thumbnail_url&&h.mounted){var M=F.thumbnail_url.replace("height=100","height=480");h.setState({image:M}),w[E]=M}})}}},{key:"render",value:function(){var m=this.props,h=m.light,E=m.onClick,C=m.playIcon,B=m.previewTabIndex,F=this.state.image,M=n.default.isValidElement(h),I={display:"flex",alignItems:"center",justifyContent:"center"},L={preview:s({width:"100%",height:"100%",backgroundImage:F&&!M?"url(".concat(F,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer"},I),shadow:s({background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:_,width:_,height:_,position:M?"absolute":void 0},I),playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},A=n.default.createElement("div",{style:L.shadow,className:"react-player__shadow"},n.default.createElement("div",{style:L.playIcon,className:"react-player__play-icon"}));return n.default.createElement("div",{style:L.preview,className:"react-player__preview",onClick:E,tabIndex:B,onKeyPress:this.handleKeyPress},M?h:null,C||A)}}]),y}(n.Component);e.default=T}(jo)),jo}Object.defineProperty(Ia,"__esModule",{value:!0});Ia.createReactPlayer=void 0;var Qn=G3(j.exports),Ex=za(P3),Vo=za(ox),Od=za(H3),Ri=dr,_x=ae,wx=za(q3);function za(e){return e&&e.__esModule?e:{default:e}}function Ki(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ki=function(n){return typeof n}:Ki=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ki(e)}function Fd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fd(Object(n),!0).forEach(function(r){ve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function na(){return na=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},na.apply(this,arguments)}function Uo(e){return Px(e)||Sx(e)||kx(e)||Dx()}function Dx(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kx(e,t){if(!!e){if(typeof e=="string")return uc(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 uc(e,t)}}function Sx(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Px(e){if(Array.isArray(e))return uc(e)}function uc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ad(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ox(e,t,n){return t&&Ad(e.prototype,t),n&&Ad(e,n),e}function Fx(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sc(e,t)}function sc(e,t){return sc=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},sc(e,t)}function Nx(e){var t=Rx();return function(){var r=ra(e),i;if(t){var u=ra(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return Ax(this,i)}}function Ax(e,t){return t&&(Ki(t)==="object"||typeof t=="function")?t:Ue(e)}function Ue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rx(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ra(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 X3(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return X3=function(){return e},e}function G3(e){if(e&&e.__esModule)return e;if(e===null||Ki(e)!=="object"&&typeof e!="function")return{default:e};var t=X3();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 Tx=(0,Qn.lazy)(function(){return Promise.resolve().then(function(){return G3(xx())})}),Mx=typeof window<"u"&&window.document,Lx=typeof Ga<"u"&&Ga.window&&Ga.window.document,Bx=Object.keys(Ri.propTypes),Ix=Mx||Lx?Qn.Suspense:function(){return null},xi=[],zx=function(t,n){var r,i;return i=r=function(u){Fx(a,u);var s=Nx(a);function a(){var o;Cx(this,a);for(var l=arguments.length,d=new Array(l),p=0;p<l;p++)d[p]=arguments[p];return o=s.call.apply(s,[this].concat(d)),ve(Ue(o),"state",{showPreview:!!o.props.light}),ve(Ue(o),"references",{wrapper:function(v){o.wrapper=v},player:function(v){o.player=v}}),ve(Ue(o),"handleClickPreview",function(g){o.setState({showPreview:!1}),o.props.onClickPreview(g)}),ve(Ue(o),"showPreview",function(){o.setState({showPreview:!0})}),ve(Ue(o),"getDuration",function(){return o.player?o.player.getDuration():null}),ve(Ue(o),"getCurrentTime",function(){return o.player?o.player.getCurrentTime():null}),ve(Ue(o),"getSecondsLoaded",function(){return o.player?o.player.getSecondsLoaded():null}),ve(Ue(o),"getInternalPlayer",function(){var g=arguments.length>0&&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,Vo.default)(function(g){for(var v=0,b=[].concat(xi,Uo(t));v<b.length;v++){var k=b[v];if(k.canPlay(g))return k}return n||null})),ve(Ue(o),"getConfig",(0,Vo.default)(function(g,v){var b=o.props.config;return Ex.default.all([Ri.defaultProps.config,Ri.defaultProps.config[v]||{},b,b[v]||{}])})),ve(Ue(o),"getAttributes",(0,Vo.default)(function(g){return(0,_x.omit)(o.props,Bx)})),ve(Ue(o),"renderActivePlayer",function(g){if(!g)return null;var v=o.getActivePlayer(g);if(!v)return null;var b=o.getConfig(g,v.key);return Qn.default.createElement(wx.default,na({},o.props,{key:v.key,ref:o.references.player,config:b,activePlayer:v.lazyPlayer||v,onReady:o.handleReady}))}),o}return Ox(a,[{key:"shouldComponentUpdate",value:function(l,d){return!(0,Od.default)(this.props,l)||!(0,Od.default)(this.state,d)}},{key:"componentDidUpdate",value:function(l){var d=this.props.light;!l.light&&d&&this.setState({showPreview:!0}),l.light&&!d&&this.setState({showPreview:!1})}},{key:"renderPreview",value:function(l){if(!l)return null;var d=this.props,p=d.light,g=d.playIcon,v=d.previewTabIndex,b=d.oEmbedUrl;return Qn.default.createElement(Tx,{url:l,light:p,playIcon:g,previewTabIndex:v,oEmbedUrl:b,onClick:this.handleClickPreview})}},{key:"render",value:function(){var l=this.props,d=l.url,p=l.style,g=l.width,v=l.height,b=l.fallback,k=l.wrapper,O=this.state.showPreview,x=this.getAttributes(d),_=typeof k=="string"?this.references.wrapper:void 0;return Qn.default.createElement(k,na({ref:_,style:Nd(Nd({},p),{},{width:g,height:v})},x),Qn.default.createElement(Ix,{fallback:b},O?this.renderPreview(d):this.renderActivePlayer(d)))}}]),a}(Qn.Component),ve(r,"displayName","ReactPlayer"),ve(r,"propTypes",Ri.propTypes),ve(r,"defaultProps",Ri.defaultProps),ve(r,"addCustomPlayer",function(u){xi.push(u)}),ve(r,"removeCustomPlayers",function(){xi.length=0}),ve(r,"canPlay",function(u){for(var s=0,a=[].concat(xi,Uo(t));s<a.length;s++){var o=a[s];if(o.canPlay(u))return!0}return!1}),ve(r,"canEnablePIP",function(u){for(var s=0,a=[].concat(xi,Uo(t));s<a.length;s++){var o=a[s];if(o.canEnablePIP&&o.canEnablePIP(u))return!0}return!1}),i};Ia.createReactPlayer=zx;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(k3),n=Ia;function r(s){return s&&s.__esModule?s:{default:s}}var i=t.default[t.default.length-1],u=(0,n.createReactPlayer)(t.default,i);e.default=u})(D3);const jx=rh(D3),Q3=({videoUrl:e,placeholder:t})=>c("div",{className:"video-player",children:c(jx,{url:`${e}`,controls:!0,volume:1,light:`${t}`,playing:!0,height:"100%",width:"100%"})});function J3(e,t){return function(){return e.apply(t,arguments)}}const{toString:Z3}=Object.prototype,{getPrototypeOf:b0}=Object,x0=(e=>t=>{const n=Z3.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hn=e=>(e=e.toLowerCase(),t=>x0(t)===e),ja=e=>t=>typeof t===e,{isArray:Pu}=Array,ac=ja("undefined");function Vx(e){return e!==null&&!ac(e)&&e.constructor!==null&&!ac(e.constructor)&&ai(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const em=hn("ArrayBuffer");function Ux(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&em(e.buffer),t}const Wx=ja("string"),ai=ja("function"),tm=ja("number"),nm=e=>e!==null&&typeof e=="object",Hx=e=>e===!0||e===!1,Os=e=>{if(x0(e)!=="object")return!1;const t=b0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$x=hn("Date"),Kx=hn("File"),Yx=hn("Blob"),qx=hn("FileList"),Xx=e=>nm(e)&&ai(e.pipe),Gx=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Z3.call(e)===t||ai(e.toString)&&e.toString()===t)},Qx=hn("URLSearchParams"),Jx=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Va(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Pu(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const u=n?Object.getOwnPropertyNames(e):Object.keys(e),s=u.length;let a;for(r=0;r<s;r++)a=u[r],t.call(null,e[a],a,e)}}function oc(){const e={},t=(n,r)=>{Os(e[r])&&Os(n)?e[r]=oc(e[r],n):Os(n)?e[r]=oc({},n):Pu(n)?e[r]=n.slice():e[r]=n};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&Va(arguments[n],t);return e}const Zx=(e,t,n,{allOwnKeys:r}={})=>(Va(t,(i,u)=>{n&&ai(i)?e[u]=J3(i,n):e[u]=i},{allOwnKeys:r}),e),eE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tE=(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)},nE=(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&&b0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rE=(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},iE=e=>{if(!e)return null;if(Pu(e))return e;let t=e.length;if(!tm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},uE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&b0(Uint8Array)),sE=(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])}},aE=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},oE=hn("HTMLFormElement"),lE=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Rd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cE=hn("RegExp"),rm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Va(n,(i,u)=>{t(i,u,e)!==!1&&(r[u]=i)}),Object.defineProperties(e,r)},dE=e=>{rm(e,(t,n)=>{const r=e[n];if(!!ai(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")})}})},fE=(e,t)=>{const n={},r=i=>{i.forEach(u=>{n[u]=!0})};return Pu(e)?r(e):r(String(e).split(t)),n},hE=()=>{},pE=(e,t)=>(e=+e,Number.isFinite(e)?e:t),U={isArray:Pu,isArrayBuffer:em,isBuffer:Vx,isFormData:Gx,isArrayBufferView:Ux,isString:Wx,isNumber:tm,isBoolean:Hx,isObject:nm,isPlainObject:Os,isUndefined:ac,isDate:$x,isFile:Kx,isBlob:Yx,isRegExp:cE,isFunction:ai,isStream:Xx,isURLSearchParams:Qx,isTypedArray:uE,isFileList:qx,forEach:Va,merge:oc,extend:Zx,trim:Jx,stripBOM:eE,inherits:tE,toFlatObject:nE,kindOf:x0,kindOfTest:hn,endsWith:rE,toArray:iE,forEachEntry:sE,matchAll:aE,isHTMLForm:oE,hasOwnProperty:Rd,hasOwnProp:Rd,reduceDescriptors:rm,freezeMethods:dE,toObjectSet:fE,toCamelCase:lE,noop:hE,toFiniteNumber:pE};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)}U.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 im=re.prototype,um={};["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=>{um[e]={value:e}});Object.defineProperties(re,um);Object.defineProperty(im,"isAxiosError",{value:!0});re.from=(e,t,n,r,i,u)=>{const s=Object.create(im);return U.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 mE=typeof self=="object"?self.FormData:window.FormData;function lc(e){return U.isPlainObject(e)||U.isArray(e)}function sm(e){return U.endsWith(e,"[]")?e.slice(0,-2):e}function Td(e,t,n){return e?e.concat(t).map(function(i,u){return i=sm(i),!n&&u?"["+i+"]":i}).join(n?".":""):t}function gE(e){return U.isArray(e)&&!e.some(lc)}const yE=U.toFlatObject(U,{},null,function(t){return/^is[A-Z]/.test(t)});function vE(e){return e&&U.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Ua(e,t,n){if(!U.isObject(e))throw new TypeError("target must be an object");t=t||new(mE||FormData),n=U.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,O){return!U.isUndefined(O[k])});const r=n.metaTokens,i=n.visitor||d,u=n.dots,s=n.indexes,o=(n.Blob||typeof Blob<"u"&&Blob)&&vE(t);if(!U.isFunction(i))throw new TypeError("visitor must be a function");function l(b){if(b===null)return"";if(U.isDate(b))return b.toISOString();if(!o&&U.isBlob(b))throw new re("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(b)||U.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(U.endsWith(k,"{}"))k=r?k:k.slice(0,-2),b=JSON.stringify(b);else if(U.isArray(b)&&gE(b)||U.isFileList(b)||U.endsWith(k,"[]")&&(x=U.toArray(b)))return k=sm(k),x.forEach(function(w,T){!U.isUndefined(w)&&t.append(s===!0?Td([k],T,u):s===null?k:k+"[]",l(w))}),!1}return lc(b)?!0:(t.append(Td(O,k,u),l(b)),!1)}const p=[],g=Object.assign(yE,{defaultVisitor:d,convertValue:l,isVisitable:lc});function v(b,k){if(!U.isUndefined(b)){if(p.indexOf(b)!==-1)throw Error("Circular reference detected in "+k.join("."));p.push(b),U.forEach(b,function(x,_){(!U.isUndefined(x)&&i.call(t,x,U.isString(_)?_.trim():_,k,g))===!0&&v(x,k?k.concat(_):[_])}),p.pop()}}if(!U.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Md(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function E0(e,t){this._pairs=[],e&&Ua(e,this,t)}const am=E0.prototype;am.append=function(t,n){this._pairs.push([t,n])};am.toString=function(t){const n=t?function(r){return t.call(this,r,Md)}:Md;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function bE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function om(e,t,n){if(!t)return e;const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r));const i=n&&n.encode||bE,u=U.isURLSearchParams(t)?t.toString():new E0(t,n).toString(i);return u&&(e+=(e.indexOf("?")===-1?"?":"&")+u),e}class Ld{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){U.forEach(this.handlers,function(r){r!==null&&t(r)})}}const lm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xE=typeof URLSearchParams<"u"?URLSearchParams:E0,EE=FormData,_E=(()=>{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:xE,FormData:EE,Blob},isStandardBrowserEnv:_E,protocols:["http","https","file","blob","url","data"]};function wE(e,t){return Ua(e,new sn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,u){return sn.isNode&&U.isBuffer(n)?(this.append(r,n.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},t))}function DE(e){return U.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function kE(e){const t={},n=Object.keys(e);let r;const i=n.length;let u;for(r=0;r<i;r++)u=n[r],t[u]=e[u];return t}function cm(e){function t(n,r,i,u){let s=n[u++];const a=Number.isFinite(+s),o=u>=n.length;return s=!s&&U.isArray(i)?i.length:s,o?(U.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!U.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],u)&&U.isArray(i[s])&&(i[s]=kE(i[s])),!a)}if(U.isFormData(e)&&U.isFunction(e.entries)){const n={};return U.forEachEntry(e,(r,i)=>{t(DE(r),i,n,0)}),n}return null}function SE(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 PE=sn.isStandardBrowserEnv?function(){return{write:function(n,r,i,u,s,a){const o=[];o.push(n+"="+encodeURIComponent(r)),U.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),U.isString(u)&&o.push("path="+u),U.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 CE(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OE(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function dm(e,t){return e&&!CE(t)?OE(e,t):t}const FE=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=U.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Cu(e,t,n){re.call(this,e==null?"canceled":e,re.ERR_CANCELED,t,n),this.name="CanceledError"}U.inherits(Cu,re,{__CANCEL__:!0});function NE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const AE=U.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"]),RE=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]&&AE[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Bd=Symbol("internals"),fm=Symbol("defaults");function Ti(e){return e&&String(e).trim().toLowerCase()}function ts(e){return e===!1||e==null?e:String(e)}function TE(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 Id(e,t,n,r){if(U.isFunction(r))return r.call(this,t,n);if(!!U.isString(t)){if(U.isString(r))return t.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(t)}}function ME(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function LE(e,t){const n=U.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 Ei(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[fm]=t||null}Object.assign(Dt.prototype,{set:function(e,t,n){const r=this;function i(u,s,a){const o=Ti(s);if(!o)throw new Error("header name must be a non-empty string");const l=Ei(r,o);l&&a!==!0&&(r[l]===!1||a===!1)||(U.isArray(u)?u=u.map(ts):u=ts(u),r[l||s]=u)}return U.isPlainObject(e)?U.forEach(e,(u,s)=>{i(u,s,t)}):i(t,e,n),this},get:function(e,t){if(e=Ti(e),!e)return;const n=Ei(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return TE(r);if(U.isFunction(t))return t.call(this,r,n);if(U.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=Ti(e),e){const n=Ei(this,e);return!!(n&&(!t||Id(this,this[n],n,t)))}return!1},delete:function(e,t){const n=this;let r=!1;function i(u){if(u=Ti(u),u){const s=Ei(n,u);s&&(!t||Id(n,n[s],s,t))&&(delete n[s],r=!0)}}return U.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 U.forEach(this,(r,i)=>{const u=Ei(n,i);if(u){t[u]=ts(r),delete t[i];return}const s=e?ME(i):String(i).trim();s!==i&&delete t[i],t[s]=ts(r),n[s]=!0}),this},toJSON:function(){const e=Object.create(null);return U.forEach(Object.assign({},this[fm]||null,this),(t,n)=>{t==null||t===!1||(e[n]=U.isArray(t)?t.join(", "):t)}),e}});Object.assign(Dt,{from:function(e){return U.isString(e)?new this(RE(e)):e instanceof this?e:new this(e)},accessor:function(e){const n=(this[Bd]=this[Bd]={accessors:{}}).accessors,r=this.prototype;function i(u){const s=Ti(u);n[s]||(LE(r,u),n[s]=!0)}return U.isArray(e)?e.forEach(i):i(e),this}});Dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);U.freezeMethods(Dt.prototype);U.freezeMethods(Dt);function BE(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<t)return;const v=d&&l-d;return v?Math.round(g*1e3/v):void 0}}function zd(e,t){let n=0;const r=BE(50,250);return i=>{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 jd(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)}U.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=dm(e.baseURL,e.url);l.open(e.method.toUpperCase(),om(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};SE(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||lm;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||FE(d))&&e.xsrfCookieName&&PE.read(e.xsrfCookieName);v&&u.set(e.xsrfHeaderName,v)}i===void 0&&u.setContentType(null),"setRequestHeader"in l&&U.forEach(u.toJSON(),function(b,k){l.setRequestHeader(k,b)}),U.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),s&&s!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",zd(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",zd(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=v=>{!l||(r(!v||v.type?new Cu(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=NE(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 Vd={http:jd,xhr:jd},Ud={getAdapter:e=>{if(U.isString(e)){const t=Vd[e];if(!e)throw Error(U.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!U.isFunction(e))throw new TypeError("adapter is not a function");return e},adapters:Vd},IE={"Content-Type":"application/x-www-form-urlencoded"};function zE(){let e;return typeof XMLHttpRequest<"u"?e=Ud.getAdapter("xhr"):typeof process<"u"&&U.kindOf(process)==="process"&&(e=Ud.getAdapter("http")),e}function jE(e,t,n){if(U.isString(e))try{return(t||JSON.parse)(e),U.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const oi={transitional:lm,adapter:zE(),transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,u=U.isObject(t);if(u&&U.isHTMLForm(t)&&(t=new FormData(t)),U.isFormData(t))return i&&i?JSON.stringify(cm(t)):t;if(U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.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 wE(t,this.formSerializer).toString();if((a=U.isFileList(t))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return Ua(a?{"files[]":t}:t,o&&new o,this.formSerializer)}}return u||i?(n.setContentType("application/json",!1),jE(t)):t}],transformResponse:[function(t){const n=this.transitional||oi.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&U.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, */*"}}};U.forEach(["delete","get","head"],function(t){oi.headers[t]={}});U.forEach(["post","put","patch"],function(t){oi.headers[t]=U.merge(IE)});function Wo(e,t){const n=this||oi,r=t||n,i=Dt.from(r.headers);let u=r.data;return U.forEach(e,function(a){u=a.call(n,u,i.normalize(),t?t.status:void 0)}),i.normalize(),u}function hm(e){return!!(e&&e.__CANCEL__)}function Ho(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cu}function Wd(e){return Ho(e),e.headers=Dt.from(e.headers),e.data=Wo.call(e,e.transformRequest),(e.adapter||oi.adapter)(e).then(function(r){return Ho(e),r.data=Wo.call(e,e.transformResponse,r),r.headers=Dt.from(r.headers),r},function(r){return hm(r)||(Ho(e),r&&r.response&&(r.response.data=Wo.call(e,e.transformResponse,r.response),r.response.headers=Dt.from(r.response.headers))),Promise.reject(r)})}function gu(e,t){t=t||{};const n={};function r(l,d){return U.isPlainObject(l)&&U.isPlainObject(d)?U.merge(l,d):U.isPlainObject(d)?U.merge({},d):U.isArray(d)?d.slice():d}function i(l){if(U.isUndefined(t[l])){if(!U.isUndefined(e[l]))return r(void 0,e[l])}else return r(e[l],t[l])}function u(l){if(!U.isUndefined(t[l]))return r(void 0,t[l])}function s(l){if(U.isUndefined(t[l])){if(!U.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 U.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const p=o[d]||i,g=p(d);U.isUndefined(g)&&p!==a||(n[d]=g)}),n}const pm="1.1.2",_0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Hd={};_0.transitional=function(t,n,r){function i(u,s){return"[Axios v"+pm+"] 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&&!Hd[s]&&(Hd[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 VE(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 mm={assertOptions:VE,validators:_0},Er=mm.validators;class ir{constructor(t){this.defaults=t,this.interceptors={request:new Ld,response:new Ld}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=gu(this.defaults,n);const r=n.transitional;r!==void 0&&mm.assertOptions(r,{silentJSONParsing:Er.transitional(Er.boolean),forcedJSONParsing:Er.transitional(Er.boolean),clarifyTimeoutError:Er.transitional(Er.boolean)},!1),n.method=(n.method||this.defaults.method||"get").toLowerCase();const i=n.headers&&U.merge(n.headers.common,n.headers[n.method]);i&&U.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=[Wd.bind(this),void 0];for(g.unshift.apply(g,u),g.push.apply(g,a),d=g.length,o=Promise.resolve(n);l<d;)o=o.then(g[l++],g[l++]);return o}d=u.length;let p=n;for(l=0;l<d;){const g=u[l++],v=u[l++];try{p=g(p)}catch(b){v.call(this,b);break}}try{o=Wd.call(this,p)}catch(g){return Promise.reject(g)}for(l=0,d=a.length;l<d;)o=o.then(a[l++],a[l++]);return o}getUri(t){t=gu(this.defaults,t);const n=dm(t.baseURL,t.url);return om(n,t.params,t.paramsSerializer)}}U.forEach(["delete","get","head","options"],function(t){ir.prototype[t]=function(n,r){return this.request(gu(r||{},{method:t,url:n,data:(r||{}).data}))}});U.forEach(["post","put","patch"],function(t){function n(r){return function(u,s,a){return this.request(gu(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:u,data:s}))}}ir.prototype[t]=n(),ir.prototype[t+"Form"]=n(!0)});class w0{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(u){n=u});const r=this;this.promise.then(i=>{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 Cu(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 w0(function(i){t=i}),cancel:t}}}function UE(e){return function(n){return e.apply(null,n)}}function WE(e){return U.isObject(e)&&e.isAxiosError===!0}function gm(e){const t=new ir(e),n=J3(ir.prototype.request,t);return U.extend(n,ir.prototype,t,{allOwnKeys:!0}),U.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return gm(gu(e,i))},n}const Qe=gm(oi);Qe.Axios=ir;Qe.CanceledError=Cu;Qe.CancelToken=w0;Qe.isCancel=hm;Qe.VERSION=pm;Qe.toFormData=Ua;Qe.AxiosError=re;Qe.Cancel=Qe.CanceledError;Qe.all=function(t){return Promise.all(t)};Qe.spread=UE;Qe.isAxiosError=WE;Qe.formToJSON=e=>cm(U.isHTMLForm(e)?new FormData(e):e);class Oe{constructor(t,n,r,i,u){yr(this,"destination");yr(this,"initialState");yr(this,"setState");yr(this,"setLoader");yr(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 Qe.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 Qe.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)}}}var ns,HE=new Uint8Array(16);function $E(){if(!ns&&(ns=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ns))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ns(HE)}const KE=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function YE(e){return typeof e=="string"&&KE.test(e)}var Te=[];for(var $o=0;$o<256;++$o)Te.push(($o+256).toString(16).substr(1));function qE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Te[e[t+0]]+Te[e[t+1]]+Te[e[t+2]]+Te[e[t+3]]+"-"+Te[e[t+4]]+Te[e[t+5]]+"-"+Te[e[t+6]]+Te[e[t+7]]+"-"+Te[e[t+8]]+Te[e[t+9]]+"-"+Te[e[t+10]]+Te[e[t+11]]+Te[e[t+12]]+Te[e[t+13]]+Te[e[t+14]]+Te[e[t+15]]).toLowerCase();if(!YE(n))throw TypeError("Stringified UUID is invalid");return n}function Jr(e,t,n){e=e||{};var r=e.random||(e.rng||$E)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return qE(r)}const ym="/assets/arrow-up.403bca16.svg",vm="/assets/arrow-down.6e85faaa.svg",XE=({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?ym:o<0?vm:""})}),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]})]})},GE=({activeRow:e,setActiveRow:t,tabIndex:n,lang:r})=>{const[i,u]=j.exports.useState(),s=a=>{t(a)};return j.exports.useEffect(()=>{n&&new Oe(`https://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)=>o<=2?c(XE,{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":""},Jr()):null):null})]})};/*!
* Chart.js v3.9.1
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/function Xt(){}const QE=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 Be=e=>(typeof e=="number"||e instanceof Number)&&isFinite(+e);function vt(e,t){return Be(e)?e:t}function ee(e,t){return typeof e>"u"?t:e}const JE=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:e/t,bm=(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;i<u;i++)t.call(n,e[i],i);else if(ne(e))for(s=Object.keys(e),u=s.length,i=0;i<u;i++)t.call(n,e[s[i]],s[i])}function ia(e,t){let n,r,i,u;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],u=t[n],i.datasetIndex!==u.datasetIndex||i.index!==u.index)return!1;return!0}function ua(e){if(pe(e))return e.map(ua);if(ne(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=ua(e[n[i]]);return t}return e}function xm(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function ZE(e,t,n,r){if(!xm(e))return;const i=t[e],u=n[e];ne(i)&&ne(u)?yu(i,u,r):t[e]=ua(u)}function yu(e,t,n){const r=pe(t)?t:[t],i=r.length;if(!ne(e))return e;n=n||{};const u=n.merger||ZE;for(let s=0;s<i;++s){if(t=r[s],!ne(t))continue;const a=Object.keys(t);for(let o=0,l=a.length;o<l;++o)u(a[o],e,t,n)}return e}function Yi(e,t){return yu(e,t,{merger:e_})}function e_(e,t,n){if(!xm(e))return;const r=t[e],i=n[e];ne(r)&&ne(i)?Yi(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=ua(i))}const $d={"":e=>e,x:e=>e.x,y:e=>e.y};function In(e,t){return($d[t]||($d[t]=t_(t)))(e)}function t_(e){const t=n_(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function n_(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 D0(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Pt=e=>typeof e<"u",zn=e=>typeof e=="function",Kd=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function r_(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const _e=Math.PI,oe=2*_e,i_=oe+_e,sa=Number.POSITIVE_INFINITY,u_=_e/180,Ee=_e/2,_i=_e/4,Yd=_e*2/3,Et=Math.log10,qt=Math.sign;function qd(e){const t=Math.round(e);e=qi(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 s_(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,u)=>i-u).pop(),t}function Zr(e){return!isNaN(parseFloat(e))&&isFinite(e)}function qi(e,t,n){return Math.abs(e-t)<n}function a_(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Em(e,t,n){let r,i,u;for(r=0,i=e.length;r<i;r++)u=e[r][n],isNaN(u)||(t.min=Math.min(t.min,u),t.max=Math.max(t.max,u))}function Tt(e){return e*(_e/180)}function k0(e){return e*(180/_e)}function Xd(e){if(!Be(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function _m(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let u=Math.atan2(r,n);return u<-.5*_e&&(u+=oe),{angle:u,distance:i}}function cc(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function o_(e,t){return(e-t+i_)%oe-_e}function At(e){return(e%oe+oe)%oe}function vu(e,t,n,r){const i=At(e),u=At(t),s=At(n),a=At(u-i),o=At(s-i),l=At(i-u),d=At(i-s);return i===u||i===s||r&&u===s||a>o&&l<d}function He(e,t,n){return Math.max(t,Math.min(n,e))}function l_(e){return He(e,-32768,32767)}function aa(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function S0(e,t,n){n=n||(s=>e[s]<t);let r=e.length-1,i=0,u;for(;r-i>1;)u=i+r>>1,n(u)?i=u:r=u;return{lo:i,hi:r}}const tr=(e,t,n,r)=>S0(e,n,r?i=>e[i][t]<=n:i=>e[i][t]<n),c_=(e,t,n)=>S0(e,n,r=>e[r][t]>=n);function d_(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const wm=["push","pop","shift","splice","unshift"];function f_(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),wm.forEach(n=>{const r="_onData"+D0(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 Gd(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)&&(wm.forEach(u=>{delete e[u]}),delete e._chartjs)}function Dm(e){const t=new Set;let n,r;for(n=0,r=e.length;n<r;++n)t.add(e[n]);return t.size===r?e:Array.from(t)}const km=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function Sm(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,km.call(window,()=>{i=!1,e.apply(t,u)}))}}function h_(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const p_=e=>e==="start"?"left":e==="end"?"right":"center",Qd=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2;function Pm(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=He(Math.min(tr(a,s.axis,l).lo,n?r:tr(t,o,s.getPixelForValue(l)).lo),0,r-1)),g?u=He(Math.max(tr(a,s.axis,d,!0).hi+1,n?0:tr(t,o,s.getPixelForValue(d),!0).hi+1),i,r)-i:u=r-i}return{start:i,count:u}}function Cm(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 rs=e=>e===0||e===1,Jd=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*oe/n)),Zd=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*oe/n)+1,Xi={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=>rs(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=>rs(e)?e:Jd(e,.075,.3),easeOutElastic:e=>rs(e)?e:Zd(e,.075,.3),easeInOutElastic(e){return rs(e)?e:e<.5?.5*Jd(e*2,.1125,.45):.5+.5*Zd(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-Xi.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?Xi.easeInBounce(e*2)*.5:Xi.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 Ou(e){return e+.5|0}const Dn=(e,t,n)=>Math.max(Math.min(e,n),t);function Mi(e){return Dn(Ou(e*2.55),0,255)}function Mn(e){return Dn(Ou(e*255),0,255)}function tn(e){return Dn(Ou(e/2.55)/100,0,1)}function ef(e){return Dn(Ou(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},dc=[..."0123456789ABCDEF"],m_=e=>dc[e&15],g_=e=>dc[(e&240)>>4]+dc[e&15],is=e=>(e&240)>>4===(e&15),y_=e=>is(e.r)&&is(e.g)&&is(e.b)&&is(e.a);function v_(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&gt[e[1]]*17,g:255&gt[e[2]]*17,b:255&gt[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 b_=(e,t)=>e<255?t(e):"";function x_(e){var t=y_(e)?m_:g_;return e?"#"+t(e.r)+t(e.g)+t(e.b)+b_(e.a,t):void 0}const E_=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Om(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 __(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 w_(e,t,n){const r=Om(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 D_(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function P0(e){const n=e.r/255,r=e.g/255,i=e.b/255,u=Math.max(n,r,i),s=Math.min(n,r,i),a=(u+s)/2;let o,l,d;return u!==s&&(d=u-s,l=a>.5?d/(2-u-s):d/(u+s),o=D_(n,r,i,d,u),o=o*60+.5),[o|0,l||0,a]}function C0(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Mn)}function O0(e,t,n){return C0(Om,e,t,n)}function k_(e,t,n){return C0(w_,e,t,n)}function S_(e,t,n){return C0(__,e,t,n)}function Fm(e){return(e%360+360)%360}function P_(e){const t=E_.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Mi(+t[5]):Mn(+t[5]));const i=Fm(+t[2]),u=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=k_(i,u,s):t[1]==="hsv"?r=S_(i,u,s):r=O0(i,u,s),{r:r[0],g:r[1],b:r[2],a:n}}function C_(e,t){var n=P0(e);n[0]=Fm(n[0]+t),n=O0(n),e.r=n[0],e.g=n[1],e.b=n[2]}function O_(e){if(!e)return;const t=P0(e),n=t[0],r=ef(t[1]),i=ef(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${tn(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const tf={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"},nf={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 F_(){const e={},t=Object.keys(nf),n=Object.keys(tf);let r,i,u,s,a;for(r=0;r<t.length;r++){for(s=a=t[r],i=0;i<n.length;i++)u=n[i],a=a.replace(u,tf[u]);u=parseInt(nf[s],16),e[a]=[u>>16&255,u>>8&255,u&255]}return e}let us;function N_(e){us||(us=F_(),us.transparent=[0,0,0,0]);const t=us[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const A_=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function R_(e){const t=A_.exec(e);let n=255,r,i,u;if(!!t){if(t[7]!==r){const s=+t[7];n=t[8]?Mi(s):Dn(s*255,0,255)}return r=+t[1],i=+t[3],u=+t[5],r=255&(t[2]?Mi(r):Dn(r,0,255)),i=255&(t[4]?Mi(i):Dn(i,0,255)),u=255&(t[6]?Mi(u):Dn(u,0,255)),{r,g:i,b:u,a:n}}}function T_(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${tn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Ko=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,_r=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function M_(e,t,n){const r=_r(tn(e.r)),i=_r(tn(e.g)),u=_r(tn(e.b));return{r:Mn(Ko(r+n*(_r(tn(t.r))-r))),g:Mn(Ko(i+n*(_r(tn(t.g))-i))),b:Mn(Ko(u+n*(_r(tn(t.b))-u))),a:e.a+n*(t.a-e.a)}}function ss(e,t,n){if(e){let r=P0(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=O0(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Nm(e,t){return e&&Object.assign(t||{},e)}function rf(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=Nm(e,{r:0,g:0,b:0,a:1}),t.a=Mn(t.a)),t}function L_(e){return e.charAt(0)==="r"?R_(e):P_(e)}class oa{constructor(t){if(t instanceof oa)return t;const n=typeof t;let r;n==="object"?r=rf(t):n==="string"&&(r=v_(t)||N_(t)||L_(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=Nm(this._rgb);return t&&(t.a=tn(t.a)),t}set rgb(t){this._rgb=rf(t)}rgbString(){return this._valid?T_(this._rgb):void 0}hexString(){return this._valid?x_(this._rgb):void 0}hslString(){return this._valid?O_(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=M_(this._rgb,t._rgb,n)),this}clone(){return new oa(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=Ou(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 ss(this._rgb,2,t),this}darken(t){return ss(this._rgb,2,-t),this}saturate(t){return ss(this._rgb,1,t),this}desaturate(t){return ss(this._rgb,1,-t),this}rotate(t){return C_(this._rgb,t),this}}function Am(e){return new oa(e)}function Rm(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function uf(e){return Rm(e)?e:Am(e)}function Yo(e){return Rm(e)?e:Am(e).saturate(.5).darken(.1).hexString()}const fr=Object.create(null),fc=Object.create(null);function Gi(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const u=n[r];e=e[u]||(e[u]=Object.create(null))}return e}function qo(e,t,n){return typeof t=="string"?yu(Gi(e,t),n):yu(Gi(e,""),t)}class B_{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.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)=>Yo(r.backgroundColor),this.hoverBorderColor=(n,r)=>Yo(r.borderColor),this.hoverColor=(n,r)=>Yo(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 qo(this,t,n)}get(t){return Gi(this,t)}describe(t,n){return qo(fc,t,n)}override(t,n){return qo(fr,t,n)}route(t,n,r,i){const u=Gi(this,t),s=Gi(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 B_({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function I_(e){return!e||ie(e.size)||ie(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function la(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 z_(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;o<a;o++)if(p=n[o],p!=null&&pe(p)!==!0)s=la(e,i,u,s,p);else if(pe(p))for(l=0,d=p.length;l<d;l++)g=p[l],g!=null&&!pe(g)&&(s=la(e,i,u,s,g));e.restore();const v=u.length/2;if(v>n.length){for(o=0;o<v;o++)delete i[u[o]];u.splice(0,v)}return s}function Hn(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function sf(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function hc(e,t,n,r){j_(e,t,n,r,null)}function j_(e,t,n,r,i){let u,s,a,o,l,d;const p=t.pointStyle,g=t.rotation,v=t.radius;let b=(g||0)*u_;if(p&&typeof p=="object"&&(u=p.toString(),u==="[object HTMLImageElement]"||u==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),e.restore();return}if(!(isNaN(v)||v<=0)){switch(e.beginPath(),p){default:i?e.ellipse(n,r,i/2,v,0,0,oe):e.arc(n,r,v,0,oe),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(b)*v,r-Math.cos(b)*v),b+=Yd,e.lineTo(n+Math.sin(b)*v,r-Math.cos(b)*v),b+=Yd,e.lineTo(n+Math.sin(b)*v,r-Math.cos(b)*v),e.closePath();break;case"rectRounded":l=v*.516,o=v-l,s=Math.cos(b+_i)*o,a=Math.sin(b+_i)*o,e.arc(n-s,r-a,l,b-_e,b-Ee),e.arc(n+a,r-s,l,b-Ee,b),e.arc(n+s,r+a,l,b,b+Ee),e.arc(n-a,r+s,l,b+Ee,b+_e),e.closePath();break;case"rect":if(!g){o=Math.SQRT1_2*v,d=i?i/2:o,e.rect(n-d,r-o,2*d,2*o);break}b+=_i;case"rectRot":s=Math.cos(b)*v,a=Math.sin(b)*v,e.moveTo(n-s,r-a),e.lineTo(n+a,r-s),e.lineTo(n+s,r+a),e.lineTo(n-a,r+s),e.closePath();break;case"crossRot":b+=_i;case"cross":s=Math.cos(b)*v,a=Math.sin(b)*v,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a),e.moveTo(n+a,r-s),e.lineTo(n-a,r+s);break;case"star":s=Math.cos(b)*v,a=Math.sin(b)*v,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a),e.moveTo(n+a,r-s),e.lineTo(n-a,r+s),b+=_i,s=Math.cos(b)*v,a=Math.sin(b)*v,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a),e.moveTo(n+a,r-s),e.lineTo(n-a,r+s);break;case"line":s=i?i/2:Math.cos(b)*v,a=Math.sin(b)*v,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*v,r+Math.sin(b)*v);break}e.fill(),t.borderWidth>0&&e.stroke()}}function bu(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Tm(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Mm(e){e.restore()}function V_(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const u=(t.x+n.x)/2;e.lineTo(u,t.y),e.lineTo(u,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function U_(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function ca(e,t,n,r,i,u={}){const s=pe(t)?t:[t],a=u.strokeWidth>0&&u.strokeColor!=="";let o,l;for(e.save(),e.font=i.string,W_(e,u),o=0;o<s.length;++o)l=s[o],a&&(u.strokeColor&&(e.strokeStyle=u.strokeColor),ie(u.strokeWidth)||(e.lineWidth=u.strokeWidth),e.strokeText(l,n,r,u.maxWidth)),e.fillText(l,n,r,u.maxWidth),H_(e,n,r,l,u),r+=i.lineHeight;e.restore()}function W_(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),ie(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function H_(e,t,n,r,i){if(i.strikethrough||i.underline){const u=e.measureText(r),s=t-u.actualBoundingBoxLeft,a=t+u.actualBoundingBoxRight,o=n-u.actualBoundingBoxAscent,l=n+u.actualBoundingBoxDescent,d=i.strikethrough?(o+l)/2:l;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(s,d),e.lineTo(a,d),e.stroke()}}function da(e,t){const{x:n,y:r,w:i,h:u,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,-Ee,_e,!0),e.lineTo(n,r+u-s.bottomLeft),e.arc(n+s.bottomLeft,r+u-s.bottomLeft,s.bottomLeft,_e,Ee,!0),e.lineTo(n+i-s.bottomRight,r+u),e.arc(n+i-s.bottomRight,r+u-s.bottomRight,s.bottomRight,Ee,0,!0),e.lineTo(n+i,r+s.topRight),e.arc(n+i-s.topRight,r+s.topRight,s.topRight,0,-Ee,!0),e.lineTo(n+s.topLeft,r)}const $_=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),K_=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function Y_(e,t){const n=(""+e).match($_);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const q_=e=>+e||0;function F0(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]=q_(u(s));return n}function Lm(e){return F0(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Wr(e){return F0(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Ct(e){const t=Lm(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(K_)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const i={family:ee(e.family,t.family),lineHeight:Y_(ee(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:ee(e.weight,t.weight),string:""};return i.string=I_(i),i}function as(e,t,n,r){let i=!0,u,s,a;for(u=0,s=e.length;u<s;++u)if(a=e[u],a!==void 0&&(t!==void 0&&typeof a=="function"&&(a=a(t),i=!1),n!==void 0&&pe(a)&&(a=a[n%a.length],i=!1),a!==void 0))return r&&!i&&(r.cacheable=!1),a}function X_(e,t,n){const{min:r,max:i}=e,u=bm(t,(i-r)/2),s=(a,o)=>n&&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 N0(e,t=[""],n=e,r,i=()=>e[0]){Pt(r)||(r=jm("_fallback",e));const u={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:i,override:s=>N0([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 Im(s,a,()=>rw(a,t,e,s))},getOwnPropertyDescriptor(s,a){return Reflect.getOwnPropertyDescriptor(s._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,a){return of(s).includes(a)},ownKeys(s){return of(s)},set(s,a,o){const l=s._storage||(s._storage=i());return s[a]=l[a]=o,delete s._keys,!0}})}function ei(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Bm(e,r),setContext:u=>ei(e,u,n,r),override:u=>ei(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 Im(u,s,()=>Q_(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 Bm(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 G_=(e,t)=>e?e+D0(t):t,A0=(e,t)=>ne(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Im(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function Q_(e,t,n){const{_proxy:r,_context:i,_subProxy:u,_descriptors:s}=e;let a=r[t];return zn(a)&&s.isScriptable(t)&&(a=J_(t,a,e,n)),pe(a)&&a.length&&(a=Z_(t,a,e,s.isIndexable)),A0(t,a)&&(a=ei(a,i,u&&u[t],s)),a}function J_(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),A0(e,t)&&(t=R0(i._scopes,i,e,t)),t}function Z_(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=R0(l,i,e,d);t.push(ei(p,u,s&&s[e],a))}}return t}function zm(e,t,n){return zn(e)?e(t,n):e}const ew=(e,t)=>e===!0?t:typeof e=="string"?In(t,e):void 0;function tw(e,t,n,r,i){for(const u of t){const s=ew(n,u);if(s){e.add(s);const a=zm(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 R0(e,t,n,r){const i=t._rootScopes,u=zm(t._fallback,n,r),s=[...e,...i],a=new Set;a.add(r);let o=af(a,s,n,u||n,r);return o===null||Pt(u)&&u!==n&&(o=af(a,s,u,o,r),o===null)?!1:N0(Array.from(a),[""],i,u,()=>nw(t,n,r))}function af(e,t,n,r,i){for(;n;)n=tw(e,t,n,r,i);return n}function nw(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return pe(i)&&ne(n)?n:i}function rw(e,t,n,r){let i;for(const u of t)if(i=jm(G_(u,e),n),Pt(i))return A0(e,i)?R0(n,r,e,i):i}function jm(e,t){for(const n of t){if(!n)continue;const r=n[e];if(Pt(r))return r}}function of(e){let t=e._keys;return t||(t=e._keys=iw(e._scopes)),t}function iw(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 Vm(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;a<o;++a)l=a+n,d=t[l],s[a]={r:i.parse(In(d,u),l)};return s}const uw=Number.EPSILON||1e-14,ti=(e,t)=>t<e.length&&!e[t].skip&&e[t],Um=e=>e==="x"?"y":"x";function sw(e,t,n,r){const i=e.skip?t:e,u=t,s=n.skip?t:n,a=cc(u,i),o=cc(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 aw(e,t,n){const r=e.length;let i,u,s,a,o,l=ti(e,0);for(let d=0;d<r-1;++d)if(o=l,l=ti(e,d+1),!(!o||!l)){if(qi(t[d],0,uw)){n[d]=n[d+1]=0;continue}i=n[d]/t[d],u=n[d+1]/t[d],a=Math.pow(i,2)+Math.pow(u,2),!(a<=9)&&(s=3/Math.sqrt(a),n[d]=i*s*t[d],n[d+1]=u*s*t[d])}}function ow(e,t,n="x"){const r=Um(n),i=e.length;let u,s,a,o=ti(e,0);for(let l=0;l<i;++l){if(s=a,a=o,o=ti(e,l+1),!a)continue;const d=a[n],p=a[r];s&&(u=(d-s[n])/3,a[`cp1${n}`]=d-u,a[`cp1${r}`]=p-u*t[l]),o&&(u=(o[n]-d)/3,a[`cp2${n}`]=d+u,a[`cp2${r}`]=p+u*t[l])}}function lw(e,t="x"){const n=Um(t),r=e.length,i=Array(r).fill(0),u=Array(r);let s,a,o,l=ti(e,0);for(s=0;s<r;++s)if(a=o,o=l,l=ti(e,s+1),!!o){if(l){const d=l[t]-o[t];i[s]=d!==0?(l[n]-o[n])/d:0}u[s]=a?l?qt(i[s-1])!==qt(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]}aw(e,i,u),ow(e,u,t)}function os(e,t,n){return Math.max(Math.min(e,n),t)}function cw(e,t){let n,r,i,u,s,a=bu(e[0],t);for(n=0,r=e.length;n<r;++n)s=u,u=a,a=n<r-1&&bu(e[n+1],t),u&&(i=e[n],s&&(i.cp1x=os(i.cp1x,t.left,t.right),i.cp1y=os(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=os(i.cp2x,t.left,t.right),i.cp2y=os(i.cp2y,t.top,t.bottom)))}function dw(e,t,n,r,i){let u,s,a,o;if(t.spanGaps&&(e=e.filter(l=>!l.skip)),t.cubicInterpolationMode==="monotone")lw(e,i);else{let l=r?e[e.length-1]:e[0];for(u=0,s=e.length;u<s;++u)a=e[u],o=sw(l,a,e[Math.min(u+1,s-(r?0:1))%s],t.tension),a.cp1x=o.previous.x,a.cp1y=o.previous.y,a.cp2x=o.next.x,a.cp2y=o.next.y,l=a}t.capBezierPoints&&cw(e,n)}function Wm(){return typeof window<"u"&&typeof document<"u"}function T0(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function fa(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Wa=e=>window.getComputedStyle(e,null);function fw(e,t){return Wa(e).getPropertyValue(t)}const hw=["top","right","bottom","left"];function ur(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const u=hw[i];r[u]=parseFloat(e[t+"-"+u+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const pw=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function mw(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:u}=r;let s=!1,a,o;if(pw(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 Xn(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Wa(n),u=i.boxSizing==="border-box",s=ur(i,"padding"),a=ur(i,"border","width"),{x:o,y:l,box:d}=mw(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 gw(e,t,n){let r,i;if(t===void 0||n===void 0){const u=T0(e);if(!u)t=e.clientWidth,n=e.clientHeight;else{const s=u.getBoundingClientRect(),a=Wa(u),o=ur(a,"border","width"),l=ur(a,"padding");t=s.width-l.width-o.width,n=s.height-l.height-o.height,r=fa(a.maxWidth,u,"clientWidth"),i=fa(a.maxHeight,u,"clientHeight")}}return{width:t,height:n,maxWidth:r||sa,maxHeight:i||sa}}const Xo=e=>Math.round(e*10)/10;function yw(e,t,n,r){const i=Wa(e),u=ur(i,"margin"),s=fa(i.maxWidth,e,"clientWidth")||sa,a=fa(i.maxHeight,e,"clientHeight")||sa,o=gw(e,t,n);let{width:l,height:d}=o;if(i.boxSizing==="content-box"){const p=ur(i,"border","width"),g=ur(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=Xo(Math.min(l,s,o.maxWidth)),d=Xo(Math.min(d,a,o.maxHeight)),l&&!d&&(d=Xo(l/2)),{width:l,height:d}}function lf(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 vw=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 cf(e,t){const n=fw(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Gn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function bw(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 xw(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},u={x:t.cp1x,y:t.cp1y},s=Gn(e,i,n),a=Gn(i,u,n),o=Gn(u,t,n),l=Gn(s,a,n),d=Gn(a,o,n);return Gn(l,d,n)}const df=new Map;function Ew(e,t){t=t||{};const n=e+JSON.stringify(t);let r=df.get(n);return r||(r=new Intl.NumberFormat(e,t),df.set(n,r)),r}function Fu(e,t,n){return Ew(t,n).format(e)}const _w=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}}},ww=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Go(e,t,n){return e?_w(t,n):ww()}function Dw(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 kw(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Hm(e){return e==="angle"?{between:vu,compare:o_,normalize:At}:{between:aa,compare:(t,n)=>t-n,normalize:t=>t}}function ff({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 Sw(e,t,n){const{property:r,start:i,end:u}=n,{between:s,normalize:a}=Hm(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;g<v&&s(a(t[l%o][r]),i,u);++g)l--,d--;l%=o,d%=o}return d<l&&(d+=o),{start:l,end:d,loop:p,style:e.style}}function Pw(e,t,n){if(!n)return[e];const{property:r,start:i,end:u}=n,s=t.length,{compare:a,between:o,normalize:l}=Hm(r),{start:d,end:p,loop:g,style:v}=Sw(e,t,n),b=[];let k=!1,O=null,x,_,w;const T=()=>o(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(ff({start:O,end:f,loop:g,count:s,style:v})),O=null),m=f,w=x));return O!==null&&b.push(ff({start:O,end:p,loop:g,count:s,style:v})),b}function Cw(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const u=Pw(r[i],e.points,t);u.length&&n.push(...u)}return n}function Ow(e,t,n,r){let i=0,u=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(u+=i);u>i&&e[u%t].skip;)u--;return u%=t,{start:i,end:u}}function Fw(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 Nw(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const u=!!e._loop,{start:s,end:a}=Ow(n,i,u,r);if(r===!0)return hf(e,[{start:s,end:a,loop:u}],n,t);const o=a<s?a+i:a,l=!!e._fullLoop&&s===0&&a===i-1;return hf(e,Fw(n,s,o,l),n,t)}function hf(e,t,n,r){return!r||!r.setContext||!n?t:Aw(e,t,n,r)}function Aw(e,t,n,r){const i=e._chart.getContext(),u=pf(e.options),{_datasetIndex:s,options:{spanGaps:a}}=e,o=n.length,l=[];let d=u,p=t[0].start,g=p;function v(b,k,O,x){const _=a?-1:1;if(b!==k){for(b+=o;n[b%o].skip;)b-=_;for(;n[k%o].skip;)k+=_;b%o!==k%o&&(l.push({start:b%o,end:k%o,loop:O,style:x}),d=x,p=k%o)}}for(const b of t){p=a?p:b.start;let k=n[p%o],O;for(g=p+1;g<=b.end;g++){const x=n[g%o];O=pf(r.setContext(Wn(i,{type:"segment",p0:k,p1:x,p0DataIndex:(g-1)%o,p1DataIndex:g%o,datasetIndex:s}))),Rw(O,d)&&v(p,g-1,b.loop,d),k=x,d=O}p<g-1&&v(p,g-1,b.loop,d)}return l}function pf(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Rw(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}/*!
* Chart.js v3.9.1
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/class Tw{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const u=n.listeners[i],s=n.duration;u.forEach(a=>a({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=km.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 Tw;const mf="transparent",Mw={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=uf(e||mf),i=r.valid&&uf(t||mf);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Lw{constructor(t,n,r,i){const u=n[r];i=as([t.to,i,u,t.from]);const s=as([t.from,u,i]);this._active=!0,this._fn=t.fn||Mw[t.type||typeof s],this._easing=Xi[t.easing]||Xi.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=as([t.to,n,i,t.from]),this._from=as([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||n<r),!this._active){this._target[i]=a,this._notify(!0);return}if(n<0){this._target[i]=u;return}o=n/r%2,o=s&&o>1?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;i<r.length;i++)r[i][n]()}}const Bw=["x","y","borderWidth","radius","tension"],Iw=["color","borderColor","backgroundColor"];Z.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const zw=Object.keys(Z.animation);Z.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"});Z.set("animations",{colors:{type:"color",properties:Iw},numbers:{type:"number",properties:Bw}});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 $m{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 zw)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=Vw(t,r);if(!i)return[];const u=this._createAnimations(i,r);return r.$shared&&jw(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 Lw(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 jw(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const u=e[r[i]];u&&u.active()&&n.push(u.wait())}return Promise.all(n)}function Vw(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function gf(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,u=n.max===void 0?t:0;return{start:r?u:i,end:r?i:u}}function Uw(e,t,n){if(n===!1)return!1;const r=gf(e,n),i=gf(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function Ww(e){let t,n,r,i;return ne(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function Km(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,u;for(i=0,u=r.length;i<u;++i)n.push(r[i].index);return n}function yf(e,t,n,r={}){const i=e.keys,u=r.mode==="single";let s,a,o,l;if(t!==null){for(s=0,a=i.length;s<a;++s){if(o=+i[s],o===n){if(r.all)continue;break}l=e.values[o],Be(l)&&(u||t===0||qt(t)===qt(l))&&(t+=l)}return t}}function Hw(e){const t=Object.keys(e),n=new Array(t.length);let r,i,u;for(r=0,i=t.length;r<i;++r)u=t[r],n[r]={x:u,y:e[u]};return n}function vf(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function $w(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function Kw(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function Yw(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function bf(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const u=e[i.index];if(n&&u>0||!n&&u<0)return i.index}return null}function xf(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=$w(u,s,r),p=t.length;let g;for(let v=0;v<p;++v){const b=t[v],{[o]:k,[l]:O}=b,x=b._stacks||(b._stacks={});g=x[l]=Yw(i,d,k),g[a]=O,g._top=bf(g,s,!0,r.type),g._bottom=bf(g,s,!1,r.type)}}function Qo(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function qw(e,t){return Wn(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function Xw(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 wi(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 Jo=e=>e==="reset"||e==="none",Ef=(e,t)=>t?e:Object.assign({},e),Gw=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Km(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=vf(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&wi(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,Qo(t,"x")),s=n.yAxisID=ee(r.yAxisID,Qo(t,"y")),a=n.rAxisID=ee(r.rAxisID,Qo(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&&Gd(this._data,this),t._stacked&&wi(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(ne(n))this._data=Hw(n);else if(r!==n){if(r){Gd(r,this);const i=this._cachedMeta;wi(i),i._parsed=[]}n&&Object.isExtensible(n)&&f_(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=vf(n.vScale,n),n.stack!==r.stack&&(i=!0,wi(n),n.stack=r.stack),this._resyncElements(t),(i||u!==n._stacked)&&xf(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]<l[a];for(d=0;d<n;++d)r._parsed[d+t]=p=g[d],o&&(v()&&(o=!1),l=p);r._sorted=o}s&&xf(this,g)}parsePrimitiveData(t,n,r,i){const{iScale:u,vScale:s}=t,a=u.axis,o=s.axis,l=u.getLabels(),d=u===s,p=new Array(i);let g,v,b;for(g=0,v=i;g<v;++g)b=g+r,p[g]={[a]:d||u.parse(l[b],b),[o]:s.parse(n[b],b)};return p}parseArrayData(t,n,r,i){const{xScale:u,yScale:s}=t,a=new Array(i);let o,l,d,p;for(o=0,l=i;o<l;++o)d=o+r,p=n[d],a[o]={x:u.parse(p[0],d),y:s.parse(p[1],d)};return a}parseObjectData(t,n,r,i){const{xScale:u,yScale:s}=t,{xAxisKey:a="x",yAxisKey:o="y"}=this._parsing,l=new Array(i);let d,p,g,v;for(d=0,p=i;d<p;++d)g=d+r,v=n[g],l[d]={x:u.parse(In(v,a),g),y:s.parse(In(v,o),g)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,u=this._cachedMeta,s=n[t.axis],a={keys:Km(i,!0),values:n._stacks[t.axis]};return yf(a,s,u.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const u=r[n.axis];let s=u===null?NaN:u;const a=i&&r._stacks[n.axis];i&&a&&(i.values=a,s=yf(i,u,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,u=r._sorted&&t===r.iScale,s=i.length,a=this._getOtherScale(t),o=Gw(n,r,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:p}=Kw(a);let g,v;function b(){v=i[g];const k=v[a.axis];return!Be(v[t.axis])||d>k||p<k}for(g=0;g<s&&!(!b()&&(this.updateRangeFromParsed(l,t,v,o),u));++g);if(u){for(g=s-1;g>=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<u;++i)s=n[i][t.axis],Be(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,u=this.getParsed(t);return{label:r?""+r.getLabelForValue(u[r.axis]):"",value:i?""+i.getLabelForValue(u[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=Ww(ee(this.options.clip,Uw(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],u=n.chartArea,s=[],a=this._drawStart||0,o=this._drawCount||i.length-a,l=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(t,u,a,o),d=a;d<a+o;++d){const p=i[d];p.hidden||(p.active&&l?s.push(p):p.draw(t,u))}for(d=0;d<s.length;++d)s[d].draw(t,u)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let u;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];u=s.$context||(s.$context=Xw(this.getContext(),t,s)),u.parsed=this.getParsed(t),u.raw=i.data[t],u.index=u.dataIndex=t}else u=this.$context||(this.$context=qw(this.chart.getContext(),this.index)),u.dataset=i,u.index=u.datasetIndex=this.index;return u.active=!!n,u.mode=r,u}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",u=this._cachedDataOpts,s=t+"-"+n,a=u[s],o=this.enableOptionSharing&&Pt(r);if(a)return Ef(a,o);const l=this.chart.config,d=l.datasetElementScopeKeys(this._type,t),p=i?[`${t}Hover`,"hover",t,""]:[t,""],g=l.getOptionScopes(this.getDataset(),d),v=Object.keys(Z.elements[t]),b=()=>this.getContext(r,i),k=l.resolveNamedOptions(g,v,b,p);return k.$shared&&(k.$shared=o,u[s]=Object.freeze(Ef(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 $m(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||Jo(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){Jo(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Jo(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<i&&this._removeElements(u,i-u)}_insertElements(t,n,r=!0){const i=this._cachedMeta,u=i.data,s=t+n;let a;const o=l=>{for(l.length+=n,a=l.length-1;a>=s;a--)l[a]=l[a-n]};for(o(u),a=t;a<s;++a)u[a]=new this.dataElementType;this._parsing&&o(i._parsed),this.parse(t,n),r&&this.updateElements(u,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&wi(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}It.defaults={};It.prototype.datasetElementType=null;It.prototype.dataElementType=null;function Qw(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,u=n.length;i<u;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=Dm(r.sort((i,u)=>i-u))}return e._cache.$bar}function Jw(e){const t=e.iScale,n=Qw(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;i<u;++i)s=t.getPixelForValue(n[i]),o();for(a=void 0,i=0,u=t.ticks.length;i<u;++i)s=t.getPixelForTick(i),o();return r}function Zw(e,t,n,r){const i=n.barThickness;let u,s;return ie(i)?(u=t.min*n.categoryPercentage,s=n.barPercentage):(u=i*r,s=1),{chunk:u/r,ratio:s,start:t.pixels[e]-u/2}}function e2(e,t,n,r){const i=t.pixels,u=i[e];let s=e>0?i[e-1]:null,a=e<i.length-1?i[e+1]:null;const o=n.categoryPercentage;s===null&&(s=u-(a===null?t.end-t.start:a-u)),a===null&&(a=u+u-s);const l=u-(u-Math.min(s,a))/2*o;return{chunk:Math.abs(a-s)/2*o/r,ratio:n.barPercentage,start:l}}function t2(e,t,n,r){const i=n.parse(e[0],r),u=n.parse(e[1],r),s=Math.min(i,u),a=Math.max(i,u);let o=s,l=a;Math.abs(s)>Math.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 Ym(e,t,n,r){return pe(e)?t2(e,t,n,r):t[n.axis]=n.parse(e,r),t}function _f(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<d;++l)g=t[l],p={},p[i.axis]=a||i.parse(s[l],l),o.push(Ym(g,p,u,l));return o}function Zo(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function n2(e,t,n){return e!==0?qt(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function r2(e){let t,n,r,i,u;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",u="start"):(i="start",u="end"),{start:n,end:r,reverse:t,top:i,bottom:u}}function i2(e,t,n,r){let i=t.borderSkipped;const u={};if(!i){e.borderSkipped=u;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:a,reverse:o,top:l,bottom:d}=r2(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=l:(n._bottom||0)===r?i=d:(u[wf(d,s,a,o)]=!0,i=l)),u[wf(i,s,a,o)]=!0,e.borderSkipped=u}function wf(e,t,n,r){return r?(e=u2(e,t,n),e=Df(e,n,t)):e=Df(e,t,n),e}function u2(e,t,n){return e===t?n:e===n?t:e}function Df(e,t,n){return e==="start"?t:e==="end"?n:e}function s2(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class M0 extends It{parsePrimitiveData(t,n,r,i){return _f(t,n,r,i)}parseArrayData(t,n,r,i){return _f(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:u,vScale:s}=t,{xAxisKey:a="x",yAxisKey:o="y"}=this._parsing,l=u.axis==="x"?a:o,d=s.axis==="x"?a:o,p=[];let g,v,b,k;for(g=r,v=r+i;g<v;++g)k=n[g],b={},b[u.axis]=u.parse(In(k,l),g),p.push(Ym(In(k,d),b,s,g));return p}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const u=r._custom;u&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,u.min),t.max=Math.max(t.max,u.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,u=this.getParsed(t),s=u._custom,a=Zo(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(u[i.axis]);return{label:""+r.getLabelForValue(u[r.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const u=i==="reset",{index:s,_cachedMeta:{vScale:a}}=this,o=a.getBasePixel(),l=a.isHorizontal(),d=this._getRuler(),{sharedOptions:p,includeOptions:g}=this._getSharedOptions(n,i);for(let v=n;v<n+r;v++){const b=this.getParsed(v),k=u||ie(b[a.axis])?{base:o,head:o}:this._calculateBarValuePixels(v),O=this._calculateBarIndexPixels(v,d),x=(b._stacks||{})[a.axis],_={horizontal:l,base:k.base,enableBorderRadius:!x||Zo(b._custom)||s===x._top||s===x._bottom,x:l?k.head:O.center,y:l?O.center:k.head,height:l?O.size:Math.abs(k.size),width:l?Math.abs(k.size):O.size};g&&(_.options=p||this.resolveDataElementOptions(v,t[v].active?"active":i));const w=_.options||t[v].options;i2(_,w,x,s),s2(_,w,d.ratio),this.updateElement(t[v],v,_,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(o=>o.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<s;++u)i.push(r.getPixelForValue(this.getParsed(u)[r.axis],u));const a=t.barThickness;return{min:a||Jw(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r},options:{base:i,minBarLength:u}}=this,s=i||0,a=this.getParsed(t),o=a._custom,l=Zo(o);let d=a[n.axis],p=0,g=r?this.applyStack(n,a,r):d,v,b;g!==d&&(p=g-d,g=d),l&&(d=o.barStart,g=o.barEnd-o.barStart,d!==0&&qt(d)!==qt(o.barEnd)&&(p=0),p+=d);const k=!ie(i)&&!l?i:p;let O=n.getPixelForValue(k);if(this.chart.getDataVisibility(t)?v=n.getPixelForValue(p+g):v=O,b=v-O,Math.abs(b)<u){b=n2(b,n,s)*u,d===s&&(O-=b/2);const x=n.getPixelForDecimal(0),_=n.getPixelForDecimal(1),w=Math.min(x,_),T=Math.max(x,_);O=Math.max(Math.min(O,T),w),v=O+b}if(O===n.getPixelForValue(s)){const x=qt(b)*n.getLineWidthForValue(s)/2;O+=x,b-=x}return{size:b,base:O,head:v,center:v+b/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,u=i.skipNull,s=ee(i.maxBarThickness,1/0);let a,o;if(n.grouped){const l=u?this._getStackCount(t):n.stackCount,d=i.barThickness==="flex"?e2(t,n,i,l):Zw(t,n,i,l),p=this._getStackIndex(this.index,this._cachedMeta.stack,u?t:void 0);a=d.start+d.chunk*p+d.chunk/2,o=Math.min(s,d.chunk*d.ratio)}else a=r.getPixelForValue(this.getParsed(t)[r.axis],t),o=Math.min(s,n.min*n.ratio);return{base:a-o/2,head:a+o/2,center:a,size:o}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let u=0;for(;u<i;++u)this.getParsed(u)[n.axis]!==null&&r[u].draw(this._ctx)}}M0.id="bar";M0.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};M0.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class L0 extends It{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,i){const u=super.parsePrimitiveData(t,n,r,i);for(let s=0;s<u.length;s++)u[s]._custom=this.resolveDataElementOptions(s+r).radius;return u}parseArrayData(t,n,r,i){const u=super.parseArrayData(t,n,r,i);for(let s=0;s<u.length;s++){const a=n[r+s];u[s]._custom=ee(a[2],this.resolveDataElementOptions(s+r).radius)}return u}parseObjectData(t,n,r,i){const u=super.parseObjectData(t,n,r,i);for(let s=0;s<u.length;s++){const a=n[r+s];u[s]._custom=ee(a&&a.r&&+a.r,this.resolveDataElementOptions(s+r).radius)}return u}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let r=t.length-1;r>=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;g<n+r;g++){const v=t[g],b=!u&&this.getParsed(g),k={},O=k[d]=u?s.getPixelForDecimal(.5):s.getPixelForValue(b[d]),x=k[p]=u?a.getBasePixel():a.getPixelForValue(b[p]);k.skip=isNaN(O)||isNaN(x),l&&(k.options=o||this.resolveDataElementOptions(g,v.active?"active":i),u&&(k.options.radius=0)),this.updateElement(v,g,k,i)}}resolveDataElementOptions(t,n){const r=this.getParsed(t);let i=super.resolveDataElementOptions(t,n);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const u=i.radius;return n!=="active"&&(i.radius=0),i.radius+=ee(r&&r._custom,u),i}}L0.id="bubble";L0.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};L0.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};function a2(e,t,n){let r=1,i=1,u=0,s=0;if(t<oe){const a=e,o=a+t,l=Math.cos(a),d=Math.sin(a),p=Math.cos(o),g=Math.sin(o),v=(w,T,D)=>vu(w,a,o,!0)?1:Math.max(T,T*n,D,D*n),b=(w,T,D)=>vu(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 Nu 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;s<a;++s)i._parsed[s]=u(s)}}_getRotation(){return Tt(this.options.rotation-90)}_getCircumference(){return Tt(this.options.circumference)}_getRotationExtents(){let t=oe,n=-oe;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)){const i=this.chart.getDatasetMeta(r).controller,u=i._getRotation(),s=i._getCircumference();t=Math.min(t,u),n=Math.max(n,u+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,u=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(u)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-s)/2,0),o=Math.min(JE(this.options.cutout,a),1),l=this._getRingWeight(this.index),{circumference:d,rotation:p}=this._getRotationExtents(),{ratioX:g,ratioY:v,offsetX:b,offsetY:k}=a2(p,d,o),O=(r.width-s)/g,x=(r.height-s)/v,_=Math.max(Math.min(O,x)/2,0),w=bm(this.options.radius,_),T=Math.max(w*o,0),D=(w-T)/this._getVisibleDatasetWeightTotal();this.offsetX=b*w,this.offsetY=k*w,i.total=this.calculateTotal(),this.outerRadius=w-D*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-D*l,0),this.updateElements(u,0,u.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,u=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*u/oe)}updateElements(t,n,r,i){const u=i==="reset",s=this.chart,a=s.chartArea,l=s.options.animation,d=(a.left+a.right)/2,p=(a.top+a.bottom)/2,g=u&&l.animateScale,v=g?0:this.innerRadius,b=g?0:this.outerRadius,{sharedOptions:k,includeOptions:O}=this._getSharedOptions(n,i);let x=this._getRotation(),_;for(_=0;_<n;++_)x+=this._circumference(_,u);for(_=n;_<n+r;++_){const w=this._circumference(_,u),T=t[_],D={x:d+this.offsetX,y:p+this.offsetY,startAngle:x,endAngle:x+w,circumference:w,outerRadius:b,innerRadius:v};O&&(D.options=k||this.resolveDataElementOptions(_,T.active?"active":i)),x+=w,this.updateElement(T,_,D,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const u=t._parsed[i];u!==null&&!isNaN(u)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(u))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?oe*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],u=Fu(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;i<u;++i)if(r.isDatasetVisible(i)){s=r.getDatasetMeta(i),t=s.data,a=s.controller;break}}if(!t)return 0;for(i=0,u=t.length;i<u;++i)o=a.resolveDataElementOptions(i),o.borderAlign!=="inner"&&(n=Math.max(n,o.borderWidth||0,o.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const u=this.resolveDataElementOptions(r);n=Math.max(n,u.offset||0,u.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(ee(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Nu.id="doughnut";Nu.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};Nu.descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"};Nu.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 Ha 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}=Pm(n,i,s);this._drawStart=a,this._drawCount=o,Cm(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=Zr(b)?b:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||u||i==="none";let _=n>0&&this.getParsed(n-1);for(let w=n;w<n+r;++w){const T=t[w],D=this.getParsed(w),S=x?T:{},y=ie(D[v]),f=S[g]=s.getPixelForValue(D[g],w),m=S[v]=u||y?a.getBasePixel():a.getPixelForValue(o?this.applyStack(a,D,o):D[v],w);S.skip=isNaN(f)||isNaN(m)||y,S.stop=w>0&&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()}}Ha.id="line";Ha.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};Ha.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class B0 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=Fu(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:u}}parseObjectData(t,n,r,i){return Vm.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)&&(u<n.min&&(n.min=u),u>n.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<n;++b)v+=this._computeAngle(b,i,k);for(b=n;b<n+r;b++){const O=t[b];let x=v,_=v+this._computeAngle(b,i,k),w=s.getDataVisibility(b)?l.getDistanceFromCenterForValue(this.getParsed(b).r):0;v=_,u&&(o.animateScale&&(w=0),o.animateRotate&&(x=_=g));const T={x:d,y:p,innerRadius:0,outerRadius:w,startAngle:x,endAngle:_,options:this.resolveDataElementOptions(b,O.active?"active":i)};this.updateElement(O,b,T,i)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((r,i)=>{!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}}B0.id="polarArea";B0.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};B0.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 qm extends Nu{}qm.id="pie";qm.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class I0 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 Vm.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<n+r;a++){const o=t[a],l=this.resolveDataElementOptions(a,o.active?"active":i),d=u.getPointPositionForValue(a,this.getParsed(a).r),p=s?u.xCenter:d.x,g=s?u.yCenter:d.y,v={x:p,y:g,angle:d.angle,skip:isNaN(p)||isNaN(g),options:l};this.updateElement(o,a,v,i)}}}I0.id="radar";I0.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};I0.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class pn{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Zr(this.x)&&Zr(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(u=>{i[u]=r[u]&&r[u].active()?r[u]._to:this[u]}),i}}pn.defaults={};pn.defaultRoutes=void 0;const Xm={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=o2(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),Fu(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?Xm.numeric.call(this,e,t,n):""}};function o2(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 $a={formatters:Xm};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:$a.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 l2(e,t){const n=e.options.ticks,r=n.maxTicksLimit||c2(e),i=n.major.enabled?f2(t):[],u=i.length,s=i[0],a=i[u-1],o=[];if(u>r)return h2(t,o,i,u/r),o;const l=d2(i,t,r);if(u>0){let d,p;const g=u>1?Math.round((a-s)/(u-1)):null;for(ls(t,o,l,ie(g)?0:s-g,s),d=0,p=u-1;d<p;d++)ls(t,o,l,i[d],i[d+1]);return ls(t,o,l,a,ie(g)?t.length:a+g),o}return ls(t,o,l),o}function c2(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function d2(e,t,n){const r=p2(e),i=t.length/n;if(!r)return Math.max(i,1);const u=s_(r);for(let s=0,a=u.length-1;s<a;s++){const o=u[s];if(o>i)return o}return Math.max(i,1)}function f2(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function h2(e,t,n,r){let i=0,u=n[0],s;for(r=Math.ceil(r),s=0;s<e.length;s++)s===u&&(t.push(e[s]),i++,u=n[i*r])}function ls(e,t,n,r,i){const u=ee(r,0),s=Math.min(ee(i,e.length),e.length);let a=0,o,l,d;for(n=Math.ceil(n),i&&(o=i-r,n=o/Math.floor(o/n)),d=u;d<0;)a++,d=Math.round(u+a*n);for(l=Math.max(u,0);l<s;l++)l===d&&(t.push(e[l]),a++,d=Math.round(u+a*n))}function p2(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const m2=e=>e==="left"?"right":e==="right"?"left":e,kf=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function Sf(e,t){const n=[],r=e.length/t,i=e.length;let u=0;for(;u<i;u+=r)n.push(e[Math.floor(u)]);return n}function g2(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),u=e._startPixel,s=e._endPixel,a=1e-6;let o=e.getPixelForTick(i),l;if(!(n&&(r===1?l=Math.max(o-u,s-o):t===0?l=(e.getPixelForTick(1)-o)/2:l=(o-e.getPixelForTick(i-1))/2,o+=i<t?l:-l,o<u-a||o>s+a)))return o}function y2(e,t){ue(e,n=>{const r=n.gc,i=r.length/2;let u;if(i>t){for(u=0;u<i;++u)delete n.data[r[u]];r.splice(0,i)}})}function Di(e){return e.drawTicks?e.tickLength:0}function Pf(e,t){if(!e.display)return 0;const n=ct(e.font,t),r=Ct(e.padding);return(pe(e.text)?e.text.length:1)*n.lineHeight+r.height}function v2(e,t){return Wn(e,{scale:t,type:"scale"})}function b2(e,t,n){return Wn(e,{tick:n,index:t,type:"tick"})}function x2(e,t,n){let r=p_(e);return(n&&t!=="right"||!n&&t==="right")&&(r=m2(r)),r}function E2(e,t,n,r){const{top:i,left:u,bottom:s,right:a,chart:o}=e,{chartArea:l,scales:d}=o;let p=0,g,v,b;const k=s-i,O=a-u;if(e.isHorizontal()){if(v=Qd(r,u,a),ne(n)){const x=Object.keys(n)[0],_=n[x];b=d[x].getPixelForValue(_)+k-t}else n==="center"?b=(l.bottom+l.top)/2+k-t:b=kf(e,n,t);g=a-u}else{if(ne(n)){const x=Object.keys(n)[0],_=n[x];v=d[x].getPixelForValue(_)-O+t}else n==="center"?v=(l.left+l.right)/2-O+t:v=kf(e,n,t);b=Qd(r,s,i),p=n==="left"?-Ee:Ee}return{titleX:v,titleY:b,maxWidth:g,rotation:p}}class mr extends pn{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=vt(t,Number.POSITIVE_INFINITY),n=vt(n,Number.NEGATIVE_INFINITY),r=vt(r,Number.POSITIVE_INFINITY),i=vt(i,Number.NEGATIVE_INFINITY),{min:vt(t,r),max:vt(n,i),minDefined:Be(t),maxDefined:Be(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:u}=this.getUserBounds(),s;if(i&&u)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let o=0,l=a.length;o<l;++o)s=a[o].controller.getMinMax(this,t),i||(n=Math.min(n,s.min)),u||(r=Math.max(r,s.max));return n=u&&n>r?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=X_(this,u,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const o=a<this.ticks.length;this._convertTicksToLabels(o?Sf(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=l2(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),o&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){be(this.options.afterUpdate,[this])}beforeSetDimensions(){be(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){be(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),be(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){be(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,u;for(r=0,i=t.length;r<i;r++)u=t[r],u.label=be(n.callback,[u.value,r,t],this)}afterTickToLabelConversion(){be(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){be(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=this.ticks.length,i=n.minRotation||0,u=n.maxRotation;let s=i,a,o,l;if(!this._isVisible()||!n.display||i>=u||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),p=d.widest.width,g=d.highest.height,v=He(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-Di(t.grid)-n.padding-Pf(t.title,this.chart.options.font),l=Math.sqrt(p*p+g*g),s=k0(Math.min(Math.asin(He((d.highest.height+6)/a,-1,1)),Math.asin(He(o/l,-1,1))-Math.asin(He(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=Pf(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=Di(u)+o):(t.height=this.maxHeight,t.width=Di(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<r;n++)ie(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=Sf(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length)}return t}_computeLabelSizes(t,n){const{ctx:r,_longestTextCache:i}=this,u=[],s=[];let a=0,o=0,l,d,p,g,v,b,k,O,x,_,w;for(l=0;l<n;++l){if(g=t[l].label,v=this._resolveTickFontOptions(l),r.font=b=v.string,k=i[b]=i[b]||{data:{},gc:[]},O=v.lineHeight,x=_=0,!ie(g)&&!pe(g))x=la(r,k.data,k.gc,x,g),_=O;else if(pe(g))for(d=0,p=g.length;d<p;++d)w=g[d],!ie(w)&&!pe(w)&&(x=la(r,k.data,k.gc,x,w),_+=O);u.push(x),s.push(_),a=Math.max(x,a),o=Math.max(_,o)}y2(i,n);const T=u.indexOf(a),D=s.indexOf(o),S=y=>({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 l_(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&&t<n.length){const r=n[t];return r.$context||(r.$context=b2(this.getContext(),t,r))}return this.$context||(this.$context=v2(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Tt(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),u=this._getLabelSizes(),s=t.autoSkipPadding||0,a=u?u.widest.width+s:0,o=u?u.highest.height+s:0;return this.isHorizontal()?o*r>a*i?a/r:o/i:o*i<a*r?o/r:a/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_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=Di(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,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;_<d;_+=F){const M=u.setContext(this.getContext(_)),I=M.lineWidth,L=M.color,A=M.borderDash||[],R=M.borderDashOffset,N=M.tickWidth,z=M.tickColor,V=M.tickBorderDash||[],W=M.tickBorderDashOffset;w=g2(this,_,a),w!==void 0&&(T=Hn(r,w,I),o?D=y=m=E=T:S=f=h=C=T,g.push({tx1:D,ty1:S,tx2:y,ty2:f,x1:m,y1:h,x2:E,y2:C,width:I,color:L,borderDash:A,borderDashOffset:R,tickWidth:N,tickColor:z,tickBorderDash:V,tickBorderDashOffset:W}))}return this._ticksLength=d,this._borderValue=x,g}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:u}=r,s=this.isHorizontal(),a=this.ticks,{align:o,crossAlign:l,padding:d,mirror:p}=u,g=Di(r.grid),v=g+d,b=p?-d:v,k=-Tt(this.labelRotation),O=[];let x,_,w,T,D,S,y,f,m,h,E,C,B="middle";if(i==="top")S=this.bottom-b,y=this._getXAxisLabelAlignment();else if(i==="bottom")S=this.top+b,y=this._getXAxisLabelAlignment();else if(i==="left"){const M=this._getYAxisLabelAlignment(g);y=M.textAlign,D=M.x}else if(i==="right"){const M=this._getYAxisLabelAlignment(g);y=M.textAlign,D=M.x}else if(n==="x"){if(i==="center")S=(t.top+t.bottom)/2+v;else if(ne(i)){const M=Object.keys(i)[0],I=i[M];S=this.chart.scales[M].getPixelForValue(I)+v}y=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")D=(t.left+t.right)/2-v;else if(ne(i)){const M=Object.keys(i)[0],I=i[M];D=this.chart.scales[M].getPixelForValue(I)}y=this._getYAxisLabelAlignment(g).textAlign}n==="y"&&(o==="start"?B="top":o==="end"&&(B="bottom"));const F=this._getLabelSizes();for(x=0,_=a.length;x<_;++x){w=a[x],T=w.label;const M=u.setContext(this.getContext(x));f=this.getPixelForTick(x)+u.labelOffset,m=this._resolveTickFontOptions(x),h=m.lineHeight,E=pe(T)?T.length:1;const I=E/2,L=M.color,A=M.textStrokeColor,R=M.textStrokeWidth;let N=y;s?(D=f,y==="inner"&&(x===_-1?N=this.options.reverse?"left":"right":x===0?N=this.options.reverse?"right":"left":N="center"),i==="top"?l==="near"||k!==0?C=-E*h+h/2:l==="center"?C=-F.highest.height/2-I*h+h:C=-F.highest.height+h/2:l==="near"||k!==0?C=h/2:l==="center"?C=F.highest.height/2-I*h:C=F.highest.height-E*h,p&&(C*=-1)):(S=f,C=(1-E)*h/2);let z;if(M.showLabelBackdrop){const V=Ct(M.backdropPadding),W=F.heights[x],q=F.widths[x];let X=S+C-V.top,Q=D-V.left;switch(B){case"middle":X-=W/2;break;case"bottom":X-=W;break}switch(y){case"center":Q-=q/2;break;case"right":Q-=q;break}z={left:Q,top:X,width:q+V.width,height:W+V.height,color:M.backdropColor}}O.push({rotation:k,label:T,font:m,color:L,strokeColor:A,strokeWidth:R,textOffset:C,textAlign:N,textBaseline:B,translation:[D,S],backdrop:z})}return O}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Tt(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:u}}=this.options,s=this._getLabelSizes(),a=t+u,o=s.widest.width;let l,d;return n==="left"?i?(d=this.right+u,r==="near"?l="left":r==="center"?(l="center",d+=o/2):(l="right",d+=o)):(d=this.right-a,r==="near"?l="right":r==="center"?(l="center",d-=o/2):(l="left",d=this.left)):n==="right"?i?(d=this.left+u,r==="near"?l="right":r==="center"?(l="center",d-=o/2):(l="left",d-=o)):(d=this.left+a,r==="near"?l="left":r==="center"?(l="center",d+=o/2):(l="right",d=this.right)):l="right",{textAlign:l,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:u,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,u,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(u=>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<s;++u){const o=i[u];n.drawOnChartArea&&a({x:o.x1,y:o.y1},{x:o.x2,y:o.y2},o),n.drawTicks&&a({x:o.tx1,y:o.ty1},{x:o.tx2,y:o.ty2},{color:o.tickColor,width:o.tickWidth,borderDash:o.tickBorderDash,borderDashOffset:o.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{grid:r}}=this,i=r.setContext(this.getContext()),u=r.drawBorder?i.borderWidth:0;if(!u)return;const s=r.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let o,l,d,p;this.isHorizontal()?(o=Hn(t,this.left,u)-u/2,l=Hn(t,this.right,s)+s/2,d=p=a):(d=Hn(t,this.top,u)-u/2,p=Hn(t,this.bottom,s)+s/2,o=l=a),n.save(),n.lineWidth=i.borderWidth,n.strokeStyle=i.borderColor,n.beginPath(),n.moveTo(o,d),n.lineTo(l,p),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&Tm(r,i);const u=this._labelItems||(this._labelItems=this._computeLabelItems(t));let s,a;for(s=0,a=u.length;s<a;++s){const o=u[s],l=o.font,d=o.label;o.backdrop&&(r.fillStyle=o.backdrop.color,r.fillRect(o.backdrop.left,o.backdrop.top,o.backdrop.width,o.backdrop.height));let p=o.textOffset;ca(r,d,0,p,l,o)}i&&Mm(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const u=ct(r.font),s=Ct(r.padding),a=r.align;let o=u.lineHeight/2;n==="bottom"||n==="center"||ne(n)?(o+=s.bottom,pe(r.text)&&(o+=u.lineHeight*(r.text.length-1))):o+=s.top;const{titleX:l,titleY:d,maxWidth:p,rotation:g}=E2(this,o,n,a);ca(t,r.text,0,0,u,{color:r.color,maxWidth:p,rotation:g,textAlign:x2(a,n,i),textBaseline:"middle",translation:[l,d]})}draw(t){!this._isVisible()||(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=ee(t.grid&&t.grid.z,-1);return!this._isVisible()||this.draw!==mr.prototype.draw?[{z:n,draw:i=>{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<s;++u){const a=n[u];a[r]===this.id&&(!t||a.type===t)&&i.push(a)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return ct(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class cs{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;D2(n)&&(r=this.register(n));const i=this.items,u=t.id,s=this.scope+"."+u;if(!u)throw new Error("class does not have id: "+t);return u in i||(i[u]=t,_2(t,s,r),this.override&&Z.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in Z[i]&&(delete Z[i][r],this.override&&delete fr[r])}}function _2(e,t,n){const r=yu(Object.create(null),[n?Z.get(n):{},Z.get(t),e.defaults]);Z.set(t,r),e.defaultRoutes&&w2(t,e.defaultRoutes),e.descriptors&&Z.describe(t,e.descriptors)}function w2(e,t){Object.keys(t).forEach(n=>{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 D2(e){return"id"in e&&"defaults"in e}class k2{constructor(){this.controllers=new cs(It,"datasets",!0),this.elements=new cs(pn,"elements"),this.plugins=new cs(Object,"plugins"),this.scales=new cs(mr,"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=D0(t);be(r["before"+i],[],r),n[t](r),be(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var $t=new k2;class z0 extends It{update(t){const n=this._cachedMeta,{data:r=[]}=n,i=this.chart._animationsDisabled;let{start:u,count:s}=Pm(n,r,i);if(this._drawStart=u,this._drawCount=s,Cm(n)&&(u=0,s=r.length),this.options.showLine){const{dataset:a,_dataset:o}=n;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!o._decimated,a.points=r;const l=this.resolveDatasetElementOptions(t);l.segment=this.options.segment,this.updateElement(a,void 0,{animated:!i,options:l},t)}this.updateElements(r,u,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=$t.getElement("line")),super.addElements()}updateElements(t,n,r,i){const u=i==="reset",{iScale:s,vScale:a,_stacked:o,_dataset:l}=this._cachedMeta,d=this.resolveDataElementOptions(n,i),p=this.getSharedOptions(d),g=this.includeOptions(i,p),v=s.axis,b=a.axis,{spanGaps:k,segment:O}=this.options,x=Zr(k)?k:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||u||i==="none";let w=n>0&&this.getParsed(n-1);for(let T=n;T<n+r;++T){const D=t[T],S=this.getParsed(T),y=_?D:{},f=ie(S[b]),m=y[v]=s.getPixelForValue(S[v],T),h=y[b]=u||f?a.getBasePixel():a.getPixelForValue(o?this.applyStack(a,S,o):S[b],T);y.skip=isNaN(m)||isNaN(h)||f,y.stop=T>0&&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}}z0.id="scatter";z0.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};z0.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 pc{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()}}pc.override=function(e){Object.assign(pc.prototype,e)};var S2={_date:pc};function P2(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?c_:tr;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 Au(e,t,n,r,i){const u=e.getSortedVisibleDatasetMetas(),s=n[t];for(let a=0,o=u.length;a<o;++a){const{index:l,data:d}=u[a],{lo:p,hi:g}=P2(u[a],t,s,i);for(let v=p;v<=g;++v){const b=d[v];b.skip||r(b,l,v)}}}function C2(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const u=t?Math.abs(r.x-i.x):0,s=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(u,2)+Math.pow(s,2))}}function el(e,t,n,r,i){const u=[];return!i&&!e.isPointInArea(t)||Au(e,n,t,function(a,o,l){!i&&!bu(a,e.chartArea,0)||a.inRange(t.x,t.y,r)&&u.push({element:a,datasetIndex:o,index:l})},!0),u}function O2(e,t,n,r){let i=[];function u(s,a,o){const{startAngle:l,endAngle:d}=s.getProps(["startAngle","endAngle"],r),{angle:p}=_m(s,{x:t.x,y:t.y});vu(p,l,d)&&i.push({element:s,datasetIndex:a,index:o})}return Au(e,n,t,u),i}function F2(e,t,n,r,i,u){let s=[];const a=C2(n);let o=Number.POSITIVE_INFINITY;function l(d,p,g){const v=d.inRange(t.x,t.y,i);if(r&&!v)return;const b=d.getCenterPoint(i);if(!(!!u||e.isPointInArea(b))&&!v)return;const O=a(t,b);O<o?(s=[{element:d,datasetIndex:p,index:g}],o=O):O===o&&s.push({element:d,datasetIndex:p,index:g})}return Au(e,n,t,l),s}function tl(e,t,n,r,i,u){return!u&&!e.isPointInArea(t)?[]:n==="r"&&!r?O2(e,t,n,i):F2(e,t,n,r,i,u)}function Cf(e,t,n,r,i){const u=[],s=n==="x"?"inXRange":"inYRange";let a=!1;return Au(e,n,t,(o,l,d)=>{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 N2={evaluateInteractionItems:Au,modes:{index(e,t,n,r){const i=Xn(t,e),u=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?el(e,i,u,r,s):tl(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=Xn(t,e),u=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?el(e,i,u,r,s):tl(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;d<l.length;++d)a.push({element:l[d],datasetIndex:o,index:d})}return a},point(e,t,n,r){const i=Xn(t,e),u=n.axis||"xy",s=n.includeInvisible||!1;return el(e,i,u,r,s)},nearest(e,t,n,r){const i=Xn(t,e),u=n.axis||"xy",s=n.includeInvisible||!1;return tl(e,i,u,n.intersect,r,s)},x(e,t,n,r){const i=Xn(t,e);return Cf(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=Xn(t,e);return Cf(e,i,"y",n.intersect,r)}}};const Gm=["left","top","right","bottom"];function ki(e,t){return e.filter(n=>n.pos===t)}function Of(e,t){return e.filter(n=>Gm.indexOf(n.pos)===-1&&n.box.axis===t)}function Si(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 A2(e){const t=[];let n,r,i,u,s,a;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:u,options:{stack:s,stackWeight:a=1}}=i,t.push({index:n,box:i,pos:u,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&u+s,stackWeight:a});return t}function R2(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:u}=n;if(!r||!Gm.includes(i))continue;const s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=u}return t}function T2(e,t){const n=R2(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let u,s,a;for(u=0,s=e.length;u<s;++u){a=e[u];const{fullSize:o}=a.box,l=n[a.stack],d=l&&a.stackWeight/l.weight;a.horizontal?(a.width=d?d*r:o&&t.availableWidth,a.height=i):(a.width=r,a.height=d?d*i:o&&t.availableHeight)}return n}function M2(e){const t=A2(e),n=Si(t.filter(l=>l.box.fullSize),!0),r=Si(ki(t,"left"),!0),i=Si(ki(t,"right")),u=Si(ki(t,"top"),!0),s=Si(ki(t,"bottom")),a=Of(t,"x"),o=Of(t,"y");return{fullSize:n,leftAndTop:r.concat(u),rightAndBottom:i.concat(o).concat(s).concat(a),chartArea:ki(t,"chartArea"),vertical:r.concat(i).concat(o),horizontal:u.concat(s).concat(a)}}function Ff(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Qm(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 L2(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&&Qm(s,u.getPadding());const a=Math.max(0,t.outerWidth-Ff(s,e,"left","right")),o=Math.max(0,t.outerHeight-Ff(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 B2(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 I2(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 Li(e,t,n,r){const i=[];let u,s,a,o,l,d;for(u=0,s=e.length,l=0;u<s;++u){a=e[u],o=a.box,o.update(a.width||t.w,a.height||t.h,I2(a.horizontal,t));const{same:p,other:g}=L2(t,n,a,r);l|=p&&i.length,d=d||g,o.fullSize||i.push(a)}return l&&Li(i,t,n,r)||d}function ds(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function Nf(e,t,n,r){const i=n.padding;let{x:u,y:s}=t;for(const a of e){const o=a.box,l=r[a.stack]||{count:1,placed:0,weight:1},d=a.stackWeight/l.weight||1;if(a.horizontal){const p=t.w*d,g=l.size||o.height;Pt(l.start)&&(s=l.start),o.fullSize?ds(o,i.left,s,n.outerWidth-i.right-i.left,g):ds(o,t.left+l.placed,s,p,g),l.start=s,l.placed+=p,s=o.bottom}else{const p=t.h*d,g=l.size||o.width;Pt(l.start)&&(u=l.start),o.fullSize?ds(o,u,i.top,g,n.outerHeight-i.bottom-i.top):ds(o,u,t.top+l.placed,g,p),l.start=u,l.placed+=p,u=o.right}}t.x=u,t.y=s}Z.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var fs={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=Ct(e.options.layout.padding),u=Math.max(t-i.width,0),s=Math.max(n-i.height,0),a=M2(e.boxes),o=a.vertical,l=a.horizontal;ue(e.boxes,k=>{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);Qm(g,Ct(r));const v=Object.assign({maxPadding:g,w:u,h:s,x:i.left,y:i.top},i),b=T2(o.concat(l),p);Li(a.fullSize,v,p,b),Li(o,v,p,b),Li(l,v,p,b)&&Li(o,v,p,b),B2(v),Nf(a.leftAndTop,v,p,b),v.x+=v.w,v.y+=v.h,Nf(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 Jm{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 z2 extends Jm{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Fs="$chartjs",j2={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Af=e=>e===null||e==="";function V2(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Fs]={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",Af(i)){const u=cf(e,"width");u!==void 0&&(e.width=u)}if(Af(r))if(e.style.height==="")e.height=e.width/(t||2);else{const u=cf(e,"height");u!==void 0&&(e.height=u)}return e}const Zm=vw?{passive:!0}:!1;function U2(e,t,n){e.addEventListener(t,n,Zm)}function W2(e,t,n){e.canvas.removeEventListener(t,n,Zm)}function H2(e,t){const n=j2[e.type]||e.type,{x:r,y:i}=Xn(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function ha(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function $2(e,t,n){const r=e.canvas,i=new MutationObserver(u=>{let s=!1;for(const a of u)s=s||ha(a.addedNodes,r),s=s&&!ha(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function K2(e,t,n){const r=e.canvas,i=new MutationObserver(u=>{let s=!1;for(const a of u)s=s||ha(a.removedNodes,r),s=s&&!ha(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const xu=new Map;let Rf=0;function eg(){const e=window.devicePixelRatio;e!==Rf&&(Rf=e,xu.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Y2(e,t){xu.size||window.addEventListener("resize",eg),xu.set(e,t)}function q2(e){xu.delete(e),xu.size||window.removeEventListener("resize",eg)}function X2(e,t,n){const r=e.canvas,i=r&&T0(r);if(!i)return;const u=Sm((a,o)=>{const l=i.clientWidth;n(a,o),l<i.clientWidth&&n()},window),s=new ResizeObserver(a=>{const o=a[0],l=o.contentRect.width,d=o.contentRect.height;l===0&&d===0||u(l,d)});return s.observe(i),Y2(e,u),s}function nl(e,t,n){n&&n.disconnect(),t==="resize"&&q2(e)}function G2(e,t,n){const r=e.canvas,i=Sm(u=>{e.ctx!==null&&n(H2(u,e))},e,u=>{const s=u[0];return[s,s.offsetX,s.offsetY]});return U2(r,t,i),i}class Q2 extends Jm{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(V2(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Fs])return!1;const r=n[Fs].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[Fs],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),s={attach:$2,detach:K2,resize:X2}[n]||G2;i[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:nl,detach:nl,resize:nl}[n]||W2)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return yw(t,n,r,i)}isAttached(t){const n=T0(t);return!!(n&&n.isConnected)}}function J2(e){return!Wm()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?z2:Q2}class Z2{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=eD(r);return i===!1&&!n?[]:nD(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 eD(e){const t={},n=[],r=Object.keys($t.plugins.items);for(let u=0;u<r.length;u++)n.push($t.getPlugin(r[u]));const i=e.plugins||[];for(let u=0;u<i.length;u++){const s=i[u];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function tD(e,t){return!t&&e===!1?null:e===!0?{}:e}function nD(e,{plugins:t,localIds:n},r,i){const u=[],s=e.getContext();for(const a of t){const o=a.id,l=tD(r[o],i);l!==null&&u.push({plugin:a,options:rD(e.config,{plugin:a,local:n[o]},l,s)})}return u}function rD(e,{plugin:t,local:n},r,i){const u=e.pluginScopeKeys(t),s=e.getOptionScopes(r,u);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function mc(e,t){const n=Z.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function iD(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function uD(e,t){return e===t?"_index_":"_value_"}function sD(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function gc(e,t){return e==="x"||e==="y"?e:t.axis||sD(t.position)||e.charAt(0).toLowerCase()}function aD(e,t){const n=fr[e.type]||{scales:{}},r=t.scales||{},i=mc(e.type,t),u=Object.create(null),s=Object.create(null);return Object.keys(r).forEach(a=>{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=gc(a,o),d=uD(l,i),p=n.scales||{};u[l]=u[l]||a,s[a]=Yi(Object.create(null),[{axis:l},o,p[l],p[d]])}),e.data.datasets.forEach(a=>{const o=a.type||e.type,l=a.indexAxis||mc(o,t),p=(fr[o]||{}).scales||{};Object.keys(p).forEach(g=>{const v=iD(g,l),b=a[v+"AxisID"]||u[v]||v;s[b]=s[b]||Object.create(null),Yi(s[b],[{axis:v},r[b],p[g]])})}),Object.keys(s).forEach(a=>{const o=s[a];Yi(o,[Z.scales[o.type],Z.scale])}),s}function tg(e){const t=e.options||(e.options={});t.plugins=ee(t.plugins,{}),t.scales=aD(e,t)}function ng(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function oD(e){return e=e||{},e.data=ng(e.data),tg(e),e}const Tf=new Map,rg=new Set;function hs(e,t){let n=Tf.get(e);return n||(n=t(),Tf.set(e,n),rg.add(n)),n}const Pi=(e,t,n)=>{const r=In(t,n);r!==void 0&&e.add(r)};class lD{constructor(t){this._config=oD(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=ng(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(),tg(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return hs(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return hs(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return hs(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return hs(`${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=>Pi(o,t,p))),d.forEach(p=>Pi(o,i,p)),d.forEach(p=>Pi(o,fr[u]||{},p)),d.forEach(p=>Pi(o,Z,p)),d.forEach(p=>Pi(o,fc,p))});const l=Array.from(o);return l.length===0&&l.push(Object.create(null)),rg.has(n)&&s.set(n,l),l}chartOptionScopes(){const{options:t,type:n}=this;return[t,fr[n]||{},Z.datasets[n]||{},{type:n},Z,fc]}resolveNamedOptions(t,n,r,i=[""]){const u={$shared:!0},{resolver:s,subPrefixes:a}=Mf(this._resolverCache,t,i);let o=s;if(dD(s,n)){u.$shared=!1,r=zn(r)?r():r;const l=this.createResolver(t,r,a);o=ei(s,r,l)}for(const l of n)u[l]=o[l];return u}createResolver(t,n,r=[""],i){const{resolver:u}=Mf(this._resolverCache,t,r);return ne(n)?ei(u,n,void 0,i):u}}function Mf(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:N0(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,u)),u}const cD=e=>ne(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||zn(e[n]),!1);function dD(e,t){const{isScriptable:n,isIndexable:r}=Bm(e);for(const i of t){const u=n(i),s=r(i),a=(s||u)&&e[i];if(u&&(zn(a)||cD(a))||s&&pe(a))return!0}return!1}var fD="3.9.1";const hD=["top","bottom","left","right","chartArea"];function Lf(e,t){return e==="top"||e==="bottom"||hD.indexOf(e)===-1&&t==="x"}function Bf(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function If(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),be(n&&n.onComplete,[e],t)}function pD(e){const t=e.chart,n=t.options.animation;be(n&&n.onProgress,[e],t)}function ig(e){return Wm()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const pa={},ug=e=>{const t=ig(e);return Object.values(pa).filter(n=>n.canvas===t).pop()};function mD(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 gD(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}class Ru{constructor(t,n){const r=this.config=new lD(n),i=ig(t),u=ug(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||J2(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=QE(),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 Z2,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=h_(p=>this.update(p),s.resizeDelay||0),this._dataChanges=[],pa[this.id]=this,!a||!o){console.error("Failed to create chart: can't acquire context from the given item");return}Gt.listen(this,"complete",If),Gt.listen(this,"progress",pD),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():lf(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return sf(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,lf(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=gc(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=gc(o,a),d=ee(a.type,s.dtype);(a.position===void 0||Lf(a.position,l)!==Lf(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=>{fs.configure(this,s,s.options),fs.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;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(Bf("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.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<i;r++){const u=n[r];let s=this.getDatasetMeta(r);const a=u.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=a,s.indexAxis=u.indexAxis||mc(a,this.options),s.order=u.order||0,s.index=r,s.label=""+u.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const o=$t.getController(a),{datasetElementType:l,dataElementType:d}=Z.datasets[a];Object.assign(o.prototype,{dataElementType:$t.getElement(d),datasetElementType:l&&$t.getElement(l)}),s.controller=new o(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){ue(this.data.datasets,(t,n)=>{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<d;l++){const{controller:p}=this.getDatasetMeta(l),g=!i&&u.indexOf(p)===-1;p.buildOrUpdateElements(g),s=Math.max(+p.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),i||ue(u,l=>{l.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Bf("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=>{fs.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Kd(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;mD(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;u<n;u++)if(!Kd(i,r(u)))return;return Array.from(i).map(u=>u.split(",")).map(u=>({method:u[1],start:+u[2],count:+u[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;fs.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<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,zn(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Gt.has(this)?this.attached&&!Gt.running(this)&&Gt.start(this):(this.draw(),If({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,u;for(i=0,u=n.length;i<u;++i){const s=n[i];(!t||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;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&&Tm(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&&Mm(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return bu(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const u=N2.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;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),sf(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete pa[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(u,s)=>{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<o;++a){s=t[a];const l=s&&this.getDatasetMeta(s.datasetIndex).controller;l&&l[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:u,index:s})=>{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}});!ia(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=r_(t),l=gD(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=!ia(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 zf=()=>ue(Ru.instances,e=>e._plugins.invalidate()),gn=!0;Object.defineProperties(Ru,{defaults:{enumerable:gn,value:Z},instances:{enumerable:gn,value:pa},overrides:{enumerable:gn,value:fr},registry:{enumerable:gn,value:$t},version:{enumerable:gn,value:fD},getChart:{enumerable:gn,value:ug},register:{enumerable:gn,value:(...e)=>{$t.add(...e),zf()}},unregister:{enumerable:gn,value:(...e)=>{$t.remove(...e),zf()}}});function sg(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 yD(e){return F0(e,["outerStart","outerEnd","innerStart","innerEnd"])}function vD(e,t,n,r){const i=yD(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 He(o,0,Math.min(u,l))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:He(i.innerStart,0,s),innerEnd:He(i.innerEnd,0,s)}}function wr(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function yc(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}=vD(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=wr(f,h,s,a);e.arc(L.x,L.y,T,h,_+Ee)}const M=wr(C,_,s,a);if(e.lineTo(M.x,M.y),S>0){const L=wr(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=wr(E,B,s,a);e.arc(L.x,L.y,D,B+Math.PI,x-Ee)}const I=wr(y,x,s,a);if(e.lineTo(I.x,I.y),w>0){const L=wr(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 bD(e,t,n,r,i){const{fullCircles:u,startAngle:s,circumference:a}=t;let o=t.endAngle;if(u){yc(e,t,n,r,s+oe,i);for(let l=0;l<u;++l)e.fill();isNaN(a)||(o=s+a%oe,a%oe===0&&(o+=oe))}return yc(e,t,n,r,o,i),e.fill(),o}function xD(e,t,n){const{x:r,y:i,startAngle:u,pixelMargin:s,fullCircles:a}=t,o=Math.max(t.outerRadius-s,0),l=t.innerRadius+s;let d;for(n&&sg(e,t,u+oe),e.beginPath(),e.arc(r,i,l,u+oe,u,!0),d=0;d<a;++d)e.stroke();for(e.beginPath(),e.arc(r,i,o,u,u+oe),d=0;d<a;++d)e.stroke()}function ED(e,t,n,r,i,u){const{options:s}=t,{borderWidth:a,borderJoinStyle:o}=s,l=s.borderAlign==="inner";!a||(l?(e.lineWidth=a*2,e.lineJoin=o||"round"):(e.lineWidth=a,e.lineJoin=o||"bevel"),t.fullCircles&&xD(e,t,l),l&&sg(e,t,i),yc(e,t,n,r,i,u),e.stroke())}class j0 extends pn{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.getProps(["x","y"],r),{angle:u,distance:s}=_m(i,{x:t,y:n}),{startAngle:a,endAngle:o,innerRadius:l,outerRadius:d,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),g=this.options.spacing/2,b=ee(p,o-a)>=oe||vu(u,a,o),k=aa(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=bD(t,this,a,u,s);ED(t,this,a,u,o,s),t.restore()}}j0.id="arc";j0.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};j0.defaultRoutes={backgroundColor:"backgroundColor"};function ag(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 _D(e,t,n){e.lineTo(n.x,n.y)}function wD(e){return e.stepped?V_:e.tension||e.cubicInterpolationMode==="monotone"?U_:_D}function og(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=i<s&&u<s||i>a&&u>a;return{count:r,start:o,loop:t.loop,ilen:l<o&&!d?r+l-o:l-o}}function DD(e,t,n,r){const{points:i,options:u}=t,{count:s,start:a,loop:o,ilen:l}=og(i,n,r),d=wD(u);let{move:p=!0,reverse:g}=r||{},v,b,k;for(v=0;v<=l;++v)b=i[(a+(g?l-v:v))%s],!b.skip&&(p?(e.moveTo(b.x,b.y),p=!1):d(e,k,b,g,u.stepped),k=b);return o&&(b=i[(a+(g?l:0))%s],d(e,k,b,g,u.stepped)),!!o}function kD(e,t,n,r){const i=t.points,{count:u,start:s,ilen:a}=og(i,n,r),{move:o=!0,reverse:l}=r||{};let d=0,p=0,g,v,b,k,O,x;const _=T=>(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?(D<k?k=D:D>O&&(O=D),d=(p*d+T)/++p):(w(),e.lineTo(T,D),b=S,p=0,k=O=D),x=D}w()}function vc(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?kD:DD}function SD(e){return e.stepped?bw:e.tension||e.cubicInterpolationMode==="monotone"?xw:Gn}function PD(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),ag(e,t.options),e.stroke(i)}function CD(e,t,n,r){const{segments:i,options:u}=t,s=vc(t);for(const a of i)ag(e,u,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const OD=typeof Path2D=="function";function FD(e,t,n,r){OD&&!t.options.segment?PD(e,t,n,r):CD(e,t,n,r)}class Tu 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;dw(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=Nw(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=Cw(this,{property:n,start:i,end:i});if(!s.length)return;const a=[],o=SD(r);let l,d;for(l=0,d=s.length;l<d;++l){const{start:p,end:g}=s[l],v=u[p],b=u[g];if(v===b){a.push(v);continue}const k=Math.abs((i-v[n])/(b[n]-v[n])),O=o(v,b,k,r.stepped);O[n]=t[n],a.push(O)}return a.length===1?a[0]:a}pathSegment(t,n,r){return vc(this)(t,this,n,r)}path(t,n,r){const i=this.segments,u=vc(this);let s=this._loop;n=n||0,r=r||this.points.length-n;for(const a of i)s&=u(t,this,a,{start:n,end:n+r-1});return!!s}draw(t,n,r,i){const u=this.options||{};(this.points||[]).length&&u.borderWidth&&(t.save(),FD(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}Tu.id="line";Tu.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};Tu.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};Tu.descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};function jf(e,t,n,r){const i=e.options,{[n]:u}=e.getProps([n],r);return Math.abs(t-u)<i.radius+i.hitRadius}class Ka extends pn{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.options,{x:u,y:s}=this.getProps(["x","y"],r);return Math.pow(t-u,2)+Math.pow(n-s,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return jf(this,t,"x",n)}inYRange(t,n){return jf(this,t,"y",n)}getCenterPoint(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){const r=this.options;this.skip||r.radius<.1||!bu(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,hc(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}Ka.id="point";Ka.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};Ka.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function lg(e,t){const{x:n,y:r,base:i,width:u,height:s}=e.getProps(["x","y","base","width","height"],t);let a,o,l,d,p;return e.horizontal?(p=s/2,a=Math.min(n,i),o=Math.max(n,i),l=r-p,d=r+p):(p=u/2,a=n-p,o=n+p,l=Math.min(r,i),d=Math.max(r,i)),{left:a,top:l,right:o,bottom:d}}function kn(e,t,n,r){return e?0:He(t,n,r)}function ND(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,u=Lm(r);return{t:kn(i.top,u.top,0,n),r:kn(i.right,u.right,0,t),b:kn(i.bottom,u.bottom,0,n),l:kn(i.left,u.left,0,t)}}function AD(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,u=Wr(i),s=Math.min(t,n),a=e.borderSkipped,o=r||ne(i);return{topLeft:kn(!o||a.top||a.left,u.topLeft,0,s),topRight:kn(!o||a.top||a.right,u.topRight,0,s),bottomLeft:kn(!o||a.bottom||a.left,u.bottomLeft,0,s),bottomRight:kn(!o||a.bottom||a.right,u.bottomRight,0,s)}}function RD(e){const t=lg(e),n=t.right-t.left,r=t.bottom-t.top,i=ND(e,n/2,r/2),u=AD(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:u},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,u.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,u.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,u.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,u.bottomRight-Math.max(i.b,i.r))}}}}function rl(e,t,n,r){const i=t===null,u=n===null,a=e&&!(i&&u)&&lg(e,r);return a&&(i||aa(t,a.left,a.right))&&(u||aa(n,a.top,a.bottom))}function TD(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function MD(e,t){e.rect(t.x,t.y,t.w,t.h)}function il(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,u=(e.x+e.w!==n.x+n.w?t:0)-r,s=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+u,h:e.h+s,radius:e.radius}}class V0 extends pn{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:u,outer:s}=RD(this),a=TD(s.radius)?da:MD;t.save(),(s.w!==u.w||s.h!==u.h)&&(t.beginPath(),a(t,il(s,n,u)),t.clip(),a(t,il(u,-n,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),a(t,il(u,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return rl(this,t,n,r)}inXRange(t,n){return rl(this,t,null,n)}inYRange(t,n){return rl(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:u}=this.getProps(["x","y","base","horizontal"],t);return{x:u?(n+i)/2:n,y:u?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}V0.id="bar";V0.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};V0.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};const Qi={average(e){if(!e.length)return!1;let t,n,r=0,i=0,u=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const a=s.tooltipPosition();r+=a.x,i+=a.y,++u}}return{x:r/u,y:i/u}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,u,s,a;for(u=0,s=e.length;u<s;++u){const o=e[u].element;if(o&&o.hasValue()){const l=o.getCenterPoint(),d=cc(t,l);d<i&&(i=d,a=o)}}if(a){const o=a.tooltipPosition();n=o.x,r=o.y}return{x:n,y:r}}};function Ut(e,t){return t&&(pe(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Qt(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
`)>-1?e.split(`
`):e}function LD(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 Vf(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 BD(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function ID(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 zD(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"),ID(l,e,t,n)&&(l="center"),l}function Uf(e,t,n){const r=n.yAlign||t.yAlign||BD(e,n);return{xAlign:n.xAlign||t.xAlign||zD(e,t,n,r),yAlign:r}}function jD(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function VD(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Wf(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}=Wr(s);let b=jD(t,a);const k=VD(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:He(b,0,r.width-t.width),y:He(k,0,r.height-t.height)}}function ps(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 Hf(e){return Ut([],Qt(e))}function UD(e,t,n){return Wn(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function $f(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}class bc 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 $m(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(u)),u}getContext(){return this.$context||(this.$context=UD(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,Qt(i)),a=Ut(a,Qt(u)),a=Ut(a,Qt(s)),a}getBeforeBody(t,n){return Hf(n.callbacks.beforeBody.apply(this,[t]))}getBody(t,n){const{callbacks:r}=n,i=[];return ue(t,u=>{const s={before:[],lines:[],after:[]},a=$f(r,u);Ut(s.before,Qt(a.beforeLabel.call(this,u))),Ut(s.lines,a.label.call(this,u)),Ut(s.after,Qt(a.afterLabel.call(this,u))),i.push(s)}),i}getAfterBody(t,n){return Hf(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,Qt(i)),a=Ut(a,Qt(u)),a=Ut(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;o<l;++o)a.push(LD(this.chart,n[o]));return t.filter&&(a=a.filter((d,p,g)=>t.filter(d,p,g,r))),t.itemSort&&(a=a.sort((d,p)=>t.itemSort(d,p,r))),ue(a,d=>{const p=$f(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=Qi[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=Vf(this,r),l=Object.assign({},a,o),d=Uf(this.chart,r,l),p=Wf(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}=Wr(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=Go(r.rtl,this.x,this.width);for(t.x=ps(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;o<u;++o)n.fillText(i[o],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+a,o+1===u&&(t.y+=r.titleMarginBottom-a)}}_drawColorBox(t,n,r,i,u){const s=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:o,boxWidth:l,boxPadding:d}=u,p=ct(u.bodyFont),g=ps(this,"left",u),v=i.x(g),b=o<p.lineHeight?(p.lineHeight-o)/2:0,k=n.y+b;if(u.usePointStyle){const O={radius:Math.min(l,o)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},x=i.leftForLtr(v,l)+l/2,_=k+o/2;t.strokeStyle=u.multiKeyBackground,t.fillStyle=u.multiKeyBackground,hc(t,O,x,_),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,hc(t,O,x,_)}else{t.lineWidth=ne(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const O=i.leftForLtr(v,l-d),x=i.leftForLtr(i.xPlus(v,1),l-d-2),_=Wr(s.borderRadius);Object.values(_).some(w=>w!==0)?(t.beginPath(),t.fillStyle=u.multiKeyBackground,da(t,{x:O,y:k,w:l,h:o,radius:_}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),da(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=Go(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=ps(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;T<S;++T){for(x=i[T],_=this.labelTextColors[T],n.fillStyle=_,ue(x.before,k),w=x.lines,a&&w.length&&(this._drawColorBox(n,t,T,b,r),g=Math.max(p.lineHeight,o)),D=0,y=w.length;D<y;++D)k(w[D]),g=p.lineHeight;ue(x.after,k)}v=0,g=p.lineHeight,ue(this.afterBody,k),t.y-=u}drawFooter(t,n,r){const i=this.footer,u=i.length;let s,a;if(u){const o=Go(r.rtl,this.x,this.width);for(t.x=ps(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=o.textAlign(r.footerAlign),n.textBaseline="middle",s=ct(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,a=0;a<u;++a)n.fillText(i[a],o.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:u,yAlign:s}=this,{x:a,y:o}=t,{width:l,height:d}=r,{topLeft:p,topRight:g,bottomLeft:v,bottomRight:b}=Wr(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(a+p,o),s==="top"&&this.drawCaret(t,n,r,i),n.lineTo(a+l-g,o),n.quadraticCurveTo(a+l,o,a+l,o+g),s==="center"&&u==="right"&&this.drawCaret(t,n,r,i),n.lineTo(a+l,o+d-b),n.quadraticCurveTo(a+l,o+d,a+l-b,o+d),s==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(a+v,o+d),n.quadraticCurveTo(a,o+d,a,o+d-v),s==="center"&&u==="left"&&this.drawCaret(t,n,r,i),n.lineTo(a,o+p),n.quadraticCurveTo(a,o,a+p,o),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,u=r&&r.y;if(i||u){const s=Qi[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=Vf(this,t),o=Object.assign({},s,this._size),l=Uf(n,t,o),d=Wf(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),Dw(t,n.textDirection),u.y+=s.top,this.drawTitle(u,t,n),this.drawBody(u,t,n),this.drawFooter(u,t,n),kw(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=!ia(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||!ia(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=Qi[u.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}}bc.positioners=Qi;var WD={id:"tooltip",_element:bc,positioners:Qi,afterInit(e,t,n){n&&(e.tooltip=new bc({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.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Xt,beforeBody:Xt,beforeLabel:Xt,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return ie(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Xt,afterBody:Xt,beforeFooter:Xt,footer:Xt,afterFooter:Xt}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const HD=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function $D(e,t,n,r){const i=e.indexOf(t);if(i===-1)return HD(e,t,n,r);const u=e.lastIndexOf(t);return i!==u?n:i}const KD=(e,t)=>e===null?null:He(Math.round(e),0,t);class ma extends mr{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:$D(r,t,ee(n,t),this._addedLabels),KD(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&&t<n.length?n[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}ma.id="category";ma.defaults={ticks:{callback:ma.prototype.getLabelForValue}};function YD(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=qd((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=qd(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&&a_((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,qi(m,Math.round(m),D/1e3)?m=Math.round(m):m=Math.ceil(m));const h=Math.max(Xd(D),Xd(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}),y<s&&E++,qi(Math.round((y+E*D)*S)/S,s,Kf(s,T,e))&&E++):y<s&&E++);E<m;++E)n.push({value:Math.round((y+E*D)*S)/S});return _&&g&&f!==a?n.length&&qi(n[n.length-1].value,a,Kf(a,T,e))?n[n.length-1].value=a:n.push({value:a}):(!_||f===a)&&n.push({value:f}),n}function Kf(e,t,{horizontal:n,minRotation:r}){const i=Tt(r),u=(n?Math.sin(i):Math.cos(i))||.001,s=.75*t*(""+e).length;return Math.min(t/u,s)}class ga extends mr{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return ie(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:u}=this;const s=o=>i=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=YD(i,u);return t.bounds==="ticks"&&Em(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 Fu(t,this.chart.options.locale,this.options.ticks.format)}}class U0 extends ga{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Be(t)?t:0,this.max=Be(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}}U0.id="linear";U0.defaults={ticks:{callback:$a.formatters.numeric}};function Yf(e){return e/Math.pow(10,Math.floor(Et(e)))===1}function qD(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:Yf(u)}),++a,a===10&&(a=1,++s,o=s>=0?1:o),u=Math.round(a*Math.pow(10,s)*o)/o;while(s<n||s===n&&a<r);const l=vt(e.max,u);return i.push({value:l,major:Yf(u)}),i}class cg extends mr{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=ga.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return Be(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Be(t)?Math.max(0,t):null,this.max=Be(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=qD(n,this);return t.bounds==="ticks"&&Em(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":Fu(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)}}cg.id="logarithmic";cg.defaults={ticks:{callback:$a.formatters.logarithmic,major:{enabled:!0}}};function xc(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 XD(e,t,n){return n=pe(n)?n:[n],{w:z_(e,t.string,n),h:n.length*t.lineHeight}}function qf(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function GD(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;o<u;o++){const l=s.setContext(e.getPointLabelContext(o));i[o]=l.padding;const d=e.getPointPosition(o,e.drawingArea+i[o],a),p=ct(l.font),g=XD(e.ctx,p,e._pointLabels[o]);r[o]=g;const v=At(e.getIndexAngle(o)+a),b=Math.round(k0(v)),k=qf(b,d.x,g.w,0,180),O=qf(b,d.y,g.h,90,270);QD(n,t,v,k,O)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=JD(e,r,i)}function QD(e,t,n,r,i){const u=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let a=0,o=0;r.start<t.l?(a=(t.l-r.start)/u,e.l=Math.min(e.l,t.l-a)):r.end>t.r&&(a=(r.end-t.r)/u,e.r=Math.max(e.r,t.r+a)),i.start<t.t?(o=(t.t-i.start)/s,e.t=Math.min(e.t,t.t-o)):i.end>t.b&&(o=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+o))}function JD(e,t,n){const r=[],i=e._pointLabels.length,u=e.options,s=xc(u)/2,a=e.drawingArea,o=u.pointLabels.centerPointLabels?_e/i:0;for(let l=0;l<i;l++){const d=e.getPointPosition(l,a+s+n[l],o),p=Math.round(k0(At(d.angle+Ee))),g=t[l],v=tk(d.y,g.h,p),b=ZD(p),k=ek(d.x,g.w,b);r.push({x:d.x,y:v,textAlign:b,left:k,top:v,right:k+g.w,bottom:v+g.h})}return r}function ZD(e){return e===0||e===180?"center":e<180?"left":"right"}function ek(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function tk(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function nk(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=Wr(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(),da(n,{x,y:_,w,h:T,radius:k}),n.fill()):n.fillRect(x,_,w,T)}ca(n,e._pointLabels[i],a,o+s.lineHeight/2,s,{color:u.color,textAlign:l,textBaseline:"middle"})}}function dg(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<r;s++)u=e.getPointPosition(s,t),i.lineTo(u.x,u.y)}}function rk(e,t,n,r){const i=e.ctx,u=t.circular,{color:s,lineWidth:a}=t;!u&&!r||!s||!a||n<0||(i.save(),i.strokeStyle=s,i.lineWidth=a,i.setLineDash(t.borderDash),i.lineDashOffset=t.borderDashOffset,i.beginPath(),dg(e,n,u,r),i.closePath(),i.stroke(),i.restore())}function ik(e,t,n){return Wn(e,{label:n,index:t,type:"pointLabel"})}class Ya extends ga{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Ct(xc(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=Be(t)&&!isNaN(t)?t:0,this.max=Be(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/xc(this.options))}generateTickLabels(t){ga.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{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?GD(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<n.length){const r=n[t];return ik(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-Ee+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:u}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:u}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),dg(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i}=n,u=this._pointLabels.length;let s,a,o;if(n.pointLabels.display&&nk(this,u),i.display&&this.ticks.forEach((l,d)=>{if(d!==0){a=this.getDistanceFromCenterForValue(l.value);const p=i.setContext(this.getContext(d-1));rk(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)}ca(t,a.label,0,-u,d,{color:l.color})}),t.restore()}drawTitle(){}}Ya.id="radialLinear";Ya.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:$a.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}};Ya.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};Ya.descriptors={angleLines:{_fallback:"grid"}};const qa={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}},tt=Object.keys(qa);function uk(e,t){return e-t}function Xf(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)),Be(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(Zr(u)||u===!0)?n.startOf(s,"isoWeek",u):n.startOf(s,i)),+s)}function Gf(e,t,n,r){const i=tt.length;for(let u=tt.indexOf(e);u<i-1;++u){const s=qa[tt[u]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(a*s.size))<=r)return tt[u]}return tt[i-1]}function sk(e,t,n,r,i){for(let u=tt.length-1;u>=tt.indexOf(n);u--){const s=tt[u];if(qa[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return tt[n?tt.indexOf(n):0]}function ak(e){for(let t=tt.indexOf(e)+1,n=tt.length;t<n;++t)if(qa[tt[t]].common)return tt[t]}function Qf(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=S0(n,t),u=n[r]>=t?n[r]:n[i];e[u]=!0}}function ok(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 Jf(e,t,n){const r=[],i={},u=t.length;let s,a;for(s=0;s<u;++s)a=t[s],i[a]=s,r.push({value:a,major:!1});return u===0||!n?r:ok(e,r,i,n)}class Xa extends mr{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n){const r=t.time||(t.time={}),i=this._adapter=new S2._date(t.adapters.date);i.init(n),Yi(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Xf(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:u,minDefined:s,maxDefined:a}=this.getUserBounds();function o(l){!s&&!isNaN(l.min)&&(i=Math.min(i,l.min)),!a&&!isNaN(l.max)&&(u=Math.max(u,l.max))}(!s||!a)&&(o(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&o(this.getMinMax(!1))),i=Be(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),u=Be(u)&&!isNaN(u)?u:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,u-1),this.max=Math.max(i+1,u)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const u=this.min,s=this.max,a=d_(i,u,s);return this._unit=n.unit||(r.autoSkip?Gf(n.minUnit,this.min,this.max,this._getLabelCapacity(u)):sk(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:ak(this._unit),this.initOffsets(i),t.reverse&&a.reverse(),Jf(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+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=He(n,0,s),r=He(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||Gf(u.minUnit,n,r,this._getLabelCapacity(n)),a=ee(u.stepSize,1),o=s==="week"?u.isoWeekday:!1,l=Zr(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;g<r;g=+t.add(g,a,s),v++)Qf(d,g,b);return(g===r||i.bounds==="ticks"||v===1)&&Qf(d,g,b),Object.keys(d).sort((k,O)=>k-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;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=Tt(this.isHorizontal()?n.maxRotation:n.minRotation),u=Math.cos(i),s=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:r*u+a*s,h:r*s+a*u}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,u=this._tickFormatFunction(t,0,Jf(this,[t],this._majorUnit),i),s=this._getLabelSize(u),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?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<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(Xf(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Dm(t.sort(uk))}}Xa.id="time";Xa.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};function ms(e,t,n){let r=0,i=e.length-1,u,s,a,o;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=tr(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}=tr(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 fg extends Xa{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=ms(n,this.min),this._tableRange=ms(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<a;++s)l=t[s],l>=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;s<a;++s)d=i[s+1],o=i[s-1],l=i[s],Math.round((d+o)/2)!==l&&u.push({time:l,pos:s/(a-1)});return u}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(ms(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return ms(this._table,r*this._tableRange+this._minPos,!0)}}fg.id="timeseries";fg.defaults=Xa.defaults;const hg="label";function Zf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function lk(e,t){Object.assign(e.options,t)}function pg(e,t){e.labels=t}function mg(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:hg;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 ck(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hg;const n={labels:[],datasets:[]};return pg(n,e.labels),mg(n,e.datasets,t),n}function dk(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 Ru(v.current,{type:s,data:ck(a,u),options:o&&{...o},plugins:l}),Zf(t,b.current))},O=()=>{Zf(t,null),b.current&&(b.current.destroy(),b.current=null)};return j.exports.useEffect(()=>{!i&&b.current&&o&&lk(b.current,o)},[i,o]),j.exports.useEffect(()=>{!i&&b.current&&pg(b.current.config.data,a.labels)},[i,a.labels]),j.exports.useEffect(()=>{!i&&b.current&&a.datasets&&mg(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 fk=j.exports.forwardRef(dk);function hk(e,t){return Ru.register(t),j.exports.forwardRef((n,r)=>c(fk,{...Object.assign({},n,{ref:r,type:e})}))}const pk=hk("line",Ha),W0=e=>e.split("-").reverse().join("."),mk=e=>e.split(" ")[0].split("-").reverse().join(".");Ru.register(Tu,Ka,U0,WD,ma);const gk=({activeRow:e,tabIndex:t})=>{const[n,r]=j.exports.useState();j.exports.useEffect(()=>{t&&new Oe(`https://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=>mk(a.date)).reverse():[""],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(pk,{data:u,options:{maintainAspectRatio:!1,radius:5,hitRadius:30,hoverRadius:7,scales:{x:{grid:{display:!1}},y:{ticks:{callback:a=>a},grid:{borderDash:[10]}}}}})})},yk=({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 Oe("https://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})},Jr())):null}),P("div",{className:"chart-data",children:[c(GE,{activeRow:r,setActiveRow:i,tabIndex:a,lang:e}),c("div",{className:"line-chart-wrapper",children:c(gk,{activeRow:r,tabIndex:a})})]})]})})})},vk=({lang:e,setPostId:t})=>{const[n,r]=j.exports.useState(),[i,u]=j.exports.useState();return j.exports.useEffect(()=>{new Oe("https://tmex.gov.tm:8765/api/video",i,u).get({"X-Localization":e}),new Oe("https://tmex.gov.tm:8765/api/news",n,r).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),P("main",{className:"home-main",children:[c(nb,{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:qn,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:qn,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:qn,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:qn,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:qn,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:qn,alt:"link",className:"about-link-text"}),c("h3",{className:"about-link-text",children:"View tariffs and fees"})]})]})]}):null,c("div",{className:"about-right",children:i?c(Q3,{videoUrl:i.data.video,placeholder:i.data.image}):null})]})})}),c(yk,{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((s,a)=>a<=2?c(w3,{title:s.title,shortDes:s.short_description,date:W0(s.date),image:s.image,id:s.id,setPostId:t,lang:e},s.id):null):""})]})})})]})},bk=({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]})})),xk=({lang:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{new Oe("https://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($e,{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($e,{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($e,{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(Ba,{title:r.title,link:r.file},r.id):null):""})})]})]})})})},Ek=({lang:e,id:t,title:n})=>{const[r,i]=j.exports.useState();return j.exports.useEffect(()=>{new Oe(`https://tmex.gov.tm:8765/api/documents?category=${t}`,r,i).get({"X-Localization":e}),window.scrollTo(0,0)},[e]),P("div",{className:"documents-wrapper",children:[c("h2",{className:"sub-page-file-title",children:n}),c("div",{className:"documents-links-wrapper",children:r?r.data.map(u=>u.page==="\u041D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0431\u0430\u0437\u0430"&&u.title!="-"?c(Ba,{title:u.title,link:u.file},Jr()):null):""})]})},_k=({lang:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{new Oe("https://tmex.gov.tm:8765/api/document/categories",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($e,{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($e,{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($e,{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}),t?t.data.map(r=>r.title!="-"?c(Ek,{id:r.id,lang:e,title:r.title},Jr()):null):null]})]})})})},wk=({lang:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{new Oe("https://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($e,{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($e,{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($e,{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(Ba,{title:r.title,link:r.file},r.id):null):""})})]})]})})})},Dk=({lang:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{new Oe("https://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($e,{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($e,{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($e,{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(Ba,{title:r.title,link:r.file},r.id):null):""})})]})]})})})};var gg={};function kk(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(gg,"__esModule",{value:!0});var Jt=j.exports;function Sk(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Ci=Sk(Jt);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var ya=function(){return ya=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},ya.apply(this,arguments)};kk(`.marquee-container {
overflow-x: hidden !important;
display: flex !important;
flex-direction: row !important;
position: relative;
width: 100%;
}
.marquee-container:hover div {
animation-play-state: var(--pause-on-hover);
}
.marquee-container:active div {
animation-play-state: var(--pause-on-click);
}
.overlay {
position: absolute;
width: 100%;
height: 100%;
}
.overlay::before, .overlay::after {
background: linear-gradient(to right, var(--gradient-color));
content: "";
height: 100%;
position: absolute;
width: var(--gradient-width);
z-index: 2;
}
.overlay::after {
right: 0;
top: 0;
transform: rotateZ(180deg);
}
.overlay::before {
left: 0;
top: 0;
}
.marquee {
flex: 0 0 auto;
min-width: 100%;
z-index: 1;
display: flex;
flex-direction: row;
align-items: center;
animation: scroll var(--duration) linear var(--delay) var(--iteration-count);
animation-play-state: var(--play);
animation-delay: var(--delay);
animation-direction: var(--direction);
}
@keyframes scroll {
0% {
transform: translateX(0%);
}
100% {
transform: translateX(-100%);
}
}`);var Pk=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=Jt.useState(0),L=I[0],A=I[1],R=Jt.useState(0),N=R[0],z=R[1],V=Jt.useState(!1),W=V[0],q=V[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=N<L?L/_:N/_;return Ci.default.createElement(Jt.Fragment,null,W?Ci.default.createElement("div",{ref:X,style:ya(ya({},s),(t={},t["--pause-on-hover"]=!d||g?"paused":"running",t["--pause-on-click"]=!d||g&&!b||b?"paused":"running",t)),className:o+" marquee-container"},f&&Ci.default.createElement("div",{style:(n={},n["--gradient-color"]=G+", 1), "+G+", 0)",n["--gradient-width"]=typeof C=="number"?C+"px":C,n),className:"overlay"}),Ci.default.createElement("div",{ref:Q,style:(r={},r["--play"]=d?"running":"paused",r["--direction"]=O==="left"?"normal":"reverse",r["--duration"]=we+"s",r["--delay"]=T+"s",r["--iteration-count"]=S?""+S:"infinite",r),className:"marquee",onAnimationIteration:F,onAnimationEnd:B},M),Ci.default.createElement("div",{style:(i={},i["--play"]=d?"running":"paused",i["--direction"]=O==="left"?"normal":"reverse",i["--duration"]=we+"s",i["--delay"]=T+"s",i["--iteration-count"]=S?""+S:"infinite",i),className:"marquee","aria-hidden":"true"},M)):null)},Ck=gg.default=Pk;const Ok=({title:e,change:t,price:n,oldPrice:r,currency:i})=>P("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?ym:vm})}),c("span",{className:`ticker-status-title ${n>=r?"green":"red"}`,children:t})]})]})]}),Fk=30,Nk=()=>{const[e,t]=j.exports.useState();return j.exports.useEffect(()=>{new Oe("https://tmex.gov.tm:8765/api/tradings",e,t).get()},[]),c(Ck,{className:"ticker",gradient:!1,speed:Fk,children:c("div",{className:"ticker-wrapper",children:e?e.data.map(n=>c(Ok,{title:n.title,change:n.price_change,price:n.price,oldPrice:n.old_price,currency:n.currency},n.id)):""})})},eh="/assets/phone.827f98ca.svg",Ak="/assets/fax.75231e49.svg",Rk="/assets/mail.ecbe6887.svg",Tk=({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:eh,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:Ak,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:Rk,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:eh,alt:"phone"})}),c("h4",{className:"contacts-card-pos-contact-title",children:i})]})]}):null]})]}),Mk=({lang:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{new Oe("https://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(Tk,{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})]})})})},Lk=({lang:e,setPostId:t,postsData:n,setPostsData:r})=>{const[i,u]=j.exports.useState("https://tmex.gov.tm:8765/api/news");return j.exports.useEffect(()=>{new Oe(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(w3,{title:s.title,shortDes:s.short_description,description:s.description,date:W0(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(od,{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(od,{className:"arr-pagination-svg"})})]}):null]})})})},Bk=({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})]}),Ik=({lang:e,setPostId:t,postsData:n,setPostsData:r})=>{const{id:i}=B1(),u=j.exports.useRef(!0);return j.exports.useEffect(()=>{n||new Oe("https://tmex.gov.tm:8765/api/news",n,r).get({"X-localization":e})},[n]),j.exports.useEffect(()=>{if(u.current){u.current=!1;return}new Oe("https://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(Bk,{title:s.title,setPostId:t,id:s.id,date:W0(s.date).split(" ")[0].replace("-",".").replace("-",".")},s.id):null):null})]})})]})})},Dr=({text:e,active:t,onClick:n})=>c("div",{className:`tab-dark ${t?"active-tab":null}`,onClick:n,children:c("span",{children:e})}),th=({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," "]})]}),zk=({lang:e})=>{const[t,n]=j.exports.useState(1),[r,i]=j.exports.useState();return j.exports.useEffect(()=>{new Oe("https://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($e,{children:[c(Dr,{text:"\u0414\u043B\u044F \u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u043E\u0432",active:t===1,onClick:()=>n(1)}),c(Dr,{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($e,{children:[c(Dr,{text:"\xDDerli \xFDa\u015Fa\xFDjylar \xFC\xE7in",active:t===1,onClick:()=>n(1)}),c(Dr,{text:"\xDDerli bolmadyk \xFDa\u015Fa\xFDjylar \xFC\xE7in",active:t===2,onClick:()=>n(2)})]}):e==="en"?P($e,{children:[c(Dr,{text:"For residents",active:t===1,onClick:()=>n(1)}),c(Dr,{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(th,{title:u.title,price:u.prices.map(s=>s.price+" ")},Jr()):null):null}):null,t===2?c("div",{className:"tarif-table",children:r?r.data.map(u=>u.type==="non_resident"&&u.title!="-"?c(th,{title:u.title,price:u.prices.map(s=>s.price+" ")},Jr()):null):null}):null]})})})},nh=({title:e,onClick:t,active:n})=>c("h2",{className:`multimedia-tab ${n?"m-tab-active":null}`,onClick:t,children:e}),jk=({img:e})=>c("div",{className:"gallery-item",children:c("img",{src:e,alt:"image"})}),Vk=({imageTabIndex:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{e&&new Oe(`https://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(jk,{img:r.media},r.id)):null})})},Uk=({videoTabIndex:e})=>{const[t,n]=j.exports.useState();return j.exports.useEffect(()=>{e&&new Oe(`https://tmex.gov.tm:8765/api/medias/${e}`,t,n).get()},[e]),c("div",{className:"videos-wrapper",children:t?t.data.map(r=>c(Q3,{videoUrl:r.media},r.id)):null})},Wk=({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 Oe("https://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(nh,{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(nh,{title:v.title,active:u===b,onClick:()=>g(b,v.id)},v.id):null):null})]}),u?c(Uk,{videoTabIndex:a}):c(Vk,{imageTabIndex:r})]})]})})})};class Hk{getLang(){return localStorage.getItem("lastLanguage")?localStorage.getItem("lastLanguage"):"ru"}saveLang(t){localStorage.setItem("lastLanguage",t)}}const $k=()=>{const e=new Hk,[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(Nk,{}),c(eb,{lang:t,setLang:n}),P(K1,{children:[c(yt,{index:!0,element:c(vk,{lang:t,setPostId:i})}),c(yt,{path:"/gtsbt",element:c(bk,{lang:t})}),c(yt,{path:"/norm",element:c(_k,{lang:t})}),c(yt,{path:"/news",element:c(Lk,{lang:t,setPostId:i,postId:r,postsData:u,setPostsData:s})}),c(yt,{path:"/multimedia",element:c(Wk,{lang:t})}),c(yt,{path:"/contacts",element:c(Mk,{lang:t})}),c(yt,{path:"/trade",element:c(wk,{lang:t})}),c(yt,{path:"/fin",element:c(xk,{lang:t})}),c(yt,{path:"/register",element:c(Dk,{lang:t})}),c(yt,{path:"/tarif",element:c(zk,{lang:t})}),c(yt,{path:"/post/:id",element:c(Ik,{lang:t,setPostId:i,postsData:u,setPostsData:s})})]}),c(tb,{lang:t})]})},Kk=document.getElementById("root"),Yk=h3(Kk);Yk.render(c(j.exports.StrictMode,{children:c(Q1,{children:c($k,{})})}));