text: var app=function(){"use strict";function t(){}function e(t,e){for(const i in e)t[i]=e[i];return t}function i(t){return t()}function n(){return Object.create(null)}function s(t){t.forEach(i)}function o(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let a,l;function c(e,i,n){e.$$.on_destroy.push(function(e,...i){if(null==e)return t;const n=e.subscribe(...i);return n.unsubscribe?()=>n.unsubscribe():n}(i,n))}function h(t,e,i,n){if(t){const s=u(t,e,i,n);return t[0](s)}}function u(t,i,n,s){return t[1]&&s?e(n.ctx.slice(),t[1](s(i))):n.ctx}function d(t,e,i,n){if(t[2]&&n){const s=t[2](n(i));if(void 0===e.dirty)return s;if("object"==typeof s){const t=[],i=Math.max(e.dirty.length,s.length);for(let n=0;n<i;n+=1)t[n]=e.dirty[n]|s[n];return t}return e.dirty|s}return e.dirty}function f(t,e,i,n,s,o){if(s){const r=u(e,i,n,o);t.p(r,s)}}function p(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let t=0;t<i;t++)e[t]=-1;return e}return-1}function g(t){const e={};for(const i in t)"$"!==i[0]&&(e[i]=t[i]);return e}function m(t,e){t.appendChild(e)}function b(t,e,i){t.insertBefore(e,i||null)}function x(t){t.parentNode.removeChild(t)}function v(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function y(t){return document.createElement(t)}function _(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function C(t){return document.createTextNode(t)}function w(){return C(" ")}function k(){return C("")}function M(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function $(t,e,i){null==i?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function L(t,e){for(const i in e)$(t,i,e[i])}function D(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function S(t,e,i,n){t.style.setProperty(e,i,n?"important":"")}function O(t,e,i){t.classList[i?"add":"remove"](e)}function P(t){l=t}function E(){if(!l)throw new Error("Function called outside component initialization");return l}function A(t){E().$$.on_mount.push(t)}function T(){const t=E();return(e,i)=>{const n=t.$$.callbacks[e];if(n){const s=function(t,e,i=!1){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,i,!1,e),n}(e,i);n.slice().forEach((e=>{e.call(t,s)}))}}}const R=[],I=[],F=[],z=[],j=Promise.resolve();let N=!1;function V(t){F.push(t)}function B(t){z.push(t)}let H=!1;const W=new Set;function Y(){if(!H){H=!0;do{for(let t=0;t<R.length;t+=1){const e=R[t];P(e),U(e.$$)}for(P(null),R.length=0;I.length;)I.pop()();for(let t=0;t<F.length;t+=1){const e=F[t];W.has(e)||(W.add(e),e())}F.length=0}while(R.length);for(;z.length;)z.pop()();N=!1,H=!1,W.clear()}}function U(t){if(null!==t.fragment){t.update(),s(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(V)}}const q=new Set;let X;function Z(){X={r:0,c:[],p:X}}function G(){X.r||s(X.c),X=X.p}function K(t,e){t&&t.i&&(q.delete(t),t.i(e))}function J(t,e,i,n){if(t&&t.o){if(q.has(t))return;q.add(t),X.c.push((()=>{q.delete(t),n&&(i&&t.d(1),n())})),t.o(e)}}function Q(t,e,i){const n=t.$$.props[e];void 0!==n&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function tt(t){t&&t.c()}function et(t,e,n,r){const{fragment:a,on_mount:l,on_destroy:c,after_update:h}=t.$$;a&&a.m(e,n),r||V((()=>{const e=l.map(i).filter(o);c?c.push(...e):s(e),t.$$.on_mount=[]})),h.forEach(V)}function it(t,e){const i=t.$$;null!==i.fragment&&(s(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function nt(t,e){-1===t.$$.dirty[0]&&(R.push(t),N||(N=!0,j.then(Y)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function st(e,i,o,r,a,c,h,u=[-1]){const d=l;P(e);const f=e.$$={fragment:null,ctx:null,props:c,update:t,not_equal:a,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(d?d.$$.context:[])),callbacks:n(),dirty:u,skip_bound:!1,root:i.target||d.$$.root};h&&h(f.root);let p=!1;if(f.ctx=o?o(e,i.props||{},((t,i,...n)=>{const s=n.length?n[0]:i;return f.ctx&&a(f.ctx[t],f.ctx[t]=s)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](s),p&&nt(e,t)),i})):[],f.update(),p=!0,s(f.before_update),f.fragment=!!r&&r(f.ctx),i.target){if(i.hydrate){const t=function(t){return Array.from(t.childNodes)}(i.target);f.fragment&&f.fragment.l(t),t.forEach(x)}else f.fragment&&f.fragment.c();i.intro&&K(e.$$.fragment),et(e,i.target,i.anchor,i.customElement),Y()}P(d)}class ot{$destroy(){it(this,1),this.$destroy=t}$on(t,e){const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(e),()=>{const t=i.indexOf(e);-1!==t&&i.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var rt,at,lt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};rt={exports:{}},at=function(t){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,n={},s={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof o?new o(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++i}),t.__id},clone:function t(e,i){var n,o;switch(i=i||{},s.util.type(e)){case"Object":if(o=s.util.objId(e),i[o])return i[o];for(var r in n={},i[o]=n,e)e.hasOwnProperty(r)&&(n[r]=t(e[r],i));return n;case"Array":return o=s.util.objId(e),i[o]?i[o]:(n=[],i[o]=n,e.forEach((function(e,s){n[s]=t(e,i)})),n);default:return e}},getLanguage:function(t){for(;t;){var i=e.exec(t.className);if(i)return i[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,i){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+i)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var i in e)if(e[i].src==t)return e[i]}return null}},isActive:function(t,e,i){for(var n="no-"+e;t;){var s=t.classList;if(s.contains(e))return!0;if(s.contains(n))return!1;t=t.parentElement}return!!i}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(t,e){var i=s.util.clone(s.languages[t]);for(var n in e)i[n]=e[n];return i},insertBefore:function(t,e,i,n){var o=(n=n||s.languages)[t],r={};for(var a in o)if(o.hasOwnProperty(a)){if(a==e)for(var l in i)i.hasOwnProperty(l)&&(r[l]=i[l]);i.hasOwnProperty(a)||(r[a]=o[a])}var c=n[t];return n[t]=r,s.languages.DFS(s.languages,(function(e,i){i===c&&e!=t&&(this[e]=r)})),r},DFS:function t(e,i,n,o){o=o||{};var r=s.util.objId;for(var a in e)if(e.hasOwnProperty(a)){i.call(e,a,e[a],n||a);var l=e[a],c=s.util.type(l);"Object"!==c||o[r(l)]?"Array"!==c||o[r(l)]||(o[r(l)]=!0,t(l,i,a,o)):(o[r(l)]=!0,t(l,i,null,o))}}},plugins:{},highlightAll:function(t,e){s.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,i){var n={callback:i,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),s.hooks.run("before-all-elements-highlight",n);for(var o,r=0;o=n.elements[r++];)s.highlightElement(o,!0===e,n.callback)},highlightElement:function(e,i,n){var o=s.util.getLanguage(e),r=s.languages[o];s.util.setLanguage(e,o);var a=e.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&s.util.setLanguage(a,o);var l={element:e,language:o,grammar:r,code:e.textContent};function c(t){l.highlightedCode=t,s.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,s.hooks.run("after-highlight",l),s.hooks.run("complete",l),n&&n.call(l.element)}if(s.hooks.run("before-sanity-check",l),(a=l.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!l.code)return s.hooks.run("complete",l),void(n&&n.call(l.element));if(s.hooks.run("before-highlight",l),l.grammar)if(i&&t.Worker){var h=new Worker(s.filename);h.onmessage=function(t){c(t.data)},h.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(s.highlight(l.code,l.grammar,l.language));else c(s.util.encode(l.code))},highlight:function(t,e,i){var n={code:t,grammar:e,language:i};return s.hooks.run("before-tokenize",n),n.tokens=s.tokenize(n.code,n.grammar),s.hooks.run("after-tokenize",n),o.stringify(s.util.encode(n.tokens),n.language)},tokenize:function(t,e){var i=e.rest;if(i){for(var n in i)e[n]=i[n];delete e.rest}var h=new a;return l(h,h.head,t),function t(e,i,n,a,h,u){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var f=n[d];f=Array.isArray(f)?f:[f];for(var p=0;p<f.length;++p){if(u&&u.cause==d+","+p)return;var g=f[p],m=g.inside,b=!!g.lookbehind,x=!!g.greedy,v=g.alias;if(x&&!g.pattern.global){var y=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,y+"g")}for(var _=g.pattern||g,C=a.next,w=h;C!==i.tail&&!(u&&w>=u.reach);w+=C.value.length,C=C.next){var k=C.value;if(i.length>e.length)return;if(!(k instanceof o)){var M,$=1;if(x){if(!(M=r(_,w,e,b))||M.index>=e.length)break;var L=M.index,D=M.index+M[0].length,S=w;for(S+=C.value.length;S<=L;)S+=(C=C.next).value.length;if(w=S-=C.value.length,C.value instanceof o)continue;for(var O=C;O!==i.tail&&(S<D||"string"==typeof O.value);O=O.next)$++,S+=O.value.length;$--,k=e.slice(w,S),M.index-=w}else if(!(M=r(_,0,k,b)))continue;L=M.index;var P=M[0],E=k.slice(0,L),A=k.slice(L+P.length),T=w+k.length;u&&T>u.reach&&(u.reach=T);var R=C.prev;if(E&&(R=l(i,R,E),w+=E.length),c(i,R,$),C=l(i,R,new o(d,m?s.tokenize(P,m):P,v,P)),A&&l(i,C,A),1<$){var I={cause:d+","+p,reach:T};t(e,i,n,C.prev,w,I),u&&I.reach>u.reach&&(u.reach=I.reach)}}}}}}(t,h,e,h.head,0),function(t){for(var e=[],i=t.head.next;i!==t.tail;)e.push(i.value),i=i.next;return e}(h)},hooks:{all:{},add:function(t,e){var i=s.hooks.all;i[t]=i[t]||[],i[t].push(e)},run:function(t,e){var i=s.hooks.all[t];if(i&&i.length)for(var n,o=0;n=i[o++];)n(e)}},Token:o};function o(t,e,i,n){this.type=t,this.content=e,this.alias=i,this.length=0|(n||"").length}function r(t,e,i,n){t.lastIndex=e;var s=t.exec(i);if(s&&n&&s[1]){var o=s[1].length;s.index+=o,s[0]=s[0].slice(o)}return s}function a(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function l(t,e,i){var n=e.next,s={value:i,prev:e,next:n};return e.next=s,n.prev=s,t.length++,s}function c(t,e,i){for(var n=e.next,s=0;s<i&&n!==t.tail;s++)n=n.next;(e.next=n).prev=e,t.length-=s}if(t.Prism=s,o.stringify=function t(e,i){if("string"==typeof e)return e;if(Array.isArray(e)){var n="";return e.forEach((function(e){n+=t(e,i)})),n}var o={type:e.type,content:t(e.content,i),tag:"span",classes:["token",e.type],attributes:{},language:i},r=e.alias;r&&(Array.isArray(r)?Array.prototype.push.apply(o.classes,r):o.classes.push(r)),s.hooks.run("wrap",o);var a="";for(var l in o.attributes)a+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+a+">"+o.content+"</"+o.tag+">"},!t.document)return t.addEventListener&&(s.disableWorkerMessageHandler||t.addEventListener("message",(function(e){var i=JSON.parse(e.data),n=i.language,o=i.code,r=i.immediateClose;t.postMessage(s.highlight(o,s.languages[n],n)),r&&t.close()}),!1)),s;var h=s.util.currentScript();function u(){s.manual||s.highlightAll()}if(h&&(s.filename=h.src,h.hasAttribute("data-manual")&&(s.manual=!0)),!s.manual){var d=document.readyState;"loading"===d||"interactive"===d&&h&&h.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return s}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{}),rt.exports&&(rt.exports=at),void 0!==lt&&(lt.Prism=at),at.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},at.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:at.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp("\\b\\d{4}[-/]\\d{2}[-/]\\d{2}(?:T(?=\\d{1,2}:)|(?=\\s\\d{1,2}:))|\\b\\d{1,4}[-/ ](?:\\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\\d{2,4}T?\\b|\\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\\s{1,2}\\d{1,2}\\b","i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/},at.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},at.languages.python["string-interpolation"].inside.interpolation.inside.rest=at.languages.python,at.languages.py=at.languages.python;const ct=[];function ht(e,i=t){let n;const s=new Set;function o(t){if(r(e,t)&&(e=t,n)){const t=!ct.length;for(const t of s)t[1](),ct.push(t,e);if(t){for(let t=0;t<ct.length;t+=2)ct[t][0](ct[t+1]);ct.length=0}}}return{set:o,update:function(t){o(t(e))},subscribe:function(r,a=t){const l=[r,a];return s.add(l),1===s.size&&(n=i(o)||t),r(e),()=>{s.delete(l),0===s.size&&(n(),n=null)}}}}const ut=(()=>{const t=ht(void 0);try{const e=JSON.parse(window.__DATA__);t.set(e)}catch(e){fetch("/card-example.json").then((t=>t.json())).then((e=>{t.set(e)})).catch(console.error)}return t})(),dt=ht(void 0),ft=t=>{const e={};if(!t)return e;function i(t,n=[]){var s;if("page"===t.type){const n=[];e[t.title]=n,null===(s=null==t?void 0:t.contents)||void 0===s||s.forEach((t=>i(t,n)))}"section"===t.type&&t.title&&n.push(t.title)}return null==t||t.forEach((t=>i(t))),e},pt=t=>t/parseFloat(getComputedStyle(document.documentElement).fontSize.replace("px",""));function gt(t){let e,i,n,s,o,r,a,l;return{c(){e=_("svg"),i=_("title"),n=C("metaflow_logo_horizontal"),s=_("g"),o=_("g"),r=_("g"),a=_("path"),l=_("path"),$(a,"d","M223.990273,66.33 C223.515273,61.851 222.686273,57.512 221.505273,53.33 C220.325273,49.148 218.795273,45.122 216.916273,41.271 C212.845273,32.921 207.254273,25.587 200.268273,19.422 C199.270273,18.541 198.243273,17.684 197.189273,16.851 C191.255273,12.166 184.481273,8.355 177.253273,5.55 C174.156273,4.347 170.975273,3.33 167.741273,2.508 C161.273273,0.863 154.593273,0 147.943273,0 C141.755273,0 135.332273,0.576 128.687273,1.722 C127.025273,2.01 125.350273,2.332 123.661273,2.69 C120.283273,3.406 116.851273,4.265 113.365273,5.267 C104.650273,7.769 95.6022727,11.161 86.2442727,15.433 C78.7592727,18.851 71.0762727,22.832 63.2072727,27.373 C47.9762727,36.162 35.7372727,44.969 29.3592727,49.791 C29.0692727,50.01 28.7922727,50.221 28.5262727,50.423 C26.1382727,52.244 24.7522727,53.367 24.5662727,53.519 L0.549272727,73.065 C0.191272727,73.356 0.00727272727,73.773 0,74.194 C-0.00372727273,74.403 0.0362727273,74.614 0.120272727,74.811 C0.205272727,75.008 0.334272727,75.189 0.508272727,75.341 L11.7612727,85.195 C12.1692727,85.552 12.7252727,85.651 13.2162727,85.487 C13.3792727,85.432 13.5362727,85.348 13.6762727,85.234 L35.8492727,67.382 C36.0422727,67.224 37.6152727,65.949 40.3252727,63.903 C44.1192727,61.036 50.1422727,56.656 57.7292727,51.711 C62.0642727,48.884 66.9102727,45.873 72.1412727,42.854 C100.864273,26.278 126.367273,17.874 147.943273,17.874 C148.366273,17.874 148.790273,17.892 149.213273,17.902 C149.655273,17.911 150.096273,17.911 150.538273,17.93 C153.769273,18.068 156.995273,18.463 160.170273,19.097 C164.931273,20.049 169.577273,21.542 173.953273,23.524 C178.328273,25.505 182.433273,27.975 186.112273,30.88 C186.771273,31.4 187.406273,31.94 188.035273,32.485 C188.913273,33.245 189.771273,34.023 190.591273,34.83 C191.998273,36.217 193.317273,37.673 194.548273,39.195 C196.395273,41.479 198.042273,43.912 199.480273,46.485 C199.960273,47.342 200.417273,48.216 200.850273,49.105 C201.112273,49.642 201.343273,50.196 201.587273,50.743 C202.231273,52.185 202.834273,53.649 203.354273,55.158 C203.712273,56.198 204.041273,57.255 204.340273,58.326 C205.836273,63.683 206.590273,69.417 206.590273,75.469 C206.590273,81.221 205.892273,86.677 204.541273,91.804 C203.617273,95.308 202.397273,98.662 200.850273,101.833 C200.417273,102.722 199.960273,103.595 199.480273,104.453 C197.562273,107.884 195.275273,111.066 192.636273,113.976 C190.657273,116.159 188.480273,118.189 186.113273,120.058 C184.553273,121.29 182.909273,122.432 181.208273,123.503 C180.313273,124.067 179.400273,124.609 178.470273,125.126 C177.462273,125.688 176.442273,126.232 175.398273,126.737 C166.961273,130.823 157.423273,133.064 147.943273,133.064 C126.367273,133.064 100.864273,124.659 72.1412727,108.084 C70.5382727,107.159 68.4382727,105.886 66.3072727,104.575 C65.0292727,103.788 63.7402727,102.986 62.5412727,102.237 C59.3442727,100.238 56.7882727,98.61 56.7882727,98.61 C61.8362727,93.901 69.3232727,87.465 78.6472727,81.047 C80.0092727,80.11 81.4192727,79.174 82.8572727,78.243 C84.1052727,77.436 85.3712727,76.63 86.6732727,75.835 C88.2042727,74.9 89.7802727,73.981 91.3822727,73.074 C93.0482727,72.131 94.7512727,71.207 96.4902727,70.307 C111.473273,62.55 129.094273,56.602 147.943273,56.602 C151.750273,56.602 157.745273,57.825 162.114273,61.276 C162.300273,61.422 162.489273,61.578 162.677273,61.74 C163.337273,62.305 164.006273,62.966 164.634273,63.78 C164.957273,64.198 165.269273,64.657 165.564273,65.162 C166.006273,65.92 166.409273,66.782 166.750273,67.775 C166.891273,68.185 167.016273,68.627 167.134273,69.083 C167.586273,70.833 167.863273,72.924 167.863273,75.469 C167.863273,78.552 167.460273,80.974 166.824273,82.92 C166.578273,83.674 166.300273,84.363 165.992273,84.983 C165.855273,85.259 165.711273,85.524 165.564273,85.776 C165.376273,86.099 165.178273,86.396 164.977273,86.682 C164.631273,87.175 164.269273,87.618 163.900273,88.018 C163.730273,88.202 163.559273,88.379 163.387273,88.546 C162.962273,88.96 162.534273,89.331 162.114273,89.662 C157.745273,93.112 151.750273,94.337 147.943273,94.337 C144.485273,94.337 140.682273,93.926 136.589273,93.121 C133.860273,92.584 131.003273,91.871 128.033273,90.987 C123.579273,89.662 118.873273,87.952 113.970273,85.872 C113.768273,85.786 113.552273,85.747 113.336273,85.753 C113.122273,85.76 112.908273,85.813 112.713273,85.912 C106.990273,88.816 101.641273,91.995 96.7462727,95.223 C96.6232727,95.304 96.5182727,95.397 96.4302727,95.5 C95.8122727,96.22 96.0172727,97.397 96.9492727,97.822 L102.445273,100.328 C104.606273,101.314 106.737273,102.238 108.835273,103.102 C110.934273,103.966 113.001273,104.77 115.035273,105.511 C118.086273,106.624 121.064273,107.599 123.965273,108.436 C127.834273,109.551 131.567273,110.421 135.157273,111.043 C139.646273,111.82 143.912273,112.211 147.943273,112.211 C148.367273,112.211 148.923273,112.201 149.591273,112.169 C149.925273,112.153 150.287273,112.131 150.674273,112.102 C155.712273,111.724 165.055273,110.114 173.190273,103.691 C173.547273,103.41 173.869273,103.105 174.210273,102.813 C175.324273,101.86 176.381273,100.866 177.333273,99.8 C177.470273,99.648 177.590273,99.485 177.724273,99.331 C181.300273,95.167 183.699273,90.185 184.875273,84.406 C185.444273,81.609 185.737273,78.631 185.737273,75.469 C185.737273,63.315 181.516273,53.82 173.190273,47.247 C167.050273,42.399 160.228273,40.299 155.083273,39.395 C153.892273,39.186 152.790273,39.037 151.809273,38.938 C150.116273,38.766 148.774273,38.727 147.943273,38.727 C133.456273,38.727 118.519273,41.679 103.545273,47.5 C99.1222727,49.22 94.6912727,51.191 90.2702727,53.403 C88.7972727,54.141 87.3242727,54.905 85.8542727,55.696 C83.5092727,56.957 81.1722727,58.303 78.8382727,59.697 C77.3922727,60.562 75.9492727,61.451 74.5082727,62.366 C72.4422727,63.678 70.3802727,65.023 68.3302727,66.437 C63.8372727,69.535 59.7422727,72.63 56.0902727,75.567 C54.8732727,76.547 53.7052727,77.508 52.5882727,78.446 C48.1222727,82.2 44.4752727,85.581 41.7602727,88.226 C38.3032727,91.593 36.3592727,93.766 36.1632727,93.986 L35.8282727,94.362 L32.0332727,98.61 L30.6432727,100.164 C30.4962727,100.329 30.3932727,100.517 30.3312727,100.715 C30.1482727,101.307 30.3472727,101.981 30.8882727,102.368 L37.2812727,106.938 L37.4862727,107.083 L37.6922727,107.228 C39.8732727,108.766 42.0702727,110.277 44.2792727,111.758 C45.8422727,112.807 47.4102727,113.84 48.9832727,114.858 C51.5302727,116.508 54.0902727,118.103 56.6542727,119.665 C57.8412727,120.388 59.0282727,121.101 60.2162727,121.804 C61.2142727,122.394 62.2102727,122.989 63.2072727,123.565 C76.9772727,131.512 90.1802727,137.744 102.748273,142.242 C104.544273,142.884 106.326273,143.491 108.096273,144.063 C111.635273,145.206 115.121273,146.207 118.553273,147.067 C121.986273,147.925 125.364273,148.642 128.687273,149.215 C135.332273,150.362 141.755273,150.938 147.943273,150.938 C154.593273,150.938 161.273273,150.074 167.741273,148.43 C174.209273,146.786 180.465273,144.361 186.265273,141.238 C190.133273,139.156 193.798273,136.764 197.189273,134.087 C200.352273,131.589 203.264273,128.872 205.911273,125.949 C207.677273,124 209.325273,121.96 210.854273,119.831 C211.618273,118.766 212.353273,117.68 213.057273,116.571 C214.466273,114.356 215.753273,112.053 216.916273,109.667 C220.701273,101.906 223.073273,93.439 224.008273,84.406 C224.310273,81.485 224.465273,78.505 224.465273,75.469 C224.465273,72.364 224.306273,69.316 223.990273,66.33"),$(a,"id","Fill-1"),$(a,"fill","#146EE6"),$(l,"d","M758.389273,75.346 C752.632273,111.56 742.681273,122.23 712.102273,122.23 C710.847273,122.23 709.640273,122.207 708.464273,122.17 C708.321273,122.191 708.191273,122.23 708.028273,122.23 L637.994273,122.23 C636.795273,122.23 636.315273,121.632 636.435273,120.311 L650.585273,31.22 C650.704273,30.016 651.424273,29.417 652.623273,29.417 L667.852273,29.417 C669.050273,29.417 669.530273,30.016 669.410273,31.22 L657.659273,105.802 L714.249273,105.802 L714.249273,105.787 C714.410273,105.794 714.568273,105.802 714.741273,105.802 C718.878273,105.802 722.250273,105.351 725.040273,104.313 C726.434273,103.794 727.684273,103.129 728.810273,102.298 C729.373273,101.884 729.905273,101.426 730.410273,100.927 C734.951273,96.431 737.231273,88.43 739.322273,75.346 C739.328273,75.312 739.331273,75.282 739.337273,75.25 C739.642273,73.311 739.896273,71.474 740.130273,69.679 C740.203273,69.116 740.272273,68.557 740.338273,68.008 C740.412273,67.392 740.461273,66.821 740.525273,66.222 C742.136273,49.927 738.622273,44.525 724.454273,44.525 C723.419273,44.525 722.433273,44.554 721.490273,44.613 C708.297273,45.444 703.831273,52.303 700.461273,71.126 C700.220273,72.472 699.984273,73.877 699.752273,75.346 C699.483273,77.027 699.255273,78.6 699.052273,80.115 C698.993273,80.545 698.948273,80.946 698.895273,81.361 C698.757273,82.465 698.638273,83.528 698.540273,84.544 C698.502273,84.943 698.466273,85.334 698.434273,85.72 C698.344273,86.815 698.281273,87.856 698.246273,88.847 C698.238273,89.049 698.224273,89.269 698.219273,89.469 C698.161273,91.88 698.289273,93.972 698.621273,95.782 C698.649273,95.941 698.686273,96.089 698.717273,96.246 C698.874273,96.992 699.067273,97.689 699.301273,98.337 C699.346273,98.464 699.390273,98.594 699.439273,98.718 C700.039273,100.231 700.864273,101.478 701.963273,102.469 C702.263273,102.738 702.586273,102.987 702.925273,103.22 L679.436273,103.22 C679.393273,102.969 679.343273,102.727 679.305273,102.471 L679.304273,102.471 C679.304273,102.467 679.304273,102.462 679.303273,102.459 C679.259273,102.17 679.236273,101.854 679.198273,101.558 C679.083273,100.634 678.995273,99.671 678.934273,98.674 C678.908273,98.258 678.879273,97.845 678.862273,97.419 C678.816273,96.174 678.804273,94.876 678.832273,93.518 C678.840273,93.114 678.861273,92.69 678.876273,92.276 C678.920273,91.042 678.991273,89.765 679.092273,88.441 C679.117273,88.109 679.134273,87.79 679.162273,87.452 C679.299273,85.836 679.483273,84.137 679.698273,82.382 C679.750273,81.957 679.807273,81.518 679.863273,81.084 C680.104273,79.238 680.369273,77.344 680.687273,75.346 C681.046273,73.067 681.423273,70.889 681.819273,68.808 C687.040273,41.397 695.809273,30.748 717.267273,28.554 C720.250273,28.25 723.472273,28.103 726.971273,28.103 C726.972273,28.103 726.972273,28.103 726.972273,28.103 C747.994273,28.103 757.680273,33.202 759.811273,48.236 C760.779273,55.067 760.187273,63.953 758.389273,75.346 Z M894.023273,31.336 L866.923273,108.56 C863.472273,118.182 861.113273,121.41 854.499273,122.41 C852.379273,122.733 849.831273,122.828 846.659273,122.828 C831.670273,122.828 830.350273,121.267 829.392273,108.56 L825.794273,63.232 L825.794273,63.231 L807.928273,108.56 C804.255273,117.613 802.201273,120.996 795.961273,122.202 C793.442273,122.687 790.260273,122.829 785.985273,122.829 C772.914273,122.829 770.756273,121.267 770.396273,108.56 L767.638273,31.337 C767.638273,29.899 768.238273,29.417 769.557273,29.417 L785.385273,29.417 C786.464273,29.417 786.704273,29.899 786.824273,31.337 L788.895273,100.572 L788.895273,100.571 C789.054273,103.091 789.563273,103.641 791.021273,103.641 C792.939273,103.641 793.419273,103.042 794.618273,100.043 L820.758273,34.576 C821.358273,33.132 822.437273,32.657 823.516273,32.657 L837.665273,32.657 C838.519273,32.657 839.279273,32.977 839.626273,33.817 C839.718273,34.038 839.799273,34.274 839.824273,34.576 L845.220273,100.043 C845.460273,103.042 845.819273,103.641 847.738273,103.641 C849.297273,103.641 849.896273,103.042 850.976273,100.043 L874.838273,31.336 C875.317273,29.898 875.677273,29.417 876.756273,29.417 L892.584273,29.417 C893.903273,29.417 894.383273,29.898 894.023273,31.336 Z M362.708273,31.219 L357.192273,120.311 C357.192273,121.632 356.353273,122.23 355.154273,122.23 L339.926273,122.23 C338.726273,122.23 338.366273,121.632 338.366273,120.311 L342.324273,62.756 L311.986273,117.551 C311.386273,118.749 310.428273,119.348 309.229273,119.348 L297.837273,119.348 C296.758273,119.348 296.038273,118.749 295.560273,117.551 L282.851273,62.767 L282.848273,62.755 L268.339273,120.31 C268.212273,121.009 267.974273,121.492 267.612273,121.807 C267.288273,122.085 266.865273,122.23 266.301273,122.23 L251.073273,122.23 C249.874273,122.23 249.273273,121.632 249.514273,120.31 L272.296273,31.336 C272.537273,30.138 272.897273,29.417 274.095273,29.417 L288.605273,29.417 C291.236273,29.417 292.726273,29.895 293.682273,31.379 C294.120273,32.059 294.457273,32.928 294.720273,34.095 L307.790273,92.489 L339.326273,34.095 C341.485273,30.256 343.043273,29.299 346.880273,29.299 L361.389273,29.299 C362.376273,29.299 362.682273,30.684 362.682273,30.684 C362.682273,30.684 362.708273,31.029 362.708273,31.219 Z M501.706273,31.219 L499.667273,44.049 C499.547273,45.246 498.708273,45.845 497.509273,45.845 L472.448273,45.845 L460.696273,120.31 C460.457273,121.632 459.738273,122.23 458.538273,122.23 L443.309273,122.23 C442.111273,122.23 441.631273,121.632 441.870273,120.31 L453.622273,45.845 L394.820273,45.845 L391.224273,68.507 L391.224273,68.508 L430.555273,68.508 C431.754273,68.508 432.353273,69.106 432.234273,70.31 L430.196273,82.542 C430.076273,83.738 429.236273,84.338 428.038273,84.338 L388.706273,84.338 L385.349273,105.801 L428.397273,105.801 C429.596273,105.801 430.076273,106.4 429.955273,107.597 L427.797273,120.428 C427.676273,121.632 426.958273,122.23 425.759273,122.23 L365.683273,122.23 C364.484273,122.23 364.004273,121.632 364.124273,120.31 L378.273273,31.219 C378.393273,30.015 379.112273,29.417 380.313273,29.417 L500.147273,29.417 C501.346273,29.417 501.826273,30.015 501.706273,31.219 Z M629.471273,70.426 L627.433273,82.659 C627.313273,83.856 626.473273,84.454 625.275273,84.454 L588.223273,84.454 L582.466273,120.311 C582.347273,121.632 581.627273,122.23 580.428273,122.23 L565.200273,122.23 C564.001273,122.23 563.522273,121.632 563.640273,120.311 L577.790273,31.219 C577.910273,30.016 578.629273,29.417 579.828273,29.417 L643.004273,29.417 C644.202273,29.417 644.802273,30.016 644.682273,31.219 L642.644273,44.05 C642.403273,45.247 641.685273,45.846 640.486273,45.846 L594.337273,45.846 L590.741273,68.631 L627.793273,68.631 C628.991273,68.631 629.592273,69.23 629.471273,70.426 Z M388.706273,84.338 L388.712273,84.338 L388.309273,86.876 L388.706273,84.338 Z M510.726273,79.783 L524.396273,48.006 C525.036273,46.466 525.443273,45.589 525.990273,45.096 C526.465273,44.667 527.044273,44.525 527.993273,44.525 C530.391273,44.525 530.391273,45.124 530.751273,48.006 L534.348273,79.783 L510.726273,79.783 Z M542.334273,29.886 C539.756273,28.905 536.043273,28.702 530.511273,28.702 C516.601273,28.702 513.963273,30.016 508.208273,43.087 L474.633273,120.311 C474.154273,121.749 474.513273,122.23 475.832273,122.23 L491.060273,122.23 C492.259273,122.23 492.500273,121.749 493.099273,120.311 L504.011273,95.372 L536.026273,95.372 L539.024273,120.311 C539.144273,121.749 539.144273,122.23 540.344273,122.23 L555.572273,122.23 C556.891273,122.23 557.490273,121.749 557.490273,120.311 L548.617273,43.087 C547.658273,35.042 546.460273,31.458 542.334273,29.886 L542.334273,29.886 Z"),$(l,"id","Fill-2"),$(l,"fill","#333333"),$(r,"id","metaflow_logo_horizontal"),$(r,"transform","translate(92.930727, 93.190000)"),$(o,"id","Metaflow_Logo_Horizontal_TwoColor_Dark_RGB"),$(o,"transform","translate(-92.000000, -93.000000)"),$(s,"id","Page-1"),$(s,"stroke","none"),$(s,"stroke-width","1"),$(s,"fill","none"),$(s,"fill-rule","evenodd"),$(e,"xmlns","http://www.w3.org/2000/svg"),$(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),$(e,"width","896px"),$(e,"height","152px"),$(e,"viewBox","0 0 896 152"),$(e,"version","1.1")},m(t,c){b(t,e,c),m(e,i),m(i,n),m(e,s),m(s,o),m(o,r),m(r,a),m(r,l)},d(t){t&&x(e)}}}function mt(t){let e,i,n;return{c(){e=_("svg"),i=_("path"),n=_("path"),$(i,"fill-rule","evenodd"),$(i,"clip-rule","evenodd"),$(i,"d","M223.991 66.33C223.516 61.851 222.687 57.512 221.506 53.33C220.326 49.148 218.796 45.122 216.917 41.271C212.846 32.921 207.255 25.587 200.269 19.422C199.271 18.541 198.244 17.684 197.19 16.851C191.256 12.166 184.482 8.355 177.254 5.55C174.157 4.347 170.976 3.33 167.742 2.508C161.274 0.863 154.594 0 147.944 0C141.756 0 135.333 0.576 128.688 1.722C127.026 2.01 125.351 2.332 123.662 2.69C120.284 3.406 116.852 4.265 113.366 5.267C104.651 7.769 95.6025 11.161 86.2445 15.433C78.7595 18.851 71.0765 22.832 63.2075 27.373C47.9765 36.162 35.7375 44.969 29.3595 49.791C29.0695 50.01 28.7925 50.221 28.5265 50.423C26.1385 52.244 24.7525 53.367 24.5665 53.519L0.549511 73.065C0.191511 73.356 0.00751099 73.773 0.000238261 74.194C-0.00348901 74.403 0.036511 74.614 0.120511 74.811C0.205511 75.008 0.334511 75.189 0.508511 75.341L11.7615 85.195C12.1695 85.552 12.7255 85.651 13.2165 85.487C13.3795 85.432 13.5365 85.348 13.6765 85.234L35.8495 67.382C36.0425 67.224 37.6155 65.949 40.3255 63.903C44.1195 61.036 50.1425 56.656 57.7295 51.711C62.0645 48.884 66.9105 45.873 72.1415 42.854C100.865 26.278 126.368 17.874 147.944 17.874C148.367 17.874 148.791 17.892 149.214 17.902C149.656 17.911 150.097 17.911 150.539 17.93C153.77 18.068 156.996 18.463 160.171 19.097C164.932 20.049 169.578 21.542 173.954 23.524C178.329 25.505 182.434 27.975 186.113 30.88C186.772 31.4 187.407 31.94 188.036 32.485C188.914 33.245 189.772 34.023 190.592 34.83C191.999 36.217 193.318 37.673 194.549 39.195C196.396 41.479 198.043 43.912 199.481 46.485C199.961 47.342 200.418 48.216 200.851 49.105C201.113 49.642 201.344 50.196 201.588 50.743C202.232 52.185 202.835 53.649 203.355 55.158C203.713 56.198 204.042 57.255 204.341 58.326C205.837 63.683 206.591 69.417 206.591 75.469C206.591 81.221 205.893 86.677 204.542 91.804C203.618 95.308 202.398 98.662 200.851 101.833C200.418 102.722 199.961 103.595 199.481 104.453C197.563 107.884 195.276 111.066 192.637 113.976C190.658 116.159 188.481 118.189 186.114 120.058C184.554 121.29 182.91 122.432 181.209 123.503C180.314 124.067 179.401 124.609 178.471 125.126C177.463 125.688 176.443 126.232 175.399 126.737C166.962 130.823 157.424 133.064 147.944 133.064C126.368 133.064 100.865 124.659 72.1415 108.084C70.5385 107.159 68.4385 105.886 66.3075 104.575C65.0295 103.788 63.7405 102.986 62.5415 102.237C59.3445 100.238 56.7885 98.61 56.7885 98.61C61.8365 93.901 69.3235 87.465 78.6475 81.047C80.0095 80.11 81.4195 79.174 82.8575 78.243C84.1055 77.436 85.3715 76.63 86.6735 75.835C88.2045 74.9 89.7805 73.981 91.3825 73.074C93.0485 72.131 94.7515 71.207 96.4905 70.307C111.474 62.55 129.095 56.602 147.944 56.602C151.751 56.602 157.746 57.825 162.115 61.276C162.301 61.422 162.49 61.578 162.678 61.74C163.338 62.305 164.007 62.966 164.635 63.78C164.958 64.198 165.27 64.657 165.565 65.162C166.007 65.92 166.41 66.782 166.751 67.775C166.892 68.185 167.017 68.627 167.135 69.083C167.587 70.833 167.864 72.924 167.864 75.469C167.864 78.552 167.461 80.974 166.825 82.92C166.579 83.674 166.301 84.363 165.993 84.983C165.856 85.259 165.712 85.524 165.565 85.776C165.377 86.099 165.179 86.396 164.978 86.682C164.632 87.175 164.27 87.618 163.901 88.018C163.731 88.202 163.56 88.379 163.388 88.546C162.963 88.96 162.535 89.331 162.115 89.662C157.746 93.112 151.751 94.337 147.944 94.337C144.486 94.337 140.683 93.926 136.59 93.121C133.861 92.584 131.004 91.871 128.034 90.987C123.58 89.662 118.874 87.952 113.971 85.872C113.769 85.786 113.553 85.747 113.337 85.753C113.123 85.76 112.909 85.813 112.714 85.912C106.991 88.816 101.642 91.995 96.7465 95.223C96.6235 95.304 96.5185 95.397 96.4305 95.5C95.8125 96.22 96.0175 97.397 96.9495 97.822L102.446 100.328C104.607 101.314 106.738 102.238 108.836 103.102C110.935 103.966 113.002 104.77 115.036 105.511C118.087 106.624 121.065 107.599 123.966 108.436C127.835 109.551 131.568 110.421 135.158 111.043C139.647 111.82 143.913 112.211 147.944 112.211C148.368 112.211 148.924 112.201 149.592 112.169C149.926 112.153 150.288 112.131 150.675 112.102C155.713 111.724 165.056 110.114 173.191 103.691C173.548 103.41 173.87 103.105 174.211 102.813C175.325 101.86 176.382 100.866 177.334 99.8C177.471 99.648 177.591 99.485 177.725 99.331C181.301 95.167 183.7 90.185 184.876 84.406C185.445 81.609 185.738 78.631 185.738 75.469C185.738 63.315 181.517 53.82 173.191 47.247C167.051 42.399 160.229 40.299 155.084 39.395C153.893 39.186 152.791 39.037 151.81 38.938C150.117 38.766 148.775 38.727 147.944 38.727C133.457 38.727 118.52 41.679 103.546 47.5C99.1225 49.22 94.6915 51.191 90.2705 53.403C88.7975 54.141 87.3245 54.905 85.8545 55.696C83.5095 56.957 81.1725 58.303 78.8385 59.697C77.3925 60.562 75.9495 61.451 74.5085 62.366C72.4425 63.678 70.3805 65.023 68.3305 66.437C63.8375 69.535 59.7425 72.63 56.0905 75.567C54.8735 76.547 53.7055 77.508 52.5885 78.446C48.1225 82.2 44.4755 85.581 41.7605 88.226C38.3035 91.593 36.3595 93.766 36.1635 93.986L35.8285 94.362L32.0335 98.61L30.6435 100.164C30.4965 100.329 30.3935 100.517 30.3315 100.715C30.1485 101.307 30.3475 101.981 30.8885 102.368L37.2815 106.938L37.4865 107.083L37.6925 107.228C39.8735 108.766 42.0705 110.277 44.2795 111.758C45.8425 112.807 47.4105 113.84 48.9835 114.858C51.5305 116.508 54.0905 118.103 56.6545 119.665C57.8415 120.388 59.0285 121.101 60.2165 121.804C61.2145 122.394 62.2105 122.989 63.2075 123.565C76.9775 131.512 90.1805 137.744 102.749 142.242C104.545 142.884 106.327 143.491 108.097 144.063C111.636 145.206 115.122 146.207 118.554 147.067C121.987 147.925 125.365 148.642 128.688 149.215C135.333 150.362 141.756 150.938 147.944 150.938C154.594 150.938 161.274 150.074 167.742 148.43C174.21 146.786 180.466 144.361 186.266 141.238C190.134 139.156 193.799 136.764 197.19 134.087C200.353 131.589 203.265 128.872 205.912 125.949C207.678 124 209.326 121.96 210.855 119.831C211.619 118.766 212.354 117.68 213.058 116.571C214.467 114.356 215.754 112.053 216.917 109.667C220.702 101.906 223.074 93.439 224.009 84.406C224.311 81.485 224.466 78.505 224.466 75.469C224.466 72.364 224.307 69.316 223.991 66.33Z"),$(i,"fill","#146EE6"),$(n,"fill-rule","evenodd"),$(n,"clip-rule","evenodd"),$(n,"d","M758.39 75.346C752.633 111.56 742.682 122.23 712.103 122.23C710.848 122.23 709.641 122.207 708.465 122.17C708.322 122.191 708.192 122.23 708.029 122.23H637.995C636.796 122.23 636.316 121.632 636.436 120.311L650.586 31.22C650.705 30.016 651.425 29.417 652.624 29.417H667.853C669.051 29.417 669.531 30.016 669.411 31.22L657.66 105.802H714.25V105.787C714.411 105.794 714.569 105.802 714.742 105.802C718.879 105.802 722.251 105.351 725.041 104.313C726.435 103.794 727.685 103.129 728.811 102.298C729.374 101.884 729.906 101.426 730.411 100.927C734.952 96.431 737.232 88.43 739.323 75.346C739.329 75.312 739.332 75.282 739.338 75.25C739.643 73.311 739.896 71.474 740.13 69.679C740.203 69.116 740.273 68.557 740.339 68.008C740.413 67.392 740.462 66.821 740.526 66.222C742.137 49.927 738.623 44.525 724.455 44.525C723.42 44.525 722.434 44.554 721.491 44.613C708.298 45.444 703.831 52.303 700.461 71.126C700.22 72.472 699.985 73.877 699.753 75.346C699.484 77.027 699.255 78.6 699.052 80.115C698.993 80.545 698.949 80.946 698.896 81.361C698.758 82.465 698.639 83.528 698.541 84.544C698.503 84.943 698.467 85.334 698.435 85.72C698.345 86.815 698.282 87.856 698.247 88.847C698.239 89.049 698.225 89.269 698.22 89.469C698.162 91.88 698.29 93.972 698.622 95.782C698.65 95.941 698.687 96.089 698.718 96.246C698.875 96.992 699.068 97.689 699.302 98.337C699.347 98.464 699.391 98.594 699.44 98.718C700.04 100.231 700.865 101.478 701.964 102.469C702.264 102.738 702.587 102.987 702.926 103.22H679.437C679.394 102.969 679.344 102.727 679.306 102.471H679.305C679.305 102.467 679.305 102.462 679.304 102.459C679.26 102.17 679.237 101.854 679.199 101.558C679.084 100.634 678.996 99.671 678.935 98.674C678.909 98.258 678.879 97.845 678.862 97.419C678.816 96.174 678.805 94.876 678.833 93.518C678.841 93.114 678.862 92.69 678.877 92.276C678.921 91.042 678.992 89.765 679.093 88.441C679.118 88.109 679.135 87.79 679.163 87.452C679.3 85.836 679.484 84.137 679.699 82.382C679.751 81.957 679.808 81.518 679.864 81.084C680.105 79.238 680.37 77.344 680.688 75.346C681.046 73.067 681.424 70.889 681.82 68.808C687.041 41.397 695.81 30.748 717.268 28.554C720.251 28.25 723.472 28.103 726.971 28.103C726.972 28.103 726.973 28.103 726.973 28.103C747.995 28.103 757.681 33.202 759.812 48.236C760.78 55.067 760.188 63.953 758.39 75.346ZM894.023 31.336L866.924 108.56C863.473 118.182 861.114 121.41 854.5 122.41C852.38 122.733 849.832 122.828 846.66 122.828C831.671 122.828 830.351 121.267 829.393 108.56L825.794 63.232V63.231L807.929 108.56C804.256 117.613 802.201 120.996 795.961 122.202C793.442 122.687 790.261 122.829 785.986 122.829C772.915 122.829 770.757 121.267 770.397 108.56L767.638 31.337C767.638 29.899 768.238 29.417 769.557 29.417H785.385C786.464 29.417 786.705 29.899 786.825 31.337L788.896 100.572V100.571C789.055 103.091 789.564 103.641 791.022 103.641C792.94 103.641 793.42 103.042 794.619 100.043L820.759 34.576C821.359 33.132 822.438 32.657 823.517 32.657H837.666C838.52 32.657 839.28 32.977 839.627 33.817C839.719 34.038 839.8 34.274 839.825 34.576L845.221 100.043C845.461 103.042 845.82 103.641 847.739 103.641C849.298 103.641 849.897 103.042 850.977 100.043L874.839 31.336C875.318 29.898 875.678 29.417 876.757 29.417H892.585C893.904 29.417 894.383 29.898 894.023 31.336ZM362.709 31.219L357.193 120.311C357.193 121.632 356.354 122.23 355.155 122.23H339.927C338.727 122.23 338.367 121.632 338.367 120.311L342.325 62.756L311.987 117.551C311.387 118.749 310.429 119.348 309.23 119.348H297.838C296.759 119.348 296.039 118.749 295.561 117.551L282.852 62.767L282.849 62.755L268.34 120.31C268.213 121.009 267.975 121.492 267.613 121.807C267.289 122.085 266.866 122.23 266.302 122.23H251.074C249.875 122.23 249.274 121.632 249.515 120.31L272.297 31.336C272.538 30.138 272.898 29.417 274.096 29.417H288.606C291.237 29.417 292.727 29.895 293.683 31.379C294.121 32.059 294.458 32.928 294.721 34.095L307.791 92.489L339.327 34.095C341.486 30.256 343.044 29.299 346.881 29.299H361.39C362.377 29.299 362.683 30.684 362.683 30.684C362.683 30.684 362.709 31.029 362.709 31.219ZM501.707 31.219L499.668 44.049C499.548 45.246 498.709 45.845 497.51 45.845H472.449L460.697 120.31C460.458 121.632 459.739 122.23 458.539 122.23H443.31C442.112 122.23 441.632 121.632 441.871 120.31L453.623 45.845H394.821L391.225 68.507V68.508H430.556C431.755 68.508 432.354 69.106 432.235 70.31L430.197 82.542C430.077 83.738 429.237 84.338 428.039 84.338H388.707L385.35 105.801H428.398C429.597 105.801 430.077 106.4 429.956 107.597L427.798 120.428C427.677 121.632 426.959 122.23 425.76 122.23H365.684C364.485 122.23 364.005 121.632 364.125 120.31L378.274 31.219C378.394 30.015 379.113 29.417 380.314 29.417H500.148C501.347 29.417 501.827 30.015 501.707 31.219ZM629.471 70.426L627.434 82.659C627.314 83.856 626.474 84.454 625.276 84.454H588.224L582.466 120.311C582.347 121.632 581.628 122.23 580.429 122.23H565.201C564.002 122.23 563.523 121.632 563.641 120.311L577.791 31.219C577.911 30.016 578.629 29.417 579.828 29.417H643.005C644.203 29.417 644.802 30.016 644.682 31.219L642.645 44.05C642.404 45.247 641.686 45.846 640.487 45.846H594.338L590.742 68.631H627.794C628.992 68.631 629.592 69.23 629.471 70.426ZM388.707 84.338H388.713L388.31 86.876L388.707 84.338ZM510.727 79.783L524.397 48.006C525.037 46.466 525.444 45.589 525.991 45.096C526.466 44.667 527.045 44.525 527.994 44.525C530.392 44.525 530.392 45.124 530.752 48.006L534.349 79.783H510.727ZM542.335 29.886C539.757 28.905 536.044 28.702 530.512 28.702C516.602 28.702 513.964 30.016 508.209 43.087L474.634 120.311C474.155 121.749 474.514 122.23 475.833 122.23H491.061C492.26 122.23 492.501 121.749 493.1 120.311L504.012 95.372H536.026L539.025 120.311C539.145 121.749 539.145 122.23 540.345 122.23H555.573C556.892 122.23 557.491 121.749 557.491 120.311L548.617 43.087C547.658 35.042 546.461 31.458 542.335 29.886Z"),$(n,"fill","white"),$(e,"width","895"),$(e,"height","151"),$(e,"viewBox","0 0 895 151"),$(e,"fill","none"),$(e,"xmlns","http://www.w3.org/2000/svg")},m(t,s){b(t,e,s),m(e,i),m(e,n)},d(t){t&&x(e)}}}function bt(e){let i;function n(t,e){return t[0]?mt:gt}let s=n(e),o=s(e);return{c(){o.c(),i=k()},m(t,e){o.m(t,e),b(t,i,e)},p(t,[e]){s!==(s=n(t))&&(o.d(1),o=s(t),o&&(o.c(),o.m(i.parentNode,i)))},i:t,o:t,d(t){o.d(t),t&&x(i)}}}function xt(t,e,i){let{light:n=!1}=e;return t.$$set=t=>{"light"in t&&i(0,n=t.light)},[n]}class vt extends ot{constructor(t){super(),st(this,t,xt,bt,r,{light:0})}}function yt(t){let e,i,n,s,o,r;s=new vt({});const a=t[1].default,l=h(a,t,t[0],null);return{c(){e=y("aside"),i=y("div"),n=y("div"),tt(s.$$.fragment),o=w(),l&&l.c(),$(n,"class","logoContainer"),$(e,"class","svelte-1okdv0e")},m(t,a){b(t,e,a),m(e,i),m(i,n),et(s,n,null),m(i,o),l&&l.m(i,null),r=!0},p(t,[e]){l&&l.p&&(!r||1&e)&&f(l,a,t,t[0],r?d(a,t[0],e,null):p(t[0]),null)},i(t){r||(K(s.$$.fragment,t),K(l,t),r=!0)},o(t){J(s.$$.fragment,t),J(l,t),r=!1},d(t){t&&x(e),it(s),l&&l.d(t)}}}function _t(t,e,i){let{$$slots:n={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&i(0,s=t.$$scope)},[s,n]}class Ct extends ot{constructor(t){super(),st(this,t,_t,yt,r,{})}}function wt(e){let i,n,s,o,r,a,l,c=e[1].data+"";return{c(){i=y("tr"),n=y("td"),s=C(e[0]),o=w(),r=y("td"),a=y("code"),l=C(c),$(n,"class","idCell svelte-pt8vzv"),$(a,"class","mono"),$(r,"class","codeCell svelte-pt8vzv")},m(t,c){b(t,i,c),m(i,n),m(n,s),m(i,o),m(i,r),m(r,a),m(a,l),e[3](a)},p(t,[e]){1&e&&D(s,t[0]),2&e&&c!==(c=t[1].data+"")&&D(l,c)},i:t,o:t,d(t){t&&x(i),e[3](null)}}}function kt(t,e,i){let n,{id:s}=e,{artifact:o}=e;return t.$$set=t=>{"id"in t&&i(0,s=t.id),"artifact"in t&&i(1,o=t.artifact)},t.$$.update=()=>{var e,i;4&t.$$.dirty&&n&&n&&!n.classList.contains("language-python")&&"undefined"!=typeof window&&(null===(i=null===(e=window)||void 0===e?void 0:e.Prism)||void 0===i||i.highlightElement(n))},[s,o,n,function(t){I[t?"unshift":"push"]((()=>{n=t,i(2,n)}))}]}class Mt extends ot{constructor(t){super(),st(this,t,kt,wt,r,{id:0,artifact:1})}}function $t(t,e,i){const n=t.slice();return n[3]=e[i][0],n[4]=e[i][1],n}function Lt(e){let i,n;return i=new Mt({props:{id:e[3],artifact:e[4]}}),{c(){tt(i.$$.fragment)},m(t,e){et(i,t,e),n=!0},p:t,i(t){n||(K(i.$$.fragment,t),n=!0)},o(t){J(i.$$.fragment,t),n=!1},d(t){it(i,t)}}}function Dt(t){let e,i,n,s=t[0],o=[];for(let e=0;e<s.length;e+=1)o[e]=Lt($t(t,s,e));const r=t=>J(o[t],1,1,(()=>{o[t]=null}));return{c(){e=y("div"),i=y("table");for(let t=0;t<o.length;t+=1)o[t].c();$(i,"class","language-python svelte-16jj28m"),$(e,"class","tableContainer svelte-16jj28m")},m(t,s){b(t,e,s),m(e,i);for(let t=0;t<o.length;t+=1)o[t].m(i,null);n=!0},p(t,[e]){if(1&e){let n;for(s=t[0],n=0;n<s.length;n+=1){const r=$t(t,s,n);o[n]?(o[n].p(r,e),K(o[n],1)):(o[n]=Lt(r),o[n].c(),K(o[n],1),o[n].m(i,null))}for(Z(),n=s.length;n<o.length;n+=1)r(n);G()}},i(t){if(!n){for(let t=0;t<s.length;t+=1)K(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)J(o[t]);n=!1},d(t){t&&x(e),v(o,t)}}}function St(t,e,i){let{componentData:n}=e;const{data:s}=n,o=Object.entries(s).sort(((t,e)=>t[0]>e[0]?1:t[0]<e[0]?-1:0));return t.$$set=t=>{"componentData"in t&&i(1,n=t.componentData)},[o,n]}class Ot extends ot{constructor(t){super(),st(this,t,St,Dt,r,{componentData:1})}}
  /*!
       * Chart.js v3.6.0
       * https://www.chartjs.org
       * (c) 2021 Chart.js Contributors
       * Released under the MIT License
       */const Pt="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Et(t,e,i){const n=i||(t=>Array.prototype.slice.call(t));let s=!1,o=[];return function(...i){o=n(i),s||(s=!0,Pt.call(window,(()=>{s=!1,t.apply(e,o)})))}}const At=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,Tt=function(){let t=0;return function(){return t++}}();function Rt(t){return null==t}function It(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)}function Ft(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const zt=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function jt(t,e){return zt(t)?t:e}function Nt(t,e){return void 0===t?e:t}const Vt=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Bt(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function Ht(t,e,i,n){let s,o,r;if(It(t))if(o=t.length,n)for(s=o-1;s>=0;s--)e.call(i,t[s],s);else for(s=0;s<o;s++)e.call(i,t[s],s);else if(Ft(t))for(r=Object.keys(t),o=r.length,s=0;s<o;s++)e.call(i,t[r[s]],r[s])}function Wt(t,e){let i,n,s,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(s=t[i],o=e[i],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function Yt(t){if(It(t))return t.map(Yt);if(Ft(t)){const e=Object.create(null),i=Object.keys(t),n=i.length;let s=0;for(;s<n;++s)e[i[s]]=Yt(t[i[s]]);return e}return t}function Ut(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function qt(t,e,i,n){if(!Ut(t))return;const s=e[t],o=i[t];Ft(s)&&Ft(o)?Xt(s,o,n):e[t]=Yt(o)}function Xt(t,e,i){const n=It(e)?e:[e],s=n.length;if(!Ft(t))return t;const o=(i=i||{}).merger||qt;for(let r=0;r<s;++r){if(!Ft(e=n[r]))continue;const s=Object.keys(e);for(let n=0,r=s.length;n<r;++n)o(s[n],t,e,i)}return t}function Zt(t,e){return Xt(t,e,{merger:Gt})}function Gt(t,e,i){if(!Ut(t))return;const n=e[t],s=i[t];Ft(n)&&Ft(s)?Zt(n,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Yt(s))}function Kt(t,e){const i=t.indexOf(".",e);return-1===i?t.length:i}function Jt(t,e){if(""===e)return t;let i=0,n=Kt(e,i);for(;t&&n>i;)t=t[e.substr(i,n-i)],i=n+1,n=Kt(e,i);return t}function Qt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const te=t=>void 0!==t,ee=t=>"function"==typeof t,ie=Math.PI,ne=2*ie,se=ne+ie,oe=Number.POSITIVE_INFINITY,re=ie/180,ae=ie/2,le=ie/4,ce=2*ie/3,he=Math.log10,ue=Math.sign;function de(t){const e=Math.round(t);t=pe(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(he(t))),n=t/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function fe(t){return!isNaN(parseFloat(t))&&isFinite(t)}function pe(t,e,i){return Math.abs(t-e)<i}function ge(t,e,i){let n,s,o;for(n=0,s=t.length;n<s;n++)o=t[n][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function me(t){return t*(ie/180)}function be(t){return t*(180/ie)}function xe(t){if(!zt(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function ve(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ye(t,e){return(t-e+se)%ne-ie}function _e(t){return(t%ne+ne)%ne}function Ce(t,e,i,n){const s=_e(t),o=_e(e),r=_e(i),a=_e(o-s),l=_e(r-s),c=_e(s-o),h=_e(s-r);return s===o||s===r||n&&o===r||a>l&&c<h}function we(t,e,i){return Math.max(e,Math.min(i,t))}const ke=t=>0===t||1===t,Me=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*ne/i),$e=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*ne/i)+1,Le={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*ae),easeOutSine:t=>Math.sin(t*ae),easeInOutSine:t=>-.5*(Math.cos(ie*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=>ke(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=>ke(t)?t:Me(t,.075,.3),easeOutElastic:t=>ke(t)?t:$e(t,.075,.3),easeInOutElastic(t){const e=.1125;return ke(t)?t:t<.5?.5*Me(2*t,e,.45):.5+.5*$e(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-Le.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*Le.easeInBounce(2*t):.5*Le.easeOutBounce(2*t-1)+.5},De={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},Se="0123456789ABCDEF",Oe=t=>Se[15&t],Pe=t=>Se[(240&t)>>4]+Se[15&t],Ee=t=>(240&t)>>4==(15&t);function Ae(t){var e=function(t){return Ee(t.r)&&Ee(t.g)&&Ee(t.b)&&Ee(t.a)}(t)?Oe:Pe;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):""):t}function Te(t){return t+.5|0}const Re=(t,e,i)=>Math.max(Math.min(t,i),e);function Ie(t){return Re(Te(2.55*t),0,255)}function Fe(t){return Re(Te(255*t),0,255)}function ze(t){return Re(Te(t/2.55)/100,0,1)}function je(t){return Re(Te(100*t),0,100)}const Ne=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Ve=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Be(t,e,i){const n=e*Math.min(i,1-i),s=(e,s=(e+t/30)%12)=>i-n*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function He(t,e,i){const n=(n,s=(n+t/60)%6)=>i-i*e*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function We(t,e,i){const n=Be(t,1,.5);let s;for(e+i>1&&(s=1/(e+i),e*=s,i*=s),s=0;s<3;s++)n[s]*=1-e-i,n[s]+=e;return n}function Ye(t){const e=t.r/255,i=t.g/255,n=t.b/255,s=Math.max(e,i,n),o=Math.min(e,i,n),r=(s+o)/2;let a,l,c;return s!==o&&(c=s-o,l=r>.5?c/(2-s-o):c/(s+o),a=s===e?(i-n)/c+(i<n?6:0):s===i?(n-e)/c+2:(e-i)/c+4,a=60*a+.5),[0|a,l||0,r]}function Ue(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(Fe)}function qe(t,e,i){return Ue(Be,t,e,i)}function Xe(t){return(t%360+360)%360}function Ze(t){const e=Ve.exec(t);let i,n=255;if(!e)return;e[5]!==i&&(n=e[6]?Ie(+e[5]):Fe(+e[5]));const s=Xe(+e[2]),o=+e[3]/100,r=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return Ue(We,t,e,i)}(s,o,r):"hsv"===e[1]?function(t,e,i){return Ue(He,t,e,i)}(s,o,r):qe(s,o,r),{r:i[0],g:i[1],b:i[2],a:n}}const Ge={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"},Ke={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 Je;function Qe(t){Je||(Je=function(){const t={},e=Object.keys(Ke),i=Object.keys(Ge);let n,s,o,r,a;for(n=0;n<e.length;n++){for(r=a=e[n],s=0;s<i.length;s++)o=i[s],a=a.replace(o,Ge[o]);o=parseInt(Ke[r],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}(),Je.transparent=[0,0,0,0]);const e=Je[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}function ti(t,e,i){if(t){let n=Ye(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=qe(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function ei(t,e){return t?Object.assign(e||{},t):t}function ii(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=Fe(t[3]))):(e=ei(t,{r:0,g:0,b:0,a:1})).a=Fe(e.a),e}function ni(t){return"r"===t.charAt(0)?function(t){const e=Ne.exec(t);let i,n,s,o=255;if(e){if(e[7]!==i){const t=+e[7];o=255&(e[8]?Ie(t):255*t)}return i=+e[1],n=+e[3],s=+e[5],i=255&(e[2]?Ie(i):i),n=255&(e[4]?Ie(n):n),s=255&(e[6]?Ie(s):s),{r:i,g:n,b:s,a:o}}}(t):Ze(t)}class si{constructor(t){if(t instanceof si)return t;const e=typeof t;let i;var n,s,o;"object"===e?i=ii(t):"string"===e&&(o=(n=t).length,"#"===n[0]&&(4===o||5===o?s={r:255&17*De[n[1]],g:255&17*De[n[2]],b:255&17*De[n[3]],a:5===o?17*De[n[4]]:255}:7!==o&&9!==o||(s={r:De[n[1]]<<4|De[n[2]],g:De[n[3]]<<4|De[n[4]],b:De[n[5]]<<4|De[n[6]],a:9===o?De[n[7]]<<4|De[n[8]]:255})),i=s||Qe(t)||ni(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=ei(this._rgb);return t&&(t.a=ze(t.a)),t}set rgb(t){this._rgb=ii(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${ze(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):this._rgb;var t}hexString(){return this._valid?Ae(this._rgb):this._rgb}hslString(){return this._valid?function(t){if(!t)return;const e=Ye(t),i=e[0],n=je(e[1]),s=je(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${s}%, ${ze(t.a)})`:`hsl(${i}, ${n}%, ${s}%)`}(this._rgb):this._rgb}mix(t,e){const i=this;if(t){const n=i.rgb,s=t.rgb;let o;const r=e===o?.5:e,a=2*r-1,l=n.a-s.a,c=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,n.r=255&c*n.r+o*s.r+.5,n.g=255&c*n.g+o*s.g+.5,n.b=255&c*n.b+o*s.b+.5,n.a=r*n.a+(1-r)*s.a,i.rgb=n}return i}clone(){return new si(this.rgb)}alpha(t){return this._rgb.a=Fe(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=Te(.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 ti(this._rgb,2,t),this}darken(t){return ti(this._rgb,2,-t),this}saturate(t){return ti(this._rgb,1,t),this}desaturate(t){return ti(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Ye(t);i[0]=Xe(i[0]+e),i=qe(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function oi(t){return new si(t)}const ri=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;function ai(t){return ri(t)?t:oi(t)}function li(t){return ri(t)?t:oi(t).saturate(.5).darken(.1).hexString()}const ci=Object.create(null),hi=Object.create(null);function ui(t,e){if(!e)return t;const i=e.split(".");for(let e=0,n=i.length;e<n;++e){const n=i[e];t=t[n]||(t[n]=Object.create(null))}return t}function di(t,e,i){return"string"==typeof e?Xt(ui(t,e),i):Xt(ui(t,""),e)}var fi=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=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={},this.hoverBackgroundColor=(t,e)=>li(e.backgroundColor),this.hoverBorderColor=(t,e)=>li(e.borderColor),this.hoverColor=(t,e)=>li(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},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.describe(t)}set(t,e){return di(this,t,e)}get(t){return ui(this,t)}describe(t,e){return di(hi,t,e)}override(t,e){return di(ci,t,e)}route(t,e,i,n){const s=ui(this,t),o=ui(this,i),r="_"+e;Object.defineProperties(s,{[r]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=o[n];return Ft(t)?Object.assign({},e,t):Nt(t,e)},set(t){this[r]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function pi(t,e,i,n,s){let o=e[s];return o||(o=e[s]=t.measureText(s).width,i.push(s)),o>n&&(n=o),n}function gi(t,e,i,n){let s=(n=n||{}).data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(s=n.data={},o=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let r=0;const a=i.length;let l,c,h,u,d;for(l=0;l<a;l++)if(u=i[l],null!=u&&!0!==It(u))r=pi(t,s,o,r,u);else if(It(u))for(c=0,h=u.length;c<h;c++)d=u[c],null==d||It(d)||(r=pi(t,s,o,r,d));t.restore();const f=o.length/2;if(f>i.length){for(l=0;l<f;l++)delete s[o[l]];o.splice(0,f)}return r}function mi(t,e,i){const n=t.currentDevicePixelRatio,s=0!==i?Math.max(i/2,.5):0;return Math.round((e-s)*n)/n+s}function bi(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function xi(t,e,i,n){let s,o,r,a,l;const c=e.pointStyle,h=e.rotation,u=e.radius;let d=(h||0)*re;if(c&&"object"==typeof c&&(s=c.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(i,n),t.rotate(d),t.drawImage(c,-c.width/2,-c.height/2,c.width,c.height),void t.restore();if(!(isNaN(u)||u<=0)){switch(t.beginPath(),c){default:t.arc(i,n,u,0,ne),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(d)*u,n-Math.cos(d)*u),d+=ce,t.lineTo(i+Math.sin(d)*u,n-Math.cos(d)*u),d+=ce,t.lineTo(i+Math.sin(d)*u,n-Math.cos(d)*u),t.closePath();break;case"rectRounded":l=.516*u,a=u-l,o=Math.cos(d+le)*a,r=Math.sin(d+le)*a,t.arc(i-o,n-r,l,d-ie,d-ae),t.arc(i+r,n-o,l,d-ae,d),t.arc(i+o,n+r,l,d,d+ae),t.arc(i-r,n+o,l,d+ae,d+ie),t.closePath();break;case"rect":if(!h){a=Math.SQRT1_2*u,t.rect(i-a,n-a,2*a,2*a);break}d+=le;case"rectRot":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(i-o,n-r),t.lineTo(i+r,n-o),t.lineTo(i+o,n+r),t.lineTo(i-r,n+o),t.closePath();break;case"crossRot":d+=le;case"cross":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(i-o,n-r),t.lineTo(i+o,n+r),t.moveTo(i+r,n-o),t.lineTo(i-r,n+o);break;case"star":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(i-o,n-r),t.lineTo(i+o,n+r),t.moveTo(i+r,n-o),t.lineTo(i-r,n+o),d+=le,o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(i-o,n-r),t.lineTo(i+o,n+r),t.moveTo(i+r,n-o),t.lineTo(i-r,n+o);break;case"line":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(i-o,n-r),t.lineTo(i+o,n+r);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(d)*u,n+Math.sin(d)*u)}t.fill(),e.borderWidth>0&&t.stroke()}}function vi(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 yi(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function _i(t){t.restore()}function Ci(t,e,i,n,s){if(!e)return t.lineTo(i.x,i.y);if("middle"===s){const n=(e.x+i.x)/2;t.lineTo(n,e.y),t.lineTo(n,i.y)}else"after"===s!=!!n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function wi(t,e,i,n){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?i.cp2x:i.cp1x,n?i.cp2y:i.cp1y,i.x,i.y)}function ki(t,e,i,n,s,o={}){const r=It(e)?e:[e],a=o.strokeWidth>0&&""!==o.strokeColor;let l,c;for(t.save(),t.font=s.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);Rt(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,o),l=0;l<r.length;++l)c=r[l],a&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),Rt(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(c,i,n,o.maxWidth)),t.fillText(c,i,n,o.maxWidth),Mi(t,i,n,c,o),n+=s.lineHeight;t.restore()}function Mi(t,e,i,n,s){if(s.strikethrough||s.underline){const o=t.measureText(n),r=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,l=i-o.actualBoundingBoxAscent,c=i+o.actualBoundingBoxDescent,h=s.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(r,h),t.lineTo(a,h),t.stroke()}}function $i(t,e){const{x:i,y:n,w:s,h:o,radius:r}=e;t.arc(i+r.topLeft,n+r.topLeft,r.topLeft,-ae,ie,!0),t.lineTo(i,n+o-r.bottomLeft),t.arc(i+r.bottomLeft,n+o-r.bottomLeft,r.bottomLeft,ie,ae,!0),t.lineTo(i+s-r.bottomRight,n+o),t.arc(i+s-r.bottomRight,n+o-r.bottomRight,r.bottomRight,ae,0,!0),t.lineTo(i+s,n+r.topRight),t.arc(i+s-r.topRight,n+r.topRight,r.topRight,0,-ae,!0),t.lineTo(i+r.topLeft,n)}const Li=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Di=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function Si(t,e){const i=(""+t).match(Li);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}function Oi(t,e){const i={},n=Ft(e),s=n?Object.keys(e):e,o=Ft(t)?n?i=>Nt(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of s)i[t]=+o(t)||0;return i}function Pi(t){return Oi(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ei(t){return Oi(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ai(t){const e=Pi(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ti(t,e){t=t||{},e=e||fi.font;let i=Nt(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let n=Nt(t.style,e.style);n&&!(""+n).match(Di)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const s={family:Nt(t.family,e.family),lineHeight:Si(Nt(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:Nt(t.weight,e.weight),string:""};return s.string=function(t){return!t||Rt(t.size)||Rt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(s),s}function Ri(t,e,i,n){let s,o,r,a=!0;for(s=0,o=t.length;s<o;++s)if(r=t[s],void 0!==r&&(void 0!==e&&"function"==typeof r&&(r=r(e),a=!1),void 0!==i&&It(r)&&(r=r[i%r.length],a=!1),void 0!==r))return n&&!a&&(n.cacheable=!1),r}function Ii(t,e){return Object.assign(Object.create(t),e)}function Fi(t,e,i){i=i||(i=>t[i]<e);let n,s=t.length-1,o=0;for(;s-o>1;)n=o+s>>1,i(n)?o=n:s=n;return{lo:o,hi:s}}const zi=(t,e,i)=>Fi(t,i,(n=>t[n][e]<i)),ji=(t,e,i)=>Fi(t,i,(n=>t[n][e]>=i));const Ni=["push","pop","shift","splice","unshift"];function Vi(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,s=n.indexOf(e);-1!==s&&n.splice(s,1),n.length>0||(Ni.forEach((e=>{delete t[e]})),delete t._chartjs)}function Bi(t){const e=new Set;let i,n;for(i=0,n=t.length;i<n;++i)e.add(t[i]);return e.size===n?t:Array.from(e)}function Hi(t,e=[""],i=t,n,s=(()=>t[0])){te(n)||(n=tn("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:s,override:s=>Hi([s,...t],e,i,n)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,n)=>Xi(i,n,(()=>function(t,e,i,n){let s;for(const o of e)if(s=tn(Ui(o,t),i),te(s))return qi(t,s)?Ji(i,n,t,s):s}(n,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>en(t).includes(e),ownKeys:t=>en(t),set:(t,e,i)=>((t._storage||(t._storage=s()))[e]=i,delete t[e],delete t._keys,!0)})}function Wi(t,e,i,n){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Yi(t,n),setContext:e=>Wi(t,e,i,n),override:s=>Wi(t.override(s),e,i,n)};return new Proxy(s,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Xi(t,e,(()=>function(t,e,i){const{_proxy:n,_context:s,_subProxy:o,_descriptors:r}=t;let a=n[e];ee(a)&&r.isScriptable(e)&&(a=function(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t),e=e(o,r||n),a.delete(t),Ft(e)&&(e=Ji(s._scopes,s,t,e));return e}(e,a,t,i));It(a)&&a.length&&(a=function(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=i;if(te(o.index)&&n(t))e=e[o.index%e.length];else if(Ft(e[0])){const i=e,n=s._scopes.filter((t=>t!==i));e=[];for(const l of i){const i=Ji(n,s,t,l);e.push(Wi(i,o,r&&r[t],a))}}return e}(e,a,t,r.isIndexable));qi(e,a)&&(a=Wi(a,s,o&&o[e],r));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,n)=>(t[i]=n,delete e[i],!0)})}function Yi(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:i,indexable:n,isScriptable:ee(i)?i:()=>i,isIndexable:ee(n)?n:()=>n}}const Ui=(t,e)=>t?t+Qt(e):e,qi=(t,e)=>Ft(e)&&"adapters"!==t;function Xi(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const n=i();return t[e]=n,n}function Zi(t,e,i){return ee(t)?t(e,i):t}const Gi=(t,e)=>!0===t?e:"string"==typeof t?Jt(e,t):void 0;function Ki(t,e,i,n){for(const s of e){const e=Gi(i,s);if(e){t.add(e);const s=Zi(e._fallback,i,e);if(te(s)&&s!==i&&s!==n)return s}else if(!1===e&&te(n)&&i!==n)return null}return!1}function Ji(t,e,i,n){const s=e._rootScopes,o=Zi(e._fallback,i,n),r=[...t,...s],a=new Set;a.add(n);let l=Qi(a,r,i,o||i);return null!==l&&((!te(o)||o===i||(l=Qi(a,r,o,l),null!==l))&&Hi(Array.from(a),[""],s,o,(()=>function(t,e,i){const n=t._getTarget();e in n||(n[e]={});const s=n[e];if(It(s)&&Ft(i))return i;return s}(e,i,n))))}function Qi(t,e,i,n){for(;i;)i=Ki(t,e,i,n);return i}function tn(t,e){for(const i of e){if(!i)continue;const e=i[t];if(te(e))return e}}function en(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 nn=Number.EPSILON||1e-14,sn=(t,e)=>e<t.length&&!t[e].skip&&t[e],on=t=>"x"===t?"y":"x";function rn(t,e,i,n){const s=t.skip?e:t,o=e,r=i.skip?e:i,a=ve(o,s),l=ve(r,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const u=n*c,d=n*h;return{previous:{x:o.x-u*(r.x-s.x),y:o.y-u*(r.y-s.y)},next:{x:o.x+d*(r.x-s.x),y:o.y+d*(r.y-s.y)}}}function an(t,e="x"){const i=on(e),n=t.length,s=Array(n).fill(0),o=Array(n);let r,a,l,c=sn(t,0);for(r=0;r<n;++r)if(a=l,l=c,c=sn(t,r+1),l){if(c){const t=c[e]-l[e];s[r]=0!==t?(c[i]-l[i])/t:0}o[r]=a?c?ue(s[r-1])!==ue(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}!function(t,e,i){const n=t.length;let s,o,r,a,l,c=sn(t,0);for(let h=0;h<n-1;++h)l=c,c=sn(t,h+1),l&&c&&(pe(e[h],0,nn)?i[h]=i[h+1]=0:(s=i[h]/e[h],o=i[h+1]/e[h],a=Math.pow(s,2)+Math.pow(o,2),a<=9||(r=3/Math.sqrt(a),i[h]=s*r*e[h],i[h+1]=o*r*e[h])))}(t,s,o),function(t,e,i="x"){const n=on(i),s=t.length;let o,r,a,l=sn(t,0);for(let c=0;c<s;++c){if(r=a,a=l,l=sn(t,c+1),!a)continue;const s=a[i],h=a[n];r&&(o=(s-r[i])/3,a[`cp1${i}`]=s-o,a[`cp1${n}`]=h-o*e[c]),l&&(o=(l[i]-s)/3,a[`cp2${i}`]=s+o,a[`cp2${n}`]=h+o*e[c])}}(t,o,e)}function ln(t,e,i){return Math.max(Math.min(t,i),e)}function cn(t,e,i,n,s){let o,r,a,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)an(t,s);else{let i=n?t[t.length-1]:t[0];for(o=0,r=t.length;o<r;++o)a=t[o],l=rn(i,a,t[Math.min(o+1,r-(n?0:1))%r],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,n,s,o,r,a=vi(t[0],e);for(i=0,n=t.length;i<n;++i)r=o,o=a,a=i<n-1&&vi(t[i+1],e),o&&(s=t[i],r&&(s.cp1x=ln(s.cp1x,e.left,e.right),s.cp1y=ln(s.cp1y,e.top,e.bottom)),a&&(s.cp2x=ln(s.cp2x,e.left,e.right),s.cp2y=ln(s.cp2y,e.top,e.bottom)))}(t,i)}function hn(){return"undefined"!=typeof window&&"undefined"!=typeof document}function un(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function dn(t,e,i){let n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}const fn=t=>window.getComputedStyle(t,null);const pn=["top","right","bottom","left"];function gn(t,e,i){const n={};i=i?"-"+i:"";for(let s=0;s<4;s++){const o=pn[s];n[o]=parseFloat(t[e+"-"+o+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function mn(t,e){const{canvas:i,currentDevicePixelRatio:n}=e,s=fn(i),o="border-box"===s.boxSizing,r=gn(s,"padding"),a=gn(s,"border","width"),{x:l,y:c,box:h}=function(t,e){const i=t.native||t,n=i.touches,s=n&&n.length?n[0]:i,{offsetX:o,offsetY:r}=s;let a,l,c=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(o,r,i.target))a=o,l=r;else{const t=e.getBoundingClientRect();a=s.clientX-t.left,l=s.clientY-t.top,c=!0}return{x:a,y:l,box:c}}(t,i),u=r.left+(h&&a.left),d=r.top+(h&&a.top);let{width:f,height:p}=e;return o&&(f-=r.width+a.width,p-=r.height+a.height),{x:Math.round((l-u)/f*i.width/n),y:Math.round((c-d)/p*i.height/n)}}const bn=t=>Math.round(10*t)/10;function xn(t,e,i,n){const s=fn(t),o=gn(s,"margin"),r=dn(s.maxWidth,t,"clientWidth")||oe,a=dn(s.maxHeight,t,"clientHeight")||oe,l=function(t,e,i){let n,s;if(void 0===e||void 0===i){const o=un(t);if(o){const t=o.getBoundingClientRect(),r=fn(o),a=gn(r,"border","width"),l=gn(r,"padding");e=t.width-l.width-a.width,i=t.height-l.height-a.height,n=dn(r.maxWidth,o,"clientWidth"),s=dn(r.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||oe,maxHeight:s||oe}}(t,e,i);let{width:c,height:h}=l;if("content-box"===s.boxSizing){const t=gn(s,"border","width"),e=gn(s,"padding");c-=e.width+t.width,h-=e.height+t.height}return c=Math.max(0,c-o.width),h=Math.max(0,n?Math.floor(c/n):h-o.height),c=bn(Math.min(c,r,l.maxWidth)),h=bn(Math.min(h,a,l.maxHeight)),c&&!h&&(h=bn(c/2)),{width:c,height:h}}function vn(t,e,i){const n=e||1,s=Math.floor(t.height*n),o=Math.floor(t.width*n);t.height=s/n,t.width=o/n;const r=t.canvas;return r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||r.height!==s||r.width!==o)&&(t.currentDevicePixelRatio=n,r.height=s,r.width=o,t.ctx.setTransform(n,0,0,n,0,0),!0)}const yn=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function _n(t,e){const i=function(t,e){return fn(t).getPropertyValue(e)}(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Cn(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function wn(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:"middle"===n?i<.5?t.y:e.y:"after"===n?i<1?t.y:e.y:i>0?e.y:t.y}}function kn(t,e,i,n){const s={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},r=Cn(t,s,i),a=Cn(s,o,i),l=Cn(o,e,i),c=Cn(r,a,i),h=Cn(a,l,i);return Cn(c,h,i)}const Mn=new Map;function $n(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let n=Mn.get(i);return n||(n=new Intl.NumberFormat(t,e),Mn.set(i,n)),n}(e,i).format(t)}function Ln(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 Dn(t){return"angle"===t?{between:Ce,compare:ye,normalize:_e}:{between:(t,e,i)=>t>=Math.min(e,i)&&t<=Math.max(i,e),compare:(t,e)=>t-e,normalize:t=>t}}function Sn({start:t,end:e,count:i,loop:n,style:s}){return{start:t%i,end:e%i,loop:n&&(e-t+1)%i==0,style:s}}function On(t,e,i){if(!i)return[t];const{property:n,start:s,end:o}=i,r=e.length,{compare:a,between:l,normalize:c}=Dn(n),{start:h,end:u,loop:d,style:f}=function(t,e,i){const{property:n,start:s,end:o}=i,{between:r,normalize:a}=Dn(n),l=e.length;let c,h,{start:u,end:d,loop:f}=t;if(f){for(u+=l,d+=l,c=0,h=l;c<h&&r(a(e[u%l][n]),s,o);++c)u--,d--;u%=l,d%=l}return d<u&&(d+=l),{start:u,end:d,loop:f,style:t.style}}(t,e,i),p=[];let g,m,b,x=!1,v=null;const y=()=>x||l(s,b,g)&&0!==a(s,b),_=()=>!x||0===a(o,g)||l(o,b,g);for(let t=h,i=h;t<=u;++t)m=e[t%r],m.skip||(g=c(m[n]),g!==b&&(x=l(g,s,o),null===v&&y()&&(v=0===a(g,s)?t:i),null!==v&&_()&&(p.push(Sn({start:v,end:t,loop:d,count:r,style:f})),v=null),i=t,b=g));return null!==v&&p.push(Sn({start:v,end:u,loop:d,count:r,style:f})),p}function Pn(t,e,i,n){return n&&n.setContext&&i?function(t,e,i,n){const s=t._chart.getContext(),o=En(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,l=i.length,c=[];let h=o,u=e[0].start,d=u;function f(t,e,n,s){const o=a?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=o;for(;i[e%l].skip;)e+=o;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:n,style:s}),h=s,u=e%l)}}for(const t of e){u=a?u:t.start;let e,o=i[u%l];for(d=u+1;d<=t.end;d++){const a=i[d%l];e=En(n.setContext(Ii(s,{type:"segment",p0:o,p1:a,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:r}))),An(e,h)&&f(u,d-1,t.loop,h),o=a,h=e}u<d-1&&f(u,d-1,t.loop,h)}return c}(t,e,i,n):e}function En(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function An(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}
  /*!
       * Chart.js v3.6.0
       * https://www.chartjs.org
       * (c) 2021 Chart.js Contributors
       * Released under the MIT License
       */var Tn=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,n){const s=e.listeners[n],o=e.duration;s.forEach((n=>n({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=Pt.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,n)=>{if(!i.running||!i.items.length)return;const s=i.items;let o,r=s.length-1,a=!1;for(;r>=0;--r)o=s[r],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),a=!0):(s[r]=s[s.length-1],s.pop());a&&(n.draw(),this._notify(n,i,t,"progress")),s.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=s.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 n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const Rn="transparent",In={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const n=ai(t||Rn),s=n.valid&&ai(e||Rn);return s&&s.valid?s.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class Fn{constructor(t,e,i,n){const s=e[i];n=Ri([t.to,n,s,t.from]);const o=Ri([t.from,s,n]);this._active=!0,this._fn=t.fn||In[t.type||typeof o],this._easing=Le[t.easing]||Le.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=o,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=Ri([t.to,e,n,t.from]),this._from=Ri([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,n=this._prop,s=this._from,o=this._loop,r=this._to;let a;if(this._active=s!==r&&(o||e<i),!this._active)return this._target[n]=r,void this._notify(!0);e<0?this._target[n]=s:(a=e/i%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[n]=this._fn(s,r,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]()}}fi.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const zn=Object.keys(fi.animation);fi.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),fi.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),fi.describe("animations",{_fallback:"animation"}),fi.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}}}});class jn{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Ft(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const n=t[i];if(!Ft(n))return;const s={};for(const t of zn)s[t]=n[t];(It(n.properties)&&n.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,s)}))}))}_animateOptions(t,e){const i=e.options,n=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(!n)return[];const s=this._createAnimations(n,i);return i.$shared&&function(t,e){const i=[],n=Object.keys(e);for(let e=0;e<n.length;e++){const s=t[n[e]];s&&s.active()&&i.push(s.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),s}_createAnimations(t,e){const i=this._properties,n=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),r=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[a];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(t,e));continue}const c=e[l];let h=s[l];const u=i.get(l);if(h){if(u&&h.active()){h.update(u,c,r);continue}h.cancel()}u&&u.duration?(s[l]=h=new Fn(u,t,l,c),n.push(h)):t[l]=c}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(Tn.add(this._chart,i),!0):void 0}}function Nn(t,e){const i=t&&t.options||{},n=i.reverse,s=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:n?o:s,end:n?s:o}}function Vn(t,e){const i=[],n=t._getSortedDatasetMetas(e);let s,o;for(s=0,o=n.length;s<o;++s)i.push(n[s].index);return i}function Bn(t,e,i,n={}){const s=t.keys,o="single"===n.mode;let r,a,l,c;if(null!==e){for(r=0,a=s.length;r<a;++r){if(l=+s[r],l===i){if(n.all)continue;break}c=t.values[l],zt(c)&&(o||0===e||ue(e)===ue(c))&&(e+=c)}return e}}function Hn(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function Wn(t,e,i){const n=t[e]||(t[e]={});return n[i]||(n[i]={})}function Yn(t,e,i,n){for(const s of e.getMatchingVisibleMetas(n).reverse()){const e=t[s.index];if(i&&e>0||!i&&e<0)return s.index}return null}function Un(t,e){const{chart:i,_cachedMeta:n}=t,s=i._stacks||(i._stacks={}),{iScale:o,vScale:r,index:a}=n,l=o.axis,c=r.axis,h=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,r,n),u=e.length;let d;for(let t=0;t<u;++t){const i=e[t],{[l]:o,[c]:u}=i;d=(i._stacks||(i._stacks={}))[c]=Wn(s,h,o),d[a]=u,d._top=Yn(d,r,!0,n.type),d._bottom=Yn(d,r,!1,n.type)}}function qn(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function Xn(t,e){const i=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][i])return;delete e[n][i]}}}const Zn=t=>"reset"===t||"none"===t,Gn=(t,e)=>e?t:Object.assign({},t);class Kn{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.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Hn(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Xn(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,s=e.xAxisID=Nt(i.xAxisID,qn(t,"x")),o=e.yAxisID=Nt(i.yAxisID,qn(t,"y")),r=e.rAxisID=Nt(i.rAxisID,qn(t,"r")),a=e.indexAxis,l=e.iAxisID=n(a,s,o,r),c=e.vAxisID=n(a,o,s,r);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(r),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&&Vi(this._data,this),t._stacked&&Xn(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(Ft(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let n,s,o;for(n=0,s=e.length;n<s;++n)o=e[n],i[n]={x:o,y:t[o]};return i}(e);else if(i!==e){if(i){Vi(i,this);const t=this._cachedMeta;Xn(t),t._parsed=[]}e&&Object.isExtensible(e)&&(s=this,(n=e)._chartjs?n._chartjs.listeners.push(s):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[s]}}),Ni.forEach((t=>{const e="_onData"+Qt(t),i=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...t){const s=i.apply(this,t);return n._chartjs.listeners.forEach((i=>{"function"==typeof i[e]&&i[e](...t)})),s}})})))),this._syncList=[],this._data=e}var n,s}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const s=e._stacked;e._stacked=Hn(e.vScale,e),e.stack!==i.stack&&(n=!0,Xn(e),e.stack=i.stack),this._resyncElements(t),(n||s!==e._stacked)&&Un(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}parse(t,e){const{_cachedMeta:i,_data:n}=this,{iScale:s,_stacked:o}=i,r=s.axis;let a,l,c,h=0===t&&e===n.length||i._sorted,u=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,c=n;else{c=It(n[t])?this.parseArrayData(i,n,t,e):Ft(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const s=()=>null===l[r]||u&&l[r]<u[r];for(a=0;a<e;++a)i._parsed[a+t]=l=c[a],h&&(s()&&(h=!1),u=l);i._sorted=h}o&&Un(this,c)}parsePrimitiveData(t,e,i,n){const{iScale:s,vScale:o}=t,r=s.axis,a=o.axis,l=s.getLabels(),c=s===o,h=new Array(n);let u,d,f;for(u=0,d=n;u<d;++u)f=u+i,h[u]={[r]:c||s.parse(l[f],f),[a]:o.parse(e[f],f)};return h}parseArrayData(t,e,i,n){const{xScale:s,yScale:o}=t,r=new Array(n);let a,l,c,h;for(a=0,l=n;a<l;++a)c=a+i,h=e[c],r[a]={x:s.parse(h[0],c),y:o.parse(h[1],c)};return r}parseObjectData(t,e,i,n){const{xScale:s,yScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l=new Array(n);let c,h,u,d;for(c=0,h=n;c<h;++c)u=c+i,d=e[u],l[c]={x:s.parse(Jt(d,r),u),y:o.parse(Jt(d,a),u)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const n=this.chart,s=this._cachedMeta,o=e[t.axis];return Bn({keys:Vn(n,!0),values:e._stacks[t.axis]},o,s.index,{mode:i})}updateRangeFromParsed(t,e,i,n){const s=i[e.axis];let o=null===s?NaN:s;const r=n&&i._stacks[e.axis];n&&r&&(n.values=r,o=Bn(n,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,n=i._parsed,s=i._sorted&&t===i.iScale,o=n.length,r=this._getOtherScale(t),a=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:Vn(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:n,maxDefined:s}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:s?i:Number.POSITIVE_INFINITY}}(r);let u,d;function f(){d=n[u];const e=d[r.axis];return!zt(d[t.axis])||c>e||h<e}for(u=0;u<o&&(f()||(this.updateRangeFromParsed(l,t,d,a),!s));++u);if(s)for(u=o-1;u>=0;--u)if(!f()){this.updateRangeFromParsed(l,t,d,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,s,o;for(n=0,s=e.length;n<s;++n)o=e[n][t.axis],zt(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,n=e.vScale,s=this.getParsed(t);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:n?""+n.getLabelForValue(s[n.axis]):""}}_update(t){const e=this._cachedMeta;this.configure(),this._cachedDataOpts={},this.update(t||"default"),e._clip=function(t){let e,i,n,s;return Ft(t)?(e=t.top,i=t.right,n=t.bottom,s=t.left):e=i=n=s=t,{top:e,right:i,bottom:n,left:s,disabled:!1===t}}(Nt(this.options.clip,function(t,e,i){if(!1===i)return!1;const n=Nn(t,i),s=Nn(e,i);return{top:s.end,right:n.end,bottom:s.start,left:n.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,n=i.data||[],s=e.chartArea,o=[],r=this._drawStart||0,a=this._drawCount||n.length-r;let l;for(i.dataset&&i.dataset.draw(t,s,r,a),l=r;l<r+a;++l){const e=n[l];e.hidden||(e.active?o.push(e):e.draw(t,s))}for(l=0;l<o.length;++l)o[l].draw(t,s)}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 n=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];s=e.$context||(e.$context=function(t,e,i){return Ii(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),s.parsed=this.getParsed(t),s.raw=n.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=function(t,e){return Ii(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),s.dataset=n,s.index=s.datasetIndex=this.index;return s.active=!!e,s.mode=i,s}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 n="active"===e,s=this._cachedDataOpts,o=t+"-"+e,r=s[o],a=this.enableOptionSharing&&te(i);if(r)return Gn(r,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),h=n?[`${t}Hover`,"hover",t,""]:[t,""],u=l.getOptionScopes(this.getDataset(),c),d=Object.keys(fi.elements[t]),f=l.resolveNamedOptions(u,d,(()=>this.getContext(i,n)),h);return f.$shared&&(f.$shared=a,s[o]=Object.freeze(Gn(f,a))),f}_resolveAnimations(t,e,i){const n=this.chart,s=this._cachedDataOpts,o=`animation-${e}`,r=s[o];if(r)return r;let a;if(!1!==n.options.animation){const n=this.chart.config,s=n.datasetAnimationScopeKeys(this._type,e),o=n.getOptionScopes(this.getDataset(),s);a=n.createResolver(o,this.getContext(t,i,e))}const l=new jn(n,a&&a.animations);return a&&a._cacheable&&(s[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Zn(t)||this.chart._animationsDisabled}updateElement(t,e,i,n){Zn(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!Zn(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const s=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(s)||s})}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 n=i.length,s=e.length,o=Math.min(s,n);o&&this.parse(0,o),s>n?this._insertElements(n,s-n,t):s<n&&this._removeElements(s,n-s)}_insertElements(t,e,i=!0){const n=this._cachedMeta,s=n.data,o=t+e;let r;const a=t=>{for(t.length+=e,r=t.length-1;r>=o;r--)t[r]=t[r-e]};for(a(s),r=t;r<o;++r)s[r]=new this.dataElementType;this._parsing&&a(n._parsed),this.parse(t,e),i&&this.updateElements(s,t,e,"reset")}updateElements(t,e,i,n){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const n=i._parsed.splice(t,e);i._stacked&&Xn(i,n)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,n]=t;this[e](i,n)}}_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){this._sync(["_removeElements",t,e]),this._sync(["_insertElements",t,arguments.length-2])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Jn(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let n=[];for(let e=0,s=i.length;e<s;e++)n=n.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=Bi(n.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let n,s,o,r,a=e._length;const l=()=>{32767!==o&&-32768!==o&&(te(r)&&(a=Math.min(a,Math.abs(o-r)||a)),r=o)};for(n=0,s=i.length;n<s;++n)o=e.getPixelForValue(i[n]),l();for(r=void 0,n=0,s=e.ticks.length;n<s;++n)o=e.getPixelForTick(n),l();return a}function Qn(t,e,i,n){return It(t)?function(t,e,i,n){const s=i.parse(t[0],n),o=i.parse(t[1],n),r=Math.min(s,o),a=Math.max(s,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:s,end:o,min:r,max:a}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function ts(t,e,i,n){const s=t.iScale,o=t.vScale,r=s.getLabels(),a=s===o,l=[];let c,h,u,d;for(c=i,h=i+n;c<h;++c)d=e[c],u={},u[s.axis]=a||s.parse(r[c],c),l.push(Qn(d,u,o,c));return l}function es(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function is(t,e,i,n){let s=e.borderSkipped;const o={};if(!s)return void(t.borderSkipped=o);const{start:r,end:a,reverse:l,top:c,bottom:h}=function(t){let e,i,n,s,o;return t.horizontal?(e=t.base>t.x,i="left",n="right"):(e=t.base<t.y,i="bottom",n="top"),e?(s="end",o="start"):(s="start",o="end"),{start:i,end:n,reverse:e,top:s,bottom:o}}(t);"middle"===s&&i&&(t.enableBorderRadius=!0,(i._top||0)===n?s=c:(i._bottom||0)===n?s=h:(o[ns(h,r,a,l)]=!0,s=c)),o[ns(s,r,a,l)]=!0,t.borderSkipped=o}function ns(t,e,i,n){var s,o,r;return n?(r=i,t=ss(t=(s=t)===(o=e)?r:s===r?o:s,i,e)):t=ss(t,e,i),t}function ss(t,e,i){return"start"===t?e:"end"===t?i:t}function os(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}Kn.defaults={},Kn.prototype.datasetElementType=null,Kn.prototype.dataElementType=null;class rs extends Kn{parsePrimitiveData(t,e,i,n){return ts(t,e,i,n)}parseArrayData(t,e,i,n){return ts(t,e,i,n)}parseObjectData(t,e,i,n){const{iScale:s,vScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l="x"===s.axis?r:a,c="x"===o.axis?r:a,h=[];let u,d,f,p;for(u=i,d=i+n;u<d;++u)p=e[u],f={},f[s.axis]=s.parse(Jt(p,l),u),h.push(Qn(Jt(p,c),f,o,u));return h}updateRangeFromParsed(t,e,i,n){super.updateRangeFromParsed(t,e,i,n);const s=i._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:n}=e,s=this.getParsed(t),o=s._custom,r=es(o)?"["+o.start+", "+o.end+"]":""+n.getLabelForValue(s[n.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:r}}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,n){const s="reset"===n,{index:o,_cachedMeta:{vScale:r}}=this,a=r.getBasePixel(),l=r.isHorizontal(),c=this._getRuler(),h=this.resolveDataElementOptions(e,n),u=this.getSharedOptions(h),d=this.includeOptions(n,u);this.updateSharedOptions(u,n,h);for(let h=e;h<e+i;h++){const e=this.getParsed(h),i=s||Rt(e[r.axis])?{base:a,head:a}:this._calculateBarValuePixels(h),f=this._calculateBarIndexPixels(h,c),p=(e._stacks||{})[r.axis],g={horizontal:l,base:i.base,enableBorderRadius:!p||es(e._custom)||o===p._top||o===p._bottom,x:l?i.head:f.center,y:l?f.center:i.head,height:l?f.size:Math.abs(i.size),width:l?Math.abs(i.size):f.size};d&&(g.options=u||this.resolveDataElementOptions(h,t[h].active?"active":n));const m=g.options||t[h].options;is(g,m,p,o),os(g,m,c.ratio),this.updateElement(t[h],h,g,n)}}_getStacks(t,e){const i=this._cachedMeta.iScale,n=i.getMatchingVisibleMetas(this._type),s=i.options.stacked,o=n.length,r=[];let a,l;for(a=0;a<o;++a)if(l=n[a],l.controller.options.grouped){if(void 0!==e){const t=l.controller.getParsed(e)[l.controller._cachedMeta.vScale.axis];if(Rt(t)||isNaN(t))continue}if((!1===s||-1===r.indexOf(l.stack)||void 0===s&&void 0===l.stack)&&r.push(l.stack),l.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 n=this._getStacks(t,i),s=void 0!==e?n.indexOf(e):-1;return-1===s?n.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,n=[];let s,o;for(s=0,o=e.data.length;s<o;++s)n.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));const r=t.barThickness;return{min:r||Jn(e),pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i},options:{base:n,minBarLength:s}}=this,o=n||0,r=this.getParsed(t),a=r._custom,l=es(a);let c,h,u=r[e.axis],d=0,f=i?this.applyStack(e,r,i):u;f!==u&&(d=f-u,f=u),l&&(u=a.barStart,f=a.barEnd-a.barStart,0!==u&&ue(u)!==ue(a.barEnd)&&(d=0),d+=u);const p=Rt(n)||l?d:n;let g=e.getPixelForValue(p);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(d+f):g,h=c-g,Math.abs(h)<s&&(h=function(t,e,i){return 0!==t?ue(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(h,e,o)*s,u===o&&(g-=h/2),c=g+h),g===e.getPixelForValue(o)){const t=ue(h)*e.getLineWidthForValue(o)/2;g+=t,h-=t}return{size:h,base:g,head:c,center:c+h/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,s=n.skipNull,o=Nt(n.maxBarThickness,1/0);let r,a;if(e.grouped){const i=s?this._getStackCount(t):e.stackCount,l="flex"===n.barThickness?function(t,e,i,n){const s=e.pixels,o=s[t];let r=t>0?s[t-1]:null,a=t<s.length-1?s[t+1]:null;const l=i.categoryPercentage;null===r&&(r=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/n,ratio:i.barPercentage,start:c}}(t,e,n,i):function(t,e,i,n){const s=i.barThickness;let o,r;return Rt(s)?(o=e.min*i.categoryPercentage,r=i.barPercentage):(o=s*n,r=1),{chunk:o/n,ratio:r,start:e.pixels[t]-o/2}}(t,e,n,i),c=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0);r=l.start+l.chunk*c+l.chunk/2,a=Math.min(o,l.chunk*l.ratio)}else r=i.getPixelForValue(this.getParsed(t)[i.axis],t),a=Math.min(o,e.min*e.ratio);return{base:r-a/2,head:r+a/2,center:r,size:a}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,n=i.length;let s=0;for(;s<n;++s)null!==this.getParsed(s)[e.axis]&&i[s].draw(this._ctx)}}rs.id="bar",rs.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},rs.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class as extends Kn{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,n){const s=super.parsePrimitiveData(t,e,i,n);for(let t=0;t<s.length;t++)s[t]._custom=this.resolveDataElementOptions(t+i).radius;return s}parseArrayData(t,e,i,n){const s=super.parseArrayData(t,e,i,n);for(let t=0;t<s.length;t++){const n=e[i+t];s[t]._custom=Nt(n[2],this.resolveDataElementOptions(t+i).radius)}return s}parseObjectData(t,e,i,n){const s=super.parseObjectData(t,e,i,n);for(let t=0;t<s.length;t++){const n=e[i+t];s[t]._custom=Nt(n&&n.r&&+n.r,this.resolveDataElementOptions(t+i).radius)}return s}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:n}=e,s=this.getParsed(t),o=i.getLabelForValue(s.x),r=n.getLabelForValue(s.y),a=s._custom;return{label:e.label,value:"("+o+", "+r+(a?", "+a:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r}=this._cachedMeta,a=this.resolveDataElementOptions(e,n),l=this.getSharedOptions(a),c=this.includeOptions(n,l),h=o.axis,u=r.axis;for(let a=e;a<e+i;a++){const e=t[a],i=!s&&this.getParsed(a),l={},d=l[h]=s?o.getPixelForDecimal(.5):o.getPixelForValue(i[h]),f=l[u]=s?r.getBasePixel():r.getPixelForValue(i[u]);l.skip=isNaN(d)||isNaN(f),c&&(l.options=this.resolveDataElementOptions(a,e.active?"active":n),s&&(l.options.radius=0)),this.updateElement(e,a,l,n)}this.updateSharedOptions(l,n,a)}resolveDataElementOptions(t,e){const i=this.getParsed(t);let n=super.resolveDataElementOptions(t,e);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const s=n.radius;return"active"!==e&&(n.radius=0),n.radius+=Nt(i&&i._custom,s),n}}as.id="bubble",as.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},as.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class ls extends Kn{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let s,o,r=t=>+i[t];if(Ft(i[t])){const{key:t="value"}=this._parsing;r=e=>+Jt(i[e],t)}for(s=t,o=t+e;s<o;++s)n._parsed[s]=r(s)}}_getRotation(){return me(this.options.rotation-90)}_getCircumference(){return me(this.options.circumference)}_getRotationExtents(){let t=ne,e=-ne;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const n=this.chart.getDatasetMeta(i).controller,s=n._getRotation(),o=n._getCircumference();t=Math.min(t,s),e=Math.max(e,s+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,n=this._cachedMeta,s=n.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,r=Math.max((Math.min(i.width,i.height)-o)/2,0),a=Math.min((l=this.options.cutout,c=r,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const h=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:g,offsetY:m}=function(t,e,i){let n=1,s=1,o=0,r=0;if(e<ne){const a=t,l=a+e,c=Math.cos(a),h=Math.sin(a),u=Math.cos(l),d=Math.sin(l),f=(t,e,n)=>Ce(t,a,l,!0)?1:Math.max(e,e*i,n,n*i),p=(t,e,n)=>Ce(t,a,l,!0)?-1:Math.min(e,e*i,n,n*i),g=f(0,c,u),m=f(ae,h,d),b=p(ie,c,u),x=p(ie+ae,h,d);n=(g-b)/2,s=(m-x)/2,o=-(g+b)/2,r=-(m+x)/2}return{ratioX:n,ratioY:s,offsetX:o,offsetY:r}}(d,u,a),b=(i.width-o)/f,x=(i.height-o)/p,v=Math.max(Math.min(b,x)/2,0),y=Vt(this.options.radius,v),_=(y-Math.max(y*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*y,this.offsetY=m*y,n.total=this.calculateTotal(),this.outerRadius=y-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*h,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,s=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*s/ne)}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,r=o.chartArea,a=o.options.animation,l=(r.left+r.right)/2,c=(r.top+r.bottom)/2,h=s&&a.animateScale,u=h?0:this.innerRadius,d=h?0:this.outerRadius,f=this.resolveDataElementOptions(e,n),p=this.getSharedOptions(f),g=this.includeOptions(n,p);let m,b=this._getRotation();for(m=0;m<e;++m)b+=this._circumference(m,s);for(m=e;m<e+i;++m){const e=this._circumference(m,s),i=t[m],o={x:l+this.offsetX,y:c+this.offsetY,startAngle:b,endAngle:b+e,circumference:e,outerRadius:d,innerRadius:u};g&&(o.options=p||this.resolveDataElementOptions(m,i.active?"active":n)),b+=e,this.updateElement(i,m,o,n)}this.updateSharedOptions(p,n,f)}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,n=0;for(i=0;i<e.length;i++){const s=t._parsed[i];null===s||isNaN(s)||!this.chart.getDataVisibility(i)||e[i].hidden||(n+=Math.abs(s))}return n}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?ne*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=$n(e._parsed[t],i.options.locale);return{label:n[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,s,o,r,a;if(!t)for(n=0,s=i.data.datasets.length;n<s;++n)if(i.isDatasetVisible(n)){o=i.getDatasetMeta(n),t=o.data,r=o.controller,r!==this&&r.configure();break}if(!t)return 0;for(n=0,s=t.length;n<s;++n)a=r.resolveDataElementOptions(n),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,n=t.length;i<n;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(Nt(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ls.id="doughnut",ls.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},ls.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},ls.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,n)=>{const s=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return It(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class cs extends Kn{initialize(){this.enableOptionSharing=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:n=[],_dataset:s}=e,o=this.chart._animationsDisabled;let{start:r,count:a}=function(t,e,i){const n=e.length;let s=0,o=n;if(t._sorted){const{iScale:r,_parsed:a}=t,l=r.axis,{min:c,max:h,minDefined:u,maxDefined:d}=r.getUserBounds();u&&(s=we(Math.min(zi(a,r.axis,c).lo,i?n:zi(e,l,r.getPixelForValue(c)).lo),0,n-1)),o=d?we(Math.max(zi(a,r.axis,h).hi+1,i?0:zi(e,l,r.getPixelForValue(h)).hi+1),s,n)-s:n-s}return{start:s,count:o}}(e,n,o);this._drawStart=r,this._drawCount=a,function(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,s={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=s,!0;const o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,s),o}(e)&&(r=0,a=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=n;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:l},t),this.updateElements(n,r,a,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r,_stacked:a,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,n),h=this.getSharedOptions(c),u=this.includeOptions(n,h),d=o.axis,f=r.axis,{spanGaps:p,segment:g}=this.options,m=fe(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||s||"none"===n;let x=e>0&&this.getParsed(e-1);for(let c=e;c<e+i;++c){const e=t[c],i=this.getParsed(c),p=b?e:{},v=Rt(i[f]),y=p[d]=o.getPixelForValue(i[d],c),_=p[f]=s||v?r.getBasePixel():r.getPixelForValue(a?this.applyStack(r,i,a):i[f],c);p.skip=isNaN(y)||isNaN(_)||v,p.stop=c>0&&i[d]-x[d]>m,g&&(p.parsed=i,p.raw=l.data[c]),u&&(p.options=h||this.resolveDataElementOptions(c,e.active?"active":n)),b||this.updateElement(e,c,p,n),x=i}this.updateSharedOptions(h,n,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}cs.id="line",cs.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},cs.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class hs extends Kn{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=$n(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:s}}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(n/2,0),o=(s-Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=s-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,r=this.getDataset(),a=o.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,h=l.yCenter,u=l.getIndexAngle(0)-.5*ie;let d,f=u;const p=360/this.countVisibleElements();for(d=0;d<e;++d)f+=this._computeAngle(d,n,p);for(d=e;d<e+i;d++){const e=t[d];let i=f,g=f+this._computeAngle(d,n,p),m=o.getDataVisibility(d)?l.getDistanceFromCenterForValue(r.data[d]):0;f=g,s&&(a.animateScale&&(m=0),a.animateRotate&&(i=g=u));const b={x:c,y:h,innerRadius:0,outerRadius:m,startAngle:i,endAngle:g,options:this.resolveDataElementOptions(d,e.active?"active":n)};this.updateElement(e,d,b,n)}}countVisibleElements(){const t=this.getDataset(),e=this._cachedMeta;let i=0;return e.data.forEach(((e,n)=>{!isNaN(t.data[n])&&this.chart.getDataVisibility(n)&&i++})),i}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?me(this.resolveDataElementOptions(t,e).angle||i):0}}hs.id="polarArea",hs.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},hs.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,n)=>{const s=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class us extends ls{}us.id="pie",us.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class ds extends Kn{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}update(t){const e=this._cachedMeta,i=e.dataset,n=e.data||[],s=e.iScale.getLabels();if(i.points=n,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===n.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,i,n){const s=this.getDataset(),o=this._cachedMeta.rScale,r="reset"===n;for(let a=e;a<e+i;a++){const e=t[a],i=this.resolveDataElementOptions(a,e.active?"active":n),l=o.getPointPositionForValue(a,s.data[a]),c=r?o.xCenter:l.x,h=r?o.yCenter:l.y,u={x:c,y:h,angle:l.angle,skip:isNaN(c)||isNaN(h),options:i};this.updateElement(e,a,u,n)}}}ds.id="radar",ds.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},ds.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class fs extends cs{}function ps(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}fs.id="scatter",fs.defaults={showLine:!1,fill:!1},fs.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class gs{constructor(t){this.options=t||{}}formats(){return ps()}parse(t,e){return ps()}format(t,e){return ps()}add(t,e,i){return ps()}diff(t,e,i){return ps()}startOf(t,e,i){return ps()}endOf(t,e){return ps()}}gs.override=function(t){Object.assign(gs.prototype,t)};var ms={_date:gs};function bs(t,e){return"native"in t?{x:t.x,y:t.y}:mn(t,e)}function xs(t,e,i,n){const{controller:s,data:o,_sorted:r}=t,a=s._cachedMeta.iScale;if(a&&e===a.axis&&r&&o.length){const t=a._reversePixels?ji:zi;if(!n)return t(o,e,i);if(s._sharedOptions){const n=o[0],s="function"==typeof n.getRange&&n.getRange(e);if(s){const n=t(o,e,i-s),r=t(o,e,i+s);return{lo:n.lo,hi:r.hi}}}}return{lo:0,hi:o.length-1}}function vs(t,e,i,n,s){const o=t.getSortedVisibleDatasetMetas(),r=i[e];for(let t=0,i=o.length;t<i;++t){const{index:i,data:a}=o[t],{lo:l,hi:c}=xs(o[t],e,r,s);for(let t=l;t<=c;++t){const e=a[t];e.skip||n(e,i,t)}}}function ys(t,e,i,n){const s=[];if(!vi(e,t.chartArea,t._minPadding))return s;return vs(t,i,e,(function(t,i,o){t.inRange(e.x,e.y,n)&&s.push({element:t,datasetIndex:i,index:o})}),!0),s}function _s(t,e,i,n,s){const o=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){const s=e?Math.abs(t.x-n.x):0,o=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}(i);let r=Number.POSITIVE_INFINITY,a=[];if(!vi(e,t.chartArea,t._minPadding))return a;return vs(t,i,e,(function(i,l,c){if(n&&!i.inRange(e.x,e.y,s))return;const h=i.getCenterPoint(s);if(!vi(h,t.chartArea,t._minPadding)&&!i.inRange(e.x,e.y,s))return;const u=o(e,h);u<r?(a=[{element:i,datasetIndex:l,index:c}],r=u):u===r&&a.push({element:i,datasetIndex:l,index:c})})),a}function Cs(t,e,i,n){const s=bs(e,t),o=[],r=i.axis,a="x"===r?"inXRange":"inYRange";let l=!1;return function(t,e){const i=t.getSortedVisibleDatasetMetas();let n,s,o;for(let t=0,r=i.length;t<r;++t){({index:n,data:s}=i[t]);for(let t=0,i=s.length;t<i;++t)o=s[t],o.skip||e(o,n,t)}}(t,((t,e,i)=>{t[a](s[r],n)&&o.push({element:t,datasetIndex:e,index:i}),t.inRange(s.x,s.y,n)&&(l=!0)})),i.intersect&&!l?[]:o}var ws={modes:{index(t,e,i,n){const s=bs(e,t),o=i.axis||"x",r=i.intersect?ys(t,s,o,n):_s(t,s,o,!1,n),a=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,i=t.data[e];i&&!i.skip&&a.push({element:i,datasetIndex:t.index,index:e})})),a):[]},dataset(t,e,i,n){const s=bs(e,t),o=i.axis||"xy";let r=i.intersect?ys(t,s,o,n):_s(t,s,o,!1,n);if(r.length>0){const e=r[0].datasetIndex,i=t.getDatasetMeta(e).data;r=[];for(let t=0;t<i.length;++t)r.push({element:i[t],datasetIndex:e,index:t})}return r},point:(t,e,i,n)=>ys(t,bs(e,t),i.axis||"xy",n),nearest:(t,e,i,n)=>_s(t,bs(e,t),i.axis||"xy",i.intersect,n),x:(t,e,i,n)=>(i.axis="x",Cs(t,e,i,n)),y:(t,e,i,n)=>(i.axis="y",Cs(t,e,i,n))}};const ks=["left","top","right","bottom"];function Ms(t,e){return t.filter((t=>t.pos===e))}function $s(t,e){return t.filter((t=>-1===ks.indexOf(t.pos)&&t.box.axis===e))}function Ls(t,e){return t.sort(((t,i)=>{const n=e?i:t,s=e?t:i;return n.weight===s.weight?n.index-s.index:n.weight-s.weight}))}function Ds(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:n,stackWeight:s}=i;if(!t||!ks.includes(n))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:s}=e;let o,r,a;for(o=0,r=t.length;o<r;++o){a=t[o];const{fullSize:r}=a.box,l=i[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*n:r&&e.availableWidth,a.height=s):(a.width=n,a.height=c?c*s:r&&e.availableHeight)}return i}function Ss(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function Os(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 Ps(t,e,i,n){const{pos:s,box:o}=i,r=t.maxPadding;if(!Ft(s)){i.size&&(t[s]-=i.size);const e=n[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?o.height:o.width),i.size=e.size/e.count,t[s]+=i.size}o.getPadding&&Os(r,o.getPadding());const a=Math.max(0,e.outerWidth-Ss(r,t,"left","right")),l=Math.max(0,e.outerHeight-Ss(r,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 Es(t,e){const i=e.maxPadding;function n(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{n[t]=Math.max(e[t],i[t])})),n}return n(t?["left","right"]:["top","bottom"])}function As(t,e,i,n){const s=[];let o,r,a,l,c,h;for(o=0,r=t.length,c=0;o<r;++o){a=t[o],l=a.box,l.update(a.width||e.w,a.height||e.h,Es(a.horizontal,e));const{same:r,other:u}=Ps(e,i,a,n);c|=r&&s.length,h=h||u,l.fullSize||s.push(a)}return c&&As(s,e,i,n)||h}function Ts(t,e,i,n,s){t.top=i,t.left=e,t.right=e+n,t.bottom=i+s,t.width=n,t.height=s}function Rs(t,e,i,n){const s=i.padding;let{x:o,y:r}=e;for(const a of t){const t=a.box,l=n[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/l.weight||1;if(a.horizontal){const n=e.w*c,o=l.size||t.height;te(l.start)&&(r=l.start),t.fullSize?Ts(t,s.left,r,i.outerWidth-s.right-s.left,o):Ts(t,e.left+l.placed,r,n,o),l.start=r,l.placed+=n,r=t.bottom}else{const n=e.h*c,r=l.size||t.width;te(l.start)&&(o=l.start),t.fullSize?Ts(t,o,s.top,r,i.outerHeight-s.bottom-s.top):Ts(t,o,e.top+l.placed,r,n),l.start=o,l.placed+=n,o=t.right}}e.x=o,e.y=r}fi.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Is={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,n){if(!t)return;const s=Ai(t.options.layout.padding),o=Math.max(e-s.width,0),r=Math.max(i-s.height,0),a=function(t){const e=function(t){const e=[];let i,n,s,o,r,a;for(i=0,n=(t||[]).length;i<n;++i)s=t[i],({position:o,options:{stack:r,stackWeight:a=1}}=s),e.push({index:i,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return e}(t),i=Ls(e.filter((t=>t.box.fullSize)),!0),n=Ls(Ms(e,"left"),!0),s=Ls(Ms(e,"right")),o=Ls(Ms(e,"top"),!0),r=Ls(Ms(e,"bottom")),a=$s(e,"x"),l=$s(e,"y");return{fullSize:i,leftAndTop:n.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:Ms(e,"chartArea"),vertical:n.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;Ht(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,u=Object.freeze({outerWidth:e,outerHeight:i,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),d=Object.assign({},s);Os(d,Ai(n));const f=Object.assign({maxPadding:d,w:o,h:r,x:s.left,y:s.top},s),p=Ds(l.concat(c),u);As(a.fullSize,f,u,p),As(l,f,u,p),As(c,f,u,p)&&As(l,f,u,p),function(t){const e=t.maxPadding;function i(i){const n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(f),Rs(a.leftAndTop,f,u,p),f.x+=f.w,f.y+=f.h,Rs(a.rightAndBottom,f,u,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Ht(a.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h)}))}};class Fs{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,n){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):i)}}isAttached(t){return!0}updateConfig(t){}}class zs extends Fs{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const js={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ns=t=>null===t||""===t;const Vs=!!yn&&{passive:!0};function Bs(t,e,i){t.canvas.removeEventListener(e,i,Vs)}function Hs(t,e,i){const n=t.canvas,s=new MutationObserver((t=>{for(const e of t)for(const t of e.addedNodes)if(t===n||t.contains(n))return i()}));return s.observe(document,{childList:!0,subtree:!0}),s}function Ws(t,e,i){const n=t.canvas,s=new MutationObserver((t=>{for(const e of t)for(const t of e.removedNodes)if(t===n||t.contains(n))return i()}));return s.observe(document,{childList:!0,subtree:!0}),s}const Ys=new Map;let Us=0;function qs(){const t=window.devicePixelRatio;t!==Us&&(Us=t,Ys.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function Xs(t,e,i){const n=t.canvas,s=n&&un(n);if(!s)return;const o=Et(((t,e)=>{const n=s.clientWidth;i(t,e),n<s.clientWidth&&i()}),window),r=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||o(i,n)}));return r.observe(s),function(t,e){Ys.size||window.addEventListener("resize",qs),Ys.set(t,e)}(t,o),r}function Zs(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){Ys.delete(t),Ys.size||window.removeEventListener("resize",qs)}(t)}function Gs(t,e,i){const n=t.canvas,s=Et((e=>{null!==t.ctx&&i(function(t,e){const i=js[t.type]||t.type,{x:n,y:s}=mn(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==s?s:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,Vs)}(n,e,s),s}class Ks extends Fs{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,n=t.getAttribute("height"),s=t.getAttribute("width");if(t.$chartjs={initial:{height:n,width:s,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Ns(s)){const e=_n(t,"width");void 0!==e&&(t.width=e)}if(Ns(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=_n(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const i=e.$chartjs.initial;["height","width"].forEach((t=>{const n=i[t];Rt(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=i.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),s={attach:Hs,detach:Ws,resize:Xs}[e]||Gs;n[e]=s(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];if(!n)return;({attach:Zs,detach:Zs,resize:Zs}[e]||Bs)(t,e,n),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return xn(t,e,i,n)}isAttached(t){const e=un(t);return!(!e||!e.isConnected)}}class Js{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return fe(this.x)&&fe(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const n={};return t.forEach((t=>{n[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),n}}Js.defaults={},Js.defaultRoutes=void 0;const Qs={values:t=>It(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let s,o=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)&&(s="scientific"),o=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 r=he(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),$n(t,n,l)},logarithmic(t,e,i){if(0===t)return"0";const n=t/Math.pow(10,Math.floor(he(t)));return 1===n||2===n||5===n?Qs.numeric.call(this,t,e,i):""}};var to={formatters:Qs};function eo(t,e){const i=t.options.ticks,n=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),n=t._length/i+(e?0:1),s=t._maxLength/i;return Math.floor(Math.min(n,s))}(t),s=i.major.enabled?function(t){const e=[];let i,n;for(i=0,n=t.length;i<n;i++)t[i].major&&e.push(i);return e}(e):[],o=s.length,r=s[0],a=s[o-1],l=[];if(o>n)return function(t,e,i,n){let s,o=0,r=i[0];for(n=Math.ceil(n),s=0;s<t.length;s++)s===r&&(e.push(t[s]),o++,r=i[o*n])}(e,l,s,o/n),l;const c=function(t,e,i){const n=function(t){const e=t.length;let i,n;if(e<2)return!1;for(n=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==n)return!1;return n}(t),s=e.length/i;if(!n)return Math.max(s,1);const o=function(t){const e=[],i=Math.sqrt(t);let n;for(n=1;n<i;n++)t%n==0&&(e.push(n),e.push(t/n));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}(n);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>s)return e}return Math.max(s,1)}(s,e,n);if(o>0){let t,i;const n=o>1?Math.round((a-r)/(o-1)):null;for(io(e,l,c,Rt(n)?0:r-n,r),t=0,i=o-1;t<i;t++)io(e,l,c,s[t],s[t+1]);return io(e,l,c,a,Rt(n)?e.length:a+n),l}return io(e,l,c),l}function io(t,e,i,n,s){const o=Nt(n,0),r=Math.min(Nt(s,t.length),t.length);let a,l,c,h=0;for(i=Math.ceil(i),s&&(a=s-n,i=a/Math.floor(a/i)),c=o;c<0;)h++,c=Math.round(o+h*i);for(l=Math.max(o,0);l<r;l++)l===c&&(e.push(t[l]),h++,c=Math.round(o+h*i))}fi.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:to.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),fi.route("scale.ticks","color","","color"),fi.route("scale.grid","color","","borderColor"),fi.route("scale.grid","borderColor","","borderColor"),fi.route("scale.title","color","","color"),fi.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),fi.describe("scales",{_fallback:"scale"}),fi.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const no=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function so(t,e){const i=[],n=t.length/e,s=t.length;let o=0;for(;o<s;o+=n)i.push(t[Math.floor(o)]);return i}function oo(t,e,i){const n=t.ticks.length,s=Math.min(e,n-1),o=t._startPixel,r=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(s);if(!(i&&(l=1===n?Math.max(c-o,r-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(s-1))/2,c+=s<e?l:-l,c<o-a||c>r+a)))return c}function ro(t){return t.drawTicks?t.tickLength:0}function ao(t,e){if(!t.display)return 0;const i=Ti(t.font,e),n=Ai(t.padding);return(It(t.text)?t.text.length:1)*i.lineHeight+n.height}function lo(t,e,i){let n=(t=>"start"===t?"left":"end"===t?"right":"center")(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class co extends Js{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:n}=this;return t=jt(t,Number.POSITIVE_INFINITY),e=jt(e,Number.NEGATIVE_INFINITY),i=jt(i,Number.POSITIVE_INFINITY),n=jt(n,Number.NEGATIVE_INFINITY),{min:jt(t,i),max:jt(e,n),minDefined:zt(t),maxDefined:zt(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:s,maxDefined:o}=this.getUserBounds();if(s&&o)return{min:i,max:n};const r=this.getMatchingVisibleMetas();for(let a=0,l=r.length;a<l;++a)e=r[a].controller.getMinMax(this,t),s||(i=Math.min(i,e.min)),o||(n=Math.max(n,e.max));return i=o&&i>n?n:i,n=s&&i>n?i:n,{min:jt(i,jt(n,i)),max:jt(n,jt(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Bt(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:s,ticks:o}=this.options,r=o.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:n,max:s}=t,o=Vt(e,(s-n)/2),r=(t,e)=>i&&0===t?0:t+e;return{min:r(n,-Math.abs(o)),max:r(s,o)}}(this,s,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=r<this.ticks.length;this._convertTicksToLabels(a?so(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=eo(this,this.ticks),this._labelSizes=null),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(){Bt(this.options.afterUpdate,[this])}beforeSetDimensions(){Bt(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(){Bt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Bt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Bt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,n,s;for(i=0,n=t.length;i<n;i++)s=t[i],s.label=Bt(e.callback,[s.value,i,t],this)}afterTickToLabelConversion(){Bt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Bt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=this.ticks.length,n=e.minRotation||0,s=e.maxRotation;let o,r,a,l=n;if(!this._isVisible()||!e.display||n>=s||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const c=this._getLabelSizes(),h=c.widest.width,u=c.highest.height,d=we(this.chart.width-h,0,this.maxWidth);o=t.offset?this.maxWidth/i:d/(i-1),h+6>o&&(o=d/(i-(t.offset?.5:1)),r=this.maxHeight-ro(t.grid)-e.padding-ao(t.title,this.chart.options.font),a=Math.sqrt(h*h+u*u),l=be(Math.min(Math.asin(we((c.highest.height+6)/o,-1,1)),Math.asin(we(r/a,-1,1))-Math.asin(we(u/a,-1,1)))),l=Math.max(n,Math.min(s,l))),this.labelRotation=l}afterCalculateLabelRotation(){Bt(this.options.afterCalculateLabelRotation,[this])}beforeFit(){Bt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:s}}=this,o=this._isVisible(),r=this.isHorizontal();if(o){const o=ao(n,e.options.font);if(r?(t.width=this.maxWidth,t.height=ro(s)+o):(t.height=this.maxHeight,t.width=ro(s)+o),i.display&&this.ticks.length){const{first:e,last:n,widest:s,highest:o}=this._getLabelSizes(),a=2*i.padding,l=me(this.labelRotation),c=Math.cos(l),h=Math.sin(l);if(r){const e=i.mirror?0:h*s.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=i.mirror?0:c*s.width+h*o.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,n,h,c)}}this._handleMargins(),r?(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,n){const{ticks:{align:s,padding:o},position:r}=this.options,a=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,u=0;a?l?(h=n*t.width,u=i*e.height):(h=i*t.height,u=n*e.width):"start"===s?u=e.width:"end"===s?h=t.width:(h=t.width/2,u=e.width/2),this.paddingLeft=Math.max((h-r+o)*this.width/(this.width-r),0),this.paddingRight=Math.max((u-c+o)*this.width/(this.width-c),0)}else{let i=e.height/2,n=t.height/2;"start"===s?(i=0,n=t.height):"end"===s&&(i=e.height,n=0),this.paddingTop=i+o,this.paddingBottom=n+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Bt(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++)Rt(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=so(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,e){const{ctx:i,_longestTextCache:n}=this,s=[],o=[];let r,a,l,c,h,u,d,f,p,g,m,b=0,x=0;for(r=0;r<e;++r){if(c=t[r].label,h=this._resolveTickFontOptions(r),i.font=u=h.string,d=n[u]=n[u]||{data:{},gc:[]},f=h.lineHeight,p=g=0,Rt(c)||It(c)){if(It(c))for(a=0,l=c.length;a<l;++a)m=c[a],Rt(m)||It(m)||(p=pi(i,d.data,d.gc,p,m),g+=f)}else p=pi(i,d.data,d.gc,p,c),g=f;s.push(p),o.push(g),b=Math.max(p,b),x=Math.max(g,x)}!function(t,e){Ht(t,(t=>{const i=t.gc,n=i.length/2;let s;if(n>e){for(s=0;s<n;++s)delete t.data[i[s]];i.splice(0,n)}}))}(n,e);const v=s.indexOf(b),y=o.indexOf(x),_=t=>({width:s[t]||0,height:o[t]||0});return{first:_(0),last:_(e-1),widest:_(v),highest:_(y),widths:s,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 we(this._alignToPixels?mi(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 Ii(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=Ii(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=me(this.labelRotation),i=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),s=this._getLabelSizes(),o=t.autoSkipPadding||0,r=s?s.widest.width+o:0,a=s?s.highest.height+o:0;return this.isHorizontal()?a*i>r*n?r/i:a/n:a*n<r*i?a/i:r/n}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:s,position:o}=n,r=s.offset,a=this.isHorizontal(),l=this.ticks.length+(r?1:0),c=ro(s),h=[],u=s.setContext(this.getContext()),d=u.drawBorder?u.borderWidth:0,f=d/2,p=function(t){return mi(i,t,d)};let g,m,b,x,v,y,_,C,w,k,M,$;if("top"===o)g=p(this.bottom),y=this.bottom-c,C=g-f,k=p(t.top)+f,$=t.bottom;else if("bottom"===o)g=p(this.top),k=t.top,$=p(t.bottom)-f,y=g+f,C=this.top+c;else if("left"===o)g=p(this.right),v=this.right-c,_=g-f,w=p(t.left)+f,M=t.right;else if("right"===o)g=p(this.left),w=t.left,M=p(t.right)-f,v=g+f,_=this.left+c;else if("x"===e){if("center"===o)g=p((t.top+t.bottom)/2+.5);else if(Ft(o)){const t=Object.keys(o)[0],e=o[t];g=p(this.chart.scales[t].getPixelForValue(e))}k=t.top,$=t.bottom,y=g+f,C=y+c}else if("y"===e){if("center"===o)g=p((t.left+t.right)/2);else if(Ft(o)){const t=Object.keys(o)[0],e=o[t];g=p(this.chart.scales[t].getPixelForValue(e))}v=g-f,_=v-c,w=t.left,M=t.right}const L=Nt(n.ticks.maxTicksLimit,l),D=Math.max(1,Math.ceil(l/L));for(m=0;m<l;m+=D){const t=s.setContext(this.getContext(m)),e=t.lineWidth,n=t.color,o=s.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,u=t.tickColor,d=t.tickBorderDash||[],f=t.tickBorderDashOffset;b=oo(this,m,r),void 0!==b&&(x=mi(i,b,e),a?v=_=w=M=x:y=C=k=$=x,h.push({tx1:v,ty1:y,tx2:_,ty2:C,x1:w,y1:k,x2:M,y2:$,width:e,color:n,borderDash:o,borderDashOffset:l,tickWidth:c,tickColor:u,tickBorderDash:d,tickBorderDashOffset:f}))}return this._ticksLength=l,this._borderValue=g,h}_computeLabelItems(t){const e=this.axis,i=this.options,{position:n,ticks:s}=i,o=this.isHorizontal(),r=this.ticks,{align:a,crossAlign:l,padding:c,mirror:h}=s,u=ro(i.grid),d=u+c,f=h?-c:d,p=-me(this.labelRotation),g=[];let m,b,x,v,y,_,C,w,k,M,$,L,D="middle";if("top"===n)_=this.bottom-f,C=this._getXAxisLabelAlignment();else if("bottom"===n)_=this.top+f,C=this._getXAxisLabelAlignment();else if("left"===n){const t=this._getYAxisLabelAlignment(u);C=t.textAlign,y=t.x}else if("right"===n){const t=this._getYAxisLabelAlignment(u);C=t.textAlign,y=t.x}else if("x"===e){if("center"===n)_=(t.top+t.bottom)/2+d;else if(Ft(n)){const t=Object.keys(n)[0],e=n[t];_=this.chart.scales[t].getPixelForValue(e)+d}C=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===n)y=(t.left+t.right)/2-d;else if(Ft(n)){const t=Object.keys(n)[0],e=n[t];y=this.chart.scales[t].getPixelForValue(e)}C=this._getYAxisLabelAlignment(u).textAlign}"y"===e&&("start"===a?D="top":"end"===a&&(D="bottom"));const S=this._getLabelSizes();for(m=0,b=r.length;m<b;++m){x=r[m],v=x.label;const t=s.setContext(this.getContext(m));w=this.getPixelForTick(m)+s.labelOffset,k=this._resolveTickFontOptions(m),M=k.lineHeight,$=It(v)?v.length:1;const e=$/2,i=t.color,a=t.textStrokeColor,c=t.textStrokeWidth;let u;if(o?(y=w,L="top"===n?"near"===l||0!==p?-$*M+M/2:"center"===l?-S.highest.height/2-e*M+M:-S.highest.height+M/2:"near"===l||0!==p?M/2:"center"===l?S.highest.height/2-e*M:S.highest.height-$*M,h&&(L*=-1)):(_=w,L=(1-$)*M/2),t.showLabelBackdrop){const e=Ai(t.backdropPadding),i=S.heights[m],n=S.widths[m];let s=_+L-e.top,o=y-e.left;switch(D){case"middle":s-=i/2;break;case"bottom":s-=i}switch(C){case"center":o-=n/2;break;case"right":o-=n}u={left:o,top:s,width:n+e.width,height:i+e.height,color:t.backdropColor}}g.push({rotation:p,label:v,font:k,color:i,strokeColor:a,strokeWidth:c,textOffset:L,textAlign:C,textBaseline:D,translation:[y,_],backdrop:u})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-me(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align&&(i="right"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:n,padding:s}}=this.options,o=t+s,r=this._getLabelSizes().widest.width;let a,l;return"left"===e?n?(l=this.right+s,"near"===i?a="left":"center"===i?(a="center",l+=r/2):(a="right",l+=r)):(l=this.right-o,"near"===i?a="right":"center"===i?(a="center",l-=r/2):(a="left",l=this.left)):"right"===e?n?(l=this.left+s,"near"===i?a="right":"center"===i?(a="center",l-=r/2):(a="left",l-=r)):(l=this.left+o,"near"===i?a="left":"center"===i?(a="center",l+=r/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}:"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:n,width:s,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,n,s,o),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,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const r=(t,e,n)=>{n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(s=0,o=n.length;s<o;++s){const t=n[s];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({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:{grid:i}}=this,n=i.setContext(this.getContext()),s=i.drawBorder?n.borderWidth:0;if(!s)return;const o=i.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let a,l,c,h;this.isHorizontal()?(a=mi(t,this.left,s)-s/2,l=mi(t,this.right,o)+o/2,c=h=r):(c=mi(t,this.top,s)-s/2,h=mi(t,this.bottom,o)+o/2,a=l=r),e.save(),e.lineWidth=n.borderWidth,e.strokeStyle=n.borderColor,e.beginPath(),e.moveTo(a,c),e.lineTo(l,h),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&yi(e,i);const n=this._labelItems||(this._labelItems=this._computeLabelItems(t));let s,o;for(s=0,o=n.length;s<o;++s){const t=n[s],i=t.font,o=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),ki(e,o,0,t.textOffset,i,t)}i&&_i(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:n}}=this;if(!i.display)return;const s=Ti(i.font),o=Ai(i.padding),r=i.align;let a=s.lineHeight/2;"bottom"===e||"center"===e||Ft(e)?(a+=o.bottom,It(i.text)&&(a+=s.lineHeight*(i.text.length-1))):a+=o.top;const{titleX:l,titleY:c,maxWidth:h,rotation:u}=function(t,e,i,n){const{top:s,left:o,bottom:r,right:a,chart:l}=t,{chartArea:c,scales:h}=l;let u,d,f,p=0;const g=r-s,m=a-o;if(t.isHorizontal()){if(d=At(n,o,a),Ft(i)){const t=Object.keys(i)[0],n=i[t];f=h[t].getPixelForValue(n)+g-e}else f="center"===i?(c.bottom+c.top)/2+g-e:no(t,i,e);u=a-o}else{if(Ft(i)){const t=Object.keys(i)[0],n=i[t];d=h[t].getPixelForValue(n)-m+e}else d="center"===i?(c.left+c.right)/2-m+e:no(t,i,e);f=At(n,r,s),p="left"===i?-ae:ae}return{titleX:d,titleY:f,maxWidth:u,rotation:p}}(this,a,e,r);ki(t,i.text,0,0,s,{color:i.color,maxWidth:h,rotation:u,textAlign:lo(r,e,n),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=Nt(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===co.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,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",n=[];let s,o;for(s=0,o=e.length;s<o;++s){const o=e[s];o[i]!==this.id||t&&o.type!==t||n.push(o)}return n}_resolveTickFontOptions(t){return Ti(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class ho{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 n=this.items,s=t.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in n||(n[s]=t,function(t,e,i){const n=Xt(Object.create(null),[i?fi.get(i):{},fi.get(e),t.defaults]);fi.set(e,n),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const n=i.split("."),s=n.pop(),o=[t].concat(n).join("."),r=e[i].split("."),a=r.pop(),l=r.join(".");fi.route(o,s,l,a)}))}(e,t.defaultRoutes);t.descriptors&&fi.describe(e,t.descriptors)}(t,o,i),this.override&&fi.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in fi[n]&&(delete fi[n][i],this.override&&delete ci[i])}}var uo=new class{constructor(){this.controllers=new ho(Kn,"datasets",!0),this.elements=new ho(Js,"elements"),this.plugins=new ho(Object,"plugins"),this.scales=new ho(co,"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 n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):Ht(e,(e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)}))}))}_exec(t,e,i){const n=Qt(t);Bt(i["before"+n],[],i),e[t](i),Bt(i["after"+n],[],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 n=e.get(t);if(void 0===n)throw new Error('"'+t+'" is not a registered '+i+".");return n}};class fo{constructor(){this._init=[]}notify(t,e,i,n){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=n?this._descriptors(t).filter(n):this._descriptors(t),o=this._notify(s,t,e,i);return"destroy"===e&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,n){n=n||{};for(const s of t){const t=s.plugin;if(!1===Bt(t[i],[e,n,s.options],t)&&n.cancelable)return!1}return!0}invalidate(){Rt(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,n=Nt(i.options&&i.options.plugins,{}),s=function(t){const e=[],i=Object.keys(uo.plugins.items);for(let t=0;t<i.length;t++)e.push(uo.getPlugin(i[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const i=n[t];-1===e.indexOf(i)&&e.push(i)}return e}(i);return!1!==n||e?function(t,e,i,n){const s=[],o=t.getContext();for(let r=0;r<e.length;r++){const a=e[r],l=po(i[a.id],n);null!==l&&s.push({plugin:a,options:go(t.config,a,l,o)})}return s}(t,s,n,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,n=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function po(t,e){return e||!1!==t?!0===t?{}:t:null}function go(t,e,i,n){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(i,s);return t.createResolver(o,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function mo(t,e){const i=fi.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function bo(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function xo(t){const e=t.options||(t.options={});e.plugins=Nt(e.plugins,{}),e.scales=function(t,e){const i=ci[t.type]||{scales:{}},n=e.scales||{},s=mo(t.type,e),o=Object.create(null),r=Object.create(null);return Object.keys(n).forEach((t=>{const e=n[t];if(!Ft(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const a=bo(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(a,s),c=i.scales||{};o[a]=o[a]||t,r[t]=Zt(Object.create(null),[{axis:a},e,c[a],c[l]])})),t.data.datasets.forEach((i=>{const s=i.type||t.type,a=i.indexAxis||mo(s,e),l=(ci[s]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,a),s=i[e+"AxisID"]||o[e]||e;r[s]=r[s]||Object.create(null),Zt(r[s],[{axis:e},n[s],l[t]])}))})),Object.keys(r).forEach((t=>{const e=r[t];Zt(e,[fi.scales[e.type],fi.scale])})),r}(t,e)}function vo(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const yo=new Map,_o=new Set;function Co(t,e){let i=yo.get(t);return i||(i=e(),yo.set(t,i),_o.add(i)),i}const wo=(t,e,i)=>{const n=Jt(e,i);void 0!==n&&t.add(n)};class ko{constructor(t){this._config=function(t){return(t=t||{}).data=vo(t.data),xo(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=vo(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(),xo(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Co(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Co(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Co(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Co(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let n=i.get(t);return n&&!e||(n=new Map,i.set(t,n)),n}getOptionScopes(t,e,i){const{options:n,type:s}=this,o=this._cachedScopes(t,i),r=o.get(e);if(r)return r;const a=new Set;e.forEach((e=>{t&&(a.add(t),e.forEach((e=>wo(a,t,e)))),e.forEach((t=>wo(a,n,t))),e.forEach((t=>wo(a,ci[s]||{},t))),e.forEach((t=>wo(a,fi,t))),e.forEach((t=>wo(a,hi,t)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),_o.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,ci[e]||{},fi.datasets[e]||{},{type:e},fi,hi]}resolveNamedOptions(t,e,i,n=[""]){const s={$shared:!0},{resolver:o,subPrefixes:r}=Mo(this._resolverCache,t,n);let a=o;if(function(t,e){const{isScriptable:i,isIndexable:n}=Yi(t);for(const s of e){const e=i(s),o=n(s),r=(o||e)&&t[s];if(e&&(ee(r)||$o(r))||o&&It(r))return!0}return!1}(o,e)){s.$shared=!1;a=Wi(o,i=ee(i)?i():i,this.createResolver(t,i,r))}for(const t of e)s[t]=a[t];return s}createResolver(t,e,i=[""],n){const{resolver:s}=Mo(this._resolverCache,t,i);return Ft(e)?Wi(s,e,void 0,n):s}}function Mo(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const s=i.join();let o=n.get(s);if(!o){o={resolver:Hi(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},n.set(s,o)}return o}const $o=t=>Ft(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||ee(t[i])),!1);const Lo=["top","bottom","left","right","chartArea"];function Do(t,e){return"top"===t||"bottom"===t||-1===Lo.indexOf(t)&&"x"===e}function So(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function Oo(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),Bt(i&&i.onComplete,[t],e)}function Po(t){const e=t.chart,i=e.options.animation;Bt(i&&i.onProgress,[t],e)}function Eo(t){return hn()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Ao={},To=t=>{const e=Eo(t);return Object.values(Ao).filter((t=>t.canvas===e)).pop()};class Ro{constructor(t,e){const i=this.config=new ko(e),n=Eo(t),s=To(n);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!hn()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?zs:Ks}(n)),this.platform.updateConfig(i);const r=this.platform.acquireContext(n,o.aspectRatio),a=r&&r.canvas,l=a&&a.height,c=a&&a.width;this.id=Tt(),this.ctx=r,this.canvas=a,this.width=c,this.height=l,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new fo,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...n){return e?(clearTimeout(i),i=setTimeout(t,e,n)):t.apply(this,n),e}}((t=>this.update(t)),o.resizeDelay||0),Ao[this.id]=this,r&&a?(Tn.listen(this,"complete",Oo),Tn.listen(this,"progress",Po),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:n,_aspectRatio:s}=this;return Rt(t)?e&&s?s:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():vn(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return bi(this.canvas,this.ctx),this}stop(){return Tn.stop(this),this}resize(t,e){Tn.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(n,t,e,s),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,vn(this,r,!0)&&(this.notifyPlugins("resize",{size:o}),Bt(i.onResize,[this,o],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){Ht(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let s=[];e&&(s=s.concat(Object.keys(e).map((t=>{const i=e[t],n=bo(t,i),s="r"===n,o="x"===n;return{options:i,dposition:s?"chartArea":o?"bottom":"left",dtype:s?"radialLinear":o?"category":"linear"}})))),Ht(s,(e=>{const s=e.options,o=s.id,r=bo(o,s),a=Nt(s.type,e.dtype);void 0!==s.position&&Do(s.position,r)===Do(e.dposition)||(s.position=e.dposition),n[o]=!0;let l=null;if(o in i&&i[o].type===a)l=i[o];else{l=new(uo.getScale(a))({id:o,type:a,ctx:this.ctx,chart:this}),i[l.id]=l}l.init(s,t)})),Ht(n,((t,e)=>{t||delete i[e]})),Ht(i,(t=>{Is.configure(this,t,t.options),Is.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(So("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,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i<n;i++){const n=e[i];let s=this.getDatasetMeta(i);const o=n.type||this.config.type;if(s.type&&s.type!==o&&(this._destroyDatasetMeta(i),s=this.getDatasetMeta(i)),s.type=o,s.indexAxis=n.indexAxis||mo(o,this.options),s.order=n.order||0,s.index=i,s.label=""+n.label,s.visible=this.isDatasetVisible(i),s.controller)s.controller.updateIndex(i),s.controller.linkScales();else{const e=uo.getController(o),{datasetElementType:n,dataElementType:r}=fi.datasets[o];Object.assign(e.prototype,{dataElementType:uo.getElement(r),datasetElementType:n&&uo.getElement(n)}),s.controller=new e(this,i),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){Ht(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());Ht(this.scales,(t=>{Is.removeBox(this,t)}));const n=this._animationsDisabled=!i.animation;this.ensureScalesHaveIDs(),this.buildOrUpdateScales();if(((t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0})(new Set(Object.keys(this._listeners)),new Set(i.events))&&!!this._responsiveListeners===i.responsive||(this.unbindEvents(),this.bindEvents()),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!n&&-1===s.indexOf(e);e.buildOrUpdateElements(i),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),n||Ht(s,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(So("z","_idx")),this._lastEvent&&this._eventHandler(this._lastEvent,!0),this.render()}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Is.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],Ht(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 e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,ee(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),n={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(i.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Tn.has(this)?this.attached&&!Tn.running(this)&&Tn.start(this):(this.draw(),Oo({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}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 n,s;for(n=0,s=e.length;n<s;++n){const s=e[n];t&&!s.visible||i.push(s)}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,n=!i.disabled,s=this.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(n&&yi(e,{left:!1===i.left?0:s.left-i.left,right:!1===i.right?this.width:s.right+i.right,top:!1===i.top?0:s.top-i.top,bottom:!1===i.bottom?this.height:s.bottom+i.bottom}),t.controller.draw(),n&&_i(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}getElementsAtEventForMode(t,e,i,n){const s=ws.modes[e];return"function"==typeof s?s(this,t,i,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let n=i.filter((t=>t&&t._dataset===e)).pop();return n||(n={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(n)),n}getContext(){return this.$context||(this.$context=Ii(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 n=i?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,n);te(e)?(s.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(s,{visible:i}),this.update((e=>e.datasetIndex===t?n: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(),Tn.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),bi(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete Ao[this.id]}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,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};Ht(this.options.events,(t=>i(t,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(i,n)=>{t[i]&&(e.removeEventListener(this,i,n),delete t[i])},s=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const r=()=>{n("attach",r),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,n("resize",s),this._stop(),this._resize(0,0),i("attach",r)},e.isAttached(this.canvas)?r():o()}unbindEvents(){Ht(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Ht(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let s,o,r,a;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+n+"DatasetHoverStyle"]()),r=0,a=t.length;r<a;++r){o=t[r];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[n+"HoverStyle"](o.element,o.datasetIndex,o.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}}));!Wt(i,e)&&(this._active=i,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const n=this.options.hover,s=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=s(e,t),r=i?t:s(t,e);o.length&&this.updateHoverStyle(o,n.mode,!1),r.length&&n.mode&&this.updateHoverStyle(r,n.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const s=this._handleEvent(t,e);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(s||i.changed)&&this.render(),this}_handleEvent(t,e){const{_active:i=[],options:n}=this,s=n.hover,o=e;let r=[],a=!1,l=null;return"mouseout"!==t.type&&(r=this.getElementsAtEventForMode(t,s.mode,s,o),l="click"===t.type?this._lastEvent:t),this._lastEvent=null,vi(t,this.chartArea,this._minPadding)&&(Bt(n.onHover,[t,r,this],this),"mouseup"!==t.type&&"click"!==t.type&&"contextmenu"!==t.type||Bt(n.onClick,[t,r,this],this)),a=!Wt(r,i),(a||e)&&(this._active=r,this._updateHoverStyles(r,i,e)),this._lastEvent=l,a}}const Io=()=>Ht(Ro.instances,(t=>t._plugins.invalidate())),Fo=!0;function zo(t,e,i){const{startAngle:n,pixelMargin:s,x:o,y:r,outerRadius:a,innerRadius:l}=e;let c=s/a;t.beginPath(),t.arc(o,r,a,n-c,i+c),l>s?(c=s/l,t.arc(o,r,l,i+c,n-c,!0)):t.arc(o,r,s,i+ae,n-ae),t.closePath(),t.clip()}function jo(t,e,i,n){const s=Oi(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const o=(i-e)/2,r=Math.min(o,n*e/2),a=t=>{const e=(i-Math.min(o,t))*n/2;return we(t,0,Math.min(o,e))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:we(s.innerStart,0,r),innerEnd:we(s.innerEnd,0,r)}}function No(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function Vo(t,e,i,n,s){const{x:o,y:r,startAngle:a,pixelMargin:l,innerRadius:c}=e,h=Math.max(e.outerRadius+n+i-l,0),u=c>0?c+n+i+l:0;let d=0;const f=s-a;if(n){const t=((c>0?c-n:0)+(h>0?h-n:0))/2;d=(f-(0!==t?f*t/(t+n):f))/2}const p=(f-Math.max(.001,f*h-i/ie)/h)/2,g=a+p+d,m=s-p-d,{outerStart:b,outerEnd:x,innerStart:v,innerEnd:y}=jo(e,u,h,m-g),_=h-b,C=h-x,w=g+b/_,k=m-x/C,M=u+v,$=u+y,L=g+v/M,D=m-y/$;if(t.beginPath(),t.arc(o,r,h,w,k),x>0){const e=No(C,k,o,r);t.arc(e.x,e.y,x,k,m+ae)}const S=No($,m,o,r);if(t.lineTo(S.x,S.y),y>0){const e=No($,D,o,r);t.arc(e.x,e.y,y,m+ae,D+Math.PI)}if(t.arc(o,r,u,m-y/u,g+v/u,!0),v>0){const e=No(M,L,o,r);t.arc(e.x,e.y,v,L+Math.PI,g-ae)}const O=No(_,g,o,r);if(t.lineTo(O.x,O.y),b>0){const e=No(_,w,o,r);t.arc(e.x,e.y,b,g-ae,w)}t.closePath()}function Bo(t,e,i,n,s){const{options:o}=e,r="inner"===o.borderAlign;o.borderWidth&&(r?(t.lineWidth=2*o.borderWidth,t.lineJoin="round"):(t.lineWidth=o.borderWidth,t.lineJoin="bevel"),e.fullCircles&&function(t,e,i){const{x:n,y:s,startAngle:o,pixelMargin:r,fullCircles:a}=e,l=Math.max(e.outerRadius-r,0),c=e.innerRadius+r;let h;for(i&&zo(t,e,o+ne),t.beginPath(),t.arc(n,s,c,o+ne,o,!0),h=0;h<a;++h)t.stroke();for(t.beginPath(),t.arc(n,s,l,o,o+ne),h=0;h<a;++h)t.stroke()}(t,e,r),r&&zo(t,e,s),Vo(t,e,i,n,s),t.stroke())}Object.defineProperties(Ro,{defaults:{enumerable:Fo,value:fi},instances:{enumerable:Fo,value:Ao},overrides:{enumerable:Fo,value:ci},registry:{enumerable:Fo,value:uo},version:{enumerable:Fo,value:"3.6.0"},getChart:{enumerable:Fo,value:To},register:{enumerable:Fo,value:(...t)=>{uo.add(...t),Io()}},unregister:{enumerable:Fo,value:(...t)=>{uo.remove(...t),Io()}}});class Ho extends Js{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.getProps(["x","y"],i),{angle:s,distance:o}=function(t,e){const i=e.x-t.x,n=e.y-t.y,s=Math.sqrt(i*i+n*n);let o=Math.atan2(n,i);return o<-.5*ie&&(o+=ne),{angle:o,distance:s}}(n,{x:t,y:e}),{startAngle:r,endAngle:a,innerRadius:l,outerRadius:c,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2;return(h>=ne||Ce(s,r,a))&&(o>=l+u&&o<=c+u)}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:s,innerRadius:o,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:a,spacing:l}=this.options,c=(n+s)/2,h=(o+r+l+a)/2;return{x:e+Math.cos(c)*h,y:i+Math.sin(c)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/2,s=(e.spacing||0)/2;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>ne?Math.floor(i/ne):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let o=0;if(n){o=n/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*o,Math.sin(e)*o),this.circumference>=ie&&(o=n)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const r=function(t,e,i,n){const{fullCircles:s,startAngle:o,circumference:r}=e;let a=e.endAngle;if(s){Vo(t,e,i,n,o+ne);for(let e=0;e<s;++e)t.fill();isNaN(r)||(a=o+r%ne,r%ne==0&&(a+=ne))}return Vo(t,e,i,n,a),t.fill(),a}(t,this,o,s);Bo(t,this,o,s,r),t.restore()}}function Wo(t,e,i=e){t.lineCap=Nt(i.borderCapStyle,e.borderCapStyle),t.setLineDash(Nt(i.borderDash,e.borderDash)),t.lineDashOffset=Nt(i.borderDashOffset,e.borderDashOffset),t.lineJoin=Nt(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Nt(i.borderWidth,e.borderWidth),t.strokeStyle=Nt(i.borderColor,e.borderColor)}function Yo(t,e,i){t.lineTo(i.x,i.y)}function Uo(t,e,i={}){const n=t.length,{start:s=0,end:o=n-1}=i,{start:r,end:a}=e,l=Math.max(s,r),c=Math.min(o,a),h=s<r&&o<r||s>a&&o>a;return{count:n,start:l,loop:e.loop,ilen:c<l&&!h?n+c-l:c-l}}function qo(t,e,i,n){const{points:s,options:o}=e,{count:r,start:a,loop:l,ilen:c}=Uo(s,i,n),h=function(t){return t.stepped?Ci:t.tension||"monotone"===t.cubicInterpolationMode?wi:Yo}(o);let u,d,f,{move:p=!0,reverse:g}=n||{};for(u=0;u<=c;++u)d=s[(a+(g?c-u:u))%r],d.skip||(p?(t.moveTo(d.x,d.y),p=!1):h(t,f,d,g,o.stepped),f=d);return l&&(d=s[(a+(g?c:0))%r],h(t,f,d,g,o.stepped)),!!l}function Xo(t,e,i,n){const s=e.points,{count:o,start:r,ilen:a}=Uo(s,i,n),{move:l=!0,reverse:c}=n||{};let h,u,d,f,p,g,m=0,b=0;const x=t=>(r+(c?a-t:t))%o,v=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(l&&(u=s[x(0)],t.moveTo(u.x,u.y)),h=0;h<=a;++h){if(u=s[x(h)],u.skip)continue;const e=u.x,i=u.y,n=0|e;n===d?(i<f?f=i:i>p&&(p=i),m=(b*m+e)/++b):(v(),t.lineTo(e,i),d=n,b=0,f=p=i),g=i}v()}function Zo(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i)?Xo:qo}Ho.id="arc",Ho.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},Ho.defaultRoutes={backgroundColor:"backgroundColor"};const Go="function"==typeof Path2D;function Ko(t,e,i,n){Go&&!e.options.segment?function(t,e,i,n){let s=e._path;s||(s=e._path=new Path2D,e.path(s,i,n)&&s.closePath()),Wo(t,e.options),t.stroke(s)}(t,e,i,n):function(t,e,i,n){const{segments:s,options:o}=e,r=Zo(e);for(const a of s)Wo(t,o,a.style),t.beginPath(),r(t,e,a,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}class Jo extends Js{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 n=i.spanGaps?this._loop:this._fullLoop;cn(this._points,i,t,n,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,n=t.options.spanGaps,s=i.length;if(!s)return[];const o=!!t._loop,{start:r,end:a}=function(t,e,i,n){let s=0,o=e-1;if(i&&!n)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,i&&(o+=s);o>s&&t[o%e].skip;)o--;return o%=e,{start:s,end:o}}(i,s,o,n);return Pn(t,!0===n?[{start:r,end:a,loop:o}]:function(t,e,i,n){const s=t.length,o=[];let r,a=e,l=t[e];for(r=e+1;r<=i;++r){const i=t[r%s];i.skip||i.stop?l.skip||(n=!1,o.push({start:e%s,end:(r-1)%s,loop:n}),e=a=i.stop?r:null):(a=r,l.skip&&(e=r)),l=i}return null!==a&&o.push({start:e%s,end:a%s,loop:n}),o}(i,r,a<r?a+s:a,!!t._fullLoop&&0===r&&a===s-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,n=t[e],s=this.points,o=function(t,e){const i=[],n=t.segments;for(let s=0;s<n.length;s++){const o=On(n[s],t.points,e);o.length&&i.push(...o)}return i}(this,{property:e,start:n,end:n});if(!o.length)return;const r=[],a=function(t){return t.stepped?wn:t.tension||"monotone"===t.cubicInterpolationMode?kn:Cn}(i);let l,c;for(l=0,c=o.length;l<c;++l){const{start:c,end:h}=o[l],u=s[c],d=s[h];if(u===d){r.push(u);continue}const f=a(u,d,Math.abs((n-u[e])/(d[e]-u[e])),i.stepped);f[e]=t[e],r.push(f)}return 1===r.length?r[0]:r}pathSegment(t,e,i){return Zo(this)(t,this,e,i)}path(t,e,i){const n=this.segments,s=Zo(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const r of n)o&=s(t,this,r,{start:e,end:e+i-1});return!!o}draw(t,e,i,n){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),Ko(t,this,i,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Qo(t,e,i,n){const s=t.options,{[i]:o}=t.getProps([i],n);return Math.abs(e-o)<s.radius+s.hitRadius}Jo.id="line",Jo.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Jo.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Jo.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class tr extends Js{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 n=this.options,{x:s,y:o}=this.getProps(["x","y"],i);return Math.pow(t-s,2)+Math.pow(e-o,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return Qo(this,t,"x",e)}inYRange(t,e){return Qo(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||!vi(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,xi(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function er(t,e){const{x:i,y:n,base:s,width:o,height:r}=t.getProps(["x","y","base","width","height"],e);let a,l,c,h,u;return t.horizontal?(u=r/2,a=Math.min(i,s),l=Math.max(i,s),c=n-u,h=n+u):(u=o/2,a=i-u,l=i+u,c=Math.min(n,s),h=Math.max(n,s)),{left:a,top:c,right:l,bottom:h}}function ir(t,e,i,n){return t?0:we(e,i,n)}function nr(t){const e=er(t),i=e.right-e.left,n=e.bottom-e.top,s=function(t,e,i){const n=t.options.borderWidth,s=t.borderSkipped,o=Pi(n);return{t:ir(s.top,o.top,0,i),r:ir(s.right,o.right,0,e),b:ir(s.bottom,o.bottom,0,i),l:ir(s.left,o.left,0,e)}}(t,i/2,n/2),o=function(t,e,i){const{enableBorderRadius:n}=t.getProps(["enableBorderRadius"]),s=t.options.borderRadius,o=Ei(s),r=Math.min(e,i),a=t.borderSkipped,l=n||Ft(s);return{topLeft:ir(!l||a.top||a.left,o.topLeft,0,r),topRight:ir(!l||a.top||a.right,o.topRight,0,r),bottomLeft:ir(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:ir(!l||a.bottom||a.right,o.bottomRight,0,r)}}(t,i/2,n/2);return{outer:{x:e.left,y:e.top,w:i,h:n,radius:o},inner:{x:e.left+s.l,y:e.top+s.t,w:i-s.l-s.r,h:n-s.t-s.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,o.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(s.b,s.r))}}}}function sr(t,e,i,n){const s=null===e,o=null===i,r=t&&!(s&&o)&&er(t,n);return r&&(s||e>=r.left&&e<=r.right)&&(o||i>=r.top&&i<=r.bottom)}function or(t,e){t.rect(e.x,e.y,e.w,e.h)}function rr(t,e,i={}){const n=t.x!==i.x?-e:0,s=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-n,r=(t.y+t.h!==i.y+i.h?e:0)-s;return{x:t.x+n,y:t.y+s,w:t.w+o,h:t.h+r,radius:t.radius}}tr.id="point",tr.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},tr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class ar extends Js{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:n}}=this,{inner:s,outer:o}=nr(this),r=(a=o.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?$i:or;var a;t.save(),o.w===s.w&&o.h===s.h||(t.beginPath(),r(t,rr(o,e,s)),t.clip(),r(t,rr(s,-e,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),r(t,rr(s,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,i){return sr(this,t,e,i)}inXRange(t,e){return sr(this,t,null,e)}inYRange(t,e){return sr(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:n,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+n)/2:e,y:s?i:(i+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}ar.id="bar",ar.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},ar.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};const lr={average(t){if(!t.length)return!1;let e,i,n=0,s=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();n+=t.x,s+=t.y,++o}}return{x:n/o,y:s/o}},nearest(t,e){if(!t.length)return!1;let i,n,s,o=e.x,r=e.y,a=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i<n;++i){const n=t[i].element;if(n&&n.hasValue()){const t=ve(e,n.getCenterPoint());t<a&&(a=t,s=n)}}if(s){const t=s.tooltipPosition();o=t.x,r=t.y}return{x:o,y:r}}};function cr(t,e){return e&&(It(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function hr(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function ur(t,e){const{element:i,datasetIndex:n,index:s}=e,o=t.getDatasetMeta(n).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:t,label:r,parsed:o.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function dr(t,e){const i=t._chart.ctx,{body:n,footer:s,title:o}=t,{boxWidth:r,boxHeight:a}=e,l=Ti(e.bodyFont),c=Ti(e.titleFont),h=Ti(e.footerFont),u=o.length,d=s.length,f=n.length,p=Ai(e.padding);let g=p.height,m=0,b=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(b+=t.beforeBody.length+t.afterBody.length,u&&(g+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),b){g+=f*(e.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(b-f)*l.lineHeight+(b-1)*e.bodySpacing}d&&(g+=e.footerMarginTop+d*h.lineHeight+(d-1)*e.footerSpacing);let x=0;const v=function(t){m=Math.max(m,i.measureText(t).width+x)};return i.save(),i.font=c.string,Ht(t.title,v),i.font=l.string,Ht(t.beforeBody.concat(t.afterBody),v),x=e.displayColors?r+2+e.boxPadding:0,Ht(n,(t=>{Ht(t.before,v),Ht(t.lines,v),Ht(t.after,v)})),x=0,i.font=h.string,Ht(t.footer,v),i.restore(),m+=p.width,{width:m,height:g}}function fr(t,e,i,n){const{x:s,width:o}=i,{width:r,chartArea:{left:a,right:l}}=t;let c="center";return"center"===n?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),function(t,e,i,n){const{x:s,width:o}=n,r=i.caretSize+i.caretPadding;return"left"===t&&s+o+r>e.width||"right"===t&&s-o-r<0||void 0}(c,t,e,i)&&(c="center"),c}function pr(t,e,i){const n=e.yAlign||function(t,e){const{y:i,height:n}=e;return i<n/2?"top":i>t.height-n/2?"bottom":"center"}(t,i);return{xAlign:e.xAlign||fr(t,e,i,n),yAlign:n}}function gr(t,e,i,n){const{caretSize:s,caretPadding:o,cornerRadius:r}=t,{xAlign:a,yAlign:l}=i,c=s+o,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=Ei(r);let p=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,a);const g=function(t,e,i){let{y:n,height:s}=t;return"top"===e?n+=i:n-="bottom"===e?s+i:s/2,n}(e,l,c);return"center"===l?"left"===a?p+=c:"right"===a&&(p-=c):"left"===a?p-=Math.max(h,d)+o:"right"===a&&(p+=Math.max(u,f)+o),{x:we(p,0,n.width-e.width),y:we(g,0,n.height-e.height)}}function mr(t,e,i){const n=Ai(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function br(t){return cr([],hr(t))}function xr(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}(class extends Js{constructor(t){super(),this.opacity=0,this._active=[],this._chart=t._chart,this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,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()),n=i.enabled&&e.options.animation&&i.animations,s=new jn(this._chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=(t=this._chart.getContext(),e=this,i=this._tooltipItems,Ii(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,n=i.beforeTitle.apply(this,[t]),s=i.title.apply(this,[t]),o=i.afterTitle.apply(this,[t]);let r=[];return r=cr(r,hr(n)),r=cr(r,hr(s)),r=cr(r,hr(o)),r}getBeforeBody(t,e){return br(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,n=[];return Ht(t,(t=>{const e={before:[],lines:[],after:[]},s=xr(i,t);cr(e.before,hr(s.beforeLabel.call(this,t))),cr(e.lines,s.label.call(this,t)),cr(e.after,hr(s.afterLabel.call(this,t))),n.push(e)})),n}getAfterBody(t,e){return br(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,n=i.beforeFooter.apply(this,[t]),s=i.footer.apply(this,[t]),o=i.afterFooter.apply(this,[t]);let r=[];return r=cr(r,hr(n)),r=cr(r,hr(s)),r=cr(r,hr(o)),r}_createItems(t){const e=this._active,i=this._chart.data,n=[],s=[],o=[];let r,a,l=[];for(r=0,a=e.length;r<a;++r)l.push(ur(this._chart,e[r]));return t.filter&&(l=l.filter(((e,n,s)=>t.filter(e,n,s,i)))),t.itemSort&&(l=l.sort(((e,n)=>t.itemSort(e,n,i)))),Ht(l,(e=>{const i=xr(t.callbacks,e);n.push(i.labelColor.call(this,e)),s.push(i.labelPointStyle.call(this,e)),o.push(i.labelTextColor.call(this,e))})),this.labelColors=n,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let s,o=[];if(n.length){const t=lr[i.position].call(this,n,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=dr(this,i),r=Object.assign({},t,e),a=pr(this._chart,i,r),l=gr(i,r,a,this._chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,s={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this._chart,tooltip:this,replay:e})}drawCaret(t,e,i,n){const s=this.getCaretPosition(t,i,n);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:s}=this,{caretSize:o,cornerRadius:r}=i,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:h}=Ei(r),{x:u,y:d}=t,{width:f,height:p}=e;let g,m,b,x,v,y;return"center"===s?(v=d+p/2,"left"===n?(g=u,m=g-o,x=v+o,y=v-o):(g=u+f,m=g+o,x=v-o,y=v+o),b=g):(m="left"===n?u+Math.max(a,c)+o:"right"===n?u+f-Math.max(l,h)-o:this.caretX,"top"===s?(x=d,v=x-o,g=m-o,b=m+o):(x=d+p,v=x+o,g=m+o,b=m-o),y=x),{x1:g,x2:m,x3:b,y1:x,y2:v,y3:y}}drawTitle(t,e,i){const n=this.title,s=n.length;let o,r,a;if(s){const l=Ln(i.rtl,this.x,this.width);for(t.x=mr(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",o=Ti(i.titleFont),r=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,a=0;a<s;++a)e.fillText(n[a],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r,a+1===s&&(t.y+=i.titleMarginBottom-r)}}_drawColorBox(t,e,i,n,s){const o=this.labelColors[i],r=this.labelPointStyles[i],{boxHeight:a,boxWidth:l,boxPadding:c}=s,h=Ti(s.bodyFont),u=mr(this,"left",s),d=n.x(u),f=a<h.lineHeight?(h.lineHeight-a)/2:0,p=e.y+f;if(s.usePointStyle){const e={radius:Math.min(l,a)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},i=n.leftForLtr(d,l)+l/2,c=p+a/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,xi(t,e,i,c),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,xi(t,e,i,c)}else{t.lineWidth=o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=n.leftForLtr(d,l-c),i=n.leftForLtr(n.xPlus(d,1),l-c-2),r=Ei(o.borderRadius);Object.values(r).some((t=>0!==t))?(t.beginPath(),t.fillStyle=s.multiKeyBackground,$i(t,{x:e,y:p,w:l,h:a,radius:r}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),$i(t,{x:i,y:p+1,w:l-2,h:a-2,radius:r}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,p,l,a),t.strokeRect(e,p,l,a),t.fillStyle=o.backgroundColor,t.fillRect(i,p+1,l-2,a-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:s,bodyAlign:o,displayColors:r,boxHeight:a,boxWidth:l,boxPadding:c}=i,h=Ti(i.bodyFont);let u=h.lineHeight,d=0;const f=Ln(i.rtl,this.x,this.width),p=function(i){e.fillText(i,f.x(t.x+d),t.y+u/2),t.y+=u+s},g=f.textAlign(o);let m,b,x,v,y,_,C;for(e.textAlign=o,e.textBaseline="middle",e.font=h.string,t.x=mr(this,g,i),e.fillStyle=i.bodyColor,Ht(this.beforeBody,p),d=r&&"right"!==g?"center"===o?l/2+c:l+2+c:0,v=0,_=n.length;v<_;++v){for(m=n[v],b=this.labelTextColors[v],e.fillStyle=b,Ht(m.before,p),x=m.lines,r&&x.length&&(this._drawColorBox(e,t,v,f,i),u=Math.max(h.lineHeight,a)),y=0,C=x.length;y<C;++y)p(x[y]),u=h.lineHeight;Ht(m.after,p)}d=0,u=h.lineHeight,Ht(this.afterBody,p),t.y-=s}drawFooter(t,e,i){const n=this.footer,s=n.length;let o,r;if(s){const a=Ln(i.rtl,this.x,this.width);for(t.x=mr(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=a.textAlign(i.footerAlign),e.textBaseline="middle",o=Ti(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,r=0;r<s;++r)e.fillText(n[r],a.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,n){const{xAlign:s,yAlign:o}=this,{x:r,y:a}=t,{width:l,height:c}=i,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=Ei(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(r+h,a),"top"===o&&this.drawCaret(t,e,i,n),e.lineTo(r+l-u,a),e.quadraticCurveTo(r+l,a,r+l,a+u),"center"===o&&"right"===s&&this.drawCaret(t,e,i,n),e.lineTo(r+l,a+c-f),e.quadraticCurveTo(r+l,a+c,r+l-f,a+c),"bottom"===o&&this.drawCaret(t,e,i,n),e.lineTo(r+d,a+c),e.quadraticCurveTo(r,a+c,r,a+c-d),"center"===o&&"left"===s&&this.drawCaret(t,e,i,n),e.lineTo(r,a+h),e.quadraticCurveTo(r,a,r+h,a),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this._chart,i=this.$animations,n=i&&i.x,s=i&&i.y;if(n||s){const i=lr[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=dr(this,t),r=Object.assign({},i,this._size),a=pr(e,t,r),l=gr(t,r,a,e);n._to===l.x&&s._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=Ai(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,n,e),function(t,e){let i,n;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}(t,e.textDirection),s.y+=o.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),function(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=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}})),s=!Wt(i,n),o=this._positionChanged(n,e);(s||o)&&(this._active=n,this._eventPosition=e,this.update(!0))}handleEvent(t,e){const i=this.options,n=this._active||[];let s=!1,o=[];"mouseout"!==t.type&&(o=this._chart.getElementsAtEventForMode(t,i.mode,i,e),i.reverse&&o.reverse());const r=this._positionChanged(o,t);return s=e||!Wt(o,n)||r,s&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_positionChanged(t,e){const{caretX:i,caretY:n,options:s}=this,o=lr[s.position].call(this,t,e);return!1!==o&&(i!==o.x||n!==o.y)}}).positioners=lr;function vr(t,e,i){const n=t.indexOf(e);if(-1===n)return((t,e,i)=>"string"==typeof e?t.push(e)-1:isNaN(e)?null:i)(t,e,i);return n!==t.lastIndexOf(e)?i:n}class yr extends co{constructor(t){super(t),this._startValue=void 0,this._valueRange=0}parse(t,e){if(Rt(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:we(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:vr(i,t,Nt(e,t)),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,n=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)n.push({value:i});return n}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]: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 _r(t,e){const i=[],{bounds:n,step:s,min:o,max:r,precision:a,count:l,maxTicks:c,maxDigits:h,includeBounds:u}=t,d=s||1,f=c-1,{min:p,max:g}=e,m=!Rt(o),b=!Rt(r),x=!Rt(l),v=(g-p)/(h+1);let y,_,C,w,k=de((g-p)/f/d)*d;if(k<1e-14&&!m&&!b)return[{value:p},{value:g}];w=Math.ceil(g/k)-Math.floor(p/k),w>f&&(k=de(w*k/f/d)*d),Rt(a)||(y=Math.pow(10,a),k=Math.ceil(k*y)/y),"ticks"===n?(_=Math.floor(p/k)*k,C=Math.ceil(g/k)*k):(_=p,C=g),m&&b&&s&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((r-o)/s,k/1e3)?(w=Math.round(Math.min((r-o)/k,c)),k=(r-o)/w,_=o,C=r):x?(_=m?o:_,C=b?r:C,w=l-1,k=(C-_)/w):(w=(C-_)/k,w=pe(w,Math.round(w),k/1e3)?Math.round(w):Math.ceil(w));const M=Math.max(xe(k),xe(_));y=Math.pow(10,Rt(a)?M:a),_=Math.round(_*y)/y,C=Math.round(C*y)/y;let $=0;for(m&&(u&&_!==o?(i.push({value:o}),_<o&&$++,pe(Math.round((_+$*k)*y)/y,o,Cr(o,v,t))&&$++):_<o&&$++);$<w;++$)i.push({value:Math.round((_+$*k)*y)/y});return b&&u&&C!==r?i.length&&pe(i[i.length-1].value,r,Cr(r,v,t))?i[i.length-1].value=r:i.push({value:r}):b&&C!==r||i.push({value:C}),i}function Cr(t,e,{horizontal:i,minRotation:n}){const s=me(n),o=(i?Math.sin(s):Math.cos(s))||.001,r=.75*e*(""+t).length;return Math.min(e/o,r)}yr.id="category",yr.defaults={ticks:{callback:yr.prototype.getLabelForValue}};class wr extends co{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 Rt(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:n,max:s}=this;const o=t=>n=e?n:t,r=t=>s=i?s:t;if(t){const t=ue(n),e=ue(s);t<0&&e<0?r(0):t>0&&e>0&&o(0)}if(n===s){let e=1;(s>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*s)),r(s+e),t||o(n-e)}this.min=n,this.max=s}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} 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 n=_r({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&&ge(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const n=(i-e)/Math.max(t.length-1,1)/2;e-=n,i+=n}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return $n(t,this.chart.options.locale)}}class kr extends wr{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=zt(t)?t:0,this.max=zt(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=me(this.options.ticks.minRotation),n=(t?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/n))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Mr(t){return 1===t/Math.pow(10,Math.floor(he(t)))}kr.id="linear",kr.defaults={ticks:{callback:to.formatters.numeric}};class $r extends co{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=wr.prototype.parse.apply(this,[t,e]);if(0!==i)return zt(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=zt(t)?Math.max(0,t):null,this.max=zt(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const s=e=>i=t?i:e,o=t=>n=e?n:t,r=(t,e)=>Math.pow(10,Math.floor(he(t))+e);i===n&&(i<=0?(s(1),o(10)):(s(r(i,-1)),o(r(n,1)))),i<=0&&s(r(n,-1)),n<=0&&o(r(i,1)),this._zero&&this.min!==this._suggestedMin&&i===r(this.min,0)&&s(r(i,-1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor(he(e.max)),n=Math.ceil(e.max/Math.pow(10,i)),s=[];let o=jt(t.min,Math.pow(10,Math.floor(he(e.min)))),r=Math.floor(he(o)),a=Math.floor(o/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{s.push({value:o,major:Mr(o)}),++a,10===a&&(a=1,++r,l=r>=0?1:l),o=Math.round(a*Math.pow(10,r)*l)/l}while(r<i||r===i&&a<n);const c=jt(t.max,o);return s.push({value:c,major:Mr(o)}),s}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&ge(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":$n(t,this.chart.options.locale)}configure(){const t=this.min;super.configure(),this._startValue=he(t),this._valueRange=he(this.max)-he(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(he(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Lr(t){const e=t.ticks;if(e.display&&t.display){const t=Ai(e.backdropPadding);return Nt(e.font&&e.font.size,fi.font.size)+t.height}return 0}function Dr(t,e,i,n,s){return t===n||t===s?{start:e-i/2,end:e+i/2}:t<n||t>s?{start:e-i,end:e}:{start:e,end:e+i}}function Sr(t){const e={l:0,r:t.width,t:0,b:t.height-t.paddingTop},i={},n=[],s=[],o=t.getLabels().length;for(let c=0;c<o;c++){const o=t.options.pointLabels.setContext(t.getPointLabelContext(c));s[c]=o.padding;const h=t.getPointPosition(c,t.drawingArea+s[c]),u=Ti(o.font),d=(r=t.ctx,a=u,l=It(l=t._pointLabels[c])?l:[l],{w:gi(r,a.string,l),h:l.length*a.lineHeight});n[c]=d;const f=t.getIndexAngle(c),p=be(f),g=Dr(p,h.x,d.w,0,180),m=Dr(p,h.y,d.h,90,270);g.start<e.l&&(e.l=g.start,i.l=f),g.end>e.r&&(e.r=g.end,i.r=f),m.start<e.t&&(e.t=m.start,i.t=f),m.end>e.b&&(e.b=m.end,i.b=f)}var r,a,l;t._setReductions(t.drawingArea,e,i),t._pointLabelItems=function(t,e,i){const n=[],s=t.getLabels().length,o=t.options,r=Lr(o),a=t.getDistanceFromCenterForValue(o.ticks.reverse?t.min:t.max);for(let o=0;o<s;o++){const s=0===o?r/2:0,l=t.getPointPosition(o,a+s+i[o]),c=be(t.getIndexAngle(o)),h=e[o],u=Er(l.y,h.h,c),d=Or(c),f=Pr(l.x,h.w,d);n.push({x:l.x,y:u,textAlign:d,left:f,top:u,right:f+h.w,bottom:u+h.h})}return n}(t,n,s)}function Or(t){return 0===t||180===t?"center":t<180?"left":"right"}function Pr(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Er(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function Ar(t,e,i,n){const{ctx:s}=t;if(i)s.arc(t.xCenter,t.yCenter,e,0,ne);else{let i=t.getPointPosition(0,e);s.moveTo(i.x,i.y);for(let o=1;o<n;o++)i=t.getPointPosition(o,e),s.lineTo(i.x,i.y)}}function Tr(t){return fe(t)?t:0}$r.id="logarithmic",$r.defaults={ticks:{callback:to.formatters.logarithmic,major:{enabled:!0}}};class Rr extends wr{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){this.width=this.maxWidth,this.height=this.maxHeight,this.paddingTop=Lr(this.options)/2,this.xCenter=Math.floor(this.width/2),this.yCenter=Math.floor((this.height-this.paddingTop)/2),this.drawingArea=Math.min(this.height-this.paddingTop,this.width)/2}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=zt(t)&&!isNaN(t)?t:0,this.max=zt(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Lr(this.options))}generateTickLabels(t){wr.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=Bt(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""}))}fit(){const t=this.options;t.display&&t.pointLabels.display?Sr(this):this.setCenterPoint(0,0,0,0)}_setReductions(t,e,i){let n=e.l/Math.sin(i.l),s=Math.max(e.r-this.width,0)/Math.sin(i.r),o=-e.t/Math.cos(i.t),r=-Math.max(e.b-(this.height-this.paddingTop),0)/Math.cos(i.b);n=Tr(n),s=Tr(s),o=Tr(o),r=Tr(r),this.drawingArea=Math.max(t/2,Math.min(Math.floor(t-(n+s)/2),Math.floor(t-(o+r)/2))),this.setCenterPoint(n,s,o,r)}setCenterPoint(t,e,i,n){const s=this.width-e-this.drawingArea,o=t+this.drawingArea,r=i+this.drawingArea,a=this.height-this.paddingTop-n-this.drawingArea;this.xCenter=Math.floor((o+s)/2+this.left),this.yCenter=Math.floor((r+a)/2+this.top+this.paddingTop)}getIndexAngle(t){return _e(t*(ne/this.getLabels().length)+me(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(Rt(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Rt(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];return function(t,e,i){return Ii(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e){const i=this.getIndexAngle(t)-ae;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:n,bottom:s}=this._pointLabelItems[t];return{left:e,top:i,right:n,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),Ar(this,this.getDistanceFromCenterForValue(this._endValue),e,this.getLabels().length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:n}=e,s=this.getLabels().length;let o,r,a;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:n}}=t;for(let s=e-1;s>=0;s--){const e=n.setContext(t.getPointLabelContext(s)),o=Ti(e.font),{x:r,y:a,textAlign:l,left:c,top:h,right:u,bottom:d}=t._pointLabelItems[s],{backdropColor:f}=e;if(!Rt(f)){const t=Ai(e.backdropPadding);i.fillStyle=f,i.fillRect(c-t.left,h-t.top,u-c+t.width,d-h+t.height)}ki(i,t._pointLabels[s],r,a+o.lineHeight/2,o,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,s),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);!function(t,e,i,n){const s=t.ctx,o=e.circular,{color:r,lineWidth:a}=e;!o&&!n||!r||!a||i<0||(s.save(),s.strokeStyle=r,s.lineWidth=a,s.setLineDash(e.borderDash),s.lineDashOffset=e.borderDashOffset,s.beginPath(),Ar(t,i,o,n),s.closePath(),s.stroke(),s.restore())}(this,n.setContext(this.getContext(e-1)),r,s)}})),i.display){for(t.save(),o=this.getLabels().length-1;o>=0;o--){const n=i.setContext(this.getPointLabelContext(o)),{color:s,lineWidth:l}=n;l&&s&&(t.lineWidth=l,t.strokeStyle=s,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),a=this.getPointPosition(o,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(a.x,a.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((n,r)=>{if(0===r&&!e.reverse)return;const a=i.setContext(this.getContext(r)),l=Ti(a.font);if(s=this.getDistanceFromCenterForValue(this.ticks[r].value),a.showLabelBackdrop){t.font=l.string,o=t.measureText(n.label).width,t.fillStyle=a.backdropColor;const e=Ai(a.backdropPadding);t.fillRect(-o/2-e.left,-s-l.size/2-e.top,o+e.width,l.size+e.height)}ki(t,n.label,0,-s,l,{color:a.color})})),t.restore()}drawTitle(){}}Rr.id="radialLinear",Rr.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:to.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5}},Rr.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Rr.descriptors={angleLines:{_fallback:"grid"}};const Ir={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Fr=Object.keys(Ir);function zr(t,e){return t-e}function jr(t,e){if(Rt(e))return null;const i=t._adapter,{parser:n,round:s,isoWeekday:o}=t._parseOpts;let r=e;return"function"==typeof n&&(r=n(r)),zt(r)||(r="string"==typeof n?i.parse(r,n):i.parse(r)),null===r?null:(s&&(r="week"!==s||!fe(o)&&!0!==o?i.startOf(r,s):i.startOf(r,"isoWeek",o)),+r)}function Nr(t,e,i,n){const s=Fr.length;for(let o=Fr.indexOf(t);o<s-1;++o){const t=Ir[Fr[o]],s=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(s*t.size))<=n)return Fr[o]}return Fr[s-1]}function Vr(t,e,i){if(i){if(i.length){const{lo:n,hi:s}=Fi(i,e);t[i[n]>=e?i[n]:i[s]]=!0}}else t[e]=!0}function Br(t,e,i){const n=[],s={},o=e.length;let r,a;for(r=0;r<o;++r)a=e[r],s[a]=r,n.push({value:a,major:!1});return 0!==o&&i?function(t,e,i,n){const s=t._adapter,o=+s.startOf(e[0].value,n),r=e[e.length-1].value;let a,l;for(a=o;a<=r;a=+s.add(a,1,n))l=i[a],l>=0&&(e[l].major=!0);return e}(t,n,s,i):n}class Hr extends co{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const i=t.time||(t.time={}),n=this._adapter=new ms._date(t.adapters.date);Zt(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:jr(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:n,max:s,minDefined:o,maxDefined:r}=this.getUserBounds();function a(t){o||isNaN(t.min)||(n=Math.min(n,t.min)),r||isNaN(t.max)||(s=Math.max(s,t.max))}o&&r||(a(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||a(this.getMinMax(!1))),n=zt(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),s=zt(s)&&!isNaN(s)?s:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,s-1),this.max=Math.max(n+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const s=this.min,o=function(t,e,i){let n=0,s=t.length;for(;n<s&&t[n]<e;)n++;for(;s>n&&t[s-1]>i;)s--;return n>0||s<t.length?t.slice(n,s):t}(n,s,this.max);return this._unit=e.unit||(i.autoSkip?Nr(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):function(t,e,i,n,s){for(let o=Fr.length-1;o>=Fr.indexOf(i);o--){const i=Fr[o];if(Ir[i].common&&t._adapter.diff(s,n,i)>=e-1)return i}return Fr[i?Fr.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=Fr.indexOf(t)+1,i=Fr.length;e<i;++e)if(Ir[Fr[e]].common)return Fr[e]}(this._unit):void 0,this.initOffsets(n),t.reverse&&o.reverse(),Br(this,o,this._majorUnit)}initOffsets(t){let e,i,n=0,s=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),n=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),s=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=we(n,0,o),s=we(s,0,o),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,s=n.time,o=s.unit||Nr(s.minUnit,e,i,this._getLabelCapacity(e)),r=Nt(s.stepSize,1),a="week"===o&&s.isoWeekday,l=fe(a)||!0===a,c={};let h,u,d=e;if(l&&(d=+t.startOf(d,"isoWeek",a)),d=+t.startOf(d,l?"day":o),t.diff(i,e,o)>1e5*r)throw new Error(e+" and "+i+" are too far apart with stepSize of "+r+" "+o);const f="data"===n.ticks.source&&this.getDataTimestamps();for(h=d,u=0;h<i;h=+t.add(h,r,o),u++)Vr(c,h,f);return h!==i&&"ticks"!==n.bounds&&1!==u||Vr(c,h,f),Object.keys(c).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,n){const s=this.options,o=s.time.displayFormats,r=this._unit,a=this._majorUnit,l=r&&o[r],c=a&&o[a],h=i[e],u=a&&c&&h&&h.major,d=this._adapter.format(t,n||(u?c:l)),f=s.ticks.callback;return f?Bt(f,[d,e,i],this):d}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e<i;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,n=me(this.isHorizontal()?e.maxRotation:e.minRotation),s=Math.cos(n),o=Math.sin(n),r=this._resolveTickFontOptions(0).size;return{w:i*s+r*o,h:i*o+r*s}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,n=i[e.unit]||i.millisecond,s=this._tickFormatFunction(t,0,Br(this,[t],this._majorUnit),n),o=this._getLabelSize(s),r=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return r>0?r:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(t=0,e=n.length;t<e;++t)i=i.concat(n[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const n=this.getLabels();for(e=0,i=n.length;e<i;++e)t.push(jr(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Bi(t.sort(zr))}}function Wr(t,e,i){let n,s,o,r,a=0,l=t.length-1;i?(e>=t[a].pos&&e<=t[l].pos&&({lo:a,hi:l}=zi(t,"pos",e)),({pos:n,time:o}=t[a]),({pos:s,time:r}=t[l])):(e>=t[a].time&&e<=t[l].time&&({lo:a,hi:l}=zi(t,"time",e)),({time:n,pos:o}=t[a]),({time:s,pos:r}=t[l]));const c=s-n;return c?o+(r-o)*(e-n)/c:o}Hr.id="time",Hr.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Yr extends Hr{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Wr(e,this.min),this._tableRange=Wr(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,n=[],s=[];let o,r,a,l,c;for(o=0,r=t.length;o<r;++o)l=t[o],l>=e&&l<=i&&n.push(l);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,r=n.length;o<r;++o)c=n[o+1],a=n[o-1],l=n[o],Math.round((c+a)/2)!==l&&s.push({time:l,pos:o/(r-1)});return s}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Wr(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Wr(this._table,i*this._tableRange+this._minPos,!0)}}Yr.id="timeseries",Yr.defaults=Hr.defaults;const Ur=["#faab4a","#2e3454","#2a679d","#f8d9d8"];function qr(e){let i,n;return{c(){i=y("div"),n=y("canvas")},m(t,s){b(t,i,s),m(i,n),e[2](n)},p:t,i:t,o:t,d(t){t&&x(i),e[2](null)}}}function Xr(t,e,i){Ro.register(ar,rs,kr,yr,tr);let{componentData:n}=e;const{config:s,data:o,labels:r}=n;let a;const l=s||{type:"bar",data:{labels:r,datasets:[{backgroundColor:Ur[2],borderColor:Ur[2],data:o||[]}]},options:{plugins:{legend:{display:!1}}}};return t.$$set=t=>{"componentData"in t&&i(1,n=t.componentData)},t.$$.update=()=>{1&t.$$.dirty&&a&&new Ro(a,l)},[a,n,function(t){I[t?"unshift":"push"]((()=>{a=t,i(0,a)}))}]}class Zr extends ot{constructor(t){super(),st(this,t,Xr,qr,r,{componentData:1})}}function Gr(t){let e,i,n;return{c(){e=y("div"),i=w(),n=y("div"),$(e,"class","path topLeft svelte-1hyaq5f"),$(n,"class","path bottomRight svelte-1hyaq5f")},m(t,s){b(t,e,s),b(t,i,s),b(t,n,s)},d(t){t&&x(e),t&&x(i),t&&x(n)}}}function Kr(t){let e;return{c(){e=y("div"),$(e,"class","path straightLine svelte-1hyaq5f")},m(t,i){b(t,e,i)},d(t){t&&x(e)}}}function Jr(e){let i;function n(t,e){return t[5]?Kr:Gr}let s=n(e),o=s(e);return{c(){i=y("div"),o.c(),$(i,"class","connectorwrapper svelte-1hyaq5f"),S(i,"top",e[1]+"rem"),S(i,"left",e[0]+"rem"),S(i,"width",e[3]+"rem"),S(i,"height",e[4]+"rem"),O(i,"flip",e[2])},m(t,e){b(t,i,e),o.m(i,null)},p(t,[e]){s!==(s=n(t))&&(o.d(1),o=s(t),o&&(o.c(),o.m(i,null))),2&e&&S(i,"top",t[1]+"rem"),1&e&&S(i,"left",t[0]+"rem"),8&e&&S(i,"width",t[3]+"rem"),16&e&&S(i,"height",t[4]+"rem"),4&e&&O(i,"flip",t[2])},i:t,o:t,d(t){t&&x(i),o.d()}}}const Qr=.5;function ta(t,e,i){let n,s,o,{top:r=0}=e,{left:a=0}=e,{bottom:l=0}=e,{right:c=0}=e,h=!1;return t.$$set=t=>{"top"in t&&i(1,r=t.top),"left"in t&&i(0,a=t.left),"bottom"in t&&i(7,l=t.bottom),"right"in t&&i(6,c=t.right)},t.$$.update=()=>{207&t.$$.dirty&&(i(2,n=c-a<0),i(3,s=Math.abs(c-a)),s<=Qr?(i(3,s=Qr),i(5,h=!0),i(0,a-=.25)):(n?(i(0,a+=.25),i(6,c-=.25)):(i(0,a-=.25),i(6,c+=.25)),i(3,s=Math.abs(c-a))),i(4,o=l-r))},[a,r,n,s,o,h,c,l]}class ea extends ot{constructor(t){super(),st(this,t,ta,Jr,r,{top:1,left:0,bottom:7,right:6})}}function ia(t,e,i){const n=t.slice();return n[4]=e[i],n}function na(t){let e,i;return e=new ea({props:{top:pt(t[4].top),left:pt(t[4].left),bottom:pt(t[4].bottom),right:pt(t[4].right)}}),{c(){tt(e.$$.fragment)},m(t,n){et(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.top=pt(t[4].top)),1&i&&(n.left=pt(t[4].left)),1&i&&(n.bottom=pt(t[4].bottom)),1&i&&(n.right=pt(t[4].right)),e.$set(n)},i(t){i||(K(e.$$.fragment,t),i=!0)},o(t){J(e.$$.fragment,t),i=!1},d(t){it(e,t)}}}function sa(t){let e,i,n=t[0],s=[];for(let e=0;e<n.length;e+=1)s[e]=na(ia(t,n,e));const o=t=>J(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=k()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);b(t,e,n),i=!0},p(t,[i]){if(1&i){let r;for(n=t[0],r=0;r<n.length;r+=1){const o=ia(t,n,r);s[r]?(s[r].p(o,i),K(s[r],1)):(s[r]=na(o),s[r].c(),K(s[r],1),s[r].m(e.parentNode,e))}for(Z(),r=n.length;r<s.length;r+=1)o(r);G()}},i(t){if(!i){for(let t=0;t<n.length;t+=1)K(s[t]);i=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)J(s[t]);i=!1},d(t){v(s,t),t&&x(e)}}}function oa(t,e,i){let{steps:n}=e,{boxes:s}=e,{container:o}=e,r=[];return t.$$set=t=>{"steps"in t&&i(1,n=t.steps),"boxes"in t&&i(2,s=t.boxes),"container"in t&&i(3,o=t.container)},t.$$.update=()=>{if(15&t.$$.dirty){i(0,r=[]);const t=o.getBoundingClientRect(),e=t.top,a=t.left;s&&Object.keys(n).forEach((t=>{var o;const l=n[t],c=s[t].getBoundingClientRect();null===(o=l.next)||void 0===o||o.forEach((t=>{const n=s[t].getBoundingClientRect(),o={top:c.bottom-e,left:c.left-a+c.width/2,bottom:n.top-e,right:n.left-a+n.width/2};i(0,r=[...r,o])}))}))}},[r,n,s,o]}class ra extends ot{constructor(t){super(),st(this,t,oa,sa,r,{steps:1,boxes:2,container:3})}}const aa="currentStep";function la(t,e,i){const n=t.slice();return n[18]=e[i],n[20]=i,n}function ca(t){let e,i,n;return{c(){e=y("div"),i=C("x"),n=C(t[6]),$(e,"class","levelstoshow svelte-117ceti")},m(t,s){b(t,e,s),m(e,i),m(e,n)},p(t,e){64&e&&D(n,t[6])},d(t){t&&x(e)}}}function ha(t){let e,i;return{c(){e=y("div"),$(e,"class",i="level rectangle "+t[18]+" svelte-117ceti"),S(e,"z-index",-1*(t[20]+1)),S(e,"top",(t[20]+1)*da+"px"),S(e,"left",(t[20]+1)*da+"px")},m(t,i){b(t,e,i)},p(t,n){128&n&&i!==(i="level rectangle "+t[18]+" svelte-117ceti")&&$(e,"class",i)},d(t){t&&x(e)}}}function ua(e){let i,n,s,o,r,a,l,c,h,u,d,f=e[2].doc+"",p=e[6]&&ca(e),g=e[7],_=[];for(let t=0;t<g.length;t+=1)_[t]=ha(la(e,g,t));return{c(){i=y("div"),p&&p.c(),n=w(),s=y("div"),o=y("div"),r=y("span"),a=C(e[1]),l=w(),c=y("div"),h=C(f),d=w();for(let t=0;t<_.length;t+=1)_[t].c();$(r,"class","name svelte-117ceti"),$(c,"class","description svelte-117ceti"),$(c,"title",u=e[9]?e[2].doc:void 0),O(c,"overflown",e[9]),$(o,"class","inner svelte-117ceti"),$(s,"class","step rectangle svelte-117ceti"),O(s,"success",e[3]),O(s,"running",e[5]),O(s,"error",e[4]),$(i,"class","wrapper svelte-117ceti"),O(i,"current",e[10])},m(t,u){b(t,i,u),p&&p.m(i,null),m(i,n),m(i,s),m(s,o),m(o,r),m(r,a),m(o,l),m(o,c),m(c,h),e[12](c),e[13](s),m(i,d);for(let t=0;t<_.length;t+=1)_[t].m(i,null)},p(t,[e]){if(t[6]?p?p.p(t,e):(p=ca(t),p.c(),p.m(i,n)):p&&(p.d(1),p=null),2&e&&D(a,t[1]),4&e&&f!==(f=t[2].doc+"")&&D(h,f),516&e&&u!==(u=t[9]?t[2].doc:void 0)&&$(c,"title",u),512&e&&O(c,"overflown",t[9]),8&e&&O(s,"success",t[3]),32&e&&O(s,"running",t[5]),16&e&&O(s,"error",t[4]),128&e){let n;for(g=t[7],n=0;n<g.length;n+=1){const s=la(t,g,n);_[n]?_[n].p(s,e):(_[n]=ha(s),_[n].c(),_[n].m(i,null))}for(;n<_.length;n+=1)_[n].d(1);_.length=g.length}},i:t,o:t,d(t){t&&x(i),p&&p.d(),e[12](null),e[13](null),v(_,t)}}}const da=4;function fa(t,e,i){var n,s;let o,{name:r}=e,{step:a}=e,{numLevels:l=0}=e,{el:c}=e,h=!1,u=!1,d=!1;const f={3:3,100:4,1e3:5,1e4:6};let p=[];a.num_possible_tasks?(a.num_possible_tasks>1&&(o=(new Intl.NumberFormat).format(a.num_possible_tasks)),l=a.num_possible_tasks-1,Object.keys(f).forEach((t=>{const e=Number.parseInt(t);a.num_possible_tasks&&a.num_possible_tasks>e&&i(11,l=f[e])}))):l*=3,l>0&&(p=new Array(l).fill("")),p=p.map(((t,e)=>{var i,n;if(a.num_possible_tasks){const t=null!==(i=a.num_failed)&&void 0!==i?i:0,s=null!==(n=a.successful_tasks)&&void 0!==n?n:0;return(t-1)/a.num_possible_tasks>=(e+1)/p.length?"error":(t+s)/a.num_possible_tasks>=(e+1)/p.length?"success":"running"}return""}));const g=(m=aa,E().$$.context.get(m));var m;const b=r===g;let x;a.failed||a.num_failed?u=!0:(null!==(n=a.num_possible_tasks)&&void 0!==n?n:0)>(null!==(s=a.successful_tasks)&&void 0!==s?s:0)?d=!0:a.num_possible_tasks&&a.num_possible_tasks===a.successful_tasks&&(h=!0);let v=!1;return A((()=>{i(9,v=(t=>t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)(x))})),t.$$set=t=>{"name"in t&&i(1,r=t.name),"step"in t&&i(2,a=t.step),"numLevels"in t&&i(11,l=t.numLevels),"el"in t&&i(0,c=t.el)},[c,r,a,h,u,d,o,p,x,v,b,l,function(t){I[t?"unshift":"push"]((()=>{x=t,i(8,x)}))},function(t){I[t?"unshift":"push"]((()=>{c=t,i(0,c)}))}]}class pa extends ot{constructor(t){super(),st(this,t,fa,ua,r,{name:1,step:2,numLevels:11,el:0})}}function ga(t,e,i){const n=t.slice();return n[11]=e[i],n}function ma(t){let e,i,n,s,o,r;function a(e){t[8](e)}let l={name:t[2],numLevels:t[3],step:t[5]};void 0!==t[4]&&(l.el=t[4]),i=new pa({props:l}),I.push((()=>Q(i,"el",a)));let c=t[7]&&function(t){let e,i,n,s,o=t[5].next,r=[];for(let e=0;e<o.length;e+=1)r[e]=ba(ga(t,o,e));const a=t=>J(r[t],1,1,(()=>{r[t]=null}));return{c(){e=y("div"),i=w(),n=y("div");for(let t=0;t<r.length;t+=1)r[t].c();$(e,"class","gap svelte-18aex7a"),$(n,"class","childwrapper svelte-18aex7a")},m(t,o){b(t,e,o),b(t,i,o),b(t,n,o);for(let t=0;t<r.length;t+=1)r[t].m(n,null);s=!0},p(t,e){if(99&e){let i;for(o=t[5].next,i=0;i<o.length;i+=1){const s=ga(t,o,i);r[i]?(r[i].p(s,e),K(r[i],1)):(r[i]=ba(s),r[i].c(),K(r[i],1),r[i].m(n,null))}for(Z(),i=o.length;i<r.length;i+=1)a(i);G()}},i(t){if(!s){for(let t=0;t<o.length;t+=1)K(r[t]);s=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)J(r[t]);s=!1},d(t){t&&x(e),t&&x(i),t&&x(n),v(r,t)}}}(t),h=t[5].box_ends&&function(t){let e,i,n,s;return n=new ya({props:{steps:t[1],stepName:t[5].box_ends,levels:t[3],boxes:t[0]}}),{c(){e=y("div"),i=w(),tt(n.$$.fragment),$(e,"class","gap svelte-18aex7a")},m(t,o){b(t,e,o),b(t,i,o),et(n,t,o),s=!0},p(t,e){const i={};2&e&&(i.steps=t[1]),8&e&&(i.levels=t[3]),1&e&&(i.boxes=t[0]),n.$set(i)},i(t){s||(K(n.$$.fragment,t),s=!0)},o(t){J(n.$$.fragment,t),s=!1},d(t){t&&x(e),t&&x(i),it(n,t)}}}(t);return{c(){e=y("div"),tt(i.$$.fragment),s=w(),c&&c.c(),o=w(),h&&h.c(),$(e,"class","stepwrapper svelte-18aex7a")},m(t,n){b(t,e,n),et(i,e,null),m(e,s),c&&c.m(e,null),m(e,o),h&&h.m(e,null),r=!0},p(t,e){const s={};4&e&&(s.name=t[2]),8&e&&(s.numLevels=t[3]),!n&&16&e&&(n=!0,s.el=t[4],B((()=>n=!1))),i.$set(s),t[7]&&c.p(t,e),t[5].box_ends&&h.p(t,e)},i(t){r||(K(i.$$.fragment,t),K(c),K(h),r=!0)},o(t){J(i.$$.fragment,t),J(c),J(h),r=!1},d(t){t&&x(e),it(i),c&&c.d(),h&&h.d()}}}function ba(t){let e,i;return e=new ya({props:{steps:t[1],stepName:t[11],levels:t[6],boxes:t[0]}}),{c(){tt(e.$$.fragment)},m(t,n){et(e,t,n),i=!0},p(t,i){const n={};2&i&&(n.steps=t[1]),1&i&&(n.boxes=t[0]),e.$set(n)},i(t){i||(K(e.$$.fragment,t),i=!0)},o(t){J(e.$$.fragment,t),i=!1},d(t){it(e,t)}}}function xa(t){let e,i,n=t[5]&&ma(t);return{c(){n&&n.c(),e=k()},m(t,s){n&&n.m(t,s),b(t,e,s),i=!0},p(t,[e]){t[5]&&n.p(t,e)},i(t){i||(K(n),i=!0)},o(t){J(n),i=!1},d(t){n&&n.d(t),t&&x(e)}}}function va(t,e,i){var n;let{steps:s}=e,{stepName:o}=e,{levels:r=0}=e,{boxes:a={}}=e,l=null;A((()=>{l&&i(0,a[o]=l,a)}));let c=s[o];c||console.warn("step ",o," not found");const h="foreach"===(null==c?void 0:c.type)?r+1:"join"===(null==c?void 0:c.type)?r-1:r;let u=null===(n=null==c?void 0:c.next)||void 0===n?void 0:n.find((t=>{var e;return"join"!==(null===(e=s[t])||void 0===e?void 0:e.type)}));return t.$$set=t=>{"steps"in t&&i(1,s=t.steps),"stepName"in t&&i(2,o=t.stepName),"levels"in t&&i(3,r=t.levels),"boxes"in t&&i(0,a=t.boxes)},[a,s,o,r,l,c,h,u,function(t){l=t,i(4,l)}]}class ya extends ot{constructor(t){super(),st(this,t,va,xa,r,{steps:1,stepName:2,levels:3,boxes:0})}}function _a(e){let i;return{c(){i=y("p"),i.textContent="No start step"},m(t,e){b(t,i,e)},p:t,i:t,o:t,d(t){t&&x(i)}}}function Ca(t){let e,i,n;function s(e){t[6](e)}let o={steps:t[3],stepName:"start"};return void 0!==t[0]&&(o.boxes=t[0]),e=new ya({props:o}),I.push((()=>Q(e,"boxes",s))),{c(){tt(e.$$.fragment)},m(t,i){et(e,t,i),n=!0},p(t,n){const s={};!i&&1&n&&(i=!0,s.boxes=t[0],B((()=>i=!1))),e.$set(s)},i(t){n||(K(e.$$.fragment,t),n=!0)},o(t){J(e.$$.fragment,t),n=!1},d(t){it(e,t)}}}function wa(t){let e,i;return e=new ra({props:{boxes:t[0],steps:t[3],container:t[1]}}),{c(){tt(e.$$.fragment)},m(t,n){et(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.boxes=t[0]),2&i&&(n.container=t[1]),e.$set(n)},i(t){i||(K(e.$$.fragment,t),i=!0)},o(t){J(e.$$.fragment,t),i=!1},d(t){it(e,t)}}}function ka(t){let e,i,n,s,o,r,a,l=!t[2]&&Object.keys(t[0]).length;const c=[Ca,_a],h=[];i=function(t,e){return t[3]?.start?0:1}(t),n=h[i]=c[i](t);let u=l&&wa(t);return{c(){e=y("div"),n.c(),s=w(),u&&u.c(),S(e,"position","relative"),S(e,"line-height","1")},m(n,l){b(n,e,l),h[i].m(e,null),m(e,s),u&&u.m(e,null),t[7](e),o=!0,r||(a=M(window,"resize",t[4]),r=!0)},p(t,[i]){n.p(t,i),5&i&&(l=!t[2]&&Object.keys(t[0]).length),l?u?(u.p(t,i),5&i&&K(u,1)):(u=wa(t),u.c(),K(u,1),u.m(e,null)):u&&(Z(),J(u,1,1,(()=>{u=null})),G())},i(t){o||(K(n),K(u),o=!0)},o(t){J(n),J(u),o=!1},d(n){n&&x(e),h[i].d(),u&&u.d(),t[7](null),r=!1,a()}}}function Ma(t,e,i){let n;var s;c(t,ut,(t=>i(10,n=t)));let{componentData:o}=e;const{data:r}=o;let a,l={};var h,u;let d;h=aa,u=(t=>{var e;if(t)return null===(e=t.split("/"))||void 0===e?void 0:e[2]})(null===(s=null==n?void 0:n.metadata)||void 0===s?void 0:s.pathspec),E().$$.context.set(h,u);let f=!1;return t.$$set=t=>{"componentData"in t&&i(5,o=t.componentData)},[l,a,f,r,()=>{i(2,f=!0),clearTimeout(d),d=setTimeout((()=>{i(2,f=!1)}),100)},o,function(t){l=t,i(0,l)},function(t){I[t?"unshift":"push"]((()=>{a=t,i(1,a)}))}]}class $a extends ot{constructor(t){super(),st(this,t,Ma,ka,r,{componentData:5})}}function La(e){let i;return{c(){i=y("h2"),i.textContent=`${e[0]}`,$(i,"class","title svelte-117s0ws")},m(t,e){b(t,i,e)},p:t,i:t,o:t,d(t){t&&x(i)}}}function Da(t,e,i){let{componentData:n}=e;const{text:s}=n;return t.$$set=t=>{"componentData"in t&&i(1,n=t.componentData)},[s,n]}class Sa extends ot{constructor(t){super(),st(this,t,Da,La,r,{componentData:1})}}function Oa(e){let i,n,s=e[0].text+"";return{c(){i=y("p"),n=C(s),$(i,"class","subtitle svelte-lu9pnn")},m(t,e){b(t,i,e),m(i,n)},p(t,[e]){1&e&&s!==(s=t[0].text+"")&&D(n,s)},i:t,o:t,d(t){t&&x(i)}}}function Pa(t,e,i){let{componentData:n}=e;return t.$$set=t=>{"componentData"in t&&i(0,n=t.componentData)},[n]}class Ea extends ot{constructor(t){super(),st(this,t,Pa,Oa,r,{componentData:0})}}function Aa(e){let i,n,s,o=e[0]&&function(e){let i,n;return i=new Sa({props:{componentData:{type:"title",text:e[0]}}}),{c(){tt(i.$$.fragment)},m(t,e){et(i,t,e),n=!0},p:t,i(t){n||(K(i.$$.fragment,t),n=!0)},o(t){J(i.$$.fragment,t),n=!1},d(t){it(i,t)}}}(e),r=e[1]&&function(e){let i,n;return i=new Ea({props:{componentData:{type:"subtitle",text:e[1]}}}),{c(){tt(i.$$.fragment)},m(t,e){et(i,t,e),n=!0},p:t,i(t){n||(K(i.$$.fragment,t),n=!0)},o(t){J(i.$$.fragment,t),n=!1},d(t){it(i,t)}}}(e);return{c(){i=y("header"),o&&o.c(),n=w(),r&&r.c(),$(i,"class","container svelte-1ugmt5d")},m(t,e){b(t,i,e),o&&o.m(i,null),m(i,n),r&&r.m(i,null),s=!0},p(t,[e]){t[0]&&o.p(t,e),t[1]&&r.p(t,e)},i(t){s||(K(o),K(r),s=!0)},o(t){J(o),J(r),s=!1},d(t){t&&x(i),o&&o.d(),r&&r.d()}}}function Ta(t,e,i){let{componentData:n}=e;const{title:s,subtitle:o}=n;return t.$$set=t=>{"componentData"in t&&i(2,n=t.componentData)},[s,o,n]}class Ra extends ot{constructor(t){super(),st(this,t,Ta,Aa,r,{componentData:2})}}function Ia(e){let i,n,s,o,r,l,c,h,u=e[2]&&function(e){let i;return{c(){i=y("div"),i.textContent=`${e[2]}`,$(i,"class","label svelte-1x96yvr")},m(t,e){b(t,i,e)},p:t,d(t){t&&x(i)}}}(e),d=e[3]&&function(e){let i;return{c(){i=y("figcaption"),i.textContent=`${e[3]}`,$(i,"class","description svelte-1x96yvr")},m(t,e){b(t,i,e)},p:t,d(t){t&&x(i)}}}(e);return{c(){var t,c;i=y("figure"),n=y("div"),s=y("img"),r=w(),u&&u.c(),l=w(),d&&d.c(),t=s.src,c=o=e[1],a||(a=document.createElement("a")),a.href=c,t!==a.href&&$(s,"src",o),$(s,"alt",e[2]||"image"),$(s,"class","svelte-1x96yvr"),$(n,"class","imageContainer"),$(i,"class","svelte-1x96yvr")},m(t,o){b(t,i,o),m(i,n),m(n,s),m(i,r),u&&u.m(i,null),m(i,l),d&&d.m(i,null),c||(h=M(i,"click",e[4]),c=!0)},p(t,[e]){t[2]&&u.p(t,e),t[3]&&d.p(t,e)},i:t,o:t,d(t){t&&x(i),u&&u.d(),d&&d.d(),c=!1,h()}}}function Fa(t,e,i){let{componentData:n}=e;const{src:s,label:o,description:r}=n;return t.$$set=t=>{"componentData"in t&&i(0,n=t.componentData)},[n,s,o,r,()=>dt.set(n)]}class za extends ot{constructor(t){super(),st(this,t,Fa,Ia,r,{componentData:0})}}function ja(e){let i,n;return{c(){i=y("div"),n=y("canvas")},m(t,s){b(t,i,s),m(i,n),e[2](n)},p:t,i:t,o:t,d(t){t&&x(i),e[2](null)}}}function Na(t,e,i){Ro.register(Jo,kr,cs,yr,tr);let{componentData:n}=e;const{config:s,data:o,labels:r}=n;let a;const l=s||{type:"line",data:{labels:r,datasets:[{backgroundColor:Ur[2],borderColor:Ur[2],data:o||[]}]},options:{plugins:{legend:{display:!1}}}};return t.$$set=t=>{"componentData"in t&&i(1,n=t.componentData)},t.$$.update=()=>{1&t.$$.dirty&&a&&new Ro(a,l)},[a,n,function(t){I[t?"unshift":"push"]((()=>{a=t,i(0,a)}))}]}class Va extends ot{constructor(t){super(),st(this,t,Na,ja,r,{componentData:1})}}function Ba(e){let i,n,s,o=e[0].data+"";return{c(){i=y("pre"),n=y("code"),s=C(o),$(n,"class","mono language-log"),$(i,"class","log svelte-1jhmsu")},m(t,o){b(t,i,o),m(i,n),m(n,s),e[2](n)},p(t,[e]){1&e&&o!==(o=t[0].data+"")&&D(s,o)},i:t,o:t,d(t){t&&x(i),e[2](null)}}}function Ha(t,e,i){let n,{componentData:s}=e;return t.$$set=t=>{"componentData"in t&&i(0,s=t.componentData)},t.$$.update=()=>{var e,i;2&t.$$.dirty&&n&&n&&(null===(i=null===(e=window)||void 0===e?void 0:e.Prism)||void 0===i||i.highlightElement(n))},[s,n,function(t){I[t?"unshift":"push"]((()=>{n=t,i(1,n)}))}]}class Wa extends ot{constructor(t){super(),st(this,t,Ha,Ba,r,{componentData:0})}}function Ya(t){let e,i;const n=t[3].default,s=h(n,t,t[2],null);return{c(){e=y("div"),s&&s.c(),$(e,"id",`page-${t[0]||"No Title"}`),$(e,"class","page svelte-v7ihqd")},m(t,n){b(t,e,n),s&&s.m(e,null),i=!0},p(t,[e]){s&&s.p&&(!i||4&e)&&f(s,n,t,t[2],i?d(n,t[2],e,null):p(t[2]),null)},i(t){i||(K(s,t),i=!0)},o(t){J(s,t),i=!1},d(t){t&&x(e),s&&s.d(t)}}}function Ua(t,e,i){let{$$slots:n={},$$scope:s}=e,{componentData:o}=e;const{title:r}=o;return t.$$set=t=>{"componentData"in t&&i(1,o=t.componentData),"$$scope"in t&&i(2,s=t.$$scope)},[r,o,s,n]}class qa extends ot{constructor(t){super(),st(this,t,Ua,Ya,r,{componentData:1})}}function Xa(e){let i,n,s,o,r,a,l,c,u=e[1]&&function(e){let i;return{c(){i=y("h3"),i.textContent=`${e[1]}`},m(t,e){b(t,i,e)},p:t,d(t){t&&x(i)}}}(e),g=e[2]&&function(e){let i;return{c(){i=y("p"),i.textContent=`${e[2]}`,$(i,"class","description")},m(t,e){b(t,i,e)},p:t,d(t){t&&x(i)}}}(e);const v=e[6].default,_=h(v,e,e[5],null);return{c(){i=y("section"),n=y("div"),u&&u.c(),s=w(),g&&g.c(),o=w(),r=y("div"),_&&_.c(),a=w(),l=y("hr"),$(n,"class","heading svelte-17n0qr8"),$(r,"class","sectionItems svelte-17n0qr8"),$(r,"style",e[0]),$(l,"class","svelte-17n0qr8"),$(i,"class","container svelte-17n0qr8"),$(i,"data-section-id",e[1]),O(i,"columns",e[3])},m(t,e){b(t,i,e),m(i,n),u&&u.m(n,null),m(n,s),g&&g.m(n,null),m(i,o),m(i,r),_&&_.m(r,null),m(i,a),m(i,l),c=!0},p(t,[e]){t[1]&&u.p(t,e),t[2]&&g.p(t,e),_&&_.p&&(!c||32&e)&&f(_,v,t,t[5],c?d(v,t[5],e,null):p(t[5]),null),(!c||1&e)&&$(r,"style",t[0])},i(t){c||(K(_,t),c=!0)},o(t){J(_,t),c=!1},d(t){t&&x(i),u&&u.d(),g&&g.d(),_&&_.d(t)}}}function Za(t,e,i){let{$$slots:n={},$$scope:s}=e,{componentData:o}=e;const{title:r,subtitle:a,columns:l}=o;let c;return l&&(c=`grid-template-columns: repeat(${l||1}, 1fr);`),t.$$set=t=>{"componentData"in t&&i(4,o=t.componentData),"$$scope"in t&&i(5,s=t.$$scope)},[c,r,a,l,o,s,n]}class Ga extends ot{constructor(t){super(),st(this,t,Za,Xa,r,{componentData:4})}}function Ka(t,e,i){const n=t.slice();return n[3]=e[i],n[5]=i,n}function Ja(t,e,i){const n=t.slice();return n[6]=e[i],n}function Qa(e){let i,n,s=e[6][e[5]]+"";return{c(){i=y("td"),n=C(s),$(i,"class","svelte-gl9h79")},m(t,e){b(t,i,e),m(i,n)},p:t,d(t){t&&x(i)}}}function tl(t){let e,i,n,s,o,r=t[3]+"",a=t[1],l=[];for(let e=0;e<a.length;e+=1)l[e]=Qa(Ja(t,a,e));return{c(){e=y("tr"),i=y("td"),n=C(r),s=w();for(let t=0;t<l.length;t+=1)l[t].c();o=w(),$(i,"class","labelColumn svelte-gl9h79")},m(t,r){b(t,e,r),m(e,i),m(i,n),m(e,s);for(let t=0;t<l.length;t+=1)l[t].m(e,null);m(e,o)},p(t,i){if(2&i){let n;for(a=t[1],n=0;n<a.length;n+=1){const s=Ja(t,a,n);l[n]?l[n].p(s,i):(l[n]=Qa(s),l[n].c(),l[n].m(e,o))}for(;n<l.length;n+=1)l[n].d(1);l.length=a.length}},d(t){t&&x(e),v(l,t)}}}function el(e){let i,n=e[0]&&e[1]&&function(t){let e,i,n,s=t[0],o=[];for(let e=0;e<s.length;e+=1)o[e]=tl(Ka(t,s,e));return{c(){e=y("div"),i=y("table"),n=y("tbody");for(let t=0;t<o.length;t+=1)o[t].c();$(e,"class","tableContainer")},m(t,s){b(t,e,s),m(e,i),m(i,n);for(let t=0;t<o.length;t+=1)o[t].m(n,null)},p(t,e){if(3&e){let i;for(s=t[0],i=0;i<s.length;i+=1){const r=Ka(t,s,i);o[i]?o[i].p(r,e):(o[i]=tl(r),o[i].c(),o[i].m(n,null))}for(;i<o.length;i+=1)o[i].d(1);o.length=s.length}},d(t){t&&x(e),v(o,t)}}}(e);return{c(){n&&n.c(),i=k()},m(t,e){n&&n.m(t,e),b(t,i,e)},p(t,[e]){t[0]&&t[1]&&n.p(t,e)},i:t,o:t,d(t){n&&n.d(t),t&&x(i)}}}function il(t,e,i){let{componentData:n}=e;const{columns:s,data:o}=n;return t.$$set=t=>{"componentData"in t&&i(2,n=t.componentData)},[s,o,n]}class nl extends ot{constructor(t){super(),st(this,t,il,el,r,{componentData:2})}}function sl(t,e,i){const n=t.slice();return n[3]=e[i],n}function ol(t,e,i){const n=t.slice();return n[6]=e[i],n}function rl(t,e,i){const n=t.slice();return n[9]=e[i],n}function al(e){let i,n,s=e[9]+"";return{c(){i=y("th"),n=C(s),$(i,"class","svelte-1u48v6f")},m(t,e){b(t,i,e),m(i,n)},p:t,d(t){t&&x(i)}}}function ll(e){let i,n,s=e[6]+"";return{c(){i=y("td"),n=C(s)},m(t,e){b(t,i,e),m(i,n)},p:t,d(t){t&&x(i)}}}function cl(t){let e,i,n=t[3],s=[];for(let e=0;e<n.length;e+=1)s[e]=ll(ol(t,n,e));return{c(){e=y("tr");for(let t=0;t<s.length;t+=1)s[t].c();i=w()},m(t,n){b(t,e,n);for(let t=0;t<s.length;t+=1)s[t].m(e,null);m(e,i)},p(t,o){if(2&o){let r;for(n=t[3],r=0;r<n.length;r+=1){const a=ol(t,n,r);s[r]?s[r].p(a,o):(s[r]=ll(a),s[r].c(),s[r].m(e,i))}for(;r<s.length;r+=1)s[r].d(1);s.length=n.length}},d(t){t&&x(e),v(s,t)}}}function hl(e){let i,n=e[0]&&e[1]&&function(t){let e,i,n,s,o,r,a=t[0],l=[];for(let e=0;e<a.length;e+=1)l[e]=al(rl(t,a,e));let c=t[1],h=[];for(let e=0;e<c.length;e+=1)h[e]=cl(sl(t,c,e));return{c(){e=y("div"),i=y("table"),n=y("thead"),s=y("tr");for(let t=0;t<l.length;t+=1)l[t].c();o=w(),r=y("tbody");for(let t=0;t<h.length;t+=1)h[t].c();$(e,"class","tableContainer svelte-1u48v6f")},m(t,a){b(t,e,a),m(e,i),m(i,n),m(n,s);for(let t=0;t<l.length;t+=1)l[t].m(s,null);m(i,o),m(i,r);for(let t=0;t<h.length;t+=1)h[t].m(r,null)},p(t,e){if(1&e){let i;for(a=t[0],i=0;i<a.length;i+=1){const n=rl(t,a,i);l[i]?l[i].p(n,e):(l[i]=al(n),l[i].c(),l[i].m(s,null))}for(;i<l.length;i+=1)l[i].d(1);l.length=a.length}if(2&e){let i;for(c=t[1],i=0;i<c.length;i+=1){const n=sl(t,c,i);h[i]?h[i].p(n,e):(h[i]=cl(n),h[i].c(),h[i].m(r,null))}for(;i<h.length;i+=1)h[i].d(1);h.length=c.length}},d(t){t&&x(e),v(l,t),v(h,t)}}}(e);return{c(){n&&n.c(),i=k()},m(t,e){n&&n.m(t,e),b(t,i,e)},p(t,[e]){t[0]&&t[1]&&n.p(t,e)},i:t,o:t,d(t){n&&n.d(t),t&&x(i)}}}function ul(t,e,i){let{componentData:n}=e;const{columns:s,data:o}=n;return t.$$set=t=>{"componentData"in t&&i(2,n=t.componentData)},[s,o,n]}class dl extends ot{constructor(t){super(),st(this,t,ul,hl,r,{componentData:2})}}function fl(t){let e,i,n=t[1]&&t[2]&&function(t){let e,i,n;var s=t[3];function o(t){return{props:{componentData:t[0]}}}return s&&(e=new s(o(t))),{c(){e&&tt(e.$$.fragment),i=k()},m(t,s){e&&et(e,t,s),b(t,i,s),n=!0},p(t,n){const r={};if(1&n&&(r.componentData=t[0]),s!==(s=t[3])){if(e){Z();const t=e;J(t.$$.fragment,1,0,(()=>{it(t,1)})),G()}s?(e=new s(o(t)),tt(e.$$.fragment),K(e.$$.fragment,1),et(e,i.parentNode,i)):e=null}else s&&e.$set(r)},i(t){n||(e&&K(e.$$.fragment,t),n=!0)},o(t){e&&J(e.$$.fragment,t),n=!1},d(t){t&&x(i),e&&it(e,t)}}}(t);return{c(){n&&n.c(),e=k()},m(t,s){n&&n.m(t,s),b(t,e,s),i=!0},p(t,[e]){t[1]&&t[2]&&n.p(t,e)},i(t){i||(K(n),i=!0)},o(t){J(n),i=!1},d(t){n&&n.d(t),t&&x(e)}}}function pl(t,e,i){let{componentData:n}=e;const{columns:s,data:o,vertical:r}=n,a=r?nl:dl;return t.$$set=t=>{"componentData"in t&&i(0,n=t.componentData)},[n,s,o,a]}class gl extends ot{constructor(t){super(),st(this,t,pl,fl,r,{componentData:0})}}function ml(e){let i;return{c(){i=y("p"),i.textContent=`${e[0]}`},m(t,e){b(t,i,e)},p:t,i:t,o:t,d(t){t&&x(i)}}}function bl(t,e,i){let{componentData:n}=e;const{text:s}=n;return t.$$set=t=>{"componentData"in t&&i(1,n=t.componentData)},[s,n]}class xl extends ot{constructor(t){super(),st(this,t,bl,ml,r,{componentData:1})}}function vl(t,e,i){const n=t.slice();return n[2]=e[i],n}function yl(t){let e,i,n;var s=t[1]?.[t[0].type];function o(t){return{props:{componentData:t[0]}}}return s&&(e=new s(o(t))),{c(){e&&tt(e.$$.fragment),i=k()},m(t,s){e&&et(e,t,s),b(t,i,s),n=!0},p(t,n){const r={};if(1&n&&(r.componentData=t[0]),s!==(s=t[1]?.[t[0].type])){if(e){Z();const t=e;J(t.$$.fragment,1,0,(()=>{it(t,1)})),G()}s?(e=new s(o(t)),tt(e.$$.fragment),K(e.$$.fragment,1),et(e,i.parentNode,i)):e=null}else s&&e.$set(r)},i(t){n||(e&&K(e.$$.fragment,t),n=!0)},o(t){e&&J(e.$$.fragment,t),n=!1},d(t){t&&x(i),e&&it(e,t)}}}function _l(t){let e,i,n;var s=t[1]?.[t[0].type];function o(t){return{props:{componentData:t[0],$$slots:{default:[wl]},$$scope:{ctx:t}}}}return s&&(e=new s(o(t))),{c(){e&&tt(e.$$.fragment),i=k()},m(t,s){e&&et(e,t,s),b(t,i,s),n=!0},p(t,n){const r={};if(1&n&&(r.componentData=t[0]),33&n&&(r.$$scope={dirty:n,ctx:t}),s!==(s=t[1]?.[t[0].type])){if(e){Z();const t=e;J(t.$$.fragment,1,0,(()=>{it(t,1)})),G()}s?(e=new s(o(t)),tt(e.$$.fragment),K(e.$$.fragment,1),et(e,i.parentNode,i)):e=null}else s&&e.$set(r)},i(t){n||(e&&K(e.$$.fragment,t),n=!0)},o(t){e&&J(e.$$.fragment,t),n=!1},d(t){t&&x(i),e&&it(e,t)}}}function Cl(t){let e,i;return e=new $l({props:{componentData:t[2]}}),{c(){tt(e.$$.fragment)},m(t,n){et(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.componentData=t[2]),e.$set(n)},i(t){i||(K(e.$$.fragment,t),i=!0)},o(t){J(e.$$.fragment,t),i=!1},d(t){it(e,t)}}}function wl(t){let e,i,n=t[0].contents,s=[];for(let e=0;e<n.length;e+=1)s[e]=Cl(vl(t,n,e));const o=t=>J(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=k()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);b(t,e,n),i=!0},p(t,i){if(1&i){let r;for(n=t[0].contents,r=0;r<n.length;r+=1){const o=vl(t,n,r);s[r]?(s[r].p(o,i),K(s[r],1)):(s[r]=Cl(o),s[r].c(),K(s[r],1),s[r].m(e.parentNode,e))}for(Z(),r=n.length;r<s.length;r+=1)o(r);G()}},i(t){if(!i){for(let t=0;t<n.length;t+=1)K(s[t]);i=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)J(s[t]);i=!1},d(t){v(s,t),t&&x(e)}}}function kl(t){let e,i,n,s;const o=[_l,yl],r=[];function a(t,e){return"page"!==t[0].type&&"section"!==t[0].type||!t[0]?.contents?1:0}return e=a(t),i=r[e]=o[e](t),{c(){i.c(),n=k()},m(t,i){r[e].m(t,i),b(t,n,i),s=!0},p(t,[s]){let l=e;e=a(t),e===l?r[e].p(t,s):(Z(),J(r[l],1,1,(()=>{r[l]=null})),G(),i=r[e],i?i.p(t,s):(i=r[e]=o[e](t),i.c()),K(i,1),i.m(n.parentNode,n))},i(t){s||(K(i),s=!0)},o(t){J(i),s=!1},d(t){r[e].d(t),t&&x(n)}}}function Ml(t,e,i){let{componentData:n}=e;const s={artifacts:Ot,barChart:Zr,dag:$a,heading:Ra,image:za,lineChart:Va,log:Wa,page:qa,section:Ga,subtitle:Ea,table:gl,text:xl,title:Sa};return t.$$set=t=>{"componentData"in t&&i(0,n=t.componentData)},[n,s]}class $l extends ot{constructor(t){super(),st(this,t,Ml,kl,r,{componentData:0})}}function Ll(t){let e,i,n;const s=t[1].default,o=h(s,t,t[0],null);return{c(){e=y("main"),i=y("div"),o&&o.c(),$(i,"class","mainContainer svelte-13ho8jo"),$(e,"class","svelte-13ho8jo")},m(t,s){b(t,e,s),m(e,i),o&&o.m(i,null),n=!0},p(t,[e]){o&&o.p&&(!n||1&e)&&f(o,s,t,t[0],n?d(s,t[0],e,null):p(t[0]),null)},i(t){n||(K(o,t),n=!0)},o(t){J(o,t),n=!1},d(t){t&&x(e),o&&o.d(t)}}}function Dl(t,e,i){let{$$slots:n={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&i(0,s=t.$$scope)},[s,n]}class Sl extends ot{constructor(t){super(),st(this,t,Dl,Ll,r,{})}}var Ol=/^[a-z0-9]+(-[a-z0-9]+)*$/,Pl=Object.freeze({left:0,top:0,width:16,height:16,rotate:0,vFlip:!1,hFlip:!1});function El(t){return{...Pl,...t}}var Al=(t,e,i,n="")=>{const s=t.split(":");if("@"===t.slice(0,1)){if(s.length<2||s.length>3)return null;n=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const t=s.pop(),i=s.pop(),o={provider:s.length>0?s[0]:n,prefix:i,name:t};return e&&!Tl(o)?null:o}const o=s[0],r=o.split("-");if(r.length>1){const t={provider:n,prefix:r.shift(),name:r.join("-")};return e&&!Tl(t)?null:t}if(i&&""===n){const t={provider:n,prefix:"",name:o};return e&&!Tl(t,i)?null:t}return null},Tl=(t,e)=>!!t&&!(""!==t.provider&&!t.provider.match(Ol)||!(e&&""===t.prefix||t.prefix.match(Ol))||!t.name.match(Ol));function Rl(t,e,i=!1){const n=function e(i,n){var s,o,r,a;if(void 0!==t.icons[i])return Object.assign({},t.icons[i]);if(n>5)return null;if(void 0!==(null==(s=t.aliases)?void 0:s[i])){const s=null==(o=t.aliases)?void 0:o[i],r=e(s.parent,n+1);return r?function(t,e){const i={...t};for(const t in Pl){const n=t;if(void 0!==e[n]){const t=e[n];if(void 0===i[n]){i[n]=t;continue}switch(n){case"rotate":i[n]=(i[n]+t)%4;break;case"hFlip":case"vFlip":i[n]=t!==i[n];break;default:i[n]=t}}}return i}(r,s):r}return 0===n&&void 0!==(null==(r=t.chars)?void 0:r[i])?e(null==(a=t.chars)?void 0:a[i],n+1):null}(e,0);if(n)for(const e in Pl)void 0===n[e]&&void 0!==t[e]&&(n[e]=t[e]);return n&&i?El(n):n}var Il=/^[a-f0-9]+(-[a-f0-9]+)*$/;function Fl(t,e){for(const i in t){const n=i,s=typeof t[n];if("undefined"!==s)switch(i){case"body":case"parent":if("string"!==s)return i;break;case"hFlip":case"vFlip":case"hidden":if("boolean"!==s){if(!e)return i;delete t[n]}break;case"width":case"height":case"left":case"top":case"rotate":case"inlineHeight":case"inlineTop":case"verticalAlign":if("number"!==s){if(!e)return i;delete t[n]}break;default:if("object"===s){if(!e)return i;delete t[n]}}else delete t[n]}return null}function zl(t,e,i){i=i||{};const n=[];if("object"!=typeof t||"object"!=typeof t.icons)return n;const s=i.validate;if(!1!==s)try{!function(t,e){const i=!!(null==e?void 0:e.fix);if("object"!=typeof t||null===t||"object"!=typeof t.icons||!t.icons)throw new Error("Bad icon set");const n=t;if("string"==typeof(null==e?void 0:e.prefix))n.prefix=e.prefix;else if("string"!=typeof n.prefix||!n.prefix.match(Ol))throw new Error("Invalid prefix");if("string"==typeof(null==e?void 0:e.provider))n.provider=e.provider;else if(void 0!==n.provider){const t=n.provider;if("string"!=typeof t||""!==t&&!t.match(Ol)){if(!i)throw new Error("Invalid provider");delete n.provider}}const s=n.icons;if(Object.keys(s).forEach((t=>{if(!t.match(Ol)){if(i)return void delete s[t];throw new Error(`Invalid icon name: "${t}"`)}const e=s[t];if("object"!=typeof e||null===e||"string"!=typeof e.body){if(i)return void delete s[t];throw new Error(`Invalid icon: "${t}"`)}const n="string"==typeof e.parent?"parent":Fl(e,i);if(null!==n){if(i)return void delete s[t];throw new Error(`Invalid property "${n}" in icon "${t}"`)}})),!Object.keys(n.icons).length)throw new Error("Icon set is empty");if(void 0!==n.aliases&&("object"!=typeof n.aliases||null===n.aliases)){if(!i)throw new Error("Invalid aliases list");delete n.aliases}if("object"==typeof n.aliases){let t=function(r,a){if(s.has(r))return!o.has(r);const l=e[r];if(a>5||"object"!=typeof l||null===l||"string"!=typeof l.parent||!r.match(Ol)){if(i)return delete e[r],o.add(r),!1;throw new Error(`Invalid icon alias: "${r}"`)}const c=l.parent;if(void 0===n.icons[c]&&(void 0===e[c]||!t(c,a+1))){if(i)return delete e[r],o.add(r),!1;throw new Error(`Missing parent icon for alias "${r}`)}i&&void 0!==l.body&&delete l.body;const h=void 0!==l.body?"body":Fl(l,i);if(null!==h){if(i)return delete e[r],o.add(r),!1;throw new Error(`Invalid property "${h}" in alias "${r}"`)}return s.add(r),!0};const e=n.aliases,s=new Set,o=new Set;Object.keys(e).forEach((e=>{t(e,0)})),i&&!Object.keys(n.aliases).length&&delete n.aliases}if(Object.keys(Pl).forEach((t=>{const e=typeof Pl[t],i=typeof n[t];if("undefined"!==i&&i!==e)throw new Error(`Invalid value type for "${t}"`)})),void 0!==n.chars&&("object"!=typeof n.chars||null===n.chars)){if(!i)throw new Error("Invalid characters map");delete n.chars}if("object"==typeof n.chars){const t=n.chars;Object.keys(t).forEach((e=>{var s;if(!e.match(Il)||"string"!=typeof t[e]){if(i)return void delete t[e];throw new Error(`Invalid character "${e}"`)}const o=t[e];if(void 0===n.icons[o]&&void 0===(null==(s=n.aliases)?void 0:s[o])){if(i)return void delete t[e];throw new Error(`Character "${e}" points to missing icon "${o}"`)}})),i&&!Object.keys(n.chars).length&&delete n.chars}}(t,"object"==typeof s?s:{fix:!0})}catch(t){return n}t.not_found instanceof Array&&t.not_found.forEach((t=>{e(t,null),n.push(t)}));const o=t.icons;Object.keys(o).forEach((i=>{const s=Rl(t,i,!0);s&&(e(i,s),n.push(i))}));const r=i.aliases||"all";if("none"!==r&&"object"==typeof t.aliases){const i=t.aliases;Object.keys(i).forEach((s=>{if("variations"===r&&function(t){for(const e in Pl)if(void 0!==t[e])return!0;return!1}(i[s]))return;const o=Rl(t,s,!0);o&&(e(s,o),n.push(s))}))}return n}var jl=Object.create(null);function Nl(t,e){void 0===jl[t]&&(jl[t]=Object.create(null));const i=jl[t];return void 0===i[e]&&(i[e]=function(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:Object.create(null)}}(t,e)),i[e]}function Vl(t,e){const i=Date.now();return zl(e,((e,n)=>{n?t.icons[e]=n:t.missing[e]=i}))}var Bl=!1;function Hl(t){return"boolean"==typeof t&&(Bl=t),Bl}function Wl(t,e){const i=Al(t,!0,Bl);if(!i)return!1;return function(t,e,i){try{if("string"==typeof i.body)return t.icons[e]=Object.freeze(El(i)),!0}catch(t){}return!1}(Nl(i.provider,i.prefix),i.name,e)}var Yl=Object.freeze({inline:!1,width:null,height:null,hAlign:"center",vAlign:"middle",slice:!1,hFlip:!1,vFlip:!1,rotate:0});var Ul=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ql=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Xl(t,e,i){if(1===e)return t;if(i=void 0===i?100:i,"number"==typeof t)return Math.ceil(t*e*i)/i;if("string"!=typeof t)return t;const n=t.split(Ul);if(null===n||!n.length)return t;const s=[];let o=n.shift(),r=ql.test(o);for(;;){if(r){const t=parseFloat(o);isNaN(t)?s.push(o):s.push(Math.ceil(t*e*i)/i)}else s.push(o);if(o=n.shift(),void 0===o)return s.join("");r=!r}}function Zl(t){let e="";switch(t.hAlign){case"left":e+="xMin";break;case"right":e+="xMax";break;default:e+="xMid"}switch(t.vAlign){case"top":e+="YMin";break;case"bottom":e+="YMax";break;default:e+="YMid"}return e+=t.slice?" slice":" meet",e}var Gl=/\sid="(\S+)"/g,Kl="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",Jl=0;function Ql(t,e=Kl){const i=[];let n;for(;n=Gl.exec(t);)i.push(n[1]);return i.length?(i.forEach((i=>{const n="function"==typeof e?e(i):e+Jl++,s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+n+"$3")})),t):t}var tc=Object.create(null);function ec(t){return tc[t]||tc[""]}function ic(t){let e;if("string"==typeof t.resources)e=[t.resources];else if(e=t.resources,!(e instanceof Array&&e.length))return null;return{resources:e,path:void 0===t.path?"/":t.path,maxURL:t.maxURL?t.maxURL:500,rotate:t.rotate?t.rotate:750,timeout:t.timeout?t.timeout:5e3,random:!0===t.random,index:t.index?t.index:0,dataAfterTimeout:!1!==t.dataAfterTimeout}}for(var nc=Object.create(null),sc=["https://api.simplesvg.com","https://api.unisvg.com"],oc=[];sc.length>0;)1===sc.length||Math.random()>.5?oc.push(sc.shift()):oc.push(sc.pop());function rc(t,e){const i=ic(e);return null!==i&&(nc[t]=i,!0)}function ac(t){return nc[t]}nc[""]=ic({resources:["https://api.iconify.design"].concat(oc)});var lc=(t,e)=>{let i=t,n=-1!==i.indexOf("?");return Object.keys(e).forEach((t=>{let s;try{s=function(t){switch(typeof t){case"boolean":return t?"true":"false";case"number":case"string":return encodeURIComponent(t);default:throw new Error("Invalid parameter")}}(e[t])}catch(t){return}i+=(n?"&":"?")+encodeURIComponent(t)+"="+s,n=!0})),i},cc=Object.create(null),hc=Object.create(null),uc=(()=>{let t;try{if(t=fetch,"function"==typeof t)return t}catch(t){}try{const e=String.fromCharCode(114)+String.fromCharCode(101);if(t=(0,global[e+"qui"+e])("cross-fetch"),"function"==typeof t)return t}catch(t){}return null})();var dc={prepare:(t,e,i)=>{const n=[];let s=cc[e];void 0===s&&(s=function(t,e){const i=ac(t);if(!i)return 0;let n;if(i.maxURL){let t=0;i.resources.forEach((e=>{const i=e;t=Math.max(t,i.length)}));const s=lc(e+".json",{icons:""});n=i.maxURL-t-i.path.length-s.length}else n=0;const s=t+":"+e;return hc[t]=i.path,cc[s]=n,n}(t,e));const o="icons";let r={type:o,provider:t,prefix:e,icons:[]},a=0;return i.forEach(((i,l)=>{a+=i.length+1,a>=s&&l>0&&(n.push(r),r={type:o,provider:t,prefix:e,icons:[]},a=i.length),r.icons.push(i)})),n.push(r),n},send:(t,e,i)=>{if(!uc)return void i.done(void 0,424);let n=function(t){if("string"==typeof t){if(void 0===hc[t]){const e=ac(t);if(!e)return"/";hc[t]=e.path}return hc[t]}return"/"}(e.provider);switch(e.type){case"icons":{const t=e.prefix,i=e.icons.join(",");n+=lc(t+".json",{icons:i});break}case"custom":{const t=e.uri;n+="/"===t.slice(0,1)?t.slice(1):t;break}default:return void i.done(void 0,400)}let s=503;uc(t+n).then((t=>{if(200===t.status)return s=501,t.json();setTimeout((()=>{i.done(void 0,t.status)}))})).then((t=>{"object"==typeof t&&null!==t?setTimeout((()=>{i.done(t)})):setTimeout((()=>{i.done(void 0,s)}))})).catch((()=>{i.done(void 0,s)}))}};var fc=Object.create(null),pc=Object.create(null);function gc(t,e){t.forEach((t=>{const i=t.provider;if(void 0===fc[i])return;const n=fc[i],s=t.prefix,o=n[s];o&&(n[s]=o.filter((t=>t.id!==e)))}))}var mc=0;var bc={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function xc(t,e,i,n,s){const o=t.resources.length,r=t.random?Math.floor(Math.random()*o):t.index;let a;if(t.random){let e=t.resources.slice(0);for(a=[];e.length>1;){const t=Math.floor(Math.random()*e.length);a.push(e[t]),e=e.slice(0,t).concat(e.slice(t+1))}a=a.concat(e)}else a=t.resources.slice(r).concat(t.resources.slice(0,r));const l=Date.now();let c,h="pending",u=0,d=null,f=[],p=[];function g(){d&&(clearTimeout(d),d=null)}function m(){"pending"===h&&(h="aborted"),g(),f.forEach((t=>{t.abort&&t.abort(),"pending"===t.status&&(t.status="aborted")})),f=[]}function b(t,e){e&&(p=[]),"function"==typeof t&&p.push(t)}function x(){return{startTime:l,payload:e,status:h,queriesSent:u,queriesPending:f.length,subscribe:b,abort:m}}function v(){h="failed",p.forEach((t=>{t(void 0,c)}))}function y(){f=f.filter((t=>("pending"===t.status&&(t.status="aborted"),t.abort&&t.abort(),!1)))}function _(){if("pending"!==h)return;g();const n=a.shift();if(void 0===n){if(f.length){const e="function"==typeof t.timeout?t.timeout(l):t.timeout;if(e)return void(d=setTimeout((()=>{g(),"pending"===h&&(y(),v())}),e))}return void v()}const o={getQueryStatus:x,status:"pending",resource:n,done:(e,i)=>{!function(e,i,n){const o=void 0===i;switch(f=f.filter((t=>t!==e)),h){case"pending":break;case"failed":if(o||!t.dataAfterTimeout)return;break;default:return}if(o)return void 0!==n&&(c=n),void(f.length||(a.length?_():v()));if(g(),y(),s&&!t.random){const i=t.resources.indexOf(e.resource);-1!==i&&i!==t.index&&s(i)}h="completed",p.forEach((t=>{t(i)}))}(o,e,i)}};f.push(o),u++;const r="function"==typeof t.rotate?t.rotate(u,l):t.rotate;d=setTimeout(_,r),i(n,e,o)}return"function"==typeof n&&p.push(n),setTimeout(_),x}function vc(t){const e=function(t){if(!("object"==typeof t&&"object"==typeof t.resources&&t.resources instanceof Array&&t.resources.length))throw new Error("Invalid Reduncancy configuration");const e=Object.create(null);let i;for(i in bc)void 0!==t[i]?e[i]=t[i]:e[i]=bc[i];return e}(t);let i=[];function n(){i=i.filter((t=>"pending"===t().status))}const s={query:function(t,s,o){const r=xc(e,t,s,((t,e)=>{n(),o&&o(t,e)}),(t=>{e.index=t}));return i.push(r),r},find:function(t){const e=i.find((e=>t(e)));return void 0!==e?e:null},setIndex:t=>{e.index=t},getIndex:()=>e.index,cleanup:n};return s}function yc(){}var _c=Object.create(null);function Cc(t,e,i){let n,s;if("string"==typeof t){const e=ec(t);if(!e)return i(void 0,424),yc;s=e.send;const o=function(t){if(void 0===_c[t]){const e=ac(t);if(!e)return;const i={config:e,redundancy:vc(e)};_c[t]=i}return _c[t]}(t);o&&(n=o.redundancy)}else{const e=ic(t);if(e){n=vc(e);const i=ec(t.resources?t.resources[0]:"");i&&(s=i.send)}}return n&&s?n.query(e,s,i)().abort:(i(void 0,424),yc)}var wc={};function kc(){}var Mc=Object.create(null),$c=Object.create(null),Lc=Object.create(null),Dc=Object.create(null);function Sc(t,e){void 0===Lc[t]&&(Lc[t]=Object.create(null));const i=Lc[t];i[e]||(i[e]=!0,setTimeout((()=>{i[e]=!1,function(t,e){void 0===pc[t]&&(pc[t]=Object.create(null));const i=pc[t];i[e]||(i[e]=!0,setTimeout((()=>{if(i[e]=!1,void 0===fc[t]||void 0===fc[t][e])return;const n=fc[t][e].slice(0);if(!n.length)return;const s=Nl(t,e);let o=!1;n.forEach((i=>{const n=i.icons,r=n.pending.length;n.pending=n.pending.filter((i=>{if(i.prefix!==e)return!0;const r=i.name;if(void 0!==s.icons[r])n.loaded.push({provider:t,prefix:e,name:r});else{if(void 0===s.missing[r])return o=!0,!0;n.missing.push({provider:t,prefix:e,name:r})}return!1})),n.pending.length!==r&&(o||gc([{provider:t,prefix:e}],i.id),i.callback(n.loaded.slice(0),n.missing.slice(0),n.pending.slice(0),i.abort))}))})))}(t,e)})))}var Oc=Object.create(null);function Pc(t,e,i){void 0===$c[t]&&($c[t]=Object.create(null));const n=$c[t];void 0===Dc[t]&&(Dc[t]=Object.create(null));const s=Dc[t];void 0===Mc[t]&&(Mc[t]=Object.create(null));const o=Mc[t];void 0===n[e]?n[e]=i:n[e]=n[e].concat(i).sort(),s[e]||(s[e]=!0,setTimeout((()=>{s[e]=!1;const i=n[e];delete n[e];const r=ec(t);if(!r)return void function(){const i=(""===t?"":"@"+t+":")+e,n=Math.floor(Date.now()/6e4);Oc[i]<n&&(Oc[i]=n,console.error('Unable to retrieve icons for "'+i+'" because API is not configured properly.'))}();r.prepare(t,e,i).forEach((i=>{Cc(t,i,((n,s)=>{const r=Nl(t,e);if("object"!=typeof n){if(404!==s)return;const t=Date.now();i.icons.forEach((e=>{r.missing[e]=t}))}else try{const i=Vl(r,n);if(!i.length)return;const s=o[e];i.forEach((t=>{delete s[t]})),wc.store&&wc.store(t,n)}catch(t){console.error(t)}Sc(t,e)}))}))})))}var Ec=(t,e)=>{const i=function(t,e=!0,i=!1){const n=[];return t.forEach((t=>{const s="string"==typeof t?Al(t,!1,i):t;e&&!Tl(s,i)||n.push({provider:s.provider,prefix:s.prefix,name:s.name})})),n}(t,!0,Hl()),n=function(t){const e={loaded:[],missing:[],pending:[]},i=Object.create(null);t.sort(((t,e)=>t.provider!==e.provider?t.provider.localeCompare(e.provider):t.prefix!==e.prefix?t.prefix.localeCompare(e.prefix):t.name.localeCompare(e.name)));let n={provider:"",prefix:"",name:""};return t.forEach((t=>{if(n.name===t.name&&n.prefix===t.prefix&&n.provider===t.provider)return;n=t;const s=t.provider,o=t.prefix,r=t.name;void 0===i[s]&&(i[s]=Object.create(null));const a=i[s];void 0===a[o]&&(a[o]=Nl(s,o));const l=a[o];let c;c=void 0!==l.icons[r]?e.loaded:""===o||void 0!==l.missing[r]?e.missing:e.pending;const h={provider:s,prefix:o,name:r};c.push(h)})),e}(i);if(!n.pending.length){let t=!0;return e&&setTimeout((()=>{t&&e(n.loaded,n.missing,n.pending,kc)})),()=>{t=!1}}const s=Object.create(null),o=[];let r,a;n.pending.forEach((t=>{const e=t.provider,i=t.prefix;if(i===a&&e===r)return;r=e,a=i,o.push({provider:e,prefix:i}),void 0===Mc[e]&&(Mc[e]=Object.create(null));const n=Mc[e];void 0===n[i]&&(n[i]=Object.create(null)),void 0===s[e]&&(s[e]=Object.create(null));const l=s[e];void 0===l[i]&&(l[i]=[])}));const l=Date.now();return n.pending.forEach((t=>{const e=t.provider,i=t.prefix,n=t.name,o=Mc[e][i];void 0===o[n]&&(o[n]=l,s[e][i].push(n))})),o.forEach((t=>{const e=t.provider,i=t.prefix;s[e][i].length&&Pc(e,i,s[e][i])})),e?function(t,e,i){const n=mc++,s=gc.bind(null,i,n);if(!e.pending.length)return s;const o={id:n,icons:e,callback:t,abort:s};return i.forEach((t=>{const e=t.provider,i=t.prefix;void 0===fc[e]&&(fc[e]=Object.create(null));const n=fc[e];void 0===n[i]&&(n[i]=[]),n[i].push(o)})),s}(e,n,o):kc},Ac="iconify2",Tc="iconify",Rc="iconify-count",Ic="iconify-version",Fc=36e5,zc={local:!0,session:!0},jc=!1,Nc={local:0,session:0},Vc={local:[],session:[]},Bc="undefined"==typeof window?{}:window;function Hc(t){const e=t+"Storage";try{if(Bc&&Bc[e]&&"number"==typeof Bc[e].length)return Bc[e]}catch(t){}return zc[t]=!1,null}function Wc(t,e,i){try{return t.setItem(Rc,i+""),Nc[e]=i,!0}catch(t){return!1}}function Yc(t){const e=t.getItem(Rc);if(e){const t=parseInt(e);return t||0}return 0}var Uc=()=>{if(jc)return;jc=!0;const t=Math.floor(Date.now()/Fc)-168;function e(e){const i=Hc(e);if(!i)return;const n=e=>{const n=Tc+e,s=i.getItem(n);if("string"!=typeof s)return!1;let o=!0;try{const e=JSON.parse(s);if("object"!=typeof e||"number"!=typeof e.cached||e.cached<t||"string"!=typeof e.provider||"object"!=typeof e.data||"string"!=typeof e.data.prefix)o=!1;else{const t=e.provider,i=e.data.prefix;o=Vl(Nl(t,i),e.data).length>0}}catch(t){o=!1}return o||i.removeItem(n),o};try{const t=i.getItem(Ic);if(t!==Ac)return t&&function(t){try{const e=Yc(t);for(let i=0;i<e;i++)t.removeItem(Tc+i)}catch(t){}}(i),void function(t,e){try{t.setItem(Ic,Ac)}catch(t){}Wc(t,e,0)}(i,e);let s=Yc(i);for(let t=s-1;t>=0;t--)n(t)||(t===s-1?s--:Vc[e].push(t));Wc(i,e,s)}catch(t){}}for(const t in zc)e(t)},qc=/[\s,]+/;function Xc(t,e){e.split(qc).forEach((e=>{switch(e.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0}}))}function Zc(t,e){e.split(qc).forEach((e=>{const i=e.trim();switch(i){case"left":case"center":case"right":t.hAlign=i;break;case"top":case"middle":case"bottom":t.vAlign=i;break;case"slice":case"crop":t.slice=!0;break;case"meet":t.slice=!1}}))}function Gc(t,e=0){const i=t.replace(/^-?[0-9.]*/,"");function n(t){for(;t<0;)t+=4;return t%4}if(""===i){const e=parseInt(t);return isNaN(e)?0:n(e)}if(i!==t){let e=0;switch(i){case"%":e=25;break;case"deg":e=90}if(e){let s=parseFloat(t.slice(0,t.length-i.length));return isNaN(s)?0:(s/=e,s%1==0?n(s):0)}}return e}const Kc={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"};function Jc(t,e){const i=function(t,e){const i={};for(const n in t){const s=n;if(i[s]=t[s],void 0===e[s])continue;const o=e[s];switch(s){case"inline":case"slice":"boolean"==typeof o&&(i[s]=o);break;case"hFlip":case"vFlip":!0===o&&(i[s]=!i[s]);break;case"hAlign":case"vAlign":"string"==typeof o&&""!==o&&(i[s]=o);break;case"width":case"height":("string"==typeof o&&""!==o||"number"==typeof o&&o||null===o)&&(i[s]=o);break;case"rotate":"number"==typeof o&&(i[s]+=o)}}return i}(Yl,e),n={...Kc};let s="string"==typeof e.style?e.style:"";for(let t in e){const o=e[t];if(void 0!==o)switch(t){case"icon":case"style":case"onLoad":break;case"inline":case"hFlip":case"vFlip":i[t]=!0===o||"true"===o||1===o;break;case"flip":"string"==typeof o&&Xc(i,o);break;case"align":"string"==typeof o&&Zc(i,o);break;case"color":s=s+(s.length>0&&";"!==s.trim().slice(-1)?";":"")+"color: "+o+"; ";break;case"rotate":"string"==typeof o?i[t]=Gc(o):"number"==typeof o&&(i[t]=o);break;case"ariaHidden":case"aria-hidden":!0!==o&&"true"!==o&&delete n["aria-hidden"];break;default:if("on:"===t.slice(0,3))break;void 0===Yl[t]&&(n[t]=o)}}const o=function(t,e){const i={left:t.left,top:t.top,width:t.width,height:t.height};let n,s,o=t.body;[t,e].forEach((t=>{const e=[],n=t.hFlip,s=t.vFlip;let r,a=t.rotate;switch(n?s?a+=2:(e.push("translate("+(i.width+i.left)+" "+(0-i.top)+")"),e.push("scale(-1 1)"),i.top=i.left=0):s&&(e.push("translate("+(0-i.left)+" "+(i.height+i.top)+")"),e.push("scale(1 -1)"),i.top=i.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:r=i.height/2+i.top,e.unshift("rotate(90 "+r+" "+r+")");break;case 2:e.unshift("rotate(180 "+(i.width/2+i.left)+" "+(i.height/2+i.top)+")");break;case 3:r=i.width/2+i.left,e.unshift("rotate(-90 "+r+" "+r+")")}a%2==1&&(0===i.left&&0===i.top||(r=i.left,i.left=i.top,i.top=r),i.width!==i.height&&(r=i.width,i.width=i.height,i.height=r)),e.length&&(o='<g transform="'+e.join(" ")+'">'+o+"</g>")})),null===e.width&&null===e.height?(s="1em",n=Xl(s,i.width/i.height)):null!==e.width&&null!==e.height?(n=e.width,s=e.height):null!==e.height?(s=e.height,n=Xl(s,i.width/i.height)):(n=e.width,s=Xl(n,i.height/i.width)),"auto"===n&&(n=i.width),"auto"===s&&(s=i.height),n="string"==typeof n?n:n+"",s="string"==typeof s?s:s+"";const r={attributes:{width:n,height:s,preserveAspectRatio:Zl(e),viewBox:i.left+" "+i.top+" "+i.width+" "+i.height},body:o};return e.inline&&(r.inline=!0),r}(t,i);for(let t in o.attributes)n[t]=o.attributes[t];o.inline&&(s="vertical-align: -0.125em; "+s),""!==s&&(n.style=s);let r=0;const a=e.id;return{attributes:n,body:Ql(o.body,a?()=>a+"-"+r++:"iconify-svelte-")}}var Qc;if(Hl(!0),Qc=dc,tc[""]=Qc,"undefined"!=typeof document&&"undefined"!=typeof window){wc.store=(t,e)=>{function i(i){if(!zc[i])return!1;const n=Hc(i);if(!n)return!1;let s=Vc[i].shift();if(void 0===s&&(s=Nc[i],!Wc(n,i,s+1)))return!1;try{const i={cached:Math.floor(Date.now()/Fc),provider:t,data:e};n.setItem(Tc+s,JSON.stringify(i))}catch(t){return!1}return!0}jc||Uc(),i("local")||i("session")},Uc();const t=window;if(void 0!==t.IconifyPreload){const e=t.IconifyPreload,i="Invalid IconifyPreload syntax.";"object"==typeof e&&null!==e&&(e instanceof Array?e:[e]).forEach((t=>{try{("object"!=typeof t||null===t||t instanceof Array||"object"!=typeof t.icons||"string"!=typeof t.prefix||!function(t,e){if("object"!=typeof t)return!1;if("string"!=typeof e&&(e="string"==typeof t.provider?t.provider:""),Bl&&""===e&&("string"!=typeof t.prefix||""===t.prefix)){let e=!1;return zl(t,((t,i)=>{i&&Wl(t,i)&&(e=!0)}),{validate:{fix:!0,prefix:""}}),e}return!("string"!=typeof t.prefix||!Tl({provider:e,prefix:t.prefix,name:"a"}))&&!!Vl(Nl(e,t.prefix),t)}(t))&&console.error(i)}catch(t){console.error(i)}}))}if(void 0!==t.IconifyProviders){const e=t.IconifyProviders;if("object"==typeof e&&null!==e)for(let t in e){const i="IconifyProviders["+t+"] is invalid.";try{const n=e[t];if("object"!=typeof n||!n||void 0===n.resources)continue;rc(t,n)||console.error(i)}catch(t){console.error(i)}}}}function th(t,e,i,n,s){function o(){e.loading&&(e.loading.abort(),e.loading=null)}if("object"==typeof t&&null!==t&&"string"==typeof t.body)return e.name="",o(),{data:El(t)};let r;if("string"!=typeof t||null===(r=Al(t,!1,!0)))return o(),null;const a=function(t){const e="string"==typeof t?Al(t,!0,Bl):t;return e?function(t,e){const i=t.icons[e];return void 0===i?null:i}(Nl(e.provider,e.prefix),e.name):null}(r);if(null===a)return!i||e.loading&&e.loading.name===t||(o(),e.name="",e.loading={name:t,abort:Ec([r],n)}),null;o(),e.name!==t&&(e.name=t,s&&!e.destroyed&&s(t));const l=["iconify"];return""!==r.prefix&&l.push("iconify--"+r.prefix),""!==r.provider&&l.push("iconify--"+r.provider),{data:a,classes:l}}function eh(t){let i,n=t[0].body+"",s=[t[0].attributes],o={};for(let t=0;t<s.length;t+=1)o=e(o,s[t]);return{c(){i=_("svg"),L(i,o)},m(t,e){b(t,i,e),i.innerHTML=n},p(t,e){1&e&&n!==(n=t[0].body+"")&&(i.innerHTML=n),L(i,o=function(t,e){const i={},n={},s={$$scope:1};let o=t.length;for(;o--;){const r=t[o],a=e[o];if(a){for(const t in r)t in a||(n[t]=1);for(const t in a)s[t]||(i[t]=a[t],s[t]=1);t[o]=a}else for(const t in r)s[t]=1}for(const t in n)t in i||(i[t]=void 0);return i}(s,[1&e&&t[0].attributes]))},d(t){t&&x(i)}}}function ih(e){let i,n=null!==e[0]&&eh(e);return{c(){n&&n.c(),i=k()},m(t,e){n&&n.m(t,e),b(t,i,e)},p(t,[e]){null!==t[0]?n?n.p(t,e):(n=eh(t),n.c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},i:t,o:t,d(t){n&&n.d(t),t&&x(i)}}}function nh(t,i,n){const s={name:"",loading:null,destroyed:!1};let o,r=!1,a=0;const l=t=>{"function"==typeof i.onLoad&&i.onLoad(t);T()("load",{icon:t})};function c(){n(3,a++,a)}var h;return A((()=>{n(2,r=!0)})),h=()=>{n(1,s.destroyed=!0,s),s.loading&&(s.loading.abort(),n(1,s.loading=null,s))},E().$$.on_destroy.push(h),t.$$set=t=>{n(6,i=e(e({},i),g(t)))},t.$$.update=()=>{{const a=th(i.icon,s,r,c,l);n(0,o=a?(t=a.data,e=i,t?Jc(t,e):null):null),o&&a.classes&&n(0,o.attributes.class=("string"==typeof i.class?i.class+" ":"")+a.classes.join(" "),o)}var t,e},i=g(i),[o,s,r,a]}class sh extends ot{constructor(t){super(),st(this,t,nh,ih,r,{})}}function oh(t){let e,i,n,o,r,a,l,c,h;return n=new sh({props:{icon:"mdi:close"}}),a=new $l({props:{componentData:t[1]}}),{c(){e=y("div"),i=y("span"),tt(n.$$.fragment),o=w(),r=y("div"),tt(a.$$.fragment),$(i,"class","cancelButton svelte-9vqlpe"),$(r,"class","modalContainer"),$(e,"class","modal svelte-9vqlpe")},m(s,u){b(s,e,u),m(e,i),et(n,i,null),m(e,o),m(e,r),et(a,r,null),l=!0,c||(h=[M(r,"click",ah),M(e,"click",t[3])],c=!0)},p(t,e){const i={};2&e&&(i.componentData=t[1]),a.$set(i)},i(t){l||(K(n.$$.fragment,t),K(a.$$.fragment,t),l=!0)},o(t){J(n.$$.fragment,t),J(a.$$.fragment,t),l=!1},d(t){t&&x(e),it(n),it(a),c=!1,s(h)}}}function rh(t){let e,i,n,s,o=t[0]&&t[1]&&oh(t);return{c(){o&&o.c(),e=k()},m(r,a){o&&o.m(r,a),b(r,e,a),i=!0,n||(s=M(window,"keyup",t[2]),n=!0)},p(t,[i]){t[0]&&t[1]?o?(o.p(t,i),3&i&&K(o,1)):(o=oh(t),o.c(),K(o,1),o.m(e.parentNode,e)):o&&(Z(),J(o,1,1,(()=>{o=null})),G())},i(t){i||(K(o),i=!0)},o(t){J(o),i=!1},d(t){o&&o.d(t),t&&x(e),n=!1,s()}}}const ah=t=>{t?.stopImmediatePropagation()};function lh(t,e,i){let n;c(t,dt,(t=>i(1,n=t)));let{componentData:s}=e;return t.$$set=t=>{"componentData"in t&&i(0,s=t.componentData)},[s,n,function(t){"Escape"===t.code&&dt.set(void 0)},function(t){t.stopImmediatePropagation(),dt.set(void 0)}]}class ch extends ot{constructor(t){super(),st(this,t,lh,rh,r,{componentData:0})}}function hh(t,e,i){const n=t.slice();return n[2]=e[i][0],n[3]=e[i][1],n}function uh(t,e,i){const n=t.slice();return n[6]=e[i],n}function dh(t){let e,i,n,s,o,r,a=t[6]+"";function l(){return t[1](t[6])}return{c(){e=y("li"),i=y("button"),n=C(a),s=w(),$(i,"class","textButton"),$(e,"class","sectionLink svelte-1kdpgko")},m(t,a){b(t,e,a),m(e,i),m(i,n),m(e,s),o||(r=M(i,"click",l),o=!0)},p(e,i){t=e,1&i&&a!==(a=t[6]+"")&&D(n,a)},d(t){t&&x(e),o=!1,r()}}}function fh(t){let e,i,n,s,o,r,a=t[2]+"",l=t[3]||[],c=[];for(let e=0;e<l.length;e+=1)c[e]=dh(uh(t,l,e));return{c(){e=y("li"),i=y("span"),n=C(a),s=w(),o=y("ul");for(let t=0;t<c.length;t+=1)c[t].c();r=w(),$(i,"class","pageId svelte-1kdpgko"),$(o,"class","navItem svelte-1kdpgko"),$(e,"class","svelte-1kdpgko")},m(t,a){b(t,e,a),m(e,i),m(i,n),m(e,s),m(e,o);for(let t=0;t<c.length;t+=1)c[t].m(o,null);m(e,r)},p(t,e){if(1&e&&a!==(a=t[2]+"")&&D(n,a),1&e){let i;for(l=t[3]||[],i=0;i<l.length;i+=1){const n=uh(t,l,i);c[i]?c[i].p(n,e):(c[i]=dh(n),c[i].c(),c[i].m(o,null))}for(;i<c.length;i+=1)c[i].d(1);c.length=l.length}},d(t){t&&x(e),v(c,t)}}}function ph(e){let i,n,s=Object.entries(e[0]),o=[];for(let t=0;t<s.length;t+=1)o[t]=fh(hh(e,s,t));return{c(){i=y("nav"),n=y("ul");for(let t=0;t<o.length;t+=1)o[t].c();$(n,"class","navList svelte-1kdpgko"),$(i,"class","nav svelte-1kdpgko")},m(t,e){b(t,i,e),m(i,n);for(let t=0;t<o.length;t+=1)o[t].m(n,null)},p(t,[e]){if(1&e){let i;for(s=Object.entries(t[0]),i=0;i<s.length;i+=1){const r=hh(t,s,i);o[i]?o[i].p(r,e):(o[i]=fh(r),o[i].c(),o[i].m(n,null))}for(;i<o.length;i+=1)o[i].d(1);o.length=s.length}},i:t,o:t,d(t){t&&x(i),v(o,t)}}}function gh(t,e,i){let{pageHierarchy:n={}}=e;return t.$$set=t=>{"pageHierarchy"in t&&i(0,n=t.pageHierarchy)},[n,t=>function(t){const e=document.querySelector(`[data-section-id="${t}"]`);null==e||e.scrollIntoView({behavior:"smooth"})}(t)]}class mh extends ot{constructor(t){super(),st(this,t,gh,ph,r,{pageHierarchy:0})}}function bh(t,e,i){const n=t.slice();return n[2]=e[i],n}function xh(t){let e,i;return e=new mh({props:{pageHierarchy:ft(t[0]?.components)}}),{c(){tt(e.$$.fragment)},m(t,n){et(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.pageHierarchy=ft(t[0]?.components)),e.$set(n)},i(t){i||(K(e.$$.fragment,t),i=!0)},o(t){J(e.$$.fragment,t),i=!1},d(t){it(e,t)}}}function vh(t){let e,i;return e=new $l({props:{componentData:t[2]}}),{c(){tt(e.$$.fragment)},m(t,n){et(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.componentData=t[2]),e.$set(n)},i(t){i||(K(e.$$.fragment,t),i=!0)},o(t){J(e.$$.fragment,t),i=!1},d(t){it(e,t)}}}function yh(t){let e,i,n=t[0]?.components||[],s=[];for(let e=0;e<n.length;e+=1)s[e]=vh(bh(t,n,e));const o=t=>J(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=k()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);b(t,e,n),i=!0},p(t,i){if(1&i){let r;for(n=t[0]?.components||[],r=0;r<n.length;r+=1){const o=bh(t,n,r);s[r]?(s[r].p(o,i),K(s[r],1)):(s[r]=vh(o),s[r].c(),K(s[r],1),s[r].m(e.parentNode,e))}for(Z(),r=n.length;r<s.length;r+=1)o(r);G()}},i(t){if(!i){for(let t=0;t<n.length;t+=1)K(s[t]);i=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)J(s[t]);i=!1},d(t){v(s,t),t&&x(e)}}}function _h(t){let e,i;return e=new ch({props:{componentData:t[1]}}),{c(){tt(e.$$.fragment)},m(t,n){et(e,t,n),i=!0},p(t,i){const n={};2&i&&(n.componentData=t[1]),e.$set(n)},i(t){i||(K(e.$$.fragment,t),i=!0)},o(t){J(e.$$.fragment,t),i=!1},d(t){it(e,t)}}}function Ch(t){let e,i,n,s,o,r,a;i=new Ct({props:{$$slots:{default:[xh]},$$scope:{ctx:t}}}),s=new Sl({props:{$$slots:{default:[yh]},$$scope:{ctx:t}}});let l=t[1]&&_h(t);return{c(){e=y("div"),tt(i.$$.fragment),n=w(),tt(s.$$.fragment),o=w(),l&&l.c(),r=k(),$(e,"class","container mf-card svelte-teyund")},m(t,c){b(t,e,c),et(i,e,null),m(e,n),et(s,e,null),b(t,o,c),l&&l.m(t,c),b(t,r,c),a=!0},p(t,[e]){const n={};33&e&&(n.$$scope={dirty:e,ctx:t}),i.$set(n);const o={};33&e&&(o.$$scope={dirty:e,ctx:t}),s.$set(o),t[1]?l?(l.p(t,e),2&e&&K(l,1)):(l=_h(t),l.c(),K(l,1),l.m(r.parentNode,r)):l&&(Z(),J(l,1,1,(()=>{l=null})),G())},i(t){a||(K(i.$$.fragment,t),K(s.$$.fragment,t),K(l),a=!0)},o(t){J(i.$$.fragment,t),J(s.$$.fragment,t),J(l),a=!1},d(t){t&&x(e),it(i),it(s),t&&x(o),l&&l.d(t),t&&x(r)}}}function wh(t,e,i){let n,s;return c(t,ut,(t=>i(0,n=t))),c(t,dt,(t=>i(1,s=t))),[n,s]}class kh extends ot{constructor(t){super(),st(this,t,wh,Ch,r,{})}}let Mh;try{Mh=new kh({target:document.getElementById("app"),props:{}})}catch(t){throw new Error(t)}return Mh}();
  //# sourceMappingURL=main.js.map
  