PageSourceSearch

https://www.silverstripe.com/_resources/themes/app/dist/app.js?m=1790539485

js silverstripe.com collected 2026-10-01 13:03:40 UTC 1,416,509 bytes, 2 lines download raw bytes

1/*! For license information please see app.js.LICENSE.txt */
2(self.webpackChunksscom=self.webpackChunksscom||[]).push([[895],{33(t,e,i){"use strict";function s(t,e){const i=Object.create(null),s=t.split(",");for(let t=0;t<s.length;t++)i[s[t]]=!0;return e?t=>!!i[t.toLowerCase()]:t=>!!i[t]}i.d(e,{$3:()=>D,$H:()=>nt,BU:()=>m,BX:()=>v,Bm:()=>H,C4:()=>u,CP:()=>O,DY:()=>rt,Ft:()=>r,Gv:()=>X,Gx:()=>d,Hl:()=>n,J$:()=>b,Kg:()=>z,MZ:()=>C,Mp:()=>P,NO:()=>M,OC:()=>f,Oj:()=>A,PT:()=>Q,Qd:()=>U,Ro:()=>at,SU:()=>q,TF:()=>_,Tg:()=>et,Tn:()=>F,Tr:()=>a,We:()=>ct,X$:()=>L,Y2:()=>y,ZH:()=>it,Zf:()=>G,_B:()=>p,cy:()=>R,gX:()=>o,jh:()=>N,lk:()=>K,nC:()=>g,pD:()=>s,rU:()=>st,tE:()=>E,u3:()=>w,vM:()=>B,v_:()=>S,yI:()=>$,yL:()=>W,yQ:()=>ot});const n={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},r=s("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function o(t,e=0,i=t.length){let s=t.split(/(\r?\n)/);const n=s.filter((t,e)=>e%2==1);s=s.filter((t,e)=>e%2==0);let r=0;const o=[];for(let t=0;t<s.length;t++)if(r+=s[t].length+(n[t]&&n[t].length||0),r>=e){for(let a=t-2;a<=t+2||i>r;a++){if(a<0||a>=s.length)continue;const l=a+1;o.push(`${l}${" ".repeat(Math.max(3-String(l).length,0))}|  ${s[a]}`);const c=s[a].length,h=n[a]&&n[a].length||0;if(a===t){const t=e-(r-(c+h)),s=Math.max(1,i>r?c-t:i-e);o.push("   |  "+" ".repeat(t)+"^".repeat(s))}else if(a>t){if(i>r){const t=Math.max(Math.min(i-r,c),1);o.push("   |  "+"^".repeat(t))}r+=c+h}}break}return o.join("\n")}function a(t){if(R(t)){const e={};for(let i=0;i<t.length;i++){const s=t[i],n=z(s)?d(s):a(s);if(n)for(const t in n)e[t]=n[t]}return e}return z(t)||X(t)?t:void 0}const l=/;(?![^(]*\))/g,c=/:([^]+)/,h=/\/\*.*?\*\//gs;function d(t){const e={};return t.replace(h,"").split(l).forEach(t=>{if(t){const i=t.split(c);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function u(t){let e="";if(z(t))e=t;else if(R(t))for(let i=0;i<t.length;i++){const s=u(t[i]);s&&(e+=s+" ")}else if(X(t))for(const i in t)t[i]&&(e+=i+" ");return e.trim()}function p(t){if(!t)return null;let{class:e,style:i}=t;return e&&!z(e)&&(t.class=u(e)),i&&(t.style=a(i)),t}const f=s("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),g=s("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),m=s("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),x="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",b=s(x);function y(t){return!!t||""===t}function v(t,e){if(t===e)return!0;let i=j(t),s=j(e);if(i||s)return!(!i||!s)&&t.getTime()===e.getTime();if(i=H(t),s=H(e),i||s)return t===e;if(i=R(t),s=R(e),i||s)return!(!i||!s)&&function(t,e){if(t.length!==e.length)return!1;let i=!0;for(let s=0;i&&s<t.length;s++)i=v(t[s],e[s]);return i}(t,e);if(i=X(t),s=X(e),i||s){if(!i||!s)return!1;if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in t){const s=t.hasOwnProperty(i),n=e.hasOwnProperty(i);if(s&&!n||!s&&n||!v(t[i],e[i]))return!1}}return String(t)===String(e)}function w(t,e){return t.findIndex(t=>v(t,e))}const S=t=>z(t)?t:null==t?"":R(t)||X(t)&&(t.toString===Y||!F(t.toString))?JSON.stringify(t,k,2):String(t),k=(t,e)=>e&&e.__v_isRef?k(t,e.value):N(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[e,i])=>(t[`${e} =>`]=i,t),{})}:B(e)?{[`Set(${e.size})`]:[...e.values()]}:!X(e)||R(e)||U(e)?e:String(e),C={},A=[],E=()=>{},M=()=>!1,T=/^on[^a-z]/,P=t=>T.test(t),O=t=>t.startsWith("onUpdate:"),L=Object.assign,_=(t,e)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1)},I=Object.prototype.hasOwnProperty,D=(t,e)=>I.call(t,e),R=Array.isArray,N=t=>"[object Map]"===V(t),B=t=>"[object Set]"===V(t),j=t=>"[object Date]"===V(t),F=t=>"function"==typeof t,z=t=>"string"==typeof t,H=t=>"symbol"==typeof t,X=t=>null!==t&&"object"==typeof t,W=t=>X(t)&&F(t.then)&&F(t.catch),Y=Object.prototype.toString,V=t=>Y.call(t),G=t=>V(t).slice(8,-1),U=t=>"[object Object]"===V(t),$=t=>z(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,q=s(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),K=s("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Z=t=>{const e=Object.create(null);return i=>e[i]||(e[i]=t(i))},J=/-(\w)/g,Q=Z(t=>t.replace(J,(t,e)=>e?e.toUpperCase():"")),tt=/\B([A-Z])/g,et=Z(t=>t.replace(tt,"-$1").toLowerCase()),it=Z(t=>t.charAt(0).toUpperCase()+t.slice(1)),st=Z(t=>t?`on${it(t)}`:""),nt=(t,e)=>!Object.is(t,e),rt=(t,e)=>{for(let i=0;i<t.length;i++)t[i](e)},ot=(t,e,i)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:i})},at=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let lt;const ct=()=>lt||(lt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i.g?i.g:{})},72(t,e,i){"use strict";var s,n=function(){return void 0===s&&(s=Boolean(window&&document&&document.all&&!window.atob)),s},r=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);
vendor: 4,125 bytes, line 2
2if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),o=[];function a(t){for(var e=-1,i=0;i<o.length;i++)if(o[i].identifier===t){e=i;break}return e}function l(t,e){for(var i={},s=[],n=0;n<t.length;n++){var r=t[n],l=e.base?r[0]+e.base:r[0],c=i[l]||0,h="".concat(l," ").concat(c);i[l]=c+1;var d=a(h),u={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(o[d].references++,o[d].updater(u)):o.push({identifier:h,updater:m(u,e),references:1}),s.push(h)}return s}function c(t){var e=document.createElement("style"),s=t.attributes||{};if(void 0===s.nonce){var n=i.nc;n&&(s.nonce=n)}if(Object.keys(s).forEach(function(t){e.setAttribute(t,s[t])}),"function"==typeof t.insert)t.insert(e);else{var o=r(t.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(e)}return e}var h,d=(h=[],function(t,e){return h[t]=e,h.filter(Boolean).join("\n")});function u(t,e,i,s){var n=i?"":s.media?"@media ".concat(s.media," {").concat(s.css,"}"):s.css;if(t.styleSheet)t.styleSheet.cssText=d(e,n);else{var r=document.createTextNode(n),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(r,o[e]):t.appendChild(r)}}function p(t,e,i){var s=i.css,n=i.media,r=i.sourceMap;if(n?t.setAttribute("media",n):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(s+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=s;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(s))}}var f=null,g=0;function m(t,e){var i,s,n;if(e.singleton){var r=g++;i=f||(f=c(e)),s=u.bind(null,i,r,!1),n=u.bind(null,i,r,!0)}else i=c(e),s=p.bind(null,i,e),n=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return s(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;s(t=e)}else n()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=n());var i=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var s=0;s<i.length;s++){var n=a(i[s]);o[n].references--}for(var r=l(t,e),c=0;c<i.length;c++){var h=a(i[c]);0===o[h].references&&(o[h].updater(),o.splice(h,1))}i=r}}}},251(t,e){e.read=function(t,e,i,s,n){var r,o,a=8*n-s-1,l=(1<<a)-1,c=l>>1,h=-7,d=i?n-1:0,u=i?-1:1,p=t[e+d];for(d+=u,r=p&(1<<-h)-1,p>>=-h,h+=a;h>0;r=256*r+t[e+d],d+=u,h-=8);for(o=r&(1<<-h)-1,r>>=-h,h+=s;h>0;o=256*o+t[e+d],d+=u,h-=8);if(0===r)r=1-c;else{if(r===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,s),r-=c}return(p?-1:1)*o*Math.pow(2,r-s)},e.write=function(t,e,i,s,n,r){var o,a,l,c=8*r-n-1,h=(1<<c)-1,d=h>>1,u=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=s?0:r-1,f=s?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+d>=1?u/l:u*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=h?(a=0,o=h):o+d>=1?(a=(e*l-1)*Math.pow(2,n),o+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;t[i+p]=255&a,p+=f,a/=256,n-=8);for(o=o<<n|a,c+=n;c>0;t[i+p]=255&o,p+=f,o/=256,c-=8);t[i+p-f]|=128*g}},258(t,e,i){var s;self,s=(t,e)=>(()=>{"use strict";var i={879:e=>{e.exports=t},744:t=>{t.exports=e}},s={};function n(t){var e=s[t];if(void 0!==e)return e.exports;var r=s[t]={exports:{}};return i[t](r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{Chart:()=>l,default:()=>c});var t=n(879),e=n.n(t),i=function t(i,s){var n=e().isArray(i)?[]:{};function r(i,r){!e().isObject(i,!s)||e().isClass(i)||e().isDOMElement(i)?n[r]=i:n[r]=t(i,s)}
vendor: 1,717 bytes, line 2
2return e().isArray(i)?i.forEach(function(t,e){return r(t,e)}):e().objectEach(i,r),n},s=n(744);function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}const a=function(t){var e=this;return{render:function(){return(0,s.h)("div",{ref:"chart"})},beforeUnmount:function(){var t;return null==e||null===(t=e.chart)||void 0===t?void 0:t.destroy()},props:{constructorType:{type:String,default:"chart"},options:{type:Object,required:!0},callback:Function,updateArgs:{type:Array,default:function(){return[!0,!0]}},highcharts:{type:Object},deepCopyOnUpdate:{type:Boolean,default:!0}},watch:{options:{handler:function(t){var e;(e=this.chart).update.apply(e,[i(t,this.deepCopyOnUpdate)].concat(function(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.updateArgs)))},deep:!0}},mounted:function(){var e=this.highcharts||t;e[this.constructorType]?this.options?this.chart=e[this.constructorType](this.$refs.chart,i(this.options,!0),this.callback?this.callback:null):console.error('The "options" parameter was not passed.'):console.error("'".concat(this.constructorType,"' constructor-type is 
2incorrect. Sometimes this error is caused by the fact, that the corresponding module wasn't imported."))}}};var l=a(e());function c(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(i.tagName||"highcharts",a(i.highcharts||e()))}})(),r})(),t.exports=s(i(783),i(934))},262(t,e){"use strict";e.A=(t,e)=>{const i=t.__vccOpts||t;for(const[t,s]of e)i[t]=s;return i}},287(t,e,i){"use strict";var s=i(526),n=i(251),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=l,e.IS=50;var o=2147483647;function a(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(t,e,i){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return c(t,e,i)}function c(t,e,i){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var i=0|g(t,e),s=a(i),n=s.write(t,e);n!==i&&(s=s.slice(0,n));return s}(t,e);if(ArrayBuffer.isView(t))return function(t){if(H(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return u(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(H(t,ArrayBuffer)||t&&H(t.buffer,ArrayBuffer))return p(t,e,i);if("undefined"!=typeof SharedArrayBuffer&&(H(t,SharedArrayBuffer)||t&&H(t.buffer,SharedArrayBuffer)))return p(t,e,i);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var s=t.valueOf&&t.valueOf();if(null!=s&&s!==t)return l.from(s,e,i);var n=function(t){if(l.isBuffer(t)){var e=0|f(t.length),i=a(e);return 0===i.length||t.copy(i,0,0,e),i}if(void 0!==t.length)return"number"!=typeof t.length||X(t.length)?a(0):u(t);if("Buffer"===t.type&&Array.isArray(t.data))return u(t.data)}(t);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return l.from(t[Symbol.toPrimitive]("string"),e,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function d(t){return h(t),a(t<0?0:0|f(t))}function u(t){for(var e=t.length<0?0:0|f(t.length),i=a(e),s=0;s<e;s+=1)i[s]=255&t[s];return i}function p(t,e,i){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(i||0))throw new RangeError('"length" is outside of buffer bounds');var s;return s=void 0===e&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,e):new Uint8Array(t,e,i),Object.setPrototypeOf(s,l.prototype),s}function f(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function g(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||H(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var i=t.length,s=arguments.length>2&&!0===arguments[2];if(!s&&0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return F(t).length;default:if(n)return s?-1:j(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,i){var s=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,i);case"utf8":case"utf-8":return E(this,e,i);case"ascii":return T(this,e,i);case"latin1":case"binary":return P(this,e,i);case"base64":return A(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,i);default:if(s)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),s=!0}}function x(t,e,i){var s=t[e];t[e]=t[i],t[i]=s}function b(t,e,i,s,n){if(0===t.length)return-1;if("string"==typeof i?(s=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),X(i=+i)&&(i=n?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(n)return-1;i=t.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof e&&(e=l.from(e,s)),l.isBuffer(e))return 0===e.length?-1:y(t,e,i,s,n);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):y(t,[e],i,s,n);throw new TypeError("val must be string, number or Buffer")}function y(t,e,i,s,n){var r,o=1,a=t.length,l=e.length;if(void 0!==s&&("ucs2"===(s=String(s).toLowerCase())||"ucs-2"===s||"utf16le"===s||"utf-16le"===s)){if(t.length<2||e.length<2)return-1;o=2,a/=2,l/=2,i/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n){var h=-1;for(r=i;r<a;r++)if(c(t,r)===c(e,-1===h?0:r-h)){if(-1===h&&(h=r),r-h+1===l)return h*o}else-1!==h&&(r-=r-h),h=-1}else for(i+l>a&&(i=a-l),r=i;r>=0;r--){for(var d=!0,u=0;u<l;u++)if(c(t,r+u)!==c(e,u)){d=!1;break}if(d)return r}return-1}function v(t,e,i,s){i=Number(i)||0;var n=t.length-i;s?(s=Number(s))>n&&(s=n):s=n;var r=e.length;s>r/2&&(s=r/2);for(var o=0;o<s;++o){var a=parseInt(e.substr(2*o,2),16);if(X(a))return o;t[i+o]=a}return o}function w(t,e,i,s){return z(j(e,t.length-i),t,i,s)}function S(t,e,i,s){return z(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,i,s)}function k(t,e,i,s){return z(F(e),t,i,s)}function C(t,e,i,s){return z(function(t,e){for(var i,s,n,r=[],o=0;o<t.length&&!((e-=2)<0);++o)s=(i=t.charCodeAt(o))>>8,n=i%256,r.push(n),r.push(s);return r}(e,t.length-i),t,i,s)}function A(t,e,i){return 0===e&&i===t.length?s.fromByteArray(t):s.fromByteArray(t.slice(e,i))}function E(t,e,i){i=Math.min(t.length,i);for(var s=[],n=e;n<i;){var r,o,a,l,c=t[n],h=null,d=c>239?4:c>223?3:c>191?2:1;if(n+d<=i)switch(d){case 1:c<128&&(h=c);break;
vendor: 4,184 bytes, line 2
2case 2:128==(192&(r=t[n+1]))&&(l=(31&c)<<6|63&r)>127&&(h=l);break;case 3:r=t[n+1],o=t[n+2],128==(192&r)&&128==(192&o)&&(l=(15&c)<<12|(63&r)<<6|63&o)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:r=t[n+1],o=t[n+2],a=t[n+3],128==(192&r)&&128==(192&o)&&128==(192&a)&&(l=(15&c)<<18|(63&r)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(h=l)}null===h?(h=65533,d=1):h>65535&&(h-=65536,s.push(h>>>10&1023|55296),h=56320|1023&h),s.push(h),n+=d}return function(t){var e=t.length;if(e<=M)return String.fromCharCode.apply(String,t);var i="",s=0;for(;s<e;)i+=String.fromCharCode.apply(String,t.slice(s,s+=M));return i}(s)}l.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(t,e,i){return c(t,e,i)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(t,e,i){return function(t,e,i){return h(t),t<=0?a(t):void 0!==e?"string"==typeof i?a(t).fill(e,i):a(t).fill(e):a(t)}(t,e,i)},l.allocUnsafe=function(t){return d(t)},l.allocUnsafeSlow=function(t){return d(t)},l.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==l.prototype},l.compare=function(t,e){if(H(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),H(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var i=t.length,s=e.length,n=0,r=Math.min(i,s);n<r;++n)if(t[n]!==e[n]){i=t[n],s=e[n];break}return i<s?-1:s<i?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var s=l.allocUnsafe(e),n=0;for(i=0;i<t.length;++i){var r=t[i];if(H(r,Uint8Array))n+r.length>s.length?l.from(r).copy(s,n):Uint8Array.prototype.set.call(s,r,n);else{if(!l.isBuffer(r))throw new TypeError('"list" argument must be an Array of Buffers');r.copy(s,n)}n+=r.length}return s},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)x(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)x(this,e,e+3),x(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)x(this,e,e+7),x(this,e+1,e+6),x(this,e+2,e+5),x(this,e+3,e+4);return this},l.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?E(this,0,t):m.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",i=e.IS;return t=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(t+=" ... "),"<Buffer "+t+">"},r&&(l.prototype[r]=l.prototype.inspect),l.prototype.compare=function(t,e,i,s,n){if(H(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);
vendor: 4,085 bytes, line 2
2if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===s&&(s=0),void 0===n&&(n=this.length),e<0||i>t.length||s<0||n>this.length)throw new RangeError("out of range index");if(s>=n&&e>=i)return 0;if(s>=n)return-1;if(e>=i)return 1;if(this===t)return 0;for(var r=(n>>>=0)-(s>>>=0),o=(i>>>=0)-(e>>>=0),a=Math.min(r,o),c=this.slice(s,n),h=t.slice(e,i),d=0;d<a;++d)if(c[d]!==h[d]){r=c[d],o=h[d];break}return r<o?-1:o<r?1:0},l.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},l.prototype.indexOf=function(t,e,i){return b(this,t,e,i,!0)},l.prototype.lastIndexOf=function(t,e,i){return b(this,t,e,i,!1)},l.prototype.write=function(t,e,i,s){if(void 0===e)s="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)s=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(i)?(i>>>=0,void 0===s&&(s="utf8")):(s=i,i=void 0)}var n=this.length-e;if((void 0===i||i>n)&&(i=n),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var r=!1;;)switch(s){case"hex":return v(this,t,e,i);case"utf8":case"utf-8":return w(this,t,e,i);case"ascii":case"latin1":case"binary":return S(this,t,e,i);case"base64":return k(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,i);default:if(r)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),r=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function T(t,e,i){var s="";i=Math.min(t.length,i);for(var n=e;n<i;++n)s+=String.fromCharCode(127&t[n]);return s}function P(t,e,i){var s="";i=Math.min(t.length,i);for(var n=e;n<i;++n)s+=String.fromCharCode(t[n]);return s}function O(t,e,i){var s=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>s)&&(i=s);for(var n="",r=e;r<i;++r)n+=W[t[r]];return n}function L(t,e,i){for(var s=t.slice(e,i),n="",r=0;r<s.length-1;r+=2)n+=String.fromCharCode(s[r]+256*s[r+1]);return n}function _(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function I(t,e,i,s,n,r){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<r)throw new RangeError('"value" argument is out of bounds');if(i+s>t.length)throw new RangeError("Index out of range")}function D(t,e,i,s,n,r){if(i+s>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function R(t,e,i,s,r){return e=+e,i>>>=0,r||D(t,0,i,4),n.write(t,e,i,s,23,4),i+4}function N(t,e,i,s,r){return e=+e,i>>>=0,r||D(t,0,i,8),n.write(t,e,i,s,52,8),i+8}l.prototype.slice=function(t,e){var i=this.length;(t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);var s=this.subarray(t,e);return Object.setPrototypeOf(s,l.prototype),s},l.prototype.readUintLE=l.prototype.readUIntLE=function(t,e,i){t>>>=0,e>>>=0,i||_(t,e,this.length);for(var s=this[t],n=1,r=0;++r<e&&(n*=256);)s+=this[t+r]*n;return s},l.prototype.readUintBE=l.prototype.readUIntBE=function(t,e,i){t>>>=0,e>>>=0,i||_(t,e,this.length);for(var s=this[t+--e],n=1;e>0&&(n*=256);)s+=this[t+--e]*n;return s},l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t>>>=0,e||_(t,1,this.length),this[t]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,i){t>>>=0,e>>>=0,i||_(t,e,this.length);for(var s=this[t],n=1,r=0;++r<e&&(n*=256);)s+=this[t+r]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*e)),s}
vendor: 4,485 bytes, line 2
2,l.prototype.readIntBE=function(t,e,i){t>>>=0,e>>>=0,i||_(t,e,this.length);for(var s=e,n=1,r=this[t+--s];s>0&&(n*=256);)r+=this[t+--s]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readInt8=function(t,e){return t>>>=0,e||_(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||_(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt16BE=function(t,e){t>>>=0,e||_(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return t>>>=0,e||_(t,4,this.length),n.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||_(t,4,this.length),n.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||_(t,8,this.length),n.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||_(t,8,this.length),n.read(this,t,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,i,s){(t=+t,e>>>=0,i>>>=0,s)||I(this,t,e,i,Math.pow(2,8*i)-1,0);var n=1,r=0;for(this[e]=255&t;++r<i&&(n*=256);)this[e+r]=t/n&255;return e+i},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(t,e,i,s){(t=+t,e>>>=0,i>>>=0,s)||I(this,t,e,i,Math.pow(2,8*i)-1,0);var n=i-1,r=1;for(this[e+n]=255&t;--n>=0&&(r*=256);)this[e+n]=t/r&255;return e+i},l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,i){return t=+t,e>>>=0,i||I(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,i){return t=+t,e>>>=0,i||I(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,i){return t=+t,e>>>=0,i||I(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,i){return t=+t,e>>>=0,i||I(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,i){return t=+t,e>>>=0,i||I(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeIntLE=function(t,e,i,s){if(t=+t,e>>>=0,!s){var n=Math.pow(2,8*i-1);I(this,t,e,i,n-1,-n)}var r=0,o=1,a=0;for(this[e]=255&t;++r<i&&(o*=256);)t<0&&0===a&&0!==this[e+r-1]&&(a=1),this[e+r]=(t/o|0)-a&255;return e+i},l.prototype.writeIntBE=function(t,e,i,s){if(t=+t,e>>>=0,!s){var n=Math.pow(2,8*i-1);I(this,t,e,i,n-1,-n)}var r=i-1,o=1,a=0;for(this[e+r]=255&t;--r>=0&&(o*=256);)t<0&&0===a&&0!==this[e+r+1]&&(a=1),this[e+r]=(t/o|0)-a&255;return e+i},l.prototype.writeInt8=function(t,e,i){return t=+t,e>>>=0,i||I(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,i){return t=+t,e>>>=0,i||I(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,i){return t=+t,e>>>=0,i||I(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,i){return t=+t,e>>>=0,i||I(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,i){return t=+t,e>>>=0,i||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeFloatLE=function(t,e,i){return R(this,t,e,!0,i)},l.prototype.writeFloatBE=function(t,e,i){return R(this,t,e,!1,i)},l.prototype.writeDoubleLE=function(t,e,i){return N(this,t,e,!0,i)},l.prototype.writeDoubleBE=function(t,e,i){return N(this,t,e,!1,i)},l.prototype.copy=function(t,e,i,s){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),s||0===s||(s=this.length),e>=t.length&&(e=t.length),e||(e=0),s>0&&s<i&&(s=i),s===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),t.length-e<s-i&&(s=t.length-e+i);var n=s-i;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,i,s):Uint8Array.prototype.set.call(t,this.subarray(i,s),e),n}
2,l.prototype.fill=function(t,e,i,s){if("string"==typeof t){if("string"==typeof e?(s=e,e=0,i=this.length):"string"==typeof i&&(s=i,i=this.length),void 0!==s&&"string"!=typeof s)throw new TypeError("encoding must be a string");if("string"==typeof s&&!l.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(1===t.length){var n=t.charCodeAt(0);("utf8"===s&&n<128||"latin1"===s)&&(t=n)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;var r;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(r=e;r<i;++r)this[r]=t;else{var o=l.isBuffer(t)?t:l.from(t,s),a=o.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(r=0;r<i-e;++r)this[r+e]=o[r%a]}return this};var B=/[^+/0-9A-Za-z-_]/g;function j(t,e){var i;e=e||1/0;for(var s=t.length,n=null,r=[],o=0;o<s;++o){if((i=t.charCodeAt(o))>55295&&i<57344){if(!n){if(i>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(o+1===s){(e-=3)>-1&&r.push(239,191,189);continue}n=i;continue}if(i<56320){(e-=3)>-1&&r.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&(e-=3)>-1&&r.push(239,191,189);if(n=null,i<128){if((e-=1)<0)break;r.push(i)}else if(i<2048){if((e-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function F(t){return s.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,e,i,s){for(var n=0;n<s&&!(n+i>=e.length||n>=t.length);++n)e[n+i]=t[n];return n}function H(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}var W=function(){for(var t="0123456789abcdef",e=new Array(256),i=0;i<16;++i)for(var s=16*i,n=0;n<16;++n)e[s+n]=t[i]+t[n];return e}()},288(){},314(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=t(e);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i}).join("")},e.i=function(t,i,s){"string"==typeof t&&(t=[[null,t,""]]);var n={};if(s)for(var r=0;r<this.length;r++){var o=this[r][0];null!=o&&(n[o]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);s&&n[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),e.push(l))}},e}},381(){},421(){},470(t,e,i){"use strict";i.d(e,{wE:()=>Wi});var s=i(33);function n(t){throw t}function r(t){}function o(t,e,i,s){const n=new SyntaxError(String(t));return n.code=t,n.loc=e,n}const a=Symbol(""),l=Symbol(""),c=Symbol(""),h=Symbol(""),d=Symbol(""),u=Symbol(""),p=Symbol(""),f=Symbol(""),g=Symbol(""),m=Symbol(""),x=Symbol(""),b=Symbol(""),y=Symbol(""),v=Symbol(""),w=Symbol(""),S=Symbol(""),k=Symbol(""),C=Symbol(""),A=Symbol(""),E=Symbol(""),M=Symbol(""),T=Symbol(""),P=Symbol(""),O=Symbol(""),L=Symbol(""),_=Symbol(""),I=Symbol(""),D=Symbol(""),R=Symbol(""),N=Symbol(""),B=Symbol(""),j=Symbol(""),F=Symbol(""),z=Symbol(""),H=Symbol(""),X=Symbol(""),W=Symbol(""),Y=Symbol(""),V=Symbol(""),G={[a]:"Fragment",[l]:"Teleport",[c]:"Suspense",[h]:"KeepAlive",[d]:"BaseTransition",[u]:"openBlock",[p]:"createBlock",[f]:"createElementBlock",[g]:"createVNode",[m]:"createElementVNode",[x]:"createCommentVNode",[b]:"createTextVNode",[y]:"createStaticVNode",[v]:"resolveComponent",[w]:"resolveDynamicComponent",[S]:"resolveDirective",[k]:"resolveFilter",[C]:"withDirectives",[A]:"renderList",[E]:"renderSlot",[M]:"createSlots",[T]:"toDisplayString",[P]:"mergeProps",[O]:"normalizeClass",[L]:"normalizeStyle",[_]:"normalizeProps",[I]:"guardReactiveProps",[D]:"toHandlers",[R]:"camelize",[N]:"capitalize",[B]:"toHandlerKey",[j]:"setBlockTracking",[F]:"pushScopeId",[z]:"popScopeId",[H]:"withCtx",[X]:"unref",[W]:"isRef",[Y]:"withMemo",[V]:"isMemoSame"};const U={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function $(t,e,i,s,n,r,o,a=!1,l=!1,c=!1,h=U){return t&&(a?(t.helper(u),t.helper(kt(t.inSSR,c))):t.helper(St(t.inSSR,c)),o&&t.helper(C)),{type:13,tag:e,props:i,children:s,patchFlag:n,dynamicProps:r,directives:o,isBlock:a,disableTracking:l,isComponent:c,loc:h}}function q(t,e=U){return{type:17,loc:e,elements:t}}function K(t,e=U){return{type:15,loc:e,properties:t}}function Z(t,e){return{type:16,loc:U,key:(0,s.Kg)(t)?J(t,!0):t,value:e}}function J(t,e=!1,i=U,s=0){return{type:4,loc:i,content:t,isStatic:e,constType:e?3:s}}function Q(t,e=U){return{type:8,loc:e,children:t}}function tt(t,e=[],i=U){return{type:14,loc:i,callee:t,arguments:e}}function et(t,e=void 0,i=!1,s=!1,n=U){return{type:18,params:t,returns:e,newline:i,isSlot:s,loc:n}}function it(t,e,i,s=!0){return{type:19,test:t,consequent:e,alternate:i,newline:s,loc:U}}const st=t=>4===t.type&&t.isStatic,nt=(t,e)=>t===e||t===(0,s.Tg)(e);function rt(t){return nt(t,"Teleport")?l:nt(t,"Suspense")?c:nt(t,"KeepAlive")?h:nt(t,"BaseTransition")?d:void 0}const ot=/^\d|[^\$\w]/,at=t=>!ot.test(t),lt=/[A-Za-z_$\xA0-\uFFFF]/,ct=/[\.\?\w$\xA0-\uFFFF]/,ht=/\s+[.[]\s*|\s*[.[]\s+/g,dt=t=>{t=t.trim().replace(ht,t=>t.trim());let e=0,i=[],s=0,n=0,r=null;for(let o=0;o<t.length;o++){const a=t.charAt(o);switch(e){case 0:if("["===a)i.push(e),e=1,s++;else if("("===a)i.push(e),e=2,n++;else if(!(0===o?lt:ct).test(a))return!1;break;case 1:"'"===a||'"'===a||"`"===a?(i.push(e),e=3,r=a):"["===a?s++:"]"===a&&(--s||(e=i.pop()));break;case 2:if("'"===a||'"'===a||"`"===a)i.push(e),e=3,r=a;else if("("===a)n++;else if(")"===a){if(o===t.length-1)return!1;--n||(e=i.pop())}break;case 3:a===r&&(e=i.pop(),r=null)}}return!s&&!n};function ut(t,e,i){const s={source:t.source.slice(e,e+i),start:pt(t.start,t.source,e),end:t.end};return null!=i&&(s.end=pt(t.start,t.source,e+i)),s}function pt(t,e,i=e.length){return ft((0,s.X$)({},t),e,i)}function ft(t,e,i=e.length){let s=0,n=-1;for(let t=0;t<i;t++)10===e.charCodeAt(t)&&(s++,n=t);return t.offset+=i,t.line+=s,t.column=-1===n?t.column+i:i-n,t}function gt(t,e,i=!1){for(let n=0;n<t.props.length;n++){const r=t.props[n];if(7===r.type&&(i||r.exp)&&((0,s.Kg)(e)?r.name===e:e.test(r.name)))return r}}function mt(t,e,i=!1,s=!1){for(let n=0;n<t.props.length;n++){const r=t.props[n];if(6===r.type){if(i)continue;if(r.name===e&&(r.value||s))return r}else if("bind"===r.name&&(r.exp||s)&&xt(r.arg,e))return r}}function xt(t,e){return!(!t||!st(t)||t.content!==e)}function bt(t){return 5===t.type||2===t.type}function yt(t){return 7===t.type&&"slot"===t.name}function vt(t){return 1===t.type&&3===t.tagType}function wt(t){return 1===t.type&&2===t.tagType}function St(t,e){return t||e?g:m}function kt(t,e){return t||e?p:f}const Ct=new Set([_,I]);function At(t,e=[]){if(t&&!(0,s.Kg)(t)&&14===t.type){const i=t.callee;if(!(0,s.Kg)(i)&&Ct.has(i))return At(t.arguments[0],e.concat(t))}return[t,e]}function Et(t,e,i){let n,r,o=13===t.type?t.props:t.arguments[2],a=[];if(o&&!(0,s.Kg)(o)&&14===o.type){const t=At(o);o=t[0],a=t[1],r=a[a.length-1]}if(null==o||(0,s.Kg)(o))n=K([e]);else if(14===o.type){const t=o.arguments[0];(0,s.Kg)(t)||15!==t.type?o.callee===D?n=tt(i.helper(P),[K([e]),o]
2):o.arguments.unshift(K([e])):Mt(e,t)||t.properties.unshift(e),!n&&(n=o)}else 15===o.type?(Mt(e,o)||o.properties.unshift(e),n=o):(n=tt(i.helper(P),[K([e]),o]),r&&r.callee===I&&(r=a[a.length-2]));13===t.type?r?r.arguments[0]=n:t.props=n:r?r.arguments[0]=n:t.arguments[2]=n}function Mt(t,e){let i=!1;if(4===t.key.type){const s=t.key.content;i=e.properties.some(t=>4===t.key.type&&t.key.content===s)}return i}function Tt(t,e){return`_${e}_${t.replace(/[^\w]/g,(e,i)=>"-"===e?"_":t.charCodeAt(i).toString())}`}function Pt(t,{helper:e,removeHelper:i,inSSR:s}){t.isBlock||(t.isBlock=!0,i(St(s,t.isComponent)),e(u),e(kt(s,t.isComponent)))}function Ot(t,e){const i=e.options?e.options.compatConfig:e.compatConfig,s=i&&i[t];return"MODE"===t?s||3:s}function Lt(t,e){const i=Ot("MODE",e),s=Ot(t,e);return 3===i?!0===s:!1!==s}function _t(t,e,i,...s){return Lt(t,e)}const It=/&(gt|lt|amp|apos|quot);/g,Dt={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Rt={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:s.NO,isPreTag:s.NO,isCustomElement:s.NO,decodeEntities:t=>t.replace(It,(t,e)=>Dt[e]),onError:n,onWarn:r,comments:!1};function Nt(t,e={}){const i=function(t,e){const i=(0,s.X$)({},Rt);let n;for(n in e)i[n]=void 0===e[n]?Rt[n]:e[n];return{options:i,column:1,line:1,offset:0,originalSource:t,source:t,inPre:!1,inVPre:!1,onWarn:i.onWarn}}(t,e),n=Kt(i);return function(t,e=U){return{type:0,children:t,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:e}}(Bt(i,0,[]),Zt(i,n))}function Bt(t,e,i){const n=Jt(i),r=n?n.ns:0,o=[];for(;!ne(t,e,i);){const a=t.source;let l;if(0===e||1===e)if(!t.inVPre&&Qt(a,t.options.delimiters[0]))l=Ut(t,e);else if(0===e&&"<"===a[0])if(1===a.length)se(t,5,1);else if("!"===a[1])Qt(a,"\x3c!--")?l=zt(t):Qt(a,"<!DOCTYPE")?l=Ht(t):Qt(a,"<![CDATA[")?0!==r?l=Ft(t,i):(se(t,1),l=Ht(t)):(se(t,11),l=Ht(t));else if("/"===a[1])if(2===a.length)se(t,5,2);else{if(">"===a[2]){se(t,14,2),te(t,3);continue}if(/[a-z]/i.test(a[2])){se(t,23),Yt(t,1,n);continue}se(t,12,2),l=Ht(t)}else/[a-z]/i.test(a[1])?(l=Xt(t,i),Lt("COMPILER_NATIVE_TEMPLATE",t)&&l&&"template"===l.tag&&!l.props.some(t=>7===t.type&&Wt(t.name))&&(l=l.children)):"?"===a[1]?(se(t,21,1),l=Ht(t)):se(t,12,1);if(l||(l=$t(t,e)),(0,s.cy)(l))for(let t=0;t<l.length;t++)jt(o,l[t]);else jt(o,l)}let a=!1;if(2!==e&&1!==e){const e="preserve"!==t.options.whitespace;for(let i=0;i<o.length;i++){const s=o[i];if(2===s.type)if(t.inPre)s.content=s.content.replace(/\r\n/g,"\n");else if(/[^\t\r\n\f ]/.test(s.content))e&&(s.content=s.content.replace(/[\t\r\n\f ]+/g," "));else{const t=o[i-1],n=o[i+1];!t||!n||e&&(3===t.type&&3===n.type||3===t.type&&1===n.type||1===t.type&&3===n.type||1===t.type&&1===n.type&&/[\r\n]/.test(s.content))?(a=!0,o[i]=null):s.content=" "}else 3!==s.type||t.options.comments||(a=!0,o[i]=null)}if(t.inPre&&n&&t.options.isPreTag(n.tag)){const t=o[0];t&&2===t.type&&(t.content=t.content.replace(/^\r?\n/,""))}}return a?o.filter(Boolean):o}function jt(t,e){if(2===e.type){const i=Jt(t);if(i&&2===i.type&&i.loc.end.offset===e.loc.start.offset)return i.content+=e.content,i.loc.end=e.loc.end,void(i.loc.source+=e.loc.source)}t.push(e)}function Ft(t,e){te(t,9);const i=Bt(t,3,e);return 0===t.source.length?se(t,6):te(t,3),i}function zt(t){const e=Kt(t);let i;const s=/--(\!)?>/.exec(t.source);if(s){s.index<=3&&se(t,0),s[1]&&se(t,10),i=t.source.slice(4,s.index);const e=t.source.slice(0,s.index);let n=1,r=0;for(;-1!==(r=e.indexOf("\x3c!--",n));)te(t,r-n+1),r+4<e.length&&se(t,16),n=r+1;te(t,s.index+s[0].length-n+1)}else i=t.source.slice(4),te(t,t.source.length),se(t,7);return{type:3,content:i,loc:Zt(t,e)}}function Ht(t){const e=Kt(t),i="?"===t.source[1]?1:2;let s;const n=t.source.indexOf(">");return-1===n?(s=t.source.slice(i),te(t,t.source.length)):(s=t.source.slice(i,n),te(t,n+1)),{type:3,content:s,loc:Zt(t,e)}}function Xt(t,e){const i=t.inPre,s=t.inVPre,n=Jt(e),r=Yt(t,0,n),o=t.inPre&&!i,a=t.inVPre&&!s;if(r.isSelfClosing||t.options.isVoidTag(r.tag))return o&&(t.inPre=!1),a&&(t.inVPre=!1),r;e.push(r);const l=t.options.getTextMode(r,n),c=Bt(t,l,e);e.pop();{const e=r.props.find(t=>6===t.type&&"inline-template"===t.name);if(e&&_t("COMPILER_INLINE_TEMPLATE",t,e.loc)){const i=Zt(t,r.loc.end);e.value={type:2,content:i.source,loc:i}}}if(r.children=c,re(t.source,r.tag))Yt(t,1,n);else if(se(t,24,0,r.loc.start),0===t.source.length&&"script"===r.tag.toLowerCase()){const e=c[0];e&&Qt(e.loc.source,"\x3c!--")&&se(t,8)}return r.loc=Zt(t,r.loc.start),o&&(t.inPre=!1),a&&(t.inVPre=!1),r}const Wt=(0,s.pD)("if,else,else-if,for,slot");function Yt(t,e,i){const n=Kt(t),r=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(t.source),o=r[1],a=t.options.getNamespace(o,i);te(t,r[0].length),ee(t);const l=Kt(t),c=t.source;t.options.isPreTag(o)&&(t.inPre=!0);let h=Vt(t,e);0===e&&!t.inVPre&&h.some(t=>7===t.type&&"pre"===t.name)&&(t.inVPre=!0,(0,s.X$)(t,l),t.source=c,h=Vt(t,e).filter(t=>"v-pre"!==t.name));let d=!1;if(0===t.source.length?se(t,9):(d=Qt(t.source,"/>"),1===e&&d&&se(t,4),te(t,d?2:1)),1===e)return;let u=0;return t.inVPre||("slot"===o?u=2:"template"===o?h.some(t=>
27===t.type&&Wt(t.name))&&(u=3):function(t,e,i){const s=i.options;if(s.isCustomElement(t))return!1;if("component"===t||/^[A-Z]/.test(t)||rt(t)||s.isBuiltInComponent&&s.isBuiltInComponent(t)||s.isNativeTag&&!s.isNativeTag(t))return!0;for(let t=0;t<e.length;t++){const s=e[t];if(6===s.type){if("is"===s.name&&s.value){if(s.value.content.startsWith("vue:"))return!0;if(_t("COMPILER_IS_ON_ELEMENT",i,s.loc))return!0}}else{if("is"===s.name)return!0;if("bind"===s.name&&xt(s.arg,"is")&&_t("COMPILER_IS_ON_ELEMENT",i,s.loc))return!0}}}(o,h,t)&&(u=1)),{type:1,ns:a,tag:o,tagType:u,props:h,isSelfClosing:d,children:[],loc:Zt(t,n),codegenNode:void 0}}function Vt(t,e){const i=[],s=new Set;for(;t.source.length>0&&!Qt(t.source,">")&&!Qt(t.source,"/>");){if(Qt(t.source,"/")){se(t,22),te(t,1),ee(t);continue}1===e&&se(t,3);const n=Gt(t,s);6===n.type&&n.value&&"class"===n.name&&(n.value.content=n.value.content.replace(/\s+/g," ").trim()),0===e&&i.push(n),/^[^\t\r\n\f />]/.test(t.source)&&se(t,15),ee(t)}return i}function Gt(t,e){const i=Kt(t),s=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(t.source)[0];e.has(s)&&se(t,2),e.add(s),"="===s[0]&&se(t,19);{const e=/["'<]/g;let i;for(;i=e.exec(s);)se(t,17,i.index)}let n;te(t,s.length),/^[\t\r\n\f ]*=/.test(t.source)&&(ee(t),te(t,1),ee(t),n=function(t){const e=Kt(t);let i;const s=t.source[0],n='"'===s||"'"===s;if(n){te(t,1);const e=t.source.indexOf(s);-1===e?i=qt(t,t.source.length,4):(i=qt(t,e,4),te(t,1))}else{const e=/^[^\t\r\n\f >]+/.exec(t.source);if(!e)return;const s=/["'<=`]/g;let n;for(;n=s.exec(e[0]);)se(t,18,n.index);i=qt(t,e[0].length,4)}return{content:i,isQuoted:n,loc:Zt(t,e)}}(t),n||se(t,13));const r=Zt(t,i);if(!t.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(s)){const e=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(s);let o,a=Qt(s,"."),l=e[1]||(a||Qt(s,":")?"bind":Qt(s,"@")?"on":"slot");if(e[2]){const n="slot"===l,r=s.lastIndexOf(e[2]),a=Zt(t,ie(t,i,r),ie(t,i,r+e[2].length+(n&&e[3]||"").length));let c=e[2],h=!0;c.startsWith("[")?(h=!1,c.endsWith("]")?c=c.slice(1,c.length-1):(se(t,27),c=c.slice(1))):n&&(c+=e[3]||""),o={type:4,content:c,isStatic:h,constType:h?3:0,loc:a}}if(n&&n.isQuoted){const t=n.loc;t.start.offset++,t.start.column++,t.end=pt(t.start,n.content),t.source=t.source.slice(1,-1)}const c=e[3]?e[3].slice(1).split("."):[];return a&&c.push("prop"),"bind"===l&&o&&c.includes("sync")&&_t("COMPILER_V_BIND_SYNC",t,0,o.loc.source)&&(l="model",c.splice(c.indexOf("sync"),1)),{type:7,name:l,exp:n&&{type:4,content:n.content,isStatic:!1,constType:0,loc:n.loc},arg:o,modifiers:c,loc:r}}return!t.inVPre&&Qt(s,"v-")&&se(t,26),{type:6,name:s,value:n&&{type:2,content:n.content,loc:n.loc},loc:r}}function Ut(t,e){const[i,s]=t.options.delimiters,n=t.source.indexOf(s,i.length);if(-1===n)return void se(t,25);const r=Kt(t);te(t,i.length);const o=Kt(t),a=Kt(t),l=n-i.length,c=t.source.slice(0,l),h=qt(t,l,e),d=h.trim(),u=h.indexOf(d);u>0&&ft(o,c,u);return ft(a,c,l-(h.length-d.length-u)),te(t,s.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:d,loc:Zt(t,o,a)},loc:Zt(t,r)}}function $t(t,e){const i=3===e?["]]>"]:["<",t.options.delimiters[0]];let s=t.source.length;for(let e=0;e<i.length;e++){const n=t.source.indexOf(i[e],1);-1!==n&&s>n&&(s=n)}const n=Kt(t);return{type:2,content:qt(t,s,e),loc:Zt(t,n)}}function qt(t,e,i){const s=t.source.slice(0,e);return te(t,e),2!==i&&3!==i&&s.includes("&")?t.options.decodeEntities(s,4===i):s}function Kt(t){const{column:e,line:i,offset:s}=t;return{column:e,line:i,offset:s}}function Zt(t,e,i){return{start:e,end:i=i||Kt(t),source:t.originalSource.slice(e.offset,i.offset)}}function Jt(t){return t[t.length-1]}function Qt(t,e){return t.startsWith(e)}function te(t,e){const{source:i}=t;ft(t,i,e),t.source=i.slice(e)}function ee(t){const e=/^[\t\r\n\f ]+/.exec(t.source);e&&te(t,e[0].length)}function ie(t,e,i){return pt(e,t.originalSource.slice(e.offset,i),i)}function se(t,e,i,s=Kt(t)){i&&(s.offset+=i,s.column+=i),t.options.onError(o(e,{start:s,end:s,source:""}))}function ne(t,e,i){const s=t.source;switch(e){case 0:if(Qt(s,"</"))for(let t=i.length-1;t>=0;--t)if(re(s,i[t].tag))return!0;break;case 1:case 2:{const t=Jt(i);if(t&&re(s,t.tag))return!0;break}case 3:if(Qt(s,"]]>"))return!0}return!s}function re(t,e){return Qt(t,"</")&&t.slice(2,2+e.length).toLowerCase()===e.toLowerCase()&&/[\t\r\n\f />]/.test(t[2+e.length]||">")}function oe(t,e){le(t,e,ae(t,t.children[0]))}function ae(t,e){const{children:i}=t;return 1===i.length&&1===e.type&&!wt(e)}function le(t,e,i=!1){const{children:n}=t,r=n.length;let o=0;for(let t=0;t<n.length;t++){const s=n[t];
vendor: 4,189 bytes, line 2
2if(1===s.type&&0===s.tagType){const t=i?0:ce(s,e);if(t>0){if(t>=2){s.codegenNode.patchFlag="-1",s.codegenNode=e.hoist(s.codegenNode),o++;continue}}else{const t=s.codegenNode;if(13===t.type){const i=fe(t);if((!i||512===i||1===i)&&ue(s,e)>=2){const i=pe(s);i&&(t.props=e.hoist(i))}t.dynamicProps&&(t.dynamicProps=e.hoist(t.dynamicProps))}}}if(1===s.type){const t=1===s.tagType;t&&e.scopes.vSlot++,le(s,e),t&&e.scopes.vSlot--}else if(11===s.type)le(s,e,1===s.children.length);else if(9===s.type)for(let t=0;t<s.branches.length;t++)le(s.branches[t],e,1===s.branches[t].children.length)}o&&e.transformHoist&&e.transformHoist(n,e,t),o&&o===r&&1===t.type&&0===t.tagType&&t.codegenNode&&13===t.codegenNode.type&&(0,s.cy)(t.codegenNode.children)&&(t.codegenNode.children=e.hoist(q(t.codegenNode.children)))}function ce(t,e){const{constantCache:i}=e;switch(t.type){case 1:if(0!==t.tagType)return 0;const n=i.get(t);if(void 0!==n)return n;const r=t.codegenNode;if(13!==r.type)return 0;if(r.isBlock&&"svg"!==t.tag&&"foreignObject"!==t.tag)return 0;if(fe(r))return i.set(t,0),0;{let s=3;const n=ue(t,e);if(0===n)return i.set(t,0),0;n<s&&(s=n);for(let n=0;n<t.children.length;n++){const r=ce(t.children[n],e);if(0===r)return i.set(t,0),0;r<s&&(s=r)}if(s>1)for(let n=0;n<t.props.length;n++){const r=t.props[n];if(7===r.type&&"bind"===r.name&&r.exp){const n=ce(r.exp,e);if(0===n)return i.set(t,0),0;n<s&&(s=n)}}if(r.isBlock){for(let e=0;e<t.props.length;e++){if(7===t.props[e].type)return i.set(t,0),0}e.removeHelper(u),e.removeHelper(kt(e.inSSR,r.isComponent)),r.isBlock=!1,e.helper(St(e.inSSR,r.isComponent))}return i.set(t,s),s}case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return ce(t.content,e);case 4:return t.constType;case 8:let o=3;for(let i=0;i<t.children.length;i++){const n=t.children[i];if((0,s.Kg)(n)||(0,s.Bm)(n))continue;const r=ce(n,e);if(0===r)return 0;r<o&&(o=r)}return o}}const he=new Set([O,L,_,I]);function de(t,e){if(14===t.type&&!(0,s.Kg)(t.callee)&&he.has(t.callee)){const i=t.arguments[0];if(4===i.type)return ce(i,e);if(14===i.type)return de(i,e)}return 0}function ue(t,e){let i=3;const s=pe(t);if(s&&15===s.type){const{properties:t}=s;for(let s=0;s<t.length;s++){const{key:n,value:r}=t[s],o=ce(n,e);if(0===o)return o;let a;if(o<i&&(i=o),a=4===r.type?ce(r,e):14===r.type?de(r,e):0,0===a)return a;a<i&&(i=a)}}return i}function pe(t){const e=t.codegenNode;if(13===e.type)return e.props}function fe(t){const e=t.patchFlag;return e?parseInt(e,10):void 0}function ge(t,{filename:e="",prefixIdentifiers:i=!1,hoistStatic:o=!1,cacheHandlers:a=!1,nodeTransforms:l=[],directiveTransforms:c={},transformHoist:h=null,isBuiltInComponent:d=s.tE,isCustomElement:u=s.tE,expressionPlugins:p=[],scopeId:f=null,slotted:g=!0,ssr:m=!1,inSSR:x=!1,ssrCssVars:b="",bindingMetadata:y=s.MZ,inline:v=!1,isTS:w=!1,onError:S=n,onWarn:k=r,compatConfig:C}){const A=e.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),E={selfName:A&&(0,s.ZH)((0,s.PT)(A[1])),prefixIdentifiers:i,hoistStatic:o,cacheHandlers:a,nodeTransforms:l,directiveTransforms:c,transformHoist:h,isBuiltInComponent:d,isCustomElement:u,expressionPlugins:p,scopeId:f,slotted:g,ssr:m,inSSR:x,ssrCssVars:b,bindingMetadata:y,inline:v,isTS:w,onError:S,onWarn:k,compatConfig:C,root:t,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:t,childIndex:0,inVOnce:!1,helper(t){const e=E.helpers.get(t)||0;return E.helpers.set(t,e+1),t},removeHelper(t){const e=E.helpers.get(t);if(e){const i=e-1;i?E.helpers.set(t,i):E.helpers.delete(t)}},helperString:t=>`_${G[E.helper(t)]}`,replaceNode(t){E.parent.children[E.childIndex]=E.currentNode=t},removeNode(t){const e=E.parent.children,i=t?e.indexOf(t):E.currentNode?E.childIndex:-1;t&&t!==E.currentNode?E.childIndex>i&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(i,1)},onNodeRemoved:()=>{},addIdentifiers(t){},removeIdentifiers(t){},hoist(t){(0,s.Kg)(t)&&(t=J(t)),E.hoists.push(t);const e=J(`_hoisted_${E.hoists.length}`,!1,t.loc,2);return e.hoisted=t,e},cache:(t,e=!1)=>
2function(t,e,i=!1){return{type:20,index:t,value:e,isVNode:i,loc:U}}(E.cached++,t,e)};return E.filters=new Set,E}function me(t,e){const i=ge(t,e);xe(t,i),e.hoistStatic&&oe(t,i),e.ssr||function(t,e){const{helper:i}=e,{children:n}=t;if(1===n.length){const i=n[0];if(ae(t,i)&&i.codegenNode){const s=i.codegenNode;13===s.type&&Pt(s,e),t.codegenNode=s}else t.codegenNode=i}else if(n.length>1){let n=64;s.Hl[64];0,t.codegenNode=$(e,i(a),void 0,t.children,n+"",void 0,void 0,!0,void 0,!1)}}(t,i),t.helpers=[...i.helpers.keys()],t.components=[...i.components],t.directives=[...i.directives],t.imports=i.imports,t.hoists=i.hoists,t.temps=i.temps,t.cached=i.cached,t.filters=[...i.filters]}function xe(t,e){e.currentNode=t;const{nodeTransforms:i}=e,n=[];for(let r=0;r<i.length;r++){const o=i[r](t,e);if(o&&((0,s.cy)(o)?n.push(...o):n.push(o)),!e.currentNode)return;t=e.currentNode}switch(t.type){case 3:e.ssr||e.helper(x);break;case 5:e.ssr||e.helper(T);break;case 9:for(let i=0;i<t.branches.length;i++)xe(t.branches[i],e);break;case 10:case 11:case 1:case 0:!function(t,e){let i=0;const n=()=>{i--};for(;i<t.children.length;i++){const r=t.children[i];(0,s.Kg)(r)||(e.parent=t,e.childIndex=i,e.onNodeRemoved=n,xe(r,e))}}(t,e)}e.currentNode=t;let r=n.length;for(;r--;)n[r]()}function be(t,e){const i=(0,s.Kg)(t)?e=>e===t:e=>t.test(e);return(t,s)=>{if(1===t.type){const{props:n}=t;if(3===t.tagType&&n.some(yt))return;const r=[];for(let o=0;o<n.length;o++){const a=n[o];if(7===a.type&&i(a.name)){n.splice(o,1),o--;const i=e(t,a,s);i&&r.push(i)}}return r}}}const ye="/*#__PURE__*/",ve=t=>`${G[t]}: _${G[t]}`;function we(t,e={}){const i=function(t,{mode:e="function",prefixIdentifiers:i="module"===e,sourceMap:s=!1,filename:n="template.vue.html",scopeId:r=null,optimizeImports:o=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:h=!1,isTS:d=!1,inSSR:u=!1}){const p={mode:e,prefixIdentifiers:i,sourceMap:s,filename:n,scopeId:r,optimizeImports:o,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:h,isTS:d,inSSR:u,source:t.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:t=>`_${G[t]}`,push(t,e){p.code+=t},indent(){f(++p.indentLevel)},deindent(t=!1){t?--p.indentLevel:f(--p.indentLevel)},newline(){f(p.indentLevel)}};function f(t){p.push("\n"+"  ".repeat(t))}return p}(t,e);e.onContextCreated&&e.onContextCreated(i);const{mode:s,push:n,prefixIdentifiers:r,indent:o,deindent:a,newline:l,scopeId:c,ssr:h}=i,d=t.helpers.length>0,u=!r&&"module"!==s;!function(t,e){const{ssr:i,prefixIdentifiers:s,push:n,newline:r,runtimeModuleName:o,runtimeGlobalName:a,ssrRuntimeModuleName:l}=e,c=a;if(t.helpers.length>0&&(n(`const _Vue = ${c}\n`),t.hoists.length)){n(`const { ${[g,m,x,b,y].filter(e=>t.helpers.includes(e)).map(ve).join(", ")} } = _Vue\n`)}(function(t,e){if(!t.length)return;e.pure=!0;const{push:i,newline:s,helper:n,scopeId:r,mode:o}=e;s();for(let n=0;n<t.length;n++){const r=t[n];r&&(i(`const _hoisted_${n+1} = `),Ae(r,e),s())}e.pure=!1})(t.hoists,e),r(),n("return ")}(t,i);if(n(`function ${h?"ssrRender":"render"}(${(h?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),o(),u&&(n("with (_ctx) {"),o(),d&&(n(`const { ${t.helpers.map(ve).join(", ")} } = _Vue`),n("\n"),l())),t.components.length&&(Se(t.components,"component",i),(t.directives.length||t.temps>0)&&l()),t.directives.length&&(Se(t.directives,"directive",i),t.temps>0&&l()),t.filters&&t.filters.length&&(l(),Se(t.filters,"filter",i),l()),t.temps>0){n("let ");for(let e=0;e<t.temps;e++)n(`${e>0?", ":""}_temp${e}`)}return(t.components.length||t.directives.length||t.temps)&&(n("\n"),l()),h||n("return "),t.codegenNode?Ae(t.codegenNode,i):n("null"),u&&(a(),n("}")),a(),n("}"),{ast:t,code:i.code,preamble:"",map:i.map?i.map.toJSON():void 0}}function Se(t,e,{helper:i,push:s,newline:n,isTS:r}){const o=i("filter"===e?k:"component"===e?v:S);for(let i=0;i<t.length;i++){let a=t[i];const l=a.endsWith("__self");l&&(a=a.slice(0,-6)),s(`const ${Tt(a,e)} = ${o}(${JSON.stringify(a)}${l?", true":""})${r?"!":""}`),i<t.length-1&&n()}}function ke(t,e){const i=t.length>3||!1;
2e.push("["),i&&e.indent(),Ce(t,e,i),i&&e.deindent(),e.push("]")}function Ce(t,e,i=!1,n=!0){const{push:r,newline:o}=e;for(let a=0;a<t.length;a++){const l=t[a];(0,s.Kg)(l)?r(l):(0,s.cy)(l)?ke(l,e):Ae(l,e),a<t.length-1&&(i?(n&&r(","),o()):n&&r(", "))}}function Ae(t,e){if((0,s.Kg)(t))e.push(t);else if((0,s.Bm)(t))e.push(e.helper(t));else switch(t.type){case 1:case 9:case 11:case 12:Ae(t.codegenNode,e);break;case 2:!function(t,e){e.push(JSON.stringify(t.content),t)}(t,e);break;case 4:Ee(t,e);break;case 5:!function(t,e){const{push:i,helper:s,pure:n}=e;n&&i(ye);i(`${s(T)}(`),Ae(t.content,e),i(")")}(t,e);break;case 8:Me(t,e);break;case 3:!function(t,e){const{push:i,helper:s,pure:n}=e;n&&i(ye);i(`${s(x)}(${JSON.stringify(t.content)})`,t)}(t,e);break;case 13:!function(t,e){const{push:i,helper:s,pure:n}=e,{tag:r,props:o,children:a,patchFlag:l,dynamicProps:c,directives:h,isBlock:d,disableTracking:p,isComponent:f}=t;h&&i(s(C)+"(");d&&i(`(${s(u)}(${p?"true":""}), `);n&&i(ye);const g=d?kt(e.inSSR,f):St(e.inSSR,f);i(s(g)+"(",t),Ce(function(t){let e=t.length;for(;e--&&null==t[e];);return t.slice(0,e+1).map(t=>t||"null")}([r,o,a,l,c]),e),i(")"),d&&i(")");h&&(i(", "),Ae(h,e),i(")"))}(t,e);break;case 14:!function(t,e){const{push:i,helper:n,pure:r}=e,o=(0,s.Kg)(t.callee)?t.callee:n(t.callee);r&&i(ye);i(o+"(",t),Ce(t.arguments,e),i(")")}(t,e);break;case 15:!function(t,e){const{push:i,indent:s,deindent:n,newline:r}=e,{properties:o}=t;if(!o.length)return void i("{}",t);const a=o.length>1||!1;i(a?"{":"{ "),a&&s();for(let t=0;t<o.length;t++){const{key:s,value:n}=o[t];Te(s,e),i(": "),Ae(n,e),t<o.length-1&&(i(","),r())}a&&n(),i(a?"}":" }")}(t,e);break;case 17:!function(t,e){ke(t.elements,e)}(t,e);break;case 18:!function(t,e){const{push:i,indent:n,deindent:r}=e,{params:o,returns:a,body:l,newline:c,isSlot:h}=t;h&&i(`_${G[H]}(`);i("(",t),(0,s.cy)(o)?Ce(o,e):o&&Ae(o,e);i(") => "),(c||l)&&(i("{"),n());a?(c&&i("return "),(0,s.cy)(a)?ke(a,e):Ae(a,e)):l&&Ae(l,e);(c||l)&&(r(),i("}"));h&&(t.isNonScopedSlot&&i(", undefined, true"),i(")"))}(t,e);break;case 19:!function(t,e){const{test:i,consequent:s,alternate:n,newline:r}=t,{push:o,indent:a,deindent:l,newline:c}=e;if(4===i.type){const t=!at(i.content);t&&o("("),Ee(i,e),t&&o(")")}else o("("),Ae(i,e),o(")");r&&a(),e.indentLevel++,r||o(" "),o("? "),Ae(s,e),e.indentLevel--,r&&c(),r||o(" "),o(": ");const h=19===n.type;h||e.indentLevel++;Ae(n,e),h||e.indentLevel--;r&&l(!0)}(t,e);break;case 20:!function(t,e){const{push:i,helper:s,indent:n,deindent:r,newline:o}=e;i(`_cache[${t.index}] || (`),t.isVNode&&(n(),i(`${s(j)}(-1),`),o());i(`_cache[${t.index}] = `),Ae(t.value,e),t.isVNode&&(i(","),o(),i(`${s(j)}(1),`),o(),i(`_cache[${t.index}]`),r());i(")")}(t,e);break;case 21:Ce(t.body,e,!0,!1)}}function Ee(t,e){const{content:i,isStatic:s}=t;e.push(s?JSON.stringify(i):i,t)}function Me(t,e){for(let i=0;i<t.children.length;i++){const n=t.children[i];(0,s.Kg)(n)?e.push(n):Ae(n,e)}}function Te(t,e){const{push:i}=e;if(8===t.type)i("["),Me(t,e),i("]");else if(t.isStatic){i(at(t.content)?t.content:JSON.stringify(t.content),t)}else i(`[${t.content}]`,t)}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments,typeof,void".split(",").join("\\b|\\b")+"\\b");const Pe=be(/^(if|else|else-if)$/,(t,e,i)=>function(t,e,i,s){if(!("else"===e.name||e.exp&&e.exp.content.trim())){const s=e.exp?e.exp.loc:t.loc;i.onError(o(28,e.loc)),e.exp=J("true",!1,s)}0;if("if"===e.name){const n=Oe(t,e),r={type:9,loc:t.loc,branches:[n]};if(i.replaceNode(r),s)return s(r,n,!0)}else{const n=i.parent.children;let r=n.indexOf(t);for(;r-- >=-1;){const a=n[r];if(a&&3===a.type)i.removeNode(a);else{if(!a||2!==a.type||a.content.trim().length){if(a&&9===a.type){"else-if"===e.name&&void 0===a.branches[a.branches.length-1].condition&&i.onError(o(30,t.loc)),i.removeNode();const n=Oe(t,e);0,a.branches.push(n);const r=s&&s(a,n,!1);xe(n,i),r&&r(),i.currentNode=null}else i.onError(o(30,t.loc));break}i.removeNode(a)}}}}(t,e,i,(t,e,s)=>{const n=i.parent.children;let r=n.indexOf(t),o=0;for(;r-- >=0;){const t=n[r];t&&9===t.type&&(o+=t.branches.length)}return()=>{if(s)t.codegenNode=Le(e,o,i);else{const s=function(t){for(;;)if(19===t.type){if(19!==t.alternate.type)return t;t=t.alternate}else 20===t.type&&(t=t.value)}(t.codegenNode);s.alternate=Le(e,o+t.branches.length-1,i)}}}));function Oe(t,e){const i=3===t.tagType;return{type:10,loc:t.loc,condition:"else"===e.name?void 0:e.exp,children:i&&!gt(t,"for")?t.children:[t],userKey:mt(t,"key"),isTemplateIf:i}}function Le(t,e,i){return t.condition?it(t.condition,_e(t,e,i),tt(i.helper(x),['""',"true"])):_e(t,e,i)}function _e(t,e,i){const{helper:n}=i,r=Z("key",J(`${e}`,!1,U,2)),{children:o}=t,l=o[0];if(1!==o.length||1!==l.type){if(1===o.length&&11===l.type){const t=l.codegenNode;return Et(t,r,i),t}{let e=64;s.Hl[64];
2return $(i,n(a),K([r]),o,e+"",void 0,void 0,!0,!1,!1,t.loc)}}{const t=l.codegenNode,e=14===(c=t).type&&c.callee===Y?c.arguments[1].returns:c;return 13===e.type&&Pt(e,i),Et(e,r,i),t}var c}const Ie=be("for",(t,e,i)=>{const{helper:s,removeHelper:n}=i;return function(t,e,i,s){if(!e.exp)return void i.onError(o(31,e.loc));const n=Be(e.exp,i);if(!n)return void i.onError(o(32,e.loc));const{addIdentifiers:r,removeIdentifiers:a,scopes:l}=i,{source:c,value:h,key:d,index:u}=n,p={type:11,loc:e.loc,source:c,valueAlias:h,keyAlias:d,objectIndexAlias:u,parseResult:n,children:vt(t)?t.children:[t]};i.replaceNode(p),l.vFor++;const f=s&&s(p);return()=>{l.vFor--,f&&f()}}(t,e,i,e=>{const r=tt(s(A),[e.source]),o=vt(t),l=gt(t,"memo"),c=mt(t,"key"),h=c&&(6===c.type?J(c.value.content,!0):c.exp),d=c?Z("key",h):null,p=4===e.source.type&&e.source.constType>0,f=p?64:c?128:256;return e.codegenNode=$(i,s(a),void 0,r,f+"",void 0,void 0,!0,!p,!1,t.loc),()=>{let c;const{children:f}=e;const g=1!==f.length||1!==f[0].type,m=wt(t)?t:o&&1===t.children.length&&wt(t.children[0])?t.children[0]:null;if(m?(c=m.codegenNode,o&&d&&Et(c,d,i)):g?c=$(i,s(a),d?K([d]):void 0,t.children,"64",void 0,void 0,!0,void 0,!1):(c=f[0].codegenNode,o&&d&&Et(c,d,i),c.isBlock!==!p&&(c.isBlock?(n(u),n(kt(i.inSSR,c.isComponent))):n(St(i.inSSR,c.isComponent))),c.isBlock=!p,c.isBlock?(s(u),s(kt(i.inSSR,c.isComponent))):s(St(i.inSSR,c.isComponent))),l){const t=et(Fe(e.parseResult,[J("_cached")]));t.body={type:21,body:[Q(["const _memo = (",l.exp,")"]),Q(["if (_cached",...h?[" && _cached.key === ",h]:[],` && ${i.helperString(V)}(_cached, _memo)) return _cached`]),Q(["const _item = ",c]),J("_item.memo = _memo"),J("return _item")],loc:U},r.arguments.push(t,J("_cache"),J(String(i.cached++)))}else r.arguments.push(et(Fe(e.parseResult),c,!0))}})});const De=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Re=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ne=/^\(|\)$/g;function Be(t,e){const i=t.loc,s=t.content,n=s.match(De);if(!n)return;const[,r,o]=n,a={source:je(i,o.trim(),s.indexOf(o,r.length)),value:void 0,key:void 0,index:void 0};let l=r.trim().replace(Ne,"").trim();const c=r.indexOf(l),h=l.match(Re);if(h){l=l.replace(Re,"").trim();const t=h[1].trim();let e;if(t&&(e=s.indexOf(t,c+l.length),a.key=je(i,t,e)),h[2]){const n=h[2].trim();n&&(a.index=je(i,n,s.indexOf(n,a.key?e+t.length:c+l.length)))}}return l&&(a.value=je(i,l,c)),a}function je(t,e,i){return J(e,!1,ut(t,i,e.length))}function Fe({value:t,key:e,index:i},s=[]){return function(t){let e=t.length;for(;e--&&!t[e];);return t.slice(0,e+1).map((t,e)=>t||J("_".repeat(e+1),!1))}([t,e,i,...s])}const ze=J("undefined",!1),He=(t,e)=>{if(1===t.type&&(1===t.tagType||3===t.tagType)){const i=gt(t,"slot");if(i)return i.exp,e.scopes.vSlot++,()=>{e.scopes.vSlot--}}},Xe=(t,e,i)=>et(t,e,!1,!0,e.length?e[0].loc:i);function We(t,e,i=Xe){e.helper(H);const{children:s,loc:n}=t,r=[],a=[];let l=e.scopes.vSlot>0||e.scopes.vFor>0;const c=gt(t,"slot",!0);if(c){const{arg:t,exp:e}=c;t&&!st(t)&&(l=!0),r.push(Z(t||J("default",!0),i(e,s,n)))}let h=!1,d=!1;const u=[],p=new Set;let f=0;for(let t=0;t<s.length;t++){const n=s[t];let g;if(!vt(n)||!(g=gt(n,"slot",!0))){3!==n.type&&u.push(n);continue}if(c){e.onError(o(37,g.loc));break}h=!0;const{children:m,loc:x}=n,{arg:b=J("default",!0),exp:y,loc:v}=g;let w;st(b)?w=b?b.content:"default":l=!0;const S=i(y,m,x);let k,C,E;if(k=gt(n,"if"))l=!0,a.push(it(k.exp,Ye(b,S,f++),ze));else if(C=gt(n,/^else(-if)?$/,!0)){let i,n=t;for(;n--&&(i=s[n],3===i.type););if(i&&vt(i)&&gt(i,"if")){s.splice(t,1),t--;let e=a[a.length-1];for(;19===e.alternate.type;)e=e.alternate;e.alternate=C.exp?it(C.exp,Ye(b,S,f++),ze):Ye(b,S,f++)}else e.onError(o(30,C.loc))}else if(E=gt(n,"for")){l=!0;const t=E.parseResult||Be(E.exp);t?a.push(tt(e.helper(A),[t.source,et(Fe(t),Ye(b,S),!0)])):e.onError(o(32,E.loc))}else{if(w){if(p.has(w)){e.onError(o(38,v));continue}p.add(w),"default"===w&&(d=!0)}r.push(Z(b,S))}}if(!c){const t=(t,s)=>{const r=i(t,s,n);return e.compatConfig&&(r.isNonScopedSlot=!0),Z("default",r)};h?u.length&&u.some(t=>Ge(t))&&(d?e.onError(o(39,u[0].loc)):r.push(t(void 0,u))):r.push(t(void 0,s))}const g=l?2:Ve(t.children)?3:1;let m=K(r.concat(Z("_",J(g+"",!1))),n);return a.length&&(m=tt(e.helper(M),[m,q(a)])),{slots:m,hasDynamicSlots:l}}function Ye(t,e,i){const s=[Z("name",t),Z("fn",e)];return null!=i&&s.push(Z("key",J(String(i),!0))),K(s)}function Ve(t){for(let e=0;e<t.length;e++){const i=t[e];switch(i.type){case 1:if(2===i.tagType||Ve(i.children))return!0;break;case 9:if(Ve(i.branches))return!0;break;case 10:case 11:if(Ve(i.children))return!0}}return!1}function Ge(t){return 2!==t.type&&12!==t.type||(2===t.type?!!t.content.trim():Ge(t.content))}const Ue=new WeakMap,$e=(t,e)=>function(){if(1!==(t=e.currentNode).type||0!==t.tagType&&1!==t.tagType)return;const{tag:i,props:n}=t,r=1===t.tagType;
2let o=r?function(t,e,i=!1){let{tag:s}=t;const n=Je(s),r=mt(t,"is");if(r)if(n||Lt("COMPILER_IS_ON_ELEMENT",e)){const t=6===r.type?r.value&&J(r.value.content,!0):r.exp;if(t)return tt(e.helper(w),[t])}else 6===r.type&&r.value.content.startsWith("vue:")&&(s=r.value.content.slice(4));const o=!n&&gt(t,"is");if(o&&o.exp)return tt(e.helper(w),[o.exp]);const a=rt(s)||e.isBuiltInComponent(s);if(a)return i||e.helper(a),a;return e.helper(v),e.components.add(s),Tt(s,"component")}(t,e):`"${i}"`;const a=(0,s.Gv)(o)&&o.callee===w;let d,u,p,f,g,m,x=0,b=a||o===l||o===c||!r&&("svg"===i||"foreignObject"===i);if(n.length>0){const i=qe(t,e,void 0,r,a);d=i.props,x=i.patchFlag,g=i.dynamicPropNames;const s=i.directives;m=s&&s.length?q(s.map(t=>function(t,e){const i=[],s=Ue.get(t);s?i.push(e.helperString(s)):(e.helper(S),e.directives.add(t.name),i.push(Tt(t.name,"directive")));const{loc:n}=t;t.exp&&i.push(t.exp);t.arg&&(t.exp||i.push("void 0"),i.push(t.arg));if(Object.keys(t.modifiers).length){t.arg||(t.exp||i.push("void 0"),i.push("void 0"));const e=J("true",!1,n);i.push(K(t.modifiers.map(t=>Z(t,e)),n))}return q(i,t.loc)}(t,e))):void 0,i.shouldUseBlock&&(b=!0)}if(t.children.length>0){o===h&&(b=!0,x|=1024);if(r&&o!==l&&o!==h){const{slots:i,hasDynamicSlots:s}=We(t,e);u=i,s&&(x|=1024)}else if(1===t.children.length&&o!==l){const i=t.children[0],s=i.type,n=5===s||8===s;n&&0===ce(i,e)&&(x|=1),u=n||2===s?i:t.children}else u=t.children}0!==x&&(p=String(x),g&&g.length&&(f=function(t){let e="[";for(let i=0,s=t.length;i<s;i++)e+=JSON.stringify(t[i]),i<s-1&&(e+=", ");return e+"]"}(g))),t.codegenNode=$(e,o,d,u,p,f,m,!!b,!1,r,t.loc)};function qe(t,e,i=t.props,n,r,a=!1){const{tag:l,loc:c,children:h}=t;let d=[];const u=[],p=[],f=h.length>0;let g=!1,m=0,x=!1,b=!1,y=!1,v=!1,w=!1,S=!1;const k=[],C=t=>{d.length&&(u.push(K(Ke(d),c)),d=[]),t&&u.push(t)},A=({key:t,value:i})=>{if(st(t)){const o=t.content,a=(0,s.Mp)(o);
vendor: 5,246 bytes, line 2
2if(!a||n&&!r||"onclick"===o.toLowerCase()||"onUpdate:modelValue"===o||(0,s.SU)(o)||(v=!0),a&&(0,s.SU)(o)&&(S=!0),20===i.type||(4===i.type||8===i.type)&&ce(i,e)>0)return;"ref"===o?x=!0:"class"===o?b=!0:"style"===o?y=!0:"key"===o||k.includes(o)||k.push(o),!n||"class"!==o&&"style"!==o||k.includes(o)||k.push(o)}else w=!0};for(let r=0;r<i.length;r++){const h=i[r];if(6===h.type){const{loc:t,name:i,value:s}=h;let n=!0;if("ref"===i&&(x=!0,e.scopes.vFor>0&&d.push(Z(J("ref_for",!0),J("true")))),"is"===i&&(Je(l)||s&&s.content.startsWith("vue:")||Lt("COMPILER_IS_ON_ELEMENT",e)))continue;d.push(Z(J(i,!0,ut(t,0,i.length)),J(s?s.content:"",n,s?s.loc:t)))}else{const{name:i,arg:r,exp:m,loc:x}=h,b="bind"===i,y="on"===i;if("slot"===i){n||e.onError(o(40,x));continue}if("once"===i||"memo"===i)continue;if("is"===i||b&&xt(r,"is")&&(Je(l)||Lt("COMPILER_IS_ON_ELEMENT",e)))continue;if(y&&a)continue;if((b&&xt(r,"key")||y&&f&&xt(r,"vue:before-update"))&&(g=!0),b&&xt(r,"ref")&&e.scopes.vFor>0&&d.push(Z(J("ref_for",!0),J("true"))),!r&&(b||y)){if(w=!0,m)if(b){if(C(),Lt("COMPILER_V_BIND_OBJECT_ORDER",e)){u.unshift(m);continue}u.push(m)}else C({type:14,loc:x,callee:e.helper(D),arguments:n?[m]:[m,"true"]});else e.onError(o(b?34:35,x));continue}const v=e.directiveTransforms[i];if(v){const{props:i,needRuntime:n}=v(h,t,e);!a&&i.forEach(A),y&&r&&!st(r)?C(K(i,c)):d.push(...i),n&&(p.push(h),(0,s.Bm)(n)&&Ue.set(h,n))}else(0,s.lk)(i)||(p.push(h),f&&(g=!0))}}let E;if(u.length?(C(),E=u.length>1?tt(e.helper(P),u,c):u[0]):d.length&&(E=K(Ke(d),c)),w?m|=16:(b&&!n&&(m|=2),y&&!n&&(m|=4),k.length&&(m|=8),v&&(m|=32)),g||0!==m&&32!==m||!(x||S||p.length>0)||(m|=512),!e.inSSR&&E)switch(E.type){case 15:let t=-1,i=-1,s=!1;for(let e=0;e<E.properties.length;e++){const n=E.properties[e].key;st(n)?"class"===n.content?t=e:"style"===n.content&&(i=e):n.isHandlerKey||(s=!0)}const n=E.properties[t],r=E.properties[i];s?E=tt(e.helper(_),[E]):(n&&!st(n.value)&&(n.value=tt(e.helper(O),[n.value])),r&&(y||4===r.value.type&&"["===r.value.content.trim()[0]||17===r.value.type)&&(r.value=tt(e.helper(L),[r.value])));break;case 14:break;default:E=tt(e.helper(_),[tt(e.helper(I),[E])])}return{props:E,directives:p,patchFlag:m,dynamicPropNames:k,shouldUseBlock:g}}function Ke(t){const e=new Map,i=[];for(let n=0;n<t.length;n++){const r=t[n];if(8===r.key.type||!r.key.isStatic){i.push(r);continue}const o=r.key.content,a=e.get(o);a?("style"===o||"class"===o||(0,s.Mp)(o))&&Ze(a,r):(e.set(o,r),i.push(r))}return i}function Ze(t,e){17===t.value.type?t.value.elements.push(e.value):t.value=q([t.value,e.value],t.loc)}function Je(t){return"component"===t||"Component"===t}const Qe=/-(\w)/g,ti=(t=>{const e=Object.create(null);return i=>e[i]||(e[i]=t(i))})(t=>t.replace(Qe,(t,e)=>e?e.toUpperCase():"")),ei=(t,e)=>{if(wt(t)){const{children:i,loc:s}=t,{slotName:n,slotProps:r}=function(t,e){let i,s='"default"';const n=[];for(let e=0;e<t.props.length;e++){const i=t.props[e];6===i.type?i.value&&("name"===i.name?s=JSON.stringify(i.value.content):(i.name=ti(i.name),n.push(i))):"bind"===i.name&&xt(i.arg,"name")?i.exp&&(s=i.exp):("bind"===i.name&&i.arg&&st(i.arg)&&(i.arg.content=ti(i.arg.content)),n.push(i))}if(n.length>0){const{props:s,directives:r}=qe(t,e,n,!1,!1);i=s,r.length&&e.onError(o(36,r[0].loc))}return{slotName:s,slotProps:i}}(t,e),a=[e.prefixIdentifiers?"_ctx.$slots":"$slots",n,"{}","undefined","true"];let l=2;r&&(a[2]=r,l=3),i.length&&(a[3]=et([],i,!1,!1,s),l=4),e.scopeId&&!e.slotted&&(l=5),a.splice(l),t.codegenNode=tt(e.helper(E),a,s)}};const ii=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,si=(t,e,i,n)=>{const{loc:r,modifiers:a,arg:l}=t;let c;if(t.exp||a.length||i.onError(o(35,r)),4===l.type)if(l.isStatic){let t=l.content;t.startsWith("vue:")&&(t=`vnode-${t.slice(4)}`);c=J(0!==e.tagType||t.startsWith("vnode")||!/[A-Z]/.test(t)?(0,s.rU)((0,s.PT)(t)):`on:${t}`,!0,l.loc)}else c=Q([`${i.helperString(B)}(`,l,")"]);else c=l,c.children.unshift(`${i.helperString(B)}(`),c.children.push(")");let h=t.exp;h&&!h.content.trim()&&(h=void 0);let d=i.cacheHandlers&&!h&&!i.inVOnce;if(h){const t=dt(h.content),e=!(t||ii.test(h.content)),i=h.content.includes(";");0,(e||d&&t)&&(h=Q([`${e?"$event":"(...args)"} => ${i?"{":"("}`,h,i?"}":")"]))}let u={props:[Z(c,h||J("() => {}",!1,r))]};return n&&(u=n(u)),d&&(u.props[0].value=i.cache(u.props[0].value)),u.props.forEach(t=>t.key.isHandlerKey=!0),u},ni=(t,e,i)=>{const{exp:n,modifiers:r,loc:a}=t,l=t.arg;return 4!==l.type?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),r.includes("camel")&&(4===l.type?l.isStatic?l.content=(0,s.PT)(l.content):l.content=`${i.helperString(R)}(${l.content})`:(l.children.unshift(`${i.helperString(R)}(`),l.children.push(")"))),i.inSSR||(r.includes("prop")&&ri(l,"."),r.includes("attr")&&ri(l,"^")),!n||4===n.type&&!n.content.trim()?(i.onError(o(34,a)),{props:[Z(l,J("",!0,a))]}):{props:[Z(l,n)]}},ri=(t,e)=>{4===t.type?t.isStatic?t.content=e+t.content:t.content=`\`${e}\${${t.content}}\``:(t.children.unshift(`'${e}' + (`),t.children.push(")"))},oi=(t,e)=>{if(0===t.type||1===t.type||11===t.type||10===t.type)return()=>{const i=t.children;let s,n=!1;for(let t=0;t<i.length;t++){const e=i[t];if(bt(e)){n=!0;
2for(let n=t+1;n<i.length;n++){const r=i[n];if(!bt(r)){s=void 0;break}s||(s=i[t]=Q([e],e.loc)),s.children.push(" + ",r),i.splice(n,1),n--}}}if(n&&(1!==i.length||0!==t.type&&(1!==t.type||0!==t.tagType||t.props.find(t=>7===t.type&&!e.directiveTransforms[t.name])||"template"===t.tag)))for(let t=0;t<i.length;t++){const s=i[t];if(bt(s)||8===s.type){const n=[];2===s.type&&" "===s.content||n.push(s),e.ssr||0!==ce(s,e)||n.push("1"),i[t]={type:12,content:s,loc:s.loc,codegenNode:tt(e.helper(b),n)}}}}},ai=new WeakSet,li=(t,e)=>{if(1===t.type&&gt(t,"once",!0)){if(ai.has(t)||e.inVOnce)return;return ai.add(t),e.inVOnce=!0,e.helper(j),()=>{e.inVOnce=!1;const t=e.currentNode;t.codegenNode&&(t.codegenNode=e.cache(t.codegenNode,!0))}}},ci=(t,e,i)=>{const{exp:s,arg:n}=t;if(!s)return i.onError(o(41,t.loc)),hi();const r=s.loc.source,a=4===s.type?s.content:r,l=i.bindingMetadata[r];if("props"===l||"props-aliased"===l)return i.onError(o(44,s.loc)),hi();if(!a.trim()||!dt(a))return i.onError(o(42,s.loc)),hi();const c=n||J("modelValue",!0),h=n?st(n)?`onUpdate:${n.content}`:Q(['"onUpdate:" + ',n]):"onUpdate:modelValue";let d;d=Q([`${i.isTS?"($event: any)":"$event"} => ((`,s,") = $event)"]);const u=[Z(c,t.exp),Z(h,d)];if(t.modifiers.length&&1===e.tagType){const e=t.modifiers.map(t=>(at(t)?t:JSON.stringify(t))+": true").join(", "),i=n?st(n)?`${n.content}Modifiers`:Q([n,' + "Modifiers"']):"modelModifiers";u.push(Z(i,J(`{ ${e} }`,!1,t.loc,2)))}return hi(u)};function hi(t=[]){return{props:t}}const di=/[\w).+\-_$\]]/,ui=(t,e)=>{Lt("COMPILER_FILTER",e)&&(5===t.type&&pi(t.content,e),1===t.type&&t.props.forEach(t=>{7===t.type&&"for"!==t.name&&t.exp&&pi(t.exp,e)}))};function pi(t,e){if(4===t.type)fi(t,e);else for(let i=0;i<t.children.length;i++){const s=t.children[i];"object"==typeof s&&(4===s.type?fi(s,e):8===s.type?pi(t,e):5===s.type&&pi(s.content,e))}}function fi(t,e){const i=t.content;let s,n,r,o,a=!1,l=!1,c=!1,h=!1,d=0,u=0,p=0,f=0,g=[];for(r=0;r<i.length;r++)if(n=s,s=i.charCodeAt(r),a)39===s&&92!==n&&(a=!1);else if(l)34===s&&92!==n&&(l=!1);else if(c)96===s&&92!==n&&(c=!1);else if(h)47===s&&92!==n&&(h=!1);else if(124!==s||124===i.charCodeAt(r+1)||124===i.charCodeAt(r-1)||d||u||p){switch(s){case 34:l=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:u++;break;case 93:u--;break;case 123:d++;break;case 125:d--}if(47===s){let t,e=r-1;for(;e>=0&&(t=i.charAt(e)," "===t);e--);t&&di.test(t)||(h=!0)}}else void 0===o?(f=r+1,o=i.slice(0,r).trim()):m();function m(){g.push(i.slice(f,r).trim()),f=r+1}if(void 0===o?o=i.slice(0,r).trim():0!==f&&m(),g.length){for(r=0;r<g.length;r++)o=gi(o,g[r],e);t.content=o}}function gi(t,e,i){i.helper(k);const s=e.indexOf("(");if(s<0)return i.filters.add(e),`${Tt(e,"filter")}(${t})`;{const n=e.slice(0,s),r=e.slice(s+1);return i.filters.add(n),`${Tt(n,"filter")}(${t}${")"!==r?","+r:r}`}}const mi=new WeakSet,xi=(t,e)=>{if(1===t.type){const i=gt(t,"memo");if(!i||mi.has(t))return;return mi.add(t),()=>{const s=t.codegenNode||e.currentNode.codegenNode;s&&13===s.type&&(1!==t.tagType&&Pt(s,e),t.codegenNode=tt(e.helper(Y),[i.exp,et(void 0,s),"_cache",String(e.cached++)]))}}};function bi(t,e={}){const i=e.onError||n,r="module"===e.mode;!0===e.prefixIdentifiers?i(o(47)):r&&i(o(48));const a=!1;e.cacheHandlers&&i(o(49)),e.scopeId&&!r&&i(o(50));const l=(0,s.Kg)(t)?Nt(t,e):t,[c,h]=[[li,Pe,xi,Ie,ui,ei,$e,He,oi],{on:si,bind:ni,model:ci}];return me(l,(0,s.X$)({},e,{prefixIdentifiers:a,nodeTransforms:[...c,...e.nodeTransforms||[]],directiveTransforms:(0,s.X$)({},h,e.directiveTransforms||{})})),we(l,(0,s.X$)({},e,{prefixIdentifiers:a}))}const yi=Symbol(""),vi=Symbol(""),wi=Symbol(""),Si=Symbol(""),ki=Symbol(""),Ci=Symbol(""),Ai=Symbol(""),Ei=Symbol(""),Mi=Symbol(""),Ti=Symbol("");var Pi;let Oi;Pi={[yi]:"vModelRadio",[vi]:"vModelCheckbox",[wi]:"vModelText",[Si]:"vModelSelect",[ki]:"vModelDynamic",[Ci]:"withModifiers",[Ai]:"withKeys",[Ei]:"vShow",[Mi]:"Transition",[Ti]:"TransitionGroup"},Object.getOwnPropertySymbols(Pi).forEach(t=>{G[t]=Pi[t]});const Li=(0,s.pD)("style,iframe,script,noscript",!0),_i={isVoidTag:s.BU,isNativeTag:t=>(0,s.OC)(t)||(0,s.nC)(t),isPreTag:t=>"pre"===t,decodeEntities:function(t,e=!1){return Oi||(Oi=document.createElement("div")),e?(Oi.innerHTML=`<div foo="${t.replace(/"/g,"&quot;")}">`,Oi.children[0].getAttribute("foo")):(Oi.innerHTML=t,Oi.textContent)},isBuiltInComponent:t=>nt(t,"Transition")?Mi:nt(t,"TransitionGroup")?Ti:void 0,getNamespace(t,e){let i=e?e.ns:0;if(e&&2===i)if("annotation-xml"===e.tag){if("svg"===t)return 1;e.props.some(t=>6===t.type&&"encoding"===t.name&&null!=t.value&&("text/html"===t.value.content||"application/xhtml+xml"===t.value.content))&&(i=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&"mglyph"!==t&&"malignmark"!==t&&(i=0);else e&&1===i&&("foreignObject"!==e.tag&&"desc"!==e.tag&&"title"!==e.tag||(i=0));if(0===i){if("svg"===t)return 1;if("math"===t)return 2}return i},getTextMode({tag:t,ns:e}){if(0===e){if("textarea"===t||"title"===t)return 1;if(Li(t))return 2}return 0}},Ii=(t,e)=>{const i=(0,s.Gx)(t);return J(JSON.stringify(i),!1,e,3)};function Di(t,e){return o(t,e)}const Ri=(0,s.pD)("passive,once,capture"),Ni=(0,s.pD)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Bi=(0,s.pD)("left,right"),ji=(0,s.pD)("onkeyup,onkeydown,onkeypress",!0),Fi=(t,e)=>st(t)&&"onclick"===t.content.toLowerCase()?J(e,!0):4!==t.type?Q(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t;const zi=(t,e)=>{1!==t.type||0!==t.tagType||"script"!==t.tag&&"style"!==t.tag||(e.onError(Di(61,t.loc)),e.removeNode())},Hi=[t=>{1===t.type&&t.props.forEach((e,i)=>{6===e.type&&"style"===e.name&&e.value&&(t.props[i]={type:7,name:"bind",arg:J("style",!0,e.loc),exp:Ii(e.value.content,e.loc),modifiers:[],loc:e.loc})})}],Xi={cloak:()=>({props:[]}),html:(t,e,i)=>{const{exp:s,loc:n}=t;return s||i.onError(Di(51,n)),e.children.length&&(i.onError(Di(52,n)),e.children.length=0),{props:[Z(J("innerHTML",!0,n),s||J("",!0))]}},text:(t,e,i)=>{const{exp:s,loc:n}=t;return s||i.onError(Di(53,n)),e.children.length&&(i.onError(Di(54,n)),e.children.length=0),{props:[Z(J("textContent",!0),s?ce(s,i)>0?s:tt(i.helperString(T),[s],n):J("",!0))]}},model:(t,e,i)=>{const s=ci(t,e,i);if(!s.props.length||1===e.tagType)return s;t.arg&&i.onError(Di(56,t.arg.loc));const{tag:n}=e,r=i.isCustomElement(n);if("input"===n||"textarea"===n||"select"===n||r){let o=wi,a=!1;if("input"===n||r){const s=mt(e,"type");if(s){if(7===s.type)o=ki;else if(s.value)switch(s.value.content){case"radio":o=yi;break;case"checkbox":o=vi;break;case"file":a=!0,i.onError(Di(57,t.loc))}}else(function(t){return t.props.some(t=>!(7!==t.type||"bind"!==t.name||t.arg&&4===t.arg.type&&t.arg.isStatic))})(e)&&(o=ki)}else"select"===n&&(o=Si);a||(s.needRuntime=i.helper(o))}else i.onError(Di(55,t.loc));return s.props=s.props.filter(t=>!(4===t.key.type&&"modelValue"===t.key.content)),s},on:(t,e,i)=>si(t,e,i,e=>{const{modifiers:n}=t;if(!n.length)return e;let{key:r,value:o}=e.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:c}
2=((t,e,i)=>{const s=[],n=[],r=[];for(let o=0;o<e.length;o++){const a=e[o];"native"===a&&_t("COMPILER_V_ON_NATIVE",i)||Ri(a)?r.push(a):Bi(a)?st(t)?ji(t.content)?s.push(a):n.push(a):(s.push(a),n.push(a)):Ni(a)?n.push(a):s.push(a)}return{keyModifiers:s,nonKeyModifiers:n,eventOptionModifiers:r}})(r,n,i,t.loc);if(l.includes("right")&&(r=Fi(r,"onContextmenu")),l.includes("middle")&&(r=Fi(r,"onMouseup")),l.length&&(o=tt(i.helper(Ci),[o,JSON.stringify(l)])),!a.length||st(r)&&!ji(r.content)||(o=tt(i.helper(Ai),[o,JSON.stringify(a)])),c.length){const t=c.map(s.ZH).join("");r=st(r)?J(`${r.content}${t}`,!0):Q(["(",r,`) + "${t}"`])}return{props:[Z(r,o)]}}),show:(t,e,i)=>{const{exp:s,loc:n}=t;return s||i.onError(Di(59,n)),{props:[],needRuntime:i.helper(Ei)}}};function Wi(t,e={}){return bi(t,(0,s.X$)({},_i,e,{nodeTransforms:[zi,...Hi,...e.nodeTransforms||[]],directiveTransforms:(0,s.X$)({},Xi,e.directiveTransforms||{}),transformHoist:null}))}},526(t,e){"use strict";e.byteLength=function(t){var e=a(t),i=e[0],s=e[1];return 3*(i+s)/4-s},e.toByteArray=function(t){var e,i,r=a(t),o=r[0],l=r[1],c=new n(function(t,e,i){return 3*(e+i)/4-i}(0,o,l)),h=0,d=l>0?o-4:o;for(i=0;i<d;i+=4)e=s[t.charCodeAt(i)]<<18|s[t.charCodeAt(i+1)]<<12|s[t.charCodeAt(i+2)]<<6|s[t.charCodeAt(i+3)],c[h++]=e>>16&255,c[h++]=e>>8&255,c[h++]=255&e;2===l&&(e=s[t.charCodeAt(i)]<<2|s[t.charCodeAt(i+1)]>>4,c[h++]=255&e);1===l&&(e=s[t.charCodeAt(i)]<<10|s[t.charCodeAt(i+1)]<<4|s[t.charCodeAt(i+2)]>>2,c[h++]=e>>8&255,c[h++]=255&e);return c},e.fromByteArray=function(t){for(var e,s=t.length,n=s%3,r=[],o=16383,a=0,l=s-n;a<l;a+=o)r.push(c(t,a,a+o>l?l:a+o));1===n?(e=t[s-1],r.push(i[e>>2]+i[e<<4&63]+"==")):2===n&&(e=(t[s-2]<<8)+t[s-1],r.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return r.join("")};for(var i=[],s=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)i[o]=r[o],s[r.charCodeAt(o)]=o;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t){return i[t>>18&63]+i[t>>12&63]+i[t>>6&63]+i[63&t]}function c(t,e,i){for(var s,n=[],r=e;r<i;r+=3)s=(t[r]<<16&16711680)+(t[r+1]<<8&65280)+(255&t[r+2]),n.push(l(s));return n.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},584(t,e,i){"use strict";var s={};function n(t,e,i){var s,n=i||{},r=n.noTrailing,o=void 0!==r&&r,a=n.noLeading,l=void 0!==a&&a,c=n.debounceMode,h=void 0===c?void 0:c,d=!1,u=0;function p(){s&&clearTimeout(s)}function f(){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];var a=this,c=Date.now()-u;function f(){u=Date.now(),e.apply(a,n)}function g(){s=void 0}d||(l||!h||s||f(),p(),void 0===h&&c>t?l?(u=Date.now(),o||(s=setTimeout(h?g:f,t))):f():!0!==o&&(s=setTimeout(h?g:f,void 0===h?t-c:t)))}return f.cancel=function(t){var e=(t||{}).upcomingOnly,i=void 0!==e&&e;p(),d=!i},f}i.r(s),i.d(s,{hasBrowserEnv:()=>be,hasStandardBrowserEnv:()=>ve,hasStandardBrowserWebWorkerEnv:()=>we,navigator:()=>ye,origin:()=>Se});var r=i(934);var o;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const a="undefined"!=typeof window,l=(Object.prototype.toString,t=>"function"==typeof t),c=()=>{};a&&(null==(o=null==window?void 0:window.navigator)?void 0:o.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function h(t){return"function"==typeof t?t():(0,r.unref)(t)}function d(t){return!!(0,r.getCurrentScope)()&&((0,r.onScopeDispose)(t),!0)}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function u(t){var e;const i=h(t);return null!=(e=null==i?void 0:i.$el)?e:i}const p=a?window:void 0;a&&window.document,a&&window.navigator,a&&window.location;function f(...t){let e,i,s,n;if("string"==typeof t[0]||Array.isArray(t[0])?([i,s,n]=t,e=p):[e,i,s,n]=t,!e)return c;Array.isArray(i)||(i=[i]),Array.isArray(s)||(s=[s]);const o=[],a=()=>{o.forEach(t=>t()),o.length=0},l=(0,r.watch)(()=>u(e),t=>{a(),t&&o.push(...i.flatMap(e=>s.map(i=>((t,e,i)=>(t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)))(t,e,i))))},{immediate:!0,flush:"post"}),h=()=>{l(),a()};return d(h),h}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function g(t={}){var e;const{window:i=p}=t,s=null!=(e=t.document)?e:null==i?void 0:i.document,n=function(t,e){let i,s,n;const o=(0,r.ref)(!0),a=()=>{o.value=!0,n()};(0,r.watch)(t,a,{flush:"sync"});const c=l(e)?e:e.get,h=l(e)?void 0:e.set,d=(0,r.customRef)((t,e)=>(s=t,n=e,{get:()=>(o.value&&(i=c(),o.value=!1),s(),i),set(t){null==h||h(t)}}
2));return Object.isExtensible(d)&&(d.trigger=a),d}(()=>null,()=>null==s?void 0:s.activeElement);return i&&(f(i,"blur",t=>{null===t.relatedTarget&&n.trigger()},!0),f(i,"focus",n.trigger,!0)),n}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},x="__vueuse_ssr_handlers__";m[x]=m[x]||{};m[x];Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;new Map;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var b,y;(y=b||(b={})).UP="UP",y.RIGHT="RIGHT",y.DOWN="DOWN",y.LEFT="LEFT",y.NONE="NONE";Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var v=Object.defineProperty,w=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,C=(t,e,i)=>e in t?v(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;((t,e)=>{for(var i in e||(e={}))S.call(e,i)&&C(t,i,e[i]);if(w)for(var i of w(e))k.call(e,i)&&C(t,i,e[i])})({linear:function(t){return t}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});var A=["aria-controls","aria-describedby","aria-labelledby","aria-expanded","aria-activedescendant","onClick","onKeydown"],E=["id","aria-labelledby"];const M={__name:"ComboBox",props:{id:{type:String,required:!0},name:{type:String,required:!0},ariaDescribedby:String,valid:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},listBoxOpenDelayMs:{type:Number,default:0}},setup:function(t){var e=t,i=(0,r.reactive)({id:"",value:"",title:"",disabled:""}),s=(0,r.ref)(null),n=(0,r.ref)(null),o=(0,r.ref)(null),a=(0,r.ref)(!1),l=(0,r.ref)(-1),c=function(t,e={}){const i=g(e),s=(0,r.computed)(()=>u(t));return{focused:(0,r.computed)(()=>!(!s.value||!i.value)&&s.value.contains(i.value))}}(n),h=c.focused,d=(0,r.useSlots)(),m=(0,r.computed)(function(){return d.options().filter(function(t){var e;return!(null===(e=t.props)||void 0===e||!e.value)}).map(function(t){var e,i,s,n;return{id:null===(e=t.props)||void 0===e?void 0:e.id,title:null===(i=t.props)||void 0===i?void 0:i.title,value:null===(s=t.props)||void 0===s?void 0:s.value,disabled:(null===(n=t.props)||void 0===n?void 0:n.disabled)||""}})}),x=function(){l.value=setTimeout(function(){a.value=!0},e.listBoxOpenDelayMs)},b=function(){a.value?a.value=!1:clearTimeout(l.value)},y=function(){a.value?b():x()},v=function(t){i.id=t.id,i.value=t.value,i.title=t.title,i.disabled=t.disabled||"",s.value=t.id,b()},w=function(){var t=m.value.find(function(t){return t.id===s.value});t&&"disabled"!==t.disabled?v(t):b()},S=function(t){var e=o.value.scrollTop,i=o.value.scrollTop+o.value.clientHeight,s=o.value.children[t].offsetTop,n=o.value.children[t].offsetTop+o.value.children[t].clientHeight,r=o.value.children[t].offsetHeight;s<e&&(r*=-1),s>=e&&s<=i&&n<=i||(o.value.scrollTop+=r)},k=function(){s.value=m.value[0].id},C=function(){if(!a.value)return x(),void k();var t,e;t=m.value.findIndex(function(t){return t.id===s.value}),e=Math.max(t-1,0),s.value=m.value[e].id,S(e)},M=function(){var t,e;a.value?(t=m.value.findIndex(function(t){return t.id===s.value}),e=Math.min(t+1,m.value.length-1),s.value=m.value[e].id,S(e)):x()},T=function(){a.value?w():x()},P=function(){a.value?w():x()},O=function(){a.value?k():x()},L=function(){a.value?s.value=m.value[Math.max(0,m.value.length-1)].id:x()};
2return function(t,e,i={}){const{window:s=p,ignore:n=[],capture:r=!0,detectIframe:o=!1}=i;if(!s)return;let a,l=!0;const c=t=>n.some(e=>{if("string"==typeof e)return Array.from(s.document.querySelectorAll(e)).some(e=>e===t.target||t.composedPath().includes(e));{const i=u(e);return i&&(t.target===i||t.composedPath().includes(i))}}),h=i=>{s.clearTimeout(a);const n=u(t);n&&n!==i.target&&!i.composedPath().includes(n)&&(0===i.detail&&(l=!c(i)),l?e(i):l=!0)},d=[f(s,"click",h,{passive:!0,capture:r}),f(s,"pointerdown",e=>{const i=u(t);i&&(l=!e.composedPath().includes(i)&&!c(e))},{passive:!0}),f(s,"pointerup",t=>{if(0===t.button){const e=t.composedPath();t.composedPath=()=>e,a=s.setTimeout(()=>h(t),50)}},{passive:!0}),o&&f(s,"blur",i=>{var n;const r=u(t);"IFRAME"!==(null==(n=s.document.activeElement)?void 0:n.tagName)||(null==r?void 0:r.contains(s.document.activeElement))||e(i)})].filter(Boolean)}(n,function(){return b()}),(0,r.provide)("selected",{selectedOption:i,updateSelectedOption:v}),(0,r.provide)("activeOptionId",s),(0,r.watch)(h,function(t){t||w()}),function(e,l){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["combo-box",{"combo-box--multiple":t.multiple}]),ref_key:"comboBoxRef",ref:n},[(0,r.createElementVNode)("div",{role:"combobox",class:(0,r.normalizeClass)(["combo-box__input",{"combo-box__input--disabled":!!i.disabled||!i.value},{error:!t.valid}]),tabindex:"0","aria-haspopup":"listbox","aria-controls":t.id+"-listbox","aria-describedby":t.ariaDescribedby,"aria-labelledby":t.id+"-label","aria-expanded":String(a.value),"aria-activedescendant":a.value?s.value:void 0,onClick:(0,r.withModifiers)(y,["prevent"]),onKeydown:[(0,r.withKeys)((0,r.withModifiers)(C,["prevent"]),["up"]),(0,r.withKeys)((0,r.withModifiers)(M,["prevent"]),["down"]),(0,r.withKeys)((0,r.withModifiers)(T,["prevent"]),["enter"]),(0,r.withKeys)((0,r.withModifiers)(P,["prevent"]),["space"]),(0,r.withKeys)((0,r.withModifiers)(b,["prevent"]),["esc"]),(0,r.withKeys)((0,r.withModifiers)(O,["prevent"]),["home"]),(0,r.withKeys)((0,r.withModifiers)(L,["prevent"]),["end"])]},(0,r.toDisplayString)(i.title),43,A),(0,r.withDirectives)((0,r.createElementVNode)("div",{id:t.id+"-listbox",role:"listbox",ref_key:"listBoxRef",ref:o,class:"combo-box__menu",tabindex:"-1","aria-labelledby":t.id+"-label"},[(0,r.renderSlot)(e.$slots,"options")],8,E),[[r.vShow,a.value]]),(0,r.renderSlot)(e.$slots,"select",{value:i.value})],2)}}},T=M;function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}var O=["selected"];function L(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,s)}return i}function _(t,e,i){return(e=function(t){var e=function(t,e){if("object"!==P(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e||"default");if("object"!==P(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===P(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function I(t,e){if(null==t)return{};var i,s,n=function(t,e){if(null==t)return{};var i,s,n={},r=Object.keys(t);for(s=0;s<r.length;s++)i=r[s],e.indexOf(i)>=0||(n[i]=t[i]);return n}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(s=0;s<r.length;s++)i=r[s],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}var D=["id","aria-selected","aria-disabled"];const R={__name:"ComboBoxOption",props:{id:{type:String,required:!0},value:{type:String,required:!0},title:{type:String,required:!0},disabled:String,selected:String},setup:function(t){var e=t,i=(0,r.inject)("selected"),s=i.selectedOption,n=i.updateSelectedOption,o=(0,r.inject)("activeOptionId");return(0,r.onMounted)(function(){if(e.selected){e.selected;var t=I(e,O);n(function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
2e%2?L(Object(i),!0).forEach(function(e){_(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):L(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}({},t))}}),function(e,i){return t.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,role:"option",id:t.id,class:(0,r.normalizeClass)(["combo-box__option",{"combo-box__option--active":(0,r.unref)(o)===t.id},{"combo-box__option--checked":(0,r.unref)(s).id===t.id},{"combo-box__option--disabled":!!t.disabled}]),"aria-selected":String((0,r.unref)(s).id===t.id),"aria-disabled":t.disabled?"true":void 0,onClick:i[0]||(i[0]=(0,r.withModifiers)(function(e){return!t.disabled&&(0,r.unref)(n)({id:t.id,value:t.value,title:t.title})},["prevent"]))},(0,r.toDisplayString)(t.title),11,D)):(0,r.createCommentVNode)("",!0)}}},N=R;var B={class:"tabs"},j={class:"tabs__nav"},F={role:"tablist",class:"tabs__nav-list"},z=["id","href","aria-selected","aria-controls","aria-setsize","aria-posinset","tabindex","onClick","onKeydown"],H=(0,r.createElementVNode)("span",{class:"sr-only"},"Tab",-1),X=["value"],W={class:"tabs__content"};const Y={__name:"TabList",props:{disableNavLinks:{type:Boolean,default:!1},kind:{type:String,default:""}},setup:function(t){var e=t,i=(0,r.ref)(null),s=(0,r.ref)([]);(0,r.onBeforeUpdate)(function(){s.value=[]});var n=(0,r.useSlots)(),o=(0,r.computed)({get:function(){return n.default().map(function(t){return{name:t.props.name,slug:t.props.slug,id:"".concat(t.props.slug,"-label"),isActive:i.value?i.value===t.props.slug:t.props.selected,href:"#".concat(t.props.slug),ariaControls:"".concat(t.props.slug)}})},set:function(t){return n.default().map(function(e){return{name:e.props.name,slug:e.props.slug,id:"".concat(e.props.slug,"-label"),isActive:e.props.slug===t,href:"".concat(e.props.slug),ariaControls:"".concat(e.props.slug)}})}}),a=function(t){return"btn"===e.kind?["btn btn--tertiary-grey tabs__nav-btn",{"btn--active":t.isActive}]:["h5 tabs__nav-link",{"tabs__nav-link--active":t.isActive}]};(0,r.provide)("selectedTab",i),(0,r.onMounted)(function(){var t=window.location.hash.substring(1),e=t?o.value.find(function(e){return e.ariaControls===t}):o.value[0];i.value=null==e?void 0:e.slug});var l=function(t){i.value=t;var n,r=o.value.findIndex(function(e){return e.slug===t});(s.value[r].focus(),e.disableNavLinks)||history.replaceState(void 0,void 0,null!==(n=o.value[r].href)&&void 0!==n?n:"")},c=function(){var t=(o.value.findIndex(function(t){return t.slug===i.value})+1)%o.value.length;l(o.value[t].slug)},h=function(){var t=o.value.findIndex(function(t){return t.slug===i.value}),e=0===t?o.value.length-1:t-1;l(o.value[e].slug)},d=function(){l(o.value[0].slug)},u=function(){l(o.value[o.value.length-1].slug)};return function(t,n){return(0,r.openBlock)(),(0,r.createElementBlock)("section",B,[(0,r.createElementVNode)("div",j,[(0,r.createElementVNode)("ul",F,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(o),function(t,i){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{key:"tabs__nav-item-"+i,role:"presentation",class:"tabs__nav-item"},[(0,r.createElementVNode)("a",{role:"tab",id:t.id,class:(0,r.normalizeClass)(a(t)),href:e.disableNavLinks?null:t.href,ref_for:!0,ref:function(t){s.value[i]=t},"aria-selected":String(t.isActive),"aria-controls":t.ariaControls,"aria-setsize":(0,r.unref)(o).length,"aria-posinset":i+1,tabindex:t.isActive?"0":"-1",onClick:(0,r.withModifiers)(function(e){return l(t.slug)},["prevent"]),onKeydown:[(0,r.withKeys)((0,r.withModifiers)(h,["prevent"]),["left"]),(0,r.withKeys)((0,r.withModifiers)(c,["prevent"]),["right"]),(0,r.withKeys)((0,r.withModifiers)(d,["prevent"]),["home"]),(0,r.withKeys)((0,r.withModifiers)(u,["prevent"]),["end"])]},(0,r.toDisplayString)(t.name),43,z)])}),128))]),(0,r.createElementVNode)("label",null,[H,(0,r.withDirectives)((0,r.createElementVNode)("select",{name:"tab",class:"tabs__select",onChange:n[0]||(n[0]=function(t){return l(i.value)}),"onUpdate:modelValue":n[1]||(n[1]=function(t){return i.value=t})},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(o),function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("option",{key:t.id,value:t.slug},(0,r.toDisplayString)(t.name),9,X)}),128))],544),[[r.vModelSelect,i.value]])])]),(0,r.createElementVNode)("div",W,[(0,r.renderSlot)(t.$slots,"default")])])}}},V=Y;function G(t,e){return function(){return t.apply(e,arguments)}}var U=i(606);const{toString:$}=Object.prototype,{getPrototypeOf:q}=Object,{iterator:K,toStringTag:Z}=Symbol,J=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),Q=(t,e)=>{let i=t;const s=[];for(;null!=i&&i!==Object.prototype;){if(-1!==s.indexOf(i))return!1;if(s.push(i),J(i,e))return!0;
vendor: 4,329 bytes, line 2
2i=q(i)}return!1},tt=(et=Object.create(null),t=>{const e=$.call(t);return et[e]||(et[e]=e.slice(8,-1).toLowerCase())});var et;const it=t=>(t=t.toLowerCase(),e=>tt(e)===t),st=t=>e=>typeof e===t,{isArray:nt}=Array,rt=st("undefined");function ot(t){return null!==t&&!rt(t)&&null!==t.constructor&&!rt(t.constructor)&&ct(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const at=it("ArrayBuffer");const lt=st("string"),ct=st("function"),ht=st("number"),dt=t=>null!==t&&"object"==typeof t,ut=t=>{if(!dt(t))return!1;const e=q(t);return!(null!==e&&e!==Object.prototype&&null!==q(e)||Q(t,Z)||Q(t,K))},pt=it("Date"),ft=it("File"),gt=it("Blob"),mt=it("FileList");const xt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i.g?i.g:{},bt=void 0!==xt.FormData?xt.FormData:void 0,yt=it("URLSearchParams"),[vt,wt,St,kt]=["ReadableStream","Request","Response","Headers"].map(it);function Ct(t,e,{allOwnKeys:i=!1}={}){if(null==t)return;let s,n;if("object"!=typeof t&&(t=[t]),nt(t))for(s=0,n=t.length;s<n;s++)e.call(null,t[s],s,t);else{if(ot(t))return;const n=i?Object.getOwnPropertyNames(t):Object.keys(t),r=n.length;let o;for(s=0;s<r;s++)o=n[s],e.call(null,t[o],o,t)}}function At(t,e){if(ot(t))return null;e=e.toLowerCase();const i=Object.keys(t);let s,n=i.length;for(;n-- >0;)if(s=i[n],e===s.toLowerCase())return s;return null}const Et="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:i.g,Mt=t=>!rt(t)&&t!==Et;const Tt=(Pt="undefined"!=typeof Uint8Array&&q(Uint8Array),t=>Pt&&t instanceof Pt);var Pt;const Ot=it("HTMLFormElement"),{propertyIsEnumerable:Lt}=Object.prototype,_t=it("RegExp"),It=(t,e)=>{const i=Object.getOwnPropertyDescriptors(t),s={};Ct(i,(i,n)=>{let r;!1!==(r=e(i,n,t))&&(s[n]=r||i)}),Object.defineProperties(t,s)};const Dt=it("AsyncFunction"),Rt=(Nt="function"==typeof setImmediate,Bt=ct(Et.postMessage),Nt?setImmediate:Bt?(jt=`axios@${Math.random()}`,Ft=[],Et.addEventListener("message",({source:t,data:e})=>{t===Et&&e===jt&&Ft.length&&Ft.shift()()},!1),t=>{Ft.push(t),Et.postMessage(jt,"*")}):t=>setTimeout(t));var Nt,Bt,jt,Ft;const zt="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Et):void 0!==U&&U.nextTick||Rt,Ht=t=>null!=t&&ct(t[K]),Xt={isArray:nt,isArrayBuffer:at,isBuffer:ot,isFormData:t=>{if(!t)return!1;if(bt&&t instanceof bt)return!0;const e=q(t);if(!e||e===Object.prototype)return!1;if(!ct(t.append))return!1;const i=tt(t);return"formdata"===i||"object"===i&&ct(t.toString)&&"[object FormData]"===t.toString()},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&at(t.buffer),e},isString:lt,isNumber:ht,isBoolean:t=>!0===t||!1===t,isObject:dt,isPlainObject:ut,isEmptyObject:t=>{if(!dt(t)||ot(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:vt,isRequest:wt,isResponse:St,isHeaders:kt,isUndefined:rt,isDate:pt,isFile:ft,isReactNativeBlob:t=>!(!t||void 0===t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:gt,isRegExp:_t,isFunction:ct,isStream:t=>dt(t)&&ct(t.pipe),isURLSearchParams:yt,isTypedArray:Tt,isFileList:mt,forEach:Ct,merge:function t(...e){const{caseless:i,skipUndefined:s}=Mt(this)&&this||{},n={},r=(e,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;const o=i&&"string"==typeof r&&At(n,r)||r,a=J(n,o)?n[o]:void 0;ut(a)&&ut(e)?n[o]=t(a,e):ut(e)?n[o]=t({},e):nt(e)?n[o]=e.slice():s&&rt(e)||(n[o]=e)};for(let t=0,i=e.length;t<i;t++){const i=e[t];if(!i||ot(i))continue;if(Ct(i,r),"object"!=typeof i||nt(i))continue;const s=Object.getOwnPropertySymbols(i);for(let t=0;t<s.length;t++){const e=s[t];Lt.call(i,e)&&r(i[e],e)}}return n},extend:(t,e,i,{allOwnKeys:s}={})=>(Ct(e,(e,s)=>{i&&ct(e)?Object.defineProperty(t,s,{__proto__:null,value:G(e,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:e,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,i,s)=>{t.prototype=Object.create(e.prototype,s),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,
vendor: 4,230 bytes, line 2
2configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),i&&Object.assign(t.prototype,i)},toFlatObject:(t,e,i,s)=>{let n,r,o;const a={};if(e=e||{},null==t)return e;do{for(n=Object.getOwnPropertyNames(t),r=n.length;r-- >0;)o=n[r],s&&!s(o,t,e)||a[o]||(e[o]=t[o],a[o]=!0);t=!1!==i&&q(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},kindOf:tt,kindOfTest:it,endsWith:(t,e,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=e.length;const s=t.indexOf(e,i);return-1!==s&&s===i},toArray:t=>{if(!t)return null;if(nt(t))return t;let e=t.length;if(!ht(e))return null;const i=new Array(e);for(;e-- >0;)i[e]=t[e];return i},forEachEntry:(t,e)=>{const i=(t&&t[K]).call(t);let s;for(;(s=i.next())&&!s.done;){const i=s.value;e.call(t,i[0],i[1])}},matchAll:(t,e)=>{let i;const s=[];for(;null!==(i=t.exec(e));)s.push(i);return s},isHTMLForm:Ot,hasOwnProperty:J,hasOwnProp:J,hasOwnInPrototypeChain:Q,getSafeProp:(t,e)=>null!=t&&Q(t,e)?t[e]:void 0,reduceDescriptors:It,freezeMethods:t=>{It(t,(e,i)=>{if(ct(t)&&["arguments","caller","callee"].includes(i))return!1;const s=t[i];ct(s)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")}))})},toObjectSet:(t,e)=>{const i={},s=t=>{t.forEach(t=>{i[t]=!0})};return nt(t)?s(t):s(String(t).split(e)),i},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:At,global:Et,isContextDefined:Mt,isSpecCompliantForm:function(t){return!!(t&&ct(t.append)&&"FormData"===t[Z]&&t[K])},toJSONObject:t=>{const e=new WeakSet,i=t=>{if(dt(t)){if(e.has(t))return;if(ot(t))return t;if(!("toJSON"in t)){e.add(t);const s=nt(t)?[]:{};return Ct(t,(t,e)=>{const n=i(t);!rt(n)&&(s[e]=n)}),e.delete(t),s}}return t};return i(t)},isAsyncFn:Dt,isThenable:t=>t&&(dt(t)||ct(t))&&ct(t.then)&&ct(t.catch),setImmediate:Rt,asap:zt,isIterable:Ht,isSafeIterable:t=>null!=t&&Q(t,K)&&Ht(t)},Wt=Xt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Yt=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Vt=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Gt(t,e){return Xt.isArray(t)?t.map(t=>Gt(t,e)):function(t){let e=0,i=t.length;for(;e<i;){const i=t.charCodeAt(e);if(9!==i&&32!==i)break;e+=1}for(;i>e;){const e=t.charCodeAt(i-1);if(9!==e&&32!==e)break;i-=1}return 0===e&&i===t.length?t:t.slice(e,i)}(String(t).replace(e,""))}function Ut(t){const e=Object.create(null);return Xt.forEach(t.toJSON(),(t,i)=>{e[i]=(t=>Gt(t,Vt))(t)}),e}const $t=Symbol("internals");function qt(t){return t&&String(t).trim().toLowerCase()}function Kt(t){return!1===t||null==t?t:Xt.isArray(t)?t.map(Kt):(t=>Gt(t,Yt))(String(t))}function Zt(t,e,i,s,n){return Xt.isFunction(s)?s.call(this,e,i):(n&&(e=i),Xt.isString(e)?Xt.isString(s)?-1!==e.indexOf(s):Xt.isRegExp(s)?s.test(e):void 0:void 0)}class Jt{constructor(t){t&&this.set(t)}set(t,e,i){const s=this;function n(t,e,i){const n=qt(e);if(!n)return;const r=Xt.findKey(s,n);(!r||void 0===s[r]||!0===i||void 0===i&&!1!==s[r])&&(s[r||e]=Kt(t))}const r=(t,e)=>Xt.forEach(t,(t,i)=>n(t,i,e));if(Xt.isPlainObject(t)||t instanceof this.constructor)r(t,e);else if(Xt.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))r((t=>{const e={};let i,s,n;return t&&t.split("\n").forEach(function(t){n=t.indexOf(":"),i=t.substring(0,n).trim().toLowerCase(),s=t.substring(n+1).trim(),!i||e[i]&&Wt[i]||("set-cookie"===i?e[i]?e[i].push(s):e[i]=[s]:e[i]=e[i]?e[i]+", "+s:s)}),e})(t),e);else if(Xt.isObject(t)&&Xt.isSafeIterable(t)){let i,s,n=Object.create(null);for(const e of t){if(!Xt.isArray(e))throw new TypeError("Object iterator must return a key-value pair");s=e[0],Xt.hasOwnProp(n,s)?(i=n[s],n[s]=Xt.isArray(i)?[...i,e[1]]:[i,e[1]]):n[s]=e[1]}r(n,e)}else null!=t&&n(e,t,i);return this}get(t,e){if(t=qt(t)){const i=Xt.findKey(this,t);if(i){const t=this[i];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),i=/([^\s,;
vendor: 4,559 bytes, line 2
2=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=i.exec(t);)e[s[1]]=s[2];return e}(t);if(Xt.isFunction(e))return e.call(this,t,i);if(Xt.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=qt(t)){const i=Xt.findKey(this,t);return!(!i||void 0===this[i]||e&&!Zt(0,this[i],i,e))}return!1}delete(t,e){const i=this;let s=!1;function n(t){if(t=qt(t)){const n=Xt.findKey(i,t);!n||e&&!Zt(0,i[n],n,e)||(delete i[n],s=!0)}}return Xt.isArray(t)?t.forEach(n):n(t),s}clear(t){const e=Object.keys(this);let i=e.length,s=!1;for(;i--;){const n=e[i];t&&!Zt(0,this[n],n,t,!0)||(delete this[n],s=!0)}return s}normalize(t){const e=this,i={};return Xt.forEach(this,(s,n)=>{const r=Xt.findKey(i,n);if(r)return e[r]=Kt(s),void delete e[n];const o=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}(n):String(n).trim();o!==n&&delete e[n],e[o]=Kt(s),i[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Xt.forEach(this,(i,s)=>{null!=i&&!1!==i&&(e[s]=t&&Xt.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(t=>i.set(t)),i}static accessor(t){const e=(this[$t]=this[$t]={accessors:{}}).accessors,i=this.prototype;function s(t){const s=qt(t);e[s]||(!function(t,e){const i=Xt.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(t,s+i,{__proto__:null,value:function(t,i,n){return this[s].call(this,e,t,i,n)},configurable:!0})})}(i,t),e[s]=!0)}return Xt.isArray(t)?t.forEach(s):s(t),this}}Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Xt.reduceDescriptors(Jt.prototype,({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[i]=t}}}),Xt.freezeMethods(Jt);const Qt=Jt;function te(t,e){const i=new Set(e.map(t=>String(t).toLowerCase())),s=[],n=t=>{if(null===t||"object"!=typeof t)return t;if(Xt.isBuffer(t))return t;if(-1!==s.indexOf(t))return;let e;if(t instanceof Qt&&(t=t.toJSON()),s.push(t),Xt.isArray(t))e=[],t.forEach((t,i)=>{const s=n(t);Xt.isUndefined(s)||(e[i]=s)});else{if(!Xt.isPlainObject(t)&&function(t){if(Xt.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(Xt.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}(t))return s.pop(),t;e=Object.create(null);for(const[s,r]of Object.entries(t)){const t=i.has(s.toLowerCase())?"[REDACTED ****]":n(r);Xt.isUndefined(t)||(e[s]=t)}}return s.pop(),e};return n(t)}class ee extends Error{static from(t,e,i,s,n,r){const o=new ee(t.message,e||t.code,i,s,n);return o.cause=t,o.name=t.name,null!=t.status&&null==o.status&&(o.status=t.status),r&&Object.assign(o,r),o}constructor(t,e,i,s,n){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,e&&(this.code=e),i&&(this.config=i),s&&(this.request=s),n&&(this.response=n,this.status=n.status)}toJSON(){const t=this.config,e=t&&Xt.hasOwnProp(t,"redact")?t.redact:void 0,i=Xt.isArray(e)&&e.length>0?te(t,e):Xt.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}}ee.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ee.ERR_BAD_OPTION="ERR_BAD_OPTION",ee.ECONNABORTED="ECONNABORTED",ee.ETIMEDOUT="ETIMEDOUT",ee.ECONNREFUSED="ECONNREFUSED",ee.ERR_NETWORK="ERR_NETWORK",ee.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ee.ERR_DEPRECATED="ERR_DEPRECATED",ee.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ee.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ee.ERR_CANCELED="ERR_CANCELED",ee.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ee.ERR_INVALID_URL="ERR_INVALID_URL",ee.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const ie=ee;var se=i(287).hp;function ne(t){return Xt.isPlainObject(t)||Xt.isArray(t)}function re(t){return Xt.endsWith(t,"[]")?t.slice(0,-2):t}function oe(t,e,i){return t?t.concat(e).map(function(t,e){return t=re(t),!i&&e?"["+t+"]":t}).join(i?".":""):e}const ae=Xt.toFlatObject(Xt,{},null,function(t){return/^is[A-Z]/.test(t)});
vendor: 2,021 bytes, line 2
2const le=function(t,e,i){if(!Xt.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const s=(i=Xt.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!Xt.isUndefined(e[t])})).metaTokens,n=i.visitor||p,r=i.dots,o=i.indexes,a=i.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===i.maxDepth?100:i.maxDepth,c=a&&Xt.isSpecCompliantForm(e),h=[];if(!Xt.isFunction(n))throw new TypeError("visitor must be a function");function d(t){if(null===t)return"";if(Xt.isDate(t))return t.toISOString();if(Xt.isBoolean(t))return t.toString();if(!c&&Xt.isBlob(t))throw new ie("Blob is not supported. Use a Buffer instead.");return Xt.isArrayBuffer(t)||Xt.isTypedArray(t)?c&&"function"==typeof Blob?new Blob([t]):se.from(t):t}function u(t){if(t>l)throw new ie("Object is too deeply nested ("+t+" levels). Max depth: "+l,ie.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(t,i,n){let a=t;if(Xt.isReactNative(e)&&Xt.isReactNativeBlob(t))return e.append(oe(n,i,r),d(t)),!1;if(t&&!n&&"object"==typeof t)if(Xt.endsWith(i,"{}"))i=s?i:i.slice(0,-2),t=function(t,e){if(l===1/0)return JSON.stringify(t);const i=[];return JSON.stringify(t,function(t,s){if(!Xt.isObject(s))return s;for(;i.length&&i[i.length-1]!==this;)i.pop();return i.push(s),u(e+i.length-1),s})}(t,1);else if(Xt.isArray(t)&&function(t){return Xt.isArray(t)&&!t.some(ne)}(t)||(Xt.isFileList(t)||Xt.endsWith(i,"[]"))&&(a=Xt.toArray(t)))return i=re(i),a.forEach(function(t,s){!Xt.isUndefined(t)&&null!==t&&e.append(!0===o?oe([i],s,r):null===o?i:i+"[]",d(t))}),!1;return!!ne(t)||(e.append(oe(n,i,r),d(t)),!1)}const f=Object.assign(ae,{defaultVisitor:p,convertValue:d,isVisitable:ne});if(!Xt.isObject(t))throw new TypeError("data must be an object");return function t(i,s,r=0){if(!Xt.isUndefined(i)){if(u(r),-1!==h.indexOf(i))throw new Error("Circular reference detected in "+s.join("."));h.push(i),Xt.forEach(i,function(i,o){!0===(!(Xt.isUndefined(i)||null===i)&&n.call(e,i,Xt.isString(o)?o.trim():o,s,f))&&t(i,s?s.concat(o):[o],r+1)}),h.pop()}}(t),e};
vendor: 9,037 bytes, line 2
2function ce(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(t){return e[t]})}function he(t,e){this._pairs=[],t&&le(t,this,e)}const de=he.prototype;de.append=function(t,e){this._pairs.push([t,e])},de.toString=function(t){const e=t?function(e){return t.call(this,e,ce)}:ce;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};const ue=he;function pe(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function fe(t,e,i){if(!e)return t;const s=Xt.isFunction(i)?{serialize:i}:i,n=Xt.getSafeProp(s,"encode")||pe,r=Xt.getSafeProp(s,"serialize");let o;if(o=r?r(e,s):Xt.isURLSearchParams(e)?e.toString():new ue(e,s).toString(n),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}const ge=class{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Xt.forEach(this.handlers,function(e){null!==e&&t(e)})}},me={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},xe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ue,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},be="undefined"!=typeof window&&"undefined"!=typeof document,ye="object"==typeof navigator&&navigator||void 0,ve=be&&(!ye||["ReactNative","NativeScript","NS"].indexOf(ye.product)<0),we="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Se=be&&window.location.href||"http://localhost",ke={...s,...xe};function Ce(t){if(t>100)throw new ie("FormData field is too deeply nested ("+t+" levels). Max depth: 100",ie.ERR_FORM_DATA_DEPTH_EXCEEDED)}const Ae=function(t){function e(t,i,s,n){Ce(n);let r=t[n++];if("__proto__"===r)return!0;const o=Number.isFinite(+r),a=n>=t.length;if(r=!r&&Xt.isArray(s)?s.length:r,a)return Xt.hasOwnProp(s,r)?s[r]=Xt.isArray(s[r])?s[r].concat(i):[s[r],i]:s[r]=i,!o;Xt.hasOwnProp(s,r)&&Xt.isObject(s[r])||(s[r]=[]);return e(t,i,s[r],n)&&Xt.isArray(s[r])&&(s[r]=function(t){const e={},i=Object.keys(t);let s;const n=i.length;let r;for(s=0;s<n;s++)r=i[s],e[r]=t[r];return e}(s[r])),!o}if(Xt.isFormData(t)&&Xt.isFunction(t.entries)){const i={};return Xt.forEachEntry(t,(t,s)=>{e(function(t){const e=[],i=/\w+|\[(\w*)]/g;let s;for(;null!==(s=i.exec(t));)Ce(e.length),e.push("[]"===s[0]?"":s[1]||s[0]);return e}(t),s,i,0)}),i}return null},Ee=(t,e)=>null!=t&&Xt.hasOwnProp(t,e)?t[e]:void 0;const Me={transitional:me,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const i=e.getContentType()||"",s=i.indexOf("application/json")>-1,n=Xt.isObject(t);n&&Xt.isHTMLForm(t)&&(t=new FormData(t));if(Xt.isFormData(t))return s?JSON.stringify(Ae(t)):t;if(Xt.isArrayBuffer(t)||Xt.isBuffer(t)||Xt.isStream(t)||Xt.isFile(t)||Xt.isBlob(t)||Xt.isReadableStream(t))return t;if(Xt.isArrayBufferView(t))return t.buffer;if(Xt.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(n){const e=Ee(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return le(t,new ke.classes.URLSearchParams,{visitor:function(t,e,i,s){return ke.isNode&&Xt.isBuffer(t)?(this.append(e,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}(t,e).toString();if((r=Xt.isFileList(t))||i.indexOf("multipart/form-data")>-1){const i=Ee(this,"env"),s=i&&i.FormData;return le(r?{"files[]":t}:t,s&&new s,e)}}return n||s?(e.setContentType("application/json",!1),function(t,e,i){if(Xt.isString(t))try{return(e||JSON.parse)(t),Xt.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(i||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=Ee(this,"transitional")||Me.transitional,i=e&&e.forcedJSONParsing,s=Ee(this,"responseType"),n="json"===s;if(Xt.isResponse(t)||Xt.isReadableStream(t))return t;if(t&&Xt.isString(t)&&(i&&!s||n)){const i=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t,Ee(this,"parseReviver"))}catch(t){if(i){if("SyntaxError"===t.name)throw ie.from(t,ie.ERR_BAD_RESPONSE,this,null,Ee(this,"response"));throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ke.classes.FormData,Blob:ke.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Xt.forEach(["delete","get","head","post","put","patch","query"],t=>{Me.headers[t]={}});const Te=Me;function Pe(t,e){const i=this||Te,s=e||i,n=Qt.from(s.headers);let r=s.data;return Xt.forEach(t,function(t){r=t.call(i,r,n.normalize(),e?e.status:void 0)}),n.normalize(),r}function Oe(t){return!(!t||!t.__CANCEL__)}const Le=class extends ie{constructor(t,e,i){super(null==t?"canceled":t,ie.ERR_CANCELED,e,i),this.name="CanceledError",this.__CANCEL__=!0}};function _e(t,e,i){const s=i.config.validateStatus;i.status&&s&&!s(i.status)?e(new ie("Request failed with status code "+i.status,i.status>=400&&i.status<500?ie.ERR_BAD_REQUEST:ie.ERR_BAD_RESPONSE,i.config,i.request,i)):t(i)}const Ie=function(t,e){t=t||10;const i=new Array(t),s=new Array(t);let n,r=0,o=0;return e=void 0!==e?e:1e3,function(a){const l=Date.now(),c=s[o];n||(n=l),i[r]=a,s[r]=l;let h=o,d=0;for(;h!==r;)d+=i[h++],h%=t;if(r=(r+1)%t,r===o&&(o=(o+1)%t),l-n<e)return;const u=c&&l-c;return u?Math.round(1e3*d/u):void 0}};const De=function(t,e){let i,s,n=0,r=1e3/e;const o=(e,r=Date.now())=>{n=r,i=null,s&&(clearTimeout(s),s=null),t(...e)};return[(...t)=>{const e=Date.now(),a=e-n;a>=r?o(t,e):(i=t,s||(s=setTimeout(()=>{s=null,o(i)},r-a)))},()=>i&&o(i)]},Re=(t,e,i=3)=>{let s=0;const n=Ie(50,250);return De(i=>{if(!i||"number"!=typeof i.loaded)return;const r=i.loaded,o=i.lengthComputable?i.total:void 0,a=null!=o?Math.min(r,o):r,l=Math.max(0,a-s),c=n(l);s=Math.max(s,a);t({loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o?(o-a)/c:void 0,event:i,lengthComputable:null!=o,[e?"download":"upload"]:!0})},i)},Ne=(t,e)=>{const i=null!=t;return[s=>e[0]({lengthComputable:i,total:t,loaded:s}),e[1]]},Be=t=>(...e)=>Xt.asap(()=>t(...e)),je=ke.hasStandardBrowserEnv?((t,e)=>i=>(i=new URL(i,ke.origin),t.protocol===i.protocol&&t.host===i.host&&(e||t.port===i.port)))(new URL(ke.origin),ke.navigator&&/(msie|trident)/i.test(ke.navigator.userAgent)):()=>!0,Fe=ke.hasStandardBrowserEnv?{write(t,e,i,s,n,r,o){if("undefined"==typeof document)return;const a=[`${t}=${encodeURIComponent(e)}`];Xt.isNumber(i)&&a.push(`expires=${new Date(i).toUTCString()}`),Xt.isString(s)&&a.push(`path=${s}`),Xt.isString(n)&&a.push(`domain=${n}`),!0===r&&a.push("secure"),Xt.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(t){if("undefined"==typeof document)return null;const e=document.cookie.split(";");for(let i=0;i<e.length;i++){const s=e[i].replace(/^\s+/,""),n=s.indexOf("=");if(-1!==n&&s.slice(0,n)===t)return decodeURIComponent(s.slice(n+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};const ze=/^https?:(?!\/\/)/i,He=/[\t\n\r]/g;function Xe(t,e){if("string"==typeof t&&ze.test(function(t){return function(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}(t).replace(He,"")}(t)))throw new ie('Invalid URL: missing "//" after protocol',ie.ERR_INVALID_URL,e)}function We(t,e,i,s){Xe(e,s);let n=!("string"==typeof(r=e)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r));var r;return t&&(n||!1===i)?(Xe(t,s),function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e)):e}const Ye=t=>t instanceof Qt?{...t}:t;function Ve(t,e){e=e||{};const i=Object.create(null);function s(t,e,i,s){return Xt.isPlainObject(t)&&Xt.isPlainObject(e)?Xt.merge.call({caseless:s},t,e):Xt.isPlainObject(e)?Xt.merge({},e):Xt.isArray(e)?e.slice():e}function n(t,e,i,n){return Xt.isUndefined(e)?Xt.isUndefined(t)?void 0:s(void 0,t,0,n):s(t,e,0,n)}function r(t,e){if(!Xt.isUndefined(e))return s(void 0,e)}function o(t,e){return Xt.isUndefined(e)?Xt.isUndefined(t)?void 0:s(void 0,t):s(void 0,e)}function a(i,n,r){return Xt.hasOwnProp(e,r)?s(i,n):Xt.hasOwnProp(t,r)?s(void 0,i):void 0}Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBo
vendor: 3,945 bytes, line 2
2dyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:a,headers:(t,e,i)=>n(Ye(t),Ye(e),0,!0)};return Xt.forEach(Object.keys({...t,...e}),function(s){if("__proto__"===s||"constructor"===s||"prototype"===s)return;const r=Xt.hasOwnProp(l,s)?l[s]:n,o=r(Xt.hasOwnProp(t,s)?t[s]:void 0,Xt.hasOwnProp(e,s)?e[s]:void 0,s);Xt.isUndefined(o)&&r!==a||(i[s]=o)}),Xt.hasOwnProp(e,"validateStatus")&&Xt.isUndefined(e.validateStatus)&&!1===function(i){const s=Xt.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!Xt.isUndefined(s)){if(!Xt.isPlainObject(s))return;if(Xt.hasOwnProp(s,i))return s[i]}const n=Xt.hasOwnProp(t,"transitional")?t.transitional:void 0;if(Xt.isPlainObject(n)&&Xt.hasOwnProp(n,i))return n[i]}("validateStatusUndefinedResolves")&&(Xt.hasOwnProp(t,"validateStatus")?i.validateStatus=s(void 0,t.validateStatus):delete i.validateStatus),i}const Ge=["content-type","content-length"];const Ue=function(t){const e=Ve({},t),i=t=>Xt.hasOwnProp(e,t)?e[t]:void 0,s=i("data");let n=i("withXSRFToken");const r=i("xsrfHeaderName"),o=i("xsrfCookieName");let a=i("headers");const l=i("auth"),c=i("baseURL"),h=i("allowAbsoluteUrls"),d=i("url");if(e.headers=a=Qt.from(a),e.url=fe(We(c,d,h,e),i("params"),i("paramsSerializer")),l){const t=Xt.getSafeProp(l,"username")||"",e=Xt.getSafeProp(l,"password")||"";a.set("Authorization","Basic "+btoa(t+":"+(e?encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,e)=>String.fromCharCode(parseInt(e,16))):"")))}if(Xt.isFormData(s)&&(ke.hasStandardBrowserEnv||ke.hasStandardBrowserWebWorkerEnv||Xt.isReactNative(s)?a.setContentType(void 0):Xt.isFunction(s.getHeaders)&&function(t,e,i){"content-only"===i?Object.entries(e).forEach(([e,i])=>{Ge.includes(e.toLowerCase())&&t.set(e,i)}):t.set(e)}(a,s.getHeaders(),i("formDataHeaderPolicy"))),ke.hasStandardBrowserEnv){Xt.isFunction(n)&&(n=n(e));if(!0===n||null==n&&je(e.url)){const t=r&&o&&Fe.read(o);t&&a.set(r,t)}}return e},$e="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,i){const s=Ue(t);let n=s.data;const r=Qt.from(s.headers).normalize();let o,a,l,c,h,{responseType:d,onUploadProgress:u,onDownloadProgress:p}=s;function f(){c&&c(),h&&h(),s.cancelToken&&s.cancelToken.unsubscribe(o),s.signal&&s.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function m(){if(!g)return;const s=Qt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());_e(function(t){e(t),f()},function(t){i(t),f()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:s,config:t,request:g}),g=null}g.open(s.method.toUpperCase(),s.url,!0),g.timeout=s.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(m)},g.onabort=function(){g&&(i(new ie("Request aborted",ie.ECONNABORTED,t,g)),f(),g=null)},g.onerror=function(e){const s=e&&e.message?e.message:"Network Error",n=new ie(s,ie.ERR_NETWORK,t,g);n.event=e||null,i(n),f(),g=null},g.ontimeout=function(){let e=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const n=s.transitional||me;s.timeoutErrorMessage&&(e=s.timeoutErrorMessage),i(new ie(e,n.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,t,g)),f(),g=null},void 0===n&&r.setContentType(null),"setRequestHeader"in g&&Xt.forEach(Ut(r),function(t,e){g.setRequestHeader(e,t)}),Xt.isUndefined(s.withCredentials)||(g.withCredentials=!!s.withCredentials),d&&"json"!==d&&(g.responseType=s.responseType),p&&([l,h]=Re(p,!0),g.addEventListener("progress",l)),u&&g.upload&&([a,c]=Re(u),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",c)),(s.cancelToken||s.signal)&&(o=e=>{g&&(i(!e||e.type?new Le(null,t,g):e),g.abort(),f(),g=null)},s.cancelToken&&s.cancelToken.subscribe(o),s.signal&&(s.signal.aborted?o():s.signal.addEventListener("abort",o))
vendor: 5,388 bytes, line 2
2);const x=function(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}(s.url);!x||ke.protocols.includes(x)?g.send(n||null):i(new ie("Unsupported protocol "+x+":",ie.ERR_BAD_REQUEST,t))})},qe=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const i=new AbortController;let s=!1;const n=function(t){if(!s){s=!0,o();const e=t instanceof Error?t:this.reason;i.abort(e instanceof ie?e:new Le(e instanceof Error?e.message:e))}};let r=e&&setTimeout(()=>{r=null,n(new ie(`timeout of ${e}ms exceeded`,ie.ETIMEDOUT))},e);const o=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(n):t.removeEventListener("abort",n)}),t=null)};t.forEach(t=>t.addEventListener("abort",n));const{signal:a}=i;return a.unsubscribe=()=>Xt.asap(o),a},Ke=function*(t,e){let i=t.byteLength;if(!e||i<e)return void(yield t);let s,n=0;for(;n<i;)s=n+e,yield t.slice(n,s),n=s},Ze=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:i}=await e.read();if(t)break;yield i}}finally{await e.cancel()}},Je=(t,e,i,s)=>{const n=async function*(t,e){for await(const i of Ze(t))yield*Ke(i,e)}(t,e);let r,o=0,a=t=>{r||(r=!0,s&&s(t))};return new ReadableStream({async pull(t){try{const{done:e,value:s}=await n.next();if(e)return a(),void t.close();let r=s.byteLength;if(i){let t=o+=r;i(t)}t.enqueue(new Uint8Array(s))}catch(t){throw a(t),t}},cancel:t=>(a(t),n.return())},{highWaterMark:2})},Qe=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,ti=(t,e,i)=>e+2<i&&Qe(t.charCodeAt(e+1))&&Qe(t.charCodeAt(e+2));const ei="1.18.0",{isFunction:ii}=Xt,si=t=>{if(!Xt.isString(t))return t;try{return decodeURIComponent(t)}catch(e){return t}},ni=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},ri=t=>{const e=void 0!==Xt.global&&null!==Xt.global?Xt.global:globalThis,{ReadableStream:i,TextEncoder:s}=e;t=Xt.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:n,Request:r,Response:o}=t,a=n?ii(n):"function"==typeof fetch,l=ii(r),c=ii(o);if(!a)return!1;const h=a&&ii(i),d=a&&("function"==typeof s?(u=new s,t=>u.encode(t)):async t=>new Uint8Array(await new r(t).arrayBuffer()));var u;const p=l&&h&&ni(()=>{let t=!1;const e=new r(ke.origin,{body:new i,method:"POST",get duplex(){return t=!0,"half"}}),s=e.headers.has("Content-Type");return null!=e.body&&e.body.cancel(),t&&!s}),f=c&&h&&ni(()=>Xt.isReadableStream(new o("").body)),g={stream:f&&(t=>t.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!g[t]&&(g[t]=(e,i)=>{let s=e&&e[t];if(s)return s.call(e);throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,i)})});const m=async t=>{if(null==t)return 0;if(Xt.isBlob(t))return t.size;if(Xt.isSpecCompliantForm(t)){const e=new r(ke.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return Xt.isArrayBufferView(t)||Xt.isArrayBuffer(t)?t.byteLength:(Xt.isURLSearchParams(t)&&(t+=""),Xt.isString(t)?(await d(t)).byteLength:void 0)};return async t=>{let{url:e,method:i,data:a,signal:c,cancelToken:d,timeout:u,onDownloadProgress:x,onUploadProgress:b,responseType:y,headers:v,withCredentials:w="same-origin",fetchOptions:S,maxContentLength:k,maxBodyLength:C}=Ue(t);const A=Xt.isNumber(k)&&k>-1,E=Xt.isNumber(C)&&C>-1;let M=n||fetch;y=y?(y+"").toLowerCase():"text";let T=qe([c,d&&d.toAbortSignal()],u),P=null;const O=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let L,_=null;const I=()=>new ie("Request body larger than maxBodyLength limit",ie.ERR_BAD_REQUEST,t,P);try{let n;const c=(R="auth",Xt.hasOwnProp(t,R)?t[R]:void 0);if(c){const t=Xt.getSafeProp(c,"username")||"";n={username:t,password:Xt.getSafeProp(c,"password")||""}}if((t=>{const e=t.indexOf("://");let i=t;return-1!==e&&(i=i.slice(e+3)),i.includes("@")||i.includes(":")})(e)){const t=new URL(e,ke.origin);if(!n&&(t.username||t.password)){const e=si(t.username);n={username:e,password:si(t.password)}}(t.username||t.password)&&(t.username="",t.password="",e=t.href)}if(n&&(v.delete("authorization"),v.set("Authorization","Basic "+btoa((D=(n.username||"")+":"+(n.password||""),encodeURIComponent(D).replace(/%([0-9A-F]{2})/gi,(t,e)=>String.fromCharCode(parseInt(e,16))))))),A&&"string"==typeof e&&e.startsWith("data:")){const i=function(t){if(!t||"string"!=typeof t)return 0;if(!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const i=t.slice(5,e),s=t.slice(e+1);if(/;base64/i.test(i)){let t=s.length;const e=s.length;for(let i=0;i<e;i++)if(37===s.charCodeAt(i)&&i+2<e){const e=s.charCodeAt(i+1),n=s.charCodeAt(i+2);Qe(e)&&Qe(n)&&(t-=2,i+=2)}let i=0,n=e-1;const r=t=>t>=2&&37===s.charCodeAt(t-2)&&51===s.charCodeAt(t-1)&&(68===s.charCodeAt(t)||100===s.charCodeAt(t));n>=0&&(61===s.charCodeAt(n)?(i++,n--):r(n)&&(i++,n-=3)),1===i&&n>=0&&(61===s.charCodeAt(n)||r(n))&&i++;const o=3*Math.floor(t/4)-(i||0);return o>0?o:0}let n=0;for(let t=0,e=s.length;t<e;t++){const i=s.charCodeAt(t);if(37===i&&ti(s,t,e))n+=1,t+=2;else if(i<128)n+=1;else if(i<2048)n+=2;else if(i>=55296&&i<=56319&&t+1<e){const e=s.charCodeAt(t+1);e>=56320&&e<=57343?(n+=4,t++):n+=3}else n+=3}return n}(e);if(i>k)throw new ie("maxContentLength size of "+k+" exceeded",ie.ERR_BAD_RESPONSE,t,P)}if(E&&"get"!==i&&"head"!==i){const t=await m(a);if("number"==typeof t&&isFinite(t)&&(L=t,t>C))throw I()}const d=E&&(Xt.isReadableStream(a)||Xt.isStream(a)),u=(t,e,i)=>Je(t,65536,t=>{if(E&&t>C)throw _=I();e&&e(t)}
vendor: 8,859 bytes, line 2
2,i);if(p&&"get"!==i&&"head"!==i&&(b||d)){if(L=null==L?await(async(t,e)=>{const i=Xt.toFiniteNumber(t.getContentLength());return null==i?m(e):i})(v,a):L,0!==L||d){let t,i=new r(e,{method:"POST",body:a,duplex:"half"});if(Xt.isFormData(a)&&(t=i.headers.get("content-type"))&&v.setContentType(t),i.body){const[t,e]=b&&Ne(L,Re(Be(b)))||[];a=u(i.body,t,e)}}}else if(d&&!l&&h&&"get"!==i&&"head"!==i)a=u(a);else if(d&&l&&!p&&"get"!==i&&"head"!==i)throw new ie("Stream request bodies are not supported by the current fetch implementation",ie.ERR_NOT_SUPPORT,t,P);Xt.isString(w)||(w=w?"include":"omit");const N=l&&"credentials"in r.prototype;if(Xt.isFormData(a)){const t=v.getContentType();t&&/^multipart\/form-data/i.test(t)&&!/boundary=/i.test(t)&&v.delete("content-type")}v.set("User-Agent","axios/"+ei,!1);const B={...S,signal:T,method:i.toUpperCase(),headers:Ut(v.normalize()),body:a,duplex:"half",credentials:N?w:void 0};P=l&&new r(e,B);let j=await(l?M(P,S):M(e,B));const F=Qt.from(j.headers);if(A){const e=Xt.toFiniteNumber(F.getContentLength());if(null!=e&&e>k)throw new ie("maxContentLength size of "+k+" exceeded",ie.ERR_BAD_RESPONSE,t,P)}const z=f&&("stream"===y||"response"===y);if(f&&j.body&&(x||A||z&&O)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=j[t]});const i=Xt.toFiniteNumber(F.getContentLength()),[s,n]=x&&Ne(i,Re(Be(x),!0))||[];let r=0;const a=e=>{if(A&&(r=e,r>k))throw new ie("maxContentLength size of "+k+" exceeded",ie.ERR_BAD_RESPONSE,t,P);s&&s(e)};j=new o(Je(j.body,65536,a,()=>{n&&n(),O&&O()}),e)}y=y||"text";let H=await g[Xt.findKey(g,y)||"text"](j,t);if(A&&!f&&!z){let e;if(null!=H&&("number"==typeof H.byteLength?e=H.byteLength:"number"==typeof H.size?e=H.size:"string"==typeof H&&(e="function"==typeof s?(new s).encode(H).byteLength:H.length)),"number"==typeof e&&e>k)throw new ie("maxContentLength size of "+k+" exceeded",ie.ERR_BAD_RESPONSE,t,P)}return!z&&O&&O(),await new Promise((e,i)=>{_e(e,i,{data:H,headers:Qt.from(j.headers),status:j.status,statusText:j.statusText,config:t,request:P})})}catch(e){if(O&&O(),T&&T.aborted&&T.reason instanceof ie){const i=T.reason;throw i.config=t,P&&(i.request=P),e!==i&&(i.cause=e),i}if(_)throw P&&!_.request&&(_.request=P),_;if(e instanceof ie)throw P&&!e.request&&(e.request=P),e;if(e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new ie("Network Error",ie.ERR_NETWORK,t,P,e&&e.response),{cause:e.cause||e});throw ie.from(e,e&&e.code,t,P,e&&e.response)}var D,R}},oi=new Map,ai=t=>{let e=t&&t.env||{};const{fetch:i,Request:s,Response:n}=e,r=[s,n,i];let o,a,l=r.length,c=oi;for(;l--;)o=r[l],a=c.get(o),void 0===a&&c.set(o,a=l?new Map:ri(e)),c=a;return a},li=(ai(),{http:null,xhr:$e,fetch:{get:ai}});Xt.forEach(li,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch(t){}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const ci=t=>`- ${t}`,hi=t=>Xt.isFunction(t)||null===t||!1===t;const di={getAdapter:function(t,e){t=Xt.isArray(t)?t:[t];const{length:i}=t;let s,n;const r={};for(let o=0;o<i;o++){let i;if(s=t[o],n=s,!hi(s)&&(n=li[(i=String(s)).toLowerCase()],void 0===n))throw new ie(`Unknown adapter '${i}'`);if(n&&(Xt.isFunction(n)||(n=n.get(e))))break;r[i||"#"+o]=n}if(!n){const t=Object.entries(r).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));let e=i?t.length>1?"since :\n"+t.map(ci).join("\n"):" "+ci(t[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+e,"ERR_NOT_SUPPORT")}return n},adapters:li};function ui(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Le(null,t)}function pi(t){ui(t),t.headers=Qt.from(t.headers),t.data=Pe.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return di.getAdapter(t.adapter||Te.adapter,t)(t).then(function(e){ui(t),t.response=e;try{e.data=Pe.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=Qt.from(e.headers),e},function(e){if(!Oe(e)&&(ui(t),e&&e.response)){t.response=e.response;try{e.response.data=Pe.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=Qt.from(e.response.headers)}return Promise.reject(e)})}const fi={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{fi[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const gi={};fi.transitional=function(t,e,i){function s(t,e){return"[Axios v"+ei+"] Transitional option '"+t+"'"+e+(i?". "+i:"")}return(i,n,r)=>{if(!1===t)throw new ie(s(n," has been removed"+(e?" in "+e:"")),ie.ERR_DEPRECATED);return e&&!gi[n]&&(gi[n]=!0,console.warn(s(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(i,n,r)}},fi.spelling=function(t){return(e,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};const mi={assertOptions:function(t,e,i){if("object"!=typeof t)throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let n=s.length;for(;n-- >0;){const r=s[n],o=Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0;if(o){const e=t[r],i=void 0===e||o(e,r,t);if(!0!==i)throw new ie("option "+r+" must be "+i,ie.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new ie("Unknown option "+r,ie.ERR_BAD_OPTION)}},validators:fi},xi=mi.validators;class bi{constructor(t){this.defaults=t||{},this.interceptors={request:new ge,response:new ge}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const i=(()=>{if(!e.stack)return"";const t=e.stack.indexOf("\n");return-1===t?"":e.stack.slice(t+1)})();try{if(t.stack){if(i){const e=i.indexOf("\n"),s=-1===e?-1:i.indexOf("\n",e+1),n=-1===s?"":i.slice(s+1);String(t.stack).endsWith(n)||(t.stack+="\n"+i)}}else t.stack=i}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Ve(this.defaults,e);const{transitional:i,paramsSerializer:s,headers:n}=e;void 0!==i&&mi.assertOptions(i,{silentJSONParsing:xi.transitional(xi.boolean),forcedJSONParsing:xi.transitional(xi.boolean),clarifyTimeoutError:xi.transitional(xi.boolean),legacyInterceptorReqResOrdering:xi.transitional(xi.boolean),advertiseZstdAcceptEncoding:xi.transitional(xi.boolean),validateStatusUndefinedResolves:xi.transitional(xi.boolean)},!1),null!=s&&(Xt.isFunction(s)?e.paramsSerializer={serialize:s}:mi.assertOptions(s,{encode:xi.function,serialize:xi.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),mi.assertOptions(e,{baseUrl:xi.spelling("baseURL"),withXsrfToken:xi.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let r=n&&Xt.merge(n.common,n[e.method]);n&&Xt.forEach(["delete","get","head","post","put","patch","query","common"],t=>{delete n[t]}),e.headers=Qt.concat(r,n);const o=[];let a=!0;this.interceptors.request.forEach(function(t){if("function"==typeof t.runWhen&&!1===t.runWhen(e))return;a=a&&t.synchronous;const i=e.transitional||me;i&&i.legacyInterceptorReqResOrdering?o.unshift(t.fulfilled,t.rejected):o.push(t.fulfilled,t.rejected)});const l=[];let c;this.interceptors.response.forEach(function(t){l.push(t.fulfilled,t.rejected)});let h,d=0;if(!a){const t=[pi.bind(this),void 0];for(t.unshift(...o),t.push(...l),h=t.length,c=Promise.resolve(e);d<h;)c=c.then(t[d++],t[d++]);return c}h=o.length;let u=e;for(;d<h;){const t=o[d++],e=o[d++];try{u=t(u)}catch(t){e.call(this,t);break}}try{c=pi.call(this,u)}catch(t){return Promise.reject(t)}for(d=0,h=l.length;d<h;)c=c.then(l[d++],l[d++]);return c}getUri(t){return fe(We((t=Ve(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls,t),t.params,t.paramsSerializer)}}Xt.forEach(["delete","get","head","options"],function(t){bi.prototype[t]=function(e,i){return this.request(Ve(i||{},{method:t,url:e,data:i&&Xt.hasOwnProp(i,"data")?i.data:void 0}))}}),Xt.forEach(["post","put","patch","query"],function(t){function e(e){return function(i,s,n){return this.request(Ve(n||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}bi.prototype[t]=e(),"query"!==t&&(bi.prototype[t+"Form"]=e(!0))});const yi=bi;class vi{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(t){e=t});const i=this;this.promise.then(t=>{if(!i._listeners)return;let e=i._listeners.length;for(;e-- >0;)i._listeners[e](t);i._listeners=null}),this.promise.then=t=>{let e;const s=new Promise(t=>{i.subscribe(t),e=t}).then(t);return s.cancel=function(){i.unsubscribe(e)},s},t(function(t,s,n){i.reason||(i.reason=new Le(t,s,n),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
2subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new vi(function(e){t=e}),cancel:t}}}const wi=vi;const Si={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Si).forEach(([t,e])=>{Si[e]=t});const ki=Si;const Ci=function t(e){const i=new yi(e),s=G(yi.prototype.request,i);return Xt.extend(s,yi.prototype,i,{allOwnKeys:!0}),Xt.extend(s,i,null,{allOwnKeys:!0}),s.create=function(i){return t(Ve(e,i))},s}(Te);Ci.Axios=yi,Ci.CanceledError=Le,Ci.CancelToken=wi,Ci.isCancel=Oe,Ci.VERSION=ei,Ci.toFormData=le,Ci.AxiosError=ie,Ci.Cancel=Ci.CanceledError,Ci.all=function(t){return Promise.all(t)},Ci.spread=function(t){return function(e){return t.apply(null,e)}},Ci.isAxiosError=function(t){return Xt.isObject(t)&&!0===t.isAxiosError},Ci.mergeConfig=Ve,Ci.AxiosHeaders=Qt,Ci.formToJSON=t=>Ae(Xt.isHTMLForm(t)?new FormData(t):t),Ci.getAdapter=di.getAdapter,Ci.HttpStatusCode=ki,Ci.default=Ci;const Ai=Ci;function Ei(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s,n,r,o,a=[],l=!0,c=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(s=r.call(i)).done)&&(a.push(s.value),a.length!==e);l=!0);}catch(t){c=!0,n=t}finally{try{if(!l&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Mi(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Mi(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mi(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}function Ti(t){return Ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ti(t)}var Pi=Object.freeze({SHOW:"{show}",HIDE:"{hide}"});const Oi=function(t){"object"===Ti(t)&&null!==t&&Object.entries(t).forEach(function(t){var e=Ei(t,2),i=e[0],s=e[1],n=document.querySelector(i);n&&(s!==Pi.SHOW&&s!==Pi.HIDE?n.innerHTML=s:n.style.display=s===Pi.HIDE?"none":"block")})};function Li(t){return Li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Li(t)}function _i(){_i=function(){return t};var t={},e=Object.prototype,i=e.hasOwnProperty,s=Object.defineProperty||function(t,e,
vendor: 4,465 bytes, line 2
2i){t[e]=i.value},n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,n){var r=e&&e.prototype instanceof u?e:u,o=Object.create(r.prototype),a=new A(n||[]);return s(o,"_invoke",{value:w(t,i,a)}),o}function h(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d={};function u(){}function p(){}function f(){}var g={};l(g,r,function(){return this});var m=Object.getPrototypeOf,x=m&&m(m(E([])));x&&x!==e&&i.call(x,r)&&(g=x);var b=f.prototype=u.prototype=Object.create(g);function y(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function v(t,e){function n(s,r,o,a){var l=h(t[s],t,r);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Li(d)&&i.call(d,"__await")?e.resolve(d.__await).then(function(t){n("next",t,o,a)},function(t){n("throw",t,o,a)}):e.resolve(d).then(function(t){c.value=t,o(c)},function(t){return n("throw",t,o,a)})}a(l.arg)}var r;s(this,"_invoke",{value:function(t,i){function s(){return new e(function(e,s){n(t,i,e,s)})}return r=r?r.then(s,s):s()}})}function w(t,e,i){var s="suspendedStart";return function(n,r){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===n)throw r;return M()}for(i.method=n,i.arg=r;;){var o=i.delegate;if(o){var a=S(o,i);if(a){if(a===d)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===s)throw s="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s="executing";var l=h(t,e,i);if("normal"===l.type){if(s=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(s="completed",i.method="throw",i.arg=l.arg)}}}function S(t,e){var i=e.method,s=t.iterator[i];if(void 0===s)return e.delegate=null,"throw"===i&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),d;var n=h(s,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var r=n.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var s=-1,n=function e(){for(;++s<t.length;)if(i.call(t,s))return e.value=t[s],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:M}}function M(){return{value:void 0,done:!0}}return p.prototype=f,s(b,"constructor",{value:f,configurable:!0}),s(f,"constructor",{value:p,configurable:!0}),p.displayName=l(f,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,l(t,a,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},y(v.prototype),l(v.prototype,o,function(){return this}),t.AsyncIterator=v,t.async=function(e,i,s,n,r){void 0===r&&(r=Promise);var o=new v(c(e,i,s,n),r);return t.isGeneratorFunction(i)?o:o.next().then(function(t){return t.done?t.value:o.next()})},y(b),l(b,a,"Generator"),l(b,r,function(){return this}),l(b,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),i=[];for(var s in e)i.push(s);return i.reverse(),function t(){for(;i.length;){var s=i.pop();if(s in e)return t.value=s,t.done=!1,t}return t.done=!0,t}},t.values=E,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
2h(C),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function s(i,s){return o.type="throw",o.arg=t,e.next=i,s&&(e.method="next",e.arg=void 0),!!s}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],o=r.completion;if("root"===r.tryLoc)return s("end");if(r.tryLoc<=this.prev){var a=i.call(r,"catchLoc"),l=i.call(r,"finallyLoc");if(a&&l){if(this.prev<r.catchLoc)return s(r.catchLoc,!0);if(this.prev<r.finallyLoc)return s(r.finallyLoc)}else if(a){if(this.prev<r.catchLoc)return s(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return s(r.finallyLoc)}}}},abrupt:function(t,e){for(var s=this.tryEntries.length-1;s>=0;--s){var n=this.tryEntries[s];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,d):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),C(i),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;C(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:E(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},t}function Ii(t,e,i,s,n,r,o){try{var a=t[r](o),l=a.value}catch(t){return void i(t)}a.done?e(l):Promise.resolve(l).then(s,n)}var Di=["tabindex","aria-busy"];const Ri={__name:"TabItem",props:{name:{type:String,required:!0},slug:{type:String,required:!0},lazySrc:{type:String,default:""}},setup:function(t,e){var i=e.expose,s=t,n=(0,r.inject)("selectedTab"),o=(0,r.computed)(function(){return n.value===s.slug}),a="".concat(s.slug),l="".concat(s.slug,"-label"),c=(0,r.ref)(!1),h=(0,r.ref)(!1),d=function(){var t,e=(t=_i().mark(function t(){var e;return _i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!c.value&&!h.value&&s.lazySrc){t.next=2;break}return t.abrupt("return");case 2:return h.value=!0,t.prev=3,t.next=6,Ai.get(s.lazySrc,{headers:{"x-requested-with":"XMLHttpRequest"}});case 6:e=t.sent,Oi(e.data),c.value=!0,t.next=13;break;case 11:t.prev=11,t.t0=t.catch(3);case 13:return t.prev=13,h.value=!1,t.finish(13);case 16:case"end":return t.stop()}},t,null,[[3,11,13,16]])}),function(){var e=this,i=arguments;return new Promise(function(s,n){var r=t.apply(e,i);function o(t){Ii(r,s,n,o,a,"next",t)}function a(t){Ii(r,s,n,o,a,"throw",t)}o(void 0)})});return function(){return e.apply(this,arguments)}}();return(0,r.watch)(o,function(t){t&&d()},{immediate:!0}),i({isActive:o}),function(t,e){return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("section",{role:"tabpanel",id:a,"aria-labelledby":l,tabindex:(0,r.unref)(o)?"0":"-1","aria-busy":h.value?"true":null},[(0,r.renderSlot)(t.$slots,"default")],8,Di)),[[r.vShow,(0,r.unref)(o)]])}}},Ni=Ri;var Bi={class:"modal",role:"dialog"},ji={class:"modal__mask"},Fi={class:"modal__header"},zi={class:"modal__header-left"};const Hi={__name:"SharedModal",props:{open:{type:Boolean,default:!1},buttonText:{type:String,default:"Close"},buttonIconOnly:{type:Boolean,default:!1},fullPage:{type:Boolean,default:!1}},emits:["escape-key-up","close"],setup:function(t,e){var i=e.emit,s=function(){i("escape-key-up")};return(0,r.onMounted)(function(){document.addEventListener("keyup",function(t){27===t.keyCode&&i("escape-key-up")}),window.addEventListener("popstate",s,!1)}),(0,r.onBeforeUnmount)(function(){document.removeEventListener("popstate",s)}),function(e,s){return(0,r.openBlock)(),(0,r.createBlock)(r.Transition,{name:"modal"},{default:(0,r.withCtx)(function(){return[(0,r.withDirectives)((0,r.createElementVNode)("div",Bi,[(0,r.createElementVNode)("div",{class:"modal__background",role:"presentation",onClick:s[0]||(s[0]=function(t){return i("close")})}),(0,r.createElementVNode)("div",ji,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["modal__container",{"modal__container--full":t.fullPage}])},[(0,r.createElementVNode)("div",Fi,[(0,r.createElementVNode)("div",zi,[(0,r.renderSlot)(e.$slots,"header")]),(0,r.createElementVNode)("button",{"aria-label":"Close dialog",class:"modal__button--close",onClick:s[1]||(s[1]=function(t){return i("close")})},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["modal__button-text",{"sr-only":t.buttonIconOnly}])},(0,r.toDisplayString)(t.buttonText),3),(0,r.renderSlot)(e.$slots,"close")])]),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["modal__content",{"modal__content--full":t.fullPage}])}
2,[(0,r.renderSlot)(e.$slots,"default")],2)],2)])],512),[[r.vShow,t.open]])]}),_:3})}}};function Xi(t){return Xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xi(t)}function Wi(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,s)}return i}function Yi(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Wi(Object(i),!0).forEach(function(e){Vi(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Wi(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function Vi(t,e,i){return(e=function(t){var e=function(t,e){if("object"!==Xi(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e||"default");if("object"!==Xi(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Xi(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}const Gi={__name:"PricingTile",props:{initial:{type:Boolean,default:!1},featured:{type:Boolean,default:!1}},setup:function(t){var e=t,i=(0,r.ref)(!1),s=function(){i.value=!i.value};return(0,r.useSlots)().content(Yi(Yi({open:i},e),{},{togglePanel:s})),(0,r.onMounted)(function(){window.matchMedia("(min-width: 630px)").matches&&(i.value=e.initial)}),function(e,n){return(0,r.openBlock)(),(0,r.createElementBlock)("article",{class:(0,r.normalizeClass)(["pricing-tile tile",{"pricing-tile--open":i.value},{"pricing-tile--featured":t.featured},{"pricing-tile--initial":t.initial}])},[(0,r.renderSlot)(e.$slots,"content",{open:i.value,togglePanel:s,featured:t.featured,initial:t.initial})],2)}}},Ui={setup:function(){return{lastScroll:(0,r.ref)(0),headerHeight:(0,r.ref)(80),animationSpeed:(0,r.ref)(50),headerTimeout:(0,r.ref)(null)}},methods:{handleScroll:function(){var t=this.$refs.header.classList;0===window.scrollY?(t.remove("header--sticky"),t.remove("header--scrolled--down"),t.remove("header--scrolling-down")):this.lastScroll<window.scrollY&&window.scrollY>this.headerHeight?(t.remove("header--sticky"),t.add("header--scrolling-down"),requestAnimationFrame(function(){t.add("header--scrolled--down")})):window.scrollY>this.headerHeight&&t.add("header--sticky"),this.lastScroll=window.scrollY},updateHeaderHeight:function(){if(!this.$refs.header.classList.contains("header--sticky")){this.headerHeight=this.$refs.header.offsetHeight;for(var t=1;this.$refs["siteBanner".concat(t)];)this.headerHeight+=this.$refs["siteBanner".concat(t)].offsetHeight,t+=1}}},mounted:function(){this.headerTimeout=setTimeout(this.updateHeaderHeight,1e3),window.addEventListener("scroll",n(this.animationSpeed,this.handleScroll)),window.addEventListener("resize",n(this.animationSpeed,this.updateHeaderHeight))},beforeUnmount:function(){clearTimeout(this.headerTimeout)}};var $i=Object.freeze({NAV_DESKTOP_MIN:1101}),qi="(min-width: ".concat($i.NAV_DESKTOP_MIN,"px)"),Ki=["aria-hidden"];
2const Zi={__name:"MegaNav",props:{navClass:String,activeItemClass:String,subNavDelayOpenTimeMs:{type:Number,default:0}},setup:function(t){var e=t,i=(0,r.ref)(window.innerWidth),s=(0,r.ref)(-1),n=(0,r.ref)(-1),o=function(t){n.value=setTimeout(function(){s.value=t},e.subNavDelayOpenTimeMs)},a=function(){-1!==s.value?s.value=-1:clearTimeout(n.value)},l=function(t){s.value===t?a():o(t)},c=function(t){var e=document.getElementById("mega-nav-item-btn-".concat(t));e&&e.focus(),a()},h=function(t){var e=document.getElementById("mega-nav-item-btn-".concat(t));document.activeElement===e&&a()};(0,r.onMounted)(function(){window.onresize=function(){i.value=window.innerWidth}});var d=(0,r.computed)(function(){return i.value<$i.NAV_DESKTOP_MIN});return function(e,i){return(0,r.openBlock)(),(0,r.createElementBlock)("nav",{class:(0,r.normalizeClass)(t.navClass),"aria-hidden":String((0,r.unref)(d)),role:"navigation",ref:"nav","aria-label":"Main"},[(0,r.renderSlot)(e.$slots,"default",{activeItemIndex:s.value,open:o,close:a,toggle:l,escape:c,shiftTab:h})],10,Ki)}}},Ji=Zi;var Qi={key:0,class:"side-menu__content"};const ts={__name:"SideMenu",props:{open:{type:Boolean,default:!1},slideFrom:{type:String,validator:function(t){return-1!==["right","left"].indexOf(t)},default:"right"}},emits:["close"],setup:function(t,e){var i=e.emit,s=t,n=(0,r.computed)(function(){return s.open}),o=(0,r.computed)(function(){var t="";return"right"===s.slideFrom?t="side-menu--right":"left"===s.slideFrom&&(t="side-menu--left"),t});return function(t,e){return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)("side-menu ".concat((0,r.unref)(o))),onKeydown:e[1]||(e[1]=(0,r.withKeys)(function(t){return!!(0,r.unref)(n)&&i("close")},["esc"])),role:"dialog"},[(0,r.createElementVNode)("div",{class:"side-menu__background",role:"presentation",onClick:e[0]||(e[0]=function(t){return i("close")})}),(0,r.createVNode)(r.Transition,{duration:"300"},{default:(0,r.withCtx)(function(){return[(0,r.unref)(n)?((0,r.openBlock)(),(0,r.createElementBlock)("div",Qi,[(0,r.renderSlot)(t.$slots,"default")])):(0,r.createCommentVNode)("",!0)]}),_:3})],34)),[[r.vShow,(0,r.unref)(n)]])}}};var es=i(72),is=i.n(es),ss=i(911),ns={insert:"head",singleton:!1};is()(ss.A,ns);ss.A.locals;const rs=ts;var os=["aria-expanded"];const as={__name:"SideMenuItem",props:{open:{type:Boolean,default:!1}},setup:function(t){var e=t,i=(0,r.ref)(e.open);return function(t,e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("button",{type:"button",class:(0,r.normalizeClass)(["side-nav__children-arrow",{"side-nav__children-arrow--open":i.value}]),"aria-label":"Show children","aria-expanded":i.value?"true":"false",onClick:e[0]||(e[0]=function(t){return i.value=!i.value})},null,10,os),(0,r.renderSlot)(t.$slots,"default",{open:i.value})])}}};function ls(t){return ls="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ls(t)}function cs(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,s)}return i}function hs(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?cs(Object(i),!0).forEach(function(e){ds(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):cs(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function ds(t,e,i){return(e=function(t){var e=function(t,e){if("object"!==ls(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e||"default");if("object"!==ls(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ls(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}const us=function(){return window.location.search.replace(/^\?/,"").split("&").reduce(function(t,e){var i=e.split("=");return 2===i.length?hs(hs({},t),{},ds({},i[0],i[1])):t},{})};function ps(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:void 0!==i.g?i.g:{}}const fs="function"==typeof Proxy;let gs,ms;function xs(){return function(){var t;return void 0!==gs||("undefined"!=typeof window&&window.performance?(gs=!0,ms=window.performance):void 0!==i.g&&(null===(t=i.g.perf_hooks)||void 0===t?void 0:t.performance)?(gs=!0,ms=i.g.perf_hooks.performance):gs=!1),gs}()?ms.now():Date.now()}class bs{constructor(t,e){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=e;const i={};if(t.settings)for(const e in t.settings){const s=t.settings[e];i[e]=s.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let n=Object.assign({},i);try{const t=localStorage.getItem(s),e=JSON.parse(t);Object.assign(n,e)}catch(t){}this.fallbacks={getSettings:()=>n,setSettings(t){try{localStorage.setItem(s,JSON.stringify(t))}catch(t){}n=t},now:()=>xs()},e&&e.on("plugin:settings:set",(t,e)=>{t===this.plugin.id&&this.fallbacks.setSettings(e)}),this.proxiedOn=new Proxy({},{get:(t,e)=>this.target?this.target.on[e]:(...t)=>{this.onQueue.push({method:e,args:t})}}),this.proxiedTarget=new Proxy({},{get:(t,e)=>this.target?this.target[e]:"on"===e?this.proxiedOn:Object.keys(this.fallbacks).includes(e)?(...t)=>(this.targetQueue.push({method:e,args:t,resolve:()=>{}}),this.fallbacks[e](...t)):(...t)=>new Promise(i=>{this.targetQueue.push({method:e,args:t,resolve:i})})})}async setRealTarget(t){this.target=t;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function ys(t,e){const i=t,s=ps(),n=ps().__VUE_DEVTOOLS_GLOBAL_HOOK__,r=fs&&i.enableEarlyProxy;if(!n||!s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&r){const t=r?new bs(i,n):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:i,setupFn:e,proxy:t}),t&&e(t.proxiedTarget)}else n.emit("devtools-plugin:setup",t,e)}var vs="store";function ws(t,e){Object.keys(t).forEach(function(i){return e(t[i],i)})}function Ss(t){return null!==t&&"object"==typeof t}function ks(t,e,i){return e.indexOf(t)<0&&(i&&i.prepend?e.unshift(t):e.push(t)),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}function Cs(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var i=t.state;Es(t,i,[],t._modules.root,!0),As(t,i,e)}function As(t,e,i){var s=t._state,n=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,a={},l={},c=(0,r.effectScope)(!0);c.run(function(){ws(o,function(e,i){a[i]=function(t,e){return function(){return t(e)}}(e,t),l[i]=(0,r.computed)(function(){return a[i]()}),Object.defineProperty(t.getters,i,{get:function(){return l[i].value},enumerable:!0})})}),t._state=(0,r.reactive)({data:e}),t._scope=c,t.strict&&function(t){(0,r.watch)(function(){return t._state.data},function(){0},{deep:!0,flush:"sync"})}(t),s&&i&&t._withCommit(function(){s.data=null}),n&&n.stop()}
2function Es(t,e,i,s,n){var r=!i.length,o=t._modules.getNamespace(i);if(s.namespaced&&(t._modulesNamespaceMap[o],t._modulesNamespaceMap[o]=s),!r&&!n){var a=Ts(e,i.slice(0,-1)),l=i[i.length-1];t._withCommit(function(){a[l]=s.state})}var c=s.context=function(t,e,i){var s=""===e,n={dispatch:s?t.dispatch:function(i,s,n){var r=Ps(i,s,n),o=r.payload,a=r.options,l=r.type;return a&&a.root||(l=e+l),t.dispatch(l,o)},commit:s?t.commit:function(i,s,n){var r=Ps(i,s,n),o=r.payload,a=r.options,l=r.type;a&&a.root||(l=e+l),t.commit(l,o,a)}};return Object.defineProperties(n,{getters:{get:s?function(){return t.getters}:function(){return Ms(t,e)}},state:{get:function(){return Ts(t.state,i)}}}),n}(t,o,i);s.forEachMutation(function(e,i){!function(t,e,i,s){var n=t._mutations[e]||(t._mutations[e]=[]);n.push(function(e){i.call(t,s.state,e)})}(t,o+i,e,c)}),s.forEachAction(function(e,i){var s=e.root?i:o+i,n=e.handler||e;!function(t,e,i,s){var n=t._actions[e]||(t._actions[e]=[]);n.push(function(e){var n,r=i.call(t,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:t.getters,rootState:t.state},e);return(n=r)&&"function"==typeof n.then||(r=Promise.resolve(r)),t._devtoolHook?r.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):r})}(t,s,n,c)}),s.forEachGetter(function(e,i){!function(t,e,i,s){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return i(s.state,s.getters,t.state,t.getters)}}(t,o+i,e,c)}),s.forEachChild(function(s,r){Es(t,e,i.concat(r),s,n)})}function Ms(t,e){if(!t._makeLocalGettersCache[e]){var i={},s=e.length;Object.keys(t.getters).forEach(function(n){if(n.slice(0,s)===e){var r=n.slice(s);Object.defineProperty(i,r,{get:function(){return t.getters[n]},enumerable:!0})}}),t._makeLocalGettersCache[e]=i}return t._makeLocalGettersCache[e]}function Ts(t,e){return e.reduce(function(t,e){return t[e]},t)}function Ps(t,e,i){return Ss(t)&&t.type&&(i=e,e=t,t=t.type),{type:t,payload:e,options:i}}var Os="vuex:mutations",Ls="vuex:actions",_s="vuex",Is=0;function Ds(t,e){ys({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},function(i){i.addTimelineLayer({id:Os,label:"Vuex Mutations",color:Rs}),i.addTimelineLayer({id:Ls,label:"Vuex Actions",color:Rs}),i.addInspector({id:_s,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),i.on.getInspectorTree(function(i){if(i.app===t&&i.inspectorId===_s)if(i.filter){var s=[];Fs(s,e._modules.root,i.filter,""),i.rootNodes=s}else i.rootNodes=[js(e._modules.root,"")]}),i.on.getInspectorState(function(i){if(i.app===t&&i.inspectorId===_s){var s=i.nodeId;Ms(e,s),i.state=function(t,e,i){e="root"===i?e:e[i];var s=Object.keys(e),n={state:Object.keys(t.state).map(function(e){return{key:e,editable:!0,value:t.state[e]}})};if(s.length){var r=function(t){var e={};return Object.keys(t).forEach(function(i){var s=i.split("/");if(s.length>1){var n=e,r=s.pop();s.forEach(function(t){n[t]||(n[t]={_custom:{value:{},display:t,tooltip:"Module",abstract:!0}}),n=n[t]._custom.value}),n[r]=zs(function(){return t[i]})}else e[i]=zs(function(){return t[i]})}),e}(e);n.getters=Object.keys(r).map(function(t){return{key:t.endsWith("/")?Bs(t):t,editable:!1,value:zs(function(){return r[t]})}})}return n}(function(t,e){var i=e.split("/").filter(function(t){return t});return i.reduce(function(t,s,n){var r=t[s];if(!r)throw new Error('Missing module "'+s+'" for path "'+e+'".');return n===i.length-1?r:r._children},"root"===e?t:t.root._children)}(e._modules,s),"root"===s?e.getters:e._makeLocalGettersCache,s)}}),i.on.editInspectorState(function(i){if(i.app===t&&i.inspectorId===_s){var s=i.nodeId,n=i.path;"root"!==s&&(n=s.split("/").filter(Boolean).concat(n)),e._withCommit(function(){i.set(e._state.data,n,i.state.value)})}}),e.subscribe(function(t,e){var s={};t.payload&&(s.payload=t.payload),s.state=e,i.notifyComponentUpdate(),i.sendInspectorTree(_s),i.sendInspectorState(_s),i.addTimelineEvent({layerId:Os,event:{time:Date.now(),title:t.type,data:s}})}),e.subscribeAction({before:function(t,e){var s={};t.payload&&(s.payload=t.payload),t._id=Is++,t._time=Date.now(),s.state=e,i.addTimelineEvent({layerId:Ls,event:{time:t._time,title:t.type,groupId:t._id,subtitle:"start",data:s}})},after:function(t,e){var s={},n=Date.now()-t._time;s.duration={_custom:{type:"duration",display:n+"ms",tooltip:"Action duration",value:n}},t.payload&&(s.payload=t.payload),s.state=e,i.addTimelineEvent({layerId:Ls,event:{time:Date.now(),title:t.type,groupId:t._id,subtitle:"end",data:s}})}})})}var Rs=8702998,Ns={label:"namespaced",textColor:16777215,backgroundColor:6710886};function Bs(t){return t&&"root"!==t?t.split("/").slice(-2,-1)[0]:"Root"}function js(t,e){return{id:e||"root",label:Bs(e),tags:t.namespaced?[Ns]:[],children:Object.keys(t._children).map(function(i){return js(t._children[i],e+i+"/")})}}function Fs(t,e,i,s){s.includes(i)&&t.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:e.namespaced?[Ns]:[]}
2),Object.keys(e._children).forEach(function(n){Fs(t,e._children[n],i,s+n+"/")})}function zs(t){try{return t()}catch(t){return t}}var Hs=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var i=t.state;this.state=("function"==typeof i?i():i)||{}},Xs={namespaced:{configurable:!0}};Xs.namespaced.get=function(){return!!this._rawModule.namespaced},Hs.prototype.addChild=function(t,e){this._children[t]=e},Hs.prototype.removeChild=function(t){delete this._children[t]},Hs.prototype.getChild=function(t){return this._children[t]},Hs.prototype.hasChild=function(t){return t in this._children},Hs.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Hs.prototype.forEachChild=function(t){ws(this._children,t)},Hs.prototype.forEachGetter=function(t){this._rawModule.getters&&ws(this._rawModule.getters,t)},Hs.prototype.forEachAction=function(t){this._rawModule.actions&&ws(this._rawModule.actions,t)},Hs.prototype.forEachMutation=function(t){this._rawModule.mutations&&ws(this._rawModule.mutations,t)},Object.defineProperties(Hs.prototype,Xs);var Ws=function(t){this.register([],t,!1)};function Ys(t,e,i){if(e.update(i),i.modules)for(var s in i.modules){if(!e.getChild(s))return void 0;Ys(t.concat(s),e.getChild(s),i.modules[s])}}Ws.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},Ws.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,i){return t+((e=e.getChild(i)).namespaced?i+"/":"")},"")},Ws.prototype.update=function(t){Ys([],this.root,t)},Ws.prototype.register=function(t,e,i){var s=this;void 0===i&&(i=!0);var n=new Hs(e,i);0===t.length?this.root=n:this.get(t.slice(0,-1)).addChild(t[t.length-1],n);e.modules&&ws(e.modules,function(e,n){s.register(t.concat(n),e,i)})},Ws.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1],s=e.getChild(i);s&&s.runtime&&e.removeChild(i)},Ws.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1];return!!e&&e.hasChild(i)};function Vs(t){return new Gs(t)}var Gs=function(t){var e=this;void 0===t&&(t={});var i=t.plugins;void 0===i&&(i=[]);var s=t.strict;void 0===s&&(s=!1);var n=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Ws(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=n;var r=this,o=this.dispatch,a=this.commit;this.dispatch=function(t,e){return o.call(r,t,e)},this.commit=function(t,e,i){return a.call(r,t,e,i)},this.strict=s;var l=this._modules.root.state;Es(this,l,[],this._modules.root),As(this,l),i.forEach(function(t){return t(e)})},Us={state:{configurable:!0}};Gs.prototype.install=function(t,e){t.provide(e||vs,this),t.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&Ds(t,this)},Us.state.get=function(){return this._state.data},Us.state.set=function(t){0},Gs.prototype.commit=function(t,e,i){var s=this,n=Ps(t,e,i),r=n.type,o=n.payload,a=(n.options,{type:r,payload:o}),l=this._mutations[r];l&&(this._withCommit(function(){l.forEach(function(t){t(o)})}),this._subscribers.slice().forEach(function(t){return t(a,s.state)}))},Gs.prototype.dispatch=function(t,e){var i=this,s=Ps(t,e),n=s.type,r=s.payload,o={type:n,payload:r},a=this._actions[n];if(a){try{this._actionSubscribers.slice().filter(function(t){return t.before}).forEach(function(t){return t.before(o,i.state)})}catch(t){0}var l=a.length>1?Promise.all(a.map(function(t){return t(r)})):a[0](r);return new Promise(function(t,e){l.then(function(e){try{i._actionSubscribers.filter(function(t){return t.after}).forEach(function(t){return t.after(o,i.state)})}catch(t){0}t(e)},function(t){try{i._actionSubscribers.filter(function(t){return t.error}).forEach(function(e){return e.error(o,i.state,t)})}catch(t){0}e(t)})})}},Gs.prototype.subscribe=function(t,e){return ks(t,this._subscribers,e)},Gs.prototype.subscribeAction=function(t,e){return ks("function"==typeof t?{before:t}:t,this._actionSubscribers,e)}
2,Gs.prototype.watch=function(t,e,i){var s=this;return(0,r.watch)(function(){return t(s.state,s.getters)},e,Object.assign({},i))},Gs.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._state.data=t})},Gs.prototype.registerModule=function(t,e,i){void 0===i&&(i={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),Es(this,this.state,t,this._modules.get(t),i.preserveState),As(this,this.state)},Gs.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){delete Ts(e.state,t.slice(0,-1))[t[t.length-1]]}),Cs(this)},Gs.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},Gs.prototype.hotUpdate=function(t){this._modules.update(t),Cs(this,!0)},Gs.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(Gs.prototype,Us);qs(function(t,e){var i={};return $s(e).forEach(function(e){var s=e.key,n=e.val;i[s]=function(){var e=this.$store.state,i=this.$store.getters;if(t){var s=Ks(this.$store,"mapState",t);if(!s)return;e=s.context.state,i=s.context.getters}return"function"==typeof n?n.call(this,e,i):e[n]},i[s].vuex=!0}),i}),qs(function(t,e){var i={};return $s(e).forEach(function(e){var s=e.key,n=e.val;i[s]=function(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];var s=this.$store.commit;if(t){var r=Ks(this.$store,"mapMutations",t);if(!r)return;s=r.context.commit}return"function"==typeof n?n.apply(this,[s].concat(e)):s.apply(this.$store,[n].concat(e))}}),i}),qs(function(t,e){var i={};return $s(e).forEach(function(e){var s=e.key,n=e.val;n=t+n,i[s]=function(){if(!t||Ks(this.$store,"mapGetters",t))return this.$store.getters[n]},i[s].vuex=!0}),i}),qs(function(t,e){var i={};return $s(e).forEach(function(e){var s=e.key,n=e.val;i[s]=function(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];var s=this.$store.dispatch;if(t){var r=Ks(this.$store,"mapActions",t);if(!r)return;s=r.context.dispatch}return"function"==typeof n?n.apply(this,[s].concat(e)):s.apply(this.$store,[n].concat(e))}}),i});function $s(t){return function(t){return Array.isArray(t)||Ss(t)}(t)?Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function qs(t){return function(e,i){return"string"!=typeof e?(i=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,i)}}function Ks(t,e,i){return t._modulesNamespaceMap[i]}const Zs=Vs({state:{searchModalOpen:!1},mutations:{toggleSearchModal:function(t){t.searchModalOpen=!t.searchModalOpen}}});var Js=["id"];var Qs=["aria-live"],tn={class:"decision-tree__form",ref:"form"},en={class:"decision-tree__field-wrap"},sn={key:0,class:"h5 decision-tree__heading decision-tree__heading--question"},nn={key:0,class:"decision-tree__answer decision-tree__answer--dropdown"},rn={key:1,class:"decision-tree__answer decision-tree__answer--checkbox"},on={key:2,class:"decision-tree__answer"},an=["id","value","onClick","onKeydown"],ln=["for","onClick"],cn={class:"decision-tree__answer-value"},hn=["innerHTML"],dn={key:1,class:"decision-tree__step decision-tree__step--result","aria-live":"polite",tabindex:"-1",ref:"decisionTreeResultRef"},un={key:0,class:"h3 decision-tree__heading decision-tree__heading--result"},pn={class:"decision-tree__result"},fn=["innerHTML"],gn=["target","rel","href"],mn={key:0,class:"decision-tree__result-help"},xn={class:"decision-tree__reset"},bn={class:"link-text"};var yn={class:"checklist__items"},vn=["onKeydown"],wn=["id","value","checked","onInput"],Sn=["for","textContent"];const kn={name:"checklist",props:{items:{type:Array,default:function(){return[]}}},setup:function(t,e){var i=e.emit,s=(0,r.ref)([]),n=function(){var t=function(t,e){t&&(t.forEach(function(e,i){e.addEventListener("keydown",function(s){var n=s.keyCode;if(38===n){s.preventDefault();var r=i>0?i-1:t.length-1;t[r].focus()}else if(40===n){s.preventDefault();var o=i<t.length-1?i+1:0;t[o].focus()}else 36===n?(s.preventDefault(),t[0].focus()):35===n?(s.preventDefault(),t[t.length-1].focus()):32===n&&e.click()})}),e&&e.forEach(function(t){if(null!==t){var e=t.querySelectorAll("a");e.forEach(function(t,i){t.addEventListener("keydown",function(t){var s=t.keyCode;38===s?(t.preventDefault(),i>0?e[i-1].focus():e[e.length-1].focus()):40===s?(t.preventDefault(),i<e.length-1?e[i+1].focus():e[0].focus()):36===s?(t.preventDefault(),e[0].focus()):35===s&&(t.preventDefault(),e[e.length-1].focus())})})}}))};return(0,r.onMounted)(t),{enableKeyboardNavigation:t}}(),o=n.enableKeyboardNavigation,a=(0,r.inject)("decision-tree-id"),l=(0,r.computed)(function(){return t.items.filter(function(t){return void 0!==t.value&&t.value.length>0})});return(0,r.onMounted)(function(){var t=document.querySelectorAll("#".concat(a," .checklist__input"));o(t)}),{selected:s,validItems:l,addSelectedItem:function(t,e){if(t.target.checked)s.value.push(e);else{var n=s.value.indexOf(e);n>-1&&s.value.splice(n,1)}i("selected-changed",s.value)},activateCheckbox:function(t){if(s.value.includes(t)){var e=s.value.indexOf(t);e>-1&&s.value.splice(e,1)}else s.value.push(t);i("selected-changed",s.value)}}}};var Cn=i(262);
2const An=(0,Cn.A)(kn,[["render",function(t,e,i,s,n,o){return(0,r.openBlock)(),(0,r.createElementBlock)("ul",yn,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(s.validItems,function(t){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{class:"checklist__item",key:"checklist-".concat(t.id),onKeydown:(0,r.withKeys)((0,r.withModifiers)(function(e){return s.activateCheckbox(t.value)},["prevent"]),["enter"])},[(0,r.createElementVNode)("input",{id:"checklist-".concat(t.id),value:t.value,name:"checkbox-group",type:"checkbox",class:"checklist__input",checked:s.selected.includes(t.value),onInput:function(e){return s.addSelectedItem(e,t.value)}},null,40,wn),(0,r.createElementVNode)("label",{class:"checklist__label",for:"checklist-".concat(t.id),textContent:(0,r.toDisplayString)(t.value)},null,8,Sn)],40,vn)}),128))])}]]);var En={class:"field dropdown"},Mn={key:0,class:"left",id:"DropdownField-label"},Tn={class:"middleColumn"},Pn=["value"],On=["value"];const Ln={name:"dropdown-field",components:{ComboBox:T,ComboBoxOption:N},props:{title:{type:String,default:""},defaultValue:{type:String,default:""},value:{type:String,default:""},extraClass:{type:String,default:""},options:{type:Array,default:function(){return[]}}},setup:function(t,e){var i=e.emit;(0,r.provide)("options",t.options);return{updateSelectedOption:function(t){i("dropdown-value-changed",t)},resetOption:(0,r.inject)("reset-selected-option")}}},_n=(0,Cn.A)(Ln,[["render",function(t,e,i,s,n,o){var a=(0,r.resolveComponent)("combo-box-option"),l=(0,r.resolveComponent)("combo-box");return(0,r.openBlock)(),(0,r.createElementBlock)("div",En,[i.title?((0,r.openBlock)(),(0,r.createElementBlock)("label",Mn,(0,r.toDisplayString)(i.title),1)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",Tn,[(0,r.createVNode)(l,{id:"DropdownField",name:"DropdownField","aria-describedby":t.ariaDescribedBy?t.ariaDescribedBy:void 0,onUpdateSelectedOption:s.updateSelectedOption,reset:s.resetOption,"allow-empty":!0,"empty-option-title":"Select option"},{options:(0,r.withCtx)(function(){return[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.options,function(t,e){return(0,r.openBlock)(),(0,r.createBlock)(a,(0,r.mergeProps)(t,{key:e}),null,16)}),128))]}),select:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("select",{name:"DropdownField",class:"dropdown visually-hidden",id:"DropdownField",value:i.value},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.options,function(t,e){return(0,r.openBlock)(),(0,r.createElementBlock)("option",{value:t.value,key:e},(0,r.toDisplayString)(t.title),9,On)}),128))],8,Pn)]}),_:1},8,["aria-describedby","onUpdateSelectedOption","reset"])])])}]]),In={name:"decision-tree-step",components:{Checklist:An,DropdownField:_n},props:{stepProps:{type:Object},firstStep:{type:Boolean,default:!1},resetSelectedStep:{type:Boolean,default:!0},globalData:{type:Object,default:function(){return{}}}},setup:function(t){var e=(0,r.ref)(t.stepProps.isQuestion),i=(0,r.ref)(null),s=(0,r.ref)(null),n=(0,r.ref)(!1),o=(0,r.ref)(null),a=(0,r.ref)(null);(0,r.provide)("reset-selected-option",n);var l=(0,r.inject)("decision-tree-ref"),c=(0,r.inject)("decision-tree-answers"),h=(0,r.inject)("decision-tree-steps"),d=(0,r.inject)("decision-tree-active-steps"),u=d.activeSteps,p=d.updateActiveSteps,f=(0,r.inject)("decision-tree-restart"),g=function(){return t.stepProps.answers.map(function(t){return{answerId:t,value:c[t]}})},m=function(){var t,e;if(l.value.querySelectorAll(".decision-tree__step").length>1){var i=window.pageYOffset-document.documentElement.clientTop,s=o.value;if(s){var n=s.getBoundingClientRect().top+i;window.scrollTo({top:n,behavior:"smooth"})}t=o.value,e=a.value,t?t.focus():e&&e.focus()}},x=function(t,e){s.value!==e&&(null!==i.value&&p.setLength(i.value),p.push(h[t]),i.value=u.value.length-1,m())},b=function(){i.value!==u.value.length&&(p.pop(),m())},y=(0,r.computed)(function(){return"dropdown"===t.stepProps.control&&t.stepProps.answers.length>0&&t.stepProps.fieldOptions.length>0}),v=(0,r.computed)(function(){return"checkbox"===t.stepProps.control&&t.stepProps.answers.length>0&&t.stepProps.fieldOptions.length>0});
2return(0,r.watch)(function(){return t.resetSelectedStep},function(t){t&&(s.value=null,n.value=!0)}),(0,r.onMounted)(function(){m()}),{isQuestion:e,selectedStepId:s,resetSelectedOption:n,isDropdownStep:y,isCheckboxSetStep:v,decisionTreeStepRef:o,decisionTreeResultRef:a,getAnswers:g,activateSelectedOptionStep:function(e){var i=t.stepProps.fieldOptions.find(function(t){return t.value===e.value});if(i){var s=g().find(function(t){return parseInt(t.value.selectedOptionValue,10)===i.selectedValue});s&&(x(s.value.goTo,s.answerId),n.value=!1)}},activateCheckboxStep:function(t){var e=null;if(t.length>0&&(e=1===t.length?0:1),null!==e){var i=g().find(function(t){return parseInt(t.value.selectedOptionValue,10)===e});i&&x(i.value.goTo,i.answerId)}else b()},activateStep:x,deactivateLastStep:b,scroll:m,restart:f}}},Dn={name:"decision-tree",components:{DecisionTreeStep:(0,Cn.A)(In,[["render",function(t,e,i,s,n,o){var a=(0,r.resolveComponent)("dropdown-field"),l=(0,r.resolveComponent)("checklist");return s.isQuestion?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["decision-tree__step",[i.firstStep?"decision-tree__step--first":"decision-tree__step--next"]]),"aria-live":i.firstStep?"off":"polite",ref:"decisionTreeStepRef",tabindex:"-1"},[(0,r.createElementVNode)("form",tn,[(0,r.createElementVNode)("fieldset",en,[(0,r.createElementVNode)("legend",{class:(0,r.normalizeClass)(["decision-tree__legend",i.stepProps.content&&"decision-tree__legend--content"])},[!i.stepProps.hideTitle&&i.stepProps.title?((0,r.openBlock)(),(0,r.createElementBlock)("h3",sn,(0,r.toDisplayString)(i.stepProps.title),1)):(0,r.createCommentVNode)("",!0)],2),s.isDropdownStep?((0,r.openBlock)(),(0,r.createElementBlock)("div",nn,[(0,r.createVNode)(a,{options:i.stepProps.fieldOptions,onDropdownValueChanged:s.activateSelectedOptionStep},null,8,["options","onDropdownValueChanged"])])):s.isCheckboxSetStep?((0,r.openBlock)(),(0,r.createElementBlock)("div",rn,[(0,r.createVNode)(l,{items:i.stepProps.fieldOptions,onSelectedChanged:s.activateCheckboxStep},null,8,["items","onSelectedChanged"])])):i.stepProps.answers.length?((0,r.openBlock)(),(0,r.createElementBlock)("ul",on,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(s.getAnswers(),function(t,i){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{class:"decision-tree__answer-item",key:i},[(0,r.withDirectives)((0,r.createElementVNode)("input",{id:t.answerId,name:"stepanswerid",type:"radio",value:t.answerId,"onUpdate:modelValue":e[0]||(e[0]=function(t){return s.selectedStepId=t}),onClick:function(e){return s.activateStep(t.value.goTo,t.answerId)},onKeydown:[(0,r.withKeys)(function(e){return s.activateStep(t.value.goTo,t.answerId)},["enter"]),(0,r.withKeys)(function(e){return s.activateStep(t.value.goTo,t.answerId)},["space"])]},null,40,an),[[r.vModelRadio,s.selectedStepId]]),t.value.title?((0,r.openBlock)(),(0,r.createElementBlock)("label",{key:0,ref_for:!0,ref:"input",for:t.answerId,onClick:function(e){return s.activateStep(t.value.goTo,t.answerId)}},[(0,r.createElementVNode)("span",cn,(0,r.toDisplayString)(t.value.title),1)],8,ln)):(0,r.createCommentVNode)("",!0)])}),128))])):(0,r.createCommentVNode)("",!0),i.stepProps.content?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:3,class:"decision-tree__content",innerHTML:i.stepProps.content},null,8,hn)):(0,r.createCommentVNode)("",!0)])],512)],10,Qs)):((0,r.openBlock)(),(0,r.createElementBlock)("div",dn,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["decision-tree__result-container",{"decision-tree__result-container--dark":i.stepProps.resultDarkBg}])},[i.stepProps.hideTitle?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("h3",un,(0,r.toDisplayString)(i.stepProps.title),1)),(0,r.createElementVNode)("div",pn,[i.stepProps.content?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"decision-tree__result-content",innerHTML:i.stepProps.content},null,8,fn)):(0,r.createCommentVNode)("",!0),i.stepProps.action?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:1,"aria-label":"Do something call-to-action",class:(0,r.normalizeClass)(["btn btn--primary decision-tree__result-cta",{"btn--secondary":i.stepProps.resultDarkBg}]),target:i.stepProps.action.isNewWindow?"_blank":null,rel:[i.stepProps.action.isNewWindow?"nofollow noopener noreferrer":""],href:i.stepProps.action.url,onKeydown:e[1]||(e[1]=(0,r.withKeys)((0,r.withModifiers)(function(e){return t.$emit("click-cta-result",e)},["prevent"]),["space"]))},(0,r.toDisplayString)(i.stepProps.action.label),43,gn)):(0,r.createCommentVNode)("",!0)])],2),i.stepProps.help_message?((0,r.openBlock)(),(0,r.createElementBlock)("p",mn,(0,r.toDisplayString)(i.stepProps.help_message),1)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",xn,[i.globalData.showRestartButton?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:"#",class:"link link--transparent-underline decision-tree__reset-btn","aria-label":"Clear form and start again",onClick:e[2]||(e[2]=function(t){return s.restart()})},[(0,r.createElementVNode)("span",bn,(0,r.toDisplayString)(i.globalData.restartButtonText),1)])):(0,r.createCommentVNode)("",!0)])],512))}]])},props:{dataProps:{type:String,default:""},id:{type:String,default:""}},setup:function(t){var e={};try{e=JSON.parse(atob(t.dataProps))}catch(t){e.answers={},e.steps={},e.blockIntro="",e.blockTitle=""}var i=e,s=i.answers,n=i.steps,o=i.showRestartButton,a=i.restartButtonText,l=(0,r.ref)(!0),c=(0,r.ref)({showRestartButton:o,restartButtonText:a}),h=(0,r.ref)(null),d=(0,r.ref)([]),u=(0,r.ref)(null),p={push:function(t){d.value.push(t)},pop:function(){return d.value.pop()},setLength:function(t){d.value.length=t},splice:function(){d.value.splice(0,d.value.length)}};(0,r.provide)("decision-tree-ref",h),(0,r.provide)("decision-tree-answers",s),(0,r.provide)("decision-tree-steps",n),(0,r.provide)("decision-tree-active-steps",{activeSteps:d,updateActiveSteps:p}),(0,r.provide)("decision-tree-id",t.id),(0,r.onUpdated)(function(){l.value&&(l.value=!1)});var f=(0,r.computed)(function(){return n[Object.keys(n).find(function(t){return n[t].isFirst})]});(0,r.provide)("decision-tree-restart",function(){p.splice(),l.value=!0,function(){var t=document.querySelector(".header").getBoundingClientRect().height,e=h.value.parentElement;if(e){var i=e.getBoundingClientRect().top+window.pageYOffset-t;window.scroll({top:i,behavior:"instant"})}}();var t=u.value.$el;t.classList||(t=t.nextElementSibling),t&&t.focus()});return{activeSteps:d,resetFirstStep:l,globalData:c,firstStep:f,decisionTreeRef:h,firstStepRef:u,ctaButtonHandler:function(t){t.currentTarget.click()}}}}
2,Rn=(0,Cn.A)(Dn,[["render",function(t,e,i,s,n,o){var a=(0,r.resolveComponent)("decision-tree-step");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{id:"".concat(i.id),class:"decision-tree__steps",ref:"decisionTreeRef"},[(0,r.createVNode)(a,{stepProps:s.firstStep,resetSelectedStep:s.resetFirstStep,firstStep:!0,ref:"firstStepRef"},null,8,["stepProps","resetSelectedStep"]),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(s.activeSteps,function(t,e){return(0,r.openBlock)(),(0,r.createBlock)(a,{key:"".concat(e,"-").concat(t.answers),stepProps:t,"global-data":s.globalData,onClickCtaResult:s.ctaButtonHandler},null,8,["stepProps","global-data","onClickCtaResult"])}),128))],8,Js)}]]);function Nn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bn={exports:{}};!function(t,e){function i(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,s)}return i}function s(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?i(Object(s),!0).forEach(function(e){l(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):i(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function a(t,e,i){return e&&o(t.prototype,e),i&&o(t,i),t}function l(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,s=h(t);if(e){var n=h(this).constructor;i=Reflect.construct(s,arguments,n)}else i=s.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}(this,i)}}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s,n,r=[],o=!0,a=!1;try{for(i=i.call(t);!(o=(s=i.next()).done)&&(r.push(s.value),!e||r.length!==e);o=!0);}catch(t){a=!0,n=t}finally{try{o||null==i.return||i.return()}finally{if(a)throw n}}return r}}(t,e)||m(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t){return function(t){if(Array.isArray(t))return x(t)}(t)||function(t){if(typeof Symbol<"u"&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){if(t){if("string"==typeof t)return x(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?x(t,e):void 0}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}var b=function(){function t(){r(this,t)}return a(t,[{key:"shadeRGBColor",value:function(t,e){var i=e.split(","),s=t<0?0:255,n=t<0?-1*t:t,r=parseInt(i[0].slice(4),10),o=parseInt(i[1],10),a=parseInt(i[2],10);return"rgb("+(Math.round((s-r)*n)+r)+","+(Math.round((s-o)*n)+o)+","+(Math.round((s-a)*n)+a)+")"}},{key:"shadeHexColor",value:function(t,e){var i=parseInt(e.slice(1),16),s=t<0?0:255,n=t<0?-1*t:t,r=i>>16,o=i>
vendor: 4,392 bytes, line 2
2>8&255,a=255&i;return"#"+(16777216+65536*(Math.round((s-r)*n)+r)+256*(Math.round((s-o)*n)+o)+(Math.round((s-a)*n)+a)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,i){return t.isColorHex(i)?this.shadeHexColor(e,i):this.shadeRGBColor(e,i)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(t){return t&&"object"===n(t)&&!Array.isArray(t)&&null!=t}},{key:"is",value:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"}},{key:"listToArray",value:function(t){var e,i=[];for(e=0;e<t.length;e++)i[e]=t[e];return i}},{key:"extend",value:function(t,e){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var s=arguments[i];if(null!=s)for(var n in s)s.hasOwnProperty(n)&&(e[n]=s[n])}return e});var s=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach(function(n){i.isObject(e[n])&&n in t?s[n]=i.extend(t[n],e[n]):Object.assign(s,l({},n,e[n]))}),s}},{key:"extendArray",value:function(e,i){var s=[];return e.map(function(e){s.push(t.extend(i,e))}),s}},{key:"monthMod",value:function(t){return t%12}},{key:"clone",value:function(e){if(t.is("Array",e)){for(var i=[],s=0;s<e.length;s++)i[s]=this.clone(e[s]);return i}if(t.is("Null",e))return null;if(t.is("Date",e))return e;if("object"===n(e)){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[o]=this.clone(e[o]));return r}return e}},{key:"log10",value:function(t){return Math.log(t)/Math.LN10}},{key:"roundToBase10",value:function(t){return Math.pow(10,Math.floor(Math.log10(t)))}},{key:"roundToBase",value:function(t,e){return Math.pow(e,Math.floor(Math.log(t)/Math.log(e)))}},{key:"parseNumber",value:function(t){return null===t?t:parseFloat(t)}},{key:"stripNumber",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(t)?t:parseFloat(t.toPrecision(e))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){var e=String(t).split(/[eE]/);if(1===e.length)return e[0];var i="",s=t<0?"-":"",n=e[0].replace(".",""),r=Number(e[1])+1;if(r<0){for(i=s+"0.";r++;)i+="0";return i+n.replace(/^-/,"")}for(r-=n.length;r--;)i+="0";return n+i}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t,null),i=t.clientHeight,s=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[s-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i]}},{key:"getBoundingClientRect",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:t.clientWidth,height:t.clientHeight,x:e.left,y:e.top}}},{key:"getLargestStringFromArr",value:function(t){return t.reduce(function(t,e){return Array.isArray(e)&&(e=e.reduce(function(t,e){return t.length>e.length?t:e})),t.length>e.length?t:e},0)}},{key:"hexToRgba",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==t.substring(0,1)&&(t="#999999");var i=t.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var s=0;s<i.length;s++)i[s]=parseInt(1===i[s].length?i[s]+i[s]:i[s],16);return void 0!==e&&i.push(e),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(t){return parseFloat(t.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(t)}},{key:"getPolygonPos",value:function(t,e){for(var i=[],s=2*Math.PI/e,n=0;n<e;n++){var r={};r.x=t*Math.sin(n*s),r.y=-t*Math.cos(n*s),i.push(r)}return i}},{key:"polarToCartesian",value:function(t,e,i,s){var n=(s-90)*Math.PI/180;return{x:t+i*Math.cos(n),y:e+i*Math.sin(n)}}},{key:"escapeString",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",i=t.toString().slice();return i.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,e)}},{key:"negToZero",value:function(t){return t<0?0:t}}
vendor: 4,769 bytes, line 2
2,{key:"moveIndexInArray",value:function(t,e,i){if(i>=t.length)for(var s=i-t.length+1;s--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:"extractNumber",value:function(t){return parseFloat(t.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}},{key:"setELstyles",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style.key=e[i])}},{key:"isNumber",value:function(t){return!isNaN(t)&&parseFloat(Number(t))===t&&!isNaN(parseInt(t,10))}},{key:"isFloat",value:function(t){return Number(t)===t&&t%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var s=t.indexOf("Edge/");return s>0&&parseInt(t.substring(s+5,t.indexOf(".",s)),10)}}]),t}(),y=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return a(t,[{key:"setEasingFunctions",value:function(){var t;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":t="-";break;case"easein":t="<";break;case"easeout":t=">";break;case"easeinout":default:t="<>";break;case"swing":t=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1};break;case"bounce":t=function(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};break;case"elastic":t=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=t}}},{key:"animateLine",value:function(t,e,i,s){t.attr(e).animate(s).attr(i)}},{key:"animateMarker",value:function(t,e,i,s,n,r){e||(e=0),t.attr({r:e,width:e,height:e}).animate(s,n).attr({r:i,width:i.width,height:i.height}).afterAll(function(){r()})}},{key:"animateCircle",value:function(t,e,i,s,n){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(s,n).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,s,n){t.attr(e).animate(s).attr(i).afterAll(function(){return n()})}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.realIndex,s=t.j,n=t.fill,r=t.pathFrom,o=t.pathTo,a=t.speed,l=t.delay,c=this.w,h=0;c.config.chart.animations.animateGradually.enabled&&(h=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(h=0),this.morphSVG(e,i,s,"line"!==c.config.chart.type||c.globals.comboCharts?n:"stroke",r,o,a,l*h)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(t){var e=t.el;e.classList.remove("apexcharts-element-hidden"),e.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(t){var e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof e.config.chart.events.animationEnd&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}},{key:"morphSVG",value:function(t,e,i,s,n,r,o,a){var l=this,c=this.w;n||(n=t.attr("pathFrom")),r||(r=t.attr("pathTo"));var h=function(t){return"radar"===c.config.chart.type&&(o=1),"M 0 ".concat(c.globals.gridHeight)};(!n||n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n=h()),(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=h()),c.globals.shouldAnimate||(o=1),t.plot(n).animate(1,c.globals.easing,a).plot(n).animate(o,c.globals.easing,a).plot(r).afterAll(function(){b.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(t):"none"!==s&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&e===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(t),l.showDelayedElements()})}}]),t}(),v=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"getDefaultFilter",value:function(t,e){var i=this.w;t.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==i.config.states.normal.filter?this.applyFilter(t,e,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addNormalFilter",value:function(t,e){var i=this.w;i.config.chart.dropShadow.enabled&&!t.node.classList.contains("apexcharts-marker")&&this.dropShadow(t,i.config.chart.dropShadow,e)}}
vendor: 14,957 bytes, line 2
2,{key:"addLightenFilter",value:function(t,e,i){var s=this,n=this.w,r=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter(function(t){var i=n.config.chart.dropShadow;(i.enabled?s.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:r}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"addDarkenFilter",value:function(t,e,i){var s=this,n=this.w,r=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter(function(t){var i=n.config.chart.dropShadow;(i.enabled?s.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:r}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"applyFilter",value:function(t,e,i){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(t,e);break;case"lighten":this.addLightenFilter(t,e,{intensity:s});break;case"darken":this.addDarkenFilter(t,e,{intensity:s})}}},{key:"addShadow",value:function(t,e,i){var s=i.blur,n=i.top,r=i.left,o=i.color,a=i.opacity,l=t.flood(Array.isArray(o)?o[e]:o,a).composite(t.sourceAlpha,"in").offset(r,n).gaussianBlur(s).merge(t.source);return t.blend(t.source,l)}},{key:"dropShadow",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=e.top,n=e.left,r=e.blur,o=e.color,a=e.opacity,l=e.noUserSpaceOnUse,c=this.w;return t.unfilter(!0),b.isIE()&&"radialBar"===c.config.chart.type||(o=Array.isArray(o)?o[i]:o,t.filter(function(t){var e;e=b.isSafari()||b.isFirefox()||b.isIE()?t.flood(o,a).composite(t.sourceAlpha,"in").offset(n,s).gaussianBlur(r):t.flood(o,a).composite(t.sourceAlpha,"in").offset(n,s).gaussianBlur(r).merge(t.source),t.blend(t.source,e)}),l||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)),t}},{key:"setSelectionFilter",value:function(t,e,i){var s=this.w;if(void 0!==s.globals.selectedDataPoints[e]&&s.globals.selectedDataPoints[e].indexOf(i)>-1){t.node.setAttribute("selected",!0);var n=s.config.states.active.filter;"none"!==n&&this.applyFilter(t,e,n.type,n.value)}}},{key:"_scaleFilterSize",value:function(t){!function(e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),t}(),w=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"roundPathCorners",value:function(t,e){function i(t,e,i){var n=e.x-t.x,r=e.y-t.y,o=Math.sqrt(n*n+r*r);return s(t,e,Math.min(1,i/o))}function s(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function n(t,e){t.length>2&&(t[t.length-2]=e.x,t[t.length-1]=e.y)}function r(t){return{x:parseFloat(t[t.length-2]),y:parseFloat(t[t.length-1])}}t.indexOf("NaN")>-1&&(t="");var o=t.split(/[,\s]/).reduce(function(t,e){var i=e.match("([a-zA-Z])(.+)");return i?(t.push(i[1]),t.push(i[2])):t.push(e),t},[]).reduce(function(t,e){return parseFloat(e)==e&&t.length?t[t.length-1].push(e):t.push([e]),t},[]),a=[];if(o.length>1){var l=r(o[0]),c=null;"Z"==o[o.length-1][0]&&o[0].length>2&&(c=["L",l.x,l.y],o[o.length-1]=c),a.push(o[0]);for(var h=1;h<o.length;h++){var d=a[a.length-1],u=o[h],p=u==c?o[1]:o[h+1];if(p&&d&&d.length>2&&"L"==u[0]&&p.length>2&&"L"==p[0]){var f,g,m=r(d),x=r(u),b=r(p);f=i(x,m,e),g=i(x,b,e),n(u,f),u.origPoint=x,a.push(u);var y=s(f,x,.5),v=s(x,g,.5),w=["C",y.x,y.y,v.x,v.y,g.x,g.y];w.origPoint=x,a.push(w)}else a.push(u)}if(c){var S=r(a[a.length-1]);a.push(["Z"]),n(a[0],S)}}else a=o;return a.reduce(function(t,e){return t+e.join(" ")+" "},"")}},{key:"drawLine",value:function(t,e,i,s){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:s,stroke:n,"stroke-dasharray":r,"stroke-width":o,"stroke-linecap":a})}},{key:"drawRect",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,h=this.w.globals.dom.Paper.rect();return h.attr({x:t,y:e,width:i>0?i:0,height:s>0?s:0,rx:n,ry:n,opacity:o,"stroke-width":null!==a?a:0,stroke:null!==l?l:"none","stroke-dasharray":c}),h.node.setAttribute("fill",r),h}},{key:"drawPolygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(t).attr({fill:s,stroke:e,"stroke-width":i})}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t<0&&(t=0);var i=this.w.globals.dom.Paper.circle(2*t);return null!==e&&i.attr(e),i}},{key:"drawPath",value:function(t){var e=t.d,i=void 0===e?"":e,s=t.stroke,n=void 0===s?"#a8a8a8":s,r=t.strokeWidth,o=void 0===r?1:r,a=t.fill,l=t.fillOpacity,c=void 0===l?1:l,h=t.strokeOpacity,d=void 0===h?1:h,u=t.classes,p=t.strokeLinecap,f=void 0===p?null:p,g=t.strokeDashArray,m=void 0===g?0:g,x=this.w;return null===f&&(f=x.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(x.globals.gridHeight)),x.globals.dom.Paper.path(i).attr({fill:a,"fill-opacity":c,stroke:n,"stroke-opacity":d,"stroke-linecap":f,"stroke-width":o,"stroke-dasharray":m,class:u})}},{key:"group",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w.globals.dom.Paper.group();return null!==t&&e.attr(t),e}},{key:"move",value:function(t,e){return["M",t,e].join(" ")}},{key:"line",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=null;return null===i?s=[" L",t,e].join(" "):"H"===i?s=[" H",t].join(" "):"V"===i&&(s=[" V",e].join(" ")),s}},{key:"curve",value:function(t,e,i,s,n,r){return["C",t,e,i,s,n,r].join(" ")}},{key:"quadraticCurve",value:function(t,e,i,s){return["Q",t,e,i,s].join(" ")}},{key:"arc",value:function(t,e,i,s,n,r,o){var a="A";return arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(a="a"),[a,t,e,i,s,n,r,o].join(" ")}},{key:"renderPaths",value:function(t){var e,i=t.j,n=t.realIndex,r=t.pathFrom,o=t.pathTo,a=t.stroke,l=t.strokeWidth,c=t.strokeLinecap,h=t.fill,d=t.animationDelay,u=t.initialSpeed,p=t.dataChangeSpeed,f=t.className,g=t.shouldClipToGrid,m=void 0===g||g,x=t.bindEventsOnPaths,b=void 0===x||x,w=t.drawShadow,S=void 0===w||w,k=this.w,C=new v(this.ctx),A=new y(this.ctx),E=this.w.config.chart.animations.enabled,M=E&&this.w.config.chart.animations.dynamicAnimation.enabled,T=!!(E&&!k.globals.resized||M&&k.globals.dataChanged&&k.globals.shouldAnimate);T?e=r:(e=o,k.globals.animationEnded=!0);var P,O=k.config.stroke.dashArray;P=Array.isArray(O)?O[n]:k.config.stroke.dashArray;var L=this.drawPath({d:e,stroke:a,strokeWidth:l,fill:h,fillOpacity:1,classes:f,strokeLinecap:c,strokeDashArray:P});if(L.attr("index",n),m&&L.attr({"clip-path":"url(#gridRectMask".concat(k.globals.cuid,")")}),"none"!==k.config.states.normal.filter.type)C.getDefaultFilter(L,n);else if(k.config.chart.dropShadow.enabled&&S&&(!k.config.chart.dropShadow.enabledOnSeries||k.config.chart.dropShadow.enabledOnSeries&&-1!==k.config.chart.dropShadow.enabledOnSeries.indexOf(n))){var _=k.config.chart.dropShadow;C.dropShadow(L,_,n)}b&&(L.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,L)),L.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,L)),L.node.addEventListener("mousedown",this.pathMouseDown.bind(this,L))),L.attr({pathTo:o,pathFrom:r});var I={el:L,j:i,realIndex:n,pathFrom:r,pathTo:o,fill:h,strokeWidth:l,delay:d};return!E||k.globals.resized||k.globals.dataChanged?!k.globals.resized&&k.globals.dataChanged||A.showDelayedElements():A.animatePathsGradually(s(s({},I),{},{speed:u})),k.globals.dataChanged&&M&&T&&A.animatePathsGradually(s(s({},I),{},{speed:p})),L}},{key:"drawPattern",value:function(t,e,i){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(e,i,function(r){"horizontalLines"===t?r.line(0,0,i,0).stroke({color:s,width:n+1}):"verticalLines"===t?r.line(0,0,0,e).stroke({color:s,width:n+1}):"slantedLines"===t?r.line(0,0,e,i).stroke({color:s,width:n}):"squares"===t?r.rect(e,i).fill("none").stroke({color:s,width:n}):"circles"===t&&r.circle(e).fill("none").stroke({color:s,width:n})})}},{key:"drawGradient",value:function(t,e,i,s,n){var r,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,h=this.w;e.length<9&&0===e.indexOf("#")&&(e=b.hexToRgba(e,s)),i.length<9&&0===i.indexOf("#")&&(i=b.hexToRgba(i,n));var d=0,u=1,p=1,f=null;null!==a&&(d=void 0!==a[0]?a[0]/100:0,u=void 0!==a[1]?a[1]/100:1,p=void 0!==a[2]?a[2]/100:1,f=void 0!==a[3]?a[3]/100:null);var g=!("donut"!==h.config.chart.type&&"pie"!==h.config.chart.type&&"polarArea"!==h.config.chart.type&&"bubble"!==h.config.chart.type);if(r=null===l||0===l.length?h.globals.dom.Paper.gradient(g?"radial":"linear",function(t){t.at(d,e,s),t.at(u,i,n),t.at(p,i,n),null!==f&&t.at(f,e,s)}):h.globals.dom.Paper.gradient(g?"radial":"linear",function(t){(Array.isArray(l[c])?l[c]:l).forEach(function(e){t.at(e.offset/100,e.color,e.opacity)})}),g){var m=h.globals.gridWidth/2,x=h.globals.gridHeight/2;"bubble"!==h.config.chart.type?r.attr({gradientUnits:"userSpaceOnUse",cx:m,cy:x,r:o}):r.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===t?r.from(0,0).to(0,1):"diagonal"===t?r.from(0,0).to(1,1):"horizontal"===t?r.from(0,1).to(1,1):"diagonal2"===t&&r.from(1,0).to(0,1);return r}},{key:"getTextBasedOnMaxWidth",value:function(t){var e=t.text,i=t.maxWidth,s=t.fontSize,n=t.fontFamily,r=this.getTextRects(e,s,n),o=r.width/e.length,a=Math.floor(i/o);return i<r.width?e.slice(0,a-3)+"...":e}},{key:"drawText",value:function(t){var e=this,i=t.x,n=t.y,r=t.text,o=t.textAnchor,a=t.fontSize,l=t.fontFamily,c=t.fontWeight,h=t.foreColor,d=t.opacity,u=t.maxWidth,p=t.cssClass,f=void 0===p?"":p,g=t.isPlainText,m=void 0===g||g,x=t.dominantBaseline,b=void 0===x?"auto":x,y=this.w;void 0===r&&(r="");var v=r;o||(o="start"),h&&h.length||(h=y.config.chart.foreColor),l=l||y.config.chart.fontFamily,c=c||"regular";var w,S={maxWidth:u,fontSize:a=a||"11px",fontFamily:l};return Array.isArray(r)?w=y.globals.dom.Paper.text(function(t){for(var i=0;i<r.length;i++)v=r[i],u&&(v=e.getTextBasedOnMaxWidth(s({text:r[i]},S))),0===i?t.tspan(v):t.tspan(v).newLine()}):(u&&(v=this.getTextBasedOnMaxWidth(s({text:r},S))),w=m?y.globals.dom.Paper.plain(r):y.globals.dom.Paper.text(function(t){return t.tspan(v)})),w.attr({x:i,y:n,"text-anchor":o,"dominant-baseline":b,"font-size":a,"font-family":l,"font-weight":c,fill:h,class:"apexcharts-text "+f}),w.node.style.fontFamily=l,w.node.style.opacity=d,w}},{key:"drawMarker",value:function(t,e,i){t=t||0;var s=i.pSize||0,n=null;if("square"===i.shape||"rect"===i.shape){var r=void 0===i.pRadius?s/2:i.pRadius;null!==e&&s||(s=0,r=0);var o=1.2*s+r,a=this.drawRect(o,o,o,o,r);a.attr({x:t-o/2,y:e-o/2,cx:t,cy:e,class:i.class?i.class:"",fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,stroke:i.pointStrokeColor,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}),n=a}else"circle"!==i.shape&&i.shape||(b.isNumber(e)||(s=0,e=0),n=this.drawCircle(s,{cx:t,cy:e,class:i.class?i.class:"",stroke:i.pointStrokeColor,fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}));return n}},{key:"pathMouseEnter",value:function(t,e){var i=this.w,s=new v(this.ctx),n=parseInt(t.node.getAttribute("index"),10),r=parseInt(t.node.getAttribute("j"),10);if("function"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:n,dataPointIndex:r,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[e,this.ctx,{seriesIndex:n,dataPointIndex:r,w:i}]),("none"===i.config.states.active.filter.type||"true"!==t.node.getAttribute("selected"))&&"none"!==i.config.states.hover.filter.type&&!i.globals.isTouchDevice){var o=i.config.states.hover.filter;s.applyFilter(t,n,o.type,o.value)}}},{key:"pathMouseLeave",value:function(t,e){var i=this.w,s=new v(this.ctx),n=parseInt(t.node.getAttribute("index"),10),r=parseInt(t.node.getAttribute("j"),10);"function"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:n,dataPointIndex:r,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[e,this.ctx,{seriesIndex:n,dataPointIndex:r,w:i}]),"none"!==i.config.states.active.filter.type&&"true"===t.node.getAttribute("selected")||"none"!==i.config.states.hover.filter.type&&s.getDefaultFilter(t,n)}},{key:"pathMouseDown",value:function(t,e){var i=this.w,s=new v(this.ctx),n=parseInt(t.node.getAttribute("index"),10),r=parseInt(t.node.getAttribute("j"),10),o="false";if("true"===t.node.getAttribute("selected")){if(t.node.setAttribute("selected","false"),i.globals.selectedDataPoints[n].indexOf(r)>-1){var a=i.globals.selectedDataPoints[n].indexOf(r);i.globals.selectedDataPoints[n].splice(a,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.select(".apexcharts-series path").members,c=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,h=function(t){Array.prototype.forEach.call(t,function(t){t.node.setAttribute("selected","false"),s.getDefaultFilter(t,n)})};h(l),h(c)}t.node.setAttribute("selected","true"),o="true",void 0===i.globals.selectedDataPoints[n]&&(i.globals.selectedDataPoints[n]=[]),i.globals.selectedDataPoints[n].push(r)}if("true"===o){var d=i.config.states.active.filter;if("none"!==d)s.applyFilter(t,n,d.type,d.value);else if("none"!==i.config.states.hover.filter&&!i.globals.isTouchDevice){var u=i.config.states.hover.filter;s.applyFilter(t,n,u.type,u.value)}}else"none"!==i.config.states.active.filter.type&&("none"===i.config.states.hover.filter.type||i.globals.isTouchDevice?s.getDefaultFilter(t,n):(u=i.config.states.hover.f
2ilter,s.applyFilter(t,n,u.type,u.value)));"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:n,dataPointIndex:r,w:i}),e&&this.ctx.events.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:n,dataPointIndex:r,w:i}])}},{key:"rotateAroundCenter",value:function(t){var e={};return t&&"function"==typeof t.getBBox&&(e=t.getBBox()),{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,s){var n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=this.w,o=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0});s&&o.attr("transform",s),r.globals.dom.Paper.add(o);var a=o.bbox();return n||(a=o.node.getBoundingClientRect()),o.remove(),{width:a.width,height:a.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if("function"==typeof t.getComputedTextLength&&(t.textContent=e,e.length>0&&t.getComputedTextLength()>=i/1.1)){for(var s=e.length-3;s>0;s-=3)if(t.getSubStringLength(0,s)<=i/1.1)return void(t.textContent=e.substring(0,s)+"...");t.textContent="."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),t}(),S=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"getStackedSeriesTotals",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=this.w,i=[];if(0===e.globals.series.length)return i;for(var s=0;s<e.globals.series[e.globals.maxValsInArrayIndex].length;s++){for(var n=0,r=0;r<e.globals.series.length;r++)void 0!==e.globals.series[r][s]&&-1===t.indexOf(r)&&(n+=e.globals.series[r][s]);i.push(n)}return i}},{key:"getSeriesTotalByIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===t?this.w.config.series.reduce(function(t,e){return t+e},0):this.w.globals.series[t].reduce(function(t,e){return t+e},0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var t=this,e=this.w,i=[];return e.globals.seriesGroups.forEach(function(s){var n=[];e.config.series.forEach(function(t,e){s.indexOf(t.name)>-1&&n.push(e)});var r=e.globals.series.map(function(t,e){return-1===n.indexOf(e)?e:-1}).filter(function(t){return-1!==t});i.push(t.getStackedSeriesTotals(r))}),i}},{key:"isSeriesNull",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===t?this.w.config.series.filter(function(t){return null!==t}):this.w.config.series[t].data.filter(function(t){return null!==t})).length}},{key:"seriesHaveSameValues",value:function(t){return this.w.globals.series[t].every(function(t,e,i){return t===i[0]})}},{key:"getCategoryLabels",value:function(t){var e=this.w,i=t.slice();return e.config.xaxis.convertedCatToNumeric&&(i=t.map(function(t,i){return e.config.xaxis.labels.formatter(t-e.globals.minX+1)})),i}},{key:"getLargestSeries",value:function(){var t=this.w;t.globals.maxValsInArrayIndex=t.globals.series.map(function(t){return t.length}).indexOf(Math.max.apply(Math,t.globals.series.map(function(t){return t.length})))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,e=0;return t.globals.markers.size.forEach(function(t){e=Math.max(e,t)}),t.config.markers.discrete&&t.config.markers.discrete.length&&t.config.markers.discrete.forEach(function(t){e=Math.max(e,t.size)}),e>0&&(e+=t.config.markers.hover.sizeOffset+1),t.globals.markers.largestSize=e,e}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map(function(t,e){var i=0;if(Array.isArray(t))for(var s=0;s<t.length;s++)i+=t[s];else i+=t;return i})}},{key:"getSeriesTotalsXRange",value:function(t,e){var i=this.w;return i.globals.series.map(function(s,n){for(var r=0,o=0;o<s.length;o++)i.globals.seriesX[n][o]>t&&i.globals.seriesX[n][o]<e&&(r+=s[o]);return r})}},{key:"getPercentSeries",value:function(){var t=this.w;t.globals.seriesPercent=t.globals.series.map(function(e,i){var s=[];if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=t.globals.stackedSeriesTotals[n],o=0;r&&(o=100*e[n]/r),s.push(o)}else{var a=100*e/t.globals.seriesTotals.reduce(function(t,e){return t+e},0);s.push(a)}return s})}},{key:"getCalculatedRatios",value:function(){var t,e,i,s=this.w.globals,n=[],r=0,o=[],a=.1,l=0;if(s.yRange=[],s.isMultipleYAxis)for(var c=0;c<s.minYArr.length;c++)s.yRange.push(Math.abs(s.minYArr[c]-s.maxYArr[c])),o.push(0);else s.yRange.push(Math.abs(s.minY-s.maxY));s.xRange=Math.abs(s.maxX-s.minX),s.zRange=Math.abs(s.maxZ-s.minZ);for(var h=0;h<s.yRange.length;h++)n.push(s.yRange[h]/s.gridHeight);if(e=s.xRange/s.gridWidth,t=s.yRange/s.gridWidth,i=s.xRange/s.gridHeight,(r=s.zRange/s.gridHeight*16)||(r=1),s.minY!==Number.MIN_VALUE&&0!==Math.abs(s.minY)&&(s.hasNeg
vendor: 5,082 bytes, line 2
2s=!0),s.isMultipleYAxis){o=[];for(var d=0;d<n.length;d++)o.push(-s.minYArr[d]/n[d])}else o.push(-s.minY/n[0]),s.minY!==Number.MIN_VALUE&&0!==Math.abs(s.minY)&&(a=-s.minY/t,l=s.minX/e);return{yRatio:n,invertedYRatio:t,zRatio:r,xRatio:e,invertedXRatio:i,baseLineInvertedY:a,baseLineY:o,baseLineX:l}}},{key:"getLogSeries",value:function(t){var e=this,i=this.w;return i.globals.seriesLog=t.map(function(t,s){return i.config.yaxis[s]&&i.config.yaxis[s].logarithmic?t.map(function(t){return null===t?null:e.getLogVal(i.config.yaxis[s].logBase,t,s)}):t}),i.globals.invalidLogScale?t:i.globals.seriesLog}},{key:"getBaseLog",value:function(t,e){return Math.log(e)/Math.log(t)}},{key:"getLogVal",value:function(t,e,i){if(0===e)return 0;var s=this.w,n=0===s.globals.minYArr[i]?-1:this.getBaseLog(t,s.globals.minYArr[i]),r=(0===s.globals.maxYArr[i]?0:this.getBaseLog(t,s.globals.maxYArr[i]))-n;return e<1?e/r:(this.getBaseLog(t,e)-n)/r}},{key:"getLogYRatios",value:function(t){var e=this,i=this.w,s=this.w.globals;return s.yLogRatio=t.slice(),s.logYRange=s.yRange.map(function(t,n){if(i.config.yaxis[n]&&e.w.config.yaxis[n].logarithmic){var r,o=-Number.MAX_VALUE,a=Number.MIN_VALUE;return s.seriesLog.forEach(function(t,e){t.forEach(function(t){i.config.yaxis[e]&&i.config.yaxis[e].logarithmic&&(o=Math.max(t,o),a=Math.min(t,a))})}),r=Math.pow(s.yRange[n],Math.abs(a-o)/s.yRange[n]),s.yLogRatio[n]=r/s.gridHeight,r}}),s.invalidLogScale?t.slice():s.yLogRatio}}],[{key:"checkComboSeries",value:function(t){var e=!1,i=0,s=0;return t.length&&void 0!==t[0].type&&t.forEach(function(t){"bar"!==t.type&&"column"!==t.type&&"candlestick"!==t.type&&"boxPlot"!==t.type||i++,void 0!==t.type&&s++}),s>0&&(e=!0),{comboBarCount:i,comboCharts:e}}},{key:"extendArrayProps",value:function(t,e,i){return e.yaxis&&(e=t.extendYAxis(e,i)),e.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),e.annotations.xaxis&&(e=t.extendXAxisAnnotations(e)),e.annotations.points&&(e=t.extendPointAnnotations(e))),e}}]),t}(),k=function(){function t(e){r(this,t),this.w=e.w,this.annoCtx=e}return a(t,[{key:"setOrientations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;if("vertical"===t.label.orientation){var s=null!==e?e:0,n=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(s,"']"));if(null!==n){var r=n.getBoundingClientRect();n.setAttribute("x",parseFloat(n.getAttribute("x"))-r.height+4),"top"===t.label.position?n.setAttribute("y",parseFloat(n.getAttribute("y"))+r.width):n.setAttribute("y",parseFloat(n.getAttribute("y"))-r.width);var o=this.annoCtx.graphics.rotateAroundCenter(n),a=o.x,l=o.y;n.setAttribute("transform","rotate(-90 ".concat(a," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w;if(!t||void 0===e.label.text||void 0!==e.label.text&&!String(e.label.text).trim())return null;var s=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),n=t.getBoundingClientRect(),r=e.label.style.padding.left,o=e.label.style.padding.right,a=e.label.style.padding.top,l=e.label.style.padding.bottom;"vertical"===e.label.orientation&&(a=e.label.style.padding.left,l=e.label.style.padding.right,r=e.label.style.padding.top,o=e.label.style.padding.bottom);var c=n.left-s.left-r,h=n.top-s.top-a,d=this.annoCtx.graphics.drawRect(c-i.globals.barPadForNumericAxis,h,n.width+r+o,n.height+a+l,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0);return e.id&&d.node.classList.add(e.id),d}},{key:"annotationsBackground",value:function(){var t=this,e=this.w,i=function(i,s,n){var r=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-annotations .apexcharts-").concat(n,"-annotation-label[rel='").concat(s,"']"));if(r){var o=r.parentNode,a=t.addBackgroundToAnno(r,i);a&&(o.insertBefore(a.node,r),i.label.mouseEnter&&a.node.addEventListener("mouseenter",i.label.mouseEnter.bind(t,i)),i.label.mouseLeave&&a.node.addEventListener("mouseleave",i.label.mouseLeave.bind(t,i)),i.label.click&&a.node.addEventListener("click",i.label.click.bind(t,i)))}};e.config.annotations.xaxis.map(function(t,e){i(t,e,"xaxis")}),e.config.annotations.yaxis.map(function(t,e){i(t,e,"yaxis")}),e.config.annotations.points.map(function(t,e){i(t,e,"point")})}},{key:"getY1Y2",value:function(t,e){var i,s="y1"===t?e.y:e.y2,n=this.w;if(this.annoCtx.invertAxis){var r=n.globals.labels.indexOf(s);n.config.xaxis.convertedCatToNumeric&&(r=n.globals.categoryLabels.indexOf(s));var o=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(r+1)+")");o&&(i=parseFloat(o.getAttribute("y"))),void 0!==e.seriesIndex&&n.globals.barHeight&&(i=i-n.globals.barHeight/2*(n.globals.series.length-1)+n.globals.barHeight*e.seriesIndex)}else{var a;a=n.config.yaxis[e.yAxisIndex].logarithmic?(s=new S(this.annoCtx.ctx).getLogVal(s,e.yAxisIndex))/n.globals.yLogRatio[e.yAxisIndex]:(s-n.globals.minYArr[e.yAxisIndex])/(n.globals.yRange[e.yAxisIndex]/n.globals.gridHeight),i=n.globals.gridHeight-a,!e.marker||void 0!==e.y&&null!==e.
vendor: 13,393 bytes, line 2
2y||(i=0),n.config.yaxis[e.yAxisIndex]&&n.config.yaxis[e.yAxisIndex].reversed&&(i=a)}return"string"==typeof s&&s.indexOf("px")>-1&&(i=parseFloat(s)),i}},{key:"getX1X2",value:function(t,e){var i=this.w,s=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,n=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,r=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,o=(e.x-s)/(r/i.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(o=(n-e.x)/(r/i.globals.gridWidth)),"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(o=this.getStringX(e.x));var a=(e.x2-s)/(r/i.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(a=(n-e.x2)/(r/i.globals.gridWidth)),"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(a=this.getStringX(e.x2)),void 0!==e.x&&null!==e.x||!e.marker||(o=i.globals.gridWidth),"x1"===t&&"string"==typeof e.x&&e.x.indexOf("px")>-1&&(o=parseFloat(e.x)),"x2"===t&&"string"==typeof e.x2&&e.x2.indexOf("px")>-1&&(a=parseFloat(e.x2)),void 0!==e.seriesIndex&&i.globals.barWidth&&!this.annoCtx.invertAxis&&(o=o-i.globals.barWidth/2*(i.globals.series.length-1)+i.globals.barWidth*e.seriesIndex),"x1"===t?o:a}},{key:"getStringX",value:function(t){var e=this.w,i=t;e.config.xaxis.convertedCatToNumeric&&e.globals.categoryLabels.length&&(t=e.globals.categoryLabels.indexOf(t)+1);var s=e.globals.labels.indexOf(t),n=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(s+1)+")");return n&&(i=parseFloat(n.getAttribute("x"))),i}}]),t}(),C=function(){function t(e){r(this,t),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new k(this.annoCtx)}return a(t,[{key:"addXaxisAnnotation",value:function(t,e,i){var s,n=this.w,r=this.helpers.getX1X2("x1",t),o=t.label.text,a=t.strokeDashArray;if(b.isNumber(r)){if(null===t.x2||void 0===t.x2){var l=this.annoCtx.graphics.drawLine(r+t.offsetX,0+t.offsetY,r+t.offsetX,n.globals.gridHeight+t.offsetY,t.borderColor,a,t.borderWidth);e.appendChild(l.node),t.id&&l.node.classList.add(t.id)}else{if((s=this.helpers.getX1X2("x2",t))<r){var c=r;r=s,s=c}var h=this.annoCtx.graphics.drawRect(r+t.offsetX,0+t.offsetY,s-r,n.globals.gridHeight+t.offsetY,0,t.fillColor,t.opacity,1,t.borderColor,a);h.node.classList.add("apexcharts-annotation-rect"),h.attr("clip-path","url(#gridRectMask".concat(n.globals.cuid,")")),e.appendChild(h.node),t.id&&h.node.classList.add(t.id)}var d=this.annoCtx.graphics.getTextRects(o,parseFloat(t.label.style.fontSize)),u="top"===t.label.position?4:"center"===t.label.position?n.globals.gridHeight/2+("vertical"===t.label.orientation?d.width/2:0):n.globals.gridHeight,p=this.annoCtx.graphics.drawText({x:r+t.label.offsetX,y:u+t.label.offsetY-("vertical"===t.label.orientation?"top"===t.label.position?d.width/2-12:-d.width/2:0),text:o,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});p.attr({rel:i}),e.appendChild(p.node),this.annoCtx.helpers.setOrientations(t,i)}}},{key:"drawXAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return e.config.annotations.xaxis.map(function(e,s){t.addXaxisAnnotation(e,i.node,s)}),i}}]),t}(),A=function(){function t(e){r(this,t),this.w=e.w,this.annoCtx=e,this.helpers=new k(this.annoCtx)}return a(t,[{key:"addYaxisAnnotation",value:function(t,e,i){var s,n=this.w,r=t.strokeDashArray,o=this.helpers.getY1Y2("y1",t),a=t.label.text;if(null===t.y2||void 0===t.y2){var l=this.annoCtx.graphics.drawLine(0+t.offsetX,o+t.offsetY,this._getYAxisAnnotationWidth(t),o+t.offsetY,t.borderColor,r,t.borderWidth);e.appendChild(l.node),t.id&&l.node.classList.add(t.id)}else{if((s=this.helpers.getY1Y2("y2",t))>o){var c=o;o=s,s=c}var h=this.annoCtx.graphics.drawRect(0+t.offsetX,s+t.offsetY,this._getYAxisAnnotationWidth(t),o-s,0,t.fillColor,t.opacity,1,t.borderColor,r);h.node.classList.add("apexcharts-annotation-rect"),h.attr("clip-path","url(#gridRectMask".concat(n.globals.cuid,")")),e.appendChild(h.node),t.id&&h.node.classList.add(t.id)}var d="right"===t.label.position?n.globals.gridWidth:"center"===t.label.position?n.globals.gridWidth/2:0,u=this.annoCtx.graphics.drawText({x:d+t.label.offsetX,y:(s??o)+t.label.offsetY-3,text:a,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});u.attr({rel:i}),e.appendChild(u.node)}},{key:"_getYAxisAnnotationWidth",value:function(t){var e=this.w;return e.globals.gridWidth,(t.width.indexOf("%")>-1?e.globals.gridWidth*parseInt(t.width,10)/100:parseInt(t.width,10))+t.offsetX}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.map(function(e,s){t.addYaxisAnnotation(e,i.node,s)}),i}}]),t}(),E=function(){function t(e){r(this,t),this.w=e.w,this.annoCtx=e,this.helpers=new k(this.annoCtx)}return a(t,[{key:"addPointAnnotation",value:function(t,e,i){this.w;var s=this.helpers.getX1X2("x1",t),n=this.helpers.getY1Y2("y1",t);if(b.isNumber(s)){var r={pSize:t.marker.size,pointStrokeWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,pRadius:t.marker.radius,class:"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id?t.id:"")},o=this.annoCtx.graphics.drawMarker(s+t.marker.offsetX,n+t.marker.offsetY,r);e.appendChild(o.node);var a=t.label.text?t.label.text:"",l=this.annoCtx.graphics.drawText({x:s+t.label.offsetX,y:n+t.label.offsetY-t.marker.size-parseFloat(t.label.style.fontSize)/1.6,text:a,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});if(l.attr({rel:i}),e.appendChild(l.node),t.customSVG.SVG){var c=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});c.attr({transform:"translate(".concat(s+t.customSVG.offsetX,", ").concat(n+t.customSVG.offsetY,")")}),c.node.innerHTML=t.customSVG.SVG,e.appendChild(c.node)}if(t.image.path){var h=t.image.width?t.image.width:20,d=t.image.height?t.image.height:20;o=this.annoCtx.addImage({x:s+t.image.offsetX-h/2,y:n+t.image.offsetY-d/2,width:h,height:d,path:t.image.path,appendTo:".apexcharts-point-annotations"})}t.mouseEnter&&o.node.addEventListener("mouseenter",t.mouseEnter.bind(this,t)),t.mouseLeave&&o.node.addEventListener("mouseleave",t.mouseLeave.bind(this,t)),t.click&&o.node.addEventListener("click",t.click.bind(this,t))}}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map(function(e,s){t.addPointAnnotation(e,i.node,s)}),i}}]),t}(),M={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},T=function(){function t(){r(this,t),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return a(t,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[M],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(t){return new Date(t).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}}
vendor: 4,324 bytes, line 2
2,heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce(function(t,e){return t+e},0)/t.globals.series.length+"%"}}},barLabels:{enabled:!1,margin:5,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(t){return t},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce(function(t,e){return t+e},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(t){return null!==t?t:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}}
vendor: 9,322 bytes, line 2
2,noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(t){return t?t+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),t}(),P=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.graphics=new w(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new k(this),this.xAxisAnnotations=new C(this),this.yAxisAnnotations=new A(this),this.pointsAnnotations=new E(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return a(t,[{key:"drawAxesAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts){for(var e=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),s=this.pointsAnnotations.drawPointAnnotations(),n=t.config.chart.animations.enabled,r=[e,i,s],o=[i.node,e.node,s.node],a=0;a<3;a++)t.globals.dom.elGraphical.add(r[a]),!n||t.globals.resized||t.globals.dataChanged||"scatter"!==t.config.chart.type&&"bubble"!==t.config.chart.type&&t.globals.dataPoints>1&&o[a].classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:o[a],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var t=this;this.w.config.annotations.images.map(function(e,i){t.addImage(e,i)})}},{key:"drawTextAnnos",value:function(){var t=this;this.w.config.annotations.texts.map(function(e,i){t.addText(e,i)})}},{key:"addXaxisAnnotation",value:function(t,e,i){this.xAxisAnnotations.addXaxisAnnotation(t,e,i)}},{key:"addYaxisAnnotation",value:function(t,e,i){this.yAxisAnnotations.addYaxisAnnotation(t,e,i)}},{key:"addPointAnnotation",value:function(t,e,i){this.pointsAnnotations.addPointAnnotation(t,e,i)}},{key:"addText",value:function(t,e){var i=t.x,s=t.y,n=t.text,r=t.textAnchor,o=t.foreColor,a=t.fontSize,l=t.fontFamily,c=t.fontWeight,h=t.cssClass,d=t.backgroundColor,u=t.borderWidth,p=t.strokeDashArray,f=t.borderRadius,g=t.borderColor,m=t.appendTo,x=void 0===m?".apexcharts-svg":m,b=t.paddingLeft,y=void 0===b?4:b,v=t.paddingRight,w=void 0===v?4:v,S=t.paddingBottom,k=void 0===S?2:S,C=t.paddingTop,A=void 0===C?2:C,E=this.w,M=this.graphics.drawText({x:i,y:s,text:n,textAnchor:r||"start",fontSize:a||"12px",fontWeight:c||"regular",fontFamily:l||E.config.chart.fontFamily,foreColor:o||E.config.chart.foreColor,cssClass:h}),T=E.globals.dom.baseEl.querySelector(x);T&&T.appendChild(M.node);var P=M.bbox();if(n){var O=this.graphics.drawRect(P.x-y,P.y-A,P.width+y+w,P.height+k+A,f,d||"transparent",1,u,g,p);T.insertBefore(O.node,M.node)}}},{key:"addImage",value:function(t,e){var i=this.w,s=t.path,n=t.x,r=void 0===n?0:n,o=t.y,a=void 0===o?0:o,l=t.width,c=void 0===l?20:l,h=t.height,d=void 0===h?20:h,u=t.appendTo,p=void 0===u?".apexcharts-svg":u,f=i.globals.dom.Paper.image(s);f.size(c,d).move(r,a);var g=i.globals.dom.baseEl.querySelector(p);return g&&g.appendChild(f.node),f}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(t,e,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var e=t.params,i=t.pushToMemory,s=t.context,n=t.type,r=t.contextMethod,o=s,a=o.w,l=a.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-annotations")),c=l.childNodes.length+1,h=new T,d=Object.assign({},"xaxis"===n?h.xAxisAnnotation:"yaxis"===n?h.yAxisAnnotation:h.pointAnnotation),u=b.extend(d,e);switch(n){case"xaxis":this.addXaxisAnnotation(u,l,c);break;case"yaxis":this.addYaxisAnnotation(u,l,c);break;case"point":this.addPointAnnotation(u,l,c)}var p=a.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-annotations .apexcharts-").concat(n,"-annotation-label[rel='").concat(c,"']")),f=this.helpers.addBackgroundToAnno(p,u);return f&&l.insertBefore(f.node,p),i&&a.globals.memory.methodsToExec.push({context:o,id:u.id?u.id:b.randomId(),method:r,label:"addAnnotation",params:e}),s}},{key:"clearAnnotations",value:function(t){var e=t.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");e.globals.memory.methodsToExec.map(function(t,i){"addText"!==t.label&&"addAnnotation"!==t.label||e.globals.memory.methodsToExec.splice(i,1)}),i=b.listToArray(i),Array.prototype.forEach.call(i,function(t){for(;t.firstChild;)t.removeChild(t.firstChild)})}},{key:"removeAnnotation",value:function(t,e){var i=t.w,s=i.globals.dom.baseEl.querySelectorAll(".".concat(e));s&&(i.globals.memory.methodsToExec.map(function(t,s){t.id===e&&i.globals.memory.methodsToExec.splice(s,1)}),Array.prototype.forEach.call(s,function(t){t.parentElement.removeChild(t)}))}}]),t}(),O=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return a(t,[{key:"isValidDate",value:function(t){return"number"!=typeof t&&!isNaN(this.parseDate(t))}},{key:"getTimeStamp",value:function(t){return Date.parse(t)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toISOString().substr(0,25)).getTime():new Date(t).getTime():t}},{key:"getDate",value:function(t){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toUTCString()):new Date(t)}},{key:"parseDate",value:function(t){var e=Date.parse(t);if(!isNaN(e))return this.getTimeStamp(t);var i=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(t){return Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(t,e){var i=this.w.globals.locale,s=this.w.config.xaxis.labels.datetimeUTC,n=["\0"].concat(g(i.months)),r=["�"].concat(g(i.shortMonths)),o=["�"].concat(g(i.days)),a=["�"].concat(g(i.shortDays));function l(t,e){var i=t+"";for(e=e||2;i.length<e;)i="0"+i;return i}var c=s?t.getUTCFullYear():t.getFullYear();e=(e=(e=e.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var h=(s?t.getUTCMonth():t.getMonth())+1;
vendor: 7,473 bytes, line 2
2e=(e=(e=(e=e.replace(/(^|[^\\])MMMM+/g,"$1"+n[0])).replace(/(^|[^\\])MMM/g,"$1"+r[0])).replace(/(^|[^\\])MM/g,"$1"+l(h))).replace(/(^|[^\\])M/g,"$1"+h);var d=s?t.getUTCDate():t.getDate();e=(e=(e=(e=e.replace(/(^|[^\\])dddd+/g,"$1"+o[0])).replace(/(^|[^\\])ddd/g,"$1"+a[0])).replace(/(^|[^\\])dd/g,"$1"+l(d))).replace(/(^|[^\\])d/g,"$1"+d);var u=s?t.getUTCHours():t.getHours(),p=u>12?u-12:0===u?12:u;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+l(u))).replace(/(^|[^\\])H/g,"$1"+u)).replace(/(^|[^\\])hh+/g,"$1"+l(p))).replace(/(^|[^\\])h/g,"$1"+p);var f=s?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+l(f))).replace(/(^|[^\\])m/g,"$1"+f);var m=s?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+l(m))).replace(/(^|[^\\])s/g,"$1"+m);var x=s?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+l(x,3)),x=Math.round(x/10),e=e.replace(/(^|[^\\])ff/g,"$1"+l(x)),x=Math.round(x/10);var b=u<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+x)).replace(/(^|[^\\])TT+/g,"$1"+b)).replace(/(^|[^\\])T/g,"$1"+b.charAt(0));var y=b.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+y)).replace(/(^|[^\\])t/g,"$1"+y.charAt(0));var v=-t.getTimezoneOffset(),w=s||!v?"Z":v>0?"+":"-";if(!s){var S=(v=Math.abs(v))%60;w+=l(Math.floor(v/60))+":"+l(S)}e=e.replace(/(^|[^\\])K/g,"$1"+w);var k=(s?t.getUTCDay():t.getDay())+1;return(e=(e=(e=(e=e.replace(new RegExp(o[0],"g"),o[k])).replace(new RegExp(a[0],"g"),a[k])).replace(new RegExp(n[0],"g"),n[h])).replace(new RegExp(r[0],"g"),r[h])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e,i){var s=this.w;void 0!==s.config.xaxis.min&&(t=s.config.xaxis.min),void 0!==s.config.xaxis.max&&(e=s.config.xaxis.max);var n=this.getDate(t),r=this.getDate(e),o=this.formatDate(n,"yyyy MM dd HH mm ss fff").split(" "),a=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(o[6],10),maxMillisecond:parseInt(a[6],10),minSecond:parseInt(o[5],10),maxSecond:parseInt(a[5],10),minMinute:parseInt(o[4],10),maxMinute:parseInt(a[4],10),minHour:parseInt(o[3],10),maxHour:parseInt(a[3],10),minDate:parseInt(o[2],10),maxDate:parseInt(a[2],10),minMonth:parseInt(o[1],10)-1,maxMonth:parseInt(a[1],10)-1,minYear:parseInt(o[0],10),maxYear:parseInt(a[0],10)}}},{key:"isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"calculcateLastDaysOfMonth",value:function(t,e,i){return this.determineDaysOfMonths(t,e)-i}},{key:"determineDaysOfYear",value:function(t){var e=365;return this.isLeapYear(t)&&(e=366),e}},{key:"determineRemainingDaysOfYear",value:function(t,e,i){var s=this.daysCntOfYear[e]+i;return e>1&&this.isLeapYear()&&s++,s}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;switch(t=b.monthMod(t),!0){case this.months30.indexOf(t)>-1:2===t&&(i=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:i=31}return i}}]),t}(),L=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return a(t,[{key:"xLabelFormat",value:function(t,e,i,s){var n=this.w;if("datetime"===n.config.xaxis.type&&void 0===n.config.xaxis.labels.formatter&&void 0===n.config.tooltip.x.formatter){var r=new O(this.ctx);return r.formatDate(r.getDate(e),n.config.tooltip.x.format)}return t(e,i,s)}},{key:"defaultGeneralFormatter",value:function(t){return Array.isArray(t)?t.map(function(t){return t}):t}},{key:"defaultYFormatter",value:function(t,e,i){var s=this.w;return b.isNumber(t)&&(t=0!==s.globals.yValueDecimal?t.toFixed(void 0!==e.decimalsInFloat?e.decimalsInFloat:s.globals.yValueDecimal):s.globals.maxYArr[i]-s.globals.minYArr[i]<5?t.toFixed(1):t.toFixed(0)),t}},{key:"setLabelFormatters",value:function(){var t=this,e=this.w;return e.globals.xaxisTooltipFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttKeyFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttZFormatter=function(t){return t},e.globals.legendFormatter=function(e){return t.defaultGeneralFormatter(e)},void 0!==e.config.xaxis.labels.formatter?e.globals.xLabelFormatter=e.config.xaxis.labels.formatter:e.globals.xLabelFormatter=function(t){if(b.isNumber(t)){if(!e.config.xaxis.convertedCatToNumeric&&"numeric"===e.config.xaxis.type){if(b.isNumber(e.config.xaxis.decimalsInFloat))return t.toFixed(e.config.xaxis.decimalsInFloat);var i=e.globals.maxX-e.globals.minX;return i>0&&i<100?t.toFixed(1):t.toFixed(0)}return e.globals.isBarHorizontal&&e.globals.maxY-e.globals.minYArr<4?t.toFixed(1):t.toFixed(0)}return t},"function"==typeof e.config.tooltip.x.formatter?e.globals.ttKeyFormatter=e.config.tooltip.x.formatter:e.globals.ttKeyFormatter=e.globals.xLabelFormatter,"function"==typeof e.config.xaxis.tooltip.formatter&&(e.globals.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||void 0!==e.config.tooltip.y.formatter)&&(e.globals.ttVal=e.config.tooltip.y),void 0!==e.config.tooltip.z.formatter&&(e.globals.ttZFormatter=e.config.tooltip.z.formatter),void 0!==e.config.legend.formatter&&(e.globals.legendFormatter=e.config.legend.formatter),e.config.yaxis.forEach(function(i,s){void 0!==i.labels.formatter?e.globals.yLabelFormatters[s]=i.labels.formatter:e.globals.yLabelFormatters[s]=function(n){return e.globals.xyCharts?Array.isArray(n)?n.map(function(e){return t.defaultYFormatter(e,i,s)}):t.defaultYFormatter(n,i,s):n}}),e.globals}},{key:"heatmapLabelFormatters",value:function(){var t=this.w;if("heatmap"===t.config.chart.type){t.globals.yAxisScale[0].result=t.globals.seriesNames.slice();var e=t.globals.seriesNames.reduce(function(t,e){return t.length>e.length?t:e},0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}}]),t}(),_=function(t){var e,i=t.isTimeline,s=t.ctx,n=t.seriesIndex,r=t.dataPointIndex,o=t.y1,a=t.y2,l=t.w,c=l.globals.seriesRangeStart[n][r],h=l.globals.seriesRangeEnd[n][r],d=l.globals.labels[r],u=l.config.series[n].name?l.config.series[n].name:"",p=l.globals.ttKeyFormatter,f=l.config.tooltip.y.title.formatter,g={w:l,seriesIndex:n,dataPointIndex:r,start:c,end:h};"function"==typeof f&&(u=f(u,g)),null!==(e=l.config.series[n].data[r])&&void 0!==e&&e.x&&(d=l.config.series[n].data[r].x),i||"datetime"===l.config.xaxis.type&&(d=new L(s).xLabelFormat(l.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new O(s).formatDate,w:l})),"function"==typeof p&&(d=p(d,g)),Number.isFinite(o)&&Number.isFinite(a)&&(c=o,h=a);var m="",x="",b=l.globals.colors[n];if(void 0===l.config.tooltip.x.formatter)if("datetime"===l.config.xaxis.type){var y=new O(s);m=y.formatDate(y.getDate(c),l.config.tooltip.x.format),x=y.formatDate(y.getDate(h),l.config.tooltip.x.format)}else m=c,x=h;else m=l.config.tooltip.x.formatter(c),x=l.config.tooltip.x.formatter(h);return{start:c,end:h,startVal:m,endVal:x,ylabel:d,color:b,seriesName:u}},I=function(t){var e=t.color,i=t.seriesName,s=t.ylabel,n=t.start,r=t.end,o=t.seriesIndex,a=t.dataPointIndex,l=t.ctx.tooltip.tooltipLabels.getFormatters(o);n=l.yLbFormatter(n),r=l.yLbFormatter(r);var c=l.yLbFormatter(t.w.globals.series[o][a]),h='<span class="value start-value">\n  '.concat(n,'\n  </span> <span class="separator">-</span> <span class="value end-value">\n  ').concat(r,"\n  </span>");return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+e+'">'+(i||"")+'</span></div><div> <span class="category">'+s+": </span> "+(t.w.globals.comboCharts?"rangeArea"===t.w.config.series[o].type||"rangeBar"===t.w.config.series[o].type?h:"<sp
2an>".concat(c,"</span>"):h)+" </div></div>"},D=function(){function t(e){r(this,t),this.opts=e}return a(t,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){return this.hideYAxis(),b.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),s(s({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var t=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,s=e.dataPointIndex,n=e.w;return t._getBoxTooltip(n,i,s,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var t=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,s=e.dataPointIndex,n=e.w;return t._getBoxTooltip(n,i,s,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(t,e){e.ctx;var i=e.seriesIndex,s=e.dataPointIndex,n=e.w,r=function(){var t=n.globals.seriesRangeStart[i][s];return n.globals.seriesRangeEnd[i][s]-t};return n.globals.comboCharts?"rangeBar"===n.config.series[i].type||"rangeArea"===n.config.series[i].type?r():t:r()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?(i=_(s(s({},e=t),{},{isTimeline:!0})),n=i.color,r=i.seriesName,o=i.ylabel,a=i.startVal,l=i.endVal,I(s(s({},e),{},{color:n,seriesName:r,ylabel:o,start:a,end:l}))):function(t){var e=_(t),i=e.color,n=e.seriesName,r=e.ylabel,o=e.start,a=e.end;return I(s(s({},t),{},{color:i,seriesName:n,ylabel:r,start:o,end:a}))}(t);var e,i,n,r,o,a,l}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(t){var e,i;return null!==(e=t.plotOptions.bar)&&void 0!==e&&e.barHeight||(t.plotOptions.bar.barHeight=2),null!==(i=t.plotOptions.bar)&&void 0!==i&&i.columnWidth||(t.plotOptions.bar.columnWidth=2),t}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(t){return i=_(e=t),n=i.color,r=i.seriesName,o=i.ylabel,a=i.start,l=i.end,I(s(s({},e),{},{color:n,seriesName:r,ylabel:o,start:a,end:l}));var e,i,n,r,o,a,l}}}}},{key:"brush",value:function(t){return b.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;var e=t.dataLabels.formatter;return t.yaxis.forEach(function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100}),"bar"===t.chart.type&&(t.dataLabels.formatter=e||function(t){return"number"==typeof t&&t?t.toFixed(0)+"%":t}),t}},{key:"stackedBars",value:function(){var t=this.bar();return s(s({},t),{},{plotOptions:s(s({},t.plotOptions),{},{bar:s(s({},t.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(t){return t.xaxis.convertedCatToNumeric=!0,t}}
vendor: 22,487 bytes, line 2
2,{key:"convertCatToNumericXaxis",value:function(t,e,i){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(t){return b.isNumber(t)?Math.floor(t):t};var s=t.xaxis.labels.formatter,n=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(n=i.map(function(t){return Array.isArray(t)?t:String(t)})),n&&n.length&&(t.xaxis.labels.formatter=function(t){return b.isNumber(t)?s(n[Math.floor(t)-1]):s(t)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(t){return t},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(t,e,i,s,n){var r=t.globals.seriesCandleO[e][i],o=t.globals.seriesCandleH[e][i],a=t.globals.seriesCandleM[e][i],l=t.globals.seriesCandleL[e][i],c=t.globals.seriesCandleC[e][i];return t.config.series[e].type&&t.config.series[e].type!==n?'<div class="apexcharts-custom-tooltip">\n          '.concat(t.config.series[e].name?t.config.series[e].name:"series-"+(e+1),": <strong>").concat(t.globals.series[e][i],"</strong>\n        </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(t.config.chart.type,'">')+"<div>".concat(s[0],': <span class="value">')+r+"</span></div>"+"<div>".concat(s[1],': <span class="value">')+o+"</span></div>"+(a?"<div>".concat(s[2],': <span class="value">')+a+"</span></div>":"")+"<div>".concat(s[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(s[4],': <span class="value">')+c+"</span></div></div>"}}]),t}(),R=function(){function t(e){r(this,t),this.opts=e}return a(t,[{key:"init",value:function(t){var e=t.responsiveOverride,i=this.opts,s=new T,r=new D(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var o=s.init(),a={};if(i&&"object"===n(i)){var l,c,h,d,u,p,f,g,m={};m=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)?r[i.chart.type]():r.line(),null!==(l=i.plotOptions)&&void 0!==l&&null!==(c=l.bar)&&void 0!==c&&c.isFunnel&&(m=r.funnel()),i.chart.stacked&&"bar"===i.chart.type&&(m=r.stackedBars()),null!==(h=i.chart.brush)&&void 0!==h&&h.enabled&&(m=r.brush(m)),i.chart.stacked&&"100%"===i.chart.stackType&&(i=r.stacked100(i)),null!==(d=i.plotOptions)&&void 0!==d&&null!==(u=d.bar)&&void 0!==u&&u.isDumbbell&&(i=r.dumbbell(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},e||(i.xaxis.convertedCatToNumeric=!1),(null!==(p=(i=this.checkForCatToNumericXAxis(this.chartType,m,i)).chart.sparkline)&&void 0!==p&&p.enabled||null!==(f=window.Apex.chart)&&void 0!==f&&null!==(g=f.sparkline)&&void 0!==g&&g.enabled)&&(m=r.sparkline(m)),a=b.extend(o,m)}var x=b.extend(a,window.Apex);return o=b.extend(x,i),this.handleUserInputErrors(o)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var s,n,r=new D(i),o=("bar"===t||"boxPlot"===t)&&(null===(s=i.plotOptions)||void 0===s||null===(n=s.bar)||void 0===n?void 0:n.horizontal),a="pie"===t||"polarArea"===t||"donut"===t||"radar"===t||"radialBar"===t||"heatmap"===t,l="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,c=i.xaxis.tickPlacement?i.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement;return o||a||!l||"between"===c||(i=r.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(t,e){var i=new T;(void 0===t.yaxis||!t.yaxis||Array.isArray(t.yaxis)&&0===t.yaxis.length)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=b.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[b.extend(i.yAxis,t.yaxis)]:t.yaxis=b.extendArray(t.yaxis,i.yAxis);var s=!1;t.yaxis.forEach(function(t){t.logarithmic&&(s=!0)});var n=t.series;return e&&!n&&(n=e.config.series),s&&n.length!==t.yaxis.length&&n.length&&(t.yaxis=n.map(function(e,s){if(e.name||(n[s].name="series-".concat(s+1)),t.yaxis[s])return t.yaxis[s].seriesName=n[s].name,t.yaxis[s];var r=b.extend(i.yAxis,t.yaxis[0]);return r.show=!1,r})),s&&n.length>1&&n.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),t}},{key:"extendAnnotations",value:function(t){return void 0===t.annotations&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),this.extendPointAnnotations(t)}},{key:"extendYAxisAnnotations",value:function(t){var e=new T;return t.annotations.yaxis=b.extendArray(void 0!==t.annotations.yaxis?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new T;return t.annotations.xaxis=b.extendArray(void 0!==t.annotations.xaxis?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new T;return t.annotations.points=b.extendArray(void 0!==t.annotations.points?t.annotations.points:[],e.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&"dark"===t.theme.mode&&(t.tooltip||(t.tooltip={}),"light"!==t.tooltip.theme&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.chart.background||(t.chart.background="#424242"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){var e=t;if(e.tooltip.shared&&e.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===e.chart.type&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return"bar"!==e.chart.type&&"rangeBar"!==e.chart.type||e.tooltip.shared&&"barWidth"===e.xaxis.crosshairs.width&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),"candlestick"!==e.chart.type&&"boxPlot"!==e.chart.type||e.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(e.chart.type," chart is not supported.")),e.yaxis[0].reversed=!1),e}}]),t}(),N=function(){function t(){r(this,t)}return a(t,[{key:"initGlobalVars",value:function(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRange=[],t.seriesPercent=[],t.seriesGoals=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.seriesLog=[],t.seriesColors=[],t.stackedSeriesTotals=[],t.seriesXvalues=[],t.seriesYvalues=[],t.labels=[],t.hasXaxisGroups=!1,t.groups=[],t.hasSeriesGroups=!1,t.seriesGroups=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],t.isXNumeric=!1,t.skipLastTimelinelabel=!1,t.skipFirstTimelinelabel=!1,t.isDataXYZ=!1,t.isMultiLineX=!1,t.isMultipleYAxis=!1,t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE,t.minYArr=[],t.maxYArr=[],t.maxX=-Number.MAX_VALUE,t.minX=Number.MAX_VALUE,t.initialMaxX=-Number.MAX_VALUE,t.initialMinX=Number.MAX_VALUE,t.maxDate=0,t.minDate=Number.MAX_VALUE,t.minZ=Number.MAX_VALUE,t.maxZ=-Number.MAX_VALUE,t.minXDiff=Number.MAX_VALUE,t.yAxisScale=[],t.xAxisScale=null,t.xAxisTicksPositions=[],t.yLabelsCoords=[],t.yTitleCoords=[],t.barPadForNumericAxis=0,t.padHorizontal=0,t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0}},{key:"globalVars",value:function(t){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:t.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:"pan"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.pan,selectionEnabled:"selection"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(t){var e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=b.extend({},t),e.initialSeries=b.clone(t.series),e.lastXAxis=b.clone(e.initialConfig.xaxis),e.lastYAxis=b.clone(e.initialConfig.yaxis),e}}]),t}(),B=function(){function t(e){r(this,t),this.opts=e}return a(t,[{key:"init",value:function(){var t=new R(this.opts).init({responsiveOverride:!1});return{config:t,globals:(new N).init(t)}}}]),t}(),j=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0}return a(t,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,s=parseInt(e.globals.gridWidth,10),n=parseInt(e.globals.gridHeight,10),r=s>n?s:n,o=t.image,a=0,l=0;void 0===t.width&&void 0===t.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(a=i.fill.image.width+1,l=i.fill.image.height):(a=r+1,l=r):(a=t.width,l=t.height);var c=document.createElementNS(e.globals.SVGNS,"pattern");w.setAttrs(c,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:a+"px",height:l+"px"});var h=document.createElementNS(e.globals.SVGNS,"image");c.appendChild(h),h.setAttributeNS(window.SVG.xlink,"href",o),w.setAttrs(h,{x:0,y:0,preserveAspectRatio:"none",width:a+"px",height:l+"px"}),h.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(t){var e=this.w,i=e.config.chart.type;return("bar"===i||"rangeBar"===i)&&e.config.plotOptions.bar.distributed||"heatmap"===i||"treemap"===i?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t){var e=this.w;this.opts=t;var i,s,n,r=this.w.config;this.seriesIndex=this.getSeriesIndex(t);var o=this.getFillColors()[this.seriesIndex];void 0!==e.globals.seriesColors[this.seriesIndex]&&(o=e.globals.seriesColors[this.seriesIndex]),"function"==typeof o&&(o=o({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:e}));var a=t.fillType?t.fillType:this.getFillType(this.seriesIndex),l=Array.isArray(r.fill.opacity)?r.fill.opacity[this.seriesIndex]:r.fill.opacity;t.color&&(o=t.color),o||(o="#fff",console.warn("undefined color - ApexCharts"));var c=o;if(-1===o.indexOf("rgb")?o.length<9&&(c=b.hexToRgba(o,l)):o.indexOf("rgba")>-1&&(l=b.getOpacityFromRGBA(o)),t.opacity&&(l=t.opacity),"pattern"===a&&(s=this.handlePatternFill({fillConfig:t.fillConfig,patternFill:s,fillColor:o,fillOpacity:l,defaultColor:c})),"gradient"===a&&(n=this.handleGradientFill({fillConfig:t.fillConfig,fillColor:o,fillOpacity:l,i:this.seriesIndex})),"image"===a){var h=r.fill.image.src,d=t.patternID?t.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(h)?t.seriesNumber<h.length?h[t.seriesNumber]:h[0]:h,width:t.width?t.width:void 0,height:t.height?t.height:void 0,patternUnits:t.patternUnits,patternID:"pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(d)}),i="url(#pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(d,")")}else i="gradient"===a?n:"pattern"===a?s:c;return t.solid&&(i=c),i}},{key:"getFillType",value:function(t){var e=this.w;return Array.isArray(e.config.fill.type)?e.config.fill.type[t]:e.config.fill.type}},{key:"getFillColors",value:function(){var t=this.w,e=t.config,i=this.opts,s=[];return t.globals.comboCharts?"line"===t.config.series[this.seriesIndex].type?Array.isArray(t.globals.stroke.colors)?s=t.globals.stroke.colors:s.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?s=t.globals.fill.colors:s.push(t.globals.fill.colors):"line"===e.chart.type?Array.isArray(t.globals.stroke.colors)?s=t.globals.stroke.colors:s.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?s=t.globals.fill.colors:s.push(t.globals.fill.colors),void 0!==i.fillColors&&(s=[],Array.isArray(i.fillColors)?s=i.fillColors.slice():s.push(i.fillColors)),s}},{key:"handlePatternFill",value:function(t){var e=t.fillConfig,i=(t.patternFill,t.fillColor),s=t.fillOpacity,n=t.defaultColor,r=this.w.config.fill;e&&(r=e);var o=this.opts,a=new w(this.ctx),l=Array.isArray(r.pattern.strokeWidth)?r.pattern.strokeWidth[this.seriesIndex]:r.pattern.strokeWidth,c=i;return Array.isArray(r.pattern.style)?void 0!==r.pattern.style[o.seriesNumber]?a.drawPattern(r.pattern.style[o.seriesNumber],r.pattern.width,r.pattern.height,c,l,s):n:a.drawPattern(r.pattern.style,r.pattern.width,r.pattern.height,c,l,s)}},{key:"handleGradientFill",value:function(t){var e=t.fillColor,i=t.fillOpacity,n=t.fillConfig,r=t.i,o=this.w.config.fill;n&&(o=s(s({},o),n));var a,l=this.opts,c=new w(this.ctx),h=new b,d=o.gradient.type,u=e,p=void 0===o.gradient.opacityFrom?i:Array.isArray(o.gradient.opacityFrom)?o.gradient.opacityFrom[r]:o.gradient.opacityFrom;u.indexOf("rgba")>-1&&(p=b.getOpacityFromRGBA(u));var f=void 0===o.gradient.opacityTo?i:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[r]:o.gradient.opacityTo;if(void 0===o.gradient.gradientToColors||0===o.gradient.gradientToColors.length)a="dark"===o.gradient.shade?h.shadeColor(-1*parseFloat(o.gradient.shadeIntensity),e.indexOf("rgb")>-1?b.rgb2hex(e):e):h.shadeColor(parseFloat(o.gradient.shadeIntensity),e.indexOf("rgb")>-1?b.rgb2hex(e):e);else if(o.gradient.gradientToColors[l.seriesNumber]){var g=o.gradient.gradientToColors[l.seriesNumber];a=g,g.indexOf("rgba")>-1&&(f=b.getOpacityFromRGBA(g))}else a=e;if(o.gradient.gradientFrom&&(u=o.gradient.gradientFrom),o.gradient.gradientTo&&(a=o.gradient.gradientTo),o.gradient.inverseColors){var m=u;u=a,a=m}return u.indexOf("rgb")>-1&&(u=b.rgb2hex(u)),a.indexOf("rgb")>-1&&(a=b.rgb2hex(a)),c.drawGradient(d,u,a,p,f,l.size,o.gradient.stops,o.gradient.colorStops,r)}}]),t}(),F=function(){function t(e,i){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"setGlobalMarkerSize",value:function(){var t=this.w;if(t.globals.markers.size=Array.isArray(t.config.markers.size)?t.config.markers.size:[t.config.markers.size],t.globals.markers.size.length>0){if(t.globals.markers.size.length<t.globals.series.length+1)for(var e=0;e<=t.globals.series.length;e++)void 0===t.globals.markers.size[e]&&t.globals.markers.size.push(t.globals.markers.size[0])}else t.globals.markers.size=t.config.series.map(function(e){return t.config.markers.size})}},{key:"plotChartMarkers",value:function(t,e,i,s){var n,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.w,a=e,l=t,c=null,h=new w(this.ctx),d=o.config.markers.discrete&&o.config.markers.discrete.length;if((o.globals.markers.size[e]>0||r||d)&&(c=h.group({class:r||d?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(o.globals.cuid,")")),Array.isArray(l.x))for(var u=0;u<l.x.length;u++){var p=i;1===i&&0===u&&(p=0),1===i&&1===u&&(p=1);var f="apexcharts-marker";if("line"!==o.config.chart.type&&"area"!==o.config.chart.type||o.globals.comboCharts||o.config.tooltip.intersect||(f+=" no-pointer-events"),(Array.isArray(o.config.markers.size)?o.globals.markers.size[e]>0:o.config.markers.size>0)||r||d){b.isNumber(l.y[u])?f+=" w".concat(b.randomId()):f="apexcharts-nullpoint";var g=this.getMarkerConfig({cssClass:f,seriesIndex:e,dataPointIndex:p});o.config.series[a].data[p]&&(o.config.series[a].data[p].fillColor&&(g.pointFillColor=o.config.series[a].data[p].fillColor),o.config.series[a].data[p].strokeColor&&(g.pointStrokeColor=o.config.series[a].data[p].strokeColor)),s&&(g.pSize=s),(l.x[u]<0||l.x[u]>o.globals.gridWidth||l.y[u]<-o.globals.markers.largestSize||l.y[u]>o.globals.gridHeight+o.globals.markers.largestSize)&&(g.pSize=0),(n=h.drawMarker(l.x[u],l.y[u],g)).attr("rel",p),n.attr("j",p),n.attr("index",e),n.node.setAttribute("default-marker-size",g.pSize),new v(this.ctx).setSelectionFilter(n,e,p),this.addEvents(n),c&&c.add(n)}else void 0===o.globals.pointsArray[e]&&(o.globals.pointsArray[e]=[]),o.globals.pointsArray[e].push([l.x[u],l.y[u]])}return c}},{key:"getMarkerConfig",value:function(t){var e=t.cssClass,i=t.seriesIndex,s=t.dataPointIndex,n=void 0===s?null:s,r=t.finishRadius,o=void 0===r?null:r,a=this.w,l=this.getMarkerStyle(i),c=a.globals.markers.size[i],h=a.config.markers;return null!==n&&h.discrete.length&&h.discrete.map(function(t){t.seriesIndex===i&&t.dataPointIndex===n&&(l.pointStrokeColor=t.strokeColor,l.pointFillColor=t.fillColor,c=t.size,l.pointShape=t.shape)}),{pSize:null===o?c:o,pRadius:h.radius,width:Array.isArray(h.width)?h.width[i]:h.width,height:Array.isArray(h.height)?h.height[i]:h.height,pointStrokeWidth:Array.isArray(h.strokeWidth)?h.strokeWidth[i]:h.strokeWidth,pointStrokeColor:l.pointStrokeColor,pointFillColor:l.pointFillColor,shape:l.pointShape||(Array.isArray(h.shape)?h.shape[i]:h.shape),class:e,pointStrokeOpacity:Array.isArray(h.strokeOpacity)?h.strokeOpacity[i]:h.strokeOpacity,pointStrokeDashArray:Array.isArray(h.strokeDashArray)?h.strokeDashArray[i]:h.strokeDashArray,pointFillOpacity:Array.isArray(h.fillOpacity)?h.fillOpacity[i]:h.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(t){var e=this.w,i=new w(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,t)),t.node.addEventListener("click",e.config.markers.onClick),t.node.addEventListener("dblclick",e.config.markers.onDblClick),t.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,t),{passive:!0})}},{key:"getMarkerStyle",value:function(t){var e=this.w,i=e.globals.markers.colors,s=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(s)?s[t]:s,pointFillColor:Array.isArray(i)?i[t]:i}}}]),t}(),z=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}
vendor: 16,907 bytes, line 2
2return a(t,[{key:"draw",value:function(t,e,i){var s=this.w,n=new w(this.ctx),r=i.realIndex,o=i.pointsPos,a=i.zRatio,l=i.elParent,c=n.group({class:"apexcharts-series-markers apexcharts-series-".concat(s.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(s.globals.cuid,")")),Array.isArray(o.x))for(var h=0;h<o.x.length;h++){var d=e+1,u=!0;0===e&&0===h&&(d=0),0===e&&1===h&&(d=1);var p=0,f=s.globals.markers.size[r];if(a!==1/0){var g=s.config.plotOptions.bubble;f=s.globals.seriesZ[r][d],g.zScaling&&(f/=a),g.minBubbleRadius&&f<g.minBubbleRadius&&(f=g.minBubbleRadius),g.maxBubbleRadius&&f>g.maxBubbleRadius&&(f=g.maxBubbleRadius)}s.config.chart.animations.enabled||(p=f);var m=o.x[h],x=o.y[h];if(p=p||0,null!==x&&void 0!==s.globals.series[r][d]||(u=!1),u){var b=this.drawPoint(m,x,p,f,r,d,e);c.add(b)}l.add(c)}}},{key:"drawPoint",value:function(t,e,i,s,n,r,o){var a=this.w,l=n,c=new y(this.ctx),h=new v(this.ctx),d=new j(this.ctx),u=new F(this.ctx),p=new w(this.ctx),f=u.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:r,finishRadius:"bubble"===a.config.chart.type||a.globals.comboCharts&&a.config.series[n]&&"bubble"===a.config.series[n].type?s:null});s=f.pSize;var g,m=d.fillPath({seriesNumber:n,dataPointIndex:r,color:f.pointFillColor,patternUnits:"objectBoundingBox",value:a.globals.series[n][o]});if("circle"===f.shape?g=p.drawCircle(i):"square"!==f.shape&&"rect"!==f.shape||(g=p.drawRect(0,0,f.width-f.pointStrokeWidth/2,f.height-f.pointStrokeWidth/2,f.pRadius)),a.config.series[l].data[r]&&a.config.series[l].data[r].fillColor&&(m=a.config.series[l].data[r].fillColor),g.attr({x:t-f.width/2-f.pointStrokeWidth/2,y:e-f.height/2-f.pointStrokeWidth/2,cx:t,cy:e,fill:m,"fill-opacity":f.pointFillOpacity,stroke:f.pointStrokeColor,r:s,"stroke-width":f.pointStrokeWidth,"stroke-dasharray":f.pointStrokeDashArray,"stroke-opacity":f.pointStrokeOpacity}),a.config.chart.dropShadow.enabled){var x=a.config.chart.dropShadow;h.dropShadow(g,x,n)}if(!this.initialAnim||a.globals.dataChanged||a.globals.resized)a.globals.animationEnded=!0;else{var b=a.config.chart.animations.speed;c.animateMarker(g,0,"circle"===f.shape?s:{width:f.width,height:f.height},b,a.globals.easing,function(){window.setTimeout(function(){c.animationCompleted(g)},100)})}if(a.globals.dataChanged&&"circle"===f.shape)if(this.dynamicAnim){var S,k,C,A,E=a.config.chart.animations.dynamicAnimation.speed;null!=(A=a.globals.previousPaths[n]&&a.globals.previousPaths[n][o])&&(S=A.x,k=A.y,C=void 0!==A.r?A.r:s);for(var M=0;M<a.globals.collapsedSeries.length;M++)a.globals.collapsedSeries[M].index===n&&(E=1,s=0);0===t&&0===e&&(s=0),c.animateCircle(g,{cx:S,cy:k,r:C},{cx:t,cy:e,r:s},E,a.globals.easing)}else g.attr({r:s});return g.attr({rel:r,j:r,index:n,"default-marker-size":s}),h.setSelectionFilter(g,n,r),u.addEvents(g),g.node.classList.add("apexcharts-marker"),g}},{key:"centerTextInBubble",value:function(t){var e=this.w;return{y:t+=parseInt(e.config.dataLabels.style.fontSize,10)/4}}}]),t}(),H=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"dataLabelsCorrection",value:function(t,e,i,s,n,r,o){var a=this.w,l=!1,c=new w(this.ctx).getTextRects(i,o),h=c.width,d=c.height;e<0&&(e=0),e>a.globals.gridHeight+d&&(e=a.globals.gridHeight+d/2),void 0===a.globals.dataLabelsRects[s]&&(a.globals.dataLabelsRects[s]=[]),a.globals.dataLabelsRects[s].push({x:t,y:e,width:h,height:d});var u=a.globals.dataLabelsRects[s].length-2,p=void 0!==a.globals.lastDrawnDataLabelsIndexes[s]?a.globals.lastDrawnDataLabelsIndexes[s][a.globals.lastDrawnDataLabelsIndexes[s].length-1]:0;if(void 0!==a.globals.dataLabelsRects[s][u]){var f=a.globals.dataLabelsRects[s][p];(t>f.x+f.width||e>f.y+f.height||e+d<f.y||t+h<f.x)&&(l=!0)}return(0===n||r)&&(l=!0),{x:t,y:e,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(t){var e=this,i=t.type,s=t.pos,n=t.i,r=t.j,o=t.isRangeStart,a=t.strokeWidth,l=void 0===a?2:a,c=this.w,h=new w(this.ctx),d=c.config.dataLabels,u=0,p=0,f=r,g=null;if(!d.enabled||!Array.isArray(s.x))return g;g=h.group({class:"apexcharts-data-labels"});for(var m=0;m<s.x.length;m++)if(u=s.x[m]+d.offsetX,p=s.y[m]+d.offsetY+l,!isNaN(u)){1===r&&0===m&&(f=0),1===r&&1===m&&(f=1);var x=c.globals.series[n][f];"rangeArea"===i&&(x=o?c.globals.seriesRangeStart[n][f]:c.globals.seriesRangeEnd[n][f]);var b="",y=function(t){return c.config.dataLabels.formatter(t,{ctx:e.ctx,seriesIndex:n,dataPointIndex:f,w:c})};"bubble"===c.config.chart.type?(b=y(x=c.globals.seriesZ[n][f]),p=s.y[m],p=new z(this.ctx).centerTextInBubble(p,n,f).y):void 0!==x&&(b=y(x)),this.plotDataLabelsText({x:u,y:p,text:b,i:n,j:f,parent:g,offsetCorrection:!0,dataLabelsConfig:c.config.dataLabels})}return g}},{key:"plotDataLabelsText",value:function(t){var e=this.w,i=new w(this.ctx),s=t.x,n=t.y,r=t.i,o=t.j,a=t.text,l=t.textAnchor,c=t.fontSize,h=t.parent,d=t.dataLabelsConfig,u=t.color,p=t.alwaysDrawDataLabel,f=t.offsetCorrection;if(!(Array.isArray(e.config.dataLabels.enabledOnSeries)&&e.config.dataLabels.enabledOnSeries.indexOf(r)<0)){var g={x:s,y:n,drawnextLabel:!0,textRects:null};f&&(g=this.dataLabelsCorrection(s,n,a,r,o,p,parseInt(d.style.fontSize,10))),e.globals.zoomed||(s=g.x,n=g.y),g.textRects&&(s<-20-g.textRects.width||s>e.globals.gridWidth+g.textRects.width+30)&&(a="");var m=e.globals.dataLabels.style.colors[r];(("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(m=e.globals.dataLabels.style.colors[o]),"function"==typeof m&&(m=m({series:e.globals.series,seriesIndex:r,dataPointIndex:o,w:e})),u&&(m=u);var x=d.offsetX,b=d.offsetY;if("bar"!==e.config.chart.type&&"rangeBar"!==e.config.chart.type||(x=0,b=0),g.drawnextLabel){var y=i.drawText({width:100,height:parseInt(d.style.fontSize,10),x:s+x,y:n+b,foreColor:m,textAnchor:l||d.textAnchor,text:a,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"});if(y.attr({class:"apexcharts-datalabel",cx:s,cy:n}),d.dropShadow.enabled){var S=d.dropShadow;new v(this.ctx).dropShadow(y,S)}h.add(y),void 0===e.globals.lastDrawnDataLabelsIndexes[r]&&(e.globals.lastDrawnDataLabelsIndexes[r]=[]),e.globals.lastDrawnDataLabelsIndexes[r].push(o)}}}},{key:"addBackgroundToDataLabel",value:function(t,e){var i=this.w,s=i.config.dataLabels.background,n=s.padding,r=s.padding/2,o=e.width,a=e.height,l=new w(this.ctx).drawRect(e.x-n,e.y-r/2,o+2*n,a+r,s.borderRadius,"transparent"===i.config.chart.background?"#fff":i.config.chart.background,s.opacity,s.borderWidth,s.borderColor);return s.dropShadow.enabled&&new v(this.ctx).dropShadow(l,s.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var t=this.w;if("bubble"!==t.config.chart.type)for(var e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<e.length;i++){var s=e[i],n=s.getBBox(),r=null;if(n.width&&n.height&&(r=this.addBackgroundToDataLabel(s,n)),r){s.parentNode.insertBefore(r.node,s);var o=s.getAttribute("fill");!t.config.chart.animations.enabled||t.globals.resized||t.globals.dataChanged?r.attr({fill:o}):r.animate().attr({fill:o}),s.setAttribute("fill",t.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var t=this.w,e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=t.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),s=0;s<e.length;s++)i&&i.insertBefore(e[s],i.nextSibling)}}]),t}(),X=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.legendInactiveClass="legend-mouseover-inactive"}return a(t,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(t){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(b.escapeString(t),"']"))}},{key:"isSeriesHidden",value:function(t){var e=this.getSeriesByName(t),i=parseInt(e.getAttribute("data:realIndex"),10);return{isHidden:e.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(t,e){var i=this.w;function s(i){for(var s=0;s<i.length;s++)i[s].index===e&&t.node.classList.add("apexcharts-series-collapsed")}s(i.globals.collapsedSeries),s(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(t){var e=this.isSeriesHidden(t);return this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,e.isHidden),e.isHidden}},{key:"showSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!0)}},{key:"hideSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!1)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.w,n=b.clone(s.globals.initialSeries);s.globals.previousPaths=[],i?(s.globals.collapsedSeries=[],s.globals.ancillaryCollapsedSeries=[],s.globals.collapsedSeriesIndices=[],s.globals.ancillaryCollapsedSeriesIndices=[]):n=this.emptyCollapsedSeries(n),s.config.series=n,t&&(e&&(s.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(n,s.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(t){for(var e=this.w,i=0;i<t.length;i++)e.globals.collapsedSeriesIndices.indexOf(i)>-1&&(t[i].data=[]);return t}},{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w;e||(e=t.target);var s=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if("mousemove"===t.type){var n=parseInt(e.getAttribute("rel"),10)-1,r=null,o=null;i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(n,"']")),o=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(n,"']"))):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(n+1,"']")):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(n+1,"'] path"));for(var a=0;a<s.length;a++)s[a].classList.add(this.legendInactiveClass);null!==r&&(i.globals.axisCharts||r.parentNode.classList.remove(this.legendInactiveClass),r.classList.remove(this.legendInactiveClass),null!==o&&o.classList.remove(this.legendInactiveClass))}else if("mouseout"===t.type)for(var l=0;l<s.length;l++)s[l].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(t,e){var i=this,s=this.w,n=s.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),r=function(t){for(var e=0;e<n.length;e++)n[e].classList[t](i.legendInactiveClass)};if("mousemove"===t.type){var o=parseInt(e.getAttribute("rel"),10)-1;r("add"),function(t){for(var e=0;e<n.length;e++){var s=parseInt(n[e].getAttribute("val"),10);s>=t.from&&s<=t.to&&n[e].classList.remove(i.legendInactiveClass)}}(s.config.plotOptions.heatmap.colorScale.ranges[o])}else"mouseout"===t.type&&r("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.w,s=0;if(i.config.series.length>1)for(var n=i.config.series.map(function(t,s){return t.data&&t.data.length>0&&-1===i.globals.collapsedSeriesIndices.indexOf(s)&&(!i.globals.comboCharts||0===e.length||e.length&&e.indexOf(i.config.series[s].type)>-1)?s:-1}),r="asc"===t?0:n.length-1;"asc"===t?r<n.length:r>=0;"asc"===t?r++:r--)if(-1!==n[r]){s=n[r];break}return s}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(t,e){return"bar"===t.type||"column"===t.type?e:-1}).filter(function(t){return-1!==t}):this.w.config.series.map(function(t,e){return e})}},{key:"getPreviousPaths",value:function(){var t=this.w;function e(e,i,s){for(var n=e[i].childNodes,r={type:s,paths:[],realIndex:e[i].getAttribute("data:realIndex")},o=0;o<n.length;o++)if(n[o].hasAttribute("pathTo")){var a=n[o].getAttribute("pathTo");r.paths.push({d:a})}t.globals.previousPaths.push(r)}t.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(i){for(var s,n=(s=i,t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(s,"-series .apexcharts-series"))),r=0;r<n.length;r++)e(n,r,i)}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series"));if(i.length>0)for(var s=function(e){for(var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(e,"'] rect")),s=[],n=function(t){var e=function(e){return i[t].getAttribute(e)},n={x:parseFloat(e("x")),y:parseFloat(e("y")),width:parseFloat(e("width")),height:parseFloat(e("height"))};s.push({rect:n,color:i[t].getAttribute("color")})},r=0;r<i.length;r++)n(r);t.globals.previousPaths.push(s)},n=0;n<i.length;n++)s(n);t.globals.axisCharts||(t.globals.previousPaths=t.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(t){var e=this.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series"));if(i.length>0)for(var s=0;s<i.length;s++){for(var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series[data\\:realIndex='").concat(s,"'] circle")),r=[],o=0;o<n.length;o++)r.push({x:n[o].getAttribute("cx"),y:n[o].getAttribute("cy"),r:n[o].getAttribute("r")});e.globals.previousPaths.push(r)}}},{key:"clearPreviousPaths",value:function(){var t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var t=this.w,e=t.config.noData,i=new w(this.ctx),s=t.globals.svgWidth/2,n=t.globals.svgHeight/2,r="middle";if(t.globals.noData=!0,t.globals.animationEnded=!0,"left"===e.align?(s=10,r="start"):"right"===e.align&&(s=t.globals.svgWidth-10,r="end"),"top"===e.verticalAlign?n=50:"bottom"===e.verticalAlign&&(n=t.globals.svgHeight-50),s+=e.offsetX,n=n+parseInt(e.style.fontSize,10)+2+e.offsetY,void 0!==e.text&&""!==e.text){var o=i.drawText({x:s,y:n,text:e.text,textAnchor:r,fontSize:e.style.fontSize,fontFamily:e.style.fontFamily,foreColor:e.style.color,opacity:1,class:"apexcharts-text-nodata"});t.globals.dom.Paper.add(o)}}},{key:"setNullSeriesToZeroValues",value:function(t){for(var e=this.w,i=0;i<t.length;i++)if(0===t[i].length)for(var s=0;s<t[e.globals.maxValsInArrayIndex].length;s++)t[i].push(0);return t}},{key:"hasAllSeriesEqualX",value:function(){for(var t=!0,e=this.w,i=this.filteredSeriesX(),s=0;s<i.length-1;s++)if(i[s][0]!==i[s+1][0]){t=!1;break}return e.globals.allSeriesHasEqualX=t,t}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map(function(t){return t.length>0?t:[]})}}]),t}(),W=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new S(this.ctx)}return a(t,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new X(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&null!==t[this.activeSeriesIndex].data[0]&&void 0!==t[this.activeSeriesIndex].data[0].x&&null!==t[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var t=this.w.config.series.slice(),e=new X(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&void 0!==t[this.activeSeriesIndex].data[0]&&null!==t[this.activeSeriesIndex].data[0]&&t[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,e){for(var i=this.w.config,s=this.w.globals,n="boxPlot"===i.chart.type||"boxPlot"===i.series[e].type,r=0;r<t[e].data.length;r++)if(void 0!==t[e].data[r][1]&&(Array.isArray(t[e].data[r][1])&&4===t[e].data[r][1].length&&!n?this.twoDSeries.push(b.parseNumber(t[e].data[r][1][3])):t[e].data[r].length>=5?this.twoDSeries.push(b.parseNumber(t[e].data[r][4])):this.twoDSeries.push(b.parseNumber(t[e].data[r][1])),s.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var o=new Date(t[e].data[r][0]);o=new Date(o).getTime(),this.twoDSeriesX.push(o)}else this.twoDSeriesX.push(t[e].data[r][0]);for(var a=0;a<t[e].data.length;a++)void 0!==t[e].data[a][2]&&(this.threeDSeries.push(t[e].data[a][2]),s.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(t,e){var i=this.w.config,s=this.w.globals,n=new O(this.ctx),r=e;
vendor: 5,060 bytes, line 2
2s.collapsedSeriesIndices.indexOf(e)>-1&&(r=this.activeSeriesIndex);for(var o=0;o<t[e].data.length;o++)void 0!==t[e].data[o].y&&(Array.isArray(t[e].data[o].y)?this.twoDSeries.push(b.parseNumber(t[e].data[o].y[t[e].data[o].y.length-1])):this.twoDSeries.push(b.parseNumber(t[e].data[o].y))),void 0!==t[e].data[o].goals&&Array.isArray(t[e].data[o].goals)?(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(t[e].data[o].goals)):(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(null));for(var a=0;a<t[r].data.length;a++){var l="string"==typeof t[r].data[a].x,c=Array.isArray(t[r].data[a].x),h=!c&&!!n.isValidDate(t[r].data[a].x);if(l||h)if(l||i.xaxis.convertedCatToNumeric){var d=s.isBarHorizontal&&s.isRangeData;"datetime"!==i.xaxis.type||d?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[r].data[a].x),isNaN(t[r].data[a].x)||"category"===this.w.config.xaxis.type||"string"==typeof t[r].data[a].x||(s.isXNumeric=!0)):this.twoDSeriesX.push(n.parseDate(t[r].data[a].x))}else"datetime"===i.xaxis.type?this.twoDSeriesX.push(n.parseDate(t[r].data[a].x.toString())):(s.dataFormatXNumeric=!0,s.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(t[r].data[a].x)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[r].data[a].x)):(s.isXNumeric=!0,s.dataFormatXNumeric=!0,this.twoDSeriesX.push(t[r].data[a].x))}if(t[e].data[0]&&void 0!==t[e].data[0].z){for(var u=0;u<t[e].data.length;u++)this.threeDSeries.push(t[e].data[u].z);s.isDataXYZ=!0}}},{key:"handleRangeData",value:function(t,e){var i=this.w.globals,s={};return this.isFormat2DArray()?s=this.handleRangeDataFormat("array",t,e):this.isFormatXY()&&(s=this.handleRangeDataFormat("xy",t,e)),i.seriesRangeStart.push(s.start),i.seriesRangeEnd.push(s.end),i.seriesRange.push(s.rangeUniques),i.seriesRange.forEach(function(t,e){t&&t.forEach(function(t,e){t.y.forEach(function(e,i){for(var s=0;s<t.y.length;s++)if(i!==s){var n=e.y1,r=e.y2,o=t.y[s].y1;n<=t.y[s].y2&&o<=r&&(t.overlaps.indexOf(e.rangeName)<0&&t.overlaps.push(e.rangeName),t.overlaps.indexOf(t.y[s].rangeName)<0&&t.overlaps.push(t.y[s].rangeName))}})})}),s}},{key:"handleCandleStickBoxData",value:function(t,e){var i=this.w.globals,s={};return this.isFormat2DArray()?s=this.handleCandleStickBoxDataFormat("array",t,e):this.isFormatXY()&&(s=this.handleCandleStickBoxDataFormat("xy",t,e)),i.seriesCandleO[e]=s.o,i.seriesCandleH[e]=s.h,i.seriesCandleM[e]=s.m,i.seriesCandleL[e]=s.l,i.seriesCandleC[e]=s.c,s}},{key:"handleRangeDataFormat",value:function(t,e,i){var s=[],n=[],r=e[i].data.filter(function(t,e,i){return e===i.findIndex(function(e){return e.x===t.x})}).map(function(t,e){return{x:t.x,overlaps:[],y:[]}});if("array"===t)for(var o=0;o<e[i].data.length;o++)Array.isArray(e[i].data[o])?(s.push(e[i].data[o][1][0]),n.push(e[i].data[o][1][1])):(s.push(e[i].data[o]),n.push(e[i].data[o]));else if("xy"===t)for(var a=function(t){var o=Array.isArray(e[i].data[t].y),a=b.randomId(),l=e[i].data[t].x,c={y1:o?e[i].data[t].y[0]:e[i].data[t].y,y2:o?e[i].data[t].y[1]:e[i].data[t].y,rangeName:a};e[i].data[t].rangeName=a;var h=r.findIndex(function(t){return t.x===l});r[h].y.push(c),s.push(c.y1),n.push(c.y2)},l=0;l<e[i].data.length;l++)a(l);return{start:s,end:n,rangeUniques:r}}},{key:"handleCandleStickBoxDataFormat",value:function(t,e,i){var s=this.w,n="boxPlot"===s.config.chart.type||"boxPlot"===s.config.series[i].type,r=[],o=[],a=[],l=[],c=[];if("array"===t)if(n&&6===e[i].data[0].length||!n&&5===e[i].data[0].length)for(var h=0;h<e[i].data.length;h++)r.push(e[i].data[h][1]),o.push(e[i].data[h][2]),n?(a.push(e[i].data[h][3]),l.push(e[i].data[h][4]),c.push(e[i].data[h][5])):(l.push(e[i].data[h][3]),c.push(e[i].data[h][4]));else for(var d=0;d<e[i].data.length;d++)Array.isArray(e[i].data[d][1])&&(r.push(e[i].data[d][1][0]),o.push(e[i].data[d][1][1]),n?(a.push(e[i].data[d][1][2]),l.push(e[i].data[d][1][3]),c.push(e[i].data[d][1][4])):(l.push(e[i].data[d][1][2]),c.push(e[i].data[d][1][3])));else if("xy"===t)for(var u=0;u<e[i].data.length;u++)Array.isArray(e[i].data[u].y)&&(r.push(e[i].data[u].y[0]),o.push(e[i].data[u].y[1]),n?(a.push(e[i].data[u].y[2]),l.push(e[i].data[u].y[3]),c.push(e[i].data[u].y[4])):(l.push(e[i].data[u].y[2]),c.push(e[i].data[u].y[3])));return{o:r,h:o,m:a,l,c}}},{key:"parseDataAxisCharts",value:function(t){var e,i=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,n=this.w.config,r=this.w.globals,o=new O(s),a=n.labels.length>0?n.labels.slice():n.xaxis.categories.slice();if(r.isRangeBar="rangeBar"===n.chart.type&&r.isBarHorizontal,r.hasXaxisGroups="category"===n.xaxis.type&&n.xaxis.group.groups.length>0,r.hasXaxisGroups&&(r.groups=n.xaxis.group.groups),r.hasSeriesGroups=null===(e=t[0])||void 0===e?void 0:e.group,r.hasSeriesGroups){var l=[],c=g(new Set(t.map(function(t){return t.group})));t.forEach(function(t,e){var i=c.indexOf(t.group);l[i]||(l[i]=[]),l[i].push(t.name)}),r.seriesGroups=l}for(var h=function(){for(var t=0;t<a.length;t++)if("string"==typeof a[t]){if(!o.isValidDate(a[t]))throw new Error("You have provided invali
2d Date format. Please provide a valid JavaScript Date");i.twoDSeriesX.push(o.parseDate(a[t]))}else i.twoDSeriesX.push(a[t])},d=0;d<t.length;d++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===t[d].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==n.chart.type&&"rangeArea"!==n.chart.type&&"rangeBar"!==t[d].type&&"rangeArea"!==t[d].type||(r.isRangeData=!0,"rangeBar"!==n.chart.type&&"rangeArea"!==n.chart.type||this.handleRangeData(t,d)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,d):this.isFormatXY()&&this.handleFormatXY(t,d),"candlestick"!==n.chart.type&&"candlestick"!==t[d].type&&"boxPlot"!==n.chart.type&&"boxPlot"!==t[d].type||this.handleCandleStickBoxData(t,d),r.series.push(this.twoDSeries),r.labels.push(this.twoDSeriesX),r.seriesX.push(this.twoDSeriesX),r.seriesGoals=this.seriesGoals,d!==this.activeSeriesIndex||this.fallbackToCategory||(r.isXNumeric=!0);else{"datetime"===n.xaxis.type?(r.isXNumeric=!0,h(),r.seriesX.push(this.twoDSeriesX)):"numeric"===n.xaxis.type&&(r.isXNumeric=!0,a.length>0&&(this.twoDSeriesX=a,r.seriesX.push(this.twoDSeriesX))),r.labels.push(this.twoDSeriesX);var u=t[d].data.map(function(t){return b.parseNumber(t)});r.series.push(u)}r.seriesZ.push(this.threeDSeries),void 0!==t[d].name?r.seriesNames.push(t[d].name):r.seriesNames.push("series-"+parseInt(d+1,10)),void 0!==t[d].color?r.seriesColors.push(t[d].color):r.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var s=0;s<e.series.length;s++)void 0===e.seriesNames[s]&&e.seriesNames.push("series-"+(s+1));return this.w}},{key:"handleExternalLabelsData",value:function(t){var e=this.w.config,i=this.w.globals;e.xaxis.categories.length>0?i.labels=e.xaxis.categories:e.labels.length>0?i.labels=e.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map(function(t){t.forEach(function(t){i.labels.indexOf(t.x)<0&&t.x&&i.labels.push(t.x)})}),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),e.xaxis.convertedCatToNumeric&&(new D(e).convertCatToNumericXaxis(e,this.ctx,i.seriesX[0]),this._generateExternalLabels(t))):this._generateExternalLabels(t)}},{key:"_generateExternalLabels",value:function(t){var e=this.w.globals,i=this.w.config,s=[];if(e.axisCharts){if(e.series.length>0)if(this.isFormatXY())for(var n=i.series.map(function(t,e){return t.data.filter(function(t,e,i){return i.findIndex(function(e){return e.x===t.x})===e})}),r=n.reduce(function(t,e,i,s){return s[t].length>e.length?t:i},0),o=0;o<n[r].length;o++)s.push(o+1);else for(var a=0;a<e.series[e.maxValsInArrayIndex].length;a++)s.push(a+1);e.seriesX=[];for(var l=0;l<t.length;l++)e.seriesX.push(s);this.w.globals.isBarHorizontal||(e.isXNumeric=!0)}if(0===s.length){s=e.axisCharts?[]:e.series.map(function(t,e){return e+1});for(var c=0;c<t.length;c++)e.seriesX.push(s)}e.labels=s,i.xaxis.convertedCatToNumeric&&(e.categoryLabels=s.map(function(t){return i.xaxis.labels.formatter(t)})),e.noLabelsProvided=!0}},{key:"parseData",value:function(t){var e=this.w,i=e.config,s=e.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),s.axisCharts?(this.parseDataAxisCharts(t),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(t),i.chart.stacked){var n=new X(this.ctx);s.series=n.setNullSeriesToZeroValues(s.series)}this.coreUtils.getSeriesTotals(),s.axisCharts&&(s.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),s.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),s.dataFormatXNumeric||s.isXNumeric&&("numeric"!==i.xaxis.type||0!==i.labels.length||0!==i.xaxis.categories.length)||this.handleExternalLabelsData(t);for(var r=this.coreUtils.getCategoryLabels(s.labels),o=0;o<r.length;o++)if(Array.isArray(r[o])){s.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var t=this,e=this.w;e.globals.ignoreYAxisIndexes=e.globals.collapsedSeries.map(function(i,s){if(t.w.globals.isMultipleYAxis&&!e.config.chart.stacked)return i.index})}}]),t}(),Y=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}
vendor: 5,414 bytes, line 2
2return a(t,[{key:"getLabel",value:function(t,e,i,s){var n,r,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],c=this.w,h=void 0===t[s]?"":t[s],d=h,u=c.globals.xLabelFormatter,p=c.config.xaxis.labels.formatter,f=!1,g=new L(this.ctx),m=h;l&&(d=g.xLabelFormat(u,h,m,{i:s,dateFormatter:new O(this.ctx).formatDate,w:c}),void 0!==p&&(d=p(h,t[s],{i:s,dateFormatter:new O(this.ctx).formatDate,w:c}))),e.length>0?(n=e[s].unit,r=null,e.forEach(function(t){"month"===t.unit?r="year":"day"===t.unit?r="month":"hour"===t.unit?r="day":"minute"===t.unit&&(r="hour")}),f=r===n,i=e[s].position,d=e[s].value):"datetime"===c.config.xaxis.type&&void 0===p&&(d=""),void 0===d&&(d=""),d=Array.isArray(d)?d:d.toString();var x,b=new w(this.ctx);x=c.globals.rotateXLabels&&l?b.getTextRects(d,parseInt(a,10),null,"rotate(".concat(c.config.xaxis.labels.rotate," 0 0)"),!1):b.getTextRects(d,parseInt(a,10));var y=!c.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(d)&&(0===d.indexOf("NaN")||0===d.toLowerCase().indexOf("invalid")||d.toLowerCase().indexOf("infinity")>=0||o.indexOf(d)>=0&&y)&&(d=""),{x:i,text:d,textRect:x,isBold:f}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var s=this.w,n=s.config.xaxis.tickAmount;return"dataPoints"===n&&(n=Math.round(s.globals.gridWidth/120)),n>i||t%Math.round(i/(n+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,s,n){var r=this.w;if(0===t&&r.globals.skipFirstTimelinelabel&&(e.text=""),t===i-1&&r.globals.skipLastTimelinelabel&&(e.text=""),r.config.xaxis.labels.hideOverlappingLabels&&s.length>0){var o=n[n.length-1];e.x<o.textRect.width/(r.globals.rotateXLabels?Math.abs(r.config.xaxis.labels.rotate)/12:1.01)+o.x&&(e.text="")}return e}},{key:"checkForReversedLabels",value:function(t,e){var i=this.w;return i.config.yaxis[t]&&i.config.yaxis[t].reversed&&e.reverse(),e}},{key:"isYAxisHidden",value:function(t){var e=this.w,i=new S(this.ctx);return!e.config.yaxis[t].show||!e.config.yaxis[t].showForNullSeries&&i.isSeriesNull(t)&&-1===e.globals.collapsedSeriesIndices.indexOf(t)}},{key:"getYAxisForeColor",value:function(t,e){var i=this.w;return Array.isArray(t)&&i.globals.yAxisScale[e]&&this.ctx.theme.pushExtraColors(t,i.globals.yAxisScale[e].result.length,!1),t}},{key:"drawYAxisTicks",value:function(t,e,i,s,n,r,o){var a=this.w,l=new w(this.ctx),c=a.globals.translateY;if(s.show&&e>0){!0===a.config.yaxis[n].opposite&&(t+=s.width);for(var h=e;h>=0;h--){var d=c+e/10+a.config.yaxis[n].labels.offsetY-1;a.globals.isBarHorizontal&&(d=r*h),"heatmap"===a.config.chart.type&&(d+=r/2);var u=l.drawLine(t+i.offsetX-s.width+s.offsetX,d+s.offsetY,t+i.offsetX+s.offsetX,d+s.offsetY,s.color);o.add(u),c+=r}}}}]),t}(),V=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"scaleSvgNode",value:function(t,e){var i=parseFloat(t.getAttributeNS(null,"width")),s=parseFloat(t.getAttributeNS(null,"height"));t.setAttributeNS(null,"width",i*e),t.setAttributeNS(null,"height",s*e),t.setAttributeNS(null,"viewBox","0 0 "+i+" "+s)}},{key:"fixSvgStringForIe11",value:function(t){if(!b.isIE11())return t.replace(/&nbsp;/g,"&#160;");var e=0,i=t.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(t){return 2===++e?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':t});return(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(t){null==t&&(t=1);var e=this.w.globals.dom.Paper.svg();if(1!==t){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,t),e=(new XMLSerializer).serializeToString(i)}return this.fixSvgStringForIe11(e)}},{key:"cleanup",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=t.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(s,function(t){t.setAttribute("width",0)}),e&&e[0]&&(e[0].setAttribute("x",-500),e[0].setAttribute("x1",-500),e[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var t=this.getSvgString(),e=new Blob([t],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(e)}},{key:"dataURI",value:function(t){var e=this;return new Promise(function(i){var s=e.w,n=t?t.scale||t.width/s.globals.svgWidth:1;e.cleanup();var r=document.createElement("canvas");r.width=s.globals.svgWidth*n,r.height=parseInt(s.globals.dom.elWrap.style.height,10)*n;var o="transparent"===s.config.chart.background?"#fff":s.config.chart.background,a=r.getContext("2d");a.fillStyle=o,a.fillRect(0,0,r.width*n,r.height*n);var l=e.getSvgString(n);if(window.canvg&&b.isIE11()){var c=window.canvg.Canvg.fromString(a,l,{ignoreClear:!0,ignoreDimensions:!0});c.start();var h=r.msToBlob();c.stop(),i({blob:h})}else{var d="data:image/svg+xml,"+encodeURIComponent(l),u=new Image;u.crossOrigin="anonymous",u.onload=function(){if(a.drawImage(u,0,0),r.msToBlob){var t=r.msToBlob();i({blob:t})}else{var e=r.toDataURL("image/png");i({imgURI:e})}},u.src=d}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.f
2ilename,".svg")}},{key:"exportToPng",value:function(){var t=this;this.dataURI().then(function(e){var i=e.imgURI,s=e.blob;s?navigator.msSaveOrOpenBlob(s,t.w.globals.chartID+".png"):t.triggerDownload(i,t.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(t){var e=this,i=t.series,s=t.fileName,n=t.columnDelimiter,r=void 0===n?",":n,o=t.lineDelimiter,a=void 0===o?"\n":o,l=this.w;i||(i=l.config.series);var c,h,d=[],u=[],p="",f=l.globals.series.map(function(t,e){return-1===l.globals.collapsedSeriesIndices.indexOf(e)?t:[]}),m=function(t){return"datetime"===l.config.xaxis.type&&String(t).length>=10},x=Math.max.apply(Math,g(i.map(function(t){return t.data?t.data.length:0}))),y=new W(this.ctx),v=new Y(this.ctx),w=function(t){var i="";if(l.globals.axisCharts){if("category"===l.config.xaxis.type||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var s=l.globals.yLabelFormatters[0],n=new X(e.ctx).getActiveConfigSeriesIndex();i=s(l.globals.labels[t],{seriesIndex:n,dataPointIndex:t,w:l})}else i=v.getLabel(l.globals.labels,l.globals.timescaleLabels,0,t).text;"datetime"===l.config.xaxis.type&&(l.config.xaxis.categories.length?i=l.config.xaxis.categories[t]:l.config.labels.length&&(i=l.config.labels[t]))}else i=l.config.labels[t];return Array.isArray(i)&&(i=i.join(" ")),b.isNumber(i)?i:i.split(r).join("")};d.push(l.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===l.config.chart.type?(d.push("minimum"),d.push("q1"),d.push("median"),d.push("q3"),d.push("maximum")):"candlestick"===l.config.chart.type?(d.push("open"),d.push("high"),d.push("low"),d.push("close")):"rangeBar"===l.config.chart.type?(d.push("minimum"),d.push("maximum")):i.map(function(t,e){var i=(t.name?t.name:"series-".concat(e))+"";l.globals.axisCharts&&d.push(i.split(r).join("")?i.split(r).join(""):"series-".concat(e))}),l.globals.axisCharts||(d.push(l.config.chart.toolbar.export.csv.headerValue),u.push(d.join(r))),l.globals.allSeriesHasEqualX||!l.globals.axisCharts||l.config.xaxis.categories.length||l.config.labels.length?i.map(function(t,e){l.globals.axisCharts?function(t,e){if(d.length&&0===e&&u.push(d.join(r)),t.data){t.data=t.data.length&&t.data||g(Array(x)).map(function(){return""});for(var s=0;s<t.data.length;s++){d=[];var n=w(s);if(n||(y.isFormatXY()?n=i[e].data[s].x:y.isFormat2DArray()&&(n=i[e].data[s]?i[e].data[s][0]:"")),0===e){d.push(m(n)?l.config.chart.toolbar.export.csv.dateFormatter(n):b.isNumber(n)?n:n.split(r).join(""));for(var o=0;o<l.globals.series.length;o++){var a;y.isFormatXY()?d.push(null===(a=i[o].data[s])||void 0===a?void 0:a.y):d.push(f[o][s])}}("candlestick"===l.config.chart.type||t.type&&"candlestick"===t.type)&&(d.pop(),d.push(l.globals.seriesCandleO[e][s]),d.push(l.globals.seriesCandleH[e][s]),d.push(l.globals.seriesCandleL[e][s]),d.push(l.globals.seriesCandleC[e][s])),("boxPlot"===l.config.chart.type||t.type&&"boxPlot"===t.type)&&(d.pop(),d.push(l.globals.seriesCandleO[e][s]),d.push(l.globals.seriesCandleH[e][s]),d.push(l.globals.seriesCandleM[e][s]),d.push(l.globals.seriesCandleL[e][s]),d.push(l.globals.seriesCandleC[e][s])),"rangeBar"===l.config.chart.type&&(d.pop(),d.push(l.globals.seriesRangeStart[e][s]),d.push(l.globals.seriesRangeEnd[e][s])),d.length&&u.push(d.join(r))}}}(t,e):((d=[]).push(l.globals.labels[e].split(r).join("")),d.push(f[e]),u.push(d.join(r)))}):(c=new Set,h={},i.forEach(function(t,e){null==t||t.data.forEach(function(t){var s,n;if(y.isFormatXY())s=t.x,n=t.y;else{if(!y.isFormat2DArray())return;s=t[0],n=t[1]}h[s]||(h[s]=Array(i.length).fill("")),h[s][e]=n,c.add(s)})}),d.length&&u.push(d.join(r)),Array.from(c).sort().forEach(function(t){u.push([m(t)&&"datetime"===l.config.xaxis.type?l.config.chart.toolbar.export.csv.dateFormatter(t):b.isNumber(t)?t:t.split(r).join(""),h[t].join(r)])})),p+=u.join(a),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+p),s||l.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(t,e,i){var s=document.createElement("a");s.href=t,s.download=(e||this.w.globals.chartID)+i,document.body.appendChild(s),s.click(),document.body.removeChild(s)}}]),t}(),G=function(){function t(e,i){r(this,t),this.ctx=e,this.elgrid=i,this.w=e.w;var s=this.w;this.axesUtils=new Y(e),this.xaxisLabels=s.globals.labels.slice(),s.globals.timescaleLabels.length>0&&!s.globals.isBarHorizontal&&(this.xaxisLabels=s.globals.timescaleLabels.slice()),s.config.xaxis.overwriteCategories&&(this.xaxisLabels=s.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===s.config.xaxis.position?this.offY=0:this.offY=s.globals.gridHeight+1,this.offY=this.offY+s.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===s.config.chart.type&&s.config.plotOptions.bar.horizontal,this.xaxisFontSize=s.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=s.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=s.config.xaxis.labels.style.colors,this.xaxisBorderWidth=s.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=s.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=s.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=s.config.xaxis.axisBorder.height,this.yaxis=s.config.yaxis[0]}return a(t,[{key:"drawXaxis",value:function(){var t=this.w,e=new w(this.ctx),i=e.group({class:"apexcharts-xaxis",transform:"translate(".concat(t.config.xaxis.offsetX,", ").concat(t.config.xaxis.offsetY,")")}),s=e.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(s);for(var n=[],r=0;r<this.xaxisLabels.length;r++)n.push(this.xaxisLabels[r]);if(this.drawXAxisLabelAndGroup(!0,e,s,n,t.globals.isXNumeric,function(t,e){return e}),t.globals.hasXaxisGroups){var o=t.globals.groups;n=[];for(var a=0;a<o.length;a++)n.push(o[a].title);var l={};t.config.xaxis.group.style&&(l.xaxisFontSize=t.config.xaxis.group.style.fontSize,l.xaxisFontFamily=t.config.xaxis.group.style.fontFamily,l.xaxisForeColors=t.config.xaxis.group.style.colors,l.fontWeight=t.config.xaxis.group.style.fontWeight,l.cssClass=t.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,e,s,n,!1,function(t,e){return o[t].cols*e},l)}if(void 0!==t.config.xaxis.title.text){var c=e.group({class:"apexcharts-xaxis-title"}),h=e.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+("bottom"===t.config.xaxis.position?t.globals.xAxisLabelsHeight:-t.globals.xAxisLabelsHeight-10)+t.config.xaxis.title.offsetY,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});c.add(h),i.add(c)}if(t.config.xaxis.axisBorder.show){var d=t.globals.barPadForNumericAxis,u=e.drawLine(t.globals.padHorizontal+t.config.xaxis.axisBorder.offsetX-d,this.offY,this.xaxisBorderWidth+d,this.offY,t.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(u):i.add(u)}return i}}
vendor: 4,485 bytes, line 2
2,{key:"drawXAxisLabelAndGroup",value:function(t,e,i,s,n,r){var o,a=this,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},c=[],h=[],d=this.w,u=l.xaxisFontSize||this.xaxisFontSize,p=l.xaxisFontFamily||this.xaxisFontFamily,f=l.xaxisForeColors||this.xaxisForeColors,g=l.fontWeight||d.config.xaxis.labels.style.fontWeight,m=l.cssClass||d.config.xaxis.labels.style.cssClass,x=d.globals.padHorizontal,b=s.length,y="category"===d.config.xaxis.type?d.globals.dataPoints:b;if(0===y&&b>y&&(y=b),n){var v=y>1?y-1:y;o=d.globals.gridWidth/Math.min(v,b-1),x=x+r(0,o)/2+d.config.xaxis.labels.offsetX}else o=d.globals.gridWidth/y,x=x+r(0,o)+d.config.xaxis.labels.offsetX;for(var w=function(n){var l=x-r(n,o)/2+d.config.xaxis.labels.offsetX;0===n&&1===b&&o/2===x&&1===y&&(l=d.globals.gridWidth/2);var v=a.axesUtils.getLabel(s,d.globals.timescaleLabels,l,n,c,u,t),w=28;if(d.globals.rotateXLabels&&t&&(w=22),d.config.xaxis.title.text&&"top"===d.config.xaxis.position&&(w+=parseFloat(d.config.xaxis.title.style.fontSize)+2),t||(w=w+parseFloat(u)+(d.globals.xAxisLabelsHeight-d.globals.xAxisGroupLabelsHeight)+(d.globals.rotateXLabels?10:0)),v=void 0!==d.config.xaxis.tickAmount&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?a.axesUtils.checkLabelBasedOnTickamount(n,v,b):a.axesUtils.checkForOverflowingLabels(n,v,b,c,h),d.config.xaxis.labels.show){var S=e.drawText({x:v.x,y:a.offY+d.config.xaxis.labels.offsetY+w-("top"===d.config.xaxis.position?d.globals.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:v.text,textAnchor:"middle",fontWeight:v.isBold?600:g,fontSize:u,fontFamily:p,foreColor:Array.isArray(f)?t&&d.config.xaxis.convertedCatToNumeric?f[d.globals.minX+n-1]:f[n]:f,isPlainText:!1,cssClass:(t?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+m});if(i.add(S),S.on("click",function(t){if("function"==typeof d.config.chart.events.xAxisLabelClick){var e=Object.assign({},d,{labelIndex:n});d.config.chart.events.xAxisLabelClick(t,a.ctx,e)}}),t){var k=document.createElementNS(d.globals.SVGNS,"title");k.textContent=Array.isArray(v.text)?v.text.join(" "):v.text,S.node.appendChild(k),""!==v.text&&(c.push(v.text),h.push(v))}}n<b-1&&(x+=r(n+1,o))},S=0;S<=b-1;S++)w(S)}},{key:"drawXaxisInversed",value:function(t){var e,i,s=this,n=this.w,r=new w(this.ctx),o=n.config.yaxis[0].opposite?n.globals.translateYAxisX[t]:0,a=r.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:t}),l=r.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+o+", 0)"});a.add(l);var c=[];if(n.config.yaxis[t].show)for(var h=0;h<this.xaxisLabels.length;h++)c.push(this.xaxisLabels[h]);e=n.globals.gridHeight/c.length,i=-e/2.2;var d=n.globals.yLabelFormatters[0],u=n.config.yaxis[0].labels;if(u.show)for(var p=function(o){var a=void 0===c[o]?"":c[o];a=d(a,{seriesIndex:t,dataPointIndex:o,w:n});var h=s.axesUtils.getYAxisForeColor(u.style.colors,t),p=0;Array.isArray(a)&&(p=a.length/2*parseInt(u.style.fontSize,10));var f=u.offsetX-15,g="end";s.yaxis.opposite&&(g="start"),"left"===n.config.yaxis[0].labels.align?(f=u.offsetX,g="start"):"center"===n.config.yaxis[0].labels.align?(f=u.offsetX,g="middle"):"right"===n.config.yaxis[0].labels.align&&(g="end");var m=r.drawText({x:f,y:i+e+u.offsetY-p,text:a,textAnchor:g,foreColor:Array.isArray(h)?h[o]:h,fontSize:u.style.fontSize,fontFamily:u.style.fontFamily,fontWeight:u.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+u.style.cssClass,maxWidth:u.maxWidth});l.add(m),m.on("click",function(t){if("function"==typeof n.config.chart.events.xAxisLabelClick){var e=Object.assign({},n,{labelIndex:o});n.config.chart.events.xAxisLabelClick(t,s.ctx,e)}});var x=document.createElementNS(n.globals.SVGNS,"title");if(x.textContent=Array.isArray(a)?a.join(" "):a,m.node.appendChild(x),0!==n.config.yaxis[t].labels.rotate){var b=r.rotateAroundCenter(m.node);m.node.setAttribute("transform","rotate(".concat(n.config.yaxis[t].labels.rotate," 0 ").concat(b.y,")"))}i+=e},f=0;f<=c.length-1;f++)p(f);if(void 0!==n.config.yaxis[0].title.text){var g=r.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+o+", 0)"}),m=r.drawText({x:n.config.yaxis[0].title.offsetX,y:n.globals.gridHeight/2+n.config.yaxis[0].title.offsetY,text:n.config.yaxis[0].title.text,textAnchor:"middle",foreColor:n.config.yaxis[0].title.style.color,fontSize:n.config.yaxis[0].title.style.fontSize,fontWeight:n.config.yaxis[0].title.style.fontWeight,fontFamily:n.
vendor: 5,043 bytes, line 2
2config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+n.config.yaxis[0].title.style.cssClass});g.add(m),a.add(g)}var x=0;this.isCategoryBarHorizontal&&n.config.yaxis[0].opposite&&(x=n.globals.gridWidth);var b=n.config.xaxis.axisBorder;if(b.show){var y=r.drawLine(n.globals.padHorizontal+b.offsetX+x,1+b.offsetY,n.globals.padHorizontal+b.offsetX+x,n.globals.gridHeight+b.offsetY,b.color,0);this.elgrid&&this.elgrid.elGridBorders&&n.config.grid.show?this.elgrid.elGridBorders.add(y):a.add(y)}return n.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(x,c.length,n.config.yaxis[0].axisBorder,n.config.yaxis[0].axisTicks,0,e,a),a}},{key:"drawXaxisTicks",value:function(t,e,i){var s=this.w,n=t;if(!(t<0||t-2>s.globals.gridWidth)){var r=this.offY+s.config.xaxis.axisTicks.offsetY;if(e=e+r+s.config.xaxis.axisTicks.height,"top"===s.config.xaxis.position&&(e=r-s.config.xaxis.axisTicks.height),s.config.xaxis.axisTicks.show){var o=new w(this.ctx).drawLine(t+s.config.xaxis.axisTicks.offsetX,r+s.config.xaxis.offsetY,n+s.config.xaxis.axisTicks.offsetX,e+s.config.xaxis.offsetY,s.config.xaxis.axisTicks.color);i.add(o),o.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,s=t.globals.padHorizontal;if(t.globals.timescaleLabels.length>0)for(var n=0;n<i;n++)s=this.xaxisLabels[n].position,e.push(s);else for(var r=i,o=0;o<r;o++){var a=r;t.globals.isXNumeric&&"bar"!==t.config.chart.type&&(a-=1),s+=t.globals.gridWidth/a,e.push(s)}return e}},{key:"xAxisLabelCorrections",value:function(){var t=this.w,e=new w(this.ctx),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(t.globals.rotateXLabels||t.config.xaxis.labels.rotateAlways)for(var o=0;o<s.length;o++){var a=e.rotateAroundCenter(s[o]);a.y=a.y-1,a.x=a.x+1,s[o].setAttribute("transform","rotate(".concat(t.config.xaxis.labels.rotate," ").concat(a.x," ").concat(a.y,")")),s[o].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var l=s[o].childNodes;t.config.xaxis.labels.trim&&Array.prototype.forEach.call(l,function(i){e.placeTextWithEllipsis(i,i.textContent,t.globals.xAxisLabelsHeight-("bottom"===t.config.legend.position?20:10))})}else!function(){for(var i=t.globals.gridWidth/(t.globals.labels.length+1),n=0;n<s.length;n++){var r=s[n].childNodes;t.config.xaxis.labels.trim&&"datetime"!==t.config.xaxis.type&&Array.prototype.forEach.call(r,function(t){e.placeTextWithEllipsis(t,t.textContent,i)})}}();if(n.length>0){var c=n[n.length-1].getBBox(),h=n[0].getBBox();c.x<-20&&n[n.length-1].parentNode.removeChild(n[n.length-1]),h.x+h.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&n[0].parentNode.removeChild(n[0]);for(var d=0;d<r.length;d++)e.placeTextWithEllipsis(r[d],r[d].textContent,t.config.yaxis[0].labels.maxWidth-(t.config.yaxis[0].title.text?2*parseFloat(t.config.yaxis[0].title.style.fontSize):0)-15)}}}]),t}(),U=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.xaxisLabels=i.globals.labels.slice(),this.axesUtils=new Y(e),this.isRangeBar=i.globals.seriesRange.length&&i.globals.isBarHorizontal,i.globals.timescaleLabels.length>0&&(this.xaxisLabels=i.globals.timescaleLabels.slice())}return a(t,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=new w(this.ctx);null===t&&(t=i.group({class:"apexcharts-grid"}));var s=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),n=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(n),t.add(s),t}},{key:"drawGrid",value:function(){var t=null;return this.w.globals.axisCharts&&(t=this.renderGrid(),this.drawGridArea(t.el)),t}},{key:"createGridMask",value:function(){var t=this.w,e=t.globals,i=new w(this.ctx),s=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width;if(Array.isArray(t.config.stroke.width)){var n=0;t.config.stroke.width.forEach(function(t){n=Math.max(n,t)}),s=n}e.dom.elGridRectMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(e.cuid)),e.dom.elGridRectMarkerMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(e.cuid)),e.dom.elForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elForecastMask.setAttribute("id","forecastMask".concat(e.cuid)),e.dom.elNonForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(e.cuid));var r=t.config.chart.type,o=0,a=0;("bar"===r||"rangeBar"===r||"candlestick"===r||"boxPlot"===r||t.globals.comboBarCount>
vendor: 4,327 bytes, line 2
20)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&(o=t.config.grid.padding.left,a=t.config.grid.padding.right,e.barPadForNumericAxis>o&&(o=e.barPadForNumericAxis,a=e.barPadForNumericAxis)),e.dom.elGridRect=i.drawRect(-s-o-2,2*-s-2,e.gridWidth+s+a+o+4,e.gridHeight+4*s+4,0,"#fff");var l=t.globals.markers.largestSize+1;e.dom.elGridRectMarker=i.drawRect(2*-l,2*-l,e.gridWidth+4*l,e.gridHeight+4*l,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);var c=e.dom.baseEl.querySelector("defs");c.appendChild(e.dom.elGridRectMask),c.appendChild(e.dom.elForecastMask),c.appendChild(e.dom.elNonForecastMask),c.appendChild(e.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(t){var e=t.i,i=t.x1,s=t.y1,n=t.x2,r=t.y2,o=t.xCount,a=t.parent,l=this.w;if(!(0===e&&l.globals.skipFirstTimelinelabel||e===o-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:e,x1:i,y1:s,x2:n,y2:r,xCount:o,parent:a});var c=0;if(l.globals.hasXaxisGroups&&"between"===l.config.xaxis.tickPlacement){var h=l.globals.groups;if(h){for(var d=0,u=0;d<e&&u<h.length;u++)d+=h[u].cols;d===e&&(c=.6*l.globals.xAxisLabelsHeight)}}new G(this.ctx).drawXaxisTicks(i,c,l.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(t){var e=t.i,i=t.x1,s=t.y1,n=t.x2,r=t.y2,o=t.xCount,a=t.parent,l=this.w,c=!1,h=a.node.classList.contains("apexcharts-gridlines-horizontal"),d=l.config.grid.strokeDashArray,u=l.globals.barPadForNumericAxis;(0===s&&0===r||0===i&&0===n)&&(c=!0),s===l.globals.gridHeight&&r===l.globals.gridHeight&&(c=!0),!l.globals.isBarHorizontal||0!==e&&e!==o-1||(c=!0);var p=new w(this).drawLine(i-(h?u:0),s,n+(h?u:0),r,l.config.grid.borderColor,d);p.node.classList.add("apexcharts-gridline"),c&&l.config.grid.show?this.elGridBorders.add(p):a.add(p)}},{key:"_drawGridBandRect",value:function(t){var e=t.c,i=t.x1,s=t.y1,n=t.x2,r=t.y2,o=t.type,a=this.w,l=new w(this.ctx),c=a.globals.barPadForNumericAxis;if("column"!==o||"datetime"!==a.config.xaxis.type){var h=a.config.grid[o].colors[e],d=l.drawRect(i-("row"===o?c:0),s,n+("row"===o?2*c:0),r,0,h,a.config.grid[o].opacity);this.elg.add(d),d.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),d.node.classList.add("apexcharts-grid-".concat(o))}}},{key:"_drawXYLines",value:function(t){var e=this,i=t.xCount,s=t.tickAmount,n=this.w;if(n.config.grid.xaxis.lines.show||n.config.xaxis.axisTicks.show){var r,o=n.globals.padHorizontal,a=n.globals.gridHeight;n.globals.timescaleLabels.length?function(t){for(var s=t.xC,n=t.x1,r=t.y1,o=t.x2,a=t.y2,l=0;l<s;l++)n=e.xaxisLabels[l].position,o=e.xaxisLabels[l].position,e._drawGridLines({i:l,x1:n,y1:r,x2:o,y2:a,xCount:i,parent:e.elgridLinesV})}({xC:i,x1:o,y1:0,x2:r,y2:a}):(n.globals.isXNumeric&&(i=n.globals.xAxisScale.result.length),function(t){for(var s=t.xC,r=t.x1,o=t.y1,a=t.x2,l=t.y2,c=0;c<s+(n.globals.isXNumeric?0:1);c++)0===c&&1===s&&1===n.globals.dataPoints&&(a=r=n.globals.gridWidth/2),e._drawGridLines({i:c,x1:r,y1:o,x2:a,y2:l,xCount:i,parent:e.elgridLinesV}),a=r+=n.globals.gridWidth/(n.globals.isXNumeric?s-1:s)}({xC:i,x1:o,y1:0,x2:r,y2:a}))}if(n.config.grid.yaxis.lines.show){var l=0,c=0,h=n.globals.gridWidth,d=s+1;this.isRangeBar&&(d=n.globals.labels.length);for(var u=0;u<d+(this.isRangeBar?1:0);u++)this._drawGridLine({i:u,xCount:d+(this.isRangeBar?1:0),x1:0,y1:l,x2:h,y2:c,parent:this.elgridLinesH}),c=l+=n.globals.gridHeight/(this.isRangeBar?d:s)}}},{key:"_drawInvertedXYLines",value:function(t){var e=t.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var s,n=i.globals.padHorizontal,r=i.globals.gridHeight,o=0;o<e+1;o++)i.config.grid.xaxis.lines.show&&this._drawGridLine({i:o,xCount:e+1,x1:n,y1:0,x2:s,y2:r,parent:this.elgridLinesV}),new G(this.ctx).drawXaxisTicks(n,0,i.globals.dom.elGraphical),s=n=n+i.globals.gridWidth/e+.3;if(i.config.grid.yaxis.lines.show)for(var a=0,l=0,c=i.globals.gridWidth,h=0;h<i.globals.dataPoints+1;h++)this._drawGridLine({i:h,xCount:i.globals.dataPoints+1,x1:0,y1:a,x2:c,y2:l,parent:this.elgridLinesH}),l=a+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var t,e,i,s=this.w,n=new w(this.ctx);this.elg=n.group({class:"apexcharts-grid"}
vendor: 4,108 bytes, line 2
2),this.elgridLinesH=n.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=n.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=n.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),s.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var r,o=s.globals.yAxisScale.length?s.globals.yAxisScale[0].result.length-1:5,a=0;a<s.globals.series.length&&(void 0!==s.globals.yAxisScale[a]&&(o=s.globals.yAxisScale[a].result.length-1),!(o>2));a++);!s.globals.isBarHorizontal||this.isRangeBar?(r=this.xaxisLabels.length,this.isRangeBar&&(r--,o=s.globals.labels.length,s.config.xaxis.tickAmount&&s.config.xaxis.labels.formatter&&(r=s.config.xaxis.tickAmount),(null===(t=s.globals.yAxisScale)||void 0===t||null===(e=t[0])||void 0===e||null===(i=e.result)||void 0===i?void 0:i.length)>0&&"datetime"!==s.config.xaxis.type&&(r=s.globals.yAxisScale[0].result.length-1)),this._drawXYLines({xCount:r,tickAmount:o})):(r=o,o=s.globals.xTickAmount,this._drawInvertedXYLines({xCount:r,tickAmount:o}));return this.drawGridBands(r,o),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:s.globals.gridWidth/r}}},{key:"drawGridBands",value:function(t,e){var i=this.w;if(void 0!==i.config.grid.row.colors&&i.config.grid.row.colors.length>0)for(var s=0,n=i.globals.gridHeight/e,r=i.globals.gridWidth,o=0,a=0;o<e;o++,a++)a>=i.config.grid.row.colors.length&&(a=0),this._drawGridBandRect({c:a,x1:0,y1:s,x2:r,y2:n,type:"row"}),s+=i.globals.gridHeight/e;if(void 0!==i.config.grid.column.colors&&i.config.grid.column.colors.length>0)for(var l=i.globals.isBarHorizontal||"on"!==i.config.xaxis.tickPlacement||"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric?t:t-1,c=i.globals.padHorizontal,h=i.globals.padHorizontal+i.globals.gridWidth/l,d=i.globals.gridHeight,u=0,p=0;u<t;u++,p++)p>=i.config.grid.column.colors.length&&(p=0),this._drawGridBandRect({c:p,x1:c,y1:0,x2:h,y2:d,type:"column"}),c+=i.globals.gridWidth/l}}]),t}(),$=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"niceScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4?arguments[4]:void 0,r=this.w,o=Math.abs(e-t);if("dataPoints"===(i=this._adjustTicksForSmallRange(i,s,o))&&(i=r.globals.dataPoints-1),t===Number.MIN_VALUE&&0===e||!b.isNumber(t)&&!b.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)return t=0,e=i,this.linearScale(t,e,i,s,r.config.yaxis[s].stepSize);t>e?(console.warn("axis.min cannot be greater than axis.max"),e=t+.1):t===e&&(t=0===t?0:t-.5,e=0===e?2:e+.5);var a=[];o<1&&n&&("candlestick"===r.config.chart.type||"candlestick"===r.config.series[s].type||"boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[s].type||r.globals.isRangeData)&&(e*=1.01);var l=i+1;l<2?l=2:l>2&&(l-=2);var c=o/l,h=Math.floor(b.log10(c)),d=Math.pow(10,h),u=Math.round(c/d);u<1&&(u=1);var p=u*d;r.config.yaxis[s].stepSize&&(p=r.config.yaxis[s].stepSize),r.globals.isBarHorizontal&&r.config.xaxis.stepSize&&"datetime"!==r.config.xaxis.type&&(p=r.config.xaxis.stepSize);var f=p*Math.floor(t/p),g=p*Math.ceil(e/p),m=f;if(n&&o>2){for(;a.push(b.stripNumber(m,7)),!((m+=p)>g););return{result:a,niceMin:a[0],niceMax:a[a.length-1]}}var x=t;(a=[]).push(b.stripNumber(x,7));for(var y=Math.abs(e-t)/i,v=0;v<=i;v++)x+=y,a.push(x);return a[a.length-2]>=e&&a.pop(),{result:a,niceMin:a[0],niceMax:a[a.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,r=Math.abs(e-t);"dataPoints"===(i=this._adjustTicksForSmallRange(i,s,r))&&(i=this.w.globals.dataPoints-1),n||(n=r/i),i===Number.MAX_VALUE&&(i=5,n=1);for(var o=[],a=t;i>=0;)o.push(a),a+=n,i-=1;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:"logarithmicScaleNice",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));
2for(var s=[],n=Math.ceil(Math.log(e)/Math.log(i)+1),r=Math.floor(Math.log(t)/Math.log(i));r<n;r++)s.push(Math.pow(i,r));return{result:s,niceMin:s[0],niceMax:s[s.length-1]}}},{key:"logarithmicScale",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var s=[],n=Math.log(e)/Math.log(i),r=Math.log(t)/Math.log(i),o=n-r,a=Math.round(o),l=o/a,c=0,h=r;c<a;c++,h+=l)s.push(Math.pow(i,h));return s.push(Math.pow(i,n)),{result:s,niceMin:t,niceMax:e}}},{key:"_adjustTicksForSmallRange",value:function(t,e,i){var s=t;if(void 0!==e&&this.w.config.yaxis[e].labels.formatter&&void 0===this.w.config.yaxis[e].tickAmount){var n=Number(this.w.config.yaxis[e].labels.formatter(1));b.isNumber(n)&&0===this.w.globals.yValueDecimal&&(s=Math.ceil(i))}return s<t?s:t}},{key:"setYScaleForIndex",value:function(t,e,i){var s=this.w.globals,n=this.w.config,r=s.isBarHorizontal?n.xaxis:n.yaxis[t];void 0===s.yAxisScale[t]&&(s.yAxisScale[t]=[]);var o=Math.abs(i-e);if(r.logarithmic&&o<=5&&(s.invalidLogScale=!0),r.logarithmic&&o>5)s.allSeriesCollapsed=!1,s.yAxisScale[t]=this.logarithmicScale(e,i,r.logBase),s.yAxisScale[t]=r.forceNiceScale?this.logarithmicScaleNice(e,i,r.logBase):this.logarithmicScale(e,i,r.logBase);else if(i!==-Number.MAX_VALUE&&b.isNumber(i))if(s.allSeriesCollapsed=!1,void 0===r.min&&void 0===r.max||r.forceNiceScale){var a=void 0===n.yaxis[t].max&&void 0===n.yaxis[t].min||n.yaxis[t].forceNiceScale;s.yAxisScale[t]=this.niceScale(e,i,r.tickAmount?r.tickAmount:o<5&&o>1?o+1:5,t,a)}else s.yAxisScale[t]=this.linearScale(e,i,r.tickAmount,t,n.yaxis[t].stepSize);else s.yAxisScale[t]=this.linearScale(0,5,5,t,n.yaxis[t].stepSize)}},{key:"setXScale",value:function(t,e){var i=this.w,s=i.globals,n=Math.abs(e-t);return e!==-Number.MAX_VALUE&&b.isNumber(e)?s.xAxisScale=this.linearScale(t,e,i.config.xaxis.tickAmount?i.config.xaxis.tickAmount:n<5&&n>1?n+1:5,0,i.config.xaxis.stepSize):s.xAxisScale=this.linearScale(0,5,5),s.xAxisScale}},{key:"setMultipleYScales",value:function(){var t=this,e=this.w.globals,i=this.w.config,s=e.minYArr.concat([]),n=e.maxYArr.concat([]),r=[];i.yaxis.forEach(function(e,o){var a=o;i.series.forEach(function(t,i){t.name===e.seriesName&&(a=i,o!==i?r.push({index:i,similarIndex:o,alreadyExists:!0}):r.push({index:i}))});var l=s[a],c=n[a];t.setYScaleForIndex(o,l,c)}),this.sameScaleInMultipleAxes(s,n,r)}},{key:"sameScaleInMultipleAxes",value:function(t,e,i){var s=this,n=this.w.config,r=this.w.globals,o=[];i.forEach(function(t){t.alreadyExists&&(void 0===o[t.index]&&(o[t.index]=[]),o[t.index].push(t.index),o[t.index].push(t.similarIndex))}),r.yAxisSameScaleIndices=o,o.forEach(function(t,e){o.forEach(function(i,s){var n,r;e!==s&&(n=t,r=i,n.filter(function(t){return-1!==r.indexOf(t)})).length>0&&(o[e]=o[e].concat(o[s]))})});var a=o.map(function(t){return t.filter(function(e,i){return t.indexOf(e)===i})}).map(function(t){return t.sort()});o=o.filter(function(t){return!!t});var l=a.slice(),c=l.map(function(t){return JSON.stringify(t)});l=l.filter(function(t,e){return c.indexOf(JSON.stringify(t))===e});var h=[],d=[];t.forEach(function(t,i){l.forEach(function(s,n){s.indexOf(i)>-1&&(void 0===h[n]&&(h[n]=[],d[n]=[]),h[n].push({key:i,value:t}),d[n].push({key:i,value:e[i]}))})});var u=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),p=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);h.forEach(function(t,e){t.forEach(function(t,i){u[e]=Math.min(t.value,u[e])})}),d.forEach(function(t,e){t.forEach(function(t,i){p[e]=Math.max(t.value,p[e])})}),t.forEach(function(t,e){d.forEach(function(t,i){var o=u[i],a=p[i];n.chart.stacked&&(a=0,t.forEach(function(t,e){t.value!==-Number.MAX_VALUE&&(a+=t.value),o!==Number.MIN_VALUE&&(o+=h[i][e].value)})),t.forEach(function(i,l){t[l].key===e&&(void 0!==n.yaxis[e].min&&(o="function"==typeof n.yaxis[e].min?n.yaxis[e].min(r.minY):n.yaxis[e].min),void 0!==n.yaxis[e].max&&(a="function"==typeof n.yaxis[e].max?n.yaxis[e].max(r.maxY):n.yaxis[e].max),s.setYScaleForIndex(e,o,a))})})})}},{key:"autoScaleY",value:function(t,e,i){t||(t=this);var s=t.w;if(s.globals.isMultipleYAxis||s.globals.collapsedSeries.length)return console.warn("autoScaleYaxis not supported in a multi-yaxis chart."),e;var n=s.globals.seriesX[0],r=s.config.chart.stacked;return e.forEach(function(t,o){for(var a=0,l=0;l<n.length;l++)if(n[l]>=i.xaxis.min){a=l;break}var c,h,d=s.globals.minYArr[o],u=s.globals.maxYArr[o],p=s.globals.stackedSeriesTotals;
vendor: 5,132 bytes, line 2
2s.globals.series.forEach(function(o,l){var f=o[a];r?(f=p[a],c=h=f,p.forEach(function(t,e){n[e]<=i.xaxis.max&&n[e]>=i.xaxis.min&&(t>h&&null!==t&&(h=t),o[e]<c&&null!==o[e]&&(c=o[e]))})):(c=h=f,o.forEach(function(t,e){if(n[e]<=i.xaxis.max&&n[e]>=i.xaxis.min){var r=t,o=t;s.globals.series.forEach(function(i,s){null!==t&&(r=Math.min(i[e],r),o=Math.max(i[e],o))}),o>h&&null!==o&&(h=o),r<c&&null!==r&&(c=r)}})),void 0===c&&void 0===h&&(c=d,h=u),h*=h<0?.9:1.1,0==(c*=c<0?1.1:.9)&&0===h&&(c=-1,h=1),h<0&&h<u&&(h=u),c<0&&c>d&&(c=d),e.length>1?(e[l].min=void 0===t.min?c:t.min,e[l].max=void 0===t.max?h:t.max):(e[0].min=void 0===t.min?c:t.min,e[0].max=void 0===t.max?h:t.max)})}),e}}]),t}(),q=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.scales=new $(e)}return a(t,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n=this.w.config,r=this.w.globals,o=-Number.MAX_VALUE,a=Number.MIN_VALUE;null===s&&(s=t+1);var l=r.series,c=l,h=l;"candlestick"===n.chart.type?(c=r.seriesCandleL,h=r.seriesCandleH):"boxPlot"===n.chart.type?(c=r.seriesCandleO,h=r.seriesCandleC):r.isRangeData&&(c=r.seriesRangeStart,h=r.seriesRangeEnd);for(var d=t;d<s;d++){r.dataPoints=Math.max(r.dataPoints,l[d].length),r.categoryLabels.length&&(r.dataPoints=r.categoryLabels.filter(function(t){return void 0!==t}).length),r.labels.length&&"datetime"!==n.xaxis.type&&0!==r.series.reduce(function(t,e){return t+e.length},0)&&(r.dataPoints=Math.max(r.dataPoints,r.labels.length));for(var u=0;u<r.series[d].length;u++){var p=l[d][u];null!==p&&b.isNumber(p)?(void 0!==h[d][u]&&(o=Math.max(o,h[d][u]),e=Math.min(e,h[d][u])),void 0!==c[d][u]&&(e=Math.min(e,c[d][u]),i=Math.max(i,c[d][u])),"candlestick"!==this.w.config.chart.type&&"boxPlot"!==this.w.config.chart.type&&"rangeArea"===this.w.config.chart.type&&"rangeBar"===this.w.config.chart.type||("candlestick"!==this.w.config.chart.type&&"boxPlot"!==this.w.config.chart.type||void 0!==r.seriesCandleC[d][u]&&(o=Math.max(o,r.seriesCandleO[d][u]),o=Math.max(o,r.seriesCandleH[d][u]),o=Math.max(o,r.seriesCandleL[d][u]),o=Math.max(o,r.seriesCandleC[d][u]),"boxPlot"===this.w.config.chart.type&&(o=Math.max(o,r.seriesCandleM[d][u]))),!n.series[d].type||"candlestick"===n.series[d].type&&"boxPlot"===n.series[d].type&&"rangeArea"===n.series[d].type&&"rangeBar"===n.series[d].type||(o=Math.max(o,r.series[d][u]),e=Math.min(e,r.series[d][u])),i=o),r.seriesGoals[d]&&r.seriesGoals[d][u]&&Array.isArray(r.seriesGoals[d][u])&&r.seriesGoals[d][u].forEach(function(t){a!==Number.MIN_VALUE&&(a=Math.min(a,t.value),e=a),o=Math.max(o,t.value),i=o}),b.isFloat(p)&&(p=b.noExponents(p),r.yValueDecimal=Math.max(r.yValueDecimal,p.toString().split(".")[1].length)),a>c[d][u]&&c[d][u]<0&&(a=c[d][u])):r.hasNullValues=!0}}return"rangeBar"===n.chart.type&&r.seriesRangeStart.length&&r.isBarHorizontal&&(a=e),"bar"===n.chart.type&&(a<0&&o<0&&(o=0),a===Number.MIN_VALUE&&(a=0)),{minY:a,maxY:o,lowestY:e,highestY:i}}},{key:"setYRange",value:function(){var t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(t.isMultipleYAxis)for(var s=0;s<t.series.length;s++){var n=this.getMinYMaxY(s,i,null,s+1);t.minYArr.push(n.minY),t.maxYArr.push(n.maxY),i=n.lowestY}var r=this.getMinYMaxY(0,i,null,t.series.length);if(t.minY=r.minY,t.maxY=r.maxY,i=r.lowestY,e.chart.stacked&&this._setStackedMinMax(),("line"===e.chart.type||"area"===e.chart.type||"candlestick"===e.chart.type||"boxPlot"===e.chart.type||"rangeBar"===e.chart.type&&!t.isBarHorizontal)&&t.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==t.maxY){var o=t.maxY-i;(i>=0&&i<=10||void 0!==e.yaxis[0].min||void 0!==e.yaxis[0].max)&&(o=0),t.minY=i-5*o/100,i>0&&t.minY<0&&(t.minY=0),t.maxY=t.maxY+5*o/100}return e.yaxis.forEach(function(e,i){void 0!==e.max&&("number"==typeof e.max?t.maxYArr[i]=e.max:"function"==typeof e.max&&(t.maxYArr[i]=e.max(t.isMultipleYAxis?t.maxYArr[i]:t.maxY)),t.maxY=t.maxYArr[i]),void 0!==e.min&&("number"==typeof e.min?t.minYArr[i]=e.min:"function"==typeof e.min&&(t.minYArr[i]=e.min(t.isMultipleYAxis?t.minYArr[i]===Number.MIN_VALUE?0:t.minYArr[i]:t.minY)),t.minY=t.minYArr[i])}),t.isBarHorizontal&&["min","max"].forEach(function(i){void 0!==e.xaxis[i]&&"number"==typeof e.xaxis[i]&&("min"===i?t.minY=e.xaxis[i]:t.maxY=e.xaxis[i])}),t.isMultipleYAxis?(this.scales.setMultipleYScales(),t.minY=i,t.yAxisScale.forEach(function(e,i){t.minYArr[i]=e.niceMin,t.maxYArr[i]=e.niceMax})):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.yAxisScale[0].niceMin,t.maxYArr[0]=t.yAxisScale[0].niceMax),{minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,yAxisScale:t.yAxisScale}}},{key:"setXRange",value:function(){var t=this.w.globals,e=this.w.config,i="numeric"===e.xaxis.type||"datetime"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvi
2ded||t.noLabelsProvided||t.isXNumeric;if(t.isXNumeric&&function(){for(var e=0;e<t.series.length;e++)if(t.labels[e])for(var i=0;i<t.labels[e].length;i++)null!==t.labels[e][i]&&b.isNumber(t.labels[e][i])&&(t.maxX=Math.max(t.maxX,t.labels[e][i]),t.initialMaxX=Math.max(t.maxX,t.labels[e][i]),t.minX=Math.min(t.minX,t.labels[e][i]),t.initialMinX=Math.min(t.minX,t.labels[e][i]))}(),t.noLabelsProvided&&0===e.xaxis.categories.length&&(t.maxX=t.labels[t.labels.length-1],t.initialMaxX=t.labels[t.labels.length-1],t.minX=1,t.initialMinX=1),t.isXNumeric||t.noLabelsProvided||t.dataFormatXNumeric){var s;if(void 0===e.xaxis.tickAmount?(s=Math.round(t.svgWidth/150),"numeric"===e.xaxis.type&&t.dataPoints<30&&(s=t.dataPoints-1),s>t.dataPoints&&0!==t.dataPoints&&(s=t.dataPoints-1)):"dataPoints"===e.xaxis.tickAmount?(t.series.length>1&&(s=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric&&(s=t.maxX-t.minX-1)):s=e.xaxis.tickAmount,t.xTickAmount=s,void 0!==e.xaxis.max&&"number"==typeof e.xaxis.max&&(t.maxX=e.xaxis.max),void 0!==e.xaxis.min&&"number"==typeof e.xaxis.min&&(t.minX=e.xaxis.min),void 0!==e.xaxis.range&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!t.dataFormatXNumeric){for(var n=[],r=t.minX-1;r<t.maxX;r++)n.push(r+1);t.xAxisScale={result:n,niceMin:n[0],niceMax:n[n.length-1]}}else t.xAxisScale=this.scales.setXScale(t.minX,t.maxX);else t.xAxisScale=this.scales.linearScale(0,s,s,0,e.xaxis.stepSize),t.noLabelsProvided&&t.labels.length>0&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,s-1,0,e.xaxis.stepSize),t.seriesX=t.labels.slice());i&&(t.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&t.labels.length&&(t.xTickAmount=t.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}},{key:"setZRange",value:function(){var t=this.w.globals;if(t.isDataXYZ)for(var e=0;e<t.series.length;e++)if(void 0!==t.seriesZ[e])for(var i=0;i<t.seriesZ[e].length;i++)null!==t.seriesZ[e][i]&&b.isNumber(t.seriesZ[e][i])&&(t.maxZ=Math.max(t.maxZ,t.seriesZ[e][i]),t.minZ=Math.min(t.minZ,t.seriesZ[e][i]))}},{key:"_handleSingleDataPoint",value:function(){var t=this.w.globals,e=this.w.config;if(t.minX===t.maxX){var i=new O(this.ctx);if("datetime"===e.xaxis.type){var s=i.getDate(t.minX);e.xaxis.labels.datetimeUTC?s.setUTCDate(s.getUTCDate()-2):s.setDate(s.getDate()-2),t.minX=new Date(s).getTime();var n=i.getDate(t.maxX);e.xaxis.labels.datetimeUTC?n.setUTCDate(n.getUTCDate()+2):n.setDate(n.getDate()+2),t.maxX=new Date(n).getTime()}else("numeric"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided)&&(t.minX=t.minX-2,t.initialMinX=t.minX,t.maxX=t.maxX+2,t.initialMaxX=t.maxX)}}},{key:"_getMinXDiff",value:function(){var t=this.w.globals;t.isXNumeric&&t.seriesX.forEach(function(e,i){1===e.length&&e.push(t.seriesX[t.maxValsInArrayIndex][t.seriesX[t.maxValsInArrayIndex].length-1]);var s=e.slice();s.sort(function(t,e){return t-e}),s.forEach(function(e,i){if(i>0){var n=e-s[i-1];n>0&&(t.minXDiff=Math.min(n,t.minXDiff))}}),1!==t.dataPoints&&t.minXDiff!==Number.MAX_VALUE||(t.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var t=this,e=this.w.globals;if(e.series.length){var i=e.seriesGroups;i.length||(i=[this.w.config.series.map(function(t){return t.name})]);var s={},n={};i.forEach(function(i){s[i]=[],n[i]=[],t.w.config.series.map(function(t,e){return i.indexOf(t.name)>-1?e:null}).filter(function(t){return null!==t}).forEach(function(r){for(var o=0;o<e.series[e.maxValsInArrayIndex].length;o++){var a,l;void 0===s[i][o]&&(s[i][o]=0,n[i][o]=0),(t.w.config.chart.stacked&&!e.comboCharts||t.w.config.chart.stacked&&e.comboCharts&&(!t.w.config.chart.stackOnlyBar||"bar"===(null===(a=t.w.config.series)||void 0===a||null===(l=a[r])||void 0===l?void 0:l.type)))&&null!==e.series[r][o]&&b.isNumber(e.series[r][o])&&(e.series[r][o]>0?s[i][o]+=parseFloat(e.series[r][o])+1e-4:n[i][o]+=parseFloat(e.series[r][o]))}})}),Object.entries(s).forEach(function(t){var i=f(t,1)[0];
vendor: 18,266 bytes, line 2
2s[i].forEach(function(t,r){e.maxY=Math.max(e.maxY,s[i][r]),e.minY=Math.min(e.minY,n[i][r])})})}}}]),t}(),K=function(){function t(e,i){r(this,t),this.ctx=e,this.elgrid=i,this.w=e.w;var s=this.w;this.xaxisFontSize=s.config.xaxis.labels.style.fontSize,this.axisFontFamily=s.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=s.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===s.config.chart.type&&s.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===s.config.xaxis.position&&(this.xAxisoffX=s.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new Y(e)}return a(t,[{key:"drawYaxis",value:function(t){var e=this,i=this.w,s=new w(this.ctx),n=i.config.yaxis[t].labels.style,r=n.fontSize,o=n.fontFamily,a=n.fontWeight,l=s.group({class:"apexcharts-yaxis",rel:t,transform:"translate("+i.globals.translateYAxisX[t]+", 0)"});if(this.axesUtils.isYAxisHidden(t))return l;var c=s.group({class:"apexcharts-yaxis-texts-g"});l.add(c);var h=i.globals.yAxisScale[t].result.length-1,d=i.globals.gridHeight/h,u=i.globals.translateY,p=i.globals.yLabelFormatters[t],f=i.globals.yAxisScale[t].result.slice();f=this.axesUtils.checkForReversedLabels(t,f);var g="";if(i.config.yaxis[t].labels.show)for(var m=function(l){var m=f[l];m=p(m,l,i);var x=i.config.yaxis[t].labels.padding;i.config.yaxis[t].opposite&&0!==i.config.yaxis.length&&(x*=-1);var b="end";i.config.yaxis[t].opposite&&(b="start"),"left"===i.config.yaxis[t].labels.align?b="start":"center"===i.config.yaxis[t].labels.align?b="middle":"right"===i.config.yaxis[t].labels.align&&(b="end");var y=e.axesUtils.getYAxisForeColor(n.colors,t),v=i.config.yaxis[t].labels.offsetY;"heatmap"===i.config.chart.type&&(v-=(i.globals.gridHeight/i.globals.series.length-1)/2);var w=s.drawText({x,y:u+h/10+v+1,text:m,textAnchor:b,fontSize:r,fontFamily:o,fontWeight:a,maxWidth:i.config.yaxis[t].labels.maxWidth,foreColor:Array.isArray(y)?y[l]:y,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+n.cssClass});l===h&&(g=w),c.add(w);var S=document.createElementNS(i.globals.SVGNS,"title");if(S.textContent=Array.isArray(m)?m.join(" "):m,w.node.appendChild(S),0!==i.config.yaxis[t].labels.rotate){var k=s.rotateAroundCenter(g.node),C=s.rotateAroundCenter(w.node);w.node.setAttribute("transform","rotate(".concat(i.config.yaxis[t].labels.rotate," ").concat(k.x," ").concat(C.y,")"))}u+=d},x=h;x>=0;x--)m(x);if(void 0!==i.config.yaxis[t].title.text){var b=s.group({class:"apexcharts-yaxis-title"}),y=0;i.config.yaxis[t].opposite&&(y=i.globals.translateYAxisX[t]);var v=s.drawText({x:y,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[t].title.offsetY,text:i.config.yaxis[t].title.text,textAnchor:"end",foreColor:i.config.yaxis[t].title.style.color,fontSize:i.config.yaxis[t].title.style.fontSize,fontWeight:i.config.yaxis[t].title.style.fontWeight,fontFamily:i.config.yaxis[t].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[t].title.style.cssClass});b.add(v),l.add(b)}var S=i.config.yaxis[t].axisBorder,k=31+S.offsetX;if(i.config.yaxis[t].opposite&&(k=-31-S.offsetX),S.show){var C=s.drawLine(k,i.globals.translateY+S.offsetY-2,k,i.globals.gridHeight+i.globals.translateY+S.offsetY+2,S.color,0,S.width);l.add(C)}return i.config.yaxis[t].axisTicks.show&&this.axesUtils.drawYAxisTicks(k,h,S,i.config.yaxis[t].axisTicks,t,d,l),l}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new w(this.ctx),s=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),n=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});s.add(n);var r=e.globals.yAxisScale[t].result.length-1,o=e.globals.gridWidth/r+.1,a=o+e.config.xaxis.labels.offsetX,l=e.globals.xLabelFormatter,c=e.globals.yAxisScale[t].result.slice(),h=e.globals.timescaleLabels;h.length>0&&(this.xaxisLabels=h.slice(),r=(c=h.slice()).length),c=this.axesUtils.checkForReversedLabels(t,c);var d=h.length;if(e.config.xaxis.labels.show)for(var u=d?0:r;d?u<d:u>=0;d?u++:u--){var p=c[u];p=l(p,u,e);var f=e.globals.gridWidth+e.globals.padHorizontal-(a-o+e.config.xaxis.labels.offsetX);if(h.length){var g=this.axesUtils.getLabel(c,h,f,u,this.drawnLabels,this.xaxisFontSize);f=g.x,p=g.text,this.drawnLabels.push(g.text),0===u&&e.globals.skipFirstTimelinelabel&&(p=""),u===c.length-1&&e.globals.skipLastTimelinelabel&&(p="")}var m=i.drawText({x:f,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-("top"===e.config.xaxis.position?e.globals.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:p,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});n.add(m),m.tspan(p);var x=document.createElementNS(e.globals.SVGNS,"title");x.textContent=p,m.node.appendChild(x),a+=o}return this.inversedYAxisTitleText(s),this.inversedYAxisBorder(s),s}},{key:"inversedYAxisBorder",value:function(t){var e=this.w,i=new w(this.ctx),s=e.config.xaxis.axisBorder;if(s.show){var n=0;"bar"===e.config.chart.type&&e.globals.isXNumeric&&(n-=15);var r=i.drawLine(e.globals.padHorizontal+n+s.offsetX,this.xAxisoffX,e.globals.gridWidth,this.xAxisoffX,s.color,0,s.height);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(r):t.add(r)}}},{key:"inversedYAxisTitleText",value:function(t){var e=this.w,i=new w(this.ctx);if(void 0!==e.config.xaxis.title.text){var s=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),n=i.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(e.config.xaxis.title.style.fontSize)+e.config.xaxis.title.offsetY+20,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});s.add(n),t.add(s)}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,s=new w(this.ctx),n={width:0,height:0},r={width:0,height:0},o=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g"));null!==o&&(n=o.getBoundingClientRect());var a=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-title text"));if(null!==a&&(r=a.getBoundingClientRect()),null!==a){var l=this.xPaddingForYAxisTitle(t,n,r,e);a.setAttribute("x",l.xPos-(e?10:0))}if(null!==a){var c=s.rotateAroundCenter(a);a.setAttribute("transform","rotate(".concat(e?-1*i.config.yaxis[t].title.rotate:i.config.yaxis[t].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,s){var n=this.w,r=0,o=0,a=10;return void 0===n.config.yaxis[t].title.text||t<0?{xPos:o,padd:0}:(s?(o=e.width+n.config.yaxis[t].title.offsetX+i.width/2+a/2,0===(r+=1)&&(o-=a/2)):(o=-1*e.width+n.config.yaxis[t].title.offsetX+a/2+i.width/2,n.globals.isBarHorizontal&&(a=25,o=-1*e.width-n.config.yaxis[t].title.offsetX-a)),{xPos:o,padd:a})}},{key:"setYAxisXPosition",value:function(t,e){var i=this.w,s=0,n=0,r=18,o=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map(function(a,l){var c=i.globals.ignoreYAxisIndexes.indexOf(l)>-1||!a.show||a.floating||0===t[l].width,h=t[l].width+e[l].width;a.opposite?i.globals.isBarHorizontal?(n=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[l]=n-a.labels.offsetX):(n=i.globals.gridWidth+i.globals.translateX+o,c||(o=o+h+20),i.globals.translateYAxisX[l]=n-a.labels.offsetX+20):(s=i.globals.translateX-r,c||(r=r+h+20),i.globals.translateYAxisX[l]=s+a.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(e=b.listToArray(e)).forEach(function(e,i){var s=t.config.yaxis[i];if(s&&!s.floating&&void 0!==s.labels.align){var n=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"));r=b.listToArray(r);var o=n.getBoundingClientRect();"left"===s.labels.align?(r.forEach(function(t,e){t.setAttribute("text-anchor","start")}),s.opposite||n.setAttribute("transform","translate(-".concat(o.width,", 0)"))):"center"===s.labels.align?(r.forEach(function(t,e){t.setAttribute("text-anchor","middle")}),n.setAttribute("transform","translate(".concat(o.width/2*(s.opposite?1:-1),", 0)"))):"right"===s.labels.align&&(r.forEach(function(t,e){t.setAttribute("text-anchor","end")}),s.opposite&&n.setAttribute("transform","translate(".concat(o.width,", 0)")))}})}}]),t}(),Z=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.documentEvent=b.bind(this.documentEvent,this)}return a(t,[{key:"addEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)?i.globals.events[t].push(e):i.globals.events[t]=[e]}},{key:"removeEventListener",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){var s=i.globals.events[t].indexOf(e);-1!==s&&i.globals.events[t].splice(s,1)}}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var s=i.globals.events[t],n=s.length,r=0;r<n;r++)s[r].apply(null,e)}}},{key:"setupEventHandlers",value:function(){var t=this,e=this.w,i=this.ctx,s=e.globals.dom.baseEl.querySelector(e.globals.chartClass);this.ctx.eventList.forEach(function(t){s.addEventListener(t,function(t){var s=Object.assign({},e,{seriesIndex:e.globals.capturedSeriesIndex,dataPointIndex:e.globals.capturedDataPointIndex});"mousemove"===t.type||"touchmove"===t.type?"function"==typeof e.config.chart.events.mouseMove&&e.config.chart.events.mouseMove(t,i,s):"mouseleave"===t.type||"touchleave"===t.type?"function"==typeof e.config.chart.events.mouseLeave&&e.config.chart.events.mouseLeave(t,i,s):("mouseup"===t.type&&1===t.which||"touchend"===t.type)&&("function"==typeof e.config.chart.events.click&&e.config.chart.events.click(t,i,s),i.ctx.events.fireEvent("click",[t,i,s]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(i){e.globals.dom.baseEl.addEventListener(i,t.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(t){var e=this.w,i=t.target.className;if("click"===t.type){var s=e.globals.dom.baseEl.querySelector(".apexcharts-menu");s&&s.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==i&&s.classList.remove("apexcharts-menu-open")}e.globals.clientX="touchmove"===t.type?t.touches[0].clientX:t.clientX,e.globals.clientY="touchmove"===t.type?t.touches[0].clientY:t.clientY}}]),t}(),J=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"setCurrentLocaleValues",value:function(t){var e=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(e=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=e.filter(function(e){return e.name===t})[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var s=b.extend(M,i);this.w.globals.locale=s.options}}]),t}(),Q=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"drawAxis",value:function(t,e){var i,s,n=this,r=this.w.globals,o=this.w.config,a=new G(this.ctx,e),l=new K(this.ctx,e);r.axisCharts&&"radar"!==t&&(r.isBarHorizontal?(s=l.drawYaxisInversed(0),i=a.drawXaxisInversed(0),r.dom.elGraphical.add(i),r.dom.elGraphical.add(s)):(i=a.drawXaxis(),r.dom.elGraphical.add(i),o.yaxis.map(function(t,e){if(-1===r.ignoreYAxisIndexes.indexOf(e)&&(s=l.drawYaxis(e),r.dom.Paper.add(s),"back"===n.w.config.grid.position)){var i=r.dom.Paper.children()[1];i.remove(),r.dom.Paper.add(i)}})))}}]),t}(),tt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new w(this.ctx),i=new v(this.ctx),s=t.config.xaxis.crosshairs.fill.gradient,n=t.config.xaxis.crosshairs.dropShadow,r=t.config.xaxis.crosshairs.fill.type,o=s.colorFrom,a=s.colorTo,l=s.opacityFrom,c=s.opacityTo,h=s.stops,d=n.enabled,u=n.left,p=n.top,f=n.blur,g=n.color,m=n.opacity,x=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){"gradient"===r&&(x=e.drawGradient("vertical",o,a,l,c,null,h,null));var y=e.drawRect();1===t.config.xaxis.crosshairs.width&&(y=e.drawLine());var S=t.globals.gridHeight;(!b.isNumber(S)||S<0)&&(S=0);var k=t.config.xaxis.crosshairs.width;(!b.isNumber(k)||k<0)&&(k=0),y.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:S,width:k,height:S,fill:x,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),d&&(y=i.dropShadow(y,{left:u,top:p,blur:f,color:g,opacity:m})),t.globals.dom.elGraphical.add(y)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new w(this.ctx),i=t.config.yaxis[0].crosshairs,s=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){var n=e.drawLine(-s,0,t.globals.gridWidth+s,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);n.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(n)}var r=e.drawLine(-s,0,t.globals.gridWidth+s,0,i.stroke.color,0,0);r.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(r)}}]),t}(),et=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"checkResponsiveConfig",value:function(t){var e=this,i=this.w,s=i.config;if(0!==s.responsive.length){var n=s.responsive.slice();n.sort(function(t,e){return t.breakpoint>e.breakpoint?1:e.breakpoint>t.breakpoint?-1:0}).reverse();var r=new R({}),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=n[0].breakpoint,o=window.innerWidth>0?window.innerWidth:screen.width;if(o>s){var a=S.extendArrayProps(r,i.globals.initialConfig,i);t=b.extend(a,t),t=b.extend(i.config,t),e.overrideResponsiveOptions(t)}else for(var l=0;l<n.length;l++)o<n[l].breakpoint&&(t=S.extendArrayProps(r,n[l].options,i),t=b.extend(i.config,t),e.overrideResponsiveOptions(t))};if(t){var a=S.extendArrayProps(r,t,i);a=b.extend(i.config,a),o(a=b.extend(a,t))}else o({})}}},{key:"overrideResponsiveOptions",value:function(t){var e=new R(t).init({responsiveOverride:!0});this.w.config=e}}]),t}(),it=function(){function t(e){r(this,t),this.ctx=e,this.colors=[],this.w=e.w;var i=this.w;this.isColorFn=!1,this.isHeatmapDistributed="treemap"===i.config.chart.type&&i.config.plotOptions.treemap.distributed||"heatmap"===i.config.chart.type&&i.config.plotOptions.heatmap.distributed,this.isBarDistributed=i.config.plotOptions.bar.distributed&&("bar"===i.config.chart.type||"rangeBar"===i.config.chart.type)}return a(t,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var t,e=this,i=this.w,s=new b;if(i.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(i.config.theme.mode)),void 0===i.config.colors||0===(null===(t=i.config.colors)||void 0===t?void 0:t.length)?i.globals.colors=this.predefined():(i.globals.colors=i.config.colors,Array.isArray(i.config.colors)&&i.config.colors.length>0&&"function"==typeof i.config.colors[0]&&(i.globals.colors=i.config.series.map(function(t,s){var n=i.config.colors[s];return n||(n=i.config.colors[0]),"function"==typeof n?(e.isColorFn=!0,n({value:i.globals.axisCharts?i.globals.series[s][0]?i.globals.series[s][0]:0:i.globals.series[s],seriesIndex:s,dataPointIndex:s,w:i})):n}))),i.globals.seriesColors.map(function(t,e){t&&(i.globals.colors[e]=t)}),i.config.theme.monochrome.enabled){var n=[],r=i.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(r=i.globals.series[0].length*i.globals.series.length);for(var o=i.config.theme.monochrome.color,a=1/(r/i.config.theme.monochrome.shadeIntensity),l=i.config.theme.monochrome.shadeTo,c=0,h=0;h<r;h++){var d=void 0;"dark"===l?(d=s.shadeColor(-1*c,o),c+=a):(d=s.shadeColor(c,o),c+=a),n.push(d)}i.globals.colors=n.slice()}var u=i.globals.colors.slice();this.pushExtraColors(i.globals.colors),["fill","stroke"].forEach(function(t){void 0===i.config[t].colors?i.globals[t].colors=e.isColorFn?i.config.colors:u:i.globals[t].colors=i.config[t].colors.slice(),e.pushExtraColors(i.globals[t].colors)}),void 0===i.config.dataLabels.style.colors?i.globals.dataLabels.style.colors=u:i.globals.dataLabels.style.colors=i.config.dataLabels.style.colors.slice(),this.pushExtraColors(i.globals.dataLabels.style.colors,50),void 0===i.config.plotOptions.radar.polygons.fill.colors?i.globals.radarPolygons.fill.colors=["dark"===i.config.theme.mode?"#424242":"none"]:i.globals.radarPolygons.fill.colors=i.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(i.globals.radarPolygons.fill.colors,20),void 0===i.config.markers.colors?i.globals.markers.colors=u:i.globals.markers.colors=i.config.markers.colors.slice(),this.pushExtraColors(i.globals.markers.colors)}},{key:"pushExtraColors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=this.w,n=e||s.globals.series.length;if(null===i&&(i=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===s.config.chart.type&&s.config.plotOptions.heatmap.colorScale.inverse),i&&s.globals.series.length&&(n=s.globals.series[s.globals.maxValsInArrayIndex].length*s.globals.series.length),t.length<n)for(var r=n-t.length,o=0;o<r;o++)t.push(t[o])}},{key:"updateThemeOptions",value:function(t){t.chart=t.chart||{},t.tooltip=t.tooltip||{};var e=t.theme.mode||"light",i=t.theme.palette?t.theme.palette:"dark"===e?"palette4":"palette1",s=t.chart.foreColor?t.chart.foreColor:"dark"===e?"#f6f7f8":"#373d3f";return t.tooltip.theme=e,t.chart.foreColor=s,t.theme.palette=i,t}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#F
2F9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}return this.colors}}]),t}(),st=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(t){var e=this.w,i="title"===t?e.config.title:e.config.subtitle,s=e.globals.svgWidth/2,n=i.offsetY,r="middle";if("left"===i.align?(s=10,r="start"):"right"===i.align&&(s=e.globals.svgWidth-10,r="end"),s+=i.offsetX,n=n+parseInt(i.style.fontSize,10)+i.margin/2,void 0!==i.text){var o=new w(this.ctx).drawText({x:s,y:n,text:i.text,textAnchor:r,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});o.node.setAttribute("class","apexcharts-".concat(t,"-text")),e.globals.dom.Paper.add(o)}}}]),t}(),nt=function(){function t(e){r(this,t),this.w=e.w,this.dCtx=e}return a(t,[{key:"getTitleSubtitleCoords",value:function(t){var e=this.w,i=0,s=0,n="title"===t?e.config.title.floating:e.config.subtitle.floating,r=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(t,"-text"));if(null!==r&&!n){var o=r.getBoundingClientRect();i=o.width,s=e.globals.axisCharts?o.height+5:o.height}return{width:i,height:s}}},{key:"getLegendsRect",value:function(){var t=this.w,e=t.globals.dom.elLegendWrap;t.config.legend.height||"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||(e.style.maxHeight=t.globals.svgHeight/2+"px");var i=Object.assign({},b.getBoundingClientRect(e));return null!==e&&!t.config.legend.floating&&t.config.legend.show?this.dCtx.lgRect={x:i.x,y:i.y,height:i.height,width:0===i.height?0:i.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==t.config.legend.position&&"right"!==t.config.legend.position||1.5*this.dCtx.lgRect.width>t.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(t,e){var i=t;if(this.w.globals.isMultiLineX){var s=e.map(function(t,e){return Array.isArray(t)?t.length:1}),n=Math.max.apply(Math,g(s));i=e[s.indexOf(n)]}return i}}]),t}(),rt=function(){function t(e){r(this,t),this.w=e.w,this.dCtx=e}return a(t,[{key:"getxAxisLabelsCoords",value:function(){var t,e=this.w,i=e.globals.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&0===i.length&&(i=e.globals.categoryLabels),e.globals.timescaleLabels.length>0){var s=this.getxAxisTimeScaleLabelsCoords();t={width:s.width,height:s.height},e.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==e.config.legend.position&&"right"!==e.config.legend.position||e.config.legend.floating?0:this.dCtx.lgRect.width;var n=e.globals.xLabelFormatter,r=b.getLargestStringFromArr(i),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,i);
vendor: 4,142 bytes, line 2
2e.globals.isBarHorizontal&&(o=r=e.globals.yAxisScale[0].result.reduce(function(t,e){return t.length>e.length?t:e},0));var a=new L(this.dCtx.ctx),l=r;r=a.xLabelFormat(n,r,l,{i:void 0,dateFormatter:new O(this.dCtx.ctx).formatDate,w:e}),o=a.xLabelFormat(n,o,l,{i:void 0,dateFormatter:new O(this.dCtx.ctx).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&void 0===r||""===String(r).trim())&&(o=r="1");var c=new w(this.dCtx.ctx),h=c.getTextRects(r,e.config.xaxis.labels.style.fontSize),d=h;if(r!==o&&(d=c.getTextRects(o,e.config.xaxis.labels.style.fontSize)),(t={width:h.width>=d.width?h.width:d.width,height:h.height>=d.height?h.height:d.height}).width*i.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==e.config.xaxis.labels.rotate||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.globals.rotateXLabels=!0;var u=function(t){return c.getTextRects(t,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1)};h=u(r),r!==o&&(d=u(o)),t.height=(h.height>d.height?h.height:d.height)/1.5,t.width=h.width>d.width?h.width:d.width}}else e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var t,e=this.w;if(!e.globals.hasXaxisGroups)return{width:0,height:0};var i,s=(null===(t=e.config.xaxis.group.style)||void 0===t?void 0:t.fontSize)||e.config.xaxis.labels.style.fontSize,n=e.globals.groups.map(function(t){return t.title}),r=b.getLargestStringFromArr(n),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,n),a=new w(this.dCtx.ctx),l=a.getTextRects(r,s),c=l;return r!==o&&(c=a.getTextRects(o,s)),i={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},e.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(void 0!==t.config.xaxis.title.text){var s=new w(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=s.width,i=s.height}return{width:e,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t,e=this.w;this.dCtx.timescaleLabels=e.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map(function(t){return t.value}),s=i.reduce(function(t,e){return void 0===t?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):t.length>e.length?t:e},0);return 1.05*(t=new w(this.dCtx.ctx).getTextRects(s,e.config.xaxis.labels.style.fontSize)).width*i.length>e.globals.gridWidth&&0!==e.config.xaxis.labels.rotate&&(e.globals.overlappingXLabels=!0),t}},{key:"additionalPaddingXLabels",value:function(t){var e=this,i=this.w,s=i.globals,n=i.config,r=n.xaxis.type,o=t.width;s.skipLastTimelinelabel=!1,s.skipFirstTimelinelabel=!1;var a=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal;n.yaxis.forEach(function(t,l){a?(e.dCtx.gridPad.left<o&&(e.dCtx.xPadLeft=o/2+1),e.dCtx.xPadRight=o/2+1):function(t,a){var l;n.yaxis.length>1&&(l=a,-1!==s.collapsedSeriesIndices.indexOf(l))||function(t){if(e.dCtx.timescaleLabels&&e.dCtx.timescaleLabels.length){var a=e.dCtx.timescaleLabels[0],l=e.dCtx.timescaleLabels[e.dCtx.timescaleLabels.length-1].position+o/1.75-e.dCtx.yAxisWidthRight,c=a.position-o/1.75+e.dCtx.yAxisWidthLeft,h="right"===i.config.legend.position&&e.dCtx.lgRect.width>0?e.dCtx.lgRect.width:0;l>s.svgWidth-s.translateX-h&&(s.skipLastTimelinelabel=!0),c<-(t.show&&!t.floating||"bar"!==n.chart.type&&"candlestick"!==n.chart.type&&"rangeBar"!==n.chart.type&&"boxPlot"!==n.chart.type?10:o/1.75)&&(s.skipFirstTimelinelabel=!0)}else"datetime"===r?e.dCtx.gridPad.right<o&&!s.rotateXLabels&&(s.skipLastTimelinelabel=!0):"datetime"!==r&&e.dCtx.gridPad.right<o/2-e.dCtx.yAxisWidthRight&&!s.rotateXLabels&&!i.config.xaxis.labels.trim&&("between"!==i.config.xaxis.tickPlacement||i.globals.isBarHorizontal)&&(e.dCtx.xPadRight=o/2+1)}(t)}(t,l)})}}]),t}(),ot=function(){function t(e){r(this,t),this.w=e.w,this.dCtx=e}
2return a(t,[{key:"getyAxisLabelsCoords",value:function(){var t=this,e=this.w,i=[],s=10,n=new Y(this.dCtx.ctx);return e.config.yaxis.map(function(r,o){var a={seriesIndex:o,dataPointIndex:-1,w:e},l=e.globals.yAxisScale[o],c=0;if(!n.isYAxisHidden(o)&&r.labels.show&&void 0!==r.labels.minWidth&&(c=r.labels.minWidth),!n.isYAxisHidden(o)&&r.labels.show&&l.result.length){var h=e.globals.yLabelFormatters[o],d=l.niceMin===Number.MIN_VALUE?0:l.niceMin,u=l.result.reduce(function(t,e){var i,s;return(null===(i=String(h(t,a)))||void 0===i?void 0:i.length)>(null===(s=String(h(e,a)))||void 0===s?void 0:s.length)?t:e},d),p=u=h(u,a);if(void 0!==u&&0!==u.length||(u=l.niceMax),e.globals.isBarHorizontal){s=0;var f=e.globals.labels.slice();u=b.getLargestStringFromArr(f),u=h(u,{seriesIndex:o,dataPointIndex:-1,w:e}),p=t.dCtx.dimHelpers.getLargestStringFromMultiArr(u,f)}var g=new w(t.dCtx.ctx),m="rotate(".concat(r.labels.rotate," 0 0)"),x=g.getTextRects(u,r.labels.style.fontSize,r.labels.style.fontFamily,m,!1),y=x;u!==p&&(y=g.getTextRects(p,r.labels.style.fontSize,r.labels.style.fontFamily,m,!1)),i.push({width:(c>y.width||c>x.width?c:y.width>x.width?y.width:x.width)+s,height:y.height>x.height?y.height:x.height})}else i.push({width:0,height:0})}),i}},{key:"getyAxisTitleCoords",value:function(){var t=this,e=this.w,i=[];return e.config.yaxis.map(function(e,s){if(e.show&&void 0!==e.title.text){var n=new w(t.dCtx.ctx),r="rotate(".concat(e.title.rotate," 0 0)"),o=n.getTextRects(e.title.text,e.title.style.fontSize,e.title.style.fontFamily,r,!1);i.push({width:o.width,height:o.height})}else i.push({width:0,height:0})}),i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=0,s=0,n=t.globals.yAxisScale.length>1?10:0,r=new Y(this.dCtx.ctx),o=function(o,a){var l,c=t.config.yaxis[a].floating,h=0;o.width>0&&!c?(h=o.width+n,l=a,t.globals.ignoreYAxisIndexes.indexOf(l)>-1&&(h=h-o.width-n)):h=c||r.isYAxisHidden(a)?0:5,t.config.yaxis[a].opposite?s+=h:i+=h,e+=h};return t.globals.yLabelsCoords.map(function(t,e){o(t,e)}),t.globals.yTitleCoords.map(function(t,e){o(t,e)}),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.globals.yLabelsCoords[0].width+t.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=s,e}}]),t}(),at=function(){function t(e){r(this,t),this.w=e.w,this.dCtx=e}return a(t,[{key:"gridPadForColumnsInNumericAxis",value:function(t){var e=this.w;if(e.globals.noData||e.globals.allSeriesCollapsed)return 0;var i=function(t){return"bar"===t||"rangeBar"===t||"candlestick"===t||"boxPlot"===t},s=e.config.chart.type,n=0,r=i(s)?e.config.series.length:1;if(e.globals.comboBarCount>0&&(r=e.globals.comboBarCount),e.globals.collapsedSeries.forEach(function(t){i(t.type)&&(r-=1)}),e.config.chart.stacked&&(r=1),(i(s)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&r>0){var o,a,l=Math.abs(e.globals.initialMaxX-e.globals.initialMinX);l<=3&&(l=e.globals.dataPoints),o=l/t,e.globals.minXDiff&&e.globals.minXDiff/o>0&&(a=e.globals.minXDiff/o),a>t/2&&(a/=2),(n=a/r*parseInt(e.config.plotOptions.bar.columnWidth,10)/100)<1&&(n=1),n=n/(r>1?1:1.5)+5,e.globals.barPadForNumericAxis=n}return n}},{key:"gridPadFortitleSubtitle",value:function(){var t=this,e=this.w,i=e.globals,s=this.dCtx.isSparkline||!e.globals.axisCharts?0:10;["title","subtitle"].forEach(function(i){void 0!==e.config[i].text?s+=e.config[i].margin:s+=t.dCtx.isSparkline||!e.globals.axisCharts?0:5}),!e.config.legend.show||"bottom"!==e.config.legend.position||e.config.legend.floating||e.globals.axisCharts||(s+=10);var n=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),r=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-n.height-r.height-s,i.translateY=i.translateY+n.height+r.height+s}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w,s=new Y(this.dCtx.ctx);i.config.yaxis.map(function(n,r){-1!==i.globals.ignoreYAxisIndexes.indexOf(r)||n.floating||s.isYAxisHidden(r)||(n.opposite&&(i.globals.translateX=i.globals.translateX-(e[r].width+t[r].width)-parseInt(i.config.yaxis[r].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))})}}]),t}(),lt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new nt(this),this.dimYAxis=new ot(this),this.dimXAxis=new rt(this),this.dimGrid=new at(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return a(t,[{key:"plotCoords",value:function(){var t=this,e=this.w,i=e.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&((e.config.markers.discrete.length>0||e.config.markers.size>
vendor: 4,301 bytes, line 2
20)&&Object.entries(this.gridPad).forEach(function(e){var i=f(e,2),s=i[0],n=i[1];t.gridPad[s]=Math.max(n,t.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(e.config.stroke.width/2,this.gridPad.top),this.gridPad.bottom=Math.max(e.config.stroke.width/2,this.gridPad.bottom)),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var s=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*s,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(s>0?s+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var t=this,e=this.w,i=e.globals,s=this.dimYAxis.getyAxisLabelsCoords(),n=this.dimYAxis.getyAxisTitleCoords();e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map(function(t,i){e.globals.yLabelsCoords.push({width:s[i].width,index:i}),e.globals.yTitleCoords.push({width:n[i].width,index:i})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var r=this.dimXAxis.getxAxisLabelsCoords(),o=this.dimXAxis.getxAxisGroupLabelsCoords(),a=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(r,a,o),i.translateXAxisY=e.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=e.globals.rotateXLabels&&e.globals.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+e.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+e.config.xaxis.labels.offsetX;var l=this.yAxisWidth,c=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-a.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-r.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var h=10;("radar"===e.config.chart.type||this.isSparkline)&&(l=0,c=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===e.config.chart.type)&&(l=0,c=0,h=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(r);var d=function(){i.translateX=l,i.gridHeight=i.svgHeight-t.lgRect.height-c-(t.isSparkline||"treemap"===e.config.chart.type?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-l};switch("top"===e.config.xaxis.position&&(h=i.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":i.translateY=h,d();break;case"top":i.translateY=this.lgRect.height+h,d();break;case"left":i.translateY=h,i.translateX=this.lgRect.width+l,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-l;break;case"right":i.translateY=h,i.translateX=l,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-l-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(n,s),new K(this.ctx).setYAxisXPosition(s,n)}},{key:"setDimensionsForNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=t.config,s=0;t.config.legend.show&&!t.config.legend.floating&&(s=20);var n="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",r=i.plotOptions[n].offsetY,o=i.plotOptions[n].offsetX;if(!i.legend.show||i.legend.floating)return e.gridHeight=e.svgHeight-i.grid.padding.left+i.grid.padding.right,e.gridWidth=e.gridHeight,e.translateY=r,void(e.translateX=o+(e.svgWidth-e.gridWidth)/2);switch(i.legend.position){case"bottom":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=r-10,e.translateX=o+(e.svgWidth-e.gridWidth)/2;break;case"top":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=this.lgRect.height+r+10,e.translateX=o+(e.svgWidth-e.gridWidth)/2;break;case"left":e.gridWidth=e.svgWidth-this.lgRect.width-s,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=r,e.translateX=o+this.lgRect.width+s;break;case"right":e.gridWidth=e.svgWidth-this.lgRect.width-s-5,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=r,e.translateX=o+10;break;default:throw new Error("Legend position not supported")}}}
vendor: 4,434 bytes, line 2
2,{key:"conditionalChecksForAxisCoords",value:function(t,e,i){var s=this.w,n=s.globals.hasXaxisGroups?2:1,r=i.height+t.height+e.height,o=s.globals.isMultiLineX?1.2:s.globals.LINE_HEIGHT_RATIO,a=s.globals.rotateXLabels?22:10,l=s.globals.rotateXLabels&&"bottom"===s.config.legend.position?10:0;this.xAxisHeight=r*o+n*a+l,this.xAxisWidth=t.width,this.xAxisHeight-e.height>s.config.xaxis.labels.maxHeight&&(this.xAxisHeight=s.config.xaxis.labels.maxHeight),s.config.xaxis.labels.minHeight&&this.xAxisHeight<s.config.xaxis.labels.minHeight&&(this.xAxisHeight=s.config.xaxis.labels.minHeight),s.config.xaxis.floating&&(this.xAxisHeight=0);var c=0,h=0;s.config.yaxis.forEach(function(t){c+=t.labels.minWidth,h+=t.labels.maxWidth}),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>h&&(this.yAxisWidth=h)}}]),t}(),ct=function(){function t(e){r(this,t),this.w=e.w,this.lgCtx=e}return a(t,[{key:"getLegendStyles",value:function(){var t,e,i,s=document.createElement("style");s.setAttribute("type","text/css");var n=(null===(t=this.lgCtx.ctx)||void 0===t||null===(e=t.opts)||void 0===e||null===(i=e.chart)||void 0===i?void 0:i.nonce)||this.w.config.chart.nonce;n&&s.setAttribute("nonce",n);var r=document.createTextNode("\n      .apexcharts-legend {\n        display: flex;\n        overflow: auto;\n        padding: 0 10px;\n      }\n      .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\n        flex-wrap: wrap\n      }\n      .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n        flex-direction: column;\n        bottom: 0;\n      }\n      .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n        justify-content: flex-start;\n      }\n      .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\n        justify-content: center;\n      }\n      .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\n        justify-content: flex-end;\n      }\n      .apexcharts-legend-series {\n        cursor: pointer;\n        line-height: normal;\n      }\n      .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{\n        display: flex;\n        align-items: center;\n      }\n      .apexcharts-legend-text {\n        position: relative;\n        font-size: 14px;\n      }\n      .apexcharts-legend-text *, .apexcharts-legend-marker * {\n        pointer-events: none;\n      }\n      .apexcharts-legend-marker {\n        position: relative;\n        display: inline-block;\n        cursor: pointer;\n        margin-right: 3px;\n        border-style: solid;\n      }\n\n      .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\n        display: inline-block;\n      }\n      .apexcharts-legend-series.apexcharts-no-click {\n        cursor: auto;\n      }\n      .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n        display: none !important;\n      }\n      .apexcharts-inactive-legend {\n        opacity: 0.45;\n      }");return s.appendChild(r),s}},{key:"getLegendBBox",value:function(){var t=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),e=t.width;return{clwh:t.height,clww:e}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(t,e){var i=this,s=this.w;if(s.globals.axisCharts||"radialBar"===s.config.chart.type){s.globals.resized=!0;var n=null,r=null;s.globals.risingSeries=[],s.globals.axisCharts?(n=s.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),r=parseInt(n.getAttribute("data:realIndex"),10)):(n=s.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),r=parseInt(n.getAttribute("rel"),10)-1),e?[{cs:s.globals.collapsedSeries,csi:s.globals.collapsedSeriesIndices},{cs:s.globals.ancillaryCollapsedSeries,csi:s.globals.ancillaryCollapsedSeriesIndices}
vendor: 14,472 bytes, line 2
2].forEach(function(t){i.riseCollapsedSeries(t.cs,t.csi,r)}):this.hideSeries({seriesEl:n,realIndex:r})}else{var o=s.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),a=s.config.chart.type;if("pie"===a||"polarArea"===a||"donut"===a){var l=s.config.plotOptions.pie.donut.labels;new w(this.lgCtx.ctx).pathMouseDown(o.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(o.members[0].node,l)}o.fire("click")}}},{key:"hideSeries",value:function(t){var e=t.seriesEl,i=t.realIndex,s=this.w,n=b.clone(s.config.series);if(s.globals.axisCharts){var r=!1;if(s.config.yaxis[i]&&s.config.yaxis[i].show&&s.config.yaxis[i].showAlways&&(r=!0,s.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(s.globals.ancillaryCollapsedSeries.push({index:i,data:n[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),s.globals.ancillaryCollapsedSeriesIndices.push(i))),!r){s.globals.collapsedSeries.push({index:i,data:n[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),s.globals.collapsedSeriesIndices.push(i);var o=s.globals.risingSeries.indexOf(i);s.globals.risingSeries.splice(o,1)}}else s.globals.collapsedSeries.push({index:i,data:n[i]}),s.globals.collapsedSeriesIndices.push(i);for(var a=e.childNodes,l=0;l<a.length;l++)a[l].classList.contains("apexcharts-series-markers-wrap")&&(a[l].classList.contains("apexcharts-hide")?a[l].classList.remove("apexcharts-hide"):a[l].classList.add("apexcharts-hide"));s.globals.allSeriesCollapsed=s.globals.collapsedSeries.length===s.config.series.length,n=this._getSeriesBasedOnCollapsedState(n),this.lgCtx.ctx.updateHelpers._updateSeries(n,s.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(t,e,i){var s=this.w,n=b.clone(s.config.series);if(t.length>0){for(var r=0;r<t.length;r++)t[r].index===i&&(s.globals.axisCharts?(n[i].data=t[r].data.slice(),t.splice(r,1),e.splice(r,1),s.globals.risingSeries.push(i)):(n[i]=t[r].data,t.splice(r,1),e.splice(r,1),s.globals.risingSeries.push(i)));n=this._getSeriesBasedOnCollapsedState(n),this.lgCtx.ctx.updateHelpers._updateSeries(n,s.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(t){var e=this.w;return e.globals.axisCharts?t.forEach(function(i,s){e.globals.collapsedSeriesIndices.indexOf(s)>-1&&(t[s].data=[])}):t.forEach(function(i,s){e.globals.collapsedSeriesIndices.indexOf(s)>-1&&(t[s]=0)}),t}}]),t}(),ht=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new ct(this)}return a(t,[{key:"init",value:function(){var t=this.w,e=t.globals,i=t.config;if((i.legend.showForSingleSeries&&1===e.series.length||this.isBarsDistributed||e.series.length>1||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),b.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var t=this,e=this.w,i=e.config.legend.fontFamily,s=e.globals.seriesNames,n=e.globals.colors.slice();if("heatmap"===e.config.chart.type){var r=e.config.plotOptions.heatmap.colorScale.ranges;s=r.map(function(t){return t.name?t.name:t.from+" - "+t.to}),n=r.map(function(t){return t.color})}else this.isBarsDistributed&&(s=e.globals.labels.slice());e.config.legend.customLegendItems.length&&(s=e.config.legend.customLegendItems);for(var o=e.globals.legendFormatter,a=e.config.legend.inverseOrder,l=a?s.length-1:0;a?l>=0:l<=s.length-1;a?l--:l++){var c,h=o(s[l],{seriesIndex:l,w:e}),d=!1,u=!1;if(e.globals.collapsedSeries.length>0)for(var p=0;p<e.globals.collapsedSeries.length;p++)e.globals.collapsedSeries[p].index===l&&(d=!0);if(e.globals.ancillaryCollapsedSeriesIndices.length>0)for(var f=0;f<e.globals.ancillaryCollapsedSeriesIndices.length;f++)e.globals.ancillaryCollapsedSeriesIndices[f]===l&&(u=!0);var g=document.createElement("span");g.classList.add("apexcharts-legend-marker");var m=e.config.legend.markers.offsetX,x=e.config.legend.markers.offsetY,y=e.config.legend.markers.height,v=e.config.legend.markers.width,k=e.config.legend.markers.strokeWidth,C=e.config.legend.markers.strokeColor,A=e.config.legend.markers.radius,E=g.style;E.background=n[l],E.color=n[l],E.setProperty("background",n[l],"important"),e.config.legend.markers.fillColors&&e.config.legend.markers.fillColors[l]&&(E.background=e.config.legend.markers.fillColors[l]),void 0!==e.globals.seriesColors[l]&&(E.background=e.globals.seriesColors[l],E.color=e.globals.seriesColors[l]),E.height=Array.isArray(y)?parseFloat(y[l])+"px":parseFloat(y)+"px",E.width=Array.isArray(v)?parseFloat(v[l])+"px":parseFloat(v)+"px",E.left=(Array.isArray(m)?parseFloat(m[l]):parseFloat(m))+"px",E.top=(Array.isArray(x)?parseFloat(x[l]):parseFloat(x))+"px",E.borderWidth=Array.isArray(k)?k[l]:k,E.borderColor=Array.isArray(C)?C[l]:C,E.borderRadius=Array.isArray(A)?parseFloat(A[l])+"px":parseFloat(A)+"px",e.config.legend.markers.customHTML&&(Array.isArray(e.config.legend.markers.customHTML)?e.config.legend.markers.customHTML[l]&&(g.innerHTML=e.config.legend.markers.customHTML[l]()):g.innerHTML=e.config.legend.markers.customHTML()),w.setAttrs(g,{rel:l+1,"data:collapsed":d||u}),(d||u)&&g.classList.add("apexcharts-inactive-legend");var M=document.createElement("div"),T=document.createElement("span");T.classList.add("apexcharts-legend-text"),T.innerHTML=Array.isArray(h)?h.join(" "):h;var P=e.config.legend.labels.useSeriesColors?e.globals.colors[l]:Array.isArray(e.config.legend.labels.colors)?null===(c=e.config.legend.labels.colors)||void 0===c?void 0:c[l]:e.config.legend.labels.colors;P||(P=e.config.chart.foreColor),T.style.color=P,T.style.fontSize=parseFloat(e.config.legend.fontSize)+"px",T.style.fontWeight=e.config.legend.fontWeight,T.style.fontFamily=i||e.config.chart.fontFamily,w.setAttrs(T,{rel:l+1,i:l,"data:default-text":encodeURIComponent(h),"data:collapsed":d||u}),M.appendChild(g),M.appendChild(T);var O=new S(this.ctx);e.config.legend.showForZeroSeries||0===O.getSeriesTotalByIndex(l)&&O.seriesHaveSameValues(l)&&!O.isSeriesNull(l)&&-1===e.globals.collapsedSeriesIndices.indexOf(l)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&M.classList.add("apexcharts-hidden-zero-series"),e.config.legend.showForNullSeries||O.isSeriesNull(l)&&-1===e.globals.collapsedSeriesIndices.indexOf(l)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&M.classList.add("apexcharts-hidden-null-series"),e.globals.dom.elLegendWrap.appendChild(M),e.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(e.config.legend.horizontalAlign)),e.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+e.config.legend.position),M.classList.add("apexcharts-legend-series"),M.style.margin="".concat(e.config.legend.itemMargin.vertical,"px ").concat(e.config.legend.itemMargin.horizontal,"px"),e.globals.dom.elLegendWrap.style.width=e.config.legend.width?e.config.legend.width+"px":"",e.globals.dom.elLegendWrap.style.height=e.config.legend.height?e.config.legend.height+"px":"",w.setAttrs(M,{rel:l+1,seriesName:b.escapeString(s[l]),"data:collapsed":d||u}),(d||u)&&M.classList.add("apexcharts-inactive-legend"),e.config.legend.onItemClick.toggleDataSeries||M.classList.add("apexcharts-no-click")}e.globals.dom.elWrap.addEventListener("click",t.onLegendClick,!0),e.config.legend.onItemHover.highlightDataSeries&&0===e.config.legend.customLegendItems.length&&(e.globals.dom.elWrap.addEventListener("mousemove",t.onLegendHovered,!0),e.globals.dom.elWrap.addEventListener("mouseout",t.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(t,e){var i=this.w,s=i.globals.dom.elLegendWrap,n=s.getBoundingClientRect(),r=0,o=0;if("bottom"===i.config.legend.position)o+=i.globals.svgHeight-n.height/2;else if("top"===i.config.legend.position){var a=new lt(this.ctx),l=a.dimHelpers.getTitleSubtitleCoords("title").height,c=a.dimHelpers.getTitleSubtitleCoords("subtitle").height;o=o+(l>0?l-10:0)+(c>0?c-10:0)}s.style.position="absolute",r=r+t+i.config.legend.offsetX,o=o+e+i.config.legend.offsetY,s.style.left=r+"px",s.style.top=o+"px","bottom"===i.config.legend.position?(s.style.top="auto",s.style.bottom=5-i.config.legend.offsetY+"px"):"right"===i.config.legend.position&&(s.style.left="auto",s.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach(function(t){s.style[t]&&(s.style[t]=parseInt(i.config.legend[t],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var t=this.w;t.globals.dom.elLegendWrap.style.right=0;var e=this.legendHelpers.getLegendBBox(),i=new lt(this.ctx),s=i.dimHelpers.getTitleSubtitleCoords("title"),n=i.dimHelpers.getTitleSubtitleCoords("subtitle"),r=0;"bottom"===t.config.legend.position?r=-e.clwh/1.8:"top"===t.config.legend.position&&(r=s.height+n.height+t.config.title.margin+t.config.subtitle.margin-10),this.setLegendWrapXY(20,r)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.legendHelpers.getLegendBBox(),i=0;"left"===t.config.legend.position&&(i=20),"right"===t.config.legend.position&&(i=t.globals.svgWidth-e.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker");if("heatmap"===e.config.chart.type||this.isBarsDistributed){if(i){var s=parseInt(t.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,s,this.w]),new X(this.ctx).highlightRangeInSeries(t,t.target)}}else!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new X(this.ctx).toggleSeriesOnHover(t,t.target)}},{key:"onLegendClick",value:function(t){var e=this.w;if(!e.config.legend.customLegendItems.length&&(t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(t.target.getAttribute("rel"),10)-1,s="true"===t.target.getAttribute("data:collapsed"),n=this.w.config.chart.events.legendClick;"function"==typeof n&&n(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var r=this.w.config.legend.markers.onClick;"function"==typeof r&&t.target.classList.contains("apexcharts-legend-marker")&&(r(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),"treemap"!==e.config.chart.type&&"heatmap"!==e.config.chart.type&&!this.isBarsDistributed&&e.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,s)}}}]),t}(),dt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=i.globals.minX,this.maxX=i.globals.maxX}return a(t,[{key:"createToolbar",value:function(){var t=this,e=this.w,i=function(){return document.createElement("div")},s=i();if(s.setAttribute("class","apexcharts-toolbar"),s.style.top=e.config.chart.toolbar.offsetY+"px",s.style.right=3-e.config.chart.toolbar.offsetX+"px",e.globals.dom.elWrap.appendChild(s),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var n=0;n<this.t.customIcons.length;n++)this.elCustomIcons.push(i());var r=[],o=function(i,s,n){var o=i.toLowerCase();t.t[o]&&e.config.chart.zoom.enabled&&r.push({el:s,icon:"string"==typeof t.t[o]?t.t[o]:n,title:t.localeValues[i],class:"apexcharts-".concat(o,"-icon")})};o("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n'),o("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n');var a=function(i){t.t[i]&&e.config.chart[i].enabled&&r.push({el:"zoom"===i?t.elZoom:t.elSelection,icon:"string"==typeof t.t[i]?t.t[i]:"zoom"===i?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n    <path d="M0 0h24v24H0V0z" fill="none"/>\n    <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n</svg>',title:t.localeValues["zoom"===i?"selectionZoom":"selection"],class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(i,"-icon")})};a("zoom"),a("selection"),this.t.pan&&e.config.chart.zoom.enabled&&r.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <defs>\n        <path d="M0 0h24v24H0z" id="a"/>\n    </defs>\n    <clipPath id="b">\n        <use overflow="visible" xlink:href="#a"/>\n    </clipPath>\n    <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 
20-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',title:this.localeValues.pan,class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),o("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n    <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'),this.t.download&&r.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l<this.elCustomIcons.length;l++)r.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});r.forEach(function(t,e){t.index&&b.moveIndexInArray(r,e,t.index)});for(var c=0;c<r.length;c++)w.setAttrs(r[c].el,{class:r[c].class,title:r[c].title}),r[c].el.innerHTML=r[c].icon,s.appendChild(r[c].el);this._createHamburgerMenu(s),e.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):e.globals.panEnabled?this.elPan.classList.add(this.selectedClass):e.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(t){this.elMenuItems=[],t.appendChild(this.elMenu),w.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var e=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],i=0;i<e.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=e[i].title,w.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(e[i].name),title:e[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var t=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(e){e.classList.contains("exportSVG")?e.addEventListener("click",t.handleDownload.bind(t,"svg")):e.classList.contains("exportPNG")?e.addEventListener("click",t.handleDownload.bind(t,"png")):e.classList.contains("exportCSV")&&e.addEventListener("click",t.handleDownload.bind(t,"csv"))});for(var e=0;e<this.t.customIcons.length;e++)this.elCustomIcons[e].addEventListener("click",this.t.customIcons[e].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(t){this.ctx.getSyncedCharts().forEach(function(e){e.ctx.toolbar.toggleOtherControls();var i="selection"===t?e.ctx.toolbar.elSelection:e.ctx.toolbar.elZoom,s="selection"===t?"selectionEnabled":"zoomEnabled";e.w.globals[s]=!e.w.globals[s],i.classList.contains(e.ctx.toolbar.selectedClass)?i.classList.remove(e.ctx.toolbar.selectedClass):i.classList.add(e.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var t=this.w;this.elZoom||(this.elZoom=t.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=t.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=t.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(t){this.toggleOtherControls(),"pan"===t?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var e="pan"===t?this.elPan:this.elZoom,i="pan"===t?this.elZoom:this.elPan;e&&e.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEac
vendor: 5,279 bytes, line 2
2h(function(t){t.ctx.toolbar.toggleOtherControls(),t.w.globals.panEnabled=!t.w.globals.panEnabled,t.ctx.toolbar.elPan.classList.contains(t.ctx.toolbar.selectedClass)?t.ctx.toolbar.elPan.classList.remove(t.ctx.toolbar.selectedClass):t.ctx.toolbar.elPan.classList.add(t.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var t=this,e=this.w;e.globals.panEnabled=!1,e.globals.zoomEnabled=!1,e.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(e){e&&e.classList.remove(t.selectedClass)})}},{key:"handleZoomIn",value:function(){var t=this.w;t.globals.isRangeBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY);var e=(this.minX+this.maxX)/2,i=(this.minX+e)/2,s=(this.maxX+e)/2,n=this._getNewMinXMaxX(i,s);t.globals.disableZoomIn||this.zoomUpdateOptions(n.minX,n.maxX)}},{key:"handleZoomOut",value:function(){var t=this.w;if(t.globals.isRangeBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY),!("datetime"===t.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var e=(this.minX+this.maxX)/2,i=this.minX-(e-this.minX),s=this.maxX-(e-this.maxX),n=this._getNewMinXMaxX(i,s);t.globals.disableZoomOut||this.zoomUpdateOptions(n.minX,n.maxX)}}},{key:"_getNewMinXMaxX",value:function(t,e){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(t):t,maxX:i?Math.floor(e):e}}},{key:"zoomUpdateOptions",value:function(t,e){var i=this.w;if(void 0!==t||void 0!==e){if(!(i.config.xaxis.convertedCatToNumeric&&(t<1&&(t=1,e=i.globals.dataPoints),e-t<2))){var s={min:t,max:e},n=this.getBeforeZoomRange(s);n&&(s=n.xaxis);var r={xaxis:s},o=b.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(o=new $(this.ctx).autoScaleY(this.ctx,o,{xaxis:s})),i.config.chart.group||(r.yaxis=o),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(r,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(s,o)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(t,e){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:t,yaxis:e})}},{key:"getBeforeZoomRange",value:function(t,e){var i=null;return"function"==typeof this.ev.beforeZoom&&(i=this.ev.beforeZoom(this,{xaxis:t,yaxis:e})),i}},{key:"toggleMenu",value:function(){var t=this;window.setTimeout(function(){t.elMenu.classList.contains("apexcharts-menu-open")?t.elMenu.classList.remove("apexcharts-menu-open"):t.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(t){var e=this.w,i=new V(this.ctx);switch(t){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:e.config.series,columnDelimiter:e.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(t){this.ctx.getSyncedCharts().forEach(function(t){var e=t.w;if(e.globals.lastXAxis.min=e.globals.initialConfig.xaxis.min,e.globals.lastXAxis.max=e.globals.initialConfig.xaxis.max,t.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof e.config.chart.events.beforeResetZoom){var i=e.config.chart.events.beforeResetZoom(t,e);i&&t.updateHelpers.revertDefaultAxisMinMax(i)}"function"==typeof e.config.chart.events.zoomed&&t.ctx.toolbar.zoomCallback({min:e.config.xaxis.min,max:e.config.xaxis.max}),e.globals.zoomed=!1;var s=t.ctx.series.emptyCollapsedSeries(b.clone(e.globals.initialSeries));t.updateHelpers._updateSeries(s,e.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),t}(),ut=function(){c(e,dt);var t=p(e);function e(i){var s;return r(this,e),(s=t.call(this,i)).ctx=i,s.w=i.w,s.dragged=!1,s.graphics=new w(s.ctx),s.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],s.clientX=0,s.clientY=0,s.startX=0,s.endX=0,s.dragX=0,s.startY=0,s.endY=0,s.dragY=0,s.moveDirection="none",s}return a(e,[{key:"init",value:function(t){var e=this,i=t.xyRatios,s=this.w,n=this;this.xyRatios=i,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=s.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),s.globals.dom.elGraphical.add(this.zoomRect),s.globals.dom.elGraphical.add(this.selectionRect),"x"===s.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:s.globals.gridWidth,maxY:s.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===s.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:s.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=s.globals.dom.baseEl.querySelector("".concat(s.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(t){e.hoverArea.addEventListener(t,n.svgMouseEvents.bind(n,i),{
vendor: 10,024 bytes, line 2
2capture:!1,passive:!0})})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(t,e){var i=this.w,s=this,n=this.ctx.toolbar,r=i.globals.zoomEnabled?i.config.chart.zoom.type:i.config.chart.selection.type,o=i.config.chart.toolbar.autoSelected;if(e.shiftKey?(this.shiftWasPressed=!0,n.enableZoomPanFromToolbar("pan"===o?"zoom":"pan")):this.shiftWasPressed&&(n.enableZoomPanFromToolbar(o),this.shiftWasPressed=!1),e.target){var a,l=e.target.classList;if(e.target.parentNode&&null!==e.target.parentNode&&(a=e.target.parentNode.classList),!(l.contains("apexcharts-selection-rect")||l.contains("apexcharts-legend-marker")||l.contains("apexcharts-legend-text")||a&&a.contains("apexcharts-toolbar"))){if(s.clientX="touchmove"===e.type||"touchstart"===e.type?e.touches[0].clientX:"touchend"===e.type?e.changedTouches[0].clientX:e.clientX,s.clientY="touchmove"===e.type||"touchstart"===e.type?e.touches[0].clientY:"touchend"===e.type?e.changedTouches[0].clientY:e.clientY,"mousedown"===e.type&&1===e.which){var c=s.gridRect.getBoundingClientRect();s.startX=s.clientX-c.left,s.startY=s.clientY-c.top,s.dragged=!1,s.w.globals.mousedown=!0}if(("mousemove"===e.type&&1===e.which||"touchmove"===e.type)&&(s.dragged=!0,i.globals.panEnabled?(i.globals.selection=null,s.w.globals.mousedown&&s.panDragging({context:s,zoomtype:r,xyRatios:t})):(s.w.globals.mousedown&&i.globals.zoomEnabled||s.w.globals.mousedown&&i.globals.selectionEnabled)&&(s.selection=s.selectionDrawing({context:s,zoomtype:r}))),"mouseup"===e.type||"touchend"===e.type||"mouseleave"===e.type){var h=s.gridRect.getBoundingClientRect();s.w.globals.mousedown&&(s.endX=s.clientX-h.left,s.endY=s.clientY-h.top,s.dragX=Math.abs(s.endX-s.startX),s.dragY=Math.abs(s.endY-s.startY),(i.globals.zoomEnabled||i.globals.selectionEnabled)&&s.selectionDrawn({context:s,zoomtype:r}),i.globals.panEnabled&&i.config.xaxis.convertedCatToNumeric&&s.delayedPanScrolled()),i.globals.zoomEnabled&&s.hideSelectionRect(this.selectionRect),s.dragged=!1,s.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var t=this.w;if(this.selectionRect){var e=this.selectionRect.node.getBoundingClientRect();e.width>0&&e.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:t.globals.gridWidth,maxY:t.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var t=this.w,e=this.xyRatios;if(!t.globals.zoomEnabled)if(void 0!==t.globals.selection&&null!==t.globals.selection)this.drawSelectionRect(t.globals.selection);else if(void 0!==t.config.chart.selection.xaxis.min&&void 0!==t.config.chart.selection.xaxis.max){var i=(t.config.chart.selection.xaxis.min-t.globals.minX)/e.xRatio,s=t.globals.gridWidth-(t.globals.maxX-t.config.chart.selection.xaxis.max)/e.xRatio-i;t.globals.isRangeBar&&(i=(t.config.chart.selection.xaxis.min-t.globals.yAxisScale[0].niceMin)/e.invertedYRatio,s=(t.config.chart.selection.xaxis.max-t.config.chart.selection.xaxis.min)/e.invertedYRatio);var n={x:i,y:0,width:s,height:t.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(n),this.makeSelectionRectDraggable(),"function"==typeof t.config.chart.events.selection&&t.config.chart.events.selection(this.ctx,{xaxis:{min:t.config.chart.selection.xaxis.min,max:t.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(t){var e=t.x,i=t.y,s=t.width,n=t.height,r=t.translateX,o=void 0===r?0:r,a=t.translateY,l=void 0===a?0:a,c=this.w,h=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==c.globals.selection){var u={transform:"translate("+o+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(s<0&&(s=1),h.attr({x:e,y:i,width:s,height:n,fill:c.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":c.config.chart.zoom.zoomedArea.fill.opacity,stroke:c.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":c.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":c.config.chart.zoom.zoomedArea.stroke.opacity}),w.setAttrs(h.node,u)),c.globals.selectionEnabled&&(d.attr({x:e,y:i,width:s>0?s:0,height:n>0?n:0,fill:c.config.chart.selection.fill.color,"fill-opacity":c.config.chart.selection.fill.opacity,stroke:c.config.chart.selection.stroke.color,"stroke-width":c.config.chart.selection.stroke.width,"stroke-dasharray":c.config.chart.selection.stroke.dashArray,"stroke-opacity":c.config.chart.selection.stroke.opacity}),w.setAttrs(d.node,u))}}},{key:"hideSelectionRect",value:function(t){t&&t.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(t){var e,i=t.context,s=t.zoomtype,n=this.w,r=i,o=this.gridRect.getBoundingClientRect(),a=r.startX-1,l=r.startY,c=!1,h=!1,d=r.clientX-o.left-a,u=r.clientY-o.top-l;return Math.abs(d+a)>n.globals.gridWidth?d=n.globals.gridWidth-a:r.clientX-o.left<0&&(d=a),a>r.clientX-o.left&&(c=!0,d=Math.abs(d)),l>r.clientY-o.top&&(h=!0,u=Math.abs(u)),e="x"===s?{x:c?a-d:a,y:0,width:d,height:n.globals.gridHeight}:"y"===s?{x:0,y:h?l-u:l,width:n.globals.gridWidth,height:u}:{x:c?a-d:a,y:h?l-u:l,width:d,height:u},r.drawSelectionRect(e),r.selectionDragging("resizing"),e}},{key:"selectionDragging",value:function(t,e){var i=this,s=this.w,n=this.xyRatios,r=this.selectionRect,o=0;"resizing"===t&&(o=30);var a=function(t){return parseFloat(r.node.getAttribute(t))},l={x:a("x"),y:a("y"),width:a("width"),height:a("height")};s.globals.selection=l,"function"==typeof s.config.chart.events.selection&&s.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var t,e,o,a,l=i.gridRect.getBoundingClientRect(),c=r.node.getBoundingClientRect();s.globals.isRangeBar?(t=s.globals.yAxisScale[0].niceMin+(c.left-l.left)*n.invertedYRatio,e=s.globals.yAxisScale[0].niceMin+(c.right-l.left)*n.invertedYRatio,o=0,a=1):(t=s.globals.xAxisScale.niceMin+(c.left-l.left)*n.xRatio,e=s.globals.xAxisScale.niceMin+(c.right-l.left)*n.xRatio,o=s.globals.yAxisScale[0].niceMin+(l.bottom-c.bottom)*n.yRatio[0],a=s.globals.yAxisScale[0].niceMax-(c.top-l.top)*n.yRatio[0]);var h={xaxis:{min:t,max:e},yaxis:{min:o,max:a}};s.config.chart.events.selection(i.ctx,h),s.config.chart.brush.enabled&&void 0!==s.config.chart.events.brushScrolled&&s.config.chart.events.brushScrolled(i.ctx,h)},o))}},{key:"selectionDrawn",value:function(t){var e=t.context,i=t.zoomtype,s=this.w,n=e,r=this.xyRatios,o=this.ctx.toolbar;if(n.startX>n.endX){var a=n.startX;n.startX=n.endX,n.endX=a}if(n.startY>n.endY){var l=n.startY;n.startY=n.endY,n.endY=l}var c=void 0,h=void 0;s.globals.isRangeBar?(c=s.globals.yAxisScale[0].niceMin+n.startX*r.invertedYRatio,h=s.globals.yAxisScale[0].niceMin+n.endX*r.invertedYRatio):(c=s.globals.xAxisScale.niceMin+n.startX*r.xRatio,h=s.globals.xAxisScale.niceMin+n.endX*r.xRatio);var d=[],u=[];if(s.config.yaxis.forEach(function(t,e){d.push(s.globals.yAxisScale[e].niceMax-r.yRatio[e]*n.startY),u.push(s.globals.yAxisScale[e].niceMax-r.yRatio[e]*n.endY)}),n.dragged&&(n.dragX>10||n.dragY>10)&&c!==h)if(s.globals.zoomEnabled){var p=b.clone(s.globals.initialConfig.yaxis),f=b.clone(s.globals.initialConfig.xaxis);if(s.globals.zoomed=!0,s.config.xaxis.convertedCatToNumeric&&(c=Math.floor(c),h=Math.floor(h),c<1&&(c=1,h=s.globals.dataPoints),h-c<2&&(h=c+1)),"xy"!==i&&"x"!==i||(f={min:c,max:h}),"xy"!==i&&"y"!==i||p.forEach(function(t,e){p[e].min=u[e],p[e].max=d[e]}),s.config.chart.zoom.autoScaleYaxis){var g=new $(n.ctx);p=g.autoScaleY(n.ctx,p,{xaxis:f})}if(o){var m=o.getBeforeZoomRange(f,p);m&&(f=m.xaxis?m.xaxis:f,p=m.yaxis?m.yaxis:p)}var x={xaxis:f};s.config.chart.group||(x.yaxis=p),n.ctx.updateHelpers._updateOptions(x,!1,n.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof s.config.chart.events.zoomed&&o.zoomCallback(f,p)}else if(s.globals.selectionEnabled){var y,v=null;y={min:c,max:h},"xy"!==i&&"y"!==i||(v=b.clone(s.config.yaxis)).forEach(function(t,e){v[e].min=u[e],v[e].max=d[e]}),s.globals.selection=n.selection,"function"==typeof s.config.chart.events.selection&&s.config.chart.events.selection(n.ctx,{xaxis:y,yaxis:v})}}},{key:"panDragging",value:function(t){var e=t.context,i=this.w,s=e;if(void 0!==i.globals.lastClientPosition.x){var n=i.globals.lastClientPosition.x-s.clientX,r=i.globals.lastClientPosition.y-s.clientY;Math.abs(n)>Math.abs(r)&&n>0?this.moveDirection="left":Math.abs(n)>Math.abs(r)&&n<0?this.moveDirection="right":Math.abs(r)>Math.abs(n)&&r>0?this.moveDirection="up":Math.abs(r)>Math.abs(n)&&r<0&&(this.moveDirection="down")}i.globals.lastClientPosition={x:s.clientX,y:s.clientY};var o=i.globals.isRangeBar?i.globals.minY:i.globals.minX,a=i.globals.isRangeBar?i.globals.maxY:i.globals.maxX;i.config.xaxis.convertedCatToNumeric||s.panScrolled(o,a)}},{key:"delayedPanScrolled",value:function(){var t=this.w,e=t.globals.minX,i=t.globals.maxX,s=(t.globals.maxX-t.globals.minX)/2;"left"===this.moveDirection?(e=t.globals.minX+s,i=t.globals.maxX+s):"right"===this.moveDirection&&(e=t.globals.minX-s,i=t.globals.maxX-s),e=Math.floor(e),i=Math.floor(i),this.updateScrolledChart({xaxis:{min:e,max:i}},e,i)}},{key:"panScrolled",value:function(t,e){var i=this.w,s=this.xyRatios,n=b.clone(i.globals.initialConfig.yaxis),r=s.xRatio,o=i.globals.minX,a=i.globals.maxX;i.globals.isRangeBar&&(r=s.invertedYRatio,o=i.globals.minY,a=i.globals.maxY),"left"===this.moveDirection?(t=o+i.globals.gridWidth/15*r,e=a+i.globals.gridWidth/15*r):"right"===this.moveDirection&&(t=o-i.globals.gridWidth/15*r,e=a-i.globals.gridWidth/15*r),i.globals.isRangeBar||(t<i.globals.initialMinX||e>i.globals.initialMaxX)&&(t=o,e=a);var l={min:t,max:e};i.config.chart.zoom.autoScaleYaxis&&(n=new $(this.ctx).autoScaleY(this.ctx,n,{xaxis:l}));var c={xaxis:{min:t,max:e}};i.config.chart.group||(c.yaxis=n),this.updateScrolledChart(c,t,e)}}
vendor: 5,807 bytes, line 2
2,{key:"updateScrolledChart",value:function(t,e,i){var s=this.w;this.ctx.updateHelpers._updateOptions(t,!1,!1),"function"==typeof s.config.chart.events.scrolled&&s.config.chart.events.scrolled(this.ctx,{xaxis:{min:e,max:i}})}}]),e}(),pt=function(){function t(e){r(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return a(t,[{key:"getNearestValues",value:function(t){var e=t.hoverArea,i=t.elGrid,s=t.clientX,n=t.clientY,r=this.w,o=i.getBoundingClientRect(),a=o.width,l=o.height,c=a/(r.globals.dataPoints-1),h=l/r.globals.dataPoints,d=this.hasBars();!r.globals.comboCharts&&!d||r.config.xaxis.convertedCatToNumeric||(c=a/r.globals.dataPoints);var u=s-o.left-r.globals.barPadForNumericAxis,p=n-o.top;u<0||p<0||u>a||p>l?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):r.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):r.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var f=Math.round(u/c),g=Math.floor(p/h);d&&!r.config.xaxis.convertedCatToNumeric&&(f=Math.ceil(u/c),f-=1);var m=null,x=null,y=r.globals.seriesXvalues.map(function(t){return t.filter(function(t){return b.isNumber(t)})}),v=r.globals.seriesYvalues.map(function(t){return t.filter(function(t){return b.isNumber(t)})});if(r.globals.isXNumeric){var w=this.ttCtx.getElGrid().getBoundingClientRect(),S=u*(w.width/a),k=p*(w.height/l);m=(x=this.closestInMultiArray(S,k,y,v)).index,f=x.j,null!==m&&(y=r.globals.seriesXvalues[m],f=(x=this.closestInArray(S,y)).index)}return r.globals.capturedSeriesIndex=null===m?-1:m,(!f||f<1)&&(f=0),r.globals.isBarHorizontal?r.globals.capturedDataPointIndex=g:r.globals.capturedDataPointIndex=f,{capturedSeries:m,j:r.globals.isBarHorizontal?g:f,hoverX:u,hoverY:p}}},{key:"closestInMultiArray",value:function(t,e,i,s){var n=this.w,r=0,o=null,a=-1;n.globals.series.length>1?r=this.getFirstActiveXArray(i):o=0;var l=i[r][0],c=Math.abs(t-l);if(i.forEach(function(e){e.forEach(function(e,i){var s=Math.abs(t-e);s<=c&&(c=s,a=i)})}),-1!==a){var h=s[r][a],d=Math.abs(e-h);o=r,s.forEach(function(t,i){var s=Math.abs(e-t[a]);s<=d&&(d=s,o=i)})}return{index:o,j:a}}},{key:"getFirstActiveXArray",value:function(t){for(var e=this.w,i=0,s=t.map(function(t,e){return t.length>0?e:-1}),n=0;n<s.length;n++)if(-1!==s[n]&&-1===e.globals.collapsedSeriesIndices.indexOf(n)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(n)){i=s[n];break}return i}},{key:"closestInArray",value:function(t,e){for(var i=e[0],s=null,n=Math.abs(t-i),r=0;r<e.length;r++){var o=Math.abs(t-e[r]);o<n&&(n=o,s=r)}return{index:s}}},{key:"isXoverlap",value:function(t){var e=[],i=this.w.globals.seriesX.filter(function(t){return void 0!==t[0]});if(i.length>0)for(var s=0;s<i.length-1;s++)void 0!==i[s][t]&&void 0!==i[s+1][t]&&i[s][t]!==i[s+1][t]&&e.push("unEqual");return 0===e.length}},{key:"isInitialSeriesSameLen",value:function(){for(var t=!0,e=this.w.globals.initialSeries,i=0;i<e.length-1;i++)if(e[i].data.length!==e[i+1].data.length){t=!1;break}return t}},{key:"getBarsHeight",value:function(t){return g(t).reduce(function(t,e){return t+e.getBBox().height},0)}},{key:"getElMarkers",value:function(t){return"number"==typeof t?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(t=g(t)).sort(function(t,e){var i=Number(t.getAttribute("data:realIndex")),s=Number(e.getAttribute("data:realIndex"));return s<i?1:s>i?-1:0});var e=[];return t.forEach(function(t){e.push(t.querySelector(".apexcharts-marker"))}),e}},{key:"hasMarkers",value:function(t){return this.getElMarkers(t).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series,  .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(t){var e=this.w,i=e.config.markers.hover.size;return void 0===i&&(i=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(t){var e=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var s=i.allTooltipSeriesGroups,n=0;n<s.length;n++)"enable"===t?(s[n].classList.add("apexcharts-active"),s[n].style.display=e.config.tooltip.items.display):(s[n].classList.remove("apexcharts-active"),s[n].style.display="none")}}]),t}(),ft=function(){function t(e){r(this,t),this.w=e.w,this.ctx=e.ctx,this.ttCtx=e,this.tooltipUtil=new pt(e)}return a(t,[{key:"drawSeriesTexts",value:function(t){var e=t.shared,i=void 0===e||e,s=t.ttItems,n=t.i,r=void 0===n?0:n,o=t.j,a=void 0===o?null:o,l=t.y1,c=t.y2,h=t.e,d=this.w;void 0!==d.config.tooltip.custom?this.handleCustomTooltip({i:r,j:a,y1:l,y2:c,w:d}):this.toggleActiveInactiveSeries(i);var u=this.getValuesToPrint({i:r,j:a});this.printLabels({i:r,j:a,values:u,ttItems:s,shared:i,e:h});var p=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=p.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=p.getBoundingClientRect().height}},{key:"printLabels",value:function(t){var e,i=this,n=t.i,r=t.j,o=t.values,a=t.ttItems,l=t.shared,c=t.e,h=this.w,d=[],u=function(t){return h.globals.seriesGoals[t]&&h.globals.seriesGoals[t][r]&&Array.isArray(h.globals.seriesGoals[t][r])},p=o.xVal,f=o.zVal,g=o.xAxisTTVal,m="",x=h.globals.colors[n];null!==r&&h.config.plotOptions.bar.distributed&&(x=h.globals.colors[r]);for(var b=function(t,o){var b=i.getFormatters(n);
vendor: 5,892 bytes, line 2
2m=i.getSeriesName({fn:b.yLbTitleFormatter,index:n,seriesIndex:n,j:r}),"treemap"===h.config.chart.type&&(m=b.yLbTitleFormatter(String(h.config.series[n].data[r].x),{series:h.globals.series,seriesIndex:n,dataPointIndex:r,w:h}));var y=h.config.tooltip.inverseOrder?o:t;if(h.globals.axisCharts){var v=function(t){var e,i,s,n;return h.globals.isRangeData?b.yLbFormatter(null===(e=h.globals.seriesRangeStart)||void 0===e||null===(i=e[t])||void 0===i?void 0:i[r],{series:h.globals.seriesRangeStart,seriesIndex:t,dataPointIndex:r,w:h})+" - "+b.yLbFormatter(null===(s=h.globals.seriesRangeEnd)||void 0===s||null===(n=s[t])||void 0===n?void 0:n[r],{series:h.globals.seriesRangeEnd,seriesIndex:t,dataPointIndex:r,w:h}):b.yLbFormatter(h.globals.series[t][r],{series:h.globals.series,seriesIndex:t,dataPointIndex:r,w:h})};if(l)b=i.getFormatters(y),m=i.getSeriesName({fn:b.yLbTitleFormatter,index:y,seriesIndex:n,j:r}),x=h.globals.colors[y],e=v(y),u(y)&&(d=h.globals.seriesGoals[y][r].map(function(t){return{attrs:t,val:b.yLbFormatter(t.value,{seriesIndex:y,dataPointIndex:r,w:h})}}));else{var w,S=null==c||null===(w=c.target)||void 0===w?void 0:w.getAttribute("fill");S&&(x=-1!==S.indexOf("url")?document.querySelector(S.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):S),e=v(n),u(n)&&Array.isArray(h.globals.seriesGoals[n][r])&&(d=h.globals.seriesGoals[n][r].map(function(t){return{attrs:t,val:b.yLbFormatter(t.value,{seriesIndex:n,dataPointIndex:r,w:h})}}))}}null===r&&(e=b.yLbFormatter(h.globals.series[n],s(s({},h),{},{seriesIndex:n,dataPointIndex:n}))),i.DOMHandling({i:n,t:y,j:r,ttItems:a,values:{val:e,goalVals:d,xVal:p,xAxisTTVal:g,zVal:f},seriesName:m,shared:l,pColor:x})},y=0,v=h.globals.series.length-1;y<h.globals.series.length;y++,v--)b(y,v)}},{key:"getFormatters",value:function(t){var e,i=this.w,s=i.globals.yLabelFormatters[t];return void 0!==i.globals.ttVal?Array.isArray(i.globals.ttVal)?(s=i.globals.ttVal[t]&&i.globals.ttVal[t].formatter,e=i.globals.ttVal[t]&&i.globals.ttVal[t].title&&i.globals.ttVal[t].title.formatter):(s=i.globals.ttVal.formatter,"function"==typeof i.globals.ttVal.title.formatter&&(e=i.globals.ttVal.title.formatter)):e=i.config.tooltip.y.title.formatter,"function"!=typeof s&&(s=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(t){return t}),"function"!=typeof e&&(e=function(t){return t}),{yLbFormatter:s,yLbTitleFormatter:e}}},{key:"getSeriesName",value:function(t){var e=t.fn,i=t.index,s=t.seriesIndex,n=t.j,r=this.w;return e(String(r.globals.seriesNames[i]),{series:r.globals.series,seriesIndex:s,dataPointIndex:n,w:r})}},{key:"DOMHandling",value:function(t){t.i;var e=t.t,i=t.j,s=t.ttItems,n=t.values,r=t.seriesName,o=t.shared,a=t.pColor,l=this.w,c=this.ttCtx,h=n.val,d=n.goalVals,u=n.xVal,p=n.xAxisTTVal,f=n.zVal,g=null;g=s[e].children,l.config.tooltip.fillSeriesColor&&(s[e].style.backgroundColor=a,g[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=u),c.isXAxisTooltipEnabled&&(c.xaxisTooltipText.innerHTML=""!==p?p:u);var m=s[e].querySelector(".apexcharts-tooltip-text-y-label");m&&(m.innerHTML=r||"");var x=s[e].querySelector(".apexcharts-tooltip-text-y-value");x&&(x.innerHTML=void 0!==h?h:""),g[0]&&g[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(a=l.config.tooltip.marker.fillColors[e]),g[0].style.backgroundColor=a),l.config.tooltip.marker.show||(g[0].style.display="none");var b=s[e].querySelector(".apexcharts-tooltip-text-goals-label"),y=s[e].querySelector(".apexcharts-tooltip-text-goals-value");if(d.length&&l.globals.seriesGoals[e]){var v=function(){var t="<div >",e="<div>";d.forEach(function(i,s){t+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(i.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(i.attrs.name,"</div>"),e+="<div>".concat(i.val,"</div>")}),b.innerHTML=t+"</div>",y.innerHTML=e+"</div>"};o?l.globals.seriesGoals[e][i]&&Array.isArray(l.globals.seriesGoals[e][i])?v():(b.innerHTML="",y.innerHTML=""):v()}else b.innerHTML="",y.innerHTML="";if(null!==f&&(s[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,s[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==f?f:""),o&&g[0]){if(l.config.tooltip.hideEmptySeries){var w=s[e].querySelector(".apexcharts-tooltip-marker"),S=s[e].querySelector(".apexcharts-tooltip-text");0==parseFloat(h)?(w.style.display="none",S.style.display="none"):(w.style.display="block",S.style.display="block")}null==h||l.globals.ancillaryCollapsedSeriesIndices.indexOf(e)>-1||l.globals.collapsedSeriesIndices.indexOf(e)>-1?g[0].parentNode.style.display="none":g[0].parentNode.style.display=l.config.tooltip.items.display}}},{key:"toggleActiveInactiveSeries",value:function(t){var e=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=e.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=e.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(t){var e=t.i,i=t.j,s=this.w,n=this.ctx.series.filteredSeriesX(),r="",o="",a=null,l=null,c={series:s.globals.series,seriesIndex:e,dataPointIndex:i,w:s},h=s.globals.ttZFormatter;null===i?l=s.globals.series[e]:s.globals.isXNumeric&&"treemap"!==s.config.chart.type?(r=n[e][i],0===n[e].length&&(r=n[this.tooltipUtil.getFirstActiveXArray(n)][i])):r=void 0!==s.globals.labels[i]?s.globals.labels[i]:"";var d=r;return r=s.globals.isXNumeric&&"datetime"===s.config.xaxis.type?new L(this.ctx).xLabelFormat(s.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new O(this.ctx).formatDate,w:this.w}
vendor: 24,393 bytes, line 2
2):s.globals.isBarHorizontal?s.globals.yLabelFormatters[0](d,c):s.globals.xLabelFormatter(d,c),void 0!==s.config.tooltip.x.formatter&&(r=s.globals.ttKeyFormatter(d,c)),s.globals.seriesZ.length>0&&s.globals.seriesZ[e].length>0&&(a=h(s.globals.seriesZ[e][i],s)),o="function"==typeof s.config.xaxis.tooltip.formatter?s.globals.xaxisTooltipFormatter(d,c):r,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(r)?r.join(" "):r,xAxisTTVal:Array.isArray(o)?o.join(" "):o,zVal:a}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,s=t.y1,n=t.y2,r=t.w,o=this.ttCtx.getElTooltip(),a=r.config.tooltip.custom;Array.isArray(a)&&a[e]&&(a=a[e]),o.innerHTML=a({ctx:this.ctx,series:r.globals.series,seriesIndex:e,dataPointIndex:i,y1:s,y2:n,w:r})}}]),t}(),gt=function(){function t(e){r(this,t),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return a(t,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,s=this.w,n=i.getElXCrosshairs(),r=t-i.xcrosshairsWidth/2,o=s.globals.labels.slice().length;if(null!==e&&(r=s.globals.gridWidth/o*e),null===n||s.globals.isBarHorizontal||(n.setAttribute("x",r),n.setAttribute("x1",r),n.setAttribute("x2",r),n.setAttribute("y2",s.globals.gridHeight),n.classList.add("apexcharts-active")),r<0&&(r=0),r>s.globals.gridWidth&&(r=s.globals.gridWidth),i.isXAxisTooltipEnabled){var a=r;"tickWidth"!==s.config.xaxis.crosshairs.width&&"barWidth"!==s.config.xaxis.crosshairs.width||(a=r+i.xcrosshairsWidth/2),this.moveXAxisTooltip(a)}}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;null!==e.ycrosshairs&&w.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&w.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip&&0!==i.xcrosshairsWidth){i.xaxisTooltip.classList.add("apexcharts-active");var s,n=i.xaxisOffY+e.config.xaxis.tooltip.offsetY+e.globals.translateY+1+e.config.xaxis.offsetY;if(t-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(t))t+=e.globals.translateX,s=new w(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=s.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=n+"px"}}},{key:"moveYAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;null===i.yaxisTTEls&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var s=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),n=e.globals.translateY+s,r=i.yaxisTTEls[t].getBoundingClientRect().height,o=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(o-=26),n-=r/2,-1===e.globals.ignoreYAxisIndexes.indexOf(t)?(i.yaxisTTEls[t].classList.add("apexcharts-active"),i.yaxisTTEls[t].style.top=n+"px",i.yaxisTTEls[t].style.left=o+e.config.yaxis[t].tooltip.offsetX+"px"):i.yaxisTTEls[t].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=this.w,n=this.ttCtx,r=n.getElTooltip(),o=n.tooltipRect,a=null!==i?parseFloat(i):1,l=parseFloat(t)+a+5,c=parseFloat(e)+a/2;if(l>s.globals.gridWidth/2&&(l=l-o.ttWidth-a-10),l>s.globals.gridWidth-o.ttWidth-10&&(l=s.globals.gridWidth-o.ttWidth),l<-20&&(l=-20),s.config.tooltip.followCursor){var h=n.getElGrid().getBoundingClientRect();(l=n.e.clientX-h.left)>s.globals.gridWidth/2&&(l-=n.tooltipRect.ttWidth),(c=n.e.clientY+s.globals.translateY-h.top)>s.globals.gridHeight/2&&(c-=n.tooltipRect.ttHeight)}else s.globals.isBarHorizontal||o.ttHeight/2+c>s.globals.gridHeight&&(c=s.globals.gridHeight-o.ttHeight+s.globals.translateY);isNaN(l)||(l+=s.globals.translateX,r.style.left=l+"px",r.style.top=c+"px")}},{key:"moveMarkers",value:function(t,e){var i=this.w,s=this.ttCtx;if(i.globals.markers.size[t]>0)for(var n=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),r=0;r<n.length;r++)parseInt(n[r].getAttribute("rel"),10)===e&&(s.marker.resetPointsSize(),s.marker.enlargeCurrentPoint(e,n[r]));else s.marker.resetPointsSize(),this.moveDynamicPointOnHover(e,t)}},{key:"moveDynamicPointOnHover",value:function(t,e){var i,s,n=this.w,r=this.ttCtx,o=n.globals.pointsArray,a=r.tooltipUtil.getHoverMarkerSize(e),l=n.config.series[e].type;if(!l||"column"!==l&&"candlestick"!==l&&"boxPlot"!==l){i=o[e][t][0],s=o[e][t][1]?o[e][t][1]:0;var c=n.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers circle"));c&&s<n.globals.gridHeight&&s>0&&(c.setAttribute("r",a),c.setAttribute("cx",i),c.setAttribute("cy",s)),this.moveXCrosshairs(i),r.fixedTooltip||this.moveTooltip(i,s,a)}}},{key:"moveDynamicPointsOnHover",value:function(t){var e,i=this.ttCtx,s=i.w,n=0,r=0,o=s.globals.pointsArray;e=new X(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var a=i.tooltipUtil.getHoverMarkerSize(e);o[e]&&(n=o[e][t][0],r=o[e][t][1]);var l=i.tooltipUtil.getAllMarkers();if(null!==l)for(var c=0;c<s.globals.series.length;c++){var h=o[c];if(s.globals.comboCharts&&void 0===h&&l.splice(c,0,null),h&&h.length){var d=o[c][t][1],u=void 0;if(l[c].setAttribute("cx",n),"rangeArea"===s.config.chart.type&&!s.globals.comboCharts){var p=t+s.globals.series[c].length;u=o[c][p][1],d-=Math.abs(d-u)/2}null!==d&&!isNaN(d)&&d<s.globals.gridHeight+a&&d+a>0?(l[c]&&l[c].setAttribute("r",a),l[c]&&l[c].setAttribute("cy",d)):l[c]&&l[c].setAttribute("r",0)}}this.moveXCrosshairs(n),i.fixedTooltip||this.moveTooltip(n,r||s.globals.gridHeight,a)}},{key:"moveStickyTooltipOverBars",value:function(t,e){var i=this.w,s=this.ttCtx,n=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length,r=n>=2&&n%2==0?Math.floor(n/2):Math.floor(n/2)+1;i.globals.isBarHorizontal&&(r=new X(this.ctx).getActiveConfigSeriesIndex("desc")+1);var o=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(r,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"']"));o||"number"!=typeof e||(o=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(e,"'] path[j='").concat(t,"'],\n        .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"'],\n        .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"'],\n        .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"']")));var a=o?parseFloat(o.getAttribute("cx")):0,l=o?parseFloat(o.getAttribute("cy")):0,c=o?parseFloat(o.getAttribute("barWidth")):0,h=s.getElGrid().getBoundingClientRect(),d=o&&(o.classList.contains("apexcharts-candlestick-area")||o.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(o&&!d&&(a-=n%2!=0?c/2:0),o&&d&&i.globals.comboCharts&&(a-=c/2)):i.globals.isBarHorizontal||(a=s.xAxisTicksPositions[t-1]+s.dataPointsDividedWidth/2,isNaN(a)&&(a=s.xAxisTicksPositions[t]-s.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?l-=s.tooltipRect.ttHeight:i.config.tooltip.followCursor?l=s.e.clientY-h.top-s.tooltipRect.ttHeight/2:l+s.tooltipRect.ttHeight+15>i.globals.gridHeight&&(l=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(a),s.fixedTooltip||this.moveTooltip(a,l||i.globals.gridHeight)}}]),t}(),mt=function(){function t(e){r(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new gt(e)}return a(t,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new w(this.ctx),i=new F(this.ctx),s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");s=g(s),t.config.chart.stacked&&s.sort(function(t,e){return parseFloat(t.getAttribute("data:realIndex"))-parseFloat(e.getAttribute("data:realIndex"))});for(var n=0;n<s.length;n++){var r=s[n].querySelector(".apexcharts-series-markers-wrap");if(null!==r){var o=void 0,a="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==t.config.chart.type&&"area"!==t.config.chart.type||t.globals.comboCharts||t.config.tooltip.intersect||(a+=" no-pointer-events");var l=i.getMarkerConfig({cssClass:a,seriesIndex:Number(r.getAttribute("data:realIndex"))});(o=e.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(t.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(o.node),r.appendChild(c)}}}},{key:"enlargeCurrentPoint",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n=this.w;"bubble"!==n.config.chart.type&&this.newPointSize(t,e);var r=e.getAttribute("cx"),o=e.getAttribute("cy");if(null!==i&&null!==s&&(r=i,o=s),this.tooltipPosition.moveXCrosshairs(r),!this.fixedTooltip){if("radar"===n.config.chart.type){var a=this.ttCtx.getElGrid().getBoundingClientRect();r=this.ttCtx.e.clientX-a.left}this.tooltipPosition.moveTooltip(r,o,n.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this,s=this.ttCtx,n=t,r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=e.config.markers.hover.size,a=0;a<r.length;a++){var l=r[a].getAttribute("rel"),c=r[a].getAttribute("index");if(void 0===o&&(o=e.globals.markers.size[c]+e.config.markers.hover.sizeOffset),n===parseInt(l,10)){i.newPointSize(n,r[a]);var h=r[a].getAttribute("cx"),d=r[a].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(h),s.fixedTooltip||i.tooltipPosition.moveTooltip(h,d,o)}else i.oldPointSize(r[a])}}},{key:"newPointSize",value:function(t,e){var i=this.w,s=i.config.markers.hover.size,n=0===t?e.parentNode.firstChild:e.parentNode.lastChild;if("0"!==n.getAttribute("default-marker-size")){var r=parseInt(n.getAttribute("index"),10);void 0===s&&(s=i.globals.markers.size[r]+i.config.markers.hover.sizeOffset),s<0&&(s=0),n.setAttribute("r",s)}}},{key:"oldPointSize",value:function(t){var e=parseFloat(t.getAttribute("default-marker-size"));t.setAttribute("r",e)}},{key:"resetPointsSize",value:function(){for(var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),e=0;e<t.length;e++){var i=parseFloat(t[e].getAttribute("default-marker-size"));b.isNumber(i)&&i>=0?t[e].setAttribute("r",i):t[e].setAttribute("r",0)}}}]),t}(),xt=function(){function t(e){r(this,t),this.w=e.w;var i=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&"rangeBar"===i.config.chart.type&&i.config.plotOptions.bar.rangeBarGroupRows}return a(t,[{key:"getAttr",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:"handleHeatTreeTooltip",value:function(t){var e=t.e,i=t.opt,s=t.x,n=t.y,r=t.type,o=this.ttCtx,a=this.w;if(e.target.classList.contains("apexcharts-".concat(r,"-rect"))){var l=this.getAttr(e,"i"),c=this.getAttr(e,"j"),h=this.getAttr(e,"cx"),d=this.getAttr(e,"cy"),u=this.getAttr(e,"width"),p=this.getAttr(e,"height");if(o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:c,shared:!1,e}),a.globals.capturedSeriesIndex=l,a.globals.capturedDataPointIndex=c,s=h+o.tooltipRect.ttWidth/2+u,n=d+o.tooltipRect.ttHeight/2-p/2,o.tooltipPosition.moveXCrosshairs(h+u/2),s>a.globals.gridWidth/2&&(s=h-o.tooltipRect.ttWidth/2+u),o.w.config.tooltip.followCursor){var f=a.globals.dom.elWrap.getBoundingClientRect();s=a.globals.clientX-f.left-(s>a.globals.gridWidth/2?o.tooltipRect.ttWidth:0),n=a.globals.clientY-f.top-(n>a.globals.gridHeight/2?o.tooltipRect.ttHeight:0)}}return{x:s,y:n}}},{key:"handleMarkerTooltip",value:function(t){var e,i,s=t.e,n=t.opt,r=t.x,o=t.y,a=this.w,l=this.ttCtx;if(s.target.classList.contains("apexcharts-marker")){var c=parseInt(n.paths.getAttribute("cx"),10),h=parseInt(n.paths.getAttribute("cy"),10),d=parseFloat(n.paths.getAttribute("val"));if(i=parseInt(n.paths.getAttribute("rel"),10),e=parseInt(n.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var u=b.findAncestor(n.paths,"apexcharts-series");u&&(e=parseInt(u.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:e,j:i,shared:!l.showOnIntersect&&a.config.tooltip.shared,e:s}),"mouseup"===s.type&&l.markerClick(s,e,i),a.globals.capturedSeriesIndex=e,a.globals.capturedDataPointIndex=i,r=c,o=h+a.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var p=l.getElGrid().getBoundingClientRect();o=l.e.clientY+a.globals.translateY-p.top}d<0&&(o=h),l.marker.enlargeCurrentPoint(i,n.paths,r,o)}return{x:r,y:o}}},{key:"handleBarTooltip",value:function(t){var e,i,s=t.e,n=t.opt,r=this.w,o=this.ttCtx,a=o.getElTooltip(),l=0,c=0,h=0,d=this.getBarTooltipXY({e:s,opt:n});e=d.i;var u=d.barHeight,p=d.j;r.globals.capturedSeriesIndex=e,r.globals.capturedDataPointIndex=p,r.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!r.config.tooltip.shared?(c=d.x,h=d.y,i=Array.isArray(r.config.stroke.width)?r.config.stroke.width[e]:r.config.stroke.width,l=c):r.globals.comboCharts||r.config.tooltip.shared||(l/=2),isNaN(h)&&(h=r.globals.svgHeight-o.tooltipRect.ttHeight);var f=parseInt(n.paths.parentNode.getAttribute("data:realIndex"),10),g=r.globals.isMultipleYAxis?r.config.yaxis[f]&&r.config.yaxis[f].reversed:r.config.yaxis[0].reversed;if(c+o.tooltipRect.ttWidth>r.globals.gridWidth&&!g?c-=o.tooltipRect.ttWidth:c<0&&(c=0),o.w.config.tooltip.followCursor){var m=o.getElGrid().getBoundingClientRect();h=o.e.clientY-m.top}null===o.tooltip&&(o.tooltip=r.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),r.config.tooltip.shared||(r.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(l+i/2):o.tooltipPosition.moveXCrosshairs(l)),!o.fixedTooltip&&(!r.config.tooltip.shared||r.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(g&&(c-=o.tooltipRect.ttWidth)<0&&(c=0),!g||r.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||(h=h+u-2*(r.globals.series[e][p]<0?u:0)),h=h+r.globals.translateY-o.tooltipRect.ttHeight/2,a.style.left=c+r.globals.translateX+"px",a.style.top=h+"px")}},{key:"getBarTooltipXY",value:function(t){var e=this,i=t.e,s=t.opt,n=this.w,r=null,o=this.ttCtx,a=0,l=0,c=0,h=0,d=0,u=i.target.classList;if(u.contains("apexcharts-bar-area")||u.contains("apexcharts-candlestick-area")||u.contains("apexcharts-boxPlot-area")||u.contains("apexcharts-rangebar-area")){var p=i.target,f=p.getBoundingClientRect(),g=s.elGrid.getBoundingClientRect(),m=f.height;d=f.height;var x=f.width,b=parseInt(p.getAttribute("cx"),10),y=parseInt(p.getAttribute("cy"),10);h=parseFloat(p.getAttribute("barWidth"));var v="touchmove"===i.type?i.touches[0].clientX:i.clientX;r=parseInt(p.getAttribute("j"),10),a=parseInt(p.parentNode.getAttribute("rel"),10)-1;var w=p.getAttribute("data-range-y1"),S=p.getAttribute("data-range-y2");n.globals.comboCharts&&(a=parseInt(p.parentNode.getAttribute("data:realIndex"),10));var k=function(t){return n.globals.isXNumeric?b-x/2:e.isVerticalGroupedRangeBar?b+x/2:b-o.dataPointsDividedWidth+x/2},C=function(){return y-o.dataPointsDividedHeight+m/2-o.tooltipRect.ttHeight/2};o.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:a,j:r,y1:w?parseInt(w,10):null,y2:S?parseInt(S,10):null,shared:!o.showOnIntersect&&n.config.tooltip.shared,e:i}),n.config.tooltip.followCursor?n.globals.isBarHorizontal?(l=v-g.left+15,c=C()):(l=k(),c=i.clientY-g.top-o.tooltipRect.ttHeight/2-15):n.globals.isBarHorizontal?((l=b)<o.xyRatios.baseLineInvertedY&&(l=b-o.tooltipRect.ttWidth),c=C()):(l=k(),c=y)}return{x:l,y:c,barHeight:d,barWidth:h,i:a,j:r}}}]),t}(),bt=function(){function t(e){r(this,t),this.w=e.w,this.ttCtx=e}return a(t,[{key:"drawXaxisTooltip",value:function(){var t=this.w,e=this.ttCtx,i="bottom"===t.config.xaxis.position;e.xaxisOffY=i?t.globals.gridHeight+1:-t.globals.xAxisHeight-t.config.xaxis.axisTicks.height+3;var s=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",n=t.globals.dom.elWrap;e.isXAxisTooltipEnabled&&null===t.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(e.xaxisTooltip=document.createElement("div"),e.xaxisTooltip.setAttribute("class",s+" apexcharts-theme-"+t.config.tooltip.theme),n.appendChild(e.xaxisTooltip),e.xaxisTooltipText=document.createElement("div"),e.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),e.xaxisTooltipText.style.fontFamily=t.config.xaxis.tooltip.style.fontFamily||t.config.chart.fontFamily,e.xaxisTooltipText.style.fontSize=t.config.xaxis.tooltip.style.fontSize,e.xaxisTooltip.appendChild(e.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var t=this.w,e=this.ttCtx,i=function(i){var s=t.config.yaxis[i].opposite||t.config.yaxis[i].crosshairs.opposite;e.yaxisOffX=s?t.globals.gridWidth+1:1;var n="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i,s?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");t.globals.yAxisSameScaleIndices.map(function(e,s){e.map(function(e,s){s===i&&(n+=t.config.yaxis[s].show?" ":" apexcharts-yaxistooltip-hidden")})});var r=t.globals.dom.elWrap;null===t.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i))&&(e.yaxisTooltip=document.createElement("div"),e.yaxisTooltip.setAttribute("class",n+" apexcharts-theme-"+t.config.tooltip.theme),r.appendChild(e.yaxisTooltip),0===i&&(e.yaxisTooltipText=[]),e.yaxisTooltipText[i]=document.createElement("div"),e.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),e.yaxisTooltip.appendChild(e.yaxisTooltipText[i]))},s=0;s<t.config.yaxis.length;s++)i(s)}},{key:"setXCrosshairWidth",value:function(){var t=this.w,e=this.ttCtx,i=e.getElXCrosshairs();if(e.xcrosshairsWidth=parseInt(t.config.xaxis.crosshairs.width,10),t.globals.comboCharts){var s=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==s&&"barWidth"===t.config.xaxis.crosshairs.width){var n=parseFloat(s.getAttribute("barWidth"));e.xcrosshairsWidth=n}else if("tickWidth"===t.config.xaxis.crosshairs.width){var r=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/r}}else if("tickWidth"===t.config.xaxis.crosshairs.width){var o=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/o}else if("barWidth"===t.config.xaxis.crosshairs.width){var a=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==a){var l=parseFloat(a.getAttribute("barWidth"));e.xcrosshairsWidth=l}else e.xcrosshairsWidth=1}t.globals.isBarHorizontal&&(e.xcrosshairsWidth=0),null!==i&&e.xcrosshairsWidth>0&&i.setAttribute("width",e.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var s=this.ttCtx,n=this.w,r=n.globals.yLabelFormatters[t];if(s.yaxisTooltips[t]){var o=s.getElGrid().getBoundingClientRect(),a=(e-o.top)*i.yRatio[t],l=n.globals.maxYArr[t]-n.globals.minYArr[t],c=n.globals.minYArr[t]+(l-a);s.tooltipPosition.moveYCrosshairs(e-o.top),s.yaxisTooltipText[t].innerHTML=r(c),s.tooltipPosition.moveYAxisTooltip(t)}}}]),t}(),yt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.tConfig=i.config.tooltip,this.tooltipUtil=new pt(this),this.tooltipLabels=new ft(this),this.tooltipPosition=new gt(this),this.marker=new mt(this),this.intersect=new xt(this),this.axesTooltip=new bt(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!i.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return a(t,[{key:"getElTooltip",value:function(t){return t||(t=this),t.w.globals.dom.baseEl?t.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(t){var e=this.w;this.xyRatios=t,this.isXAxisTooltipEnabled=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.yaxisTooltips=e.config.yaxis.map(function(t,i){return!!(t.show&&t.tooltip.enabled&&e.globals.axisCharts)}),this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),e.config.tooltip.cssClass&&i.classList.add(e.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),e.globals.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var s=new G(this.ctx);this.xAxisTicksPositions=s.getXAxisTicksPositions()}if(!e.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==e.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==e.config.markers.size&&0!==e.globals.markers.largestSize||this.marker.drawDynamicPoints(this),e.globals.collapsedSeries.length!==e.globals.series.length){this.dataPointsDividedHeight=e.globals.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.globals.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var n=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(n=this.showOnIntersect?1:e.globals.series.length),this.legendLabels=e.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(n),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this,i=this.w,s=[],n=this.getElTooltip(),r=function(r){var o=document.createElement("div");o.classList.add("apexcharts-tooltip-series-group"),o.style.order=i.config.tooltip.inverseOrder?t-r:r+1,e.tConfig.shared&&e.tConfig.enabledOnSeries&&Array.isArray(e.tConfig.enabledOnSeries)&&e.tConfig.enabledOnSeries.indexOf(r)<0&&o.classList.add("apexcharts-tooltip-series-group-hidden");var a=document.createElement("span");a.classList.add("apexcharts-tooltip-marker"),a.style.backgroundColor=i.globals.colors[r],o.appendChild(a);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=e.tConfig.style.fontFamily||i.config.chart.fontFamily,l.style.fontSize=e.tConfig.style.fontSize,["y","goals","z"].forEach(function(t){var e=document.createElement("div");e.classList.add("apexcharts-tooltip-".concat(t,"-group"));var i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(t,"-label")),e.appendChild(i);var s=document.createElement("span");s.classList.add("apexcharts-tooltip-text-".concat(t,"-value")),e.appendChild(s),l.appendChild(e)}),o.appendChild(l),n.appendChild(o),s.push(o)},o=0;o<t;o++)r(o);return s}},{key:"addSVGEvents",value:function(){var t=this.w,e=t.config.chart.type,i=this.getElTooltip(),s=!("bar"!==e&&"candlestick"!==e&&"boxPlot"!==e&&"rangeBar"!==e),n="area"===e||"line"===e||"scatter"===e||"bubble"===e||"radar"===e,r=t.globals.dom.Paper.node,o=this.getElGrid();o&&(this.seriesBound=o.getBoundingClientRect());var a,l=[],c=[],h={hoverArea:r,elGrid:o,tooltipEl:i,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(t.globals.axisCharts&&(n?a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):s?a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==e&&"treemap"!==e||(a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),a&&a.length))for(var d=0;d<a.length;d++)l.push(a[d].getAttribute("cy")),c.push(a[d].getAttribute("cx"));
vendor: 25,882 bytes, line 2
2if(t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||s&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([r],h);else if(s&&!t.globals.comboCharts||n&&this.showOnIntersect)this.addDatapointEventsListeners(h);else if(!t.globals.axisCharts||"heatmap"===e||"treemap"===e){var u=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(u,h)}if(this.showOnIntersect){var p=t.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");p.length>0&&this.addPathsEventListeners(p,h),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(h)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),s=i.width+10,n=i.height+10,r=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,a=this.tConfig.fixed.position.toLowerCase();return a.indexOf("right")>-1&&(r=r+t.globals.svgWidth-s+10),a.indexOf("bottom")>-1&&(o=o+t.globals.svgHeight-n-10),e.style.left=r+"px",e.style.top=o+"px",{x:r,y:o,ttWidth:s,ttHeight:n}}},{key:"addDatapointEventsListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(e,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,s=function(s){var n={paths:t[s],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(e){return t[s].addEventListener(e,i.onSeriesHover.bind(i,n),{capture:!1,passive:!0})})},n=0;n<t.length;n++)s(n)}},{key:"onSeriesHover",value:function(t,e){var i=this,s=Date.now()-this.lastHoverTime;s>=100?this.seriesHover(t,e):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(t,e)},100-s))}},{key:"seriesHover",value:function(t,e){var i=this;this.lastHoverTime=Date.now();var s=[],n=this.w;n.config.chart.group&&(s=this.ctx.getGroupedCharts()),n.globals.axisCharts&&(n.globals.minX===-1/0&&n.globals.maxX===1/0||0===n.globals.dataPoints)||(s.length?s.forEach(function(s){var n=i.getElTooltip(s),r={paths:t.paths,tooltipEl:n,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:s.w.globals.tooltip.ttItems};s.w.globals.minX===i.w.globals.minX&&s.w.globals.maxX===i.w.globals.maxX&&s.w.globals.tooltip.seriesHoverByContext({chartCtx:s,ttCtx:s.w.globals.tooltip,opt:r,e})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e}))}},{key:"seriesHoverByContext",value:function(t){var e=t.chartCtx,i=t.ttCtx,s=t.opt,n=t.e,r=e.w,o=this.getElTooltip();o&&(i.tooltipRect={x:0,y:0,ttWidth:o.getBoundingClientRect().width,ttHeight:o.getBoundingClientRect().height},i.e=n,i.tooltipUtil.hasBars()&&!r.globals.comboCharts&&!i.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new X(e).toggleSeriesOnHover(n,n.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),r.globals.axisCharts?i.axisChartsTooltips({e:n,opt:s,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:n,opt:s,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(t){var e,i,s=t.e,n=t.opt,r=this.w,o=n.elGrid.getBoundingClientRect(),a="touchmove"===s.type?s.touches[0].clientX:s.clientX,l="touchmove"===s.type?s.touches[0].clientY:s.clientY;if(this.clientY=l,this.clientX=a,r.globals.capturedSeriesIndex=-1,r.globals.capturedDataPointIndex=-1,l<o.top||l>o.top+o.height)this.handleMouseOut(n);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!r.config.tooltip.shared){var c=parseInt(n.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(n)}var h=this.getElTooltip(),d=this.getElXCrosshairs(),u=r.globals.xyCharts||"bar"===r.config.chart.type&&!r.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||r.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===s.type||"touchmove"===s.type||"mouseup"===s.type){if(r.globals.collapsedSeries.length+r.globals.ancillaryCollapsedSeries.length===r.globals.series.length)return;null!==d&&d.classList.add("apexcharts-active");var p=this.yaxisTooltips.filter(function(t){return!0===t});if(null!==this.ycrosshairs&&p.length&&this.ycrosshairs.classList.add("apexcharts-active"),u&&!this.showOnIntersect)this.handleStickyTooltip(s,a,l,n);else if("heatmap"===r.config.chart.type||"treemap"===r.config.chart.type){var f=this.intersect.handleHeatTreeTooltip({e:s,opt:n,x:e,y:i,type:r.config.chart.type});e=f.x,i=f.y,h.style.left=e+"px",h.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:s,opt:n}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:s,opt:n,x:e,y:i});if(this.yaxisTooltips.length)for(var g=0;g<r.config.yaxis.length;g++)this.axesTooltip.drawYaxisTooltipText(g,l,this.xyRatios);n.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==s.type&&"touchend"!==s.type||this.handleMouseOut(n)}}},{key:"nonAxisChartsTooltips",value:function(t){var e=t.e,i=t.opt,s=t.tooltipRect,n=this.w,r=i.paths.getAttribute("rel"),o=this.getElTooltip(),a=n.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===e.type||"touchmove"===e.type){o.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(r,10)-1,shared:!1});var l=n.globals.clientX-a.left-s.ttWidth/2,c=n.globals.clientY-a.top-s.ttHeight-10;if(o.style.left=l+"px",o.style.top=c+"px",n.config.legend.tooltipHoverFormatter){var h=r-1,d=(0,n.config.legend.tooltipHoverFormatter)(this.legendLabels[h].getAttribute("data:default-text"),{seriesIndex:h,dataPointIndex:h,w:n});this.legendLabels[h].innerHTML=d}}else"mouseout"!==e.type&&"touchend"!==e.type||(o.classList.remove("apexcharts-active"),n.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}))}},{key:"handleStickyTooltip",value:function(t,e,i,s){var n=this.w,r=this.tooltipUtil.getNearestValues({context:this,hoverArea:s.hoverArea,elGrid:s.elGrid,clientX:e,clientY:i}),o=r.j,a=r.capturedSeries;n.globals.collapsedSeriesIndices.includes(a)&&(a=null);var l=s.elGrid.getBoundingClientRect();if(r.hoverX<0||r.hoverX>l.width)this.handleMouseOut(s);else if(null!==a)this.handleStickyCapturedSeries(t,a,s,o);else if(this.tooltipUtil.isXoverlap(o)||n.globals.isBarHorizontal){var c=n.globals.series.findIndex(function(t,e){return!n.globals.collapsedSeriesIndices.includes(e)});this.create(t,this,c,o,s.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(t,e,i,s){var n=this.w;if(this.tConfig.shared||null!==n.globals.series[e][s]){if(void 0!==n.globals.series[e][s])this.tConfig.shared&&this.tooltipUtil.isXoverlap(s)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,s,i.ttItems):this.create(t,this,e,s,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(s)){var r=n.globals.series.findIndex(function(t,e){return!n.globals.collapsedSeriesIndices.includes(e)});this.create(t,this,r,s,i.ttItems)}}else this.handleMouseOut(i)}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new w(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),s=0;s<i.length;s++)e.pathMouseLeave(i[s])}},{key:"handleMouseOut",value:function(t){var e=this.w,i=this.getElXCrosshairs();if(t.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==e.config.chart.type&&this.marker.resetPointsSize(),null!==i&&i.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var s=0;s<this.yaxisTTEls.length;s++)this.yaxisTTEls[s].classList.remove("apexcharts-active")}e.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)})}},{key:"markerClick",value:function(t,e,i){var s=this.w;"function"==typeof s.config.chart.events.markerClick&&s.config.chart.events.markerClick(t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:s}),this.ctx.events.fireEvent("markerClick",[t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:s}])}},{key:"create",value:function(t,e,i,n,r){var o,a,l,c,h,d,u,p,f,g,m,x,b,y,v,S,k=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,C=this.w,A=e;"mouseup"===t.type&&this.markerClick(t,i,n),null===k&&(k=this.tConfig.shared);var E=this.tooltipUtil.hasMarkers(i),M=this.tooltipUtil.getElBars();if(C.config.legend.tooltipHoverFormatter){var T=C.config.legend.tooltipHoverFormatter,P=Array.from(this.legendLabels);P.forEach(function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)});for(var O=0;O<P.length;O++){var L=P[O],_=parseInt(L.getAttribute("i"),10),I=decodeURIComponent(L.getAttribute("data:default-text")),D=T(I,{seriesIndex:k?_:i,dataPointIndex:n,w:C});if(k)L.innerHTML=C.globals.collapsedSeriesIndices.indexOf(_)<0?D:I;else if(L.innerHTML=_===i?D:I,i===_)break}}var R=s(s({ttItems:r,i,j:n},void 0!==(null===(o=C.globals.seriesRange)||void 0===o||null===(a=o[i])||void 0===a||null===(l=a[n])||void 0===l||null===(c=l.y[0])||void 0===c?void 0:c.y1)&&{y1:null===(h=C.globals.seriesRange)||void 0===h||null===(d=h[i])||void 0===d||null===(u=d[n])||void 0===u||null===(p=u.y[0])||void 0===p?void 0:p.y1}),void 0!==(null===(f=C.globals.seriesRange)||void 0===f||null===(g=f[i])||void 0===g||null===(m=g[n])||void 0===m||null===(x=m.y[0])||void 0===x?void 0:x.y2)&&{y2:null===(b=C.globals.seriesRange)||void 0===b||null===(y=b[i])||void 0===y||null===(v=y[n])||void 0===v||null===(S=v.y[0])||void 0===S?void 0:S.y2});if(k){if(A.tooltipLabels.drawSeriesTexts(s(s({},R),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),E)C.globals.markers.largestSize>0?A.marker.enlargePoints(n):A.tooltipPosition.moveDynamicPointsOnHover(n);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(M),this.barSeriesHeight>0)){var N=new w(this.ctx),B=C.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(n,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(n,i);for(var j=0;j<B.length;j++)N.pathMouseEnter(B[j])}}else A.tooltipLabels.drawSeriesTexts(s({shared:!1},R)),this.tooltipUtil.hasBars()&&A.tooltipPosition.moveStickyTooltipOverBars(n,i),E&&A.tooltipPosition.moveMarkers(i,n)}}]),t}(),vt=function(){function t(e){r(this,t),this.w=e.w,this.barCtx=e,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return a(t,[{key:"handleBarDataLabels",value:function(t){var e=t.x,i=t.y,s=t.y1,n=t.y2,r=t.i,o=t.j,a=t.realIndex,l=t.groupIndex,c=t.series,h=t.barHeight,d=t.barWidth,u=t.barXPosition,p=t.barYPosition,f=t.visibleSeries,g=t.renderedPath,m=this.w,x=new w(this.barCtx.ctx),b=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[a]:this.barCtx.strokeWidth,y=e+parseFloat(d*f),v=i+parseFloat(h*f);m.globals.isXNumeric&&!m.globals.isBarHorizontal&&(y=e+parseFloat(d*(f+1)),v=i+parseFloat(h*(f+1))-b);var S,k,C=null,A=e,E=i,M=m.config.dataLabels,T=this.barCtx.barOptions.dataLabels,P=this.barCtx.barOptions.dataLabels.total;void 0!==p&&this.barCtx.isRangeBar&&(v=p,E=p),void 0!==u&&this.barCtx.isVerticalGroupedRangeBar&&(y=u,A=u);var O=M.offsetX,L=M.offsetY,_={width:0,height:0};if(m.config.dataLabels.enabled){var I=this.barCtx.series[r][o];_=x.getTextRects(m.globals.yLabelFormatters[0](I),parseFloat(M.style.fontSize))}var D={x:e,y:i,i:r,j:o,realIndex:a,groupIndex:l||-1,renderedPath:g,bcx:y,bcy:v,barHeight:h,barWidth:d,textRects:_,strokeWidth:b,dataLabelsX:A,dataLabelsY:E,dataLabelsConfig:M,barDataLabelsConfig:T,barTotalDataLabelsConfig:P,offX:O,offY:L};return k=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(D):this.calculateColumnsDataLabelsPosition(D),g.attr({cy:k.bcy,cx:k.bcx,j:o,val:c[r][o],barHeight:h,barWidth:d}),S=this.drawCalculatedDataLabels({x:k.dataLabelsX,y:k.dataLabelsY,val:this.barCtx.isRangeBar?[s,n]:c[r][o],i:a,j:o,barWidth:d,barHeight:h,textRects:_,dataLabelsConfig:M}),m.config.chart.stacked&&P.enabled&&(C=this.drawTotalDataLabels({x:k.totalDataLabelsX,y:k.totalDataLabelsY,barWidth:d,barHeight:h,realIndex:a,textAnchor:k.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:a,j:o}),dataLabelsConfig:M,barTotalDataLabelsConfig:P})),{dataLabels:S,totalDataLabels:C}}},{key:"getStackedTotalDataLabel",value:function(t){var e=t.realIndex,i=t.j,n=this.w,r=this.barCtx.stackedSeriesTotals[i];return this.totalFormatter&&(r=this.totalFormatter(r,s(s({},n),{},{seriesIndex:e,dataPointIndex:i,w:n}))),r}},{key:"calculateColumnsDataLabelsPosition",value:function(t){var e,i,s=this.w,n=t.i,r=t.j,o=t.realIndex,a=t.groupIndex,l=t.y,c=t.bcx,h=t.barWidth,d=t.barHeight,u=t.textRects,p=t.dataLabelsX,f=t.dataLabelsY,g=t.dataLabelsConfig,m=t.barDataLabelsConfig,x=t.barTotalDataLabelsConfig,b=t.strokeWidth,y=t.offX,v=t.offY;d=Math.abs(d);var S="vertical"===s.config.plotOptions.bar.dataLabels.orientation,k=this.barCtx.barHelpers.getZeroValueEncounters({i:n,j:r}).zeroEncounters;c=c-b/2+(-1!==a?a*h:0);var C=s.globals.gridWidth/s.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?p+=h/2:(p=s.globals.isXNumeric?c-h/2+y:c-C+h/2+y,k>0&&s.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(p-=h*k)),S&&(p=p+u.height/2-b/2-2);var A=this.barCtx.series[n][r]<0,E=l;switch(this.barCtx.isReversed&&(E=l-d+(A?2*d:0),l-=d),m.position){case"center":f=S?A?E-d/2+v:E+d/2-v:A?E-d/2+u.height/2+v:E+d/2+u.height/2-v;break;case"bottom":f=S?A?E-d+v:E+d-v:A?E-d+u.height+b+v:E+d-u.height/2+b-v;break;case"top":f=S?A?E+v:E-v:A?E-u.height/2-v:E+u.height+v}if(this.barCtx.lastActiveBarSerieIndex===o&&x.enabled){var M=new w(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:r}),g.fontSize);e=A?E-M.height/2-v-x.offsetY+18:E+M.height+v+x.offsetY-18,i=p+x.offsetX}return s.config.chart.stacked||(f<0?f=0+b:f+u.height/3>s.globals.gridHeight&&(f=s.globals.gridHeight-b)),{bcx:c,bcy:l,dataLabelsX:p,dataLabelsY:f,totalDataLabelsX:i,totalDataLabelsY:e,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e=this.w,i=t.x,s=t.i,n=t.j,r=t.realIndex,o=t.groupIndex,a=t.bcy,l=t.barHeight,c=t.barWidth,h=t.textRects,d=t.dataLabelsX,u=t.strokeWidth,p=t.dataLabelsConfig,f=t.barDataLabelsConfig,g=t.barTotalDataLabelsConfig,m=t.offX,x=t.offY,b=e.globals.gridHeight/e.globals.dataPoints;c=Math.abs(c);var y,v,S=(a+=-1!==o?o*l:0)-(this.barCtx.isRangeBar?0:b)+l/2+h.height/2+x-3,k="start",C=this.barCtx.series[s][n]<0,A=i;switch(this.barCtx.isReversed&&(A=i+c-(C?2*c:0),i=e.globals.gridWidth-c),f.position){case"center":d=C?A+c/2-m:Math.max(h.width/2,A-c/2)+m;break;case"bottom":d=C?A+c-u-Math.round(h.width/2)-m:A-c+u+Math.round(h.width/2)+m;break;case"top":d=C?A-u+Math.round(h.width/2)-m:A-u-Math.round(h.width/2)+m}if(this.barCtx.lastActiveBarSerieIndex===r&&g.enabled){var E=new w(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:r,j:n}),p.fontSize);C?(y=A-u+Math.round(E.width/2)-m-g.offsetX-15,k="end"):y=A-u-Math.round(E.width/2)+m+g.offsetX+15,v=S+g.offsetY}return e.config.chart.stacked||(d<0?d=d+h.width+u:d+h.width/2>e.globals.gridWidth&&(d=e.globals.gridWidth-h.width-u)),{bcx:i,bcy:a,dataLabelsX:d,dataLabelsY:S,totalDataLabelsX:y,totalDataLabelsY:v,totalDataLabelsAnchor:k}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,n=t.val,r=t.i,o=t.j,a=t.textRects,l=t.barHeight,c=t.barWidth,h=t.dataLabelsConfig,d=this.w,u="rotate(0)";"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&(u="rotate(-90, ".concat(e,", ").concat(i,")"));var p=new H(this.barCtx.ctx),f=new w(this.barCtx.ctx),g=h.formatter,m=null,x=d.globals.collapsedSeriesIndices.indexOf(r)>-1;if(h.enabled&&!x){m=f.group({class:"apexcharts-data-labels",transform:u});var b="";void 0!==n&&(b=g(n,s(s({},d),{},{seriesIndex:r,dataPointIndex:o,w:d}))),!n&&d.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(b="");var y=d.globals.series[r][o]<0,v=d.config.plotOptions.bar.dataLabels.position;"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&("top"===v&&(h.textAnchor=y?"end":"start"),"center"===v&&(h.textAnchor="middle"),"bottom"===v&&(h.textAnchor=y?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&c<f.getTextRects(b,parseFloat(h.style.fontSize)).width&&(b=""),d.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?a.width/1.6>Math.abs(c)&&(b=""):a.height/1.6>Math.abs(l)&&(b=""));var S=s({},h);this.barCtx.isHorizontal&&n<0&&("start"===h.textAnchor?S.textAnchor="end":"end"===h.textAnchor&&(S.textAnchor="start")),p.plotDataLabelsText({x:e,y:i,text:b,i:r,j:o,parent:m,dataLabelsConfig:S,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return m}},{key:"drawTotalDataLabels",value:function(t){var e,i=t.x,s=t.y,n=t.val,r=t.barWidth,o=t.barHeight,a=t.realIndex,l=t.textAnchor,c=t.barTotalDataLabelsConfig,h=this.w,d=new w(this.barCtx.ctx);return c.enabled&&void 0!==i&&void 0!==s&&this.barCtx.lastActiveBarSerieIndex===a&&(e=d.drawText({x:i-(!h.globals.isBarHorizontal&&h.globals.seriesGroups.length?r/h.globals.seriesGroups.length:0),y:s-(h.globals.isBarHorizontal&&h.globals.seriesGroups.length?o/h.globals.seriesGroups.length:0),foreColor:c.style.color,text:n,textAnchor:l,fontFamily:c.style.fontFamily,fontSize:c.style.fontSize,fontWeight:c.style.fontWeight})),e}}]),t}(),wt=function(){function t(e){r(this,t),this.w=e.w,this.barCtx=e}return a(t,[{key:"initVariables",value:function(t){var e=this.w;this.barCtx.series=t,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<t.length;i++)if(t[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=t[i].length),e.globals.isXNumeric)for(var s=0;s<t[i].length;s++)e.globals.seriesX[i][s]>e.globals.minX&&e.globals.seriesX[i][s]<e.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=e.globals.dataPoints;0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],e.globals.comboCharts||this.checkZeroSeries({series:t})}},{key:"initialPositions",value:function(){var t,e,i,s,n,r,o,a,l=this.w,c=l.globals.dataPoints;this.barCtx.isRangeBar&&(c=l.globals.labels.length);var h=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(h=1),this.barCtx.isHorizontal)n=(i=l.globals.gridHeight/c)/h,l.globals.isXNumeric&&(n=(i=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),n=n*parseInt(this.barCtx.barOptions.barHeight,10)/100,-1===String(this.barCtx.barOptions.barHeight).indexOf("%")&&(n=parseInt(this.barCtx.barOptions.barHeight,10)),a=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(a=l.globals.gridWidth/2),e=(i-n*this.barCtx.seriesLen)/2;else{if(s=l.globals.gridWidth/this.barCtx.visibleItems,l.config.xaxis.convertedCatToNumeric&&(s=l.globals.gridWidth/l.globals.dataPoints),r=s/h*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric){var d=this.barCtx.xRatio;l.globals.minXDiff&&.5!==l.globals.minXDiff&&l.globals.minXDiff/d>0&&(s=l.globals.minXDiff/d),(r=s/h*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(r=1)}-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(r=parseInt(this.barCtx.barOptions.columnWidth,10)),o=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),t=l.globals.padHorizontal+(s-r*this.barCtx.seriesLen)/2}return l.globals.barHeight=n,l.globals.barWidth=r,{x:t,y:e,yDivision:i,xDivision:s,barHeight:n,barWidth:r,zeroH:o,zeroW:a}}},{key:"initializeStackedPrevVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach(function(e){t[e]||(t[e]={}),t[e].prevY=[],t[e].prevX=[],t[e].prevYF=[],t[e].prevXF=[],t[e].prevYVal=[],t[e].prevXVal=[]}):(t.prevY=[],t.prevX=[],t.prevYF=[],t.prevXF=[],t.prevYVal=[],t.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach(function(e){t[e]||(t[e]={}),t[e].xArrj=[],t[e].xArrjF=[],t[e].xArrjVal=[],t[e].yArrj=[],t[e].yArrjF=[],t[e].yArrjVal=[]}):(t.xArrj=[],t.xArrjF=[],t.xArrjVal=[],t.yArrj=[],t.yArrjF=[],t.yArrjVal=[])}},{key:"getPathFillColor",value:function(t,e,i,s){var n,r,o,a,l=this.w,c=new j(this.barCtx.ctx),h=null,d=this.barCtx.barOptions.distributed?i:e;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(s){t[e][i]>=s.from&&t[e][i]<=s.to&&(h=s.color)}),l.config.series[e].data[i]&&l.config.series[e].data[i].fillColor&&(h=l.config.series[e].data[i].fillColor),c.fillPath({seriesNumber:this.barCtx.barOptions.distributed?d:s,dataPointIndex:i,color:h,value:t[e][i],fillConfig:null===(n=l.config.series[e].data[i])||void 0===n?void 0:n.fill,fillType:null!==(r=l.config.series[e].data[i])&&void 0!==r&&null!==(o=r.fill)&&void 0!==o&&o.type?null===(a=l.config.series[e].data[i])||void 0===a?void 0:a.fill.type:Array.isArray(l.config.fill.type)?l.config.fill.type[e]:l.config.fill.type})}},{key:"getStrokeWidth",value:function(t,e,i){var s=0,n=this.w;return void 0===this.barCtx.series[t][e]||null===this.barCtx.series[t][e]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,n.config.stroke.show&&(this.barCtx.isNullValue||(s=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),s}},{key:"shouldApplyRadius",value:function(t){var e=this.w,i=!1;return e.config.plotOptions.bar.borderRadius>0&&(e.config.chart.stacked&&"last"===e.config.plotOptions.bar.borderRadiusWhenStacked?this.barCtx.lastActiveBarSerieIndex===t&&(i=!0):i=!0),i}},{key:"barBackground",value:function(t){var e=t.j,i=t.i,s=t.x1,n=t.x2,r=t.y1,o=t.y2,a=t.elSeries,l=this.w,c=new w(this.barCtx.ctx),h=new X(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&h===i){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[e],u=c.drawRect(void 0!==s?s:0,void 0!==r?r:0,void 0!==n?n:l.globals.gridWidth,void 0!==o?o:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);a.add(u),u.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(t){var e,i=t.barWidth,s=t.barXPosition,n=t.y1,r=t.y2,o=t.strokeWidth,a=t.seriesGroup,l=t.realIndex,c=t.i,h=t.j,d=t.w,u=new w(this.barCtx.ctx);(o=Array.isArray(o)?o[l]:o)||(o=0);var p=i,f=s;null!==(e=d.config.series[l].data[h])&&void 0!==e&&e.columnWidthOffset&&(f=s-d.config.series[l].data[h].columnWidthOffset/2,p=i+d.config.series[l].data[h].columnWidthOffset);var g=f,m=f+p;n+=.001,r+=.001;var x=u.move(g,n),b=u.move(g,n),y=u.line(m-o,n);if(d.globals.previousPaths.length>0&&(b=this.barCtx.getPreviousPath(l,h,!1)),x=x+u.line(g,r)+u.line(m-o,r)+u.line(m-o,n)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),b=b+u.line(g,n)+y+y+y+y+y+u.line(g,n)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(x=u.roundPathCorners(x,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var v=this.barCtx;d.globals.hasSeriesGroups&&a&&(v=this.barCtx[a]),v.yArrj.push(r),v.yArrjF.push(Math.abs(n-r)),v.yArrjVal.push(this.barCtx.series[c][h])}return{pathTo:x,pathFrom:b}}},{key:"getBarpaths",value:function(t){var e,i=t.barYPosition,s=t.barHeight,n=t.x1,r=t.x2,o=t.strokeWidth,a=t.seriesGroup,l=t.realIndex,c=t.i,h=t.j,d=t.w,u=new w(this.barCtx.ctx);(o=Array.isArray(o)?o[l]:o)||(o=0);var p=i,f=s;null!==(e=d.config.series[l].data[h])&&void 0!==e&&e.barHeightOffset&&(p=i-d.config.series[l].data[h].barHeightOffset/2,f=s+d.config.series[l].data[h].barHeightOffset);var g=p,m=p+f;n+=.001,r+=.001;var x=u.move(n,g),b=u.move(n,g);d.globals.previousPaths.length>0&&(b=this.barCtx.getPreviousPath(l,h,!1));var y=u.line(n,m-o);if(x=x+u.line(r,g)+u.line(r,m-o)+y+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),b=b+u.line(n,g)+y+y+y+y+y+u.line(n,g)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(x=u.roundPathCorners(x,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var v=this.barCtx;d.globals.hasSeriesGroups&&a&&(v=this.barCtx[a]),v.xArrj.push(r),v.xArrjF.push(Math.abs(n-r)),v.xArrjVal.push(this.barCtx.series[c][h])}return{pathTo:x,pathFrom:b}}},{key:"checkZeroSeries",value:function(t){for(var e=t.series,i=this.w,s=0;s<e.length;s++){for(var n=0,r=0;r<e[i.globals.maxValsInArrayIndex].length;r++)n+=e[s][r];0===n&&this.barCtx.zeroSerieses.push(s)}}},{key:"getXForValue",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:e;return null!=t&&(i=e+t/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?t/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:e;return null!=t&&(i=e-t/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?t/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),i}}
vendor: 13,772 bytes, line 2
2,{key:"getGoalValues",value:function(t,e,i,n,r){var o=this,a=this.w,c=[],h=function(s,n){var r;c.push((l(r={},t,"x"===t?o.getXForValue(s,e,!1):o.getYForValue(s,i,!1)),l(r,"attrs",n),r))};if(a.globals.seriesGoals[n]&&a.globals.seriesGoals[n][r]&&Array.isArray(a.globals.seriesGoals[n][r])&&a.globals.seriesGoals[n][r].forEach(function(t){h(t.value,t)}),this.barCtx.barOptions.isDumbbell&&a.globals.seriesRange.length){var d=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:a.globals.colors,u={strokeHeight:"x"===t?0:a.globals.markers.size[n],strokeWidth:"x"===t?a.globals.markers.size[n]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(d[n])?d[n][0]:d[n]};h(a.globals.seriesRangeStart[n][r],u),h(a.globals.seriesRangeEnd[n][r],s(s({},u),{},{strokeColor:Array.isArray(d[n])?d[n][1]:d[n]}))}return c}},{key:"drawGoalLine",value:function(t){var e=t.barXPosition,i=t.barYPosition,s=t.goalX,n=t.goalY,r=t.barWidth,o=t.barHeight,a=new w(this.barCtx.ctx),l=a.group({className:"apexcharts-bar-goals-groups"});l.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:l.node}),l.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var c=null;return this.barCtx.isHorizontal?Array.isArray(s)&&s.forEach(function(t){var e=void 0!==t.attrs.strokeHeight?t.attrs.strokeHeight:o/2,s=i+e+o/2;c=a.drawLine(t.x,s-2*e,t.x,s,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeWidth?t.attrs.strokeWidth:2,t.attrs.strokeLineCap),l.add(c)}):Array.isArray(n)&&n.forEach(function(t){var i=void 0!==t.attrs.strokeWidth?t.attrs.strokeWidth:r/2,s=e+i+r/2;c=a.drawLine(s-2*i,t.y,s,t.y,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeHeight?t.attrs.strokeHeight:2,t.attrs.strokeLineCap),l.add(c)}),l}},{key:"drawBarShadow",value:function(t){var e=t.prevPaths,i=t.currPaths,s=t.color,n=this.w,r=e.x,o=e.x1,a=e.barYPosition,l=i.x,c=i.x1,h=i.barYPosition,d=a+i.barHeight,u=new w(this.barCtx.ctx),p=new b,f=u.move(o,d)+u.line(r,d)+u.line(l,h)+u.line(c,h)+u.line(o,d)+("around"===n.config.plotOptions.bar.borderRadiusApplication?" Z":" z");return u.drawPath({d:f,fill:p.shadeColor(.5,b.rgb2hex(s)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(t){var e=t.i,i=t.j,s=this.w,n=0,r=0;return s.globals.seriesPercent.forEach(function(t,s){t[i]&&n++,s<e&&0===t[i]&&r++}),{nonZeroColumns:n,zeroEncounters:r}}}]),t}(),St=function(){function t(e,i){r(this,t),this.ctx=e,this.w=e.w;var s=this.w;this.barOptions=s.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=s.config.stroke.width,this.isNullValue=!1,this.isRangeBar=s.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!s.globals.isBarHorizontal&&s.globals.seriesRange.length&&s.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=i,null!==this.xyRatios&&(this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.invertedXRatio=i.invertedXRatio,this.invertedYRatio=i.invertedYRatio,this.baseLineY=i.baseLineY,this.baseLineInvertedY=i.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.pathArr=[];var n=new X(this.ctx);this.lastActiveBarSerieIndex=n.getActiveConfigSeriesIndex("desc",["bar","column"]);var o=n.getBarSeriesIndices(),a=new S(this.ctx);this.stackedSeriesTotals=a.getStackedSeriesTotals(this.w.config.series.map(function(t,e){return-1===o.indexOf(e)?e:-1}).filter(function(t){return-1!==t})),this.barHelpers=new wt(this)}return a(t,[{key:"draw",value:function(t,e){var i=this.w,n=new w(this.ctx),r=new S(this.ctx,i);t=r.getLogSeries(t),this.series=t,this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);var o=n.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var a=0,l=0;a<t.length;a++,l++){var c,h,d,u,p=void 0,f=void 0,g=[],m=[],x=i.globals.comboCharts?e[a]:a,y=n.group({class:"apexcharts-series",rel:a+1,seriesName:b.escapeString(i.globals.seriesNames[x]),"data:realIndex":x});this.ctx.series.addCollapsedClassToSeries(y,x),t[a].length>0&&(this.visibleI=this.visibleI+1);var v=0,k=0;this.yRatio.length>1&&(this.yaxisIndex=x),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var C=this.barHelpers.initialPositions();f=C.y,v=C.barHeight,h=C.yDivision,u=C.zeroW,p=C.x,k=C.barWidth,c=C.xDivision,d=C.zeroH,this.horizontal||m.push(p+k/2);var A=n.group({class:"apexcharts-datalabels","data:realIndex":x});i.globals.delayedElements.push({el:A.node}),A.node.classList.add("apexcharts-element-hidden");var E=n.group({class:"apexcharts-bar-goals-markers"}),M=n.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:M.node}),M.node.classList.add("apexcharts-element-hidden");for(var T=0;T<i.globals.dataPoints;T++){var P=this.barHelpers.getStrokeWidth(a,T,x),O=null,L={indexes:{i:a,j:T,realIndex:x,bc:l},x:p,y:f,strokeWidth:P,elSeries:y};this.isHorizontal?(O=this.drawBarPaths(s(s({},L),{},{barHeight:v,zeroW:u,yDivision:h})),k=this.series[a][T]/this.invertedYRatio):(O=this.drawColumnPaths(s(s({},L),{},{xDivision:c,barWidth:k,zeroH:d})),v=this.series[a][T]/this.yRatio[this.yaxisIndex]);var _=this.barHelpers.getPathFillColor(t,a,T,x);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&T>0){var I=this.barHelpers.drawBarShadow({color:"string"==typeof _&&-1===(null==_?void 0:_.indexOf("url"))?_:b.hexToRgba(i.globals.colors[a]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:O});I&&M.add(I)}this.pathArr.push(O);var D=this.barHelpers.drawGoalLine({barXPosition:O.barXPosition,barYPosition:O.barYPosition,goalX:O.goalX,goalY:O.goalY,barHeight:v,barWidth:k});D&&E.add(D),f=O.y,p=O.x,T>0&&m.push(p+k/2),g.push(f),this.renderSeries({realIndex:x,pathFill:_,j:T,i:a,pathFrom:O.pathFrom,pathTo:O.pathTo,strokeWidth:P,elSeries:y,x:p,y:f,series:t,barHeight:O.barHeight?O.barHeight:v,barWidth:O.barWidth?O.barWidth:k,elDataLabelsWrap:A,elGoalsMarkers:E,elBarShadows:M,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[x]=m,i.globals.seriesYvalues[x]=g,o.add(y)}return o}},{key:"renderSeries",value:function(t){var e=t.realIndex,i=t.pathFill,s=t.lineFill,n=t.j,r=t.i,o=t.groupIndex,a=t.pathFrom,l=t.pathTo,c=t.strokeWidth,h=t.elSeries,d=t.x,u=t.y,p=t.y1,f=t.y2,g=t.series,m=t.barHeight,x=t.barWidth,b=t.barXPosition,y=t.barYPosition,S=t.elDataLabelsWrap,k=t.elGoalsMarkers,C=t.elBarShadows,A=t.visibleSeries,E=t.type,M=this.w,T=new w(this.ctx);s||(s=this.barOptions.distributed?M.globals.stroke.colors[n]:M.globals.stroke.colors[e]),M.config.series[r].data[n]&&M.config.series[r].data[n].strokeColor&&(s=M.config.series[r].data[n].strokeColor),this.isNullValue&&(i="none");var P=n/M.config.chart.animations.animateGradually.delay*(M.config.chart.animations.speed/M.globals.dataPoints)/2.4,O=T.renderPaths({i:r,j:n,realIndex:e,pathFrom:a,pathTo:l,stroke:s,strokeWidth:c,strokeLineCap:M.config.stroke.lineCap,fill:i,animationDelay:P,initialSpeed:M.config.chart.animations.speed,dataChangeSpeed:M.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(E,"-area")});O.attr("clip-path","url(#gridRectMask".concat(M.globals.cuid,")"));var L=M.config.forecastDataPoints;L.count>0&&n>=M.globals.dataPoints-L.count&&(O.node.setAttribute("stroke-dasharray",L.dashArray),O.node.setAttribute("stroke-width",L.strokeWidth),O.node.setAttribute("fill-opacity",L.fillOpacity)),void 0!==p&&void 0!==f&&(O.attr("data-range-y1",p),O.attr("data-range-y2",f)),new v(this.ctx).setSelectionFilter(O,e,n),h.add(O);var _=new vt(this).handleBarDataLabels({x:d,y:u,y1:p,y2:f,i:r,j:n,series:g,realIndex:e,groupIndex:o,barHeight:m,barWidth:x,barXPosition:b,barYPosition:y,renderedPath:O,visibleSeries:A});return null!==_.dataLabels&&S.add(_.dataLabels),_.totalDataLabels&&S.add(_.totalDataLabels),h.add(S),k&&h.add(k),C&&h.add(C),h}},{key:"drawBarPaths",value:function(t){var e,i=t.indexes,s=t.barHeight,n=t.strokeWidth,r=t.zeroW,o=t.x,a=t.y,l=t.yDivision,c=t.elSeries,h=this.w,d=i.i,u=i.j;if(h.globals.isXNumeric)e=(a=(h.globals.seriesX[d][u]-h.globals.minX)/this.invertedXRatio-s)+s*this.visibleI;else if(h.config.plotOptions.bar.hideZeroBarsWhenGrouped){var p=0,f=0;h.globals.seriesPercent.forEach(function(t,e){t[u]&&p++,e<d&&0===t[u]&&f++}),p>0&&(s=this.seriesLen*s/p),e=a+s*this.visibleI,e-=s*f}else e=a+s*this.visibleI;this.isFunnel&&(r-=(this.barHelpers.getXForValue(this.series[d][u],r)-r)/2),o=this.barHelpers.getXForValue(this.series[d][u],r);var g=this.barHelpers.getBarpaths({barYPosition:e,barHeight:s,x1:r,x2:o,strokeWidth:n,series:this.series,realIndex:i.realIndex,i:d,j:u,w:h});return h.globals.isXNumeric||(a+=l),this.barHelpers.barBackground({j:u,i:d,y1:e-s*this.visibleI,y2:s*this.seriesLen,elSeries:c}),{pathTo:g.pathTo,pathFrom:g.pathFrom,x1:r,x:o,y:a,goalX:this.barHelpers.getGoalValues("x",r,null,d,u),barYPosition:e,barHeight:s}}},{key:"drawColumnPaths",value:function(t){var e,i=t.indexes,s=t.x,n=t.y,r=t.xDivision,o=t.barWidth,a=t.zeroH,l=t.strokeWidth,c=t.elSeries,h=this.w,d=i.realIndex,u=i.i,p=i.j,f=i.bc;if(h.globals.isXNumeric){var g=this.getBarXForNumericXAxis({x:s,j:p,realIndex:d,barWidth:o});s=g.x,e=g.barXPosition}else if(h.config.plotOptions.bar.hideZeroBarsWhenGrouped){var m=this.barHelpers.getZeroValueEncounters({i:u,j:p}),x=m.nonZeroColumns,b=m.zeroEncounters;x>0&&(o=this.seriesLen*o/x),e=s+o*this.visibleI,e-=o*b}else e=s+o*this.visibleI;n=this.barHelpers.getYForValue(this.series[u][p],a);var y=this.barHelpers.getColumnPaths({barXPosition:e,barWidth:o,y1:a,y2:n,strokeWidth:l,series:this.series,realIndex:i.realIndex,i:u,j:p,w:h});return h.globals.isXNumeric||(s+=r),this.barHelpers.barBackground({bc:f,j:p,i:u,x1:e-l/2-o*this.visibleI,x2:o*this.seriesLen+l/2,elSeries:c}),{pathTo:y.pathTo,pathFrom:y.pathFrom,x:s,y:n,goalY:this.barHelpers.getGoalValues("y",null,a,u,p),barXPosition:e,barWidth:o}}},{key:"getBarXForNumericXAxis",value:function(t){var e=t.x,i=t.barWidth,s=t.realIndex,n=t.j,r=this.w,o=s;return r.globals.seriesX[s].length||(o=r.globals.maxValsInArrayIndex),r.globals.seriesX[o][n]&&(e=(r.globals.seriesX[o][n]-r.globals.minX)/this.xRatio-i*this.seriesLen/2),{barXPosition:e+i*this.visibleI,x:e}}},{key:"getPreviousPath",value:function(t,e){for(var i,s=this.w,n=0;n<s.globals.previousPaths.length;n++){var r=s.globals.previousPaths[n];r.paths&&r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(t,10)&&void 0!==s.globals.previousPaths[n].paths[e]&&(i=s.globals.previousPaths[n].paths[e].d)}return i}}]),t}(),kt=function(){c(e,St);var t=p(e);function e(){return r(this,e),t.apply(this,arguments)}return a(e,[{key:"draw",value:function(t,e){var i=this,n=this.w;this.graphics=new w(this.ctx),this.bar=new St(this.ctx,this.xyRatios);var r=new S(this.ctx,n);t=r.getLogSeries(t),this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t),"100%"===n.config.chart.stackType&&(t=n.globals.seriesPercent.slice()),this.series=t,this.barHelpers.initializeStackedPrevVars(this);for(var o=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),a=0,l=0,c=function(r,c){var h=void 0,d=void 0,u=void 0,p=void 0,f=-1;i.groupCtx=i,n.globals.seriesGroups.forEach(function(t,e){t.indexOf(n.config.series[r].name)>-1&&(f=e)}),-1!==f&&(i.groupCtx=i[n.globals.seriesGroups[f]]);var g=[],m=[],x=n.globals.comboCharts?e[r]:r;i.yRatio.length>1&&(i.yaxisIndex=x),i.isReversed=n.config.yaxis[i.yaxisIndex]&&n.config.yaxis[i.yaxisIndex].reversed;var y=i.graphics.group({class:"apexcharts-series",seriesName:b.escapeString(n.globals.seriesNames[x]),rel:r+1,"data:realIndex":x});i.ctx.series.addCollapsedClassToSeries(y,x);var v=i.graphics.group({class:"apexcharts-datalabels","data:realIndex":x}),w=i.graphics.group({class:"apexcharts-bar-goals-markers"}),S=0,k=0,C=i.initialPositions(a,l,h,d,u,p);l=C.y,S=C.barHeight,d=C.yDivision,p=C.zeroW,a=C.x,k=C.barWidth,h=C.xDivision,u=C.zeroH,n.globals.barHeight=S,n.globals.barWidth=k,i.barHelpers.initializeStackedXYVars(i),1===i.groupCtx.prevY.length&&i.groupCtx.prevY[0].every(function(t){return isNaN(t)})&&(i.groupCtx.prevY[0]=i.groupCtx.prevY[0].map(function(t){return u}),i.groupCtx.prevYF[0]=i.groupCtx.prevYF[0].map(function(t){return 0}));for(var A=0;A<n.globals.dataPoints;A++){var E=i.barHelpers.getStrokeWidth(r,A,x),M={indexes:{i:r,j:A,realIndex:x,bc:c},strokeWidth:E,x:a,y:l,elSeries:y,groupIndex:f,seriesGroup:n.globals.seriesGroups[f]},T=null;i.isHorizontal?(T=i.drawStackedBarPaths(s(s({},M),{},{zeroW:p,barHeight:S,yDivision:d})),k=i.series[r][A]/i.invertedYRatio):(T=i.drawStackedColumnPaths(s(s({},M),{},{xDivision:h,barWidth:k,zeroH:u})),S=i.series[r][A]/i.yRatio[i.yaxisIndex]);var P=i.barHelpers.drawGoalLine({barXPosition:T.barXPosition,barYPosition:T.barYPosition,goalX:T.goalX,goalY:T.goalY,barHeight:S,barWidth:k});P&&w.add(P),l=T.y,a=T.x,g.push(a),m.push(l);var O=i.barHelpers.getPathFillColor(t,r,A,x);y=i.renderSeries({realIndex:x,pathFill:O,j:A,i:r,groupIndex:f,pathFrom:T.pathFrom,pathTo:T.pathTo,strokeWidth:E,elSeries:y,x:a,y:l,series:t,barHeight:S,barWidth:k,elDataLabelsWrap:v,elGoalsMarkers:w,type:"bar",visibleSeries:0})}n.globals.seriesXvalues[x]=g,n.globals.seriesYvalues[x]=m,i.groupCtx.prevY.push(i.groupCtx.yArrj),i.groupCtx.prevYF.push(i.groupCtx.yArrjF),i.groupCtx.prevYVal.push(i.groupCtx.yArrjVal),i.groupCtx.prevX.push(i.groupCtx.xArrj),i.groupCtx.prevXF.push(i.groupCtx.xArrjF),i.groupCtx.prevXVal.push(i.groupCtx.xArrjVal),o.add(y)},h=0,d=0;h<t.length;h++,d++)c(h,d);return o}}
vendor: 4,174 bytes, line 2
2,{key:"initialPositions",value:function(t,e,i,s,n,r){var o,a,l,c,h=this.w;return this.isHorizontal?(l=(l=s=h.globals.gridHeight/h.globals.dataPoints)*parseInt(h.config.plotOptions.bar.barHeight,10)/100,-1===String(h.config.plotOptions.bar.barHeight).indexOf("%")&&(l=parseInt(h.config.plotOptions.bar.barHeight,10)),r=this.baseLineInvertedY+h.globals.padHorizontal+(this.isReversed?h.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),e=(s-l)/2):(c=i=h.globals.gridWidth/h.globals.dataPoints,c=h.globals.isXNumeric&&h.globals.dataPoints>1?(i=h.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:c*parseInt(h.config.plotOptions.bar.columnWidth,10)/100,-1===String(h.config.plotOptions.bar.columnWidth).indexOf("%")&&(c=parseInt(h.config.plotOptions.bar.columnWidth,10)),n=h.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?h.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),t=h.globals.padHorizontal+(i-c)/2),{x:t,y:e,yDivision:s,xDivision:i,barHeight:null!==(o=h.globals.seriesGroups)&&void 0!==o&&o.length?l/h.globals.seriesGroups.length:l,barWidth:null!==(a=h.globals.seriesGroups)&&void 0!==a&&a.length?c/h.globals.seriesGroups.length:c,zeroH:n,zeroW:r}}},{key:"drawStackedBarPaths",value:function(t){for(var e,i=t.indexes,s=t.barHeight,n=t.strokeWidth,r=t.zeroW,o=t.x,a=t.y,l=t.groupIndex,c=t.seriesGroup,h=t.yDivision,d=t.elSeries,u=this.w,p=a+(-1!==l?l*s:0),f=i.i,g=i.j,m=0,x=0;x<this.groupCtx.prevXF.length;x++)m+=this.groupCtx.prevXF[x][g];var b=f;if(c&&(b=c.indexOf(u.config.series[f].name)),b>0){var y=r;this.groupCtx.prevXVal[b-1][g]<0?y=this.series[f][g]>=0?this.groupCtx.prevX[b-1][g]+m-2*(this.isReversed?m:0):this.groupCtx.prevX[b-1][g]:this.groupCtx.prevXVal[b-1][g]>=0&&(y=this.series[f][g]>=0?this.groupCtx.prevX[b-1][g]:this.groupCtx.prevX[b-1][g]-m+2*(this.isReversed?m:0)),e=y}else e=r;o=null===this.series[f][g]?e:e+this.series[f][g]/this.invertedYRatio-2*(this.isReversed?this.series[f][g]/this.invertedYRatio:0);var v=this.barHelpers.getBarpaths({barYPosition:p,barHeight:s,x1:e,x2:o,strokeWidth:n,series:this.series,realIndex:i.realIndex,seriesGroup:c,i:f,j:g,w:u});return this.barHelpers.barBackground({j:g,i:f,y1:p,y2:s,elSeries:d}),a+=h,{pathTo:v.pathTo,pathFrom:v.pathFrom,goalX:this.barHelpers.getGoalValues("x",r,null,f,g),barYPosition:p,x:o,y:a}}},{key:"drawStackedColumnPaths",value:function(t){var e=t.indexes,i=t.x,s=t.y,n=t.xDivision,r=t.barWidth,o=t.zeroH,a=t.groupIndex,l=t.seriesGroup,c=t.elSeries,h=this.w,d=e.i,u=e.j,p=e.bc;if(h.globals.isXNumeric){var f=h.globals.seriesX[d][u];f||(f=0),i=(f-h.globals.minX)/this.xRatio-r/2,h.globals.seriesGroups.length&&(i=(f-h.globals.minX)/this.xRatio-r/2*h.globals.seriesGroups.length)}for(var g,m=i+(-1!==a?a*r:0),x=0,b=0;b<this.groupCtx.prevYF.length;b++)x+=isNaN(this.groupCtx.prevYF[b][u])?0:this.groupCtx.prevYF[b][u];var y=d;if(l&&(y=l.indexOf(h.config.series[d].name)),y>0&&!h.globals.isXNumeric||y>0&&h.globals.isXNumeric&&h.globals.seriesX[d-1][u]===h.globals.seriesX[d][u]){var v,w,S,k=Math.min(this.yRatio.length+1,d+1);if(void 0!==this.groupCtx.prevY[y-1]&&this.groupCtx.prevY[y-1].length)for(var C=1;C<k;C++){var A;if(!isNaN(null===(A=this.groupCtx.prevY[y-C])||void 0===A?void 0:A[u])){S=this.groupCtx.prevY[y-C][u];break}}for(var E=1;E<k;E++){var M,T;if((null===(M=this.groupCtx.prevYVal[y-E])||void 0===M?void 0:M[u])<0){w=this.series[d][u]>=0?S-x+2*(this.isReversed?x:0):S;break}if((null===(T=this.groupCtx.prevYVal[y-E])||void 0===T?void 0:T[u])>=0){w=this.series[d][u]>=0?S:S+x-2*(this.isReversed?x:0);break}}void 0===w&&(w=h.globals.gridHeight),g=null!==(v=this.groupCtx.prevYF[0])&&void 0!==v&&v.every(function(t){return 0===t})&&this.groupCtx.prevYF.slice(1,y).every(function(t){return t.every(function(t){return isNaN(t)})})?o:w}else g=o;s=this.series[d][u]?g-this.series[d][u]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[d][u]/this.yRatio[this.yaxisIndex]:0):g;var P=this.barHelpers.getColumnPaths({barXPosition:m,barWidth:r,y1:g,y2:s,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:l,realIndex:e.realIndex,i:d,j:u,w:h});
vendor: 5,700 bytes, line 2
2return this.barHelpers.barBackground({bc:p,j:u,i:d,x1:m,x2:r,elSeries:c}),i+=n,{pathTo:P.pathTo,pathFrom:P.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,o,d,u),barXPosition:m,x:h.globals.isXNumeric?i-n:i,y:s}}}]),e}(),Ct=function(){c(e,St);var t=p(e);function e(){return r(this,e),t.apply(this,arguments)}return a(e,[{key:"draw",value:function(t,e,i){var n=this,r=this.w,o=new w(this.ctx),a=r.globals.comboCharts?e:r.config.chart.type,l=new j(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=r.config.plotOptions.bar.horizontal;var c=new S(this.ctx,r);t=c.getLogSeries(t),this.series=t,this.yRatio=c.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);for(var h=o.group({class:"apexcharts-".concat(a,"-series apexcharts-plot-series")}),d=function(e){n.isBoxPlot="boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[e].type;var a,c,d,u,p,f,g=void 0,m=void 0,x=[],y=[],v=r.globals.comboCharts?i[e]:e,w=o.group({class:"apexcharts-series",seriesName:b.escapeString(r.globals.seriesNames[v]),rel:e+1,"data:realIndex":v});n.ctx.series.addCollapsedClassToSeries(w,v),t[e].length>0&&(n.visibleI=n.visibleI+1),n.yRatio.length>1&&(n.yaxisIndex=v);var S=n.barHelpers.initialPositions();m=S.y,p=S.barHeight,c=S.yDivision,u=S.zeroW,g=S.x,f=S.barWidth,a=S.xDivision,d=S.zeroH,y.push(g+f/2);for(var k=o.group({class:"apexcharts-datalabels","data:realIndex":v}),C=function(i){var o=n.barHelpers.getStrokeWidth(e,i,v),h=null,b={indexes:{i:e,j:i,realIndex:v},x:g,y:m,strokeWidth:o,elSeries:w};h=n.isHorizontal?n.drawHorizontalBoxPaths(s(s({},b),{},{yDivision:c,barHeight:p,zeroW:u})):n.drawVerticalBoxPaths(s(s({},b),{},{xDivision:a,barWidth:f,zeroH:d})),m=h.y,g=h.x,i>0&&y.push(g+f/2),x.push(m),h.pathTo.forEach(function(s,a){var c=!n.isBoxPlot&&n.candlestickOptions.wick.useFillColor?h.color[a]:r.globals.stroke.colors[e],d=l.fillPath({seriesNumber:v,dataPointIndex:i,color:h.color[a],value:t[e][i]});n.renderSeries({realIndex:v,pathFill:d,lineFill:c,j:i,i:e,pathFrom:h.pathFrom,pathTo:s,strokeWidth:o,elSeries:w,x:g,y:m,series:t,barHeight:p,barWidth:f,elDataLabelsWrap:k,visibleSeries:n.visibleI,type:r.config.chart.type})})},A=0;A<r.globals.dataPoints;A++)C(A);r.globals.seriesXvalues[v]=y,r.globals.seriesYvalues[v]=x,h.add(w)},u=0;u<t.length;u++)d(u);return h}},{key:"drawVerticalBoxPaths",value:function(t){var e=t.indexes,i=t.x;t.y;var s=t.xDivision,n=t.barWidth,r=t.zeroH,o=t.strokeWidth,a=this.w,l=new w(this.ctx),c=e.i,h=e.j,d=!0,u=a.config.plotOptions.candlestick.colors.upward,p=a.config.plotOptions.candlestick.colors.downward,f="";this.isBoxPlot&&(f=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var g=this.yRatio[this.yaxisIndex],m=e.realIndex,x=this.getOHLCValue(m,h),b=r,y=r;x.o>x.c&&(d=!1);var v=Math.min(x.o,x.c),S=Math.max(x.o,x.c),k=x.m;a.globals.isXNumeric&&(i=(a.globals.seriesX[m][h]-a.globals.minX)/this.xRatio-n/2);var C=i+n*this.visibleI;void 0===this.series[c][h]||null===this.series[c][h]?(v=r,S=r):(v=r-v/g,S=r-S/g,b=r-x.h/g,y=r-x.l/g,k=r-x.m/g);var A=l.move(C,r),E=l.move(C+n/2,v);return a.globals.previousPaths.length>0&&(E=this.getPreviousPath(m,h,!0)),A=this.isBoxPlot?[l.move(C,v)+l.line(C+n/2,v)+l.line(C+n/2,b)+l.line(C+n/4,b)+l.line(C+n-n/4,b)+l.line(C+n/2,b)+l.line(C+n/2,v)+l.line(C+n,v)+l.line(C+n,k)+l.line(C,k)+l.line(C,v+o/2),l.move(C,k)+l.line(C+n,k)+l.line(C+n,S)+l.line(C+n/2,S)+l.line(C+n/2,y)+l.line(C+n-n/4,y)+l.line(C+n/4,y)+l.line(C+n/2,y)+l.line(C+n/2,S)+l.line(C,S)+l.line(C,k)+"z"]:[l.move(C,S)+l.line(C+n/2,S)+l.line(C+n/2,b)+l.line(C+n/2,S)+l.line(C+n,S)+l.line(C+n,v)+l.line(C+n/2,v)+l.line(C+n/2,y)+l.line(C+n/2,v)+l.line(C,v)+l.line(C,S-o/2)],E+=l.move(C,v),a.globals.isXNumeric||(i+=s),{pathTo:A,pathFrom:E,x:i,y:S,barXPosition:C,color:this.isBoxPlot?f:d?[u]:[p]}}},{key:"drawHorizontalBoxPaths",value:function(t){var e=t.indexes;t.x;var i=t.y,s=t.yDivision,n=t.barHeight,r=t.zeroW,o=t.strokeWidth,a=this.w,l=new w(this.ctx),c=e.i,h=e.j,d=this.boxOptions.colors.lower;this.isBoxPlot&&(d=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var u=this.invertedYRatio,p=e.realIndex,f=this.getOHLCValue(p,h),g=r,m=r,x=Math.min(f.o,f.c),b=Math.max(f.o,f.c),y=f.m;a.globals.isXNumeric&&(i=(a.globals.seriesX[p][h]-a.globals.minX)/this.invertedXRatio-n/2);var v=i+n*this.visibleI;void 0===this.series[c][h]||null===this.series[c][h]?(x=r,b=r):(x=r+x/u,b=r+b/u,g=r+f.h/u,m=r+f.l/u,y=r+f.m/u);var S=l.move(r,v),k=l.move(x,v+n/2);return a.globals.previousPaths.length>0&&(k=this.getPreviousPath(p,h,!0)),S=[l.move(x,v)+l.line(x,v+n/2)+l.line(g,v+n/2)+l.line(g,v+n/2-n/4)+l.line(g,v+n/2+n/4)+l.line(g,v+n/2)+l.line(x,v+n/2)+l.line(x,v+n)+l.line(y,v+n)+l.line(y,v)+l.line(x+o/2,v),l.move(y,v)+l.line(y,v+n)+l.line(b,v+n)+l.line(b,v+n/2)+l.line(m,v+n/2)+l.line(m,v+n-n/4)+l.line(m,v+n/4)+l.line(m,v+n/2)+l.line(b,v+n/2)+l.line(b,v)+l.line(y,v)+"z"],k+=l.move(x,v),a.globals.isXNumeric||(i+=s),{pathTo:S,pathFrom:k,x:b,y:i,barYPosition:v,color:d}}},{key:"getOHLCValue",value:function(t,e){var i=this.w;return{o:this.isBoxPlot?i.globals.seriesCandleH[t][e]:i.globals.seriesCandleO[t][e],h:this.isBoxPlot?i.globals.seriesCandleO[t][e]:i.globals.seriesCandleH[t][e],m:i.globals.seriesCandleM[t][e],l:this.isBoxPlot?i.globals.seriesCandleC[t][e]:i.globals.seriesCandleL[t][e],c:this.isBoxPlot?i.globals.seriesCandleL[t][e]:i.globals.seriesCandleC[t][e]}}}]),e}(),At=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"checkColorRange",value:function(){var t=this.w,e=!1,i=t.config.plotOptions[t.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map(function(t,i){t.from<=0&&(e=!0)}),e}}
vendor: 4,960 bytes, line 2
2,{key:"getShadeColor",value:function(t,e,i,s){var n=this.w,r=1,o=n.config.plotOptions[t].shadeIntensity,a=this.determineColor(t,e,i);n.globals.hasNegs||s?r=n.config.plotOptions[t].reverseNegativeShade?a.percent<0?a.percent/100*(1.25*o):(1-a.percent/100)*(1.25*o):a.percent<=0?1-(1+a.percent/100)*o:(1-a.percent/100)*o:(r=1-a.percent/100,"treemap"===t&&(r=(1-a.percent/100)*(1.25*o)));var l=a.color,c=new b;return n.config.plotOptions[t].enableShades&&(l="dark"===this.w.config.theme.mode?b.hexToRgba(c.shadeColor(-1*r,a.color),n.config.fill.opacity):b.hexToRgba(c.shadeColor(r,a.color),n.config.fill.opacity)),{color:l,colorProps:a}}},{key:"determineColor",value:function(t,e,i){var s=this.w,n=s.globals.series[e][i],r=s.config.plotOptions[t],o=r.colorScale.inverse?i:e;r.distributed&&"treemap"===s.config.chart.type&&(o=i);var a=s.globals.colors[o],l=null,c=Math.min.apply(Math,g(s.globals.series[e])),h=Math.max.apply(Math,g(s.globals.series[e]));r.distributed||"heatmap"!==t||(c=s.globals.minY,h=s.globals.maxY),void 0!==r.colorScale.min&&(c=r.colorScale.min<s.globals.minY?r.colorScale.min:s.globals.minY,h=r.colorScale.max>s.globals.maxY?r.colorScale.max:s.globals.maxY);var d=Math.abs(h)+Math.abs(c),u=100*n/(0===d?d-1e-6:d);return r.colorScale.ranges.length>0&&r.colorScale.ranges.map(function(t,e){if(n>=t.from&&n<=t.to){a=t.color,l=t.foreColor?t.foreColor:null,c=t.from,h=t.to;var i=Math.abs(h)+Math.abs(c);u=100*n/(0===i?i-1e-6:i)}}),{color:a,foreColor:l,percent:u}}},{key:"calculateDataLabels",value:function(t){var e=t.text,i=t.x,s=t.y,n=t.i,r=t.j,o=t.colorProps,a=t.fontSize,l=this.w.config.dataLabels,c=new w(this.ctx),h=new H(this.ctx),d=null;if(l.enabled){d=c.group({class:"apexcharts-data-labels"});var u=l.offsetX,p=l.offsetY,f=i+u,g=s+parseFloat(l.style.fontSize)/3+p;h.plotDataLabelsText({x:f,y:g,text:e,i:n,j:r,color:o.foreColor,parent:d,fontSize:a,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(t){var e=new w(this.ctx);t.node.addEventListener("mouseenter",e.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",e.pathMouseLeave.bind(this,t)),t.node.addEventListener("mousedown",e.pathMouseDown.bind(this,t))}}]),t}(),Et=function(){function t(e,i){r(this,t),this.ctx=e,this.w=e.w,this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new At(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return a(t,[{key:"draw",value:function(t){var e=this.w,i=new w(this.ctx),s=i.group({class:"apexcharts-heatmap"});s.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var n=e.globals.gridWidth/e.globals.dataPoints,r=e.globals.gridHeight/e.globals.series.length,o=0,a=!1;this.negRange=this.helpers.checkColorRange();var l=t.slice();e.config.yaxis[0].reversed&&(a=!0,l.reverse());for(var c=a?0:l.length-1;a?c<l.length:c>=0;a?c++:c--){var h=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:b.escapeString(e.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(h,c),e.config.chart.dropShadow.enabled){var d=e.config.chart.dropShadow;new v(this.ctx).dropShadow(h,d,c)}for(var u=0,p=e.config.plotOptions.heatmap.shadeIntensity,f=0;f<l[c].length;f++){var g=this.helpers.getShadeColor(e.config.chart.type,c,f,this.negRange),m=g.color,x=g.colorProps;"image"===e.config.fill.type&&(m=new j(this.ctx).fillPath({seriesNumber:c,dataPointIndex:f,opacity:e.globals.hasNegs?x.percent<0?1-(1+x.percent/100):p+x.percent/100:x.percent/100,patternID:b.randomId(),width:e.config.fill.image.width?e.config.fill.image.width:n,height:e.config.fill.image.height?e.config.fill.image.height:r}));var y=this.rectRadius,S=i.drawRect(u,o,n,r,y);if(S.attr({cx:u,cy:o}),S.node.classList.add("apexcharts-heatmap-rect"),h.add(S),S.attr({fill:m,i:c,index:c,j:f,val:t[c][f],"stroke-width":this.strokeWidth,stroke:e.config.plotOptions.heatmap.useFillColorAsStroke?m:e.globals.stroke.colors[0],color:m}),this.helpers.addListeners(S),e.config.chart.animations.enabled&&!e.globals.dataChanged){var k=1;e.globals.resized||(k=e.config.chart.animations.speed),this.animateHeatMap(S,u,o,n,r,k)}if(e.globals.dataChanged){var C=1;if(this.dynamicAnim.enabled&&e.globals.shouldAnimate){C=this.dynamicAnim.speed;var A=e.globals.previousPaths[c]&&e.globals.previousPaths[c][f]&&e.globals.previousPaths[c][f].color;A||(A="rgba(255, 255, 255, 0)"),this.animateHeatColor(S,b.isColorHex(A)?A:b.rgb2hex(A),b.isColorHex(m)?m:b.rgb2hex(m),C)}}var E=(0,e.config.dataLabels.formatter)(e.globals.series[c][f],{value:e.globals.series[c][f],seriesIndex:c,dataPointIndex:f,w:e}),M=this.helpers.calculateDataLabels({text:E,x:u+n/2,y:o+r/2,i:c,j:f,colorProps:x,series:l});null!==M&&h.add(M),u+=n}o+=r,s.add(h)}var T=e.globals.yAxisScale[0].result.slice();return e.config.yaxis[0].reversed?T.unshift(""):T.push(""),e.globals.yAxisScale[0].result=T,s}}
vendor: 6,364 bytes, line 2
2,{key:"animateHeatMap",value:function(t,e,i,s,n,r){var o=new y(this.ctx);o.animateRect(t,{x:e+s/2,y:i+n/2,width:0,height:0},{x:e,y:i,width:s,height:n},r,function(){o.animationCompleted(t)})}},{key:"animateHeatColor",value:function(t,e,i,s){t.attr({fill:e}).animate(s).attr({fill:i})}}]),t}(),Mt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"drawYAxisTexts",value:function(t,e,i,s){var n=this.w,r=n.config.yaxis[0],o=n.globals.yLabelFormatters[0];return new w(this.ctx).drawText({x:t+r.labels.offsetX,y:e+r.labels.offsetY,text:o(s,i),textAnchor:"middle",fontSize:r.labels.style.fontSize,fontFamily:r.labels.style.fontFamily,foreColor:Array.isArray(r.labels.style.colors)?r.labels.style.colors[i]:r.labels.style.colors})}}]),t}(),Tt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=Math.min(i.globals.gridWidth,i.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=i.globals.gridWidth/2,"radialBar"===i.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(i.config.plotOptions.pie.endAngle-i.config.plotOptions.pie.startAngle),this.initialAngle=i.config.plotOptions.pie.startAngle%this.fullAngle,i.globals.radialSize=this.defaultSize/2.05-i.config.stroke.width-(i.config.chart.sparkline.enabled?0:i.config.chart.dropShadow.blur),this.donutSize=i.globals.radialSize*parseInt(i.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return a(t,[{key:"draw",value:function(t){var e=this,i=this.w,s=new w(this.ctx);if(this.ret=s.group({class:"apexcharts-pie"}),i.globals.noData)return this.ret;for(var n=0,r=0;r<t.length;r++)n+=b.negToZero(t[r]);var o=[],a=s.group();0===n&&(n=1e-5),t.forEach(function(t){e.maxY=Math.max(e.maxY,t)}),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),"back"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret);for(var l=0;l<t.length;l++){var c=this.fullAngle*b.negToZero(t[l])/n;o.push(c),"polarArea"===this.chartType?(o[l]=this.fullAngle/t.length,this.sliceSizes.push(i.globals.radialSize*t[l]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var h,d=0,u=0;u<i.globals.previousPaths.length;u++)d+=b.negToZero(i.globals.previousPaths[u]);for(var p=0;p<i.globals.previousPaths.length;p++)h=this.fullAngle*b.negToZero(i.globals.previousPaths[p])/d,this.prevSectorAngleArr.push(h)}this.donutSize<0&&(this.donutSize=0);var f=i.config.plotOptions.pie.customScale,g=i.globals.gridWidth/2,m=i.globals.gridHeight/2,x=g-i.globals.gridWidth/2*f,y=m-i.globals.gridHeight/2*f;if("donut"===this.chartType){var v=s.drawCircle(this.donutSize);v.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),a.add(v)}var S=this.drawArcs(o,t);if(this.sliceLabels.forEach(function(t){S.add(t)}),a.attr({transform:"translate(".concat(x,", ").concat(y,") scale(").concat(f,")")}),a.add(S),this.ret.add(a),this.donutDataLabels.show){var k=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:x,translateY:y});this.ret.add(k)}return"front"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(t,e){var i=this.w,s=new v(this.ctx),n=new w(this.ctx),r=new j(this.ctx),o=n.group({class:"apexcharts-slices"}),a=this.initialAngle,l=this.initialAngle,c=this.initialAngle,h=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var d=0;d<t.length;d++){var u=n.group({class:"apexcharts-series apexcharts-pie-series",seriesName:b.escapeString(i.globals.seriesNames[d]),rel:d+1,"data:realIndex":d});o.add(u),l=h,c=(a=c)+t[d],h=l+this.prevSectorAngleArr[d];var p=c<a?this.fullAngle+c-a:c-a,f=r.fillPath({seriesNumber:d,size:this.sliceSizes[d],value:e[d]}),g=this.getChangedPath(l,h),m=n.drawPath({d:g,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[d]:this.lineColorArr,strokeWidth:0,fill:f,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(d)});if(m.attr({index:0,j:d}),s.setSelectionFilter(m,0,d),i.config.chart.dropShadow.enabled){var x=i.config.chart.dropShadow;s.dropShadow(m,x,d)}this.addListeners(m,this.donutDataLabels),w.setAttrs(m.node,{"data:angle":p,"data:startAngle":a,"data:strokeWidth":this.strokeWidth,"data:value":e[d]});var y={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?y=b.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(a+p/2)%this.fullAngle):"donut"===this.chartType&&(y=b.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(a+p/2)%this.fullAngle)),u.add(m);var S=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(0===(S=p/this.fullAngle*i.config.chart.animations.speed)&&(S=1),this.animDur=S+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(m,{size:this.sliceSizes[d],endAngle:c,startAngle:a,prevStartAngle:l,prevEndAngle:h,animateStartingPos:!0,i:d,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(m,{size:this.sliceSizes[d],endAngle:c,startAngle:a,i:d,totalItems:t.length-1,animBeginArr:this.animBeginArr,dur:S}),i.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&m.click(this.pieClicked.bind(this,d)),void 0!==i.globals.selectedDataPoints[0]&&i.globals.selectedDataPoints[0].indexOf(d)>-1&&this.pieClicked(d),i.config.dataLabels.enabled){var k=y.x,C=y.y,A=100*p/this.fullAngle+"%";if(0!==p&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<t[d]){var E=i.config.dataLabels.formatter;
vendor: 5,344 bytes, line 2
2void 0!==E&&(A=E(i.globals.seriesPercent[d][0],{seriesIndex:d,w:i}));var M=i.globals.dataLabels.style.colors[d],T=n.group({class:"apexcharts-datalabels"}),P=n.drawText({x:k,y:C,text:A,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:M});if(T.add(P),i.config.dataLabels.dropShadow.enabled){var O=i.config.dataLabels.dropShadow;s.dropShadow(P,O)}P.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&!1===i.globals.resized&&(P.node.classList.add("apexcharts-pie-label-delay"),P.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(T)}}}return o}},{key:"addListeners",value:function(t,e){var i=new w(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,t)),t.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this,t)),this.donutDataLabels.total.showAlways||(t.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,t.node,e)))}},{key:"animatePaths",value:function(t,e){var i=this.w,s=e.endAngle<e.startAngle?this.fullAngle+e.endAngle-e.startAngle:e.endAngle-e.startAngle,n=s,r=e.startAngle,o=e.startAngle;void 0!==e.prevStartAngle&&void 0!==e.prevEndAngle&&(r=e.prevEndAngle,n=e.prevEndAngle<e.prevStartAngle?this.fullAngle+e.prevEndAngle-e.prevStartAngle:e.prevEndAngle-e.prevStartAngle),e.i===i.config.series.length-1&&(s+o>this.fullAngle?e.endAngle=e.endAngle-(s+o):s+o<this.fullAngle&&(e.endAngle=e.endAngle+(this.fullAngle-(s+o)))),s===this.fullAngle&&(s=this.fullAngle-.01),this.animateArc(t,r,o,s,n,e)}},{key:"animateArc",value:function(t,e,i,s,n,r){var o,a=this,l=this.w,c=new y(this.ctx),h=r.size;(isNaN(e)||isNaN(n))&&(e=i,n=s,r.dur=0);var d=s,u=i,p=e<i?this.fullAngle+e-i:e-i;l.globals.dataChanged&&r.shouldSetPrevPaths&&r.prevEndAngle&&(o=a.getPiePath({me:a,startAngle:r.prevStartAngle,angle:r.prevEndAngle<r.prevStartAngle?this.fullAngle+r.prevEndAngle-r.prevStartAngle:r.prevEndAngle-r.prevStartAngle,size:h}),t.attr({d:o})),0!==r.dur?t.animate(r.dur,l.globals.easing,r.animBeginArr[r.i]).afterAll(function(){"pie"!==a.chartType&&"donut"!==a.chartType&&"polarArea"!==a.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":a.strokeWidth}),r.i===l.config.series.length-1&&c.animationCompleted(t)}).during(function(l){d=p+(s-p)*l,r.animateStartingPos&&(d=n+(s-n)*l,u=e-n+(i-(e-n))*l),o=a.getPiePath({me:a,startAngle:u,angle:d,size:h}),t.node.setAttribute("data:pathOrig",o),t.attr({d:o})}):(o=a.getPiePath({me:a,startAngle:u,angle:s,size:h}),r.isTrack||(l.globals.animationEnded=!0),t.node.setAttribute("data:pathOrig",o),t.attr({d:o,"stroke-width":a.strokeWidth}))}},{key:"pieClicked",value:function(t){var e,i=this.w,s=this,n=s.sliceSizes[t]+(i.config.plotOptions.pie.expandOnClick?4:0),r=i.globals.dom.Paper.select(".apexcharts-".concat(s.chartType.toLowerCase(),"-slice-").concat(t)).members[0];if("true"!==r.attr("data:pieClicked")){var o=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(o,function(t){t.setAttribute("data:pieClicked","false");var e=t.getAttribute("data:pathOrig");e&&t.setAttribute("d",e)}),r.attr("data:pieClicked","true");var a=parseInt(r.attr("data:startAngle"),10),l=parseInt(r.attr("data:angle"),10);e=s.getPiePath({me:s,startAngle:a,angle:l,size:n}),360!==l&&r.plot(e)}else{r.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(r.node,this.donutDataLabels);var c=r.attr("data:pathOrig");r.attr({d:c})}}},{key:"getChangedPath",value:function(t,e){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:t,angle:e-t,size:this.size})),i}},{key:"getPiePath",value:function(t){var e,i=t.me,s=t.startAngle,n=t.angle,r=t.size,o=new w(this.ctx),a=s,l=Math.PI*(a-90)/180,c=n+s;Math.ceil(c)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(c=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(c)>this.fullAngle&&(c-=this.fullAngle);var h=Math.PI*(c-90)/180,d=i.centerX+r*Math.cos(l),u=i.centerY+r*Math.sin(l),p=i.centerX+r*Math.cos(h),f=i.centerY+r*Math.sin(h),g=b.polarToCartesian(i.centerX,i.centerY,i.donutSize,c),m=b.polarToCartesian(i.centerX,i.centerY,i.donutSize,a),x=n>180?1:0,y=["M",d,u,"A",r,r,0,x,1,p,f];return e="donut"===i.chartType?[].concat(y,["L",g.x,g.y,"A",i.donutSize,i.donutSize,0,x,0,m.x,m.y,"L",d,u,"z"]).join(" "):"pie"===i.chartType||"polarArea"===i.chartType?[].concat(y,["L",i.centerX,i.centerY,"L",d,u]).join(" "):[].concat(y).join(" "),o.roundPathCorners(e,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(t){var e=this.w,i=new $(this.ctx),s=new w(this.ctx),n=new Mt(this.ctx),r=s.group(),o=s.group(),a=i.niceScale(0,Math.ceil(this.maxY),e.config.yaxis[0].tickAmount,0,!0),l=a.result.reverse(),c=a.result.length;this.maxY=a.niceMax;for(var h=e.globals.radialSize,d=h/(c-1),u=0;u<c-1;u++){var p=s.drawCircle(h);if(p.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":e.config.plotOptions.polarArea.r
vendor: 8,757 bytes, line 2
2ings.strokeWidth,stroke:e.config.plotOptions.polarArea.rings.strokeColor}),e.config.yaxis[0].show){var f=n.drawYAxisTexts(this.centerX,this.centerY-h+parseInt(e.config.yaxis[0].labels.style.fontSize,10)/2,u,l[u]);o.add(f)}r.add(p),h-=d}this.drawSpokes(t),t.add(r),t.add(o)}},{key:"renderInnerDataLabels",value:function(t,e){var i=this.w,s=new w(this.ctx),n=s.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(e.translateX?e.translateX:0,", ").concat(e.translateY?e.translateY:0,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),r=t.total.show;n.node.style.opacity=e.opacity;var o,a,l=e.centerX,c=e.centerY;o=void 0===t.name.color?i.globals.colors[0]:t.name.color;var h=t.name.fontSize,d=t.name.fontFamily,u=t.name.fontWeight;a=void 0===t.value.color?i.config.chart.foreColor:t.value.color;var p=t.value.formatter,f="",g="";if(r?(o=t.total.color,h=t.total.fontSize,d=t.total.fontFamily,u=t.total.fontWeight,g=t.total.label,f=t.total.formatter(i)):1===i.globals.series.length&&(f=p(i.globals.series[0],i),g=i.globals.seriesNames[0]),g&&(g=t.name.formatter(g,t.total.show,i)),t.name.show){var m=s.drawText({x:l,y:c+parseFloat(t.name.offsetY),text:g,textAnchor:"middle",foreColor:o,fontSize:h,fontWeight:u,fontFamily:d});m.node.classList.add("apexcharts-datalabel-label"),n.add(m)}if(t.value.show){var x=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,b=s.drawText({x:l,y:c+x,text:f,textAnchor:"middle",foreColor:a,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});b.node.classList.add("apexcharts-datalabel-value"),n.add(b)}return n}},{key:"printInnerLabels",value:function(t,e,i,s){var n,r=this.w;s?n=void 0===t.name.color?r.globals.colors[parseInt(s.parentNode.getAttribute("rel"),10)-1]:t.name.color:r.globals.series.length>1&&t.total.show&&(n=t.total.color);var o=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),a=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,t.value.formatter)(i,r),s||"function"!=typeof t.total.formatter||(i=t.total.formatter(r));var l=e===t.total.label;e=t.name.formatter(e,l,r),null!==o&&(o.textContent=e),null!==a&&(a.textContent=i),null!==o&&(o.style.fill=n)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,s=t.getAttribute("data:value"),n=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(e,n,s,t);var r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==r&&(r.style.opacity=1)}},{key:"drawSpokes",value:function(t){var e=this,i=this.w,s=new w(this.ctx),n=i.config.plotOptions.polarArea.spokes;if(0!==n.strokeWidth){for(var r=[],o=360/i.globals.series.length,a=0;a<i.globals.series.length;a++)r.push(b.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+o*a));r.forEach(function(i,r){var o=s.drawLine(i.x,i.y,e.centerX,e.centerY,Array.isArray(n.connectorColors)?n.connectorColors[r]:n.connectorColors);t.add(o)})}}},{key:"revertDataLabelsInner",value:function(t,e,i){var s=this,n=this.w,r=n.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),o=!1,a=n.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),l=function(t){var i=t.makeSliceOut,n=t.printLabel;Array.prototype.forEach.call(a,function(t){"true"===t.getAttribute("data:pieClicked")&&(i&&(o=!0),n&&s.printDataLabelsInner(t,e))})};if(l({makeSliceOut:!0,printLabel:!1}),e.total.show&&n.globals.series.length>1)o&&!e.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(e,e.total.label,e.total.formatter(n));else if(l({makeSliceOut:!1,printLabel:!0}),!o)if(n.globals.selectedDataPoints.length&&n.globals.series.length>1)if(n.globals.selectedDataPoints[0].length>0){var c=n.globals.selectedDataPoints[0],h=n.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(h,e)}else r&&n.globals.selectedDataPoints.length&&0===n.globals.selectedDataPoints[0].length&&(r.style.opacity=0);else r&&n.globals.series.length>1&&(r.style.opacity=0)}}]),t}(),Pt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var i=this.w;this.graphics=new w(this.ctx),this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=i.globals.svgHeight<i.globals.svgWidth?i.globals.gridHeight+1.5*i.globals.goldenPadding:i.globals.gridWidth,this.isLog=i.config.yaxis[0].logarithmic,this.coreUtils=new S(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(i.globals.maxY,0):i.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):i.globals.minY,this.polygons=i.config.plotOptions.radar.polygons,this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-i.config.chart.dropShadow.blur,i.config.xaxis.labels.show&&(this.size=this.size-i.globals.xAxisLabelsWidth/1.75),void 0!==i.config.plotOptions.radar.size&&(this.size=i.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return a(t,[{key:"draw",value:function(t){var e=this,i=this.w,n=new j(this.ctx),r=[],o=new H(this.ctx);t.length&&(this.dataPointsLen=t[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var a=i.globals.gridWidth/2,l=i.globals.gridHeight/2,c=a+i.config.plotOptions.radar.offsetX,h=l+i.config.plotOptions.radar.offsetY,d=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(c||0,", ").concat(h||0,")")}),u=[],p=null,f=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),t.forEach(function(t,a){var l=t.length===i.globals.dataPoints,c=e.graphics.group().attr({class:"apexcharts-series","data:longestSeries":l,seriesName:b.escapeString(i.globals.seriesNames[a]),rel:a+1,"data:realIndex":a});e.dataRadiusOfPercent[a]=[],e.dataRadius[a]=[],e.angleArr[a]=[],t.forEach(function(t,i){var s=Math.abs(e.maxValue-e.minValue);t+=Math.abs(e.minValue),e.isLog&&(t=e.coreUtils.getLogVal(t,0)),e.dataRadiusOfPercent[a][i]=t/s,e.dataRadius[a][i]=e.dataRadiusOfPercent[a][i]*e.size,e.angleArr[a][i]=i*e.disAngle}),u=e.getDataPointsPos(e.dataRadius[a],e.angleArr[a]);var h=e.createPaths(u,{x:0,y:0});p=e.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),f=e.graphics.group({class:"apexcharts-datalabels","data:realIndex":a}),i.globals.delayedElements.push({el:p.node,index:a});var d={i:a,realIndex:a,animationDelay:a,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[a],strokeLineCap:i.config.stroke.lineCap},g=null;i.globals.previousPaths.length>0&&(g=e.getPreviousPath(a));for(var m=0;m<h.linePathsTo.length;m++){var x=e.graphics.renderPaths(s(s({},d),{},{pathFrom:null===g?h.linePathsFrom[m]:g,pathTo:h.linePathsTo[m],strokeWidth:Array.isArray(e.strokeWidth)?e.strokeWidth[a]:e.strokeWidth,fill:"none",drawShadow:!1}));c.add(x);var y=n.fillPath({seriesNumber:a}),w=e.graphics.renderPaths(s(s({},d),{},{pathFrom:null===g?h.areaPathsFrom[m]:g,pathTo:h.areaPathsTo[m],strokeWidth:0,fill:y,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var S=new v(e.ctx),k=i.config.chart.dropShadow;S.dropShadow(w,Object.assign({},k,{noUserSpaceOnUse:!0}),a)}c.add(w)}t.forEach(function(t,n){var r=new F(e.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:a,dataPointIndex:n}),l=e.graphics.drawMarker(u[n].x,u[n].y,r);l.attr("rel",n),l.attr("j",n),l.attr("index",a),l.node.setAttribute("default-marker-size",r.pSize);var h=e.graphics.group({class:"apexcharts-series-markers"});h&&h.add(l),p.add(h),c.add(p);var d=i.config.dataLabels;if(d.enabled){var g=d.formatter(i.globals.series[a][n],{seriesIndex:a,dataPointIndex:n,w:i});o.plotDataLabelsText({x:u[n].x,y:u[n].y,text:g,textAnchor:"middle",i:a,j:a,parent:f,offsetCorrection:!1,dataLabelsConfig:s({},d)})}c.add(f)}),r.push(c)}),this.drawPolygons({parent:d}),i.config.xaxis.labels.show){var g=this.drawXAxisTexts();d.add(g)}return r.forEach(function(t){d.add(t)}),d.add(this.yaxisLabels),d}},{key:"drawPolygons",value:function(t){for(var e=this,i=this.w,s=t.parent,n=new Mt(this.ctx),r=i.globals.yAxisScale[0].result.reverse(),o=r.length,a=[],l=this.size/(o-1),c=0;c<o;c++)a[c]=l*c;a.reverse();var h=[],d=[];a.forEach(function(t,i){var s=b.getPolygonPos(t,e.dataPointsLen),n="";
vendor: 5,056 bytes, line 2
2s.forEach(function(t,s){if(0===i){var r=e.graphics.drawLine(t.x,t.y,0,0,Array.isArray(e.polygons.connectorColors)?e.polygons.connectorColors[s]:e.polygons.connectorColors);d.push(r)}0===s&&e.yaxisLabelsTextsPos.push({x:t.x,y:t.y}),n+=t.x+","+t.y+" "}),h.push(n)}),h.forEach(function(t,n){var r=e.polygons.strokeColors,o=e.polygons.strokeWidth,a=e.graphics.drawPolygon(t,Array.isArray(r)?r[n]:r,Array.isArray(o)?o[n]:o,i.globals.radarPolygons.fill.colors[n]);s.add(a)}),d.forEach(function(t){s.add(t)}),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(t,i){var s=n.drawYAxisTexts(t.x,t.y,i,r[i]);e.yaxisLabels.add(s)})}},{key:"drawXAxisTexts",value:function(){var t=this,e=this.w,i=e.config.xaxis.labels,n=this.graphics.group({class:"apexcharts-xaxis"}),r=b.getPolygonPos(this.size,this.dataPointsLen);return e.globals.labels.forEach(function(o,a){var l=e.config.xaxis.labels.formatter,c=new H(t.ctx);if(r[a]){var h=t.getTextPos(r[a],t.size),d=l(o,{seriesIndex:-1,dataPointIndex:a,w:e});c.plotDataLabelsText({x:h.newX,y:h.newY,text:d,textAnchor:h.textAnchor,i:a,j:a,parent:n,color:Array.isArray(i.style.colors)&&i.style.colors[a]?i.style.colors[a]:"#a8a8a8",dataLabelsConfig:s({textAnchor:h.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1})}}),n}},{key:"createPaths",value:function(t,e){var i=this,s=[],n=[],r=[],o=[];if(t.length){n=[this.graphics.move(e.x,e.y)],o=[this.graphics.move(e.x,e.y)];var a=this.graphics.move(t[0].x,t[0].y),l=this.graphics.move(t[0].x,t[0].y);t.forEach(function(e,s){a+=i.graphics.line(e.x,e.y),l+=i.graphics.line(e.x,e.y),s===t.length-1&&(a+="Z",l+="Z")}),s.push(a),r.push(l)}return{linePathsFrom:n,linePathsTo:s,areaPathsFrom:o,areaPathsTo:r}}},{key:"getTextPos",value:function(t,e){var i="middle",s=t.x,n=t.y;return Math.abs(t.x)>=10?t.x>0?(i="start",s+=10):t.x<0&&(i="end",s-=10):i="middle",Math.abs(t.y)>=e-10&&(t.y<0?n-=10:t.y>0&&(n+=10)),{textAnchor:i,newX:s,newY:n}}},{key:"getPreviousPath",value:function(t){for(var e=this.w,i=null,s=0;s<e.globals.previousPaths.length;s++){var n=e.globals.previousPaths[s];n.paths.length>0&&parseInt(n.realIndex,10)===parseInt(t,10)&&void 0!==e.globals.previousPaths[s].paths[0]&&(i=e.globals.previousPaths[s].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;t=t||[],e=e||[];for(var s=[],n=0;n<i;n++){var r={};r.x=t[n]*Math.sin(e[n]),r.y=-t[n]*Math.cos(e[n]),s.push(r)}return s}}]),t}(),Ot=function(){c(e,Tt);var t=p(e);function e(i){var s;r(this,e),(s=t.call(this,i)).ctx=i,s.w=i.w,s.animBeginArr=[0],s.animDur=0;var n=s.w;return s.startAngle=n.config.plotOptions.radialBar.startAngle,s.endAngle=n.config.plotOptions.radialBar.endAngle,s.totalAngle=Math.abs(n.config.plotOptions.radialBar.endAngle-n.config.plotOptions.radialBar.startAngle),s.trackStartAngle=n.config.plotOptions.radialBar.track.startAngle,s.trackEndAngle=n.config.plotOptions.radialBar.track.endAngle,s.barLabels=s.w.config.plotOptions.radialBar.barLabels,s.donutDataLabels=s.w.config.plotOptions.radialBar.dataLabels,s.radialDataLabels=s.donutDataLabels,s.trackStartAngle||(s.trackStartAngle=s.startAngle),s.trackEndAngle||(s.trackEndAngle=s.endAngle),360===s.endAngle&&(s.endAngle=359.99),s.margin=parseInt(n.config.plotOptions.radialBar.track.margin,10),s.onBarLabelClick=s.onBarLabelClick.bind(u(s)),s}return a(e,[{key:"draw",value:function(t){var e=this.w,i=new w(this.ctx),s=i.group({class:"apexcharts-radialbar"});if(e.globals.noData)return s;var n=i.group(),r=this.defaultSize/2,o=e.globals.gridWidth/2,a=this.defaultSize/2.05;e.config.chart.sparkline.enabled||(a=a-e.config.stroke.width-e.config.chart.dropShadow.blur);var l=e.globals.fill.colors;if(e.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:a,centerX:o,centerY:r,colorArr:l,series:t});n.add(c)}var h=this.drawArcs({size:a,centerX:o,centerY:r,colorArr:l,series:t}),d=360;e.config.plotOptions.radialBar.startAngle<0&&(d=this.totalAngle);var u=(360-d)/360;if(e.globals.radialSize=a-a*u,this.radialDataLabels.value.show){var p=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);e.globals.radialSize+=p*u}return n.add(h.g),"front"===e.config.plotOptions.radialBar.hollow.position&&(h.g.add(h.elHollow),h.dataLabels&&h.g.add(h.dataLabels)),s.add(n),s}},{key:"drawTracks",value:function(t){var e=this.w,i=new w(this.ctx),s=i.group({class:"apexcharts-tracks"}),n=new v(this.ctx),r=new j(this.ctx),o=this.getStrokeWidth(t);t.size=t.size-o/2;for(var a=0;a<t.series.length;a++){var l=i.group({class:"apexcharts-radialbar-track apexcharts-track"});s.add(l),l.attr({rel:a+1}),t.size=t.size-o-this.margin;var c=e.config.plotOptions.radialBar.track,h=r.fillPath({seriesNumber:0,size:t.size,fillColors:Array.isArray(c.background)?c.background[a]:c.background,solid:!0}),d=this.trackStartAngle,u=this.trackEndAngle;Math.abs(u)+Math.abs(d)>=360&&(u=360-Math.abs(this.startAngle)-.1);var p=i.drawPath({d:"",stroke:h,strokeWidth:o*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.op
vendor: 4,133 bytes, line 2
2acity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var f=c.dropShadow;n.dropShadow(p,f)}l.add(p),p.attr("id","apexcharts-radialbarTrack-"+a),this.animatePaths(p,{centerX:t.centerX,centerY:t.centerY,endAngle:u,startAngle:d,size:t.size,i:a,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:e.globals.easing})}return s}},{key:"drawArcs",value:function(t){var e=this.w,i=new w(this.ctx),s=new j(this.ctx),n=new v(this.ctx),r=i.group(),o=this.getStrokeWidth(t);t.size=t.size-o/2;var a=e.config.plotOptions.radialBar.hollow.background,l=t.size-o*t.series.length-this.margin*t.series.length-o*parseInt(e.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,c=l-e.config.plotOptions.radialBar.hollow.margin;void 0!==e.config.plotOptions.radialBar.hollow.image&&(a=this.drawHollowImage(t,r,l,a));var h=this.drawHollow({size:c,centerX:t.centerX,centerY:t.centerY,fill:a||"transparent"});if(e.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=e.config.plotOptions.radialBar.hollow.dropShadow;n.dropShadow(h,d)}var u=1;!this.radialDataLabels.total.show&&e.globals.series.length>1&&(u=0);var p=null;this.radialDataLabels.show&&(p=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:t.centerX,centerY:t.centerY,opacity:u})),"back"===e.config.plotOptions.radialBar.hollow.position&&(r.add(h),p&&r.add(p));var f=!1;e.config.plotOptions.radialBar.inverseOrder&&(f=!0);for(var g=f?t.series.length-1:0;f?g>=0:g<t.series.length;f?g--:g++){var m=i.group({class:"apexcharts-series apexcharts-radial-series",seriesName:b.escapeString(e.globals.seriesNames[g])});r.add(m),m.attr({rel:g+1,"data:realIndex":g}),this.ctx.series.addCollapsedClassToSeries(m,g),t.size=t.size-o-this.margin;var x=s.fillPath({seriesNumber:g,size:t.size,value:t.series[g]}),y=this.startAngle,S=void 0,k=b.negToZero(t.series[g]>100?100:t.series[g])/100,C=Math.round(this.totalAngle*k)+this.startAngle,A=void 0;e.globals.dataChanged&&(S=this.startAngle,A=Math.round(this.totalAngle*b.negToZero(e.globals.previousPaths[g])/100)+S),Math.abs(C)+Math.abs(y)>=360&&(C-=.01),Math.abs(A)+Math.abs(S)>=360&&(A-=.01);var E=C-y,M=Array.isArray(e.config.stroke.dashArray)?e.config.stroke.dashArray[g]:e.config.stroke.dashArray,T=i.drawPath({d:"",stroke:x,strokeWidth:o,fill:"none",fillOpacity:e.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+g,strokeDashArray:M});if(w.setAttrs(T.node,{"data:angle":E,"data:value":t.series[g]}),e.config.chart.dropShadow.enabled){var P=e.config.chart.dropShadow;n.dropShadow(T,P,g)}if(n.setSelectionFilter(T,0,g),this.addListeners(T,this.radialDataLabels),m.add(T),T.attr({index:0,j:g}),this.barLabels.enabled){var O=b.polarToCartesian(t.centerX,t.centerY,t.size,y),L=this.barLabels.formatter(e.globals.seriesNames[g],{seriesIndex:g,w:e}),_=["apexcharts-radialbar-label"];this.barLabels.onClick||_.push("apexcharts-no-click");var I=this.barLabels.useSeriesColors?e.globals.colors[g]:e.config.chart.foreColor;I||(I=e.config.chart.foreColor);var D=O.x-this.barLabels.margin,R=O.y,N=i.drawText({x:D,y:R,text:L,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:I,cssClass:_.join(" ")});N.on("click",this.onBarLabelClick),N.attr({rel:g+1}),0!==y&&N.attr({"transform-origin":"".concat(D," ").concat(R),transform:"rotate(".concat(y," 0 0)")}),m.add(N)}var B=0;!this.initialAnim||e.globals.resized||e.globals.dataChanged||(B=e.config.chart.animations.speed),e.globals.dataChanged&&(B=e.config.chart.animations.dynamicAnimation.speed),this.animDur=B/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(T,{centerX:t.centerX,centerY:t.centerY,endAngle:C,startAngle:y,prevEndAngle:A,prevStartAngle:S,size:t.size,i:g,totalItems:2,animBeginArr:this.animBeginArr,dur:B,shouldSetPrevPaths:!0,easing:e.globals.easing})}return{g:r,elHollow:h,dataLabels:p}}},{key:"drawHollow",value:function(t){var e=new w(this.ctx).drawCircle(2*t.size);return e.attr({class:"apexcharts-radialbar-hollow",cx:t.centerX,cy:t.centerY,r:t.size,fill:t.fill}),e}}
vendor: 5,430 bytes, line 2
2,{key:"drawHollowImage",value:function(t,e,i,s){var n=this.w,r=new j(this.ctx),o=b.randomId(),a=n.config.plotOptions.radialBar.hollow.image;if(n.config.plotOptions.radialBar.hollow.imageClipped)r.clippedImgArea({width:i,height:i,image:a,patternID:"pattern".concat(n.globals.cuid).concat(o)}),s="url(#pattern".concat(n.globals.cuid).concat(o,")");else{var l=n.config.plotOptions.radialBar.hollow.imageWidth,c=n.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var h=n.globals.dom.Paper.image(a).loaded(function(e){this.move(t.centerX-e.width/2+n.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-e.height/2+n.config.plotOptions.radialBar.hollow.imageOffsetY)});e.add(h)}else{var d=n.globals.dom.Paper.image(a).loaded(function(e){this.move(t.centerX-l/2+n.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-c/2+n.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)});e.add(d)}}return s}},{key:"getStrokeWidth",value:function(t){var e=this.w;return t.size*(100-parseInt(e.config.plotOptions.radialBar.hollow.size,10))/100/(t.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(t){var e=parseInt(t.target.getAttribute("rel"),10)-1,i=this.barLabels.onClick,s=this.w;i&&i(s.globals.seriesNames[e],{w:s,seriesIndex:e})}}]),e}(),Lt=function(){c(e,St);var t=p(e);function e(){return r(this,e),t.apply(this,arguments)}return a(e,[{key:"draw",value:function(t,e){var i=this.w,n=new w(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=t,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(t);for(var r=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),o=0;o<t.length;o++){var a,c,h,d,u=void 0,p=void 0,f=i.globals.comboCharts?e[o]:o,g=n.group({class:"apexcharts-series",seriesName:b.escapeString(i.globals.seriesNames[f]),rel:o+1,"data:realIndex":f});this.ctx.series.addCollapsedClassToSeries(g,f),t[o].length>0&&(this.visibleI=this.visibleI+1);var m=0,x=0;this.yRatio.length>1&&(this.yaxisIndex=f);var y=this.barHelpers.initialPositions();p=y.y,d=y.zeroW,u=y.x,x=y.barWidth,m=y.barHeight,a=y.xDivision,c=y.yDivision,h=y.zeroH;for(var v=n.group({class:"apexcharts-datalabels","data:realIndex":f}),S=n.group({class:"apexcharts-rangebar-goals-markers"}),k=0;k<i.globals.dataPoints;k++){var C,A=this.barHelpers.getStrokeWidth(o,k,f),E=this.seriesRangeStart[o][k],M=this.seriesRangeEnd[o][k],T=null,P=null,O=null,L={x:u,y:p,strokeWidth:A,elSeries:g},_=this.seriesLen;if(i.config.plotOptions.bar.rangeBarGroupRows&&(_=1),void 0===i.config.series[o].data[k])break;if(this.isHorizontal){O=p+m*this.visibleI;var I=(c-m*_)/2;if(i.config.series[o].data[k].x){var D=this.detectOverlappingBars({i:o,j:k,barYPosition:O,srty:I,barHeight:m,yDivision:c,initPositions:y});m=D.barHeight,O=D.barYPosition}x=(T=this.drawRangeBarPaths(s({indexes:{i:o,j:k,realIndex:f},barHeight:m,barYPosition:O,zeroW:d,yDivision:c,y1:E,y2:M},L))).barWidth}else{i.globals.isXNumeric&&(u=(i.globals.seriesX[o][k]-i.globals.minX)/this.xRatio-x/2),P=u+x*this.visibleI;var R=(a-x*_)/2;if(i.config.series[o].data[k].x){var N=this.detectOverlappingBars({i:o,j:k,barXPosition:P,srtx:R,barWidth:x,xDivision:a,initPositions:y});x=N.barWidth,P=N.barXPosition}m=(T=this.drawRangeColumnPaths(s({indexes:{i:o,j:k,realIndex:f},barWidth:x,barXPosition:P,zeroH:h,xDivision:a},L))).barHeight}var B=this.barHelpers.drawGoalLine({barXPosition:T.barXPosition,barYPosition:O,goalX:T.goalX,goalY:T.goalY,barHeight:m,barWidth:x});B&&S.add(B),p=T.y,u=T.x;var j=this.barHelpers.getPathFillColor(t,o,k,f),F=i.globals.stroke.colors[f];this.renderSeries((l(C={realIndex:f,pathFill:j,lineFill:F,j:k,i:o,x:u,y:p,y1:E,y2:M,pathFrom:T.pathFrom,pathTo:T.pathTo,strokeWidth:A,elSeries:g,series:t,barHeight:m,barWidth:x,barXPosition:P,barYPosition:O},"barWidth",x),l(C,"elDataLabelsWrap",v),l(C,"elGoalsMarkers",S),l(C,"visibleSeries",this.visibleI),l(C,"type","rangebar"),C))}r.add(g)}return r}},{key:"detectOverlappingBars",value:function(t){var e=t.i,i=t.j,s=t.barYPosition,n=t.barXPosition,r=t.srty,o=t.srtx,a=t.barHeight,l=t.barWidth,c=t.yDivision,h=t.xDivision,d=t.initPositions,u=this.w,p=[],f=u.config.series[e].data[i].rangeName,g=u.config.series[e].data[i].x,m=Array.isArray(g)?g.join(" "):g,x=u.globals.labels.map(function(t){return Array.isArray(t)?t.join(" "):t}).indexOf(m),b=u.globals.seriesRange[e].findIndex(function(t){return t.x===m&&t.overlaps.length>0});return this.isHorizontal?(s=u.config.plotOptions.bar.rangeBarGroupRows?r+c*x:r+a*this.visibleI+c*x,b>-1&&!u.config.plotOptions.bar.rangeBarOverlap&&(p=u.globals.seriesRange[e][b].overlaps).indexOf(f)>-1&&(s=(a=d.barHeight/p.length)*this.visibleI+c*(100-parseInt(this.barOptions.barHeight,10))/100/2+a*(this.visibleI+p.indexOf(f))+c*x)):(x>-1&&(n=u.config.plotOptions.bar.rangeBarGroupRows?o+h*x:o+l*this.visibleI+h*x),b>-1&&!u.config.plotOptions.bar.rangeBarOverlap&&(p=u.globals.seriesRange[e][b].overlaps).indexOf(f)>-1&&(n=(l=d.barWidth/p.length)*this.visibleI+h*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+p.indexOf(f))+h*x)),{barYPosition:s,barXPosition:n,barHeight:a,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(t){var e=t.indexes,i=t.x,s=t.xDivision,n=t.barWidth,r=t.barXPosition,o=t.zeroH,a=this.w,l=e.i,c=e.j,h=this.yRatio[this.yaxisIndex],d=e.realIndex,u=this.getRangeValue(d,c),p=Math.min(u.start,u.end
2),f=Math.max(u.start,u.end);void 0===this.series[l][c]||null===this.series[l][c]?p=o:(p=o-p/h,f=o-f/h);var g=Math.abs(f-p),m=this.barHelpers.getColumnPaths({barXPosition:r,barWidth:n,y1:p,y2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:e.realIndex,i:d,j:c,w:a});if(a.globals.isXNumeric){var x=this.getBarXForNumericXAxis({x:i,j:c,realIndex:d,barWidth:n});i=x.x,r=x.barXPosition}else i+=s;return{pathTo:m.pathTo,pathFrom:m.pathFrom,barHeight:g,x:i,y:f,goalY:this.barHelpers.getGoalValues("y",null,o,l,c),barXPosition:r}}},{key:"drawRangeBarPaths",value:function(t){var e=t.indexes,i=t.y,s=t.y1,n=t.y2,r=t.yDivision,o=t.barHeight,a=t.barYPosition,l=t.zeroW,c=this.w,h=l+s/this.invertedYRatio,d=l+n/this.invertedYRatio,u=Math.abs(d-h),p=this.barHelpers.getBarpaths({barYPosition:a,barHeight:o,x1:h,x2:d,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:e.realIndex,realIndex:e.realIndex,j:e.j,w:c});return c.globals.isXNumeric||(i+=r),{pathTo:p.pathTo,pathFrom:p.pathFrom,barWidth:u,x:d,goalX:this.barHelpers.getGoalValues("x",l,null,e.realIndex,e.j),y:i}}},{key:"getRangeValue",value:function(t,e){var i=this.w;return{start:i.globals.seriesRangeStart[t][e],end:i.globals.seriesRangeEnd[t][e]}}}]),e}(),_t=function(){function t(e){r(this,t),this.w=e.w,this.lineCtx=e}return a(t,[{key:"sameValueSeriesFix",value:function(t,e){var i=this.w;if(("gradient"===i.config.fill.type||"gradient"===i.config.fill.type[t])&&new S(this.lineCtx.ctx,i).seriesHaveSameValues(t)){var s=e[t].slice();s[s.length-1]=s[s.length-1]+1e-6,e[t]=s}return e}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.realIndex,s=t.x,n=t.y,r=t.i,o=t.j,a=t.prevY,l=this.w,c=[],h=[];if(0===o){var d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(d=(l.globals.seriesX[i][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),c.push(d),h.push(b.isNumber(e[r][0])?a+l.config.markers.offsetY:null),c.push(s+l.config.markers.offsetX),h.push(b.isNumber(e[r][o+1])?n+l.config.markers.offsetY:null)}else c.push(s+l.config.markers.offsetX),h.push(b.isNumber(e[r][o+1])?n+l.config.markers.offsetY:null);return{x:c,y:h}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,s=t.realIndex,n=this.w,r=0;r<n.globals.previousPaths.length;r++){var o=n.globals.previousPaths[r];("line"===o.type||"area"===o.type)&&o.paths.length>0&&parseInt(o.realIndex,10)===parseInt(s,10)&&("line"===o.type?(this.lineCtx.appendPathFrom=!1,e=n.globals.previousPaths[r].paths[0].d):"area"===o.type&&(this.lineCtx.appendPathFrom=!1,i=n.globals.previousPaths[r].paths[0].d,n.config.stroke.show&&n.globals.previousPaths[r].paths[1]&&(e=n.globals.previousPaths[r].paths[1].d)))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e,i,s=t.i,n=t.series,r=t.prevY,o=t.lineYPosition,a=this.w,l=a.config.chart.stacked&&!a.globals.comboCharts||a.config.chart.stacked&&a.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(e=this.w.config.series[s])||void 0===e?void 0:e.type));if(void 0!==(null===(i=n[s])||void 0===i?void 0:i[0]))r=(o=l&&s>0?this.lineCtx.prevSeriesY[s-1][0]:this.lineCtx.zeroY)-n[s][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?n[s][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(l&&s>0&&void 0===n[s][0])for(var c=s-1;c>=0;c--)if(null!==n[c][0]&&void 0!==n[c][0]){r=o=this.lineCtx.prevSeriesY[c][0];break}return{prevY:r,lineYPosition:o}}}]),t}(),It=function(t){for(var e="",i=0;i<t.length;i++){var s=t[i],n=s.length;n>4?(e+="C".concat(s[0],", ").concat(s[1]),e+=", ".concat(s[2],", ").concat(s[3]),e+=", ".concat(s[4],", ").concat(s[5])):n>2&&(e+="S".concat(s[0],", ").concat(s[1]),e+=", ".concat(s[2],", ").concat(s[3]))}return e},Dt=function(t){var e=function(t){for(var e,i,s,n,r=function(t){for(var e=[],i=t[0],s=t[1],n=e[0]=Rt(i,s),r=1,o=t.length-1;r<o;r++)i=s,s=t[r+1],e[r]=.5*(n+(n=Rt(i,s)));return e[r]=n,e}(t),o=t.length-1,a=[],l=0;l<o;l++)s=Rt(t[l],t[l+1]),Math.abs(s)<1e-6?r[l]=r[l+1]=0:(n=(e=r[l]/s)*e+(i=r[l+1]/s)*i)>9&&(n=3*s/Math.sqrt(n),r[l]=n*e,r[l+1]=n*i);for(var c=0;c<=o;c++)n=(t[Math.min(o,c+1)][0]-t[Math.max(0,c-1)][0])/(6*(1+r[c]*r[c])),a.push([n||0,r[c]*n||0]);return a}(t),i=t[1],s=t[0],n=[],r=e[1],o=e[0];n.push(s,[s[0]+o[0],s[1]+o[1],i[0]-r[0],i[1]-r[1],i[0],i[1]]);for(var a=2,l=e.length;a<l;a++){var c=t[a],h=e[a];
vendor: 6,484 bytes, line 2
2n.push([c[0]-h[0],c[1]-h[1],c[0],c[1]])}return n};function Rt(t,e){return(e[1]-t[1])/(e[0]-t[0])}var Nt=function(){function t(e,i,s){r(this,t),this.ctx=e,this.w=e.w,this.xyRatios=i,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||s,this.scatter=new z(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new _t(this),this.markers=new F(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return a(t,[{key:"draw",value:function(t,e,i,n){var r,o=this.w,a=new w(this.ctx),l=o.globals.comboCharts?e:o.config.chart.type,c=a.group({class:"apexcharts-".concat(l,"-series apexcharts-plot-series")}),h=new S(this.ctx,o);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,t=h.getLogSeries(t),this.yRatio=h.getLogYRatios(this.yRatio);for(var d=[],u=0;u<t.length;u++){t=this.lineHelpers.sameValueSeriesFix(u,t);var p=o.globals.comboCharts?i[u]:u;this._initSerieVariables(t,u,p);var f=[],g=[],m=[],x=o.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,p),o.globals.isXNumeric&&o.globals.seriesX.length>0&&(x=(o.globals.seriesX[p][0]-o.globals.minX)/this.xRatio),m.push(x);var b,y=x,v=void 0,k=y,C=this.zeroY,A=this.zeroY;C=this.lineHelpers.determineFirstPrevY({i:u,series:t,prevY:C,lineYPosition:0}).prevY,"monotonCubic"===o.config.stroke.curve&&null===t[u][0]?f.push(null):f.push(C),b=C,"rangeArea"===l&&(v=A=this.lineHelpers.determineFirstPrevY({i:u,series:n,prevY:A,lineYPosition:0}).prevY,g.push(A));var E={type:l,series:t,realIndex:p,i:u,x,y:1,pX:y,pY:b,pathsFrom:this._calculatePathsFrom({type:l,series:t,i:u,realIndex:p,prevX:k,prevY:C,prevY2:A}),linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:m,yArrj:f,y2Arrj:g,seriesRangeEnd:n},M=this._iterateOverDataPoints(s(s({},E),{},{iterations:"rangeArea"===l?t[u].length-1:void 0,isRangeStart:!0}));if("rangeArea"===l){var T=this._calculatePathsFrom({series:n,i:u,realIndex:p,prevX:k,prevY:A}),P=this._iterateOverDataPoints(s(s({},E),{},{series:n,pY:v,pathsFrom:T,iterations:n[u].length-1,isRangeStart:!1}));M.linePaths[0]=P.linePath+M.linePath,M.pathFromLine=P.pathFromLine+M.pathFromLine}this._handlePaths({type:l,realIndex:p,i:u,paths:M}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),d.push(this.elSeries)}if(void 0!==(null===(r=o.config.series[0])||void 0===r?void 0:r.zIndex)&&d.sort(function(t,e){return Number(t.node.getAttribute("zIndex"))-Number(e.node.getAttribute("zIndex"))}),o.config.chart.stacked)for(var O=d.length;O>0;O--)c.add(d[O-1]);else for(var L=0;L<d.length;L++)c.add(d[L]);return c}},{key:"_initSerieVariables",value:function(t,e,i){var s=this.w,n=new w(this.ctx);this.xDivision=s.globals.gridWidth/(s.globals.dataPoints-("on"===s.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(s.config.stroke.width)?s.config.stroke.width[i]:s.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=i),this.isReversed=s.config.yaxis[this.yaxisIndex]&&s.config.yaxis[this.yaxisIndex].reversed,this.zeroY=s.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?s.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>s.globals.gridHeight||"end"===s.config.plotOptions.area.fillTo)&&(this.areaBottomY=s.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=n.group({class:"apexcharts-series",zIndex:void 0!==s.config.series[i].zIndex?s.config.series[i].zIndex:i,seriesName:b.escapeString(s.globals.seriesNames[i])}),this.elPointsMain=n.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=n.group({class:"apexcharts-datalabels","data:realIndex":i});var r=t[e].length===s.globals.dataPoints;this.elSeries.attr({"data:longestSeries":r,rel:e+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(t){var e,i,s,n,r=t.type,o=t.series,a=t.i,l=t.realIndex,c=t.prevX,h=t.prevY,d=t.prevY2,u=this.w,p=new w(this.ctx);if(null===o[a][0]){for(var f=0;f<o[a].length;f++)if(null!==o[a][f]){c=this.xDivision*f,h=this.zeroY-o[a][f]/this.yRatio[this.yaxisIndex],e=p.move(c,h),i=p.move(c,this.areaBottomY);break}}else e=p.move(c,h),"rangeArea"===r&&(e=p.move(c,d)+p.line(c,h)),i=p.move(c,this.areaBottomY)+p.line(c,h);if(s=p.move(-1,this.zeroY)+p.line(-1,this.zeroY),n=p.move(-1,this.zeroY)+p.line(-1,this.zeroY),u.globals.previousPaths.length>0){var g=this.lineHelpers.checkPreviousPaths({pathFromLine:s,pathFromArea:n,realIndex:l});s=g.pathFromLine,n=g.pathFromArea}return{prevX:c,prevY:h,linePath:e,areaPath:i,pathFromLine:s,pathFromArea:n}}},{key:"_handlePaths",value:function(t){var e=t.type,i=t.realIndex,n=t.i,r=t.paths,o=this.w,a=new w(this.ctx),l=new j(this.ctx);this.prevSeriesY.push(r.yArrj),o.globals.seriesXvalues[i]=r.xArrj,o.globals.seriesYvalues[i]=r.yArrj;var c=o.config.forecastDataPoints;if(c.count>0&&"rangeArea"!==e){var h=o.globals.seriesXvalues[i][o.globals.seriesXvalues[i].length-c.count-1],d=a.drawRect(h,0,o.globals.gridWidth,o.globals.gridHeight,0);o.globals.dom.elForecastMask.appendChild(d.node);var u=a.drawRect(0,0,h,o.globals.gridHeight,0);o.globals.dom.elNonForecastMask.appendChild(u.node)}this.pointsChart||o.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var p={i:n,realIndex:i,animationDelay:n,initialSpeed:o.config.chart.animations.speed,dataChangeSpeed:o.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(e)};if("area"===e)for(var f=l.fillPath({seriesNumber:i}),g=0;g<r.areaPaths.length;g++){var m=a.renderPaths(s(s({},p),{},{pathFrom:r.pathFromArea,pathTo:r.areaPaths[g],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:f}));this.elSeries.add(m)}if(o.config.stroke.show&&!this.pointsChart){var x=null;if("line"===e)x=l.fillPath({seriesNumber:i,i:n});else if("solid"===o.config.stroke.fill.type)x=o.globals.stroke.colors[i];else{var b=o.config.fill;o.config.fill=o.config.stroke.fill,x=l.fillPath({seriesNumber:i,i:n}),o.config.fill=b}for(var y=0;y<r.linePaths.length;y++){var v=x;"rangeArea"===e&&(v=l.fillPath({seriesNumber:i}));var S=s(s({},p),{},{pathFrom:r.pathFromLine,pathTo:r.linePaths[y],stroke:x,strokeWidth:this.strokeWidth,strokeLineCap:o.config.stroke.lineCap,fill:"rangeArea"===e?v:"none"}),k=a.renderPaths(S);if(this.elSeries.add(k),k.attr("fill-rule","evenodd"),c.count>
20&&"rangeArea"!==e){var C=a.renderPaths(S);C.node.setAttribute("stroke-dasharray",c.dashArray),c.strokeWidth&&C.node.setAttribute("stroke-width",c.strokeWidth),this.elSeries.add(C),C.attr("clip-path","url(#forecastMask".concat(o.globals.cuid,")")),k.attr("clip-path","url(#nonForecastMask".concat(o.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(t){var e,i=this,s=t.type,n=t.series,r=t.iterations,o=t.realIndex,a=t.i,l=t.x,c=t.y,h=t.pX,d=t.pY,u=t.pathsFrom,p=t.linePaths,f=t.areaPaths,g=t.seriesIndex,m=t.lineYPosition,x=t.xArrj,y=t.yArrj,v=t.y2Arrj,S=t.isRangeStart,k=t.seriesRangeEnd,C=this.w,A=new w(this.ctx),E=this.yRatio,M=u.prevY,T=u.linePath,P=u.areaPath,O=u.pathFromLine,L=u.pathFromArea,_=b.isNumber(C.globals.minYArr[o])?C.globals.minYArr[o]:C.globals.minY;r||(r=C.globals.dataPoints>1?C.globals.dataPoints-1:C.globals.dataPoints);for(var I=function(t,e){return e-t/E[i.yaxisIndex]+2*(i.isReversed?t/E[i.yaxisIndex]:0)},D=c,R=C.config.chart.stacked&&!C.globals.comboCharts||C.config.chart.stacked&&C.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(e=this.w.config.series[o])||void 0===e?void 0:e.type)),N=0;N<r;N++){var B=void 0===n[a][N+1]||null===n[a][N+1];if(C.globals.isXNumeric){var j=C.globals.seriesX[o][N+1];void 0===C.globals.seriesX[o][N+1]&&(j=C.globals.seriesX[o][r-1]),l=(j-C.globals.minX)/this.xRatio}else l+=this.xDivision;m=R&&a>0&&C.globals.collapsedSeries.length<C.config.series.length-1?this.prevSeriesY[function(t){for(var e=t,i=0;i<C.globals.series.length;i++)if(C.globals.collapsedSeriesIndices.indexOf(t)>-1){e--;break}return e>=0?e:0}(a-1)][N+1]:this.zeroY,B?c=I(_,m):(c=I(n[a][N+1],m),"rangeArea"===s&&(D=I(k[a][N+1],m))),x.push(l),B&&"smooth"===C.config.stroke.curve?y.push(null):y.push(c),v.push(D);var F=this.lineHelpers.calculatePoints({series:n,x:l,y:c,realIndex:o,i:a,j:N,prevY:M}),z=this._createPaths({type:s,series:n,i:a,realIndex:o,j:N,x:l,y:c,y2:D,xArrj:x,yArrj:y,y2Arrj:v,pX:h,pY:d,linePath:T,areaPath:P,linePaths:p,areaPaths:f,seriesIndex:g,isRangeStart:S});f=z.areaPaths,p=z.linePaths,h=z.pX,d=z.pY,P=z.areaPath,T=z.linePath,!this.appendPathFrom||"monotoneCubic"===C.config.stroke.curve&&"rangeArea"===s||(O+=A.line(l,this.zeroY),L+=A.line(l,this.zeroY)),this.handleNullDataPoints(n,F,a,N,o),this._handleMarkersAndLabels({type:s,pointsPos:F,i:a,j:N,realIndex:o,isRangeStart:S})}return{yArrj:y,xArrj:x,pathFromArea:L,areaPaths:f,pathFromLine:O,linePaths:p,linePath:T,areaPath:P}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.type,i=t.pointsPos,s=t.isRangeStart,n=t.i,r=t.j,o=t.realIndex,a=this.w,l=new H(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,r,{realIndex:o,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{a.globals.series[n].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var c=this.markers.plotChartMarkers(i,o,r+1);null!==c&&this.elPointsMain.add(c)}var h=l.drawDataLabel({type:e,isRangeStart:s,pos:i,i:o,j:r+1});null!==h&&this.elDataLabelsWrap.add(h)}},{key:"_createPaths",value:function(t){var e=t.type,i=t.series,s=t.i,n=t.realIndex,r=t.j,o=t.x,a=t.y,l=t.xArrj,c=t.yArrj,h=t.y2,d=t.y2Arrj,u=t.pX,p=t.pY,f=t.linePath,g=t.areaPath,m=t.linePaths,x=t.areaPaths,b=t.seriesIndex,y=t.isRangeStart,v=this.w,S=new w(this.ctx),k=v.config.stroke.curve,C=this.areaBottomY;if(Array.isArray(v.config.stroke.curve)&&(k=Array.isArray(b)?v.config.stroke.curve[b[s]]:v.config.stroke.curve[s]),"rangeArea"===e&&(v.globals.hasNullValues||v.config.forecastDataPoints.count>0)&&"monotoneCubic"===k&&(k="straight"),"monotoneCubic"===k){var A="rangeArea"===e?l.length===v.globals.dataPoints:r===i[s].length-2,E=l.map(function(t,e){return[l[e],c[e]]}).filter(function(t){return null!==t[1]});if(A&&E.length>1){var M=Dt(E);if(f+=It(M),null===i[s][0]?g=f:g+=It(M),"rangeArea"===e&&y){f+=S.line(l[l.length-1],d[d.length-1]);var T=l.slice().reverse(),P=d.slice().reverse(),O=T.map(function(t,e){return[T[e],P[e]]}),L=Dt(O);g=f+=It(L)}else g+=S.line(E[E.length-1][0],C)+S.line(E[0][0],C)+S.move(E[0][0],E[0][1])+"z";m.push(f),x.push(g)}}else if("smooth"===k){var _=.35*(o-u);v.globals.hasNullValues?(null!==i[s][r]&&(null!==i[s][r+1]?(f=S.move(u,p)+S.curve(u+_,p,o-_,a,o+1,a),g=S.move(u+1,p)+S.curve(u+_,p,o-_,a,o+1,a)+S.line(o,C)+S.line(u,C)+"z"):(f=S.move(u,p),g=S.move(u,p)+"z")),m.push(f),x.push(g)):(f+=S.curve(u+_,p,o-_,a,o,a),g+=S.curve(u+_,p,o-_,a,o,a)),u=o,p=a,r===i[s].length-2&&(g=g+S.curve(u,p,o,a,o,C)+S.move(o,a)+"z","rangeArea"===e&&y?f=f+S.curve(u,p,o,a,o,h)+S.move(o,h)+"z":v.globals.hasNullValues||(m.push(f),x.push(g)))}else{if(null===i[s][r+1]){f+=S.move(o,a);var I=v.globals.isXNumeric?(v.globals.seriesX[n][r]-v.globals.minX)/this.xRatio:o-this.xDivision;g=g+S.line(I,C)+S.move(o,a)+"z"}null===i[s][r]&&(f+=S.move(o,a),g+=S.move(o,C)),"stepline"===k?(f=f+S.line(o,null,"H")+S.line(null,a,"V"),g=g+S.line(o,null,"H")+S.line(null,a,"V")):"straight"===k&&(f+=S.line(o,a),g+=S.line(o,a)),r===i[s].length-2&&(g=g+S.line(o,C)+S.move(o,a)+"z","rangeArea"===e&&y?f=f+S.line(o,h)+S.move(o,h)+"z":(m.push(f),x.push(g)))}return{linePaths:m,areaPaths:x,pX:u,pY:p,linePath:f,areaPath:g}}}
vendor: 4,362 bytes, line 2
2,{key:"handleNullDataPoints",value:function(t,e,i,s,n){var r=this.w;if(null===t[i][s]&&r.config.markers.showNullDataPoints||1===t[i].length){var o=this.markers.plotChartMarkers(e,n,s+1,this.strokeWidth-r.config.markers.strokeWidth/2,!0);null!==o&&this.elPointsMain.add(o)}}}]),t}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function t(e,i,s,n){this.xoffset=e,this.yoffset=i,this.height=n,this.width=s,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(t){var e,i=[],s=this.xoffset,n=this.yoffset,o=r(t)/this.height,a=r(t)/this.width;if(this.width>=this.height)for(e=0;e<t.length;e++)i.push([s,n,s+o,n+t[e]/o]),n+=t[e]/o;else for(e=0;e<t.length;e++)i.push([s,n,s+t[e]/a,n+a]),s+=t[e]/a;return i},this.cutArea=function(e){var i;if(this.width>=this.height){var s=e/this.height,n=this.width-s;i=new t(this.xoffset+s,this.yoffset,n,this.height)}else{var r=e/this.width,o=this.height-r;i=new t(this.xoffset,this.yoffset+r,this.width,o)}return i}}function e(e,s,n,o,a){return o=void 0===o?0:o,a=void 0===a?0:a,function(t){var e,i,s=[];for(e=0;e<t.length;e++)for(i=0;i<t[e].length;i++)s.push(t[e][i]);return s}(i(function(t,e){var i,s=[],n=e/r(t);for(i=0;i<t.length;i++)s[i]=t[i]*n;return s}(e,s*n),[],new t(o,a,s,n),[]))}function i(t,e,n,o){var a,l,c,h,d,u,p;if(0!==t.length)return a=n.shortestEdge(),h=e,d=l=t[0],u=a,0===h.length||((p=h.slice()).push(d),s(h,u)>=s(p,u))?(e.push(l),i(t.slice(1),e,n,o)):(c=n.cutArea(r(e),o),o.push(n.getCoordinates(e)),i(t,[],c,o)),o;o.push(n.getCoordinates(e))}function s(t,e){var i=Math.min.apply(Math,t),s=Math.max.apply(Math,t),n=r(t);return Math.max(Math.pow(e,2)*s/Math.pow(n,2),Math.pow(n,2)/(Math.pow(e,2)*i))}function n(t){return t&&t.constructor===Array}function r(t){var e,i=0;for(e=0;e<t.length;e++)i+=t[e];return i}function o(t){var e,i=0;if(n(t[0]))for(e=0;e<t.length;e++)i+=o(t[e]);else i=r(t);return i}return function t(i,s,r,a,l){a=void 0===a?0:a,l=void 0===l?0:l;var c,h,d=[],u=[];if(n(i[0])){for(h=0;h<i.length;h++)d[h]=o(i[h]);for(c=e(d,s,r,a,l),h=0;h<i.length;h++)u.push(t(i[h],c[h][2]-c[h][0],c[h][3]-c[h][1],c[h][0],c[h][1]))}else u=e(i,s,r,a,l);return u}}();var Bt,jt,Ft=function(){function t(e,i){r(this,t),this.ctx=e,this.w=e.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new At(e),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return a(t,[{key:"draw",value:function(t){var e=this,i=this.w,s=new w(this.ctx),n=new j(this.ctx),r=s.group({class:"apexcharts-treemap"});if(i.globals.noData)return r;var o=[];return t.forEach(function(t){var e=t.map(function(t){return Math.abs(t)});o.push(e)}),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach(function(t,i){t.data.forEach(function(t){Array.isArray(e.labels[i])||(e.labels[i]=[]),e.labels[i].push(t.x)})}),window.TreemapSquared.generate(o,i.globals.gridWidth,i.globals.gridHeight).forEach(function(o,a){var l=s.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:b.escapeString(i.globals.seriesNames[a]),rel:a+1,"data:realIndex":a});if(i.config.chart.dropShadow.enabled){var c=i.config.chart.dropShadow;new v(e.ctx).dropShadow(r,c,a)}var h=s.group({class:"apexcharts-data-labels"});o.forEach(function(r,o){var c=r[0],h=r[1],d=r[2],u=r[3],p=s.drawRect(c,h,d-c,u-h,i.config.plotOptions.treemap.borderRadius,"#fff",1,e.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?g:i.globals.stroke.colors[a]);p.attr({cx:c,cy:h,index:a,i:a,j:o,width:d-c,height:u-h});var f=e.helpers.getShadeColor(i.config.chart.type,a,o,e.negRange),g=f.color;void 0!==i.config.series[a].data[o]&&i.config.series[a].data[o].fillColor&&(g=i.config.series[a].data[o].fillColor);var m=n.fillPath({color:g,seriesNumber:a,dataPointIndex:o});p.node.classList.add("apexcharts-treemap-rect"),p.attr({fill:m}),e.helpers.addListeners(p);var x={x:c+(d-c)/2,y:h+(u-h)/2,width:0,height:0},b={x:c,y:h,width:d-c,height:u-h};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var y=1;i.globals.resized||(y=i.config.chart.animations.speed),e.animateTreemap(p,x,b,y)}if(i.globals.dataChanged){var v=1;e.dynamicAnim.enabled&&i.globals.shouldAnimate&&(v=e.dynamicAnim.speed,i.globals.previousPaths[a]&&i.globals.previousPaths[a][o]&&i.globals.previousPaths[a][o].rect&&(x=i.globals.previousPaths[a][o].rect),e.animateTreemap(p,x,b,v))}
vendor: 19,982 bytes, line 2
2var w=e.getFontSize(r),S=i.config.dataLabels.formatter(e.labels[a][o],{value:i.globals.series[a][o],seriesIndex:a,dataPointIndex:o,w:i});"truncate"===i.config.plotOptions.treemap.dataLabels.format&&(w=parseInt(i.config.dataLabels.style.fontSize,10),S=e.truncateLabels(S,w,c,h,d,u));var k=e.helpers.calculateDataLabels({text:S,x:(c+d)/2,y:(h+u)/2+e.strokeWidth/2+w/3,i:a,j:o,colorProps:f,fontSize:w,series:t});i.config.dataLabels.enabled&&k&&e.rotateToFitLabel(k,w,S,c,h,d,u),l.add(p),null!==k&&l.add(k)}),l.add(h),r.add(l)}),r}},{key:"getFontSize",value:function(t){var e,i,s=this.w,n=function t(e){var i,s=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)s+=t(e[i]);else for(i=0;i<e.length;i++)s+=e[i].length;return s}(this.labels)/function t(e){var i,s=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)s+=t(e[i]);else for(i=0;i<e.length;i++)s+=1;return s}(this.labels);return e=(t[2]-t[0])*(t[3]-t[1]),i=Math.pow(e,.5),Math.min(i/n,parseInt(s.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(t,e,i,s,n,r,o){var a=new w(this.ctx),l=a.getTextRects(i,e);if(l.width+this.w.config.stroke.width+5>r-s&&l.width<=o-n){var c=a.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(-90 ".concat(c.x," ").concat(c.y,") translate(").concat(l.height/3,")"))}}},{key:"truncateLabels",value:function(t,e,i,s,n,r){var o=new w(this.ctx),a=o.getTextRects(t,e).width+this.w.config.stroke.width+5>n-i&&r-s>n-i?r-s:n-i,l=o.getTextBasedOnMaxWidth({text:t,maxWidth:a,fontSize:e});return t.length!==l.length&&a/e<5?"":l}},{key:"animateTreemap",value:function(t,e,i,s){var n=new y(this.ctx);n.animateRect(t,{x:e.x,y:e.y,width:e.width,height:e.height},{x:i.x,y:i.y,width:i.width,height:i.height},s,function(){n.animationCompleted(t)})}}]),t}(),zt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return a(t,[{key:"calculateTimeScaleTicks",value:function(t,e){var i=this,n=this.w;if(n.globals.allSeriesCollapsed)return n.globals.labels=[],n.globals.timescaleLabels=[],[];var r=new O(this.ctx),o=(e-t)/864e5;this.determineInterval(o),n.globals.disableZoomIn=!1,n.globals.disableZoomOut=!1,o<.00011574074074074075?n.globals.disableZoomIn=!0:o>5e4&&(n.globals.disableZoomOut=!0);var a=r.getTimeUnitsfromTimestamp(t,e,this.utc),l=n.globals.gridWidth/o,c=l/24,h=c/60,d=h/60,u=Math.floor(24*o),p=Math.floor(1440*o),f=Math.floor(86400*o),g=Math.floor(o),m=Math.floor(o/30),x=Math.floor(o/365),b={minMillisecond:a.minMillisecond,minSecond:a.minSecond,minMinute:a.minMinute,minHour:a.minHour,minDate:a.minDate,minMonth:a.minMonth,minYear:a.minYear},y={firstVal:b,currentMillisecond:b.minMillisecond,currentSecond:b.minSecond,currentMinute:b.minMinute,currentHour:b.minHour,currentMonthDate:b.minDate,currentDate:b.minDate,currentMonth:b.minMonth,currentYear:b.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:c,minutesWidthOnXAxis:h,secondsWidthOnXAxis:d,numberOfSeconds:f,numberOfMinutes:p,numberOfHours:u,numberOfDays:g,numberOfMonths:m,numberOfYears:x};switch(this.tickInterval){case"years":this.generateYearScale(y);break;case"months":case"half_year":this.generateMonthScale(y);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(y);break;case"hours":this.generateHourScale(y);break;case"minutes_fives":case"minutes":this.generateMinuteScale(y);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(y)}var v=this.timeScaleArray.map(function(t){var e={position:t.position,unit:t.unit,year:t.year,day:t.day?t.day:1,hour:t.hour?t.hour:0,month:t.month+1};return"month"===t.unit?s(s({},e),{},{day:1,value:t.value+1}):"day"===t.unit||"hour"===t.unit?s(s({},e),{},{value:t.value}):"minute"===t.unit?s(s({},e),{},{value:t.value,minute:t.value}):"second"===t.unit?s(s({},e),{},{value:t.value,minute:t.minute,second:t.second}):t});return v.filter(function(t){var e=1,s=Math.ceil(n.globals.gridWidth/120),r=t.value;void 0!==n.config.xaxis.tickAmount&&(s=n.config.xaxis.tickAmount),v.length>s&&(e=Math.floor(v.length/s));var o=!1,a=!1;switch(i.tickInterval){case"years":"year"===t.unit&&(o=!0);break;case"half_year":e=7,"year"===t.unit&&(o=!0);break;case"months":e=1,"year"===t.unit&&(o=!0);break;case"months_fortnight":e=15,"year"!==t.unit&&"month"!==t.unit||(o=!0),30===r&&(a=!0);break;case"months_days":e=10,"month"===t.unit&&(o=!0),30===r&&(a=!0);break;case"week_days":e=8,"month"===t.unit&&(o=!0);break;case"days":e=1,"month"===t.unit&&(o=!0);break;case"hours":"day"===t.unit&&(o=!0);break;case"minutes_fives":case"seconds_fives":r%5!=0&&(a=!0);break;case"seconds_tens":r%10!=0&&(a=!0)}if("hours"===i.tickInterval||"minutes_fives"===i.tickInterval||"seconds_tens"===i.tickInterval||"seconds_fives"===i.tickInterval){if(!a)return!0}else if((r%e==0||o)&&!a)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,s=this.formatDates(t),n=this.removeOverlappingTS(s);i.globals.timescaleLabels=n.slice(),new lt(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){var e=24*t,i=60*e;switch(!0){case t/365>5:this.tickInterval="years";break;case t>800:this.tickInterval="half_year";break;case t>180:this.tickInterval="months";break;case t>90:this.tickInterval="months_fortnight";break;case t>60:this.tickInterval="months_days";break;case t>30:this.tickInterval="week_days";break;case t>2:this.tickInterval="days";break;case e>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(t){var e=t.firstVal,i=t.currentMonth,s=t.currentYear,n=t.daysWidthOnXAxis,r=t.numberOfYears,o=e.minYear,a=0,l=new O(this.ctx),c="year";if(e.minDate>1||e.minMonth>0){var h=l.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);a=(l.determineDaysOfYear(e.minYear)-h+1)*n,o=e.minYear+1,this.timeScaleArray.push({position:a,value:o,unit:c,year:o,month:b.monthMod(i+1)})}else 1===e.minDate&&0===e.minMonth&&this.timeScaleArray.push({position:a,value:o,unit:c,year:s,month:b.monthMod(i+1)});for(var d=o,u=a,p=0;p<r;p++)d++,u=l.determineDaysOfYear(d-1)*n+u,this.timeScaleArray.push({position:u,value:d,unit:c,year:d,month:1})}},{key:"generateMonthScale",value:function(t){var e=t.firstVal,i=t.currentMonthDate,s=t.currentMonth,n=t.currentYear,r=t.daysWidthOnXAxis,o=t.numberOfMonths,a=s,l=0,c=new O(this.ctx),h="month",d=0;if(e.minDate>1){l=(c.determineDaysOfMonths(s+1,e.minYear)-i+1)*r,a=b.monthMod(s+1);var u=n+d,p=b.monthMod(a),f=a;0===a&&(h="year",f=u,p=1,u+=d+=1),this.timeScaleArray.push({position:l,value:f,unit:h,year:u,month:p})}else this.timeScaleArray.push({position:l,value:a,unit:h,year:n,month:b.monthMod(s)});for(var g=a+1,m=l,x=0,y=1;x<o;x++,y++){0===(g=b.monthMod(g))?(h="year",d+=1):h="month";var v=this._getYear(n,g,d);m=c.determineDaysOfMonths(g,v)*r+m;var w=0===g?v:g;this.timeScaleArray.push({position:m,value:w,unit:h,year:v,month:0===g?1:g}),g++}}},{key:"generateDayScale",value:function(t){var e=t.firstVal,i=t.currentMonth,s=t.currentYear,n=t.hoursWidthOnXAxis,r=t.numberOfDays,o=new O(this.ctx),a="day",l=e.minDate+1,c=l,h=function(t,e,i){return t>o.determineDaysOfMonths(e+1,i)&&(c=1,a="month",u=e+=1),e},d=(24-e.minHour)*n,u=l,p=h(c,i,s);0===e.minHour&&1===e.minDate?(d=0,u=b.monthMod(e.minMonth),a="month",c=e.minDate):1!==e.minDate&&0===e.minHour&&0===e.minMinute&&(d=0,l=e.minDate,u=l,p=h(c=l,i,s)),this.timeScaleArray.push({position:d,value:u,unit:a,year:this._getYear(s,p,0),month:b.monthMod(p),day:c});for(var f=d,g=0;g<r;g++){a="day",p=h(c+=1,p,this._getYear(s,p,0));var m=this._getYear(s,p,0);f=24*n+f;var x=1===c?b.monthMod(p):c;this.timeScaleArray.push({position:f,value:x,unit:a,year:m,month:b.monthMod(p),day:x})}}},{key:"generateHourScale",value:function(t){var e=t.firstVal,i=t.currentDate,s=t.currentMonth,n=t.currentYear,r=t.minutesWidthOnXAxis,o=t.numberOfHours,a=new O(this.ctx),l="hour",c=function(t,e){return t>a.determineDaysOfMonths(e+1,n)&&(g=1,e+=1),{month:e,date:g}},h=function(t,e){return t>a.determineDaysOfMonths(e+1,n)?e+=1:e},d=60-(e.minMinute+e.minSecond/60),u=d*r,p=e.minHour+1,f=p;60===d&&(u=0,f=p=e.minHour);var g=i;f>=24&&(f=0,g+=1,l="day");var m=c(g,s).month;m=h(g,m),this.timeScaleArray.push({position:u,value:p,unit:l,day:g,hour:f,year:n,month:b.monthMod(m)}),f++;for(var x=u,y=0;y<o;y++){l="hour",f>=24&&(f=0,l="day",m=c(g+=1,m).month,m=h(g,m));var v=this._getYear(n,m,0);x=60*r+x;var w=0===f?g:f;this.timeScaleArray.push({position:x,value:w,unit:l,hour:f,day:g,year:v,month:b.monthMod(m)}),f++}}},{key:"generateMinuteScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,s=t.currentMinute,n=t.currentHour,r=t.currentDate,o=t.currentMonth,a=t.currentYear,l=t.minutesWidthOnXAxis,c=t.secondsWidthOnXAxis,h=t.numberOfMinutes,d=s+1,u=r,p=o,f=a,g=n,m=(60-i-e/1e3)*c,x=0;x<h;x++)d>=60&&(d=0,24===(g+=1)&&(g=0)),this.timeScaleArray.push({position:m,value:d,unit:"minute",hour:g,minute:d,day:u,year:this._getYear(f,p,0),month:b.monthMod(p)}),m+=l,d++}},{key:"generateSecondScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,s=t.currentMinute,n=t.currentHour,r=t.currentDate,o=t.currentMonth,a=t.currentYear,l=t.secondsWidthOnXAxis,c=t.numberOfSeconds,h=i+1,d=s,u=r,p=o,f=a,g=n,m=(1e3-e)/1e3*l,x=0;x<c;x++)h>=60&&(h=0,++d>=60&&(d=0,24===++g&&(g=0))),this.timeScaleArray.push({position:m,value:h,unit:"second",hour:g,minute:d,second:h,day:u,year:this._getYear(f,p,0),month:b.monthMod(p)}),m+=l,h++}},{key:"createRawDateString",value:function(t,e){var i=t.year;return 0===t.month&&(t.month=1),i+="-"+("0"+t.month.toString()).slice(-2),"day"===t.unit?i+="day"===t.unit?"-"+("0"+e).slice(-2):"-01":i+="-"+("0"+(t.day?t.day:"1")).slice(-2),"hour"===t.unit?i+="hour"===t.unit?"T"+("0"+e).slice(-2):"T00":i+="T"+("0"+(t.hour?t.hour:"0")).slice(-2),"minute"===t.unit?i+=":"+("0"+e).slice(-2):i+=":"+(t.minute?("0"+t.minute).slice(-2):"00"),"second"===t.unit?i+=":"+("0"+e).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map(function(t){var s=t.value.toString(),n=new O(e.ctx),r=e.createRawDateString(t,s),o=n.getDate(n.parseDate(r));if(e.utc||(o=n.getDate(n.parseDateWithTimezone(r))),void 0===i.config.xaxis.labels.format){var a="dd MMM",l=i.config.xaxis.labels.datetimeFormatter;"year"===t.unit&&(a=l.year),"month"===t.unit&&(a=l.month),"day"===t.unit&&(a=l.day),"hour"===t.unit&&(a=l.hour),"minute"===t.unit&&(a=l.minute),"second"===t.unit&&(a=l.second),s=n.formatDate(o,a)}else s=n.formatDate(o,i.config.xaxis.labels.format);return{dateString:r,position:t.position,value:s,unit:t.unit,year:t.year,month:t.month}})}},{key:"removeOverlappingTS",value:function(t){var e,i=this,s=new w(this.ctx),n=!1;t.length>0&&t[0].value&&t.every(function(e){return e.value.length===t[0].value.length})&&(n=!0,e=s.getTextRects(t[0].value).width);var r=0,o=t.map(function(o,a){if(a>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var l=n?e:s.getTextRects(t[r].value).width,c=t[r].position;return o.position>c+l+10?(r=a,o):null}return o});return o.filter(function(t){return null!==t})}},{key:"_getYear",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),t}(),Ht=function(){function t(e,i){r(this,t),this.ctx=i,this.w=i.w,this.el=e}return a(t,[{key:"setupElements",value:function(){var t=this.w.globals,e=this.w.config,i=e.chart.type;t.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,t.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,t.isBarHorizontal=("bar"===e.chart.type||"rangeBar"===e.chart.type||"boxPlot"===e.chart.type)&&e.plotOptions.bar.horizontal,t.chartClass=".apexcharts"+t.chartID,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),w.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas "+t.chartClass.substring(1)}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(e.chart.offsetX,", ").concat(e.chart.offsetY,")")}),t.dom.Paper.node.style.background="dark"!==e.theme.mode||e.chart.background?e.chart.background:"rgba(0, 0, 0, 0.8)",this.setSVGDimensions(),t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject"),w.setAttrs(t.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.dom.elLegendForeign.appendChild(t.dom.elLegendWrap),t.dom.Paper.node.appendChild(t.dom.elLegendForeign),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(t,e){var i=this.w,s=i.config,n=i.globals,r={series:[],i:[]},o={series:[],i:[]},a={series:[],i:[]},l={series:[],i:[]},c={series:[],i:[]},h={series:[],i:[]},d={series:[],i:[]},u={series:[],i:[]},p={series:[],seriesRangeEnd:[],i:[]};n.series.map(function(e,f){var g=0;void 0!==t[f].type?("column"===t[f].type||"bar"===t[f].type?(n.series.length>1&&s.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),c.series.push(e),c.i.push(f),g++,i.globals.columnSeries=c.series):"area"===t[f].type?(o.series.push(e),o.i.push(f),g++):"line"===t[f].type?(r.series.push(e),r.i.push(f),g++):"scatter"===t[f].type?(a.series.push(e),a.i.push(f)):"bubble"===t[f].type?(l.series.push(e),l.i.push(f),g++):"candlestick"===t[f].type?(h.series.push(e),h.i.push(f),g++):"boxPlot"===t[f].type?(d.series.push(e),d.i.push(f),g++):"rangeBar"===t[f].type?(u.series.push(e),u.i.push(f),g++):"rangeArea"===t[f].type?(p.series.push(n.seriesRangeStart[f]),p.seriesRangeEnd.push(n.seriesRangeEnd[f]),p.i.push(f),g++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"),g>1&&(n.comboCharts=!0)):(r.series.push(e),r.i.push(f))});var f=new Nt(this.ctx,e),g=new Ct(this.ctx,e);this.ctx.pie=new Tt(this.ctx);var m=new Ot(this.ctx);this.ctx.rangeBar=new Lt(this.ctx,e);var x=new Pt(this.ctx),b=[];if(n.comboCharts){if(o.series.length>0&&b.push(f.draw(o.series,"area",o.i)),c.series.length>0)if(i.config.chart.stacked){var y=new kt(this.ctx,e);b.push(y.draw(c.series,c.i))}else this.ctx.bar=new St(this.ctx,e),b.push(this.ctx.bar.draw(c.series,c.i));if(p.series.length>0&&b.push(f.draw(p.series,"rangeArea",p.i,p.seriesRangeEnd)),r.series.length>0&&b.push(f.draw(r.series,"line",r.i)),h.series.length>0&&b.push(g.draw(h.series,"candlestick",h.i)),d.series.length>0&&b.push(g.draw(d.series,"boxPlot",d.i)),u.series.length>0&&b.push(this.ctx.rangeBar.draw(u.series,u.i)),a.series.length>0){var v=new Nt(this.ctx,e,!0);b.push(v.draw(a.series,"scatter",a.i))}if(l.series.length>0){var w=new Nt(this.ctx,e,!0);b.push(w.draw(l.series,"bubble",l.i))}}else switch(s.chart.type){case"line":b=f.draw(n.series,"line");break;case"area":b=f.draw(n.series,"area");break;case"bar":s.chart.stacked?b=new kt(this.ctx,e).draw(n.series):(this.ctx.bar=new St(this.ctx,e),b=this.ctx.bar.draw(n.series));break;case"candlestick":b=new Ct(this.ctx,e).draw(n.series,"candlestick");break;case"boxPlot":b=new Ct(this.ctx,e).draw(n.series,s.chart.type);break;case"rangeBar":b=this.ctx.rangeBar.draw(n.series);break;case"rangeArea":b=f.draw(n.seriesRangeStart,"rangeArea",void 0,n.seriesRangeEnd);break;case"heatmap":b=new Et(this.ctx,e).draw(n.series);break;case"treemap":b=new Ft(this.ctx,e).draw(n.series);break;case"pie":case"donut":case"polarArea":b=this.ctx.pie.draw(n.series);break;case"radialBar":b=m.draw(n.series);break;case"radar":b=x.draw(n.series);break;default:b=f.draw(n.series)}return b}},{key:"setSVGDimensions",value:function(){var t=this.w.globals,e=this.w.config;t.svgWidth=e.chart.width,t.svgHeight=e.chart.height;var i=b.getDimensions(this.el),s=e.chart.width.toString().split(/[0-9]+/g).pop();"%"===s?b.isNumber(i[0])&&(0===i[0].width&&(i=b.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width,10)/100):"px"!==s&&""!==s||(t.svgWidth=parseInt(e.chart.width,10));var n=e.chart.height.toString().split(/[0-9]+/g).pop();if("auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===n){var r=b.getDimensions(this.el.parentNode);t.svgHeight=r[1]*parseInt(e.chart.height,10)/100}else t.svgHeight=parseInt(e.chart.height,10);else t.axisCharts?t.svgHeight=t.svgWidth/1.61:t.svgHeight=t.svgWidth/1.2;if(t.svgWidth<0&&(t.svgWidth=0),t.svgHeight<0&&(t.svgHeight=0),w.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==n){var o=e.chart.sparkline.enabled?0:t.axisCharts?e.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+o+"px"}t.dom.elWrap.style.width=t.svgWidth+"px",t.dom.elWrap.style.height=t.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var t=this.w.globals,e=t.translateY,i={transform:"translate("+t.translateX+", "+e+")"};w.setAttrs(t.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0,s=t.config.chart.sparkline.enabled?1:15;s+=t.config.grid.padding.bottom,"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||!t.config.legend.show||t.config.legend.floating||(i=new ht(this.ctx).legendHelpers.getLegendBBox().clwh+10);var n=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),r=2.05*t.globals.radialSize;if(n&&!t.config.chart.sparkline.enabled&&0!==t.config.plotOptions.radialBar.startAngle){var o=b.getBoundingClientRect(n);r=o.bottom;var a=o.bottom-o.top;r=Math.max(2.05*t.globals.radialSize,a)}var l=r+e.translateY+i+s;e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute("height",l),t.config.chart.height&&String(t.config.chart.height).indexOf("%")>0||(e.dom.elWrap.style.height=l+"px",w.setAttrs(e.dom.Paper.node,{height:l}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px")}},{key:"coreCalculations",value:function(){new q(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=function(){return t.w.config.series.map(function(t){return[]})},i=new N,s=this.w.globals;i.initGlobalVars(s),s.seriesXvalues=e(),s.seriesYvalues=e()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var t=null,e=this.w;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new tt(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new tt(this.ctx).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new zt(this.ctx);var i=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}t=new S(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(t){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var t=this,e=this.w;if(e.config.chart.brush.enabled&&"function"!=typeof e.config.chart.events.selection){var i=Array.isArray(e.config.chart.brush.targets)?e.config.chart.brush.targets:[e.config.chart.brush.target];
vendor: 6,616 bytes, line 2
2i.forEach(function(e){var i=ApexCharts.getChartByID(e);i.w.globals.brushSource=t.ctx,"function"!=typeof i.w.config.chart.events.zoomed&&(i.w.config.chart.events.zoomed=function(){t.updateSourceChart(i)}),"function"!=typeof i.w.config.chart.events.scrolled&&(i.w.config.chart.events.scrolled=function(){t.updateSourceChart(i)})}),e.config.chart.events.selection=function(t,n){i.forEach(function(t){var i=ApexCharts.getChartByID(t),r=b.clone(e.config.yaxis);if(e.config.chart.brush.autoScaleYaxis&&1===i.w.globals.series.length){var o=new $(i);r=o.autoScaleY(i,r,n)}var a=i.w.config.yaxis.reduce(function(t,e,n){return[].concat(g(t),[s(s({},i.w.config.yaxis[n]),{},{min:r[0].min,max:r[0].max})])},[]);i.ctx.updateHelpers._updateOptions({xaxis:{min:n.xaxis.min,max:n.xaxis.max},yaxis:a},!1,!1,!1,!1)})}}}}]),t}(),Xt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"_updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise(function(a){var l=[e.ctx];r&&(l=e.ctx.getSyncedCharts()),e.ctx.w.globals.isExecCalled&&(l=[e.ctx],e.ctx.w.globals.isExecCalled=!1),l.forEach(function(r,c){var h=r.w;if(h.globals.shouldAnimate=s,i||(h.globals.resized=!0,h.globals.dataChanged=!0,s&&r.series.getPreviousPaths()),t&&"object"===n(t)&&(r.config=new R(t),t=S.extendArrayProps(r.config,t,h),r.w.globals.chartID!==e.ctx.w.globals.chartID&&delete t.series,h.config=b.extend(h.config,t),o&&(h.globals.lastXAxis=t.xaxis?b.clone(t.xaxis):[],h.globals.lastYAxis=t.yaxis?b.clone(t.yaxis):[],h.globals.initialConfig=b.extend({},h.config),h.globals.initialSeries=b.clone(h.config.series),t.series))){for(var d=0;d<h.globals.collapsedSeriesIndices.length;d++){var u=h.config.series[h.globals.collapsedSeriesIndices[d]];h.globals.collapsedSeries[d].data=h.globals.axisCharts?u.data.slice():u}for(var p=0;p<h.globals.ancillaryCollapsedSeriesIndices.length;p++){var f=h.config.series[h.globals.ancillaryCollapsedSeriesIndices[p]];h.globals.ancillaryCollapsedSeries[p].data=h.globals.axisCharts?f.data.slice():f}r.series.emptyCollapsedSeries(h.config.series)}return r.update(t).then(function(){c===l.length-1&&a(r)})})})}},{key:"_updateSeries",value:function(t,e){var i=this,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(n){var r,o=i.w;return o.globals.shouldAnimate=e,o.globals.dataChanged=!0,e&&i.ctx.series.getPreviousPaths(),o.globals.axisCharts?(0===(r=t.map(function(t,e){return i._extendSeries(t,e)})).length&&(r=[{data:[]}]),o.config.series=r):o.config.series=t.slice(),s&&(o.globals.initialConfig.series=b.clone(o.config.series),o.globals.initialSeries=b.clone(o.config.series)),i.ctx.update().then(function(){n(i.ctx)})})}},{key:"_extendSeries",value:function(t,e){var i=this.w,n=i.config.series[e];return s(s({},i.config.series[e]),{},{name:t.name?t.name:null==n?void 0:n.name,color:t.color?t.color:null==n?void 0:n.color,type:t.type?t.type:null==n?void 0:n.type,group:t.group?t.group:null==n?void 0:n.group,data:t.data?t.data:null==n?void 0:n.data,zIndex:void 0!==t.zIndex?t.zIndex:e})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,s=null,n=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?s=i.globals.dom.Paper.select("".concat(n," path[j='").concat(e,"'], ").concat(n," circle[j='").concat(e,"'], ").concat(n," rect[j='").concat(e,"']")).members[0]:void 0===e&&(s=i.globals.dom.Paper.select("".concat(n," path[j='").concat(t,"']")).members[0],"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(t)),s?(new w(this.ctx).pathMouseDown(s,null),s.node?s.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(t){var e=this.w;if(["min","max"].forEach(function(i){void 0!==t.xaxis[i]&&(e.config.xaxis[i]=t.xaxis[i],e.globals.lastXAxis[i]=t.xaxis[i])}),t.xaxis.categories&&t.xaxis.categories.length&&(e.config.xaxis.categories=t.xaxis.categories),e.config.xaxis.convertedCatToNumeric){var i=new D(t);t=i.convertCatToNumericXaxis(t,this.ctx)}return t}},{key:"forceYAxisUpdate",value:function(t){return t.chart&&t.chart.stacked&&"100%"===t.chart.stackType&&(Array.isArray(t.yaxis)?t.yaxis.forEach(function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100}):(t.yaxis.min=0,t.yaxis.max=100)),t}},{key:"revertDefaultAxisMinMax",value:function(t){var e=this,i=this.w,s=i.globals.lastXAxis,n=i.globals.lastYAxis;t&&t.xaxis&&(s=t.xaxis),t&&t.yaxis&&(n=t.yaxis),i.config.xaxis.min=s.min,i.config.xaxis.max=s.max;i.config.yaxis.map(function(t,s){i.globals.zoomed||void 0!==n[s]?function(t){void 0!==n[t]&&(i.config.yaxis[t].min=n[t].min,i.config.yaxis[t].max=n[t].max)}(s):void 0!==e.ctx.opts.yaxis[s]&&(t.min=e.ctx.opts.yaxis[s].min,t.max=e.ctx.opts.yaxis[s].max)})}}]),t}();Bt=typeof window<"u"?window:void 0,jt=function(t,e){var i=(void 0!==this?this:t).SVG=function(t){if(i.supported)return t=new i.Doc(t),i.parser.draw||i.prepare(),t};if(i.ns="http://www.w3.org/2000/svg",i.xmlns="http://www.w3.org/2000/xmlns/",i.xlink="http://www.w3.org/1999/xlink",i.svgjs="http://svgjs.dev",i.supported=!0,!i.supported)return!1;i.did=1e3,i.eid=function(t){return"Svgjs"+d(t)+i.did++},i.create=function(t){var i=e.createElementNS(this.ns,t);return i.setAttribute("id",this.eid(t)),i},i.extend=function(){var t,e;e=(t=[].slice.call(arguments)).pop();for(var s=t.length-1;s>=0;s--)if(t[s])for(var n in e)t[s].prototype[n]=e[n];i.Set&&i.Set.inherit&&i.Set.inherit()},i.invent=function(t){var e="function"==typeof t.create?t.create:function(){this.constructor.call(this,i.create(t.create))};return t.inherit&&(e.prototype=new t.inherit),t.extend&&i.extend(e,t.extend),t.construct&&i.extend(t.parent||i.Container,t.construct),e},i.adopt=function(e){return e?e.instance?e.instance:((s="svg"==e.nodeName?e.parentNode instanceof t.SVGElement?new i.Nested:new i.Doc:"linearGradient"==e.nodeName?new i.Gradient("linear"):"radialGradient"==e.nodeName?new i.Gradient("radial"):i[d(e.nodeName)]?new(i[d(e.nodeName)]):new i.Element(e)).type=e.nodeName,s.node=e,e.instance=s,s instanceof i.Doc&&s.namespace().defs(),s.setData(JSON.parse(e.getAttribute("svgjs:data"))||{}),s):null;var s},i.prepare=function(){var t=e.getElementsByTagName("body")[0],s=(t?new i.Doc(t):i.adopt(e.documentElement).nested()).size(2,0);i.parser={body:t||e.documentElement,draw:s.style("opacity:0;position:absolute;
2left:-100%;top:-100%;overflow:hidden").node,poly:s.polyline().node,path:s.path().node,native:i.create("svg")}},i.parser={native:i.create("svg")},e.addEventListener("DOMContentLoaded",function(){i.parser.draw||i.prepare()},!1),i.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},i.utils={map:function(t,e){for(var i=t.length,s=[],n=0;n<i;n++)s.push(e(t[n]));return s},filter:function(t,e){for(var i=t.length,s=[],n=0;n<i;n++)e(t[n])&&s.push(t[n]);return s},filterSVGElements:function(e){return this.filter(e,function(e){return e instanceof t.SVGElement})}},i.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},i.Color=function(t){var e,s;this.r=0,this.g=0,this.b=0,t&&("string"==typeof t?i.regex.isRgb.test(t)?(e=i.regex.rgb.exec(t.replace(i.regex.whitespace,"")),this.r=parseInt(e[1]),this.g=parseInt(e[2]),this.b=parseInt(e[3])):i.regex.isHex.test(t)&&(e=i.regex.hex.exec(4==(s=t).length?["#",s.substring(1,2),s.substring(1,2),s.substring(2,3),s.substring(2,3),s.substring(3,4),s.substring(3,4)].join(""):s),this.r=parseInt(e[1],16),this.g=parseInt(e[2],16),this.b=parseInt(e[3],16)):"object"===n(t)&&(this.r=t.r,this.g=t.g,this.b=t.b))},i.extend(i.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+u(this.r)+u(this.g)+u(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(t){return this.destination=new i.Color(t),this},at:function(t){return this.destination?(t=t<0?0:t>1?1:t,new i.Color({r:~~(this.r+(this.destination.r-this.r)*t),g:~~(this.g+(this.destination.g-this.g)*t),b:~~(this.b+(this.destination.b-this.b)*t)})):this}}),i.Color.test=function(t){return t+="",i.regex.isHex.test(t)||i.regex.isRgb.test(t)},i.Color.isRgb=function(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b},i.Color.isColor=function(t){return i.Color.isRgb(t)||i.Color.test(t)},i.Array=function(t,e){0==(t=(t||[]).valueOf()).length&&e&&(t=e.valueOf()),this.value=this.parse(t)},i.extend(i.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(t){return t=t.valueOf(),Array.isArray(t)?t:this.split(t)}}),i.PointArray=function(t,e){i.Array.call(this,t,e||[[0,0]])},i.PointArray.prototype=new i.Array,i.PointArray.prototype.constructor=i.PointArray;for(var s={M:function(t,e,i){return e.x=i.x=t[0],e.y=i.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]}},r="mlhvqtcsaz".split(""),o=0,a=r.length;o<a;++o)s[r[o]]=function(t){return function(e,i,n){if("H"==t)e[0]=e[0]+i.x;else if("V"==t)e[0]=e[0]+i.y;else if("A"==t)e[5]=e[5]+i.x,e[6]=e[6]+i.y;else for(var r=0,o=e.length;r<o;++r)e[r]=e[r]+(r%2?i.y:i.x);if(s&&"function"==typeof s[t])return s[t](e,i,n)}}(r[o].toUpperCase());i.PathArray=function(t,e){i.Array.call(this,t,e||[["M",0,0]])},i.PathArray.prototype=new i.Array,i.PathArray.prototype.constructor=i.PathArray,i.extend(i.PathArray,{toString:function(){return function(t){for(var e=0,i=t.length,s="";e<i;e++)s+=t[e][0],null!=t[e][1]&&(s+=t[e][1],null!=t[e][2]&&(s+=" ",s+=t[e][2],null!=t[e][3]&&(s+=" ",s+=t[e][3],s+=" ",s+=t[e][4],null!=t[e][5]&&(s+=" ",s+=t[e][5],s+=" ",s+=t[e][6],null!=t[e][7]&&
vendor: 11,616 bytes, line 2
2(s+=" ",s+=t[e][7])))));return s+" "}(this.value)},move:function(t,e){var i=this.bbox();return i.x,i.y,this},at:function(t){if(!this.destination)return this;for(var e=this.value,s=this.destination.value,n=[],r=new i.PathArray,o=0,a=e.length;o<a;o++){n[o]=[e[o][0]];for(var l=1,c=e[o].length;l<c;l++)n[o][l]=e[o][l]+(s[o][l]-e[o][l])*t;"A"===n[o][0]&&(n[o][4]=+(0!=n[o][4]),n[o][5]=+(0!=n[o][5]))}return r.value=n,r},parse:function(t){if(t instanceof i.PathArray)return t.valueOf();var e,n={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};t="string"==typeof t?t.replace(i.regex.numbersWithDots,c).replace(i.regex.pathLetters," $& ").replace(i.regex.hyphen,"$1 -").trim().split(i.regex.delimiter):t.reduce(function(t,e){return[].concat.call(t,e)},[]);var r=[],o=new i.Point,a=new i.Point,l=0,h=t.length;do{i.regex.isPathLetter.test(t[l])?(e=t[l],++l):"M"==e?e="L":"m"==e&&(e="l"),r.push(s[e].call(null,t.slice(l,l+=n[e.toUpperCase()]).map(parseFloat),o,a))}while(h>l);return r},bbox:function(){return i.parser.draw||i.prepare(),i.parser.path.setAttribute("d",this.toString()),i.parser.path.getBBox()}}),i.Number=i.invent({create:function(t,e){this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(i.regex.numberAndUnit))&&(this.value=parseFloat(e[1]),"%"==e[5]?this.value/=100:"s"==e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof i.Number&&(this.value=t.valueOf(),this.unit=t.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(t){return t=new i.Number(t),new i.Number(this+t,this.unit||t.unit)},minus:function(t){return t=new i.Number(t),new i.Number(this-t,this.unit||t.unit)},times:function(t){return t=new i.Number(t),new i.Number(this*t,this.unit||t.unit)},divide:function(t){return t=new i.Number(t),new i.Number(this/t,this.unit||t.unit)},to:function(t){var e=new i.Number(this);return"string"==typeof t&&(e.unit=t),e},morph:function(t){return this.destination=new i.Number(t),t.relative&&(this.destination.value+=this.value),this},at:function(t){return this.destination?new i.Number(this.destination).minus(this).times(t).plus(this):this}}}),i.Element=i.invent({create:function(t){this._stroke=i.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=t)&&(this.type=t.nodeName,this.node.instance=this,this._stroke=t.getAttribute("stroke")||this._stroke)},extend:{x:function(t){return this.attr("x",t)},y:function(t){return this.attr("y",t)},cx:function(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)},cy:function(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},width:function(t){return this.attr("width",t)},height:function(t){return this.attr("height",t)},size:function(t,e){var s=p(this,t,e);return this.width(new i.Number(s.width)).height(new i.Number(s.height))},clone:function(t){this.writeDataToDom();var e=m(this.node.cloneNode(!0));return t?t.add(e):this.after(e),e},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(t){return this.after(t).remove(),t},addTo:function(t){return t.put(this)},putIn:function(t){return t.add(this)},id:function(t){return this.attr("id",t)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var t=this.attr("class");return null==t?[]:t.trim().split(i.regex.delimiter)},hasClass:function(t){return-1!=this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){var e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter(function(e){return e!=t}).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)},reference:function(t){return i.get(this.attr(t))},parent:function(e){var s=this;if(!s.node.parentNode)return null;if(s=i.adopt(s.node.parentNode),!e)return s;for(;s&&s.node instanceof t.SVGElement;){if("string"==typeof e?s.matches(e):s instanceof e)return s;if(!s.node.parentNode||"#document"==s.node.parentNode.nodeName)return null;s=i.adopt(s.node.parentNode)}},doc:function(){return this instanceof i.Doc?this:this.parent(i.Doc)},parents:function(t){var e=[],i=this;do{if(!(i=i.parent(t))||!i.node)break;e.push(i)}while(i.parent);return e},matches:function(t){return e=this.node,i=t,(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,i);var e,i},native:function(){return this.node},svg:function(t){var s=e.createElement("svg");if(!(t&&this instanceof i.Parent))return s.appendChild(t=e.createElement("svg")),this.writeDataToDom(),t.appendChild(this.node.cloneNode(!0)),s.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");s.innerHTML="<svg>"+t.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var n=0,r=s.firstChild.childNodes.length;n<r;n++)this.node.appendChild(s.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each(function(){this.writeDataToDom()}),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(t){return this.dom=t,this},is:function(t){return this instanceof t}}}),i.easing={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)}},i.morph=function(t){return function(e,s){return new i.MorphObj(e,s).at(t)}},i.Situation=i.invent({create:function(t){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new i.Number(t.duration).valueOf(),this.delay=new i.Number(t.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=t.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),i.FX=i.invent({create:function(t){this._target=t,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(t,e,s){"object"===n(t)&&(e=t.ease,s=t.delay,t=t.duration);var r=new i.Situation({duration:t||1e3,delay:s||0,ease:i.easing[e||"-"]||e});return this.queue(r),this},target:function(t){return t&&t instanceof i.Element?(this._target=t,this):this._target},timeToAbsPos:function(t){return(t-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(t){return this.situation.duration/this._speed*t+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=t.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){t.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(t){return("function"==typeof t||t instanceof i.Situation)&&this.situations.push(t),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof i.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var t,e=this.situation;if(e.init)return this;for(var s in e.animations){t=this.target()[s](),Array.isArray(t)||(t=[t]),Array.isArray(e.animations[s])||(e.animations[s]=[e.animations[s]]);for(var n=t.length;n--;)e.animations[s][n]instanceof i.Number&&(t[n]=new i.Number(t[n])),e.animations[s][n]=t[n].morph(e.animations[s][n])}for(var s in e.attrs)e.attrs[s]=new i.MorphObj(this.target().attr(s),e.attrs[s]);for(var s in e.styles)e.styles[s]=new i.MorphObj(this.target().style(s),e.styles[s]);return e.initialTransformation=this.target().matrixify(),e.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(t,e){var i=this.active;return this.active=!1,e&&this.clearQueue(),t&&this.situation&&(!i&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(t){var e=this.last();return this.target().on("finished.fx",function i(s){s.detail.situation==e&&(t.call(this,e),this.off("finished.fx",i))}),this._callStart()},during:function(t){var e=this.last(),s=function(s){s.detail.situation==e&&t.call(this,s.detail.pos,i.morph(s.detail.pos),s.detail.eased,e)};return this.target().off("during.fx",s).on("during.fx",s),this.after(function(){this.off("during.fx",s)}),this._callStart()},afterAll:function(t){var e=function e(i){t.call(this),this.off("allfinished.fx",e)};return this.target().off("allfinished.fx",e).on("allfinished.fx",e),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(t,e,i){return this.last()[i||"animations"][t]=e,this._callStart()},step:function(t){var e,i,s;t||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(e=Math.max(this.absPos,0),i=Math.floor(e),!0===this.situation.loops||i<this.situation.loops?(this.pos=e-i,s=this.situation.loop,this.situation.loop=i):(this.absPos=this.situation.loops,this.pos=1,s=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=!!((this.situation.loop-s)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var n=this.situation.ease(this.pos);for(var r in this.situation.once)r>this.lastPos&&r<=n&&(this.situation.once[r].call(this.target(),this.pos,n),delete this.situation.once[r]);return this.active&&this.target().fire("during",{pos:this.pos,eased:n,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=n,this):this},eachAt:function(){var t,e=this,s=this.target(),n=this.situation;for(var r in n.animations)t=[].concat(n.animations[r]).map(function(t){return"string"!=typeof t&&t.at?t.at(n.ease(e.pos),e.pos):t}),s[r].apply(s,t);for(var r in n.attrs)t=[r].concat(n.attrs[r]).map(function(t){return"string"!=typeof t&&t.at?t.at(n.ease(e.pos),e.pos):t}),s.attr.apply(s,t);for(var r in n.styles)t=[r].concat(n.styles[r]).map(function(t){return"string"!=typeof t&&t.at?t.at(n.ease(e.pos),e.pos):t}),s.style.apply(s,t);if(n.transforms.length){t=n.initialTransformation,r=0;for(var o=n.transforms.length;r<o;r++){var a=n.transforms[r];a instanceof i.Matrix?t=a.relative?t.multiply((new i.Matrix).morph(a).at(n.ease(this.pos))):t.morph(a).at(n.ease(this.pos)):(a.relative||a.undo(t.extract()),t=t.multiply(a.at(n.ease(this.pos))))}s.matrix(t)}return this}
vendor: 5,163 bytes, line 2
2,once:function(t,e,i){var s=this.last();return i||(t=s.ease(t)),s.once[t]=e,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:i.Element,construct:{animate:function(t,e,s){return(this.fx||(this.fx=new i.FX(this))).animate(t,e,s)},delay:function(t){return(this.fx||(this.fx=new i.FX(this))).delay(t)},stop:function(t,e){return this.fx&&this.fx.stop(t,e),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),i.MorphObj=i.invent({create:function(t,e){return i.Color.isColor(e)?new i.Color(t).morph(e):i.regex.delimiter.test(t)?i.regex.pathLetters.test(t)?new i.PathArray(t).morph(e):new i.Array(t).morph(e):i.regex.numberAndUnit.test(e)?new i.Number(t).morph(e):(this.value=t,void(this.destination=e))},extend:{at:function(t,e){return e<1?this.value:this.destination},valueOf:function(){return this.value}}}),i.extend(i.FX,{attr:function(t,e,i){if("object"===n(t))for(var s in t)this.attr(s,t[s]);else this.add(t,e,"attrs");return this},plot:function(t,e,i,s){return 4==arguments.length?this.plot([t,e,i,s]):this.add("plot",new(this.target().morphArray)(t))}}),i.Box=i.invent({create:function(t,e,s,r){if(!("object"!==n(t)||t instanceof i.Element))return i.Box.call(this,null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height);var o;4==arguments.length&&(this.x=t,this.y=e,this.width=s,this.height=r),null==(o=this).x&&(o.x=0,o.y=0,o.width=0,o.height=0),o.w=o.width,o.h=o.height,o.x2=o.x+o.width,o.y2=o.y+o.height,o.cx=o.x+o.width/2,o.cy=o.y+o.height/2}}),i.BBox=i.invent({create:function(t){if(i.Box.apply(this,[].slice.call(arguments)),t instanceof i.Element){var s;try{if(!e.documentElement.contains){for(var n=t.node;n.parentNode;)n=n.parentNode;if(n!=e)throw new Error("Element not in the dom")}s=t.node.getBBox()}catch{if(t instanceof i.Shape){i.parser.draw||i.prepare();var r=t.clone(i.parser.draw.instance).show();r&&r.node&&"function"==typeof r.node.getBBox&&(s=r.node.getBBox()),r&&"function"==typeof r.remove&&r.remove()}else s={x:t.node.clientLeft,y:t.node.clientTop,width:t.node.clientWidth,height:t.node.clientHeight}}i.Box.call(this,s)}},inherit:i.Box,parent:i.Element,construct:{bbox:function(){return new i.BBox(this)}}}),i.BBox.prototype.constructor=i.BBox,i.Matrix=i.invent({create:function(t){var e=g([1,0,0,1,0,0]);t=null===t?e:t instanceof i.Element?t.matrixify():"string"==typeof t?g(t.split(i.regex.delimiter).map(parseFloat)):6==arguments.length?g([].slice.call(arguments)):Array.isArray(t)?g(t):t&&"object"===n(t)?t:e;for(var s=b.length-1;s>=0;--s)this[b[s]]=null!=t[b[s]]?t[b[s]]:e[b[s]]},extend:{extract:function(){var t=f(this,0,1);f(this,1,0);var e=180/Math.PI*Math.atan2(t.y,t.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(e*Math.PI/180)+this.f*Math.sin(e*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(e*Math.PI/180)+this.e*Math.sin(-e*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new i.Matrix(this)}},clone:function(){return new i.Matrix(this)},morph:function(t){return this.destination=new i.Matrix(t),this},multiply:function(t){return new i.Matrix(this.native().multiply((e=t,e instanceof i.Matrix||(e=new i.Matrix(e)),e).native()));var e},inverse:function(){return new i.Matrix(this.native().inverse())},translate:function(t,e){return new i.Matrix(this.native().translate(t||0,e||0))},native:function(){for(var t=i.parser.native.createSVGMatrix(),e=b.length-1;e>=0;e--)t[b[e]]=this[b[e]];return t},toString:function(){return"matrix("+x(this.a)+","+x(this.b)+","+x(this.c)+","+x(this.d)+","+x(this.e)+","+x(this.f)+")"}},parent:i.Element,construct:{ctm:function(){return new i.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof i.Nested){var t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new i.Matrix(e)}return new i.Matrix(this.node.getScreenCTM())}}}),i.Point=i.invent({create:function(t,e){var i;i=Array.isArray(t)?{x:t[0],y:t[1]}:"object"===n(t)?{x:t.x,y:t.y}:null!=t?{x:t,y:e??t}:{x:0,y:0},this.x=i.x,this.y=i.y},extend:{clone:function(){return new i.Point(this)},morph:function(t,e){return this.destination=new i.Point(t,e),this}}}),i.extend(i.Element,{point:function(t,e){return new i.Point(t,e).transform(this.screenCTM().inverse())}}),i.extend(i.Element,{attr:function(t,e,s){if(null==t){for(t={},s=(e=this.node.attributes).length-1;s>=0;s--)t[e[s].nodeName]=i.regex.isNumber.test(e[s].nodeValue)?parseFloat(e[s].nodeValue):e[s].nodeValue;return t}if("object"===n(t))for(var r in t)this.attr(r,t[r]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?i.defaults.attrs[t]:i.regex.isNumber.test(e)?parseFloat(e):e;"stroke-width"==t?this.attr("stroke",parseFloat(e)>0?this._stroke:null):"stroke"==t&&(this._stroke=e),"fill"!=t&&"stroke"!=t||(i.regex.isImage.test(e)&&(e=this.doc().defs().image(e,0,0)),e instanceof i.Image&&(e=this.doc().defs().pattern(0,0,function(){this.add(e)}))),"number"==typeof e?e=new i.Number(e):i.Color.isColor(e)?e=new i.Color(e):Array.isArray(e)&&(e=new i.Array(e)),"leading"==t?this.leading&&this.leading(e):"str
2ing"==typeof s?this.node.setAttributeNS(s,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!=t&&"x"!=t||this.rebuild(t,e)}return this}}),i.extend(i.Element,{transform:function(t,e){var s;return"object"!==n(t)?(s=new i.Matrix(this).extract(),"string"==typeof t?s[t]:s):(s=new i.Matrix(this),e=!!e||!!t.relative,null!=t.a&&(s=e?s.multiply(new i.Matrix(t)):new i.Matrix(t)),this.attr("transform",s))}}),i.extend(i.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(i.regex.transforms).slice(0,-1).map(function(t){var e=t.trim().split("(");return[e[0],e[1].split(i.regex.delimiter).map(function(t){return parseFloat(t)})]}).reduce(function(t,e){return"matrix"==e[0]?t.multiply(g(e[1])):t[e[0]].apply(t,e[1])},new i.Matrix)},toParent:function(t){if(this==t)return this;var e=this.screenCTM(),i=t.screenCTM().inverse();return this.addTo(t).untransform().transform(i.multiply(e)),this},toDoc:function(){return this.toParent(this.doc())}}),i.Transformation=i.invent({create:function(t,e){if(arguments.length>1&&"boolean"!=typeof e)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(t))for(var i=0,s=this.arguments.length;i<s;++i)this[this.arguments[i]]=t[i];else if(t&&"object"===n(t))for(i=0,s=this.arguments.length;i<s;++i)this[this.arguments[i]]=t[this.arguments[i]];this.inversed=!1,!0===e&&(this.inversed=!0)}}),i.Translate=i.invent({parent:i.Matrix,inherit:i.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),i.extend(i.Element,{style:function(t,e){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===n(t))for(var s in t)this.style(s,t[s]);else{if(!i.regex.isCss.test(t))return this.node.style[h(t)];for(t=t.split(/\s*;\s*/).filter(function(t){return!!t}).map(function(t){return t.split(/\s*:\s*/)});e=t.pop();)this.style(e[0],e[1])}else this.node.style[h(t)]=null===e||i.regex.isBlank.test(e)?"":e;return this}}),i.Parent=i.invent({create:function(t){this.constructor.call(this,t)},inherit:i.Element,extend:{children:function(){return i.utils.map(i.utils.filterSVGElements(this.node.childNodes),function(t){return i.adopt(t)})},add:function(t,e){return null==e?this.node.appendChild(t.node):t.node!=this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this},put:function(t,e){return this.add(t,e),t},has:function(t){return this.index(t)>=0},index:function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)},get:function(t){return i.adopt(this.node.childNodes[t])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(t,e){for(var s=this.children(),n=0,r=s.length;n<r;n++)s[n]instanceof i.Element&&t.apply(s[n],[n,s]),e&&s[n]instanceof i.Container&&s[n].each(t,e);return this},removeElement:function(t){return this.node.removeChild(t.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),i.extend(i.Parent,{ungroup:function(t,e){return 0===e||this instanceof i.Defs||this.node==i.parser.draw||(t=t||(this instanceof i.Doc?this:this.parent(i.Parent)),e=e||1/0,this.each(function(){return this instanceof i.Defs?this:this instanceof i.Parent?this.ungroup(t,e-1):this.toParent(t)}),this.node.firstChild||this.remove()),this},flatten:function(t,e){return this.ungroup(t,e)}}),i.Container=i.invent({create:function(t){this.constructor.call(this,t)},inherit:i.Parent}),i.ViewBox=i.invent({parent:i.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(t){i.Element.prototype[t]=function(e){return i.on(this.node,t,e),this}}),i.listeners=[],i.handlerMap=[],i.listenerId=0,i.on=function(t,e,s,n,r){var o=s.bind(n||t.instance||t),a=(i.handlerMap.indexOf(t)+1||i.handlerMap.push(t))-1,l=e.split(".")[0],c=e.split(".")[1]||"*";i.listeners[a]=i.listeners[a]||{},i.listeners[a][l]=i.listeners[a][l]||{},i.listeners[a][l][c]=i.listeners[a][l][c]||{},s._svgjsListenerId||(s._svgjsListenerId=++i.listenerId),i.listeners[a][l][c][s._svgjsListenerId]=o,t.addEventListener(l,o,r||{passive:!0})},i.off=function(t,e,s){var n=i.handlerMap.indexOf(t),r=e&&e.split(".")[0],o=e&&e.split(".")[1],a="";if(-1!=n)if(s){if("function"==typeof s&&(s=s._svgjsListenerId),!s)return;i.listeners[n][r]&&i.listeners[n][r][o||"*"]&&(t.removeEventListener(r,i.listeners[n][r][o||"*"][s],!1),delete i.listeners[n][r][o||"*"][s])}else if(o&&r){if(i.listeners[n][r]&&i.listeners[n][r][o]){for(var l in i.listeners[n][r][o])i.off(t,[r,o].join("."),l);delete i.listeners[n][r][o]}}else if(o)for(var c in i.listeners[n])for(var a in i.listeners[n][c])o===a&&i.off(t,[c,o].join("."));else if(r){if(i.listeners[n][r]){for(var a in i.listeners[n][r])i.off(t,[r,a].join("."));delete i.listeners[n][r]}}else{for(var c in i.listeners[n])i.off(t,c);delete i.listeners[n],delete i.handlerMap[n]}},i.extend(i.Element,{on:function(t,e,s,n){return i.on(this.node,t,e,s,n),this},off:function(t,e){return i.off(this.node,t,e),this},fire:function(e,s){return e instanceof t.Event?this.node.dispatchEvent(e):this.node.dispatchEvent(e=new i.CustomEvent(e,{detail:s,cancelable:!0})),this._event=e,this},event:function(){return this._event}}),i.Defs=i.invent({create:"defs",inherit:i.Container}),i.G=i.invent({create:"g",inherit:i.Container,extend:{x:function(t){return null==t?this.transform("x"):this.transform({x:t-this.x()},!0)}},construct:{group:function(){return this.put(new i.G)}}}),i.Doc=i.invent({create:function(t){t&&("svg"==(t="string"==typeof t?e.getElementById(t):t).nodeName?this.constructor.call(this,t):(this.constructor.call(this,i.create("svg")),t.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:i.Container,extend:{namespace:function(){return this.attr({xmlns:i.ns,version:"1.1"}).attr("xmlns:xlink",i.xlink,i.xmlns).attr("xmlns:svgjs",i.svgjs,i.xmlns)},defs:function(){var t;return this._defs||((t=this.node.getElementsByTagName("defs")[0])?this._defs=i.adopt(t):this._defs=new i.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,i.parser.draw&&!i.parser.draw.parentNode&&this.node.appendChild(i.parser.draw),this},clone:function(t){this.writeDataToDom();var e=this.node,i=m(e.cloneNode(!0));
vendor: 12,149 bytes, line 2
2return t?(t.node||t).appendChild(i.node):e.parentNode.insertBefore(i.node,e.nextSibling),i}}}),i.extend(i.Element,{}),i.Gradient=i.invent({create:function(t){this.constructor.call(this,i.create(t+"Gradient")),this.type=t},inherit:i.Container,extend:{at:function(t,e,s){return this.put(new i.Stop).update(t,e,s)},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(t,e,s){return"transform"==t&&(t="gradientTransform"),i.Container.prototype.attr.call(this,t,e,s)}},construct:{gradient:function(t,e){return this.defs().gradient(t,e)}}}),i.extend(i.Gradient,i.FX,{from:function(t,e){return"radial"==(this._target||this).type?this.attr({fx:new i.Number(t),fy:new i.Number(e)}):this.attr({x1:new i.Number(t),y1:new i.Number(e)})},to:function(t,e){return"radial"==(this._target||this).type?this.attr({cx:new i.Number(t),cy:new i.Number(e)}):this.attr({x2:new i.Number(t),y2:new i.Number(e)})}}),i.extend(i.Defs,{gradient:function(t,e){return this.put(new i.Gradient(t)).update(e)}}),i.Stop=i.invent({create:"stop",inherit:i.Element,extend:{update:function(t){return("number"==typeof t||t instanceof i.Number)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new i.Number(t.offset)),this}}}),i.Pattern=i.invent({create:"pattern",inherit:i.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},toString:function(){return this.fill()},attr:function(t,e,s){return"transform"==t&&(t="patternTransform"),i.Container.prototype.attr.call(this,t,e,s)}},construct:{pattern:function(t,e,i){return this.defs().pattern(t,e,i)}}}),i.extend(i.Defs,{pattern:function(t,e,s){return this.put(new i.Pattern).update(s).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}}),i.Shape=i.invent({create:function(t){this.constructor.call(this,t)},inherit:i.Element}),i.Symbol=i.invent({create:"symbol",inherit:i.Container,construct:{symbol:function(){return this.put(new i.Symbol)}}}),i.Use=i.invent({create:"use",inherit:i.Shape,extend:{element:function(t,e){return this.attr("href",(e||"")+"#"+t,i.xlink)}},construct:{use:function(t,e){return this.put(new i.Use).element(t,e)}}}),i.Rect=i.invent({create:"rect",inherit:i.Shape,construct:{rect:function(t,e){return this.put(new i.Rect).size(t,e)}}}),i.Circle=i.invent({create:"circle",inherit:i.Shape,construct:{circle:function(t){return this.put(new i.Circle).rx(new i.Number(t).divide(2)).move(0,0)}}}),i.extend(i.Circle,i.FX,{rx:function(t){return this.attr("r",t)},ry:function(t){return this.rx(t)}}),i.Ellipse=i.invent({create:"ellipse",inherit:i.Shape,construct:{ellipse:function(t,e){return this.put(new i.Ellipse).size(t,e).move(0,0)}}}),i.extend(i.Ellipse,i.Rect,i.FX,{rx:function(t){return this.attr("rx",t)},ry:function(t){return this.attr("ry",t)}}),i.extend(i.Circle,i.Ellipse,{x:function(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())},y:function(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())},cx:function(t){return null==t?this.attr("cx"):this.attr("cx",t)},cy:function(t){return null==t?this.attr("cy"):this.attr("cy",t)},width:function(t){return null==t?2*this.rx():this.rx(new i.Number(t).divide(2))},height:function(t){return null==t?2*this.ry():this.ry(new i.Number(t).divide(2))},size:function(t,e){var s=p(this,t,e);return this.rx(new i.Number(s.width).divide(2)).ry(new i.Number(s.height).divide(2))}}),i.Line=i.invent({create:"line",inherit:i.Shape,extend:{array:function(){return new i.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(t,e,s,n){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:s,y2:n}:new i.PointArray(t).toLine(),this.attr(t))},move:function(t,e){return this.attr(this.array().move(t,e).toLine())},size:function(t,e){var i=p(this,t,e);return this.attr(this.array().size(i.width,i.height).toLine())}},construct:{line:function(t,e,s,n){return i.Line.prototype.plot.apply(this.put(new i.Line),null!=t?[t,e,s,n]:[0,0,0,0])}}}),i.Polyline=i.invent({create:"polyline",inherit:i.Shape,construct:{polyline:function(t){return this.put(new i.Polyline).plot(t||new i.PointArray)}}}),i.Polygon=i.invent({create:"polygon",inherit:i.Shape,construct:{polygon:function(t){return this.put(new i.Polygon).plot(t||new i.PointArray)}}}),i.extend(i.Polyline,i.Polygon,{array:function(){return this._array||(this._array=new i.PointArray(this.attr("points")))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new i.PointArray(t))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},size:function(t,e){var i=p(this,t,e);return this.attr("points",this.array().size(i.width,i.height))}}),i.extend(i.Line,i.Polyline,i.Polygon,{morphArray:i.PointArray,x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},width:function(t){var e=this.bbox();return null==t?e.width:this.size(t,e.height)},height:function(t){var e=this.bbox();return null==t?e.height:this.size(e.width,t)}}),i.Path=i.invent({create:"path",inherit:i.Shape,extend:{morphArray:i.PathArray,array:function(){return this._array||(this._array=new i.PathArray(this.attr("d")))},plot:function(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new i.PathArray(t))},clear:function(){return delete this._array,this}},construct:{path:function(t){return this.put(new i.Path).plot(t||new i.PathArray)}}}),i.Image=i.invent({create:"image",inherit:i.Shape,extend:{load:function(e){if(!e)return this;var s=this,n=new t.Image;return i.on(n,"load",function(){i.off(n);var t=s.parent(i.Pattern);null!==t&&(0==s.width()&&0==s.height()&&s.size(n.width,n.height),t&&0==t.width()&&0==t.height()&&t.size(s.width(),s.height()),"function"==typeof s._loaded&&s._loaded.call(s,{width:n.width,height:n.height,ratio:n.width/n.height,url:e}))}),i.on(n,"error",function(t){i.off(n),"function"==typeof s._error&&s._error.call(s,t)}),this.attr("href",n.src=this.src=e,i.xlink)},loaded:function(t){return this._loaded=t,this},error:function(t){return this._error=t,this}},construct:{image:function(t,e,s){return this.put(new i.Image).load(t).size(e||0,s||e||0)}}}),i.Text=i.invent({create:function(){this.constructor.call(this,i.create("text")),this.dom.leading=new i.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",i.defaults.attrs["font-family"])},inherit:i.Shape,extend:{x:function(t){return null==t?this.attr("x"):this.attr("x",t)},text:function(t){if(void 0===t){t="";for(var e=this.node.childNodes,s=0,n=e.length;s<n;++s)0!=s&&3!=e[s].nodeType&&1==i.adopt(e[s]).dom.newLined&&(t+="\n"),t+=e[s].textContent;return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else{s=0;for(var r=(t=t.split("\n")).length;s<r;s++)this.tspan(t[s]).newLine()}return this.build(!1).rebuild()},size:function(t){return this.attr("font-size",t).rebuild()},leading:function(t){return null==t?this.dom.leading:(this.dom.leading=new i.Number(t),this.rebuild())},lines:function(){var t=(this.textPath&&this.textPath()||this).node,e=i.utils.map(i.utils.filterSVGElements(t.childNodes),function(t){return i.adopt(t)});return new i.Set(e)},rebuild:function(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){var e=this,s=0,n=this.dom.leading*new i.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(e.textPath()||this.attr("x",e.attr("x")),"\n"==this.text()?s+=n:(this.attr("dy",n+s),s=0))}),this.fire("rebuild")}return this},build:function(t){return this._build=!!t,this},setData:function(t){return this.dom=t,this.dom.leading=new i.Number(t.leading||1.3),this}},construct:{text:function(t){return this.put(new i.Text).text(t)},plain:function(t){return this.put(new i.Text).plain(t)}}}),i.Tspan=i.invent({create:"tspan",inherit:i.Shape,extend:{text:function(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?t.call(this,this):this.plain(t),this)},dx:function(t){return this.attr("dx",t)},dy:function(t){return this.attr("dy",t)},newLine:function(){var t=this.parent(i.Text);return this.dom.newLined=!0,this.dy(t.dom.leading*t.attr("font-size")).attr("x",t.x())}}}),i.extend(i.Text,i.Tspan,{plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(e.createTextNode(t)),this},tspan:function(t){var e=(this.textPath&&this.textPath()||this).node,s=new i.Tspan;return!1===this._build&&this.clear(),e.appendChild(s.node),s.text(t)},clear:function(){for(var t=(this.textPath&&this.textPath()||this).node;t.hasChildNodes();)t.removeChild(t.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),i.TextPath=i.invent({create:"textPath",inherit:i.Parent,parent:i.Text,construct:{morphArray:i.PathArray,array:function(){var t=this.track();return t?t.array():null},plot:function(t){var e=this.track(),i=null;return e&&(i=e.plot(t)),null==t?i:this},track:function(){var t=this.textPath();if(t)return t.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return i.adopt(this.node.firstChild)}}}),i.Nested=i.invent({create:function(){this.constructor.call(this,i.create("svg")),this.style("overflow","visible")},inherit:i.Container,construct:{nested:function(){return this.put(new i.Nested)}}});var l={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"==e?t:t+"-"+e}};function c(t,e,s,n){return s+n.replace(i.regex.dots," .")}function h(t){return t.toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function d(t){return t.charAt(0).toUpperCase()+t.slice(1)}function u(t){var e=t.toString(16);return 1==e.length?"0"+e:e}function p(t,e,i){if(null==e||null==i){var s=t.bbox();null==e?e=s.width/s.height*i:null==i&&(i=s.height/s.width*e)}return{width:e,height:i}}function f(t,e,i){return{x:e*t.a+i*t.c+0,y:e*t.b+i*t.d+0}}function g(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}function m(e){for(var s=e.childNodes.length-1;s>=0;s--)e.childNodes[s]instanceof t.SVGElement&&m(e.childNodes[s]);return i.adopt(e).id(i.eid(e.nodeName))}function x(t){return Math.abs(t)>1e-37?t:0}["fill","stroke"].forEach(function(t){var e={};e[t]=function(e){if(void 0===e)return this;if("string"==typeof e||i.Color.isRgb(e)||e&&"function"==typeof e.fill)this.attr(t,e);else for(var s=l[t].length-1;s>=0;s--)null!=e[l[t][s]]&&this.attr(l.prefix(t,l[t][s]),e[l[t][s]]);return this},i.extend(i.Element,i.FX,e)}),i.extend(i.Element,i.FX,{translate:function(t,e){return this.transform({x:t,y:e})},matrix:function(t){return this.attr("transform",new i.Matrix(6==arguments.length?[].slice.call(arguments):t))},opacity:function(t){return this.attr("opacity",t)},dx:function(t){return this.x(new i.Number(t).plus(this instanceof i.FX?0:this.x()),!0)},dy:function(t){return this.y(new i.Number(t).plus(this instanceof i.FX?0:this.y()),!0)}}),i.extend(i.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(t){return this.node.getPointAtLength(t)}}),i.Set=i.invent({create:function(t){Array.isArray(t)?this.members=t:this.clear()},extend:{add:function(){for(var t=[].slice.call(arguments),e=0,i=t.length;e<i;e++)this.members.push(t[e]);return this},remove:function(t){var e=this.index(t);return e>-1&&this.members.splice(e,1),this},each:function(t){for(var e=0,i=this.members.length;e<i;e++)t.apply(this.members[e],[e,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(t){return this.index(t)>=0},index:function(t){return this.members.indexOf(t)},get:function(t){return this.members[t]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)}
vendor: 2,210 bytes, line 2
2,valueOf:function(){return this.members}},construct:{set:function(t){return new i.Set(t)}}}),i.FX.Set=i.invent({create:function(t){this.set=t}}),i.Set.inherit=function(){var t=[];for(var e in i.Shape.prototype)"function"==typeof i.Shape.prototype[e]&&"function"!=typeof i.Set.prototype[e]&&t.push(e);for(var e in t.forEach(function(t){i.Set.prototype[t]=function(){for(var e=0,s=this.members.length;e<s;e++)this.members[e]&&"function"==typeof this.members[e][t]&&this.members[e][t].apply(this.members[e],arguments);return"animate"==t?this.fx||(this.fx=new i.FX.Set(this)):this}}),t=[],i.FX.prototype)"function"==typeof i.FX.prototype[e]&&"function"!=typeof i.FX.Set.prototype[e]&&t.push(e);t.forEach(function(t){i.FX.Set.prototype[t]=function(){for(var e=0,i=this.set.members.length;e<i;e++)this.set.members[e].fx[t].apply(this.set.members[e].fx,arguments);return this}})},i.extend(i.Element,{}),i.extend(i.Element,{remember:function(t,e){if("object"===n(arguments[0]))for(var i in t)this.remember(i,t[i]);else{if(1==arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory||(this._memory={})}}),i.get=function(t){var s=e.getElementById(function(t){var e=(t||"").toString().match(i.regex.reference);if(e)return e[1]}(t)||t);return i.adopt(s)},i.select=function(t,s){return new i.Set(i.utils.map((s||e).querySelectorAll(t),function(t){return i.adopt(t)}))},i.extend(i.Parent,{select:function(t){return i.select(t,this.node)}});var b="abcdef".split("");if("function"!=typeof t.CustomEvent){var y=function(t,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var s=e.createEvent("CustomEvent");return s.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),s};y.prototype=t.Event.prototype,i.CustomEvent=y}else i.CustomEvent=t.CustomEvent;return i},"object"===n(e)?t.exports=Bt.document?jt(Bt,Bt.document):function(t){return jt(t,t.document)}:Bt.SVG=jt(Bt,Bt.document),function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"Backgroun
2dImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(t,e){return this.add(t,e),!t.attr("in")&&this.autoSetIn&&t.attr("in",this.source),t.attr("result")||t.attr("result",t),t},blend:function(t,e,i){return this.put(new SVG.BlendEffect(t,e,i))},colorMatrix:function(t,e){return this.put(new SVG.ColorMatrixEffect(t,e))},convolveMatrix:function(t){return this.put(new SVG.ConvolveMatrixEffect(t))},componentTransfer:function(t){return this.put(new SVG.ComponentTransferEffect(t))},composite:function(t,e,i){return this.put(new SVG.CompositeEffect(t,e,i))},flood:function(t,e){return this.put(new SVG.FloodEffect(t,e))},offset:function(t,e){return this.put(new SVG.OffsetEffect(t,e))},image:function(t){return this.put(new SVG.ImageEffect(t))},merge:function(){var t=[void 0];for(var e in arguments)t.push(arguments[e]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,t)))},gaussianBlur:function(t,e){return this.put(new SVG.GaussianBlurEffect(t,e))},morphology:function(t,e){return this.put(new SVG.MorphologyEffect(t,e))},diffuseLighting:function(t,e,i){return this.put(new SVG.DiffuseLightingEffect(t,e,i))},displacementMap:function(t,e,i,s,n){return this.put(new SVG.DisplacementMapEffect(t,e,i,s,n))},specularLighting:function(t,e,i,s){return this.put(new SVG.SpecularLightingEffect(t,e,i,s))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(t,e,i,s,n){return this.put(new SVG.TurbulenceEffect(t,e,i,s,n))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(t){var e=this.put(new SVG.Filter);return"function"==typeof t&&t.call(e,e),e}}),SVG.extend(SVG.Container,{filter:function(t){return this.defs().filter(t)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(t){return this.filterer=t instanceof SVG.Element?t:this.doc().filter(t),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(t){return this.filterer&&!0===t&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}});var t={blend:function(t,e){return this.parent()&&this.parent().blend(this,t,e)},colorMatrix:function(t,e){return this.parent()&&this.parent().colorMatrix(t,e).in(this)},convolveMatrix:function(t){return this.parent()&&this.parent().convolveMatrix(t).in(this)},componentTransfer:function(t){return this.parent()&&this.parent().componentTransfer(t).in(this)},composite:function(t,e){return this.parent()&&this.parent().composite(this,t,e)},flood:function(t,e){return this.parent()&&this.parent().flood(t,e)},offset:function(t,e){return this.parent()&&this.parent().offset(t,e).in(this)},image:function(t){return this.parent()&&this.parent().image(t)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(t,e){return this.parent()&&this.parent().gaussianBlur(t,e).in(this)},morphology:function(t,e){return this.parent()&&this.parent().morphology(t,e).in(this)},diffuseLighting:function(t,e,i){return this.parent()&&this.parent().diffuseLighting(t,e,i).in(this)},displacementMap:function(t,e,i,s){return this.parent()&&this.parent().displacementMap(this,t,e,i,s)},specularLighting:function(t,e,i,s){return this.parent()&&this.parent().specularLighting(t,e,i,s).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)}
vendor: 10,875 bytes, line 2
2,turbulence:function(t,e,i,s,n){return this.parent()&&this.parent().turbulence(t,e,i,s,n).in(this)}};SVG.extend(SVG.Effect,t),SVG.extend(SVG.ParentEffect,t),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){this.attr("in",t)}}});var e={blend:function(t,e,i){this.attr({in:t,in2:e,mode:i||"normal"})},colorMatrix:function(t,e){"matrix"==t&&(e=n(e)),this.attr({type:t,values:void 0===e?null:e})},convolveMatrix:function(t){t=n(t),this.attr({order:Math.sqrt(t.split(" ").length),kernelMatrix:t})},composite:function(t,e,i){this.attr({in:t,in2:e,operator:i})},flood:function(t,e){this.attr("flood-color",t),null!=e&&this.attr("flood-opacity",e)},offset:function(t,e){this.attr({dx:t,dy:e})},image:function(t){this.attr("href",t,SVG.xlink)},displacementMap:function(t,e,i,s,n){this.attr({in:t,in2:e,scale:i,xChannelSelector:s,yChannelSelector:n})},gaussianBlur:function(t,e){null!=t||null!=e?this.attr("stdDeviation",function(t){if(!Array.isArray(t))return t;for(var e=0,i=t.length,s=[];e<i;e++)s.push(t[e]);return s.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(t,e){this.attr({operator:t,radius:e})},tile:function(){},turbulence:function(t,e,i,s,n){this.attr({numOctaves:e,seed:i,stitchTiles:s,baseFrequency:t,type:n})}},i={merge:function(){var t;if(arguments[0]instanceof SVG.Set){var e=this;arguments[0].each(function(t){this instanceof SVG.MergeNode?e.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&e.put(new SVG.MergeNode(this))})}else{t=Array.isArray(arguments[0])?arguments[0]:arguments;for(var i=0;i<t.length;i++)t[i]instanceof SVG.MergeNode?this.put(t[i]):this.put(new SVG.MergeNode(t[i]))}},componentTransfer:function(t){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(t){this[t]=new(SVG["Func"+t.toUpperCase()])("identity"),this.rgb.add(this[t]),this.node.appendChild(this[t].node)}.bind(this)),t)for(var e in t.rgb&&(["r","g","b"].forEach(function(e){this[e].attr(t.rgb)}.bind(this)),delete t.rgb),t)this[e].attr(t[e])},diffuseLighting:function(t,e,i){this.attr({surfaceScale:t,diffuseConstant:e,kernelUnitLength:i})},specularLighting:function(t,e,i,s){this.attr({surfaceScale:t,diffuseConstant:e,specularExponent:i,kernelUnitLength:s})}},s={distantLight:function(t,e){this.attr({azimuth:t,elevation:e})},pointLight:function(t,e,i){this.attr({x:t,y:e,z:i})},spotLight:function(t,e,i,s,n,r){this.attr({x:t,y:e,z:i,pointsAtX:s,pointsAtY:n,pointsAtZ:r})},mergeNode:function(t){this.attr("in",t)}};function n(t){return Array.isArray(t)&&(t=new SVG.Array(t)),t.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function r(){var t=function(){};for(var e in"function"==typeof arguments[arguments.length-1]&&(t=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var i in arguments[e])t(arguments[e][i],i,arguments[e])}["r","g","b","a"].forEach(function(t){s["Func"+t.toUpperCase()]=function(t){switch(this.attr("type",t),t){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}}),r(e,function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})}),r(i,function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})}),r(s,function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})}),SVG.extend(SVG.MergeEffect,{in:function(t){return t instanceof SVG.MergeNode?this.add(t,0):this.add(new SVG.MergeNode(t),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",t)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}.call(void 0),function(){function t(t,n,r,o,a,l,c){for(var h=t.slice(n,r||c),d=o.slice(a,l||c),u=0,p={pos:[0,0],start:[0,0]},f={pos:[0,0],start:[0,0]};h[u]=e.call(p,h[u]),d[u]=e.call(f,d[u]),h[u][0]!=d[u][0]||"M"==h[u][0]||"A"==h[u][0]&&(h[u][4]!=d[u][4]||h[u][5]!=d[u][5])?(Array.prototype.splice.apply(h,[u,1].concat(s.call(p,h[u]))),Array.prototype.splice.apply(d,[u,1].concat(s.call(f,d[u])))):(h[u]=i.call(p,h[u]),d[u]=i.call(f,d[u])),++u!=h.length||u!=d.length;)u==h.length&&h.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]),u==d.length&&d.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]);return{start:h,dest:d}}function e(t){switch(t[0]){case"z":case"Z":t[0]="L",t[1]=this.start[0],t[2]=this.start[1];break;case"H":t[0]="L",t[2]=this.pos[1];break;case"V":t[0]="L",t[2]=t[1],t[1]=this.pos[0];break;case"T":t[0]="Q",t[3]=t[1],t[4]=t[2],t[1]=this.reflection[1],t[2]=this.reflection[0];break;case"S":t[0]="C",t[6]=t[4],t[5]=t[3],t[4]=t[2],t[3]=t[1],t[2]=this.reflection[1],t[1]=this.reflection[0]}return t}function i(t){var e=t.length;return this.pos=[t[e-2],t[e-1]],-1!="SCQT".indexOf(t[0])&&(this.reflection=[2*this.pos[0]-t[e-4],2*this.pos[1]-t[e-3]]),t}function s(t){var e=[t];switch(t[0]){case"M":return this.pos=this.start=[t[1],t[2]],e;case"L":t[5]=t[3]=t[1],t[6]=t[4]=t[2],t[1]=this.pos[0],t[2]=this.pos[1];break;case"Q":t[6]=t[4],t[5]=t[3],t[4]=1*t[4]/3+2*t[2]/3,t[3]=1*t[3]/3+2*t[1]/3,t[2]=1*this.pos[1]/3+2*t[2]/3,t[1]=1*this.pos[0]/3+2*t[1]/3;break;case"A":t=(e=function(t,e){var i,s,n,r,o,a,l,c,h,d,u,p,f,g,m,x,b,y,v,w,S,k,C,A,E,M,T=Math.abs(e[1]),P=Math.abs(e[2]),O=e[3]%360,L=e[4],_=e[5],I=e[6],D=e[7],R=new SVG.Point(t),N=new SVG.Point(I,D),B=[];if(0===T||0===P||R.x===N.x&&R.y===N.y)return[["C",R.x,R.y,N.x,N.y,N.x,N.y]];for((s=(i=new SVG.Point((R.x-N.x)/2,(R.y-N.y)/2).transform((new SVG.Matrix).rotate(O))).x*i.x/(T*T)+i.y*i.y/(P*P))>1&&(T*=s=Math.sqrt(s),P*=s),n=(new SVG.Matrix).rotate(O).scale(1/T,1/P).rotate(-O),R=R.transform(n),a=(r=[(N=N.transform(n)).x-R.x,N.y-R.y])[0]*r[0]+r[1]*r[1],o=Math.sqrt(a),r[0]/=o,r[1]/=o,l=a<4?Math.sqrt(1-a/4):0,L===_&&(l*=-1),c=new SVG.Point((N.x+R.x)/2+l*-r[1],(N.y+R.y)/2+l*r[0]),h=new SVG.Point(R.x-c.x,R.y-c.y),d=new SVG.Point(N.x-c.x,N.y-c.y),u=Math.acos(h.x/Math.sqrt(h.x*h.x+h.y*h.y)),h.y<0&&(u*=-1),p=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(p*=-1),_&&u>p&&(p+=2*Math.PI),!_&&u<p&&(p-=2*Math.PI),x=[],b=u,f=(p-u)/(g=Math.ceil(2*Math.abs(u-p)/Math.PI)),m=4*Math.tan(f/4)/3,S=0;S<=g;S++)v=Math.cos(b),y=Math.sin(b),w=new SVG.Point(c.x+v,c.y+y),x[S]=[new SVG.Point(w.x+m*y,w.y-m*v),w,new SVG.Point(w.x-m*y,w.y+m*v)],b+=f;for(x[0][0]=x[0][1].clone(),x[x.length-1][2]=x[x.length-1][1].clone(),n=(new SVG.Matrix).rotate(O).scale(T,P).rotate(-O),S=0,k=x.length;S<k;S++)x[S][0]=x[S][0].transform(n),x[S][1]=x[S][1].transform(n),x[S][2]=x[S][2].transform(n);for(S=1,k=x.length;S<k;S++)C=(w=x[S-1][2]).x,A=w.y,E=(w=x[S][0]).x,M=w.y,I=(w=x[S][1]).x,D=w.y,B.push(["C",C,A,E,M,I,D]);return B}(this.pos,t))[0]}return t[0]="C",this.pos=[t[5],t[6]],this.reflection=[2*t[5]-t[3],2*t[6]-t[4]],e}function n(t,e){if(!1===e)return!1;for(var i=e,s=t.length;i<s;++i)if("M"==t[i][0])return i;return!1}SVG.extend(SVG.PathArray,{morph:function(e){for(var i=this.value,s=this.parse(e),r=0,o=0,a=!1,l=!1;!1!==r||!1!==o;){var c;a=n(i,!1!==r&&r+1),l=n(s,!1!==o&&o+1),!1===r&&(r=0==(c=new SVG.PathArray(h.start).bbox()).height||0==c.width?i.push(i[0])-1:i.push(["M",c.x+c.width/2,c.y+c.height/2])-1),!1===o&&(o=0==(c=new SVG.PathArray(h.dest).bbox()).height||0==c.width?s.push(s[0])-1:s.push(["M",c.x+c.width/2,c.y+c.height/2])-1);var h=t(i,r,a,s,o,l);i=i.slice(0,r).concat(h.start,!1===a?[]:i.slice(a)),s=s.slice(0,o).concat(h.dest,!1===l?[]:s.slice(l)),r=!1!==a&&r+h.start.length,o=!1!==l&&o+h.dest.length}return this.value=i,this.destination=new SVG.PathArray,this.destination.value=s,this}})}(),function(){function t(t){t.remember("_draggable",this),this.el=t}t.prototype.init=function(t,e){var i=this;this.constraint=t,this.value=e,this.el.on("mousedown.drag",function(t){i.start(t)}),this.el.on("touchstart.drag",function(t){i.start(t)})},t.prototype.transformPoint=function(t,e){var i=(t=t||window.event).changedTouches&&t.changedTouches[0]||t;return this.p.x=i.clientX-(e||0),this.p.y=i.clientY,this.p.matrixTransform(this.m)},t.prototype.getBBox=function(){var t=this.el.bbox();return this.el instanceof SVG.Nested&&(t=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(t.x=this.el.x(),t.y=this.el.y()),t},t.prototype.start=function(t){if("click"!=t.type&&"mousedown"!=t.type&&"mousemove"!=t.type||1==(t.which||t.buttons)){var e=this;if(this.el.fire("beforedrag",{event:t,handler:this}),!this.el.event().defaultPrevented){t.preventDefault(),t.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var i,s=this.getBBox();if(this.el instanceof SVG.Text)switch(i=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":i/=2;break;case"start":i=0}this.startPoints={point:this.transformPoint(t,i),box:s,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(t){e.drag(t)}),SVG.on(window,"touchmove.drag",function(t){e.drag(t)}),SVG.on(window,"mouseup.drag",function(t){e.end(t)}),SVG.on(window,"touchend.drag",function(t){e.end(t)}),this.el.fire("dragstart",{event:t,p:this.startPoints.point,m:this.m,handler:this})}}},t.prototype.drag=function(t){var e=this.getBBox(),i=this.transformPoint(t),s=this.startPoints.box.x+i.x-this.startPoints.point.x,n=this.startPoints.box.y+i.y-this.startPoints.point.y,r=this.constraint,o=i.x-this.startPoints.point.x,a=i.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:t,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented)return i;if("function"==typeof r){var l=r.call(this.el,s,n,this.m);"boolean"==typeof l&&(l={x:l,y:l}),!0===l.x?this.el.x(s):!1!==l.x&&this.el.x(l.x),!0===l.y?this.el.y(n):!1!==l.y&&this.el.y(l.y)}else"object"==typeof r&&(null!=r.minX&&s<r.minX?o=(s=r.minX)-this.startPoints.box.x:null!=r.maxX&&s>r.maxX-e.width&&(o=(s=r.maxX-e.width)-this.startPoints.box.x),null!=r.minY&&n<r.minY?a=(n=r.minY)-this.startPoints.box.y:null!=r.maxY&&n>r.maxY-e.height&&(a=(n=r.maxY-e.height)-this.startPoints.box.y),null!=r.snapToGri
vendor: 9,332 bytes, line 2
2d&&(s-=s%r.snapToGrid,n-=n%r.snapToGrid,o-=o%r.snapToGrid,a-=a%r.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:o,y:a},!0):this.el.move(s,n));return i},t.prototype.end=function(t){var e=this.drag(t);this.el.fire("dragend",{event:t,p:e,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(e,i){"function"!=typeof e&&"object"!=typeof e||(i=e,e=!0);var s=this.remember("_draggable")||new t(this);return(e=void 0===e||e)?s.init(i||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function t(t){this.el=t,t.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(t,e,i){var s="string"!=typeof t?t:e[t];return i?s/2:s},this.pointCoords=function(t,e){var i=this.pointsList[t];return{x:this.pointCoord(i[0],e,"t"===t||"b"===t),y:this.pointCoord(i[1],e,"r"===t||"l"===t)}}}t.prototype.init=function(t,e){var i=this.el.bbox();this.options={};var s=this.el.selectize.defaults.points;for(var n in this.el.selectize.defaults)this.options[n]=this.el.selectize.defaults[n],void 0!==e[n]&&(this.options[n]=e[n]);var r=["points","pointsExclude"];for(var n in r){var o=this.options[r[n]];"string"==typeof o?o=o.length>0?o.split(/\s*,\s*/i):[]:"boolean"==typeof o&&"points"===r[n]&&(o=o?s:[]),this.options[r[n]]=o}this.options.points=[s,this.options.points].reduce(function(t,e){return t.filter(function(t){return e.indexOf(t)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(t,e){return t.filter(function(t){return e.indexOf(t)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(t):this.selectRect(t),this.observe(),this.cleanup()},t.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},t.prototype.getPointArray=function(){var t=this.el.bbox();return this.el.array().valueOf().map(function(e){return[e[0]-t.x,e[1]-t.y]})},t.prototype.drawPoints=function(){for(var t=this,e=this.getPointArray(),i=0,s=e.length;i<s;++i){var n=function(e){return function(i){(i=i||window.event).preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation();var s=i.pageX||i.touches[0].pageX,n=i.pageY||i.touches[0].pageY;t.el.fire("point",{x:s,y:n,i:e,event:i})}}(i),r=this.drawPoint(e[i][0],e[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",n).on("mousedown",n);this.pointSelection.set.add(r)}},t.prototype.drawPoint=function(t,e){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(t,e);case"rect":return this.drawRect(t,e);default:if("function"==typeof i)return i.call(this,t,e);throw new Error("Unknown "+i+" point type!")}},t.prototype.drawCircle=function(t,e){return this.nested.circle(this.options.pointSize).center(t,e)},t.prototype.drawRect=function(t,e){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(t,e)},t.prototype.updatePointSelection=function(){var t=this.getPointArray();this.pointSelection.set.each(function(e){this.cx()===t[e][0]&&this.cy()===t[e][1]||this.center(t[e][0],t[e][1])})},t.prototype.updateRectSelection=function(){var t=this,e=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:e.width,height:e.height}),this.options.points.length&&this.options.points.map(function(i,s){var n=t.pointCoords(i,e);t.rectSelection.set.get(s+1).center(n.x,n.y)}),this.options.rotationPoint){var i=this.rectSelection.set.length();this.rectSelection.set.get(i-1).center(e.width/2,20)}},t.prototype.selectRect=function(t){var e=this,i=this.el.bbox();function s(t){return function(i){(i=i||window.event).preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation();var s=i.pageX||i.touches[0].pageX,n=i.pageY||i.touches[0].pageY;e.el.fire(t,{x:s,y:n,event:i})}}if(this.rectSelection.isSelected=t,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(i.width,i.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map(function(t,n){var r=e.pointCoords(t,i),o=e.drawPoint(r.x,r.y).attr("class",e.options.classPoints+"_"+t).on("mousedown",s(t)).on("touchstart",s(t));e.rectSelection.set.add(o)}),this.rectSelection.set.each(function(){this.addClass(e.options.classPoints)})),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var n=function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation();var i=t.pageX||t.touches[0].pageX,s=t.pageY||t.touches[0].pageY;e.el.fire("rot",{x:i,y:s,event:t})},r=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",n).on("mousedown",n);this.rectSelection.set.add(r)}},t.prototype.handler=function(){var t=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(t.x,t.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},t.prototype.observe=function(){var t=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver(function(){t.handler()}),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch{}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",function(){t.handler()})},t.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each(function(){this.remove()}),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each(function(){this.remove()}),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(e,i){return"object"==typeof e&&(i=e,e=!0),(this.remember("_selectHandler")||new t(this)).init(void 0===e||e,i||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function t(t){t.remember("_resizeHandler",this),this.el=t,this.parameters={},this.lastUpdateCall=null,this.p=t.doc().node.createSVGPoint()}t.prototype.transformPoint=function(t,e,i){return this.p.x=t-(this.offset.x-window.pageXOffset),this.p.y=e-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},t.prototype._extractPosition=function(t){return{x:null!=t.clientX?t.clientX:t.touches[0].clientX,y:null!=t.clientY?t.clientY:t.touches[0].clientY}},t.prototype.init=function(t){var e=this;if(this.stop(),"stop"!==t){for(var i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],void 0!==t[i]&&(this.options[i]=t[i]);this.el.on("lt.resize",function(t){e.resize(t||window.event)}),this.el.on("rt.resize",function(t){e.resize(t||window.event)}),this.el.on("rb.resize",function(t){e.resize(t||window.event)}),this.el.on("lb.resize",function(t){e.resize(t||window.event)}),this.el.on("t.resize",function(t){e.resize(t||window.event)}),this.el.on("r.resize",function(t){e.resize(t||window.event)}),this.el.on("b.resize",function(t){e.resize(t||window.event)}),this.el.on("l.resize",function(t){e.resize(t||window.event)}),this.el.on("rot.resize",function(t){e.resize(t||window.event)}),this.el.on("point.resize",function(t){e.resize(t||window.event)}),this.update()}},t.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},t.prototype.resize=function(t){var e=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var i=this._extractPosition(t.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:t.detail.x,y:t.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},"text"===this.el.type&&(this.parameters.fontSize=this.el.attr()["font-size"]),void 0!==t.detail.i){var s=this.el.array().valueOf();this.parameters.i=t.detail.i,this.parameters.pointCoords=[s[t.detail.i][0],s[t.detail.i][1]]}switch(t.type){case"lt":this.calc=function(t,e){var i=this.snapToGri
vendor: 4,541 bytes, line 2
2d(t,e);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y+i[1]).size(this.parameters.box.width-i[0],this.parameters.box.height-i[1])}};break;case"rt":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).size(this.parameters.box.width+i[0],this.parameters.box.height-i[1])}};break;case"rb":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+i[0],this.parameters.box.height+i[1])}};break;case"lb":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).size(this.parameters.box.width-i[0],this.parameters.box.height+i[1])}};break;case"t":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).height(this.parameters.box.height-i[1])}};break;case"r":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+i[0])}};break;case"b":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+i[1])}};break;case"l":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).width(this.parameters.box.width-i[0])}};break;case"rot":this.calc=function(t,e){var i=t+this.parameters.p.x,s=e+this.parameters.p.y,n=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),r=Math.atan2(s-this.parameters.box.y-this.parameters.box.height/2,i-this.parameters.box.x-this.parameters.box.width/2),o=this.parameters.rotation+180*(r-n)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(o-o%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(t,e){var i=this.snapToGrid(t,e,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),s=this.el.array().valueOf();s[this.parameters.i][0]=this.parameters.pointCoords[0]+i[0],s[this.parameters.i][1]=this.parameters.pointCoords[1]+i[1],this.el.plot(s)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:t}),SVG.on(window,"touchmove.resize",function(t){e.update(t||window.event)}),SVG.on(window,"touchend.resize",function(){e.done()}),SVG.on(window,"mousemove.resize",function(t){e.update(t||window.event)}),SVG.on(window,"mouseup.resize",function(){e.done()})},t.prototype.update=function(t){if(t){var e=this._extractPosition(t),i=this.transformPoint(e.x,e.y),s=i.x-this.parameters.p.x,n=i.y-this.parameters.p.y;this.lastUpdateCall=[s,n],this.calc(s,n),this.el.fire("resizing",{dx:s,dy:n,event:t})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},t.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")}
vendor: 5,473 bytes, line 2
2,t.prototype.snapToGrid=function(t,e,i,s){var n;return void 0!==s?n=[(i+t)%this.options.snapToGrid,(s+e)%this.options.snapToGrid]:(i=i??3,n=[(this.parameters.box.x+t+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+e+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),t<0&&(n[0]-=this.options.snapToGrid),e<0&&(n[1]-=this.options.snapToGrid),t-=Math.abs(n[0])<this.options.snapToGrid/2?n[0]:n[0]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),e-=Math.abs(n[1])<this.options.snapToGrid/2?n[1]:n[1]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(t,e,i,s)},t.prototype.constraintToBox=function(t,e,i,s){var n,r,o=this.options.constraint||{};return void 0!==s?(n=i,r=s):(n=this.parameters.box.x+(1&i?0:this.parameters.box.width),r=this.parameters.box.y+(2&i?0:this.parameters.box.height)),void 0!==o.minX&&n+t<o.minX&&(t=o.minX-n),void 0!==o.maxX&&n+t>o.maxX&&(t=o.maxX-n),void 0!==o.minY&&r+e<o.minY&&(e=o.minY-r),void 0!==o.maxY&&r+e>o.maxY&&(e=o.maxY-r),[t,e]},t.prototype.checkAspectRatio=function(t,e){if(!this.options.saveAspectRatio)return t;var i=t.slice(),s=this.parameters.box.width/this.parameters.box.height,n=this.parameters.box.width+t[0],r=this.parameters.box.height-t[1],o=n/r;return o<s?(i[1]=n/s-this.parameters.box.height,e&&(i[1]=-i[1])):o>s&&(i[0]=this.parameters.box.width-r*s,e&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new t(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),void 0===window.Apex&&(window.Apex={});var Wt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new y(this.ctx),this.ctx.axes=new Q(this.ctx),this.ctx.core=new Ht(this.ctx.el,this.ctx),this.ctx.config=new R({}),this.ctx.data=new W(this.ctx),this.ctx.grid=new U(this.ctx),this.ctx.graphics=new w(this.ctx),this.ctx.coreUtils=new S(this.ctx),this.ctx.crosshairs=new tt(this.ctx),this.ctx.events=new Z(this.ctx),this.ctx.exports=new V(this.ctx),this.ctx.localization=new J(this.ctx),this.ctx.options=new T,this.ctx.responsive=new et(this.ctx),this.ctx.series=new X(this.ctx),this.ctx.theme=new it(this.ctx),this.ctx.formatters=new L(this.ctx),this.ctx.titleSubtitle=new st(this.ctx),this.ctx.legend=new ht(this.ctx),this.ctx.toolbar=new dt(this.ctx),this.ctx.tooltip=new yt(this.ctx),this.ctx.dimensions=new lt(this.ctx),this.ctx.updateHelpers=new Xt(this.ctx),this.ctx.zoomPanSelection=new ut(this.ctx),this.ctx.w.globals.tooltip=new yt(this.ctx)}}]),t}(),Yt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return a(t,[{key:"clear",value:function(t){var e=t.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:e})}},{key:"killSVG",value:function(t){t.each(function(t,e){this.removeClass("*"),this.off(),this.stop()},!0),t.ungroup(),t.clear()}},{key:"clearDomElements",value:function(t){var e=this,i=t.isUpdating,s=this.w.globals.dom.Paper.node;s.parentNode&&s.parentNode.parentNode&&!i&&(s.parentNode.parentNode.style.minHeight="unset");var n=this.w.globals.dom.baseEl;n&&this.ctx.eventList.forEach(function(t){n.removeEventListener(t,e.ctx.events.documentEvent)});var r=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(r.Paper),r.Paper.remove(),r.elWrap=null,r.elGraphical=null,r.elLegendWrap=null,r.elLegendForeign=null,r.baseEl=null,r.elGridRect=null,r.elGridRectMask=null,r.elGridRectMarkerMask=null,r.elForecastMask=null,r.elNonForecastMask=null,r.elDefs=null}}]),t}(),Vt=new WeakMap,Gt=function(){function t(e,i){r(this,t),this.opts=i,this.ctx=this,this.w=new B(i).init(),this.el=e,this.w.globals.cuid=b.randomId(),this.w.globals.chartID=this.w.config.chart.id?b.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Wt(this).initModules(),this.create=b.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return a(t,[{key:"render",value:function(){var t=this;return new Promise(function(e,i){if(null!==t.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),t.w.config.chart.id&&Apex._chartInstances.push({id:t.w.globals.chartID,group:t.w.config.chart.group,chart:t}),t.setLocale(t.w.config.chart.defaultLocale);
2var s=t.w.config.chart.events.beforeMount;if("function"==typeof s&&s(t,t.w),t.events.fireEvent("beforeMount",[t,t.w]),window.addEventListener("resize",t.windowResizeHandler),function(t,e){var i=!1;if(t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var s=t.getBoundingClientRect();"none"!==t.style.display&&0!==s.width||(i=!0)}var n=new ResizeObserver(function(s){i&&e.call(t,s),i=!0});t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(t.children).forEach(function(t){return n.observe(t)}):n.observe(t),Vt.set(e,n)}(t.el.parentNode,t.parentResizeHandler),!t.css){var n=t.el.getRootNode&&t.el.getRootNode(),r=b.is("ShadowRoot",n),o=t.el.ownerDocument,a=o.getElementById("apexcharts-css");if(r||!a){var l;t.css=document.createElement("style"),t.css.id="apexcharts-css",t.css.textContent='@keyframes opaque {\n  0% {\n      opacity: 0\n  }\n\n  to {\n      opacity: 1\n  }\n}\n\n@keyframes resizeanim {\n  0%,to {\n      opacity: 0\n  }\n}\n\n.apexcharts-canvas {\n  position: relative;\n  user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n  -webkit-appearance: none;\n  width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n  border-radius: 4px;\n  background-color: rgba(0,0,0,.5);\n  box-shadow: 0 0 1px rgba(255,255,255,.5);\n  -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)\n}\n\n.apexcharts-inner {\n  position: relative\n}\n\n.apexcharts-text tspan {\n  font-family: inherit\n}\n\n.legend-mouseover-inactive {\n  transition: .15s ease all;\n  opacity: .2\n}\n\n.apexcharts-legend-text {\n  padding-left: 15px;\n  margin-left: -15px;\n}\n\n.apexcharts-series-collapsed {\n  opacity: 0\n}\n\n.apexcharts-tooltip {\n  border-radius: 5px;\n  box-shadow: 2px 2px 6px -4px #999;\n  cursor: default;\n  font-size: 14px;\n  left: 62px;\n  opacity: 0;\n  pointer-events: none;\n  position: absolute;\n  top: 20px;\n  display: flex;\n  flex-direction: column;\n  overflow: hidden;\n  white-space: nowrap;\n  z-index: 12;\n  transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n  border: 1px solid #e3e3e3;\n  background: rgba(255,255,255,.96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n  color: #fff;\n  background: rgba(30,30,30,.8)\n}\n\n.apexcharts-tooltip * {\n  font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n  padding: 6px;\n  font-size: 15px;\n  margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n  background: #eceff1;\n  border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n  background: rgba(0,0,0,.7);\n  border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {\n  display: inline-block;\n  margin-left: 5px;\n  font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {\n  display: none\n}\n\n.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n  padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n  display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {\n  margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n  width: 12px;\n  height: 12px;\n  position: relative;\n  top: 0;\n  margin-right: 10px;\n  border-radius: 50%\n}\n\n.apexcharts-tooltip-series-group {\n  padding: 0 10px;\n  display: none;\n  text-align: left;\n  justify-content: left;\n  align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n  opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {\n  padding-bottom: 4px\n}\n\n.apexcharts-tooltip-series-group-hidden {\n  opacity: 0;\n  height: 0;\n  line-height: 0;\n  padding: 0!important\n}\n\n.apexcharts-tooltip-y-group {\n  padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,.apexcharts-tooltip-box {\n  padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n  display: flex;\n  flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n  margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n  font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n  padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n  font-weight: 600;\n  color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n  font-weight: 700;\n  display: block;\n  margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {\n  opacity: 0;\n  pointer-events: none;\n  color: #373d3f;\n  font-size: 13px;\n  text-align: center;\n  border-radius: 2px;\n  position: absolute;\n  z-index: 10;\n  background: #eceff1;\n  border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n  padding: 9px 10px;\n  transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n  background: rgba(0,0,0,.7);\n  border: 1px solid rgba(0,0,0,.5);\n  color: #fff\n}\n\n.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {\n  left: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n  border-color: transparent;\n  border-width: 6px;\n  margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n  border-color: transparent;\n  border-width: 7px;\n  margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {\n  bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {\n  top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n  border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n  border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n  border-bottom-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n  border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n  border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n  border-top-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n  padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n  background: rgba(0,0,0,.7);\n  border: 1px solid rgba(0,0,0,.5);\n  color: #fff\n}\n\n.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {\n  top: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n  border-color: transparent;\n  border-width: 6px;\n  margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n  border-color: transparent;\n  border-width: 7px;\n  margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {\n  left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {\n  right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n  border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n  border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n  border-left-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n  border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n  border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n  border-right-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n  opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n  display: none\n}
2\n\n.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {\n  pointer-events: none;\n  opacity: 0;\n  transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n  opacity: 0\n}\n\n.apexcharts-selection-rect {\n  cursor: move\n}\n\n.svg_select_boundingRect,.svg_select_points_rot {\n  pointer-events: none;\n  opacity: 0;\n  visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {\n  opacity: 0;\n  visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {\n  cursor: ew-resize;\n  opacity: 1;\n  visibility: visible\n}\n\n.svg_select_points {\n  fill: #efefef;\n  stroke: #333;\n  rx: 2\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n  cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n  cursor: move\n}\n\n.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n  cursor: pointer;\n  width: 20px;\n  height: 20px;\n  line-height: 24px;\n  color: #6e8192;\n  text-align: center\n}\n\n.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {\n  fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n  fill: #444;\n  transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n  fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n  fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n  fill: #333\n}\n\n.apexcharts-menu-icon,.apexcharts-selection-icon {\n  position: relative\n}\n\n.apexcharts-reset-icon {\n  margin-left: 5px\n}\n\n.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {\n  transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n  transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n  margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n  transform: scale(.62);\n  position: relative;\n  left: 1px;\n  top: 0\n}\n\n.apexcharts-pan-icon svg {\n  fill: #fff;\n  stroke: #6e8192;\n  stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n  stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n  stroke: #333\n}\n\n.apexcharts-toolbar {\n  position: absolute;\n  z-index: 11;\n  max-width: 176px;\n  text-align: right;\n  border-radius: 3px;\n  padding: 0 6px 2px;\n  display: flex;\n  justify-content: space-between;\n  align-items: center\n}\n\n.apexcharts-menu {\n  background: #fff;\n  position: absolute;\n  top: 100%;\n  border: 1px solid #ddd;\n  border-radius: 3px;\n  padding: 3px;\n  right: 10px;\n  opacity: 0;\n  min-width: 110px;\n  transition: .15s ease all;\n  pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n  opacity: 1;\n  pointer-events: all;\n  transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n  padding: 6px 7px;\n  font-size: 12px;\n  cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n  background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n  background: rgba(0,0,0,.7);\n  color: #fff\n}\n\n@media screen and (min-width:768px) {\n  .apexcharts-canvas:hover .apexcharts-toolbar {\n      opacity: 1\n  }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {\n  opacity: 0\n}\n\n.apexcharts-hidden-element-shown {\n  opacity: 1;\n  transition: 0.25s ease all;\n}\n.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {\n  cursor: default;\n  pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n  opacity: 0;\n  animation-name: opaque;\n  animation-duration: .3s;\n  animation-fill-mode: forwards;\n  animation-timing-function: ease\n}\n\n.apexcharts-radialbar-label {\n  cursor: pointer;\n}\n\n.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {\n  pointer-events: none\n}\n\n.apexcharts-marker {\n  transition: .15s ease all\n}\n\n.resize-triggers {\n  animation: 1ms resizeanim;\n  visibility: hidden;\n  opacity: 0;\n  height: 100%;\n  width: 100%;\n  overflow: hidden\n}\n\n.contract-trigger:before,.resize-triggers,.resize-triggers>
2div {\n  content: " ";\n  display: block;\n  position: absolute;\n  top: 0;\n  left: 0\n}\n\n.resize-triggers>div {\n  height: 100%;\n  width: 100%;\n  background: #eee;\n  overflow: auto\n}\n\n.contract-trigger:before {\n  overflow: hidden;\n  width: 200%;\n  height: 200%\n}\n\n.apexcharts-bar-goals-markers{\n  pointer-events: none\n}\n\n.apexcharts-bar-shadows{\n  pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers{\n  pointer-events: none\n}';var c=(null===(l=t.opts.chart)||void 0===l?void 0:l.nonce)||t.w.config.chart.nonce;c&&t.css.setAttribute("nonce",c),r?n.prepend(t.css):o.head.appendChild(t.css)}}var h=t.create(t.w.config.series,{});if(!h)return e(t);t.mount(h).then(function(){"function"==typeof t.w.config.chart.events.mounted&&t.w.config.chart.events.mounted(t,t.w),t.events.fireEvent("mounted",[t,t.w]),e(h)}).catch(function(t){i(t)})}else i(new Error("Element not found"))})}},{key:"create",value:function(t,e){var i=this.w;new Wt(this).initModules();var s=this.w.globals;if(s.noData=!1,s.animationEnded=!1,this.responsive.checkResponsiveConfig(e),i.c
2onfig.xaxis.convertedCatToNumeric&&new D(i.config).convertCatToNumericXaxis(i.config,this.ctx),null===this.el||(this.core.setupElements(),"treemap"===i.config.chart.type&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),0===s.svgWidth))return s.animationEnded=!0,null;var n=S.checkComboSeries(t);s.comboCharts=n.comboCharts,s.comboBarCount=n.comboBarCount;var r=t.every(function(t){return t.data&&0===t.data.length});(0===t.length||r)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(t),this.theme.init(),new F(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),s.noData&&s.collapsedSeries.length!==s.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),s.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new S(this).getLargestMarkerSize(),this.dimensions.plotCoords();var o=this.core.xySettings();this.grid.createGridMask();var a=this.core.plotChartType(t,o),l=new H(this);return l.bringForward(),i.config.dataLabels.background.enabled&&l.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:a,xyRatios:o,dimensions:{plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}}}}},{key:"mount",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=this,s=i.w;return new Promise(function(n,r){if(null===i.el)return r(new Error("Not enough data to display or target element not found"));(null===e||s.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new U(i);var o,a,l=i.grid.drawGrid();if(i.annotations=new P(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),"back"===s.config.grid.position&&(l&&s.globals.dom.elGraphical.add(l.el),null!=l&&null!==(o=l.elGridBorders)&&void 0!==o&&o.node&&s.globals.dom.elGraphical.add(l.elGridBorders)),Array.isArray(e.elGraph))for(var c=0;c<e.elGraph.length;c++)s.globals.dom.elGraphical.add(e.elGraph[c]);else s.globals.dom.elGraphical.add(e.elGraph);"front"===s.config.grid.position&&(l&&s.globals.dom.elGraphical.add(l.el),null!=l&&null!==(a=l.elGridBorders)&&void 0!==a&&a.node&&s.globals.dom.elGraphical.add(l.elGridBorders)),"front"===s.config.xaxis.crosshairs.position&&i.crosshairs.drawXCrosshairs(),"front"===s.config.yaxis[0].crosshairs.position&&i.crosshairs.drawYCrosshairs(),"treemap"!==s.config.chart.type&&i.axes.drawAxis(s.config.chart.type,l);var h=new G(t.ctx,l),d=new K(t.ctx,l);if(null!==l&&(h.xAxisLabelCorrections(l.xAxisTickWidth),d.setYAxisTextAlignments(),s.config.yaxis.map(function(t,e){-1===s.globals.ignoreYAxisIndexes.indexOf(e)&&d.yAxisTitleRotate(e,t.opposite)})),i.annotations.drawAxesAnnotations(),!s.globals.noData){if(s.config.tooltip.enabled&&!s.globals.noData&&i.w.globals.tooltip.drawTooltip(e.xyRatios),s.globals.axisCharts&&(s.globals.isXNumeric||s.config.xaxis.convertedCatToNumeric||s.globals.isRangeBar))(s.config.chart.zoom.enabled||s.config.chart.selection&&s.config.chart.selection.enabled||s.config.chart.pan&&s.c
vendor: 7,583 bytes, line 2
2onfig.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:e.xyRatios});else{var u=s.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(t){u[t]=!1})}s.config.chart.toolbar.show&&!s.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}s.globals.memory.methodsToExec.length>0&&s.globals.memory.methodsToExec.forEach(function(t){t.method(t.params,!1,t.context)}),s.globals.axisCharts||s.globals.noData||i.core.resizeNonAxisCharts(),n(i)})}},{key:"destroy",value:function(){var t,e;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,t=this.parentResizeHandler,(e=Vt.get(t))&&(e.disconnect(),Vt.delete(t));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach(function(t,e){t.id===b.escapeString(i)&&Apex._chartInstances.splice(e,1)}),new Yt(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=this.w;return o.globals.selection=void 0,t.series&&(this.series.resetSeries(!1,!0,!1),t.series.length&&t.series[0].data&&(t.series=t.series.map(function(t,i){return e.updateHelpers._extendSeries(t,i)})),this.updateHelpers.revertDefaultAxisMinMax()),t.xaxis&&(t=this.updateHelpers.forceXAxisUpdate(t)),t.yaxis&&(t=this.updateHelpers.forceYAxisUpdate(t)),o.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,i,s,n,r)}},{key:"updateSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(t,e,i)}},{key:"appendSeries",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.w.config.series.slice();return s.push(t),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(s,e,i)}},{key:"appendData",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var s=i.w.config.series.slice(),n=0;n<s.length;n++)if(null!==t[n]&&void 0!==t[n])for(var r=0;r<t[n].data.length;r++)s[n].data.push(t[n].data[r]);return i.w.config.series=s,e&&(i.w.globals.initialSeries=b.clone(i.w.config.series)),this.update()}},{key:"update",value:function(t){var e=this;return new Promise(function(i,s){new Yt(e.ctx).clear({isUpdating:!0});var n=e.create(e.w.config.series,t);if(!n)return i(e);e.mount(n).then(function(){"function"==typeof e.w.config.chart.events.updated&&e.w.config.chart.events.updated(e,e.w),e.events.fireEvent("updated",[e,e.w]),e.w.globals.isDirty=!0,i(e)}).catch(function(t){s(t)})})}},{key:"getSyncedCharts",value:function(){var t=this.getGroupedCharts(),e=[this];return t.length&&(e=[],t.forEach(function(t){e.push(t)})),e}},{key:"getGroupedCharts",value:function(){var t=this;return Apex._chartInstances.filter(function(t){if(t.group)return!0}).map(function(e){return t.w.config.chart.group===e.group?e.chart:t})}},{key:"toggleSeries",value:function(t){return this.series.toggleSeries(t)}},{key:"highlightSeriesOnLegendHover",value:function(t,e){return this.series.toggleSeriesOnHover(t,e)}},{key:"showSeries",value:function(t){this.series.showSeries(t)}},{key:"hideSeries",value:function(t){this.series.hideSeries(t)}},{key:"isSeriesHidden",value:function(t){this.series.isSeriesHidden(t)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(t,e)}},{key:"addEventListener",value:function(t,e){this.events.addEventListener(t,e)}},{key:"removeEventListener",value:function(t,e){this.events.removeEventListener(t,e)}},{key:"addXaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addXaxisAnnotationExternal(t,e,s)}},{key:"addYaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addYaxisAnnotationExternal(t,e,s)}},{key:"addPointAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addPointAnnotationExternal(t,e,s)}},{key:"clearAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this;t&&(e=t),e.annotations.clearAnnotations(e)}},{key:"removeAnnotation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this;e&&(i=e),i.annotations.removeAnnotation(i,t)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(t,e){return this.coreUtils.getSeriesTotalsXRange(t,e)}},{key:"getHighestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new q(this.ctx).getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new q(this.ctx).getMinYMaxY(t).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(t,e){return this.updateHelpers.toggleDataPointSelection(t,e)}},{key:"zoomX",value:function(t,e){this.ctx.toolbar.zoomUpdateOptions(t,e)}},{key:"setLocale",value:function(t){this.localization.setCurrentLocaleValues(t)}},{key:"dataURI",value:function(t){return new V(this.ctx).dataURI(t)}},{key:"exportToCSV",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new V(this.ctx).exportToCSV(t)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var t=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){t.w.globals.resized=!0,t.w.globals.dataChanged=!1,t.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var t=this.w.config.chart.redrawOnWindowResize;"function"==typeof t&&(t=t()),t&&this._windowResize()}}],[{key:"getChartByID",value:function(t){var e=b.escapeString(t);if(Apex._chartInstances){var i=Apex._chartInstances.filter(function(t){return t.id===e})[0];return i&&i.chart}}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),i=0;i<e.length;i++)new t(e[i],JSON.parse(e[i].getAttribute("data-options"))).render()}},{key:"exec",value:function(t,e){var i=this.getChartByID(t);if(i){i.w.globals.isExecCalled=!0;var s=null;if(-1!==i.publicMethods.indexOf(e)){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];s=i[e].apply(i,r)}return s}}},{key:"merge",value:function(t,e){return b.extend(t,e)}}]),t}();t.exports=Gt}
2(Bn,Bn.exports);const jn=Nn(Bn.exports),Fn=["animationEnd","beforeMount","mounted","updated","click","mouseMove","mouseLeave","legendClick","markerClick","selection","dataPointSelection","dataPointMouseEnter","dataPointMouseLeave","beforeZoom","beforeResetZoom","zoomed","scrolled","brushScrolled"],zn=(0,r.defineComponent)({name:"apexchart",props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0},width:{default:"100%"},height:{default:"auto"}},emits:Fn,setup(t,{emit:e}){const i=(0,r.ref)(null),s=(0,r.ref)(null),n=t=>t&&"object"==typeof t&&!Array.isArray(t)&&null!=t,o=(t,e)=>{"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");let e=Object(t);for(let t=1;t<arguments.length;t++){let i=arguments[t];if(null!=i)for(let t in i)i.hasOwnProperty(t)&&(e[t]=i[t])}return e});let i=Object.assign({},t);return n(t)&&n(e)&&Object.keys(e).forEach(s=>{n(e[s])?s in t?i[s]=o(t[s],e[s]):Object.assign(i,{[s]:e[s]}):Object.assign(i,{[s]:e[s]})}),i},a=async()=>{if(await(0,r.nextTick)(),s.value)return;const n={chart:{type:t.type||t.options.chart.type||"line",height:t.height,width:t.width,events:{}},series:t.series};Fn.forEach(t=>{n.chart.events[t]=(...i)=>e(t,...i)});const a=o(t.options,n);return s.value=new jn(i.value,a),s.value.render()},l=()=>(c(),a()),c=()=>{s.value.destroy()};(0,r.onBeforeMount)(()=>{window.ApexCharts=jn}),(0,r.onMounted)(()=>{i.value=(0,r.getCurrentInstance)().proxy.$el,a()}),(0,r.onBeforeUnmount)(()=>{s.value&&c()});const h=(0,r.toRefs)(t);return(0,r.watch)(h.options,()=>{!s.value&&t.options?a():s.value.updateOptions(t.options)}),(0,r.watch)(h.series,()=>{!s.value&&t.series?a():s.value.updateSeries(t.series)},{deep:!0}),(0,r.watch)(h.type,()=>{l()}),(0,r.watch)(h.width,()=>{l()}),(0,r.watch)(h.height,()=>{l()}),{chart:s,init:a,refresh:l,destroy:c,updateOptions:(t,e,i,n)=>s.value.updateOptions(t,e,i,n),updateSeries:(t,e)=>s.value.updateSeries(t,e),toggleSeries:t=>s.value.toggleSeries(t),showSeries:t=>{s.value.showSeries(t)},hideSeries:t=>{s.value.hideSeries(t)},resetSeries:()=>{s.value.resetSeries()},zoomX:(t,e)=>s.value.zoomX(t,e),toggleDataPointSelection:(t,e)=>{s.value.toggleDataPointSelection(t,e)},appendData:t=>s.value.appendData(t),appendSeries:(t,e)=>s.value.appendSeries(t,e),addXaxisAnnotation:(t,e)=>{s.value.addXaxisAnnotation(t,e)},addYaxisAnnotation:(t,e)=>{s.value.addYaxisAnnotation(t,e)},addPointAnnotation:(t,e)=>{s.value.addPointAnnotation(t,e)},removeAnnotation:(t,e)=>{s.value.removeAnnotation(t,e)},clearAnnotations:()=>{s.value.clearAnnotations()},setLocale:t=>s.value.setLocale(t),dataURI:t=>s.value.dataURI(t)}},render:()=>(0,r.h)("div",{class:"vue-apexcharts"})});zn.install=t=>{t.component(zn.name,zn)};const Hn={name:"apex-charts",components:{apexcharts:zn},props:{chartOptions:{type:Object},chartSeries:{type:Object}}},Xn=(0,Cn.A)(Hn,[["render",function(t,e,i,s,n,o){var a=(0,r.resolveComponent)("apexcharts");return(0,r.openBlock)(),(0,r.createBlock)(a,{width:"100%",options:i.chartOptions,series:i.chartSeries},null,8,["options","series"])}]]);var Wn=i(258),Yn=i(783),Vn=i.n(Yn),Gn=i(802);i.n(Gn)()(Vn());const Un={name:"high-charts",components:{highcharts:Wn.Chart},props:{chartOptions:{type:Object}}},$n=(0,Cn.A)(Un,[["render",function(t,e,i,s,n,o){var a=(0,r.resolveComponent)("highcharts");return(0,r.openBlock)(),(0,r.createBlock)(a,{options:i.chartOptions},null,8,["options"])}]]);function qn(t){return t+.5|0}const Kn=(t,e,i)=>Math.max(Math.min(t,i),e);function Zn(t){return Kn(qn(2.55*t),0,255)}function Jn(t){return Kn(qn(255*t),0,255)}function Qn(t){return Kn(qn(t/2.55)/100,0,1)}function tr(t){return Kn(qn(100*t),0,100)}const er={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},ir=[..."0123456789ABCDEF"],sr=t=>ir[15&t],nr=t=>ir[(240&t)>>4]+ir[15&t],rr=t=>(240&t)>>4==(15&t);function or(t){var e=(t=>rr(t.r)&&rr(t.g)&&rr(t.b)&&rr(t.a))(t)?sr:nr;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const ar=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function lr(t,e,i){const s=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function cr(t,e,i){const s=(s,n=(s+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[s(5),s(3),s(1)]}function hr(t,e,i){const s=lr(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function dr(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),o=(n+r)/2;let a,l,c;return n!==r&&(c=n-r,l=o>
vendor: 3,612 bytes, line 2
2.5?c/(2-n-r):c/(n+r),a=function(t,e,i,s,n){return t===n?(e-i)/s+(e<i?6:0):e===n?(i-t)/s+2:(t-e)/s+4}(e,i,s,c,n),a=60*a+.5),[0|a,l||0,o]}function ur(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(Jn)}function pr(t,e,i){return ur(lr,t,e,i)}function fr(t){return(t%360+360)%360}function gr(t){const e=ar.exec(t);let i,s=255;if(!e)return;e[5]!==i&&(s=e[6]?Zn(+e[5]):Jn(+e[5]));const n=fr(+e[2]),r=+e[3]/100,o=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return ur(hr,t,e,i)}(n,r,o):"hsv"===e[1]?function(t,e,i){return ur(cr,t,e,i)}(n,r,o):pr(n,r,o),{r:i[0],g:i[1],b:i[2],a:s}}const mr={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"},xr={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let br;function yr(t){br||(br=function(){const t={},e=Object.keys(xr),i=Object.keys(mr);let s,n,r,o,a;for(s=0;s<e.length;s++){for(o=a=e[s],n=0;n<i.length;n++)r=i[n],a=a.replace(r,mr[r]);r=parseInt(xr[o],16),t[a]=[r>>16&255,r>>8&255,255&r]}return t}(),br.transparent=[0,0,0,0]);const e=br[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const vr=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const wr=t=>
vendor: 11,322 bytes, line 2
2t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Sr=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function kr(t,e,i){if(t){let s=dr(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*i,0===e?360:1)),s=pr(s),t.r=s[0],t.g=s[1],t.b=s[2]}}function Cr(t,e){return t?Object.assign(e||{},t):t}function Ar(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=Jn(t[3]))):(e=Cr(t,{r:0,g:0,b:0,a:1})).a=Jn(e.a),e}function Er(t){return"r"===t.charAt(0)?function(t){const e=vr.exec(t);let i,s,n,r=255;if(e){if(e[7]!==i){const t=+e[7];r=e[8]?Zn(t):Kn(255*t,0,255)}return i=+e[1],s=+e[3],n=+e[5],i=255&(e[2]?Zn(i):Kn(i,0,255)),s=255&(e[4]?Zn(s):Kn(s,0,255)),n=255&(e[6]?Zn(n):Kn(n,0,255)),{r:i,g:s,b:n,a:r}}}(t):gr(t)}class Mr{constructor(t){if(t instanceof Mr)return t;const e=typeof t;let i;var s,n,r;"object"===e?i=Ar(t):"string"===e&&(r=(s=t).length,"#"===s[0]&&(4===r||5===r?n={r:255&17*er[s[1]],g:255&17*er[s[2]],b:255&17*er[s[3]],a:5===r?17*er[s[4]]:255}:7!==r&&9!==r||(n={r:er[s[1]]<<4|er[s[2]],g:er[s[3]]<<4|er[s[4]],b:er[s[5]]<<4|er[s[6]],a:9===r?er[s[7]]<<4|er[s[8]]:255})),i=n||yr(t)||Er(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Cr(this._rgb);return t&&(t.a=Qn(t.a)),t}set rgb(t){this._rgb=Ar(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Qn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?or(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=dr(t),i=e[0],s=tr(e[1]),n=tr(e[2]);return t.a<255?`hsla(${i}, ${s}%, ${n}%, ${Qn(t.a)})`:`hsl(${i}, ${s}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,s=t.rgb;let n;const r=e===n?.5:e,o=2*r-1,a=i.a-s.a,l=((o*a===-1?o:(o+a)/(1+o*a))+1)/2;n=1-l,i.r=255&l*i.r+n*s.r+.5,i.g=255&l*i.g+n*s.g+.5,i.b=255&l*i.b+n*s.b+.5,i.a=r*i.a+(1-r)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const s=Sr(Qn(t.r)),n=Sr(Qn(t.g)),r=Sr(Qn(t.b));return{r:Jn(wr(s+i*(Sr(Qn(e.r))-s))),g:Jn(wr(n+i*(Sr(Qn(e.g))-n))),b:Jn(wr(r+i*(Sr(Qn(e.b))-r))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Mr(this.rgb)}alpha(t){return this._rgb.a=Jn(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=qn(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return kr(this._rgb,2,t),this}darken(t){return kr(this._rgb,2,-t),this}saturate(t){return kr(this._rgb,1,t),this}desaturate(t){return kr(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=dr(t);i[0]=fr(i[0]+e),i=pr(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Tr(){}const Pr=(()=>{let t=0;return()=>t++})();function Or(t){return null==t}function Lr(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function _r(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Ir(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Dr(t,e){return Ir(t)?t:e}function Rr(t,e){return void 0===t?e:t}const Nr=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Br(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function jr(t,e,i,s){let n,r,o;if(Lr(t))if(r=t.length,s)for(n=r-1;n>=0;n--)e.call(i,t[n],n);else for(n=0;n<r;n++)e.call(i,t[n],n);else if(_r(t))for(o=Object.keys(t),r=o.length,n=0;n<r;n++)e.call(i,t[o[n]],o[n])}function Fr(t,e){let i,s,n,r;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(n=t[i],r=e[i],n.datasetIndex!==r.datasetIndex||n.index!==r.index)return!1;return!0}function zr(t){if(Lr(t))return t.map(zr);if(_r(t)){const e=Object.create(null),i=Object.keys(t),s=i.length;let n=0;for(;n<s;++n)e[i[n]]=zr(t[i[n]]);return e}return t}function Hr(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Xr(t,e,i,s){if(!Hr(t))return;const n=e[t],r=i[t];_r(n)&&_r(r)?Wr(n,r,s):e[t]=zr(r)}function Wr(t,e,i){const s=Lr(e)?e:[e],n=s.length;if(!_r(t))return t;const r=(i=i||{}).merger||Xr;let o;for(let e=0;e<n;++e){if(o=s[e],!_r(o))continue;const n=Object.keys(o);for(let e=0,s=n.length;e<s;++e)r(n[e],t,o,i)}return t}function Yr(t,e){return Wr(t,e,{merger:Vr})}function Vr(t,e,i){if(!Hr(t))return;const s=e[t],n=i[t];_r(s)&&_r(n)?Yr(s,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=zr(n))}const Gr={"":t=>t,x:t=>t.x,y:t=>t.y};function Ur(t,e){const i=Gr[e]||(Gr[e]=function(t){const e=function(t){const e=t.split("."),i=[];let s="";for(const t of e)s+=t,s.endsWith("\\")?s=s.slice(0,-1)+".":(i.push(s),s="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function $r(t){return t.charAt(0).toUpperCase()+t.slice(1)}const qr=t=>void 0!==t,Kr=t=>"function"==typeof t,Zr=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};const Jr=Math.PI,Qr=2*Jr,to=Qr+Jr,eo=Number.POSITIVE_INFINITY,io=Jr/180,so=Jr/2,no=Jr/4,ro=2*Jr/3,oo=Math.log10,ao=Math.sign;function lo(t,e,i){return Math.abs(t-e)<i}function co(t){const e=Math.round(t);t=lo(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(oo(t))),s=t/i;return(s<=1?1:s<=2?2:s<=5?5:10)*i}function ho(t){return!isNaN(parseFloat(t))&&isFinite(t)}function uo(t,e,i){let s,n,r;for(s=0,n=t.length;s<n;s++)r=t[s][i],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}function po(t){return t*(Jr/180)}function fo(t){return t*(180/Jr)}function go(t){if(!Ir(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function mo(t,e){const i=e.x-t.x,s=e.y-t.y,n=Math.sqrt(i*i+s*s);let r=Math.atan2(s,i);return r<-.5*Jr&&(r+=Qr),{angle:r,distance:n}}function xo(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function bo(t,e){return(t-e+to)%Qr-Jr}function yo(t){return(t%Qr+Qr)%Qr}function vo(t,e,i,s){const n=yo(t),r=yo(e),o=yo(i),a=yo(r-n),l=yo(o-n),c=yo(n-r),h=yo(n-o);return n===r||n===o||s&&r===o||a>l&&c<h}function wo(t,e,i){return Math.max(e,Math.min(i,t))}function So(t,e,i,s=1e-6){return t>=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function ko(t,e,i){i=i||(i=>t[i]<e);let s,n=t.length-1,r=0;for(;n-r>1;)s=r+n>>1,i(s)?r=s:n=s;return{lo:r,hi:n}}const Co=(t,e,i,s)=>ko(t,i,s?s=>{const n=t[s][e];return n<i||n===i&&t[s+1][e]===i}:s=>t[s][e]<i),Ao=(t,e,i)=>ko(t,i,s=>t[s][e]>=i);const Eo=["push","pop","shift","splice","unshift"];function Mo(t,e){const i=t._chartjs;if(!i)return;const s=i.listeners,n=s.indexOf(e);-1!==n&&s.splice(n,1),s.length>0||(Eo.forEach(e=>{delete t[e]}),delete t._chartjs)}function To(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Po="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Oo(t,e){let i=[],s=!1;return function(...n){i=n,s||(s=!0,Po.call(window,()=>{s=!1,t.apply(e,i)}))}}const Lo=t=>"start"===t?"left":"end"===t?"right":"center",_o=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function Io(t,e,i){const s=e.length;let n=0,r=s;if(t._sorted){const{iScale:o,_parsed:a}=t,l=o.axis,{min:c,max:h,minDefined:d,maxDefined:u}=o.getUserBounds();d&&(n=wo(Math.min(Co(a,l,c).lo,i?s:Co(e,l,o.getPixelForValue(c)).lo),0,s-1)),r=u?wo(Math.max(Co(a,o.axis,h,!0).hi+1,i?0:Co(e,l,o.getPixelForValue(h),!0).hi+1),n,s)-n:s-n}return{start:n,count:r}}function Do(t){const{xScale:e,yScale:i,_scaleRanges:s}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!s)return t._scaleRanges=n,!0;const r=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==i.min||s.ymax!==i.max;return Object.assign(s,n),r}const Ro=t=>0===t||1===t,No=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Qr/i),Bo=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*Qr/i)+1,jo={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=>1-Math.cos(t*so),easeOutSine:t=>Math.sin(t*so),easeInOutSine:t=>-.5*(Math.cos(Jr*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Ro(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),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=>Ro(t)?t:No(t,.075,.3),easeOutElastic:t=>Ro(t)?t:Bo(t,.075,.3),easeInOutElastic(t){const e=.1125;return Ro(t)?t:t<.5?.5*No(2*t,e,.45):.5+.5*Bo(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-jo.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*jo.easeInBounce(2*t):.5*jo.easeOutBounce(2*t-1)+.5};function Fo(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function zo(t){return Fo(t)?t:new Mr(t)}function Ho(t){return Fo(t)?t:new Mr(t).saturate(.5).darken(.1).hexString()}const Xo=["x","y","borderWidth","radius","tension"],Wo=["color","borderColor","backgroundColor"];const Yo=new Map;function Vo(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let s=Yo.get(i);return s||(s=new Intl.NumberFormat(t,e),Yo.set(i,s)),s}(e,i).format(t)}const Go={values:t=>Lr(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const s=this.chart.options.locale;let n,r=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(n="scientific"),r=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const o=oo(Math.abs(r)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Vo(t,s,l)},logarithmic(t,e,i){if(0===t)return"0";const s=i[e].significand||t/Math.pow(10,Math.floor(oo(t)));return[1,2,3,5,10,15].includes(s)||e>.8*i.length?Go.numeric.call(this,t,e,i):""}};var Uo={formatters:Go};const $o=Object.create(null),qo=Object.create(null);function Ko(t,e){if(!e)return t;const i=e.split(".");for(let e=0,s=i.length;e<s;++e){const s=i[e];t=t[s]||(t[s]=Object.create(null))}return t}function Zo(t,e,i){return"string"==typeof e?Wr(Ko(t,e),i):Wr(Ko(t,""),e)}class Jo{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.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={}
vendor: 4,183 bytes, line 2
2,this.hoverBackgroundColor=(t,e)=>Ho(e.backgroundColor),this.hoverBorderColor=(t,e)=>Ho(e.borderColor),this.hoverColor=(t,e)=>Ho(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Zo(this,t,e)}get(t){return Ko(this,t)}describe(t,e){return Zo(qo,t,e)}override(t,e){return Zo($o,t,e)}route(t,e,i,s){const n=Ko(this,t),r=Ko(this,i),o="_"+e;Object.defineProperties(n,{[o]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[o],e=r[s];return _r(t)?Object.assign({},e,t):Rr(t,e)},set(t){this[o]=t}}})}apply(t){t.forEach(t=>t(this))}}var Qo=new Jo({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(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:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:Wo},numbers:{type:"number",properties:Xo}}),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:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(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:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.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:Uo.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:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function ta(t,e,i,s,n){let r=e[n];return r||(r=e[n]=t.measureText(n).width,i.push(n)),r>s&&(s=r),s}function ea(t,e,i){const s=t.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((e-n)*s)/s+n}function ia(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function sa(t,e,i,s){na(t,e,i,s,null)}function na(t,e,i,s,n){let r,o,a,l,c,h,d,u;const p=e.pointStyle,f=e.rotation,g=e.radius;let m=(f||0)*io;if(p&&"object"==typeof p&&(r=p.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return t.save(),t.translate(i,s),t.rotate(m),t.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),void t.restore();if(!(isNaN(g)||g<=0)){switch(t.beginPath(),p){default:n?t.ellipse(i,s,n/2,g,0,0,Qr):t.arc(i,s,g,0,Qr),t.closePath();break;case"triangle":h=n?n/2:g,t.moveTo(i+Math.sin(m)*h,s-Math.cos(m)*g),m+=ro,t.lineTo(i+Math.sin(m)*h,s-Math.cos(m)*g),m+=ro,t.lineTo(i+Math.sin(m)*h,s-Math.cos(m)*g),t.closePath();break;case"rectRounded":c=.516*g,l=g-c,o=Math.cos(m+no)*l,d=Math.cos(m+no)*(n?n/2-c:l),a=Math.sin(m+no)*l,u=Math.sin(m+no)*(n?n/2-c:l),t.arc(i-d,s-a,c,m-Jr,m-so),t.arc(i+u,s-o,c,m-so,m),t.arc(i+d,s+a,c,m,m+so),t.arc(i-u,s+o,c,m+so,m+Jr),t.closePath();break;
vendor: 2,033 bytes, line 2
2case"rect":if(!f){l=Math.SQRT1_2*g,h=n?n/2:l,t.rect(i-h,s-l,2*h,2*l);break}m+=no;case"rectRot":d=Math.cos(m)*(n?n/2:g),o=Math.cos(m)*g,a=Math.sin(m)*g,u=Math.sin(m)*(n?n/2:g),t.moveTo(i-d,s-a),t.lineTo(i+u,s-o),t.lineTo(i+d,s+a),t.lineTo(i-u,s+o),t.closePath();break;case"crossRot":m+=no;case"cross":d=Math.cos(m)*(n?n/2:g),o=Math.cos(m)*g,a=Math.sin(m)*g,u=Math.sin(m)*(n?n/2:g),t.moveTo(i-d,s-a),t.lineTo(i+d,s+a),t.moveTo(i+u,s-o),t.lineTo(i-u,s+o);break;case"star":d=Math.cos(m)*(n?n/2:g),o=Math.cos(m)*g,a=Math.sin(m)*g,u=Math.sin(m)*(n?n/2:g),t.moveTo(i-d,s-a),t.lineTo(i+d,s+a),t.moveTo(i+u,s-o),t.lineTo(i-u,s+o),m+=no,d=Math.cos(m)*(n?n/2:g),o=Math.cos(m)*g,a=Math.sin(m)*g,u=Math.sin(m)*(n?n/2:g),t.moveTo(i-d,s-a),t.lineTo(i+d,s+a),t.moveTo(i+u,s-o),t.lineTo(i-u,s+o);break;case"line":o=n?n/2:Math.cos(m)*g,a=Math.sin(m)*g,t.moveTo(i-o,s-a),t.lineTo(i+o,s+a);break;case"dash":t.moveTo(i,s),t.lineTo(i+Math.cos(m)*(n?n/2:g),s+Math.sin(m)*g);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function ra(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function oa(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function aa(t){t.restore()}function la(t,e,i,s,n){if(!e)return t.lineTo(i.x,i.y);if("middle"===n){const s=(e.x+i.x)/2;t.lineTo(s,e.y),t.lineTo(s,i.y)}else"after"===n!=!!s?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function ca(t,e,i,s){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(s?e.cp1x:e.cp2x,s?e.cp1y:e.cp2y,s?i.cp2x:i.cp1x,s?i.cp2y:i.cp1y,i.x,i.y)}function ha(t,e,i,s,n){if(n.strikethrough||n.underline){const r=t.measureText(s),o=e-r.actualBoundingBoxLeft,a=e+r.actualBoundingBoxRight,l=i-r.actualBoundingBoxAscent,c=i+r.actualBoundingBoxDescent,h=n.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(o,h),t.lineTo(a,h),t.stroke()}}function da(t,e){const i=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=i}
vendor: 34,216 bytes, line 2
2function ua(t,e,i,s,n,r={}){const o=Lr(e)?e:[e],a=r.strokeWidth>0&&""!==r.strokeColor;let l,c;for(t.save(),t.font=n.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Or(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,r),l=0;l<o.length;++l)c=o[l],r.backdrop&&da(t,r.backdrop),a&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),Or(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(c,i,s,r.maxWidth)),t.fillText(c,i,s,r.maxWidth),ha(t,i,s,c,r),s+=Number(n.lineHeight);t.restore()}function pa(t,e){const{x:i,y:s,w:n,h:r,radius:o}=e;t.arc(i+o.topLeft,s+o.topLeft,o.topLeft,1.5*Jr,Jr,!0),t.lineTo(i,s+r-o.bottomLeft),t.arc(i+o.bottomLeft,s+r-o.bottomLeft,o.bottomLeft,Jr,so,!0),t.lineTo(i+n-o.bottomRight,s+r),t.arc(i+n-o.bottomRight,s+r-o.bottomRight,o.bottomRight,so,0,!0),t.lineTo(i+n,s+o.topRight),t.arc(i+n-o.topRight,s+o.topRight,o.topRight,0,-so,!0),t.lineTo(i+o.topLeft,s)}const fa=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ga=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function ma(t,e){const i=(""+t).match(fa);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const xa=t=>+t||0;function ba(t,e){const i={},s=_r(e),n=s?Object.keys(e):e,r=_r(t)?s?i=>Rr(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of n)i[t]=xa(r(t));return i}function ya(t){return ba(t,{top:"y",right:"x",bottom:"y",left:"x"})}function va(t){return ba(t,["topLeft","topRight","bottomLeft","bottomRight"])}function wa(t){const e=ya(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Sa(t,e){t=t||{},e=e||Qo.font;let i=Rr(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let s=Rr(t.style,e.style);s&&!(""+s).match(ga)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const n={family:Rr(t.family,e.family),lineHeight:ma(Rr(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:Rr(t.weight,e.weight),string:""};return n.string=function(t){return!t||Or(t.size)||Or(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(n),n}function ka(t,e,i,s){let n,r,o,a=!0;for(n=0,r=t.length;n<r;++n)if(o=t[n],void 0!==o&&(void 0!==e&&"function"==typeof o&&(o=o(e),a=!1),void 0!==i&&Lr(o)&&(o=o[i%o.length],a=!1),void 0!==o))return s&&!a&&(s.cacheable=!1),o}function Ca(t,e){return Object.assign(Object.create(t),e)}function Aa(t,e=[""],i,s,n=()=>t[0]){const r=i||t;void 0===s&&(s=Na("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:r,_fallback:s,_getTarget:n,override:i=>Aa([i,...t],e,r,s)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,s)=>Oa(i,s,()=>function(t,e,i,s){let n;for(const r of e)if(n=Na(Ta(r,t),i),void 0!==n)return Pa(t,n)?Da(i,s,t,n):n}(s,e,t,i)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ba(t).includes(e),ownKeys:t=>Ba(t),set(t,e,i){const s=t._storage||(t._storage=n());return t[e]=s[e]=i,delete t._keys,!0}})}function Ea(t,e,i,s){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Ma(t,s),setContext:e=>Ea(t,e,i,s),override:n=>Ea(t.override(n),e,i,s)};return new Proxy(n,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Oa(t,e,()=>function(t,e,i){const{_proxy:s,_context:n,_subProxy:r,_descriptors:o}=t;let a=s[e];Kr(a)&&o.isScriptable(e)&&(a=function(t,e,i,s){const{_proxy:n,_context:r,_subProxy:o,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(r,o||s);a.delete(t),Pa(t,l)&&(l=Da(n._scopes,n,t,l));return l}(e,a,t,i));Lr(a)&&a.length&&(a=function(t,e,i,s){const{_proxy:n,_context:r,_subProxy:o,_descriptors:a}=i;if(void 0!==r.index&&s(t))return e[r.index%e.length];if(_r(e[0])){const i=e,s=n._scopes.filter(t=>t!==i);e=[];for(const l of i){const i=Da(s,n,t,l);e.push(Ea(i,r,o&&o[t],a))}}return e}(e,a,t,o.isIndexable));Pa(e,a)&&(a=Ea(a,n,r&&r[e],o));return a}(t,e,i)),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,s)=>(t[i]=s,delete e[i],!0)})}function Ma(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:s,isScriptable:Kr(i)?i:()=>i,isIndexable:Kr(s)?s:()=>s}}const Ta=(t,e)=>t?t+$r(e):e,Pa=(t,e)=>_r(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Oa(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const s=i();return t[e]=s,s}function La(t,e,i){return Kr(t)?t(e,i):t}const _a=(t,e)=>!0===t?e:"string"==typeof t?Ur(e,t):void 0;function Ia(t,e,i,s,n){for(const r of e){const e=_a(i,r);if(e){t.add(e);const r=La(e._fallback,i,n);if(void 0!==r&&r!==i&&r!==s)return r}else if(!1===e&&void 0!==s&&i!==s)return null}return!1}function Da(t,e,i,s){const n=e._rootScopes,r=La(e._fallback,i,s),o=[...t,...n],a=new Set;a.add(s);let l=Ra(a,o,i,r||i,s);return null!==l&&((void 0===r||r===i||(l=Ra(a,o,r,l,s),null!==l))&&Aa(Array.from(a),[""],n,r,()=>function(t,e,i){const s=t._getTarget();e in s||(s[e]={});const n=s[e];if(Lr(n)&&_r(i))return i;return n||{}}(e,i,s)))}function Ra(t,e,i,s,n){for(;i;)i=Ia(t,e,i,s,n);return i}function Na(t,e){for(const i of e){if(!i)continue;const e=i[t];if(void 0!==e)return e}}function Ba(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}const ja=Number.EPSILON||1e-14,Fa=(t,e)=>e<t.length&&!t[e].skip&&t[e],za=t=>"x"===t?"y":"x";function Ha(t,e,i,s){const n=t.skip?e:t,r=e,o=i.skip?e:i,a=xo(r,n),l=xo(o,r);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const d=s*c,u=s*h;return{previous:{x:r.x-d*(o.x-n.x),y:r.y-d*(o.y-n.y)},next:{x:r.x+u*(o.x-n.x),y:r.y+u*(o.y-n.y)}}}function Xa(t,e="x"){const i=za(e),s=t.length,n=Array(s).fill(0),r=Array(s);let o,a,l,c=Fa(t,0);for(o=0;o<s;++o)if(a=l,l=c,c=Fa(t,o+1),l){if(c){const t=c[e]-l[e];n[o]=0!==t?(c[i]-l[i])/t:0}r[o]=a?c?ao(n[o-1])!==ao(n[o])?0:(n[o-1]+n[o])/2:n[o-1]:n[o]}!function(t,e,i){const s=t.length;let n,r,o,a,l,c=Fa(t,0);for(let h=0;h<s-1;++h)l=c,c=Fa(t,h+1),l&&c&&(lo(e[h],0,ja)?i[h]=i[h+1]=0:(n=i[h]/e[h],r=i[h+1]/e[h],a=Math.pow(n,2)+Math.pow(r,2),a<=9||(o=3/Math.sqrt(a),i[h]=n*o*e[h],i[h+1]=r*o*e[h])))}(t,n,r),function(t,e,i="x"){const s=za(i),n=t.length;let r,o,a,l=Fa(t,0);for(let c=0;c<n;++c){if(o=a,a=l,l=Fa(t,c+1),!a)continue;const n=a[i],h=a[s];o&&(r=(n-o[i])/3,a[`cp1${i}`]=n-r,a[`cp1${s}`]=h-r*e[c]),l&&(r=(l[i]-n)/3,a[`cp2${i}`]=n+r,a[`cp2${s}`]=h+r*e[c])}}(t,r,e)}function Wa(t,e,i){return Math.max(Math.min(t,i),e)}function Ya(t,e,i,s,n){let r,o,a,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)Xa(t,n);else{let i=s?t[t.length-1]:t[0];for(r=0,o=t.length;r<o;++r)a=t[r],l=Ha(i,a,t[Math.min(r+1,o-(s?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,i=a}e.capBezierPoints&&function(t,e){let i,s,n,r,o,a=ra(t[0],e);for(i=0,s=t.length;i<s;++i)o=r,r=a,a=i<s-1&&ra(t[i+1],e),r&&(n=t[i],o&&(n.cp1x=Wa(n.cp1x,e.left,e.right),n.cp1y=Wa(n.cp1y,e.top,e.bottom)),a&&(n.cp2x=Wa(n.cp2x,e.left,e.right),n.cp2y=Wa(n.cp2y,e.top,e.bottom)))}(t,i)}function Va(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ga(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Ua(t,e,i){let s;return"string"==typeof t?(s=parseInt(t,10),-1!==t.indexOf("%")&&(s=s/100*e.parentNode[i])):s=t,s}const $a=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);const qa=["top","right","bottom","left"];function Ka(t,e,i){const s={};i=i?"-"+i:"";for(let n=0;n<4;n++){const r=qa[n];s[r]=parseFloat(t[e+"-"+r+i])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}function Za(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:s}=e,n=$a(i),r="border-box"===n.boxSizing,o=Ka(n,"padding"),a=Ka(n,"border","width"),{x:l,y:c,box:h}=function(t,e){const i=t.touches,s=i&&i.length?i[0]:t,{offsetX:n,offsetY:r}=s;let o,a,l=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(n,r,t.target))o=n,a=r;else{const t=e.getBoundingClientRect();o=s.clientX-t.left,a=s.clientY-t.top,l=!0}return{x:o,y:a,box:l}}(t,i),d=o.left+(h&&a.left),u=o.top+(h&&a.top);let{width:p,height:f}=e;return r&&(p-=o.width+a.width,f-=o.height+a.height),{x:Math.round((l-d)/p*i.width/s),y:Math.round((c-u)/f*i.height/s)}}const Ja=t=>Math.round(10*t)/10;function Qa(t,e,i,s){const n=$a(t),r=Ka(n,"margin"),o=Ua(n.maxWidth,t,"clientWidth")||eo,a=Ua(n.maxHeight,t,"clientHeight")||eo,l=function(t,e,i){let s,n;if(void 0===e||void 0===i){const r=t&&Ga(t);if(r){const t=r.getBoundingClientRect(),o=$a(r),a=Ka(o,"border","width"),l=Ka(o,"padding");e=t.width-l.width-a.width,i=t.height-l.height-a.height,s=Ua(o.maxWidth,r,"clientWidth"),n=Ua(o.maxHeight,r,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||eo,maxHeight:n||eo}}(t,e,i);let{width:c,height:h}=l;if("content-box"===n.boxSizing){const t=Ka(n,"border","width"),e=Ka(n,"padding");c-=e.width+t.width,h-=e.height+t.height}c=Math.max(0,c-r.width),h=Math.max(0,s?c/s:h-r.height),c=Ja(Math.min(c,o,l.maxWidth)),h=Ja(Math.min(h,a,l.maxHeight)),c&&!h&&(h=Ja(c/2));return(void 0!==e||void 0!==i)&&s&&l.height&&h>l.height&&(h=l.height,c=Ja(Math.floor(h*s))),{width:c,height:h}}function tl(t,e,i){const s=e||1,n=Math.floor(t.height*s),r=Math.floor(t.width*s);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(i||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==s||o.height!==n||o.width!==r)&&(t.currentDevicePixelRatio=s,o.height=n,o.width=r,t.ctx.setTransform(s,0,0,s,0,0),!0)}const el=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Va()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function il(t,e){const i=function(t,e){return $a(t).getPropertyValue(e)}(t,e),s=i&&i.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function sl(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function nl(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:"middle"===s?i<.5?t.y:e.y:"after"===s?i<1?t.y:e.y:i>0?e.y:t.y}}function rl(t,e,i,s){const n={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},o=sl(t,n,i),a=sl(n,r,i),l=sl(r,e,i),c=sl(o,a,i),h=sl(a,l,i);return sl(c,h,i)}function ol(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function al(t,e){let i,s;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,s=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=s)}function ll(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function cl(t){return"angle"===t?{between:vo,compare:bo,normalize:yo}:{between:So,compare:(t,e)=>t-e,normalize:t=>t}}function hl({start:t,end:e,count:i,loop:s,style:n}){return{start:t%i,end:e%i,loop:s&&(e-t+1)%i==0,style:n}}function dl(t,e,i){if(!i)return[t];const{property:s,start:n,end:r}=i,o=e.length,{compare:a,between:l,normalize:c}=cl(s),{start:h,end:d,loop:u,style:p}=function(t,e,i){const{property:s,start:n,end:r}=i,{between:o,normalize:a}=cl(s),l=e.length;let c,h,{start:d,end:u,loop:p}=t;if(p){for(d+=l,u+=l,c=0,h=l;c<h&&o(a(e[d%l][s]),n,r);++c)d--,u--;d%=l,u%=l}return u<d&&(u+=l),{start:d,end:u,loop:p,style:t.style}}(t,e,i),f=[];let g,m,x,b=!1,y=null;const v=()=>b||l(n,x,g)&&0!==a(n,x),w=()=>!b||0===a(r,g)||l(r,x,g);for(let t=h,i=h;t<=d;++t)m=e[t%o],m.skip||(g=c(m[s]),g!==x&&(b=l(g,n,r),null===y&&v()&&(y=0===a(g,n)?t:i),null!==y&&w()&&(f.push(hl({start:y,end:t,loop:u,count:o,style:p})),y=null),i=t,x=g));return null!==y&&f.push(hl({start:y,end:d,loop:u,count:o,style:p})),f}function ul(t,e){const i=[],s=t.segments;for(let n=0;n<s.length;n++){const r=dl(s[n],t.points,e);r.length&&i.push(...r)}return i}function pl(t,e,i,s){return s&&s.setContext&&i?function(t,e,i,s){const n=t._chart.getContext(),r=fl(t.options),{_datasetIndex:o,options:{spanGaps:a}}=t,l=i.length,c=[];let h=r,d=e[0].start,u=d;function p(t,e,s,n){const r=a?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=r;for(;i[e%l].skip;)e+=r;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:s,style:n}),h=n,d=e%l)}}for(const t of e){d=a?d:t.start;let e,r=i[d%l];for(u=d+1;u<=t.end;u++){const a=i[u%l];e=fl(s.setContext(Ca(n,{type:"segment",p0:r,p1:a,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:o}))),gl(e,h)&&p(d,u-1,t.loop,h),r=a,h=e}d<u-1&&p(d,u-1,t.loop,h)}return c}(t,e,i,s):e}function fl(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function gl(t,e){if(!e)return!1;const i=[],s=function(t,e){return Fo(e)?(i.includes(e)||i.push(e),i.indexOf(e)):e};return JSON.stringify(t,s)!==JSON.stringify(e,s)}class ml{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){const n=e.listeners[s],r=e.duration;n.forEach(s=>s({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(i-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Po.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let r,o=n.length-1,a=!1;for(;o>=0;--o)r=n[o],r._active?(r._total>i.duration&&(i.duration=r._total),r.tick(t),a=!0):(n[o]=n[n.length-1],n.pop());a&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var xl=new ml;const bl="transparent",yl={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const s=zo(t||bl),n=s.valid&&zo(e||bl);return n&&n.valid?n.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class vl{constructor(t,e,i,s){const n=e[i];s=ka([t.to,s,n,t.from]);const r=ka([t.from,n,s]);this._active=!0,this._fn=t.fn||yl[t.type||typeof r],this._easing=jo[t.easing]||jo.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],n=i-this._start,r=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=ka([t.to,e,s,t.from]),this._from=ka([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,r=this._loop,o=this._to;let a;if(this._active=n!==o&&(r||e<i),!this._active)return this._target[s]=o,void this._notify(!0);e<0?this._target[s]=n:(a=e/i%2,a=r&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[s]=this._fn(n,o,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}class wl{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!_r(t))return;const e=Object.keys(Qo.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const n=t[s];if(!_r(n))return;const r={};for(const t of e)r[t]=n[t];(Lr(n.properties)&&n.properties||[s]).forEach(t=>{t!==s&&i.has(t)||i.set(t,r)})})}_animateOptions(t,e){const i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!s)return[];const n=this._createAnimations(s,i);return i.$shared&&function(t,e){const i=[],s=Object.keys(e);for(let e=0;e<s.length;e++){const n=t[s[e]];n&&n.active()&&i.push(n.wait())}return Promise.all(i)}(t.options.$animations,i).then(()=>{t.options=i},()=>{}),n}_createAnimations(t,e){const i=this._properties,s=[],n=t.$animations||(t.$animations={}),r=Object.keys(e),o=Date.now();let a;for(a=r.length-1;a>=0;--a){const l=r[a];if("$"===l.charAt(0))continue;if("options"===l){s.push(...this._animateOptions(t,e));continue}const c=e[l];let h=n[l];const d=i.get(l);if(h){if(d&&h.active()){h.update(d,c,o);continue}h.cancel()}d&&d.duration?(n[l]=h=new vl(d,t,l,c),s.push(h)):t[l]=c}return s}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(xl.add(this._chart,i),!0):void 0}}function Sl(t,e){const i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,r=void 0===i.max?e:0;return{start:s?r:n,end:s?n:r}}function kl(t,e){const i=[],s=t._getSortedDatasetMetas(e);let n,r;for(n=0,r=s.length;n<r;++n)i.push(s[n].index);return i}function Cl(t,e,i,s={}){const n=t.keys,r="single"===s.mode;let o,a,l,c;if(null!==e){for(o=0,a=n.length;o<a;++o){if(l=+n[o],l===i){if(s.all)continue;break}c=t.values[l],Ir(c)&&(r||0===e||ao(e)===ao(c))&&(e+=c)}return e}}function Al(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function El(t,e,i){const s=t[e]||(t[e]={});return s[i]||(s[i]={})}function Ml(t,e,i,s){for(const n of e.getMatchingVisibleMetas(s).reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function Tl(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:r,vScale:o,index:a}=s,l=r.axis,c=o.axis,h=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(r,o,s),d=e.length;let u;for(let t=0;t<d;++t){const i=e[t],{[l]:r,[c]:d}=i;u=(i._stacks||(i._stacks={}))[c]=El(n,h,r),u[a]=d,u._top=Ml(u,o,!0,s.type),u._bottom=Ml(u,o,!1,s.type);(u._visualValues||(u._visualValues={}))[a]=d}}function Pl(t,e){const i=t.scales;return Object.keys(i).filter(t=>i[t].axis===e).shift()}function Ol(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i],void 0!==e[s]._visualValues&&void 0!==e[s]._visualValues[i]&&delete e[s]._visualValues[i]}}}const Ll=t=>"reset"===t||"none"===t,_l=(t,e)=>e?t:Object.assign({},t);class Il{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,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 t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Al(t.vScale,t),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(t){this.index!==t&&Ol(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,n=e.xAxisID=Rr(i.xAxisID,Pl(t,"x")),r=e.yAxisID=Rr(i.yAxisID,Pl(t,"y")),o=e.rAxisID=Rr(i.rAxisID,Pl(t,"r")),a=e.indexAxis,l=e.iAxisID=s(a,n,r,o),c=e.vAxisID=s(a,r,n,o);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Mo(this._data,this),t._stacked&&Ol(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(_r(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:i,vScale:s}=e,n="x"===i.axis?"x":"y",r="x"===s.axis?"x":"y",o=Object.keys(t),a=new Array(o.length);let l,c,h;for(l=0,c=o.length;l<c;++l)h=o[l],a[l]={[n]:h,[r]:t[h]};return a}(e,t)}else if(i!==e){if(i){Mo(i,this);const t=this._cachedMeta;Ol(t),t._parsed=[]}e&&Object.isExtensible(e)&&(n=this,(s=e)._chartjs?s._chartjs.listeners.push(n):(Object.defineProperty(s,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[n]}}),Eo.forEach(t=>{const e="_onData"+$r(t),i=s[t];Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value(...t){const n=i.apply(this,t);return s._chartjs.listeners.forEach(i=>{"function"==typeof i[e]&&i[e](...t)}),n}})}))),this._syncList=[],this._data=e}var s,n}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const n=e._stacked;e._stacked=Al(e.vScale,e),e.stack!==i.stack&&(s=!0,Ol(e),e.stack=i.stack),this._resyncElements(t),(s||n!==e._stacked)&&Tl(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:s}=this,{iScale:n,_stacked:r}=i,o=n.axis;let a,l,c,h=0===t&&e===s.length||i._sorted,d=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,c=s;else{c=Lr(s[t])?this.parseArrayData(i,s,t,e):_r(s[t])?this.parseObjectData(i,s,t,e):this.parsePrimitiveData(i,s,t,e);const n=()=>null===l[o]||d&&l[o]<d[o];for(a=0;a<e;++a)i._parsed[a+t]=l=c[a],h&&(n()&&(h=!1),d=l);i._sorted=h}r&&Tl(this,c)}parsePrimitiveData(t,e,i,s){const{iScale:n,vScale:r}=t,o=n.axis,a=r.axis,l=n.getLabels(),c=n===r,h=new Array(s);let d,u,p;for(d=0,u=s;d<u;++d)p=d+i,h[d]={[o]:c||n.parse(l[p],p),[a]:r.parse(e[p],p)};return h}parseArrayData(t,e,i,s){const{xScale:n,yScale:r}=t,o=new Array(s);let a,l,c,h;for(a=0,l=s;a<l;++a)c=a+i,h=e[c],o[a]={x:n.parse(h[0],c),y:r.parse(h[1],c)};return o}parseObjectData(t,e,i,s){const{xScale:n,yScale:r}=t,{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing,l=new Array(s);let c,h,d,u;for(c=0,h=s;c<h;++c)d=c+i,u=e[d],l[c]={x:n.parse(Ur(u,o),d),y:r.parse(Ur(u,a),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const s=this.chart,n=this._cachedMeta,r=e[t.axis];return Cl({keys:kl(s,!0),values:e._stacks[t.axis]._visualValues},r,n.index,{mode:i})}updateRangeFromParsed(t,e,i,s){const n=i[e.axis];let r=null===n?NaN:n;const o=s&&i._stacks[e.axis];s&&o&&(s.values=o,r=Cl(s,n,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,e){const i=this._cachedMeta,s=i._parsed,n=i._sorted&&t===i.iScale,r=s.length,o=this._getOtherScale(t),a=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:kl(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:h}=function(t){const{min:e,max:i,minDefined:s,maxDefined:n}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(o);let d,u;function p(){u=s[d];const e=u[o.axis];return!Ir(u[t.axis])||c>e||h<e}for(d=0;d<r&&(p()||(this.updateRangeFromParsed(l,t,u,a),!n));++d);if(n)for(d=r-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(l,t,u,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,n,r;for(s=0,n=e.length;s<n;++s)r=e[s][t.axis],Ir(r)&&i.push(r);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,s=e.vScale,n=this.getParsed(t);return{label:i?""+i.getLabelForValue(n[i.axis]):"",value:s?""+s.getLabelForValue(n[s.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,s,n;return _r(t)?(e=t.top,i=t.right,s=t.bottom,n=t.left):e=i=s=n=t,{top:e,right:i,bottom:s,left:n,disabled:!1===t}}(Rr(this.options.clip,function(t,e,i){if(!1===i)return!1;const s=Sl(t,i),n=Sl(e,i);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,s=i.data||[],n=e.chartArea,r=[],o=this._drawStart||0,a=this._drawCount||s.length-o,l=this.options.drawActiveElementsOnTop;let c;for(i.dataset&&i.dataset.draw(t,n,o,a),c=o;c<o+a;++c){const e=s[c];e.hidden||(e.active&&l?r.push(e):e.draw(t,n))}for(c=0;c<r.length;++c)r[c].draw(t,n)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const s=this.getDataset();let n;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];n=e.$context||(e.$context=function(t,e,i){return Ca(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),n.parsed=this.getParsed(t),n.raw=s.data[t],n.index=n.dataIndex=t}else n=this.$context||(this.$context=function(t,e){return Ca(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),n.dataset=s,n.index=n.datasetIndex=this.index;return n.active=!!e,n.mode=i,n}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const s="active"===e,n=this._cachedDataOpts,r=t+"-"+e,o=n[r],a=this.enableOptionSharing&&qr(i);if(o)return _l(o,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),h=s?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),c),u=Object.keys(Qo.elements[t]),p=l.resolveNamedOptions(d,u,()=>this.getContext(i,s,e),h);return p.$shared&&(p.$shared=a,n[r]=Object.freeze(_l(p,a))),p}_resolveAnimations(t,e,i){const s=this.chart,n=this._cachedDataOpts,r=`animation-${e}`,o=n[r];if(o)return o;let a;if(!1!==s.options.animation){const s=this.chart.config,n=s.datasetAnimationScopeKeys(this._type,e),r=s.getOptionScopes(this.getDataset(),n);a=s.createResolver(r,this.getContext(t,i,e))}const l=new wl(s,a&&a.animations);return a&&a._cacheable&&(n[r]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ll(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,n=this.getSharedOptions(i),r=this.includeOptions(e,n)||n!==s;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:r}}updateElement(t,e,i,s){Ll(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!Ll(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const s=i.length,n=e.length,r=Math.min(n,s);r&&this.parse(0,r),n>s?this._insertElements(s,n-s,t):n<s&&this._removeElements(n,s-n)}_insertElements(t,e,i=!0){const s=this._cachedMeta,n=s.data,r=t+e;let o;const a=t=>{for(t.length+=e,o=t.length-1;o>=r;o--)t[o]=t[o-e]};for(a(n),o=t;o<r;++o)n[o]=new this.dataElementType;this._parsing&&a(s._parsed),this.parse(t,e),i&&this.updateElements(n,t,e,"reset")}updateElements(t,e,i,s){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,e);i._stacked&&Ol(i,s)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,s]=t;this[e](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Dl(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let s=[];for(let e=0,n=i.length;e<n;e++)s=s.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=To(s.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let s,n,r,o,a=e._length;const l=()=>{32767!==r&&-32768!==r&&(qr(o)&&(a=Math.min(a,Math.abs(r-o)||a)),o=r)};for(s=0,n=i.length;s<n;++s)r=e.getPixelForValue(i[s]),l();for(o=void 0,s=0,n=e.ticks.length;s<n;++s)r=e.getPixelForTick(s),l();return a}function Rl(t,e,i,s){return Lr(t)?function(t,e,i,s){const n=i.parse(t[0],s),r=i.parse(t[1],s),o=Math.min(n,r),a=Math.max(n,r);let l=o,c=a;Math.abs(o)>Math.abs(a)&&(l=a,c=o),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:n,end:r,min:o,max:a}}(t,e,i,s):e[i.axis]=i.parse(t,s),e}function Nl(t,e,i,s){const n=t.iScale,r=t.vScale,o=n.getLabels(),a=n===r,l=[];let c,h,d,u;for(c=i,h=i+s;c<h;++c)u=e[c],d={},d[n.axis]=a||n.parse(o[c],c),l.push(Rl(u,d,r,c));return l}function Bl(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function jl(t,e,i,s){let n=e.borderSkipped;const r={};if(!n)return void(t.borderSkipped=r);if(!0===n)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:a,reverse:l,top:c,bottom:h}=function(t){let e,i,s,n,r;return t.horizontal?(e=t.base>t.x,i="left",s="right"):(e=t.base<t.y,i="bottom",s="top"),e?(n="end",r="start"):(n="start",r="end"),{start:i,end:s,reverse:e,top:n,bottom:r}}(t);"middle"===n&&i&&(t.enableBorderRadius=!0,(i._top||0)===s?n=c:(i._bottom||0)===s?n=h:(r[Fl(h,o,a,l)]=!0,n=c)),r[Fl(n,o,a,l)]=!0,t.borderSkipped=r}function Fl(t,e,i,s){var n,r,o;return s?(o=i,t=zl(t=(n=t)===(r=e)?o:n===o?r:n,i,e)):t=zl(t,e,i),t}function zl(t,e,i){return"start"===t?e:"end"===t?i:t}function Hl(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}class Xl extends Il{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,s){return Nl(t,e,i,s)}parseArrayData(t,e,i,s){return Nl(t,e,i,s)}parseObjectData(t,e,i,s){const{iScale:n,vScale:r}=t,{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing,l="x"===n.axis?o:a,c="x"===r.axis?o:a,h=[];let d,u,p,f;for(d=i,u=i+s;d<u;++d)f=e[d],p={},p[n.axis]=n.parse(Ur(f,l),d),h.push(Rl(Ur(f,c),p,r,d));return h}updateRangeFromParsed(t,e,i,s){super.updateRangeFromParsed(t,e,i,s);const n=i._custom;n&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,n.min),t.max=Math.max(t.max,n.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:s}=e,n=this.getParsed(t),r=n._custom,o=Bl(r)?"["+r.start+", "+r.end+"]":""+s.getLabelForValue(n[s.axis]);return{label:""+i.getLabelForValue(n[i.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,s){const n="reset"===s,{index:r,_cachedMeta:{vScale:o}}=this,a=o.getBasePixel(),l=o.isHorizontal(),c=this._getRuler(),{sharedOptions:h,includeOptions:d}=this._getSharedOptions(e,s);for(let u=e;u<e+i;u++){const e=this.getParsed(u),i=n||Or(e[o.axis])?{base:a,head:a}:this._calculateBarValuePixels(u),p=this._calculateBarIndexPixels(u,c),f=(e._stacks||{})[o.axis],g={horizontal:l,base:i.base,enableBorderRadius:!f||Bl(e._custom)||r===f._top||r===f._bottom,x:l?i.head:p.center,y:l?p.center:i.head,height:l?p.size:Math.abs(i.size),width:l?Math.abs(i.size):p.size};d&&(g.options=h||this.resolveDataElementOptions(u,t[u].active?"active":s));const m=g.options||t[u].options;jl(g,m,f,r),Hl(g,m,c.ratio),this.updateElement(t[u],u,g,s)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),n=i.options.stacked,r=[],o=this._cachedMeta.controller.getParsed(e),a=o&&o[i.axis],l=t=>{const e=t._parsed.find(t=>
vendor: 4,076 bytes, line 2
2t[i.axis]===a),s=e&&e[t.vScale.axis];if(Or(s)||isNaN(s))return!0};for(const i of s)if((void 0===e||!l(i))&&((!1===n||-1===r.indexOf(i.stack)||void 0===n&&void 0===i.stack)&&r.push(i.stack),i.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const s=this._getStacks(t,i),n=void 0!==e?s.indexOf(e):-1;return-1===n?s.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let n,r;for(n=0,r=e.data.length;n<r;++n)s.push(i.getPixelForValue(this.getParsed(n)[i.axis],n));const o=t.barThickness;return{min:o||Dl(e),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i,index:s},options:{base:n,minBarLength:r}}=this,o=n||0,a=this.getParsed(t),l=a._custom,c=Bl(l);let h,d,u=a[e.axis],p=0,f=i?this.applyStack(e,a,i):u;f!==u&&(p=f-u,f=u),c&&(u=l.barStart,f=l.barEnd-l.barStart,0!==u&&ao(u)!==ao(l.barEnd)&&(p=0),p+=u);const g=Or(n)||c?p:n;let m=e.getPixelForValue(g);if(h=this.chart.getDataVisibility(t)?e.getPixelForValue(p+f):m,d=h-m,Math.abs(d)<r){d=function(t,e,i){return 0!==t?ao(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(d,e,o)*r,u===o&&(m-=d/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),l=Math.min(t,n),p=Math.max(t,n);m=Math.max(Math.min(m,p),l),h=m+d,i&&!c&&(a._stacks[e.axis]._visualValues[s]=e.getValueForPixel(h)-e.getValueForPixel(m))}if(m===e.getPixelForValue(o)){const t=ao(d)*e.getLineWidthForValue(o)/2;m+=t,d-=t}return{size:d,base:m,head:h,center:h+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,s=this.options,n=s.skipNull,r=Rr(s.maxBarThickness,1/0);let o,a;if(e.grouped){const i=n?this._getStackCount(t):e.stackCount,l="flex"===s.barThickness?function(t,e,i,s){const n=e.pixels,r=n[t];let o=t>0?n[t-1]:null,a=t<n.length-1?n[t+1]:null;const l=i.categoryPercentage;null===o&&(o=r-(null===a?e.end-e.start:a-r)),null===a&&(a=r+r-o);const c=r-(r-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/s,ratio:i.barPercentage,start:c}}(t,e,s,i):function(t,e,i,s){const n=i.barThickness;let r,o;return Or(n)?(r=e.min*i.categoryPercentage,o=i.barPercentage):(r=n*s,o=1),{chunk:r/s,ratio:o,start:e.pixels[t]-r/2}}(t,e,s,i),c=this._getStackIndex(this.index,this._cachedMeta.stack,n?t:void 0);o=l.start+l.chunk*c+l.chunk/2,a=Math.min(r,l.chunk*l.ratio)}else o=i.getPixelForValue(this.getParsed(t)[i.axis],t),a=Math.min(r,e.min*e.ratio);return{base:o-a/2,head:o+a/2,center:o,size:a}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,s=i.length;let n=0;for(;n<s;++n)null===this.getParsed(n)[e.axis]||i[n].hidden||i[n].draw(this._ctx)}}class Wl extends Il{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:s=[],_dataset:n}=e,r=this.chart._animationsDisabled;let{start:o,count:a}=Io(e,s,r);this._drawStart=o,this._drawCount=a,Do(e)&&(o=0,a=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!n._decimated,i.points=s;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:l},t),this.updateElements(s,o,a,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:r,vScale:o,_stacked:a,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(e,s),d=r.axis,u=o.axis,{spanGaps:p,segment:f}=this.options,g=ho(p)?p:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||n||"none"===s,x=e+i,b=t.length;let y=e>0&&this.getParsed(e-1);for(let i=0;i<b;++i){const p=t[i],b=m?p:{};if(i<e||i>=x){b.skip=!0;continue}const v=this.getParsed(i),w=Or(v[u]),S=b[d]=r.getPixelForValue(v[d],i),k=b[u]=n||w?o.getBasePixel():o.getPixelForValue(a?this.applyStack(o,v,a):v[u],i);
vendor: 26,444 bytes, line 2
2b.skip=isNaN(S)||isNaN(k)||w,b.stop=i>0&&Math.abs(v[d]-y[d])>g,f&&(b.parsed=v,b.raw=l.data[i]),h&&(b.options=c||this.resolveDataElementOptions(i,p.active?"active":s)),m||this.updateElement(p,i,b,s),y=v}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const n=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,n,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function Yl(t,e,i,s){const{controller:n,data:r,_sorted:o}=t,a=n._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&o&&r.length){const t=a._reversePixels?Ao:Co;if(!s)return t(r,e,i);if(n._sharedOptions){const s=r[0],n="function"==typeof s.getRange&&s.getRange(e);if(n){const s=t(r,e,i-n),o=t(r,e,i+n);return{lo:s.lo,hi:o.hi}}}}return{lo:0,hi:r.length-1}}function Vl(t,e,i,s,n){const r=t.getSortedVisibleDatasetMetas(),o=i[e];for(let t=0,i=r.length;t<i;++t){const{index:i,data:a}=r[t],{lo:l,hi:c}=Yl(r[t],e,o,n);for(let t=l;t<=c;++t){const e=a[t];e.skip||s(e,i,t)}}}function Gl(t,e,i,s,n){const r=[];if(!n&&!t.isPointInArea(e))return r;return Vl(t,i,e,function(i,o,a){(n||ra(i,t.chartArea,0))&&i.inRange(e.x,e.y,s)&&r.push({element:i,datasetIndex:o,index:a})},!0),r}function Ul(t,e,i,s,n,r){let o=[];const a=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,s){const n=e?Math.abs(t.x-s.x):0,r=i?Math.abs(t.y-s.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2))}}(i);let l=Number.POSITIVE_INFINITY;return Vl(t,i,e,function(i,c,h){const d=i.inRange(e.x,e.y,n);if(s&&!d)return;const u=i.getCenterPoint(n);if(!(!!r||t.isPointInArea(u))&&!d)return;const p=a(e,u);p<l?(o=[{element:i,datasetIndex:c,index:h}],l=p):p===l&&o.push({element:i,datasetIndex:c,index:h})}),o}function $l(t,e,i,s,n,r){return r||t.isPointInArea(e)?"r"!==i||s?Ul(t,e,i,s,n,r):function(t,e,i,s){let n=[];return Vl(t,i,e,function(t,i,r){const{startAngle:o,endAngle:a}=t.getProps(["startAngle","endAngle"],s),{angle:l}=mo(t,{x:e.x,y:e.y});vo(l,o,a)&&n.push({element:t,datasetIndex:i,index:r})}),n}(t,e,i,n):[]}function ql(t,e,i,s,n){const r=[],o="x"===i?"inXRange":"inYRange";let a=!1;return Vl(t,i,e,(t,s,l)=>{t[o]&&t[o](e[i],n)&&(r.push({element:t,datasetIndex:s,index:l}),a=a||t.inRange(e.x,e.y,n))}),s&&!a?[]:r}var Kl={evaluateInteractionItems:Vl,modes:{index(t,e,i,s){const n=Za(e,t),r=i.axis||"x",o=i.includeInvisible||!1,a=i.intersect?Gl(t,n,r,s,o):$l(t,n,r,!1,s,o),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=a[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,i,s){const n=Za(e,t),r=i.axis||"xy",o=i.includeInvisible||!1;let a=i.intersect?Gl(t,n,r,s,o):$l(t,n,r,!1,s,o);if(a.length>0){const e=a[0].datasetIndex,i=t.getDatasetMeta(e).data;a=[];for(let t=0;t<i.length;++t)a.push({element:i[t],datasetIndex:e,index:t})}return a},point:(t,e,i,s)=>Gl(t,Za(e,t),i.axis||"xy",s,i.includeInvisible||!1),nearest(t,e,i,s){const n=Za(e,t),r=i.axis||"xy",o=i.includeInvisible||!1;return $l(t,n,r,i.intersect,s,o)},x:(t,e,i,s)=>ql(t,Za(e,t),"x",i.intersect,s),y:(t,e,i,s)=>ql(t,Za(e,t),"y",i.intersect,s)}};const Zl=["left","top","right","bottom"];function Jl(t,e){return t.filter(t=>t.pos===e)}function Ql(t,e){return t.filter(t=>-1===Zl.indexOf(t.pos)&&t.box.axis===e)}function tc(t,e){return t.sort((t,i)=>{const s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight})}function ec(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:s,stackWeight:n}=i;if(!t||!Zl.includes(s))continue;const r=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=n}return e}(t),{vBoxMaxWidth:s,hBoxMaxHeight:n}=e;let r,o,a;for(r=0,o=t.length;r<o;++r){a=t[r];const{fullSize:o}=a.box,l=i[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*s:o&&e.availableWidth,a.height=n):(a.width=s,a.height=c?c*n:o&&e.availableHeight)}return i}function ic(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function sc(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 nc(t,e,i,s){const{pos:n,box:r}=i,o=t.maxPadding;if(!_r(n)){i.size&&(t[n]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?r.height:r.width),i.size=e.size/e.count,t[n]+=i.size}r.getPadding&&sc(o,r.getPadding());const a=Math.max(0,e.outerWidth-ic(o,t,"left","right")),l=Math.max(0,e.outerHeight-ic(o,t,"top","bottom")),c=a!==t.w,h=l!==t.h;return t.w=a,t.h=l,i.horizontal?{same:c,other:h}:{same:h,other:c}}function rc(t,e){const i=e.maxPadding;function s(t){const s={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{s[t]=Math.max(e[t],i[t])}),s}return s(t?["left","right"]:["top","bottom"])}function oc(t,e,i,s){const n=[];let r,o,a,l,c,h;for(r=0,o=t.length,c=0;r<o;++r){a=t[r],l=a.box,l.update(a.width||e.w,a.height||e.h,rc(a.horizontal,e));const{same:o,other:d}=nc(e,i,a,s);c|=o&&n.length,h=h||d,l.fullSize||n.push(a)}return c&&oc(n,e,i,s)||h}function ac(t,e,i,s,n){t.top=i,t.left=e,t.right=e+s,t.bottom=i+n,t.width=s,t.height=n}function lc(t,e,i,s){const n=i.padding;let{x:r,y:o}=e;for(const a of t){const t=a.box,l=s[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/l.weight||1;if(a.horizontal){const s=e.w*c,r=l.size||t.height;qr(l.start)&&(o=l.start),t.fullSize?ac(t,n.left,o,i.outerWidth-n.right-n.left,r):ac(t,e.left+l.placed,o,s,r),l.start=o,l.placed+=s,o=t.bottom}else{const s=e.h*c,o=l.size||t.width;qr(l.start)&&(r=l.start),t.fullSize?ac(t,r,n.top,o,i.outerHeight-n.bottom-n.top):ac(t,r,e.top+l.placed,o,s),l.start=r,l.placed+=s,r=t.right}}e.x=r,e.y=o}var cc={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(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,s){if(!t)return;const n=wa(t.options.layout.padding),r=Math.max(e-n.width,0),o=Math.max(i-n.height,0),a=function(t){const e=function(t){const e=[];let i,s,n,r,o,a;for(i=0,s=(t||[]).length;i<s;++i)n=t[i],({position:r,options:{stack:o,stackWeight:a=1}}=n),e.push({index:i,box:n,pos:r,horizontal:n.isHorizontal(),weight:n.weight,stack:o&&r+o,stackWeight:a});return e}(t),i=tc(e.filter(t=>t.box.fullSize),!0),s=tc(Jl(e,"left"),!0),n=tc(Jl(e,"right")),r=tc(Jl(e,"top"),!0),o=tc(Jl(e,"bottom")),a=Ql(e,"x"),l=Ql(e,"y");return{fullSize:i,leftAndTop:s.concat(r),rightAndBottom:n.concat(l).concat(o).concat(a),chartArea:Jl(e,"chartArea"),vertical:s.concat(n).concat(l),horizontal:r.concat(o).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;jr(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const h=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/h,hBoxMaxHeight:o/2}),u=Object.assign({},n);sc(u,wa(s));const p=Object.assign({maxPadding:u,w:r,h:o,x:n.left,y:n.top},n),f=ec(l.concat(c),d);oc(a.fullSize,p,d,f),oc(l,p,d,f),oc(c,p,d,f)&&oc(l,p,d,f),function(t){const e=t.maxPadding;function i(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(p),lc(a.leftAndTop,p,d,f),p.x+=p.w,p.y+=p.h,lc(a.rightAndBottom,p,d,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},jr(a.chartArea,e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class hc{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class dc extends hc{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const uc="$chartjs",pc={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},fc=t=>null===t||""===t;const gc=!!el&&{passive:!0};function mc(t,e,i){t&&t.canvas&&t.canvas.removeEventListener(e,i,gc)}function xc(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function bc(t,e,i){const s=t.canvas,n=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||xc(i.addedNodes,s),e=e&&!xc(i.removedNodes,s);e&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}function yc(t,e,i){const s=t.canvas,n=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||xc(i.removedNodes,s),e=e&&!xc(i.addedNodes,s);e&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}const vc=new Map;let wc=0;function Sc(){const t=window.devicePixelRatio;t!==wc&&(wc=t,vc.forEach((e,i)=>{i.currentDevicePixelRatio!==t&&e()}))}function kc(t,e,i){const s=t.canvas,n=s&&Ga(s);if(!n)return;const r=Oo((t,e)=>{const s=n.clientWidth;i(t,e),s<n.clientWidth&&i()},window),o=new ResizeObserver(t=>{const e=t[0],i=e.contentRect.width,s=e.contentRect.height;0===i&&0===s||r(i,s)});return o.observe(n),function(t,e){vc.size||window.addEventListener("resize",Sc),vc.set(t,e)}(t,r),o}function Cc(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){vc.delete(t),vc.size||window.removeEventListener("resize",Sc)}(t)}function Ac(t,e,i){const s=t.canvas,n=Oo(e=>{null!==t.ctx&&i(function(t,e){const i=pc[t.type]||t.type,{x:s,y:n}=Za(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==n?n:null}}(e,t))},t);return function(t,e,i){t&&t.addEventListener(e,i,gc)}(s,e,n),n}class Ec extends hc{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,s=t.getAttribute("height"),n=t.getAttribute("width");if(t[uc]={initial:{height:s,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",fc(n)){const e=il(t,"width");void 0!==e&&(t.width=e)}if(fc(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=il(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[uc])return!1;const i=e[uc].initial;["height","width"].forEach(t=>{const s=i[t];Or(s)?e.removeAttribute(t):e.setAttribute(t,s)});const s=i.style||{};return Object.keys(s).forEach(t=>{e.style[t]=s[t]}),e.width=e.width,delete e[uc],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),n={attach:bc,detach:yc,resize:kc}[e]||Ac;s[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];if(!s)return;({attach:Cc,detach:Cc,resize:Cc}[e]||mc)(t,e,s),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return Qa(t,e,i,s)}isAttached(t){const e=t&&Ga(t);return!(!e||!e.isConnected)}}class Mc{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return ho(this.x)&&ho(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach(t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]}),s}}function Tc(t,e){const i=t.options.ticks,s=function(t){const e=t.options.offset,i=t._tickSize(),s=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(s,n))}(t),n=Math.min(i.maxTicksLimit||s,s),r=i.major.enabled?function(t){const e=[];let i,s;for(i=0,s=t.length;i<s;i++)t[i].major&&e.push(i);return e}(e):[],o=r.length,a=r[0],l=r[o-1],c=[];if(o>n)return function(t,e,i,s){let n,r=0,o=i[0];for(s=Math.ceil(s),n=0;n<t.length;n++)n===o&&(e.push(t[n]),r++,o=i[r*s])}(e,c,r,o/n),c;const h=function(t,e,i){const s=function(t){const e=t.length;let i,s;if(e<2)return!1;for(s=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==s)return!1;return s}(t),n=e.length/i;if(!s)return Math.max(n,1);const r=function(t){const e=[],i=Math.sqrt(t);let s;for(s=1;s<i;s++)t%s===0&&(e.push(s),e.push(t/s));return i===(0|i)&&e.push(i),e.sort((t,e)=>t-e).pop(),e}(s);for(let t=0,e=r.length-1;t<e;t++){const e=r[t];if(e>n)return e}return Math.max(n,1)}(r,e,n);if(o>0){let t,i;const s=o>1?Math.round((l-a)/(o-1)):null;for(Pc(e,c,h,Or(s)?0:a-s,a),t=0,i=o-1;t<i;t++)Pc(e,c,h,r[t],r[t+1]);return Pc(e,c,h,l,Or(s)?e.length:l+s),c}return Pc(e,c,h),c}function Pc(t,e,i,s,n){const r=Rr(s,0),o=Math.min(Rr(n,t.length),t.length);let a,l,c,h=0;for(i=Math.ceil(i),n&&(a=n-s,i=a/Math.floor(a/i)),c=r;c<0;)h++,c=Math.round(r+h*i);for(l=Math.max(r,0);l<o;l++)l===c&&(e.push(t[l]),h++,c=Math.round(r+h*i))}const Oc=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i,Lc=(t,e)=>Math.min(e||t,t);function _c(t,e){const i=[],s=t.length/e,n=t.length;let r=0;for(;r<n;r+=s)i.push(t[Math.floor(r)]);return i}function Ic(t,e,i){const s=t.ticks.length,n=Math.min(e,s-1),r=t._startPixel,o=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(n);if(!(i&&(l=1===s?Math.max(c-r,o-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(n-1))/2,c+=n<e?l:-l,c<r-a||c>o+a)))return c}function Dc(t){return t.drawTicks?t.tickLength:0}function Rc(t,e){if(!t.display)return 0;const i=Sa(t.font,e),s=wa(t.padding);return(Lr(t.text)?t.text.length:1)*i.lineHeight+s.height}function Nc(t,e,i){let s=Lo(t);return(i&&"right"!==e||!i&&"right"===e)&&(s=(t=>"left"===t?"right":"right"===t?"left":t)(s)),s}class Bc extends Mc{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:s}=this;return t=Dr(t,Number.POSITIVE_INFINITY),e=Dr(e,Number.NEGATIVE_INFINITY),i=Dr(i,Number.POSITIVE_INFINITY),s=Dr(s,Number.NEGATIVE_INFINITY),{min:Dr(t,i),max:Dr(e,s),minDefined:Ir(t),maxDefined:Ir(e)}}getMinMax(t){let e,{min:i,max:s,minDefined:n,maxDefined:r}=this.getUserBounds();if(n&&r)return{min:i,max:s};const o=this.getMatchingVisibleMetas();for(let a=0,l=o.length;a<l;++a)e=o[a].controller.getMinMax(this,t),n||(i=Math.min(i,e.min)),r||(s=Math.max(s,e.max));return i=r&&i>s?s:i,s=n&&i>s?i:s,{min:Dr(i,Dr(s,i)),max:Dr(s,Dr(i,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Br(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:n,ticks:r}=this.options,o=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,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=function(t,e,i){const{min:s,max:n}=t,r=Nr(e,(n-s)/2),o=(t,e)=>i&&0===t?0:t+e;return{min:o(s,-Math.abs(r)),max:o(n,r)}}(this,n,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=o<this.ticks.length;this._convertTicksToLabels(a?_c(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=Tc(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Br(this.options.afterUpdate,[this])}beforeSetDimensions(){Br(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(){Br(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Br(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Br(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,s,n;for(i=0,s=t.length;i<s;i++)n=t[i],n.label=Br(e.callback,[n.value,i,t],this)}afterTickToLabelConversion(){Br(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Br(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=Lc(this.ticks.length,t.ticks.maxTicksLimit),s=e.minRotation||0,n=e.maxRotation;let r,o,a,l=s;if(!this._isVisible()||!e.display||s>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const c=this._getLabelSizes(),h=c.widest.width,d=c.highest.height,u=wo(this.chart.width-h,0,this.maxWidth);r=t.offset?this.maxWidth/i:u/(i-1),h+6>r&&(r=u/(i-(t.offset?.5:1)),o=this.maxHeight-Dc(t.grid)-e.padding-Rc(t.title,this.chart.options.font),a=Math.sqrt(h*h+d*d),l=fo(Math.min(Math.asin(wo((c.highest.height+6)/r,-1,1)),Math.asin(wo(o/a,-1,1))-Math.asin(wo(d/a,-1,1)))),l=Math.max(s,Math.min(n,l))),this.labelRotation=l}afterCalculateLabelRotation(){Br(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Br(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:n}}=this,r=this._isVisible(),o=this.isHorizontal();if(r){const r=Rc(s,e.options.font);if(o?(t.width=this.maxWidth,t.height=Dc(n)+r):(t.height=this.maxHeight,t.width=Dc(n)+r),i.display&&this.ticks.length){const{first:e,last:s,widest:n,highest:r}=this._getLabelSizes(),a=2*i.padding,l=po(this.labelRotation),c=Math.cos(l),h=Math.sin(l);if(o){const e=i.mirror?0:h*n.width+c*r.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=i.mirror?0:c*n.width+h*r.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,s,h,c)}}this._handleMargins(),o?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){const{ticks:{align:n,padding:r},position:o}=this.options,a=0!==this.labelRotation,l="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,d=0;a?l?(h=s*t.width,d=i*e.height):(h=i*t.height,d=s*e.width):"start"===n?d=e.width:"end"===n?h=t.width:"inner"!==n&&(h=t.width/2,d=e.width/2),this.paddingLeft=Math.max((h-o+r)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-c+r)*this.width/(this.width-c),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+r,this.paddingBottom=s+r}}_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(){Br(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)Or(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=_c(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){const{ctx:s,_longestTextCache:n}=this,r=[],o=[],a=Math.floor(e/Lc(e,i));let l,c,h,d,u,p,f,g,m,x,b,y=0,v=0;for(l=0;l<e;l+=a){if(d=t[l].label,u=this._resolveTickFontOptions(l),s.font=p=u.string,f=n[p]=n[p]||{data:{},gc:[]},g=u.lineHeight,m=x=0,Or(d)||Lr(d)){if(Lr(d))for(c=0,h=d.length;c<h;++c)b=d[c],Or(b)||Lr(b)||(m=ta(s,f.data,f.gc,m,b),x+=g)}else m=ta(s,f.data,f.gc,m,d),x=g;r.push(m),o.push(x),y=Math.max(m,y),v=Math.max(x,v)}!function(t,e){jr(t,t=>{const i=t.gc,s=i.length/2;let n;if(s>e){for(n=0;n<s;++n)delete t.data[i[n]];i.splice(0,s)}})}(n,e);const w=r.indexOf(y),S=o.indexOf(v),k=t=>({width:r[t]||0,height:o[t]||0});return{first:k(0),last:k(e-1),widest:k(w),highest:k(S),widths:r,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return wo(this._alignToPixels?ea(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=function(t,e,i){return Ca(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=Ca(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=po(this.labelRotation),i=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),n=this._getLabelSizes(),r=t.autoSkipPadding||0,o=n?n.widest.width+r:0,a=n?n.highest.height+r:0;return this.isHorizontal()?a*i>o*s?o/i:a/s:a*s<o*i?a/i:o/s}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:n,position:r,border:o}=s,a=n.offset,l=this.isHorizontal(),c=this.ticks.length+(a?1:0),h=Dc(n),d=[],u=o.setContext(this.getContext()),p=u.display?u.width:0,f=p/2,g=function(t){return ea(i,t,p)};let m,x,b,y,v,w,S,k,C,A,E,M;if("top"===r)m=g(this.bottom),w=this.bottom-h,k=m-f,A=g(t.top)+f,M=t.bottom;else if("bottom"===r)m=g(this.top),A=t.top,M=g(t.bottom)-f,w=m+f,k=this.top+h;else if("left"===r)m=g(this.right),v=this.right-h,S=m-f,C=g(t.left)+f,E=t.right;else if("right"===r)m=g(this.left),C=t.left,E=g(t.right)-f,v=m+f,S=this.left+h;else if("x"===e){if("center"===r)m=g((t.top+t.bottom)/2+.5);else if(_r(r)){const t=Object.keys(r)[0],e=r[t];m=g(this.chart.scales[t].getPixelForValue(e))}A=t.top,M=t.bottom,w=m+f,k=w+h}else if("y"===e){if("center"===r)m=g((t.left+t.right)/2);else if(_r(r)){const t=Object.keys(r)[0],e=r[t];m=g(this.chart.scales[t].getPixelForValue(e))}v=m-f,S=v-h,C=t.left,E=t.right}const T=Rr(s.ticks.maxTicksLimit,c),P=Math.max(1,Math.ceil(c/T));for(x=0;x<c;x+=P){const t=this.getContext(x),e=n.setContext(t),s=o.setContext(t),r=e.lineWidth,c=e.color,h=s.dash||[],u=s.dashOffset,p=e.tickWidth,f=e.tickColor,g=e.tickBorderDash||[],m=e.tickBorderDashOffset;b=Ic(this,x,a),void 0!==b&&(y=ea(i,b,r),l?v=S=C=E=y:w=k=A=M=y,d.push({tx1:v,ty1:w,tx2:S,ty2:k,x1:C,y1:A,x2:E,y2:M,width:r,color:c,borderDash:h,borderDashOffset:u,tickWidth:p,tickColor:f,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=c,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,i=this.options,{position:s,ticks:n}=i,r=this.isHorizontal(),o=this.ticks,{align:a,crossAlign:l,padding:c,mirror:h}=n,d=Dc(i.grid),u=d+c,p=h?-c:u,f=-po(this.labelRotation),g=[];let m,x,b,y,v,w,S,k,C,A,E,M,T="middle";if("top"===s)w=this.bottom-p,S=this._getXAxisLabelAlignment();else if("bottom"===s)w=this.top+p,S=this._getXAxisLabelAlignment();else if("left"===s){const t=this._getYAxisLabelAlignment(d);S=t.textAlign,v=t.x}else if("right"===s){const t=this._getYAxisLabelAlignment(d);S=t.textAlign,v=t.x}else if("x"===e){if("center"===s)w=(t.top+t.bottom)/2+u;else if(_r(s)){const t=Object.keys(s)[0],e=s[t];w=this.chart.scales[t].getPixelForValue(e)+u}S=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===s)v=(t.left+t.right)/2-u;else if(_r(s)){const t=Object.keys(s)[0],e=s[t];v=this.chart.scales[t].getPixelForValue(e)}S=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===a?T="top":"end"===a&&(T="bottom"));const P=this._getLabelSizes();for(m=0,x=o.length;m<x;++m){b=o[m],y=b.label;const t=n.setContext(this.getContext(m));k=this.getPixelForTick(m)+n.labelOffset,C=this._resolveTickFontOptions(m),A=C.lineHeight,E=Lr(y)?y.length:1;const e=E/2,i=t.color,a=t.textStrokeColor,c=t.textStrokeWidth;let d,u=S;
vendor: 1,855 bytes, line 2
2if(r?(v=k,"inner"===S&&(u=m===x-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),M="top"===s?"near"===l||0!==f?-E*A+A/2:"center"===l?-P.highest.height/2-e*A+A:-P.highest.height+A/2:"near"===l||0!==f?A/2:"center"===l?P.highest.height/2-e*A:P.highest.height-E*A,h&&(M*=-1),0===f||t.showLabelBackdrop||(v+=A/2*Math.sin(f))):(w=k,M=(1-E)*A/2),t.showLabelBackdrop){const e=wa(t.backdropPadding),i=P.heights[m],s=P.widths[m];let n=M-e.top,r=0-e.left;switch(T){case"middle":n-=i/2;break;case"bottom":n-=i}switch(S){case"center":r-=s/2;break;case"right":r-=s;break;case"inner":m===x-1?r-=s:m>0&&(r-=s/2)}d={left:r,top:n,width:s+e.width,height:i+e.height,color:t.backdropColor}}g.push({label:y,font:C,textOffset:M,options:{rotation:f,color:i,strokeColor:a,strokeWidth:c,textAlign:u,textBaseline:T,translation:[v,w],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-po(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:s,padding:n}}=this.options,r=t+n,o=this._getLabelSizes().widest.width;let a,l;return"left"===e?s?(l=this.right+n,"near"===i?a="left":"center"===i?(a="center",l+=o/2):(a="right",l+=o)):(l=this.right-r,"near"===i?a="right":"center"===i?(a="center",l-=o/2):(a="left",l=this.left)):"right"===e?s?(l=this.left+n,"near"===i?a="right":"center"===i?(a="center",l-=o/2):(a="left",l-=o)):(l=this.left+r,"near"===i?a="left":"center"===i?(a="center",l+=o/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}
vendor: 66,272 bytes, line 2
2:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:s,width:n,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,n,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex(e=>e.value===t);if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,r;const o=(t,e,s)=>{s.width&&s.color&&(i.save(),i.lineWidth=s.width,i.strokeStyle=s.color,i.setLineDash(s.borderDash||[]),i.lineDashOffset=s.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,r=s.length;n<r;++n){const t=s[n];e.drawOnChartArea&&o({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&o({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:i,grid:s}}=this,n=i.setContext(this.getContext()),r=i.display?n.width:0;if(!r)return;const o=s.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,c,h,d;this.isHorizontal()?(l=ea(t,this.left,r)-r/2,c=ea(t,this.right,o)+o/2,h=d=a):(h=ea(t,this.top,r)-r/2,d=ea(t,this.bottom,o)+o/2,l=c=a),e.save(),e.lineWidth=n.width,e.strokeStyle=n.color,e.beginPath(),e.moveTo(l,h),e.lineTo(c,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&oa(e,i);const s=this.getLabelItems(t);for(const t of s){const i=t.options,s=t.font;ua(e,t.label,0,t.textOffset,s,i)}i&&aa(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:s}}=this;if(!i.display)return;const n=Sa(i.font),r=wa(i.padding),o=i.align;let a=n.lineHeight/2;"bottom"===e||"center"===e||_r(e)?(a+=r.bottom,Lr(i.text)&&(a+=n.lineHeight*(i.text.length-1))):a+=r.top;const{titleX:l,titleY:c,maxWidth:h,rotation:d}=function(t,e,i,s){const{top:n,left:r,bottom:o,right:a,chart:l}=t,{chartArea:c,scales:h}=l;let d,u,p,f=0;const g=o-n,m=a-r;if(t.isHorizontal()){if(u=_o(s,r,a),_r(i)){const t=Object.keys(i)[0],s=i[t];p=h[t].getPixelForValue(s)+g-e}else p="center"===i?(c.bottom+c.top)/2+g-e:Oc(t,i,e);d=a-r}else{if(_r(i)){const t=Object.keys(i)[0],s=i[t];u=h[t].getPixelForValue(s)-m+e}else u="center"===i?(c.left+c.right)/2-m+e:Oc(t,i,e);p=_o(s,o,n),f="left"===i?-so:so}return{titleX:u,titleY:p,maxWidth:d,rotation:f}}(this,a,e,o);ua(t,i.text,0,0,n,{color:i.color,maxWidth:h,rotation:d,textAlign:Nc(o,e,s),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=Rr(t.grid&&t.grid.z,-1),s=Rr(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Bc.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let n,r;for(n=0,r=e.length;n<r;++n){const r=e[n];r[i]!==this.id||t&&r.type!==t||s.push(r)}return s}_resolveTickFontOptions(t){return Sa(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class jc{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const s=this.items,n=t.id,r=this.scope+"."+n;if(!n)throw new Error("class does not have id: "+t);return n in s||(s[n]=t,function(t,e,i){const s=Wr(Object.create(null),[i?Qo.get(i):{},Qo.get(e),t.defaults]);Qo.set(e,s),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(i=>{const s=i.split("."),n=s.pop(),r=[t].concat(s).join("."),o=e[i].split("."),a=o.pop(),l=o.join(".");Qo.route(r,n,l,a)})}(e,t.defaultRoutes);t.descriptors&&Qo.describe(e,t.descriptors)}(t,r,i),this.override&&Qo.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in Qo[s]&&(delete Qo[s][i],this.override&&delete $o[i])}}class Fc{constructor(){this.controllers=new jc(Il,"datasets",!0),this.elements=new jc(Mc,"elements"),this.plugins=new jc(Object,"plugins"),this.scales=new jc(Bc,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(e=>{const s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):jr(e,e=>{const s=i||this._getRegistryForType(e);this._exec(t,s,e)})})}_exec(t,e,i){const s=$r(t);Br(i["before"+s],[],i),e[t](i),Br(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const s=e.get(t);if(void 0===s)throw new Error('"'+t+'" is not a registered '+i+".");return s}}var zc=new Fc;class Hc{constructor(){this._init=[]}notify(t,e,i,s){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const n=s?this._descriptors(t).filter(s):this._descriptors(t),r=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,e,i,s){s=s||{};for(const n of t){const t=n.plugin;if(!1===Br(t[i],[e,s,n.options],t)&&s.cancelable)return!1}return!0}invalidate(){Or(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,s=Rr(i.options&&i.options.plugins,{}),n=function(t){const e={},i=[],s=Object.keys(zc.plugins.items);for(let t=0;t<s.length;t++)i.push(zc.getPlugin(s[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const s=n[t];-1===i.indexOf(s)&&(i.push(s),e[s.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==s||e?function(t,{plugins:e,localIds:i},s,n){const r=[],o=t.getContext();for(const a of e){const e=a.id,l=Xc(s[e],n);null!==l&&r.push({plugin:a,options:Wc(t.config,{plugin:a,local:i[e]},l,o)})}return r}(t,n,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,s=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function Xc(t,e){return e||!1!==t?!0===t?{}:t:null}function Wc(t,{plugin:e,local:i},s,n){const r=t.pluginScopeKeys(e),o=t.getOptionScopes(s,r);return i&&e.defaults&&o.push(e.defaults),t.createResolver(o,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Yc(t,e){const i=Qo.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Vc(t){if("x"===t||"y"===t||"r"===t)return t}function Gc(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function Uc(t,...e){if(Vc(t))return t;for(const i of e){const e=i.axis||Gc(i.position)||t.length>1&&Vc(t[0].toLowerCase());if(e)return e}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function $c(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function qc(t,e){const i=$o[t.type]||{scales:{}},s=e.scales||{},n=Yc(t.type,e),r=Object.create(null);return Object.keys(s).forEach(e=>{const o=s[e];if(!_r(o))return console.error(`Invalid scale configuration for scale: ${e}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const a=Uc(e,o,function(t,e){if(e.data&&e.data.datasets){const i=e.data.datasets.filter(e=>e.xAxisID===t||e.yAxisID===t);if(i.length)return $c(t,"x",i[0])||$c(t,"y",i[0])}return{}}(e,t),Qo.scales[o.type]),l=function(t,e){return t===e?"_index_":"_value_"}(a,n),c=i.scales||{};r[e]=Yr(Object.create(null),[{axis:a},o,c[a],c[l]])}),t.data.datasets.forEach(i=>{const n=i.type||t.type,o=i.indexAxis||Yc(n,e),a=($o[n]||{}).scales||{};Object.keys(a).forEach(t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,o),n=i[e+"AxisID"]||e;r[n]=r[n]||Object.create(null),Yr(r[n],[{axis:e},s[n],a[t]])})}),Object.keys(r).forEach(t=>{const e=r[t];Yr(e,[Qo.scales[e.type],Qo.scale])}),r}function Kc(t){const e=t.options||(t.options={});e.plugins=Rr(e.plugins,{}),e.scales=qc(t,e)}function Zc(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Jc=new Map,Qc=new Set;function th(t,e){let i=Jc.get(t);return i||(i=e(),Jc.set(t,i),Qc.add(i)),i}const eh=(t,e,i)=>{const s=Ur(e,i);void 0!==s&&t.add(s)};class ih{constructor(t){this._config=function(t){return(t=t||{}).data=Zc(t.data),Kc(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Zc(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Kc(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return th(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return th(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return th(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return th(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:s,type:n}=this,r=this._cachedScopes(t,i),o=r.get(e);if(o)return o;const a=new Set;e.forEach(e=>{t&&(a.add(t),e.forEach(e=>eh(a,t,e))),e.forEach(t=>eh(a,s,t)),e.forEach(t=>eh(a,$o[n]||{},t)),e.forEach(t=>eh(a,Qo,t)),e.forEach(t=>eh(a,qo,t))});const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),Qc.has(e)&&r.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,$o[e]||{},Qo.datasets[e]||{},{type:e},Qo,qo]}resolveNamedOptions(t,e,i,s=[""]){const n={$shared:!0},{resolver:r,subPrefixes:o}=sh(this._resolverCache,t,s);let a=r;if(function(t,e){const{isScriptable:i,isIndexable:s}=Ma(t);for(const n of e){const e=i(n),r=s(n),o=(r||e)&&t[n];if(e&&(Kr(o)||nh(o))||r&&Lr(o))return!0}return!1}(r,e)){n.$shared=!1;a=Ea(r,i=Kr(i)?i():i,this.createResolver(t,i,o))}for(const t of e)n[t]=a[t];return n}createResolver(t,e,i=[""],s){const{resolver:n}=sh(this._resolverCache,t,i);return _r(e)?Ea(n,e,void 0,s):n}}function sh(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const n=i.join();let r=s.get(n);if(!r){r={resolver:Aa(e,i),subPrefixes:i.filter(t=>!t.toLowerCase().includes("hover"))},s.set(n,r)}return r}const nh=t=>_r(t)&&Object.getOwnPropertyNames(t).some(e=>Kr(t[e]));const rh=["top","bottom","left","right","chartArea"];function oh(t,e){return"top"===t||"bottom"===t||-1===rh.indexOf(t)&&"x"===e}function ah(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function lh(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),Br(i&&i.onComplete,[t],e)}function ch(t){const e=t.chart,i=e.options.animation;Br(i&&i.onProgress,[t],e)}function hh(t){return Va()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const dh={},uh=t=>{const e=hh(t);return Object.values(dh).filter(t=>t.canvas===e).pop()};function ph(t,e,i){const s=Object.keys(t);for(const n of s){const s=+n;if(s>=e){const r=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=r)}}}function fh(t,e,i){return t.options.clip?t[i]:e[i]}class gh{static defaults=Qo;static instances=dh;static overrides=$o;static registry=zc;static version="4.4.4";static getChart=uh;static register(...t){zc.add(...t),mh()}static unregister(...t){zc.remove(...t),mh()}constructor(t,e){const i=this.config=new ih(e),s=hh(t),n=uh(s);if(n)throw new Error("Canvas is already in use. Chart with ID '"+n.id+"' must be destroyed before the canvas with ID '"+n.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!Va()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?dc:Ec}(s)),this.platform.updateConfig(i);const o=this.platform.acquireContext(s,r.aspectRatio),a=o&&o.canvas,l=a&&a.height,c=a&&a.width;this.id=Pr(),this.ctx=o,this.canvas=a,this.width=c,this.height=l,this._options=r,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 Hc,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...s){return e?(clearTimeout(i),i=setTimeout(t,e,s)):t.apply(this,s),e}}(t=>this.update(t),r.resizeDelay||0),this._dataChanges=[],dh[this.id]=this,o&&a?(xl.listen(this,"complete",lh),xl.listen(this,"progress",ch),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:s,_aspectRatio:n}=this;return Or(t)?e&&n?n:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return zc}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():tl(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ia(this.canvas,this.ctx),this}stop(){return xl.stop(this),this}resize(t,e){xl.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,e,n),o=i.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,tl(this,o,!0)&&(this.notifyPlugins("resize",{size:r}),Br(i.onResize,[this,r],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){jr(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce((t,e)=>(t[e]=!1,t),{});let n=[];e&&(n=n.concat(Object.keys(e).map(t=>{const i=e[t],s=Uc(t,i),n="r"===s,r="x"===s;return{options:i,dposition:n?"chartArea":r?"bottom":"left",dtype:n?"radialLinear":r?"category":"linear"}}))),jr(n,e=>{const n=e.options,r=n.id,o=Uc(r,n),a=Rr(n.type,e.dtype);void 0!==n.position&&oh(n.position,o)===oh(e.dposition)||(n.position=e.dposition),s[r]=!0;let l=null;if(r in i&&i[r].type===a)l=i[r];else{l=new(zc.getScale(a))({id:r,type:a,ctx:this.ctx,chart:this}),i[l.id]=l}l.init(n,t)}),jr(s,(t,e)=>{t||delete i[e]}),jr(i,t=>{cc.configure(this,t,t.options),cc.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(ah("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,i)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i<s;i++){const s=e[i];let n=this.getDatasetMeta(i);const r=s.type||this.config.type;if(n.type&&n.type!==r&&(this._destroyDatasetMeta(i),n=this.getDatasetMeta(i)),n.type=r,n.indexAxis=s.indexAxis||Yc(r,this.options),n.order=s.order||0,n.index=i,n.label=""+s.label,n.visible=this.isDatasetVisible(i),n.controller)n.controller.updateIndex(i),n.controller.linkScales();else{const e=zc.getController(r),{datasetElementType:s,dataElementType:o}=Qo.datasets[r];Object.assign(e,{dataElementType:zc.getElement(o),datasetElementType:s&&zc.getElement(s)}),n.controller=new e(this,i),t.push(n.controller)}}return this._updateMetasets(),t}_resetElements(){jr(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!s&&-1===n.indexOf(e);e.buildOrUpdateElements(i),r=Math.max(+e.getMaxOverflow(),r)}r=this._minPadding=i.layout.autoPadding?r:0,this._updateLayout(r),s||jr(n,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ah("z","_idx"));const{_active:o,_lastEvent:a}=this;a?this._eventHandler(a,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){jr(this.scales,t=>{cc.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);Zr(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:n}of e){ph(t,s,"_removeElements"===i?-n:n)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),s=i(0);for(let t=1;t<e;t++)if(!Zr(s,i(t)))return;return Array.from(s).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;cc.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],jr(this.boxes,t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,Kr(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",s)&&(i.controller._update(e),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(xl.has(this)?this.attached&&!xl.running(this)&&xl.start(this):(this.draw(),lh({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let s,n;for(s=0,n=e.length;s<n;++s){const n=e[s];t&&!n.visible||i.push(n)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,s=!i.disabled,n=function(t,e){const{xScale:i,yScale:s}=t;return i&&s?{left:fh(i,e,"left"),right:fh(i,e,"right"),top:fh(s,e,"top"),bottom:fh(s,e,"bottom")}:e}(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(s&&oa(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),s&&aa(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return ra(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){const n=Kl.modes[e];return"function"==typeof n?n(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter(t=>t&&t._dataset===e).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=Ca(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const s=i?"show":"hide",n=this.getDatasetMeta(t),r=n.controller._resolveAnimations(void 0,s);qr(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(n,{visible:i}),this.update(e=>e.datasetIndex===t?s:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),xl.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),ia(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete dh[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};jr(this.options.events,t=>i(t,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(i,s)=>{t[i]&&(e.removeEventListener(this,i,s),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let r;const o=()=>{s("attach",o),this.attached=!0,this.resize(),i("resize",n),i("detach",r)};r=()=>{this.attached=!1,s("resize",n),this._stop(),this._resize(0,0),i("attach",o)},e.isAttached(this.canvas)?o():r()}unbindEvents(){jr(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},jr(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let n,r,o,a;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+s+"DatasetHoverStyle"]()),o=0,a=t.length;o<a;++o){r=t[o];const e=r&&this.getDatasetMeta(r.datasetIndex).controller;e&&e[s+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map(({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}});!Fr(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter(e=>e.plugin.id===t).length}_updateHoverStyles(t,e,i){const s=this.options.hover,n=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),r=n(e,t),o=i?t:n(t,e);r.length&&this.updateHoverStyle(r,s.mode,!1),o.length&&s.mode&&this.updateHoverStyle(o,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:n}=this,r=e,o=this._getActiveElements(t,s,i,r),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,i,s){return i&&"mouseout"!==t.type?s?e:t:null}(t,this._lastEvent,i,a);i&&(this._lastEvent=null,Br(n.onHover,[t,o,this],this),a&&Br(n.onClick,[t,o,this],this));const c=!Fr(o,s);return(c||e)&&(this._active=o,this._updateHoverStyles(o,s,e)),this._lastEvent=l,c}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}function mh(){return jr(gh.instances,t=>t._plugins.invalidate())}function xh(t,e,i=e){t.lineCap=Rr(i.borderCapStyle,e.borderCapStyle),t.setLineDash(Rr(i.borderDash,e.borderDash)),t.lineDashOffset=Rr(i.borderDashOffset,e.borderDashOffset),t.lineJoin=Rr(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Rr(i.borderWidth,e.borderWidth),t.strokeStyle=Rr(i.borderColor,e.borderColor)}function bh(t,e,i){t.lineTo(i.x,i.y)}function yh(t,e,i={}){const s=t.length,{start:n=0,end:r=s-1}=i,{start:o,end:a}=e,l=Math.max(n,o),c=Math.min(r,a),h=n<o&&r<o||n>a&&r>a;return{count:s,start:l,loop:e.loop,ilen:c<l&&!h?s+c-l:c-l}}function vh(t,e,i,s){const{points:n,options:r}=e,{count:o,start:a,loop:l,ilen:c}=yh(n,i,s),h=function(t){return t.stepped?la:t.tension||"monotone"===t.cubicInterpolationMode?ca:bh}(r);let d,u,p,{move:f=!0,reverse:g}=s||{};for(d=0;d<=c;++d)u=n[(a+(g?c-d:d))%o],u.skip||(f?(t.moveTo(u.x,u.y),f=!1):h(t,p,u,g,r.stepped),p=u);return l&&(u=n[(a+(g?c:0))%o],h(t,p,u,g,r.stepped)),!!l}function wh(t,e,i,s){const n=e.points,{count:r,start:o,ilen:a}=yh(n,i,s),{move:l=!0,reverse:c}=s||{};let h,d,u,p,f,g,m=0,x=0;const b=t=>(o+(c?a-t:t))%r,y=()=>{p!==f&&(t.lineTo(m,f),t.lineTo(m,p),t.lineTo(m,g))};for(l&&(d=n[b(0)],t.moveTo(d.x,d.y)),h=0;h<=a;++h){if(d=n[b(h)],d.skip)continue;const e=d.x,i=d.y,s=0|e;s===u?(i<p?p=i:i>f&&(f=i),m=(x*m+e)/++x):(y(),t.lineTo(e,i),u=s,x=0,p=f=i),g=i}y()}function Sh(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i)?wh:vh}const kh="function"==typeof Path2D;function Ch(t,e,i,s){kh&&!e.options.segment?function(t,e,i,s){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,s)&&n.closePath()),xh(t,e.options),t.stroke(n)}(t,e,i,s):function(t,e,i,s){const{segments:n,options:r}=e,o=Sh(e);for(const a of n)xh(t,r,a.style),t.beginPath(),o(t,e,a,{start:i,end:i+s-1})&&t.closePath(),t.stroke()}(t,e,i,s)}class Ah extends Mc{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;Ya(this._points,i,t,s,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const i=t.points,s=t.options.spanGaps,n=i.length;if(!n)return[];const r=!!t._loop,{start:o,end:a}=function(t,e,i,s){let n=0,r=e-1;if(i&&!s)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,i&&(r+=n);r>n&&t[r%e].skip;)r--;return r%=e,{start:n,end:r}}(i,n,r,s);return pl(t,!0===s?[{start:o,end:a,loop:r}]:function(t,e,i,s){const n=t.length,r=[];let o,a=e,l=t[e];for(o=e+1;o<=i;++o){const i=t[o%n];i.skip||i.stop?l.skip||(s=!1,r.push({start:e%n,end:(o-1)%n,loop:s}),e=a=i.stop?o:null):(a=o,l.skip&&(e=o)),l=i}return null!==a&&r.push({start:e%n,end:a%n,loop:s}),r}(i,o,a<o?a+n:a,!!t._fullLoop&&0===o&&a===n-1),i,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,s=t[e],n=this.points,r=ul(this,{property:e,start:s,end:s});if(!r.length)return;const o=[],a=function(t){return t.stepped?nl:t.tension||"monotone"===t.cubicInterpolationMode?rl:sl}(i);let l,c;for(l=0,c=r.length;l<c;++l){const{start:c,end:h}=r[l],d=n[c],u=n[h];if(d===u){o.push(d);continue}const p=a(d,u,Math.abs((s-d[e])/(u[e]-d[e])),i.stepped);p[e]=t[e],o.push(p)}return 1===o.length?o[0]:o}pathSegment(t,e,i){return Sh(this)(t,this,e,i)}path(t,e,i){const s=this.segments,n=Sh(this);let r=this._loop;e=e||0,i=i||this.points.length-e;for(const o of s)r&=n(t,this,o,{start:e,end:e+i-1});return!!r}draw(t,e,i,s){const n=this.options||{};(this.points||[]).length&&n.borderWidth&&(t.save(),Ch(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Eh(t,e,i,s){const n=t.options,{[i]:r}=t.getProps([i],s);return Math.abs(e-r)<n.radius+n.hitRadius}class Mh extends Mc{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.options,{x:n,y:r}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-r,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(t,e){return Eh(this,t,"x",e)}inYRange(t,e){return Eh(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!ra(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,sa(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Th(t,e){const{x:i,y:s,base:n,width:r,height:o}=t.getProps(["x","y","base","width","height"],e);let a,l,c,h,d;return t.horizontal?(d=o/2,a=Math.min(i,n),l=Math.max(i,n),c=s-d,h=s+d):(d=r/2,a=i-d,l=i+d,c=Math.min(s,n),h=Math.max(s,n)),{left:a,top:c,right:l,bottom:h}}function Ph(t,e,i,s){return t?0:wo(e,i,s)}function Oh(t){const e=Th(t),i=e.right-e.left,s=e.bottom-e.top,n=function(t,e,i){const s=t.options.borderWidth,n=t.borderSkipped,r=ya(s);return{t:Ph(n.top,r.top,0,i),r:Ph(n.right,r.right,0,e),b:Ph(n.bottom,r.bottom,0,i),l:Ph(n.left,r.left,0,e)}}(t,i/2,s/2),r=function(t,e,i){const{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,r=va(n),o=Math.min(e,i),a=t.borderSkipped,l=s||_r(n);return{topLeft:Ph(!l||a.top||a.left,r.topLeft,0,o),topRight:Ph(!l||a.top||a.right,r.topRight,0,o),bottomLeft:Ph(!l||a.bottom||a.left,r.bottomLeft,0,o),bottomRight:Ph(!l||a.bottom||a.right,r.bottomRight,0,o)}}(t,i/2,s/2);return{outer:{x:e.left,y:e.top,w:i,h:s,radius:r},inner:{x:e.left+n.l,y:e.top+n.t,w:i-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,r.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(n.b,n.r))}}}}function Lh(t,e,i,s){const n=null===e,r=null===i,o=t&&!(n&&r)&&Th(t,s);return o&&(n||So(e,o.left,o.right))&&(r||So(i,o.top,o.bottom))}function _h(t,e){t.rect(e.x,e.y,e.w,e.h)}function Ih(t,e,i={}){const s=t.x!==i.x?-e:0,n=t.y!==i.y?-e:0,r=(t.x+t.w!==i.x+i.w?e:0)-s,o=(t.y+t.h!==i.y+i.h?e:0)-n;return{x:t.x+s,y:t.y+n,w:t.w+r,h:t.h+o,radius:t.radius}}class Dh extends Mc{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:s}}=this,{inner:n,outer:r}=Oh(this),o=(a=r.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?pa:_h;var a;t.save(),r.w===n.w&&r.h===n.h||(t.beginPath(),o(t,Ih(r,e,n)),t.clip(),o(t,Ih(n,-e,r)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),o(t,Ih(n,e)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,e,i){return Lh(this,t,e,i)}inXRange(t,e){return Lh(this,t,null,e)}inYRange(t,e){return Lh(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:s,horizontal:n}=this.getProps(["x","y","base","horizontal"],t);return{x:n?(e+s)/2:e,y:n?i:(i+s)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}const Rh=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class Nh extends Mc{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,e,i){this.maxWidth=t,this.maxHeight=e,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 t=this.options.labels||{};let e=Br(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,i)=>t.sort(e,i,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,s=Sa(i.font),n=s.size,r=this._computeTitleHeight(),{boxWidth:o,itemHeight:a}=Rh(i,n);let l,c;e.font=s.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(r,n,o,a)+10):(c=this.maxHeight,l=this._fitCols(r,s,o,a)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:n,maxWidth:r,options:{labels:{padding:o}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=s+o;let h=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-c;return this.legendItems.forEach((t,p)=>{const f=i+e/2+n.measureText(t.text).width;(0===p||l[l.length-1]+f+2*o>r)&&(h+=c,l[l.length-(p>0?0:1)]=0,u+=c,d++),a[p]={left:0,top:u,row:d,width:f,height:s},l[l.length-1]+=f+o}),h}_fitCols(t,e,i,s){const{ctx:n,maxHeight:r,options:{labels:{padding:o}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=r-t;let h=o,d=0,u=0,p=0,f=0;return this.legendItems.forEach((t,r)=>{const{itemWidth:g,itemHeight:m}=function(t,e,i,s,n){const r=function(t,e,i,s){let n=t.text;n&&"string"!=typeof n&&(n=n.reduce((t,e)=>t.length>e.length?t:e));return e+i.size/2+s.measureText(n).width}(s,t,e,i),o=function(t,e,i){let s=t;"string"!=typeof e.text&&(s=Bh(e,i));return s}(n,s,e.lineHeight);return{itemWidth:r,itemHeight:o}}(i,e,n,t,s);r>0&&u+m+2*o>c&&(h+=d+o,l.push({width:d,height:u}),p+=d+o,f++,d=u=0),a[r]={left:p,top:u,col:f,width:g,height:m},d=Math.max(d,g),u+=m+o}),h+=d,l.push({width:d,height:u}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:n}}=this,r=ol(n,this.left,this.width);if(this.isHorizontal()){let n=0,o=_o(i,this.left+s,this.right-this.lineWidths[n]);for(const a of e)n!==a.row&&(n=a.row,o=_o(i,this.left+s,this.right-this.lineWidths[n])),a.top+=this.top+t+s,a.left=r.leftForLtr(r.x(o),a.width),o+=a.width+s}else{let n=0,o=_o(i,this.top+t+s,this.bottom-this.columnSizes[n].height);for(const a of e)a.col!==n&&(n=a.col,o=_o(i,this.top+t+s,this.bottom-this.columnSizes[n].height)),a.top=o,a.left+=this.left+s,a.left=r.leftForLtr(r.x(a.left),a.width),o+=a.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;oa(t,this),this._draw(),aa(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:s}=this,{align:n,labels:r}=t,o=Qo.color,a=ol(t.rtl,this.left,this.width),l=Sa(r.font),{padding:c}=r,h=l.size,d=h/2;let u;this.drawTitle(),s.textAlign=a.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=l.string;const{boxWidth:p,boxHeight:f,itemHeight:g}=Rh(r,h),m=this.isHorizontal(),x=this._computeTitleHeight();u=m?{x:_o(n,this.left+c,this.right-i[0]),y:this.top+c+x,line:0}:{x:this.left+c,y:_o(n,this.top+x+c,this.bottom-e[0].height),line:0},al(this.ctx,t.textDirection);const b=g+c;this.legendItems.forEach((y,v)=>{s.strokeStyle=y.fontColor,s.fillStyle=y.fontColor;const w=s.measureText(y.text).width,S=a.textAlign(y.textAlign||(y.textAlign=r.textAlign)),k=p+d+w;let C=u.x,A=u.y;a.setWidth(this.width),m?v>0&&C+k+c>this.right&&(A=u.y+=b,u.line++,C=u.x=_o(n,this.left+c,this.right-i[u.line])):v>0&&A+b>this.bottom&&(C=u.x=C+e[u.line].width+c,u.line++,A=u.y=_o(n,this.top+x+c,this.bottom-e[u.line].height));if(function(t,e,i){if(isNaN(p)||p<=0||isNaN(f)||f<0)return;s.save();const n=Rr(i.lineWidth,1);if(s.fillStyle=Rr(i.fillStyle,o),s.lineCap=Rr(i.lineCap,"butt"),s.lineDashOffset=Rr(i.lineDashOffset,0),s.lineJoin=Rr(i.lineJoin,"miter"),s.lineWidth=n,s.strokeStyle=Rr(i.strokeStyle,o),s.setLineDash(Rr(i.lineDash,[])),r.usePointStyle){const o={radius:f*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},l=a.xPlus(t,p/2);na(s,o,l,e+d,r.pointStyleWidth&&p)}else{const r=e+Math.max((h-f)/2,0),o=a.leftForLtr(t,p),l=va(i.borderRadius);s.beginPath(),Object.values(l).some(t=>0!==t)?pa(s,{x:o,y:r,w:p,h:f,radius:l}):s.rect(o,r,p,f),s.fill(),0!==n&&s.stroke()}s.restore()}(a.x(C),A,y),C=((t,e,i,s)=>t===(s?"left":"right")?i:"center"===t?(e+i)/2:e)(S,C+p+d,m?C+k:this.right,t.rtl),function(t,e,i){ua(s,i.text,t,e+g/2,l,{strikethrough:i.hidden,textAlign:a.textAlign(i.textAlign)})}(a.x(C),A,y),m)u.x+=k+c;else if("string"!=typeof y.text){const t=l.lineHeight;u.y+=Bh(y,t)+c}else u.y+=b}),ll(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=Sa(e.font),s=wa(e.padding);if(!e.display)return;const n=ol(t.rtl,this.left,this.width),r=this.ctx,o=e.position,a=i.size/2,l=s.top+a;let c,h=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,h=_o(t.align,h,this.right-d);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+_o(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=_o(o,h,h+d);r.textAlign=n.textAlign(Lo(o)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=i.string,ua(r,e.text,u,c,i)}_computeTitleHeight(){const t=this.options.title,e=Sa(t.font),i=wa(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,n;if(So(t,this.left,this.right)&&So(e,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;++i)if(s=n[i],So(t,s.left,s.left+s.width)&&So(e,s.top,s.top+s.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const r=this._hoveredItem,o=(n=i,null!==(s=r)&&null!==n&&s.datasetIndex===n.datasetIndex&&s.index===n.index);r&&!o&&Br(e.onLeave,[t,r,this],this),this._hoveredItem=i,i&&!o&&Br(e.onHover,[t,i,this],this)}else i&&Br(e.onClick,[t,i,this],this);var s,n}}function Bh(t,e){return e*(t.text?t.text.length:0)}var jh={id:"legend",_element:Nh,start(t,e,i){const s=t.legend=new Nh({ctx:t.ctx,options:i,chart:t});cc.configure(t,s,i),cc.addBox(t,s)},stop(t){cc.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const s=t.legend;cc.configure(t,s,i),s.options=i},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,i){const s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),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:i,pointStyle:s,textAlign:n,color:r,useBorderRadius:o,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const l=t.controller.getStyle(i?0:void 0),c=wa(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:s||l.pointStyle,rotation:l.rotation,textAlign:n||l.textAlign,borderRadius:o&&(a||l.borderRadius),datasetIndex:t.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 Fh extends Mc{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const s=Lr(i.text)?i.text.length:1;this._padding=wa(i.padding);const n=s*Sa(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=n:this.width=n}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:s,right:n,options:r}=this,o=r.align;let a,l,c,h=0;return this.isHorizontal()?(l=_o(o,i,n),c=e+t,a=n-i):("left"===r.position?(l=i+t,c=_o(o,s,e),h=-.5*Jr):(l=n-t,c=_o(o,e,s),h=.5*Jr),a=s-e),{titleX:l,titleY:c,maxWidth:a,rotation:h}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=Sa(e.font),s=i.lineHeight/2+this._padding.top,{titleX:n,titleY:r,maxWidth:o,rotation:a}=this._drawArgs(s);ua(t,e.text,0,0,i,{color:e.color,maxWidth:o,rotation:a,textAlign:Lo(e.align),textBaseline:"middle",translation:[n,r]})}}var zh={id:"title",_element:Fh,start(t,e,i){!function(t,e){const i=new Fh({ctx:t.ctx,options:e,chart:t});cc.configure(t,i,e),cc.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;cc.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;cc.configure(t,s,i),s.options=i},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}};new WeakMap;const Hh={average(t){if(!t.length)return!1;let e,i,s=new Set,n=0,r=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();s.add(t.x),n+=t.y,++r}}if(0===r||0===s.size)return!1;return{x:[...s].reduce((t,e)=>t+e)/s.size,y:n/r}},nearest(t,e){if(!t.length)return!1;let i,s,n,r=e.x,o=e.y,a=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i<s;++i){const s=t[i].element;if(s&&s.hasValue()){const t=xo(e,s.getCenterPoint());t<a&&(a=t,n=s)}}if(n){const t=n.tooltipPosition();r=t.x,o=t.y}return{x:r,y:o}}};function Xh(t,e){return e&&(Lr(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Wh(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Yh(t,e){const{element:i,datasetIndex:s,index:n}=e,r=t.getDatasetMeta(s).controller,{label:o,value:a}=r.getLabelAndValue(n);return{chart:t,label:o,parsed:r.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:a,dataset:r.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function Vh(t,e){const i=t.chart.ctx,{body:s,footer:n,title:r}=t,{boxWidth:o,boxHeight:a}=e,l=Sa(e.bodyFont),c=Sa(e.titleFont),h=Sa(e.footerFont),d=r.length,u=n.length,p=s.length,f=wa(e.padding);let g=f.height,m=0,x=s.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(x+=t.beforeBody.length+t.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),x){g+=p*(e.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(x-p)*l.lineHeight+(x-1)*e.bodySpacing}u&&(g+=e.footerMarginTop+u*h.lineHeight+(u-1)*e.footerSpacing);let b=0;const y=function(t){m=Math.max(m,i.measureText(t).width+b)};return i.save(),i.font=c.string,jr(t.title,y),i.font=l.string,jr(t.beforeBody.concat(t.afterBody),y),b=e.displayColors?o+2+e.boxPadding:0,jr(s,t=>{jr(t.before,y),jr(t.lines,y),jr(t.after,y)}),b=0,i.font=h.string,jr(t.footer,y),i.restore(),m+=f.width,{width:m,height:g}}function Gh(t,e,i,s){const{x:n,width:r}=i,{width:o,chartArea:{left:a,right:l}}=t;let c="center";return"center"===s?c=n<=(a+l)/2?"left":"right":n<=r/2?c="left":n>=o-r/2&&(c="right"),function(t,e,i,s){const{x:n,width:r}=s,o=i.caretSize+i.caretPadding;return"left"===t&&n+r+o>e.width||"right"===t&&n-r-o<0||void 0}(c,t,e,i)&&(c="center"),c}function Uh(t,e,i){const s=i.yAlign||e.yAlign||function(t,e){const{y:i,height:s}=e;return i<s/2?"top":i>t.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||Gh(t,e,i,s),yAlign:s}}function $h(t,e,i,s){const{caretSize:n,caretPadding:r,cornerRadius:o}=t,{xAlign:a,yAlign:l}=i,c=n+r,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:p}=va(o);let f=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,a);const g=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:s-="bottom"===e?n+i:n/2,s}(e,l,c);return"center"===l?"left"===a?f+=c:"right"===a&&(f-=c):"left"===a?f-=Math.max(h,u)+n:"right"===a&&(f+=Math.max(d,p)+n),{x:wo(f,0,s.width-e.width),y:wo(g,0,s.height-e.height)}}function qh(t,e,i){const s=wa(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function Kh(t){return Xh([],Wh(t))}function Zh(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const Jh={beforeTitle:Tr,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex<s)return i[e.dataIndex]}return""},afterTitle:Tr,beforeBody:Tr,beforeLabel:Tr,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return Or(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Tr,afterBody:Tr,beforeFooter:Tr,footer:Tr,afterFooter:Tr};function Qh(t,e,i,s){const n=t[e].call(i,s);return void 0===n?Jh[e].call(i,s):n}class td extends Mc{static positioners=Hh;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,n=new wl(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,Ca(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,s=Qh(i,"beforeTitle",this,t),n=Qh(i,"title",this,t),r=Qh(i,"afterTitle",this,t);let o=[];return o=Xh(o,Wh(s)),o=Xh(o,Wh(n)),o=Xh(o,Wh(r)),o}getBeforeBody(t,e){return Kh(Qh(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,s=[];return jr(t,t=>{const e={before:[],lines:[],after:[]},n=Zh(i,t);Xh(e.before,Wh(Qh(n,"beforeLabel",this,t))),Xh(e.lines,Qh(n,"label",this,t)),Xh(e.after,Wh(Qh(n,"afterLabel",this,t))),s.push(e)}),s}getAfterBody(t,e){return Kh(Qh(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,s=Qh(i,"beforeFooter",this,t),n=Qh(i,"footer",this,t),r=Qh(i,"afterFooter",this,t);let o=[];return o=Xh(o,Wh(s)),o=Xh(o,Wh(n)),o=Xh(o,Wh(r)),o}_createItems(t){const e=this._active,i=this.chart.data,s=[],n=[],r=[];let o,a,l=[];for(o=0,a=e.length;o<a;++o)l.push(Yh(this.chart,e[o]));return t.filter&&(l=l.filter((e,s,n)=>t.filter(e,s,n,i))),t.itemSort&&(l=l.sort((e,s)=>t.itemSort(e,s,i))),jr(l,e=>{const i=Zh(t.callbacks,e);s.push(Qh(i,"labelColor",this,e)),n.push(Qh(i,"labelPointStyle",this,e)),r.push(Qh(i,"labelTextColor",this,e))}),this.labelColors=s,this.labelPointStyles=n,this.labelTextColors=r,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let n,r=[];if(s.length){const t=Hh[i.position].call(this,s,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);const e=this._size=Vh(this,i),o=Object.assign({},t,e),a=Uh(this.chart,i,o),l=$h(i,o,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,n={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=r,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:n}=this,{caretSize:r,cornerRadius:o}=i,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:h}=va(o),{x:d,y:u}=t,{width:p,height:f}=e;let g,m,x,b,y,v;return"center"===n?(y=u+f/2,"left"===s?(g=d,m=g-r,b=y+r,v=y-r):(g=d+p,m=g+r,b=y-r,v=y+r),x=g):(m="left"===s?d+Math.max(a,c)+r:"right"===s?d+p-Math.max(l,h)-r:this.caretX,"top"===n?(b=u,y=b-r,g=m-r,x=m+r):(b=u+f,y=b+r,g=m+r,x=m-r),v=b),{x1:g,x2:m,x3:x,y1:b,y2:y,y3:v}}drawTitle(t,e,i){const s=this.title,n=s.length;let r,o,a;if(n){const l=ol(i.rtl,this.x,this.width);for(t.x=qh(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",r=Sa(i.titleFont),o=i.titleSpacing,e.fillStyle=i.titleColor,e.font=r.string,a=0;a<n;++a)e.fillText(s[a],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+o,a+1===n&&(t.y+=i.titleMarginBottom-o)}}_drawColorBox(t,e,i,s,n){const r=this.labelColors[i],o=this.labelPointStyles[i],{boxHeight:a,boxWidth:l}=n,c=Sa(n.bodyFont),h=qh(this,"left",n),d=s.x(h),u=a<c.lineHeight?(c.lineHeight-a)/2:0,p=e.y+u;if(n.usePointStyle){const e={radius:Math.min(l,a)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},i=s.leftForLtr(d,l)+l/2,c=p+a/2;t.strokeStyle=n.multiKeyBackground,t.fillStyle=n.multiKeyBackground,sa(t,e,i,c),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,sa(t,e,i,c)}else{t.lineWidth=_r(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const e=s.leftForLtr(d,l),i=s.leftForLtr(s.xPlus(d,1),l-2),o=va(r.borderRadius);Object.values(o).some(t=>0!==t)?(t.beginPath(),t.fillStyle=n.multiKeyBackground,pa(t,{x:e,y:p,w:l,h:a,radius:o}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),pa(t,{x:i,y:p+1,w:l-2,h:a-2,radius:o}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(e,p,l,a),t.strokeRect(e,p,l,a),t.fillStyle=r.backgroundColor,t.fillRect(i,p+1,l-2,a-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:n,bodyAlign:r,displayColors:o,boxHeight:a,boxWidth:l,boxPadding:c}=i,h=Sa(i.bodyFont);let d=h.lineHeight,u=0;const p=ol(i.rtl,this.x,this.width),f=function(i){e.fillText(i,p.x(t.x+u),t.y+d/2),t.y+=d+n},g=p.textAlign(r);let m,x,b,y,v,w,S;for(e.textAlign=r,e.textBaseline="middle",e.font=h.string,t.x=qh(this,g,i),e.fillStyle=i.bodyColor,jr(this.beforeBody,f),u=o&&"right"!==g?"center"===r?l/2+c:l+2+c:0,y=0,w=s.length;y<w;++y){for(m=s[y],x=this.labelTextColors[y],e.fillStyle=x,jr(m.before,f),b=m.lines,o&&b.length&&(this._drawColorBox(e,t,y,p,i),d=Math.max(h.lineHeight,a)),v=0,S=b.length;v<S;++v)f(b[v]),d=h.lineHeight;jr(m.after,f)}u=0,d=h.lineHeight,jr(this.afterBody,f),t.y-=n}drawFooter(t,e,i){const s=this.footer,n=s.length;let r,o;if(n){const a=ol(i.rtl,this.x,this.width);for(t.x=qh(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=a.textAlign(i.footerAlign),e.textBaseline="middle",r=Sa(i.footerFont),e.fillStyle=i.footerColor,e.font=r.string,o=0;o<n;++o)e.fillText(s[o],a.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){const{xAlign:n,yAlign:r}=this,{x:o,y:a}=t,{width:l,height:c}=i,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:p}=va(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(o+h,a),"top"===r&&this.drawCaret(t,e,i,s),e.lineTo(o+l-d,a),e.quadraticCurveTo(o+l,a,o+l,a+d),"center"===r&&"right"===n&&this.drawCaret(t,e,i,s),e.lineTo(o+l,a+c-p),e.quadraticCurveTo(o+l,a+c,o+l-p,a+c),"bottom"===r&&this.drawCaret(t,e,i,s),e.lineTo(o+u,a+c),e.quadraticCurveTo(o,a+c,o,a+c-u),"center"===r&&"left"===n&&this.drawCaret(t,e,i,s),e.lineTo(o,a+h),e.quadraticCurveTo(o,a,o+h,a),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){const i=Hh[t.position].call(this,this._active,this._eventPosition);if(!i)return;const r=this._size=Vh(this,t),o=Object.assign({},i,this._size),a=Uh(e,t,o),l=$h(t,o,a,e);s._to===l.x&&n._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=r.width,this.height=r.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=wa(e.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&o&&(t.save(),t.globalAlpha=i,this.drawBackground(n,t,s,e),al(t,e.textDirection),n.y+=r.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),ll(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map(({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),n=!Fr(i,s),r=this._positionChanged(s,e);(n||r)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,n=this._active||[],r=this._getActiveElements(t,n,e,i),o=this._positionChanged(r,t),a=e||!Fr(r,n)||o;return a&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),a}_getActiveElements(t,e,i,s){const n=this.options;if("mouseout"===t.type)return[];if(!s)return e.filter(t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index));const r=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:i,caretY:s,options:n}=this,r=Hh[n.position].call(this,t,e);return!1!==r&&(i!==r.x||s!==r.y)}}var ed={id:"tooltip",_element:td,positioners:Hh,afterInit(t,e,i){i&&(t.tooltip=new td({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,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:Jh},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function id(t,e,i,s){const n=t.indexOf(e);if(-1===n)return((t,e,i,s)=>("string"==typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,s);return n!==t.lastIndexOf(e)?i:n}function sd(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class nd extends Bc{static id="category";static defaults={ticks:{callback:sd}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Or(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:wo(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:id(i,t,Rr(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,s=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)s.push({value:i});return s}getLabelForValue(t){return sd.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function rd(t,e){const i=[],{bounds:s,step:n,min:r,max:o,precision:a,count:l,maxTicks:c,maxDigits:h,includeBounds:d}=t,u=n||1,p=c-1,{min:f,max:g}=e,m=!Or(r),x=!Or(o),b=!Or(l),y=(g-f)/(h+1);let v,w,S,k,C=co((g-f)/p/u)*u;if(C<1e-14&&!m&&!x)return[{value:f},{value:g}];k=Math.ceil(g/C)-Math.floor(f/C),k>p&&(C=co(k*C/p/u)*u),Or(a)||(v=Math.pow(10,a),C=Math.ceil(C*v)/v),"ticks"===s?(w=Math.floor(f/C)*C,S=Math.ceil(g/C)*C):(w=f,S=g),m&&x&&n&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((o-r)/n,C/1e3)?(k=Math.round(Math.min((o-r)/C,c)),C=(o-r)/k,w=r,S=o):b?(w=m?r:w,S=x?o:S,k=l-1,C=(S-w)/k):(k=(S-w)/C,k=lo(k,Math.round(k),C/1e3)?Math.round(k):Math.ceil(k));const A=Math.max(go(C),go(w));v=Math.pow(10,Or(a)?A:a),w=Math.round(w*v)/v,S=Math.round(S*v)/v;let E=0;for(m&&(d&&w!==r?(i.push({value:r}),w<r&&E++,lo(Math.round((w+E*C)*v)/v,r,od(r,y,t))&&E++):w<r&&E++);E<k;++E){const t=Math.round((w+E*C)*v)/v;if(x&&t>o)break;i.push({value:t})}return x&&d&&S!==o?i.length&&lo(i[i.length-1].value,o,od(o,y,t))?i[i.length-1].value=o:i.push({value:o}):x&&S!==o||i.push({value:S}),i}function od(t,e,{horizontal:i,minRotation:s}){const n=po(s),r=(i?Math.sin(n):Math.cos(n))||.001,o=.75*e*(""+t).length;return Math.min(e/r,o)}class ad extends Bc{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Or(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:n}=this;const r=t=>s=e?s:t,o=t=>n=i?n:t;if(t){const t=ao(s),e=ao(n);t<0&&e<0?o(0):t>0&&e>0&&r(0)}if(s===n){let e=0===n?1:Math.abs(.05*n);o(n+e),t||r(s-e)}this.min=s,this.max=n}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:s}=t;return s?(e=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s=rd({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&uo(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return Vo(t,this.chart.options.locale,this.options.ticks.format)}}class ld extends ad{static id="linear";static defaults={ticks:{callback:Uo.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Ir(t)?t:0,this.max=Ir(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=po(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,n.lineHeight/s))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Uo.formatters.logarithmic;
2Uo.formatters.numeric;const cd={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},hd={ariaLabel:{type:String},ariaDescribedby:{type:String}},dd={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...cd,...hd},ud="2"===r.version[0]?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function pd(t){return(0,r.isProxy)(t)?(0,r.toRaw)(t):t}function fd(t,e){t.labels=e}function gd(t,e,i){const s=[];t.datasets=e.map(e=>{const n=t.datasets.find(t=>t[i]===e[i]);return n&&e.data&&!s.includes(n)?(s.push(n),Object.assign(n,e),n):{...e}})}const md=(0,r.defineComponent)({props:dd,setup(t,e){let{expose:i,slots:s}=e;const n=(0,r.ref)(null),o=(0,r.shallowRef)(null);i({chart:o});return(0,r.onMounted)(()=>{if(!n.value)return;const{type:e,data:i,options:s,plugins:a,datasetIdKey:l}=t,c=function(t,e){const i={labels:[],datasets:[]};return fd(i,t.labels),gd(i,t.datasets,e),i}(i,l),h=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return(0,r.isProxy)(e)?new Proxy(t,{}):t}(c,i);o.value=new gh(n.value,{type:e,data:h,options:{...s},plugins:a})}),(0,r.onUnmounted)(()=>{const e=(0,r.toRaw)(o.value);e&&(t.destroyDelay>0?setTimeout(()=>{e.destroy(),o.value=null},t.destroyDelay):(e.destroy(),o.value=null))}),(0,r.watch)([()=>t.options,()=>t.data],(e,i)=>{let[s,n]=e,[a,l]=i;const c=(0,r.toRaw)(o.value);if(!c)return;let h=!1;if(s){const t=pd(s),e=pd(a);t&&t!==e&&(!function(t,e){const i=t.options;i&&e&&Object.assign(i,e)}(c,t),h=!0)}if(n){const e=pd(n.labels),i=pd(l.labels),s=pd(n.datasets),r=pd(l.datasets);e!==i&&(fd(c.config.data,e),h=!0),s&&s!==r&&(gd(c.config.data,s,t.datasetIdKey),h=!0)}h&&(0,r.nextTick)(()=>{(e=>{e.update(t.updateMode)})(c)})},{deep:!0}),()=>(0,r.h)("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:n},[(0,r.h)("p",{},[s.default?s.default():""])])}});function xd(t,e){return gh.register(e),(0,r.defineComponent)({props:cd,setup(e,i){let{expose:s}=i;const n=(0,r.shallowRef)(null),o=t=>{n.value=t?.chart};return s({chart:n}),()=>(0,r.h)(md,ud({ref:o},{type:t,...e}))}})}const bd=xd("bar",Xl),yd=xd("line",Wl);gh.register(nd,ld,Dh,zh,ed,jh);const vd={name:"chart-js-bar",components:{Bar:bd},props:{chartData:{type:Object},chartOptions:{type:Object},chartType:{type:String}}},wd=(0,Cn.A)(vd,[["render",function(t,e,i,s,n,o){var a=(0,r.resolveComponent)("Bar",!0);return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(a,{data:i.chartData,options:i.chartOptions},null,8,["data","options"])])}]]);gh.register(nd,ld,Mh,Ah,zh,ed,jh);const Sd={name:"chart-js-line",components:{LineChart:yd},props:{chartData:{type:Object},chartOptions:{type:Object},chartType:{type:String}}},kd=(0,Cn.A)(Sd,[["render",function(t,e,i,s,n,o){var a=(0,r.resolveComponent)("LineChart");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(a,{data:i.chartData,options:i.chartOptions},null,8,["data","options"])])}]]);function Cd(t){return Cd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cd(t)}function Ad(){Ad=function(){return t};var t={},e=Object.prototype,i=e.hasOwnProperty,s=Object.defineProperty||function(t,e,i){t[e]=i.value},n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,n){var r=e&&e.prototype instanceof u?e:u,o=Object.create(r.prototype),a=new A(n||[]);return s(o,"_invoke",{value:w(t,i,a)}),o}function h(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d={};function u(){}function p(){}function f(){}var g={};l(g,r,function(){return this});var m=Object.getPrototypeOf,x=m&&m(m(E([])));x&&x!==e&&i.call(x,r)&&(g=x);var b=f.prototype=u.prototype=Object.create(g);function y(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function v(t,e){function n(s,r,o,a){var l=h(t[s],t,r);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Cd(d)&&i.call(d,"__await")?e.resolve(d.__await).then(function(t){n("next",t,o,a)},function(t){n("throw",t,o,a)}):e.resolve(d).then(function(t){c.value=t,o(c)},function(t){return n("throw",t,o,a)})}a(l.arg)}var r;s(this,"_invoke",{value:function(t,i){function s(){return new e(function(e,s){n(t,i,e,s)})}return r=r?r.then(s,s):s()}})}function w(t,e,i){var s="suspendedStart";return function(n,r){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===n)throw r;return M()}for(i.method=n,i.arg=r;;){var o=i.delegate;if(o){var a=S(o,i);if(a){if(a===d)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===s)throw s="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s="executing";var l=h(t,e,i);if("normal"===l.type){if(s=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(s="completed",i.method="throw",i.arg=l.arg)}}}function S(t,e){var i=e.method,s=t.iterator[i];if(void 0===s)return e.delegate=null,"throw"===i&&t.iterator.return&&
vendor: 4,164 bytes, line 2
2(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),d;var n=h(s,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var r=n.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var s=-1,n=function e(){for(;++s<t.length;)if(i.call(t,s))return e.value=t[s],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:M}}function M(){return{value:void 0,done:!0}}return p.prototype=f,s(b,"constructor",{value:f,configurable:!0}),s(f,"constructor",{value:p,configurable:!0}),p.displayName=l(f,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,l(t,a,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},y(v.prototype),l(v.prototype,o,function(){return this}),t.AsyncIterator=v,t.async=function(e,i,s,n,r){void 0===r&&(r=Promise);var o=new v(c(e,i,s,n),r);return t.isGeneratorFunction(i)?o:o.next().then(function(t){return t.done?t.value:o.next()})},y(b),l(b,a,"Generator"),l(b,r,function(){return this}),l(b,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),i=[];for(var s in e)i.push(s);return i.reverse(),function t(){for(;i.length;){var s=i.pop();if(s in e)return t.value=s,t.done=!1,t}return t.done=!0,t}},t.values=E,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function s(i,s){return o.type="throw",o.arg=t,e.next=i,s&&(e.method="next",e.arg=void 0),!!s}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],o=r.completion;if("root"===r.tryLoc)return s("end");if(r.tryLoc<=this.prev){var a=i.call(r,"catchLoc"),l=i.call(r,"finallyLoc");if(a&&l){if(this.prev<r.catchLoc)return s(r.catchLoc,!0);if(this.prev<r.finallyLoc)return s(r.finallyLoc)}else if(a){if(this.prev<r.catchLoc)return s(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return s(r.finallyLoc)}}}},abrupt:function(t,e){for(var s=this.tryEntries.length-1;s>=0;--s){var n=this.tryEntries[s];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,d):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),C(i),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;C(i)}return n}}throw new Error("illegal catch attempt")}
2,delegateYield:function(t,e,i){return this.delegate={iterator:E(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},t}function Ed(t,e,i,s,n,r,o){try{var a=t[r](o),l=a.value}catch(t){return void i(t)}a.done?e(l):Promise.resolve(l).then(s,n)}function Md(t){return function(){var e=this,i=arguments;return new Promise(function(s,n){var r=t.apply(e,i);function o(t){Ed(r,s,n,o,a,"next",t)}function a(t){Ed(r,s,n,o,a,"throw",t)}o(void 0)})}}var Td=["data-block-id"],Pd={class:"newsletter-subscription-block__container"},Od={class:"newsletter-subscription-block__content"},Ld={class:"block__title"},_d=["innerHTML"],Id=["innerHTML"],Dd=["onSubmit","action"],Rd=["value"],Nd=["name","value"],Bd={class:"newsletter-subscription-form__honeypot","aria-hidden":"true"},jd=["for"],Fd=["id","name"],zd={key:0,class:"field text"},Hd=(0,r.createElementVNode)("label",{class:"left",for:"first_name"},"First name *",-1),Xd={class:"middleColumn"},Wd={key:0,class:"message error"},Yd={key:1,class:"field text"},Vd=(0,r.createElementVNode)("label",{class:"left",for:"last_name"},"Last name *",-1),Gd={class:"middleColumn"},Ud={key:0,class:"message error"},$d={class:"field email text"},qd=(0,r.createElementVNode)("label",{class:"left",for:"email"},"Email Address *",-1),Kd={class:"middleColumn"},Zd={key:0,class:"message error"},Jd=["innerHTML"],Qd=["disabled"],tu={key:2,class:"newsletter-subscription-block__success-message"},eu=[(0,r.createElementVNode)("svg",{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.createElementVNode)("path",{d:"M25.0013 0C38.7972 0 50 11.2028 50 24.9987C50 38.7972 38.7972 50 25.0013 50C11.2028 50 0 38.7972 0\n              24.9987C0 11.2028 11.2028 0 25.0013 0ZM12.3756 25.9715L22.0055 34.5486C22.3606 34.8687 22.8082 35.0238\n              23.2533 35.0238C23.7584 35.0238 24.2661 34.8212 24.6337 34.4186L39.5199 18.142C39.8475 17.7844 40.01\n              17.3343 40.01 16.8867C40.01 15.8615 39.1823 15.0188 38.1395 15.0188C37.6294 15.0188 37.1268 15.2238\n              36.7542 15.6264L23.1183 30.5351L14.8712 23.1883C14.5111 22.8707 14.0685 22.7132 13.6234 22.7132C12.5856\n              22.7132 11.7529 23.5509 11.7529 24.5786C11.7529 25.0913 11.963 25.6014 12.3756 25.9715Z",fill:"#2D8F51"})],-1),(0,r.createElementVNode)("h2",null,"Ngā mihi!",-1),(0,r.createElementVNode)("p",null,"You're now subscribed to our newsletter.",-1)];const iu={__name:"NewsletterSubscriptionBlock",props:{title:{type:String,required:!0},content:{type:String,default:""},disclaimer:{type:String,default:""},blockId:{type:Number,required:!0},requireFirstName:{type:Boolean,default:!1},requireLastName:{type:Boolean,default:!1},securityToken:{type:String,required:!0},recaptchaSiteKey:{type:String,default:""},recaptchaAction:{type:String,required:!0},honeypotFieldName:{type:String,default:"Captcha[_ctrl]"},submissionTimestampFieldName:{type:String,default:"Captcha[_ts]"},submissionTimestamp:{type:String,default:""}},setup:function(t){var e=t,i=Object.freeze({API_URL:"https://www.google.com/recaptcha/api.js",TOKEN_FIELD:"g-recaptcha-response"}),s=null,n=function(t){return s||(window.grecaptcha?s=Promise.resolve():(s=new Promise(function(e,n){var r=document.createElement("script");r.src="".concat(i.API_URL,"?render=").concat(encodeURIComponent(t)),r.async=!0,r.defer=!0,r.onload=function(){return e()},r.onerror=function(){s=null,n(new Error("The reCAPTCHA API could not be loaded."))},document.head.appendChild(r)}),s))},o=(0,r.ref)(""),a=(0,r.ref)({first_name:"",last_name:"",email:"",honeypot:""});(0,r.onMounted)(function(){o.value=function(t){if(!t)return"";var e=document.createElement("textarea");return e.innerHTML=t,e.value}(e.disclaimer),e.recaptchaSiteKey&&n(e.recaptchaSiteKey).catch(function(){})});var l=(0,r.ref)(!1),c=(0,r.ref)(null),h=(0,r.ref)(!1),d=(0,r.ref)({}),u=(0,r.computed)(function(){return"/newsletter-subscribe/".concat(e.blockId)}),p=(0,r.computed)(function(){return"newsletter-honeypot-".concat(e.blockId)}),f=function(t,i){switch(t){case"first_name":return e.requireFirstName&&!i?"First name is required.":null;case"last_name":return e.requireLastName&&!i?"Last name is required.":null;case"email":return i?/\S+@\S+\.\S+/.test(i)?null:"Email must be a valid email address.":"Email is required.";default:return null}};(0,r.watch)(function(){return a.value.first_name},function(t){!f("first_name",t)&&d.value.first_name&&delete d.value.first_name}),(0,r.watch)(function(){return a.value.last_name},function(t){!f("last_name",t)&&d.value.last_name&&delete d.value.last_name}),(0,r.watch)(function(){return a.value.email},function(t){!f("email",t)&&d.value.email&&delete d.value.email});var g=function(){var t=Md(Ad().mark(function t(){return Ad().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.recaptchaSiteKey){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,n(e.recaptchaSiteKey);case 4:return t.next=6,new Promise(function(t){window.grecaptcha.ready(t)});case 6:return t.abrupt("return",window.grecaptcha.execute(e.recaptchaSiteKey,{action:e.recaptchaAction}));case 7:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),m=function(){a.value={first_name:"",last_name:"",email:"",honeypot:""},d.value={}},x=function(){var t=Md(Ad().mark(function t(){var s,n,r,o,p,x,b;return Ad().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(l.value=!0,c.value=null,d.value={},s=f("first_name",a.value.first_name),n=f("last_name",a.value.last_name),r=f("email",a.value.email),s&&(d.value.first_name=s),n&&(d.value.last_name=n),r&&(d.value.email=r),!Object.keys(d.value).length){t.next=12;break}return l.value=!1,t.abrupt("return");case 12:return t.prev=12,t.next=15,g();
2case 15:return o=t.sent,(p=new FormData).append("SecurityID",e.securityToken),p.append("email",a.value.email),p.append(e.honeypotFieldName,a.value.honeypot),p.append(e.submissionTimestampFieldName,e.submissionTimestamp),o&&p.append(i.TOKEN_FIELD,o),e.requireFirstName&&p.append("first_name",a.value.first_name),e.requireLastName&&p.append("last_name",a.value.last_name),t.next=26,fetch(u.value,{method:"POST",body:p,headers:{"X-Requested-With":"XMLHttpRequest"}});case 26:return x=t.sent,t.next=29,x.json();case 29:(b=t.sent).success?(h.value=!0,m()):c.value={type:"error",text:b.message},t.next=36;break;case 33:t.prev=33,t.t0=t.catch(12),c.value={type:"error",text:"An error occurred. Please try again."};case 36:return t.prev=36,l.value=!1,t.finish(36);case 39:case"end":return t.stop()}},t,null,[[12,33,36,39]])}));return function(){return t.apply(this,arguments)}}();return function(e,i){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"newsletter-subscription-block","data-block-id":t.blockId},[(0,r.createElementVNode)("div",Pd,[(0,r.createElementVNode)("div",Od,[(0,r.createElementVNode)("h2",Ld,(0,r.toDisplayString)(t.title),1),t.content?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"newsletter-content",innerHTML:t.content},null,8,_d)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["newsletter-subscription-form",{"newsletter-subscription-form--success":h.value}])},[c.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)("form-element__message form-element__message--".concat(c.value.type)),role:"alert"},[(0,r.createElementVNode)("div",{innerHTML:c.value.text},null,8,Id)],2)):(0,r.createCommentVNode)("",!0),h.value?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("form",{key:1,onSubmit:(0,r.withModifiers)(x,["prevent"]),action:(0,r.unref)(u),method:"POST",class:"form-element__form",novalidate:""},[(0,r.createElementVNode)("input",{type:"hidden",name:"SecurityID",value:t.securityToken},null,8,Rd),(0,r.createElementVNode)("input",{type:"hidden",name:t.submissionTimestampFieldName,value:t.submissionTimestamp},null,8,Nd),(0,r.createElementVNode)("div",Bd,[(0,r.createElementVNode)("label",{for:(0,r.unref)(p)},"Leave this field empty",8,jd),(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"text",id:(0,r.unref)(p),name:t.honeypotFieldName,"onUpdate:modelValue":i[0]||(i[0]=function(t){return a.value.honeypot=t}),tabindex:"-1",autocomplete:"off"},null,8,Fd),[[r.vModelText,a.value.honeypot]])]),t.requireFirstName?((0,r.openBlock)(),(0,r.createElementBlock)("div",zd,[Hd,(0,r.createElementVNode)("div",Xd,[(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"text",id:"first_name",name:"first_name","onUpdate:modelValue":i[1]||(i[1]=function(t){return a.value.first_name=t}),class:(0,r.normalizeClass)(["text requiredField",{error:d.value.first_name}])},null,2),[[r.vModelText,a.value.first_name]]),d.value.first_name?((0,r.openBlock)(),(0,r.createElementBlock)("div",Wd,(0,r.toDisplayString)(d.value.first_name),1)):(0,r.createCommentVNode)("",!0)])])):(0,r.createCommentVNode)("",!0),t.requireLastName?((0,r.openBlock)(),(0,r.createElementBlock)("div",Yd,[Vd,(0,r.createElementVNode)("div",Gd,[(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"text",id:"last_name",name:"last_name","onUpdate:modelValue":i[2]||(i[2]=function(t){return a.value.last_name=t}),class:(0,r.normalizeClass)(["text requiredField",{error:d.value.last_name}])},null,2),[[r.vModelText,a.value.last_name]]),d.value.last_name?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ud,(0,r.toDisplayString)(d.value.last_name),1)):(0,r.createCommentVNode)("",!0)])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",$d,[qd,(0,r.createElementVNode)("div",Kd,[(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"email",id:"email",name:"email","onUpdate:modelValue":i[3]||(i[3]=function(t){return a.value.email=t}),class:(0,r.normalizeClass)(["email text requiredField",{error:d.value.email}])},null,2),[[r.vModelText,a.value.email]]),d.value.email?((0,r.openBlock)(),(0,r.createElementBlock)("div",Zd,(0,r.toDisplayString)(d.value.email),1)):(0,r.createCommentVNode)("",!0)])]),t.disclaimer?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:2,class:"newsletter-subscription-block__disclaimer",innerHTML:o.value},null,8,Jd)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("button",{type:"submit",disabled:l.value,class:"btn btn--primary"},(0,r.toDisplayString)(l.value?"Subscribing...":"Sign me up"),9,Qd)],40,Dd)),h.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",tu,eu)):(0,r.createCommentVNode)("",!0)],2)])],8,Td)}}},su=iu;var nu=Object.freeze({PLAY:"play",PAUSE:"pause"}),ru=Object.freeze({READY:"ready"}
2),ou="https://player.vimeo.com";var au=(0,r.createApp)({components:{"combo-box":T,"combo-box-option":N,"pricing-tile":Gi,tabs:V,tab:Ni,modal:Hi,"mega-nav":Ji,"side-menu":rs,"side-menu-item":as,"apex-charts":Xn,"high-charts":$n,"chart-js-bar":wd,"chart-js-line":kd,DecisionTree:Rn,"newsletter-subscription-block":su},setup:function(){var t=(0,r.ref)(!1),e=(0,r.ref)({}),i=(0,r.ref)([]),s=(0,r.ref)(!1),n=(0,r.ref)(!1),o=(0,r.ref)(!0);return(0,r.provide)("menuOpen",s),{teamModalOpen:t,teamModalData:e,membersData:i,menuOpen:s,searchModalOpen:n,heroVideoPlaying:o}},mixins:[Ui],mounted:function(){var t=this,e=this.$refs.hero;document.body.contains(e)&&(this.fitVideoToScreen(),window.addEventListener("resize",this.fitVideoToScreen),this.initHeroVideo()),this.resetTeamModalData();var i=document.querySelector("[data-members-data]");i&&(this.membersData=JSON.parse(i.dataset.membersData));var s=us();if(s.member){var n=s.member,r=this.membersData.find(function(t){return t.urlSegment===n});this.openTeamModal(r)}setTimeout(function(){t.fitHeroToScreen()},100),window.addEventListener("resize",this.fitHeroToScreen);var o=document.querySelector(".site-banner__close");o&&o.addEventListener("click",function(){setTimeout(function(){t.fitHeroToScreen()},100)})},methods:{fitVideoToScreen:function(){var t=this.$refs.hero,e=this.$refs.heroPlayer;if(e&&t){var i=16/9,s=t.offsetWidth,n=t.offsetHeight;if(s/n>i){var r=s/i,o=s;e.width=o,e.height=r}else if(s/n<i){var a=n,l=n*i;e.width=l,e.height=a}else e.width=s,e.height=n}},setHeroVideoPlaying:function(t){var e=t?nu.PLAY:nu.PAUSE;!function(t,e){var i=t&&t.contentWindow;!!i&&i.postMessage(JSON.stringify({method:e}),ou)}(this.$refs.heroPlayer,e),this.heroVideoPlaying=t},toggleHeroVideo:function(){this.setHeroVideoPlaying(!this.heroVideoPlaying)},initHeroVideo:function(){var t=this;if(this.$refs.heroPlayer&&window.matchMedia("(prefers-reduced-motion: reduce)").matches){window.addEventListener("message",function e(i){(function(t){if(!t||t.origin!==ou)return!1;try{return JSON.parse(t.data).event===ru.READY}catch(t){return!1}})(i)&&(t.setHeroVideoPlaying(!1),window.removeEventListener("message",e))})}},fitHeroToScreen:function(){if(window.matchMedia("(min-width: 992px)").matches){var t=document.querySelectorAll(".site-banner"),e=document.querySelector(".hero");if(e&&(e.style.height="100vh"),!t.length||!e)return;var i=0;t.forEach(function(t){i+=t.offsetHeight}),e.style.height="calc(100vh - ".concat(i,"px)")}},resetTeamModalData:function(){this.teamModalData={id:"",name:"",role:"",profile:"",photoUrl:"",photoWebpUrl:""}},handleOpenClick:function(t){var e=t.currentTarget,i=Number(e.dataset.memberId),s=this.membersData.find(function(t){return t.id===i});this.openTeamModal(s)},openTeamModal:function(t){this.teamModalData=t,this.teamModalOpen=!0,history.pushState(null,"","?member=".concat(t.urlSegment)),document.querySelector("body").classList.add("modal--active")},closeTeamModal:function(){this.teamModalOpen=!1,this.resetTeamModalData(),history.pushState(null,"",location.pathname),document.querySelector("body").classList.remove("modal--active")},toggleSideMenu:function(){this.menuOpen=!this.menuOpen},toggleSearchModal:function(){this.searchModalOpen=!this.searchModalOpen;var t=document.querySelector(".search-overlay");t.setAttribute("aria-hidden",this.searchModalOpen),this.searchModalOpen?(document.querySelector("body").classList.add("body--fixed-active"),t.classList.add("search-overlay--active")):(t.classList.remove("search-overlay--active"),document.querySelector("body").classList.remove("body--fixed-active"))}},computed:{menuVisible:function(){return!window.matchMedia(qi).matches}}});au.use(Zs),au.mount(".main");const lu=function(){document.querySelectorAll(".site-banner").forEach(function(t){var e=t.getAttribute("data-id");localStorage?localStorage.getItem(e)?t.classList.add("site-banner--none"):t.classList.remove("site-banner--none"):t.classList.add("site-banner--none");var i=t.querySelector(".site-banner__close");i&&i.addEventListener("click",function(){!function(t){var e=t.getAttribute("data-id"),i=document.getElementById("site-banner-".concat(e));localStorage.setItem(e,"true"),i.parentNode.removeChild(i)}(i)})})};function cu(t){return cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(t)}const hu=function(){return document.addEventListener("click",function(t){if(t.target.closest("[data-href-ajax]")){var e=t.target.getAttribute("href");if(e){t.preventDefault();var i=document.querySelector(".spinner"),s=function(){i&&window.requestAnimationFrame(function(){i.removeAttribute("style")})};i&&window.requestAnimationFrame(function(){i.style="height:100%;opacity:1;z-index: 1",function(){var e=t.target.getAttribute("data-href-scrollto");
2if(e){var i=document.querySelector(e);if(i){var s=parseInt(t.target.getAttribute("data-href-offset"),10);window.scrollTo({top:i.getBoundingClientRect().top+window.scrollY-s,behavior:"smooth"})}}}()}),Ai.get(e,{headers:{"x-requested-with":"XMLHttpRequest"}}).then(function(t){setTimeout(s,500),"object"===cu(t.data)&&setTimeout(function(){Oi(t.data)},1e3)}).finally(s)}}}),!1};const du=function(){var t=document.getElementById("comparison-tool");if(t){var e=null==t?void 0:t.querySelectorAll(".tabs__nav-btn"),i=null==t?void 0:t.querySelector(".tabs__select");if(0!==e.length||i){var s=function(t){var s=t.replace("item-","");e.forEach(function(e){e.classList.toggle("btn--active",e.dataset.controls===t)}),document.querySelectorAll(".comparison-table__item").forEach(function(t){t.classList.toggle("active",t.classList.contains("item-".concat(s)))}),i&&i.value!==t&&(i.value=t)};e.forEach(function(t){t.addEventListener("click",function(){return s(t.dataset.controls)})}),null==i||i.addEventListener("change",function(t){return s(t.target.value)})}}};const uu=function(){var t=[{selector:".hero__main",offset:-30},{selector:".intro-block--has-background",offset:0},{selector:".blog-intro-block--image .container",offset:0}].map(function(t){var e=document.querySelector(t.selector);if(!e)return null;var i=window.getComputedStyle(e),s=(e.offsetTop||parseInt(i.paddingTop,10)||0)+(t.offset||0);return e.classList.add("parallax-init"),{targetElement:e,travel:s}}).filter(Boolean);if(0!==t.length){var e=!1;i(),window.addEventListener("scroll",function(){e||(e=!0,requestAnimationFrame(i))},{passive:!0})}function i(){for(var i=window.scrollY||window.pageYOffset,s=Math.min(Math.max(i/500,0),1),n=0;n<t.length;n+=1){var r=t[n],o=r.targetElement,a=r.travel;o.style.transform="translateY(".concat(s*a,"px)"),o.style.opacity=String(1-s)}e=!1}};function pu(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s,n,r,o,a=[],l=!0,c=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(s=r.call(i)).done)&&(a.push(s.value),a.length!==e);l=!0);}catch(t){c=!0,n=t}finally{try{if(!l&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return fu(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return fu(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fu(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}var gu="roadmap-overlay--open",mu="roadmap-overlay-active";const xu=function(){var t=Array.from(document.querySelectorAll("[data-roadmap-overlay]"));if(0!==t.length){var e=null,i=null,s=new WeakMap,n=function(t){var e=s.get(t);e&&(window.clearTimeout(e),s.delete(t))},r=function(t){var e=pu(t.split("?"),2),i=e[0],s=e[1],n=new URLSearchParams(void 0===s?"":s);new URLSearchParams(window.location.search).forEach(function(t,e){n.has(e)||n.set(e,t)});var r=n.toString();return r?"".concat(i,"?").concat(r):i},o=function(t){var e=t.querySelector(".roadmap-overlay__title");e&&e.focus()},a=function(t,e){Array.from(t.parentElement.children).forEach(function(i){i===t||i.hasAttribute("data-roadmap-overlay")||(e?i.setAttribute("inert",""):i.removeAttribute("inert"))})},l=function(t,s,l){if(e&&e!==t&&(n(e),e.classList.remove(gu),e.setAttribute("hidden","")),n(t),e=t,i=s||null,t.removeAttribute("hidden"),window.requestAnimationFrame(function(){return t.classList.add(gu)}),a(t,!0),document.body.classList.add(mu),l){var c=t.getAttribute("data-roadmap-url");window.history.pushState({roadmapOverlay:t.dataset.roadmapOverlay},"",r(c))}o(t)},c=function(t,o){if(e){var l=e,c=i;l.classList.remove(gu),a(l,!1),document.body.classList.remove(mu),n(l),s.set(l,window.setTimeout(function(){l.
2setAttribute("hidden",""),s.delete(l)},300)),e=null,i=null,t&&o&&window.history.pushState({},"",r(o)),c&&c.focus()}};document.addEventListener("keydown",function(t){if("Escape"===t.key&&e){var i=e.querySelector("[data-roadmap-close]");c(!0,i?i.getAttribute("href"):null)}else!function(t){if(e&&"Tab"===t.key){var i=Array.from(e.querySelectorAll('a[href], button:not([disabled]), input, select, textarea, [tabindex]:not([tabindex="-1"])'));if(0!==i.length){var s=i[0],n=i[i.length-1];if(!i.includes(document.activeElement))return t.preventDefault(),void(t.shiftKey?n:s).focus();t.shiftKey&&document.activeElement===s?(t.preventDefault(),n.focus()):t.shiftKey||document.activeElement!==n||(t.preventDefault(),s.focus())}}}(t)}),document.querySelectorAll("[data-roadmap-trigger]").forEach(function(e){e.addEventListener("click",function(i){var s=e.getAttribute("data-roadmap-trigger"),n=t.find(function(t){return t.dataset.roadmapOverlay===s});n&&(i.preventDefault(),l(n,e,!0))})}),t.forEach(function(t){var e=t.querySelector("[data-roadmap-close]");e&&e.addEventListener("click",function(t){t.preventDefault(),c(!0,e.getAttribute("href"))})}),window.addEventListener("popstate",function(){var i,s=(i=window.location.pathname,t.find(function(t){return function(t){return t.split("?")[0]}(t.getAttribute("data-roadmap-url"))===i}));s?l(s,null,!1):e&&c(!1,null)});var h=t.find(function(t){return t.classList.contains(gu)});h&&(e=h,a(h,!0),document.body.classList.add(mu),o(h))}};var bu=["keyword","area","status","financialQuarter"],yu=function(t){return Boolean(t.keyword.trim()||t.area||t.status||t.financialQuarter)};const vu=function(){var t=document.querySelector("[data-roadmap-list]");if(t){var e=Array.from(t.querySelectorAll("[data-roadmap-item]")),i=Array.from(document.querySelectorAll("[data-roadmap-filter]")),s=document.querySelector("[data-roadmap-empty]"),n=document.querySelector("[data-roadmap-results-count]"),r=document.querySelector("[data-roadmap-clear-filters]");if(0!==e.length&&0!==i.length){var o=function(){var o=function(){var t={status:"",area:"",keyword:"",financialQuarter:""};return i.forEach(function(e){t[e.dataset.roadmapFilter]=e.value}),t}(),a=0;if(e.forEach(function(t,i){var s,n=e[i],r=function(t,e){if(e.status&&t.status!==e.status)return!1;if(e.area&&t.area!==e.area)return!1;if(e.financialQuarter&&t.financialQuarter!==e.financialQuarter)return!1;var i=e.keyword.trim().toLowerCase();return!(i&&!t.keyword.toLowerCase().includes(i))}({status:(s=n).dataset.roadmapStatus||"",area:s.dataset.roadmapArea||"",financialQuarter:s.dataset.roadmapFinancialQuarter||"",keyword:s.dataset.roadmapKeyword||""},o);n.hidden=!r,r&&(a+=1)}),s&&(s.hidden=0!==a),n){var l=yu(o)?"filtered items":"items";n.textContent="Displaying ".concat(a," ").concat(l),n.hidden=0===a}r&&r.classList.toggle("roadmap-results-bar__clear--visible",yu(o)),t.classList.toggle("roadmap-list--empty",0===a);var c=function(t,e){var i=new URLSearchParams(t);bu.forEach(function(t){e[t]?i.set(t,e[t]):i.delete(t)});var s=i.toString();return s?"?".concat(s):""}(window.location.search,o);window.history.replaceState(null,"","".concat(window.location.pathname).concat(c))};i.forEach(function(t,e){var s=i[e],n=s.closest(".combo-box"),r=n&&n.querySelector(".combo-box__input");if(r){new MutationObserver(function(){var t,e,i,n=(t=s,e=r.textContent,i=e.trim(),Array.from(t.options).find(function(t){return t.textContent.trim()===i}));n&&s.value!==n.value&&(s.value=n.value,s.dispatchEvent(new Event("change",{bubbles:!0})))}).observe(r,{characterData:!0,childList:!0,subtree:!0})}});var a,l,c=function(t,e){var i=t.closest(".combo-box"),s=t.id.replace(/-select$/,""),n=i&&document.getElementById("".concat(s,"-option-").concat(e||"all"));n?n.click():t.value=e},h=(a=window.location.search,{keyword:(l=new URLSearchParams(a)).get("keyword")||"",area:l.get("area")||"",status:l.get("status")||"",financialQuarter:l.get("financialQuarter")||""});i.forEach(function(t,e){var s=i[e],n=s.dataset.roadmapFilter;h[n]&&c(s,h[n])}),o(),i.forEach(function(t){var e="SELECT"===t.tagName?"change":"input";t.addEventListener(e,o)}),r&&r.addEventListener("click",function(t){t.preventDefault(),i.forEac
2h(function(t,e){c(i[e],"")}),o();var e=i.find(function(t){return"keyword"===t.dataset.roadmapFilter});e&&e.focus()});var d=document.querySelector("[data-roadmap-filters-toggle-wrapper]"),u=document.querySelector("[data-roadmap-filters-toggle]"),p=document.querySelector("[data-roadmap-filters-panel]");d&&u&&p&&u.addEventListener("click",function(){var t="true"===u.getAttribute("aria-expanded");u.setAttribute("aria-expanded",String(!t)),p.classList.toggle("roadmap-filters--collapsed",t),d.classList.toggle("roadmap-filters-toggle--expanded",!t)})}}};document.addEventListener("DOMContentLoaded",function(){lu(),hu(),du(),uu(),xu(),vu()});var wu=document.querySelector("#skip > .skip-links"),Su=n(50,function(){return t="#main",void((e=document.querySelector("".concat(t," h1")))&&e.focus());var t,e});wu.addEventListener("click",function(t){t.preventDefault(),Su()});var ku=document.querySelector('input[type="submit"][name="action_process"]'),Cu=n(50,function(){var t;(t=document.querySelector(".userform .error"))&&t.focus()});ku&&ku.addEventListener("click",function(){Cu()});var Au=document.querySelector("#hero-scroll-btn"),Eu=n(50,function(){var t;(t=document.querySelector("main .hero + section"))&&t.scrollIntoView()});Au&&Au.addEventListener("click",function(t){t.preventDefault(),Eu()})},606(t){var e,i,s=t.exports={};function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(i){try{return e.call(null,t,0)}catch(i){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:n}catch(t){e=n}try{i="function"==typeof clearTimeout?clearTimeout:r}catch(t){i=r}}();var a,l=[],c=!1,h=-1;function d(){c&&a&&(c=!1,a.length?l=a.concat(l):h=-1,l.length&&u())}function u(){if(!c){var t=o(d);c=!0;for(var e=l.length;e;){for(a=l,l=[];++h<e;)a&&a[h].run();h=-1,e=l.length}a=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===r||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function f(){}s.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new p(t,e)),1!==l.length||c||o(u)},p.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=f,s.addListener=f,s.once=f,s.off=f,s.removeListener=f,s.removeAllListeners=f,s.emit=f,s.prependListener=f,s.prependOnceListener=f,s.listeners=function(t){return[]},s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},641(t,e,i){"use strict";i.d(e,{$V:()=>St,$u:()=>jt,$y:()=>Kt,Bs:()=>fs,C4:()=>n.C4,CE:()=>di,Df:()=>yt,Dl:()=>w,E:()=>ls,E3:()=>ki,EW:()=>Ji,EY:()=>ti,FK:()=>Qe,Fv:()=>Ai,Fw:()=>hs,Gc:()=>s.Gc,Gt:()=>tt,Gw:()=>ms,Gy:()=>dt,H4:()=>l,HF:()=>os,Ht:()=>ss,IG:()=>s.IG,IJ:()=>s.IJ,Ic:()=>Bt,Im:()=>Ze,K9:()=>Xe,KC:()=>Rt,KR:()=>s.KR,Kh:()=>s.Kh,LJ:()=>xs,LM:()=>ds,Lk:()=>yi,MZ:()=>bt,Mw:()=>ei,Ng:()=>Si,OA:()=>ns,OW:()=>gt,PR:()=>At,PT:()=>n.PT,Pr:()=>s.Pr,Q3:()=>Ei,QW:()=>s.QW,QZ:()=>s.QZ,Qi:()=>B,R1:()=>s.R1,R8:()=>r,RG:()=>ie,SS:()=>Ht,Tb:()=>ne,Tm:()=>s.Tm,Tr:()=>n.Tr,U_:()=>nt,Vq:()=>ci,WQ:()=>et,Wv:()=>ui,X2:()=>s.X2,Y4:()=>Tt,Y5:()=>bs,YY:()=>F,Yj:()=>Qi,ZH:()=>n.ZH,_B:()=>n._B,bF:()=>vi,bU:()=>ps,bj:()=>Xt,bn:()=>as,bo:()=>Vt,ci:()=>We,dA:()=>Gi,dY:()=>b,ds:()=>s.ds,eW:()=>Ci,eX:()=>ee,fE:()=>s.fE,g2:()=>$t,g8:()=>s.g8,gN:()=>Zt,gW:()=>gi,gh:()=>o,h:()=>cs,hi:()=>zt,i9:()=>s.i9,iD:()=>O,jC:()=>ii,jr:()=>s.jr,jt:()=>j,ju:()=>s.ju,k6:()=>z,lW:()=>s.lW,lt:()=>M,mu:()=>s.mu,n:()=>Mt,nD:()=>s.nD,nI:()=>Ni,nT:()=>it,o5:()=>s.o5,p9:()=>st,pI:()=>te,pM:()=>vt,pR:()=>pt,qG:()=>Yt,qL:()=>a,qP:()=>ts,qR:()=>Wt,rE:()=>gs,rO:()=>is,rU:()=>n.rU,rY:()=>s.rY,sV:()=>Nt,tB:()=>s.tB,tC:()=>Vi,tY:()=>$,uX:()=>ri,uY:()=>s.uY,ux:()=>s.ux,v6:()=>Oi,v_:()=>n.v_,vv:()=>pi,wB:()=>ot,wk:()=>es,xo:()=>Ft,y$:()=>us,yC:()=>s.yC});var s=i(953),n=i(33);function r(t,...e){}function o(t,e,i,s){let n;try{n=s?t(...s):t()}catch(t){l(t,e,i)}return n}function a(t,e,i,s){if((0,n.Tn)(t)){const r=o(t,e,i,s);return r&&(0,n.yL)(r)&&r.catch(t=>{l(t,e,i)}),r}const r=[];for(let n=0;n<t.length;n++)r.push(a(t[n],e,i,s));return r}function l(t,e,i,s=!0){e&&e.vnode;if(e){let s=e.parent;const n=e.proxy,r=i;for(;s;){const e=s.ec;if(e)for(let i=0;i<e.length;i++)if(!1===e[i](t,n,r))return;s=s.parent}const a=e.appContext.config.errorHandler;if(a)return void o(a,null,10,[t,n,r])}!function(t){console.error(t)}(t,0,0,s)}let c=!1,h=!1;const d=[];let u=0;const p=[];let f=null,g=0;const m=Promise.resolve();let x=null;function b(t){const e=x||m;return t?e.then(this?t.bind(this):t):e}function y(t){d.length&&d.includes(t,c&&t.allowRecurse?u+1:u)||(null==t.id?d.push(t):d.splice(function(t){let e=u+1,i=d.length;for(;e<i;){const s=e+i>>>1;C(d[s])<t?e=s+1:i=s}return e}(t.id),0,t),v())}function v(){c||h||(h=!0,x=m.then(E))}function w(t){(0,n.cy)(t)?p.push(...t):f&&f.includes(t,t.allowRecurse?g+1:g)||p.push(t),v()}function S(t,e=(c?u+1:0)){for(0;e<d.length;e++){const t=d[e];t&&t.pre&&(d.splice(e,1),e--,t())}}function k(t){if(p.length){const t=[...new Set(p)];if(p.length=0,f)return void f.push(...t);for(f=t,f.sort((t,e)=>C(t)-C(e)),g=0;g<f.length;g++)f[g]();f=null,g=0}}const C=t=>null==t.id?1/0:t.id,A=(t,e)=>{const i=C(t)-C(e);if(0===i){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return i};function E(t){h=!1,c=!0,d.sort(A);n.tE;try{for(u=0;
2u<d.length;u++){const t=d[u];t&&!1!==t.active&&o(t,null,14)}}finally{u=0,d.length=0,k(),c=!1,x=null,(d.length||p.length)&&E(t)}}new Set;new Map;let M,T=[],P=!1;function O(t,e){var i,s;if(M=t,M)M.enabled=!0,T.forEach(({event:t,args:e})=>M.emit(t,...e)),T=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null===(s=null===(i=window.navigator)||void 0===i?void 0:i.userAgent)||void 0===s?void 0:s.includes("jsdom"))){(e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(t=>{O(t,e)}),setTimeout(()=>{M||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,P=!0,T=[])},3e3)}else P=!0,T=[]}function L(t,e,...i){if(t.isUnmounted)return;const s=t.vnode.props||n.MZ;let r=i;const o=e.startsWith("update:"),l=o&&e.slice(7);if(l&&l in s){const t=`${"modelValue"===l?"model":l}Modifiers`,{number:e,trim:o}=s[t]||n.MZ;o&&(r=i.map(t=>(0,n.Kg)(t)?t.trim():t)),e&&(r=i.map(n.Ro))}let c;let h=s[c=(0,n.rU)(e)]||s[c=(0,n.rU)((0,n.PT)(e))];!h&&o&&(h=s[c=(0,n.rU)((0,n.Tg)(e))]),h&&a(h,t,6,r);const d=s[c+"Once"];if(d){if(t.emitted){if(t.emitted[c])return}else t.emitted={};t.emitted[c]=!0,a(d,t,6,r)}}function _(t,e,i=!1){const s=e.emitsCache,r=s.get(t);if(void 0!==r)return r;const o=t.emits;let a={},l=!1;if(!(0,n.Tn)(t)){const s=t=>{const i=_(t,e,!0);i&&(l=!0,(0,n.X$)(a,i))};!i&&e.mixins.length&&e.mixins.forEach(s),t.extends&&s(t.extends),t.mixins&&t.mixins.forEach(s)}return o||l?((0,n.cy)(o)?o.forEach(t=>a[t]=null):(0,n.X$)(a,o),(0,n.Gv)(t)&&s.set(t,a),a):((0,n.Gv)(t)&&s.set(t,null),null)}function I(t,e){return!(!t||!(0,n.Mp)(e))&&(e=e.slice(2).replace(/Once$/,""),(0,n.$3)(t,e[0].toLowerCase()+e.slice(1))||(0,n.$3)(t,(0,n.Tg)(e))||(0,n.$3)(t,e))}let D=null,R=null;function N(t){const e=D;return D=t,R=t&&t.type.__scopeId||null,e}function B(t){R=t}function j(){R=null}const F=t=>z;function z(t,e=D,i){if(!e)return t;if(t._n)return t;const s=(...i)=>{s._d&&ci(-1);const n=N(e);let r;try{r=t(...i)}finally{N(n),s._d&&ci(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function H(t){const{type:e,vnode:i,proxy:s,withProxy:r,props:o,propsOptions:[a],slots:c,attrs:h,emit:d,render:u,renderCache:p,data:f,setupState:g,ctx:m,inheritAttrs:x}=t;let b,y;const v=N(t);try{if(4&i.shapeFlag){const t=r||s;b=Mi(u.call(t,t,p,o,g,f,m)),y=h}else{const t=e;0,b=Mi(t.length>1?t(o,{attrs:h,slots:c,emit:d}):t(o,null)),y=e.props?h:W(h)}}catch(e){si.length=0,l(e,t,1),b=vi(ei)}let w=b;if(y&&!1!==x){const t=Object.keys(y),{shapeFlag:e}=w;t.length&&7&e&&(a&&t.some(n.CP)&&(y=Y(y,a)),w=ki(w,y))}return i.dirs&&(w=ki(w),w.dirs=w.dirs?w.dirs.concat(i.dirs):i.dirs),i.transition&&(w.transition=i.transition),b=w,N(v),b}function X(t){let e;for(let i=0;i<t.length;i++){const s=t[i];if(!pi(s))return;if(s.type!==ei||"v-if"===s.children){if(e)return;e=s}}return e}const W=t=>{let e;for(const i in t)("class"===i||"style"===i||(0,n.Mp)(i))&&((e||(e={}))[i]=t[i]);return e},Y=(t,e)=>{const i={};for(const s in t)(0,n.CP)(s)&&s.slice(9)in e||(i[s]=t[s]);return i};function V(t,e,i){const s=Object.keys(e);if(s.length!==Object.keys(t).length)return!0;for(let n=0;n<s.length;n++){const r=s[n];if(e[r]!==t[r]&&!I(i,r))return!0}return!1}function G({vnode:t,parent:e},i){for(;e&&e.subTree===t;)(t=e.vnode).el=i,e=e.parent}const U=t=>t.__isSuspense,$={name:"Suspense",__isSuspense:!0,process(t,e,i,s,n,r,o,a,l,c){null==t?function(t,e,i,s,n,r,o,a,l){const{p:c,o:{createElement:h}}=l,d=h("div"),u=t.suspense=K(t,n,s,e,d,i,r,o,a,l);c(null,u.pendingBranch=t.ssContent,d,null,s,u,r,o),u.deps>0?(q(t,"onPending"),q(t,"onFallback"),c(null,t.ssFallback,e,i,s,null,r,o),Q(u,t.ssFallback)):u.resolve()}(e,i,s,n,r,o,a,l,c):function(t,e,i,s,n,r,o,a,{p:l,um:c,o:{createElement:h}}){const d=e.suspense=t.suspense;d.vnode=e,e.el=t.el;const u=e.ssContent,p=e.ssFallback,{activeBranch:f,pendingBranch:g,isInFallback:m,isHydrating:x}=d;if(g)d.pendingBranch=u,fi(u,g)?(l(g,u,d.hiddenContainer,null,n,d,r,o,a),d.deps<=0?d.resolve():m&&(l(f,p,i,s,n,null,r,o,a),Q(d,p))):(d.pendingId++,x?(d.isHydrating=!1,d.activeBranch=g):c(g,n,d),d.deps=0,d.effects.length=0,d.hiddenContainer=h("div"),m?(l(null,u,d.hiddenContainer,null,n,d,r,o,a),d.deps<=0?d.resolve():(l(f,p,i,s,n,null,r,o,a),Q(d,p))):f&&fi(u,f)?(l(f,u,i,s,n,d,r,o,a),d.resolve(!0)):(l(null,u,d.hiddenContainer,null,n,d,r,o,a),d.deps<=0&&d.resolve()));else if(f&&fi(u,f))l(f,u,i,s,n,d,r,o,a),Q(d,u);else if(q(e,"onPending"),d.pendingBranch=u,d.pendingId++,l(null,u,d.hiddenContainer,null,n,d,r,o,a),d.deps<=0)d.resolve();else{const{timeout:t,pendingId:e}=d;t>0?setTimeout(()=>
2{d.pendingId===e&&d.fallback(p)},t):0===t&&d.fallback(p)}}(t,e,i,s,n,o,a,l,c)},hydrate:function(t,e,i,s,n,r,o,a,l){const c=e.suspense=K(e,s,i,t.parentNode,document.createElement("div"),null,n,r,o,a,!0),h=l(t,c.pendingBranch=e.ssContent,i,c,r,o);0===c.deps&&c.resolve();return h},create:K,normalize:function(t){const{shapeFlag:e,children:i}=t,s=32&e;t.ssContent=Z(s?i.default:i),t.ssFallback=s?Z(i.fallback):vi(ei)}};function q(t,e){const i=t.props&&t.props[e];(0,n.Tn)(i)&&i()}function K(t,e,i,s,r,o,a,c,h,d,u=!1){const{p,m:f,um:g,n:m,o:{parentNode:x,remove:b}}=d,y=(0,n.Ro)(t.props&&t.props.timeout),v={vnode:t,parent:e,parentComponent:i,isSVG:a,container:s,hiddenContainer:r,anchor:o,deps:0,pendingId:0,timeout:"number"==typeof y?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(t=!1){const{vnode:e,activeBranch:i,pendingBranch:s,pendingId:n,effects:r,parentComponent:o,container:a}=v;if(v.isHydrating)v.isHydrating=!1;else if(!t){const t=i&&s.transition&&"out-in"===s.transition.mode;t&&(i.transition.afterLeave=()=>{n===v.pendingId&&f(s,a,e,0)});let{anchor:e}=v;i&&(e=m(i),g(i,o,v,!0)),t||f(s,a,e,0)}Q(v,s),v.pendingBranch=null,v.isInFallback=!1;let l=v.parent,c=!1;for(;l;){if(l.pendingBranch){l.effects.push(...r),c=!0;break}l=l.parent}c||w(r),v.effects=[],q(e,"onResolve")},fallback(t){if(!v.pendingBranch)return;const{vnode:e,activeBranch:i,parentComponent:s,container:n,isSVG:r}=v;q(e,"onFallback");const o=m(i),a=()=>{v.isInFallback&&(p(null,t,n,o,s,null,r,c,h),Q(v,t))},l=t.transition&&"out-in"===t.transition.mode;l&&(i.transition.afterLeave=a),v.isInFallback=!0,g(i,s,null,!0),l||a()},move(t,e,i){v.activeBranch&&f(v.activeBranch,t,e,i),v.container=t},next:()=>v.activeBranch&&m(v.activeBranch),registerDep(t,e){const i=!!v.pendingBranch;i&&v.deps++;const s=t.vnode.el;t.asyncDep.catch(e=>{l(e,t,0)}).then(n=>{if(t.isUnmounted||v.isUnmounted||v.pendingId!==t.suspenseId)return;t.asyncResolved=!0;const{vnode:r}=t;Yi(t,n,!1),s&&(r.el=s);const o=!s&&t.subTree.el;e(t,r,x(s||t.subTree.el),s?null:m(t.subTree),v,a,h),o&&b(o),G(t,r.el),i&&0===--v.deps&&v.resolve()})},unmount(t,e){v.isUnmounted=!0,v.activeBranch&&g(v.activeBranch,i,t,e),v.pendingBranch&&g(v.pendingBranch,i,t,e)}};return v}function Z(t){let e;if((0,n.Tn)(t)){const i=li&&t._c;i&&(t._d=!1,ri()),t=t(),i&&(t._d=!0,e=ni,oi())}if((0,n.cy)(t)){const e=X(t);0,t=e}return t=Mi(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(e=>e!==t)),t}function J(t,e){e&&e.pendingBranch?(0,n.cy)(t)?e.effects.push(...t):e.effects.push(t):w(t)}function Q(t,e){t.activeBranch=e;const{vnode:i,parentComponent:s}=t,n=i.el=e.el;s&&s.subTree===i&&(s.vnode.el=n,G(s,n))}function tt(t,e){if(Ri){let i=Ri.provides;const s=Ri.parent&&Ri.parent.provides;s===i&&(i=Ri.provides=Object.create(s)),i[t]=e}else 0}function et(t,e,i=!1){const s=Ri||D;if(s){const r=null==s.parent?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&t in r)return r[t];if(arguments.length>1)return i&&(0,n.Tn)(e)?e.call(s.proxy):e}else 0}function it(t,e){return at(t,null,e)}function st(t,e){return at(t,null,{flush:"post"})}function nt(t,e){return at(t,null,{flush:"sync"})}const rt={};function ot(t,e,i){return at(t,e,i)}function at(t,e,{immediate:i,deep:r,flush:l,onTrack:c,onTrigger:h}=n.MZ){const d=Ri;let u,p,f=!1,g=!1;if((0,s.i9)(t)?(u=()=>t.value,f=(0,s.fE)(t)):(0,s.g8)(t)?(u=()=>t,r=!0):(0,n.cy)(t)?(g=!0,f=t.some(t=>(0,s.g8)(t)||(0,s.fE)(t)),u=()=>t.map(t=>(0,s.i9)(t)?t.value:(0,s.g8)(t)?ht(t):(0,n.Tn)(t)?o(t,d,2):void 0)):u=(0,n.Tn)(t)?e?()=>o(t,d,2):()=>{if(!d||!d.isUnmounted)return p&&p(),a(t,d,3,[x])}:n.tE,e&&r){const t=u;u=()=>ht(t())}let m,x=t=>{p=S.onStop=()=>{o(t,d,4)}};if(Xi){if(x=n.tE,e?i&&a(e,d,3,[u(),g?[]:void 0,x]):u(),"sync"!==l)return n.tE;{const t=ds();m=t.__watcherHandles||(t.__watcherHandles=[])}}let b=g?new Array(t.length).fill(rt):rt;const v=()=>{if(S.active)if(e){const t=S.run();(r||f||(g?t.some((t,e)=>(0,n.$H)(t,b[e])):(0,n.$H)(t,b)))&&(p&&p(),a(e,d,3,[t,b===rt?void 0:g&&b[0]===rt?[]:b,x]),b=t)}
2else S.run()};let w;v.allowRecurse=!!e,"sync"===l?w=v:"post"===l?w=()=>He(v,d&&d.suspense):(v.pre=!0,d&&(v.id=d.uid),w=()=>y(v));const S=new s.X2(u,w);e?i?v():b=S.run():"post"===l?He(S.run.bind(S),d&&d.suspense):S.run();const k=()=>{S.stop(),d&&d.scope&&(0,n.TF)(d.scope.effects,S)};return m&&m.push(k),k}function lt(t,e,i){const s=this.proxy,r=(0,n.Kg)(t)?t.includes(".")?ct(s,t):()=>s[t]:t.bind(s,s);let o;(0,n.Tn)(e)?o=e:(o=e.handler,i=e);const a=Ri;Bi(this);const l=at(r,o.bind(s),i);return a?Bi(a):ji(),l}function ct(t,e){const i=e.split(".");return()=>{let e=t;for(let t=0;t<i.length&&e;t++)e=e[i[t]];return e}}function ht(t,e){if(!(0,n.Gv)(t)||t.__v_skip)return t;if((e=e||new Set).has(t))return t;if(e.add(t),(0,s.i9)(t))ht(t.value,e);else if((0,n.cy)(t))for(let i=0;i<t.length;i++)ht(t[i],e);else if((0,n.vM)(t)||(0,n.jh)(t))t.forEach(t=>{ht(t,e)});else if((0,n.Qd)(t))for(const i in t)ht(t[i],e);return t}function dt(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Nt(()=>{t.isMounted=!0}),Ft(()=>{t.isUnmounting=!0}),t}const ut=[Function,Array],pt={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ut,onEnter:ut,onAfterEnter:ut,onEnterCancelled:ut,onBeforeLeave:ut,onLeave:ut,onAfterLeave:ut,onLeaveCancelled:ut,onBeforeAppear:ut,onAppear:ut,onAfterAppear:ut,onAppearCancelled:ut},setup(t,{slots:e}){const i=Ni(),n=dt();let r;return()=>{const o=e.default&&yt(e.default(),!0);if(!o||!o.length)return;let a=o[0];if(o.length>1){let t=!1;for(const e of o)if(e.type!==ei){0,a=e,t=!0;break}}const l=(0,s.ux)(t),{mode:c}=l;if(n.isLeaving)return mt(a);const h=xt(a);if(!h)return mt(a);const d=gt(h,l,n,i);bt(h,d);const u=i.subTree,p=u&&xt(u);let f=!1;const{getTransitionKey:g}=h.type;if(g){const t=g();void 0===r?r=t:t!==r&&(r=t,f=!0)}if(p&&p.type!==ei&&(!fi(h,p)||f)){const t=gt(p,l,n,i);if(bt(p,t),"out-in"===c)return n.isLeaving=!0,t.afterLeave=()=>{n.isLeaving=!1,!1!==i.update.active&&i.update()},mt(a);"in-out"===c&&h.type!==ei&&(t.delayLeave=(t,e,i)=>{ft(n,p)[String(p.key)]=p,t._leaveCb=()=>{e(),t._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=i})}return a}}};function ft(t,e){const{leavingVNodes:i}=t;let s=i.get(e.type);return s||(s=Object.create(null),i.set(e.type,s)),s}function gt(t,e,i,s){const{appear:r,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:h,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:p,onLeave:f,onAfterLeave:g,onLeaveCancelled:m,onBeforeAppear:x,onAppear:b,onAfterAppear:y,onAppearCancelled:v}=e,w=String(t.key),S=ft(i,t),k=(t,e)=>{t&&a(t,s,9,e)},C=(t,e)=>{const i=e[1];k(t,e),(0,n.cy)(t)?t.every(t=>t.length<=1)&&i():t.length<=1&&i()},A={mode:o,persisted:l,beforeEnter(e){let s=c;if(!i.isMounted){if(!r)return;s=x||c}e._leaveCb&&e._leaveCb(!0);const n=S[w];n&&fi(t,n)&&n.el._leaveCb&&n.el._leaveCb(),k(s,[e])},enter(t){let e=h,s=d,n=u;if(!i.isMounted){if(!r)return;e=b||h,s=y||d,n=v||u}let o=!1;const a=t._enterCb=e=>{o||(o=!0,k(e?n:s,[t]),A.delayedLeave&&A.delayedLeave(),t._enterCb=void 0)};e?C(e,[t,a]):a()},leave(e,s){const n=String(t.key);if(e._enterCb&&e._enterCb(!0),i.isUnmounting)return s();k(p,[e]);let r=!1;const o=e._leaveCb=i=>{r||(r=!0,s(),k(i?m:g,[e]),e._leaveCb=void 0,S[n]===t&&delete S[n])};S[n]=t,f?C(f,[e,o]):o()},clone:t=>gt(t,e,i,s)};return A}function mt(t){if(Ct(t))return(t=ki(t)).children=null,t}function xt(t){return Ct(t)?t.children?t.children[0]:void 0:t}function bt(t,e){6&t.shapeFlag&&t.component?bt(t.component.subTree,e):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function yt(t,e=!1,i){let s=[],n=0;for(let r=0;r<t.length;r++){let o=t[r];const a=null==i?o.key:String(i)+String(null!=o.key?o.key:r);o.type===Qe?(128&o.patchFlag&&n++,s=s.concat(yt(o.children,e,a))):(e||o.type!==ei)&&s.push(null!=a?ki(o,{key:a}):o)}if(n>1)for(let t=0;t<s.length;t++)s[t].patchFlag=-2;return s}function vt(t){return(0,n.Tn)(t)?{setup:t,name:t.name}:t}const wt=t=>!!t.type.__asyncLoader;function St(t){(0,n.Tn)(t)&&(t={loader:t});const{loader:e,loadingComponent:i,errorComponent:r,delay:o=200,timeout:a,suspensible:c=!0,onError:h}=t;let d,u=null,p=0;const f=()=>{let t;return u||(t=u=e().catch(t=>{if(t=t instanceof Error?t:new Error(String(t)),h)return new Promise((e,i)=>{h(t,()=>e((p++,u=null,f())),()=>i(t),p+1)});throw t}).then(e=>t!==u&&u?u:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),d=e,e)))};return vt({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return d},setup(){const t=Ri;if(d)return()=>kt(d,t);const e=e=>{u=null,l(e,t,13,!r)};if(c&&t.suspense||Xi)return f().then(e=>()=>kt(e,t)).catch(t=>(e(t),()=>r?vi(r,{error:t}):null));const n=(0,s.KR)(!1),h=(0,s.KR)(),p=(0,s.KR)(!!o);return o&&setTimeout(()=>{p.value=!1},o),null!=a&&setTimeout(()=>{if(!n.value&&!h.value){const t=new Error(`Async component timed out after ${a}ms.`);e(t),h.value=t}},a),f().then(()=>{n.value=!0,t.parent&&Ct(t.parent.vnode)&&y(t.parent.update)}
2).catch(t=>{e(t),h.value=t}),()=>n.value&&d?kt(d,t):h.value&&r?vi(r,{error:h.value}):i&&!p.value?vi(i):void 0}})}function kt(t,e){const{ref:i,props:s,children:n,ce:r}=e.vnode,o=vi(t,s,n);return o.ref=i,o.ce=r,delete e.vnode.ce,o}const Ct=t=>t.type.__isKeepAlive,At={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const i=Ni(),s=i.ctx;if(!s.renderer)return()=>{const t=e.default&&e.default();return t&&1===t.length?t[0]:t};const r=new Map,o=new Set;let a=null;const l=i.suspense,{renderer:{p:c,m:h,um:d,o:{createElement:u}}}=s,p=u("div");function f(t){Lt(t),d(t,i,l,!0)}function g(t){r.forEach((e,i)=>{const s=Ki(e.type);!s||t&&t(s)||m(i)})}function m(t){const e=r.get(t);a&&e.type===a.type?a&&Lt(a):f(e),r.delete(t),o.delete(t)}s.activate=(t,e,i,s,r)=>{const o=t.component;h(t,e,i,0,l),c(o.vnode,t,e,i,o,l,s,t.slotScopeIds,r),He(()=>{o.isDeactivated=!1,o.a&&(0,n.DY)(o.a);const e=t.props&&t.props.onVnodeMounted;e&&Li(e,o.parent,t)},l)},s.deactivate=t=>{const e=t.component;h(t,p,null,1,l),He(()=>{e.da&&(0,n.DY)(e.da);const i=t.props&&t.props.onVnodeUnmounted;i&&Li(i,e.parent,t),e.isDeactivated=!0},l)},ot(()=>[t.include,t.exclude],([t,e])=>{t&&g(e=>Et(t,e)),e&&g(t=>!Et(e,t))},{flush:"post",deep:!0});let x=null;const b=()=>{null!=x&&r.set(x,_t(i.subTree))};return Nt(b),jt(b),Ft(()=>{r.forEach(t=>{const{subTree:e,suspense:s}=i,n=_t(e);if(t.type===n.type){Lt(n);const t=n.component.da;return void(t&&He(t,s))}f(t)})}),()=>{if(x=null,!e.default)return null;const i=e.default(),s=i[0];if(i.length>1)return a=null,i;if(!(pi(s)&&(4&s.shapeFlag||128&s.shapeFlag)))return a=null,s;let n=_t(s);const l=n.type,c=Ki(wt(n)?n.type.__asyncResolved||{}:l),{include:h,exclude:d,max:u}=t;if(h&&(!c||!Et(h,c))||d&&c&&Et(d,c))return a=n,s;const p=null==n.key?l:n.key,f=r.get(p);return n.el&&(n=ki(n),128&s.shapeFlag&&(s.ssContent=n)),x=p,f?(n.el=f.el,n.component=f.component,n.transition&&bt(n,n.transition),n.shapeFlag|=512,o.delete(p),o.add(p)):(o.add(p),u&&o.size>parseInt(u,10)&&m(o.values().next().value)),n.shapeFlag|=256,a=n,U(s.type)?s:n}}};function Et(t,e){return(0,n.cy)(t)?t.some(t=>Et(t,e)):(0,n.Kg)(t)?t.split(",").includes(e):!!t.test&&t.test(e)}function Mt(t,e){Pt(t,"a",e)}function Tt(t,e){Pt(t,"da",e)}function Pt(t,e,i=Ri){const s=t.__wdc||(t.__wdc=()=>{let e=i;for(;e;){if(e.isDeactivated)return;e=e.parent}return t()});if(It(e,s,i),i){let t=i.parent;for(;t&&t.parent;)Ct(t.parent.vnode)&&Ot(s,e,i,t),t=t.parent}}function Ot(t,e,i,s){const r=It(e,t,s,!0);zt(()=>{(0,n.TF)(s[e],r)},i)}function Lt(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function _t(t){return 128&t.shapeFlag?t.ssContent:t}function It(t,e,i=Ri,n=!1){if(i){const r=i[t]||(i[t]=[]),o=e.__weh||(e.__weh=(...n)=>{if(i.isUnmounted)return;(0,s.C4)(),Bi(i);const r=a(e,i,t,n);return ji(),(0,s.bl)(),r});return n?r.unshift(o):r.push(o),o}}const Dt=t=>(e,i=Ri)=>(!Xi||"sp"===t)&&It(t,(...t)=>e(...t),i),Rt=Dt("bm"),Nt=Dt("m"),Bt=Dt("bu"),jt=Dt("u"),Ft=Dt("bum"),zt=Dt("um"),Ht=Dt("sp"),Xt=Dt("rtg"),Wt=Dt("rtc");function Yt(t,e=Ri){It("ec",t,e)}function Vt(t,e){const i=D;if(null===i)return t;const s=qi(i)||i.proxy,r=t.dirs||(t.dirs=[]);for(let t=0;t<e.length;t++){let[i,o,a,l=n.MZ]=e[t];i&&((0,n.Tn)(i)&&(i={mounted:i,updated:i}),i.deep&&ht(o),r.push({dir:i,instance:s,value:o,oldValue:void 0,arg:a,modifiers:l}))}return t}function Gt(t,e,i,n){const r=t.dirs,o=e&&e.dirs;for(let l=0;l<r.length;l++){const c=r[l];o&&(c.oldValue=o[l].value);let h=c.dir[n];h&&((0,s.C4)(),a(h,i,8,[t.el,c,t,e]),(0,s.bl)())}}const Ut="components";function $t(t,e){return Jt(Ut,t,!0,e)||t}const qt=Symbol();function Kt(t){return(0,n.Kg)(t)?Jt(Ut,t,!1)||t:t||qt}function Zt(t){return Jt("directives",t)}function Jt(t,e,i=!0,s=!1){const r=D||Ri;if(r){const i=r.type;if(t===Ut){const t=Ki(i,!1);if(t&&(t===e||t===(0,n.PT)(e)||t===(0,n.ZH)((0,n.PT)(e))))return i}const o=Qt(r[t]||i[t],e)||Qt(r.appContext[t],e);return!o&&s?i:o}}function Qt(t,e){return t&&(t[e]||t[(0,n.PT)(e)]||t[(0,n.ZH)((0,n.PT)(e))])}function te(t,e,i,s){let r;const o=i&&i[s];if((0,n.cy)(t)||(0,n.Kg)(t)){r=new Array(t.length);for(let i=0,s=t.length;i<s;i++)r[i]=e(t[i],i,void 0,o&&o[i])}else if("number"==typeof t){0,r=new Array(t);for(let i=0;i<t;i++)r[i]=e(i+1,i,void 0,o&&o[i])}else if((0,n.Gv)(t))if(t[Symbol.iterator])r=Array.from(t,(t,i)=>e(t,i,void 0,o&&o[i]));else{const i=Object.keys(t);r=new Array(i.length);for(let s=0,n=i.length;s<n;s++){const n=i[s];r[s]=e(t[n],n,s,o&&o[s])}}else r=[];return i&&(i[s]=r),r}function ee(t,e){for(let i=0;i<e.length;i++){const s=e[i];if((0,n.cy)(s))for(let e=0;e<s.length;e++)t[s[e].name]=s[e].fn;else s&&(t[s.name]=s.key?(...t)=>{const e=s.fn(...t);return e&&(e.key=s.key),e}:s.fn)}return t}function ie(t,e,i={},s,n){if(D.isCE||D.parent&&wt(D.parent)&&D.parent.isCE)return"default"!==e&&(i.name=e),vi("slot",i,s&&s());let r=t[e];r&&r._c&&(r._d=!1),ri();const o=r&&se(r(i)),a=ui(Qe,{key:i.key||o&&o.key||`_${e}`},o||(s?s():[]),o&&1===t._?64:-2);return!n&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function se(t){return t.some(t=>!pi(t)||t.type!==ei&&!(t.type===Qe&&!se(t.children)))?t:null}function ne(t,e){const i={};for(const s in t)i[e&&/[A-Z]/.test(s)?`on:${s}`:(0,n.rU)(s)]=t[s];return i}const re=t=>t?Fi(t)?qi(t)||t.proxy:re(t.parent):null,oe=(0,n.X$)(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>re(t.parent),$root:t=>re(t.root),$emit:t=>t.emit,$options:t=>fe(t),$forceUpdate:t=>
2t.f||(t.f=()=>y(t.update)),$nextTick:t=>t.n||(t.n=b.bind(t.proxy)),$watch:t=>lt.bind(t)}),ae=(t,e)=>t!==n.MZ&&!t.__isScriptSetup&&(0,n.$3)(t,e),le={get({_:t},e){const{ctx:i,setupState:r,data:o,props:a,accessCache:l,type:c,appContext:h}=t;let d;if("$"!==e[0]){const s=l[e];if(void 0!==s)switch(s){case 1:return r[e];case 2:return o[e];case 4:return i[e];case 3:return a[e]}else{if(ae(r,e))return l[e]=1,r[e];if(o!==n.MZ&&(0,n.$3)(o,e))return l[e]=2,o[e];if((d=t.propsOptions[0])&&(0,n.$3)(d,e))return l[e]=3,a[e];if(i!==n.MZ&&(0,n.$3)(i,e))return l[e]=4,i[e];he&&(l[e]=0)}}const u=oe[e];let p,f;return u?("$attrs"===e&&(0,s.u4)(t,"get",e),u(t)):(p=c.__cssModules)&&(p=p[e])?p:i!==n.MZ&&(0,n.$3)(i,e)?(l[e]=4,i[e]):(f=h.config.globalProperties,(0,n.$3)(f,e)?f[e]:void 0)},set({_:t},e,i){const{data:s,setupState:r,ctx:o}=t;return ae(r,e)?(r[e]=i,!0):s!==n.MZ&&(0,n.$3)(s,e)?(s[e]=i,!0):!(0,n.$3)(t.props,e)&&(("$"!==e[0]||!(e.slice(1)in t))&&(o[e]=i,!0))},has({_:{data:t,setupState:e,accessCache:i,ctx:s,appContext:r,propsOptions:o}},a){let l;return!!i[a]||t!==n.MZ&&(0,n.$3)(t,a)||ae(e,a)||(l=o[0])&&(0,n.$3)(l,a)||(0,n.$3)(s,a)||(0,n.$3)(oe,a)||(0,n.$3)(r.config.globalProperties,a)},defineProperty(t,e,i){return null!=i.get?t._.accessCache[e]=0:(0,n.$3)(i,"value")&&this.set(t,e,i.value,null),Reflect.defineProperty(t,e,i)}};const ce=(0,n.X$)({},le,{get(t,e){if(e!==Symbol.unscopables)return le.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!(0,n.Ft)(e)});let he=!0;function de(t){const e=fe(t),i=t.proxy,r=t.ctx;he=!1,e.beforeCreate&&ue(e.beforeCreate,t,"bc");const{data:o,computed:a,methods:l,watch:c,provide:h,inject:d,created:u,beforeMount:p,mounted:f,beforeUpdate:g,updated:m,activated:x,deactivated:b,beforeDestroy:y,beforeUnmount:v,destroyed:w,unmounted:S,render:k,renderTracked:C,renderTriggered:A,errorCaptured:E,serverPrefetch:M,expose:T,inheritAttrs:P,components:O,directives:L,filters:_}=e;if(d&&function(t,e,i=n.tE,r=!1){(0,n.cy)(t)&&(t=be(t));for(const i in t){const o=t[i];let a;a=(0,n.Gv)(o)?"default"in o?et(o.from||i,o.default,!0):et(o.from||i):et(o),(0,s.i9)(a)&&r?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>a.value,set:t=>a.value=t}):e[i]=a}}(d,r,null,t.appContext.config.unwrapInjectedRef),l)for(const t in l){const e=l[t];(0,n.Tn)(e)&&(r[t]=e.bind(i))}if(o){0;const e=o.call(i,i);0,(0,n.Gv)(e)&&(t.data=(0,s.Kh)(e))}if(he=!0,a)for(const t in a){const e=a[t],s=(0,n.Tn)(e)?e.bind(i,i):(0,n.Tn)(e.get)?e.get.bind(i,i):n.tE;0;const o=!(0,n.Tn)(e)&&(0,n.Tn)(e.set)?e.set.bind(i):n.tE,l=Ji({get:s,set:o});Object.defineProperty(r,t,{enumerable:!0,configurable:!0,get:()=>l.value,set:t=>l.value=t})}if(c)for(const t in c)pe(c[t],r,i,t);if(h){const t=(0,n.Tn)(h)?h.call(i):h;Reflect.ownKeys(t).forEach(e=>{tt(e,t[e])})}function I(t,e){(0,n.cy)(e)?e.forEach(e=>t(e.bind(i))):e&&t(e.bind(i))}if(u&&ue(u,t,"c"),I(Rt,p),I(Nt,f),I(Bt,g),I(jt,m),I(Mt,x),I(Tt,b),I(Yt,E),I(Wt,C),I(Xt,A),I(Ft,v),I(zt,S),I(Ht,M),(0,n.cy)(T))if(T.length){const e=t.exposed||(t.exposed={});T.forEach(t=>{Object.defineProperty(e,t,{get:()=>i[t],set:e=>i[t]=e})})}else t.exposed||(t.exposed={});k&&t.render===n.tE&&(t.render=k),null!=P&&(t.inheritAttrs=P),O&&(t.components=O),L&&(t.directives=L)}function ue(t,e,i){a((0,n.cy)(t)?t.map(t=>t.bind(e.proxy)):t.bind(e.proxy),e,i)}function pe(t,e,i,s){const r=s.includes(".")?ct(i,s):()=>i[s];if((0,n.Kg)(t)){const i=e[t];(0,n.Tn)(i)&&ot(r,i)}else if((0,n.Tn)(t))ot(r,t.bind(i));else if((0,n.Gv)(t))if((0,n.cy)(t))t.forEach(t=>pe(t,e,i,s));else{const s=(0,n.Tn)(t.handler)?t.handler.bind(i):e[t.handler];(0,n.Tn)(s)&&ot(r,s,t)}else 0}function fe(t){const e=t.type,{mixins:i,extends:s}=e,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=t.appContext,l=o.get(e);let c;return l?c=l:r.length||i||s?(c={},r.length&&r.forEach(t=>ge(c,t,a,!0)),ge(c,e,a)):c=e,(0,n.Gv)(e)&&o.set(e,c),c}function ge(t,e,i,s=!1){const{mixins:n,extends:r}=e;r&&ge(t,r,i,!0),n&&n.forEach(e=>ge(t,e,i,!0));for(const n in e)if(s&&"expose"===n);else{const s=me[n]||i&&i[n];t[n]=s?s(t[n],e[n]):e[n]}return t}const me={data:xe,props:ve,emits:ve,methods:ve,computed:ve,beforeCreate:ye,created:ye,beforeMount:ye,mounted:ye,beforeUpdate:ye,updated:ye,beforeDestroy:ye,beforeUnmount:ye,destroyed:ye,unmounted:ye,activated:ye,deactivated:ye,errorCaptured:ye,serverPrefetch:ye,components:ve,directives:ve,watch:function(t,e){if(!t)return e;if(!e)return t;const i=(0,n.X$)(Object.create(null),t);for(const s in e)i[s]=ye(t[s],e[s]);return i},provide:xe,inject:function(t,e){return ve(be(t),be(e))}};function xe(t,e){return e?t?function(){return(0,n.X$)((0,n.Tn)(t)?t.call(this,this):t,(0,n.Tn)(e)?e.call(this,this):e)}:e:t}function be(t){if((0,n.cy)(t)){const e={};for(let i=0;i<t.length;i++)e[t[i]]=t[i];return e}return t}function ye(t,e){return t?[...new Set([].concat(t,e))]:e}function ve(t,e){return t?(0,n.X$)((0,n.X$)(Object.create(null),t),e):e}function we(t,e,i,r){const[o,a]=t.propsOptions;let l,c=!1;if(e)for(let s in e){if((0,n.SU)(s))continue;const h=e[s];let d;o&&(0,n.$3)(o,d=(0,n.PT)(s))?a&&a.includes(d)?(l||(l={}))[d]=h:i[d]=h:I(t.emitsOptions,s)||s in r&&h===r[s]||(r[s]=h,c=!0)}if(a){const e=(0,s.ux)(i),r=l||n.MZ;for(let s=0;s<a.length;s++){const l=a[s];i[l]=Se(o,e,l,r[l],t,!(0,n.$3)(r,l))}}return c}function Se(t,e,i,s,r,o){const a=t[i];if(null!=a){const t=(0,n.$3)(a,"default");if(t&&void 0===s){const t=a.default;if(a.type!==Function&&(0,n.Tn)(t)){const{propsDefaults:n}=r;i in n?s=n[i]:(Bi(r),s=n[i]=t.call(null,e),ji())}else s=t}a[0]&&(o&&!t?s=!1:!a[1]||""!==s&&s!==(0,n.Tg)(i)||(s=!0))}return s}function ke(t,e,i=!1){const s=e.propsCache,r=s.get(t);if(r)return r;const o=t.props,a={},l=[];let c=!1;if(!(0,n.Tn)(t)){const s=t=>{c=!0;const[i,s]=ke(t,e,!0);(0,n.X$)(a,i),s&&l.push(...s)};!i&&e.mixins.length&&e.mixins.forEach(s),t.extends&&s(t.extends),t.mixins&&t.mixins.forEach(s)}if(!o&&!c)return(0,n.Gv)(t)&&s.set(t,n.Oj),n.Oj;if((0,n.cy)(o))for(let t=0;t<o.length;t++){0;const e=(0,n.PT)(o[t]);Ce(e)&&(a[e]=n.MZ)}else if(o){0;for(const t in o){const e=(0,n.PT)(t);
2if(Ce(e)){const i=o[t],s=a[e]=(0,n.cy)(i)||(0,n.Tn)(i)?{type:i}:Object.assign({},i);if(s){const t=Me(Boolean,s.type),i=Me(String,s.type);s[0]=t>-1,s[1]=i<0||t<i,(t>-1||(0,n.$3)(s,"default"))&&l.push(e)}}}}const h=[a,l];return(0,n.Gv)(t)&&s.set(t,h),h}function Ce(t){return"$"!==t[0]}function Ae(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:null===t?"null":""}function Ee(t,e){return Ae(t)===Ae(e)}function Me(t,e){return(0,n.cy)(e)?e.findIndex(e=>Ee(e,t)):(0,n.Tn)(e)&&Ee(e,t)?0:-1}const Te=t=>"_"===t[0]||"$stable"===t,Pe=t=>(0,n.cy)(t)?t.map(Mi):[Mi(t)],Oe=(t,e,i)=>{if(e._n)return e;const s=z((...t)=>Pe(e(...t)),i);return s._c=!1,s},Le=(t,e,i)=>{const s=t._ctx;for(const i in t){if(Te(i))continue;const r=t[i];if((0,n.Tn)(r))e[i]=Oe(0,r,s);else if(null!=r){0;const t=Pe(r);e[i]=()=>t}}},_e=(t,e)=>{const i=Pe(e);t.slots.default=()=>i};function Ie(){return{app:null,config:{isNativeTag:n.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let De=0;function Re(t,e){return function(i,s=null){(0,n.Tn)(i)||(i=Object.assign({},i)),null==s||(0,n.Gv)(s)||(s=null);const r=Ie(),o=new Set;let a=!1;const l=r.app={_uid:De++,_component:i,_props:s,_container:null,_context:r,_instance:null,version:gs,get config(){return r.config},set config(t){0},use:(t,...e)=>(o.has(t)||(t&&(0,n.Tn)(t.install)?(o.add(t),t.install(l,...e)):(0,n.Tn)(t)&&(o.add(t),t(l,...e))),l),mixin:t=>(r.mixins.includes(t)||r.mixins.push(t),l),component:(t,e)=>e?(r.components[t]=e,l):r.components[t],directive:(t,e)=>e?(r.directives[t]=e,l):r.directives[t],mount(n,o,c){if(!a){0;const h=vi(i,s);return h.appContext=r,o&&e?e(h,n):t(h,n,c),a=!0,l._container=n,n.__vue_app__=l,qi(h.component)||h.component.proxy}},unmount(){a&&(t(null,l._container),delete l._container.__vue_app__)},provide:(t,e)=>(r.provides[t]=e,l)};return l}}function Ne(t,e,i,r,a=!1){if((0,n.cy)(t))return void t.forEach((t,s)=>Ne(t,e&&((0,n.cy)(e)?e[s]:e),i,r,a));if(wt(r)&&!a)return;const l=4&r.shapeFlag?qi(r.component)||r.component.proxy:r.el,c=a?null:l,{i:h,r:d}=t;const u=e&&e.r,p=h.refs===n.MZ?h.refs={}:h.refs,f=h.setupState;if(null!=u&&u!==d&&((0,n.Kg)(u)?(p[u]=null,(0,n.$3)(f,u)&&(f[u]=null)):(0,s.i9)(u)&&(u.value=null)),(0,n.Tn)(d))o(d,h,12,[c,p]);else{const e=(0,n.Kg)(d),r=(0,s.i9)(d);if(e||r){const s=()=>
2{if(t.f){const i=e?(0,n.$3)(f,d)?f[d]:p[d]:d.value;a?(0,n.cy)(i)&&(0,n.TF)(i,l):(0,n.cy)(i)?i.includes(l)||i.push(l):e?(p[d]=[l],(0,n.$3)(f,d)&&(f[d]=p[d])):(d.value=[l],t.k&&(p[t.k]=d.value))}else e?(p[d]=c,(0,n.$3)(f,d)&&(f[d]=c)):r&&(d.value=c,t.k&&(p[t.k]=c))};c?(s.id=-1,He(s,i)):s()}else 0}}let Be=!1;const je=t=>/svg/.test(t.namespaceURI)&&"foreignObject"!==t.tagName,Fe=t=>8===t.nodeType;function ze(t){const{mt:e,p:i,o:{patchProp:s,createText:r,nextSibling:o,parentNode:a,remove:l,insert:c,createComment:h}}=t,d=(i,s,n,l,h,x=!1)=>{const b=Fe(i)&&"["===i.data,y=()=>g(i,s,n,l,h,b),{type:v,ref:w,shapeFlag:S,patchFlag:k}=s;let C=i.nodeType;s.el=i,-2===k&&(x=!1,s.dynamicChildren=null);let A=null;switch(v){case ti:3!==C?""===s.children?(c(s.el=r(""),a(i),i),A=i):A=y():(i.data!==s.children&&(Be=!0,i.data=s.children),A=o(i));break;case ei:A=8!==C||b?y():o(i);break;case ii:if(b&&(C=(i=o(i)).nodeType),1===C||3===C){A=i;const t=!s.children.length;for(let e=0;e<s.staticCount;e++)t&&(s.children+=1===A.nodeType?A.outerHTML:A.data),e===s.staticCount-1&&(s.anchor=A),A=o(A);return b?o(A):A}y();break;case Qe:A=b?f(i,s,n,l,h,x):y();break;default:if(1&S)A=1!==C||s.type.toLowerCase()!==i.tagName.toLowerCase()?y():u(i,s,n,l,h,x);else if(6&S){s.slotScopeIds=h;const t=a(i);if(e(s,t,null,n,l,je(t),x),A=b?m(i):o(i),A&&Fe(A)&&"teleport end"===A.data&&(A=o(A)),wt(s)){let e;b?(e=vi(Qe),e.anchor=A?A.previousSibling:t.lastChild):e=3===i.nodeType?Ci(""):vi("div"),e.el=i,s.component.subTree=e}}else 64&S?A=8!==C?y():s.type.hydrate(i,s,n,l,h,x,t,p):128&S&&(A=s.type.hydrate(i,s,n,l,je(a(i)),h,x,t,d))}return null!=w&&Ne(w,null,l,s),A},u=(t,e,i,r,o,a)=>{a=a||!!e.dynamicChildren;const{type:c,props:h,patchFlag:d,shapeFlag:u,dirs:f}=e,g="input"===c&&f||"option"===c;if(g||-1!==d){if(f&&Gt(e,null,i,"created"),h)if(g||!a||48&d)for(const e in h)(g&&e.endsWith("value")||(0,n.Mp)(e)&&!(0,n.SU)(e))&&s(t,e,null,h[e],!1,void 0,i);else h.onClick&&s(t,"onClick",null,h.onClick,!1,void 0,i);let c;if((c=h&&h.onVnodeBeforeMount)&&Li(c,i,e),f&&Gt(e,null,i,"beforeMount"),((c=h&&h.onVnodeMounted)||f)&&J(()=>{c&&Li(c,i,e),f&&Gt(e,null,i,"mounted")},r),16&u&&(!h||!h.innerHTML&&!h.textContent)){let s=p(t.firstChild,e,t,i,r,o,a);for(;s;){Be=!0;const t=s;s=s.nextSibling,l(t)}}else 8&u&&t.textContent!==e.children&&(Be=!0,t.textContent=e.children)}return t.nextSibling},p=(t,e,s,n,r,o,a)=>{a=a||!!e.dynamicChildren;const l=e.children,c=l.length;for(let e=0;e<c;e++){const c=a?l[e]:l[e]=Mi(l[e]);if(t)t=d(t,c,n,r,o,a);else{if(c.type===ti&&!c.children)continue;Be=!0,i(null,c,s,null,n,r,je(s),o)}}return t},f=(t,e,i,s,n,r)=>{const{slotScopeIds:l}=e;l&&(n=n?n.concat(l):l);const d=a(t),u=p(o(t),e,d,i,s,n,r);return u&&Fe(u)&&"]"===u.data?o(e.anchor=u):(Be=!0,c(e.anchor=h("]"),d,u),u)},g=(t,e,s,n,r,c)=>{if(Be=!0,e.el=null,c){const e=m(t);for(;;){const i=o(t);if(!i||i===e)break;l(i)}}const h=o(t),d=a(t);return l(t),i(null,e,d,h,s,n,je(d),r),h},m=t=>{let e=0;for(;t;)if((t=o(t))&&Fe(t)&&("["===t.data&&e++,"]"===t.data)){if(0===e)return o(t);e--}return t};return[(t,e)=>{if(!e.hasChildNodes())return i(null,t,e),k(),void(e._vnode=t);Be=!1,d(e.firstChild,t,null,null,null),k(),e._vnode=t,Be&&console.error("Hydration completed but contains mismatches.")},d]}const He=J;function Xe(t){return Ye(t)}function We(t){return Ye(t,ze)}function Ye(t,e){(0,n.We)().__VUE__=!0;const{insert:i,remove:r,patchProp:o,createElement:a,createText:l,createComment:c,setText:h,setElementText:p,parentNode:f,nextSibling:g,setScopeId:m=n.tE,insertStaticContent:x}=t,b=(t,e,i,s=null,n=null,r=null,o=!1,a=null,l=!!e.dynamicChildren)=>{if(t===e)return;t&&!fi(t,e)&&(s=J(t),U(t,n,r,!0),t=null),-2===e.patchFlag&&(l=!1,e.dynamicChildren=null);const{type:c,ref:h,shapeFlag:d}=e;switch(c){case ti:v(t,e,i,s);break;case ei:w(t,e,i,s);break;case ii:null==t&&C(e,i,s,o);break;case Qe:D(t,e,i,s,n,r,o,a,l);break;default:1&d?E(t,e,i,s,n,r,o,a,l):6&d?R(t,e,i,s,n,r,o,a,l):(64&d||128&d)&&c.process(t,e,i,s,n,r,o,a,l,tt)}null!=h&&n&&Ne(h,t&&t.ref,r,e||t,!e)},v=(t,e,s,n)=>{if(null==t)i(e.el=l(e.children),s,n);else{const i=e.el=t.el;e.children!==t.children&&h(i,e.children)}},w=(t,e,s,n)=>{null==t?i(e.el=c(e.children||""),s,n):e.el=t.el}
2,C=(t,e,i,s)=>{[t.el,t.anchor]=x(t.children,e,i,s,t.el,t.anchor)},A=({el:t,anchor:e})=>{let i;for(;t&&t!==e;)i=g(t),r(t),t=i;r(e)},E=(t,e,i,s,n,r,o,a,l)=>{o=o||"svg"===e.type,null==t?M(e,i,s,n,r,o,a,l):O(t,e,n,r,o,a,l)},M=(t,e,s,r,l,c,h,d)=>{let u,f;const{type:g,props:m,shapeFlag:x,transition:b,dirs:y}=t;if(u=t.el=a(t.type,c,m&&m.is,m),8&x?p(u,t.children):16&x&&P(t.children,u,null,r,l,c&&"foreignObject"!==g,h,d),y&&Gt(t,null,r,"created"),m){for(const e in m)"value"===e||(0,n.SU)(e)||o(u,e,null,m[e],c,t.children,r,l,Z);"value"in m&&o(u,"value",null,m.value),(f=m.onVnodeBeforeMount)&&Li(f,r,t)}T(u,t,t.scopeId,h,r),y&&Gt(t,null,r,"beforeMount");const v=(!l||l&&!l.pendingBranch)&&b&&!b.persisted;v&&b.beforeEnter(u),i(u,e,s),((f=m&&m.onVnodeMounted)||v||y)&&He(()=>{f&&Li(f,r,t),v&&b.enter(u),y&&Gt(t,null,r,"mounted")},l)},T=(t,e,i,s,n)=>{if(i&&m(t,i),s)for(let e=0;e<s.length;e++)m(t,s[e]);if(n){if(e===n.subTree){const e=n.vnode;T(t,e,e.scopeId,e.slotScopeIds,n.parent)}}},P=(t,e,i,s,n,r,o,a,l=0)=>{for(let c=l;c<t.length;c++){const l=t[c]=a?Ti(t[c]):Mi(t[c]);b(null,l,e,i,s,n,r,o,a)}},O=(t,e,i,s,r,a,l)=>{const c=e.el=t.el;let{patchFlag:h,dynamicChildren:d,dirs:u}=e;h|=16&t.patchFlag;const f=t.props||n.MZ,g=e.props||n.MZ;let m;i&&Ve(i,!1),(m=g.onVnodeBeforeUpdate)&&Li(m,i,e,t),u&&Gt(e,t,i,"beforeUpdate"),i&&Ve(i,!0);const x=r&&"foreignObject"!==e.type;if(d?L(t.dynamicChildren,d,c,i,s,x,a):l||z(t,e,c,null,i,s,x,a,!1),h>0){if(16&h)_(c,e,f,g,i,s,r);else if(2&h&&f.class!==g.class&&o(c,"class",null,g.class,r),4&h&&o(c,"style",f.style,g.style,r),8&h){const n=e.dynamicProps;for(let e=0;e<n.length;e++){const a=n[e],l=f[a],h=g[a];h===l&&"value"!==a||o(c,a,l,h,r,t.children,i,s,Z)}}1&h&&t.children!==e.children&&p(c,e.children)}else l||null!=d||_(c,e,f,g,i,s,r);((m=g.onVnodeUpdated)||u)&&He(()=>{m&&Li(m,i,e,t),u&&Gt(e,t,i,"updated")},s)},L=(t,e,i,s,n,r,o)=>{for(let a=0;a<e.length;a++){const l=t[a],c=e[a],h=l.el&&(l.type===Qe||!fi(l,c)||70&l.shapeFlag)?f(l.el):i;b(l,c,h,null,s,n,r,o,!0)}},_=(t,e,i,s,r,a,l)=>{if(i!==s){if(i!==n.MZ)for(const c in i)(0,n.SU)(c)||c in s||o(t,c,i[c],null,l,e.children,r,a,Z);for(const c in s){if((0,n.SU)(c))continue;const h=s[c],d=i[c];h!==d&&"value"!==c&&o(t,c,d,h,l,e.children,r,a,Z)}"value"in s&&o(t,"value",i.value,s.value)}},D=(t,e,s,n,r,o,a,c,h)=>{const d=e.el=t?t.el:l(""),u=e.anchor=t?t.anchor:l("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:g}=e;g&&(c=c?c.concat(g):g),null==t?(i(d,s,n),i(u,s,n),P(e.children,s,u,r,o,a,c,h)):p>0&&64&p&&f&&t.dynamicChildren?(L(t.dynamicChildren,f,s,r,o,a,c),(null!=e.key||r&&e===r.subTree)&&Ge(t,e,!0)):z(t,e,s,u,r,o,a,c,h)},R=(t,e,i,s,n,r,o,a,l)=>{e.slotScopeIds=a,null==t?512&e.shapeFlag?n.ctx.activate(e,i,s,o,l):N(e,i,s,n,r,o,l):B(t,e,l)},N=(t,e,i,s,n,r,o)=>{const a=t.component=Di(t,s,n);if(Ct(t)&&(a.ctx.renderer=tt),Wi(a),a.asyncDep){if(n&&n.registerDep(a,j),!t.el){const t=a.subTree=vi(ei);w(null,t,e,i)}}else j(a,t,e,i,n,r,o)},B=(t,e,i)=>{const s=e.component=t.component;if(function(t,e,i){const{props:s,children:n,component:r}=t,{props:o,children:a,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;if(!(i&&l>=0))return!(!n&&!a||a&&a.$stable)||s!==o&&(s?!o||V(s,o,c):!!o);if(1024&l)return!0;if(16&l)return s?V(s,o,c):!!o;if(8&l){const t=e.dynamicProps;for(let e=0;e<t.length;e++){const i=t[e];if(o[i]!==s[i]&&!I(c,i))return!0}}return!1}(t,e,i)){if(s.asyncDep&&!s.asyncResolved)return void F(s,e,i);s.next=e,function(t){const e=d.indexOf(t);e>u&&d.splice(e,1)}(s.update),s.update()}else e.el=t.el,s.vnode=e},j=(t,e,i,r,o,a,l)=>{const c=t.effect=new s.X2(()=>{if(t.isMounted){let e,{next:i,bu:s,u:r,parent:c,vnode:h}=t,d=i;0,Ve(t,!1),i?(i.el=h.el,F(t,i,l)):i=h,s&&(0,n.DY)(s),(e=i.props&&i.props.onVnodeBeforeUpdate)&&Li(e,c,i,h),Ve(t,!0);const u=H(t);0;const p=t.subTree;t.subTree=u,b(p,u,f(p.el),J(p),t,o,a),i.el=u.el,null===d&&G(t,u.el),r&&He(r,o),(e=i.props&&i.props.onVnodeUpdated)&&He(()=>Li(e,c,i,h),o)}else{let s;const{el:l,props:c}=e,{bm:h,m:d,parent:u}=t,p=wt(e);if(Ve(t,!1),h&&(0,n.DY)(h),!p&&(s=c&&c.onVnodeBeforeMount)&&Li(s,u,e),Ve(t,!0),l&&it){const i=()=>{t.subTree=H(t),it(l,t.subTree,t,o,null)};p?e.type.__asyncLoader().then(()=>!t.isUnmounted&&i()):i()}else{0;const s=t.subTree=H(t);0,b(null,s,i,r,t,o,a),e.el=s.el}if(d&&He(d,o),!p&&(s=c&&c.onVnodeMounted)){const t=e;He(()=>Li(s,u,t),o)}(256&e.shapeFlag||u&&wt(u.vnode)&&256&u.vnode.shapeFlag)&&t.a&&He(t.a,o),t.isMounted=!0,e=i=r=null}},()=>y(h),t.scope),h=t.update=()=>c.run();h.id=t.uid,Ve(t,!0),h()},F=(t,e,i)=>{e.component=t;const r=t.vnode.props;
2t.vnode=e,t.next=null,function(t,e,i,r){const{props:o,attrs:a,vnode:{patchFlag:l}}=t,c=(0,s.ux)(o),[h]=t.propsOptions;let d=!1;if(!(r||l>0)||16&l){let s;we(t,e,o,a)&&(d=!0);for(const r in c)e&&((0,n.$3)(e,r)||(s=(0,n.Tg)(r))!==r&&(0,n.$3)(e,s))||(h?!i||void 0===i[r]&&void 0===i[s]||(o[r]=Se(h,c,r,void 0,t,!0)):delete o[r]);if(a!==c)for(const t in a)e&&(0,n.$3)(e,t)||(delete a[t],d=!0)}else if(8&l){const i=t.vnode.dynamicProps;for(let s=0;s<i.length;s++){let r=i[s];if(I(t.emitsOptions,r))continue;const l=e[r];if(h)if((0,n.$3)(a,r))l!==a[r]&&(a[r]=l,d=!0);else{const e=(0,n.PT)(r);o[e]=Se(h,c,e,l,t,!1)}else l!==a[r]&&(a[r]=l,d=!0)}}d&&(0,s.hZ)(t,"set","$attrs")}(t,e.props,r,i),((t,e,i)=>{const{vnode:s,slots:r}=t;let o=!0,a=n.MZ;if(32&s.shapeFlag){const t=e._;t?i&&1===t?o=!1:((0,n.X$)(r,e),i||1!==t||delete r._):(o=!e.$stable,Le(e,r)),a=e}else e&&(_e(t,e),a={default:1});if(o)for(const t in r)Te(t)||t in a||delete r[t]})(t,e.children,i),(0,s.C4)(),S(),(0,s.bl)()},z=(t,e,i,s,n,r,o,a,l=!1)=>{const c=t&&t.children,h=t?t.shapeFlag:0,d=e.children,{patchFlag:u,shapeFlag:f}=e;if(u>0){if(128&u)return void W(c,d,i,s,n,r,o,a,l);if(256&u)return void X(c,d,i,s,n,r,o,a,l)}8&f?(16&h&&Z(c,n,r),d!==c&&p(i,d)):16&h?16&f?W(c,d,i,s,n,r,o,a,l):Z(c,n,r,!0):(8&h&&p(i,""),16&f&&P(d,i,s,n,r,o,a,l))},X=(t,e,i,s,r,o,a,l,c)=>{t=t||n.Oj,e=e||n.Oj;const h=t.length,d=e.length,u=Math.min(h,d);let p;for(p=0;p<u;p++){const s=e[p]=c?Ti(e[p]):Mi(e[p]);b(t[p],s,i,null,r,o,a,l,c)}h>d?Z(t,r,o,!0,!1,u):P(e,i,s,r,o,a,l,c,u)},W=(t,e,i,s,r,o,a,l,c)=>{let h=0;const d=e.length;let u=t.length-1,p=d-1;for(;h<=u&&h<=p;){const s=t[h],n=e[h]=c?Ti(e[h]):Mi(e[h]);if(!fi(s,n))break;b(s,n,i,null,r,o,a,l,c),h++}for(;h<=u&&h<=p;){const s=t[u],n=e[p]=c?Ti(e[p]):Mi(e[p]);if(!fi(s,n))break;b(s,n,i,null,r,o,a,l,c),u--,p--}if(h>u){if(h<=p){const t=p+1,n=t<d?e[t].el:s;for(;h<=p;)b(null,e[h]=c?Ti(e[h]):Mi(e[h]),i,n,r,o,a,l,c),h++}}else if(h>p)for(;h<=u;)U(t[h],r,o,!0),h++;else{const f=h,g=h,m=new Map;for(h=g;h<=p;h++){const t=e[h]=c?Ti(e[h]):Mi(e[h]);null!=t.key&&m.set(t.key,h)}let x,y=0;const v=p-g+1;let w=!1,S=0;const k=new Array(v);for(h=0;h<v;h++)k[h]=0;for(h=f;h<=u;h++){const s=t[h];if(y>=v){U(s,r,o,!0);continue}let n;if(null!=s.key)n=m.get(s.key);else for(x=g;x<=p;x++)if(0===k[x-g]&&fi(s,e[x])){n=x;break}void 0===n?U(s,r,o,!0):(k[n-g]=h+1,n>=S?S=n:w=!0,b(s,e[n],i,null,r,o,a,l,c),y++)}const C=w?function(t){const e=t.slice(),i=[0];let s,n,r,o,a;const l=t.length;for(s=0;s<l;s++){const l=t[s];if(0!==l){if(n=i[i.length-1],t[n]<l){e[s]=n,i.push(s);continue}for(r=0,o=i.length-1;r<o;)a=r+o>>1,t[i[a]]<l?r=a+1:o=a;l<t[i[r]]&&(r>0&&(e[s]=i[r-1]),i[r]=s)}}r=i.length,o=i[r-1];for(;r-- >0;)i[r]=o,o=e[o];return i}(k):n.Oj;for(x=C.length-1,h=v-1;h>=0;h--){const t=g+h,n=e[t],u=t+1<d?e[t+1].el:s;0===k[h]?b(null,n,i,u,r,o,a,l,c):w&&(x<0||h!==C[x]?Y(n,i,u,2):x--)}}},Y=(t,e,s,n,r=null)=>{const{el:o,type:a,transition:l,children:c,shapeFlag:h}=t;if(6&h)return void Y(t.component.subTree,e,s,n);if(128&h)return void t.suspense.move(e,s,n);if(64&h)return void a.move(t,e,s,tt);if(a===Qe){i(o,e,s);for(let t=0;t<c.length;t++)Y(c[t],e,s,n);return void i(t.anchor,e,s)}if(a===ii)return void(({el:t,anchor:e},s,n)=>{let r;for(;t&&t!==e;)r=g(t),i(t,s,n),t=r;i(e,s,n)})(t,e,s);if(2!==n&&1&h&&l)if(0===n)l.beforeEnter(o),i(o,e,s),He(()=>l.enter(o),r);else{const{leave:t,delayLeave:n,afterLeave:r}=l,a=()=>i(o,e,s),c=()=>{t(o,()=>{a(),r&&r()})};n?n(o,a,c):c()}else i(o,e,s)},U=(t,e,i,s=!1,n=!1)=>{const{type:r,props:o,ref:a,children:l,dynamicChildren:c,shapeFlag:h,patchFlag:d,dirs:u}=t;if(null!=a&&Ne(a,null,i,t,!0),256&h)return void e.ctx.deactivate(t);const p=1&h&&u,f=!wt(t);let g;if(f&&(g=o&&o.onVnodeBeforeUnmount)&&Li(g,e,t),6&h)K(t.component,i,s);else{if(128&h)return void t.suspense.unmount(i,s);p&&Gt(t,null,e,"beforeUnmount"),64&h?t.type.remove(t,e,i,n,tt,s):c&&(r!==Qe||d>0&&64&d)?Z(c,e,i,!1,!0):(r===Qe&&384&d||!n&&16&h)&&Z(l,e,i),s&&$(t)}(f&&(g=o&&o.onVnodeUnmounted)||p)&&He(()=>{g&&Li(g,e,t),p&&Gt(t,null,e,"unmounted")},i)},$=t=>{const{type:e,el:i,anchor:s,transition:n}=t;if(e===Qe)return void q(i,s);if(e===ii)return void A(t);const o=()=>{r(i),n&&!n.persisted&&n.afterLeave&&n.afterLeave()};if(1&t.shapeFlag&&n&&!n.persisted){const{leave:e,delayLeave:s}=n,r=()=>e(i,o);s?s(t.el,o,r):r()}else o()},q=(t,e)=>{let i;for(;t!==e;)i=g(t),r(t),t=i;r(e)},K=(t,e,i)=>{const{bum:s,scope:r,update:o,subTree:a,um:l}=t;s&&(0,n.DY)(s),r.stop(),o&&(o.active=!1,U(a,t,e,i)),l&&He(l,e),He(()=>{t.isUnmounted=!0},e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},Z=(t,e,i,s=!1,n=!1,r=0)=>{for(let o=r;o<t.length;o++)U(t[o],e,i,s,n)},J=t=>6&t.shapeFlag?J(t.component.subTree):128&t.shapeFlag?t.suspense.next():g(t.anchor||t.el),Q=(t,e,i)=>{null==t?e._vnode&&U(e._vnode,null,null,!0):b(e._vnode||null,t,e,null,null,null,i),S(),k(),e._vnode=t},tt={p:b,um:U,m:Y,r:$,mt:N,mc:P,pc:z,pbc:L,n:J,o:t};let et,it;return e&&([et,it]=e(tt)),{render:Q,hydrate:et,createApp:Re(Q,et)}}function Ve({effect:t,update:e},i){t.allowRecurse=e.allowRecurse=i}function Ge(t,e,i=!1){const s=t.children,r=e.children;if((0,n.cy)(s)&&(0,n.cy)(r))for(let t=0;t<s.length;t++){const e=s[t];let n=r[t];1&n.shapeFlag&&!n.dynamicChildren&&((n.patchFlag<=0||32===n.patchFlag)&&(n=r[t]=Ti(r[t]),n.el=e.el),i||Ge(e,n)),n.type===ti&&(n.el=e.el)}}const Ue=t=>t&&(t.disabled||""===t.disabled),$e=t=>"undefined"!=typeof SVGElement&&t instanceof SVGElement,qe=(t,e)=>{const i=t&&t.to;if((0,n.Kg)(i)){if(e){const t=e(i);return t}return null}return i};function Ke(t,e,i,{o:{insert:s},m:n},r=2){0===r&&s(t.targetAnchor,e,i);const{el:o,anchor:a,shapeFlag:l,children:c,props:h}=t,d=2===r;if(d&&s(o,e,i),(!d||Ue(h))&&16&l)for(let t=0;t<c.length;t++)n(c[t],e,i,2);d&&s(a,e,i)}
2const Ze={__isTeleport:!0,process(t,e,i,s,n,r,o,a,l,c){const{mc:h,pc:d,pbc:u,o:{insert:p,querySelector:f,createText:g,createComment:m}}=c,x=Ue(e.props);let{shapeFlag:b,children:y,dynamicChildren:v}=e;if(null==t){const t=e.el=g(""),c=e.anchor=g("");p(t,i,s),p(c,i,s);const d=e.target=qe(e.props,f),u=e.targetAnchor=g("");d&&(p(u,d),o=o||$e(d));const m=(t,e)=>{16&b&&h(y,t,e,n,r,o,a,l)};x?m(i,c):d&&m(d,u)}else{e.el=t.el;const s=e.anchor=t.anchor,h=e.target=t.target,p=e.targetAnchor=t.targetAnchor,g=Ue(t.props),m=g?i:h,b=g?s:p;if(o=o||$e(h),v?(u(t.dynamicChildren,v,m,n,r,o,a),Ge(t,e,!0)):l||d(t,e,m,b,n,r,o,a,!1),x)g||Ke(e,i,s,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const t=e.target=qe(e.props,f);t&&Ke(e,t,null,c,0)}else g&&Ke(e,h,p,c,1)}Je(e)},remove(t,e,i,s,{um:n,o:{remove:r}},o){const{shapeFlag:a,children:l,anchor:c,targetAnchor:h,target:d,props:u}=t;if(d&&r(h),(o||!Ue(u))&&(r(c),16&a))for(let t=0;t<l.length;t++){const s=l[t];n(s,e,i,!0,!!s.dynamicChildren)}},move:Ke,hydrate:function(t,e,i,s,n,r,{o:{nextSibling:o,parentNode:a,querySelector:l}},c){const h=e.target=qe(e.props,l);if(h){const l=h._lpa||h.firstChild;if(16&e.shapeFlag)if(Ue(e.props))e.anchor=c(o(t),e,a(t),i,s,n,r),e.targetAnchor=l;else{e.anchor=o(t);let a=l;for(;a;)if(a=o(a),a&&8===a.nodeType&&"teleport anchor"===a.data){e.targetAnchor=a,h._lpa=e.targetAnchor&&o(e.targetAnchor);break}c(l,e,h,i,s,n,r)}Je(e)}return e.anchor&&o(e.anchor)}};function Je(t){const e=t.ctx;if(e&&e.ut){let i=t.children[0].el;for(;i!==t.targetAnchor;)1===i.nodeType&&i.setAttribute("data-v-owner",e.uid),i=i.nextSibling;e.ut()}}const Qe=Symbol(void 0),ti=Symbol(void 0),ei=Symbol(void 0),ii=Symbol(void 0),si=[];let ni=null;function ri(t=!1){si.push(ni=t?null:[])}function oi(){si.pop(),ni=si[si.length-1]||null}let ai,li=1;function ci(t){li+=t}function hi(t){return t.dynamicChildren=li>0?ni||n.Oj:null,oi(),li>0&&ni&&ni.push(t),t}function di(t,e,i,s,n,r){return hi(yi(t,e,i,s,n,r,!0))}function ui(t,e,i,s,n){return hi(vi(t,e,i,s,n,!0))}function pi(t){return!!t&&!0===t.__v_isVNode}function fi(t,e){return t.type===e.type&&t.key===e.key}function gi(t){ai=t}const mi="__vInternal",xi=({key:t})=>null!=t?t:null,bi=({ref:t,ref_key:e,ref_for:i})=>null!=t?(0,n.Kg)(t)||(0,s.i9)(t)||(0,n.Tn)(t)?{i:D,r:t,k:e,f:!!i}:t:null;function yi(t,e=null,i=null,s=0,r=null,o=(t===Qe?0:1),a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&xi(e),ref:e&&bi(e),scopeId:R,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:D};return l?(Pi(c,i),128&o&&t.normalize(c)):i&&(c.shapeFlag|=(0,n.Kg)(i)?8:16),li>0&&!a&&ni&&(c.patchFlag>0||6&o)&&32!==c.patchFlag&&ni.push(c),c}const vi=wi;function wi(t,e=null,i=null,r=0,o=null,a=!1){if(t&&t!==qt||(t=ei),pi(t)){const s=ki(t,e,!0);return i&&Pi(s,i),li>0&&!a&&ni&&(6&s.shapeFlag?ni[ni.indexOf(t)]=s:ni.push(s)),s.patchFlag|=-2,s}if(Zi(t)&&(t=t.__vccOpts),e){e=Si(e);let{class:t,style:i}=e;t&&!(0,n.Kg)(t)&&(e.class=(0,n.C4)(t)),(0,n.Gv)(i)&&((0,s.ju)(i)&&!(0,n.cy)(i)&&(i=(0,n.X$)({},i)),e.style=(0,n.Tr)(i))}return yi(t,e,i,r,o,(0,n.Kg)(t)?1:U(t)?128:(t=>t.__isTeleport)(t)?64:(0,n.Gv)(t)?4:(0,n.Tn)(t)?2:0,a,!0)}function Si(t){return t?(0,s.ju)(t)||mi in t?(0,n.X$)({},t):t:null}function ki(t,e,i=!1){const{props:s,ref:r,patchFlag:o,children:a}=t,l=e?Oi(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&xi(l),ref:e&&e.ref?i&&r?(0,n.cy)(r)?r.concat(bi(e)):[r,bi(e)]:bi(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Qe?-1===o?16:16|o:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ki(t.ssContent),ssFallback:t.ssFallback&&ki(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx}}function Ci(t=" ",e=0){return vi(ti,null,t,e)}function Ai(t,e){const i=vi(ii,null,t);return i.staticCount=e,i}function Ei(t="",e=!1){return e?(ri(),ui(ei,null,t)):vi(ei,null,t)}function Mi(t){return null==t||"boolean"==typeof t?vi(ei):(0,n.cy)(t)?vi(Qe,null,t.slice()):"object"==typeof t?Ti(t):vi(ti,null,String(t))}function Ti(t){return null===t.el&&-1!==t.patchFlag||t.memo?t:ki(t)}function Pi(t,e){let i=0;const{shapeFlag:s}=t;if(null==e)e=null;else if((0,n.cy)(e))i=16;else if("object"==typeof e){if(65&s){const i=e.default;return void(i&&(i._c&&(i._d=!1),Pi(t,i()),i._c&&(i._d=!0)))}{i=32;const s=e._;s||mi in e?3===s&&D&&(1===D.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=D}}else(0,n.Tn)(e)?(e={default:e,_ctx:D},i=32):(e=String(e),64&s?(i=16,e=[Ci(e)]):i=8);t.children=e,t.shapeFlag|=i}function Oi(...t){const e={};for(let i=0;i<t.length;i++){const s=t[i];for(const t in s)if("class"===t)e.class!==s.class&&(e.class=(0,n.C4)([e.class,s.class]));else if("style"===t)e.style=(0,n.Tr)([e.style,s.style]);else if((0,n.Mp)(t)){const i=e[t],r=s[t];!r||i===r||(0,n.cy)(i)&&i.includes(r)||(e[t]=i?[].concat(i,r):r)}else""!==t&&(e[t]=s[t])}return e}
2function Li(t,e,i,s=null){a(t,e,7,[i,s])}const _i=Ie();let Ii=0;function Di(t,e,i){const r=t.type,o=(e?e.appContext:t.appContext)||_i,a={uid:Ii++,vnode:t,type:r,parent:e,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new s.yC(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ke(r,o),emitsOptions:_(r,o),emit:null,emitted:null,propsDefaults:n.MZ,inheritAttrs:r.inheritAttrs,ctx:n.MZ,data:n.MZ,props:n.MZ,attrs:n.MZ,slots:n.MZ,refs:n.MZ,setupState:n.MZ,setupContext:null,suspense:i,suspenseId:i?i.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=e?e.root:a,a.emit=L.bind(null,a),t.ce&&t.ce(a),a}let Ri=null;const Ni=()=>Ri||D,Bi=t=>{Ri=t,t.scope.on()},ji=()=>{Ri&&Ri.scope.off(),Ri=null};function Fi(t){return 4&t.vnode.shapeFlag}let zi,Hi,Xi=!1;function Wi(t,e=!1){Xi=e;const{props:i,children:r}=t.vnode,a=Fi(t);!function(t,e,i,r=!1){const o={},a={};(0,n.yQ)(a,mi,1),t.propsDefaults=Object.create(null),we(t,e,o,a);for(const e in t.propsOptions[0])e in o||(o[e]=void 0);i?t.props=r?o:(0,s.Gc)(o):t.type.props?t.props=o:t.props=a,t.attrs=a}(t,i,a,e),((t,e)=>{if(32&t.vnode.shapeFlag){const i=e._;i?(t.slots=(0,s.ux)(e),(0,n.yQ)(e,"_",i)):Le(e,t.slots={})}else t.slots={},e&&_e(t,e);(0,n.yQ)(t.slots,mi,1)})(t,r);const c=a?function(t,e){const i=t.type;0;t.accessCache=Object.create(null),t.proxy=(0,s.IG)(new Proxy(t.ctx,le)),!1;const{setup:r}=i;if(r){const i=t.setupContext=r.length>1?$i(t):null;Bi(t),(0,s.C4)();const a=o(r,t,0,[t.props,i]);if((0,s.bl)(),ji(),(0,n.yL)(a)){if(a.then(ji,ji),e)return a.then(i=>{Yi(t,i,e)}).catch(e=>{l(e,t,0)});t.asyncDep=a}else Yi(t,a,e)}else Ui(t,e)}(t,e):void 0;return Xi=!1,c}function Yi(t,e,i){(0,n.Tn)(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:(0,n.Gv)(e)&&(t.setupState=(0,s.Pr)(e)),Ui(t,i)}function Vi(t){zi=t,Hi=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,ce))}}const Gi=()=>!zi;
2function Ui(t,e,i){const r=t.type;if(!t.render){if(!e&&zi&&!r.render){const e=r.template||fe(t).template;if(e){0;const{isCustomElement:i,compilerOptions:s}=t.appContext.config,{delimiters:o,compilerOptions:a}=r,l=(0,n.X$)((0,n.X$)({isCustomElement:i,delimiters:o},s),a);r.render=zi(e,l)}}t.render=r.render||n.tE,Hi&&Hi(t)}Bi(t),(0,s.C4)(),de(t),(0,s.bl)(),ji()}function $i(t){const e=e=>{t.exposed=e||{}};let i;return{get attrs(){return i||(i=function(t){return new Proxy(t.attrs,{get:(e,i)=>((0,s.u4)(t,"get","$attrs"),e[i])})}(t))},slots:t.slots,emit:t.emit,expose:e}}function qi(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy((0,s.Pr)((0,s.IG)(t.exposed)),{get:(e,i)=>i in e?e[i]:i in oe?oe[i](t):void 0,has:(t,e)=>e in t||e in oe}))}function Ki(t,e=!0){return(0,n.Tn)(t)?t.displayName||t.name:t.name||e&&t.__name}function Zi(t){return(0,n.Tn)(t)&&"__vccOpts"in t}const Ji=(t,e)=>(0,s.EW)(t,e,Xi);function Qi(){return null}function ts(){return null}function es(t){0}function is(t,e){return null}function ss(){return rs().slots}function ns(){return rs().attrs}function rs(){const t=Ni();return t.setupContext||(t.setupContext=$i(t))}function os(t,e){const i=(0,n.cy)(t)?t.reduce((t,e)=>(t[e]={},t),{}):t;for(const t in e){const s=i[t];s?(0,n.cy)(s)||(0,n.Tn)(s)?i[t]={type:s,default:e[t]}:s.default=e[t]:null===s&&(i[t]={default:e[t]})}return i}function as(t,e){const i={};for(const s in t)e.includes(s)||Object.defineProperty(i,s,{enumerable:!0,get:()=>t[s]});return i}function ls(t){const e=Ni();let i=t();return ji(),(0,n.yL)(i)&&(i=i.catch(t=>{throw Bi(e),t})),[i,()=>Bi(e)]}function cs(t,e,i){const s=arguments.length;return 2===s?(0,n.Gv)(e)&&!(0,n.cy)(e)?pi(e)?vi(t,null,[e]):vi(t,e):vi(t,null,e):(s>3?i=Array.prototype.slice.call(arguments,2):3===s&&pi(i)&&(i=[i]),vi(t,e,i))}const hs=Symbol(""),ds=()=>{{const t=et(hs);return t}};function us(){return void 0}function ps(t,e,i,s){const n=i[s];if(n&&fs(n,t))return n;const r=e();return r.memo=t.slice(),i[s]=r}function fs(t,e){const i=t.memo;if(i.length!=e.length)return!1;for(let t=0;t<i.length;t++)if((0,n.$H)(i[t],e[t]))return!1;return li>0&&ni&&ni.push(t),!0}const gs="3.2.45",ms={createComponentInstance:Di,setupComponent:Wi,renderComponentRoot:H,setCurrentRenderingInstance:N,isVNode:pi,normalizeVNode:Mi},xs=null,bs=null},751(t,e,i){"use strict";i.r(e),i.d(e,{BaseTransition:()=>s.pR,Comment:()=>s.Mw,EffectScope:()=>s.yC,Fragment:()=>s.FK,KeepAlive:()=>s.PR,ReactiveEffect:()=>s.X2,Static:()=>s.jC,Suspense:()=>s.tY,Teleport:()=>s.Im,Text:()=>s.EY,Transition:()=>O,TransitionGroup:()=>$,VueElement:()=>k,callWithAsyncErrorHandling:()=>s.qL,callWithErrorHandling:()=>s.gh,camelize:()=>s.PT,capitalize:()=>s.ZH,cloneVNode:()=>s.E3,compatUtils:()=>s.Y5,computed:()=>s.EW,createApp:()=>Et,createBlock:()=>s.Wv,createCommentVNode:()=>s.Q3,createElementBlock:()=>s.CE,createElementVNode:()=>s.Lk,createHydrationRenderer:()=>s.ci,createPropsRestProxy:()=>s.bn,createRenderer:()=>s.K9,createSSRApp:()=>Mt,createSlots:()=>s.eX,createStaticVNode:()=>s.Fv,createTextVNode:()=>s.eW,createVNode:()=>s.bF,customRef:()=>s.rY,defineAsyncComponent:()=>s.$V,defineComponent:()=>s.pM,defineCustomElement:()=>v,defineEmits:()=>s.qP,defineExpose:()=>s.wk,defineProps:()=>s.Yj,defineSSRCustomElement:()=>w,devtools:()=>s.lt,effect:()=>s.QZ,effectScope:()=>s.uY,getCurrentInstance:()=>s.nI,getCurrentScope:()=>s.o5,getTransitionRawChildren:()=>s.Df,guardReactiveProps:()=>s.Ng,h:()=>s.h,handleError:()=>s.H4,hydrate:()=>At,initCustomFormatter:()=>s.y$,initDirectivesForSSR:()=>Ot,inject:()=>s.WQ,isMemoSame:()=>s.Bs,isProxy:()=>s.ju,isReactive:()=>s.g8,isReadonly:()=>s.Tm,isRef:()=>s.i9,isRuntimeOnly:()=>s.dA,isShallow:()=>s.fE,isVNode:()=>s.vv,markRaw:()=>s.IG,mergeDefaults:()=>s.HF,mergeProps:()=>s.v6,nextTick:()=>s.dY,normalizeClass:()=>s.C4,normalizeProps:()=>s._B,normalizeStyle:()=>s.Tr,onActivated:()=>s.n,onBeforeMount:()=>s.KC,onBeforeUnmount:()=>s.xo,onBeforeUpdate:()=>s.Ic,onDeactivated:()=>s.Y4,onErrorCaptured:()=>s.qG,onMounted:()=>s.sV,onRenderTracked:()=>s.qR,onRenderTriggered:()=>s.bj,onScopeDispose:()=>s.jr,onServerPrefetch:()=>s.SS,onUnmounted:()=>s.hi,onUpdated:()=>s.$u,openBlock:()=>s.uX,popScopeId:()=>s.jt,provide:()=>s.Gt,proxyRefs:()=>s.Pr,pushScopeId:()=>s.Qi,queuePostFlushCb:()=>s.Dl,reactive:()=>s.Kh,readonly:()=>s.tB,ref:()=>s.KR,registerRuntimeCompiler:()=>s.tC,render:()=>Ct,renderList:()=>s.pI,renderSlot:()=>
2s.RG,resolveComponent:()=>s.g2,resolveDirective:()=>s.gN,resolveDynamicComponent:()=>s.$y,resolveFilter:()=>s.LJ,resolveTransitionHooks:()=>s.OW,setBlockTracking:()=>s.Vq,setDevtoolsHook:()=>s.iD,setTransitionHooks:()=>s.MZ,shallowReactive:()=>s.Gc,shallowReadonly:()=>s.nD,shallowRef:()=>s.IJ,ssrContextKey:()=>s.Fw,ssrUtils:()=>s.Gw,stop:()=>s.ds,toDisplayString:()=>s.v_,toHandlerKey:()=>s.rU,toHandlers:()=>s.Tb,toRaw:()=>s.ux,toRef:()=>s.lW,toRefs:()=>s.QW,transformVNodeArgs:()=>s.gW,triggerRef:()=>s.mu,unref:()=>s.R1,useAttrs:()=>s.OA,useCssModule:()=>C,useCssVars:()=>A,useSSRContext:()=>s.LM,useSlots:()=>s.Ht,useTransitionState:()=>s.Gy,vModelCheckbox:()=>it,vModelDynamic:()=>ct,vModelRadio:()=>nt,vModelSelect:()=>rt,vModelText:()=>et,vShow:()=>xt,version:()=>s.rE,warn:()=>s.R8,watch:()=>s.wB,watchEffect:()=>s.nT,watchPostEffect:()=>s.p9,watchSyncEffect:()=>s.U_,withAsyncContext:()=>s.E,withCtx:()=>s.k6,withDefaults:()=>s.rO,withDirectives:()=>s.bo,withKeys:()=>mt,withMemo:()=>s.bU,withModifiers:()=>ft,withScopeId:()=>s.YY});var s=i(641),n=i(953),r=i(33);const o="undefined"!=typeof document?document:null,a=o&&o.createElement("template"),l={insert:(t,e,i)=>{e.insertBefore(t,i||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,i,s)=>{const n=e?o.createElementNS("http://www.w3.org/2000/svg",t):o.createElement(t,i?{is:i}:void 0);return"select"===t&&s&&null!=s.multiple&&n.setAttribute("multiple",s.multiple),n},createText:t=>o.createTextNode(t),createComment:t=>o.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>o.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,i,s,n,r){const o=i?i.previousSibling:e.lastChild;if(n&&(n===r||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),i),n!==r&&(n=n.nextSibling););else{a.innerHTML=s?`<svg>${t}</svg>`:t;const n=a.content;if(s){const t=n.firstChild;for(;t.firstChild;)n.appendChild(t.firstChild);n.removeChild(t)}e.insertBefore(n,i)}return[o?o.nextSibling:e.firstChild,i?i.previousSibling:e.lastChild]}};const c=/\s*!important$/;function h(t,e,i){if((0,r.cy)(i))i.forEach(i=>h(t,e,i));else if(null==i&&(i=""),e.startsWith("--"))t.setProperty(e,i);else{const s=function(t,e){const i=u[e];if(i)return i;let s=(0,r.PT)(e);if("filter"!==s&&s in t)return u[e]=s;s=(0,r.ZH)(s);for(let i=0;i<d.length;i++){const n=d[i]+s;if(n in t)return u[e]=n}return e}(t,e);c.test(i)?t.setProperty((0,r.Tg)(s),i.replace(c,""),"important"):t[s]=i}}const d=["Webkit","Moz","ms"],u={};const p="http://www.w3.org/1999/xlink";function f(t,e,i,s){t.addEventListener(e,i,s)}function g(t,e,i,n,o=null){const a=t._vei||(t._vei={}),l=a[e];if(n&&l)l.value=n;else{const[i,c]=function(t){let e;if(m.test(t)){let i;for(e={};i=t.match(m);)t=t.slice(0,t.length-i[0].length),e[i[0].toLowerCase()]=!0}const i=":"===t[2]?t.slice(3):(0,r.Tg)(t.slice(2));return[i,e]}(e);if(n){const l=a[e]=function(t,e){const i=t=>{if(t._vts){if(t._vts<=i.attached)return}else t._vts=Date.now();(0,s.qL)(function(t,e){if((0,r.cy)(e)){const i=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{i.call(t),t._stopped=!0},e.map(t=>e=>!e._stopped&&t&&t(e))}return e}(t,i.value),e,5,[t])};return i.value=t,i.attached=(()=>x||(b.then(()=>x=0),x=Date.now()))(),i}(n,o);f(t,i,l,c)}else l&&(!function(t,e,i,s){t.removeEventListener(e,i,s)}(t,i,l,c),a[e]=void 0)}}const m=/(?:Once|Passive|Capture)$/;let x=0;const b=Promise.resolve();const y=/^on[a-z]/;function v(t,e){const i=(0,s.pM)(t);class n extends k{constructor(t){super(i,t,e)}}return n.def=i,n}const w=t=>v(t,At),S="undefined"!=typeof HTMLElement?HTMLElement:class{};class k extends S{constructor(t,e={},i){super(),this._def=t,this._props=e,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&i?i(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,(0,s.dY)(()=>{this._connected||(Ct(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let t=0;t<this.attributes.length;t++)this._setAttr(this.attributes[t].name);new MutationObserver(t=>{for(const e of t)this._setAttr(e.attributeName)}).observe(this,{attributes:!0});const t=(t,e=!1)=>{const{props:i,styles:s}=t;let n;if(i&&!(0,r.cy)(i))for(const t in i){const e=i[t];(e===Number||e&&e.type===Number)&&(t in this._props&&(this._props[t]=(0,r.Ro)(this._props[t])),(n||(n=Object.create(null)))[(0,r.PT)(t)]=!0)}this._numberProps=n,e&&this._resolveProps(t),this._applyStyles(s),this._update()},e=this._def.__asyncLoader;e?e().then(e=>t(e,!0)):t(this._def)}_resolveProps(t){const{props:e}=t,i=(0,r.cy)(e)?e:Object.keys(e||{});for(const t of Object.keys(this))"_"!==t[0]&&i.includes(t)&&this._setProp(t,this[t],!0,!1);for(const t of i.map(r.PT))Object.defineProperty(this,t,{get(){return this._getProp(t)},set(e){this._setProp(t,e)}})}_setAttr(t){let e=this.getAttribute(t);const i=(0,r.PT)(t);this._numberProps&&this._numberProps[i]&&(e=(0,r.Ro)(e)),this._setProp(i,e,!1)}_getProp(t){return this._props[t]}_setProp(t,e,i=!0,s=!0){e!==this._props[t]&&(this._props[t]=e,s&&this._instance&&this._update(),i&&(!0===e?this.setAttribute((0,r.Tg)(t),""):"string"==typeof e||"number"==typeof e?this.setAttribute((0,r.Tg)(t),e+""):e||this.removeAttribute((0,r.Tg)(t))))}
2_update(){Ct(this._createVNode(),this.shadowRoot)}_createVNode(){const t=(0,s.bF)(this._def,(0,r.X$)({},this._props));return this._instance||(t.ce=t=>{this._instance=t,t.isCE=!0;const e=(t,e)=>{this.dispatchEvent(new CustomEvent(t,{detail:e}))};t.emit=(t,...i)=>{e(t,i),(0,r.Tg)(t)!==t&&e((0,r.Tg)(t),i)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof k){t.parent=i._instance,t.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(t=>{const e=document.createElement("style");e.textContent=t,this.shadowRoot.appendChild(e)})}}function C(t="$style"){{const e=(0,s.nI)();if(!e)return r.MZ;const i=e.type.__cssModules;if(!i)return r.MZ;const n=i[t];return n||r.MZ}}function A(t){const e=(0,s.nI)();if(!e)return;const i=e.ut=(i=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(t=>M(t,i))},n=()=>{const s=t(e.proxy);E(e.subTree,s),i(s)};(0,s.p9)(n),(0,s.sV)(()=>{const t=new MutationObserver(n);t.observe(e.subTree.el.parentNode,{childList:!0}),(0,s.hi)(()=>t.disconnect())})}function E(t,e){if(128&t.shapeFlag){const i=t.suspense;t=i.activeBranch,i.pendingBranch&&!i.isHydrating&&i.effects.push(()=>{E(i.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(1&t.shapeFlag&&t.el)M(t.el,e);else if(t.type===s.FK)t.children.forEach(t=>E(t,e));else if(t.type===s.jC){let{el:i,anchor:s}=t;for(;i&&(M(i,e),i!==s);)i=i.nextSibling}}function M(t,e){if(1===t.nodeType){const i=t.style;for(const t in e)i.setProperty(`--${t}`,e[t])}}const T="transition",P="animation",O=(t,{slots:e})=>(0,s.h)(s.pR,R(t),e);O.displayName="Transition";const L={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},_=O.props=(0,r.X$)({},s.pR.props,L),I=(t,e=[])=>{(0,r.cy)(t)?t.forEach(t=>t(...e)):t&&t(...e)},D=t=>!!t&&((0,r.cy)(t)?t.some(t=>t.length>1):t.length>1);function R(t){const e={};for(const i in t)i in L||(e[i]=t[i]);if(!1===t.css)return e;const{name:i="v",type:s,duration:n,enterFromClass:o=`${i}-enter-from`,enterActiveClass:a=`${i}-enter-active`,enterToClass:l=`${i}-enter-to`,appearFromClass:c=o,appearActiveClass:h=a,appearToClass:d=l,leaveFromClass:u=`${i}-leave-from`,leaveActiveClass:p=`${i}-leave-active`,leaveToClass:f=`${i}-leave-to`}=t,g=function(t){if(null==t)return null;if((0,r.Gv)(t))return[N(t.enter),N(t.leave)];{const e=N(t);return[e,e]}}(n),m=g&&g[0],x=g&&g[1],{onBeforeEnter:b,onEnter:y,onEnterCancelled:v,onLeave:w,onLeaveCancelled:S,onBeforeAppear:k=b,onAppear:C=y,onAppearCancelled:A=v}=e,E=(t,e,i)=>{j(t,e?d:l),j(t,e?h:a),i&&i()},M=(t,e)=>{t._isLeaving=!1,j(t,u),j(t,f),j(t,p),e&&e()},T=t=>(e,i)=>{const n=t?C:y,r=()=>E(e,t,i);I(n,[e,r]),F(()=>{j(e,t?c:o),B(e,t?d:l),D(n)||H(e,s,m,r)})};return(0,r.X$)(e,{onBeforeEnter(t){I(b,[t]),B(t,o),B(t,a)},onBeforeAppear(t){I(k,[t]),B(t,c),B(t,h)},onEnter:T(!1),onAppear:T(!0),onLeave(t,e){t._isLeaving=!0;const i=()=>M(t,e);B(t,u),V(),B(t,p),F(()=>{t._isLeaving&&(j(t,u),B(t,f),D(w)||H(t,s,x,i))}),I(w,[t,i])},onEnterCancelled(t){E(t,!1),I(v,[t])},onAppearCancelled(t){E(t,!0),I(A,[t])},onLeaveCancelled(t){M(t),I(S,[t])}})}function N(t){return(0,r.Ro)(t)}function B(t,e){e.split(/\s+/).forEach(e=>e&&t.classList.add(e)),(t._vtc||(t._vtc=new Set)).add(e)}function j(t,e){e.split(/\s+/).forEach(e=>e&&t.classList.remove(e));const{_vtc:i}=t;i&&(i.delete(e),i.size||(t._vtc=void 0))}function F(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let z=0;function H(t,e,i,s){const n=t._endId=++z,r=()=>{n===t._endId&&s()};if(i)return setTimeout(r,i);const{type:o,timeout:a,propCount:l}=X(t,e);if(!o)return s();const c=o+"end";let h=0;const d=()=>{t.removeEventListener(c,u),r()},u=e=>{e.target===t&&++h>=l&&d()};setTimeout(()=>{h<l&&d()},a+1),t.addEventListener(c,u)}function X(t,e){const i=window.getComputedStyle(t),s=t=>(i[t]||"").split(", "),n=s(`${T}Delay`),r=s(`${T}Duration`),o=W(n,r),a=s(`${P}Delay`),l=s(`${P}Duration`),c=W(a,l);let h=null,d=0,u=0;e===T?o>0&&(h=T,d=o,u=r.length):e===P?c>0&&(h=P,d=c,u=l.length):(d=Math.max(o,c),h=d>0?o>c?T:P:null,u=h?h===T?r.length:l.length:0);return{type:h,timeout:d,propCount:u,hasTransform:h===T&&/\b(transform|all)(,|$)/.test(s(`${T}Property`).toString())}}function W(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((e,i)=>Y(e)+Y(t[i])))}function Y(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function V(){return document.body.offsetHeight}const G=new WeakMap,U=new WeakMap,$={name:"TransitionGroup",props:(0,r.X$)({},_,{tag:String,moveClass:String}),setup(t,{slots:e}){const i=(0,s.nI)(),r=(0,s.Gy)();let o,a;return(0,s.$u)(()=>
2{if(!o.length)return;const e=t.moveClass||`${t.name||"v"}-move`;if(!function(t,e,i){const s=t.cloneNode();t._vtc&&t._vtc.forEach(t=>{t.split(/\s+/).forEach(t=>t&&s.classList.remove(t))});i.split(/\s+/).forEach(t=>t&&s.classList.add(t)),s.style.display="none";const n=1===e.nodeType?e:e.parentNode;n.appendChild(s);const{hasTransform:r}=X(s);return n.removeChild(s),r}(o[0].el,i.vnode.el,e))return;o.forEach(q),o.forEach(K);const s=o.filter(Z);V(),s.forEach(t=>{const i=t.el,s=i.style;B(i,e),s.transform=s.webkitTransform=s.transitionDuration="";const n=i._moveCb=t=>{t&&t.target!==i||t&&!/transform$/.test(t.propertyName)||(i.removeEventListener("transitionend",n),i._moveCb=null,j(i,e))};i.addEventListener("transitionend",n)})}),()=>{const l=(0,n.ux)(t),c=R(l);let h=l.tag||s.FK;o=a,a=e.default?(0,s.Df)(e.default()):[];for(let t=0;t<a.length;t++){const e=a[t];null!=e.key&&(0,s.MZ)(e,(0,s.OW)(e,c,r,i))}if(o)for(let t=0;t<o.length;t++){const e=o[t];(0,s.MZ)(e,(0,s.OW)(e,c,r,i)),G.set(e,e.el.getBoundingClientRect())}return(0,s.bF)(h,null,a)}}};function q(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function K(t){U.set(t,t.el.getBoundingClientRect())}function Z(t){const e=G.get(t),i=U.get(t),s=e.left-i.left,n=e.top-i.top;if(s||n){const e=t.el.style;return e.transform=e.webkitTransform=`translate(${s}px,${n}px)`,e.transitionDuration="0s",t}}const J=t=>{const e=t.props["onUpdate:modelValue"]||!1;return(0,r.cy)(e)?t=>(0,r.DY)(e,t):e};function Q(t){t.target.composing=!0}function tt(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const et={created(t,{modifiers:{lazy:e,trim:i,number:s}},n){t._assign=J(n);const o=s||n.props&&"number"===n.props.type;f(t,e?"change":"input",e=>{if(e.target.composing)return;let s=t.value;i&&(s=s.trim()),o&&(s=(0,r.Ro)(s)),t._assign(s)}),i&&f(t,"change",()=>{t.value=t.value.trim()}),e||(f(t,"compositionstart",Q),f(t,"compositionend",tt),f(t,"change",tt))},mounted(t,{value:e}){t.value=null==e?"":e},beforeUpdate(t,{value:e,modifiers:{lazy:i,trim:s,number:n}},o){if(t._assign=J(o),t.composing)return;if(document.activeElement===t&&"range"!==t.type){if(i)return;if(s&&t.value.trim()===e)return;if((n||"number"===t.type)&&(0,r.Ro)(t.value)===e)return}const a=null==e?"":e;t.value!==a&&(t.value=a)}},it={deep:!0,created(t,e,i){t._assign=J(i),f(t,"change",()=>{const e=t._modelValue,i=at(t),s=t.checked,n=t._assign;if((0,r.cy)(e)){const t=(0,r.u3)(e,i),o=-1!==t;if(s&&!o)n(e.concat(i));else if(!s&&o){const i=[...e];i.splice(t,1),n(i)}}else if((0,r.vM)(e)){const t=new Set(e);s?t.add(i):t.delete(i),n(t)}else n(lt(t,s))})},mounted:st,beforeUpdate(t,e,i){t._assign=J(i),st(t,e,i)}};function st(t,{value:e,oldValue:i},s){t._modelValue=e,(0,r.cy)(e)?t.checked=(0,r.u3)(e,s.props.value)>-1:(0,r.vM)(e)?t.checked=e.has(s.props.value):e!==i&&(t.checked=(0,r.BX)(e,lt(t,!0)))}const nt={created(t,{value:e},i){t.checked=(0,r.BX)(e,i.props.value),t._assign=J(i),f(t,"change",()=>{t._assign(at(t))})},beforeUpdate(t,{value:e,oldValue:i},s){t._assign=J(s),e!==i&&(t.checked=(0,r.BX)(e,s.props.value))}},rt={deep:!0,created(t,{value:e,modifiers:{number:i}},s){const n=(0,r.vM)(e);f(t,"change",()=>{const e=Array.prototype.filter.call(t.options,t=>t.selected).map(t=>i?(0,r.Ro)(at(t)):at(t));t._assign(t.multiple?n?new Set(e):e:e[0])}),t._assign=J(s)},mounted(t,{value:e}){ot(t,e)},beforeUpdate(t,e,i){t._assign=J(i)},updated(t,{value:e}){ot(t,e)}};function ot(t,e){const i=t.multiple;if(!i||(0,r.cy)(e)||(0,r.vM)(e)){for(let s=0,n=t.options.length;s<n;s++){const n=t.options[s],o=at(n);if(i)(0,r.cy)(e)?n.selected=(0,r.u3)(e,o)>-1:n.selected=e.has(o);else if((0,r.BX)(at(n),e))return void(t.selectedIndex!==s&&(t.selectedIndex=s))}i||-1===t.selectedIndex||(t.selectedIndex=-1)}}function at(t){return"_value"in t?t._value:t.value}function lt(t,e){const i=e?"_trueValue":"_falseValue";return i in t?t[i]:e}const ct={created(t,e,i){dt(t,e,i,null,"created")},mounted(t,e,i){dt(t,e,i,null,"mounted")},beforeUpdate(t,e,i,s){dt(t,e,i,s,"beforeUpdate")},updated(t,e,i,s){dt(t,e,i,s,"updated")}};function ht(t,e){switch(t){case"SELECT":return rt;case"TEXTAREA":return et;default:switch(e){case"checkbox":return it;case"radio":return nt;default:return et}}}function dt(t,e,i,s,n){const r=ht(t.tagName,i.props&&i.props.type)[n];r&&r(t,e,i,s)}const ut=["ctrl","shift","alt","meta"],pt={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&0!==t.button,middle:t=>"button"in t&&1!==t.button,right:t=>"button"in t&&2!==t.button,exact:(t,e)=>ut.some(i=>t[`${i}Key`]&&!e.includes(i))},ft=(t,e)=>(i,...s)=>{for(let t=0;t<e.length;t++){const s=pt[e[t]];if(s&&s(i,e))return}return t(i,...s)},gt={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},mt=(t,e)=>i=>{if(!("key"in i))return;const s=(0,r.Tg)(i.key);return e.some(t=>t===s||gt[t]===s)?t(i):void 0},xt={beforeMount(t,{value:e},{transition:i}){t._vod="none"===t.style.display?"":t.style.display,i&&e?i.beforeEnter(t):bt(t,e)},mounted(t,{value:e},{transition:i}){i&&e&&i.enter(t)},updated(t,{value:e,oldValue:i},{transition:s}){!e!=!i&&(s?e?(s.beforeEnter(t),bt(t,!0),s.enter(t)):s.leave(t,()=>{bt(t,!1)}):bt(t,e))},beforeUnmount(t,{value:e}){bt(t,e)}};function bt(t,e){t.style.display=e?t._vod:"none"}
2const yt=(0,r.X$)({patchProp:(t,e,i,s,n=!1,o,a,l,c)=>{"class"===e?function(t,e,i){const s=t._vtc;s&&(e=(e?[e,...s]:[...s]).join(" ")),null==e?t.removeAttribute("class"):i?t.setAttribute("class",e):t.className=e}(t,s,n):"style"===e?function(t,e,i){const s=t.style,n=(0,r.Kg)(i);if(i&&!n){for(const t in i)h(s,t,i[t]);if(e&&!(0,r.Kg)(e))for(const t in e)null==i[t]&&h(s,t,"")}else{const r=s.display;n?e!==i&&(s.cssText=i):e&&t.removeAttribute("style"),"_vod"in t&&(s.display=r)}}(t,i,s):(0,r.Mp)(e)?(0,r.CP)(e)||g(t,e,0,s,a):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):function(t,e,i,s){if(s)return"innerHTML"===e||"textContent"===e||!!(e in t&&y.test(e)&&(0,r.Tn)(i));if("spellcheck"===e||"draggable"===e||"translate"===e)return!1;if("form"===e)return!1;if("list"===e&&"INPUT"===t.tagName)return!1;if("type"===e&&"TEXTAREA"===t.tagName)return!1;if(y.test(e)&&(0,r.Kg)(i))return!1;return e in t}(t,e,s,n))?function(t,e,i,s,n,o,a){if("innerHTML"===e||"textContent"===e)return s&&a(s,n,o),void(t[e]=null==i?"":i);if("value"===e&&"PROGRESS"!==t.tagName&&!t.tagName.includes("-")){t._value=i;const s=null==i?"":i;return t.value===s&&"OPTION"!==t.tagName||(t.value=s),void(null==i&&t.removeAttribute(e))}let l=!1;if(""===i||null==i){const s=typeof t[e];"boolean"===s?i=(0,r.Y2)(i):null==i&&"string"===s?(i="",l=!0):"number"===s&&(i=0,l=!0)}try{t[e]=i}catch(t){}l&&t.removeAttribute(e)}(t,e,s,o,a,l,c):("true-value"===e?t._trueValue=s:"false-value"===e&&(t._falseValue=s),function(t,e,i,s){if(s&&e.startsWith("xlink:"))null==i?t.removeAttributeNS(p,e.slice(6,e.length)):t.setAttributeNS(p,e,i);else{const s=(0,r.J$)(e);null==i||s&&!(0,r.Y2)(i)?t.removeAttribute(e):t.setAttribute(e,s?"":i)}}(t,e,s,n))}},l);let vt,wt=!1;function St(){return vt||(vt=(0,s.K9)(yt))}function kt(){return vt=wt?vt:(0,s.ci)(yt),wt=!0,vt}const Ct=(...t)=>{St().render(...t)},At=(...t)=>{kt().hydrate(...t)},Et=(...t)=>{const e=St().createApp(...t);const{mount:i}=e;return e.mount=t=>{const s=Tt(t);if(!s)return;const n=e._component;(0,r.Tn)(n)||n.render||n.template||(n.template=s.innerHTML),s.innerHTML="";const o=i(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e},Mt=(...t)=>{const e=kt().createApp(...t);const{mount:i}=e;return e.mount=t=>{const e=Tt(t);if(e)return i(e,!0,e instanceof SVGElement)},e};function Tt(t){if((0,r.Kg)(t)){return document.querySelector(t)}return t}let Pt=!1;const Ot=()=>{Pt||(Pt=!0,et.getSSRProps=({value:t})=>({value:t}),nt.getSSRProps=({value:t},e)=>{if(e.props&&(0,r.BX)(e.props.value,t))return{checked:!0}},it.getSSRProps=({value:t},e)=>{if((0,r.cy)(t)){if(e.props&&(0,r.u3)(t,e.props.value)>-1)return{checked:!0}}else if((0,r.vM)(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},ct.getSSRProps=(t,e)=>{if("string"!=typeof e.type)return;const i=ht(e.type.toUpperCase(),e.props&&e.props.type);return i.getSSRProps?i.getSSRProps(t,e):void 0},xt.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}})}},783(t,e,i){var s,n,r;n="undefined"!=typeof window?window:this,r=function(t){"use strict";var e={};function i(e,i,s,n){!e.hasOwnProperty(i)&&(e[i]=n.apply(null,s),t&&"function"==typeof CustomEvent&&t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}return i(e,"Core/Globals.js",[],function(){var e,i;return(i=e||(e={})).SVG_NS="http://www.w3.org/2000/svg",i.product="Highcharts",i.version="11.4.7",i.win=void 0!==t?t:{},i.doc=i.win.document,i.svg=i.doc&&i.doc.createElementNS&&!!i.doc.createElementNS(i.SVG_NS,"svg").createSVGRect,i.userAgent=i.win.navigator&&i.win.navigator.userAgent||"",i.isChrome=i.win.chrome,i.isFirefox=-1!==i.userAgent.indexOf("Firefox"),i.isMS=/(edge|msie|trident)/i.test(i.userAgent)&&!i.win.opera,i.isSafari=!i.isChrome&&-1!==i.userAgent.indexOf("Safari"),i.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(i.userAgent),i.isWebKit=-1!==i.userAgent.indexOf("AppleWebKit"),i.deg2rad=2*Math.PI/360,i.hasBidiBug=i.isFirefox&&4>parseInt(i.userAgent.split("Firefox/")[1],10),i.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],i.noop=function(){},i.supportsPassiveEvents=function(){let t=!1;if(!i.isMS){let e=Object.defineProperty({},"passive",{get:function(){t=!0}});i.win.addEventListener&&i.win.removeEventListener&&(i.win.addEventListener("testPassive",i.noop,e),i.win.removeEventListener("testPassive",i.noop,e))}return t}(),i.charts=[],i.composed=[],i.dateFormats={},i.seriesTypes={},i.symbolSizes={},i.chartCount=0,e}),i(e,"Core/Utilities.js",[e["Core/Globals.js"]],function(t){let e,{charts:i,doc:s,win:n}=t;function r(e,i,s,o){let a=i?"Highcharts error":"Highcharts warning";32===e&&(e=`${a}: Deprecated member`);let l=u(e),c=l?`${a} #${e}: www.highcharts.com/errors/${e}/`:e.toString();if(void 0!==o){let t="";l&&(c+="?"),S(o,function(e,i){t+=`\n - ${i}: ${e}`,l&&(c+=encodeURI(i)+"="+encodeURI(e))}),c+=t}C(t,"displayError",{chart:s,code:e,message:c,params:o},function(){if(i)throw Error(c);n.console&&-1===r.messages.indexOf(c)&&console.warn(c)}),r.messages.push(c)}function o(t,e){return parseInt(t,e||10)}function a(t){return"string"==typeof t}function l(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function c(t,e){return!(!t||"object"!=typeof t||e&&l(t))}function h(t){return c(t)&&"number"==typeof t.nodeType}function d(t){let e=t&&t.constructor;return!(!c(t,!0)||h(t)||!e||!e.name||"Object"===e.name)}function u(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function p(t){return null!=t}function f(t,e,i){let s,n=a(e)&&!p(i),r=(e,i)=>{p(e)?t.setAttribute(i,e):n?(s=t.getAttribute(i))||"class"!==i||(s=t.getAttribute(i+"Name")):t.removeAttribute(i)};return a(e)?r(i,e):S(e,r),s}function g(t){return l(t)?t:[t]}function m(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function x(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function b(t,e){m(t.style,e)}function y(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function v(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}(r||(r={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};let w=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){let i,s=t.length;for(i=0;i<s;i++)if(e(t[i],i))return t[i]};function S(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function k(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function n(i){let n,r;t.nodeName&&(e?(n={})[e]=!0:n=i,S(n,function(t,e){if(i[e])for(r=i[e].length;r--;)s(e,i[e][r].fn)}))}let r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let t=r.hcEvents;if(e){let r=t[e]||[];i?(t[e]=r.filter(function(t){return i!==t.fn}),s(e,i)):(n(t),t[e]=[])}else n(t),delete r.hcEvents}}function C(e,i,n,r){if(n=n||{}
2,s.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==t)){let t=s.createEvent("Events");t.initEvent(i,!0,!0),n=m(t,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(i,n)}else if(e.hcEvents){n.target||m(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:i});let t=[],s=e,r=!1;for(;s.hcEvents;)Object.hasOwnProperty.call(s,"hcEvents")&&s.hcEvents[i]&&(t.length&&(r=!0),t.unshift.apply(t,s.hcEvents[i])),s=Object.getPrototypeOf(s);r&&t.sort((t,e)=>t.order-e.order),t.forEach(t=>{!1===t.fn.call(e,n)&&n.preventDefault()})}r&&!n.defaultPrevented&&r.call(e,n)}S({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(e,i){t[i]=function(t){return r(32,!1,void 0,{[`Highcharts.${i}`]:`use Array.${e}`}),Array.prototype[e].apply(t,[].slice.call(arguments,1))}});let A=function(){let t=Math.random().toString(36).substring(2,9)+"-",i=0;return function(){return"highcharts-"+(e?"":t)+i++}}();return n.jQuery&&(n.jQuery.fn.highcharts=function(){let e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[a(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):i[f(this[0],"data-highcharts-chart")]}),{addEvent:function(e,i,s,n={}){let r="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={});let o=r.hcEvents;t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);let a=e.addEventListener;a&&a.call(e,i,s,!!t.supportsPassiveEvents&&{passive:void 0===n.passive?-1!==i.indexOf("touch"):n.passive,capture:!1}),o[i]||(o[i]=[]);let l={fn:s,order:"number"==typeof n.order?n.order:1/0};return o[i].push(l),o[i].sort((t,e)=>t.order-e.order),function(){k(e,i,s)}},arrayMax:function(t){let e=t.length,i=t[0];for(;e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){let e=t.length,i=t[0];for(;e--;)t[e]<i&&(i=t[e]);return i},attr:f,clamp:function(t,e,i){return t>e?t<i?t:i:e},clearTimeout:function(t){p(t)&&clearTimeout(t)},correctFloat:v,createElement:function(t,e,i,n,r){let o=s.createElement(t);return e&&m(o,e),r&&b(o,{padding:"0",border:"none",margin:"0"}),i&&b(o,i),n&&n.appendChild(o),o},crisp:(t,e=0,i)=>{let s=e%2/2,n=i?-1:1;return(Math.round(t*n-s)+s)*n},css:b,defined:p,destroyObjectProperties:function(t,e,i){S(t,function(s,n){s!==e&&s?.destroy&&s.destroy(),(s?.destroy||!i)&&delete t[n]})},diffObjects:function(t,e,i,s){let n={};return function t(e,n,r,o){let a=i?n:e;S(e,function(i,h){if(!o&&s&&s.indexOf(h)>-1&&n[h]){i=g(i),r[h]=[];for(let e=0;e<Math.max(i.length,n[h].length);e++)n[h][e]&&(void 0===i[e]?r[h][e]=n[h][e]:(r[h][e]={},t(i[e],n[h][e],r[h][e],o+1)))}else c(i,!0)&&!i.nodeType?(r[h]=l(i)?[]:{},t(i,n[h]||{},r[h],o+1),0!==Object.keys(r[h]).length||"colorAxis"===h&&0===o||delete r[h]):(e[h]!==n[h]||h in e&&!(h in n))&&"__proto__"!==h&&"constructor"!==h&&(r[h]=a[h])})}(t,e,n,0),n},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){let i=t.length;for(;i--;)if(t[i]===e){t.splice(i,1);break}},error:r,extend:m,extendClass:function(t,e){let i=function(){};return m(i.prototype=new t,e),i},find:w,fireEvent:C,getClosestDistance:function(t,e){let i,s,n,r,o=!e;return t.forEach(t=>{if(t.length>1)for(r=s=t.length-1;r>0;r--)(n=t[r]-t[r-1])<0&&!o?(e?.(),e=void 0):n&&(void 0===i||n<i)&&(i=n)}),i},getMagnitude:y,getNestedProperty:function(t,e){let i=t.split(".");for(;i.length&&p(e);){let t=i.shift();if(void 0===t||"__proto__"===t)return;if("this"===t){let t;return c(e)&&(t=e["@this"]),t??e}let s=e[t];if(!p(s)||"function"==typeof s||"number"==typeof s.nodeType||s===n)return;e=s}return e},getStyle:function t(e,i,s){let r;if("width"===i){let i=Math.min(e.offsetWidth,e.scrollWidth),s=e.getBoundingClientRect&&e.getBoundingClientRect().width;return s<i&&s>=i-1&&(i=Math.floor(s)),Math.max(0,i-(t(e,"padding-left",!0)||0)-(t(e,"padding-right",!0)||0))}if("height"===i)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(t(e,"padding-top",!0)||0)-(t(e,"padding-bottom",!0)||0));let a=n.getComputedStyle(e,void 0);return a&&(r=a.getPropertyValue(i),x(s,"opacity"!==i)&&(r=o(r))),r},inArray:function(t,e,i){return r(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),e.indexOf(t,i)}
2,insertItem:function(t,e){let i,s=t.options.index,n=e.length;for(i=t.options.isInternal?n:0;i<n+1;i++)if(!e[i]||u(s)&&s<x(e[i].options.index,e[i]._i)||e[i].options.isInternal){e.splice(i,0,t);break}return i},isArray:l,isClass:d,isDOMElement:h,isFunction:function(t){return"function"==typeof t},isNumber:u,isObject:c,isString:a,keys:function(t){return r(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){let t,e=arguments,i={},s=function(t,e){return"object"!=typeof t&&(t={}),S(e,function(i,n){"__proto__"!==n&&"constructor"!==n&&(!c(i,!0)||d(i)||h(i)?t[n]=e[n]:t[n]=s(t[n]||{},i))}),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));let n=e.length;for(t=0;t<n;t++)i=s(i,e[t]);return i},normalizeTickInterval:function(t,e,i,s,n){let r,o=t,a=t/(i=x(i,y(t)));for(!e&&(e=n?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===s&&(1===i?e=e.filter(function(t){return t%1==0}):i<=.1&&(e=[1/i]))),r=0;r<e.length&&(o=e[r],(!n||!(o*i>=t))&&(n||!(a<=(e[r]+(e[r+1]||e[r]))/2)));r++);return v(o*i,-Math.round(Math.log(.001)/Math.LN10))},objectEach:S,offset:function(t){let e=s.documentElement,i=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:i.width,height:i.height}},pad:function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:x,pInt:o,pushUnique:function(t,e){return 0>t.indexOf(e)&&!!t.push(e)},relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},removeEvent:k,replaceNested:function(t,...e){let i,s;do{for(s of(i=t,e))t=t.replace(s[0],s[1])}while(t!==i);return t},splat:g,stableSort:function(t,e){let i,s,n=t.length;for(s=0;s<n;s++)t[s].safeI=s;for(t.sort(function(t,s){return 0===(i=e(t,s))?t.safeI-s.safeI:i}),s=0;s<n;s++)delete t[s].safeI},syncTimeout:function(t,e,i){return e>0?setTimeout(t,e,i):(t.call(0,i),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:A,useSerialIds:function(t){return e=x(t,e)},wrap:function(t,e,i){let s=t[e];t[e]=function(){let t=arguments,e=this;return i.apply(this,[function(){return s.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}}}),i(e,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),i(e,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),i(e,"Core/Time.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){let{win:i}=t,{defined:s,error:n,extend:r,isNumber:o,isObject:a,merge:l,objectEach:c,pad:h,pick:d,splat:u,timeUnits:p}=e,f=t.isSafari&&i.Intl&&i.Intl.DateTimeFormat.prototype.formatRange,g=t.isSafari&&i.Intl&&!i.Intl.DateTimeFormat.prototype.formatRange;class m{constructor(t){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=i.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}get(t,e){if(this.variableTimezone||this.timezoneOffset){let i=e.getTime(),s=i-this.getTimezoneOffset(e);e.setTime(s);let n=e["getUTC"+t]();return e.setTime(i),n}return this.useUTC?e["getUTC"+t]():e["get"+t]()}set(t,e,i){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&this.getTimezoneOffset(e)%36e5==0)return e["setUTC"+t](i);let s=this.getTimezoneOffset(e),n=e.getTime()-s;e.setTime(n),e["setUTC"+t](i);let r=this.getTimezoneOffset(e);return n=e.getTime()+r,e.setTime(n)}return this.useUTC||f&&"FullYear"===t?e["setUTC"+t](i):e["set"+t](i)}update(t={}){let e=d(t.useUTC,!0);this.options=t=l(!0,this.options,t),this.Date=t.Date||i.Date||Date,this.useUTC=e,this.timezoneOffset=e&&t.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)}makeTime(t,e,i,s,n,r){let o,a,l;return this.useUTC?(o=this.Date.UTC.apply(0,arguments),a=this.getTimezoneOffset(o),o+=a,a!==(l=this.getTimezoneOffset(o))?o+=l-a:a-36e5!==this.getTimezoneOffset(o-36e5)||g||(o-=36e5)):o=new this.Date(t,e,d(i,1),d(s,0),d(n,0),d(r,0)).getTime(),o}timezoneOffsetFunction(){let t=this,e=this.options,i=e.getTimezoneOffset;return this.useUTC?e.timezone?t=>{try{let i=`shortOffset,${e.timezone||""}`,[s,n,r,a,l=0]=(m.formatCache[i]=m.formatCache[i]||Intl.DateTimeFormat("en",{timeZone:e.timezone,timeZoneName:"shortOffset"})).format(t).split(/(GMT|:)/).map(Number),c=-36e5*(r+l/60);if(o(c))return c}catch(t){n(34)}return 0}:this.useUTC&&i?t=>6e4*i(t.valueOf()):()=>6e4*(t.timezoneOffset||0):t=>6e4*new Date(t.toString()).getTimezoneOffset()}dateFormat(e,i,n){if(!s(i)||isNaN(i))return t.defaultOptions.lang&&t.defaultOptions.lang.invali
2dDate||"";e=d(e,"%Y-%m-%d %H:%M:%S");let o=this,a=new this.Date(i),l=this.get("Hours",a),u=this.get("Day",a),p=this.get("Date",a),f=this.get("Month",a),g=this.get("FullYear",a),m=t.defaultOptions.lang,x=m&&m.weekdays,b=m&&m.shortWeekdays;return c(r({a:b?b[u]:x[u].substr(0,3),A:x[u],d:h(p),e:h(p,2," "),w:u,b:m.shortMonths[f],B:m.months[f],m:h(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:h(l),k:l,I:h(l%12||12),l:l%12||12,M:h(this.get("Minutes",a)),p:l<12?"AM":"PM",P:l<12?"am":"pm",S:h(this.get("Seconds",a)),L:h(Math.floor(i%1e3),3)},t.dateFormats),function(t,s){for(;-1!==e.indexOf("%"+s);)e=e.replace("%"+s,"function"==typeof t?t.call(o,i):t)}),n?e.substr(0,1).toUpperCase()+e.substr(1):e}resolveDTLFormat(t){return a(t,!0)?t:{main:(t=u(t))[0],from:t[1],to:t[2]}}getTimeTicks(t,e,i,n){let o,a,l,c,h=this,u=h.Date,f=[],g={},m=new u(e),x=t.unitRange,b=t.count||1;if(n=d(n,1),s(e)){h.set("Milliseconds",m,x>=p.second?0:b*Math.floor(h.get("Milliseconds",m)/b)),x>=p.second&&h.set("Seconds",m,x>=p.minute?0:b*Math.floor(h.get("Seconds",m)/b)),x>=p.minute&&h.set("Minutes",m,x>=p.hour?0:b*Math.floor(h.get("Minutes",m)/b)),x>=p.hour&&h.set("Hours",m,x>=p.day?0:b*Math.floor(h.get("Hours",m)/b)),x>=p.day&&h.set("Date",m,x>=p.month?1:Math.max(1,b*Math.floor(h.get("Date",m)/b))),x>=p.month&&(h.set("Month",m,x>=p.year?0:b*Math.floor(h.get("Month",m)/b)),a=h.get("FullYear",m)),x>=p.year&&(a-=a%b,h.set("FullYear",m,a)),x===p.week&&(c=h.get("Day",m),h.set("Date",m,h.get("Date",m)-c+n+(c<n?-7:0))),a=h.get("FullYear",m);let t=h.get("Month",m),r=h.get("Date",m),d=h.get("Hours",m);e=m.getTime(),(h.variableTimezone||!h.useUTC)&&s(i)&&(l=i-e>4*p.month||h.getTimezoneOffset(e)!==h.getTimezoneOffset(i));let u=m.getTime();for(o=1;u<i;)f.push(u),x===p.year?u=h.makeTime(a+o*b,0):x===p.month?u=h.makeTime(a,t+o*b):!l||x!==p.day&&x!==p.week?l&&x===p.hour&&b>1?u=h.makeTime(a,t,r,d+o*b):u+=x*b:u=h.makeTime(a,t,r+o*b*(x===p.day?1:7)),o++;f.push(u),x<=p.hour&&f.length<1e4&&f.forEach(function(t){t%18e5==0&&"000000000"===h.dateFormat("%H%M%S%L",t)&&(g[t]="day")})}return f.info=r(t,{higherRanks:g,totalRange:x*b}),f}getDateFormat(t,e,i,s){let n=this.dateFormat("%m-%d %H:%M:%S.%L",e),r="01-01 00:00:00.000",o={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond",l=a;for(a in p){if(t===p.week&&+this.dateFormat("%w",e)===i&&n.substr(6)===r.substr(6)){a="week";break}if(p[a]>t){a=l;break}if(o[a]&&n.substr(o[a])!==r.substr(o[a]))break;"week"!==a&&(l=a)}return this.resolveDTLFormat(s[a]).main}}return m.formatCache={},m}),i(e,"Core/Defaults.js",[e["Core/Chart/ChartDefaults.js"],e["Core/Globals.js"],e["Core/Color/Palettes.js"],e["Core/Time.js"],e["Core/Utilities.js"]],function(t,e,i,s,n){let{isTouchDevice:r}=e,{fireEvent:o,merge:a}=n,l={colors:i.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:t=>Math.sqrt(1-Math.pow(t-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:r?25:10,headerFormat:'<span style="font-size: 0.8em">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};l.chart.styledMode=!1;let c=new s(l.time);return{defaultOptions:l,defaultTime:c,getOptions:function(){return l},setOptions:function(t){return o(e,"setOptions",{options:t}),a(!0,l,t),(t.time||t.global)&&(e.time?e.time.update(a(l.global,l.time,t.global,t.time)):e.time=c),l}}}),i(e,"Core/Color/Color.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){let{isNumber:i,merge:s,pInt:n}=e;class r{static parse(t){return t?new r(t):r.None}constructor(e){let i,s,n,o;this.rgba=[NaN,NaN,NaN,NaN],this.input=e;let a=t.Color;if(a&&a!==r)return new a(e);if("object"==typeof e&&void 0!==e.stops)this.stops=e.stops.map(t=>
2new r(t[1]));else if("string"==typeof e){if(this.input=e=r.names[e.toLowerCase()]||e,"#"===e.charAt(0)){let t=e.length,i=parseInt(e.substr(1),16);7===t?s=[(16711680&i)>>16,(65280&i)>>8,255&i,1]:4===t&&(s=[(3840&i)>>4|(3840&i)>>8,(240&i)>>4|240&i,(15&i)<<4|15&i,1])}if(!s)for(n=r.parsers.length;n--&&!s;)(i=(o=r.parsers[n]).regex.exec(e))&&(s=o.parse(i))}s&&(this.rgba=s)}get(t){let e=this.input,n=this.rgba;if("object"==typeof e&&void 0!==this.stops){let i=s(e);return i.stops=[].slice.call(i.stops),this.stops.forEach((e,s)=>{i.stops[s]=[i.stops[s][0],e.get(t)]}),i}return n&&i(n[0])?"rgb"===t||!t&&1===n[3]?"rgb("+n[0]+","+n[1]+","+n[2]+")":"a"===t?`${n[3]}`:"rgba("+n.join(",")+")":e}brighten(t){let e=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(i(t)&&0!==t)for(let i=0;i<3;i++)e[i]+=n(255*t),e[i]<0&&(e[i]=0),e[i]>255&&(e[i]=255);return this}setOpacity(t){return this.rgba[3]=t,this}tweenTo(t,e){let s=this.rgba,n=t.rgba;if(!i(s[0])||!i(n[0]))return t.input||"none";let r=1!==n[3]||1!==s[3];return(r?"rgba(":"rgb(")+Math.round(n[0]+(s[0]-n[0])*(1-e))+","+Math.round(n[1]+(s[1]-n[1])*(1-e))+","+Math.round(n[2]+(s[2]-n[2])*(1-e))+(r?","+(n[3]+(s[3]-n[3])*(1-e)):"")+")"}}return r.names={white:"#ffffff",black:"#000000"},r.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(t){return[n(t[1]),n(t[2]),n(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(t){return[n(t[1]),n(t[2]),n(t[3]),1]}}],r.None=new r(""),r}),i(e,"Core/Animation/Fx.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e,i){let{parse:s}=t,{win:n}=e,{isNumber:r,objectEach:o}=i;class a{constructor(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}dSetter(){let t=this.paths,e=t&&t[0],i=t&&t[1],s=this.now||0,n=[];if(1!==s&&e&&i)if(e.length===i.length&&s<1)for(let t=0;t<i.length;t++){let o=e[t],a=i[t],l=[];for(let t=0;t<a.length;t++){let e=o[t],i=a[t];r(e)&&r(i)&&("A"!==a[0]||4!==t&&5!==t)?l[t]=e+s*(i-e):l[t]=i}n.push(l)}else n=i;else n=this.toD||[];this.elem.attr("d",n,void 0,!0)}update(){let t=this.elem,e=this.prop,i=this.now,s=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,s&&s.call(t,i,this)}run(t,e,i){let s=this,r=s.options,o=function(t){return!o.stopped&&s.step(t)},l=n.requestAnimationFrame||function(t){setTimeout(t,13)},c=function(){for(let t=0;t<a.timers.length;t++)a.timers[t]()||a.timers.splice(t--,1);a.timers.length&&l(c)};t!==e||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=e,this.unit=i,this.now=this.start,this.pos=0,o.elem=this.elem,o.prop=this.prop,o()&&1===a.timers.push(o)&&l(c)):(delete r.curAnim[this.prop],r.complete&&0===Object.keys(r.curAnim).length&&r.complete.call(this.elem))}step(t){let e,i,s=+new Date,n=this.options,r=this.elem,a=n.complete,l=n.duration,c=n.curAnim;return r.attr&&!r.element?e=!1:t||s>=l+this.startTime?(this.now=this.end,this.pos=1,this.update(),c[this.prop]=!0,i=!0,o(c,function(t){!0!==t&&(i=!1)}),i&&a&&a.call(r),e=!1):(this.pos=n.easing((s-this.startTime)/l),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e}initPath(t,e,i){let s,n,o,a,l=t.startX,c=t.endX,h=i.slice(),d=t.isArea,u=d?2:1,p=e&&i.length>e.length&&i.hasStackedCliffs,f=e&&e.slice();if(!f||p)return[h,h];function g(t,e){for(;t.length<n;){let i=t[0],s=e[n-t.length];if(s&&"M"===i[0]&&("C"===s[0]?t[0]=["C",i[1],i[2],i[1],i[2],i[1],i[2]]:t[0]=["L",i[1],i[2]]),t.unshift(i),d){let e=t.pop();t.push(t[t.length-1],e)}}}function m(t){for(;t.length<n;){let e=t[Math.floor(t.length/u)-1].slice();if("C"===e[0]&&(e[1]=e[5],e[2]=e[6]),d){let i=t[Math.floor(t.length/u)].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}}if(l&&c&&c.length){for(o=0;o<l.length;o++){if(l[o]===c[0]){s=o;break}if(l[0]===c[c.length-l.length+o]){s=o,a=!0;break}if(l[l.length-1]===c[c.length-l.length+o]){s=l.length-o;break}}void 0===s&&(f=[])}return f.length&&r(s)&&(n=h.length+s*u,a?(g(f,h),m(h)):(g(h,f),m(f))),[f,h]}fillSetter(){a.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,s(this.start).tweenTo(s(this.end),this.pos),void 0,!0)}}return a.timers=[],a}
2),i(e,"Core/Animation/AnimationUtilities.js",[e["Core/Animation/Fx.js"],e["Core/Utilities.js"]],function(t,e){let{defined:i,getStyle:s,isArray:n,isNumber:r,isObject:o,merge:a,objectEach:l,pick:c}=e;function h(t){return o(t)?a({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function d(e,i){let s=t.timers.length;for(;s--;)t.timers[s].elem!==e||i&&i!==t.timers[s].prop||(t.timers[s].stopped=!0)}return{animate:function(e,i,c){let h,u,p,f,g="";o(c)||(f=arguments,c={duration:f[2],easing:f[3],complete:f[4]}),r(c.duration)||(c.duration=400),c.easing="function"==typeof c.easing?c.easing:Math[c.easing]||Math.easeInOutSine,c.curAnim=a(i),l(i,function(r,o){d(e,o),p=new t(e,c,o),u=void 0,"d"===o&&n(i.d)?(p.paths=p.initPath(e,e.pathArray,i.d),p.toD=i.d,h=0,u=1):e.attr?h=e.attr(o):(h=parseFloat(s(e,o))||0,"opacity"!==o&&(g="px")),u||(u=r),"string"==typeof u&&u.match("px")&&(u=u.replace(/px/g,"")),p.run(h,u,g)})},animObject:h,getDeferredAnimation:function(t,e,s){let n=h(e),r=s?[s]:t.series,a=0,l=0;return r.forEach(t=>{let s=h(t.options.animation);a=o(e)&&i(e.defer)?n.defer:Math.max(a,s.duration+s.defer),l=Math.min(n.duration,s.duration)}),t.renderer.forExport&&(a=0),{defer:Math.max(0,a-l),duration:Math.min(a,l)}},setAnimation:function(t,e){e.renderer.globalAnimation=c(t,e.options.chart.animation,!0)},stop:d}}),i(e,"Core/Renderer/HTML/AST.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){let{SVG_NS:i,win:s}=t,{attr:n,createElement:r,css:o,error:a,isFunction:l,isString:c,objectEach:h,splat:d}=e,{trustedTypes:u}=s,p=u&&l(u.createPolicy)&&u.createPolicy("highcharts",{createHTML:t=>t}),f=p?p.createHTML(""):"",g=function(){try{return!!(new DOMParser).parseFromString(f,"text/html")}catch(t){return!1}}();class m{static filterUserAttributes(t){return h(t,(e,i)=>{let s=!0;-1===m.allowedAttributes.indexOf(i)&&(s=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(i)&&(s=c(e)&&m.allowedReferences.some(t=>0===e.indexOf(t))),s||(a(33,!1,void 0,{"Invalid attribute in config":`${i}`}),delete t[i]),c(e)&&t[i]&&(t[i]=e.replace(/</g,"&lt;"))}),t}static parseStyle(t){return t.split(";").reduce((t,e)=>{let i=e.split(":").map(t=>t.trim()),s=i.shift();return s&&i.length&&(t[s.replace(/-([a-z])/g,t=>t[1].toUpperCase())]=i.join(":")),t},{})}static setElementHTML(t,e){t.innerHTML=m.emptyHTML,e&&new m(e).addToDOM(t)}constructor(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}addToDOM(e){return function e(s,r){let l;
2return d(s).forEach(function(s){let c,d=s.tagName,u=s.textContent?t.doc.createTextNode(s.textContent):void 0,p=m.bypassHTMLFiltering;if(d)if("#text"===d)c=u;else if(-1!==m.allowedTags.indexOf(d)||p){let a="svg"===d?i:r.namespaceURI||i,l=t.doc.createElementNS(a,d),f=s.attributes||{};h(s,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(f[e]=t)}),n(l,p?f:m.filterUserAttributes(f)),s.style&&o(l,s.style),u&&l.appendChild(u),e(s.children||[],l),c=l}else a(33,!1,void 0,{"Invalid tagName in config":d});c&&r.appendChild(c),l=c}),l}(this.nodes,e)}parseMarkup(t){let e,i=[];if(t=t.trim().replace(/ style=(["'])/g," data-style=$1"),g)e=(new DOMParser).parseFromString(p?p.createHTML(t):t,"text/html");else{let i=r("div");i.innerHTML=t,e={body:i}}let s=(t,e)=>{let i=t.nodeName.toLowerCase(),n={tagName:i};"#text"===i&&(n.textContent=t.textContent||"");let r=t.attributes;if(r){let t={};[].forEach.call(r,e=>{"data-style"===e.name?n.style=m.parseStyle(e.value):t[e.name]=e.value}),n.attributes=t}if(t.childNodes.length){let e=[];[].forEach.call(t.childNodes,t=>{s(t,e)}),e.length&&(n.children=e)}e.push(n)};return[].forEach.call(e.body.childNodes,t=>s(t,i)),i}}return m.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],m.allowedReferences=["https://","http://","mailto:","/","../","./","#"],m.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],m.emptyHTML=f,m.bypassHTMLFiltering=!1,m}),i(e,"Core/Templating.js",[e["Core/Defaults.js"],e["Core/Utilities.js"]],function(t,e){let{defaultOptions:i,defaultTime:s}=t,{extend:n,getNestedProperty:r,isArray:o,isNumber:a,isObject:l,pick:c,pInt:h}=e,d={add:(t,e)=>
2t+e,divide:(t,e)=>0!==e?t/e:"",eq:(t,e)=>t==e,each:function(t){let e=arguments[arguments.length-1];return!!o(t)&&t.map((i,s)=>u(e.body,n(l(i)?i:{"@this":i},{"@index":s,"@first":0===s,"@last":s===t.length-1}))).join("")},ge:(t,e)=>t>=e,gt:(t,e)=>t>e,if:t=>!!t,le:(t,e)=>t<=e,lt:(t,e)=>t<e,multiply:(t,e)=>t*e,ne:(t,e)=>t!=e,subtract:(t,e)=>t-e,unless:t=>!t};function u(t="",e,n){let o,a,l,h=/\{([\w\:\.\,;\-\/<>%@"'’= #\(\)]+)\}/g,f=/\(([\w\:\.\,;\-\/<>%@"'= ]+)\)/g,g=[],m=/f$/,x=/\.(\d)/,b=i.lang,y=n&&n.time||s,v=n&&n.numberFormatter||p,w=(t="")=>{let i;return"true"===t||"false"!==t&&((i=Number(t)).toString()===t?i:r(t,e))},S=0;for(;null!==(o=h.exec(t));){let i=f.exec(o[1]);i&&(o=i,l=!0),a&&a.isBlock||(a={ctx:e,expression:o[1],find:o[0],isBlock:"#"===o[1].charAt(0),start:o.index,startInner:o.index+o[0].length,length:o[0].length});let s=o[1].split(" ")[0].replace("#","");d[s]&&(a.isBlock&&s===a.fn&&S++,a.fn||(a.fn=s));let n="else"===o[1];if(a.isBlock&&a.fn&&(o[1]===`/${a.fn}`||n))if(S)!n&&S--;else{let e=a.startInner,i=t.substr(e,o.index-e);void 0===a.body?(a.body=i,a.startInner=o.index+o[0].length):a.elseBody=i,a.find+=i+o[0],n||(g.push(a),a=void 0)}else a.isBlock||g.push(a);if(i&&!a?.isBlock)break}return g.forEach(i=>{let s,r,{body:o,elseBody:a,expression:l,fn:h}=i;if(h){let t=[i],c=l.split(" ");for(r=d[h].length;r--;)t.unshift(w(c[r+1]));s=d[h].apply(e,t),i.isBlock&&"boolean"==typeof s&&(s=u(s?o:a,e,n))}else{let t=l.split(":");if(s=w(t.shift()||""),t.length&&"number"==typeof s){let e=t.join(":");if(m.test(e)){let t=parseInt((e.match(x)||["","-1"])[1],10);null!==s&&(s=v(s,t,b.decimalPoint,e.indexOf(",")>-1?b.thousandsSep:""))}else s=y.dateFormat(e,s)}}t=t.replace(i.find,c(s,""))}),l?u(t,e,n):t}function p(t,e,s,n){let r,o;t=+t||0,e=+e;let l=i.lang,d=(t.toString().split(".")[1]||"").split("e")[0].length,u=t.toString().split("e"),p=e;-1===e?e=Math.min(d,20):a(e)?e&&u[1]&&u[1]<0&&((o=e+ +u[1])>=0?(u[0]=(+u[0]).toExponential(o).split("e")[0],e=o):(u[0]=u[0].split(".")[0]||0,t=e<20?(u[0]*Math.pow(10,u[1])).toFixed(e):0,u[1]=0)):e=2;let f=(Math.abs(u[1]?u[0]:t)+Math.pow(10,-Math.max(e,d)-1)).toFixed(e),g=String(h(f)),m=g.length>3?g.length%3:0;return s=c(s,l.decimalPoint),n=c(n,l.thousandsSep),r=(t<0?"-":"")+(m?g.substr(0,m)+n:""),0>+u[1]&&!p?r="0":r+=g.substr(m).replace(/(\d{3})(?=\d)/g,"$1"+n),e?r+=s+f.slice(-e):0==+r&&(r="0"),u[1]&&0!=+r&&(r+="e"+u[1]),r}return{dateFormat:function(t,e,i){return s.dateFormat(t,e,i)},format:u,helpers:d,numberFormat:p}}),i(e,"Core/Renderer/RendererRegistry.js",[e["Core/Globals.js"]],function(t){var e,i;let s;return(i=e||(e={})).rendererTypes={},i.getRendererType=function(t=s){return i.rendererTypes[t]||i.rendererTypes[s]},i.registerRendererType=function(e,n,r){i.rendererTypes[e]=n,(!s||r)&&(s=e,t.Renderer=n)},e}),i(e,"Core/Renderer/RendererUtilities.js",[e["Core/Utilities.js"]],function(t){var e;let{clamp:i,pick:s,pushUnique:n,stableSort:r}=t;return(e||(e={})).distribute=function t(e,o,a){let l,c,h,d,u,p,f=e,g=f.reducedLen||o,m=(t,e)=>t.target-e.target,x=[],b=e.length,y=[],v=x.push,w=!0,S=0;for(l=b;l--;)S+=e[l].size;if(S>g){for(r(e,(t,e)=>(e.rank||0)-(t.rank||0)),h=(p=e[0].rank===e[e.length-1].rank)?b/2:-1,c=p?h:b-1;h&&S>g;)d=e[l=Math.floor(c)],n(y,l)&&(S-=d.size),c+=h,p&&c>=e.length&&(h/=2,c=h);y.sort((t,e)=>e-t).forEach(t=>v.apply(x,e.splice(t,1)))}for(r(e,m),e=e.map(t=>({size:t.size,targets:[t.target],align:s(t.align,.5)}));w;){for(l=e.length;l--;)d=e[l],u=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/2,d.pos=i(u-d.size*d.align,0,o-d.size);for(l=e.length,w=!1;l--;)l>0&&e[l-1].pos+e[l-1].size>e[l].pos&&(e[l-1].size+=e[l].size,e[l-1].targets=e[l-1].targets.concat(e[l].targets),e[l-1].align=.5,e[l-1].pos+e[l-1].size>o&&(e[l-1].pos=o-e[l-1].size),e.splice(l,1),w=!0)}return v.apply(f,x),l=0,e.some(e=>{let i=0;return(e.targets||[]).some(()=>(f[l].pos=e.pos+i,void 0!==a&&Math.abs(f[l].pos-f[l].target)>a?(f.slice(0,l+1).forEach(t=>delete t.pos),f.reducedLen=(f.reducedLen||o)-.1*o,f.reducedLen>.1*o&&t(f,o,a),!0):(i+=f[l].size,l++,!1)))}),r(f,m),f},e}
vendor: 4,240 bytes, line 2
2),i(e,"Core/Renderer/SVG/SVGElement.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e,i,s){let{animate:n,animObject:r,stop:o}=t,{deg2rad:a,doc:l,svg:c,SVG_NS:h,win:d}=i,{addEvent:u,attr:p,createElement:f,crisp:g,css:m,defined:x,erase:b,extend:y,fireEvent:v,isArray:w,isFunction:S,isObject:k,isString:C,merge:A,objectEach:E,pick:M,pInt:T,pushUnique:P,replaceNested:O,syncTimeout:L,uniqueKey:_}=s;class I{_defaultGetter(t){let e=M(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0);return/^-?[\d\.]+$/.test(e)&&(e=parseFloat(e)),e}_defaultSetter(t,e,i){i.setAttribute(e,t)}add(t){let e,i=this.renderer,s=this.element;return t&&(this.parentGroup=t),void 0!==this.textStr&&"text"===this.element.nodeName&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(s),this.onAdd&&this.onAdd(),this}addClass(t,e){let i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(t,e){return-1===i.indexOf(e)&&t.push(e),t},i?[i]:[]).join(" "))!==i&&this.attr("class",t),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(t,e,i,s=!0){let n,r,o,a,l={},c=this.renderer,h=c.alignedObjects,d=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=i):(t=this.alignOptions||{},e=this.alignByTranslate,i=this.alignTo);let u=!i||C(i)?i||"renderer":void 0;u&&(d&&P(h,this),i=void 0);let p=M(i,c[u],c),f=t.align,g=t.verticalAlign;return n=(p.x||0)+(t.x||0),r=(p.y||0)+(t.y||0),"right"===f?o=1:"center"===f&&(o=2),o&&(n+=((p.width||0)-(t.width||0))/o),l[e?"translateX":"x"]=Math.round(n),"bottom"===g?a=1:"middle"===g&&(a=2),a&&(r+=((p.height||0)-(t.height||0))/a),l[e?"translateY":"y"]=Math.round(r),s&&(this[this.placed?"animate":"attr"](l),this.placed=!0),this.alignAttr=l,this}alignSetter(t){let e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))}animate(t,e,i){let s=r(M(e,this.renderer.globalAnimation,!0)),o=s.defer;return l.hidden&&(s.duration=0),0!==s.duration?(i&&(s.complete=i),L(()=>{this.element&&n(this,t,s)},o)):(this.attr(t,void 0,i||s.complete),E(t,function(t,e){s.step&&s.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this}applyTextOutline(t){let e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));let s=t.split(" "),n=s[s.length-1],r=s[0];if(r&&"none"!==r&&i.svg){this.fakeTS=!0,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline();let t=l.createElementNS(h,"tspan");p(t,{class:"highcharts-text-outline",fill:n,stroke:n,"stroke-width":r,"stroke-linejoin":"round"});let i=e.querySelector("textPath")||e;[].forEach.call(i.childNodes,e=>{let i=e.cloneNode(!0);i.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(t=>i.removeAttribute(t)),t.appendChild(i)});let s=0;[].forEach.call(i.querySelectorAll("text tspan"),t=>{s+=Number(t.getAttribute("dy"))});let o=l.createElementNS(h,"tspan");o.textContent="​",p(o,{x:Number(e.getAttribute("x")),dy:-s}),t.appendChild(o),i.insertBefore(t,i.firstChild)}}attr(t,e,i,s){let n,r,a,{element:l}=this,c=I.symbolCustomAttribs,h=this;return"string"==typeof t&&void 0!==e&&(n=t,(t={})[n]=e),"string"==typeof t?h=(this[t+"Getter"]||this._defaultGetter).call(this,t,l):(E(t,function(e,i){a=!1,s||o(this,i),this.symbolName&&-1!==c.indexOf(i)&&(r||(this.symbolAttr(t),r=!0),a=!0),this.rotation&&("x"===i||"y"===i)&&(this.doTransform=!0),a||(this[i+"Setter"]||this._defaultSetter).call(this,e,i,l)},this),this.afterSetters()),i&&i.call(this),h}clip(t){if(t&&!t.clipPath){let e=_()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);y(t,{clipPath:i,id:e,count:0}),t.add(i)}return this.attr("clip-path",t?`url(${this.renderer.url}#${t.id})`:"none")}crisp(t,e){e=Math.round(e||t.strokeWidth||0);let i=t.x||this.x||0,s=t.y||this.y||0,n=(t.width||this.width||0)+i,r=(t.height||this.height||0)+s,o=g(i,e),a=g(s,e);return y(t,{x:o,y:a,width:g(n,e)-o,height:g(r,e)-a}),x(t.strokeWidth)&&(t.strokeWidth=e),t}complexColor(t,i,s){let n,r,o,a,l,c,h,d,u,p,f,g=this.renderer,m=[];
2v(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(o=t[r],l=g.gradients,c=t.stops,u=s.radialReference,w(o)&&(t[r]=o={x1:o[0],y1:o[1],x2:o[2],y2:o[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&u&&!x(o.gradientUnits)&&(a=o,o=A(o,g.getRadialAttr(u,a),{gradientUnits:"userSpaceOnUse"})),E(o,function(t,e){"id"!==e&&m.push(e,t)}),E(c,function(t){m.push(t)}),l[m=m.join(",")])p=l[m].attr("id");else{o.id=p=_();let t=l[m]=g.createElement(r).attr(o).add(g.defs);t.radAttr=a,t.stops=[],c.forEach(function(i){0===i[1].indexOf("rgba")?(h=(n=e.parse(i[1])).get("rgb"),d=n.get("a")):(h=i[1],d=1);let s=g.createElement("stop").attr({offset:i[0],"stop-color":h,"stop-opacity":d}).add(t);t.stops.push(s)})}f="url("+g.url+"#"+p+")",s.setAttribute(i,f),s.gradient=m,t.toString=function(){return f}}})}css(t){let e,i=this.styles,s={},n=this.element,r=!i;if(i&&E(t,function(t,e){i&&i[e]!==t&&(s[e]=t,r=!0)}),r){i&&(t=y(i,s)),null===t.width||"auto"===t.width?delete this.textWidth:"text"===n.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=T(t.width)),y(this.styles,t),e&&!c&&this.renderer.forExport&&delete t.width;let r=A(t);n.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(t=>r&&delete r[t]),r.color&&(r.fill=r.color)),m(n,r)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline)),this}dashstyleSetter(t){let e,i=this["stroke-width"];if("inherit"===i&&(i=1),t=t&&t.toLowerCase()){let s=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(e=s.length;e--;)s[e]=""+T(s[e])*M(i,NaN);t=s.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}}destroy(){let t,e,i=this,s=i.element||{},n=i.renderer,r=s.ownerSVGElement,a="SPAN"===s.nodeName&&i.parentGroup||void 0;if(s.onclick=s.onmouseout=s.onmouseover=s.onmousemove=s.point=null,o(i),i.clipPath&&r){let t=i.clipPath;[].forEach.call(r.querySelectorAll("[clip-path],[CLIP-PATH]"),function(e){e.getAttribute("clip-path").indexOf(t.element.id)>-1&&e.removeAttribute("clip-path")}),i.clipPath=t.destroy()}if(i.connector=i.connector?.destroy(),i.stops){for(e=0;e<i.stops.length;e++)i.stops[e].destroy();i.stops.length=0,i.stops=void 0}for(i.safeRemoveChild(s);a&&a.div&&0===a.div.childNodes.length;)t=a.parentGroup,i.safeRemoveChild(a.div),delete a.div,a=t;i.alignOptions&&b(n.alignedObjects,i),E(i,function(t,e){i[e]&&i[e].parentGroup===i&&i[e].destroy&&i[e].destroy(),delete i[e]})}dSetter(t,e,i){w(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((t,e,i)=>e&&e.join?(i?t+" ":"")+e.join(" "):(e||"").toString(),"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)}fillSetter(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)}hrefSetter(t,e,i){i.setAttributeNS("http://www.w3.org/1999/xlink",e,t)}getBBox(t,e){let i,s,n,r,{alignValue:o,element:a,renderer:l,styles:c,textStr:h}=this,{cache:d,cacheKeys:u}=l,p=a.namespaceURI===this.SVG_NS,f=M(e,this.rotation,0),g=l.styledMode?a&&I.prototype.getStyle.call(a,"font-size"):c.fontSize;if(x(h)&&(-1===(r=h.toString()).indexOf("<")&&(r=r.replace(/\d/g,"0")),r+=["",l.rootFontSize,g,f,this.textWidth,o,c.textOverflow,c.fontWeight].join(",")),r&&!t&&(i=d[r]),!i||i.polygon){if(p||l.forExport){try{n=this.fakeTS&&function(t){let e=a.querySelector(".highcharts-text-outline");e&&m(e,{display:t})},S(n)&&n("none"),i=a.getBBox?y({},a.getBBox()):{width:a.offsetWidth,height:a.offsetHeight,x:0,y:0},S(n)&&n("")}catch(t){}(!i||i.width<0)&&(i={x:0,y:0,width:0,height:0})}else i=this.htmlGetBBox();s=i.height,p&&(i.height=s={"11px,17":14,"13px,20":16}[`${g||""},${Math.round(s)}`]||s),f&&(i=this.getRotatedBox(i,f));let e={bBox:i};v(this,"afterGetBBox",e),i=e.bBox}if(r&&(""===h||i.height>0)){for(;u.length>250;)delete d[u.shift()];d[r]||u.push(r),d[r]=i}return i}getRotatedBox(t,e){let{x:i,y:s,width:n,height:r}=t,{alignValue:o,translateY:l,rotationOriginX:c=0,rotationOriginY:h=0}=this,d={right:1,center:.5}[o||0]||0,u=Number(this.element.getAttribute("y")||0)-(l?0:s),p=e*a,f=(e-90)*a,g=Math.cos(p),m=Math.sin(p),x=n*g,b=n*m,y=Math.cos(f),v=Math.sin(f),[[w,S],[k,C]]=[c,h].map(t=>[t-t*g,t*m]),A=i+d*(n-x)+w+C+u*y,E=A+x,M=E-r*y,T=M-x,P=s+u-d*b-S+k+u*v,O=P+b,L=O-r*v,_=L-b,I=Math.min(A,E,M,T),D=Math.min(P,O,L,_);return{x:I,y:D,width:Math.max(A,E,M,T)-I,height:Math.max(P,O,L,_)-D,polygon:[[A,P],[E,O],[M,L],[T,_]]}}getStyle(t){return d.getComputedStyle(this.element||this,"").getPropertyValue(t)}hasClass(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(t,e){this.onEvents={},this.opacity=1,this.SVG_NS=h,this.element="span"===e||"body"===e?f(e):l.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},v(this,"afterInit")}on(t,e){let{onEvents:i}=this;return i[t]&&i[t](),i[t]=u(this.element,t,e),this}opacitySetter(t,e,i){let s=Number(Number(t).toFixed(3));this.opacity=s,i.setAttribute(e,s)}reAlign(){this.alignOptions?.width&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(t){return this.attr("class",(""+this.attr("class")).replace(C(t)?RegExp(`(^| )${t}( |$)`):t," ").replace(/ +/g," ").trim())}removeTextOutline(){let t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)}safeRemoveChild(t){let e=t.parentNode;e&&e.removeChild(t)}setRadialReference(t){let e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this}shadow(t){let{renderer:e}=this,i=A(90===this.parentGroup?.rotation?{offsetX:-1,offsetY:-1}:{},k(t)?t:{}),s=e.shadowDefinition(i);return this.attr({filter:t?`url(${e.url}#${s})`:"none"})}show(t=!0){return this.attr({visibility:t?"inherit":"visible"})}"stroke-widthSetter"(t,e,i){this[e]=t,i.setAttribute(e,t)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let t,e=this.getStyle("stroke-width"),i=0;return/px$/.test(e)?i=T(e):""!==e&&(p(t=l.createElementNS(h,"rect"),{width:e,"stroke-width":0}),this.element.parentNode.appendChild(t),i=t.getBBox().width,t.parentNode.removeChild(t)),i}symbolAttr(t){let e=this;
2I.symbolCustomAttribs.forEach(function(i){e[i]=M(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})}textSetter(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(t){let e=this.element,i=e.getElementsByTagName("title")[0]||l.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=O(M(t,""),[/<[^>]*>/g,""]).replace(/&lt;/g,"<").replace(/&gt;/g,">")}toFront(){let t=this.element;return t.parentNode.appendChild(t),this}translate(t,e){return this.attr({translateX:t,translateY:e})}updateTransform(t="transform"){let{element:e,matrix:i,rotation:s=0,rotationOriginX:n,rotationOriginY:r,scaleX:o,scaleY:a,translateX:l=0,translateY:c=0}=this,h=["translate("+l+","+c+")"];x(i)&&h.push("matrix("+i.join(",")+")"),s&&(h.push("rotate("+s+" "+M(n,e.getAttribute("x"),0)+" "+M(r,e.getAttribute("y")||0)+")"),"SPAN"===this.text?.element.tagName&&this.text.attr({rotation:s,rotationOriginX:(n||0)-this.padding,rotationOriginY:(r||0)-this.padding})),(x(o)||x(a))&&h.push("scale("+M(o,1)+" "+M(a,1)+")"),h.length&&!(this.text||this).textPath&&e.setAttribute(t,h.join(" "))}visibilitySetter(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t}xGetter(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)}zIndexSetter(t,e){let i,s,n,r,o,a=this.renderer,l=this.parentGroup,c=(l||a).element||a.box,h=this.element,d=c===a.box,u=!1,p=this.added;if(x(t)?(h.setAttribute("data-z-index",t),t=+t,this[e]===t&&(p=!1)):x(this[e])&&h.removeAttribute("data-z-index"),this[e]=t,p){for((t=this.zIndex)&&l&&(l.handleZ=!0),o=(i=c.childNodes).length-1;o>=0&&!u;o--)r=!x(n=(s=i[o]).getAttribute("data-z-index")),s!==h&&(t<0&&r&&!d&&!o?(c.insertBefore(h,i[o]),u=!0):(T(n)<=t||r&&(!x(t)||t>=0))&&(c.insertBefore(h,i[o+1]),u=!0));u||(c.insertBefore(h,i[d?3:0]),u=!0)}return u}}return I.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],I.prototype.strokeSetter=I.prototype.fillSetter,I.prototype.yGetter=I.prototype.xGetter,I.prototype.matrixSetter=I.prototype.rotationOriginXSetter=I.prototype.rotationOriginYSetter=I.prototype.rotationSetter=I.prototype.scaleXSetter=I.prototype.scaleYSetter=I.prototype.translateXSetter=I.prototype.translateYSetter=I.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},I}),i(e,"Core/Renderer/SVG/SVGLabel.js",[e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(t,e){let{defined:i,extend:s,isNumber:n,merge:r,pick:o,removeEvent:a}=e;class l extends t{constructor(t,e,i,s,n,r,o,a,c,h){let d;super(t,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=e,this.x=i,this.y=s,this.anchorX=r,this.anchorY=o,this.baseline=c,this.className=h,this.addClass("button"===h?"highcharts-no-tooltip":"highcharts-label"),h&&this.addClass("highcharts-"+h),this.text=t.text(void 0,0,0,a).attr({zIndex:1}),"string"==typeof n&&((d=/^url\((.*?)\)$/.test(n))||this.renderer.symbols[n])&&(this.symbolKey=n),this.bBox=l.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=t.styledMode||d,this.deferredAttr={},this.alignFactor=0}alignSetter(t){let e={left:0,center:.5,right:1}[t];e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&n(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)}boxAttr(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e}css(e){if(e){let t={};e=r(e),l.textProps.forEach(i=>{void 0!==e[i]&&(t[i]=e[i],delete e[i])}),this.text.css(t),"fontSize"in t||"fontWeight"in t?this.updateTextPadding():("width"in t||"textOverflow"in t)&&this.updateBoxSize()}return t.prototype.css.call(this,e)}destroy(){a(this.element,"mouseenter"),a(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)}fillSetter(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)}getBBox(t,e){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();let{padding:i,height:s=0,translateX:n=0,translateY:r=0,width:a=0}=this,l=o(this.paddingLeft,i),c=e??(this.rotation||0),h={width:a,height:s,x:n+this.bBox.x-l,y:r+this.bBox.y-i+this.baselineOffset};return c&&(h=this.getRotatedBox(h,c)),h}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(t){this.heightSetting=t,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:o(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&i(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(t,e){n(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0}rSetter(t,e){this.boxAttr(e,t)}strokeSetter(t,e){this.stroke=t,this.boxAttr(e,t)}"stroke-widthSetter"(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)}"text-alignSetter"(t){this.textAlign=t}textSetter(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let t,e=this.text,r={},o=this.padding,a=this.bBox=n(this.widthSetting)&&n(this.heightSetting)&&!this.textAlign||!i(e.textStr)?l.emptyBBox:e.getBBox(void 0,0);this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*o;let c=this.renderer.fontMetrics(e);if(this.baselineOffset=o+Math.min((this.text.firstLineMetrics||c).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-c.h)/2),this.needsBox&&!e.textPath){if(!this.box){let t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();t.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this)}t=this.getCrispAdjust(),r.x=t,r.y=(this.baseline?-this.baselineOffset:0)+t,r.width=Math.round(this.width),r.height=Math.round(this.height),this.box.attr(s(r,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let t=this.text;if(!t.textPath){this.updateBoxSize();let e=this.baseline?0:this.baselineOffset,s=o(this.paddingLeft,this.padding);i(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(s+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(s!==t.x||e!==t.y)&&(t.attr("x",s),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=s,t.y=e}}widthSetter(t){this.widthSetting=n(t)?t:void 0,this.doUpdate=!0}getPaddedWidth(){let t=this.padding,e=o(this.paddingLeft,t),i=o(this.paddingRight,t);return(this.widthSetting||this.bBox.width||0)+e+i}xSetter(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)}ySetter(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)}}return l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],l}),i(e,"Core/Renderer/SVG/Symbols.js",[e["Core/Utilities.js"]],function(t){let{defined:e,isNumber:i,pick:s}=t;function n(t,i,n,r,o){let a=[];if(o){let l=o.start||0,c=s(o.r,n),h=s(o.r,r||n),d=2e-4/(o.borderRadius?1:Math.max(c,1)),u=Math.abs((o.end||0)-l-2*Math.PI)<d,p=(o.end||0)-(u?d:0),f=o.innerR,g=s(o.open,u),m=Math.cos(l),x=Math.sin(l),b=Math.cos(p),y=Math.sin(p),v=s(o.longArc,p-l-Math.PI<d?0:1),w=["A",c,h,0,v,s(o.clockwise,1),t+c*b,i+h*y];w.params={start:l,end:p,cx:t,cy:i},a.push(["M",t+c*m,i+h*x],w),e(f)&&((w=["A",f,f,0,v,e(o.clockwise)?1-o.clockwise:0,t+f*m,i+f*x]).params={start:p,end:l,cx:t,cy:i},a.push(g?["M",t+f*b,i+f*y]:["L",t+f*b,i+f*y],w)),g||a.push(["Z"])}return a}
2function r(t,e,i,s,n){return n&&n.r?o(t,e,i,s,n):[["M",t,e],["L",t+i,e],["L",t+i,e+s],["L",t,e+s],["Z"]]}function o(t,e,i,s,n){let r=n?.r||0;return[["M",t+r,e],["L",t+i-r,e],["A",r,r,0,0,1,t+i,e+r],["L",t+i,e+s-r],["A",r,r,0,0,1,t+i-r,e+s],["L",t+r,e+s],["A",r,r,0,0,1,t,e+s-r],["L",t,e+r],["A",r,r,0,0,1,t+r,e],["Z"]]}return{arc:n,callout:function(t,e,s,n,r){let a=Math.min(r&&r.r||0,s,n),l=a+6,c=r&&r.anchorX,h=r&&r.anchorY||0,d=o(t,e,s,n,{r:a});if(!i(c)||c<s&&c>0&&h<n&&h>0)return d;if(t+c>s-l)if(h>e+l&&h<e+n-l)d.splice(3,1,["L",t+s,h-6],["L",t+s+6,h],["L",t+s,h+6],["L",t+s,e+n-a]);else if(c<s){let i=h<e+l,r=i?e:e+n;d.splice(i?2:5,0,["L",c,h],["L",t+s-a,r])}else d.splice(3,1,["L",t+s,n/2],["L",c,h],["L",t+s,n/2],["L",t+s,e+n-a]);else if(t+c<l)if(h>e+l&&h<e+n-l)d.splice(7,1,["L",t,h+6],["L",t-6,h],["L",t,h-6],["L",t,e+a]);else if(c>0){let i=h<e+l,s=i?e:e+n;d.splice(i?1:6,0,["L",c,h],["L",t+a,s])}else d.splice(7,1,["L",t,n/2],["L",c,h],["L",t,n/2],["L",t,e+a]);else h>n&&c<s-l?d.splice(5,1,["L",c+6,e+n],["L",c,e+n+6],["L",c-6,e+n],["L",t+a,e+n]):h<0&&c>l&&d.splice(1,1,["L",c-6,e],["L",c,e-6],["L",c+6,e],["L",s-a,e]);return d},circle:function(t,e,i,s){return n(t+i/2,e+s/2,i/2,s/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s/2],["L",t+i/2,e+s],["L",t,e+s/2],["Z"]]},rect:r,roundedRect:o,square:r,triangle:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s],["L",t,e+s],["Z"]]},"triangle-down":function(t,e,i,s){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+s],["Z"]]}}}),i(e,"Core/Renderer/SVG/TextBuilder.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e,i){let{doc:s,SVG_NS:n,win:r}=e,{attr:o,extend:a,fireEvent:l,isString:c,objectEach:h,pick:d}=i;return class{constructor(t){let e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=!(!e||"ellipsis"!==e.textOverflow),this.noWrap=!(!e||"nowrap"!==e.whiteSpace)}buildSVG(){let e=this.svgElement,i=e.element,n=e.renderer,r=d(e.textStr,"").toString(),o=-1!==r.indexOf("<"),a=i.childNodes,l=!e.added&&n.box,h=[r,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,e.getStyle("font-size"),this.width].join(",");if(h!==e.textCache){e.textCache=h,delete e.actualWidth;for(let t=a.length;t--;)i.removeChild(a[t]);if(o||this.ellipsis||this.width||e.textPath||-1!==r.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(r))){if(""!==r){l&&l.appendChild(i);let s=new t(r);this.modifyTree(s.nodes),s.addToDOM(i),this.modifyDOM(),this.ellipsis&&-1!==(i.textContent||"").indexOf("…")&&e.attr("title",this.unescapeEntities(e.textStr||"",["&lt;","&gt;"])),l&&l.removeChild(i)}}else i.appendChild(s.createTextNode(this.unescapeEntities(r)));c(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}}modifyDOM(){let t,e=this.svgElement,i=o(e.element,"x");for(e.firstLineMetrics=void 0;(t=e.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)e.element.removeChild(t);[].forEach.call(e.element.querySelectorAll("tspan.highcharts-br"),(t,s)=>{t.nextSibling&&t.previousSibling&&(0===s&&1===t.previousSibling.nodeType&&(e.firstLineMetrics=e.renderer.fontMetrics(t.previousSibling)),o(t,{dy:this.getLineHeight(t.nextSibling),x:i}))});let a=this.width||0;if(!a)return;let l=(t,r)=>{let l=t.textContent||"",c=l.replace(/([^\^])-/g,"$1- ").split(" "),h=!this.noWrap&&(c.length>1||e.element.childNodes.length>1),d=this.getLineHeight(r),u=0,p=e.actualWidth;if(this.ellipsis)l&&this.truncate(t,l,void 0,0,Math.max(0,a-.8*d),(t,e)=>t.substring(0,e)+"…");else if(h){let l=[],h=[];for(;r.firstChild&&r.firstChild!==t;)h.push(r.firstChild),r.removeChild(r.firstChild);for(;c.length;)c.length&&!this.noWrap&&u>0&&(l.push(t.textContent||""),t.textContent=c.join(" ").replace(/- /g,"-")),this.truncate(t,void 0,c,0===u&&p||0,a,(t,e)=>c.slice(0,e).join(" ").replace(/- /g,"-")),p=e.actualWidth,u++;h.forEach(e=>{r.insertBefore(e,t)}),l.forEach(e=>{r.insertBefore(s.createTextNode(e),t);let a=s.createElementNS(n,"tspan");a.textContent="​",o(a,{dy:d,x:i}),r.insertBefore(a,t)})}},c=t=>
vendor: 4,657 bytes, line 2
2{[].slice.call(t.childNodes).forEach(i=>{i.nodeType===r.Node.TEXT_NODE?l(i,t):(-1!==i.className.baseVal.indexOf("highcharts-br")&&(e.actualWidth=0),c(i))})};c(e.element)}getLineHeight(t){let e=t.nodeType===r.Node.TEXT_NODE?t.parentElement:t;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e||this.svgElement.element).h}modifyTree(t){let e=(i,s)=>{let{attributes:n={},children:r,style:o={},tagName:l}=i,c=this.renderer.styledMode;if("b"===l||"strong"===l?c?n.class="highcharts-strong":o.fontWeight="bold":("i"===l||"em"===l)&&(c?n.class="highcharts-emphasized":o.fontStyle="italic"),o&&o.color&&(o.fill=o.color),"br"===l){n.class="highcharts-br",i.textContent="​";let e=t[s+1];e&&e.textContent&&(e.textContent=e.textContent.replace(/^ +/gm,""))}else"a"===l&&r&&r.some(t=>"#text"===t.tagName)&&(i.children=[{children:r,tagName:"tspan"}]);"#text"!==l&&"a"!==l&&(i.tagName="tspan"),a(i,{attributes:n,style:o}),r&&r.filter(t=>"#text"!==t.tagName).forEach(e)};t.forEach(e),l(this.svgElement,"afterModifyTree",{nodes:t})}truncate(t,e,i,s,n,r){let o,a,l=this.svgElement,{rotation:c}=l,h=[],d=i?1:0,u=(e||i||"").length,p=u,f=function(e,n){let r=n||e,o=t.parentNode;if(o&&void 0===h[r]&&o.getSubStringLength)try{h[r]=s+o.getSubStringLength(0,i?r+1:r)}catch(t){}return h[r]};if(l.rotation=0,s+(a=f(t.textContent.length))>n){for(;d<=u;)p=Math.ceil((d+u)/2),i&&(o=r(i,p)),a=f(p,o&&o.length-1),d===u?d=u+1:a>n?u=p-1:d=p;0===u?t.textContent="":e&&u===e.length-1||(t.textContent=o||r(e||i,p))}i&&i.splice(0,p),l.actualWidth=a,l.rotation=c}unescapeEntities(t,e){return h(this.renderer.escapes,function(i,s){e&&-1!==e.indexOf(i)||(t=t.toString().replace(RegExp(i,"g"),s))}),t}}}),i(e,"Core/Renderer/SVG/SVGRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Defaults.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGLabel.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Renderer/SVG/TextBuilder.js"],e["Core/Utilities.js"]],function(t,e,i,s,n,r,o,a,l,c){let h,{defaultOptions:d}=e,{charts:u,deg2rad:p,doc:f,isFirefox:g,isMS:m,isWebKit:x,noop:b,SVG_NS:y,symbolSizes:v,win:w}=s,{addEvent:S,attr:k,createElement:C,crisp:A,css:E,defined:M,destroyObjectProperties:T,extend:P,isArray:O,isNumber:L,isObject:_,isString:I,merge:D,pick:R,pInt:N,replaceNested:B,uniqueKey:j}=c;class F{constructor(t,e,i,s,n,r,o){let a,l,c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),h=c.element;o||c.css(this.getStyle(s||{})),t.appendChild(h),k(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&k(h,"xmlns",this.SVG_NS),this.box=h,this.boxWrapper=c,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(f.createTextNode("Created with Highcharts 11.4.7")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=n,this.styledMode=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=c.getStyle("font-size"),this.setSize(e,i,!1),g&&t.getBoundingClientRect&&((a=function(){E(t,{left:0,top:0}),l=t.getBoundingClientRect(),E(t,{left:Math.ceil(l.left)-l.left+"px",top:Math.ceil(l.top)-l.top+"px"})})(),this.unSubPixelFix=S(w,"resize",a))}definition(e){return new t([e]).addToDOM(this.defs.element)}getReferenceURL(){if((g||x)&&f.getElementsByTagName("base").length){if(!M(h)){let e=j(),i=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${e})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(f.body);E(i,{position:"fixed",top:0,left:0,zIndex:9e5});let s=f.elementFromPoint(6,6);h="hitme"===(s&&s.id),f.body.removeChild(i)}if(h)return B(w.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(t){return this.style=P({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},t),this.style}setStyle(t){this.boxWrapper.css(this.getStyle(t))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),T(this.gradients||{}),this.gradients=null,this.defs=t.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(t){return new this.Element(this,t)}getRadialAttr(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}}shadowDefinition(t){let e=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(t).map(e=>`${e}-${t[e]}
2`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),i=D({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},t);return this.defs.element.querySelector(`#${e}`)||this.definition({tagName:"filter",attributes:{id:e,filterUnits:i.filterUnits},children:this.getShadowFilterContent(i)}),e}getShadowFilterContent(t){return[{tagName:"feDropShadow",attributes:{dx:t.offsetX,dy:t.offsetY,"flood-color":t.color,"flood-opacity":Math.min(5*t.opacity,1),stdDeviation:t.width/2}}]}buildText(t){new l(t).buildSVG()}getContrast(t){let e=i.parse(t).rgba.map(t=>{let e=t/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),s=.2126*e[0]+.7152*e[1]+.0722*e[2];return 1.05/(s+.05)>(s+.05)/.05?"#FFFFFF":"#000000"}button(e,i,s,n,r={},o,a,l,c,h){let u=this.label(e,i,s,c,void 0,void 0,h,void 0,"button"),p=this.styledMode,f=arguments,g=0;r=D(d.global.buttonTheme,r),p&&(delete r.fill,delete r.stroke,delete r["stroke-width"]);let x=r.states||{},b=r.style||{};delete r.states,delete r.style;let y=[t.filterUserAttributes(r)],v=[b];return p||["hover","select","disabled"].forEach((e,i)=>{y.push(D(y[0],t.filterUserAttributes(f[i+5]||x[e]||{}))),v.push(y[i+1].style),delete y[i+1].style}),S(u.element,m?"mouseover":"mouseenter",function(){3!==g&&u.setState(1)}),S(u.element,m?"mouseout":"mouseleave",function(){3!==g&&u.setState(g)}),u.setState=(t=0)=>{if(1!==t&&(u.state=g=t),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t]),!p){u.attr(y[t]);let e=v[t];_(e)&&u.css(e)}},u.attr(y[0]),!p&&(u.css(P({cursor:"default"},b)),h&&u.text.css({pointerEvents:"none"})),u.on("touchstart",t=>t.stopPropagation()).on("click",function(t){3!==g&&n.call(u,t)})}crispLine(t,e){let[i,s]=t;return M(i[1])&&i[1]===s[1]&&(i[1]=s[1]=A(i[1],e)),M(i[2])&&i[2]===s[2]&&(i[2]=s[2]=A(i[2],e)),t}path(t){let e=this.styledMode?{}:{fill:"none"};return O(t)?e.d=t:_(t)&&P(e,t),this.createElement("path").attr(e)}circle(t,e,i){let s=_(t)?t:void 0===t?{}:{x:t,y:e,r:i},n=this.createElement("circle");return n.xSetter=n.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},n.attr(s)}arc(t,e,i,s,n,r){let o;_(t)?(e=(o=t).y,i=o.r,s=o.innerR,n=o.start,r=o.end,t=o.x):o={innerR:s,start:n,end:r};let a=this.symbol("arc",t,e,i,i,o);return a.r=i,a}rect(t,e,i,s,n,r){let o=_(t)?t:void 0===t?{}:{x:t,y:e,r:n,width:Math.max(i||0,0),height:Math.max(s||0,0)},a=this.createElement("rect");return this.styledMode||(void 0!==r&&(o["stroke-width"]=r,P(o,a.crisp(o))),o.fill="none"),a.rSetter=function(t,e,i){a.r=t,k(i,{rx:t,ry:t})},a.rGetter=function(){return a.r||0},a.attr(o)}roundedRect(t){return this.symbol("roundedRect").attr(t)}setSize(t,e,i){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:R(i,!0)?void 0:0}),this.alignElements()}g(t){let e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e}image(t,e,i,s,n,r){let o={preserveAspectRatio:"none"};L(e)&&(o.x=e),L(i)&&(o.y=i),L(s)&&(o.width=s),L(n)&&(o.height=n);let a=this.createElement("image").attr(o),l=function(e){a.attr({href:t}),r.call(a,e)};if(r){a.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let e=new w.Image;S(e,"load",l),e.src=t,e.complete&&l({})}else a.attr({href:t});return a}symbol(t,e,i,s,n,r){let o,a,l,c,h=this,d=/^url\((.*?)\)$/,p=d.test(t),g=!p&&(this.symbols[t]?t:"circle"),m=g&&this.symbols[g];if(m)"number"==typeof e&&(a=m.call(this.symbols,e||0,i||0,s||0,n||0,r)),o=this.path(a),h.styledMode||o.attr("fill","none"),P(o,{symbolName:g||void 0,x:e,y:i,width:s,height:n}),r&&P(o,r);else if(p){l=t.match(d)[1];let s=o=this.image(l);s.imgwidth=R(r&&r.width,v[l]&&v[l].width),s.imgheight=R(r&&r.height,v[l]&&v[l].height),c=t=>t.attr({width:t.width,height:t.height}),["width","height"].forEach(t=>{s[`${t}Setter`]=function(t,e){this[e]=t;let{alignByTranslate:i,element:s,width:n,height:o,imgwidth:a,imgheight:l}=this,c="width"===e?a:l,h=1;r&&"within"===r.backgroundSize&&n&&o&&a&&l?(h=Math.min(n/a,o/l),k(s,{width:Math.round(a*h),height:Math.round(l*h)}
2)):s&&c&&s.setAttribute(e,c),!i&&a&&l&&this.translate(((n||0)-a*h)/2,((o||0)-l*h)/2)}}),M(e)&&s.attr({x:e,y:i}),s.isImg=!0,M(s.imgwidth)&&M(s.imgheight)?c(s):(s.attr({width:0,height:0}),C("img",{onload:function(){let t=u[h.chartIndex];0===this.width&&(E(this,{position:"absolute",top:"-999em"}),f.body.appendChild(this)),v[l]={width:this.width,height:this.height},s.imgwidth=this.width,s.imgheight=this.height,s.element&&c(s),this.parentNode&&this.parentNode.removeChild(this),h.imgCount--,h.imgCount||!t||t.hasLoaded||t.onload()},src:l}),this.imgCount++)}return o}clipRect(t,e,i,s){return this.rect(t,e,i,s,0)}text(t,e,i,s){let n={};if(s&&(this.allowHTML||!this.forExport))return this.html(t,e,i);n.x=Math.round(e||0),i&&(n.y=Math.round(i)),M(t)&&(n.text=t);let r=this.createElement("text").attr(n);return s&&(!this.forExport||this.allowHTML)||(r.xSetter=function(t,e,i){let s=i.getElementsByTagName("tspan"),n=i.getAttribute(e);for(let i,r=0;r<s.length;r++)(i=s[r]).getAttribute(e)===n&&i.setAttribute(e,t);i.setAttribute(e,t)}),r}fontMetrics(t){let e=N(r.prototype.getStyle.call(t,"font-size")||0),i=e<24?e+3:Math.round(1.2*e);return{h:i,b:Math.round(.8*i),f:e}}rotCorr(t,e,i){let s=t;return e&&i&&(s=Math.max(s*Math.cos(e*p),4)),{x:-t/3*Math.sin(e*p),y:s}}pathToSegments(t){let e=[],i=[],s={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let n=0;n<t.length;n++)I(i[0])&&L(t[n])&&i.length===s[i[0].toUpperCase()]&&t.splice(n,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[n]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[n]);return e.push(i.slice(0)),e}label(t,e,i,s,n,r,a,l,c){return new o(this,t,e,i,s,n,r,a,l,c)}alignElements(){this.alignedObjects.forEach(t=>t.align())}}return P(F.prototype,{Element:r,SVG_NS:y,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:a,draw:b}),n.registerRendererType("svg",F,!0),F}),i(e,"Core/Renderer/HTML/HTMLElement.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Globals.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(t,e,i,s){let{composed:n}=e,{attr:r,css:o,createElement:a,defined:l,extend:c,pInt:h,pushUnique:d}=s;function u(t,e,s){let n=this.div?.style||s.style;i.prototype[`${e}Setter`].call(this,t,e,s),n&&(n[e]=t)}let p=(t,e)=>{if(!t.div){let s=r(t.element,"class"),n=t.css,o=a("div",s?{className:s}:void 0,{position:"absolute",left:`${t.translateX||0}px`,top:`${t.translateY||0}px`,...t.styles,display:t.display,opacity:t.opacity,visibility:t.visibility},t.parentGroup?.div||e);t.classSetter=(t,e,i)=>{i.setAttribute("class",t),o.className=t},t.translateXSetter=t.translateYSetter=(e,i)=>{t[i]=e,o.style["translateX"===i?"left":"top"]=`${e}px`,t.doTransform=!0},t.opacitySetter=t.visibilitySetter=u,t.css=e=>(n.call(t,e),e.cursor&&(o.style.cursor=e.cursor),e.pointerEvents&&(o.style.pointerEvents=e.pointerEvents),t),t.on=function(){return i.prototype.on.apply({element:o,onEvents:t.onEvents},arguments),t},t.div=o}return t.div};class f extends i{static compose(t){d(n,this.compose)&&(t.prototype.html=function(t,e,i){return new f(this,"span").attr({text:t,x:Math.round(e),y:Math.round(i)})})}constructor(t,e){super(t,e),this.css({position:"absolute",...t.styledMode?{}:{fontFamily:t.style.fontFamily,fontSize:t.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(t,e,i){this.xCorr=-t*i,this.yCorr=-e}css(t){let e,{element:i}=this,s="SPAN"===i.tagName&&t&&"width"in t,n=s&&t.width;return s&&(delete t.width,this.textWidth=h(n)||void 0,e=!0),"ellipsis"===t?.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),c(this.styles,t),o(i,t),e&&this.updateTransform(),this}htmlGetBBox(){let{element:t}=this;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}updateTransform(){if(!this.added)return void(this.alignOnAdd=!0);let{element:t,renderer:e,rotation:i,rotationOriginX:s,rotationOriginY:n,styles:r,textAlign:a="left",textWidth:c,translateX:h=0,translateY:d=0,x:u=0,y:p=0}=this,f={left:0,center:.5,right:1}[a],g=r.whiteSpace;if(o(t,{marginLeft:`${h}px`,marginTop:`${d}px`}),"SPAN"===t.tagName){let r,h=[i,a,t.innerHTML,c,this.textAlign].join(","),d=-1*this.parentGroup?.padding||0,m=!1;if(c!==this.oldTextWidth){let e=this.textPxLength?this.textPxLength:(o(t,{width:"",whiteSpace:g||"nowrap"}),t.offsetWidth),s=c||0;(s>this.oldTextWidth||e>s)&&(/[ \-]/.test(t.textContent||t.innerText)||"ellipsis"===t.style.textOverflow)&&(o(t,{width:e>s||i?c+"px":"auto",display:"block",whiteSpace:g||"normal"}),this.oldTextWidth=c,m=!0)}this.hasBoxWidthChanged=m,h!==this.cTT&&(r=e.fontMetrics(t).b,l(i)&&(i!==(this.oldRotation||0)||a!==this.oldAlign)&&this.setSpanRotation(i,d,d),this.get
2SpanCorrection(!l(i)&&this.textPxLength||t.offsetWidth,r,f));let{xCorr:x=0,yCorr:b=0}=this;o(t,{left:`${u+x}px`,top:`${p+b}px`,transformOrigin:`${(s??u)-x-u-d}px ${(n??p)-b-p-d}px`}),this.cTT=h,this.oldRotation=i,this.oldAlign=a}}setSpanRotation(t,e,i){o(this.element,{transform:`rotate(${t}deg)`,transformOrigin:`${e}% ${i}px`})}add(t){let e,i=this.renderer.box.parentNode,s=[];if(this.parentGroup=t,t&&!(e=t.div)){let n=t;for(;n;)s.push(n),n=n.parentGroup;for(let t of s.reverse())e=p(t,i)}return(e||i).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,e??""),this.textStr=e,this.doTransform=!0)}alignSetter(t){this.alignValue=this.textAlign=t,this.doTransform=!0}xSetter(t,e){this[e]=t,this.doTransform=!0}}let g=f.prototype;return g.visibilitySetter=g.opacitySetter=u,g.ySetter=g.rotationSetter=g.rotationOriginXSetter=g.rotationOriginYSetter=g.xSetter,f}),i(e,"Core/Axis/AxisDefaults.js",[],function(){var t,e;return(e=t||(t={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},e.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:t}=this.axis.chart;return t(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t}),i(e,"Core/Foundation.js",[e["Core/Utilities.js"]],function(t){var e;let{addEvent:i,isFunction:s,objectEach:n,removeEvent:r}=t;return(e||(e={})).registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},n(e.events,function(e,n){t.eventOptions[n]!==e&&(t.eventOptions[n]&&(r(t,n,t.eventOptions[n]),delete t.eventOptions[n]),s(e)&&(t.eventOptions[n]=e,i(t,n,e,{order:0})))})},e}),i(e,"Core/Axis/Tick.js",[e["Core/Templating.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e,i){let{deg2rad:s}=e,{clamp:n,correctFloat:r,defined:o,destroyObjectProperties:a,extend:l,fireEvent:c,isNumber:h,merge:d,objectEach:u,pick:p}=i;return class{constructor(t,e,i,s,n){this.isNew=!0,this.isNewLabel=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=n||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,c(this,"init"),i||s||this.addLabel()}addLabel(){let e,i,s,n=this,a=n.axis,d=a.options,u=a.chart,f=a.categories,g=a.logarithmic,m=a.names,x=n.pos,b=p(n.options&&n.options.labels,d.labels),y=a.tickPositions,v=x===y[0],w=x===y[y.length-1],S=(!b.step||1===b.step)&&1===a.tickInterval,k=y.info,C=n.label,A=this.parameters.category||(f?p(f[x],m[x],x):x);g&&h(A)&&(A=r(g.lin2log(A))),a.dateTime&&(k?e=(i=u.time.resolveDTLFormat(d.dateTimeLabelFormats[!d.grid&&k.higherRanks[x]||k.unitName])).main:h(A)&&(e=a.dateTime.getXDateFormat(A,d.dateTimeLabelFormats||{}))),n.isFirst=v,n.isLast=w;let E={axis:a,chart:u,dateTimeLabelFormat:e,isFirst:v,isLast:w,pos:x,tick:n,tickPositionInfo:k,value:A};c(this,"labelFormat",E);let M=e=>b.formatter?b.formatter.call(e,e):b.format?(e.text=a.defaultLabelFormatter.call(e),t.format(b.format,e,u)):a.defaultLabelFormatter.call(e),T=M.call(E,E),P=i&&i.list;n.shortenLabel=P?function(){for(s=0;s<P.length;s++)if(l(E,{dateTimeLabelFormat:P[s]}),C.attr({text:M.call(E,E)}),C.getBBox().width<a.getSlotWidth(n)-2*(b.padding||0))return;C.attr({text:""})}:void 0,S&&a._addedPlotLB&&n.moveLabel(T,b),o(C)||n.movedLabel?C&&C.textStr!==T&&!S&&(!C.textWidth||b.style.width||C.styles.width||C.css({width:null}),C.attr({text:T}),C.textPxLength=C.getBBox().width):(n.label=C=n.createLabel(T,b),n.rotation=0)}createLabel(t,e,i){let s=this.axis,n=s.chart,r=o(t)&&e.enabled?n.renderer.text(t,i?.x,i?.y,e.useHTML).add(s.labelGroup):void 0;return r&&(n.styledMode||r.css(d(e.style)),r.textPxLength=r.getBBox().width),r}destroy(){a(this,this.axis)}
2getPosition(t,e,i,s){let o=this.axis,a=o.chart,l=s&&a.oldChartHeight||a.chartHeight,h={x:t?r(o.translate(e+i,void 0,void 0,s)+o.transB):o.left+o.offset+(o.opposite?(s&&a.oldChartWidth||a.chartWidth)-o.right-o.left:0),y:t?l-o.bottom+o.offset-(o.opposite?o.height:0):r(l-o.translate(e+i,void 0,void 0,s)-o.transB)};return h.y=n(h.y,-1e5,1e5),c(this,"afterGetPosition",{pos:h}),h}getLabelPosition(t,e,i,n,r,a,l,h){let d,u,f=this.axis,g=f.transA,m=f.isLinked&&f.linkedParent?f.linkedParent.reversed:f.reversed,x=f.staggerLines,b=f.tickRotCorr||{x:0,y:0},y=n||f.reserveSpaceDefault?0:-f.labelOffset*("center"===f.labelAlign?.5:1),v=r.distance,w={};return d=0===f.side?i.rotation?-v:-i.getBBox().height:2===f.side?b.y+v:Math.cos(i.rotation*s)*(b.y-i.getBBox(!1,0).height/2),o(r.y)&&(d=0===f.side&&f.horiz?r.y+d:r.y),t=t+p(r.x,[0,1,0,-1][f.side]*v)+y+b.x-(a&&n?a*g*(m?-1:1):0),e=e+d-(a&&!n?a*g*(m?1:-1):0),x&&(u=l/(h||1)%x,f.opposite&&(u=x-u-1),e+=u*(f.labelOffset/x)),w.x=t,w.y=Math.round(e),c(this,"afterGetLabelPosition",{pos:w,tickmarkOffset:a,index:l}),w}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(t,e,i,s,n=!1,r){return r.crispLine([["M",t,e],["L",t+(n?0:-i),e+(n?i:0)]],s)}handleOverflow(t){let e,i,n,r=this.axis,o=r.options.labels,a=t.x,l=r.chart.chartWidth,c=r.chart.spacing,h=p(r.labelLeft,Math.min(r.pos,c[3])),d=p(r.labelRight,Math.max(r.isRadial?0:r.pos+r.len,l-c[1])),u=this.label,f=this.rotation,g={left:0,center:.5,right:1}[r.labelAlign||u.attr("align")],m=u.getBBox().width,x=r.getSlotWidth(this),b={},y=x,v=1;f||"justify"!==o.overflow?f<0&&a-g*m<h?n=Math.round(a/Math.cos(f*s)-h):f>0&&a+g*m>d&&(n=Math.round((l-a)/Math.cos(f*s))):(e=a-g*m,i=a+(1-g)*m,e<h?y=t.x+y*(1-g)-h:i>d&&(y=d-t.x+y*g,v=-1),(y=Math.min(x,y))<x&&"center"===r.labelAlign&&(t.x+=v*(x-y-g*(x-Math.min(m,y)))),(m>y||r.autoRotation&&(u.styles||{}).width)&&(n=y)),n&&(this.shortenLabel?this.shortenLabel():(b.width=Math.floor(n)+"px",(o.style||{}).textOverflow||(b.textOverflow="ellipsis"),u.css(b)))}moveLabel(t,e){let i,s=this,n=s.label,r=s.axis,o=!1;n&&n.textStr===t?(s.movedLabel=n,o=!0,delete s.label):u(r.ticks,function(e){o||e.isNew||e===s||!e.label||e.label.textStr!==t||(s.movedLabel=e.label,o=!0,e.labelPos=s.movedLabel.xy,delete e.label)}),!o&&(s.labelPos||n)&&(i=s.labelPos||n.xy,s.movedLabel=s.createLabel(t,e,i),s.movedLabel&&s.movedLabel.attr({opacity:0}))}render(t,e,i){let s=this.axis,n=s.horiz,o=this.pos,a=p(this.tickmarkOffset,s.tickmarkOffset),l=this.getPosition(n,o,a,e),h=l.x,d=l.y,u=s.pos,f=u+s.len,g=n?h:d;!s.chart.polar&&this.isNew&&(r(g)<u||g>f)&&(i=0);let m=p(i,this.label&&this.label.newOpacity,1);i=p(i,1),this.isActive=!0,this.renderGridLine(e,i),this.renderMark(l,i),this.renderLabel(l,e,m,t),this.isNew=!1,c(this,"afterRender")}renderGridLine(t,e){let i,s=this.axis,n=s.options,r={},o=this.pos,a=this.type,l=p(this.tickmarkOffset,s.tickmarkOffset),c=s.chart.renderer,h=this.gridLine,d=n.gridLineWidth,u=n.gridLineColor,f=n.gridLineDashStyle;"minor"===this.type&&(d=n.minorGridLineWidth,u=n.minorGridLineColor,f=n.minorGridLineDashStyle),h||(s.chart.styledMode||(r.stroke=u,r["stroke-width"]=d||0,r.dashstyle=f),a||(r.zIndex=1),t&&(e=0),this.gridLine=h=c.path().attr(r).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(s.gridGroup)),h&&(i=s.getPlotLinePath({value:o+l,lineWidth:h.strokeWidth(),force:"pass",old:t,acrossPanes:!1}))&&h[t||this.isNew?"attr":"animate"]({d:i,opacity:e})}renderMark(t,e){let i=this.axis,s=i.options,n=i.chart.renderer,r=this.type,o=i.tickSize(r?r+"Tick":"tick"),a=t.x,l=t.y,c=p(s["minor"!==r?"tickWidth":"minorTickWidth"],!r&&i.isXAxis?1:0),h=s["minor"!==r?"tickColor":"minorTickColor"],d=this.mark,u=!d;o&&(i.opposite&&(o[0]=-o[0]),d||(this.mark=d=n.path().addClass("highcharts-"+(r?r+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||d.attr({stroke:h,"stroke-width":c})),d[u?"attr":"animate"]({d:this.getMarkPath(a,l,o[0],d.strokeWidth(),i.horiz,n),opacity:e}))}renderLabel(t,e,i,s){let n=this.axis,r=n.horiz,o=n.options,a=this.label,l=o.labels,c=l.step,d=p(this.tickmarkOffset,n.tickmarkOffset),u=t.x,f=t.y,g=!0;a&&h(u)&&(a.xy=t=this.getLabelPosition(u,f,a,r,l,d,s,c),this.isFirst&&!this.isLast&&!o.showFirstLabel||this.isLast&&!this.isFirst&&!o.showLastLabel?g=!1:!r||l.step||l.rotation||e||0===i||this.handleOverflow(t),c&&s%c&&(g=!1),g&&h(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let t=this.label,e=this.axis;t&&!this.isNew&&(t.animate({opacity:0}
2,void 0,t.destroy),delete this.label),e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),i(e,"Core/Axis/Axis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/AxisDefaults.js"],e["Core/Color/Color.js"],e["Core/Defaults.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Axis/Tick.js"],e["Core/Utilities.js"]],function(t,e,i,s,n,r,o,a){let{animObject:l}=t,{xAxis:c,yAxis:h}=e,{defaultOptions:d}=s,{registerEventOptions:u}=n,{deg2rad:p}=r,{arrayMax:f,arrayMin:g,clamp:m,correctFloat:x,defined:b,destroyObjectProperties:y,erase:v,error:w,extend:S,fireEvent:k,getClosestDistance:C,insertItem:A,isArray:E,isNumber:M,isString:T,merge:P,normalizeTickInterval:O,objectEach:L,pick:_,relativeLength:I,removeEvent:D,splat:R,syncTimeout:N}=a,B=(t,e)=>O(e,void 0,void 0,_(t.options.allowDecimals,e<.5||void 0!==t.tickAmount),!!t.tickAmount);S(d,{xAxis:c,yAxis:P(c,h)});class j{constructor(t,e,i){this.init(t,e,i)}init(t,e,i=this.coll){let s="xAxis"===i,n=this.isZAxis||(t.inverted?!s:s);this.chart=t,this.horiz=n,this.isXAxis=s,this.coll=i,k(this,"init",{userOptions:e}),this.opposite=_(e.opposite,this.opposite),this.side=_(e.side,this.side,n?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);let r=this.options,o=r.labels,a=r.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=_(r.reversed,this.reversed),this.visible=r.visible,this.zoomEnabled=r.zoomEnabled,this.hasNames="category"===a||!0===r.categories,this.categories=E(r.categories)&&r.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=b(r.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=r.minRange||r.maxZoom,this.range=r.range,this.offset=r.offset||0,this.max=void 0,this.min=void 0;let l=_(r.crosshair,R(t.options.tooltip.crosshairs)[s?0:1]);this.crosshair=!0===l?{}:l,-1===t.axes.indexOf(this)&&(s?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),A(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&s&&!b(this.reversed)&&(this.reversed=!0),this.labelRotation=M(o.rotation)?o.rotation:void 0,u(this,r),k(this,"afterInit")}setOptions(t){let e=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=P(e,d[this.coll],t),k(this,"afterSetOptions",{userOptions:t})}defaultLabelFormatter(){let t,e,i=this.axis,{numberFormatter:s}=this.chart,n=M(this.value)?this.value:NaN,r=i.chart.time,o=i.categories,a=this.dateTimeLabelFormat,l=d.lang,c=l.numericSymbols,h=l.numericSymbolMagnitude||1e3,u=i.logarithmic?Math.abs(n):i.tickInterval,p=c&&c.length;if(o)e=`${this.value}`;else if(a)e=r.dateFormat(a,n);else if(p&&c&&u>=1e3)for(;p--&&void 0===e;)u>=(t=Math.pow(h,p+1))&&10*n%t==0&&null!==c[p]&&0!==n&&(e=s(n/t,-1)+c[p]);return void 0===e&&(e=Math.abs(n)>=1e4?s(n,-1):s(n,-1,void 0,"")),e}getSeriesExtremes(){let t,e=this;k(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=void 0,e.softThreshold=!e.isXAxis,e.series.forEach(i=>{if(i.reserveSpace()){let s,n,r,o=i.options,a=o.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=(a||0)&&(a=void 0),e.isXAxis)(s=i.xData)&&s.length&&(s=e.logarithmic?s.filter(t=>t>0):s,n=(t=i.getXExtremes(s)).min,r=t.max,M(n)||n instanceof Date||(s=s.filter(M),n=(t=i.getXExtremes(s)).min,r=t.max),s.length&&(e.dataMin=Math.min(_(e.dataMin,n),n),e.dataMax=Math.max(_(e.dataMax,r),r)));else{let t=i.applyExtremes();M(t.dataMin)&&(n=t.dataMin,e.dataMin=Math.min(_(e.dataMin,n),n)),M(t.dataMax)&&(r=t.dataMax,e.dataMax=Math.max(_(e.dataMax,r),r)),b(a)&&(e.threshold=a),(!o.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),k(this,"afterGetSeriesExtremes")}translate(t,e,i,s,n,r){let o=this.linkedParent||this,a=s&&o.old?o.old.min:o.min;if(!M(a))return NaN;let l=o.minPixelPadding,c=(o.isOrdinal||o.brokenAxis?.hasBreaks||o.logarithmic&&n)&&o.lin2val,h=1,d=0,u=s&&o.old?o.old.transA:o.transA,p=0;return u||(u=o.transA),i&&(h*=-1,d=o.len),o.reversed&&(h*=-1,d-=h*(o.sector||o.len)),e?(p=(t=t*h+d-l)/u+a,c&&(p=o.lin2val(p))):(c&&(t=o.val2lin(t)),p=h*(t-a)*u+d+h*l+(M(r)?u*r:0),o.isRadial||(p=x(p))),p}toPixels(t,e){return this.translate(t,!1,!this.horiz,void 0,!0)+(e?0:this.pos)}toValue(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(t){let e,i,s,n,r,o=this,a=o.chart,l=o.left,c=o.top,h=t.old,d=t.value,u=t.lineWidth,p=h&&a.oldChartHeight||a.chartHe
2ight,f=h&&a.oldChartWidth||a.chartWidth,g=o.transB,x=t.translatedValue,b=t.force;function y(t,e,i){return"pass"!==b&&(t<e||t>i)&&(b?t=m(t,e,i):r=!0),t}let v={value:d,lineWidth:u,old:h,force:b,acrossPanes:t.acrossPanes,translatedValue:x};return k(this,"getPlotLinePath",v,function(t){e=s=(x=m(x=_(x,o.translate(d,void 0,void 0,h)),-1e5,1e5))+g,i=n=p-x-g,M(x)?o.horiz?(i=c,n=p-o.bottom+(o.options.isInternal?0:a.scrollablePixelsY||0),e=s=y(e,l,l+o.width)):(e=l,s=f-o.right+(a.scrollablePixelsX||0),i=n=y(i,c,c+o.height)):(r=!0,b=!1),t.path=r&&!b?void 0:a.renderer.crispLine([["M",e,i],["L",s,n]],u||1)}),v.path}getLinearTickPositions(t,e,i){let s,n,r,o=x(Math.floor(e/t)*t),a=x(Math.ceil(i/t)*t),l=[];if(x(o+t)===o&&(r=20),this.single)return[e];for(s=o;s<=a&&(l.push(s),(s=x(s+t,r))!==n);)n=s;return l}getMinorTickInterval(){let{minorTicks:t,minorTickInterval:e}=this.options;return!0===t?_(e,"auto"):!1!==t?e:void 0}getMinorTickPositions(){let t,e=this.options,i=this.tickPositions,s=this.minorTickInterval,n=this.pointRangePadding||0,r=(this.min||0)-n,o=(this.max||0)+n,a=o-r,l=[];if(a&&a/s<this.len/3){let n=this.logarithmic;if(n)this.paddedTicks.forEach(function(t,e,i){e&&l.push.apply(l,n.getLogTickPositions(s,i[e-1],i[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())l=l.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(s),r,o,e.startOfWeek));else for(t=r+(i[0]-r)%s;t<=o&&t!==l[0];t+=s)l.push(t)}return 0!==l.length&&this.trimTicks(l),l}adjustForMinRange(){let t,e,i,s,n=this.options,r=this.logarithmic,{max:o,min:a,minRange:l}=this;this.isXAxis&&void 0===l&&!r&&(l=b(n.min)||b(n.max)||b(n.floor)||b(n.ceiling)?null:Math.min(5*(C(this.series.map(t=>(t.xIncrement?t.xData?.slice(0,2):t.xData)||[]))||0),this.dataMax-this.dataMin)),M(o)&&M(a)&&M(l)&&o-a<l&&(e=this.dataMax-this.dataMin>=l,t=(l-o+a)/2,i=[a-t,_(n.min,a-t)],e&&(i[2]=r?r.log2lin(this.dataMin):this.dataMin),s=[(a=f(i))+l,_(n.max,a+l)],e&&(s[2]=r?r.log2lin(this.dataMax):this.dataMax),(o=g(s))-a<l&&(i[0]=o-l,i[1]=_(n.min,o-l),a=f(i))),this.minRange=l,this.min=a,this.max=o}getClosest(){let t,e;if(this.categories)e=1;else{let i=[];this.series.forEach(function(t){let s=t.closestPointRange;1===t.xData?.length?i.push(t.xData[0]):!t.noSharedTooltip&&b(s)&&t.reserveSpace()&&(e=b(e)?Math.min(e,s):s)}),i.length&&(i.sort((t,e)=>t-e),t=C([i]))}return t&&e?Math.min(t,e):t||e}nameToX(t){let e,i=E(this.options.categories),s=i?this.categories:this.names,n=t.options.x;return t.series.requireSorting=!1,b(n)||(n=this.options.uniqueNames&&s?i?s.indexOf(t.name):_(s.keys[t.name],-1):t.series.autoIncrement()),-1===n?!i&&s&&(e=s.length):e=n,void 0!==e?(this.names[e]=t.name,this.names.keys[t.name]=e):t.x&&(e=t.x),e}updateNames(){let t=this,e=this.names;e.length>0&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(e=>{e.xIncrement=null,(!e.points||e.isDirtyData)&&(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach(function(i,s){let n;i?.options&&void 0!==i.name&&void 0!==(n=t.nameToX(i))&&n!==i.x&&(i.x=n,e.xData[s]=n)})}))}setAxisTranslation(){let t,e,i=this,s=i.max-i.min,n=i.linkedParent,r=!!i.categories,o=i.isXAxis,a=i.axisPointRange||0,l=0,c=0,h=i.transA;(o||r||a)&&(t=i.getClosest(),n?(l=n.minPointOffset,c=n.pointRangePadding):i.series.forEach(function(e){let s=r?1:o?_(e.options.pointRange,t,0):i.axisPointRange||0,n=e.options.pointPlacement;if(a=Math.max(a,s),!i.single||r){let t=e.is("xrange")?!o:o;l=Math.max(l,t&&T(n)?0:s/2),c=Math.max(c,t&&"on"===n?0:s)}}),e=i.ordinal&&i.ordinal.slope&&t?i.ordinal.slope/t:1,i.minPointOffset=l*=e,i.pointRangePadding=c*=e,i.pointRange=Math.min(a,i.single&&r?1:s),o&&t&&(i.closestPointRange=t)),i.translationSlope=i.transA=h=i.staticScale||i.len/(s+c||1),i.transB=i.horiz?i.left
vendor: 2,873 bytes, line 2
2:i.bottom,i.minPixelPadding=h*l,k(this,"afterSetAxisTranslation")}minFromRange(){let{max:t,min:e}=this;return M(t)&&M(e)&&t-e||void 0}setTickInterval(t){let e,i,s,n,r,{categories:o,chart:a,dataMax:l,dataMin:c,dateTime:h,isXAxis:d,logarithmic:u,options:p,softThreshold:f}=this,g=M(this.threshold)?this.threshold:void 0,m=this.minRange||0,{ceiling:y,floor:v,linkedTo:S,softMax:C,softMin:A}=p,E=M(S)&&a[this.coll]?.[S],T=p.tickPixelInterval,P=p.maxPadding,O=p.minPadding,L=0,I=M(p.tickInterval)&&p.tickInterval>=0?p.tickInterval:void 0;if(h||o||E||this.getTickAmount(),n=_(this.userMin,p.min),r=_(this.userMax,p.max),E?(this.linkedParent=E,e=E.getExtremes(),this.min=_(e.min,e.dataMin),this.max=_(e.max,e.dataMax),p.type!==E.options.type&&w(11,!0,a)):(f&&b(g)&&M(l)&&M(c)&&(c>=g?(i=g,O=0):l<=g&&(s=g,P=0)),this.min=_(n,i,c),this.max=_(r,s,l)),M(this.max)&&M(this.min)&&(u&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,_(c,this.min))&&w(10,!0,a),this.min=x(u.log2lin(this.min),16),this.max=x(u.log2lin(this.max),16)),this.range&&M(c)&&(this.userMin=this.min=n=Math.max(c,this.minFromRange()||0),this.userMax=r=this.max,this.range=void 0)),k(this,"foundExtremes"),this.adjustForMinRange(),M(this.min)&&M(this.max)){if(!M(this.userMin)&&M(A)&&A<this.min&&(this.min=n=A),!M(this.userMax)&&M(C)&&C>this.max&&(this.max=r=C),o||this.axisPointRange||this.stacking?.usePercentage||E||!(L=this.max-this.min)||(!b(n)&&O&&(this.min-=L*O),b(r)||!P||(this.max+=L*P)),!M(this.userMin)&&M(v)&&(this.min=Math.max(this.min,v)),!M(this.userMax)&&M(y)&&(this.max=Math.min(this.max,y)),f&&M(c)&&M(l)){let t=g||0;!b(n)&&this.min<t&&c>=t?this.min=p.minRange?Math.min(t,this.max-m):t:!b(r)&&this.max>t&&l<=t&&(this.max=p.minRange?Math.max(t,this.min+m):t)}!a.polar&&this.min>this.max&&(b(p.min)?this.max=this.min:b(p.max)&&(this.min=this.max)),L=this.max-this.min}if(this.min!==this.max&&M(this.min)&&M(this.max)?E&&!I&&T===E.options.tickPixelInterval?this.tickInterval=I=E.tickInterval:this.tickInterval=_(I,this.tickAmount?L/Math.max(this.tickAmount-1,1):void 0,o?1:L*T/Math.max(this.len,T)):this.tickInterval=1,d&&!t){let t=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(e){e.forceCrop=e.forceCropping?.(),e.processData(t)}),k(this,"postProcessData",{hasExtremesChanged:t})}this.setAxisTranslation(),k(this,"initialAxisTranslation"),this.pointRange&&!I&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let D=_(p.minTickInterval,h&&!this.series.some(t=>t.noSharedTooltip)?this.closestPointRange:0);!I&&this.tickInterval<D&&(this.tickInterval=D),h||u||I||(this.tickInterval=B(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){let t,e=this.options,i=e.tickPositions,s=e.tickPositioner,n=this.getMinorTickInterval(),r=!this.isPanning,o=r&&e.startOnTick,a=r&&e.endOnTick,l=[];
vendor: 4,260 bytes, line 2
2if(this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n&&this.tickInterval?this.tickInterval/e.minorTicksPerMajor:n,this.single=this.min===this.max&&b(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==e.allowDecimals),i)l=i.slice();else if(M(this.min)&&M(this.max)){if(!this.ordinal?.positions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))l=[this.min,this.max],w(19,!1,this.chart);else if(this.dateTime)l=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)l=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let t=this.tickInterval,e=t;for(;e<=2*t&&(l=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&l.length>this.tickAmount);)this.tickInterval=B(this,e*=1.1)}l.length>this.len&&(l=[l[0],l[l.length-1]])[0]===l[1]&&(l.length=1),s&&(this.tickPositions=l,(t=s.apply(this,[this.min,this.max]))&&(l=t))}this.tickPositions=l,this.paddedTicks=l.slice(0),this.trimTicks(l,o,a),!this.isLinked&&M(this.min)&&M(this.max)&&(this.single&&l.length<2&&!this.categories&&!this.series.some(t=>t.is("heatmap")&&"between"===t.options.pointPlacement)&&(this.min-=.5,this.max+=.5),i||t||this.adjustTickAmount()),k(this,"afterSetTickPositions")}trimTicks(t,e,i){let s=t[0],n=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(k(this,"trimTicks"),!this.isLinked){if(e&&s!==-1/0)this.min=s;else for(;this.min-r>t[0];)t.shift();if(i)this.max=n;else for(;this.max+r<t[t.length-1];)t.pop();0===t.length&&b(s)&&!this.options.tickPositions&&t.push((n+s)/2)}}alignToOthers(){let t,e=this,i=e.chart,s=[this],n=e.options,r=i.options.chart,o="yAxis"===this.coll&&r.alignThresholds,a=[];if(e.thresholdAlignment=void 0,(!1!==r.alignTicks&&n.alignTicks||o)&&!1!==n.startOnTick&&!1!==n.endOnTick&&!e.logarithmic){let n=t=>{let{horiz:e,options:i}=t;return[e?i.left:i.top,i.width,i.height,i.pane].join(",")},r=n(this);i[this.coll].forEach(function(i){let{series:o}=i;o.length&&o.some(t=>t.visible)&&i!==e&&n(i)===r&&(t=!0,s.push(i))})}if(t&&o){s.forEach(t=>{let i=t.getThresholdAlignment(e);M(i)&&a.push(i)});let t=a.length>1?a.reduce((t,e)=>t+e,0)/a.length:void 0;s.forEach(e=>{e.thresholdAlignment=t})}return t}getThresholdAlignment(t){if((!M(this.dataMin)||this!==t&&this.series.some(t=>t.isDirty||t.isDirtyData))&&this.getSeriesExtremes(),M(this.threshold)){let t=m((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(t=1-t),t}}getTickAmount(){let t=this.options,e=t.tickPixelInterval,i=t.tickAmount;b(t.tickInterval)||i||!(this.len<e)||this.isRadial||this.logarithmic||!t.startOnTick||!t.endOnTick||(i=2),!i&&this.alignToOthers()&&(i=Math.ceil(this.len/e)+1),i<4&&(this.finalTickAmt=i,i=5),this.tickAmount=i}adjustTickAmount(){let t,e,i,s=this,{finalTickAmt:n,max:r,min:o,options:a,tickPositions:l,tickAmount:c,thresholdAlignment:h}=s,d=l?.length,u=_(s.threshold,s.softThreshold?0:null),p=s.tickInterval,f=()=>l.push(x(l[l.length-1]+p)),g=()=>l.unshift(x(l[0]-p));if(M(h)&&(i=h<.5?Math.ceil(h*(c-1)):Math.floor(h*(c-1)),a.reversed&&(i=c-1-i)),s.hasData()&&M(o)&&M(r)){let h=()=>{s.transA*=(d-1)/(c-1),s.min=a.startOnTick?l[0]:Math.min(o,l[0]),s.max=a.endOnTick?l[l.length-1]:Math.max(r,l[l.length-1])};if(M(i)&&M(s.threshold)){for(;l[i]!==u||l.length!==c||l[0]>o||l[l.length-1]<r;){for(l.length=0,l.push(s.threshold);l.length<c;)void 0===l[i]||l[i]>s.threshold?g():f();if(p>8*s.tickInterval)break;p*=2}h()}else if(d<c){for(;l.length<c;)l.length%2||o===u?f():g();h()}if(b(n)){for(e=t=l.length;e--;)(3===n&&e%2==1||n<=2&&e>0&&e<t-1)&&l.splice(e,1);s.finalTickAmt=void 0}}}setScale(){let{coll:t,stacking:e}=this,i=!1,s=!1;this.series.forEach(t=>{i=i||t.isDirtyData||t.isDirty,s=s||t.xAxis&&t.xAxis.isDirty||!1}),this.setAxisSize();let n=this.len!==(this.old&&this.old.len);n||i||s||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(e&&"yAxis"===t&&e.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.get
2SeriesExtremes(),this.setTickInterval(),e&&"xAxis"===t&&e.buildStacks(),this.isDirty||(this.isDirty=n||this.min!==this.old?.min||this.max!==this.old?.max)):e&&e.cleanStacks(),i&&delete this.allExtremes,k(this,"afterSetScale")}setExtremes(t,e,i=!0,s,n){this.series.forEach(t=>{delete t.kdTree}),k(this,"setExtremes",n=S(n,{min:t,max:e}),t=>{this.userMin=t.min,this.userMax=t.max,this.eventArgs=t,i&&this.chart.redraw(s)})}setAxisSize(){let t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],s=this.horiz,n=this.width=Math.round(I(_(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(I(_(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),o=this.top=Math.round(I(_(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),a=this.left=Math.round(I(_(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-r-o,this.right=t.chartWidth-n-a,this.len=Math.max(s?n:r,0),this.pos=s?a:o}getExtremes(){let t=this.logarithmic;return{min:t?x(t.lin2log(this.min)):this.min,max:t?x(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(t){let e=this.logarithmic,i=e?e.lin2log(this.min):this.min,s=e?e.lin2log(this.max):this.max;return null===t||t===-1/0?t=i:t===1/0?t=s:i>t?t=i:s<t&&(t=s),this.translate(t,0,1,0,1)}autoLabelAlign(t){let e=(_(t,0)-90*this.side+720)%360,i={align:"center"};return k(this,"autoLabelAlign",i,function(t){e>15&&e<165?t.align="right":e>195&&e<345&&(t.align="left")}),i.align}tickSize(t){let e,i=this.options,s=_(i["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),n=i["tick"===t?"tickLength":"minorTickLength"];s&&n&&("inside"===i[t+"Position"]&&(n=-n),e=[n,s]);let r={tickSize:e};return k(this,"afterTickSize",r),r.tickSize}labelMetrics(){let t=this.chart.renderer,e=this.ticks,i=e[Object.keys(e)[0]]||{};return this.chart.renderer.fontMetrics(i.label||i.movedLabel||t.box)}unsquish(){let t,e,i=this.options.labels,s=i.padding||0,n=this.horiz,r=this.tickInterval,o=this.len/(((this.categories?1:0)+this.max-this.min)/r),a=i.rotation,l=x(.8*this.labelMetrics().h),c=Math.max(this.max-this.min,0),h=function(t){let e=(t+2*s)/(o||1);return(e=e>1?Math.ceil(e):1)*r>c&&t!==1/0&&o!==1/0&&c&&(e=Math.ceil(c/r)),x(e*r)},d=r,u=Number.MAX_VALUE;if(n){if(!i.staggerLines&&(M(a)?e=[a]:o<i.autoRotationLimit&&(e=i.autoRotation)),e){let i,s;for(let n of e)(n===a||n&&n>=-90&&n<=90)&&(s=(i=h(Math.abs(l/Math.sin(p*n))))+Math.abs(n/360))<u&&(u=s,t=n,d=i)}}else d=h(.75*l);return this.autoRotation=e,this.labelRotation=_(t,M(a)?a:0),i.step?r:d}getSlotWidth(t){let e=this.chart,i=this.horiz,s=this.options.labels,n=Math.max(this.tickPositions.length-(this.categories?0:1),1),r=e.margin[3];if(t&&M(t.slotWidth))return t.slotWidth;if(i&&s.step<2)return s.rotation?0:(this.staggerLines||1)*this.len/n;if(!i){let t=s.style.width;if(void 0!==t)return parseInt(String(t),10);if(r)return r-e.spacing[3]}return.33*e.chartWidth}renderUnsquish(){let t,e,i,s,n=this.chart,r=n.renderer,o=this.tickPositions,a=this.ticks,l=this.options.labels,c=l.style,h=this.horiz,d=this.getSlotWidth(),u=Math.max(1,Math.round(d-(h?2*(l.padding||0):l.distance||0))),p={},f=this.labelMetrics(),g=c.textOverflow,m=0;if(T(l.rotation)||(p.rotation=l.rotation||0),o.forEach(function(t){let e=a[t];e.movedLabel&&e.replaceMovedLabel(),e&&e.label&&e.label.textPxLength>m&&(m=e.label.textPxLength)}),this.maxLabelLength=m,this.autoRotation)m>u&&m>f.h?p.rotation=this.labelRotation:this.labelRotation=0;else if(d&&(t=u,!g))for(e="clip",s=o.length;!h&&s--;)(i=a[o[s]].label)&&("ellipsis"===i.styles.textOverflow?i.css({textOverflow:"clip"}):i.textPxLength>d&&i.css({width:d+"px"}),i.getBBox().height>this.len/o.length-(f.h-f.f)&&(i.specificTextOverflow="ellipsis"));p.rotation&&(t=m>.5*n.chartHeight?.33*n.chartHeight:m,g||(e="ellipsis")),this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(p.align=this.labelAlign),o.forEach(function(i){let s=a[i],n=s&&s.label,r=c.width,o={};n&&(n.attr(p),s.shortenLabel?s.shortenLabel():t&&!r&&"nowrap"!==c.whiteSpace&&(t<n.textPxLength||"SPAN"===n.element.tagName)?(o.width=t+"px",g||(o.textOverflow=n.specificTextOverflow||e),n.css(o)):!n.styles.width||o.width||r||n.css({width:null}),delete n.specificTextOverflow,s.rotation=p.rotation)},this),this.tickRotCorr=r.rotCorr(f.b,this.labelRotation||0,0!==this.side)}hasData(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&b(this.min)&&b(this.max)}addTitle(t){let e,i=this.chart.renderer,s=this.horiz,n=this.opposite,r=this.options.title,o=this.chart.styledMode;
vendor: 4,481 bytes, line 2
2this.axisTitle||((e=r.textAlign)||(e=(s?{low:"left",middle:"center",high:"right"}:{low:n?"right":"left",middle:"center",high:n?"left":"right"})[r.align]),this.axisTitle=i.text(r.text||"",0,0,r.useHTML).attr({zIndex:7,rotation:r.rotation||0,align:e}).addClass("highcharts-axis-title"),o||this.axisTitle.css(P(r.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),o||r.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)}generateTick(t){let e=this.ticks;e[t]?e[t].addLabel():e[t]=new o(this,t)}createGroups(){let{axisParent:t,chart:e,coll:i,options:s}=this,n=e.renderer,r=(e,r,o)=>n.g(e).attr({zIndex:o}).addClass(`highcharts-${i.toLowerCase()}${r} `+(this.isRadial?`highcharts-radial-axis${r} `:"")+(s.className||"")).add(t);this.axisGroup||(this.gridGroup=r("grid","-grid",s.gridZIndex),this.axisGroup=r("axis","",s.zIndex),this.labelGroup=r("axis-labels","-labels",s.labels.zIndex))}getOffset(){let t,e,i,s,n=this,{chart:r,horiz:o,options:a,side:l,ticks:c,tickPositions:h,coll:d}=n,u=r.inverted&&!n.isZAxis?[1,0,3,2][l]:l,p=n.hasData(),f=a.title,g=a.labels,m=M(a.crossing),x=r.axisOffset,y=r.clipOffset,v=[-1,1,1,-1][l],w=0,S=0,C=0;if(n.showAxis=t=p||a.showEmpty,n.staggerLines=n.horiz&&g.staggerLines||void 0,n.createGroups(),p||n.isLinked?(h.forEach(function(t){n.generateTick(t)}),n.renderUnsquish(),n.reserveSpaceDefault=0===l||2===l||{1:"left",3:"right"}[l]===n.labelAlign,_(g.reserveSpace,!m&&null,"center"===n.labelAlign||null,n.reserveSpaceDefault)&&h.forEach(function(t){C=Math.max(c[t].getLabelSize(),C)}),n.staggerLines&&(C*=n.staggerLines),n.labelOffset=C*(n.opposite?-1:1)):L(c,function(t,e){t.destroy(),delete c[e]}),f?.text&&!1!==f.enabled&&(n.addTitle(t),t&&!m&&!1!==f.reserveSpace&&(n.titleOffset=w=n.axisTitle.getBBox()[o?"height":"width"],S=b(e=f.offset)?0:_(f.margin,o?5:10))),n.renderLine(),n.offset=v*_(a.offset,x[l]?x[l]+(a.margin||0):0),n.tickRotCorr=n.tickRotCorr||{x:0,y:0},s=0===l?-n.labelMetrics().h:2===l?n.tickRotCorr.y:0,i=Math.abs(C)+S,C&&(i-=s,i+=v*(o?_(g.y,n.tickRotCorr.y+v*g.distance):_(g.x,v*g.distance))),n.axisTitleMargin=_(e,i),n.getMaxLabelDimensions&&(n.maxLabelDimensions=n.getMaxLabelDimensions(c,h)),"colorAxis"!==d&&y){let t=this.tickSize("tick");x[l]=Math.max(x[l],(n.axisTitleMargin||0)+w+v*n.offset,i,h&&h.length&&t?t[0]+v*n.offset:0);let e=!n.axisLine||a.offset?0:n.axisLine.strokeWidth()/2;y[u]=Math.max(y[u],e)}k(this,"afterGetOffset")}getLinePath(t){let e=this.chart,i=this.opposite,s=this.offset,n=this.horiz,r=this.left+(i?this.width:0)+s,o=e.chartHeight-this.bottom-(i?this.height:0)+s;return i&&(t*=-1),e.renderer.crispLine([["M",n?this.left:r,n?o:this.top],["L",n?e.chartWidth-this.right:r,n?o:e.chartHeight-this.bottom]],t)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(t){let e=this.horiz,i=this.left,s=this.top,n=this.len,r=this.options.title,o=e?i:s,a=this.opposite,l=this.offset,c=r.x,h=r.y,d=this.chart.renderer.fontMetrics(t),u=t?Math.max(t.getBBox(!1,0).height-d.h-1,0):0,p={low:o+(e?0:n),middle:o+n/2,high:o+(e?n:0)}[r.align],f=(e?s+this.height:i)+(e?1:-1)*(a?-1:1)*(this.axisTitleMargin||0)+[-u,u,d.f,-u][this.side],g={x:e?p+c:f+(a?this.width:0)+l+c,y:e?f+h-(a?this.height:0)+l:p+h};return k(this,"afterGetTitlePosition",{titlePosition:g}),g}renderMinorTick(t,e){let i=this.minorTicks;i[t]||(i[t]=new o(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)}renderTick(t,e,i){let s=this.isLinked,n=this.ticks;(!s||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(n[t]||(n[t]=new o(this,t)),i&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e))}render(){let t,e,i=this,s=i.chart,n=i.logarithmic,a=s.renderer,c=i.options,h=i.isLinked,d=i.tickPositions,u=i.axisTitle,p=i.ticks,f=i.minorTicks,g=i.alternateBands,m=c.stackLabels,x=c.alternateGridColor,b=c.crossing,y=i.tickmarkOffset,v=i.axisLine,w=i.showAxis,S=l(a.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[p,f,g].forEach(function(t){L(t,function(t){t.isActive=!1})}),M(b)){let t=this.isXAxis?s.yAxis[0]:s.xAxis[0],e=[1,-1,-1,1][this.side];if(t){let s=t.toPixels(b,!0);i.horiz&&(s=t.len-s),i.offset=e*s}}if(i.hasData()||h){let a=i.chart.hasRendered&&i.old&&M(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEac
2h(function(t){i.renderMinorTick(t,a)}),d.length&&(d.forEach(function(t,e){i.renderTick(t,e,a)}),y&&(0===i.min||i.single)&&(p[-1]||(p[-1]=new o(i,-1,null,!0)),p[-1].render(-1))),x&&d.forEach(function(o,a){e=void 0!==d[a+1]?d[a+1]+y:i.max-y,a%2==0&&o<i.max&&e<=i.max+(s.polar?-y:y)&&(g[o]||(g[o]=new r.PlotLineOrBand(i,{})),t=o+y,g[o].options={from:n?n.lin2log(t):t,to:n?n.lin2log(e):e,color:x,className:"highcharts-alternate-grid"},g[o].render(),g[o].isActive=!0)}),i._addedPlotLB||(i._addedPlotLB=!0,(c.plotLines||[]).concat(c.plotBands||[]).forEach(function(t){i.addPlotBandOrLine(t)}))}[p,f,g].forEach(function(t){let e=[],i=S.duration;L(t,function(t,i){t.isActive||(t.render(i,!1,0),t.isActive=!1,e.push(i))}),N(function(){let i=e.length;for(;i--;)t[e[i]]&&!t[e[i]].isActive&&(t[e[i]].destroy(),delete t[e[i]])},t!==g&&s.hasRendered&&i?i:0)}),v&&(v[v.isPlaced?"animate":"attr"]({d:this.getLinePath(v.strokeWidth())}),v.isPlaced=!0,v[w?"show":"hide"](w)),u&&w&&(u[u.isNew?"attr":"animate"](i.getTitlePosition(u)),u.isNew=!1),m&&m.enabled&&i.stacking&&i.stacking.renderStackTotals(),i.old={len:i.len,max:i.max,min:i.min,transA:i.transA,userMax:i.userMax,userMin:i.userMin},i.isDirty=!1,k(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})}getKeepProps(){return this.keepProps||j.keepProps}destroy(t){let e=this,i=e.plotLinesAndBands,s=this.eventOptions;if(k(this,"destroy",{keepEvents:t}),t||D(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){y(t)}),i){let t=i.length;for(;t--;)i[t].destroy()}for(let t in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[t]=e.plotLinesAndBandsGroups[t].destroy();L(e,function(t,i){-1===e.getKeepProps().indexOf(i)&&delete e[i]}),this.eventOptions=s}drawCrosshair(t,e){let s,n,r,o,a=this.crosshair,l=_(a&&a.snap,!0),c=this.chart,h=this.cross;if(k(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),a&&!1!==(b(e)||!l)){if(l?b(e)&&(n=_("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):n=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),b(n)&&(o={value:e&&(this.isXAxis?e.x:_(e.stackY,e.y)),translatedValue:n},c.polar&&S(o,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),s=this.getPlotLinePath(o)||null),!b(s))return void this.hideCrosshair();r=this.categories&&!this.isRadial,h||(this.cross=h=c.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(r?"category ":"thin ")+(a.className||"")).attr({zIndex:_(a.zIndex,2)}).add(),!c.styledMode&&(h.attr({stroke:a.color||(r?i.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":_(a.width,1)}).css({"pointer-events":"none"}),a.dashStyle&&h.attr({dashstyle:a.dashStyle}))),h.show().attr({d:s}),r&&!a.width&&h.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();k(this,"afterDrawCrosshair",{e:t,point:e})}hideCrosshair(){this.cross&&this.cross.hide(),k(this,"afterHideCrosshair")}update(t,e){let i=this.chart;t=P(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,_(e,!0)&&i.redraw()}remove(t){let e=this.chart,i=this.coll,s=this.series,n=s.length;for(;n--;)s[n]&&s[n].remove(!1);v(e.axes,this),v(e[i]||[],this),e.orderItems(i),this.destroy(),e.isDirtyBox=!0,_(t,!0)&&e.redraw()}setTitle(t,e){this.update({title:t},e)}setCategories(t,e){this.update({categories:t},e)}}return j.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],j}),i(e,"Core/Axis/DateTimeAxis.js",[e["Core/Utilities.js"]],function(t){var e;let{addEvent:i,getMagnitude:s,normalizeTickInterval:n,timeUnits:r}=t;return function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function o(){"datetime"===this.options.type?this.dateTime||(this.dateTime=new a(this)):this.dateTime=void 0}t.compose=function(t){return t.keepProps.includes("dateTime")||(t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,i(t,"afterSetOptions",o)),t};class a{constructor(t){this.axis=t}normalizeTimeTickInterval(t,e){let i,o=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],a=o[o.length-1],l=r[a[0]],c=a[1];for(i=0;i<o.length&&(l=r[(a=o[i])[0]],c=a[1],!(o[i+1]&&t<=(l*c[c.length-1]+r[o[i+1][0]])/2));i++);return l===r.year&&t<5*l&&(c=[1,2,5]),{unitRange:l,count:n(t/l,c,"year"===a[0]?Math.max(s(t/l),1):1),unitName:a[0]}}getXDateFormat(t,e){let{axis:i}=this,s=i.chart.time;return i.closestPointRange?s.getDateFormat(i.closestPointRange,t,i.options.startOfWeek,e)||s.resolveDTLFormat(e.year).main:s.resolveDTLFormat(e.day).main}}t.Additions=a}(e||(e={})),e}),i(e,"Core/Axis/LogarithmicAxis.js",[e["Core/Utilities.js"]],function(t){var e;let{addEvent:i,normalizeTickInterval:s,pick:n}=t;return function(t){function e(t){let e=t.userOptions,i=this.logarithmic;"logarithmic"!==e.type?this.logarithmic=void 0:i||(i=this.logarithmic=new o(this))}function r(){let t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}t.compose=function(t){return t.keepProps.includes("logarithmic")||(t.keepProps.push("logarithmic"),i(t,"init",e),i(t,"afterInit",r)),t};class o{constructor(t){this.axis=t}getLogTickPositions(t,e,i,r){let o=this.axis,a=o.len,l=o.options,c=[];if(r||(this.minorAutoInterval=void 0),t>=.5)t=Math.round(t),c=o.getLinearTickPositions(t,e,i);else if(t>=.08){let s,n,o,a,l,h,d;for(s=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],n=Math.floor(e);n<i+1&&!d;n++)for(o=0,a=s.length;o<a&&!d;o++)(l=this.log2lin(this.lin2log(n)*s[o]))>e&&(!r||h<=i)&&void 0!==h&&c.push(h),h>i&&(d=!0),h=l}else{let h=this.lin2log(e),d=this.lin2log(i),u=r?o.getMinorTickInterval():l.tickInterval,p=l.tickPixelInterval/(r?5:1),f=r?a/o.tickPositions.length:a;t=s(t=n("auto"===u?null:u,this.minorAutoInterval,(d-h)*p/(f||1))),c=o.getLinearTickPositions(t,h,d).map(this.log2lin),r||(this.minorAutoInterval=t/5)}return r||(o.tickInterval=t),c}lin2log(t){return Math.pow(10,t)}log2lin(t){return Math.log(t)/Math.LN10}}t.Additions=o}(e||(e={})),e}),i(e,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[e["Core/Utilities.js"]],function(t){var e;let{erase:i,extend:s,isNumber:n}=t;return function(t){let e;function r(t){return this.addPlotBandOrLine(t,"plotBands")}function o(t,i){let s=this.userOptions,n=new e(this,t);if(this.visible&&(n=n.render()),n){if(this._addedPlotLB||(this._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEac
2h(t=>{this.addPlotBandOrLine(t)})),i){let e=s[i]||[];e.push(t),s[i]=e}this.plotLinesAndBands.push(n)}return n}function a(t){return this.addPlotBandOrLine(t,"plotLines")}function l(t,e,i){i=i||this.options;let s,r,o=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),a=[],l=this.horiz,c=!n(this.min)||!n(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,h=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),d=1;if(h&&o)for(c&&(r=h.toString()===o.toString(),d=0),s=0;s<h.length;s+=2){let t=h[s],e=h[s+1],i=o[s],n=o[s+1];("M"===t[0]||"L"===t[0])&&("M"===e[0]||"L"===e[0])&&("M"===i[0]||"L"===i[0])&&("M"===n[0]||"L"===n[0])&&(l&&i[1]===t[1]?(i[1]+=d,n[1]+=d):l||i[2]!==t[2]||(i[2]+=d,n[2]+=d),a.push(["M",t[1],t[2]],["L",e[1],e[2]],["L",n[1],n[2]],["L",i[1],i[2]],["Z"])),a.isFlat=r}return a}function c(t){this.removePlotBandOrLine(t)}function h(t){let e=this.plotLinesAndBands,s=this.options,n=this.userOptions;if(e){let r=e.length;for(;r--;)e[r].id===t&&e[r].destroy();[s.plotLines||[],n.plotLines||[],s.plotBands||[],n.plotBands||[]].forEach(function(e){for(r=e.length;r--;)(e[r]||{}).id===t&&i(e,e[r])})}}function d(t){this.removePlotBandOrLine(t)}t.compose=function(t,i){let n=i.prototype;return n.addPlotBand||(e=t,s(n,{addPlotBand:r,addPlotLine:a,addPlotBandOrLine:o,getPlotBandPath:l,removePlotBand:c,removePlotLine:d,removePlotBandOrLine:h})),i}}(e||(e={})),e}),i(e,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[e["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],e["Core/Utilities.js"]],function(t,e){let{arrayMax:i,arrayMin:s,defined:n,destroyObjectProperties:r,erase:o,fireEvent:a,merge:l,objectEach:c,pick:h}=e;class d{static compose(e){return t.compose(d,e)}constructor(t,e){this.axis=t,this.options=e,this.id=e.id}render(){a(this,"render");let t,{axis:e,options:i}=this,{horiz:s,logarithmic:r}=e,{color:o,events:d,zIndex:u=0}=i,p={},f=e.chart.renderer,g=i.to,m=i.from,x=i.value,b=i.borderWidth,y=i.label,{label:v,svgElem:w}=this,S=[],k=n(m)&&n(g),C=n(x),A=!w,E={class:"highcharts-plot-"+(k?"band ":"line ")+(i.className||"")},M=k?"bands":"lines";if(!e.chart.styledMode&&(C?(E.stroke=o||"#999999",E["stroke-width"]=h(i.width,1),i.dashStyle&&(E.dashstyle=i.dashStyle)):k&&(E.fill=o||"#e6e9ff",b&&(E.stroke=i.borderColor,E["stroke-width"]=b))),p.zIndex=u,M+="-"+u,(t=e.plotLinesAndBandsGroups[M])||(e.plotLinesAndBandsGroups[M]=t=f.g("plot-"+M).attr(p).add()),w||(this.svgElem=w=f.path().attr(E).add(t)),n(x))S=e.getPlotLinePath({value:r?.log2lin(x)??x,lineWidth:w.strokeWidth(),acrossPanes:i.acrossPanes});else{if(!n(m)||!n(g))return;S=e.getPlotBandPath(r?.log2lin(m)??m,r?.log2lin(g)??g,i)}return!this.eventsAdded&&d&&(c(d,(t,e)=>{w?.on(e,t=>{d[e].apply(this,[t])})}),this.eventsAdded=!0),!A&&w.d||!S?.length?w&&(S?(w.show(),w.animate({d:S})):w.d&&(w.hide(),v&&(this.label=v=v.destroy()))):w.attr({d:S}),y&&(n(y.text)||n(y.formatter))&&S?.length&&e.width>0&&e.height>0&&!S.isFlat?(y=l({align:s&&k?"center":void 0,x:s?!k&&4:10,verticalAlign:!s&&k?"middle":void 0,y:s?k?16:10:k?6:-4,rotation:s&&!k?90:0},y),this.renderLabel(y,S,k,u)):v&&v.hide(),this}renderLabel(t,e,n,r){let o=this.axis,a=o.chart.renderer,c=this.label;c||(this.label=c=a.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(n?"band":"line")+"-label "+(t.className||""),zIndex:r}),o.chart.styledMode||c.css(l({fontSize:"0.8em",textOverflow:"ellipsis"},t.style)),c.add());let h=e.xBounds||[e[0][1],e[1][1],n?e[2][1]:e[0][1]],d=e.yBounds||[e[0][2],e[1][2],n?e[2][2]:e[0][2]],u=s(h),p=s(d);if(c.align(t,!1,{x:u,y:p,width:i(h)-u,height:i(d)-p}),!c.alignValue||"left"===c.alignValue){let e=t.clip?o.width:o.chart.chartWidth;c.css({width:(90===c.rotation?o.height-(c.alignAttr.y-o.top):e-(c.alignAttr.x-o.left))+"px"})}c.show(!0)}getLabelText(t){return n(t.formatter)?t.formatter.call(this):t.text}destroy(){o(this.axis.plotLinesAndBands,this),delete this.axis,r(this)}}return d}),i(e,"Core/Tooltip.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Templating.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(t,e,
vendor: 4,287 bytes, line 2
2i,s,n,r){var o;let{animObject:a}=t,{format:l}=e,{composed:c,doc:h,isSafari:d}=i,{distribute:u}=s,{addEvent:p,clamp:f,css:g,discardElement:m,extend:x,fireEvent:b,isArray:y,isNumber:v,isString:w,merge:S,pick:k,pushUnique:C,splat:A,syncTimeout:E}=r;class M{constructor(t,e,i){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=t,this.init(t,e),this.pointer=i}bodyFormatter(t){return t.map(function(t){let e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(t){this.chart.series.forEach(function(e){let i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})}defaultFormatter(t){let e,i=this.points||A(this);return(e=(e=[t.tooltipFooterHeaderFormatter(i[0])]).concat(t.bodyFormatter(i))).push(t.tooltipFooterHeaderFormatter(i[0],!0)),e}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),m(this.container)),r.clearTimeout(this.hideTimer)}getAnchor(t,e){let i,{chart:s,pointer:n}=this,r=s.inverted,o=s.plotTop,a=s.plotLeft;if((t=A(t))[0].series&&t[0].series.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=n.normalize(e)),i=[e.chartX-a,e.chartY-o];else if(t[0].tooltipPos)i=t[0].tooltipPos;else{let s=0,n=0;t.forEach(function(t){let e=t.pos(!0);e&&(s+=e[0],n+=e[1])}),s/=t.length,n/=t.length,this.shared&&t.length>1&&e&&(r?s=e.chartX:n=e.chartY),i=[s-a,n-o]}return i.map(Math.round)}getClassName(t,e,i){let s=this.options,n=t.series,r=n.options;return[s.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+k(t.colorIndex,n.colorIndex),r&&r.className].filter(w).join(" ")}getLabel({anchorX:t,anchorY:e}={anchorX:0,anchorY:0}){let s=this,r=this.chart.styledMode,o=this.options,a=this.split&&this.allowShared,l=this.container,c=this.chart.renderer;if(this.label){let t=!this.label.hasClass("highcharts-label");(!a&&t||a&&!t)&&this.destroy()}if(!this.label){if(this.outside){let t=this.chart.options.chart.style,e=n.getRendererType();this.container=l=i.doc.createElement("div"),l.className="highcharts-tooltip-container",g(l,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(t&&t.zIndex||0)+3)}),this.renderer=c=new e(l,0,0,t,void 0,void 0,c.styledMode)}if(a?this.label=c.g("tooltip"):(this.label=c.label("",t,e,o.shape,void 0,void 0,o.useHTML,void 0,"tooltip").attr({padding:o.padding,r:o.borderRadius}),r||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth||0}).css(o.style).css({pointerEvents:o.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),s.outside){let t=this.label;[t.xSetter,t.ySetter].forEach((e,i)=>{t[i?"ySetter":"xSetter"]=n=>{e.call(t,s.distance),t[i?"y":"x"]=n,l&&(l.style[i?"top":"left"]=`${n}px`)}})}this.label.attr({zIndex:8}).shadow(o.shadow).add()}return l&&!l.parentElement&&i.doc.body.appendChild(l),this.label}getPlayingField(){let{body:t,documentElement:e}=h,{chart:i,distance:s,outside:n}=this;return{width:n?Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)-2*s:i.chartWidth,height:n?Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight):i.chartHeight}}getPosition(t,e,i){let s,{distance:n,chart:r,outside:o,pointer:a}=this,{inverted:l,plotLeft:c,plotTop:h,polar:d}=r,{plotX:u=0,plotY:p=0}=i,f={},g=l&&i.h||0,{height:m,width:x}=this.getPlayingField(),b=a.getChartPosition(),y=t=>t*b.scaleX,v=t=>t*b.scaleY,w=i=>{let s="x"===i;return[i,s?x:m,s?t:e].concat(o?[s?y(t):v(e),s?b.left-n+y(u+c):b.top-n+v(p+h),0,s?x:m]:[s?t:e,s?u+c:p+h,s?c:h,s?c+r.plotWidth:h+r.plotHeight])},S=w("y"),C=w("x"),A=!!i.negative;!d&&r.hoverSeries?.yAxis?.reversed&&(A=!A);let E=!this.followPointer&&k(i.ttBelow,!d&&!l===A),M=function(t,e,i,s,r,a,l){let c=o?"y"===t?v(n):y(n):n,h=(i-s)/2,d=s<r-n,u=r+n+s<e,p=r-c-i+h,m=r+c-h;if(E&&u)f[t]=m;else if(!E&&d)f[t]=p;else if(d)f[t]=Math.min(l-s,p-g<0?p:p-g);else{if(!u)return!1;f[t]=Math.max(a,m+g+i>e?m:m+g)}}
2,T=function(t,e,i,s,r){if(r<n||r>e-n)return!1;f[t]=r<i/2?1:r>e-s/2?e-s-2:r-i/2},P=function(t){[S,C]=[C,S],s=t},O=()=>{!1!==M.apply(0,S)?!1!==T.apply(0,C)||s||(P(!0),O()):s?f.x=f.y=0:(P(!0),O())};return(l&&!d||this.len>1)&&P(),O(),f}hide(t){let e=this;r.clearTimeout(this.hideTimer),t=k(t,this.options.hideDelay),this.isHidden||(this.hideTimer=E(function(){let i=e.getLabel();e.getLabel().animate({opacity:0},{duration:t?150:t,complete:()=>{i.hide(),e.container&&e.container.remove()}}),e.isHidden=!0},t))}init(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=k(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))}shouldStickOnContact(t){return!(this.followPointer||!this.options.stickOnContact||t&&!this.pointer.inClass(t.target,"highcharts-tooltip"))}move(t,e,i,s){let n=this,r=a(!n.isHidden&&n.options.animation),o={x:t,y:e};n.followPointer||(n.len||0)>1||(o.anchorX=i,o.anchorY=s),r.step=()=>n.drawTracker(),n.getLabel().animate(o,r)}refresh(t,e){let{chart:i,options:s,pointer:n,shared:o}=this,a=A(t),c=a[0],h=[],d=s.format,u=s.formatter||this.defaultFormatter,p=i.styledMode,f={},g=this.allowShared;if(!s.enabled||!c.series)return;r.clearTimeout(this.hideTimer),this.allowShared=!(!y(t)&&t.series&&t.series.noSharedTooltip),g=g&&!this.allowShared,this.followPointer=!this.split&&c.series.tooltipOptions.followPointer;let m=this.getAnchor(t,e),x=m[0],v=m[1];o&&this.allowShared?(n.applyInactiveState(a),a.forEach(function(t){t.setState("hover"),h.push(t.getLabelConfig())}),(f=c.getLabelConfig()).points=h):f=c.getLabelConfig(),this.len=h.length;let S=w(d)?l(d,f,i):u.call(f,this),C=c.series;if(this.distance=k(C.tooltipOptions.distance,16),!1===S)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(S,a);else{let t=x,r=v;if(e&&n.isDirectTouch&&(t=e.chartX-i.plotLeft,r=e.chartY-i.plotTop),!i.polar&&!1!==C.options.clip&&!a.some(e=>n.isDirectTouch||e.series.shouldShowTooltip(t,r)))return void this.hide();{let t=this.getLabel(g&&this.tt||{});(!s.style.width||p)&&t.css({width:(this.outside?this.getPlayingField():i.spacingBox).width+"px"}),t.attr({class:this.getClassName(c),text:S&&S.join?S.join(""):S}),p||t.attr({stroke:s.borderColor||c.color||C.color||"#666666"}),this.updatePosition({plotX:x,plotY:v,negative:c.negative,ttBelow:c.ttBelow,h:m[2]||0})}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}b(this,"refresh")}renderSplit(t,e){let i=this,{chart:s,chart:{chartWidth:n,chartHeight:r,plotHeight:o,plotLeft:a,plotTop:l,scrollablePixelsY:c=0,scrollablePixelsX:p,styledMode:g},distance:m,options:b,options:{positioner:y},pointer:v}=i,{scrollLeft:S=0,scrollTop:C=0}=s.scrollablePlotArea?.scrollingContainer||{},A=i.outside&&"number"!=typeof p?h.documentElement.getBoundingClientRect():{left:S,right:S+n,top:C,bottom:C+r},E=i.getLabel(),M=this.renderer||s.renderer,T=!(!s.xAxis[0]||!s.xAxis[0].opposite),{left:P,top:O}=v.getChartPosition(),L=l+C,_=0,I=o-c;function D(t,e,s,n,r=!0){let o,a;return s?(o=T?0:I,a=f(t-n/2,A.left,A.right-n-(i.outside?P:0))):(o=e-L,a=f(a=r?t-n-m:t+m,r?a:A.left,A.right)),{x:a,y:o}}w(t)&&(t=[!1,t]);let R=t.slice(0,e.length+1).reduce(function(t,s,n){if(!1!==s&&""!==s){let r=e[n-1]||{isHeader:!0,plotX:e[0].plotX,plotY:o,series:{}},c=r.isHeader,h=c?i:r.series,d=h.tt=function(t,e,s){let n=t,{isHeader:r,series:o}=e;if(!n){let t={padding:b.padding,r:b.borderRadius};g||(t.fill=b.backgroundColor,t["stroke-width"]=b.borderWidth??1),n=M.label("",0,0,b[r?"headerShape":"shape"],void 0,void 0,b.useHTML).addClass(i.getClassName(e,!0,r)).attr(t).add(E)}return n.isActive=!0,n.attr({text:s}),g||n.css(b.style).attr({stroke:b.borderColor||e.color||o.color||"#333333"}),n}(h.tt,r,s.toString()),u=d.getBBox(),p=u.width+d.strokeWidth();c&&(_=u.height,I+=_,T&&(L-=_));let{anchorX:x,anchorY:v}=function(t){let e,i,{isHeader:s,plotX:n=0,plotY:r=0,series:c}=t;if(s)e=Math.max(a+n,a),i=l+o/2;else{let{xAxis:t,yAxis:s}=c;e=t.pos+f(n,-m,t.len+m),c.shouldShowTooltip(0,s.pos-l+r,{ignoreX:!0})&&(i=s.pos+r)}return{anchorX:e=f(e,A.left-m,A.right+m),anchorY:i}}(r);if("number"==typeof v){let e=u.height+1,s=y?y.call(i,p,e,r):D(x,v,c,p);t.push({align:y?0:void 0,anchorX:x,anchorY:v,boxWidth:p,point:r,rank:k(s.rank,c?1:0),size:e,target:s.y,tt:d,x:s.x})}else d.isActive=!1}return t},[]);!y&&R.some(t=>{let{outside:e}=i,s=(e?P:0)+t.anchorX;return s<A.left&&s+t.boxWidth<A.right||s<P-A.left+t.boxWidth&&A.right-s>s})&&(R=R.map(t=>{let{x:e,y:i}=D(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return x(t,{target:i,x:e})})),i.cleanSplit(),u(R,I);let N={left:P,right:P};R.forEach(function(t){let{x:e,boxWidth:s,isHeader:n}=t;!n&&(i.outside&&P+e<N.left&&(N.left=P+e),!n&&i.outside&&N.left+s>N.right&&(N.right=P+e))}),R.forEach(function(t){let{x:e,anchorX:s,anchorY:n,pos:r,point:{isHeader:o}}=t,a={visibility:void 0===r?"hidden":"inherit",x:e,y:(r||0)+L,anch
vendor: 1,653 bytes, line 2
2orX:s,anchorY:n};if(i.outside&&e<s){let t=P-N.left;t>0&&(o||(a.x=e+t,a.anchorX=s+t),o&&(a.x=(N.right-N.left)/2,a.anchorX=s+t))}t.tt.attr(a)});let{container:B,outside:j,renderer:F}=i;if(j&&B&&F){let{width:t,height:e,x:i,y:s}=E.getBBox();F.setSize(t+i,e+s,!1),B.style.left=N.left+"px",B.style.top=O+"px"}d&&E.attr({opacity:1===E.opacity?.999:1})}drawTracker(){if(!this.shouldStickOnContact())return void(this.tracker&&(this.tracker=this.tracker.destroy()));let t=this.chart,e=this.label,i=this.shared?t.hoverPoints:t.hoverPoint;if(!e||!i)return;let s={x:0,y:0,width:0,height:0},n=this.getAnchor(i),r=e.getBBox();n[0]+=t.plotLeft-(e.translateX||0),n[1]+=t.plotTop-(e.translateY||0),s.x=Math.min(0,n[0]),s.y=Math.min(0,n[1]),s.width=n[0]<0?Math.max(Math.abs(n[0]),r.width-n[0]):Math.max(Math.abs(n[0]),r.width),s.height=n[1]<0?Math.max(Math.abs(n[1]),r.height-Math.abs(n[1])):Math.max(Math.abs(n[1]),r.height),this.tracker?this.tracker.attr(s):(this.tracker=e.renderer.rect(s).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(t){return t.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(t,e){let i=t.series,s=i.tooltipOptions,n=i.xAxis,r=n&&n.dateTime,o={isFooter:e,labelConfig:t},a=s.xDateFormat,c=s[e?"footerFormat":"headerFormat"];return b(this,"headerFormatter",o,function(e){r&&!a&&v(t.key)&&(a=r.getXDateFormat(t.key,s.dateTimeLabelFormats)),r&&a&&(t.point&&t.point.tooltipDateKeys||["key"]).forEac
2h(function(t){c=c.replace("{point."+t+"}","{point."+t+":"+a+"}")}),i.chart.styledMode&&(c=this.styledModeFormat(c)),e.text=l(c,{point:t,series:i},this.chart)}),o.text}update(t){this.destroy(),this.init(this.chart,S(!0,this.options,t))}updatePosition(t){let e,{chart:i,container:s,distance:n,options:r,pointer:o,renderer:a}=this,{height:l=0,width:c=0}=this.getLabel(),{left:h,top:d,scaleX:u,scaleY:p}=o.getChartPosition(),f=(r.positioner||this.getPosition).call(this,c,l,t),m=(t.plotX||0)+i.plotLeft,x=(t.plotY||0)+i.plotTop;a&&s&&(r.positioner&&(f.x+=h-n,f.y+=d-n),e=(r.borderWidth||0)+2*n+2,a.setSize(c+e,l+e,!1),(1!==u||1!==p)&&(g(s,{transform:`scale(${u}, ${p})`}),m*=u,x*=p),m+=h-f.x,x+=d-f.y),this.move(Math.round(f.x),Math.round(f.y||0),m,x)}}return(o=M||(M={})).compose=function(t){C(c,"Core.Tooltip")&&p(t,"afterInit",function(){let t=this.chart;t.options.tooltip&&(t.tooltip=new o(t,t.options.tooltip,this))})},M}),i(e,"Core/Series/Point.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Defaults.js"],e["Core/Templating.js"],e["Core/Utilities.js"]],function(t,e,i,s,n){let{animObject:r}=e,{defaultOptions:o}=i,{format:a}=s,{addEvent:l,crisp:c,erase:h,extend:d,fireEvent:u,getNestedProperty:p,isArray:f,isFunction:g,isNumber:m,isObject:x,merge:b,pick:y,syncTimeout:v,removeEvent:w,uniqueKey:S}=n;class k{animateBeforeDestroy(){let t=this,e={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach(function(i){t[i]=t[i].animate("dataLabel"===i?{x:t[i].startXPos,y:t[i].startYPos,opacity:0}:e)}),i.plural.forEach(function(e){t[e].forEach(function(e){e.element&&e.animate(d({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))})})}applyOptions(t,e){let i=this.series,s=i.options.pointValKey||i.pointValKey;return d(this,t=k.prototype.optionsToObject.call(this,t)),this.options=this.options?d(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,s&&(this.y=k.prototype.getNestedProperty.call(this,s)),this.selected&&(this.state="select"),"name"in this&&void 0===e&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),void 0===this.x&&i?this.x=e??i.autoIncrement():m(t.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(t.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let t=this,e=t.series,i=e.chart,s=e.options.dataSorting,n=i.hoverPoints,o=r(t.series.chart.renderer.globalAnimation),a=()=>{for(let e in(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(w(t),t.destroyElements()),t)delete t[e]};t.legendItem&&i.legend.destroyItem(t),n&&(t.setState(),h(n,t),n.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),s&&s.enabled?(this.animateBeforeDestroy(),v(a,o.duration)):a(),i.pointCount--}this.destroyed=!0}destroyElements(t){let e=this,i=e.getGraphicalProps(t);i.singular.forEach(function(t){e[t]=e[t].destroy()}),i.plural.forEach(function(t){e[t].forEach(function(t){t&&t.element&&t.destroy()}),delete e[t]})}firePointEvent(t,e,i){let s=this,n=this.series.options;s.manageEvent(t),"click"===t&&n.allowPointSelect&&(i=function(t){!s.destroyed&&s.select&&s.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),u(s,t,e,i)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(t){let e,i,s=this,n=[],r={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&n.push("graphic","connector"),t.dataLabel&&n.push("dataLabel","dataLabelPath","dataLabelUpper"),i=n.length;i--;)s[e=n[i]]&&r.singular.push(e);return["graphic","dataLabel"].forEach(function(e){let i=e+"s";t[e]&&s[i]&&r.plural.push(i)}),r}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(t){return t?0===t.indexOf("custom.")?p(t,this.options):this[t]:void 0}getZone(){let t,e=this.series,i=e.zones,s=e.zoneAxis||"y",n=0;for(t=i[0];this[s]>=t.value;)t=i[++n];return this.nonZonedColor||(this.nonZonedColor=this.color),t&&t.color&&!this.options.color?this.color=t.color:this.color=this.nonZonedColor,t}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(t,e,i){this.formatPrefix="point",this.visible=!0,this.series=t,this.applyOptions(e,i),this.id??(this.id=S()),this.resolveColor(),t.chart.pointCount++,u(this,"afterInit")}isValid(){return(m(this.x)||this.x instanceof Date)&&m(this.y)}optionsToObject(t){let e,i=this.series,s=i.options.keys,n=s||i.pointArrayMap||["y"],r=n.length,o={},a=0,l=0;if(m(t)||null===t)o[n[0]]=t;else if(f(t))for(!s&&t.length>r&&("string"==(e=typeof t[0])?o.name=t[0]:"number"===e&&(o.x=t[0]),a++);l<r;)s&&void 0===t[a]||(n[l].indexOf(".")>0?k.prototype.setNestedProperty(o,t[a],n[l]):o[n[l]]=t[a]),a++,l++;else"object"==typeof t&&(o=t,t.dataLabels&&(i.hasDataLabels=()=>!0),t.marker&&(i._hasPointMarkers=!0));return o}pos(t,e=this.plotY){if(!this.destroyed){let{plotX:i,series:s}=this,{chart:n,xAxis:r,yAxis:o}=s,a=0,l=0;if(m(i)&&m(e))return t&&(a=r?r.pos:n.plotLeft,l=o?o.pos:n.plotTop),n.inverted&&r&&o?[o.len-e+l,r.len-i+a]:[i+a,e+l]}}resolveColor(){let t,e,i,s=this.series,n=s.chart.options.chart,r=s.chart.styledMode,o=n.colorCount;delete this.nonZonedColor,s.options.colorByPoint?(r||(t=(e=s.options.colors||s.chart.options.colors)[s.c
2olorCounter],o=e.length),i=s.colorCounter,s.colorCounter++,s.colorCounter===o&&(s.colorCounter=0)):(r||(t=s.color),i=s.colorIndex),this.colorIndex=y(this.options.colorIndex,i),this.color=y(this.options.color,t)}setNestedProperty(t,e,i){return i.split(".").reduce(function(t,i,s,n){let r=n.length-1===s;return t[i]=r?e:x(t[i],!0)?t[i]:{},t[i]},t),t}shouldDraw(){return!this.isNull}tooltipFormatter(t){let e=this.series,i=e.tooltipOptions,s=y(i.valueDecimals,""),n=i.valuePrefix||"",r=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEach(function(e){e="{point."+e,(n||r)&&(t=t.replace(RegExp(e+"}","g"),n+e+"}"+r)),t=t.replace(RegExp(e+"}","g"),e+":,."+s+"f}")}),a(t,{point:this,series:this.series},e.chart)}update(t,e,i,s){let n,r=this,o=r.series,a=r.graphic,l=o.chart,c=o.options;function h(){r.applyOptions(t);let s=a&&r.hasMockGraphic,h=null===r.y?!s:s;a&&h&&(r.graphic=a.destroy(),delete r.hasMockGraphic),x(t,!0)&&(a&&a.element&&t&&t.marker&&void 0!==t.marker.symbol&&(r.graphic=a.destroy()),t?.dataLabels&&r.dataLabel&&(r.dataLabel=r.dataLabel.destroy())),n=r.index,o.updateParallelArrays(r,n),c.data[n]=x(c.data[n],!0)||x(t,!0)?r.options:y(t,c.data[n]),o.isDirty=o.isDirtyData=!0,!o.fixedBox&&o.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===c.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(i)}e=y(e,!0),!1===s?h():r.firePointEvent("update",{options:t},h)}remove(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}select(t,e){let i=this,s=i.series,n=s.chart;t=y(t,!i.selected),this.selectedStaging=t,i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,s.options.data[s.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||n.getSelectedPoints().forEac
2h(function(t){let e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(n.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(t){let{inverted:e,pointer:i}=this.series.chart;i&&(t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e),i.runPointActions(t,this))}onMouseOut(){let t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null}manageEvent(t){let e=b(this.series.options.point,this.options),i=e.events?.[t];!g(i)||this.hcEvents?.[t]&&-1!==this.hcEvents?.[t]?.map(t=>t.fn).indexOf(i)?this.importedUserEvent&&!i&&this.hcEvents?.[t]&&(w(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent):(this.importedUserEvent?.(),this.importedUserEvent=l(this,t,i))}setState(e,i){let s,n,r,a,l=this.series,c=this.state,h=l.options.states[e||"normal"]||{},p=o.plotOptions[l.type].marker&&l.options.marker,f=p&&!1===p.enabled,g=p&&p.states&&p.states[e||"normal"]||{},x=!1===g.enabled,b=this.marker||{},v=l.chart,w=p&&l.markerAttribs,S=l.halo,k=l.stateMarkerGraphic;if((e=e||"")===this.state&&!i||this.selected&&"select"!==e||!1===h.enabled||e&&(x||f&&!1===g.enabled)||e&&b.states&&b.states[e]&&!1===b.states[e].enabled)return;if(this.state=e,w&&(s=l.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(c&&this.graphic.removeClass("highcharts-point-"+c),e&&this.graphic.addClass("highcharts-point-"+e),!v.styledMode){n=l.pointAttribs(this,e),r=y(v.options.chart.animation,h.animation);let t=n.opacity;l.options.inactiveOtherPoints&&m(t)&&(this.dataLabels||[]).forEach(function(e){e&&!e.hasClass("highcharts-data-label-hidden")&&(e.animate({opacity:t},r),e.connector&&e.connector.animate({opacity:t},r))}),this.graphic.animate(n,r)}s&&this.graphic.animate(s,y(v.options.chart.animation,g.animation,p.animation)),k&&k.hide()}else e&&g&&(a=b.symbol||l.symbol,k&&k.currentSymbol!==a&&(k=k.destroy()),s&&(k?k[i?"animate":"attr"]({x:s.x,y:s.y}):a&&(l.stateMarkerGraphic=k=v.renderer.symbol(a,s.x,s.y,s.width,s.height).add(l.markerGroup),k.currentSymbol=a)),!v.styledMode&&k&&"inactive"!==this.state&&k.attr(l.pointAttribs(this,e))),k&&(k[e&&this.isInside?"show":"hide"](),k.element.point=this,k.addClass(this.getClassName(),!0));let C=h.halo,A=this.graphic||k,E=A&&A.visibility||"inherit";C&&C.size&&A&&"hidden"!==E&&!this.isCluster?(S||(l.halo=S=v.renderer.path().add(A.parentGroup)),S.show()[i?"animate":"attr"]({d:this.haloPath(C.size)}),S.attr({class:"highcharts-halo highcharts-color-"+y(this.colorIndex,l.colorIndex)+(this.className?" "+this.className:""),visibility:E,zIndex:-1}),S.point=this,v.styledMode||S.attr(d({fill:this.color||l.color,"fill-opacity":C.opacity},t.filterUserAttributes(C.attributes||{})))):S?.point?.haloPath&&!S.point.destroyed&&S.animate({d:S.point.haloPath(0)},null,S.hide),u(this,"afterSetState",{state:e})}haloPath(t){let e=this.pos();return e?this.series.chart.renderer.symbols.circle(c(e[0],1)-t,e[1]-t,2*t,2*t):[]}}return k}),i(e,"Core/Pointer.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e,i){var s;let{parse:n}=t,{charts:r,composed:o,isTouchDevice:a}=e,{addEvent:l,attr:c,css:h,extend:d,find:u,fireEvent:p,isNumber:f,isObject:g,objectEach:m,offset:x,pick:b,pushUnique:y,splat:v}=i;class w{applyInactiveState(t){let e,i=[];(t||[]).forEach(function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")})}destroy(){let t=this;this.eventsToUnbind.forEach(t=>t()),this.eventsToUnbind=[],!e.chartCount&&(w.unbindDocumentMouseUp&&w.unbindDocumentMouseUp.forEach(t=>t()),w.unbindDocumentTouchEnd&&(w.unbindDocumentTouchEnd=w.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),m(t,function(e,i){t[i]=void 0})}getSelectionMarkerAttrs(t,e){let i={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return p(this,"getSelectionMarkerAttrs",i,i=>{let s,{chart:n,zoomHor:r,zoomVert:o}=this,{mouseDownX:a=0,mouseDownY:l=0}=n,c=i.attrs;c.x=n.plotLeft,c.y=n.plotTop,c.width=r?1:n.plotWidth,c.height=o?1:n.plotHeight,r&&(s=t-a,c.width=Math.max(1,Math.abs(s)),c.x=(s>0?0:s)+a),o&&(s=e-l,c.height=Math.max(1,Math.abs(s)),c.y=(s>0?0:s)+l)}),i}drag(t){let e,{chart:i}
2=this,{mouseDownX:s=0,mouseDownY:r=0}=i,{panning:o,panKey:a,selectionMarkerFill:l}=i.options.chart,c=i.plotLeft,h=i.plotTop,d=i.plotWidth,u=i.plotHeight,p=g(o)?o.enabled:o,f=a&&t[`${a}Key`],m=t.chartX,x=t.chartY,b=this.selectionMarker;if((!b||!b.touch)&&(m<c?m=c:m>c+d&&(m=c+d),x<h?x=h:x>h+u&&(x=h+u),this.hasDragged=Math.sqrt(Math.pow(s-m,2)+Math.pow(r-x,2)),this.hasDragged>10)){e=i.isInsidePlot(s-c,r-h,{visiblePlotOnly:!0});let{shapeType:a,attrs:d}=this.getSelectionMarkerAttrs(m,x);(i.hasCartesianSeries||i.mapView)&&this.hasZoom&&e&&!f&&!b&&(this.selectionMarker=b=i.renderer[a](),b.attr({class:"highcharts-selection-marker",zIndex:7}).add(),i.styledMode||b.attr({fill:l||n("#334eff").setOpacity(.25).get()})),b&&b.attr(d),e&&!b&&p&&i.pan(t,o)}}dragStart(t){let e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=t.chartX,e.mouseDownY=t.chartY}getSelectionBox(t){let e={args:{marker:t},result:t.getBBox()};return p(this,"getSelectionBox",e),e.result}drop(t){let e,{chart:i,selectionMarker:s}=this;for(let t of i.axes)t.isPanning&&(t.isPanning=!1,(t.options.startOnTick||t.options.endOnTick||t.series.some(t=>t.boosted))&&(t.forceRedraw=!0,t.setExtremes(t.userMin,t.userMax,!1),e=!0));if(e&&i.redraw(),s&&t){if(this.hasDragged){let e=this.getSelectionBox(s);i.transform({axes:i.axes.filter(t=>t.zoomEnabled&&("xAxis"===t.coll&&this.zoomX||"yAxis"===t.coll&&this.zoomY)),selection:{originalEvent:t,xAxis:[],yAxis:[],...e},from:e})}f(i.index)&&(this.selectionMarker=s.destroy())}i&&f(i.index)&&(h(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(t,e,i){let s;return t.forEach(function(t){let n=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y"),r=t.searchPoint(i,n);g(r,!0)&&r.series&&(!g(s,!0)||function(t,i){let s=t.distX-i.distX,n=t.dist-i.dist,r=i.series.group?.zIndex-t.series.group?.zIndex;return 0!==s&&e?s:0!==n?n:0!==r?r:t.series.index>i.series.index?-1:1}(s,r)>0)&&(s=r)}),s}getChartCoordinatesFromPoint(t,e){let{xAxis:i,yAxis:s}=t.series,n=t.shapeArgs;if(i&&s){let r=t.clientX??t.plotX??0,o=t.plotY||0;return t.isNode&&n&&f(n.x)&&f(n.y)&&(r=n.x,o=n.y),e?{chartX:s.len+s.pos-o,chartY:i.len+i.pos-r}:{chartX:r+i.pos,chartY:o+s.pos}}if(n&&n.x&&n.y)return{chartX:n.x,chartY:n.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:t}=this.chart,e=x(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};let{offsetHeight:i,offsetWidth:s}=t;return s>2&&i>2&&(this.chartPosition.scaleX=e.width/s,this.chartPosition.scaleY=e.height/i),this.chartPosition}getCoordinates(t){let e={xAxis:[],yAxis:[]};for(let i of this.chart.axes)e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])});return e}getHoverData(t,e,i,s,n,r){let o,a=[],l=function(t){return t.visible&&!(!n&&t.directTouch)&&b(t.options.enableMouseTracking,!0)},c=e,h={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:n};p(this,"beforeGetHoverData",h),o=c&&!c.stickyTracking?[c]:i.filter(t=>t.stickyTracking&&(h.filter||l)(t));let d=s&&t||!r?t:this.findNearestKDPoint(o,n,r);return c=d&&d.series,d&&(n&&!c.noSharedTooltip?(o=i.filter(function(t){return h.filter?h.filter(t):l(t)&&!t.noSharedTooltip})).forEach(function(t){let e=u(t.points,function(t){return t.x===d.x&&!t.isNull});g(e)&&(t.boosted&&t.boost&&(e=t.boost.getPoint(e)),a.push(e))}):a.push(d)),p(this,"afterGetHoverData",h={hoverPoint:d}),{hoverPoint:h.hoverPoint,hoverSeries:c,hoverPoints:a}}getPointFromEvent(t){let e,i=t.target;for(;i&&!e;)e=i.point,i=i.parentNode;return e}onTrackerMouseOut(t){let e=this.chart,i=t.relatedTarget,s=e.hoverSeries;this.isDirectTouch=!1,!s||!i||s.stickyTracking||this.inClass(i,"highcharts-tooltip")||this.inClass(i,"highcharts-series-"+s.index)&&this.inClass(i,"highcharts-tracker")||s.onMouseOut()}inClass(t,e){let i,s=t;for(;s;){if(i=c(s,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}s=s.parentElement}}constructor(t,e){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=e,this.chart=t,this.runChartClick=!!e.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),p(this,"afterInit")}normalize(t,e){let i=t.touches,s=i?i.length?i.item(0):b(i.changedTouches,t.changedTouches)[0]:t;e||(e=this.getChartPosition());let n=s.pageX-e.left,r=s.pageY-e.top;return d(t,{chartX:Math.round(n/=e.scaleX),chartY:Math.round(r/=e.scaleY)})}onContainerClick(t){let e=this.chart,i=e.hoverPoint,s=this.normalize(t),n=e.plotLeft,r=e.plotTop;!e.cancelClick&&(i&&this.inClass(s.target,"highcharts-tracker")?(p(i.series,"click",d(s,{point:i}
vendor: 4,437 bytes, line 2
2)),e.hoverPoint&&i.firePointEvent("click",s)):(d(s,this.getCoordinates(s)),e.isInsidePlot(s.chartX-n,s.chartY-r,{visiblePlotOnly:!0})&&p(e,"click",s)))}onContainerMouseDown(t){let i=!(1&~(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||i)&&(this.zoomOption(t),i&&t.preventDefault?.(),this.dragStart(t))}onContainerMouseLeave(t){let{pointer:e}=r[b(w.hoverChartIndex,-1)]||{};t=this.normalize(t),this.onContainerMouseMove(t),e&&!this.inClass(t.relatedTarget,"highcharts-tooltip")&&(e.reset(),e.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(t){let e=this.chart,i=e.tooltip,s=this.normalize(t);this.setHoverChartIndex(t),("mousedown"===e.mouseIsDown||this.touchSelect(s))&&this.drag(s),!e.openMenu&&(this.inClass(s.target,"highcharts-tracker")||e.isInsidePlot(s.chartX-e.plotLeft,s.chartY-e.plotTop,{visiblePlotOnly:!0}))&&(!i||!i.shouldStickOnContact(s))&&(this.inClass(s.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(s))}onDocumentTouchEnd(t){this.onDocumentMouseUp(t)}onContainerTouchMove(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)}onContainerTouchStart(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))}onDocumentMouseMove(t){let e=this.chart,i=e.tooltip,s=this.chartPosition,n=this.normalize(t,s);!s||e.isInsidePlot(n.chartX-e.plotLeft,n.chartY-e.plotTop,{visiblePlotOnly:!0})||i&&i.shouldStickOnContact(n)||n.target!==e.container.ownerDocument&&this.inClass(n.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(t){r[b(w.hoverChartIndex,-1)]?.pointer?.drop(t)}pinch(t){let e=this,{chart:i,hasZoom:s,lastTouches:n}=e,r=[].map.call(t.touches||[],t=>e.normalize(t)),o=r.length,a=1===o&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),l=i.tooltip,c=1===o&&b(l?.options.followTouchMove,!0);o>1?e.initiated=!0:c&&(e.initiated=!1),s&&e.initiated&&!a&&!1!==t.cancelable&&t.preventDefault(),"touchstart"===t.type?(e.pinchDown=r,e.res=!0,i.mouseDownX=t.chartX):c?this.runPointActions(e.normalize(t)):n&&(p(i,"touchpan",{originalEvent:t,touches:r},()=>{let e=t=>{let e=t[0],i=t[1]||e;return{x:e.chartX,y:e.chartY,width:i.chartX-e.chartX,height:i.chartY-e.chartY}};i.transform({axes:i.axes.filter(t=>t.zoomEnabled&&(this.zoomHor&&t.horiz||this.zoomVert&&!t.horiz)),to:e(r),from:e(n),trigger:t.type})}),e.res&&(e.res=!1,this.reset(!1,0))),e.lastTouches=r}reset(t,e){let i=this.chart,s=i.hoverSeries,n=i.hoverPoint,r=i.hoverPoints,o=i.tooltip,a=o&&o.shared?r:n;t&&a&&v(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?o&&a&&v(a).length&&(o.refresh(a),o.shared&&r?r.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):n&&(n.setState(n.state,!0),i.axes.forEach(function(t){t.crosshair&&n.series[t.coll]===t&&t.drawCrosshair(null,n)}))):(n&&n.onMouseOut(),r&&r.forEach(function(t){t.setState()}),s&&s.onMouseOut(),o&&o.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),i.hoverPoints=i.hoverPoint=void 0)}runPointActions(t,e,i){let s=this.chart,n=s.series,o=s.tooltip&&s.tooltip.options.enabled?s.tooltip:void 0,a=!!o&&o.shared,c=e||s.hoverPoint,h=c&&c.series||s.hoverSeries,d=(!t||"touchmove"!==t.type)&&(!!e||h&&h.directTouch&&this.isDirectTouch),p=this.getHoverData(c,h,n,d,a,t);c=p.hoverPoint,h=p.hoverSeries;let f=p.hoverPoints,g=h&&h.tooltipOptions.followPointer&&!h.tooltipOptions.split,m=a&&h&&!h.noSharedTooltip;if(c&&(i||c!==s.hoverPoint||o&&o.isHidden)){if((s.hoverPoints||[]).forEach(function(t){-1===f.indexOf(t)&&t.setState()}),s.hoverSeries!==h&&h.onMouseOver(),this.applyInactiveState(f),(f||[]).forEach(function(t){t.setState("hover")}),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!c.series)return;s.hoverPoints=f,s.hoverPoint=c,c.firePointEvent("mouseOver",void 0,()=>{o&&c&&o.refresh(m?f:c,t)})}else if(g&&o&&!o.isHidden){let e=o.getAnchor([{}],t);s.isInsidePlot(e[0],e[1],{visiblePlotOnly:!0})&&o.updatePosition({plotX:e[0],plotY:e[1]})}this.unDocMouseMove||(this.unDocMouseMove=l(s.container.ownerDocument,"mousemove",t=>r[w.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(t)),this.eventsToUnbind.push(this.unDocMouseMove)),s.axes.forEac
2h(function(e){let i,n=b((e.crosshair||{}).snap,!0);!n||(i=s.hoverPoint)&&i.series[e.coll]===e||(i=u(f,t=>t.series&&t.series[e.coll]===e)),i||!n?e.drawCrosshair(t,i):e.hideCrosshair()})}setDOMEvents(){let t=this.chart.container,e=t.ownerDocument;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(l(t,"mouseenter",this.onContainerMouseEnter.bind(this)),l(t,"mouseleave",this.onContainerMouseLeave.bind(this))),w.unbindDocumentMouseUp||(w.unbindDocumentMouseUp=[]),w.unbindDocumentMouseUp.push(l(e,"mouseup",this.onDocumentMouseUp.bind(this)));let i=this.chart.renderTo.parentElement;for(;i&&"BODY"!==i.tagName;)this.eventsToUnbind.push(l(i,"scroll",()=>{delete this.chartPosition})),i=i.parentElement;this.eventsToUnbind.push(l(t,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),l(t,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),w.unbindDocumentTouchEnd||(w.unbindDocumentTouchEnd=l(e,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),l(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!a)return;let t=this.pointerCaptureEventsToUnbind,e=this.chart,i=e.container,s=b(e.options.tooltip?.followTouchMove,!0)&&e.series.some(t=>t.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&s?(t.push(l(i,"pointerdown",t=>{t.target?.hasPointerCapture(t.pointerId)&&t.target?.releasePointerCapture(t.pointerId)}),l(i,"pointermove",t=>{e.pointer?.getPointFromEvent(t)?.onMouseOver(t)})),e.styledMode||h(i,{"touch-action":"none"}),i.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!s&&(t.forEach(t=>t()),t.length=0,e.styledMode||h(i,{"touch-action":b(e.options.chart.style?.["touch-action"],"manipulation")}),i.className=i.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(t){let i=this.chart,s=e.charts[b(w.hoverChartIndex,-1)];if(s&&s!==i){let e={relatedTarget:i.container};t&&!t?.relatedTarget&&(t={...e,...t}),s.pointer?.onContainerMouseLeave(t||e)}s&&s.mouseIsDown||(w.hoverChartIndex=i.index)}touch(t,e){let i,{chart:s,pinchDown:n=[]}=this;this.setHoverChartIndex(),1===(t=this.normalize(t)).touches.length?s.isInsidePlot(t.chartX-s.plotLeft,t.chartY-s.plotTop,{visiblePlotOnly:!0})&&!s.openMenu?(e&&this.runPointActions(t),"touchmove"===t.type&&(i=!!n[0]&&Math.pow(n[0].chartX-t.chartX,2)+Math.pow(n[0].chartY-t.chartY,2)>=16),b(i,!0)&&this.pinch(t)):e&&this.reset():2===t.touches.length&&this.pinch(t)}touchSelect(t){return!(!this.chart.zooming.singleTouch||!t.touches||1!==t.touches.length)}zoomOption(t){let e,i,s=this.chart,n=s.inverted,r=s.zooming.type||"";/touch/.test(t.type)&&(r=b(s.zooming.pinchType,r)),this.zoomX=e=/x/.test(r),this.zoomY=i=/y/.test(r),this.zoomHor=e&&!n||i&&n,this.zoomVert=i&&!n||e&&n,this.hasZoom=e||i}}return(s=w||(w={})).compose=function(t){y(o,"Core.Pointer")&&l(t,"beforeRender",function(){this.pointer=new s(this,this.options)})},w}),i(e,"Core/Legend/LegendSymbol.js",[e["Core/Utilities.js"]],function(t){var e;let{extend:i,merge:s,pick:n}=t;return function(t){function e(t,e,r){let o,a=this.legendItem=this.legendItem||{},{chart:l,options:c}=this,{baseline:h=0,symbolWidth:d,symbolHeight:u}=t,p=this.symbol||"circle",f=u/2,g=l.renderer,m=a.group,x=h-Math.round(u*(r?.4:.3)),b={},y=c.marker,v=0;if(l.styledMode||(b["stroke-width"]=Math.min(c.lineWidth||0,24),c.dashStyle?b.dashstyle=c.dashStyle:"square"===c.linecap||(b["stroke-linecap"]="round")),a.line=g.path().addClass("highcharts-graph").attr(b).add(m),r&&(a.area=g.path().addClass("highcharts-area").add(m)),b["stroke-linecap"]&&(v=Math.min(a.line.strokeWidth(),d)/2),d){let t=[["M",v,x],["L",d-v,x]];a.line.attr({d:t}),a.area?.attr({d:[...t,["L",d-v,h],["L",v,h]]})}if(y&&!1!==y.enabled&&d){let t=Math.min(n(y.radius,f),f);0===p.indexOf("url")&&(y=s(y,{width:u,height:u}),t=0),a.symbol=o=g.symbol(p,d/2-t,x-t,2*t,2*t,i({context:"legend"},y)).addClass("highcharts-point").add(m),o.isMarker=!0}}t.areaMarker=function(t,i){e.call(this,t,i,!0)},t.lineMarker=e,t.rectangle=function(t,e){let i=e.legendItem||{}
2,s=t.options,r=t.symbolHeight,o=s.squareSymbol,a=o?r:t.symbolWidth;i.symbol=this.chart.renderer.rect(o?(t.symbolWidth-r)/2:0,t.baseline-r+1,a,r,n(t.options.symbolRadius,r/2)).addClass("highcharts-point").attr({zIndex:3}).add(i.group)}}(e||(e={})),e}),i(e,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:t}=this.series.chart;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),i(e,"Core/Series/SeriesRegistry.js",[e["Core/Globals.js"],e["Core/Defaults.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(t,e,i,s){var n;let{defaultOptions:r}=e,{extend:o,extendClass:a,merge:l}=s;return function(e){function s(t,s){let n=r.plotOptions||{},o=s.defaultOptions,a=s.prototype;return a.type=t,a.pointClass||(a.pointClass=i),!e.seriesTypes[t]&&(o&&(n[t]=o),e.seriesTypes[t]=s,!0)}e.seriesTypes=t.seriesTypes,e.registerSeriesType=s,e.seriesType=function(t,n,c,h,d){let u=r.plotOptions||{};if(n=n||"",u[t]=l(u[n],c),delete e.seriesTypes[t],s(t,a(e.seriesTypes[n]||function(){},h)),e.seriesTypes[t].prototype.type=t,d){class s extends i{}o(s.prototype,d),e.seriesTypes[t].prototype.pointClass=s}return e.seriesTypes[t]}}(n||(n={})),n}),i(e,"Core/Series/Series.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Defaults.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/Point.js"],e["Core/Series/SeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(t,e,i,s,n,r,o,a,l,c){let{animObject:h,setAnimation:d}=t,{defaultOptions:u}=e,{registerEventOptions:p}=i,{svg:f,win:g}=s,{seriesTypes:m}=a,{arrayMax:x,arrayMin:b,clamp:y,correctFloat:v,crisp:w,defined:S,destroyObjectProperties:k,diffObjects:C,erase:A,error:E,extend:M,find:T,fireEvent:P,getClosestDistance:O,getNestedProperty:L,insertItem:_,isArray:I,isNumber:D,isString:R,merge:N,objectEach:B,pick:j,removeEvent:F,splat:z,syncTimeout:H}=c;class X{constructor(){this.zoneAxis="y"}init(t,e){let i;P(this,"init",{options:e});let s=this,n=t.series;this.eventsToUnbind=[],s.chart=t,s.options=s.setOptions(e);let r=s.options,o=!1!==r.visible;s.linkedSeries=[],s.bindAxes(),M(s,{name:r.name,state:"",visible:o,selected:!0===r.selected}),p(this,r);let a=r.events;(a&&a.click||r.point&&r.point.events&&r.point.events.click||r.allowPointSelect)&&(t.runTrackerClick=!0),s.getColor(),s.getSymbol(),s.parallelArrays.forEach(function(t){s[t+"Data"]||(s[t+"Data"]=[])}),s.isCartesian&&(t.hasCartesianSeries=!0),n.length&&(i=n[n.length-1]),s._i=j(i&&i._i,-1)+1,s.opacity=s.options.opacity,t.orderItems("series",_(this,n)),r.dataSorting&&r.dataSorting.enabled?s.setDataSortingOptions():s.points||s.data||s.setData(r.data,!1),P(this,"afterInit")}is(t){return m[t]&&this instanceof m[t]}bindAxes(){let t,e=this,i=e.options,s=e.chart;P(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(n){(s[n]||[]).forEach(function(s){t=s.options,
2(j(i[n],0)===s.index||void 0!==i[n]&&i[n]===t.id)&&(_(e,s.series),e[n]=s,s.isDirty=!0)}),e[n]||e.optionalAxis===n||E(18,!0,s)})}),P(this,"afterBindAxes")}updateParallelArrays(t,e,i){let s=t.series,n=D(e)?function(i){let n="y"===i&&s.toYData?s.toYData(t):t[i];s[i+"Data"][e]=n}:function(t){Array.prototype[e].apply(s[t+"Data"],i)};s.parallelArrays.forEach(n)}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(t,e){let i=t.marker,s=e.marker||{};return i&&(s.enabled&&!i.enabled||s.symbol!==i.symbol||s.height!==i.height||s.width!==i.width)}autoIncrement(t){let e,i,s=this.options,n=s.pointIntervalUnit,r=s.relativeXValue,o=this.chart.time,a=this.xIncrement;return a=j(a,s.pointStart,0),this.pointInterval=i=j(this.pointInterval,s.pointInterval,1),r&&D(t)&&(i*=t),n&&(e=new o.Date(a),"day"===n?o.set("Date",e,o.get("Date",e)+i):"month"===n?o.set("Month",e,o.get("Month",e)+i):"year"===n&&o.set("FullYear",e,o.get("FullYear",e)+i),i=e.getTime()-a),r&&D(t)?a+i:(this.xIncrement=a+i,a)}setDataSortingOptions(){let t=this.options;M(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),S(t.pointRange)||(t.pointRange=1)}setOptions(t){let e,i=this.chart,s=i.options.plotOptions,n=i.userOptions||{},r=N(t),o=i.styledMode,a={plotOptions:s,userOptions:r};P(this,"setOptions",a);let l=a.plotOptions[this.type],c=n.plotOptions||{},h=c.series||{},d=u.plotOptions[this.type]||{},p=c[this.type]||{};this.userOptions=a.userOptions;let f=N(l,s.series,p,r);this.tooltipOptions=N(u.tooltip,u.plotOptions.series?.tooltip,d?.tooltip,i.userOptions.tooltip,c.series?.tooltip,p.tooltip,r.tooltip),this.stickyTracking=j(r.stickyTracking,p.stickyTracking,h.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||f.stickyTracking),null===l.marker&&delete f.marker,this.zoneAxis=f.zoneAxis||"y";let g=this.zones=(f.zones||[]).map(t=>({...t}));return(f.negativeColor||f.negativeFillColor)&&!f.zones&&(e={value:f[this.zoneAxis+"Threshold"]||f.threshold||0,className:"highcharts-negative"},o||(e.color=f.negativeColor,e.fillColor=f.negativeFillColor),g.push(e)),g.length&&S(g[g.length-1].value)&&g.push(o?{}:{color:this.color,fillColor:this.fillColor}),P(this,"afterSetOptions",{options:f}),f}getName(){return j(this.options.name,"Series "+(this.index+1))}getCyclic(t,e,i){let s,n,r=this.chart,o=`${t}Index`,a=`${t}Counter`,l=i?.length||r.options.chart.colorCount;!e&&(S(n=j("color"===t?this.options.colorIndex:void 0,this[o]))?s=n:(r.series.length||(r[a]=0),s=r[a]%l,r[a]+=1),i&&(e=i[s])),void 0!==s&&(this[o]=s),this[t]=e}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||u.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols)}findPointIndex(t,e){let i,s,n,o=t.id,a=t.x,l=this.points,c=this.options.dataSorting;if(o){let t=this.chart.get(o);t instanceof r&&(i=t)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let e=e=>!e.touched&&e.index===t.index;if(c&&c.matchByName?e=e=>!e.touched&&e.name===t.name:this.options.relativeXValue&&(e=e=>!e.touched&&e.options.x===t.x),!(i=T(l,e)))return}return i&&void 0!==(n=i&&i.index)&&(s=!0),void 0===n&&D(a)&&(n=this.xData.indexOf(a,e)),-1!==n&&void 0!==n&&this.cropped&&(n=n>=this.cropStart?n-this.cropStart:n),!s&&D(n)&&l[n]&&l[n].touched&&(n=void 0),n}updateData(t,e){let i,s,n,r,o=this.options,a=o.dataSorting,l=this.points,c=[],h=this.requireSorting,d=t.length===l.length,u=!0;if(this.xIncrement=null,t.forEach(function(t,e){let s,n=S(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},u=n.x;n.id||D(u)?(-1===(s=this.findPointIndex(n,r))||void 0===s?c.push(t):l[s]&&t!==o.data[s]?(l[s].update(t,!1,null,!1),l[s].touched=!0,h&&(r=s+1)):l[s]&&(l[s].touched=!0),(!d||e!==s||a&&a.enabled||this.hasDerivedData)&&(i=!0)):c.push(t)},this),i)for(s=l.length;s--;)(n=l[s])&&!n.touched&&n.remove&&n.remove(!1,e);else!d||a&&a.enabled?u=!1:(t.forEach(function(t,e){t===l[e].y||l[e].destroyed||l[e].update(t,!1,null,!1)}),c.length=0);return l.forEach(function(t){t&&(t.touched=!1)}),!!u&&(c.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=x(this.xData),this.autoIncrement()),!0)}setData(t,e=!0,i,s){let n,r,o,a,l=this,c=l.points,h=c&&c.length||0,d=l.options,u=l.chart,p=d.dataSorting,f=l.xAxis,g=d.turboThreshold,m=this.xData,x=this.yData,b=l.pointArrayMap,y=b&&b.length,v=d.keys,w=0,S=1;u.options.chart.allowMutatingData||(d.data&&delete l.options.data,l.userOptions.data&&delete l.userOptions.data,a=N(!0,t));let k=(t=a||t||[]).length;if(p&&p.enabled&&(t=this.sortData(t)),u.options.chart.allowMutatingData&&!1!==s&&k&&h&&!l.cropped&&!l.hasGroupedData&&l.visible&&!l.boosted&&(o=this.updateData(t,i)),!o){l.xIncrement=null,l.colorCounter=0,this.parallelArrays.forEach(function(t){l[t+"Data"].length=0});let e=g&&k>g;if(e){let i=l.getFirstValidPoint(t),s=l.getFirstValidPoint(t,k-1,-1),o=t=>!(!I(t)||!v&&!D(t[0]));if(D(i)&&D(s))for(n=0;n<k;n++)m[n]=this.autoIncrement(),x[n]=t[n];else if(o(i)&&o(s))if(y)if(i.length===y)for(n=0;n<k;n++)m[n]=this.autoIncrement(),x[n]=t[n];else for(n=0;n<k;n++)r=t[n],m[n]=r[0],x[n]=r.slice(1,y+1);else if(v&&(w=v.indexOf("x"),S=v.indexOf("y"),w=w>=0?w:0,S=S>=0?S:1),1===i.length&&(S=0),w===S)for(n=0;n<k;n++)m[n]=this.autoIncrement(),x[n]=t[n][S];else for(n=0;n<k;n++)r=t[n],m[n]=r[w],x[n]=r[S];else e=!1}if(!e)for(n=0;n<k;n++)r={series:l},l.pointClass.prototype.applyOptions.apply(r,[t[n]]),l.updateParallelArrays(r,n);for(x&&R(x[0])&&E(14,!0,u),l.data=[],l.options.data=l.userOptions.data=t,n=h;n--;)c[n]?.destroy();f&&(f.minRange=f.userMinRange),l.isDirty=u.isDirtyBox=!0,l.isDirtyData=!!c,i=!1}
2"point"===d.legendType&&(this.processData(),this.generatePoints()),e&&u.redraw(i)}sortData(t){let e=this,i=e.options.dataSorting.sortKey||"y",s=function(t,e){return S(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(i,n){t[n]=s(e,i),t[n].index=n},this),t.concat().sort((t,e)=>{let s=L(i,t),n=L(i,e);return n<s?-1:n>s?1:0}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){let i=e.options,n=i.data;i.dataSorting&&i.dataSorting.enabled||!n||(n.forEach(function(i,r){n[r]=s(e,i),t[r]&&(n[r].x=t[r].x,n[r].index=r)}),e.setData(n,!1))}),t}getProcessedData(t){let e,i,s,n,r,o=this,a=o.xAxis,l=o.options.cropThreshold,c=a?.logarithmic,h=o.isCartesian,d=0,u=o.xData,p=o.yData,f=!1,g=u.length;a&&(n=(s=a.getExtremes()).min,r=s.max,f=!(!a.categories||a.names.length)),h&&o.sorted&&!t&&(!l||g>l||o.forceCrop)&&(u[g-1]<n||u[0]>r?(u=[],p=[]):o.yData&&(u[0]<n||u[g-1]>r)&&(u=(e=this.cropData(o.xData,o.yData,n,r)).xData,p=e.yData,d=e.start,i=!0));let m=O([c?u.map(c.log2lin):u],()=>o.requireSorting&&!f&&E(15,!1,o.chart));return{xData:u,yData:p,cropped:i,cropStart:d,closestPointRange:m}}processData(t){let e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;let i=this.getProcessedData();this.cropped=i.cropped,this.cropStart=i.cropStart,this.processedXData=i.xData,this.processedYData=i.yData,this.closestPointRange=this.basePointRange=i.closestPointRange,P(this,"afterProcessData")}cropData(t,e,i,s){let n,r,o=t.length,a=0,l=o;for(n=0;n<o;n++)if(t[n]>=i){a=Math.max(0,n-1);break}for(r=n;r<o;r++)if(t[r]>s){l=r+1;break}return{xData:t.slice(a,l),yData:e.slice(a,l),start:a,end:l}}generatePoints(){let t,e,i,s,n=this.options,r=this.processedData||n.data,o=this.processedXData,a=this.processedYData,l=this.pointClass,c=o.length,h=this.cropStart||0,d=this.hasGroupedData,u=n.keys,p=[],f=n.dataGrouping&&n.dataGrouping.groupAll?h:0,g=this.data;if(!g&&!d){let t=[];t.length=r.length,g=this.data=t}for(u&&d&&(this.options.keys=!1),s=0;s<c;s++)e=h+s,d?((i=new l(this,[o[s]].concat(z(a[s])))).dataGroup=this.groupMap[f+s],i.dataGroup.options&&(i.options=i.dataGroup.options,M(i,i.dataGroup.options),delete i.dataLabels)):(i=g[e])||void 0===r[e]||(g[e]=i=new l(this,r[e],o[s])),i&&(i.index=d?f+s:e,p[s]=i);if(this.options.keys=u,g&&(c!==(t=g.length)||d))for(s=0;s<t;s++)s!==h||d||(s+=c),g[s]&&(g[s].destroyElements(),g[s].plotX=void 0);this.data=g,this.points=p,P(this,"afterGeneratePoints")}getXExtremes(t){return{min:b(t),max:x(t)}}getExtremes(t,e){let i,s,n,r,o,a,l,c=this.xAxis,h=this.yAxis,d=[],u=this.requireSorting&&!this.is("column")?1:0,p=!!h&&h.positiveValuesOnly,f=e||this.getExtremesFromAll||this.options.getExtremesFromAll,{processedXData:g,processedYData:m}=this,y=0,v=0,w=0;if(this.cropped&&f){let t=this.getProcessedData(!0);g=t.xData,m=t.yData}let S=(t=t||this.stackedYData||m||[]).length,k=g||this.xData;for(c&&(y=(i=c.getExtremes()).min,v=i.max),a=0;a<S;a++)if(r=k[a],s=(D(o=t[a])||I(o))&&((D(o)?o>0:o.length)||!p),n=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!c||(k[a+u]||r)>=y&&(k[a-u]||r)<=v,s&&n)if(l=o.length)for(;l--;)D(o[l])&&(d[w++]=o[l]);else d[w++]=o;let C={activeYData:d,dataMin:b(d),dataMax:x(d)};return P(this,"afterGetExtremes",{dataExtremes:C}),C}applyExtremes(){let t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t}getFirstValidPoint(t,e=0,i=1){let s=t.length,n=e;for(;n>=0&&n<s;){if(S(t[n]))return t[n];n+=i}}translate(){this.processedXData||this.processData(),this.generatePoints();let t,e,i,s,n=this.options,r=n.stacking,o=this.xAxis,a=o.categories,l=this.enabledDataSorting,c=this.yAxis,h=this.points,d=h.length,u=this.pointPlacementToXValue(),p=!!u,f=n.threshold,g=n.startFromThreshold?f:0,m=Number.MAX_VALUE;function x(t){return y(t,-1e5,1e5)}for(t=0;t<d;t++){let n,d,b,y=h[t],w=y.x,k=y.y,C=y.low,A=r&&c.stacking?.stacks[(this.negStacks&&k<(g?0:f)?"-":"")+this.stackKey];e=o.translate(w,!1,!1,!1,!0,u),y.plotX=D(e)?v(x(e)):void 0,r&&this.visible&&A&&A[w]&&(s=this.getStackIndicator(s,w,this.index),!y.isNull&&s.key&&(b=(d=A[w]).points[s.key]),d&&I(b)&&(C=b[0],k=b[1],C===g&&s.key===A[w].base&&(C=j(D(f)?f:c.min)),c.positiveValuesOnly&&S(C)&&C<=0&&(C=void 0),y.total=y.stackTotal=j(d.total),y.percentage=S(y.y)&&d.total?y.y/d.total*100:void 0,y.stackY=k,this.irregularWidths||d.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),y.yBottom=S(C)?x(c.translate(C,!1,!0,!1,!0)):void 0,this.dataModify&&(k=this.dataModify.modifyValue(k,t)),D(k)&&void 0!==y.plotX&&(n=D(n=c.translate(k,!1,!0,!1,!0))?x(n):void 0),y.plotY=n,y.isInside=this.isPointInside(y),y.clientX=p?v(o.translate(w,!1,!1,!1,!0,u)):e,y.negative=(y.y||0)<(f||0),y.category=j(a&&a[y.x],y.x),y.isNull||!1===y.visible||(void 0!==i&&(m=Math.min(m,Math.abs(e-i))),i=e),y.zone=this.zones.length?y.getZone():void 0,!y.graphic&&this.group&&l&&(y.isNew=!0)}this.closestPointRangePx=m,P(this,"afterTranslate")}getValidPoints(t,e,i){let s=this.chart;return(t||this.points||[]).filter(function(t){let{plotX:n,plotY:r}=t;return!(!(i||!t.isNull&&D(r))||e&&!s.isInsidePlot(n,r,{inverted:s.inverted}))&&!1!==t.visible})}getClipBox(){let{chart:t,xAxis:e,yAxis:i}=this,{x:s,y:n,width:r,height:o}=N(t.clipBox);return e&&e.len!==t.plotSizeX&&(r=e.len),i&&i.len!==t.plotSizeY&&(o=i.len),t.inverted&&!this.invertible&&([r,o]=[o,r]),{x:s,y:n,width:r,height:o}}
2getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:t,group:e,markerGroup:i}=this,s=t.sharedClips,n=t.renderer,r=this.getClipBox(),o=this.getSharedClipKey(),a=s[o];a?a.animate(r):s[o]=a=n.clipRect(r),e&&e.clip(!1===this.options.clip?void 0:a),i&&i.clip()}animate(t){let{chart:e,group:i,markerGroup:s}=this,n=e.inverted,r=h(this.options.animation),o=[this.getSharedClipKey(),r.duration,r.easing,r.defer].join(","),a=e.sharedClips[o],l=e.sharedClips[o+"m"];if(t&&i){let t=this.getClipBox();if(a)a.attr("height",t.height);else{t.width=0,n&&(t.x=e.plotHeight),a=e.renderer.clipRect(t),e.sharedClips[o]=a;let i={x:-99,y:-99,width:n?e.plotWidth+199:99,height:n?99:e.plotHeight+199};l=e.renderer.clipRect(i),e.sharedClips[o+"m"]=l}i.clip(a),s?.clip(l)}else if(a&&!a.hasClass("highcharts-animating")){let t=this.getClipBox(),i=r.step;(s?.element.childNodes.length||e.series.length>1)&&(r.step=function(t,e){i&&i.apply(e,arguments),"width"===e.prop&&l?.element&&l.attr(n?"height":"width",t+99)}),a.addClass("highcharts-animating").animate(t,r)}}afterAnimate(){this.setClip(),B(this.chart.sharedClips,(t,e,i)=>{t&&!this.chart.container.querySelector(`[clip-path="url(#${t.id})"]`)&&(t.destroy(),delete i[e])}),this.finishedAnimating=!0,P(this,"afterAnimate")}drawPoints(t=this.points){let e,i,s,n,r,o,a,l=this.chart,c=l.styledMode,{colorAxis:h,options:d}=this,u=d.marker,p=this[this.specialGroup||"markerGroup"],f=this.xAxis,g=j(u.enabled,!f||!!f.isRadial||null,this.closestPointRangePx>=u.enabledThreshold*u.radius);if(!1!==u.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++)if(n=(s=(i=t[e]).graphic)?"animate":"attr",r=i.marker||{},o=!!i.marker,(g&&void 0===r.enabled||r.enabled)&&!i.isNull&&!1!==i.visible){let t=j(r.symbol,this.symbol,"rect");a=this.markerAttribs(i,i.selected&&"select"),this.enabledDataSorting&&(i.startXPos=f.reversed?-(a.width||0):f.width);let e=!1!==i.isInside;if(!s&&e&&((a.width||0)>0||i.hasImage)&&(i.graphic=s=l.renderer.symbol(t,a.x,a.y,a.width,a.height,o?r:u).add(p),this.enabledDataSorting&&l.hasRendered&&(s.attr({x:i.startXPos}),n="animate")),s&&"animate"===n&&s[e?"show":"hide"](e).animate(a),s){let t=this.pointAttribs(i,c||!i.selected?void 0:"select");c?h&&s.css({fill:t.fill}):s[n](t)}s&&s.addClass(i.getClassName(),!0)}else s&&(i.graphic=s.destroy())}markerAttribs(t,e){let i,s,n=this.options,r=n.marker,o=t.marker||{},a=o.symbol||r.symbol,l={},c=j(o.radius,r&&r.radius);e&&(i=r.states[e],c=j((s=o.states&&o.states[e])&&s.radius,i&&i.radius,c&&c+(i&&i.radiusPlus||0))),t.hasImage=a&&0===a.indexOf("url"),t.hasImage&&(c=0);let h=t.pos();return D(c)&&h&&(n.crisp&&(h[0]=w(h[0],t.hasImage?0:"rect"===a?r?.lineWidth||0:1)),l.x=h[0]-c,l.y=h[1]-c),c&&(l.width=l.height=2*c),l}pointAttribs(t,e){let i,s,n,r,o=this.options.marker,a=t&&t.options,l=a&&a.marker||{},c=a&&a.color,h=t&&t.color,d=t&&t.zone&&t.zone.color,u=this.color,p=j(l.lineWidth,o.lineWidth),f=1;return u=c||d||h||u,n=l.fillColor||o.fillColor||u,r=l.lineColor||o.lineColor||u,e=e||"normal",i=o.states[e]||{},p=j((s=l.states&&l.states[e]||{}).lineWidth,i.lineWidth,p+j(s.lineWidthPlus,i.lineWidthPlus,0)),n=s.fillColor||i.fillColor||n,{stroke:r=s.lineColor||i.lineColor||r,"stroke-width":p,fill:n,opacity:f=j(s.opacity,i.opacity,f)}}
vendor: 5,842 bytes, line 2
2destroy(t){let e,i,s,n=this,r=n.chart,o=/AppleWebKit\/533/.test(g.navigator.userAgent),a=n.data||[];for(P(n,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(n.axisTypes||[]).forEach(function(t){(s=n[t])&&s.series&&(A(s.series,n),s.isDirty=s.forceRedraw=!0)}),n.legendItem&&n.chart.legend.destroyItem(n),e=a.length;e--;)(i=a[e])&&i.destroy&&i.destroy();for(let t of n.zones)k(t,void 0,!0);c.clearTimeout(n.animationTimeout),B(n,function(t,e){t instanceof l&&!t.survive&&t[o&&"group"===e?"hide":"destroy"]()}),r.hoverSeries===n&&(r.hoverSeries=void 0),A(r.series,n),r.orderItems("series"),B(n,function(e,i){t&&"hcEvents"===i||delete n[i]})}applyZones(){let{area:t,chart:e,graph:i,zones:s,points:n,xAxis:r,yAxis:o,zoneAxis:a}=this,{inverted:l,renderer:c}=e,h=this[`${a}Axis`],{isXAxis:d,len:u=0}=h||{},p=(i?.strokeWidth()||0)/2+1,f=(t,e=0,i=0)=>{l&&(i=u-i);let{translated:s=0,lineClip:n}=t,r=i-s;n?.push(["L",e,Math.abs(r)<p?i-p*(r<=0?-1:1):s])};if(s.length&&(i||t)&&h&&D(h.min)){let e=h.getExtremes().max,p=t=>{t.forEach((e,i)=>{("M"===e[0]||"L"===e[0])&&(t[i]=[e[0],d?u-e[1]:e[1],d?e[2]:u-e[2]])})};if(s.forEach(t=>{t.lineClip=[],t.translated=y(h.toPixels(j(t.value,e),!0)||0,0,u)}),i&&!this.showLine&&i.hide(),t&&t.hide(),"y"===a&&n.length<r.len)for(let t of n){let{plotX:e,plotY:i,zone:n}=t,r=n&&s[s.indexOf(n)-1];n&&f(n,e,i),r&&f(r,e,i)}let g=[],m=h.toPixels(h.getExtremes().min,!0);s.forEach(e=>{let s=e.lineClip||[],n=Math.round(e.translated||0);r.reversed&&s.reverse();let{clip:a,simpleClip:h}=e,u=0,f=0,x=r.len,b=o.len;d?(u=n,x=m):(f=n,b=m);let y=[["M",u,f],["L",x,f],["L",x,b],["L",u,b],["Z"]],v=[y[0],...s,y[1],y[2],...g,y[3],y[4]];g=s.reverse(),m=n,l&&(p(v),t&&p(y)),a?(a.animate({d:v}),h?.animate({d:y})):(a=e.clip=c.path(v),t&&(h=e.simpleClip=c.path(y))),i&&e.graph?.clip(a),t&&e.area?.clip(h)})}else this.visible&&(i&&i.show(),t&&t.show())}plotGroup(t,e,i,s,n){let r=this[t],o=!r,a={visibility:i,zIndex:s||.1};return S(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(a.opacity=this.opacity),r||(this[t]=r=this.chart.renderer.g().add(n)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(S(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(a)[o?"attr":"animate"](this.getPlotBox(e)),r}getPlotBox(t){let e=this.xAxis,i=this.yAxis,s=this.chart,n=s.inverted&&!s.polar&&e&&this.invertible&&"series"===t;return s.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:s.plotLeft,translateY:i?i.top:s.plotTop,rotation:n?90:0,rotationOriginX:n?(e.len-i.len)/2:0,rotationOriginY:n?(e.len+i.len)/2:0,scaleX:n?-1:1,scaleY:1}}removeEvents(t){let{eventsToUnbind:e}=this;t||F(this),e.length&&(e.forEach(t=>{t()}),e.length=0)}render(){let t=this,{chart:e,options:i,hasRendered:s}=t,n=h(i.animation),r=t.visible?"inherit":"hidden",o=i.zIndex,a=e.seriesGroup,l=t.finishedAnimating?0:n.duration;P(this,"render"),t.plotGroup("group","series",r,o,a),t.markerGroup=t.plotGroup("markerGroup","markers",r,o,a),!1!==i.clip&&t.setClip(),l&&t.animate?.(!0),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels?.(),t.redrawPoints?.(),i.enableMouseTracking&&t.drawTracker?.(),l&&t.animate?.(),s||(l&&n.defer&&(l+=n.defer),t.animationTimeout=H(()=>{t.afterAnimate()},l||0)),t.isDirty=!1,t.hasRendered=!0,P(t,"afterRender")}redraw(){let t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(t,e){let{xAxis:i,yAxis:s}=this,n=this.chart.inverted;return this.searchKDTree({clientX:n?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:n?s.len-t.chartX+s.pos:t.chartY-s.pos},e,t)}buildKDTree(t){this.buildingKdTree=!0;let e=this,i=e.options.findNearestPointBy.indexOf("y")>-1?2:1;delete e.kdTree,H(function(){e.kdTree=function t(i,s,n){let r,o,a=i?.length;if(a)return r=e.kdAxisArray[s%n],i.sort((t,e)=>(t[r]||0)-(e[r]||0)),{point:i[o=Math.floor(a/2)],left:t(i.slice(0,o),s+1,n),right:t(i.slice(o+1),s+1,n)}}(e.getValidPoints(void 0,!e.directTouch),i,i),e.buildingKdTree=!1},e.options.kdNow||"touchstart"===t?.type?0:1)}searchKDTree(t,e,i){let s=this,[n,r]=this.kdAxisArray,o=e?"distX":"dist",a=(s.options.findNearestPointBy||"").indexOf("y")>-1?2:1,l=!!s.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,a,c){let h,d,u=i.point,p=s.kdAxisArray[a%c],f=u;!function(t,e){let i=t[n],s=e[n],o=S(i)&&S(s)?i-s:null,a=t[r],c=e[r],h=S(a)&&S(c)?a-c:0,d=l&&e.marker?.radius||0;e.dist=Math.sqrt((o&&o*o||0)+h*h)-d,e.distX=S(o)?Math.abs(o)-d:Number.MAX_VALUE}(e,u);let g=(e[p]||0)-(u[p]||0)+(l&&u.marker?.radius||0),m=g<0?"left":"right",x=g<0?"right":"left";return i[m]&&(f=(h=t(e,i[m],a+1,c))[o]<f[o]?h:u),i[x]&&Math.sqrt(g*g)<f[o]&&(f=(d=t(e,i[x],a+1,c))[o]<f[o]?d:f),f}(t,this.kdTree,a,a)}pointPlacementToXValue(){let{options:t,xAxis:e}=this,i=t.pointPlacement;return"between"===i&&(i=e.reversed?-.5:.5),D(i)?i*(t.pointRange||e.pointRange):0}isPointInside(t){let{chart:e,xAxis:i,yAxis:s}=this,{plotX:n=-1,plotY:r=-1}=t;return r>=0&&r<=(s?s.len:e.plotHeight)&&n>=0&&n<=(i?i.len:e.plotWidth)}drawTracker(){let t=this,e=t.options,i=e.trackByArea,s=[].concat((i?t.areaPath:t.graphPath)||[]),n=t.chart,r=n.pointer,o=n.renderer,a=n.options.tooltip?.snap||0,l=()=>{e.enableMouseTracking&&n.hoverSeries!==t&&t.onMouseOver()},c="rgba(192,192,192,"+(f?1e-4:.002)+")",h=t.tracker;h?h.attr({d:s}):t.graph&&(t.tracker=h=o.path(s).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),n.styledMode||h.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:c,fill:i?c:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*a)}
2),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach(t=>{t&&(t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",t=>{r?.onTrackerMouseOut(t)}),e.cursor&&!n.styledMode&&t.css({cursor:e.cursor}),t.on("touchstart",l))})),P(this,"afterDrawTracker")}addPoint(t,e,i,s,n){let r,o,a=this.options,l=this.data,c=this.chart,h=this.xAxis,d=h&&h.hasNames&&h.names,u=a.data,p=this.xData;e=j(e,!0);let f={series:this};this.pointClass.prototype.applyOptions.apply(f,[t]);let g=f.x;if(o=p.length,this.requireSorting&&g<p[o-1])for(r=!0;o&&p[o-1]>g;)o--;this.updateParallelArrays(f,"splice",[o,0,0]),this.updateParallelArrays(f,o),d&&f.name&&(d[g]=f.name),u.splice(o,0,t),(r||this.processedData)&&(this.data.splice(o,0,null),this.processData()),"point"===a.legendType&&this.generatePoints(),i&&(l[0]&&l[0].remove?l[0].remove(!1):(l.shift(),this.updateParallelArrays(f,"shift"),u.shift())),!1!==n&&P(this,"addPoint",{point:f}),this.isDirty=!0,this.isDirtyData=!0,e&&c.redraw(s)}removePoint(t,e,i){let s=this,n=s.data,r=n[t],o=s.points,a=s.chart,l=function(){o&&o.length===n.length&&o.splice(t,1),n.splice(t,1),s.options.data.splice(t,1),s.updateParallelArrays(r||{series:s},"splice",[t,1]),r&&r.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&a.redraw()};d(i,a),e=j(e,!0),r?r.firePointEvent("remove",null,l):l()}remove(t,e,i,s){let n=this,r=n.chart;function o(){n.destroy(s),r.isDirtyLegend=r.isDirtyBox=!0,r.linkSeries(s),j(t,!0)&&r.redraw(e)}!1!==i?P(n,"remove",null,o):o()}update(t,e){P(this,"update",{options:t=C(t,this.userOptions)});let i,s,n=this,r=n.chart,o=n.userOptions,a=n.initialType||n.type,l=r.options.plotOptions,c=m[a].prototype,h=n.finishedAnimating&&{animation:!1},d={},u=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],p=t.type||o.type||r.options.chart.type,f=!(this.hasDerivedData||p&&p!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(t=>n.hasOptionChanged(t)));p=p||a,f&&(u.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),!1!==t.visible&&u.push("area","graph"),n.parallelArrays.forEach(function(t){u.push(t+"Data")}),t.data&&(t.dataSorting&&M(n.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=N(o,{index:void 0===o.index?n.index:o.index,pointStart:l?.series?.pointStart??o.pointStart??n.xData?.[0]},!f&&{data:n.options.data},t,h),f&&t.data&&(t.data=n.options.data),(u=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(u)).forEach(function(t){u[t]=n[t],delete n[t]});let g=!1;if(m[p]){if(g=p!==n.type,n.remove(!1,!1,!1,!0),g)if(r.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(n,m[p].prototype);else{let t=Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents;for(s in c)n[s]=void 0;M(n,m[p].prototype),t?n.hcEvents=t:delete n.hcEvents}}else E(17,!0,r,{missingModuleFor:p});if(u.forEach(function(t){n[t]=u[t]}),n.init(r,t),f&&this.points)for(let t of(!1===(i=n.options).visible?(d.graphic=1,d.dataLabel=1):(this.hasMarkerChanged(i,o)&&(d.graphic=1),n.hasDataLabels?.()||(d.dataLabel=1)),this.points))t&&t.series&&(t.resolveColor(),Object.keys(d).length&&t.destroyElements(d),!1===i.showInLegend&&t.legendItem&&r.legend.destroyItem(t));n.initialType=a,r.linkSeries(),r.setSortedData(),g&&n.linkedSeries.length&&(n.isDirtyData=!0),P(this,"afterUpdate"),j(e,!0)&&r.redraw(!!f&&void 0)}setName(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}hasOptionChanged(t){let e=this.chart,i=this.options[t],s=e.options.plotOptions,n=this.userOptions[t],r=j(s?.[this.type]?.[t],s?.series?.[t]);return n&&!S(r)?i!==n:i!==j(r,i)}onMouseOver(){let t=this.chart,e=t.hoverSeries,i=t.pointer;i?.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&P(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this}onMouseOut(){let t=this.options,e=this.chart,i=e.tooltip,s=e.hoverPoint;
vendor: 8,783 bytes, line 2
2e.hoverSeries=null,s&&s.onMouseOut(),this&&t.events.mouseOut&&P(this,"mouseOut"),i&&!this.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),e.series.forEach(function(t){t.setState("",!0)})}setState(t,e){let i=this,s=i.options,n=i.graph,r=s.inactiveOtherPoints,o=s.states,a=j(o[t||"normal"]&&o[t||"normal"].animation,i.chart.options.chart.animation),l=s.lineWidth,c=s.opacity;if(t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(o[t]&&!1===o[t].enabled)return;if(t&&(l=o[t].lineWidth||l+(o[t].lineWidthPlus||0),c=j(o[t].opacity,c)),n&&!n.dashstyle&&D(l))for(let t of[n,...this.zones.map(t=>t.graph)])t?.animate({"stroke-width":l},a);r||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(t){t&&t.animate({opacity:c},a)})}e&&r&&i.points&&i.setAllPointsToState(t||void 0)}setAllPointsToState(t){this.points.forEach(function(e){e.setState&&e.setState(t)})}setVisible(t,e){let i=this,s=i.chart,n=s.options.chart.ignoreHiddenSeries,r=i.visible;i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!r:t;let o=t?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(t=>{i[t]?.[o]()}),(s.hoverSeries===i||s.hoverPoint?.series===i)&&i.onMouseOut(),i.legendItem&&s.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&s.series.forEach(t=>{t.options.stacking&&t.visible&&(t.isDirty=!0)}),i.linkedSeries.forEach(e=>{e.setVisible(t,!1)}),n&&(s.isDirtyBox=!0),P(i,o),!1!==e&&s.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),P(this,t?"select":"unselect")}shouldShowTooltip(t,e,i={}){return i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)}drawLegendSymbol(t,e){n[this.options.legendSymbol||"rectangle"]?.call(this,t,e)}}return X.defaultOptions=o,X.types=a.seriesTypes,X.registerType=a.registerSeriesType,M(X.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:r,requireSorting:!0,sorted:!0}),a.series=X,X}),i(e,"Core/Legend/Legend.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Series/Point.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Templating.js"],e["Core/Utilities.js"]],function(t,e,i,s,n,r,o,a){var l;let{animObject:c,setAnimation:h}=t,{registerEventOptions:d}=e,{composed:u,marginNames:p}=i,{distribute:f}=r,{format:g}=o,{addEvent:m,createElement:x,css:b,defined:y,discardElement:v,find:w,fireEvent:S,isNumber:k,merge:C,pick:A,pushUnique:E,relativeLength:M,stableSort:T,syncTimeout:P}=a;class O{constructor(t,e){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.setOptions(e),e.enabled&&(this.render(),d(this,e),m(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),m(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(t){let e=A(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=C(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=A(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0}update(t,e){let i=this.chart;this.setOptions(C(!0,this.options,t)),"events"in this.options&&d(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,A(e,!0)&&i.redraw(),S(this,"afterUpdate",{redraw:e})}colorizeItem(t,e){let{area:i,group:s,label:n,line:r,symbol:o}=t.legendItem||{};if(s?.[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:s={}}=this,a=s.color,{fillColor:l,fillOpacity:c,lineColor:h,marker:d}=t.options,u=t=>(!e&&(t.fill&&(t.fill=a),t.stroke&&(t.stroke=a)),t);n?.css(C(e?this.itemStyle:s)),r?.attr(u({stroke:h||t.color})),o&&o.attr(u(d&&o.isMarker?t.pointAttribs():{fill:t.color})),i?.attr(u({fill:l||t.color,"fill-opacity":l?1:c??.75}))}S(this,"afterColorizeItem",{item:t,visible:e})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(t){let{group:e,x:i=0,y:s=0}=t.legendItem||{},n=this.options,r=n.symbolPadding,o=!n.rtl,a=t.checkbox;if(e&&e.element){let n={translateX:o?i:this.legendWidth-i-2*r-4,translateY:s};e[y(e.translateY)?"animate":"attr"](n,void 0,()=>{S(this,"afterPositionItem",{item:t})})}a&&(a.x=i,a.y=s)}destroyItem(t){let e=t.checkbox,i=t.legendItem||{};for(let t of["group","label","line","symbol"])i[t]&&(i[t]=i[t].destroy());e&&v(e),t.legendItem=void 0}destroy(){for(let t of this.getAllItems())this.destroyItem(t);for(let t of["clipRect","up","down","pager","nav","box","title","group"])this[t]&&(this[t]=this[t].destroy());this.display=null}positionCheckboxes(){let t,e=this.group&&this.group.alignAttr,i=this.clipHeight||this.legendHeight,s=this.titleHeight;e&&(t=e.translateY,this.allItems.forEach(function(n){let r,o=n.checkbox;o&&(r=t+s+o.y+(this.scrollOffset||0)+3,b(o,{left:e.translateX+n.checkboxOffset+o.x-20+"px",top:r+"px",display:this.proximate||r>t-6&&r<t+i-6?"":"none"}))},this))}renderTitle(){let t,e=this.options,i=this.padding,s=e.title,n=0;s.text&&(this.title||(this.title=this.chart.renderer.label(s.text,i-3,i-4,void 0,void 0,void 0,e.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(s.style),this.title.add(this.group)),s.width||this.title.css({width:this.maxLegendWidth+"px"}),n=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:n})),this.titleHeight=n}setText(t){let e=this.options;t.legendItem.label.attr({text:e.labelFormat?g(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})}renderItem(t){let e=t.legendItem=t.legendItem||{},i=this.chart,s=i.renderer,n=this.options,r="horizontal"===n.layout,o=this.symbolWidth,a=n.symbolPadding||0,l=this.itemStyle,c=this.itemHiddenStyle,h=r?A(n.itemDistance,20):0,d=!n.rtl,u=!t.series,p=!u&&t.series.drawLegendSymbol?t.series:t,f=p.options,g=!!this.createCheckboxForItem&&f&&f.showCheckbox,m=n.useHTML,x=t.options.className,b=e.label,y=o+a+h+(g?20:0);!b&&(e.group=s.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+t.colorIndex+(x?" "+x:"")+(u?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.label=b=s.text("",d?o+a:-a,this.baseline||0,m),i.styledMode||b.css(C(t.visible?l:c)),b.attr({align:d?"left":"right",zIndex:2}).add(e.group),!this.baseline&&(this.fontMetrics=s.fontMetrics(b),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,b.attr("y",this.baseline),this.symbolHeight=A(n.symbolHeight,this.fontMetrics.f),n.squareSymbol&&(this.symbolWidth=A(n.symbolWidth,Math.max(this.symbolHeight,16)),y=this.symbolWidth+a+h+(g?20:0),d&&b.attr("x",this.symbolWidth+a))),p.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,b,m)),g&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),(i.styledMode||!l.width)&&b.css({width:(n.itemWidth||this.widthOption||i.spacingBox.width)-y+"px"}),this.setText(t);let v=b.getBBox(),w=this.fontMetrics&&this.fontMetrics.h||0;t.itemWidth=t.checkboxOffset=n.itemWidth||e.labelWidth||v.width+y,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(v.height>1.5*w?v.height:w))}layoutItem(t){let e=this.options,i=this.padding,s="horizontal"===e.layout,n=t.itemHeight,r=this.itemMarginBottom,o=this.itemMarginTop,a=s?A(e.itemDistance,20):0,l=this.maxLegendWidth,c=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth,h=t.legendItem||{};s&&this.itemX-i+c>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=o+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=o+this.itemY+r,this.lastLineHeight=Math.max(n,this.lastLineHeight),h.x=this.itemX,h.y=this.itemY,s?this.itemX+=c:(this.itemY+=o+n+r,this.lastLineHeight=n),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:a):c)+i,this.offsetWidth)}getAllItems(){let t=[];
vendor: 6,244 bytes, line 2
2return this.chart.series.forEach(function(e){let i=e&&e.options;e&&A(i.showInLegend,!y(i.linkedTo)&&void 0,!0)&&(t=t.concat((e.legendItem||{}).labels||("point"===i.legendType?e.data:e)))}),S(this,"afterGetAllItems",{allItems:t}),t}getAlignment(){let t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)}adjustMargins(t,e){let i=this.chart,s=this.options,n=this.getAlignment();n&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(r,o){r.test(n)&&!y(t[o])&&(i[p[o]]=Math.max(i[p[o]],i.legend[(o+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][o]*s[o%2?"x":"y"]+A(s.margin,12)+e[o]+(i.titleOffset[o]||0)))})}proximatePositions(){let t,e=this.chart,i=[],s="left"===this.options.align;for(let n of(this.allItems.forEach(function(t){let n,r,o,a,l=s;t.yAxis&&(t.xAxis.options.reversed&&(l=!l),t.points&&(n=w(l?t.points:t.points.slice(0).reverse(),function(t){return k(t.plotY)})),r=this.itemMarginTop+t.legendItem.label.getBBox().height+this.itemMarginBottom,a=t.yAxis.top-e.plotTop,o=t.visible?(n?n.plotY:t.yAxis.height)+(a-.3*r):a+t.yAxis.height,i.push({target:o,size:r,item:t}))},this),f(i,e.plotHeight)))t=n.item.legendItem||{},k(n.pos)&&(t.y=e.plotTop-e.spacing[0]+n.pos)}render(){let t,e,i,s,n=this.chart,r=n.renderer,o=this.options,a=this.padding,l=this.getAllItems(),c=this.group,h=this.box;this.itemX=a,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=M(o.width,n.spacingBox.width-a),s=n.spacingBox.width-2*a-o.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(s/=2),this.maxLegendWidth=this.widthOption||s,c||(this.group=c=r.g("legend").addClass(o.className||"").attr({zIndex:7}).add(),this.contentGroup=r.g().attr({zIndex:1}).add(c),this.scrollGroup=r.g().add(this.contentGroup)),this.renderTitle(),T(l,(t,e)=>(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)),o.reversed&&l.reverse(),this.allItems=l,this.display=t=!!l.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,l.forEach(this.renderItem,this),l.forEach(this.layoutItem,this),e=(this.widthOption||this.offsetWidth)+a,i=this.lastItemY+this.lastLineHeight+this.titleHeight,i=this.handleOverflow(i)+a,h||(this.box=h=r.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(c)),n.styledMode||h.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),e>0&&i>0&&h[h.placed?"animate":"attr"](h.crisp.call({},{x:0,y:0,width:e,height:i},h.strokeWidth())),c[t?"show":"hide"](),n.styledMode&&"none"===c.getStyle("display")&&(e=i=0),this.legendWidth=e,this.legendHeight=i,t&&this.align(),this.proximate||this.positionItems(),S(this,"afterRender")}align(t=this.chart.spacingBox){let e=this.chart,i=this.options,s=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&e.titleOffset[0]>0?s+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&e.titleOffset[2]>0&&(s-=e.titleOffset[2]),s!==t.y&&(t=C(t,{y:s})),e.hasRendered||(this.group.placed=!1),this.group.align(C(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)}handleOverflow(t){let e,i,s,n=this,r=this.chart,o=r.renderer,a=this.options,l=a.y,c="top"===a.verticalAlign,h=this.padding,d=a.maxHeight,u=a.navigation,p=A(u.animation,!0),f=u.arrowSize||12,g=this.pages,m=this.allItems,x=function(t){"number"==typeof t?w.attr({height:t}):w&&(n.clipRect=w.destroy(),n.contentGroup.clip()),n.contentGroup.div&&(n.contentGroup.div.style.clip=t?"rect("+h+"px,9999px,"+(h+t)+"px,0)":"auto")},b=function(t){return n[t]=o.circle(0,0,1.3*f).translate(f/2,f/2).add(v),r.styledMode||n[t].attr("fill","rgba(0,0,0,0.0001)"),n[t]},y=r.spacingBox.height+(c?-l:l)-h,v=this.nav,w=this.clipRect;return"horizontal"!==a.layout||"middle"===a.verticalAlign||a.floating||(y/=2),d&&(y=Math.min(y,d)),g.length=0,t&&y>0&&t>y&&!1!==u.enabled?(this.clipHeight=e=Math.max(y-20-this.titleHeight-h,0),this.currentPage=A(this.currentPage,1),this.fullHeight=t,m.forEach((t,n)=>{let r=(s=t.legendItem||{}).y||0,o=Math.round(s.label.getBBox().height),a=g.length;(!a||r-g[a-1]>e&&(i||r)!==g[a-1])&&(g.push(i||r),a++),s.pageIx=a-1,i&&((m[n-1].legendItem||{}).pageIx=a-1),n===m.length-1&&r+o-g[a-1]>e&&r>g[a-1]&&(g.push(r),s.pageIx=a),r!==i&&(i=r)}),w||(w=n.clipRect=o.clipRect(0,h-2,9999,0),n.contentGroup.clip(w)),x(e),v||(this.nav=v=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,f,f).add(v),b("upTracker").on("click",function(){n.scroll(-1,p)}),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),!r.styledMode&&u.style&&this.pager.css(u.style),this.pager.add(v),this.down=o.symbol("triangle-down",0,0,f,f).add(v),b("downTracker").on("click",function(){n.scroll(1,p)})),n.scroll(0),t=y):v&&(x(),this.nav=v.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t}scroll(t,e){let i=this.chart,s=this.pages,n=s.length,r=this.clipHeight,o=this.options.navigation,a=this.pager,l=this.padding,d=this.currentPage+t;d>n&&(d=n),d>0&&(void 0!==e&&h(e,i),this.nav.attr({translateX:l,translateY:r+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===d?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),a.attr({text:d+"/"+n}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:d===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:1===d?o.inactiveColor:o.activeColor}),this.upTracker.css({cursor:1===d?"default":"pointer"}),this.down.attr({fill:d===n?o.inactiveColor:o.activeColor}),this.downTracker.css({cursor:d===n?"default":"pointer"})),this.scrollOffset=-s[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes(),P(()=>{S(this,"afterScroll",{currentPage:d})},c(A(e,i.renderer.globalAnimation,!0)).duration))}setItemEvents(t,e,i){let r=this,o=t.legendItem||{},a=r.chart.renderer.boxWrapper,l=t instanceof n,c=t instanceof s,h="highcharts-legend-"+(l?"point":"series")+"-active",d=r.chart.styledMode,u=i?[e,o.symbol]:[o.group],p=e=>
vendor: 5,272 bytes, line 2
2{r.allItems.forEach(i=>{t!==i&&[i].concat(i.linkedSeries||[]).forEach(t=>{t.setState(e,!l)})})};for(let i of u)i&&i.on("mouseover",function(){t.visible&&p("inactive"),t.setState("hover"),t.visible&&a.addClass(h),d||e.css(r.options.itemHoverStyle)}).on("mouseout",function(){r.chart.styledMode||e.css(C(t.visible?r.itemStyle:r.itemHiddenStyle)),p(""),a.removeClass(h),t.setState()}).on("click",function(e){a.removeClass(h),S(r,"itemClick",{browserEvent:e,legendItem:t},function(){t.setVisible&&t.setVisible(),p(t.visible?"inactive":"")}),l?t.firePointEvent("legendItemClick",{browserEvent:e}):c&&S(t,"legendItemClick",{browserEvent:e})})}createCheckboxForItem(t){t.checkbox=x("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),m(t.checkbox,"click",function(e){let i=e.target;S(t.series||t,"checkboxClick",{checked:i.checked,item:t},function(){t.select()})})}}return(l=O||(O={})).compose=function(t){E(u,"Core.Legend")&&m(t,"beforeMargins",function(){this.legend=new l(this,this.options.legend)})},O}),i(e,"Core/Chart/Chart.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Defaults.js"],e["Core/Templating.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Time.js"],e["Core/Utilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Axis/Tick.js"]],function(t,e,i,s,n,r,o,a,l,c,h,d,u,p){let{animate:f,animObject:g,setAnimation:m}=t,{defaultOptions:x,defaultTime:b}=i,{numberFormat:y}=s,{registerEventOptions:v}=n,{charts:w,doc:S,marginNames:k,svg:C,win:A}=r,{seriesTypes:E}=l,{addEvent:M,attr:T,createElement:P,css:O,defined:L,diffObjects:_,discardElement:I,erase:D,error:R,extend:N,find:B,fireEvent:j,getStyle:F,isArray:z,isNumber:H,isObject:X,isString:W,merge:Y,objectEach:V,pick:G,pInt:U,relativeLength:$,removeEvent:q,splat:K,syncTimeout:Z,uniqueKey:J}=d;class Q{static chart(t,e,i){return new Q(t,e,i)}constructor(t,e,i){this.sharedClips={};let s=[...arguments];(W(t)||t.nodeName)&&(this.renderTo=s.shift()),this.init(s[0],s[1])}setZoomOptions(){let t=this.options.chart,e=t.zooming;this.zooming={...e,type:G(t.zoomType,e.type),key:G(t.zoomKey,e.key),pinchType:G(t.pinchType,e.pinchType),singleTouch:G(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:Y(e.resetButton,t.resetZoomButton)}}init(t,e){j(this,"init",{args:arguments},function(){let i=Y(x,t),s=i.chart;this.userOptions=N({},t),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new h(t.time):r.time,this.numberFormatter=s.numberFormatter||y,this.styledMode=s.styledMode,this.hasCartesianSeries=s.showAxes,this.index=w.length,w.push(this),r.chartCount++,v(this,s),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),j(this,"afterInit"),this.firstRender()})}initSeries(t){let e=this.options.chart,i=t.type||e.type,s=E[i];s||R(17,!0,this,{missingModuleFor:i});let n=new s;return"function"==typeof n.init&&n.init(this,t),n}setSortedData(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})}orderItems(t,e=0){let i=this[t],s=this.options[t]=K(this.options[t]).slice(),n=this.userOptions[t]=this.userOptions[t]?K(this.userOptions[t]).slice():[];if(this.hasRendered&&(s.splice(e),n.splice(e)),i)for(let t=e,r=i.length;t<r;++t){let e=i[t];e&&(e.index=t,e instanceof a&&(e.name=e.getName()),e.options.isInternal||(s[t]=e.options,n[t]=e.userOptions))}}isInsidePlot(t,e,i={}){let{inverted:s,plotBox:n,plotLeft:r,plotTop:o,scrollablePlotBox:a}=this,{scrollLeft:l=0,scrollTop:c=0}=i.visiblePlotOnly&&this.scrollablePlotArea?.scrollingContainer||{},h=i.series,d=i.visiblePlotOnly&&a||n,u=i.inverted?e:t,p=i.inverted?t:e,f={x:u,y:p,isInsidePlot:!0,options:i};if(!i.ignoreX){let t=h&&(s&&!this.polar?h.yAxis:h.xAxis)||{pos:r,len:1/0},e=i.paneCoordinates?t.pos+u:r+u;e>=Math.max(l+r,t.pos)&&e<=Math.min(l+r+d.width,t.pos+t.len)||(f.isInsidePlot=!1)}if(!i.ignoreY&&f.isInsidePlot){let t=!s&&i.axis&&!i.axis.isXAxis&&i.axis||h&&(s?h.xAxis:h.yAxis)||{pos:o,len:1/0},e=i.paneCoordinates?t.pos+p:o+p;e>=Math.max(c+o,t.pos)&&e<=Math.min(c+o+d.height,t.pos+t.len)||(f.isInsidePlot=!1)}return j(this,"afterIsInsidePlot",f),f.isInsidePlot}redraw(t){j(this,"beforeRedraw");let e,i,s,n,r=this.hasCartesianSeries?this.axes:this.colorAxis||[],o=this.series,a=this.pointer,l=this.legend,c=this.userOptions.legend,h=this.renderer,d=h.isHidden(),u=[],p=this.isDirtyBox,f=this.isDirtyLegend;for(h.rootFontSize=h.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),m(!!this.hasRendered&&t,this),d&&this.temporaryDisplay(),this.layOutTitles(!1),s=o.length;s--;)if(((n=o[s]).options.stacking||n.options.centerInCategory)&&(i=!0,n.isDirty)){e=!0;break}if(e)for(s=o.length;s--;)(n=o[s]).options.stacking&&(n.isDirty=!0);
2o.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),f=!0):c&&(c.labelFormatter||c.labelFormat)&&(f=!0)),t.isDirtyData&&j(t,"updatedData")}),f&&l&&l.options.enabled&&(l.render(),this.isDirtyLegend=!1),i&&this.getStacks(),r.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),r.forEach(function(t){t.isDirty&&(p=!0)}),r.forEach(function(t){let e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,u.push(function(){j(t,"afterSetExtremes",N(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(p||i)&&t.redraw()}),p&&this.drawChartBox(),j(this,"predraw"),o.forEach(function(t){(p||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),a&&a.reset(!0),h.draw(),j(this,"redraw"),j(this,"render"),d&&this.temporaryDisplay(!0),u.forEach(function(t){t.call()})}get(t){let e=this.series;function i(e){return e.id===t||e.options&&e.options.id===t}let s=B(this.axes,i)||B(this.series,i);for(let t=0;!s&&t<e.length;t++)s=B(e[t].points||[],i);return s}getAxes(){let t=this.userOptions;for(let i of(j(this,"getAxes"),["xAxis","yAxis"]))for(let s of t[i]=K(t[i]||{}))new e(this,s,i);j(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((t,e)=>(e.getPointsCollection().forEach(e=>{G(e.selectedStaging,e.selected)&&t.push(e)}),t),[])}getSelectedSeries(){return this.series.filter(function(t){return t.selected})}setTitle(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)}applyDescription(t,e){let i=this,s=this.options[t]=Y(this.options[t],e),n=this[t];n&&e&&(this[t]=n=n.destroy()),s&&!n&&((n=this.renderer.text(s.text,0,0,s.useHTML).attr({align:s.align,class:"highcharts-"+t,zIndex:s.zIndex||4}).add()).update=function(e,s){i.applyDescription(t,e),i.layOutTitles(s)},this.styledMode||n.css(N("title"===t?{fontSize:this.options.isStock?"1em":"1.2em"}:{},s.style)),this[t]=n)}layOutTitles(t=!0){let e=[0,0,0],i=this.renderer,s=this.spacingBox;["title","subtitle","caption"].forEach(function(t){let n=this[t],r=this.options[t],o=r.verticalAlign||"top",a="title"===t?"top"===o?-3:0:"top"===o?e[0]+2:0;if(n){n.css({width:(r.width||s.width+(r.widthAdjust||0))+"px"});let t=i.fontMetrics(n).b,l=Math.round(n.getBBox(r.useHTML).height);n.align(N({y:"bottom"===o?t:a+t,height:l},r),!1,"spacingBox"),r.floating||("top"===o?e[0]=Math.ceil(e[0]+l):"bottom"===o&&(e[2]=Math.ceil(e[2]+l)))}},this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);let n=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,j(this,"afterLayOutTitles"),!this.isDirtyBox&&n&&(this.isDirtyBox=this.isDirtyLegend=n,this.hasRendered&&t&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:F(this.renderTo,"width",!0)||0,height:F(this.renderTo,"height",!0)||0}}getChartSize(){let t=this.options.chart,e=t.width,i=t.height,s=this.getContainerBox();this.chartWidth=Math.max(0,e||s.width||600),this.chartHeight=Math.max(0,$(i,this.chartWidth)||(s.height>1?s.height:400)),this.containerBox=s}temporaryDisplay(t){let e,i=this.renderTo;if(t)for(;i&&i.style;)i.hcOrigStyle&&(O(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(S.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;i&&i.style&&(S.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,S.body.appendChild(i)),("none"===F(i,"display",!1)||i.hcOricDetached)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},e={display:"block",overflow:"hidden"},i!==this.renderTo&&(e.height=0),O(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==S.body););}setClassName(t){this.container.className="highcharts-container "+(t||"")}getContainer(){let t,e=this.options,i=e.chart,s="data-highcharts-chart",n=J(),r=this.renderTo;r||(this.renderTo=r=i.renderTo),W(r)&&(this.renderTo=r=S.getElementById(r)),r||R(13,!0,this);let a=U(T(r,s));
2H(a)&&w[a]&&w[a].hasRendered&&w[a].destroy(),T(r,s,this.index),r.innerHTML=u.emptyHTML,i.skipClone||r.offsetWidth||this.temporaryDisplay(),this.getChartSize();let l=this.chartHeight,h=this.chartWidth;O(r,{overflow:"hidden"}),this.styledMode||(t=N({position:"relative",overflow:"hidden",width:h+"px",height:l+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},i.style||{}));let d=P("div",{id:n},t,r);this.container=d,this.getChartSize(),h===this.chartWidth||(h=this.chartWidth,this.styledMode||O(d,{width:G(i.style?.width,h+"px")})),this.containerBox=this.getContainerBox(),this._cursor=d.style.cursor;let p=i.renderer||!C?o.getRendererType(i.renderer):c;if(this.renderer=new p(d,h,l,void 0,i.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),m(void 0,this),this.setClassName(i.className),this.styledMode)for(let t in e.defs)this.renderer.definition(e.defs[t]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,j(this,"afterGetContainer")}getMargins(t){let{spacing:e,margin:i,titleOffset:s}=this;this.resetMargins(),s[0]&&!L(i[0])&&(this.plotTop=Math.max(this.plotTop,s[0]+e[0])),s[2]&&!L(i[2])&&(this.marginBottom=Math.max(this.marginBottom,s[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),j(this,"getMargins"),t||this.getAxisMargins()}getAxisMargins(){let t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,s=t.margin,n=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?n(t.axes):i&&i.length&&n(i),k.forEach(function(i,n){L(s[n])||(t[i]+=e[n])}),t.setChartSize()}getOptions(){return _(this.userOptions,x)}reflow(t){let e=this,i=e.containerBox,s=e.getContainerBox();delete e.pointer?.chartPosition,!e.isPrinting&&!e.isResizing&&i&&s.width&&((s.width!==i.width||s.height!==i.height)&&(d.clearTimeout(e.reflowTimeout),e.reflowTimeout=Z(function(){e.container&&e.setSize(void 0,void 0,!1)},t?100:0)),e.containerBox=s)}setReflow(){let t=this,e=e=>{t.options?.chart.reflow&&t.hasLoaded&&t.reflow(e)};if("function"==typeof ResizeObserver)new ResizeObserver(e).observe(t.renderTo);else{let t=M(A,"resize",e);M(this,"destroy",t)}}setSize(t,e,i){let s=this,n=s.renderer;s.isResizing+=1,m(i,s);let r=n.globalAnimation;s.oldChartHeight=s.chartHeight,s.oldChartWidth=s.chartWidth,void 0!==t&&(s.options.chart.width=t),void 0!==e&&(s.options.chart.height=e),s.getChartSize();let{chartWidth:o,chartHeight:a,scrollablePixelsX:l=0,scrollablePixelsY:c=0}=s;(s.isDirtyBox||o!==s.oldChartWidth||a!==s.oldChartHeight)&&(s.styledMode||(r?f:O)(s.container,{width:`${o+l}px`,height:`${a+c}px`},r),s.setChartSize(!0),n.setSize(o,a,r),s.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),s.isDirtyLegend=!0,s.isDirtyBox=!0,s.layOutTitles(),s.getMargins(),s.redraw(r),s.oldChartHeight=void 0,j(s,"resize"),setTimeout(()=>{s&&j(s,"endResize")},g(r).duration)),s.isResizing-=1}setChartSize(t){let e,i,s,n,{chartHeight:r,chartWidth:o,inverted:a,spacing:l,renderer:c}=this,h=this.clipOffset,d=Math[a?"floor":"round"];this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=s=Math.max(0,Math.round(o-e-this.marginRight)),this.plotHeight=n=Math.max(0,Math.round(r-i-this.marginBottom)),this.plotSizeX=a?n:s,this.plotSizeY=a?s:n,this.spacingBox=c.spacingBox={x:l[3],y:l[0],width:o-l[3]-l[1],height:r-l[0]-l[2]},this.plotBox=c.plotBox={x:e,y:i,width:s,height:n},h&&(this.clipBox={x:d(h[3]),y:d(h[0]),width:d(this.plotSizeX-h[1]-h[3]),height:d(this.plotSizeY-h[0]-h[2])}),t||(this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),c.alignElements()),j(this,"afterSetChartSize",{skipAxes:t})}resetMargins(){j(this,"resetMargins");let t=this,e=t.options.chart,i=e.plotBorderWidth||0,s=i/2;["margin","spacing"].forEach(function(i){let s=e[i],n=X(s)?s:[s,s,s,s];["Top","Right","Bottom","Left"].forEach(function(s,r){t[i][r]=G(e[i+s],n[r])})}),k.forEach(function(e,i){t[e]=G(t.margin[i],t.spacing[i])}),t.axisOffset=[0,0,0,0],t.clipOffset=[s,s,s,s],t.plotBorderWidth=i}drawChartBox(){let t,e,i,s=this.options.chart,n=this.renderer,r=this.chartWidth,o=this.chartHe
vendor: 3,988 bytes, line 2
2ight,a=this.styledMode,l=this.plotBGImage,c=s.backgroundColor,h=s.plotBackgroundColor,d=s.plotBackgroundImage,u=this.plotLeft,p=this.plotTop,f=this.plotWidth,g=this.plotHeight,m=this.plotBox,x=this.clipRect,b=this.clipBox,y=this.chartBackground,v=this.plotBackground,w=this.plotBorder,S="animate";y||(this.chartBackground=y=n.rect().addClass("highcharts-background").add(),S="attr"),a?t=e=y.strokeWidth():(e=(t=s.borderWidth||0)+(s.shadow?8:0),i={fill:c||"none"},(t||y["stroke-width"])&&(i.stroke=s.borderColor,i["stroke-width"]=t),y.attr(i).shadow(s.shadow)),y[S]({x:e/2,y:e/2,width:r-e-t%2,height:o-e-t%2,r:s.borderRadius}),S="animate",v||(S="attr",this.plotBackground=v=n.rect().addClass("highcharts-plot-background").add()),v[S](m),!a&&(v.attr({fill:h||"none"}).shadow(s.plotShadow),d&&(l?(d!==l.attr("href")&&l.attr("href",d),l.animate(m)):this.plotBGImage=n.image(d,u,p,f,g).add())),x?x.animate({width:b.width,height:b.height}):this.clipRect=n.clipRect(b),S="animate",w||(S="attr",this.plotBorder=w=n.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),a||w.attr({stroke:s.plotBorderColor,"stroke-width":s.plotBorderWidth||0,fill:"none"}),w[S](w.crisp({x:u,y:p,width:f,height:g},-w.strokeWidth())),this.isDirtyBox=!1,j(this,"afterDrawChartBox")}propFromSeries(){let t,e,i,s=this,n=s.options.chart,r=s.options.series;["inverted","angular","polar"].forEach(function(o){for(e=E[n.type],i=n[o]||e&&e.prototype[o],t=r&&r.length;!i&&t--;)(e=E[r[t].type])&&e.prototype[o]&&(i=!0);s[o]=i})}linkSeries(t){let e=this,i=e.series;i.forEach(function(t){t.linkedSeries.length=0}),i.forEach(function(t){let{linkedTo:i}=t.options;if(W(i)){let s;(s=":previous"===i?e.series[t.index-1]:e.get(i))&&s.linkedParent!==t&&(s.linkedSeries.push(t),t.linkedParent=s,s.enabledDataSorting&&t.setDataSortingOptions(),t.visible=G(t.options.visible,s.options.visible,t.visible))}}),j(this,"afterLinkSeries",{isUpdating:t})}renderSeries(){this.series.forEach(function(t){t.translate(),t.render()})}render(){let t,e=this.axes,i=this.colorAxis,s=this.renderer,n=this.options.chart.axisLayoutRuns||2,r=t=>{t.forEach(t=>{t.visible&&t.render()})},o=0,a=!0,l=0;for(let t of(this.setTitle(),j(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),e)){let{options:e}=t,{labels:i}=e;if(this.hasCartesianSeries&&t.horiz&&t.visible&&i.enabled&&t.series.length&&"colorAxis"!==t.coll&&!this.polar){o=e.tickLength,t.createGroups();let s=new p(t,0,"",!0),n=s.createLabel("x",i);if(s.destroy(),n&&G(i.reserveSpace,!H(e.crossing))&&(o=n.getBBox().height+i.distance+Math.max(e.offset||0,0)),o){n?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-o,0);(a||t||n>1)&&l<n;){let i=this.plotWidth,s=this.plotHeight;for(let i of e)0===l?i.setScale():(i.horiz&&a||!i.horiz&&t)&&i.setTickInterval(!0);0===l?this.getAxisMargins():this.getMargins(),a=i/this.plotWidth>(l?1:1.1),t=s/this.plotHeight>(l?1:1.05),l++}this.drawChartBox(),this.hasCartesianSeries?r(e):i&&i.length&&r(i),this.seriesGroup||(this.seriesGroup=s.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(t){let e=this,i=Y(!0,this.options.credits,t);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){i.href&&(A.location.href=i.href)}).attr({align:i.position.align,zIndex:8}),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})}destroy(){let t,e=this,i=e.axes,s=e.series,n=e.container,o=n&&n.parentNode;for(j(e,"destroy"),e.renderer.forExport?D(w,e):w[e.index]=void 0,r.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),q(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=s.length;t--;)s[t]=s[t].destroy();
2["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(t){let i=e[t];i&&i.destroy&&(e[t]=i.destroy())}),n&&(n.innerHTML=u.emptyHTML,q(n),o&&I(n)),V(e,function(t,i){delete e[i]})}firstRender(){let t=this,e=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes();let i=z(e.series)?e.series:[];e.series=[],i.forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSortedData(),j(t,"beforeRender"),t.render(),t.pointer?.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),j(this,"load"),j(this,"render"),L(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:t,title:e}=this;!t||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(e&&e.element.textContent||"").replace(/</g,"&lt;")}),t.accessibility&&!1===t.accessibility.enabled||R('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}addSeries(t,e,i){let s,n=this;return t&&(e=G(e,!0),j(n,"addSeries",{options:t},function(){s=n.initSeries(t),n.isDirtyLegend=!0,n.linkSeries(),s.enabledDataSorting&&s.setData(t.data,!1),j(n,"afterAddSeries",{series:s}),e&&n.redraw(i)})),s}addAxis(t,e,i,s){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:s})}addColorAxis(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})}createAxis(t,i){let s=new e(this,i.axis,t);return G(i.redraw,!0)&&this.redraw(i.animation),s}showLoading(t){let e=this,i=e.options,s=i.loading,n=function(){r&&O(r,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},r=e.loadingDiv,o=e.loadingSpan;r||(e.loadingDiv=r=P("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),o||(e.loadingSpan=o=P("span",{className:"highcharts-loading-inner"},null,r),M(e,"redraw",n)),r.className="highcharts-loading",u.setElementHTML(o,G(t,i.lang.loading,"")),e.styledMode||(O(r,N(s.style,{zIndex:10})),O(o,s.labelStyle),e.loadingShown||(O(r,{opacity:0,display:""}),f(r,{opacity:s.style.opacity||.5},{duration:s.showDuration||0}))),e.loadingShown=!0,n()}hideLoading(){let t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||f(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){O(e,{display:"none"})}})),this.loadingShown=!1}update(t,e,i,s){let n,r,o,a=this,l={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},c=t.isResponsiveOptions,d=[];j(a,"update",{options:t}),c||a.setResponsive(!1,!0),t=_(t,a.options),a.userOptions=Y(a.userOptions,t);let u=t.chart;u&&(Y(!0,a.options.chart,u),this.setZoomOptions(),"className"in u&&a.setClassName(u.className),("inverted"in u||"polar"in u||"type"in u)&&(a.propFromSeries(),n=!0),"alignTicks"in u&&(n=!0),"events"in u&&v(this,u),V(u,function(t,e){-1!==a.propsRequireUpdateSeries.indexOf("chart."+e)&&(r=!0),-1!==a.propsRequireDirtyBox.indexOf(e)&&(a.isDirtyBox=!0),-1===a.propsRequireReflow.indexOf(e)||(a.isDirtyBox=!0,c||(o=!0))}),!a.styledMode&&u.style&&a.renderer.setStyle(a.options.chart.style||{})),!a.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===b&&(this.time=new h(t.time)),Y(!0,a.options.time,t.time)),V(t,function(e,i){a[i]&&"function"==typeof a[i].update?a[i].update(e,!1):"function"==typeof a[l[i]]?a[l[i]](e):"colors"!==i&&-1===a.collectionsWithUpdate.indexOf(i)&&Y(!0,a.options[i],t[i]),"chart"!==i&&-1!==a.propsRequireUpdateSeries.indexOf(i)&&(r=!0)}),this.collectionsWithUpdate.forEach(function(e){t[e]&&(K(t[e]).forEach(function(t,s){let n,r=L(t.id);r&&(n=a.get(t.id)),!n&&a[e]&&(n=a[e][G(t.index,s)])&&(r&&L(n.options.id)||n.options.isInternal)&&(n=void 0),n&&n.coll===e&&(n.update(t,!1),i&&(n.touched=!0)),!n&&i&&a.collectionsWithInit[e]&&(a.collectionsWithInit[e][0].apply(a,[t].concat(a.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}),i&&a[e].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:d.push(t)}))}),d.forEach(function(t){t.chart&&t.remove&&t.remove(!1)}
2),n&&a.axes.forEach(function(t){t.update({},!1)}),r&&a.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this);let p=u&&u.width,f=u&&(W(u.height)?$(u.height,p||a.chartWidth):u.height);o||H(p)&&p!==a.chartWidth||H(f)&&f!==a.chartHeight?a.setSize(p,f,s):G(e,!0)&&a.redraw(s),j(a,"afterUpdate",{options:t,redraw:e,animation:s})}setSubtitle(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)}setCaption(t,e){this.applyDescription("caption",t),this.layOutTitles(e)}showResetZoom(){let t=this,e=x.lang,i=t.zooming.resetButton,s=i.theme,n="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"plotBox";function r(){t.zoomOut()}j(this,"beforeShowResetZoom",null,function(){t.resetZoomButton=t.renderer.button(e.resetZoom,null,null,r,s).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,n)}),j(this,"afterShowResetZoom")}zoomOut(){j(this,"selection",{resetSelection:!0},()=>this.transform({reset:!0,trigger:"zoom"}))}pan(t,e){let i=this,s="object"==typeof e?e:{enabled:e,type:"x"},n=s.type,r=n&&i[{x:"xAxis",xy:"axes",y:"yAxis"}[n]].filter(t=>t.options.panningEnabled&&!t.options.isInternal),o=i.options.chart;o?.panning&&(o.panning=s),j(this,"pan",{originalEvent:t},()=>{i.transform({axes:r,event:t,to:{x:t.chartX-(i.mouseDownX||0),y:t.chartY-(i.mouseDownY||0)},trigger:"pan"}),O(i.container,{cursor:"move"})})}transform(t){let e,i,{axes:s=this.axes,event:n,from:r={},reset:o,selection:a,to:l={},trigger:c}=t,{inverted:h}=this,d=!1;for(let t of(this.hoverPoints?.forEach(t=>t.setState()),s)){let{horiz:s,len:u,minPointOffset:p=0,options:f,reversed:g}=t,m=s?"width":"height",x=s?"x":"y",b=G(l[m],t.len),y=G(r[m],t.len),v=10>Math.abs(b)?1:b/y,w=(r[x]||0)+y/2-t.pos,S=w-((l[x]??t.pos)+b/2-t.pos)/v,k=g&&!h||!g&&h?-1:1;if(!o&&(w<0||w>t.len))continue;let C=t.toValue(S,!0)+(a?0:p*k),A=t.toValue(S+u/v,!0)-(a?0:p*k||0),E=t.allExtremes;if(C>A&&([C,A]=[A,C]),1===v&&!o&&"yAxis"===t.coll&&!E){for(let e of t.series){let t=e.getExtremes(e.getProcessedData(!0).yData,!0);E??(E={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),H(t.dataMin)&&H(t.dataMax)&&(E.dataMin=Math.min(t.dataMin,E.dataMin),E.dataMax=Math.max(t.dataMax,E.dataMax))}t.allExtremes=E}let{dataMin:M,dataMax:T,min:P,max:O}=N(t.getExtremes(),E||{}),_=M??f.min,I=T??f.max,D=A-C,R=t.categories?0:Math.min(D,I-_),B=_-R*(L(f.min)?0:f.minPadding),j=I+R*(L(f.max)?0:f.maxPadding),F=t.allowZoomOutside||1===v||"zoom"!==c&&v>1,z=Math.min(f.min??B,B,F?P:B),X=Math.max(f.max??j,j,F?O:j);(!t.isOrdinal||1!==v||o)&&(C<z&&(C=z,v>=1&&(A=C+D)),A>X&&(A=X,v>=1&&(C=A-D)),(o||t.series.length&&(C!==P||A!==O)&&C>=z&&A<=X)&&(a?a[t.coll].push({axis:t,min:C,max:A}):(t.isPanning="zoom"!==c,t.isPanning&&(i=!0),t.setExtremes(o?void 0:C,o?void 0:A,!1,!1,{move:S,trigger:c,scale:v}),!o&&(C>z||A<X)&&"mousewheel"!==c&&(e=!0)),d=!0),n&&(this[s?"mouseDownX":"mouseDownY"]=n[s?"chartX":"chartY"]))}return d&&(a?j(this,"selection",a,()=>{delete t.selection,t.trigger="zoom",this.transform(t)}):(!e||i||this.resetZoomButton?!e&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===c&&(this.options.chart.animation??this.pointCount<100)))),d}}return N(Q.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Q.prototype.addAxis,[!0]],yAxis:[Q.prototype.addAxis,[!1]],series:[Q.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroun
2dColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),Q}),i(e,"Extensions/ScrollablePlotArea.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,s){let{stop:n}=t,{composed:r}=e,{addEvent:o,createElement:a,css:l,defined:c,merge:h,pushUnique:d}=s;function u(){let t=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!t&&(this.scrollablePlotArea=t=new f(this)),t?.applyFixed()}function p(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class f{static compose(t,e,i){d(r,this.compose)&&(o(t,"afterInit",p),o(e,"afterSetChartSize",t=>this.afterSetSize(t.target,t)),o(e,"render",u),o(i,"show",p))}static afterSetSize(t,e){let i,s,n,{minWidth:r,minHeight:o}=t.options.chart.scrollablePlotArea||{},{clipBox:a,plotBox:l,inverted:d,renderer:u}=t;if(!u.forExport&&(r?(t.scrollablePixelsX=i=Math.max(0,r-t.chartWidth),i&&(t.scrollablePlotBox=h(t.plotBox),l.width=t.plotWidth+=i,a[d?"height":"width"]+=i,n=!0)):o&&(t.scrollablePixelsY=s=Math.max(0,o-t.chartHeight),c(s)&&(t.scrollablePlotBox=h(t.plotBox),l.height=t.plotHeight+=s,a[d?"width":"height"]+=s,n=!1)),c(n)&&!e.skipAxes))for(let e of t.axes)e.horiz===n&&(e.setAxisSize(),e.setAxisTranslation())}constructor(t){let e,s=t.options.chart,n=i.getRendererType(),r=s.scrollablePlotArea||{},c=this.moveFixedElements.bind(this),h={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};t.scrollablePixelsX&&(h.overflowX="auto"),t.scrollablePixelsY&&(h.overflowY="auto"),this.chart=t;let d=this.parentDiv=a("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),u=this.scrollingContainer=a("div",{className:"highcharts-scrolling"},h,d),p=this.innerContainer=a("div",{className:"highcharts-inner-container"},void 0,u),f=this.fixedDiv=a("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(s.style?.zIndex||0)+2,top:0},void 0,!0),g=this.fixedRenderer=new n(f,t.chartWidth,t.chartHeight,s.style);this.mask=g.path().attr({fill:s.backgroundColor||"#fff","fill-opacity":r.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),u.parentNode.insertBefore(f,u),l(t.renderTo,{overflow:"visible"}),o(t,"afterShowResetZoom",c),o(t,"afterApplyDrilldown",c),o(t,"afterLayOutTitles",c),o(u,"scroll",()=>{let{pointer:i,hoverPoint:s}=t;i&&(delete i.chartPosition,s&&(e=s),i.runPointActions(void 0,e,!0))}),p.appendChild(t.container)}applyFixed(){let{chart:t,fixedRenderer:e,isDirty:i,scrollingContainer:s}=this,{axisOffset:r,chartWidth:o,chartHeight:a,container:h,plotHeight:d,plotLeft:u,plotTop:p,plotWidth:f,scrollablePixelsX:g=0,scrollablePixelsY:m=0}=t,{scrollPositionX:x=0,scrollPositionY:b=0}=t.options.chart.scrollablePlotArea||{},y=o+g,v=a+m;e.setSize(o,a),(i??!0)&&(this.isDirty=!1,this.moveFixedElements()),n(t.container),l(h,{width:`${y}px`,height:`${v}px`}),t.renderer.boxWrapper.attr({width:y,height:v,viewBox:[0,0,y,v].join(" ")}),t.chartBackground?.attr({width:y,height:v}),l(s,{width:`${o}px`,height:`${a}px`}),c(i)||(s.scrollLeft=g*x,s.scrollTop=m*b);let w=p-r[0]-1,S=u-r[3]-1,k=p+d+r[2]+1,C=u+f+r[1]+1,A=u+f-g,E=p+d-m,M=[["M",0,0]];g?M=[["M",0,w],["L",u-1,w],["L",u-1,k],["L",0,k],["Z"],["M",A,w],["L",o,w],["L",o,k],["L",A,k],["Z"]]:m&&(M=[["M",S,0],["L",S,p-1],["L",C,p-1],["L",C,0],["Z"],["M",S,E],["L",S,a],["L",C,a],["L",C,E],["Z"]]),"adjustHeight"!==t.redrawTrigger&&this.mask.attr({d:M})}moveFixedElements(){let t,{container:e,inverted:i,scrollablePixelsX:s,scrollablePixelsY:n}=this.chart,r=this.fixedRenderer,o=f.fixedSelectors;for(let a of(s&&!i?t=".highcharts-yaxis":s&&i||n&&!i?t=".highcharts-xaxis":n&&i&&(t=".highcharts-yaxis"),t&&o.push(`${t}:not(.highcharts-radial-axis)`,`${t}-labels:not(.highcharts-radial-axis-labels)`),o))[].forEach.call(e.querySelectorAll(a),t=>
2{(t.namespaceURI===r.SVG_NS?r.box:r.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})}}return f.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],f}),i(e,"Core/Axis/Stacking/StackItem.js",[e["Core/Templating.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i){let{format:s}=t,{series:n}=e,{destroyObjectProperties:r,fireEvent:o,isNumber:a,pick:l}=i;return class{constructor(t,e,i,s,n){let r=t.chart.inverted,o=t.reversed;this.axis=t;let a=this.isNegative=!!i!=!!o;this.options=e=e||{},this.x=s,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=n,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e.align||(r?a?"left":"right":"center"),verticalAlign:e.verticalAlign||(r?"middle":a?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(r?a?"right":"left":"center")}destroy(){r(this,this.axis)}render(t){let e=this.axis.chart,i=this.options,n=i.format,r=n?s(n,this,e):i.formatter.call(this);if(this.label)this.label.attr({text:r,visibility:"hidden"});else{this.label=e.renderer.label(r,null,void 0,i.shape,void 0,void 0,i.useHTML,!1,"stack-labels");let s={r:i.borderRadius||0,text:r,padding:l(i.padding,5),visibility:"hidden"};e.styledMode||(s.fill=i.backgroundColor,s.stroke=i.borderColor,s["stroke-width"]=i.borderWidth,this.label.css(i.style||{})),this.label.attr(s),this.label.added||this.label.add(t)}this.label.labelrank=e.plotSizeY,o(this,"afterRender")}setOffset(t,e,i,s,r,c){let{alignOptions:h,axis:d,label:u,options:p,textAlign:f}=this,g=d.chart,m=this.getStackBox({xOffset:t,width:e,boxBottom:i,boxTop:s,defaultX:r,xAxis:c}),{verticalAlign:x}=h;if(u&&m){let t,e=u.getBBox(void 0,0),i=u.padding,s="justify"===l(p.overflow,"justify");h.x=p.x||0,h.y=p.y||0;let{x:r,y:o}=this.adjustStackPosition({labelBox:e,verticalAlign:x,textAlign:f});m.x-=r,m.y-=o,u.align(h,!1,m),(t=g.isInsidePlot(u.alignAttr.x+h.x+r,u.alignAttr.y+h.y+o))||(s=!1),s&&n.prototype.justifyDataLabel.call(d,u,h,u.alignAttr,e,m),u.attr({x:u.alignAttr.x,y:u.alignAttr.y,rotation:p.rotation,rotationOriginX:e.width*{left:0,center:.5,right:1}[p.textAlign||"center"],rotationOriginY:e.height/2}),l(!s&&p.crop,!0)&&(t=a(u.x)&&a(u.y)&&g.isInsidePlot(u.x-i+(u.width||0),u.y)&&g.isInsidePlot(u.x+i,u.y)),u[t?"show":"hide"]()}o(this,"afterSetOffset",{xOffset:t,width:e})}adjustStackPosition({labelBox:t,verticalAlign:e,textAlign:i}){let s={bottom:0,middle:1,top:2,right:1,center:0,left:-1},n=s[e],r=s[i];return{x:t.width/2+t.width/2*r,y:t.height/2*n}}getStackBox(t){let e=this.axis,i=e.chart,{boxTop:s,defaultX:n,xOffset:r,width:o,boxBottom:c}=t,h=e.stacking.usePercentage?100:l(s,this.total,0),d=e.toPixels(h),u=t.xAxis||i.xAxis[0],p=l(n,u.translate(this.x))+r,f=Math.abs(d-e.toPixels(c||a(e.min)&&e.logarithmic&&e.logarithmic.lin2log(e.min)||0)),g=i.inverted,m=this.isNegative;return g?{x:(m?d:d-f)-i.plotLeft,y:u.height-p-o+u.top-i.plotTop,width:f,height:o}:{x:p+u.transB-i.plotLeft,y:(m?d-f:d)-i.plotTop,width:o,height:f}}}}),i(e,"Core/Axis/Stacking/StackingAxis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Utilities.js"]],function(t,e,i,s,n){var r;let{getDeferredAnimation:o}=t,{series:{prototype:a}}=i,{addEvent:l,correctFloat:c,defined:h,destroyObjectProperties:d,fireEvent:u,isArray:p,isNumber:f,objectEach:g,pick:m}=n;function x(){let t=this.inverted;this.axes.forEach(t=>{t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),this.series.forEach(e=>{let i=e.xAxis&&e.xAxis.options||{};e.options.stacking&&e.reserveSpace()&&(e.stackKey=[e.type,m(e.options.stack,""),t?i.top:i.left,t?i.height:i.width].join(","))})}function b(){let t=this.stacking;if(t){let e=t.stacks;g(e,(t,i)=>{d(t),delete e[i]}),t.stackTotalGroup?.destroy()}}function y(){this.stacking||(this.stacking=new A(this))}function v(t,e,i,s){return!h(t)||t.x!==e||s&&t.stackKey!==s?t={x:e,index:0,key:s,stackKey:s}:t.index++,t.key=[i,e,t.index].join(","),t}function w(){let t,e=this,i=e.yAxis,s=e.stackKey||"",n=i.stacking.stacks,r=e.processedXData,o=e.options.stacking,a=e[o+"Stacker"];
2a&&[s,"-"+s].forEach(i=>{let s,o,l,c=r.length;for(;c--;)s=r[c],t=e.getStackIndicator(t,s,e.index,i),o=n[i]?.[s],(l=o?.points[t.key||""])&&a.call(e,l,o,c)})}function S(t,e,i){let s=e.total?100/e.total:0;t[0]=c(t[0]*s),t[1]=c(t[1]*s),this.stackedYData[i]=t[1]}function k(t){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?a.setStackedPoints.call(this,t,"group"):t.stacking.resetStacks())}function C(t,e){let i,n,r,o,a,l,d,u,f,g=e||this.options.stacking;if(!g||!this.reserveSpace()||({group:"xAxis"}[g]||"yAxis")!==t.coll)return;let x=this.processedXData,b=this.processedYData,y=[],v=b.length,w=this.options,S=w.threshold||0,k=w.startFromThreshold?S:0,C=w.stack,A=e?`${this.type},${g}`:this.stackKey||"",E="-"+A,M=this.negStacks,T=t.stacking,P=T.stacks,O=T.oldStacks;for(T.stacksTouched+=1,d=0;d<v;d++){u=x[d],f=b[d],l=(i=this.getStackIndicator(i,u,this.index)).key||"",P[a=(n=M&&f<(k?0:S))?E:A]||(P[a]={}),P[a][u]||(O[a]?.[u]?(P[a][u]=O[a][u],P[a][u].total=null):P[a][u]=new s(t,t.options.stackLabels,!!n,u,C)),r=P[a][u],null!==f?(r.points[l]=r.points[this.index]=[m(r.cumulative,k)],h(r.cumulative)||(r.base=l),r.touched=T.stacksTouched,i.index>0&&!1===this.singleStacks&&(r.points[l][0]=r.points[this.index+","+u+",0"][0])):(delete r.points[l],delete r.points[this.index]);let e=r.total||0;"percent"===g?(o=n?A:E,e=M&&P[o]?.[u]?(o=P[o][u]).total=Math.max(o.total||0,e)+Math.abs(f)||0:c(e+(Math.abs(f)||0))):"group"===g?(p(f)&&(f=f[0]),null!==f&&e++):e=c(e+(f||0)),r.cumulative="group"===g?(e||1)-1:c(m(r.cumulative,k)+(f||0)),r.total=e,null!==f&&(r.points[l].push(r.cumulative),y[d]=r.cumulative,r.hasValidPoints=!0)}"percent"===g&&(T.usePercentage=!0),"group"!==g&&(this.stackedYData=y),T.oldStacks={}}class A{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){let t,e,i=this.axis,s=i.series,n="xAxis"===i.coll,r=i.options.reversedStacks,o=s.length;for(this.resetStacks(),this.usePercentage=!1,e=o;e--;)t=s[r?e:o-e-1],n&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!n)for(e=0;e<o;e++)s[e].modifyStacks();u(i,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,g(this.stacks,t=>{g(t,t=>{t.cumulative=t.total})}))}resetStacks(){g(this.stacks,t=>{g(t,(e,i)=>{f(e.touched)&&e.touched<this.stacksTouched?(e.destroy(),delete t[i]):(e.total=null,e.cumulative=null)})})}renderStackTotals(){let t=this.axis,e=t.chart,i=e.renderer,s=this.stacks,n=o(e,t.options.stackLabels?.animation||!1),r=this.stackTotalGroup=this.stackTotalGroup||i.g("stack-labels").attr({zIndex:6,opacity:0}).add();r.translate(e.plotLeft,e.plotTop),g(s,t=>{g(t,t=>{t.render(r)})}),r.animate({opacity:1},n)}}return(r||(r={})).compose=function(t,e,i){let s=e.prototype,n=i.prototype;s.getStacks||(l(t,"init",y),l(t,"destroy",b),s.getStacks=x,n.getStackIndicator=v,n.modifyStacks=w,n.percentStacker=S,n.setGroupedPoints=k,n.setStackedPoints=C)},r}),i(e,"Series/Line/LineSeries.js",[e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i){let{defined:s,merge:n,isObject:r}=i;class o extends t{drawGraph(){let t=this.options,e=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode;[this,...this.zones].forEach((s,o)=>{let a,l=s.graph,c=l?"animate":"attr",h=s.dashStyle||t.dashStyle;l?(l.endX=this.preventGraphAnimation?null:e.xMap,l.animate({d:e})):e.length&&(s.graph=l=this.chart.renderer.path(e).addClass("highcharts-graph"+(o?` highcharts-zone-graph-${o-1} `:" ")+(o&&s.className||"")).attr({zIndex:1}).add(this.group)),l&&!i&&(a={stroke:!o&&t.lineColor||s.color||this.color||"#cccccc","stroke-width":t.lineWidth||0,fill:this.fillGraph&&this.color||"none"},h?a.dashstyle=h:"square"!==t.linecap&&(a["stroke-linecap"]=a["stroke-linejoin"]="round"),l[c](a).shadow(o<2&&t.shadow&&n({filterUnits:"userSpaceOnUse"},r(t.shadow)?t.shadow:{}))),l&&(l.startX=e.xMap,l.isArea=e.isArea)})}getGraphPath(t,e,i){let n,r=this,o=r.options,a=[],l=[],c=o.step,h=(t=t||r.points).reversed;return h&&t.reverse(),(c={right:1,center:2}[c]||c&&3)&&h&&(c=4-c),(t=this.getValidPoints(t,!1,!(o.connectNulls&&!e&&!i))).forEac
vendor: 4,373 bytes, line 2
2h(function(h,d){let u,p=h.plotX,f=h.plotY,g=t[d-1],m=h.isNull||"number"!=typeof f;(h.leftCliff||g&&g.rightCliff)&&!i&&(n=!0),m&&!s(e)&&d>0?n=!o.connectNulls:m&&!e?n=!0:(0===d||n?u=[["M",h.plotX,h.plotY]]:r.getPointSpline?u=[r.getPointSpline(t,h,d)]:c?(u=1===c?[["L",g.plotX,f]]:2===c?[["L",(g.plotX+p)/2,g.plotY],["L",(g.plotX+p)/2,f]]:[["L",p,g.plotY]]).push(["L",p,f]):u=[["L",p,f]],l.push(h.x),c&&(l.push(h.x),2===c&&l.push(h.x)),a.push.apply(a,u),n=!1)}),a.xMap=l,r.graphPath=a,a}}return o.defaultOptions=n(t.defaultOptions,{legendSymbol:"lineMarker"}),e.registerSeriesType("line",o),o}),i(e,"Series/Area/AreaSeriesDefaults.js",[],function(){return{threshold:0,legendSymbol:"areaMarker"}}),i(e,"Series/Area/AreaSeries.js",[e["Series/Area/AreaSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i){let{seriesTypes:{line:s}}=e,{extend:n,merge:r,objectEach:o,pick:a}=i;class l extends s{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:t,options:e}=this;[this,...this.zones].forEach((i,s)=>{let n={},r=i.fillColor||e.fillColor,o=i.area,a=o?"animate":"attr";o?(o.endX=this.preventGraphAnimation?null:t.xMap,o.animate({d:t})):(n.zIndex=0,(o=i.area=this.chart.renderer.path(t).addClass("highcharts-area"+(s?` highcharts-zone-area-${s-1} `:" ")+(s&&i.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(n.fill=r||i.color||this.color,n["fill-opacity"]=r?1:e.fillOpacity??.75,o.css({pointerEvents:this.stickyTracking?"none":"auto"})),o[a](n),o.startX=t.xMap,o.shiftUnit=e.step?2:1})}getGraphPath(t){let e,i,n,r=s.prototype.getGraphPath,o=this.options,l=o.stacking,c=this.yAxis,h=[],d=[],u=this.index,p=c.stacking.stacks[this.stackKey],f=o.threshold,g=Math.round(c.getThreshold(o.threshold)),m=a(o.connectNulls,"percent"===l),x=function(i,s,n){let r,o,a=t[i],m=l&&p[a.x].points[u],x=a[n+"Null"]||0,b=a[n+"Cliff"]||0,y=!0;b||x?(r=(x?m[0]:m[1])+b,o=m[0]+b,y=!!x):!l&&t[s]&&t[s].isNull&&(r=o=f),void 0!==r&&(d.push({plotX:e,plotY:null===r?g:c.getThreshold(r),isNull:y,isCliff:!0}),h.push({plotX:e,plotY:null===o?g:c.getThreshold(o),doCurve:!1}))};t=t||this.points,l&&(t=this.getStackPoints(t));for(let s=0,r=t.length;s<r;++s)l||(t[s].leftCliff=t[s].rightCliff=t[s].leftNull=t[s].rightNull=void 0),i=t[s].isNull,e=a(t[s].rectPlotX,t[s].plotX),n=l?a(t[s].yBottom,g):g,i&&!m||(m||x(s,s-1,"left"),i&&!l&&m||(d.push(t[s]),h.push({x:s,plotX:e,plotY:n})),m||x(s,s+1,"right"));let b=r.call(this,d,!0,!0);h.reversed=!0;let y=r.call(this,h,!0,!0),v=y[0];v&&"M"===v[0]&&(y[0]=["L",v[1],v[2]]);let w=b.concat(y);w.length&&w.push(["Z"]);let S=r.call(this,d,!1,m);return this.chart.series.length>1&&l&&d.some(t=>t.isCliff)&&(w.hasStackedCliffs=S.hasStackedCliffs=!0),w.xMap=b.xMap,this.areaPath=w,S}getStackPoints(t){let e=this,i=[],s=[],n=this.xAxis,r=this.yAxis,l=r.stacking.stacks[this.stackKey],c={},h=r.series,d=h.length,u=r.options.reversedStacks?1:-1,p=h.indexOf(e);if(t=t||this.points,this.options.stacking){for(let e=0;e<t.length;e++)t[e].leftNull=t[e].rightNull=void 0,c[t[e].x]=t[e];o(l,function(t,e){null!==t.total&&s.push(e)}),s.sort(function(t,e){return t-e});let f=h.map(t=>t.visible);s.forEach(function(t,o){let g,m,x=0;if(c[t]&&!c[t].isNull)i.push(c[t]),[-1,1].forEach(function(i){let n=1===i?"rightNull":"leftNull",r=l[s[o+i]],a=0;if(r){let i=p;for(;i>=0&&i<d;){let s=h[i].index;!(g=r.points[s])&&(s===e.index?c[t][n]=!0:f[i]&&(m=l[t].points[s])&&(a-=m[1]-m[0])),i+=u}}c[t][1===i?"rightCliff":"leftCliff"]=a});else{let e=p;for(;e>=0&&e<d;){let i=h[e].index;if(g=l[t].points[i]){x=g[1];break}e+=u}x=a(x,0),x=r.translate(x,0,1,0,1),i.push({isNull:!0,plotX:n.translate(t,0,0,0,1),x:t,plotY:x,yBottom:x})}})}return i}}return l.defaultOptions=r(s.defaultOptions,t),n(l.prototype,{singleStacks:!1}),e.registerSeriesType("area",l),l}),i(e,"Series/Spline/SplineSeries.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e){let{line:i}=t.seriesTypes,{merge:s,pick:n}=e;class r extends i{getPointSpline(t,e,i){let s,r,o,a,l=e.plotX||0,c=e.plotY||0,h=t[i-1],d=t[i+1];function u(t){return t&&!t.isNull&&!1!==t.doCurve&&!e.isCliff}if(u(h)&&u(d)){let t=h.plotX||0,i=h.plotY||0,n=d.plotX||0,u=d.plotY||0,p=0;s=(1.5*l+t)/2.5,r=(1.5*c+i)/2.5,o=(1.5*l+n)/2.5,a=(1.5*c+u)/2.5,o!==s&&(p=(a-r)*(o-l)/(o-s)+c-a),r+=p,a+=p,r>i&&r>c?(r=Math.max(i,c),a=2*c-r):r<i&&r<c&&(r=Math.min(i,c),a=2*c-r),a>u&&a>
2c?(a=Math.max(u,c),r=2*c-a):a<u&&a<c&&(a=Math.min(u,c),r=2*c-a),e.rightContX=o,e.rightContY=a,e.controlPoints={low:[s,r],high:[o,a]}}let p=["C",n(h.rightContX,h.plotX,0),n(h.rightContY,h.plotY,0),n(s,l,0),n(r,c,0),l,c];return h.rightContX=h.rightContY=void 0,p}}return r.defaultOptions=s(i.defaultOptions),t.registerSeriesType("spline",r),r}),i(e,"Series/AreaSpline/AreaSplineSeries.js",[e["Series/Spline/SplineSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i){let{area:s,area:{prototype:n}}=e.seriesTypes,{extend:r,merge:o}=i;class a extends t{}return a.defaultOptions=o(t.defaultOptions,s.defaultOptions),r(a.prototype,{getGraphPath:n.getGraphPath,getStackPoints:n.getStackPoints,drawGraph:n.drawGraph}),e.registerSeriesType("areaspline",a),a}),i(e,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),i(e,"Series/Column/ColumnSeries.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],e["Series/Column/ColumnSeriesDefaults.js"],e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,s,n,r,o){let{animObject:a}=t,{parse:l}=e,{noop:c}=s,{clamp:h,crisp:d,defined:u,extend:p,fireEvent:f,isArray:g,isNumber:m,merge:x,pick:b,objectEach:y}=o;class v extends n{animate(t){let e,i,s=this,n=this.yAxis,r=n.pos,o=n.reversed,l=s.options,{clipOffset:c,inverted:d}=this.chart,u={},f=d?"translateX":"translateY";t&&c?(u.scaleY=.001,i=h(n.toPixels(l.threshold),r,r+n.len),d?(i+=o?-Math.floor(c[0]):Math.ceil(c[2]),u.translateX=i-n.len):(i+=o?Math.ceil(c[0]):-Math.floor(c[2]),u.translateY=i),s.clipBox&&s.setClip(),s.group.attr(u)):(e=Number(s.group.attr(f)),s.group.animate({scaleY:1},p(a(s.options.animation),{step:function(t,i){s.group&&(u[f]=e+i.pos*(r-e),s.group.attr(u))}})))}init(t,e){super.init.apply(this,arguments);let i=this;(t=i.chart).hasRendered&&t.series.forEach(function(t){t.type===i.type&&(t.isDirty=!0)})}getColumnMetrics(){let t,e=this,i=e.options,s=e.xAxis,n=e.yAxis,r=s.options.reversedStacks,o=s.reversed&&!r||!s.reversed&&r,a={},l=0;!1===i.grouping?l=1:e.chart.series.forEach(function(i){let s,r=i.yAxis,o=i.options;i.type===e.type&&i.reserveSpace()&&n.len===r.len&&n.pos===r.pos&&(o.stacking&&"group"!==o.stacking?(void 0===a[t=i.stackKey]&&(a[t]=l++),s=a[t]):!1!==o.grouping&&(s=l++),i.columnIndex=s)});let c=Math.min(Math.abs(s.transA)*(!s.brokenAxis?.hasBreaks&&s.ordinal?.slope||i.pointRange||s.closestPointRange||s.tickInterval||1),s.len),h=c*i.groupPadding,d=(c-2*h)/(l||1),u=Math.min(i.maxPointWidth||s.len,b(i.pointWidth,d*(1-2*i.pointPadding))),p=(e.columnIndex||0)+(o?1:0);return e.columnMetrics={width:u,offset:(d-u)/2+(h+p*d-c/2)*(o?-1:1),paddedWidth:d,columnCount:l},e.columnMetrics}crispCol(t,e,i,s){let n=this.borderWidth,r=this.chart.inverted;return s=d(e+s,n,r)-(e=d(e,n,r)),this.options.crisp&&(i=d(t+i,n)-(t=d(t,n))),{x:t,y:e,width:i,height:s}}adjustForMissingColumns(t,e,i,s){if(!i.isNull&&s.columnCount>1){let n=this.xAxis.series.filter(t=>t.visible).map(t=>t.index),r=0,o=0;y(this.xAxis.stacking?.stacks,t=>{if("number"==typeof i.x){let e=t[i.x.toString()];if(e&&g(e.points[this.index])){let t=Object.keys(e.points).filter(t=>!t.match(",")&&e.points[t]&&e.points[t].length>1).map(parseFloat).filter(t=>-1!==n.indexOf(t)).sort((t,e)=>e-t);r=t.indexOf(this.index),o=t.length}}}),r=this.xAxis.reversed?o-1-r:r;let a=(o-1)*s.paddedWidth+e;t=(i.plotX||0)+a/2-e-r*s.paddedWidth}return t}translate(){let t=this,e=t.chart,i=t.options,s=t.dense=t.closestPointRange*t.xAxis.transA<2,r=t.borderWidth=b(i.borderWidth,s?0:1),o=t.xAxis,a=t.yAxis,l=i.threshold,c=b(i.minPointLength,5),d=t.getColumnMetrics(),p=d.width,g=t.pointXOffset=d.offset,x=t.dataMin,y=t.dataMax,v=t.translatedThreshold=a.getThreshold(l),w=t.barW=Math.max(p,1+2*r);i.pointPadding&&(w=Math.ceil(w)),n.prototype.translate.apply(t),t.points.forEac
vendor: 5,741 bytes, line 2
2h(function(s){let n,r=b(s.yBottom,v),f=999+Math.abs(r),S=s.plotX||0,k=h(s.plotY,-f,a.len+f),C=Math.min(k,r),A=Math.max(k,r)-C,E=p,M=S+g,T=w;c&&Math.abs(A)<c&&(A=c,n=!a.reversed&&!s.negative||a.reversed&&s.negative,m(l)&&m(y)&&s.y===l&&y<=l&&(a.min||0)<l&&(x!==y||(a.max||0)<=l)&&(n=!n,s.negative=!s.negative),C=Math.abs(C-v)>c?r-c:v-(n?c:0)),u(s.options.pointWidth)&&(M-=Math.round(((E=T=Math.ceil(s.options.pointWidth))-p)/2)),i.centerInCategory&&!i.stacking&&(M=t.adjustForMissingColumns(M,E,s,d)),s.barX=M,s.pointWidth=E,s.tooltipPos=e.inverted?[h(a.len+a.pos-e.plotLeft-k,a.pos-e.plotLeft,a.len+a.pos-e.plotLeft),o.len+o.pos-e.plotTop-M-T/2,A]:[o.left-e.plotLeft+M+T/2,h(k+a.pos-e.plotTop,a.pos-e.plotTop,a.len+a.pos-e.plotTop),A],s.shapeType=t.pointClass.prototype.shapeType||"roundedRect",s.shapeArgs=t.crispCol(M,s.isNull?v:C,T,s.isNull?0:A)}),f(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(t,e){let i,s,n,r=this.options,o=this.pointAttrToOptions||{},a=o.stroke||"borderColor",c=o["stroke-width"]||"borderWidth",h=t&&t.color||this.color,d=t&&t[a]||r[a]||h,u=t&&t.options.dashStyle||r.dashStyle,p=t&&t[c]||r[c]||this[c]||0,f=b(t&&t.opacity,r.opacity,1);t&&this.zones.length&&(s=t.getZone(),h=t.options.color||s&&(s.color||t.nonZonedColor)||this.color,s&&(d=s.borderColor||d,u=s.dashStyle||u,p=s.borderWidth||p)),e&&t&&(n=(i=x(r.states[e],t.options.states&&t.options.states[e]||{})).brightness,h=i.color||void 0!==n&&l(h).brighten(i.brightness).get()||h,d=i[a]||d,p=i[c]||p,u=i.dashStyle||u,f=b(i.opacity,f));let g={fill:h,stroke:d,"stroke-width":p,opacity:f};return u&&(g.dashstyle=u),g}drawPoints(t=this.points){let e,i=this,s=this.chart,n=i.options,r=s.renderer,o=n.animationLimit||250;t.forEach(function(t){let a=t.plotY,l=t.graphic,c=!!l,h=l&&s.pointCount<o?"animate":"attr";m(a)&&null!==t.y?(e=t.shapeArgs,l&&t.hasNewShapeType()&&(l=l.destroy()),i.enabledDataSorting&&(t.startXPos=i.xAxis.reversed?-(e&&e.width||0):i.xAxis.width),!l&&(t.graphic=l=r[t.shapeType](e).add(t.group||i.group),l&&i.enabledDataSorting&&s.hasRendered&&s.pointCount<o&&(l.attr({x:t.startXPos}),c=!0,h="animate")),l&&c&&l[h](x(e)),s.styledMode||l[h](i.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&n.shadow),l&&(l.addClass(t.getClassName(),!0),l.attr({visibility:t.visible?"inherit":"hidden"}))):l&&(t.graphic=l.destroy())})}drawTracker(t=this.points){let e,i=this,s=i.chart,n=s.pointer,r=function(t){let e=n?.getPointFromEvent(t);n&&e&&i.options.enableMouseTracking&&(n.isDirectTouch=!0,e.onMouseOver(t))};t.forEach(function(t){e=g(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),e.forEach(function(e){(e.div||e.element).point=t})}),i._hasTracking||(i.trackerGroups.forEach(function(t){i[t]&&(i[t].addClass("highcharts-tracker").on("mouseover",r).on("mouseout",function(t){n?.onTrackerMouseOut(t)}).on("touchstart",r),!s.styledMode&&i.options.cursor&&i[t].css({cursor:i.options.cursor}))}),i._hasTracking=!0),f(this,"afterDrawTracker")}remove(){let t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),n.prototype.remove.apply(t,arguments)}}return v.defaultOptions=x(n.defaultOptions,i),p(v.prototype,{directTouch:!0,getSymbol:c,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),r.registerSeriesType("column",v),v}),i(e,"Core/Series/DataLabel.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Templating.js"],e["Core/Utilities.js"]],function(t,e,i){var s;let{getDeferredAnimation:n}=t,{format:r}=e,{defined:o,extend:a,fireEvent:l,isArray:c,isString:h,merge:d,objectEach:u,pick:p,pInt:f,splat:g}=i;return function(t){function e(){return v(this).some(t=>t?.enabled)}function i(t,e,i,s,n){let{chart:r,enabledDataSorting:l}=this,c=this.isCartesian&&r.inverted,h=t.plotX,u=t.plotY,f=i.rotation||0,g=o(h)&&o(u)&&r.isInsidePlot(h,Math.round(u),{inverted:c,paneCoordinates:!0,series:this}),m=0===f&&"justify"===p(i.overflow,l?"none":"justify"),x=this.visible&&!1!==t.visible&&o(h)&&(t.series.forceDL||l&&!m||g||p(i.inside,!!this.options.stacking)&&s&&r.isInsidePlot(h,c?s.x+1:s.y+s.height-1,{inverted:c,paneCoordinates:!0,series:this})),b=t.pos();if(x&&b){var y;let o=e.getBBox(),h=e.getBBox(void 0,0),u={right:1,center:.5}[i.align||0]||0,v={bottom:1,middle:.5}[i.verticalAlign||0]||0;if(s=a({x:b[0],y:Math.round(b[1]),width:0,height:0},s||{}),"plotEdges"===i.alignTo&&this.isCartesian&&(s[c?"x":"y"]=0,s[c?"width":"height"]=this.yAxis?.len||0),a(i,{width:o.width,height:o.height}),y=s,l&&this.xAxis&&!m&&this.setDataLabelStartPos(t,e,n,g,y),e.align(d(i,{width:h.width,height:h.height}),!1,s,!1),e.alignAttr.x+=u*(h.width-o.width),e.alignAttr.y+=v*(h.height-o.height),e[e.placed?"animate":"attr"]({x:e.alignAttr.x+(o.width-h.width)/2,y:e.alignAttr.y+(o.height-h.height)/2,rotationOriginX:(e.width||0)/2,rotationOriginY:(e.height||0)/2}),m&&s.height>=0)this.justifyDataLabel(e,i,e.alignAttr,o,s,n);else if(p(i.crop,!0)){let{x:t,y:i}=e.alignAttr;x=r.isInsidePlot(t,i,{paneCoordinates:!0,series:this})&&r.isInsidePlot(t+o.width-1,i+o.height-1,{paneCoordinates:!0,series:this})}i.shape&&!f&&e[n?"attr":"animate"]({anchorX:b[0],anchorY:b[1]})}n&&l&&(e.placed=!1),x||l&&!m?(e.show(),e.placed=!0):(e.hide(),e.placed=!1)}function s(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function m(t){let e=this.hasRendered||0,i=this.initDataLabelsGroup().attr({opacity:+e});return!e&&i&&(this.visible&&i.show(),this.options.animation?i.animate({opacity:1},t):i.attr({opacity:1})),i}function x(t){let e;t=t||this.points;let i=this,s=i.chart,a=i.options,c=s.renderer,{backgroundColor:d,plotBackgroun
2dColor:m}=s.options.chart,x=c.getContrast(h(m)&&m||h(d)&&d||"#000000"),b=v(i),{animation:w,defer:S}=b[0],k=S?n(s,w,i):{defer:0,duration:0};l(this,"drawDataLabels"),i.hasDataLabels?.()&&(e=this.initDataLabels(k),t.forEach(t=>{let n=t.dataLabels||[];g(y(b,t.dlOptions||t.options?.dataLabels)).forEach((d,g)=>{let m,b,y,v,w,S=d.enabled&&(t.visible||t.dataLabelOnHidden)&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){let i=e.filter;if(i){let e=i.operator,s=t[i.property],n=i.value;return">"===e&&s>n||"<"===e&&s<n||">="===e&&s>=n||"<="===e&&s<=n||"=="===e&&s==n||"==="===e&&s===n||"!="===e&&s!=n||"!=="===e&&s!==n}return!0}(t,d),{backgroundColor:k,borderColor:C,distance:A,style:E={}}=d,M={},T=n[g],P=!T;S&&(b=p(d[t.formatPrefix+"Format"],d.format),m=t.getLabelConfig(),y=o(b)?r(b,m,s):(d[t.formatPrefix+"Formatter"]||d.formatter).call(m,d),v=d.rotation,!s.styledMode&&(E.color=p(d.color,E.color,h(i.color)?i.color:void 0,"#000000"),"contrast"===E.color?("none"!==k&&(w=k),t.contrastColor=c.getContrast("auto"!==w&&w||t.color||i.color),E.color=w||!o(A)&&d.inside||0>f(A||0)||a.stacking?t.contrastColor:x):delete t.contrastColor,a.cursor&&(E.cursor=a.cursor)),M={r:d.borderRadius||0,rotation:v,padding:d.padding,zIndex:1},s.styledMode||(M.fill="auto"===k?t.color:k,M.stroke="auto"===C?t.color:C,M["stroke-width"]=d.borderWidth),u(M,(t,e)=>{void 0===t&&delete M[e]})),!T||S&&o(y)&&!!T.div==!!d.useHTML&&(T.rotation&&d.rotation||T.rotation===d.rotation)||(T=void 0,P=!0),S&&o(y)&&(T?M.text=y:(T=c.label(y,0,0,d.shape,void 0,void 0,d.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(d.className||"")+(d.useHTML?" highcharts-tracker":"")),T&&(T.options=d,T.attr(M),s.styledMode||T.css(E).shadow(d.shadow),l(T,"beforeAddingDataLabel",{labelOptions:d,point:t}),T.added||T.add(e),i.alignDataLabel(t,T,d,void 0,P),T.isActive=!0,n[g]&&n[g]!==T&&n[g].destroy(),n[g]=T))});let d=n.length;for(;d--;)n[d]&&n[d].isActive?n[d].isActive=!1:(n[d]?.destroy(),n.splice(d,1));t.dataLabel=n[0],t.dataLabels=n})),l(this,"afterDrawDataLabels")}function b(t,e,i,s,n,r){let o,a,l=this.chart,c=e.align,h=e.verticalAlign,d=t.box?0:t.padding||0,u=l.inverted?this.yAxis:this.xAxis,p=u?u.left-l.plotLeft:0,f=l.inverted?this.xAxis:this.yAxis,g=f?f.top-l.plotTop:0,{x:m=0,y:x=0}=e;return(o=(i.x||0)+d+p)<0&&("right"===c&&m>=0?(e.align="left",e.inside=!0):m-=o,a=!0),(o=(i.x||0)+s.width-d+p)>l.plotWidth&&("left"===c&&m<=0?(e.align="right",e.inside=!0):m+=l.plotWidth-o,a=!0),(o=i.y+d+g)<0&&("bottom"===h&&x>=0?(e.verticalAlign="top",e.inside=!0):x-=o,a=!0),(o=(i.y||0)+s.height-d+g)>l.plotHeight&&("top"===h&&x<=0?(e.verticalAlign="bottom",e.inside=!0):x+=l.plotHeight-o,a=!0),a&&(e.x=m,e.y=x,t.placed=!r,t.align(e,void 0,n)),a}function y(t,e){let i,s=[];if(c(t)&&!c(e))s=t.map(function(t){return d(t,e)});else if(c(e)&&!c(t))s=e.map(function(e){return d(t,e)});else if(c(t)||c(e)){if(c(t)&&c(e))for(i=Math.max(t.length,e.length);i--;)s[i]=d(t[i],e[i])}else s=d(t,e);return s}function v(t){let e=t.chart.options.plotOptions;return g(y(y(e?.series?.dataLabels,e?.[t.type]?.dataLabels),t.options.dataLabels))}function w(t,e,i,s,n){let r=this.chart,o=r.inverted,a=this.xAxis,l=a.reversed,c=((o?e.height:e.width)||0)/2,h=t.pointWidth,d=h?h/2:0;e.startXPos=o?n.x:l?-c-d:a.width-c+d,e.startYPos=o?l?this.yAxis.height-c+d:-c-d:n.y,s?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0}
2,void 0,e.hide),r.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}t.compose=function(t){let n=t.prototype;n.initDataLabels||(n.initDataLabels=m,n.initDataLabelsGroup=s,n.alignDataLabel=i,n.drawDataLabels=x,n.justifyDataLabel=b,n.setDataLabelStartPos=w,n.hasDataLabels=e)}}(s||(s={})),s}),i(e,"Series/Column/ColumnDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,s){var n;let{composed:r}=e,{series:o}=i,{merge:a,pick:l,pushUnique:c}=s;return function(e){function i(t,e,i,s,n){let r=this.chart.inverted,c=t.series,h=(c.xAxis?c.xAxis.len:this.chart.plotSizeX)||0,d=(c.yAxis?c.yAxis.len:this.chart.plotSizeY)||0,u=t.dlBox||t.shapeArgs,p=l(t.below,t.plotY>l(this.translatedThreshold,d)),f=l(i.inside,!!this.options.stacking);if(u){if(s=a(u),"allow"!==i.overflow||!1!==i.crop){s.y<0&&(s.height+=s.y,s.y=0);let t=s.y+s.height-d;t>0&&t<s.height-1&&(s.height-=t)}r&&(s={x:d-s.y-s.height,y:h-s.x-s.width,width:s.height,height:s.width}),f||(r?(s.x+=p?0:s.width,s.width=0):(s.y+=p?s.height:0,s.height=0))}i.align=l(i.align,!r||f?"center":p?"right":"left"),i.verticalAlign=l(i.verticalAlign,r||f?"middle":p?"top":"bottom"),o.prototype.alignDataLabel.call(this,t,e,i,s,n),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}e.compose=function(e){t.compose(o),c(r,"ColumnDataLabel")&&(e.prototype.alignDataLabel=i)}}(n||(n={})),n}),i(e,"Series/Bar/BarSeries.js",[e["Series/Column/ColumnSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i){let{extend:s,merge:n}=i;class r extends t{}return r.defaultOptions=n(t.defaultOptions,{}),s(r.prototype,{inverted:!0}),e.registerSeriesType("bar",r),r}),i(e,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),i(e,"Series/Scatter/ScatterSeries.js",[e["Series/Scatter/ScatterSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i){let{column:s,line:n}=e.seriesTypes,{addEvent:r,extend:o,merge:a}=i;class l extends n{applyJitter(){let t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(s,n){["x","y"].forEach(function(r,o){if(e[r]&&!s.isNull){let a=`plot${r.toUpperCase()}`,l=t[`${r}Axis`],c=e[r]*l.transA;if(l&&!l.logarithmic){let t=Math.max(0,(s[a]||0)-c),e=Math.min(l.len,(s[a]||0)+c);s[a]=t+(e-t)*function(t){let e=1e4*Math.sin(t);return e-Math.floor(e)}(n+o*i),"x"===r&&(s.clientX=s.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return l.defaultOptions=a(n.defaultOptions,t),o(l.prototype,{drawTracker:s.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),r(l,"afterTranslate",function(){this.applyJitter()}),e.registerSeriesType("scatter",l),l}),i(e,"Series/CenteredUtilities.js",[e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],function(t,e,i){var s,n;let{deg2rad:r}=t,{fireEvent:o,isNumber:a,pick:l,relativeLength:c}=i;return(n=s||(s={})).getCenter=function(){let t,i,s,n=this.options,r=this.chart,h=2*(n.slicedOffset||0),d=r.plotWidth-2*h,u=r.plotHeight-2*h,p=n.center,f=Math.min(d,u),g=n.thickness,m=n.size,x=n.innerSize||0;"string"==typeof m&&(m=parseFloat(m)),"string"==typeof x&&(x=parseFloat(x));let b=[l(p[0],"50%"),l(p[1],"50%"),l(m&&m<0?void 0:n.size,"100%"),l(x&&x<0?void 0:n.innerSize||0,"0%")];for(!r.angular||this instanceof e||(b[3]=0),i=0;i<4;++i)s=b[i],t=i<2||2===i&&/%$/.test(s),b[i]=c(s,[d,u,f,b[2]][i])+(t?h:0);return b[3]>b[2]&&(b[3]=b[2]),a(g)&&2*g<b[2]&&g>0&&(b[3]=b[2]-2*g),o(this,"afterGetCenter",{positions:b}),b},n.getStartAndEndRadians=function(t,e){let i=a(t)?t:0,s=a(e)&&e>i&&e-i<360?e:i+360;return{start:r*(i+-90),end:r*(s+-90)}},s}
2),i(e,"Series/Pie/PiePoint.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(t,e,i){let{setAnimation:s}=t,{addEvent:n,defined:r,extend:o,isNumber:a,pick:l,relativeLength:c}=i;class h extends e{getConnectorPath(t){let e=t.dataLabelPosition,i=t.options||{},s=i.connectorShape,n=this.connectorShapes[s]||s;return e&&n.call(this,{...e.computed,alignment:e.alignment},e.connectorPosition,i)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(t){let e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end,borderRadius:e.borderRadius})}constructor(t,e,i){super(t,e,i),this.half=0,this.name??(this.name="Slice");let s=t=>{this.slice("select"===t.type)};n(this,"select",s),n(this,"unselect",s)}isValid(){return a(this.y)&&this.y>=0}setVisible(t,e=!0){t!==this.visible&&this.update({visible:t??!this.visible},e,void 0,!1)}slice(t,e,i){let n=this.series;s(i,n.chart),e=l(e,!0),this.sliced=this.options.sliced=t=r(t)?t:!this.sliced,n.options.data[n.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return o(h.prototype,{connectorShapes:{fixedOffset:function(t,e,i){let s=e.breakAt,n=e.touchingSliceAt,r=i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*s.x-n.x,2*s.y-n.y,s.x,s.y]:["L",s.x,s.y];return[["M",t.x,t.y],r,["L",n.x,n.y]]},straight:function(t,e){let i=e.touchingSliceAt;return[["M",t.x,t.y],["L",i.x,i.y]]},crookedLine:function(t,e,i){let{breakAt:s,touchingSliceAt:n}=e,{series:r}=this,[o,a,l]=r.center,h=l/2,{plotLeft:d,plotWidth:u}=r.chart,p="left"===t.alignment,{x:f,y:g}=t,m=s.x;if(i.crookDistance){let t=c(i.crookDistance,1);m=p?o+h+(u+d-o-h)*(1-t):d+(o-h)*t}else m=o+(a-g)*Math.tan((this.angle||0)-Math.PI/2);let x=[["M",f,g]];return(p?m<=f&&m>=s.x:m>=f&&m<=s.x)&&x.push(["L",m,g]),x.push(["L",s.x,s.y],["L",n.x,n.y]),x}}}),h}),i(e,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),i(e,"Series/Pie/PieSeries.js",[e["Series/CenteredUtilities.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Series/Pie/PiePoint.js"],e["Series/Pie/PieSeriesDefaults.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Utilities.js"]],function(t,e,i,s,n,r,o,a,l){let{getStartAndEndRadians:c}=t,{noop:h}=i,{clamp:d,extend:u,fireEvent:p,merge:f,pick:g}=l;class m extends r{animate(t){let e=this,i=e.points,s=e.startAngleRad;t||i.forEach(function(t){let i=t.graphic,n=t.shapeArgs;i&&n&&(i.attr({r:g(t.startR,e.center&&e.center[3]/2),start:s,end:s}),i.animate({r:n.r,start:n.start,end:n.end},e.options.animation))})}drawEmpty(){let t,e,i=this.startAngleRad,s=this.endAngleRad,n=this.options;0===this.total&&this.center?(t=this.center[0],e=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(t,e,this.center[1]/2,0,i,s).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:a.arc(t,e,this.center[2]/2,0,{start:i,end:s,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":n.borderWidth,fill:n.fillColor||"none",stroke:n.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let t=this.chart.renderer;this.points.forEach(function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(t,e,i,s){let n=this.center,r=this.radii?this.radii[i.index]||0:n[2]/2,o=s.dataLabelPosition,a=o?.distance||0,l=Math.asin(d((t-n[1])/(r+a),-1,1));return n[0]+Math.cos(l)*(r+a)*(e?-1:1)+(a>0?(e?-1:1)*(s.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let t,e,i,s,n=this,r=n.chart;this.drawEmpty(),n.group&&!r.styledMode&&n.group.shadow(n.options.shadow),n.points.forEac
vendor: 3,064 bytes, line 2
2h(function(o){let a={};e=o.graphic,!o.isNull&&e?(s=o.shapeArgs,t=o.getTranslate(),r.styledMode||(i=n.pointAttribs(o,o.selected&&"select")),o.delayedRendering?(e.setRadialReference(n.center).attr(s).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}),o.delayedRendering=!1):(e.setRadialReference(n.center),r.styledMode||f(!0,a,i),f(!0,a,s,t),e.animate(a)),e.attr({visibility:o.visible?"inherit":"hidden"}),e.addClass(o.getClassName(),!0)):e&&(o.graphic=e.destroy())})}sortByAngle(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})}translate(t){p(this,"translate"),this.generatePoints();let e,i,s,n,r,o,a,l=this.options,h=l.slicedOffset,d=c(l.startAngle,l.endAngle),u=this.startAngleRad=d.start,f=(this.endAngleRad=d.end)-u,g=this.points,m=l.ignoreHiddenPoint,x=g.length,b=0;for(t||(this.center=t=this.getCenter()),o=0;o<x;o++){a=g[o],e=u+b*f,a.isValid()&&(!m||a.visible)&&(b+=a.percentage/100),i=u+b*f;let l={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*e)/1e3,end:Math.round(1e3*i)/1e3};a.shapeType="arc",a.shapeArgs=l,(s=(i+e)/2)>1.5*Math.PI?s-=2*Math.PI:s<-Math.PI/2&&(s+=2*Math.PI),a.slicedTranslation={translateX:Math.round(Math.cos(s)*h),translateY:Math.round(Math.sin(s)*h)},n=Math.cos(s)*t[2]/2,r=Math.sin(s)*t[2]/2,a.tooltipPos=[t[0]+.7*n,t[1]+.7*r],a.half=s<-Math.PI/2||s>Math.PI/2?1:0,a.angle=s}p(this,"afterTranslate")}updateTotals(){let t,e,i=this.points,s=i.length,n=this.options.ignoreHiddenPoint,r=0;for(t=0;t<s;t++)(e=i[t]).isValid()&&(!n||e.visible)&&(r+=e.y);for(t=0,this.total=r;t<s;t++)(e=i[t]).percentage=r>0&&(e.visible||!n)?e.y/r*100:0,e.total=r}}return m.defaultOptions=f(r.defaultOptions,n),u(m.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:h,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:s,requireSorting:!1,searchPoint:h,trackerGroups:["group","dataLabelsGroup"]}),o.registerSeriesType("pie",m),m}),i(e,"Series/Pie/PieDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,s,n){var r;let{composed:o,noop:a}=e,{distribute:l}=i,{series:c}=s,{arrayMax:h,clamp:d,defined:u,pick:p,pushUnique:f,relativeLength:g}=n;return function(e){let i={radialDistributionY:function(t,e){return(e.dataLabelPosition?.top||0)+t.distributeBox.pos},radialDistributionX:function(t,e,i,s,n){let r=n.dataLabelPosition;return t.getX(i<(r?.top||0)+2||i>(r?.bottom||0)-2?s:i,e.half,e,n)},justify:function(t,e,i,s){return s[0]+(t.half?-1:1)*(i+(e.dataLabelPosition?.distance||0))},alignToPlotEdges:function(t,e,i,s){let n=t.getBBox().width;return e?n+s:i-n-s},alignToConnectors:function(t,e,i,s){let n,r=0;return t.forEach(function(t){(n=t.dataLabel.getBBox().width)>r&&(r=n)}),e?r+s:i-r-s}};function s(t,e){let{center:i,options:s}=this,n=i[2]/2,r=t.angle||0,o=Math.cos(r),a=Math.sin(r),l=i[0]+o*n,c=i[1]+a*n,h=Math.min((s.slicedOffset||0)+(s.borderWidth||0),e/5);
vendor: 4,371 bytes, line 2
2return{natural:{x:l+o*e,y:c+a*e},computed:{},alignment:e<0?"center":t.half?"right":"left",connectorPosition:{breakAt:{x:l+o*h,y:c+a*h},touchingSliceAt:{x:l,y:c}},distance:e}}function n(){let t,e,i,s=this,n=s.points,r=s.chart,o=r.plotWidth,a=r.plotHeight,d=r.plotLeft,f=Math.round(r.chartWidth/3),m=s.center,x=m[2]/2,b=m[1],y=[[],[]],v=[0,0,0,0],w=s.dataLabelPositioners,S=0;s.visible&&s.hasDataLabels?.()&&(n.forEach(t=>{(t.dataLabels||[]).forEach(t=>{t.shortened&&(t.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.shortened=!1)})}),c.prototype.drawDataLabels.apply(s),n.forEach(t=>{(t.dataLabels||[]).forEach((e,i)=>{let s=m[2]/2,n=e.options,r=g(n?.distance||0,s);0===i&&y[t.half].push(t),!u(n?.style?.width)&&e.getBBox().width>f&&(e.css({width:Math.round(.7*f)+"px"}),e.shortened=!0),e.dataLabelPosition=this.getDataLabelPosition(t,r),S=Math.max(S,r)})}),y.forEach((t,n)=>{let c,h,f,g=t.length,y=[],k=0;g&&(s.sortByAngle(t,n-.5),S>0&&(c=Math.max(0,b-x-S),h=Math.min(b+x+S,r.plotHeight),t.forEach(t=>{(t.dataLabels||[]).forEach(e=>{let i=e.dataLabelPosition;i&&i.distance>0&&(i.top=Math.max(0,b-x-i.distance),i.bottom=Math.min(b+x+i.distance,r.plotHeight),k=e.getBBox().height||21,e.lineHeight=r.renderer.fontMetrics(e.text||e).h+2*e.padding,t.distributeBox={target:(e.dataLabelPosition?.natural.y||0)-i.top+e.lineHeight/2,size:k,rank:t.y},y.push(t.distributeBox))})}),l(y,f=h+k-c,f/5)),t.forEach(r=>{(r.dataLabels||[]).forEach(l=>{let c=l.options||{},h=r.distributeBox,f=l.dataLabelPosition,g=f?.natural.y||0,b=c.connectorPadding||0,S=l.lineHeight||21,k=(S-l.getBBox().height)/2,C=0,A=g,E="inherit";if(f){if(y&&u(h)&&f.distance>0&&(void 0===h.pos?E="hidden":(i=h.size,A=w.radialDistributionY(r,l))),c.justify)C=w.justify(r,l,x,m);else switch(c.alignTo){case"connectors":C=w.alignToConnectors(t,n,o,d);break;case"plotEdges":C=w.alignToPlotEdges(l,n,o,d);break;default:C=w.radialDistributionX(s,r,A-k,g,l)}if(f.attribs={visibility:E,align:f.alignment},f.posAttribs={x:C+(c.x||0)+({left:b,right:-b}[f.alignment]||0),y:A+(c.y||0)-S/2},f.computed.x=C,f.computed.y=A-k,p(c.crop,!0)){let t;C-(e=l.getBBox().width)<b&&1===n?(t=Math.round(e-C+b),v[3]=Math.max(t,v[3])):C+e>o-b&&0===n&&(t=Math.round(C+e-o+b),v[1]=Math.max(t,v[1])),A-i/2<0?v[0]=Math.max(Math.round(i/2-A),v[0]):A+i/2>a&&(v[2]=Math.max(Math.round(A+i/2-a),v[2])),f.sideOverflow=t}}})}))}),(0===h(v)||this.verifyDataLabelOverflow(v))&&(this.placeDataLabels(),this.points.forEach(e=>{(e.dataLabels||[]).forEach(i=>{let{connectorColor:n,connectorWidth:o=1}=i.options||{},a=i.dataLabelPosition;if(o){let l;t=i.connector,a&&a.distance>0?(l=!t,t||(i.connector=t=r.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+e.colorIndex+(e.className?" "+e.className:"")).add(s.dataLabelsGroup)),r.styledMode||t.attr({"stroke-width":o,stroke:n||e.color||"#666666"}),t[l?"attr":"animate"]({d:e.getConnectorPath(i)}),t.attr({visibility:a.attribs?.visibility})):t&&(i.connector=t.destroy())}})})))}function r(){this.points.forEach(t=>{(t.dataLabels||[]).forEach(t=>{let e=t.dataLabelPosition;e?(e.sideOverflow&&(t.css({width:Math.max(t.getBBox().width-e.sideOverflow,0)+"px",textOverflow:(t.options?.style||{}).textOverflow||"ellipsis"}),t.shortened=!0),t.attr(e.attribs),t[t.moved?"animate":"attr"](e.posAttribs),t.moved=!0):t&&t.attr({y:-9999})}),delete t.distributeBox},this)}function m(t){let e=this.center,i=this.options,s=i.center,n=i.minSize||80,r=n,o=null!==i.size;return!o&&(null!==s[0]?r=Math.max(e[2]-Math.max(t[1],t[3]),n):(r=Math.max(e[2]-t[1]-t[3],n),e[0]+=(t[3]-t[1])/2),null!==s[1]?r=d(r,n,e[2]-Math.max(t[0],t[2])):(r=d(r,n,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),r<e[2]?(e[2]=r,e[3]=Math.min(i.thickness?Math.max(0,r-2*i.thickness):Math.max(0,g(i.innerSize||0,r)),r),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):o=!0),o}e.compose=function(e){if(t.compose(c),f(o,"PieDataLabel")){let t=e.prototype;t.dataLabelPositioners=i,t.alignDataLabel=a,t.drawDataLabels=n,t.getDataLabelPosition=s,t.placeDataLabels=r,t.verifyDataLabelOverflow=m}}}(r||(r={})),r}),i(e,"Core/Geometry/GeometryUtilities.js",[],function(){var t,e;return(e=t||(t={})).getCenterOfPoints=function(t){let e=t.reduce((t,e)=>(t.x+=e.x,t.y+=e.y,t),{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},e.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}
2,e.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},e.pointInPolygon=function({x:t,y:e},i){let s,n,r=i.length,o=!1;for(s=0,n=r-1;s<r;n=s++){let[r,a]=i[s],[l,c]=i[n];a>e!=c>e&&t<(l-r)*(e-a)/(c-a)+r&&(o=!o)}return o},t}),i(e,"Extensions/OverlappingDataLabels.js",[e["Core/Geometry/GeometryUtilities.js"],e["Core/Utilities.js"]],function(t,e){let{pointInPolygon:i}=t,{addEvent:s,fireEvent:n,objectEach:r,pick:o}=e;function a(t){let e,s,r,o,a,c=t.length,h=(t,e)=>!(e.x>=t.x+t.width||e.x+e.width<=t.x||e.y>=t.y+t.height||e.y+e.height<=t.y),d=(t,e)=>{for(let s of t)if(i({x:s[0],y:s[1]},e))return!0;return!1},u=!1;for(let i=0;i<c;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=function(t){if(t&&(!t.alignAttr||t.placed)){let e=t.box?0:t.padding||0,i=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},s=t.getBBox();return t.width=s.width,t.height=s.height,{x:i.x+(t.parentGroup?.translateX||0)+e,y:i.y+(t.parentGroup?.translateY||0)+e,width:(t.width||0)-2*e,height:(t.height||0)-2*e,polygon:s?.polygon}}}(e));t.sort((t,e)=>(e.labelrank||0)-(t.labelrank||0));for(let e=0;e<c;++e){o=(s=t[e])&&s.absoluteBox;let i=o?.polygon;for(let n=e+1;n<c;++n){a=(r=t[n])&&r.absoluteBox;let e=!1;if(o&&a&&s!==r&&0!==s.newOpacity&&0!==r.newOpacity&&"hidden"!==s.visibility&&"hidden"!==r.visibility){let t=a.polygon;if(i&&t&&i!==t?d(i,t)&&(e=!0):h(o,a)&&(e=!0),e){let t=s.labelrank<r.labelrank?s:r,e=t.text;t.newOpacity=0,e?.element.querySelector("textPath")&&e.hide()}}}}for(let e of t)l(e,this)&&(u=!0);u&&n(this,"afterHideAllOverlappingLabels")}function l(t,e){let i,s,r=!1;return t&&(s=t.newOpacity,t.oldOpacity!==s&&(t.hasClass("highcharts-data-label")?(t[s?"removeClass":"addClass"]("highcharts-data-label-hidden"),i=function(){e.styledMode||t.css({pointerEvents:s?"auto":"none"})},r=!0,t[t.isOld?"animate":"attr"]({opacity:s},void 0,i),n(e,"afterHideOverlappingLabel")):t.attr({opacity:s})),t.isOld=!0),r}function c(){let t=this,e=[];for(let i of t.labelCollectors||[])e=e.concat(i());for(let i of t.yAxis||[])i.stacking&&i.options.stackLabels&&!i.options.stackLabels.allowOverlap&&r(i.stacking.stacks,t=>{r(t,t=>{t.label&&e.push(t.label)})});for(let i of t.series||[])if(i.visible&&i.hasDataLabels?.()){let s=i=>{for(let s of i)s.visible&&(s.dataLabels||[]).forEach(i=>{let n=i.options||{};i.labelrank=o(n.labelrank,s.labelrank,s.shapeArgs?.height),n.allowOverlap??Number(n.distance)>0?(i.oldOpacity=i.opacity,i.newOpacity=1,l(i,t)):e.push(i)})};s(i.nodes||[]),s(i.points)}this.hideOverlappingLabels(e)}return{compose:function(t){let e=t.prototype;e.hideOverlappingLabels||(e.hideOverlappingLabels=a,s(t,"render",c))}}}
vendor: 3,842 bytes, line 2
2),i(e,"Extensions/BorderRadius.js",[e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e,i){let{defaultOptions:s}=t,{noop:n}=e,{addEvent:r,extend:o,isObject:a,merge:l,relativeLength:c}=i,h={radius:0,scope:"stack",where:void 0},d=n,u=n;function p(t,e,i,s,n={}){let r=d(t,e,i,s,n),{innerR:o=0,r:a=i,start:l=0,end:h=0}=n;if(n.open||!n.borderRadius)return r;let u=h-l,p=Math.sin(u/2),f=Math.max(Math.min(c(n.borderRadius||0,a-o),(a-o)/2,a*p/(1+p)),0),g=Math.min(f,u/Math.PI*2*o),m=r.length-1;for(;m--;)!function(t,e,i){let s,n,r,o=t[e],a=t[e+1];if("Z"===a[0]&&(a=t[0]),"M"!==o[0]&&"L"!==o[0]||"A"!==a[0]?"A"===o[0]&&("M"===a[0]||"L"===a[0])&&(s=a,n=o):(s=o,n=a,r=!0),s&&n&&n.params){let o=n[1],a=n[5],l=n.params,{start:c,end:h,cx:d,cy:u}=l,p=a?o-i:o+i,f=p?Math.asin(i/p):0,g=a?f:-f,m=Math.cos(f)*p;r?(l.start=c+g,s[1]=d+m*Math.cos(c),s[2]=u+m*Math.sin(c),t.splice(e+1,0,["A",i,i,0,0,1,d+o*Math.cos(l.start),u+o*Math.sin(l.start)])):(l.end=h-g,n[6]=d+o*Math.cos(l.end),n[7]=u+o*Math.sin(l.end),t.splice(e+1,0,["A",i,i,0,0,1,d+m*Math.cos(h),u+m*Math.sin(h)])),n[4]=Math.abs(l.end-l.start)<Math.PI?0:1}}(r,m,m>1?g:f);return r}function f(){if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){let{options:t,yAxis:e}=this,i="percent"===t.stacking,n=s.plotOptions?.[this.type]?.borderRadius,r=g(t.borderRadius,a(n)?n:{}),l=e.options.reversed;for(let s of this.points){let{shapeArgs:n}=s;if("roundedRect"===s.shapeType&&n){let{width:a=0,height:h=0,y:d=0}=n,u=d,p=h;if("stack"===r.scope&&s.stackTotal){let n=e.translate(i?100:s.stackTotal,!1,!0,!1,!0),r=e.translate(t.threshold||0,!1,!0,!1,!0),o=this.crispCol(0,Math.min(n,r),0,Math.abs(n-r));u=o.y,p=o.height}let f=(s.negative?-1:1)*(l?-1:1)==-1,g=r.where;!g&&this.is("waterfall")&&Math.abs((s.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(g="all"),g||(g="end");let m=Math.min(c(r.radius,a),a/2,"all"===g?h/2:1/0)||0;"end"===g&&(f&&(u-=m),p+=m),o(n,{brBoxHeight:p,brBoxY:u,r:m})}}}}function g(t,e){return a(t)||(t={radius:t||0}),l(h,e,t)}function m(){let t=g(this.options.borderRadius);for(let e of this.points){let i=e.shapeArgs;i&&(i.borderRadius=c(t.radius,(i.r||0)-(i.innerR||0)))}}function x(t,e,i,s,n={}){let r=u(t,e,i,s,n),{r:o=0,brBoxHeight:a=s,brBoxY:l=e}=n,c=e-l,h=l+a-(e+s),d=c-o>-.1?0:o,p=h-o>-.1?0:o,f=Math.max(d&&c,0),g=Math.max(p&&h,0),m=[t+d,e],x=[t+i-d,e],b=[t+i,e+d],y=[t+i,e+s-p],v=[t+i-p,e+s],w=[t+p,e+s],S=[t,e+s-p],k=[t,e+d],C=(t,e)=>Math.sqrt(Math.pow(t,2)-Math.pow(e,2));if(f){let t=C(d,d-f);m[0]-=t,x[0]+=t,b[1]=k[1]=e+d-f}if(s<d-f){let n=C(d,d-f-s);b[0]=y[0]=t+i-d+n,v[0]=Math.min(b[0],v[0]),w[0]=Math.max(y[0],w[0]),S[0]=k[0]=t+d-n,b[1]=k[1]=e+s}if(g){let t=C(p,p-g);v[0]+=t,w[0]-=t,y[1]=S[1]=e+s-p+g}if(s<p-g){let n=C(p,p-g-s);b[0]=y[0]=t+i-p+n,x[0]=Math.min(b[0],x[0]),m[0]=Math.max(y[0],m[0]),S[0]=k[0]=t+p-n,y[1]=S[1]=e}return r.length=0,r.push(["M",...m],["L",...x],["A",d,d,0,0,1,...b],["L",...y],["A",p,p,0,0,1,...v],["L",...w],["A",p,p,0,0,1,...S],["L",...k],["A",d,d,0,0,1,...m],["Z"]),r}return{compose:function(t,e,i){let s=t.types.pie;if(!e.symbolCustomAttribs.includes("borderRadius")){let n=i.prototype.symbols;r(t,"afterColumnTranslate",f,{order:9}),r(s,"afterTranslate",m),e.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY"),d=n.arc,u=n.roundedRect,n.arc=p,n.roundedRect=x}},optionsToObject:g}}),i(e,"Core/Responsive.js",[e["Core/Utilities.js"]],function(t){var e;let{diffObjects:i,extend:s,find:n,merge:r,pick:o,uniqueKey:a}=t;return function(t){function e(t,e){let i=t.condition;(i.callback||function(){return this.chartWidth<=o(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=o(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=o(i.minWidth,0)&&this.chartHeight>=o(i.minHeight,0)}).call(this)&&e.push(t._id)}function l(t,e){let s,o=this.options.responsive,l=this.currentResponsive,c=[];
2!e&&o&&o.rules&&o.rules.forEach(t=>{void 0===t._id&&(t._id=a()),this.matchResponsiveRule(t,c)},this);let h=r(...c.map(t=>n((o||{}).rules||[],e=>e._id===t)).map(t=>t&&t.chartOptions));h.isResponsiveOptions=!0,c=c.toString()||void 0;let d=l&&l.ruleIds;c===d||(l&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(l.undoOptions,t,!0),this.updatingResponsive=!1),c?((s=i(h,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:c,mergedOptions:h,undoOptions:s},this.updatingResponsive||this.update(h,t,!0)):this.currentResponsive=void 0)}t.compose=function(t){let i=t.prototype;return i.matchResponsiveRule||s(i,{matchResponsiveRule:e,setResponsive:l}),t}}(e||(e={})),e}),i(e,"masters/highcharts.src.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Core/Defaults.js"],e["Core/Animation/Fx.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Templating.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Renderer/HTML/HTMLElement.js"],e["Core/Axis/Axis.js"],e["Core/Axis/DateTimeAxis.js"],e["Core/Axis/LogarithmicAxis.js"],e["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],e["Core/Axis/Tick.js"],e["Core/Tooltip.js"],e["Core/Series/Point.js"],e["Core/Pointer.js"],e["Core/Legend/Legend.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Chart/Chart.js"],e["Extensions/ScrollablePlotArea.js"],e["Core/Axis/Stacking/StackingAxis.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Series/Column/ColumnDataLabel.js"],e["Series/Pie/PieDataLabel.js"],e["Core/Series/DataLabel.js"],e["Extensions/OverlappingDataLabels.js"],e["Extensions/
2BorderRadius.js"],e["Core/Responsive.js"],e["Core/Color/Color.js"],e["Core/Time.js"]],function(t,e,i,s,n,r,o,a,l,c,h,d,u,p,f,g,m,x,b,y,v,w,S,k,C,A,E,M,T,P,O,L,_,I,D,R){return t.AST=r,t.Axis=u,t.Chart=S,t.Color=D,t.DataLabel=O,t.Fx=s,t.HTMLElement=d,t.Legend=v,t.LegendSymbol=w,t.OverlappingDataLabels=t.OverlappingDataLabels||L,t.PlotLineOrBand=g,t.Point=b,t.Pointer=y,t.RendererRegistry=a,t.Series=E,t.SeriesRegistry=M,t.StackItem=A,t.SVGElement=c,t.SVGRenderer=h,t.Templating=o,t.Tick=m,t.Time=R,t.Tooltip=x,t.animate=n.animate,t.animObject=n.animObject,t.chart=S.chart,t.color=D.parse,t.dateFormat=o.dateFormat,t.defaultOptions=i.defaultOptions,t.distribute=l.distribute,t.format=o.format,t.getDeferredAnimation=n.getDeferredAnimation,t.getOptions=i.getOptions,t.numberFormat=o.numberFormat,t.seriesType=M.seriesType,t.setAnimation=n.setAnimation,t.setOptions=i.setOptions,t.stop=n.stop,t.time=i.defaultTime,t.timers=s.timers,_.compose(t.Series,t.SVGElement,t.SVGRenderer),T.compose(t.Series.types.column),O.compose(t.Series),p.compose(t.Axis),d.compose(t.SVGRenderer),v.compose(t.Chart),f.compose(t.Axis),L.compose(t.Chart),P.compose(t.Series.types.pie),g.compose(t.Axis),y.compose(t.Chart),I.compose(t.Chart),k.compose(t.Axis,t.Chart,t.Series),C.compose(t.Axis,t.Chart,t.Series),x.compose(t.Pointer),e.extend(t,e),t}),e["masters/highcharts.src.js"]._modules=e,e["masters/highcharts.src.js"]},t.exports?(r.default=r,t.exports=n&&n.document?r(n):r):void 0===(s=function(){return r(n)}.call(e,i,e,t))||(t.exports=s)},802(t,e,i){var s,n,r;r=function(t){"use strict";var e=t?t._modules:{};function i(e,i,s,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,s),"function"==typeof CustomEvent&&t.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}i(e,"Accessibility/Utils/HTMLUtilities.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){let{doc:i,win:s}=t,{css:n}=e,r=s.EventTarget&&new s.EventTarget||"none";function o(t){if("function"==typeof s.MouseEvent)return new s.MouseEvent(t.type,t);if(i.createEvent){let e=i.createEvent("MouseEvent");if(e.initMouseEvent)return e.initMouseEvent(t.type,t.bubbles,t.cancelable,t.view||s,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),e}return a(t.type)}function a(t,e,n){let o=e||{x:0,y:0};if("function"==typeof s.MouseEvent)return new s.MouseEvent(t,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:n||r,view:s,detail:"click"===t?1:0,screenX:o.x,screenY:o.y,clientX:o.x,clientY:o.y});if(i.createEvent){let e=i.createEvent("MouseEvent");if(e.initMouseEvent)return e.initMouseEvent(t,!0,!0,s,"click"===t?1:0,o.x,o.y,o.x,o.y,!1,!1,!1,!1,0,null),e}return{type:t}}return{addClass:function(t,e){t.classList?t.classList.add(e):0>t.className.indexOf(e)&&(t.className+=" "+e)},cloneMouseEvent:o,cloneTouchEvent:function(t){let e=t=>{let e=[];for(let i=0;i<t.length;++i){let s=t.item(i);s&&e.push(s)}return e};if("function"==typeof s.TouchEvent){let i=new s.TouchEvent(t.type,{touches:e(t.touches),targetTouches:e(t.targetTouches),changedTouches:e(t.changedTouches),ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed,detail:t.detail,view:t.view});return t.defaultPrevented&&i.preventDefault(),i}let i=o(t);return i.touches=t.touches,i.changedTouches=t.changedTouches,i.targetTouches=t.targetTouches,i},escapeStringForHTML:function(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},getElement:function(t){return i.getElementById(t)},getFakeMouseEvent:a,getHeadingTagNameForElement:function(t){let e=t=>"h"+Math.min(6,parseInt(t.slice(1),10)+1),i=t=>/^H[1-6]$/i.test(t),s=t=>{let n=(t=>{let e=t;for(;e=e.previousSibling;){let t=e.tagName||"";if(i(t))return t}return""})(t);if(n)return e(n);let r=t.parentElement;if(!r)return"p";let o=r.tagName;return i(o)?e(o):s(r)};return s(t)},removeChildNodes:function(t){for(;t.lastChild;)t.removeChild(t.lastChild)},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(RegExp(e,"g"),"")},removeElement:function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},reverseChildNodes:function(t){let e=t.childNodes.length;for(;e--;)t.appendChild(t.childNodes[e])},simulatedEventTarget:r,stripHTMLTagsFromString:function(t,e=!1){return"string"==typeof t?e?t.replace(/<\/?[^>]+(>|$)/g,""):t.replace(/<\/?(?!\s)[^>]+(>|$)/g,""):t},visuallyHideElement:function(t){n(t,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",
2whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}}}),i(e,"Accessibility/A11yI18n.js",[e["Core/Templating.js"],e["Core/Utilities.js"]],function(t,e){var i;let{format:s}=t,{getNestedProperty:n,pick:r}=e;return function(t){function e(t,e,i){let o,a,l=(t,e)=>{let i=t.slice(e||0),s=i.indexOf("{"),n=i.indexOf("}");if(s>-1&&n>s)return{statement:i.substring(s+1,n),begin:e+s+1,end:e+n}},c=[],h=0;do{o=l(t,h),(a=t.substring(h,o&&o.begin-1)).length&&c.push({value:a,type:"constant"}),o&&c.push({value:o.statement,type:"statement"}),h=o?o.end+1:h+1}while(o);return c.forEach(t=>{"statement"===t.type&&(t.value=function(t,e){let i,s,o=t.indexOf("#each("),a=t.indexOf("#plural("),l=t.indexOf("["),c=t.indexOf("]");if(o>-1){let r,a=t.slice(o).indexOf(")")+o,l=t.substring(0,o),c=t.substring(a+1),h=t.substring(o+6,a).split(","),d=Number(h[1]);if(s="",i=n(h[0],e)){r=(d=isNaN(d)?i.length:d)<0?i.length+d:Math.min(d,i.length);for(let t=0;t<r;++t)s+=l+i[t]+c}return s.length?s:""}if(a>-1){var h;let i=t.slice(a).indexOf(")")+a,o=t.substring(a+8,i).split(",");switch(Number(n(o[0],e))){case 0:s=r(o[4],o[1]);break;case 1:s=r(o[2],o[1]);break;case 2:s=r(o[3],o[1]);break;default:s=o[1]}return s?(h=s).trim&&h.trim()||h.replace(/^\s+|\s+$/g,""):""}if(l>-1){let s,r=t.substring(0,l),o=Number(t.substring(l+1,c));return i=n(r,e),!isNaN(o)&&i&&(o<0?void 0===(s=i[i.length+o])&&(s=i[0]):void 0===(s=i[o])&&(s=i[i.length-1])),void 0!==s?s:""}return"{"+t+"}"}(t.value,e))}),s(c.reduce((t,e)=>t+e.value,""),e,i)}function i(t,i){let s=t.split("."),n=this.options.lang,r=0;for(;r<s.length;++r)n=n&&n[s[r]];return"string"==typeof n?e(n,i,this):""}t.compose=function(t){let e=t.prototype;e.langFormat||(e.langFormat=i)},t.i18nFormat=e}(i||(i={})),i}),i(e,"Accessibility/Utils/ChartUtilities.js",[e["Core/Globals.js"],e["Accessibility/Utils/HTMLUtilities.js"],e["Core/Utilities.js"]],function(t,e,i){let{doc:s}=t,{stripHTMLTagsFromString:n}=e,{defined:r,find:o,fireEvent:a}=i;function l(t){if(t.points&&t.points.length){let e=o(t.points,t=>!!t.graphic);return e&&e.graphic&&e.graphic.element}}function c(t){let e=l(t);return e&&e.parentNode||t.graph&&t.graph.element||t.group&&t.group.element}return{fireEventOnWrappedOrUnwrappedElement:function t(e,i){let n=i.type,r=e.hcEvents;s.createEvent&&(e.dispatchEvent||e.fireEvent)?e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(n,i):r&&r[n]?a(e,n,i):e.element&&t(e.element,i)},getChartTitle:function(t){return n(t.options.title.text||t.langFormat("accessibility.defaultChartTitle",{chart:t}),t.renderer.forExport)},getAxisDescription:function(t){return t&&(t.options.accessibility?.description||t.axisTitle?.textStr||t.options.id||t.categories&&"categories"||t.dateTime&&"Time"||"values")},getAxisRangeDescription:function(t){let e=t.options||{};return e.accessibility&&void 0!==e.accessibility.rangeDescription?e.accessibility.rangeDescription:t.categories?function(t){let e=t.chart;return t.dataMax&&t.dataMin?e.langFormat("accessibility.axis.rangeCategories",{chart:e,axis:t,numCategories:t.dataMax-t.dataMin+1}):""}(t):!t.dateTime||0!==t.min&&0!==t.dataMin?function(t){let e=t.chart,i=e.options,s=i&&i.accessibility&&i.accessibility.screenReaderSection.axisRangeDateFormat||"",n={min:t.dataMin||t.min||0,max:t.dataMax||t.max||0},r=function(i){return t.dateTime?e.time.dateFormat(s,n[i]):n[i].toString()};return e.langFormat("accessibility.axis.rangeFromTo",{chart:e,axis:t,rangeFrom
2:r("min"),rangeTo:r("max")})}(t):function(t){let e=t.chart,i={},s=t.dataMin||t.min||0,n=t.dataMax||t.max||0,r="Seconds";i.Seconds=(n-s)/1e3,i.Minutes=i.Seconds/60,i.Hours=i.Minutes/60,i.Days=i.Hours/24,["Minutes","Hours","Days"].forEach(function(t){i[t]>2&&(r=t)});let o=i[r].toFixed("Seconds"!==r&&"Minutes"!==r?1:0);return e.langFormat("accessibility.axis.timeRange"+r,{chart:e,axis:t,range:o.replace(".0","")})}(t)},getPointFromXY:function(t,e,i){let s,n=t.length;for(;n--;)if(s=o(t[n].points||[],function(t){return t.x===e&&t.y===i}))return s},getSeriesFirstPointElement:l,getSeriesFromName:function(t,e){return e?(t.series||[]).filter(function(t){return t.name===e}):t.series},getSeriesA11yElement:c,unhideChartElementFromAT:function t(e,i){i.setAttribute("aria-hidden",!1),i!==e.renderTo&&i.parentNode&&i.parentNode!==s.body&&(Array.prototype.forEach.call(i.parentNode.childNodes,function(t){t.hasAttribute("aria-hidden")||t.setAttribute("aria-hidden",!0)}),t(e,i.parentNode))},hideSeriesFromAT:function(t){let e=c(t);e&&e.setAttribute("aria-hidden",!0)},scrollAxisToPoint:function(t){let e=t.series.xAxis,i=t.series.yAxis,s=e&&e.scrollbar?e:i,n=s&&s.scrollbar;if(n&&r(n.to)&&r(n.from)){let e=n.to-n.from,i=function(t,e){if(!r(t.dataMin)||!r(t.dataMax))return 0;let i=t.toPixels(t.dataMin),s=t.toPixels(t.dataMax),n="xAxis"===t.coll?"x":"y";return(t.toPixels(e[n]||0)-i)/(s-i)}(s,t);n.updatePosition(i-e/2,i+e/2),a(n,"changed",{from:n.from,to:n.to,trigger:"scrollbar",DOMEvent:null})}}}}),i(e,"Accessibility/Utils/DOMElementProvider.js",[e["Core/Globals.js"],e["Accessibility/Utils/HTMLUtilities.js"]],function(t,e){let{doc:i}=t,{removeElement:s}=e;return class{constructor(){this.elements=[]}createElement(){let t=i.createElement.apply(i,arguments);return this.elements.push(t),t}removeElement(t){s(t),this.elements.splice(this.elements.indexOf(t),1)}destroyCreatedElements(){this.elements.forEach(function(t){s(t)}),this.elements=[]}}}),i(e,"Accessibility/Utils/EventProvider.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){let{addEvent:i}=e;return class{constructor(){this.eventRemovers=[]}addEvent(){let e=i.apply(t,arguments);return this.eventRemovers.push({element:arguments[0],remover:e}),e}removeEvent(t){let e=this.eventRemovers.map(t=>t.remover).indexOf(t);this.eventRemovers[e].remover(),this.eventRemovers.splice(e,1)}removeAddedEvents(){this.eventRemovers.map(t=>t.remover).forEach(t=>t()),this.eventRemovers=[]}}}),i(e,"Accessibility/AccessibilityComponent.js",[e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Utils/DOMElementProvider.js"],e["Accessibility/Utils/EventProvider.js"],e["Accessibility/Utils/HTMLUtilities.js"],e["Core/Utilities.js"]],function(t,e,i,s,n){let{fireEventOnWrappedOrUnwrappedElement:r}=t,{getFakeMouseEvent:o}=s,{extend:a}=n;class l{initBase(t,s){this.chart=t,this.eventProvider=new i,this.domElementProvider=new e,this.proxyProvider=s,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}}addEvent(t,e,i,s){return this.eventProvider.addEvent(t,e,i,s)}createElement(t,e){return this.domElementProvider.createElement(t,e)}fakeClickEvent(t){r(t,o("click"))}destroyBase(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()}}return a(l.prototype,{init(){},getKeyboardNavigation:function(){},onChartUpdate(){},onChartRender(){},destroy(){}}),l}),i(e,"Accessibility/KeyboardNavigationHandler.js",[e["Core/Utilities.js"]],function(t){let{find:e}=t;return class{constructor(t,e){this.chart=t,this.keyCodeMap=e.keyCodeMap||[],this.validate=e.validate,this.init=e.init,this.terminate=e.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}run(t){let i=t.which||t.keyCode,s=this.response.noHandler,n=e(this.keyCodeMap,function(t){return t[0].indexOf(i)>-1});return n?s=n[1].call(this,i,t):9===i&&(s=this.response[t.shiftKey?"prev":"next"]),s}}}),i(e,"Accessibility/Components/ContainerComponent.js",[e["Accessibility/AccessibilityComponent.js"],e["Accessibility/KeyboardNavigationHandler.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Core/Globals.js"],e["Accessibility/Utils/HTMLUtilities.js"]],function(t,e,
2i,s,n){let{unhideChartElementFromAT:r,getChartTitle:o}=i,{doc:a}=s,{stripHTMLTagsFromString:l}=n;return class extends t{onChartUpdate(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()}handleSVGTitleElement(){let t=this.chart,e="highcharts-title-"+t.index,i=l(t.langFormat("accessibility.svgContainerTitle",{chartTitle:o(t)}));if(i.length){let s=this.svgTitleElement=this.svgTitleElement||a.createElementNS("http://www.w3.org/2000/svg","title");s.textContent=i,s.id=e,t.renderTo.insertBefore(s,t.renderTo.firstChild)}}setSVGContainerLabel(){let t=this.chart,e=t.langFormat("accessibility.svgContainerLabel",{chartTitle:o(t)});t.renderer.box&&e.length&&t.renderer.box.setAttribute("aria-label",e)}setGraphicContainerAttrs(){let t=this.chart,e=t.langFormat("accessibility.graphicContainerLabel",{chartTitle:o(t)});e.length&&t.container.setAttribute("aria-label",e)}setRenderToAttrs(){let t=this.chart,e="disabled"!==t.options.accessibility.landmarkVerbosity,i=t.langFormat("accessibility.chartContainerLabel",{title:o(t),chart:t});i&&(t.renderTo.setAttribute("role",e?"region":"group"),t.renderTo.setAttribute("aria-label",i))}makeCreditsAccessible(){let t=this.chart,e=t.credits;e&&(e.textStr&&e.element.setAttribute("aria-label",t.langFormat("accessibility.credits",{creditsStr:l(e.textStr,t.renderer.forExport)})),r(t,e.element))}getKeyboardNavigation(){let t=this.chart;return new e(t,{keyCodeMap:[],validate:function(){return!0},init:function(){let e=t.accessibility;e&&e.keyboardNavigation.tabindexContainer.focus()}})}destroy(){this.chart.renderTo.setAttribute("aria-hidden",!0)}}}),i(e,"Accessibility/FocusBorder.js",[e["Core/Utilities.js"]],function(t){var e;let{addEvent:i,pick:s}=t;return function(t){let e=["x","y","transform","width","height","r","d","stroke-width"];function n(){let t=this.focusElement,e=this.options.accessibility.keyboardNavigation.focusBorder;t&&(t.removeFocusBorder(),e.enabled&&t.addFocusBorder(e.margin,{stroke:e.style.color,strokeWidth:e.style.lineWidth,r:e.style.borderRadius}))}function r(t,e){let s=this.options.accessibility.keyboardNavigation.focusBorder,n=e||t.element;n&&n.focus&&(n.hcEvents&&n.hcEvents.focusin||i(n,"focusin",function(){}),n.focus(),s.hideBrowserFocusOutline&&(n.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=t,this.renderFocusBorder()}function o(t,i){this.focusBorder&&this.removeFocusBorder();let n=this.getBBox(),r=s(t,3),o=this.parentGroup,a=this.scaleX||o&&o.scaleX,l=this.scaleY||o&&o.scaleY,c=(a?!l:l)?Math.abs(a||l||1):(Math.abs(a||1)+Math.abs(l||1))/2;n.x+=this.translateX?this.translateX:0,n.y+=this.translateY?this.translateY:0;let h=n.x-r,d=n.y-r,u=n.width+2*r,p=n.height+2*r,f=!!this.text;if("text"===this.element.nodeName||f){let t,e,i=!!this.rotation,s=f?{x:i?1:0,y:0}:(t=0,e=0,"middle"===this.attr("text-anchor")?t=e=.5:this.rotation?t=.25:e=.75,{x:t,y:e}),o=+this.attr("x"),a=+this.attr("y");if(isNaN(o)||(h=o-n.width*s.x-r),isNaN(a)||(d=a-n.height*s.y-r),f&&i){let t=u;u=p,p=t,isNaN(o)||(h=o-n.height*s.x-r),isNaN(a)||(d=a-n.width*s.y-r)}}this.focusBorder=this.renderer.rect(h,d,u,p,parseInt((i&&i.r||0).toString(),10)/c).addClass("highcharts-focus-border").attr({zIndex:99}).add(o),this.renderer.styledMode||this.focusBorder.attr({stroke:i&&i.stroke,"stroke-width":(i&&i.strokeWidth||0)/c}),function(t,...i){t.focusBorderUpdateHooks||(t.focusBorderUpdateHooks={},e.forEach(e=>{let s=e+"Setter",n=t[s]||t._defaultSetter;t.focusBorderUpdateHooks[s]=n,t[s]=function(){let e=n.apply(t,arguments);return t.addFocusBorder.apply(t,i),e}}))}(this,t,i),function(t){if(t.focusBorderDestroyHook)return;let e=t.destroy;t.destroy=function(){return t.focusBorder&&t.focusBorder.destroy&&t.focu
2sBorder.destroy(),e.apply(t,arguments)},t.focusBorderDestroyHook=e}(this)}function a(){var t;(t=this).focusBorderUpdateHooks&&(Object.keys(t.focusBorderUpdateHooks).forEach(e=>{let i=t.focusBorderUpdateHooks[e];i===t._defaultSetter?delete t[e]:t[e]=i}),delete t.focusBorderUpdateHooks),this.focusBorderDestroyHook&&(this.destroy=this.focusBorderDestroyHook,delete this.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}t.compose=function(t,e){let i=t.prototype,s=e.prototype;i.renderFocusBorder||(i.renderFocusBorder=n,i.setFocusToElement=r),s.addFocusBorder||(s.addFocusBorder=o,s.removeFocusBorder=a)}}(e||(e={})),e}),i(e,"Accessibility/Utils/Announcer.js",[e["Core/Renderer/HTML/AST.js"],e["Accessibility/Utils/DOMElementProvider.js"],e["Core/Globals.js"],e["Accessibility/Utils/HTMLUtilities.js"],e["Core/Utilities.js"]],function(t,e,i,s,n){let{doc:r}=i,{addClass:o,visuallyHideElement:a}=s,{attr:l}=n;return class{constructor(t,i){this.chart=t,this.domElementProvider=new e,this.announceRegion=this.addAnnounceRegion(i)}destroy(){this.domElementProvider.destroyCreatedElements()}announce(e){t.setElementHTML(this.announceRegion,e),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(()=>{this.announceRegion.innerHTML=t.emptyHTML,delete this.clearAnnouncementRegionTimer},3e3)}addAnnounceRegion(t){let e=this.chart.announcerContainer||this.createAnnouncerContainer(),i=this.domElementProvider.createElement("div");return l(i,{"aria-hidden":!1,"aria-live":t,"aria-atomic":!0}),this.chart.styledMode?o(i,"highcharts-visually-hidden"):a(i),e.appendChild(i),i}createAnnouncerContainer(){let t=this.chart,e=r.createElement("div");return l(e,{"aria-hidden":!1,class:"highcharts-announcer-container"}),e.style.position="relative",t.renderTo.insertBefore(e,t.renderTo.firstChild),t.announcerContainer=e,e}}}),i(e,"Accessibility/Components/AnnotationsA11y.js",[e["Accessibility/Utils/HTMLUtilities.js"]],function(t){let{escapeStringForHTML:e,stripHTMLTagsFromString:i}=t;function s(t){return(t.annotations||[]).reduce((t,e)=>(e.options&&!1!==e.options.visible&&(t=t.concat(e.labels)),t),[])}function n(t){return t.options&&t.options.accessibility&&t.options.accessibility.description||t.graphic&&t.graphic.text&&t.graphic.text.textStr||""}function r(t){let e=t.options&&t.options.accessibility&&t.options.accessibility.description;if(e)return e;let i=t.chart,s=n(t),r=t.points,o=r.filter(t=>!!t.graphic).map(t=>{let e=t.accessibility&&t.accessibility.valueDescription||(t=>t.graphic&&t.graphic.element&&t.graphic.element.getAttribute("aria-label")||"")(t),i=t&&t.series.name||"";return(i?i+", ":"")+"data point "+e}).filter(t=>!!t),a=o.length,l=a>1?"MultiplePoints":a?"SinglePoint":"NoPoints",c={annotationText:s,annotation:t,numPoints:a,annotationPoint:o[0],additionalAnnotationPoints:o.slice(1)};return i.langFormat("accessibility.screenReaderSection.annotations.description"+l,c)}function o(t){return s(t).map(s=>{let n=e(i(r(s),t.renderer.forExport));return n?`<li>${n}</li>`:""})}return{getAnnotationsInfoHTML:function(t){let e=t.annotations;return e&&e.length?`<ul style="list-style-type: none">${o(t).join(" ")}</ul>`:""},getAnnotationLabelDescription:r,getAnnotationListItems:o,getPointAnnotationTexts:function(t){let e=s(t.series.chart).filter(e=>e.points.indexOf(t)>-1);return e.length?e.map(t=>`${n(t)}`):[]}}}),i(e,"Accessibility/Components/InfoRegionsComponent.js",[e["Accessibility/A11yI18n.js"],e["Accessibility/AccessibilityComponent.js"],e["Accessibility/Utils/Announcer.js"],e["Accessibility/Components/AnnotationsA11y.js"],e["Core/Renderer/HTML/AST.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Core/Templating.js"],e["Core/Globals.js"],e["Accessibility/Utils/HTMLUtilities.js"],e["Core/Utilities.js"]],function(t,e,i,s,n,r,o,a,l,c){let{getAnnotationsInfoHTML:h}=s,{getAxisDescription:d,getAxisRangeDescription:u,getChartTitle:p,unhideChartElementFromAT:f}=r,{format:g}=o,{doc:m}=a,{addClass:x,getElement:b,getHeadingTagNameForElement:y,stripHTMLTagsFromString:v,visuallyHideElement:w}=l,{attr:S,pick:k,replaceNested:C}=c;function A(t){return C(t,[/<([\w\-.:!]+)\b[^<>]*>\s*<\/\1>/g,""])}return class extends e{constructor(){super(...arguments),this.screenReaderSections={}}init(){let t=this.chart,e=this;this.initRegionsDefinitions(),this.addEvent(t,"aftergetTableAST",function(t){e.onDataTableCreated(t)}),this.addEvent(t,"afterViewData",function(t){t.wasHidden&&(e.dataTableDiv=t.element,setTimeout(function(){e.focusDataTable()},300))}),this.addEvent(t,"afterHideData",function(){e.viewDataTableButton&&e.viewDataTableButton.setAttribute("aria-expanded","fal
2se")}),t.exporting&&this.addEvent(t,"afterPrint",function(){e.updateAllScreenReaderSections()}),this.announcer=new i(t,"assertive")}initRegionsDefinitions(){let t=this,e=this.chart.options.accessibility;this.screenReaderSections={before:{element:null,buildContent:function(i){let s=e.screenReaderSection.beforeChartFormatter;return s?s(i):t.defaultBeforeChartFormatter(i)},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.renderTo.firstChild)},afterInserted:function(){void 0!==t.sonifyButtonId&&t.initSonifyButton(t.sonifyButtonId),void 0!==t.dataTableButtonId&&t.initDataTableButton(t.dataTableButtonId)}},after:{element:null,buildContent:function(i){let s=e.screenReaderSection.afterChartFormatter;return s?s(i):t.defaultAfterChartFormatter()},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.container.nextSibling)},afterInserted:function(){t.chart.accessibility&&e.keyboardNavigation.enabled&&t.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}}onChartRender(){this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),this.updateAllScreenReaderSections()}updateAllScreenReaderSections(){let t=this;Object.keys(this.screenReaderSections).forEach(function(e){t.updateScreenReaderSection(e)})}getLinkedDescriptionElement(){let t=this.chart.options.accessibility.linkedDescription;if(!t)return;if("string"!=typeof t)return t;let e=g(t,this.chart),i=m.querySelectorAll(e);return 1===i.length?i[0]:void 0}setLinkedDescriptionAttrs(){let t=this.linkedDescriptionElement;t&&(t.setAttribute("aria-hidden","true"),x(t,"highcharts-linked-description"))}updateScreenReaderSection(t){let e=this.chart,i=this.screenReaderSections[t],s=i.buildContent(e),r=i.element=i.element||this.createElement("div"),o=r.firstChild||this.createElement("div");s?(this.setScreenReaderSectionAttribs(r,t),n.setElementHTML(o,s),r.appendChild(o),i.insertIntoDOM(r,e),e.styledMode?x(o,"highcharts-visually-hidden"):w(o),f(e,o),i.afterInserted&&i.afterInserted()):(r.parentNode&&r.parentNode.removeChild(r),i.element=null)}setScreenReaderSectionAttribs(t,e){let i=this.chart,s=i.langFormat("accessibility.screenReaderSection."+e+"RegionLabel",{chart:i,chartTitle:p(i)});S(t,{id:`highcharts-screen-reader-region-${e}-${i.index}`,"aria-label":s||void 0}),t.style.position="relative",s&&t.setAttribute("role","all"===i.options.accessibility.landmarkVerbosity?"region":"group")}defaultBeforeChartFormatter(){let e=this.chart,i=e.options.accessibility.screenReaderSection.beforeChartFormat;if(!i)return"";let s=this.getAxesDescription(),n=e.sonify&&e.options.sonification&&e.options.sonification.enabled,r="highcharts-a11y-sonify-data-btn-"+e.index,o="hc-linkto-highcharts-data-table-"+e.index,a=h(e),l=e.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:e}),c={headingTagName:y(e.renderTo),chartTitle:p(e),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:s.xAxis,yAxisDescription:s.yAxis,playAsSoundButton:n?this.getSonifyButtonText(r):"",viewTableButton:e.getCSV?this.getDataTableButtonText(o):"",annotationsTitle:a?l:"",annotationsList:a},d=t.i18nFormat(i,c,e);return this.dataTableButtonId=o,this.sonifyButtonId=r,A(d)}defaultAfterChartFormatter(){let e=this.chart,i=e.options.accessibility.screenReaderSection.afterChartFormat;if(!i)return"";let s={endOfChartMarker:this.getEndOfChartMarkerText()};return A(t.i18nFormat(i,s,e))}getLinkedDescription(){let t=this.linkedDescriptionElement;return v(t&&t.innerHTML||"",this.chart.renderer.forExport)}getLongdescText(){let t=this.chart.options,e=t.caption,i=e&&e.text,s=this.getLinkedDescription();return t.accessibility.description||s||i||""}getTypeDescriptionText(){let t=this.chart;return t.types?t.options.accessibility.typeDescription||function(t,e){let i=e[0],s=t.series&&t.series[0]||{},n=t.mapView&&t.mapView.geoMap&&t.mapView.geoMap.title,r={numSeries:t.series.length,numPoints:s.points&&s.points.length,chart:t,mapTitle:n};return i?"map"===i||"tiledwebmap"===i?r.mapTitle?t.langFormat("accessibility.chartTypes.mapTypeDescription",r):t.langFormat("accessibility.chartTypes.unknownMap",r):t.types.length>1?t.langFormat("accessibility.chartTypes.combinationChart",r):function(t,e,
vendor: 12,617 bytes, line 2
2i){let s=e[0],n=t.langFormat("accessibility.seriesTypeDescriptions."+s,i),r=t.series&&t.series.length<2?"Single":"Multiple";return(t.langFormat("accessibility.chartTypes."+s+r,i)||t.langFormat("accessibility.chartTypes.default"+r,i))+(n?" "+n:"")}(t,e,r):t.langFormat("accessibility.chartTypes.emptyChart",r)}(t,t.types):""}getDataTableButtonText(t){let e=this.chart;return'<button id="'+t+'">'+e.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:e,chartTitle:p(e)})+"</button>"}getSonifyButtonText(t){let e=this.chart;return e.options.sonification&&!1===e.options.sonification.enabled?"":'<button id="'+t+'">'+e.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:e,chartTitle:p(e)})+"</button>"}getSubtitleText(){let t=this.chart.options.subtitle;return v(t&&t.text||"",this.chart.renderer.forExport)}getEndOfChartMarkerText(){let t=b(`highcharts-end-of-chart-marker-${this.chart.index}`);if(t)return t.outerHTML;let e=this.chart,i=e.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:e});return'<div id="highcharts-end-of-chart-marker-'+e.index+'">'+i+"</div>"}onDataTableCreated(t){let e=this.chart;if(e.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");let i=t.tree.attributes||{};i.tabindex=-1,i.summary=e.langFormat("accessibility.table.tableSummary",{chart:e}),t.tree.attributes=i}}focusDataTable(){let t=this.dataTableDiv,e=t&&t.getElementsByTagName("table")[0];e&&e.focus&&e.focus()}initSonifyButton(t){let e=this.sonifyButton=b(t),i=this.chart,s=t=>{e&&(e.setAttribute("aria-hidden","true"),e.setAttribute("aria-label","")),t.preventDefault(),t.stopPropagation();let s=i.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:i});this.announcer.announce(s),setTimeout(()=>{e&&(e.removeAttribute("aria-hidden"),e.removeAttribute("aria-label")),i.sonify&&i.sonify()},1e3)};e&&i&&(e.setAttribute("tabindex",-1),e.onclick=function(t){(i.options.accessibility&&i.options.accessibility.screenReaderSection.onPlayAsSoundClick||s).call(this,t,i)})}initDataTableButton(t){let e=this.viewDataTableButton=b(t),i=this.chart,s=t.replace("hc-linkto-","");e&&(S(e,{tabindex:-1,"aria-expanded":!!b(s)}),e.onclick=i.options.accessibility.screenReaderSection.onViewDataTableClick||function(){i.viewData()})}getAxesDescription(){let t=this.chart,e=function(e,i){let s=t[e];return s.length>1||s[0]&&k(s[0].options.accessibility&&s[0].options.accessibility.enabled,i)},i=!!t.types&&0>t.types.indexOf("map")&&0>t.types.indexOf("treemap")&&0>t.types.indexOf("tilemap"),s=!!t.hasCartesianSeries,n=e("xAxis",!t.angular&&s&&i),r=e("yAxis",s&&i),o={};return n&&(o.xAxis=this.getAxisDescriptionText("xAxis")),r&&(o.yAxis=this.getAxisDescriptionText("yAxis")),o}getAxisDescriptionText(t){let e=this.chart,i=e[t];return e.langFormat("accessibility.axis."+t+"Description"+(i.length>1?"Plural":"Singular"),{chart:e,names:i.map(function(t){return d(t)}),ranges:i.map(function(t){return u(t)}),numAxes:i.length})}destroy(){this.announcer&&this.announcer.destroy()}}}),i(e,"Accessibility/Components/MenuComponent.js",[e["Core/Utilities.js"],e["Accessibility/AccessibilityComponent.js"],e["Accessibility/KeyboardNavigationHandler.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Utils/HTMLUtilities.js"]],function(t,e,i,s,n){let{attr:r}=t,{getChartTitle:o,unhideChartElementFromAT:a}=s,{getFakeMouseEvent:l}=n;function c(t){return t.exportSVGElements&&t.exportSVGElements[0]}class h extends e{init(){let t=this.chart,e=this;this.addEvent(t,"exportMenuShown",function(){e.onMenuShown()}),this.addEvent(t,"exportMenuHidden",function(){e.onMenuHidden()}),this.createProxyGroup()}onMenuHidden(){let t=this.chart.exportContextMenu;t&&t.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")}onMenuShown(){let t=this.chart,e=t.exportContextMenu;e&&(this.addAccessibleContextMenuAttribs(),a(t,e)),this.setExportButtonExpandedState("true")}setExportButtonExpandedState(t){this.exportButtonProxy&&this.exportButtonProxy.innerElement.setAttribute("aria-expanded",t)}onChartRender(){let t=this.chart,e=t.focusElement,i=t.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&e&&e===t.exportingGroup&&(e.focusBorder?t.setFocusToElement(e,this.exportButtonProxy.innerElement):i&&i.keyboardNavigation.tabindexContainer.focus())}proxyMenuButton(){let t=this.chart,e=this.proxyProvider,i=c(t);(function(t){let e=t.options.exporting,i=c(t);return!!(e&&!1!==e.enabled&&e.accessibility&&e.accessibility.enabled&&i&&i.element)})(t)&&i&&(this.exportButtonProxy=e.addProxyElement("chartMenu",{click:i},"button",{"aria-label":t.langFormat("accessibility.exporting.menuButtonLabel",{chart:t,chartTitle:o(t)}),"aria-expanded":!1,title:t.options.lang.contextButtonTitle||null}))}createProxyGroup(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu")}addAccessibleContextMenuAttribs(){let t=this.chart,e=t.exportDivElements;if(e&&e.length){e.forEach(t=>{t&&("LI"!==t.tagName||t.children&&t.children.length?t.setAttribute("aria-hidden","true"):t.setAttribute("tabindex",-1))});let i=e[0]&&e[0].parentNode;i&&r(i,{"aria-hidden":void 0,"aria-label":t.langFormat("accessibility.exporting.chartMenuLabel",{chart:t}),role:"list"})}}getKeyboardNavigation(){let t=this.keyCodes,e=this.chart,s=this;return new i(e,{keyCodeMap:[[[t.left,t.up],function(){return s.onKbdPrevious(this)}],[[t.right,t.down],function(){return s.onKbdNext(this)}],[[t.enter,t.space],function(){return s.onKbdClick(this)}]],validate:function(){return!!e.exporting&&!1!==e.options.exporting.enabled&&!1!==e.options.exporting.accessibility.enabled},init:function(){let t=s.exportButtonProxy,i=s.chart.exportingGroup;t&&i&&e.setFocusToElement(i,t.innerElement)},terminate:function(){e.hideExportMenu()}})}onKbdPrevious(t){let e=this.chart,i=e.options.accessibility,s=t.response,n=e.highlightedExportItemIx||0;for(;n--;)if(e.highlightExportItem(n))return s.success;return i.keyboardNavigation.wrapAround?(e.highlightLastExportItem(),s.success):s.prev}onKbdNext(t){let e=this.chart,i=e.options.accessibility,s=t.response;for(let t=(e.highlightedExportItemIx||0)+1;t<e.exportDivElements.length;++t)if(e.highlightExportItem(t))return s.success;return i.keyboardNavigation.wrapAround?(e.highlightExportItem(0),s.success):s.next}onKbdClick(t){let e=this.chart,i=e.exportDivElements[e.highlightedExportItemIx],s=c(e).element;return e.openMenu?this.fakeClickEvent(i):(this.fakeClickEvent(s),e.highlightExportItem(0)),t.response.success}}return function(t){function e(){let t=c(this);if(t){let e=t.element;e.onclick&&e.onclick(l("click"))}}function i(){let t=this.exportDivElements;t&&this.exportContextMenu&&this.openMenu&&(t.forEach(t=>{t&&"highcharts-menu-item"===t.className&&t.onmouseout&&t.onmouseout(l("mouseout"))}),this.highlightedExportItemIx=0,this.exportContextMenu.hideMenu(),this.container.focus())}function s(t){let e=this.exportDivElements&&this.exportDivElements[t],i=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(e&&"LI"===e.tagName&&(!e.children||!e.children.length)){let s=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return e.focus&&s&&e.focus(),i&&i.onmouseout&&i.onmouseout(l("mouseout")),e.onmouseover&&e.onmouseover(l("mouseover")),this.highlightedExportItemIx=t,!0}return!1}function n(){if(this.exportDivElements){let t=this.exportDivElements.length;for(;t--;)if(this.highlightExportItem(t))return!0}return!1}t.compose=function(t){let r=t.prototype;r.hideExportMenu||(r.hideExportMenu=i,r.highlightExportItem=s,r.highlightLastExportItem=n,r.showExportMenu=e)}}(h||(h={})),h}),i(e,"Accessibility/KeyboardNavigation.js",[e["Core/Globals.js"],e["Accessibility/Components/MenuComponent.js"],e["Core/Utilities.js"],e["Accessibility/Utils/EventProvider.js"],e["Accessibility/Utils/HTMLUtilities.js"]],function(t,e,i,s,n){let{doc:r,win:o}=t,{addEvent:a,defined:l,fireEvent:c}=i,{getElement:h,simulatedEventTarget:d}=n;class u{constructor(t,e){this.currentModuleIx=NaN,this.modules=[],this.init(t,e)}init(t,e){let i=this.eventProvider=new s;this.chart=t,this.components=e,this.modules=[],this.currentModuleIx=0,this.update(),i.addEvent(this.tabindexContainer,"keydown",t=>this.onKeydown(t)),i.addEvent(this.tabindexContainer,"focus",t=>this.onFocus(t)),["mouseup","touchend"].forEach(t=>i.addEvent(r,t,t=>this.onMouseUp(t))),["mousedown","touchstart"].forEach(e=>i.addEvent(t.renderTo,e,()=>{this.isClickingChart=!0}))}update(t){let e=this.chart.options.accessibility,i=e&&e.keyboardNavigation,s=this.components;this.updateContainerTabindex(),i&&i.enabled&&t&&t.length?(this.modules=t.reduce(function(t,e){let i=s[e].getKeyboardNavigation();return t.concat(i)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())}updateExitAnchor(){let t=h(`highcharts-end-of-chart-marker-${this.chart.index}`);this.removeExitAnchor(),t?(this.makeElementAnExitAnchor(t),this.exitAnchor=t):this.createExitAnchor()}move(t){let e=this.modules&&this.modules[this.currentModuleIx];e&&e.terminate&&e.terminate(t),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=t;let i=this.modules&&this.modules[this.currentModuleIx];if(i){if(i.validate&&!i.validate())return this.move(t);if(i.init)return i.init(t),!0}return this.currentModuleIx=0,this.exiting=!0,t>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1}onFocus(t){let e=this.chart,i=t.relatedTarget&&e.container.contains(t.relatedTarget),s=e.options.accessibility,n=s&&s.keyboardNavigation;if(n&&n.enabled&&!this.exiting&&!this.tabbingInBackwards&&!this.isClickingChart&&!i){let t=this.getFirstValidModuleIx();null!==t&&(this.currentModuleIx=t,this.modules[t].init(1))}this.keyboardReset=!1,this.exiting=!1}onMouseUp(t){if(delete this.isClickingChart,!this.keyboardReset&&t.relatedTarget!==d){let e=this.chart;if(!t.target||!e.container.contains(t.target)){let t=this.modules&&this.modules[this.currentModuleIx||0];t&&t.terminate&&t.terminate(),this.currentModuleIx=0}e.focusElement&&(e.focusElement.removeFocusBorder(),delete e.focusElement),this.keyboardReset=!0}}onKeydown(t){let e,i=t||o.event,s=this.modules&&this.modules.length&&this.modules[this.currentModuleIx],n=i.target;if((!n||"INPUT"!==n.nodeName||n.classList.contains("highcharts-a11y-proxy-element"))&&(this.keyboardReset=!1,this.exiting=!1,s)){let t=s.run(i);t===s.response.success?e=!0:t===s.response.prev?e=this.move(-1):t===s.response.next&&(e=this.move(1)),e&&(i.preventDefault(),i.stopPropagation())}}updateContainerTabindex(){let t,e=this.chart.options.accessibility,i=e&&e.keyboardNavigation,s=!(i&&!1===i.enabled),n=this.chart,r=n.container;n.renderTo.hasAttribute("tabindex")?(r.removeAttribute("tabindex"),t=n.renderTo):t=r,this.tabindexContainer=t;let o=t.getAttribute("tabindex");s&&!o?t.setAttribute("tabindex","0"):s||n.container.removeAttribute("tabindex")}createExitAnchor(){let t=this.chart,e=this.exitAnchor=r.createElement("div");t.renderTo.appendChild(e),this.makeElementAnExitAnchor(e)}makeElementAnExitAnchor(t){let e=this.tabindexContainer.getAttribute("tabindex")||0;t.setAttribute("class","highcharts-exit-anchor"),t.setAttribute("tabindex",e),t.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(t)}removeExitAnchor(){if(this.exitAnchor){let t=this.eventProvider.eventRemovers.find(t=>t.element===this.exitAnchor);t&&l(t.remover)&&this.eventProvider.removeEvent(t.remover),this.exitAnchor.parentNode&&this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor}}addExitAnchorEventsToEl(t){let e=this.chart,i=this;this.eventProvider.addEvent(t,"focus",function(t){let s=t||o.event,n=!(s.relatedTarget&&e.container.contains(s.relatedTarget)||i.exiting);if(e.focusElement&&delete e.focusElement,n){if(i.tabbingInBackwards=!0,i.tabindexContainer.focus(),delete i.tabbingInBackwards,s.preventDefault(),i.modules&&i.modules.length){i.currentModuleIx=i.modules.length-1;let t=i.modules[i.currentModuleIx];t&&t.validate&&!t.validate()?i.move(-1):t&&t.init(-1)}}else i.exiting=!1})}getFirstValidModuleIx(){let t=this.modules.length;for(let e=0;e<t;++e){let t=this.modules[e];if(!t.validate||t.validate())return e}return null}destroy(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")}}return function(i){function s(){let t=this;c(this,"dismissPopupContent",{},function(){t.tooltip&&t.tooltip.hide(0),t.hideExportMenu()})}function n(e){27===(e.which||e.keyCode)&&t.charts&&t.charts.forEac
2h(t=>{t&&t.dismissPopupContent&&t.dismissPopupContent()})}i.compose=function(t){e.compose(t);let i=t.prototype;return i.dismissPopupContent||(i.dismissPopupContent=s,a(r,"keydown",n)),t}}(u||(u={})),u}),i(e,"Accessibility/Components/LegendComponent.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Core/Legend/Legend.js"],e["Core/Utilities.js"],e["Accessibility/AccessibilityComponent.js"],e["Accessibility/KeyboardNavigationHandler.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Utils/HTMLUtilities.js"]],function(t,e,i,s,n,r,o,a){let{animObject:l}=t,{doc:c}=e,{addEvent:h,fireEvent:d,isNumber:u,pick:p,syncTimeout:f}=s,{getChartTitle:g}=o,{stripHTMLTagsFromString:m,addClass:x,removeClass:b}=a;function y(t){let e=t.legend&&t.legend.allItems,i=t.options.legend.accessibility||{},s=t.colorAxis&&t.colorAxis.some(t=>!t.dataClasses||!t.dataClasses.length);return!(!e||!e.length||s||!1===i.enabled)}function v(t,e){let i=e.legendItem||{};for(let s of(e.setState(t?"hover":"",!0),["group","label","symbol"])){let e=i[s],n=e&&e.element||e;n&&d(n,t?"mouseover":"mouseout")}}class w extends n{constructor(){super(...arguments),this.highlightedLegendItemIx=NaN,this.proxyGroup=null}init(){let t=this;this.recreateProxies(),this.addEvent(i,"afterScroll",function(){this.chart===t.chart&&(t.proxyProvider.updateGroupProxyElementPositions("legend"),t.updateLegendItemProxyVisibility(),t.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(t.highlightedLegendItemIx))}),this.addEvent(i,"afterPositionItem",function(e){this.chart===t.chart&&this.chart.renderer&&t.updateProxyPositionForItem(e.item)}
vendor: 5,208 bytes, line 2
2),this.addEvent(i,"afterRender",function(){this.chart===t.chart&&this.chart.renderer&&t.recreateProxies()&&f(()=>t.proxyProvider.updateGroupProxyElementPositions("legend"),l(p(this.chart.renderer.globalAnimation,!0)).duration)})}updateLegendItemProxyVisibility(){let t,e=this.chart,i=e.legend,s=i.allItems||[],n=i.currentPage||1,r=i.clipHeight||0;s.forEach(s=>{if(s.a11yProxyElement){let o=i.pages&&i.pages.length,a=s.a11yProxyElement.element,l=!1;if(t=s.legendItem||{},o){let e=t.pageIx||0;l=(t.y||0)+(t.label?Math.round(t.label.getBBox().height):0)-i.pages[e]>r||e!==n-1}l?e.styledMode?x(a,"highcharts-a11y-invisible"):a.style.visibility="hidden":(b(a,"highcharts-a11y-invisible"),a.style.visibility="")}})}onChartRender(){y(this.chart)||this.removeProxies()}highlightAdjacentLegendPage(t){let e=this.chart,i=e.legend,s=(i.currentPage||1)+t,n=i.pages||[];if(s>0&&s<=n.length){let t=0;for(let n of i.allItems)((n.legendItem||{}).pageIx||0)+1===s&&e.highlightLegendItem(t)&&(this.highlightedLegendItemIx=t),++t}}updateProxyPositionForItem(t){t.a11yProxyElement&&t.a11yProxyElement.refreshPosition()}recreateProxies(){let t=c.activeElement,e=this.proxyGroup,i=t&&e&&e.contains(t);return this.removeProxies(),!!y(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),i&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)}removeProxies(){this.proxyProvider.removeGroup("legend")}updateLegendTitle(){let t=this.chart,e=m((t.legend&&t.legend.options.title&&t.legend.options.title.text||"").replace(/<br ?\/?>/g," "),t.renderer.forExport),i=t.langFormat("accessibility.legend.legendLabel"+(e?"":"NoTitle"),{chart:t,legendTitle:e,chartTitle:g(t)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":i})}addLegendProxyGroup(){let t="all"===this.chart.options.accessibility.landmarkVerbosity?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:t})}proxyLegendItems(){let t,e=this;((this.chart.legend||{}).allItems||[]).forEach(i=>{(t=i.legendItem||{}).label&&t.label.element&&e.proxyLegendItem(i)})}proxyLegendItem(t){let e=t.legendItem||{};if(!e.label||!e.group)return;let i=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:m(t.name,this.chart.renderer.forExport),item:t}),s={tabindex:-1,"aria-pressed":t.visible,"aria-label":i},n=e.group.div?e.label:e.group;t.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:e.label,visual:n.element},"button",s)}getKeyboardNavigation(){let t=this.keyCodes,e=this,i=this.chart;return new r(i,{keyCodeMap:[[[t.left,t.right,t.up,t.down],function(t){return e.onKbdArrowKey(this,t)}],[[t.enter,t.space],function(){return e.onKbdClick(this)}],[[t.pageDown,t.pageUp],function(i){let s=i===t.pageDown?1:-1;return e.highlightAdjacentLegendPage(s),this.response.success}]],validate:function(){return e.shouldHaveLegendNavigation()},init:function(){i.highlightLegendItem(0),e.highlightedLegendItemIx=0},terminate:function(){e.highlightedLegendItemIx=-1,i.legend.allItems.forEach(t=>v(!1,t))}})}onKbdArrowKey(t,e){let{keyCodes:{left:i,up:s},highlightedLegendItemIx:n,chart:r}=this,o=r.legend.allItems.length,a=r.options.accessibility.keyboardNavigation.wrapAround,l=e===i||e===s?-1:1;return r.highlightLegendItem(n+l)?this.highlightedLegendItemIx+=l:a&&o>1&&(this.highlightedLegendItemIx=l>0?0:o-1,r.highlightLegendItem(this.highlightedLegendItemIx)),t.response.success}onKbdClick(t){let e=this.chart.legend.allItems[this.highlightedLegendItemIx];return e&&e.a11yProxyElement&&e.a11yProxyElement.click(),t.response.success}shouldHaveLegendNavigation(){if(!y(this.chart))return!1;let t=this.chart,e=(t.options.legend||{}).accessibility||{};return!!(t.legend.display&&e.keyboardNavigation&&e.keyboardNavigation.enabled)}destroy(){this.removeProxies()}}return function(t){function e(t){let e=this.legend.allItems,i=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,s=e[t],n=s?.legendItem||{};if(s){u(i)&&e[i]&&v(!1,e[i]),function(t,e){let i=(t.allItems[e].legendItem||{}).pageIx,s=t.currentPage;void 0!==i&&i+1!==s&&t.scroll(1+i-s)}(this.legend,t);let r=n.label,o=s.a11yProxyElement&&s.a11yProxyElement.innerElement;return r&&r.element&&o&&this.setFocusToElement(r,o),v(!0,s),!0}return!1}function i(t){let e=this.chart.options.accessibility,i=t.item;e.enabled&&i&&i.a11yProxyElement&&i.a11yProxyElement.innerElement.setAttribute("aria-pressed",t.visible?"true":"false")}t.compose=function(t,s){let n=t.prototype;n.highlightLegendItem||(n.highlightLegendItem=e,h(s,"afterColorizeItem",i))}}(w||(w={})),w}),i(e,"Stock/Navigator/ChartNavigatorComposition.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){let i,{isTouchDevice:s}=t,{addEvent:n,merge:r,pick:o}=e,a=[];function l(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function c(){let t,e,i,s=this.legend,n=this.navigator;if(n){t=s&&s.options,e=n.xAxis,i=n.yAxis;let{scrollbarHeight:r,scrollButtonSize:a}=n;this.inverted?(n.left=n.opposite?this.chartWidth-r-n.height:this.spacing[3]+r,n.top=this.plotTop+a):(n.left=o(e.left,this.plotLeft+a),n.top=n.navigatorOptions.top||this.chartHe
2ight-n.height-r-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(t&&"bottom"===t.verticalAlign&&"proximate"!==t.layout&&t.enabled&&!t.floating?s.legendHeight+o(t.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),e&&i&&(this.inverted?e.options.left=i.options.left=n.left:e.options.top=i.options.top=n.top,e.setAxisSize(),i.setAxisSize())}}function h(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new i(this),o(t.redraw,!0)&&this.redraw(t.animation))}function d(){let t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new i(this))}function u(){let t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!s&&"x"===this.zooming.type||s&&"x"===this.zooming.pinchType))return!1}function p(t){let e=t.navigator;if(e&&t.xAxis[0]){let i=t.xAxis[0].getExtremes();e.render(i.min,i.max)}}function f(t){let e=t.options.navigator||{},i=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||i.enabled)&&(r(!0,this.options.navigator,e),r(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}return{compose:function(t,s){if(e.pushUnique(a,t)){let e=t.prototype;i=s,e.callbacks.push(p),n(t,"afterAddSeries",l),n(t,"afterSetChartSize",c),n(t,"afterUpdate",h),n(t,"beforeRender",d),n(t,"beforeShowResetZoom",u),n(t,"update",f)}}}}),i(e,"Core/Axis/NavigatorAxisComposition.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){let{isTouchDevice:i}=t,{addEvent:s,correctFloat:n,defined:r,isNumber:o,pick:a}=e;function l(){this.navigatorAxis||(this.navigatorAxis=new h(this))}function c(t){let e,s=this.chart,n=s.options,o=n.navigator,a=this.navigatorAxis,l=s.zooming.pinchType,c=n.rangeSelector,h=s.zooming.type;if(this.isXAxis&&(o?.enabled||c?.enabled))if("y"===h&&"zoom"===t.trigger)e=!1;else if(("zoom"===t.trigger&&"xy"===h||i&&"xy"===l)&&this.options.range){let e=a.previousZoom;r(t.min)?a.previousZoom=[this.min,this.max]:e&&(t.min=e[0],t.max=e[1],a.previousZoom=void 0)}void 0!==e&&t.preventDefault()}class h{static compose(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),s(t,"init",l),s(t,"setExtremes",c))}constructor(t){this.axis=t}destroy(){this.axis=void 0}toFixedRange(t,e,i,s){let l=this.axis,c=(l.pointRange||0)/2,h=a(i,l.translate(t,!0,!l.horiz)),d=a(s,l.translate(e,!0,!l.horiz));return r(i)||(h=n(h+c)),r(s)||(d=n(d-c)),o(h)&&o(d)||(h=d=void 0),{min:h,max:d}}}return h}),i(e,"Stock/Navigator/NavigatorDefaults.js",[e["Core/Color/Color.js"],e["Core/Series/SeriesRegistry.js"]],function(t,e){let{parse:i}=t,{seriesTypes:s}=e;return{height:40,margin:25,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:i("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===s.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),i(e,"Stock/Navigator/NavigatorSymbols.js",[e["Core/Renderer/SVG/Symbols.js"],e["Core/Utilities.js"]],function(t,e){let{relativeLength:i}=e;return{"navigator-handle":function(e,s,n,r,o={}){let a=o.width?o.width/2:n,l=i(o.borderRadius||0,Math.min(2*a,r));return[["M",-1.5,(r=o.height||r)/2-3.5],["L",-1.5,r/2+4.5],["M",.5,r/2-3.5],["L",.5,r/2+4.5],...t.rect(-a-1,.5,2*a+1,r,{r:l})]}}}),i(e,"Stock/Utilities/StockUtilities.js",[e["Core/Utilities.js"]],function(t){let{defined:e}=t;return{setFixedRange:function(t){let i=this.xAxis[0];e(i.dataMax)&&e(i.dataMin)&&t?this.fixedRange=Math.min(t,i.dataMax-i.dataMin):this.fixedRange=t}}}),i(e,"Stock/Navigator/NavigatorComposition.js",[e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Axis/NavigatorAxisComposition.js"],e["Stock/Navigator/NavigatorDefaults.js"],e["Stock/Navigator/NavigatorSymbols.js"],e["Core/Renderer/RendererRegistry.js"],e["Stock/Utilities/StockUtilities.js"],e["Core/Utilities.js"]],function(t,e,
2i,s,n,r,o,a){let{setOptions:l}=t,{composed:c}=e,{getRendererType:h}=r,{setFixedRange:d}=o,{addEvent:u,extend:p,pushUnique:f}=a;function g(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(t,e,r){i.compose(e),f(c,"Navigator")&&(t.prototype.setFixedRange=d,p(h().prototype.symbols,n),u(r,"afterUpdate",g),l({navigator:s}))}}}),i(e,"Core/Axis/ScrollbarAxis.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){var i;let{composed:s}=t,{addEvent:n,defined:r,pick:o,pushUnique:a}=e;return function(t){let e;function i(t){let e=o(t.options&&t.options.min,t.min),i=o(t.options&&t.options.max,t.max);return{axisMin:e,axisMax:i,scrollMin:r(t.dataMin)?Math.min(e,t.min,t.dataMin,o(t.threshold,1/0)):e,scrollMax:r(t.dataMax)?Math.max(i,t.max,t.dataMax,o(t.threshold,-1/0)):i}}function l(){let t=this.scrollbar,e=t&&!t.options.opposite,i=this.horiz?2:e?3:1;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[i]+=t.size+(t.options.margin||0))}function c(){let t=this;t.options&&t.options.scrollbar&&t.options.scrollbar.enabled&&(t.options.scrollbar.vertical=!t.horiz,t.options.startOnTick=t.options.endOnTick=!1,t.scrollbar=new e(t.chart.renderer,t.options.scrollbar,t.chart),n(t.scrollbar,"changed",function(e){let s,n,{axisMin:o,axisMax:a,scrollMin:l,scrollMax:c}=i(t),h=c-l;if(r(o)&&r(a))if(t.horiz&&!t.reversed||!t.horiz&&t.reversed?(s=l+h*this.to,n=l+h*this.from):(s=l+h*(1-this.from),n=l+h*(1-this.to)),this.shouldUpdateExtremes(e.DOMType)){let i="mousemove"!==e.DOMType&&"touchmove"!==e.DOMType&&void 0;t.setExtremes(n,s,!0,i,e)}else this.setRange(this.from,this.to)}))}function h(){let t,e,s,{scrollMin:n,scrollMax:o}=i(this),a=this.scrollbar,l=this.axisTitleMargin+(this.titleOffset||0),c=this.chart.scrollbarsOffsets,h=this.options.margin||0;if(a&&c){if(this.horiz)this.opposite||(c[1]+=l),a.position(this.left,this.top+this.height+2+c[1]-(this.opposite?h:0),this.width,this.height),this.opposite||(c[1]+=h),t=1;else{let e;this.opposite&&(c[0]+=l),e=a.options.opposite?this.left+this.width+2+c[0]-(this.opposite?0:h):this.opposite?0:h,a.position(e,this.top,this.width,this.height),this.opposite&&(c[0]+=h),t=0}c[t]+=a.size+(a.options.margin||0),isNaN(n)||isNaN(o)||!r(this.min)||!r(this.max)||this.min===this.max?a.setRange(0,1):(e=(this.min-n)/(o-n),s=(this.max-n)/(o-n),this.horiz&&!this.reversed||!this.horiz&&this.reversed?a.setRange(e,s):a.setRange(1-s,1-e))}}t.compose=function(t,i){a(s,"Axis.Scrollbar")&&(e=i,n(t,"afterGetOffset",l),n(t,"afterInit",c),n(t,"afterRender",h))}}(i||(i={})),i}),i(e,"Stock/Scrollbar/ScrollbarDefaults.js",[],function(){return{height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1}}),i(e,"Stock/Scrollbar/Scrollbar.js",[e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Axis/ScrollbarAxis.js"],e["Stock/Scrollbar/ScrollbarDefaults.js"],e["Core/Utilities.js"]],function(t,e,i,s,n){let{defaultOptions:r}=t,{addEvent:o,correctFloat:a,crisp:l,defined:c,destroyObjectProperties:h,fireEvent:d,merge:u,pick:p,removeEvent:f}=n;class g{static compose(t){i.compose(t,g)}static swapXY(t,e){return e&&t.forEach(t=>{let e,i=t.length;for(let s=0;s<i;s+=2)"number"==typeof(e=t[s+1])&&(t[s+1]=t[s+2],t[s+2]=e)}),t}constructor(t,e,i){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(t,e,i)}addEvents(){let t=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,i=this.scrollbarGroup.element,s=this.track.element,n=this.mouseDownHandler.bind(this),r=this.mouseMoveHandler.bind(this),a=this.mouseUpHandler.bind(this),l=[[e[t[0]].element,"click",this.buttonToMinClick.bind(this)],[e[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[s,"click",this.trackClick.bind(this)],[i,"mousedown",n],[i.ownerDocument,"mousemove",r],[i.ownerDocument,"mouseup",a],[i,"touchstart",n],[i.ownerDocument,"touchmove",r],[i.ownerDocument,"touchend",a]];l.forEach(function(t){o.apply(null,t)}),this._events=l}buttonToMaxClick(t){let e=(this.to-this.from)*p(this.options.step,.2);this.updatePosition(this.from+e,this.to+e),d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}buttonToMinClick(t){let e=a(this.to-this.from)*p(this.options.step,.2);this.updatePosition(a(this.from-e),a(this.to-e)),d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}cursorToScrollbarPosition(t){let e=this.options,i=e.minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-i),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-i)}}destroy(){let t=this,e=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){t[e]&&t[e].destroy&&(t[e]=t[e].destroy())}),e&&t===e.scrollbar&&(e.scrollbar=null,h(e.scrollbarButtons))}drawScrollbarButton(t){let e=this.renderer,i=this.scrollbarButtons,s=this.options,n=this.size,r=e.g().add(this.group);if(i.push(r),s.buttonsEnabled){let o=e.rect().addClass("highcharts-scrollbar-button").add(r);this.chart.styledMode||o.attr({stroke:s.buttonBorderColor,"stroke-width":s.buttonBorderWidth,fill:s.buttonBackgroun
vendor: 5,136 bytes, line 2
2dColor}),o.attr(o.crisp({x:-.5,y:-.5,width:n,height:n,r:s.buttonBorderRadius},o.strokeWidth()));let a=e.path(g.swapXY([["M",n/2+(t?-1:1),n/2-3],["L",n/2+(t?-1:1),n/2+3],["L",n/2+(t?2:-2),n/2]],s.vertical)).addClass("highcharts-scrollbar-arrow").add(i[t]);this.chart.styledMode||a.attr({fill:s.buttonArrowColor})}}init(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=u(s,r.scrollbar,e),this.options.margin=p(this.options.margin,10),this.chart=i,this.size=p(this.options.size,this.options.height),e.enabled&&(this.render(),this.addEvents())}mouseDownHandler(t){let e=this.chart.pointer?.normalize(t)||t,i=this.cursorToScrollbarPosition(e);this.chartX=i.chartX,this.chartY=i.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(t){let e,i=this.chart.pointer?.normalize(t)||t,s=this.options.vertical?"chartY":"chartX",n=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][s])&&(e=this.cursorToScrollbarPosition(i)[s]-this[s],this.hasDragged=!0,this.updatePosition(n[0]+e,n[1]+e),this.hasDragged&&d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))}mouseUpHandler(t){this.hasDragged&&d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(t,e,i,s){let{buttonsEnabled:n,margin:r=0,vertical:o}=this.options,a=this.rendered?"animate":"attr",l=s,c=0;this.group.show(),this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.height=s,this.xOffset=l,this.yOffset=c,o?(this.width=this.yOffset=i=c=this.size,this.xOffset=l=0,this.yOffset=c=n?this.size:0,this.barWidth=s-(n?2*i:0),this.x=t+=r):(this.height=s=this.size,this.xOffset=l=n?this.size:0,this.barWidth=i-(n?2*s:0),this.y=this.y+r),this.group[a]({translateX:t,translateY:this.y}),this.track[a]({width:i,height:s}),this.scrollbarButtons[1][a]({translateX:o?0:i-l,translateY:o?s-c:0})}removeEvents(){this._events.forEach(function(t){f.apply(null,t)}),this._events.length=0}render(){let t=this.renderer,e=this.options,i=this.size,s=this.chart.styledMode,n=t.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=n,this.track=t.rect().addClass("highcharts-scrollbar-track").attr({r:e.trackBorderRadius||0,height:i,width:i}).add(n),s||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});let r=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-l(0,r),y:-l(0,r)}),this.scrollbarGroup=t.g().add(n),this.scrollbar=t.rect().addClass("highcharts-scrollbar-thumb").attr({height:i-r,width:i-r,r:e.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=t.path(g.swapXY([["M",-3,i/4],["L",-3,2*i/3],["M",0,i/4],["L",0,2*i/3],["M",3,i/4],["L",3,2*i/3]],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),s||(this.scrollbar.attr({fill:e.barBackgroundColor,stroke:e.barBorderColor,"stroke-width":e.barBorderWidth}),this.scrollbarRifles.attr({stroke:e.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-l(0,this.scrollbarStrokeWidth),-l(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(t,e){let i,s,n=this.options,r=n.vertical,o=n.minWidth,l=this.barWidth,h=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!c(l))return;let d=l*Math.min(e,1);i=Math.ceil(l*(t=Math.max(t,0))),this.calculatedWidth=s=a(d-i),s<o&&(i=(l-o+s)*t,s=o);let u=Math.floor(i+this.xOffset+this.yOffset),p=s/2-.5;this.from=t,this.to=e,r?(this.scrollbarGroup[h]({translateY:u}),this.scrollbar[h]({height:s}),this.scrollbarRifles[h]({translateY:p}),this.scrollbarTop=u,this.scrollbarLeft=0):(this.scrollbarGroup[h]({translateX:u}),this.scrollbar[h]({width:s}),this.scrollbarRifles[h]({translateX:p}),this.scrollbarLeft=u,this.scrollbarTop=0),s<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===n.showFull&&(t<=0&&e>=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(t){return p(this.options.liveRedraw,e.svg&&!e.isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!c(t)}trackClick(t){let e=this.chart.pointer?.normalize(t)||t,i=this.to-this.from,s=this.y+this.scrollbarTop,n=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>s||!this.options.vertical&&e.chartX>n?this.updatePosition(this.from+i,this.to+i):this.updatePosition(this.from-i,this.to-i),d(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}update(t){this.destroy(),this.init(this.chart.renderer,u(!0,this.options,t),this.chart)}updatePosition(t,e){e>1&&(t=a(1-a(e-t)),e=1),t<0&&(e=a(e-t),t=0),this.from=t,this.to=e}}return g.defaultOptions=s,r.scrollbar=u(!0,g.defaultOptions,r.scrollbar),g}),i(e,"Stock/Navigator/Navigator.js",[e["Core/Axis/Axis.js"],e["Stock/Navigator/ChartNavigatorComposition.js"],e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Axis/NavigatorAxisComposition.js"],e["Stock/Navigator/NavigatorComposition.js"],e["Stock/Scrollbar/Scrollbar.
2js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(t,e,i,s,n,r,o,a,l){let{defaultOptions:c}=i,{isTouchDevice:h}=s,{prototype:{symbols:d}}=a,{addEvent:u,clamp:p,correctFloat:f,defined:g,destroyObjectProperties:m,erase:x,extend:b,find:y,fireEvent:v,isArray:w,isNumber:S,merge:k,pick:C,removeEvent:A,splat:E}=l;function M(t,...e){let i=[].filter.call(e,S);if(i.length)return Math[t].apply(0,i)}class T{static compose(t,i,s){e.compose(t,T),r.compose(t,i,s)}constructor(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}drawHandle(t,e,i,s){let n=this.navigatorOptions.handles.height;this.handles[e][s](i?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-n)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-n/2-1)})}drawOutline(t,e,i,s){let n,r,o=this.navigatorOptions.maskInside,a=this.outline.strokeWidth(),l=a/2,c=a%2/2,h=this.scrollButtonSize,d=this.size,u=this.top,p=this.height,f=u-l,g=u+p,m=this.left;i?(n=u+e+c,r=[["M",m+p,u-h-c],["L",m+p,n],["L",m,n],["M",m,e=u+t+c],["L",m+p,e],["L",m+p,u+d+h]],o&&r.push(["M",m+p,n-l],["L",m+p,e+l])):(m-=h,r=[["M",m,f],["L",t+=m+h-c,f],["L",t,g],["M",e+=m+h-c,g],["L",e,f],["L",m+d+2*h,f]],o&&r.push(["M",t-l,f],["L",e+l,f])),this.outline[s]({d:r})}drawMasks(t,e,i,s){let n,r,o,a,l=this.left,c=this.top,h=this.height;i?(o=[l,l,l],a=[c,c+t,c+e],r=[h,h,h],n=[t,e-t,this.size-e]):(o=[l,l+t,l+e],a=[c,c,c],r=[t,e-t,this.size-e],n=[h,h,h]),this.shades.forEach((t,e)=>{t[s]({x:o[e],y:a[e],width:r[e],height:n[e]})})}renderElements(){let t=this,e=t.navigatorOptions,i=e.maskInside,s=t.chart,n=s.inverted,r=s.renderer,o={cursor:n?"ns-resize":"ew-resize"},a=t.navigatorGroup??(t.navigatorGroup=r.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!i,i,!i].forEach((i,n)=>{let l=t.shades[n]??(t.shades[n]=r.rect().addClass("highcharts-navigator-mask"+(1===n?"-inside":"-outside")).add(a));s.styledMode||(l.attr({fill:i?e.maskFill:"rgba(0,0,0,0)"}),1===n&&l.css(o))}),t.outline||(t.outline=r.path().addClass("highcharts-navigator-outline").add(a)),s.styledMode||t.outline.attr({"stroke-width":e.outlineWidth,stroke:e.outlineColor}),e.handles?.enabled){let i=e.handles,{height:n,width:l}=i;[0,1].forEach(e=>{let c=i.symbols[e];if(t.handles[e]){if(c!==t.handles[e].symbolName){let i=d[c].call(d,-l/2-1,0,l,n);t.handles[e].attr({d:i}),t.handles[e].symbolName=c}}else t.handles[e]=r.symbol(c,-l/2-1,0,l,n,i),t.handles[e].attr({zIndex:7-e}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][e]).add(a);s.inverted&&t.handles[e].attr({rotation:90,rotationOriginX:Math.floor(-l/2),rotationOriginY:(n+l)/2}),s.styledMode||t.handles[e].attr({fill:i.backgroundColor,stroke:i.borderColor,"stroke-width":i.lineWidth,width:i.width,height:i.height,x:-l/2-1,y:0}).css(o)})}}update(t,e=!1){let i=this.chart,s=i.options.chart.inverted!==i.scrollbar?.options.vertical;if(k(!0,i.options.navigator,t),this.navigatorOptions=i.options.navigator||{},this.setOpposite(),g(t.enabled)||s)return this.destroy(),this.navigatorEnabled=t.enabled||this.navigatorEnabled,this.init(i);if(this.navigatorEnabled&&(this.isDirty=!0,!1===t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{A(t,"updatedData",this.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{t.eventsToUnbind.push(u(t,"updatedData",this.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=t.height??this.height;let e=this.getXAxisOffsets();this.xAxis.update({...t.xAxis,offsets:e,[i.inverted?"width":"height"]:this.height,[i.inverted?"height":"width"]:void 0},!1),this.yAxis.update({...t.yAxis,[i.inverted?"width":"height"]:this.height},!1)}e&&i.redraw()}render(t,e,i,s){let n,r,o,a,l,c=this.chart,h=this.xAxis,d=h.pointRange||0,u=h.navigatorAxis.fake?c.xAxis[0]:h,m=this.navigatorEnabled,x=this.rendered,b=c.inverted,y=c.xAxis[0].minRange,w=c.xAxis[0].options.maxRange,k=this.scrollButtonSize,A=this.scrollbarHeight;if(this.hasDragged&&!g(i))return;if(this.isDirty&&this.renderElements(),t=f(t-d/2),e=f(e+d/2),!S(t)||!S(e)){
vendor: 4,763 bytes, line 2
2if(!x)return;i=0,s=C(h.width,u.width)}this.left=C(h.left,c.plotLeft+k+(b?c.plotWidth:0));let E=this.size=a=C(h.len,(b?c.plotHeight:c.plotWidth)-2*k);n=b?A:a+2*k,i=C(i,h.toPixels(t,!0)),s=C(s,h.toPixels(e,!0)),S(i)&&Math.abs(i)!==1/0||(i=0,s=n);let M=h.toValue(i,!0),T=h.toValue(s,!0),P=Math.abs(f(T-M));P<y?this.grabbedLeft?i=h.toPixels(T-y-d,!0):this.grabbedRight&&(s=h.toPixels(M+y+d,!0)):g(w)&&f(P-d)>w&&(this.grabbedLeft?i=h.toPixels(T-w-d,!0):this.grabbedRight&&(s=h.toPixels(M+w+d,!0))),this.zoomedMax=p(Math.max(i,s),0,E),this.zoomedMin=p(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,s),0,E),this.range=this.zoomedMax-this.zoomedMin,E=Math.round(this.zoomedMax);let O=Math.round(this.zoomedMin);m&&(this.navigatorGroup.attr({visibility:"inherit"}),l=x&&!this.hasDragged?"animate":"attr",this.drawMasks(O,E,b,l),this.drawOutline(O,E,b,l),this.navigatorOptions.handles.enabled&&(this.drawHandle(O,0,b,l),this.drawHandle(E,1,b,l))),this.scrollbar&&(b?(o=this.top-k,r=this.left-A+(m||!u.opposite?0:(u.titleOffset||0)+u.axisTitleMargin),A=a+2*k):(o=this.top+(m?this.height:-A),r=this.left-k),this.scrollbar.position(r,o,n,A),this.scrollbar.setRange(this.zoomedMin/(a||1),this.zoomedMax/(a||1))),this.rendered=!0,this.isDirty=!1,v(this,"afterRender")}addMouseEvents(){let t,e,i=this,s=i.chart,n=s.container,r=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},(r=i.getPartsEvents("mousedown")).push(u(s.renderTo,"mousemove",t),u(n.ownerDocument,"mouseup",e),u(s.renderTo,"touchmove",t),u(n.ownerDocument,"touchend",e)),r.concat(i.getPartsEvents("touchstart")),i.eventsToUnbind=r,i.series&&i.series[0]&&r.push(u(i.series[0].xAxis,"foundExtremes",function(){s.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(t){let e=this,i=[];return["shades","handles"].forEach(function(s){e[s].forEach(function(n,r){i.push(u(n.element,t,function(t){e[s+"Mousedown"](t,r)}))})}),i}shadesMousedown(t,e){t=this.chart.pointer?.normalize(t)||t;let i,s,n,r,o=this.chart,a=this.xAxis,l=this.zoomedMin,c=this.size,h=this.range,d=this.left,u=t.chartX;o.inverted&&(u=t.chartY,d=this.top),1===e?(this.grabbedCenter=u,this.fixedWidth=h,this.dragOffset=u-l):(r=u-d-h/2,0===e?r=Math.max(0,r):2===e&&r+h>=c&&(r=c-h,this.reversedExtremes?(r-=h,s=this.getUnionExtremes().dataMin):i=this.getUnionExtremes().dataMax),r!==l&&(this.fixedWidth=h,g((n=a.navigatorAxis.toFixedRange(r,r+h,s,i)).min)&&v(this,"setRange",{min:Math.min(n.min,n.max),max:Math.max(n.min,n.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(t,e){t=this.chart.pointer?.normalize(t)||t;let i=this.chart,s=i.xAxis[0],n=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=n?s.min:s.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=n?s.max:s.min),i.setFixedRange(void 0)}onMouseMove(t){let e,i=this,s=i.chart,n=i.navigatorSize,r=i.range,o=i.dragOffset,a=s.inverted,l=i.left;(!t.touches||0!==t.touches[0].pageX)&&(e=(t=s.pointer?.normalize(t)||t).chartX,a&&(l=i.top,e=t.chartY),i.grabbedLeft?(i.hasDragged=!0,i.render(0,0,e-l,i.otherHandlePos)):i.grabbedRight?(i.hasDragged=!0,i.render(0,0,i.otherHandlePos,e-l)):i.grabbedCenter&&(i.hasDragged=!0,e<o?e=o:e>n+o-r&&(e=n+o-r),i.render(0,0,e-o,e-o+r)),i.hasDragged&&i.scrollbar&&C(i.scrollbar.options.liveRedraw,!h&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){i.onMouseUp(t)},0)))}onMouseUp(t){let e,i,s,n,r,o,a=this.chart,l=this.xAxis,c=this.scrollbar,h=t.DOMEvent||t,d=a.inverted,u=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!c||!c.hasDragged)||"scrollbar"===t.trigger)&&(s=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?n=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(r=this.fixedExtreme),this.zoomedMax===this.size&&(r=this.reversedExtremes?s.dataMin:s.dataMax),0===this.zoomedMin&&(n=this.reversedExtremes?s.dataMax:s.dataMin),g((o=l.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,n,r)).min)&&v(this,"setRange",{min:Math.min(o.min,o.max),max:Math.max(o.min,o.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:h}})),"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&S(this.zoomedMin)&&S(this.zoomedMax)&&(i=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(i,e,d,u),this.outline&&this.drawOutline(i,e,d,u),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(i,0,d,u),this.drawHandle(e,1,d,u)))}
2removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){A(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&A(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(e){let i=e.options,s=i.navigator||{},r=s.enabled,a=i.scrollbar||{},l=a.enabled,c=r&&s.height||0,h=l&&a.height||0,d=a.buttonsEnabled&&h||0;this.handles=[],this.shades=[],this.chart=e,this.setBaseSeries(),this.height=c,this.scrollbarHeight=h,this.scrollButtonSize=d,this.scrollbarEnabled=l,this.navigatorEnabled=r,this.navigatorOptions=s,this.scrollbarOptions=a,this.setOpposite();let p=this,f=p.baseSeries,g=e.xAxis.length,m=e.yAxis.length,x=f&&f[0]&&f[0].xAxis||e.xAxis[0]||{options:{}};if(e.isDirtyBox=!0,p.navigatorEnabled){let i=this.getXAxisOffsets();p.xAxis=new t(e,k({breaks:x.options.breaks,ordinal:x.options.ordinal,overscroll:x.options.overscroll},s.xAxis,{type:"datetime",yAxis:s.yAxis?.id,index:g,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:x.options.ordinal?0:x.options.minPadding,maxPadding:x.options.ordinal?0:x.options.maxPadding,zoomEnabled:!1},e.inverted?{offsets:i,width:c}:{offsets:i,height:c}),"xAxis"),p.yAxis=new t(e,k(s.yAxis,{alignTicks:!1,offset:0,index:m,isInternal:!0,reversed:C(s.yAxis&&s.yAxis.reversed,e.yAxis[0]&&e.yAxis[0].reversed,!1),zoomEnabled:!1},e.inverted?{width:c}:{height:c}),"yAxis"),f||s.series.data?p.updateNavigatorSeries(!1):0===e.series.length&&(p.unbindRedraw=u(e,"beforeRedraw",function(){e.series.length>0&&!p.series&&(p.setBaseSeries(),p.unbindRedraw())})),p.reversedExtremes=e.inverted&&!p.xAxis.reversed||!e.inverted&&p.xAxis.reversed,p.renderElements(),p.addMouseEvents()}else p.xAxis={chart:e,navigatorAxis:{fake:!0},translate:function(t,i){let s=e.xAxis[0],n=s.getExtremes(),r=s.len-2*d,o=M("min",s.options.min,n.dataMin),a=M("max",s.options.max,n.dataMax)-o;return i?t*a/r+o:r*(t-o)/a},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},p.xAxis.navigatorAxis.axis=p.xAxis,p.xAxis.navigatorAxis.toFixedRange=n.prototype.toFixedRange.bind(p.xAxis.navigatorAxis);if(e.options.scrollbar.enabled){let t=k(e.options.scrollbar,{vertical:e.inverted});!S(t.margin)&&p.navigatorEnabled&&(t.margin=e.inverted?-3:3),e.scrollbar=p.scrollbar=new o(e.renderer,t,e),u(p.scrollbar,"changed",function(t){let e=p.size,i=e*this.to,s=e*this.from;p.hasDragged=p.scrollbar.hasDragged,p.render(0,0,s,i),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){p.onMouseUp(t)})})}p.addBaseSeriesEvents(),p.addChartEvents()}setOpposite(){let t=this.navigatorOptions,e=this.navigatorEnabled,i=this.chart;this.opposite=C(t.opposite,!(e||!i.inverted))}getUnionExtremes(t){let e,i=this.chart.xAxis[0],s=this.xAxis,n=s.options,r=i.options;return t&&null===i.dataMin||(e={dataMin:C(n&&n.min,M("min",r.min,i.dataMin,s.dataMin,s.min)),dataMax:C(n&&n.max,M("max",r.max,i.dataMax,s.dataMax,s.max))}),e}setBaseSeries(t,e){let i=this.chart,s=this.baseSeries=[];t=t||i.options&&i.options.navigator.baseSeries||(i.series.length?y(i.series,t=>!t.options.isInternal).index:0),(i.series||[]).forEach((e,i)=>{!e.options.isInternal&&(e.options.showInNavigator||(i===t||e.options.id===t)&&!1!==e.options.showInNavigator)&&s.push(e)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,e)}updateNavigatorSeries(t,e){let i,s,n,r=this,o=r.chart,a=r.baseSeries,l={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:this.navigatorOptions.xAxis?.id,yAxis:this.navigatorOptions.yAxis?.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},h=r.series=(r.series||[]).filter(t=>{let e=t.baseSeries;return!(0>a.indexOf(e)&&(e&&(A(e,"updatedData",r.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),1))}),d=r.navigatorOptions.series;a&&a.length&&a.forEach(t=>{let u=t.navigatorSeries,p=b({color:t.color,visible:t.visible},w(d)?c.navigator.series:d);if(u&&!1===r.navigatorOptions.adaptToUpdatedData)return;l.name="Navigator "+a.length,n=(i=t.options||{}).navigatorOptions||{},p.dataLabels=E(p.dataLabels),(s=k(i,l,p,n)).pointRange=C(p.pointRange,n.pointRange,c.plotOptions[s.type||"line"].pointRange);let f=n.data||p.data;r.hasNavigatorData=r.hasNavigatorData||!!f,s.data=f||i.data&&i.data.slice(0),u&&u.options?u.update(s,e):(t.navigatorSeries=o.initSeries(s),o.setSortedData(),t.navigatorSeries.baseSeries=t,h.push(t.navigatorSeries))}),(d.data&&!(a&&a.length)||w(d))&&(r.hasNavigatorData=!1,(d=E(d)).forEac
2h((t,e)=>{l.name="Navigator "+(h.length+1),(s=k(c.navigator.series,{color:o.series[e]&&!o.series[e].options.isInternal&&o.series[e].color||o.options.colors[e]||o.options.colors[0]},l,t)).data=t.data,s.data&&(r.hasNavigatorData=!0,h.push(o.initSeries(s)))})),t&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let t=this,e=t.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push(u(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(i=>{i.eventsToUnbind.push(u(i,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),i.eventsToUnbind.push(u(i,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==this.navigatorOptions.adaptToUpdatedData&&i.xAxis&&i.eventsToUnbind.push(u(i,"updatedData",this.updatedDataHandler)),i.eventsToUnbind.push(u(i,"remove",function(){e&&x(e,i),this.navigatorSeries&&(x(t.series,this.navigatorSeries),g(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(t){return this.baseSeries.reduce(function(t,e){return Math.min(t,e.xData&&e.xData.length?e.xData[0]:t)},t)}modifyNavigatorAxisExtremes(){let t=this.xAxis;if(void 0!==t.getExtremes){let e=this.getUnionExtremes(!0);e&&(e.dataMin!==t.min||e.dataMax!==t.max)&&(t.min=e.dataMin,t.max=e.dataMax)}}modifyBaseAxisExtremes(){let t,e,i=this.chart.navigator,s=this.getExtremes(),n=s.min,r=s.max,o=s.dataMin,a=s.dataMax,l=r-n,c=i.stickToMin,h=i.stickToMax,d=C(this.ordinal?.convertOverscroll(this.options.overscroll),0),u=i.series&&i.series[0],p=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(c&&(t=(e=o)+l),h&&(t=a+d,c||(e=Math.max(o,t-l,i.getBaseSeriesMin(u&&u.xData?u.xData[0]:-Number.MAX_VALUE)))),p&&(c||h)&&S(e)&&(this.min=this.userMin=e,this.max=this.userMax=t)),i.stickToMin=i.stickToMax=null}updatedDataHandler(){let t=this.chart.navigator,e=this.navigatorSeries,i=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size);t.stickToMax=C(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,i),t.stickToMin=t.shouldStickToMin(this,t),e&&!t.hasNavigatorData&&(e.options.pointStart=this.xData[0],e.setData(this.options.data,!1,null,!1))}shouldStickToMin(t,e){let i=e.getBaseSeriesMin(t.xData[0]),s=t.xAxis,n=s.max,r=s.min,o=s.options.range;return!(!S(n)||!S(r))&&(o&&n-i>0?n-i<o:r<=i)}addChartEvents(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(u(this.chart,"redraw",function(){let t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);e&&t.render(e.min,e.max)}),u(this.chart,"getMargins",function(){let t=this.navigator,e=t.opposite?"plotTop":"marginBottom";this.inverted&&(e=t.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(t.navigatorEnabled||!this.inverted?t.height+t.scrollbarHeight:0)+t.navigatorOptions.margin}),u(T,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))}destroy(){this.removeEvents(),this.xAxis&&(x(this.chart.xAxis,this.xAxis),x(this.chart.axes,this.xAxis)),this.yAxis&&(x(this.chart.yAxis,this.yAxis),x(this.chart.axes,this.yAxis)),(this.series||[]).forEach(t=>{t.destroy&&t.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(t=>{this[t]&&this[t].destroy&&this[t].destroy(),this[t]=null}),[this.handles].forEach(t=>{m(t)}),this.navigatorEnabled=!1}}return T}),i(e,"Accessibility/Components/NavigatorComponent.js",[e["Accessibility/AccessibilityComponent.js"],e["Accessibility/Utils/Announcer.js"],e["Accessibility/KeyboardNavigationHandler.js"],e["Stock/Navigator/Navigator.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Templating.js"],e["Core/Utilities.js"],e["Accessibility/Utils/HTMLUtilities.js"],e["Accessibility/Utils/ChartUtilities.js"]],function(t,e,i,s,n,r,o,a,l){let{animObject:c}=n,{format:h}=r,{clamp:d,pick:u,syncTimeout:p}=o,{getFakeMouseEvent:f}=a,{getAxisRangeDescription:g,fireEventOnWrappedOrUnwrappedElement:m}=l;return class extends t{init(){let t=this.chart,i=this;
vendor: 5,460 bytes, line 2
2this.announcer=new e(t,"polite"),this.addEvent(s,"afterRender",function(){this.chart===i.chart&&this.chart.renderer&&p(()=>{i.proxyProvider.updateGroupProxyElementPositions("navigator"),i.updateHandleValues()},c(u(this.chart.renderer.globalAnimation,!0)).duration)})}onChartUpdate(){let t=this.chart,e=t.options,i=e.navigator;if(i.enabled&&i.accessibility?.enabled){let i=e.accessibility.landmarkVerbosity,s=e.lang.accessibility?.navigator.groupLabel;this.proxyProvider.removeGroup("navigator"),this.proxyProvider.addGroup("navigator","div",{role:"all"===i?"region":"group","aria-label":h(s,{chart:t},t)});let n=e.lang.accessibility?.navigator.handleLabel;[0,1].forEach(e=>{let i=this.getHandleByIx(e);if(i){let s=this.proxyProvider.addProxyElement("navigator",{click:i},"input",{type:"range","aria-label":h(n,{handleIx:e,chart:t},t)});this[e?"maxHandleProxy":"minHandleProxy"]=s.innerElement,s.innerElement.style.pointerEvents="none",s.innerElement.oninput=()=>this.updateNavigator()}}),this.updateHandleValues()}else this.proxyProvider.removeGroup("navigator")}getNavigatorHandleNavigation(t){let e=this,s=this.chart,n=t?this.maxHandleProxy:this.minHandleProxy,r=this.keyCodes;return new i(s,{keyCodeMap:[[[r.left,r.right,r.up,r.down],function(i){if(n){let o=i===r.left||i===r.up?-1:1;n.value=""+d(parseFloat(n.value)+o,0,100),e.updateNavigator(()=>{let i=e.getHandleByIx(t);i&&s.setFocusToElement(i,n)})}return this.response.success}]],init:()=>{s.setFocusToElement(this.getHandleByIx(t),n)},validate:()=>!!(this.getHandleByIx(t)&&n&&s.options.navigator.accessibility?.enabled)})}getKeyboardNavigation(){return[this.getNavigatorHandleNavigation(0),this.getNavigatorHandleNavigation(1)]}destroy(){this.updateNavigatorThrottleTimer&&clearTimeout(this.updateNavigatorThrottleTimer),this.proxyProvider.removeGroup("navigator"),this.announcer&&this.announcer.destroy()}updateHandleValues(){let t=this.chart.navigator;if(t&&this.minHandleProxy&&this.maxHandleProxy){let e=t.size;this.minHandleProxy.value=""+Math.round(t.zoomedMin/e*100),this.maxHandleProxy.value=""+Math.round(t.zoomedMax/e*100)}}getHandleByIx(t){let e=this.chart.navigator;return e&&e.handles&&e.handles[t]}updateNavigator(t){this.updateNavigatorThrottleTimer&&clearTimeout(this.updateNavigatorThrottleTimer),this.updateNavigatorThrottleTimer=setTimeout((t=>{let e=this.chart,{navigator:i,pointer:s}=e;if(i&&s&&this.minHandleProxy&&this.maxHandleProxy){let n=s.getChartPosition(),r=parseFloat(this.minHandleProxy.value)/100*i.size,o=parseFloat(this.maxHandleProxy.value)/100*i.size;[[0,"mousedown",i.zoomedMin],[0,"mousemove",r],[0,"mouseup",r],[1,"mousedown",i.zoomedMax],[1,"mousemove",o],[1,"mouseup",o]].forEach(([t,e,s])=>{let r=this.getHandleByIx(t)?.element;r&&m(r,f(e,{x:n.left+i.left+s,y:n.top+i.top},r))}),t&&t();let a=e.options.lang.accessibility?.navigator.changeAnnouncement,l=g(e.xAxis[0]);this.announcer.announce(h(a,{axisRangeDescription:l,chart:e},e))}}).bind(this,t),20)}}}),i(e,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[e["Accessibility/Components/AnnotationsA11y.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Core/Templating.js"],e["Accessibility/Utils/HTMLUtilities.js"],e["Core/Utilities.js"]],function(t,e,i,s,n){let{getPointAnnotationTexts:r}=t,{getAxisDescription:o,getSeriesFirstPointElement:a,getSeriesA11yElement:l,unhideChartElementFromAT:c}=e,{format:h,numberFormat:d}=i,{reverseChildNodes:u,stripHTMLTagsFromString:p}=s,{find:f,isNumber:g,isString:m,pick:x,defined:b}=n;function y(t){let e=t.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(!1!==e&&t.points&&t.points.length>=+e)}function v(t,e){let i=t.series,s=i.chart,n=s.options.accessibility.point||{},r=i.options.accessibility&&i.options.accessibility.point||{},o=i.tooltipOptions||{},a=s.options.lang;return g(e)?d(e,r.valueDecimals||n.valueDecimals||o.valueDecimals||-1,a.decimalPoint,a.accessibility.thousandsSep||a.thousandsSep):e}function w(t,e){let i=t[e];return t.chart.langFormat("accessibility.series."+e+"Description",{name:o(i),series:t})}function S(t){let e=t.series,i=e.chart.series.length>1||e.options.name,s=function(t){let e=t.series,i=e.chart,s=e.options.accessibility,n=s&&s.point&&s.point.valueDescriptionFormat||i.options.accessibility.point.valueDescriptionFormat,r=x(e.xAxis&&e.xAxis.options.accessibility&&e.xAxis.options.accessibility.enabled,!i.angular&&"flowmap"!==e.type),o=r?function(t){let e=function(t){let e=t.series,i=e.chart,s=e.options.accessibility&&e.options.accessibility.point||{},n=i.options.accessibility.point||{},r=e.xAxis&&e.xAxis.dateTime;if(r){let e=r.getXDateFormat(t.x||0,i.options.tooltip.dateTimeLabelFormats),o=s.dateFormatter&&s.dateFormatter(t)||n.dateFormatter&&n.dateFormatter(t)||s.dateFormat||n.dateFormat||e;return i.time.dateFormat(o,t.x||0,void 0)}}(t),i=(t.series.xAxis||{}).categories&&b(t.category)&&(""+t.category).replace("<br/>"," "),s=b(t.id)&&0>(""+t.id).indexOf("highcharts-"),n="x, "+t.x;return t.name||e||i||(s?t.id:n)}(t):"";return h(n,{point:t,index:b(t.index)?t.index+1:"",xDescription:o,value:function(t){let e=t.series,i=e.chart.options.accessibility.point||{},s=e.chart.options.accessibility&&e.chart.options.accessibility.point||{},n=e.tooltipOptions||{},r=s.valuePrefix||i.valuePrefix||n.valuePrefix||"",o=s.valueSuffix||i.valueSuffix||n.valueSuffix||"",a=v(t,t[void 0!==t.value?"value":"y"]);return t.isNull?e.chart.langFormat("accessibility.series.nullPointValue",{point:t}
2):e.pointArrayMap?function(t,e,i){let s=e||"",n=i||"",r=function(e){let i=v(t,x(t[e],t.options[e]));return void 0!==i?e+": "+s+i+n:i};return t.series.pointArrayMap.reduce(function(t,e){let i=r(e);return i?t+(t.length?", ":"")+i:t},"")}(t,r,o):r+a+o}(t),separator:r?", ":""},i)}(t),n=t.options&&t.options.accessibility&&t.options.accessibility.description,o=i?" "+e.name+".":"",a=function(t){let e=t.series.chart,i=r(t);return i.length?e.langFormat("accessibility.series.pointAnnotationsDescription",{point:t,annotations:i}):""}(t);return t.accessibility=t.accessibility||{},t.accessibility.valueDescription=s,s+(n?" "+n:"")+o+(a?" "+a:"")}function k(t){let e=t.chart,i=e.types||[],s=function(t){let e=(t.options.accessibility||{}).description;return e&&t.chart.langFormat("accessibility.series.description",{description:e,series:t})||""}(t),n=function(i){return e[i]&&e[i].length>1&&t[i]},r=t.index+1,o=w(t,"xAxis"),a=w(t,"yAxis"),l={seriesNumber:r,series:t,chart:e},c=i.length>1?"Combination":"",d=e.langFormat("accessibility.series.summary."+t.type+c,l)||e.langFormat("accessibility.series.summary.default"+c,l),u=(n("yAxis")?" "+a+".":"")+(n("xAxis")?" "+o+".":"");return h(x(t.options.accessibility&&t.options.accessibility.descriptionFormat,e.options.accessibility.series.descriptionFormat,""),{seriesDescription:d,authorDescription:s?" "+s:"",axisDescription:u,series:t,chart:e,seriesNumber:r},void 0)}return{defaultPointDescriptionFormatter:S,defaultSeriesDescriptionFormatter:k,describeSeries:function(t){let e=t.chart,i=a(t),s=l(t),n=e.is3d&&e.is3d();s&&(s.lastChild!==i||n||u(s),function(t){let e=function(t){let e=t.options.accessibility||{};return!y(t)&&!e.exposeAsGroupOnly}(t),i=function(t){let e=t.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!(!t.points||!(t.points.length<+e.pointNavigationEnabledThreshold||!1===e.pointNavigationEnabledThreshold))}(t),s=t.chart.options.accessibility.point.describeNull;(e||i)&&t.points.forEach(i=>{let n=i.graphic&&i.graphic.element||function(t){let e=t.series,i=e&&e.chart,s=e&&e.is("sunburst"),n=t.isNull,r=i&&i.options.accessibility.point.describeNull;return n&&!s&&r}(i)&&function(t){let e=t.series,i=function(t){let e=t.index;return t.series&&t.series.data&&b(e)&&f(t.series.data,function(t){return!!(t&&void 0!==t.index&&t.index>e&&t.graphic&&t.graphic.element)})||null}(t),s=i&&i.graphic,n=s?s.parentGroup:e.graph||e.group,r=function(t,e){let i=t.series.chart.renderer.rect(e.x,e.y,1,1);return i.attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),i}(t,i?{x:x(t.plotX,i.plotX,0),y:x(t.plotY,i.plotY,0)}:{x:x(t.plotX,0),y:x(t.plotY,0)});if(n&&n.element)return t.graphic=r,t.hasMockGraphic=!0,r.add(n),n.element.insertBefore(r.element,s?s.element:null),r.element}(i),r=i.options&&i.options.accessibility&&!1===i.options.accessibility.enabled;if(n){if(i.isNull&&!s)return void n.setAttribute("aria-hidden",!0);n.setAttribute("tabindex","-1"),t.chart.styledMode||(n.style.outline="none"),e&&!r?function(t,e){let i=t.series,s=i.options.accessibility?.point||{},n=i.chart.options.accessibility.point||{},r=p(m(s.descriptionFormat)&&h(s.descriptionFormat,t,i.chart)||s.descriptionFormatter?.(t)||m(n.descriptionFormat)&&h(n.descriptionFormat,t,i.chart)||n.descriptionFormatter?.(t)||S(t),i.chart.renderer.forExport);e.setAttribute("role","img"),e.setAttribute("aria-label",r)}(i,n):n.setAttribute("aria-hidden",!0)}})}(t),c(e,s),function(t){let e=t.chart,i=e.options.chart,s=i.options3d&&i.options3d.enabled,n=e.series.length>1,r=e.options.accessibility.series.describeSingleSeries,o=(t.options.accessibility||{}).exposeAsGroupOnly;return!(s&&n)&&(n||r||o||y(t))}(t)?function(t,e){let i=t.options.accessibility||{},s=t.chart.options.accessibility,n=s.landmarkVerbosity;i.exposeAsGroupOnly?e.setAttribute("role","img"):"all"===n?e.setAttribute("role","region"):e.setAttribute("role","group"),e.setAttribute("tabindex","-1"),t.chart.styledMode||(e.style.outline="none"),e.setAttribute("aria-label",p(s.series.descriptionFormatter&&s.series.descriptionFormatter(t)||k(t),t.chart.renderer.forExport))}(t,s):s.removeAttribute("aria-label"))}}}),i(e,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Accessibility/Utils/Announcer.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Utils/EventProvider.js"],e["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(t,e,
2i,s,n,r){let{composed:o}=t,{addEvent:a,defined:l,pushUnique:c}=e,{getChartTitle:h}=s,{defaultPointDescriptionFormatter:d,defaultSeriesDescriptionFormatter:u}=r;function p(t){return!!t.options.accessibility.announceNewData.enabled}class f{constructor(t){this.dirty={allSeries:{}},this.lastAnnouncementTime=0,this.chart=t}init(){let t=this.chart,e=t.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new n,this.announcer=new i(t,e),this.addEventListeners()}destroy(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()}addEventListeners(){let t=this,e=this.chart,i=this.eventProvider;i.addEvent(e,"afterApplyDrilldown",function(){t.lastAnnouncementTime=0}),i.addEvent(e,"afterAddSeries",function(e){t.onSeriesAdded(e.series)}),i.addEvent(e,"redraw",function(){t.announceDirtyData()})}onSeriesAdded(t){p(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[t.name+t.index]=t,this.dirty.newSeries=l(this.dirty.newSeries)?void 0:t)}announceDirtyData(){let t=this.chart,e=this;if(t.options.accessibility.announceNewData&&this.dirty.hasDirty){let t=this.dirty.newPoint;t&&(t=function(t){let e=t.series.data.filter(e=>t.x===e.x&&t.y===e.y);return 1===e.length?e[0]:t}(t)),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(t=>e.dirty.allSeries[t]),this.dirty.newSeries,t),this.dirty={allSeries:{}}}}queueAnnouncement(t,e,i){let s=this.chart.options.accessibility.announceNewData;if(s.enabled){let n=+new Date,r=n-this.lastAnnouncementTime,o=Math.max(0,s.minAnnounceInterval-r),a=function(t,e){let i=(t||[]).concat(e||[]).reduce((t,e)=>(t[e.name+e.index]=e,t),{});return Object.keys(i).map(t=>i[t])}(this.queuedAnnouncement&&this.queuedAnnouncement.series,t),l=this.buildAnnouncementMessage(a,e,i);l&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:n,message:l,series:a},this.queuedAnnouncementTimer=setTimeout(()=>{this&&this.announcer&&(this.lastAnnouncementTime=+new Date,this.announcer.announce(this.queuedAnnouncement.message),delete this.queuedAnnouncement,delete this.queuedAnnouncementTimer)},o))}}buildAnnouncementMessage(e,i,s){let n=this.chart,r=n.options.accessibility.announceNewData;if(r.announcementFormatter){let t=r.announcementFormatter(e,i,s);if(!1!==t)return t.length?t:null}let o=t.charts&&t.charts.length>1?"Multiple":"Single",a=i?"newSeriesAnnounce"+o:s?"newPointAnnounce"+o:"newDataAnnounce",l=h(n);return n.langFormat("accessibility.announceNewData."+a,{chartTitle:l,seriesDesc:i?u(i):null,pointDesc:s?d(s):null,point:s,series:i})}}return function(t){function e(t){let e=this.chart,i=e.accessibility?.components.series.newDataAnnouncer;i&&i.chart===e&&p(e)&&(i.dirty.newPoint=l(i.dirty.newPoint)?void 0:t.point)}function i(){let t=this.chart,e=t.accessibility?.components.series.newDataAnnouncer;e&&e.chart===t&&p(t)&&(e.dirty.hasDirty=!0,e.dirty.allSeries[this.name+this.index]=this)}t.compose=function(t){c(o,"A11y.NDA")&&(a(t,"addPoint",e),a(t,"updatedData",i))}}(f||(f={})),f}),i(e,"Accessibility/ProxyElement.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Accessibility/Utils/EventProvider.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Utils/HTMLUtilities.js"]],function(t,e,i,s,n){let{doc:r}=t,{attr:o,css:a,merge:l}=e,{fireEventOnWrappedOrUnwrappedElement:c}=s,{cloneMouseEvent:h,cloneTouchEvent:d,getFakeMouseEvent:u,removeElement:p}=n;return class{constructor(t,e,s="button",n,o){this.chart=t,this.target=e,this.eventProvider=new i;let a=this.innerElement=r.createElement(s),l=this.element=n?r.createElement(n):a;t.styledMode||this.hideElementVisually(a),n&&("li"!==n||t.styledMode||(l.style.listStyle="none"),l.appendChild(a),this.element=l),this.updateTarget(e,o)}click(){let t=this.getTargetPosition();t.x+=t.width/2,t.y+=t.height/2;let e=u("click",t);c(this.target.click,e)}updateTarget(t,e){this.target=t,this.updateCSSClassName();let i=e||{};
2Object.keys(i).forEach(t=>{null===i[t]&&delete i[t]});let s=this.getTargetAttr(t.click,"aria-label");o(this.innerElement,l(s?{"aria-label":s}:{},i)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToElement(this.innerElement,t.click),this.refreshPosition()}refreshPosition(){let t=this.getTargetPosition();a(this.innerElement,{width:(t.width||1)+"px",height:(t.height||1)+"px",left:(Math.round(t.x)||0)+"px",top:(Math.round(t.y)||0)+"px"})}remove(){this.eventProvider.removeAddedEvents(),p(this.element)}updateCSSClassName(){let t=t=>t.indexOf("highcharts-no-tooltip")>-1,e=this.chart.legend,i=e.group&&e.group.div,s=t(i&&i.className||""),n=t(this.getTargetAttr(this.target.click,"class")||"");this.innerElement.className=s||n?"highcharts-a11y-proxy-element highcharts-no-tooltip":"highcharts-a11y-proxy-element"}addProxyEventsToElement(t,e){["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(i=>{let s=0===i.indexOf("touch");this.eventProvider.addEvent(t,i,t=>{let i=s?d(t):h(t);e&&c(e,i),t.stopPropagation(),s||t.preventDefault()},{passive:!1})})}hideElementVisually(t){a(t,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})}getTargetPosition(){let t=this.target.click,e=t.element?t.element:t,i=this.target.visual||e,s=this.chart.renderTo,n=this.chart.pointer;if(s&&i?.getBoundingClientRect&&n){let t=i.getBoundingClientRect(),e=n.getChartPosition();return{x:(t.left-e.left)/e.scaleX,y:(t.top-e.top)/e.scaleY,width:t.right/e.scaleX-t.left/e.scaleX,height:t.bottom/e.scaleY-t.top/e.scaleY}}return{x:0,y:0,width:1,height:1}}getTargetAttr(t,e){return t.element?t.element.getAttribute(e):t.getAttribute(e)}}}),i(e,"Accessibility/ProxyProvider.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Utils/DOMElementProvider.js"],e["Accessibility/Utils/HTMLUtilities.js"],e["Accessibility/ProxyElement.js"]],function(t,e,i,s,n,r){let{doc:o}=t,{attr:a,css:l}=e,{unhideChartElementFromAT:c}=i,{removeChildNodes:h}=n;return class{constructor(t){this.chart=t,this.domElementProvider=new s,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}addProxyElement(t,e,i="button",s){let n=this.groups[t];if(!n)throw Error("ProxyProvider.addProxyElement: Invalid group key "+t);let o="ul"===n.type||"ol"===n.type?"li":void 0,a=new r(this.chart,e,i,o,s);return n.proxyContainerElement.appendChild(a.element),n.proxyElements.push(a),a}addGroup(t,e="div",i){let s,n=this.groups[t];if(n)return n.groupElement;let r=this.domElementProvider.createElement(e);return i&&i.role&&"div"!==e?(s=this.domElementProvider.createElement("div")).appendChild(r):s=r,s.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+t.replace(/\W/g,"-"),this.groups[t]={proxyContainerElement:r,groupElement:s,type:e,proxyElements:[]},a(s,i||{}),"ul"===e&&r.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(s),this.updateGroupOrder(this.groupOrder),s}updateGroupAttrs(t,e){let i=this.groups[t];if(!i)throw Error("ProxyProvider.updateGroupAttrs: Invalid group key "+t);a(i.groupElement,e)}updateGroupOrder(t){if(this.groupOrder=t.slice(),this.isDOMOrderGroupOrder())return;let e=t.indexOf("series"),i=e>-1?t.slice(0,e):t,s=e>-1?t.slice(e+1):[],n=o.activeElement;["before","after"].forEach(t=>{let e=this["before"===t?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"];
vendor: 8,036 bytes, line 2
2h(e),("before"===t?i:s).forEach(t=>{let i=this.groups[t];i&&e.appendChild(i.groupElement)})}),(this.beforeChartProxyPosContainer.contains(n)||this.afterChartProxyPosContainer.contains(n))&&n&&n.focus&&n.focus()}clearGroup(t){let e=this.groups[t];if(!e)throw Error("ProxyProvider.clearGroup: Invalid group key "+t);h(e.proxyContainerElement)}removeGroup(t){let e=this.groups[t];e&&(this.domElementProvider.removeElement(e.groupElement),e.groupElement!==e.proxyContainerElement&&this.domElementProvider.removeElement(e.proxyContainerElement),delete this.groups[t])}update(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()}updateProxyElementPositions(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))}updateGroupProxyElementPositions(t){let e=this.groups[t];e&&e.proxyElements.forEach(t=>t.refreshPosition())}destroy(){this.domElementProvider.destroyCreatedElements()}createProxyPosContainer(t){let e=this.domElementProvider.createElement("div");return e.setAttribute("aria-hidden","false"),e.className="highcharts-a11y-proxy-container"+(t?"-"+t:""),l(e,{top:"0",left:"0"}),this.chart.styledMode||(e.style.whiteSpace="nowrap",e.style.position="absolute"),e}getCurrentGroupOrderInDOM(){let t=t=>{let e=Object.keys(this.groups),i=e.length;for(;i--;){let s=e[i],n=this.groups[s];if(n&&t===n.groupElement)return s}},e=e=>{let i=[],s=e.children;for(let e=0;e<s.length;++e){let n=t(s[e]);n&&i.push(n)}return i},i=e(this.beforeChartProxyPosContainer),s=e(this.afterChartProxyPosContainer);return i.push("series"),i.concat(s)}isDOMOrderGroupOrder(){let t=this.getCurrentGroupOrderInDOM(),e=this.groupOrder.filter(t=>"series"===t||!!this.groups[t]),i=t.length;if(i!==e.length)return!1;for(;i--;)if(t[i]!==e[i])return!1;return!0}updatePosContainerPositions(){let t=this.chart;if(t.renderer.forExport)return;let e=t.renderer.box;t.container.insertBefore(this.afterChartProxyPosContainer,e.nextSibling),t.container.insertBefore(this.beforeChartProxyPosContainer,e),c(this.chart,this.afterChartProxyPosContainer),c(this.chart,this.beforeChartProxyPosContainer)}}}),i(e,"Accessibility/Components/RangeSelectorComponent.js",[e["Accessibility/AccessibilityComponent.js"],e["Accessibility/Utils/Announcer.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/KeyboardNavigationHandler.js"],e["Core/Utilities.js"]],function(t,e,i,s,n){let{unhideChartElementFromAT:r,getAxisRangeDescription:o}=i,{addEvent:a,attr:l}=n;class c extends t{init(){let t=this.chart;this.announcer=new e(t,"polite")}onChartUpdate(){let t=this.chart,e=this,i=t.rangeSelector;i&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),i.buttons&&i.buttons.length&&i.buttons.forEach(t=>{e.setRangeButtonAttrs(t)}),i.maxInput&&i.minInput&&["minInput","maxInput"].forEach(function(s,n){let o=i[s];o&&(r(t,o),e.setRangeInputAttrs(o,"accessibility.rangeSelector."+(n?"max":"min")+"InputLabel"))}))}updateSelectorVisibility(){let t=this.chart,e=t.rangeSelector,i=e&&e.dropdown,s=e&&e.buttons||[],n=t=>t.setAttribute("aria-hidden",!0);e&&e.hasVisibleDropdown&&i?(r(t,i),s.forEach(t=>n(t.element))):(i&&n(i),s.forEach(e=>r(t,e.element)))}setDropdownAttrs(){let t=this.chart,e=t.rangeSelector&&t.rangeSelector.dropdown;if(e){let i=t.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:t.options.lang.rangeSelectorZoom});e.setAttribute("aria-label",i),e.setAttribute("tabindex",-1)}}setRangeButtonAttrs(t){l(t.element,{tabindex:-1,role:"button"})}setRangeInputAttrs(t,e){let i=this.chart;l(t,{tabindex:-1,"aria-label":i.langFormat(e,{chart:i})})}onButtonNavKbdArrowKey(t,e){let i=t.response,s=this.keyCodes,n=this.chart,r=n.options.accessibility.keyboardNavigation.wrapAround,o=e===s.left||e===s.up?-1:1;return n.highlightRangeSelectorButton(n.highlightedRangeSelectorItemIx+o)?i.success:r?(t.init(o),i.success):i[o>0?"next":"prev"]}onButtonNavKbdClick(t){let e=t.response,i=this.chart;return 3!==i.oldRangeSelectorItemState&&this.fakeClickEvent(i.rangeSelector.buttons[i.highlightedRangeSelectorItemIx].element),e.success}onAfterBtnClick(){let t=this.chart,e=o(t.xAxis[0]),i=t.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:t,axisRangeDescription:e});i&&this.announcer.announce(i)}onInputKbdMove(t){let e=this.chart,i=e.rangeSelector,s=e.highlightedInputRangeIx=(e.highlightedInputRangeIx||0)+t;if(s>1||s<0){if(e.accessibility)return e.accessibility.keyboardNavigation.exiting=!0,e.accessibility.keyboardNavigation.tabindexContainer.focus(),e.accessibility.keyboardNavigation.move(t)}else if(i){let t=i[s?"maxDateBox":"minDateBox"],n=i[s?"maxInput":"minInput"];t&&n&&e.setFocusToElement(t,n)}return!0}onInputNavInit(t){let e=this,i=this.chart,s=t>0?0:1,n=i.rangeSelector,r=n&&n[s?"maxDateBox":"minDateBox"],o=n&&n.minInput,l=n&&n.maxInput;if(i.highlightedInputRangeIx=s,r&&o&&l){i.setFocusToElement(r,s?l:o),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();let t=t=>{(t.which||t.keyCode)===this.keyCodes.tab&&e.onInputKbdMove(t.shiftKey?-1:1)&&(t.preventDefault(),t.stopPropagation())},n=a(o,"keydown",t),c=a(l,"keydown",t);this.removeInputKeydownHandler=()=>{n(),c()}}}onInputNavTerminate(){let t=this.chart.rangeSelector||{};t.maxInput&&t.hideInput("max"),t.minInput&&t.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)}initDropdownNav(){let t=this.chart,e=t.rangeSelector,i=e&&e.dropdown;e&&i&&(t.setFocusToElement(e.buttonGroup,i),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=a(i,"keydown",e=>{let i=(e.which||e.keyCode)===this.keyCodes.tab,s=t.accessibility;i&&(e.preventDefault(),e.stopPropagation(),s&&(s.keyboardNavigation.tabindexContainer.focus(),s.keyboardNavigation.move(e.shiftKey?-1:1)))}))}getRangeSelectorButtonNavigation(){let t=this.chart,e=this.keyCodes,i=this;return new s(t,{keyCodeMap:[[[e.left,e.right,e.up,e.down],function(t){return i.onButtonNavKbdArrowKey(this,t)}],[[e.enter,e.space],function(){return i.onButtonNavKbdClick(this)}]],validate:function(){return!!(t.rangeSelector&&t.rangeSelector.buttons&&t.rangeSelector.buttons.length)},init:function(e){let s=t.rangeSelector;if(s&&s.hasVisibleDropdown)i.initDropdownNav();else if(s){let i=s.buttons.length-1;t.highlightRangeSelectorButton(e>0?0:i)}},terminate:function(){i.removeDropdownKeydownHandler&&(i.removeDropdownKeydownHandler(),delete i.removeDropdownKeydownHandler)}})}getRangeSelectorInputNavigation(){let t=this.chart,e=this;return new s(t,{keyCodeMap:[],validate:function(){return!!(t.rangeSelector&&t.rangeSelector.inputGroup&&"hidden"!==t.rangeSelector.inputGroup.element.style.visibility&&!1!==t.options.rangeSelector.inputEnabled&&t.rangeSelector.minInput&&t.rangeSelector.maxInput)},init:function(t){e.onInputNavInit(t)},terminate:function(){e.onInputNavTerminate()}})}getKeyboardNavigation(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]}destroy(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()}}return function(t){function e(t){let e=this.rangeSelector&&this.rangeSelector.buttons||[],i=this.highlightedRangeSelectorItemIx,s=this.rangeSelector&&this.rangeSelector.selected;return void 0!==i&&e[i]&&i!==s&&e[i].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=t,!!e[t]&&(this.setFocusToElement(e[t].box,e[t].element),t!==s&&(this.oldRangeSelectorItemState=e[t].state,e[t].setState(1)),!0)}function i(){let t=this.chart.accessibility;if(t&&t.components.rangeSelector)return t.components.rangeSelector.onAfterBtnClick()}t.compose=function(t,s){let n=t.prototype;n.highlightRangeSelectorButton||(n.highlightRangeSelectorButton=e,a(s,"afterBtnClick",i))}}(c||(c={})),c}),i(e,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){var i;
2let{composed:s}=t,{addEvent:n,merge:r,pushUnique:o}=e;return function(t){function e(t){r(!0,t,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function i(t){return t.marker.states&&t.marker.states.normal&&t.marker.states.normal.opacity}function a(t){return!!(t._hasPointMarkers&&t.points&&t.points.length)}function l(){this.chart.styledMode&&(this.markerGroup&&this.markerGroup[this.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),a(this)&&this.points.forEach(t=>{t.graphic&&(t.graphic[t.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),t.graphic[!1===t.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function c(t){this.resetA11yMarkerOptions=r(t.options.marker||{},this.userOptions.marker||{})}function h(){let t=this.options;!function(t){let e=t.chart.options.accessibility.enabled,i=!1!==(t.options.accessibility&&t.options.accessibility.enabled);return e&&i&&function(t){let e=t.chart.options.accessibility;return t.points.length<e.series.pointDescriptionEnabledThreshold||!1===e.series.pointDescriptionEnabledThreshold}(t)}(this)?this.a11yMarkersForced&&(delete this.a11yMarkersForced,function(t){let e=t.resetA11yMarkerOptions;if(e){let i=e.states&&e.states.normal&&e.states.normal.opacity;t.userOptions&&t.userOptions.marker&&(t.userOptions.marker.enabled=!0),t.update({marker:{enabled:e.enabled,states:{normal:{opacity:i}}}})}}(this),delete this.resetA11yMarkerOptions):(t.marker&&!1===t.marker.enabled&&(this.a11yMarkersForced=!0,e(this.options)),a(this)&&function(t){let s=t.points.length;for(;s--;){let n=t.points[s],o=n.options,a=n.hasForcedA11yMarker;if(delete n.hasForcedA11yMarker,o.marker){let t=a&&0===i(o);o.marker.enabled&&!t?(r(!0,o.marker,{states:{normal:{opacity:i(o)||1}}}),n.hasForcedA11yMarker=!1):!1===o.marker.enabled&&(e(o),n.hasForcedA11yMarker=!0)}}}(this))}function d(){this.boosted&&this.a11yMarkersForced&&(r(!0,this.options,{marker:{enabled:!1}}),delete this.a11yMarkersForced)}t.compose=function(t){o(s,"A11y.FM")&&(n(t,"afterSetOptions",c),n(t,"render",h),n(t,"afterRender",l),n(t,"renderCanvas",d))}}(i||(i={})),i}),i(e,"Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js",[e["Core/Series/Point.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Globals.js"],e["Core/Utilities.js"],e["Accessibility/KeyboardNavigationHandler.js"],e["Accessibility/Utils/EventProvider.js"],e["Accessibility/Utils/ChartUtilities.js"]],function(t,e,i,s,n,r,o,a){let{seriesTypes:l}=i,{doc:c}=s,{defined:h,fireEvent:d}=n,{getPointFromXY:u,getSeriesFromName:p,scrollAxisToPoint:f}=a;function g(t){let e=t.index,i=t.series.points,s=i.length;if(i[e]===t)return e;for(;s--;)if(i[s]===t)return s}function m(t){let e=t.chart.options.accessibility.keyboardNavigation.seriesNavigation,i=t.options.accessibility||{},s=i.keyboardNavigation;return s&&!1===s.enabled||!1===i.enabled||!1===t.options.enableMouseTracking||!t.visible||e.pointNavigationEnabledThreshold&&+e.pointNavigationEnabledThreshold<=t.points.length}function x(t){let e=t.series.chart.options.accessibility,i=t.options.accessibility&&!1===t.options.accessibility.enabled;return t.isNull&&e.keyboardNavigation.seriesNavigation.skipNullPoints||!1===t.visible||!1===t.isInside||i||m(t.series)}function b(t){let e=t.series||[],i=e.length;for(let t=0;t<i;++t)if(!m(e[t])){let i=function(t){let e=t.points||[],i=e.length;for(let t=0;t<i;++t)if(!x(e[t]))return e[t];return null}(e[t]);if(i)return i}return null}function y(t){let e=t.series.length,i=!1;for(;e--&&(t.highlightedPoint=t.series[e].points[t.series[e].points.length-1],!(i=t.series[e].highlightNextValidPoint())););return i}function v(t){delete t.highlightedPoint;let e=b(t);return!!e&&e.highlight()}class w{constructor(t,e){this.keyCodes=e,this.chart=t}init(){let i=this,s=this.chart,n=this.eventProvider=new o;n.addEvent(e,"destroy",function(){return i.onSeriesDestroy(this)}),n.addEvent(s,"afterApplyDrilldown",function(){!function(t){let e=b(t);e&&e.highlight(!1)}(this)}),n.addEvent(s,"drilldown",function(t){let e=t.point,s=e.series;i.lastDrilledDownPoint={x:e.x,y:e.y,seriesName:s?s.name:""}}),n.addEvent(s,"drillupall",function(){setTimeout(function(){i.onDrillupAll()},10)}),n.addEvent(t,"afterSetState",function(){let t=this.graphic&&this.graphic.element,e=c.activeElement,i=e&&e.getAttribute("class"),n=i&&i.indexOf("highcharts-a11y-proxy-element")>-1;
vendor: 9,960 bytes, line 2
2s.highlightedPoint===this&&e!==t&&!n&&t&&t.focus&&t.focus()})}onDrillupAll(){let t,e=this.lastDrilledDownPoint,i=this.chart,s=e&&p(i,e.seriesName);e&&s&&h(e.x)&&h(e.y)&&(t=u(s,e.x,e.y)),t=t||b(i),i.container&&i.container.focus(),t&&t.highlight&&t.highlight(!1)}getKeyboardNavigationHandler(){let t=this,e=this.keyCodes,i=this.chart,s=i.inverted;return new r(i,{keyCodeMap:[[s?[e.up,e.down]:[e.left,e.right],function(e){return t.onKbdSideways(this,e)}],[s?[e.left,e.right]:[e.up,e.down],function(e){return t.onKbdVertical(this,e)}],[[e.enter,e.space],function(t,e){let s=i.highlightedPoint;if(s){let{plotLeft:t,plotTop:i}=this.chart,{plotX:n=0,plotY:r=0}=s;e={...e,chartX:t+n,chartY:i+r,point:s,target:s.graphic?.element||e.target},d(s.series,"click",e),s.firePointEvent("click",e)}return this.response.success}],[[e.home],function(){return v(i),this.response.success}],[[e.end],function(){return y(i),this.response.success}],[[e.pageDown,e.pageUp],function(t){return i.highlightAdjacentSeries(t===e.pageDown),this.response.success}]],init:function(){return t.onHandlerInit(this)},validate:function(){return!!b(i)},terminate:function(){return t.onHandlerTerminate()}})}onKbdSideways(t,e){let i=this.keyCodes,s=e===i.right||e===i.down;return this.attemptHighlightAdjacentPoint(t,s)}onHandlerInit(t){let e=this.chart;return e.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&e.highlightedPoint?e.highlightedPoint.highlight():v(e),t.response.success}onKbdVertical(t,e){let i=this.chart,s=this.keyCodes,n=e===s.down||e===s.right,r=i.options.accessibility.keyboardNavigation.seriesNavigation;return r.mode&&"serialize"===r.mode?this.attemptHighlightAdjacentPoint(t,n):(i[i.highlightedPoint&&i.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries"](n),t.response.success)}onHandlerTerminate(){let t=this.chart,e=t.options.accessibility.keyboardNavigation;t.tooltip&&t.tooltip.hide(0);let i=t.highlightedPoint&&t.highlightedPoint.series;i&&i.onMouseOut&&i.onMouseOut(),t.highlightedPoint&&t.highlightedPoint.onMouseOut&&t.highlightedPoint.onMouseOut(),e.seriesNavigation.rememberPointFocus||delete t.highlightedPoint}attemptHighlightAdjacentPoint(t,e){let i=this.chart,s=i.options.accessibility.keyboardNavigation.wrapAround;return i.highlightAdjacentPoint(e)||s&&(e?v(i):y(i))?t.response.success:t.response[e?"next":"prev"]}onSeriesDestroy(t){let e=this.chart;e.highlightedPoint&&e.highlightedPoint.series===t&&(delete e.highlightedPoint,e.focusElement&&e.focusElement.removeFocusBorder())}destroy(){this.eventProvider.removeAddedEvents()}}return function(t){function e(t){let e,i,s=this.series,n=this.highlightedPoint,r=n&&g(n)||0,o=n&&n.series.points||[],a=this.series&&this.series[this.series.length-1],l=a&&a.points&&a.points[a.points.length-1];if(!s[0]||!s[0].points)return!1;if(n){if(e=s[n.series.index+(t?1:-1)],(i=o[r+(t?1:-1)])||!e||(i=e.points[t?0:e.points.length-1]),!i)return!1}else i=t?s[0].points[0]:l;return x(i)?(m(e=i.series)?this.highlightedPoint=t?e.points[e.points.length-1]:e.points[0]:this.highlightedPoint=i,this.highlightAdjacentPoint(t)):i.highlight()}function i(t){let e,i=this.highlightedPoint,s=1/0;return!(!h(i.plotX)||!h(i.plotY))&&(this.series.forEach(n=>{m(n)||n.points.forEach(r=>{if(!h(r.plotY)||!h(r.plotX)||r===i)return;let o=r.plotY-i.plotY,a=Math.abs(r.plotX-i.plotX),l=Math.abs(o)*Math.abs(o)+a*a*4;n.yAxis&&n.yAxis.reversed&&(o*=-1),!(o<=0&&t||o>=0&&!t||l<5||x(r))&&l<s&&(s=l,e=r)})}),!!e&&e.highlight())}function s(t){let e,i,s,n=this.highlightedPoint,r=this.series&&this.series[this.series.length-1],o=r&&r.points&&r.points[r.points.length-1];return this.highlightedPoint?!(!(e=this.series[n.series.index+(t?-1:1)])||!(i=function(t,e){let i,s,n,r=1/0,o=e.points.length,a=t=>!(h(t.plotX)&&h(t.plotY));if(!a(t)){for(;o--;)!a(i=e.points[o])&&(n=(t.plotX-i.plotX)*(t.plotX-i.plotX)*4+(t.plotY-i.plotY)*(t.plotY-i.plotY)*1)<r&&(r=n,s=o);return h(s)?e.points[s]:void 0}}(n,e)))&&(m(e)?(i.highlight(),(s=this.highlightAdjacentSeries(t))?s:(n.highlight(),!1)):(i.highlight(),i.series.highlightNextValidPoint())):(e=t?this.series&&this.series[0]:r,!!(i=t?e&&e.points&&e.points[0]:o)&&i.highlight())}function n(t=!0){let e=this.series.chart,i=e.tooltip?.label?.element;!this.isNull&&t?this.onMouseOver():e.tooltip&&e.tooltip.hide(0),f(this),this.graphic&&(e.setFocusToElement(this.graphic),!t&&e.focusElement&&e.focusElement.removeFocusBorder()),e.highlightedPoint=this;let s=i?.getBoundingClientRect().top;if(i&&s&&s<0){let t=window.scrollY;window.scrollTo({behavior:"smooth",top:t+s})}return this}function r(){let t=this.chart.highlightedPoint,e=(t&&t.series)===this?g(t):0,i=this.points,s=i.length;if(i&&s){for(let t=e;t<s;++t)if(!x(i[t]))return i[t].highlight();for(let t=e;t>=0;--t)if(!x(i[t]))return i[t].highlight()}return!1}t.compose=function(t,o,a){let c=t.prototype,h=o.prototype,d=a.prototype;c.highlightAdjacentPoint||(c.highlightAdjacentPoint=e,c.highlightAdjacentPointVertical=i,c.highlightAdjacentSeries=s,h.highlight=n,d.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(t=>{l[t]&&(l[t].prototype.keyboardMoveVertical=!1)}),d.highlightNextValidPoint=r)}}(w||(w={})),w}),i(e,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[e["Accessibility/AccessibilityComponent.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],e["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],e["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],e["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"]],function(t,e,i,s,n,r){let{hideSeriesFromAT:o}=e,{describeSeries:a}=n;return class extends t{static compose(t,e,n){s.compose(n),i.compose(n),r.compose(t,e,n)}init(){this.newDataAnnouncer=new s(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new r(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()}hideTooltipFromATWhenShown(){let t=this;this.chart.tooltip&&this.addEvent(this.chart.tooltip.constructor,"refresh",function(){this.chart===t.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})}hideSeriesLabelsFromATWhenShown(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(t){t.labelBySeries&&t.labelBySeries.attr("aria-hidden",!0)})})}onChartRender(){this.chart.series.forEach(function(t){!1!==(t.options.accessibility&&t.options.accessibility.enabled)&&t.visible&&0!==t.getPointsCollection().length?a(t):o(t)})}getKeyboardNavigation(){return this.keyboardNavigation.getKeyboardNavigationHandler()}destroy(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()}}}),i(e,"Accessibility/Components/ZoomComponent.js",[e["Accessibility/AccessibilityComponent.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Utils/HTMLUtilities.js"],e["Accessibility/KeyboardNavigationHandler.js"],e["Core/Utilities.js"]],function(t,e,i,s,n){let{unhideChartElementFromAT:r}=e,{getFakeMouseEvent:o}=i,{attr:a,pick:l}=n;return class extends t{constructor(){super(...arguments),this.focusedMapNavButtonIx=-1}init(){let t=this,e=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(i=>{t.addEvent(e,i,function(){t.updateProxyOverlays()})})}onChartUpdate(){let t=this.chart,e=this;t.mapNavigation&&t.mapNavigation.navButtons.forEach((i,s)=>{r(t,i.element),e.setMapNavButtonAttrs(i.element,"accessibility.zoom.mapZoom"+(s?"Out":"In"))})}setMapNavButtonAttrs(t,e){let i=this.chart;a(t,{tabindex:-1,role:"button","aria-label":i.langFormat(e,{chart:i})})}onChartRender(){this.updateProxyOverlays()}updateProxyOverlays(){let t=this.chart;if(this.proxyProvider.clearGroup("zoom"),t.resetZoomButton&&this.createZoomProxyButton(t.resetZoomButton,"resetZoomProxyButton",t.langFormat("accessibility.zoom.resetZoomButton",{chart:t})),t.drillUpButton&&t.breadcrumbs&&t.breadcrumbs.list){let e=t.breadcrumbs.list[t.breadcrumbs.list.length-1];this.createZoomProxyButton(t.drillUpButton,"drillUpProxyButton",t.langFormat("accessibility.drillUpButton",{chart:t,buttonText:t.breadcrumbs.getButtonText(e)}))}}createZoomProxyButton(t,e,i){this[e]=this.proxyProvider.addProxyElement("zoom",{click:t},"button",{"aria-label":i,tabindex:-1})}getMapZoomNavigation(){let t=this.keyCodes,e=this.chart,i=this;return new s(e,{keyCodeMap:[[[t.up,t.down,t.left,t.right],function(t){return i.onMapKbdArrow(this,t)}],[[t.tab],function(t,e){return i.onMapKbdTab(this,e)}],[[t.space,t.enter],function(){return i.onMapKbdClick(this)}]],validate:function(){return!!(e.mapView&&e.mapNavigation&&e.mapNavigation.navButtons.length)},init:function(t){return i.onMapNavInit(t)}})}onMapKbdArrow(t,e){let i=this.chart,s=this.keyCodes,n=i.container,r=e===s.up||e===s.down,a=e===s.left||e===s.up?1:-1,l=(r?i.plotHeight:i.plotWidth)/10*a,c=10*Math.random(),h={x:n.offsetLeft+i.plotLeft+i.plotWidth/2+c,y:n.offsetTop+i.plotTop+i.plotHeight/2+c},d=r?{x:h.x,y:h.y+l}:{x:h.x+l,y:h.y};return[o("mousedown",h),o("mousemove",d),o("mouseup",d)].forEach(t=>n.dispatchEvent(t)),t.response.success}onMapKbdTab(t,e){let i=this.chart,s=t.response,n=e.shiftKey,r=n&&!this.focusedMapNavButtonIx||!n&&this.focusedMapNavButtonIx;if(i.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),r)return i.mapView&&i.mapView.zoomBy(),s[n?"prev":"next"];this.focusedMapNavButtonIx+=n?-1:1;let o=i.mapNavigation.navButtons[this.focusedMapNavButtonIx];return i.setFocusToElement(o.box,o.element),o.setState(2),s.success}onMapKbdClick(t){let e=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(e),t.response.success}onMapNavInit(t){let e=this.chart,i=e.mapNavigation.navButtons[0],s=e.mapNavigation.navButtons[1],n=t>0?i:s;e.setFocusToElement(n.box,n.element),n.setState(2),this.focusedMapNavButtonIx=t>0?0:1}
2simpleButtonNavigation(t,e,i){let n=this.keyCodes,r=this,o=this.chart;return new s(o,{keyCodeMap:[[[n.tab,n.up,n.down,n.left,n.right],function(t,e){let i=t===n.tab&&e.shiftKey||t===n.left||t===n.up;return this.response[i?"prev":"next"]}],[[n.space,n.enter],function(){return l(i(this,o),this.response.success)}]],validate:function(){return o[t]&&o[t].box&&r[e].innerElement},init:function(){o.setFocusToElement(o[t].box,r[e].innerElement)}})}getKeyboardNavigation(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(t,e){e.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(t,e){return e.drillUp(),t.response.prev}),this.getMapZoomNavigation()]}}}),i(e,"Accessibility/HighContrastMode.js",[e["Core/Globals.js"]],function(t){let{doc:e,isMS:i,win:s}=t;return{isHighContrastModeActive:function(){let t=/(Edg)/.test(s.navigator.userAgent);if(s.matchMedia&&t)return s.matchMedia("(-ms-high-contrast: active)").matches;if(i&&s.getComputedStyle){let t=e.createElement("div");t.style.backgroundImage="url(data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)",e.body.appendChild(t);let i=(t.currentStyle||s.getComputedStyle(t)).backgroundImage;return e.body.removeChild(t),"none"===i}return s.matchMedia&&s.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function(t){t.highContrastModeActive=!0;let e=t.options.accessibility.highContrastTheme;t.update(e,!1);let i=e.colors?.length>1;t.series.forEach(function(t){let s=e.plotOptions[t.type]||{},n=i&&void 0!==t.colorIndex?e.colors[t.colorIndex]:s.color||"window",r={color:s.color||"windowText",colors:i?e.colors:[s.color||"windowText"],borderColor:s.borderColor||"window",fillColor:n};t.update(r,!1),t.points&&t.points.forEach(function(t){t.options&&t.options.color&&t.update({color:s.color||"windowText",borderColor:s.borderColor||"window"},!1)})}),t.redraw()}}}),i(e,"Accessibility/HighContrastTheme.js",[],function(){return{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[],dataClasses:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroun
2dColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}}),i(e,"Accessibility/Options/A11yDefaults.js",[],function(){return{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}</{headingTagName}><div>{typeDescription}</div><div>{chartSubtitle}</div><div>{chartLongdesc}</div><div>{playAsSoundButton}</div><div>{viewTableButton}</div><div>{xAxisDescription}</div><div>{yAxisDescription}</div><div>{annotationsTitle}{annotationsList}</div>",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',highContrastMode:"auto",keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#334eff",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","navigator","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}},navigator:{accessibility:{enabled:!0}}}}),i(e,"Accessibility/Options/LangDefaults.js",[],function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{#each additionalAnnotationPoints}, also related to {this}{/each}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},navigator:{handleLabel:"{#eq handleIx 0}Start, percent{else}End, percent{/eq}",groupLabel:"Axis zoom",changeAnnouncement:"{axisRangeDescription}"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries}
2 data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#eq numPoints 1}box{else}boxes{/eq}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#eq numPoints 1}bubbles{else}bubble{/eq}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{default:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{#each annotations}Annotation: {this}{/each}"}}}}),i(e,"Accessibility/Options/DeprecatedOptions.js",[e["Core/Utilities.js"]],function(t){let{error:e,pick:i}=t;function s(t,e,s){let n,r=t,o=0;for(;o<e.length-1;++o)r=r[n=e[o]]=i(r[n],{});r[e[e.length-1]]=s}function n(t,i,n,r){function o(t,e){return e.reduce(function(t,e){return t[e]},t)}let a=o(t.options,i),l=o(t.options,n);Object.keys(r).forEach(function(o){let c=a[o];void 0!==c&&(s(l,r[o],c),e(32,!1,t,{[i.join(".")+"."+o]:n.join(".")+"."+r[o].join(".")}))})}return function(t){(function(t){let i=t.options.chart,s=t.options.accessibility||{};["description","typeDescription"].forEach(function(n){i[n]&&(s[n]=i[n],e(32,!1,t,{[`chart.${n}`]:`use accessibility.${n}`}))})}
2)(t),function(t){t.axes.forEach(function(i){let s=i.options;s&&s.description&&(s.accessibility=s.accessibility||{},s.accessibility.description=s.description,e(32,!1,t,{"axis.description":"use axis.accessibility.description"}))})}(t),t.series&&function(t){let i={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};t.series.forEach(function(n){Object.keys(i).forEach(function(r){let o=n.options[r];"accessibility.pointDescriptionFormatter"===r&&(o=n.options.accessibility&&n.options.accessibility.pointDescriptionFormatter),void 0!==o&&(s(n.options,i[r],"skipKeyboardNavigation"===r?!o:o),e(32,!1,t,{[`series.${r}`]:"series."+i[r].join(".")}))})})}(t),n(t,["accessibility"],["accessibility"],{pointDateFormat:["point","dateFormat"],pointDateFormatter:["point","dateFormatter"],pointDescriptionFormatter:["point","descriptionFormatter"],pointDescriptionThreshold:["series","pointDescriptionEnabledThreshold"],pointNavigationThreshold:["keyboardNavigation","seriesNavigation","pointNavigationEnabledThreshold"],pointValueDecimals:["point","valueDecimals"],pointValuePrefix:["point","valuePrefix"],pointValueSuffix:["point","valueSuffix"],screenReaderSectionFormatter:["screenReaderSection","beforeChartFormatter"],describeSingleSeries:["series","describeSingleSeries"],seriesDescriptionFormatter:["series","descriptionFormatter"],onTableAnchorClick:["screenReaderSection","onViewDataTableClick"],axisRangeDateFormat:["screenReaderSection","axisRangeDateFormat"]}),n(t,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]}),n(t,["lang","accessibility"],["lang","accessibility"],{legendItem:["legend","legendItem"],legendLabel:["legend","legendLabel"],mapZoomIn:["zoom","mapZoomIn"],mapZoomOut:["zoom","mapZoomOut"],resetZoomButton:["zoom","resetZoomButton"],screenReaderRegionLabel:["screenReaderSection","beforeRegionLabel"],rangeSelectorButton:["rangeSelector","buttonText"],rangeSelectorMaxInput:["rangeSelector","maxInputLabel"],rangeSelectorMinInput:["rangeSelector","minInputLabel"],svgContainerEnd:["screenReaderSection","endOfChartMarker"],viewAsDataTable:["table","viewAsDataTableButtonText"],tableSummary:["table","tableSummary"]})}}),i(e,"Accessibility/Accessibility.js",[e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Utilities.js"],e["Accessibility/Utils/HTMLUtilities.js"],e["Accessibility/A11yI18n.js"],e["Accessibility/Components/ContainerComponent.js"],e["Accessibility/FocusBorder.js"],e["Accessibility/Components/InfoRegionsComponent.js"],e["Accessibility/KeyboardNavigation.js"],e["Accessibility/Components/LegendComponent.js"],e["Accessibility/Components/MenuComponent.js"],e["Accessibility/Components/NavigatorComponent.js"],e["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],e["Accessibility/ProxyProvider.js"],e["Accessibility/Components/RangeSelectorComponent.js"],e["Accessibility/Components/SeriesComponent/SeriesComponent.js"],e["Accessibility/Components/ZoomComponent.js"],e["Accessibility/HighContrastMode.js"],e["Accessibility/HighContrastTheme.js"],e["Accessibility/Options/A11yDefaults.js"],e["Accessibility/Options/LangDefaults.js"],e["Accessibility/Options/DeprecatedOptions.js"]],function(t,e,i,s,n,r,o,a,l,c,h,d,u,p,f,g,m,x,b,y,v,w){let{defaultOptions:S}=t,{doc:k}=e,{addEvent:C,extend:A,fireEvent:E,merge:M}=i,{removeElement:T}=s;class P{constructor(t){this.init(t)}init(t){if(this.chart=t,!k.addEventListener)return this.zombie=!0,this.components={},void t.renderTo.setAttribute("aria-hidden",!0);w(t),this.proxyProvider=new p(this.chart),this.initComponents(),this.keyboardNavigation=new l(t,this.components)}initComponents(){let t=this.chart,e=this.proxyProvider,i=t.options.accessibility;this.components={container:new r,infoRegions:new a,legend:new c,chartMenu:new h,rangeSelector:new f,series:new g,zoom:new m,navigator:new d},i.customComponents&&A(this.components,i.customComponents);let s=this.components;
2this.getComponentOrder().forEach(function(i){s[i].initBase(t,e),s[i].init()})}getComponentOrder(){return this.components?this.components.series?["series"].concat(Object.keys(this.components).filter(t=>"series"!==t)):Object.keys(this.components):[]}update(){let t=this.components,e=this.chart,i=e.options.accessibility;E(e,"beforeA11yUpdate"),e.types=this.getChartTypes();let s=i.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(s),this.getComponentOrder().forEach(function(i){t[i].onChartUpdate(),E(e,"afterA11yComponentUpdate",{name:i,component:t[i]})}),this.keyboardNavigation.update(s),!e.highContrastModeActive&&!1!==i.highContrastMode&&(x.isHighContrastModeActive()||!0===i.highContrastMode)&&x.setHighContrastTheme(e),E(e,"afterA11yUpdate",{accessibility:this})}destroy(){let t=this.chart||{},e=this.components;Object.keys(e).forEach(function(t){e[t].destroy(),e[t].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),t.announcerContainer&&T(t.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),t.renderTo&&t.renderTo.setAttribute("aria-hidden",!0),t.focusElement&&t.focusElement.removeFocusBorder()}getChartTypes(){let t={};return this.chart.series.forEach(function(e){t[e.type]=1}),Object.keys(t)}}return function(t){function e(){this.accessibility&&this.accessibility.destroy()}function i(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());let t=this.accessibility;t&&!t.zombie&&(t.proxyProvider.updateProxyElementPositions(),t.getComponentOrder().forEach(function(e){t.components[e].onChartRender()}))}function s(t){let e=t.options.accessibility;e&&(e.customComponents&&(this.options.accessibility.customComponents=e.customComponents,delete e.customComponents),M(!0,this.options.accessibility,e),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function r(){let e=this.accessibility,i=this.options.accessibility;i&&i.enabled?e&&!e.zombie?e.update():(this.accessibility=e=new t(this),e&&!e.zombie&&e.update()):e?(e.destroy&&e.destroy(),delete this.accessibility):this.renderTo.setAttribute("aria-hidden",!0)}function a(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}t.i18nFormat=n.i18nFormat,t.compose=function(t,d,p,m,x,b){l.compose(t),u.compose(m),c.compose(t,d),h.compose(t),g.compose(t,p,m),n.compose(t),o.compose(t,x),b&&f.compose(t,b);let y=t.prototype;y.updateA11yEnabled||(y.updateA11yEnabled=r,C(t,"destroy",e),C(t,"render",i),C(t,"update",s),["addSeries","init"].forEach(e=>{C(t,e,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(e=>{C(t,e,function(){let t=this.accessibility;t&&!t.zombie&&t.update()})}),C(p,"update",a),["update","updatedData","remove"].forEach(t=>{C(m,t,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}}(P||(P={})),M(!0,S,y,{accessibility:{highContrastTheme:b},lang:v}),P}),i(e,"masters/modules/accessibility.src.js",[e["Core/Globals.js"],e["Accessibility/Accessibility.js"],e["Accessibility/AccessibilityComponent.js"],e["Accessibility/Utils/ChartUtilities.js"],e["Accessibility/Utils/HTMLUtilities.js"],e["Accessibility/KeyboardNavigationHandler.js"],e["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(t,e,i,s,n,r,o){return t.i18nFormat=e.i18nFormat,t.A11yChartUtilities=s,t.A11yHTMLUtilities=n,t.AccessibilityComponent=i,t.KeyboardNavigationHandler=r,t.SeriesAccessibilityDescriber=o,e.compose(t.Chart,t.Legend,t.Point,t.Series,t.SVGElement,t.RangeSelector),t})},t.exports?(r.default=r,t.exports=r):(s=[i(783)],void 0===(n=function(t){return r(t),r.Highcharts=t,r}.apply(e,s))||(t.exports=n))},911(t,e,i){"use strict";i.d(e,{A:()=>r});var s=i(314),n=i.n(s)()(function(t){return t[1]});n.push([t.id,".side-menu{align-items:flex-end;display:flex;left:0;max-width:100%;overflow:hidden;position:fixed}.side-menu,.side-menu__background{height:100%;top:0;width:100%;z-index:10}.side-menu__background{background:#000;opacity:.3;position:absolute}.side-menu__content{height:100%;position:absolute;top:0;width:32rem;z-index:20}.side-menu--right .side-menu__content{right:0}.side-menu--right .v-enter-active,.side-menu--right .v-leave-active{transition:right .3s ease-in-out}.side-menu--right .v-enter-from,.side-menu--right .v-leave-to{right:-100%}.side-menu--left .side-menu__content{left:0}.side-menu--left .v-enter-active,.side-menu--left .v-leave-active{transition:left .3s ease-in-out}.side-menu--left .v-enter-from,.side-menu--left .v-leave-to{left:-100%}",""]);const r=n},953(t,e,i){"use strict";i.d(e,{C4:()=>A,EW:()=>Zt,Gc:()=>wt,IG:()=>Ot,IJ:()=>Bt,KR:()=>Nt,Kh:()=>vt,Pr:()=>Wt,QW:()=>Gt,QZ:()=>w,R1:()=>Ht,Tm:()=>Et,X2:()=>y,bl:()=>E,ds:()=>S,fE:()=>Mt,g8:()=>At,hZ:()=>P,i9:()=>Rt,jr:()=>c,ju:()=>Tt,lW:()=>$t,mu:()=>zt,nD:()=>kt,o5:()=>l,rY:()=>Vt,tB:()=>St,u4:()=>M,uY:()=>o,ux:()=>Pt,yC:()=>r});var s=i(33);let n;
2class r{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=n,!t&&n&&(this.index=(n.scopes||(n.scopes=[])).push(this)-1)}run(t){if(this.active){const e=n;try{return n=this,t()}finally{n=e}}else 0}on(){n=this}off(){n=this.parent}stop(t){if(this.active){let e,i;for(e=0,i=this.effects.length;e<i;e++)this.effects[e].stop();for(e=0,i=this.cleanups.length;e<i;e++)this.cleanups[e]();if(this.scopes)for(e=0,i=this.scopes.length;e<i;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0,this.active=!1}}}function o(t){return new r(t)}function a(t,e=n){e&&e.active&&e.effects.push(t)}function l(){return n}function c(t){n&&n.cleanups.push(t)}const h=t=>{const e=new Set(t);return e.w=0,e.n=0,e},d=t=>(t.w&g)>0,u=t=>(t.n&g)>0,p=new WeakMap;let f=0,g=1;let m;const x=Symbol(""),b=Symbol("");class y{constructor(t,e=null,i){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,a(this,i)}run(){if(!this.active)return this.fn();let t=m,e=k;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=m,m=this,k=!0,g=1<<++f,f<=30?(({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=g})(this):v(this),this.fn()}finally{f<=30&&(t=>{const{deps:e}=t;if(e.length){let i=0;for(let s=0;s<e.length;s++){const n=e[s];d(n)&&!u(n)?n.delete(t):e[i++]=n,n.w&=~g,n.n&=~g}e.length=i}})(this),g=1<<--f,m=this.parent,k=e,this.parent=void 0,this.deferStop&&this.stop()}}stop(){m===this?this.deferStop=!0:this.active&&(v(this),this.onStop&&this.onStop(),this.active=!1)}}function v(t){const{deps:e}=t;if(e.length){for(let i=0;i<e.length;i++)e[i].delete(t);e.length=0}}function w(t,e){t.effect&&(t=t.effect.fn);const i=new y(t);e&&((0,s.X$)(i,e),e.scope&&a(i,e.scope)),e&&e.lazy||i.run();const n=i.run.bind(i);return n.effect=i,n}function S(t){t.effect.stop()}let k=!0;const C=[];function A(){C.push(k),k=!1}function E(){const t=C.pop();k=void 0===t||t}function M(t,e,i){if(k&&m){let e=p.get(t);e||p.set(t,e=new Map);let s=e.get(i);s||e.set(i,s=h());T(s,void 0)}}function T(t,e){let i=!1;f<=30?u(t)||(t.n|=g,i=!d(t)):i=!t.has(m),i&&(t.add(m),m.deps.push(t))}function P(t,e,i,n,r,o){const a=p.get(t);if(!a)return;let l=[];if("clear"===e)l=[...a.values()];else if("length"===i&&(0,s.cy)(t)){const t=(0,s.Ro)(n);a.forEach((e,i)=>{("length"===i||i>=t)&&l.push(e)})}else switch(void 0!==i&&l.push(a.get(i)),e){case"add":(0,s.cy)(t)?(0,s.yI)(i)&&l.push(a.get("length")):(l.push(a.get(x)),(0,s.jh)(t)&&l.push(a.get(b)));break;case"delete":(0,s.cy)(t)||(l.push(a.get(x)),(0,s.jh)(t)&&l.push(a.get(b)));break;case"set":(0,s.jh)(t)&&l.push(a.get(x))}if(1===l.length)l[0]&&O(l[0]);else{const t=[];for(const e of l)e&&t.push(...e);O(h(t))}}function O(t,e){const i=(0,s.cy)(t)?t:[...t];for(const t of i)t.computed&&L(t,e);for(const t of i)t.computed||L(t,e)}function L(t,e){(t!==m||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const _=(0,s.pD)("__proto__,__v_isRef,__isVue"),I=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>"arguments"!==t&&"caller"!==t).map(t=>Symbol[t]).filter(s.Bm)),D=z(),R=z(!1,!0),N=z(!0),B=z(!0,!0),j=F();function F(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...t){const i=Pt(this);for(let t=0,e=this.length;t<e;t++)M(i,0,t+"");const s=i[e](...t);return-1===s||!1===s?i[e](...t.map(Pt)):s}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...t){A();const i=Pt(this)[e].apply(this,t);return E(),i}}),t}function z(t=!1,e=!1){return function(i,n,r){if("__v_isReactive"===n)return!t;if("__v_isReadonly"===n)return t;if("__v_isShallow"===n)return e;if("__v_raw"===n&&r===(t?e?yt:bt:e?xt:mt).get(i))return i;const o=(0,s.cy)(i);if(!t&&o&&(0,s.$3)(j,n))return Reflect.get(j,n,r);const a=Reflect.get(i,n,r);return((0,s.Bm)(n)?I.has(n):_(n))?a:(t||M(i,0,n),e?a:Rt(a)?o&&(0,s.yI)(n)?a:a.value:(0,s.Gv)(a)?t?St(a):vt(a):a)}}const H=W(),X=W(!0);function W(t=!1){return function(e,i,n,r){let o=e[i];if(Et(o)&&Rt(o)&&!Rt(n))return!1;if(!t&&(Mt(n)||Et(n)||(o=Pt(o),n=Pt(n)),!(0,s.cy)(e)&&Rt(o)&&!Rt(n)))return o.value=n,!0;const a=(0,s.cy)(e)&&(0,s.yI)(i)?Number(i)<e.length:(0,s.$3)(e,i),l=Reflect.set(e,i,n,r);return e===Pt(r)&&(a?(0,s.$H)(n,o)&&P(e,"set",i,n):P(e,"add",i,n)),l}}
2const Y={get:D,set:H,deleteProperty:function(t,e){const i=(0,s.$3)(t,e),n=(t[e],Reflect.deleteProperty(t,e));return n&&i&&P(t,"delete",e,void 0),n},has:function(t,e){const i=Reflect.has(t,e);return(0,s.Bm)(e)&&I.has(e)||M(t,0,e),i},ownKeys:function(t){return M(t,0,(0,s.cy)(t)?"length":x),Reflect.ownKeys(t)}},V={get:N,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},G=(0,s.X$)({},Y,{get:R,set:X}),U=(0,s.X$)({},V,{get:B}),$=t=>t,q=t=>Reflect.getPrototypeOf(t);function K(t,e,i=!1,s=!1){const n=Pt(t=t.__v_raw),r=Pt(e);i||(e!==r&&M(n,0,e),M(n,0,r));const{has:o}=q(n),a=s?$:i?_t:Lt;return o.call(n,e)?a(t.get(e)):o.call(n,r)?a(t.get(r)):void(t!==n&&t.get(e))}function Z(t,e=!1){const i=this.__v_raw,s=Pt(i),n=Pt(t);return e||(t!==n&&M(s,0,t),M(s,0,n)),t===n?i.has(t):i.has(t)||i.has(n)}function J(t,e=!1){return t=t.__v_raw,!e&&M(Pt(t),0,x),Reflect.get(t,"size",t)}function Q(t){t=Pt(t);const e=Pt(this);return q(e).has.call(e,t)||(e.add(t),P(e,"add",t,t)),this}function tt(t,e){e=Pt(e);const i=Pt(this),{has:n,get:r}=q(i);let o=n.call(i,t);o||(t=Pt(t),o=n.call(i,t));const a=r.call(i,t);return i.set(t,e),o?(0,s.$H)(e,a)&&P(i,"set",t,e):P(i,"add",t,e),this}function et(t){const e=Pt(this),{has:i,get:s}=q(e);let n=i.call(e,t);n||(t=Pt(t),n=i.call(e,t));s&&s.call(e,t);const r=e.delete(t);return n&&P(e,"delete",t,void 0),r}function it(){const t=Pt(this),e=0!==t.size,i=t.clear();return e&&P(t,"clear",void 0,void 0),i}function st(t,e){return function(i,s){const n=this,r=n.__v_raw,o=Pt(r),a=e?$:t?_t:Lt;return!t&&M(o,0,x),r.forEach((t,e)=>i.call(s,a(t),a(e),n))}}function nt(t,e,i){return function(...n){const r=this.__v_raw,o=Pt(r),a=(0,s.jh)(o),l="entries"===t||t===Symbol.iterator&&a,c="keys"===t&&a,h=r[t](...n),d=i?$:e?_t:Lt;return!e&&M(o,0,c?b:x),{next(){const{value:t,done:e}=h.next();return e?{value:t,done:e}:{value:l?[d(t[0]),d(t[1])]:d(t),done:e}},[Symbol.iterator](){return this}}}}function rt(t){return function(...e){return"delete"!==t&&this}}function ot(){const t={get(t){return K(this,t)},get size(){return J(this)},has:Z,add:Q,set:tt,delete:et,clear:it,forEach:st(!1,!1)},e={get(t){return K(this,t,!1,!0)},get size(){return J(this)},has:Z,add:Q,set:tt,delete:et,clear:it,forEach:st(!1,!0)},i={get(t){return K(this,t,!0)},get size(){return J(this,!0)},has(t){return Z.call(this,t,!0)},add:rt("add"),set:rt("set"),delete:rt("delete"),clear:rt("clear"),forEach:st(!0,!1)},s={get(t){return K(this,t,!0,!0)},get size(){return J(this,!0)},has(t){return Z.call(this,t,!0)},add:rt("add"),set:rt("set"),delete:rt("delete"),clear:rt("clear"),forEach:st(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{t[n]=nt(n,!1,!1),i[n]=nt(n,!0,!1),e[n]=nt(n,!1,!0),s[n]=nt(n,!0,!0)}),[t,i,e,s]}const[at,lt,ct,ht]=ot();function dt(t,e){const i=e?t?ht:ct:t?lt:at;return(e,n,r)=>"__v_isReactive"===n?!t:"__v_isReadonly"===n?t:"__v_raw"===n?e:Reflect.get((0,s.$3)(i,n)&&n in e?i:e,n,r)}const ut={get:dt(!1,!1)},pt={get:dt(!1,!0)},ft={get:dt(!0,!1)},gt={get:dt(!0,!0)};const mt=new WeakMap,xt=new WeakMap,bt=new WeakMap,yt=new WeakMap;function vt(t){return Et(t)?t:Ct(t,!1,Y,ut,mt)}function wt(t){return Ct(t,!1,G,pt,xt)}function St(t){return Ct(t,!0,V,ft,bt)}function kt(t){return Ct(t,!0,U,gt,yt)}function Ct(t,e,i,n,r){if(!(0,s.Gv)(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const o=r.get(t);if(o)return o;const a=(l=t).__v_skip||!Object.isExtensible(l)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((0,s.Zf)(l));var l;if(0===a)return t;const c=new Proxy(t,2===a?n:i);return r.set(t,c),c}function At(t){return Et(t)?At(t.__v_raw):!(!t||!t.__v_isReactive)}function Et(t){return!(!t||!t.__v_isReadonly)}function Mt(t){return!(!t||!t.__v_isShallow)}function Tt(t){return At(t)||Et(t)}function Pt(t){const e=t&&t.__v_raw;return e?Pt(e):t}function Ot(t){return(0,s.yQ)(t,"__v_skip",!0),t}const Lt=t=>(0,s.Gv)(t)?vt(t):t,_t=t=>(0,s.Gv)(t)?St(t):t;function It(t){k&&m&&T((t=Pt(t)).dep||(t.dep=h()))}function Dt(t,e){(t=Pt(t)).dep&&O(t.dep)}function Rt(t){return!(!t||!0!==t.__v_isRef)}function Nt(t){return jt(t,!1)}function Bt(t){return jt(t,!0)}function jt(t,e){return Rt(t)?t:new Ft(t,e)}class Ft{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Pt(t),this._value=e?t:Lt(t)}get value(){return It(this),this._value}set value(t){const e=this.__v_isShallow||Mt(t)||Et(t);t=e?t:Pt(t),(0,s.$H)(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:Lt(t),Dt(this))}}function zt(t){Dt(t)}function Ht(t){return Rt(t)?t.value:t}const Xt={get:(t,e,i)=>Ht(Reflect.get(t,e,i)),set:(t,e,i,s)=>{const n=t[e];return Rt(n)&&!Rt(i)?(n.value=i,!0):Reflect.set(t,e,i,s)}};function Wt(t){return At(t)?t:new Proxy(t,Xt)}
2class Yt{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:e,set:i}=t(()=>It(this),()=>Dt(this));this._get=e,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function Vt(t){return new Yt(t)}function Gt(t){const e=(0,s.cy)(t)?new Array(t.length):{};for(const i in t)e[i]=$t(t,i);return e}class Ut{constructor(t,e,i){this._object=t,this._key=e,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}}function $t(t,e,i){const s=t[e];return Rt(s)?s:new Ut(t,e,i)}var qt;class Kt{constructor(t,e,i,s){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this[qt]=!1,this._dirty=!0,this.effect=new y(t,()=>{this._dirty||(this._dirty=!0,Dt(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=i}get value(){const t=Pt(this);return It(t),!t._dirty&&t._cacheable||(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Zt(t,e,i=!1){let n,r;const o=(0,s.Tn)(t);o?(n=t,r=s.tE):(n=t.get,r=t.set);return new Kt(n,r,o||!r,i)}qt="__v_isReadonly"}},t=>{var e=e=>t(t.s=e);t.O(0,[884,8,524,121],()=>(e(584),e(288),e(381),e(421)));t.O()}]);

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.