PageSourceSearch

https://www.frivillighetnorge.no/build/js/main.js?id=f3c647a71c3f822df19da4761a81dbd5

js frivillighetnorge.no collected 2026-09-24 22:35:55 UTC 439,395 bytes, 2 lines download raw bytes

1/*! For license information please see main.js.LICENSE.txt */
2(()=>{var t,e={742:()=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function n(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(s=r.key,o=void 0,o=function(e,i){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,i||"default");if("object"!==t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(s,"string"),"symbol"===t(o)?o:String(o)),r)}var s,o}var r=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.document=e,this.selector=i,this.sliders=[]}var i,r,o;return i=t,(r=[{key:"init",value:function(){var t=this;return this.sliders=Array.from(this.document.querySelectorAll(this.selector)),this.sliders.length&&this.sliders.forEach((function(i){new MutationObserver((function(){s&&"function"==typeof s.removeAttr&&s.removeAttr(i)})).observe(i,{attributes:!0,childList:!0,subtree:!0}),t.removeAttr(i),e(i.querySelectorAll("[data-slideshow-item]")).forEach((function(e){var i=e.querySelector("a");i&&i.addEventListener("focus",(function(e){t.handleFocus(e)}))}))})),this}},{key:"removeAttr",value:function(t){t&&e(t.querySelectorAll("[data-slideshow-item]")).forEach((function(t){var e=t.getBoundingClientRect(),i=.1*e.width,n=Math.max(document.documentElement.clientWidth,window.innerWidth);e.right<0+i||e.left>=n-i?(e.right<0||e.left>=n)&&(t.getAttribute("aria-hidden")||t.setAttribute("aria-hidden","true")):t.getAttribute("aria-hidden")&&t.removeAttribute("aria-hidden")}))}},{key:"handleFocus",value:function(t){var e=t.target.closest("[data-slideshow-item]");e&&e.getAttribute("aria-hidden")&&e.removeAttribute("aria-hidden")}}])&&n(i.prototype,r),o&&n(i,o),Object.defineProperty(i,"prototype",{writable:!1}),t}(),s={};document.addEventListener("DOMContentLoaded",(function(t){(s=new r(document,"[data-slideshow]")).init()}))},78:(t,e,i)=>{"use strict";i(90);var n,r,s,o,a=!1,l=!1,c=[];function h(t){!function(t){c.includes(t)||c.push(t);l||a||(a=!0,queueMicrotask(d))}(t)}function u(t){let e=c.indexOf(t);-1!==e&&c.splice(e,1)}function d(){a=!1,l=!0;for(let t=0;t<c.length;t++)c[t]();c.length=0,l=!1}var f=!0;function p(t){r=t}var g=[],m=[],v=[];function b(t,e){"function"==typeof e?(t._x_cleanups||(t._x_cleanups=[]),t._x_cleanups.push(e)):(e=t,m.push(e))}function y(t,e){t._x_attributeCleanups&&Object.entries(t._x_attributeCleanups).forEach((([i,n])=>{(void 0===e||e.includes(i))&&(n.forEach((t=>t())),delete t._x_attributeCleanups[i])}))}var _=new MutationObserver(O),x=!1;function w(){_.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),x=!0}
2function k(){(S=S.concat(_.takeRecords())).length&&!E&&(E=!0,queueMicrotask((()=>{O(S),S.length=0,E=!1}))),_.disconnect(),x=!1}var S=[],E=!1;function M(t){if(!x)return t();k();let e=t();return w(),e}var A=!1,C=[];function O(t){if(A)return void(C=C.concat(t));let e=[],i=[],n=new Map,r=new Map;for(let s=0;s<t.length;s++)if(!t[s].target._x_ignoreMutationObserver&&("childList"===t[s].type&&(t[s].addedNodes.forEach((t=>1===t.nodeType&&e.push(t))),t[s].removedNodes.forEach((t=>1===t.nodeType&&i.push(t)))),"attributes"===t[s].type)){let e=t[s].target,i=t[s].attributeName,o=t[s].oldValue,a=()=>{n.has(e)||n.set(e,[]),n.get(e).push({name:i,value:e.getAttribute(i)})},l=()=>{r.has(e)||r.set(e,[]),r.get(e).push(i)};e.hasAttribute(i)&&null===o?a():e.hasAttribute(i)?(l(),a()):l()}r.forEach(((t,e)=>{y(e,t)})),n.forEach(((t,e)=>{g.forEach((i=>i(e,t)))}));for(let t of i)if(!e.includes(t)&&(m.forEach((e=>e(t))),t._x_cleanups))for(;t._x_cleanups.length;)t._x_cleanups.pop()();e.forEach((t=>{t._x_ignoreSelf=!0,t._x_ignore=!0}));for(let t of e)i.includes(t)||t.isConnected&&(delete t._x_ignoreSelf,delete t._x_ignore,v.forEach((e=>e(t))),t._x_ignore=!0,t._x_ignoreSelf=!0);e.forEach((t=>{delete t._x_ignoreSelf,delete t._x_ignore})),e=null,i=null,n=null,r=null}function D(t){return z(L(t))}function P(t,e,i){return t._x_dataStack=[e,...L(i||t)],()=>{t._x_dataStack=t._x_dataStack.filter((t=>t!==e))}}function T(t,e){let i=t._x_dataStack[0];Object.entries(e).forEach((([t,e])=>{i[t]=e}))}function L(t){return t._x_dataStack?t._x_dataStack:"function"==typeof ShadowRoot&&t instanceof ShadowRoot?L(t.host):t.parentNode?L(t.parentNode):[]}function z(t){let e=new Proxy({},{ownKeys:()=>Array.from(new Set(t.flatMap((t=>Object.keys(t))))),has:(e,i)=>t.some((t=>t.hasOwnProperty(i))),get:(i,n)=>(t.find((t=>{if(t.hasOwnProperty(n)){let i=Object.getOwnPropertyDescriptor(t,n);if(i.get&&i.get._x_alreadyBound||i.set&&i.set._x_alreadyBound)return!0;if((i.get||i.set)&&i.enumerable){let r=i.get,s=i.set,o=i;r=r&&r.bind(e),s=s&&s.bind(e),r&&(r._x_alreadyBound=!0),s&&(s._x_alreadyBound=!0),Object.defineProperty(t,n,{...o,get:r,set:s})}return!0}return!1}))||{})[n],set:(e,i,n)=>{let r=t.find((t=>t.hasOwnProperty(i)));return r?r[i]=n:t[t.length-1][i]=n,!0}});return e}function I(t){let e=(i,n="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach((([r,{value:s,enumerable:o}])=>{if(!1===o||void 0===s)return;let a=""===n?r:`${n}.${r}`;var l;"object"==typeof s&&null!==s&&s._x_interceptor?i[r]=s.initialize(t,a,r):"object"!=typeof(l=s)||Array.isArray(l)||null===l||s===i||s instanceof Element||e(s,a)}))};return e(t)}function R(t,e=(()=>{})){let i={initialValue:void 0,_x_interceptor:!0,initialize(e,i,n){return t(this.initialValue,(()=>function(t,e){return e.split(".").reduce(((t,e)=>t[e]),t)}(e,i)),(t=>F(e,i,t)),i,n)}};return e(i),t=>{if("object"==typeof t&&null!==t&&t._x_interceptor){let e=i.initialize.bind(i);i.initialize=(n,r,s)=>{let o=t.initialize(n,r,s);return i.initialValue=o,e(n,r,s)}}else i.initialValue=t;return i}}function F(t,e,i){if("string"==typeof e&&(e=e.split(".")),1!==e.length){if(0===e.length)throw error;return t[e[0]]||(t[e[0]]={}),F(t[e[0]],e.slice(1),i)}t[e[0]]=i}var N={};function j(t,e){N[t]=e}
2function B(t,e){return Object.entries(N).forEach((([i,n])=>{Object.defineProperty(t,`$${i}`,{get(){let[t,i]=st(e);return t={interceptor:R,...t},b(e,i),n(e,t)},enumerable:!1})})),t}function V(t,e,i,...n){try{return i(...n)}catch(i){W(i,t,e)}}function W(t,e,i){Object.assign(t,{el:e,expression:i}),console.warn(`Alpine Expression Error: ${t.message}\n\n${i?'Expression: "'+i+'"\n\n':""}`,e),setTimeout((()=>{throw t}),0)}var H=!0;function $(t,e,i={}){let n;return q(t,e)((t=>n=t),i),n}function q(...t){return U(...t)}var U=Y;function Y(t,e){let i={};B(i,t);let n=[i,...L(t)];if("function"==typeof e)return function(t,e){return(i=(()=>{}),{scope:n={},params:r=[]}={})=>{G(i,e.apply(z([n,...t]),r))}}(n,e);let r=function(t,e,i){let n=function(t,e){if(X[t])return X[t];let i=Object.getPrototypeOf((async function(){})).constructor,n=/^[\n\s]*if.*\(.*\)/.test(t)||/^(let|const)\s/.test(t)?`(() => { ${t} })()`:t;const r=()=>{try{return new i(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`)}catch(i){return W(i,e,t),Promise.resolve()}};let s=r();return X[t]=s,s}(e,i);return(r=(()=>{}),{scope:s={},params:o=[]}={})=>{n.result=void 0,n.finished=!1;let a=z([s,...t]);if("function"==typeof n){let t=n(n,a).catch((t=>W(t,i,e)));n.finished?(G(r,n.result,a,o,i),n.result=void 0):t.then((t=>{G(r,t,a,o,i)})).catch((t=>W(t,i,e))).finally((()=>n.result=void 0))}}}(n,e,t);return V.bind(null,t,e,r)}var X={};function G(t,e,i,n,r){if(H&&"function"==typeof e){let s=e.apply(i,n);s instanceof Promise?s.then((e=>G(t,e,i,n))).catch((t=>W(t,r,e))):t(s)}else t(e)}var K="x-";function Z(t=""){return K+t}var Q={};function J(t,e){Q[t]=e}function tt(t,e,i){if(e=Array.from(e),t._x_virtualDirectives){let i=Object.entries(t._x_virtualDirectives).map((([t,e])=>({name:t,value:e}))),n=et(i);i=i.map((t=>n.find((e=>e.name===t.name))?{name:`x-bind:${t.name}`,value:`"${t.value}"`}:t)),e=e.concat(i)}let n={},r=e.map(at(((t,e)=>n[t]=e))).filter(ht).map(function(t,e){return({name:i,value:n})=>{let r=i.match(ut()),s=i.match(/:([a-zA-Z0-9\-:]+)/),o=i.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=e||t[i]||i;return{type:r?r[1]:null,value:s?s[1]:null,modifiers:o.map((t=>t.replace(".",""))),expression:n,original:a}}}(n,i)).sort(pt);return r.map((e=>function(t,e){let i=()=>{},n=Q[e.type]||i,[r,s]=st(t);!function(t,e,i){t._x_attributeCleanups||(t._x_attributeCleanups={}),t._x_attributeCleanups[e]||(t._x_attributeCleanups[e]=[]),t._x_attributeCleanups[e].push(i)}(t,e.original,s);let o=()=>{t._x_ignore||t._x_ignoreSelf||(n.inline&&n.inline(t,e,r),n=n.bind(n,t,e,r),it?nt.get(rt).push(n):n())};return o.runCleanups=s,o}(t,e)))}function et(t){return Array.from(t).map(at()).filter((t=>!ht(t)))}var it=!1,nt=new Map,rt=Symbol();function st(t){let e=[],[i,n]=function(t){let e=()=>{};return[i=>{let n=r(i);return t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach((t=>t()))}),t._x_effects.add(n),e=()=>{void 0!==n&&(t._x_effects.delete(n),s(n))},n},()=>{e()}]}(t);e.push(n);let o={Alpine:Qt,effect:i,cleanup:t=>e.push(t),evaluateLater:q.bind(q,t),evaluate:$.bind($,t)};return[o,()=>e.forEach((t=>t()))]}var ot=(t,e)=>({name:i,value:n})=>(i.startsWith(t)&&(i=i.replace(t,e)),{name:i,value:n});function at(t=(()=>{})){return({name:e,value:i})=>{let{name:n,value:r}=lt.reduce(((t,e)=>e(t)),{name:e,value:i});return n!==e&&t(n,e),{name:n,value:r}}}var lt=[];function ct(t){lt.push(t)}function ht({name:t}){return ut().test(t)}var ut=()=>new RegExp(`^${K}([^:^.]+)\\b`);var dt="DEFAULT",ft=["ignore","ref","data","id","radio","tabs","switch","disclosure","menu","listbox","list","item","combobox","bind","init","for","mask","model","modelable","transition","show","if",dt,"teleport"];function pt(t,e){let i=-1===ft.indexOf(t.type)?dt:t.type,n=-1===ft.indexOf(e.type)?dt:e.type;return ft.indexOf(i)-ft.indexOf(n)}function gt(t,e,i={}){t.dispatchEvent(new CustomEvent(e,{detail:i,bubbles:!0,composed:!0,cancelable:!0}))}var mt=[],vt=!1;function bt(t=(()=>{})){return queueMicrotask((()=>{vt||setTimeout((()=>{yt()}))})),new Promise((e=>{mt.push((()=>{t(),e()}))}))}function yt(){for(vt=!1;mt.length;)mt.shift()()}function _t(t,e){if("function"==typeof ShadowRoot&&t instanceof ShadowRoot)return void Array.from(t.children).forEac
2h((t=>_t(t,e)));let i=!1;if(e(t,(()=>i=!0)),i)return;let n=t.firstElementChild;for(;n;)_t(n,e),n=n.nextElementSibling}function xt(t,...e){console.warn(`Alpine Warning: ${t}`,...e)}var wt=[],kt=[];function St(){return wt.map((t=>t()))}function Et(){return wt.concat(kt).map((t=>t()))}function Mt(t){wt.push(t)}function At(t){kt.push(t)}function Ct(t,e=!1){return Ot(t,(t=>{if((e?Et():St()).some((e=>t.matches(e))))return!0}))}function Ot(t,e){if(t){if(e(t))return t;if(t._x_teleportBack&&(t=t._x_teleportBack),t.parentElement)return Ot(t.parentElement,e)}}function Dt(t,e=_t){!function(t){it=!0;let e=Symbol();rt=e,nt.set(e,[]);let i=()=>{for(;nt.get(e).length;)nt.get(e).shift()();nt.delete(e)};t(i),it=!1,i()}((()=>{e(t,((t,e)=>{tt(t,t.attributes).forEach((t=>t())),t._x_ignore&&e()}))}))}function Pt(t,e){return Array.isArray(e)?Tt(t,e.join(" ")):"object"==typeof e&&null!==e?function(t,e){let i=t=>t.split(" ").filter(Boolean),n=Object.entries(e).flatMap((([t,e])=>!!e&&i(t))).filter(Boolean),r=Object.entries(e).flatMap((([t,e])=>!e&&i(t))).filter(Boolean),s=[],o=[];return r.forEach((e=>{t.classList.contains(e)&&(t.classList.remove(e),o.push(e))})),n.forEach((e=>{t.classList.contains(e)||(t.classList.add(e),s.push(e))})),()=>{o.forEach((e=>t.classList.add(e))),s.forEach((e=>t.classList.remove(e)))}}(t,e):"function"==typeof e?Pt(t,e()):Tt(t,e)}function Tt(t,e){return e=!0===e?e="":e||"",i=e.split(" ").filter((e=>!t.classList.contains(e))).filter(Boolean),t.classList.add(...i),()=>{t.classList.remove(...i)};var i}function Lt(t,e){return"object"==typeof e&&null!==e?function(t,e){let i={};return Object.entries(e).forEach((([e,n])=>{i[e]=t.style[e],e.startsWith("--")||(e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),t.style.setProperty(e,n)})),setTimeout((()=>{0===t.style.length&&t.removeAttribute("style")})),()=>{Lt(t,i)}}(t,e):function(t,e){let i=t.getAttribute("style",e);return t.setAttribute("style",e),()=>{t.setAttribute("style",i||"")}}(t,e)}function zt(t,e=(()=>{})){let i=!1;return function(){i?e.apply(this,arguments):(i=!0,t.apply(this,arguments))}}function It(t,e,i={}){t._x_transition||(t._x_transition={enter:{during:i,start:i,end:i},leave:{during:i,start:i,end:i},in(i=(()=>{}),n=(()=>{})){Ft(t,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},i,n)},out(i=(()=>{}),n=(()=>{})){Ft(t,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},i,n)}})}function Rt(t){let e=t.parentNode;if(e)return e._x_hidePromise?e:Rt(e)}function Ft(t,e,{during:i,start:n,end:r}={},s=(()=>{}),o=(()=>{})){if(t._x_transitioning&&t._x_transitioning.cancel(),0===Object.keys(i).length&&0===Object.keys(n).length&&0===Object.keys(r).length)return s(),void o();let a,l,c;!function(t,e){let i,n,r,s=zt((()=>{M((()=>{i=!0,n||e.before(),r||(e.end(),yt()),e.after(),t.isConnected&&e.cleanup(),delete t._x_transitioning}))}));t._x_transitioning={beforeCancels:[],beforeCancel(t){this.beforeCancels.push(t)},cancel:zt((function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();s()})),finish:s},M((()=>{e.start(),e.during()})),vt=!0,requestAnimationFrame((()=>{if(i)return;let s=1e3*Number(getComputedStyle(t).transitionDuration.replace(/,.*/,"").replace("s","")),o=1e3*Number(getComputedStyle(t).transitionDelay.replace(/,.*/,"").replace("s",""));0===s&&(s=1e3*Number(getComputedStyle(t).animationDuration.replace("s",""))),M((()=>{e.before()})),n=!0,requestAnimationFrame((()=>{i||(M((()=>{e.end()})),yt(),setTimeout(t._x_transitioning.finish,s+o),r=!0)}))}))}(t,{start(){a=e(t,n)},during(){l=e(t,i)},before:s,end(){a(),c=e(t,r)},after:o,cleanup(){l(),c()}})}function Nt(t,e,i){if(-1===t.indexOf(e))return i;const n=t[t.indexOf(e)+1];if(!n)return i;if("scale"===e&&isNaN(n))return i;if("duration"===e){let t=n.match(/([0-9]+)ms/);if(t)return t[1]}return"origin"===e&&["top","right","left","center","bottom"].includes(t[t.indexOf(e)+2])?[n,t[t.indexOf(e)+2]].join(" "):n}J("transition",((t,{value:e,modifiers:i,expression:n},{evaluate:r})=>{"function"==typeof n&&(n=r(n)),n?function(t,e,i){It(t,Pt,"");let n={enter:e=>{t._x_transition.enter.during=e},"enter-start":e=>{t._x_transition.enter.start=e},"enter-end":e=>{t._x_transition.enter.end=e},leave:e=>{t._x_transition.leave.during=e},"leave-start":e=>{t._x_transition.leave.start=e},"leave-end":e=>{t._x_transition.leave.end=e}};n[i](e)}
2(t,n,e):function(t,e,i){It(t,Lt);let n=!e.includes("in")&&!e.includes("out")&&!i,r=n||e.includes("in")||["enter"].includes(i),s=n||e.includes("out")||["leave"].includes(i);e.includes("in")&&!n&&(e=e.filter(((t,i)=>i<e.indexOf("out"))));e.includes("out")&&!n&&(e=e.filter(((t,i)=>i>e.indexOf("out"))));let o=!e.includes("opacity")&&!e.includes("scale"),a=o||e.includes("opacity"),l=o||e.includes("scale"),c=a?0:1,h=l?Nt(e,"scale",95)/100:1,u=Nt(e,"delay",0),d=Nt(e,"origin","center"),f="opacity, transform",p=Nt(e,"duration",150)/1e3,g=Nt(e,"duration",75)/1e3,m="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(t._x_transition.enter.during={transformOrigin:d,transitionDelay:u,transitionProperty:f,transitionDuration:`${p}s`,transitionTimingFunction:m},t._x_transition.enter.start={opacity:c,transform:`scale(${h})`},t._x_transition.enter.end={opacity:1,transform:"scale(1)"});s&&(t._x_transition.leave.during={transformOrigin:d,transitionDelay:u,transitionProperty:f,transitionDuration:`${g}s`,transitionTimingFunction:m},t._x_transition.leave.start={opacity:1,transform:"scale(1)"},t._x_transition.leave.end={opacity:c,transform:`scale(${h})`})}(t,i,e)})),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(t,e,i,n){const r="visible"===document.visibilityState?requestAnimationFrame:setTimeout;let s=()=>r(i);e?t._x_transition&&(t._x_transition.enter||t._x_transition.leave)?t._x_transition.enter&&(Object.entries(t._x_transition.enter.during).length||Object.entries(t._x_transition.enter.start).length||Object.entries(t._x_transition.enter.end).length)?t._x_transition.in(i):s():t._x_transition?t._x_transition.in(i):s():(t._x_hidePromise=t._x_transition?new Promise(((e,i)=>{t._x_transition.out((()=>{}),(()=>e(n))),t._x_transitioning.beforeCancel((()=>i({isFromCancelledTransition:!0})))})):Promise.resolve(n),queueMicrotask((()=>{let e=Rt(t);e?(e._x_hideChildren||(e._x_hideChildren=[]),e._x_hideChildren.push(t)):r((()=>{let e=t=>{let i=Promise.all([t._x_hidePromise,...(t._x_hideChildren||[]).map(e)]).then((([t])=>t()));return delete t._x_hidePromise,delete t._x_hideChildren,i};e(t).catch((t=>{if(!t.isFromCancelledTransition)throw t}))}))})))};var jt=!1;function Bt(t,e=(()=>{})){return(...i)=>jt?e(...i):t(...i)}function Vt(t,e,i,r=[]){switch(t._x_bindings||(t._x_bindings=n({})),t._x_bindings[e]=i,e=r.includes("camel")?e.toLowerCase().replace(/-(\w)/g,((t,e)=>e.toUpperCase())):e){case"value":!function(t,e){if("radio"===t.type)void 0===t.attributes.value&&(t.value=e),window.fromModel&&(t.checked=Wt(t.value,e));else if("checkbox"===t.type)Number.isInteger(e)?t.value=e:Number.isInteger(e)||Array.isArray(e)||"boolean"==typeof e||[null,void 0].includes(e)?Array.isArray(e)?t.checked=e.some((e=>Wt(e,t.value))):t.checked=!!e:t.value=String(e);else if("SELECT"===t.tagName)!function(t,e){const i=[].concat(e).map((t=>t+""));Array.from(t.options).forEach((t=>{t.selected=i.includes(t.value)}))}(t,e);else{if(t.value===e)return;t.value=e}}(t,i);break;case"style":!function(t,e){t._x_undoAddedStyles&&t._x_undoAddedStyles();t._x_undoAddedStyles=Lt(t,e)}(t,i);break;case"class":!function(t,e){t._x_undoAddedClasses&&t._x_undoAddedClasses();t._x_undoAddedClasses=Pt(t,e)}(t,i);break;default:!function(t,e,i){[null,void 0,!1].includes(i)&&function(t){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(t)}(e)?t.removeAttribute(e):(Ht(e)&&(i=e),function(t,e,i){t.getAttribute(e)!=i&&t.setAttribute(e,i)}(t,e,i))}(t,e,i)}}function Wt(t,e){return t==e}function Ht(t){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(t)}function $t(t,e){var i;return function(){var n=this,r=arguments,s=function(){i=null,t.apply(n,r)};clearTimeout(i),i=setTimeout(s,e)}}function qt(t,e){let i;return function(){let n=this,r=arguments;i||(t.apply(n,r),i=!0,setTimeout((()=>i=!1),e))}}var Ut={},Yt=!1;var Xt={};function Gt(t,e,i){let n=[];for(;n.length;)n.pop()();let r=Object.entries(e).map((([t,e])=>({name:t,value:e}))),s=et(r);r=r.map((t=>s.find((e=>e.name===t.name))?{name:`x-bind:${t.name}`,value:`"${t.value}"`}:t)),tt(t,r,i).map((t=>{n.push(t.runCleanups),t()}))}var Kt={};var Zt={get reactive(){return n},get release(){return s},get effect(){return r},get raw(){return o},version:"3.10.5",flushAndStopDeferringMutations:function(){A=!1,O(C),C=[]},dontAutoEvaluateFunctions:function(t){let e=H;H=!1,t(),H=e},disableEffectScheduling:function(t){f=!1,t(),f=!0},setReactivityEngine:function(t){n=t.reactive,s=t.release,r=e=>t.effect(e,{scheduler:t=>{f?h(t):t()}}),o=t.raw},closestDataStack:L,skipDuringClone:Bt,addRootSelector:Mt,addInitSelector:At,addScopeToNode:P,deferMutations:function(){A=!0},mapAttributes:ct,evaluateLater:q,setEvaluator:function(t){U=t},mergeProxies:z,findClosest:Ot,closestRoot:Ct,interceptor:R,transition:Ft,setStyles:Lt,mutateDom:M,directive:J,throttle:qt,debounce:$t,evaluate:$,initTree:Dt,nextTick:bt,prefixed:Z,prefix:function(t){K=t},plugin:function(t){t(Qt)},magic:j,store:function(t,e){if(Yt||(Ut=n(Ut),Yt=!0),void 0===e)return Ut[t];Ut[t]=e,"object"==typeof e&&null!==e&&e.hasOwnProperty("init")&&"function"==typeof e.init&&Ut[t].init(),I(Ut[t])},start:function(){document.body||xt("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),gt(document,"alpine:init"),gt(document,"alpine:initializing"),w(),function(t){v.push(t)}((t=>Dt(t,_t))),b((t=>{_t(t,(t=>y(t)))})),function(t){g.push(t)}(((t,e)=>{tt(t,e).forEach((t=>t()))})),Array.from(document.querySelectorAll(Et())).filter((t=>
2!Ct(t.parentElement,!0))).forEach((t=>{Dt(t)})),gt(document,"alpine:initialized")},clone:function(t,e){e._x_dataStack||(e._x_dataStack=t._x_dataStack),jt=!0,function(t){let e=r;p(((t,i)=>{let n=e(t);return s(n),()=>{}})),t(),p(e)}((()=>{!function(t){let e=!1,i=(t,i)=>{_t(t,((t,n)=>{if(e&&function(t){return St().some((e=>t.matches(e)))}(t))return n();e=!0,i(t,n)}))};Dt(t,i)}(e)})),jt=!1},bound:function(t,e,i){if(t._x_bindings&&void 0!==t._x_bindings[e])return t._x_bindings[e];let n=t.getAttribute(e);return null===n?"function"==typeof i?i():i:""===n||(Ht(e)?!![e,"true"].includes(n):n)},$data:D,data:function(t,e){Kt[t]=e},bind:function(t,e){let i="function"!=typeof e?()=>e:e;t instanceof Element?Gt(t,i()):Xt[t]=i}},Qt=Zt;function Jt(t,e){const i=Object.create(null),n=t.split(",");for(let t=0;t<n.length;t++)i[n[t]]=!0;return e?t=>!!i[t.toLowerCase()]:t=>!!i[t]}var te,ee=Object.freeze({}),ie=(Object.freeze([]),Object.assign),ne=Object.prototype.hasOwnProperty,re=(t,e)=>ne.call(t,e),se=Array.isArray,oe=t=>"[object Map]"===he(t),ae=t=>"symbol"==typeof t,le=t=>null!==t&&"object"==typeof t,ce=Object.prototype.toString,he=t=>ce.call(t),ue=t=>he(t).slice(8,-1),de=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,fe=t=>{const e=Object.create(null);return i=>e[i]||(e[i]=t(i))},pe=/-(\w)/g,ge=(fe((t=>t.replace(pe,((t,e)=>e?e.toUpperCase():"")))),/\B([A-Z])/g),me=(fe((t=>t.replace(ge,"-$1").toLowerCase())),fe((t=>t.charAt(0).toUpperCase()+t.slice(1)))),ve=(fe((t=>t?`on${me(t)}`:"")),(t,e)=>t!==e&&(t==t||e==e)),be=new WeakMap,ye=[],_e=Symbol("iterate"),xe=Symbol("Map key iterate");var we=0;function ke(t){const{deps:e}=t;if(e.length){for(let i=0;i<e.length;i++)e[i].delete(t);e.length=0}}var Se=!0,Ee=[];function Me(){const t=Ee.pop();Se=void 0===t||t}function Ae(t,e,i){if(!Se||void 0===te)return;let n=be.get(t);n||be.set(t,n=new Map);let r=n.get(i);r||n.set(i,r=new Set),r.has(te)||(r.add(te),te.deps.push(r),te.options.onTrack&&te.options.onTrack({effect:te,target:t,type:e,key:i}))}function Ce(t,e,i,n,r,s){const o=be.get(t);if(!o)return;const a=new Set,l=t=>{t&&t.forEach((t=>{(t!==te||t.allowRecurse)&&a.add(t)}))};if("clear"===e)o.forEach(l);else if("length"===i&&se(t))o.forEach(((t,e)=>{("length"===e||e>=n)&&l(t)}));else switch(void 0!==i&&l(o.get(i)),e){case"add":se(t)?de(i)&&l(o.get("length")):(l(o.get(_e)),oe(t)&&l(o.get(xe)));break;case"delete":se(t)||(l(o.get(_e)),oe(t)&&l(o.get(xe)));break;case"set":oe(t)&&l(o.get(_e))}a.forEach((o=>{o.options.onTrigger&&o.options.onTrigger({effect:o,target:t,key:i,type:e,newValue:n,oldValue:r,oldTarget:s}),o.options.scheduler?o.options.scheduler(o):o()}))}var Oe=Jt("__proto__,__v_isRef,__isVue"),De=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(ae)),Pe=Re(),Te=Re(!1,!0),Le=Re(!0),ze=Re(!0,!0),Ie={};function Re(t=!1,e=!1){return function(i,n,r){if("__v_isReactive"===n)return!t;if("__v_isReadonly"===n)return t;if("__v_raw"===n&&r===(t?e?ui:hi:e?ci:li).get(i))return i;const s=se(i);if(!t&&s&&re(Ie,n))return Reflect.get(Ie,n,r);const o=Reflect.get(i,n,r);if(ae(n)?De.has(n):Oe(n))return o;if(t||Ae(i,"get",n),e)return o;if(mi(o)){return!s||!de(n)?o.value:o}return le(o)?t?fi(o):di(o):o}}function Fe(t=!1){return function(e,i,n,r){let s=e[i];if(!t&&(n=gi(n),s=gi(s),!se(e)&&mi(s)&&!mi(n)))return s.value=n,!0;const o=se(e)&&de(i)?Number(i)<e.length:re(e,i),a=Reflect.set(e,i,n,r);return e===gi(r)&&(o?ve(n,s)&&Ce(e,"set",i,n,s):Ce(e,"add",i,n)),a}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];Ie[t]=function(...t){const i=gi(this);for(let t=0,e=this.length;t<e;t++)Ae(i,"get",t+"");const n=e.apply(i,t);return-1===n||!1===n?e.apply(i,t.map(gi)):n}})),["push","pop","shift","unshift","splice"].forEach((t=>{const e=Array.prototype[t];Ie[t]=function(...t){Ee.push(Se),Se=!1;const i=e.apply(this,t);return Me(),i}}));var Ne={get:Pe,set:Fe(),deleteProperty:function(t,e){const i=re(t,e),n=t[e],r=Reflect.deleteProperty(t,e);return r&&i&&Ce(t,"delete",e,void 0,n),r},has:function(t,e){const i=Reflect.has(t,e);return ae(e)&&De.has(e)||Ae(t,"has",e),i},ownKeys:function(t){return Ae(t,"iterate",se(t)?"length":_e),Reflect.ownKeys(t)}},je={get:Le,set:(t,e)=>(console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0),deleteProperty:(t,e)=>(console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0)},Be=(ie({},Ne,{get:Te,set:Fe(!0)}),ie({},je,{get:ze}),t=>le(t)?di(t):t),Ve=t=>le(t)?fi(t):t,We=t=>t,He=t=>Reflect.getPrototypeOf(t);function $e(t,e,i=!1,n=!1){const r=gi(t=t.__v_raw),s=gi(e);e!==s&&!i&&Ae(r,"get",e),!i&&Ae(r,"get",s);const{has:o}=He(r),a=n?We:i?Ve:Be;return o.call(r,e)?a(t.get(e)):o.call(r,s)?a(t.get(s)):void(t!==r&&t.get(e))}function qe(t,e=!1){const i=this.__v_raw,n=gi(i),r=gi(t);return t!==r&&!e&&Ae(n,"has",t),!e&&Ae(n,"has",r),t===r?i.has(t):i.has(t)||i.has(r)}function Ue(t,e=!1){return t=t.__v_raw,!e&&Ae(gi(t),"iterate",_e),Reflect.get(t,"size",t)}function Ye(t){t=gi(t);const e=gi(this);return He(e).has.call(e,t)||(e.add(t),Ce(e,"add",t,t)),this}function Xe(t,e){e=gi(e);const i=gi(this),{has:n,get:r}=He(i);let s=n.call(i,t);s?ai(i,n,t):(t=gi(t),s=n.call(i,t));const o=r.call(i,t);return i.set(t,e),s?ve(e,o)&&Ce(i,"set",t,e,o):Ce(i,"add",t,e),this}function Ge(t){const e=gi(this),{has:i,get:n}=He(e);let r=i.call(e,t);r?ai(e,i,t):(t=gi(t),r=i.call(e,t));const s=n?n.call(e,t):void 0,o=e.delete(t);return r&&Ce(e,"delete",t,void 0,s),o}function Ke(){const t=gi(this),e=0!==t.size,i=oe(t)?new Map(t):new Set(t),n=t.clear();return e&&Ce(t,"clear",void 0,void 0,i),n}function Ze(t,e){return function(i,n){const r=this,s=r.__v_raw,o=gi(s),a=e?We:t?Ve:Be;
2return!t&&Ae(o,"iterate",_e),s.forEach(((t,e)=>i.call(n,a(t),a(e),r)))}}function Qe(t,e,i){return function(...n){const r=this.__v_raw,s=gi(r),o=oe(s),a="entries"===t||t===Symbol.iterator&&o,l="keys"===t&&o,c=r[t](...n),h=i?We:e?Ve:Be;return!e&&Ae(s,"iterate",l?xe:_e),{next(){const{value:t,done:e}=c.next();return e?{value:t,done:e}:{value:a?[h(t[0]),h(t[1])]:h(t),done:e}},[Symbol.iterator](){return this}}}}function Je(t){return function(...e){{const i=e[0]?`on key "${e[0]}" `:"";console.warn(`${me(t)} operation ${i}failed: target is readonly.`,gi(this))}return"delete"!==t&&this}}var ti={get(t){return $e(this,t)},get size(){return Ue(this)},has:qe,add:Ye,set:Xe,delete:Ge,clear:Ke,forEach:Ze(!1,!1)},ei={get(t){return $e(this,t,!1,!0)},get size(){return Ue(this)},has:qe,add:Ye,set:Xe,delete:Ge,clear:Ke,forEach:Ze(!1,!0)},ii={get(t){return $e(this,t,!0)},get size(){return Ue(this,!0)},has(t){return qe.call(this,t,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Ze(!0,!1)},ni={get(t){return $e(this,t,!0,!0)},get size(){return Ue(this,!0)},has(t){return qe.call(this,t,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Ze(!0,!0)};function ri(t,e){const i=e?t?ni:ei:t?ii:ti;return(e,n,r)=>"__v_isReactive"===n?!t:"__v_isReadonly"===n?t:"__v_raw"===n?e:Reflect.get(re(i,n)&&n in e?i:e,n,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{ti[t]=Qe(t,!1,!1),ii[t]=Qe(t,!0,!1),ei[t]=Qe(t,!1,!0),ni[t]=Qe(t,!0,!0)}));var si={get:ri(!1,!1)},oi=(ri(!1,!0),{get:ri(!0,!1)});ri(!0,!0);function ai(t,e,i){const n=gi(i);if(n!==i&&e.call(t,n)){const e=ue(t);console.warn(`Reactive ${e} contains both the raw and reactive versions of the same object${"Map"===e?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var li=new WeakMap,ci=new WeakMap,hi=new WeakMap,ui=new WeakMap;function di(t){return t&&t.__v_isReadonly?t:pi(t,!1,Ne,si,li)}function fi(t){return pi(t,!0,je,oi,hi)}function pi(t,e,i,n,r){if(!le(t))return console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const s=r.get(t);if(s)return s;const o=(a=t).__v_skip||!Object.isExtensible(a)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(ue(a));var a;if(0===o)return t;const l=new Proxy(t,2===o?n:i);return r.set(t,l),l}function gi(t){return t&&gi(t.__v_raw)||t}function mi(t){return Boolean(t&&!0===t.__v_isRef)}j("nextTick",(()=>bt)),j("dispatch",(t=>gt.bind(gt,t))),j("watch",((t,{evaluateLater:e,effect:i})=>(n,r)=>{let s,o=e(n),a=!0,l=i((()=>o((t=>{JSON.stringify(t),a?s=t:queueMicrotask((()=>{r(t,s),s=t})),a=!1}))));t._x_effects.delete(l)})),j("store",(function(){return Ut})),j("data",(t=>D(t))),j("root",(t=>Ct(t))),j("refs",(t=>(t._x_refs_proxy||(t._x_refs_proxy=z(function(t){let e=[],i=t;for(;i;)i._x_refs&&e.push(i._x_refs),i=i.parentNode;return e}(t))),t._x_refs_proxy)));var vi={};function bi(t){return vi[t]||(vi[t]=0),++vi[t]}function yi(t,e,i){j(e,(e=>xt(`You can't use [$${directiveName}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${i}`,e)))}j("id",(t=>(e,i=null)=>{let n=function(t,e){return Ot(t,(t=>{if(t._x_ids&&t._x_ids[e])return!0}))}(t,e),r=n?n._x_ids[e]:bi(e);return i?`${e}-${r}-${i}`:`${e}-${r}`})),j("el",(t=>t)),yi("Focus","focus","focus"),yi("Persist","persist","persist"),J("modelable",((t,{expression:e},{effect:i,evaluateLater:n})=>{let r=n(e),s=()=>{let t;return r((e=>t=e)),t},o=n(`${e} = __placeholder`),a=t=>o((()=>{}),{scope:{__placeholder:t}}),l=s();a(l),queueMicrotask((()=>{if(!t._x_model)return;t._x_removeModelListeners.default();let e=t._x_model.get,n=t._x_model.set;i((()=>a(e()))),i((()=>n(s())))}))})),J("teleport",((t,{expression:e},{cleanup:i})=>{"template"!==t.tagName.toLowerCase()&&xt("x-teleport can only be used on a <template> tag",t);let n=document.querySelector(e);n||xt(`Cannot find x-teleport element for selector: "${e}"`);let r=t.content.cloneNode(!0).firstElementChild;t._x_teleport=r,r._x_teleportBack=t,t._x_forwardEvents&&t._x_forwardEvents.forEac
2h((e=>{r.addEventListener(e,(e=>{e.stopPropagation(),t.dispatchEvent(new e.constructor(e.type,e))}))})),P(r,{},t),M((()=>{n.appendChild(r),Dt(r),r._x_ignore=!0})),i((()=>r.remove()))}));var _i=()=>{};function xi(t,e,i,n){let r=t,s=t=>n(t),o={},a=(t,e)=>i=>e(t,i);if(i.includes("dot")&&(e=e.replace(/-/g,".")),i.includes("camel")&&(e=function(t){return t.toLowerCase().replace(/-(\w)/g,((t,e)=>e.toUpperCase()))}(e)),i.includes("passive")&&(o.passive=!0),i.includes("capture")&&(o.capture=!0),i.includes("window")&&(r=window),i.includes("document")&&(r=document),i.includes("prevent")&&(s=a(s,((t,e)=>{e.preventDefault(),t(e)}))),i.includes("stop")&&(s=a(s,((t,e)=>{e.stopPropagation(),t(e)}))),i.includes("self")&&(s=a(s,((e,i)=>{i.target===t&&e(i)}))),(i.includes("away")||i.includes("outside"))&&(r=document,s=a(s,((e,i)=>{t.contains(i.target)||!1!==i.target.isConnected&&(t.offsetWidth<1&&t.offsetHeight<1||!1!==t._x_isShown&&e(i))}))),i.includes("once")&&(s=a(s,((t,i)=>{t(i),r.removeEventListener(e,s,o)}))),s=a(s,((t,n)=>{(function(t){return["keydown","keyup"].includes(t)})(e)&&function(t,e){let i=e.filter((t=>!["window","document","prevent","stop","once"].includes(t)));if(i.includes("debounce")){let t=i.indexOf("debounce");i.splice(t,wi((i[t+1]||"invalid-wait").split("ms")[0])?2:1)}if(0===i.length)return!1;if(1===i.length&&ki(t.key).includes(i[0]))return!1;const n=["ctrl","shift","alt","meta","cmd","super"].filter((t=>i.includes(t)));if(i=i.filter((t=>!n.includes(t))),n.length>0){if(n.filter((e=>("cmd"!==e&&"super"!==e||(e="meta"),t[`${e}Key`]))).length===n.length&&ki(t.key).includes(i[0]))return!1}return!0}(n,i)||t(n)})),i.includes("debounce")){let t=i[i.indexOf("debounce")+1]||"invalid-wait",e=wi(t.split("ms")[0])?Number(t.split("ms")[0]):250;s=$t(s,e)}if(i.includes("throttle")){let t=i[i.indexOf("throttle")+1]||"invalid-wait",e=wi(t.split("ms")[0])?Number(t.split("ms")[0]):250;s=qt(s,e)}return r.addEventListener(e,s,o),()=>{r.removeEventListener(e,s,o)}}function wi(t){return!Array.isArray(t)&&!isNaN(t)}function ki(t){if(!t)return[];t=t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase();let e={ctrl:"control",slash:"/",space:"-",spacebar:"-",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"="};return e[t]=t,Object.keys(e).map((i=>{if(e[i]===t)return i})).filter((t=>t))}function Si(t){let e=t?parseFloat(t):null;return i=e,Array.isArray(i)||isNaN(i)?t:e;var i}function Ei(t,e,i,n){let r={};if(/^\[.*\]$/.test(t.item)&&Array.isArray(e)){t.item.replace("[","").replace("]","").split(",").map((t=>t.trim())).forEach(((t,i)=>{r[t]=e[i]}))}else if(/^\{.*\}$/.test(t.item)&&!Array.isArray(e)&&"object"==typeof e){t.item.replace("{","").replace("}","").split(",").map((t=>t.trim())).forEach((t=>{r[t]=e[t]}))}else r[t.item]=e;return t.index&&(r[t.index]=i),t.collection&&(r[t.collection]=n),r}function Mi(){}function Ai(t,e,i){J(e,(n=>xt(`You can't use [x-${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${i}`,n)))}_i.inline=(t,{modifiers:e},{cleanup:i})=>{e.includes("self")?t._x_ignoreSelf=!0:t._x_ignore=!0,i((()=>{e.includes("self")?delete t._x_ignoreSelf:delete t._x_ignore}))},J("ignore",_i),J("effect",((t,{expression:e},{effect:i})=>i(q(t,e)))),J("model",((t,{modifiers:e,expression:i},{effect:n,cleanup:r})=>{let s=q(t,i),o=q(t,`${i} = rightSideOfExpression($event, ${i})`);var a="select"===t.tagName.toLowerCase()||["checkbox","radio"].includes(t.type)||e.includes("lazy")?"change":"input";let l=function(t,e,i){"radio"===t.type&&M((()=>{t.hasAttribute("name")||t.setAttribute("name",i)}));return(i,n)=>M((()=>{if(i instanceof CustomEvent&&void 0!==i.detail)return i.detail||i.target.value;if("checkbox"===t.type){if(Array.isArray(n)){let t=e.includes("number")?Si(i.target.value):i.target.value;return i.target.checked?n.concat([t]):n.filter((e=>!(e==t)))}return i.target.checked}if("select"===t.tagName.toLowerCase()&&t.multiple)return e.includes("number")?Array.from(i.target.selectedOptions).map((t=>Si(t.value||t.text))):Array.from(i.target.selectedOptions).map((t=>t.value||t.text));{let t=i.target.value;return e.includes("number")?Si(t):e.includes("trim")?t.trim():t}}
2))}(t,e,i),c=xi(t,a,e,(t=>{o((()=>{}),{scope:{$event:t,rightSideOfExpression:l}})}));t._x_removeModelListeners||(t._x_removeModelListeners={}),t._x_removeModelListeners.default=c,r((()=>t._x_removeModelListeners.default()));let h=q(t,`${i} = __placeholder`);t._x_model={get(){let t;return s((e=>t=e)),t},set(t){h((()=>{}),{scope:{__placeholder:t}})}},t._x_forceModelUpdate=()=>{s((e=>{void 0===e&&i.match(/\./)&&(e=""),window.fromModel=!0,M((()=>Vt(t,"value",e))),delete window.fromModel}))},n((()=>{e.includes("unintrusive")&&document.activeElement.isSameNode(t)||t._x_forceModelUpdate()}))})),J("cloak",(t=>queueMicrotask((()=>M((()=>t.removeAttribute(Z("cloak")))))))),At((()=>`[${Z("init")}]`)),J("init",Bt(((t,{expression:e},{evaluate:i})=>"string"==typeof e?!!e.trim()&&i(e,{},!1):i(e,{},!1)))),J("text",((t,{expression:e},{effect:i,evaluateLater:n})=>{let r=n(e);i((()=>{r((e=>{M((()=>{t.textContent=e}))}))}))})),J("html",((t,{expression:e},{effect:i,evaluateLater:n})=>{let r=n(e);i((()=>{r((e=>{M((()=>{t.innerHTML=e,t._x_ignoreSelf=!0,Dt(t),delete t._x_ignoreSelf}))}))}))})),ct(ot(":",Z("bind:"))),J("bind",((t,{value:e,modifiers:i,expression:n,original:r},{effect:s})=>{if(!e){let e={};return o=e,Object.entries(Xt).forEach((([t,e])=>{Object.defineProperty(o,t,{get:()=>(...t)=>e(...t)})})),void q(t,n)((e=>{Gt(t,e,r)}),{scope:e})}var o;if("key"===e)return function(t,e){t._x_keyExpression=e}(t,n);let a=q(t,n);s((()=>a((r=>{void 0===r&&"string"==typeof n&&n.match(/\./)&&(r=""),M((()=>Vt(t,e,r,i)))}))))})),Mt((()=>`[${Z("data")}]`)),J("data",Bt(((t,{expression:e},{cleanup:i})=>{e=""===e?"{}":e;let r={};B(r,t);let s={};var o,a;o=s,a=r,Object.entries(Kt).forEach((([t,e])=>{Object.defineProperty(o,t,{get:()=>(...t)=>e.bind(a)(...t),enumerable:!1})}));let l=$(t,e,{scope:s});void 0===l&&(l={}),B(l,t);let c=n(l);I(c);let h=P(t,c);c.init&&$(t,c.init),i((()=>{c.destroy&&$(t,c.destroy),h()}))}))),J("show",((t,{modifiers:e,expression:i},{effect:n})=>{let r=q(t,i);t._x_doHide||(t._x_doHide=()=>{M((()=>{t.style.setProperty("display","none",e.includes("important")?"important":void 0)}))}),t._x_doShow||(t._x_doShow=()=>{M((()=>{1===t.style.length&&"none"===t.style.display?t.removeAttribute("style"):t.style.removeProperty("display")}))});let s,o=()=>{t._x_doHide(),t._x_isShown=!1},a=()=>{t._x_doShow(),t._x_isShown=!0},l=()=>setTimeout(a),c=zt((t=>t?a():o()),(e=>{"function"==typeof t._x_toggleAndCascadeWithTransitions?t._x_toggleAndCascadeWithTransitions(t,e,a,o):e?l():o()})),h=!0;n((()=>r((t=>{(h||t!==s)&&(e.includes("immediate")&&(t?l():o()),c(t),s=t,h=!1)}))))})),J("for",((t,{expression:e},{effect:i,cleanup:r})=>{let s=function(t){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,i=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,r=t.match(n);if(!r)return;let s={};s.items=r[2].trim();let o=r[1].replace(i,"").trim(),a=o.match(e);a?(s.item=o.replace(e,"").trim(),s.index=a[1].trim(),a[2]&&(s.collection=a[2].trim())):s.item=o;return s}(e),o=q(t,s.items),a=q(t,t._x_keyExpression||"index");t._x_prevKeys=[],t._x_lookup={},i((()=>function(t,e,i,r){let s=t=>"object"==typeof t&&!Array.isArray(t),o=t;i((i=>{var a;a=i,!Array.isArray(a)&&!isNaN(a)&&i>=0&&(i=Array.from(Array(i).keys(),(t=>t+1))),void 0===i&&(i=[]);let l=t._x_lookup,c=t._x_prevKeys,h=[],d=[];if(s(i))i=Object.entries(i).map((([t,n])=>{let s=Ei(e,n,t,i);r((t=>d.push(t)),{scope:{index:t,...s}}),h.push(s)}));else for(let t=0;t<i.length;t++){let n=Ei(e,i[t],t,i);r((t=>d.push(t)),{scope:{index:t,...n}}),h.push(n)}let f=[],p=[],g=[],m=[];for(let t=0;t<c.length;t++){let e=c[t];-1===d.indexOf(e)&&g.push(e)}c=c.filter((t=>!g.includes(t)));let v="template";for(let t=0;t<d.length;t++){let e=d[t],i=c.indexOf(e);if(-1===i)c.splice(t,0,e),f.push([v,t]);else if(i!==t){let e=c.splice(t,1)[0],n=c.splice(i-1,1)[0];c.splice(t,0,n),c.splice(i,0,e),p.push([e,n])}else m.push(e);v=e}for(let t=0;t<g.length;t++){let e=g[t];l[e]._x_effects&&l[e]._x_effects.forEach(u),l[e].remove(),l[e]=null,delete l[e]}for(let t=0;t<p.length;t++){let[e,i]=p[t],n=l[e],r=l[i],s=document.createElement("div");M((()=>{r.after(s),n.after(r),r._x_currentIfEl&&r.after(r._x_currentIfEl),s.before(n),n._x_currentIfEl&&n.after(n._x_currentIfEl),s.remove()})),T(r,h[d.indexOf(i)])}for(let t=0;t<f.length;t++){let[e,i]=f[t],r="template"===e?o:l[e];r._x_currentIfEl&&(r=r._x_currentIfEl);let s=h[i],a=d[i],c=document.importNode(o.content,!0).firstElementChild;P(c,n(s),o),M((()=>{r.after(c),Dt(c)})),"object"==typeof a&&xt("x-for key cannot be an object, it must be a string or an integer",o),l[a]=c}for(let t=0;t<m.length;t++)T(l[m[t]],h[d.indexOf(m[t])]);o._x_prevKeys=d}))}(t,s,o,a))),r((()=>
2{Object.values(t._x_lookup).forEach((t=>t.remove())),delete t._x_prevKeys,delete t._x_lookup}))})),Mi.inline=(t,{expression:e},{cleanup:i})=>{let n=Ct(t);n._x_refs||(n._x_refs={}),n._x_refs[e]=t,i((()=>delete n._x_refs[e]))},J("ref",Mi),J("if",((t,{expression:e},{effect:i,cleanup:n})=>{let r=q(t,e);i((()=>r((e=>{e?(()=>{if(t._x_currentIfEl)return t._x_currentIfEl;let e=t.content.cloneNode(!0).firstElementChild;P(e,{},t),M((()=>{t.after(e),Dt(e)})),t._x_currentIfEl=e,t._x_undoIf=()=>{_t(e,(t=>{t._x_effects&&t._x_effects.forEach(u)})),e.remove(),delete t._x_currentIfEl}})():t._x_undoIf&&(t._x_undoIf(),delete t._x_undoIf)})))),n((()=>t._x_undoIf&&t._x_undoIf()))})),J("id",((t,{expression:e},{evaluate:i})=>{i(e).forEach((e=>function(t,e){t._x_ids||(t._x_ids={}),t._x_ids[e]||(t._x_ids[e]=bi(e))}(t,e)))})),ct(ot("@",Z("on:"))),J("on",Bt(((t,{value:e,modifiers:i,expression:n},{cleanup:r})=>{let s=n?q(t,n):()=>{};"template"===t.tagName.toLowerCase()&&(t._x_forwardEvents||(t._x_forwardEvents=[]),t._x_forwardEvents.includes(e)||t._x_forwardEvents.push(e));let o=xi(t,e,i,(t=>{s((()=>{}),{scope:{$event:t},params:[t]})}));r((()=>o()))}))),Ai("Collapse","collapse","collapse"),Ai("Intersect","intersect","intersect"),Ai("Focus","trap","focus"),Ai("Mask","mask","mask"),Qt.setEvaluator(Y),Qt.setReactivityEngine({reactive:di,effect:function(t,e=ee){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const i=function(t,e){const i=function(){if(!i.active)return t();if(!ye.includes(i)){ke(i);try{return Ee.push(Se),Se=!0,ye.push(i),te=i,t()}finally{ye.pop(),Me(),te=ye[ye.length-1]}}};return i.id=we++,i.allowRecurse=!!e.allowRecurse,i._isEffect=!0,i.active=!0,i.raw=t,i.deps=[],i.options=e,i}(t,e);return e.lazy||i(),i},release:function(t){t.active&&(ke(t),t.options.onStop&&t.options.onStop(),t.active=!1)},raw:gi});var Ci=Qt;function Oi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Di(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Pi,Ti,Li,zi,Ii,Ri,Fi,Ni,ji,Bi,Vi,Wi,Hi,$i,qi,Ui,Yi,Xi,Gi,Ki,Zi,Qi,Ji,tn,en,nn={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},rn={duration:.5,overwrite:!1,delay:0},sn=1e8,on=1e-8,an=2*Math.PI,ln=an/4,cn=0,hn=Math.sqrt,un=Math.cos,dn=Math.sin,fn=function(t){return"string"==typeof t},pn=function(t){return"function"==typeof t},gn=function(t){return"number"==typeof t},mn=function(t){return void 0===t},vn=function(t){return"object"==typeof t},bn=function(t){return!1!==t},yn=function(){return"undefined"!=typeof window},_n=function(t){return pn(t)||fn(t)},xn=Array.isArray,wn=/(?:-?\.?\d|\.)+/gi,kn=/[-+=.]*\d+[.e\-+]*\d*[e\-\+]*\d*/g,Sn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,En=/[-+=.]*\d+(?:\.|e-|e)*\d*/gi,Mn=/\(([^()]+)\)/i,An=/[+-]=-?[\.\d]+/,Cn=/[#\-+.]*\b[a-z\d-=+%.]+/gi,On={},Dn={},Pn=function(t){return(Dn=nr(t,On))&&Vs},Tn=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Ln=function(t,e){return!e&&console.warn(t)},zn=function(t,e){return t&&(On[t]=e)&&Dn&&(Dn[t]=e)||On},In=function(){return 0},Rn={},Fn=[],Nn={},jn={},Bn={},Vn=30,Wn=[],Hn="",$n=function(t){var e,i,n=t[0];if(vn(n)||pn(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=Wn.length;i--&&!Wn[i].targetTest(n););e=Wn[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new ds(t[i],e)))||t.splice(i,1);return t},qn=function(t){return t._gsap||$n(Pr(t))[0]._gsap},Un=function(t,e){var i=t[e];return pn(i)?t[e]():mn(i)&&t.getAttribute(e)||i},Yn=function(t,e){return(t=t.split(",")).forEach(e)||t},Xn=function(t){return Math.round(1e5*t)/1e5||0},Gn=function(t,e){for(var i=e.length,n=0;t.indexOf(e[n])<0&&++n<i;);return n<i},Kn=function(t,e,i){var n,r=gn(t[1]),s=(r?2:1)+(e<2?0:1),o=t[s];if(r&&(o.duration=t[1]),o.parent=i,e){for(n=o;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=bn(i.vars.inherit)&&i.parent;o.immediateRender=bn(n.immediateRender),e<2?o.runBackwards=1:o.startAt=t[s-1]}return o},Zn=function(){var t,e,i=Fn.length,n=Fn.slice(0);for(Nn={},Fn.length=0,t=0;t<i;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}
2,Qn=function(t,e,i,n){Fn.length&&Zn(),t.render(e,i,n),Fn.length&&Zn()},Jn=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(Cn).length<2?e:t},tr=function(t){return t},er=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},ir=function(t,e){for(var i in e)i in t||"duration"===i||"ease"===i||(t[i]=e[i])},nr=function(t,e){for(var i in e)t[i]=e[i];return t},rr=function t(e,i){for(var n in i)e[n]=vn(i[n])?t(e[n]||(e[n]={}),i[n]):i[n];return e},sr=function(t,e){var i,n={};for(i in t)i in e||(n[i]=t[i]);return n},or=function(t){var e=t.parent||Pi,i=t.keyframes?ir:er;if(bn(t.inherit))for(;e;)i(t,e.vars.defaults),e=e.parent||e._dp;return t},ar=function(t,e,i,n){void 0===i&&(i="_first"),void 0===n&&(n="_last");var r=e._prev,s=e._next;r?r._next=s:t[i]===e&&(t[i]=s),s?s._prev=r:t[n]===e&&(t[n]=r),e._next=e._prev=e.parent=null},lr=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},cr=function(t){for(var e=t;e;)e._dirty=1,e=e.parent;return t},hr=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},ur=function t(e){return!e||e._ts&&t(e.parent)},dr=function(t){return t._repeat?fr(t._tTime,t=t.duration()+t._rDelay)*t:0},fr=function(t,e){return(t/=e)&&~~t===t?~~t-1:~~t},pr=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},gr=function(t){return t._end=Xn(t._start+(t._tDur/Math.abs(t._ts||t._rts||on)||0))},mr=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=Xn(t._dp._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),gr(t),i._dirty||cr(i)),t},vr=function(t,e){var i;if((e._time||e._initted&&!e._dur)&&(i=pr(t.rawTime(),e),(!e._dur||Mr(0,e.totalDuration(),i)-e._tTime>on)&&e.render(i,!0)),cr(t)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-1e-8}},br=function(t,e,i,n){return e.parent&&lr(e),e._start=Xn(i+e._delay),e._end=Xn(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function(t,e,i,n,r){void 0===i&&(i="_first"),void 0===n&&(n="_last");var s,o=t[n];if(r)for(s=e[r];o&&o[r]>s;)o=o._prev;o?(e._next=o._next,o._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),t._recent=e,n||vr(t,e),t},yr=function(t,e){return(On.ScrollTrigger||Tn("scrollTrigger",e))&&On.ScrollTrigger.create(e,t)},_r=function(t,e,i,n){return ys(t,e),t._initted?!i&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Ri!==Jr.frame?(Fn.push(t),t._lazy=[e,n],1):void 0:1},xr=function(t,e,i){var n=t._repeat,r=Xn(e)||0;return t._dur=r,t._tDur=n?n<0?1e10:Xn(r*(n+1)+t._rDelay*n):r,t._time>r&&(t._time=r,t._tTime=Math.min(t._tTime,t._tDur)),!i&&cr(t.parent),t.parent&&gr(t),t},wr=function(t){return t instanceof ps?cr(t):xr(t,t._dur)},kr={_start:0,endTime:In},Sr=function t(e,i){var n,r,s=e.labels,o=e._recent||kr,a=e.duration()>=sn?o.endTime(!1):e._dur;return fn(i)&&(isNaN(i)||i in s)?"<"===(n=i.charAt(0))||">"===n?("<"===n?o._start:o.endTime(o._repeat>=0))+(parseFloat(i.substr(1))||0):(n=i.indexOf("="))<0?(i in s||(s[i]=a),s[i]):(r=+(i.charAt(n-1)+i.substr(n+1)),n>1?t(e,i.substr(0,n-1))+r:a+r):null==i?a:+i},Er=function(t,e){return t||0===t?e(t):e},Mr=function(t,e,i){return i<t?t:i>e?e:i},Ar=function(t){return(t+"").substr((parseFloat(t)+"").length)},Cr=[].slice,Or=function(t,e){return t&&vn(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&vn(t[0]))&&!t.nodeType&&t!==Ti},Dr=function(t,e,i){return void 0===i&&(i=[]),t.forEach((function(t){var n;return fn(t)&&!e||Or(t,1)?(n=i).push.apply(n,Pr(t)):i.push(t)}))||i},Pr=function(t,e){return!fn(t)||e||!Li&&ts()?xn(t)?Dr(t,e):Or(t)?Cr.call(t,0):t?[t]:[]:Cr.call(zi.querySelectorAll(t),0)},Tr=function(t){return t.sort((function(){return.5-Math.random()}))},Lr=function(t){if(pn(t))return t;var e=vn(t)?t:{each:t},i=as(e.ease),n=e.from||0,r=parseFloat(e.base)||0,s={},o=n>0&&n<1,a=isNaN(n)||o,l=e.axis,c=n,h=n;return fn(n)?c=h={center:.5,edges:.5,end:1}[n]||0:!o&&a&&(c=n[0],h=n[1]),function(t,o,u){var d,f,p,g,m,v,b,y,_,x=(u||e).length,w=s[x];if(!w){if(!(_="auto"===e.grid?0:(e.grid||[1,sn])[1])){for(b=-sn;b<(b=u[_++].getBoundingClientRect().left)&&_<x;);_--}for(w=s[x]=[],d=a?Math.min(_,x)*c-.5:n%_,f=a?x*h/_-.5:n/_|0,b=0,y=sn,v=0;v<x;v++)p=v%_-d,g=f-(v/_|0),w[v]=m=l?Math.abs("y"===l?g:p):hn(p*p+g*g),m>b&&(b=m),m<y&&(y=m);"random"===n&&Tr(w),w.max=b-y,w.min=y,w.v=x=(parseFloat(e.amount)||parseFloat(e.each)*(_>x?x-1:l?"y"===l?x/_:_:Math.max(_,x/_))||0)*("edges"===n?-1:1),w.b=x<0?r-x:r,w.u=Ar(e.amount||e.each
2)||0,i=i&&x<0?ss(i):i}return x=(w[t]-w.min)/w.max||0,Xn(w.b+(i?i(x):x)*w.v)+w.u}},zr=function(t){var e=t<1?Math.pow(10,(t+"").length-2):1;return function(i){return Math.floor(Math.round(parseFloat(i)/t)*t*e)/e+(gn(i)?0:Ar(i))}},Ir=function(t,e){var i,n,r=xn(t);return!r&&vn(t)&&(i=r=t.radius||sn,t.values?(t=Pr(t.values),(n=!gn(t[0]))&&(i*=i)):t=zr(t.increment)),Er(e,r?pn(t)?function(e){return n=t(e),Math.abs(n-e)<=i?n:e}:function(e){for(var r,s,o=parseFloat(n?e.x:e),a=parseFloat(n?e.y:0),l=sn,c=0,h=t.length;h--;)(r=n?(r=t[h].x-o)*r+(s=t[h].y-a)*s:Math.abs(t[h]-o))<l&&(l=r,c=h);return c=!i||l<=i?t[c]:e,n||c===e||gn(e)?c:c+Ar(e)}:zr(t))},Rr=function(t,e,i,n){return Er(xn(t)?!e:!0===i?!!(i=0):!n,(function(){return xn(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(n=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t+Math.random()*(e-t))/i)*i*n)/n}))},Fr=function(t,e,i){return Er(i,(function(i){return t[~~e(i)]}))},Nr=function(t){for(var e,i,n,r,s=0,o="";~(e=t.indexOf("random(",s));)n=t.indexOf(")",e),r="["===t.charAt(e+7),i=t.substr(e+7,n-e-7).match(r?Cn:wn),o+=t.substr(s,e-s)+Rr(r?i:+i[0],+i[1],+i[2]||1e-5),s=n+1;return o+t.substr(s,t.length-s)},jr=function(t,e,i,n,r){var s=e-t,o=n-i;return Er(r,(function(e){return i+((e-t)/s*o||0)}))},Br=function(t,e,i){var n,r,s,o=t.labels,a=sn;for(n in o)(r=o[n]-e)<0==!!i&&r&&a>(r=Math.abs(r))&&(s=n,a=r);return s},Vr=function(t,e,i){var n,r,s=t.vars,o=s[e];if(o)return n=s[e+"Params"],r=s.callbackScope||t,i&&Fn.length&&Zn(),n?o.apply(r,n):o.call(r)},Wr=function(t){return lr(t),t.progress()<1&&Vr(t,"onInterrupt"),t},Hr=function(t){var e=(t=!t.name&&t.default||t).name,i=pn(t),n=e&&!i&&t.init?function(){this._props=[]}:t,r={init:In,render:Ts,add:vs,kill:zs,modifier:Ls,rawVars:0},s={targetTest:0,get:0,getSetter:Cs,aliases:{},register:0};if(ts(),t!==n){if(jn[e])return;er(n,er(sr(t,r),s)),nr(n.prototype,nr(r,sr(t,s))),jn[n.prop=e]=n,t.targetTest&&(Wn.push(n),Rn[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}zn(e,n),t.register&&t.register(Vs,n,Fs)},$r=255,qr={aqua:[0,$r,$r],lime:[0,$r,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,$r],navy:[0,0,128],white:[$r,$r,$r],olive:[128,128,0],yellow:[$r,$r,0],orange:[$r,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[$r,0,0],pink:[$r,192,203],cyan:[0,$r,$r],transparent:[$r,$r,$r,0]},Ur=function(t,e,i){return(6*(t=t<0?t+1:t>1?t-1:t)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)*$r+.5|0},Yr=function(t,e,i){var n,r,s,o,a,l,c,h,u,d,f=t?gn(t)?[t>>16,t>>8&$r,t&$r]:0:qr.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),qr[t])f=qr[t];else if("#"===t.charAt(0))4===t.length&&(n=t.charAt(1),r=t.charAt(2),s=t.charAt(3),t="#"+n+n+r+r+s+s),f=[(t=parseInt(t.substr(1),16))>>16,t>>8&$r,t&$r];else if("hsl"===t.substr(0,3))if(f=d=t.match(wn),e){if(~t.indexOf("="))return f=t.match(kn),i&&f.length<4&&(f[3]=1),f}else o=+f[0]%360/360,a=+f[1]/100,n=2*(l=+f[2]/100)-(r=l<=.5?l*(a+1):l+a-l*a),f.length>3&&(f[3]*=1),f[0]=Ur(o+1/3,n,r),f[1]=Ur(o,n,r),f[2]=Ur(o-1/3,n,r);else f=t.match(wn)||qr.transparent;f=f.map(Number)}return e&&!d&&(n=f[0]/$r,r=f[1]/$r,s=f[2]/$r,l=((c=Math.max(n,r,s))+(h=Math.min(n,r,s)))/2,c===h?o=a=0:(u=c-h,a=l>.5?u/(2-c-h):u/(c+h),o=c===n?(r-s)/u+(r<s?6:0):c===r?(s-n)/u+2:(n-r)/u+4,o*=60),f[0]=~~(o+.5),f[1]=~~(100*a+.5),f[2]=~~(100*l+.5)),i&&f.length<4&&(f[3]=1),f},Xr=function(t){var e=[],i=[],n=-1;return t.split(Kr).forEach((function(t){var r=t.match(Sn)||[];e.push.apply(e,r),i.push(n+=r.length+1)})),e.c=i,e},Gr=function(t,e,i){var n,r,s,o,a="",l=(t+a).match(Kr),c=e?"hsla(":"rgba(",h=0;if(!l)return t;if(l=l.map((function(t){return(t=Yr(t,e,1))&&c+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),i&&(s=Xr(t),(n=i.c).join(a)!==s.c.join(a)))for(o=(r=t.replace(Kr,"1").split(Sn)).length-1;h<o;h++)a+=r[h]+(~n.indexOf(h)?l.shift()||c+"0,0,0,0)":(s.length?s:l.length?l:i).shift());if(!r)for(o=(r=t.split(Kr)).length-1;h<o;h++)a+=r[h]+l[h];return a+r[o]},Kr=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in qr)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Zr=/hsl[a]?\(/,Qr=function(t){var e,i=t.join(" ");if(Kr.lastIndex=0,Kr.test(i))return e=Zr.test(i),t[1]=Gr(t[1],e),t[0]=Gr(t[0],e,Xr(t[1])),!0},Jr=(Hi=Date.now,$i=500,qi=33,Ui=Hi(),Yi=Ui,Gi=Xi=1/240,Zi=function t(e){var i,n,r=Hi()-Yi,s=!0===e;r>
2$i&&(Ui+=r-qi),Yi+=r,Wi.time=(Yi-Ui)/1e3,((i=Wi.time-Gi)>0||s)&&(Wi.frame++,Gi+=i+(i>=Xi?.004:Xi-i),n=1),s||(ji=Bi(t)),n&&Ki.forEach((function(t){return t(Wi.time,r,Wi.frame,e)}))},Wi={time:0,frame:0,tick:function(){Zi(!0)},wake:function(){Ii&&(!Li&&yn()&&(Ti=Li=window,zi=Ti.document||{},On.gsap=Vs,(Ti.gsapVersions||(Ti.gsapVersions=[])).push(Vs.version),Pn(Dn||Ti.GreenSockGlobals||!Ti.gsap&&Ti||{}),Vi=Ti.requestAnimationFrame),ji&&Wi.sleep(),Bi=Vi||function(t){return setTimeout(t,1e3*(Gi-Wi.time)+1|0)},Ni=1,Zi(2))},sleep:function(){(Vi?Ti.cancelAnimationFrame:clearTimeout)(ji),Ni=0,Bi=In},lagSmoothing:function(t,e){$i=t||1e8,qi=Math.min(e,$i,0)},fps:function(t){Xi=1/(t||240),Gi=Wi.time+Xi},add:function(t){Ki.indexOf(t)<0&&Ki.push(t),ts()},remove:function(t){var e;~(e=Ki.indexOf(t))&&Ki.splice(e,1)},_listeners:Ki=[]},Wi),ts=function(){return!Ni&&Jr.wake()},es={},is=/^[\d.\-M][\d.\-,\s]/,ns=/["']/g,rs=function(t){for(var e,i,n,r={},s=t.substr(1,t.length-3).split(":"),o=s[0],a=1,l=s.length;a<l;a++)i=s[a],e=a!==l-1?i.lastIndexOf(","):i.length,n=i.substr(0,e),r[o]=isNaN(n)?n.replace(ns,"").trim():+n,o=i.substr(e+1).trim();return r},ss=function(t){return function(e){return 1-t(1-e)}},os=function t(e,i){for(var n,r=e._first;r;)r instanceof ps?t(r,i):!r.vars.yoyoEase||r._yoyo&&r._repeat||r._yoyo===i||(r.timeline?t(r.timeline,i):(n=r._ease,r._ease=r._yEase,r._yEase=n,r._yoyo=i)),r=r._next},as=function(t,e){return t&&(pn(t)?t:es[t]||function(t){var e=(t+"").split("("),i=es[e[0]];return i&&e.length>1&&i.config?i.config.apply(null,~t.indexOf("{")?[rs(e[1])]:Mn.exec(t)[1].split(",").map(Jn)):es._CE&&is.test(t)?es._CE("",t):i}(t))||e},ls=function(t,e,i,n){void 0===i&&(i=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var r,s={easeIn:e,easeOut:i,easeInOut:n};return Yn(t,(function(t){for(var e in es[t]=On[t]=s,es[r=t.toLowerCase()]=i,s)es[r+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=es[t+"."+e]=s[e]})),s},cs=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},hs=function t(e,i,n){var r=i>=1?i:1,s=(n||(e?.3:.45))/(i<1?i:1),o=s/an*(Math.asin(1/r)||0),a=function(t){return 1===t?1:r*Math.pow(2,-10*t)*dn((t-o)*s)+1},l="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:cs(a);return s=an/s,l.config=function(i,n){return t(e,i,n)},l},us=function t(e,i){void 0===i&&(i=1.70158);var n=function(t){return t?--t*t*((i+1)*t+i)+1:0},r="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:cs(n);return r.config=function(i){return t(e,i)},r};Yn("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var i=e<5?e+1:e;ls(t+",Power"+(i-1),e?function(t){return Math.pow(t,i)}:function(t){return t},(function(t){return 1-Math.pow(1-t,i)}),(function(t){return t<.5?Math.pow(2*t,i)/2:1-Math.pow(2*(1-t),i)/2}))})),es.Linear.easeNone=es.none=es.Linear.easeIn,ls("Elastic",hs("in"),hs("out"),hs()),Qi=7.5625,tn=1/(Ji=2.75),ls("Bounce",(function(t){return 1-en(1-t)}),en=function(t){return t<tn?Qi*t*t:t<.7272727272727273?Qi*Math.pow(t-1.5/Ji,2)+.75:t<.9090909090909092?Qi*(t-=2.25/Ji)*t+.9375:Qi*Math.pow(t-2.625/Ji,2)+.984375}),ls("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),ls("Circ",(function(t){return-(hn(1-t*t)-1)})),ls("Sine",(function(t){return 1===t?1:1-un(t*ln)})),ls("Back",us("in"),us("out"),us()),es.SteppedEase=es.steps=On.SteppedEase={config:function(t,e){void 0===t&&(t=1);var i=1/t,n=t+(e?0:1),r=e?1:0;return function(t){return((n*Mr(0,.99999999,t)|0)+r)*i}}},rn.ease=es["quad.out"],Yn("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return Hn+=t+","+t+"Params,"}));var ds=function(t,e){this.id=cn++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Un,this.set=e?e.getSetter:Cs},fs=function(){function t(t,e){var i=t.parent||Pi;this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,xr(this,+t.duration,1),this.data=t.data,Ni||Jr.wake(),i&&br(i,this,e||0===e?e:i._time,1),t.reversed&&this.reverse(),t.paused&&this.paused(!0)}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){if(!arguments.length)return this._tDur;this._dirty=0;var e=this._time/this._dur||0;return xr(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1)),this._tTime?mr(this,e*t+dr(this)):this},e.totalTime=function(t,e){if(ts(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(mr(this,t);i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&br(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===on||!t&&!this._initted)&&(this._ts||(this._pTime=t),Qn(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+dr(this))%this._dur||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+dr(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*i,e):this._repeat?fr(this._tTime,i)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?pr(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,hr(this.totalTime(Mr(-this._delay,this._tDur,e),!0))},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ts(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=on)&&Math.abs(this._zTime)!==on))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&br(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(bn(t)?this.totalDuration():this.duration())/Math.abs(this._ts
2)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?pr(e.rawTime(t),this):this._tTime:this._tTime},e.globalTime=function(t){for(var e=this,i=arguments.length?t:e.rawTime();e;)i=e._start+i/(e._ts||1),e=e._dp;return i},e.repeat=function(t){return arguments.length?(this._repeat=t,wr(this)):this._repeat},e.repeatDelay=function(t){return arguments.length?(this._rDelay=t,wr(this)):this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Sr(this,t),bn(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,bn(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,i=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<this.endTime(!0)-on))},e.eventCallback=function(t,e,i){var n=this.vars;return arguments.length>1?(e?(n[t]=e,i&&(n[t+"Params"]=i),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise((function(i){var n=pn(t)?t:tr,r=function(){var t=e.then;e.then=null,pn(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),i(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?r():e._prom=r}))},e.kill=function(){Wr(this)},t}();er(fs.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var ps=function(t){function e(e,i){var n;return void 0===e&&(e={}),(n=t.call(this,e,i)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=bn(e.sortChildren),n.parent&&vr(n.parent,Oi(n)),e.scrollTrigger&&yr(Oi(n),e.scrollTrigger),n}Di(e,t);var i=e.prototype;return i.to=function(t,e,i){return new ks(t,Kn(arguments,0,this),Sr(this,gn(e)?arguments[3]:i)),this},i.from=function(t,e,i){return new ks(t,Kn(arguments,1,this),Sr(this,gn(e)?arguments[3]:i)),this},i.fromTo=function(t,e,i,n){return new ks(t,Kn(arguments,2,this),Sr(this,gn(e)?arguments[4]:n)),this},i.set=function(t,e,i){return e.duration=0,e.parent=this,or(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new ks(t,e,Sr(this,i),1),this},i.call=function(t,e,i){return br(this,ks.delayedCall(0,t,e),Sr(this,i))},i.staggerTo=function(t,e,i,n,r,s,o){return i.duration=e,i.stagger=i.stagger||n,i.onComplete=s,i.onCompleteParams=o,i.parent=this,new ks(t,i,Sr(this,r)),this},i.staggerFrom=function(t,e,i,n,r,s,o){return i.runBackwards=1,or(i).immediateRender=bn(i.immediateRender),this.staggerTo(t,e,i,n,r,s,o)},i.staggerFromTo=function(t,e,i,n,r,s,o,a){return n.startAt=i,or(n).immediateRender=bn(n.immediateRender),this.staggerTo(t,e,n,r,s,o,a)},i.render=function(t,e,i){var n,r,s,o,a,l,c,h,u,d,f,p,g=this._time,m=this._dirty?this.totalDuration():this._tDur,v=this._dur,b=this!==Pi&&t>m-on&&t>=0?m:t<on?0:t,y=this._zTime<0!=t<0&&(this._initted||!v);if(b!==this._tTime||i||y){if(g!==this._time&&v&&(b+=this._time-g,t+=this._time-g),n=b,u=this._start,l=!(h=this._ts),y&&(v||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat&&(f=this._yoyo,a=v+this._rDelay,((n=Xn(b%a))>v||m===b)&&(n=v),(o=~~(b/a))&&o===b/a&&(n=v,o--),d=fr(this._tTime,a),!g&&this._tTime&&d!==o&&(d=o),f&&1&o&&(n=v-n,p=1),o!==d&&!this._lock)){var _=f&&1&d,x=_===(f&&1&o);if(o<d&&(_=!_),g=_?0:v,this._lock=1,this.render(g||(p?0:Xn(o*a)),e,!v)._lock=0,!e&&this.parent&&Vr(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),g!==this._time||l!==!this._ts
2)return this;if(x&&(this._lock=2,g=_?v+1e-4:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;os(this,p)}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=function(t,e,i){var n;if(i>e)for(n=t._first;n&&n._start<=i;){if(!n._dur&&"isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=i;){if(!n._dur&&"isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,Xn(g),Xn(n)),c&&(b-=n-(n=c._start))),this._tTime=b,this._time=n,this._act=!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t),g||!n||e||Vr(this,"onStart"),n>=g&&t>=0)for(r=this._first;r;){if(s=r._next,(r._act||n>=r._start)&&r._ts&&c!==r){if(r.parent!==this)return this.render(t,e,i);if(r.render(r._ts>0?(n-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(n-r._start)*r._ts,e,i),n!==this._time||!this._ts&&!l){c=0,s&&(b+=this._zTime=-1e-8);break}}r=s}else{r=this._last;for(var w=t<0?t:n;r;){if(s=r._prev,(r._act||w<=r._end)&&r._ts&&c!==r){if(r.parent!==this)return this.render(t,e,i);if(r.render(r._ts>0?(w-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(w-r._start)*r._ts,e,i),n!==this._time||!this._ts&&!l){c=0,s&&(b+=this._zTime=w?-1e-8:on);break}}r=s}}if(c&&!e&&(this.pause(),c.render(n>=g?0:-1e-8)._zTime=n>=g?1:-1,this._ts))return this._start=u,gr(this),this.render(t,e,i);this._onUpdate&&!e&&Vr(this,"onUpdate",!0),(b===m&&m>=this.totalDuration()||!b&&g)&&(u!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||((t||!v)&&(b===m&&this._ts>0||!b&&this._ts<0)&&lr(this,1),e||t<0&&!g||!b&&!g||(Vr(this,b===m?"onComplete":"onReverseComplete",!0),this._prom&&!(b<m&&this.timeScale()>0)&&this._prom())))}return this},i.add=function(t,e){var i=this;if(gn(e)||(e=Sr(this,e)),!(t instanceof fs)){if(xn(t))return t.forEach((function(t){return i.add(t,e)})),cr(this);if(fn(t))return this.addLabel(t,e);if(!pn(t))return this;t=ks.delayedCall(0,t)}return this!==t?br(this,t,e):this},i.getChildren=function(t,e,i,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===n&&(n=-sn);for(var r=[],s=this._first;s;)s._start>=n&&(s instanceof ks?e&&r.push(s):(i&&r.push(s),t&&r.push.apply(r,s.getChildren(!0,e,i)))),s=s._next;return r},i.getById=function(t){for(var e=this.getChildren(1,1,1),i=e.length;i--;)if(e[i].vars.id===t)return e[i]},i.remove=function(t){return fn(t)?this.removeLabel(t):pn(t)?this.killTweensOf(t):(ar(this,t),t===this._recent&&(this._recent=this._last),cr(this))},i.totalTime=function(e,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Xn(Jr.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,i),this._forcing=0,this):this._tTime},i.addLabel=function(t,e){return this.labels[t]=Sr(this,e),this},i.removeLabel=function(t){return delete this.labels[t],this},i.addPause=function(t,e,i){var n=ks.delayedCall(0,e||In,i);return n.data="isPause",this._hasPause=1,br(this,n,Sr(this,t))},i.removePause=function(t){var e=this._first;for(t=Sr(this,t);e;)e._start===t&&"isPause"===e.data&&lr(e),e=e._next},i.killTweensOf=function(t,e,i){for(var n=this.getTweensOf(t,i),r=n.length;r--;)gs!==n[r]&&n[r].kill(t,e);return this},i.getTweensOf=function(t,e){for(var i,n=[],r=Pr(t),s=this._first,o=gn(e);s;)s instanceof ks?Gn(s._targets,r)&&(o?(!gs||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&n.push(s):(i=s.getTweensOf(r,e)).length&&n.push.apply(n,i),s=s._next;return n},i.tweenTo=function(t,e){e=e||{};var i=this,n=Sr(i,t),r=e,s=r.startAt,o=r.onStart,a=r.onStartParams,l=ks.to(i,er(e,{ease:"none",lazy:!1,time:n,duration:e.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale())||on,onStart:function(){i.pause();var t=e.duration||Math.abs((n-i._time)/i.timeScale());l._dur!==t&&xr(l,t).render(l._time,!0,!0),o&&o.apply(l,a||[])}}));return l},i.tweenFromTo=function(t,e,i){return this.tweenTo(e,er({startAt:{time:Sr(this,t)}},i))},i.recent=function(){return this._recent},i.nextLabel=function(t){return void 0===t&&(t=this._time),Br(this,Sr(this,t))},i.previousLabel=function(t){return void 0===t&&(t=this._time),Br(this,Sr(this,t),1)},i.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+on)}
2,i.shiftChildren=function(t,e,i){void 0===i&&(i=0);for(var n,r=this._first,s=this.labels;r;)r._start>=i&&(r._start+=t),r=r._next;if(e)for(n in s)s[n]>=i&&(s[n]+=t);return cr(this)},i.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},i.clear=function(t){void 0===t&&(t=!0);for(var e,i=this._first;i;)e=i._next,this.remove(i),i=e;return this._time=this._tTime=this._pTime=0,t&&(this.labels={}),cr(this)},i.totalDuration=function(t){var e,i,n,r,s=0,o=this,a=o._last,l=sn;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){for(r=o.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(n=a._start)>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,br(o,a,n-a._delay,1)._lock=0):l=n,n<0&&a._ts&&(s-=n,(!r&&!o._dp||r&&r.smoothChildTiming)&&(o._start+=n/o._ts,o._time-=n,o._tTime-=n),o.shiftChildren(-n,!1,-Infinity),l=0),(i=gr(a))>s&&a._ts&&(s=i),a=e;xr(o,o===Pi&&o._time>s?o._time:s,1),o._dirty=0}return o._tDur},e.updateRoot=function(t){if(Pi._ts&&(Qn(Pi,pr(t,Pi)),Ri=Jr.frame),Jr.frame>=Vn){Vn+=nn.autoSleep||120;var e=Pi._first;if((!e||!e._ts)&&nn.autoSleep&&Jr._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Jr.sleep()}}},e}(fs);er(ps.prototype,{_lock:0,_hasPause:0,_forcing:0});var gs,ms=function(t,e,i,n,r,s,o){var a,l,c,h,u,d,f,p,g=new Fs(this._pt,t,e,0,1,Ps,null,r),m=0,v=0;for(g.b=i,g.e=n,i+="",(f=~(n+="").indexOf("random("))&&(n=Nr(n)),s&&(s(p=[i,n],t,e),i=p[0],n=p[1]),l=i.match(En)||[];a=En.exec(n);)h=a[0],u=n.substring(m,a.index),c?c=(c+1)%5:"rgba("===u.substr(-5)&&(c=1),h!==l[v++]&&(d=parseFloat(l[v-1])||0,g._pt={_next:g._pt,p:u||1===v?u:",",s:d,c:"="===h.charAt(1)?parseFloat(h.substr(2))*("-"===h.charAt(0)?-1:1):parseFloat(h)-d,m:c&&c<4?Math.round:0},m=En.lastIndex);return g.c=m<n.length?n.substring(m,n.length):"",g.fp=o,(An.test(n)||f)&&(g.e=0),this._pt=g,g},vs=function(t,e,i,n,r,s,o,a,l){pn(n)&&(n=n(r||0,t,s));var c,h=t[e],u="get"!==i?i:pn(h)?l?t[e.indexOf("set")||!pn(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,d=pn(h)?l?Ms:Es:Ss;if(fn(n)&&(~n.indexOf("random(")&&(n=Nr(n)),"="===n.charAt(1)&&(n=parseFloat(u)+parseFloat(n.substr(2))*("-"===n.charAt(0)?-1:1)+(Ar(u)||0))),u!==n)return isNaN(u*n)?(!h&&!(e in t)&&Tn(e,n),ms.call(this,t,e,u,n,d,a||nn.stringFilter,l)):(c=new Fs(this._pt,t,e,+u||0,n-(u||0),"boolean"==typeof h?Ds:Os,0,d),l&&(c.fp=l),o&&c.modifier(o,this,t),this._pt=c)},bs=function(t,e,i,n,r,s){var o,a,l,c;if(jn[t]&&!1!==(o=new jn[t]).init(r,o.rawVars?e[t]:function(t,e,i,n,r){if(pn(t)&&(t=_s(t,r,e,i,n)),!vn(t)||t.style&&t.nodeType||xn(t))return fn(t)?_s(t,r,e,i,n):t;var s,o={};for(s in t)o[s]=_s(t[s],r,e,i,n);return o}(e[t],n,r,s,i),i,n,s)&&(i._pt=a=new Fs(i._pt,r,t,0,1,o.render,o,0,o.priority),i!==Fi))for(l=i._ptLookup[i._targets.indexOf(r)],c=o._props.length;c--;)l[o._props[c]]=a;return o},ys=function t(e,i){var n,r,s,o,a,l,c,h,u,d,f,p,g,m=e.vars,v=m.ease,b=m.startAt,y=m.immediateRender,_=m.lazy,x=m.onUpdate,w=m.onUpdateParams,k=m.callbackScope,S=m.runBackwards,E=m.yoyoEase,M=m.keyframes,A=m.autoRevert,C=e._dur,O=e._startAt,D=e._targets,P=e.parent,T=P&&"nested"===P.data?P.parent._targets:D,L="auto"===e._overwrite,z=e.timeline;if(z&&(!M||!v)&&(v="none"),e._ease=as(v,rn.ease),e._yEase=E?ss(as(!0===E?v:E,rn.ease)):0,E&&e._yoyo&&!e._repeat&&(E=e._yEase,e._yEase=e._ease,e._ease=E),!z){if(p=(h=D[0]?qn(D[0]).harness:0)&&m[h.prop],n=sr(m,Rn),O&&O.render(-1,!0).kill(),b){if(lr(e._startAt=ks.set(D,er({data:"isStart",overwrite:!1,parent:P,immediateRender:!0,lazy:bn(_),startAt:null,delay:0,onUpdate:x,onUpdateParams:w,callbackScope:k,stagger:0},b))),y)if(i>0)!A&&(e._startAt=0);else if(C&&!(i<0&&O))return void(e._zTime=i)}else if(S&&C)if(O)!A&&(e._startAt=0);else if(i&&(y=!1),s=er({overwrite:!1,data:"isFromStart",lazy:y&&bn(_),immediateRender:y,stagger:0,parent:P},n),p&&(s[h.prop]=p),lr(e._startAt=ks.set(D,s)),y){if(!i)return}else t(e._startAt,on);for(e._pt=0,_=C&&bn(_)||_&&!C,r=0;r<D.length;r++){if(c=(a=D[r])._gsap||$n(D)[r]._gsap,e._ptLookup[r]=d={},Nn[c.id]&&Zn(),f=T===D?r:T.indexOf(a),h&&!1!==(u=new h).init(a,p||n,e,f,T)&&(e._pt=o=new Fs(e._pt,a,u.name,0,1,u.render,u,0,u.priority),u._props.forEach((function(t){d[t]=o})),u.priority&&(l=1)),!h||p)for(s in n)jn[s]&&(u=bs(s,n,e,f,a,T))?u.priority&&(l=1):d[s]=o=vs.call(e,a,s,"get",n[s],f,T,0,m.stringFilter);e._op&&e._op[r]&&e.kill(a,e._op[r]),L&&e._pt&&(gs=e,Pi.killTweensOf(a,d,e.globalTime(0)),g=!e.parent,gs=0),e._pt&&_&&(Nn[c.id]=1)}l&&Rs(e),e._onInit&&e._onInit(e)}e._from=!z&&!!m.runBackwards,e._onUpdate=x,e._initted=(!e._op||e._pt)&&!g}
2,_s=function(t,e,i,n,r){return pn(t)?t.call(e,i,n,r):fn(t)&&~t.indexOf("random(")?Nr(t):t},xs=Hn+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",ws=(xs+",id,stagger,delay,duration,paused,scrollTrigger").split(","),ks=function(t){function e(e,i,n,r){var s;"number"==typeof i&&(n.duration=i,i=n,n=null);var o,a,l,c,h,u,d,f,p=(s=t.call(this,r?i:or(i),n)||this).vars,g=p.duration,m=p.delay,v=p.immediateRender,b=p.stagger,y=p.overwrite,_=p.keyframes,x=p.defaults,w=p.scrollTrigger,k=p.yoyoEase,S=s.parent,E=(xn(e)?gn(e[0]):"length"in i)?[e]:Pr(e);if(s._targets=E.length?$n(E):Ln("GSAP target "+e+" not found. https://greensock.com",!nn.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=y,_||b||_n(g)||_n(m)){if(i=s.vars,(o=s.timeline=new ps({data:"nested",defaults:x||{}})).kill(),o.parent=Oi(s),_)er(o.vars.defaults,{ease:"none"}),_.forEach((function(t){return o.to(E,t,">")}));else{if(c=E.length,d=b?Lr(b):In,vn(b))for(h in b)~xs.indexOf(h)&&(f||(f={}),f[h]=b[h]);for(a=0;a<c;a++){for(h in l={},i)ws.indexOf(h)<0&&(l[h]=i[h]);l.stagger=0,k&&(l.yoyoEase=k),f&&nr(l,f),u=E[a],l.duration=+_s(g,Oi(s),a,u,E),l.delay=(+_s(m,Oi(s),a,u,E)||0)-s._delay,!b&&1===c&&l.delay&&(s._delay=m=l.delay,s._start+=m,l.delay=0),o.to(u,l,d(a,u,E))}o.duration()?g=m=0:s.timeline=0}g||s.duration(g=o.duration())}else s.timeline=0;return!0===y&&(gs=Oi(s),Pi.killTweensOf(E),gs=0),S&&vr(S,Oi(s)),(v||!g&&!_&&s._start===Xn(S._time)&&bn(v)&&ur(Oi(s))&&"nested"!==S.data)&&(s._tTime=-1e-8,s.render(Math.max(0,-m))),w&&yr(Oi(s),w),s}Di(e,t);var i=e.prototype;return i.render=function(t,e,i){var n,r,s,o,a,l,c,h,u,d=this._time,f=this._tDur,p=this._dur,g=t>f-on&&t>=0?f:t<on?0:t;if(p){if(g!==this._tTime||!t||i||this._startAt&&this._zTime<0!=t<0){if(n=g,h=this.timeline,this._repeat){if(o=p+this._rDelay,((n=Xn(g%o))>p||f===g)&&(n=p),(s=~~(g/o))&&s===g/o&&(n=p,s--),(l=this._yoyo&&1&s)&&(u=this._yEase,n=p-n),a=fr(this._tTime,o),n===d&&!i&&this._initted)return this;s!==a&&(h&&this._yEase&&os(h,l),!this.vars.repeatRefresh||l||this._lock||(this._lock=i=1,this.render(Xn(o*s),!0).invalidate()._lock=0))}if(!this._initted){if(_r(this,t<0?t:n,i,e))return this._tTime=0,this;if(p!==this._dur)return this.render(t,e,i)}for(this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(u||this._ease)(n/p),this._from&&(this.ratio=c=1-c),n&&!d&&!e&&Vr(this,"onStart"),r=this._pt;r;)r.r(c,r.d),r=r._next;h&&h.render(t<0?t:!n&&l?-1e-8:h._dur*c,e,i)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,i),Vr(this,"onUpdate")),this._repeat&&s!==a&&this.vars.onRepeat&&!e&&this.parent&&Vr(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&lr(this,1),e||t<0&&!d||!g&&!d||(Vr(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g<f&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,i,n){var r,s,o=t.ratio,a=e<0||!e&&o&&!t._start&&t._zTime>on&&!t._dp._lock||t._ts<0||t._dp._ts<0?0:1,l=t._rDelay,c=0;if(l&&t._repeat&&(c=Mr(0,t._tDur,e),fr(c,l)!==(s=fr(t._tTime,l))&&(o=1-a,t.vars.repeatRefresh&&t._initted&&t.invalidate())),t._initted||!_r(t,e,n,i))if(a!==o||n||t._zTime===on||!e&&t._zTime){for(s=t._zTime,t._zTime=e||(i?on:0),i||(i=e&&!s),t.ratio=a,t._from&&(a=1-a),t._time=0,t._tTime=c,i||Vr(t,"onStart"),r=t._pt;r;)r.r(a,r.d),r=r._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!i&&Vr(t,"onUpdate"),c&&t._repeat&&!i&&t.parent&&Vr(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===a&&(a&&lr(t,1),i||(Vr(t,a?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,i);return this},i.targets=function(){return this._targets},i.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},i.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e)&&(this._lazy=0,this.parent))return Wr(this);if(this.timeline){var i=this.timeline.totalDuration();
vendor: 5,497 bytes, line 2
2return this.timeline.killTweensOf(t,e,gs&&!0!==gs.vars.overwrite)._first||Wr(this),this.parent&&i!==this.timeline.totalDuration()&&xr(this,this._dur*this.timeline._tDur/i),this}var n,r,s,o,a,l,c,h=this._targets,u=t?Pr(t):h,d=this._ptLookup,f=this._pt;if((!e||"all"===e)&&function(t,e){for(var i=t.length,n=i===e.length;n&&i--&&t[i]===e[i];);return i<0}(h,u))return"all"===e&&(this._pt=0),Wr(this);for(n=this._op=this._op||[],"all"!==e&&(fn(e)&&(a={},Yn(e,(function(t){return a[t]=1})),e=a),e=function(t,e){var i,n,r,s,o=t[0]?qn(t[0]).harness:0,a=o&&o.aliases;if(!a)return e;for(n in i=nr({},e),a)if(n in i)for(r=(s=a[n].split(",")).length;r--;)i[s[r]]=i[n];return i}(h,e)),c=h.length;c--;)if(~u.indexOf(h[c]))for(a in r=d[c],"all"===e?(n[c]=e,o=r,s={}):(s=n[c]=n[c]||{},o=e),o)(l=r&&r[a])&&("kill"in l.d&&!0!==l.d.kill(a)||ar(this,l,"_pt"),delete r[a]),"all"!==s&&(s[a]=1);return this._initted&&!this._pt&&f&&Wr(this),this},e.to=function(t,i){return new e(t,i,arguments[2])},e.from=function(t,i){return new e(t,Kn(arguments,1))},e.delayedCall=function(t,i,n,r){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:i,onReverseComplete:i,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:r})},e.fromTo=function(t,i,n){return new e(t,Kn(arguments,2))},e.set=function(t,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(t,i)},e.killTweensOf=function(t,e,i){return Pi.killTweensOf(t,e,i)},e}(fs);er(ks.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Yn("staggerTo,staggerFrom,staggerFromTo",(function(t){ks[t]=function(){var e=new ps,i=Cr.call(arguments,0);return i.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,i)}}));var Ss=function(t,e,i){return t[e]=i},Es=function(t,e,i){return t[e](i)},Ms=function(t,e,i,n){return t[e](n.fp,i)},As=function(t,e,i){return t.setAttribute(e,i)},Cs=function(t,e){return pn(t[e])?Es:mn(t[e])&&t.setAttribute?As:Ss},Os=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)},Ds=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Ps=function(t,e){var i=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;i;)n=i.p+(i.m?i.m(i.s+i.c*t):Math.round(1e4*(i.s+i.c*t))/1e4)+n,i=i._next;n+=e.c}e.set(e.t,e.p,n,e)},Ts=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},Ls=function(t,e,i,n){for(var r,s=this._pt;s;)r=s._next,s.p===n&&s.modifier(t,e,i),s=r},zs=function(t){for(var e,i,n=this._pt;n;)i=n._next,n.p===t&&!n.op||n.op===t?ar(this,n,"_pt"):n.dep||(e=1),n=i;return!e},Is=function(t,e,i,n){n.mSet(t,e,n.m.call(n.tween,i,n.mt),n)},Rs=function(t){for(var e,i,n,r,s=t._pt;s;){for(e=s._next,i=n;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:r)?s._prev._next=s:n=s,(s._next=i)?i._prev=s:r=s,s=e}t._pt=n},Fs=function(){function t(t,e,i,n,r,s,o,a,l){this.t=e,this.s=n,this.c=r,this.p=i,this.r=s||Os,this.d=o||this,this.set=a||Ss,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,i){this.mSet=this.mSet||this.set,this.set=Is,this.m=t,this.mt=i,this.tween=e},t}();Yn(Hn+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return Rn[t]=1})),On.TweenMax=On.TweenLite=ks,On.TimelineLite=On.TimelineMax=ps,Pi=new ps({sortChildren:!1,defaults:rn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),nn.stringFilter=Qr;var Ns={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach((function(t){return Hr(t)}))},timeline:function(t){return new ps(t)},getTweensOf:function(t,e){return Pi.getTweensOf(t,e)},getProperty:function(t,e,i,n){fn(t)&&(t=Pr(t)[0]);var r=qn(t||{}).get,s=i?tr:Jn;return"native"===i&&(i=""),t?e?s((jn[e]&&jn[e].get||r)(t,e,i,n)):function(e,i,n){return s((jn[e]&&jn[e].get||r)(t,e,i,n))}:t},quickSetter:function(t,e,i){if((t=Pr(t)).length>1){var n=t.map((function(t){return Vs.quickSetter(t,e,i)})),r=n.length;return function(t){for(var e=r;e--;)n[e](t)}}t=t[0]||{};var s=jn[e],o=qn(t),a=o.harness&&(o.harness.aliases||{})[e]||e,l=s?function(e){var n=new s;Fi._pt=0,n.init(t,i?e+i:e,Fi,0,[t]),n.render(1,n),Fi._pt&&Ts(1,Fi)}:o.set(t,a);return s?l:function(e){return l(t,a,i?e+i:e,o,1)}},isTweening:function(t){return Pi.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=as(t.ease,rn.ease)),rr(rn,t||{})},config:function(t){return rr(nn,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,n=t.plugins,r=t.defaults,s=t.extendTimeline;(n||"").split(",").forEach((function(t){return t&&!jn[t]&&!On[t]&&Ln(e+" effect requires "+t+" plugin.")})),Bn[e]=function(t,e,n){return i(Pr(t),er(e||{},r),n)},s&&(ps.prototype[e]=function(t,i,n){return this.add(Bn[e](t,vn(i)?i:(n=i)&&{},this),n)})},registerEase:function(t,e){es[t]=as(e)},parseEase:function(t,e){return arguments.length?as(t,e):es},getById:function(t){return Pi.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var i,n,r=new ps(t);for(r.smoothChildTiming=bn(t.smoothChildTiming),Pi.remove(r),r._dp=0,r._time=r._tTime=Pi._time,i=Pi._first;i;)n=i._next,!e&&!i._dur&&i instanceof ks&&i.vars.onComplete===i._targets[0]||br(r,i,i._start-i._delay),i=n;return br(Pi,r,0),r},utils:{wrap:function t(e,i,n){var r=i-e;return xn(e)?Fr(e,t(0,e.length),i):Er(n,(function(t){return(r+(t-e)%r)%r+e}))},wrapYoyo:function t(e,i,n){var r=i-e,s=2*r;return xn(e)?Fr(e,t(0,e.length-1),i):Er(n,(function(t){return e+((t=(s+(t-e)%s)%s||
20)>r?s-t:t)}))},distribute:Lr,random:Rr,snap:Ir,normalize:function(t,e,i){return jr(t,e,0,1,i)},getUnit:Ar,clamp:function(t,e,i){return Er(i,(function(i){return Mr(t,e,i)}))},splitColor:Yr,toArray:Pr,mapRange:jr,pipe:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(i){return t(parseFloat(i))+(e||Ar(i))}},interpolate:function t(e,i,n,r){var s=isNaN(e+i)?0:function(t){return(1-t)*e+t*i};if(!s){var o,a,l,c,h,u=fn(e),d={};if(!0===n&&(r=1)&&(n=null),u)e={p:e},i={p:i};else if(xn(e)&&!xn(i)){for(l=[],c=e.length,h=c-2,a=1;a<c;a++)l.push(t(e[a-1],e[a]));c--,s=function(t){t*=c;var e=Math.min(h,~~t);return l[e](t-e)},n=i}else r||(e=nr(xn(e)?[]:{},e));if(!l){for(o in i)vs.call(d,e,o,"get",i[o]);s=function(t){return Ts(t,d)||(u?e.p:e)}}}return Er(n,s)},shuffle:Tr},install:Pn,effects:Bn,ticker:Jr,updateRoot:ps.updateRoot,plugins:jn,globalTimeline:Pi,core:{PropTween:Fs,globals:zn,Tween:ks,Timeline:ps,Animation:fs,getCache:qn,_removeLinkedListItem:ar}};Yn("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Ns[t]=ks[t]})),Jr.add(ps.updateRoot),Fi=Ns.to({},{duration:0});var js=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},Bs=function(t,e){return{name:t,rawVars:1,init:function(t,i,n){n._onInit=function(t){var n,r;if(fn(i)&&(n={},Yn(i,(function(t){return n[t]=1})),i=n),e){for(r in n={},i)n[r]=e(i[r]);i=n}!function(t,e){var i,n,r,s=t._targets;for(i in e)for(n=s.length;n--;)(r=t._ptLookup[n][i])&&(r=r.d)&&(r._pt&&(r=js(r,i)),r&&r.modifier&&r.modifier(e[i],t,s[n],i))}(t,i)}}}},Vs=Ns.registerPlugin({name:"attr",init:function(t,e,i,n,r){var s,o;for(s in e)(o=this.add(t,"setAttribute",(t.getAttribute(s)||0)+"",e[s],n,r,0,0,s))&&(o.op=s),this._props.push(s)}},{name:"endArray",init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i])}},Bs("roundProps",zr),Bs("modifiers"),Bs("snap",Ir))||Ns;ks.version=ps.version=Vs.version="3.4.2",Ii=1,yn()&&ts();es.Power0,es.Power1,es.Power2,es.Power3,es.Power4,es.Linear,es.Quad,es.Cubic,es.Quart,es.Quint,es.Strong,es.Elastic,es.Back,es.SteppedEase,es.Bounce,es.Sine,es.Expo,es.Circ;var Ws,Hs,$s,qs,Us,Ys,Xs,Gs,Ks={},Zs=180/Math.PI,Qs=Math.PI/180,Js=Math.atan2,to=/([A-Z])/g,eo=/(?:left|right|width|margin|padding|x)/i,io=/[\s,\(]\S/,no={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ro=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},so=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},oo=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},ao=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},lo=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},co=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},ho=function(t,e,i){return t.style[e]=i},uo=function(t,e,i){return t.style.setProperty(e,i)},fo=function(t,e,i){return t._gsap[e]=i},po=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},go=function(t,e,i,n,r){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(r,s)},mo=function(t,e,i,n,r){var s=t._gsap;s[e]=i,s.renderTransform(r,s)},vo="transform",bo=vo+"Origin",yo=function(t,e){var i=Hs.createElementNS?Hs.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Hs.createElement(t);return i.style?i:Hs.createElement(t)},_o=function t(e,i,n){var r=getComputedStyle(e);return r[i]||r.getPropertyValue(i.replace(to,"-$1").toLowerCase())||r.getPropertyValue(i)||!n&&t(e,wo(i)||i,1)||""},xo="O,Moz,ms,Ms,Webkit".split(","),wo=function(t,e,i){var n=(e||Us).style,r=5;if(t in n&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);r--&&!(xo[r]+t in n););return r<0?null:(3===r?"ms":r>=0?xo[r]:"")+t},ko=function(){"undefined"!=typeof window&&window.document&&(Ws=window,Hs=Ws.document,$s=Hs.documentElement,Us=yo("div")||{style:{}},Ys=yo("div"),vo=wo(vo),bo=vo+"Origin",Us.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Gs=!!wo("perspective"),qs=1)},So=function t(e){var i,n=yo("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,s=this.nextSibling,o=this.style.cssText;if($s.appendChild(n),n.appendChild(this),this.style.display="block",e)try{i=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(i=this._gsapBBox());return r&&(s?r.insertBefore(this,s):r.appendChild(this)),$s.removeChild(n),this.style.cssText=o,i},Eo=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},Mo=function(t){var e;try{e=t.getBBox()}catch(i){e=So.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===So||(e=So.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+Eo(t,["x","cx","x1"])||0,y:+Eo(t,["y","cy","y1"])||0,width:0,height:0}},Ao=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Mo(t))},Co=function(t,e){if(e){var i=t.style;e in Ks&&e!==bo&&(e=vo),i.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),i.removeProperty(e.replace(to,"-$1").toLowerCase())):i.removeAttribute(e)}}
2,Oo=function(t,e,i,n,r,s){var o=new Fs(t._pt,e,i,0,1,s?co:lo);return t._pt=o,o.b=n,o.e=r,t._props.push(i),o},Do={deg:1,rad:1,turn:1},Po=function t(e,i,n,r){var s,o,a,l,c=parseFloat(n)||0,h=(n+"").trim().substr((c+"").length)||"px",u=Us.style,d=eo.test(i),f="svg"===e.tagName.toLowerCase(),p=(f?"client":"offset")+(d?"Width":"Height"),g=100,m="px"===r,v="%"===r;return r===h||!c||Do[r]||Do[h]?c:("px"!==h&&!m&&(c=t(e,i,n,"px")),l=e.getCTM&&Ao(e),v&&(Ks[i]||~i.indexOf("adius"))?Xn(c/(l?e.getBBox()[d?"width":"height"]:e[p])*g):(u[d?"width":"height"]=g+(m?h:r),o=~i.indexOf("adius")||"em"===r&&e.appendChild&&!f?e:e.parentNode,l&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==Hs&&o.appendChild||(o=Hs.body),(a=o._gsap)&&v&&a.width&&d&&a.time===Jr.time?Xn(c/a.width*g):((v||"%"===h)&&(u.position=_o(e,"position")),o===e&&(u.position="static"),o.appendChild(Us),s=Us[p],o.removeChild(Us),u.position="absolute",d&&v&&((a=qn(o)).time=Jr.time,a.width=o[p]),Xn(m?s*c/g:s&&c?g/s*c:0))))},To=function(t,e,i,n){var r;return qs||ko(),e in no&&"transform"!==e&&~(e=no[e]).indexOf(",")&&(e=e.split(",")[0]),Ks[e]&&"transform"!==e?(r=Ho(t,n),r="transformOrigin"!==e?r[e]:$o(_o(t,bo))+" "+r.zOrigin+"px"):(!(r=t.style[e])||"auto"===r||n||~(r+"").indexOf("calc("))&&(r=Ro[e]&&Ro[e](t,e,i)||_o(t,e)||Un(t,e)||("opacity"===e?1:0)),i&&!~(r+"").indexOf(" ")?Po(t,e,r,i)+i:r},Lo=function(t,e,i,n){if(!i||"none"===i){var r=wo(e,t,1),s=r&&_o(t,r,1);s&&s!==i?(e=r,i=s):"borderColor"===e&&(i=_o(t,"borderTopColor"))}var o,a,l,c,h,u,d,f,p,g,m,v,b=new Fs(this._pt,t.style,e,0,1,Ps),y=0,_=0;if(b.b=i,b.e=n,i+="","auto"===(n+="")&&(t.style[e]=n,n=_o(t,e)||n,t.style[e]=i),Qr(o=[i,n]),n=o[1],l=(i=o[0]).match(Sn)||[],(n.match(Sn)||[]).length){for(;a=Sn.exec(n);)d=a[0],p=n.substring(y,a.index),h?h=(h+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(h=1),d!==(u=l[_++]||"")&&(c=parseFloat(u)||0,m=u.substr((c+"").length),(v="="===d.charAt(1)?+(d.charAt(0)+"1"):0)&&(d=d.substr(2)),f=parseFloat(d),g=d.substr((f+"").length),y=Sn.lastIndex-g.length,g||(g=g||nn.units[e]||m,y===n.length&&(n+=g,b.e+=g)),m!==g&&(c=Po(t,e,u,g)||0),b._pt={_next:b._pt,p:p||1===_?p:",",s:c,c:v?v*f:f-c,m:h&&h<4?Math.round:0});b.c=y<n.length?n.substring(y,n.length):""}else b.r="display"===e&&"none"===n?co:lo;return An.test(n)&&(b.e=0),this._pt=b,b},zo={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Io=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i,n,r,s=e.t,o=s.style,a=e.u,l=s._gsap;if("all"===a||!0===a)o.cssText="",n=1;else for(r=(a=a.split(",")).length;--r>-1;)i=a[r],Ks[i]&&(n=1,i="transformOrigin"===i?bo:vo),Co(s,i);n&&(Co(s,vo),l&&(l.svg&&s.removeAttribute("transform"),Ho(s,1),l.uncache=1))}},Ro={clearProps:function(t,e,i,n,r){if("isFromStart"!==r.data){var s=t._pt=new Fs(t._pt,e,i,0,0,Io);return s.u=n,s.pr=-10,s.tween=r,t._props.push(i),1}}},Fo=[1,0,0,1,0,0],No={},jo=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Bo=function(t){var e=_o(t,vo);return jo(e)?Fo:e.substr(7).match(kn).map(Xn)},Vo=function(t,e){var i,n,r,s,o=t._gsap||qn(t),a=t.style,l=Bo(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(r=t.transform.baseVal.consolidate().matrix).a,r.b,r.c,r.d,r.e,r.f]).join(",")?Fo:l:(l!==Fo||t.offsetParent||t===$s||o.svg||(r=a.display,a.display="block",(i=t.parentNode)&&t.offsetParent||(s=1,n=t.nextSibling,$s.appendChild(t)),l=Bo(t),r?a.display=r:Co(t,"display"),s&&(n?i.insertBefore(t,n):i?i.appendChild(t):$s.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Wo=function(t,e,i,n,r,s){var o,a,l,c=t._gsap,h=r||Vo(t,!0),u=c.xOrigin||0,d=c.yOrigin||0,f=c.xOffset||0,p=c.yOffset||0,g=h[0],m=h[1],v=h[2],b=h[3],y=h[4],_=h[5],x=e.split(" "),w=parseFloat(x[0])||0,k=parseFloat(x[1])||0;i?h!==Fo&&(a=g*b-m*v)&&(l=w*(-m/a)+k*(g/a)-(g*_-m*y)/a,w=w*(b/a)+k*(-v/a)+(v*_-b*y)/a,k=l):(w=(o=Mo(t)).x+(~x[0].indexOf("%")?w/100*o.width:w),k=o.y+(~(x[1]||x[0]).indexOf("%")?k/100*o.height:k)),n||!1!==n&&c.smooth?(y=w-u,_=k-d,c.xOffset=f+(y*g+_*v)-y,c.yOffset=p+(y*m+_*b)-_):c.xOffset=c.yOffset=0,c.xOrigin=w,c.yOrigin=k,c.smooth=!!n,c.origin=e,c.originIsAbsolute=!!i,t.style[bo]="0px 0px",s&&(Oo(s,c,"xOr
2igin",u,w),Oo(s,c,"yOrigin",d,k),Oo(s,c,"xOffset",f,c.xOffset),Oo(s,c,"yOffset",p,c.yOffset)),t.setAttribute("data-svg-origin",w+" "+k)},Ho=function(t,e){var i=t._gsap||new ds(t);if("x"in i&&!e&&!i.uncache)return i;var n,r,s,o,a,l,c,h,u,d,f,p,g,m,v,b,y,_,x,w,k,S,E,M,A,C,O,D,P,T,L,z,I=t.style,R=i.scaleX<0,F="px",N="deg",j=_o(t,bo)||"0";return n=r=s=l=c=h=u=d=f=0,o=a=1,i.svg=!(!t.getCTM||!Ao(t)),m=Vo(t,i.svg),i.svg&&(M=!i.uncache&&t.getAttribute("data-svg-origin"),Wo(t,M||j,!!M||i.originIsAbsolute,!1!==i.smooth,m)),p=i.xOrigin||0,g=i.yOrigin||0,m!==Fo&&(_=m[0],x=m[1],w=m[2],k=m[3],n=S=m[4],r=E=m[5],6===m.length?(o=Math.sqrt(_*_+x*x),a=Math.sqrt(k*k+w*w),l=_||x?Js(x,_)*Zs:0,(u=w||k?Js(w,k)*Zs+l:0)&&(a*=Math.cos(u*Qs)),i.svg&&(n-=p-(p*_+g*w),r-=g-(p*x+g*k))):(z=m[6],T=m[7],O=m[8],D=m[9],P=m[10],L=m[11],n=m[12],r=m[13],s=m[14],c=(v=Js(z,P))*Zs,v&&(M=S*(b=Math.cos(-v))+O*(y=Math.sin(-v)),A=E*b+D*y,C=z*b+P*y,O=S*-y+O*b,D=E*-y+D*b,P=z*-y+P*b,L=T*-y+L*b,S=M,E=A,z=C),h=(v=Js(-w,P))*Zs,v&&(b=Math.cos(-v),L=k*(y=Math.sin(-v))+L*b,_=M=_*b-O*y,x=A=x*b-D*y,w=C=w*b-P*y),l=(v=Js(x,_))*Zs,v&&(M=_*(b=Math.cos(v))+x*(y=Math.sin(v)),A=S*b+E*y,x=x*b-_*y,E=E*b-S*y,_=M,S=A),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,h=180-h),o=Xn(Math.sqrt(_*_+x*x+w*w)),a=Xn(Math.sqrt(E*E+z*z)),v=Js(S,E),u=Math.abs(v)>2e-4?v*Zs:0,f=L?1/(L<0?-L:L):0),i.svg&&(M=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!jo(_o(t,vo)),M&&t.setAttribute("transform",M))),Math.abs(u)>90&&Math.abs(u)<270&&(R?(o*=-1,u+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,u+=u<=0?180:-180)),i.x=((i.xPercent=n&&Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)?0:n)+F,i.y=((i.yPercent=r&&Math.round(t.offsetHeight/2)===Math.round(-r)?-50:0)?0:r)+F,i.z=s+F,i.scaleX=Xn(o),i.scaleY=Xn(a),i.rotation=Xn(l)+N,i.rotationX=Xn(c)+N,i.rotationY=Xn(h)+N,i.skewX=u+N,i.skewY=d+N,i.transformPerspective=f+F,(i.zOrigin=parseFloat(j.split(" ")[2])||0)&&(I[bo]=$o(j)),i.xOffset=i.yOffset=0,i.force3D=nn.force3D,i.renderTransform=i.svg?Zo:Gs?Ko:Uo,i.uncache=0,i},$o=function(t){return(t=t.split(" "))[0]+" "+t[1]},qo=function(t,e,i){var n=Ar(e);return Xn(parseFloat(e)+parseFloat(Po(t,"x",i+"px",n)))+n},Uo=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Ko(t,e)},Yo="0deg",Xo="0px",Go=") ",Ko=function(t,e){var i=e||this,n=i.xPercent,r=i.yPercent,s=i.x,o=i.y,a=i.z,l=i.rotation,c=i.rotationY,h=i.rotationX,u=i.skewX,d=i.skewY,f=i.scaleX,p=i.scaleY,g=i.transformPerspective,m=i.force3D,v=i.target,b=i.zOrigin,y="",_="auto"===m&&t&&1!==t||!0===m;if(b&&(h!==Yo||c!==Yo)){var x,w=parseFloat(c)*Qs,k=Math.sin(w),S=Math.cos(w);w=parseFloat(h)*Qs,x=Math.cos(w),s=qo(v,s,k*x*-b),o=qo(v,o,-Math.sin(w)*-b),a=qo(v,a,S*x*-b+b)}g!==Xo&&(y+="perspective("+g+Go),(n||r)&&(y+="translate("+n+"%, "+r+"%) "),(_||s!==Xo||o!==Xo||a!==Xo)&&(y+=a!==Xo||_?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+Go),l!==Yo&&(y+="rotate("+l+Go),c!==Yo&&(y+="rotateY("+c+Go),h!==Yo&&(y+="rotateX("+h+Go),u===Yo&&d===Yo||(y+="skew("+u+", "+d+Go),1===f&&1===p||(y+="scale("+f+", "+p+Go),v.style[vo]=y||"translate(0, 0)"},Zo=function(t,e){var i,n,r,s,o,a=e||this,l=a.xPercent,c=a.yPercent,h=a.x,u=a.y,d=a.rotation,f=a.skewX,p=a.skewY,g=a.scaleX,m=a.scaleY,v=a.target,b=a.xOrigin,y=a.yOrigin,_=a.xOffset,x=a.yOffset,w=a.forceCSS,k=parseFloat(h),S=parseFloat(u);d=parseFloat(d),f=parseFloat(f),(p=parseFloat(p))&&(f+=p=parseFloat(p),d+=p),d||f?(d*=Qs,f*=Qs,i=Math.cos(d)*g,n=Math.sin(d)*g,r=Math.sin(d-f)*-m,s=Math.cos(d-f)*m,f&&(p*=Qs,o=Math.tan(f-p),r*=o=Math.sqrt(1+o*o),s*=o,p&&(o=Math.tan(p),i*=o=Math.sqrt(1+o*o),n*=o)),i=Xn(i),n=Xn(n),r=Xn(r),s=Xn(s)):(i=g,s=m,n=r=0),(k&&!~(h+"").indexOf("px")||S&&!~(u+"").indexOf("px"))&&(k=Po(v,"x",h,"px"),S=Po(v,"y",u,"px")),(b||y||_||x)&&(k=Xn(k+b-(b*i+y*r)+_),S=Xn(S+y-(b*n+y*s)+x)),(l||c)&&(o=v.getBBox(),k=Xn(k+l/100*o.width),S=Xn(S+c/100*o.height)),o="matrix("+i+","+n+","+r+","+s+","+k+","+S+")",v.setAttribute("transform",o),w&&(v.style[vo]=o)},Qo=function(t,e,i,n,r,s){var o,a,l=360,c=fn(r),h=parseFloat(r)*(c&&~r.indexOf("rad")?Zs:1),u=s?h*s:h-n,d=n+u+"deg";return c&&("short"===(o=r.split("_")[1])&&(u%=l)!==u%180&&(u+=u<0?l:-360),"cw"===o&&u<0?u=(u+36e9)%l-~~(u/l)*l:"ccw"===o&&u>0&&(u=(u-36e9)%l-~~(u/l)*l)),t._pt=a=new Fs(t._pt,e,i,n,u,so),a.e=d,a.u="deg",t._props.push(i),a}
2,Jo=function(t,e,i){var n,r,s,o,a,l,c,h=Ys.style,u=i._gsap;for(r in h.cssText=getComputedStyle(i).cssText+";position:absolute;display:block;",h[vo]=e,Hs.body.appendChild(Ys),n=Ho(Ys,1),Ks)(s=u[r])!==(o=n[r])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(r)<0&&(a=Ar(s)!==(c=Ar(o))?Po(i,r,s,c):parseFloat(s),l=parseFloat(o),t._pt=new Fs(t._pt,u,r,a,l-a,ro),t._pt.u=c||0,t._props.push(r));Hs.body.removeChild(Ys)};Yn("padding,margin,Width,Radius",(function(t,e){var i="Top",n="Right",r="Bottom",s="Left",o=(e<3?[i,n,r,s]:[i+s,i+n,r+n,r+s]).map((function(i){return e<2?t+i:"border"+i+t}));Ro[e>1?"border"+t:t]=function(t,e,i,n,r){var s,a;if(arguments.length<4)return s=o.map((function(e){return To(t,e,i)})),5===(a=s.join(" ")).split(s[0]).length?s[0]:a;s=(n+"").split(" "),a={},o.forEach((function(t,e){return a[t]=s[e]=s[e]||s[(e-1)/2|0]})),t.init(e,a,r)}}));var ta,ea,ia,na={name:"css",register:ko,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,n,r){var s,o,a,l,c,h,u,d,f,p,g,m,v,b,y,_,x,w,k,S=this._props,E=t.style;for(u in qs||ko(),e)if("autoRound"!==u&&(o=e[u],!jn[u]||!bs(u,e,i,n,t,r)))if(c=typeof o,h=Ro[u],"function"===c&&(c=typeof(o=o.call(i,n,t,r))),"string"===c&&~o.indexOf("random(")&&(o=Nr(o)),h)h(this,t,u,o,i)&&(y=1);else if("--"===u.substr(0,2))this.add(E,"setProperty",getComputedStyle(t).getPropertyValue(u)+"",o+"",n,r,0,0,u);else{if(s=To(t,u),l=parseFloat(s),(p="string"===c&&"="===o.charAt(1)?+(o.charAt(0)+"1"):0)&&(o=o.substr(2)),a=parseFloat(o),u in no&&("autoAlpha"===u&&(1===l&&"hidden"===To(t,"visibility")&&a&&(l=0),Oo(this,E,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==u&&"transform"!==u&&~(u=no[u]).indexOf(",")&&(u=u.split(",")[0])),g=u in Ks)if(m||((v=t._gsap).renderTransform||Ho(t),b=!1!==e.smoothOrigin&&v.smooth,(m=this._pt=new Fs(this._pt,E,vo,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===u)this._pt=new Fs(this._pt,v,"scaleY",v.scaleY,p?p*a:a-v.scaleY),S.push("scaleY",u),u+="X";else{if("transformOrigin"===u){x=void 0,w=void 0,k=void 0,x=(_=o).split(" "),w=x[0],k=x[1]||"50%","top"!==w&&"bottom"!==w&&"left"!==k&&"right"!==k||(_=w,w=k,k=_),x[0]=zo[w]||w,x[1]=zo[k]||k,o=x.join(" "),v.svg?Wo(t,o,0,b,0,this):((f=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&Oo(this,v,"zOrigin",v.zOrigin,f),Oo(this,E,u,$o(s),$o(o)));continue}if("svgOrigin"===u){Wo(t,o,1,b,0,this);continue}if(u in No){Qo(this,v,u,l,o,p);continue}if("smoothOrigin"===u){Oo(this,v,"smooth",v.smooth,o);continue}if("force3D"===u){v[u]=o;continue}if("transform"===u){Jo(this,o,t);continue}}else u in E||(u=wo(u)||u);if(g||(a||0===a)&&(l||0===l)&&!io.test(o)&&u in E)a||(a=0),(d=(s+"").substr((l+"").length))!==(f=(o+"").substr((a+"").length)||(u in nn.units?nn.units[u]:d))&&(l=Po(t,u,s,f)),this._pt=new Fs(this._pt,g?v:E,u,l,p?p*a:a-l,"px"!==f||!1===e.autoRound||g?ro:ao),this._pt.u=f||0,d!==f&&(this._pt.b=s,this._pt.r=oo);else if(u in E)Lo.call(this,t,u,s,o);else{if(!(u in t)){Tn(u,o);continue}this.add(t,u,t[u],o,n,r)}S.push(u)}y&&Rs(this)},get:To,aliases:no,getSetter:function(t,e,i){var n=no[e];return n&&n.indexOf(",")<0&&(e=n),e in Ks&&e!==bo&&(t._gsap.x||To(t,"x"))?i&&Xs===i?"scale"===e?po:fo:(Xs=i||{})&&("scale"===e?go:mo):t.style&&!mn(t.style[e])?ho:~e.indexOf("-")?uo:Cs(t,e)},core:{_removeProperty:Co,_getMatrix:Vo}};Vs.utils.checkPrefix=wo,ia=Yn((ta="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(ea="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Ks[t]=1})),Yn(ea,(function(t){nn.units[t]="deg",No[t]=1})),no[ia[13]]=ta+","+ea,Yn("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");no[e[1]]=ia[e[0]]})),Yn("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){nn.units[t]="px"})),Vs.registerPlugin(na);var ra=Vs.registerPlugin(na)||Vs,sa=(ra.core.Tween,{cache:new Map,isFetching:!1,fetchController:null,init:function(t,e,i){if(!sa.isFetching){sa.isFetching=!0,t.isAjaxLoading=!0,t.prevUrl=history.state?history.state.previousUrl:"";var n=sa.cache.has(i);t.elementsToAnimate=t.filterContainer,t.animateOpacity=ra.to(t.elementsToAnimate,{opacity:0,duration:.25,ease:"sine.inOut"}),sa.initFilter(t,e,i,n)}}
2,initFilter:function(t,e,i,n){var r=document.querySelector("[data-filters]");r&&(t.filtersNav=r),sa.fetch(t,i,n)},fetch:function(t){function e(e,i,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e,i){if(i)return sa.updatePageContent(t,sa.cache.get(e),i),void(sa.isFetching=!1);sa.fetchController&&sa.fetchController.abort(),sa.fetchController=new AbortController,fetch(e,{headers:{"X-Requested-With":"XMLHttpRequest"},signal:sa.fetchController.signal}).then((function(t){if(!t.ok)throw new Error("Network response was not ok");return t.text()})).then((function(n){var r=(new DOMParser).parseFromString(n,"text/html"),s=r.querySelector("[data-meta]"),o=r.querySelector("[data-content]");if(s&&o){var a={meta:{title:s.getAttribute("data-title")},content:o.innerHTML};sa.cache.set(e,a),sa.updatePageContent(t,a,i)}})).catch((function(t){"AbortError"===t.name?console.log("Fetch aborted"):console.warn("Something went wrong.",t)})).finally((function(){sa.isFetching=!1,sa.fetchController&&(sa.fetchController=null)}))})),updatePageContent:function(t,e,i){if(e&&e.meta){var n=e.meta.title,r=e.content;document.title=n,t.animateOpacity&&t.animateOpacity.kill();var s=(new DOMParser).parseFromString(e.content,"text/html"),o=s.querySelector("[data-filter-content]"),a=s.querySelector("[data-filters]"),l=s.querySelector("[data-period-tabs]");if(t.filterContainer=document.querySelector("[data-filter-content]"),o&&(r=o.innerHTML),a&&(t.filtersNav.innerHTML=a.innerHTML),l){var c=document.querySelector("[data-period-tabs]");c&&(c.innerHTML=l.innerHTML)}r&&(t.filterContainer.innerHTML=r),ra.fromTo("[data-filter-content]",{opacity:0},{opacity:1,duration:.35,ease:"sine.inOut"}),t.changedPage=!0,t.isAjaxLoading=!1}else console.error("Invalid data received:",e)}});const oa=sa;var aa=i(59),la=i.n(aa);const ca={init:function(t){var e=document.querySelectorAll("video.lazy");e.length&&la()(e).observe();var i=document.querySelectorAll('img[fetchpriority="high"]'),n=document.querySelectorAll('video[fetchpriority="high"]');n.length&&n.forEach((function(t){t.classList.add("is-fetched")})),i.length&&i.forEach((function(t){t.complete?t.classList.add("is-fetched"):t.addEventListener("load",(function(){t.classList.add("is-fetched")}))}))}};const ha={init:function(t){document.querySelectorAll("[data-expand-outer]").forEach((function(t){var e=t.querySelector("[data-expand-button]"),i=t.querySelector("[data-gradient]"),n=t.querySelector("[data-expand-wrapper]"),r=t.querySelector("[data-expand-inner]");if(e&&i&&n&&r){var s=Math.abs(n.clientHeight-r.clientHeight),o=(Math.max(.2,s/1e3),r.clientHeight),a=n.clientHeight;o<=a?(e.remove(),i.remove()):(e.setAttribute("aria-expanded","false"),ra.set(n,{height:a,maxHeight:"100%"}),e.addEventListener("click",(function(){ra.to(n,{duration:.45,height:r.clientHeight,ease:"power1.inOut",onComplete:function(){ra.set(n,{height:"auto"}),ra.set([e,i],{display:"none"}),e.setAttribute("aria-expanded","true")}}),ra.to([e,i],{duration:.15,autoAlpha:0,ease:"sine.out"})})))}}))}};var ua=function(){return(ua=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},da=function(){function t(t,e,i){var n=this;this.endVal=e,this.options=i,this.version="2.3.2",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(t){n.startTime||(n.startTime=t);var e=t-n.startTime;n.remaining=n.duration-e,n.useEasing?n.countDown?n.frameVal=n.startVal-n.easingFn(e,0,n.startVal-n.endVal,n.duration):n.frameVal=n.easingFn(e,n.startVal,n.endVal-n.startVal,n.duration):n.frameVal=n.startVal+(n.endVal-n.startVal)*(e/n.duration);var i=n.countDown?n.frameVal<n.endVal:n.frameVal>n.endVal;n.frameVal=i?n.endVal:n.frameVal,n.frameVal=Number(n.frameVal.toFixed(n.options.decimalPlaces)),n.printValue(n.frameVal),e<n.duration?n.rAF=requestAnimationFrame(n.count):null!==n.finalEndVal?n.update(n.finalEndVal):n.callback&&n.callback()},this.formatNumber=function(t){var e,i,r,s,o=t<0?"-":"";e=Math.abs(t).toFixed(n.options.decimalPlaces);var a=(e+="").split(".");if(i=a[0],r=a.length>1?n.options.decimal+a[1]:"",n.options.useGrouping){s="";for(var l=0,c=i.length;l<c;++l)0!==l&&l%3==0&&(s=n.options.separator+s),s=i[c-l-1]+s;i=s}return n.options.numerals&&n.options.numerals.length&&(i=i.replace(/[0-9]/g,(function(t){return n.options.numerals[+t]})),r=r.replace(/[0-9]/g,(function(t){return n.options.numerals[+t]}))),o+n.options.prefix+i+r+n.options.suffix}
2,this.easeOutExpo=function(t,e,i,n){return i*(1-Math.pow(2,-10*t/n))*1024/1023+e},this.options=ua(ua({},this.defaults),i),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(e),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof t?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.enableScrollSpy&&(this.error?console.error(this.error,t):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push((function(){return n.handleScroll(n)})),window.onscroll=function(){window.onScrollFns.forEach((function(t){return t()}))},this.handleScroll(this)))}return t.prototype.handleScroll=function(t){if(t&&window&&!t.once){var e=window.innerHeight+window.scrollY,i=t.el.getBoundingClientRect(),n=i.top+i.height+window.pageYOffset;n<e&&n>window.scrollY&&t.paused?(t.paused=!1,setTimeout((function(){return t.start()}),t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):window.scrollY>n&&!t.paused&&t.reset()}},t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var i=this.countDown?1:-1;this.endVal=t+i*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.callback=t,this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var e=this.formattingFn(t);"INPUT"===this.el.tagName?this.el.value=e:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=e:this.el.innerHTML=e},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}();const fa={init:function(t){var e=document.getElementsByClassName("factCount"),i=document.getElementsByClassName("report-stat");e.length>0&&Array.from(e).forEach((function(t){var e,i=t.textContent.replace(/\D/g,""),n=t.textContent.replace(/[0-9]/g,""),r='<span class="inline">'.concat(n,"</span>");""!==i&&(e=Number(i),new da(t,e,{enableScrollSpy:!0,suffix:r,separator:"."}).start())})),i.length>0&&Array.from(i).forEach((function(t){var e,i=t.textContent.replace(/\D/g,""),n=t.dataset.suffix;""!==i&&(e=Number(i),new da(t,e,{enableScrollSpy:!0,suffix:n,separator:"."}).start())}))}};var pa={init:function(t){pa.setVars(),pa.vars.btn.addEventListener("click",(function(e){e.preventDefault(),pa.vars.isAnimating||(pa.vars.isAnimating=!0,pa.vars.isOpen?pa.close(t):pa.open(t))}))},setVars:function(){pa.vars={isOpen:!1,isAnimating:!1,btn:document.getElementById("menu-btn"),target:document.getElementById("main-menu"),text:document.getElementById("menu-btn-text"),bars:{top:document.querySelector("[data-hamburger-bar='top']"),bottom:document.querySelector("[data-hamburger-bar='bottom']"),centerNeg:document.querySelector("[data-hamburger-bar='negative']"),centerPos:document.querySelector("[data-hamburger-bar='positive']")}}},open:function(t){pa.vars.isOpen=!0,t.body.classList.add("overflow-hidden"),pa.vars.btn.setAttribute("aria-expanded","true"),pa.vars.text.innerText="Lukk meny",ra.set(pa.vars.target,{display:"block"}),t.prefersReducedMotion?ra.set("[data-menu-wrapper]",{opacity:1,y:0}):(ra.fromTo("[data-menu-wrapper]",{y:30},{y:0,ease:"expo.out",duration:.65}),ra.fromTo("[data-menu-wrapper]",{opacity:0}
2,{opacity:1,ease:"sine.out",duration:.4})),ra.to(pa.vars.target,{duration:t.prefersReducedMotion?.1:.19,autoAlpha:1,ease:"sine.out",onComplete:function(){var t=pa.vars.target.querySelector("input[type=search]");t&&t.focus();var e=pa.vars.target.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),i=e[0],n=e[e.length-1],r=function(t){"Tab"!==t.key&&9!==t.keyCode||(t.shiftKey?document.activeElement===i&&(n.focus(),t.preventDefault()):document.activeElement===n&&(i.focus(),t.preventDefault()))};document.addEventListener("keydown",r),pa.vars.trapFocus=r}}),ra.to([pa.vars.bars.top,pa.vars.bars.bottom],{duration:.15,yPercent:-50,top:"50%",ease:"sine.out",onComplete:function(){ra.set([pa.vars.bars.top,pa.vars.bars.bottom],{opacity:0}),ra.set([pa.vars.bars.centerPos,pa.vars.bars.centerNeg],{opacity:1}),ra.to(pa.vars.bars.centerPos,{duration:.2,rotationZ:45,ease:"circ.out"}),ra.to(pa.vars.bars.centerNeg,{duration:.2,rotationZ:-45,ease:"circ.out",onComplete:function(){pa.vars.isAnimating=!1}})}})},close:function(t){pa.vars.isOpen=!1,t.body.classList.remove("overflow-hidden"),pa.vars.btn.setAttribute("aria-expanded","false"),pa.vars.text.innerText="Meny",ra.to(pa.vars.target,{duration:.19,autoAlpha:0,ease:"sine.out",onComplete:function(){pa.vars.btn.focus(),ra.set(pa.vars.target,{display:"none"}),document.removeEventListener("keydown",pa.vars.trapFocus)}}),ra.to([pa.vars.bars.centerPos,pa.vars.bars.centerNeg],{duration:.2,rotationZ:0,ease:"circ.out",onComplete:function(){ra.set(pa.vars.bars.centerNeg,{opacity:0}),ra.set([pa.vars.bars.top,pa.vars.bars.bottom],{opacity:1}),ra.to(pa.vars.bars.top,{duration:.15,yPercent:0,top:0,ease:"sine.out"}),ra.to(pa.vars.bars.bottom,{duration:.15,yPercent:0,top:"auto",bottom:0,ease:"sine.out",onComplete:function(){pa.vars.isAnimating=!1}})}})}};const ga=pa;var ma={init:function(t){document.querySelectorAll(".comp--readMore").forEach((function(t,e){var i=t.querySelector("[data-btn]"),n=t.querySelector("[data-shadow]"),r=t.querySelector("[data-inner]");if(i&&n&&r){var s="readMoreContent-".concat(e);r.setAttribute("id",s),i.setAttribute("aria-controls",s),i.setAttribute("aria-expanded","false"),i.setAttribute("data-open","false");var o=getComputedStyle(r).maxHeight;if("none"!==o){if(o.includes("rem")){var a=parseFloat(getComputedStyle(document.documentElement).fontSize);o=parseFloat(o)*a}else o.includes("px")&&(o=parseFloat(o));r.scrollHeight<=o&&(n.style.display="none",i.style.display="none"),i.addEventListener("click",(function(t){t.preventDefault(),l()})),i.addEventListener("keydown",(function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),l())}))}}function l(){"true"===i.getAttribute("data-open")?(ra.to(r,{maxHeight:o,duration:.5,ease:"quint.out"}),ra.to(n,{duration:.25,ease:"sine.out",autoAlpha:1,overwrite:!0}),n.style.display="",i.textContent="+ Les mer",i.setAttribute("aria-expanded","false"),i.setAttribute("data-open","false")):(ra.to(r,{maxHeight:r.scrollHeight,duration:.5,ease:"quint.out"}),ra.to(n,{duration:.5,ease:"sine.out",autoAlpha:0,onComplete:function(){n.style.display="none"}}),i.textContent="Lukk",i.setAttribute("aria-expanded","true"),i.setAttribute("data-open","true"))}}))}};const va=ma;var ba,ya,_a,xa,wa,ka,Sa,Ea=function(){return"undefined"!=typeof window},Ma=function(){return ba||Ea()&&(ba=window.gsap)&&ba.registerPlugin&&ba},Aa=function(t){return"string"==typeof t},Ca=function(t,e){var i="x"===e?"Width":"Height",n="scroll"+i,r="client"+i;return t===_a||t===xa||t===wa?Math.max(xa[n],wa[n])-(_a["inner"+i]||xa[r]||wa[r]):t[n]-t["offset"+i]},Oa=function(t,e){var i="scroll"+("x"===e?"Left":"Top");return t===_a&&(null!=t.pageXOffset?i="page"+e.toUpperCase()+"Offset":t=null!=xa[i]?xa:wa),function(){return t[i]}},Da=function(t,e){var i=ka(t)[0].getBoundingClientRect(),n=!e||e===_a||e===wa,r=n?{top:xa.clientTop-(_a.pageYOffset||xa.scrollTop||wa.scrollTop||0),left:xa.clientLeft-(_a.pageXOffset||xa.scrollLeft||wa.scrollLeft||0)}:e.getBoundingClientRect(),s={x:i.left-r.left,y:i.top-r.top};return!n&&e&&(s.x+=Oa(e,"x")(),s.y+=Oa(e,"y")()),s}
2,Pa=function(t,e,i,n){return isNaN(t)||"object"==typeof t?Aa(t)&&"="===t.charAt(1)?parseFloat(t.substr(2))*("-"===t.charAt(0)?-1:1)+n:"max"===t?Ca(e,i):Math.min(Ca(e,i),Da(t,e)[i]):parseFloat(t)},Ta=function(){ba=Ma(),Ea()&&ba&&document.body&&(_a=window,wa=document.body,xa=document.documentElement,ka=ba.utils.toArray,ba.config({autoKillThreshold:7}),Sa=ba.config(),ya=1)},La={version:"3.4.2",name:"scrollTo",rawVars:1,register:function(t){ba=t,Ta()},init:function(t,e,i,n,r){ya||Ta();var s=this;s.isWin=t===_a,s.target=t,s.tween=i,"object"!=typeof e?Aa((e={y:e}).y)&&"max"!==e.y&&"="!==e.y.charAt(1)&&(e.x=e.y):e.nodeType&&(e={y:e,x:e}),s.vars=e,s.autoKill=!!e.autoKill,s.getX=Oa(t,"x"),s.getY=Oa(t,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),null!=e.x?(s.add(s,"x",s.x,Pa(e.x,t,"x",s.x)-(e.offsetX||0),n,r,Math.round),s._props.push("scrollTo_x")):s.skipX=1,null!=e.y?(s.add(s,"y",s.y,Pa(e.y,t,"y",s.y)-(e.offsetY||0),n,r,Math.round),s._props.push("scrollTo_y")):s.skipY=1},render:function(t,e){for(var i,n,r,s,o,a=e._pt,l=e.target,c=e.tween,h=e.autoKill,u=e.xPrev,d=e.yPrev,f=e.isWin;a;)a.r(t,a.d),a=a._next;i=f||!e.skipX?e.getX():u,r=(n=f||!e.skipY?e.getY():d)-d,s=i-u,o=Sa.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),h&&(!e.skipX&&(s>o||s<-o)&&i<Ca(l,"x")&&(e.skipX=1),!e.skipY&&(r>o||r<-o)&&n<Ca(l,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(c.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(c,e.vars.onAutoKillParams||[]))),f?_a.scrollTo(e.skipX?i:e.x,e.skipY?n:e.y):(e.skipY||(l.scrollTop=e.y),e.skipX||(l.scrollLeft=e.x)),e.xPrev=e.x,e.yPrev=e.y},kill:function(t){var e="scrollTo"===t;(e||"scrollTo_x"===t)&&(this.skipX=1),(e||"scrollTo_y"===t)&&(this.skipY=1)}};La.max=Ca,La.getOffset=Da,La.buildGetter=Oa,Ma()&&ba.registerPlugin(La),ra.registerPlugin(La);const za={init:function(t){var e=document.querySelectorAll("a[data-scrollto]");e.length>0&&e.forEach((function(t){t.addEventListener("click",(function(e){e.preventDefault();var i=t.getAttribute("href"),n=document.querySelector(i);if(n){var r=window.scrollY+n.getBoundingClientRect().top-40;ra.to(window,{scrollTo:{y:r,autoKill:!0},duration:.8,ease:"quart.inOut"})}else console.error("Target element not found:",i)}))}))}};function Ia(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ra(t){return t instanceof Ia(t).Element||t instanceof Element}function Fa(t){return t instanceof Ia(t).HTMLElement||t instanceof HTMLElement}function Na(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Ia(t).ShadowRoot||t instanceof ShadowRoot)}var ja=Math.max,Ba=Math.min,Va=Math.round;function Wa(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function Ha(){return!/^((?!chrome|android).)*safari/i.test(Wa())}function $a(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),r=1,s=1;e&&Fa(t)&&(r=t.offsetWidth>0&&Va(n.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Va(n.height)/t.offsetHeight||1);var o=(Ra(t)?Ia(t):window).visualViewport,a=!Ha()&&i,l=(n.left+(a&&o?o.offsetLeft:0))/r,c=(n.top+(a&&o?o.offsetTop:0))/s,h=n.width/r,u=n.height/s;return{width:h,height:u,top:c,right:l+h,bottom:c+u,left:l,x:l,y:c}}function qa(t){var e=Ia(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ua(t){return t?(t.nodeName||"").toLowerCase():null}function Ya(t){return((Ra(t)?t.ownerDocument:t.document)||window.document).documentElement}function Xa(t){return $a(Ya(t)).left+qa(t).scrollLeft}function Ga(t){return Ia(t).getComputedStyle(t)}function Ka(t){var e=Ga(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function Za(t,e,i){void 0===i&&(i=!1);var n,r,s=Fa(e),o=Fa(e)&&function(t){var e=t.getBoundingClientRect(),i=Va(e.width)/t.offsetWidth||1,n=Va(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=Ya(e),l=$a(t,o,i),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(s||!s&&!i)&&(("body"!==Ua(e)||Ka(a))&&(c=(n=e)!==Ia(n)&&Fa(n)?{scrollLeft:(r=n).scrollLeft,scrollTop:r.scrollTop}:qa(n)),Fa(e)?((h=$a(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=Xa(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function Qa(t){var e=$a(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Ja(t){return"html"===Ua(t)?t:t.assignedSlot||t.parentNode||(Na(t)?t.host:null)||Ya(t)}function tl(t){return["html","body","#document"].indexOf(Ua(t))>=0?t.ownerDocument.body:Fa(t)&&Ka(t)?t:tl(Ja(t))}function el(t,e){var i;void 0===e&&(e=[]);var n=tl(t),r=n===(null==(i=t.ownerDocument)?void 0:i.body),s=Ia(n),o=r?[s].concat(s.visualVie
vendor: 4,126 bytes, line 2
2wport||[],Ka(n)?n:[]):n,a=e.concat(o);return r?a:a.concat(el(Ja(o)))}function il(t){return["table","td","th"].indexOf(Ua(t))>=0}function nl(t){return Fa(t)&&"fixed"!==Ga(t).position?t.offsetParent:null}function rl(t){for(var e=Ia(t),i=nl(t);i&&il(i)&&"static"===Ga(i).position;)i=nl(i);return i&&("html"===Ua(i)||"body"===Ua(i)&&"static"===Ga(i).position)?e:i||function(t){var e=/firefox/i.test(Wa());if(/Trident/i.test(Wa())&&Fa(t)&&"fixed"===Ga(t).position)return null;var i=Ja(t);for(Na(i)&&(i=i.host);Fa(i)&&["html","body"].indexOf(Ua(i))<0;){var n=Ga(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}var sl="top",ol="bottom",al="right",ll="left",cl="auto",hl=[sl,ol,al,ll],ul="start",dl="end",fl="viewport",pl="popper",gl=hl.reduce((function(t,e){return t.concat([e+"-"+ul,e+"-"+dl])}),[]),ml=[].concat(hl,[cl]).reduce((function(t,e){return t.concat([e,e+"-"+ul,e+"-"+dl])}),[]),vl=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function bl(t){var e=new Map,i=new Set,n=[];function r(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&r(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||r(t)})),n}var yl={placement:"bottom",modifiers:[],strategy:"absolute"};function _l(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function xl(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,r=e.defaultOptions,s=void 0===r?yl:r;return function(t,e,i){void 0===i&&(i=s);var r,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},yl,s),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,h={state:a,setOptions:function(i){var r="function"==typeof i?i(a.options):i;u(),a.options=Object.assign({},s,a.options,r),a.scrollParents={reference:Ra(t)?el(t):t.contextElement?el(t.contextElement):[],popper:el(e)};var o=function(t){var e=bl(t);return vl.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}(function(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(n,a.options.modifiers)));return a.orderedModifiers=o.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,r=t.effect;if("function"==typeof r){var s=r({state:a,name:e,instance:h,options:n}),o=function(){};l.push(s||o)}})),h.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(_l(e,i)){a.rects={reference:Za(e,rl(i),"fixed"===a.options.strategy),popper:Qa(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var r=a.orderedModifiers[n],s=r.fn,o=r.options,l=void 0===o?{}:o,u=r.name;"function"==typeof s&&(a=s({state:a,options:l,name:u,instance:h})||a)}else a.reset=!1,n=-1}}},update:(r=function(){return new Promise((function(t){h.forceUpdate(),t(a)}))},function(){return o||(o=new Promise((function(t){Promise.resolve().then((function(){o=void 0,t(r())}))}))),o}),destroy:function(){u(),c=!0}};if(!_l(t,e))return h;function u(){l.forEach((function(t){return t()})),l=[]}return h.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),h}}var wl={passive:!0};const kl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,r=n.scroll,s=void 0===r||r,o=n.resize,a=void 0===o||o,l=Ia(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);
vendor: 12,710 bytes, line 2
2return s&&c.forEach((function(t){t.addEventListener("scroll",i.update,wl)})),a&&l.addEventListener("resize",i.update,wl),function(){s&&c.forEach((function(t){t.removeEventListener("scroll",i.update,wl)})),a&&l.removeEventListener("resize",i.update,wl)}},data:{}};function Sl(t){return t.split("-")[0]}function El(t){return t.split("-")[1]}function Ml(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Al(t){var e,i=t.reference,n=t.element,r=t.placement,s=r?Sl(r):null,o=r?El(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(s){case sl:e={x:a,y:i.y-n.height};break;case ol:e={x:a,y:i.y+i.height};break;case al:e={x:i.x+i.width,y:l};break;case ll:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=s?Ml(s):null;if(null!=c){var h="y"===c?"height":"width";switch(o){case ul:e[c]=e[c]-(i[h]/2-n[h]/2);break;case dl:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}var Cl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ol(t){var e,i=t.popper,n=t.popperRect,r=t.placement,s=t.variation,o=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,u=t.isFixed,d=o.x,f=void 0===d?0:d,p=o.y,g=void 0===p?0:p,m="function"==typeof h?h({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var v=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),y=ll,_=sl,x=window;if(c){var w=rl(i),k="clientHeight",S="clientWidth";if(w===Ia(i)&&"static"!==Ga(w=Ya(i)).position&&"absolute"===a&&(k="scrollHeight",S="scrollWidth"),r===sl||(r===ll||r===al)&&s===dl)_=ol,g-=(u&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-n.height,g*=l?1:-1;if(r===ll||(r===sl||r===ol)&&s===dl)y=al,f-=(u&&w===x&&x.visualViewport?x.visualViewport.width:w[S])-n.width,f*=l?1:-1}var E,M=Object.assign({position:a},c&&Cl),A=!0===h?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Va(e*n)/n||0,y:Va(i*n)/n||0}}({x:f,y:g}):{x:f,y:g};return f=A.x,g=A.y,l?Object.assign({},M,((E={})[_]=b?"0":"",E[y]=v?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",E)):Object.assign({},M,((e={})[_]=b?g+"px":"",e[y]=v?f+"px":"",e.transform="",e))}const Dl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,r=void 0===n||n,s=i.adaptive,o=void 0===s||s,a=i.roundOffsets,l=void 0===a||a,c={placement:Sl(e.placement),variation:El(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Ol(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ol(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};const Pl={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},r=e.elements[t];Fa(r)&&Ua(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],r=e.attributes[t]||{},s=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});Fa(n)&&Ua(n)&&(Object.assign(n.style,s),Object.keys(r).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};const Tl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,r=i.offset,s=void 0===r?[0,0]:r,o=ml.reduce((function(t,i){return t[i]=function(t,e,i){var n=Sl(t),r=[ll,sl].indexOf(n)>=0?-1:1,s="function"==typeof i?i(Object.assign({},e,{placement:t})):i,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[ll,al].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}(i,e.rects,s),t}),{}),a=o[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=o}};var Ll={left:"right",right:"left",bottom:"top",top:"bottom"};function zl(t){return t.replace(/left|right|bottom|top/g,(function(t){return Ll[t]}))}var Il={start:"end",end:"start"};function Rl(t){return t.replace(/start|end/g,(function(t){return Il[t]}))}function Fl(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Na(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Nl(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function jl(t,e,i){return e===fl?Nl(function(t,e){var i=Ia(t),n=Ya(t),r=i.visualViewport,s=n.clientWidth,o=n.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;var c=Ha();(c||!c&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:o,x:a+Xa(t),y:l}}(t,i)):Ra(e)?function(t,e){var i=$a(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):Nl(function(t){var e,i=Ya(t),n=qa(t),r=null==(e=t.ownerDocument)?void 0:e.body,s=ja(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=ja(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+Xa(t),l=-n.scrollTop;return"rtl"===Ga(r||i).direction&&(a+=ja(i.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}(Ya(t)))}function Bl(t,e,i,n){var r="clippingParents"===e?function(t){var e=el(Ja(t)),i=["absolute","fixed"].indexOf(Ga(t).position)>=0&&Fa(t)?rl(t):t;return Ra(i)?e.filter((function(t){return Ra(t)&&Fl(t,i)&&"body"!==Ua(t)})):[]}(t):[].concat(e),s=[].concat(r,[i]),o=s[0],a=s.reduce((function(e,i){var r=jl(t,i,n);return e.top=ja(r.top,e.top),e.right=Ba(r.right,e.right),e.bottom=Ba(r.bottom,e.bottom),e.left=ja(r.left,e.left),e}),jl(t,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Vl(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Wl(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function Hl(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=void 0===n?t.placement:n,s=i.strategy,o=void 0===s?t.strategy:s,a=i.boundary,l=void 0===a?"clippingParents":a,c=i.rootBoundary,h=void 0===c?fl:c,u=i.elementContext,d=void 0===u?pl:u,f=i.altBoundary,p=void 0!==f&&f,g=i.padding,m=void 0===g?0:g,v=Vl("number"!=typeof m?m:Wl(m,hl)),b=d===pl?"reference":pl,y=t.rects.popper,_=t.elements[p?b:d],x=Bl(Ra(_)?_:_.contextElement||Ya(t.elements.popper),l,h,o),w=$a(t.elements.reference),k=Al({reference:w,element:y,strategy:"absolute",placement:r}),S=Nl(Object.assign({},y,k)),E=d===pl?S:w,M={top:x.top-E.top+v.top,bottom:E.bottom-x.bottom+v.bottom,left:x.left-E.left+v.left,right:E.right-x.right+v.right},A=t.modifiersData.offset;if(d===pl&&A){var C=A[r];Object.keys(M).forEach((function(t){var e=[al,ol].indexOf(t)>=0?1:-1,i=[sl,ol].indexOf(t)>=0?"y":"x";M[t]+=C[i]*e}))}return M}const $l={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=i.mainAxis,s=void 0===r||r,o=i.altAxis,a=void 0===o||o,l=i.fallbackPlacements,c=i.padding,h=i.boundary,u=i.rootBoundary,d=i.altBoundary,f=i.flipVariations,p=void 0===f||f,g=i.allowedAutoPlacements,m=e.options.placement,v=Sl(m),b=l||(v===m||!p?[zl(m)]:function(t){if(Sl(t)===cl)return[];var e=zl(t);return[Rl(t),e,Rl(e)]}(m)),y=[m].concat(b).reduce((function(t,i){return t.concat(Sl(i)===cl?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=i.boundary,s=i.rootBoundary,o=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?ml:l,h=El(n),u=h?a?gl:gl.filter((function(t){return El(t)===h})):hl,d=u.filter((function(t){return c.indexOf(t)>=0}));0===d.length&&(d=u);var f=d.reduce((function(e,i){return e[i]=Hl(t,{placement:i,boundary:r,rootBoundary:s,padding:o})[Sl(i)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(e,{placement:i,boundary:h,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:g}):i)}),[]),_=e.rects.reference,x=e.rects.popper,w=new Map,k=!0,S=y[0],E=0;E<y.length;E++){var M=y[E],A=Sl(M),C=El(M)===ul,O=[sl,ol].indexOf(A)>=0,D=O?"width":"height",P=Hl(e,{placement:M,boundary:h,rootBoundary:u,altBoundary:d,padding:c}),T=O?C?al:ll:C?ol:sl;_[D]>x[D]&&(T=zl(T));var L=zl(T),z=[];if(s&&z.push(P[A]<=0),a&&z.push(P[T]<=0,P[L]<=0),z.every((function(t){return t}))){S=M,k=!1;break}w.set(M,z)}if(k)for(var I=function(t){var e=y.find((function(e){var i=w.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return S=e,"break"},R=p?3:1;R>0;R--){if("break"===I(R))break}e.placement!==S&&(e.modifiersData[n]._skip=!0,e.placement=S,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ql(t,e,i){return ja(t,Ba(e,i))}const Ul={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,r=i.mainAxis,s=void 0===r||r,o=i.altAxis,a=void 0!==o&&o,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,u=i.padding,d=i.tether,f=void 0===d||d,p=i.tetherOffset,g=void 0===p?0:p,m=Hl(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:h}),v=Sl(e.placement),b=El(e.placement),y=!b,_=Ml(v),x="x"===_?"y":"x",w=e.modifiersData.popperOffsets,k=e.rects.reference,S=e.rects.popper,E="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,M="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,C={x:0,y:0};if(w){if(s){var O,D="y"===_?sl:ll,P="y"===_?ol:al,T="y"===_?"height":"width",L=w[_],z=L+m[D],I=L-m[P],R=f?-S[T]/2:0,F=b===ul?k[T]:S[T],N=b===ul?-S[T]:-k[T],j=e.elements.arrow,B=f&&j?Qa(j):{width:0,height:0},V=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=V[D],H=V[P],$=ql(0,k[T],B[T]),q=y?k[T]/2-R-$-W-M.mainAxis:F-$-W-M.mainAxis,U=y?-k[T]/2+R+$+H+M.mainAxis:N+$+H+M.mainAxis,Y=e.elements.arrow&&rl(e.elements.arrow),X=Y?"y"===_?Y.clientTop||0:Y.clientLeft||0:0,G=null!=(O=null==A?void 0:A[_])?O:0,K=L+U-G,Z=ql(f?Ba(z,L+q-G-X):z,L,f?ja(I,K):I);w[_]=Z,C[_]=Z-L}if(a){var Q,J="x"===_?sl:ll,tt="x"===_?ol:al,et=w[x],it="y"===x?"height":"width",nt=et+m[J],rt=et-m[tt],st=-1!==[sl,ll].indexOf(v),ot=null!=(Q=null==A?void 0:A[x])?Q:0,at=st?nt:et-k[it]-S[it]-ot+M.altAxis,lt=st?et+k[it]+S[it]-ot-M.altAxis:rt,ct=f&&st?function(t,e,i){var n=ql(t,e,i);return n>i?i:n}(at,et,lt):ql(f?at:nt,et,f?lt:rt);w[x]=ct,C[x]=ct-et}e.modifiersData[n]=C}},requiresIfExists:["offset"]};const Yl={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,r=t.options,s=i.elements.arrow,o=i.modifiersData.popperOffsets,a=Sl(i.placement),l=Ml(a),c=[ll,al].indexOf(a)>=0?"height":"width";if(s&&o){var h=function(t,e){return Vl("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Wl(t,hl))}(r.padding,i),u=Qa(s),d="y"===l?sl:ll,f="y"===l?ol:al,p=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],g=o[l]-i.rects.reference[l],m=rl(s),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=p/2-g/2,y=h[d],_=v-u[c]-h[f],x=v/2-u[c]/2+b,w=ql(y,x,_),k=l;i.modifiersData[n]=((e={})[k]=w,e.centerOffset=w-x,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&Fl(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xl(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Gl(t){return[sl,al,ol,ll].some((function(e){return t[e]>=0}))}var Kl=xl({defaultModifiers:[kl,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Al({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Dl,Pl,Tl,$l,Ul,Yl,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,o=Hl(e,{elementContext:"reference"}),a=Hl(e,{altBoundary:!0}
vendor: 5,123 bytes, line 2
2),l=Xl(o,n),c=Xl(a,r,s),h=Gl(l),u=Gl(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":u})}}]}),Zl="tippy-content",Ql="tippy-backdrop",Jl="tippy-arrow",tc="tippy-svg-arrow",ec={passive:!0,capture:!0},ic=function(){return document.body};function nc(t,e,i){if(Array.isArray(t)){var n=t[e];return null==n?Array.isArray(i)?i[e]:i:n}return t}function rc(t,e){var i={}.toString.call(t);return 0===i.indexOf("[object")&&i.indexOf(e+"]")>-1}function sc(t,e){return"function"==typeof t?t.apply(void 0,e):t}function oc(t,e){return 0===e?t:function(n){clearTimeout(i),i=setTimeout((function(){t(n)}),e)};var i}function ac(t){return[].concat(t)}function lc(t,e){-1===t.indexOf(e)&&t.push(e)}function cc(t){return t.split("-")[0]}function hc(t){return[].slice.call(t)}function uc(t){return Object.keys(t).reduce((function(e,i){return void 0!==t[i]&&(e[i]=t[i]),e}),{})}function dc(){return document.createElement("div")}function fc(t){return["Element","Fragment"].some((function(e){return rc(t,e)}))}function pc(t){return rc(t,"MouseEvent")}function gc(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function mc(t){return fc(t)?[t]:function(t){return rc(t,"NodeList")}(t)?hc(t):Array.isArray(t)?t:hc(document.querySelectorAll(t))}function vc(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function bc(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function yc(t){var e,i=ac(t)[0];return null!=i&&null!=(e=i.ownerDocument)&&e.body?i.ownerDocument:document}function _c(t,e,i){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[n](e,i)}))}function xc(t,e){for(var i=e;i;){var n;if(t.contains(i))return!0;i=null==i.getRootNode||null==(n=i.getRootNode())?void 0:n.host}return!1}var wc={isTouch:!1},kc=0;function Sc(){wc.isTouch||(wc.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ec))}function Ec(){var t=performance.now();t-kc<20&&(wc.isTouch=!1,document.removeEventListener("mousemove",Ec)),kc=t}function Mc(){var t=document.activeElement;if(gc(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var Ac=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var Cc={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Oc=Object.assign({appendTo:ic,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Cc,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Dc=Object.keys(Oc);function Pc(t){var e=(t.plugins||[]).reduce((function(e,i){var n,r=i.name,s=i.defaultValue;r&&(e[r]=void 0!==t[r]?t[r]:null!=(n=Oc[r])?n:s);return e}),{});return Object.assign({},t,e)}function Tc(t,e){var i=Object.assign({},e,{content:sc(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(Pc(Object.assign({},Oc,{plugins:e}))):Dc).reduce((function(e,i){var n=(t.getAttribute("data-tippy-"+i)||"").trim();if(!n)return e;if("content"===i)e[i]=n;else try{e[i]=JSON.parse(n)}catch(t){e[i]=n}return e}),{})}(t,e.plugins));return i.aria=Object.assign({},Oc.aria,i.aria),i.aria={expanded:"auto"===i.aria.expanded?e.interactive:i.aria.expanded,content:"auto"===i.aria.content?e.interactive?null:"describedby":i.aria.content},i}function Lc(t,e){t.innerHTML=e}function zc(t){var e=dc();return!0===t?e.className=Jl:(e.className=tc,fc(t)?e.appendChild(t):Lc(e,t)),e}function Ic(t,e){fc(e.content)?(Lc(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Lc(t,e.content):t.textContent=e.content)}function Rc(t){var e=t.firstElementChild,i=hc(e.children);return{box:e,content:i.find((function(t){return t.classList.contains(Zl)})),arrow:i.find((function(t){return t.classList.contains(Jl)||t.classList.contains(tc)})),backdrop:i.find((function(t){return t.classList.contains(Ql)}))}}function Fc(t){var e=dc(),i=dc();i.className="tippy-box",i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var n=dc();function r(i,n){var r=Rc(e),s=r.box,o=r.content,a=r.arrow;n.theme?s.setAttribute("data-theme",n.theme):s.removeAttribute("data-theme"),"string"==typeof n.animation?s.setAttribute("data-animation",n.animation):s.removeAttribute("data-animation"),n.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?s.setAttribute("role",n.role):s.removeAttribute("role"),i.c
vendor: 4,593 bytes, line 2
2ontent===n.content&&i.allowHTML===n.allowHTML||Ic(o,t.props),n.arrow?a?i.arrow!==n.arrow&&(s.removeChild(a),s.appendChild(zc(n.arrow))):s.appendChild(zc(n.arrow)):a&&s.removeChild(a)}return n.className=Zl,n.setAttribute("data-state","hidden"),Ic(n,t.props),e.appendChild(i),i.appendChild(n),r(t.props,t.props),{popper:e,onUpdate:r}}Fc.$$tippy=!0;var Nc=1,jc=[],Bc=[];function Vc(t,e){var i,n,r,s,o,a,l,c,h=Tc(t,Object.assign({},Oc,Pc(uc(e)))),u=!1,d=!1,f=!1,p=!1,g=[],m=oc(Y,h.interactiveDebounce),v=Nc++,b=(c=h.plugins).filter((function(t,e){return c.indexOf(t)===e})),y={id:v,reference:t,popper:dc(),popperInstance:null,props:h,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(n),cancelAnimationFrame(r)},setProps:function(e){0;if(y.state.isDestroyed)return;L("onBeforeUpdate",[y,e]),q();var i=y.props,n=Tc(t,Object.assign({},i,uc(e),{ignoreAttributes:!0}));y.props=n,$(),i.interactiveDebounce!==n.interactiveDebounce&&(R(),m=oc(Y,n.interactiveDebounce));i.triggerTarget&&!n.triggerTarget?ac(i.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):n.triggerTarget&&t.removeAttribute("aria-expanded");I(),T(),w&&w(i,n);y.popperInstance&&(Z(),J().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));L("onAfterUpdate",[y,e])},setContent:function(t){y.setProps({content:t})},show:function(){0;var t=y.state.isVisible,e=y.state.isDestroyed,i=!y.state.isEnabled,n=wc.isTouch&&!y.props.touch,r=nc(y.props.duration,0,Oc.duration);if(t||e||i||n)return;if(C().hasAttribute("disabled"))return;if(L("onShow",[y],!1),!1===y.props.onShow(y))return;y.state.isVisible=!0,A()&&(x.style.visibility="visible");T(),B(),y.state.isMounted||(x.style.transition="none");if(A()){var s=D();vc([s.box,s.content],0)}a=function(){var t;if(y.state.isVisible&&!p){if(p=!0,x.offsetHeight,x.style.transition=y.props.moveTransition,A()&&y.props.animation){var e=D(),i=e.box,n=e.content;vc([i,n],r),bc([i,n],"visible")}z(),I(),lc(Bc,y),null==(t=y.popperInstance)||t.forceUpdate(),L("onMount",[y]),y.props.animation&&A()&&function(t,e){W(t,e)}(r,(function(){y.state.isShown=!0,L("onShown",[y])}))}},function(){var t,e=y.props.appendTo,i=C();t=y.props.interactive&&e===ic||"parent"===e?i.parentNode:sc(e,[i]);t.contains(x)||t.appendChild(x);y.state.isMounted=!0,Z(),!1}()},hide:function(){0;var t=!y.state.isVisible,e=y.state.isDestroyed,i=!y.state.isEnabled,n=nc(y.props.duration,1,Oc.duration);if(t||e||i)return;if(L("onHide",[y],!1),!1===y.props.onHide(y))return;y.state.isVisible=!1,y.state.isShown=!1,p=!1,u=!1,A()&&(x.style.visibility="hidden");if(R(),V(),T(!0),A()){var r=D(),s=r.box,o=r.content;y.props.animation&&(vc([s,o],n),bc([s,o],"hidden"))}z(),I(),y.props.animation?A()&&function(t,e){W(t,(function(){!y.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&e()}))}(n,y.unmount):y.unmount()},hideWithInteractivity:function(t){0;O().addEventListener("mousemove",m),lc(jc,m),m(t)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){0;y.state.isVisible&&y.hide();if(!y.state.isMounted)return;Q(),J().forEach((function(t){t._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);Bc=Bc.filter((function(t){return t!==y})),y.state.isMounted=!1,L("onHidden",[y])},destroy:function(){0;if(y.state.isDestroyed)return;y.clearDelayTimeouts(),y.unmount(),q(),delete t._tippy,y.state.isDestroyed=!0,L("onDestroy",[y])}};if(!h.render)return y;var _=h.render(y),x=_.popper,w=_.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+y.id,y.popper=x,t._tippy=y,x._tippy=y;var k=b.map((function(t){return t.fn(y)})),S=t.hasAttribute("aria-expanded");return $(),I(),T(),L("onCreate",[y]),h.showOnCreate&&tt(),x.addEventListener("mouseenter",(function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&O().addEventListener("mousemove",m)})),y;function E(){var t=y.props.touch;return Array.isArray(t)?t:[t,0]}function M(){return"hold"===E()[0]}function A(){var t;return!(null==(t=y.props.render)||!t.$$tippy)}function C(){return l||t}function O(){var t=C().parentNode;return t?yc(t):document}function D(){return Rc(x)}function P(t){return y.state.isMounted&&!y.state.isVisible||wc.isTouch||s&&"focus"===s.type?0:nc(y.props.delay,t?0:1,Oc.delay)}function T(t){void 0===t&&(t=!1),x.style.pointerEvents=y.props.interactive&&!t?"":"none",x.style.zIndex=""+y.props.zIndex}function L(t,e,i){var n;
vendor: 4,120 bytes, line 2
2(void 0===i&&(i=!0),k.forEach((function(i){i[t]&&i[t].apply(i,e)})),i)&&(n=y.props)[t].apply(n,e)}function z(){var e=y.props.aria;if(e.content){var i="aria-"+e.content,n=x.id;ac(y.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(i);if(y.state.isVisible)t.setAttribute(i,e?e+" "+n:n);else{var r=e&&e.replace(n,"").trim();r?t.setAttribute(i,r):t.removeAttribute(i)}}))}}function I(){!S&&y.props.aria.expanded&&ac(y.props.triggerTarget||t).forEach((function(t){y.props.interactive?t.setAttribute("aria-expanded",y.state.isVisible&&t===C()?"true":"false"):t.removeAttribute("aria-expanded")}))}function R(){O().removeEventListener("mousemove",m),jc=jc.filter((function(t){return t!==m}))}function F(e){if(!wc.isTouch||!f&&"mousedown"!==e.type){var i=e.composedPath&&e.composedPath()[0]||e.target;if(!y.props.interactive||!xc(x,i)){if(ac(y.props.triggerTarget||t).some((function(t){return xc(t,i)}))){if(wc.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else L("onClickOutside",[y,e]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),d=!0,setTimeout((function(){d=!1})),y.state.isMounted||V())}}}function N(){f=!0}function j(){f=!1}function B(){var t=O();t.addEventListener("mousedown",F,!0),t.addEventListener("touchend",F,ec),t.addEventListener("touchstart",j,ec),t.addEventListener("touchmove",N,ec)}function V(){var t=O();t.removeEventListener("mousedown",F,!0),t.removeEventListener("touchend",F,ec),t.removeEventListener("touchstart",j,ec),t.removeEventListener("touchmove",N,ec)}function W(t,e){var i=D().box;function n(t){t.target===i&&(_c(i,"remove",n),e())}if(0===t)return e();_c(i,"remove",o),_c(i,"add",n),o=n}function H(e,i,n){void 0===n&&(n=!1),ac(y.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,i,n),g.push({node:t,eventType:e,handler:i,options:n})}))}function $(){var t;M()&&(H("touchstart",U,{passive:!0}),H("touchend",X,{passive:!0})),(t=y.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(H(t,U),t){case"mouseenter":H("mouseleave",X);break;case"focus":H(Ac?"focusout":"blur",G);break;case"focusin":H("focusout",G)}}))}function q(){g.forEach((function(t){var e=t.node,i=t.eventType,n=t.handler,r=t.options;e.removeEventListener(i,n,r)})),g=[]}function U(t){var e,i=!1;if(y.state.isEnabled&&!K(t)&&!d){var n="focus"===(null==(e=s)?void 0:e.type);s=t,l=t.currentTarget,I(),!y.state.isVisible&&pc(t)&&jc.forEach((function(e){return e(t)})),"click"===t.type&&(y.props.trigger.indexOf("mouseenter")<0||u)&&!1!==y.props.hideOnClick&&y.state.isVisible?i=!0:tt(t),"click"===t.type&&(u=!i),i&&!n&&et(t)}}function Y(t){var e=t.target,i=C().contains(e)||x.contains(e);if("mousemove"!==t.type||!i){var n=J().concat(x).map((function(t){var e,i=null==(e=t._tippy.popperInstance)?void 0:e.state;return i?{popperRect:t.getBoundingClientRect(),popperState:i,props:h}:null})).filter(Boolean);(function(t,e){var i=e.clientX,n=e.clientY;return t.every((function(t){var e=t.popperRect,r=t.popperState,s=t.props.interactiveBorder,o=cc(r.placement),a=r.modifiersData.offset;if(!a)return!0;var l="bottom"===o?a.top.y:0,c="top"===o?a.bottom.y:0,h="right"===o?a.left.x:0,u="left"===o?a.right.x:0,d=e.top-n+l>s,f=n-e.bottom-c>s,p=e.left-i+h>s,g=i-e.right-u>s;return d||f||p||g}))})(n,t)&&(R(),et(t))}}function X(t){K(t)||y.props.trigger.indexOf("click")>=0&&u||(y.props.interactive?y.hideWithInteractivity(t):et(t))}function G(t){y.props.trigger.indexOf("focusin")<0&&t.target!==C()||y.props.interactive&&t.relatedTarget&&x.contains(t.relatedTarget)||et(t)}function K(t){return!!wc.isTouch&&M()!==t.type.indexOf("touch")>=0}function Z(){Q();var e=y.props,i=e.popperOptions,n=e.placement,r=e.offset,s=e.getReferenceClientRect,o=e.moveTransition,l=A()?Rc(x).arrow:null,c=s?{getBoundingClientRect:s,contextElement:s.contextElement||C()}:t,h={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(A()){var i=D().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?i.setAttribute("data-placement",e.placement):e.attributes.popper["data-
2popper-"+t]?i.setAttribute("data-"+t,""):i.removeAttribute("data-"+t)})),e.attributes.popper={}}}},u=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!o}},h];A()&&l&&u.push({name:"arrow",options:{element:l,padding:3}}),u.push.apply(u,(null==i?void 0:i.modifiers)||[]),y.popperInstance=Kl(c,x,Object.assign({},i,{placement:n,onFirstUpdate:a,modifiers:u}))}function Q(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function J(){return hc(x.querySelectorAll("[data-tippy-root]"))}function tt(t){y.clearDelayTimeouts(),t&&L("onTrigger",[y,t]),B();var e=P(!0),n=E(),r=n[0],s=n[1];wc.isTouch&&"hold"===r&&s&&(e=s),e?i=setTimeout((function(){y.show()}),e):y.show()}function et(t){if(y.clearDelayTimeouts(),L("onUntrigger",[y,t]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&u)){var e=P(!1);e?n=setTimeout((function(){y.state.isVisible&&y.hide()}),e):r=requestAnimationFrame((function(){y.hide()}))}}else V()}}function Wc(t,e){void 0===e&&(e={});var i=Oc.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",Sc,ec),window.addEventListener("blur",Mc);var n=Object.assign({},e,{plugins:i}),r=mc(t).reduce((function(t,e){var i=e&&Vc(e,n);return i&&t.push(i),t}),[]);return fc(t)?r[0]:r}Wc.defaultProps=Oc,Wc.setDefaultProps=function(t){Object.keys(t).forEach((function(e){Oc[e]=t[e]}))},Wc.currentInput=wc;Object.assign({},Pl,{effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow)}});Wc.setDefaultProps({render:Fc});const Hc=Wc;var $c=i(379),qc=i.n($c),Uc=i(245),Yc={insert:"head",singleton:!1};qc()(Uc.Z,Yc);Uc.Z.locals;function Xc(t){return function(t){if(Array.isArray(t))return Gc(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Gc(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Gc(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gc(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var Kc={},Zc={init:function(t){var e=Xc(document.querySelectorAll("[data-richtext] a")).filter((function(t){return t.href.includes("/tooltip-ordbok/")}));e.length>0&&e.forEach((function(t){var e=t.getAttribute("href")+"?tooltip=true";Kc[e]?Zc.create(t,Kc[e]):fetch(e).then((function(t){return t.text()})).then((function(i){Kc[e]=i,Zc.create(t,i)}))}))},create:function(t,e){var i="tooltip-".concat(Math.random().toString(36).substr(2,9));t.removeAttribute("href"),t.setAttribute("data-tooltip","tooltip-link"),t.setAttribute("id",i),Hc(document.getElementById(i),{content:'<div class="tooltip-box">'.concat(e,"</div>"),allowHTML:!0,placement:"bottom-start",animation:"fade",arrow:'<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',interactive:!0,theme:"light",appendTo:document.body})}};const Qc=Zc;var Jc=i(105),th=i.n(Jc),eh=(i(742),{init:function(t){var e=document.querySelectorAll("[data-slideshow-outer]");e.length&&e.forEach((function(t){var e,i=t.querySelector("[data-slideshow]"),n=t.querySelector('[data-slideshow-button="next"]'),r=t.querySelector('[data-slideshow-button="prev"]'),s=0;function o(){if(!e||!e.slides)return 0;var t=-1,i=e.viewport.getBoundingClientRect();
2return e.slides.forEach((function(e){var n=e.getCellElements()[0].getBoundingClientRect();n.right>i.left&&n.left<i.right&&t++})),t}function a(){e&&(r.disabled=0===e.selectedIndex,n.disabled=e.selectedIndex===e.slides.length-s)}e=new(th())(i,{prevNextButtons:!1,pageDots:!1,contain:!0,dragThreshold:15,cellAlign:"left",wrapAround:!1,accessibility:!0,selectedAttraction:.04,friction:.6,groupCells:1,adaptiveHeight:!1,cellSelector:"[data-slideshow-item]",on:{ready:function(){r.disabled=!0,ra.to(t,{opacity:1,duration:1,ease:"sine.out"}),setTimeout((function(){s=o(),a()}),200)},change:a}}),window.addEventListener("resize",(function(){s=o()})),n.addEventListener("click",(function(){return e.next()})),r.addEventListener("click",(function(){return e.previous()}))}))}});const ih=eh;function nh(){}const rh=function(){let t=0;return function(){return t++}}();function sh(t){return null==t}function oh(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function ah(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const lh=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function ch(t,e){return lh(t)?t:e}function hh(t,e){return void 0===t?e:t}const uh=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function dh(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}
vendor: 5,086 bytes, line 2
2function fh(t,e,i,n){let r,s,o;if(oh(t))if(s=t.length,n)for(r=s-1;r>=0;r--)e.call(i,t[r],r);else for(r=0;r<s;r++)e.call(i,t[r],r);else if(ah(t))for(o=Object.keys(t),s=o.length,r=0;r<s;r++)e.call(i,t[o[r]],o[r])}function ph(t,e){let i,n,r,s;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(r=t[i],s=e[i],r.datasetIndex!==s.datasetIndex||r.index!==s.index)return!1;return!0}function gh(t){if(oh(t))return t.map(gh);if(ah(t)){const e=Object.create(null),i=Object.keys(t),n=i.length;let r=0;for(;r<n;++r)e[i[r]]=gh(t[i[r]]);return e}return t}function mh(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function vh(t,e,i,n){if(!mh(t))return;const r=e[t],s=i[t];ah(r)&&ah(s)?bh(r,s,n):e[t]=gh(s)}function bh(t,e,i){const n=oh(e)?e:[e],r=n.length;if(!ah(t))return t;const s=(i=i||{}).merger||vh;for(let o=0;o<r;++o){if(!ah(e=n[o]))continue;const r=Object.keys(e);for(let n=0,o=r.length;n<o;++n)s(r[n],t,e,i)}return t}function yh(t,e){return bh(t,e,{merger:_h})}function _h(t,e,i){if(!mh(t))return;const n=e[t],r=i[t];ah(n)&&ah(r)?yh(n,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=gh(r))}const xh={"":t=>t,x:t=>t.x,y:t=>t.y};function wh(t,e){const i=xh[e]||(xh[e]=function(t){const e=function(t){const e=t.split("."),i=[];let n="";for(const t of e)n+=t,n.endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function kh(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Sh=t=>void 0!==t,Eh=t=>"function"==typeof t,Mh=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};const Ah=Math.PI,Ch=2*Ah,Oh=Ch+Ah,Dh=Number.POSITIVE_INFINITY,Ph=Ah/180,Th=Ah/2,Lh=Ah/4,zh=2*Ah/3,Ih=Math.log10,Rh=Math.sign;function Fh(t){const e=Math.round(t);t=jh(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(Ih(t))),n=t/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function Nh(t){return!isNaN(parseFloat(t))&&isFinite(t)}function jh(t,e,i){return Math.abs(t-e)<i}function Bh(t,e,i){let n,r,s;for(n=0,r=t.length;n<r;n++)s=t[n][i],isNaN(s)||(e.min=Math.min(e.min,s),e.max=Math.max(e.max,s))}function Vh(t){return t*(Ah/180)}function Wh(t){return t*(180/Ah)}function Hh(t){if(!lh(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function $h(t,e){const i=e.x-t.x,n=e.y-t.y,r=Math.sqrt(i*i+n*n);let s=Math.atan2(n,i);return s<-.5*Ah&&(s+=Ch),{angle:s,distance:r}}function qh(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Uh(t,e){return(t-e+Oh)%Ch-Ah}function Yh(t){return(t%Ch+Ch)%Ch}function Xh(t,e,i,n){const r=Yh(t),s=Yh(e),o=Yh(i),a=Yh(s-r),l=Yh(o-r),c=Yh(r-s),h=Yh(r-o);return r===s||r===o||n&&s===o||a>l&&c<h}function Gh(t,e,i){return Math.max(e,Math.min(i,t))}function Kh(t,e,i,n=1e-6){return t>=Math.min(e,i)-n&&t<=Math.max(e,i)+n}function Zh(t,e,i){i=i||(i=>t[i]<e);let n,r=t.length-1,s=0;for(;r-s>1;)n=s+r>>1,i(n)?s=n:r=n;return{lo:s,hi:r}}const Qh=(t,e,i,n)=>Zh(t,i,n?n=>t[n][e]<=i:n=>t[n][e]<i),Jh=(t,e,i)=>Zh(t,i,(n=>t[n][e]>=i));const tu=["push","pop","shift","splice","unshift"];function eu(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,r=n.indexOf(e);-1!==r&&n.splice(r,1),n.length>0||(tu.forEach((e=>{delete t[e]})),delete t._chartjs)}function iu(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)}const nu="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function ru(t,e,i){const n=i||(t=>Array.prototype.slice.call(t));let r=!1,s=[];return function(...i){s=n(i),r||(r=!0,nu.call(window,(()=>{r=!1,t.apply(e,s)})))}}const su=t=>"start"===t?"left":"end"===t?"right":"center",ou=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function au(t,e,i){const n=e.length;let r=0,s=n;if(t._sorted){const{iScale:o,_parsed:a}=t,l=o.axis,{min:c,max:h,minDefined:u,maxDefined:d}=o.getUserBounds();u&&(r=Gh(Math.min(Qh(a,o.axis,c).lo,i?n:Qh(e,l,o.getPixelForValue(c)).lo),0,n-1)),s=d?Gh(Math.max(Qh(a,o.axis,h,!0).hi+1,i?0:Qh(e,l,o.getPixelForValue(h),!0).hi+1),r,n)-r:n-r}return{start:r,count:s}}function lu(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,r={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=r,!0;const s=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,r),s}const cu=t=>0===t||1===t,hu=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ch/i),uu=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ch/i)+1,du={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*Th),easeOutSine:t=>Math.sin(t*Th),easeInOutSine:t=>-.5*(Math.cos(Ah*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=>
vendor: 9,810 bytes, line 2
2cu(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=>cu(t)?t:hu(t,.075,.3),easeOutElastic:t=>cu(t)?t:uu(t,.075,.3),easeInOutElastic(t){const e=.1125;return cu(t)?t:t<.5?.5*hu(2*t,e,.45):.5+.5*uu(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-du.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*du.easeInBounce(2*t):.5*du.easeOutBounce(2*t-1)+.5};function fu(t){return t+.5|0}const pu=(t,e,i)=>Math.max(Math.min(t,i),e);function gu(t){return pu(fu(2.55*t),0,255)}function mu(t){return pu(fu(255*t),0,255)}function vu(t){return pu(fu(t/2.55)/100,0,1)}function bu(t){return pu(fu(100*t),0,100)}const yu={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},_u=[..."0123456789ABCDEF"],xu=t=>_u[15&t],wu=t=>_u[(240&t)>>4]+_u[15&t],ku=t=>(240&t)>>4==(15&t);function Su(t){var e=(t=>ku(t.r)&&ku(t.g)&&ku(t.b)&&ku(t.a))(t)?xu:wu;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Eu=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Mu(t,e,i){const n=e*Math.min(i,1-i),r=(e,r=(e+t/30)%12)=>i-n*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function Au(t,e,i){const n=(n,r=(n+t/60)%6)=>i-i*e*Math.max(Math.min(r,4-r,1),0);return[n(5),n(3),n(1)]}function Cu(t,e,i){const n=Mu(t,1,.5);let r;for(e+i>1&&(r=1/(e+i),e*=r,i*=r),r=0;r<3;r++)n[r]*=1-e-i,n[r]+=e;return n}function Ou(t){const e=t.r/255,i=t.g/255,n=t.b/255,r=Math.max(e,i,n),s=Math.min(e,i,n),o=(r+s)/2;let a,l,c;return r!==s&&(c=r-s,l=o>.5?c/(2-r-s):c/(r+s),a=function(t,e,i,n,r){return t===r?(e-i)/n+(e<i?6:0):e===r?(i-t)/n+2:(t-e)/n+4}(e,i,n,c,r),a=60*a+.5),[0|a,l||0,o]}function Du(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(mu)}function Pu(t,e,i){return Du(Mu,t,e,i)}function Tu(t){return(t%360+360)%360}function Lu(t){const e=Eu.exec(t);let i,n=255;if(!e)return;e[5]!==i&&(n=e[6]?gu(+e[5]):mu(+e[5]));const r=Tu(+e[2]),s=+e[3]/100,o=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return Du(Cu,t,e,i)}(r,s,o):"hsv"===e[1]?function(t,e,i){return Du(Au,t,e,i)}(r,s,o):Pu(r,s,o),{r:i[0],g:i[1],b:i[2],a:n}}const zu={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"},Iu={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 Ru;function Fu(t){Ru||(Ru=function(){const t={},e=Object.keys(Iu),i=Object.keys(zu);let n,r,s,o,a;for(n=0;n<e.length;n++){for(o=a=e[n],r=0;r<i.length;r++)s=i[r],a=a.replace(s,zu[s]);s=parseInt(Iu[o],16),t[a]=[s>>16&255,s>>8&255,255&s]}return t}(),Ru.transparent=[0,0,0,0]);const e=Ru[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Nu=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const ju=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Bu=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Vu(t,e,i){if(t){let n=Ou(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=Pu(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function Wu(t,e){return t?Object.assign(e||{},t):t}function Hu(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=mu(t[3]))):(e=Wu(t,{r:0,g:0,b:0,a:1})).a=mu(e.a),e}function $u(t){return"r"===t.charAt(0)?function(t){const e=Nu.exec(t);let i,n,r,s=255;if(e){if(e[7]!==i){const t=+e[7];s=e[8]?gu(t):pu(255*t,0,255)}return i=+e[1],n=+e[3],r=+e[5],i=255&(e[2]?gu(i):pu(i,0,255)),n=255&(e[4]?gu(n):pu(n,0,255)),r=255&(e[6]?gu(r):pu(r,0,255)),{r:i,g:n,b:r,a:s}}}(t):Lu(t)}class qu{constructor(t){if(t instanceof qu)return t;const e=typeof t;let i;var n,r,s;"object"===e?i=Hu(t):"string"===e&&(s=(n=t).length,"#"===n[0]&&(4===s||5===s?r={r:255&17*yu[n[1]],g:255&17*yu[n[2]],b:255&17*yu[n[3]],a:5===s?17*yu[n[4]]:255}:7!==s&&9!==s||(r={r:yu[n[1]]<<4|yu[n[2]],g:yu[n[3]]<<4|yu[n[4]],b:yu[n[5]]<<4|yu[n[6]],a:9===s?yu[n[7]]<<4|yu[n[8]]:255})),i=r||Fu(t)||$u(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Wu(this._rgb);return t&&(t.a=vu(t.a)),t}set rgb(t){this._rgb=Hu(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${vu(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?Su(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Ou(t),i=e[0],n=bu(e[1]),r=bu(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${r}%, ${vu(t.a)})`:`hsl(${i}, ${n}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,n=t.rgb;let r;const s=e===r?.5:e,o=2*s-1,a=i.a-n.a,l=((o*a==-1?o:(o+a)/(1+o*a))+1)/2;r=1-l,i.r=255&l*i.r+r*n.r+.5,i.g=255&l*i.g+r*n.g+.5,i.b=255&l*i.b+r*n.b+.5,i.a=s*i.a+(1-s)*n.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const n=Bu(vu(t.r)),r=Bu(vu(t.g)),s=Bu(vu(t.b));return{r:mu(ju(n+i*(Bu(vu(e.r))-n))),g:mu(ju(r+i*(Bu(vu(e.g))-r))),b:mu(ju(s+i*(Bu(vu(e.b))-s))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new qu(this.rgb)}alpha(t){return this._rgb.a=mu(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=fu(.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 Vu(this._rgb,2,t),this}darken(t){return Vu(this._rgb,2,-t),this}saturate(t){return Vu(this._rgb,1,t),this}desaturate(t){return Vu(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Ou(t);i[0]=Tu(i[0]+e),i=Pu(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Uu(t){return new qu(t)}function Yu(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Xu(t){return Yu(t)?t:Uu(t)}function Gu(t){return Yu(t)?t:Uu(t).saturate(.5).darken(.1).hexString()}const Ku=Object.create(null),Zu=Object.create(null);function Qu(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 Ju(t,e,i){return"string"==typeof e?bh(Qu(t,e),i):bh(Qu(t,""),e)}var td=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)=>Gu(e.backgroundColor),this.hoverBorderColor=(t,e)=>Gu(e.borderColor),this.hoverColor=(t,e)=>Gu(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
2,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return Ju(this,t,e)}get(t){return Qu(this,t)}describe(t,e){return Ju(Zu,t,e)}override(t,e){return Ju(Ku,t,e)}route(t,e,i,n){const r=Qu(this,t),s=Qu(this,i),o="_"+e;Object.defineProperties(r,{[o]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[o],e=s[n];return ah(t)?Object.assign({},e,t):hh(t,e)},set(t){this[o]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function ed(t,e,i,n,r){let s=e[r];return s||(s=e[r]=t.measureText(r).width,i.push(r)),s>n&&(n=s),n}function id(t,e,i,n){let r=(n=n||{}).data=n.data||{},s=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(r=n.data={},s=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let o=0;const a=i.length;let l,c,h,u,d;for(l=0;l<a;l++)if(u=i[l],null!=u&&!0!==oh(u))o=ed(t,r,s,o,u);else if(oh(u))for(c=0,h=u.length;c<h;c++)d=u[c],null==d||oh(d)||(o=ed(t,r,s,o,d));t.restore();const f=s.length/2;if(f>i.length){for(l=0;l<f;l++)delete r[s[l]];s.splice(0,f)}return o}function nd(t,e,i){const n=t.currentDevicePixelRatio,r=0!==i?Math.max(i/2,.5):0;return Math.round((e-r)*n)/n+r}function rd(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function sd(t,e,i,n){od(t,e,i,n,null)}function od(t,e,i,n,r){let s,o,a,l,c,h;const u=e.pointStyle,d=e.rotation,f=e.radius;let p=(d||0)*Ph;if(u&&"object"==typeof u&&(s=u.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(i,n),t.rotate(p),t.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),u){default:r?t.ellipse(i,n,r/2,f,0,0,Ch):t.arc(i,n,f,0,Ch),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(p)*f,n-Math.cos(p)*f),p+=zh,t.lineTo(i+Math.sin(p)*f,n-Math.cos(p)*f),p+=zh,t.lineTo(i+Math.sin(p)*f,n-Math.cos(p)*f),t.closePath();break;case"rectRounded":c=.516*f,l=f-c,o=Math.cos(p+Lh)*l,a=Math.sin(p+Lh)*l,t.arc(i-o,n-a,c,p-Ah,p-Th),t.arc(i+a,n-o,c,p-Th,p),t.arc(i+o,n+a,c,p,p+Th),t.arc(i-a,n+o,c,p+Th,p+Ah),t.closePath();break;case"rect":if(!d){l=Math.SQRT1_2*f,h=r?r/2:l,t.rect(i-h,n-l,2*h,2*l);break}p+=Lh;case"rectRot":o=Math.cos(p)*f,a=Math.sin(p)*f,t.moveTo(i-o,n-a),t.lineTo(i+a,n-o),t.lineTo(i+o,n+a),t.lineTo(i-a,n+o),t.closePath();break;case"crossRot":p+=Lh;case"cross":o=Math.cos(p)*f,a=Math.sin(p)*f,t.moveTo(i-o,n-a),t.lineTo(i+o,n+a),t.moveTo(i+a,n-o),t.lineTo(i-a,n+o);break;case"star":o=Math.cos(p)*f,a=Math.sin(p)*f,t.moveTo(i-o,n-a),t.lineTo(i+o,n+a),t.moveTo(i+a,n-o),t.lineTo(i-a,n+o),p+=Lh,o=Math.cos(p)*f,a=Math.sin(p)*f,t.moveTo(i-o,n-a),t.lineTo(i+o,n+a),t.moveTo(i+a,n-o),t.lineTo(i-a,n+o);break;case"line":o=r?r/2:Math.cos(p)*f,a=Math.sin(p)*f,t.moveTo(i-o,n-a),t.lineTo(i+o,n+a);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(p)*f,n+Math.sin(p)*f)}t.fill(),e.borderWidth>0&&t.stroke()}}function ad(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 ld(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function cd(t){t.restore()}function hd(t,e,i,n,r){if(!e)return t.lineTo(i.x,i.y);if("middle"===r){const n=(e.x+i.x)/2;t.lineTo(n,e.y),t.lineTo(n,i.y)}else"after"===r!=!!n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function ud(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 dd(t,e,i,n,r,s={}){const o=oh(e)?e:[e],a=s.strokeWidth>0&&""!==s.strokeColor;let l,c;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);sh(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,s),l=0;l<o.length;++l)c=o[l],a&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),sh(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(c,i,n,s.maxWidth)),t.fillText(c,i,n,s.maxWidth),fd(t,i,n,c,s),n+=r.lineHeight;
2t.restore()}function fd(t,e,i,n,r){if(r.strikethrough||r.underline){const s=t.measureText(n),o=e-s.actualBoundingBoxLeft,a=e+s.actualBoundingBoxRight,l=i-s.actualBoundingBoxAscent,c=i+s.actualBoundingBoxDescent,h=r.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(o,h),t.lineTo(a,h),t.stroke()}}function pd(t,e){const{x:i,y:n,w:r,h:s,radius:o}=e;t.arc(i+o.topLeft,n+o.topLeft,o.topLeft,-Th,Ah,!0),t.lineTo(i,n+s-o.bottomLeft),t.arc(i+o.bottomLeft,n+s-o.bottomLeft,o.bottomLeft,Ah,Th,!0),t.lineTo(i+r-o.bottomRight,n+s),t.arc(i+r-o.bottomRight,n+s-o.bottomRight,o.bottomRight,Th,0,!0),t.lineTo(i+r,n+o.topRight),t.arc(i+r-o.topRight,n+o.topRight,o.topRight,0,-Th,!0),t.lineTo(i+o.topLeft,n)}const gd=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),md=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function vd(t,e){const i=(""+t).match(gd);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 bd(t,e){const i={},n=ah(e),r=n?Object.keys(e):e,s=ah(t)?n?i=>hh(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of r)i[t]=+s(t)||0;return i}function yd(t){return bd(t,{top:"y",right:"x",bottom:"y",left:"x"})}function _d(t){return bd(t,["topLeft","topRight","bottomLeft","bottomRight"])}function xd(t){const e=yd(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function wd(t,e){t=t||{},e=e||td.font;let i=hh(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let n=hh(t.style,e.style);n&&!(""+n).match(md)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const r={family:hh(t.family,e.family),lineHeight:vd(hh(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:hh(t.weight,e.weight),string:""};
vendor: 4,524 bytes, line 2
2return r.string=function(t){return!t||sh(t.size)||sh(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function kd(t,e,i,n){let r,s,o,a=!0;for(r=0,s=t.length;r<s;++r)if(o=t[r],void 0!==o&&(void 0!==e&&"function"==typeof o&&(o=o(e),a=!1),void 0!==i&&oh(o)&&(o=o[i%o.length],a=!1),void 0!==o))return n&&!a&&(n.cacheable=!1),o}function Sd(t,e){return Object.assign(Object.create(t),e)}function Ed(t,e=[""],i=t,n,r=(()=>t[0])){Sh(n)||(n=Rd("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:r,override:r=>Ed([r,...t],e,i,n)};return new Proxy(s,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,n)=>Dd(i,n,(()=>function(t,e,i,n){let r;for(const s of e)if(r=Rd(Cd(s,t),i),Sh(r))return Od(t,r)?zd(i,n,t,r):r}(n,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Fd(t).includes(e),ownKeys:t=>Fd(t),set(t,e,i){const n=t._storage||(t._storage=r());return t[e]=n[e]=i,delete t._keys,!0}})}function Md(t,e,i,n){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Ad(t,n),setContext:e=>Md(t,e,i,n),override:r=>Md(t.override(r),e,i,n)};return new Proxy(r,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Dd(t,e,(()=>function(t,e,i){const{_proxy:n,_context:r,_subProxy:s,_descriptors:o}=t;let a=n[e];Eh(a)&&o.isScriptable(e)&&(a=function(t,e,i,n){const{_proxy:r,_context:s,_subProxy:o,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t),e=e(s,o||n),a.delete(t),Od(t,e)&&(e=zd(r._scopes,r,t,e));return e}(e,a,t,i));oh(a)&&a.length&&(a=function(t,e,i,n){const{_proxy:r,_context:s,_subProxy:o,_descriptors:a}=i;if(Sh(s.index)&&n(t))e=e[s.index%e.length];else if(ah(e[0])){const i=e,n=r._scopes.filter((t=>t!==i));e=[];for(const l of i){const i=zd(n,r,t,l);e.push(Md(i,s,o&&o[t],a))}}return e}(e,a,t,o.isIndexable));Od(e,a)&&(a=Md(a,r,s&&s[e],o));return a}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,n)=>(t[i]=n,delete e[i],!0)})}function Ad(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:i,indexable:n,isScriptable:Eh(i)?i:()=>i,isIndexable:Eh(n)?n:()=>n}}const Cd=(t,e)=>t?t+kh(e):e,Od=(t,e)=>ah(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Dd(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const n=i();return t[e]=n,n}function Pd(t,e,i){return Eh(t)?t(e,i):t}const Td=(t,e)=>!0===t?e:"string"==typeof t?wh(e,t):void 0;function Ld(t,e,i,n,r){for(const s of e){const e=Td(i,s);if(e){t.add(e);const s=Pd(e._fallback,i,r);if(Sh(s)&&s!==i&&s!==n)return s}else if(!1===e&&Sh(n)&&i!==n)return null}return!1}function zd(t,e,i,n){const r=e._rootScopes,s=Pd(e._fallback,i,n),o=[...t,...r],a=new Set;a.add(n);let l=Id(a,o,i,s||i,n);return null!==l&&((!Sh(s)||s===i||(l=Id(a,o,s,l,n),null!==l))&&Ed(Array.from(a),[""],r,s,(()=>function(t,e,i){const n=t._getTarget();e in n||(n[e]={});const r=n[e];if(oh(r)&&ah(i))return i;return r}(e,i,n))))}function Id(t,e,i,n,r){for(;i;)i=Ld(t,e,i,n,r);return i}function Rd(t,e){for(const i of e){if(!i)continue;const e=i[t];if(Sh(e))return e}}function Fd(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}function Nd(t,e,i,n){const{iScale:r}=t,{key:s="r"}=this._parsing,o=new Array(n);let a,l,c,h;for(a=0,l=n;a<l;++a)c=a+i,h=e[c],o[a]={r:r.parse(wh(h,s),c)};return o}const jd=Number.EPSILON||1e-14,Bd=(t,e)=>e<t.length&&!t[e].skip&&t[e],Vd=t=>"x"===t?"y":"x";function Wd(t,e,i,n){const r=t.skip?e:t,s=e,o=i.skip?e:i,a=qh(s,r),l=qh(o,s);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:s.x-u*(o.x-r.x),y:s.y-u*(o.y-r.y)},next:{x:s.x+d*(o.x-r.x),y:s.y+d*(o.y-r.y)}}}function Hd(t,e="x"){const i=Vd(e),n=t.length,r=Array(n).fill(0),s=Array(n);let o,a,l,c=Bd(t,0);for(o=0;o<n;++o)if(a=l,l=c,c=Bd(t,o+1),l){if(c){const t=c[e]-l[e];r[o]=0!==t?(c[i]-l[i])/t:0}s[o]=a?c?Rh(r[o-1])!==Rh(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}
vendor: 5,337 bytes, line 2
2!function(t,e,i){const n=t.length;let r,s,o,a,l,c=Bd(t,0);for(let h=0;h<n-1;++h)l=c,c=Bd(t,h+1),l&&c&&(jh(e[h],0,jd)?i[h]=i[h+1]=0:(r=i[h]/e[h],s=i[h+1]/e[h],a=Math.pow(r,2)+Math.pow(s,2),a<=9||(o=3/Math.sqrt(a),i[h]=r*o*e[h],i[h+1]=s*o*e[h])))}(t,r,s),function(t,e,i="x"){const n=Vd(i),r=t.length;let s,o,a,l=Bd(t,0);for(let c=0;c<r;++c){if(o=a,a=l,l=Bd(t,c+1),!a)continue;const r=a[i],h=a[n];o&&(s=(r-o[i])/3,a[`cp1${i}`]=r-s,a[`cp1${n}`]=h-s*e[c]),l&&(s=(l[i]-r)/3,a[`cp2${i}`]=r+s,a[`cp2${n}`]=h+s*e[c])}}(t,s,e)}function $d(t,e,i){return Math.max(Math.min(t,i),e)}function qd(t,e,i,n,r){let s,o,a,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)Hd(t,r);else{let i=n?t[t.length-1]:t[0];for(s=0,o=t.length;s<o;++s)a=t[s],l=Wd(i,a,t[Math.min(s+1,o-(n?0:1))%o],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,i=a}e.capBezierPoints&&function(t,e){let i,n,r,s,o,a=ad(t[0],e);for(i=0,n=t.length;i<n;++i)o=s,s=a,a=i<n-1&&ad(t[i+1],e),s&&(r=t[i],o&&(r.cp1x=$d(r.cp1x,e.left,e.right),r.cp1y=$d(r.cp1y,e.top,e.bottom)),a&&(r.cp2x=$d(r.cp2x,e.left,e.right),r.cp2y=$d(r.cp2y,e.top,e.bottom)))}(t,i)}function Ud(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Yd(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Xd(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 Gd=t=>window.getComputedStyle(t,null);const Kd=["top","right","bottom","left"];function Zd(t,e,i){const n={};i=i?"-"+i:"";for(let r=0;r<4;r++){const s=Kd[r];n[s]=parseFloat(t[e+"-"+s+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function Qd(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:n}=e,r=Gd(i),s="border-box"===r.boxSizing,o=Zd(r,"padding"),a=Zd(r,"border","width"),{x:l,y:c,box:h}=function(t,e){const i=t.touches,n=i&&i.length?i[0]:t,{offsetX:r,offsetY:s}=n;let o,a,l=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(r,s,t.target))o=r,a=s;else{const t=e.getBoundingClientRect();o=n.clientX-t.left,a=n.clientY-t.top,l=!0}return{x:o,y:a,box:l}}(t,i),u=o.left+(h&&a.left),d=o.top+(h&&a.top);let{width:f,height:p}=e;return s&&(f-=o.width+a.width,p-=o.height+a.height),{x:Math.round((l-u)/f*i.width/n),y:Math.round((c-d)/p*i.height/n)}}const Jd=t=>Math.round(10*t)/10;function tf(t,e,i,n){const r=Gd(t),s=Zd(r,"margin"),o=Xd(r.maxWidth,t,"clientWidth")||Dh,a=Xd(r.maxHeight,t,"clientHeight")||Dh,l=function(t,e,i){let n,r;if(void 0===e||void 0===i){const s=Yd(t);if(s){const t=s.getBoundingClientRect(),o=Gd(s),a=Zd(o,"border","width"),l=Zd(o,"padding");e=t.width-l.width-a.width,i=t.height-l.height-a.height,n=Xd(o.maxWidth,s,"clientWidth"),r=Xd(o.maxHeight,s,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||Dh,maxHeight:r||Dh}}(t,e,i);let{width:c,height:h}=l;if("content-box"===r.boxSizing){const t=Zd(r,"border","width"),e=Zd(r,"padding");c-=e.width+t.width,h-=e.height+t.height}return c=Math.max(0,c-s.width),h=Math.max(0,n?Math.floor(c/n):h-s.height),c=Jd(Math.min(c,o,l.maxWidth)),h=Jd(Math.min(h,a,l.maxHeight)),c&&!h&&(h=Jd(c/2)),{width:c,height:h}}function ef(t,e,i){const n=e||1,r=Math.floor(t.height*n),s=Math.floor(t.width*n);t.height=r/n,t.width=s/n;const o=t.canvas;return o.style&&(i||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||o.height!==r||o.width!==s)&&(t.currentDevicePixelRatio=n,o.height=r,o.width=s,t.ctx.setTransform(n,0,0,n,0,0),!0)}const nf=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 rf(t,e){const i=function(t,e){return Gd(t).getPropertyValue(e)}(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function sf(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function of(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 af(t,e,i,n){const r={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},o=sf(t,r,i),a=sf(r,s,i),l=sf(s,e,i),c=sf(o,a,i),h=sf(a,l,i);return sf(c,h,i)}const lf=new Map;function cf(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let n=lf.get(i);return n||(n=new Intl.NumberFormat(t,e),lf.set(i,n)),n}(e,i).format(t)}function hf(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 uf(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)}function df(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function ff(t){return"angle"===t?{between:Xh,compare:Uh,normalize:Yh}:{between:Kh,compare:(t,e)=>t-e,normalize:t=>t}}function pf({start:t,end:e,count:i,loop:n,style:r}){return{start:t%i,end:e%i,loop:n&&(e-t+1)%i==0,style:r}}function gf(t,e,i){if(!i)return[t];const{property:n,start:r,end:s}=i,o=e.length,{compare:a,between:l,normalize:c}=ff(n),{start:h,end:u,loop:d,style:f}
vendor: 18,866 bytes, line 2
2=function(t,e,i){const{property:n,start:r,end:s}=i,{between:o,normalize:a}=ff(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&&o(a(e[u%l][n]),r,s);++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,v,b=!1,y=null;const _=()=>b||l(r,v,g)&&0!==a(r,v),x=()=>!b||0===a(s,g)||l(s,v,g);for(let t=h,i=h;t<=u;++t)m=e[t%o],m.skip||(g=c(m[n]),g!==v&&(b=l(g,r,s),null===y&&_()&&(y=0===a(g,r)?t:i),null!==y&&x()&&(p.push(pf({start:y,end:t,loop:d,count:o,style:f})),y=null),i=t,v=g));return null!==y&&p.push(pf({start:y,end:u,loop:d,count:o,style:f})),p}function mf(t,e){const i=[],n=t.segments;for(let r=0;r<n.length;r++){const s=gf(n[r],t.points,e);s.length&&i.push(...s)}return i}function vf(t,e,i,n){return n&&n.setContext&&i?function(t,e,i,n){const r=t._chart.getContext(),s=bf(t.options),{_datasetIndex:o,options:{spanGaps:a}}=t,l=i.length,c=[];let h=s,u=e[0].start,d=u;function f(t,e,n,r){const s=a?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=s;for(;i[e%l].skip;)e+=s;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:n,style:r}),h=r,u=e%l)}}for(const t of e){u=a?u:t.start;let e,s=i[u%l];for(d=u+1;d<=t.end;d++){const a=i[d%l];e=bf(n.setContext(Sd(r,{type:"segment",p0:s,p1:a,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:o}))),yf(e,h)&&f(u,d-1,t.loop,h),s=a,h=e}u<d-1&&f(u,d-1,t.loop,h)}return c}(t,e,i,n):e}function bf(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function yf(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}var _f=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,n){const r=e.listeners[n],s=e.duration;r.forEach((n=>n({chart:t,initial:e.initial,numSteps:s,currentStep:Math.min(i-e.start,s)})))}_refresh(){this._request||(this._running=!0,this._request=nu.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 r=i.items;let s,o=r.length-1,a=!1;for(;o>=0;--o)s=r[o],s._active?(s._total>i.duration&&(i.duration=s._total),s.tick(t),a=!0):(r[o]=r[r.length-1],r.pop());a&&(n.draw(),this._notify(n,i,t,"progress")),r.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=r.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 xf="transparent",wf={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const n=Xu(t||xf),r=n.valid&&Xu(e||xf);return r&&r.valid?r.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class kf{constructor(t,e,i,n){const r=e[i];n=kd([t.to,n,r,t.from]);const s=kd([t.from,r,n]);this._active=!0,this._fn=t.fn||wf[t.type||typeof s],this._easing=du[t.easing]||du.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=s,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],r=i-this._start,s=this._duration-r;this._start=i,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=kd([t.to,e,n,t.from]),this._from=kd([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,r=this._from,s=this._loop,o=this._to;let a;if(this._active=r!==o&&(s||e<i),!this._active)return this._target[n]=o,void this._notify(!0);e<0?this._target[n]=r:(a=e/i%2,a=s&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[n]=this._fn(r,o,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}td.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 Sf=Object.keys(td.animation);td.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),td.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),td.describe("animations",{_fallback:"animation"}),td.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 Ef{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!ah(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const n=t[i];if(!ah(n))return;const r={};for(const t of Sf)r[t]=n[t];(oh(n.properties)&&n.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,r)}))}))}_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 r=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 r=t[n[e]];r&&r.active()&&i.push(r.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),r}_createAnimations(t,e){const i=this._properties,n=[],r=t.$animations||(t.$animations={}),s=Object.keys(e),o=Date.now();let a;for(a=s.length-1;a>=0;--a){const l=s[a];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(t,e));continue}const c=e[l];let h=r[l];const u=i.get(l);if(h){if(u&&h.active()){h.update(u,c,o);continue}h.cancel()}u&&u.duration?(r[l]=h=new kf(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?(_f.add(this._chart,i),!0):void 0}}function Mf(t,e){const i=t&&t.options||{},n=i.reverse,r=void 0===i.min?e:0,s=void 0===i.max?e:0;return{start:n?s:r,end:n?r:s}}function Af(t,e){const i=[],n=t._getSortedDatasetMetas(e);let r,s;for(r=0,s=n.length;r<s;++r)i.push(n[r].index);return i}function Cf(t,e,i,n={}){const r=t.keys,s="single"===n.mode;let o,a,l,c;if(null!==e){for(o=0,a=r.length;o<a;++o){if(l=+r[o],l===i){if(n.all)continue;break}c=t.values[l],lh(c)&&(s||0===e||Rh(e)===Rh(c))&&(e+=c)}return e}}function Of(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function Df(t,e,i){const n=t[e]||(t[e]={});return n[i]||(n[i]={})}function Pf(t,e,i,n){for(const r of e.getMatchingVisibleMetas(n).reverse()){const e=t[r.index];if(i&&e>0||!i&&e<0)return r.index}return null}function Tf(t,e){const{chart:i,_cachedMeta:n}=t,r=i._stacks||(i._stacks={}),{iScale:s,vScale:o,index:a}=n,l=s.axis,c=o.axis,h=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(s,o,n),u=e.length;let d;for(let t=0;t<u;++t){const i=e[t],{[l]:s,[c]:u}=i;d=(i._stacks||(i._stacks={}))[c]=Df(r,h,s),d[a]=u,d._top=Pf(d,o,!0,n.type),d._bottom=Pf(d,o,!1,n.type)}}function Lf(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function zf(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 If=t=>"reset"===t||"none"===t,Rf=(t,e)=>e?t:Object.assign({},t);class Ff{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Of(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&zf(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,r=e.xAxisID=hh(i.xAxisID,Lf(t,"x")),s=e.yAxisID=hh(i.yAxisID,Lf(t,"y")),o=e.rAxisID=hh(i.rAxisID,Lf(t,"r")),a=e.indexAxis,l=e.iAxisID=n(a,r,s,o),c=e.vAxisID=n(a,s,r,o);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(s),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&eu(this._data,this),t._stacked&&zf(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(ah(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let n,r,s;for(n=0,r=e.length;n<r;++n)s=e[n],i[n]={x:s,y:t[s]};return i}(e);else if(i!==e){if(i){eu(i,this);const t=this._cachedMeta;zf(t),t._parsed=[]}e&&Object.isExtensible(e)&&(r=this,(n=e)._chartjs?n._chartjs.listeners.push(r):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[r]}}),tu.forEach((t=>{const e="_onData"+kh(t),i=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...t){const r=i.apply(this,t);return n._chartjs.listeners.forEach((i=>{"function"==typeof i[e]&&i[e](...t)})),r}})})))),this._syncList=[],this._data=e}var n,r}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 r=e._stacked;e._stacked=Of(e.vScale,e),e.stack!==i.stack&&(n=!0,zf(e),e.stack=i.stack),this._resyncElements(t),(n||r!==e._stacked)&&Tf(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:n}=this,{iScale:r,_stacked:s}=i,o=r.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=oh(n[t])?this.parseArrayData(i,n,t,e):ah(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const r=()=>null===l[o]||u&&l[o]<u[o];for(a=0;a<e;++a)i._parsed[a+t]=l=c[a],h&&(r()&&(h=!1),u=l);i._sorted=h}s&&Tf(this,c)}parsePrimitiveData(t,e,i,n){const{iScale:r,vScale:s}=t,o=r.axis,a=s.axis,l=r.getLabels(),c=r===s,h=new Array(n);let u,d,f;for(u=0,d=n;u<d;++u)f=u+i,h[u]={[o]:c||r.parse(l[f],f),[a]:s.parse(e[f],f)};return h}parseArrayData(t,e,i,n){const{xScale:r,yScale:s}=t,o=new Array(n);let a,l,c,h;for(a=0,l=n;a<l;++a)c=a+i,h=e[c],o[a]={x:r.parse(h[0],c),y:s.parse(h[1],c)};return o}parseObjectData(t,e,i,n){const{xScale:r,yScale:s}=t,{xAxisKey:o="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:r.parse(wh(d,o),u),y:s.parse(wh(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,r=this._cachedMeta,s=e[t.axis];return Cf({keys:Af(n,!0),values:e._stacks[t.axis]},s,r.index,{mode:i})}updateRangeFromParsed(t,e,i,n){const r=i[e.axis];let s=null===r?NaN:r;const o=n&&i._stacks[e.axis];n&&o&&(n.values=o,s=Cf(n,r,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,e){const i=this._cachedMeta,n=i._parsed,r=i._sorted&&t===i.iScale,s=n.length,o=this._getOtherScale(t),a=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:Af(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:r}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:r?i:Number.POSITIVE_INFINITY}}(o);let u,d;function f(){d=n[u];const e=d[o.axis];return!lh(d[t.axis])||c>e||h<e}for(u=0;u<s&&(f()||(this.updateRangeFromParsed(l,t,d,a),!r));++u);if(r)for(u=s-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,r,s;for(n=0,r=e.length;n<r;++n)s=e[n][t.axis],lh(s)&&i.push(s);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,n=e.vScale,r=this.getParsed(t);return{label:i?""+i.getLabelForValue(r[i.axis]):"",value:n?""+n.getLabelForValue(r[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,n,r;return ah(t)?(e=t.top,i=t.right,n=t.bottom,r=t.left):e=i=n=r=t,{top:e,right:i,bottom:n,left:r,disabled:!1===t}}(hh(this.options.clip,function(t,e,i){if(!1===i)return!1;const n=Mf(t,i),r=Mf(e,i);return{top:r.end,right:n.end,bottom:r.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||[],r=e.chartArea,s=[],o=this._drawStart||0,a=this._drawCount||n.length-o,l=this.options.drawActiveElementsOnTop;let c;for(i.dataset&&i.dataset.draw(t,r,o,a),c=o;c<o+a;++c){const e=n[c];e.hidden||(e.active&&l?s.push(e):e.draw(t,r))}for(c=0;c<s.length;++c)s[c].draw(t,r)}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 r;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];r=e.$context||(e.$context=function(t,e,i){return Sd(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),r.parsed=this.getParsed(t),r.raw=n.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=function(t,e){return Sd(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=n,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=i,r}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,r=this._cachedDataOpts,s=t+"-"+e,o=r[s],a=this.enableOptionSharing&&Sh(i);if(o)return Rf(o,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(td.elements[t]),f=l.resolveNamedOptions(u,d,(()=>this.getContext(i,n)),h);return f.$shared&&(f.$shared=a,r[s]=Object.freeze(Rf(f,a))),f}_resolveAnimations(t,e,i){const n=this.chart,r=this._cachedDataOpts,s=`animation-${e}`,o=r[s];if(o)return o;let a;if(!1!==n.options.animation){const n=this.chart.config,r=n.datasetAnimationScopeKeys(this._type,e),s=n.getOptionScopes(this.getDataset(),r);a=n.createResolver(s,this.getContext(t,i,e))}const l=new Ef(n,a&&a.animations);return a&&a._cacheable&&(r[s]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||If(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),n=this._sharedOptions,r=this.getSharedOptions(i),s=this.includeOptions(e,r)||r!==n;return this.updateSharedOptions(r,e,i),{sharedOptions:r,includeOptions:s}}updateElement(t,e,i,n){If(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!If(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const r=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(r)||r})}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,r=e.length,s=Math.min(r,n);s&&this.parse(0,s),r>n?this._insertElements(n,r-n,t):r<n&&this._removeElements(r,n-r)}_insertElements(t,e,i=!0){const n=this._cachedMeta,r=n.data,s=t+e;let o;const a=t=>{for(t.length+=e,o=t.length-1;o>=s;o--)t[o]=t[o-e]};for(a(r),o=t;o<s;++o)r[o]=new this.dataElementType;this._parsing&&a(n._parsed),this.parse(t,e),i&&this.updateElements(r,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&&zf(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)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Nf(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let n=[];for(let e=0,r=i.length;e<r;e++)n=n.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=iu(n.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let n,r,s,o,a=e._length;const l=()=>{32767!==s&&-32768!==s&&(Sh(o)&&(a=Math.min(a,Math.abs(s-o)||a)),o=s)};for(n=0,r=i.length;n<r;++n)s=e.getPixelForValue(i[n]),l();for(o=void 0,n=0,r=e.ticks.length;n<r;++n)s=e.getPixelForTick(n),l();return a}
vendor: 4,515 bytes, line 2
2function jf(t,e,i,n){return oh(t)?function(t,e,i,n){const r=i.parse(t[0],n),s=i.parse(t[1],n),o=Math.min(r,s),a=Math.max(r,s);let l=o,c=a;Math.abs(o)>Math.abs(a)&&(l=a,c=o),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:r,end:s,min:o,max:a}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function Bf(t,e,i,n){const r=t.iScale,s=t.vScale,o=r.getLabels(),a=r===s,l=[];let c,h,u,d;for(c=i,h=i+n;c<h;++c)d=e[c],u={},u[r.axis]=a||r.parse(o[c],c),l.push(jf(d,u,s,c));return l}function Vf(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Wf(t,e,i,n){let r=e.borderSkipped;const s={};if(!r)return void(t.borderSkipped=s);if(!0===r)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:a,reverse:l,top:c,bottom:h}=function(t){let e,i,n,r,s;return t.horizontal?(e=t.base>t.x,i="left",n="right"):(e=t.base<t.y,i="bottom",n="top"),e?(r="end",s="start"):(r="start",s="end"),{start:i,end:n,reverse:e,top:r,bottom:s}}(t);"middle"===r&&i&&(t.enableBorderRadius=!0,(i._top||0)===n?r=c:(i._bottom||0)===n?r=h:(s[Hf(h,o,a,l)]=!0,r=c)),s[Hf(r,o,a,l)]=!0,t.borderSkipped=s}function Hf(t,e,i,n){var r,s,o;return n?(o=i,t=$f(t=(r=t)===(s=e)?o:r===o?s:r,i,e)):t=$f(t,e,i),t}function $f(t,e,i){return"start"===t?e:"end"===t?i:t}function qf(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}Ff.defaults={},Ff.prototype.datasetElementType=null,Ff.prototype.dataElementType=null;class Uf extends Ff{parsePrimitiveData(t,e,i,n){return Bf(t,e,i,n)}parseArrayData(t,e,i,n){return Bf(t,e,i,n)}parseObjectData(t,e,i,n){const{iScale:r,vScale:s}=t,{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing,l="x"===r.axis?o:a,c="x"===s.axis?o:a,h=[];let u,d,f,p;for(u=i,d=i+n;u<d;++u)p=e[u],f={},f[r.axis]=r.parse(wh(p,l),u),h.push(jf(wh(p,c),f,s,u));return h}updateRangeFromParsed(t,e,i,n){super.updateRangeFromParsed(t,e,i,n);const r=i._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:n}=e,r=this.getParsed(t),s=r._custom,o=Vf(s)?"["+s.start+", "+s.end+"]":""+n.getLabelForValue(r[n.axis]);return{label:""+i.getLabelForValue(r[i.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,n){const r="reset"===n,{index:s,_cachedMeta:{vScale:o}}=this,a=o.getBasePixel(),l=o.isHorizontal(),c=this._getRuler(),{sharedOptions:h,includeOptions:u}=this._getSharedOptions(e,n);for(let d=e;d<e+i;d++){const e=this.getParsed(d),i=r||sh(e[o.axis])?{base:a,head:a}:this._calculateBarValuePixels(d),f=this._calculateBarIndexPixels(d,c),p=(e._stacks||{})[o.axis],g={horizontal:l,base:i.base,enableBorderRadius:!p||Vf(e._custom)||s===p._top||s===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};u&&(g.options=h||this.resolveDataElementOptions(d,t[d].active?"active":n));const m=g.options||t[d].options;Wf(g,m,p,s),qf(g,m,c.ratio),this.updateElement(t[d],d,g,n)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,n=i.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),r=i.options.stacked,s=[],o=t=>{const i=t.controller.getParsed(e),n=i&&i[t.vScale.axis];if(sh(n)||isNaN(n))return!0};for(const i of n)if((void 0===e||!o(i))&&((!1===r||-1===s.indexOf(i.stack)||void 0===r&&void 0===i.stack)&&s.push(i.stack),i.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const n=this._getStacks(t,i),r=void 0!==e?n.indexOf(e):-1;return-1===r?n.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,n=[];let r,s;for(r=0,s=e.data.length;r<s;++r)n.push(i.getPixelForValue(this.getParsed(r)[i.axis],r));const o=t.barThickness;return{min:o||Nf(e),pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i},options:{base:n,minBarLength:r}}=this,s=n||0,o=this.getParsed(t),a=o._custom,l=Vf(a);let c,h,u=o[e.axis],d=0,f=i?this.applyStack(e,o,i):u;f!==u&&(d=f-u,f=u),l&&(u=a.barStart,f=a.barEnd-a.barStart,0!==u&&Rh(u)!==Rh(a.barEnd)&&(d=0),d+=u);const p=sh(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)<r){h=function(t,e,
2i){return 0!==t?Rh(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(h,e,s)*r,u===s&&(g-=h/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),n=Math.min(t,i),o=Math.max(t,i);g=Math.max(Math.min(g,o),n),c=g+h}if(g===e.getPixelForValue(s)){const t=Rh(h)*e.getLineWidthForValue(s)/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,r=n.skipNull,s=hh(n.maxBarThickness,1/0);let o,a;if(e.grouped){const i=r?this._getStackCount(t):e.stackCount,l="flex"===n.barThickness?function(t,e,i,n){const r=e.pixels,s=r[t];let o=t>0?r[t-1]:null,a=t<r.length-1?r[t+1]:null;const l=i.categoryPercentage;null===o&&(o=s-(null===a?e.end-e.start:a-s)),null===a&&(a=s+s-o);const c=s-(s-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/n,ratio:i.barPercentage,start:c}}(t,e,n,i):function(t,e,i,n){const r=i.barThickness;let s,o;return sh(r)?(s=e.min*i.categoryPercentage,o=i.barPercentage):(s=r*n,o=1),{chunk:s/n,ratio:o,start:e.pixels[t]-s/2}}(t,e,n,i),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0);o=l.start+l.chunk*c+l.chunk/2,a=Math.min(s,l.chunk*l.ratio)}else o=i.getPixelForValue(this.getParsed(t)[i.axis],t),a=Math.min(s,e.min*e.ratio);return{base:o-a/2,head:o+a/2,center:o,size:a}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,n=i.length;let r=0;for(;r<n;++r)null!==this.getParsed(r)[e.axis]&&i[r].draw(this._ctx)}}Uf.id="bar",Uf.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Uf.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Yf extends Ff{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,n){const r=super.parsePrimitiveData(t,e,i,n);for(let t=0;t<r.length;t++)r[t]._custom=this.resolveDataElementOptions(t+i).radius;return r}parseArrayData(t,e,i,n){const r=super.parseArrayData(t,e,i,n);for(let t=0;t<r.length;t++){const n=e[i+t];r[t]._custom=hh(n[2],this.resolveDataElementOptions(t+i).radius)}return r}parseObjectData(t,e,i,n){const r=super.parseObjectData(t,e,i,n);for(let t=0;t<r.length;t++){const n=e[i+t];r[t]._custom=hh(n&&n.r&&+n.r,this.resolveDataElementOptions(t+i).radius)}return r}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,r=this.getParsed(t),s=i.getLabelForValue(r.x),o=n.getLabelForValue(r.y),a=r._custom;return{label:e.label,value:"("+s+", "+o+(a?", "+a:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const r="reset"===n,{iScale:s,vScale:o}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(e,n),c=s.axis,h=o.axis;for(let u=e;u<e+i;u++){const e=t[u],i=!r&&this.getParsed(u),d={},f=d[c]=r?s.getPixelForDecimal(.5):s.getPixelForValue(i[c]),p=d[h]=r?o.getBasePixel():o.getPixelForValue(i[h]);d.skip=isNaN(f)||isNaN(p),l&&(d.options=a||this.resolveDataElementOptions(u,e.active?"active":n),r&&(d.options.radius=0)),this.updateElement(e,u,d,n)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let n=super.resolveDataElementOptions(t,e);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const r=n.radius;return"active"!==e&&(n.radius=0),n.radius+=hh(i&&i._custom,r),n}}Yf.id="bubble",Yf.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Yf.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Xf extends Ff{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 r,s,o=t=>+i[t];if(ah(i[t])){const{key:t="value"}=this._parsing;o=e=>+wh(i[e],t)}for(r=t,s=t+e;r<s;++r)n._parsed[r]=o(r)}}_getRotation(){return Vh(this.options.rotation-90)}_getCircumference(){return Vh(this.options.circumference)}_getRotationExtents(){let t=Ch,e=-Ch;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const n=this.chart.getDatasetMeta(i).controller,r=n._getRotation(),s=n._getCircumference();t=Math.min(t,r),e=Math.max(e,r+s)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,n=this._cachedMeta,r=n.data,s=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,o=Math.max((Math.min(i.width,i.height)-s)/2,0),a=Math.min((l=this.options.cutout,c=o,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1
vendor: 5,574 bytes, line 2
2);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,r=1,s=0,o=0;if(e<Ch){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)=>Xh(t,a,l,!0)?1:Math.max(e,e*i,n,n*i),p=(t,e,n)=>Xh(t,a,l,!0)?-1:Math.min(e,e*i,n,n*i),g=f(0,c,u),m=f(Th,h,d),v=p(Ah,c,u),b=p(Ah+Th,h,d);n=(g-v)/2,r=(m-b)/2,s=-(g+v)/2,o=-(m+b)/2}return{ratioX:n,ratioY:r,offsetX:s,offsetY:o}}(d,u,a),v=(i.width-s)/f,b=(i.height-s)/p,y=Math.max(Math.min(v,b)/2,0),_=uh(this.options.radius,y),x=(_-Math.max(_*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*_,this.offsetY=m*_,n.total=this.calculateTotal(),this.outerRadius=_-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*h,0),this.updateElements(r,0,r.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,r=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]*r/Ch)}updateElements(t,e,i,n){const r="reset"===n,s=this.chart,o=s.chartArea,a=s.options.animation,l=(o.left+o.right)/2,c=(o.top+o.bottom)/2,h=r&&a.animateScale,u=h?0:this.innerRadius,d=h?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,n);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,r);for(g=e;g<e+i;++g){const e=this._circumference(g,r),i=t[g],s={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:d,innerRadius:u};p&&(s.options=f||this.resolveDataElementOptions(g,i.active?"active":n)),m+=e,this.updateElement(i,g,s,n)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,n=0;for(i=0;i<e.length;i++){const r=t._parsed[i];null===r||isNaN(r)||!this.chart.getDataVisibility(i)||e[i].hidden||(n+=Math.abs(r))}return n}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?Ch*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],r=cf(e._parsed[t],i.options.locale);return{label:n[t]||"",value:r}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,r,s,o,a;if(!t)for(n=0,r=i.data.datasets.length;n<r;++n)if(i.isDatasetVisible(n)){s=i.getDatasetMeta(n),t=s.data,o=s.controller;break}if(!t)return 0;for(n=0,r=t.length;n<r;++n)a=o.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(hh(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Xf.id="doughnut",Xf.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"},Xf.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Xf.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 r=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.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 oh(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class Gf extends Ff{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:n=[],_dataset:r}=e,s=this.chart._animationsDisabled;let{start:o,count:a}=au(e,n,s);this._drawStart=o,this._drawCount=a,lu(e)&&(o=0,a=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!r._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:!s,options:l},t),this.updateElements(n,o,a,t)}updateElements(t,e,i,n){const r="reset"===n,{iScale:s,vScale:o,_stacked:a,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(e,n),u=s.axis,d=o.axis,{spanGaps:f,segment:p}=this.options,g=Nh(f)?f:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||r||"none"===n;let v=e>0&&this.getParsed(e-1);for(let f=e;f<e+i;++f){const e=t[f],i=this.getParsed(f),b=m?e:{},y=sh(i[d]),_=b[u]=s.getPixelForValue(i[u],f),x=b[d]=r||y?o.getBasePixel():o.getPixelForValue(a?this.applyStack(o,i,a):i[d],f);b.skip=isNaN(_)||isNaN(x)||y,b.stop=f>0&&Math.abs(i[u]-v[u])>g,p&&(b.parsed=i,b.raw=l.data[f]),h&&(b.options=c||this.resolveDataElementOptions(f,e.active?"active":n)),m||this.updateElement(e,f,b,n),v=i}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const r=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));
2return Math.max(i,r,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Gf.id="line",Gf.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Gf.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Kf extends Ff{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||[],r=cf(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:r}}parseObjectData(t,e,i,n){return Nd.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const n=this.getParsed(i).r;!isNaN(n)&&this.chart.getDataVisibility(i)&&(n<e.min&&(e.min=n),n>e.max&&(e.max=n))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),r=Math.max(n/2,0),s=(r-Math.max(i.cutoutPercentage?r/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=r-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(t,e,i,n){const r="reset"===n,s=this.chart,o=s.options.animation,a=this._cachedMeta.rScale,l=a.xCenter,c=a.yCenter,h=a.getIndexAngle(0)-.5*Ah;let u,d=h;const f=360/this.countVisibleElements();for(u=0;u<e;++u)d+=this._computeAngle(u,n,f);for(u=e;u<e+i;u++){const e=t[u];let i=d,p=d+this._computeAngle(u,n,f),g=s.getDataVisibility(u)?a.getDistanceFromCenterForValue(this.getParsed(u).r):0;d=p,r&&(o.animateScale&&(g=0),o.animateRotate&&(i=p=h));const m={x:l,y:c,innerRadius:0,outerRadius:g,startAngle:i,endAngle:p,options:this.resolveDataElementOptions(u,e.active?"active":n)};this.updateElement(e,u,m,n)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?Vh(this.resolveDataElementOptions(t,e).angle||i):0}}Kf.id="polarArea",Kf.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Kf.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 r=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.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 Zf extends Xf{}Zf.id="pie",Zf.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Qf extends Ff{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,n){return Nd.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta,i=e.dataset,n=e.data||[],r=e.iScale.getLabels();if(i.points=n,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const s={_loop:!0,_fullLoop:r.length===n.length,options:e};this.updateElement(i,void 0,s,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,i,n){const r=this._cachedMeta.rScale,s="reset"===n;for(let o=e;o<e+i;o++){const e=t[o],i=this.resolveDataElementOptions(o,e.active?"active":n),a=r.getPointPositionForValue(o,this.getParsed(o).r),l=s?r.xCenter:a.x,c=s?r.yCenter:a.y,h={x:l,y:c,angle:a.angle,skip:isNaN(l)||isNaN(c),options:i};this.updateElement(e,o,h,n)}}}Qf.id="radar",Qf.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Qf.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Jf{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 Nh(this.x)&&Nh(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}}Jf.defaults={},Jf.defaultRoutes=void 0;const tp={values:t=>oh(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let r,s=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)&&(r="scientific"),s=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const o=Ih(Math.abs(s)),a=Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),cf(t,n,l)},logarithmic(t,e,i){if(0===t)return"0";const n=t/Math.pow(10,Math.floor(Ih(t)));return 1===n||2===n||5===n?tp.numeric.call(this,t,e,i):""}};var ep={formatters:tp};function ip(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),r=t._maxLength/i;return Math.floor(Math.min(n,r))}(t),r=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):[],s=r.length,o=r[0],a=r[s-1],l=[];
vendor: 21,485 bytes, line 2
2if(s>n)return function(t,e,i,n){let r,s=0,o=i[0];for(n=Math.ceil(n),r=0;r<t.length;r++)r===o&&(e.push(t[r]),s++,o=i[s*n])}(e,l,r,s/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),r=e.length/i;if(!n)return Math.max(r,1);const s=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=s.length-1;t<e;t++){const e=s[t];if(e>r)return e}return Math.max(r,1)}(r,e,n);if(s>0){let t,i;const n=s>1?Math.round((a-o)/(s-1)):null;for(np(e,l,c,sh(n)?0:o-n,o),t=0,i=s-1;t<i;t++)np(e,l,c,r[t],r[t+1]);return np(e,l,c,a,sh(n)?e.length:a+n),l}return np(e,l,c),l}function np(t,e,i,n,r){const s=hh(n,0),o=Math.min(hh(r,t.length),t.length);let a,l,c,h=0;for(i=Math.ceil(i),r&&(a=r-n,i=a/Math.floor(a/i)),c=s;c<0;)h++,c=Math.round(s+h*i);for(l=Math.max(s,0);l<o;l++)l===c&&(e.push(t[l]),h++,c=Math.round(s+h*i))}td.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:ep.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),td.route("scale.ticks","color","","color"),td.route("scale.grid","color","","borderColor"),td.route("scale.grid","borderColor","","borderColor"),td.route("scale.title","color","","color"),td.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),td.describe("scales",{_fallback:"scale"}),td.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const rp=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function sp(t,e){const i=[],n=t.length/e,r=t.length;let s=0;for(;s<r;s+=n)i.push(t[Math.floor(s)]);return i}function op(t,e,i){const n=t.ticks.length,r=Math.min(e,n-1),s=t._startPixel,o=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(r);if(!(i&&(l=1===n?Math.max(c-s,o-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(r-1))/2,c+=r<e?l:-l,c<s-a||c>o+a)))return c}function ap(t){return t.drawTicks?t.tickLength:0}function lp(t,e){if(!t.display)return 0;const i=wd(t.font,e),n=xd(t.padding);return(oh(t.text)?t.text.length:1)*i.lineHeight+n.height}function cp(t,e,i){let n=su(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class hp extends Jf{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=ch(t,Number.POSITIVE_INFINITY),e=ch(e,Number.NEGATIVE_INFINITY),i=ch(i,Number.POSITIVE_INFINITY),n=ch(n,Number.NEGATIVE_INFINITY),{min:ch(t,i),max:ch(e,n),minDefined:lh(t),maxDefined:lh(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:r,maxDefined:s}=this.getUserBounds();if(r&&s)return{min:i,max:n};const o=this.getMatchingVisibleMetas();for(let a=0,l=o.length;a<l;++a)e=o[a].controller.getMinMax(this,t),r||(i=Math.min(i,e.min)),s||(n=Math.max(n,e.max));return i=s&&i>n?n:i,n=r&&i>n?i:n,{min:ch(i,ch(n,i)),max:ch(n,ch(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(){dh(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:r,ticks:s}=this.options,o=s.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:r}=t,s=uh(e,(r-n)/2),o=(t,e)=>i&&0===t?0:t+e;return{min:o(n,-Math.abs(s)),max:o(r,s)}}(this,r,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=o<this.ticks.length;this._convertTicksToLabels(a?sp(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=ip(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){dh(this.options.afterUpdate,[this])}beforeSetDimensions(){dh(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(){dh(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),dh(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){dh(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,n,r;for(i=0,n=t.length;i<n;i++)r=t[i],r.label=dh(e.callback,[r.value,i,t],this)}afterTickToLabelConversion(){dh(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){dh(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=this.ticks.length,n=e.minRotation||0,r=e.maxRotation;let s,o,a,l=n;if(!this._isVisible()||!e.display||n>=r||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const c=this._getLabelSizes(),h=c.widest.width,u=c.highest.height,d=Gh(this.chart.width-h,0,this.maxWidth);s=t.offset?this.maxWidth/i:d/(i-1),h+6>s&&(s=d/(i-(t.offset?.5:1)),o=this.maxHeight-ap(t.grid)-e.padding-lp(t.title,this.chart.options.font),a=Math.sqrt(h*h+u*u),l=Wh(Math.min(Math.asin(Gh((c.highest.height+6)/s,-1,1)),Math.asin(Gh(o/a,-1,1))-Math.asin(Gh(u/a,-1,1)))),l=Math.max(n,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){dh(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){dh(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:r}}=this,s=this._isVisible(),o=this.isHorizontal();if(s){const s=lp(n,e.options.font);if(o?(t.width=this.maxWidth,t.height=ap(r)+s):(t.height=this.maxHeight,t.width=ap(r)+s),i.display&&this.ticks.length){const{first:e,last:n,widest:r,highest:s}=this._getLabelSizes(),a=2*i.padding,l=Vh(this.labelRotation),c=Math.cos(l),h=Math.sin(l);if(o){const e=i.mirror?0:h*r.width+c*s.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=i.mirror?0:c*r.width+h*s.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,n,h,c)}}this._handleMargins(),o?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,n){const{ticks:{align:r,padding:s},position:o}=this.options,a=0!==this.labelRotation,l="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,u=0;a?l?(h=n*t.width,u=i*e.height):(h=i*t.height,u=n*e.width):"start"===r?u=e.width:"end"===r?h=t.width:"inner"!==r&&(h=t.width/2,u=e.width/2),this.paddingLeft=Math.max((h-o+s)*this.width/(this.width-o),0),this.paddingRight=Math.max((u-c+s)*this.width/(this.width-c),0)}else{let i=e.height/2,n=t.height/2;"start"===r?(i=0,n=t.height):"end"===r&&(i=e.height,n=0),this.paddingTop=i+s,this.paddingBottom=n+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){dh(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++)sh(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=sp(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,e){const{ctx:i,_longestTextCache:n}=this,r=[],s=[];let o,a,l,c,h,u,d,f,p,g,m,v=0,b=0;for(o=0;o<e;++o){if(c=t[o].label,h=this._resolveTickFontOptions(o),i.font=u=h.string,d=n[u]=n[u]||{data:{},gc:[]},f=h.lineHeight,p=g=0,sh(c)||oh(c)){if(oh(c))for(a=0,l=c.length;a<l;++a)m=c[a],sh(m)||oh(m)||(p=ed(i,d.data,d.gc,p,m),g+=f)}else p=ed(i,d.data,d.gc,p,c),g=f;r.push(p),s.push(g),v=Math.max(p,v),b=Math.max(g,b)}!function(t,e){fh(t,(t=>{const i=t.gc,n=i.length/2;let r;if(n>e){for(r=0;r<n;++r)delete t.data[i[r]];i.splice(0,n)}}))}(n,e);const y=r.indexOf(v),_=s.indexOf(b),x=t=>({width:r[t]||0,height:s[t]||0});return{first:x(0),last:x(e-1),widest:x(y),highest:x(_),widths:r,heights:s}}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 Gh(this._alignToPixels?nd(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 Sd(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=Sd(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=Vh(this.labelRotation),i=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),r=this._getLabelSizes(),s=t.autoSkipPadding||0,o=r?r.widest.width+s:0,a=r?r.highest.height+s:0;return this.isHorizontal()?a*i>o*n?o/i:a/n:a*n<o*i?a/i:o/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:r,position:s}=n,o=r.offset,a=this.isHorizontal(),l=this.ticks.length+(o?1:0),c=ap(r),h=[],u=r.setContext(this.getContext()),d=u.drawBorder?u.borderWidth:0,f=d/2,p=function(t){return nd(i,t,d)};let g,m,v,b,y,_,x,w,k,S,E,M;if("top"===s)g=p(this.bottom),_=this.bottom-c,w=g-f,S=p(t.top)+f,M=t.bottom;else if("bottom"===s)g=p(this.top),S=t.top,M=p(t.bottom)-f,_=g+f,w=this.top+c;else if("left"===s)g=p(this.right),y=this.right-c,x=g-f,k=p(t.left)+f,E=t.right;else if("right"===s)g=p(this.left),k=t.left,E=p(t.right)-f,y=g+f,x=this.left+c;else if("x"===e){if("center"===s)g=p((t.top+t.bottom)/2+.5);else if(ah(s)){const t=Object.keys(s)[0],e=s[t];g=p(this.chart.scales[t].getPixelForValue(e))}S=t.top,M=t.bottom,_=g+f,w=_+c}else if("y"===e){if("center"===s)g=p((t.left+t.right)/2);else if(ah(s)){const t=Object.keys(s)[0],e=s[t];g=p(this.chart.scales[t].getPixelForValue(e))}y=g-f,x=y-c,k=t.left,E=t.right}const A=hh(n.ticks.maxTicksLimit,l),C=Math.max(1,Math.ceil(l/A));for(m=0;m<l;m+=C){const t=r.setContext(this.getContext(m)),e=t.lineWidth,n=t.color,s=t.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,u=t.tickColor,d=t.tickBorderDash||[],f=t.tickBorderDashOffset;v=op(this,m,o),void 0!==v&&(b=nd(i,v,e),a?y=x=k=E=b:_=w=S=M=b,h.push({tx1:y,ty1:_,tx2:x,ty2:w,x1:k,y1:S,x2:E,y2:M,width:e,color:n,borderDash:s,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:r}=i,s=this.isHorizontal(),o=this.ticks,{align:a,crossAlign:l,padding:c,mirror:h}=r,u=ap(i.grid),d=u+c,f=h?-c:d,p=-Vh(this.labelRotation),g=[];let m,v,b,y,_,x,w,k,S,E,M,A,C="middle";if("top"===n)x=this.bottom-f,w=this._getXAxisLabelAlignment();else if("bottom"===n)x=this.top+f,w=this._getXAxisLabelAlignment();else if("left"===n){const t=this._getYAxisLabelAlignment(u);w=t.textAlign,_=t.x}else if("right"===n){const t=this._getYAxisLabelAlignment(u);w=t.textAlign,_=t.x}else if("x"===e){if("center"===n)x=(t.top+t.bottom)/2+d;else if(ah(n)){const t=Object.keys(n)[0],e=n[t];x=this.chart.scales[t].getPixelForValue(e)+d}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===n)_=(t.left+t.right)/2-d;else if(ah(n)){const t=Object.keys(n)[0],e=n[t];_=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(u).textAlign}"y"===e&&("start"===a?C="top":"end"===a&&(C="bottom"));const O=this._getLabelSizes();for(m=0,v=o.length;m<v;++m){b=o[m],y=b.label;const t=r.setContext(this.getContext(m));k=this.getPixelForTick(m)+r.labelOffset,S=this._resolveTickFontOptions(m),E=S.lineHeight,M=oh(y)?y.length:1;const e=M/2,i=t.color,a=t.textStrokeColor,c=t.textStrokeWidth;let u,d=w;if(s?(_=k,"inner"===w&&(d=m===v-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),A="top"===n?"near"===l||0!==p?-M*E+E/2:"center"===l?-O.highest.height/2-e*E+E:-O.highest.height+E/2:"near"===l||0!==p?E/2:"center"===l?O.highest.height/2-e*E:O.highest.height-M*E,h&&(A*=-1)):(x=k,A=(1-M)*E/2),t.showLabelBackdrop){const e=xd(t.backdropPadding),i=O.heights[m],n=O.widths[m];let r=x+A-e.top,s=_-e.left;switch(C){case"middle":r-=i/2;break;case"bottom":r-=i}switch(w){case"center":s-=n/2;break;case"right":s-=n}u={left:s,top:r,width:n+e.width,height:i+e.height,color:t.backdropColor}}g.push({rotation:p,label:y,font:S,color:i,strokeColor:a,strokeWidth:c,textOffset:A,textAlign:d,textBaseline:C,translation:[_,x],backdrop:u})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Vh(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:n,padding:r}}=this.options,s=t+r,o=this._getLabelSizes().widest.width;let a,l;return"left"===e?n?(l=this.right+r,"near"===i?a="left":"center"===i?(a="center",l+=o/2):(a="right",l+=o)):(l=this.right-s,"near"===i?a="right":"center"===i?(a="center",l-=o/2):(a="left",l=this.left)):"right"===e?n?(l=this.left+r,"near"===i?a="right":"center"===i?(a="center",l-=o/2):(a="left",l-=o)):(l=this.left+s,"near"===i?a="left":"center"===i?(a="center",l+=o/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"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:r,height:s}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,n,r,s),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 r,s;const o=(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(r=0,s=n.length;r<s;++r){const t=n[r];e.drawOnChartArea&&o({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&o({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:i}}=this,n=i.setContext(this.getContext()),r=i.drawBorder?n.borderWidth:0;if(!r)return;const s=i.setContext(this.getContext(0)).lineWidth,o=this._borderValue;let a,l,c,h;this.isHorizontal()?(a=nd(t,this.left,r)-r/2,l=nd(t,this.right,s)+s/2,c=h=o):(c=nd(t,this.top,r)-r/2,h=nd(t,this.bottom,s)+s/2,a=l=o),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&&ld(e,i);const n=this._labelItems||(this._labelItems=this._computeLabelItems(t));let r,s;for(r=0,s=n.length;r<s;++r){const t=n[r],i=t.font,s=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),dd(e,s,0,t.textOffset,i,t)}i&&cd(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:n}}=this;if(!i.display)return;const r=wd(i.font),s=xd(i.padding),o=i.align;let a=r.lineHeight/2;"bottom"===e||"center"===e||ah(e)?(a+=s.bottom,oh(i.text)&&(a+=r.lineHeight*(i.text.length-1))):a+=s.top;const{titleX:l,titleY:c,maxWidth:h,rotation:u}=function(t,e,i,n){const{top:r,left:s,bottom:o,right:a,chart:l}=t,{chartArea:c,scales:h}=l;let u,d,f,p=0;const g=o-r,m=a-s;if(t.isHorizontal()){if(d=ou(n,s,a),ah(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:rp(t,i,e);u=a-s}else{if(ah(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:rp(t,i,e);f=ou(n,o,r),p="left"===i?-Th:Th}return{titleX:d,titleY:f,maxWidth:u,rotation:p}}(this,a,e,o);dd(t,i.text,0,0,r,{color:i.color,maxWidth:h,rotation:u,textAlign:cp(o,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=hh(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===hp.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 r,s;for(r=0,s=e.length;r<s;++r){const s=e[r];s[i]!==this.id||t&&s.type!==t||n.push(s)}return n}_resolveTickFontOptions(t){return wd(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class up{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,r=t.id,s=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);
2return r in n||(n[r]=t,function(t,e,i){const n=bh(Object.create(null),[i?td.get(i):{},td.get(e),t.defaults]);td.set(e,n),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const n=i.split("."),r=n.pop(),s=[t].concat(n).join("."),o=e[i].split("."),a=o.pop(),l=o.join(".");td.route(s,r,l,a)}))}(e,t.defaultRoutes);t.descriptors&&td.describe(e,t.descriptors)}(t,s,i),this.override&&td.override(t.id,t.overrides)),s}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 td[n]&&(delete td[n][i],this.override&&delete Ku[i])}}var dp=new class{constructor(){this.controllers=new up(Ff,"datasets",!0),this.elements=new up(Jf,"elements"),this.plugins=new up(Object,"plugins"),this.scales=new up(hp,"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):fh(e,(e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)}))}))}_exec(t,e,i){const n=kh(t);dh(i["before"+n],[],i),e[t](i),dh(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 fp extends Ff{update(t){const e=this._cachedMeta,{data:i=[]}=e,n=this.chart._animationsDisabled;let{start:r,count:s}=au(e,i,n);if(this._drawStart=r,this._drawCount=s,lu(e)&&(r=0,s=i.length),this.options.showLine){const{dataset:r,_dataset:s}=e;r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=i;const o=this.resolveDatasetElementOptions(t);o.segment=this.options.segment,this.updateElement(r,void 0,{animated:!n,options:o},t)}this.updateElements(i,r,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=dp.getElement("line")),super.addElements()}updateElements(t,e,i,n){const r="reset"===n,{iScale:s,vScale:o,_stacked:a,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,n),h=this.getSharedOptions(c),u=this.includeOptions(n,h),d=s.axis,f=o.axis,{spanGaps:p,segment:g}=this.options,m=Nh(p)?p:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||r||"none"===n;let b=e>0&&this.getParsed(e-1);for(let c=e;c<e+i;++c){const e=t[c],i=this.getParsed(c),p=v?e:{},y=sh(i[f]),_=p[d]=s.getPixelForValue(i[d],c),x=p[f]=r||y?o.getBasePixel():o.getPixelForValue(a?this.applyStack(o,i,a):i[f],c);p.skip=isNaN(_)||isNaN(x)||y,p.stop=c>0&&Math.abs(i[d]-b[d])>m,g&&(p.parsed=i,p.raw=l.data[c]),u&&(p.options=h||this.resolveDataElementOptions(c,e.active?"active":n)),v||this.updateElement(e,c,p,n),b=i}this.updateSharedOptions(h,n,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,n=i.options&&i.options.borderWidth||0;if(!e.length)return n;const r=e[0].size(this.resolveDataElementOptions(0)),s=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,r,s)/2}}fp.id="scatter",fp.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},fp.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var pp=Object.freeze({__proto__:null,BarController:Uf,BubbleController:Yf,DoughnutController:Xf,LineController:Gf,PolarAreaController:Kf,PieController:Zf,RadarController:Qf,ScatterController:fp});function gp(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class mp{constructor(t){this.options=t||{}}init(t){}formats(){return gp()}parse(t,e){return gp()}format(t,e){return gp()}add(t,e,i){return gp()}diff(t,e,i){return gp()}startOf(t,e,i){return gp()}endOf(t,e){return gp()}}mp.override=function(t){Object.assign(mp.prototype,t)};var vp={_date:mp};
vendor: 4,309 bytes, line 2
2function bp(t,e,i,n){const{controller:r,data:s,_sorted:o}=t,a=r._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&o&&s.length){const t=a._reversePixels?Jh:Qh;if(!n)return t(s,e,i);if(r._sharedOptions){const n=s[0],r="function"==typeof n.getRange&&n.getRange(e);if(r){const n=t(s,e,i-r),o=t(s,e,i+r);return{lo:n.lo,hi:o.hi}}}}return{lo:0,hi:s.length-1}}function yp(t,e,i,n,r){const s=t.getSortedVisibleDatasetMetas(),o=i[e];for(let t=0,i=s.length;t<i;++t){const{index:i,data:a}=s[t],{lo:l,hi:c}=bp(s[t],e,o,r);for(let t=l;t<=c;++t){const e=a[t];e.skip||n(e,i,t)}}}function _p(t,e,i,n,r){const s=[];if(!r&&!t.isPointInArea(e))return s;return yp(t,i,e,(function(i,o,a){(r||ad(i,t.chartArea,0))&&i.inRange(e.x,e.y,n)&&s.push({element:i,datasetIndex:o,index:a})}),!0),s}function xp(t,e,i,n,r,s){let o=[];const a=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){const r=e?Math.abs(t.x-n.x):0,s=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(s,2))}}(i);let l=Number.POSITIVE_INFINITY;return yp(t,i,e,(function(i,c,h){const u=i.inRange(e.x,e.y,r);if(n&&!u)return;const d=i.getCenterPoint(r);if(!(!!s||t.isPointInArea(d))&&!u)return;const f=a(e,d);f<l?(o=[{element:i,datasetIndex:c,index:h}],l=f):f===l&&o.push({element:i,datasetIndex:c,index:h})})),o}function wp(t,e,i,n,r,s){return s||t.isPointInArea(e)?"r"!==i||n?xp(t,e,i,n,r,s):function(t,e,i,n){let r=[];return yp(t,i,e,(function(t,i,s){const{startAngle:o,endAngle:a}=t.getProps(["startAngle","endAngle"],n),{angle:l}=$h(t,{x:e.x,y:e.y});Xh(l,o,a)&&r.push({element:t,datasetIndex:i,index:s})})),r}(t,e,i,r):[]}function kp(t,e,i,n,r){const s=[],o="x"===i?"inXRange":"inYRange";let a=!1;return yp(t,i,e,((t,n,l)=>{t[o](e[i],r)&&(s.push({element:t,datasetIndex:n,index:l}),a=a||t.inRange(e.x,e.y,r))})),n&&!a?[]:s}var Sp={evaluateInteractionItems:yp,modes:{index(t,e,i,n){const r=Qd(e,t),s=i.axis||"x",o=i.includeInvisible||!1,a=i.intersect?_p(t,r,s,n,o):wp(t,r,s,!1,n,o),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=a[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,i,n){const r=Qd(e,t),s=i.axis||"xy",o=i.includeInvisible||!1;let a=i.intersect?_p(t,r,s,n,o):wp(t,r,s,!1,n,o);if(a.length>0){const e=a[0].datasetIndex,i=t.getDatasetMeta(e).data;a=[];for(let t=0;t<i.length;++t)a.push({element:i[t],datasetIndex:e,index:t})}return a},point:(t,e,i,n)=>_p(t,Qd(e,t),i.axis||"xy",n,i.includeInvisible||!1),nearest(t,e,i,n){const r=Qd(e,t),s=i.axis||"xy",o=i.includeInvisible||!1;return wp(t,r,s,i.intersect,n,o)},x:(t,e,i,n)=>kp(t,Qd(e,t),"x",i.intersect,n),y:(t,e,i,n)=>kp(t,Qd(e,t),"y",i.intersect,n)}};const Ep=["left","top","right","bottom"];function Mp(t,e){return t.filter((t=>t.pos===e))}function Ap(t,e){return t.filter((t=>-1===Ep.indexOf(t.pos)&&t.box.axis===e))}function Cp(t,e){return t.sort(((t,i)=>{const n=e?i:t,r=e?t:i;return n.weight===r.weight?n.index-r.index:n.weight-r.weight}))}function Op(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:n,stackWeight:r}=i;if(!t||!Ep.includes(n))continue;const s=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=r}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:r}=e;let s,o,a;for(s=0,o=t.length;s<o;++s){a=t[s];const{fullSize:o}=a.box,l=i[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*n:o&&e.availableWidth,a.height=r):(a.width=n,a.height=c?c*r:o&&e.availableHeight)}return i}function Dp(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function Pp(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 Tp(t,e,i,n){const{pos:r,box:s}=i,o=t.maxPadding;if(!ah(r)){i.size&&(t[r]-=i.size);const e=n[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?s.height:s.width),i.size=e.size/e.count,t[r]+=i.size}s.getPadding&&Pp(o,s.getPadding());const a=Math.max(0,e.outerWidth-Dp(o,t,"left","right")),l=Math.max(0,e.outerHeight-Dp(o,t,"top","bottom")),c=a!==t.w,h=l!==t.h;return t.w=a,t.h=l,i.horizontal?{same:c,other:h}:{same:h,other:c}}function Lp(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"])}
vendor: 4,260 bytes, line 2
2function zp(t,e,i,n){const r=[];let s,o,a,l,c,h;for(s=0,o=t.length,c=0;s<o;++s){a=t[s],l=a.box,l.update(a.width||e.w,a.height||e.h,Lp(a.horizontal,e));const{same:o,other:u}=Tp(e,i,a,n);c|=o&&r.length,h=h||u,l.fullSize||r.push(a)}return c&&zp(r,e,i,n)||h}function Ip(t,e,i,n,r){t.top=i,t.left=e,t.right=e+n,t.bottom=i+r,t.width=n,t.height=r}function Rp(t,e,i,n){const r=i.padding;let{x:s,y:o}=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,s=l.size||t.height;Sh(l.start)&&(o=l.start),t.fullSize?Ip(t,r.left,o,i.outerWidth-r.right-r.left,s):Ip(t,e.left+l.placed,o,n,s),l.start=o,l.placed+=n,o=t.bottom}else{const n=e.h*c,o=l.size||t.width;Sh(l.start)&&(s=l.start),t.fullSize?Ip(t,s,r.top,o,i.outerHeight-r.bottom-r.top):Ip(t,s,e.top+l.placed,o,n),l.start=s,l.placed+=n,s=t.right}}e.x=s,e.y=o}td.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Fp={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 r=xd(t.options.layout.padding),s=Math.max(e-r.width,0),o=Math.max(i-r.height,0),a=function(t){const e=function(t){const e=[];let i,n,r,s,o,a;for(i=0,n=(t||[]).length;i<n;++i)r=t[i],({position:s,options:{stack:o,stackWeight:a=1}}=r),e.push({index:i,box:r,pos:s,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&s+o,stackWeight:a});return e}(t),i=Cp(e.filter((t=>t.box.fullSize)),!0),n=Cp(Mp(e,"left"),!0),r=Cp(Mp(e,"right")),s=Cp(Mp(e,"top"),!0),o=Cp(Mp(e,"bottom")),a=Ap(e,"x"),l=Ap(e,"y");return{fullSize:i,leftAndTop:n.concat(s),rightAndBottom:r.concat(l).concat(o).concat(a),chartArea:Mp(e,"chartArea"),vertical:n.concat(r).concat(l),horizontal:s.concat(o).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;fh(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:r,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/h,hBoxMaxHeight:o/2}),d=Object.assign({},r);Pp(d,xd(n));const f=Object.assign({maxPadding:d,w:s,h:o,x:r.left,y:r.top},r),p=Op(l.concat(c),u);zp(a.fullSize,f,u,p),zp(l,f,u,p),zp(c,f,u,p)&&zp(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),Rp(a.leftAndTop,f,u,p),f.x+=f.w,f.y+=f.h,Rp(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},fh(a.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class Np{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 jp extends Np{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Bp="$chartjs",Vp={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Wp=t=>null===t||""===t;const Hp=!!nf&&{passive:!0};function $p(t,e,i){t.canvas.removeEventListener(e,i,Hp)}function qp(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function Up(t,e,i){const n=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||qp(i.addedNodes,n),e=e&&!qp(i.removedNodes,n);e&&i()}));return r.observe(document,{childList:!0,subtree:!0}),r}function Yp(t,e,i){const n=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||qp(i.removedNodes,n),e=e&&!qp(i.addedNodes,n);e&&i()}));return r.observe(document,{childList:!0,subtree:!0}),r}const Xp=new Map;let Gp=0;function Kp(){const t=window.devicePixelRatio;
vendor: 4,265 bytes, line 2
2t!==Gp&&(Gp=t,Xp.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function Zp(t,e,i){const n=t.canvas,r=n&&Yd(n);if(!r)return;const s=ru(((t,e)=>{const n=r.clientWidth;i(t,e),n<r.clientWidth&&i()}),window),o=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||s(i,n)}));return o.observe(r),function(t,e){Xp.size||window.addEventListener("resize",Kp),Xp.set(t,e)}(t,s),o}function Qp(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){Xp.delete(t),Xp.size||window.removeEventListener("resize",Kp)}(t)}function Jp(t,e,i){const n=t.canvas,r=ru((e=>{null!==t.ctx&&i(function(t,e){const i=Vp[t.type]||t.type,{x:n,y:r}=Qd(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==r?r:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,Hp)}(n,e,r),r}class tg extends Np{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"),r=t.getAttribute("width");if(t[Bp]={initial:{height:n,width:r,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Wp(r)){const e=rf(t,"width");void 0!==e&&(t.width=e)}if(Wp(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=rf(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Bp])return!1;const i=e[Bp].initial;["height","width"].forEach((t=>{const n=i[t];sh(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[Bp],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),r={attach:Up,detach:Yp,resize:Zp}[e]||Jp;n[e]=r(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];if(!n)return;({attach:Qp,detach:Qp,resize:Qp}[e]||$p)(t,e,n),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return tf(t,e,i,n)}isAttached(t){const e=Yd(t);return!(!e||!e.isConnected)}}class eg{constructor(){this._init=[]}notify(t,e,i,n){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=n?this._descriptors(t).filter(n):this._descriptors(t),s=this._notify(r,t,e,i);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,e,i,n){n=n||{};for(const r of t){const t=r.plugin;if(!1===dh(t[i],[e,n,r.options],t)&&n.cancelable)return!1}return!0}invalidate(){sh(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=hh(i.options&&i.options.plugins,{}),r=function(t){const e={},i=[],n=Object.keys(dp.plugins.items);for(let t=0;t<n.length;t++)i.push(dp.getPlugin(n[t]));const r=t.plugins||[];for(let t=0;t<r.length;t++){const n=r[t];-1===i.indexOf(n)&&(i.push(n),e[n.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==n||e?function(t,{plugins:e,localIds:i},n,r){const s=[],o=t.getContext();for(const a of e){const e=a.id,l=ig(n[e],r);null!==l&&s.push({plugin:a,options:ng(t.config,{plugin:a,local:i[e]},l,o)})}return s}(t,r,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 ig(t,e){return e||!1!==t?!0===t?{}:t:null}function ng(t,{plugin:e,local:i},n,r){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(n,s);return i&&e.defaults&&o.push(e.defaults),t.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function rg(t,e){const i=td.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function sg(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 og(t){const e=t.options||(t.options={});e.plugins=hh(e.plugins,{}),e.scales=function(t,e){const i=Ku[t.type]||{scales:{}},n=e.scales||{},r=rg(t.type,e),s=Object.create(null),o=Object.create(null);
vendor: 8,816 bytes, line 2
2return Object.keys(n).forEach((t=>{const e=n[t];if(!ah(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=sg(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(a,r),c=i.scales||{};s[a]=s[a]||t,o[t]=yh(Object.create(null),[{axis:a},e,c[a],c[l]])})),t.data.datasets.forEach((i=>{const r=i.type||t.type,a=i.indexAxis||rg(r,e),l=(Ku[r]||{}).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),r=i[e+"AxisID"]||s[e]||e;o[r]=o[r]||Object.create(null),yh(o[r],[{axis:e},n[r],l[t]])}))})),Object.keys(o).forEach((t=>{const e=o[t];yh(e,[td.scales[e.type],td.scale])})),o}(t,e)}function ag(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const lg=new Map,cg=new Set;function hg(t,e){let i=lg.get(t);return i||(i=e(),lg.set(t,i),cg.add(i)),i}const ug=(t,e,i)=>{const n=wh(e,i);void 0!==n&&t.add(n)};class dg{constructor(t){this._config=function(t){return(t=t||{}).data=ag(t.data),og(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=ag(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(),og(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return hg(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return hg(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return hg(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return hg(`${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:r}=this,s=this._cachedScopes(t,i),o=s.get(e);if(o)return o;const a=new Set;e.forEach((e=>{t&&(a.add(t),e.forEach((e=>ug(a,t,e)))),e.forEach((t=>ug(a,n,t))),e.forEach((t=>ug(a,Ku[r]||{},t))),e.forEach((t=>ug(a,td,t))),e.forEach((t=>ug(a,Zu,t)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),cg.has(e)&&s.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Ku[e]||{},td.datasets[e]||{},{type:e},td,Zu]}resolveNamedOptions(t,e,i,n=[""]){const r={$shared:!0},{resolver:s,subPrefixes:o}=fg(this._resolverCache,t,n);let a=s;if(function(t,e){const{isScriptable:i,isIndexable:n}=Ad(t);for(const r of e){const e=i(r),s=n(r),o=(s||e)&&t[r];if(e&&(Eh(o)||pg(o))||s&&oh(o))return!0}return!1}(s,e)){r.$shared=!1;a=Md(s,i=Eh(i)?i():i,this.createResolver(t,i,o))}for(const t of e)r[t]=a[t];return r}createResolver(t,e,i=[""],n){const{resolver:r}=fg(this._resolverCache,t,i);return ah(e)?Md(r,e,void 0,n):r}}function fg(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const r=i.join();let s=n.get(r);if(!s){s={resolver:Ed(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},n.set(r,s)}return s}const pg=t=>ah(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||Eh(t[i])),!1);const gg=["top","bottom","left","right","chartArea"];function mg(t,e){return"top"===t||"bottom"===t||-1===gg.indexOf(t)&&"x"===e}function vg(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function bg(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),dh(i&&i.onComplete,[t],e)}function yg(t){const e=t.chart,i=e.options.animation;dh(i&&i.onProgress,[t],e)}function _g(t){return Ud()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const xg={},wg=t=>{const e=_g(t);return Object.values(xg).filter((t=>t.canvas===e)).pop()};function kg(t,e,i){const n=Object.keys(t);for(const r of n){const n=+r;if(n>=e){const s=t[r];delete t[r],(i>0||n>e)&&(t[n+i]=s)}}}class Sg{constructor(t,e){const i=this.config=new dg(e),n=_g(t),r=wg(n);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!Ud()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?jp:tg}(n)),this.platform.updateConfig(i);const o=this.platform.acquireContext(n,s.aspectRatio),a=o&&o.canvas,l=a&&a.height,c=a&&a.width;this.id=rh(),this.ctx=o,this.canvas=a,this.width=c,this.height=l,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new eg,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)),s.resizeDelay||0),this._dataChanges=[],xg[this.id]=this,o&&a?(_f.listen(this,"complete",bg),_f.listen(this,"progress",yg),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:r}=this;return sh(t)?e&&r?r: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():ef(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return rd(this.canvas,this.ctx),this}stop(){return _f.stop(this),this}resize(t,e){_f.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,r=i.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(n,t,e,r),o=i.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,ef(this,o,!0)&&(this.notifyPlugins("resize",{size:s}),dh(i.onResize,[this,s],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){fh(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 r=[];e&&(r=r.concat(Object.keys(e).map((t=>{const i=e[t],n=sg(t,i),r="r"===n,s="x"===n;return{options:i,dposition:r?"chartArea":s?"bottom":"left",dtype:r?"radialLinear":s?"category":"linear"}})))),fh(r,(e=>{const r=e.options,s=r.id,o=sg(s,r),a=hh(r.type,e.dtype);void 0!==r.position&&mg(r.position,o)===mg(e.dposition)||(r.position=e.dposition),n[s]=!0;let l=null;if(s in i&&i[s].type===a)l=i[s];else{l=new(dp.getScale(a))({id:s,type:a,ctx:this.ctx,chart:this}),i[l.id]=l}l.init(r,t)})),fh(n,((t,e)=>{t||delete i[e]})),fh(i,(t=>{Fp.configure(this,t,t.options),Fp.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(vg("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 r=this.getDatasetMeta(i);const s=n.type||this.config.type;if(r.type&&r.type!==s&&(this._destroyDatasetMeta(i),r=this.getDatasetMeta(i)),r.type=s,r.indexAxis=n.indexAxis||rg(s,this.options),r.order=n.order||0,r.index=i,r.label=""+n.label,r.visible=this.isDatasetVisible(i),r.controller)r.controller.updateIndex(i),r.controller.linkScales();else{const e=dp.getController(s),{datasetElementType:n,dataElementType:o}=td.datasets[s];Object.assign(e.prototype,{dataElementType:dp.getElement(o),datasetElementType:n&&dp.getElement(n)}),r.controller=new e(this,i),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){fh(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;
vendor: 4,642 bytes, line 2
2e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!n&&-1===r.indexOf(e);e.buildOrUpdateElements(i),s=Math.max(+e.getMaxOverflow(),s)}s=this._minPadding=i.layout.autoPadding?s:0,this._updateLayout(s),n||fh(r,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(vg("z","_idx"));const{_active:o,_lastEvent:a}=this;a?this._eventHandler(a,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){fh(this.scales,(t=>{Fp.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);Mh(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:n,count:r}of e){kg(t,n,"_removeElements"===i?-r:r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),n=i(0);for(let t=1;t<e;t++)if(!Mh(n,i(t)))return;return Array.from(n).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Fp.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],fh(this.boxes,(t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,Eh(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})&&(_f.has(this)?this.attached&&!_f.running(this)&&_f.start(this):(this.draw(),bg({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,r;for(n=0,r=e.length;n<r;++n){const r=e[n];t&&!r.visible||i.push(r)}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,r=this.chartArea,s={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",s)&&(n&&ld(e,{left:!1===i.left?0:r.left-i.left,right:!1===i.right?this.width:r.right+i.right,top:!1===i.top?0:r.top-i.top,bottom:!1===i.bottom?this.height:r.bottom+i.bottom}),t.controller.draw(),n&&cd(e),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return ad(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,n){const r=Sp.modes[e];return"function"==typeof r?r(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=Sd(null,{chart:this,type:"chart"}))}
vendor: 5,354 bytes, line 2
2getVisibleDatasetCount(){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",r=this.getDatasetMeta(t),s=r.controller._resolveAnimations(void 0,n);Sh(e)?(r.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),s.update(r,{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(),_f.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),rd(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete xg[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};fh(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])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let s;const o=()=>{n("attach",o),this.attached=!0,this.resize(),i("resize",r),i("detach",s)};s=()=>{this.attached=!1,n("resize",r),this._stop(),this._resize(0,0),i("attach",o)},e.isAttached(this.canvas)?o():s()}unbindEvents(){fh(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},fh(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let r,s,o,a;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+n+"DatasetHoverStyle"]()),o=0,a=t.length;o<a;++o){s=t[o];const e=s&&this.getDatasetMeta(s.datasetIndex).controller;e&&e[n+"HoverStyle"](s.element,s.datasetIndex,s.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}}));!ph(i,e)&&(this._active=i,this._lastEvent=null,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,r=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),s=r(e,t),o=i?t:r(t,e);s.length&&this.updateHoverStyle(s,n.mode,!1),o.length&&n.mode&&this.updateHoverStyle(o,n.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const r=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(r||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:n=[],options:r}=this,s=e,o=this._getActiveElements(t,n,i,s),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,i,n){return i&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,i,a);i&&(this._lastEvent=null,dh(r.onHover,[t,o,this],this),a&&dh(r.onClick,[t,o,this],this));const c=!ph(o,n);return(c||e)&&(this._active=o,this._updateHoverStyles(o,n,e)),this._lastEvent=l,c}_getActiveElements(t,e,i,n){if("mouseout"===t.type)return[];if(!i)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,n)}}const Eg=()=>fh(Sg.instances,(t=>t._plugins.invalidate())),Mg=!0;function Ag(t,e,i){const{startAngle:n,pixelMargin:r,x:s,y:o,outerRadius:a,innerRadius:l}=e;let c=r/a;t.beginPath(),t.arc(s,o,a,n-c,i+c),l>r?(c=r/l,t.arc(s,o,l,i+c,n-c,!0)):t.arc(s,o,r,i+Th,n-Th),t.closePath(),t.clip()}function Cg(t,e,i,n){const r=bd(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const s=(i-e)/2,o=Math.min(s,n*e/2),a=t=>{const e=(i-Math.min(s,t))*n/2;return Gh(t,0,Math.min(s,e))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:Gh(r.innerStart,0,o),innerEnd:Gh(r.innerEnd,0,o)}}function Og(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function Dg(t,e,i,n,r,s){const{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=e,u=Math.max(e.outerRadius+n+i-c,0),d=h>0?h+n+i+c:0;let f=0;const p=r-l;if(n){const t=((h>0?h-n:0)+(u>0?u-n:0))/2;f=(p-(0!==t?p*t/(t+n):p))/2}const g=(p-Math.max(.001,p*u-i/Ah)/u)/2,m=l+g+f,v=r-g-f,{outerStart:b,outerEnd:y,innerStart:_,innerEnd:x}=Cg(e,d,u,v-m),w=u-b,k=u-y,S=m+b/w,E=v-y/k,M=d+_,A=d+x,C=m+_/M,O
2=v-x/A;if(t.beginPath(),s){if(t.arc(o,a,u,S,E),y>0){const e=Og(k,E,o,a);t.arc(e.x,e.y,y,E,v+Th)}const e=Og(A,v,o,a);if(t.lineTo(e.x,e.y),x>0){const e=Og(A,O,o,a);t.arc(e.x,e.y,x,v+Th,O+Math.PI)}if(t.arc(o,a,d,v-x/d,m+_/d,!0),_>0){const e=Og(M,C,o,a);t.arc(e.x,e.y,_,C+Math.PI,m-Th)}const i=Og(w,m,o,a);if(t.lineTo(i.x,i.y),b>0){const e=Og(w,S,o,a);t.arc(e.x,e.y,b,m-Th,S)}}else{t.moveTo(o,a);const e=Math.cos(S)*u+o,i=Math.sin(S)*u+a;t.lineTo(e,i);const n=Math.cos(E)*u+o,r=Math.sin(E)*u+a;t.lineTo(n,r)}t.closePath()}function Pg(t,e,i,n,r,s){const{options:o}=e,{borderWidth:a,borderJoinStyle:l}=o,c="inner"===o.borderAlign;a&&(c?(t.lineWidth=2*a,t.lineJoin=l||"round"):(t.lineWidth=a,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,i){const{x:n,y:r,startAngle:s,pixelMargin:o,fullCircles:a}=e,l=Math.max(e.outerRadius-o,0),c=e.innerRadius+o;let h;for(i&&Ag(t,e,s+Ch),t.beginPath(),t.arc(n,r,c,s+Ch,s,!0),h=0;h<a;++h)t.stroke();for(t.beginPath(),t.arc(n,r,l,s,s+Ch),h=0;h<a;++h)t.stroke()}(t,e,c),c&&Ag(t,e,r),Dg(t,e,i,n,r,s),t.stroke())}Object.defineProperties(Sg,{defaults:{enumerable:Mg,value:td},instances:{enumerable:Mg,value:xg},overrides:{enumerable:Mg,value:Ku},registry:{enumerable:Mg,value:dp},version:{enumerable:Mg,value:"3.9.1"},getChart:{enumerable:Mg,value:wg},register:{enumerable:Mg,value:(...t)=>{dp.add(...t),Eg()}},unregister:{enumerable:Mg,value:(...t)=>{dp.remove(...t),Eg()}}});class Tg extends Jf{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:r,distance:s}=$h(n,{x:t,y:e}),{startAngle:o,endAngle:a,innerRadius:l,outerRadius:c,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2,d=hh(h,a-o)>=Ch||Xh(r,o,a),f=Kh(s,l+u,c+u);return d&&f}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:r,innerRadius:s,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:a,spacing:l}=this.options,c=(n+r)/2,h=(s+o+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,r=(e.spacing||0)/2,s=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>Ch?Math.floor(i/Ch):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>=Ah&&(o=n)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const a=function(t,e,i,n,r){const{fullCircles:s,startAngle:o,circumference:a}=e;let l=e.endAngle;if(s){Dg(t,e,i,n,o+Ch,r);for(let e=0;e<s;++e)t.fill();isNaN(a)||(l=o+a%Ch,a%Ch==0&&(l+=Ch))}return Dg(t,e,i,n,l,r),t.fill(),l}(t,this,o,r,s);Pg(t,this,o,r,a,s),t.restore()}}function Lg(t,e,i=e){t.lineCap=hh(i.borderCapStyle,e.borderCapStyle),t.setLineDash(hh(i.borderDash,e.borderDash)),t.lineDashOffset=hh(i.borderDashOffset,e.borderDashOffset),t.lineJoin=
vendor: 13,508 bytes, line 2
2hh(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=hh(i.borderWidth,e.borderWidth),t.strokeStyle=hh(i.borderColor,e.borderColor)}function zg(t,e,i){t.lineTo(i.x,i.y)}function Ig(t,e,i={}){const n=t.length,{start:r=0,end:s=n-1}=i,{start:o,end:a}=e,l=Math.max(r,o),c=Math.min(s,a),h=r<o&&s<o||r>a&&s>a;return{count:n,start:l,loop:e.loop,ilen:c<l&&!h?n+c-l:c-l}}function Rg(t,e,i,n){const{points:r,options:s}=e,{count:o,start:a,loop:l,ilen:c}=Ig(r,i,n),h=function(t){return t.stepped?hd:t.tension||"monotone"===t.cubicInterpolationMode?ud:zg}(s);let u,d,f,{move:p=!0,reverse:g}=n||{};for(u=0;u<=c;++u)d=r[(a+(g?c-u:u))%o],d.skip||(p?(t.moveTo(d.x,d.y),p=!1):h(t,f,d,g,s.stepped),f=d);return l&&(d=r[(a+(g?c:0))%o],h(t,f,d,g,s.stepped)),!!l}function Fg(t,e,i,n){const r=e.points,{count:s,start:o,ilen:a}=Ig(r,i,n),{move:l=!0,reverse:c}=n||{};let h,u,d,f,p,g,m=0,v=0;const b=t=>(o+(c?a-t:t))%s,y=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(l&&(u=r[b(0)],t.moveTo(u.x,u.y)),h=0;h<=a;++h){if(u=r[b(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=(v*m+e)/++v):(y(),t.lineTo(e,i),d=n,v=0,f=p=i),g=i}y()}function Ng(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i)?Fg:Rg}Tg.id="arc",Tg.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Tg.defaultRoutes={backgroundColor:"backgroundColor"};const jg="function"==typeof Path2D;function Bg(t,e,i,n){jg&&!e.options.segment?function(t,e,i,n){let r=e._path;r||(r=e._path=new Path2D,e.path(r,i,n)&&r.closePath()),Lg(t,e.options),t.stroke(r)}(t,e,i,n):function(t,e,i,n){const{segments:r,options:s}=e,o=Ng(e);for(const a of r)Lg(t,s,a.style),t.beginPath(),o(t,e,a,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}class Vg extends Jf{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;qd(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,r=i.length;if(!r)return[];const s=!!t._loop,{start:o,end:a}=function(t,e,i,n){let r=0,s=e-1;if(i&&!n)for(;r<e&&!t[r].skip;)r++;for(;r<e&&t[r].skip;)r++;for(r%=e,i&&(s+=r);s>r&&t[s%e].skip;)s--;return s%=e,{start:r,end:s}}(i,r,s,n);return vf(t,!0===n?[{start:o,end:a,loop:s}]:function(t,e,i,n){const r=t.length,s=[];let o,a=e,l=t[e];for(o=e+1;o<=i;++o){const i=t[o%r];i.skip||i.stop?l.skip||(n=!1,s.push({start:e%r,end:(o-1)%r,loop:n}),e=a=i.stop?o:null):(a=o,l.skip&&(e=o)),l=i}return null!==a&&s.push({start:e%r,end:a%r,loop:n}),s}(i,o,a<o?a+r:a,!!t._fullLoop&&0===o&&a===r-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],r=this.points,s=mf(this,{property:e,start:n,end:n});if(!s.length)return;const o=[],a=function(t){return t.stepped?of:t.tension||"monotone"===t.cubicInterpolationMode?af:sf}(i);let l,c;for(l=0,c=s.length;l<c;++l){const{start:c,end:h}=s[l],u=r[c],d=r[h];if(u===d){o.push(u);continue}const f=a(u,d,Math.abs((n-u[e])/(d[e]-u[e])),i.stepped);f[e]=t[e],o.push(f)}return 1===o.length?o[0]:o}pathSegment(t,e,i){return Ng(this)(t,this,e,i)}path(t,e,i){const n=this.segments,r=Ng(this);let s=this._loop;e=e||0,i=i||this.points.length-e;for(const o of n)s&=r(t,this,o,{start:e,end:e+i-1});return!!s}draw(t,e,i,n){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),Bg(t,this,i,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Wg(t,e,i,n){const r=t.options,{[i]:s}=t.getProps([i],n);return Math.abs(e-s)<r.radius+r.hitRadius}Vg.id="line",Vg.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Vg.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Vg.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Hg extends Jf{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:r,y:s}=this.getProps(["x","y"],i);return Math.pow(t-r,2)+Math.pow(e-s,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return Wg(this,t,"x",e)}inYRange(t,e){return Wg(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||!ad(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,sd(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function $g(t,e){const{x:i,y:n,base:r,width:s,height:o}=t.getProps(["x","y","base","width","height"],e);let a,l,c,h,u;return t.horizontal?(u=o/2,a=Math.min(i,r),l=Math.max(i,r),c=n-u,h=n+u):(u=s/2,a=i-u,l=i+u,c=Math.min(n,r),h=Math.max(n,r)),{left:a,top:c,right:l,bottom:h}}function qg(t,e,i,n){return t?0:Gh(e,i,n)}function Ug(t){const e=$g(t),i=e.right-e.left,n=e.bottom-e.top,r=function(t,e,i){const n=t.options.borderWidth,r=t.borderSkipped,s=yd(n);return{t:qg(r.top,s.top,0,i),r:qg(r.right,s.right,0,e),b:qg(r.bottom,s.bottom,0,i),l:qg(r.left,s.left,0,e)}}(t,i/2,n/2),s=function(t,e,i){const{enableBorderRadius:n}=t.getProps(["enableBorderRadius"]),r=t.options.borderRadius,s=_d(r),o=Math.min(e,i),a=t.borderSkipped,l=n||ah(r);return{topLeft:qg(!l||a.top||a.left,s.topLeft,0,o),topRight:qg(!l||a.top||a.right,s.topRight,0,o),bottomLeft:qg(!l||a.bottom||a.left,s.bottomLeft,0,o),bottomRight:qg(!l||a.bottom||a.right,s.bottomRight,0,o)}}(t,i/2,n/2);return{outer:{x:e.left,y:e.top,w:i,h:n,radius:s},inner:{x:e.left+r.l,y:e.top+r.t,w:i-r.l-r.r,h:n-r.t-r.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,s.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(r.b,r.r))}}}}function Yg(t,e,i,n){const r=null===e,s=null===i,o=t&&!(r&&s)&&$g(t,n);return o&&(r||Kh(e,o.left,o.right))&&(s||Kh(i,o.top,o.bottom))}function Xg(t,e){t.rect(e.x,e.y,e.w,e.h)}function Gg(t,e,i={}){const n=t.x!==i.x?-e:0,r=t.y!==i.y?-e:0,s=(t.x+t.w!==i.x+i.w?e:0)-n,o=(t.y+t.h!==i.y+i.h?e:0)-r;return{x:t.x+n,y:t.y+r,w:t.w+s,h:t.h+o,radius:t.radius}}Hg.id="point",Hg.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Hg.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Kg extends Jf{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:r,outer:s}=Ug(this),o=(a=s.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?pd:Xg;var a;t.save(),s.w===r.w&&s.h===r.h||(t.beginPath(),o(t,Gg(s,e,r)),t.clip(),o(t,Gg(r,-e,s)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),o(t,Gg(r,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,i){return Yg(this,t,e,i)}inXRange(t,e){return Yg(this,t,null,e)}inYRange(t,e){return Yg(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:n,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(e+n)/2:e,y:r?i:(i+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Kg.id="bar",Kg.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Kg.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Zg=Object.freeze({__proto__:null,ArcElement:Tg,LineElement:Vg,PointElement:Hg,BarElement:Kg});function Qg(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function Jg(t){t.data.datasets.forEach((t=>{Qg(t)}))}var tm={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Jg(t);const n=t.width;t.data.datasets.forEach(((e,r)=>{const{_data:s,indexAxis:o}=e,a=t.getDatasetMeta(r),l=s||e.data;if("y"===kd([o,t.options.indexAxis]))return;if(!a.controller.supportsDecimation)return;const c=t.scales[a.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:h,count:u}=function(t,e){const i=e.length;let n,r=0;const{iScale:s}=t,{min:o,max:a,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(r=Gh(Qh(e,s.axis,o).lo,0,i-1)),n=c?Gh(Qh(e,s.axis,a).hi+1,r,i)-r:i-r,{start:r,count:n}}(a,l);if(u<=(i.threshold||4*n))return void Qg(e);let d;switch(sh(s)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":d=function(t,e,i,n,r){const s=r.samples||n;if(s>=i)return t.slice(e,e+i);const o=[],a=(i-2)/(s-2);let l=0;const c=e+i-1;let h,u,d,f,p,g=e;for(o[l++]=t[g],h=0;h<s-2;h++){let n,r=0,s=0;const c=Math.floor((h+1)*a)+1+e,m=Math.min(Math.floor((h+2)*a)+1,i)+e,v=m-c;for(n=c;n<m;n++)r+=t[n].x,s+=t[n].y;r/=v,s/=v;const b=Math.floor(h*a)+1+e,y=Math.min(Math.floor((h+1)*a)+1,i)+e,{x:_,y:x}=t[g];for(d=f=-1,n=b;n<y;n++)f=.5*Math.abs((_-r)*(t[n].y-x)-(_-t[n].x)*(s-x)),f>d&&(d=f,u=t[n],p=n);o[l++]=u,g=p}return o[l++]=t[c],o}(l,h,u,n,i);break;case"min-max":d=function(t,e,i,n){let r,s,o,a,l,c,h,u,d,f,p=0,g=0;const m=[],v=e+i-1,b=t[e].x,y=t[v].x-b;for(r=e;r<e+i;++r){s=t[r],o=(s.x-b)/y*n,a=s.y;const e=0|o;if(e===l)a<d?(d=a,c=r):a>f&&(f=a,h=r),p=(g*p+s.x)/++g;else{const i=r-1;if(!sh(c)&&!sh(h)){const e=Math.min(c,h),n=Math.max(c,h);e!==u&&e!==i&&m.push({...t[e],x:p}),n!==u&&n!==i&&m.push({...t[n],x:p})}r>0&&i!==u&&m.push(t[i]),m.push(s),l=e,g=0,d=f=a,c=h=u=r}}return m}(l,h,u,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=d}))},destroy(t){Jg(t)}};function em(t,e,i,n){if(n)return;let r=e[t],s=i[t];return"angle"===t&&(r=Yh(r),s=Yh(s)),{property:t,start:r,end:s}}function im(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function nm(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function rm(t,e){let i=[],n=!1;return oh(t)?(n=!0,i=t):i=function(t,e){const{x:i=null,y:n=null}=t||{},r=e.points,s=[];return e.segments.forEach((({start:t,end:e})=>{e=im(t,e,r);const o=r[t],a=r[e];null!==n?(s.push({x:o.x,y:n}),s.push({x:a.x,y:n})):null!==i&&(s.push({x:i,y:o.y}),s.push({x:i,y:a.y}))})),s}(t,e),i.length?new Vg({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function sm(t){return t&&!1!==t.fill}function om(t,e,i){let n=t[e].fill;const r=[e];let s;if(!i)return n;for(;!1!==n&&-1===r.indexOf(n);){if(!lh(n))return n;if(s=t[n],!s)return!1;if(s.visible)return n;r.push(n),n=s.fill}return!1}function am(t,e,i){const n=function(t){const e=t.options,i=e.fill;let n=hh(i&&i.target,i);void 0===n&&(n=!!e.backgroundColor);if(!1===n||null===n)return!1;if(!0===n)return"origin";return n}(t);if(ah(n))return!isNaN(n.value)&&n;let r=parseFloat(n);return lh(r)&&Math.floor(r)===r?function(t,e,i,n){"-"!==t&&"+"!==t||(i=e+i);if(i===e||i<0||i>=n)return!1;return i}(n[0],e,r,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function lm(t,e,i){const n=[];for(let r=0;r<i.length;r++){const s=i[r],{first:o,last:a,point:l}=cm(s,e,"x");if(!(!l||o&&a))if(o)n.unshift(l);else if(t.push(l),!a)break}t.push(...n)}function cm(t,e,i){const n=t.interpolate(e,i);if(!n)return{};const r=n[i],s=t.segments,o=t.points;let a=!1,l=!1;for(let t=0;t<s.length;t++){const e=s[t],n=o[e.start][i],c=o[e.end][i];if(Kh(r,n,c)){a=r===n,l=r===c;break}}return{first:a,last:l,point:n}}class hm{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:n,y:r,radius:s}=this;return e=e||{start:0,end:Ch},t.arc(n,r,s,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:n}=this,r=t.angle;return{x:e+Math.cos(r)*n,y:i+Math.sin(r)*n,angle:r}}}function um(t){const{chart:e,fill:i,line:n}=t;if(lh(i))return function(t,e){const i=t.getDatasetMeta(e),n=i&&t.isDatasetVisible(e);return n?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:n}=t,r=[],s=n.segments,o=n.points,a=function(t,e){const i=[],n=t.getMatchingVisibleMetas("line");for(let t=0;t<n.length;t++){const r=n[t];if(r.index===e)break;r.hidden||i.unshift(r.dataset)}return i}(e,i);a.push(rm({x:null,y:e.bottom},n));for(let t=0;t<s.length;t++){const e=s[t];for(let t=e.start;t<=e.end;t++)lm(r,o[t],a)}return new Vg({points:r,options:{}})}(t);if("shape"===i)return!0;const r=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:i}=t,n=e.options,r=e.getLabels().length,s=n.reverse?e.max:e.min,o=function(t,e,
vendor: 5,386 bytes, line 2
2i){let n;return n="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:ah(t)?t.value:e.getBaseValue(),n}(i,e,s),a=[];if(n.grid.circular){const t=e.getPointPositionForValue(0,s);return new hm({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(o)})}for(let t=0;t<r;++t)a.push(e.getPointPositionForValue(t,o));return a}(t);return function(t){const{scale:e={},fill:i}=t,n=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:ah(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(lh(n)){const t=e.isHorizontal();return{x:t?n:null,y:t?null:n}}return null}(t)}(t);return r instanceof hm?r:rm(r,n)}function dm(t,e,i){const n=um(e),{line:r,scale:s,axis:o}=e,a=r.options,l=a.fill,c=a.backgroundColor,{above:h=c,below:u=c}=l||{};n&&r.points.length&&(ld(t,i),function(t,e){const{line:i,target:n,above:r,below:s,area:o,scale:a}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&s!==r&&(fm(t,n,o.top),pm(t,{line:i,target:n,color:r,scale:a,property:l}),t.restore(),t.save(),fm(t,n,o.bottom));pm(t,{line:i,target:n,color:s,scale:a,property:l}),t.restore()}(t,{line:r,target:n,above:h,below:u,area:i,scale:s,axis:o}),cd(t))}function fm(t,e,i){const{segments:n,points:r}=e;let s=!0,o=!1;t.beginPath();for(const a of n){const{start:n,end:l}=a,c=r[n],h=r[im(n,l,r)];s?(t.moveTo(c.x,c.y),s=!1):(t.lineTo(c.x,i),t.lineTo(c.x,c.y)),o=!!e.pathSegment(t,a,{move:o}),o?t.closePath():t.lineTo(h.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function pm(t,e){const{line:i,target:n,property:r,color:s,scale:o}=e,a=function(t,e,i){const n=t.segments,r=t.points,s=e.points,o=[];for(const t of n){let{start:n,end:a}=t;a=im(n,a,r);const l=em(i,r[n],r[a],t.loop);if(!e.segments){o.push({source:t,target:l,start:r[n],end:r[a]});continue}const c=mf(e,l);for(const e of c){const n=em(i,s[e.start],s[e.end],e.loop),a=gf(t,r,n);for(const t of a)o.push({source:t,target:e,start:{[i]:nm(l,n,"start",Math.max)},end:{[i]:nm(l,n,"end",Math.min)}})}}return o}(i,n,r);for(const{source:e,target:l,start:c,end:h}of a){const{style:{backgroundColor:a=s}={}}=e,u=!0!==n;t.save(),t.fillStyle=a,gm(t,o,u&&em(r,c,h)),t.beginPath();const d=!!i.pathSegment(t,e);let f;if(u){d?t.closePath():mm(t,n,h,r);const e=!!n.pathSegment(t,l,{move:d,reverse:!0});f=d&&e,f||mm(t,n,c,r)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function gm(t,e,i){const{top:n,bottom:r}=e.chart.chartArea,{property:s,start:o,end:a}=i||{};"x"===s&&(t.beginPath(),t.rect(o,n,a-o,r-n),t.clip())}function mm(t,e,i,n){const r=e.interpolate(i,n);r&&t.lineTo(r.x,r.y)}var vm={id:"filler",afterDatasetsUpdate(t,e,i){const n=(t.data.datasets||[]).length,r=[];let s,o,a,l;for(o=0;o<n;++o)s=t.getDatasetMeta(o),a=s.dataset,l=null,a&&a.options&&a instanceof Vg&&(l={visible:t.isDatasetVisible(o),index:o,fill:am(a,o,n),chart:t,axis:s.controller.options.indexAxis,scale:s.vScale,line:a}),s.$filler=l,r.push(l);for(o=0;o<n;++o)l=r[o],l&&!1!==l.fill&&(l.fill=om(r,o,i.propagate))},beforeDraw(t,e,i){const n="beforeDraw"===i.drawTime,r=t.getSortedVisibleDatasetMetas(),s=t.chartArea;for(let e=r.length-1;e>=0;--e){const i=r[e].$filler;i&&(i.line.updateControlPoints(s,i.axis),n&&i.fill&&dm(t.ctx,i,s))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;sm(i)&&dm(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const n=e.meta.$filler;sm(n)&&"beforeDatasetDraw"===i.drawTime&&dm(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const bm=(t,e)=>{let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}};class ym extends Jf{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=dh(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,n=wd(i.font),r=n.size,s=this._computeTitleHeight(),{boxWidth:o,itemHeight:a}=bm(i,r);let l,c;e.font=n.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(s,r,o,a)+10):(c=this.maxHeight,l=this._fitCols(s,r,o,a)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,n){const{ctx:r,maxWidth:s,options:{labels:{padding:o}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=n+o;let h=t;r.textAlign="left",r.textBaseline="middle";let u=-1,d=-c;
vendor: 4,274 bytes, line 2
2return this.legendItems.forEach(((t,f)=>{const p=i+e/2+r.measureText(t.text).width;(0===f||l[l.length-1]+p+2*o>s)&&(h+=c,l[l.length-(f>0?0:1)]=0,d+=c,u++),a[f]={left:0,top:d,row:u,width:p,height:n},l[l.length-1]+=p+o})),h}_fitCols(t,e,i,n){const{ctx:r,maxHeight:s,options:{labels:{padding:o}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=s-t;let h=o,u=0,d=0,f=0,p=0;return this.legendItems.forEach(((t,s)=>{const g=i+e/2+r.measureText(t.text).width;s>0&&d+n+2*o>c&&(h+=u+o,l.push({width:u,height:d}),f+=u+o,p++,u=d=0),a[s]={left:f,top:d,col:p,width:g,height:n},u=Math.max(u,g),d+=n+o})),h+=u,l.push({width:u,height:d}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:r}}=this,s=hf(r,this.left,this.width);if(this.isHorizontal()){let r=0,o=ou(i,this.left+n,this.right-this.lineWidths[r]);for(const a of e)r!==a.row&&(r=a.row,o=ou(i,this.left+n,this.right-this.lineWidths[r])),a.top+=this.top+t+n,a.left=s.leftForLtr(s.x(o),a.width),o+=a.width+n}else{let r=0,o=ou(i,this.top+t+n,this.bottom-this.columnSizes[r].height);for(const a of e)a.col!==r&&(r=a.col,o=ou(i,this.top+t+n,this.bottom-this.columnSizes[r].height)),a.top=o,a.left+=this.left+n,a.left=s.leftForLtr(s.x(a.left),a.width),o+=a.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;ld(t,this),this._draw(),cd(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:r,labels:s}=t,o=td.color,a=hf(t.rtl,this.left,this.width),l=wd(s.font),{color:c,padding:h}=s,u=l.size,d=u/2;let f;this.drawTitle(),n.textAlign=a.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=l.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=bm(s,u),v=this.isHorizontal(),b=this._computeTitleHeight();f=v?{x:ou(r,this.left+h,this.right-i[0]),y:this.top+h+b,line:0}:{x:this.left+h,y:ou(r,this.top+b+h,this.bottom-e[0].height),line:0},uf(this.ctx,t.textDirection);const y=m+h;this.legendItems.forEach(((_,x)=>{n.strokeStyle=_.fontColor||c,n.fillStyle=_.fontColor||c;const w=n.measureText(_.text).width,k=a.textAlign(_.textAlign||(_.textAlign=s.textAlign)),S=p+d+w;let E=f.x,M=f.y;a.setWidth(this.width),v?x>0&&E+S+h>this.right&&(M=f.y+=y,f.line++,E=f.x=ou(r,this.left+h,this.right-i[f.line])):x>0&&M+y>this.bottom&&(E=f.x=E+e[f.line].width+h,f.line++,M=f.y=ou(r,this.top+b+h,this.bottom-e[f.line].height));!function(t,e,i){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;n.save();const r=hh(i.lineWidth,1);if(n.fillStyle=hh(i.fillStyle,o),n.lineCap=hh(i.lineCap,"butt"),n.lineDashOffset=hh(i.lineDashOffset,0),n.lineJoin=hh(i.lineJoin,"miter"),n.lineWidth=r,n.strokeStyle=hh(i.strokeStyle,o),n.setLineDash(hh(i.lineDash,[])),s.usePointStyle){const o={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:r},l=a.xPlus(t,p/2);od(n,o,l,e+d,s.pointStyleWidth&&p)}else{const s=e+Math.max((u-g)/2,0),o=a.leftForLtr(t,p),l=_d(i.borderRadius);n.beginPath(),Object.values(l).some((t=>0!==t))?pd(n,{x:o,y:s,w:p,h:g,radius:l}):n.rect(o,s,p,g),n.fill(),0!==r&&n.stroke()}n.restore()}(a.x(E),M,_),E=((t,e,i,n)=>t===(n?"left":"right")?i:"center"===t?(e+i)/2:e)(k,E+p+d,v?E+S:this.right,t.rtl),function(t,e,i){dd(n,i.text,t,e+m/2,l,{strikethrough:i.hidden,textAlign:a.textAlign(i.textAlign)})}(a.x(E),M,_),v?f.x+=S+h:f.y+=y})),df(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=wd(e.font),n=xd(e.padding);if(!e.display)return;const r=hf(t.rtl,this.left,this.width),s=this.ctx,o=e.position,a=i.size/2,l=n.top+a;let c,h=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),c=this.top+l,h=ou(t.align,h,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+ou(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const d=ou(o,h,h+u);s.textAlign=r.textAlign(su(o)),s.textBaseline="middle",s.strokeStyle=e.color,s.fillStyle=e.color,s.font=i.string,dd(s,e.text,d,c,i)}_computeTitleHeight(){const t=this.options.title,e=wd(t.font),i=xd(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,r;if(Kh(t,this.left,this.right)&&Kh(e,this.top,this.bottom))for(r=this.legendHitBoxes,i=0;i<r.length;
vendor: 19,407 bytes, line 2
2++i)if(n=r[i],Kh(t,n.left,n.left+n.width)&&Kh(e,n.top,n.top+n.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const s=this._hoveredItem,o=(r=i,null!==(n=s)&&null!==r&&n.datasetIndex===r.datasetIndex&&n.index===r.index);s&&!o&&dh(e.onLeave,[t,s,this],this),this._hoveredItem=i,i&&!o&&dh(e.onHover,[t,i,this],this)}else i&&dh(e.onClick,[t,i,this],this);var n,r}}var _m={id:"legend",_element:ym,start(t,e,i){const n=t.legend=new ym({ctx:t.ctx,options:i,chart:t});Fp.configure(t,n,i),Fp.addBox(t,n)},stop(t){Fp.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const n=t.legend;Fp.configure(t,n,i),n.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const n=e.datasetIndex,r=i.chart;r.isDatasetVisible(n)?(r.hide(n),e.hidden=!0):(r.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:r,color:s}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const o=t.controller.getStyle(i?0:void 0),a=xd(o.borderWidth);return{text:e[t.index].label,fillStyle:o.backgroundColor,fontColor:s,hidden:!t.visible,lineCap:o.borderCapStyle,lineDash:o.borderDash,lineDashOffset:o.borderDashOffset,lineJoin:o.borderJoinStyle,lineWidth:(a.width+a.height)/4,strokeStyle:o.borderColor,pointStyle:n||o.pointStyle,rotation:o.rotation,textAlign:r||o.textAlign,borderRadius:0,datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class xm extends Jf{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=oh(i.text)?i.text.length:1;this._padding=xd(i.padding);const r=n*wd(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:r,options:s}=this,o=s.align;let a,l,c,h=0;return this.isHorizontal()?(l=ou(o,i,r),c=e+t,a=r-i):("left"===s.position?(l=i+t,c=ou(o,n,e),h=-.5*Ah):(l=r-t,c=ou(o,e,n),h=.5*Ah),a=n-e),{titleX:l,titleY:c,maxWidth:a,rotation:h}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=wd(e.font),n=i.lineHeight/2+this._padding.top,{titleX:r,titleY:s,maxWidth:o,rotation:a}=this._drawArgs(n);dd(t,e.text,0,0,i,{color:e.color,maxWidth:o,rotation:a,textAlign:su(e.align),textBaseline:"middle",translation:[r,s]})}}var wm={id:"title",_element:xm,start(t,e,i){!function(t,e){const i=new xm({ctx:t.ctx,options:e,chart:t});Fp.configure(t,i,e),Fp.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;Fp.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const n=t.titleBlock;Fp.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const km=new WeakMap;var Sm={id:"subtitle",start(t,e,i){const n=new xm({ctx:t.ctx,options:i,chart:t});Fp.configure(t,n,i),Fp.addBox(t,n),km.set(t,n)},stop(t){Fp.removeBox(t,km.get(t)),km.delete(t)},beforeUpdate(t,e,i){const n=km.get(t);Fp.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Em={average(t){if(!t.length)return!1;let e,i,n=0,r=0,s=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,r+=t.y,++s}}return{x:n/s,y:r/s}},nearest(t,e){if(!t.length)return!1;let i,n,r,s=e.x,o=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=qh(e,n.getCenterPoint());t<a&&(a=t,r=n)}}if(r){const t=r.tooltipPosition();s=t.x,o=t.y}return{x:s,y:o}}};function Mm(t,e){return e&&(oh(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Am(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Cm(t,e){const{element:i,datasetIndex:n,index:r}=e,s=t.getDatasetMeta(n).controller,{label:o,value:a}=s.getLabelAndValue(r);return{chart:t,label:o,parsed:s.getParsed(r),raw:t.data.datasets[n].data[r],formattedValue:a,dataset:s.getDataset(),dataIndex:r,datasetIndex:n,element:i}}function Om(t,e){const i=t.chart.ctx,{body:n,footer:r,title:s}=t,{boxWidth:o,boxHeight:a}=e,l=wd(e.bodyFont),c=wd(e.titleFont),h=wd(e.footerFont),u=s.length,d=r.length,f=n.length,p=xd(e.padding);let g=p.height,m=0,v=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(v+=t.beforeBody.length+t.afterBody.length,u&&(g+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),v){g+=f*(e.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(v-f)*l.lineHeight+(v-1)*e.bodySpacing}d&&(g+=e.footerMarginTop+d*h.lineHeight+(d-1)*e.footerSpacing);let b=0;const y=function(t){m=Math.max(m,i.measureText(t).width+b)};return i.save(),i.font=c.string,fh(t.title,y),i.font=l.string,fh(t.beforeBody.concat(t.afterBody),y),b=e.displayColors?o+2+e.boxPadding:0,fh(n,(t=>{fh(t.before,y),fh(t.lines,y),fh(t.after,y)})),b=0,i.font=h.string,fh(t.footer,y),i.restore(),m+=p.width,{width:m,height:g}}function Dm(t,e,i,n){const{x:r,width:s}=i,{width:o,chartArea:{left:a,right:l}}=t;let c="center";return"center"===n?c=r<=(a+l)/2?"left":"right":r<=s/2?c="left":r>=o-s/2&&(c="right"),function(t,e,i,n){const{x:r,width:s}=n,o=i.caretSize+i.caretPadding;return"left"===t&&r+s+o>e.width||"right"===t&&r-s-o<0||void 0}(c,t,e,i)&&(c="center"),c}function Pm(t,e,i){const n=i.yAlign||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:i.xAlign||e.xAlign||Dm(t,e,i,n),yAlign:n}}function Tm(t,e,i,n){const{caretSize:r,caretPadding:s,cornerRadius:o}=t,{xAlign:a,yAlign:l}=i,c=r+s,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=_d(o);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:r}=t;return"top"===e?n+=i:n-="bottom"===e?r+i:r/2,n}(e,l,c);return"center"===l?"left"===a?p+=c:"right"===a&&(p-=c):"left"===a?p-=Math.max(h,d)+r:"right"===a&&(p+=Math.max(u,f)+r),{x:Gh(p,0,n.width-e.width),y:Gh(g,0,n.height-e.height)}}function Lm(t,e,i){const n=xd(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function zm(t){return Mm([],Am(t))}function Im(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class Rm extends Jf{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),n=i.enabled&&e.options.animation&&i.animations,r=new Ef(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,Sd(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,n=i.beforeTitle.apply(this,[t]),r=i.title.apply(this,[t]),s=i.afterTitle.apply(this,[t]);let o=[];return o=Mm(o,Am(n)),o=Mm(o,Am(r)),o=Mm(o,Am(s)),o}getBeforeBody(t,e){return zm(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,n=[];return fh(t,(t=>{const e={before:[],lines:[],after:[]},r=Im(i,t);Mm(e.before,Am(r.beforeLabel.call(this,t))),Mm(e.lines,r.label.call(this,t)),Mm(e.after,Am(r.afterLabel.call(this,t))),n.push(e)})),n}getAfterBody(t,e){return zm(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,n=i.beforeFooter.apply(this,[t]),r=i.footer.apply(this,[t]),s=i.afterFooter.apply(this,[t]);let o=[];return o=Mm(o,Am(n)),o=Mm(o,Am(r)),o=Mm(o,Am(s)),o}_createItems(t){const e=this._active,i=this.chart.data,n=[],r=[],s=[];let o,a,l=[];for(o=0,a=e.length;o<a;++o)l.push(Cm(this.chart,e[o]));return t.filter&&(l=l.filter(((e,n,r)=>t.filter(e,n,r,i)))),t.itemSort&&(l=l.sort(((e,n)=>t.itemSort(e,n,i)))),fh(l,(e=>{const i=Im(t.callbacks,e);n.push(i.labelColor.call(this,e)),r.push(i.labelPointStyle.call(this,e)),s.push(i.labelTextColor.call(this,e))})),this.labelColors=n,this.labelPointStyles=r,this.labelTextColors=s,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let r,s=[];if(n.length){const t=Em[i.position].call(this,n,this._eventPosition);s=this._createItems(i),this.title=this.getTitle(s,i),this.beforeBody=this.getBeforeBody(s,i),this.body=this.getBody(s,i),this.afterBody=this.getAfterBody(s,i),this.footer=this.getFooter(s,i);const e=this._size=Om(this,i),o=Object.assign({},t,e),a=Pm(this.chart,i,o),l=Tm(i,o,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,r={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=s,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,n){const r=this.getCaretPosition(t,i,n);e.lineTo(r.x1,r.y1),e.lineTo(r.x2,r.y2),e.lineTo(r.x3,r.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:r}=this,{caretSize:s,cornerRadius:o}=i,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:h}=_d(o),{x:u,y:d}=t,{width:f,height:p}=e;let g,m,v,b,y,_;return"center"===r?(y=d+p/2,"left"===n?(g=u,m=g-s,b=y+s,_=y-s):(g=u+f,m=g+s,b=y-s,_=y+s),v=g):(m="left"===n?u+Math.max(a,c)+s:"right"===n?u+f-Math.max(l,h)-s:this.caretX,"top"===r?(b=d,y=b-s,g=m-s,v=m+s):(b=d+p,y=b+s,g=m+s,v=m-s),_=b),{x1:g,x2:m,x3:v,y1:b,y2:y,y3:_}}drawTitle(t,e,i){const n=this.title,r=n.length;let s,o,a;if(r){const l=hf(i.rtl,this.x,this.width);for(t.x=Lm(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",s=wd(i.titleFont),o=i.titleSpacing,e.fillStyle=i.titleColor,e.font=s.string,a=0;a<r;++a)e.fillText(n[a],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+o,a+1===r&&(t.y+=i.titleMarginBottom-o)}}_drawColorBox(t,e,i,n,r){const s=this.labelColors[i],o=this.labelPointStyles[i],{boxHeight:a,boxWidth:l,boxPadding:c}=r,h=wd(r.bodyFont),u=Lm(this,"left",r),d=n.x(u),f=a<h.lineHeight?(h.lineHeight-a)/2:0,p=e.y+f;if(r.usePointStyle){const e={radius:Math.min(l,a)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},i=n.leftForLtr(d,l)+l/2,c=p+a/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,sd(t,e,i,c),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,sd(t,e,i,c)}else{t.lineWidth=ah(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const e=n.leftForLtr(d,l-c),i=n.leftForLtr(n.xPlus(d,1),l-c-2),o=_d(s.borderRadius);Object.values(o).some((t=>0!==t))?(t.beginPath(),t.fillStyle=r.multiKeyBackground,pd(t,{x:e,y:p,w:l,h:a,radius:o}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),pd(t,{x:i,y:p+1,w:l-2,h:a-2,radius:o}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(e,p,l,a),t.strokeRect(e,p,l,a),t.fillStyle=s.backgroundColor,t.fillRect(i,p+1,l-2,a-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:r,bodyAlign:s,displayColors:o,boxHeight:a,boxWidth:l,boxPadding:c}=i,h=wd(i.bodyFont);let u=h.lineHeight,d=0;const f=hf(i.rtl,this.x,this.width),p=function(i){e.fillText(i,f.x(t.x+d),t.y+u/2),t.y+=u+r},g=f.textAlign(s);let m,v,b,y,_,x,w;for(e.textAlign=s,e.textBaseline="middle",e.font=h.string,t.x=Lm(this,g,i),e.fillStyle=i.bodyColor,fh(this.beforeBody,p),d=o&&"right"!==g?"center"===s?l/2+c:l+2+c:0,y=0,x=n.length;y<x;++y){for(m=n[y],v=this.labelTextColors[y],e.fillStyle=v,fh(m.before,p),b=m.lines,o&&b.length&&(this._drawColorBox(e,t,y,f,i),u=Math.max(h.lineHeight,a)),_=0,w=b.length;_<w;++_)p(b[_]),u=h.lineHeight;fh(m.after,p)}d=0,u=h.lineHeight,fh(this.afterBody,p),t.y-=r}drawFooter(t,e,i){const n=this.footer,r=n.length;let s,o;if(r){const a=hf(i.rtl,this.x,this.width);for(t.x=Lm(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=a.textAlign(i.footerAlign),e.textBaseline="middle",s=wd(i.footerFont),e.fillStyle=i.footerColor,e.font=s.string,o=0;o<r;++o)e.fillText(n[o],a.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+i.footerSpacing}}drawBackground(t,e,i,n){const{xAlign:r,yAlign:s}=this,{x:o,y:a}=t,{width:l,height:c}=i,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=_d(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(o+h,a),"top"===s&&this.drawCaret(t,e,i,n),e.lineTo(o+l-u,a),e.quadraticCurveTo(o+l,a,o+l,a+u),"center"===s&&"right"===r&&this.drawCaret(t,e,i,n),e.lineTo(o+l,a+c-f),e.quadraticCurveTo(o+l,a+c,o+l-f,a+c),"bottom"===s&&this.drawCaret(t,e,i,n),e.lineTo(o+d,a+c),e.quadraticCurveTo(o,a+c,o,a+c-d),"center"===s&&"left"===r&&this.drawCaret(t,e,i,n),e.lineTo(o,a+h),e.quadraticCurveTo(o,a,o+h,a),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,n=i&&i.x,r=i&&i.y;if(n||r){const i=Em[t.position].call(this,this._active,this._eventPosition);if(!i)return;const s=this._size=Om(this,t),o=Object.assign({},i,this._size),a=Pm(e,t,o),l=Tm(t,o,a,e);n._to===l.x&&r._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=s.width,this.height=s.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},r={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const s=xd(e.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&o&&(t.save(),t.globalAlpha=i,this.drawBackground(r,t,n,e),uf(t,e.textDirection),r.y+=s.top,this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),df(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}})),r=!ph(i,n),s=this._positionChanged(n,e);(r||s)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,r=this._active||[],s=this._getActiveElements(t,r,e,i),o=this._positionChanged(s,t),a=e||!ph(s,r)||o;return a&&(this._active=s,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),a}_getActiveElements(t,e,i,n){const r=this.options;if("mouseout"===t.type)return[];if(!n)return e;const s=this.chart.getElementsAtEventForMode(t,r.mode,r,i);return r.reverse&&s.reverse(),s}_positionChanged(t,e){const{caretX:i,caretY:n,options:r}=this,s=Em[r.position].call(this,t,e);return!1!==s&&(i!==s.x||n!==s.y)}}Rm.positioners=Em;var Fm={id:"tooltip",_element:Rm,positioners:Em,afterInit(t,e,i){i&&(t.tooltip=new Rm({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",i))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:nh,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return i[e.dataIndex]}return""},afterTitle:nh,beforeBody:nh,beforeLabel:nh,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return sh(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:nh,afterBody:nh,beforeFooter:nh,footer:nh,afterFooter:nh}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Nm=Object.freeze({__proto__:null,Decimation:tm,Filler:vm,Legend:_m,SubTitle:Sm,Title:wm,Tooltip:Fm});function jm(t,e,i,n){const r=t.indexOf(e);if(-1===r)return((t,e,i,n)=>
2("string"==typeof e?(i=t.push(e)-1,n.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,n);return r!==t.lastIndexOf(e)?i:r}class Bm extends hp{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:n}of e)t[i]===n&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(sh(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:Gh(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:jm(i,t,hh(e,t),this._addedLabels),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 r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.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 Vm(t,e){const i=[],{bounds:n,step:r,min:s,max:o,precision:a,count:l,maxTicks:c,maxDigits:h,includeBounds:u}=t,d=r||1,f=c-1,{min:p,max:g}=e,m=!sh(s),v=!sh(o),b=!sh(l),y=(g-p)/(h+1);let _,x,w,k,S=Fh((g-p)/f/d)*d;if(S<1e-14&&!m&&!v)return[{value:p},{value:g}];k=Math.ceil(g/S)-Math.floor(p/S),k>f&&(S=Fh(k*S/f/d)*d),sh(a)||(_=Math.pow(10,a),S=Math.ceil(S*_)/_),"ticks"===n?(x=Math.floor(p/S)*S,w=Math.ceil(g/S)*S):(x=p,w=g),m&&v&&r&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((o-s)/r,S/1e3)?(k=Math.round(Math.min((o-s)/S,c)),S=(o-s)/k,x=s,w=o):b?(x=m?s:x,w=v?o:w,k=l-1,S=(w-x)/k):(k=(w-x)/S,k=jh(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const E=Math.max(Hh(S),Hh(x));_=Math.pow(10,sh(a)?E:a),x=Math.round(x*_)/_,w=Math.round(w*_)/_;let M=0;for(m&&(u&&x!==s?(i.push({value:s}),x<s&&M++,jh(Math.round((x+M*S)*_)/_,s,Wm(s,y,t))&&M++):x<s&&M++);M<k;++M)i.push({value:Math.round((x+M*S)*_)/_});return v&&u&&w!==o?i.length&&jh(i[i.length-1].value,o,Wm(o,y,t))?i[i.length-1].value=o:i.push({value:o}):v&&w!==o||i.push({value:w}),i}function Wm(t,e,{horizontal:i,minRotation:n}){const r=Vh(n),s=(i?Math.sin(r):Math.cos(r))||.001,o=.75*e*(""+t).length;return Math.min(e/s,o)}Bm.id="category",Bm.defaults={ticks:{callback:Bm.prototype.getLabelForValue}};class Hm extends hp{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 sh(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:r}=this;const s=t=>n=e?n:t,o=t=>r=i?r:t;if(t){const t=Rh(n),e=Rh(r);t<0&&e<0?o(0):t>0&&e>0&&s(0)}if(n===r){let e=1;(r>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*r)),o(r+e),t||s(n-e)}this.min=n,this.max=r}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=Vm({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&&Bh(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 cf(t,this.chart.options.locale,this.options.ticks.format)}}class $m extends Hm{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=lh(t)?t:0,this.max=lh(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=Vh(this.options.ticks.minRotation),n=(t?Math.sin(i):Math.cos(i))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,r.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 qm(t){return 1===t/Math.pow(10,Math.floor(Ih(t)))}$m.id="linear",$m.defaults={ticks:{callback:ep.formatters.numeric}};class Um extends hp{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=Hm.prototype.parse.apply(this,[t,e]);if(0!==i)return lh(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=lh(t)?Math.max(0,t):null,this.max=lh(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 r=e=>i=t?i:e,s=t=>n=e?n:t,o=(t,e)=>Math.pow(10,Math.floor(Ih(t))+e);i===n&&(i<=0?(r(1),s(10)):(r(o(i,-1)),s(o(n,1)))),i<=0&&r(o(n,-1)),n<=0&&s(o(i,1)),this._zero&&this.min!==this._suggestedMin&&i===o(this.min,0)&&r(o(i,-1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor(Ih(e.max)),n=Math.ceil(e.max/Math.pow(10,i)),r=[];let s=ch(t.min,Math.pow(10,Math.floor(Ih(e.min)))),o=Math.floor(Ih(s)),a=Math.floor(s/Math.pow(10,o)),l=o<0?Math.pow(10,Math.abs(o)):1;do{r.push({value:s,major:qm(s)}),++a,10===a&&(a=1,++o,l=o>=0?1:l),s=Math.round(a*Math.pow(10,o)*l)/l}while(o<i||o===i&&a<n);const c=ch(t.max,s);return r.push({value:c,major:qm(s)}),r}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Bh(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":cf(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ih(t),this._valueRange=Ih(this.max)-Ih(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ih(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Ym(t){const e=t.ticks;if(e.display&&t.display){const t=xd(e.backdropPadding);return hh(e.font&&e.font.size,td.font.size)+t.height}return 0}function Xm(t,e,i,n,r){return t===n||t===r?{start:e-i/2,end:e+i/2}:t<n||t>r?{start:e-i,end:e}:{start:e,end:e+i}}function Gm(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),n=[],r=[],s=t._pointLabels.length,o=t.options.pointLabels,a=o.centerPointLabels?Ah/s:0;for(let u=0;u<s;u++){const s=o.setContext(t.getPointLabelContext(u));r[u]=s.padding;const d=t.getPointPosition(u,t.drawingArea+r[u],a),f=wd(s.font),p=(l=t.ctx,c=f,h=oh(h=t._pointLabels[u])?h:[h],{w:id(l,c.string,h),h:h.length*c.lineHeight});n[u]=p;const g=Yh(t.getIndexAngle(u)+a),m=Math.round(Wh(g));Km(i,e,g,Xm(m,d.x,p.w,0,180),Xm(m,d.y,p.h,90,270))}var l,c,h;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,
2i){const n=[],r=t._pointLabels.length,s=t.options,o=Ym(s)/2,a=t.drawingArea,l=s.pointLabels.centerPointLabels?Ah/r:0;for(let s=0;s<r;s++){const r=t.getPointPosition(s,a+o+i[s],l),c=Math.round(Wh(Yh(r.angle+Th))),h=e[s],u=Jm(r.y,h.h,c),d=Zm(c),f=Qm(r.x,h.w,d);n.push({x:r.x,y:u,textAlign:d,left:f,top:u,right:f+h.w,bottom:u+h.h})}return n}(t,n,r)}function Km(t,e,i,n,r){const s=Math.abs(Math.sin(i)),o=Math.abs(Math.cos(i));let a=0,l=0;n.start<e.l?(a=(e.l-n.start)/s,t.l=Math.min(t.l,e.l-a)):n.end>e.r&&(a=(n.end-e.r)/s,t.r=Math.max(t.r,e.r+a)),r.start<e.t?(l=(e.t-r.start)/o,t.t=Math.min(t.t,e.t-l)):r.end>e.b&&(l=(r.end-e.b)/o,t.b=Math.max(t.b,e.b+l))}function Zm(t){return 0===t||180===t?"center":t<180?"left":"right"}function Qm(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Jm(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function tv(t,e,i,n){const{ctx:r}=t;if(i)r.arc(t.xCenter,t.yCenter,e,0,Ch);else{let i=t.getPointPosition(0,e);r.moveTo(i.x,i.y);for(let s=1;s<n;s++)i=t.getPointPosition(s,e),r.lineTo(i.x,i.y)}}Um.id="logarithmic",Um.defaults={ticks:{callback:ep.formatters.logarithmic,major:{enabled:!0}}};class ev extends Hm{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=xd(Ym(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=lh(t)&&!isNaN(t)?t:0,this.max=lh(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Ym(this.options))}generateTickLabels(t){Hm.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=dh(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Gm(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,n))}getIndexAngle(t){return Yh(t*(Ch/(this._pointLabels.length||1))+Vh(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(sh(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(sh(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 Sd(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const n=this.getIndexAngle(t)-Th+i;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter,angle:n}}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:r}=this._pointLabelItems[t];return{left:e,top:i,right:n,bottom:r}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),tv(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:n}=e,r=this._pointLabels.length;let s,o,a;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:n}}=t;for(let r=e-1;r>=0;r--){const e=n.setContext(t.getPointLabelContext(r)),s=wd(e.font),{x:o,y:a,textAlign:l,left:c,top:h,right:u,bottom:d}=t._pointLabelItems[r],{backdropColor:f}=e;if(!sh(f)){const t=_d(e.borderRadius),n=xd(e.backdropPadding);i.fillStyle=f;const r=c-n.left,s=h-n.top,o=u-c+n.width,a=d-h+n.height;Object.values(t).some((t=>0!==t))?(i.beginPath(),pd(i,{x:r,y:s,w:o,h:a,radius:t}),i.fill()):i.fillRect(r,s,o,a)}dd(i,t._pointLabels[r],o,a+s.lineHeight/2,s,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,r),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e){o=this.getDistanceFromCenterForValue(t.value);
vendor: 7,460 bytes, line 2
2!function(t,e,i,n){const r=t.ctx,s=e.circular,{color:o,lineWidth:a}=e;!s&&!n||!o||!a||i<0||(r.save(),r.strokeStyle=o,r.lineWidth=a,r.setLineDash(e.borderDash),r.lineDashOffset=e.borderDashOffset,r.beginPath(),tv(t,i,s,n),r.closePath(),r.stroke(),r.restore())}(this,n.setContext(this.getContext(e-1)),o,r)}})),i.display){for(t.save(),s=r-1;s>=0;s--){const n=i.setContext(this.getPointLabelContext(s)),{color:r,lineWidth:l}=n;l&&r&&(t.lineWidth=l,t.strokeStyle=r,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,o=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),a=this.getPointPosition(s,o),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 r,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((n,o)=>{if(0===o&&!e.reverse)return;const a=i.setContext(this.getContext(o)),l=wd(a.font);if(r=this.getDistanceFromCenterForValue(this.ticks[o].value),a.showLabelBackdrop){t.font=l.string,s=t.measureText(n.label).width,t.fillStyle=a.backdropColor;const e=xd(a.backdropPadding);t.fillRect(-s/2-e.left,-r-l.size/2-e.top,s+e.width,l.size+e.height)}dd(t,n.label,0,-r,l,{color:a.color})})),t.restore()}drawTitle(){}}ev.id="radialLinear",ev.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ep.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},ev.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},ev.descriptors={angleLines:{_fallback:"grid"}};const iv={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}},nv=Object.keys(iv);function rv(t,e){return t-e}function sv(t,e){if(sh(e))return null;const i=t._adapter,{parser:n,round:r,isoWeekday:s}=t._parseOpts;let o=e;return"function"==typeof n&&(o=n(o)),lh(o)||(o="string"==typeof n?i.parse(o,n):i.parse(o)),null===o?null:(r&&(o="week"!==r||!Nh(s)&&!0!==s?i.startOf(o,r):i.startOf(o,"isoWeek",s)),+o)}function ov(t,e,i,n){const r=nv.length;for(let s=nv.indexOf(t);s<r-1;++s){const t=iv[nv[s]],r=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(r*t.size))<=n)return nv[s]}return nv[r-1]}function av(t,e,i){if(i){if(i.length){const{lo:n,hi:r}=Zh(i,e);t[i[n]>=e?i[n]:i[r]]=!0}}else t[e]=!0}function lv(t,e,i){const n=[],r={},s=e.length;let o,a;for(o=0;o<s;++o)a=e[o],r[a]=o,n.push({value:a,major:!1});return 0!==s&&i?function(t,e,i,n){const r=t._adapter,s=+r.startOf(e[0].value,n),o=e[e.length-1].value;let a,l;for(a=s;a<=o;a=+r.add(a,1,n))l=i[a],l>=0&&(e[l].major=!0);return e}(t,n,r,i):n}class cv extends hp{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 vp._date(t.adapters.date);n.init(e),yh(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:sv(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:r,minDefined:s,maxDefined:o}=this.getUserBounds();function a(t){s||isNaN(t.min)||(n=Math.min(n,t.min)),o||isNaN(t.max)||(r=Math.max(r,t.max))}s&&o||(a(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||a(this.getMinMax(!1))),n=lh(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),r=lh(r)&&!isNaN(r)?r:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,r-1),this.max=Math.max(n+1,r)}_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 r=this.min,s=function(t,e,i){let n=0,r=t.length;for(;n<r&&t[n]<e;)n++;for(;r>n&&t[r-1]>i;)r--;return n>0||r<t.length?t.slice(n,r):t}(n,r,this.max);return this._unit=e.unit||(i.autoSkip?ov(e.minUnit,this.min,this.max,this._getLabelCapacity(r)):function(t,e,i,n,r){for(let s=nv.length-1;s>=nv.indexOf(i);s--){const i=nv[s];if(iv[i].common&&t._adapter.diff(r,n,i)>=e-1)return i}return nv[i?nv.indexOf(i):0]}(this,s.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=nv.indexOf(t)+1,i=nv.length;e<i;++e)if(iv[nv[e]].common)return nv[e]}(this._unit):void 0,this.initOffsets(n),t.reverse&&s.reverse(),lv(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t){let e,i,n=0,r=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]),r=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=Gh(n,0,s),r=Gh(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,r=n.time,s=r.unit||ov(r.minUnit,e,i,this._getLabelCapacity(e)),o=hh(r.stepSize,1),a="week"===s&&r.isoWeekday,l=Nh(a)||!0===a,c={};let h,u,d=e;if(l&&(d=+t.startOf(d,"isoWeek",a)),d=+t.startOf(d,l?"day":s),t.diff(i,e,s)>1e5*o)throw new Error(e+" and "+i+" are too far apart with stepSize of "+o+" "+s);const f="data"===n.ticks.source&&this.getDataTimestamps();for(h=d,u=0;h<i;h=+t.add(h,o,s),u++)av(c,h,f);return h!==i&&"ticks"!==n.bounds&&1!==u||av(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 r=this.options,s=r.time.displayFormats,o=this._unit,a=this._majorUnit,l=o&&s[o],c=a&&s[a],h=i[e],u=a&&c&&h&&h.major,d=this._adapter.format(t,n||(u?c:l)),f=r.ticks.callback;return f?dh(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=Vh(this.isHorizontal()?e.maxRotation:e.minRotation),r=Math.cos(n),s=Math.sin(n),o=this._resolveTickFontOptions(0).size;return{w:i*r+o*s,h:i*s+o*r}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,n=i[e.unit]||i.millisecond,r=this._tick
2FormatFunction(t,0,lv(this,[t],this._majorUnit),n),s=this._getLabelSize(r),o=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return o>0?o: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(sv(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return iu(t.sort(rv))}}function hv(t,e,i){let n,r,s,o,a=0,l=t.length-1;i?(e>=t[a].pos&&e<=t[l].pos&&({lo:a,hi:l}=Qh(t,"pos",e)),({pos:n,time:s}=t[a]),({pos:r,time:o}=t[l])):(e>=t[a].time&&e<=t[l].time&&({lo:a,hi:l}=Qh(t,"time",e)),({time:n,pos:s}=t[a]),({time:r,pos:o}=t[l]));const c=r-n;return c?s+(o-s)*(e-n)/c:s}cv.id="time",cv.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class uv extends cv{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=hv(e,this.min),this._tableRange=hv(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,n=[],r=[];let s,o,a,l,c;for(s=0,o=t.length;s<o;++s)l=t[s],l>=e&&l<=i&&n.push(l);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(s=0,o=n.length;s<o;++s)c=n[s+1],a=n[s-1],l=n[s],Math.round((c+a)/2)!==l&&r.push({time:l,pos:s/(o-1)});return r}_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(hv(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return hv(this._table,i*this._tableRange+this._minPos,!0)}}uv.id="timeseries",uv.defaults=cv.defaults;const dv=[pp,Zg,Nm,Object.freeze({__proto__:null,CategoryScale:Bm,LinearScale:$m,LogarithmicScale:Um,RadialLinearScale:ev,TimeScale:cv,TimeSeriesScale:uv})];Sg.register(...dv);const fv=Sg;function pv(t){return pv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pv(t)}function gv(t){return function(t){if(Array.isArray(t))return mv(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return mv(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return mv(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mv(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function vv(){vv=function(){return t};var t={},e=Object.prototype,i=e.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},s=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,r){var s=e&&e.prototype instanceof d?e:d,o=Object.create(s.prototype),a=new E(r||[]);return n(o,"_invoke",{value:x(t,i,a)}),o}function h(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var u={};function d(){}function f(){}function p(){}var g={};l(g,s,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(M([])));v&&v!==e&&i.call(v,s)&&(g=v);var b=p.prototype=d.prototype=Object.create(g);function y(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(n,s,o,a){var l=h(t[n],t,s);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==pv(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,o,a)}),(function(t){r("throw",t,o,a)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,a)}))}a(l.arg)}var s;n(this,"_invoke",{value:function(t,i){function n(){return new e((function(e,n){r(t,i,e,n)}))}return s=s?s.then(n,n):n()}})}function x(t,e,i){var n="suspendedStart";return function(r,s){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw s;return A()}for(i.method=r,i.arg=s;;){var o=i.delegate;if(o){var a=w(o,i);if(a){if(a===u)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var l=h(t,e,i);if("normal"===l.type){if(n=i.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n="completed",i.method="throw",i.arg=l.arg)}}}function w(t,e){var i=e.method,n=t.iterator[i];if(void 0===n)return e.delegate=null,"throw"===i&&t.iterator.return&&
vendor: 1,587 bytes, line 2
2(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),u;var r=h(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;var s=r.arg;return s?s.done?(e[t.resultName]=s.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):s:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function M(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:A}}function A(){return{value:void 0,done:!0}}return f.prototype=p,n(b,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:f,configurable:!0}),f.displayName=l(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,l(t,a,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}}
vendor: 4,327 bytes, line 2
2,y(_.prototype),l(_.prototype,o,(function(){return this})),t.AsyncIterator=_,t.async=function(e,i,n,r,s){void 0===s&&(s=Promise);var o=new _(c(e,i,n,r),s);return t.isGeneratorFunction(i)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},y(b),l(b,a,"Generator"),l(b,s,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),i=[];for(var n in e)i.push(n);return i.reverse(),function t(){for(;i.length;){var n=i.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=M,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(i,n){return o.type="throw",o.arg=t,e.next=i,n&&(e.method="next",e.arg=void 0),!!n}for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r],o=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var a=i.call(s,"catchLoc"),l=i.call(s,"finallyLoc");if(a&&l){if(this.prev<s.catchLoc)return n(s.catchLoc,!0);if(this.prev<s.finallyLoc)return n(s.finallyLoc)}else if(a){if(this.prev<s.catchLoc)return n(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return n(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var s=r;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=e&&e<=s.finallyLoc&&(s=null);var o=s?s.completion:{};return o.type=t,o.arg=e,s?(this.method="next",this.next=s.finallyLoc,u):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),S(i),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;S(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:M(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),u}},t}function bv(t,e,i,n,r,s,o){try{var a=t[s](o),l=a.value}catch(t){return void i(t)}a.done?e(l):Promise.resolve(l).then(n,r)}function yv(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function _v(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?yv(Object(i),!0).forEach((function(e){xv(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):yv(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function xv(t,e,i){return(e=function(t){var e=function(t,e){if("object"!==pv(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==pv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===pv(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var wv=function(t,e,i,n,r,s){if(n&&Array.isArray(n.labels)&&Array.isArray(n.datasets)){var o="chart-table-".concat(i),a=t.querySelector("#".concat(o));a&&a.remove();var l=function(t){return Array.isArray(t)?t.join(" "):String(null==t?"":t)},c=document.createElement("table");if(c.id=o,c.className="sr-only",r){var h=document.createElement("caption");h.textContent=r,c.appendChild(h)}var u=document.createElement("thead"),d=document.createElement("tr");
2d.appendChild(document.createElement("td")),n.datasets.forEach((function(t){var e=document.createElement("th");e.setAttribute("scope","col");var i=l(t.label);e.textContent=i&&"Dataset"!==i?i:s||"Verdi",d.appendChild(e)})),u.appendChild(d),c.appendChild(u);var f=document.createElement("tbody");n.labels.forEach((function(t,e){var i=document.createElement("tr"),r=document.createElement("th");r.setAttribute("scope","row"),r.textContent=l(t),i.appendChild(r),n.datasets.forEach((function(t){var n,r=document.createElement("td");r.textContent=null==(n=t.data?t.data[e]:void 0)||""===n||Number.isNaN(n)?"":"".concat(n).concat(s||""),i.appendChild(r)})),f.appendChild(i)})),c.appendChild(f),t.appendChild(c),e&&(e.setAttribute("role","img"),e.getAttribute("aria-label")||e.setAttribute("aria-label",r||"Diagram"),e.setAttribute("aria-describedby",o))}},kv={init:function(t){var e=document.querySelectorAll("[data-chart]");e.length&&e.length&&e.forEach((function(t){var e,i=t.getAttribute("data-chart"),n=t.querySelector("canvas"),r=t.parentElement,s=(null===(e=t.querySelector("[data-contents]"))||void 0===e?void 0:e.textContent.trim())||"",o="true"===t.getAttribute("data-transpose"),a=t.getAttribute("data-chart-type")||"bar",l=t.getAttribute("data-color-option")||"default",c="true"===t.getAttribute("data-stack-chart"),h=t.getAttribute("data-y-axes")||"",u=t.getAttribute("data-chart-title")||"",d=t.getAttribute("data-legend-position")||"bottom",f=t.getAttribute("data-y-scale")||"",p=t.getAttribute("data-index-axis")||"x",g="#db2e2e",m="#e6e6e9",v="#030925",b="#363A51",y=[g,"#871530","#ff9900","#e98181","#e25858",b,"#2a9a57",v,"#ffad33","#55ae79","#FFD699","#ffc266","#b77383","#9f445a","#7fc29a","#AAD7BC","#D4EBDD","#d2a6b0","#e7d0d6","#f3e8ea","#686b7c","#9A9CA8","#CDCED3","#FDF5F5","#f5f6f7",m],_=function(t,e){for(var i=t.split(" "),n=[],r=[],s=0;s<i.length;s++){r.push(i[s]);var o=r.join(" ");o.length>e&&(n.push(o),r=[])}return r.length&&n.push(r.join(" ").trim()),n},x={padding:20,backgroundColor:"white",borderColor:m,titleColor:v,bodyColor:v,borderWidth:1,font:{weight:"400"}},w=_v({callbacks:{title:function(t){return"".concat(t[0].dataset?t[0].dataset.label:"")},label:function(t){return"".concat(t.label,": ").concat(t.parsed.y,"%")}},displayColors:!1},x),k=_v({callbacks:{title:function(t){return _(t[0].label,30)||""}},displayColors:!1},x),S=_v({callbacks:{label:function(t){return h?" "+t.label+" "+t.formattedValue+" "+h:" "+t.label+" "+t.formattedValue}}},x),E={borderWidth:3,hoverBorderWidth:3},M={display:!0,color:b,hoverColor:v,padding:5},A=function(t){for(var e=[],i=0;i<t.length;++i)for(var n=0;n<t[i].length;++n)e[n]||(e[n]=[]),e[n][i]=t[i][n];return e},C=function(){var t,e=(t=vv().mark((function t(e,i,n,r){var s,o,a,l,c,h,u,d,f,p;return vv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",void 0);case 2:if(s=65279===e.charCodeAt(0),"doughnut"!==n){t.next=13;break}return s&&(e=e.slice(1)),o=e.split("\n"),a=o.map((function(t){return t.indexOf(",")>-1?t.split(","):t.indexOf(";")>-1?t.split(";"):t.split(",")})),c=(l=a).map((function(t){return t[0]})).filter((function(t){return t&&""!==t.trim()})),h=[{label:"Dataset",data:l.slice(1).map((function(t){return Number(t[1])})),backgroundColor:l.slice(1).map((function(t,e){return y[e%y.length]})),borderColor:"white",borderWidth:2,hoverOffset:4}],t.abrupt("return",{labels:c,datasets:h});case 13:return o=e.split("\n"),a=o.map((function(t,e){return t.indexOf(",")>-1?a=t.split(","):t.indexOf(";")>-1?a=t.split(";"):a})),l=a,i&&(l=A(l)),u=!1,1===l.slice(1).length&&"line"===n&&(u=!0),d=l.slice(1).length,"doughnut"===n?(f=l.map((function(t){return t.filter((function(t){return" "!==t}))})),p=f.map((function(t){return t.length,t[0]})),c=p.map((function(t){return decodeURIComponent(escape(t))}))):c=l[0].slice(1).map((function(t){return _(t,22)})),h=l.slice(1).map((function(t,e){var i;if("default"===r&&(i=y),"monochrome"===r&&(i=[g,g,g,g,g]),"monochrome"===r&&"bar"===n){var s=Math.round(100/d);e>0&&(i="#DB2E2E"+String(100-e*s)),0===e&&(i="#DB2E2E")}var o,a,l=t[0],c=t.slice(1).map((function(t){return Number(t)})),h="FF";return"default"===r&&(e>5&&e<11&&(h="60"),e>11&&e<17&&(h="30"),e>17&&e<23&&(h="FF")),"doughnut"!==n?{label:l,data:c,pointBackgroun
2dColor:"".concat(i[e]),backgroundColor:u?"".concat(i[e],"22"):"monochrome"===r&&"bar"===n?i:(o=i[e],a=h,"".concat(o).concat(a)),borderColor:i[e],fill:u}:{label:l,data:c,pointBackgroundColor:"".concat(i[e]),backgroundColor:i,borderColor:"white",fill:u}})),t.abrupt("return",{labels:c,datasets:h});case 23:case"end":return t.stop()}}),t)})),function(){var e=this,i=arguments;return new Promise((function(n,r){var s=t.apply(e,i);function o(t){bv(s,n,r,o,a,"next",t)}function a(t){bv(s,n,r,o,a,"throw",t)}o(void 0)}))});return function(t,i,n,r){return e.apply(this,arguments)}}();C(s,o,a,l).then((function(e){var s,o=e;s="true"===c;var l,g=k,m={boxWidth:30};if("doughnut"===a)if(g=S,h)m={generateLabels:function(t){var e=t.data;if(e.labels.length&&e.datasets.length)return e.labels.map((function(t,i){var n=e.datasets[0].backgroundColor[i];return{text:t+" | "+(e.datasets[0].data[i]+h),fillStyle:n,index:i}}))},boxWidth:30};else m={boxWidth:30};if("line"===a&&(g=w,m={boxWidth:40,boxHeight:1}),"doughnut"!==a&&"x"===p&&(l={x:{stacked:s,ticks:M},y:{min:f,stacked:s,ticks:_v(_v({},M),{},{callback:function(t,e,i){return t+h}})}}),"doughnut"!==a&&"y"===p&&(l={x:{stacked:s,ticks:_v(_v({},M),{},{callback:function(t,e,i){return t+h}})},y:{stacked:s,ticks:M}}),0===u.length)var b=!1;else b=!0;var y=_(u,75),x={type:a,data:o,options:{indexAxis:p,responsive:!0,maintainAspectRatio:!1,elements:{point:E},plugins:{title:{display:b,text:y,padding:{bottom:24}},tooltip:g,legend:{position:d,display:!0,labels:m}},scales:l}};fv.defaults.font.size=12,fv.defaults.font.weight=600,fv.defaults.color=v,fv.defaults.font.family="Brown","bar"===a&&x.data.labels.length>5&&(t.classList.remove("md:h-screen-60"),t.classList.remove("h-screen-80"),t.classList.add("h-screen"));var A=n.getContext("2d"),C=new fv(A,x);wv(t,n,i,o,u,h);var O=r.querySelector("#label-filter-".concat(i)),D=o.labels.length>1,P=o.datasets.length>1;if(O&&("bar"===a||"line"===a&&D&&P||"pie"===a&&D)){var T=O.querySelector("[data-dataset-filter]"),L=O.querySelector("[data-series-filter]");if(T&&L){var z=O.querySelector("[data-filter-toggle]"),I=O.querySelector("[data-label-filter-dropdown]"),R=null==z?void 0:z.querySelector("span"),F=!1;if(z&&I&&R){var N=function(){I.classList.contains("open")&&(F=!0,ra.to(I,{y:5,duration:.25,ease:"quad.out",onComplete:function(){F=!1}}),ra.to(I,{opacity:0,autoAlpha:0,duration:.15,ease:"sine.in",onComplete:function(){ra.set(I,{display:"none"}),I.classList.remove("open"),z.classList.remove("!text-white","!bg-red-100","!border-red-100"),z.setAttribute("aria-expanded","false"),R.textContent="Filter"}}))};z.setAttribute("aria-haspopup","true"),z.setAttribute("aria-expanded","false");var j=function(){F=!0,z.classList.add("!text-white","!bg-red-100","!border-red-100"),z.setAttribute("aria-expanded","true"),R.textContent="Lukk",ra.set(I,{display:"block"}),ra.fromTo(I,{y:8},{y:0,duration:.45,ease:"expo.out",onComplete:function(){F=!1}}),ra.fromTo(I,{opacity:0,autoAlpha:0},{opacity:1,autoAlpha:1,duration:.2,ease:"sine.out",onComplete:function(){I.classList.add("open");var t=I.querySelector('input, button, [tabindex]:not([tabindex="-1"])');t&&t.focus()}})};z.addEventListener("click",(function(t){(t.preventDefault(),F)||(I.classList.contains("open")?N():j())})),z.addEventListener("keydown",(function(t){"Enter"!==t.key&&" "!==t.key||F||(t.preventDefault(),I.classList.contains("open")?N():j())})),document.addEventListener("keydown",(function(t){"Escape"===t.key&&I.classList.contains("open")&&(N(),z.focus())})),document.addEventListener("click",(function(t){!O.contains(t.target)&&I.classList.contains("open")&&N()}))}var B,V,W=gv(o.labels),H=o.datasets.map((function(t){return _v(_v({},t),{},{data:gv(t.data)})})),$=W.map((function(t){return Array.isArray(t)?t.join(" "):t})),q=H.map((function(t){return t.label})),U=function(){var t=W.map((function(t,e){var i=Array.isArray(t)?t.join(" "):t;return $.includes(i)?e:-1})).filter((function(t){return-1!==t}));C.data.labels=t.map((function(t){return W[t]})),C.data.datasets=H.filter((function(t){return q.includes(t.label)})).map((function(e){return _v(_v({},e),{},{data:t.map((function(t){return e.data[t]}))})})),C.update()};if(W.length>1)W.forEach((function(t,e){var n="label-".concat(i,"-").concat(e),r=Array.isArray(t)?t.join(" "):t,s=document.createElement("div");s.className="flex items-center gap-1.5 text-3xs";var o=document.createElement("input");o.type="checkbox",o.id=n,o.dataset.index=e,o.checked=!0;var a=document.createElement("label");a.setAttribute("for",n),a.textContent=r,s.appendChild(o),s.appendChild(a),T.a
2ppendChild(s),o.addEventListener("change",(function(){o.checked?$.includes(r)||$.push(r):$=$.filter((function(t){return t!==r})),U()}))}));else null===(B=T.closest("[data-filter-group]"))||void 0===B||B.remove();if(H.length>1)H.forEach((function(t,e){var n="series-".concat(i,"-").concat(e),r=t.label,s=document.createElement("div");s.className="flex items-center gap-1.5 text-3xs";var o=document.createElement("input");o.type="checkbox",o.id=n,o.dataset.index=e,o.checked=!0,o.style.appearance="none",o.style.MozAppearance="none",o.style.backgroundColor=o.checked?t.backgroundColor:"#ffffff",o.setAttribute("tabindex","0"),o.addEventListener("change",(function(){o.style.backgroundColor=o.checked?t.backgroundColor:"#ffffff",o.checked?q.includes(r)||q.push(r):q=q.filter((function(t){return t!==r})),U()}));var a=document.createElement("label");a.setAttribute("for",n),a.textContent=r,a.className="flex items-center gap-1.5",s.appendChild(o),s.appendChild(a),L.appendChild(s)}));else null===(V=L.closest("[data-filter-group]"))||void 0===V||V.remove()}else console.warn("Mangler dataset eller series filter – fjerner container."),O.remove()}else O?(console.warn("Filter container finnes, men grafen er ikke bar eller har for få labels/datasets – fjerner den."),O.remove()):console.warn("Filter container ikke funnet.")}))}))}};const Sv=kv;function Ev(t){return Ev="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ev(t)}function Mv(t,e,i){return(e=function(t){var e=function(t,e){if("object"!==Ev(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Ev(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ev(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}window.addEventListener("load",(function(){var t,e=(Mv(t={html:document.querySelector("html"),body:document.querySelector("body"),main:document.querySelector("main#main"),prefersReducedMotion:window.matchMedia("(prefers-reduced-motion: reduce)").matches,filterContainer:document.querySelector("[data-filter-content]"),isTouch:!1,currentUrl:window.location.href,prevUrl:""},"isTouch",!1),Mv(t,"isAjaxLoading",!1),Mv(t,"changedPage",!1),Mv(t,"init",(function(){e.isTouchDevice(),e.setVars(),e.initCommon(),e.addEventListeners()})),Mv(t,"setVars",(function(){e.isFrontpage=!!e.body.classList.contains("is-frontpage")})),Mv(t,"runFunctions",(function(){e.resizeCheck(),ca.init(e),fa.init(e),ha.init(e),Qc.init(e),za.init(e),va.init(e),ih.init(e),Sv.init(e)})),Mv(t,"initCommon",(function(){e.runFunctions(),ga.init(e);var t=document.querySelector("[data-search-select]");t&&t.addEventListener("change",(function(t){document.location.href=t.target.value}))})),Mv(t,"handleResize",(function(){e.resizeCheck()})),Mv(t,"handleKeyup",(function(t){"Escape"===t.key&&ga.vars.isOpen&&ga.close(e)})),Mv(t,"addEventListeners",(function(){window.addEventListener("keyup",e.handleKeyup.bind(this)),window.addEventListener("resize",e.handleResize.bind(this)),window.addEventListener("popstate",e.handlePopstate.bind(this)),document.addEventListener("click",e.handleClick),document.addEventListener("keydown",(function(t){"Tab"===t.key&&(document.documentElement.classList.remove("no-outline"),document.documentElement.classList.add("outline"))})),document.addEventListener("mousedown",(function(){document.documentElement.classList.add("no-outline"),document.documentElement.classList.remove("outline")}))})),Mv(t,"resizeCheck",(function(){e.windowWidth=window.innerWidth,e.windowHeight=window.innerHeight,e.isDesktop=e.windowWidth>"768"})),Mv(t,"handleClick",(function(t){var i=t.target;if("A"===i.tagName&&i.classList.contains("filter-link")){var n=i.getAttribute("href"),r=n&&"#"===n.charAt(0);if((n.indexOf(document.domain)>-1||"/"===n.charAt(0))&&!i.classList.contains("force-refresh")&&!r)return t.preventDefault(),history.pushState({previousUrl:window.location.href},"",n),oa.init(e,i,n,!1),!1}})),Mv(t,"handlePopstate",(function(){location.reload()})),Mv(t,"isTouchDevice",(function(){"ontouchstart"in window||"onmsgesturechange"in window?(e.html.classList.remove("no-touchevents"),e.html.classList.add("touchevents"),e.isTouch=!0):(e.html.classList.remove("touchevents"),e.html.classList.add("no-touchevents"),e.isTouch=!1)})),Mv(t,"reload",(function(){location.reload()})),t);e.init(e.main),window.app=e,window.Alpine=Ci,Ci.start();var i=document.querySelectorAll("[data-richtext] p a, [data-richtext] strong a");if(i.length>
20&&i.forEach((function(t){(1===t.children.length&&"BR"===t.children[0].tagName||""===t.innerHTML.trim())&&t.remove()})),-1!==window.location.search.indexOf("?role=")){var n=window.location.search.split("?role=")[1].split("&")[0];document.querySelectorAll("[data-guide] [data-richtext] a").forEach((function(t){t.href.includes("veiledere")&&t.hostname===window.location.hostname&&t.href.includes("veiledere")&&(t.href+="?role="+n)}))}}))},245:(t,e,i)=>{"use strict";i.d(e,{Z:()=>s});var n=i(645),r=i.n(n)()((function(t){return t[1]}));r.push([t.id,".tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{left:11px;top:calc(50% - 3px);transform:rotate(90deg)}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{right:11px;top:calc(50% - 3px);transform:rotate(-90deg)}.tippy-svg-arrow{fill:#333;height:16px;text-align:initial;width:16px}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}",""]);const s=r},645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=t(e);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i})).join("")},e.i=function(t,i,n){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(n)for(var s=0;s<this.length;s++){var o=this[s][0];null!=o&&(r[o]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);n&&r[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),e.push(l))}},e}},741:(t,e,i)=>{var n,r;!function(s,o){"use strict";void 0===(r="function"==typeof(n=o)?n.call(e,i,e,t):n)||(t.exports=r)}(window,(function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(e,i){return e[t](i)}}))},105:(t,e,i)=>{var n,r;window,n=[i(367),i(639)],void 0===(r=function(t,e){return function(t,e,i){"use strict";e.createMethods.push("_createImagesLoaded");var n=e.prototype;return n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},n.imagesLoaded=function(){if(this.options.imagesLoaded){var t=this;i(this.slider).on("progress",e)}function e(e,i){var n=t.getParentCell(i.img);t.cellSizeChange(n&&n.element),t.options.freeScroll||t.positionSliderAtSelected()}},e}(0,t,e)}.apply(e,n))||(t.exports=r)},160:function(t,e,i){var n,r;"undefined"!=typeof window&&window,void 0===(r="function"==typeof(n=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],r=0;r<i.length;r++){var s=i[r];n&&n[s]&&(this.off(t,s),delete n[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?n.call(e,i,e,t):n)||(t.exports=r)},603:(t,e,i)=>{var n,r;!function(s,o){n=[i(741)],r=function(t){return function(t,e){"use strict";var i={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},n=Array.prototype.slice;i.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var r=[];return t.forEach((function(t){if(t instanceof HTMLElement)if(n){e(t,n)&&r.push(t);for(var i=t.querySelectorAll(n),s=0;s<i.length;s++)r.push(i[s])}else r.push(t)})),r}
2,i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments,s=this;this[r]=setTimeout((function(){n.apply(s,e),delete s[r]}),i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,i){return e+"-"+i})).toLowerCase()};var r=t.console;return i.htmlInit=function(e,n){i.docReady((function(){var s=i.toDashed(n),o="data-"+s,a=document.querySelectorAll("["+o+"]"),l=document.querySelectorAll(".js-"+s),c=i.makeArray(a).concat(i.makeArray(l)),h=o+"-options",u=t.jQuery;c.forEach((function(t){var i,s=t.getAttribute(o)||t.getAttribute(h);try{i=s&&JSON.parse(s)}catch(e){return void(r&&r.error("Error parsing "+o+" on "+t.className+": "+e))}var a=new e(t,i);u&&u.data(t,n,a)}))}))},i}(s,t)}.apply(e,n),void 0===r||(t.exports=r)}(window)},517:(t,e,i)=>{var n,r;window,n=[i(437),i(603)],void 0===(r=function(t,e){return function(t,e,i){"use strict";function n(t){var e=document.createDocumentFragment();return t.forEach((function(t){e.appendChild(t.element)})),e}var r=e.prototype;return r.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var r=this.cells.length;e=void 0===e?r:e;var s=n(i),o=e==r;if(o)this.slider.appendChild(s);else{var a=this.cells[e].element;this.slider.insertBefore(s,a)}if(0===e)this.cells=i.concat(this.cells);else if(o)this.cells=this.cells.concat(i);else{var l=this.cells.splice(e,r-e);this.cells=this.cells.concat(i).concat(l)}this._sizeCells(i),this.cellChange(e,!0)}},r.append=function(t){this.insert(t,this.cells.length)},r.prepend=function(t){this.insert(t,0)},r.remove=function(t){var e=this.getCells(t);if(e&&e.length){var n=this.cells.length-1;e.forEach((function(t){t.remove();var e=this.cells.indexOf(t);n=Math.min(e,n),i.removeFrom(this.cells,t)}),this),this.cellChange(n,!0)}},r.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},r.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();var n=this.getCell(i);n&&(this.selectedIndex=this.getCellSlideIndex(n)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}(0,t,e)}.apply(e,n))||(t.exports=r)},696:(t,e,i)=>{var n,r;window,n=[i(603)],void 0===(r=function(t){return function(t,e){"use strict";var i={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var t=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating){var e=this;requestAnimationFrame((function(){e.animate()}))}},positionSlider:function(){var t=this.x;this.options.wrapAround&&this.cells.length>1&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),this.setTranslateX(t,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(t,e){t+=this.cursorPosition,t=this.options.rightToLeft?-t:t;var i=this.getPositionValue(t);this.slider.style.transform=e?"translate3d("+i+",0,0)":"translateX("+i+")"},dispatchScrollEvent:function(){var t=this.slides[0];if(t){var e=-this.x-t.target,i=e/this.slidesWidth;this.dispatchEvent("scroll",null,[i,e])}},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){!this.isPointerDown&&Math.round(100*this.x)==Math.round(100*t)&&this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)}
vendor: 16,240 bytes, line 2
2,_shiftCells:function(t,e,i){for(var n=0;n<t.length;n++){var r=t[n],s=e>0?i:0;r.wrapShift(s),e-=r.size.outerWidth}},_unshiftCells:function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(t){this.velocity+=t},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){if(this.isDraggable&&this.isPointerDown){var t=this.dragX-this.x-this.velocity;this.applyForce(t)}},applySelectedAttraction:function(){if((!this.isDraggable||!this.isPointerDown)&&!this.isFreeScrolling&&this.slides.length){var t=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction;this.applyForce(t)}}};return i}(0,t)}.apply(e,n))||(t.exports=r)},994:(t,e,i)=>{var n,r;window,n=[i(414)],void 0===(r=function(t){return function(t,e){"use strict";function i(t,e){this.element=t,this.parent=e,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0,this.element.style[this.parent.originSide]=0},n.destroy=function(){this.unselect(),this.element.style.position="";var t=this.parent.originSide;this.element.style[t]="",this.element.style.transform="",this.element.removeAttribute("aria-hidden")},n.getSize=function(){this.size=e(this.element)},n.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},n.updateTarget=n.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},n.renderPosition=function(t){var e="left"===this.parent.originSide?1:-1,i=this.parent.options.percentPosition?t*e*(this.parent.size.innerWidth/this.size.width):t*e;this.element.style.transform="translateX("+this.parent.getPositionValue(i)+")"},n.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},n.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},n.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}(0,t)}.apply(e,n))||(t.exports=r)},486:(t,e,i)=>{var n,r;!function(s,o){n=[i(437),i(282),i(603)],r=function(t,e,i){return function(t,e,i,n){"use strict";n.extend(e.defaults,{draggable:">1",dragThreshold:3}),e.createMethods.push("_createDrag");var r=e.prototype;n.extend(r,i.prototype),r._touchActionValue="pan-y",r._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable)},r.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},r.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},r.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},r.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},r.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},r._uiChangeDrag=function(){delete this.isFreeScrolling},r.pointerDown=function(e,i){this.isDraggable?this.okayPointerDown(e)&&(this._pointerDownPreventDefault(e),this.pointerDownFocus(e),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=o(),t.addEventListener("scroll",this),this._pointerDownDefault(e,i)):this._pointerDownDefault(e,i)},r._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[e])};var s={INPUT:!0,TEXTAREA:!0,SELECT:!0};function o(){return{x:t.pageXOffset,y:t.pageYOffset}}return r.pointerDownFocus=function(t){s[t.target.nodeName]||this.focus()},r._pointerDownPreventDefault=function(t){var e="touchstart"==t.type,i="touch"==t.pointerType,n=s[t.target.nodeName];e||i||n||t.preventDefault()},r.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},r.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},r.pointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},r.dragStart=function(e,i){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),t.removeEventListener("scroll",this),this.dispatchEvent("dragStart",e,[i]))},r.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},r.dragMove=function(t,e,i){if(this.isDraggable){t.preventDefault(),this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1;this.options.wrapAround&&(i.x%=this.slideableWidth);var r=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var s=Math.max(-this.slides[0].target,this.dragStartPosition);r=r>s?.5*(r+s):r;var o=Math.min(-this.getLastSlide().target,this.dragStartPosition);r=r<o?.5*(r+o):r}this.dragX=r,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i])}},r.dragEnd=function(t,e){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n=this.getRestingPosition();this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target}else this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e])}},r.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),n=this._getClosestResting(t,e,-1);return i.distance<n.distance?i.index:n.index},r._getClosestResting=function(t,e,i){for(var n=this.selectedIndex,r=1/0,s=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};s(e,r)&&(n+=i,r=e,null!==(e=this.getSlideDistance(-t,n)));)e=Math.abs(e);return{distance:r,index:n-i}},r.getSlideDistance=function(t,e){var i=this.slides.length,r=this.options.wrapAround&&i>1,s=r?n.modulo(e,i):e,o=this.slides[s];if(!o)return null;var a=r?this.slideableWidth*Math.floor(e/i):0;return t-(o.target+a)},r.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return t>0&&e>0?1:t<0&&e<0?-1:0},r.staticClick=function(t,e){var i=this.getParentCell(t.target),n=i&&i.element,r=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,r])},r.onscroll=function(){var t=o(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(i)>3)&&this._pointerDone()},e}(s,t,e,i)}.apply(e,n),void 0===r||(t.exports=r)}(window)},437:(t,e,i)=>{var n,r;!function(s,o){n=[i(160),i(414),i(603),i(994),i(318),i(696)],r=function(t,e,i,n,r,o){return function(t,e,i,n,r,s,o){"use strict";var a=t.jQuery,l=t.getComputedStyle,c=t.console;function h(t,e){for(t=n.makeArray(t);t.length;)e.appendChild(t.shift())}var u=0,d={};function f(t,e){var i=n.getQueryElement(t);if(i){if(this.element=i,this.element.flickityGUID){var r=d[this.element.flickityGUID];return r&&r.option(e),r}a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),this._create()}else c&&c.error("Bad element for Flickity: "+(i||t))}f.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},f.createMethods=[];var p=f.prototype;n.extend(p,e.prototype),p._create=function(){var e=this.guid=++u;for(var i in this.element.flickityGUID=e,d[e]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&t.addEventListener("resize",this),this.options.on){var n=this.options.on[i];this.on(i,n)}f.createMethods.forEach((function(t){this[t]()}),this),this.options.watchCSS?this.watchCSS():this.activate()},p.option=function(t){n.extend(this.options,t)},p.activate=function(){this.isActive||(this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),h(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready"))},p._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},p._filterFindCellElements=function(t){return n.filterFindElements(t,this.options.cellSelector)},p.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},p._makeCells=function(t){return this._filterFindCellElements(t).map((function(t){return new r(t,this)}),this)},p.getLastCell=function(){return this.cells[this.cells.length-1]},p.getLastSlide=function(){return this.slides[this.slides.length-1]},p.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},p._positionCells=function(t){t=t||0,this.maxCellHeight=t&&this.maxCellHeight||0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var n=this.cells.length,r=t;r<n;r++){var s=this.cells[r];s.setPosition(e),e+=s.size.outerWidth,this.maxCellHeight=Math.max(s.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},p._sizeCells=function(t){t.forEach((function(t){t.getSize()}))},p.updateSlides=function(){if(this.slides=[],this.cells.length){var t=new s(this);this.slides.push(t);var e="left"==this.originSide?"marginRight":"marginLeft",i=this._getCanCellFit();this.cells.forEach((function(n,r){if(t.cells.length){var o=t.outerWidth-t.firstMargin+(n.size.outerWidth-n.size[e]);i.call(this,r,o)||(t.updateTarget(),t=new s(this),this.slides.push(t)),t.addCell(n)}else t.addCell(n)}),this),t.updateTarget(),this.updateSelectedSlide()}},p._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!=0}}var i="string"==typeof t&&t.match(/^(\d+)%$/),n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=i(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};p.setCellAlign=function(){var t=g[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},p.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},p._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}},p._getGapCells=function(t,e,i){for(var n=[];t>0;){var r=this.cells[e];if(!r)break;n.push(r),e+=i,t-=r.size.outerWidth}return n},p._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",i=t?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],r=n<this.size.innerWidth,s=this.cursorPosition+this.cells[0].size[e],o=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach((function(t){r?t.target=n*this.cellAlign:(t.target=Math.max(t.target,s),t.target=Math.min(t.target,o))}),this)}},p.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),a&&this.$element){var r=t+=this.options.namespaceJQueryEvents?".flickity":"";if(e){var s=new a.Event(e);s.type=t,r=s}this.$element.trigger(r,i)}},p.select=function(t,e,i){if(this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=n.modulo(t,this.slides.length)),this.slides[t])){var r=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=r&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect")}},p._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&e>1))return t;var i=n.modulo(t,e),r=Math.abs(i-this.selectedIndex),s=Math.abs(i+e-this.selectedIndex),o=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&s<r?t+=e:!this.isDragSelect&&o<r&&(t-=e),t<0?this.x-=this.slideableWidth:t>=e&&(this.x+=this.slideableWidth)},p.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},p.next=function(t,e){this.select(this.selectedIndex+1,t,e)},p.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},p.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},p.selectInitialIndex=function(){var t=this.options.initialIndex;if(this.isInitActivated)this.select(this.selectedIndex,!1,!0);else{if(t&&"string"==typeof t)if(this.queryCell(t))return void this.selectCell(t,!1,!0);var e=0;t&&this.slides[t]&&(e=t),this.select(e,!1,!0)}},p.selectCell=function(t,e,i){var n=this.queryCell(t);if(n){var r=this.getCellSlideIndex(n);this.select(r,e,i)}},p.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++){if(-1!=this.slides[e].cells.indexOf(t))return e}},p.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},p.getCells=function(t){t=n.makeArray(t);var e=[];return t.forEach((function(t){var i=this.getCell(t);i&&e.push(i)}),this),e},p.getCellElements=function(){return this.cells.map((function(t){return t.element}))},p.getParentCell=function(t){var e=this.getCell(t);return e||(t=n.getParent(t,".flickity-slider > *"),this.getCell(t))},p.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(1+2*t>=i)return this.getCellElements();for(var r=[],s=e-t;s<=e+t;s++){var o=this.options.wrapAround?n.modulo(s,i):s,a=this.slides[o];a&&(r=r.concat(a.getCellElements()))}return r},p.queryCell=function(t){if("number"==typeof t)return this.cells[t];if("string"==typeof t){if(t.match(/^[#.]?[\d/]/))return;t=this.element.querySelector(t)}return this.getCell(t)},p.uiChange=function(){this.emitEvent("uiChange")},p.childUIPointerDown=function(t){"touchstart"!=t.type&&t.preventDefault(),this.focus()},p.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(f,"onresize",150),p.resize=function(){if(this.isActive&&!this.isAnimating&&!this.isDragging){this.get
2Size(),this.options.wrapAround&&(this.x=n.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},p.watchCSS=function(){this.options.watchCSS&&(-1!=l(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},p.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!e){var i=f.keyboardHandlers[t.keyCode];i&&i.call(this)}},f.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},p.focus=function(){var e=t.pageYOffset;this.element.focus({preventScroll:!0}),t.pageYOffset!=e&&t.scrollTo(t.pageXOffset,e)},p.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach((function(t){t.destroy()})),this.element.removeChild(this.viewport),h(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},p.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),a&&this.$element&&a.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete d[this.guid]},n.extend(p,o),f.data=function(t){var e=(t=n.getQueryElement(t))&&t.flickityGUID;return e&&d[e]},n.htmlInit(f,"flickity"),a&&a.bridget&&a.bridget("flickity",f);return f.setJQuery=function(t){a=t},f.Cell=r,f.Slide=s,f}(s,t,e,i,n,r,o)}.apply(e,n),void 0===r||(t.exports=r)}(window)},367:(t,e,i)=>{var n,r,s;window,r=[i(437),i(486),i(354),i(181),i(675),i(517),i(74)],void 0===(s="function"==typeof(n=function(t){return t})?n.apply(e,r):n)||(t.exports=s)},74:(t,e,i)=>{var n,r;window,n=[i(437),i(603)],void 0===(r=function(t,e){return function(t,e,i){"use strict";e.createMethods.push("_createLazyload");var n=e.prototype;function r(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),n=t.getAttribute("data-flickity-lazyload-src"),r=t.getAttribute("data-flickity-lazyload-srcset");if(e||n||r)return[t]}var s="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]",o=t.querySelectorAll(s);return i.makeArray(o)}function s(t,e){this.img=t,this.flickity=e,this.load()}return n._createLazyload=function(){this.on("select",this.lazyLoad)},n.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,i=this.getAdjacentCellElements(e),n=[];i.forEach((function(t){var e=r(t);n=n.concat(e)})),n.forEach((function(t){new s(t,this)}),this)}},s.prototype.handleEvent=i.handleEvent,s.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},s.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},s.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},s.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,n)},e.LazyLoader=s,e}(0,t,e)}.apply(e,n))||(t.exports=r)},181:(t,e,i)=>{var n,r;window,n=[i(437),i(704),i(603)],void 0===(r=function(t,e,i){return function(t,e,i,n){"use strict";function r(t){this.parent=t,this._create()}r.prototype=Object.create(i.prototype),r.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},r.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},r.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},r.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},r.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],n=this.dots.length,r=n+t,s=n;s<r;s++){var o=document.createElement("li");o.className="dot",o.setAttribute("aria-label","Page dot "+(s+1)),e.appendChild(o),i.push(o)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},r.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach((function(t){this.holder.removeChild(t)}),this)},r.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},r.prototype.onTap=r.prototype.onClick=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},r.prototype.destroy=function(){this.deactivate(),this.allOff()},e.PageDots=r,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var s=e.prototype;return s._createPageDots=function(){this.options.pageDots&&(this.pageDots=new r(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},s.activatePageDots=function(){this.pageDots.activate()},s.updateSelectedPageDots=function(){this.pageDots.updateSelected()},s.updatePageDots=function(){this.pageDots.setDots()},s.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=r,e}(0,t,e,i)}.apply(e,n))||(t.exports=r)},675:(t,e,i)=>{var n,r;
vendor: 6,135 bytes, line 2
2window,n=[i(160),i(603),i(437)],void 0===(r=function(t,e,i){return function(t,e,i){"use strict";function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}n.prototype=Object.create(t.prototype),n.prototype.play=function(){"playing"!=this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},n.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout((function(){e.parent.next(!0),e.tick()}),t)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var r=i.prototype;return r._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},r.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},r.playPlayer=function(){this.player.play()},r.stopPlayer=function(){this.player.stop()},r.pausePlayer=function(){this.player.pause()},r.unpausePlayer=function(){this.player.unpause()},r.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},r.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},r.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}(t,e,i)}.apply(e,n))||(t.exports=r)},354:(t,e,i)=>{var n,r;window,n=[i(437),i(704),i(603)],void 0===(r=function(t,e,i){return function(t,e,i,n){"use strict";var r="http://www.w3.org/2000/svg";function s(t,e){this.direction=t,this.parent=e,this._create()}function o(t){return"string"==typeof t?t:"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50  L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}s.prototype=Object.create(i.prototype),s.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},s.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},s.prototype.createSVG=function(){var t=document.createElementNS(r,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(r,"path"),i=o(this.parent.options.arrowShape);return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},s.prototype.handleEvent=n.handleEvent,s.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},s.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},s.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},s.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1)this.enable();else{var e=t.length?t.length-1:0,i=this.isPrevious?0:e;this[this.parent.selectedIndex==i?"disable":"enable"]()}},s.prototype.destroy=function(){this.deactivate(),this.allOff()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var a=e.prototype;return a._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new s(-1,this),this.nextButton=new s(1,this),this.on("activate",this.activatePrevNextButtons))},a.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},a.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=s,e}(0,t,e,i)}.apply(e,n))||(t.exports=r)},318:(t,e,i)=>{var n,r;window,void 0===(r="function"==typeof(n=function(){"use strict";function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){if(this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),i=e?e.size[t]:0,n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]}
2,e.select=function(){this.cells.forEach((function(t){t.select()}))},e.unselect=function(){this.cells.forEach((function(t){t.unselect()}))},e.getCellElements=function(){return this.cells.map((function(t){return t.element}))},t})?n.call(e,i,e,t):n)||(t.exports=r)},414:(t,e,i)=>{var n,r;window,void 0===(r="function"==typeof(n=function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function e(){}var i="undefined"==typeof console?e:function(t){console.error(t)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=n.length;function s(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<r;e++)t[n[e]]=0;return t}function o(t){var e=getComputedStyle(t);return e||i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}var a,l=!1;function c(){if(!l){l=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var n=o(e);a=200==Math.round(t(n.width)),h.isBoxSizeOuter=a,i.removeChild(e)}}function h(e){if(c(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var i=o(e);if("none"==i.display)return s();var l={};l.width=e.offsetWidth,l.height=e.offsetHeight;for(var h=l.isBorderBox="border-box"==i.boxSizing,u=0;u<r;u++){var d=n[u],f=i[d],p=parseFloat(f);l[d]=isNaN(p)?0:p}var g=l.paddingLeft+l.paddingRight,m=l.paddingTop+l.paddingBottom,v=l.marginLeft+l.marginRight,b=l.marginTop+l.marginBottom,y=l.borderLeftWidth+l.borderRightWidth,_=l.borderTopWidth+l.borderBottomWidth,x=h&&a,w=t(i.width);!1!==w&&(l.width=w+(x?0:g+y));var k=t(i.height);return!1!==k&&(l.height=k+(x?0:m+_)),l.innerWidth=l.width-(g+y),l.innerHeight=l.height-(m+_),l.outerWidth=l.width+v,l.outerHeight=l.height+b,l}}return h})?n.call(e,i,e,t):n)||(t.exports=r)},639:function(t,e,i){var n,r;!function(s,o){"use strict";n=[i(160)],r=function(t){return function(t,e){var i=t.jQuery,n=t.console;function r(t,e){for(var i in e)t[i]=e[i];return t}var s=Array.prototype.slice;function o(t){return Array.isArray(t)?t:"object"==typeof t&&"number"==typeof t.length?s.call(t):[t]}function a(t,e,s){if(!(this instanceof a))return new a(t,e,s);var l=t;"string"==typeof t&&(l=document.querySelectorAll(t)),l?(this.elements=o(l),this.options=r({},this.options),"function"==typeof e?s=e:r(this.options,e),s&&this.on("always",s),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):n.error("Bad element for imagesLoaded "+(l||t))}a.prototype=Object.create(e.prototype),a.prototype.options={},a.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},a.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&l[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var r=i[n];this.addImage(r)}if("string"==typeof this.options.background){var s=t.querySelectorAll(this.options.background);for(n=0;n<s.length;n++){var o=s[n];this.addElementBackgroundImages(o)}}}};var l={1:!0,9:!0,11:!0};function c(t){this.img=t}function h(t,e){this.url=t,this.element=e,this.img=new Image}return a.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var r=n&&n[2];r&&this.addBackground(r,t),n=i.exec(e.backgroundImage)}},a.prototype.addImage=function(t){var e=new c(t);this.images.push(e)},a.prototype.addBackground=function(t,e){var i=new h(t,e);this.images.push(i)},a.prototype.check=function(){var t=this;function e(e,i,n){setTimeout((function(){t.progress(e,i,n)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()}
vendor: 4,050 bytes, line 2
2,a.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&n&&n.log("progress: "+i,t,e)},a.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},c.prototype=Object.create(e.prototype),c.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},c.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},c.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},c.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},c.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},h.prototype=Object.create(c.prototype),h.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},h.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},h.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},a.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((i=e).fn.imagesLoaded=function(t,e){return new a(this,t,e).jqDeferred.promise(i(this))})},a.makeJQueryPlugin(),a}(s,t)}.apply(e,n),void 0===r||(t.exports=r)}("undefined"!=typeof window?window:this)},282:(t,e,i)=>{var n,r;!function(s,o){n=[i(704)],r=function(t){return function(t,e){"use strict";function i(){}var n=i.prototype=Object.create(e.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(e){for(var i=(e=void 0===e||e)?"addEventListener":"removeEventListener",n=e?this._touchActionValue:"",r=0;r<this.handles.length;r++){var s=this.handles[r];this._bindStartEvent(s,e),s[i]("click",this),t.PointerEvent&&(s.style.touchAction=n)}},n._touchActionValue="none",n.pointerDown=function(t,e){this.okayPointerDown(t)&&(this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var r={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},s={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(t){var e=r[t.target.nodeName],i=s[t.target.type],n=!e||i;return n||this._pointerReset(),n},n.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},n._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},n._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},n._dragStart=function(t,e){this.isDragging=!0,this.isPreventing
2Clicks=!0,this.dragStart(t,e)},n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},n._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},n.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},n._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},n.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},n._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},i.getPointerPoint=e.getPointerPoint,i}(s,t)}.apply(e,n),void 0===r||(t.exports=r)}(window)},90:t=>{!function(e,i){var n=function(t,e,i){"use strict";var n,r;if(function(){var e,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in r=t.lazySizesConfig||t.lazysizesConfig||{},i)e in r||(r[e]=i[e])}(),!e||!e.getElementsByClassName)return{init:function(){},cfg:r,noSupport:!0};var s=e.documentElement,o=t.HTMLPictureElement,a="addEventListener",l="getAttribute",c=t[a].bind(t),h=t.setTimeout,u=t.requestAnimationFrame||h,d=t.requestIdleCallback,f=/^picture$/i,p=["load","error","lazyincluded","_lazyloaded"],g={},m=Array.prototype.forEach,v=function(t,e){return g[e]||(g[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),g[e].test(t[l]("class")||"")&&g[e]},b=function(t,e){v(t,e)||t.setAttribute("class",(t[l]("class")||"").trim()+" "+e)},y=function(t,e){var i;(i=v(t,e))&&t.setAttribute("class",(t[l]("class")||"").replace(i," "))},_=function(t,e,i){var n=i?a:"removeEventListener";i&&_(t,e),p.forEach((function(i){t[n](i,e)}))},x=function(t,i,r,s,o){var a=e.createEvent("Event");return r||(r={}),r.instance=n,a.initEvent(i,!s,!o),a.detail=r,t.dispatchEvent(a),a},w=function(e,i){var n;!o&&(n=t.picturefill||r.pf)?(i&&i.src&&!e[l]("srcset")&&e.setAttribute("srcset",i.src),n({reevaluate:!0,elements:[e]})):i&&i.src&&(e.src=i.src)},k=function(t,e){return(getComputedStyle(t,null)||{})[e]},S=function(t,e,i){for(i=i||t.offsetWidth;i<r.minSize&&e&&!t._lazysizesWidth;)i=e.offsetWidth,e=e.parentNode;return i},E=(bt=[],yt=[],_t=bt,xt=function(){var t=_t;for(_t=bt.length?yt:bt,mt=!0,vt=!1;t.length;)t.shift()();mt=!1},wt=function(t,i){mt&&!i?t.apply(this,arguments):(_t.push(t),vt||(vt=!0,(e.hidden?h:u)(xt)))},wt._lsFlush=xt,wt),M=function(t,e){return e?function(){E(t)}:function(){var e=this,i=arguments;E((function(){t.apply(e,i)}))}},A=function(t){var e,n=0,s=r.throttleDelay,o=r.ricTimeout,a=function(){e=!1,n=i.now(),t()},l=d&&o>49?function(){d(a,{timeout:o}),o!==r.ricTimeout&&(o=r.ricTimeout)}:M((function(){h(a)}),!0);return function(t){var r;(t=!0===t)&&(o=33),e||(e=!0,(r=s-(i.now()-n))<0&&(r=0),t||r<9?l():h(l,r))}},C=function(t){var e,n,r=99,s=function(){e=null,t()},o=function(){var t=i.now()-n;t<r?h(o,r-t):(d||s)(s)};return function(){n=i.now(),e||(e=h(o,r))}},O=(X=/^img$/i,G=/^iframe$/i,K="onscroll"in t&&!/(gle|ing)bot/.test(navigator.userAgent),Z=0,Q=0,J=0,tt=-1,et=function(t){J--,(!t||J<0||!t.target)&&(J=0)},it=function(t){return null==Y&&(Y="hidden"==k(e.body,"visibility")),Y||!("hidden"==k(t.parentNode,"visibility")&&"hidden"==k(t,"visibility"))},nt=function(t,i){var n,r=t,o=it(t);for(H-=i,U+=i,$-=i,q+=i;o&&(r=r.offsetParent)&&r!=e.body&&r!=s;)(o=(k(r,"opacity")||1)>0)&&"visible"!=k(r,"overflow")&&(n=r.getBoundingClientRect(),o=q>n.left&&$<n.right&&U>n.top-1&&H<n.bottom+1);return o},rt=function(){var t,i,o,a,c,h,u,d,f,p,g,m,v=n.elements;if((j=r.loadMode)&&J<8&&(t=v.length)){for(i=0,tt++;i<t;i++)if(v[i]&&!v[i]._lazyRace)if(!K||n.prematureUnveil&&n.prematureUnveil(v[i]))dt(v[i]);else if((d=v[i][l]("data-expand"))&&(h=1*d)||(h=Q),p||(p=!r.expand||r.expand<1?s.clientHeight>500&&s.clientWidth>500?500:370:r.expand,n._defEx=p,g=p*r.expFactor,m=r.hFac,Y=null,Q<g&&J<1&&tt>2&&j>2&&!e.hidden?(Q=g,tt=0):Q=j>1&&tt>1&&J<6?p:Z),f!==h&&(V=innerWidth+h*m,W=innerHeight+h,u=-1*h,f=h),o=v[i].getBoundingClientRect(),(U=o.bottom)>=u&&(H=o.top)<=W&&(q=o.right)>=u*m&&($=o.left)<=V&&(U||q||$||H)&&(r.loadHidden||it(v[i]))&&(F&&J<3&&!d&&(j<3||tt<4)||nt(v[i],h))){if(dt(v[i]),c=!0,J>9)break}else!c&&F&&!a&&J<4&&tt<4&&j>
22&&(R[0]||r.preloadAfterLoad)&&(R[0]||!d&&(U||q||$||H||"auto"!=v[i][l](r.sizesAttr)))&&(a=R[0]||v[i]);a&&!c&&dt(a)}},st=A(rt),ot=function(t){var e=t.target;e._lazyCache?delete e._lazyCache:(et(t),b(e,r.loadedClass),y(e,r.loadingClass),_(e,lt),x(e,"lazyloaded"))},at=M(ot),lt=function(t){at({target:t.target})},ct=function(t,e){var i=t.getAttribute("data-load-mode")||r.iframeLoadMode;0==i?t.contentWindow.location.replace(e):1==i&&(t.src=e)},ht=function(t){var e,i=t[l](r.srcsetAttr);(e=r.customMedia[t[l]("data-media")||t[l]("media")])&&t.setAttribute("media",e),i&&t.setAttribute("srcset",i)},ut=M((function(t,e,i,n,s){var o,a,c,u,d,p;(d=x(t,"lazybeforeunveil",e)).defaultPrevented||(n&&(i?b(t,r.autosizesClass):t.setAttribute("sizes",n)),a=t[l](r.srcsetAttr),o=t[l](r.srcAttr),s&&(u=(c=t.parentNode)&&f.test(c.nodeName||"")),p=e.firesLoad||"src"in t&&(a||o||u),d={target:t},b(t,r.loadingClass),p&&(clearTimeout(N),N=h(et,2500),_(t,lt,!0)),u&&m.call(c.getElementsByTagName("source"),ht),a?t.setAttribute("srcset",a):o&&!u&&(G.test(t.nodeName)?ct(t,o):t.src=o),s&&(a||u)&&w(t,{src:o})),t._lazyRace&&delete t._lazyRace,y(t,r.lazyClass),E((function(){var e=t.complete&&t.naturalWidth>1;p&&!e||(e&&b(t,r.fastLoadedClass),ot(d),t._lazyCache=!0,h((function(){"_lazyCache"in t&&delete t._lazyCache}),9)),"lazy"==t.loading&&J--}),!0)})),dt=function(t){if(!t._lazyRace){var e,i=X.test(t.nodeName),n=i&&(t[l](r.sizesAttr)||t[l]("sizes")),s="auto"==n;(!s&&F||!i||!t[l]("src")&&!t.srcset||t.complete||v(t,r.errorClass)||!v(t,r.lazyClass))&&(e=x(t,"lazyunveilread").detail,s&&D.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,J++,ut(t,e,s,n,i))}},ft=C((function(){r.loadMode=3,st()})),pt=function(){3==r.loadMode&&(r.loadMode=2),ft()},gt=function(){F||(i.now()-B<999?h(gt,999):(F=!0,r.loadMode=3,st(),c("scroll",pt,!0)))},{_:function(){B=i.now(),n.elements=e.getElementsByClassName(r.lazyClass),R=e.getElementsByClassName(r.lazyClass+" "+r.preloadClass),c("scroll",st,!0),c("resize",st,!0),c("pageshow",(function(t){if(t.persisted){var i=e.querySelectorAll("."+r.loadingClass);i.length&&i.forEach&&u((function(){i.forEach((function(t){t.complete&&dt(t)}))}))}})),t.MutationObserver?new MutationObserver(st).observe(s,{childList:!0,subtree:!0,attributes:!0}):(s[a]("DOMNodeInserted",st,!0),s[a]("DOMAttrModified",st,!0),setInterval(st,999)),c("hashchange",st,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(t){e[a](t,st,!0)})),/d$|^c/.test(e.readyState)?gt():(c("load",gt),e[a]("DOMContentLoaded",st),h(gt,2e4)),n.elements.length?(rt(),E._lsFlush()):st()},checkElems:st,unveil:dt,_aLSL:pt}),D=(L=M((function(t,e,i,n){var r,s,o;if(t._lazysizesWidth=n,n+="px",t.setAttribute("sizes",n),f.test(e.nodeName||""))for(s=0,o=(r=e.getElementsByTagName("source")).length;s<o;s++)r[s].setAttribute("sizes",n);i.detail.dataAttr||w(t,i.detail)})),z=function(t,e,i){var n,r=t.parentNode;r&&(i=S(t,r,i),(n=x(t,"lazybeforesizes",{width:i,dataAttr:!!e})).defaultPrevented||(i=n.detail.width)&&i!==t._lazysizesWidth&&L(t,r,n,i))},I=C((function(){var t,e=T.length;if(e)for(t=0;t<e;t++)z(T[t])})),{_:function(){T=e.getElementsByClassName(r.autosizesClass),c("resize",I)},checkElems:I,updateElem:z}),P=function(){!P.i&&e.getElementsByClassName&&(P.i=!0,D._(),O._())};var T,L,z,I;var R,F,N,j,B,V,W,H,$,q,U,Y,X,G,K,Z,Q,J,tt,et,it,nt,rt,st,ot,at,lt,ct,ht,ut,dt,ft,pt,gt;var mt,vt,bt,yt,_t,xt,wt;return h((function(){r.init&&P()})),n={cfg:r,autoSizer:D,loader:O,init:P,uP:w,aC:b,rC:y,hC:v,fire:x,gW:S,rAF:E}}(e,e.document,Date);e.lazySizes=n,t.exports&&(t.exports=n)}("undefined"!=typeof window?window:{})},59:function(t){t.exports=function(){"use strict";var t="undefined"!=typeof document&&document.documentMode,e={rootMargin:"0px",threshold:0,load:function(e){if("picture"===e.nodeName.toLowerCase()){var i=e.querySelector("img"),n=!1;null===i&&(i=document.createElement("img"),n=!0),t&&e.getAttribute("data-iesrc")&&(i.src=e.getAttribute("data-iesrc")),e.getAttribute("data-alt")&&(i.alt=e.getAttribute("data-alt")),n&&e.append(i)}if("video"===e.nodeName.toLowerCase()&&!e.getAttribute("data-src")&&e.children){for(var r=e.children,s=void 0,o=0;o<=r.length-1;o++)(s=r[o].getAttribute("data-src"))&&(r[o].src=s);e.load()}e.getAttribute("data-poster")&&(e.poster=e.getAttribute("data-poster")),e.getAttribute("data-src")&&(e.src=e.getAttribute("data-src")),e.getAttribute("data-srcset")&&e.setAttribute("srcset",e.getAttribute("data-srcset"));var a=",";if(e.getAttribute("data-background-delimiter")&&(a=e.getAttribute("data-background-delimiter")),e.getAttribute("data-background-image"))e.style.backgroundImage="url('"+e.getAttribute("data-background-image").split(a).join("'),url
2('")+"')";else if(e.getAttribute("data-background-image-set")){var l=e.getAttribute("data-background-image-set").split(a),c=l[0].substr(0,l[0].indexOf(" "))||l[0];c=-1===c.indexOf("url(")?"url("+c+")":c,1===l.length?e.style.backgroundImage=c:e.setAttribute("style",(e.getAttribute("style")||"")+"background-image: "+c+"; background-image: -webkit-image-set("+l+"); background-image: image-set("+l+")")}e.getAttribute("data-toggle-class")&&e.classList.toggle(e.getAttribute("data-toggle-class"))},loaded:function(){}};function i(t){t.setAttribute("data-loaded",!0)}var n=function(t){return"true"===t.getAttribute("data-loaded")},r=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return t instanceof Element?[t]:t instanceof NodeList?t:e.querySelectorAll(t)};return function(){var t,s,o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},l=Object.assign({},e,a),c=l.root,h=l.rootMargin,u=l.threshold,d=l.load,f=l.loaded,p=void 0;"undefined"!=typeof window&&window.IntersectionObserver&&(p=new IntersectionObserver((t=d,s=f,function(e,r){e.forEach((function(e){(0<e.intersectionRatio||e.isIntersecting)&&(r.unobserve(e.target),n(e.target)||(t(e.target),i(e.target),s(e.target)))}))}),{root:c,rootMargin:h,threshold:u}));for(var g,m=r(o,c),v=0;v<m.length;v++)(g=m[v]).getAttribute("data-placeholder-background")&&(g.style.background=g.getAttribute("data-placeholder-background"));return{observe:function(){for(var t=r(o,c),e=0;e<t.length;e++)n(t[e])||(p?p.observe(t[e]):(d(t[e]),i(t[e]),f(t[e])))},triggerLoad:function(t){n(t)||(d(t),i(t),f(t))},observer:p}}}()},112:()=>{},379:(t,e,i)=>{"use strict";var n,r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},s=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),o=[];function a(t){for(var e=-1,i=0;i<o.length;i++)if(o[i].identifier===t){e=i;break}return e}function l(t,e){for(var i={},n=[],r=0;r<t.length;r++){var s=t[r],l=e.base?s[0]+e.base:s[0],c=i[l]||0,h="".concat(l," ").concat(c);i[l]=c+1;var u=a(h),d={css:s[1],media:s[2],sourceMap:s[3]};-1!==u?(o[u].references++,o[u].updater(d)):o.push({identifier:h,updater:m(d,e),references:1}),n.push(h)}return n}function c(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var r=i.nc;r&&(n.nonce=r)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var o=s(t.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(e)}return e}var h,u=(h=[],function(t,e){return h[t]=e,h.filter(Boolean).join("\n")});function d(t,e,i,n){var r=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=u(e,r);else{var s=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(s,o[e]):t.appendChild(s)}}function f(t,e,i){var n=i.css,r=i.media,s=i.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var p=null,g=0;function m(t,e){var i,n,r;if(e.singleton){var s=g++;i=p||(p=c(e)),n=d.bind(null,i,s,!1),r=d.bind(null,i,s,!0)}else i=c(e),n=f.bind(null,i,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var i=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<i.length;n++){var r=a(i[n]);o[r].references--}for(var s=l(t,e),c=0;c<i.length;c++){var h=a(i[c]);0===o[h].references&&(o[h].updater(),o.splice(h,1))}i=s}}}}
2,659:function(t,e,i){var n,r;"undefined"!=typeof window&&window,void 0===(r="function"==typeof(n=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],r=0;r<i.length;r++){var s=i[r];n&&n[s]&&(this.off(t,s),delete n[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?n.call(e,i,e,t):n)||(t.exports=r)},704:(t,e,i)=>{var n,r;!function(s,o){n=[i(659)],r=function(t){return function(t,e){"use strict";function i(){}function n(){}var r=n.prototype=Object.create(e.prototype);r.bindStartEvent=function(t){this._bindStartEvent(t,!0)},r.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},r._bindStartEvent=function(e,i){var n=(i=void 0===i||i)?"addEventListener":"removeEventListener",r="mousedown";"ontouchstart"in t?r="touchstart":t.PointerEvent&&(r="pointerdown"),e[n](r,this)},r.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier)return i}},r.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},r.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},r.onpointerdown=function(t){this._pointerDown(t,t)},r._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},r.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var s={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return r._bindPostStartEvents=function(e){if(e){var i=s[e.type];i.forEach((function(e){t.addEventListener(e,this)}),this),this._boundPointerEvents=i}},r._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach((function(e){t.removeEventListener(e,this)}),this),delete this._boundPointerEvents)},r.onmousemove=function(t){this._pointerMove(t,t)},r.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},r.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},r._pointerMove=function(t,e){this.pointerMove(t,e)},r.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},r.onmouseup=function(t){this._pointerUp(t,t)},r.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},r.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},r._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},r.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},r._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},r._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},r.pointerDone=i,r.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},r.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},r._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},r.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},n.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},n}(s,t)}.apply(e,n),void 0===r||(t.exports=r)}(window)}},i={};function n(t){var r=i[t];if(void 0!==r)return r.exports;var s=i[t]={id:t,exports:{}};return e[t].call(s.exports,s,s.exports,n),s.exports}n.m=e,t=[],n.O=(e,i,r,s)=>{if(!i){var o=1/0;for(h=0;h<t.length;h++){for(var[i,r,s]=t[h],a=!0,l=0;l<i.length;l++)(!1&s||o>=s)&&Object.keys(n.O).every((t=>n.O[t](i[l])))?i.splice(l--,1):(a=!1,s<o&&(o=s));if(a){t.splice(h--,1);var c=r();void 0!==c&&(e=c)}}return e}
2s=s||0;for(var h=t.length;h>0&&t[h-1][2]>s;h--)t[h]=t[h-1];t[h]=[i,r,s]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={522:0,870:0};n.O.j=e=>0===t[e];var e=(e,i)=>{var r,s,[o,a,l]=i,c=0;if(o.some((e=>0!==t[e]))){for(r in a)n.o(a,r)&&(n.m[r]=a[r]);if(l)var h=l(n)}for(e&&e(i);c<o.length;c++)s=o[c],n.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return n.O(h)},i=self.webpackChunkfrivillighetnorge_ddev_site=self.webpackChunkfrivillighetnorge_ddev_site||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})(),n.nc=void 0,n.O(void 0,[870],(()=>n(78)));var r=n.O(void 0,[870],(()=>n(112)));r=n.O(r)})();

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