exchange-client/dist/assets/index.d345389b.js

160 lines
556 KiB
JavaScript

var yg=Object.defineProperty;var vg=(t,e,n)=>e in t?yg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var pr=(t,e,n)=>(vg(t,typeof e!="symbol"?e+"":e,n),n);function _g(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const u in r)if(u!=="default"&&!(u in t)){const i=Object.getOwnPropertyDescriptor(r,u);i&&Object.defineProperty(t,u,i.get?i:{enumerable:!0,get:()=>r[u]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const i of u)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(u){const i={};return u.integrity&&(i.integrity=u.integrity),u.referrerpolicy&&(i.referrerPolicy=u.referrerpolicy),u.crossorigin==="use-credentials"?i.credentials="include":u.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(u){if(u.ep)return;u.ep=!0;const i=n(u);fetch(u.href,i)}})();var Ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Eg(t){var e=t.default;if(typeof e=="function"){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var u=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,u.get?u:{enumerable:!0,get:function(){return t[r]}})}),n}var j={exports:{}},Z={};/**
* @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 vi=Symbol.for("react.element"),bg=Symbol.for("react.portal"),wg=Symbol.for("react.fragment"),xg=Symbol.for("react.strict_mode"),Pg=Symbol.for("react.profiler"),Sg=Symbol.for("react.provider"),Dg=Symbol.for("react.context"),Og=Symbol.for("react.forward_ref"),Cg=Symbol.for("react.suspense"),kg=Symbol.for("react.memo"),Ag=Symbol.for("react.lazy"),L0=Symbol.iterator;function Rg(t){return t===null||typeof t!="object"?null:(t=L0&&t[L0]||t["@@iterator"],typeof t=="function"?t:null)}var Xd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gd=Object.assign,Qd={};function Qr(t,e,n){this.props=t,this.context=e,this.refs=Qd,this.updater=n||Xd}Qr.prototype.isReactComponent={};Qr.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Qr.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Zd(){}Zd.prototype=Qr.prototype;function pc(t,e,n){this.props=t,this.context=e,this.refs=Qd,this.updater=n||Xd}var mc=pc.prototype=new Zd;mc.constructor=pc;Gd(mc,Qr.prototype);mc.isPureReactComponent=!0;var B0=Array.isArray,Jd=Object.prototype.hasOwnProperty,gc={current:null},eh={key:!0,ref:!0,__self:!0,__source:!0};function th(t,e,n){var r,u={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)Jd.call(e,r)&&!eh.hasOwnProperty(r)&&(u[r]=e[r]);var s=arguments.length-2;if(s===1)u.children=n;else if(1<s){for(var a=Array(s),l=0;l<s;l++)a[l]=arguments[l+2];u.children=a}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)u[r]===void 0&&(u[r]=s[r]);return{$$typeof:vi,type:t,key:i,ref:o,props:u,_owner:gc.current}}function Mg(t,e){return{$$typeof:vi,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function yc(t){return typeof t=="object"&&t!==null&&t.$$typeof===vi}function Ng(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var I0=/\/+/g;function Ys(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Ng(""+t.key):e.toString(36)}function ho(t,e,n,r,u){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case vi:case bg:o=!0}}if(o)return o=t,u=u(o),t=r===""?"."+Ys(o,0):r,B0(u)?(n="",t!=null&&(n=t.replace(I0,"$&/")+"/"),ho(u,e,n,"",function(l){return l})):u!=null&&(yc(u)&&(u=Mg(u,n+(!u.key||o&&o.key===u.key?"":(""+u.key).replace(I0,"$&/")+"/")+t)),e.push(u)),1;if(o=0,r=r===""?".":r+":",B0(t))for(var s=0;s<t.length;s++){i=t[s];var a=r+Ys(i,s);o+=ho(i,e,n,a,u)}else if(a=Rg(t),typeof a=="function")for(t=a.call(t),s=0;!(i=t.next()).done;)i=i.value,a=r+Ys(i,s++),o+=ho(i,e,n,a,u);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function Li(t,e,n){if(t==null)return t;var r=[],u=0;return ho(t,r,"","",function(i){return e.call(n,i,u++)}),r}function Tg(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Ge={current:null},po={transition:null},Fg={ReactCurrentDispatcher:Ge,ReactCurrentBatchConfig:po,ReactCurrentOwner:gc};Z.Children={map:Li,forEach:function(t,e,n){Li(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Li(t,function(){e++}),e},toArray:function(t){return Li(t,function(e){return e})||[]},only:function(t){if(!yc(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Z.Component=Qr;Z.Fragment=wg;Z.Profiler=Pg;Z.PureComponent=pc;Z.StrictMode=xg;Z.Suspense=Cg;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fg;Z.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=Gd({},t.props),u=t.key,i=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,o=gc.current),e.key!==void 0&&(u=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(a in e)Jd.call(e,a)&&!eh.hasOwnProperty(a)&&(r[a]=e[a]===void 0&&s!==void 0?s[a]:e[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var l=0;l<a;l++)s[l]=arguments[l+2];r.children=s}return{$$typeof:vi,type:t.type,key:u,ref:i,props:r,_owner:o}};Z.createContext=function(t){return t={$$typeof:Dg,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:Sg,_context:t},t.Consumer=t};Z.createElement=th;Z.createFactory=function(t){var e=th.bind(null,t);return e.type=t,e};Z.createRef=function(){return{current:null}};Z.forwardRef=function(t){return{$$typeof:Og,render:t}};Z.isValidElement=yc;Z.lazy=function(t){return{$$typeof:Ag,_payload:{_status:-1,_result:t},_init:Tg}};Z.memo=function(t,e){return{$$typeof:kg,type:t,compare:e===void 0?null:e}};Z.startTransition=function(t){var e=po.transition;po.transition={};try{t()}finally{po.transition=e}};Z.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Z.useCallback=function(t,e){return Ge.current.useCallback(t,e)};Z.useContext=function(t){return Ge.current.useContext(t)};Z.useDebugValue=function(){};Z.useDeferredValue=function(t){return Ge.current.useDeferredValue(t)};Z.useEffect=function(t,e){return Ge.current.useEffect(t,e)};Z.useId=function(){return Ge.current.useId()};Z.useImperativeHandle=function(t,e,n){return Ge.current.useImperativeHandle(t,e,n)};Z.useInsertionEffect=function(t,e){return Ge.current.useInsertionEffect(t,e)};Z.useLayoutEffect=function(t,e){return Ge.current.useLayoutEffect(t,e)};Z.useMemo=function(t,e){return Ge.current.useMemo(t,e)};Z.useReducer=function(t,e,n){return Ge.current.useReducer(t,e,n)};Z.useRef=function(t){return Ge.current.useRef(t)};Z.useState=function(t){return Ge.current.useState(t)};Z.useSyncExternalStore=function(t,e,n){return Ge.current.useSyncExternalStore(t,e,n)};Z.useTransition=function(){return Ge.current.useTransition()};Z.version="18.2.0";(function(t){t.exports=Z})(j);const Lg=qd(j.exports),Ja=_g({__proto__:null,default:Lg},[j.exports]);var nh={exports:{}},dt={},rh={exports:{}},uh={};/**
* @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(t){function e(R,M){var A=R.length;R.push(M);e:for(;0<A;){var I=A-1>>>1,V=R[I];if(0<u(V,M))R[I]=M,R[A]=V,A=I;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var M=R[0],A=R.pop();if(A!==M){R[0]=A;e:for(var I=0,V=R.length,W=V>>>1;I<W;){var Y=2*(I+1)-1,q=R[Y],G=Y+1,X=R[G];if(0>u(q,A))G<V&&0>u(X,q)?(R[I]=X,R[G]=A,I=G):(R[I]=q,R[Y]=A,I=Y);else if(G<V&&0>u(X,A))R[I]=X,R[G]=A,I=G;else break e}}return M}function u(R,M){var A=R.sortIndex-M.sortIndex;return A!==0?A:R.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var a=[],l=[],c=1,h=null,m=3,y=!1,v=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(R){for(var M=n(l);M!==null;){if(M.callback===null)r(l);else if(M.startTime<=R)r(l),M.sortIndex=M.expirationTime,e(a,M);else break;M=n(l)}}function N(R){if(S=!1,x(R),!v)if(n(a)!==null)v=!0,B(P);else{var M=n(l);M!==null&&F(N,M.startTime-R)}}function P(R,M){v=!1,S&&(S=!1,E(f),f=-1),y=!0;var A=m;try{for(x(M),h=n(a);h!==null&&(!(h.expirationTime>M)||R&&!b());){var I=h.callback;if(typeof I=="function"){h.callback=null,m=h.priorityLevel;var V=I(h.expirationTime<=M);M=t.unstable_now(),typeof V=="function"?h.callback=V:h===n(a)&&r(a),x(M)}else r(a);h=n(a)}if(h!==null)var W=!0;else{var Y=n(l);Y!==null&&F(N,Y.startTime-M),W=!1}return W}finally{h=null,m=A,y=!1}}var D=!1,g=null,f=-1,p=5,d=-1;function b(){return!(t.unstable_now()-d<p)}function O(){if(g!==null){var R=t.unstable_now();d=R;var M=!0;try{M=g(!0,R)}finally{M?L():(D=!1,g=null)}}else D=!1}var L;if(typeof w=="function")L=function(){w(O)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,T=k.port2;k.port1.onmessage=O,L=function(){T.postMessage(null)}}else L=function(){C(O,0)};function B(R){g=R,D||(D=!0,L())}function F(R,M){f=C(function(){R(t.unstable_now())},M)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(R){R.callback=null},t.unstable_continueExecution=function(){v||y||(v=!0,B(P))},t.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):p=0<R?Math.floor(1e3/R):5},t.unstable_getCurrentPriorityLevel=function(){return m},t.unstable_getFirstCallbackNode=function(){return n(a)},t.unstable_next=function(R){switch(m){case 1:case 2:case 3:var M=3;break;default:M=m}var A=m;m=M;try{return R()}finally{m=A}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(R,M){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var A=m;m=R;try{return M()}finally{m=A}},t.unstable_scheduleCallback=function(R,M,A){var I=t.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?I+A:I):A=I,R){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=A+V,R={id:c++,callback:M,priorityLevel:R,startTime:A,expirationTime:V,sortIndex:-1},A>I?(R.sortIndex=A,e(l,R),n(a)===null&&R===n(l)&&(S?(E(f),f=-1):S=!0,F(N,A-I))):(R.sortIndex=V,e(a,R),v||y||(v=!0,B(P))),R},t.unstable_shouldYield=b,t.unstable_wrapCallback=function(R){var M=m;return function(){var A=m;m=M;try{return R.apply(this,arguments)}finally{m=A}}}})(uh);(function(t){t.exports=uh})(rh);/**
* @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 ih=j.exports,ct=rh.exports;function H(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var oh=new Set,qu={};function cr(t,e){jr(t,e),jr(t+"Capture",e)}function jr(t,e){for(qu[t]=e,t=0;t<e.length;t++)oh.add(e[t])}var un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),el=Object.prototype.hasOwnProperty,Bg=/^[: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]*$/,z0={},j0={};function Ig(t){return el.call(j0,t)?!0:el.call(z0,t)?!1:Bg.test(t)?j0[t]=!0:(z0[t]=!0,!1)}function zg(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function jg(t,e,n,r){if(e===null||typeof e>"u"||zg(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Qe(t,e,n,r,u,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=u,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Fe[t]=new Qe(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Fe[e]=new Qe(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Fe[t]=new Qe(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Fe[t]=new Qe(t,2,!1,t,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(t){Fe[t]=new Qe(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Fe[t]=new Qe(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Fe[t]=new Qe(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Fe[t]=new Qe(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Fe[t]=new Qe(t,5,!1,t.toLowerCase(),null,!1,!1)});var vc=/[\-:]([a-z])/g;function _c(t){return t[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(t){var e=t.replace(vc,_c);Fe[e]=new Qe(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(vc,_c);Fe[e]=new Qe(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(vc,_c);Fe[e]=new Qe(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Fe[t]=new Qe(t,1,!1,t.toLowerCase(),null,!1,!1)});Fe.xlinkHref=new Qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Fe[t]=new Qe(t,1,!1,t.toLowerCase(),null,!0,!0)});function Ec(t,e,n,r){var u=Fe.hasOwnProperty(e)?Fe[e]:null;(u!==null?u.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(jg(e,n,u,r)&&(n=null),r||u===null?Ig(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):u.mustUseProperty?t[u.propertyName]=n===null?u.type===3?!1:"":n:(e=u.attributeName,r=u.attributeNamespace,n===null?t.removeAttribute(e):(u=u.type,n=u===3||u===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var ln=ih.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Bi=Symbol.for("react.element"),br=Symbol.for("react.portal"),wr=Symbol.for("react.fragment"),bc=Symbol.for("react.strict_mode"),tl=Symbol.for("react.profiler"),sh=Symbol.for("react.provider"),ah=Symbol.for("react.context"),wc=Symbol.for("react.forward_ref"),nl=Symbol.for("react.suspense"),rl=Symbol.for("react.suspense_list"),xc=Symbol.for("react.memo"),pn=Symbol.for("react.lazy"),lh=Symbol.for("react.offscreen"),V0=Symbol.iterator;function iu(t){return t===null||typeof t!="object"?null:(t=V0&&t[V0]||t["@@iterator"],typeof t=="function"?t:null)}var ye=Object.assign,qs;function Pu(t){if(qs===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);qs=e&&e[1]||""}return`
`+qs+t}var Xs=!1;function Gs(t,e){if(!t||Xs)return"";Xs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(l){var r=l}Reflect.construct(t,[],e)}else{try{e.call()}catch(l){r=l}t.call(e.prototype)}else{try{throw Error()}catch(l){r=l}t()}}catch(l){if(l&&r&&typeof l.stack=="string"){for(var u=l.stack.split(`
`),i=r.stack.split(`
`),o=u.length-1,s=i.length-1;1<=o&&0<=s&&u[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(u[o]!==i[s]){if(o!==1||s!==1)do if(o--,s--,0>s||u[o]!==i[s]){var a=`
`+u[o].replace(" at new "," at ");return t.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",t.displayName)),a}while(1<=o&&0<=s);break}}}finally{Xs=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Pu(t):""}function Vg(t){switch(t.tag){case 5:return Pu(t.type);case 16:return Pu("Lazy");case 13:return Pu("Suspense");case 19:return Pu("SuspenseList");case 0:case 2:case 15:return t=Gs(t.type,!1),t;case 11:return t=Gs(t.type.render,!1),t;case 1:return t=Gs(t.type,!0),t;default:return""}}function ul(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case wr:return"Fragment";case br:return"Portal";case tl:return"Profiler";case bc:return"StrictMode";case nl:return"Suspense";case rl:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case ah:return(t.displayName||"Context")+".Consumer";case sh:return(t._context.displayName||"Context")+".Provider";case wc:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case xc:return e=t.displayName||null,e!==null?e:ul(t.type)||"Memo";case pn:e=t._payload,t=t._init;try{return ul(t(e))}catch{}}return null}function Ug(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ul(e);case 8:return e===bc?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Tn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ch(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Wg(t){var e=ch(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ii(t){t._valueTracker||(t._valueTracker=Wg(t))}function fh(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=ch(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function ko(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function il(t,e){var n=e.checked;return ye({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:t._wrapperState.initialChecked})}function U0(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Tn(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function dh(t,e){e=e.checked,e!=null&&Ec(t,"checked",e,!1)}function ol(t,e){dh(t,e);var n=Tn(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?sl(t,e.type,n):e.hasOwnProperty("defaultValue")&&sl(t,e.type,Tn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function W0(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function sl(t,e,n){(e!=="number"||ko(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Su=Array.isArray;function Nr(t,e,n,r){if(t=t.options,e){e={};for(var u=0;u<n.length;u++)e["$"+n[u]]=!0;for(n=0;n<t.length;n++)u=e.hasOwnProperty("$"+t[n].value),t[n].selected!==u&&(t[n].selected=u),u&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Tn(n),e=null,u=0;u<t.length;u++){if(t[u].value===n){t[u].selected=!0,r&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function al(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(H(91));return ye({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function H0(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(H(92));if(Su(n)){if(1<n.length)throw Error(H(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Tn(n)}}function hh(t,e){var n=Tn(e.value),r=Tn(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function $0(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function ph(t){switch(t){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 ll(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?ph(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var zi,mh=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,u){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,u)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(zi=zi||document.createElement("div"),zi.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=zi.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Xu(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Nu={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},Hg=["Webkit","ms","Moz","O"];Object.keys(Nu).forEach(function(t){Hg.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Nu[e]=Nu[t]})});function gh(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Nu.hasOwnProperty(t)&&Nu[t]?(""+e).trim():e+"px"}function yh(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,u=gh(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,u):t[n]=u}}var $g=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 cl(t,e){if(e){if($g[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(H(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(H(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(H(61))}if(e.style!=null&&typeof e.style!="object")throw Error(H(62))}}function fl(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dl=null;function Pc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var hl=null,Tr=null,Fr=null;function K0(t){if(t=bi(t)){if(typeof hl!="function")throw Error(H(280));var e=t.stateNode;e&&(e=_s(e),hl(t.stateNode,t.type,e))}}function vh(t){Tr?Fr?Fr.push(t):Fr=[t]:Tr=t}function _h(){if(Tr){var t=Tr,e=Fr;if(Fr=Tr=null,K0(t),e)for(t=0;t<e.length;t++)K0(e[t])}}function Eh(t,e){return t(e)}function bh(){}var Qs=!1;function wh(t,e,n){if(Qs)return t(e,n);Qs=!0;try{return Eh(t,e,n)}finally{Qs=!1,(Tr!==null||Fr!==null)&&(bh(),_h())}}function Gu(t,e){var n=t.stateNode;if(n===null)return null;var r=_s(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(H(231,e,typeof n));return n}var pl=!1;if(un)try{var ou={};Object.defineProperty(ou,"passive",{get:function(){pl=!0}}),window.addEventListener("test",ou,ou),window.removeEventListener("test",ou,ou)}catch{pl=!1}function Kg(t,e,n,r,u,i,o,s,a){var l=Array.prototype.slice.call(arguments,3);try{e.apply(n,l)}catch(c){this.onError(c)}}var Tu=!1,Ao=null,Ro=!1,ml=null,Yg={onError:function(t){Tu=!0,Ao=t}};function qg(t,e,n,r,u,i,o,s,a){Tu=!1,Ao=null,Kg.apply(Yg,arguments)}function Xg(t,e,n,r,u,i,o,s,a){if(qg.apply(this,arguments),Tu){if(Tu){var l=Ao;Tu=!1,Ao=null}else throw Error(H(198));Ro||(Ro=!0,ml=l)}}function fr(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function xh(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Y0(t){if(fr(t)!==t)throw Error(H(188))}function Gg(t){var e=t.alternate;if(!e){if(e=fr(t),e===null)throw Error(H(188));return e!==t?null:t}for(var n=t,r=e;;){var u=n.return;if(u===null)break;var i=u.alternate;if(i===null){if(r=u.return,r!==null){n=r;continue}break}if(u.child===i.child){for(i=u.child;i;){if(i===n)return Y0(u),t;if(i===r)return Y0(u),e;i=i.sibling}throw Error(H(188))}if(n.return!==r.return)n=u,r=i;else{for(var o=!1,s=u.child;s;){if(s===n){o=!0,n=u,r=i;break}if(s===r){o=!0,r=u,n=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===n){o=!0,n=i,r=u;break}if(s===r){o=!0,r=i,n=u;break}s=s.sibling}if(!o)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?t:e}function Ph(t){return t=Gg(t),t!==null?Sh(t):null}function Sh(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=Sh(t);if(e!==null)return e;t=t.sibling}return null}var Dh=ct.unstable_scheduleCallback,q0=ct.unstable_cancelCallback,Qg=ct.unstable_shouldYield,Zg=ct.unstable_requestPaint,xe=ct.unstable_now,Jg=ct.unstable_getCurrentPriorityLevel,Sc=ct.unstable_ImmediatePriority,Oh=ct.unstable_UserBlockingPriority,Mo=ct.unstable_NormalPriority,ey=ct.unstable_LowPriority,Ch=ct.unstable_IdlePriority,ms=null,Ht=null;function ty(t){if(Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(ms,t,void 0,(t.current.flags&128)===128)}catch{}}var Nt=Math.clz32?Math.clz32:uy,ny=Math.log,ry=Math.LN2;function uy(t){return t>>>=0,t===0?32:31-(ny(t)/ry|0)|0}var ji=64,Vi=4194304;function Du(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function No(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,u=t.suspendedLanes,i=t.pingedLanes,o=n&268435455;if(o!==0){var s=o&~u;s!==0?r=Du(s):(i&=o,i!==0&&(r=Du(i)))}else o=n&~u,o!==0?r=Du(o):i!==0&&(r=Du(i));if(r===0)return 0;if(e!==0&&e!==r&&(e&u)===0&&(u=r&-r,i=e&-e,u>=i||u===16&&(i&4194240)!==0))return e;if((r&4)!==0&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-Nt(e),u=1<<n,r|=t[n],e&=~u;return r}function iy(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 oy(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,u=t.expirationTimes,i=t.pendingLanes;0<i;){var o=31-Nt(i),s=1<<o,a=u[o];a===-1?((s&n)===0||(s&r)!==0)&&(u[o]=iy(s,e)):a<=e&&(t.expiredLanes|=s),i&=~s}}function gl(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function kh(){var t=ji;return ji<<=1,(ji&4194240)===0&&(ji=64),t}function Zs(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function _i(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Nt(e),t[e]=n}function sy(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var u=31-Nt(n),i=1<<u;e[u]=0,r[u]=-1,t[u]=-1,n&=~i}}function Dc(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Nt(n),u=1<<r;u&e|t[r]&e&&(t[r]|=e),n&=~u}}var oe=0;function Ah(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Rh,Oc,Mh,Nh,Th,yl=!1,Ui=[],Pn=null,Sn=null,Dn=null,Qu=new Map,Zu=new Map,gn=[],ay="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 X0(t,e){switch(t){case"focusin":case"focusout":Pn=null;break;case"dragenter":case"dragleave":Sn=null;break;case"mouseover":case"mouseout":Dn=null;break;case"pointerover":case"pointerout":Qu.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zu.delete(e.pointerId)}}function su(t,e,n,r,u,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[u]},e!==null&&(e=bi(e),e!==null&&Oc(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function ly(t,e,n,r,u){switch(e){case"focusin":return Pn=su(Pn,t,e,n,r,u),!0;case"dragenter":return Sn=su(Sn,t,e,n,r,u),!0;case"mouseover":return Dn=su(Dn,t,e,n,r,u),!0;case"pointerover":var i=u.pointerId;return Qu.set(i,su(Qu.get(i)||null,t,e,n,r,u)),!0;case"gotpointercapture":return i=u.pointerId,Zu.set(i,su(Zu.get(i)||null,t,e,n,r,u)),!0}return!1}function Fh(t){var e=Xn(t.target);if(e!==null){var n=fr(e);if(n!==null){if(e=n.tag,e===13){if(e=xh(n),e!==null){t.blockedOn=e,Th(t.priority,function(){Mh(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function mo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=vl(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);dl=r,n.target.dispatchEvent(r),dl=null}else return e=bi(n),e!==null&&Oc(e),t.blockedOn=n,!1;e.shift()}return!0}function G0(t,e,n){mo(t)&&n.delete(e)}function cy(){yl=!1,Pn!==null&&mo(Pn)&&(Pn=null),Sn!==null&&mo(Sn)&&(Sn=null),Dn!==null&&mo(Dn)&&(Dn=null),Qu.forEach(G0),Zu.forEach(G0)}function au(t,e){t.blockedOn===e&&(t.blockedOn=null,yl||(yl=!0,ct.unstable_scheduleCallback(ct.unstable_NormalPriority,cy)))}function Ju(t){function e(u){return au(u,t)}if(0<Ui.length){au(Ui[0],t);for(var n=1;n<Ui.length;n++){var r=Ui[n];r.blockedOn===t&&(r.blockedOn=null)}}for(Pn!==null&&au(Pn,t),Sn!==null&&au(Sn,t),Dn!==null&&au(Dn,t),Qu.forEach(e),Zu.forEach(e),n=0;n<gn.length;n++)r=gn[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<gn.length&&(n=gn[0],n.blockedOn===null);)Fh(n),n.blockedOn===null&&gn.shift()}var Lr=ln.ReactCurrentBatchConfig,To=!0;function fy(t,e,n,r){var u=oe,i=Lr.transition;Lr.transition=null;try{oe=1,Cc(t,e,n,r)}finally{oe=u,Lr.transition=i}}function dy(t,e,n,r){var u=oe,i=Lr.transition;Lr.transition=null;try{oe=4,Cc(t,e,n,r)}finally{oe=u,Lr.transition=i}}function Cc(t,e,n,r){if(To){var u=vl(t,e,n,r);if(u===null)aa(t,e,r,Fo,n),X0(t,r);else if(ly(u,t,e,n,r))r.stopPropagation();else if(X0(t,r),e&4&&-1<ay.indexOf(t)){for(;u!==null;){var i=bi(u);if(i!==null&&Rh(i),i=vl(t,e,n,r),i===null&&aa(t,e,r,Fo,n),i===u)break;u=i}u!==null&&r.stopPropagation()}else aa(t,e,r,null,n)}}var Fo=null;function vl(t,e,n,r){if(Fo=null,t=Pc(r),t=Xn(t),t!==null)if(e=fr(t),e===null)t=null;else if(n=e.tag,n===13){if(t=xh(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Fo=t,null}function Lh(t){switch(t){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(Jg()){case Sc:return 1;case Oh:return 4;case Mo:case ey:return 16;case Ch:return 536870912;default:return 16}default:return 16}}var vn=null,kc=null,go=null;function Bh(){if(go)return go;var t,e=kc,n=e.length,r,u="value"in vn?vn.value:vn.textContent,i=u.length;for(t=0;t<n&&e[t]===u[t];t++);var o=n-t;for(r=1;r<=o&&e[n-r]===u[i-r];r++);return go=u.slice(t,1<r?1-r:void 0)}function yo(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Wi(){return!0}function Q0(){return!1}function ht(t){function e(n,r,u,i,o){this._reactName=n,this._targetInst=u,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(n=t[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Wi:Q0,this.isPropagationStopped=Q0,this}return ye(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Wi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Wi)},persist:function(){},isPersistent:Wi}),e}var Zr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ac=ht(Zr),Ei=ye({},Zr,{view:0,detail:0}),hy=ht(Ei),Js,ea,lu,gs=ye({},Ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==lu&&(lu&&t.type==="mousemove"?(Js=t.screenX-lu.screenX,ea=t.screenY-lu.screenY):ea=Js=0,lu=t),Js)},movementY:function(t){return"movementY"in t?t.movementY:ea}}),Z0=ht(gs),py=ye({},gs,{dataTransfer:0}),my=ht(py),gy=ye({},Ei,{relatedTarget:0}),ta=ht(gy),yy=ye({},Zr,{animationName:0,elapsedTime:0,pseudoElement:0}),vy=ht(yy),_y=ye({},Zr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Ey=ht(_y),by=ye({},Zr,{data:0}),J0=ht(by),wy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xy={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"},Py={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sy(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Py[t])?!!e[t]:!1}function Rc(){return Sy}var Dy=ye({},Ei,{key:function(t){if(t.key){var e=wy[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=yo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?xy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rc,charCode:function(t){return t.type==="keypress"?yo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?yo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Oy=ht(Dy),Cy=ye({},gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),e4=ht(Cy),ky=ye({},Ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rc}),Ay=ht(ky),Ry=ye({},Zr,{propertyName:0,elapsedTime:0,pseudoElement:0}),My=ht(Ry),Ny=ye({},gs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Ty=ht(Ny),Fy=[9,13,27,32],Mc=un&&"CompositionEvent"in window,Fu=null;un&&"documentMode"in document&&(Fu=document.documentMode);var Ly=un&&"TextEvent"in window&&!Fu,Ih=un&&(!Mc||Fu&&8<Fu&&11>=Fu),t4=String.fromCharCode(32),n4=!1;function zh(t,e){switch(t){case"keyup":return Fy.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var xr=!1;function By(t,e){switch(t){case"compositionend":return jh(e);case"keypress":return e.which!==32?null:(n4=!0,t4);case"textInput":return t=e.data,t===t4&&n4?null:t;default:return null}}function Iy(t,e){if(xr)return t==="compositionend"||!Mc&&zh(t,e)?(t=Bh(),go=kc=vn=null,xr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Ih&&e.locale!=="ko"?null:e.data;default:return null}}var zy={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 r4(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!zy[t.type]:e==="textarea"}function Vh(t,e,n,r){vh(r),e=Lo(e,"onChange"),0<e.length&&(n=new Ac("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Lu=null,ei=null;function jy(t){Zh(t,0)}function ys(t){var e=Dr(t);if(fh(e))return t}function Vy(t,e){if(t==="change")return e}var Uh=!1;if(un){var na;if(un){var ra="oninput"in document;if(!ra){var u4=document.createElement("div");u4.setAttribute("oninput","return;"),ra=typeof u4.oninput=="function"}na=ra}else na=!1;Uh=na&&(!document.documentMode||9<document.documentMode)}function i4(){Lu&&(Lu.detachEvent("onpropertychange",Wh),ei=Lu=null)}function Wh(t){if(t.propertyName==="value"&&ys(ei)){var e=[];Vh(e,ei,t,Pc(t)),wh(jy,e)}}function Uy(t,e,n){t==="focusin"?(i4(),Lu=e,ei=n,Lu.attachEvent("onpropertychange",Wh)):t==="focusout"&&i4()}function Wy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ys(ei)}function Hy(t,e){if(t==="click")return ys(e)}function $y(t,e){if(t==="input"||t==="change")return ys(e)}function Ky(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ft=typeof Object.is=="function"?Object.is:Ky;function ti(t,e){if(Ft(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var u=n[r];if(!el.call(e,u)||!Ft(t[u],e[u]))return!1}return!0}function o4(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function s4(t,e){var n=o4(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=o4(n)}}function Hh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Hh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function $h(){for(var t=window,e=ko();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ko(t.document)}return e}function Nc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Yy(t){var e=$h(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&Hh(n.ownerDocument.documentElement,n)){if(r!==null&&Nc(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var u=n.textContent.length,i=Math.min(r.start,u);r=r.end===void 0?i:Math.min(r.end,u),!t.extend&&i>r&&(u=r,r=i,i=u),u=s4(n,i);var o=s4(n,r);u&&o&&(t.rangeCount!==1||t.anchorNode!==u.node||t.anchorOffset!==u.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(u.node,u.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var qy=un&&"documentMode"in document&&11>=document.documentMode,Pr=null,_l=null,Bu=null,El=!1;function a4(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;El||Pr==null||Pr!==ko(r)||(r=Pr,"selectionStart"in r&&Nc(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}),Bu&&ti(Bu,r)||(Bu=r,r=Lo(_l,"onSelect"),0<r.length&&(e=new Ac("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=Pr)))}function Hi(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Sr={animationend:Hi("Animation","AnimationEnd"),animationiteration:Hi("Animation","AnimationIteration"),animationstart:Hi("Animation","AnimationStart"),transitionend:Hi("Transition","TransitionEnd")},ua={},Kh={};un&&(Kh=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);function vs(t){if(ua[t])return ua[t];if(!Sr[t])return t;var e=Sr[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Kh)return ua[t]=e[n];return t}var Yh=vs("animationend"),qh=vs("animationiteration"),Xh=vs("animationstart"),Gh=vs("transitionend"),Qh=new Map,l4="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 In(t,e){Qh.set(t,e),cr(e,[t])}for(var ia=0;ia<l4.length;ia++){var oa=l4[ia],Xy=oa.toLowerCase(),Gy=oa[0].toUpperCase()+oa.slice(1);In(Xy,"on"+Gy)}In(Yh,"onAnimationEnd");In(qh,"onAnimationIteration");In(Xh,"onAnimationStart");In("dblclick","onDoubleClick");In("focusin","onFocus");In("focusout","onBlur");In(Gh,"onTransitionEnd");jr("onMouseEnter",["mouseout","mouseover"]);jr("onMouseLeave",["mouseout","mouseover"]);jr("onPointerEnter",["pointerout","pointerover"]);jr("onPointerLeave",["pointerout","pointerover"]);cr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));cr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));cr("onBeforeInput",["compositionend","keypress","textInput","paste"]);cr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));cr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));cr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ou="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(" "),Qy=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ou));function c4(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,Xg(r,e,void 0,t),t.currentTarget=null}function Zh(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],u=r.event;r=r.listeners;e:{var i=void 0;if(e)for(var o=r.length-1;0<=o;o--){var s=r[o],a=s.instance,l=s.currentTarget;if(s=s.listener,a!==i&&u.isPropagationStopped())break e;c4(u,s,l),i=a}else for(o=0;o<r.length;o++){if(s=r[o],a=s.instance,l=s.currentTarget,s=s.listener,a!==i&&u.isPropagationStopped())break e;c4(u,s,l),i=a}}}if(Ro)throw t=ml,Ro=!1,ml=null,t}function ce(t,e){var n=e[Sl];n===void 0&&(n=e[Sl]=new Set);var r=t+"__bubble";n.has(r)||(Jh(e,t,2,!1),n.add(r))}function sa(t,e,n){var r=0;e&&(r|=4),Jh(n,t,r,e)}var $i="_reactListening"+Math.random().toString(36).slice(2);function ni(t){if(!t[$i]){t[$i]=!0,oh.forEach(function(n){n!=="selectionchange"&&(Qy.has(n)||sa(n,!1,t),sa(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[$i]||(e[$i]=!0,sa("selectionchange",!1,e))}}function Jh(t,e,n,r){switch(Lh(e)){case 1:var u=fy;break;case 4:u=dy;break;default:u=Cc}n=u.bind(null,e,n,t),u=void 0,!pl||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),r?u!==void 0?t.addEventListener(e,n,{capture:!0,passive:u}):t.addEventListener(e,n,!0):u!==void 0?t.addEventListener(e,n,{passive:u}):t.addEventListener(e,n,!1)}function aa(t,e,n,r,u){var i=r;if((e&1)===0&&(e&2)===0&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===u||s.nodeType===8&&s.parentNode===u)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===u||a.nodeType===8&&a.parentNode===u))return;o=o.return}for(;s!==null;){if(o=Xn(s),o===null)return;if(a=o.tag,a===5||a===6){r=i=o;continue e}s=s.parentNode}}r=r.return}wh(function(){var l=i,c=Pc(n),h=[];e:{var m=Qh.get(t);if(m!==void 0){var y=Ac,v=t;switch(t){case"keypress":if(yo(n)===0)break e;case"keydown":case"keyup":y=Oy;break;case"focusin":v="focus",y=ta;break;case"focusout":v="blur",y=ta;break;case"beforeblur":case"afterblur":y=ta;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":y=Z0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=my;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Ay;break;case Yh:case qh:case Xh:y=vy;break;case Gh:y=My;break;case"scroll":y=hy;break;case"wheel":y=Ty;break;case"copy":case"cut":case"paste":y=Ey;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=e4}var S=(e&4)!==0,C=!S&&t==="scroll",E=S?m!==null?m+"Capture":null:m;S=[];for(var w=l,x;w!==null;){x=w;var N=x.stateNode;if(x.tag===5&&N!==null&&(x=N,E!==null&&(N=Gu(w,E),N!=null&&S.push(ri(w,N,x)))),C)break;w=w.return}0<S.length&&(m=new y(m,v,null,n,c),h.push({event:m,listeners:S}))}}if((e&7)===0){e:{if(m=t==="mouseover"||t==="pointerover",y=t==="mouseout"||t==="pointerout",m&&n!==dl&&(v=n.relatedTarget||n.fromElement)&&(Xn(v)||v[on]))break e;if((y||m)&&(m=c.window===c?c:(m=c.ownerDocument)?m.defaultView||m.parentWindow:window,y?(v=n.relatedTarget||n.toElement,y=l,v=v?Xn(v):null,v!==null&&(C=fr(v),v!==C||v.tag!==5&&v.tag!==6)&&(v=null)):(y=null,v=l),y!==v)){if(S=Z0,N="onMouseLeave",E="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(S=e4,N="onPointerLeave",E="onPointerEnter",w="pointer"),C=y==null?m:Dr(y),x=v==null?m:Dr(v),m=new S(N,w+"leave",y,n,c),m.target=C,m.relatedTarget=x,N=null,Xn(c)===l&&(S=new S(E,w+"enter",v,n,c),S.target=x,S.relatedTarget=C,N=S),C=N,y&&v)t:{for(S=y,E=v,w=0,x=S;x;x=mr(x))w++;for(x=0,N=E;N;N=mr(N))x++;for(;0<w-x;)S=mr(S),w--;for(;0<x-w;)E=mr(E),x--;for(;w--;){if(S===E||E!==null&&S===E.alternate)break t;S=mr(S),E=mr(E)}S=null}else S=null;y!==null&&f4(h,m,y,S,!1),v!==null&&C!==null&&f4(h,C,v,S,!0)}}e:{if(m=l?Dr(l):window,y=m.nodeName&&m.nodeName.toLowerCase(),y==="select"||y==="input"&&m.type==="file")var P=Vy;else if(r4(m))if(Uh)P=$y;else{P=Wy;var D=Uy}else(y=m.nodeName)&&y.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(P=Hy);if(P&&(P=P(t,l))){Vh(h,P,n,c);break e}D&&D(t,m,l),t==="focusout"&&(D=m._wrapperState)&&D.controlled&&m.type==="number"&&sl(m,"number",m.value)}switch(D=l?Dr(l):window,t){case"focusin":(r4(D)||D.contentEditable==="true")&&(Pr=D,_l=l,Bu=null);break;case"focusout":Bu=_l=Pr=null;break;case"mousedown":El=!0;break;case"contextmenu":case"mouseup":case"dragend":El=!1,a4(h,n,c);break;case"selectionchange":if(qy)break;case"keydown":case"keyup":a4(h,n,c)}var g;if(Mc)e:{switch(t){case"compositionstart":var f="onCompositionStart";break e;case"compositionend":f="onCompositionEnd";break e;case"compositionupdate":f="onCompositionUpdate";break e}f=void 0}else xr?zh(t,n)&&(f="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(f="onCompositionStart");f&&(Ih&&n.locale!=="ko"&&(xr||f!=="onCompositionStart"?f==="onCompositionEnd"&&xr&&(g=Bh()):(vn=c,kc="value"in vn?vn.value:vn.textContent,xr=!0)),D=Lo(l,f),0<D.length&&(f=new J0(f,t,null,n,c),h.push({event:f,listeners:D}),g?f.data=g:(g=jh(n),g!==null&&(f.data=g)))),(g=Ly?By(t,n):Iy(t,n))&&(l=Lo(l,"onBeforeInput"),0<l.length&&(c=new J0("onBeforeInput","beforeinput",null,n,c),h.push({event:c,listeners:l}),c.data=g))}Zh(h,e)})}function ri(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Lo(t,e){for(var n=e+"Capture",r=[];t!==null;){var u=t,i=u.stateNode;u.tag===5&&i!==null&&(u=i,i=Gu(t,n),i!=null&&r.unshift(ri(t,i,u)),i=Gu(t,e),i!=null&&r.push(ri(t,i,u))),t=t.return}return r}function mr(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function f4(t,e,n,r,u){for(var i=e._reactName,o=[];n!==null&&n!==r;){var s=n,a=s.alternate,l=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&l!==null&&(s=l,u?(a=Gu(n,i),a!=null&&o.unshift(ri(n,a,s))):u||(a=Gu(n,i),a!=null&&o.push(ri(n,a,s)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var Zy=/\r\n?/g,Jy=/\u0000|\uFFFD/g;function d4(t){return(typeof t=="string"?t:""+t).replace(Zy,`
`).replace(Jy,"")}function Ki(t,e,n){if(e=d4(e),d4(t)!==e&&n)throw Error(H(425))}function Bo(){}var bl=null,wl=null;function xl(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Pl=typeof setTimeout=="function"?setTimeout:void 0,ev=typeof clearTimeout=="function"?clearTimeout:void 0,h4=typeof Promise=="function"?Promise:void 0,tv=typeof queueMicrotask=="function"?queueMicrotask:typeof h4<"u"?function(t){return h4.resolve(null).then(t).catch(nv)}:Pl;function nv(t){setTimeout(function(){throw t})}function la(t,e){var n=e,r=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"){if(r===0){t.removeChild(u),Ju(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=u}while(n);Ju(e)}function On(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function p4(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Jr=Math.random().toString(36).slice(2),Ut="__reactFiber$"+Jr,ui="__reactProps$"+Jr,on="__reactContainer$"+Jr,Sl="__reactEvents$"+Jr,rv="__reactListeners$"+Jr,uv="__reactHandles$"+Jr;function Xn(t){var e=t[Ut];if(e)return e;for(var n=t.parentNode;n;){if(e=n[on]||n[Ut]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=p4(t);t!==null;){if(n=t[Ut])return n;t=p4(t)}return e}t=n,n=t.parentNode}return null}function bi(t){return t=t[Ut]||t[on],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Dr(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(H(33))}function _s(t){return t[ui]||null}var Dl=[],Or=-1;function zn(t){return{current:t}}function de(t){0>Or||(t.current=Dl[Or],Dl[Or]=null,Or--)}function le(t,e){Or++,Dl[Or]=t.current,t.current=e}var Fn={},Ue=zn(Fn),tt=zn(!1),rr=Fn;function Vr(t,e){var n=t.type.contextTypes;if(!n)return Fn;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var u={},i;for(i in n)u[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=u),u}function nt(t){return t=t.childContextTypes,t!=null}function Io(){de(tt),de(Ue)}function m4(t,e,n){if(Ue.current!==Fn)throw Error(H(168));le(Ue,e),le(tt,n)}function ep(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var u in r)if(!(u in e))throw Error(H(108,Ug(t)||"Unknown",u));return ye({},n,r)}function zo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Fn,rr=Ue.current,le(Ue,t),le(tt,tt.current),!0}function g4(t,e,n){var r=t.stateNode;if(!r)throw Error(H(169));n?(t=ep(t,e,rr),r.__reactInternalMemoizedMergedChildContext=t,de(tt),de(Ue),le(Ue,t)):de(tt),le(tt,n)}var Zt=null,Es=!1,ca=!1;function tp(t){Zt===null?Zt=[t]:Zt.push(t)}function iv(t){Es=!0,tp(t)}function jn(){if(!ca&&Zt!==null){ca=!0;var t=0,e=oe;try{var n=Zt;for(oe=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Zt=null,Es=!1}catch(u){throw Zt!==null&&(Zt=Zt.slice(t+1)),Dh(Sc,jn),u}finally{oe=e,ca=!1}}return null}var Cr=[],kr=0,jo=null,Vo=0,vt=[],_t=0,ur=null,en=1,tn="";function Hn(t,e){Cr[kr++]=Vo,Cr[kr++]=jo,jo=t,Vo=e}function np(t,e,n){vt[_t++]=en,vt[_t++]=tn,vt[_t++]=ur,ur=t;var r=en;t=tn;var u=32-Nt(r)-1;r&=~(1<<u),n+=1;var i=32-Nt(e)+u;if(30<i){var o=u-u%5;i=(r&(1<<o)-1).toString(32),r>>=o,u-=o,en=1<<32-Nt(e)+u|n<<u|r,tn=i+t}else en=1<<i|n<<u|r,tn=t}function Tc(t){t.return!==null&&(Hn(t,1),np(t,1,0))}function Fc(t){for(;t===jo;)jo=Cr[--kr],Cr[kr]=null,Vo=Cr[--kr],Cr[kr]=null;for(;t===ur;)ur=vt[--_t],vt[_t]=null,tn=vt[--_t],vt[_t]=null,en=vt[--_t],vt[_t]=null}var at=null,st=null,he=!1,Rt=null;function rp(t,e){var n=bt(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function y4(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,at=t,st=On(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,at=t,st=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=ur!==null?{id:en,overflow:tn}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=bt(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,at=t,st=null,!0):!1;default:return!1}}function Ol(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Cl(t){if(he){var e=st;if(e){var n=e;if(!y4(t,e)){if(Ol(t))throw Error(H(418));e=On(n.nextSibling);var r=at;e&&y4(t,e)?rp(r,n):(t.flags=t.flags&-4097|2,he=!1,at=t)}}else{if(Ol(t))throw Error(H(418));t.flags=t.flags&-4097|2,he=!1,at=t}}}function v4(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;at=t}function Yi(t){if(t!==at)return!1;if(!he)return v4(t),he=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!xl(t.type,t.memoizedProps)),e&&(e=st)){if(Ol(t))throw up(),Error(H(418));for(;e;)rp(t,e),e=On(e.nextSibling)}if(v4(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(H(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){st=On(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}st=null}}else st=at?On(t.stateNode.nextSibling):null;return!0}function up(){for(var t=st;t;)t=On(t.nextSibling)}function Ur(){st=at=null,he=!1}function Lc(t){Rt===null?Rt=[t]:Rt.push(t)}var ov=ln.ReactCurrentBatchConfig;function Ct(t,e){if(t&&t.defaultProps){e=ye({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var Uo=zn(null),Wo=null,Ar=null,Bc=null;function Ic(){Bc=Ar=Wo=null}function zc(t){var e=Uo.current;de(Uo),t._currentValue=e}function kl(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Br(t,e){Wo=t,Bc=Ar=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&e)!==0&&(et=!0),t.firstContext=null)}function Pt(t){var e=t._currentValue;if(Bc!==t)if(t={context:t,memoizedValue:e,next:null},Ar===null){if(Wo===null)throw Error(H(308));Ar=t,Wo.dependencies={lanes:0,firstContext:t}}else Ar=Ar.next=t;return e}var Gn=null;function jc(t){Gn===null?Gn=[t]:Gn.push(t)}function ip(t,e,n,r){var u=e.interleaved;return u===null?(n.next=n,jc(e)):(n.next=u.next,u.next=n),e.interleaved=n,sn(t,r)}function sn(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var mn=!1;function Vc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function op(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function nn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Cn(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,(te&2)!==0){var u=r.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),r.pending=e,sn(t,n)}return u=r.interleaved,u===null?(e.next=e,jc(r)):(e.next=u.next,u.next=e),r.interleaved=e,sn(t,n)}function vo(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Dc(t,n)}}function _4(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var u=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?u=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?u=i=e:i=i.next=e}else u=i=e;n={baseState:r.baseState,firstBaseUpdate:u,lastBaseUpdate:i,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ho(t,e,n,r){var u=t.updateQueue;mn=!1;var i=u.firstBaseUpdate,o=u.lastBaseUpdate,s=u.shared.pending;if(s!==null){u.shared.pending=null;var a=s,l=a.next;a.next=null,o===null?i=l:o.next=l,o=a;var c=t.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=a))}if(i!==null){var h=u.baseState;o=0,c=l=a=null,s=i;do{var m=s.lane,y=s.eventTime;if((r&m)===m){c!==null&&(c=c.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=t,S=s;switch(m=e,y=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){h=v.call(y,h,m);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,m=typeof v=="function"?v.call(y,h,m):v,m==null)break e;h=ye({},h,m);break e;case 2:mn=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,m=u.effects,m===null?u.effects=[s]:m.push(s))}else y={eventTime:y,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=y,a=h):c=c.next=y,o|=m;if(s=s.next,s===null){if(s=u.shared.pending,s===null)break;m=s,s=m.next,m.next=null,u.lastBaseUpdate=m,u.shared.pending=null}}while(1);if(c===null&&(a=h),u.baseState=a,u.firstBaseUpdate=l,u.lastBaseUpdate=c,e=u.shared.interleaved,e!==null){u=e;do o|=u.lane,u=u.next;while(u!==e)}else i===null&&(u.shared.lanes=0);or|=o,t.lanes=o,t.memoizedState=h}}function E4(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],u=r.callback;if(u!==null){if(r.callback=null,r=n,typeof u!="function")throw Error(H(191,u));u.call(r)}}}var sp=new ih.Component().refs;function Al(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:ye({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var bs={isMounted:function(t){return(t=t._reactInternals)?fr(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=Ye(),u=An(t),i=nn(r,u);i.payload=e,n!=null&&(i.callback=n),e=Cn(t,i,u),e!==null&&(Tt(e,t,u,r),vo(e,t,u))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=Ye(),u=An(t),i=nn(r,u);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=Cn(t,i,u),e!==null&&(Tt(e,t,u,r),vo(e,t,u))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ye(),r=An(t),u=nn(n,r);u.tag=2,e!=null&&(u.callback=e),e=Cn(t,u,r),e!==null&&(Tt(e,t,r,n),vo(e,t,r))}};function b4(t,e,n,r,u,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,i,o):e.prototype&&e.prototype.isPureReactComponent?!ti(n,r)||!ti(u,i):!0}function ap(t,e,n){var r=!1,u=Fn,i=e.contextType;return typeof i=="object"&&i!==null?i=Pt(i):(u=nt(e)?rr:Ue.current,r=e.contextTypes,i=(r=r!=null)?Vr(t,u):Fn),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=bs,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=u,t.__reactInternalMemoizedMaskedChildContext=i),e}function w4(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&bs.enqueueReplaceState(e,e.state,null)}function Rl(t,e,n,r){var u=t.stateNode;u.props=n,u.state=t.memoizedState,u.refs=sp,Vc(t);var i=e.contextType;typeof i=="object"&&i!==null?u.context=Pt(i):(i=nt(e)?rr:Ue.current,u.context=Vr(t,i)),u.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Al(t,e,i,n),u.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(e=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),e!==u.state&&bs.enqueueReplaceState(u,u.state,null),Ho(t,n,u,r),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308)}function cu(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="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,t));var u=r,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(o){var s=u.refs;s===sp&&(s=u.refs={}),o===null?delete s[i]:s[i]=o},e._stringRef=i,e)}if(typeof t!="string")throw Error(H(284));if(!n._owner)throw Error(H(290,t))}return t}function qi(t,e){throw t=Object.prototype.toString.call(e),Error(H(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function x4(t){var e=t._init;return e(t._payload)}function lp(t){function e(E,w){if(t){var x=E.deletions;x===null?(E.deletions=[w],E.flags|=16):x.push(w)}}function n(E,w){if(!t)return null;for(;w!==null;)e(E,w),w=w.sibling;return null}function r(E,w){for(E=new Map;w!==null;)w.key!==null?E.set(w.key,w):E.set(w.index,w),w=w.sibling;return E}function u(E,w){return E=Rn(E,w),E.index=0,E.sibling=null,E}function i(E,w,x){return E.index=x,t?(x=E.alternate,x!==null?(x=x.index,x<w?(E.flags|=2,w):x):(E.flags|=2,w)):(E.flags|=1048576,w)}function o(E){return t&&E.alternate===null&&(E.flags|=2),E}function s(E,w,x,N){return w===null||w.tag!==6?(w=ya(x,E.mode,N),w.return=E,w):(w=u(w,x),w.return=E,w)}function a(E,w,x,N){var P=x.type;return P===wr?c(E,w,x.props.children,N,x.key):w!==null&&(w.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===pn&&x4(P)===w.type)?(N=u(w,x.props),N.ref=cu(E,w,x),N.return=E,N):(N=Po(x.type,x.key,x.props,null,E.mode,N),N.ref=cu(E,w,x),N.return=E,N)}function l(E,w,x,N){return w===null||w.tag!==4||w.stateNode.containerInfo!==x.containerInfo||w.stateNode.implementation!==x.implementation?(w=va(x,E.mode,N),w.return=E,w):(w=u(w,x.children||[]),w.return=E,w)}function c(E,w,x,N,P){return w===null||w.tag!==7?(w=er(x,E.mode,N,P),w.return=E,w):(w=u(w,x),w.return=E,w)}function h(E,w,x){if(typeof w=="string"&&w!==""||typeof w=="number")return w=ya(""+w,E.mode,x),w.return=E,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Bi:return x=Po(w.type,w.key,w.props,null,E.mode,x),x.ref=cu(E,null,w),x.return=E,x;case br:return w=va(w,E.mode,x),w.return=E,w;case pn:var N=w._init;return h(E,N(w._payload),x)}if(Su(w)||iu(w))return w=er(w,E.mode,x,null),w.return=E,w;qi(E,w)}return null}function m(E,w,x,N){var P=w!==null?w.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return P!==null?null:s(E,w,""+x,N);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Bi:return x.key===P?a(E,w,x,N):null;case br:return x.key===P?l(E,w,x,N):null;case pn:return P=x._init,m(E,w,P(x._payload),N)}if(Su(x)||iu(x))return P!==null?null:c(E,w,x,N,null);qi(E,x)}return null}function y(E,w,x,N,P){if(typeof N=="string"&&N!==""||typeof N=="number")return E=E.get(x)||null,s(w,E,""+N,P);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Bi:return E=E.get(N.key===null?x:N.key)||null,a(w,E,N,P);case br:return E=E.get(N.key===null?x:N.key)||null,l(w,E,N,P);case pn:var D=N._init;return y(E,w,x,D(N._payload),P)}if(Su(N)||iu(N))return E=E.get(x)||null,c(w,E,N,P,null);qi(w,N)}return null}function v(E,w,x,N){for(var P=null,D=null,g=w,f=w=0,p=null;g!==null&&f<x.length;f++){g.index>f?(p=g,g=null):p=g.sibling;var d=m(E,g,x[f],N);if(d===null){g===null&&(g=p);break}t&&g&&d.alternate===null&&e(E,g),w=i(d,w,f),D===null?P=d:D.sibling=d,D=d,g=p}if(f===x.length)return n(E,g),he&&Hn(E,f),P;if(g===null){for(;f<x.length;f++)g=h(E,x[f],N),g!==null&&(w=i(g,w,f),D===null?P=g:D.sibling=g,D=g);return he&&Hn(E,f),P}for(g=r(E,g);f<x.length;f++)p=y(g,E,f,x[f],N),p!==null&&(t&&p.alternate!==null&&g.delete(p.key===null?f:p.key),w=i(p,w,f),D===null?P=p:D.sibling=p,D=p);return t&&g.forEach(function(b){return e(E,b)}),he&&Hn(E,f),P}function S(E,w,x,N){var P=iu(x);if(typeof P!="function")throw Error(H(150));if(x=P.call(x),x==null)throw Error(H(151));for(var D=P=null,g=w,f=w=0,p=null,d=x.next();g!==null&&!d.done;f++,d=x.next()){g.index>f?(p=g,g=null):p=g.sibling;var b=m(E,g,d.value,N);if(b===null){g===null&&(g=p);break}t&&g&&b.alternate===null&&e(E,g),w=i(b,w,f),D===null?P=b:D.sibling=b,D=b,g=p}if(d.done)return n(E,g),he&&Hn(E,f),P;if(g===null){for(;!d.done;f++,d=x.next())d=h(E,d.value,N),d!==null&&(w=i(d,w,f),D===null?P=d:D.sibling=d,D=d);return he&&Hn(E,f),P}for(g=r(E,g);!d.done;f++,d=x.next())d=y(g,E,f,d.value,N),d!==null&&(t&&d.alternate!==null&&g.delete(d.key===null?f:d.key),w=i(d,w,f),D===null?P=d:D.sibling=d,D=d);return t&&g.forEach(function(O){return e(E,O)}),he&&Hn(E,f),P}function C(E,w,x,N){if(typeof x=="object"&&x!==null&&x.type===wr&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Bi:e:{for(var P=x.key,D=w;D!==null;){if(D.key===P){if(P=x.type,P===wr){if(D.tag===7){n(E,D.sibling),w=u(D,x.props.children),w.return=E,E=w;break e}}else if(D.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===pn&&x4(P)===D.type){n(E,D.sibling),w=u(D,x.props),w.ref=cu(E,D,x),w.return=E,E=w;break e}n(E,D);break}else e(E,D);D=D.sibling}x.type===wr?(w=er(x.props.children,E.mode,N,x.key),w.return=E,E=w):(N=Po(x.type,x.key,x.props,null,E.mode,N),N.ref=cu(E,w,x),N.return=E,E=N)}return o(E);case br:e:{for(D=x.key;w!==null;){if(w.key===D)if(w.tag===4&&w.stateNode.containerInfo===x.containerInfo&&w.stateNode.implementation===x.implementation){n(E,w.sibling),w=u(w,x.children||[]),w.return=E,E=w;break e}else{n(E,w);break}else e(E,w);w=w.sibling}w=va(x,E.mode,N),w.return=E,E=w}return o(E);case pn:return D=x._init,C(E,w,D(x._payload),N)}if(Su(x))return v(E,w,x,N);if(iu(x))return S(E,w,x,N);qi(E,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,w!==null&&w.tag===6?(n(E,w.sibling),w=u(w,x),w.return=E,E=w):(n(E,w),w=ya(x,E.mode,N),w.return=E,E=w),o(E)):n(E,w)}return C}var Wr=lp(!0),cp=lp(!1),wi={},$t=zn(wi),ii=zn(wi),oi=zn(wi);function Qn(t){if(t===wi)throw Error(H(174));return t}function Uc(t,e){switch(le(oi,e),le(ii,t),le($t,wi),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:ll(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=ll(e,t)}de($t),le($t,e)}function Hr(){de($t),de(ii),de(oi)}function fp(t){Qn(oi.current);var e=Qn($t.current),n=ll(e,t.type);e!==n&&(le(ii,t),le($t,n))}function Wc(t){ii.current===t&&(de($t),de(ii))}var me=zn(0);function $o(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var fa=[];function Hc(){for(var t=0;t<fa.length;t++)fa[t]._workInProgressVersionPrimary=null;fa.length=0}var _o=ln.ReactCurrentDispatcher,da=ln.ReactCurrentBatchConfig,ir=0,ge=null,De=null,ke=null,Ko=!1,Iu=!1,si=0,sv=0;function Le(){throw Error(H(321))}function $c(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ft(t[n],e[n]))return!1;return!0}function Kc(t,e,n,r,u,i){if(ir=i,ge=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,_o.current=t===null||t.memoizedState===null?fv:dv,t=n(r,u),Iu){i=0;do{if(Iu=!1,si=0,25<=i)throw Error(H(301));i+=1,ke=De=null,e.updateQueue=null,_o.current=hv,t=n(r,u)}while(Iu)}if(_o.current=Yo,e=De!==null&&De.next!==null,ir=0,ke=De=ge=null,Ko=!1,e)throw Error(H(300));return t}function Yc(){var t=si!==0;return si=0,t}function Vt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?ge.memoizedState=ke=t:ke=ke.next=t,ke}function St(){if(De===null){var t=ge.alternate;t=t!==null?t.memoizedState:null}else t=De.next;var e=ke===null?ge.memoizedState:ke.next;if(e!==null)ke=e,De=t;else{if(t===null)throw Error(H(310));De=t,t={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},ke===null?ge.memoizedState=ke=t:ke=ke.next=t}return ke}function ai(t,e){return typeof e=="function"?e(t):e}function ha(t){var e=St(),n=e.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=t;var r=De,u=r.baseQueue,i=n.pending;if(i!==null){if(u!==null){var o=u.next;u.next=i.next,i.next=o}r.baseQueue=u=i,n.pending=null}if(u!==null){i=u.next,r=r.baseState;var s=o=null,a=null,l=i;do{var c=l.lane;if((ir&c)===c)a!==null&&(a=a.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:t(r,l.action);else{var h={lane:c,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};a===null?(s=a=h,o=r):a=a.next=h,ge.lanes|=c,or|=c}l=l.next}while(l!==null&&l!==i);a===null?o=r:a.next=s,Ft(r,e.memoizedState)||(et=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=a,n.lastRenderedState=r}if(t=n.interleaved,t!==null){u=t;do i=u.lane,ge.lanes|=i,or|=i,u=u.next;while(u!==t)}else u===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function pa(t){var e=St(),n=e.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=t;var r=n.dispatch,u=n.pending,i=e.memoizedState;if(u!==null){n.pending=null;var o=u=u.next;do i=t(i,o.action),o=o.next;while(o!==u);Ft(i,e.memoizedState)||(et=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,r]}function dp(){}function hp(t,e){var n=ge,r=St(),u=e(),i=!Ft(r.memoizedState,u);if(i&&(r.memoizedState=u,et=!0),r=r.queue,qc(gp.bind(null,n,r,t),[t]),r.getSnapshot!==e||i||ke!==null&&ke.memoizedState.tag&1){if(n.flags|=2048,li(9,mp.bind(null,n,r,u,e),void 0,null),Ae===null)throw Error(H(349));(ir&30)!==0||pp(n,e,u)}return u}function pp(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ge.updateQueue,e===null?(e={lastEffect:null,stores:null},ge.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function mp(t,e,n,r){e.value=n,e.getSnapshot=r,yp(e)&&vp(t)}function gp(t,e,n){return n(function(){yp(e)&&vp(t)})}function yp(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ft(t,n)}catch{return!0}}function vp(t){var e=sn(t,1);e!==null&&Tt(e,t,1,-1)}function P4(t){var e=Vt();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:t},e.queue=t,t=t.dispatch=cv.bind(null,ge,t),[e.memoizedState,t]}function li(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=ge.updateQueue,e===null?(e={lastEffect:null,stores:null},ge.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function _p(){return St().memoizedState}function Eo(t,e,n,r){var u=Vt();ge.flags|=t,u.memoizedState=li(1|e,n,void 0,r===void 0?null:r)}function ws(t,e,n,r){var u=St();r=r===void 0?null:r;var i=void 0;if(De!==null){var o=De.memoizedState;if(i=o.destroy,r!==null&&$c(r,o.deps)){u.memoizedState=li(e,n,i,r);return}}ge.flags|=t,u.memoizedState=li(1|e,n,i,r)}function S4(t,e){return Eo(8390656,8,t,e)}function qc(t,e){return ws(2048,8,t,e)}function Ep(t,e){return ws(4,2,t,e)}function bp(t,e){return ws(4,4,t,e)}function wp(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function xp(t,e,n){return n=n!=null?n.concat([t]):null,ws(4,4,wp.bind(null,e,t),n)}function Xc(){}function Pp(t,e){var n=St();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&$c(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Sp(t,e){var n=St();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&$c(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function Dp(t,e,n){return(ir&21)===0?(t.baseState&&(t.baseState=!1,et=!0),t.memoizedState=n):(Ft(n,e)||(n=kh(),ge.lanes|=n,or|=n,t.baseState=!0),e)}function av(t,e){var n=oe;oe=n!==0&&4>n?n:4,t(!0);var r=da.transition;da.transition={};try{t(!1),e()}finally{oe=n,da.transition=r}}function Op(){return St().memoizedState}function lv(t,e,n){var r=An(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Cp(t))kp(e,n);else if(n=ip(t,e,n,r),n!==null){var u=Ye();Tt(n,t,r,u),Ap(n,e,r)}}function cv(t,e,n){var r=An(t),u={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Cp(t))kp(e,u);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,n);if(u.hasEagerState=!0,u.eagerState=s,Ft(s,o)){var a=e.interleaved;a===null?(u.next=u,jc(e)):(u.next=a.next,a.next=u),e.interleaved=u;return}}catch{}finally{}n=ip(t,e,u,r),n!==null&&(u=Ye(),Tt(n,t,r,u),Ap(n,e,r))}}function Cp(t){var e=t.alternate;return t===ge||e!==null&&e===ge}function kp(t,e){Iu=Ko=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Ap(t,e,n){if((n&4194240)!==0){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Dc(t,n)}}var Yo={readContext:Pt,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},fv={readContext:Pt,useCallback:function(t,e){return Vt().memoizedState=[t,e===void 0?null:e],t},useContext:Pt,useEffect:S4,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Eo(4194308,4,wp.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Eo(4194308,4,t,e)},useInsertionEffect:function(t,e){return Eo(4,2,t,e)},useMemo:function(t,e){var n=Vt();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Vt();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=lv.bind(null,ge,t),[r.memoizedState,t]},useRef:function(t){var e=Vt();return t={current:t},e.memoizedState=t},useState:P4,useDebugValue:Xc,useDeferredValue:function(t){return Vt().memoizedState=t},useTransition:function(){var t=P4(!1),e=t[0];return t=av.bind(null,t[1]),Vt().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=ge,u=Vt();if(he){if(n===void 0)throw Error(H(407));n=n()}else{if(n=e(),Ae===null)throw Error(H(349));(ir&30)!==0||pp(r,e,n)}u.memoizedState=n;var i={value:n,getSnapshot:e};return u.queue=i,S4(gp.bind(null,r,i,t),[t]),r.flags|=2048,li(9,mp.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=Vt(),e=Ae.identifierPrefix;if(he){var n=tn,r=en;n=(r&~(1<<32-Nt(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=si++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=sv++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},dv={readContext:Pt,useCallback:Pp,useContext:Pt,useEffect:qc,useImperativeHandle:xp,useInsertionEffect:Ep,useLayoutEffect:bp,useMemo:Sp,useReducer:ha,useRef:_p,useState:function(){return ha(ai)},useDebugValue:Xc,useDeferredValue:function(t){var e=St();return Dp(e,De.memoizedState,t)},useTransition:function(){var t=ha(ai)[0],e=St().memoizedState;return[t,e]},useMutableSource:dp,useSyncExternalStore:hp,useId:Op,unstable_isNewReconciler:!1},hv={readContext:Pt,useCallback:Pp,useContext:Pt,useEffect:qc,useImperativeHandle:xp,useInsertionEffect:Ep,useLayoutEffect:bp,useMemo:Sp,useReducer:pa,useRef:_p,useState:function(){return pa(ai)},useDebugValue:Xc,useDeferredValue:function(t){var e=St();return De===null?e.memoizedState=t:Dp(e,De.memoizedState,t)},useTransition:function(){var t=pa(ai)[0],e=St().memoizedState;return[t,e]},useMutableSource:dp,useSyncExternalStore:hp,useId:Op,unstable_isNewReconciler:!1};function $r(t,e){try{var n="",r=e;do n+=Vg(r),r=r.return;while(r);var u=n}catch(i){u=`
Error generating stack: `+i.message+`
`+i.stack}return{value:t,source:e,stack:u,digest:null}}function ma(t,e,n){return{value:t,source:null,stack:n!=null?n:null,digest:e!=null?e:null}}function Ml(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var pv=typeof WeakMap=="function"?WeakMap:Map;function Rp(t,e,n){n=nn(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Xo||(Xo=!0,Ul=r),Ml(t,e)},n}function Mp(t,e,n){n=nn(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var u=e.value;n.payload=function(){return r(u)},n.callback=function(){Ml(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ml(t,e),typeof r!="function"&&(kn===null?kn=new Set([this]):kn.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function D4(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new pv;var u=new Set;r.set(e,u)}else u=r.get(e),u===void 0&&(u=new Set,r.set(e,u));u.has(n)||(u.add(n),t=Cv.bind(null,t,e,n),e.then(t,t))}function O4(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function C4(t,e,n,r,u){return(t.mode&1)===0?(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=nn(-1,1),e.tag=2,Cn(n,e,1))),n.lanes|=1),t):(t.flags|=65536,t.lanes=u,t)}var mv=ln.ReactCurrentOwner,et=!1;function $e(t,e,n,r){e.child=t===null?cp(e,null,n,r):Wr(e,t.child,n,r)}function k4(t,e,n,r,u){n=n.render;var i=e.ref;return Br(e,u),r=Kc(t,e,n,r,i,u),n=Yc(),t!==null&&!et?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~u,an(t,e,u)):(he&&n&&Tc(e),e.flags|=1,$e(t,e,r,u),e.child)}function A4(t,e,n,r,u){if(t===null){var i=n.type;return typeof i=="function"&&!r0(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=i,Np(t,e,i,r,u)):(t=Po(n.type,null,r,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,(t.lanes&u)===0){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:ti,n(o,r)&&t.ref===e.ref)return an(t,e,u)}return e.flags|=1,t=Rn(i,r),t.ref=e.ref,t.return=e,e.child=t}function Np(t,e,n,r,u){if(t!==null){var i=t.memoizedProps;if(ti(i,r)&&t.ref===e.ref)if(et=!1,e.pendingProps=r=i,(t.lanes&u)!==0)(t.flags&131072)!==0&&(et=!0);else return e.lanes=t.lanes,an(t,e,u)}return Nl(t,e,n,r,u)}function Tp(t,e,n){var r=e.pendingProps,u=r.children,i=t!==null?t.memoizedState:null;if(r.mode==="hidden")if((e.mode&1)===0)e.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(Mr,ot),ot|=n;else{if((n&1073741824)===0)return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,le(Mr,ot),ot|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,le(Mr,ot),ot|=r}else i!==null?(r=i.baseLanes|n,e.memoizedState=null):r=n,le(Mr,ot),ot|=r;return $e(t,e,u,n),e.child}function Fp(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Nl(t,e,n,r,u){var i=nt(n)?rr:Ue.current;return i=Vr(e,i),Br(e,u),n=Kc(t,e,n,r,i,u),r=Yc(),t!==null&&!et?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~u,an(t,e,u)):(he&&r&&Tc(e),e.flags|=1,$e(t,e,n,u),e.child)}function R4(t,e,n,r,u){if(nt(n)){var i=!0;zo(e)}else i=!1;if(Br(e,u),e.stateNode===null)bo(t,e),ap(e,n,r),Rl(e,n,r,u),r=!0;else if(t===null){var o=e.stateNode,s=e.memoizedProps;o.props=s;var a=o.context,l=n.contextType;typeof l=="object"&&l!==null?l=Pt(l):(l=nt(n)?rr:Ue.current,l=Vr(e,l));var c=n.getDerivedStateFromProps,h=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||a!==l)&&w4(e,o,r,l),mn=!1;var m=e.memoizedState;o.state=m,Ho(e,r,o,u),a=e.memoizedState,s!==r||m!==a||tt.current||mn?(typeof c=="function"&&(Al(e,n,c,r),a=e.memoizedState),(s=mn||b4(e,n,s,r,m,a,l))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=a),o.props=r,o.state=a,o.context=l,r=s):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,op(t,e),s=e.memoizedProps,l=e.type===e.elementType?s:Ct(e.type,s),o.props=l,h=e.pendingProps,m=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Pt(a):(a=nt(n)?rr:Ue.current,a=Vr(e,a));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==h||m!==a)&&w4(e,o,r,a),mn=!1,m=e.memoizedState,o.state=m,Ho(e,r,o,u);var v=e.memoizedState;s!==h||m!==v||tt.current||mn?(typeof y=="function"&&(Al(e,n,y,r),v=e.memoizedState),(l=mn||b4(e,n,l,r,m,v,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,a)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=v),o.props=r,o.state=v,o.context=a,r=l):(typeof o.componentDidUpdate!="function"||s===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),r=!1)}return Tl(t,e,n,r,i,u)}function Tl(t,e,n,r,u,i){Fp(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return u&&g4(e,n,!1),an(t,e,i);r=e.stateNode,mv.current=e;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=Wr(e,t.child,null,i),e.child=Wr(e,null,s,i)):$e(t,e,s,i),e.memoizedState=r.state,u&&g4(e,n,!0),e.child}function Lp(t){var e=t.stateNode;e.pendingContext?m4(t,e.pendingContext,e.pendingContext!==e.context):e.context&&m4(t,e.context,!1),Uc(t,e.containerInfo)}function M4(t,e,n,r,u){return Ur(),Lc(u),e.flags|=256,$e(t,e,n,r),e.child}var Fl={dehydrated:null,treeContext:null,retryLane:0};function Ll(t){return{baseLanes:t,cachePool:null,transitions:null}}function Bp(t,e,n){var r=e.pendingProps,u=me.current,i=!1,o=(e.flags&128)!==0,s;if((s=o)||(s=t!==null&&t.memoizedState===null?!1:(u&2)!==0),s?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(u|=1),le(me,u&1),t===null)return Cl(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((e.mode&1)===0?e.lanes=1:t.data==="$!"?e.lanes=8:e.lanes=1073741824,null):(o=r.children,t=r.fallback,i?(r=e.mode,i=e.child,o={mode:"hidden",children:o},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Ss(o,r,0,null),t=er(t,r,n,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=Ll(n),e.memoizedState=Fl,t):Gc(e,o));if(u=t.memoizedState,u!==null&&(s=u.dehydrated,s!==null))return gv(t,e,o,r,s,u,n);if(i){i=r.fallback,o=e.mode,u=t.child,s=u.sibling;var a={mode:"hidden",children:r.children};return(o&1)===0&&e.child!==u?(r=e.child,r.childLanes=0,r.pendingProps=a,e.deletions=null):(r=Rn(u,a),r.subtreeFlags=u.subtreeFlags&14680064),s!==null?i=Rn(s,i):(i=er(i,o,n,null),i.flags|=2),i.return=e,r.return=e,r.sibling=i,e.child=r,r=i,i=e.child,o=t.child.memoizedState,o=o===null?Ll(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=t.childLanes&~n,e.memoizedState=Fl,r}return i=t.child,t=i.sibling,r=Rn(i,{mode:"visible",children:r.children}),(e.mode&1)===0&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function Gc(t,e){return e=Ss({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Xi(t,e,n,r){return r!==null&&Lc(r),Wr(e,t.child,null,n),t=Gc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function gv(t,e,n,r,u,i,o){if(n)return e.flags&256?(e.flags&=-257,r=ma(Error(H(422))),Xi(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=r.fallback,u=e.mode,r=Ss({mode:"visible",children:r.children},u,0,null),i=er(i,u,o,null),i.flags|=2,r.return=e,i.return=e,r.sibling=i,e.child=r,(e.mode&1)!==0&&Wr(e,t.child,null,o),e.child.memoizedState=Ll(o),e.memoizedState=Fl,i);if((e.mode&1)===0)return Xi(t,e,o,null);if(u.data==="$!"){if(r=u.nextSibling&&u.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(H(419)),r=ma(i,r,void 0),Xi(t,e,o,r)}if(s=(o&t.childLanes)!==0,et||s){if(r=Ae,r!==null){switch(o&-o){case 4:u=2;break;case 16:u=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:u=32;break;case 536870912:u=268435456;break;default:u=0}u=(u&(r.suspendedLanes|o))!==0?0:u,u!==0&&u!==i.retryLane&&(i.retryLane=u,sn(t,u),Tt(r,t,u,-1))}return n0(),r=ma(Error(H(421))),Xi(t,e,o,r)}return u.data==="$?"?(e.flags|=128,e.child=t.child,e=kv.bind(null,t),u._reactRetry=e,null):(t=i.treeContext,st=On(u.nextSibling),at=e,he=!0,Rt=null,t!==null&&(vt[_t++]=en,vt[_t++]=tn,vt[_t++]=ur,en=t.id,tn=t.overflow,ur=e),e=Gc(e,r.children),e.flags|=4096,e)}function N4(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),kl(t.return,e,n)}function ga(t,e,n,r,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:u}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=u)}function Ip(t,e,n){var r=e.pendingProps,u=r.revealOrder,i=r.tail;if($e(t,e,r.children,n),r=me.current,(r&2)!==0)r=r&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&N4(t,n,e);else if(t.tag===19)N4(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(le(me,r),(e.mode&1)===0)e.memoizedState=null;else switch(u){case"forwards":for(n=e.child,u=null;n!==null;)t=n.alternate,t!==null&&$o(t)===null&&(u=n),n=n.sibling;n=u,n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null),ga(e,!1,u,n,i);break;case"backwards":for(n=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&$o(t)===null){e.child=u;break}t=u.sibling,u.sibling=n,n=u,u=t}ga(e,!0,n,null,i);break;case"together":ga(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function bo(t,e){(e.mode&1)===0&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function an(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),or|=e.lanes,(n&e.childLanes)===0)return null;if(t!==null&&e.child!==t.child)throw Error(H(153));if(e.child!==null){for(t=e.child,n=Rn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Rn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function yv(t,e,n){switch(e.tag){case 3:Lp(e),Ur();break;case 5:fp(e);break;case 1:nt(e.type)&&zo(e);break;case 4:Uc(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,u=e.memoizedProps.value;le(Uo,r._currentValue),r._currentValue=u;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(le(me,me.current&1),e.flags|=128,null):(n&e.child.childLanes)!==0?Bp(t,e,n):(le(me,me.current&1),t=an(t,e,n),t!==null?t.sibling:null);le(me,me.current&1);break;case 19:if(r=(n&e.childLanes)!==0,(t.flags&128)!==0){if(r)return Ip(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),le(me,me.current),r)break;return null;case 22:case 23:return e.lanes=0,Tp(t,e,n)}return an(t,e,n)}var zp,Bl,jp,Vp;zp=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Bl=function(){};jp=function(t,e,n,r){var u=t.memoizedProps;if(u!==r){t=e.stateNode,Qn($t.current);var i=null;switch(n){case"input":u=il(t,u),r=il(t,r),i=[];break;case"select":u=ye({},u,{value:void 0}),r=ye({},r,{value:void 0}),i=[];break;case"textarea":u=al(t,u),r=al(t,r),i=[];break;default:typeof u.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=Bo)}cl(n,r);var o;n=null;for(l in u)if(!r.hasOwnProperty(l)&&u.hasOwnProperty(l)&&u[l]!=null)if(l==="style"){var s=u[l];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(qu.hasOwnProperty(l)?i||(i=[]):(i=i||[]).push(l,null));for(l in r){var a=r[l];if(s=u!=null?u[l]:void 0,r.hasOwnProperty(l)&&a!==s&&(a!=null||s!=null))if(l==="style")if(s){for(o in s)!s.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&s[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(i||(i=[]),i.push(l,n)),n=a;else l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(l,a)):l==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(l,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(qu.hasOwnProperty(l)?(a!=null&&l==="onScroll"&&ce("scroll",t),i||s===a||(i=[])):(i=i||[]).push(l,a))}n&&(i=i||[]).push("style",n);var l=i;(e.updateQueue=l)&&(e.flags|=4)}};Vp=function(t,e,n,r){n!==r&&(e.flags|=4)};function fu(t,e){if(!he)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Be(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var u=t.child;u!==null;)n|=u.lanes|u.childLanes,r|=u.subtreeFlags&14680064,r|=u.flags&14680064,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)n|=u.lanes|u.childLanes,r|=u.subtreeFlags,r|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function vv(t,e,n){var r=e.pendingProps;switch(Fc(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(e),null;case 1:return nt(e.type)&&Io(),Be(e),null;case 3:return r=e.stateNode,Hr(),de(tt),de(Ue),Hc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Yi(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Rt!==null&&($l(Rt),Rt=null))),Bl(t,e),Be(e),null;case 5:Wc(e);var u=Qn(oi.current);if(n=e.type,t!==null&&e.stateNode!=null)jp(t,e,n,r,u),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(H(166));return Be(e),null}if(t=Qn($t.current),Yi(e)){r=e.stateNode,n=e.type;var i=e.memoizedProps;switch(r[Ut]=e,r[ui]=i,t=(e.mode&1)!==0,n){case"dialog":ce("cancel",r),ce("close",r);break;case"iframe":case"object":case"embed":ce("load",r);break;case"video":case"audio":for(u=0;u<Ou.length;u++)ce(Ou[u],r);break;case"source":ce("error",r);break;case"img":case"image":case"link":ce("error",r),ce("load",r);break;case"details":ce("toggle",r);break;case"input":U0(r,i),ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ce("invalid",r);break;case"textarea":H0(r,i),ce("invalid",r)}cl(n,i),u=null;for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];o==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&Ki(r.textContent,s,t),u=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Ki(r.textContent,s,t),u=["children",""+s]):qu.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&ce("scroll",r)}switch(n){case"input":Ii(r),W0(r,i,!0);break;case"textarea":Ii(r),$0(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Bo)}r=u,e.updateQueue=r,r!==null&&(e.flags|=4)}else{o=u.nodeType===9?u:u.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=ph(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Ut]=e,t[ui]=r,zp(t,e,!1,!1),e.stateNode=t;e:{switch(o=fl(n,r),n){case"dialog":ce("cancel",t),ce("close",t),u=r;break;case"iframe":case"object":case"embed":ce("load",t),u=r;break;case"video":case"audio":for(u=0;u<Ou.length;u++)ce(Ou[u],t);u=r;break;case"source":ce("error",t),u=r;break;case"img":case"image":case"link":ce("error",t),ce("load",t),u=r;break;case"details":ce("toggle",t),u=r;break;case"input":U0(t,r),u=il(t,r),ce("invalid",t);break;case"option":u=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},u=ye({},r,{value:void 0}),ce("invalid",t);break;case"textarea":H0(t,r),u=al(t,r),ce("invalid",t);break;default:u=r}cl(n,u),s=u;for(i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="style"?yh(t,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&mh(t,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Xu(t,a):typeof a=="number"&&Xu(t,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(qu.hasOwnProperty(i)?a!=null&&i==="onScroll"&&ce("scroll",t):a!=null&&Ec(t,i,a,o))}switch(n){case"input":Ii(t),W0(t,r,!1);break;case"textarea":Ii(t),$0(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Tn(r.value));break;case"select":t.multiple=!!r.multiple,i=r.value,i!=null?Nr(t,!!r.multiple,i,!1):r.defaultValue!=null&&Nr(t,!!r.multiple,r.defaultValue,!0);break;default:typeof u.onClick=="function"&&(t.onclick=Bo)}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&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Be(e),null;case 6:if(t&&e.stateNode!=null)Vp(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(H(166));if(n=Qn(oi.current),Qn($t.current),Yi(e)){if(r=e.stateNode,n=e.memoizedProps,r[Ut]=e,(i=r.nodeValue!==n)&&(t=at,t!==null))switch(t.tag){case 3:Ki(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ki(r.nodeValue,n,(t.mode&1)!==0)}i&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ut]=e,e.stateNode=r}return Be(e),null;case 13:if(de(me),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(he&&st!==null&&(e.mode&1)!==0&&(e.flags&128)===0)up(),Ur(),e.flags|=98560,i=!1;else if(i=Yi(e),r!==null&&r.dehydrated!==null){if(t===null){if(!i)throw Error(H(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(H(317));i[Ut]=e}else Ur(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Be(e),i=!1}else Rt!==null&&($l(Rt),Rt=null),i=!0;if(!i)return e.flags&65536?e:null}return(e.flags&128)!==0?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,(e.mode&1)!==0&&(t===null||(me.current&1)!==0?Oe===0&&(Oe=3):n0())),e.updateQueue!==null&&(e.flags|=4),Be(e),null);case 4:return Hr(),Bl(t,e),t===null&&ni(e.stateNode.containerInfo),Be(e),null;case 10:return zc(e.type._context),Be(e),null;case 17:return nt(e.type)&&Io(),Be(e),null;case 19:if(de(me),i=e.memoizedState,i===null)return Be(e),null;if(r=(e.flags&128)!==0,o=i.rendering,o===null)if(r)fu(i,!1);else{if(Oe!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=$o(t),o!==null){for(e.flags|=128,fu(i,!1),r=o.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)i=n,t=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,t=o.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return le(me,me.current&1|2),e.child}t=t.sibling}i.tail!==null&&xe()>Kr&&(e.flags|=128,r=!0,fu(i,!1),e.lanes=4194304)}else{if(!r)if(t=$o(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),fu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!he)return Be(e),null}else 2*xe()-i.renderingStartTime>Kr&&n!==1073741824&&(e.flags|=128,r=!0,fu(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(n=i.last,n!==null?n.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=xe(),e.sibling=null,n=me.current,le(me,r?n&1|2:n&1),e):(Be(e),null);case 22:case 23:return t0(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&(e.mode&1)!==0?(ot&1073741824)!==0&&(Be(e),e.subtreeFlags&6&&(e.flags|=8192)):Be(e),null;case 24:return null;case 25:return null}throw Error(H(156,e.tag))}function _v(t,e){switch(Fc(e),e.tag){case 1:return nt(e.type)&&Io(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Hr(),de(tt),de(Ue),Hc(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 5:return Wc(e),null;case 13:if(de(me),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(H(340));Ur()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return de(me),null;case 4:return Hr(),null;case 10:return zc(e.type._context),null;case 22:case 23:return t0(),null;case 24:return null;default:return null}}var Gi=!1,je=!1,Ev=typeof WeakSet=="function"?WeakSet:Set,$=null;function Rr(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ee(t,e,r)}else n.current=null}function Il(t,e,n){try{n()}catch(r){Ee(t,e,r)}}var T4=!1;function bv(t,e){if(bl=To,t=$h(),Nc(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var u=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,l=0,c=0,h=t,m=null;t:for(;;){for(var y;h!==n||u!==0&&h.nodeType!==3||(s=o+u),h!==i||r!==0&&h.nodeType!==3||(a=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(y=h.firstChild)!==null;)m=h,h=y;for(;;){if(h===t)break t;if(m===n&&++l===u&&(s=o),m===i&&++c===r&&(a=o),(y=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(wl={focusedElem:t,selectionRange:n},To=!1,$=e;$!==null;)if(e=$,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,$=t;else for(;$!==null;){e=$;try{var v=e.alternate;if((e.flags&1024)!==0)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,C=v.memoizedState,E=e.stateNode,w=E.getSnapshotBeforeUpdate(e.elementType===e.type?S:Ct(e.type,S),C);E.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var x=e.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(N){Ee(e,e.return,N)}if(t=e.sibling,t!==null){t.return=e.return,$=t;break}$=e.return}return v=T4,T4=!1,v}function zu(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var u=r=r.next;do{if((u.tag&t)===t){var i=u.destroy;u.destroy=void 0,i!==void 0&&Il(e,n,i)}u=u.next}while(u!==r)}}function xs(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function zl(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function Up(t){var e=t.alternate;e!==null&&(t.alternate=null,Up(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Ut],delete e[ui],delete e[Sl],delete e[rv],delete e[uv])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Wp(t){return t.tag===5||t.tag===3||t.tag===4}function F4(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Wp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function jl(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Bo));else if(r!==4&&(t=t.child,t!==null))for(jl(t,e,n),t=t.sibling;t!==null;)jl(t,e,n),t=t.sibling}function Vl(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Vl(t,e,n),t=t.sibling;t!==null;)Vl(t,e,n),t=t.sibling}var Me=null,kt=!1;function dn(t,e,n){for(n=n.child;n!==null;)Hp(t,e,n),n=n.sibling}function Hp(t,e,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(ms,n)}catch{}switch(n.tag){case 5:je||Rr(n,e);case 6:var r=Me,u=kt;Me=null,dn(t,e,n),Me=r,kt=u,Me!==null&&(kt?(t=Me,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&&(kt?(t=Me,n=n.stateNode,t.nodeType===8?la(t.parentNode,n):t.nodeType===1&&la(t,n),Ju(t)):la(Me,n.stateNode));break;case 4:r=Me,u=kt,Me=n.stateNode.containerInfo,kt=!0,dn(t,e,n),Me=r,kt=u;break;case 0:case 11:case 14:case 15:if(!je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){u=r=r.next;do{var i=u,o=i.destroy;i=i.tag,o!==void 0&&((i&2)!==0||(i&4)!==0)&&Il(n,e,o),u=u.next}while(u!==r)}dn(t,e,n);break;case 1:if(!je&&(Rr(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ee(n,e,s)}dn(t,e,n);break;case 21:dn(t,e,n);break;case 22:n.mode&1?(je=(r=je)||n.memoizedState!==null,dn(t,e,n),je=r):dn(t,e,n);break;default:dn(t,e,n)}}function L4(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new Ev),e.forEach(function(r){var u=Av.bind(null,t,r);n.has(r)||(n.add(r),r.then(u,u))})}}function Ot(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var u=n[r];try{var i=t,o=e,s=o;e:for(;s!==null;){switch(s.tag){case 5:Me=s.stateNode,kt=!1;break e;case 3:Me=s.stateNode.containerInfo,kt=!0;break e;case 4:Me=s.stateNode.containerInfo,kt=!0;break e}s=s.return}if(Me===null)throw Error(H(160));Hp(i,o,u),Me=null,kt=!1;var a=u.alternate;a!==null&&(a.return=null),u.return=null}catch(l){Ee(u,e,l)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)$p(e,t),e=e.sibling}function $p(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Ot(e,t),zt(t),r&4){try{zu(3,t,t.return),xs(3,t)}catch(S){Ee(t,t.return,S)}try{zu(5,t,t.return)}catch(S){Ee(t,t.return,S)}}break;case 1:Ot(e,t),zt(t),r&512&&n!==null&&Rr(n,n.return);break;case 5:if(Ot(e,t),zt(t),r&512&&n!==null&&Rr(n,n.return),t.flags&32){var u=t.stateNode;try{Xu(u,"")}catch(S){Ee(t,t.return,S)}}if(r&4&&(u=t.stateNode,u!=null)){var i=t.memoizedProps,o=n!==null?n.memoizedProps:i,s=t.type,a=t.updateQueue;if(t.updateQueue=null,a!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&dh(u,i),fl(s,o);var l=fl(s,i);for(o=0;o<a.length;o+=2){var c=a[o],h=a[o+1];c==="style"?yh(u,h):c==="dangerouslySetInnerHTML"?mh(u,h):c==="children"?Xu(u,h):Ec(u,c,h,l)}switch(s){case"input":ol(u,i);break;case"textarea":hh(u,i);break;case"select":var m=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?Nr(u,!!i.multiple,y,!1):m!==!!i.multiple&&(i.defaultValue!=null?Nr(u,!!i.multiple,i.defaultValue,!0):Nr(u,!!i.multiple,i.multiple?[]:"",!1))}u[ui]=i}catch(S){Ee(t,t.return,S)}}break;case 6:if(Ot(e,t),zt(t),r&4){if(t.stateNode===null)throw Error(H(162));u=t.stateNode,i=t.memoizedProps;try{u.nodeValue=i}catch(S){Ee(t,t.return,S)}}break;case 3:if(Ot(e,t),zt(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ju(e.containerInfo)}catch(S){Ee(t,t.return,S)}break;case 4:Ot(e,t),zt(t);break;case 13:Ot(e,t),zt(t),u=t.child,u.flags&8192&&(i=u.memoizedState!==null,u.stateNode.isHidden=i,!i||u.alternate!==null&&u.alternate.memoizedState!==null||(Jc=xe())),r&4&&L4(t);break;case 22:if(c=n!==null&&n.memoizedState!==null,t.mode&1?(je=(l=je)||c,Ot(e,t),je=l):Ot(e,t),zt(t),r&8192){if(l=t.memoizedState!==null,(t.stateNode.isHidden=l)&&!c&&(t.mode&1)!==0)for($=t,c=t.child;c!==null;){for(h=$=c;$!==null;){switch(m=$,y=m.child,m.tag){case 0:case 11:case 14:case 15:zu(4,m,m.return);break;case 1:Rr(m,m.return);var v=m.stateNode;if(typeof v.componentWillUnmount=="function"){r=m,n=m.return;try{e=r,v.props=e.memoizedProps,v.state=e.memoizedState,v.componentWillUnmount()}catch(S){Ee(r,n,S)}}break;case 5:Rr(m,m.return);break;case 22:if(m.memoizedState!==null){I4(h);continue}}y!==null?(y.return=m,$=y):I4(h)}c=c.sibling}e:for(c=null,h=t;;){if(h.tag===5){if(c===null){c=h;try{u=h.stateNode,l?(i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=h.stateNode,a=h.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=gh("display",o))}catch(S){Ee(t,t.return,S)}}}else if(h.tag===6){if(c===null)try{h.stateNode.nodeValue=l?"":h.memoizedProps}catch(S){Ee(t,t.return,S)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===t)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;c===h&&(c=null),h=h.return}c===h&&(c=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Ot(e,t),zt(t),r&4&&L4(t);break;case 21:break;default:Ot(e,t),zt(t)}}function zt(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(Wp(n)){var r=n;break e}n=n.return}throw Error(H(160))}switch(r.tag){case 5:var u=r.stateNode;r.flags&32&&(Xu(u,""),r.flags&=-33);var i=F4(t);Vl(t,i,u);break;case 3:case 4:var o=r.stateNode.containerInfo,s=F4(t);jl(t,s,o);break;default:throw Error(H(161))}}catch(a){Ee(t,t.return,a)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function wv(t,e,n){$=t,Kp(t)}function Kp(t,e,n){for(var r=(t.mode&1)!==0;$!==null;){var u=$,i=u.child;if(u.tag===22&&r){var o=u.memoizedState!==null||Gi;if(!o){var s=u.alternate,a=s!==null&&s.memoizedState!==null||je;s=Gi;var l=je;if(Gi=o,(je=a)&&!l)for($=u;$!==null;)o=$,a=o.child,o.tag===22&&o.memoizedState!==null?z4(u):a!==null?(a.return=o,$=a):z4(u);for(;i!==null;)$=i,Kp(i),i=i.sibling;$=u,Gi=s,je=l}B4(t)}else(u.subtreeFlags&8772)!==0&&i!==null?(i.return=u,$=i):B4(t)}}function B4(t){for(;$!==null;){var e=$;if((e.flags&8772)!==0){var n=e.alternate;try{if((e.flags&8772)!==0)switch(e.tag){case 0:case 11:case 15:je||xs(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!je)if(n===null)r.componentDidMount();else{var u=e.elementType===e.type?n.memoizedProps:Ct(e.type,n.memoizedProps);r.componentDidUpdate(u,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&E4(e,i,r);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}E4(e,o,n)}break;case 5:var s=e.stateNode;if(n===null&&e.flags&4){n=s;var a=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var l=e.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var h=c.dehydrated;h!==null&&Ju(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(H(163))}je||e.flags&512&&zl(e)}catch(m){Ee(e,e.return,m)}}if(e===t){$=null;break}if(n=e.sibling,n!==null){n.return=e.return,$=n;break}$=e.return}}function I4(t){for(;$!==null;){var e=$;if(e===t){$=null;break}var n=e.sibling;if(n!==null){n.return=e.return,$=n;break}$=e.return}}function z4(t){for(;$!==null;){var e=$;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{xs(4,e)}catch(a){Ee(e,n,a)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var u=e.return;try{r.componentDidMount()}catch(a){Ee(e,u,a)}}var i=e.return;try{zl(e)}catch(a){Ee(e,i,a)}break;case 5:var o=e.return;try{zl(e)}catch(a){Ee(e,o,a)}}}catch(a){Ee(e,e.return,a)}if(e===t){$=null;break}var s=e.sibling;if(s!==null){s.return=e.return,$=s;break}$=e.return}}var xv=Math.ceil,qo=ln.ReactCurrentDispatcher,Qc=ln.ReactCurrentOwner,wt=ln.ReactCurrentBatchConfig,te=0,Ae=null,Pe=null,Ne=0,ot=0,Mr=zn(0),Oe=0,ci=null,or=0,Ps=0,Zc=0,ju=null,Ze=null,Jc=0,Kr=1/0,Qt=null,Xo=!1,Ul=null,kn=null,Qi=!1,_n=null,Go=0,Vu=0,Wl=null,wo=-1,xo=0;function Ye(){return(te&6)!==0?xe():wo!==-1?wo:wo=xe()}function An(t){return(t.mode&1)===0?1:(te&2)!==0&&Ne!==0?Ne&-Ne:ov.transition!==null?(xo===0&&(xo=kh()),xo):(t=oe,t!==0||(t=window.event,t=t===void 0?16:Lh(t.type)),t)}function Tt(t,e,n,r){if(50<Vu)throw Vu=0,Wl=null,Error(H(185));_i(t,n,r),((te&2)===0||t!==Ae)&&(t===Ae&&((te&2)===0&&(Ps|=n),Oe===4&&yn(t,Ne)),rt(t,r),n===1&&te===0&&(e.mode&1)===0&&(Kr=xe()+500,Es&&jn()))}function rt(t,e){var n=t.callbackNode;oy(t,e);var r=No(t,t===Ae?Ne:0);if(r===0)n!==null&&q0(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&q0(n),e===1)t.tag===0?iv(j4.bind(null,t)):tp(j4.bind(null,t)),tv(function(){(te&6)===0&&jn()}),n=null;else{switch(Ah(r)){case 1:n=Sc;break;case 4:n=Oh;break;case 16:n=Mo;break;case 536870912:n=Ch;break;default:n=Mo}n=e3(n,Yp.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function Yp(t,e){if(wo=-1,xo=0,(te&6)!==0)throw Error(H(327));var n=t.callbackNode;if(Ir()&&t.callbackNode!==n)return null;var r=No(t,t===Ae?Ne:0);if(r===0)return null;if((r&30)!==0||(r&t.expiredLanes)!==0||e)e=Qo(t,r);else{e=r;var u=te;te|=2;var i=Xp();(Ae!==t||Ne!==e)&&(Qt=null,Kr=xe()+500,Jn(t,e));do try{Dv();break}catch(s){qp(t,s)}while(1);Ic(),qo.current=i,te=u,Pe!==null?e=0:(Ae=null,Ne=0,e=Oe)}if(e!==0){if(e===2&&(u=gl(t),u!==0&&(r=u,e=Hl(t,u))),e===1)throw n=ci,Jn(t,0),yn(t,r),rt(t,xe()),n;if(e===6)yn(t,r);else{if(u=t.current.alternate,(r&30)===0&&!Pv(u)&&(e=Qo(t,r),e===2&&(i=gl(t),i!==0&&(r=i,e=Hl(t,i))),e===1))throw n=ci,Jn(t,0),yn(t,r),rt(t,xe()),n;switch(t.finishedWork=u,t.finishedLanes=r,e){case 0:case 1:throw Error(H(345));case 2:$n(t,Ze,Qt);break;case 3:if(yn(t,r),(r&130023424)===r&&(e=Jc+500-xe(),10<e)){if(No(t,0)!==0)break;if(u=t.suspendedLanes,(u&r)!==r){Ye(),t.pingedLanes|=t.suspendedLanes&u;break}t.timeoutHandle=Pl($n.bind(null,t,Ze,Qt),e);break}$n(t,Ze,Qt);break;case 4:if(yn(t,r),(r&4194240)===r)break;for(e=t.eventTimes,u=-1;0<r;){var o=31-Nt(r);i=1<<o,o=e[o],o>u&&(u=o),r&=~i}if(r=u,r=xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xv(r/1960))-r,10<r){t.timeoutHandle=Pl($n.bind(null,t,Ze,Qt),r);break}$n(t,Ze,Qt);break;case 5:$n(t,Ze,Qt);break;default:throw Error(H(329))}}}return rt(t,xe()),t.callbackNode===n?Yp.bind(null,t):null}function Hl(t,e){var n=ju;return t.current.memoizedState.isDehydrated&&(Jn(t,e).flags|=256),t=Qo(t,e),t!==2&&(e=Ze,Ze=n,e!==null&&$l(e)),t}function $l(t){Ze===null?Ze=t:Ze.push.apply(Ze,t)}function Pv(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var u=n[r],i=u.getSnapshot;u=u.value;try{if(!Ft(i(),u))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function yn(t,e){for(e&=~Zc,e&=~Ps,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Nt(e),r=1<<n;t[n]=-1,e&=~r}}function j4(t){if((te&6)!==0)throw Error(H(327));Ir();var e=No(t,0);if((e&1)===0)return rt(t,xe()),null;var n=Qo(t,e);if(t.tag!==0&&n===2){var r=gl(t);r!==0&&(e=r,n=Hl(t,r))}if(n===1)throw n=ci,Jn(t,0),yn(t,e),rt(t,xe()),n;if(n===6)throw Error(H(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,$n(t,Ze,Qt),rt(t,xe()),null}function e0(t,e){var n=te;te|=1;try{return t(e)}finally{te=n,te===0&&(Kr=xe()+500,Es&&jn())}}function sr(t){_n!==null&&_n.tag===0&&(te&6)===0&&Ir();var e=te;te|=1;var n=wt.transition,r=oe;try{if(wt.transition=null,oe=1,t)return t()}finally{oe=r,wt.transition=n,te=e,(te&6)===0&&jn()}}function t0(){ot=Mr.current,de(Mr)}function Jn(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,ev(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(Fc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Io();break;case 3:Hr(),de(tt),de(Ue),Hc();break;case 5:Wc(r);break;case 4:Hr();break;case 13:de(me);break;case 19:de(me);break;case 10:zc(r.type._context);break;case 22:case 23:t0()}n=n.return}if(Ae=t,Pe=t=Rn(t.current,null),Ne=ot=e,Oe=0,ci=null,Zc=Ps=or=0,Ze=ju=null,Gn!==null){for(e=0;e<Gn.length;e++)if(n=Gn[e],r=n.interleaved,r!==null){n.interleaved=null;var u=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=u,r.next=o}n.pending=r}Gn=null}return t}function qp(t,e){do{var n=Pe;try{if(Ic(),_o.current=Yo,Ko){for(var r=ge.memoizedState;r!==null;){var u=r.queue;u!==null&&(u.pending=null),r=r.next}Ko=!1}if(ir=0,ke=De=ge=null,Iu=!1,si=0,Qc.current=null,n===null||n.return===null){Oe=1,ci=e,Pe=null;break}e:{var i=t,o=n.return,s=n,a=e;if(e=Ne,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var l=a,c=s,h=c.tag;if((c.mode&1)===0&&(h===0||h===11||h===15)){var m=c.alternate;m?(c.updateQueue=m.updateQueue,c.memoizedState=m.memoizedState,c.lanes=m.lanes):(c.updateQueue=null,c.memoizedState=null)}var y=O4(o);if(y!==null){y.flags&=-257,C4(y,o,s,i,e),y.mode&1&&D4(i,l,e),e=y,a=l;var v=e.updateQueue;if(v===null){var S=new Set;S.add(a),e.updateQueue=S}else v.add(a);break e}else{if((e&1)===0){D4(i,l,e),n0();break e}a=Error(H(426))}}else if(he&&s.mode&1){var C=O4(o);if(C!==null){(C.flags&65536)===0&&(C.flags|=256),C4(C,o,s,i,e),Lc($r(a,s));break e}}i=a=$r(a,s),Oe!==4&&(Oe=2),ju===null?ju=[i]:ju.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var E=Rp(i,a,e);_4(i,E);break e;case 1:s=a;var w=i.type,x=i.stateNode;if((i.flags&128)===0&&(typeof w.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(kn===null||!kn.has(x)))){i.flags|=65536,e&=-e,i.lanes|=e;var N=Mp(i,s,e);_4(i,N);break e}}i=i.return}while(i!==null)}Qp(n)}catch(P){e=P,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(1)}function Xp(){var t=qo.current;return qo.current=Yo,t===null?Yo:t}function n0(){(Oe===0||Oe===3||Oe===2)&&(Oe=4),Ae===null||(or&268435455)===0&&(Ps&268435455)===0||yn(Ae,Ne)}function Qo(t,e){var n=te;te|=2;var r=Xp();(Ae!==t||Ne!==e)&&(Qt=null,Jn(t,e));do try{Sv();break}catch(u){qp(t,u)}while(1);if(Ic(),te=n,qo.current=r,Pe!==null)throw Error(H(261));return Ae=null,Ne=0,Oe}function Sv(){for(;Pe!==null;)Gp(Pe)}function Dv(){for(;Pe!==null&&!Qg();)Gp(Pe)}function Gp(t){var e=Jp(t.alternate,t,ot);t.memoizedProps=t.pendingProps,e===null?Qp(t):Pe=e,Qc.current=null}function Qp(t){var e=t;do{var n=e.alternate;if(t=e.return,(e.flags&32768)===0){if(n=vv(n,e,ot),n!==null){Pe=n;return}}else{if(n=_v(n,e),n!==null){n.flags&=32767,Pe=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Oe=6,Pe=null;return}}if(e=e.sibling,e!==null){Pe=e;return}Pe=e=t}while(e!==null);Oe===0&&(Oe=5)}function $n(t,e,n){var r=oe,u=wt.transition;try{wt.transition=null,oe=1,Ov(t,e,n,r)}finally{wt.transition=u,oe=r}return null}function Ov(t,e,n,r){do Ir();while(_n!==null);if((te&6)!==0)throw Error(H(327));n=t.finishedWork;var u=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(H(177));t.callbackNode=null,t.callbackPriority=0;var i=n.lanes|n.childLanes;if(sy(t,i),t===Ae&&(Pe=Ae=null,Ne=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Qi||(Qi=!0,e3(Mo,function(){return Ir(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=wt.transition,wt.transition=null;var o=oe;oe=1;var s=te;te|=4,Qc.current=null,bv(t,n),$p(n,t),Yy(wl),To=!!bl,wl=bl=null,t.current=n,wv(n),Zg(),te=s,oe=o,wt.transition=i}else t.current=n;if(Qi&&(Qi=!1,_n=t,Go=u),i=t.pendingLanes,i===0&&(kn=null),ty(n.stateNode),rt(t,xe()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)u=e[n],r(u.value,{componentStack:u.stack,digest:u.digest});if(Xo)throw Xo=!1,t=Ul,Ul=null,t;return(Go&1)!==0&&t.tag!==0&&Ir(),i=t.pendingLanes,(i&1)!==0?t===Wl?Vu++:(Vu=0,Wl=t):Vu=0,jn(),null}function Ir(){if(_n!==null){var t=Ah(Go),e=wt.transition,n=oe;try{if(wt.transition=null,oe=16>t?16:t,_n===null)var r=!1;else{if(t=_n,_n=null,Go=0,(te&6)!==0)throw Error(H(331));var u=te;for(te|=4,$=t.current;$!==null;){var i=$,o=i.child;if(($.flags&16)!==0){var s=i.deletions;if(s!==null){for(var a=0;a<s.length;a++){var l=s[a];for($=l;$!==null;){var c=$;switch(c.tag){case 0:case 11:case 15:zu(8,c,i)}var h=c.child;if(h!==null)h.return=c,$=h;else for(;$!==null;){c=$;var m=c.sibling,y=c.return;if(Up(c),c===l){$=null;break}if(m!==null){m.return=y,$=m;break}$=y}}}var v=i.alternate;if(v!==null){var S=v.child;if(S!==null){v.child=null;do{var C=S.sibling;S.sibling=null,S=C}while(S!==null)}}$=i}}if((i.subtreeFlags&2064)!==0&&o!==null)o.return=i,$=o;else e:for(;$!==null;){if(i=$,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:zu(9,i,i.return)}var E=i.sibling;if(E!==null){E.return=i.return,$=E;break e}$=i.return}}var w=t.current;for($=w;$!==null;){o=$;var x=o.child;if((o.subtreeFlags&2064)!==0&&x!==null)x.return=o,$=x;else e:for(o=w;$!==null;){if(s=$,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:xs(9,s)}}catch(P){Ee(s,s.return,P)}if(s===o){$=null;break e}var N=s.sibling;if(N!==null){N.return=s.return,$=N;break e}$=s.return}}if(te=u,jn(),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(ms,t)}catch{}r=!0}return r}finally{oe=n,wt.transition=e}}return!1}function V4(t,e,n){e=$r(n,e),e=Rp(t,e,1),t=Cn(t,e,1),e=Ye(),t!==null&&(_i(t,1,e),rt(t,e))}function Ee(t,e,n){if(t.tag===3)V4(t,t,n);else for(;e!==null;){if(e.tag===3){V4(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(kn===null||!kn.has(r))){t=$r(n,t),t=Mp(e,t,1),e=Cn(e,t,1),t=Ye(),e!==null&&(_i(e,1,t),rt(e,t));break}}e=e.return}}function Cv(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=Ye(),t.pingedLanes|=t.suspendedLanes&n,Ae===t&&(Ne&n)===n&&(Oe===4||Oe===3&&(Ne&130023424)===Ne&&500>xe()-Jc?Jn(t,0):Zc|=n),rt(t,e)}function Zp(t,e){e===0&&((t.mode&1)===0?e=1:(e=Vi,Vi<<=1,(Vi&130023424)===0&&(Vi=4194304)));var n=Ye();t=sn(t,e),t!==null&&(_i(t,e,n),rt(t,n))}function kv(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Zp(t,n)}function Av(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,u=t.memoizedState;u!==null&&(n=u.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(H(314))}r!==null&&r.delete(e),Zp(t,n)}var Jp;Jp=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||tt.current)et=!0;else{if((t.lanes&n)===0&&(e.flags&128)===0)return et=!1,yv(t,e,n);et=(t.flags&131072)!==0}else et=!1,he&&(e.flags&1048576)!==0&&np(e,Vo,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;bo(t,e),t=e.pendingProps;var u=Vr(e,Ue.current);Br(e,n),u=Kc(null,e,r,t,u,n);var i=Yc();return e.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,nt(r)?(i=!0,zo(e)):i=!1,e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,Vc(e),u.updater=bs,e.stateNode=u,u._reactInternals=e,Rl(e,r,t,n),e=Tl(null,e,r,!0,i,n)):(e.tag=0,he&&i&&Tc(e),$e(null,e,u,n),e=e.child),e;case 16:r=e.elementType;e:{switch(bo(t,e),t=e.pendingProps,u=r._init,r=u(r._payload),e.type=r,u=e.tag=Mv(r),t=Ct(r,t),u){case 0:e=Nl(null,e,r,t,n);break e;case 1:e=R4(null,e,r,t,n);break e;case 11:e=k4(null,e,r,t,n);break e;case 14:e=A4(null,e,r,Ct(r.type,t),n);break e}throw Error(H(306,r,""))}return e;case 0:return r=e.type,u=e.pendingProps,u=e.elementType===r?u:Ct(r,u),Nl(t,e,r,u,n);case 1:return r=e.type,u=e.pendingProps,u=e.elementType===r?u:Ct(r,u),R4(t,e,r,u,n);case 3:e:{if(Lp(e),t===null)throw Error(H(387));r=e.pendingProps,i=e.memoizedState,u=i.element,op(t,e),Ho(e,r,null,n);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){u=$r(Error(H(423)),e),e=M4(t,e,r,n,u);break e}else if(r!==u){u=$r(Error(H(424)),e),e=M4(t,e,r,n,u);break e}else for(st=On(e.stateNode.containerInfo.firstChild),at=e,he=!0,Rt=null,n=cp(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ur(),r===u){e=an(t,e,n);break e}$e(t,e,r,n)}e=e.child}return e;case 5:return fp(e),t===null&&Cl(e),r=e.type,u=e.pendingProps,i=t!==null?t.memoizedProps:null,o=u.children,xl(r,u)?o=null:i!==null&&xl(r,i)&&(e.flags|=32),Fp(t,e),$e(t,e,o,n),e.child;case 6:return t===null&&Cl(e),null;case 13:return Bp(t,e,n);case 4:return Uc(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Wr(e,null,r,n):$e(t,e,r,n),e.child;case 11:return r=e.type,u=e.pendingProps,u=e.elementType===r?u:Ct(r,u),k4(t,e,r,u,n);case 7:return $e(t,e,e.pendingProps,n),e.child;case 8:return $e(t,e,e.pendingProps.children,n),e.child;case 12:return $e(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,u=e.pendingProps,i=e.memoizedProps,o=u.value,le(Uo,r._currentValue),r._currentValue=o,i!==null)if(Ft(i.value,o)){if(i.children===u.children&&!tt.current){e=an(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=nn(-1,n&-n),a.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?a.next=a:(a.next=c.next,c.next=a),l.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),kl(i.return,n,e),s.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(H(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),kl(o,n,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}$e(t,e,u.children,n),e=e.child}return e;case 9:return u=e.type,r=e.pendingProps.children,Br(e,n),u=Pt(u),r=r(u),e.flags|=1,$e(t,e,r,n),e.child;case 14:return r=e.type,u=Ct(r,e.pendingProps),u=Ct(r.type,u),A4(t,e,r,u,n);case 15:return Np(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,u=e.pendingProps,u=e.elementType===r?u:Ct(r,u),bo(t,e),e.tag=1,nt(r)?(t=!0,zo(e)):t=!1,Br(e,n),ap(e,r,u),Rl(e,r,u,n),Tl(null,e,r,!0,t,n);case 19:return Ip(t,e,n);case 22:return Tp(t,e,n)}throw Error(H(156,e.tag))};function e3(t,e){return Dh(t,e)}function Rv(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 bt(t,e,n,r){return new Rv(t,e,n,r)}function r0(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Mv(t){if(typeof t=="function")return r0(t)?1:0;if(t!=null){if(t=t.$$typeof,t===wc)return 11;if(t===xc)return 14}return 2}function Rn(t,e){var n=t.alternate;return n===null?(n=bt(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Po(t,e,n,r,u,i){var o=2;if(r=t,typeof t=="function")r0(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case wr:return er(n.children,u,i,e);case bc:o=8,u|=8;break;case tl:return t=bt(12,n,e,u|2),t.elementType=tl,t.lanes=i,t;case nl:return t=bt(13,n,e,u),t.elementType=nl,t.lanes=i,t;case rl:return t=bt(19,n,e,u),t.elementType=rl,t.lanes=i,t;case lh:return Ss(n,u,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case sh:o=10;break e;case ah:o=9;break e;case wc:o=11;break e;case xc:o=14;break e;case pn:o=16,r=null;break e}throw Error(H(130,t==null?t:typeof t,""))}return e=bt(o,n,e,u),e.elementType=t,e.type=r,e.lanes=i,e}function er(t,e,n,r){return t=bt(7,t,r,e),t.lanes=n,t}function Ss(t,e,n,r){return t=bt(22,t,r,e),t.elementType=lh,t.lanes=n,t.stateNode={isHidden:!1},t}function ya(t,e,n){return t=bt(6,t,null,e),t.lanes=n,t}function va(t,e,n){return e=bt(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Nv(t,e,n,r,u){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Zs(0),this.expirationTimes=Zs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zs(0),this.identifierPrefix=r,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function u0(t,e,n,r,u,i,o,s,a){return t=new Nv(t,e,n,s,a),e===1?(e=1,i===!0&&(e|=8)):e=0,i=bt(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vc(i),t}function Tv(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:br,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function t3(t){if(!t)return Fn;t=t._reactInternals;e:{if(fr(t)!==t||t.tag!==1)throw Error(H(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(nt(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(H(171))}if(t.tag===1){var n=t.type;if(nt(n))return ep(t,n,e)}return e}function n3(t,e,n,r,u,i,o,s,a){return t=u0(n,r,!0,t,u,i,o,s,a),t.context=t3(null),n=t.current,r=Ye(),u=An(n),i=nn(r,u),i.callback=e!=null?e:null,Cn(n,i,u),t.current.lanes=u,_i(t,u,r),rt(t,r),t}function Ds(t,e,n,r){var u=e.current,i=Ye(),o=An(u);return n=t3(n),e.context===null?e.context=n:e.pendingContext=n,e=nn(i,o),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Cn(u,e,o),t!==null&&(Tt(t,u,o,i),vo(t,u,o)),o}function Zo(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function U4(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function i0(t,e){U4(t,e),(t=t.alternate)&&U4(t,e)}function Fv(){return null}var r3=typeof reportError=="function"?reportError:function(t){console.error(t)};function o0(t){this._internalRoot=t}Os.prototype.render=o0.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(H(409));Ds(t,e,null,null)};Os.prototype.unmount=o0.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;sr(function(){Ds(null,t,null,null)}),e[on]=null}};function Os(t){this._internalRoot=t}Os.prototype.unstable_scheduleHydration=function(t){if(t){var e=Nh();t={blockedOn:null,target:t,priority:e};for(var n=0;n<gn.length&&e!==0&&e<gn[n].priority;n++);gn.splice(n,0,t),n===0&&Fh(t)}};function s0(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Cs(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function W4(){}function Lv(t,e,n,r,u){if(u){if(typeof r=="function"){var i=r;r=function(){var l=Zo(o);i.call(l)}}var o=n3(e,r,t,0,null,!1,!1,"",W4);return t._reactRootContainer=o,t[on]=o.current,ni(t.nodeType===8?t.parentNode:t),sr(),o}for(;u=t.lastChild;)t.removeChild(u);if(typeof r=="function"){var s=r;r=function(){var l=Zo(a);s.call(l)}}var a=u0(t,0,!1,null,null,!1,!1,"",W4);return t._reactRootContainer=a,t[on]=a.current,ni(t.nodeType===8?t.parentNode:t),sr(function(){Ds(e,a,n,r)}),a}function ks(t,e,n,r,u){var i=n._reactRootContainer;if(i){var o=i;if(typeof u=="function"){var s=u;u=function(){var a=Zo(o);s.call(a)}}Ds(e,o,t,u)}else o=Lv(n,e,t,u,r);return Zo(o)}Rh=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Du(e.pendingLanes);n!==0&&(Dc(e,n|1),rt(e,xe()),(te&6)===0&&(Kr=xe()+500,jn()))}break;case 13:sr(function(){var r=sn(t,1);if(r!==null){var u=Ye();Tt(r,t,1,u)}}),i0(t,1)}};Oc=function(t){if(t.tag===13){var e=sn(t,134217728);if(e!==null){var n=Ye();Tt(e,t,134217728,n)}i0(t,134217728)}};Mh=function(t){if(t.tag===13){var e=An(t),n=sn(t,e);if(n!==null){var r=Ye();Tt(n,t,e,r)}i0(t,e)}};Nh=function(){return oe};Th=function(t,e){var n=oe;try{return oe=t,e()}finally{oe=n}};hl=function(t,e,n){switch(e){case"input":if(ol(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var u=_s(r);if(!u)throw Error(H(90));fh(r),ol(r,u)}}}break;case"textarea":hh(t,n);break;case"select":e=n.value,e!=null&&Nr(t,!!n.multiple,e,!1)}};Eh=e0;bh=sr;var Bv={usingClientEntryPoint:!1,Events:[bi,Dr,_s,vh,_h,e0]},du={findFiberByHostInstance:Xn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Iv={bundleType:du.bundleType,version:du.version,rendererPackageName:du.rendererPackageName,rendererConfig:du.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ln.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Ph(t),t===null?null:t.stateNode},findFiberByHostInstance:du.findFiberByHostInstance||Fv,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 Zi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zi.isDisabled&&Zi.supportsFiber)try{ms=Zi.inject(Iv),Ht=Zi}catch{}}dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bv;dt.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!s0(e))throw Error(H(200));return Tv(t,e,null,n)};dt.createRoot=function(t,e){if(!s0(t))throw Error(H(299));var n=!1,r="",u=r3;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(u=e.onRecoverableError)),e=u0(t,1,!1,null,null,n,!1,r,u),t[on]=e.current,ni(t.nodeType===8?t.parentNode:t),new o0(e)};dt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(H(188)):(t=Object.keys(t).join(","),Error(H(268,t)));return t=Ph(e),t=t===null?null:t.stateNode,t};dt.flushSync=function(t){return sr(t)};dt.hydrate=function(t,e,n){if(!Cs(e))throw Error(H(200));return ks(null,t,e,!0,n)};dt.hydrateRoot=function(t,e,n){if(!s0(t))throw Error(H(405));var r=n!=null&&n.hydratedSources||null,u=!1,i="",o=r3;if(n!=null&&(n.unstable_strictMode===!0&&(u=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=n3(e,null,t,1,n!=null?n:null,u,!1,i,o),t[on]=e.current,ni(t),r)for(t=0;t<r.length;t++)n=r[t],u=n._getVersion,u=u(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,u]:e.mutableSourceEagerHydrationData.push(n,u);return new Os(e)};dt.render=function(t,e,n){if(!Cs(e))throw Error(H(200));return ks(null,t,e,!1,n)};dt.unmountComponentAtNode=function(t){if(!Cs(t))throw Error(H(40));return t._reactRootContainer?(sr(function(){ks(null,null,t,!1,function(){t._reactRootContainer=null,t[on]=null})}),!0):!1};dt.unstable_batchedUpdates=e0;dt.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!Cs(n))throw Error(H(200));if(t==null||t._reactInternals===void 0)throw Error(H(38));return ks(t,e,n,!1,r)};dt.version="18.2.0-next-9e3b772b8-20220608";(function(t){function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}e(),t.exports=dt})(nh);var u3,H4=nh.exports;u3=H4.createRoot,H4.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 Jo(){return Jo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jo.apply(this,arguments)}var En;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(En||(En={}));const $4="popstate";function zv(t){t===void 0&&(t={});function e(r,u){let{pathname:i,search:o,hash:s}=r.location;return Kl("",{pathname:i,search:o,hash:s},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function n(r,u){return typeof u=="string"?u:Yl(u)}return Vv(e,n,null,t)}function jv(){return Math.random().toString(36).substr(2,8)}function K4(t){return{usr:t.state,key:t.key}}function Kl(t,e,n,r){return n===void 0&&(n=null),Jo({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?eu(e):e,{state:n,key:e&&e.key||r||jv()})}function Yl(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function eu(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function Vv(t,e,n,r){r===void 0&&(r={});let{window:u=document.defaultView,v5Compat:i=!1}=r,o=u.history,s=En.Pop,a=null;function l(){s=En.Pop,a&&a({action:s,location:m.location})}function c(y,v){s=En.Push;let S=Kl(m.location,y,v);n&&n(S,y);let C=K4(S),E=m.createHref(S);try{o.pushState(C,"",E)}catch{u.location.assign(E)}i&&a&&a({action:s,location:S})}function h(y,v){s=En.Replace;let S=Kl(m.location,y,v);n&&n(S,y);let C=K4(S),E=m.createHref(S);o.replaceState(C,"",E),i&&a&&a({action:s,location:S})}let m={get action(){return s},get location(){return t(u,o)},listen(y){if(a)throw new Error("A history only accepts one active listener");return u.addEventListener($4,l),a=y,()=>{u.removeEventListener($4,l),a=null}},createHref(y){return e(u,y)},push:c,replace:h,go(y){return o.go(y)}};return m}var Y4;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Y4||(Y4={}));function Uv(t,e,n){n===void 0&&(n="/");let r=typeof e=="string"?eu(e):e,u=o3(r.pathname||"/",n);if(u==null)return null;let i=i3(t);Wv(i);let o=null;for(let s=0;o==null&&s<i.length;++s)o=Zv(i[s],u);return o}function i3(t,e,n,r){return e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r=""),t.forEach((u,i)=>{let o={relativePath:u.path||"",caseSensitive:u.caseSensitive===!0,childrenIndex:i,route:u};o.relativePath.startsWith("/")&&(Re(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),o.relativePath=o.relativePath.slice(r.length));let s=Mn([r,o.relativePath]),a=n.concat(o);u.children&&u.children.length>0&&(Re(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),i3(u.children,e,a,s)),!(u.path==null&&!u.index)&&e.push({path:s,score:Gv(s,u.index),routesMeta:a})}),e}function Wv(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Qv(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Hv=/^:\w+$/,$v=3,Kv=2,Yv=1,qv=10,Xv=-2,q4=t=>t==="*";function Gv(t,e){let n=t.split("/"),r=n.length;return n.some(q4)&&(r+=Xv),e&&(r+=Kv),n.filter(u=>!q4(u)).reduce((u,i)=>u+(Hv.test(i)?$v:i===""?Yv:qv),r)}function Qv(t,e){return t.length===e.length&&t.slice(0,-1).every((r,u)=>r===e[u])?t[t.length-1]-e[e.length-1]:0}function Zv(t,e){let{routesMeta:n}=t,r={},u="/",i=[];for(let o=0;o<n.length;++o){let s=n[o],a=o===n.length-1,l=u==="/"?e:e.slice(u.length)||"/",c=Jv({path:s.relativePath,caseSensitive:s.caseSensitive,end:a},l);if(!c)return null;Object.assign(r,c.params);let h=s.route;i.push({params:r,pathname:Mn([u,c.pathname]),pathnameBase:u1(Mn([u,c.pathnameBase])),route:h}),c.pathnameBase!=="/"&&(u=Mn([u,c.pathnameBase]))}return i}function Jv(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=e1(t.path,t.caseSensitive,t.end),u=e.match(n);if(!u)return null;let i=u[0],o=i.replace(/(.)\/+$/,"$1"),s=u.slice(1);return{params:r.reduce((l,c,h)=>{if(c==="*"){let m=s[h]||"";o=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return l[c]=t1(s[h]||"",c),l},{}),pathname:i,pathnameBase:o,pattern:t}}function e1(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),s3(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],u="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(o,s)=>(r.push(s),"([^\\/]+)"));return t.endsWith("*")?(r.push("*"),u+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?u+="\\/*$":t!==""&&t!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,e?void 0:"i"),r]}function t1(t,e){try{return decodeURIComponent(t)}catch(n){return s3(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),t}}function o3(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function Re(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function s3(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function n1(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:u=""}=typeof t=="string"?eu(t):t;return{pathname:n?n.startsWith("/")?n:r1(n,e):e,search:i1(r),hash:o1(u)}}function r1(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(u=>{u===".."?n.length>1&&n.pop():u!=="."&&n.push(u)}),n.length>1?n.join("/"):"/"}function _a(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` 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 a3(t,e,n,r){r===void 0&&(r=!1);let u;typeof t=="string"?u=eu(t):(u=Jo({},t),Re(!u.pathname||!u.pathname.includes("?"),_a("?","pathname","search",u)),Re(!u.pathname||!u.pathname.includes("#"),_a("#","pathname","hash",u)),Re(!u.search||!u.search.includes("#"),_a("#","search","hash",u)));let i=t===""||u.pathname==="",o=i?"/":u.pathname,s;if(r||o==null)s=n;else{let h=e.length-1;if(o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),h-=1;u.pathname=m.join("/")}s=h>=0?e[h]:"/"}let a=n1(u,s),l=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(l||c)&&(a.pathname+="/"),a}const Mn=t=>t.join("/").replace(/\/\/+/g,"/"),u1=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),i1=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,o1=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class s1{constructor(e,n,r){this.status=e,this.statusText=n||"",this.data=r}}function a1(t){return t instanceof s1}var As={exports:{}},Rs={};/**
* @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 l1=j.exports,c1=Symbol.for("react.element"),f1=Symbol.for("react.fragment"),d1=Object.prototype.hasOwnProperty,h1=l1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p1={key:!0,ref:!0,__self:!0,__source:!0};function l3(t,e,n){var r,u={},i=null,o=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)d1.call(e,r)&&!p1.hasOwnProperty(r)&&(u[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)u[r]===void 0&&(u[r]=e[r]);return{$$typeof:c1,type:t,key:i,ref:o,props:u,_owner:h1.current}}Rs.Fragment=f1;Rs.jsx=l3;Rs.jsxs=l3;(function(t){t.exports=Rs})(As);const m1=As.exports.Fragment,_=As.exports.jsx,z=As.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 ql(){return ql=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ql.apply(this,arguments)}function g1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}const y1=typeof Object.is=="function"?Object.is:g1,{useState:v1,useEffect:_1,useLayoutEffect:E1,useDebugValue:b1}=Ja;function w1(t,e,n){const r=e(),[{inst:u},i]=v1({inst:{value:r,getSnapshot:e}});return E1(()=>{u.value=r,u.getSnapshot=e,Ea(u)&&i({inst:u})},[t,r,e]),_1(()=>(Ea(u)&&i({inst:u}),t(()=>{Ea(u)&&i({inst:u})})),[t]),b1(r),r}function Ea(t){const e=t.getSnapshot,n=t.value;try{const r=e();return!y1(n,r)}catch{return!0}}function x1(t,e,n){return e()}const P1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",S1=!P1,D1=S1?x1:w1;"useSyncExternalStore"in Ja&&(t=>t.useSyncExternalStore)(Ja);const O1=j.exports.createContext(null),C1=j.exports.createContext(null),c3=j.exports.createContext(null),a0=j.exports.createContext(null),Ms=j.exports.createContext(null),xi=j.exports.createContext({outlet:null,matches:[]}),f3=j.exports.createContext(null);function k1(t,e){let{relative:n}=e===void 0?{}:e;Pi()||Re(!1);let{basename:r,navigator:u}=j.exports.useContext(a0),{hash:i,pathname:o,search:s}=h3(t,{relative:n}),a=o;return r!=="/"&&(a=o==="/"?r:Mn([r,o])),u.createHref({pathname:a,search:s,hash:i})}function Pi(){return j.exports.useContext(Ms)!=null}function Ns(){return Pi()||Re(!1),j.exports.useContext(Ms).location}function d3(t){return t.filter((e,n)=>n===0||!e.route.index&&e.pathnameBase!==t[n-1].pathnameBase)}function A1(){Pi()||Re(!1);let{basename:t,navigator:e}=j.exports.useContext(a0),{matches:n}=j.exports.useContext(xi),{pathname:r}=Ns(),u=JSON.stringify(d3(n).map(s=>s.pathnameBase)),i=j.exports.useRef(!1);return j.exports.useEffect(()=>{i.current=!0}),j.exports.useCallback(function(s,a){if(a===void 0&&(a={}),!i.current)return;if(typeof s=="number"){e.go(s);return}let l=a3(s,JSON.parse(u),r,a.relative==="path");t!=="/"&&(l.pathname=l.pathname==="/"?t:Mn([t,l.pathname])),(a.replace?e.replace:e.push)(l,a.state,a)},[t,e,u,r])}function h3(t,e){let{relative:n}=e===void 0?{}:e,{matches:r}=j.exports.useContext(xi),{pathname:u}=Ns(),i=JSON.stringify(d3(r).map(o=>o.pathnameBase));return j.exports.useMemo(()=>a3(t,JSON.parse(i),u,n==="path"),[t,i,u,n])}function R1(t,e){Pi()||Re(!1);let n=j.exports.useContext(c3),{matches:r}=j.exports.useContext(xi),u=r[r.length-1],i=u?u.params:{};u&&u.pathname;let o=u?u.pathnameBase:"/";u&&u.route;let s=Ns(),a;if(e){var l;let v=typeof e=="string"?eu(e):e;o==="/"||((l=v.pathname)==null?void 0:l.startsWith(o))||Re(!1),a=v}else a=s;let c=a.pathname||"/",h=o==="/"?c:c.slice(o.length)||"/",m=Uv(t,{pathname:h}),y=F1(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},i,v.params),pathname:Mn([o,v.pathname]),pathnameBase:v.pathnameBase==="/"?o:Mn([o,v.pathnameBase])})),r,n||void 0);return e?_(Ms.Provider,{value:{location:ql({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:En.Pop},children:y}):y}function M1(){let t=B1(),e=a1(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r};return z(m1,{children:[_("h2",{children:"Unhandled Thrown Error!"}),_("h3",{style:{fontStyle:"italic"},children:e}),n?_("pre",{style:u,children:n}):null,_("p",{children:"\u{1F4BF} Hey developer \u{1F44B}"}),z("p",{children:["You can provide a way better UX than this when your app throws errors by providing your own\xA0",_("code",{style:i,children:"errorElement"})," props on\xA0",_("code",{style:i,children:"<Route>"})]})]})}class N1 extends j.exports.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location?{error:e.error,location:e.location}:{error:e.error||n.error,location:n.location}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error?_(f3.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function T1(t){let{routeContext:e,match:n,children:r}=t,u=j.exports.useContext(O1);return u&&n.route.errorElement&&(u._deepestRenderedBoundaryId=n.route.id),_(xi.Provider,{value:e,children:r})}function F1(t,e,n){if(e===void 0&&(e=[]),t==null)if(n!=null&&n.errors)t=n.matches;else return null;let r=t,u=n==null?void 0:n.errors;if(u!=null){let i=r.findIndex(o=>o.route.id&&(u==null?void 0:u[o.route.id]));i>=0||Re(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,o,s)=>{let a=o.route.id?u==null?void 0:u[o.route.id]:null,l=n?o.route.errorElement||_(M1,{}):null,c=()=>_(T1,{match:o,routeContext:{outlet:i,matches:e.concat(r.slice(0,s+1))},children:a?l:o.route.element!==void 0?o.route.element:i});return n&&(o.route.errorElement||s===0)?_(N1,{location:n.location,component:l,error:a,children:c()}):c()},null)}var X4;(function(t){t.UseRevalidator="useRevalidator"})(X4||(X4={}));var Xl;(function(t){t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator"})(Xl||(Xl={}));function L1(t){let e=j.exports.useContext(c3);return e||Re(!1),e}function B1(){var t;let e=j.exports.useContext(f3),n=L1(Xl.UseRouteError),r=j.exports.useContext(xi),u=r.matches[r.matches.length-1];return e||(r||Re(!1),u.route.id||Re(!1),(t=n.errors)==null?void 0:t[u.route.id])}function gt(t){Re(!1)}function I1(t){let{basename:e="/",children:n=null,location:r,navigationType:u=En.Pop,navigator:i,static:o=!1}=t;Pi()&&Re(!1);let s=e.replace(/^\/*/,"/"),a=j.exports.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=eu(r));let{pathname:l="/",search:c="",hash:h="",state:m=null,key:y="default"}=r,v=j.exports.useMemo(()=>{let S=o3(l,s);return S==null?null:{pathname:S,search:c,hash:h,state:m,key:y}},[s,l,c,h,m,y]);return v==null?null:_(a0.Provider,{value:a,children:_(Ms.Provider,{children:n,value:{location:v,navigationType:u}})})}function z1(t){let{children:e,location:n}=t,r=j.exports.useContext(C1),u=r&&!e?r.router.routes:Gl(e);return R1(u,n)}var G4;(function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"})(G4||(G4={}));new Promise(()=>{});function Gl(t,e){e===void 0&&(e=[]);let n=[];return j.exports.Children.forEach(t,(r,u)=>{if(!j.exports.isValidElement(r))return;if(r.type===j.exports.Fragment){n.push.apply(n,Gl(r.props.children,e));return}r.type!==gt&&Re(!1),!r.props.index||!r.props.children||Re(!1);let i=[...e,u],o={id:r.props.id||i.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&&(o.children=Gl(r.props.children,i)),n.push(o)}),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 j1(t,e){if(t==null)return{};var n={},r=Object.keys(t),u,i;for(i=0;i<r.length;i++)u=r[i],!(e.indexOf(u)>=0)&&(n[u]=t[u]);return n}function V1(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function U1(t,e){return t.button===0&&(!e||e==="_self")&&!V1(t)}const W1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function H1(t){let{basename:e,children:n,window:r}=t,u=j.exports.useRef();u.current==null&&(u.current=zv({window:r,v5Compat:!0}));let i=u.current,[o,s]=j.exports.useState({action:i.action,location:i.location});return j.exports.useLayoutEffect(()=>i.listen(s),[i]),_(I1,{basename:e,children:n,location:o.location,navigationType:o.action,navigator:i})}const Q=j.exports.forwardRef(function(e,n){let{onClick:r,relative:u,reloadDocument:i,replace:o,state:s,target:a,to:l,preventScrollReset:c}=e,h=j1(e,W1),m=k1(l,{relative:u}),y=$1(l,{replace:o,state:s,target:a,preventScrollReset:c,relative:u});function v(S){r&&r(S),S.defaultPrevented||y(S)}return _("a",{...h,href:m,onClick:i?r:v,ref:n,target:a})});var Q4;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmitImpl="useSubmitImpl",t.UseFetcher="useFetcher"})(Q4||(Q4={}));var Z4;(function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Z4||(Z4={}));function $1(t,e){let{target:n,replace:r,state:u,preventScrollReset:i,relative:o}=e===void 0?{}:e,s=A1(),a=Ns(),l=h3(t,{relative:o});return j.exports.useCallback(c=>{if(U1(c,n)){c.preventDefault();let h=r!==void 0?r:Yl(a)===Yl(l);s(t,{replace:h,state:u,preventScrollReset:i,relative:o})}},[a,s,l,r,u,n,t,i,o])}const J4="/assets/logo.fe8c8333.svg",K1="/assets/burger.2c869322.svg",Y1=()=>{const[t,e]=j.exports.useState(!1);j.exports.useState();const n=()=>{e(!t)};return z("header",{className:"header",children:[_("nav",{className:"nav-top",children:_("div",{className:"container",children:z("div",{className:"nav-top-wrapper",children:[_(Q,{to:"/",className:"logo",children:_("img",{src:J4,alt:"logo"})}),z("ul",{className:"nav-top-list",children:[_("li",{className:"nav-top-list-item",children:_(Q,{to:"/gtsbt",children:"\u0413\u0422\u0421\u0411\u0422"})}),_("li",{className:"nav-top-list-item",children:_(Q,{to:"/norm",children:"\u041D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0431\u0430\u0437\u0430"})}),_("li",{className:"nav-top-list-item",children:_(Q,{to:"/news",children:"\u041D\u043E\u0432\u043E\u0441\u0442\u0438"})}),_("li",{className:"nav-top-list-item",children:_(Q,{to:"/multimedia",children:"\u041C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430"})}),_("li",{className:"nav-top-list-item",children:_(Q,{to:"/contacts",children:"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u044B"})})]}),_("div",{className:"sign-in",children:_("a",{href:"https://tmex.gov.tm/tm/habarlar/1",target:"_blank",className:"sign-in-item",children:"\u0412\u043E\u0439\u0442\u0438 / \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F"})})]})})}),_("nav",{className:"nav-bottom",children:_("div",{className:"container",children:_("div",{className:"nav-bottom-wrapper",children:z("ul",{className:"nav-bottom-list",children:[_("li",{className:"nav-bottom-list-item",children:_(Q,{to:"/trade",children:"\u0411\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438"})}),_("li",{className:"nav-bottom-list-item",children:_(Q,{to:"/fin",children:"\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u044B\u0439 \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433"})}),_("li",{className:"nav-bottom-list-item",children:_(Q,{to:"/register",children:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432"})}),_("li",{className:"nav-bottom-list-item",children:_(Q,{to:"/tarif",children:"\u0422\u0430\u0440\u0438\u0444\u044B \u0438 \u0441\u0431\u043E\u0440\u044B"})})]})})})}),_("div",{className:"mobile-nav",children:_("div",{className:"container",children:z("div",{className:"mobile-nav-wrapper",children:[_(Q,{to:"/",className:"logo",children:_("img",{src:J4,alt:"logo"})}),_("div",{className:"burger",onClick:n,children:_("img",{src:K1})})]})})}),_("nav",{className:`mobile-nav-content ${t?"active":null}`,children:z("ul",{className:"mobile-nav-list",children:[_("li",{className:"mobile-nav-list-item",onClick:n,children:_(Q,{to:"/gtsbt",children:"\u0413\u0422\u0421\u0411\u0422"})}),_("li",{className:"mobile-nav-list-item",onClick:n,children:_(Q,{to:"/norm",children:"\u041D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0431\u0430\u0437\u0430"})}),_("li",{className:"mobile-nav-list-item",onClick:n,children:_(Q,{to:"/",children:"\u041D\u043E\u0432\u043E\u0441\u0442\u0438"})}),_("li",{className:"mobile-nav-list-item",onClick:n,children:_(Q,{to:"/",children:"\u041C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u044F"})}),_("li",{className:"mobile-nav-list-item",onClick:n,children:_(Q,{to:"/",children:"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u044B"})}),_("li",{className:"mobile-nav-list-item",onClick:n,children:_(Q,{to:"/trade",children:"\u0411\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438"})}),_("li",{className:"mobile-nav-list-item",onClick:n,children:_(Q,{to:"/fin",children:"\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u044B\u0439 \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433"})}),_("li",{className:"mobile-nav-list-item",onClick:n,children:_(Q,{to:"/register",children:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432"})}),_("li",{className:"mobile-nav-list-item",onClick:n,children:_(Q,{to:"/trade",children:"\u0422\u0430\u0440\u0438\u0444\u044B \u0438 \u0441\u0431\u043E\u0440\u044B"})})]})})]})},lt=({title:t})=>_("h2",{className:"section-title",children:t}),q1=()=>z("footer",{className:"footer",children:[_("div",{className:"footer-top",children:_("div",{className:"container",children:z("div",{className:"footer-top-wrapper",children:[_(lt,{title:"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u044B"}),z("div",{className:"footer-top-content",children:[z("div",{className:"footer-top-item",children:[_("h3",{className:"footer-top-item-title",children:"\u0422\u0435\u043B\u0435\u0444\u043E\u043D:"}),_("h4",{className:"footer-top-item-text",children:"+993 12 44-60-15"})]}),z("div",{className:"footer-top-item",children:[_("h3",{className:"footer-top-item-title",children:"\u0412\u0440\u0435\u043C\u044F \u0440\u0430\u0431\u043E\u0442\u044B:"}),_("h4",{className:"footer-top-item-text",children:"\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A - \u043F\u044F\u0442\u043D\u0438\u0446\u0430: \u0441 9-00 \u043F\u043E 18-00"})]}),z("div",{className:"footer-top-item",children:[_("h3",{className:"footer-top-item-title",children:"Email:"}),_(Q,{to:"/",className:"footer-top-item-text",children:"info@exchange.gov.tm"}),_(Q,{to:"/",className:"footer-top-item-text",children:"broker@exchange.gov.tm"})]}),z("div",{className:"footer-top-item",children:[_("h3",{className:"footer-top-item-title",children:"\u041F\u0440\u0438\u0435\u043C\u043D\u044B\u0435 \u0434\u043D\u0438:"}),_("h4",{className:"footer-top-item-text",children:"\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A - \u0447\u0435\u0442\u0432\u0435\u0440\u0433: \u0441 9-00 \u043F\u043E 17-00"}),_("h4",{className:"footer-top-item-text",children:"\u041F\u044F\u0442\u043D\u0438\u0446\u0430: \u0441 9-00 \u043F\u043E 13-00"})]}),z("div",{className:"footer-top-item",children:[_("h3",{className:"footer-top-item-title",children:"\u0410\u0434\u0440\u0435\u0441\u0441::"}),_("h4",{className:"footer-top-item-text",children:"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"})]})]})]})})}),_("div",{className:"footer-bottom",children:_("div",{className:"container",children:_("div",{className:"footer-bottom-wrapper",children:z("ul",{className:"footer-nav-list",children:[_("li",{className:"footer-nav-list-item",children:_(Q,{to:"/gtsbt",className:"footer-nav-list-link",children:"\u0413\u0422\u0421\u0411\u0422"})}),_("li",{className:"footer-nav-list-item",children:_(Q,{to:"/norm",className:"footer-nav-list-link",children:"\u041D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0431\u0430\u0437\u0430"})}),_("li",{className:"footer-nav-list-item",children:_(Q,{to:"/trade",className:"footer-nav-list-link",children:"\u0411\u0438\u0440\u0436\u0435\u0432\u044B\u0435 \u0442\u043E\u0440\u0433\u0438"})}),_("li",{className:"footer-nav-list-item",children:_(Q,{to:"/multimedia",className:"footer-nav-list-link",children:"\u041C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430"})}),_("li",{className:"footer-nav-list-item",children:_(Q,{to:"/fin",className:"footer-nav-list-link",children:"\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u044B\u0439 \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433"})}),_("li",{className:"footer-nav-list-item",children:_(Q,{to:"/news",className:"footer-nav-list-link",children:"\u041D\u043E\u0432\u043E\u0441\u0442\u0438"})}),_("li",{className:"footer-nav-list-item",children:_(Q,{to:"/register",className:"footer-nav-list-link",children:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432"})}),_("li",{className:"footer-nav-list-item",children:_(Q,{to:"/contacts",className:"footer-nav-list-link",children:"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u044B"})})]})})})})]}),X1=()=>_("section",{className:"hero",children:_("div",{className:"container",children:_("div",{className:"hero-wrapper",children:z("div",{className:"buttons-wrapper",children:[_(Q,{to:"/",className:"hero-button",children:"\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"}),_(Q,{to:"/",className:"hero-button",children:"\u041F\u043E\u0434\u0430\u0442\u044C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u043E\u043D\u043B\u0430\u0439\u043D"})]})})})}),Cu="/assets/arrow.ffdb78c6.svg",p3=({title:t,shortDes:e,description:n,date:r,image:u})=>z("div",{className:"news-post",children:[_("div",{className:"news-post-img",children:_("img",{src:u,alt:"news-image"})}),z("div",{className:"news-post-content",children:[_("h3",{className:"news-post-date",children:r}),_("h2",{className:"news-post-title",children:t}),_("p",{className:"news-post-text",children:e})]}),z(Q,{className:"news-post-link",to:"/post",children:[_("img",{src:Cu,alt:"arrow"}),_("h3",{children:"\u0427\u0438\u0442\u0430\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E "})]})]}),G1=t=>j.exports.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},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"})))),Q1=({title:t,link:e})=>z("a",{href:e,target:"_blank",download:!0,className:"document-link",children:[_("div",{className:"document-img",children:_(G1,{})}),_("h3",{className:"document-title",children:t})]});var m3={},g3={},se={},Z1=function(e,n,r){var u=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async="async"in n?!!n.async:!0,i.src=e,n.attrs&&J1(i,n.attrs),n.text&&(i.text=""+n.text);var o="onload"in i?ef:e_;o(i,r),i.onload||ef(i,r),u.appendChild(i)};function J1(t,e){for(var n in e)t.setAttribute(n,e[n])}function ef(t,e){t.onload=function(){this.onerror=this.onload=null,e(null,t)},t.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),t)}}function e_(t,e){t.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,e(null,t))}}var t_=function(e){return n_(e)&&!r_(e)};function n_(t){return!!t&&typeof t=="object"}function r_(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||o_(t)}var u_=typeof Symbol=="function"&&Symbol.for,i_=u_?Symbol.for("react.element"):60103;function o_(t){return t.$$typeof===i_}function s_(t){return Array.isArray(t)?[]:{}}function fi(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Yr(s_(t),t,e):t}function a_(t,e,n){return t.concat(e).map(function(r){return fi(r,n)})}function l_(t,e){if(!e.customMerge)return Yr;var n=e.customMerge(t);return typeof n=="function"?n:Yr}function c_(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]}function tf(t){return Object.keys(t).concat(c_(t))}function y3(t,e){try{return e in t}catch{return!1}}function f_(t,e){return y3(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function d_(t,e,n){var r={};return n.isMergeableObject(t)&&tf(t).forEach(function(u){r[u]=fi(t[u],n)}),tf(e).forEach(function(u){f_(t,u)||(y3(t,u)&&n.isMergeableObject(e[u])?r[u]=l_(u,n)(t[u],e[u],n):r[u]=fi(e[u],n))}),r}function Yr(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||a_,n.isMergeableObject=n.isMergeableObject||t_,n.cloneUnlessOtherwiseSpecified=fi;var r=Array.isArray(e),u=Array.isArray(t),i=r===u;return i?r?n.arrayMerge(t,e,n):d_(t,e,n):fi(e,n)}Yr.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,u){return Yr(r,u,n)},{})};var h_=Yr,v3=h_;Object.defineProperty(se,"__esModule",{value:!0});se.parseStartTime=S_;se.parseEndTime=D_;se.randomString=O_;se.queryString=C_;se.getSDK=k_;se.getConfig=A_;se.omit=R_;se.callPlayer=M_;se.isMediaStream=N_;se.isBlobUrl=T_;se.supportsWebKitPresentationMode=F_;var p_=_3(Z1),m_=_3(v3);function _3(t){return t&&t.__esModule?t:{default:t}}function g_(t,e){return E_(t)||__(t,e)||v_(t,e)||y_()}function y_(){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 v_(t,e){if(!!t){if(typeof t=="string")return nf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nf(t,e)}}function nf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function __(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var n=[],r=!0,u=!1,i=void 0;try{for(var o=t[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(e&&n.length===e));r=!0);}catch(a){u=!0,i=a}finally{try{!r&&o.return!=null&&o.return()}finally{if(u)throw i}}return n}}function E_(t){if(Array.isArray(t))return t}var b_=/[?&#](?:start|t)=([0-9hms]+)/,w_=/[?&#]end=([0-9hms]+)/,Ql=/(\d+)(h|m|s)/g,x_=/^\d+$/;function E3(t,e){if(!(t instanceof Array)){var n=t.match(e);if(n){var r=n[1];if(r.match(Ql))return P_(r);if(x_.test(r))return parseInt(r)}}}function P_(t){for(var e=0,n=Ql.exec(t);n!==null;){var r=n,u=g_(r,3),i=u[1],o=u[2];o==="h"&&(e+=parseInt(i,10)*60*60),o==="m"&&(e+=parseInt(i,10)*60),o==="s"&&(e+=parseInt(i,10)),n=Ql.exec(t)}return e}function S_(t){return E3(t,b_)}function D_(t){return E3(t,w_)}function O_(){return Math.random().toString(36).substr(2,5)}function C_(t){return Object.keys(t).map(function(e){return"".concat(e,"=").concat(t[e])}).join("&")}function ba(t){return window[t]?window[t]:window.exports&&window.exports[t]?window.exports[t]:window.module&&window.module.exports&&window.module.exports[t]?window.module.exports[t]:null}var gr={};function k_(t,e){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},u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:p_.default,i=ba(e);return i&&r(i)?Promise.resolve(i):new Promise(function(o,s){if(gr[t]){gr[t].push({resolve:o,reject:s});return}gr[t]=[{resolve:o,reject:s}];var a=function(h){gr[t].forEach(function(m){return m.resolve(h)})};if(n){var l=window[n];window[n]=function(){l&&l(),a(ba(e))}}u(t,function(c){c?(gr[t].forEach(function(h){return h.reject(c)}),gr[t]=null):n||a(ba(e))})})}function A_(t,e){return(0,m_.default)(e.config,t.config)}function R_(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];for(var i=(e=[]).concat.apply(e,r),o={},s=Object.keys(t),a=0,l=s;a<l.length;a++){var c=l[a];i.indexOf(c)===-1&&(o[c]=t[c])}return o}function M_(t){var e;if(!this.player||!this.player[t]){var n="ReactPlayer: ".concat(this.constructor.displayName," player could not call %c").concat(t,"%c \u2013 ");return this.player?this.player[t]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}for(var r=arguments.length,u=new Array(r>1?r-1:0),i=1;i<r;i++)u[i-1]=arguments[i];return(e=this.player)[t].apply(e,u)}function N_(t){return typeof window<"u"&&typeof window.MediaStream<"u"&&t instanceof window.MediaStream}function T_(t){return/^blob:/.test(t)}function F_(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.createElement("video"),e=/iPhone|iPod/.test(navigator.userAgent)===!1;return t.webkitSupportsPresentationMode&&typeof t.webkitSetPresentationMode=="function"&&e}var K={};Object.defineProperty(K,"__esModule",{value:!0});K.canPlay=K.FLV_EXTENSIONS=K.DASH_EXTENSIONS=K.HLS_EXTENSIONS=K.VIDEO_EXTENSIONS=K.AUDIO_EXTENSIONS=K.MATCH_URL_KALTURA=K.MATCH_URL_VIDYARD=K.MATCH_URL_MIXCLOUD=K.MATCH_URL_DAILYMOTION=K.MATCH_URL_TWITCH_CHANNEL=K.MATCH_URL_TWITCH_VIDEO=K.MATCH_URL_WISTIA=K.MATCH_URL_STREAMABLE=K.MATCH_URL_FACEBOOK_WATCH=K.MATCH_URL_FACEBOOK=K.MATCH_URL_VIMEO=K.MATCH_URL_SOUNDCLOUD=K.MATCH_URL_YOUTUBE=void 0;var rf=se;function L_(t,e){var n;if(typeof Symbol>"u"||t[Symbol.iterator]==null){if(Array.isArray(t)||(n=B_(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,u=function(){};return{s:u,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:u}}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 i=!0,o=!1,s;return{s:function(){n=t[Symbol.iterator]()},n:function(){var l=n.next();return i=l.done,l},e:function(l){o=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}}}function B_(t,e){if(!!t){if(typeof t=="string")return uf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uf(t,e)}}function uf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Zl=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//;K.MATCH_URL_YOUTUBE=Zl;var b3=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/;K.MATCH_URL_SOUNDCLOUD=b3;var w3=/vimeo\.com\/(?!progressive_redirect).+/;K.MATCH_URL_VIMEO=w3;var x3=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;K.MATCH_URL_FACEBOOK=x3;var P3=/^https?:\/\/fb\.watch\/.+$/;K.MATCH_URL_FACEBOOK_WATCH=P3;var S3=/streamable\.com\/([a-z0-9]+)$/;K.MATCH_URL_STREAMABLE=S3;var D3=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?(.*)$/;K.MATCH_URL_WISTIA=D3;var O3=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;K.MATCH_URL_TWITCH_VIDEO=O3;var C3=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/;K.MATCH_URL_TWITCH_CHANNEL=C3;var k3=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;K.MATCH_URL_DAILYMOTION=k3;var A3=/mixcloud\.com\/([^/]+\/[^/]+)/;K.MATCH_URL_MIXCLOUD=A3;var R3=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/;K.MATCH_URL_VIDYARD=R3;var M3=/^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-_].*)$/;K.MATCH_URL_KALTURA=M3;var l0=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;K.AUDIO_EXTENSIONS=l0;var c0=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i;K.VIDEO_EXTENSIONS=c0;var f0=/\.(m3u8)($|\?)/i;K.HLS_EXTENSIONS=f0;var N3=/\.(mpd)($|\?)/i;K.DASH_EXTENSIONS=N3;var T3=/\.(flv)($|\?)/i;K.FLV_EXTENSIONS=T3;var I_=function t(e){if(e instanceof Array){var n=L_(e),r;try{for(n.s();!(r=n.n()).done;){var u=r.value;if(typeof u=="string"&&t(u)||t(u.src))return!0}}catch(i){n.e(i)}finally{n.f()}return!1}return(0,rf.isMediaStream)(e)||(0,rf.isBlobUrl)(e)?!0:l0.test(e)||c0.test(e)||f0.test(e)||N3.test(e)||T3.test(e)},z_={youtube:function(e){return e instanceof Array?e.every(function(n){return Zl.test(n)}):Zl.test(e)},soundcloud:function(e){return b3.test(e)&&!l0.test(e)},vimeo:function(e){return w3.test(e)&&!c0.test(e)&&!f0.test(e)},facebook:function(e){return x3.test(e)||P3.test(e)},streamable:function(e){return S3.test(e)},wistia:function(e){return D3.test(e)},twitch:function(e){return O3.test(e)||C3.test(e)},dailymotion:function(e){return k3.test(e)},mixcloud:function(e){return A3.test(e)},vidyard:function(e){return R3.test(e)},kaltura:function(e){return M3.test(e)},file:I_};K.canPlay=z_;var wa={},of;function j_(){return of||(of=1,function(t){function e(R){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(A){return typeof A}:e=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},e(R)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j.exports),r=se,u=K;function i(){if(typeof WeakMap!="function")return null;var R=new WeakMap;return i=function(){return R},R}function o(R){if(R&&R.__esModule)return R;if(R===null||e(R)!=="object"&&typeof R!="function")return{default:R};var M=i();if(M&&M.has(R))return M.get(R);var A={},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in R)if(Object.prototype.hasOwnProperty.call(R,V)){var W=I?Object.getOwnPropertyDescriptor(R,V):null;W&&(W.get||W.set)?Object.defineProperty(A,V,W):A[V]=R[V]}return A.default=R,M&&M.set(R,A),A}function s(R,M){var A=Object.keys(R);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(R);M&&(I=I.filter(function(V){return Object.getOwnPropertyDescriptor(R,V).enumerable})),A.push.apply(A,I)}return A}function a(R){for(var M=1;M<arguments.length;M++){var A=arguments[M]!=null?arguments[M]:{};M%2?s(Object(A),!0).forEach(function(I){p(R,I,A[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(A)):s(Object(A)).forEach(function(I){Object.defineProperty(R,I,Object.getOwnPropertyDescriptor(A,I))})}return R}function l(R,M){return v(R)||y(R,M)||h(R,M)||c()}function c(){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 h(R,M){if(!!R){if(typeof R=="string")return m(R,M);var A=Object.prototype.toString.call(R).slice(8,-1);if(A==="Object"&&R.constructor&&(A=R.constructor.name),A==="Map"||A==="Set")return Array.from(R);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return m(R,M)}}function m(R,M){(M==null||M>R.length)&&(M=R.length);for(var A=0,I=new Array(M);A<M;A++)I[A]=R[A];return I}function y(R,M){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(R)))){var A=[],I=!0,V=!1,W=void 0;try{for(var Y=R[Symbol.iterator](),q;!(I=(q=Y.next()).done)&&(A.push(q.value),!(M&&A.length===M));I=!0);}catch(G){V=!0,W=G}finally{try{!I&&Y.return!=null&&Y.return()}finally{if(V)throw W}}return A}}function v(R){if(Array.isArray(R))return R}function S(R,M){if(!(R instanceof M))throw new TypeError("Cannot call a class as a function")}function C(R,M){for(var A=0;A<M.length;A++){var I=M[A];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(R,I.key,I)}}function E(R,M,A){return M&&C(R.prototype,M),A&&C(R,A),R}function w(R,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(M&&M.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),M&&x(R,M)}function x(R,M){return x=Object.setPrototypeOf||function(I,V){return I.__proto__=V,I},x(R,M)}function N(R){var M=g();return function(){var I=f(R),V;if(M){var W=f(this).constructor;V=Reflect.construct(I,arguments,W)}else V=I.apply(this,arguments);return P(this,V)}}function P(R,M){return M&&(e(M)==="object"||typeof M=="function")?M:D(R)}function D(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function g(){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(R){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},f(R)}function p(R,M,A){return M in R?Object.defineProperty(R,M,{value:A,enumerable:!0,configurable:!0,writable:!0}):R[M]=A,R}var d="https://www.youtube.com/iframe_api",b="YT",O="onYouTubeIframeAPIReady",L=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,k=/user\/([a-zA-Z0-9_-]+)\/?/,T=/youtube-nocookie\.com/,B="https://www.youtube-nocookie.com",F=function(R){w(A,R);var M=N(A);function A(){var I;S(this,A);for(var V=arguments.length,W=new Array(V),Y=0;Y<V;Y++)W[Y]=arguments[Y];return I=M.call.apply(M,[this].concat(W)),p(D(I),"callPlayer",r.callPlayer),p(D(I),"parsePlaylist",function(q){if(q instanceof Array)return{listType:"playlist",playlist:q.map(I.getID).join(",")};if(L.test(q)){var G=q.match(L),X=l(G,2),we=X[1];return{listType:"playlist",list:we.replace(/^UC/,"UU")}}if(k.test(q)){var Se=q.match(k),ut=l(Se,2),Bt=ut[1];return{listType:"user_uploads",list:Bt}}return{}}),p(D(I),"onStateChange",function(q){var G=q.data,X=I.props,we=X.onPlay,Se=X.onPause,ut=X.onBuffer,Bt=X.onBufferEnd,Ni=X.onEnded,ru=X.onReady,Ti=X.loop,uu=X.config,hr=uu.playerVars,Fi=uu.onUnstarted,It=window[b].PlayerState,cg=It.UNSTARTED,fg=It.PLAYING,dg=It.PAUSED,hg=It.BUFFERING,pg=It.ENDED,mg=It.CUED;if(G===cg&&Fi(),G===fg&&(we(),Bt()),G===dg&&Se(),G===hg&&ut(),G===pg){var gg=!!I.callPlayer("getPlaylist");Ti&&!gg&&(hr.start?I.seekTo(hr.start):I.play()),Ni()}G===mg&&ru()}),p(D(I),"mute",function(){I.callPlayer("mute")}),p(D(I),"unmute",function(){I.callPlayer("unMute")}),p(D(I),"ref",function(q){I.container=q}),I}return E(A,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"getID",value:function(V){return!V||V instanceof Array||L.test(V)?null:V.match(u.MATCH_URL_YOUTUBE)[1]}},{key:"load",value:function(V,W){var Y=this,q=this.props,G=q.playing,X=q.muted,we=q.playsinline,Se=q.controls,ut=q.loop,Bt=q.config,Ni=q.onError,ru=Bt.playerVars,Ti=Bt.embedOptions,uu=this.getID(V);if(W){if(L.test(V)||k.test(V)||V instanceof Array){this.player.loadPlaylist(this.parsePlaylist(V));return}this.player.cueVideoById({videoId:uu,startSeconds:(0,r.parseStartTime)(V)||ru.start,endSeconds:(0,r.parseEndTime)(V)||ru.end});return}(0,r.getSDK)(d,b,O,function(hr){return hr.loaded}).then(function(hr){!Y.container||(Y.player=new hr.Player(Y.container,a({width:"100%",height:"100%",videoId:uu,playerVars:a(a({autoplay:G?1:0,mute:X?1:0,controls:Se?1:0,start:(0,r.parseStartTime)(V),end:(0,r.parseEndTime)(V),origin:window.location.origin,playsinline:we?1:0},Y.parsePlaylist(V)),ru),events:{onReady:function(){ut&&Y.player.setLoop(!0),Y.props.onReady()},onPlaybackRateChange:function(It){return Y.props.onPlaybackRateChange(It.data)},onStateChange:Y.onStateChange,onError:function(It){return Ni(It.data)}},host:T.test(V)?B:void 0},Ti)))},Ni),Ti.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}))}}]),A}(n.Component);t.default=F,p(F,"displayName","YouTube"),p(F,"canPlay",u.canPlay.youtube)}(wa)),wa}var xa={},sf;function V_(){return sf||(sf=1,function(t){function e(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(p){return typeof p}:e=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},e(g)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j.exports),r=se,u=K;function i(){if(typeof WeakMap!="function")return null;var g=new WeakMap;return i=function(){return g},g}function o(g){if(g&&g.__esModule)return g;if(g===null||e(g)!=="object"&&typeof g!="function")return{default:g};var f=i();if(f&&f.has(g))return f.get(g);var p={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in g)if(Object.prototype.hasOwnProperty.call(g,b)){var O=d?Object.getOwnPropertyDescriptor(g,b):null;O&&(O.get||O.set)?Object.defineProperty(p,b,O):p[b]=g[b]}return p.default=g,f&&f.set(g,p),p}function s(g,f){var p=Object.keys(g);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(g);f&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(g,b).enumerable})),p.push.apply(p,d)}return p}function a(g){for(var f=1;f<arguments.length;f++){var p=arguments[f]!=null?arguments[f]:{};f%2?s(Object(p),!0).forEach(function(d){x(g,d,p[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(p)):s(Object(p)).forEach(function(d){Object.defineProperty(g,d,Object.getOwnPropertyDescriptor(p,d))})}return g}function l(g,f){if(!(g instanceof f))throw new TypeError("Cannot call a class as a function")}function c(g,f){for(var p=0;p<f.length;p++){var d=f[p];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(g,d.key,d)}}function h(g,f,p){return f&&c(g.prototype,f),p&&c(g,p),g}function m(g,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(f&&f.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),f&&y(g,f)}function y(g,f){return y=Object.setPrototypeOf||function(d,b){return d.__proto__=b,d},y(g,f)}function v(g){var f=E();return function(){var d=w(g),b;if(f){var O=w(this).constructor;b=Reflect.construct(d,arguments,O)}else b=d.apply(this,arguments);return S(this,b)}}function S(g,f){return f&&(e(f)==="object"||typeof f=="function")?f:C(g)}function C(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function E(){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(g){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(p){return p.__proto__||Object.getPrototypeOf(p)},w(g)}function x(g,f,p){return f in g?Object.defineProperty(g,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):g[f]=p,g}var N="https://w.soundcloud.com/player/api.js",P="SC",D=function(g){m(p,g);var f=v(p);function p(){var d;l(this,p);for(var b=arguments.length,O=new Array(b),L=0;L<b;L++)O[L]=arguments[L];return d=f.call.apply(f,[this].concat(O)),x(C(d),"callPlayer",r.callPlayer),x(C(d),"duration",null),x(C(d),"currentTime",null),x(C(d),"fractionLoaded",null),x(C(d),"mute",function(){d.setVolume(0)}),x(C(d),"unmute",function(){d.props.volume!==null&&d.setVolume(d.props.volume)}),x(C(d),"ref",function(k){d.iframe=k}),d}return h(p,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(b,O){var L=this;(0,r.getSDK)(N,P).then(function(k){if(!!L.iframe){var T=k.Widget.Events,B=T.PLAY,F=T.PLAY_PROGRESS,R=T.PAUSE,M=T.FINISH,A=T.ERROR;O||(L.player=k.Widget(L.iframe),L.player.bind(B,L.props.onPlay),L.player.bind(R,function(){var I=L.duration-L.currentTime;I<.05||L.props.onPause()}),L.player.bind(F,function(I){L.currentTime=I.currentPosition/1e3,L.fractionLoaded=I.loadedProgress}),L.player.bind(M,function(){return L.props.onEnded()}),L.player.bind(A,function(I){return L.props.onError(I)})),L.player.load(b,a(a({},L.props.config.options),{},{callback:function(){L.player.getDuration(function(V){L.duration=V/1e3,L.props.onReady()})}}))}})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(b){this.callPlayer("seekTo",b*1e3)}},{key:"setVolume",value:function(b){this.callPlayer("setVolume",b*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 b=this.props.display,O={width:"100%",height:"100%",display:b};return n.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),style:O,frameBorder:0,allow:"autoplay"})}}]),p}(n.Component);t.default=D,x(D,"displayName","SoundCloud"),x(D,"canPlay",u.canPlay.soundcloud),x(D,"loopOnEnded",!0)}(xa)),xa}var Pa={},af;function U_(){return af||(af=1,function(t){function e(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(p){return typeof p}:e=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},e(g)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j.exports),r=se,u=K;function i(){if(typeof WeakMap!="function")return null;var g=new WeakMap;return i=function(){return g},g}function o(g){if(g&&g.__esModule)return g;if(g===null||e(g)!=="object"&&typeof g!="function")return{default:g};var f=i();if(f&&f.has(g))return f.get(g);var p={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in g)if(Object.prototype.hasOwnProperty.call(g,b)){var O=d?Object.getOwnPropertyDescriptor(g,b):null;O&&(O.get||O.set)?Object.defineProperty(p,b,O):p[b]=g[b]}return p.default=g,f&&f.set(g,p),p}function s(g,f){var p=Object.keys(g);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(g);f&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(g,b).enumerable})),p.push.apply(p,d)}return p}function a(g){for(var f=1;f<arguments.length;f++){var p=arguments[f]!=null?arguments[f]:{};f%2?s(Object(p),!0).forEach(function(d){x(g,d,p[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(p)):s(Object(p)).forEach(function(d){Object.defineProperty(g,d,Object.getOwnPropertyDescriptor(p,d))})}return g}function l(g,f){if(!(g instanceof f))throw new TypeError("Cannot call a class as a function")}function c(g,f){for(var p=0;p<f.length;p++){var d=f[p];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(g,d.key,d)}}function h(g,f,p){return f&&c(g.prototype,f),p&&c(g,p),g}function m(g,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(f&&f.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),f&&y(g,f)}function y(g,f){return y=Object.setPrototypeOf||function(d,b){return d.__proto__=b,d},y(g,f)}function v(g){var f=E();return function(){var d=w(g),b;if(f){var O=w(this).constructor;b=Reflect.construct(d,arguments,O)}else b=d.apply(this,arguments);return S(this,b)}}function S(g,f){return f&&(e(f)==="object"||typeof f=="function")?f:C(g)}function C(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function E(){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(g){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(p){return p.__proto__||Object.getPrototypeOf(p)},w(g)}function x(g,f,p){return f in g?Object.defineProperty(g,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):g[f]=p,g}var N="https://player.vimeo.com/api/player.js",P="Vimeo",D=function(g){m(p,g);var f=v(p);function p(){var d;l(this,p);for(var b=arguments.length,O=new Array(b),L=0;L<b;L++)O[L]=arguments[L];return d=f.call.apply(f,[this].concat(O)),x(C(d),"callPlayer",r.callPlayer),x(C(d),"duration",null),x(C(d),"currentTime",null),x(C(d),"secondsLoaded",null),x(C(d),"mute",function(){d.setVolume(0)}),x(C(d),"unmute",function(){d.props.volume!==null&&d.setVolume(d.props.volume)}),x(C(d),"ref",function(k){d.container=k}),d}return h(p,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(b){var O=this;this.duration=null,(0,r.getSDK)(N,P).then(function(L){if(!!O.container){var k=O.props.config,T=k.playerOptions,B=k.title;O.player=new L.Player(O.container,a({url:b,autoplay:O.props.playing,muted:O.props.muted,loop:O.props.loop,playsinline:O.props.playsinline,controls:O.props.controls},T)),O.player.ready().then(function(){var F=O.container.querySelector("iframe");F.style.width="100%",F.style.height="100%",B&&(F.title=B)}).catch(O.props.onError),O.player.on("loaded",function(){O.props.onReady(),O.refreshDuration()}),O.player.on("play",function(){O.props.onPlay(),O.refreshDuration()}),O.player.on("pause",O.props.onPause),O.player.on("seeked",function(F){return O.props.onSeek(F.seconds)}),O.player.on("ended",O.props.onEnded),O.player.on("error",O.props.onError),O.player.on("timeupdate",function(F){var R=F.seconds;O.currentTime=R}),O.player.on("progress",function(F){var R=F.seconds;O.secondsLoaded=R}),O.player.on("bufferstart",O.props.onBuffer),O.player.on("bufferend",O.props.onBufferEnd),O.player.on("playbackratechange",function(F){return O.props.onPlaybackRateChange(F.playbackRate)})}},this.props.onError)}},{key:"refreshDuration",value:function(){var b=this;this.player.getDuration().then(function(O){b.duration=O})}},{key:"play",value:function(){var b=this.callPlayer("play");b&&b.catch(this.props.onError)}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("unload")}},{key:"seekTo",value:function(b){this.callPlayer("setCurrentTime",b)}},{key:"setVolume",value:function(b){this.callPlayer("setVolume",b)}},{key:"setLoop",value:function(b){this.callPlayer("setLoop",b)}},{key:"setPlaybackRate",value:function(b){this.callPlayer("setPlaybackRate",b)}},{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 b=this.props.display,O={width:"100%",height:"100%",overflow:"hidden",display:b};return n.default.createElement("div",{key:this.props.url,ref:this.ref,style:O})}}]),p}(n.Component);t.default=D,x(D,"displayName","Vimeo"),x(D,"canPlay",u.canPlay.vimeo),x(D,"forceLoad",!0)}(Pa)),Pa}var Sa={},lf;function W_(){return lf||(lf=1,function(t){function e(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(d){return typeof d}:e=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(f)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j.exports),r=se,u=K;function i(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return i=function(){return f},f}function o(f){if(f&&f.__esModule)return f;if(f===null||e(f)!=="object"&&typeof f!="function")return{default:f};var p=i();if(p&&p.has(f))return p.get(f);var d={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in f)if(Object.prototype.hasOwnProperty.call(f,O)){var L=b?Object.getOwnPropertyDescriptor(f,O):null;L&&(L.get||L.set)?Object.defineProperty(d,O,L):d[O]=f[O]}return d.default=f,p&&p.set(f,d),d}function s(){return s=Object.assign||function(f){for(var p=1;p<arguments.length;p++){var d=arguments[p];for(var b in d)Object.prototype.hasOwnProperty.call(d,b)&&(f[b]=d[b])}return f},s.apply(this,arguments)}function a(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function l(f,p){for(var d=0;d<p.length;d++){var b=p[d];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(f,b.key,b)}}function c(f,p,d){return p&&l(f.prototype,p),d&&l(f,d),f}function h(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),p&&m(f,p)}function m(f,p){return m=Object.setPrototypeOf||function(b,O){return b.__proto__=O,b},m(f,p)}function y(f){var p=C();return function(){var b=E(f),O;if(p){var L=E(this).constructor;O=Reflect.construct(b,arguments,L)}else O=b.apply(this,arguments);return v(this,O)}}function v(f,p){return p&&(e(p)==="object"||typeof p=="function")?p: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 C(){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 E(f){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},E(f)}function w(f,p,d){return p in f?Object.defineProperty(f,p,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[p]=d,f}var x="https://connect.facebook.net/en_US/sdk.js",N="FB",P="fbAsyncInit",D="facebook-player-",g=function(f){h(d,f);var p=y(d);function d(){var b;a(this,d);for(var O=arguments.length,L=new Array(O),k=0;k<O;k++)L[k]=arguments[k];return b=p.call.apply(p,[this].concat(L)),w(S(b),"callPlayer",r.callPlayer),w(S(b),"playerID",b.props.config.playerId||"".concat(D).concat((0,r.randomString)())),w(S(b),"mute",function(){b.callPlayer("mute")}),w(S(b),"unmute",function(){b.callPlayer("unmute")}),b}return c(d,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(O,L){var k=this;if(L){(0,r.getSDK)(x,N,P).then(function(T){return T.XFBML.parse()});return}(0,r.getSDK)(x,N,P).then(function(T){T.init({appId:k.props.config.appId,xfbml:!0,version:k.props.config.version}),T.Event.subscribe("xfbml.render",function(B){k.props.onLoaded()}),T.Event.subscribe("xfbml.ready",function(B){B.type==="video"&&B.id===k.playerID&&(k.player=B.instance,k.player.subscribe("startedPlaying",k.props.onPlay),k.player.subscribe("paused",k.props.onPause),k.player.subscribe("finishedPlaying",k.props.onEnded),k.player.subscribe("startedBuffering",k.props.onBuffer),k.player.subscribe("finishedBuffering",k.props.onBufferEnd),k.player.subscribe("error",k.props.onError),k.props.muted?k.callPlayer("mute"):k.callPlayer("unmute"),k.props.onReady(),document.getElementById(k.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(O){this.callPlayer("seek",O)}},{key:"setVolume",value:function(O){this.callPlayer("setVolume",O)}},{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 O=this.props.config.attributes,L={width:"100%",height:"100%"};return n.default.createElement("div",s({style:L,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"},O))}}]),d}(n.Component);t.default=g,w(g,"displayName","Facebook"),w(g,"canPlay",u.canPlay.facebook),w(g,"loopOnEnded",!0)}(Sa)),Sa}var Da={},cf;function H_(){return cf||(cf=1,function(t){function e(P){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(g){return typeof g}:e=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},e(P)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j.exports),r=se,u=K;function i(){if(typeof WeakMap!="function")return null;var P=new WeakMap;return i=function(){return P},P}function o(P){if(P&&P.__esModule)return P;if(P===null||e(P)!=="object"&&typeof P!="function")return{default:P};var D=i();if(D&&D.has(P))return D.get(P);var g={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in P)if(Object.prototype.hasOwnProperty.call(P,p)){var d=f?Object.getOwnPropertyDescriptor(P,p):null;d&&(d.get||d.set)?Object.defineProperty(g,p,d):g[p]=P[p]}return g.default=P,D&&D.set(P,g),g}function s(P,D){if(!(P instanceof D))throw new TypeError("Cannot call a class as a function")}function a(P,D){for(var g=0;g<D.length;g++){var f=D[g];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(P,f.key,f)}}function l(P,D,g){return D&&a(P.prototype,D),g&&a(P,g),P}function c(P,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(D&&D.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),D&&h(P,D)}function h(P,D){return h=Object.setPrototypeOf||function(f,p){return f.__proto__=p,f},h(P,D)}function m(P){var D=S();return function(){var f=C(P),p;if(D){var d=C(this).constructor;p=Reflect.construct(f,arguments,d)}else p=f.apply(this,arguments);return y(this,p)}}function y(P,D){return D&&(e(D)==="object"||typeof D=="function")?D:v(P)}function v(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function S(){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 C(P){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},C(P)}function E(P,D,g){return D in P?Object.defineProperty(P,D,{value:g,enumerable:!0,configurable:!0,writable:!0}):P[D]=g,P}var w="https://cdn.embed.ly/player-0.1.0.min.js",x="playerjs",N=function(P){c(g,P);var D=m(g);function g(){var f;s(this,g);for(var p=arguments.length,d=new Array(p),b=0;b<p;b++)d[b]=arguments[b];return f=D.call.apply(D,[this].concat(d)),E(v(f),"callPlayer",r.callPlayer),E(v(f),"duration",null),E(v(f),"currentTime",null),E(v(f),"secondsLoaded",null),E(v(f),"mute",function(){f.callPlayer("mute")}),E(v(f),"unmute",function(){f.callPlayer("unmute")}),E(v(f),"ref",function(O){f.iframe=O}),f}return l(g,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(p){var d=this;(0,r.getSDK)(w,x).then(function(b){!d.iframe||(d.player=new b.Player(d.iframe),d.player.setLoop(d.props.loop),d.player.on("ready",d.props.onReady),d.player.on("play",d.props.onPlay),d.player.on("pause",d.props.onPause),d.player.on("seeked",d.props.onSeek),d.player.on("ended",d.props.onEnded),d.player.on("error",d.props.onError),d.player.on("timeupdate",function(O){var L=O.duration,k=O.seconds;d.duration=L,d.currentTime=k}),d.player.on("buffered",function(O){var L=O.percent;d.duration&&(d.secondsLoaded=d.duration*L)}),d.props.muted&&d.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(p){this.callPlayer("setCurrentTime",p)}},{key:"setVolume",value:function(p){this.callPlayer("setVolume",p*100)}},{key:"setLoop",value:function(p){this.callPlayer("setLoop",p)}},{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 p=this.props.url.match(u.MATCH_URL_STREAMABLE)[1],d={width:"100%",height:"100%"};return n.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/".concat(p),frameBorder:"0",scrolling:"no",style:d,allow:"encrypted-media; autoplay; fullscreen;"})}}]),g}(n.Component);t.default=N,E(N,"displayName","Streamable"),E(N,"canPlay",u.canPlay.streamable)}(Da)),Da}var Oa={},ff;function $_(){return ff||(ff=1,function(t){function e(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(d){return typeof d}:e=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(f)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j.exports),r=se,u=K;function i(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return i=function(){return f},f}function o(f){if(f&&f.__esModule)return f;if(f===null||e(f)!=="object"&&typeof f!="function")return{default:f};var p=i();if(p&&p.has(f))return p.get(f);var d={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in f)if(Object.prototype.hasOwnProperty.call(f,O)){var L=b?Object.getOwnPropertyDescriptor(f,O):null;L&&(L.get||L.set)?Object.defineProperty(d,O,L):d[O]=f[O]}return d.default=f,p&&p.set(f,d),d}function s(f,p){var d=Object.keys(f);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(f);p&&(b=b.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),d.push.apply(d,b)}return d}function a(f){for(var p=1;p<arguments.length;p++){var d=arguments[p]!=null?arguments[p]:{};p%2?s(Object(d),!0).forEach(function(b){x(f,b,d[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(d)):s(Object(d)).forEach(function(b){Object.defineProperty(f,b,Object.getOwnPropertyDescriptor(d,b))})}return f}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function c(f,p){for(var d=0;d<p.length;d++){var b=p[d];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(f,b.key,b)}}function h(f,p,d){return p&&c(f.prototype,p),d&&c(f,d),f}function m(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),p&&y(f,p)}function y(f,p){return y=Object.setPrototypeOf||function(b,O){return b.__proto__=O,b},y(f,p)}function v(f){var p=E();return function(){var b=w(f),O;if(p){var L=w(this).constructor;O=Reflect.construct(b,arguments,L)}else O=b.apply(this,arguments);return S(this,O)}}function S(f,p){return p&&(e(p)==="object"||typeof p=="function")?p:C(f)}function C(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function E(){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(f){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},w(f)}function x(f,p,d){return p in f?Object.defineProperty(f,p,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[p]=d,f}var N="https://fast.wistia.com/assets/external/E-v1.js",P="Wistia",D="wistia-player-",g=function(f){m(d,f);var p=v(d);function d(){var b;l(this,d);for(var O=arguments.length,L=new Array(O),k=0;k<O;k++)L[k]=arguments[k];return b=p.call.apply(p,[this].concat(L)),x(C(b),"callPlayer",r.callPlayer),x(C(b),"playerID",b.props.config.playerId||"".concat(D).concat((0,r.randomString)())),x(C(b),"onPlay",function(){var T;return(T=b.props).onPlay.apply(T,arguments)}),x(C(b),"onPause",function(){var T;return(T=b.props).onPause.apply(T,arguments)}),x(C(b),"onSeek",function(){var T;return(T=b.props).onSeek.apply(T,arguments)}),x(C(b),"onEnded",function(){var T;return(T=b.props).onEnded.apply(T,arguments)}),x(C(b),"onPlaybackRateChange",function(){var T;return(T=b.props).onPlaybackRateChange.apply(T,arguments)}),x(C(b),"mute",function(){b.callPlayer("mute")}),x(C(b),"unmute",function(){b.callPlayer("unmute")}),b}return h(d,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(O){var L=this,k=this.props,T=k.playing,B=k.muted,F=k.controls,R=k.onReady,M=k.config,A=k.onError;(0,r.getSDK)(N,P).then(function(I){M.customControls&&M.customControls.forEach(function(V){return I.defineControl(V)}),window._wq=window._wq||[],window._wq.push({id:L.playerID,options:a({autoPlay:T,silentAutoPlay:"allow",muted:B,controlsVisibleOnLoad:F,fullscreenButton:F,playbar:F,playbackRateControl:F,qualityControl:F,volumeControl:F,settingsControl:F,smallPlayButton:F},M.options),onReady:function(W){L.player=W,L.unbind(),L.player.bind("play",L.onPlay),L.player.bind("pause",L.onPause),L.player.bind("seek",L.onSeek),L.player.bind("end",L.onEnded),L.player.bind("playbackratechange",L.onPlaybackRateChange),R()}})},A)}},{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(O){this.callPlayer("time",O)}},{key:"setVolume",value:function(O){this.callPlayer("volume",O)}},{key:"setPlaybackRate",value:function(O){this.callPlayer("playbackRate",O)}},{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 O=this.props.url,L=O&&O.match(u.MATCH_URL_WISTIA)[1],k="wistia_embed wistia_async_".concat(L),T={width:"100%",height:"100%"};return n.default.createElement("div",{id:this.playerID,key:L,className:k,style:T})}}]),d}(n.Component);t.default=g,x(g,"displayName","Wistia"),x(g,"canPlay",u.canPlay.wistia),x(g,"loopOnEnded",!0)}(Oa)),Oa}var Ca={},df;function K_(){return df||(df=1,function(t){function e(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(d){return typeof d}:e=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(f)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j.exports),r=se,u=K;function i(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return i=function(){return f},f}function o(f){if(f&&f.__esModule)return f;if(f===null||e(f)!=="object"&&typeof f!="function")return{default:f};var p=i();if(p&&p.has(f))return p.get(f);var d={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in f)if(Object.prototype.hasOwnProperty.call(f,O)){var L=b?Object.getOwnPropertyDescriptor(f,O):null;L&&(L.get||L.set)?Object.defineProperty(d,O,L):d[O]=f[O]}return d.default=f,p&&p.set(f,d),d}function s(f,p){var d=Object.keys(f);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(f);p&&(b=b.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),d.push.apply(d,b)}return d}function a(f){for(var p=1;p<arguments.length;p++){var d=arguments[p]!=null?arguments[p]:{};p%2?s(Object(d),!0).forEach(function(b){x(f,b,d[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(d)):s(Object(d)).forEach(function(b){Object.defineProperty(f,b,Object.getOwnPropertyDescriptor(d,b))})}return f}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function c(f,p){for(var d=0;d<p.length;d++){var b=p[d];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(f,b.key,b)}}function h(f,p,d){return p&&c(f.prototype,p),d&&c(f,d),f}function m(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),p&&y(f,p)}function y(f,p){return y=Object.setPrototypeOf||function(b,O){return b.__proto__=O,b},y(f,p)}function v(f){var p=E();return function(){var b=w(f),O;if(p){var L=w(this).constructor;O=Reflect.construct(b,arguments,L)}else O=b.apply(this,arguments);return S(this,O)}}function S(f,p){return p&&(e(p)==="object"||typeof p=="function")?p:C(f)}function C(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function E(){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(f){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},w(f)}function x(f,p,d){return p in f?Object.defineProperty(f,p,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[p]=d,f}var N="https://player.twitch.tv/js/embed/v1.js",P="Twitch",D="twitch-player-",g=function(f){m(d,f);var p=v(d);function d(){var b;l(this,d);for(var O=arguments.length,L=new Array(O),k=0;k<O;k++)L[k]=arguments[k];return b=p.call.apply(p,[this].concat(L)),x(C(b),"callPlayer",r.callPlayer),x(C(b),"playerID",b.props.config.playerId||"".concat(D).concat((0,r.randomString)())),x(C(b),"mute",function(){b.callPlayer("setMuted",!0)}),x(C(b),"unmute",function(){b.callPlayer("setMuted",!1)}),b}return h(d,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(O,L){var k=this,T=this.props,B=T.playsinline,F=T.onError,R=T.config,M=T.controls,A=u.MATCH_URL_TWITCH_CHANNEL.test(O),I=A?O.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:O.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(L){A?this.player.setChannel(I):this.player.setVideo("v"+I);return}(0,r.getSDK)(N,P).then(function(V){k.player=new V.Player(k.playerID,a({video:A?"":I,channel:A?I:"",height:"100%",width:"100%",playsinline:B,autoplay:k.props.playing,muted:k.props.muted,controls:A?!0:M,time:(0,r.parseStartTime)(O)},R.options));var W=V.Player,Y=W.READY,q=W.PLAYING,G=W.PAUSE,X=W.ENDED,we=W.ONLINE,Se=W.OFFLINE,ut=W.SEEK;k.player.addEventListener(Y,k.props.onReady),k.player.addEventListener(q,k.props.onPlay),k.player.addEventListener(G,k.props.onPause),k.player.addEventListener(X,k.props.onEnded),k.player.addEventListener(ut,k.props.onSeek),k.player.addEventListener(we,k.props.onLoaded),k.player.addEventListener(Se,k.props.onLoaded)},F)}},{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(O){this.callPlayer("seek",O)}},{key:"setVolume",value:function(O){this.callPlayer("setVolume",O)}},{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 O={width:"100%",height:"100%"};return n.default.createElement("div",{style:O,id:this.playerID})}}]),d}(n.Component);t.default=g,x(g,"displayName","Twitch"),x(g,"canPlay",u.canPlay.twitch),x(g,"loopOnEnded",!0)}(Ca)),Ca}var ka={},hf;function Y_(){return hf||(hf=1,function(t){function e(k){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(B){return typeof B}:e=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},e(k)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j.exports),r=se,u=K;function i(){if(typeof WeakMap!="function")return null;var k=new WeakMap;return i=function(){return k},k}function o(k){if(k&&k.__esModule)return k;if(k===null||e(k)!=="object"&&typeof k!="function")return{default:k};var T=i();if(T&&T.has(k))return T.get(k);var B={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in k)if(Object.prototype.hasOwnProperty.call(k,R)){var M=F?Object.getOwnPropertyDescriptor(k,R):null;M&&(M.get||M.set)?Object.defineProperty(B,R,M):B[R]=k[R]}return B.default=k,T&&T.set(k,B),B}function s(k,T){var B=Object.keys(k);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(k);T&&(F=F.filter(function(R){return Object.getOwnPropertyDescriptor(k,R).enumerable})),B.push.apply(B,F)}return B}function a(k){for(var T=1;T<arguments.length;T++){var B=arguments[T]!=null?arguments[T]:{};T%2?s(Object(B),!0).forEach(function(F){p(k,F,B[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(B)):s(Object(B)).forEach(function(F){Object.defineProperty(k,F,Object.getOwnPropertyDescriptor(B,F))})}return k}function l(k,T){return v(k)||y(k,T)||h(k,T)||c()}function c(){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 h(k,T){if(!!k){if(typeof k=="string")return m(k,T);var B=Object.prototype.toString.call(k).slice(8,-1);if(B==="Object"&&k.constructor&&(B=k.constructor.name),B==="Map"||B==="Set")return Array.from(k);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return m(k,T)}}function m(k,T){(T==null||T>k.length)&&(T=k.length);for(var B=0,F=new Array(T);B<T;B++)F[B]=k[B];return F}function y(k,T){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(k)))){var B=[],F=!0,R=!1,M=void 0;try{for(var A=k[Symbol.iterator](),I;!(F=(I=A.next()).done)&&(B.push(I.value),!(T&&B.length===T));F=!0);}catch(V){R=!0,M=V}finally{try{!F&&A.return!=null&&A.return()}finally{if(R)throw M}}return B}}function v(k){if(Array.isArray(k))return k}function S(k,T){if(!(k instanceof T))throw new TypeError("Cannot call a class as a function")}function C(k,T){for(var B=0;B<T.length;B++){var F=T[B];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(k,F.key,F)}}function E(k,T,B){return T&&C(k.prototype,T),B&&C(k,B),k}function w(k,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(T&&T.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),T&&x(k,T)}function x(k,T){return x=Object.setPrototypeOf||function(F,R){return F.__proto__=R,F},x(k,T)}function N(k){var T=g();return function(){var F=f(k),R;if(T){var M=f(this).constructor;R=Reflect.construct(F,arguments,M)}else R=F.apply(this,arguments);return P(this,R)}}function P(k,T){return T&&(e(T)==="object"||typeof T=="function")?T:D(k)}function D(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function g(){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(k){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},f(k)}function p(k,T,B){return T in k?Object.defineProperty(k,T,{value:B,enumerable:!0,configurable:!0,writable:!0}):k[T]=B,k}var d="https://api.dmcdn.net/all.js",b="DM",O="dmAsyncInit",L=function(k){w(B,k);var T=N(B);function B(){var F;S(this,B);for(var R=arguments.length,M=new Array(R),A=0;A<R;A++)M[A]=arguments[A];return F=T.call.apply(T,[this].concat(M)),p(D(F),"callPlayer",r.callPlayer),p(D(F),"onDurationChange",function(){var I=F.getDuration();F.props.onDuration(I)}),p(D(F),"mute",function(){F.callPlayer("setMuted",!0)}),p(D(F),"unmute",function(){F.callPlayer("setMuted",!1)}),p(D(F),"ref",function(I){F.container=I}),F}return E(B,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(R){var M=this,A=this.props,I=A.controls,V=A.config,W=A.onError,Y=A.playing,q=R.match(u.MATCH_URL_DAILYMOTION),G=l(q,2),X=G[1];if(this.player){this.player.load(X,{start:(0,r.parseStartTime)(R),autoplay:Y});return}(0,r.getSDK)(d,b,O,function(we){return we.player}).then(function(we){if(!!M.container){var Se=we.player;M.player=new Se(M.container,{width:"100%",height:"100%",video:X,params:a({controls:I,autoplay:M.props.playing,mute:M.props.muted,start:(0,r.parseStartTime)(R),origin:window.location.origin},V.params),events:{apiready:M.props.onReady,seeked:function(){return M.props.onSeek(M.player.currentTime)},video_end:M.props.onEnded,durationchange:M.onDurationChange,pause:M.props.onPause,playing:M.props.onPlay,waiting:M.props.onBuffer,error:function(Bt){return W(Bt)}}})}},W)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(R){this.callPlayer("seek",R)}},{key:"setVolume",value:function(R){this.callPlayer("setVolume",R)}},{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 R=this.props.display,M={width:"100%",height:"100%",display:R};return n.default.createElement("div",{style:M},n.default.createElement("div",{ref:this.ref}))}}]),B}(n.Component);t.default=L,p(L,"displayName","DailyMotion"),p(L,"canPlay",u.canPlay.dailymotion),p(L,"loopOnEnded",!0)}(ka)),ka}var Aa={},pf;function q_(){return pf||(pf=1,function(t){function e(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(p){return typeof p}:e=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},e(g)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j.exports),r=se,u=K;function i(){if(typeof WeakMap!="function")return null;var g=new WeakMap;return i=function(){return g},g}function o(g){if(g&&g.__esModule)return g;if(g===null||e(g)!=="object"&&typeof g!="function")return{default:g};var f=i();if(f&&f.has(g))return f.get(g);var p={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in g)if(Object.prototype.hasOwnProperty.call(g,b)){var O=d?Object.getOwnPropertyDescriptor(g,b):null;O&&(O.get||O.set)?Object.defineProperty(p,b,O):p[b]=g[b]}return p.default=g,f&&f.set(g,p),p}function s(g,f){var p=Object.keys(g);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(g);f&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(g,b).enumerable})),p.push.apply(p,d)}return p}function a(g){for(var f=1;f<arguments.length;f++){var p=arguments[f]!=null?arguments[f]:{};f%2?s(Object(p),!0).forEach(function(d){x(g,d,p[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(p)):s(Object(p)).forEach(function(d){Object.defineProperty(g,d,Object.getOwnPropertyDescriptor(p,d))})}return g}function l(g,f){if(!(g instanceof f))throw new TypeError("Cannot call a class as a function")}function c(g,f){for(var p=0;p<f.length;p++){var d=f[p];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(g,d.key,d)}}function h(g,f,p){return f&&c(g.prototype,f),p&&c(g,p),g}function m(g,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(f&&f.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),f&&y(g,f)}function y(g,f){return y=Object.setPrototypeOf||function(d,b){return d.__proto__=b,d},y(g,f)}function v(g){var f=E();return function(){var d=w(g),b;if(f){var O=w(this).constructor;b=Reflect.construct(d,arguments,O)}else b=d.apply(this,arguments);return S(this,b)}}function S(g,f){return f&&(e(f)==="object"||typeof f=="function")?f:C(g)}function C(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function E(){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(g){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(p){return p.__proto__||Object.getPrototypeOf(p)},w(g)}function x(g,f,p){return f in g?Object.defineProperty(g,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):g[f]=p,g}var N="https://widget.mixcloud.com/media/js/widgetApi.js",P="Mixcloud",D=function(g){m(p,g);var f=v(p);function p(){var d;l(this,p);for(var b=arguments.length,O=new Array(b),L=0;L<b;L++)O[L]=arguments[L];return d=f.call.apply(f,[this].concat(O)),x(C(d),"callPlayer",r.callPlayer),x(C(d),"duration",null),x(C(d),"currentTime",null),x(C(d),"secondsLoaded",null),x(C(d),"mute",function(){}),x(C(d),"unmute",function(){}),x(C(d),"ref",function(k){d.iframe=k}),d}return h(p,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(b){var O=this;(0,r.getSDK)(N,P).then(function(L){O.player=L.PlayerWidget(O.iframe),O.player.ready.then(function(){O.player.events.play.on(O.props.onPlay),O.player.events.pause.on(O.props.onPause),O.player.events.ended.on(O.props.onEnded),O.player.events.error.on(O.props.error),O.player.events.progress.on(function(k,T){O.currentTime=k,O.duration=T}),O.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(b){this.callPlayer("seek",b)}},{key:"setVolume",value:function(b){}},{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 b=this.props,O=b.url,L=b.config,k=O.match(u.MATCH_URL_MIXCLOUD)[1],T={width:"100%",height:"100%"},B=(0,r.queryString)(a(a({},L.options),{},{feed:"/".concat(k,"/")}));return n.default.createElement("iframe",{key:k,ref:this.ref,style:T,src:"https://www.mixcloud.com/widget/iframe/?".concat(B),frameBorder:"0",allow:"autoplay"})}}]),p}(n.Component);t.default=D,x(D,"displayName","Mixcloud"),x(D,"canPlay",u.canPlay.mixcloud),x(D,"loopOnEnded",!0)}(Aa)),Aa}var Ra={},mf;function X_(){return mf||(mf=1,function(t){function e(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(d){return typeof d}:e=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(f)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j.exports),r=se,u=K;function i(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return i=function(){return f},f}function o(f){if(f&&f.__esModule)return f;if(f===null||e(f)!=="object"&&typeof f!="function")return{default:f};var p=i();if(p&&p.has(f))return p.get(f);var d={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in f)if(Object.prototype.hasOwnProperty.call(f,O)){var L=b?Object.getOwnPropertyDescriptor(f,O):null;L&&(L.get||L.set)?Object.defineProperty(d,O,L):d[O]=f[O]}return d.default=f,p&&p.set(f,d),d}function s(f,p){var d=Object.keys(f);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(f);p&&(b=b.filter(function(O){return Object.getOwnPropertyDescriptor(f,O).enumerable})),d.push.apply(d,b)}return d}function a(f){for(var p=1;p<arguments.length;p++){var d=arguments[p]!=null?arguments[p]:{};p%2?s(Object(d),!0).forEach(function(b){x(f,b,d[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(d)):s(Object(d)).forEach(function(b){Object.defineProperty(f,b,Object.getOwnPropertyDescriptor(d,b))})}return f}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function c(f,p){for(var d=0;d<p.length;d++){var b=p[d];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(f,b.key,b)}}function h(f,p,d){return p&&c(f.prototype,p),d&&c(f,d),f}function m(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),p&&y(f,p)}function y(f,p){return y=Object.setPrototypeOf||function(b,O){return b.__proto__=O,b},y(f,p)}function v(f){var p=E();return function(){var b=w(f),O;if(p){var L=w(this).constructor;O=Reflect.construct(b,arguments,L)}else O=b.apply(this,arguments);return S(this,O)}}function S(f,p){return p&&(e(p)==="object"||typeof p=="function")?p:C(f)}function C(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function E(){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(f){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},w(f)}function x(f,p,d){return p in f?Object.defineProperty(f,p,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[p]=d,f}var N="https://play.vidyard.com/embed/v4.js",P="VidyardV4",D="onVidyardAPI",g=function(f){m(d,f);var p=v(d);function d(){var b;l(this,d);for(var O=arguments.length,L=new Array(O),k=0;k<O;k++)L[k]=arguments[k];return b=p.call.apply(p,[this].concat(L)),x(C(b),"callPlayer",r.callPlayer),x(C(b),"mute",function(){b.setVolume(0)}),x(C(b),"unmute",function(){b.props.volume!==null&&b.setVolume(b.props.volume)}),x(C(b),"ref",function(T){b.container=T}),b}return h(d,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(O){var L=this,k=this.props,T=k.playing,B=k.config,F=k.onError,R=k.onDuration,M=O&&O.match(u.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,r.getSDK)(N,P,D).then(function(A){!L.container||(A.api.addReadyListener(function(I,V){L.player||(L.player=V,L.player.on("ready",L.props.onReady),L.player.on("play",L.props.onPlay),L.player.on("pause",L.props.onPause),L.player.on("seek",L.props.onSeek),L.player.on("playerComplete",L.props.onEnded))},M),A.api.renderPlayer(a({uuid:M,container:L.container,autoplay:T?1:0},B.options)),A.api.getPlayerMetadata(M).then(function(I){L.duration=I.length_in_seconds,R(I.length_in_seconds)}))},F)}},{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(O){this.callPlayer("seek",O)}},{key:"setVolume",value:function(O){this.callPlayer("setVolume",O)}},{key:"setPlaybackRate",value:function(O){this.callPlayer("setPlaybackSpeed",O)}},{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 O=this.props.display,L={width:"100%",height:"100%",display:O};return n.default.createElement("div",{style:L},n.default.createElement("div",{ref:this.ref}))}}]),d}(n.Component);t.default=g,x(g,"displayName","Vidyard"),x(g,"canPlay",u.canPlay.vidyard)}(Ra)),Ra}var Ma={},gf;function G_(){return gf||(gf=1,function(t){function e(P){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(g){return typeof g}:e=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},e(P)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j.exports),r=se,u=K;function i(){if(typeof WeakMap!="function")return null;var P=new WeakMap;return i=function(){return P},P}function o(P){if(P&&P.__esModule)return P;if(P===null||e(P)!=="object"&&typeof P!="function")return{default:P};var D=i();if(D&&D.has(P))return D.get(P);var g={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in P)if(Object.prototype.hasOwnProperty.call(P,p)){var d=f?Object.getOwnPropertyDescriptor(P,p):null;d&&(d.get||d.set)?Object.defineProperty(g,p,d):g[p]=P[p]}return g.default=P,D&&D.set(P,g),g}function s(P,D){if(!(P instanceof D))throw new TypeError("Cannot call a class as a function")}function a(P,D){for(var g=0;g<D.length;g++){var f=D[g];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(P,f.key,f)}}function l(P,D,g){return D&&a(P.prototype,D),g&&a(P,g),P}function c(P,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(D&&D.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),D&&h(P,D)}function h(P,D){return h=Object.setPrototypeOf||function(f,p){return f.__proto__=p,f},h(P,D)}function m(P){var D=S();return function(){var f=C(P),p;if(D){var d=C(this).constructor;p=Reflect.construct(f,arguments,d)}else p=f.apply(this,arguments);return y(this,p)}}function y(P,D){return D&&(e(D)==="object"||typeof D=="function")?D:v(P)}function v(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function S(){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 C(P){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},C(P)}function E(P,D,g){return D in P?Object.defineProperty(P,D,{value:g,enumerable:!0,configurable:!0,writable:!0}):P[D]=g,P}var w="https://cdn.embed.ly/player-0.1.0.min.js",x="playerjs",N=function(P){c(g,P);var D=m(g);function g(){var f;s(this,g);for(var p=arguments.length,d=new Array(p),b=0;b<p;b++)d[b]=arguments[b];return f=D.call.apply(D,[this].concat(d)),E(v(f),"callPlayer",r.callPlayer),E(v(f),"duration",null),E(v(f),"currentTime",null),E(v(f),"secondsLoaded",null),E(v(f),"mute",function(){f.callPlayer("mute")}),E(v(f),"unmute",function(){f.callPlayer("unmute")}),E(v(f),"ref",function(O){f.iframe=O}),f}return l(g,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(p){var d=this;(0,r.getSDK)(w,x).then(function(b){!d.iframe||(d.player=new b.Player(d.iframe),d.player.on("ready",function(){setTimeout(function(){d.player.isReady=!0,d.player.setLoop(d.props.loop),d.props.muted&&d.player.mute(),d.addListeners(d.player,d.props),d.props.onReady()},500)}))},this.props.onError)}},{key:"addListeners",value:function(p,d){var b=this;p.on("play",d.onPlay),p.on("pause",d.onPause),p.on("ended",d.onEnded),p.on("error",d.onError),p.on("timeupdate",function(O){var L=O.duration,k=O.seconds;b.duration=L,b.currentTime=k})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(p){this.callPlayer("setCurrentTime",p)}},{key:"setVolume",value:function(p){this.callPlayer("setVolume",p)}},{key:"setLoop",value:function(p){this.callPlayer("setLoop",p)}},{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 p={width:"100%",height:"100%"};return n.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:p,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}]),g}(n.Component);t.default=N,E(N,"displayName","Kaltura"),E(N,"canPlay",u.canPlay.kaltura)}(Ma)),Ma}var Na={},yf;function Q_(){return yf||(yf=1,function(t){function e(B){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(R){return typeof R}:e=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},e(B)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j.exports),r=se,u=K;function i(){if(typeof WeakMap!="function")return null;var B=new WeakMap;return i=function(){return B},B}function o(B){if(B&&B.__esModule)return B;if(B===null||e(B)!=="object"&&typeof B!="function")return{default:B};var F=i();if(F&&F.has(B))return F.get(B);var R={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in B)if(Object.prototype.hasOwnProperty.call(B,A)){var I=M?Object.getOwnPropertyDescriptor(B,A):null;I&&(I.get||I.set)?Object.defineProperty(R,A,I):R[A]=B[A]}return R.default=B,F&&F.set(B,R),R}function s(){return s=Object.assign||function(B){for(var F=1;F<arguments.length;F++){var R=arguments[F];for(var M in R)Object.prototype.hasOwnProperty.call(R,M)&&(B[M]=R[M])}return B},s.apply(this,arguments)}function a(B,F){if(!(B instanceof F))throw new TypeError("Cannot call a class as a function")}function l(B,F){for(var R=0;R<F.length;R++){var M=F[R];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(B,M.key,M)}}function c(B,F,R){return F&&l(B.prototype,F),R&&l(B,R),B}function h(B,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(F&&F.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),F&&m(B,F)}function m(B,F){return m=Object.setPrototypeOf||function(M,A){return M.__proto__=A,M},m(B,F)}function y(B){var F=C();return function(){var M=E(B),A;if(F){var I=E(this).constructor;A=Reflect.construct(M,arguments,I)}else A=M.apply(this,arguments);return v(this,A)}}function v(B,F){return F&&(e(F)==="object"||typeof F=="function")?F:S(B)}function S(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function C(){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 E(B){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},E(B)}function w(B,F,R){return F in B?Object.defineProperty(B,F,{value:R,enumerable:!0,configurable:!0,writable:!0}):B[F]=R,B}var x=typeof navigator<"u",N=x&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,P=x&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||N)&&!window.MSStream,D="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",g="Hls",f="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",p="dashjs",d="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",b="flvjs",O=/www\.dropbox\.com\/.+/,L=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,k="https://videodelivery.net/{id}/manifest/video.m3u8",T=function(B){h(R,B);var F=y(R);function R(){var M;a(this,R);for(var A=arguments.length,I=new Array(A),V=0;V<A;V++)I[V]=arguments[V];return M=F.call.apply(F,[this].concat(I)),w(S(M),"onReady",function(){var W;return(W=M.props).onReady.apply(W,arguments)}),w(S(M),"onPlay",function(){var W;return(W=M.props).onPlay.apply(W,arguments)}),w(S(M),"onBuffer",function(){var W;return(W=M.props).onBuffer.apply(W,arguments)}),w(S(M),"onBufferEnd",function(){var W;return(W=M.props).onBufferEnd.apply(W,arguments)}),w(S(M),"onPause",function(){var W;return(W=M.props).onPause.apply(W,arguments)}),w(S(M),"onEnded",function(){var W;return(W=M.props).onEnded.apply(W,arguments)}),w(S(M),"onError",function(){var W;return(W=M.props).onError.apply(W,arguments)}),w(S(M),"onPlayBackRateChange",function(W){return M.props.onPlaybackRateChange(W.target.playbackRate)}),w(S(M),"onEnablePIP",function(){var W;return(W=M.props).onEnablePIP.apply(W,arguments)}),w(S(M),"onDisablePIP",function(W){var Y=M.props,q=Y.onDisablePIP,G=Y.playing;q(W),G&&M.play()}),w(S(M),"onPresentationModeChange",function(W){if(M.player&&(0,r.supportsWebKitPresentationMode)(M.player)){var Y=M.player.webkitPresentationMode;Y==="picture-in-picture"?M.onEnablePIP(W):Y==="inline"&&M.onDisablePIP(W)}}),w(S(M),"onSeek",function(W){M.props.onSeek(W.target.currentTime)}),w(S(M),"mute",function(){M.player.muted=!0}),w(S(M),"unmute",function(){M.player.muted=!1}),w(S(M),"renderSourceElement",function(W,Y){return typeof W=="string"?n.default.createElement("source",{key:Y,src:W}):n.default.createElement("source",s({key:Y},W))}),w(S(M),"renderTrack",function(W,Y){return n.default.createElement("track",s({key:Y},W))}),w(S(M),"ref",function(W){M.player&&(M.prevPlayer=M.player),M.player=W}),M}return c(R,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player),P&&this.player.load()}},{key:"componentDidUpdate",value:function(A){this.shouldUseAudio(this.props)!==this.shouldUseAudio(A)&&(this.removeListeners(this.prevPlayer,A.url),this.addListeners(this.player)),this.props.url!==A.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(A){var I=this.props,V=I.url,W=I.playsinline;A.addEventListener("play",this.onPlay),A.addEventListener("waiting",this.onBuffer),A.addEventListener("playing",this.onBufferEnd),A.addEventListener("pause",this.onPause),A.addEventListener("seeked",this.onSeek),A.addEventListener("ended",this.onEnded),A.addEventListener("error",this.onError),A.addEventListener("ratechange",this.onPlayBackRateChange),A.addEventListener("enterpictureinpicture",this.onEnablePIP),A.addEventListener("leavepictureinpicture",this.onDisablePIP),A.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(V)||A.addEventListener("canplay",this.onReady),W&&(A.setAttribute("playsinline",""),A.setAttribute("webkit-playsinline",""),A.setAttribute("x5-playsinline",""))}},{key:"removeListeners",value:function(A,I){A.removeEventListener("canplay",this.onReady),A.removeEventListener("play",this.onPlay),A.removeEventListener("waiting",this.onBuffer),A.removeEventListener("playing",this.onBufferEnd),A.removeEventListener("pause",this.onPause),A.removeEventListener("seeked",this.onSeek),A.removeEventListener("ended",this.onEnded),A.removeEventListener("error",this.onError),A.removeEventListener("ratechange",this.onPlayBackRateChange),A.removeEventListener("enterpictureinpicture",this.onEnablePIP),A.removeEventListener("leavepictureinpicture",this.onDisablePIP),A.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(I)||A.removeEventListener("canplay",this.onReady)}},{key:"shouldUseAudio",value:function(A){return A.config.forceVideo||A.config.attributes.poster?!1:u.AUDIO_EXTENSIONS.test(A.url)||A.config.forceAudio}},{key:"shouldUseHLS",value:function(A){return this.props.config.forceHLS?!0:P?!1:u.HLS_EXTENSIONS.test(A)||L.test(A)}},{key:"shouldUseDASH",value:function(A){return u.DASH_EXTENSIONS.test(A)||this.props.config.forceDASH}},{key:"shouldUseFLV",value:function(A){return u.FLV_EXTENSIONS.test(A)||this.props.config.forceFLV}},{key:"load",value:function(A){var I=this,V=this.props.config,W=V.hlsVersion,Y=V.hlsOptions,q=V.dashVersion,G=V.flvVersion;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(A)&&(0,r.getSDK)(D.replace("VERSION",W),g).then(function(X){if(I.hls=new X(Y),I.hls.on(X.Events.MANIFEST_PARSED,function(){I.props.onReady()}),I.hls.on(X.Events.ERROR,function(Se,ut){I.props.onError(Se,ut,I.hls,X)}),L.test(A)){var we=A.match(L)[1];I.hls.loadSource(k.replace("{id}",we))}else I.hls.loadSource(A);I.hls.attachMedia(I.player),I.props.onLoaded()}),this.shouldUseDASH(A)&&(0,r.getSDK)(f.replace("VERSION",q),p).then(function(X){I.dash=X.MediaPlayer().create(),I.dash.initialize(I.player,A,I.props.playing),I.dash.on("error",I.props.onError),parseInt(q)<3?I.dash.getDebug().setLogToBrowserConsole(!1):I.dash.updateSettings({debug:{logLevel:X.Debug.LOG_LEVEL_NONE}}),I.props.onLoaded()}),this.shouldUseFLV(A)&&(0,r.getSDK)(d.replace("VERSION",G),b).then(function(X){I.flv=X.createPlayer({type:"flv",url:A}),I.flv.attachMediaElement(I.player),I.flv.on(X.Events.ERROR,function(we,Se){I.props.onError(we,Se,I.flv,X)}),I.flv.load(),I.props.onLoaded()}),A instanceof Array)this.player.load();else if((0,r.isMediaStream)(A))try{this.player.srcObject=A}catch{this.player.src=window.URL.createObjectURL(A)}}},{key:"play",value:function(){var A=this.player.play();A&&A.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(A){this.player.currentTime=A}},{key:"setVolume",value:function(A){this.player.volume=A}},{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(A){try{this.player.playbackRate=A}catch(I){this.props.onError(I)}}},{key:"getDuration",value:function(){if(!this.player)return null;var A=this.player,I=A.duration,V=A.seekable;return I===1/0&&V.length>0?V.end(V.length-1):I}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var A=this.player.buffered;if(A.length===0)return 0;var I=A.end(A.length-1),V=this.getDuration();return I>V?V:I}},{key:"getSource",value:function(A){var I=this.shouldUseHLS(A),V=this.shouldUseDASH(A),W=this.shouldUseFLV(A);if(!(A instanceof Array||(0,r.isMediaStream)(A)||I||V||W))return O.test(A)?A.replace("www.dropbox.com","dl.dropboxusercontent.com"):A}},{key:"render",value:function(){var A=this.props,I=A.url,V=A.playing,W=A.loop,Y=A.controls,q=A.muted,G=A.config,X=A.width,we=A.height,Se=this.shouldUseAudio(this.props),ut=Se?"audio":"video",Bt={width:X==="auto"?X:"100%",height:we==="auto"?we:"100%"};return n.default.createElement(ut,s({ref:this.ref,src:this.getSource(I),style:Bt,preload:"auto",autoPlay:V||void 0,controls:Y,muted:q,loop:W},G.attributes),I instanceof Array&&I.map(this.renderSourceElement),G.tracks.map(this.renderTrack))}}]),R}(n.Component);t.default=T,w(T,"displayName","FilePlayer"),w(T,"canPlay",u.canPlay.file)}(Na)),Na}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=j.exports,n=se,r=K;function u(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(c){return typeof c}:u=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},u(a)}function i(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return i=function(){return a},a}function o(a){if(a&&a.__esModule)return a;if(a===null||u(a)!=="object"&&typeof a!="function")return{default:a};var l=i();if(l&&l.has(a))return l.get(a);var c={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in a)if(Object.prototype.hasOwnProperty.call(a,m)){var y=h?Object.getOwnPropertyDescriptor(a,m):null;y&&(y.get||y.set)?Object.defineProperty(c,m,y):c[m]=a[m]}return c.default=a,l&&l.set(a,c),c}var s=[{key:"youtube",name:"YouTube",canPlay:r.canPlay.youtube,lazyPlayer:(0,e.lazy)(function(){return Promise.resolve().then(function(){return o(j_())})})},{key:"soundcloud",name:"SoundCloud",canPlay:r.canPlay.soundcloud,lazyPlayer:(0,e.lazy)(function(){return Promise.resolve().then(function(){return o(V_())})})},{key:"vimeo",name:"Vimeo",canPlay:r.canPlay.vimeo,lazyPlayer:(0,e.lazy)(function(){return Promise.resolve().then(function(){return o(U_())})})},{key:"facebook",name:"Facebook",canPlay:r.canPlay.facebook,lazyPlayer:(0,e.lazy)(function(){return Promise.resolve().then(function(){return o(W_())})})},{key:"streamable",name:"Streamable",canPlay:r.canPlay.streamable,lazyPlayer:(0,e.lazy)(function(){return Promise.resolve().then(function(){return o(H_())})})},{key:"wistia",name:"Wistia",canPlay:r.canPlay.wistia,lazyPlayer:(0,e.lazy)(function(){return Promise.resolve().then(function(){return o($_())})})},{key:"twitch",name:"Twitch",canPlay:r.canPlay.twitch,lazyPlayer:(0,e.lazy)(function(){return Promise.resolve().then(function(){return o(K_())})})},{key:"dailymotion",name:"DailyMotion",canPlay:r.canPlay.dailymotion,lazyPlayer:(0,e.lazy)(function(){return Promise.resolve().then(function(){return o(Y_())})})},{key:"mixcloud",name:"Mixcloud",canPlay:r.canPlay.mixcloud,lazyPlayer:(0,e.lazy)(function(){return Promise.resolve().then(function(){return o(q_())})})},{key:"vidyard",name:"Vidyard",canPlay:r.canPlay.vidyard,lazyPlayer:(0,e.lazy)(function(){return Promise.resolve().then(function(){return o(X_())})})},{key:"kaltura",name:"Kaltura",canPlay:r.canPlay.kaltura,lazyPlayer:(0,e.lazy)(function(){return Promise.resolve().then(function(){return o(G_())})})},{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,e.lazy)(function(){return Promise.resolve().then(function(){return o(Q_())})})}];t.default=s})(g3);var Ts={},vf=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Z_(t,e){return!!(t===e||vf(t)&&vf(e))}function J_(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Z_(t[n],e[n]))return!1;return!0}function eE(t,e){e===void 0&&(e=J_);var n,r=[],u,i=!1;function o(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return i&&n===this&&e(s,r)||(u=t.apply(this,s),i=!0,n=this,r=s),u}return o}const tE=Object.freeze(Object.defineProperty({__proto__:null,default:eE},Symbol.toStringTag,{value:"Module"})),nE=Eg(tE);var rE=typeof Element<"u",uE=typeof Map=="function",iE=typeof Set=="function",oE=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function So(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,u;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!So(t[r],e[r]))return!1;return!0}var i;if(uE&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;for(i=t.entries();!(r=i.next()).done;)if(!So(r.value[1],e.get(r.value[0])))return!1;return!0}if(iE&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(oE&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(u=Object.keys(t),n=u.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,u[r]))return!1;if(rE&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((u[r]==="_owner"||u[r]==="__v"||u[r]==="__o")&&t.$$typeof)&&!So(t[u[r]],e[u[r]]))return!1;return!0}return t!==t&&e!==e}var F3=function(e,n){try{return So(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},ar={},L3={exports:{}},sE="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",aE=sE,lE=aE;function B3(){}function I3(){}I3.resetWarningCache=B3;var cE=function(){function t(r,u,i,o,s,a){if(a!==lE){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}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:I3,resetWarningCache:B3};return n.PropTypes=n,n};L3.exports=cE();Object.defineProperty(ar,"__esModule",{value:!0});ar.defaultProps=ar.propTypes=void 0;var cn=fE(L3.exports);function fE(t){return t&&t.__esModule?t:{default:t}}var We=cn.default.string,it=cn.default.bool,yr=cn.default.number,Ta=cn.default.array,hu=cn.default.oneOfType,pt=cn.default.shape,He=cn.default.object,Ce=cn.default.func,_f=cn.default.node,dE={url:hu([We,Ta,He]),playing:it,loop:it,controls:it,volume:yr,muted:it,playbackRate:yr,width:hu([We,yr]),height:hu([We,yr]),style:He,progressInterval:yr,playsinline:it,pip:it,stopOnUnmount:it,light:hu([it,We,He]),playIcon:_f,previewTabIndex:yr,fallback:_f,oEmbedUrl:We,wrapper:hu([We,Ce,pt({render:Ce.isRequired})]),config:pt({soundcloud:pt({options:He}),youtube:pt({playerVars:He,embedOptions:He,onUnstarted:Ce}),facebook:pt({appId:We,version:We,playerId:We,attributes:He}),dailymotion:pt({params:He}),vimeo:pt({playerOptions:He,title:We}),file:pt({attributes:He,tracks:Ta,forceVideo:it,forceAudio:it,forceHLS:it,forceDASH:it,forceFLV:it,hlsOptions:He,hlsVersion:We,dashVersion:We,flvVersion:We}),wistia:pt({options:He,playerId:We,customControls:Ta}),mixcloud:pt({options:He}),twitch:pt({options:He,playerId:We}),vidyard:pt({options:He})}),onReady:Ce,onStart:Ce,onPlay:Ce,onPause:Ce,onBuffer:Ce,onBufferEnd:Ce,onEnded:Ce,onError:Ce,onDuration:Ce,onSeek:Ce,onPlaybackRateChange:Ce,onProgress:Ce,onClickPreview:Ce,onEnablePIP:Ce,onDisablePIP:Ce};ar.propTypes=dE;var Ie=function(){},hE={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:Ie},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:Ie,onStart:Ie,onPlay:Ie,onPause:Ie,onBuffer:Ie,onBufferEnd:Ie,onEnded:Ie,onError:Ie,onDuration:Ie,onSeek:Ie,onPlaybackRateChange:Ie,onProgress:Ie,onClickPreview:Ie,onEnablePIP:Ie,onDisablePIP:Ie};ar.defaultProps=hE;var z3={};(function(t){function e(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(p){return typeof p}:e=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},e(g)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(j.exports),r=o(F3),u=ar,i=se;function o(g){return g&&g.__esModule?g:{default:g}}function s(){if(typeof WeakMap!="function")return null;var g=new WeakMap;return s=function(){return g},g}function a(g){if(g&&g.__esModule)return g;if(g===null||e(g)!=="object"&&typeof g!="function")return{default:g};var f=s();if(f&&f.has(g))return f.get(g);var p={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in g)if(Object.prototype.hasOwnProperty.call(g,b)){var O=d?Object.getOwnPropertyDescriptor(g,b):null;O&&(O.get||O.set)?Object.defineProperty(p,b,O):p[b]=g[b]}return p.default=g,f&&f.set(g,p),p}function l(){return l=Object.assign||function(g){for(var f=1;f<arguments.length;f++){var p=arguments[f];for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&(g[d]=p[d])}return g},l.apply(this,arguments)}function c(g,f){if(!(g instanceof f))throw new TypeError("Cannot call a class as a function")}function h(g,f){for(var p=0;p<f.length;p++){var d=f[p];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(g,d.key,d)}}function m(g,f,p){return f&&h(g.prototype,f),p&&h(g,p),g}function y(g,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(f&&f.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),f&&v(g,f)}function v(g,f){return v=Object.setPrototypeOf||function(d,b){return d.__proto__=b,d},v(g,f)}function S(g){var f=w();return function(){var d=x(g),b;if(f){var O=x(this).constructor;b=Reflect.construct(d,arguments,O)}else b=d.apply(this,arguments);return C(this,b)}}function C(g,f){return f&&(e(f)==="object"||typeof f=="function")?f:E(g)}function E(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function w(){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(g){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(p){return p.__proto__||Object.getPrototypeOf(p)},x(g)}function N(g,f,p){return f in g?Object.defineProperty(g,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):g[f]=p,g}var P=5e3,D=function(g){y(p,g);var f=S(p);function p(){var d;c(this,p);for(var b=arguments.length,O=new Array(b),L=0;L<b;L++)O[L]=arguments[L];return d=f.call.apply(f,[this].concat(O)),N(E(d),"mounted",!1),N(E(d),"isReady",!1),N(E(d),"isPlaying",!1),N(E(d),"isLoading",!0),N(E(d),"loadOnReady",null),N(E(d),"startOnPlay",!0),N(E(d),"seekOnPlay",null),N(E(d),"onDurationCalled",!1),N(E(d),"handlePlayerMount",function(k){if(d.player){d.progress();return}d.player=k,d.player.load(d.props.url),d.progress()}),N(E(d),"getInternalPlayer",function(k){return d.player?d.player[k]:null}),N(E(d),"progress",function(){if(d.props.url&&d.player&&d.isReady){var k=d.getCurrentTime()||0,T=d.getSecondsLoaded(),B=d.getDuration();if(B){var F={playedSeconds:k,played:k/B};T!==null&&(F.loadedSeconds=T,F.loaded=T/B),(F.playedSeconds!==d.prevPlayed||F.loadedSeconds!==d.prevLoaded)&&d.props.onProgress(F),d.prevPlayed=F.playedSeconds,d.prevLoaded=F.loadedSeconds}}d.progressTimeout=setTimeout(d.progress,d.props.progressFrequency||d.props.progressInterval)}),N(E(d),"handleReady",function(){if(!!d.mounted){d.isReady=!0,d.isLoading=!1;var k=d.props,T=k.onReady,B=k.playing,F=k.volume,R=k.muted;T(),!R&&F!==null&&d.player.setVolume(F),d.loadOnReady?(d.player.load(d.loadOnReady,!0),d.loadOnReady=null):B&&d.player.play(),d.handleDurationCheck()}}),N(E(d),"handlePlay",function(){d.isPlaying=!0,d.isLoading=!1;var k=d.props,T=k.onStart,B=k.onPlay,F=k.playbackRate;d.startOnPlay&&(d.player.setPlaybackRate&&F!==1&&d.player.setPlaybackRate(F),T(),d.startOnPlay=!1),B(),d.seekOnPlay&&(d.seekTo(d.seekOnPlay),d.seekOnPlay=null),d.handleDurationCheck()}),N(E(d),"handlePause",function(k){d.isPlaying=!1,d.isLoading||d.props.onPause(k)}),N(E(d),"handleEnded",function(){var k=d.props,T=k.activePlayer,B=k.loop,F=k.onEnded;T.loopOnEnded&&B&&d.seekTo(0),B||(d.isPlaying=!1,F())}),N(E(d),"handleError",function(){var k;d.isLoading=!1,(k=d.props).onError.apply(k,arguments)}),N(E(d),"handleDurationCheck",function(){clearTimeout(d.durationCheckTimeout);var k=d.getDuration();k?d.onDurationCalled||(d.props.onDuration(k),d.onDurationCalled=!0):d.durationCheckTimeout=setTimeout(d.handleDurationCheck,100)}),N(E(d),"handleLoaded",function(){d.isLoading=!1}),d}return m(p,[{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(b){var O=this;if(!!this.player){var L=this.props,k=L.url,T=L.playing,B=L.volume,F=L.muted,R=L.playbackRate,M=L.pip,A=L.loop,I=L.activePlayer,V=L.disableDeferredLoading;if(!(0,r.default)(b.url,k)){if(this.isLoading&&!I.forceLoad&&!V&&!(0,i.isMediaStream)(k)){console.warn("ReactPlayer: the attempt to load ".concat(k," is being deferred until the player has loaded")),this.loadOnReady=k;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(k,this.isReady)}!b.playing&&T&&!this.isPlaying&&this.player.play(),b.playing&&!T&&this.isPlaying&&this.player.pause(),!b.pip&&M&&this.player.enablePIP&&this.player.enablePIP(),b.pip&&!M&&this.player.disablePIP&&this.player.disablePIP(),b.volume!==B&&B!==null&&this.player.setVolume(B),b.muted!==F&&(F?this.player.mute():(this.player.unmute(),B!==null&&setTimeout(function(){return O.player.setVolume(B)}))),b.playbackRate!==R&&this.player.setPlaybackRate&&this.player.setPlaybackRate(R),b.loop!==A&&this.player.setLoop&&this.player.setLoop(A)}}},{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(b,O){var L=this;if(!this.isReady){b!==0&&(this.seekOnPlay=b,setTimeout(function(){L.seekOnPlay=null},P));return}var k=O?O==="fraction":b>0&&b<1;if(k){var T=this.player.getDuration();if(!T){console.warn("ReactPlayer: could not seek using fraction \u2013\xA0duration not yet available");return}this.player.seekTo(T*b);return}this.player.seekTo(b)}},{key:"render",value:function(){var b=this.props.activePlayer;return b?n.default.createElement(b,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}}]),p}(n.Component);t.default=D,N(D,"displayName","Player"),N(D,"propTypes",u.propTypes),N(D,"defaultProps",u.defaultProps)})(z3);var Fa={},Ef;function pE(){return Ef||(Ef=1,function(t){function e(P){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(g){return typeof g}:e=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},e(P)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(j.exports);function r(){if(typeof WeakMap!="function")return null;var P=new WeakMap;return r=function(){return P},P}function u(P){if(P&&P.__esModule)return P;if(P===null||e(P)!=="object"&&typeof P!="function")return{default:P};var D=r();if(D&&D.has(P))return D.get(P);var g={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in P)if(Object.prototype.hasOwnProperty.call(P,p)){var d=f?Object.getOwnPropertyDescriptor(P,p):null;d&&(d.get||d.set)?Object.defineProperty(g,p,d):g[p]=P[p]}return g.default=P,D&&D.set(P,g),g}function i(P,D){var g=Object.keys(P);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(P);D&&(f=f.filter(function(p){return Object.getOwnPropertyDescriptor(P,p).enumerable})),g.push.apply(g,f)}return g}function o(P){for(var D=1;D<arguments.length;D++){var g=arguments[D]!=null?arguments[D]:{};D%2?i(Object(g),!0).forEach(function(f){E(P,f,g[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(g)):i(Object(g)).forEach(function(f){Object.defineProperty(P,f,Object.getOwnPropertyDescriptor(g,f))})}return P}function s(P,D){if(!(P instanceof D))throw new TypeError("Cannot call a class as a function")}function a(P,D){for(var g=0;g<D.length;g++){var f=D[g];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(P,f.key,f)}}function l(P,D,g){return D&&a(P.prototype,D),g&&a(P,g),P}function c(P,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(D&&D.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),D&&h(P,D)}function h(P,D){return h=Object.setPrototypeOf||function(f,p){return f.__proto__=p,f},h(P,D)}function m(P){var D=S();return function(){var f=C(P),p;if(D){var d=C(this).constructor;p=Reflect.construct(f,arguments,d)}else p=f.apply(this,arguments);return y(this,p)}}function y(P,D){return D&&(e(D)==="object"||typeof D=="function")?D:v(P)}function v(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function S(){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 C(P){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},C(P)}function E(P,D,g){return D in P?Object.defineProperty(P,D,{value:g,enumerable:!0,configurable:!0,writable:!0}):P[D]=g,P}var w="64px",x={},N=function(P){c(g,P);var D=m(g);function g(){var f;s(this,g);for(var p=arguments.length,d=new Array(p),b=0;b<p;b++)d[b]=arguments[b];return f=D.call.apply(D,[this].concat(d)),E(v(f),"mounted",!1),E(v(f),"state",{image:null}),E(v(f),"handleKeyPress",function(O){(O.key==="Enter"||O.key===" ")&&f.props.onClick()}),f}return l(g,[{key:"componentDidMount",value:function(){this.mounted=!0,this.fetchImage(this.props)}},{key:"componentDidUpdate",value:function(p){var d=this.props,b=d.url,O=d.light;(p.url!==b||p.light!==O)&&this.fetchImage(this.props)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"fetchImage",value:function(p){var d=this,b=p.url,O=p.light,L=p.oEmbedUrl;if(!n.default.isValidElement(O)){if(typeof O=="string"){this.setState({image:O});return}if(x[b]){this.setState({image:x[b]});return}return this.setState({image:null}),window.fetch(L.replace("{url}",b)).then(function(k){return k.json()}).then(function(k){if(k.thumbnail_url&&d.mounted){var T=k.thumbnail_url.replace("height=100","height=480");d.setState({image:T}),x[b]=T}})}}},{key:"render",value:function(){var p=this.props,d=p.light,b=p.onClick,O=p.playIcon,L=p.previewTabIndex,k=this.state.image,T=n.default.isValidElement(d),B={display:"flex",alignItems:"center",justifyContent:"center"},F={preview:o({width:"100%",height:"100%",backgroundImage:k&&!T?"url(".concat(k,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer"},B),shadow:o({background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:w,width:w,height:w,position:T?"absolute":void 0},B),playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},R=n.default.createElement("div",{style:F.shadow,className:"react-player__shadow"},n.default.createElement("div",{style:F.playIcon,className:"react-player__play-icon"}));return n.default.createElement("div",{style:F.preview,className:"react-player__preview",onClick:b,tabIndex:L,onKeyPress:this.handleKeyPress},T?d:null,O||R)}}]),g}(n.Component);t.default=N}(Fa)),Fa}Object.defineProperty(Ts,"__esModule",{value:!0});Ts.createReactPlayer=void 0;var qn=V3(j.exports),mE=Fs(v3),La=Fs(nE),bf=Fs(F3),ku=ar,gE=se,yE=Fs(z3);function Fs(t){return t&&t.__esModule?t:{default:t}}function Uu(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Uu=function(n){return typeof n}:Uu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Uu(t)}function wf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),n.push.apply(n,r)}return n}function xf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wf(Object(n),!0).forEach(function(r){ve(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function es(){return es=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},es.apply(this,arguments)}function Ba(t){return bE(t)||EE(t)||_E(t)||vE()}function vE(){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 _E(t,e){if(!!t){if(typeof t=="string")return Jl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jl(t,e)}}function EE(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function bE(t){if(Array.isArray(t))return Jl(t)}function Jl(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xE(t,e,n){return e&&Pf(t.prototype,e),n&&Pf(t,n),t}function PE(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ec(t,e)}function ec(t,e){return ec=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},ec(t,e)}function SE(t){var e=OE();return function(){var r=ts(t),u;if(e){var i=ts(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return DE(this,u)}}function DE(t,e){return e&&(Uu(e)==="object"||typeof e=="function")?e:ze(t)}function ze(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function OE(){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 ts(t){return ts=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ts(t)}function ve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function j3(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return j3=function(){return t},t}function V3(t){if(t&&t.__esModule)return t;if(t===null||Uu(t)!=="object"&&typeof t!="function")return{default:t};var e=j3();if(e&&e.has(t))return e.get(t);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)){var i=r?Object.getOwnPropertyDescriptor(t,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=t[u]}return n.default=t,e&&e.set(t,n),n}var CE=(0,qn.lazy)(function(){return Promise.resolve().then(function(){return V3(pE())})}),kE=typeof window<"u"&&window.document,AE=typeof Ks<"u"&&Ks.window&&Ks.window.document,RE=Object.keys(ku.propTypes),ME=kE||AE?qn.Suspense:function(){return null},pu=[],NE=function(e,n){var r,u;return u=r=function(i){PE(s,i);var o=SE(s);function s(){var a;wE(this,s);for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];return a=o.call.apply(o,[this].concat(c)),ve(ze(a),"state",{showPreview:!!a.props.light}),ve(ze(a),"references",{wrapper:function(y){a.wrapper=y},player:function(y){a.player=y}}),ve(ze(a),"handleClickPreview",function(m){a.setState({showPreview:!1}),a.props.onClickPreview(m)}),ve(ze(a),"showPreview",function(){a.setState({showPreview:!0})}),ve(ze(a),"getDuration",function(){return a.player?a.player.getDuration():null}),ve(ze(a),"getCurrentTime",function(){return a.player?a.player.getCurrentTime():null}),ve(ze(a),"getSecondsLoaded",function(){return a.player?a.player.getSecondsLoaded():null}),ve(ze(a),"getInternalPlayer",function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"player";return a.player?a.player.getInternalPlayer(m):null}),ve(ze(a),"seekTo",function(m,y){if(!a.player)return null;a.player.seekTo(m,y)}),ve(ze(a),"handleReady",function(){a.props.onReady(ze(a))}),ve(ze(a),"getActivePlayer",(0,La.default)(function(m){for(var y=0,v=[].concat(pu,Ba(e));y<v.length;y++){var S=v[y];if(S.canPlay(m))return S}return n||null})),ve(ze(a),"getConfig",(0,La.default)(function(m,y){var v=a.props.config;return mE.default.all([ku.defaultProps.config,ku.defaultProps.config[y]||{},v,v[y]||{}])})),ve(ze(a),"getAttributes",(0,La.default)(function(m){return(0,gE.omit)(a.props,RE)})),ve(ze(a),"renderActivePlayer",function(m){if(!m)return null;var y=a.getActivePlayer(m);if(!y)return null;var v=a.getConfig(m,y.key);return qn.default.createElement(yE.default,es({},a.props,{key:y.key,ref:a.references.player,config:v,activePlayer:y.lazyPlayer||y,onReady:a.handleReady}))}),a}return xE(s,[{key:"shouldComponentUpdate",value:function(l,c){return!(0,bf.default)(this.props,l)||!(0,bf.default)(this.state,c)}},{key:"componentDidUpdate",value:function(l){var c=this.props.light;!l.light&&c&&this.setState({showPreview:!0}),l.light&&!c&&this.setState({showPreview:!1})}},{key:"renderPreview",value:function(l){if(!l)return null;var c=this.props,h=c.light,m=c.playIcon,y=c.previewTabIndex,v=c.oEmbedUrl;return qn.default.createElement(CE,{url:l,light:h,playIcon:m,previewTabIndex:y,oEmbedUrl:v,onClick:this.handleClickPreview})}},{key:"render",value:function(){var l=this.props,c=l.url,h=l.style,m=l.width,y=l.height,v=l.fallback,S=l.wrapper,C=this.state.showPreview,E=this.getAttributes(c),w=typeof S=="string"?this.references.wrapper:void 0;return qn.default.createElement(S,es({ref:w,style:xf(xf({},h),{},{width:m,height:y})},E),qn.default.createElement(ME,{fallback:v},C?this.renderPreview(c):this.renderActivePlayer(c)))}}]),s}(qn.Component),ve(r,"displayName","ReactPlayer"),ve(r,"propTypes",ku.propTypes),ve(r,"defaultProps",ku.defaultProps),ve(r,"addCustomPlayer",function(i){pu.push(i)}),ve(r,"removeCustomPlayers",function(){pu.length=0}),ve(r,"canPlay",function(i){for(var o=0,s=[].concat(pu,Ba(e));o<s.length;o++){var a=s[o];if(a.canPlay(i))return!0}return!1}),ve(r,"canEnablePIP",function(i){for(var o=0,s=[].concat(pu,Ba(e));o<s.length;o++){var a=s[o];if(a.canEnablePIP&&a.canEnablePIP(i))return!0}return!1}),u};Ts.createReactPlayer=NE;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=r(g3),n=Ts;function r(o){return o&&o.__esModule?o:{default:o}}var u=e.default[e.default.length-1],i=(0,n.createReactPlayer)(e.default,u);t.default=i})(m3);const TE=qd(m3),U3=({videoUrl:t})=>_("div",{className:"video-player",children:_(TE,{url:t,controls:!0,volume:1,light:!0,height:"100%",width:"100%"})});function W3(t,e){return function(){return t.apply(e,arguments)}}const{toString:H3}=Object.prototype,{getPrototypeOf:d0}=Object,h0=(t=>e=>{const n=H3.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fn=t=>(t=t.toLowerCase(),e=>h0(e)===t),Ls=t=>e=>typeof e===t,{isArray:Si}=Array,tc=Ls("undefined");function FE(t){return t!==null&&!tc(t)&&t.constructor!==null&&!tc(t.constructor)&&tu(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $3=fn("ArrayBuffer");function LE(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&$3(t.buffer),e}const BE=Ls("string"),tu=Ls("function"),K3=Ls("number"),Y3=t=>t!==null&&typeof t=="object",IE=t=>t===!0||t===!1,Do=t=>{if(h0(t)!=="object")return!1;const e=d0(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},zE=fn("Date"),jE=fn("File"),VE=fn("Blob"),UE=fn("FileList"),WE=t=>Y3(t)&&tu(t.pipe),HE=t=>{const e="[object FormData]";return t&&(typeof FormData=="function"&&t instanceof FormData||H3.call(t)===e||tu(t.toString)&&t.toString()===e)},$E=fn("URLSearchParams"),KE=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bs(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,u;if(typeof t!="object"&&(t=[t]),Si(t))for(r=0,u=t.length;r<u;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(r=0;r<o;r++)s=i[r],e.call(null,t[s],s,t)}}function nc(){const t={},e=(n,r)=>{Do(t[r])&&Do(n)?t[r]=nc(t[r],n):Do(n)?t[r]=nc({},n):Si(n)?t[r]=n.slice():t[r]=n};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&Bs(arguments[n],e);return t}const YE=(t,e,n,{allOwnKeys:r}={})=>(Bs(e,(u,i)=>{n&&tu(u)?t[i]=W3(u,n):t[i]=u},{allOwnKeys:r}),t),qE=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),XE=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},GE=(t,e,n,r)=>{let u,i,o;const s={};if(e=e||{},t==null)return e;do{for(u=Object.getOwnPropertyNames(t),i=u.length;i-- >0;)o=u[i],(!r||r(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=n!==!1&&d0(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},QE=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},ZE=t=>{if(!t)return null;if(Si(t))return t;let e=t.length;if(!K3(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},JE=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&d0(Uint8Array)),e2=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let u;for(;(u=r.next())&&!u.done;){const i=u.value;e.call(t,i[0],i[1])}},t2=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},n2=fn("HTMLFormElement"),r2=t=>t.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,u){return r.toUpperCase()+u}),Sf=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),u2=fn("RegExp"),q3=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Bs(n,(u,i)=>{e(u,i,t)!==!1&&(r[i]=u)}),Object.defineProperties(t,r)},i2=t=>{q3(t,(e,n)=>{const r=t[n];if(!!tu(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not read-only method '"+n+"'")})}})},o2=(t,e)=>{const n={},r=u=>{u.forEach(i=>{n[i]=!0})};return Si(t)?r(t):r(String(t).split(e)),n},s2=()=>{},a2=(t,e)=>(t=+t,Number.isFinite(t)?t:e),U={isArray:Si,isArrayBuffer:$3,isBuffer:FE,isFormData:HE,isArrayBufferView:LE,isString:BE,isNumber:K3,isBoolean:IE,isObject:Y3,isPlainObject:Do,isUndefined:tc,isDate:zE,isFile:jE,isBlob:VE,isRegExp:u2,isFunction:tu,isStream:WE,isURLSearchParams:$E,isTypedArray:JE,isFileList:UE,forEach:Bs,merge:nc,extend:YE,trim:KE,stripBOM:qE,inherits:XE,toFlatObject:GE,kindOf:h0,kindOfTest:fn,endsWith:QE,toArray:ZE,forEachEntry:e2,matchAll:t2,isHTMLForm:n2,hasOwnProperty:Sf,hasOwnProp:Sf,reduceDescriptors:q3,freezeMethods:i2,toObjectSet:o2,toCamelCase:r2,noop:s2,toFiniteNumber:a2};function re(t,e,n,r,u){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),u&&(this.response=u)}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 X3=re.prototype,G3={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{G3[t]={value:t}});Object.defineProperties(re,G3);Object.defineProperty(X3,"isAxiosError",{value:!0});re.from=(t,e,n,r,u,i)=>{const o=Object.create(X3);return U.toFlatObject(t,o,function(a){return a!==Error.prototype},s=>s!=="isAxiosError"),re.call(o,t.message,e,n,r,u),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};var l2=typeof self=="object"?self.FormData:window.FormData;function rc(t){return U.isPlainObject(t)||U.isArray(t)}function Q3(t){return U.endsWith(t,"[]")?t.slice(0,-2):t}function Df(t,e,n){return t?t.concat(e).map(function(u,i){return u=Q3(u),!n&&i?"["+u+"]":u}).join(n?".":""):e}function c2(t){return U.isArray(t)&&!t.some(rc)}const f2=U.toFlatObject(U,{},null,function(e){return/^is[A-Z]/.test(e)});function d2(t){return t&&U.isFunction(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator]}function Is(t,e,n){if(!U.isObject(t))throw new TypeError("target must be an object");e=e||new(l2||FormData),n=U.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,C){return!U.isUndefined(C[S])});const r=n.metaTokens,u=n.visitor||c,i=n.dots,o=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&d2(e);if(!U.isFunction(u))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(U.isDate(v))return v.toISOString();if(!a&&U.isBlob(v))throw new re("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(v)||U.isTypedArray(v)?a&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,S,C){let E=v;if(v&&!C&&typeof v=="object"){if(U.endsWith(S,"{}"))S=r?S:S.slice(0,-2),v=JSON.stringify(v);else if(U.isArray(v)&&c2(v)||U.isFileList(v)||U.endsWith(S,"[]")&&(E=U.toArray(v)))return S=Q3(S),E.forEach(function(x,N){!U.isUndefined(x)&&e.append(o===!0?Df([S],N,i):o===null?S:S+"[]",l(x))}),!1}return rc(v)?!0:(e.append(Df(C,S,i),l(v)),!1)}const h=[],m=Object.assign(f2,{defaultVisitor:c,convertValue:l,isVisitable:rc});function y(v,S){if(!U.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(v),U.forEach(v,function(E,w){(!U.isUndefined(E)&&u.call(e,E,U.isString(w)?w.trim():w,S,m))===!0&&y(E,S?S.concat(w):[w])}),h.pop()}}if(!U.isObject(t))throw new TypeError("data must be an object");return y(t),e}function Of(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function p0(t,e){this._pairs=[],t&&Is(t,this,e)}const Z3=p0.prototype;Z3.append=function(e,n){this._pairs.push([e,n])};Z3.toString=function(e){const n=e?function(r){return e.call(this,r,Of)}:Of;return this._pairs.map(function(u){return n(u[0])+"="+n(u[1])},"").join("&")};function h2(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function J3(t,e,n){if(!e)return t;const r=t.indexOf("#");r!==-1&&(t=t.slice(0,r));const u=n&&n.encode||h2,i=U.isURLSearchParams(e)?e.toString():new p0(e,n).toString(u);return i&&(t+=(t.indexOf("?")===-1?"?":"&")+i),t}class Cf{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){U.forEach(this.handlers,function(r){r!==null&&e(r)})}}const em={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},p2=typeof URLSearchParams<"u"?URLSearchParams:p0,m2=FormData,g2=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),rn={isBrowser:!0,classes:{URLSearchParams:p2,FormData:m2,Blob},isStandardBrowserEnv:g2,protocols:["http","https","file","blob","url","data"]};function y2(t,e){return Is(t,new rn.classes.URLSearchParams,Object.assign({visitor:function(n,r,u,i){return rn.isNode&&U.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function v2(t){return U.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function _2(t){const e={},n=Object.keys(t);let r;const u=n.length;let i;for(r=0;r<u;r++)i=n[r],e[i]=t[i];return e}function tm(t){function e(n,r,u,i){let o=n[i++];const s=Number.isFinite(+o),a=i>=n.length;return o=!o&&U.isArray(u)?u.length:o,a?(U.hasOwnProp(u,o)?u[o]=[u[o],r]:u[o]=r,!s):((!u[o]||!U.isObject(u[o]))&&(u[o]=[]),e(n,r,u[o],i)&&U.isArray(u[o])&&(u[o]=_2(u[o])),!s)}if(U.isFormData(t)&&U.isFunction(t.entries)){const n={};return U.forEachEntry(t,(r,u)=>{e(v2(r),u,n,0)}),n}return null}function E2(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(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 b2=rn.isStandardBrowserEnv?function(){return{write:function(n,r,u,i,o,s){const a=[];a.push(n+"="+encodeURIComponent(r)),U.isNumber(u)&&a.push("expires="+new Date(u).toGMTString()),U.isString(i)&&a.push("path="+i),U.isString(o)&&a.push("domain="+o),s===!0&&a.push("secure"),document.cookie=a.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 w2(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function x2(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function nm(t,e){return t&&!w2(e)?x2(t,e):e}const P2=rn.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function u(i){let o=i;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{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=u(window.location.href),function(o){const s=U.isString(o)?u(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function Di(t,e,n){re.call(this,t==null?"canceled":t,re.ERR_CANCELED,e,n),this.name="CanceledError"}U.inherits(Di,re,{__CANCEL__:!0});function S2(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}const D2=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"]),O2=t=>{const e={};let n,r,u;return t&&t.split(`
`).forEach(function(o){u=o.indexOf(":"),n=o.substring(0,u).trim().toLowerCase(),r=o.substring(u+1).trim(),!(!n||e[n]&&D2[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},kf=Symbol("internals"),rm=Symbol("defaults");function Au(t){return t&&String(t).trim().toLowerCase()}function Ji(t){return t===!1||t==null?t:String(t)}function C2(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}function Af(t,e,n,r){if(U.isFunction(r))return r.call(this,e,n);if(!!U.isString(e)){if(U.isString(r))return e.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(e)}}function k2(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function A2(t,e){const n=U.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(u,i,o){return this[r].call(this,e,u,i,o)},configurable:!0})})}function mu(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,u;for(;r-- >0;)if(u=n[r],e===u.toLowerCase())return u;return null}function xt(t,e){t&&this.set(t),this[rm]=e||null}Object.assign(xt.prototype,{set:function(t,e,n){const r=this;function u(i,o,s){const a=Au(o);if(!a)throw new Error("header name must be a non-empty string");const l=mu(r,a);l&&s!==!0&&(r[l]===!1||s===!1)||(U.isArray(i)?i=i.map(Ji):i=Ji(i),r[l||o]=i)}return U.isPlainObject(t)?U.forEach(t,(i,o)=>{u(i,o,e)}):u(e,t,n),this},get:function(t,e){if(t=Au(t),!t)return;const n=mu(this,t);if(n){const r=this[n];if(!e)return r;if(e===!0)return C2(r);if(U.isFunction(e))return e.call(this,r,n);if(U.isRegExp(e))return e.exec(r);throw new TypeError("parser must be boolean|regexp|function")}},has:function(t,e){if(t=Au(t),t){const n=mu(this,t);return!!(n&&(!e||Af(this,this[n],n,e)))}return!1},delete:function(t,e){const n=this;let r=!1;function u(i){if(i=Au(i),i){const o=mu(n,i);o&&(!e||Af(n,n[o],o,e))&&(delete n[o],r=!0)}}return U.isArray(t)?t.forEach(u):u(t),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(t){const e=this,n={};return U.forEach(this,(r,u)=>{const i=mu(n,u);if(i){e[i]=Ji(r),delete e[u];return}const o=t?k2(u):String(u).trim();o!==u&&delete e[u],e[o]=Ji(r),n[o]=!0}),this},toJSON:function(){const t=Object.create(null);return U.forEach(Object.assign({},this[rm]||null,this),(e,n)=>{e==null||e===!1||(t[n]=U.isArray(e)?e.join(", "):e)}),t}});Object.assign(xt,{from:function(t){return U.isString(t)?new this(O2(t)):t instanceof this?t:new this(t)},accessor:function(t){const n=(this[kf]=this[kf]={accessors:{}}).accessors,r=this.prototype;function u(i){const o=Au(i);n[o]||(A2(r,i),n[o]=!0)}return U.isArray(t)?t.forEach(u):u(t),this}});xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);U.freezeMethods(xt.prototype);U.freezeMethods(xt);function R2(t,e){t=t||10;const n=new Array(t),r=new Array(t);let u=0,i=0,o;return e=e!==void 0?e:1e3,function(a){const l=Date.now(),c=r[i];o||(o=l),n[u]=a,r[u]=l;let h=i,m=0;for(;h!==u;)m+=n[h++],h=h%t;if(u=(u+1)%t,u===i&&(i=(i+1)%t),l-o<e)return;const y=c&&l-c;return y?Math.round(m*1e3/y):void 0}}function Rf(t,e){let n=0;const r=R2(50,250);return u=>{const i=u.loaded,o=u.lengthComputable?u.total:void 0,s=i-n,a=r(s),l=i<=o;n=i;const c={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:a||void 0,estimated:a&&o&&l?(o-i)/a:void 0};c[e?"download":"upload"]=!0,t(c)}}function Mf(t){return new Promise(function(n,r){let u=t.data;const i=xt.from(t.headers).normalize(),o=t.responseType;let s;function a(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}U.isFormData(u)&&rn.isStandardBrowserEnv&&i.setContentType(!1);let l=new XMLHttpRequest;if(t.auth){const y=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(y+":"+v))}const c=nm(t.baseURL,t.url);l.open(t.method.toUpperCase(),J3(c,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function h(){if(!l)return;const y=xt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),S={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:y,config:t,request:l};E2(function(E){n(E),a()},function(E){r(E),a()},S),l=null}if("onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(h)},l.onabort=function(){!l||(r(new re("Request aborted",re.ECONNABORTED,t,l)),l=null)},l.onerror=function(){r(new re("Network Error",re.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let v=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const S=t.transitional||em;t.timeoutErrorMessage&&(v=t.timeoutErrorMessage),r(new re(v,S.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,t,l)),l=null},rn.isStandardBrowserEnv){const y=(t.withCredentials||P2(c))&&t.xsrfCookieName&&b2.read(t.xsrfCookieName);y&&i.set(t.xsrfHeaderName,y)}u===void 0&&i.setContentType(null),"setRequestHeader"in l&&U.forEach(i.toJSON(),function(v,S){l.setRequestHeader(S,v)}),U.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),o&&o!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",Rf(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Rf(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=y=>{!l||(r(!y||y.type?new Di(null,t,l):y),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const m=S2(c);if(m&&rn.protocols.indexOf(m)===-1){r(new re("Unsupported protocol "+m+":",re.ERR_BAD_REQUEST,t));return}l.send(u||null)})}const Nf={http:Mf,xhr:Mf},Tf={getAdapter:t=>{if(U.isString(t)){const e=Nf[t];if(!t)throw Error(U.hasOwnProp(t)?`Adapter '${t}' is not available in the build`:`Can not resolve adapter '${t}'`);return e}if(!U.isFunction(t))throw new TypeError("adapter is not a function");return t},adapters:Nf},M2={"Content-Type":"application/x-www-form-urlencoded"};function N2(){let t;return typeof XMLHttpRequest<"u"?t=Tf.getAdapter("xhr"):typeof process<"u"&&U.kindOf(process)==="process"&&(t=Tf.getAdapter("http")),t}function T2(t,e,n){if(U.isString(t))try{return(e||JSON.parse)(t),U.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const nu={transitional:em,adapter:N2(),transformRequest:[function(e,n){const r=n.getContentType()||"",u=r.indexOf("application/json")>-1,i=U.isObject(e);if(i&&U.isHTMLForm(e)&&(e=new FormData(e)),U.isFormData(e))return u&&u?JSON.stringify(tm(e)):e;if(U.isArrayBuffer(e)||U.isBuffer(e)||U.isStream(e)||U.isFile(e)||U.isBlob(e))return e;if(U.isArrayBufferView(e))return e.buffer;if(U.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return y2(e,this.formSerializer).toString();if((s=U.isFileList(e))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Is(s?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||u?(n.setContentType("application/json",!1),T2(e)):e}],transformResponse:[function(e){const n=this.transitional||nu.transitional,r=n&&n.forcedJSONParsing,u=this.responseType==="json";if(e&&U.isString(e)&&(r&&!this.responseType||u)){const o=!(n&&n.silentJSONParsing)&&u;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?re.from(s,re.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rn.classes.FormData,Blob:rn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};U.forEach(["delete","get","head"],function(e){nu.headers[e]={}});U.forEach(["post","put","patch"],function(e){nu.headers[e]=U.merge(M2)});function Ia(t,e){const n=this||nu,r=e||n,u=xt.from(r.headers);let i=r.data;return U.forEach(t,function(s){i=s.call(n,i,u.normalize(),e?e.status:void 0)}),u.normalize(),i}function um(t){return!!(t&&t.__CANCEL__)}function za(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Di}function Ff(t){return za(t),t.headers=xt.from(t.headers),t.data=Ia.call(t,t.transformRequest),(t.adapter||nu.adapter)(t).then(function(r){return za(t),r.data=Ia.call(t,t.transformResponse,r),r.headers=xt.from(r.headers),r},function(r){return um(r)||(za(t),r&&r.response&&(r.response.data=Ia.call(t,t.transformResponse,r.response),r.response.headers=xt.from(r.response.headers))),Promise.reject(r)})}function di(t,e){e=e||{};const n={};function r(l,c){return U.isPlainObject(l)&&U.isPlainObject(c)?U.merge(l,c):U.isPlainObject(c)?U.merge({},c):U.isArray(c)?c.slice():c}function u(l){if(U.isUndefined(e[l])){if(!U.isUndefined(t[l]))return r(void 0,t[l])}else return r(t[l],e[l])}function i(l){if(!U.isUndefined(e[l]))return r(void 0,e[l])}function o(l){if(U.isUndefined(e[l])){if(!U.isUndefined(t[l]))return r(void 0,t[l])}else return r(void 0,e[l])}function s(l){if(l in e)return r(t[l],e[l]);if(l in t)return r(void 0,t[l])}const a={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s};return U.forEach(Object.keys(t).concat(Object.keys(e)),function(c){const h=a[c]||u,m=h(c);U.isUndefined(m)&&h!==s||(n[c]=m)}),n}const im="1.1.2",m0={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{m0[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Lf={};m0.transitional=function(e,n,r){function u(i,o){return"[Axios v"+im+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new re(u(o," has been removed"+(n?" in "+n:"")),re.ERR_DEPRECATED);return n&&!Lf[o]&&(Lf[o]=!0,console.warn(u(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,s):!0}};function F2(t,e,n){if(typeof t!="object")throw new re("options must be an object",re.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let u=r.length;for(;u-- >0;){const i=r[u],o=e[i];if(o){const s=t[i],a=s===void 0||o(s,i,t);if(a!==!0)throw new re("option "+i+" must be "+a,re.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new re("Unknown option "+i,re.ERR_BAD_OPTION)}}const om={assertOptions:F2,validators:m0},vr=om.validators;class tr{constructor(e){this.defaults=e,this.interceptors={request:new Cf,response:new Cf}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=di(this.defaults,n);const r=n.transitional;r!==void 0&&om.assertOptions(r,{silentJSONParsing:vr.transitional(vr.boolean),forcedJSONParsing:vr.transitional(vr.boolean),clarifyTimeoutError:vr.transitional(vr.boolean)},!1),n.method=(n.method||this.defaults.method||"get").toLowerCase();const u=n.headers&&U.merge(n.headers.common,n.headers[n.method]);u&&U.forEach(["delete","get","head","post","put","patch","common"],function(y){delete n.headers[y]}),n.headers=new xt(n.headers,u);const i=[];let o=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(o=o&&y.synchronous,i.unshift(y.fulfilled,y.rejected))});const s=[];this.interceptors.response.forEach(function(y){s.push(y.fulfilled,y.rejected)});let a,l=0,c;if(!o){const m=[Ff.bind(this),void 0];for(m.unshift.apply(m,i),m.push.apply(m,s),c=m.length,a=Promise.resolve(n);l<c;)a=a.then(m[l++],m[l++]);return a}c=i.length;let h=n;for(l=0;l<c;){const m=i[l++],y=i[l++];try{h=m(h)}catch(v){y.call(this,v);break}}try{a=Ff.call(this,h)}catch(m){return Promise.reject(m)}for(l=0,c=s.length;l<c;)a=a.then(s[l++],s[l++]);return a}getUri(e){e=di(this.defaults,e);const n=nm(e.baseURL,e.url);return J3(n,e.params,e.paramsSerializer)}}U.forEach(["delete","get","head","options"],function(e){tr.prototype[e]=function(n,r){return this.request(di(r||{},{method:e,url:n,data:(r||{}).data}))}});U.forEach(["post","put","patch"],function(e){function n(r){return function(i,o,s){return this.request(di(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}tr.prototype[e]=n(),tr.prototype[e+"Form"]=n(!0)});class g0{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(u=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](u);r._listeners=null}),this.promise.then=u=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(u);return o.cancel=function(){r.unsubscribe(i)},o},e(function(i,o,s){r.reason||(r.reason=new Di(i,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new g0(function(u){e=u}),cancel:e}}}function L2(t){return function(n){return t.apply(null,n)}}function B2(t){return U.isObject(t)&&t.isAxiosError===!0}function sm(t){const e=new tr(t),n=W3(tr.prototype.request,e);return U.extend(n,tr.prototype,e,{allOwnKeys:!0}),U.extend(n,e,null,{allOwnKeys:!0}),n.create=function(u){return sm(di(t,u))},n}const Xe=sm(nu);Xe.Axios=tr;Xe.CanceledError=Di;Xe.CancelToken=g0;Xe.isCancel=um;Xe.VERSION=im;Xe.toFormData=Is;Xe.AxiosError=re;Xe.Cancel=Xe.CanceledError;Xe.all=function(e){return Promise.all(e)};Xe.spread=L2;Xe.isAxiosError=B2;Xe.formToJSON=t=>tm(U.isHTMLForm(t)?new FormData(t):t);class qe{constructor(e,n,r,u,i){pr(this,"destination");pr(this,"initialState");pr(this,"setState");pr(this,"setLoader");pr(this,"middleware",e=>e);this.destination=e,this.initialState=n,this.setState=r,this.setLoader=u,this.middleware=i}get(e,n=!1){try{return Xe.get(this.destination,e?{headers:e}: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(e,n=!1,r=!1){try{return Xe.post(this.destination,e).then(u=>{r&&this.setLoader(!0),n&&this.setState(u.data)}).finally(()=>{r&&this.setLoader(!1)})}catch(u){throw new Error("Bad parameters",u)}}}const am="/assets/arrow-up.403bca16.svg",lm="/assets/arrow-down.6e85faaa.svg",I2=({active:t,onClick:e,title:n,priceChange:r,price:u,currency:i,titleHide:o})=>{const s=c=>{const h=Array.from(c);h.pop();let m="";return h.forEach(y=>{m=m+y}),parseFloat(m)},[a,l]=j.exports.useState();return j.exports.useEffect(()=>{l(s(r))},[r]),z("div",{className:`table-row ${t}`,onClick:()=>e(),children:[_("div",{className:`table-product-name ${o}`,children:n}),z("div",{className:"table-row-status",children:[_("div",{className:"table-row-arrow",children:_("img",{src:a>0?am:a<0?lm:""})}),_("span",{className:a>0?"table-row-status-title green":a<0?"table-row-status-title red":"table-row-status-title",children:r})]}),z("div",{className:"table-product-price",children:[u," ",i]})]})},z2=({activeRow:t,setActiveRow:e})=>{const[n,r]=j.exports.useState(),u=i=>{e(i)};return j.exports.useEffect(()=>{new qe("http://tmex.gov.tm:8765/api/categories/8/tradings",n,r).get()},[]),z("div",{className:"table",children:[z("div",{className:"table-top",children:[_("h4",{className:"table-title",children:"\u0422\u043E\u0432\u0430\u0440\u043D\u0430\u044F \u043F\u043E\u0437\u0438\u0446\u0438\u044F"}),_("h4",{className:"table-title",children:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0446\u0435\u043D\u044B"}),_("h4",{className:"table-title",children:"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0446\u0435\u043D\u0430"})]}),_("div",{className:"table-bottom",children:n?n.data.map((i,o)=>_(I2,{title:i.title,titleHide:i.title.length>7?"title-hide":null,priceChange:i.price_change,price:i.price,currency:i.currency,onClick:()=>u(o),active:t===o?"active":""},i.id)):null})]})};/*!
* Chart.js v3.9.1
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/const j2=function(){let t=0;return function(){return t++}}();function ie(t){return t===null||typeof t>"u"}function fe(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ne(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}const Te=t=>(typeof t=="number"||t instanceof Number)&&isFinite(+t);function yt(t,e){return Te(t)?t:e}function ee(t,e){return typeof t>"u"?e:t}const V2=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:t/e,cm=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function _e(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function ue(t,e,n,r){let u,i,o;if(fe(t))if(i=t.length,r)for(u=i-1;u>=0;u--)e.call(n,t[u],u);else for(u=0;u<i;u++)e.call(n,t[u],u);else if(ne(t))for(o=Object.keys(t),i=o.length,u=0;u<i;u++)e.call(n,t[o[u]],o[u])}function ns(t,e){let n,r,u,i;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(u=t[n],i=e[n],u.datasetIndex!==i.datasetIndex||u.index!==i.index)return!1;return!0}function rs(t){if(fe(t))return t.map(rs);if(ne(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let u=0;for(;u<r;++u)e[n[u]]=rs(t[n[u]]);return e}return t}function fm(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function U2(t,e,n,r){if(!fm(t))return;const u=e[t],i=n[t];ne(u)&&ne(i)?hi(u,i,r):e[t]=rs(i)}function hi(t,e,n){const r=fe(e)?e:[e],u=r.length;if(!ne(t))return t;n=n||{};const i=n.merger||U2;for(let o=0;o<u;++o){if(e=r[o],!ne(e))continue;const s=Object.keys(e);for(let a=0,l=s.length;a<l;++a)i(s[a],t,e,n)}return t}function Wu(t,e){return hi(t,e,{merger:W2})}function W2(t,e,n){if(!fm(t))return;const r=e[t],u=n[t];ne(r)&&ne(u)?Wu(r,u):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=rs(u))}const Bf={"":t=>t,x:t=>t.x,y:t=>t.y};function Ln(t,e){return(Bf[e]||(Bf[e]=H2(e)))(t)}function H2(t){const e=$2(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function $2(t){const e=t.split("."),n=[];let r="";for(const u of e)r+=u,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function y0(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Dt=t=>typeof t<"u",Bn=t=>typeof t=="function",If=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function K2(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const pe=Math.PI,ae=2*pe,Y2=ae+pe,us=Number.POSITIVE_INFINITY,q2=pe/180,be=pe/2,gu=pe/4,zf=pe*2/3,Et=Math.log10,Kt=Math.sign;function jf(t){const e=Math.round(t);t=Hu(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Et(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function X2(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((u,i)=>u-i).pop(),e}function qr(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Hu(t,e,n){return Math.abs(t-e)<n}function G2(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function dm(t,e,n){let r,u,i;for(r=0,u=t.length;r<u;r++)i=t[r][n],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function Mt(t){return t*(pe/180)}function v0(t){return t*(180/pe)}function Vf(t){if(!Te(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function hm(t,e){const n=e.x-t.x,r=e.y-t.y,u=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i<-.5*pe&&(i+=ae),{angle:i,distance:u}}function uc(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Q2(t,e){return(t-e+Y2)%ae-pe}function At(t){return(t%ae+ae)%ae}function pi(t,e,n,r){const u=At(t),i=At(e),o=At(n),s=At(i-u),a=At(o-u),l=At(u-i),c=At(u-o);return u===i||u===o||r&&i===o||s>a&&l<c}function Ve(t,e,n){return Math.max(e,Math.min(n,t))}function Z2(t){return Ve(t,-32768,32767)}function is(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function _0(t,e,n){n=n||(o=>t[o]<e);let r=t.length-1,u=0,i;for(;r-u>1;)i=u+r>>1,n(i)?u=i:r=i;return{lo:u,hi:r}}const Zn=(t,e,n,r)=>_0(t,n,r?u=>t[u][e]<=n:u=>t[u][e]<n),J2=(t,e,n)=>_0(t,n,r=>t[r][e]>=n);function eb(t,e,n){let r=0,u=t.length;for(;r<u&&t[r]<e;)r++;for(;u>r&&t[u-1]>n;)u--;return r>0||u<t.length?t.slice(r,u):t}const pm=["push","pop","shift","splice","unshift"];function tb(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),pm.forEach(n=>{const r="_onData"+y0(n),u=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...i){const o=u.apply(this,i);return t._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...i)}),o}})})}function Uf(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,u=r.indexOf(e);u!==-1&&r.splice(u,1),!(r.length>0)&&(pm.forEach(i=>{delete t[i]}),delete t._chartjs)}function mm(t){const e=new Set;let n,r;for(n=0,r=t.length;n<r;++n)e.add(t[n]);return e.size===r?t:Array.from(e)}const gm=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function ym(t,e,n){const r=n||(o=>Array.prototype.slice.call(o));let u=!1,i=[];return function(...o){i=r(o),u||(u=!0,gm.call(window,()=>{u=!1,t.apply(e,i)}))}}function nb(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const vm=t=>t==="start"?"left":t==="end"?"right":"center",$u=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2;function _m(t,e,n){const r=e.length;let u=0,i=r;if(t._sorted){const{iScale:o,_parsed:s}=t,a=o.axis,{min:l,max:c,minDefined:h,maxDefined:m}=o.getUserBounds();h&&(u=Ve(Math.min(Zn(s,o.axis,l).lo,n?r:Zn(e,a,o.getPixelForValue(l)).lo),0,r-1)),m?i=Ve(Math.max(Zn(s,o.axis,c,!0).hi+1,n?0:Zn(e,a,o.getPixelForValue(c),!0).hi+1),u,r)-u:i=r-u}return{start:u,count:i}}function Em(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,u={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=u,!0;const i=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,u),i}const eo=t=>t===0||t===1,Wf=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*ae/n)),Hf=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*ae/n)+1,Ku={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*be)+1,easeOutSine:t=>Math.sin(t*be),easeInOutSine:t=>-.5*(Math.cos(pe*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>eo(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>eo(t)?t:Wf(t,.075,.3),easeOutElastic:t=>eo(t)?t:Hf(t,.075,.3),easeInOutElastic(t){return eo(t)?t:t<.5?.5*Wf(t*2,.1125,.45):.5+.5*Hf(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Ku.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Ku.easeInBounce(t*2)*.5:Ku.easeOutBounce(t*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 Oi(t){return t+.5|0}const bn=(t,e,n)=>Math.max(Math.min(t,n),e);function Ru(t){return bn(Oi(t*2.55),0,255)}function Nn(t){return bn(Oi(t*255),0,255)}function Jt(t){return bn(Oi(t/2.55)/100,0,1)}function $f(t){return bn(Oi(t*100),0,100)}const mt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ic=[..."0123456789ABCDEF"],rb=t=>ic[t&15],ub=t=>ic[(t&240)>>4]+ic[t&15],to=t=>(t&240)>>4===(t&15),ib=t=>to(t.r)&&to(t.g)&&to(t.b)&&to(t.a);function ob(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&mt[t[1]]*17,g:255&mt[t[2]]*17,b:255&mt[t[3]]*17,a:e===5?mt[t[4]]*17:255}:(e===7||e===9)&&(n={r:mt[t[1]]<<4|mt[t[2]],g:mt[t[3]]<<4|mt[t[4]],b:mt[t[5]]<<4|mt[t[6]],a:e===9?mt[t[7]]<<4|mt[t[8]]:255})),n}const sb=(t,e)=>t<255?e(t):"";function ab(t){var e=ib(t)?rb:ub;return t?"#"+e(t.r)+e(t.g)+e(t.b)+sb(t.a,e):void 0}const lb=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function bm(t,e,n){const r=e*Math.min(n,1-n),u=(i,o=(i+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[u(0),u(8),u(4)]}function cb(t,e,n){const r=(u,i=(u+t/60)%6)=>n-n*e*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function fb(t,e,n){const r=bm(t,1,.5);let u;for(e+n>1&&(u=1/(e+n),e*=u,n*=u),u=0;u<3;u++)r[u]*=1-e-n,r[u]+=e;return r}function db(t,e,n,r,u){return t===u?(e-n)/r+(e<n?6:0):e===u?(n-t)/r+2:(t-e)/r+4}function E0(t){const n=t.r/255,r=t.g/255,u=t.b/255,i=Math.max(n,r,u),o=Math.min(n,r,u),s=(i+o)/2;let a,l,c;return i!==o&&(c=i-o,l=s>.5?c/(2-i-o):c/(i+o),a=db(n,r,u,c,i),a=a*60+.5),[a|0,l||0,s]}function b0(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(Nn)}function w0(t,e,n){return b0(bm,t,e,n)}function hb(t,e,n){return b0(fb,t,e,n)}function pb(t,e,n){return b0(cb,t,e,n)}function wm(t){return(t%360+360)%360}function mb(t){const e=lb.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?Ru(+e[5]):Nn(+e[5]));const u=wm(+e[2]),i=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?r=hb(u,i,o):e[1]==="hsv"?r=pb(u,i,o):r=w0(u,i,o),{r:r[0],g:r[1],b:r[2],a:n}}function gb(t,e){var n=E0(t);n[0]=wm(n[0]+e),n=w0(n),t.r=n[0],t.g=n[1],t.b=n[2]}function yb(t){if(!t)return;const e=E0(t),n=e[0],r=$f(e[1]),u=$f(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${u}%, ${Jt(t.a)})`:`hsl(${n}, ${r}%, ${u}%)`}const Kf={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"},Yf={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 vb(){const t={},e=Object.keys(Yf),n=Object.keys(Kf);let r,u,i,o,s;for(r=0;r<e.length;r++){for(o=s=e[r],u=0;u<n.length;u++)i=n[u],s=s.replace(i,Kf[i]);i=parseInt(Yf[o],16),t[s]=[i>>16&255,i>>8&255,i&255]}return t}let no;function _b(t){no||(no=vb(),no.transparent=[0,0,0,0]);const e=no[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const Eb=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function bb(t){const e=Eb.exec(t);let n=255,r,u,i;if(!!e){if(e[7]!==r){const o=+e[7];n=e[8]?Ru(o):bn(o*255,0,255)}return r=+e[1],u=+e[3],i=+e[5],r=255&(e[2]?Ru(r):bn(r,0,255)),u=255&(e[4]?Ru(u):bn(u,0,255)),i=255&(e[6]?Ru(i):bn(i,0,255)),{r,g:u,b:i,a:n}}}function wb(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Jt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const ja=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,_r=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function xb(t,e,n){const r=_r(Jt(t.r)),u=_r(Jt(t.g)),i=_r(Jt(t.b));return{r:Nn(ja(r+n*(_r(Jt(e.r))-r))),g:Nn(ja(u+n*(_r(Jt(e.g))-u))),b:Nn(ja(i+n*(_r(Jt(e.b))-i))),a:t.a+n*(e.a-t.a)}}function ro(t,e,n){if(t){let r=E0(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=w0(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function xm(t,e){return t&&Object.assign(e||{},t)}function qf(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Nn(t[3]))):(e=xm(t,{r:0,g:0,b:0,a:1}),e.a=Nn(e.a)),e}function Pb(t){return t.charAt(0)==="r"?bb(t):mb(t)}class os{constructor(e){if(e instanceof os)return e;const n=typeof e;let r;n==="object"?r=qf(e):n==="string"&&(r=ob(e)||_b(e)||Pb(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=xm(this._rgb);return e&&(e.a=Jt(e.a)),e}set rgb(e){this._rgb=qf(e)}rgbString(){return this._valid?wb(this._rgb):void 0}hexString(){return this._valid?ab(this._rgb):void 0}hslString(){return this._valid?yb(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,u=e.rgb;let i;const o=n===i?.5:n,s=2*o-1,a=r.a-u.a,l=((s*a===-1?s:(s+a)/(1+s*a))+1)/2;i=1-l,r.r=255&l*r.r+i*u.r+.5,r.g=255&l*r.g+i*u.g+.5,r.b=255&l*r.b+i*u.b+.5,r.a=o*r.a+(1-o)*u.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=xb(this._rgb,e._rgb,n)),this}clone(){return new os(this.rgb)}alpha(e){return this._rgb.a=Nn(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=Oi(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return ro(this._rgb,2,e),this}darken(e){return ro(this._rgb,2,-e),this}saturate(e){return ro(this._rgb,1,e),this}desaturate(e){return ro(this._rgb,1,-e),this}rotate(e){return gb(this._rgb,e),this}}function Pm(t){return new os(t)}function Sm(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Xf(t){return Sm(t)?t:Pm(t)}function Va(t){return Sm(t)?t:Pm(t).saturate(.5).darken(.1).hexString()}const lr=Object.create(null),oc=Object.create(null);function Yu(t,e){if(!e)return t;const n=e.split(".");for(let r=0,u=n.length;r<u;++r){const i=n[r];t=t[i]||(t[i]=Object.create(null))}return t}function Ua(t,e,n){return typeof e=="string"?hi(Yu(t,e),n):hi(Yu(t,""),e)}class Sb{constructor(e){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)=>Va(r.backgroundColor),this.hoverBorderColor=(n,r)=>Va(r.borderColor),this.hoverColor=(n,r)=>Va(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(e)}set(e,n){return Ua(this,e,n)}get(e){return Yu(this,e)}describe(e,n){return Ua(oc,e,n)}override(e,n){return Ua(lr,e,n)}route(e,n,r,u){const i=Yu(this,e),o=Yu(this,r),s="_"+n;Object.defineProperties(i,{[s]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const a=this[s],l=o[u];return ne(a)?Object.assign({},l,a):ee(a,l)},set(a){this[s]=a}}})}}var J=new Sb({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Db(t){return!t||ie(t.size)||ie(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function ss(t,e,n,r,u){let i=e[u];return i||(i=e[u]=t.measureText(u).width,n.push(u)),i>r&&(r=i),r}function Ob(t,e,n,r){r=r||{};let u=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(u=r.data={},i=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let o=0;const s=n.length;let a,l,c,h,m;for(a=0;a<s;a++)if(h=n[a],h!=null&&fe(h)!==!0)o=ss(t,u,i,o,h);else if(fe(h))for(l=0,c=h.length;l<c;l++)m=h[l],m!=null&&!fe(m)&&(o=ss(t,u,i,o,m));t.restore();const y=i.length/2;if(y>n.length){for(a=0;a<y;a++)delete u[i[a]];i.splice(0,y)}return o}function Un(t,e,n){const r=t.currentDevicePixelRatio,u=n!==0?Math.max(n/2,.5):0;return Math.round((e-u)*r)/r+u}function Gf(t,e){e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function sc(t,e,n,r){Cb(t,e,n,r,null)}function Cb(t,e,n,r,u){let i,o,s,a,l,c;const h=e.pointStyle,m=e.rotation,y=e.radius;let v=(m||0)*q2;if(h&&typeof h=="object"&&(i=h.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(v),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(y)||y<=0)){switch(t.beginPath(),h){default:u?t.ellipse(n,r,u/2,y,0,0,ae):t.arc(n,r,y,0,ae),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(v)*y,r-Math.cos(v)*y),v+=zf,t.lineTo(n+Math.sin(v)*y,r-Math.cos(v)*y),v+=zf,t.lineTo(n+Math.sin(v)*y,r-Math.cos(v)*y),t.closePath();break;case"rectRounded":l=y*.516,a=y-l,o=Math.cos(v+gu)*a,s=Math.sin(v+gu)*a,t.arc(n-o,r-s,l,v-pe,v-be),t.arc(n+s,r-o,l,v-be,v),t.arc(n+o,r+s,l,v,v+be),t.arc(n-s,r+o,l,v+be,v+pe),t.closePath();break;case"rect":if(!m){a=Math.SQRT1_2*y,c=u?u/2:a,t.rect(n-c,r-a,2*c,2*a);break}v+=gu;case"rectRot":o=Math.cos(v)*y,s=Math.sin(v)*y,t.moveTo(n-o,r-s),t.lineTo(n+s,r-o),t.lineTo(n+o,r+s),t.lineTo(n-s,r+o),t.closePath();break;case"crossRot":v+=gu;case"cross":o=Math.cos(v)*y,s=Math.sin(v)*y,t.moveTo(n-o,r-s),t.lineTo(n+o,r+s),t.moveTo(n+s,r-o),t.lineTo(n-s,r+o);break;case"star":o=Math.cos(v)*y,s=Math.sin(v)*y,t.moveTo(n-o,r-s),t.lineTo(n+o,r+s),t.moveTo(n+s,r-o),t.lineTo(n-s,r+o),v+=gu,o=Math.cos(v)*y,s=Math.sin(v)*y,t.moveTo(n-o,r-s),t.lineTo(n+o,r+s),t.moveTo(n+s,r-o),t.lineTo(n-s,r+o);break;case"line":o=u?u/2:Math.cos(v)*y,s=Math.sin(v)*y,t.moveTo(n-o,r-s),t.lineTo(n+o,r+s);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(v)*y,r+Math.sin(v)*y);break}t.fill(),e.borderWidth>0&&t.stroke()}}function mi(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Dm(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Om(t){t.restore()}function kb(t,e,n,r,u){if(!e)return t.lineTo(n.x,n.y);if(u==="middle"){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else u==="after"!=!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function Ab(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function gi(t,e,n,r,u,i={}){const o=fe(e)?e:[e],s=i.strokeWidth>0&&i.strokeColor!=="";let a,l;for(t.save(),t.font=u.string,Rb(t,i),a=0;a<o.length;++a)l=o[a],s&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),ie(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(l,n,r,i.maxWidth)),t.fillText(l,n,r,i.maxWidth),Mb(t,n,r,l,i),r+=u.lineHeight;t.restore()}function Rb(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),ie(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function Mb(t,e,n,r,u){if(u.strikethrough||u.underline){const i=t.measureText(r),o=e-i.actualBoundingBoxLeft,s=e+i.actualBoundingBoxRight,a=n-i.actualBoundingBoxAscent,l=n+i.actualBoundingBoxDescent,c=u.strikethrough?(a+l)/2:l;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=u.decorationWidth||2,t.moveTo(o,c),t.lineTo(s,c),t.stroke()}}function as(t,e){const{x:n,y:r,w:u,h:i,radius:o}=e;t.arc(n+o.topLeft,r+o.topLeft,o.topLeft,-be,pe,!0),t.lineTo(n,r+i-o.bottomLeft),t.arc(n+o.bottomLeft,r+i-o.bottomLeft,o.bottomLeft,pe,be,!0),t.lineTo(n+u-o.bottomRight,r+i),t.arc(n+u-o.bottomRight,r+i-o.bottomRight,o.bottomRight,be,0,!0),t.lineTo(n+u,r+o.topRight),t.arc(n+u-o.topRight,r+o.topRight,o.topRight,0,-be,!0),t.lineTo(n+o.topLeft,r)}const Nb=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Tb=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function Fb(t,e){const n=(""+t).match(Nb);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const Lb=t=>+t||0;function x0(t,e){const n={},r=ne(e),u=r?Object.keys(e):e,i=ne(t)?r?o=>ee(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of u)n[o]=Lb(i(o));return n}function Cm(t){return x0(t,{top:"y",right:"x",bottom:"y",left:"x"})}function zr(t){return x0(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ft(t){const e=Cm(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ke(t,e){t=t||{},e=e||J.font;let n=ee(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=ee(t.style,e.style);r&&!(""+r).match(Tb)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const u={family:ee(t.family,e.family),lineHeight:Fb(ee(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:ee(t.weight,e.weight),string:""};return u.string=Db(u),u}function uo(t,e,n,r){let u=!0,i,o,s;for(i=0,o=t.length;i<o;++i)if(s=t[i],s!==void 0&&(e!==void 0&&typeof s=="function"&&(s=s(e),u=!1),n!==void 0&&fe(s)&&(s=s[n%s.length],u=!1),s!==void 0))return r&&!u&&(r.cacheable=!1),s}function Bb(t,e,n){const{min:r,max:u}=t,i=cm(e,(u-r)/2),o=(s,a)=>n&&s===0?0:s+a;return{min:o(r,-Math.abs(i)),max:o(u,i)}}function Vn(t,e){return Object.assign(Object.create(t),e)}function P0(t,e=[""],n=t,r,u=()=>t[0]){Dt(r)||(r=Mm("_fallback",t));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:u,override:o=>P0([o,...t],e,n,r)};return new Proxy(i,{deleteProperty(o,s){return delete o[s],delete o._keys,delete t[0][s],!0},get(o,s){return Am(o,s,()=>$b(s,e,t,o))},getOwnPropertyDescriptor(o,s){return Reflect.getOwnPropertyDescriptor(o._scopes[0],s)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(o,s){return Zf(o).includes(s)},ownKeys(o){return Zf(o)},set(o,s,a){const l=o._storage||(o._storage=u());return o[s]=l[s]=a,delete o._keys,!0}})}function Xr(t,e,n,r){const u={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:km(t,r),setContext:i=>Xr(t,i,n,r),override:i=>Xr(t.override(i),e,n,r)};return new Proxy(u,{deleteProperty(i,o){return delete i[o],delete t[o],!0},get(i,o,s){return Am(i,o,()=>zb(i,o,s))},getOwnPropertyDescriptor(i,o){return i._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(i,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(i,o,s){return t[o]=s,delete i[o],!0}})}function km(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:u=e.allKeys}=t;return{allKeys:u,scriptable:n,indexable:r,isScriptable:Bn(n)?n:()=>n,isIndexable:Bn(r)?r:()=>r}}const Ib=(t,e)=>t?t+y0(e):e,S0=(t,e)=>ne(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Am(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function zb(t,e,n){const{_proxy:r,_context:u,_subProxy:i,_descriptors:o}=t;let s=r[e];return Bn(s)&&o.isScriptable(e)&&(s=jb(e,s,t,n)),fe(s)&&s.length&&(s=Vb(e,s,t,o.isIndexable)),S0(e,s)&&(s=Xr(s,u,i&&i[e],o)),s}function jb(t,e,n,r){const{_proxy:u,_context:i,_subProxy:o,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);return s.add(t),e=e(i,o||r),s.delete(t),S0(t,e)&&(e=D0(u._scopes,u,t,e)),e}function Vb(t,e,n,r){const{_proxy:u,_context:i,_subProxy:o,_descriptors:s}=n;if(Dt(i.index)&&r(t))e=e[i.index%e.length];else if(ne(e[0])){const a=e,l=u._scopes.filter(c=>c!==a);e=[];for(const c of a){const h=D0(l,u,t,c);e.push(Xr(h,i,o&&o[t],s))}}return e}function Rm(t,e,n){return Bn(t)?t(e,n):t}const Ub=(t,e)=>t===!0?e:typeof t=="string"?Ln(e,t):void 0;function Wb(t,e,n,r,u){for(const i of e){const o=Ub(n,i);if(o){t.add(o);const s=Rm(o._fallback,n,u);if(Dt(s)&&s!==n&&s!==r)return s}else if(o===!1&&Dt(r)&&n!==r)return null}return!1}function D0(t,e,n,r){const u=e._rootScopes,i=Rm(e._fallback,n,r),o=[...t,...u],s=new Set;s.add(r);let a=Qf(s,o,n,i||n,r);return a===null||Dt(i)&&i!==n&&(a=Qf(s,o,i,a,r),a===null)?!1:P0(Array.from(s),[""],u,i,()=>Hb(e,n,r))}function Qf(t,e,n,r,u){for(;n;)n=Wb(t,e,n,r,u);return n}function Hb(t,e,n){const r=t._getTarget();e in r||(r[e]={});const u=r[e];return fe(u)&&ne(n)?n:u}function $b(t,e,n,r){let u;for(const i of e)if(u=Mm(Ib(i,t),n),Dt(u))return S0(t,u)?D0(n,r,t,u):u}function Mm(t,e){for(const n of e){if(!n)continue;const r=n[t];if(Dt(r))return r}}function Zf(t){let e=t._keys;return e||(e=t._keys=Kb(t._scopes)),e}function Kb(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(u=>!u.startsWith("_")))e.add(r);return Array.from(e)}function Nm(t,e,n,r){const{iScale:u}=t,{key:i="r"}=this._parsing,o=new Array(r);let s,a,l,c;for(s=0,a=r;s<a;++s)l=s+n,c=e[l],o[s]={r:u.parse(Ln(c,i),l)};return o}const Yb=Number.EPSILON||1e-14,Gr=(t,e)=>e<t.length&&!t[e].skip&&t[e],Tm=t=>t==="x"?"y":"x";function qb(t,e,n,r){const u=t.skip?e:t,i=e,o=n.skip?e:n,s=uc(i,u),a=uc(o,i);let l=s/(s+a),c=a/(s+a);l=isNaN(l)?0:l,c=isNaN(c)?0:c;const h=r*l,m=r*c;return{previous:{x:i.x-h*(o.x-u.x),y:i.y-h*(o.y-u.y)},next:{x:i.x+m*(o.x-u.x),y:i.y+m*(o.y-u.y)}}}function Xb(t,e,n){const r=t.length;let u,i,o,s,a,l=Gr(t,0);for(let c=0;c<r-1;++c)if(a=l,l=Gr(t,c+1),!(!a||!l)){if(Hu(e[c],0,Yb)){n[c]=n[c+1]=0;continue}u=n[c]/e[c],i=n[c+1]/e[c],s=Math.pow(u,2)+Math.pow(i,2),!(s<=9)&&(o=3/Math.sqrt(s),n[c]=u*o*e[c],n[c+1]=i*o*e[c])}}function Gb(t,e,n="x"){const r=Tm(n),u=t.length;let i,o,s,a=Gr(t,0);for(let l=0;l<u;++l){if(o=s,s=a,a=Gr(t,l+1),!s)continue;const c=s[n],h=s[r];o&&(i=(c-o[n])/3,s[`cp1${n}`]=c-i,s[`cp1${r}`]=h-i*e[l]),a&&(i=(a[n]-c)/3,s[`cp2${n}`]=c+i,s[`cp2${r}`]=h+i*e[l])}}function Qb(t,e="x"){const n=Tm(e),r=t.length,u=Array(r).fill(0),i=Array(r);let o,s,a,l=Gr(t,0);for(o=0;o<r;++o)if(s=a,a=l,l=Gr(t,o+1),!!a){if(l){const c=l[e]-a[e];u[o]=c!==0?(l[n]-a[n])/c:0}i[o]=s?l?Kt(u[o-1])!==Kt(u[o])?0:(u[o-1]+u[o])/2:u[o-1]:u[o]}Xb(t,u,i),Gb(t,i,e)}function io(t,e,n){return Math.max(Math.min(t,n),e)}function Zb(t,e){let n,r,u,i,o,s=mi(t[0],e);for(n=0,r=t.length;n<r;++n)o=i,i=s,s=n<r-1&&mi(t[n+1],e),i&&(u=t[n],o&&(u.cp1x=io(u.cp1x,e.left,e.right),u.cp1y=io(u.cp1y,e.top,e.bottom)),s&&(u.cp2x=io(u.cp2x,e.left,e.right),u.cp2y=io(u.cp2y,e.top,e.bottom)))}function Jb(t,e,n,r,u){let i,o,s,a;if(e.spanGaps&&(t=t.filter(l=>!l.skip)),e.cubicInterpolationMode==="monotone")Qb(t,u);else{let l=r?t[t.length-1]:t[0];for(i=0,o=t.length;i<o;++i)s=t[i],a=qb(l,s,t[Math.min(i+1,o-(r?0:1))%o],e.tension),s.cp1x=a.previous.x,s.cp1y=a.previous.y,s.cp2x=a.next.x,s.cp2y=a.next.y,l=s}e.capBezierPoints&&Zb(t,n)}function Fm(){return typeof window<"u"&&typeof document<"u"}function O0(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function ls(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const zs=t=>window.getComputedStyle(t,null);function ew(t,e){return zs(t).getPropertyValue(e)}const tw=["top","right","bottom","left"];function nr(t,e,n){const r={};n=n?"-"+n:"";for(let u=0;u<4;u++){const i=tw[u];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const nw=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function rw(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:u,offsetY:i}=r;let o=!1,s,a;if(nw(u,i,t.target))s=u,a=i;else{const l=e.getBoundingClientRect();s=r.clientX-l.left,a=r.clientY-l.top,o=!0}return{x:s,y:a,box:o}}function Kn(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,u=zs(n),i=u.boxSizing==="border-box",o=nr(u,"padding"),s=nr(u,"border","width"),{x:a,y:l,box:c}=rw(t,n),h=o.left+(c&&s.left),m=o.top+(c&&s.top);let{width:y,height:v}=e;return i&&(y-=o.width+s.width,v-=o.height+s.height),{x:Math.round((a-h)/y*n.width/r),y:Math.round((l-m)/v*n.height/r)}}function uw(t,e,n){let r,u;if(e===void 0||n===void 0){const i=O0(t);if(!i)e=t.clientWidth,n=t.clientHeight;else{const o=i.getBoundingClientRect(),s=zs(i),a=nr(s,"border","width"),l=nr(s,"padding");e=o.width-l.width-a.width,n=o.height-l.height-a.height,r=ls(s.maxWidth,i,"clientWidth"),u=ls(s.maxHeight,i,"clientHeight")}}return{width:e,height:n,maxWidth:r||us,maxHeight:u||us}}const Wa=t=>Math.round(t*10)/10;function iw(t,e,n,r){const u=zs(t),i=nr(u,"margin"),o=ls(u.maxWidth,t,"clientWidth")||us,s=ls(u.maxHeight,t,"clientHeight")||us,a=uw(t,e,n);let{width:l,height:c}=a;if(u.boxSizing==="content-box"){const h=nr(u,"border","width"),m=nr(u,"padding");l-=m.width+h.width,c-=m.height+h.height}return l=Math.max(0,l-i.width),c=Math.max(0,r?Math.floor(l/r):c-i.height),l=Wa(Math.min(l,o,a.maxWidth)),c=Wa(Math.min(c,s,a.maxHeight)),l&&!c&&(c=Wa(l/2)),{width:l,height:c}}function Jf(t,e,n){const r=e||1,u=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=u/r,t.width=i/r;const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||o.height!==u||o.width!==i?(t.currentDevicePixelRatio=r,o.height=u,o.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const ow=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch{}return t}();function ed(t,e){const n=ew(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Yn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function sw(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:r==="middle"?n<.5?t.y:e.y:r==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function aw(t,e,n,r){const u={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},o=Yn(t,u,n),s=Yn(u,i,n),a=Yn(i,e,n),l=Yn(o,s,n),c=Yn(s,a,n);return Yn(l,c,n)}const td=new Map;function lw(t,e){e=e||{};const n=t+JSON.stringify(e);let r=td.get(n);return r||(r=new Intl.NumberFormat(t,e),td.set(n,r)),r}function Ci(t,e,n){return lw(e,n).format(t)}const cw=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},fw=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Ha(t,e,n){return t?cw(e,n):fw()}function dw(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function hw(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Lm(t){return t==="angle"?{between:pi,compare:Q2,normalize:At}:{between:is,compare:(e,n)=>e-n,normalize:e=>e}}function nd({start:t,end:e,count:n,loop:r,style:u}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:u}}function pw(t,e,n){const{property:r,start:u,end:i}=n,{between:o,normalize:s}=Lm(r),a=e.length;let{start:l,end:c,loop:h}=t,m,y;if(h){for(l+=a,c+=a,m=0,y=a;m<y&&o(s(e[l%a][r]),u,i);++m)l--,c--;l%=a,c%=a}return c<l&&(c+=a),{start:l,end:c,loop:h,style:t.style}}function mw(t,e,n){if(!n)return[t];const{property:r,start:u,end:i}=n,o=e.length,{compare:s,between:a,normalize:l}=Lm(r),{start:c,end:h,loop:m,style:y}=pw(t,e,n),v=[];let S=!1,C=null,E,w,x;const N=()=>a(u,x,E)&&s(u,x)!==0,P=()=>s(i,E)===0||a(i,x,E),D=()=>S||N(),g=()=>!S||P();for(let f=c,p=c;f<=h;++f)w=e[f%o],!w.skip&&(E=l(w[r]),E!==x&&(S=a(E,u,i),C===null&&D()&&(C=s(E,u)===0?f:p),C!==null&&g()&&(v.push(nd({start:C,end:f,loop:m,count:o,style:y})),C=null),p=f,x=E));return C!==null&&v.push(nd({start:C,end:h,loop:m,count:o,style:y})),v}function gw(t,e){const n=[],r=t.segments;for(let u=0;u<r.length;u++){const i=mw(r[u],t.points,e);i.length&&n.push(...i)}return n}function yw(t,e,n,r){let u=0,i=e-1;if(n&&!r)for(;u<e&&!t[u].skip;)u++;for(;u<e&&t[u].skip;)u++;for(u%=e,n&&(i+=u);i>u&&t[i%e].skip;)i--;return i%=e,{start:u,end:i}}function vw(t,e,n,r){const u=t.length,i=[];let o=e,s=t[e],a;for(a=e+1;a<=n;++a){const l=t[a%u];l.skip||l.stop?s.skip||(r=!1,i.push({start:e%u,end:(a-1)%u,loop:r}),e=o=l.stop?a:null):(o=a,s.skip&&(e=a)),s=l}return o!==null&&i.push({start:e%u,end:o%u,loop:r}),i}function _w(t,e){const n=t.points,r=t.options.spanGaps,u=n.length;if(!u)return[];const i=!!t._loop,{start:o,end:s}=yw(n,u,i,r);if(r===!0)return rd(t,[{start:o,end:s,loop:i}],n,e);const a=s<o?s+u:s,l=!!t._fullLoop&&o===0&&s===u-1;return rd(t,vw(n,o,a,l),n,e)}function rd(t,e,n,r){return!r||!r.setContext||!n?e:Ew(t,e,n,r)}function Ew(t,e,n,r){const u=t._chart.getContext(),i=ud(t.options),{_datasetIndex:o,options:{spanGaps:s}}=t,a=n.length,l=[];let c=i,h=e[0].start,m=h;function y(v,S,C,E){const w=s?-1:1;if(v!==S){for(v+=a;n[v%a].skip;)v-=w;for(;n[S%a].skip;)S+=w;v%a!==S%a&&(l.push({start:v%a,end:S%a,loop:C,style:E}),c=E,h=S%a)}}for(const v of e){h=s?h:v.start;let S=n[h%a],C;for(m=h+1;m<=v.end;m++){const E=n[m%a];C=ud(r.setContext(Vn(u,{type:"segment",p0:S,p1:E,p0DataIndex:(m-1)%a,p1DataIndex:m%a,datasetIndex:o}))),bw(C,c)&&y(h,m-1,v.loop,c),S=E,c=C}h<m-1&&y(h,m-1,v.loop,c)}return l}function ud(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function bw(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}/*!
* Chart.js v3.9.1
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/class ww{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,u){const i=n.listeners[u],o=n.duration;i.forEach(s=>s({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=gm.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,u)=>{if(!r.running||!r.items.length)return;const i=r.items;let o=i.length-1,s=!1,a;for(;o>=0;--o)a=i[o],a._active?(a._total>r.duration&&(r.duration=a._total),a.tick(e),s=!0):(i[o]=i[i.length-1],i.pop());s&&(u.draw(),this._notify(u,r,e,"progress")),i.length||(r.running=!1,this._notify(u,r,e,"complete"),r.initial=!1),n+=i.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,u)=>Math.max(r,u._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let u=r.length-1;for(;u>=0;--u)r[u].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var qt=new ww;const id="transparent",xw={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=Xf(t||id),u=r.valid&&Xf(e||id);return u&&u.valid?u.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class Pw{constructor(e,n,r,u){const i=n[r];u=uo([e.to,u,i,e.from]);const o=uo([e.from,i,u]);this._active=!0,this._fn=e.fn||xw[e.type||typeof o],this._easing=Ku[e.easing]||Ku.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=o,this._to=u,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const u=this._target[this._prop],i=r-this._start,o=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=uo([e.to,n,u,e.from]),this._from=uo([e.from,u,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,u=this._prop,i=this._from,o=this._loop,s=this._to;let a;if(this._active=i!==s&&(o||n<r),!this._active){this._target[u]=s,this._notify(!0);return}if(n<0){this._target[u]=i;return}a=n/r%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[u]=this._fn(i,s,a)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let u=0;u<r.length;u++)r[u][n]()}}const Sw=["x","y","borderWidth","radius","tension"],Dw=["color","borderColor","backgroundColor"];J.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 Ow=Object.keys(J.animation);J.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"});J.set("animations",{colors:{type:"color",properties:Dw},numbers:{type:"number",properties:Sw}});J.describe("animations",{_fallback:"animation"});J.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:t=>t|0}}}});class Bm{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!ne(e))return;const n=this._properties;Object.getOwnPropertyNames(e).forEach(r=>{const u=e[r];if(!ne(u))return;const i={};for(const o of Ow)i[o]=u[o];(fe(u.properties)&&u.properties||[r]).forEach(o=>{(o===r||!n.has(o))&&n.set(o,i)})})}_animateOptions(e,n){const r=n.options,u=kw(e,r);if(!u)return[];const i=this._createAnimations(u,r);return r.$shared&&Cw(e.options.$animations,r).then(()=>{e.options=r},()=>{}),i}_createAnimations(e,n){const r=this._properties,u=[],i=e.$animations||(e.$animations={}),o=Object.keys(n),s=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[a];if(l.charAt(0)==="$")continue;if(l==="options"){u.push(...this._animateOptions(e,n));continue}const c=n[l];let h=i[l];const m=r.get(l);if(h)if(m&&h.active()){h.update(m,c,s);continue}else h.cancel();if(!m||!m.duration){e[l]=c;continue}i[l]=h=new Pw(m,e,l,c),u.push(h)}return u}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return qt.add(this._chart,r),!0}}function Cw(t,e){const n=[],r=Object.keys(e);for(let u=0;u<r.length;u++){const i=t[r[u]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function kw(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function od(t,e){const n=t&&t.options||{},r=n.reverse,u=n.min===void 0?e:0,i=n.max===void 0?e:0;return{start:r?i:u,end:r?u:i}}function Aw(t,e,n){if(n===!1)return!1;const r=od(t,n),u=od(e,n);return{top:u.end,right:r.end,bottom:u.start,left:r.start}}function Rw(t){let e,n,r,u;return ne(t)?(e=t.top,n=t.right,r=t.bottom,u=t.left):e=n=r=u=t,{top:e,right:n,bottom:r,left:u,disabled:t===!1}}function Im(t,e){const n=[],r=t._getSortedDatasetMetas(e);let u,i;for(u=0,i=r.length;u<i;++u)n.push(r[u].index);return n}function sd(t,e,n,r={}){const u=t.keys,i=r.mode==="single";let o,s,a,l;if(e!==null){for(o=0,s=u.length;o<s;++o){if(a=+u[o],a===n){if(r.all)continue;break}l=t.values[a],Te(l)&&(i||e===0||Kt(e)===Kt(l))&&(e+=l)}return e}}function Mw(t){const e=Object.keys(t),n=new Array(e.length);let r,u,i;for(r=0,u=e.length;r<u;++r)i=e[r],n[r]={x:i,y:t[i]};return n}function ad(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function Nw(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function Tw(t){const{min:e,max:n,minDefined:r,maxDefined:u}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:u?n:Number.POSITIVE_INFINITY}}function Fw(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function ld(t,e,n,r){for(const u of e.getMatchingVisibleMetas(r).reverse()){const i=t[u.index];if(n&&i>0||!n&&i<0)return u.index}return null}function cd(t,e){const{chart:n,_cachedMeta:r}=t,u=n._stacks||(n._stacks={}),{iScale:i,vScale:o,index:s}=r,a=i.axis,l=o.axis,c=Nw(i,o,r),h=e.length;let m;for(let y=0;y<h;++y){const v=e[y],{[a]:S,[l]:C}=v,E=v._stacks||(v._stacks={});m=E[l]=Fw(u,c,S),m[s]=C,m._top=ld(m,o,!0,r.type),m._bottom=ld(m,o,!1,r.type)}}function $a(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function Lw(t,e){return Vn(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function Bw(t,e,n){return Vn(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function yu(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(!!r){e=e||t._parsed;for(const u of e){const i=u._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n]}}}const Ka=t=>t==="reset"||t==="none",fd=(t,e)=>e?t:Object.assign({},t),Iw=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Im(n,!0),values:null};class Lt{constructor(e,n){this.chart=e,this._ctx=e.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 e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=ad(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&yu(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),u=(h,m,y,v)=>h==="x"?m:h==="r"?v:y,i=n.xAxisID=ee(r.xAxisID,$a(e,"x")),o=n.yAxisID=ee(r.yAxisID,$a(e,"y")),s=n.rAxisID=ee(r.rAxisID,$a(e,"r")),a=n.indexAxis,l=n.iAxisID=u(a,i,o,s),c=n.vAxisID=u(a,o,i,s);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(l),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Uf(this._data,this),e._stacked&&yu(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(ne(n))this._data=Mw(n);else if(r!==n){if(r){Uf(r,this);const u=this._cachedMeta;yu(u),u._parsed=[]}n&&Object.isExtensible(n)&&tb(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let u=!1;this._dataCheck();const i=n._stacked;n._stacked=ad(n.vScale,n),n.stack!==r.stack&&(u=!0,yu(n),n.stack=r.stack),this._resyncElements(e),(u||i!==n._stacked)&&cd(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:u}=this,{iScale:i,_stacked:o}=r,s=i.axis;let a=e===0&&n===u.length?!0:r._sorted,l=e>0&&r._parsed[e-1],c,h,m;if(this._parsing===!1)r._parsed=u,r._sorted=!0,m=u;else{fe(u[e])?m=this.parseArrayData(r,u,e,n):ne(u[e])?m=this.parseObjectData(r,u,e,n):m=this.parsePrimitiveData(r,u,e,n);const y=()=>h[s]===null||l&&h[s]<l[s];for(c=0;c<n;++c)r._parsed[c+e]=h=m[c],a&&(y()&&(a=!1),l=h);r._sorted=a}o&&cd(this,m)}parsePrimitiveData(e,n,r,u){const{iScale:i,vScale:o}=e,s=i.axis,a=o.axis,l=i.getLabels(),c=i===o,h=new Array(u);let m,y,v;for(m=0,y=u;m<y;++m)v=m+r,h[m]={[s]:c||i.parse(l[v],v),[a]:o.parse(n[v],v)};return h}parseArrayData(e,n,r,u){const{xScale:i,yScale:o}=e,s=new Array(u);let a,l,c,h;for(a=0,l=u;a<l;++a)c=a+r,h=n[c],s[a]={x:i.parse(h[0],c),y:o.parse(h[1],c)};return s}parseObjectData(e,n,r,u){const{xScale:i,yScale:o}=e,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l=new Array(u);let c,h,m,y;for(c=0,h=u;c<h;++c)m=c+r,y=n[m],l[c]={x:i.parse(Ln(y,s),m),y:o.parse(Ln(y,a),m)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const u=this.chart,i=this._cachedMeta,o=n[e.axis],s={keys:Im(u,!0),values:n._stacks[e.axis]};return sd(s,o,i.index,{mode:r})}updateRangeFromParsed(e,n,r,u){const i=r[n.axis];let o=i===null?NaN:i;const s=u&&r._stacks[n.axis];u&&s&&(u.values=s,o=sd(u,i,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const r=this._cachedMeta,u=r._parsed,i=r._sorted&&e===r.iScale,o=u.length,s=this._getOtherScale(e),a=Iw(n,r,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:h}=Tw(s);let m,y;function v(){y=u[m];const S=y[s.axis];return!Te(y[e.axis])||c>S||h<S}for(m=0;m<o&&!(!v()&&(this.updateRangeFromParsed(l,e,y,a),i));++m);if(i){for(m=o-1;m>=0;--m)if(!v()){this.updateRangeFromParsed(l,e,y,a);break}}return l}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let u,i,o;for(u=0,i=n.length;u<i;++u)o=n[u][e.axis],Te(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,u=n.vScale,i=this.getParsed(e);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:u?""+u.getLabelForValue(i[u.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=Rw(ee(this.options.clip,Aw(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,u=r.data||[],i=n.chartArea,o=[],s=this._drawStart||0,a=this._drawCount||u.length-s,l=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(e,i,s,a),c=s;c<s+a;++c){const h=u[c];h.hidden||(h.active&&l?o.push(h):h.draw(e,i))}for(c=0;c<o.length;++c)o[c].draw(e,i)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const u=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];i=o.$context||(o.$context=Bw(this.getContext(),e,o)),i.parsed=this.getParsed(e),i.raw=u.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=Lw(this.chart.getContext(),this.index)),i.dataset=u,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=r,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const u=n==="active",i=this._cachedDataOpts,o=e+"-"+n,s=i[o],a=this.enableOptionSharing&&Dt(r);if(s)return fd(s,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),h=u?[`${e}Hover`,"hover",e,""]:[e,""],m=l.getOptionScopes(this.getDataset(),c),y=Object.keys(J.elements[e]),v=()=>this.getContext(r,u),S=l.resolveNamedOptions(m,y,v,h);return S.$shared&&(S.$shared=a,i[o]=Object.freeze(fd(S,a))),S}_resolveAnimations(e,n,r){const u=this.chart,i=this._cachedDataOpts,o=`animation-${n}`,s=i[o];if(s)return s;let a;if(u.options.animation!==!1){const c=this.chart.config,h=c.datasetAnimationScopeKeys(this._type,n),m=c.getOptionScopes(this.getDataset(),h);a=c.createResolver(m,this.getContext(e,r,n))}const l=new Bm(u,a&&a.animations);return a&&a._cacheable&&(i[o]=Object.freeze(l)),l}getSharedOptions(e){if(!!e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||Ka(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),u=this._sharedOptions,i=this.getSharedOptions(r),o=this.includeOptions(n,i)||i!==u;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:o}}updateElement(e,n,r,u){Ka(u)?Object.assign(e,r):this._resolveAnimations(n,u).update(e,r)}updateSharedOptions(e,n,r){e&&!Ka(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,u){e.active=u;const i=this.getStyle(n,u);this._resolveAnimations(n,r,u).update(e,{options:!u&&this.getSharedOptions(i)||i})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[s,a,l]of this._syncList)this[s](a,l);this._syncList=[];const u=r.length,i=n.length,o=Math.min(i,u);o&&this.parse(0,o),i>u?this._insertElements(u,i-u,e):i<u&&this._removeElements(i,u-i)}_insertElements(e,n,r=!0){const u=this._cachedMeta,i=u.data,o=e+n;let s;const a=l=>{for(l.length+=n,s=l.length-1;s>=o;s--)l[s]=l[s-n]};for(a(i),s=e;s<o;++s)i[s]=new this.dataElementType;this._parsing&&a(u._parsed),this.parse(e,n),r&&this.updateElements(i,e,n,"reset")}updateElements(e,n,r,u){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const u=r._parsed.splice(e,n);r._stacked&&yu(r,u)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,u]=e;this[n](r,u)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}Lt.defaults={};Lt.prototype.datasetElementType=null;Lt.prototype.dataElementType=null;function zw(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let r=[];for(let u=0,i=n.length;u<i;u++)r=r.concat(n[u].controller.getAllParsedValues(t));t._cache.$bar=mm(r.sort((u,i)=>u-i))}return t._cache.$bar}function jw(t){const e=t.iScale,n=zw(e,t.type);let r=e._length,u,i,o,s;const a=()=>{o===32767||o===-32768||(Dt(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(u=0,i=n.length;u<i;++u)o=e.getPixelForValue(n[u]),a();for(s=void 0,u=0,i=e.ticks.length;u<i;++u)o=e.getPixelForTick(u),a();return r}function Vw(t,e,n,r){const u=n.barThickness;let i,o;return ie(u)?(i=e.min*n.categoryPercentage,o=n.barPercentage):(i=u*r,o=1),{chunk:i/r,ratio:o,start:e.pixels[t]-i/2}}function Uw(t,e,n,r){const u=e.pixels,i=u[t];let o=t>0?u[t-1]:null,s=t<u.length-1?u[t+1]:null;const a=n.categoryPercentage;o===null&&(o=i-(s===null?e.end-e.start:s-i)),s===null&&(s=i+i-o);const l=i-(i-Math.min(o,s))/2*a;return{chunk:Math.abs(s-o)/2*a/r,ratio:n.barPercentage,start:l}}function Ww(t,e,n,r){const u=n.parse(t[0],r),i=n.parse(t[1],r),o=Math.min(u,i),s=Math.max(u,i);let a=o,l=s;Math.abs(o)>Math.abs(s)&&(a=s,l=o),e[n.axis]=l,e._custom={barStart:a,barEnd:l,start:u,end:i,min:o,max:s}}function zm(t,e,n,r){return fe(t)?Ww(t,e,n,r):e[n.axis]=n.parse(t,r),e}function dd(t,e,n,r){const u=t.iScale,i=t.vScale,o=u.getLabels(),s=u===i,a=[];let l,c,h,m;for(l=n,c=n+r;l<c;++l)m=e[l],h={},h[u.axis]=s||u.parse(o[l],l),a.push(zm(m,h,i,l));return a}function Ya(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function Hw(t,e,n){return t!==0?Kt(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function $w(t){let e,n,r,u,i;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(u="end",i="start"):(u="start",i="end"),{start:n,end:r,reverse:e,top:u,bottom:i}}function Kw(t,e,n,r){let u=e.borderSkipped;const i={};if(!u){t.borderSkipped=i;return}if(u===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:s,reverse:a,top:l,bottom:c}=$w(t);u==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?u=l:(n._bottom||0)===r?u=c:(i[hd(c,o,s,a)]=!0,u=l)),i[hd(u,o,s,a)]=!0,t.borderSkipped=i}function hd(t,e,n,r){return r?(t=Yw(t,e,n),t=pd(t,n,e)):t=pd(t,e,n),t}function Yw(t,e,n){return t===e?n:t===n?e:t}function pd(t,e,n){return t==="start"?e:t==="end"?n:t}function qw(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class C0 extends Lt{parsePrimitiveData(e,n,r,u){return dd(e,n,r,u)}parseArrayData(e,n,r,u){return dd(e,n,r,u)}parseObjectData(e,n,r,u){const{iScale:i,vScale:o}=e,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l=i.axis==="x"?s:a,c=o.axis==="x"?s:a,h=[];let m,y,v,S;for(m=r,y=r+u;m<y;++m)S=n[m],v={},v[i.axis]=i.parse(Ln(S,l),m),h.push(zm(Ln(S,c),v,o,m));return h}updateRangeFromParsed(e,n,r,u){super.updateRangeFromParsed(e,n,r,u);const i=r._custom;i&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:r,vScale:u}=n,i=this.getParsed(e),o=i._custom,s=Ya(o)?"["+o.start+", "+o.end+"]":""+u.getLabelForValue(i[u.axis]);return{label:""+r.getLabelForValue(i[r.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,e)}updateElements(e,n,r,u){const i=u==="reset",{index:o,_cachedMeta:{vScale:s}}=this,a=s.getBasePixel(),l=s.isHorizontal(),c=this._getRuler(),{sharedOptions:h,includeOptions:m}=this._getSharedOptions(n,u);for(let y=n;y<n+r;y++){const v=this.getParsed(y),S=i||ie(v[s.axis])?{base:a,head:a}:this._calculateBarValuePixels(y),C=this._calculateBarIndexPixels(y,c),E=(v._stacks||{})[s.axis],w={horizontal:l,base:S.base,enableBorderRadius:!E||Ya(v._custom)||o===E._top||o===E._bottom,x:l?S.head:C.center,y:l?C.center:S.head,height:l?C.size:Math.abs(S.size),width:l?Math.abs(S.size):C.size};m&&(w.options=h||this.resolveDataElementOptions(y,e[y].active?"active":u));const x=w.options||e[y].options;Kw(w,x,E,o),qw(w,x,c.ratio),this.updateElement(e[y],y,w,u)}}_getStacks(e,n){const{iScale:r}=this._cachedMeta,u=r.getMatchingVisibleMetas(this._type).filter(a=>a.controller.options.grouped),i=r.options.stacked,o=[],s=a=>{const l=a.controller.getParsed(n),c=l&&l[a.vScale.axis];if(ie(c)||isNaN(c))return!0};for(const a of u)if(!(n!==void 0&&s(a))&&((i===!1||o.indexOf(a.stack)===-1||i===void 0&&a.stack===void 0)&&o.push(a.stack),a.index===e))break;return o.length||o.push(void 0),o}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,r){const u=this._getStacks(e,r),i=n!==void 0?u.indexOf(n):-1;return i===-1?u.length-1:i}_getRuler(){const e=this.options,n=this._cachedMeta,r=n.iScale,u=[];let i,o;for(i=0,o=n.data.length;i<o;++i)u.push(r.getPixelForValue(this.getParsed(i)[r.axis],i));const s=e.barThickness;return{min:s||jw(n),pixels:u,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:e.grouped,ratio:s?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:r},options:{base:u,minBarLength:i}}=this,o=u||0,s=this.getParsed(e),a=s._custom,l=Ya(a);let c=s[n.axis],h=0,m=r?this.applyStack(n,s,r):c,y,v;m!==c&&(h=m-c,m=c),l&&(c=a.barStart,m=a.barEnd-a.barStart,c!==0&&Kt(c)!==Kt(a.barEnd)&&(h=0),h+=c);const S=!ie(u)&&!l?u:h;let C=n.getPixelForValue(S);if(this.chart.getDataVisibility(e)?y=n.getPixelForValue(h+m):y=C,v=y-C,Math.abs(v)<i){v=Hw(v,n,o)*i,c===o&&(C-=v/2);const E=n.getPixelForDecimal(0),w=n.getPixelForDecimal(1),x=Math.min(E,w),N=Math.max(E,w);C=Math.max(Math.min(C,N),x),y=C+v}if(C===n.getPixelForValue(o)){const E=Kt(v)*n.getLineWidthForValue(o)/2;C+=E,v-=E}return{size:v,base:C,head:y,center:y+v/2}}_calculateBarIndexPixels(e,n){const r=n.scale,u=this.options,i=u.skipNull,o=ee(u.maxBarThickness,1/0);let s,a;if(n.grouped){const l=i?this._getStackCount(e):n.stackCount,c=u.barThickness==="flex"?Uw(e,n,u,l):Vw(e,n,u,l),h=this._getStackIndex(this.index,this._cachedMeta.stack,i?e:void 0);s=c.start+c.chunk*h+c.chunk/2,a=Math.min(o,c.chunk*c.ratio)}else s=r.getPixelForValue(this.getParsed(e)[r.axis],e),a=Math.min(o,n.min*n.ratio);return{base:s-a/2,head:s+a/2,center:s,size:a}}draw(){const e=this._cachedMeta,n=e.vScale,r=e.data,u=r.length;let i=0;for(;i<u;++i)this.getParsed(i)[n.axis]!==null&&r[i].draw(this._ctx)}}C0.id="bar";C0.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};C0.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class k0 extends Lt{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,r,u){const i=super.parsePrimitiveData(e,n,r,u);for(let o=0;o<i.length;o++)i[o]._custom=this.resolveDataElementOptions(o+r).radius;return i}parseArrayData(e,n,r,u){const i=super.parseArrayData(e,n,r,u);for(let o=0;o<i.length;o++){const s=n[r+o];i[o]._custom=ee(s[2],this.resolveDataElementOptions(o+r).radius)}return i}parseObjectData(e,n,r,u){const i=super.parseObjectData(e,n,r,u);for(let o=0;o<i.length;o++){const s=n[r+o];i[o]._custom=ee(s&&s.r&&+s.r,this.resolveDataElementOptions(o+r).radius)}return i}getMaxOverflow(){const e=this._cachedMeta.data;let n=0;for(let r=e.length-1;r>=0;--r)n=Math.max(n,e[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,{xScale:r,yScale:u}=n,i=this.getParsed(e),o=r.getLabelForValue(i.x),s=u.getLabelForValue(i.y),a=i._custom;return{label:n.label,value:"("+o+", "+s+(a?", "+a:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,r,u){const i=u==="reset",{iScale:o,vScale:s}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(n,u),c=o.axis,h=s.axis;for(let m=n;m<n+r;m++){const y=e[m],v=!i&&this.getParsed(m),S={},C=S[c]=i?o.getPixelForDecimal(.5):o.getPixelForValue(v[c]),E=S[h]=i?s.getBasePixel():s.getPixelForValue(v[h]);S.skip=isNaN(C)||isNaN(E),l&&(S.options=a||this.resolveDataElementOptions(m,y.active?"active":u),i&&(S.options.radius=0)),this.updateElement(y,m,S,u)}}resolveDataElementOptions(e,n){const r=this.getParsed(e);let u=super.resolveDataElementOptions(e,n);u.$shared&&(u=Object.assign({},u,{$shared:!1}));const i=u.radius;return n!=="active"&&(u.radius=0),u.radius+=ee(r&&r._custom,i),u}}k0.id="bubble";k0.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};k0.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};function Xw(t,e,n){let r=1,u=1,i=0,o=0;if(e<ae){const s=t,a=s+e,l=Math.cos(s),c=Math.sin(s),h=Math.cos(a),m=Math.sin(a),y=(x,N,P)=>pi(x,s,a,!0)?1:Math.max(N,N*n,P,P*n),v=(x,N,P)=>pi(x,s,a,!0)?-1:Math.min(N,N*n,P,P*n),S=y(0,l,h),C=y(be,c,m),E=v(pe,l,h),w=v(pe+be,c,m);r=(S-E)/2,u=(C-w)/2,i=-(S+E)/2,o=-(C+w)/2}return{ratioX:r,ratioY:u,offsetX:i,offsetY:o}}class ki extends Lt{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,u=this._cachedMeta;if(this._parsing===!1)u._parsed=r;else{let i=a=>+r[a];if(ne(r[e])){const{key:a="value"}=this._parsing;i=l=>+Ln(r[l],a)}let o,s;for(o=e,s=e+n;o<s;++o)u._parsed[o]=i(o)}}_getRotation(){return Mt(this.options.rotation-90)}_getCircumference(){return Mt(this.options.circumference)}_getRotationExtents(){let e=ae,n=-ae;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)){const u=this.chart.getDatasetMeta(r).controller,i=u._getRotation(),o=u._getCircumference();e=Math.min(e,i),n=Math.max(n,i+o)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,u=this._cachedMeta,i=u.data,o=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-o)/2,0),a=Math.min(V2(this.options.cutout,s),1),l=this._getRingWeight(this.index),{circumference:c,rotation:h}=this._getRotationExtents(),{ratioX:m,ratioY:y,offsetX:v,offsetY:S}=Xw(h,c,a),C=(r.width-o)/m,E=(r.height-o)/y,w=Math.max(Math.min(C,E)/2,0),x=cm(this.options.radius,w),N=Math.max(x*a,0),P=(x-N)/this._getVisibleDatasetWeightTotal();this.offsetX=v*x,this.offsetY=S*x,u.total=this.calculateTotal(),this.outerRadius=x-P*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-P*l,0),this.updateElements(i,0,i.length,e)}_circumference(e,n){const r=this.options,u=this._cachedMeta,i=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||u._parsed[e]===null||u.data[e].hidden?0:this.calculateCircumference(u._parsed[e]*i/ae)}updateElements(e,n,r,u){const i=u==="reset",o=this.chart,s=o.chartArea,l=o.options.animation,c=(s.left+s.right)/2,h=(s.top+s.bottom)/2,m=i&&l.animateScale,y=m?0:this.innerRadius,v=m?0:this.outerRadius,{sharedOptions:S,includeOptions:C}=this._getSharedOptions(n,u);let E=this._getRotation(),w;for(w=0;w<n;++w)E+=this._circumference(w,i);for(w=n;w<n+r;++w){const x=this._circumference(w,i),N=e[w],P={x:c+this.offsetX,y:h+this.offsetY,startAngle:E,endAngle:E+x,circumference:x,outerRadius:v,innerRadius:y};C&&(P.options=S||this.resolveDataElementOptions(w,N.active?"active":u)),E+=x,this.updateElement(N,w,P,u)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,u;for(u=0;u<n.length;u++){const i=e._parsed[u];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(u)&&!n[u].hidden&&(r+=Math.abs(i))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?ae*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,u=r.data.labels||[],i=Ci(n._parsed[e],r.options.locale);return{label:u[e]||"",value:i}}getMaxBorderWidth(e){let n=0;const r=this.chart;let u,i,o,s,a;if(!e){for(u=0,i=r.data.datasets.length;u<i;++u)if(r.isDatasetVisible(u)){o=r.getDatasetMeta(u),e=o.data,s=o.controller;break}}if(!e)return 0;for(u=0,i=e.length;u<i;++u)a=s.resolveDataElementOptions(u),a.borderAlign!=="inner"&&(n=Math.max(n,a.borderWidth||0,a.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,u=e.length;r<u;++r){const i=this.resolveDataElementOptions(r);n=Math.max(n,i.offset||0,i.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(e){return Math.max(ee(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ki.id="doughnut";ki.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"};ki.descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"};ki.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((r,u)=>{const o=t.getDatasetMeta(0).controller.getStyle(u);return{text:r,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(u),index:u}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(t){let e=t.label;const n=": "+t.formattedValue;return fe(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class js extends Lt{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:r,data:u=[],_dataset:i}=n,o=this.chart._animationsDisabled;let{start:s,count:a}=_m(n,u,o);this._drawStart=s,this._drawCount=a,Em(n)&&(s=0,a=u.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=u;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:l},e),this.updateElements(u,s,a,e)}updateElements(e,n,r,u){const i=u==="reset",{iScale:o,vScale:s,_stacked:a,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(n,u),m=o.axis,y=s.axis,{spanGaps:v,segment:S}=this.options,C=qr(v)?v:Number.POSITIVE_INFINITY,E=this.chart._animationsDisabled||i||u==="none";let w=n>0&&this.getParsed(n-1);for(let x=n;x<n+r;++x){const N=e[x],P=this.getParsed(x),D=E?N:{},g=ie(P[y]),f=D[m]=o.getPixelForValue(P[m],x),p=D[y]=i||g?s.getBasePixel():s.getPixelForValue(a?this.applyStack(s,P,a):P[y],x);D.skip=isNaN(f)||isNaN(p)||g,D.stop=x>0&&Math.abs(P[m]-w[m])>C,S&&(D.parsed=P,D.raw=l.data[x]),h&&(D.options=c||this.resolveDataElementOptions(x,N.active?"active":u)),E||this.updateElement(N,x,D,u),w=P}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,r=n.options&&n.options.borderWidth||0,u=e.data||[];if(!u.length)return r;const i=u[0].size(this.resolveDataElementOptions(0)),o=u[u.length-1].size(this.resolveDataElementOptions(u.length-1));return Math.max(r,i,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}js.id="line";js.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};js.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class A0 extends Lt{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,u=r.data.labels||[],i=Ci(n._parsed[e].r,r.options.locale);return{label:u[e]||"",value:i}}parseObjectData(e,n,r,u){return Nm.bind(this)(e,n,r,u)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const e=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,u)=>{const i=this.getParsed(u).r;!isNaN(i)&&this.chart.getDataVisibility(u)&&(i<n.min&&(n.min=i),i>n.max&&(n.max=i))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,r=e.options,u=Math.min(n.right-n.left,n.bottom-n.top),i=Math.max(u/2,0),o=Math.max(r.cutoutPercentage?i/100*r.cutoutPercentage:1,0),s=(i-o)/e.getVisibleDatasetCount();this.outerRadius=i-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(e,n,r,u){const i=u==="reset",o=this.chart,a=o.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,h=l.yCenter,m=l.getIndexAngle(0)-.5*pe;let y=m,v;const S=360/this.countVisibleElements();for(v=0;v<n;++v)y+=this._computeAngle(v,u,S);for(v=n;v<n+r;v++){const C=e[v];let E=y,w=y+this._computeAngle(v,u,S),x=o.getDataVisibility(v)?l.getDistanceFromCenterForValue(this.getParsed(v).r):0;y=w,i&&(a.animateScale&&(x=0),a.animateRotate&&(E=w=m));const N={x:c,y:h,innerRadius:0,outerRadius:x,startAngle:E,endAngle:w,options:this.resolveDataElementOptions(v,C.active?"active":u)};this.updateElement(C,v,N,u)}}countVisibleElements(){const e=this._cachedMeta;let n=0;return e.data.forEach((r,u)=>{!isNaN(this.getParsed(u).r)&&this.chart.getDataVisibility(u)&&n++}),n}_computeAngle(e,n,r){return this.chart.getDataVisibility(e)?Mt(this.resolveDataElementOptions(e,n).angle||r):0}}A0.id="polarArea";A0.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};A0.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((r,u)=>{const o=t.getDatasetMeta(0).controller.getStyle(u);return{text:r,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(u),index:u}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title(){return""},label(t){return t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class jm extends ki{}jm.id="pie";jm.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class R0 extends Lt{getLabelAndValue(e){const n=this._cachedMeta.vScale,r=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(e,n,r,u){return Nm.bind(this)(e,n,r,u)}update(e){const n=this._cachedMeta,r=n.dataset,u=n.data||[],i=n.iScale.getLabels();if(r.points=u,e!=="resize"){const o=this.resolveDatasetElementOptions(e);this.options.showLine||(o.borderWidth=0);const s={_loop:!0,_fullLoop:i.length===u.length,options:o};this.updateElement(r,void 0,s,e)}this.updateElements(u,0,u.length,e)}updateElements(e,n,r,u){const i=this._cachedMeta.rScale,o=u==="reset";for(let s=n;s<n+r;s++){const a=e[s],l=this.resolveDataElementOptions(s,a.active?"active":u),c=i.getPointPositionForValue(s,this.getParsed(s).r),h=o?i.xCenter:c.x,m=o?i.yCenter:c.y,y={x:h,y:m,angle:c.angle,skip:isNaN(h)||isNaN(m),options:l};this.updateElement(a,s,y,u)}}}R0.id="radar";R0.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};R0.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Yt{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return qr(this.x)&&qr(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const u={};return e.forEach(i=>{u[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),u}}Yt.defaults={};Yt.defaultRoutes=void 0;const Vm={values(t){return fe(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const r=this.chart.options.locale;let u,i=t;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)&&(u="scientific"),i=Gw(t,n)}const o=Et(Math.abs(i)),s=Math.max(Math.min(-1*Math.floor(o),20),0),a={notation:u,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(a,this.options.ticks.format),Ci(t,r,a)},logarithmic(t,e,n){if(t===0)return"0";const r=t/Math.pow(10,Math.floor(Et(t)));return r===1||r===2||r===5?Vm.numeric.call(this,t,e,n):""}};function Gw(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var Vs={formatters:Vm};J.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:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.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:Vs.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}});J.route("scale.ticks","color","","color");J.route("scale.grid","color","","borderColor");J.route("scale.grid","borderColor","","borderColor");J.route("scale.title","color","","color");J.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"});J.describe("scales",{_fallback:"scale"});J.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"});function Qw(t,e){const n=t.options.ticks,r=n.maxTicksLimit||Zw(t),u=n.major.enabled?ex(e):[],i=u.length,o=u[0],s=u[i-1],a=[];if(i>r)return tx(e,a,u,i/r),a;const l=Jw(u,e,r);if(i>0){let c,h;const m=i>1?Math.round((s-o)/(i-1)):null;for(oo(e,a,l,ie(m)?0:o-m,o),c=0,h=i-1;c<h;c++)oo(e,a,l,u[c],u[c+1]);return oo(e,a,l,s,ie(m)?e.length:s+m),a}return oo(e,a,l),a}function Zw(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),u=t._maxLength/n;return Math.floor(Math.min(r,u))}function Jw(t,e,n){const r=nx(t),u=e.length/n;if(!r)return Math.max(u,1);const i=X2(r);for(let o=0,s=i.length-1;o<s;o++){const a=i[o];if(a>u)return a}return Math.max(u,1)}function ex(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function tx(t,e,n,r){let u=0,i=n[0],o;for(r=Math.ceil(r),o=0;o<t.length;o++)o===i&&(e.push(t[o]),u++,i=n[u*r])}function oo(t,e,n,r,u){const i=ee(r,0),o=Math.min(ee(u,t.length),t.length);let s=0,a,l,c;for(n=Math.ceil(n),u&&(a=u-r,n=a/Math.floor(a/n)),c=i;c<0;)s++,c=Math.round(i+s*n);for(l=Math.max(i,0);l<o;l++)l===c&&(e.push(t[l]),s++,c=Math.round(i+s*n))}function nx(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const rx=t=>t==="left"?"right":t==="right"?"left":t,md=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n;function gd(t,e){const n=[],r=t.length/e,u=t.length;let i=0;for(;i<u;i+=r)n.push(t[Math.floor(i)]);return n}function ux(t,e,n){const r=t.ticks.length,u=Math.min(e,r-1),i=t._startPixel,o=t._endPixel,s=1e-6;let a=t.getPixelForTick(u),l;if(!(n&&(r===1?l=Math.max(a-i,o-a):e===0?l=(t.getPixelForTick(1)-a)/2:l=(a-t.getPixelForTick(u-1))/2,a+=u<e?l:-l,a<i-s||a>o+s)))return a}function ix(t,e){ue(t,n=>{const r=n.gc,u=r.length/2;let i;if(u>e){for(i=0;i<u;++i)delete n.data[r[i]];r.splice(0,u)}})}function vu(t){return t.drawTicks?t.tickLength:0}function yd(t,e){if(!t.display)return 0;const n=Ke(t.font,e),r=ft(t.padding);return(fe(t.text)?t.text.length:1)*n.lineHeight+r.height}function ox(t,e){return Vn(t,{scale:e,type:"scale"})}function sx(t,e,n){return Vn(t,{tick:n,index:e,type:"tick"})}function ax(t,e,n){let r=vm(t);return(n&&e!=="right"||!n&&e==="right")&&(r=rx(r)),r}function lx(t,e,n,r){const{top:u,left:i,bottom:o,right:s,chart:a}=t,{chartArea:l,scales:c}=a;let h=0,m,y,v;const S=o-u,C=s-i;if(t.isHorizontal()){if(y=$u(r,i,s),ne(n)){const E=Object.keys(n)[0],w=n[E];v=c[E].getPixelForValue(w)+S-e}else n==="center"?v=(l.bottom+l.top)/2+S-e:v=md(t,n,e);m=s-i}else{if(ne(n)){const E=Object.keys(n)[0],w=n[E];y=c[E].getPixelForValue(w)-C+e}else n==="center"?y=(l.left+l.right)/2-C+e:y=md(t,n,e);v=$u(r,o,u),h=n==="left"?-be:be}return{titleX:y,titleY:v,maxWidth:m,rotation:h}}class dr extends Yt{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.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(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:u}=this;return e=yt(e,Number.POSITIVE_INFINITY),n=yt(n,Number.NEGATIVE_INFINITY),r=yt(r,Number.POSITIVE_INFINITY),u=yt(u,Number.NEGATIVE_INFINITY),{min:yt(e,r),max:yt(n,u),minDefined:Te(e),maxDefined:Te(n)}}getMinMax(e){let{min:n,max:r,minDefined:u,maxDefined:i}=this.getUserBounds(),o;if(u&&i)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let a=0,l=s.length;a<l;++a)o=s[a].controller.getMinMax(this,e),u||(n=Math.min(n,o.min)),i||(r=Math.max(r,o.max));return n=i&&n>r?r:n,r=u&&n>r?n:r,{min:yt(n,yt(r,n)),max:yt(r,yt(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){_e(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:u,grace:i,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,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=Bb(this,i,u),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=s<this.ticks.length;this._convertTicksToLabels(a?gd(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=Qw(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){_e(this.options.afterUpdate,[this])}beforeSetDimensions(){_e(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(){_e(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),_e(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){_e(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,u,i;for(r=0,u=e.length;r<u;r++)i=e[r],i.label=_e(n.callback,[i.value,r,e],this)}afterTickToLabelConversion(){_e(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){_e(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=this.ticks.length,u=n.minRotation||0,i=n.maxRotation;let o=u,s,a,l;if(!this._isVisible()||!n.display||u>=i||r<=1||!this.isHorizontal()){this.labelRotation=u;return}const c=this._getLabelSizes(),h=c.widest.width,m=c.highest.height,y=Ve(this.chart.width-h,0,this.maxWidth);s=e.offset?this.maxWidth/r:y/(r-1),h+6>s&&(s=y/(r-(e.offset?.5:1)),a=this.maxHeight-vu(e.grid)-n.padding-yd(e.title,this.chart.options.font),l=Math.sqrt(h*h+m*m),o=v0(Math.min(Math.asin(Ve((c.highest.height+6)/s,-1,1)),Math.asin(Ve(a/l,-1,1))-Math.asin(Ve(m/l,-1,1)))),o=Math.max(u,Math.min(i,o))),this.labelRotation=o}afterCalculateLabelRotation(){_e(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){_e(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:u,grid:i}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const a=yd(u,n.options.font);if(s?(e.width=this.maxWidth,e.height=vu(i)+a):(e.height=this.maxHeight,e.width=vu(i)+a),r.display&&this.ticks.length){const{first:l,last:c,widest:h,highest:m}=this._getLabelSizes(),y=r.padding*2,v=Mt(this.labelRotation),S=Math.cos(v),C=Math.sin(v);if(s){const E=r.mirror?0:C*h.width+S*m.height;e.height=Math.min(this.maxHeight,e.height+E+y)}else{const E=r.mirror?0:S*h.width+C*m.height;e.width=Math.min(this.maxWidth,e.width+E+y)}this._calculatePadding(l,c,C,S)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,u){const{ticks:{align:i,padding:o},position:s}=this.options,a=this.labelRotation!==0,l=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let m=0,y=0;a?l?(m=u*e.width,y=r*n.height):(m=r*e.height,y=u*n.width):i==="start"?y=n.width:i==="end"?m=e.width:i!=="inner"&&(m=e.width/2,y=n.width/2),this.paddingLeft=Math.max((m-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((y-h+o)*this.width/(this.width-h),0)}else{let c=n.height/2,h=e.height/2;i==="start"?(c=0,h=e.height):i==="end"&&(c=n.height,h=0),this.paddingTop=c+o,this.paddingBottom=h+o}}_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(){_e(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)ie(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=gd(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length)}return e}_computeLabelSizes(e,n){const{ctx:r,_longestTextCache:u}=this,i=[],o=[];let s=0,a=0,l,c,h,m,y,v,S,C,E,w,x;for(l=0;l<n;++l){if(m=e[l].label,y=this._resolveTickFontOptions(l),r.font=v=y.string,S=u[v]=u[v]||{data:{},gc:[]},C=y.lineHeight,E=w=0,!ie(m)&&!fe(m))E=ss(r,S.data,S.gc,E,m),w=C;else if(fe(m))for(c=0,h=m.length;c<h;++c)x=m[c],!ie(x)&&!fe(x)&&(E=ss(r,S.data,S.gc,E,x),w+=C);i.push(E),o.push(w),s=Math.max(E,s),a=Math.max(w,a)}ix(u,n);const N=i.indexOf(s),P=o.indexOf(a),D=g=>({width:i[g]||0,height:o[g]||0});return{first:D(0),last:D(n-1),widest:D(N),highest:D(P),widths:i,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return Z2(this._alignToPixels?Un(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=sx(this.getContext(),e,r))}return this.$context||(this.$context=ox(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Mt(this.labelRotation),r=Math.abs(Math.cos(n)),u=Math.abs(Math.sin(n)),i=this._getLabelSizes(),o=e.autoSkipPadding||0,s=i?i.widest.width+o:0,a=i?i.highest.height+o:0;return this.isHorizontal()?a*r>s*u?s/r:a/u:a*u<s*r?a/r:s/u}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,u=this.options,{grid:i,position:o}=u,s=i.offset,a=this.isHorizontal(),c=this.ticks.length+(s?1:0),h=vu(i),m=[],y=i.setContext(this.getContext()),v=y.drawBorder?y.borderWidth:0,S=v/2,C=function(T){return Un(r,T,v)};let E,w,x,N,P,D,g,f,p,d,b,O;if(o==="top")E=C(this.bottom),D=this.bottom-h,f=E-S,d=C(e.top)+S,O=e.bottom;else if(o==="bottom")E=C(this.top),d=e.top,O=C(e.bottom)-S,D=E+S,f=this.top+h;else if(o==="left")E=C(this.right),P=this.right-h,g=E-S,p=C(e.left)+S,b=e.right;else if(o==="right")E=C(this.left),p=e.left,b=C(e.right)-S,P=E+S,g=this.left+h;else if(n==="x"){if(o==="center")E=C((e.top+e.bottom)/2+.5);else if(ne(o)){const T=Object.keys(o)[0],B=o[T];E=C(this.chart.scales[T].getPixelForValue(B))}d=e.top,O=e.bottom,D=E+S,f=D+h}else if(n==="y"){if(o==="center")E=C((e.left+e.right)/2);else if(ne(o)){const T=Object.keys(o)[0],B=o[T];E=C(this.chart.scales[T].getPixelForValue(B))}P=E-S,g=P-h,p=e.left,b=e.right}const L=ee(u.ticks.maxTicksLimit,c),k=Math.max(1,Math.ceil(c/L));for(w=0;w<c;w+=k){const T=i.setContext(this.getContext(w)),B=T.lineWidth,F=T.color,R=T.borderDash||[],M=T.borderDashOffset,A=T.tickWidth,I=T.tickColor,V=T.tickBorderDash||[],W=T.tickBorderDashOffset;x=ux(this,w,s),x!==void 0&&(N=Un(r,x,B),a?P=g=p=b=N:D=f=d=O=N,m.push({tx1:P,ty1:D,tx2:g,ty2:f,x1:p,y1:d,x2:b,y2:O,width:B,color:F,borderDash:R,borderDashOffset:M,tickWidth:A,tickColor:I,tickBorderDash:V,tickBorderDashOffset:W}))}return this._ticksLength=c,this._borderValue=E,m}_computeLabelItems(e){const n=this.axis,r=this.options,{position:u,ticks:i}=r,o=this.isHorizontal(),s=this.ticks,{align:a,crossAlign:l,padding:c,mirror:h}=i,m=vu(r.grid),y=m+c,v=h?-c:y,S=-Mt(this.labelRotation),C=[];let E,w,x,N,P,D,g,f,p,d,b,O,L="middle";if(u==="top")D=this.bottom-v,g=this._getXAxisLabelAlignment();else if(u==="bottom")D=this.top+v,g=this._getXAxisLabelAlignment();else if(u==="left"){const T=this._getYAxisLabelAlignment(m);g=T.textAlign,P=T.x}else if(u==="right"){const T=this._getYAxisLabelAlignment(m);g=T.textAlign,P=T.x}else if(n==="x"){if(u==="center")D=(e.top+e.bottom)/2+y;else if(ne(u)){const T=Object.keys(u)[0],B=u[T];D=this.chart.scales[T].getPixelForValue(B)+y}g=this._getXAxisLabelAlignment()}else if(n==="y"){if(u==="center")P=(e.left+e.right)/2-y;else if(ne(u)){const T=Object.keys(u)[0],B=u[T];P=this.chart.scales[T].getPixelForValue(B)}g=this._getYAxisLabelAlignment(m).textAlign}n==="y"&&(a==="start"?L="top":a==="end"&&(L="bottom"));const k=this._getLabelSizes();for(E=0,w=s.length;E<w;++E){x=s[E],N=x.label;const T=i.setContext(this.getContext(E));f=this.getPixelForTick(E)+i.labelOffset,p=this._resolveTickFontOptions(E),d=p.lineHeight,b=fe(N)?N.length:1;const B=b/2,F=T.color,R=T.textStrokeColor,M=T.textStrokeWidth;let A=g;o?(P=f,g==="inner"&&(E===w-1?A=this.options.reverse?"left":"right":E===0?A=this.options.reverse?"right":"left":A="center"),u==="top"?l==="near"||S!==0?O=-b*d+d/2:l==="center"?O=-k.highest.height/2-B*d+d:O=-k.highest.height+d/2:l==="near"||S!==0?O=d/2:l==="center"?O=k.highest.height/2-B*d:O=k.highest.height-b*d,h&&(O*=-1)):(D=f,O=(1-b)*d/2);let I;if(T.showLabelBackdrop){const V=ft(T.backdropPadding),W=k.heights[E],Y=k.widths[E];let q=D+O-V.top,G=P-V.left;switch(L){case"middle":q-=W/2;break;case"bottom":q-=W;break}switch(g){case"center":G-=Y/2;break;case"right":G-=Y;break}I={left:G,top:q,width:Y+V.width,height:W+V.height,color:T.backdropColor}}C.push({rotation:S,label:N,font:p,color:F,strokeColor:R,strokeWidth:M,textOffset:O,textAlign:A,textBaseline:L,translation:[P,D],backdrop:I})}return C}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Mt(this.labelRotation))return e==="top"?"left":"right";let u="center";return n.align==="start"?u="left":n.align==="end"?u="right":n.align==="inner"&&(u="inner"),u}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:u,padding:i}}=this.options,o=this._getLabelSizes(),s=e+i,a=o.widest.width;let l,c;return n==="left"?u?(c=this.right+i,r==="near"?l="left":r==="center"?(l="center",c+=a/2):(l="right",c+=a)):(c=this.right-s,r==="near"?l="right":r==="center"?(l="center",c-=a/2):(l="left",c=this.left)):n==="right"?u?(c=this.left+i,r==="near"?l="right":r==="center"?(l="center",c-=a/2):(l="left",c-=a)):(c=this.left+s,r==="near"?l="left":r==="center"?(l="center",c+=a/2):(l="right",c=this.right)):l="right",{textAlign:l,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:u,width:i,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,u,i,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const u=this.ticks.findIndex(i=>i.value===e);return u>=0?n.setContext(this.getContext(u)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,u=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,o;const s=(a,l,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(a.x,a.y),r.lineTo(l.x,l.y),r.stroke(),r.restore())};if(n.display)for(i=0,o=u.length;i<o;++i){const a=u[i];n.drawOnChartArea&&s({x:a.x1,y:a.y1},{x:a.x2,y:a.y2},a),n.drawTicks&&s({x:a.tx1,y:a.ty1},{x:a.tx2,y:a.ty2},{color:a.tickColor,width:a.tickWidth,borderDash:a.tickBorderDash,borderDashOffset:a.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{grid:r}}=this,u=r.setContext(this.getContext()),i=r.drawBorder?u.borderWidth:0;if(!i)return;const o=r.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let a,l,c,h;this.isHorizontal()?(a=Un(e,this.left,i)-i/2,l=Un(e,this.right,o)+o/2,c=h=s):(c=Un(e,this.top,i)-i/2,h=Un(e,this.bottom,o)+o/2,a=l=s),n.save(),n.lineWidth=u.borderWidth,n.strokeStyle=u.borderColor,n.beginPath(),n.moveTo(a,c),n.lineTo(l,h),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,u=this._computeLabelArea();u&&Dm(r,u);const i=this._labelItems||(this._labelItems=this._computeLabelItems(e));let o,s;for(o=0,s=i.length;o<s;++o){const a=i[o],l=a.font,c=a.label;a.backdrop&&(r.fillStyle=a.backdrop.color,r.fillRect(a.backdrop.left,a.backdrop.top,a.backdrop.width,a.backdrop.height));let h=a.textOffset;gi(r,c,0,h,l,a)}u&&Om(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:u}}=this;if(!r.display)return;const i=Ke(r.font),o=ft(r.padding),s=r.align;let a=i.lineHeight/2;n==="bottom"||n==="center"||ne(n)?(a+=o.bottom,fe(r.text)&&(a+=i.lineHeight*(r.text.length-1))):a+=o.top;const{titleX:l,titleY:c,maxWidth:h,rotation:m}=lx(this,a,n,s);gi(e,r.text,0,0,i,{color:r.color,maxWidth:h,rotation:m,textAlign:ax(s,n,u),textBaseline:"middle",translation:[l,c]})}draw(e){!this._isVisible()||(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,r=ee(e.grid&&e.grid.z,-1);return!this._isVisible()||this.draw!==dr.prototype.draw?[{z:n,draw:u=>{this.draw(u)}}]:[{z:r,draw:u=>{this.drawBackground(),this.drawGrid(u),this.drawTitle()}},{z:r+1,draw:()=>{this.drawBorder()}},{z:n,draw:u=>{this.drawLabels(u)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",u=[];let i,o;for(i=0,o=n.length;i<o;++i){const s=n[i];s[r]===this.id&&(!e||s.type===e)&&u.push(s)}return u}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return Ke(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class so{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;dx(n)&&(r=this.register(n));const u=this.items,i=e.id,o=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in u||(u[i]=e,cx(e,o,r),this.override&&J.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,u=this.scope;r in n&&delete n[r],u&&r in J[u]&&(delete J[u][r],this.override&&delete lr[r])}}function cx(t,e,n){const r=hi(Object.create(null),[n?J.get(n):{},J.get(e),t.defaults]);J.set(e,r),t.defaultRoutes&&fx(e,t.defaultRoutes),t.descriptors&&J.describe(e,t.descriptors)}function fx(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),u=r.pop(),i=[t].concat(r).join("."),o=e[n].split("."),s=o.pop(),a=o.join(".");J.route(i,u,a,s)})}function dx(t){return"id"in t&&"defaults"in t}class hx{constructor(){this.controllers=new so(Lt,"datasets",!0),this.elements=new so(Yt,"elements"),this.plugins=new so(Object,"plugins"),this.scales=new so(dr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(u=>{const i=r||this._getRegistryForType(u);r||i.isForType(u)||i===this.plugins&&u.id?this._exec(e,i,u):ue(u,o=>{const s=r||this._getRegistryForType(o);this._exec(e,s,o)})})}_exec(e,n,r){const u=y0(e);_e(r["before"+u],[],r),n[e](r),_e(r["after"+u],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const u=n.get(e);if(u===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return u}}var Wt=new hx;class M0 extends Lt{update(e){const n=this._cachedMeta,{data:r=[]}=n,u=this.chart._animationsDisabled;let{start:i,count:o}=_m(n,r,u);if(this._drawStart=i,this._drawCount=o,Em(n)&&(i=0,o=r.length),this.options.showLine){const{dataset:s,_dataset:a}=n;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!a._decimated,s.points=r;const l=this.resolveDatasetElementOptions(e);l.segment=this.options.segment,this.updateElement(s,void 0,{animated:!u,options:l},e)}this.updateElements(r,i,o,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=Wt.getElement("line")),super.addElements()}updateElements(e,n,r,u){const i=u==="reset",{iScale:o,vScale:s,_stacked:a,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(n,u),h=this.getSharedOptions(c),m=this.includeOptions(u,h),y=o.axis,v=s.axis,{spanGaps:S,segment:C}=this.options,E=qr(S)?S:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||i||u==="none";let x=n>0&&this.getParsed(n-1);for(let N=n;N<n+r;++N){const P=e[N],D=this.getParsed(N),g=w?P:{},f=ie(D[v]),p=g[y]=o.getPixelForValue(D[y],N),d=g[v]=i||f?s.getBasePixel():s.getPixelForValue(a?this.applyStack(s,D,a):D[v],N);g.skip=isNaN(p)||isNaN(d)||f,g.stop=N>0&&Math.abs(D[y]-x[y])>E,C&&(g.parsed=D,g.raw=l.data[N]),m&&(g.options=h||this.resolveDataElementOptions(N,P.active?"active":u)),w||this.updateElement(P,N,g,u),x=D}this.updateSharedOptions(h,u,c)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let s=0;for(let a=n.length-1;a>=0;--a)s=Math.max(s,n[a].size(this.resolveDataElementOptions(a))/2);return s>0&&s}const r=e.dataset,u=r.options&&r.options.borderWidth||0;if(!n.length)return u;const i=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(u,i,o)/2}}M0.id="scatter";M0.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};M0.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(t){return"("+t.label+", "+t.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function Wn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ac{constructor(e){this.options=e||{}}init(e){}formats(){return Wn()}parse(e,n){return Wn()}format(e,n){return Wn()}add(e,n,r){return Wn()}diff(e,n,r){return Wn()}startOf(e,n,r){return Wn()}endOf(e,n){return Wn()}}ac.override=function(t){Object.assign(ac.prototype,t)};var px={_date:ac};function mx(t,e,n,r){const{controller:u,data:i,_sorted:o}=t,s=u._cachedMeta.iScale;if(s&&e===s.axis&&e!=="r"&&o&&i.length){const a=s._reversePixels?J2:Zn;if(r){if(u._sharedOptions){const l=i[0],c=typeof l.getRange=="function"&&l.getRange(e);if(c){const h=a(i,e,n-c),m=a(i,e,n+c);return{lo:h.lo,hi:m.hi}}}}else return a(i,e,n)}return{lo:0,hi:i.length-1}}function Ai(t,e,n,r,u){const i=t.getSortedVisibleDatasetMetas(),o=n[e];for(let s=0,a=i.length;s<a;++s){const{index:l,data:c}=i[s],{lo:h,hi:m}=mx(i[s],e,o,u);for(let y=h;y<=m;++y){const v=c[y];v.skip||r(v,l,y)}}}function gx(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,u){const i=e?Math.abs(r.x-u.x):0,o=n?Math.abs(r.y-u.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}function qa(t,e,n,r,u){const i=[];return!u&&!t.isPointInArea(e)||Ai(t,n,e,function(s,a,l){!u&&!mi(s,t.chartArea,0)||s.inRange(e.x,e.y,r)&&i.push({element:s,datasetIndex:a,index:l})},!0),i}function yx(t,e,n,r){let u=[];function i(o,s,a){const{startAngle:l,endAngle:c}=o.getProps(["startAngle","endAngle"],r),{angle:h}=hm(o,{x:e.x,y:e.y});pi(h,l,c)&&u.push({element:o,datasetIndex:s,index:a})}return Ai(t,n,e,i),u}function vx(t,e,n,r,u,i){let o=[];const s=gx(n);let a=Number.POSITIVE_INFINITY;function l(c,h,m){const y=c.inRange(e.x,e.y,u);if(r&&!y)return;const v=c.getCenterPoint(u);if(!(!!i||t.isPointInArea(v))&&!y)return;const C=s(e,v);C<a?(o=[{element:c,datasetIndex:h,index:m}],a=C):C===a&&o.push({element:c,datasetIndex:h,index:m})}return Ai(t,n,e,l),o}function Xa(t,e,n,r,u,i){return!i&&!t.isPointInArea(e)?[]:n==="r"&&!r?yx(t,e,n,u):vx(t,e,n,r,u,i)}function vd(t,e,n,r,u){const i=[],o=n==="x"?"inXRange":"inYRange";let s=!1;return Ai(t,n,e,(a,l,c)=>{a[o](e[n],u)&&(i.push({element:a,datasetIndex:l,index:c}),s=s||a.inRange(e.x,e.y,u))}),r&&!s?[]:i}var _x={evaluateInteractionItems:Ai,modes:{index(t,e,n,r){const u=Kn(e,t),i=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?qa(t,u,i,r,o):Xa(t,u,i,!1,r,o),a=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(l=>{const c=s[0].index,h=l.data[c];h&&!h.skip&&a.push({element:h,datasetIndex:l.index,index:c})}),a):[]},dataset(t,e,n,r){const u=Kn(e,t),i=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?qa(t,u,i,r,o):Xa(t,u,i,!1,r,o);if(s.length>0){const a=s[0].datasetIndex,l=t.getDatasetMeta(a).data;s=[];for(let c=0;c<l.length;++c)s.push({element:l[c],datasetIndex:a,index:c})}return s},point(t,e,n,r){const u=Kn(e,t),i=n.axis||"xy",o=n.includeInvisible||!1;return qa(t,u,i,r,o)},nearest(t,e,n,r){const u=Kn(e,t),i=n.axis||"xy",o=n.includeInvisible||!1;return Xa(t,u,i,n.intersect,r,o)},x(t,e,n,r){const u=Kn(e,t);return vd(t,u,"x",n.intersect,r)},y(t,e,n,r){const u=Kn(e,t);return vd(t,u,"y",n.intersect,r)}}};const Um=["left","top","right","bottom"];function _u(t,e){return t.filter(n=>n.pos===e)}function _d(t,e){return t.filter(n=>Um.indexOf(n.pos)===-1&&n.box.axis===e)}function Eu(t,e){return t.sort((n,r)=>{const u=e?r:n,i=e?n:r;return u.weight===i.weight?u.index-i.index:u.weight-i.weight})}function Ex(t){const e=[];let n,r,u,i,o,s;for(n=0,r=(t||[]).length;n<r;++n)u=t[n],{position:i,options:{stack:o,stackWeight:s=1}}=u,e.push({index:n,box:u,pos:i,horizontal:u.isHorizontal(),weight:u.weight,stack:o&&i+o,stackWeight:s});return e}function bx(t){const e={};for(const n of t){const{stack:r,pos:u,stackWeight:i}=n;if(!r||!Um.includes(u))continue;const o=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=i}return e}function wx(t,e){const n=bx(t),{vBoxMaxWidth:r,hBoxMaxHeight:u}=e;let i,o,s;for(i=0,o=t.length;i<o;++i){s=t[i];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*r:a&&e.availableWidth,s.height=u):(s.width=r,s.height=c?c*u:a&&e.availableHeight)}return n}function xx(t){const e=Ex(t),n=Eu(e.filter(l=>l.box.fullSize),!0),r=Eu(_u(e,"left"),!0),u=Eu(_u(e,"right")),i=Eu(_u(e,"top"),!0),o=Eu(_u(e,"bottom")),s=_d(e,"x"),a=_d(e,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:u.concat(a).concat(o).concat(s),chartArea:_u(e,"chartArea"),vertical:r.concat(u).concat(a),horizontal:i.concat(o).concat(s)}}function Ed(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Wm(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Px(t,e,n,r){const{pos:u,box:i}=n,o=t.maxPadding;if(!ne(u)){n.size&&(t[u]-=n.size);const h=r[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?i.height:i.width),n.size=h.size/h.count,t[u]+=n.size}i.getPadding&&Wm(o,i.getPadding());const s=Math.max(0,e.outerWidth-Ed(o,t,"left","right")),a=Math.max(0,e.outerHeight-Ed(o,t,"top","bottom")),l=s!==t.w,c=a!==t.h;return t.w=s,t.h=a,n.horizontal?{same:l,other:c}:{same:c,other:l}}function Sx(t){const e=t.maxPadding;function n(r){const u=Math.max(e[r]-t[r],0);return t[r]+=u,u}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function Dx(t,e){const n=e.maxPadding;function r(u){const i={left:0,top:0,right:0,bottom:0};return u.forEach(o=>{i[o]=Math.max(e[o],n[o])}),i}return r(t?["left","right"]:["top","bottom"])}function Mu(t,e,n,r){const u=[];let i,o,s,a,l,c;for(i=0,o=t.length,l=0;i<o;++i){s=t[i],a=s.box,a.update(s.width||e.w,s.height||e.h,Dx(s.horizontal,e));const{same:h,other:m}=Px(e,n,s,r);l|=h&&u.length,c=c||m,a.fullSize||u.push(s)}return l&&Mu(u,e,n,r)||c}function ao(t,e,n,r,u){t.top=n,t.left=e,t.right=e+r,t.bottom=n+u,t.width=r,t.height=u}function bd(t,e,n,r){const u=n.padding;let{x:i,y:o}=e;for(const s of t){const a=s.box,l=r[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const h=e.w*c,m=l.size||a.height;Dt(l.start)&&(o=l.start),a.fullSize?ao(a,u.left,o,n.outerWidth-u.right-u.left,m):ao(a,e.left+l.placed,o,h,m),l.start=o,l.placed+=h,o=a.bottom}else{const h=e.h*c,m=l.size||a.width;Dt(l.start)&&(i=l.start),a.fullSize?ao(a,i,u.top,m,n.outerHeight-u.bottom-u.top):ao(a,i,e.top+l.placed,m,h),l.start=i,l.placed+=h,i=a.right}}e.x=i,e.y=o}J.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var wn={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const u=ft(t.options.layout.padding),i=Math.max(e-u.width,0),o=Math.max(n-u.height,0),s=xx(t.boxes),a=s.vertical,l=s.horizontal;ue(t.boxes,S=>{typeof S.beforeLayout=="function"&&S.beforeLayout()});const c=a.reduce((S,C)=>C.box.options&&C.box.options.display===!1?S:S+1,0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:u,availableWidth:i,availableHeight:o,vBoxMaxWidth:i/2/c,hBoxMaxHeight:o/2}),m=Object.assign({},u);Wm(m,ft(r));const y=Object.assign({maxPadding:m,w:i,h:o,x:u.left,y:u.top},u),v=wx(a.concat(l),h);Mu(s.fullSize,y,h,v),Mu(a,y,h,v),Mu(l,y,h,v)&&Mu(a,y,h,v),Sx(y),bd(s.leftAndTop,y,h,v),y.x+=y.w,y.y+=y.h,bd(s.rightAndBottom,y,h,v),t.chartArea={left:y.left,top:y.top,right:y.left+y.w,bottom:y.top+y.h,height:y.h,width:y.w},ue(s.chartArea,S=>{const C=S.box;Object.assign(C,t.chartArea),C.update(y.w,y.h,{left:0,top:0,right:0,bottom:0})})}};class Hm{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,u){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,u?Math.floor(n/u):r)}}isAttached(e){return!0}updateConfig(e){}}class Ox extends Hm{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Oo="$chartjs",Cx={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},wd=t=>t===null||t==="";function kx(t,e){const n=t.style,r=t.getAttribute("height"),u=t.getAttribute("width");if(t[Oo]={initial:{height:r,width:u,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",wd(u)){const i=ed(t,"width");i!==void 0&&(t.width=i)}if(wd(r))if(t.style.height==="")t.height=t.width/(e||2);else{const i=ed(t,"height");i!==void 0&&(t.height=i)}return t}const $m=ow?{passive:!0}:!1;function Ax(t,e,n){t.addEventListener(e,n,$m)}function Rx(t,e,n){t.canvas.removeEventListener(e,n,$m)}function Mx(t,e){const n=Cx[t.type]||t.type,{x:r,y:u}=Kn(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:u!==void 0?u:null}}function cs(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Nx(t,e,n){const r=t.canvas,u=new MutationObserver(i=>{let o=!1;for(const s of i)o=o||cs(s.addedNodes,r),o=o&&!cs(s.removedNodes,r);o&&n()});return u.observe(document,{childList:!0,subtree:!0}),u}function Tx(t,e,n){const r=t.canvas,u=new MutationObserver(i=>{let o=!1;for(const s of i)o=o||cs(s.removedNodes,r),o=o&&!cs(s.addedNodes,r);o&&n()});return u.observe(document,{childList:!0,subtree:!0}),u}const yi=new Map;let xd=0;function Km(){const t=window.devicePixelRatio;t!==xd&&(xd=t,yi.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Fx(t,e){yi.size||window.addEventListener("resize",Km),yi.set(t,e)}function Lx(t){yi.delete(t),yi.size||window.removeEventListener("resize",Km)}function Bx(t,e,n){const r=t.canvas,u=r&&O0(r);if(!u)return;const i=ym((s,a)=>{const l=u.clientWidth;n(s,a),l<u.clientWidth&&n()},window),o=new ResizeObserver(s=>{const a=s[0],l=a.contentRect.width,c=a.contentRect.height;l===0&&c===0||i(l,c)});return o.observe(u),Fx(t,i),o}function Ga(t,e,n){n&&n.disconnect(),e==="resize"&&Lx(t)}function Ix(t,e,n){const r=t.canvas,u=ym(i=>{t.ctx!==null&&n(Mx(i,t))},t,i=>{const o=i[0];return[o,o.offsetX,o.offsetY]});return Ax(r,e,u),u}class zx extends Hm{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(kx(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[Oo])return!1;const r=n[Oo].initial;["height","width"].forEach(i=>{const o=r[i];ie(o)?n.removeAttribute(i):n.setAttribute(i,o)});const u=r.style||{};return Object.keys(u).forEach(i=>{n.style[i]=u[i]}),n.width=n.width,delete n[Oo],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const u=e.$proxies||(e.$proxies={}),o={attach:Nx,detach:Tx,resize:Bx}[n]||Ix;u[n]=o(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),u=r[n];if(!u)return;({attach:Ga,detach:Ga,resize:Ga}[n]||Rx)(e,n,u),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,u){return iw(e,n,r,u)}isAttached(e){const n=O0(e);return!!(n&&n.isConnected)}}function jx(t){return!Fm()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Ox:zx}class Vx{constructor(){this._init=[]}notify(e,n,r,u){n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const i=u?this._descriptors(e).filter(u):this._descriptors(e),o=this._notify(i,e,n,r);return n==="afterDestroy"&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,n,r,u){u=u||{};for(const i of e){const o=i.plugin,s=o[r],a=[n,u,i.options];if(_e(s,a,o)===!1&&u.cancelable)return!1}return!0}invalidate(){ie(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,u=ee(r.options&&r.options.plugins,{}),i=Ux(r);return u===!1&&!n?[]:Hx(e,i,u,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,u=(i,o)=>i.filter(s=>!o.some(a=>s.plugin.id===a.plugin.id));this._notify(u(n,r),e,"stop"),this._notify(u(r,n),e,"start")}}function Ux(t){const e={},n=[],r=Object.keys(Wt.plugins.items);for(let i=0;i<r.length;i++)n.push(Wt.getPlugin(r[i]));const u=t.plugins||[];for(let i=0;i<u.length;i++){const o=u[i];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function Wx(t,e){return!e&&t===!1?null:t===!0?{}:t}function Hx(t,{plugins:e,localIds:n},r,u){const i=[],o=t.getContext();for(const s of e){const a=s.id,l=Wx(r[a],u);l!==null&&i.push({plugin:s,options:$x(t.config,{plugin:s,local:n[a]},l,o)})}return i}function $x(t,{plugin:e,local:n},r,u){const i=t.pluginScopeKeys(e),o=t.getOptionScopes(r,i);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,u,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function lc(t,e){const n=J.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Kx(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function Yx(t,e){return t===e?"_index_":"_value_"}function qx(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function cc(t,e){return t==="x"||t==="y"?t:e.axis||qx(e.position)||t.charAt(0).toLowerCase()}function Xx(t,e){const n=lr[t.type]||{scales:{}},r=e.scales||{},u=lc(t.type,e),i=Object.create(null),o=Object.create(null);return Object.keys(r).forEach(s=>{const a=r[s];if(!ne(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=cc(s,a),c=Yx(l,u),h=n.scales||{};i[l]=i[l]||s,o[s]=Wu(Object.create(null),[{axis:l},a,h[l],h[c]])}),t.data.datasets.forEach(s=>{const a=s.type||t.type,l=s.indexAxis||lc(a,e),h=(lr[a]||{}).scales||{};Object.keys(h).forEach(m=>{const y=Kx(m,l),v=s[y+"AxisID"]||i[y]||y;o[v]=o[v]||Object.create(null),Wu(o[v],[{axis:y},r[v],h[m]])})}),Object.keys(o).forEach(s=>{const a=o[s];Wu(a,[J.scales[a.type],J.scale])}),o}function Ym(t){const e=t.options||(t.options={});e.plugins=ee(e.plugins,{}),e.scales=Xx(t,e)}function qm(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Gx(t){return t=t||{},t.data=qm(t.data),Ym(t),t}const Pd=new Map,Xm=new Set;function lo(t,e){let n=Pd.get(t);return n||(n=e(),Pd.set(t,n),Xm.add(n)),n}const bu=(t,e,n)=>{const r=Ln(e,n);r!==void 0&&t.add(r)};class Qx{constructor(e){this._config=Gx(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=qm(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Ym(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return lo(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return lo(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return lo(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return lo(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let u=r.get(e);return(!u||n)&&(u=new Map,r.set(e,u)),u}getOptionScopes(e,n,r){const{options:u,type:i}=this,o=this._cachedScopes(e,r),s=o.get(n);if(s)return s;const a=new Set;n.forEach(c=>{e&&(a.add(e),c.forEach(h=>bu(a,e,h))),c.forEach(h=>bu(a,u,h)),c.forEach(h=>bu(a,lr[i]||{},h)),c.forEach(h=>bu(a,J,h)),c.forEach(h=>bu(a,oc,h))});const l=Array.from(a);return l.length===0&&l.push(Object.create(null)),Xm.has(n)&&o.set(n,l),l}chartOptionScopes(){const{options:e,type:n}=this;return[e,lr[n]||{},J.datasets[n]||{},{type:n},J,oc]}resolveNamedOptions(e,n,r,u=[""]){const i={$shared:!0},{resolver:o,subPrefixes:s}=Sd(this._resolverCache,e,u);let a=o;if(Jx(o,n)){i.$shared=!1,r=Bn(r)?r():r;const l=this.createResolver(e,r,s);a=Xr(o,r,l)}for(const l of n)i[l]=a[l];return i}createResolver(e,n,r=[""],u){const{resolver:i}=Sd(this._resolverCache,e,r);return ne(n)?Xr(i,n,void 0,u):i}}function Sd(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const u=n.join();let i=r.get(u);return i||(i={resolver:P0(e,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(u,i)),i}const Zx=t=>ne(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||Bn(t[n]),!1);function Jx(t,e){const{isScriptable:n,isIndexable:r}=km(t);for(const u of e){const i=n(u),o=r(u),s=(o||i)&&t[u];if(i&&(Bn(s)||Zx(s))||o&&fe(s))return!0}return!1}var eP="3.9.1";const tP=["top","bottom","left","right","chartArea"];function Dd(t,e){return t==="top"||t==="bottom"||tP.indexOf(t)===-1&&e==="x"}function Od(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function Cd(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),_e(n&&n.onComplete,[t],e)}function nP(t){const e=t.chart,n=e.options.animation;_e(n&&n.onProgress,[t],e)}function Gm(t){return Fm()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const fs={},Qm=t=>{const e=Gm(t);return Object.values(fs).filter(n=>n.canvas===e).pop()};function rP(t,e,n){const r=Object.keys(t);for(const u of r){const i=+u;if(i>=e){const o=t[u];delete t[u],(n>0||i>e)&&(t[i+n]=o)}}}function uP(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}class Ri{constructor(e,n){const r=this.config=new Qx(n),u=Gm(e),i=Qm(u);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||jx(u)),this.platform.updateConfig(r);const s=this.platform.acquireContext(u,o.aspectRatio),a=s&&s.canvas,l=a&&a.height,c=a&&a.width;if(this.id=j2(),this.ctx=s,this.canvas=a,this.width=c,this.height=l,this._options=o,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 Vx,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=nb(h=>this.update(h),o.resizeDelay||0),this._dataChanges=[],fs[this.id]=this,!s||!a){console.error("Failed to create chart: can't acquire context from the given item");return}qt.listen(this,"complete",Cd),qt.listen(this,"progress",nP),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:u,_aspectRatio:i}=this;return ie(e)?n&&i?i:u?r/u:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Jf(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Gf(this.canvas,this.ctx),this}stop(){return qt.stop(this),this}resize(e,n){qt.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,u=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(u,e,n,i),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Jf(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),_e(r.onResize,[this,o],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};ue(n,(r,u)=>{r.id=u})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,u=Object.keys(r).reduce((o,s)=>(o[s]=!1,o),{});let i=[];n&&(i=i.concat(Object.keys(n).map(o=>{const s=n[o],a=cc(o,s),l=a==="r",c=a==="x";return{options:s,dposition:l?"chartArea":c?"bottom":"left",dtype:l?"radialLinear":c?"category":"linear"}}))),ue(i,o=>{const s=o.options,a=s.id,l=cc(a,s),c=ee(s.type,o.dtype);(s.position===void 0||Dd(s.position,l)!==Dd(o.dposition))&&(s.position=o.dposition),u[a]=!0;let h=null;if(a in r&&r[a].type===c)h=r[a];else{const m=Wt.getScale(c);h=new m({id:a,type:c,ctx:this.ctx,chart:this}),r[h.id]=h}h.init(s,e)}),ue(u,(o,s)=>{o||delete r[s]}),ue(r,o=>{wn.configure(this,o,o.options),wn.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((u,i)=>u.index-i.index),r>n){for(let u=n;u<r;++u)this._destroyDatasetMeta(u);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(Od("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,u)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(u)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,u;for(this._removeUnreferencedMetasets(),r=0,u=n.length;r<u;r++){const i=n[r];let o=this.getDatasetMeta(r);const s=i.type||this.config.type;if(o.type&&o.type!==s&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=s,o.indexAxis=i.indexAxis||lc(s,this.options),o.order=i.order||0,o.index=r,o.label=""+i.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const a=Wt.getController(s),{datasetElementType:l,dataElementType:c}=J.datasets[s];Object.assign(a.prototype,{dataElementType:Wt.getElement(c),datasetElementType:l&&Wt.getElement(l)}),o.controller=new a(this,r),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){ue(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),u=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let l=0,c=this.data.datasets.length;l<c;l++){const{controller:h}=this.getDatasetMeta(l),m=!u&&i.indexOf(h)===-1;h.buildOrUpdateElements(m),o=Math.max(+h.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),u||ue(i,l=>{l.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Od("z","_idx"));const{_active:s,_lastEvent:a}=this;a?this._eventHandler(a,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){ue(this.scales,e=>{wn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!If(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:u,count:i}of n){const o=r==="_removeElements"?-i:i;rP(e,u,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(e.filter(o=>o[0]===i).map((o,s)=>s+","+o.splice(1).join(","))),u=r(0);for(let i=1;i<n;i++)if(!If(u,r(i)))return;return Array.from(u).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;wn.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],ue(this.boxes,u=>{r&&u.position==="chartArea"||(u.configure&&u.configure(),this._layers.push(...u._layers()))},this),this._layers.forEach((u,i)=>{u._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,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,Bn(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),u={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",u)!==!1&&(r.controller._update(n),u.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",u))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(qt.has(this)?this.attached&&!qt.running(this)&&qt.start(this):(this.draw(),Cd({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:u}=this._resizeBeforeDraw;this._resize(r,u),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let u,i;for(u=0,i=n.length;u<i;++u){const o=n[u];(!e||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r=e._clip,u=!r.disabled,i=this.chartArea,o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(u&&Dm(n,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),e.controller.draw(),u&&Om(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return mi(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,u){const i=_x.modes[n];return typeof i=="function"?i(this,e,r,u):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let u=r.filter(i=>i&&i._dataset===n).pop();return u||(u={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(u)),u}getContext(){return this.$context||(this.$context=Vn(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const u=r?"show":"hide",i=this.getDatasetMeta(e),o=i.controller._resolveAnimations(void 0,u);Dt(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),o.update(i,{visible:r}),this.update(s=>s.datasetIndex===e?u:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),qt.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Gf(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete fs[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,r=(i,o)=>{n.addEventListener(this,i,o),e[i]=o},u=(i,o,s)=>{i.offsetX=o,i.offsetY=s,this._eventHandler(i)};ue(this.options.events,i=>r(i,u))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(a,l)=>{n.addEventListener(this,a,l),e[a]=l},u=(a,l)=>{e[a]&&(n.removeEventListener(this,a,l),delete e[a])},i=(a,l)=>{this.canvas&&this.resize(a,l)};let o;const s=()=>{u("attach",s),this.attached=!0,this.resize(),r("resize",i),r("detach",o)};o=()=>{this.attached=!1,u("resize",i),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():o()}unbindEvents(){ue(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},ue(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const u=r?"set":"remove";let i,o,s,a;for(n==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+u+"DatasetHoverStyle"]()),s=0,a=e.length;s<a;++s){o=e[s];const l=o&&this.getDatasetMeta(o.datasetIndex).controller;l&&l[u+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:i,index:o})=>{const s=this.getDatasetMeta(i);if(!s)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:s.data[o],index:o}});!ns(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}_updateHoverStyles(e,n,r){const u=this.options.hover,i=(a,l)=>a.filter(c=>!l.some(h=>c.datasetIndex===h.datasetIndex&&c.index===h.index)),o=i(n,e),s=r?e:i(e,n);o.length&&this.updateHoverStyle(o,u.mode,!1),s.length&&u.mode&&this.updateHoverStyle(s,u.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},u=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,u)===!1)return;const i=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,u),(i||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:u=[],options:i}=this,o=n,s=this._getActiveElements(e,u,r,o),a=K2(e),l=uP(e,this._lastEvent,r,a);r&&(this._lastEvent=null,_e(i.onHover,[e,s,this],this),a&&_e(i.onClick,[e,s,this],this));const c=!ns(s,u);return(c||n)&&(this._active=s,this._updateHoverStyles(s,u,n)),this._lastEvent=l,c}_getActiveElements(e,n,r,u){if(e.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,u)}}const kd=()=>ue(Ri.instances,t=>t._plugins.invalidate()),hn=!0;Object.defineProperties(Ri,{defaults:{enumerable:hn,value:J},instances:{enumerable:hn,value:fs},overrides:{enumerable:hn,value:lr},registry:{enumerable:hn,value:Wt},version:{enumerable:hn,value:eP},getChart:{enumerable:hn,value:Qm},register:{enumerable:hn,value:(...t)=>{Wt.add(...t),kd()}},unregister:{enumerable:hn,value:(...t)=>{Wt.remove(...t),kd()}}});function Zm(t,e,n){const{startAngle:r,pixelMargin:u,x:i,y:o,outerRadius:s,innerRadius:a}=e;let l=u/s;t.beginPath(),t.arc(i,o,s,r-l,n+l),a>u?(l=u/a,t.arc(i,o,a,n+l,r-l,!0)):t.arc(i,o,u,n+be,r-be),t.closePath(),t.clip()}function iP(t){return x0(t,["outerStart","outerEnd","innerStart","innerEnd"])}function oP(t,e,n,r){const u=iP(t.options.borderRadius),i=(n-e)/2,o=Math.min(i,r*e/2),s=a=>{const l=(n-Math.min(i,a))*r/2;return Ve(a,0,Math.min(i,l))};return{outerStart:s(u.outerStart),outerEnd:s(u.outerEnd),innerStart:Ve(u.innerStart,0,o),innerEnd:Ve(u.innerEnd,0,o)}}function Er(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function fc(t,e,n,r,u,i){const{x:o,y:s,startAngle:a,pixelMargin:l,innerRadius:c}=e,h=Math.max(e.outerRadius+r+n-l,0),m=c>0?c+r+n+l:0;let y=0;const v=u-a;if(r){const T=c>0?c-r:0,B=h>0?h-r:0,F=(T+B)/2,R=F!==0?v*F/(F+r):v;y=(v-R)/2}const S=Math.max(.001,v*h-n/pe)/h,C=(v-S)/2,E=a+C+y,w=u-C-y,{outerStart:x,outerEnd:N,innerStart:P,innerEnd:D}=oP(e,m,h,w-E),g=h-x,f=h-N,p=E+x/g,d=w-N/f,b=m+P,O=m+D,L=E+P/b,k=w-D/O;if(t.beginPath(),i){if(t.arc(o,s,h,p,d),N>0){const F=Er(f,d,o,s);t.arc(F.x,F.y,N,d,w+be)}const T=Er(O,w,o,s);if(t.lineTo(T.x,T.y),D>0){const F=Er(O,k,o,s);t.arc(F.x,F.y,D,w+be,k+Math.PI)}if(t.arc(o,s,m,w-D/m,E+P/m,!0),P>0){const F=Er(b,L,o,s);t.arc(F.x,F.y,P,L+Math.PI,E-be)}const B=Er(g,E,o,s);if(t.lineTo(B.x,B.y),x>0){const F=Er(g,p,o,s);t.arc(F.x,F.y,x,E-be,p)}}else{t.moveTo(o,s);const T=Math.cos(p)*h+o,B=Math.sin(p)*h+s;t.lineTo(T,B);const F=Math.cos(d)*h+o,R=Math.sin(d)*h+s;t.lineTo(F,R)}t.closePath()}function sP(t,e,n,r,u){const{fullCircles:i,startAngle:o,circumference:s}=e;let a=e.endAngle;if(i){fc(t,e,n,r,o+ae,u);for(let l=0;l<i;++l)t.fill();isNaN(s)||(a=o+s%ae,s%ae===0&&(a+=ae))}return fc(t,e,n,r,a,u),t.fill(),a}function aP(t,e,n){const{x:r,y:u,startAngle:i,pixelMargin:o,fullCircles:s}=e,a=Math.max(e.outerRadius-o,0),l=e.innerRadius+o;let c;for(n&&Zm(t,e,i+ae),t.beginPath(),t.arc(r,u,l,i+ae,i,!0),c=0;c<s;++c)t.stroke();for(t.beginPath(),t.arc(r,u,a,i,i+ae),c=0;c<s;++c)t.stroke()}function lP(t,e,n,r,u,i){const{options:o}=e,{borderWidth:s,borderJoinStyle:a}=o,l=o.borderAlign==="inner";!s||(l?(t.lineWidth=s*2,t.lineJoin=a||"round"):(t.lineWidth=s,t.lineJoin=a||"bevel"),e.fullCircles&&aP(t,e,l),l&&Zm(t,e,u),fc(t,e,n,r,u,i),t.stroke())}class N0 extends Yt{constructor(e){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,e&&Object.assign(this,e)}inRange(e,n,r){const u=this.getProps(["x","y"],r),{angle:i,distance:o}=hm(u,{x:e,y:n}),{startAngle:s,endAngle:a,innerRadius:l,outerRadius:c,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),m=this.options.spacing/2,v=ee(h,a-s)>=ae||pi(i,s,a),S=is(o,l+m,c+m);return v&&S}getCenterPoint(e){const{x:n,y:r,startAngle:u,endAngle:i,innerRadius:o,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:a,spacing:l}=this.options,c=(u+i)/2,h=(o+s+l+a)/2;return{x:n+Math.cos(c)*h,y:r+Math.sin(c)*h}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:n,circumference:r}=this,u=(n.offset||0)/2,i=(n.spacing||0)/2,o=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>ae?Math.floor(r/ae):0,r===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let s=0;if(u){s=u/2;const l=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(l)*s,Math.sin(l)*s),this.circumference>=pe&&(s=u)}e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor;const a=sP(e,this,s,i,o);lP(e,this,s,i,a,o),e.restore()}}N0.id="arc";N0.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};N0.defaultRoutes={backgroundColor:"backgroundColor"};function Jm(t,e,n=e){t.lineCap=ee(n.borderCapStyle,e.borderCapStyle),t.setLineDash(ee(n.borderDash,e.borderDash)),t.lineDashOffset=ee(n.borderDashOffset,e.borderDashOffset),t.lineJoin=ee(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ee(n.borderWidth,e.borderWidth),t.strokeStyle=ee(n.borderColor,e.borderColor)}function cP(t,e,n){t.lineTo(n.x,n.y)}function fP(t){return t.stepped?kb:t.tension||t.cubicInterpolationMode==="monotone"?Ab:cP}function eg(t,e,n={}){const r=t.length,{start:u=0,end:i=r-1}=n,{start:o,end:s}=e,a=Math.max(u,o),l=Math.min(i,s),c=u<o&&i<o||u>s&&i>s;return{count:r,start:a,loop:e.loop,ilen:l<a&&!c?r+l-a:l-a}}function dP(t,e,n,r){const{points:u,options:i}=e,{count:o,start:s,loop:a,ilen:l}=eg(u,n,r),c=fP(i);let{move:h=!0,reverse:m}=r||{},y,v,S;for(y=0;y<=l;++y)v=u[(s+(m?l-y:y))%o],!v.skip&&(h?(t.moveTo(v.x,v.y),h=!1):c(t,S,v,m,i.stepped),S=v);return a&&(v=u[(s+(m?l:0))%o],c(t,S,v,m,i.stepped)),!!a}function hP(t,e,n,r){const u=e.points,{count:i,start:o,ilen:s}=eg(u,n,r),{move:a=!0,reverse:l}=r||{};let c=0,h=0,m,y,v,S,C,E;const w=N=>(o+(l?s-N:N))%i,x=()=>{S!==C&&(t.lineTo(c,C),t.lineTo(c,S),t.lineTo(c,E))};for(a&&(y=u[w(0)],t.moveTo(y.x,y.y)),m=0;m<=s;++m){if(y=u[w(m)],y.skip)continue;const N=y.x,P=y.y,D=N|0;D===v?(P<S?S=P:P>C&&(C=P),c=(h*c+N)/++h):(x(),t.lineTo(N,P),v=D,h=0,S=C=P),E=P}x()}function dc(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?hP:dP}function pP(t){return t.stepped?sw:t.tension||t.cubicInterpolationMode==="monotone"?aw:Yn}function mP(t,e,n,r){let u=e._path;u||(u=e._path=new Path2D,e.path(u,n,r)&&u.closePath()),Jm(t,e.options),t.stroke(u)}function gP(t,e,n,r){const{segments:u,options:i}=e,o=dc(e);for(const s of u)Jm(t,i,s.style),t.beginPath(),o(t,e,s,{start:n,end:n+r-1})&&t.closePath(),t.stroke()}const yP=typeof Path2D=="function";function vP(t,e,n,r){yP&&!e.options.segment?mP(t,e,n,r):gP(t,e,n,r)}class Mi extends Yt{constructor(e){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,e&&Object.assign(this,e)}updateControlPoints(e,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const u=r.spanGaps?this._loop:this._fullLoop;Jb(this._points,r,e,u,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=_w(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,r=e.length;return r&&n[e[r-1].end]}interpolate(e,n){const r=this.options,u=e[n],i=this.points,o=gw(this,{property:n,start:u,end:u});if(!o.length)return;const s=[],a=pP(r);let l,c;for(l=0,c=o.length;l<c;++l){const{start:h,end:m}=o[l],y=i[h],v=i[m];if(y===v){s.push(y);continue}const S=Math.abs((u-y[n])/(v[n]-y[n])),C=a(y,v,S,r.stepped);C[n]=e[n],s.push(C)}return s.length===1?s[0]:s}pathSegment(e,n,r){return dc(this)(e,this,n,r)}path(e,n,r){const u=this.segments,i=dc(this);let o=this._loop;n=n||0,r=r||this.points.length-n;for(const s of u)o&=i(e,this,s,{start:n,end:n+r-1});return!!o}draw(e,n,r,u){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),vP(e,this,r,u),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}Mi.id="line";Mi.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};Mi.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};Mi.descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};function Ad(t,e,n,r){const u=t.options,{[n]:i}=t.getProps([n],r);return Math.abs(e-i)<u.radius+u.hitRadius}class Us extends Yt{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,n,r){const u=this.options,{x:i,y:o}=this.getProps(["x","y"],r);return Math.pow(e-i,2)+Math.pow(n-o,2)<Math.pow(u.hitRadius+u.radius,2)}inXRange(e,n){return Ad(this,e,"x",n)}inYRange(e,n){return Ad(this,e,"y",n)}getCenterPoint(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}size(e){e=e||this.options||{};let n=e.radius||0;n=Math.max(n,n&&e.hoverRadius||0);const r=n&&e.borderWidth||0;return(n+r)*2}draw(e,n){const r=this.options;this.skip||r.radius<.1||!mi(this,n,this.size(r)/2)||(e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.fillStyle=r.backgroundColor,sc(e,r,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}Us.id="point";Us.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};Us.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function tg(t,e){const{x:n,y:r,base:u,width:i,height:o}=t.getProps(["x","y","base","width","height"],e);let s,a,l,c,h;return t.horizontal?(h=o/2,s=Math.min(n,u),a=Math.max(n,u),l=r-h,c=r+h):(h=i/2,s=n-h,a=n+h,l=Math.min(r,u),c=Math.max(r,u)),{left:s,top:l,right:a,bottom:c}}function xn(t,e,n,r){return t?0:Ve(e,n,r)}function _P(t,e,n){const r=t.options.borderWidth,u=t.borderSkipped,i=Cm(r);return{t:xn(u.top,i.top,0,n),r:xn(u.right,i.right,0,e),b:xn(u.bottom,i.bottom,0,n),l:xn(u.left,i.left,0,e)}}function EP(t,e,n){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),u=t.options.borderRadius,i=zr(u),o=Math.min(e,n),s=t.borderSkipped,a=r||ne(u);return{topLeft:xn(!a||s.top||s.left,i.topLeft,0,o),topRight:xn(!a||s.top||s.right,i.topRight,0,o),bottomLeft:xn(!a||s.bottom||s.left,i.bottomLeft,0,o),bottomRight:xn(!a||s.bottom||s.right,i.bottomRight,0,o)}}function bP(t){const e=tg(t),n=e.right-e.left,r=e.bottom-e.top,u=_P(t,n/2,r/2),i=EP(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:i},inner:{x:e.left+u.l,y:e.top+u.t,w:n-u.l-u.r,h:r-u.t-u.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(u.t,u.l)),topRight:Math.max(0,i.topRight-Math.max(u.t,u.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(u.b,u.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(u.b,u.r))}}}}function Qa(t,e,n,r){const u=e===null,i=n===null,s=t&&!(u&&i)&&tg(t,r);return s&&(u||is(e,s.left,s.right))&&(i||is(n,s.top,s.bottom))}function wP(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function xP(t,e){t.rect(e.x,e.y,e.w,e.h)}function Za(t,e,n={}){const r=t.x!==n.x?-e:0,u=t.y!==n.y?-e:0,i=(t.x+t.w!==n.x+n.w?e:0)-r,o=(t.y+t.h!==n.y+n.h?e:0)-u;return{x:t.x+r,y:t.y+u,w:t.w+i,h:t.h+o,radius:t.radius}}class T0 extends Yt{constructor(e){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,e&&Object.assign(this,e)}draw(e){const{inflateAmount:n,options:{borderColor:r,backgroundColor:u}}=this,{inner:i,outer:o}=bP(this),s=wP(o.radius)?as:xP;e.save(),(o.w!==i.w||o.h!==i.h)&&(e.beginPath(),s(e,Za(o,n,i)),e.clip(),s(e,Za(i,-n,o)),e.fillStyle=r,e.fill("evenodd")),e.beginPath(),s(e,Za(i,n)),e.fillStyle=u,e.fill(),e.restore()}inRange(e,n,r){return Qa(this,e,n,r)}inXRange(e,n){return Qa(this,e,null,n)}inYRange(e,n){return Qa(this,null,e,n)}getCenterPoint(e){const{x:n,y:r,base:u,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(n+u)/2:n,y:i?r:(r+u)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}T0.id="bar";T0.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};T0.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class ng extends Yt{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,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.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const u=fe(r.text)?r.text.length:1;this._padding=ft(r.padding);const i=u*Ke(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:r,bottom:u,right:i,options:o}=this,s=o.align;let a=0,l,c,h;return this.isHorizontal()?(c=$u(s,r,i),h=n+e,l=i-r):(o.position==="left"?(c=r+e,h=$u(s,u,n),a=pe*-.5):(c=i-e,h=$u(s,n,u),a=pe*.5),l=u-n),{titleX:c,titleY:h,maxWidth:l,rotation:a}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const r=Ke(n.font),i=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:a,rotation:l}=this._drawArgs(i);gi(e,n.text,0,0,r,{color:n.color,maxWidth:a,rotation:l,textAlign:vm(n.align),textBaseline:"middle",translation:[o,s]})}}function PP(t,e){const n=new ng({ctx:t.ctx,options:e,chart:t});wn.configure(t,n,e),wn.addBox(t,n),t.titleBlock=n}var SP={id:"title",_element:ng,start(t,e,n){PP(t,n)},stop(t){const e=t.titleBlock;wn.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;wn.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Co={average(t){if(!t.length)return!1;let e,n,r=0,u=0,i=0;for(e=0,n=t.length;e<n;++e){const o=t[e].element;if(o&&o.hasValue()){const s=o.tooltipPosition();r+=s.x,u+=s.y,++i}}return{x:r/i,y:u/i}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,u=Number.POSITIVE_INFINITY,i,o,s;for(i=0,o=t.length;i<o;++i){const a=t[i].element;if(a&&a.hasValue()){const l=a.getCenterPoint(),c=uc(e,l);c<u&&(u=c,s=a)}}if(s){const a=s.tooltipPosition();n=a.x,r=a.y}return{x:n,y:r}}};function jt(t,e){return e&&(fe(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Xt(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
`)>-1?t.split(`
`):t}function DP(t,e){const{element:n,datasetIndex:r,index:u}=e,i=t.getDatasetMeta(r).controller,{label:o,value:s}=i.getLabelAndValue(u);return{chart:t,label:o,parsed:i.getParsed(u),raw:t.data.datasets[r].data[u],formattedValue:s,dataset:i.getDataset(),dataIndex:u,datasetIndex:r,element:n}}function Rd(t,e){const n=t.chart.ctx,{body:r,footer:u,title:i}=t,{boxWidth:o,boxHeight:s}=e,a=Ke(e.bodyFont),l=Ke(e.titleFont),c=Ke(e.footerFont),h=i.length,m=u.length,y=r.length,v=ft(e.padding);let S=v.height,C=0,E=r.reduce((N,P)=>N+P.before.length+P.lines.length+P.after.length,0);if(E+=t.beforeBody.length+t.afterBody.length,h&&(S+=h*l.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),E){const N=e.displayColors?Math.max(s,a.lineHeight):a.lineHeight;S+=y*N+(E-y)*a.lineHeight+(E-1)*e.bodySpacing}m&&(S+=e.footerMarginTop+m*c.lineHeight+(m-1)*e.footerSpacing);let w=0;const x=function(N){C=Math.max(C,n.measureText(N).width+w)};return n.save(),n.font=l.string,ue(t.title,x),n.font=a.string,ue(t.beforeBody.concat(t.afterBody),x),w=e.displayColors?o+2+e.boxPadding:0,ue(r,N=>{ue(N.before,x),ue(N.lines,x),ue(N.after,x)}),w=0,n.font=c.string,ue(t.footer,x),n.restore(),C+=v.width,{width:C,height:S}}function OP(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function CP(t,e,n,r){const{x:u,width:i}=r,o=n.caretSize+n.caretPadding;if(t==="left"&&u+i+o>e.width||t==="right"&&u-i-o<0)return!0}function kP(t,e,n,r){const{x:u,width:i}=n,{width:o,chartArea:{left:s,right:a}}=t;let l="center";return r==="center"?l=u<=(s+a)/2?"left":"right":u<=i/2?l="left":u>=o-i/2&&(l="right"),CP(l,t,e,n)&&(l="center"),l}function Md(t,e,n){const r=n.yAlign||e.yAlign||OP(t,n);return{xAlign:n.xAlign||e.xAlign||kP(t,e,n,r),yAlign:r}}function AP(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function RP(t,e,n){let{y:r,height:u}=t;return e==="top"?r+=n:e==="bottom"?r-=u+n:r-=u/2,r}function Nd(t,e,n,r){const{caretSize:u,caretPadding:i,cornerRadius:o}=t,{xAlign:s,yAlign:a}=n,l=u+i,{topLeft:c,topRight:h,bottomLeft:m,bottomRight:y}=zr(o);let v=AP(e,s);const S=RP(e,a,l);return a==="center"?s==="left"?v+=l:s==="right"&&(v-=l):s==="left"?v-=Math.max(c,m)+u:s==="right"&&(v+=Math.max(h,y)+u),{x:Ve(v,0,r.width-e.width),y:Ve(S,0,r.height-e.height)}}function co(t,e,n){const r=ft(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function Td(t){return jt([],Xt(t))}function MP(t,e,n){return Vn(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function Fd(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class NP extends Yt{constructor(e){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=e.chart||e._chart,this._chart=this.chart,this.options=e.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(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),u=r.enabled&&n.options.animation&&r.animations,i=new Bm(this.chart,u);return u._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=MP(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,u=r.beforeTitle.apply(this,[e]),i=r.title.apply(this,[e]),o=r.afterTitle.apply(this,[e]);let s=[];return s=jt(s,Xt(u)),s=jt(s,Xt(i)),s=jt(s,Xt(o)),s}getBeforeBody(e,n){return Td(n.callbacks.beforeBody.apply(this,[e]))}getBody(e,n){const{callbacks:r}=n,u=[];return ue(e,i=>{const o={before:[],lines:[],after:[]},s=Fd(r,i);jt(o.before,Xt(s.beforeLabel.call(this,i))),jt(o.lines,s.label.call(this,i)),jt(o.after,Xt(s.afterLabel.call(this,i))),u.push(o)}),u}getAfterBody(e,n){return Td(n.callbacks.afterBody.apply(this,[e]))}getFooter(e,n){const{callbacks:r}=n,u=r.beforeFooter.apply(this,[e]),i=r.footer.apply(this,[e]),o=r.afterFooter.apply(this,[e]);let s=[];return s=jt(s,Xt(u)),s=jt(s,Xt(i)),s=jt(s,Xt(o)),s}_createItems(e){const n=this._active,r=this.chart.data,u=[],i=[],o=[];let s=[],a,l;for(a=0,l=n.length;a<l;++a)s.push(DP(this.chart,n[a]));return e.filter&&(s=s.filter((c,h,m)=>e.filter(c,h,m,r))),e.itemSort&&(s=s.sort((c,h)=>e.itemSort(c,h,r))),ue(s,c=>{const h=Fd(e.callbacks,c);u.push(h.labelColor.call(this,c)),i.push(h.labelPointStyle.call(this,c)),o.push(h.labelTextColor.call(this,c))}),this.labelColors=u,this.labelPointStyles=i,this.labelTextColors=o,this.dataPoints=s,s}update(e,n){const r=this.options.setContext(this.getContext()),u=this._active;let i,o=[];if(!u.length)this.opacity!==0&&(i={opacity:0});else{const s=Co[r.position].call(this,u,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const a=this._size=Rd(this,r),l=Object.assign({},s,a),c=Md(this.chart,r,l),h=Nd(r,l,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,i={opacity:1,x:h.x,y:h.y,width:a.width,height:a.height,caretX:s.x,caretY:s.y}}this._tooltipItems=o,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,u){const i=this.getCaretPosition(e,r,u);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(e,n,r){const{xAlign:u,yAlign:i}=this,{caretSize:o,cornerRadius:s}=r,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:h}=zr(s),{x:m,y}=e,{width:v,height:S}=n;let C,E,w,x,N,P;return i==="center"?(N=y+S/2,u==="left"?(C=m,E=C-o,x=N+o,P=N-o):(C=m+v,E=C+o,x=N-o,P=N+o),w=C):(u==="left"?E=m+Math.max(a,c)+o:u==="right"?E=m+v-Math.max(l,h)-o:E=this.caretX,i==="top"?(x=y,N=x-o,C=E-o,w=E+o):(x=y+S,N=x+o,C=E+o,w=E-o),P=x),{x1:C,x2:E,x3:w,y1:x,y2:N,y3:P}}drawTitle(e,n,r){const u=this.title,i=u.length;let o,s,a;if(i){const l=Ha(r.rtl,this.x,this.width);for(e.x=co(this,r.titleAlign,r),n.textAlign=l.textAlign(r.titleAlign),n.textBaseline="middle",o=Ke(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,a=0;a<i;++a)n.fillText(u[a],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+s,a+1===i&&(e.y+=r.titleMarginBottom-s)}}_drawColorBox(e,n,r,u,i){const o=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:a,boxWidth:l,boxPadding:c}=i,h=Ke(i.bodyFont),m=co(this,"left",i),y=u.x(m),v=a<h.lineHeight?(h.lineHeight-a)/2:0,S=n.y+v;if(i.usePointStyle){const C={radius:Math.min(l,a)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},E=u.leftForLtr(y,l)+l/2,w=S+a/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,sc(e,C,E,w),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,sc(e,C,E,w)}else{e.lineWidth=ne(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const C=u.leftForLtr(y,l-c),E=u.leftForLtr(u.xPlus(y,1),l-c-2),w=zr(o.borderRadius);Object.values(w).some(x=>x!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,as(e,{x:C,y:S,w:l,h:a,radius:w}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),as(e,{x:E,y:S+1,w:l-2,h:a-2,radius:w}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(C,S,l,a),e.strokeRect(C,S,l,a),e.fillStyle=o.backgroundColor,e.fillRect(E,S+1,l-2,a-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:u}=this,{bodySpacing:i,bodyAlign:o,displayColors:s,boxHeight:a,boxWidth:l,boxPadding:c}=r,h=Ke(r.bodyFont);let m=h.lineHeight,y=0;const v=Ha(r.rtl,this.x,this.width),S=function(f){n.fillText(f,v.x(e.x+y),e.y+m/2),e.y+=m+i},C=v.textAlign(o);let E,w,x,N,P,D,g;for(n.textAlign=o,n.textBaseline="middle",n.font=h.string,e.x=co(this,C,r),n.fillStyle=r.bodyColor,ue(this.beforeBody,S),y=s&&C!=="right"?o==="center"?l/2+c:l+2+c:0,N=0,D=u.length;N<D;++N){for(E=u[N],w=this.labelTextColors[N],n.fillStyle=w,ue(E.before,S),x=E.lines,s&&x.length&&(this._drawColorBox(n,e,N,v,r),m=Math.max(h.lineHeight,a)),P=0,g=x.length;P<g;++P)S(x[P]),m=h.lineHeight;ue(E.after,S)}y=0,m=h.lineHeight,ue(this.afterBody,S),e.y-=i}drawFooter(e,n,r){const u=this.footer,i=u.length;let o,s;if(i){const a=Ha(r.rtl,this.x,this.width);for(e.x=co(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=a.textAlign(r.footerAlign),n.textBaseline="middle",o=Ke(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,s=0;s<i;++s)n.fillText(u[s],a.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+r.footerSpacing}}drawBackground(e,n,r,u){const{xAlign:i,yAlign:o}=this,{x:s,y:a}=e,{width:l,height:c}=r,{topLeft:h,topRight:m,bottomLeft:y,bottomRight:v}=zr(u.cornerRadius);n.fillStyle=u.backgroundColor,n.strokeStyle=u.borderColor,n.lineWidth=u.borderWidth,n.beginPath(),n.moveTo(s+h,a),o==="top"&&this.drawCaret(e,n,r,u),n.lineTo(s+l-m,a),n.quadraticCurveTo(s+l,a,s+l,a+m),o==="center"&&i==="right"&&this.drawCaret(e,n,r,u),n.lineTo(s+l,a+c-v),n.quadraticCurveTo(s+l,a+c,s+l-v,a+c),o==="bottom"&&this.drawCaret(e,n,r,u),n.lineTo(s+y,a+c),n.quadraticCurveTo(s,a+c,s,a+c-y),o==="center"&&i==="left"&&this.drawCaret(e,n,r,u),n.lineTo(s,a+h),n.quadraticCurveTo(s,a,s+h,a),n.closePath(),n.fill(),u.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,u=r&&r.x,i=r&&r.y;if(u||i){const o=Co[e.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=Rd(this,e),a=Object.assign({},o,this._size),l=Md(n,e,a),c=Nd(e,a,l,n);(u._to!==c.x||i._to!==c.y)&&(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=s.width,this.height=s.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const u={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=ft(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(e.save(),e.globalAlpha=r,this.drawBackground(i,e,u,n),dw(e,n.textDirection),i.y+=o.top,this.drawTitle(i,e,n),this.drawBody(i,e,n),this.drawFooter(i,e,n),hw(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,u=e.map(({datasetIndex:s,index:a})=>{const l=this.chart.getDatasetMeta(s);if(!l)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:l.data[a],index:a}}),i=!ns(r,u),o=this._positionChanged(u,n);(i||o)&&(this._active=u,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const u=this.options,i=this._active||[],o=this._getActiveElements(e,i,n,r),s=this._positionChanged(o,e),a=n||!ns(o,i)||s;return a&&(this._active=o,(u.enabled||u.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),a}_getActiveElements(e,n,r,u){const i=this.options;if(e.type==="mouseout")return[];if(!u)return n;const o=this.chart.getElementsAtEventForMode(e,i.mode,i,r);return i.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:r,caretY:u,options:i}=this,o=Co[i.position].call(this,e,n);return o!==!1&&(r!==o.x||u!==o.y)}}NP.positioners=Co;const TP=(t,e,n,r)=>(typeof e=="string"?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function FP(t,e,n,r){const u=t.indexOf(e);if(u===-1)return TP(t,e,n,r);const i=t.lastIndexOf(e);return u!==i?n:u}const LP=(t,e)=>t===null?null:Ve(Math.round(t),0,e);class ds extends dr{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:u,label:i}of n)r[u]===i&&r.splice(u,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(ie(e))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===e?n:FP(r,e,ee(n,e),this._addedLabels),LP(n,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:u}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),n||(u=this.getLabels().length-1)),this.min=r,this.max=u}buildTicks(){const e=this.min,n=this.max,r=this.options.offset,u=[];let i=this.getLabels();i=e===0&&n===i.length-1?i:i.slice(e,n+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let o=e;o<=n;o++)u.push({value:o});return u}getLabelForValue(e){const n=this.getLabels();return e>=0&&e<n.length?n[e]:e}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}ds.id="category";ds.defaults={ticks:{callback:ds.prototype.getLabelForValue}};function BP(t,e){const n=[],{bounds:u,step:i,min:o,max:s,precision:a,count:l,maxTicks:c,maxDigits:h,includeBounds:m}=t,y=i||1,v=c-1,{min:S,max:C}=e,E=!ie(o),w=!ie(s),x=!ie(l),N=(C-S)/(h+1);let P=jf((C-S)/v/y)*y,D,g,f,p;if(P<1e-14&&!E&&!w)return[{value:S},{value:C}];p=Math.ceil(C/P)-Math.floor(S/P),p>v&&(P=jf(p*P/v/y)*y),ie(a)||(D=Math.pow(10,a),P=Math.ceil(P*D)/D),u==="ticks"?(g=Math.floor(S/P)*P,f=Math.ceil(C/P)*P):(g=S,f=C),E&&w&&i&&G2((s-o)/i,P/1e3)?(p=Math.round(Math.min((s-o)/P,c)),P=(s-o)/p,g=o,f=s):x?(g=E?o:g,f=w?s:f,p=l-1,P=(f-g)/p):(p=(f-g)/P,Hu(p,Math.round(p),P/1e3)?p=Math.round(p):p=Math.ceil(p));const d=Math.max(Vf(P),Vf(g));D=Math.pow(10,ie(a)?d:a),g=Math.round(g*D)/D,f=Math.round(f*D)/D;let b=0;for(E&&(m&&g!==o?(n.push({value:o}),g<o&&b++,Hu(Math.round((g+b*P)*D)/D,o,Ld(o,N,t))&&b++):g<o&&b++);b<p;++b)n.push({value:Math.round((g+b*P)*D)/D});return w&&m&&f!==s?n.length&&Hu(n[n.length-1].value,s,Ld(s,N,t))?n[n.length-1].value=s:n.push({value:s}):(!w||f===s)&&n.push({value:f}),n}function Ld(t,e,{horizontal:n,minRotation:r}){const u=Mt(r),i=(n?Math.sin(u):Math.cos(u))||.001,o=.75*e*(""+t).length;return Math.min(e/i,o)}class hs extends dr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return ie(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:u,max:i}=this;const o=a=>u=n?u:a,s=a=>i=r?i:a;if(e){const a=Kt(u),l=Kt(i);a<0&&l<0?s(0):a>0&&l>0&&o(0)}if(u===i){let a=1;(i>=Number.MAX_SAFE_INTEGER||u<=Number.MIN_SAFE_INTEGER)&&(a=Math.abs(i*.05)),s(i+a),e||o(u-a)}this.min=u,this.max=i}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,u;return r?(u=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,u>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${u} ticks. Limiting to 1000.`),u=1e3)):(u=this.computeTickLimit(),n=n||11),n&&(u=Math.min(n,u)),u}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const u={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,o=BP(u,i);return e.bounds==="ticks"&&dm(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const u=(r-n)/Math.max(e.length-1,1)/2;n-=u,r+=u}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return Ci(e,this.chart.options.locale,this.options.ticks.format)}}class F0 extends hs{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Te(e)?e:0,this.max=Te(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=Mt(this.options.ticks.minRotation),u=(e?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/u))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}F0.id="linear";F0.defaults={ticks:{callback:Vs.formatters.numeric}};function Bd(t){return t/Math.pow(10,Math.floor(Et(t)))===1}function IP(t,e){const n=Math.floor(Et(e.max)),r=Math.ceil(e.max/Math.pow(10,n)),u=[];let i=yt(t.min,Math.pow(10,Math.floor(Et(e.min)))),o=Math.floor(Et(i)),s=Math.floor(i/Math.pow(10,o)),a=o<0?Math.pow(10,Math.abs(o)):1;do u.push({value:i,major:Bd(i)}),++s,s===10&&(s=1,++o,a=o>=0?1:a),i=Math.round(s*Math.pow(10,o)*a)/a;while(o<n||o===n&&s<r);const l=yt(t.max,i);return u.push({value:l,major:Bd(i)}),u}class rg extends dr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const r=hs.prototype.parse.apply(this,[e,n]);if(r===0){this._zero=!0;return}return Te(r)&&r>0?r:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Te(e)?Math.max(0,e):null,this.max=Te(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let r=this.min,u=this.max;const i=a=>r=e?r:a,o=a=>u=n?u:a,s=(a,l)=>Math.pow(10,Math.floor(Et(a))+l);r===u&&(r<=0?(i(1),o(10)):(i(s(r,-1)),o(s(u,1)))),r<=0&&i(s(u,-1)),u<=0&&o(s(r,1)),this._zero&&this.min!==this._suggestedMin&&r===s(this.min,0)&&i(s(r,-1)),this.min=r,this.max=u}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},r=IP(n,this);return e.bounds==="ticks"&&dm(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return e===void 0?"0":Ci(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Et(e),this._valueRange=Et(this.max)-Et(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Et(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}rg.id="logarithmic";rg.defaults={ticks:{callback:Vs.formatters.logarithmic,major:{enabled:!0}}};function hc(t){const e=t.ticks;if(e.display&&t.display){const n=ft(e.backdropPadding);return ee(e.font&&e.font.size,J.font.size)+n.height}return 0}function zP(t,e,n){return n=fe(n)?n:[n],{w:Ob(t,e.string,n),h:n.length*e.lineHeight}}function Id(t,e,n,r,u){return t===r||t===u?{start:e-n/2,end:e+n/2}:t<r||t>u?{start:e-n,end:e}:{start:e,end:e+n}}function jP(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],u=[],i=t._pointLabels.length,o=t.options.pointLabels,s=o.centerPointLabels?pe/i:0;for(let a=0;a<i;a++){const l=o.setContext(t.getPointLabelContext(a));u[a]=l.padding;const c=t.getPointPosition(a,t.drawingArea+u[a],s),h=Ke(l.font),m=zP(t.ctx,h,t._pointLabels[a]);r[a]=m;const y=At(t.getIndexAngle(a)+s),v=Math.round(v0(y)),S=Id(v,c.x,m.w,0,180),C=Id(v,c.y,m.h,90,270);VP(n,e,y,S,C)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=UP(t,r,u)}function VP(t,e,n,r,u){const i=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let s=0,a=0;r.start<e.l?(s=(e.l-r.start)/i,t.l=Math.min(t.l,e.l-s)):r.end>e.r&&(s=(r.end-e.r)/i,t.r=Math.max(t.r,e.r+s)),u.start<e.t?(a=(e.t-u.start)/o,t.t=Math.min(t.t,e.t-a)):u.end>e.b&&(a=(u.end-e.b)/o,t.b=Math.max(t.b,e.b+a))}function UP(t,e,n){const r=[],u=t._pointLabels.length,i=t.options,o=hc(i)/2,s=t.drawingArea,a=i.pointLabels.centerPointLabels?pe/u:0;for(let l=0;l<u;l++){const c=t.getPointPosition(l,s+o+n[l],a),h=Math.round(v0(At(c.angle+be))),m=e[l],y=$P(c.y,m.h,h),v=WP(h),S=HP(c.x,m.w,v);r.push({x:c.x,y,textAlign:v,left:S,top:y,right:S+m.w,bottom:y+m.h})}return r}function WP(t){return t===0||t===180?"center":t<180?"left":"right"}function HP(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function $P(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function KP(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let u=e-1;u>=0;u--){const i=r.setContext(t.getPointLabelContext(u)),o=Ke(i.font),{x:s,y:a,textAlign:l,left:c,top:h,right:m,bottom:y}=t._pointLabelItems[u],{backdropColor:v}=i;if(!ie(v)){const S=zr(i.borderRadius),C=ft(i.backdropPadding);n.fillStyle=v;const E=c-C.left,w=h-C.top,x=m-c+C.width,N=y-h+C.height;Object.values(S).some(P=>P!==0)?(n.beginPath(),as(n,{x:E,y:w,w:x,h:N,radius:S}),n.fill()):n.fillRect(E,w,x,N)}gi(n,t._pointLabels[u],s,a+o.lineHeight/2,o,{color:i.color,textAlign:l,textBaseline:"middle"})}}function ug(t,e,n,r){const{ctx:u}=t;if(n)u.arc(t.xCenter,t.yCenter,e,0,ae);else{let i=t.getPointPosition(0,e);u.moveTo(i.x,i.y);for(let o=1;o<r;o++)i=t.getPointPosition(o,e),u.lineTo(i.x,i.y)}}function YP(t,e,n,r){const u=t.ctx,i=e.circular,{color:o,lineWidth:s}=e;!i&&!r||!o||!s||n<0||(u.save(),u.strokeStyle=o,u.lineWidth=s,u.setLineDash(e.borderDash),u.lineDashOffset=e.borderDashOffset,u.beginPath(),ug(t,n,i,r),u.closePath(),u.stroke(),u.restore())}function qP(t,e,n){return Vn(t,{label:n,index:e,type:"pointLabel"})}class Ws extends hs{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=ft(hc(this.options)/2),n=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=Te(e)&&!isNaN(e)?e:0,this.max=Te(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/hc(this.options))}generateTickLabels(e){hs.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,r)=>{const u=_e(this.options.pointLabels.callback,[n,r],this);return u||u===0?u:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?jP(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,r,u){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((r-u)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,r,u))}getIndexAngle(e){const n=ae/(this._pointLabels.length||1),r=this.options.startAngle||0;return At(e*n+Mt(r))}getDistanceFromCenterForValue(e){if(ie(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(ie(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const r=n[e];return qP(this.getContext(),e,r)}}getPointPosition(e,n,r=0){const u=this.getIndexAngle(e)-be+r;return{x:Math.cos(u)*n+this.xCenter,y:Math.sin(u)*n+this.yCenter,angle:u}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:r,right:u,bottom:i}=this._pointLabelItems[e];return{left:n,top:r,right:u,bottom:i}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),ug(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:r,grid:u}=n,i=this._pointLabels.length;let o,s,a;if(n.pointLabels.display&&KP(this,i),u.display&&this.ticks.forEach((l,c)=>{if(c!==0){s=this.getDistanceFromCenterForValue(l.value);const h=u.setContext(this.getContext(c-1));YP(this,h,s,i)}}),r.display){for(e.save(),o=i-1;o>=0;o--){const l=r.setContext(this.getPointLabelContext(o)),{color:c,lineWidth:h}=l;!h||!c||(e.lineWidth=h,e.strokeStyle=c,e.setLineDash(l.borderDash),e.lineDashOffset=l.borderDashOffset,s=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),a=this.getPointPosition(o,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(a.x,a.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const u=this.getIndexAngle(0);let i,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(u),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((s,a)=>{if(a===0&&!n.reverse)return;const l=r.setContext(this.getContext(a)),c=Ke(l.font);if(i=this.getDistanceFromCenterForValue(this.ticks[a].value),l.showLabelBackdrop){e.font=c.string,o=e.measureText(s.label).width,e.fillStyle=l.backdropColor;const h=ft(l.backdropPadding);e.fillRect(-o/2-h.left,-i-c.size/2-h.top,o+h.width,c.size+h.height)}gi(e,s.label,0,-i,c,{color:l.color})}),e.restore()}drawTitle(){}}Ws.id="radialLinear";Ws.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Vs.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}};Ws.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};Ws.descriptors={angleLines:{_fallback:"grid"}};const Hs={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}},Je=Object.keys(Hs);function XP(t,e){return t-e}function zd(t,e){if(ie(e))return null;const n=t._adapter,{parser:r,round:u,isoWeekday:i}=t._parseOpts;let o=e;return typeof r=="function"&&(o=r(o)),Te(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(u&&(o=u==="week"&&(qr(i)||i===!0)?n.startOf(o,"isoWeek",i):n.startOf(o,u)),+o)}function jd(t,e,n,r){const u=Je.length;for(let i=Je.indexOf(t);i<u-1;++i){const o=Hs[Je[i]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(s*o.size))<=r)return Je[i]}return Je[u-1]}function GP(t,e,n,r,u){for(let i=Je.length-1;i>=Je.indexOf(n);i--){const o=Je[i];if(Hs[o].common&&t._adapter.diff(u,r,o)>=e-1)return o}return Je[n?Je.indexOf(n):0]}function QP(t){for(let e=Je.indexOf(t)+1,n=Je.length;e<n;++e)if(Hs[Je[e]].common)return Je[e]}function Vd(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:u}=_0(n,e),i=n[r]>=e?n[r]:n[u];t[i]=!0}}function ZP(t,e,n,r){const u=t._adapter,i=+u.startOf(e[0].value,r),o=e[e.length-1].value;let s,a;for(s=i;s<=o;s=+u.add(s,1,r))a=n[s],a>=0&&(e[a].major=!0);return e}function Ud(t,e,n){const r=[],u={},i=e.length;let o,s;for(o=0;o<i;++o)s=e[o],u[s]=o,r.push({value:s,major:!1});return i===0||!n?r:ZP(t,r,u,n)}class $s extends dr{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n){const r=e.time||(e.time={}),u=this._adapter=new px._date(e.adapters.date);u.init(n),Wu(r.displayFormats,u.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:zd(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:u,max:i,minDefined:o,maxDefined:s}=this.getUserBounds();function a(l){!o&&!isNaN(l.min)&&(u=Math.min(u,l.min)),!s&&!isNaN(l.max)&&(i=Math.max(i,l.max))}(!o||!s)&&(a(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&a(this.getMinMax(!1))),u=Te(u)&&!isNaN(u)?u:+n.startOf(Date.now(),r),i=Te(i)&&!isNaN(i)?i:+n.endOf(Date.now(),r)+1,this.min=Math.min(u,i-1),this.max=Math.max(u+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,u=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&u.length&&(this.min=this._userMin||u[0],this.max=this._userMax||u[u.length-1]);const i=this.min,o=this.max,s=eb(u,i,o);return this._unit=n.unit||(r.autoSkip?jd(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):GP(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:QP(this._unit),this.initOffsets(u),e.reverse&&s.reverse(),Ud(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e){let n=0,r=0,u,i;this.options.offset&&e.length&&(u=this.getDecimalForValue(e[0]),e.length===1?n=1-u:n=(this.getDecimalForValue(e[1])-u)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?r=i:r=(i-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=Ve(n,0,o),r=Ve(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,u=this.options,i=u.time,o=i.unit||jd(i.minUnit,n,r,this._getLabelCapacity(n)),s=ee(i.stepSize,1),a=o==="week"?i.isoWeekday:!1,l=qr(a)||a===!0,c={};let h=n,m,y;if(l&&(h=+e.startOf(h,"isoWeek",a)),h=+e.startOf(h,l?"day":o),e.diff(r,n,o)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+o);const v=u.ticks.source==="data"&&this.getDataTimestamps();for(m=h,y=0;m<r;m=+e.add(m,s,o),y++)Vd(c,m,v);return(m===r||u.bounds==="ticks"||y===1)&&Vd(c,m,v),Object.keys(c).sort((S,C)=>S-C).map(S=>+S)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}_tickFormatFunction(e,n,r,u){const i=this.options,o=i.time.displayFormats,s=this._unit,a=this._majorUnit,l=s&&o[s],c=a&&o[a],h=r[n],m=a&&c&&h&&h.major,y=this._adapter.format(e,u||(m?c:l)),v=i.ticks.callback;return v?_e(v,[y,n,r],this):y}generateTickLabels(e){let n,r,u;for(n=0,r=e.length;n<r;++n)u=e[n],u.label=this._tickFormatFunction(u.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,u=Mt(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(u),o=Math.sin(u),s=this._resolveTickFontOptions(0).size;return{w:r*i+s*o,h:r*o+s*i}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,u=r[n.unit]||r.millisecond,i=this._tickFormatFunction(e,0,Ud(this,[e],this._majorUnit),u),o=this._getLabelSize(i),s=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return s>0?s:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const u=this.getMatchingVisibleMetas();if(this._normalized&&u.length)return this._cache.data=u[0].controller.getAllParsedValues(this);for(n=0,r=u.length;n<r;++n)e=e.concat(u[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const u=this.getLabels();for(n=0,r=u.length;n<r;++n)e.push(zd(this,u[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return mm(e.sort(XP))}}$s.id="time";$s.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};function fo(t,e,n){let r=0,u=t.length-1,i,o,s,a;n?(e>=t[r].pos&&e<=t[u].pos&&({lo:r,hi:u}=Zn(t,"pos",e)),{pos:i,time:s}=t[r],{pos:o,time:a}=t[u]):(e>=t[r].time&&e<=t[u].time&&({lo:r,hi:u}=Zn(t,"time",e)),{time:i,pos:s}=t[r],{time:o,pos:a}=t[u]);const l=o-i;return l?s+(a-s)*(e-i)/l:s}class ig extends $s{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=fo(n,this.min),this._tableRange=fo(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,u=[],i=[];let o,s,a,l,c;for(o=0,s=e.length;o<s;++o)l=e[o],l>=n&&l<=r&&u.push(l);if(u.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,s=u.length;o<s;++o)c=u[o+1],a=u[o-1],l=u[o],Math.round((c+a)/2)!==l&&i.push({time:l,pos:o/(s-1)});return i}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(fo(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return fo(this._table,r*this._tableRange+this._minPos,!0)}}ig.id="timeseries";ig.defaults=$s.defaults;const og="label";function Wd(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function JP(t,e){Object.assign(t.options,e)}function sg(t,e){t.labels=e}function ag(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:og;const r=[];t.datasets=e.map(u=>{const i=t.datasets.find(o=>o[n]===u[n]);return!i||!u.data||r.includes(i)?{...u}:(r.push(i),Object.assign(i,u),i)})}function eS(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:og;const n={labels:[],datasets:[]};return sg(n,t.labels),ag(n,t.datasets,e),n}function tS(t,e){let{height:n=150,width:r=300,redraw:u=!1,datasetIdKey:i,type:o,data:s,options:a,plugins:l=[],fallbackContent:c,updateMode:h,...m}=t;const y=j.exports.useRef(null),v=j.exports.useRef(),S=()=>{!y.current||(v.current=new Ri(y.current,{type:o,data:eS(s,i),options:a&&{...a},plugins:l}),Wd(e,v.current))},C=()=>{Wd(e,null),v.current&&(v.current.destroy(),v.current=null)};return j.exports.useEffect(()=>{!u&&v.current&&a&&JP(v.current,a)},[u,a]),j.exports.useEffect(()=>{!u&&v.current&&sg(v.current.config.data,s.labels)},[u,s.labels]),j.exports.useEffect(()=>{!u&&v.current&&s.datasets&&ag(v.current.config.data,s.datasets,i)},[u,s.datasets]),j.exports.useEffect(()=>{!v.current||(u?(C(),setTimeout(S)):v.current.update(h))},[u,a,s.labels,s.datasets,h]),j.exports.useEffect(()=>{!v.current||(C(),setTimeout(S))},[o]),j.exports.useEffect(()=>(S(),()=>C()),[]),_("canvas",{...Object.assign({ref:y,role:"img",height:n,width:r},m),children:c})}const nS=j.exports.forwardRef(tS);function rS(t,e){return Ri.register(e),j.exports.forwardRef((n,r)=>_(nS,{...Object.assign({},n,{ref:r,type:t})}))}const uS=rS("line",js);Ri.register(Mi,Us,F0,SP,ds);const iS=({activeRow:t})=>{const[e,n]=j.exports.useState();j.exports.useEffect(()=>{new qe("http://tmex.gov.tm:8765/api/categories/8/tradings",e,n).get()},[]);let r;const u={labels:e?e.data[t].all_prices.map(o=>o.date.split(" ")[0].replace("-",".").replace("-",".")):[""],datasets:[{data:e?e.data[t].all_prices.map((o,s)=>s<=9?o.price:""):[""],borderColor:"#4b8dff",pointBorderWidth:2,pointBackgroundColor:"#4b8dff",tension:.1,animation:{onComplete:()=>{r=!0},delay:o=>{let s=0;return o.type==="data"&&o.mode==="default"&&!r&&(s=o.dataIndex*100+o.datasetIndex*100),s}}}]};return _("div",{className:"line-chart",children:_(uS,{data:u,options:{responsive:!0,radius:5,hitRadius:30,hoverRadius:7,scales:{x:{grid:{display:!1}},y:{ticks:{callback:o=>o},grid:{borderDash:[10]}}}}})})},oS=()=>{const[t,e]=j.exports.useState(0),[n,r]=j.exports.useState(1),[u,i]=j.exports.useState();return j.exports.useEffect(()=>{new qe("http://tmex.gov.tm:8765/api/categories",u,i).get()},[]),_("section",{className:"chart",children:_("div",{className:"container",children:z("div",{className:"chart-wrapper",children:[_("div",{className:"chart-tabs",children:u?u.data.map((o,s)=>s<=2?_("div",{className:`${n===s?"active":""} tab`,onClick:()=>r(s),children:_("span",{children:o.title})},o.id):null):null}),z("div",{className:"chart-data",children:[_(z2,{activeRow:t,setActiveRow:e}),_("div",{className:"line-chart-wrapper",children:_(iS,{activeRow:t})})]})]})})})},sS=()=>{const[t,e]=j.exports.useState(),[n,r]=j.exports.useState(),[u,i]=j.exports.useState();return j.exports.useEffect(()=>{new qe("http://tmex.gov.tm:8765/api/video",u,i).get(),new qe("http://tmex.gov.tm:8765/api/news",n,r).get({"X-Localization":"en"}),new qe("http://tmex.gov.tm:8765/api/documents",t,e).get({"X-Localization":"en"})},[]),z("main",{className:"home-main",children:[_(X1,{}),_("section",{className:"about",children:_("div",{className:"container",children:z("div",{className:"about-wrapper",children:[z("div",{className:"about-left",children:[_(lt,{title:"\u0443\u0441\u043B\u0443\u0433\u0438 \u0431\u0438\u0440\u0436\u044B"}),z("div",{className:"about-text-wrapper",children:[_("p",{className:"about-text",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Eu nisl, rhoncus aenean dignissim velit vestibulum cras ultrices etiam. Iaculis vitae imperdiet eget fringilla a egestas purus. Iaculis vitae imperdiet eget fringilla a egestas purus."}),_("p",{className:"about-text",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Eu nisl, rhoncus aenean dignissim velit vestibulum cras ultrices etiam. Iaculis vitae imperdiet eget fringilla a egestas purus. Iaculis vitae imperdiet eget fringilla a egestas purus."})]}),z("div",{className:"about-link-wrapper",children:[z(Q,{to:"/",className:"about-link",children:[_("img",{src:Cu,alt:"link",className:"about-link-text"}),_("h3",{className:"about-link-text",children:"\u041F\u043E\u0434\u0430\u0442\u044C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u043E\u043D\u043B\u0430\u0439\u043D"})]}),z(Q,{to:"/",className:"about-link",children:[_("img",{src:Cu,alt:"link",className:"about-link-text"}),_("h3",{className:"about-link-text",children:"\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u0441\u0442\u0430\u0442\u0443\u0441 \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0438\u044F \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u043E\u0432"})]}),z(Q,{to:"/",className:"about-link",children:[_("img",{src:Cu,alt:"link",className:"about-link-text"}),_("h3",{className:"about-link-text",children:"\u0423\u0437\u043D\u0430\u0442\u044C \u0438\u043C\u043F\u043E\u0440\u0442\u043D\u044B\u0435 \u0446\u0435\u043D\u044B \u043C\u043E\u0436\u043D\u043E \u0437\u0434\u0435\u0441\u044C"})]}),z(Q,{to:"/",className:"about-link",children:[_("img",{src:Cu,alt:"link",className:"about-link-text"}),_("h3",{className:"about-link-text",children:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0442\u0430\u0440\u0438\u0444\u044B \u0438 \u0441\u0431\u043E\u0440\u044B \u0434\u043B\u044F \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u043E\u0432 \u0431\u0438\u0440\u0436\u044B"})]})]})]}),_("div",{className:"about-right",children:u?_(U3,{videoUrl:u.data.video}):null})]})})}),_(oS,{}),_("section",{className:"news",children:_("div",{className:"container",children:z("div",{className:"news-wrapper",children:[_(lt,{title:"\u041D\u043E\u0432\u043E\u0441\u0442\u0438"}),_("div",{className:"news-post-wrapper",children:n?n.data.map((o,s)=>s<=2?_(p3,{title:o.title,shortDes:o.short_description,date:o.date,image:o.image},o.id):null):""})]})})}),_("section",{className:"documents",children:_("div",{className:"container",children:z("div",{className:"documents-wrapper",children:[_(lt,{title:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B \u0434\u043B\u044F \u0441\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u044F"}),_("div",{className:"documents-links-wrapper",children:t?t.data.map(o=>_(Q1,{title:o.title,link:o.file},o.id)):""})]})})})]})},aS=()=>(j.exports.useEffect(()=>{window.scrollTo(0,0)},[]),_("main",{children:_("div",{className:"container",children:z("div",{className:"sub-page-wrapper",children:[_(lt,{title:"\u041E \u0431\u0438\u0440\u0436\u0435"}),z("div",{className:"sub-page-content-wrapper",children:[z("div",{className:"sub-page-text-wrapper",children:[_("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."}),_("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."})]}),z("div",{className:"sub-page-list-wrapper",children:[_("h2",{className:"sub-page-title",children:"\u0417\u0430\u0434\u0430\u0447\u0438 \u0438 \u0446\u0435\u043B\u0438 \u0431\u0438\u0440\u0436\u0438"}),z("div",{className:"sub-page-list",children:[z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"1"}),_("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"})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"2"}),_("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"})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"3"}),_("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."})]})]})]}),z("div",{className:"sub-page-text-wrapper",children:[_("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."}),_("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."}),_("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."})]}),z("div",{className:"sub-page-title-text",children:[_("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"}),_("div",{className:"sub-page-text-wrapper",children:_("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."})})]}),z("div",{className:"sub-page-list-wrapper",children:[_("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:"}),z("div",{className:"sub-page-list",children:[z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"1"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"2"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"3"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"4"}),_("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."})]})]})]}),z("div",{className:"sub-page-text-wrapper",children:[_("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."}),_("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."})]})]})]})})})),lS=()=>(j.exports.useEffect(()=>{window.scrollTo(0,0)},[]),_("main",{children:_("div",{className:"container",children:z("div",{className:"sub-page-wrapper",children:[_(lt,{title:"\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u044B\u0439 \u043C\u043E\u043D\u0438\u0442\u043E\u0440\u0438\u043D\u0433"}),z("div",{className:"sub-page-content-wrapper",children:[z("div",{className:"sub-page-text-wrapper",children:[_("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."}),_("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."})]}),z("div",{className:"sub-page-title-text",children:[_("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"}),z("div",{className:"sub-page-text-wrapper",children:[_("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."}),_("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."})]})]})]})]})})})),cS=()=>(j.exports.useEffect(()=>{window.scrollTo(0,0)},[]),_("main",{children:_("div",{className:"container",children:z("div",{className:"sub-page-wrapper",children:[_(lt,{title:"\u041D\u043E\u0440\u043C\u0430\u0442\u0438\u0432\u043D\u0430\u044F \u0431\u0430\u0437\u0430"}),z("div",{className:"sub-page-content-wrapper",children:[_("div",{className:"sub-page-text-wrapper",children:_("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."})}),z("div",{className:"sub-page-list-wrapper",children:[_("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:"}),z("div",{className:"sub-page-list",children:[z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"1"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"2"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"3"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"4"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"5"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"6"}),_("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."})]})]})]}),z("div",{className:"sub-page-text-wrapper",children:[_("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"}),_("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."})]})]})]})})})),fS=()=>(j.exports.useEffect(()=>{window.scrollTo(0,0)},[]),_("main",{children:_("div",{className:"container",children:z("div",{className:"sub-page-wrapper",children:[_(lt,{title:"\u041F\u0440\u0430\u0432\u0438\u043B\u0430 \u0431\u0438\u0440\u0436\u0435\u0432\u043E\u0439 \u0442\u043E\u0440\u0433\u043E\u0432\u043B\u0438"}),z("div",{className:"sub-page-content-wrapper",children:[_("div",{className:"sub-page-text-wrapper",children:_("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."})}),z("div",{className:"sub-page-list-wrapper",children:[_("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:"}),z("div",{className:"sub-page-list",children:[z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"1"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"2"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"3"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"4"}),_("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."})]})]})]}),z("div",{className:"sub-page-text-wrapper",children:[_("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."}),_("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."})]}),z("div",{className:"sub-page-list-wrapper",children:[_("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"}),z("div",{className:"sub-page-list",children:[z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"1"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"2"}),z("div",{className:"sub-page-list-item-content",children:[_("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:"}),z("ul",{className:"sub-page-list-item-list",children:[_("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"}),_("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;"}),_("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)"}),_("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;"}),_("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;"}),_("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);"}),_("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;"}),_("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.'})]})]})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"3"}),z("div",{className:"sub-page-list-item-content",children:[_("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:"}),_("h3",{className:"sub-page-list-item-text",children:"\u0414\u043B\u044F \u043D\u0435\u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u043E\u0432:"}),z("ul",{className:"sub-page-list-item-list",children:[_("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."}),_("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."})]}),_("h3",{className:"sub-page-list-item-text",children:"\u0414\u043B\u044F \u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u043E\u0432:"}),_("ul",{className:"sub-page-list-item-list",children:_("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."})})]})]})]})]}),z("div",{className:"sub-page-list-wrapper",children:[_("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: "}),z("div",{className:"sub-page-list",children:[z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"1"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"2"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"3"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"4"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"5"}),_("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."})]})]})]})]})]})})})),dS=()=>(j.exports.useEffect(()=>{window.scrollTo(0,0)},[]),_("main",{children:_("div",{className:"container",children:z("div",{className:"sub-page-wrapper",children:[_(lt,{title:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u043E\u0432"}),_("div",{className:"sub-page-content-wrapper",children:z("div",{className:"sub-page-list-wrapper",children:[_("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:"}),z("div",{className:"sub-page-list",children:[z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"1"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"2"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"3"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"4"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"5"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"6"}),_("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."})]})]})]})}),_("div",{className:"sub-page-text-wrapper",children:_("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."})}),_("div",{className:"sub-page-content-wrapper",children:z("div",{className:"sub-page-list-wrapper",children:[_("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:"}),z("div",{className:"sub-page-list",children:[z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"1"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"2"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"3"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"4"}),_("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."})]}),z("div",{className:"sub-page-list-item",children:[_("div",{className:"sub-page-list-num",children:"5"}),_("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."})]})]})]})})]})})}));var lg={};function hS(t){if(!t||typeof window>"u")return;const e=document.createElement("style");return e.setAttribute("type","text/css"),e.innerHTML=t,document.head.appendChild(e),t}Object.defineProperty(lg,"__esModule",{value:!0});var Gt=j.exports;function pS(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var wu=pS(Gt);/*! *****************************************************************************
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 ps=function(){return ps=Object.assign||function(e){for(var n,r=1,u=arguments.length;r<u;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ps.apply(this,arguments)};hS(`.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 mS=function(t){var e,n,r,u,i=t.style,o=i===void 0?{}:i,s=t.className,a=s===void 0?"":s,l=t.play,c=l===void 0?!0:l,h=t.pauseOnHover,m=h===void 0?!1:h,y=t.pauseOnClick,v=y===void 0?!1:y,S=t.direction,C=S===void 0?"left":S,E=t.speed,w=E===void 0?20:E,x=t.delay,N=x===void 0?0:x,P=t.loop,D=P===void 0?0:P,g=t.gradient,f=g===void 0?!0:g,p=t.gradientColor,d=p===void 0?[255,255,255]:p,b=t.gradientWidth,O=b===void 0?200:b,L=t.onFinish,k=t.onCycleComplete,T=t.children,B=Gt.useState(0),F=B[0],R=B[1],M=Gt.useState(0),A=M[0],I=M[1],V=Gt.useState(!1),W=V[0],Y=V[1],q=Gt.useRef(null),G=Gt.useRef(null);Gt.useEffect(function(){if(!!W){var Se=function(){G.current&&q.current&&(R(q.current.getBoundingClientRect().width),I(G.current.getBoundingClientRect().width))};return Se(),window.addEventListener("resize",Se),function(){window.removeEventListener("resize",Se)}}},[W]),Gt.useEffect(function(){Y(!0)},[]);var X="rgba("+d[0]+", "+d[1]+", "+d[2],we=A<F?F/w:A/w;return wu.default.createElement(Gt.Fragment,null,W?wu.default.createElement("div",{ref:q,style:ps(ps({},o),(e={},e["--pause-on-hover"]=!c||m?"paused":"running",e["--pause-on-click"]=!c||m&&!v||v?"paused":"running",e)),className:a+" marquee-container"},f&&wu.default.createElement("div",{style:(n={},n["--gradient-color"]=X+", 1), "+X+", 0)",n["--gradient-width"]=typeof O=="number"?O+"px":O,n),className:"overlay"}),wu.default.createElement("div",{ref:G,style:(r={},r["--play"]=c?"running":"paused",r["--direction"]=C==="left"?"normal":"reverse",r["--duration"]=we+"s",r["--delay"]=N+"s",r["--iteration-count"]=D?""+D:"infinite",r),className:"marquee",onAnimationIteration:k,onAnimationEnd:L},T),wu.default.createElement("div",{style:(u={},u["--play"]=c?"running":"paused",u["--direction"]=C==="left"?"normal":"reverse",u["--duration"]=we+"s",u["--delay"]=N+"s",u["--iteration-count"]=D?""+D:"infinite",u),className:"marquee","aria-hidden":"true"},T)):null)},gS=lg.default=mS;const yS=({title:t,change:e,price:n,oldPrice:r,currency:u})=>z("div",{className:"ticker-block",children:[_("h3",{className:"ticker-title",children:t}),z("div",{className:"ticker-content",children:[z("div",{className:"ticker-price",children:[n," ",u]}),z("div",{className:"ticker-status",children:[_("div",{className:"ticker-arrow",children:_("img",{src:n>=r?am:lm})}),_("span",{className:`ticker-status-title ${n>=r?"green":"red"}`,children:e})]})]})]}),vS=40,_S=()=>{const[t,e]=j.exports.useState();return j.exports.useEffect(()=>{new qe("http://tmex.gov.tm:8765/api/tradings",t,e).get()},[]),_(gS,{className:"ticker",gradient:!1,speed:vS,children:_("div",{className:"ticker-wrapper",children:t?t.data.map(n=>_(yS,{title:n.title,change:n.price_change,price:n.price,oldPrice:n.old_price,currency:n.currency},n.id)):""})})},Hd="/assets/phone.827f98ca.svg",ES="/assets/fax.75231e49.svg",bS="/assets/mail.ecbe6887.svg",wS=({title:t,firstPosition:e,secondPosition:n,firstPhone:r,secondPhone:u,firstFax:i,firstMail:o})=>z("div",{className:"contacts-card",children:[_("h2",{className:"contacts-card-title",children:t}),z("div",{className:"contacts-card-pos-wrapper",children:[e&&r?z("div",{className:"contacts-card-pos",children:[_("h3",{className:"contacts-card-pos-title",children:e}),z("div",{className:"contacts-card-pos-contact",children:[_("div",{className:"contacts-card-pos-contact-icon",children:_("img",{src:Hd,alt:"phone"})}),_("h4",{className:"contacts-card-pos-contact-title",children:r})]}),i?z("div",{className:"contacts-card-pos-contact",children:[_("div",{className:"contacts-card-pos-contact-icon",children:_("img",{src:ES,alt:"fax"})}),_("h4",{className:"contacts-card-pos-contact-title",children:r})]}):null,o?z("div",{className:"contacts-card-pos-contact",children:[_("div",{className:"contacts-card-pos-contact-icon",children:_("img",{src:bS,alt:"mail"})}),_("h4",{className:"contacts-card-pos-contact-title",children:o})]}):null]}):null,n&&u?z("div",{className:"contacts-card-pos",children:[_("h3",{className:"contacts-card-pos-title",children:n}),z("div",{className:"contacts-card-pos-contact",children:[_("div",{className:"contacts-card-pos-contact-icon",children:_("img",{src:Hd,alt:"phone"})}),_("h4",{className:"contacts-card-pos-contact-title",children:u})]})]}):null]})]}),xS=()=>{const[t,e]=j.exports.useState();return j.exports.useEffect(()=>{new qe("http://tmex.gov.tm:8765/api/contacts",t,e).get(),window.scrollTo(0,0)},[]),_("main",{children:_("div",{className:"container",children:z("div",{className:"sub-page-wrapper",children:[_(lt,{title:"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u044B"}),_("div",{className:"contacts-wrapper",children:t?t.data.map(n=>{var r,u,i,o;return _(wS,{title:n.name,firstPosition:n.contacts[0].title,firstPhone:n.contacts[0].phone,firstFax:n.contacts[0].fax,firstMail:n.contacts[0].mail,secondPosition:(r=n.contacts[1])!=null&&r.title?(u=n.contacts[1])==null?void 0:u.title:null,secondPhone:(i=n.contacts[1])!=null&&i.phone?(o=n.contacts[1])==null?void 0:o.phone:null},n.id)}):null})]})})})},PS=()=>{const[t,e]=j.exports.useState();return j.exports.useEffect(()=>{new qe("http://tmex.gov.tm:8765/api/news",t,e).get()},[]),_("main",{children:_("div",{className:"container",children:z("div",{className:"sub-page-wrapper",children:[_(lt,{title:"\u041D\u043E\u0432\u043E\u0441\u0442\u0438"}),_("div",{className:"news-page-wrapper",children:t?t.data.map(n=>_(p3,{title:n.title,shortDes:n.short_description,description:n.description,date:n.date,image:n.image},n.id)):null})]})})})},SS="/assets/post-img.3023eadf.png",xu=()=>z(Q,{to:"/",className:"latest-new",children:[_("h3",{className:"latest-new-date",children:"18.08.2022"}),_("h2",{className:"latest-new-title",children:"\u041F\u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442 \u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D\u0430 \u043F\u0440\u0438\u043D\u044F\u043B \u043A\u0430\u0434\u0440\u043E\u0432\u043E\u0435 \u0440\u0435\u0448\u0435\u043D\u0438\u0435 \u0432 \u0441\u043E\u0441\u0442\u0430\u0432\u0435 \u043E\u0440\u0433\u0430\u043D\u043E\u0432 \u043F\u0440\u043E\u043A\u0443\u0440\u0430\u0442\u0443\u0440\u044B"})]}),DS=()=>{const[t,e]=j.exports.useState();return j.exports.useEffect(()=>{new qe("http://tmex.gov.tm:8765/api/news",t,e).get({"X-localization":"en"})},[]),_("div",{className:"container",children:z("div",{className:"post-page-wrapper",children:[_("main",{children:z("div",{className:"post-page-main-wrapper",children:[z("div",{className:"post-page-header",children:[_("h1",{className:"post-page-title",children:"T\xFCrki\xFDeden we Owganystandan gelen teleke\xE7iler 4,5 m\xFC\u0148 tonnadan gowrak STG satyn aldylar"}),_("h2",{className:"post-page-main-date",children:"18.08.2022"})]}),_("div",{className:"post-page-img",children:_("img",{src:SS,alt:"img"})}),z("div",{className:"post-page-text",children:[_("p",{className:"post-page-text-item",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",{className:"post-page-text-item",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",{className:"post-page-text-item",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."})]})]})}),_("aside",{children:z("div",{className:"post-page-latest-wrapper",children:[_("h2",{className:"post-page-latest-title",children:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 \u043D\u043E\u0432\u043E\u0441\u0442\u0438"}),z("div",{className:"post-page-latest-news",children:[t?t.data.map((n,r)=>{r<=6&&n.title}):null,_(xu,{}),_(xu,{}),_(xu,{}),_(xu,{})]})]})})]})})},$d=({text:t,active:e,onClick:n})=>_("div",{className:`tab-dark ${e?"active-tab":null}`,onClick:n,children:_("span",{children:t})}),Kd=({title:t,price:e})=>z("div",{className:"tarif-service-item",children:[_("h2",{className:"tarif-service-text",children:t}),z("h2",{className:"tarif-service-price",children:[e," "]})]}),OS=()=>{const[t,e]=j.exports.useState(1),[n,r]=j.exports.useState();return j.exports.useEffect(()=>{new qe("http://tmex.gov.tm:8765/api/tariffs",n,r).get({"X-Localization":"en"})},[]),_("main",{children:_("div",{className:"container",children:z("div",{className:"sub-page-wrapper",children:[_(lt,{title:"\u0422\u0430\u0440\u0438\u0444\u044B \u0438 \u0441\u0431\u043E\u0440\u044B"}),_("div",{className:"tarif-wrapper",children:z("div",{className:"tarif-wrapper-top",children:[_($d,{text:"\u0414\u043B\u044F \u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u043E\u0432",active:t===1,onClick:()=>e(1)}),_($d,{text:"\u0414\u043B\u044F \u043D\u0435 \u0440\u0435\u0437\u0438\u0434\u0435\u043D\u0442\u043E\u0432",active:t===2,onClick:()=>e(2)})]})}),t===1?_("div",{className:"tarif-table",children:n?n.data.map(u=>u.type==="resident"?_(Kd,{title:u.title,price:u.prices.map(i=>i.price+" ")}):null):null}):null,t===2?_("div",{className:"tarif-table",children:n?n.data.map(u=>u.type==="non_resident"?_(Kd,{title:u.title,price:u.prices.map(i=>i.price+" ")}):null):null}):null]})})})},Yd=({title:t,onClick:e,active:n})=>_("h2",{className:`multimedia-tab ${n?"m-tab-active":null}`,onClick:e,children:t}),CS=({img:t})=>_("div",{className:"gallery-item",children:_("img",{src:t,alt:"image"})}),kS=({imageTabIndex:t})=>{const[e,n]=j.exports.useState();return j.exports.useEffect(()=>{new qe(`http://tmex.gov.tm:8765/api/medias/${t}`,e,n).get()},[]),j.exports.useEffect(()=>{new qe(`http://tmex.gov.tm:8765/api/medias/${t}`,e,n).get()},[t]),console.log(e,t),_("div",{className:"gallery-wrapper",children:_("div",{className:"gallery",children:e?e.data.map(r=>_(CS,{img:r.media},r.id)):null})})},AS=({videoTabIndex:t})=>{const[e,n]=j.exports.useState();return j.exports.useEffect(()=>{new qe(`http://tmex.gov.tm:8765/api/medias/${t}`,e,n).get()},[t]),console.log(t),_("div",{className:"videos-wrapper",children:e?e.data.map(r=>_(U3,{videoUrl:r.media},r.id)):null})},RS=()=>{const[t,e]=j.exports.useState(),[n,r]=j.exports.useState(),[u,i]=j.exports.useState(0),[o,s]=j.exports.useState(),[a,l]=j.exports.useState();j.exports.useEffect(()=>{new qe("http://tmex.gov.tm:8765/api/media/categories",a,l).get({"X-Localization":"ru"})},[]);const c=(m,y)=>{e(m),r(y),i(null)},h=(m,y)=>{i(m),s(y),e(null)};return _("main",{children:_("div",{className:"container",children:z("div",{className:"sub-page-wrapper",children:[_(lt,{title:"\u041C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u044F"}),z("div",{className:"multimedia-wrapper",children:[z("nav",{className:"multimedia-nav",children:[_("div",{className:"multimedia-top-gallery",children:a?a.data.map((m,y)=>m.type==="image"?_(Yd,{title:m.title,active:t===y,onClick:()=>c(y,m.id)},m.id):null):null}),_("div",{className:"multimedia-top-video",children:a?a.data.map((m,y)=>m.type==="video"?_(Yd,{title:m.title,active:u===y,onClick:()=>h(y,m.id)},m.id):null):null})]}),u?_(AS,{videoTabIndex:o}):_(kS,{imageTabIndex:n})]})]})})})},MS=()=>z("div",{className:"App",children:[_(_S,{}),_(Y1,{}),z(z1,{children:[_(gt,{index:!0,element:_(sS,{})}),_(gt,{path:"/gtsbt",element:_(aS,{})}),_(gt,{path:"/fin",element:_(lS,{})}),_(gt,{path:"/norm",element:_(cS,{})}),_(gt,{path:"/trade",element:_(fS,{})}),_(gt,{path:"/register",element:_(dS,{})}),_(gt,{path:"/contacts",element:_(xS,{})}),_(gt,{path:"/news",element:_(PS,{})}),_(gt,{path:"/post",element:_(DS,{})}),_(gt,{path:"/tarif",element:_(OS,{})}),_(gt,{path:"/multimedia",element:_(RS,{})})]}),_(q1,{})]}),NS=document.getElementById("root"),TS=u3(NS);TS.render(_(j.exports.StrictMode,{children:_(H1,{children:_(MS,{})})}));