PageSourceSearch

https://wf-chartjs.vercel.app/assets/index-xO7cvS4Q.js

js wf-chartjs.vercel.app collected 2026-10-03 08:02:17 UTC 536,031 bytes, 468 lines download raw bytes

vendor: 5,548 bytes, lines 1-9
1var sy=Object.defineProperty;var oy=(t,e,n)=>e in t?sy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var N=(t,e,n)=>oy(t,typeof e!="symbol"?e+"":e,n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();var Pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ay(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pp={exports:{}},ya={},gp={exports:{}},X={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var ws=Symbol.for("react.element"),ly=Symbol.for("react.portal"),uy=Symbol.for("react.fragment"),cy=Symbol.for("react.strict_mode"),dy=Symbol.for("react.profiler"),fy=Symbol.for("react.provider"),hy=Symbol.for("react.context"),py=Symbol.for("react.forward_ref"),gy=Symbol.for("react.suspense"),my=Symbol.for("react.memo"),vy=Symbol.for("react.lazy"),wd=Symbol.iterator;function yy(t){return t===null||typeof t!="object"?null:(t=wd&&t[wd]||t["@@iterator"],typeof t=="function"?t:null)}var mp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vp=Object.assign,yp={};function or(t,e,n){this.props=t,this.context=e,this.refs=yp,this.updater=n||mp}or.prototype.isReactComponent={};or.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")};or.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function xp(){}xp.prototype=or.prototype;function Zu(t,e,n){this.props=t,this.context=e,this.refs=yp,this.updater=n||mp}var ec=Zu.prototype=new xp;ec.constructor=Zu;vp(ec,or.prototype);ec.isPureReactComponent=!0;var Sd=Array.isArray,bp=Object.prototype.hasOwnProperty,tc={current:null},wp={key:!0,ref:!0,__self:!0,__source:!0};function Sp(t,e,n){var i,r={},s=null,o=null;if(e!=null)for(i in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)bp.call(e,i)&&!wp.hasOwnProperty(i)&&(r[i]=e[i]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}if(t&&t.defaultProps)for(i in a=t.defaultProps,a)r[i]===void 0&&(r[i]=a[i]);return{$$typeof:ws,type:t,key:s,ref:o,props:r,_owner:tc.current}}function xy(t,e){return{$$typeof:ws,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function nc(t){return typeof t=="object"&&t!==null&&t.$$typeof===ws}function by(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var _d=/\/+/g;function Wa(t,e){return typeof t=="object"&&t!==null&&t.key!=null?by(""+t.key):e.toString(36)}function uo(t,e,n,i,r){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case ws:case ly:o=!0}}if(o)return o=t,r=r(o),t=i===""?"."+Wa(o,0):i,Sd(r)?(n="",t!=null&&(n=t.replace(_d,"$&/")+"/"),uo(r,e,n,"",function(u){return u})):r!=null&&(nc(r)&&(r=xy(r,n+(!r.key||o&&o.key===r.key?"":(""+r.key).replace(_d,"$&/")+"/")+t)),e.push(r)),1;if(o=0,i=i===""?".":i+":",Sd(t))for(var a=0;a<t.length;a++){s=t[a];var l=i+Wa(s,a);o+=uo(s,e,n,l,r)}else if(l=yy(t),typeof l=="function")for(t=l.call(t),a=0;!(s=t.next()).done;)s=s.value,l=i+Wa(s,a++),o+=uo(s,e,n,l,r);else if(s==="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 Rs(t,e,n){if(t==null)return t;var i=[],r=0;return uo(t,i,"","",function(s){return e.call(n,s,r++)}),i}function wy(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 et={current:null},co={transition:null},Sy={ReactCurrentDispatcher:et,ReactCurrentBatchConfig:co,ReactCurrentOwner:tc};function _p(){throw Error("act(...) is not supported in production builds of React.")}X.Children={map:Rs,forEach:function(t,e,n){Rs(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Rs(t,function(){e++}),e},toArray:function(t){return Rs(t,function(e){return e})||[]},only:function(t){if(!nc(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};X.Component=or;X.Fragment=uy;X.Profiler=dy;
vendor: 5,037 bytes, lines 9-25
9X.PureComponent=Zu;X.StrictMode=cy;X.Suspense=gy;X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Sy;X.act=_p;X.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=vp({},t.props),r=t.key,s=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,o=tc.current),e.key!==void 0&&(r=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)bp.call(e,l)&&!wp.hasOwnProperty(l)&&(i[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}return{$$typeof:ws,type:t.type,key:r,ref:s,props:i,_owner:o}};X.createContext=function(t){return t={$$typeof:hy,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:fy,_context:t},t.Consumer=t};X.createElement=Sp;X.createFactory=function(t){var e=Sp.bind(null,t);return e.type=t,e};X.createRef=function(){return{current:null}};X.forwardRef=function(t){return{$$typeof:py,render:t}};X.isValidElement=nc;X.lazy=function(t){return{$$typeof:vy,_payload:{_status:-1,_result:t},_init:wy}};X.memo=function(t,e){return{$$typeof:my,type:t,compare:e===void 0?null:e}};X.startTransition=function(t){var e=co.transition;co.transition={};try{t()}finally{co.transition=e}};X.unstable_act=_p;X.useCallback=function(t,e){return et.current.useCallback(t,e)};X.useContext=function(t){return et.current.useContext(t)};X.useDebugValue=function(){};X.useDeferredValue=function(t){return et.current.useDeferredValue(t)};X.useEffect=function(t,e){return et.current.useEffect(t,e)};X.useId=function(){return et.current.useId()};X.useImperativeHandle=function(t,e,n){return et.current.useImperativeHandle(t,e,n)};X.useInsertionEffect=function(t,e){return et.current.useInsertionEffect(t,e)};X.useLayoutEffect=function(t,e){return et.current.useLayoutEffect(t,e)};X.useMemo=function(t,e){return et.current.useMemo(t,e)};X.useReducer=function(t,e,n){return et.current.useReducer(t,e,n)};X.useRef=function(t){return et.current.useRef(t)};X.useState=function(t){return et.current.useState(t)};X.useSyncExternalStore=function(t,e,n){return et.current.useSyncExternalStore(t,e,n)};X.useTransition=function(){return et.current.useTransition()};X.version="18.3.1";gp.exports=X;var M=gp.exports;const _e=ay(M);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var _y=M,ky=Symbol.for("react.element"),Cy=Symbol.for("react.fragment"),Ey=Object.prototype.hasOwnProperty,Ty=_y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Py={key:!0,ref:!0,__self:!0,__source:!0};function kp(t,e,n){var i,r={},s=null,o=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(i in e)Ey.call(e,i)&&!Py.hasOwnProperty(i)&&(r[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps,e)r[i]===void 0&&(r[i]=e[i]);return{$$typeof:ky,type:t,key:s,ref:o,props:r,_owner:Ty.current}}ya.Fragment=Cy;ya.jsx=kp;ya.jsxs=kp;pp.exports=ya;var y=pp.exports,Bl={},Cp={exports:{}},mt={},Ep={exports:{}},Tp={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(t){function e(R,O){var A=R.length;R.push(O);e:for(;0<A;){var I=A-1>>>1,$=R[I];if(0<r($,O))R[I]=O,R[A]=$,A=I;else break e}}function n(R){return R.length===0?null:R[0]}function i(R){if(R.length===0)return null;var O=R[0],A=R.pop();if(A!==O){R[0]=A;e:for(var I=0,$=R.length,B=$>>>1;I<B;){var Q=2*(I+1)-1,ie=R[Q],Z=Q+1,ze=R[Z];if(0>r(ie,A))Z<$&&0>r(ze,ie)?(R[I]=ze,R[Z]=A,I=Z):(R[I]=ie,R[Q]=A,I=Q);else if(Z<$&&0>r(ze,A))R[I]=ze,R[Z]=A,I=Z;else break e}}return O}function r(R,O){var A=R.sortIndex-O.sortIndex;return A!==0?A:R.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,g=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=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 O=n(u);O!==null;){if(O.callback===null)i(u);else if(O.startTime<=R)i(u),O.sortIndex=O.expirationTime,e(l,O);else break;O=n(u)}}function S(R){if(v=!1,x(R),!g)if(n(l)!==null)g=!0,W(_);else{var O=n(u);O!==null&&z(S,O.startTime-R)}}function _(R,O){g=!1,v&&(v=!1,p(w),w=-1),h=!0;var A=f;try{for(x(O),d=n(l);d!==null&&(!(d.expirationTime>O)||R&&!P());){var I=d.callback;
vendor: 9,152 bytes, lines 25-34
25if(typeof I=="function"){d.callback=null,f=d.priorityLevel;var $=I(d.expirationTime<=O);O=t.unstable_now(),typeof $=="function"?d.callback=$:d===n(l)&&i(l),x(O)}else i(l);d=n(l)}if(d!==null)var B=!0;else{var Q=n(u);Q!==null&&z(S,Q.startTime-O),B=!1}return B}finally{d=null,f=A,h=!1}}var T=!1,E=null,w=-1,k=5,C=-1;function P(){return!(t.unstable_now()-C<k)}function L(){if(E!==null){var R=t.unstable_now();C=R;var O=!0;try{O=E(!0,R)}finally{O?j():(T=!1,E=null)}}else T=!1}var j;if(typeof m=="function")j=function(){m(L)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,V=H.port2;H.port1.onmessage=L,j=function(){V.postMessage(null)}}else j=function(){b(L,0)};function W(R){E=R,T||(T=!0,j())}function z(R,O){w=b(function(){R(t.unstable_now())},O)}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(){g||h||(g=!0,W(_))},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"):k=0<R?Math.floor(1e3/R):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(R){switch(f){case 1:case 2:case 3:var O=3;break;default:O=f}var A=f;f=O;try{return R()}finally{f=A}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(R,O){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var A=f;f=R;try{return O()}finally{f=A}},t.unstable_scheduleCallback=function(R,O,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 $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=A+$,R={id:c++,callback:O,priorityLevel:R,startTime:A,expirationTime:$,sortIndex:-1},A>I?(R.sortIndex=A,e(u,R),n(l)===null&&R===n(u)&&(v?(p(w),w=-1):v=!0,z(S,A-I))):(R.sortIndex=$,e(l,R),g||h||(g=!0,W(_))),R},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(R){var O=f;return function(){var A=f;f=O;try{return R.apply(this,arguments)}finally{f=A}}}})(Tp);Ep.exports=Tp;var My=Ep.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var Ry=M,gt=My;function D(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 Pp=new Set,qr={};function xi(t,e){Qi(t,e),Qi(t+"Capture",e)}function Qi(t,e){for(qr[t]=e,t=0;t<e.length;t++)Pp.add(e[t])}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$l=Object.prototype.hasOwnProperty,Ly=/^[: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]*$/,kd={},Cd={};function Oy(t){return $l.call(Cd,t)?!0:$l.call(kd,t)?!1:Ly.test(t)?Cd[t]=!0:(kd[t]=!0,!1)}function Dy(t,e,n,i){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function jy(t,e,n,i){if(e===null||typeof e>"u"||Dy(t,e,n,i))return!0;if(i)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 tt(t,e,n,i,r,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var $e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){$e[t]=new tt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];$e[e]=new tt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){$e[t]=new tt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){$e[t]=new tt(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){$e[t]=new tt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){$e[t]=new tt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){$e[t]=new tt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){$e[t]=new tt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){$e[t]=new tt(t,5,!1,t.toLowerCase(),null,!1,!1)});var ic=/[\-:]([a-z])/g;function rc(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(ic,rc);$e[e]=new tt(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(ic,rc);$e[e]=new tt(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(ic,rc);$e[e]=new tt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){$e[t]=new tt(t,1,!1,t.toLowerCase(),null,!1,!1)});$e.xlinkHref=new tt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){$e[t]=new tt(t,1,!1,t.toLowerCase(),null,!0,!0)});function sc(t,e,n,i){var r=$e.hasOwnProperty(e)?$e[e]:null;(r!==null?r.type!==0:i||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(jy(e,n,r,i)&&(n=null),i||r===null?Oy(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):r.mustUseProperty?t[r.propertyName]=n===null?r.type===3?!1:"":n:(e=r.attributeName,i=r.attributeNamespace,n===null?t.removeAttribute(e):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,i?t.setAttributeNS(i,e,n):t.setAttribute(e,n))))}var vn=Ry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ls=Symbol.for("react.element"),Mi=Symbol.for("react.portal"),Ri=Symbol.for("react.fragment"),oc=Symbol.for("react.strict_mode"),Vl=Symbol.for("react.profiler"),Mp=Symbol.for("react.provider"),Rp=Symbol.for("react.context"),ac=Symbol.for("react.forward_ref"),Hl=Symbol.for("react.suspense"),Wl=Symbol.for("react.suspense_list"),lc=Symbol.for("react.memo"),bn=Symbol.for("react.lazy"),Lp=Symbol.for("react.offscreen"),Ed=Symbol.iterator;function pr(t){return t===null||typeof t!="object"?null:(t=Ed&&t[Ed]||t["@@iterator"],typeof t=="function"?t:null)}var we=Object.assign,Ua;function Pr(t){if(Ua===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ua=e&&e[1]||""}return`
34`+Ua+t}var Ga=!1;function Ya(t,e){if(!t||Ga)return"";Ga=!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(u){var i=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){i=u}t.call(e.prototype)}else{try{throw Error()}catch(u){i=u}t()}}
vendor: 5,497 bytes, lines 34-37
34catch(u){if(u&&i&&typeof u.stack=="string"){for(var r=u.stack.split(`
35`),s=i.stack.split(`
36`),o=r.length-1,a=s.length-1;1<=o&&0<=a&&r[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(r[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||r[o]!==s[a]){var l=`
37`+r[o].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{Ga=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Pr(t):""}function Ny(t){switch(t.tag){case 5:return Pr(t.type);case 16:return Pr("Lazy");case 13:return Pr("Suspense");case 19:return Pr("SuspenseList");case 0:case 2:case 15:return t=Ya(t.type,!1),t;case 11:return t=Ya(t.type.render,!1),t;case 1:return t=Ya(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 Ri:return"Fragment";case Mi:return"Portal";case Vl:return"Profiler";case oc:return"StrictMode";case Hl:return"Suspense";case Wl:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Rp:return(t.displayName||"Context")+".Consumer";case Mp:return(t._context.displayName||"Context")+".Provider";case ac:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case lc:return e=t.displayName||null,e!==null?e:Ul(t.type)||"Memo";case bn:e=t._payload,t=t._init;try{return Ul(t(e))}catch{}}return null}function Ay(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===oc?"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 $n(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Op(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Iy(t){var e=Op(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(o){i=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Os(t){t._valueTracker||(t._valueTracker=Iy(t))}function Dp(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Op(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function Ao(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 Gl(t,e){var n=e.checked;return we({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Td(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=$n(e.value!=null?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function jp(t,e){e=e.checked,e!=null&&sc(t,"checked",e,!1)}function Yl(t,e){jp(t,e);var n=$n(e.value),i=e.type;if(n!=null)i==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Xl(t,e.type,n):e.hasOwnProperty("defaultValue")&&Xl(t,e.type,$n(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Pd(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="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 Xl(t,e,n){(e!=="number"||Ao(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Mr=Array.isArray;function Vi(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&i&&(t[n].defaultSelected=!0)}else{for(n=""+$n(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,i&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function Kl(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(D(91));return we({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Md(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(D(92));
vendor: 12,680 bytes, line 37
37if(Mr(n)){if(1<n.length)throw Error(D(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:$n(n)}}function Np(t,e){var n=$n(e.value),i=$n(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),i!=null&&(t.defaultValue=""+i)}function Rd(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Ap(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 Ql(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Ap(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Ds,Ip=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,i,r){MSApp.execUnsafeLocalFunction(function(){return t(e,n,i,r)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Ds=Ds||document.createElement("div"),Ds.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Ds.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Jr(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Ir={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},zy=["Webkit","ms","Moz","O"];Object.keys(Ir).forEach(function(t){zy.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Ir[e]=Ir[t]})});function zp(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Ir.hasOwnProperty(t)&&Ir[t]?(""+e).trim():e+"px"}function Fp(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=zp(n,e[n],i);n==="float"&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}var Fy=we({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 ql(t,e){if(e){if(Fy[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(D(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(D(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(D(61))}if(e.style!=null&&typeof e.style!="object")throw Error(D(62))}}function Jl(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 Zl=null;function uc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var eu=null,Hi=null,Wi=null;function Ld(t){if(t=ks(t)){if(typeof eu!="function")throw Error(D(280));var e=t.stateNode;e&&(e=_a(e),eu(t.stateNode,t.type,e))}}function Bp(t){Hi?Wi?Wi.push(t):Wi=[t]:Hi=t}function $p(){if(Hi){var t=Hi,e=Wi;if(Wi=Hi=null,Ld(t),e)for(t=0;t<e.length;t++)Ld(e[t])}}function Vp(t,e){return t(e)}function Hp(){}var Xa=!1;function Wp(t,e,n){if(Xa)return t(e,n);Xa=!0;try{return Vp(t,e,n)}finally{Xa=!1,(Hi!==null||Wi!==null)&&(Hp(),$p())}}function Zr(t,e){var n=t.stateNode;if(n===null)return null;var i=_a(n);if(i===null)return null;n=i[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":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(D(231,e,typeof n));return n}var tu=!1;if(fn)try{var gr={};Object.defineProperty(gr,"passive",{get:function(){tu=!0}}),window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch{tu=!1}function By(t,e,n,i,r,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(c){this.onError(c)}}var zr=!1,Io=null,zo=!1,nu=null,$y={onError:function(t){zr=!0,Io=t}};function Vy(t,e,n,i,r,s,o,a,l){zr=!1,Io=null,By.apply($y,arguments)}function Hy(t,e,n,i,r,s,o,a,l){if(Vy.apply(this,arguments),zr){if(zr){var u=Io;zr=!1,Io=null}else throw Error(D(198));zo||(zo=!0,nu=u)}}function bi(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Up(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 Od(t){if(bi(t)!==t)throw Error(D(188))}function Wy(t){var e=t.alternate;if(!e){if(e=bi(t),e===null)throw Error(D(188));return e!==t?null:t}for(var n=t,i=e;;){var r=n.return;if(r===null)break;var s=r.alternate;if(s===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return Od(r),t;if(s===i)return Od(r),e;s=s.sibling}throw Error(D(188))}if(n.return!==i.return)n=r,i=s;else{for(var o=!1,a=r.child;a;){if(a===n){o=!0,n=r,i=s;break}if(a===i){o=!0,i=r,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,i=r;break}if(a===i){o=!0,i=s,n=r;break}a=a.sibling}if(!o)throw Error(D(189))}}if(n.alternate!==i)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?t:e}function Gp(t){return t=Wy(t),t!==null?Yp(t):null}function Yp(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=Yp(t);if(e!==null)return e;t=t.sibling}return null}var Xp=gt.unstable_scheduleCallback,Dd=gt.unstable_cancelCallback,Uy=gt.unstable_shouldYield,Gy=gt.unstable_requestPaint,Ee=gt.unstable_now,Yy=gt.unstable_getCurrentPriorityLevel,cc=gt.unstable_ImmediatePriority,Kp=gt.unstable_UserBlockingPriority,Fo=gt.unstable_NormalPriority,Xy=gt.unstable_LowPriority,Qp=gt.unstable_IdlePriority,xa=null,Yt=null;function Ky(t){if(Yt&&typeof Yt.onCommitFiberRoot=="function")try{Yt.onCommitFiberRoot(xa,t,void 0,(t.current.flags&128)===128)}catch{}}var Ot=Math.clz32?Math.clz32:Jy,Qy=Math.log,qy=Math.LN2;function Jy(t){return t>>>=0,t===0?32:31-(Qy(t)/qy|0)|0}var js=64,Ns=4194304;function Rr(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 Bo(t,e){var n=t.pendingLanes;if(n===0)return 0;var i=0,r=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~r;a!==0?i=Rr(a):(s&=o,s!==0&&(i=Rr(s)))}else o=n&~r,o!==0?i=Rr(o):s!==0&&(i=Rr(s));if(i===0)return 0;if(e!==0&&e!==i&&!(e&r)&&(r=i&-i,s=e&-e,r>=s||r===16&&(s&4194240)!==0))return e;if(i&4&&(i|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=i;0<e;)n=31-Ot(e),r=1<<n,i|=t[n],e&=~r;return i}function Zy(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 ex(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,r=t.expirationTimes,s=t.pendingLanes;0<s;){var o=31-Ot(s),a=1<<o,l=r[o];l===-1?(!(a&n)||a&i)&&(r[o]=Zy(a,e)):l<=e&&(t.expiredLanes|=a),s&=~a}}function iu(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function qp(){var t=js;return js<<=1,!(js&4194240)&&(js=64),t}function Ka(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ss(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ot(e),t[e]=n}function tx(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 i=t.eventTimes;for(t=t.expirationTimes;0<n;){var r=31-Ot(n),s=1<<r;e[r]=0,i[r]=-1,t[r]=-1,n&=~s}}function dc(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-Ot(n),r=1<<i;r&e|t[i]&e&&(t[i]|=e),n&=~r}}var oe=0;function Jp(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Zp,fc,eg,tg,ng,ru=!1,As=[],On=null,Dn=null,jn=null,es=new Map,ts=new Map,_n=[],nx="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 jd(t,e){switch(t){case"focusin":case"focusout":On=null;break;case"dragenter":case"dragleave":Dn=null;break;case"mouseover":case"mouseout":jn=null;break;case"pointerover":case"pointerout":es.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ts.delete(e.pointerId)}}function mr(t,e,n,i,r,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:s,targetContainers:[r]},e!==null&&(e=ks(e),e!==null&&fc(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function ix(t,e,n,i,r){switch(e){case"focusin":return On=mr(On,t,e,n,i,r),!0;case"dragenter":return Dn=mr(Dn,t,e,n,i,r),!0;case"mouseover":return jn=mr(jn,t,e,n,i,r),!0;case"pointerover":var s=r.pointerId;return es.set(s,mr(es.get(s)||null,t,e,n,i,r)),!0;case"gotpointercapture":return s=r.pointerId,ts.set(s,mr(ts.get(s)||null,t,e,n,i,r)),!0}return!1}function ig(t){var e=ii(t.target);if(e!==null){var n=bi(e);if(n!==null){if(e=n.tag,e===13){if(e=Up(n),e!==null){t.blockedOn=e,ng(t.priority,function(){eg(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 fo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=su(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);Zl=i,n.target.dispatchEvent(i),Zl=null}else return e=ks(n),e!==null&&fc(e),t.blockedOn=n,!1;e.shift()}return!0}function Nd(t,e,n){fo(t)&&n.delete(e)}function rx(){ru=!1,On!==null&&fo(On)&&(On=null),Dn!==null&&fo(Dn)&&(Dn=null),jn!==null&&fo(jn)&&(jn=null),es.forEach(Nd),ts.forEach(Nd)}function vr(t,e){t.blockedOn===e&&(t.blockedOn=null,ru||(ru=!0,gt.unstable_scheduleCallback(gt.unstable_NormalPriority,rx)))}function ns(t){function e(r){return vr(r,t)}if(0<As.length){vr(As[0],t);for(var n=1;n<As.length;n++){var i=As[n];i.blockedOn===t&&(i.blockedOn=null)}}for(On!==null&&vr(On,t),Dn!==null&&vr(Dn,t),jn!==null&&vr(jn,t),es.forEach(e),ts.forEach(e),n=0;n<_n.length;n++)i=_n[n],i.blockedOn===t&&(i.blockedOn=null);for(;0<_n.length&&(n=_n[0],n.blockedOn===null);)ig(n),n.blockedOn===null&&_n.shift()}var Ui=vn.ReactCurrentBatchConfig,$o=!0;function sx(t,e,n,i){var r=oe,s=Ui.transition;Ui.transition=null;try{oe=1,hc(t,e,n,i)}finally{oe=r,Ui.transition=s}}function ox(t,e,n,i){var r=oe,s=Ui.transition;Ui.transition=null;try{oe=4,hc(t,e,n,i)}finally{oe=r,Ui.transition=s}}function hc(t,e,n,i){if($o){var r=su(t,e,n,i);if(r===null)sl(t,e,i,Vo,n),jd(t,i);else if(ix(r,t,e,n,i))i.stopPropagation();else if(jd(t,i),e&4&&-1<nx.indexOf(t)){for(;r!==null;){var s=ks(r);if(s!==null&&Zp(s),s=su(t,e,n,i),s===null&&sl(t,e,i,Vo,n),s===r)break;r=s}r!==null&&i.stopPropagation()}else sl(t,e,i,null,n)}}var Vo=null;function su(t,e,n,i){if(Vo=null,t=uc(i),t=ii(t),t!==null)if(e=bi(t),e===null)t=null;else if(n=e.tag,n===13){if(t=Up(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 Vo=t,null}
vendor: 10,401 bytes, line 37
37function rg(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(Yy()){case cc:return 1;case Kp:return 4;case Fo:case Xy:return 16;case Qp:return 536870912;default:return 16}default:return 16}}var Cn=null,pc=null,ho=null;function sg(){if(ho)return ho;var t,e=pc,n=e.length,i,r="value"in Cn?Cn.value:Cn.textContent,s=r.length;for(t=0;t<n&&e[t]===r[t];t++);var o=n-t;for(i=1;i<=o&&e[n-i]===r[s-i];i++);return ho=r.slice(t,1<i?1-i:void 0)}function po(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 Is(){return!0}function Ad(){return!1}function vt(t){function e(n,i,r,s,o){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Is:Ad,this.isPropagationStopped=Ad,this}return we(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=Is)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Is)},persist:function(){},isPersistent:Is}),e}var ar={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gc=vt(ar),_s=we({},ar,{view:0,detail:0}),ax=vt(_s),Qa,qa,yr,ba=we({},_s,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mc,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!==yr&&(yr&&t.type==="mousemove"?(Qa=t.screenX-yr.screenX,qa=t.screenY-yr.screenY):qa=Qa=0,yr=t),Qa)},movementY:function(t){return"movementY"in t?t.movementY:qa}}),Id=vt(ba),lx=we({},ba,{dataTransfer:0}),ux=vt(lx),cx=we({},_s,{relatedTarget:0}),Ja=vt(cx),dx=we({},ar,{animationName:0,elapsedTime:0,pseudoElement:0}),fx=vt(dx),hx=we({},ar,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),px=vt(hx),gx=we({},ar,{data:0}),zd=vt(gx),mx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vx={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"},yx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xx(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=yx[t])?!!e[t]:!1}function mc(){return xx}var bx=we({},_s,{key:function(t){if(t.key){var e=mx[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=po(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?vx[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mc,charCode:function(t){return t.type==="keypress"?po(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?po(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),wx=vt(bx),Sx=we({},ba,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fd=vt(Sx),_x=we({},_s,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mc}),kx=vt(_x),Cx=we({},ar,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ex=vt(Cx),Tx=we({},ba,{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}),Px=vt(Tx),Mx=[9,13,27,32],vc=fn&&"CompositionEvent"in window,Fr=null;fn&&"documentMode"in document&&(Fr=document.documentMode);var Rx=fn&&"TextEvent"in window&&!Fr,og=fn&&(!vc||Fr&&8<Fr&&11>=Fr),Bd=" ",$d=!1;function ag(t,e){switch(t){case"keyup":return Mx.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Li=!1;function Lx(t,e){switch(t){case"compositionend":return lg(e);case"keypress":return e.which!==32?null:($d=!0,Bd);case"textInput":return t=e.data,t===Bd&&$d?null:t;default:return null}}function Ox(t,e){if(Li)return t==="compositionend"||!vc&&ag(t,e)?(t=sg(),ho=pc=Cn=null,Li=!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 og&&e.locale!=="ko"?null:e.data;default:return null}}var Dx={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 Vd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Dx[t.type]:e==="textarea"}function ug(t,e,n,i){Bp(i),e=Ho(e,"onChange"),0<e.length&&(n=new gc("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var Br=null,is=null;function jx(t){bg(t,0)}function wa(t){var e=ji(t);if(Dp(e))return t}function Nx(t,e){if(t==="change")return e}var cg=!1;if(fn){var Za;if(fn){var el="oninput"in document;if(!el){var Hd=document.createElement("div");Hd.setAttribute("oninput","return;"),el=typeof Hd.oninput=="function"}Za=el}else Za=!1;cg=Za&&(!document.documentMode||9<document.documentMode)}function Wd(){Br&&(Br.detachEvent("onpropertychange",dg),is=Br=null)}function dg(t){if(t.propertyName==="value"&&wa(is)){var e=[];ug(e,is,t,uc(t)),Wp(jx,e)}}function Ax(t,e,n){t==="focusin"?(Wd(),Br=e,is=n,Br.attachEvent("onpropertychange",dg)):t==="focusout"&&Wd()}function Ix(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return wa(is)}function zx(t,e){if(t==="click")return wa(e)}function Fx(t,e){if(t==="input"||t==="change")return wa(e)}function Bx(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Nt=typeof Object.is=="function"?Object.is:Bx;function rs(t,e){if(Nt(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!$l.call(e,r)||!Nt(t[r],e[r]))return!1}return!0}function Ud(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Gd(t,e){var n=Ud(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ud(n)}}function fg(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?fg(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function hg(){for(var t=window,e=Ao();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ao(t.document)}return e}function yc(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 $x(t){var e=hg(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&fg(n.ownerDocument.documentElement,n)){if(i!==null&&yc(n)){if(e=i.start,t=i.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 r=n.textContent.length,s=Math.min(i.start,r);i=i.end===void 0?s:Math.min(i.end,r),!t.extend&&s>i&&(r=i,i=s,s=r),r=Gd(n,s);var o=Gd(n,i);r&&o&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),s>i?(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 Vx=fn&&"documentMode"in document&&11>=document.documentMode,Oi=null,ou=null,$r=null,au=!1;function Yd(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;au||Oi==null||Oi!==Ao(i)||(i=Oi,"selectionStart"in i&&yc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:i.focusNode,focusOffset:i.focusOffset}),$r&&rs($r,i)||($r=i,i=Ho(ou,"onSelect"),0<i.length&&(e=new gc("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=Oi)))}function zs(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Di={animationend:zs("Animation","AnimationEnd"),animationiteration:zs("Animation","AnimationIteration"),animationstart:zs("Animation","AnimationStart"),transitionend:zs("Transition","TransitionEnd")},tl={},pg={};fn&&(pg=document.createElement("div").style,"AnimationEvent"in window||(delete Di.animationend.animation,delete Di.animationiteration.animation,delete Di.animationstart.animation),"TransitionEvent"in window||delete Di.transitionend.transition);function Sa(t){if(tl[t])return tl[t];if(!Di[t])return t;var e=Di[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in pg)return tl[t]=e[n];return t}var gg=Sa("animationend"),mg=Sa("animationiteration"),vg=Sa("animationstart"),yg=Sa("transitionend"),xg=new Map,Xd="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 Un(t,e){xg.set(t,e),xi(e,[t])}for(var nl=0;nl<Xd.length;nl++){var il=Xd[nl],Hx=il.toLowerCase(),Wx=il[0].toUpperCase()+il.slice(1);Un(Hx,"on"+Wx)}Un(gg,"onAnimationEnd");Un(mg,"onAnimationIteration");Un(vg,"onAnimationStart");Un("dblclick","onDoubleClick");Un("focusin","onFocus");Un("focusout","onBlur");Un(yg,"onTransitionEnd");Qi("onMouseEnter",["mouseout","mouseover"]);Qi("onMouseLeave",["mouseout","mouseover"]);Qi("onPointerEnter",["pointerout","pointerover"]);Qi("onPointerLeave",["pointerout","pointerover"]);xi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));xi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));xi("onBeforeInput",["compositionend","keypress","textInput","paste"]);xi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));xi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));xi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="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(" "),Ux=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Kd(t,e,n){var i=t.type||"unknown-event";t.currentTarget=n,Hy(i,e,void 0,t),t.currentTarget=null}function bg(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],r=i.event;i=i.listeners;e:{var s=void 0;if(e)for(var o=i.length-1;0<=o;o--){var a=i[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&r.isPropagationStopped())break e;Kd(r,a,u),s=l}else for(o=0;o<i.length;o++){if(a=i[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&r.isPropagationStopped())break e;Kd(r,a,u),s=l}}}if(zo)throw t=nu,zo=!1,nu=null,t}function ce(t,e){var n=e[fu];n===void 0&&(n=e[fu]=new Set);var i=t+"__bubble";n.has(i)||(wg(e,t,2,!1),n.add(i))}function rl(t,e,n){var i=0;e&&(i|=4),wg(n,t,i,e)}var Fs="_reactListening"+Math.random().toString(36).slice(2);function ss(t){if(!t[Fs]){t[Fs]=!0,Pp.forEach(function(n){n!=="selectionchange"&&(Ux.has(n)||rl(n,!1,t),rl(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Fs]||(e[Fs]=!0,rl("selectionchange",!1,e))}}function wg(t,e,n,i){switch(rg(e)){case 1:var r=sx;break;case 4:r=ox;break;default:r=hc}n=r.bind(null,e,n,t),r=void 0,!tu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),i?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function sl(t,e,n,i,r){var s=i;if(!(e&1)&&!(e&2)&&i!==null)e:for(;;){if(i===null)return;var o=i.tag;if(o===3||o===4){var a=i.stateNode.containerInfo;
vendor: 5,316 bytes, lines 37-38
37if(a===r||a.nodeType===8&&a.parentNode===r)break;if(o===4)for(o=i.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===r||l.nodeType===8&&l.parentNode===r))return;o=o.return}for(;a!==null;){if(o=ii(a),o===null)return;if(l=o.tag,l===5||l===6){i=s=o;continue e}a=a.parentNode}}i=i.return}Wp(function(){var u=s,c=uc(n),d=[];e:{var f=xg.get(t);if(f!==void 0){var h=gc,g=t;switch(t){case"keypress":if(po(n)===0)break e;case"keydown":case"keyup":h=wx;break;case"focusin":g="focus",h=Ja;break;case"focusout":g="blur",h=Ja;break;case"beforeblur":case"afterblur":h=Ja;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":h=Id;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=ux;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=kx;break;case gg:case mg:case vg:h=fx;break;case yg:h=Ex;break;case"scroll":h=ax;break;case"wheel":h=Px;break;case"copy":case"cut":case"paste":h=px;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Fd}var v=(e&4)!==0,b=!v&&t==="scroll",p=v?f!==null?f+"Capture":null:f;v=[];for(var m=u,x;m!==null;){x=m;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,p!==null&&(S=Zr(m,p),S!=null&&v.push(os(m,S,x)))),b)break;m=m.return}0<v.length&&(f=new h(f,g,null,n,c),d.push({event:f,listeners:v}))}}if(!(e&7)){e:{if(f=t==="mouseover"||t==="pointerover",h=t==="mouseout"||t==="pointerout",f&&n!==Zl&&(g=n.relatedTarget||n.fromElement)&&(ii(g)||g[hn]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?ii(g):null,g!==null&&(b=bi(g),g!==b||g.tag!==5&&g.tag!==6)&&(g=null)):(h=null,g=u),h!==g)){if(v=Id,S="onMouseLeave",p="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&(v=Fd,S="onPointerLeave",p="onPointerEnter",m="pointer"),b=h==null?f:ji(h),x=g==null?f:ji(g),f=new v(S,m+"leave",h,n,c),f.target=b,f.relatedTarget=x,S=null,ii(c)===u&&(v=new v(p,m+"enter",g,n,c),v.target=x,v.relatedTarget=b,S=v),b=S,h&&g)t:{for(v=h,p=g,m=0,x=v;x;x=Ci(x))m++;for(x=0,S=p;S;S=Ci(S))x++;for(;0<m-x;)v=Ci(v),m--;for(;0<x-m;)p=Ci(p),x--;for(;m--;){if(v===p||p!==null&&v===p.alternate)break t;v=Ci(v),p=Ci(p)}v=null}else v=null;h!==null&&Qd(d,f,h,v,!1),g!==null&&b!==null&&Qd(d,b,g,v,!0)}}e:{if(f=u?ji(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var _=Nx;else if(Vd(f))if(cg)_=Fx;else{_=Ix;var T=Ax}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(_=zx);if(_&&(_=_(t,u))){ug(d,_,n,c);break e}T&&T(t,f,u),t==="focusout"&&(T=f._wrapperState)&&T.controlled&&f.type==="number"&&Xl(f,"number",f.value)}switch(T=u?ji(u):window,t){case"focusin":(Vd(T)||T.contentEditable==="true")&&(Oi=T,ou=u,$r=null);break;case"focusout":$r=ou=Oi=null;break;case"mousedown":au=!0;break;case"contextmenu":case"mouseup":case"dragend":au=!1,Yd(d,n,c);break;case"selectionchange":if(Vx)break;case"keydown":case"keyup":Yd(d,n,c)}var E;if(vc)e:{switch(t){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Li?ag(t,n)&&(w="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(w="onCompositionStart");w&&(og&&n.locale!=="ko"&&(Li||w!=="onCompositionStart"?w==="onCompositionEnd"&&Li&&(E=sg()):(Cn=c,pc="value"in Cn?Cn.value:Cn.textContent,Li=!0)),T=Ho(u,w),0<T.length&&(w=new zd(w,t,null,n,c),d.push({event:w,listeners:T}),E?w.data=E:(E=lg(n),E!==null&&(w.data=E)))),(E=Rx?Lx(t,n):Ox(t,n))&&(u=Ho(u,"onBeforeInput"),0<u.length&&(c=new zd("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=E))}bg(d,e)})}function os(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ho(t,e){for(var n=e+"Capture",i=[];t!==null;){var r=t,s=r.stateNode;r.tag===5&&s!==null&&(r=s,s=Zr(t,n),s!=null&&i.unshift(os(t,s,r)),s=Zr(t,e),s!=null&&i.push(os(t,s,r))),t=t.return}return i}function Ci(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Qd(t,e,n,i,r){for(var s=e._reactName,o=[];n!==null&&n!==i;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===i)break;a.tag===5&&u!==null&&(a=u,r?(l=Zr(n,s),l!=null&&o.unshift(os(n,l,a))):r||(l=Zr(n,s),l!=null&&o.push(os(n,l,a)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var Gx=/\r\n?/g,Yx=/\u0000|\uFFFD/g;function qd(t){return(typeof t=="string"?t:""+t).replace(Gx,`
38`).replace(Yx,"")}function Bs(t,e,n){if(e=qd(e),qd(t)!==e&&n)throw Error(D(425))}function Wo(){}var lu=null,uu=null;function cu(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 du=typeof setTimeout=="function"?setTimeout:void 0,Xx=typeof clearTimeout=="function"?clearTimeout:void 0,Jd=typeof Promise=="function"?Promise:void 0,Kx=typeof queueMicrotask=="function"?queueMicrotask:typeof Jd<"u"?function(t){return Jd.resolve(null).then(t).cat
vendor: 4,793 bytes, line 38
38ch(Qx)}:du;function Qx(t){setTimeout(function(){throw t})}function ol(t,e){var n=e,i=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(i===0){t.removeChild(r),ns(e);return}i--}else n!=="$"&&n!=="$?"&&n!=="$!"||i++;n=r}while(n);ns(e)}function Nn(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 Zd(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 lr=Math.random().toString(36).slice(2),Gt="__reactFiber$"+lr,as="__reactProps$"+lr,hn="__reactContainer$"+lr,fu="__reactEvents$"+lr,qx="__reactListeners$"+lr,Jx="__reactHandles$"+lr;function ii(t){var e=t[Gt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[hn]||n[Gt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Zd(t);t!==null;){if(n=t[Gt])return n;t=Zd(t)}return e}t=n,n=t.parentNode}return null}function ks(t){return t=t[Gt]||t[hn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function ji(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(D(33))}function _a(t){return t[as]||null}var hu=[],Ni=-1;function Gn(t){return{current:t}}function de(t){0>Ni||(t.current=hu[Ni],hu[Ni]=null,Ni--)}function ue(t,e){Ni++,hu[Ni]=t.current,t.current=e}var Vn={},Qe=Gn(Vn),lt=Gn(!1),di=Vn;function qi(t,e){var n=t.type.contextTypes;if(!n)return Vn;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in n)r[s]=e[s];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function ut(t){return t=t.childContextTypes,t!=null}function Uo(){de(lt),de(Qe)}function ef(t,e,n){if(Qe.current!==Vn)throw Error(D(168));ue(Qe,e),ue(lt,n)}function Sg(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in e))throw Error(D(108,Ay(t)||"Unknown",r));return we({},n,i)}function Go(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Vn,di=Qe.current,ue(Qe,t),ue(lt,lt.current),!0}function tf(t,e,n){var i=t.stateNode;if(!i)throw Error(D(169));n?(t=Sg(t,e,di),i.__reactInternalMemoizedMergedChildContext=t,de(lt),de(Qe),ue(Qe,t)):de(lt),ue(lt,n)}var nn=null,ka=!1,al=!1;function _g(t){nn===null?nn=[t]:nn.push(t)}function Zx(t){ka=!0,_g(t)}function Yn(){if(!al&&nn!==null){al=!0;var t=0,e=oe;try{var n=nn;for(oe=1;t<n.length;t++){var i=n[t];do i=i(!0);while(i!==null)}nn=null,ka=!1}catch(r){throw nn!==null&&(nn=nn.slice(t+1)),Xp(cc,Yn),r}finally{oe=e,al=!1}}return null}var Ai=[],Ii=0,Yo=null,Xo=0,xt=[],bt=0,fi=null,sn=1,on="";function Zn(t,e){Ai[Ii++]=Xo,Ai[Ii++]=Yo,Yo=t,Xo=e}function kg(t,e,n){xt[bt++]=sn,xt[bt++]=on,xt[bt++]=fi,fi=t;var i=sn;t=on;var r=32-Ot(i)-1;i&=~(1<<r),n+=1;var s=32-Ot(e)+r;if(30<s){var o=r-r%5;s=(i&(1<<o)-1).toString(32),i>>=o,r-=o,sn=1<<32-Ot(e)+r|n<<r|i,on=s+t}else sn=1<<s|n<<r|i,on=t}function xc(t){t.return!==null&&(Zn(t,1),kg(t,1,0))}function bc(t){for(;t===Yo;)Yo=Ai[--Ii],Ai[Ii]=null,Xo=Ai[--Ii],Ai[Ii]=null;for(;t===fi;)fi=xt[--bt],xt[bt]=null,on=xt[--bt],xt[bt]=null,sn=xt[--bt],xt[bt]=null}var pt=null,ht=null,me=!1,Rt=null;function Cg(t,e){var n=wt(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 nf(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,pt=t,ht=Nn(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,pt=t,ht=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=fi!==null?{id:sn,overflow:on}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=wt(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,pt=t,ht=null,!0):!1;default:return!1}}function pu(t){return(t.mode&1)!==0&&(t.flags&128)===0}function gu(t){if(me){var e=ht;if(e){var n=e;if(!nf(t,e)){if(pu(t))throw Error(D(418));e=Nn(n.nextSibling);var i=pt;e&&nf(t,e)?Cg(i,n):(t.flags=t.flags&-4097|2,me=!1,pt=t)}}else{if(pu(t))throw Error(D(418));t.flags=t.flags&-4097|2,me=!1,pt=t}}}function rf(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;pt=t}function $s(t){if(t!==pt)return!1;if(!me)return rf(t),me=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!cu(t.type,t.memoizedProps)),e&&(e=ht)){if(pu(t))throw Eg(),Error(D(418));for(;e;)Cg(t,e),e=Nn(e.nextSibling)}if(rf(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(D(317)
vendor: 10,310 bytes, line 38
38);e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){ht=Nn(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}ht=null}}else ht=pt?Nn(t.stateNode.nextSibling):null;return!0}function Eg(){for(var t=ht;t;)t=Nn(t.nextSibling)}function Ji(){ht=pt=null,me=!1}function wc(t){Rt===null?Rt=[t]:Rt.push(t)}var e0=vn.ReactCurrentBatchConfig;function xr(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(D(309));var i=n.stateNode}if(!i)throw Error(D(147,t));var r=i,s=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===s?e.ref:(e=function(o){var a=r.refs;o===null?delete a[s]:a[s]=o},e._stringRef=s,e)}if(typeof t!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,t))}return t}function Vs(t,e){throw t=Object.prototype.toString.call(e),Error(D(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function sf(t){var e=t._init;return e(t._payload)}function Tg(t){function e(p,m){if(t){var x=p.deletions;x===null?(p.deletions=[m],p.flags|=16):x.push(m)}}function n(p,m){if(!t)return null;for(;m!==null;)e(p,m),m=m.sibling;return null}function i(p,m){for(p=new Map;m!==null;)m.key!==null?p.set(m.key,m):p.set(m.index,m),m=m.sibling;return p}function r(p,m){return p=Fn(p,m),p.index=0,p.sibling=null,p}function s(p,m,x){return p.index=x,t?(x=p.alternate,x!==null?(x=x.index,x<m?(p.flags|=2,m):x):(p.flags|=2,m)):(p.flags|=1048576,m)}function o(p){return t&&p.alternate===null&&(p.flags|=2),p}function a(p,m,x,S){return m===null||m.tag!==6?(m=pl(x,p.mode,S),m.return=p,m):(m=r(m,x),m.return=p,m)}function l(p,m,x,S){var _=x.type;return _===Ri?c(p,m,x.props.children,S,x.key):m!==null&&(m.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===bn&&sf(_)===m.type)?(S=r(m,x.props),S.ref=xr(p,m,x),S.return=p,S):(S=wo(x.type,x.key,x.props,null,p.mode,S),S.ref=xr(p,m,x),S.return=p,S)}function u(p,m,x,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=gl(x,p.mode,S),m.return=p,m):(m=r(m,x.children||[]),m.return=p,m)}function c(p,m,x,S,_){return m===null||m.tag!==7?(m=li(x,p.mode,S,_),m.return=p,m):(m=r(m,x),m.return=p,m)}function d(p,m,x){if(typeof m=="string"&&m!==""||typeof m=="number")return m=pl(""+m,p.mode,x),m.return=p,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ls:return x=wo(m.type,m.key,m.props,null,p.mode,x),x.ref=xr(p,null,m),x.return=p,x;case Mi:return m=gl(m,p.mode,x),m.return=p,m;case bn:var S=m._init;return d(p,S(m._payload),x)}if(Mr(m)||pr(m))return m=li(m,p.mode,x,null),m.return=p,m;Vs(p,m)}return null}function f(p,m,x,S){var _=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return _!==null?null:a(p,m,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ls:return x.key===_?l(p,m,x,S):null;case Mi:return x.key===_?u(p,m,x,S):null;case bn:return _=x._init,f(p,m,_(x._payload),S)}if(Mr(x)||pr(x))return _!==null?null:c(p,m,x,S,null);Vs(p,x)}return null}function h(p,m,x,S,_){if(typeof S=="string"&&S!==""||typeof S=="number")return p=p.get(x)||null,a(m,p,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ls:return p=p.get(S.key===null?x:S.key)||null,l(m,p,S,_);case Mi:return p=p.get(S.key===null?x:S.key)||null,u(m,p,S,_);case bn:var T=S._init;return h(p,m,x,T(S._payload),_)}if(Mr(S)||pr(S))return p=p.get(x)||null,c(m,p,S,_,null);Vs(m,S)}return null}function g(p,m,x,S){for(var _=null,T=null,E=m,w=m=0,k=null;E!==null&&w<x.length;w++){E.index>w?(k=E,E=null):k=E.sibling;var C=f(p,E,x[w],S);if(C===null){E===null&&(E=k);break}t&&E&&C.alternate===null&&e(p,E),m=s(C,m,w),T===null?_=C:T.sibling=C,T=C,E=k}if(w===x.length)return n(p,E),me&&Zn(p,w),_;if(E===null){for(;w<x.length;w++)E=d(p,x[w],S),E!==null&&(m=s(E,m,w),T===null?_=E:T.sibling=E,T=E);return me&&Zn(p,w),_}for(E=i(p,E);w<x.length;w++)k=h(E,p,w,x[w],S),k!==null&&(t&&k.alternate!==null&&E.delete(k.key===null?w:k.key),m=s(k,m,w),T===null?_=k:T.sibling=k,T=k);return t&&E.forEach(function(P){return e(p,P)}),me&&Zn(p,w),_}function v(p,m,x,S){var _=pr(x);if(typeof _!="function")throw Error(D(150));if(x=_.call(x),x==null)throw Error(D(151));for(var T=_=null,E=m,w=m=0,k=null,C=x.next();E!==null&&!C.done;w++,C=x.next()){E.index>w?(k=E,E=null):k=E.sibling;var P=f(p,E,C.value,S);if(P===null){E===null&&(E=k);break}t&&E&&P.alternate===null&&e(p,E),m=s(P,m,w),T===null?_=P:T.sibling=P,T=P,E=k}if(C.done)return n(p,E),me&&Zn(p,w),_;if(E===null){for(;!C.done;w++,C=x.next())C=d(p,C.value,S),C!==null&&(m=s(C,m,w),T===null?_=C:T.sibling=C,T=C);return me&&Zn(p,w),_}for(E=i(p,E);!C.done;w++,C=x.next())C=h(E,p,w,C.value,S),C!==null&&(t&&C.alternate!==null&&E.delete(C.key===null?w:C.key),m=s(C,m,w),T===null?_=C:T.sibling=C,T=C);return t&&E.forEach(function(L){return e(p,L)}),me&&Zn(p,w),_}function b(p,m,x,S){if(typeof x=="object"&&x!==null&&x.type===Ri&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ls:e:{for(var _=x.key,T=m;T!==null;){if(T.key===_){if(_=x.type,_===Ri){if(T.tag===7){n(p,T.sibling),m=r(T,x.props.children),m.return=p,p=m;break e}}else if(T.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===bn&&sf(_)===T.type){n(p,T.sibling),m=r(T,x.props),m.ref=xr(p,T,x),m.return=p,p=m;break e}n(p,T);break}else e(p,T);T=T.sibling}x.type===Ri?(m=li(x.props.children,p.mode,S,x.key),m.return=p,p=m):(S=wo(x.type,x.key,x.props,null,p.mode,S),S.ref=xr(p,m,x),S.return=p,p=S)}return o(p);case Mi:e:{for(T=x.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(p,m.sibling),m=r(m,x.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else e(p,m);m=m.sibling}m=gl(x,p.mode,S),m.return=p,p=m}return o(p);case bn:return T=x._init,b(p,m,T(x._payload),S)}if(Mr(x))return g(p,m,x,S);if(pr(x))return v(p,m,x,S);Vs(p,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(p,m.sibling),m=r(m,x),m.return=p,p=m):(n(p,m),m=pl(x,p.mode,S),m.return=p,p=m),o(p)):n(p,m)}return b}var Zi=Tg(!0),Pg=Tg(!1),Ko=Gn(null),Qo=null,zi=null,Sc=null;function _c(){Sc=zi=Qo=null}function kc(t){var e=Ko.current;de(Ko),t._currentValue=e}function mu(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Gi(t,e){Qo=t,Sc=zi=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(at=!0),t.firstContext=null)}function kt(t){var e=t._currentValue;if(Sc!==t)if(t={context:t,memoizedValue:e,next:null},zi===null){if(Qo===null)throw Error(D(308));zi=t,Qo.dependencies={lanes:0,firstContext:t}}else zi=zi.next=t;return e}var ri=null;function Cc(t){ri===null?ri=[t]:ri.push(t)}function Mg(t,e,n,i){var r=e.interleaved;return r===null?(n.next=n,Cc(e)):(n.next=r.next,r.next=n),e.interleaved=n,pn(t,i)}function pn(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 wn=!1;function Ec(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Rg(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 cn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function An(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,ee&2){var r=i.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),i.pending=e,pn(t,n)}return r=i.interleaved,r===null?(e.next=e,Cc(i)):(e.next=r.next,r.next=e),i.interleaved=e,pn(t,n)}function go(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,dc(t,n)}}function of(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,s=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};s===null?r=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?r=s=e:s=s.next=e}else r=s=e;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:i.shared,effects:i.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function qo(t,e,n,i){var r=t.updateQueue;wn=!1;var s=r.firstBaseUpdate,o=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=t.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=r.baseState;o=0,c=u=l=null,a=s;do{var f=a.lane,h=a.eventTime;if((i&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=t,v=a;switch(f=e,h=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){d=g.call(h,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,f=typeof g=="function"?g.call(h,d,f):g,f==null)break e;d=we({},d,f);break e;case 2:wn=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,f=r.effects,f===null?r.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,o|=f;if(a=a.next,a===null){if(a=r.shared.pending,a===null)break;f=a,a=f.next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}while(!0);if(c===null&&(l=d),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,e=r.shared.interleaved,e!==null){r=e;do o|=r.lane,r=r.next;while(r!==e)}else s===null&&(r.shared.lanes=0);pi|=o,t.lanes=o,t.memoizedState=d}}function af(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var i=t[e],r=i.callback;if(r!==null){if(i.callback=null,i=n,typeof r!="function")throw Error(D(191,r));r.call(i)}}}var Cs={},Xt=Gn(Cs),ls=Gn(Cs),us=Gn(Cs);function si(t){if(t===Cs)throw Error(D(174));return t}function Tc(t,e){switch(ue(us,e),ue(ls,t),ue(Xt,Cs),t=e.nodeType,t){case 9:case 11:e=(e
vendor: 6,847 bytes, line 38
38=e.documentElement)?e.namespaceURI:Ql(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Ql(e,t)}de(Xt),ue(Xt,e)}function er(){de(Xt),de(ls),de(us)}function Lg(t){si(us.current);var e=si(Xt.current),n=Ql(e,t.type);e!==n&&(ue(ls,t),ue(Xt,n))}function Pc(t){ls.current===t&&(de(Xt),de(ls))}var ye=Gn(0);function Jo(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)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 ll=[];function Mc(){for(var t=0;t<ll.length;t++)ll[t]._workInProgressVersionPrimary=null;ll.length=0}var mo=vn.ReactCurrentDispatcher,ul=vn.ReactCurrentBatchConfig,hi=0,xe=null,Re=null,Ne=null,Zo=!1,Vr=!1,cs=0,t0=0;function We(){throw Error(D(321))}function Rc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Nt(t[n],e[n]))return!1;return!0}function Lc(t,e,n,i,r,s){if(hi=s,xe=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,mo.current=t===null||t.memoizedState===null?s0:o0,t=n(i,r),Vr){s=0;do{if(Vr=!1,cs=0,25<=s)throw Error(D(301));s+=1,Ne=Re=null,e.updateQueue=null,mo.current=a0,t=n(i,r)}while(Vr)}if(mo.current=ea,e=Re!==null&&Re.next!==null,hi=0,Ne=Re=xe=null,Zo=!1,e)throw Error(D(300));return t}function Oc(){var t=cs!==0;return cs=0,t}function Wt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ne===null?xe.memoizedState=Ne=t:Ne=Ne.next=t,Ne}function Ct(){if(Re===null){var t=xe.alternate;t=t!==null?t.memoizedState:null}else t=Re.next;var e=Ne===null?xe.memoizedState:Ne.next;if(e!==null)Ne=e,Re=t;else{if(t===null)throw Error(D(310));Re=t,t={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Ne===null?xe.memoizedState=Ne=t:Ne=Ne.next=t}return Ne}function ds(t,e){return typeof e=="function"?e(t):e}function cl(t){var e=Ct(),n=e.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=t;var i=Re,r=i.baseQueue,s=n.pending;if(s!==null){if(r!==null){var o=r.next;r.next=s.next,s.next=o}i.baseQueue=r=s,n.pending=null}if(r!==null){s=r.next,i=i.baseState;var a=o=null,l=null,u=s;do{var c=u.lane;if((hi&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:t(i,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=i):l=l.next=d,xe.lanes|=c,pi|=c}u=u.next}while(u!==null&&u!==s);l===null?o=i:l.next=a,Nt(i,e.memoizedState)||(at=!0),e.memoizedState=i,e.baseState=o,e.baseQueue=l,n.lastRenderedState=i}if(t=n.interleaved,t!==null){r=t;do s=r.lane,xe.lanes|=s,pi|=s,r=r.next;while(r!==t)}else r===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function dl(t){var e=Ct(),n=e.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=t;var i=n.dispatch,r=n.pending,s=e.memoizedState;if(r!==null){n.pending=null;var o=r=r.next;do s=t(s,o.action),o=o.next;while(o!==r);Nt(s,e.memoizedState)||(at=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),n.lastRenderedState=s}return[s,i]}function Og(){}function Dg(t,e){var n=xe,i=Ct(),r=e(),s=!Nt(i.memoizedState,r);if(s&&(i.memoizedState=r,at=!0),i=i.queue,Dc(Ag.bind(null,n,i,t),[t]),i.getSnapshot!==e||s||Ne!==null&&Ne.memoizedState.tag&1){if(n.flags|=2048,fs(9,Ng.bind(null,n,i,r,e),void 0,null),Ae===null)throw Error(D(349));hi&30||jg(n,e,r)}return r}function jg(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=xe.updateQueue,e===null?(e={lastEffect:null,stores:null},xe.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Ng(t,e,n,i){e.value=n,e.getSnapshot=i,Ig(e)&&zg(t)}function Ag(t,e,n){return n(function(){Ig(e)&&zg(t)})}function Ig(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Nt(t,n)}catch{return!0}}function zg(t){var e=pn(t,1);e!==null&&Dt(e,t,1,-1)}function lf(t){var e=Wt();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:t},e.queue=t,t=t.dispatch=r0.bind(null,xe,t),[e.memoizedState,t]}function fs(t,e,n,i){return t={tag:t,create:e,destroy:n,deps:i,next:null},e=xe.updateQueue,e===null?(e={lastEffect:null,stores:null},xe.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t)),t}function Fg(){return Ct().memoizedState}function vo(t,e,n,i){var r=Wt();xe.flags|=t,r.memoizedState=fs(1|e,n,void 0,i===void 0?null:i)}function Ca(t,e,n,i){var r=Ct();i=i===void 0?null:i;var s=void 0;if(Re!==null){var o=Re.memoizedState;if(s=o.destroy,i!==null&&Rc(i,o.deps)){r.memoizedState=fs(e,n,s,i);return}}xe.flags|=t,r.memoizedState=fs(1|e,n,s,i)}function uf(t,e){return vo(8390656,8,t,e)}function Dc(t,e){return Ca(2048,8,t,e)}function Bg(t,e){return Ca(4,2,t,e)}function $g(t,e){return Ca(4,4,t,e)}function Vg(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 Hg(t,e,n){return n=n!=null?n.concat([t]):null,Ca(4,4,Vg.bind(null,e,t),n)}function jc(){}function Wg(t,e){var n=Ct();e=e===void 0?null:e;var i=n.memoizedState;return i!==null&&e!==null&&Rc(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function Ug(t,e){var n=Ct();e=e===void 0?null:e;var i=n.memoizedState;return i!==null&&e!==null&&Rc(e,i[1])?i[0]:(t=t(),n.memoizedState=[t,e],t)}function Gg(t,e,n){return hi&21?(Nt(n,e)||(n=qp(),xe.lanes|=n,pi|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,at=!0),t.memoizedState=n)}function n0(t,e){var n=oe;oe=n!==0&&4>n?n:4,t(!0);var i=ul.transition;ul.transition={};try{t(!1),e()}finally{oe=n,ul.transition=i}}function Yg(){return Ct().memoizedState}function i0(t,e,n){var i=zn(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Xg(t))Kg(e,n);else if(n=Mg(t,e,n,i),n!==null){var r=Ze();Dt(n,t,i,r),Qg(n,e,i)}}function r0(t,e,n){var i=zn(t),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xg(t))Kg(e,r);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,n);if(r.hasEagerState=!0,r.eagerState=a,Nt(a,o)){var l=e.interleaved;l===null?(r.next=r,Cc(e)):(r.next=l.next,l.next=r),e.interleaved=r;return}}catch{}finally{}n=Mg(t,e,r,i),n!==null&&(r=Ze(),Dt(n,t,i,r),Qg(n,e,i))}}function Xg(t){var e=t.alternate;return t===xe||e!==null&&e===xe}function Kg(t,e){Vr=Zo=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Qg(t,e,n){if(n&4194240){var i=e.lanes;
vendor: 8,470 bytes, lines 38-40
38i&=t.pendingLanes,n|=i,e.lanes=n,dc(t,n)}}var ea={readContext:kt,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},s0={readContext:kt,useCallback:function(t,e){return Wt().memoizedState=[t,e===void 0?null:e],t},useContext:kt,useEffect:uf,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,vo(4194308,4,Vg.bind(null,e,t),n)},useLayoutEffect:function(t,e){return vo(4194308,4,t,e)},useInsertionEffect:function(t,e){return vo(4,2,t,e)},useMemo:function(t,e){var n=Wt();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=Wt();return e=n!==void 0?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=i0.bind(null,xe,t),[i.memoizedState,t]},useRef:function(t){var e=Wt();return t={current:t},e.memoizedState=t},useState:lf,useDebugValue:jc,useDeferredValue:function(t){return Wt().memoizedState=t},useTransition:function(){var t=lf(!1),e=t[0];return t=n0.bind(null,t[1]),Wt().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=xe,r=Wt();if(me){if(n===void 0)throw Error(D(407));n=n()}else{if(n=e(),Ae===null)throw Error(D(349));hi&30||jg(i,e,n)}r.memoizedState=n;var s={value:n,getSnapshot:e};return r.queue=s,uf(Ag.bind(null,i,s,t),[t]),i.flags|=2048,fs(9,Ng.bind(null,i,s,n,e),void 0,null),n},useId:function(){var t=Wt(),e=Ae.identifierPrefix;if(me){var n=on,i=sn;n=(i&~(1<<32-Ot(i)-1)).toString(32)+n,e=":"+e+"R"+n,n=cs++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=t0++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},o0={readContext:kt,useCallback:Wg,useContext:kt,useEffect:Dc,useImperativeHandle:Hg,useInsertionEffect:Bg,useLayoutEffect:$g,useMemo:Ug,useReducer:cl,useRef:Fg,useState:function(){return cl(ds)},useDebugValue:jc,useDeferredValue:function(t){var e=Ct();return Gg(e,Re.memoizedState,t)},useTransition:function(){var t=cl(ds)[0],e=Ct().memoizedState;return[t,e]},useMutableSource:Og,useSyncExternalStore:Dg,useId:Yg,unstable_isNewReconciler:!1},a0={readContext:kt,useCallback:Wg,useContext:kt,useEffect:Dc,useImperativeHandle:Hg,useInsertionEffect:Bg,useLayoutEffect:$g,useMemo:Ug,useReducer:dl,useRef:Fg,useState:function(){return dl(ds)},useDebugValue:jc,useDeferredValue:function(t){var e=Ct();return Re===null?e.memoizedState=t:Gg(e,Re.memoizedState,t)},useTransition:function(){var t=dl(ds)[0],e=Ct().memoizedState;return[t,e]},useMutableSource:Og,useSyncExternalStore:Dg,useId:Yg,unstable_isNewReconciler:!1};function Pt(t,e){if(t&&t.defaultProps){e=we({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function vu(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:we({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Ea={isMounted:function(t){return(t=t._reactInternals)?bi(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var i=Ze(),r=zn(t),s=cn(i,r);s.payload=e,n!=null&&(s.callback=n),e=An(t,s,r),e!==null&&(Dt(e,t,r,i),go(e,t,r))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=Ze(),r=zn(t),s=cn(i,r);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=An(t,s,r),e!==null&&(Dt(e,t,r,i),go(e,t,r))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ze(),i=zn(t),r=cn(n,i);r.tag=2,e!=null&&(r.callback=e),e=An(t,r,i),e!==null&&(Dt(e,t,i,n),go(e,t,i))}};function cf(t,e,n,i,r,s,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,s,o):e.prototype&&e.prototype.isPureReactComponent?!rs(n,i)||!rs(r,s):!0}function qg(t,e,n){var i=!1,r=Vn,s=e.contextType;return typeof s=="object"&&s!==null?s=kt(s):(r=ut(e)?di:Qe.current,i=e.contextTypes,s=(i=i!=null)?qi(t,r):Vn),e=new e(n,s),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Ea,t.stateNode=e,e._reactInternals=t,i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=s),e}function df(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Ea.enqueueReplaceState(e,e.state,null)}function yu(t,e,n,i){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs={},Ec(t);var s=e.contextType;typeof s=="object"&&s!==null?r.context=kt(s):(s=ut(e)?di:Qe.current,r.context=qi(t,s)),r.state=t.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(vu(t,e,s,n),r.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(e=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),e!==r.state&&Ea.enqueueReplaceState(r,r.state,null),qo(t,n,r,i),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308)}function tr(t,e){try{var n="",i=e;do n+=Ny(i),i=i.return;while(i);var r=n}catch(s){r=`
39Error generating stack: `+s.message+`
40`+s.stack}return{value:t,source:e,stack:r,digest:null}}function fl(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function xu(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var l0=typeof WeakMap=="function"?WeakMap:Map;function Jg(t,e,n){n=cn(-1,n),n.tag=3,n.payload={element:null};var i=e.value;return n.callback=function(){na||(na=!0,Mu=i),xu(t,e)},n}function Zg(t,e,n){n=cn(-1,n),n.tag=3;var i=t.type.getDerivedStateFromError;if(typeof i=="function"){var r=e.value;n.payload=function(){return i(r)},n.callback=function(){xu(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){xu(t,e),typeof i!="function"&&(In===null?In=new Set([this]):In.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function ff(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new l0;var r=new Set;i.set(e,r)}else r=i.get(e),r===void 0&&(r=new Set,i.set(e,r));r.has(n)||(r.add(n),t=S0.bind(null,t,e,n),e.then(t,t))}function hf(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 pf(t,e,n,i,r){return t.mode&1?(t.flags|=65536,t.lanes=r,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=cn(-1,1),e.tag=2,An(n,e,1))),n.lanes|=1),t)}var u0=vn.ReactCurrentOwner,at=!1;function Je(t,e,n,i){e.child=t===null?Pg(e,null,n,i):Zi(e,t.child,n,i)}function gf(t,e,n,i,r){n=n.render;var s=e.ref;return Gi(e,r),i=Lc(t,e,n,i,s,r),n=Oc(),t!==null&&!at?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,gn(t,e,r)):(me&&n&&xc(e),e.flags|=1,Je(t,e,i,r),e.child)}function mf(t,e,n,i,r){if(t===null){var s=n.type;return typeof s=="function"&&!Vc(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,em(t,e,s,i,r)):(t=wo(n.type,null,i,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&r)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:rs,n(o,i)&&t.ref===e.ref)return gn(t,e,r)}return e.flags|=1,t=Fn(s,i),t.ref=e.ref,t.return=e,e.child=t}function em(t,e,n,i,r){if(t!==null){var s=t.memoizedProps;if(rs(s,i)&&t.ref===e.ref)if(at=!1,e.pendingProps=i=s,(t.lanes&r)!==0)t.flags&131072&&(at=!0);else return e.lanes=t.lanes,gn(t,e,r)}return bu(t,e,n,i,r)}function tm(t,e,n){var i=e.pendingProps,r=i.children,s=t!==null?t.memoizedState:null;if(i.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(Bi,dt),dt|=n;else{if(!(n&1073741824))return t=s!==null?s.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ue(Bi,dt),dt|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=s!==null?s.baseLanes:n,ue(Bi,dt),dt|=i}else s!==null?(i=s.baseLanes|n,e.memoizedState=null):i=n,ue(Bi,dt),dt|=i;return Je(t,e,r,n),e.child}function nm(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}
vendor: 8,021 bytes, line 40
40function bu(t,e,n,i,r){var s=ut(n)?di:Qe.current;return s=qi(e,s),Gi(e,r),n=Lc(t,e,n,i,s,r),i=Oc(),t!==null&&!at?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,gn(t,e,r)):(me&&i&&xc(e),e.flags|=1,Je(t,e,n,r),e.child)}function vf(t,e,n,i,r){if(ut(n)){var s=!0;Go(e)}else s=!1;if(Gi(e,r),e.stateNode===null)yo(t,e),qg(e,n,i),yu(e,n,i,r),i=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=kt(u):(u=ut(n)?di:Qe.current,u=qi(e,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==i||l!==u)&&df(e,o,i,u),wn=!1;var f=e.memoizedState;o.state=f,qo(e,i,o,r),l=e.memoizedState,a!==i||f!==l||lt.current||wn?(typeof c=="function"&&(vu(e,n,c,i),l=e.memoizedState),(a=wn||cf(e,n,a,i,f,l,u))?(d||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=i,e.memoizedState=l),o.props=i,o.state=l,o.context=u,i=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{o=e.stateNode,Rg(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:Pt(e.type,a),o.props=u,d=e.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=kt(l):(l=ut(n)?di:Qe.current,l=qi(e,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||f!==l)&&df(e,o,i,l),wn=!1,f=e.memoizedState,o.state=f,qo(e,i,o,r);var g=e.memoizedState;a!==d||f!==g||lt.current||wn?(typeof h=="function"&&(vu(e,n,h,i),g=e.memoizedState),(u=wn||cf(e,n,u,i,f,g,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,g,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,g,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=g),o.props=i,o.state=g,o.context=l,i=u):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),i=!1)}return wu(t,e,n,i,s,r)}function wu(t,e,n,i,r,s){nm(t,e);var o=(e.flags&128)!==0;if(!i&&!o)return r&&tf(e,n,!1),gn(t,e,s);i=e.stateNode,u0.current=e;var a=o&&typeof n.getDerivedStateFromError!="function"?null:i.render();return e.flags|=1,t!==null&&o?(e.child=Zi(e,t.child,null,s),e.child=Zi(e,null,a,s)):Je(t,e,a,s),e.memoizedState=i.state,r&&tf(e,n,!0),e.child}function im(t){var e=t.stateNode;e.pendingContext?ef(t,e.pendingContext,e.pendingContext!==e.context):e.context&&ef(t,e.context,!1),Tc(t,e.containerInfo)}function yf(t,e,n,i,r){return Ji(),wc(r),e.flags|=256,Je(t,e,n,i),e.child}var Su={dehydrated:null,treeContext:null,retryLane:0};function _u(t){return{baseLanes:t,cachePool:null,transitions:null}}function rm(t,e,n){var i=e.pendingProps,r=ye.current,s=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(r&2)!==0),a?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(r|=1),ue(ye,r&1),t===null)return gu(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=i.children,t=i.fallback,s?(i=e.mode,s=e.child,o={mode:"hidden",children:o},!(i&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Ma(o,i,0,null),t=li(t,i,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=_u(n),e.memoizedState=Su,t):Nc(e,o));if(r=t.memoizedState,r!==null&&(a=r.dehydrated,a!==null))return c0(t,e,o,i,a,r,n);if(s){s=i.fallback,o=e.mode,r=t.child,a=r.sibling;var l={mode:"hidden",children:i.children};return!(o&1)&&e.child!==r?(i=e.child,i.childLanes=0,i.pendingProps=l,e.deletions=null):(i=Fn(r,l),i.subtreeFlags=r.subtreeFlags&14680064),a!==null?s=Fn(a,s):(s=li(s,o,n,null),s.flags|=2),s.return=e,i.return=e,i.sibling=s,e.child=i,i=s,s=e.child,o=t.child.memoizedState,o=o===null?_u(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~n,e.memoizedState=Su,i}return s=t.child,t=s.sibling,i=Fn(s,{mode:"visible",children:i.children}),!(e.mode&1)&&(i.lanes=n),i.return=e,i.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=i,e.memoizedState=null,i}function Nc(t,e){return e=Ma({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Hs(t,e,n,i){return i!==null&&wc(i),Zi(e,t.child,null,n),t=Nc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function c0(t,e,n,i,r,s,o){if(n)return e.flags&256?(e.flags&=-257,i=fl(Error(D(422))),Hs(t,e,o,i)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=i.fallback,r=e.mode,i=Ma({mode:"visible",children:i.children},r,0,null),s=li(s,r,o,null),s.flags|=2,i.return=e,s.return=e,i.sibling=s,e.child=i,e.mode&1&&Zi(e,t.child,null,o),e.child.memoizedState=_u(o),e.memoizedState=Su,s);if(!(e.mode&1))return Hs(t,e,o,null);if(r.data==="$!"){if(i=r.nextSibling&&r.nextSibling.dataset,i)var a=i.dgst;return i=a,s=Error(D(419)),i=fl(s,i,void 0),Hs(t,e,o,i)}if(a=(o&t.childLanes)!==0,at||a){if(i=Ae,i!==null){switch(o&-o){case 4:r=2;break;case 16:r=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:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(i.suspendedLanes|o)?0:r,r!==0&&r!==s.retryLane&&(s.retryLane=r,pn(t,r),Dt(i,t,r,-1))}return $c(),i=fl(Error(D(421))),Hs(t,e,o,i)}return r.data==="$?"?(e.flags|=128,e.child=t.child,e=_0.bind(null,t),r._reactRetry=e,null):(t=s.treeContext,ht=Nn(r.nextSibling),pt=e,me=!0,Rt=null,t!==null&&(xt[bt++]=sn,xt[bt++]=on,xt[bt++]=fi,sn=t.id,on=t.overflow,fi=e),e=Nc(e,i.children),e.flags|=4096,e)}function xf(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),mu(t.return,e,n)}function hl(t,e,n,i,r){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=i,s.tail=n,s.tailMode=r)}function sm(t,e,n){var i=e.pendingProps,r=i.revealOrder,s=i.tail;if(Je(t,e,i.children,n),i=ye.current,i&2)i=i&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&xf(t,n,e);else if(t.tag===19)xf(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}i&=1}if(ue(ye,i),!(e.mode&1))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&Jo(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),hl(e,!1,r,n,s);break;case"backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Jo(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}hl(e,!0,n,null,s);break;case"together":hl(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function yo(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}
vendor: 4,903 bytes, line 40
40function gn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),pi|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(D(153));if(e.child!==null){for(t=e.child,n=Fn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Fn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function d0(t,e,n){switch(e.tag){case 3:im(e),Ji();break;case 5:Lg(e);break;case 1:ut(e.type)&&Go(e);break;case 4:Tc(e,e.stateNode.containerInfo);break;case 10:var i=e.type._context,r=e.memoizedProps.value;ue(Ko,i._currentValue),i._currentValue=r;break;case 13:if(i=e.memoizedState,i!==null)return i.dehydrated!==null?(ue(ye,ye.current&1),e.flags|=128,null):n&e.child.childLanes?rm(t,e,n):(ue(ye,ye.current&1),t=gn(t,e,n),t!==null?t.sibling:null);ue(ye,ye.current&1);break;case 19:if(i=(n&e.childLanes)!==0,t.flags&128){if(i)return sm(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ue(ye,ye.current),i)break;return null;case 22:case 23:return e.lanes=0,tm(t,e,n)}return gn(t,e,n)}var om,ku,am,lm;om=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}};ku=function(){};am=function(t,e,n,i){var r=t.memoizedProps;if(r!==i){t=e.stateNode,si(Xt.current);var s=null;switch(n){case"input":r=Gl(t,r),i=Gl(t,i),s=[];break;case"select":r=we({},r,{value:void 0}),i=we({},i,{value:void 0}),s=[];break;case"textarea":r=Kl(t,r),i=Kl(t,i),s=[];break;default:typeof r.onClick!="function"&&typeof i.onClick=="function"&&(t.onclick=Wo)}ql(n,i);var o;n=null;for(u in r)if(!i.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var a=r[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(qr.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in i){var l=i[u];if(a=r!=null?r[u]:void 0,i.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(qr.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ce("scroll",t),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(e.updateQueue=u)&&(e.flags|=4)}};lm=function(t,e,n,i){n!==i&&(e.flags|=4)};function br(t,e){if(!me)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 i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function Ue(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&14680064,i|=r.flags&14680064,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function f0(t,e,n){var i=e.pendingProps;switch(bc(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(e),null;case 1:return ut(e.type)&&Uo(),Ue(e),null;case 3:return i=e.stateNode,er(),de(lt),de(Qe),Mc(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&($s(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Rt!==null&&(Ou(Rt),Rt=null))),ku(t,e),Ue(e),null;case 5:Pc(e);var r=si(us.current);if(n=e.type,t!==null&&e.stateNode!=null)am(t,e,n,i,r),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!i){if(e.stateNode===null)throw Error(D(166));return Ue(e),null}if(t=si(Xt.current),$s(e)){i=e.stateNode,n=e.type;var s=e.memoizedProps;switch(i[Gt]=e,i[as]=s,t=(e.mode&1)!==0,n){case"dialog":ce("cancel",i),ce("close",i);break;case"iframe":case"object":case"embed":ce("load",i);break;case"video":case"audio":for(r=0;r<Lr.length;r++)ce(Lr[r],i);break;case"source":ce("error",i);break;case"img":case"image":case"link":ce("error",i),ce("load",i);break;case"details":ce("toggle",i);break;case"input":Td(i,s),ce("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},ce("invalid",i);break;case"textarea":Md(i,s),ce("invalid",i)}ql(n,s),r=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];
vendor: 32,436 bytes, line 40
40o==="children"?typeof a=="string"?i.textContent!==a&&(s.suppressHydrationWarning!==!0&&Bs(i.textContent,a,t),r=["children",a]):typeof a=="number"&&i.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Bs(i.textContent,a,t),r=["children",""+a]):qr.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ce("scroll",i)}switch(n){case"input":Os(i),Pd(i,s,!0);break;case"textarea":Os(i),Rd(i);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(i.onclick=Wo)}i=r,e.updateQueue=i,i!==null&&(e.flags|=4)}else{o=r.nodeType===9?r:r.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Ap(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=o.createElement(n,{is:i.is}):(t=o.createElement(n),n==="select"&&(o=t,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):t=o.createElementNS(t,n),t[Gt]=e,t[as]=i,om(t,e,!1,!1),e.stateNode=t;e:{switch(o=Jl(n,i),n){case"dialog":ce("cancel",t),ce("close",t),r=i;break;case"iframe":case"object":case"embed":ce("load",t),r=i;break;case"video":case"audio":for(r=0;r<Lr.length;r++)ce(Lr[r],t);r=i;break;case"source":ce("error",t),r=i;break;case"img":case"image":case"link":ce("error",t),ce("load",t),r=i;break;case"details":ce("toggle",t),r=i;break;case"input":Td(t,i),r=Gl(t,i),ce("invalid",t);break;case"option":r=i;break;case"select":t._wrapperState={wasMultiple:!!i.multiple},r=we({},i,{value:void 0}),ce("invalid",t);break;case"textarea":Md(t,i),r=Kl(t,i),ce("invalid",t);break;default:r=i}ql(n,r),a=r;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Fp(t,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ip(t,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Jr(t,l):typeof l=="number"&&Jr(t,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(qr.hasOwnProperty(s)?l!=null&&s==="onScroll"&&ce("scroll",t):l!=null&&sc(t,s,l,o))}switch(n){case"input":Os(t),Pd(t,i,!1);break;case"textarea":Os(t),Rd(t);break;case"option":i.value!=null&&t.setAttribute("value",""+$n(i.value));break;case"select":t.multiple=!!i.multiple,s=i.value,s!=null?Vi(t,!!i.multiple,s,!1):i.defaultValue!=null&&Vi(t,!!i.multiple,i.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=Wo)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Ue(e),null;case 6:if(t&&e.stateNode!=null)lm(t,e,t.memoizedProps,i);else{if(typeof i!="string"&&e.stateNode===null)throw Error(D(166));if(n=si(us.current),si(Xt.current),$s(e)){if(i=e.stateNode,n=e.memoizedProps,i[Gt]=e,(s=i.nodeValue!==n)&&(t=pt,t!==null))switch(t.tag){case 3:Bs(i.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Bs(i.nodeValue,n,(t.mode&1)!==0)}s&&(e.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Gt]=e,e.stateNode=i}return Ue(e),null;case 13:if(de(ye),i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(me&&ht!==null&&e.mode&1&&!(e.flags&128))Eg(),Ji(),e.flags|=98560,s=!1;else if(s=$s(e),i!==null&&i.dehydrated!==null){if(t===null){if(!s)throw Error(D(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(D(317));s[Gt]=e}else Ji(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Ue(e),s=!1}else Rt!==null&&(Ou(Rt),Rt=null),s=!0;if(!s)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(i=i!==null,i!==(t!==null&&t.memoizedState!==null)&&i&&(e.child.flags|=8192,e.mode&1&&(t===null||ye.current&1?Le===0&&(Le=3):$c())),e.updateQueue!==null&&(e.flags|=4),Ue(e),null);case 4:return er(),ku(t,e),t===null&&ss(e.stateNode.containerInfo),Ue(e),null;case 10:return kc(e.type._context),Ue(e),null;case 17:return ut(e.type)&&Uo(),Ue(e),null;case 19:if(de(ye),s=e.memoizedState,s===null)return Ue(e),null;if(i=(e.flags&128)!==0,o=s.rendering,o===null)if(i)br(s,!1);else{if(Le!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=Jo(t),o!==null){for(e.flags|=128,br(s,!1),i=o.updateQueue,i!==null&&(e.updateQueue=i,e.flags|=4),e.subtreeFlags=0,i=n,n=e.child;n!==null;)s=n,t=i,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=t,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,t=o.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return ue(ye,ye.current&1|2),e.child}t=t.sibling}s.tail!==null&&Ee()>nr&&(e.flags|=128,i=!0,br(s,!1),e.lanes=4194304)}else{if(!i)if(t=Jo(o),t!==null){if(e.flags|=128,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),br(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!me)return Ue(e),null}else 2*Ee()-s.renderingStartTime>nr&&n!==1073741824&&(e.flags|=128,i=!0,br(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Ee(),e.sibling=null,n=ye.current,ue(ye,i?n&1|2:n&1),e):(Ue(e),null);case 22:case 23:return Bc(),i=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?dt&1073741824&&(Ue(e),e.subtreeFlags&6&&(e.flags|=8192)):Ue(e),null;case 24:return null;case 25:return null}throw Error(D(156,e.tag))}function h0(t,e){switch(bc(e),e.tag){case 1:return ut(e.type)&&Uo(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return er(),de(lt),de(Qe),Mc(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Pc(e),null;case 13:if(de(ye),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(D(340));Ji()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return de(ye),null;case 4:return er(),null;case 10:return kc(e.type._context),null;case 22:case 23:return Bc(),null;case 24:return null;default:return null}}var Ws=!1,Xe=!1,p0=typeof WeakSet=="function"?WeakSet:Set,F=null;function Fi(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){ke(t,e,i)}else n.current=null}function Cu(t,e,n){try{n()}catch(i){ke(t,e,i)}}var bf=!1;function g0(t,e){if(lu=$o,t=hg(),yc(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=t,f=null;t:for(;;){for(var h;d!==n||r!==0&&d.nodeType!==3||(a=o+r),d!==s||i!==0&&d.nodeType!==3||(l=o+i),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===t)break t;if(f===n&&++u===r&&(a=o),f===s&&++c===i&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(uu={focusedElem:t,selectionRange:n},$o=!1,F=e;F!==null;)if(e=F,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,F=t;else for(;F!==null;){e=F;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,b=g.memoizedState,p=e.stateNode,m=p.getSnapshotBeforeUpdate(e.elementType===e.type?v:Pt(e.type,v),b);p.__reactInternalSnapshotBeforeUpdate=m}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(D(163))}}catch(S){ke(e,e.return,S)}if(t=e.sibling,t!==null){t.return=e.return,F=t;break}F=e.return}return g=bf,bf=!1,g}function Hr(t,e,n){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&t)===t){var s=r.destroy;r.destroy=void 0,s!==void 0&&Cu(e,n,s)}r=r.next}while(r!==i)}}function Ta(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 i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function Eu(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 um(t){var e=t.alternate;e!==null&&(t.alternate=null,um(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Gt],delete e[as],delete e[fu],delete e[qx],delete e[Jx])),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 cm(t){return t.tag===5||t.tag===3||t.tag===4}function wf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||cm(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 Tu(t,e,n){var i=t.tag;if(i===5||i===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=Wo));else if(i!==4&&(t=t.child,t!==null))for(Tu(t,e,n),t=t.sibling;t!==null;)Tu(t,e,n),t=t.sibling}function Pu(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(Pu(t,e,n),t=t.sibling;t!==null;)Pu(t,e,n),t=t.sibling}var Fe=null,Mt=!1;function xn(t,e,n){for(n=n.child;n!==null;)dm(t,e,n),n=n.sibling}function dm(t,e,n){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(xa,n)}catch{}switch(n.tag){case 5:Xe||Fi(n,e);case 6:var i=Fe,r=Mt;Fe=null,xn(t,e,n),Fe=i,Mt=r,Fe!==null&&(Mt?(t=Fe,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Fe.removeChild(n.stateNode));break;case 18:Fe!==null&&(Mt?(t=Fe,n=n.stateNode,t.nodeType===8?ol(t.parentNode,n):t.nodeType===1&&ol(t,n),ns(t)):ol(Fe,n.stateNode));break;case 4:i=Fe,r=Mt,Fe=n.stateNode.containerInfo,Mt=!0,xn(t,e,n),Fe=i,Mt=r;break;case 0:case 11:case 14:case 15:if(!Xe&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var s=r,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Cu(n,e,o),r=r.next}while(r!==i)}xn(t,e,n);break;case 1:if(!Xe&&(Fi(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(a){ke(n,e,a)}xn(t,e,n);break;case 21:xn(t,e,n);break;case 22:n.mode&1?(Xe=(i=Xe)||n.memoizedState!==null,xn(t,e,n),Xe=i):xn(t,e,n);break;default:xn(t,e,n)}}function Sf(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new p0),e.forEach(function(i){var r=k0.bind(null,t,i);n.has(i)||(n.add(i),i.then(r,r))})}}function Tt(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i];try{var s=t,o=e,a=o;e:for(;a!==null;){switch(a.tag){case 5:Fe=a.stateNode,Mt=!1;break e;case 3:Fe=a.stateNode.containerInfo,Mt=!0;break e;case 4:Fe=a.stateNode.containerInfo,Mt=!0;break e}a=a.return}if(Fe===null)throw Error(D(160));dm(s,o,r),Fe=null,Mt=!1;var l=r.alternate;l!==null&&(l.return=null),r.return=null}catch(u){ke(r,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)fm(e,t),e=e.sibling}function fm(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Tt(e,t),$t(t),i&4){try{Hr(3,t,t.return),Ta(3,t)}catch(v){ke(t,t.return,v)}try{Hr(5,t,t.return)}catch(v){ke(t,t.return,v)}}break;case 1:Tt(e,t),$t(t),i&512&&n!==null&&Fi(n,n.return);break;case 5:if(Tt(e,t),$t(t),i&512&&n!==null&&Fi(n,n.return),t.flags&32){var r=t.stateNode;try{Jr(r,"")}catch(v){ke(t,t.return,v)}}if(i&4&&(r=t.stateNode,r!=null)){var s=t.memoizedProps,o=n!==null?n.memoizedProps:s,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&jp(r,s),Jl(a,o);var u=Jl(a,s);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?Fp(r,d):c==="dangerouslySetInnerHTML"?Ip(r,d):c==="children"?Jr(r,d):sc(r,c,d,u)}switch(a){case"input":Yl(r,s);break;case"textarea":Np(r,s);break;case"select":var f=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?Vi(r,!!s.multiple,h,!1):f!==!!s.multiple&&(s.defaultValue!=null?Vi(r,!!s.multiple,s.defaultValue,!0):Vi(r,!!s.multiple,s.multiple?[]:"",!1))}r[as]=s}catch(v){ke(t,t.return,v)}}break;case 6:if(Tt(e,t),$t(t),i&4){if(t.stateNode===null)throw Error(D(162));r=t.stateNode,s=t.memoizedProps;try{r.nodeValue=s}catch(v){ke(t,t.return,v)}}break;case 3:if(Tt(e,t),$t(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{ns(e.containerInfo)}catch(v){ke(t,t.return,v)}break;case 4:Tt(e,t),$t(t);break;case 13:Tt(e,t),$t(t),r=t.child,r.flags&8192&&(s=r.memoizedState!==null,r.stateNode.isHidden=s,!s||r.alternate!==null&&r.alternate.memoizedState!==null||(zc=Ee())),i&4&&Sf(t);break;case 22:if(c=n!==null&&n.memoizedState!==null,t.mode&1?(Xe=(u=Xe)||c,Tt(e,t),Xe=u):Tt(e,t),$t(t),i&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!c&&t.mode&1)for(F=t,c=t.child;c!==null;){for(d=F=c;F!==null;){switch(f=F,h=f.child,f.tag){case 0:case 11:case 14:case 15:Hr(4,f,f.return);break;case 1:Fi(f,f.return);var g=f.stateNode;if(typeof g.componentWillUnmount=="function"){i=f,n=f.return;try{e=i,g.props=e.memoizedProps,g.state=e.memoizedState,g.componentWillUnmount()}catch(v){ke(i,n,v)}}break;case 5:Fi(f,f.return);break;case 22:if(f.memoizedState!==null){kf(d);continue}}h!==null?(h.return=f,F=h):kf(d)}c=c.sibling}e:for(c=null,d=t;;){if(d.tag===5){if(c===null){c=d;try{r=d.stateNode,u?(s=r.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=zp("display",o))}catch(v){ke(t,t.return,v)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(v){ke(t,t.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Tt(e,t),$t(t),i&4&&Sf(t);break;case 21:break;default:Tt(e,t),$t(t)}}function $t(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(cm(n)){var i=n;break e}n=n.return}throw Error(D(160))}switch(i.tag){case 5:var r=i.stateNode;i.flags&32&&(Jr(r,""),i.flags&=-33);var s=wf(t);Pu(t,s,r);break;case 3:case 4:var o=i.stateNode.containerInfo,a=wf(t);Tu(t,a,o);break;default:throw Error(D(161))}}catch(l){ke(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function m0(t,e,n){F=t,hm(t)}function hm(t,e,n){for(var i=(t.mode&1)!==0;F!==null;){var r=F,s=r.child;if(r.tag===22&&i){var o=r.memoizedState!==null||Ws;if(!o){var a=r.alternate,l=a!==null&&a.memoizedState!==null||Xe;a=Ws;var u=Xe;if(Ws=o,(Xe=l)&&!u)for(F=r;F!==null;)o=F,l=o.child,o.tag===22&&o.memoizedState!==null?Cf(r):l!==null?(l.return=o,F=l):Cf(r);for(;s!==null;)F=s,hm(s),s=s.sibling;F=r,Ws=a,Xe=u}_f(t)}else r.subtreeFlags&8772&&s!==null?(s.return=r,F=s):_f(t)}}function _f(t){for(;F!==null;){var e=F;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Xe||Ta(5,e);break;case 1:var i=e.stateNode;if(e.flags&4&&!Xe)if(n===null)i.componentDidMount();else{var r=e.elementType===e.type?n.memoizedProps:Pt(e.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var s=e.updateQueue;s!==null&&af(e,s,i);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}af(e,o,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&ns(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}Xe||e.flags&512&&Eu(e)}catch(f){ke(e,e.return,f)}}if(e===t){F=null;break}if(n=e.sibling,n!==null){n.return=e.return,F=n;break}F=e.return}}function kf(t){for(;F!==null;){var e=F;if(e===t){F=null;break}var n=e.sibling;if(n!==null){n.return=e.return,F=n;break}F=e.return}}function Cf(t){for(;F!==null;){var e=F;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{Ta(4,e)}catch(l){ke(e,n,l)}break;case 1:var i=e.stateNode;if(typeof i.componentDidMount=="function"){var r=e.return;try{i.componentDidMount()}catch(l){ke(e,r,l)}}var s=e.return;try{Eu(e)}catch(l){ke(e,s,l)}break;case 5:var o=e.return;try{Eu(e)}catch(l){ke(e,o,l)}}}catch(l){ke(e,e.return,l)}if(e===t){F=null;break}var a=e.sibling;if(a!==null){a.return=e.return,F=a;break}F=e.return}}var v0=Math.ceil,ta=vn.ReactCurrentDispatcher,Ac=vn.ReactCurrentOwner,_t=vn.ReactCurrentBatchConfig,ee=0,Ae=null,Pe=null,Be=0,dt=0,Bi=Gn(0),Le=0,hs=null,pi=0,Pa=0,Ic=0,Wr=null,st=null,zc=0,nr=1/0,tn=null,na=!1,Mu=null,In=null,Us=!1,En=null,ia=0,Ur=0,Ru=null,xo=-1,bo=0;function Ze(){return ee&6?Ee():xo!==-1?xo:xo=Ee()}function zn(t){return t.mode&1?ee&2&&Be!==0?Be&-Be:e0.transition!==null?(bo===0&&(bo=qp()),bo):(t=oe,t!==0||(t=window.event,t=t===void 0?16:rg(t.type)),t):1}function Dt(t,e,n,i){if(50<Ur)throw Ur=0,Ru=null,Error(D(185));Ss(t,n,i),(!(ee&2)||t!==Ae)&&(t===Ae&&(!(ee&2)&&(Pa|=n),Le===4&&kn(t,Be)),ct(t,i),n===1&&ee===0&&!(e.mode&1)&&(nr=Ee()+500,ka&&Yn()))}function ct(t,e){var n=t.callbackNode;ex(t,e);var i=Bo(t,t===Ae?Be:0);if(i===0)n!==null&&Dd(n),t.callbackNode=null,t.callbackPriority=0;else if(e=i&-i,t.callbackPriority!==e){if(n!=null&&Dd(n),e===1)t.tag===0?Zx(Ef.bind(null,t)):_g(Ef.bind(null,t)),Kx(function(){!(ee&6)&&Yn()}),n=null;else{switch(Jp(i)){case 1:n=cc;break;case 4:n=Kp;break;case 16:n=Fo;break;case 536870912:n=Qp;break;default:n=Fo}n=wm(n,pm.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function pm(t,e){if(xo=-1,bo=0,ee&6)throw Error(D(327));var n=t.callbackNode;if(Yi()&&t.callbackNode!==n)return null;var i=Bo(t,t===Ae?Be:0);if(i===0)return null;if(i&30||i&t.expiredLanes||e)e=ra(t,i);else{e=i;var r=ee;ee|=2;var s=mm();(Ae!==t||Be!==e)&&(tn=null,nr=Ee()+500,ai(t,e));do try{b0();break}catch(a){gm(t,a)}while(!0);_c(),ta.current=s,ee=r,Pe!==null?e=0:(Ae=null,Be=0,e=Le)}if(e!==0){if(e===2&&(r=iu(t),r!==0&&(i=r,e=Lu(t,r))),e===1)throw n=hs,ai(t,0),kn(t,i),ct(t,Ee()),n;if(e===6)kn(t,i);else{if(r=t.current.alternate,!(i&30)&&!y0(r)&&(e=ra(t,i),e===2&&(s=iu(t),s!==0&&(i=s,e=Lu(t,s))),e===1))throw n=hs,ai(t,0),kn(t,i),ct(t,Ee()),n;switch(t.finishedWork=r,t.finishedLanes=i,e){case 0:case 1:throw Error(D(345));case 2:ei(t,st,tn);break;case 3:if(kn(t,i),(i&130023424)===i&&(e=zc+500-Ee(),10<e)){if(Bo(t,0)!==0)break;if(r=t.suspendedLanes,(r&i)!==i){Ze(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=du(ei.bind(null,t,st,tn),e);break}ei(t,st,tn);break;case 4:if(kn(t,i),(i&4194240)===i)break;for(e=t.eventTimes,r=-1;0<i;){var o=31-Ot(i);s=1<<o,o=e[o],o>r&&(r=o),i&=~s}if(i=r,i=Ee()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*v0(i/1960))-i,10<i){t.timeoutHandle=du(ei.bind(null,t,st,tn),i);break}ei(t,st,tn);break;case 5:ei(t,st,tn);break;default:throw Error(D(329))}}}return ct(t,Ee()),t.callbackNode===n?pm.bind(null,t):null}function Lu(t,e){var n=Wr;return t.current.memoizedState.isDehydrated&&(ai(t,e).flags|=256),t=ra(t,e),t!==2&&(e=st,st=n,e!==null&&Ou(e)),t}function Ou(t){st===null?st=t:st.push.apply(st,t)}function y0(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var i=0;i<n.length;i++){var r=n[i],s=r.getSnapshot;r=r.value;try{if(!Nt(s(),r))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 kn(t,e){for(e&=~Ic,e&=~Pa,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Ot(e),i=1<<n;t[n]=-1,e&=~i}}function Ef(t){if(ee&6)throw Error(D(327));Yi();var e=Bo(t,0);if(!(e&1))return ct(t,Ee()),null;var n=ra(t,e);if(t.tag!==0&&n===2){var i=iu(t);i!==0&&(e=i,n=Lu(t,i))}if(n===1)throw n=hs,ai(t,0),kn(t,e),ct(t,Ee()),n;if(n===6)throw Error(D(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,ei(t,st,tn),ct(t,Ee()),null}function Fc(t,e){var n=ee;ee|=1;try{return t(e)}finally{ee=n,ee===0&&(nr=Ee()+500,ka&&Yn())}}function gi(t){En!==null&&En.tag===0&&!(ee&6)&&Yi();var e=ee;ee|=1;var n=_t.transition,i=oe;try{if(_t.transition=null,oe=1,t)return t()}finally{oe=i,_t.transition=n,ee=e,!(ee&6)&&Yn()}}function Bc(){dt=Bi.current,de(Bi)}function ai(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,Xx(n)),Pe!==null)for(n=Pe.return;n!==null;){var i=n;switch(bc(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&Uo();break;case 3:er(),de(lt),de(Qe),Mc();break;case 5:Pc(i);break;case 4:er();break;case 13:de(ye);break;case 19:de(ye);break;case 10:kc(i.type._context);break;case 22:case 23:Bc()}n=n.return}if(Ae=t,Pe=t=Fn(t.current,null),Be=dt=e,Le=0,hs=null,Ic=Pa=pi=0,st=Wr=null,ri!==null){for(e=0;e<ri.length;e++)if(n=ri[e],i=n.interleaved,i!==null){n.interleaved=null;var r=i.next,s=n.pending;if(s!==null){var o=s.next;s.next=r,i.next=o}n.pending=i}ri=null}return t}function gm(t,e){do{var n=Pe;try{if(_c(),mo.current=ea,Zo){for(var i=xe.memoizedState;i!==null;){var r=i.queue;r!==null&&(r.pending=null),i=i.next}Zo=!1}if(hi=0,Ne=Re=xe=null,Vr=!1,cs=0,Ac.current=null,n===null||n.return===null){Le=1,hs=e,Pe=null;break}e:{var s=t,o=n.return,a=n,l=e;if(e=Be,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=hf(o);if(h!==null){h.flags&=-257,pf(h,o,a,s,e),h.mode&1&&ff(s,u,e),e=h,l=u;var g=e.updateQueue;if(g===null){var v=new Set;v.add(l),e.updateQueue=v}else g.add(l);break e}else{if(!(e&1)){ff(s,u,e),$c();break e}l=Error(D(426))}}else if(me&&a.mode&1){var b=hf(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),pf(b,o,a,s,e),wc(tr(l,a));break e}}s=l=tr(l,a),Le!==4&&(Le=2),Wr===null?Wr=[s]:Wr.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,e&=-e,s.lanes|=e;var p=Jg(s,l,e);of(s,p);break e;case 1:a=l;var m=s.type,x=s.stateNode;if(!(s.flags&128)&&(typeof m.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(In===null||!In.has(x)))){s.flags|=65536,e&=-e,s.lanes|=e;var S=Zg(s,a,e);of(s,S);break e}}s=s.return}while(s!==null)}ym(n)}catch(_){e=_,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function mm(){var t=ta.current;return ta.current=ea,t===null?ea:t}function $c(){(Le===0||Le===3||Le===2)&&(Le=4),Ae===null||!(pi&268435455)&&!(Pa&268435455)||kn(Ae,Be)}function ra(t,e){var n=ee;ee|=2;var i=mm();(Ae!==t||Be!==e)&&(tn=null,ai(t,e));do try{x0();break}catch(r){gm(t,r)}while(!0);if(_c(),ee=n,ta.current=i,Pe!==null)throw Error(D(261));return Ae=null,Be=0,Le}function x0(){for(;Pe!==null;)vm(Pe)}function b0(){for(;Pe!==null&&!Uy();)vm(Pe)}function vm(t){var e=bm(t.alternate,t,dt);t.memoizedProps=t.pendingProps,e===null?ym(t):Pe=e,Ac.current=null}function ym(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=h0(n,e),n!==null){n.flags&=32767,Pe=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Le=6,Pe=null;return}}else if(n=f0(n,e,dt),n!==null){Pe=n;return}if(e=e.sibling,e!==null){Pe=e;return}Pe=e=t}while(e!==null);Le===0&&(Le=5)}function ei(t,e,n){var i=oe,r=_t.transition;try{_t.transition=null,oe=1,w0(t,e,n,i)}finally{_t.transition=r,oe=i}return null}function w0(t,e,n,i){do Yi();while(En!==null);if(ee&6)throw Error(D(327));n=t.finishedWork;var r=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(D(177));t.callbackNode=null,t.callbackPriority=0;var s=n.lanes|n.childLanes;if(tx(t,s),t===Ae&&(Pe=Ae=null,Be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Us||(Us=!0,wm(Fo,function(){return Yi(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=_t.transition,_t.transition=null;var o=oe;oe=1;var a=ee;ee|=4,Ac.current=null,g0(t,n),fm(n,t),$x(uu),$o=!!lu,uu=lu=null,t.current=n,m0(n),Gy(),ee=a,oe=o,_t.transition=s}else t.current=n;if(Us&&(Us=!1,En=t,ia=r),s=t.pendingLanes,s===0&&(In=null),Ky(n.stateNode),ct(t,Ee()),e!==null)for(i=t.onRecoverableError,n=0;n<e.length;n++)r=e[n],i(r.value,{componentStack:r.stack,digest:r.digest});if(na)throw na=!1,t=Mu,Mu=null,t;return ia&1&&t.tag!==0&&Yi(),s=t.pendingLanes,s&1?t===Ru?Ur++:(Ur=0,Ru=t):Ur=0,Yn(),null}function Yi(){if(En!==null){var t=Jp(ia),e=_t.transition,n=oe;try{if(_t.transition=null,oe=16>t?16:t,En===null)var i=!1;else{if(t=En,En=null,ia=0,ee&6)throw Error(D(331));var r=ee;for(ee|=4,F=t.current;F!==null;){var s=F,o=s.child;if(F.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(F=u;F!==null;){var c=F;switch(c.tag){case 0:case 11:case 15:Hr(8,c,s)}var d=c.child;if(d!==null)d.return=c,F=d;else for(;F!==null;){c=F;var f=c.sibling,h=c.return;if(um(c),c===u){F=null;break}if(f!==null){f.return=h,F=f;break}F=h}}}var g=s.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var b=v.sibling;v.sibling=null,v=b}while(v!==null)}}F=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,F=o;else e:for(;F!==null;){if(s=F,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Hr(9,s,s.return)}var p=s.sibling;if(p!==null){p.return=s.return,F=p;break e}F=s.return}}var m=t.current;for(F=m;F!==null;){o=F;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,F=x;else e:for(o=m;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ta(9,a)}}catch(_){ke(a,a.return,_)}if(a===o){F=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,F=S;break e}F=a.return}}if(ee=r,Yn(),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(xa,t)}catch{}i=!0}return i}finally{oe=n,_t.transition=e}}return!1}function Tf(t,e,n){e=tr(n,e),e=Jg(t,e,1),t=An(t,e,1),e=Ze(),t!==null&&(Ss(t,1,e),ct(t,e))}function ke(t,e,n){if(t.tag===3)Tf(t,t,n);else for(;e!==null;){if(e.tag===3){Tf(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(In===null||!In.has(i))){t=tr(n,t),t=Zg(e,t,1),e=An(e,t,1),t=Ze(),e!==null&&(Ss(e,1,t),ct(e,t));break}}e=e.return}}function S0(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),e=Ze(),t.pingedLanes|=t.suspendedLanes&n,Ae===t&&(Be&n)===n&&(Le===4||Le===3&&(Be&130023424)===Be&&500>Ee()-zc?ai(t,0):Ic|=n),ct(t,e)}function xm(t,e){e===0&&(t.mode&1?(e=Ns,Ns<<=1,!(Ns&130023424)&&(Ns=4194304)):e=1);var n=Ze();t=pn(t,e),t!==null&&(Ss(t,e,n),ct(t,n))}function _0(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),xm(t,n)}function k0(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(D(314))}i!==null&&i.delete(e),xm(t,n)}var bm;bm=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||lt.current)at=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return at=!1,d0(t,e,n);at=!!(t.flags&131072)}else at=!1,me&&e.flags&1048576&&kg(e,Xo,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;yo(t,e),t=e.pendingProps;var r=qi(e,Qe.current);Gi(e,n),r=Lc(null,e,i,t,r,n);var s=Oc();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ut(i)?(s=!0,Go(e)):s=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Ec(e),r.updater=Ea,e.stateNode=r,r._reactInternals=e,yu(e,i,t,n),e=wu(null,e,i,!0,s,n)):(e.tag=0,me&&s&&xc(e),Je(null,e,r,n),e=e.child),e;case 16:i=e.elementType;e:{switch(yo(t,e),t=e.pendingProps,r=i._init,i=r(i._payload),e.type=i,r=e.tag=E0(i),t=Pt(i,t),r){case 0:e=bu(null,e,i,t,n);break e;case 1:e=vf(null,e,i,t,n);break e;case 11:e=gf(null,e,i,t,n);break e;case 14:e=mf(null,e,i,Pt(i.type,t),n);break e}throw Error(D(306,i,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Pt(i,r),bu(t,e,i,r,n);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Pt(i,r),vf(t,e,i,r,n);case 3:e:{if(im(e),t===null)throw Error(D(387));i=e.pendingProps,s=e.memoizedState,r=s.element,Rg(t,e),qo(e,i,null,n);var o=e.memoizedState;if(i=o.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){r=tr(Error(D(423)),e),e=yf(t,e,i,n,r);break e}else if(i!==r){r=tr(Error(D(424)),e),e=yf(t,e,i,n,r);break e}else for(ht=Nn(e.stateNode.containerInfo.firstChild),pt=e,me=!0,Rt=null,n=Pg(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ji(),i===r){e=gn(t,e,n);break e}Je(t,e,i,n)}e=e.child}return e;case 5:return Lg(e),t===null&&gu(e),i=e.type,r=e.pendingProps,s=t!==null?t.memoizedProps:null,o=r.children,cu(i,r)?o=null:s!==null&&cu(i,s)&&(e.flags|=32),nm(t,e),Je(t,e,o,n),e.child;case 6:return t===null&&gu(e),null;case 13:return rm(t,e,n);case 4:return Tc(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Zi(e,null,i,n):Je(t,e,i,n),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Pt(i,r),gf(t,e,i,r,n);case 7:return Je(t,e,e.pendingProps,n),e.child;case 8:return Je(t,e,e.pendingProps.children,n),e.child;case 12:return Je(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(i=e.type._context,r=e.pendingProps,s=e.memoizedProps,o=r.value,ue(Ko,i._currentValue),i._currentValue=o,s!==null)if(Nt(s.value,o)){if(s.children===r.children&&!lt.current){e=gn(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===i){if(s.tag===1){l=cn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),mu(s.return,n,e),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(D(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),mu(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Je(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps.children,Gi(e,n),r=kt(r),i=i(r),e.flags|=1,Je(t,e,i,n),e.child;case 14:return i=e.type,r=Pt(i,e.pendingProps),r=Pt(i.type,r),mf(t,e,i,r,n);case 15:return em(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Pt(i,r),yo(t,e),e.tag=1,ut(i)?(t=!0,Go(e)):t=!1,Gi(e,n),qg(e,i,r),yu(e,i,r,n),wu(null,e,i,!0,t,n);case 19:return sm(t,e,n);case 22:return tm(t,e,n)}throw Error(D(156,e.tag))};function wm(t,e){return Xp(t,e)}function C0(t,e,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(t,e,n,i){return new C0(t,e,n,i)}function Vc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function E0(t){if(typeof t=="function")return Vc(t)?1:0;if(t!=null){if(t=t.$$typeof,t===ac)return 11;if(t===lc)return 14}return 2}function Fn(t,e){var n=t.alternate;return n===null?(n=wt(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.deleti
vendor: 5,099 bytes, line 40
40ons=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 wo(t,e,n,i,r,s){var o=2;if(i=t,typeof t=="function")Vc(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Ri:return li(n.children,r,s,e);case oc:o=8,r|=8;break;case Vl:return t=wt(12,n,e,r|2),t.elementType=Vl,t.lanes=s,t;case Hl:return t=wt(13,n,e,r),t.elementType=Hl,t.lanes=s,t;case Wl:return t=wt(19,n,e,r),t.elementType=Wl,t.lanes=s,t;case Lp:return Ma(n,r,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Mp:o=10;break e;case Rp:o=9;break e;case ac:o=11;break e;case lc:o=14;break e;case bn:o=16,i=null;break e}throw Error(D(130,t==null?t:typeof t,""))}return e=wt(o,n,e,r),e.elementType=t,e.type=i,e.lanes=s,e}function li(t,e,n,i){return t=wt(7,t,i,e),t.lanes=n,t}function Ma(t,e,n,i){return t=wt(22,t,i,e),t.elementType=Lp,t.lanes=n,t.stateNode={isHidden:!1},t}function pl(t,e,n){return t=wt(6,t,null,e),t.lanes=n,t}function gl(t,e,n){return e=wt(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function T0(t,e,n,i,r){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=Ka(0),this.expirationTimes=Ka(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ka(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Hc(t,e,n,i,r,s,o,a,l){return t=new T0(t,e,n,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=wt(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ec(s),t}function P0(t,e,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Mi,key:i==null?null:""+i,children:t,containerInfo:e,implementation:n}}function Sm(t){if(!t)return Vn;t=t._reactInternals;e:{if(bi(t)!==t||t.tag!==1)throw Error(D(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(ut(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(D(171))}if(t.tag===1){var n=t.type;if(ut(n))return Sg(t,n,e)}return e}function _m(t,e,n,i,r,s,o,a,l){return t=Hc(n,i,!0,t,r,s,o,a,l),t.context=Sm(null),n=t.current,i=Ze(),r=zn(n),s=cn(i,r),s.callback=e??null,An(n,s,r),t.current.lanes=r,Ss(t,r,i),ct(t,i),t}function Ra(t,e,n,i){var r=e.current,s=Ze(),o=zn(r);return n=Sm(n),e.context===null?e.context=n:e.pendingContext=n,e=cn(s,o),e.payload={element:t},i=i===void 0?null:i,i!==null&&(e.callback=i),t=An(r,e,o),t!==null&&(Dt(t,r,o,s),go(t,r,o)),o}function sa(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 Pf(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Wc(t,e){Pf(t,e),(t=t.alternate)&&Pf(t,e)}function M0(){return null}var km=typeof reportError=="function"?reportError:function(t){console.error(t)};function Uc(t){this._internalRoot=t}La.prototype.render=Uc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(D(409));Ra(t,e,null,null)};La.prototype.unmount=Uc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;gi(function(){Ra(null,t,null,null)}),e[hn]=null}};function La(t){this._internalRoot=t}La.prototype.unstable_scheduleHydration=function(t){if(t){var e=tg();t={blockedOn:null,target:t,priority:e};for(var n=0;n<_n.length&&e!==0&&e<_n[n].priority;n++);_n.splice(n,0,t),n===0&&ig(t)}};function Gc(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Oa(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Mf(){}function R0(t,e,n,i,r){if(r){if(typeof i=="function"){var s=i;i=function(){var u=sa(o);s.call(u)}}var o=_m(e,i,t,0,null,!1,!1,"",Mf);return t._reactRootContainer=o,t[hn]=o.current,ss(t.nodeType===8?t.parentNode:t),gi(),o}for(;r=t.lastChild;)t.removeChild(r);if(typeof i=="function"){var a=i;i=function(){var u=sa(l);a.call(u)}}var l=Hc(t,0,!1,null,null,!1,!1,"",Mf);return t._reactRootContainer=l,t[hn]=l.current,ss(t.nodeType===8?t.parentNode:t),gi(function(){Ra(e,l,n,i)}),l}function Da(t,e,n,i,r){var s=n._reactRootContainer;if(s){var o=s;if(typeof r=="function"){var a=r;r=function(){var l=sa(o);a.call(l)}}Ra(e,o,t,r)}else o=R0(n,e,t,r,i);return sa(o)}Zp=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Rr(e.pendingLanes);
40n!==0&&(dc(e,n|1),ct(e,Ee()),!(ee&6)&&(nr=Ee()+500,Yn()))}break;case 13:gi(function(){var i=pn(t,1);if(i!==null){var r=Ze();Dt(i,t,1,r)}}),Wc(t,1)}};fc=function(t){if(t.tag===13){var e=pn(t,134217728);if(e!==null){var n=Ze();Dt(e,t,134217728,n)}Wc(t,134217728)}};eg=function(t){if(t.tag===13){var e=zn(t),n=pn(t,e);if(n!==null){var i=Ze();Dt(n,t,e,i)}Wc(t,e)}};tg=function(){return oe};ng=function(t,e){var n=oe;try{return oe=t,e()}finally{oe=n}};eu=function(t,e,n){switch(e){case"input":if(Yl(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 i=n[e];if(i!==t&&i.form===t.form){var r=_a(i);if(!r)throw Error(D(90));Dp(i),Yl(i,r)}}}break;case"textarea":Np(t,n);break;case"select":e=n.value,e!=null&&Vi(t,!!n.multiple,e,!1)}};Vp=Fc;Hp=gi;var L0={usingClientEntryPoint:!1,Events:[ks,ji,_a,Bp,$p,Fc]},wr={findFiberByHostInstance:ii,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},O0={bundleType:wr.bundleType,version:wr.version,rendererPackageName:wr.rendererPackageName,rendererConfig:wr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:vn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Gp(t),t===null?null:t.stateNode},findFiberByHostInstance:wr.findFiberByHostInstance||M0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gs.isDisabled&&Gs.supportsFiber)try{xa=Gs.inject(O0),Yt=Gs}catch{}}mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L0;mt.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gc(e))throw Error(D(200));return P0(t,e,null,n)};mt.createRoot=function(t,e){if(!Gc(t))throw Error(D(299));var n=!1,i="",r=km;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onRecoverableError!==void 0&&(r=e.onRecoverableError)),e=Hc(t,1,!1,null,null,n,!1,i,r),t[hn]=e.current,ss(t.nodeType===8?t.parentNode:t),new Uc(e)};mt.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(D(188)):(t=Object.keys(t).join(","),Error(D(268,t)));return t=Gp(e),t=t===null?null:t.stateNode,t};mt.flushSync=function(t){return gi(t)};mt.hydrate=function(t,e,n){if(!Oa(e))throw Error(D(200));return Da(null,t,e,!0,n)};mt.hydrateRoot=function(t,e,n){if(!Gc(t))throw Error(D(405));var i=n!=null&&n.hydratedSources||null,r=!1,s="",o=km;if(n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=_m(e,null,t,1,n??null,r,!1,s,o),t[hn]=e.current,ss(t),i)for(t=0;t<i.length;t++)n=i[t],r=n._getVersion,r=r(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,r]:e.mutableSourceEagerHydrationData.push(n,r);return new La(e)};mt.render=function(t,e,n){if(!Oa(e))throw Error(D(200));return Da(null,t,e,!1,n)};mt.unmountComponentAtNode=function(t){if(!Oa(t))throw Error(D(40));return t._reactRootContainer?(gi(function(){Da(null,null,t,!1,function(){t._reactRootContainer=null,t[hn]=null})}),!0):!1};mt.unstable_batchedUpdates=Fc;mt.unstable_renderSubtreeIntoContainer=function(t,e,n,i){if(!Oa(n))throw Error(D(200));if(t==null||t._reactInternals===void 0)throw Error(D(38));return Da(t,e,n,!1,i)};mt.version="18.3.1-next-f1338f8080-20240426";function Cm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cm)}catch(t){console.error(t)}}Cm(),Cp.exports=mt;var D0=Cp.exports,Rf=D0;Bl.createRoot=Rf.createRoot,Bl.hydrateRoot=Rf.hydrateRoot;/**
41 * react-router v7.11.0
42 *
43 * Copyright (c) Remix Software Inc.
44 *
45 * This source code is licensed under the MIT license found in the
46 * LICENSE.md file in the root directory of this source tree.
47 *
48 * @license MIT
49 */var Lf="popstate";function j0(t={}){function e(i,r){let{pathname:s,search:o,hash:a}=i.location;return Du("",{pathname:s,search:o,hash:a},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(i,r){return typeof r=="string"?r:ps(r)}return A0(e,n,null,t)}function be(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function At(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function N0(){return Math.random().toString(36).substring(2,10)}function Of(t,e){return{usr:t.state,key:t.key,idx:e}}function Du(t,e,n=null,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?ur(e):e,state:n,key:e&&e.key||i||N0()}}function ps({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function ur(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substring(i),t=t.substring(0,i)),t&&(e.pathname=t)}return e}function A0(t,e,n,i={}){let{window:r=document.defaultView,v5Compat:s=!1}=i,o=r.history,a="POP",l=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function d(){a="POP";let b=c(),p=b==null?null:b-u;u=b,l&&l({action:a,location:v.location,delta:p})}function f(b,p){a="PUSH";let m=Du(v.location,b,p);u=c()+1;let x=Of(m,u),S=v.createHref(m);try{o.pushState(x,"",S)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;r.location.assign(S)}s&&l&&l({action:a,location:v.location,delta:1})}function h(b,p){a="REPLACE";let m=Du(v.location,b,p);u=c();let x=Of(m,u),S=v.createHref(m);o.replaceState(x,"",S),s&&l&&l({action:a,location:v.location,delta:0})}function g(b){return I0(b)}let v={get action(){return a},get location(){return t(r,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(Lf,d),l=b,()=>{r.removeEventListener(Lf,d),l=null}},createHref(b){return e(r,b)},createURL:g,encodeLocation(b){let p=g(b);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:h,go(b){return o.go(b)}};return v}function I0(t,e=!1){let n="http://localhost";
49typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),be(n,"No window.location.(origin|href) available to create URL");let i=typeof t=="string"?t:ps(t);return i=i.replace(/ $/,"%20"),!e&&i.startsWith("//")&&(i=n+i),new URL(i,n)}function Em(t,e,n="/"){return z0(t,e,n,!1)}function z0(t,e,n,i){let r=typeof e=="string"?ur(e):e,s=mn(r.pathname||"/",n);if(s==null)return null;let o=Tm(t);F0(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=Q0(s);a=X0(o[l],u,i)}return a}function Tm(t,e=[],n=[],i="",r=!1){let s=(o,a,l=r,u)=>{let c={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(i)&&l)return;be(c.relativePath.startsWith(i),`Absolute route path "${c.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(i.length)}let d=dn([i,c.relativePath]),f=n.concat(c);o.children&&o.children.length>0&&(be(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Tm(o.children,e,f,d,l)),!(o.path==null&&!o.index)&&e.push({path:d,score:G0(d,o.index),routesMeta:f})};return t.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))s(o,a);else for(let u of Pm(o.path))s(o,a,!0,u)}),e}function Pm(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,r=n.endsWith("?"),s=n.replace(/\?$/,"");if(i.length===0)return r?[s,""]:[s];let o=Pm(i.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),r&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function F0(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Y0(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var B0=/^:[\w-]+$/,$0=3,V0=2,H0=1,W0=10,U0=-2,Df=t=>t==="*";function G0(t,e){let n=t.split("/"),i=n.length;return n.some(Df)&&(i+=U0),e&&(i+=V0),n.filter(r=>!Df(r)).reduce((r,s)=>r+(B0.test(s)?$0:s===""?H0:W0),i)}function Y0(t,e){return t.length===e.length&&t.slice(0,-1).every((i,r)=>i===e[r])?t[t.length-1]-e[e.length-1]:0}function X0(t,e,n=!1){let{routesMeta:i}=t,r={},s="/",o=[];for(let a=0;a<i.length;++a){let l=i[a],u=a===i.length-1,c=s==="/"?e:e.slice(s.length)||"/",d=oa({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d&&u&&n&&!i[i.length-1].route.index&&(d=oa({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;
49Object.assign(r,d.params),o.push({params:r,pathname:dn([s,d.pathname]),pathnameBase:eb(dn([s,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(s=dn([s,d.pathnameBase]))}return o}function oa(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=K0(t.path,t.caseSensitive,t.end),r=e.match(n);if(!r)return null;let s=r[0],o=s.replace(/(.)\/+$/,"$1"),a=r.slice(1);return{params:i.reduce((u,{paramName:c,isOptional:d},f)=>{if(c==="*"){let g=a[f]||"";o=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}const h=a[f];return d&&!h?u[c]=void 0:u[c]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:t}}function K0(t,e=!1,n=!0){At(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 i=[],r="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(i.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(i.push({paramName:"*"}),r+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":t!==""&&t!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),i]}function Q0(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return At(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function mn(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}var Mm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,q0=t=>Mm.test(t);function J0(t,e="/"){let{pathname:n,search:i="",hash:r=""}=typeof t=="string"?ur(t):t,s;if(n)if(q0(n))s=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),At(!1,`Pathnames cannot have embedded double slashes - normalizing ${o} -> ${n}`)}n.startsWith("/")?s=jf(n.substring(1),"/"):s=jf(n,e)}else s=e;return{pathname:s,search:tb(i),hash:nb(r)}}function jf(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function ml(t,e,n,i){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(i)}].  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 Z0(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Rm(t){let e=Z0(t);return e.map((n,i)=>i===e.length-1?n.pathname:n.pathnameBase)}function Lm(t,e,n,i=!1){let r;typeof t=="string"?r=ur(t):(r={...t},be(!r.pathname||!r.pathname.includes("?"),ml("?","pathname","search",r)),be(!r.pathname||!r.pathname.includes("#"),ml("#","pathname","hash",r)),be(!r.search||!r.search.includes("#"),ml("#","search","hash",r)));let s=t===""||r.pathname==="",o=s?"/":r.pathname,a;if(o==null)a=n;else{let d=e.length-1;if(!i&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;r.pathname=f.join("/")}a=d>=0?e[d]:"/"}let l=J0(r,a),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var dn=t=>t.join("/").replace(/\/\/+/g,"/"),eb=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),tb=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,nb=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,ib=class{constructor(t,e,n,i=!1){this.status=t,this.statusText=e||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function rb(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function sb(t){return t.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Om=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Dm(t,e){let n=t;
49if(typeof n!="string"||!Mm.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let i=n,r=!1;if(Om)try{let s=new URL(window.location.href),o=n.startsWith("//")?new URL(s.protocol+n):new URL(n),a=mn(o.pathname,e);o.origin===s.origin&&a!=null?n=a+o.search+o.hash:r=!0}catch{At(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:r,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var jm=["POST","PUT","PATCH","DELETE"];new Set(jm);var ob=["GET",...jm];new Set(ob);var cr=M.createContext(null);cr.displayName="DataRouter";var ja=M.createContext(null);ja.displayName="DataRouterState";var ab=M.createContext(!1),Nm=M.createContext({isTransitioning:!1});Nm.displayName="ViewTransition";var lb=M.createContext(new Map);lb.displayName="Fetchers";var ub=M.createContext(null);ub.displayName="Await";var Et=M.createContext(null);Et.displayName="Navigation";var Es=M.createContext(null);Es.displayName="Location";var yn=M.createContext({outlet:null,matches:[],isDataRoute:!1});yn.displayName="Route";var Yc=M.createContext(null);Yc.displayName="RouteError";var Am="REACT_ROUTER_ERROR",cb="REDIRECT",db="ROUTE_ERROR_RESPONSE";function fb(t){if(t.startsWith(`${Am}:${cb}:{`))try{let e=JSON.parse(t.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function hb(t){if(t.startsWith(`${Am}:${db}:{`))try{let e=JSON.parse(t.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new ib(e.status,e.statusText,e.data)}catch{}}function pb(t,{relative:e}={}){be(Ts(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:i}=M.useContext(Et),{hash:r,pathname:s,search:o}=Ps(t,{relative:e}),a=s;return n!=="/"&&(a=s==="/"?n:dn([n,s])),i.createHref({pathname:a,search:o,hash:r})}function Ts(){return M.useContext(Es)!=null}function Xn(){return be(Ts(),"useLocation() may be used only in the context of a <Router> component."),M.useContext(Es).location}var Im="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function zm(t){M.useContext(Et).static||M.useLayoutEffect(t)}function gb(){let{isDataRoute:t}=M.useContext(yn);return t?Pb():mb()}function mb(){be(Ts(),"useNavigate() may be used only in the context of a <Router> component.");let t=M.useContext(cr),{basename:e,navigator:n}=M.useContext(Et),{matches:i}=M.useContext(yn),{pathname:r}=Xn(),s=JSON.stringify(Rm(i)),o=M.useRef(!1);return zm(()=>{o.current=!0}),M.useCallback((l,u={})=>{if(At(o.current,Im),!o.current)return;if(typeof l=="number"){n.go(l);return}let c=Lm(l,JSON.parse(s),r,u.relative==="path");t==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:dn([e,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[e,n,s,r,t])}M.createContext(null);function Ps(t,{relative:e}={}){let{matches:n}=M.useContext(yn),{pathname:i}=Xn(),r=JSON.stringify(Rm(n));return M.useMemo(()=>Lm(t,JSON.parse(r),i,e==="path"),[t,r,i,e])}function vb(t,e){return Fm(t,e)}function Fm(t,e,n,i,r){var m;be(Ts(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=M.useContext(Et),{matches:o}=M.useContext(yn),a=o[o.length-1],l=a?a.params:{},u=a?a.pathname:"/",c=a?a.pathnameBase:"/",d=a&&a.route;{let x=d&&d.path||"";$m(u,!d||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
50
51Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let f=Xn(),h;if(e){let x=typeof e=="string"?ur(e):e;be(c==="/"||((m=x.pathname)==null?void 0:m.startsWith(c)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${x.pathname}" was given in the \`location\` prop.`),h=x}else h=f;let g=h.pathname||"/",v=g;if(c!=="/"){let x=c.replace(/^\//,"").split("/");v="/"+g.replace(/^\//,"").split("/").slice(x.length).join("/")}let b=Em(t,{pathname:v});At(d||b!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),At(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let p=Sb(b&&b.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:dn([c,s.encodeLocation?s.encodeLocation(x.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:dn([c,s.encodeLocation?s.encodeLocation(x.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),o,n,i,r);return e&&p?M.createElement(Es.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},p):p}function yb(){let t=Tb(),e=rb(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:i},s={padding:"2px 4px",backgroundColor:i},o=null;return console.error("Error handled by React Router default ErrorBoundary:",t),o=M.createElement(M.Fragment,null,M.createElement("p",null,"💿 Hey developer 👋"),M.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",M.createElement("code",{style:s},"ErrorBoundary")," or"," ",M.createElement("code",{style:s},"errorElement")," prop on your route.")),M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application 
51Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},e),n?M.createElement("pre",{style:r},n):null,o)}var xb=M.createElement(yb,null),Bm=class extends M.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const n=hb(t.digest);n&&(t=n)}let e=t!==void 0?M.createElement(yn.Provider,{value:this.props.routeContext},M.createElement(Yc.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?M.createElement(bb,{error:t},e):e}};Bm.contextType=ab;var vl=new WeakMap;function bb({children:t,error:e}){let{basename:n}=M.useContext(Et);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let i=fb(e.digest);if(i){let r=vl.get(e);if(r)throw r;let s=Dm(i.location,n);if(Om&&!vl.get(e))if(s.isExternal||i.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:i.replace}));throw vl.set(e,o),o}return M.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return t}function wb({routeContext:t,match:e,children:n}){let i=M.useContext(cr);return i&&i.static&&i.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=e.route.id),M.createElement(yn.Provider,{value:t},n)}function Sb(t,e=[],n=null,i=null,r=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let s=t,o=n==null?void 0:n.errors;if(o!=null){let c=s.findIndex(d=>d.route.id&&(o==null?void 0:o[d.route.id])!==void 0);be(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),s=s.slice(0,Math.min(s.length,c+1))}let a=!1,l=-1;if(n)for(let c=0;c<s.length;c++){let d=s[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(l=c),d.route.id){let{loaderData:f,errors:h}=n,g=d.route.loader&&!f.hasOwnProperty(d.route.id)&&(!h||h[d.route.id]===void 0);if(d.route.lazy||g){a=!0,l>=0?s=s.slice(0,l+1):s=[s[0]];break}}}let u=n&&i?(c,d)=>{var f,h;i(c,{location:n.location,params:((h=(f=n.matches)==null?void 0:f[0])==null?void 0:h.params)??{},unstable_pattern:sb(n.matches),errorInfo:d})}:void 0;return s.reduceRight((c,d,f)=>{let h,g=!1,v=null,b=null;n&&(h=o&&d.route.id?o[d.route.id]:void 0,v=d.route.errorElement||xb,a&&(l<0&&f===0?($m("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,b=null):l===f&&(g=!0,b=d.route.hydrateFallbackElement||null)));let p=e.concat(s.slice(0,f+1)),m=()=>{let x;return h?x=v:g?x=b:d.route.Component?x=M.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=c,M.createElement(wb,{match:d,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?M.createElement(Bm,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0},onError:u}):m()},null)}function Xc(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function _b(t){let e=M.useContext(cr);return be(e,Xc(t)),e}function kb(t){let e=M.useContext(ja);return be(e,Xc(t)),e}function Cb(t){let e=M.useContext(yn);return be(e,Xc(t)),e}function Kc(t){let e=Cb(t),n=e.matches[e.matches.length-1];return be(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function Eb(){return Kc("useRouteId")}function Tb(){var i;let t=M.useContext(Yc),e=kb("useRouteError"),n=Kc("useRouteError");return t!==void 0?t:(i=e.errors)==null?void 0:i[n]}function Pb(){let{router:t}=_b("useNavigate"),e=Kc("useNavigate"),n=M.useRef(!1);return zm(()=>{n.current=!0}),M.useCallback(async(r,s={})=>{At(n.current,Im),n.current&&(typeof r=="number"?await t.navigate(r):await t.navigate(r,{fromRouteId:e,...s}))},[t,e])}var Nf={};function $m(t,e,n){!e&&!Nf[t]&&(Nf[t]=!0,At(!1,n))}M.memo(Mb);function Mb({routes:t,future:e,state:n,onError:i}){return Fm(t,void 0,n,i,e)}function So(t){be(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Rb({basename:t="/",children:e=null,location:n,navigationType:i="POP",navigator:r,static:s=!1,unstable_useTransitions:o}){be(!Ts(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=t.replace(/^\/*/,"/"),l=M.useMemo(()=>({basename:a,navigator:r,static:s,unstable_useTransitions:o,future:{}}),[a,r,s,o]);typeof n=="string"&&(n=ur(n));
51let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=n,g=M.useMemo(()=>{let v=mn(u,a);return v==null?null:{location:{pathname:v,search:c,hash:d,state:f,key:h},navigationType:i}},[a,u,c,d,f,h,i]);return At(g!=null,`<Router basename="${a}"> is not able to match the URL "${u}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:M.createElement(Et.Provider,{value:l},M.createElement(Es.Provider,{children:e,value:g}))}function Lb({children:t,location:e}){return vb(ju(t),e)}function ju(t,e=[]){let n=[];return M.Children.forEach(t,(i,r)=>{if(!M.isValidElement(i))return;let s=[...e,r];if(i.type===M.Fragment){n.push.apply(n,ju(i.props.children,s));return}be(i.type===So,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),be(!i.props.index||!i.props.children,"An index route cannot have child routes.");let o={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(o.children=ju(i.props.children,s)),n.push(o)}),n}var _o="get",ko="application/x-www-form-urlencoded";function Na(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function Ob(t){return Na(t)&&t.tagName.toLowerCase()==="button"}function Db(t){return Na(t)&&t.tagName.toLowerCase()==="form"}function jb(t){return Na(t)&&t.tagName.toLowerCase()==="input"}function Nb(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Ab(t,e){return t.button===0&&(!e||e==="_self")&&!Nb(t)}var Ys=null;function Ib(){if(Ys===null)try{new FormData(document.createElement("form"),0),Ys=!1}catch{Ys=!0}return Ys}var zb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yl(t){return t!=null&&!zb.has(t)?(At(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ko}"`),null):t}function Fb(t,e){let n,i,r,s,o;if(Db(t)){let a=t.getAttribute("action");i=a?mn(a,e):null,n=t.getAttribute("method")||_o,r=yl(t.getAttribute("enctype"))||ko,s=new FormData(t)}else if(Ob(t)||jb(t)&&(t.type==="submit"||t.type==="image")){let a=t.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||a.getAttribute("action");if(i=l?mn(l,e):null,n=t.getAttribute("formmethod")||a.getAttribute("method")||_o,r=yl(t.getAttribute("formenctype"))||yl(a.getAttribute("enctype"))||ko,s=new FormData(a,t),!Ib()){let{name:u,type:c,value:d}=t;if(c==="image"){let f=u?`${u}.`:"";s.append(`${f}x`,"0"),s.append(`${f}y`,"0")}else u&&s.append(u,d)}}else{if(Na(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=_o,i=null,r=ko,o=t}return s&&r==="text/plain"&&(o=s,s=void 0),{action:i,method:n.toLowerCase(),encType:r,formData:s,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Qc(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Bb(t,e,n){let i=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return i.pathname==="/"?i.pathname=`_root.${n}`:e&&mn(i.pathname,e)==="/"?i.pathname=`${e.replace(/\/$/,"")}/_root.${n}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${n}`,i}async function $b(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Vb(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Hb(t,e,n){let i=await Promise.all(t.map(async r=>{let s=e.routes[r.route.id];if(s){let o=await $b(s,n);return o.links?o.links():[]}return[]}));return Yb(i.flat(1).filter(Vb).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function Af(t,e,n,i,r,s){let o=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,a=(l,u)=>{var c;return n[u].pathname!==l.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return s==="assets"?e.filter((l,u)=>o(l,u)||a(l,u)):s==="data"?e.filter((l,u)=>{var d;let c=i.routes[l.route.id];if(!c||!c.hasLoader)return!1;if(o(l,u)||a(l,u))return!0;
51if(l.route.shouldRevalidate){let f=l.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function Wb(t,e,{includeHydrateFallback:n}={}){return Ub(t.map(i=>{let r=e.routes[i.route.id];if(!r)return[];let s=[r.module];return r.clientActionModule&&(s=s.concat(r.clientActionModule)),r.clientLoaderModule&&(s=s.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(s=s.concat(r.hydrateFallbackModule)),r.imports&&(s=s.concat(r.imports)),s}).flat(1))}function Ub(t){return[...new Set(t)]}function Gb(t){let e={},n=Object.keys(t).sort();for(let i of n)e[i]=t[i];return e}function Yb(t,e){let n=new Set;return new Set(e),t.reduce((i,r)=>{let s=JSON.stringify(Gb(r));return n.has(s)||(n.add(s),i.push({key:s,link:r})),i},[])}function Vm(){let t=M.useContext(cr);return Qc(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Xb(){let t=M.useContext(ja);return Qc(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var qc=M.createContext(void 0);qc.displayName="FrameworkContext";function Hm(){let t=M.useContext(qc);return Qc(t,"You must render this element inside a <HydratedRouter> element"),t}function Kb(t,e){let n=M.useContext(qc),[i,r]=M.useState(!1),[s,o]=M.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=e,f=M.useRef(null);M.useEffect(()=>{if(t==="render"&&o(!0),t==="viewport"){let v=p=>{p.forEach(m=>{o(m.isIntersecting)})},b=new IntersectionObserver(v,{threshold:.5});return f.current&&b.observe(f.current),()=>{b.disconnect()}}},[t]),M.useEffect(()=>{if(i){let v=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(v)}}},[i]);let h=()=>{r(!0)},g=()=>{r(!1),o(!1)};return n?t!=="intent"?[s,f,{}]:[s,f,{onFocus:Sr(a,h),onBlur:Sr(l,g),onMouseEnter:Sr(u,h),onMouseLeave:Sr(c,g),onTouchStart:Sr(d,h)}]:[!1,f,{}]}function Sr(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function Qb({page:t,...e}){let{router:n}=Vm(),i=M.useMemo(()=>Em(n.routes,t,n.basename),[n.routes,t,n.basename]);return i?M.createElement(Jb,{page:t,matches:i,...e}):null}function qb(t){let{manifest:e,routeModules:n}=Hm(),[i,r]=M.useState([]);return M.useEffect(()=>{let s=!1;return Hb(t,e,n).then(o=>{s||r(o)}),()=>{s=!0}},[t,e,n]),i}function Jb({page:t,matches:e,...n}){let i=Xn(),{manifest:r,routeModules:s}=Hm(),{basename:o}=Vm(),{loaderData:a,matches:l}=Xb(),u=M.useMemo(()=>Af(t,e,l,r,i,"data"),[t,e,l,r,i]),c=M.useMemo(()=>Af(t,e,l,r,i,"assets"),[t,e,l,r,i]),d=M.useMemo(()=>{if(t===i.pathname+i.search+i.hash)return[];let g=new Set,v=!1;if(e.forEach(p=>{var x;let m=r.routes[p.route.id];!m||!m.hasLoader||(!u.some(S=>S.route.id===p.route.id)&&p.route.id in a&&((x=s[p.route.id])!=null&&x.shouldRevalidate)||m.hasClientLoader?v=!0:g.add(p.route.id))}),g.size===0)return[];let b=Bb(t,o,"data");return v&&g.size>0&&b.searchParams.set("_routes",e.filter(p=>g.has(p.route.id)).map(p=>p.route.id).join(",")),[b.pathname+b.search]},[o,a,i,r,u,e,t,s]),f=M.useMemo(()=>Wb(c,r),[c,r]),h=qb(c);return M.createElement(M.Fragment,null,d.map(g=>M.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),f.map(g=>M.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),h.map(({key:g,link:v})=>M.createElement("link",{key:g,nonce:n.nonce,...v})))}function Zb(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var ew=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ew&&(window.__reactRouterVersion="7.11.0")}catch{}function tw({basename:t,children:e,unstable_useTransitions:n,window:i}){let r=M.useRef();r.current==null&&(r.current=j0({window:i,v5Compat:!0}));let s=r.current,[o,a]=M.useState({action:s.action,location:s.location}),l=M.useCallback(u=>{n===!1?a(u):M.startTransition(()=>a(u))},[n]);return M.useLayoutEffect(()=>s.listen(l),[s,l]),M.createElement(Rb,{basename:t,children:e,location:o.location,navigationType:o.action,navigator:s,unstable_useTransitions:n})}var Wm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jc=M.forwardRef(function({onClick:e,discover:n="render",prefetch:i="none",relative:r,reloadDocument:s,replace:o,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:f,...h},g){let{basename:v,unstable_useTransitions:b}=M.useContext(Et),p=typeof u=="string"&&Wm.test(u),m=Dm(u,v);u=m.to;let x=pb(u,{relative:r}),[S,_,T]=Kb(i,h),E=sw(u,{replace:o,state:a,target:l,preventScrollReset:c,relative:r,viewTransition:d,unstable_defaultShouldRevalidate:f,unstable_useTransitions:b});function w(C){e&&e(C),C.defaultPrevented||E(C)}let k=M.createElement("a",{...h,...T,href:m.absoluteURL||x,onClick:m.isExternal||s?e:w,ref:Zb(g,_),target:l,"data-discover":!p&&n==="render"?"true":void 0});return S&&!p?M.createElement(M.Fragment,null,k,M.createElement(Qb,{page:x})):k});Jc.displayName="Link";var nw=M.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:i="",end:r=!1,style:s,to:o,viewTransition:a,children:l,...u},c){let d=Ps(o,{relative:u.relative}),f=Xn(),h=M.useContext(ja),{navigator:g,basename:v}=M.useContext(Et),b=h!=null&&cw(d)&&a===!0,p=g.encodeLocation?g.encodeLocation(d).pathname:d.pathname,m=f.pathname,x=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(m=m.toLowerCase(),x=x?x.toLowerCase():null,p=p.toLowerCase()),x&&v&&(x=mn(x,v)||x);const S=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let _=m===p||!r&&m.startsWith(p)&&m.charAt(S)==="/",T=x!=null&&(x===p||!r&&x.startsWith(p)&&x.charAt(p.length)==="/"),E={isActive:_,isPending:T,isTransitioning:b},w=_?e:void 0,k;typeof i=="function"?k=i(E):k=[i,_?"active":null,T?"pending":null,b?"transitioning":null].filter(
51Boolean).join(" ");let C=typeof s=="function"?s(E):s;return M.createElement(Jc,{...u,"aria-current":w,className:k,ref:c,style:C,to:o,viewTransition:a},typeof l=="function"?l(E):l)});nw.displayName="NavLink";var iw=M.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:i,replace:r,state:s,method:o=_o,action:a,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:f,...h},g)=>{let{unstable_useTransitions:v}=M.useContext(Et),b=lw(),p=uw(a,{relative:u}),m=o.toLowerCase()==="get"?"get":"post",x=typeof a=="string"&&Wm.test(a),S=_=>{if(l&&l(_),_.defaultPrevented)return;_.preventDefault();let T=_.nativeEvent.submitter,E=(T==null?void 0:T.getAttribute("formmethod"))||o,w=()=>b(T||_.currentTarget,{fetcherKey:e,method:E,navigate:n,replace:r,state:s,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:f});v&&n!==!1?M.startTransition(()=>w()):w()};return M.createElement("form",{ref:g,method:m,action:p,onSubmit:i?l:S,...h,"data-discover":!x&&t==="render"?"true":void 0})});iw.displayName="Form";function rw(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Um(t){let e=M.useContext(cr);return be(e,rw(t)),e}function sw(t,{target:e,replace:n,state:i,preventScrollReset:r,relative:s,viewTransition:o,unstable_defaultShouldRevalidate:a,unstable_useTransitions:l}={}){let u=gb(),c=Xn(),d=Ps(t,{relative:s});return M.useCallback(f=>{if(Ab(f,e)){f.preventDefault();let h=n!==void 0?n:ps(c)===ps(d),g=()=>u(t,{replace:h,state:i,preventScrollReset:r,relative:s,viewTransition:o,unstable_defaultShouldRevalidate:a});l?M.startTransition(()=>g()):g()}},[c,u,d,n,i,e,t,r,s,o,a,l])}var ow=0,aw=()=>`__${String(++ow)}__`;function lw(){let{router:t}=Um("useSubmit"),{basename:e}=M.useContext(Et),n=Eb(),i=t.fetch,r=t.navigate;return M.useCallback(async(s,o={})=>{let{action:a,method:l,encType:u,formData:c,body:d}=Fb(s,e);if(o.navigate===!1){let f=o.fetcherKey||aw();await i(f,n,o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:d,formMethod:o.method||l,formEncType:o.encType||u,flushSync:o.flushSync})}else await r(o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:d,formMethod:o.method||l,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[i,r,e,n])}function uw(t,{relative:e}={}){let{basename:n}=M.useContext(Et),i=M.useContext(yn);be(i,"useFormAction must be used inside a RouteContext");let[r]=i.matches.slice(-1),s={...Ps(t||".",{relative:e})},o=Xn();if(t==null){s.search=o.search;let a=new URLSearchParams(s.search),l=a.getAll("index");if(l.some(c=>c==="")){a.delete("index"),l.filter(d=>d).forEach(d=>a.append("index",d));let c=a.toString();s.search=c?`?${c}`:""}}return(!t||t===".")&&r.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:dn([n,s.pathname])),ps(s)}function cw(t,{relative:e}={}){let n=M.useContext(Nm);
51be(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Um("useViewTransitionState"),r=Ps(t,{relative:e});if(!n.isTransitioning)return!1;let s=mn(n.currentLocation.pathname,i)||n.currentLocation.pathname,o=mn(n.nextLocation.pathname,i)||n.nextLocation.pathname;return oa(r.pathname,o)!=null||oa(r.pathname,s)!=null}const dw=({isOpen:t,onClose:e})=>t?y.jsx("div",{className:"modal-overlay",onClick:e,children:y.jsxs("div",{className:"modal-content",onClick:n=>n.stopPropagation(),children:[y.jsx("button",{className:"modal-close",onClick:e,"aria-label":"Close modal",children:"×"}),y.jsx("div",{className:"modal-header",children:y.jsx("h2",{children:"About Visual Builders"})}),y.jsxs("div",{className:"modal-body",children:[y.jsxs("section",{className:"about-section",children:[y.jsx("h3",{children:"What is this?"}),y.jsx("p",{children:"A collection of free, visual builders designed to help you create and export charts, tables, and sliders for your Webflow projects - no coding required."})]}),y.jsxs("section",{className:"about-section",children:[y.jsx("h3",{children:"Features"}),y.jsxs("ul",{children:[y.jsxs("li",{children:[y.jsx("strong",{children:"Chart Builder:"})," Create interactive charts with Chart.js"]}),y.jsxs("li",{children:[y.jsx("strong",{children:"Table Builder:"})," Design responsive tables with sorting and search"]}),y.jsxs("li",{children:[y.jsx("strong",{children:"Swiper Builder:"})," Configure custom sliders and carousels"]}),y.jsxs("li",{children:[y.jsx("strong",{children:"Export Ready:"})," Get copy-paste code optimized for Webflow"]})]})]}),y.jsxs("section",{className:"about-section",children:[y.jsx("h3",{children:"Built by Webnomads"}),y.jsx("p",{children:"We're a Webflow development agency specializing in custom solutions for ambitious projects. These tools are part of our commitment to making advanced web features accessible to everyone."}),y.jsx("a",{href:"https://www.webnomads.com?utm_source=visual-builders&utm_medium=app&utm_campaign=about-modal",target:"_blank",rel:"noopener noreferrer",className:"about-cta",children:"Visit Webnomads.com →"})]}),y.jsxs("section",{className:"about-section",children:[y.jsx("h3",{children:"Need Help?"}),y.jsx("p",{children:"Whether you need custom implementation, advanced features, or full Webflow development - we're here to help bring your vision to life."}),y.jsx("a",{href:"https://www.webnomads.com/contact?utm_source=visual-builders&utm_medium=app&utm_campaign=about-modal-contact",target:"_blank",rel:"noopener noreferrer",className:"contact-cta",children:"Get in Touch"})]}),y.jsxs("div",{className:"modal-footer",children:[y.jsxs("p",{children:["© ",new Date().getFullYear()," Webnomads. All rights reserved."]}),y.jsx("p",{className:"version",children:"v1.0.0"})]})]})]})}):null,If=({children:t,builderName:e})=>{const i=Xn().pathname==="/",[r,s]=M.useState(!1);return i?y.jsx(y.Fragment,{children:t}):y.jsxs("div",{className:"builder-layout",children:[y.jsxs("header",{className:"app-header",children:[y.jsx("a",{href:"https://www.webnomads.com?utm_source=chart-builder&utm_medium=app&utm_campaign=header",target:"_blank",rel:"noopener noreferrer",className:"webnomads-logo-link",children:y.jsx("img",{src:"https://cdn.prod.website-files.com/66a98f3ebf8283ac74fc6827/67537ec8a32f47b46cf0bc28_logo-p-500.png",alt:"Webnomads",className:"webnomads-logo"})}),y.jsx("button",{onClick:()=>s(!0),className:"about-button","aria-label":"About Visual Builders",children:"About"})]}),y.jsx("main",{className:"builder-main",children:t}),y.jsxs("footer",{className:"app-footer",children:[y.jsxs("p",{children:["Made with ",y.jsx("span",{className:"heart",children:"♥"})," by"," ",y.jsx("a",{href:"https://www.webnomads.com?utm_source=chart-builder&utm_medium=app&utm_campaign=footer",target:"_blank",rel:"noopener noreferrer",children:"Webnomads"})," ","— Webflow Development Agency"]}),y.jsxs("p",{className:"copyright",children:["© ",new Date().getFullYear()," All rights reserved"]})]}),y.jsx(dw,{isOpen:r,onClose:()=>s(!1)})]})},fw=()=>{const t=[{id:"table",title:"Table Builder",description:"Design data tables with sorting and styling",icon:"📋",path:"/table-builder",status:"available"}];return y.jsxs("div",{className:"landing-page",children:[y.jsx("nav",{className:"landing-navbar",children:y.jsx("a",{href:"https://www.webnomads.com?utm_source=chart-builder&utm_medium=app&utm_campaign=landing",target:"_blank",rel:"noopener noreferrer",className:"navbar-logo-link",children:y.jsx("img",{src:"https://cdn.prod.website-files.com/66a98f3ebf8283ac74fc6827/67537ec8a32f47b46cf0bc28_logo-p-500.png",alt:"Webnomads",className:"navbar-logo"})})}),y.jsxs("header",{className:"landing-header",children:[y.jsx("h1",{children:"Webnomads Visual Builders"}),y.jsx("p",{children:"No-code tools for creating beautiful Webflow components"})]}),y.jsx("div",{className:"builders-grid",children:t.map(e=>y.jsxs("div",{className:"builder-card",children:[y.jsx("div",{className:"builder-icon",children:e.icon}),y.jsx("h2",{children:e.title}),y.jsx("p",{children:e.description}),e.status==="available"?y.jsx(Jc,{to:e.path,className:"builder-cta",children:"Start Building"}):y.jsx("button",{className:"builder-cta disabled",disabled:!0,children:"Coming Soon"})]},e.id))}),y.jsxs("footer",{className:"landing-footer",children:[y.jsx("p",{children:"Built for Webflow • No coding required • Export ready-to-use code"}),y.jsxs("div",{className:"footer-links",children:[y.jsx("a",{href:"https://webflow.com",target:"_blank",rel:"noopener noreferrer",children:"Webflow"}),y.jsx("span",{className:"separator",children:"•"}),y.jsx("a",{href:"https://www.chartjs.org",target:"_blank",rel:"noopener noreferrer",children:"Chart.js Docs"}),y.jsx("span",{className:"separator",children:"•"}),y.jsx("a",{href:"https://swiperjs.com",target:"_blank",rel:"noopener noreferrer",children:"Swiper.js Docs"}),y.jsx("span",{className:"separator",children:"•"}),y.jsx("a",{href:"https://github.com/Filipzaleski/wf-chartjs",target:"_blank",rel:"noopener noreferrer",children:"GitHub"})]})]})]})};M.createContext();var hw={exports:{}};/* @license
52Papa Parse
53v5.5.3
54https://github.com/mholt/PapaParse
55License: MIT
56*/(function(t,e){((n,i)=>{t.exports=i()})(Pi,function n(){var i=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:{},r,s=!i.document&&!!i.postMessage,o=i.IS_PAPA_WORKER||!1,a={},l=0,u={};function c(w){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(k){var C=_(k);C.chunkSize=parseInt(C.chunkSize),k.step||k.chunk||(C.chunkSize=null),this._handle=new v(C),(this._handle.streamer=this)._config=C}).call(this,w),this.parseChunk=function(k,C){var P=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<P){let j=this._config.newline;j||(L=this._config.quoteChar||'"',j=this._handle.guessLineEndings(k,L)),k=[...k.split(j).slice(P)].join(j)}this.isFirstChunk&&E(this._config.beforeFirstChunk)&&(L=this._config.beforeFirstChunk(k))!==void 0&&(k=L),this.isFirstChunk=!1,this._halted=!1;var P=this._partialLine+k,L=(this._partialLine="",this._handle.parse(P,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(k=L.meta.cursor,P=(this._finished||(this._partialLine=P.substring(k-this._baseIndex),this._baseIndex=k),L&&L.data&&(this._rowCount+=L.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),o)i.postMessage({results:L,workerId:u.WORKER_ID,finished:P});else if(E(this._config.chunk)&&!C){if(this._config.chunk(L,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=L=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(L.data),this._completeResults.errors=this._completeResults.errors.concat(L.errors),this._completeResults.meta=L.meta),this._completed||!P||!E(this._config.complete)||L&&L.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),P||L&&L.meta.paused||this._nextChunk(),L}this._halted=!0},this._sendError=function(k){E(this._config.error)?this._config.error(k):o&&this._config.error&&i.postMessage({workerId:u.WORKER_ID,error:k,finished:!1})}}function d(w){var k;(w=w||{}).chunkSize||(w.chunkSize=u.RemoteChunkSize),c.call(this,w),this._nextChunk=s?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(C){this._input=C,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(k=new XMLHttpRequest,this._config.withCredentials&&(k.withCredentials=this._config.withCredentials),s||(k.onload=T(this._chunkLoaded,this),k.onerror=T(this._chunkError,this)),k.open(this._config.downloadRequestBody?"POST":"GET",this._input,!s),this._config.downloadRequestHeaders){var C,P=this._config.downloadRequestHeaders;for(C in P)k.setRequestHeader(C,P[C])}var L;this._config.chunkSize&&(L=this._start+this._config.chunkSize-1,k.setRequestHeader("Range","bytes="+this._start+"-"+L));try{k.send(this._config.downloadRequestBody)}catch(j){this._chunkError(j.message)}s&&k.status===0&&this._chunkError()}},this._chunkLoaded=function(){k.readyState===4&&(k.status<200||400<=k.status?this._chunkError():(this._start+=this._config.chunkSize||k.responseText.length,this._finished=!this._config.chunkSize||this._start>=(C=>(C=C.getResponseHeader("Content-Range"))!==null?parseInt(C.substring(C.lastIndexOf("/")+1)):-1)(k),this.parseChunk(k.responseText)))},this._chunkError=function(C){C=k.statusText||C,this._sendError(new Error(C))}}function f(w){(w=w||{}).chunkSize||(w.chunkSize=u.LocalChunkSize),c.call(this,w);var k,C,P=typeof FileReader<"u";this.stream=function(L){this._input=L,C=L.slice||L.webkitSlice||L.mozSlice,P?((k=new FileReader).onload=T(this._chunkLoaded,this),k.onerror=T(this._chunkError,this)):k=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var L=this._input,j=(this._config.chunkSize&&(j=Math.min(this._start+this._config.chunkSize,this._input.size),L=C.call(L,this._start,j)),k.readAsText(L,this._config.encoding));P||this._chunkLoaded({target:{result:j}})},this._chunkLoaded=function(L){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(L.target.result)},this._chunkError=function(){this._sendError(k.error)}}function h(w){var k;c.call(this,w=w||{}),this.stream=function(C){return k=C,this._nextChunk()},this._nextChunk=function(){var C,P;if(!this._finished)return C=this._config.chunkSize,k=C?(P=k.substring(0,C),k.substring(C)):(P=k,""),this._finished=!k,this.parseChunk(P)}}function g(w){c.call(this,w=w||{});var k=[],C=!0,P=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(L){this._input=L,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){P&&k.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),k.length?this.parseChunk(k.shift()):C=!0},this._streamData=T(function(L){try{k.push(typeof L=="string"?L:L.toString(this._config.encoding)),C&&(C=!1,this._checkIsFinished(),this.parseChunk(k.shift()))}catch(j){this._streamError(j)}},this),this._streamError=T(function(L){this._streamCleanUp(),this._sendError(L)},this),this._streamEnd=T(function(){this._streamCleanUp(),P=!0,this._streamData("")},this),this._streamCleanUp=T(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}
vendor: 14,512 bytes, lines 56-65
56function v(w){var k,C,P,L,j=Math.pow(2,53),H=-j,V=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,W=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,z=this,R=0,O=0,A=!1,I=!1,$=[],B={data:[],errors:[],meta:{}};function Q(q){return w.skipEmptyLines==="greedy"?q.join("").trim()==="":q.length===1&&q[0].length===0}function ie(){if(B&&P&&(ze("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),P=!1),w.skipEmptyLines&&(B.data=B.data.filter(function(he){return!Q(he)})),Z()){let he=function(De,pe){E(w.transformHeader)&&(De=w.transformHeader(De,pe)),$.push(De)};var G=he;if(B)if(Array.isArray(B.data[0])){for(var q=0;Z()&&q<B.data.length;q++)B.data[q].forEach(he);B.data.splice(0,1)}else B.data.forEach(he)}function ne(he,De){for(var pe=w.header?{}:[],ae=0;ae<he.length;ae++){var Y=ae,Ve=he[ae],Ve=((re,ge)=>(Me=>(w.dynamicTypingFunction&&w.dynamicTyping[Me]===void 0&&(w.dynamicTyping[Me]=w.dynamicTypingFunction(Me)),(w.dynamicTyping[Me]||w.dynamicTyping)===!0))(re)?ge==="true"||ge==="TRUE"||ge!=="false"&&ge!=="FALSE"&&((Me=>{if(V.test(Me)&&(Me=parseFloat(Me),H<Me&&Me<j))return 1})(ge)?parseFloat(ge):W.test(ge)?new Date(ge):ge===""?null:ge):ge)(Y=w.header?ae>=$.length?"__parsed_extra":$[ae]:Y,Ve=w.transform?w.transform(Ve,Y):Ve);Y==="__parsed_extra"?(pe[Y]=pe[Y]||[],pe[Y].push(Ve)):pe[Y]=Ve}return w.header&&(ae>$.length?ze("FieldMismatch","TooManyFields","Too many fields: expected "+$.length+" fields but parsed "+ae,O+De):ae<$.length&&ze("FieldMismatch","TooFewFields","Too few fields: expected "+$.length+" fields but parsed "+ae,O+De)),pe}var Se;B&&(w.header||w.dynamicTyping||w.transform)&&(Se=1,!B.data.length||Array.isArray(B.data[0])?(B.data=B.data.map(ne),Se=B.data.length):B.data=ne(B.data,0),w.header&&B.meta&&(B.meta.fields=$),O+=Se)}function Z(){return w.header&&$.length===0}function ze(q,ne,Se,G){q={type:q,code:ne,message:Se},G!==void 0&&(q.row=G),B.errors.push(q)}E(w.step)&&(L=w.step,w.step=function(q){B=q,Z()?ie():(ie(),B.data.length!==0&&(R+=q.data.length,w.preview&&R>w.preview?C.abort():(B.data=B.data[0],L(B,z))))}),this.parse=function(q,ne,Se){var G=w.quoteChar||'"',G=(w.newline||(w.newline=this.guessLineEndings(q,G)),P=!1,w.delimiter?E(w.delimiter)&&(w.delimiter=w.delimiter(q),B.meta.delimiter=w.delimiter):((G=((he,De,pe,ae,Y)=>{var Ve,re,ge,Me;Y=Y||[",","	","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var _i=0;_i<Y.length;_i++){for(var zt,fr=Y[_i],He=0,Ft=0,je=0,it=(ge=void 0,new p({comments:ae,delimiter:fr,newline:De,preview:10}).parse(he)),Qt=0;Qt<it.data.length;Qt++)pe&&Q(it.data[Qt])?je++:(zt=it.data[Qt].length,Ft+=zt,ge===void 0?ge=zt:0<zt&&(He+=Math.abs(zt-ge),ge=zt));0<it.data.length&&(Ft/=it.data.length-je),(re===void 0||He<=re)&&(Me===void 0||Me<Ft)&&1.99<Ft&&(re=He,Ve=fr,Me=Ft)}return{successful:!!(w.delimiter=Ve),bestDelimiter:Ve}})(q,w.newline,w.skipEmptyLines,w.comments,w.delimitersToGuess)).successful?w.delimiter=G.bestDelimiter:(P=!0,w.delimiter=u.DefaultDelimiter),B.meta.delimiter=w.delimiter),_(w));return w.preview&&w.header&&G.preview++,k=q,C=new p(G),B=C.parse(k,ne,Se),ie(),A?{meta:{paused:!0}}:B||{meta:{paused:!1}}},this.paused=function(){return A},this.pause=function(){A=!0,C.abort(),k=E(w.chunk)?"":k.substring(C.getCharIndex())},this.resume=function(){z.streamer._halted?(A=!1,z.streamer.parseChunk(k,!0)):setTimeout(z.resume,3)},this.aborted=function(){return I},this.abort=function(){I=!0,C.abort(),B.meta.aborted=!0,E(w.complete)&&w.complete(B),k=""},this.guessLineEndings=function(he,G){he=he.substring(0,1048576);var G=new RegExp(b(G)+"([^]*?)"+b(G),"gm"),Se=(he=he.replace(G,"")).split("\r"),G=he.split(`
57`),he=1<G.length&&G[0].length<Se[0].length;if(Se.length===1||he)return`
58`;for(var De=0,pe=0;pe<Se.length;pe++)Se[pe][0]===`
59`&&De++;return De>=Se.length/2?`\r
60`:"\r"}}function b(w){return w.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function p(w){var k=(w=w||{}).delimiter,C=w.newline,P=w.comments,L=w.step,j=w.preview,H=w.fastMode,V=null,W=!1,z=w.quoteChar==null?'"':w.quoteChar,R=z;if(w.escapeChar!==void 0&&(R=w.escapeChar),(typeof k!="string"||-1<u.BAD_DELIMITERS.indexOf(k))&&(k=","),P===k)throw new Error("Comment character same as delimiter");P===!0?P="#":(typeof P!="string"||-1<u.BAD_DELIMITERS.indexOf(P))&&(P=!1),C!==`
61`&&C!=="\r"&&C!==`\r
62`&&(C=`
63`);var O=0,A=!1;this.parse=function(I,$,B){if(typeof I!="string")throw new Error("Input must be a string");var Q=I.length,ie=k.length,Z=C.length,ze=P.length,q=E(L),ne=[],Se=[],G=[],he=O=0;if(!I)return He();if(H||H!==!1&&I.indexOf(z)===-1){for(var De=I.split(C),pe=0;pe<De.length;pe++){if(G=De[pe],O+=G.length,pe!==De.length-1)O+=C.length;else if(B)return He();if(!P||G.substring(0,ze)!==P){if(q){if(ne=[],Me(G.split(k)),Ft(),A)return He()}else Me(G.split(k));if(j&&j<=pe)return ne=ne.slice(0,j),He(!0)}}return He()}for(var ae=I.indexOf(k,O),Y=I.indexOf(C,O),Ve=new RegExp(b(R)+b(z),"g"),re=I.indexOf(z,O);;)if(I[O]===z)for(re=O,O++;;){if((re=I.indexOf(z,re+1))===-1)return B||Se.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ne.length,index:O}),zt();if(re===Q-1)return zt(I.substring(O,re).replace(Ve,z));if(z===R&&I[re+1]===R)re++;else if(z===R||re===0||I[re-1]!==R){ae!==-1&&ae<re+1&&(ae=I.indexOf(k,re+1));var ge=_i((Y=Y!==-1&&Y<re+1?I.indexOf(C,re+1):Y)===-1?ae:Math.min(ae,Y));if(I.substr(re+1+ge,ie)===k){G.push(I.substring(O,re).replace(Ve,z)),I[O=re+1+ge+ie]!==z&&(re=I.indexOf(z,O)),ae=I.indexOf(k,O),Y=I.indexOf(C,O);break}if(ge=_i(Y),I.substring(re+1+ge,re+1+ge+Z)===C){if(G.push(I.substring(O,re).replace(Ve,z)),fr(re+1+ge+Z),ae=I.indexOf(k,O),re=I.indexOf(z,O),q&&(Ft(),A))return He();if(j&&ne.length>=j)return He(!0);break}Se.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ne.length,index:O}),re++}}else if(P&&G.length===0&&I.substring(O,O+ze)===P){if(Y===-1)return He();O=Y+Z,Y=I.indexOf(C,O),ae=I.indexOf(k,O)}else if(ae!==-1&&(ae<Y||Y===-1))G.push(I.substring(O,ae)),O=ae+ie,ae=I.indexOf(k,O);else{if(Y===-1)break;if(G.push(I.substring(O,Y)),fr(Y+Z),q&&(Ft(),A))return He();if(j&&ne.length>=j)return He(!0)}return zt();function Me(je){ne.push(je),he=O}function _i(je){var it=0;return it=je!==-1&&(je=I.substring(re+1,je))&&je.trim()===""?je.length:it}function zt(je){return B||(je===void 0&&(je=I.substring(O)),G.push(je),O=Q,Me(G),q&&Ft()),He()}function fr(je){O=je,Me(G),G=[],Y=I.indexOf(C,O)}function He(je){if(w.header&&!$&&ne.length&&!W){var it=ne[0],Qt=Object.create(null),Ha=new Set(it);let xd=!1;for(let ki=0;ki<it.length;ki++){let Bt=it[ki];if(Qt[Bt=E(w.transformHeader)?w.transformHeader(Bt,ki):Bt]){let hr,bd=Qt[Bt];for(;hr=Bt+"_"+bd,bd++,Ha.has(hr););Ha.add(hr),it[ki]=hr,Qt[Bt]++,xd=!0,(V=V===null?{}:V)[hr]=Bt}else Qt[Bt]=1,it[ki]=Bt;Ha.add(Bt)}xd&&console.warn("Duplicate headers found and renamed."),W=!0}return{data:ne,errors:Se,meta:{delimiter:k,linebreak:C,aborted:A,truncated:!!je,cursor:he+($||0),renamedHeaders:V}}}function Ft(){L(He()),ne=[],Se=[]}},this.abort=function(){A=!0},this.getCharIndex=function(){return O}}function m(w){var k=w.data,C=a[k.workerId],P=!1;if(k.error)C.userError(k.error,k.file);else if(k.results&&k.results.data){var L={abort:function(){P=!0,x(k.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:S,resume:S};if(E(C.userStep)){for(var j=0;j<k.results.data.length&&(C.userStep({data:k.results.data[j],errors:k.results.errors,meta:k.results.meta},L),!P);j++);delete k.results}else E(C.userChunk)&&(C.userChunk(k.results,L,k.file),delete k.results)}k.finished&&!P&&x(k.workerId,k.results)}function x(w,k){var C=a[w];E(C.userComplete)&&C.userComplete(k),C.terminate(),delete a[w]}function S(){throw new Error("Not implemented.")}function _(w){if(typeof w!="object"||w===null)return w;var k,C=Array.isArray(w)?[]:{};for(k in w)C[k]=_(w[k]);return C}function T(w,k){return function(){w.apply(k,arguments)}}function E(w){return typeof w=="function"}return u.parse=function(w,k){var C=(k=k||{}).dynamicTyping||!1;if(E(C)&&(k.dynamicTypingFunction=C,C={}),k.dynamicTyping=C,k.transform=!!E(k.transform)&&k.transform,!k.worker||!u.WORKERS_SUPPORTED)return C=null,u.NODE_STREAM_INPUT,typeof w=="string"?(w=(P=>P.charCodeAt(0)!==65279?P:P.slice(1))(w),C=new(k.download?d:h)(k)):w.readable===!0&&E(w.read)&&E(w.on)?C=new g(k):(i.File&&w instanceof File||w instanceof Object)&&(C=new f(k)),C.stream(w);(C=(()=>{var P;return!!u.WORKERS_SUPPORTED&&(P=(()=>{var L=i.URL||i.webkitURL||null,j=n.toString();return u.BLOB_URL||(u.BLOB_URL=L.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",j,")();"],{type:"text/javascript"})))})(),(P=new i.Worker(P)).onmessage=m,P.id=l++,a[P.id]=P)})()).userStep=k.step,C.userChunk=k.chunk,C.userComplete=k.complete,C.userError=k.error,k.step=E(k.step),k.chunk=E(k.chunk),k.complete=E(k.complete),k.error=E(k.error),delete k.worker,C.postMessage({input:w,config:k,workerId:C.id})},u.unparse=function(w,k){var C=!1,P=!0,L=",",j=`\r
64`,H='"',V=H+H,W=!1,z=null,R=!1,O=((()=>{if(typeof k=="object"){if(typeof k.delimiter!="string"||u.BAD_DELIMITERS.filter(function($){return k.delimiter.indexOf($)!==-1}).length||(L=k.delimiter),typeof k.quotes!="boolean"&&typeof k.quotes!="function"&&!Array.isArray(k.quotes)||(C=k.quotes),typeof k.skipEmptyLines!="boolean"&&typeof k.skipEmptyLines!="string"||(W=k.skipEmptyLines),typeof k.newline=="string"&&(j=k.newline),typeof k.quoteChar=="string"&&(H=k.quoteChar),typeof k.header=="boolean"&&(P=k.header),Array.isArray(k.columns)){if(k.columns.length===0)throw new Error("Option columns is empty");z=k.columns}k.escapeChar!==void 0&&(V=k.escapeChar+H),k.escapeFormulae instanceof RegExp?R=k.escapeFormulae:typeof k.escapeFormulae=="boolean"&&k.escapeFormulae&&(R=/^[=+\-@\t\r].*$/)}})(),new RegExp(b(H),"g"));if(typeof w=="string"&&(w=JSON.parse(w)),Array.isArray(w)){if(!w.length||Array.isArray(w[0]))return A(null,w,W);if(typeof w[0]=="object")return A(z||Object.keys(w[0]),w,W)}else if(typeof w=="object")return typeof w.data=="string"&&(w.data=JSON.parse(w.data)),Array.isArray(w.data)&&(w.fields||(w.fields=w.meta&&w.meta.fields||z),w.fields||(w.fields=Array.isArray(w.data[0])?w.fields:typeof w.data[0]=="object"?Object.keys(w.data[0]):[]),Array.isArray(w.data[0])||typeof w.data[0]=="object"||(w.data=[w.data])),A(w.fields||[],w.data||[],W);throw new Error("Unable to serialize unrecognized input");function A($,B,Q){var ie="",Z=(typeof $=="string"&&($=JSON.parse($)),typeof B=="string"&&(B=JSON.parse(B)),Array.isArray($)&&0<$.length),ze=!Array.isArray(B[0]);if(Z&&P){for(var q=0;q<$.length;q++)0<q&&(ie+=L),ie+=I($[q],q);0<B.length&&(ie+=j)}for(var ne=0;ne<B.length;ne++){var Se=(Z?$:B[ne]).length,G=!1,he=Z?Object.keys(B[ne]).length===0:B[ne].length===0;if(Q&&!Z&&(G=Q==="greedy"?B[ne].join("").trim()==="":B[ne].length===1&&B[ne][0].length===0),Q==="greedy"&&Z){for(var De=[],pe=0;pe<Se;pe++){var ae=ze?$[pe]:pe;De.push(B[ne][ae])}G=De.join("").trim()===""}if(!G){for(var Y=0;Y<Se;Y++){0<Y&&!he&&(ie+=L);var Ve=Z&&ze?$[Y]:Y;ie+=I(B[ne][Ve],Y)}ne<B.length-1&&(!Q||0<Se&&!he)&&(ie+=j)}}return ie}function I($,B){var Q,ie;return $==null?"":$.constructor===Date?JSON.stringify($).slice(1,25):(ie=!1,R&&typeof $=="string"&&R.test($)&&($="'"+$,ie=!0),Q=$.toString().replace(O,V),(ie=ie||C===!0||typeof C=="function"&&C($,B)||Array.isArray(C)&&C[B]||((Z,ze)=>{for(var q=0;q<ze.length;q++)if(-1<Z.indexOf(ze[q]))return!0;return!1})(Q,u.BAD_DELIMITERS)||-1<Q.indexOf(L)||Q.charAt(0)===" "||Q.charAt(Q.length-1)===" ")?H+Q+H:Q)}},u.RECORD_SEP="�",u.UNIT_SEP="�",u.BYTE_ORDER_MARK="\uFEFF",u.BAD_DELIMITERS=["\r",`
65`,'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!s&&!!i.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=p,u.ParserHandle=v,u.NetworkStreamer=d,u.FileStreamer=f,u.StringStreamer=h,u.ReadableStreamStreamer=g,i.jQuery&&((r=i.jQuery).fn.parse=function(w){var k=w.config||{},C=[];return this.each(function(j){if(!(r(this).prop("tagName").toUpperCase()==="INPUT"&&r(this).attr("type").toLowerCase()==="file"&&i.FileReader)||!this.files||this.files.length===0)return!0;for(var H=0;H<this.files.length;H++)C.push({file:this.files[H],inputElem:this,instanceConfig:r.extend({},k)})}),P(),this;function P(){if(C.length===0)E(w.complete)&&w.complete();else{var j,H,V,W,z=C[0];if(E(w.before)){var R=w.before(z.file,z.inputElem);if(typeof R=="object"){if(R.action==="abort")return j="AbortError",H=z.file,V=z.inputElem,W=R.reason,void(E(w.error)&&w.error({name:j},H,V,W));if(R.action==="skip")return void L();typeof R.config=="object"&&(z.instanceConfig=r.extend(z.instanceConfig,R.config))}else if(R==="skip")return void L()}var O=z.instanceConfig.complete;z.instanceConfig.complete=function(A){E(O)&&O(A,z.file,z.inputElem),L()},u.parse(z.file,z.instanceConfig)}}function L(){C.splice(0,1),P()}}),o&&(i.onmessage=function(w){w=w.data,u.WORKER_ID===void 0&&w&&(u.WORKER_ID=w.workerId),typeof w.input=="string"?i.postMessage({workerId:u.WORKER_ID,results:u.parse(w.input,w.config),finished:!0}):(i.File&&w.input instanceof File||w.input instanceof Object)&&(w=u.parse(w.input,w.config))&&i.postMessage({workerId:u.WORKER_ID,results:w,finished:!0})}),(d.prototype=Object.create(c.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,(h.prototype=Object.create(h.prototype)).constructor=h,(g.prototype=Object.create(c.prototype)).constructor=g,u})})(hw);var pw={exports:{}};(function(t,e){(function(n,i){i()})(Pi,function(){function n(u,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function i(u,c,d){var f=new XMLHttpRequest;f.open("GET",u),f.responseType="blob",f.onload=function(){l(f.response,c,d)},f.onerror=function(){console.error("could not download file")},f.send()}function r(u){var c=new XMLHttpRequest;c.open("HEAD",u,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function s(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");
65c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Pi=="object"&&Pi.global===Pi?Pi:void 0,a=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(u,c,d){var f=o.URL||o.webkitURL,h=document.createElement("a");c=c||u.name||"download",h.download=c,h.rel="noopener",typeof u=="string"?(h.href=u,h.origin===location.origin?s(h):r(h.href)?i(u,c,d):s(h,h.target="_blank")):(h.href=f.createObjectURL(u),setTimeout(function(){f.revokeObjectURL(h.href)},4e4),setTimeout(function(){s(h)},0))}:"msSaveOrOpenBlob"in navigator?function(u,c,d){if(c=c||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(n(u,d),c);else if(r(u))i(u,c,d);else{var f=document.createElement("a");f.href=u,f.target="_blank",setTimeout(function(){s(f)})}}:function(u,c,d,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof u=="string")return i(u,c,d);var h=u.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||h&&g||a)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var x=b.result;x=v?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=x:location=x,f=null},b.readAsDataURL(u)}else{var p=o.URL||o.webkitURL,m=p.createObjectURL(u);f?f.location=m:location.href=m,f=null,setTimeout(function(){p.revokeObjectURL(m)},4e4)}});o.saveAs=l.saveAs=l,t.exports=l})})(pw);/*!
66 * @kurkle/color v0.3.4
67 * https://github.com/kurkle/color#readme
68 * (c) 2024 Jukka Kurkela
69 * Released under the MIT License
70 */function Ms(t){return t+.5|0}const Tn=(t,e,n)=>Math.max(Math.min(t,n),e);function Or(t){return Tn(Ms(t*2.55),0,255)}function Bn(t){return Tn(Ms(t*255),0,255)}function rn(t){return Tn(Ms(t/2.55)/100,0,1)}function zf(t){return Tn(Ms(t*100),0,100)}const yt={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},Nu=[..."0123456789ABCDEF"],gw=t=>Nu[t&15],mw=t=>Nu[(t&240)>>4]+Nu[t&15],Xs=t=>(t&240)>>4===(t&15),vw=t=>Xs(t.r)&&Xs(t.g)&&Xs(t.b)&&Xs(t.a);function yw(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&yt[t[1]]*17,g:255&yt[t[2]]*17,b:255&yt[t[3]]*17,a:e===5?yt[t[4]]*17:255}:(e===7||e===9)&&(n={r:yt[t[1]]<<4|yt[t[2]],g:yt[t[3]]<<4|yt[t[4]],b:yt[t[5]]<<4|yt[t[6]],a:e===9?yt[t[7]]<<4|yt[t[8]]:255})),n}const xw=(t,e)=>t<255?e(t):"";function bw(t){var e=vw(t)?gw:mw;return t?"#"+e(t.r)+e(t.g)+e(t.b)+xw(t.a,e):void 0}const ww=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Gm(t,e,n){const i=e*Math.min(n,1-n),r=(s,o=(s+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[r(0),r(8),r(4)]}function Sw(t,e,n){const i=(r,s=(r+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function _w(t,e,n){const i=Gm(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function kw(t,e,n,i,r){return t===r?(e-n)/i+(e<n?6:0):e===r?(n-t)/i+2:(t-e)/i+4}function Zc(t){const n=t.r/255,i=t.g/255,r=t.b/255,s=Math.max(n,i,r),o=Math.min(n,i,r),a=(s+o)/2;let l,u,c;return s!==o&&(c=s-o,u=a>.5?c/(2-s-o):c/(s+o),l=kw(n,i,r,c,s),l=l*60+.5),[l|0,u||0,a]}function ed(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(Bn)}function td(t,e,n){return ed(Gm,t,e,n)}function Cw(t,e,n){return ed(_w,t,e,n)}function Ew(t,e,n){return ed(Sw,t,e,n)}function Ym(t){return(t%360+360)%360}function Tw(t){const e=ww.exec(t);let n=255,i;if(!e)return;e[5]!==i&&(n=e[6]?Or(+e[5]):Bn(+e[5]));const r=Ym(+e[2]),s=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?i=Cw(r,s,o):e[1]==="hsv"?i=Ew(r,s,o):i=td(r,s,o),{r:i[0],g:i[1],b:i[2],a:n}}function Pw(t,e){var n=Zc(t);n[0]=Ym(n[0]+e),n=td(n),t.r=n[0],t.g=n[1],t.b=n[2]}function Mw(t){if(!t)return;const e=Zc(t),n=e[0],i=zf(e[1]),r=zf(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${rn(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}const Ff={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"},Bf={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",K
vendor: 5,184 bytes, lines 70-75
70ocTate:"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 Rw(){const t={},e=Object.keys(Bf),n=Object.keys(Ff);let i,r,s,o,a;for(i=0;i<e.length;i++){for(o=a=e[i],r=0;r<n.length;r++)s=n[r],a=a.replace(s,Ff[s]);s=parseInt(Bf[o],16),t[a]=[s>>16&255,s>>8&255,s&255]}return t}let Ks;function Lw(t){Ks||(Ks=Rw(),Ks.transparent=[0,0,0,0]);const e=Ks[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const Ow=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Dw(t){const e=Ow.exec(t);let n=255,i,r,s;if(e){if(e[7]!==i){const o=+e[7];n=e[8]?Or(o):Tn(o*255,0,255)}return i=+e[1],r=+e[3],s=+e[5],i=255&(e[2]?Or(i):Tn(i,0,255)),r=255&(e[4]?Or(r):Tn(r,0,255)),s=255&(e[6]?Or(s):Tn(s,0,255)),{r:i,g:r,b:s,a:n}}}function jw(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${rn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const xl=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Ei=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Nw(t,e,n){const i=Ei(rn(t.r)),r=Ei(rn(t.g)),s=Ei(rn(t.b));return{r:Bn(xl(i+n*(Ei(rn(e.r))-i))),g:Bn(xl(r+n*(Ei(rn(e.g))-r))),b:Bn(xl(s+n*(Ei(rn(e.b))-s))),a:t.a+n*(e.a-t.a)}}function Qs(t,e,n){if(t){let i=Zc(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,e===0?360:1)),i=td(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Xm(t,e){return t&&Object.assign(e||{},t)}function $f(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=Bn(t[3]))):(e=Xm(t,{r:0,g:0,b:0,a:1}),e.a=Bn(e.a)),e}function Aw(t){return t.charAt(0)==="r"?Dw(t):Tw(t)}class gs{constructor(e){if(e instanceof gs)return e;const n=typeof e;let i;n==="object"?i=$f(e):n==="string"&&(i=yw(e)||Lw(e)||Aw(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=Xm(this._rgb);return e&&(e.a=rn(e.a)),e}set rgb(e){this._rgb=$f(e)}rgbString(){return this._valid?jw(this._rgb):void 0}hexString(){return this._valid?bw(this._rgb):void 0}hslString(){return this._valid?Mw(this._rgb):void 0}mix(e,n){if(e){const i=this.rgb,r=e.rgb;let s;const o=n===s?.5:n,a=2*o-1,l=i.a-r.a,u=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;s=1-u,i.r=255&u*i.r+s*r.r+.5,i.g=255&u*i.g+s*r.g+.5,i.b=255&u*i.b+s*r.b+.5,i.a=o*i.a+(1-o)*r.a,this.rgb=i}return this}interpolate(e,n){return e&&(this._rgb=Nw(this._rgb,e._rgb,n)),this}clone(){return new gs(this.rgb)}alpha(e){return this._rgb.a=Bn(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=Ms(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 Qs(this._rgb,2,e),this}darken(e){return Qs(this._rgb,2,-e),this}saturate(e){return Qs(this._rgb,1,e),this}desaturate(e){return Qs(this._rgb,1,-e),this}rotate(e){return Pw(this._rgb,e),this}}/*!
71 * Chart.js v4.5.1
72 * https://www.chartjs.org
73 * (c) 2025 Chart.js Contributors
74 * Released under the MIT License
75 */function qt(){}const Iw=(()=>{let t=0;return()=>t++})();function J(t){return t==null}function ve(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);
vendor: 4,114 bytes, line 75
75return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function K(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Ie(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Vt(t,e){return Ie(t)?t:e}function U(t,e){return typeof t>"u"?e:t}const zw=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,Km=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function le(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function se(t,e,n,i){let r,s,o;if(ve(t))for(s=t.length,r=0;r<s;r++)e.call(n,t[r],r);else if(K(t))for(o=Object.keys(t),s=o.length,r=0;r<s;r++)e.call(n,t[o[r]],o[r])}function aa(t,e){let n,i,r,s;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(r=t[n],s=e[n],r.datasetIndex!==s.datasetIndex||r.index!==s.index)return!1;return!0}function la(t){if(ve(t))return t.map(la);if(K(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let r=0;for(;r<i;++r)e[n[r]]=la(t[n[r]]);return e}return t}function Qm(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function Fw(t,e,n,i){if(!Qm(t))return;const r=e[t],s=n[t];K(r)&&K(s)?ms(r,s,i):e[t]=la(s)}function ms(t,e,n){const i=ve(e)?e:[e],r=i.length;if(!K(t))return t;n=n||{};const s=n.merger||Fw;let o;for(let a=0;a<r;++a){if(o=i[a],!K(o))continue;const l=Object.keys(o);for(let u=0,c=l.length;u<c;++u)s(l[u],t,o,n)}return t}function Gr(t,e){return ms(t,e,{merger:Bw})}function Bw(t,e,n){if(!Qm(t))return;const i=e[t],r=n[t];K(i)&&K(r)?Gr(i,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=la(r))}const Vf={"":t=>t,x:t=>t.x,y:t=>t.y};function $w(t){const e=t.split("."),n=[];let i="";for(const r of e)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function Vw(t){const e=$w(t);return n=>{for(const i of e){if(i==="")break;n=n&&n[i]}return n}}function Hn(t,e){return(Vf[e]||(Vf[e]=Vw(e)))(t)}function nd(t){return t.charAt(0).toUpperCase()+t.slice(1)}const vs=t=>typeof t<"u",Wn=t=>typeof t=="function",Hf=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function Hw(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const te=Math.PI,fe=2*te,Ww=fe+te,ua=Number.POSITIVE_INFINITY,Uw=te/180,Te=te/2,Qn=te/4,Wf=te*2/3,qm=Math.log10,Kt=Math.sign;function Yr(t,e,n){return Math.abs(t-e)<n}function Uf(t){const e=Math.round(t);t=Yr(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(qm(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function Gw(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(n|0)&&e.push(n),e.sort((r,s)=>r-s).pop(),e}function Yw(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function ir(t){return!Yw(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Xw(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function Kw(t,e,n){let i,r,s;for(i=0,r=t.length;i<r;i++)s=t[i][n],isNaN(s)||(e.min=Math.min(e.min,s),e.max=Math.max(e.max,s))}function Lt(t){return t*(te/180)}function id(t){return t*(180/te)}function Gf(t){if(!Ie(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Jm(t,e){const n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i);let s=Math.atan2(i,n);return s<-.5*te&&(s+=fe),{angle:s,distance:r}}function Au(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Qw(t,e){return(t-e+Ww)%fe-te}function Ye(t){return(t%fe+fe)%fe}function ys(t,e,n,i){const r=Ye(t),s=Ye(e),o=Ye(n),a=Ye(s-r),l=Ye(o-r),u=Ye(r-s),c=Ye(r-o);return r===s||r===o||i&&s===o||a>l&&u<c}function Ke(t,e,n){return Math.max(e,Math.min(n,t))}function qw(t){return Ke(t,-32768,32767)}function an(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function rd(t,e,n){n=n||(o=>t[o]<e);let i=t.length-1,r=0,s;for(;i-r>1;)s=r+i>>1,n(s)?r=s:i=s;return{lo:r,hi:i}}const oi=(t,e,n,i)=>rd(t,n,i?r=>{const s=t[r][e];return s<n||s===n&&t[r+1][e]===n}:r=>t[r][e]<n),Jw=(t,e,n)=>rd(t,n,i=>t[i][e]>=n);function Zw(t,e,n){let i=0,r=t.length;for(;i<r&&t[i]<e;)i++;for(;r>i&&t[r-1]>n;)r--;return i>0||r<t.length?t.slice(i,r):t}
vendor: 4,887 bytes, line 75
75const Zm=["push","pop","shift","splice","unshift"];function eS(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Zm.forEach(n=>{const i="_onData"+nd(n),r=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...s){const o=r.apply(this,s);return t._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...s)}),o}})})}function Yf(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);r!==-1&&i.splice(r,1),!(i.length>0)&&(Zm.forEach(s=>{delete t[s]}),delete t._chartjs)}function ev(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const tv=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function nv(t,e){let n=[],i=!1;return function(...r){n=r,i||(i=!0,tv.call(window,()=>{i=!1,t.apply(e,n)}))}}function tS(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const sd=t=>t==="start"?"left":t==="end"?"right":"center",Ge=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,nS=(t,e,n,i)=>t===(i?"left":"right")?n:t==="center"?(e+n)/2:e;function iv(t,e,n){const i=e.length;let r=0,s=i;if(t._sorted){const{iScale:o,vScale:a,_parsed:l}=t,u=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,c=o.axis,{min:d,max:f,minDefined:h,maxDefined:g}=o.getUserBounds();if(h){if(r=Math.min(oi(l,c,d).lo,n?i:oi(e,c,o.getPixelForValue(d)).lo),u){const v=l.slice(0,r+1).reverse().findIndex(b=>!J(b[a.axis]));r-=Math.max(0,v)}r=Ke(r,0,i-1)}if(g){let v=Math.max(oi(l,o.axis,f,!0).hi+1,n?0:oi(e,c,o.getPixelForValue(f),!0).hi+1);if(u){const b=l.slice(v-1).findIndex(p=>!J(p[a.axis]));v+=Math.max(0,b)}s=Ke(v,r,i)-r}else s=i-r}return{start:r,count:s}}function rv(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,r={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=r,!0;const s=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),s}const qs=t=>t===0||t===1,Xf=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*fe/n)),Kf=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*fe/n)+1,Xr={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*Te)+1,easeOutSine:t=>Math.sin(t*Te),easeInOutSine:t=>-.5*(Math.cos(te*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=>qs(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=>qs(t)?t:Xf(t,.075,.3),easeOutElastic:t=>qs(t)?t:Kf(t,.075,.3),easeInOutElastic(t){return qs(t)?t:t<.5?.5*Xf(t*2,.1125,.45):.5+.5*Kf(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-Xr.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?Xr.easeInBounce(t*2)*.5:Xr.easeOutBounce(t*2-1)*.5+.5};function od(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Qf(t){return od(t)?t:new gs(t)}function bl(t){return od(t)?t:new gs(t).saturate(.5).darken(.1).hexString()}const iS=["x","y","borderWidth","radius","tension"],rS=["color","borderColor","backgroundColor"];function sS(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:rS},numbers:{type:"number",properties:iS}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function oS(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const qf=new Map;function aS(t,e){e=e||{};const n=t+JSON.stringify(e);let i=qf.get(n);
vendor: 28,166 bytes, lines 75-80
75return i||(i=new Intl.NumberFormat(t,e),qf.set(n,i)),i}function Aa(t,e,n){return aS(e,n).format(t)}const lS={values(t){return ve(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const i=this.chart.options.locale;let r,s=t;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(r="scientific"),s=uS(t,n)}const o=qm(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Aa(t,i,l)}};function uS(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 ad={formatters:lS};function cS(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width: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:ad.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const mi=Object.create(null),Iu=Object.create(null);function Kr(t,e){if(!e)return t;const n=e.split(".");for(let i=0,r=n.length;i<r;++i){const s=n[i];t=t[s]||(t[s]=Object.create(null))}return t}function wl(t,e,n){return typeof e=="string"?ms(Kr(t,e),n):ms(Kr(t,""),e)}class dS{constructor(e,n){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=i=>i.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=(i,r)=>bl(r.backgroundColor),this.hoverBorderColor=(i,r)=>bl(r.borderColor),this.hoverColor=(i,r)=>bl(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),this.apply(n)}set(e,n){return wl(this,e,n)}get(e){return Kr(this,e)}describe(e,n){return wl(Iu,e,n)}override(e,n){return wl(mi,e,n)}route(e,n,i,r){const s=Kr(this,e),o=Kr(this,i),a="_"+n;Object.defineProperties(s,{[a]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],u=o[r];return K(l)?Object.assign({},u,l):U(l,u)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var Ce=new dS({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[sS,oS,cS]);function fS(t){return!t||J(t.size)||J(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function ca(t,e,n,i,r){let s=e[r];return s||(s=e[r]=t.measureText(r).width,n.push(r)),s>i&&(i=s),i}function hS(t,e,n,i){i=i||{};let r=i.data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},s=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let o=0;const a=n.length;let l,u,c,d,f;for(l=0;l<a;l++)if(d=n[l],d!=null&&!ve(d))o=ca(t,r,s,o,d);else if(ve(d))for(u=0,c=d.length;u<c;u++)f=d[u],f!=null&&!ve(f)&&(o=ca(t,r,s,o,f));t.restore();const h=s.length/2;if(h>n.length){for(l=0;l<h;l++)delete r[s[l]];s.splice(0,h)}return o}function qn(t,e,n){const i=t.currentDevicePixelRatio,r=n!==0?Math.max(n/2,.5):0;return Math.round((e-r)*i)/i+r}function Jf(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function zu(t,e,n,i){sv(t,e,n,i,null)}function sv(t,e,n,i,r){let s,o,a,l,u,c,d,f;const h=e.pointStyle,g=e.rotation,v=e.radius;let b=(g||0)*Uw;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){t.save(),t.translate(n,i),t.rotate(b),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(v)||v<=0)){switch(t.beginPath(),h){default:r?t.ellipse(n,i,r/2,v,0,0,fe):t.arc(n,i,v,0,fe),t.closePath();break;case"triangle":c=r?r/2:v,t.moveTo(n+Math.sin(b)*c,i-Math.cos(b)*v),b+=Wf,t.lineTo(n+Math.sin(b)*c,i-Math.cos(b)*v),b+=Wf,t.lineTo(n+Math.sin(b)*c,i-Math.cos(b)*v),t.closePath();break;case"rectRounded":u=v*.516,l=v-u,o=Math.cos(b+Qn)*l,d=Math.cos(b+Qn)*(r?r/2-u:l),a=Math.sin(b+Qn)*l,f=Math.sin(b+Qn)*(r?r/2-u:l),t.arc(n-d,i-a,u,b-te,b-Te),t.arc(n+f,i-o,u,b-Te,b),t.arc(n+d,i+a,u,b,b+Te),t.arc(n-f,i+o,u,b+Te,b+te),t.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*v,c=r?r/2:l,t.rect(n-c,i-l,2*c,2*l);break}b+=Qn;case"rectRot":d=Math.cos(b)*(r?r/2:v),o=Math.cos(b)*v,a=Math.sin(b)*v,f=Math.sin(b)*(r?r/2:v),t.moveTo(n-d,i-a),t.lineTo(n+f,i-o),t.lineTo(n+d,i+a),t.lineTo(n-f,i+o),t.closePath();break;case"crossRot":b+=Qn;case"cross":d=Math.cos(b)*(r?r/2:v),o=Math.cos(b)*v,a=Math.sin(b)*v,f=Math.sin(b)*(r?r/2:v),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+f,i-o),t.lineTo(n-f,i+o);break;case"star":d=Math.cos(b)*(r?r/2:v),o=Math.cos(b)*v,a=Math.sin(b)*v,f=Math.sin(b)*(r?r/2:v),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+f,i-o),t.lineTo(n-f,i+o),b+=Qn,d=Math.cos(b)*(r?r/2:v),o=Math.cos(b)*v,a=Math.sin(b)*v,f=Math.sin(b)*(r?r/2:v),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+f,i-o),t.lineTo(n-f,i+o);break;case"line":o=r?r/2:Math.cos(b)*v,a=Math.sin(b)*v,t.moveTo(n-o,i-a),t.lineTo(n+o,i+a);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(b)*(r?r/2:v),i+Math.sin(b)*v);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function ln(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 Ia(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function za(t){t.restore()}function pS(t,e,n,i,r){if(!e)return t.lineTo(n.x,n.y);if(r==="middle"){const s=(e.x+n.x)/2;t.lineTo(s,e.y),t.lineTo(s,n.y)}else r==="after"!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function gS(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function mS(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),J(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 vS(t,e,n,i,r){if(r.strikethrough||r.underline){const s=t.measureText(i),o=e-s.actualBoundingBoxLeft,a=e+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,u=n+s.actualBoundingBoxDescent,c=r.strikethrough?(l+u)/2:u;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(o,c),t.lineTo(a,c),t.stroke()}}function yS(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function vi(t,e,n,i,r,s={}){const o=ve(e)?e:[e],a=s.strokeWidth>0&&s.strokeColor!=="";let l,u;for(t.save(),t.font=r.string,mS(t,s),l=0;l<o.length;++l)u=o[l],s.backdrop&&yS(t,s.backdrop),a&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),J(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(u,n,i,s.maxWidth)),t.fillText(u,n,i,s.maxWidth),vS(t,n,i,u,s),i+=Number(r.lineHeight);t.restore()}function xs(t,e){const{x:n,y:i,w:r,h:s,radius:o}=e;t.arc(n+o.topLeft,i+o.topLeft,o.topLeft,1.5*te,te,!0),t.lineTo(n,i+s-o.bottomLeft),t.arc(n+o.bottomLeft,i+s-o.bottomLeft,o.bottomLeft,te,Te,!0),t.lineTo(n+r-o.bottomRight,i+s),t.arc(n+r-o.bottomRight,i+s-o.bottomRight,o.bottomRight,Te,0,!0),t.lineTo(n+r,i+o.topRight),t.arc(n+r-o.topRight,i+o.topRight,o.topRight,0,-Te,!0),t.lineTo(n+o.topLeft,i)}const xS=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,bS=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function wS(t,e){const n=(""+t).match(xS);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 SS=t=>+t||0;function ld(t,e){const n={},i=K(e),r=i?Object.keys(e):e,s=K(t)?i?o=>U(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of r)n[o]=SS(s(o));return n}function ov(t){return ld(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ui(t){return ld(t,["topLeft","topRight","bottomLeft","bottomRight"])}function qe(t){const e=ov(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Oe(t,e){t=t||{},e=e||Ce.font;let n=U(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let i=U(t.style,e.style);i&&!(""+i).match(bS)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:U(t.family,e.family),lineHeight:wS(U(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:U(t.weight,e.weight),string:""};return r.string=fS(r),r}function Js(t,e,n,i){let r,s,o;for(r=0,s=t.length;r<s;++r)if(o=t[r],o!==void 0&&o!==void 0)return o}function _S(t,e,n){const{min:i,max:r}=t,s=Km(e,(r-i)/2),o=(a,l)=>n&&a===0?0:a+l;return{min:o(i,-Math.abs(s)),max:o(r,s)}}function Kn(t,e){return Object.assign(Object.create(t),e)}function ud(t,e=[""],n,i,r=()=>t[0]){const s=n||t;typeof i>"u"&&(i=cv("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:i,_getTarget:r,override:a=>ud([a,...t],e,s,i)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return lv(a,l,()=>LS(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return eh(a).includes(l)},ownKeys(a){return eh(a)},set(a,l,u){const c=a._storage||(a._storage=r());return a[l]=c[l]=u,delete a._keys,!0}})}function rr(t,e,n,i){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:av(t,i),setContext:s=>rr(t,s,n,i),override:s=>rr(t.override(s),e,n,i)};return new Proxy(r,{deleteProperty(s,o){return delete s[o],delete t[o],!0},get(s,o,a){return lv(s,o,()=>CS(s,o,a))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(s,o,a){return t[o]=a,delete s[o],!0}})}function av(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:Wn(n)?n:()=>n,isIndexable:Wn(i)?i:()=>i}}const kS=(t,e)=>t?t+nd(e):e,cd=(t,e)=>K(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function lv(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const i=n();return t[e]=i,i}function CS(t,e,n){const{_proxy:i,_context:r,_subProxy:s,_descriptors:o}=t;let a=i[e];return Wn(a)&&o.isScriptable(e)&&(a=ES(e,a,t,n)),ve(a)&&a.length&&(a=TS(e,a,t,o.isIndexable)),cd(e,a)&&(a=rr(a,r,s&&s[e],o)),a}function ES(t,e,n,i){const{_proxy:r,_context:s,_subProxy:o,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(s,o||i);return a.delete(t),cd(t,l)&&(l=dd(r._scopes,r,t,l)),l}function TS(t,e,n,i){const{_proxy:r,_context:s,_subProxy:o,_descriptors:a}=n;if(typeof s.index<"u"&&i(t))return e[s.index%e.length];if(K(e[0])){const l=e,u=r._scopes.filter(c=>c!==l);e=[];for(const c of l){const d=dd(u,r,t,c);e.push(rr(d,s,o&&o[t],a))}}return e}function uv(t,e,n){return Wn(t)?t(e,n):t}const PS=(t,e)=>t===!0?e:typeof t=="string"?Hn(e,t):void 0;function MS(t,e,n,i,r){for(const s of e){const o=PS(n,s);if(o){t.add(o);const a=uv(o._fallback,n,r);if(typeof a<"u"&&a!==n&&a!==i)return a}else if(o===!1&&typeof i<"u"&&n!==i)return null}return!1}function dd(t,e,n,i){const r=e._rootScopes,s=uv(e._fallback,n,i),o=[...t,...r],a=new Set;a.add(i);let l=Zf(a,o,n,s||n,i);return l===null||typeof s<"u"&&s!==n&&(l=Zf(a,o,s,l,i),l===null)?!1:ud(Array.from(a),[""],r,s,()=>RS(e,n,i))}function Zf(t,e,n,i,r){for(;n;)n=MS(t,e,n,i,r);return n}function RS(t,e,n){const i=t._getTarget();e in i||(i[e]={});const r=i[e];return ve(r)&&K(n)?n:r||{}}function LS(t,e,n,i){let r;for(const s of e)if(r=cv(kS(s,t),n),typeof r<"u")return cd(t,r)?dd(n,i,t,r):r}function cv(t,e){for(const n of e){if(!n)continue;const i=n[t];if(typeof i<"u")return i}}function eh(t){let e=t._keys;return e||(e=t._keys=OS(t._scopes)),e}function OS(t){const e=new Set;for(const n of t)for(const i of Object.keys(n).filter(r=>!r.startsWith("_")))e.add(i);return Array.from(e)}function dv(t,e,n,i){const{iScale:r}=t,{key:s="r"}=this._parsing,o=new Array(i);let a,l,u,c;for(a=0,l=i;a<l;++a)u=a+n,c=e[u],o[a]={r:r.parse(Hn(c,s),u)};return o}const DS=Number.EPSILON||1e-14,sr=(t,e)=>e<t.length&&!t[e].skip&&t[e],fv=t=>t==="x"?"y":"x";function jS(t,e,n,i){const r=t.skip?e:t,s=e,o=n.skip?e:n,a=Au(s,r),l=Au(o,s);let u=a/(a+l),c=l/(a+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const d=i*u,f=i*c;return{previous:{x:s.x-d*(o.x-r.x),y:s.y-d*(o.y-r.y)},next:{x:s.x+f*(o.x-r.x),y:s.y+f*(o.y-r.y)}}}function NS(t,e,n){const i=t.length;let r,s,o,a,l,u=sr(t,0);for(let c=0;c<i-1;++c)if(l=u,u=sr(t,c+1),!(!l||!u)){if(Yr(e[c],0,DS)){n[c]=n[c+1]=0;continue}r=n[c]/e[c],s=n[c+1]/e[c],a=Math.pow(r,2)+Math.pow(s,2),!(a<=9)&&(o=3/Math.sqrt(a),n[c]=r*o*e[c],n[c+1]=s*o*e[c])}}function AS(t,e,n="x"){const i=fv(n),r=t.length;let s,o,a,l=sr(t,0);for(let u=0;u<r;++u){if(o=a,a=l,l=sr(t,u+1),!a)continue;const c=a[n],d=a[i];o&&(s=(c-o[n])/3,a[`cp1${n}`]=c-s,a[`cp1${i}`]=d-s*e[u]),l&&(s=(l[n]-c)/3,a[`cp2${n}`]=c+s,a[`cp2${i}`]=d+s*e[u])}}function IS(t,e="x"){const n=fv(e),i=t.length,r=Array(i).fill(0),s=Array(i);let o,a,l,u=sr(t,0);for(o=0;o<i;++o)if(a=l,l=u,u=sr(t,o+1),!!l){if(u){const c=u[e]-l[e];r[o]=c!==0?(u[n]-l[n])/c:0}s[o]=a?u?Kt(r[o-1])!==Kt(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}NS(t,r,s),AS(t,s,e)}function Zs(t,e,n){return Math.max(Math.min(t,n),e)}function zS(t,e){let n,i,r,s,o,a=ln(t[0],e);for(n=0,i=t.length;n<i;++n)o=s,s=a,a=n<i-1&&ln(t[n+1],e),s&&(r=t[n],o&&(r.cp1x=Zs(r.cp1x,e.left,e.right),r.cp1y=Zs(r.cp1y,e.top,e.bottom)),a&&(r.cp2x=Zs(r.cp2x,e.left,e.right),r.cp2y=Zs(r.cp2y,e.top,e.bottom)))}function FS(t,e,n,i,r){let s,o,a,l;if(e.spanGaps&&(t=t.filter(u=>!u.skip)),e.cubicInterpolationMode==="monotone")IS(t,r);else{let u=i?t[t.length-1]:t[0];for(s=0,o=t.length;s<o;++s)a=t[s],l=jS(u,a,t[Math.min(s+1,o-(i?0:1))%o],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,u=a}e.capBezierPoints&&zS(t,n)}function fd(){return typeof window<"u"&&typeof document<"u"}function hd(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function da(t,e,n){let i;return typeof t=="string"?(i=parseInt(t,10),t.indexOf("%")!==-1&&(i=i/100*e.parentNode[n])):i=t,i}const Fa=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function BS(t,e){return Fa(t).getPropertyValue(e)}const $S=["top","right","bottom","left"];function ci(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const s=$S[r];i[s]=parseFloat(t[e+"-"+s+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const VS=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function HS(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:s}=i;let o=!1,a,l;if(VS(r,s,t.target))a=r,l=s;else{const u=e.getBoundingClientRect();a=i.clientX-u.left,l=i.clientY-u.top,o=!0}return{x:a,y:l,box:o}}function ti(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=Fa(n),s=r.boxSizing==="border-box",o=ci(r,"padding"),a=ci(r,"border","width"),{x:l,y:u,box:c}=HS(t,n),d=o.left+(c&&a.left),f=o.top+(c&&a.top);let{width:h,height:g}=e;return s&&(h-=o.width+a.width,g-=o.height+a.height),{x:Math.round((l-d)/h*n.width/i),y:Math.round((u-f)/g*n.height/i)}}function WS(t,e,n){let i,r;if(e===void 0||n===void 0){const s=t&&hd(t);if(!s)e=t.clientWidth,n=t.clientHeight;else{const o=s.getBoundingClientRect(),a=Fa(s),l=ci(a,"border","width"),u=ci(a,"padding");e=o.width-u.width-l.width,n=o.height-u.height-l.height,i=da(a.maxWidth,s,"clientWidth"),r=da(a.maxHeight,s,"clientHeight")}}return{width:e,height:n,maxWidth:i||ua,maxHeight:r||ua}}const Pn=t=>Math.round(t*10)/10;function US(t,e,n,i){const r=Fa(t),s=ci(r,"margin"),o=da(r.maxWidth,t,"clientWidth")||ua,a=da(r.maxHeight,t,"clientHeight")||ua,l=WS(t,e,n);let{width:u,height:c}=l;if(r.boxSizing==="content-box"){const f=ci(r,"border","width"),h=ci(r,"padding");u-=h.width+f.width,c-=h.height+f.height}return u=Math.max(0,u-s.width),c=Math.max(0,i?u/i:c-s.height),u=Pn(Math.min(u,o,l.maxWidth)),c=Pn(Math.min(c,a,l.maxHeight)),u&&!c&&(c=Pn(u/2)),(e!==void 0||n!==void 0)&&i&&l.height&&c>l.height&&(c=l.height,u=Pn(Math.floor(c*i))),{width:u,height:c}}function th(t,e,n){const i=e||1,r=Pn(t.height*i),s=Pn(t.width*i);t.height=Pn(t.height),t.width=Pn(t.width);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!==i||o.height!==r||o.width!==s?(t.currentDevicePixelRatio=i,o.height=r,o.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}const GS=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};fd()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function nh(t,e){const n=BS(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function ni(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function YS(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:i==="middle"?n<.5?t.y:e.y:i==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function XS(t,e,n,i){const r={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},o=ni(t,r,n),a=ni(r,s,n),l=ni(s,e,n),u=ni(o,a,n),c=ni(a,l,n);return ni(u,c,n)}const KS=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,i){return n-i},leftForLtr(n,i){return n-i}}},QS=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Xi(t,e,n){return t?KS(e,n):QS()}function hv(t,e){let n,i;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function pv(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function gv(t){return t==="angle"?{between:ys,compare:Qw,normalize:Ye}:{between:an,compare:(e,n)=>e-n,normalize:e=>e}}function ih({start:t,end:e,count:n,loop:i,style:r}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n===0,style:r}}function qS(t,e,n){const{property:i,start:r,end:s}=n,{between:o,normalize:a}=gv(i),l=e.length;let{start:u,end:c,loop:d}=t,f,h;if(d){for(u+=l,c+=l,f=0,h=l;f<h&&o(a(e[u%l][i]),r,s);++f)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:t.style}}function mv(t,e,n){if(!n)return[t];const{property:i,start:r,end:s}=n,o=e.length,{compare:a,between:l,normalize:u}=gv(i),{start:c,end:d,loop:f,style:h}=qS(t,e,n),g=[];let v=!1,b=null,p,m,x;const S=()=>l(r,x,p)&&a(r,x)!==0,_=()=>a(s,p)===0||l(s,x,p),T=()=>v||S(),E=()=>!v||_();for(let w=c,k=c;w<=d;++w)m=e[w%o],!m.skip&&(p=u(m[i]),p!==x&&(v=l(p,r,s),b===null&&T()&&(b=a(p,r)===0?w:k),b!==null&&E()&&(g.push(ih({start:b,end:w,loop:f,count:o,style:h})),b=null),k=w,x=p));return b!==null&&g.push(ih({start:b,end:d,loop:f,count:o,style:h})),g}function vv(t,e){const n=[],i=t.segments;for(let r=0;r<i.length;r++){const s=mv(i[r],t.points,e);s.length&&n.push(...s)}return n}function JS(t,e,n,i){let r=0,s=e-1;if(n&&!i)for(;r<e&&!t[r].skip;)r++;for(;r<e&&t[r].skip;)r++;for(r%=e,n&&(s+=r);s>r&&t[s%e].skip;)s--;return s%=e,{start:r,end:s}}function ZS(t,e,n,i){const r=t.length,s=[];let o=e,a=t[e],l;for(l=e+1;l<=n;++l){const u=t[l%r];u.skip||u.stop?a.skip||(i=!1,s.push({start:e%r,end:(l-1)%r,loop:i}),e=o=u.stop?l:null):(o=l,a.skip&&(e=l)),a=u}return o!==null&&s.push({start:e%r,end:o%r,loop:i}),s}function e_(t,e){const n=t.points,i=t.options.spanGaps,r=n.length;if(!r)return[];const s=!!t._loop,{start:o,end:a}=JS(n,r,s,i);if(i===!0)return rh(t,[{start:o,end:a,loop:s}],n,e);const l=a<o?a+r:a,u=!!t._fullLoop&&o===0&&a===r-1;return rh(t,ZS(n,o,l,u),n,e)}function rh(t,e,n,i){return!i||!i.setContext||!n?e:t_(t,e,n,i)}function t_(t,e,n,i){const r=t._chart.getContext(),s=sh(t.options),{_datasetIndex:o,options:{spanGaps:a}}=t,l=n.length,u=[];let c=s,d=e[0].start,f=d;function h(g,v,b,p){const m=a?-1:1;if(g!==v){for(g+=l;n[g%l].skip;)g-=m;for(;n[v%l].skip;)v+=m;g%l!==v%l&&(u.push({start:g%l,end:v%l,loop:b,style:p}),c=p,d=v%l)}}for(const g of e){d=a?d:g.start;let v=n[d%l],b;for(f=d+1;f<=g.end;f++){const p=n[f%l];b=sh(i.setContext(Kn(r,{type:"segment",p0:v,p1:p,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:o}))),n_(b,c)&&h(d,f-1,g.loop,c),v=p,c=b}d<f-1&&h(d,f-1,g.loop,c)}return u}function sh(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function n_(t,e){if(!e)return!1;const n=[],i=function(r,s){return od(s)?(n.includes(s)||n.push(s),n.indexOf(s)):s};return JSON.stringify(t,i)!==JSON.stringify(e,i)}function eo(t,e,n){return t.options.clip?t[n]:e[n]}function i_(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:eo(n,e,"left"),right:eo(n,e,"right"),top:eo(i,e,"top"),bottom:eo(i,e,"bottom")}:e}function yv(t,e){const n=e._clip;if(n.disabled)return!1;const i=i_(e,t.chartArea);return{left:n.left===!1?0:i.left-(n.left===!0?0:n.left),right:n.right===!1?t.width:i.right+(n.right===!0?0:n.right),top:n.top===!1?0:i.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?t.height:i.bottom+(n.bottom===!0?0:n.bottom)}}/*!
76 * Chart.js v4.5.1
77 * https://www.chartjs.org
78 * (c) 2025 Chart.js Contributors
79 * Released under the MIT License
80 */class r_{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,i,r){const s=n.listeners[r],o=n.duration;s.forEach(a=>a({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(i-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=tv.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;const s=i.items;let o=s.length-1,a=!1,l;for(;o>=0;--o)l=s[o],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(e),a=!0):(s[o]=s[s.length-1],s.pop());a&&(r.draw(),this._notify(r,i,e,"progress")),s.length||(i.running=!1,this._notify(r,i,e,"complete"),i.initial=!1),n+=s.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let i=n.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,i)),i}listen(e,n,i){this._getAnims(e).listeners[n].push(i)}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((i,r)=>Math.max(i,r._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 i=n.items;let r=i.length-1;for(;r>=0;--r)i[r].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Jt=new r_;const oh="transparent",s_={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=Qf(t||oh),r=i.valid&&Qf(e||oh);return r&&r.valid?r.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class o_{constructor(e,n,i,r){const s=n[i];r=Js([e.to,r,s,e.from]);const o=Js([e.from,s,r]);this._active=!0,this._fn=e.fn||s_[e.type||typeof o],this._easing=Xr[e.easing]||Xr.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=i,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(e,n,i){if(this._active){this._notify(!1);const r=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=Js([e.to,n,r,e.from]),this._from=Js([e.from,r,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,i=this._duration,r=this._prop,s=this._from,o=this._loop,a=this._to;let l;if(this._active=s!==a&&(o||n<i),!this._active){this._target[r]=a,this._notify(!0);return}if(n<0){this._target[r]=s;return}l=n/i%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(s,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,i)=>{e.push({res:n,rej:i})})}_notify(e){const n=e?"res":"rej",i=this._promises||[];for(let r=0;r<i.length;r++)i[r][n]()}}class xv{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!K(e))return;const n=Object.keys(Ce.animation),i=this._properties;Object.getOwnPropertyNames(e).forEach(r=>{const s=e[r];if(!K(s))return;const o={};for(const a of n)o[a]=s[a];(ve(s.properties)&&s.properties||[r]).forEach(a=>{(a===r||!i.has(a))&&i.set(a,o)})})}_animateOptions(e,n){const i=n.options,r=l_(e,i);if(!r)return[];const s=this._createAnimations(r,i);return i.$shared&&a_(e.options.$animations,i).then(()=>{e.options=i},()=>{}),s}_createAnimations(e,n){const i=this._properties,r=[],s=e.$animations||(e.$animations={}),o=Object.keys(n),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if(u.charAt(0)==="$")continue;if(u==="options"){r.push(...this._animateOptions(e,n));continue}const c=n[u];let d=s[u];const f=i.get(u);if(d)if(f&&d.active()){d.update(f,c,a);continue}else d.cancel();if(!f||!f.duration){e[u]=c;continue}s[u]=d=new o_(f,e,u,c),r.push(d)}return r}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const i=this._createAnimations(e,n);if(i.length)return Jt.add(this._chart,i),!0}}function a_(t,e){const n=[],i=Object.keys(e);for(let r=0;r<i.length;r++){const s=t[i[r]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}function l_(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 ah(t,e){const n=t&&t.options||{},i=n.reverse,r=n.min===void 0?e:0,s=n.max===void 0?e:0;return{start:i?s:r,end:i?r:s}}function u_(t,e,n){if(n===!1)return!1;const i=ah(t,n),r=ah(e,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}function c_(t){let e,n,i,r;return K(t)?(e=t.top,n=t.right,i=t.bottom,r=t.left):e=n=i=r=t,{top:e,right:n,bottom:i,left:r,disabled:t===!1}}function bv(t,e){const n=[],i=t._getSortedDatasetMetas(e);let r,s;for(r=0,s=i.length;r<s;++r)n.push(i[r].index);return n}function lh(t,e,n,i={}){const r=t.keys,s=i.mode==="single";let o,a,l,u;if(e===null)return;let c=!1;for(o=0,a=r.length;o<a;++o){if(l=+r[o],l===n){if(c=!0,i.all)continue;break}u=t.values[l],Ie(u)&&(s||e===0||Kt(e)===Kt(u))&&(e+=u)}return!c&&!i.all?0:e}function d_(t,e){const{iScale:n,vScale:i}=e,r=n.axis==="x"?"x":"y",s=i.axis==="x"?"x":"y",o=Object.keys(t),a=new Array(o.length);let l,u,c;for(l=0,u=o.length;l<u;++l)c=o[l],a[l]={[r]:c,[s]:t[c]};return a}function Sl(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function f_(t,e,n){return`${t.id}
80.${e.id}.${n.stack||n.type}`}function h_(t){const{min:e,max:n,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}function p_(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function uh(t,e,n,i){for(const r of e.getMatchingVisibleMetas(i).reverse()){const s=t[r.index];if(n&&s>0||!n&&s<0)return r.index}return null}function ch(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:a}=i,l=s.axis,u=o.axis,c=f_(s,o,i),d=e.length;let f;for(let h=0;h<d;++h){const g=e[h],{[l]:v,[u]:b}=g,p=g._stacks||(g._stacks={});f=p[u]=p_(r,c,v),f[a]=b,f._top=uh(f,o,!0,i.type),f._bottom=uh(f,o,!1,i.type);const m=f._visualValues||(f._visualValues={});m[a]=b}}function _l(t,e){const n=t.scales;return Object.keys(n).filter(i=>n[i].axis===e).shift()}function g_(t,e){return Kn(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function m_(t,e,n){return Kn(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function _r(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const r of e){const s=r._stacks;if(!s||s[i]===void 0||s[i][n]===void 0)return;delete s[i][n],s[i]._visualValues!==void 0&&s[i]._visualValues[n]!==void 0&&delete s[i]._visualValues[n]}}}const kl=t=>t==="reset"||t==="none",dh=(t,e)=>e?t:Object.assign({},t),v_=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:bv(n,!0),values:null};class jt{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.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Sl(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&_r(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,i=this.getDataset(),r=(d,f,h,g)=>d==="x"?f:d==="r"?g:h,s=n.xAxisID=U(i.xAxisID,_l(e,"x")),o=n.yAxisID=U(i.yAxisID,_l(e,"y")),a=n.rAxisID=U(i.rAxisID,_l(e,"r")),l=n.indexAxis,u=n.iAxisID=r(l,s,o,a),c=n.vAxisID=r(l,o,s,a);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(u),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&&Yf(this._data,this),e._stacked&&_r(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),i=this._data;if(K(n)){const r=this._cachedMeta;this._data=d_(n,r)}else if(i!==n){if(i){Yf(i,this);const r=this._cachedMeta;_r(r),r._parsed=[]}n&&Object.isExtensible(n)&&eS(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,i=this.getDataset();let r=!1;this._dataCheck();const s=n._stacked;n._stacked=Sl(n.vScale,n),n.stack!==i.stack&&(r=!0,_r(n),n.stack=i.stack),this._resyncElements(e),(r||s!==n._stacked)&&(ch(this,n._parsed),n._stacked=Sl(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:i,_data:r}=this,{iScale:s,_stacked:o}=i,a=s.axis;let l=e===0&&n===r.length?!0:i._sorted,u=e>0&&i._parsed[e-1],c,d,f;if(this._parsing===!1)i._parsed=r,i._sorted=!0,f=r;else{ve(r[e])?f=this.parseArrayData(i,r,e,n):K(r[e])?f=this.parseObjectData(i,r,e,n):f=this.parsePrimitiveData(i,r,e,n);const h=()=>d[a]===null||u&&d[a]<u[a];for(c=0;c<n;++c)i._parsed[c+e]=d=f[c],l&&(h()&&(l=!1),u=d);i._sorted=l}o&&ch(this,f)}parsePrimitiveData(e,n,i,r){const{iScale:s,vScale:o}=e,a=s.axis,l=o.axis,u=s.getLabels(),c=s===o,d=new Array(r);let f,h,g;for(f=0,h=r;f<h;++f)g=f+i,d[f]={[a]:c||s.parse(u[g],g),[l]:o.parse(n[g],g)};return d}parseArrayData(e,n,i,r){const{xScale:s,yScale:o}=e,a=new Array(r);let l,u,c,d;for(l=0,u=r;l<u;
vendor: 30,076 bytes, line 80
80++l)c=l+i,d=n[c],a[l]={x:s.parse(d[0],c),y:o.parse(d[1],c)};return a}parseObjectData(e,n,i,r){const{xScale:s,yScale:o}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,u=new Array(r);let c,d,f,h;for(c=0,d=r;c<d;++c)f=c+i,h=n[f],u[c]={x:s.parse(Hn(h,a),f),y:o.parse(Hn(h,l),f)};return u}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,i){const r=this.chart,s=this._cachedMeta,o=n[e.axis],a={keys:bv(r,!0),values:n._stacks[e.axis]._visualValues};return lh(a,o,s.index,{mode:i})}updateRangeFromParsed(e,n,i,r){const s=i[n.axis];let o=s===null?NaN:s;const a=r&&i._stacks[n.axis];r&&a&&(r.values=a,o=lh(r,s,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const i=this._cachedMeta,r=i._parsed,s=i._sorted&&e===i.iScale,o=r.length,a=this._getOtherScale(e),l=v_(n,i,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=h_(a);let f,h;function g(){h=r[f];const v=h[a.axis];return!Ie(h[e.axis])||c>v||d<v}for(f=0;f<o&&!(!g()&&(this.updateRangeFromParsed(u,e,h,l),s));++f);if(s){for(f=o-1;f>=0;--f)if(!g()){this.updateRangeFromParsed(u,e,h,l);break}}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,i=[];let r,s,o;for(r=0,s=n.length;r<s;++r)o=n[r][e.axis],Ie(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,i=n.iScale,r=n.vScale,s=this.getParsed(e);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:r?""+r.getLabelForValue(s[r.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=c_(U(this.options.clip,u_(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,i=this._cachedMeta,r=i.data||[],s=n.chartArea,o=[],a=this._drawStart||0,l=this._drawCount||r.length-a,u=this.options.drawActiveElementsOnTop;let c;for(i.dataset&&i.dataset.draw(e,s,a,l),c=a;c<a+l;++c){const d=r[c];d.hidden||(d.active&&u?o.push(d):d.draw(e,s))}for(c=0;c<o.length;++c)o[c].draw(e,s)}getStyle(e,n){const i=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(e||0,i)}getContext(e,n,i){const r=this.getDataset();let s;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];s=o.$context||(o.$context=m_(this.getContext(),e,o)),s.parsed=this.getParsed(e),s.raw=r.data[e],s.index=s.dataIndex=e}else s=this.$context||(this.$context=g_(this.chart.getContext(),this.index)),s.dataset=r,s.index=s.datasetIndex=this.index;return s.active=!!n,s.mode=i,s}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",i){const r=n==="active",s=this._cachedDataOpts,o=e+"-"+n,a=s[o],l=this.enableOptionSharing&&vs(i);if(a)return dh(a,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,e),d=r?[`${e}Hover`,"hover",e,""]:[e,""],f=u.getOptionScopes(this.getDataset(),c),h=Object.keys(Ce.elements[e]),g=()=>this.getContext(i,r,n),v=u.resolveNamedOptions(f,h,g,d);return v.$shared&&(v.$shared=l,s[o]=Object.freeze(dh(v,l))),v}_resolveAnimations(e,n,i){const r=this.chart,s=this._cachedDataOpts,o=`animation-${n}`,a=s[o];if(a)return a;let l;if(r.options.animation!==!1){const c=this.chart.config,d=c.datasetAnimationScopeKeys(this._type,n),f=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(f,this.getContext(e,i,n))}const u=new xv(r,l&&l.animations);return l&&l._cacheable&&(s[o]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||kl(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const i=this.resolveDataElementOptions(e,n),r=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(n,s)||s!==r;return this.updateSharedOptions(s,n,i),{sharedOptions:s,includeOptions:o}}updateElement(e,n,i,r){kl(r)?Object.assign(e,i):this._resolveAnimations(n,r).update(e,i)}updateSharedOptions(e,n,i){e&&!kl(n)&&this._resolveAnimations(void 0,n).update(e,i)}_setStyle(e,n,i,r){e.active=r;const s=this.getStyle(n,r);this._resolveAnimations(n,i,r).update(e,{options:!r&&this.getSharedOptions(s)||s})}removeHoverStyle(e,n,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,n,i){this._setStyle(e,i,"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,i=this._cachedMeta.data;for(const[a,l,u]of this._syncList)this[a](l,u);this._syncList=[];const r=i.length,s=n.length,o=Math.min(s,r);o&&this.parse(0,o),s>r?this._insertElements(r,s-r,e):s<r&&this._removeElements(s,r-s)}_insertElements(e,n,i=!0){const r=this._cachedMeta,s=r.data,o=e+n;let a;const l=u=>{for(u.length+=n,a=u.length-1;a>=o;a--)u[a]=u[a-n]};for(l(s),a=e;a<o;++a)s[a]=new this.dataElementType;this._parsing&&l(r._parsed),this.parse(e,n),i&&this.updateElements(s,e,n,"reset")}updateElements(e,n,i,r){}_removeElements(e,n){const i=this._cachedMeta;if(this._parsing){const r=i._parsed.splice(e,n);i._stacked&&_r(i,r)}i.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,i,r]=e;this[n](i,r)}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 i=arguments.length-2;i&&this._sync(["_insertElements",e,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}N(jt,"defaults",{}),N(jt,"datasetElementType",null),N(jt,"dataElementType",null);function y_(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let r=0,s=n.length;r<s;r++)i=i.concat(n[r].controller.getAllParsedValues(t));t._cache.$bar=ev(i.sort((r,s)=>r-s))}return t._cache.$bar}function x_(t){const e=t.iScale,n=y_(e,t.type);let i=e._length,r,s,o,a;const l=()=>{o===32767||o===-32768||(vs(a)&&(i=Math.min(i,Math.abs(o-a)||i)),a=o)};for(r=0,s=n.length;r<s;++r)o=e.getPixelForValue(n[r]),l();for(a=void 0,r=0,s=e.ticks.length;r<s;++r)o=e.getPixelForTick(r),l();return i}function b_(t,e,n,i){const r=n.barThickness;let s,o;return J(r)?(s=e.min*n.categoryPercentage,o=n.barPercentage):(s=r*i,o=1),{chunk:s/i,ratio:o,start:e.pixels[t]-s/2}}function w_(t,e,n,i){const r=e.pixels,s=r[t];let o=t>0?r[t-1]:null,a=t<r.length-1?r[t+1]:null;const l=n.categoryPercentage;o===null&&(o=s-(a===null?e.end-e.start:a-s)),a===null&&(a=s+s-o);const u=s-(s-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/i,ratio:n.barPercentage,start:u}}function S_(t,e,n,i){const r=n.parse(t[0],i),s=n.parse(t[1],i),o=Math.min(r,s),a=Math.max(r,s);let l=o,u=a;Math.abs(o)>Math.abs(a)&&(l=a,u=o),e[n.axis]=u,e._custom={barStart:l,barEnd:u,start:r,end:s,min:o,max:a}}function wv(t,e,n,i){return ve(t)?S_(t,e,n,i):e[n.axis]=n.parse(t,i),e}function fh(t,e,n,i){const r=t.iScale,s=t.vScale,o=r.getLabels(),a=r===s,l=[];let u,c,d,f;for(u=n,c=n+i;u<c;++u)f=e[u],d={},d[r.axis]=a||r.parse(o[u],u),l.push(wv(f,d,s,u));return l}function Cl(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function __(t,e,n){return t!==0?Kt(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function k_(t){let e,n,i,r,s;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(r="end",s="start"):(r="start",s="end"),{start:n,end:i,reverse:e,top:r,bottom:s}}function C_(t,e,n,i){let r=e.borderSkipped;const s={};if(!r){t.borderSkipped=s;return}if(r===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:a,reverse:l,top:u,bottom:c}=k_(t);r==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?r=u:(n._bottom||0)===i?r=c:(s[hh(c,o,a,l)]=!0,r=u)),s[hh(r,o,a,l)]=!0,t.borderSkipped=s}function hh(t,e,n,i){return i?(t=E_(t,e,n),t=ph(t,n,e)):t=ph(t,e,n),t}function E_(t,e,n){return t===e?n:t===n?e:t}function ph(t,e,n){return t==="start"?e:t==="end"?n:t}function T_(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class Co extends jt{parsePrimitiveData(e,n,i,r){return fh(e,n,i,r)}parseArrayData(e,n,i,r){return fh(e,n,i,r)}parseObjectData(e,n,i,r){const{iScale:s,vScale:o}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,u=s.axis==="x"?a:l,c=o.axis==="x"?a:l,d=[];let f,h,g,v;for(f=i,h=i+r;f<h;++f)v=n[f],g={},g[s.axis]=s.parse(Hn(v,u),f),d.push(wv(Hn(v,c),g,o,f));return d}updateRangeFromParsed(e,n,i,r){super.updateRangeFromParsed(e,n,i,r);const s=i._custom;s&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,s.min),e.max=Math.max(e.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:i,vScale:r}=n,s=this.getParsed(e),o=s._custom,a=Cl(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(s[r.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:a}}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,i,r){const s=r==="reset",{index:o,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),u=a.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,r);for(let h=n;h<n+i;h++){const g=this.getParsed(h),v=s||J(g[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),b=this._calculateBarIndexPixels(h,c),p=(g._stacks||{})[a.axis],m={horizontal:u,base:v.base,enableBorderRadius:!p||Cl(g._custom)||o===p._top||o===p._bottom,x:u?v.head:b.center,y:u?b.center:v.head,height:u?b.size:Math.abs(v.size),width:u?Math.abs(v.size):b.size};f&&(m.options=d||this.resolveDataElementOptions(h,e[h].active?"active":r));const x=m.options||e[h].options;C_(m,x,p,o),T_(m,x,c.ratio),this.updateElement(e[h],h,m,r)}}_getStacks(e,n){const{iScale:i}=this._cachedMeta,r=i.getMatchingVisibleMetas(this._type).filter(c=>c.controller.options.grouped),s=i.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[i.axis],u=c=>{const d=c._parsed.find(h=>h[i.axis]===l),f=d&&d[c.vScale.axis];if(J(f)||isNaN(f))return!0};for(const c of r)if(!(n!==void 0&&u(c))&&((s===!1||o.indexOf(c.stack)===-1||s===void 0&&c.stack===void 0)&&o.push(c.stack),c.index===e))break;return o.length||o.push(void 0),o}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const e=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(e).filter(i=>e[i].axis===n).shift()}_getAxis(){const e={},n=this.getFirstScaleIdForIndexAxis();for(const i of this.chart.data.datasets)e[U(this.chart.options.indexAxis==="x"?i.xAxisID:i.yAxisID,n)]=!0;return Object.keys(e)}_getStackIndex(e,n,i){const r=this._getStacks(e,i),s=n!==void 0?r.indexOf(n):-1;return s===-1?r.length-1:s}_getRuler(){const e=this.options,n=this._cachedMeta,i=n.iScale,r=[];let s,o;for(s=0,o=n.data.length;s<o;++s)r.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));const a=e.barThickness;return{min:a||x_(n),pixels:r,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:i,index:r},options:{base:s,minBarLength:o}}=this,a=s||0,l=this.getParsed(e),u=l._custom,c=Cl(u);let d=l[n.axis],f=0,h=i?this.applyStack(n,l,i):d,g,v;h!==d&&(f=h-d,h=d),c&&(d=u.barStart,h=u.barEnd-u.barStart,d!==0&&Kt(d)!==Kt(u.barEnd)&&(f=0),f+=d);const b=!J(s)&&!c?s:f;let p=n.getPixelForValue(b);if(this.chart.getDataVisibility(e)?g=n.getPixelForValue(f+h):g=p,v=g-p,Math.abs(v)<o){v=__(v,n,a)*o,d===a&&(p-=v/2);const m=n.getPixelForDecimal(0),x=n.getPixelForDecimal(1),S=Math.min(m,x),_=Math.max(m,x);p=Math.max(Math.min(p,_),S),g=p+v,i&&!c&&(l._stacks[n.axis]._visualValues[r]=n.getValueForPixel(g)-n.getValueForPixel(p))}if(p===n.getPixelForValue(a)){const m=Kt(v)*n.getLineWidthForValue(a)/2;p+=m,v-=m}return{size:v,base:p,head:g,center:g+v/2}}_calculateBarIndexPixels(e,n){const i=n.scale,r=this.options,s=r.skipNull,o=U(r.maxBarThickness,1/0);let a,l;const u=this._getAxisCount();if(n.grouped){const c=s?this._getStackCount(e):n.stackCount,d=r.barThickness==="flex"?w_(e,n,r,c*u):b_(e,n,r,c*u),f=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,h=this._getAxis().indexOf(U(f,this.getFirstScaleIdForIndexAxis())),g=this._getStackIndex(this.index,this._cachedMeta.stack,s?e:void 0)+h;a=d.start+d.chunk*g+d.chunk/2,l=Math.min(o,d.chunk*d.ratio)}else a=i.getPixelForValue(this.getParsed(e)[i.axis],e),l=Math.min(o,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const e=this._cachedMeta,n=e.vScale,i=e.data,r=i.length;let s=0;for(;s<r;++s)this.getParsed(s)[n.axis]!==null&&!i[s].hidden&&i[s].draw(this._ctx)}}N(Co,"id","bar"),N(Co,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),N(Co,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Eo extends jt{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,i,r){const s=super.parsePrimitiveData(e,n,i,r);for(let o=0;o<s.length;o++)s[o]._custom=this.resolveDataElementOptions(o+i).radius;return s}parseArrayData(e,n,i,r){const s=super.parseArrayData(e,n,i,r);for(let o=0;o<s.length;o++){const a=n[i+o];s[o]._custom=U(a[2],this.resolveDataElementOptions(o+i).radius)}return s}parseObjectData(e,n,i,r){const s=super.parseObjectData(e,n,i,r);for(let o=0;o<s.length;o++){const a=n[i+o];s[o]._custom=U(a&&a.r&&+a.r,this.resolveDataElementOptions(o+i).radius)}return s}getMaxOverflow(){const e=this._cachedMeta.data;let n=0;for(let i=e.length-1;i>=0;--i)n=Math.max(n,e[i].size(this.resolveDataElementOptions(i))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:s}=n,o=this.getParsed(e),a=r.getLabelForValue(o.x),l=s.getLabelForValue(o.y),u=o._custom;return{label:i[e]||"",value:"("+a+", "+l+(u?", "+u:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,i,r){const s=r==="reset",{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:u}=this._getSharedOptions(n,r),c=o.axis,d=a.axis;for(let f=n;f<n+i;f++){const h=e[f],g=!s&&this.getParsed(f),v={},b=v[c]=s?o.getPixelForDecimal(.5):o.getPixelForValue(g[c]),p=v[d]=s?a.getBasePixel():a.getPixelForValue(g[d]);v.skip=isNaN(b)||isNaN(p),u&&(v.options=l||this.resolveDataElementOptions(f,h.active?"active":r),s&&(v.options.radius=0)),this.updateElement(h,f,v,r)}}resolveDataElementOptions(e,n){const i=this.getParsed(e);let r=super.resolveDataElementOptions(e,n);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const s=r.radius;return n!=="active"&&(r.radius=0),r.radius+=U(i&&i._custom,s),r}}N(Eo,"id","bubble"),N(Eo,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),N(Eo,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function P_(t,e,n){let i=1,r=1,s=0,o=0;if(e<fe){const a=t,l=a+e,u=Math.cos(a),c=Math.sin(a),d=Math.cos(l),f=Math.sin(l),h=(x,S,_)=>ys(x,a,l,!0)?1:Math.max(S,S*n,_,_*n),g=(x,S,_)=>ys(x,a,l,!0)?-1:Math.min(S,S*n,_,_*n),v=h(0,u,d),b=h(Te,c,f),p=g(te,u,d),m=g(te+Te,c,f);i=(v-p)/2,r=(b-m)/2,s=-(v+p)/2,o=-(b+m)/2}return{ratioX:i,ratioY:r,offsetX:s,offsetY:o}}class $i extends jt{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 i=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=i;else{let s=l=>+i[l];if(K(i[e])){const{key:l="value"}=this._parsing;s=u=>+Hn(i[u],l)}let o,a;for(o=e,a=e+n;o<a;++o)r._parsed[o]=s(o)}}_getRotation(){return Lt(this.options.rotation-90)}_getCircumference(){return Lt(this.options.circumference)}_getRotationExtents(){let e=fe,n=-fe;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const r=this.chart.getDatasetMeta(i).controller,s=r._getRotation(),o=r._getCircumference();e=Math.min(e,s),n=Math.max(n,s+o)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:i}=n,r=this._cachedMeta,s=r.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-o)/2,0),l=Math.min(zw(this.options.cutout,a),1),u=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:g,offsetY:v}=P_(d,c,l),b=(i.width-o)/f,p=(i.height-o)/h,m=Math.max(Math.min(b,p)/2,0),x=Km(this.options.radius,m),S=Math.max(x*l,0),_=(x-S)/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=v*x,r.total=this.calculateTotal(),this.outerRadius=x-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*u,0),this.updateElements(s,0,s.length,e)}_circumference(e,n){const i=this.options,r=this._cachedMeta,s=this._getCircumference();return n&&i.animation.animateRotate||!this.chart.getDataVisibility(e)||r._parsed[e]===null||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*s/fe)}updateElements(e,n,i,r){const s=r==="reset",o=this.chart,a=o.chartArea,u=o.options.animation,c=(a.left+a.right)/2,d=(a.top+a.bottom)/2,f=s&&u.animateScale,h=f?0:this.innerRadius,g=f?0:this.outerRadius,{sharedOptions:v,includeOptions:b}=this._getSharedOptions(n,r);let p=this._getRotation(),m;for(m=0;m<n;++m)p+=this._circumference(m,s);for(m=n;m<n+i;++m){const x=this._circumference(m,s),S=e[m],_={x:c+this.offsetX,y:d+this.offsetY,startAngle:p,endAngle:p+x,circumference:x,outerRadius:g,innerRadius:h};b&&(_.options=v||this.resolveDataElementOptions(m,S.active?"active":r)),p+=x,this.updateElement(S,m,_,r)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let i=0,r;for(r=0;r<n.length;r++){const s=e._parsed[r];s!==null&&!isNaN(s)&&this.chart.getDataVisibility(r)&&!n[r].hidden&&(i+=Math.abs(s))}return i}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?fe*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,r=i.data.labels||[],s=Aa(n._parsed[e],i.options.locale);return{label:r[e]||"",value:s}}getMaxBorderWidth(e){let n=0;const i=this.chart;let r,s,o,a,l;if(!e){for(r=0,s=i.data.datasets.length;r<s;++r)if(i.isDatasetVisible(r)){o=i.getDatasetMeta(r),e=o.data,a=o.controller;break}}if(!e)return 0;for(r=0,s=e.length;r<s;++r)l=a.resolveDataElementOptions(r),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let i=0,r=e.length;i<r;++i){const s=this.resolveDataElementOptions(i);n=Math.max(n,s.offset||0,s.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let i=0;i<e;++i)this.chart.isDatasetVisible(i)&&(n+=this._getRingWeight(i));return n}_getRingWeight(e){return Math.max(U(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}N($i,"id","doughnut"),N($i,"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"}),N($i,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),N($i,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data,{labels:{pointStyle:i,textAlign:r,color:s,useBorderRadius:o,borderRadius:a}}=e.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,u)=>{const d=e.getDatasetMeta(0).controller.getStyle(u);return{text:l,fillStyle:d.backgroundColor,fontColor:s,hidden:!e.getDataVisibility(u),lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:d.borderWidth,strokeStyle:d.borderColor,textAlign:r,pointStyle:i,borderRadius:o&&(a||d.borderRadius),index:u}}):[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}});class To extends jt{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:i,data:r=[],_dataset:s}=n,o=this.chart._animationsDisabled;let{start:a,count:l}=iv(n,r,o);this._drawStart=a,this._drawCount=l,rv(n)&&(a=0,l=r.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=r;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:u},e),this.updateElements(r,a,l,e)}updateElements(e,n,i,r){const s=r==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(n,r),f=o.axis,h=a.axis,{spanGaps:g,segment:v}=this.options,b=ir(g)?g:Number.POSITIVE_INFINITY,p=this.chart._animationsDisabled||s||r==="none",m=n+i,x=e.length;let S=n>0&&this.getParsed(n-1);for(let _=0;_<x;++_){const T=e[_],E=p?T:{};if(_<n||_>=m){E.skip=!0;continue}const w=this.getParsed(_),k=J(w[h]),C=E[f]=o.getPixelForValue(w[f],_),P=E[h]=s||k?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,w,l):w[h],_);E.skip=isNaN(C)||isNaN(P)||k,E.stop=_>0&&Math.abs(w[f]-S[f])>b,v&&(E.parsed=w,E.raw=u.data[_]),d&&(E.options=c||this.resolveDataElementOptions(_,T.active?"active":r)),p||this.updateElement(T,_,E,r),S=w}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,i=n.options&&n.options.borderWidth||0,r=e.data||[];if(!r.length)return i;const s=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(i,s,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}N(To,"id","line"),N(To,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),N(To,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Po extends jt{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,r=i.data.labels||[],s=Aa(n._parsed[e].r,i.options.locale);return{label:r[e]||"",value:s}}parseObjectData(e,n,i,r){return dv.bind(this)(e,n,i,r)}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((i,r)=>{const s=this.getParsed(r).r;!isNaN(s)&&this.chart.getDataVisibility(r)&&(s<n.min&&(n.min=s),s>n.max&&(n.max=s))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,i=e.options,r=Math.min(n.right-n.left,n.bottom-n.top),s=Math.max(r/2,0),o=Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0),a=(s-o)/e.getVisibleDatasetCount();this.outerRadius=s-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,n,i,r){const s=r==="reset",o=this.chart,l=o.options.animation,u=this._cachedMeta.rScale,c=u.xCenter,d=u.yCenter,f=u.getIndexAngle(0)-.5*te;let h=f,g;const v=360/this.countVisibleElements();for(g=0;g<n;++g)h+=this._computeAngle(g,r,v);for(g=n;g<n+i;g++){const b=e[g];let p=h,m=h+this._computeAngle(g,r,v),x=o.getDataVisibility(g)?u.getDistanceFromCenterForValue(this.getParsed(g).r):0;h=m,s&&(l.animateScale&&(x=0),l.animateRotate&&(p=m=f));const S={x:c,y:d,innerRadius:0,outerRadius:x,startAngle:p,endAngle:m,options:this.resolveDataElementOptions(g,b.active?"active":r)};this.updateElement(b,g,S,r)}}countVisibleElements(){const e=this._cachedMeta;let n=0;return e.data.forEach((i,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&n++}),n}_computeAngle(e,n,i){return this.chart.getDataVisibility(e)?Lt(this.resolveDataElementOptions(e,n).angle||i):0}}N(Po,"id","polarArea"),N(Po,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),N(Po,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:r}}=e.legend.options;return n.labels.map((s,o)=>{const l=e.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:r,lineWidth:l.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Fu extends $i{}N(Fu,"id","pie"),N(Fu,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Mo extends jt{getLabelAndValue(e){const n=this._cachedMeta.vScale,i=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(i[n.axis])}}parseObjectData(e,n,i,r){return dv.bind(this)(e,n,i,r)}update(e){const n=this._cachedMeta,i=n.dataset,r=n.data||[],s=n.iScale.getLabels();if(i.points=r,e!=="resize"){const o=this.resolveDatasetElementOptions(e);this.options.showLine||(o.borderWidth=0);const a={_loop:!0,_fullLoop:s.length===r.length,options:o};this.updateElement(i,void 0,a,e)}this.updateElements(r,0,r.length,e)}updateElements(e,n,i,r){const s=this._cachedMeta.rScale,o=r==="reset";for(let a=n;a<n+i;a++){const l=e[a],u=this.resolveDataElementOptions(a,l.active?"active":r),c=s.getPointPositionForValue(a,this.getParsed(a).r),d=o?s.xCenter:c.x,f=o?s.yCenter:c.y,h={x:d,y:f,angle:c.angle,skip:isNaN(d)||isNaN(f),options:u};this.updateElement(l,a,h,r)}}}N(Mo,"id","radar"),N(Mo,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),N(Mo,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Ro extends jt{getLabelAndValue(e){const n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:s}=n,o=this.getParsed(e),a=r.getLabelForValue(o.x),l=s.getLabelForValue(o.y);return{label:i[e]||"",value:"("+a+", "+l+")"}}update(e){const n=this._cachedMeta,{data:i=[]}=n,r=this.chart._animationsDisabled;let{start:s,count:o}=iv(n,i,r);if(this._drawStart=s,this._drawCount=o,rv(n)&&(s=0,o=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:a,_dataset:l}=n;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=i;const u=this.resolveDatasetElementOptions(e);u.segment=this.options.segment,this.updateElement(a,void 0,{animated:!r,options:u},e)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(i,s,o,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,n,i,r){const s=r==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:u}=this._cachedMeta,c=this.resolveDataElementOptions(n,r),d=this.getSharedOptions(c),f=this.includeOptions(r,d),h=o.axis,g=a.axis,{spanGaps:v,segment:b}=this.options,p=ir(v)?v:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||s||r==="none";let x=n>0&&this.getParsed(n-1);for(let S=n;S<n+i;++S){const _=e[S],T=this.getParsed(S),E=m?_:{},w=J(T[g]),k=E[h]=o.getPixelForValue(T[h],S),C=E[g]=s||w?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,T,l):T[g],S);E.skip=isNaN(k)||isNaN(C)||w,E.stop=S>0&&Math.abs(T[h]-x[h])>p,b&&(E.parsed=T,E.raw=u.data[S]),f&&(E.options=d||this.resolveDataElementOptions(S,_.active?"active":r)),m||this.updateElement(_,S,E,r),x=T}this.updateSharedOptions(d,r,c)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const i=e.dataset,r=i.options&&i.options.borderWidth||0;if(!n.length)return r;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,s,o)/2}}N(Ro,"id","scatter"),N(Ro,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),N(Ro,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});function Jn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class pd{constructor(e){N(this,"options");this.options=e||{}}static override(e){Object.assign(pd.prototype,e)}init(){}formats(){return Jn()}parse(){return Jn()}format(){return Jn()}add(){return Jn()}diff(){return Jn()}startOf(){return Jn()}endOf(){return Jn()}}var M_={_date:pd};function R_(t,e,n,i){const{controller:r,data:s,_sorted:o}=t,a=r._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&e!=="r"&&o&&s.length){const u=a._reversePixels?Jw:oi;if(i){if(r._sharedOptions){const c=s[0],d=typeof c.getRange=="function"&&c.getRange(e);if(d){const f=u(s,e,n-d),h=u(s,e,n+d);return{lo:f.lo,hi:h.hi}}}}else{const c=u(s,e,n);if(l){const{vScale:d}=r._cachedMeta,{_parsed:f}=t,h=f.slice(0,c.lo+1).reverse().findIndex(v=>!J(v[d.axis]));c.lo-=Math.max(0,h);const g=f.slice(c.hi).findIndex(v=>!J(v[d.axis]));c.hi+=Math.max(0,g)}return c}}return{lo:0,hi:s.length-1}}function Ba(t,e,n,i,r){const s=t.getSortedVisibleDatasetMetas(),o=n[e];for(let a=0,l=s.length;a<l;++a){const{index:u,data:c}=s[a],{lo:d,hi:f}=R_(s[a],e,o,r);for(let h=d;h<=f;++h){const g=c[h];
vendor: 5,410 bytes, line 80
80g.skip||i(g,u,h)}}}function L_(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(i,r){const s=e?Math.abs(i.x-r.x):0,o=n?Math.abs(i.y-r.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}function El(t,e,n,i,r){const s=[];return!r&&!t.isPointInArea(e)||Ba(t,n,e,function(a,l,u){!r&&!ln(a,t.chartArea,0)||a.inRange(e.x,e.y,i)&&s.push({element:a,datasetIndex:l,index:u})},!0),s}function O_(t,e,n,i){let r=[];function s(o,a,l){const{startAngle:u,endAngle:c}=o.getProps(["startAngle","endAngle"],i),{angle:d}=Jm(o,{x:e.x,y:e.y});ys(d,u,c)&&r.push({element:o,datasetIndex:a,index:l})}return Ba(t,n,e,s),r}function D_(t,e,n,i,r,s){let o=[];const a=L_(n);let l=Number.POSITIVE_INFINITY;function u(c,d,f){const h=c.inRange(e.x,e.y,r);if(i&&!h)return;const g=c.getCenterPoint(r);if(!(!!s||t.isPointInArea(g))&&!h)return;const b=a(e,g);b<l?(o=[{element:c,datasetIndex:d,index:f}],l=b):b===l&&o.push({element:c,datasetIndex:d,index:f})}return Ba(t,n,e,u),o}function Tl(t,e,n,i,r,s){return!s&&!t.isPointInArea(e)?[]:n==="r"&&!i?O_(t,e,n,r):D_(t,e,n,i,r,s)}function gh(t,e,n,i,r){const s=[],o=n==="x"?"inXRange":"inYRange";let a=!1;return Ba(t,n,e,(l,u,c)=>{l[o]&&l[o](e[n],r)&&(s.push({element:l,datasetIndex:u,index:c}),a=a||l.inRange(e.x,e.y,r))}),i&&!a?[]:s}var j_={modes:{index(t,e,n,i){const r=ti(e,t),s=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?El(t,r,s,i,o):Tl(t,r,s,!1,i,o),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(u=>{const c=a[0].index,d=u.data[c];d&&!d.skip&&l.push({element:d,datasetIndex:u.index,index:c})}),l):[]},dataset(t,e,n,i){const r=ti(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?El(t,r,s,i,o):Tl(t,r,s,!1,i,o);if(a.length>0){const l=a[0].datasetIndex,u=t.getDatasetMeta(l).data;a=[];for(let c=0;c<u.length;++c)a.push({element:u[c],datasetIndex:l,index:c})}return a},point(t,e,n,i){const r=ti(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;return El(t,r,s,i,o)},nearest(t,e,n,i){const r=ti(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;return Tl(t,r,s,n.intersect,i,o)},x(t,e,n,i){const r=ti(e,t);return gh(t,r,"x",n.intersect,i)},y(t,e,n,i){const r=ti(e,t);return gh(t,r,"y",n.intersect,i)}}};const Sv=["left","top","right","bottom"];function kr(t,e){return t.filter(n=>n.pos===e)}function mh(t,e){return t.filter(n=>Sv.indexOf(n.pos)===-1&&n.box.axis===e)}function Cr(t,e){return t.sort((n,i)=>{const r=e?i:n,s=e?n:i;return r.weight===s.weight?r.index-s.index:r.weight-s.weight})}function N_(t){const e=[];let n,i,r,s,o,a;for(n=0,i=(t||[]).length;n<i;++n)r=t[n],{position:s,options:{stack:o,stackWeight:a=1}}=r,e.push({index:n,box:r,pos:s,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&s+o,stackWeight:a});return e}function A_(t){const e={};for(const n of t){const{stack:i,pos:r,stackWeight:s}=n;if(!i||!Sv.includes(r))continue;const o=e[i]||(e[i]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}function I_(t,e){const n=A_(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=e;let s,o,a;for(s=0,o=t.length;s<o;++s){a=t[s];const{fullSize:l}=a.box,u=n[a.stack],c=u&&a.stackWeight/u.weight;a.horizontal?(a.width=c?c*i:l&&e.availableWidth,a.height=r):(a.width=i,a.height=c?c*r:l&&e.availableHeight)}return n}function z_(t){const e=N_(t),n=Cr(e.filter(u=>u.box.fullSize),!0),i=Cr(kr(e,"left"),!0),r=Cr(kr(e,"right")),s=Cr(kr(e,"top"),!0),o=Cr(kr(e,"bottom")),a=mh(e,"x"),l=mh(e,"y");return{fullSize:n,leftAndTop:i.concat(s),rightAndBottom:r.concat(l).concat(o).concat(a),chartArea:kr(e,"chartArea"),vertical:i.concat(r).concat(l),horizontal:s.concat(o).concat(a)}}function vh(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function _v(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 F_(t,e,n,i){const{pos:r,box:s}=n,o=t.maxPadding;if(!K(r)){n.size&&(t[r]-=n.size);const d=i[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?s.height:s.width),n.size=d.size/d.count,t[r]+=n.size}s.getPadding&&_v(o,s.getPadding());const a=Math.max(0,e.outerWidth-vh(o,t,"left","right")),l=Math.max(0,e.outerHeight-vh(o,t,"top","bottom")),u=a!==t.w,c=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function B_(t){const e=t.maxPadding;function n(i){const r=Math.max(e[i]-t[i],0);return t[i]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function $_(t,e){const n=e.maxPadding;function i(r){const s={left:0,top:0,right:0,bottom:0};return r.forEach(o=>{s[o]=Math.max(e[o],n[o])}),s}return i(t?["left","right"]:["top","bottom"])}function Dr(t,e,n,i){const r=[];let s,o,a,l,u,c;for(s=0,o=t.length,u=0;s<o;++s){a=t[s],l=a.box,l.update(a.width||e.w,a.height||e.h,$_(a.horizontal,e));const{same:d,other:f}=F_(e,n,a,i);u|=d&&r.length,c=c||f,l.fullSize||r.push(a)}return u&&Dr(r,e,n,i)||c}function to(t,e,n,i,r){t.top=n,t.left=e,t.right=e+i,t.bottom=n+r,t.width=i,t.height=r}function yh(t,e,n,i){const r=n.padding;let{x:s,y:o}=e;for(const a of t){const l=a.box,u=i[a.stack]||{placed:0,weight:1},c=a.stackWeight/u.weight||1;if(a.horizontal){const d=e.w*c,f=u.size||l.height;vs(u.start)&&(o=u.start),l.fullSize?to(l,r.left,o,n.outerWidth-r.right-r.left,f):to(l,e.left+u.placed,o,d,f),u.start=o,u.placed+=d,o=l.bottom}else{const d=e.h*c,f=u.size||l.width;vs(u.start)&&(s=u.start),l.fullSize?to(l,s,r.top,f,n.outerHeight-r.bottom-r.top):to(l,s,e.top+u.placed,f,d),u.start=s,u.placed+=d,s=l.right}}e.x=s,e.y=o}
vendor: 43,885 bytes, line 80
80var St={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,i){if(!t)return;const r=qe(t.options.layout.padding),s=Math.max(e-r.width,0),o=Math.max(n-r.height,0),a=z_(t.boxes),l=a.vertical,u=a.horizontal;se(t.boxes,v=>{typeof v.beforeLayout=="function"&&v.beforeLayout()});const c=l.reduce((v,b)=>b.box.options&&b.box.options.display===!1?v:v+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/c,hBoxMaxHeight:o/2}),f=Object.assign({},r);_v(f,qe(i));const h=Object.assign({maxPadding:f,w:s,h:o,x:r.left,y:r.top},r),g=I_(l.concat(u),d);Dr(a.fullSize,h,d,g),Dr(l,h,d,g),Dr(u,h,d,g)&&Dr(l,h,d,g),B_(h),yh(a.leftAndTop,h,d,g),h.x+=h.w,h.y+=h.h,yh(a.rightAndBottom,h,d,g),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},se(a.chartArea,v=>{const b=v.box;Object.assign(b,t.chartArea),b.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class kv{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,i){}removeEventListener(e,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,i,r){return n=Math.max(0,n||e.width),i=i||e.height,{width:n,height:Math.max(0,r?Math.floor(n/r):i)}}isAttached(e){return!0}updateConfig(e){}}class V_ extends kv{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Lo="$chartjs",H_={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},xh=t=>t===null||t==="";function W_(t,e){const n=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[Lo]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",xh(r)){const s=nh(t,"width");s!==void 0&&(t.width=s)}if(xh(i))if(t.style.height==="")t.height=t.width/(e||2);else{const s=nh(t,"height");s!==void 0&&(t.height=s)}return t}const Cv=GS?{passive:!0}:!1;function U_(t,e,n){t&&t.addEventListener(e,n,Cv)}function G_(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Cv)}function Y_(t,e){const n=H_[t.type]||t.type,{x:i,y:r}=ti(t,e);return{type:n,chart:e,native:t,x:i!==void 0?i:null,y:r!==void 0?r:null}}function fa(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function X_(t,e,n){const i=t.canvas,r=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||fa(a.addedNodes,i),o=o&&!fa(a.removedNodes,i);o&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function K_(t,e,n){const i=t.canvas,r=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||fa(a.removedNodes,i),o=o&&!fa(a.addedNodes,i);o&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const bs=new Map;let bh=0;function Ev(){const t=window.devicePixelRatio;t!==bh&&(bh=t,bs.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Q_(t,e){bs.size||window.addEventListener("resize",Ev),bs.set(t,e)}function q_(t){bs.delete(t),bs.size||window.removeEventListener("resize",Ev)}function J_(t,e,n){const i=t.canvas,r=i&&hd(i);if(!r)return;const s=nv((a,l)=>{const u=r.clientWidth;n(a,l),u<r.clientWidth&&n()},window),o=new ResizeObserver(a=>{const l=a[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||s(u,c)});return o.observe(r),Q_(t,s),o}function Pl(t,e,n){n&&n.disconnect(),e==="resize"&&q_(t)}function Z_(t,e,n){const i=t.canvas,r=nv(s=>{t.ctx!==null&&n(Y_(s,t))},t);return U_(i,e,r),r}class e1 extends kv{acquireContext(e,n){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(W_(e,n),i):null}releaseContext(e){const n=e.canvas;if(!n[Lo])return!1;const i=n[Lo].initial;["height","width"].forEach(s=>{const o=i[s];J(o)?n.removeAttribute(s):n.setAttribute(s,o)});const r=i.style||{};return Object.keys(r).forEach(s=>{n.style[s]=r[s]}),n.width=n.width,delete n[Lo],!0}addEventListener(e,n,i){this.removeEventListener(e,n);const r=e.$proxies||(e.$proxies={}),o={attach:X_,detach:K_,resize:J_}[n]||Z_;r[n]=o(e,n,i)}removeEventListener(e,n){const i=e.$proxies||(e.$proxies={}),r=i[n];if(!r)return;({attach:Pl,detach:Pl,resize:Pl}[n]||G_)(e,n,r),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,i,r){return US(e,n,i,r)}isAttached(e){const n=e&&hd(e);return!!(n&&n.isConnected)}}function t1(t){return!fd()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?V_:e1}class It{constructor(){N(this,"x");N(this,"y");N(this,"active",!1);N(this,"options");N(this,"$animations")}tooltipPosition(e){const{x:n,y:i}=this.getProps(["x","y"],e);return{x:n,y:i}}hasValue(){return ir(this.x)&&ir(this.y)}getProps(e,n){const i=this.$animations;if(!n||!i)return this;const r={};return e.forEach(s=>{r[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),r}}N(It,"defaults",{}),N(It,"defaultRoutes");function n1(t,e){const n=t.options.ticks,i=i1(t),r=Math.min(n.maxTicksLimit||i,i),s=n.major.enabled?s1(e):[],o=s.length,a=s[0],l=s[o-1],u=[];if(o>r)return o1(e,u,s,o/r),u;const c=r1(s,e,r);if(o>0){let d,f;const h=o>1?Math.round((l-a)/(o-1)):null;for(no(e,u,c,J(h)?0:a-h,a),d=0,f=o-1;d<f;d++)no(e,u,c,s[d],s[d+1]);return no(e,u,c,l,J(h)?e.length:l+h),u}return no(e,u,c),u}function i1(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),r=t._maxLength/n;return Math.floor(Math.min(i,r))}function r1(t,e,n){const i=a1(t),r=e.length/n;if(!i)return Math.max(r,1);const s=Gw(i);for(let o=0,a=s.length-1;o<a;o++){const l=s[o];if(l>r)return l}return Math.max(r,1)}function s1(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}function o1(t,e,n,i){let r=0,s=n[0],o;for(i=Math.ceil(i),o=0;o<t.length;o++)o===s&&(e.push(t[o]),r++,s=n[r*i])}function no(t,e,n,i,r){const s=U(i,0),o=Math.min(U(r,t.length),t.length);let a=0,l,u,c;for(n=Math.ceil(n),r&&(l=r-i,n=l/Math.floor(l/n)),c=s;c<0;)a++,c=Math.round(s+a*n);for(u=Math.max(s,0);u<o;u++)u===c&&(e.push(t[u]),a++,c=Math.round(s+a*n))}function a1(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}const l1=t=>t==="left"?"right":t==="right"?"left":t,wh=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,Sh=(t,e)=>Math.min(e||t,t);function _h(t,e){const n=[],i=t.length/e,r=t.length;let s=0;for(;s<r;s+=i)n.push(t[Math.floor(s)]);return n}function u1(t,e,n){const i=t.ticks.length,r=Math.min(e,i-1),s=t._startPixel,o=t._endPixel,a=1e-6;let l=t.getPixelForTick(r),u;if(!(n&&(i===1?u=Math.max(l-s,o-l):e===0?u=(t.getPixelForTick(1)-l)/2:u=(l-t.getPixelForTick(r-1))/2,l+=r<e?u:-u,l<s-a||l>o+a)))return l}function c1(t,e){se(t,n=>{const i=n.gc,r=i.length/2;let s;if(r>e){for(s=0;s<r;++s)delete n.data[i[s]];i.splice(0,r)}})}function Er(t){return t.drawTicks?t.tickLength:0}function kh(t,e){if(!t.display)return 0;const n=Oe(t.font,e),i=qe(t.padding);return(ve(t.text)?t.text.length:1)*n.lineHeight+i.height}function d1(t,e){return Kn(t,{scale:e,type:"scale"})}function f1(t,e,n){return Kn(t,{tick:n,index:e,type:"tick"})}function h1(t,e,n){let i=sd(t);return(n&&e!=="right"||!n&&e==="right")&&(i=l1(i)),i}function p1(t,e,n,i){const{top:r,left:s,bottom:o,right:a,chart:l}=t,{chartArea:u,scales:c}=l;let d=0,f,h,g;const v=o-r,b=a-s;if(t.isHorizontal()){if(h=Ge(i,s,a),K(n)){const p=Object.keys(n)[0],m=n[p];g=c[p].getPixelForValue(m)+v-e}else n==="center"?g=(u.bottom+u.top)/2+v-e:g=wh(t,n,e);f=a-s}else{if(K(n)){const p=Object.keys(n)[0],m=n[p];h=c[p].getPixelForValue(m)-b+e}else n==="center"?h=(u.left+u.right)/2-b+e:h=wh(t,n,e);g=Ge(i,o,r),d=n==="left"?-Te:Te}return{titleX:h,titleY:g,maxWidth:f,rotation:d}}class dr extends It{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:i,_suggestedMax:r}=this;return e=Vt(e,Number.POSITIVE_INFINITY),n=Vt(n,Number.NEGATIVE_INFINITY),i=Vt(i,Number.POSITIVE_INFINITY),r=Vt(r,Number.NEGATIVE_INFINITY),{min:Vt(e,i),max:Vt(n,r),minDefined:Ie(e),maxDefined:Ie(n)}}getMinMax(e){let{min:n,max:i,minDefined:r,maxDefined:s}=this.getUserBounds(),o;if(r&&s)return{min:n,max:i};const a=this.getMatchingVisibleMetas();for(let l=0,u=a.length;l<u;++l)o=a[l].controller.getMinMax(this,e),r||(n=Math.min(n,o.min)),s||(i=Math.max(i,o.max));return n=s&&n>i?i:n,i=r&&n>i?n:i,{min:Vt(n,Vt(i,n)),max:Vt(i,Vt(n,i))}}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||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){le(this.options.beforeUpdate,[this])}update(e,n,i){const{beginAtZero:r,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=_S(this,s,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?_h(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=n1(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,e=!e),this._startPixel=n,this._endPixel=i,this._reversePixels=e,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){le(this.options.afterUpdate,[this])}beforeSetDimensions(){le(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(){le(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),le(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){le(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let i,r,s;for(i=0,r=e.length;i<r;i++)s=e[i],s.label=le(n.callback,[s.value,i,e],this)}afterTickToLabelConversion(){le(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){le(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,i=Sh(this.ticks.length,e.ticks.maxTicksLimit),r=n.minRotation||0,s=n.maxRotation;let o=r,a,l,u;if(!this._isVisible()||!n.display||r>=s||i<=1||!this.isHorizontal()){this.labelRotation=r;return}const c=this._getLabelSizes(),d=c.widest.width,f=c.highest.height,h=Ke(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/i:h/(i-1),d+6>a&&(a=h/(i-(e.offset?.5:1)),l=this.maxHeight-Er(e.grid)-n.padding-kh(e.title,this.chart.options.font),u=Math.sqrt(d*d+f*f),o=id(Math.min(Math.asin(Ke((c.highest.height+6)/a,-1,1)),Math.asin(Ke(l/u,-1,1))-Math.asin(Ke(f/u,-1,1)))),o=Math.max(r,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){le(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){le(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:i,title:r,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=kh(r,n.options.font);if(a?(e.width=this.maxWidth,e.height=Er(s)+l):(e.height=this.maxHeight,e.width=Er(s)+l),i.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:f}=this._getLabelSizes(),h=i.padding*2,g=Lt(this.labelRotation),v=Math.cos(g),b=Math.sin(g);if(a){const p=i.mirror?0:b*d.width+v*f.height;e.height=Math.min(this.maxHeight,e.height+p+h)}else{const p=i.mirror?0:v*d.width+b*f.height;e.width=Math.min(this.maxWidth,e.width+p+h)}this._calculatePadding(u,c,b,v)}}this._handleMargins(),a?(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,i,r){const{ticks:{align:s,padding:o},position:a}=this.options,l=this.labelRotation!==0,u=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?u?(f=r*e.width,h=i*n.height):(f=i*e.height,h=r*n.width):s==="start"?h=n.width:s==="end"?f=e.width:s!=="inner"&&(f=e.width/2,h=n.width/2),this.paddingLeft=Math.max((f-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((h-d+o)*this.width/(this.width-d),0)}else{let c=n.height/2,d=e.height/2;s==="start"?(c=0,d=e.height):s==="end"&&(c=n.height,d=0),this.paddingTop=c+o,this.paddingBottom=d+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(){le(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,i;for(n=0,i=e.length;n<i;n++)J(e[n].label)&&(e.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=_h(i,n)),this._labelSizes=e=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,i){const{ctx:r,_longestTextCache:s}=this,o=[],a=[],l=Math.floor(n/Sh(n,i));let u=0,c=0,d,f,h,g,v,b,p,m,x,S,_;for(d=0;d<n;d+=l){if(g=e[d].label,v=this._resolveTickFontOptions(d),r.font=b=v.string,p=s[b]=s[b]||{data:{},gc:[]},m=v.lineHeight,x=S=0,!J(g)&&!ve(g))x=ca(r,p.data,p.gc,x,g),S=m;else if(ve(g))for(f=0,h=g.length;f<h;++f)_=g[f],!J(_)&&!ve(_)&&(x=ca(r,p.data,p.gc,x,_),S+=m);o.push(x),a.push(S),u=Math.max(x,u),c=Math.max(S,c)}c1(s,n);const T=o.indexOf(u),E=a.indexOf(c),w=k=>({width:o[k]||0,height:a[k]||0});return{first:w(0),last:w(n-1),widest:w(T),highest:w(E),widths:o,heights:a}}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 qw(this._alignToPixels?qn(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 i=n[e];return i.$context||(i.$context=f1(this.getContext(),e,i))}return this.$context||(this.$context=d1(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Lt(this.labelRotation),i=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),s=this._getLabelSizes(),o=e.autoSkipPadding||0,a=s?s.widest.width+o:0,l=s?s.highest.height+o:0;return this.isHorizontal()?l*i>a*r?a/i:l/r:l*r<a*i?l/i:a/r}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,i=this.chart,r=this.options,{grid:s,position:o,border:a}=r,l=s.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=Er(s),h=[],g=a.setContext(this.getContext()),v=g.display?g.width:0,b=v/2,p=function(W){return qn(i,W,v)};let m,x,S,_,T,E,w,k,C,P,L,j;if(o==="top")m=p(this.bottom),E=this.bottom-f,k=m-b,P=p(e.top)+b,j=e.bottom;else if(o==="bottom")m=p(this.top),P=e.top,j=p(e.bottom)-b,E=m+b,k=this.top+f;else if(o==="left")m=p(this.right),T=this.right-f,w=m-b,C=p(e.left)+b,L=e.right;else if(o==="right")m=p(this.left),C=e.left,L=p(e.right)-b,T=m+b,w=this.left+f;else if(n==="x"){if(o==="center")m=p((e.top+e.bottom)/2+.5);else if(K(o)){const W=Object.keys(o)[0],z=o[W];m=p(this.chart.scales[W].getPixelForValue(z))}P=e.top,j=e.bottom,E=m+b,k=E+f}else if(n==="y"){if(o==="center")m=p((e.left+e.right)/2);else if(K(o)){const W=Object.keys(o)[0],z=o[W];m=p(this.chart.scales[W].getPixelForValue(z))}T=m-b,w=T-f,C=e.left,L=e.right}const H=U(r.ticks.maxTicksLimit,d),V=Math.max(1,Math.ceil(d/H));for(x=0;x<d;x+=V){const W=this.getContext(x),z=s.setContext(W),R=a.setContext(W),O=z.lineWidth,A=z.color,I=R.dash||[],$=R.dashOffset,B=z.tickWidth,Q=z.tickColor,ie=z.tickBorderDash||[],Z=z.tickBorderDashOffset;S=u1(this,x,l),S!==void 0&&(_=qn(i,S,O),u?T=w=C=L=_:E=k=P=j=_,h.push({tx1:T,ty1:E,tx2:w,ty2:k,x1:C,y1:P,x2:L,y2:j,width:O,color:A,borderDash:I,borderDashOffset:$,tickWidth:B,tickColor:Q,tickBorderDash:ie,tickBorderDashOffset:Z}))}return this._ticksLength=d,this._borderValue=m,h}_computeLabelItems(e){const n=this.axis,i=this.options,{position:r,ticks:s}=i,o=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:u,padding:c,mirror:d}=s,f=Er(i.grid),h=f+c,g=d?-c:h,v=-Lt(this.labelRotation),b=[];let p,m,x,S,_,T,E,w,k,C,P,L,j="middle";if(r==="top")T=this.bottom-g,E=this._getXAxisLabelAlignment();else if(r==="bottom")T=this.top+g,E=this._getXAxisLabelAlignment();else if(r==="left"){const V=this._getYAxisLabelAlignment(f);E=V.textAlign,_=V.x}else if(r==="right"){const V=this._getYAxisLabelAlignment(f);E=V.textAlign,_=V.x}else if(n==="x"){if(r==="center")T=(e.top+e.bottom)/2+h;else if(K(r)){const V=Object.keys(r)[0],W=r[V];T=this.chart.scales[V].getPixelForValue(W)+h}E=this._getXAxisLabelAlignment()}else if(n==="y"){if(r==="center")_=(e.left+e.right)/2-h;else if(K(r)){const V=Object.keys(r)[0],W=r[V];_=this.chart.scales[V].getPixelForValue(W)}E=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?j="top":l==="end"&&(j="bottom"));const H=this._getLabelSizes();for(p=0,m=a.length;p<m;++p){x=a[p],S=x.label;const V=s.setContext(this.getContext(p));w=this.getPixelForTick(p)+s.labelOffset,k=this._resolveTickFontOptions(p),C=k.lineHeight,P=ve(S)?S.length:1;const W=P/2,z=V.color,R=V.textStrokeColor,O=V.textStrokeWidth;let A=E;o?(_=w,E==="inner"&&(p===m-1?A=this.options.reverse?"left":"right":p===0?A=this.options.reverse?"right":"left":A="center"),r==="top"?u==="near"||v!==0?L=-P*C+C/2:u==="center"?L=-H.highest.height/2-W*C+C:L=-H.highest.height+C/2:u==="near"||v!==0?L=C/2:u==="center"?L=H.highest.height/2-W*C:L=H.highest.height-P*C,d&&(L*=-1),v!==0&&!V.showLabelBackdrop&&(_+=C/2*Math.sin(v))):(T=w,L=(1-P)*C/2);let I;if(V.showLabelBackdrop){const $=qe(V.backdropPadding),B=H.heights[p],Q=H.widths[p];let ie=L-$.top,Z=0-$.left;switch(j){case"middle":ie-=B/2;break;case"bottom":ie-=B;break}switch(E){case"center":Z-=Q/2;break;case"right":Z-=Q;break;case"inner":p===m-1?Z-=Q:p>0&&(Z-=Q/2);break}I={left:Z,top:ie,width:Q+$.width,height:B+$.height,color:V.backdropColor}}b.push({label:S,font:k,textOffset:L,options:{rotation:v,color:z,strokeColor:R,strokeWidth:O,textAlign:A,textBaseline:j,translation:[_,T],backdrop:I}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Lt(this.labelRotation))return e==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:i,mirror:r,padding:s}}=this.options,o=this._getLabelSizes(),a=e+s,l=o.widest.width;let u,c;return n==="left"?r?(c=this.right+s,i==="near"?u="left":i==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-a,i==="near"?u="right":i==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?r?(c=this.left+s,i==="near"?u="right":i==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+a,i==="near"?u="left":i==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,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:i,top:r,width:s,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(i,r,s,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(s=>s.value===e);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(e){const n=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,o;const a=(l,u,c)=>{!c.width||!c.color||(i.save(),i.lineWidth=c.width,i.strokeStyle=c.color,i.setLineDash(c.borderDash||[]),i.lineDashOffset=c.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(u.x,u.y),i.stroke(),i.restore())};if(n.display)for(s=0,o=r.length;s<o;++s){const l=r[s];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:i,grid:r}}=this,s=i.setContext(this.getContext()),o=i.display?s.width:0;if(!o)return;const a=r.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,d,f;this.isHorizontal()?(u=qn(e,this.left,o)-o/2,c=qn(e,this.right,a)+a/2,d=f=l):(d=qn(e,this.top,o)-o/2,f=qn(e,this.bottom,a)+a/2,u=c=l),n.save(),n.lineWidth=s.width,n.strokeStyle=s.color,n.beginPath(),n.moveTo(u,d),n.lineTo(c,f),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const i=this.ctx,r=this._computeLabelArea();r&&Ia(i,r);const s=this.getLabelItems(e);for(const o of s){const a=o.options,l=o.font,u=o.label,c=o.textOffset;vi(i,u,0,c,l,a)}r&&za(i)}drawTitle(){const{ctx:e,options:{position:n,title:i,reverse:r}}=this;if(!i.display)return;const s=Oe(i.font),o=qe(i.padding),a=i.align;let l=s.lineHeight/2;n==="bottom"||n==="center"||K(n)?(l+=o.bottom,ve(i.text)&&(l+=s.lineHeight*(i.text.length-1))):l+=o.top;const{titleX:u,titleY:c,maxWidth:d,rotation:f}=p1(this,l,n,a);vi(e,i.text,0,0,s,{color:i.color,maxWidth:d,rotation:f,textAlign:h1(a,n,r),textBaseline:"middle",translation:[u,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,i=U(e.grid&&e.grid.z,-1),r=U(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==dr.prototype.draw?[{z:n,draw:s=>{this.draw(s)}}]:[{z:i,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let s,o;for(s=0,o=n.length;s<o;++s){const a=n[s];a[i]===this.id&&(!e||a.type===e)&&r.push(a)}return r}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return Oe(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class io{constructor(e,n,i){this.type=e,this.scope=n,this.override=i,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 i;v1(n)&&(i=this.register(n));const r=this.items,s=e.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+e);return s in r||(r[s]=e,g1(e,o,i),this.override&&Ce.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,i=e.id,r=this.scope;i in n&&delete n[i],r&&i in Ce[r]&&(delete Ce[r][i],this.override&&delete mi[i])}}function g1(t,e,n){const i=ms(Object.create(null),[n?Ce.get(n):{},Ce.get(e),t.defaults]);Ce.set(e,i),t.defaultRoutes&&m1(e,t.defaultRoutes),t.descriptors&&Ce.describe(e,t.descriptors)}function m1(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),r=i.pop(),s=[t].concat(i).join("."),o=e[n].split("."),a=o.pop(),l=o.join(".");Ce.route(s,r,l,a)})}function v1(t){return"id"in t&&"defaults"in t}class y1{constructor(){this.controllers=new io(jt,"datasets",!0),this.elements=new io(It,"elements"),this.plugins=new io(Object,"plugins"),this.scales=new io(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,i){[...n].forEach(r=>{const s=i||this._getRegistryForType(r);i||s.isForType(r)||s===this.plugins&&r.id?this._exec(e,s,r):se(r,o=>{const a=i||this._getRegistryForType(o);this._exec(e,a,o)})})}_exec(e,n,i){const r=nd(e);le(i["before"+r],[],i),n[e](i),le(i["after"+r],[],i)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(e))return i}return this.plugins}_get(e,n,i){const r=n.get(e);if(r===void 0)throw new Error('"'+e+'" is not a registered '+i+".");return r}}var Ut=new y1;class x1{constructor(){this._init=void 0}notify(e,n,i,r){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const s=r?this._descriptors(e).filter(r):this._descriptors(e),o=this._notify(s,e,n,i);return n==="afterDestroy"&&(this._notify(s,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),o}_notify(e,n,i,r){r=r||{};for(const s of e){const o=s.plugin,a=o[i],l=[n,r,s.options];if(le(a,l,o)===!1&&r.cancelable)return!1}return!0}invalidate(){J(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 i=e&&e.config,r=U(i.options&&i.options.plugins,{}),s=b1(i);return r===!1&&!n?[]:S1(e,s,r,n)}_notifyStateChanges(e){const n=this._oldCache||[],i=this._cache,r=(s,o)=>s.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(r(n,i),e,"stop"),this._notify(r(i,n),e,"start")}}function b1(t){const e={},n=[],i=Object.keys(Ut.plugins.items);for(let s=0;s<i.length;s++)n.push(Ut.getPlugin(i[s]));const r=t.plugins||[];for(let s=0;s<r.length;s++){const o=r[s];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function w1(t,e){return!e&&t===!1?null:t===!0?{}:t}function S1(t,{plugins:e,localIds:n},i,r){const s=[],o=t.getContext();for(const a of e){const l=a.id,u=w1(i[l],r);u!==null&&s.push({plugin:a,options:_1(t.config,{plugin:a,local:n[l]},u,o)})}return s}function _1(t,{plugin:e,local:n},i,r){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(i,s);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Bu(t,e){const n=Ce.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function k1(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function C1(t,e){return t===e?"_index_":"_value_"}function Ch(t){if(t==="x"||t==="y"||t==="r")return t}function E1(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function $u(t,...e){if(Ch(t))return t;for(const n of e){const i=n.axis||E1(n.position)||t.length>1&&Ch(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Eh(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function T1(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(n.length)return Eh(t,"x",n[0])||Eh(t,"y",n[0])}return{}}function P1(t,e){const n=mi[t.type]||{scales:{}},i=e.scales||{},r=Bu(t.type,e),s=Object.create(null);return Object.keys(i).forEach(o=>{const a=i[o];if(!K(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=$u(o,a,T1(o,t),Ce.scales[a.type]),u=C1(l,r),c=n.scales||{};s[o]=Gr(Object.create(null),[{axis:l},a,c[l],c[u]])}),t.data.datasets.forEach(o=>{const a=o.type||t.type,l=o.indexAxis||Bu(a,e),c=(mi[a]||{}).scales||{};Object.keys(c).forEach(d=>{const f=k1(d,l),h=o[f+"AxisID"]||f;s[h]=s[h]||Object.create(null),Gr(s[h],[{axis:f},i[h],c[d]])})}),Object.keys(s).forEach(o=>{const a=s[o];Gr(a,[Ce.scales[a.type],Ce.scale])}),s}function Tv(t){const e=t.options||(t.options={});e.plugins=U(e.plugins,{}),e.scales=P1(t,e)}function Pv(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function M1(t){return t=t||{},t.data=Pv(t.data),Tv(t),t}const Th=new Map,Mv=new Set;function ro(t,e){let n=Th.get(t);return n||(n=e(),Th.set(t,n),Mv.add(n)),n}const Tr=(t,e,n)=>{const i=Hn(e,n);i!==void 0&&t.add(i)};class R1{constructor(e){this._config=M1(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=Pv(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(),Tv(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return ro(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return ro(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return ro(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,i=this.type;return ro(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const i=this._scopeCache;let r=i.get(e);return(!r||n)&&(r=new Map,i.set(e,r)),r}getOptionScopes(e,n,i){const{options:r,type:s}=this,o=this._cachedScopes(e,i),a=o.get(n);if(a)return a;const l=new Set;n.forEach(c=>{e&&(l.add(e),c.forEach(d=>Tr(l,e,d))),c.forEach(d=>Tr(l,r,d)),c.forEach(d=>Tr(l,mi[s]||{},d)),c.forEach(d=>Tr(l,Ce,d)),c.forEach(d=>Tr(l,Iu,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),Mv.has(n)&&o.set(n,u),u}chartOptionScopes(){const{options:e,type:n}=this;return[e,mi[n]||{},Ce.datasets[n]||{},{type:n},Ce,Iu]}resolveNamedOptions(e,n,i,r=[""]){const s={$shared:!0},{resolver:o,subPrefixes:a}=Ph(this._resolverCache,e,r);let l=o;if(O1(o,n)){s.$shared=!1,i=Wn(i)?i():i;const u=this.createResolver(e,i,a);l=rr(o,i,u)}for(const u of n)s[u]=l[u];return s}createResolver(e,n,i=[""],r){const{resolver:s}=Ph(this._resolverCache,e,i);return K(n)?rr(s,n,void 0,r):s}}function Ph(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const r=n.join();let s=i.get(r);return s||(s={resolver:ud(e,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},i.set(r,s)),s}const L1=t=>K(t)&&Object.getOwnPropertyNames(t).some(e=>Wn(t[e]));function O1(t,e){const{isScriptable:n,isIndexable:i}=av(t);for(const r of e){const s=n(r),o=i(r),a=(o||s)&&t[r];if(s&&(Wn(a)||L1(a))||o&&ve(a))return!0}return!1}var D1="4.5.1";const j1=["top","bottom","left","right","chartArea"];function Mh(t,e){return t==="top"||t==="bottom"||j1.indexOf(t)===-1&&e==="x"}function Rh(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function Lh(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),le(n&&n.onComplete,[t],e)}function N1(t){const e=t.chart,n=e.options.animation;le(n&&n.onProgress,[t],e)}function Rv(t){return fd()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Oo={},Oh=t=>{const e=Rv(t);return Object.values(Oo).filter(n=>n.canvas===e).pop()};function A1(t,e,n){const i=Object.keys(t);for(const r of i){const s=+r;if(s>=e){const o=t[r];delete t[r],(n>0||s>e)&&(t[s+n]=o)}}}function I1(t,e,n,i){return!n||t.type==="mouseout"?null:i?e:t}class Sn{static register(...e){Ut.add(...e),Dh()}static unregister(...e){Ut.remove(...e),Dh()}constructor(e,n){const i=this.config=new R1(n),r=Rv(e),s=Oh(r);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||t1(r)),this.platform.updateConfig(i);const a=this.platform.acquireContext(r,o.aspectRatio),l=a&&a.canvas,u=l&&l.height,c=l&&l.width;if(this.id=Iw(),this.ctx=a,this.canvas=l,this.width=c,this.height=u,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 x1,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=tS(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],Oo[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Jt.listen(this,"complete",Lh),Jt.listen(this,"progress",N1),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:i,height:r,_aspectRatio:s}=this;return J(e)?n&&s?s:r?i/r: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}get registry(){return Ut}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():th(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Jf(this.canvas,this.ctx),this}stop(){return Jt.stop(this),this}resize(e,n){Jt.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const i=this.options,r=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,e,n,s),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,th(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),le(i.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};se(n,(i,r)=>{i.id=r})}buildOrUpdateScales(){const e=this.options,n=e.scales,i=this.scales,r=Object.keys(i).reduce((o,a)=>(o[a]=!1,o),{});let s=[];n&&(s=s.concat(Object.keys(n).map(o=>{const a=n[o],l=$u(o,a),u=l==="r",c=l==="x";return{options:a,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),se(s,o=>{const a=o.options,l=a.id,u=$u(l,a),c=U(a.type,o.dtype);(a.position===void 0||Mh(a.position,u)!==Mh(o.dposition))&&(a.position=o.dposition),r[l]=!0;let d=null;if(l in i&&i[l].type===c)d=i[l];else{const f=Ut.getScale(c);d=new f({id:l,type:c,ctx:this.ctx,chart:this}),i[d.id]=d}d.init(a,e)}),se(r,(o,a)=>{o||delete i[a]}),se(i,o=>{St.configure(this,o,o.options),St.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,i=e.length;if(e.sort((r,s)=>r.index-s.index),i>n){for(let r=n;r<i;++r)this._destroyDatasetMeta(r);e.splice(n,i-n)}this._sortedMetasets=e.slice(0).sort(Rh("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((i,r)=>{n.filter(s=>s===i._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let i,r;for(this._removeUnreferencedMetasets(),i=0,r=n.length;i<r;i++){const s=n[i];let o=this.getDatasetMeta(i);const a=s.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(i),o=this.getDatasetMeta(i)),o.type=a,o.indexAxis=s.indexAxis||Bu(a,this.options),o.order=s.order||0,o.index=i,o.label=""+s.label,o.visible=this.isDatasetVisible(i),o.controller)o.controller.updateIndex(i),o.controller.linkScales();else{const l=Ut.getController(a),{datasetElementType:u,dataElementType:c}=Ce.datasets[a];Object.assign(l,{dataElementType:Ut.getElement(c),datasetElementType:u&&Ut.getElement(u)}),o.controller=new l(this,i),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){se(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 i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:d}=this.getDatasetMeta(u),f=!r&&s.indexOf(d)===-1;d.buildOrUpdateElements(f),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),r||se(s,u=>{u.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Rh("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){se(this.scales,e=>{St.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(e.events);(!Hf(n,i)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:r,count:s}of n){const o=i==="_removeElements"?-s:s;A1(e,r,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=s=>new Set(e.filter(o=>o[0]===s).map((o,a)=>a+","+o.splice(1).join(","))),r=i(0);for(let s=1;s<n;s++)if(!Hf(r,i(s)))return;return Array.from(r).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;St.update(this,this.width,this.height,e);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],se(this.boxes,r=>{i&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,s)=>{r._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,Wn(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const i=this.getDatasetMeta(e),r={meta:i,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(i.controller._update(n),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Jt.has(this)?this.attached&&!Jt.running(this)&&Jt.start(this):(this.draw(),Lh({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:i,height:r}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(i,r)}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,i=[];let r,s;for(r=0,s=n.length;r<s;++r){const o=n[r];(!e||o.visible)&&i.push(o)}return i}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,i={meta:e,index:e.index,cancelable:!0},r=yv(this,e);this.notifyPlugins("beforeDatasetDraw",i)!==!1&&(r&&Ia(n,r),e.controller.draw(),r&&za(n),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return ln(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,i,r){const s=j_.modes[n];return typeof s=="function"?s(this,e,i,r):[]}getDatasetMeta(e){const n=this.data.datasets[e],i=this._metasets;let r=i.filter(s=>s&&s._dataset===n).pop();return r||(r={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},i.push(r)),r}getContext(){return this.$context||(this.$context=Kn(null,{chart:this,type:"chart"}))}
vendor: 5,277 bytes, line 80
80getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const i=this.getDatasetMeta(e);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(e,n){const i=this.getDatasetMeta(e);i.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,i){const r=i?"show":"hide",s=this.getDatasetMeta(e),o=s.controller._resolveAnimations(void 0,r);vs(n)?(s.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),o.update(s,{visible:i}),this.update(a=>a.datasetIndex===e?r: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(),Jt.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(),Jf(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Oo[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,i=(s,o)=>{n.addEventListener(this,s,o),e[s]=o},r=(s,o,a)=>{s.offsetX=o,s.offsetY=a,this._eventHandler(s)};se(this.options.events,s=>i(s,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,i=(l,u)=>{n.addEventListener(this,l,u),e[l]=u},r=(l,u)=>{e[l]&&(n.removeEventListener(this,l,u),delete e[l])},s=(l,u)=>{this.canvas&&this.resize(l,u)};let o;const a=()=>{r("attach",a),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,r("resize",s),this._stop(),this._resize(0,0),i("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){se(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},se(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,i){const r=i?"set":"remove";let s,o,a,l;for(n==="dataset"&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+r+"DatasetHoverStyle"]()),a=0,l=e.length;a<l;++a){o=e[a];const u=o&&this.getDatasetMeta(o.datasetIndex).controller;u&&u[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],i=e.map(({datasetIndex:s,index:o})=>{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[o],index:o}});!aa(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(e,n,i){return this._plugins.notify(this,e,n,i)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,i){const r=this.options.hover,s=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),o=s(n,e),a=i?e:s(e,n);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(e,n){const i={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},r=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",i,r)===!1)return;const s=this._handleEvent(e,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(s||i.changed)&&this.render(),this}_handleEvent(e,n,i){const{_active:r=[],options:s}=this,o=n,a=this._getActiveElements(e,r,i,o),l=Hw(e),u=I1(e,this._lastEvent,i,l);i&&(this._lastEvent=null,le(s.onHover,[e,a,this],this),l&&le(s.onClick,[e,a,this],this));const c=!aa(a,r);return(c||n)&&(this._active=a,this._updateHoverStyles(a,r,n)),this._lastEvent=u,c}_getActiveElements(e,n,i,r){if(e.type==="mouseout")return[];if(!i)return n;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,r)}}N(Sn,"defaults",Ce),N(Sn,"instances",Oo),N(Sn,"overrides",mi),N(Sn,"registry",Ut),N(Sn,"version",D1),N(Sn,"getChart",Oh);function Dh(){return se(Sn.instances,t=>t._plugins.invalidate())}function z1(t,e,n){const{startAngle:i,x:r,y:s,outerRadius:o,innerRadius:a,options:l}=e,{borderWidth:u,borderJoinStyle:c}=l,d=Math.min(u/o,Ye(i-n));if(t.beginPath(),t.arc(r,s,o-u/2,i+d/2,n-d/2),a>0){const f=Math.min(u/a,Ye(i-n));t.arc(r,s,a+u/2,n-f/2,i+f/2,!0)}else{const f=Math.min(u/2,o*Ye(i-n));if(c==="round")t.arc(r,s,f,n-te/2,i+te/2,!0);else if(c==="bevel"){const h=2*f*f,g=-h*Math.cos(n+te/2)+r,v=-h*Math.sin(n+te/2)+s,b=h*Math.cos(i+te/2)+r,p=h*Math.sin(i+te/2)+s;t.lineTo(g,v),t.lineTo(b,p)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function F1(t,e,n){const{startAngle:i,pixelMargin:r,x:s,y:o,outerRadius:a,innerRadius:l}=e;let u=r/a;t.beginPath(),t.arc(s,o,a,i-u,n+u),l>r?(u=r/l,t.arc(s,o,l,n+u,i-u,!0)):t.arc(s,o,r,n+Te,i-Te),t.closePath(),t.clip()}function B1(t){return ld(t,["outerStart","outerEnd","innerStart","innerEnd"])}
vendor: 60,483 bytes, lines 80-82
80function $1(t,e,n,i){const r=B1(t.options.borderRadius),s=(n-e)/2,o=Math.min(s,i*e/2),a=l=>{const u=(n-Math.min(s,l))*i/2;return Ke(l,0,Math.min(s,u))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:Ke(r.innerStart,0,o),innerEnd:Ke(r.innerEnd,0,o)}}function Ti(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function ha(t,e,n,i,r,s){const{x:o,y:a,startAngle:l,pixelMargin:u,innerRadius:c}=e,d=Math.max(e.outerRadius+i+n-u,0),f=c>0?c+i+n+u:0;let h=0;const g=r-l;if(i){const V=c>0?c-i:0,W=d>0?d-i:0,z=(V+W)/2,R=z!==0?g*z/(z+i):g;h=(g-R)/2}const v=Math.max(.001,g*d-n/te)/d,b=(g-v)/2,p=l+b+h,m=r-b-h,{outerStart:x,outerEnd:S,innerStart:_,innerEnd:T}=$1(e,f,d,m-p),E=d-x,w=d-S,k=p+x/E,C=m-S/w,P=f+_,L=f+T,j=p+_/P,H=m-T/L;if(t.beginPath(),s){const V=(k+C)/2;if(t.arc(o,a,d,k,V),t.arc(o,a,d,V,C),S>0){const O=Ti(w,C,o,a);t.arc(O.x,O.y,S,C,m+Te)}const W=Ti(L,m,o,a);if(t.lineTo(W.x,W.y),T>0){const O=Ti(L,H,o,a);t.arc(O.x,O.y,T,m+Te,H+Math.PI)}const z=(m-T/f+(p+_/f))/2;if(t.arc(o,a,f,m-T/f,z,!0),t.arc(o,a,f,z,p+_/f,!0),_>0){const O=Ti(P,j,o,a);t.arc(O.x,O.y,_,j+Math.PI,p-Te)}const R=Ti(E,p,o,a);if(t.lineTo(R.x,R.y),x>0){const O=Ti(E,k,o,a);t.arc(O.x,O.y,x,p-Te,k)}}else{t.moveTo(o,a);const V=Math.cos(k)*d+o,W=Math.sin(k)*d+a;t.lineTo(V,W);const z=Math.cos(C)*d+o,R=Math.sin(C)*d+a;t.lineTo(z,R)}t.closePath()}function V1(t,e,n,i,r){const{fullCircles:s,startAngle:o,circumference:a}=e;let l=e.endAngle;if(s){ha(t,e,n,i,l,r);for(let u=0;u<s;++u)t.fill();isNaN(a)||(l=o+(a%fe||fe))}return ha(t,e,n,i,l,r),t.fill(),l}function H1(t,e,n,i,r){const{fullCircles:s,startAngle:o,circumference:a,options:l}=e,{borderWidth:u,borderJoinStyle:c,borderDash:d,borderDashOffset:f,borderRadius:h}=l,g=l.borderAlign==="inner";if(!u)return;t.setLineDash(d||[]),t.lineDashOffset=f,g?(t.lineWidth=u*2,t.lineJoin=c||"round"):(t.lineWidth=u,t.lineJoin=c||"bevel");let v=e.endAngle;if(s){ha(t,e,n,i,v,r);for(let b=0;b<s;++b)t.stroke();isNaN(a)||(v=o+(a%fe||fe))}g&&F1(t,e,v),l.selfJoin&&v-o>=te&&h===0&&c!=="miter"&&z1(t,e,v),s||(ha(t,e,n,i,v,r),t.stroke())}class jr extends It{constructor(n){super();N(this,"circumference");N(this,"endAngle");N(this,"fullCircles");N(this,"innerRadius");N(this,"outerRadius");N(this,"pixelMargin");N(this,"startAngle");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,n&&Object.assign(this,n)}inRange(n,i,r){const s=this.getProps(["x","y"],r),{angle:o,distance:a}=Jm(s,{x:n,y:i}),{startAngle:l,endAngle:u,innerRadius:c,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),h=(this.options.spacing+this.options.borderWidth)/2,g=U(f,u-l),v=ys(o,l,u)&&l!==u,b=g>=fe||v,p=an(a,c+h,d+h);return b&&p}getCenterPoint(n){const{x:i,y:r,startAngle:s,endAngle:o,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(s+o)/2,f=(a+l+c+u)/2;return{x:i+Math.cos(d)*f,y:r+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:r}=this,s=(i.offset||0)/4,o=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=r>fe?Math.floor(r/fe):0,r===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*s,Math.sin(l)*s);const u=1-Math.sin(Math.min(te,r||0)),c=s*u;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,V1(n,this,c,o,a),H1(n,this,c,o,a),n.restore()}}N(jr,"id","arc"),N(jr,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),N(jr,"defaultRoutes",{backgroundColor:"backgroundColor"}),N(jr,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function Lv(t,e,n=e){t.lineCap=U(n.borderCapStyle,e.borderCapStyle),t.setLineDash(U(n.borderDash,e.borderDash)),t.lineDashOffset=U(n.borderDashOffset,e.borderDashOffset),t.lineJoin=U(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=U(n.borderWidth,e.borderWidth),t.strokeStyle=U(n.borderColor,e.borderColor)}function W1(t,e,n){t.lineTo(n.x,n.y)}function U1(t){return t.stepped?pS:t.tension||t.cubicInterpolationMode==="monotone"?gS:W1}function Ov(t,e,n={}){const i=t.length,{start:r=0,end:s=i-1}=n,{start:o,end:a}=e,l=Math.max(r,o),u=Math.min(s,a),c=r<o&&s<o||r>a&&s>a;return{count:i,start:l,loop:e.loop,ilen:u<l&&!c?i+u-l:u-l}}function G1(t,e,n,i){const{points:r,options:s}=e,{count:o,start:a,loop:l,ilen:u}=Ov(r,n,i),c=U1(s);let{move:d=!0,reverse:f}=i||{},h,g,v;for(h=0;h<=u;++h)g=r[(a+(f?u-h:h))%o],!g.skip&&(d?(t.moveTo(g.x,g.y),d=!1):c(t,v,g,f,s.stepped),v=g);return l&&(g=r[(a+(f?u:0))%o],c(t,v,g,f,s.stepped)),!!l}function Y1(t,e,n,i){const r=e.points,{count:s,start:o,ilen:a}=Ov(r,n,i),{move:l=!0,reverse:u}=i||{};let c=0,d=0,f,h,g,v,b,p;const m=S=>(o+(u?a-S:S))%s,x=()=>{v!==b&&(t.lineTo(c,b),t.lineTo(c,v),t.lineTo(c,p))};for(l&&(h=r[m(0)],t.moveTo(h.x,h.y)),f=0;f<=a;++f){if(h=r[m(f)],h.skip)continue;const S=h.x,_=h.y,T=S|0;T===g?(_<v?v=_:_>b&&(b=_),c=(d*c+S)/++d):(x(),t.lineTo(S,_),g=T,d=0,v=b=_),p=_}x()}function Vu(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?Y1:G1}function X1(t){return t.stepped?YS:t.tension||t.cubicInterpolationMode==="monotone"?XS:ni}function K1(t,e,n,i){let r=e._path;r||(r=e._path=new Path2D,e.path(r,n,i)&&r.closePath()),Lv(t,e.options),t.stroke(r)}function Q1(t,e,n,i){const{segments:r,options:s}=e,o=Vu(e);for(const a of r)Lv(t,s,a.style),t.beginPath(),o(t,e,a,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}const q1=typeof Path2D=="function";function J1(t,e,n,i){q1&&!e.options.segment?K1(t,e,n,i):Q1(t,e,n,i)}class Mn extends It{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 i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const r=i.spanGaps?this._loop:this._fullLoop;FS(this._points,i,e,r,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=e_(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,i=e.length;return i&&n[e[i-1].end]}interpolate(e,n){const i=this.options,r=e[n],s=this.points,o=vv(this,{property:n,start:r,end:r});if(!o.length)return;const a=[],l=X1(i);let u,c;for(u=0,c=o.length;u<c;++u){const{start:d,end:f}=o[u],h=s[d],g=s[f];if(h===g){a.push(h);continue}const v=Math.abs((r-h[n])/(g[n]-h[n])),b=l(h,g,v,i.stepped);b[n]=e[n],a.push(b)}return a.length===1?a[0]:a}pathSegment(e,n,i){return Vu(this)(e,this,n,i)}path(e,n,i){const r=this.segments,s=Vu(this);let o=this._loop;n=n||0,i=i||this.points.length-n;for(const a of r)o&=s(e,this,a,{start:n,end:n+i-1});return!!o}draw(e,n,i,r){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(e.save(),J1(e,this,i,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}N(Mn,"id","line"),N(Mn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),N(Mn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),N(Mn,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function jh(t,e,n,i){const r=t.options,{[n]:s}=t.getProps([n],i);return Math.abs(e-s)<r.radius+r.hitRadius}class Do extends It{constructor(n){super();N(this,"parsed");N(this,"skip");N(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,i,r){const s=this.options,{x:o,y:a}=this.getProps(["x","y"],r);return Math.pow(n-o,2)+Math.pow(i-a,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(n,i){return jh(this,n,"x",i)}inYRange(n,i){return jh(this,n,"y",i)}getCenterPoint(n){const{x:i,y:r}=this.getProps(["x","y"],n);return{x:i,y:r}}size(n){n=n||this.options||{};let i=n.radius||0;i=Math.max(i,i&&n.hoverRadius||0);const r=i&&n.borderWidth||0;return(i+r)*2}draw(n,i){const r=this.options;this.skip||r.radius<.1||!ln(this,i,this.size(r)/2)||(n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.fillStyle=r.backgroundColor,zu(n,r,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}N(Do,"id","point"),N(Do,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),N(Do,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Dv(t,e){const{x:n,y:i,base:r,width:s,height:o}=t.getProps(["x","y","base","width","height"],e);let a,l,u,c,d;return t.horizontal?(d=o/2,a=Math.min(n,r),l=Math.max(n,r),u=i-d,c=i+d):(d=s/2,a=n-d,l=n+d,u=Math.min(i,r),c=Math.max(i,r)),{left:a,top:u,right:l,bottom:c}}function Rn(t,e,n,i){return t?0:Ke(e,n,i)}function Z1(t,e,n){const i=t.options.borderWidth,r=t.borderSkipped,s=ov(i);return{t:Rn(r.top,s.top,0,n),r:Rn(r.right,s.right,0,e),b:Rn(r.bottom,s.bottom,0,n),l:Rn(r.left,s.left,0,e)}}function ek(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),r=t.options.borderRadius,s=ui(r),o=Math.min(e,n),a=t.borderSkipped,l=i||K(r);return{topLeft:Rn(!l||a.top||a.left,s.topLeft,0,o),topRight:Rn(!l||a.top||a.right,s.topRight,0,o),bottomLeft:Rn(!l||a.bottom||a.left,s.bottomLeft,0,o),bottomRight:Rn(!l||a.bottom||a.right,s.bottomRight,0,o)}}function tk(t){const e=Dv(t),n=e.right-e.left,i=e.bottom-e.top,r=Z1(t,n/2,i/2),s=ek(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:s},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,s.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(r.b,r.r))}}}}function Ml(t,e,n,i){const r=e===null,s=n===null,a=t&&!(r&&s)&&Dv(t,i);return a&&(r||an(e,a.left,a.right))&&(s||an(n,a.top,a.bottom))}function nk(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function ik(t,e){t.rect(e.x,e.y,e.w,e.h)}function Rl(t,e,n={}){const i=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0,s=(t.x+t.w!==n.x+n.w?e:0)-i,o=(t.y+t.h!==n.y+n.h?e:0)-r;return{x:t.x+i,y:t.y+r,w:t.w+s,h:t.h+o,radius:t.radius}}class jo extends It{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:i,backgroundColor:r}}=this,{inner:s,outer:o}=tk(this),a=nk(o.radius)?xs:ik;e.save(),(o.w!==s.w||o.h!==s.h)&&(e.beginPath(),a(e,Rl(o,n,s)),e.clip(),a(e,Rl(s,-n,o)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),a(e,Rl(s,n)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,n,i){return Ml(this,e,n,i)}inXRange(e,n){return Ml(this,e,null,n)}inYRange(e,n){return Ml(this,null,e,n)}getCenterPoint(e){const{x:n,y:i,base:r,horizontal:s}=this.getProps(["x","y","base","horizontal"],e);return{x:s?(n+r)/2:n,y:s?i:(i+r)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}N(jo,"id","bar"),N(jo,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),N(jo,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function rk(t,e,n){const i=t.segments,r=t.points,s=e.points,o=[];for(const a of i){let{start:l,end:u}=a;u=$a(l,u,r);const c=Hu(n,r[l],r[u],a.loop);if(!e.segments){o.push({source:a,target:c,start:r[l],end:r[u]});continue}const d=vv(e,c);for(const f of d){const h=Hu(n,s[f.start],s[f.end],f.loop),g=mv(a,r,h);for(const v of g)o.push({source:v,target:f,start:{[n]:Nh(c,h,"start",Math.max)},end:{[n]:Nh(c,h,"end",Math.min)}})}}return o}function Hu(t,e,n,i){if(i)return;let r=e[t],s=n[t];return t==="angle"&&(r=Ye(r),s=Ye(s)),{property:t,start:r,end:s}}function sk(t,e){const{x:n=null,y:i=null}=t||{},r=e.points,s=[];return e.segments.forEach(({start:o,end:a})=>{a=$a(o,a,r);const l=r[o],u=r[a];i!==null?(s.push({x:l.x,y:i}),s.push({x:u.x,y:i})):n!==null&&(s.push({x:n,y:l.y}),s.push({x:n,y:u.y}))}),s}function $a(t,e,n){for(;e>t;e--){const i=n[e];if(!isNaN(i.x)&&!isNaN(i.y))break}return e}function Nh(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function jv(t,e){let n=[],i=!1;return ve(t)?(i=!0,n=t):n=sk(t,e),n.length?new Mn({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function Ah(t){return t&&t.fill!==!1}function ok(t,e,n){let r=t[e].fill;const s=[e];let o;if(!n)return r;for(;r!==!1&&s.indexOf(r)===-1;){if(!Ie(r))return r;if(o=t[r],!o)return!1;if(o.visible)return r;s.push(r),r=o.fill}return!1}function ak(t,e,n){const i=dk(t);if(K(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return Ie(r)&&Math.floor(r)===r?lk(i[0],e,r,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function lk(t,e,n,i){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=i?!1:n}function uk(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:K(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function ck(t,e,n){let i;return t==="start"?i=n:t==="end"?i=e.options.reverse?e.min:e.max:K(t)?i=t.value:i=e.getBaseValue(),i}function dk(t){const e=t.options,n=e.fill;let i=U(n&&n.target,n);return i===void 0&&(i=!!e.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function fk(t){const{scale:e,index:n,line:i}=t,r=[],s=i.segments,o=i.points,a=hk(e,n);a.push(jv({x:null,y:e.bottom},i));for(let l=0;l<s.length;l++){const u=s[l];for(let c=u.start;c<=u.end;c++)pk(r,o[c],a)}return new Mn({points:r,options:{}})}function hk(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let r=0;r<i.length;r++){const s=i[r];if(s.index===e)break;s.hidden||n.unshift(s.dataset)}return n}function pk(t,e,n){const i=[];for(let r=0;r<n.length;r++){const s=n[r],{first:o,last:a,point:l}=gk(s,e,"x");if(!(!l||o&&a)){if(o)i.unshift(l);else if(t.push(l),!a)break}}t.push(...i)}function gk(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const r=i[n],s=t.segments,o=t.points;let a=!1,l=!1;for(let u=0;u<s.length;u++){const c=s[u],d=o[c.start][n],f=o[c.end][n];if(an(r,d,f)){a=r===d,l=r===f;break}}return{first:a,last:l,point:i}}class Nv{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,n,i){const{x:r,y:s,radius:o}=this;return n=n||{start:0,end:fe},e.arc(r,s,o,n.end,n.start,!0),!i.bounds}interpolate(e){const{x:n,y:i,radius:r}=this,s=e.angle;return{x:n+Math.cos(s)*r,y:i+Math.sin(s)*r,angle:s}}}function mk(t){const{chart:e,fill:n,line:i}=t;if(Ie(n))return vk(e,n);if(n==="stack")return fk(t);if(n==="shape")return!0;const r=yk(t);return r instanceof Nv?r:jv(r,i)}function vk(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}function yk(t){return(t.scale||{}).getPointPositionForValue?bk(t):xk(t)}function xk(t){const{scale:e={},fill:n}=t,i=uk(n,e);if(Ie(i)){const r=e.isHorizontal();return{x:r?i:null,y:r?null:i}}return null}function bk(t){const{scale:e,fill:n}=t,i=e.options,r=e.getLabels().length,s=i.reverse?e.max:e.min,o=ck(n,e,s),a=[];if(i.grid.circular){const l=e.getPointPositionForValue(0,s);return new Nv({x:l.x,y:l.y,radius:e.getDistanceFromCenterForValue(o)})}for(let l=0;l<r;++l)a.push(e.getPointPositionForValue(l,o));return a}function Ll(t,e,n){const i=mk(e),{chart:r,index:s,line:o,scale:a,axis:l}=e,u=o.options,c=u.fill,d=u.backgroundColor,{above:f=d,below:h=d}=c||{},g=r.getDatasetMeta(s),v=yv(r,g);i&&o.points.length&&(Ia(t,n),wk(t,{line:o,target:i,above:f,below:h,area:n,scale:a,axis:l,clip:v}),za(t))}function wk(t,e){const{line:n,target:i,above:r,below:s,area:o,scale:a,clip:l}=e,u=n._loop?"angle":e.axis;t.save();let c=s;s!==r&&(u==="x"?(Ih(t,i,o.top),Ol(t,{line:n,target:i,color:r,scale:a,property:u,clip:l}),t.restore(),t.save(),Ih(t,i,o.bottom)):u==="y"&&(zh(t,i,o.left),Ol(t,{line:n,target:i,color:s,scale:a,property:u,clip:l}),t.restore(),t.save(),zh(t,i,o.right),c=r)),Ol(t,{line:n,target:i,color:c,scale:a,property:u,clip:l}),t.restore()}function Ih(t,e,n){const{segments:i,points:r}=e;let s=!0,o=!1;t.beginPath();for(const a of i){const{start:l,end:u}=a,c=r[l],d=r[$a(l,u,r)];s?(t.moveTo(c.x,c.y),s=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),o=!!e.pathSegment(t,a,{move:o}),o?t.closePath():t.lineTo(d.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function zh(t,e,n){const{segments:i,points:r}=e;let s=!0,o=!1;t.beginPath();for(const a of i){const{start:l,end:u}=a,c=r[l],d=r[$a(l,u,r)];s?(t.moveTo(c.x,c.y),s=!1):(t.lineTo(n,c.y),t.lineTo(c.x,c.y)),o=!!e.pathSegment(t,a,{move:o}),o?t.closePath():t.lineTo(n,d.y)}t.lineTo(n,e.first().y),t.closePath(),t.clip()}function Ol(t,e){const{line:n,target:i,property:r,color:s,scale:o,clip:a}=e,l=rk(n,i,r);for(const{source:u,target:c,start:d,end:f}of l){const{style:{backgroundColor:h=s}={}}=u,g=i!==!0;t.save(),t.fillStyle=h,Sk(t,o,a,g&&Hu(r,d,f)),t.beginPath();const v=!!n.pathSegment(t,u);let b;if(g){v?t.closePath():Fh(t,i,f,r);const p=!!i.pathSegment(t,c,{move:v,reverse:!0});b=v&&p,b||Fh(t,i,d,r)}t.closePath(),t.fill(b?"evenodd":"nonzero"),t.restore()}}function Sk(t,e,n,i){const r=e.chart.chartArea,{property:s,start:o,end:a}=i||{};if(s==="x"||s==="y"){let l,u,c,d;s==="x"?(l=o,u=r.top,c=a,d=r.bottom):(l=r.left,u=o,c=r.right,d=a),t.beginPath(),n&&(l=Math.max(l,n.left),c=Math.min(c,n.right),u=Math.max(u,n.top),d=Math.min(d,n.bottom)),t.rect(l,u,c-l,d-u),t.clip()}}function Fh(t,e,n,i){const r=e.interpolate(n,i);r&&t.lineTo(r.x,r.y)}var _k={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,r=[];let s,o,a,l;for(o=0;o<i;++o)s=t.getDatasetMeta(o),a=s.dataset,l=null,a&&a.options&&a instanceof Mn&&(l={visible:t.isDatasetVisible(o),index:o,fill:ak(a,o,i),chart:t,axis:s.controller.options.indexAxis,scale:s.vScale,line:a}),s.$filler=l,r.push(l);for(o=0;o<i;++o)l=r[o],!(!l||l.fill===!1)&&(l.fill=ok(r,o,n.propagate))},beforeDraw(t,e,n){const i=n.drawTime==="beforeDraw",r=t.getSortedVisibleDatasetMetas(),s=t.chartArea;for(let o=r.length-1;o>=0;--o){const a=r[o].$filler;a&&(a.line.updateControlPoints(s,a.axis),i&&a.fill&&Ll(t.ctx,a,s))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const i=t.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){const s=i[r].$filler;Ah(s)&&Ll(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;!Ah(i)||n.drawTime!=="beforeDatasetDraw"||Ll(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Bh=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}},kk=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class $h extends It{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,i){this.maxWidth=e,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=le(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(i=>e.filter(i,this.chart.data))),e.sort&&(n=n.sort((i,r)=>e.sort(i,r,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const i=e.labels,r=Oe(i.font),s=r.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Bh(i,s);let u,c;n.font=r.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(o,s,a,l)+10):(c=this.maxHeight,u=this._fitCols(o,r,a,l)+10),this.width=Math.min(u,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,n,i,r){const{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=r+a;let d=e;s.textAlign="left",s.textBaseline="middle";let f=-1,h=-c;return this.legendItems.forEach((g,v)=>{const b=i+n/2+s.measureText(g.text).width;(v===0||u[u.length-1]+b+2*a>o)&&(d+=c,u[u.length-(v>0?0:1)]=0,h+=c,f++),l[v]={left:0,top:h,row:f,width:b,height:r},u[u.length-1]+=b+a}),d}_fitCols(e,n,i,r){const{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=o-e;let d=a,f=0,h=0,g=0,v=0;return this.legendItems.forEach((b,p)=>{const{itemWidth:m,itemHeight:x}=Ck(i,n,s,b,r);p>0&&h+x+2*a>c&&(d+=f+a,u.push({width:f,height:h}),g+=f+a,v++,f=h=0),l[p]={left:g,top:h,col:v,width:m,height:x},f=Math.max(f,m),h+=x+a}),d+=f,u.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:r},rtl:s}}=this,o=Xi(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=Ge(i,this.left+r,this.right-this.lineWidths[a]);for(const u of n)a!==u.row&&(a=u.row,l=Ge(i,this.left+r,this.right-this.lineWidths[a])),u.top+=this.top+e+r,u.left=o.leftForLtr(o.x(l),u.width),l+=u.width+r}else{let a=0,l=Ge(i,this.top+e+r,this.bottom-this.columnSizes[a].height);for(const u of n)u.col!==a&&(a=u.col,l=Ge(i,this.top+e+r,this.bottom-this.columnSizes[a].height)),u.top=l,u.left+=this.left+r,u.left=o.leftForLtr(o.x(u.left),u.width),l+=u.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Ia(e,this),this._draw(),za(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:i,ctx:r}=this,{align:s,labels:o}=e,a=Ce.color,l=Xi(e.rtl,this.left,this.width),u=Oe(o.font),{padding:c}=o,d=u.size,f=d/2;let h;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=u.string;const{boxWidth:g,boxHeight:v,itemHeight:b}=Bh(o,d),p=function(T,E,w){if(isNaN(g)||g<=0||isNaN(v)||v<0)return;r.save();const k=U(w.lineWidth,1);if(r.fillStyle=U(w.fillStyle,a),r.lineCap=U(w.lineCap,"butt"),r.lineDashOffset=U(w.lineDashOffset,0),r.lineJoin=U(w.lineJoin,"miter"),r.lineWidth=k,r.strokeStyle=U(w.strokeStyle,a),r.setLineDash(U(w.lineDash,[])),o.usePointStyle){const C={radius:v*Math.SQRT2/2,pointStyle:w.pointStyle,rotation:w.rotation,borderWidth:k},P=l.xPlus(T,g/2),L=E+f;sv(r,C,P,L,o.pointStyleWidth&&g)}else{const C=E+Math.max((d-v)/2,0),P=l.leftForLtr(T,g),L=ui(w.borderRadius);r.beginPath(),Object.values(L).some(j=>j!==0)?xs(r,{x:P,y:C,w:g,h:v,radius:L}):r.rect(P,C,g,v),r.fill(),k!==0&&r.stroke()}r.restore()},m=function(T,E,w){vi(r,w.text,T,E+b/2,u,{strikethrough:w.hidden,textAlign:l.textAlign(w.textAlign)})},x=this.isHorizontal(),S=this._computeTitleHeight();x?h={x:Ge(s,this.left+c,this.right-i[0]),y:this.top+c+S,line:0}:h={x:this.left+c,y:Ge(s,this.top+S+c,this.bottom-n[0].height),line:0},hv(this.ctx,e.textDirection);const _=b+c;this.legendItems.forEach((T,E)=>{r.strokeStyle=T.fontColor,r.fillStyle=T.fontColor;const w=r.measureText(T.text).width,k=l.textAlign(T.textAlign||(T.textAlign=o.textAlign)),C=g+f+w;let P=h.x,L=h.y;l.setWidth(this.width),x?E>0&&P+C+c>this.right&&(L=h.y+=_,h.line++,P=h.x=Ge(s,this.left+c,this.right-i[h.line])):E>0&&L+_>this.bottom&&(P=h.x=P+n[h.line].width+c,h.line++,L=h.y=Ge(s,this.top+S+c,this.bottom-n[h.line].height));const j=l.x(P);if(p(j,L,T),P=nS(k,P+g+f,x?P+C:this.right,e.rtl),m(l.x(P),L,T),x)h.x+=C+c;else if(typeof T.text!="string"){const H=u.lineHeight;h.y+=Av(T,H)+c}else h.y+=_}),pv(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,i=Oe(n.font),r=qe(n.padding);if(!n.display)return;const s=Xi(e.rtl,this.left,this.width),o=this.ctx,a=n.position,l=i.size/2,u=r.top+l;let c,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),c=this.top+u,d=Ge(e.align,d,this.right-f);else{const g=this.columnSizes.reduce((v,b)=>Math.max(v,b.height),0);c=u+Ge(e.align,this.top,this.bottom-g-e.labels.padding-this._computeTitleHeight())}const h=Ge(a,d,d+f);o.textAlign=s.textAlign(sd(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=i.string,vi(o,n.text,h,c,i)}_computeTitleHeight(){const e=this.options.title,n=Oe(e.font),i=qe(e.padding);return e.display?n.lineHeight+i.height:0}_getLegendItemAt(e,n){let i,r,s;if(an(e,this.left,this.right)&&an(n,this.top,this.bottom)){for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(r=s[i],an(e,r.left,r.left+r.width)&&an(n,r.top,r.top+r.height))return this.legendItems[i]}return null}handleEvent(e){const n=this.options;if(!Pk(e.type,n))return;const i=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const r=this._hoveredItem,s=kk(r,i);r&&!s&&le(n.onLeave,[e,r,this],this),this._hoveredItem=i,i&&!s&&le(n.onHover,[e,i,this],this)}else i&&le(n.onClick,[e,i,this],this)}}function Ck(t,e,n,i,r){const s=Ek(i,t,e,n),o=Tk(r,i,e.lineHeight);return{itemWidth:s,itemHeight:o}}function Ek(t,e,n,i){let r=t.text;return r&&typeof r!="string"&&(r=r.reduce((s,o)=>s.length>o.length?s:o)),e+n.size/2+i.measureText(r).width}function Tk(t,e,n){let i=t;return typeof e.text!="string"&&(i=Av(e,n)),i}function Av(t,e){const n=t.text?t.text.length:0;return e*n}function Pk(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var Mk={id:"legend",_element:$h,start(t,e,n){const i=t.legend=new $h({ctx:t.ctx,options:n,chart:t});St.configure(t,i,n),St.addBox(t,i)},stop(t){St.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;St.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),e.hidden=!0):(r.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:s,useBorderRadius:o,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=qe(u.borderWidth);return{text:e[l.index].label,fillStyle:u.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:i||u.pointStyle,rotation:u.rotation,textAlign:r||u.textAlign,borderRadius:o&&(a||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Iv extends It{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 i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const r=ve(i.text)?i.text.length:1;this._padding=qe(i.padding);const s=r*Oe(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:i,bottom:r,right:s,options:o}=this,a=o.align;let l=0,u,c,d;return this.isHorizontal()?(c=Ge(a,i,s),d=n+e,u=s-i):(o.position==="left"?(c=i+e,d=Ge(a,r,n),l=te*-.5):(c=s-e,d=Ge(a,n,r),l=te*.5),u=r-n),{titleX:c,titleY:d,maxWidth:u,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const i=Oe(n.font),s=i.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:u}=this._drawArgs(s);vi(e,n.text,0,0,i,{color:n.color,maxWidth:l,rotation:u,textAlign:sd(n.align),textBaseline:"middle",translation:[o,a]})}}function Rk(t,e){const n=new Iv({ctx:t.ctx,options:e,chart:t});St.configure(t,n,e),St.addBox(t,n),t.titleBlock=n}var Lk={id:"title",_element:Iv,start(t,e,n){Rk(t,n)},stop(t){const e=t.titleBlock;St.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;St.configure(t,i,n),i.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 Nr={average(t){if(!t.length)return!1;let e,n,i=new Set,r=0,s=0;for(e=0,n=t.length;e<n;++e){const a=t[e].element;if(a&&a.hasValue()){const l=a.tooltipPosition();i.add(l.x),r+=l.y,++s}}return s===0||i.size===0?!1:{x:[...i].reduce((a,l)=>a+l)/i.size,y:r/s}},nearest(t,e){if(!t.length)return!1;let n=e.x,i=e.y,r=Number.POSITIVE_INFINITY,s,o,a;for(s=0,o=t.length;s<o;++s){const l=t[s].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=Au(e,u);c<r&&(r=c,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,i=l.y}return{x:n,y:i}}};function Ht(t,e){return e&&(ve(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Zt(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
81`)>-1?t.split(`
82`):t}function Ok(t,e){const{element:n,datasetIndex:i,index:r}=e,s=t.getDatasetMeta(i).controller,{label:o,value:a}=s.getLabelAndValue(r);return{chart:t,label:o,parsed:s.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:a,dataset:s.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function Vh(t,e){const n=t.chart.ctx,{body:i,footer:r,title:s}=t,{boxWidth:o,boxHeight:a}=e,l=Oe(e.bodyFont),u=Oe(e.titleFont),c=Oe(e.footerFont),d=s.length,f=r.length,h=i.length,g=qe(e.padding);let v=g.height,b=0,p=i.reduce((S,_)=>S+_.before.length+_.lines.length+_.after.length,0);if(p+=t.beforeBody.length+t.afterBody.length,d&&(v+=d*u.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),p){const S=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;v+=h*S+(p-h)*l.lineHeight+(p-1)*e.bodySpacing}f&&(v+=e.footerMarginTop+f*c.lineHeight+(f-1)*e.footerSpacing);let m=0;const x=function(S){b=Math.max(b,n.measureText(S).width+m)};return n.save(),n.font=u.string,se(t.title,x),n.font=l.string,se(t.beforeBody.concat(t.afterBody),x),m=e.displayColors?o+2+e.boxPadding:0,se(i,S=>{se(S.before,x),se(S.lines,x),se(S.after,x)}),m=0,n.font=c.string,se(t.footer,x),n.restore(),b+=g.width,{width:b,height:v}}function Dk(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}function jk(t,e,n,i){const{x:r,width:s}=i,o=n.caretSize+n.caretPadding;if(t==="left"&&r+s+o>e.width||t==="right"&&r-s-o<0)return!0}function Nk(t,e,n,i){const{x:r,width:s}=n,{width:o,chartArea:{left:a,right:l}}=t;let u="center";return i==="center"?u=r<=(a+l)/2?"left":"right":r<=s/2?u="left":r>=o-s/2&&(u="right"),jk(u,t,e,n)&&(u="center"),u}function Hh(t,e,n){const i=n.yAlign||e.yAlign||Dk(t,n);return{xAlign:n.xAlign||e.xAlign||Nk(t,e,n,i),yAlign:i}}function Ak(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function Ik(t,e,n){let{y:i,height:r}=t;return e==="top"?i+=n:e==="bottom"?i-=r+n:i-=r/2,i}function Wh(t,e,n,i){const{caretSize:r,caretPadding:s,cornerRadius:o}=t,{xAlign:a,yAlign:l}=n,u=r+s,{topLeft:c,topRight:d,bottomLeft:f,bottomRight:h}=ui(o);let g=Ak(e,a);const v=Ik(e,l,u);return l==="center"?a==="left"?g+=u:a==="right"&&(g-=u):a==="left"?g-=Math.max(c,f)+r:a==="right"&&(g+=Math.max(d,h)+r),{x:Ke(g,0,i.width-e.width),y:Ke(v,0,i.height-e.height)}}function so(t,e,n){const i=qe(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function Uh(t){return Ht([],Zt(t))}function zk(t,e,n){return Kn(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function Gh(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const zv={beforeTitle:qt,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:qt,beforeBody:qt,beforeLabel:qt,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return J(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:qt,afterBody:qt,beforeFooter:qt,footer:qt,afterFooter:qt};function rt(t,e,n,i){const r=t[e].call(n,i);return typeof r>"u"?zv[e].call(n,i):r}class Wu extends It{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,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,i=this.options.setContext(this.getContext()),r=i.enabled&&n.options.animation&&i.animations,s=new xv(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=zk(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:i}=n,r=rt(i,"beforeTitle",this,e),s=rt(i,"title",this,e),o=rt(i,"afterTitle",this,e);let a=[];return a=Ht(a,Zt(r)),a=Ht(a,Zt(s)),a=Ht(a,Zt(o)),a}getBeforeBody(e,n){return Uh(rt(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:i}=n,r=[];return se(e,s=>{const o={before:[],lines:[],after:[]},a=Gh(i,s);Ht(o.before,Zt(rt(a,"beforeLabel",this,s))),Ht(o.lines,rt(a,"label",this,s)),Ht(o.after,Zt(rt(a,"afterLabel",this,s))),r.push(o)}),r}getAfterBody(e,n){return Uh(rt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:i}=n,r=rt(i,"beforeFooter",this,e),s=rt(i,"footer",this,e),o=rt(i,"afterFooter",this,e);let a=[];return a=Ht(a,Zt(r)),a=Ht(a,Zt(s)),a=Ht(a,Zt(o)),a}_createItems(e){const n=this._active,i=this.chart.data,r=[],s=[],o=[];let a=[],l,u;for(l=0,u=n.length;l<u;++l)a.push(Ok(this.chart,n[l]));return e.filter&&(a=a.filter((c,d,f)=>e.filter(c,d,f,i))),e.itemSort&&(a=a.sort((c,d)=>e.itemSort(c,d,i))),se(a,c=>{const d=Gh(e.callbacks,c);r.push(rt(d,"labelColor",this,c)),s.push(rt(d,"labelPointStyle",this,c)),o.push(rt(d,"labelTextColor",this,c))}),this.labelColors=r,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=a,a}update(e,n){const i=this.options.setContext(this.getContext()),r=this._active;let s,o=[];if(!r.length)this.opacity!==0&&(s={opacity:0});else{const a=Nr[i.position].call(this,r,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const l=this._size=Vh(this,i),u=Object.assign({},a,l),c=Hh(this.chart,i,u),d=Wh(i,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,s={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,i,r){const s=this.getCaretPosition(e,i,r);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(e,n,i){const{xAlign:r,yAlign:s}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=ui(a),{x:f,y:h}=e,{width:g,height:v}=n;let b,p,m,x,S,_;return s==="center"?(S=h+v/2,r==="left"?(b=f,p=b-o,x=S+o,_=S-o):(b=f+g,p=b+o,x=S-o,_=S+o),m=b):(r==="left"?p=f+Math.max(l,c)+o:r==="right"?p=f+g-Math.max(u,d)-o:p=this.caretX,s==="top"?(x=h,S=x-o,b=p-o,m=p+o):(x=h+v,S=x+o,b=p+o,m=p-o),_=x),{x1:b,x2:p,x3:m,y1:x,y2:S,y3:_}}drawTitle(e,n,i){const r=this.title,s=r.length;let o,a,l;if(s){const u=Xi(i.rtl,this.x,this.width);for(e.x=so(this,i.titleAlign,i),n.textAlign=u.textAlign(i.titleAlign),n.textBaseline="middle",o=Oe(i.titleFont),a=i.titleSpacing,n.fillStyle=i.titleColor,n.font=o.string,l=0;l<s;++l)n.fillText(r[l],u.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+a,l+1===s&&(e.y+=i.titleMarginBottom-a)}}_drawColorBox(e,n,i,r,s){const o=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:u}=s,c=Oe(s.bodyFont),d=so(this,"left",s),f=r.x(d),h=l<c.lineHeight?(c.lineHeight-l)/2:0,g=n.y+h;if(s.usePointStyle){const v={radius:Math.min(u,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},b=r.leftForLtr(f,u)+u/2,p=g+l/2;e.strokeStyle=s.multiKeyBackground,e.fillStyle=s.multiKeyBackground,zu(e,v,b,p),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,zu(e,v,b,p)}else{e.lineWidth=K(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 v=r.leftForLtr(f,u),b=r.leftForLtr(r.xPlus(f,1),u-2),p=ui(o.borderRadius);Object.values(p).some(m=>m!==0)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,xs(e,{x:v,y:g,w:u,h:l,radius:p}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),xs(e,{x:b,y:g+1,w:u-2,h:l-2,radius:p}),e.fill()):(e.fillStyle=s.multiKeyBackground,e.fillRect(v,g,u,l),e.strokeRect(v,g,u,l),e.fillStyle=o.backgroundColor,e.fillRect(b,g+1,u-2,l-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,n,i){const{body:r}=this,{bodySpacing:s,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:u,boxPadding:c}=i,d=Oe(i.bodyFont);let f=d.lineHeight,h=0;const g=Xi(i.rtl,this.x,this.width),v=function(w){n.fillText(w,g.x(e.x+h),e.y+f/2),e.y+=f+s},b=g.textAlign(o);let p,m,x,S,_,T,E;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,e.x=so(this,b,i),n.fillStyle=i.bodyColor,se(this.beforeBody,v),h=a&&b!=="right"?o==="center"?u/2+c:u+2+c:0,S=0,T=r.length;S<T;++S){for(p=r[S],m=this.labelTextColors[S],n.fillStyle=m,se(p.before,v),x=p.lines,a&&x.length&&(this._drawColorBox(n,e,S,g,i),f=Math.max(d.lineHeight,l)),_=0,E=x.length;_<E;++_)v(x[_]),f=d.lineHeight;se(p.after,v)}h=0,f=d.lineHeight,se(this.afterBody,v),e.y-=s}drawFooter(e,n,i){const r=this.footer,s=r.length;let o,a;if(s){const l=Xi(i.rtl,this.x,this.width);for(e.x=so(this,i.footerAlign,i),e.y+=i.footerMarginTop,n.textAlign=l.textAlign(i.footerAlign),n.textBaseline="middle",o=Oe(i.footerFont),n.fillStyle=i.footerColor,n.font=o.string,a=0;a<s;++a)n.fillText(r[a],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+i.footerSpacing}}drawBackground(e,n,i,r){const{xAlign:s,yAlign:o}=this,{x:a,y:l}=e,{width:u,height:c}=i,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:g}=ui(r.cornerRadius);n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.beginPath(),n.moveTo(a+d,l),o==="top"&&this.drawCaret(e,n,i,r),n.lineTo(a+u-f,l),n.quadraticCurveTo(a+u,l,a+u,l+f),o==="center"&&s==="right"&&this.drawCaret(e,n,i,r),n.lineTo(a+u,l+c-g),n.quadraticCurveTo(a+u,l+c,a+u-g,l+c),o==="bottom"&&this.drawCaret(e,n,i,r),n.lineTo(a+h,l+c),n.quadraticCurveTo(a,l+c,a,l+c-h),o==="center"&&s==="left"&&this.drawCaret(e,n,i,r),n.lineTo(a,l+d),n.quadraticCurveTo(a,l,a+d,l),n.closePath(),n.fill(),r.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,i=this.$animations,r=i&&i.x,s=i&&i.y;if(r||s){const o=Nr[e.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=Vh(this,e),l=Object.assign({},o,this._size),u=Hh(n,e,l),c=Wh(e,l,u,n);(r._to!==c.x||s._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=a.width,this.height=a.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 i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const r={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=qe(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(e.save(),e.globalAlpha=i,this.drawBackground(s,e,r,n),hv(e,n.textDirection),s.y+=o.top,this.drawTitle(s,e,n),this.drawBody(s,e,n),this.drawFooter(s,e,n),pv(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const i=this._active,r=e.map(({datasetIndex:a,index:l})=>{const u=this.chart.getDatasetMeta(a);if(!u)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:u.data[l],index:l}}),s=!aa(i,r),o=this._positionChanged(r,n);(s||o)&&(this._active=r,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,s=this._active||[],o=this._getActiveElements(e,s,n,i),a=this._positionChanged(o,e),l=n||!aa(o,s)||a;return l&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,i,r){const s=this.options;if(e.type==="mouseout")return[];if(!r)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,s.mode,s,i);return s.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:i,caretY:r,options:s}=this,o=Nr[s.position].call(this,e,n);return o!==!1&&(i!==o.x||r!==o.y)}}N(Wu,"positioners",Nr);var Fk={id:"tooltip",_element:Wu,positioners:Nr,afterInit(t,e,n){n&&(t.tooltip=new Wu({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:zv},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Bk=(t,e,n,i)=>(typeof e=="string"?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function $k(t,e,n,i){const r=t.indexOf(e);if(r===-1)return Bk(t,e,n,i);const s=t.lastIndexOf(e);return r!==s?n:r}const Vk=(t,e)=>t===null?null:Ke(Math.round(t),0,e);function Yh(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Uu 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 i=this.getLabels();for(const{index:r,label:s}of n)i[r]===s&&i.splice(r,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(J(e))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===e?n:$k(i,e,U(n,e),this._addedLabels),Vk(n,i.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(i=0),n||(r=this.getLabels().length-1)),this.min=i,this.max=r}buildTicks(){const e=this.min,n=this.max,i=this.options.offset,r=[];let s=this.getLabels();s=e===0&&n===s.length-1?s:s.slice(e,n+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=e;o<=n;o++)r.push({value:o});return r}getLabelForValue(e){return Yh.call(this,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}}N(Uu,"id","category"),N(Uu,"defaults",{ticks:{callback:Yh}});function Hk(t,e){const n=[],{bounds:r,step:s,min:o,max:a,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:f}=t,h=s||1,g=c-1,{min:v,max:b}=e,p=!J(o),m=!J(a),x=!J(u),S=(b-v)/(d+1);let _=Uf((b-v)/g/h)*h,T,E,w,k;if(_<1e-14&&!p&&!m)return[{value:v},{value:b}];k=Math.ceil(b/_)-Math.floor(v/_),k>g&&(_=Uf(k*_/g/h)*h),J(l)||(T=Math.pow(10,l),_=Math.ceil(_*T)/T),r==="ticks"?(E=Math.floor(v/_)*_,w=Math.ceil(b/_)*_):(E=v,w=b),p&&m&&s&&Xw((a-o)/s,_/1e3)?(k=Math.round(Math.min((a-o)/_,c)),_=(a-o)/k,E=o,w=a):x?(E=p?o:E,w=m?a:w,k=u-1,_=(w-E)/k):(k=(w-E)/_,Yr(k,Math.round(k),_/1e3)?k=Math.round(k):k=Math.ceil(k));const C=Math.max(Gf(_),Gf(E));T=Math.pow(10,J(l)?C:l),E=Math.round(E*T)/T,w=Math.round(w*T)/T;let P=0;for(p&&(f&&E!==o?(n.push({value:o}),E<o&&P++,Yr(Math.round((E+P*_)*T)/T,o,Xh(o,S,t))&&P++):E<o&&P++);P<k;++P){const L=Math.round((E+P*_)*T)/T;if(m&&L>a)break;n.push({value:L})}return m&&f&&w!==a?n.length&&Yr(n[n.length-1].value,a,Xh(a,S,t))?n[n.length-1].value=a:n.push({value:a}):(!m||w===a)&&n.push({value:w}),n}function Xh(t,e,{horizontal:n,minRotation:i}){const r=Lt(i),s=(n?Math.sin(r):Math.cos(r))||.001,o=.75*e*(""+t).length;return Math.min(e/s,o)}class Gu 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 J(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:r,max:s}=this;const o=l=>r=n?r:l,a=l=>s=i?s:l;if(e){const l=Kt(r),u=Kt(s);l<0&&u<0?a(0):l>0&&u>0&&o(0)}if(r===s){let l=s===0?1:Math.abs(s*.05);a(s+l),e||o(r-l)}this.min=r,this.max=s}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=e,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),n=n||11),n&&(r=Math.min(n,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const r={maxTicks:i,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},s=this._range||this,o=Hk(r,s);return e.bounds==="ticks"&&Kw(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,i=this.max;if(super.configure(),this.options.offset&&e.length){const r=(i-n)/Math.max(e.length-1,1)/2;n-=r,i+=r}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(e){return Aa(e,this.chart.options.locale,this.options.ticks.format)}}class Yu extends Gu{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Ie(e)?e:0,this.max=Ie(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,i=Lt(this.options.ticks.minRotation),r=(e?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}N(Yu,"id","linear"),N(Yu,"defaults",{ticks:{callback:ad.formatters.numeric}});function Xu(t){const e=t.ticks;if(e.display&&t.display){const n=qe(e.backdropPadding);return U(e.font&&e.font.size,Ce.font.size)+n.height}return 0}function Wk(t,e,n){return n=ve(n)?n:[n],{w:hS(t,e.string,n),h:n.length*e.lineHeight}}function Kh(t,e,n,i,r){return t===i||t===r?{start:e-n/2,end:e+n/2}:t<i||t>r?{start:e-n,end:e}:{start:e,end:e+n}}function Uk(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),i=[],r=[],s=t._pointLabels.length,o=t.options.pointLabels,a=o.centerPointLabels?te/s:0;for(let l=0;l<s;l++){const u=o.setContext(t.getPointLabelContext(l));r[l]=u.padding;const c=t.getPointPosition(l,t.drawingArea+r[l],a),d=Oe(u.font),f=Wk(t.ctx,d,t._pointLabels[l]);i[l]=f;const h=Ye(t.getIndexAngle(l)+a),g=Math.round(id(h)),v=Kh(g,c.x,f.w,0,180),b=Kh(g,c.y,f.h,90,270);Gk(n,e,h,v,b)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=Kk(t,i,r)}function Gk(t,e,n,i,r){const s=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let a=0,l=0;i.start<e.l?(a=(e.l-i.start)/s,t.l=Math.min(t.l,e.l-a)):i.end>e.r&&(a=(i.end-e.r)/s,t.r=Math.max(t.r,e.r+a)),r.start<e.t?(l=(e.t-r.start)/o,t.t=Math.min(t.t,e.t-l)):r.end>e.b&&(l=(r.end-e.b)/o,t.b=Math.max(t.b,e.b+l))}function Yk(t,e,n){const i=t.drawingArea,{extra:r,additionalAngle:s,padding:o,size:a}=n,l=t.getPointPosition(e,i+r+o,s),u=Math.round(id(Ye(l.angle+Te))),c=Jk(l.y,a.h,u),d=Qk(u),f=qk(l.x,a.w,d);return{visible:!0,x:l.x,y:c,textAlign:d,left:f,top:c,right:f+a.w,bottom:c+a.h}}function Xk(t,e){if(!e)return!0;const{left:n,top:i,right:r,bottom:s}=t;return!(ln({x:n,y:i},e)||ln({x:n,y:s},e)||ln({x:r,y:i},e)||ln({x:r,y:s},e))}function Kk(t,e,n){const i=[],r=t._pointLabels.length,s=t.options,{centerPointLabels:o,display:a}=s.pointLabels,l={extra:Xu(s)/2,additionalAngle:o?te/r:0};let u;for(let c=0;c<r;c++){l.padding=n[c],l.size=e[c];const d=Yk(t,c,l);i.push(d),a==="auto"&&(d.visible=Xk(d,u),d.visible&&(u=d))}return i}function Qk(t){return t===0||t===180?"center":t<180?"left":"right"}function qk(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function Jk(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function Zk(t,e,n){const{left:i,top:r,right:s,bottom:o}=n,{backdropColor:a}=e;if(!J(a)){const l=ui(e.borderRadius),u=qe(e.backdropPadding);t.fillStyle=a;const c=i-u.left,d=r-u.top,f=s-i+u.width,h=o-r+u.height;Object.values(l).some(g=>g!==0)?(t.beginPath(),xs(t,{x:c,y:d,w:f,h,radius:l}),t.fill()):t.fillRect(c,d,f,h)}}function eC(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let r=e-1;r>=0;r--){const s=t._pointLabelItems[r];if(!s.visible)continue;const o=i.setContext(t.getPointLabelContext(r));Zk(n,o,s);const a=Oe(o.font),{x:l,y:u,textAlign:c}=s;vi(n,t._pointLabels[r],l,u+a.lineHeight/2,a,{color:o.color,textAlign:c,textBaseline:"middle"})}}function Fv(t,e,n,i){const{ctx:r}=t;if(n)r.arc(t.xCenter,t.yCenter,e,0,fe);else{let s=t.getPointPosition(0,e);r.moveTo(s.x,s.y);for(let o=1;o<i;o++)s=t.getPointPosition(o,e),r.lineTo(s.x,s.y)}}function tC(t,e,n,i,r){const s=t.ctx,o=e.circular,{color:a,lineWidth:l}=e;!o&&!i||!a||!l||n<0||(s.save(),s.strokeStyle=a,s.lineWidth=l,s.setLineDash(r.dash||[]),s.lineDashOffset=r.dashOffset,s.beginPath(),Fv(t,n,o,i),s.closePath(),s.stroke(),s.restore())}function nC(t,e,n){return Kn(t,{label:n,index:e,type:"pointLabel"})}class Ar extends Gu{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=qe(Xu(this.options)/2),n=this.width=this.maxWidth-e.width,i=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+i/2+e.top),this.drawingArea=Math.floor(Math.min(n,i)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=Ie(e)&&!isNaN(e)?e:0,this.max=Ie(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Xu(this.options))}generateTickLabels(e){Gu.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,i)=>{const r=le(this.options.pointLabels.callback,[n,i],this);return r||r===0?r:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const e=this.options;e.display&&e.pointLabels.display?Uk(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,i,r){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,i,r))}getIndexAngle(e){const n=fe/(this._pointLabels.length||1),i=this.options.startAngle||0;return Ye(e*n+Lt(i))}getDistanceFromCenterForValue(e){if(J(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(J(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 i=n[e];return nC(this.getContext(),e,i)}}getPointPosition(e,n,i=0){const r=this.getIndexAngle(e)-Te+i;return{x:Math.cos(r)*n+this.xCenter,y:Math.sin(r)*n+this.yCenter,angle:r}}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:i,right:r,bottom:s}=this._pointLabelItems[e];return{left:n,top:i,right:r,bottom:s}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const i=this.ctx;i.save(),i.beginPath(),Fv(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),i.closePath(),i.fillStyle=e,i.fill(),i.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:i,grid:r,border:s}=n,o=this._pointLabels.length;let a,l,u;if(n.pointLabels.display&&eC(this,o),r.display&&this.ticks.forEach((c,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(c.value);const f=this.getContext(d),h=r.setContext(f),g=s.setContext(f);tC(this,h,l,o,g)}}),i.display){for(e.save(),a=o-1;a>=0;a--){const c=i.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:f}=c;!f||!d||(e.lineWidth=f,e.strokeStyle=d,e.setLineDash(c.borderDash),e.lineDashOffset=c.borderDashOffset,l=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),u=this.getPointPosition(a,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(u.x,u.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const r=this.getIndexAngle(0);let s,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const u=i.setContext(this.getContext(l)),c=Oe(u.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){e.font=c.string,o=e.measureText(a.label).width,e.fillStyle=u.backdropColor;const d=qe(u.backdropPadding);e.fillRect(-o/2-d.left,-s-c.size/2-d.top,o+d.width,c.size+d.height)}vi(e,a.label,0,-s,c,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),e.restore()}drawTitle(){}}N(Ar,"id","radialLinear"),N(Ar,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ad.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),N(Ar,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),N(Ar,"descriptors",{angleLines:{_fallback:"grid"}});const Va={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}},ot=Object.keys(Va);function Qh(t,e){return t-e}function qh(t,e){if(J(e))return null;const n=t._adapter,{parser:i,round:r,isoWeekday:s}=t._parseOpts;let o=e;return typeof i=="function"&&(o=i(o)),Ie(o)||(o=typeof i=="string"?n.parse(o,i):n.parse(o)),o===null?null:(r&&(o=r==="week"&&(ir(s)||s===!0)?n.startOf(o,"isoWeek",s):n.startOf(o,r)),+o)}function Jh(t,e,n,i){const r=ot.length;for(let s=ot.indexOf(t);s<r-1;++s){const o=Va[ot[s]],a=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(a*o.size))<=i)return ot[s]}return ot[r-1]}function iC(t,e,n,i,r){for(let s=ot.length-1;s>=ot.indexOf(n);s--){const o=ot[s];if(Va[o].common&&t._adapter.diff(r,i,o)>=e-1)return o}return ot[n?ot.indexOf(n):0]}function rC(t){for(let e=ot.indexOf(t)+1,n=ot.length;e<n;++e)if(Va[ot[e]].common)return ot[e]}function Zh(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:i,hi:r}=rd(n,e),s=n[i]>=e?n[i]:n[r];t[s]=!0}}function sC(t,e,n,i){const r=t._adapter,s=+r.startOf(e[0].value,i),o=e[e.length-1].value;let a,l;for(a=s;a<=o;a=+r.add(a,1,i))l=n[a],l>=0&&(e[l].major=!0);return e}function ep(t,e,n){const i=[],r={},s=e.length;let o,a;for(o=0;o<s;++o)a=e[o],r[a]=o,i.push({value:a,major:!1});return s===0||!n?i:sC(t,i,r,n)}class pa 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 i=e.time||(e.time={}),r=this._adapter=new M_._date(e.adapters.date);r.init(n),Gr(i.displayFormats,r.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:qh(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,i=e.time.unit||"day";let{min:r,max:s,minDefined:o,maxDefined:a}=this.getUserBounds();function l(u){!o&&!isNaN(u.min)&&(r=Math.min(r,u.min)),!a&&!isNaN(u.max)&&(s=Math.max(s,u.max))}(!o||!a)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),r=Ie(r)&&!isNaN(r)?r:+n.startOf(Date.now(),i),s=Ie(s)&&!isNaN(s)?s:+n.endOf(Date.now(),i)+1,this.min=Math.min(r,s-1),this.max=Math.max(r+1,s)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],i=e[e.length-1]),{min:n,max:i}}buildTicks(){const e=this.options,n=e.time,i=e.ticks,r=i.source==="labels"?this.getLabelTimestamps():this._generate();
vendor: 5,495 bytes, line 82
82e.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const s=this.min,o=this.max,a=Zw(r,s,o);return this._unit=n.unit||(i.autoSkip?Jh(n.minUnit,this.min,this.max,this._getLabelCapacity(s)):iC(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:rC(this._unit),this.initOffsets(r),e.reverse&&a.reverse(),ep(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,i=0,r,s;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),e.length===1?n=1-r:n=(this.getDecimalForValue(e[1])-r)/2,s=this.getDecimalForValue(e[e.length-1]),e.length===1?i=s:i=(s-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=Ke(n,0,o),i=Ke(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,n=this.min,i=this.max,r=this.options,s=r.time,o=s.unit||Jh(s.minUnit,n,i,this._getLabelCapacity(n)),a=U(r.ticks.stepSize,1),l=o==="week"?s.isoWeekday:!1,u=ir(l)||l===!0,c={};let d=n,f,h;if(u&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,u?"day":o),e.diff(i,n,o)>1e5*a)throw new Error(n+" and "+i+" are too far apart with stepSize of "+a+" "+o);const g=r.ticks.source==="data"&&this.getDataTimestamps();for(f=d,h=0;f<i;f=+e.add(f,a,o),h++)Zh(c,f,g);return(f===i||r.bounds==="ticks"||h===1)&&Zh(c,f,g),Object.keys(c).sort(Qh).map(v=>+v)}getLabelForValue(e){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(e,i.tooltipFormat):n.format(e,i.displayFormats.datetime)}format(e,n){const r=this.options.time.displayFormats,s=this._unit,o=n||r[s];return this._adapter.format(e,o)}_tickFormatFunction(e,n,i,r){const s=this.options,o=s.ticks.callback;if(o)return le(o,[e,n,i],this);const a=s.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&a[l],d=u&&a[u],f=i[n],h=u&&d&&f&&f.major;return this._adapter.format(e,r||(h?d:c))}generateTickLabels(e){let n,i,r;for(n=0,i=e.length;n<i;++n)r=e[n],r.label=this._tickFormatFunction(r.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,i=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,i=this.ctx.measureText(e).width,r=Lt(this.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(r),o=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:i*s+a*o,h:i*o+a*s}}_getLabelCapacity(e){const n=this.options.time,i=n.displayFormats,r=i[n.unit]||i.millisecond,s=this._tickFormatFunction(e,0,ep(this,[e],this._majorUnit),r),o=this._getLabelSize(s),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let e=this._cache.data||[],n,i;if(e.length)return e;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(n=0,i=r.length;n<i;++n)e=e.concat(r[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,i;if(e.length)return e;const r=this.getLabels();for(n=0,i=r.length;n<i;++n)e.push(qh(this,r[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return ev(e.sort(Qh))}}N(pa,"id","time"),N(pa,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function oo(t,e,n){let i=0,r=t.length-1,s,o,a,l;n?(e>=t[i].pos&&e<=t[r].pos&&({lo:i,hi:r}=oi(t,"pos",e)),{pos:s,time:a}=t[i],{pos:o,time:l}=t[r]):(e>=t[i].time&&e<=t[r].time&&({lo:i,hi:r}=oi(t,"time",e)),{time:s,pos:a}=t[i],{time:o,pos:l}=t[r]);const u=o-s;return u?a+(l-a)*(e-s)/u:a}class tp extends pa{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=oo(n,this.min),this._tableRange=oo(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:i}=this,r=[],s=[];let o,a,l,u,c;for(o=0,a=e.length;o<a;++o)u=e[o],u>=n&&u<=i&&r.push(u);if(r.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(o=0,a=r.length;o<a;++o)c=r[o+1],l=r[o-1],u=r[o],Math.round((c+l)/2)!==u&&s.push({time:u,pos:o/(a-1)});return s}_generate(){const e=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(e)||!i.length)&&i.splice(0,0,e),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((r,s)=>r-s)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?e=this.normalize(n.concat(i)):e=n.length?n:i,e=this._cache.all=e,e}getDecimalForValue(e){return(oo(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return oo(this._table,i*this._tableRange+this._minPos,!0)}}N(tp,"id","timeseries"),N(tp,"defaults",pa.defaults);Sn.register(Uu,Yu,Do,Mn,jo,jr,Ar,Lk,Fk,Mk,_k,To,Co,Fu,$i,Po,Mo,Ro,Eo);M.createContext();function np(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function gd(t={},e={}){const n=["__proto__","constructor","prototype"];Object.keys(e).filter(i=>
vendor: 36,734 bytes, line 82
82n.indexOf(i)<0).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:np(e[i])&&np(t[i])&&Object.keys(e[i]).length>0&&gd(t[i],e[i])})}const Bv={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function wi(){const t=typeof document<"u"?document:{};return gd(t,Bv),t}const oC={document:Bv,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function nt(){const t=typeof window<"u"?window:{};return gd(t,oC),t}function aC(t=""){return t.trim().split(" ").filter(e=>!!e.trim())}function lC(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})}function $v(t,e=0){return setTimeout(t,e)}function ga(){return Date.now()}function uC(t){const e=nt();let n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}function cC(t,e="x"){const n=nt();let i,r,s;const o=uC(t);return n.WebKitCSSMatrix?(r=o.transform||o.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(r==="none"?"":r)):(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=s.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?r=s.m41:i.length===16?r=parseFloat(i[12]):r=parseFloat(i[4])),e==="y"&&(n.WebKitCSSMatrix?r=s.m42:i.length===16?r=parseFloat(i[13]):r=parseFloat(i[5])),r||0}function ao(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function dC(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function ft(...t){const e=Object(t[0]),n=["__proto__","constructor","prototype"];for(let i=1;i<t.length;i+=1){const r=t[i];if(r!=null&&!dC(r)){const s=Object.keys(Object(r)).filter(o=>n.indexOf(o)<0);for(let o=0,a=s.length;o<a;o+=1){const l=s[o],u=Object.getOwnPropertyDescriptor(r,l);u!==void 0&&u.enumerable&&(ao(e[l])&&ao(r[l])?r[l].__swiper__?e[l]=r[l]:ft(e[l],r[l]):!ao(e[l])&&ao(r[l])?(e[l]={},r[l].__swiper__?e[l]=r[l]:ft(e[l],r[l])):e[l]=r[l])}}}return e}function lo(t,e,n){t.style.setProperty(e,n)}function Vv({swiper:t,targetPosition:e,side:n}){const i=nt(),r=-t.translate;let s=null,o;const a=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const l=e>r?"next":"prev",u=(d,f)=>l==="next"&&d>=f||l==="prev"&&d<=f,c=()=>{o=new Date().getTime(),s===null&&(s=o);const d=Math.max(Math.min((o-s)/a,1),0),f=.5-Math.cos(d*Math.PI)/2;let h=r+f*(e-r);if(u(h,e)&&(h=e),t.wrapperEl.scrollTo({[n]:h}),u(h,e)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[n]:h})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(c)};c()}function un(t,e=""){const n=nt(),i=[...t.children];return n.HTMLSlotElement&&t instanceof HTMLSlotElement&&i.push(...t.assignedElements()),e?i.filter(r=>r.matches(e)):i}function fC(t,e){const n=[e];for(;n.length>0;){const i=n.shift();if(t===i)return!0;n.push(...i.children,...i.shadowRoot?i.shadowRoot.children:[],...i.assignedElements?i.assignedElements():[])}}function hC(t,e){const n=nt();let i=e.contains(t);return!i&&n.HTMLSlotElement&&e instanceof HTMLSlotElement&&(i=[...e.assignedElements()].includes(t),i||(i=fC(t,e))),i}function ma(t){try{console.warn(t);return}catch{}}function Ku(t,e=[]){const n=document.createElement(t);return n.classList.add(...Array.isArray(e)?e:aC(e)),n}function pC(t,e){const n=[];for(;t.previousElementSibling;){const i=t.previousElementSibling;e?i.matches(e)&&n.push(i):n.push(i),t=i}return n}function gC(t,e){const n=[];for(;t.nextElementSibling;){const i=t.nextElementSibling;e?i.matches(e)&&n.push(i):n.push(i),t=i}return n}function Ln(t,e){return nt().getComputedStyle(t,null).getPropertyValue(e)}function ip(t){let e=t,n;if(e){for(n=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(n+=1);return n}}function mC(t,e){const n=[];let i=t.parentElement;for(;i;)n.push(i),i=i.parentElement;return n}function rp(t,e,n){const i=nt();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}function sp(t,e=""){typeof trustedTypes<"u"?t.innerHTML=trustedTypes.createPolicy("html",{createHTML:n=>n}).createHTML(e):t.innerHTML=e}let Dl;function vC(){const t=nt(),e=wi();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Hv(){return Dl||(Dl=vC()),Dl}let jl;function yC({userAgent:t}={}){const e=Hv(),n=nt(),i=n.navigator.platform,r=t||n.navigator.userAgent,s={ios:!1,android:!1},o=n.screen.width,a=n.screen.height,l=r.match(/(Android);?[\s\/]+([\d.]+)?/);let u=r.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const c=r.match(/(iPod)(.*OS\s([\d_]+))?/),d=!u&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=i==="Win32";let h=i==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&h&&e.touch&&g.indexOf(`${o}x${a}`)>=0&&(u=r.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),h=!1),l&&!f&&(s.os="android",s.android=!0),(u||d||c)&&(s.os="ios",s.ios=!0),s}function Wv(t={}){return jl||(jl=yC(t)),jl}let Nl;function xC(){const t=nt(),e=Wv();let n=!1;function i(){const a=t.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(i()){const a=String(t.navigator.userAgent);if(a.includes("Version/")){const[l,u]=a.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));n=l<16||l===16&&u<2}}const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),s=i(),o=s||r&&e.ios;return{isSafari:n||s,needPerspectiveFix:n,need3dFix:o,isWebView:r}}function Uv(){return Nl||(Nl=xC()),Nl}function bC({swiper:t,on:e,emit:n}){const i=nt();let r=null,s=null;const o=()=>{!t||t.destroyed||!t.initialized||(n("beforeResize"),n("resize"))},a=()=>{!t||t.destroyed||!t.initialized||(r=new ResizeObserver(c=>{s=i.requestAnimationFrame(()=>{const{width:d,height:f}=t;let h=d,g=f;c.forEach(({contentBoxSize:v,contentRect:b,target:p})=>{p&&p!==t.el||(h=b?b.width:(v[0]||v).inlineSize,g=b?b.height:(v[0]||v).blockSize)}),(h!==d||g!==f)&&o()})}),r.observe(t.el))},l=()=>{s&&i.cancelAnimationFrame(s),r&&r.unobserve&&t.el&&(r.unobserve(t.el),r=null)},u=()=>{!t||t.destroyed||!t.initialized||n("orientationchange")};e("init",()=>{if(t.params.resizeObserver&&typeof i.ResizeObserver<"u"){a();return}i.addEventListener("resize",o),i.addEventListener("orientationchange",u)}),e("destroy",()=>{l(),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",u)})}function wC({swiper:t,extendParams:e,on:n,emit:i}){const r=[],s=nt(),o=(u,c={})=>{const d=s.MutationObserver||s.WebkitMutationObserver,f=new d(h=>{if(t.__preventObserver__)return;if(h.length===1){i("observerUpdate",h[0]);return}const g=function(){i("observerUpdate",h[0])};s.requestAnimationFrame?s.requestAnimationFrame(g):s.setTimeout(g,0)});f.observe(u,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:t.isElement||(typeof c.childList>"u"?!0:c).childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),r.push(f)},a=()=>{if(t.params.observer){if(t.params.observeParents){const u=mC(t.hostEl);for(let c=0;c<u.length;c+=1)o(u[c])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}},l=()=>{r.forEach(u=>{u.disconnect()}),r.splice(0,r.length)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",a),n("destroy",l)}var SC={on(t,e,n){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;const r=n?"unshift":"push";return t.split(" ").forEach(s=>{i.eventsListeners[s]||(i.eventsListeners[s]=[]),i.eventsListeners[s][r](e)}),i},once(t,e,n){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;function r(...s){i.off(t,r),r.__emitterProxy&&delete r.__emitterProxy,e.apply(i,s)}return r.__emitterProxy=e,i.on(t,r,n)},onAny(t,e){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;const i=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[i](t),n},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||t.split(" ").forEach(i=>{typeof e>"u"?n.eventsListeners[i]=[]:n.eventsListeners[i]&&n.eventsListeners[i].forEach((r,s)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&n.eventsListeners[i].splice(s,1)})}),n},emit(...t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let n,i,r;return typeof t[0]=="string"||Array.isArray(t[0])?(n=t[0],i=t.slice(1,t.length),r=e):(n=t[0].events,i=t[0].data,r=t[0].context||e),i.unshift(r),(Array.isArray(n)?n:n.split(" ")).forEach(o=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(a=>{a.apply(r,[o,...i])}),e.eventsListeners&&e.eventsListeners[o]&&e.eventsListeners[o].forEach(a=>{a.apply(r,i)})}),e}};function _C(){const t=this;let e,n;const i=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=i.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?n=t.params.height:n=i.clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(Ln(i,"padding-left")||0,10)-parseInt(Ln(i,"padding-right")||0,10),n=n-parseInt(Ln(i,"padding-top")||0,10)-parseInt(Ln(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Object.assign(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function kC(){const t=this;function e(C,P){return parseFloat(C.getPropertyValue(t.getDirectionLabel(P))||0)}const n=t.params,{wrapperEl:i,slidesEl:r,rtlTranslate:s,wrongRTL:o}=t,a=t.virtual&&n.virtual.enabled,l=a?t.virtual.slides.length:t.slides.length,u=un(r,`.${t.params.slideClass}, swiper-slide`),c=a?t.virtual.slides.length:u.length;let d=[];const f=[],h=[];let g=n.slidesOffsetBefore;typeof g=="function"&&(g=n.slidesOffsetBefore.call(t));let v=n.slidesOffsetAfter;typeof v=="function"&&(v=n.slidesOffsetAfter.call(t));const b=t.snapGrid.length,p=t.slidesGrid.length,m=t.size-g-v;let x=n.spaceBetween,S=-g,_=0,T=0;if(typeof m>"u")return;typeof x=="string"&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*m:typeof x=="string"&&(x=parseFloat(x)),t.virtualSize=-x-g-v,u.forEach(C=>{s?C.style.marginLeft="":C.style.marginRight="",C.style.marginBottom="",C.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(lo(i,"--swiper-centered-offset-before",""),lo(i,"--swiper-centered-offset-after",""));const E=n.grid&&n.grid.rows>1&&t.grid;E?t.grid.initSlides(u):t.grid&&t.grid.unsetSlides();let w;const k=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(C=>typeof n.breakpoints[C].slidesPerView<"u").length>0;for(let C=0;C<c;C+=1){w=0;const P=u[C];if(!(P&&(E&&t.grid.updateSlide(C,P,u),Ln(P,"display")==="none"))){if(a&&n.slidesPerView==="auto")n.virtual.slidesPerViewAutoSlideSize&&(w=n.virtual.slidesPerViewAutoSlideSize),w&&P&&(n.roundLengths&&(w=Math.floor(w)),P.style[t.getDirectionLabel("width")]=`${w}px`);else if(n.slidesPerView==="auto"){k&&(P.style[t.getDirectionLabel("width")]="");const L=getComputedStyle(P),j=P.style.transform,H=P.style.webkitTransform;if(j&&(P.style.transform="none"),H&&(P.style.webkitTransform="none"),n.roundLengths)w=t.isHorizontal()?rp(P,"width"):rp(P,"height");else{const V=e(L,"width"),W=e(L,"padding-left"),z=e(L,"padding-right"),R=e(L,"margin-left"),O=e(L,"margin-right"),A=L.getPropertyValue("box-sizing");if(A&&A==="border-box")w=V+R+O;else{const{clientWidth:I,offsetWidth:$}=P;w=V+W+z+R+O+($-I)}}j&&(P.style.transform=j),H&&(P.style.webkitTransform=H),n.roundLengths&&(w=Math.floor(w))}else w=(m-(n.slidesPerView-1)*x)/n.slidesPerView,n.roundLengths&&(w=Math.floor(w)),P&&(P.style[t.getDirectionLabel("width")]=`${w}px`);P&&(P.swiperSlideSize=w),h.push(w),n.centeredSlides?(S=S+w/2+_/2+x,_===0&&C!==0&&(S=S-m/2-x),C===0&&(S=S-m/2-x),Math.abs(S)<1/1e3&&(S=0),n.roundLengths&&(S=Math.floor(S)),T%n.slidesPerGroup===0&&d.push(S),f.push(S)):(n.roundLengths&&(S=Math.floor(S)),(T-Math.min(t.params.slidesPerGroupSkip,T))%t.params.slidesPerGroup===0&&d.push(S),f.push(S),S=S+w+x),t.virtualSize+=w+x,_=w,T+=1}}if(t.virtualSize=Math.max(t.virtualSize,m)+v,s&&o&&(n.effect==="slide"||n.effect==="coverflow")&&(i.style.width=`${t.virtualSize+x}px`),n.setWrapperSize&&(i.style[t.getDirectionLabel("width")]=`${t.virtualSize+x}px`),E&&t.grid.updateWrapperSize(w,d),!n.centeredSlides){const C=[];for(let P=0;P<d.length;P+=1){let L=d[P];n.roundLengths&&(L=Math.floor(L)),d[P]<=t.virtualSize-m&&C.push(L)}d=C,Math.floor(t.virtualSize-m)-Math.floor(d[d.length-1])>1&&d.push(t.virtualSize-m)}if(a&&n.loop){const C=h[0]+x;if(n.slidesPerGroup>1){const P=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/n.slidesPerGroup),L=C*n.slidesPerGroup;for(let j=0;j<P;j+=1)d.push(d[d.length-1]+L)}for(let P=0;P<t.virtual.slidesBefore+t.virtual.slidesAfter;P+=1)n.slidesPerGroup===1&&d.push(d[d.length-1]+C),f.push(f[f.length-1]+C),t.virtualSize+=C}if(d.length===0&&(d=[0]),x!==0){const C=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");u.filter((P,L)=>!n.cssMode||n.loop?!0:L!==u.length-1).forEach(P=>{P.style[C]=`${x}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let C=0;h.forEach(L=>{C+=L+(x||0)}),C-=x;const P=C>m?C-m:0;d=d.map(L=>L<=0?-g:L>P?P+v:L)}if(n.centerInsufficientSlides){let C=0;h.forEach(L=>{C+=L+(x||0)}),C-=x;const P=(g||0)+(v||0);if(C+P<m){const L=(m-C-P)/2;d.forEach((j,H)=>{d[H]=j-L}),f.forEach((j,H)=>{f[H]=j+L})}}if(Object.assign(t,{slides:u,snapGrid:d,slidesGrid:f,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){lo(i,"--swiper-centered-offset-before",`${-d[0]}px`),lo(i,"--swiper-centered-offset-after",`${t.size/2-h[h.length-1]/2}px`);const C=-t.snapGrid[0],P=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(L=>L+C),t.slidesGrid=t.slidesGrid.map(L=>L+P)}if(c!==l&&t.emit("slidesLengthChange"),d.length!==b&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==p&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!a&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const C=`${n.containerModifierClass}backface-hidden`,P=t.el.classList.contains(C);c<=n.maxBackfaceHiddenSlides?P||t.el.classList.add(C):P&&t.el.classList.remove(C)}}function CC(t){const e=this,n=[],i=e.virtual&&e.params.virtual.enabled;let r=0,s;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=a=>i?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{n.push(a)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){const a=e.activeIndex+s;if(a>e.slides.length&&!i)break;n.push(o(a))}else n.push(o(e.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const a=n[s].offsetHeight;r=a>r?a:r}(r||r===0)&&(e.wrapperEl.style.height=`${r}px`)}function EC(){const t=this,e=t.slides,n=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=(t.isHorizontal()?e[i].offsetLeft:e[i].offsetTop)-n-t.cssOverflowAdjustment()}const op=(t,e,n)=>{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)};function TC(t=this&&this.translate||0){const e=this,n=e.params,{slides:i,rtlTranslate:r,snapGrid:s}=e;if(i.length===0)return;typeof i[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let o=-t;r&&(o=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l<i.length;l+=1){const u=i[l];let c=u.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset);const d=(o+(n.centeredSlides?e.minTranslate():0)-c)/(u.swiperSlideSize+a),f=(o-s[0]+(n.centeredSlides?e.minTranslate():0)-c)/(u.swiperSlideSize+a),h=-(o-c),g=h+e.slidesSizesGrid[l],v=h>=0&&h<=e.size-e.slidesSizesGrid[l],b=h>=0&&h<e.size-1||g>1&&g<=e.size||h<=0&&g>=e.size;b&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(l)),op(u,b,n.slideVisibleClass),op(u,v,n.slideFullyVisibleClass),u.progress=r?-d:d,u.originalProgress=r?-f:f}}function PC(t){const e=this;if(typeof t>"u"){const c=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*c||0}const n=e.params,i=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:s,isEnd:o,progressLoop:a}=e;const l=s,u=o;if(i===0)r=0,s=!0,o=!0;else{r=(t-e.minTranslate())/i;const c=Math.abs(t-e.minTranslate())<1,d=Math.abs(t-e.maxTranslate())<1;s=c||r<=0,o=d||r>=1,c&&(r=0),d&&(r=1)}if(n.loop){const c=e.getSlideIndexByData(0),d=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[c],h=e.slidesGrid[d],g=e.slidesGrid[e.slidesGrid.length-1],v=Math.abs(t);v>=f?a=(v-f)/g:a=(v+g-h)/g,a>1&&(a-=1)}Object.assign(e,{progress:r,progressLoop:a,isBeginning:s,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),s&&!l&&e.emit("reachBeginning toEdge"),o&&!u&&e.emit("reachEnd toEdge"),(l&&!s||u&&!o)&&e.emit("fromEdge"),e.emit("progress",r)}const Al=(t,e,n)=>{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)};function MC(){const t=this,{slides:e,params:n,slidesEl:i,activeIndex:r}=t,s=t.virtual&&n.virtual.enabled,o=t.grid&&n.grid&&n.grid.rows>1,a=d=>un(i,`.${n.slideClass}${d}, swiper-slide${d}`)[0];let l,u,c;if(s)if(n.loop){let d=r-t.virtual.slidesBefore;d<0&&(d=t.virtual.slides.length+d),d>=t.virtual.slides.length&&(d-=t.virtual.slides.length),l=a(`[data-swiper-slide-index="${d}"]`)}else l=a(`[data-swiper-slide-index="${r}"]`);else o?(l=e.find(d=>d.column===r),c=e.find(d=>d.column===r+1),u=e.find(d=>d.column===r-1)):l=e[r];l&&(o||(c=gC(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c&&(c=e[0]),u=pC(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(d=>{Al(d,d===l,n.slideActiveClass),Al(d,d===c,n.slideNextClass),Al(d,d===u,n.slidePrevClass)}),t.emitSlidesClasses()}const No=(t,e)=>{if(!t||t.destroyed||!t.params)return;const n=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,i=e.closest(n());if(i){let r=i.querySelector(`.${t.params.lazyPreloaderClass}`);!r&&t.isElement&&(i.shadowRoot?r=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(r=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},Il=(t,e)=>{if(!t.slides[e])return;const n=t.slides[e].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Qu=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const n=t.slides.length;if(!n||!e||e<0)return;e=Math.min(e,n);const i=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),r=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=r,a=[o-e];a.push(...Array.from({length:e}).map((l,u)=>o+i+u)),t.slides.forEach((l,u)=>{a.includes(l.column)&&Il(t,u)});return}const s=r+i-1;if(t.params.rewind||t.params.loop)for(let o=r-e;o<=s+e;o+=1){const a=(o%n+n)%n;(a<r||a>s)&&Il(t,a)}else for(let o=Math.max(r-e,0);o<=Math.min(s+e,n-1);o+=1)o!==r&&(o>s||o<r)&&Il(t,o)};function RC(t){const{slidesGrid:e,params:n}=t,i=t.rtlTranslate?t.translate:-t.translate;let r;for(let s=0;s<e.length;s+=1)typeof e[s+1]<"u"?i>=e[s]&&i<e[s+1]-(e[s+1]-e[s])/2?r=s:i>=e[s]&&i<e[s+1]&&(r=s+1):i>=e[s]&&(r=s);return n.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function LC(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{snapGrid:i,params:r,activeIndex:s,realIndex:o,snapIndex:a}=e;let l=t,u;const c=h=>{let g=h-e.virtual.slidesBefore;return g<0&&(g=e.virtual.slides.length+g),g>=e.virtual.slides.length&&(g-=e.virtual.slides.length),g};if(typeof l>"u"&&(l=RC(e)),i.indexOf(n)>=0)u=i.indexOf(n);else{const h=Math.min(r.slidesPerGroupSkip,l);u=h+Math.floor((l-h)/r.slidesPerGroup)}if(u>=i.length&&(u=i.length-1),l===s&&!e.params.loop){u!==a&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(l===s&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=c(l);return}const d=e.grid&&r.grid&&r.grid.rows>1;let f;if(e.virtual&&r.virtual.enabled&&r.loop)f=c(l);else if(d){const h=e.slides.find(v=>v.column===l);let g=parseInt(h.getAttribute("data-swiper-slide-index"),10);Number.isNaN(g)&&(g=Math.max(e.slides.indexOf(h),0)),f=Math.floor(g/r.grid.rows)}else if(e.slides[l]){const h=e.slides[l].getAttribute("data-swiper-slide-index");h?f=parseInt(h,10):f=l}else f=l;Object.assign(e,{previousSnapIndex:a,snapIndex:u,previousRealIndex:o,realIndex:f,previousIndex:s,activeIndex:l}),e.initialized&&Qu(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(o!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function OC(t,e){const n=this,i=n.params;let r=t.closest(`.${i.slideClass}, swiper-slide`);!r&&n.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(a=>{!r&&a.matches&&a.matches(`.${i.slideClass}, swiper-slide`)&&(r=a)});let s=!1,o;if(r){for(let a=0;a<n.slides.length;a+=1)if(n.slides[a]===r){s=!0,o=a;break}}if(r&&s)n.clickedSlide=r,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}i.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var DC={updateSize:_C,updateSlides:kC,updateAutoHeight:CC,updateSlidesOffset:EC,updateSlidesProgress:TC,updateProgress:PC,updateSlidesClasses:MC,updateActiveIndex:LC,updateClickedSlide:OC};function jC(t=this.isHorizontal()?"x":"y"){const e=this,{params:n,rtlTranslate:i,translate:r,wrapperEl:s}=e;if(n.virtualTranslate)return i?-r:r;if(n.cssMode)return r;let o=cC(s,t);return o+=e.cssOverflowAdjustment(),i&&(o=-o),o||0}function NC(t,e){const n=this,{rtlTranslate:i,params:r,wrapperEl:s,progress:o}=n;let a=0,l=0;const u=0;n.isHorizontal()?a=i?-t:t:l=t,r.roundLengths&&(a=Math.floor(a),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?a:l,r.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-a:-l:r.virtualTranslate||(n.isHorizontal()?a-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),s.style.transform=`translate3d(${a}px, ${l}px, ${u}px)`);let c;const d=n.maxTranslate()-n.minTranslate();d===0?c=0:c=(t-n.minTranslate())/d,c!==o&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)}function AC(){return-this.snapGrid[0]}function IC(){return-this.snapGrid[this.snapGrid.length-1]}function zC(t=0,e=this.params.speed,n=!0,i=!0,r){const s=this,{params:o,wrapperEl:a}=s;if(s.animating&&o.preventInteractionOnTransition)return!1;const l=s.minTranslate(),u=s.maxTranslate();let c;if(i&&t>l?c=l:i&&t<u?c=u:c=t,s.updateProgress(c),o.cssMode){const d=s.isHorizontal();if(e===0)a[d?"scrollLeft":"scrollTop"]=-c;else{if(!s.support.smoothScroll)return Vv({swiper:s,targetPosition:-c,side:d?"left":"top"}),!0;a.scrollTo({[d?"left":"top"]:-c,behavior:"smooth"})}return!0}return e===0?(s.setTransition(0),s.setTranslate(c),n&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(c),n&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(f){!s||s.destroyed||f.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,s.animating=!1,n&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var FC={getTranslate:jC,setTranslate:NC,minTranslate:AC,maxTranslate:IC,translateTo:zC};function BC(t,e){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${t}ms`,n.wrapperEl.style.transitionDelay=t===0?"0ms":""),n.emit("setTransition",t,e)}function Gv({swiper:t,runCallbacks:e,direction:n,step:i}){const{activeIndex:r,previousIndex:s}=t;let o=n;o||(r>s?o="next":r<s?o="prev":o="reset"),t.emit(`transition${i}`),e&&o==="reset"?t.emit(`slideResetTransition${i}`):e&&r!==s&&(t.emit(`slideChangeTransition${i}`),o==="next"?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`))}function $C(t=!0,e){const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),Gv({swiper:n,runCallbacks:t,direction:e,step:"Start"}))}function VC(t=!0,e){const n=this,{params:i}=n;n.animating=!1,!i.cssMode&&(n.setTransition(0),Gv({swiper:n,runCallbacks:t,direction:e,step:"End"}))}var HC={setTransition:BC,transitionStart:$C,transitionEnd:VC};function WC(t=0,e,n=!0,i,r){typeof t=="string"&&(t=parseInt(t,10));const s=this;let o=t;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:u,previousIndex:c,activeIndex:d,rtlTranslate:f,wrapperEl:h,enabled:g}=s;if(!g&&!i&&!r||s.destroyed||s.animating&&a.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=s.params.speed);const v=Math.min(s.params.slidesPerGroupSkip,o);let b=v+Math.floor((o-v)/s.params.slidesPerGroup);b>=l.length&&(b=l.length-1);const p=-l[b];if(a.normalizeSlideIndex)for(let E=0;E<u.length;E+=1){const w=-Math.floor(p*100),k=Math.floor(u[E]*100),C=Math.floor(u[E+1]*100);typeof u[E+1]<"u"?w>=k&&w<C-(C-k)/2?o=E:w>=k&&w<C&&(o=E+1):w>=k&&(o=E)}if(s.initialized&&o!==d&&(!s.allowSlideNext&&(f?p>s.translate&&p>s.minTranslate():p<s.translate&&p<s.minTranslate())||!s.allowSlidePrev&&p>s.translate&&p>s.maxTranslate()&&(d||0)!==o))return!1;o!==(c||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(p);let m;o>d?m="next":o<d?m="prev":m="reset";const x=s.virtual&&s.params.virtual.enabled;if(!(x&&r)&&(f&&-p===s.translate||!f&&p===s.translate))return s.updateActiveIndex(o),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),a.effect!=="slide"&&s.setTranslate(p),m!=="reset"&&(s.transitionStart(n,m),s.transitionEnd(n,m)),!1;if(a.cssMode){const E=s.isHorizontal(),w=f?p:-p;if(e===0)x&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),x&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[E?"scrollLeft":"scrollTop"]=w})):h[E?"scrollLeft":"scrollTop"]=w,x&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return Vv({swiper:s,targetPosition:w,side:E?"left":"top"}),!0;h.scrollTo({[E?"left":"top"]:w,behavior:"smooth"})}return!0}const T=Uv().isSafari;return x&&!r&&T&&s.isElement&&s.virtual.update(!1,!1,o),s.setTransition(e),s.setTranslate(p),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,i),s.transitionStart(n,m),e===0?s.transitionEnd(n,m):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(w){!s||s.destroyed||w.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,m))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function UC(t=0,e,n=!0,i){typeof t=="string"&&(t=parseInt(t,10));const r=this;if(r.destroyed)return;typeof e>"u"&&(e=r.params.speed);const s=r.grid&&r.params.grid&&r.params.grid.rows>1;let o=t;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)o=o+r.virtual.slidesBefore;else{let a;if(s){const v=o*r.params.grid.rows;a=r.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===v).column}else a=r.getSlideIndexByData(o);const l=s?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:u,slidesOffsetBefore:c,slidesOffsetAfter:d}=r.params,f=u||!!c||!!d;let h=r.params.slidesPerView;h==="auto"?h=r.slidesPerViewDynamic():(h=Math.ceil(parseFloat(r.params.slidesPerView,10)),f&&h%2===0&&(h=h+1));let g=l-a<h;if(f&&(g=g||a<Math.ceil(h/2)),i&&f&&r.params.slidesPerView!=="auto"&&!s&&(g=!1),g){const v=f?a<r.activeIndex?"prev":"next":a-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:v,slideTo:!0,activeSlideIndex:v==="next"?a+1:a-l+1,slideRealIndex:v==="next"?r.realIndex:void 0})}if(s){const v=o*r.params.grid.rows;o=r.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===v).column}else o=r.getSlideIndexByData(o)}return requestAnimationFrame(()=>{r.slideTo(o,e,n,i)}),r}function GC(t,e=!0,n){const i=this,{enabled:r,params:s,animating:o}=i;if(!r||i.destroyed)return i;typeof t>"u"&&(t=i.params.speed);let a=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<s.slidesPerGroupSkip?1:a,u=i.virtual&&s.virtual.enabled;if(s.loop){if(o&&!u&&s.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,t,e,n)}),!0}return s.rewind&&i.isEnd?i.slideTo(0,t,e,n):i.slideTo(i.activeIndex+l,t,e,n)}function YC(t,e=!0,n){const i=this,{params:r,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:u}=i;if(!l||i.destroyed)return i;typeof t>"u"&&(t=i.params.speed);const c=i.virtual&&r.virtual.enabled;if(r.loop){if(u&&!c&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}const d=a?i.translate:-i.translate;function f(m){return m<0?-Math.floor(Math.abs(m)):Math.floor(m)}const h=f(d),g=s.map(m=>f(m)),v=r.freeMode&&r.freeMode.enabled;let b=s[g.indexOf(h)-1];if(typeof b>"u"&&(r.cssMode||v)){let m;s.forEach((x,S)=>{h>=x&&(m=S)}),typeof m<"u"&&(b=v?s[m]:s[m>0?m-1:m])}let p=0;if(typeof b<"u"&&(p=o.indexOf(b),p<0&&(p=i.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(p=p-i.slidesPerViewDynamic("previous",!0)+1,p=Math.max(p,0))),r.rewind&&i.isBeginning){const m=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(m,t,e,n)}else if(r.loop&&i.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{i.slideTo(p,t,e,n)}),!0;return i.slideTo(p,t,e,n)}function XC(t,e=!0,n){const i=this;if(!i.destroyed)return typeof t>"u"&&(t=i.params.speed),i.slideTo(i.activeIndex,t,e,n)}function KC(t,e=!0,n,i=.5){const r=this;if(r.destroyed)return;typeof t>"u"&&(t=r.params.speed);let s=r.activeIndex;const o=Math.min(r.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[a]){const u=r.snapGrid[a],c=r.snapGrid[a+1];l-u>(c-u)*i&&(s+=r.params.slidesPerGroup)}else{const u=r.snapGrid[a-1],c=r.snapGrid[a];l-u<=(c-u)*i&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,t,e,n)}function QC(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:n}=t,i=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let r=t.getSlideIndexWhenGrid(t.clickedIndex),s;const o=t.isElement?"swiper-slide":`.${e.slideClass}`,a=t.grid&&t.params.grid&&t.params.grid.rows>1;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?t.slideToLoop(s):r>(a?(t.slides.length-i)/2-(t.params.grid.rows-1):t.slides.length-i)?(t.loopFix(),r=t.getSlideIndex(un(n,`${o}[data-swiper-slide-index="${s}"]`)[0]),$v(()=>{t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}var qC={slideTo:WC,slideToLoop:UC,slideNext:GC,slidePrev:YC,slideReset:XC,slideToClosest:KC,slideToClickedSlide:QC};function JC(t,e){const n=this,{params:i,slidesEl:r}=n;if(!i.loop||n.virtual&&n.params.virtual.enabled)return;const s=()=>{un(r,`.${i.slideClass}, swiper-slide`).forEach((g,v)=>{g.setAttribute("data-swiper-slide-index",v)})},o=()=>{const h=un(r,`.${i.slideBlankClass}`);h.forEach(g=>{g.remove()}),h.length>0&&(n.recalcSlides(),n.updateSlides())},a=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||a)&&o();const l=i.slidesPerGroup*(a?i.grid.rows:1),u=n.slides.length%l!==0,c=a&&n.slides.length%i.grid.rows!==0,d=h=>{for(let g=0;g<h;g+=1){const v=n.isElement?Ku("swiper-slide",[i.slideBlankClass]):Ku("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(v)}};if(u){if(i.loopAddBlankSlides){const h=l-n.slides.length%l;d(h),n.recalcSlides(),n.updateSlides()}else ma("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(c){if(i.loopAddBlankSlides){const h=i.grid.rows-n.slides.length%i.grid.rows;d(h),n.recalcSlides(),n.updateSlides()}else ma("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();const f=i.centeredSlides||!!i.slidesOffsetBefore||!!i.slidesOffsetAfter;n.loopFix({slideRealIndex:t,direction:f?void 0:"next",initial:e})}function ZC({slideRealIndex:t,slideTo:e=!0,direction:n,setTranslate:i,activeSlideIndex:r,initial:s,byController:o,byMousewheel:a}={}){const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:u,allowSlidePrev:c,allowSlideNext:d,slidesEl:f,params:h}=l,{centeredSlides:g,slidesOffsetBefore:v,slidesOffsetAfter:b,initialSlide:p}=h,m=g||!!v||!!b;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&h.virtual.enabled){e&&(!m&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):m&&l.snapIndex<h.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0)),l.allowSlidePrev=c,l.allowSlideNext=d,l.emit("loopFix");return}let x=h.slidesPerView;x==="auto"?x=l.slidesPerViewDynamic():(x=Math.ceil(parseFloat(h.slidesPerView,10)),m&&x%2===0&&(x=x+1));const S=h.slidesPerGroupAuto?x:h.slidesPerGroup;let _=m?Math.max(S,Math.ceil(x/2)):S;_%S!==0&&(_+=S-_%S),_+=h.loopAdditionalSlides,l.loopedSlides=_;const T=l.grid&&h.grid&&h.grid.rows>1;u.length<x+_||l.params.effect==="cards"&&u.length<x+_*2?ma("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):T&&h.grid.fill==="row"&&ma("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const E=[],w=[],k=T?Math.ceil(u.length/h.grid.rows):u.length,C=s&&k-p<x&&!m;let P=C?p:l.activeIndex;typeof r>"u"?r=l.getSlideIndex(u.find(R=>R.classList.contains(h.slideActiveClass))):P=r;const L=n==="next"||!n,j=n==="prev"||!n;let H=0,V=0;const z=(T?u[r].column:r)+(m&&typeof i>"u"?-x/2+.5:0);if(z<_){H=Math.max(_-z,S);for(let R=0;R<_-z;R+=1){const O=R-Math.floor(R/k)*k;if(T){const A=k-O-1;for(let I=u.length-1;I>=0;I-=1)u[I].column===A&&E.push(I)}else E.push(k-O-1)}}else if(z+x>k-_){V=Math.max(z-(k-_*2),S),C&&(V=Math.max(V,x-k+p+1));for(let R=0;R<V;R+=1){const O=R-Math.floor(R/k)*k;T?u.forEach((A,I)=>{A.column===O&&w.push(I)}):w.push(O)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),l.params.effect==="cards"&&u.length<x+_*2&&(w.includes(r)&&w.splice(w.indexOf(r),1),E.includes(r)&&E.splice(E.indexOf(r),1)),j&&E.forEac
vendor: 15,104 bytes, line 82
82h(R=>{u[R].swiperLoopMoveDOM=!0,f.prepend(u[R]),u[R].swiperLoopMoveDOM=!1}),L&&w.forEach(R=>{u[R].swiperLoopMoveDOM=!0,f.append(u[R]),u[R].swiperLoopMoveDOM=!1}),l.recalcSlides(),h.slidesPerView==="auto"?l.updateSlides():T&&(E.length>0&&j||w.length>0&&L)&&l.slides.forEach((R,O)=>{l.grid.updateSlide(O,R,l.slides)}),h.watchSlidesProgress&&l.updateSlidesOffset(),e){if(E.length>0&&j){if(typeof t>"u"){const R=l.slidesGrid[P],A=l.slidesGrid[P+H]-R;a?l.setTranslate(l.translate-A):(l.slideTo(P+Math.ceil(H),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-A,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-A))}else if(i){const R=T?E.length/h.grid.rows:E.length;l.slideTo(l.activeIndex+R,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(w.length>0&&L)if(typeof t>"u"){const R=l.slidesGrid[P],A=l.slidesGrid[P-V]-R;a?l.setTranslate(l.translate-A):(l.slideTo(P-V,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-A,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-A))}else{const R=T?w.length/h.grid.rows:w.length;l.slideTo(l.activeIndex-R,0,!1,!0)}}if(l.allowSlidePrev=c,l.allowSlideNext=d,l.controller&&l.controller.control&&!o){const R={slideRealIndex:t,direction:n,setTranslate:i,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(O=>{!O.destroyed&&O.params.loop&&O.loopFix({...R,slideTo:O.params.slidesPerView===h.slidesPerView?e:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...R,slideTo:l.controller.control.params.slidesPerView===h.slidesPerView?e:!1})}l.emit("loopFix")}function eE(){const t=this,{params:e,slidesEl:n}=t;if(!e.loop||!n||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const i=[];t.slides.forEach(r=>{const s=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;i[s]=r}),t.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),i.forEach(r=>{n.append(r)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var tE={loopCreate:JC,loopFix:ZC,loopDestroy:eE};function nE(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function iE(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var rE={setGrabCursor:nE,unsetGrabCursor:iE};function sE(t,e=this){function n(i){if(!i||i===wi()||i===nt())return null;i.assignedSlot&&(i=i.assignedSlot);const r=i.closest(t);return!r&&!i.getRootNode?null:r||n(i.getRootNode().host)}return n(e)}function ap(t,e,n){const i=nt(),{params:r}=t,s=r.edgeSwipeDetection,o=r.edgeSwipeThreshold;return s&&(n<=o||n>=i.innerWidth-o)?s==="prevent"?(e.preventDefault(),!0):!1:!0}function oE(t){const e=this,n=wi();let i=t;i.originalEvent&&(i=i.originalEvent);const r=e.touchEventsData;if(i.type==="pointerdown"){if(r.pointerId!==null&&r.pointerId!==i.pointerId)return;r.pointerId=i.pointerId}else i.type==="touchstart"&&i.targetTouches.length===1&&(r.touchId=i.targetTouches[0].identifier);if(i.type==="touchstart"){ap(e,i,i.targetTouches[0].pageX);return}const{params:s,touches:o,enabled:a}=e;if(!a||!s.simulateTouch&&i.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let l=i.target;if(s.touchEventsTarget==="wrapper"&&!hC(l,e.wrapperEl)||"which"in i&&i.which===3||"button"in i&&i.button>0||r.isTouched&&r.isMoved)return;const u=!!s.noSwipingClass&&s.noSwipingClass!=="",c=i.composedPath?i.composedPath():i.path;u&&i.target&&i.target.shadowRoot&&c&&(l=c[0]);const d=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,f=!!(i.target&&i.target.shadowRoot);if(s.noSwiping&&(f?sE(d,l):l.closest(d))){e.allowClick=!0;return}if(s.swipeHandler&&!l.closest(s.swipeHandler))return;o.currentX=i.pageX,o.currentY=i.pageY;const h=o.currentX,g=o.currentY;if(!ap(e,i,h))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=h,o.startY=g,r.touchStartTime=ga(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1);let v=!0;l.matches(r.focusableElements)&&(v=!1,l.nodeName==="SELECT"&&(r.isTouched=!1)),n.activeElement&&n.activeElement.matches(r.focusableElements)&&n.activeElement!==l&&(i.pointerType==="mouse"||i.pointerType!=="mouse"&&!l.matches(r.focusableElements))&&n.activeElement.blur();const b=v&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||b)&&!l.isContentEditable&&i.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",i)}function aE(t){const e=wi(),n=this,i=n.touchEventsData,{params:r,touches:s,rtlTranslate:o,enabled:a}=n;if(!a||!r.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(i.touchId!==null||l.pointerId!==i.pointerId))return;let u;if(l.type==="touchmove"){if(u=[...l.changedTouches].find(_=>_.identifier===i.touchId),!u||u.identifier!==i.touchId)return}else u=l;if(!i.isTouched){i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=u.pageX,d=u.pageY;if(l.preventedByNestedSwiper){s.startX=c,s.startY=d;return}if(!n.allowTouchMove){l.target.matches(i.focusableElements)||(n.allowClick=!1),i.isTouched&&(Object.assign(s,{startX:c,startY:d,currentX:c,currentY:d}),i.touchStartTime=ga());return}if(r.touchReleaseOnEdges&&!r.loop)if(n.isVertical()){if(d<s.startY&&n.translate<=n.maxTranslate()||d>s.startY&&n.translate>=n.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else{if(o&&(c>s.startX&&-n.translate<=n.maxTranslate()||c<s.startX&&-n.translate>=n.minTranslate()))return;if(!o&&(c<s.startX&&n.translate<=n.maxTranslate()||c>s.startX&&n.translate>=n.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(i.focusableElements)&&e.activeElement!==l.target&&l.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&l.target===e.activeElement&&l.target.matches(i.focusableElements)){i.isMoved=!0,n.allowClick=!1;return}i.allowTouchCallbacks&&n.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=c,s.currentY=d;const f=s.currentX-s.startX,h=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(f**2+h**2)<n.params.threshold)return;if(typeof i.isScrolling>"u"){let _;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?i.isScrolling=!1:f*f+h*h>=25&&(_=Math.atan2(Math.abs(h),Math.abs(f))*180/Math.PI,i.isScrolling=n.isHorizontal()?_>r.touchAngle:90-_>r.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",l),typeof i.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(i.startMoving=!0),i.isScrolling||l.type==="touchmove"&&i.preventTouchMoveFromPointerMove){i.isTouched=!1;return}if(!i.startMoving)return;n.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation();let g=n.isHorizontal()?f:h,v=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;r.oneWayMovement&&(g=Math.abs(g)*(o?1:-1),v=Math.abs(v)*(o?1:-1)),s.diff=g,g*=r.touchRatio,o&&(g=-g,v=-v);const b=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=v>0?"prev":"next";const p=n.params.loop&&!r.cssMode,m=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!i.isMoved){if(p&&m&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const _=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(_)}i.allowMomentumBounce=!1,r.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}if(new Date().getTime(),r._loopSwapReset!==!1&&i.isMoved&&i.allowThresholdMove&&b!==n.touchesDirection&&p&&m&&Math.abs(g)>=1){Object.assign(s,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,i.startTranslate=i.currentTranslate;return}n.emit("sliderMove",l),i.isMoved=!0,i.currentTranslate=g+i.startTranslate;let x=!0,S=r.resistanceRatio;if(r.touchReleaseOnEdges&&(S=0),g>0?(p&&m&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(r.slidesPerView!=="auto"&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(x=!1,r.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+g)**S))):g<0&&(p&&m&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(r.slidesPerView!=="auto"&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(r.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(x=!1,r.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-g)**S))),x&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(i.currentTranslate=i.startTranslate),r.threshold>0)if(Math.abs(g)>r.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{i.currentTranslate=i.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&n.freeMode||r.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function lE(t){const e=this,n=e.touchEventsData;let i=t;i.originalEvent&&(i=i.originalEvent);let r;if(i.type==="touchend"||i.type==="touchcancel"){if(r=[...i.changedTouches].find(_=>_.identifier===n.touchId),!r||r.identifier!==n.touchId)return}else{if(n.touchId!==null||i.pointerId!==n.pointerId)return;r=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&!(["pointercancel","contextmenu"].includes(i.type)&&(e.browser.isSafari||e.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:l,slidesGrid:u,enabled:c}=e;if(!c||!o.simulateTouch&&i.pointerType==="mouse")return;if(n.allowTouchCallbacks&&e.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&o.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}o.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const d=ga(),f=d-n.touchStartTime;if(e.allowClick){const _=i.path||i.composedPath&&i.composedPath();e.updateClickedSlide(_&&_[0]||i.target,_),e.emit("tap click",i),f<300&&d-n.lastClickTime<300&&e.emit("doubleTap doubleClick",i)}if(n.lastClickTime=ga(),$v(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||a.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let h;if(o.followFinger?h=l?e.translate:-e.translate:h=-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:h});return}const g=h>=-e.maxTranslate()&&!e.params.loop;let v=0,b=e.slidesSizesGrid[0];for(let _=0;_<u.length;_+=_<o.slidesPerGroupSkip?1:o.slidesPerGroup){const T=_<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;typeof u[_+T]<"u"?(g||h>=u[_]&&h<u[_+T])&&(v=_,b=u[_+T]-u[_]):(g||h>=u[_])&&(v=_,b=u[u.length-1]-u[u.length-2])}let p=null,m=null;o.rewind&&(e.isBeginning?m=o.virtual&&o.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(p=0));const x=(h-u[v])/b,S=v<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(f>o.longSwipesMs){if(!o.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(x>=o.longSwipesRatio?e.slideTo(o.rewind&&e.isEnd?p:v+S):e.slideTo(v)),e.swipeDirection==="prev"&&(x>1-o.longSwipesRatio?e.slideTo(v+S):m!==null&&x<0&&Math.abs(x)>o.longSwipesRatio?e.slideTo(m):e.slideTo(v))}else{if(!o.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(i.target===e.navigation.nextEl||i.target===e.navigation.prevEl)?i.target===e.navigation.nextEl?e.slideTo(v+S):e.slideTo(v):(e.swipeDirection==="next"&&e.slideTo(p!==null?p:v+S),e.swipeDirection==="prev"&&e.slideTo(m!==null?m:v))}}function lp(){const t=this,{params:e,el:n}=t;if(n&&n.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:s}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const a=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=r,t.allowSlideNext=i,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function uE(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function cE(){const t=this,{wrapperEl:e,rtlTranslate:n,enabled:i}=t;if(!i)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let r;const s=t.maxTranslate()-t.minTranslate();s===0?r=0:r=(t.translate-t.minTranslate())/s,r!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function dE(t){const e=this;No(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update(
vendor: 3,498 bytes, line 82
82)}function fE(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Yv=(t,e)=>{const n=wi(),{params:i,el:r,wrapperEl:s,device:o}=t,a=!!i.nested,l=e==="on"?"addEventListener":"removeEventListener",u=e;!r||typeof r=="string"||(n[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:a}),r[l]("touchstart",t.onTouchStart,{passive:!1}),r[l]("pointerdown",t.onTouchStart,{passive:!1}),n[l]("touchmove",t.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",t.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",t.onTouchEnd,{passive:!0}),n[l]("pointerup",t.onTouchEnd,{passive:!0}),n[l]("pointercancel",t.onTouchEnd,{passive:!0}),n[l]("touchcancel",t.onTouchEnd,{passive:!0}),n[l]("pointerout",t.onTouchEnd,{passive:!0}),n[l]("pointerleave",t.onTouchEnd,{passive:!0}),n[l]("contextmenu",t.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[l]("click",t.onClick,!0),i.cssMode&&s[l]("scroll",t.onScroll),i.updateOnWindowResize?t[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",lp,!0):t[u]("observerUpdate",lp,!0),r[l]("load",t.onLoad,{capture:!0}))};function hE(){const t=this,{params:e}=t;t.onTouchStart=oE.bind(t),t.onTouchMove=aE.bind(t),t.onTouchEnd=lE.bind(t),t.onDocumentTouchStart=fE.bind(t),e.cssMode&&(t.onScroll=cE.bind(t)),t.onClick=uE.bind(t),t.onLoad=dE.bind(t),Yv(t,"on")}function pE(){Yv(this,"off")}var gE={attachEvents:hE,detachEvents:pE};const up=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function mE(){const t=this,{realIndex:e,initialized:n,params:i,el:r}=t,s=i.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const o=wi(),a=i.breakpointsBase==="window"||!i.breakpointsBase?i.breakpointsBase:"container",l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?t.el:o.querySelector(i.breakpointsBase),u=t.getBreakpoint(s,a,l);if(!u||t.currentBreakpoint===u)return;const d=(u in s?s[u]:void 0)||t.originalParams,f=up(t,i),h=up(t,d),g=t.params.grabCursor,v=d.grabCursor,b=i.enabled;f&&!h?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),t.emitContainerClasses()):!f&&h&&(r.classList.add(`${i.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&i.grid.fill==="column")&&r.classList.add(`${i.containerModifierClass}grid-column`),t.emitContainerClasses()),g&&!v?t.unsetGrabCursor():!g&&v&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(T=>{if(typeof d[T]>"u")return;const E=i[T]&&i[T].enabled,w=d[T]&&d[T].enabled;E&&!w&&t[T].disable(),!E&&w&&t[T].enable()});const p=d.direction&&d.direction!==i.direction,m=i.loop&&(d.slidesPerView!==i.slidesPerView||p),x=i.loop;p&&n&&t.changeDirection(),ft(t.params,d);const S=t.params.enabled,_=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),b&&!S?t.disable():!b&&S&&t.enable(),t.currentBreakpoint=u,t.emit("_beforeBreakpoint",d),n&&(m?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!x&&_?(t.loopCreate(e),t.updateSlides()):x&&!_&&t.loopDestroy()),t.emit("breakpoint",d)}function vE(t,e="window",n){if(!t||e==="container"&&!n)return;let i=!1;const r=nt(),s=e==="window"?r.innerHeight:n.clientHeight,o=Object.keys(t).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:s*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>
vendor: 4,671 bytes, line 82
82parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a<o.length;a+=1){const{point:l,value:u}=o[a];e==="window"?r.matchMedia(`(min-width: ${u}px)`).matches&&(i=l):u<=n.clientWidth&&(i=l)}return i||"max"}var yE={setBreakpoint:mE,getBreakpoint:vE};function xE(t,e){const n=[];return t.forEach(i=>{typeof i=="object"?Object.keys(i).forEach(r=>{i[r]&&n.push(e+r)}):typeof i=="string"&&n.push(e+i)}),n}function bE(){const t=this,{classNames:e,params:n,rtl:i,el:r,device:s}=t,o=xE(["initialized",n.direction,{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);e.push(...o),r.classList.add(...e),t.emitContainerClasses()}function wE(){const t=this,{el:e,classNames:n}=t;!e||typeof e=="string"||(e.classList.remove(...n),t.emitContainerClasses())}var SE={addClasses:bE,removeClasses:wE};function _E(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:i}=n;if(i){const r=t.slides.length-1,s=t.slidesGrid[r]+t.slidesSizesGrid[r]+i*2;t.isLocked=t.size>s}else t.isLocked=t.snapGrid.length===1;n.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),n.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var kE={checkOverflow:_E},qu={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function CE(t,e){return function(i={}){const r=Object.keys(i)[0],s=i[r];if(typeof s!="object"||s===null){ft(e,i);return}if(t[r]===!0&&(t[r]={enabled:!0}),r==="navigation"&&t[r]&&t[r].enabled&&!t[r].prevEl&&!t[r].nextEl&&(t[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&t[r]&&t[r].enabled&&!t[r].el&&(t[r].auto=!0),!(r in t&&"enabled"in s)){ft(e,i);return}typeof t[r]=="object"&&!("enabled"in t[r])&&(t[r].enabled=!0),t[r]||(t[r]={enabled:!1}),ft(e,i)}}const zl={eventsEmitter:SC,update:DC,translate:FC,transition:HC,slide:qC,loop:tE,grabCursor:rE,events:gE,breakpoints:yE,checkOverflow:kE,classes:SE},Fl={};let md=class en{constructor(...e){let n,i;e.length===1&&e[0].constructor&&Object.prototype.toString.call(e[0]).slice(8,-1)==="Object"?i=e[0]:[n,i]=e,i||(i={}),i=ft({},i),n&&!i.el&&(i.el=n);const r=wi();if(i.el&&typeof i.el=="string"&&r.querySelectorAll(i.el).length>1){const l=[];return r.querySelectorAll(i.el).forEach(u=>{const c=ft({},i,{el:u});l.push(new en(c))}),l}const s=this;s.__swiper__=!0,s.support=Hv(),s.device=Wv({userAgent:i.userAgent}),s.browser=Uv(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],i.modules&&Array.isArray(i.modules)&&s.modules.push(...i.modules);const o={};
vendor: 10,563 bytes, line 82
82s.modules.forEach(l=>{l({params:i,swiper:s,extendParams:CE(i,o),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const a=ft({},qu,o);return s.params=ft({},a,Fl,i),s.originalParams=ft({},s.params),s.passedParams=ft({},i),s.params&&s.params.on&&Object.keys(s.params.on).forEach(l=>{s.on(l,s.params.on[l])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return s.params.direction==="horizontal"},isVertical(){return s.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:n,params:i}=this,r=un(n,`.${i.slideClass}, swiper-slide`),s=ip(r[0]);return ip(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(n=>n.getAttribute("data-swiper-slide-index")*1===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?e=Math.floor(e/this.params.grid.rows):this.params.grid.fill==="row"&&(e=e%Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const e=this,{slidesEl:n,params:i}=e;e.slides=un(n,`.${i.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,n){const i=this;e=Math.min(Math.max(e,0),1);const r=i.minTranslate(),o=(i.maxTranslate()-r)*e+r;i.translateTo(o,typeof n>"u"?0:n),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=e.el.className.split(" ").filter(i=>i.indexOf("swiper")===0||i.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",n.join(" "))}getSlideClasses(e){const n=this;return n.destroyed?"":e.className.split(" ").filter(i=>i.indexOf("swiper-slide")===0||i.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=[];e.slides.forEach(i=>{const r=e.getSlideClasses(i);n.push({slideEl:i,classNames:r}),e.emit("_slideClass",i,r)}),e.emit("_slideClasses",n)}slidesPerViewDynamic(e="current",n=!1){const i=this,{params:r,slides:s,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:u}=i;let c=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let d=s[u]?Math.ceil(s[u].swiperSlideSize):0,f;for(let h=u+1;h<s.length;h+=1)s[h]&&!f&&(d+=Math.ceil(s[h].swiperSlideSize),c+=1,d>l&&(f=!0));for(let h=u-1;h>=0;h-=1)s[h]&&!f&&(d+=s[h].swiperSlideSize,c+=1,d>l&&(f=!0))}else if(e==="current")for(let d=u+1;d<s.length;d+=1)(n?o[d]+a[d]-o[u]<l:o[d]-o[u]<l)&&(c+=1);else for(let d=u-1;d>=0;d-=1)o[u]-o[d]<l&&(c+=1);return c}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:n,params:i}=e;i.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(o=>{o.complete&&No(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){const o=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(i.freeMode&&i.freeMode.enabled&&!i.cssMode)r(),i.autoHeight&&e.updateAutoHeight();else{if((i.slidesPerView==="auto"||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){const o=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(o.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||r()}i.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,n=!0){const i=this,r=i.params.direction;return e||(e=r==="horizontal"?"vertical":"horizontal"),e===r||e!=="horizontal"&&e!=="vertical"||(i.el.classList.remove(`${i.params.containerModifierClass}${r}`),i.el.classList.add(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),i.emit("changeDirection"),n&&i.update()),i}changeLanguageDirection(e){const n=this;n.rtl&&e==="rtl"||!n.rtl&&e==="ltr"||(n.rtl=e==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(e){const n=this;if(n.mounted)return!0;let i=e||n.params.el;if(typeof i=="string"&&(i=document.querySelector(i)),!i)return!1;i.swiper=n,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const r=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(r()):un(i,r())[0];return!o&&n.params.createElements&&(o=Ku("div",n.params.wrapperClass),i.append(o),un(i,`.${n.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(n,{el:i,wrapperEl:o,slidesEl:n.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:o,hostEl:n.isElement?i.parentNode.host:i,mounted:!0,rtl:i.dir.toLowerCase()==="rtl"||Ln(i,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||Ln(i,"direction")==="rtl"),wrongRTL:Ln(o,"display")==="-webkit-box"}),!0}init(e){const n=this;if(n.initialized||n.mount(e)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(void 0,!0),n.attachEvents();const r=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&r.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(s=>{s.complete?No(n,s):s.addEventListener("load",o=>{No(n,o.target)})}),Qu(n),n.initialized=!0,Qu(n),n.emit("init"),n.emit("afterInit"),n}destroy(e=!0,n=!0){const i=this,{params:r,el:s,wrapperEl:o,slides:a}=i;return typeof i.params>"u"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),r.loop&&i.loopDestroy(),n&&(i.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(l=>{i.off(l)}),e!==!1&&(i.el&&typeof i.el!="string"&&(i.el.swiper=null),lC(i)),i.destroyed=!0),null}static extendDefaults(e){ft(Fl,e)}static get extendedDefaults(){return Fl}static get defaults(){return qu}static installModule(e){en.prototype.__modules__||(en.prototype.__modules__=[]);const n=en.prototype.__modules__;typeof e=="function"&&n.indexOf(e)<0&&n.push(e)}static use(e){return Array.isArray(e)?(e.forEach(n=>en.installModule(n)),en):(en.installModule(e),en)}};Object.keys(zl).forEach(t=>{Object.keys(zl[t]).forEach(e=>{md.prototype[e]=zl[t][e]})});md.use([bC,wC]);const Xv=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function yi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function Ki(t,e){const n=["__proto__","constructor","prototype"];Object.keys(e).filter(i=>
vendor: 7,386 bytes, line 82
82n.indexOf(i)<0).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:yi(e[i])&&yi(t[i])&&Object.keys(e[i]).length>0?e[i].__swiper__?t[i]=e[i]:Ki(t[i],e[i]):t[i]=e[i]})}function Kv(t={}){return t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Qv(t={}){return t.pagination&&typeof t.pagination.el>"u"}function qv(t={}){return t.scrollbar&&typeof t.scrollbar.el>"u"}function Jv(t=""){const e=t.split(" ").map(i=>i.trim()).filter(i=>!!i),n=[];return e.forEach(i=>{n.indexOf(i)<0&&n.push(i)}),n.join(" ")}function EE(t=""){return t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function TE({swiper:t,slides:e,passedParams:n,changedParams:i,nextEl:r,prevEl:s,scrollbarEl:o,paginationEl:a}){const l=i.filter(w=>w!=="children"&&w!=="direction"&&w!=="wrapperClass"),{params:u,pagination:c,navigation:d,scrollbar:f,virtual:h,thumbs:g}=t;let v,b,p,m,x,S,_,T;i.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&u.thumbs&&(!u.thumbs.swiper||u.thumbs.swiper.destroyed)&&(v=!0),i.includes("controller")&&n.controller&&n.controller.control&&u.controller&&!u.controller.control&&(b=!0),i.includes("pagination")&&n.pagination&&(n.pagination.el||a)&&(u.pagination||u.pagination===!1)&&c&&!c.el&&(p=!0),i.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||o)&&(u.scrollbar||u.scrollbar===!1)&&f&&!f.el&&(m=!0),i.includes("navigation")&&n.navigation&&(n.navigation.prevEl||s)&&(n.navigation.nextEl||r)&&(u.navigation||u.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(x=!0);const E=w=>{t[w]&&(t[w].destroy(),w==="navigation"?(t.isElement&&(t[w].prevEl.remove(),t[w].nextEl.remove()),u[w].prevEl=void 0,u[w].nextEl=void 0,t[w].prevEl=void 0,t[w].nextEl=void 0):(t.isElement&&t[w].el.remove(),u[w].el=void 0,t[w].el=void 0))};i.includes("loop")&&t.isElement&&(u.loop&&!n.loop?S=!0:!u.loop&&n.loop?_=!0:T=!0),l.forEach(w=>{if(yi(u[w])&&yi(n[w]))Object.assign(u[w],n[w]),(w==="navigation"||w==="pagination"||w==="scrollbar")&&"enabled"in n[w]&&!n[w].enabled&&E(w);else{const k=n[w];(k===!0||k===!1)&&(w==="navigation"||w==="pagination"||w==="scrollbar")?k===!1&&E(w):u[w]=n[w]}}),l.includes("controller")&&!b&&t.controller&&t.controller.control&&u.controller&&u.controller.control&&(t.controller.control=u.controller.control),i.includes("children")&&e&&h&&u.virtual.enabled?(h.slides=e,h.update(!0)):i.includes("virtual")&&h&&u.virtual.enabled&&(e&&(h.slides=e),h.update(!0)),i.includes("children")&&e&&u.loop&&(T=!0),v&&g.init()&&g.update(!0),b&&(t.controller.control=u.controller.control),p&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-pagination"),a.part.add("pagination"),t.el.appendChild(a)),a&&(u.pagination.el=a),c.init(),c.render(),c.update()),m&&(t.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),t.el.appendChild(o)),o&&(u.scrollbar.el=o),f.init(),f.updateSize(),f.setTranslate()),x&&(t.isElement&&((!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-next"),sp(r,t.navigation.arrowSvg),r.part.add("button-next"),t.el.appendChild(r)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),sp(s,t.navigation.arrowSvg),s.part.add("button-prev"),t.el.appendChild(s))),r&&(u.navigation.nextEl=r),s&&(u.navigation.prevEl=s),d.init(),d.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=n.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=n.allowSlidePrev),i.includes("direction")&&t.changeDirection(n.direction,!1),(S||T)&&t.loopDestroy(),(_||T)&&t.loopCreate(),t.update()}function PE(t={},e=!0){const n={on:{}},i={},r={};Ki(n,qu),n._emitClasses=!0,n.init=!1;const s={},o=Xv.map(l=>l.replace(/_/,"")),a=Object.assign({},t);return Object.keys(a).forEach(l=>{typeof t[l]>"u"||(o.indexOf(l)>=0?yi(t[l])?(n[l]={},r[l]={},Ki(n[l],t[l]),Ki(r[l],t[l])):(n[l]=t[l],r[l]=t[l]):l.search(/on[A-Z]/)===0&&typeof t[l]=="function"?e?i[`${l[2].toLowerCase()}${l.substr(3)}`]=t[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=t[l]:s[l]=t[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:r,rest:s,events:i}}function ME({el:t,nextEl:e,prevEl:n,paginationEl:i,scrollbarEl:r,swiper:s},o){Kv(o)&&e&&n&&(s.params.navigation.nextEl=e,s.originalParams.navigation.nextEl=e,s.params.navigation.prevEl=n,s.originalParams.navigation.prevEl=n),Qv(o)&&i&&(s.params.pagination.el=i,s.originalParams.pagination.el=i),qv(o)&&r&&(s.params.scrollbar.el=r,s.originalParams.scrollbar.el=r),s.init(t)}function RE(t,e,n,i,r){const s=[];if(!e)return s;const o=l=>{s.indexOf(l)<0&&s.push(l)};if(n&&i){const l=i.map(r),u=n.map(r);l.join("")!==u.join("")&&o("children"),i.length!==n.length&&o("children")}return Xv.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in t&&l in e)if(yi(t[l])&&yi(e[l])){const u=Object.keys(t[l]),c=Object.keys(e[l]);u.length!==c.length?o(l):(u.forEach(d=>{t[l][d]!==e[l][d]&&o(l)}),c.forEach(d=>{t[l][d]!==e[l][d]&&o(l)}))}else t[l]!==e[l]&&o(l)}),s}const LE=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.emit("_virtualUpdated"),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function va(){return va=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},va.apply(this,arguments)}function Zv(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function ey(t){const e=[];return _e.Children.toArray(t).forEach(n=>{Zv(n)?e.push(n):n.props&&n.props.children&&ey(n.props.children).forEach(i=>e.push(i))}),e}function OE(t){const e=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return _e.Children.toArray(t).forEach(i=>{if(Zv(i))e.push(i);else if(i.props&&i.props.slot&&n[i.props.slot])n[i.props.slot].push(i);else if(i.props&&i.props.children){const r=ey(i.props.children);r.length>0?r.forEach(s=>e.push(s)):n["container-end"].push(i)}else n["container-end"].push(i)}),{slides:e,slots:n}}function DE(t,e,n){if(!n)return null;const i=c=>{let d=c;return c<0?d=e.length+c:d>=e.length&&(d=d-e.length),d},r=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:o}=n,a=t.params.loop?-e.length:0,l=t.params.loop?e.length*2:e.length,u=[];for(let c=a;c<l;c+=1)c>=s&&c<=o&&u.push(e[i(c)]);return u.map((c,d)=>_e.cloneElement(c,{swiper:t,style:r,key:c.props.virtualIndex||c.key||`slide-${d}`}))}function Qr(t,e){return typeof window>"u"?M.useEffect(t,e):M.useLayoutEffect(t,e)}const cp=M.createContext(null),jE=M.createContext(null),NE=M.forwardRef(({className:t,tag:e="div",wrapperTag:n="div",children:i,onSwiper:r,...s}={},o)=>{let a=!1;const[l,u]=M.useState("swiper"),[c,d]=M.useState(null),[f,h]=M.useState(!1),g=M.useRef(!1),v=M.useRef(null),b=M.useRef(null),p=M.useRef(null),m=M.useRef(null),x=M.useRef(null),S=M.useRef(null),_=M.useRef(null),T=M.useRef(null),{params:E,passedParams:w,rest:k,events:C}=PE(s),{slides:P,slots:L}=OE(i),j=()=>{h(!f)};Object.assign(E.on,{_containerClasses(R,O){u(O)}});const H=()=>{Object.assign(E.on,C),a=!0;const R={...E};
82if(delete R.wrapperClass,b.current=new md(R),b.current.virtual&&b.current.params.virtual.enabled){b.current.virtual.slides=P;const O={cache:!1,slides:P,renderExternal:d,renderExternalUpdate:!1};Ki(b.current.params.virtual,O),Ki(b.current.originalParams.virtual,O)}};v.current||H(),b.current&&b.current.on("_beforeBreakpoint",j);const V=()=>{a||!C||!b.current||Object.keys(C).forEach(R=>{b.current.on(R,C[R])})},W=()=>{!C||!b.current||Object.keys(C).forEach(R=>{b.current.off(R,C[R])})};M.useEffect(()=>()=>{b.current&&b.current.off("_beforeBreakpoint",j)}),M.useEffect(()=>{!g.current&&b.current&&(b.current.emitSlidesClasses(),g.current=!0)}),Qr(()=>{if(o&&(o.current=v.current),!!v.current)return b.current.destroyed&&H(),ME({el:v.current,nextEl:x.current,prevEl:S.current,paginationEl:_.current,scrollbarEl:T.current,swiper:b.current},E),r&&!b.current.destroyed&&r(b.current),()=>{b.current&&!b.current.destroyed&&b.current.destroy(!0,!1)}},[]),Qr(()=>{V();const R=RE(w,p.current,P,m.current,O=>O.key);return p.current=w,m.current=P,R.length&&b.current&&!b.current.destroyed&&TE({swiper:b.current,slides:P,passedParams:w,changedParams:R,nextEl:x.current,prevEl:S.current,scrollbarEl:T.current,paginationEl:_.current}),()=>{W()}}),Qr(()=>{LE(b.current)},[c]);function z(){return E.virtual?DE(b.current,P,c):P.map((R,O)=>_e.cloneElement(R,{swiper:b.current,swiperSlideIndex:O}))}return _e.createElement(e,va({ref:v,className:Jv(`${l}${t?` ${t}`:""}`)},k),_e.createElement(jE.Provider,{value:b.current},L["container-start"],_e.createElement(n,{className:EE(E.wrapperClass)},L["wrapper-start"],z(),L["wrapper-end"]),Kv(E)&&_e.createElement(_e.Fragment,null,_e.createElement("div",{ref:S,className:"swiper-button-prev"}),_e.createElement("div",{ref:x,className:"swiper-button-next"})),qv(E)&&_e.createElement("div",{ref:T,className:"swiper-scrollbar"}),Qv(E)&&_e.createElement("div",{ref:_,className:"swiper-pagination"}),L["container-end"]))});NE.displayName="Swiper";const AE=M.forwardRef(({tag:t="div",children:e,className:n="",swiper:i,zoom:r,lazy:s,virtualIndex:o,swiperSlideIndex:a,...l}={},u)=>{const c=M.useRef(null),[d,f]=M.useState("swiper-slide"),[h,g]=M.useState(!1);function v(x,S,_){S===c.current&&f(_)}Qr(()=>{if(typeof a<"u"&&(c.current.swiperSlideIndex=a),u&&(u.current=c.current),!(!c.current||!i)){if(i.destroyed){d!=="swiper-slide"&&f("swiper-slide");return}return i.on("_slideClass",v),()=>{i&&i.off("_slideClass",v)}}}),Qr(()=>{i&&c.current&&!i.destroyed&&f(i.getSlideClasses(c.current))},[i]);const b={isActive:d.indexOf("swiper-slide-active")>=0,isVisible:d.indexOf("swiper-slide-visible")>=0,isPrev:d.indexOf("swiper-slide-prev")>=0,isNext:d.indexOf("swiper-slide-next")>=0},p=()=>typeof e=="function"?e(b):e,m=()=>{g(!0)};return _e.createElement(t,va({ref:c,className:Jv(`${d}${n?` ${n}`:""}`),"data-swiper-slide-index":o,onLoad:m},l),r&&_e.createElement(cp.Provider,{value:b},_e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof r=="number"?r:void 0},p(),s&&!h&&_e.createElement("div",{className:"swiper-lazy-preloader"}))),!r&&_e.createElement(cp.Provider,{value:b},p(),s&&!h&&_e.createElement("div",{className:"swiper-lazy-preloader"})))});AE.displayName="SwiperSlide";const IE={header:"Header",width:"auto",align:"left",dataType:"text",decimals:2,thousandSeparator:!0,currencySymbol:"$",sortable:!1},ty=t=>({...IE,header:`Header ${t+1}`}),Ju=t=>Array(t).fill(null).map((e,n)=>ty(n)),vd={normal:"400",medium:"500",semibold:"600",bold:"700"},ny=M.createContext(),Si=()=>{const t=M.useContext(ny);if(!t)throw new Error("useTableConfig must be used within TableProvider");return t},dp={data:{columns:3,rows:5,firstRowHeader:!0,firstColumnHeader:!1,cells:Array(5).fill(null).map((t,e)=>Array(3).fill(null).map((n,i)=>e===0&&i===0?"Header 1":e===0&&i===1?"Header 2":e===0&&i===2?"Header 3":`Cell ${e}-${i}`))},columns:Ju(3),style:{containerWidth:"100%",borderRadius:8,boxShadow:!0,overflow:"scroll",headerBgColor:"#000000",headerTextColor:"#ffffff",headerFontSize:14,headerFontWeight:"semibold",headerPadding:16,headerBorderBottom:2,headerBorderColor:"#e5e7eb",stickyHeader:!1,bodyBgColor:"#ffffff",alternateRowColor:!0,alternateRowBgColor:"#f9fafb",bodyTextColor:"#111827",bodyFontSize:14,bodyPadding:12,rowBorder:!0,rowBorderColor:"#e5e7eb",rowHover:!0,hoverBgColor:"#f3f4f6",outerBorder:!0,outerBorderWidth:1,outerBorderColor:"#e5e7eb",columnDividers:!1,columnDividerColor:"#e5e7eb",rowDividers:!0,rowDividerColor:"#e5e7eb"},interactivity:{enableSorting:!1,defaultSortColumn:0,defaultSortDirection:"ascending",sortIconStyle:"arrows",enableSearch:!1,searchPlaceholder:"Search table...",searchPosition:"above",enablePagination:!1,rowsPerPage:10,paginationStyle:"numbered",horizontalScroll:!0,stackOnMobile:!1,hideColumnsOnMobile:[]}},iy=({children:t})=>
82{const[e,n]=M.useState(1),[i,r]=M.useState(dp),h={config:i,currentStep:e,updateData:g=>{r(v=>({...v,data:{...v.data,...g}}))},updateColumns:g=>{r(v=>({...v,columns:g}))},updateStyle:g=>{r(v=>({...v,style:{...v.style,...g}}))},updateInteractivity:g=>{r(v=>({...v,interactivity:{...v.interactivity,...g}}))},nextStep:()=>{n(g=>Math.min(g+1,4))},prevStep:()=>{n(g=>Math.max(g-1,1))},goToStep:g=>{n(g)},resetConfig:()=>{r(dp),n(1)}};return y.jsx(ny.Provider,{value:h,children:t})},zE=()=>{const{currentStep:t,goToStep:e}=Si(),n=[{number:1,title:"Data"},{number:2,title:"Data Types & Style"},{number:3,title:"Interactivity"},{number:4,title:"Export"}];return y.jsx("div",{className:"step-indicator",children:n.map((i,r)=>y.jsxs(_e.Fragment,{children:[y.jsxs("div",{className:`step-item ${t===i.number?"active":""} ${t>i.number?"completed":""}`,onClick:()=>e(i.number),children:[y.jsx("div",{className:"step-number",children:i.number}),y.jsx("div",{className:"step-title",children:i.title})]}),r<n.length-1&&y.jsx("div",{className:"step-connector"})]},i.number))})},FE=t=>{if(!t||!t.trim())return[];const n=t.includes("	")?"	":",",i=t.trim().split(`
83`).map(o=>n==="	"?o.split("	").map(a=>a.trim()):o.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/).map(a=>a.replace(/^"|"$/g,"").trim())),r=Math.max(...i.map(o=>o.length));return i.map(o=>{const a=[...o];for(;a.length<r;)a.push("");return a})},fp=t=>{const e=FE(t);return{cells:e,rows:e.length,columns:e.length>0?e[0].length:0}},hp=()=>{const{config:t,updateData:e,updateColumns:n,nextStep:i}=Si(),{data:r,columns:s}=t,[o,a]=M.useState(""),[l,u]=M.useState("manual"),c=(p,m,x)=>{const S=r.cells.map((_,T)=>T===p?_.map((E,w)=>w===m?x:E):_);e({cells:S})},d=()=>{const p=Array(r.columns).fill(null).map((x,S)=>`Cell ${r.rows}-${S}`),m=[...r.cells,p];e({cells:m,rows:r.rows+1})},f=()=>{if(r.rows>1){const p=r.cells.slice(0,-1);e({cells:p,rows:r.rows-1})}},h=()=>{const p=r.columns,m=r.cells.map((S,_)=>_===0&&r.firstRowHeader?[...S,`Header ${p+1}`]:[...S,`Cell ${_}-${p}`]),x=[...s,ty(p)];e({cells:m,columns:r.columns+1}),n(x)},g=()=>{if(r.columns>1){const p=r.cells.map(x=>x.slice(0,-1)),m=s.slice(0,-1);e({cells:p,columns:r.columns-1}),n(m)}},v=()=>{if(!o.trim())return;const p=fp(o),m=Ju(p.columns);e(p),n(m),a(""),u("manual")},b=p=>{const m=p.target.files[0];if(!m)return;const x=new FileReader;x.onload=S=>{const _=S.target.result,T=fp(_),E=Ju(T.columns);e(T),n(E),u("manual")},x.onerror=()=>{console.error("Error reading file:",x.error),alert("Failed to read file. Please try again or use a different file.")},x.readAsText(m)};return y.jsxs("div",{className:"step-content",children:[y.jsxs("div",{className:"step-header",children:[y.jsx("h2",{children:"Enter Table Data"}),y.jsx("p",{children:"Choose how you want to add your data"})]}),y.jsxs("div",{className:"config-section",children:[y.jsx("h3",{children:"Select Data Source"}),y.jsxs("div",{style:{display:"flex",gap:"1rem",marginBottom:"1.5rem"},children:[y.jsx("button",{className:`btn ${l==="manual"?"btn-primary":"btn-secondary"}`,onClick:()=>u("manual"),style:{flex:1},children:"Manual Entry"}),y.jsx("button",{className:`btn ${l==="excel"?"btn-primary":"btn-secondary"}`,onClick:()=>u("excel"),style:{flex:1},children:"Copy from Excel"}),y.jsx("button",{className:`btn ${l==="csv"?"btn-primary":"btn-secondary"}`,onClick:()=>u("csv"),style:{flex:1},children:"Upload CSV"})]}),l==="manual"?y.jsxs("div",{children:[y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"1rem"},children:[y.jsx("label",{style:{fontWeight:"600"},children:"Edit Table Data"}),y.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[y.jsx("button",{className:"btn btn-secondary",onClick:d,style:{padding:"0.25rem 0.75rem",fontSize:"0.875rem"},children:"+ Row"}),y.jsx("button",{className:"btn btn-secondary",onClick:f,disabled:r.rows<=1,style:{padding:"0.25rem 0.75rem",fontSize:"0.875rem"},children:"- Row"}),y.jsx("button",{className:"btn btn-secondary",onClick:h,style:{padding:"0.25rem 0.75rem",fontSize:"0.875rem"},children:"+ Column"}),y.jsx("button",{className:"btn btn-secondary",onClick:g,disabled:r.columns<=1,style:{padding:"0.25rem 0.75rem",fontSize:"0.875rem"},children:"- Column"})]})]}),y.jsx("div",{style:{overflow:"auto",maxHeight:"400px",border:"1px solid #e5e7eb",borderRadius:"8px"},children:y.jsx("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:"0.875rem"},children:y.jsx("tbody",{children:r.cells.map((p,m)=>y.jsx("tr",{children:p.map((x,S)=>y.jsx("td",{style:{padding:"0",border:"1px solid #e5e7eb",background:m===0&&r.firstRowHeader||S===0&&r.firstColumnHeader?"#f9fafb":"#ffffff"},children:y.jsx("input",{type:"text",value:x,onChange:_=>c(m,S,_.target.value),style:{width:"100%",padding:"0.5rem",border:"none",background:"transparent",fontSize:"0.875rem",fontWeight:m===0&&r.firstRowHeader||S===0&&r.firstColumnHeader?"600":"normal"}})},S))},m))})})})]}):l==="excel"?y.jsxs("div",{children:[y.jsx("label",{style:{fontWeight:"600",display:"block",marginBottom:"0.5rem"},children:"Paste from Excel or Google Sheets"}),y.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-secondary)",marginBottom:"1rem"},children:"Copy your table from Excel or Google Sheets and paste it below. The data will be automatically imported."}),y.jsx("textarea",{className:"form-input",placeholder:`Paste your data here...
84Header 1	Header 2	Header 3
85Value 1	Value 2	Value 3`,value:o,onChange:p=>a(p.target.value),rows:"10",style:{fontFamily:"monospace",fontSize:"0.875rem",resize:"vertical"}}),y.jsx("button",{className:"btn btn-primary",onClick:v,disabled:!o.trim(),style:{marginTop:"0.5rem"},children:"Import Data"})]}):y.jsxs("div",{children:[y.jsx("label",{style:{fontWeight:"600",display:"block",marginBottom:"0.5rem"},children:"Upload CSV File"}),y.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-secondary)",marginBottom:"1rem"},children:"Select a CSV file from your computer to import the table data."}),y.jsx("input",{type:"file",accept:".csv",onChange:b,style:{display:"block",padding:"0.5rem",border:"1px solid #e5e7eb",borderRadius:"6px",width:"100%",cursor:"pointer"}})]})]}),y.jsxs("div",{className:"config-section",children:[y.jsx("h3",{children:"Header Configuration"}),y.jsxs("div",{className:"form-row",children:[y.jsx("div",{className:"form-group",children:y.jsxs("label",{className:"checkbox-label",children:[y.jsx("input",{type:"checkbox",checked:r.firstRowHeader,onCh
85ange:p=>e({firstRowHeader:p.target.checked})}),"First Row as Header"]})}),y.jsx("div",{className:"form-group",children:y.jsxs("label",{className:"checkbox-label",children:[y.jsx("input",{type:"checkbox",checked:r.firstColumnHeader,onChange:p=>e({firstColumnHeader:p.target.checked})}),"First Column as Header"]})})]})]}),y.jsxs("div",{className:"step-navigation",children:[y.jsx("div",{}),y.jsx("button",{className:"btn btn-primary",onClick:i,children:"Next Step"})]})]})},BE=t=>{if(!t||t.trim()==="")return!0;const e=parseFloat(t.replace(/[$€£¥,%,]/g,""));return!isNaN(e)},$E=(t,e)=>{const{dataType:n}=t;if(n==="text")return{isValid:!0,invalidValues:[]};if(["number","currency","percentage"].includes(n)){const i=e.filter(r=>!BE(r));return{isValid:i.length===0,invalidValues:i}}if(n==="date"){const i=e.filter(r=>{if(!r||r.trim()==="")return!1;const s=new Date(r);return isNaN(s.getTime())});return{isValid:i.length===0,invalidValues:i}}return{isValid:!0,invalidValues:[]}},VE=()=>{const{config:t,updateStyle:e,updateColumns:n,nextStep:i,prevStep:r}=Si(),{style:s,columns:o,data:a}=t,[l,u]=_e.useState({}),c=(f,h)=>{e({[f]:h})},d=(f,h,g)=>{if(h==="dataType"){const b=a.cells.slice(a.firstRowHeader?1:0).map(x=>x[f]),p={...o[f],dataType:g},m=$E(p,b);if(m.isValid){const x={...l};delete x[f],u(x)}else{u({...l,[f]:`This column has ${m.invalidValues.length} incompatible value(s). Cannot use ${g} type. Please clean data or choose "Text".`});return}}const v=o.map((b,p)=>p===f?{...b,[h]:g}:b);n(v)};return y.jsxs("div",{className:"step-content",children:[y.jsxs("div",{className:"step-header",children:[y.jsx("h2",{children:"Configure Data Types & Styling"}),y.jsx("p",{children:"Set data types, alignment, colors, fonts, spacing, and borders"})]}),y.jsxs("div",{className:"config-section",children:[y.jsx("h3",{children:"Column Data Types & Alignment"}),y.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:o.map((f,h)=>y.jsxs("div",{className:"config-section",style:{padding:"1rem",background:"rgba(255, 255, 255, 0.05)",borderRadius:"8px",border:"1px solid var(--color-border)"},children:[y.jsxs("h4",{style:{margin:"0 0 1rem 0",fontSize:"1rem",fontWeight:"600",color:"var(--color-text-primary)"},children:["Column ",h+1,": ",f.header]}),y.jsxs("div",{className:"form-row",children:[y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Data Type"}),y.jsxs("select",{className:"form-select",value:f.dataType,onChange:g=>d(h,"dataType",g.target.value),style:{borderColor:l[h]?"#ef4444":"",borderWidth:l[h]?"2px":""},children:[y.jsx("option",{value:"text",children:"Text"}),y.jsx("option",{value:"number",children:"Number"}),y.jsx("option",{value:"currency",children:"Currency"}),y.jsx("option",{value:"percentage",children:"Percentage"}),y.jsx("option",{value:"date",children:"Date"})]}),l[h]&&y.jsx("div",{style:{color:"#ef4444",fontSize:"0.875rem",marginTop:"0.25rem",fontWeight:"500"},children:l[h]})]}),y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Alignment"}),y.jsxs("select",{className:"form-select",value:f.align,onChange:g=>d(h,"align",g.target.value),children:[y.jsx("option",{value:"left",children:"Align Left"}),y.jsx("option",{value:"center",children:"Align Center"}),y.jsx("option",{value:"right",children:"Align Right"})]})]})]}),(f.dataType==="number"||f.dataType==="currency"||f.dataType==="percentage")&&y.jsxs("div",{className:"form-row",children:[y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Decimal Places"}),y.jsx("input",{type:"number",className:"form-input",min:"0",max:"4",value:f.decimals,onChange:g=>d(h,"decimals",parseInt(g.target.value))})]}),f.dataType==="number"&&y.jsx("div",{className:"form-group",children:y.jsxs("label",{className:"checkbox-label",children:[y.jsx("input",{type:"checkbox",checked:f.thousandSeparator,onChange:g=>d(h,"thousandSeparator",g.target.checked)}),"Thousand Separator (1,000)"]})}),f.dataType==="currency"&&y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Currency Symbol"}),y.jsxs("select",{className:"form-select",value:f.currencySymbol,onChange:g=>d(h,"currencySymbol",g.target.value),children:[y.jsx("option",{value:"$",children:"$ (Dollar)"}),y.jsx("option",{value:"€",children:"€ (Euro)"}),y.jsx("option",{value:"£",children:"£ (Pound)"}),y.jsx("option",{value:"¥",children:"¥ (Yen)"})]})]})]})]},h))})]}),y.jsxs("div",{className:"config-section",children:[y.jsx("h3",{children:"Container & Borders"}),y.jsxs("div",{className:"form-row",children:[y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Border Radius (px)"}),y.jsx("input",{type:"number",className:"form-input",min:"0",max:"24",value:s.borderRadius,onChange:f=>c("borderRadius",parseInt(f.target.value))})]}),y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Overflow Behavior"}),y.jsxs("select",{className:"form-select",value:s.overflow,onChange:f=>c("overflow",f.target.value),children:[y.jsx("option",{value:"scroll",children:"Scroll"}),y.jsx("option",{value:"auto",children:"Auto"}),y.jsx("option",{value:"visible",children:"Visible"})]})]})]}),y.jsxs("div",{className:"form-row",children:[y.jsx("div",{className:"form-group",children:y.jsxs("label",{className:"checkbox-label",children:[y.jsx("input",{type:"checkbox",checked:s.columnDividers,onChange:f=>c("columnDividers",f.target.checked)}),"Column Dividers"]})}),s.columnDividers&&y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Divider Color"}),y.jsxs("div",{style:{display:"flex",gap:"0.5rem",alignItems:"center"},children:[y.jsx("input",{type:"color",value:s.columnDividerColor,onChange:f=>c("columnDividerColor",f.target.value),style:{width:"50px",height:"38px",cursor:"pointer"}}),y.jsx("input",{type:"text",className:"form-input",value:s.columnDividerColor,onChange:f=>c("columnDividerColor",f.target.value),style:{flex:1}})]})]})]}),y.jsxs("div",{className:"form-row",children:[y.jsx("div",{className:"form-group",children:y.jsxs("label",{className:"checkbox-label",children:[y.jsx("input",{type:"checkbox",checked:s.rowDividers,onChange:f=>c("rowDividers",f.target.checked)}),"Row Dividers"]})}),s.rowDividers&&y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Divider Color"}),y.jsxs("div",{style:{display:"flex",gap:"0.5rem",alignItems:"center"},children:[y.jsx("input",{type:"color",value:s.rowDividerColor,onChange:f=>c("rowDividerColor",f.target.value),style:{width:"50px",height:"38px",cursor:"pointer"}}),y.jsx("input",{type:"text",className:"form-input",value:s.rowDividerColor,onChange:f=>c("rowDividerColor",f.target.value),style:{flex:1}})]})]})]})]}),y.jsxs("div",{className:"config-section",children:[y.jsx("h3",{children:"Header Row"}),y.jsxs("div",{className:"form-row",children:[y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Backgroun
85d Color"}),y.jsxs("div",{style:{display:"flex",gap:"0.5rem",alignItems:"center"},children:[y.jsx("input",{type:"color",value:s.headerBgColor,onChange:f=>c("headerBgColor",f.target.value),style:{width:"50px",height:"38px",cursor:"pointer"}}),y.jsx("input",{type:"text",className:"form-input",value:s.headerBgColor,onChange:f=>c("headerBgColor",f.target.value),style:{flex:1}})]})]}),y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Text Color"}),y.jsxs("div",{style:{display:"flex",gap:"0.5rem",alignItems:"center"},children:[y.jsx("input",{type:"color",value:s.headerTextColor,onChange:f=>c("headerTextColor",f.target.value),style:{width:"50px",height:"38px",cursor:"pointer"}}),y.jsx("input",{type:"text",className:"form-input",value:s.headerTextColor,onChange:f=>c("headerTextColor",f.target.value),style:{flex:1}})]})]})]}),y.jsxs("div",{className:"form-row",children:[y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Font Size (px)"}),y.jsx("input",{type:"number",className:"form-input",min:"10",max:"24",value:s.headerFontSize,onChange:f=>c("headerFontSize",parseInt(f.target.value))})]}),y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Font Weight"}),y.jsxs("select",{className:"form-select",value:s.headerFontWeight,onChange:f=>c("headerFontWeight",f.target.value),children:[y.jsx("option",{value:"normal",children:"Normal (400)"}),y.jsx("option",{value:"medium",children:"Medium (500)"}),y.jsx("option",{value:"semibold",children:"Semibold (600)"}),y.jsx("option",{value:"bold",children:"Bold (700)"})]})]})]}),y.jsxs("div",{className:"form-row",children:[y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Padding (px)"}),y.jsx("input",{type:"number",className:"form-input",min:"4",max:"32",value:s.headerPadding,onChange:f=>c("headerPadding",parseInt(f.target.value))})]}),y.jsx("div",{className:"form-group",children:y.jsxs("label",{className:"checkbox-label",children:[y.jsx("input",{type:"checkbox",checked:s.stickyHeader,onCh
85ange:f=>c("stickyHeader",f.target.checked)}),"Sticky Header (on scroll)"]})})]})]}),y.jsxs("div",{className:"config-section",children:[y.jsx("h3",{children:"Body Rows"}),y.jsxs("div",{className:"form-row",children:[y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Background Color"}),y.jsxs("div",{style:{display:"flex",gap:"0.5rem",alignItems:"center"},children:[y.jsx("input",{type:"color",value:s.bodyBgColor,onChange:f=>c("bodyBgColor",f.target.value),style:{width:"50px",height:"38px",cursor:"pointer"}}),y.jsx("input",{type:"text",className:"form-input",value:s.bodyBgColor,onChange:f=>c("bodyBgColor",f.target.value),style:{flex:1}})]})]}),y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Text Color"}),y.jsxs("div",{style:{display:"flex",gap:"0.5rem",alignItems:"center"},children:[y.jsx("input",{type:"color",value:s.bodyTextColor,onChange:f=>c("bodyTextColor",f.target.value),style:{width:"50px",height:"38px",cursor:"pointer"}}),y.jsx("input",{type:"text",className:"form-input",value:s.bodyTextColor,onChange:f=>c("bodyTextColor",f.target.value),style:{flex:1}})]})]})]}),y.jsxs("div",{className:"form-row",children:[y.jsx("div",{className:"form-group",children:y.jsxs("label",{className:"checkbox-label",children:[y.jsx("input",{type:"checkbox",checked:s.alternateRowColor,onChange:f=>c("alternateRowColor",f.target.checked)}),"Alternate Row Colors"]})}),s.alternateRowColor&&y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Alternate Row Color"}),y.jsxs("div",{style:{display:"flex",gap:"0.5rem",alignItems:"center"},children:[y.jsx("input",{type:"color",value:s.alternateRowBgColor,onChange:f=>c("alternateRowBgColor",f.target.value),style:{width:"50px",height:"38px",cursor:"pointer"}}),y.jsx("input",{type:"text",className:"form-input",value:s.alternateRowBgColor,onChange:f=>c("alternateRowBgColor",f.target.value),style:{flex:1}})]})]})]}),y.jsxs("div",{className:"form-row",children:[y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Font Size (px)"}),y.jsx("input",{type:"number",className:"form-input",min:"10",max:"20",value:s.bodyFontSize,onChange:f=>c("bodyFontSize",parseInt(f.target.value))})]}),y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Padding (px)"}),y.jsx("input",{type:"number",className:"form-input",min:"4",max:"32",value:s.bodyPadding,onChange:f=>c("bodyPadding",parseInt(f.target.value))})]})]})]}),y.jsxs("div",{className:"config-section",children:[y.jsx("h3",{children:"Hover State"}),y.jsxs("div",{className:"form-row",children:[y.jsx("div",{className:"form-group",children:y.jsxs("label",{className:"checkbox-label",children:[y.jsx("input",{type:"checkbox",checked:s.rowHover,onChange:f=>c("rowHover",f.target.checked)}),"Enable Row Hover Effect"]})}),s.rowHover&&y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Hover Background Color"}),y.jsxs("div",{style:{display:"flex",gap:"0.5rem",alignItems:"center"},children:[y.jsx("input",{type:"color",value:s.hoverBgColor,onChange:f=>c("hoverBgColor",f.target.value),style:{width:"50px",height:"38px",cursor:"pointer"}}),y.jsx("input",{type:"text",className:"form-input",value:s.hoverBgColor,onChange:f=>c("hoverBgColor",f.target.value),style:{flex:1}})]})]})]})]}),y.jsxs("div",{className:"step-navigation",children:[y.jsx("button",{className:"btn btn-secondary",onClick:r,children:"Previous"}),y.jsx("button",{className:"btn btn-primary",onClick:i,children:"Next Step"})]})]})},HE=()=>{const{config:t,updateInteractivity:e,nextStep:n,prevStep:i}=Si(),{interactivity:r,columns:s}=t,o=(a,l)=>{e({[a]:l})};return y.jsxs("div",{className:"step-content",children:[y.jsxs("div",{className:"step-header",children:[y.jsx("h2",{children:"Configure Interactivity"}),y.jsx("p",{children:"Add sorting, search, pagination, and responsive behavior"})]}),y.jsxs("div",{className:"config-section",children:[y.jsx("h3",{children:"Sorting"}),y.jsxs("div",{className:"form-group",children:[y.jsxs("label",{className:"checkbox-label",children:[y.jsx("input",{type:"checkbox",checked:r.enableSorting,onChange:a=>o("enableSorting",a.target.checked)}),"Enable Column Sorting"]}),y.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-secondary)",marginTop:"0.25rem"},children:"Users can click column headers to sort the table"})]}),r.enableSorting&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"form-row",children:[y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Default Sort Column"}),y.jsxs("select",{className:"form-select",value:r.defaultSortColumn,onChange:a=>o("defaultSortColumn",parseInt(a.target.value)),children:[y.jsx("option",{value:-1,children:"None (Custom Order)"}),s.map((a,l)=>y.jsx("option",{value:l,children:a.header},l))]})]}),r.defaultSortColumn!==-1&&y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Default Sort Direction"}),y.jsxs("select",{className:"form-select",value:r.defaultSortDirection,onChange:a=>o("defaultSortDirection",a.target.value),children:[y.jsx("option",{value:"ascending",children:"Ascending"}),y.jsx("option",{value:"descending",children:"Descending"})]})]})]}),y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Sort Icon Style"}),y.jsxs("select",{className:"form-select",value:r.sortIconStyle,onChange:a=>o("sortIconStyle",a.target.value),children:[y.jsx("option",{value:"arrows",children:"Arrows (↑↓)"}),y.jsx("option",{value:"triangles",children:"Triangles (▲▼)"})]})]})]})]}),y.jsxs("div",{className:"config-section",children:[y.jsx("h3",{children:"Search & Filter"}),y.jsxs("div",{className:"form-group",children:[y.jsxs("label",{className:"checkbox-label",children:[y.jsx("input",{type:"checkbox",checked:r.enableSearch,onChange:a=>o("enableSearch",a.target.checked)}),"Enable Table Search"]}),y.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-secondary)",marginTop:"0.25rem"},children:"Add a search box to filter table rows"})]}),r.enableSearch&&y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Search Placeholder"}),y.jsx("input",{type:"text",className:"form-input",value:r.searchPlaceholder,onChange:a=>o("searchPlaceholder",a.target.value)})]})]}),y.jsxs("div",{className:"config-section",children:[y.jsx("h3",{children:"Pagination"}),y.jsxs("div",{className:"form-group",children:[y.jsxs("label",{className:"checkbox-label",children:[y.jsx("input",{type:"checkbox",checked:r.enablePagination,onChange:a=>o("enablePagination",a.target.checked)}),"Enable Pagination"]}),y.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-secondary)",marginTop:"0.25rem"},children:"Split large tables into multiple pages"})]}),r.enablePagination&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Rows Per Page"}),y.jsxs("select",{className:"form-select",value:r.rowsPerPage,onChange:a=>o("rowsPerPage",parseInt(a.target.value)),children:[y.jsx("option",{value:5,children:"5 rows"}),y.jsx("option",{value:10,children:"10 rows"}),y.jsx("option",{value:20,children:"20 rows"}),y.jsx("option",{value:25,children:"25 rows"}),y.jsx("option",{value:50,children:"50 rows"}),y.jsx("option",{value:100,children:"100 rows"})]})]}),y.jsxs("div",{className:"form-group",children:[y.jsx("label",{children:"Pagination Style"}),y.jsxs("select",{className:"form-select",value:r.paginationStyle,onChange:a=>o("paginationStyle",a.target.value),children:[y.jsx("option",{value:"numbered",children:"Numbered (1 2 3 ...)"}),y.jsx("option",{value:"simple",children:"Simple (Previous / Next)"}),y.jsx("option",{value:"full",children:"Full (First / Previous / Next / Last)"})]})]})]})]}),y.jsxs("div",{className:"config-section",children:[y.jsx("h3",{children:"Responsive Behavior"}),y.jsxs("div",{className:"form-group",children:[y.jsxs("label",{className:"checkbox-label",children:[y.jsx("input",{type:"checkbox",checked:r.horizontalScroll,onChange:a=>o("horizontalScroll",a.target.checked)}),"Enable Horizontal Scroll on Mobile"]}),y.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-secondary)",marginTop:"0.25rem"},children:"Allow users to scroll sideways on narrow screens"})]})]}),y.jsxs("div",{className:"step-navigation",children:[y.jsx("button",{className:"btn btn-secondary",onClick:i,children:"Previous"}),y.jsx("button",{className:"btn btn-primary",onClick:n,children:"Next Step"})]})]})},WE=(t,e)=>{if(!t||t==="")return"";const n=parseFloat(t);if(isNaN(n))return t;switch(e.dataType){case"number":const i=n.toFixed(e.decimals);return e.thousandSeparator?i.replace(/\B(?=(\d{3})+(?!\d))/g,","):i;case"currency":return`${e.currencySymbol}${n.toFixed(e.decimals)}`;case"percentage":return`${n.toFixed(e.decimals)}%`;default:return t}},yd=(t,e,n)=>{const i=n[e];return i?WE(t,i):t},UE=(t,e,n="ascending")=>e<0||t.length===0?t:[...t].sort((i,r)=>{const s=i[e]||"",o=r[e]||"",a=parseFloat(String(s).replace(/[$€£¥,%,]/g,"")),l=parseFloat(String(o).replace(/[$€£¥,%,]/g,""));return!isNaN(a)&&!isNaN(l)?n==="ascending"?a-l:l-a:n==="ascending"?Str
85ing(s).localeCompare(String(o)):String(o).localeCompare(String(s))}),GE=(t,e)=>t.enableSorting?`
86  // Sorting
87  let currentSort = { column: ${t.defaultSortColumn}, direction: '${t.defaultSortDirection}' };
88
89  function sortTable(columnIndex, direction) {
90    const rows = [...filteredRows];
91
92    rows.sort((a, b) => {
93      let aVal = a.cells[columnIndex].textContent.trim();
94      let bVal = b.cells[columnIndex].textContent.trim();
95
96      // Remove currency symbols and formatting
97      aVal = aVal.replace(/[$€£¥,%,]/g, '');
98      bVal = bVal.replace(/[$€£¥,%,]/g, '');
99
100      const aNum = parseFloat(aVal);
101      const bNum = parseFloat(bVal);
102
103      if (!isNaN(aNum) && !isNaN(bNum)) {
104        return direction === 'ascending' ? aNum - bNum : bNum - aNum;
105      }
106
107      return direction === 'ascending'
108        ? aVal.localeCompare(bVal)
109        : bVal.localeCompare(aVal);
110    });
111
112    filteredRows = rows;
113    currentSort = { column: columnIndex, direction };
114    renderTable();
115  }
116
117  table.querySelectorAll('th.sortable').forEach((th, index) => {
118    th.addEventListener('click', () => {
119      const newDirection = currentSort.column === index && currentSort.direction === 'ascending'
120        ? 'descending'
121        : 'ascending';
122
123      // Update UI
124      table.querySelectorAll('th').forEach(h => {
125        h.classList.remove('sort-asc', 'sort-desc');
126      });
127      th.classList.add(newDirection === 'ascending' ? 'sort-asc' : 'sort-desc');
128
129      sortTable(index, newDirection);
130    });
131  });
132
133  // Apply default sort if specified
134  if (${t.defaultSortColumn} >= 0) {
135    const defaultHeader = document.querySelector('th[data-column="${t.defaultSortColumn}"]');
136    if (defaultHeader) {
137      defaultHeader.classList.add('sort-${t.defaultSortDirection==="ascending"?"asc":"desc"}');
138      sortTable(${t.defaultSortColumn}, '${t.defaultSortDirection}');
139    }
140  }
141  `:"",YE=t=>{const{data:e,columns:n,style:i,interactivity:r}=t,s=()=>e.firstRowHeader&&e.cells.length>0?e.cells[0]:n.map(c=>c.header),o=()=>{const c=r.enableSorting||r.enableSearch||r.enablePagination,d=s();return`<!--
142  Generated by Table Builder
143  Built by Webnomads — https://www.webnomads.com
144  Need custom Webflow development? Contact us!
145-->
146
147<style>
148${a()}
149</style>
150
151<div class="table-container">
152  ${r.enableSearch?`<div class="search-container"><input type="text" class="table-search" placeholder="${r.searchPlaceholder}"></div>`:""}
153
154  <div class="table-wrapper">
155    <table class="data-table">
156      <thead>
157        <tr>
158          ${d.map((h,g)=>`<th data-column="${g}"${r.enableSorting?' class="sortable"':""}>${h}${r.enableSorting?'<span class="sort-icon"></span>':""}</th>`).join("")}
159        </tr>
160      </thead>
161      <tbody>
162        ${e.cells.slice(e.firstRowHeader?1:0).map(h=>`
163        <tr>
164          ${h.map((g,v)=>{const b=v===0&&e.firstColumnHeader,p=r.stackOnMobile?` data-label="${d[v]}"`:"";return`<${b?"th":"td"}${p}${n[v].align!=="left"?` style="text-align: ${n[v].align}"`:""}>${yd(g,v,n)}</${b?"th":"td"}>`}).join("")}
165        </tr>`).join("")}
166      </tbody>
167    </table>
168  </div>
169
170  ${r.enablePagination?'<div class="pagination-container"></div>':""}
171</div>
172
173${c?"<script>"+l()+"<\/script>":""}`},a=()=>`.table-container {
174  width: ${i.containerWidth};
175  margin: 0 auto;
176  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
177}
178
179.table-wrapper {
180  ${i.stickyHeader?"overflow: auto; max-height: 500px;":`overflow: ${i.overflow};`}
181  background: ${i.bodyBgColor};
182  border-radius: ${i.borderRadius}px;
183  ${i.boxShadow?"box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);":""}
184  ${i.outerBorder?`border: ${i.outerBorderWidth}px solid ${i.outerBorderColor};`:""}
185}
186
187${i.stickyHeader?`.data-table thead {
188  position: sticky;
189  top: 0;
190  z-index: 10;
191}`:""}
192
193.data-table {
194  width: 100%;
195  border-collapse: collapse;
196}
197
198.data-table thead th {
199  background: ${i.headerBgColor};
200  color: ${i.headerTextColor};
201  font-size: ${i.headerFontSize}px;
202  font-weight: ${vd[i.headerFontWeight]};
203  padding: ${i.headerPadding}px;
204  text-align: left;
205  ${i.headerBorderBottom?`border-bottom: ${i.headerBorderBottom}px solid ${i.headerBorderColor};`:""}
206  ${i.stickyHeader?"position: sticky; top: 0; z-index: 10;":""}
207  ${i.columnDividers?`border-right: 1px solid ${i.columnDividerColor};`:""}
208}
209
210${i.columnDividers?`.data-table thead th:last-child {
211  border-right: none;
212}`:""}
213
214.data-table tbody td,
215.data-table tbody th {
216  padding: ${i.bodyPadding}px;
217  font-size: ${i.bodyFontSize}px;
218  color: ${i.bodyTextColor};
219  ${i.rowDividers?`border-bottom: 1px solid ${i.rowDividerColor};`:""}
220  ${i.columnDividers?`border-right: 1px solid ${i.columnDividerColor};`:""}
221}
222
223${i.columnDividers?`.data-table tbody td:last-child,
224.data-table tbody th:last-child {
225  border-right: none;
226}`:""}
227
228.data-table tbody th {
229  font-weight: 600;
230  background: ${i.headerBgColor};
231  color: ${i.headerTextColor};
232}
233
234${i.alternateRowColor?`.data-table tbody tr:nth-child(even) {
235  background: ${i.alternateRowBgColor};
236}`:""}
237
238${i.rowHover?`.data-table tbody tr:hover {
239  background: ${i.hoverBgColor};
240}`:""}
241
242.data-table thead th.sortable {
243  cursor: pointer;
244  user-select: none;
245  position: relative;
246  padding-right: ${i.headerPadding+20}px;
247}
248
249.sort-icon {
250  position: absolute;
251  right: ${i.headerPadding}px;
252  top: 50%;
253  transform: translateY(-50%);
254  opacity: 0.5;
255}
256
257.sort-icon::after {
258  content: '${r.sortIconStyle==="arrows"?"↕":r.sortIconStyle==="triangles"?"▲":"^"}';
259}
260
261.data-table thead th.sort-asc .sort-icon::after {
262  content: '${r.sortIconStyle==="arrows"?"↑":r.sortIconStyle==="triangles"?"▲":"^"}';
263  opacity: 1;
264}
265
266.data-table thead th.sort-desc .sort-icon::after {
267  content: '${r.sortIconStyle==="arrows"?"↓":r.sortIconStyle==="triangles"?"▼":"v"}';
268  opacity: 1;
269}
270
271.search-container {
272  margin: ${r.searchPosition==="above"?"0 0 1rem 0":"1rem 0 0 0"};
273}
274
275.table-search {
276  width: 100%;
277  padding: 0.5rem 0.75rem;
278  border: 1px solid #e5e7eb;
279  border-radius: 6px;
280  font-size: 14px;
281}
282
283.pagination-container {
284  margin-top: 1rem;
285  display: flex;
286  justify-content: center;
287  gap: 0.5rem;
288}
289
290.pagination-btn {
291  padding: 0.5rem 0.75rem;
292  border: 1px solid #e5e7eb;
293  background: white;
294  border-radius: 4px;
295  cursor: pointer;
296  font-size: 14px;
297}
298
299.pagination-btn:hover {
300  background: #f9fafb;
301}
302
303.pagination-btn.active {
304  background: ${i.headerBgColor};
305  color: ${i.headerTextColor};
306  border-color: ${i.headerBgColor};
307}
308
309.pagination-btn:disabled {
310  opacity: 0.5;
311  cursor: not-allowed;
312}
313
314@media (max-width: 768px) {
315  ${r.hideColumnsOnMobile.map(c=>`.data-table th:nth-child(${c+1}),
316  .data-table td:nth-child(${c+1}) {
317    display: none;
318  }`).join(`
319
320  `)}
321
322  ${r.stackOnMobile?`.table-wrapper {
323    overflow: visible;
324  }
325
326  .data-table thead {
327    display: none;
328  }
329
330  .data-table tbody tr {
331    display: block;
332    margin-bottom: 1rem;
333    border: 1px solid #e5e7eb;
334    border-radius: 8px;
335  }
336
337  .data-table tbody td,
338  .data-table tbody th {
339    display: block;
340    text-align: right;
341    padding: 0.5rem;
342    border: none;
343    border-bottom: 1px solid #e5e7eb;
344  }
345
346  .data-table tbody td:last-child,
347  .data-table tbody th:last-child {
348    border-bottom: none;
349  }
350
351  .data-table tbody td::before,
352  .data-table tbody th::before {
353    content: attr(data-label);
354    float: left;
355    font-weight: 600;
356  }`:""}
357}`,l=()=>{const c=r.enableSearch,d=r.enableSorting,f=r.enablePagination;return!c&&!d&&!f?"":`
358// Table functionality
359(function() {
360  const table = document.querySelector('.data-table');
361  const tbody = table.querySelector('tbody');
362  let allRows = Array.from(tbody.querySelectorAll('tr'));
363  let filteredRows = [...allRows];
364  let currentPage = 1;
365  const rowsPerPage = ${r.rowsPerPage};
366
367  ${f?u():""}
368
369  function renderTable() {
370    tbody.innerHTML = '';
371
372    ${f?`
373    const start = (currentPage - 1) * rowsPerPage;
374    const end = start + rowsPerPage;
375    const pageRows = filteredRows.slice(start, end);
376    `:"const pageRows = filteredRows;"}
377
378    pageRows.forEach(row => tbody.appendChild(row.cloneNode(true)));
379
380    ${f?"renderPagination();":""}
381  }
382
383  ${d?GE(r):""}
384
385  ${c?`
386  // Search
387  const searchInput = document.querySelector('.table-search');
388  searchInput?.addEventListener('input', (e) => {
389    const query = e.target.value.toLowerCase();
390    filteredRows = allRows.filter(row => {
391      return Array.from(row.cells).some(cell =>
392        cell.textContent.toLowerCase().includes(query)
393      );
394    });
395    currentPage = 1;
396    renderTable();
397  });
398  `:""}
399
400  // Initial render (only if sorting doesn't handle it)
401  ${d?"":"renderTable();"}
402})();
403`},u=()=>`
404  // Pagination
405  function renderPagination() {
406    const totalPages = Math.ceil(filteredRows.length / rowsPerPage);
407    const container = document.querySelector('.pagination-container');
408    if (!container) return;
409
410    container.innerHTML = '';
411
412    ${r.paginationStyle==="full"||r.paginationStyle==="simple"?`
413    if (currentPage > 1) {
414      ${r.paginationStyle==="full"?`
415      const first = document.createElement('button');
416      first.className = 'pagination-btn';
417      first.textContent = 'First';
418      first.onclick = () => { currentPage = 1; renderTable(); };
419      container.appendChild(first);
420      `:""}
421
422      const prev = document.createElement('button');
423      prev.className = 'pagination-btn';
424      prev.textContent = 'Previous';
425      prev.onclick = () => { currentPage--; renderTable(); };
426      container.appendChild(prev);
427    }
428    `:""}
429
430    ${r.paginationStyle==="numbered"?`
431    for (let i = 1; i <= totalPages; i++) {
432      const btn = document.createElement('button');
433      btn.className = 'pagination-btn' + (i === currentPage ? ' active' : '');
434      btn.textContent = i;
435      btn.onclick = () => { currentPage = i; renderTable(); };
436      container.appendChild(btn);
437    }
438    `:""}
439
440    ${r.paginationStyle==="full"||r.paginationStyle==="simple"?`
441    if (currentPage < totalPages) {
442      const next = document.createElement('button');
443      next.className = 'pagination-btn';
444      next.textContent = 'Next';
445      next.onclick = () => { currentPage++; renderTable(); };
446      container.appendChild(next);
447
448      ${r.paginationStyle==="full"?`
449      const last = document.createElement('button');
450      last.className = 'pagination-btn';
451      last.textContent = 'Last';
452      last.onclick = () => { currentPage = totalPages; renderTable(); };
453      container.appendChild(last);
454      `:""}
455    }
456    `:""}
457  }
458  `;return{generateTableHTML:o,generateTableCSS:a,generateTableJS:l}},XE=()=>{const{config:t,prevStep:e}=Si(),{data:n,columns:i,style:r,interactivity:s}=t,[o,a]=M.useState(!1),{generateTableHTML:l}=YE(t),c=n.firstRowHeader&&n.cells.length>0?n.cells[0]:i.map(f=>f.header),d=async()=>{const f=l();try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(f);else{const h=document.createElement("textarea");h.value=f,h.style.position="fixed",h.style.left="-999999px",h.style.top="-999999px",document.body.appendChild(h),h.focus(),h.select(),document.execCommand("copy"),h.remove()}a(!0),setTimeout(()=>a(!1),2e3)}catch(h){console.error("Failed to copy:",h);const g=document.createElement("textarea");g.value=f,g.style.position="fixed",g.style.left="-999999px",g.style.top="-999999px",document.body.appendChild(g),g.focus(),g.select();try{document.execCommand("copy"),a(!0),setTimeout(()=>a(!1),2e3)}catch(v){console.error("Fallback copy failed:",v)}g.remove()}};return y.jsxs("div",{className:"step-content",children:[y.jsxs("div",{className:"step-header",children:[y.jsx("h2",{children:"Preview & Export"}),y.jsx("p",{children:"Review your table and copy the code for Webflow"})]}),y.jsxs("div",{className:"config-section",children:[y.jsx("h3",{children:"Preview"}),y.jsx("div",{style:{maxHeight:"500px",overflow:"auto",background:"#ffffff",borderRadius:"8px",border:"1px solid #e5e7eb"},children:y.jsx("div",{style:{padding:"2rem"},children:y.jsx("div",{style:{width:r.containerWidth,margin:"0 auto"},children:y.jsx("div",{style:{overflow:r.overflow,background:r.bodyBgColor,borderRadius:`${r.borderRadius}px`,boxShadow:r.boxShadow?"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)":"none",border:r.outerBorder?`${r.outerBorderWidth}px solid ${r.outerBorderColor}`:"none"},children:y.jsxs("table",{style:{width:"100%",borderCollapse:"collapse"},children:[y.jsx("thead",{children:y.jsx("tr",{children:c.map((f,h)=>y.jsx("th",{style:{background:r.headerBgColor,color:r.headerTextColor,fontSize:`${r.headerFontSize}px`,fontWeight:vd[r.headerFontWeight],padding:`${r.headerPadding}px`,textAlign:"left",borderBottom:r.headerBorderBottom?`${r.headerBorderBottom}px solid ${r.headerBorderColor}`:"none",borderRight:r.columnDividers&&h<c.length-1?`1px solid ${r.columnDividerColor}`:"none"},children:f},h))})}),y.jsx("tbody",{children:n.cells.slice(n.firstRowHeader?1:0).map((f,h)=>y.jsx("tr",{style:{background:r.alternateRowColor&&h%2===1?r.alternateRowBgColor:"transparent"},children:f.map((g,v)=>{const b=v===0&&n.firstColumnHeader,p=b?"th":"td";return y.jsx(p,{style:{padding:`${r.bodyPadding}px`,fontSize:`${r.bodyFontSize}px`,color:b?r.headerTextColor:r.bodyTextColor,background:b?r.headerBgColor:"transparent",fontWeight:b?600:"normal",textAlign:i[v].align,borderBottom:r.rowDividers?`1px solid ${r.rowDividerColor}`:"none",borderRight:r.columnDividers&&v<f.length-1?`1px solid ${r.columnDividerColor}`:"none"},children:yd(g,v,i)},v)})},h))})]})})})})})]}),y.jsxs("div",{className:"config-section",children:[y.jsx("h3",{children:"Webflow Embed Code"}),y.jsxs("p",{style:{fontSize:"0.875rem",color:"var(--color-text-secondary)",marginBottom:"1rem"},children:["Copy this code and paste it into a Webflow Embed element.",s.enableSorting||s.enableSearch||s.enablePagination?" Includes JavaScript for interactive features (sorting, search, pagination).":" Pure HTML and CSS - no JavaScript needed."]}),y.jsxs("div",{style:{position:"relative"},children:[y.jsx("pre",{style:{background:"#1e1e1e",color:"#d4d4d4",padding:"1.5rem",borderRadius:"8px",overflow:"auto",maxHeight:"400px",fontSize:"0.75rem",lineHeight:"1.5",margin:"0 0 1rem 0"},children:y.jsx("code",{children:l()})}),y.jsx("button",{className:"btn btn-primary",onClick:d,children:o?"✓ Copied!":"Copy to Clipboard"}),o&&y.jsxs("div",{style:{marginTop:"1rem",padding:"1rem",background:"rgba(105, 52, 216, 0.08)",border:"2px s
458olid var(--color-primary)",borderRadius:"var(--radius-sm)",textAlign:"center"},children:[y.jsx("p",{style:{margin:"0 0 0.5rem 0",fontSize:"0.875rem",color:"var(--color-text-primary)",fontWeight:"500"},children:"🎉 Need help implementing this?"}),y.jsx("a",{href:"https://www.webnomads.com",target:"_blank",rel:"noopener noreferrer",style:{display:"inline-block",color:"var(--color-primary-light)",textDecoration:"none",fontWeight:"600",fontSize:"0.875rem",padding:"0.5rem 1rem",borderRadius:"var(--radius-sm)",transition:"all 0.3s ease"},onMouseEnter:f=>{f.target.style.background="rgba(105, 52, 216, 0.2)",f.target.style.color="var(--color-white)"},onMouseLeave:f=>{f.target.style.background="transparent",f.target.style.color="var(--color-primary-light)"},children:"Get Expert Webflow Help →"})]})]})]}),y.jsxs("div",{className:"step-navigation",children:[y.jsx("button",{className:"btn btn-secondary",onClick:e,children:"Previous"}),y.jsx("div",{})]})]})},KE=()=>{const{config:t}=Si(),{data:e,columns:n,style:i,interactivity:r}=t,[s,o]=M.useState(""),[a,l]=M.useState(1),[u,c]=M.useState({column:r.defaultSortColumn,direction:r.defaultSortDirection});M.useEffect(()=>{l(1)},[s]),M.useEffect(()=>{c({column:r.defaultSortColumn,direction:r.defaultSortDirection})},[r.defaultSortColumn,r.defaultSortDirection]);let d=e.cells.slice(e.firstRowHeader?1:0);if(r.enableSearch&&s.trim()){const b=s.toLowerCase();d=d.filter(p=>p.some(m=>m.toLowerCase().includes(b)))}r.enableSorting&&u.column!==-1&&(d=UE(d,u.column,u.direction));const f=r.enablePagination?Math.ceil(d.length/r.rowsPerPage):1,h=r.enablePagination?d.slice((a-1)*r.rowsPerPage,a*r.rowsPerPage):d,g=b=>{r.enableSorting&&c(p=>({column:b,direction:p.column===b&&p.direction==="ascending"?"descending":"ascending"}))},v=b=>{if(!r.enableSorting)return null;const p=r.sortIconStyle||"arrows",m=u.column===b,x={display:"inline-block",marginLeft:"6px",opacity:m?1:.4,fontSize:"12px",verticalAlign:"middle"};return p==="arrows"?m?y.jsx("span",{style:x,children:u.direction==="ascending"?"↑":"↓"}):y.jsx("span",{style:x,children:"↕"}):m?y.jsx("span",{style:x,children:u.direction==="ascending"?"▲":"▼"}):y.jsx("span",{style:x,children:"▲"})};return y.jsxs("div",{className:"table-preview-container",children:[y.jsx("h3",{children:"Live Preview"}),r.enableSearch&&y.jsx("div",{style:{marginBottom:"1rem"},children:y.jsx("input",{type:"text",placeholder:r.searchPlaceholder||"Search table...",value:s,onChange:b=>o(b.target.value),style:{width:"100%",padding:"0.5rem 0.75rem",border:"1px solid #e5e7eb",borderRadius:"6px",fontSize:"14px"}})}),y.jsx("div",{className:"table-preview-wrapper",children:y.jsx("div",{style:{overflow:i.overflow,maxHeight:i.stickyHeader?"400px":"none",background:i.bodyBgColor,borderRadius:`${i.borderRadius}px`,border:"1px solid #e5e7eb"},children:y.jsxs("table",{className:"preview-table",style:{width:"100%",borderCollapse:"collapse"},children:[e.firstRowHeader&&y.jsx("thead",{style:{position:i.stickyHeader?"sticky":"static",top:i.stickyHeader?0:"auto",zIndex:i.stickyHeader?10:"auto"},children:y.jsx("tr",{children:n.map((b,p)=>{var m;return y.jsxs("th",{onClick:()=>g(p),style:{background:i.headerBgColor,color:i.headerTextColor,fontSize:`${i.headerFontSize}px`,fontWeight:vd[i.headerFontWeight],padding:`${i.headerPadding}px`,textAlign:b.align,borderRight:i.columnDividers&&p<n.length-1?`1px solid ${i.columnDividerColor}`:"none",cursor:r.enableSorting?"pointer":"default",userSelect:"none"},children:[((m=e.cells[0])==null?void 0:m[p])||b.header,v(p)]},p)})})}),y.jsx("tbody",{children:h.map((b,p)=>y.jsx("tr",{className:"preview-table-row",style:{backgroundColor:i.alternateRowColor&&p%2===1?i.alternateRowBgColor:"transparent"},children:b.map((m,x)=>{var T;const S=x===0&&e.firstColumnHeader,_=S?"th":"td";return y.jsx(_,{style:{padding:`${i.bodyPadding}px`,fontSize:`${i.bodyFontSize}px`,color:S?i.headerTextColor:i.bodyTextColor,background:S?i.headerBgColor:"transparent",fontWeight:S?600:"normal",textAlign:((T=n[x])==null?void 0:T.align)||"left",borderBottom:i.rowDividers?`1px solid ${i.rowDividerColor}`:"none",borderRight:i.columnDividers&&x<b.length-1?`1px solid ${i.columnDividerColor}`:"none"},children:yd(m,x,n)},x)})},p))})]})})}),r.enablePagination&&f>1&&y.jsxs("div",{style:{marginTop:"1rem",display:"flex",justifyContent:"center",gap:"0.5rem"},children:[r.paginationStyle==="full"&&y.jsx("button",{onClick:()=>l(1),disabled:a===1,style:{padding:"0.5rem 0.75rem",border:"1px solid #e5e7eb",background:"white",borderRadius:"4px",cursor:a===1?"not-allowed":"pointer",opacity:a===1?.5:1},children:"First"}),(r.paginationStyle==="simple"||r.paginationStyle==="full")&&y.jsx("button",{onClick:()=>l(b=>Math.max(1,b-1)),disabled:a===1,style:{padding:"0.5rem 0.75rem",border:"1px solid #e5e7eb",background:"white",borderRadius:"4px",cursor:a===1?"not-allowed":"pointer",opacity:a===1?.5:1},children:"Previous"}),r.paginationStyle==="numbered"&&y.jsx(y.Fragment,{children:Array.from({length:f},(b,p)=>p+1).map(b=>y.jsx("button",{onClick:()=>l(b),style:{padding:"0.5rem 0.75rem",border:"1px solid #e5e7eb",background:b===a?i.headerBgColor:"white",color:b===a?i.headerTextColor:"#000",borderRadius:"4px",cursor:"pointer"},children:b},b))}),(r.paginationStyle==="simple"||r.paginationStyle==="full")&&y.jsx("button",{onClick:()=>l(b=>Math.min(f,b+1)),disabled:a===f,style:{padding:"0.5rem 0.75rem",border:"1px solid #e5e7eb",background:"white",borderRadius:"4px",cursor:a===f?"n
458ot-allowed":"pointer",opacity:a===f?.5:1},children:"Next"}),r.paginationStyle==="full"&&y.jsx("button",{onClick:()=>l(f),disabled:a===f,style:{padding:"0.5rem 0.75rem",border:"1px solid #e5e7eb",background:"white",borderRadius:"4px",cursor:a===f?"not-allowed":"pointer",opacity:a===f?.5:1},children:"Last"})]}),y.jsx("style",{children:`
459        .preview-table-row {
460          transition: background-color 0.2s ease;
461        }
462
463        ${i.rowHover?`
464          .preview-table-row:hover {
465            background-color: ${i.hoverBgColor} !important;
466          }
467        `:""}
468      `}),y.jsxs("div",{className:"help-cta",children:[y.jsx("p",{children:"Need help or custom implementation?"}),y.jsx("a",{href:"https://www.webnomads.com",target:"_blank",rel:"noopener noreferrer",className:"cta-link",children:"Feel free to reach out →"})]})]})},ry=()=>{const{currentStep:t}=Si(),e=()=>{switch(t){case 1:return y.jsx(hp,{});case 2:return y.jsx(VE,{});case 3:return y.jsx(HE,{});case 4:return y.jsx(XE,{});default:return y.jsx(hp,{})}};return y.jsx("div",{className:"configurator-wrapper",children:y.jsxs("div",{className:"configurator-container",children:[y.jsx(zE,{}),y.jsxs("div",{className:"configurator-content",children:[y.jsx("div",{className:"step-panel",children:e()}),y.jsx("div",{className:"preview-panel",children:y.jsx(KE,{})})]})]})})},QE=()=>y.jsx(iy,{children:y.jsx(ry,{})}),qE=()=>y.jsx("div",{className:"embed-container",children:y.jsx(iy,{children:y.jsx(ry,{})})});function JE(){return y.jsx(tw,{children:y.jsxs(Lb,{children:[y.jsx(So,{path:"/",element:y.jsx(If,{children:y.jsx(fw,{})})}),y.jsx(So,{path:"/table-builder",element:y.jsx(If,{builderName:"Table Builder",children:y.jsx(QE,{})})}),y.jsx(So,{path:"/embed",element:y.jsx(qE,{})})]})})}Bl.createRoot(document.getElementById("root")).render(y.jsx(_e.StrictMode,{children:y.jsx(JE,{})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.