text: !function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(w,t){"use strict";function g(t){return null!=t&&t===t.window}var e=[],i=Object.getPrototypeOf,a=e.slice,m=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},l=e.push,r=e.indexOf,n={},s=n.toString,v=n.hasOwnProperty,o=v.toString,c=o.call(Object),b={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},k=w.document,h={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,i){var n,r,s=(i=i||k).createElement("script");if(s.text=t,e)for(n in h)(r=e[n]||e.getAttribute&&e.getAttribute(n))&&s.setAttribute(n,r);i.head.appendChild(s).parentNode.removeChild(s)}function p(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?n[s.call(t)]||"object":typeof t}var u="3.6.0",T=function(t,e){return new T.fn.init(t,e)};function d(t){var e=!!t&&"length"in t&&t.length,i=p(t);return!y(t)&&!g(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}T.fn=T.prototype={jquery:u,constructor:T,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){t=T.merge(this.constructor(),t);return t.prevObject=this,t},each:function(t){return T.each(this,t)},map:function(i){return this.pushStack(T.map(this,function(t,e){return i.call(t,e,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(T.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:e.sort,splice:e.splice},T.extend=T.fn.extend=function(){var t,e,i,n,r,s=arguments[0]||{},o=1,a=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[o]||{},o++),"object"==typeof s||y(s)||(s={}),o===a&&(s=this,o--);o<a;o++)if(null!=(t=arguments[o]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(l&&i&&(T.isPlainObject(i)||(n=Array.isArray(i)))?(r=s[e],r=n&&!Array.isArray(r)?[]:n||T.isPlainObject(r)?r:{},n=!1,s[e]=T.extend(l,r,i)):void 0!==i&&(s[e]=i));return s},T.extend({expando:"jQuery"+(u+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){return!(!t||"[object Object]"!==s.call(t))&&(!(t=i(t))||"function"==typeof(t=v.call(t,"constructor")&&t.constructor)&&o.call(t)===c)},isEmptyObject:function(t){for(var e in t)return!1;return!0},globalEval:function(t,e,i){x(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(d(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},makeArray:function(t,e){e=e||[];return null!=t&&(d(Object(t))?T.merge(e,"string"==typeof t?[t]:t):l.call(e,t)),e},inArray:function(t,e,i){return null==e?-1:r.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;n<i;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n=[],r=0,s=t.length,o=!i;r<s;r++)!e(t[r],r)!=o&&n.push(t[r]);return n},map:function(t,e,i){var n,r,s=0,o=[];if(d(t))for(n=t.length;s<n;s++)null!=(r=e(t[s],s,i))&&o.push(r);else for(s in t)null!=(r=e(t[s],s,i))&&o.push(r);return m(o)},guid:1,support:b}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=e[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){n["[object "+e+"]"]=e.toLowerCase()});var f=function(i){function u(t,e){return t="0x"+t.slice(1)-65536,e||(t<0?String.fromCharCode(65536+t):String.fromCharCode(t>>10|55296,1023&t|56320))}function n(){w()}var t,d,x,s,r,f,p,g,_,l,c,w,k,o,T,m,a,h,v,S="sizzle"+ +new Date,b=i.document,E=0,y=0,C=lt(),M=lt(),A=lt(),D=lt(),L=function(t,e){return t===e&&(c=!0),0},O={}.hasOwnProperty,e=[],P=e.pop,N=e.push,I=e.push,R=e.slice,j=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",$="(?:\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+F+"*("+$+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+$+"))|)"+F+"*\\]",B=":("+$+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",W=new RegExp(F+"+","g"),V=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),q=new RegExp("^"+F+"*,"+F+"*"),U=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),Y=new RegExp(F+"|>"),X=new RegExp(B),K=new RegExp("^"+$+"$"),Q={ID:new RegExp("^#("+$+")"),CLASS:new RegExp("^\\.("+$+")"),TAG:new RegExp("^("+$+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,tt=/^[^{]+\{\s*\[native \w/,et=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,it=/[+~]/,nt=new RegExp("\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\([^\\r\\n\\f])","g"),rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,st=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=bt(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{I.apply(e=R.call(b.childNodes),b.childNodes),e[b.childNodes.length].nodeType}catch(t){I={apply:e.length?function(t,e){N.apply(t,R.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function at(e,t,i,n){var r,s,o,a,l,c,h=t&&t.ownerDocument,u=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==u&&9!==u&&11!==u)return i;if(!n&&(w(t),t=t||k,T)){if(11!==u&&(a=et.exec(e)))if(c=a[1]){if(9===u){if(!(s=t.getElementById(c)))return i;if(s.id===c)return i.push(s),i}else if(h&&(s=h.getElementById(c))&&v(t,s)&&s.id===c)return i.push(s),i}else{if(a[2])return I.apply(i,t.getElementsByTagName(e)),i;if((c=a[3])&&d.getElementsByClassName&&t.getElementsByClassName)return I.apply(i,t.getElementsByClassName(c)),i}if(d.qsa&&!D[e+" "]&&(!m||!m.test(e))&&(1!==u||"object"!==t.nodeName.toLowerCase())){if(c=e,h=t,1===u&&(Y.test(e)||U.test(e))){for((h=it.test(e)&&gt(t.parentNode)||t)===t&&d.scope||((o=t.getAttribute("id"))?o=o.replace(rt,st):t.setAttribute("id",o=S)),r=(l=f(e)).length;r--;)l[r]=(o?"#"+o:":scope")+" "+vt(l[r]);c=l.join(",")}try{return I.apply(i,h.querySelectorAll(c)),i}catch(t){D(e,!0)}finally{o===S&&t.removeAttribute("id")}}}return g(e.replace(V,"$1"),t,i,n)}function lt(){var i=[];function n(t,e){return i.push(t+" ")>x.cacheLength&&delete n[i.shift()],n[t+" "]=e}return n}function ct(t){return t[S]=!0,t}function ht(t){var e=k.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var i=t.split("|"),n=i.length;n--;)x.attrHandle[i[n]]=e}function dt(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ft(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ot(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function pt(o){return ct(function(s){return s=+s,ct(function(t,e){for(var i,n=o([],t.length,s),r=n.length;r--;)t[i=n[r]]&&(t[i]=!(e[i]=t[i]))})})}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in d=at.support={},r=at.isXML=function(t){var e=t&&t.namespaceURI,t=t&&(t.ownerDocument||t).documentElement;return!G.test(e||t&&t.nodeName||"HTML")},w=at.setDocument=function(t){var e,t=t?t.ownerDocument||t:b;return t!=k&&9===t.nodeType&&t.documentElement&&(o=(k=t).documentElement,T=!r(k),b!=k&&(e=k.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",n,!1):e.attachEvent&&e.attachEvent("onunload",n)),d.scope=ht(function(t){return o.appendChild(t).appendChild(k.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),d.attributes=ht(function(t){return t.className="i",!t.getAttribute("className")}),d.getElementsByTagName=ht(function(t){return t.appendChild(k.createComment("")),!t.getElementsByTagName("*").length}),d.getElementsByClassName=tt.test(k.getElementsByClassName),d.getById=ht(function(t){return o.appendChild(t).id=S,!k.getElementsByName||!k.getElementsByName(S).length}),d.getById?(x.filter.ID=function(t){var e=t.replace(nt,u);return function(t){return t.getAttribute("id")===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&T){t=e.getElementById(t);return t?[t]:[]}}):(x.filter.ID=function(t){var e=t.replace(nt,u);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&T){var i,n,r,s=e.getElementById(t);if(s){if((i=s.getAttributeNode("id"))&&i.value===t)return[s];for(r=e.getElementsByName(t),n=0;s=r[n++];)if((i=s.getAttributeNode("id"))&&i.value===t)return[s]}return[]}}),x.find.TAG=d.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):d.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,s=e.getElementsByTagName(t);if("*"!==t)return s;for(;i=s[r++];)1===i.nodeType&&n.push(i);return n},x.find.CLASS=d.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&T)return e.getElementsByClassName(t)},a=[],m=[],(d.qsa=tt.test(k.querySelectorAll))&&(ht(function(t){var e;o.appendChild(t).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+F+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+F+"*(?:value|"+H+")"),t.querySelectorAll("[id~="+S+"-]").length||m.push("~="),(e=k.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\["+F+"*name"+F+"*="+F+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+S+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")}),ht(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=k.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+F+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),o.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(d.matchesSelector=tt.test(h=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ht(function(t){d.disconnectedMatch=h.call(t,"*"),h.call(t,"[s!='']:x"),a.push("!=",B)}),m=m.length&&new RegExp(m.join("|")),a=a.length&&new RegExp(a.join("|")),e=tt.test(o.compareDocumentPosition),v=e||tt.test(o.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(i.contains?i.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},L=e?function(t,e){if(t===e)return c=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!d.sortDetached&&e.compareDocumentPosition(t)===i?t==k||t.ownerDocument==b&&v(b,t)?-1:e==k||e.ownerDocument==b&&v(b,e)?1:l?j(l,t)-j(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return c=!0,0;var i,n=0,r=t.parentNode,s=e.parentNode,o=[t],a=[e];if(!r||!s)return t==k?-1:e==k?1:r?-1:s?1:l?j(l,t)-j(l,e):0;if(r===s)return dt(t,e);for(i=t;i=i.parentNode;)o.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;o[n]===a[n];)n++;return n?dt(o[n],a[n]):o[n]==b?-1:a[n]==b?1:0}),k},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if(w(t),d.matchesSelector&&T&&!D[e+" "]&&(!a||!a.test(e))&&(!m||!m.test(e)))try{var i=h.call(t,e);if(i||d.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){D(e,!0)}return 0<at(e,k,null,[t]).length},at.contains=function(t,e){return(t.ownerDocument||t)!=k&&w(t),v(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!=k&&w(t);var i=x.attrHandle[e.toLowerCase()],i=i&&O.call(x.attrHandle,e.toLowerCase())?i(t,e,!T):void 0;return void 0!==i?i:d.attributes||!T?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},at.escape=function(t){return(t+"").replace(rt,st)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,i=[],n=0,r=0;if(c=!d.detectDuplicates,l=!d.sortStable&&t.slice(0),t.sort(L),c){for(;e=t[r++];)e===t[r]&&(n=i.push(r));for(;n--;)t.splice(i[n],1)}return l=null,t},s=at.getText=function(t){var e,i="",n=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=s(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[n++];)i+=s(e);return i},(x=at.selectors={cacheLength:50,createPseudo:ct,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,u),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,u),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&X.test(i)&&(e=f(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(nt,u).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=C[t+" "];return e||(e=new RegExp("(^|"+F+")"+t+"("+F+"|$)"))&&C(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,i,n){return function(t){t=at.attr(t,e);return null==t?"!="===i:!i||(t+="","="===i?t===n:"!="===i?t!==n:"^="===i?n&&0===t.indexOf(n):"*="===i?n&&-1<t.indexOf(n):"$="===i?n&&t.slice(-n.length)===n:"~="===i?-1<(" "+t.replace(W," ")+" ").indexOf(n):"|="===i&&(t===n||t.slice(0,n.length+1)===n+"-"))}},CHILD:function(p,t,e,g,m){var v="nth"!==p.slice(0,3),b="last"!==p.slice(-4),y="of-type"===t;return 1===g&&0===m?function(t){return!!t.parentNode}:function(t,e,i){var n,r,s,o,a,l,c=v!=b?"nextSibling":"previousSibling",h=t.parentNode,u=y&&t.nodeName.toLowerCase(),d=!i&&!y,f=!1;if(h){if(v){for(;c;){for(o=t;o=o[c];)if(y?o.nodeName.toLowerCase()===u:1===o.nodeType)return!1;l=c="only"===p&&!l&&"nextSibling"}return!0}if(l=[b?h.firstChild:h.lastChild],b&&d){for(f=(a=(n=(r=(s=(o=h)[S]||(o[S]={}))[o.uniqueID]||(s[o.uniqueID]={}))[p]||[])[0]===E&&n[1])&&n[2],o=a&&h.childNodes[a];o=++a&&o&&o[c]||(f=a=0)||l.pop();)if(1===o.nodeType&&++f&&o===t){r[p]=[E,a,f];break}}else if(!1===(f=d?a=(n=(r=(s=(o=t)[S]||(o[S]={}))[o.uniqueID]||(s[o.uniqueID]={}))[p]||[])[0]===E&&n[1]:f))for(;(o=++a&&o&&o[c]||(f=a=0)||l.pop())&&((y?o.nodeName.toLowerCase()!==u:1!==o.nodeType)||!++f||(d&&((r=(s=o[S]||(o[S]={}))[o.uniqueID]||(s[o.uniqueID]={}))[p]=[E,f]),o!==t)););return(f-=m)===g||f%g==0&&0<=f/g}}},PSEUDO:function(t,s){var e,o=x.pseudos[t]||x.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return o[S]?o(s):1<o.length?(e=[t,t,"",s],x.setFilters.hasOwnProperty(t.toLowerCase())?ct(function(t,e){for(var i,n=o(t,s),r=n.length;r--;)t[i=j(t,n[r])]=!(e[i]=n[r])}):function(t){return o(t,0,e)}):o}},pseudos:{not:ct(function(t){var n=[],r=[],a=p(t.replace(V,"$1"));return a[S]?ct(function(t,e,i,n){for(var r,s=a(t,null,n,[]),o=t.length;o--;)(r=s[o])&&(t[o]=!(e[o]=r))}):function(t,e,i){return n[0]=t,a(n,null,i,r),n[0]=null,!r.pop()}}),has:ct(function(e){return function(t){return 0<at(e,t).length}}),contains:ct(function(e){return e=e.replace(nt,u),function(t){return-1<(t.textContent||s(t)).indexOf(e)}}),lang:ct(function(i){return K.test(i||"")||at.error("unsupported lang: "+i),i=i.replace(nt,u).toLowerCase(),function(t){var e;do{if(e=T?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===i||0===e.indexOf(i+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===o},focus:function(t){return t===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:ft(!1),disabled:ft(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return J.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:pt(function(){return[0]}),last:pt(function(t,e){return[e-1]}),eq:pt(function(t,e,i){return[i<0?i+e:i]}),even:pt(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:pt(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:pt(function(t,e,i){for(var n=i<0?i+e:e<i?e:i;0<=--n;)t.push(n);return t}),gt:pt(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})x.pseudos[t]=function(i){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===i}}(t);function mt(){}function vt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function bt(o,t,e){var a=t.dir,l=t.next,c=l||a,h=e&&"parentNode"===c,u=y++;return t.first?function(t,e,i){for(;t=t[a];)if(1===t.nodeType||h)return o(t,e,i);return!1}:function(t,e,i){var n,r,s=[E,u];if(i){for(;t=t[a];)if((1===t.nodeType||h)&&o(t,e,i))return!0}else for(;t=t[a];)if(1===t.nodeType||h)if(n=(r=t[S]||(t[S]={}))[t.uniqueID]||(r[t.uniqueID]={}),l&&l===t.nodeName.toLowerCase())t=t[a]||t;else{if((r=n[c])&&r[0]===E&&r[1]===u)return s[2]=r[2];if((n[c]=s)[2]=o(t,e,i))return!0}return!1}}function yt(r){return 1<r.length?function(t,e,i){for(var n=r.length;n--;)if(!r[n](t,e,i))return!1;return!0}:r[0]}function xt(t,e,i,n,r){for(var s,o=[],a=0,l=t.length,c=null!=e;a<l;a++)(s=t[a])&&(i&&!i(s,n,r)||(o.push(s),c&&e.push(a)));return o}function _t(f,p,g,m,v,t){return m&&!m[S]&&(m=_t(m)),v&&!v[S]&&(v=_t(v,t)),ct(function(t,e,i,n){var r,s,o,a=[],l=[],c=e.length,h=t||function(t,e,i){for(var n=0,r=e.length;n<r;n++)at(t,e[n],i);return i}(p||"*",i.nodeType?[i]:i,[]),u=!f||!t&&p?h:xt(h,a,f,i,n),d=g?v||(t?f:c||m)?[]:e:u;if(g&&g(u,d,i,n),m)for(r=xt(d,l),m(r,[],i,n),s=r.length;s--;)(o=r[s])&&(d[l[s]]=!(u[l[s]]=o));if(t){if(v||f){if(v){for(r=[],s=d.length;s--;)(o=d[s])&&r.push(u[s]=o);v(null,d=[],r,n)}for(s=d.length;s--;)(o=d[s])&&-1<(r=v?j(t,o):a[s])&&(t[r]=!(e[r]=o))}}else d=xt(d===e?d.splice(c,d.length):d),v?v(null,e,d,n):I.apply(e,d)})}function wt(m,v){function t(t,e,i,n,r){var s,o,a,l=0,c="0",h=t&&[],u=[],d=_,f=t||y&&x.find.TAG("*",r),p=E+=null==d?1:Math.random()||.1,g=f.length;for(r&&(_=e==k||e||r);c!==g&&null!=(s=f[c]);c++){if(y&&s){for(o=0,e||s.ownerDocument==k||(w(s),i=!T);a=m[o++];)if(a(s,e||k,i)){n.push(s);break}r&&(E=p)}b&&((s=!a&&s)&&l--,t&&h.push(s))}if(l+=c,b&&c!==l){for(o=0;a=v[o++];)a(h,u,e,i);if(t){if(0<l)for(;c--;)h[c]||u[c]||(u[c]=P.call(n));u=xt(u)}I.apply(n,u),r&&!t&&0<u.length&&1<l+v.length&&at.uniqueSort(n)}return r&&(E=p,_=d),h}var b=0<v.length,y=0<m.length;return b?ct(t):t}return mt.prototype=x.filters=x.pseudos,x.setFilters=new mt,f=at.tokenize=function(t,e){var i,n,r,s,o,a,l,c=M[t+" "];if(c)return e?0:c.slice(0);for(o=t,a=[],l=x.preFilter;o;){for(s in i&&!(n=q.exec(o))||(n&&(o=o.slice(n[0].length)||o),a.push(r=[])),i=!1,(n=U.exec(o))&&(i=n.shift(),r.push({value:i,type:n[0].replace(V," ")}),o=o.slice(i.length)),x.filter)!(n=Q[s].exec(o))||l[s]&&!(n=l[s](n))||(i=n.shift(),r.push({value:i,type:s,matches:n}),o=o.slice(i.length));if(!i)break}return e?o.length:o?at.error(t):M(t,a).slice(0)},p=at.compile=function(t,e){var i,n=[],r=[],s=A[t+" "];if(!s){for(i=(e=e||f(t)).length;i--;)((s=function t(e){for(var n,i,r,s=e.length,o=x.relative[e[0].type],a=o||x.relative[" "],l=o?1:0,c=bt(function(t){return t===n},a,!0),h=bt(function(t){return-1<j(n,t)},a,!0),u=[function(t,e,i){return i=!o&&(i||e!==_)||((n=e).nodeType?c:h)(t,e,i),n=null,i}];l<s;l++)if(i=x.relative[e[l].type])u=[bt(yt(u),i)];else{if((i=x.filter[e[l].type].apply(null,e[l].matches))[S]){for(r=++l;r<s&&!x.relative[e[r].type];r++);return _t(1<l&&yt(u),1<l&&vt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(V,"$1"),i,l<r&&t(e.slice(l,r)),r<s&&t(e=e.slice(r)),r<s&&vt(e))}u.push(i)}return yt(u)}(e[i]))[S]?n:r).push(s);(s=A(t,wt(r,n))).selector=t}return s},g=at.select=function(t,e,i,n){var r,s,o,a,l,c="function"==typeof t&&t,h=!n&&f(t=c.selector||t);if(i=i||[],1===h.length){if(2<(s=h[0]=h[0].slice(0)).length&&"ID"===(o=s[0]).type&&9===e.nodeType&&T&&x.relative[s[1].type]){if(!(e=(x.find.ID(o.matches[0].replace(nt,u),e)||[])[0]))return i;c&&(e=e.parentNode),t=t.slice(s.shift().value.length)}for(r=Q.needsContext.test(t)?0:s.length;r--&&(o=s[r],!x.relative[a=o.type]);)if((l=x.find[a])&&(n=l(o.matches[0].replace(nt,u),it.test(s[0].type)&&gt(e.parentNode)||e))){if(s.splice(r,1),!(t=n.length&&vt(s)))return I.apply(i,n),i;break}}return(c||p(t,h))(n,e,!T,i,!e||it.test(t)&&gt(e.parentNode)||e),i},d.sortStable=S.split("").sort(L).join("")===S,d.detectDuplicates=!!c,w(),d.sortDetached=ht(function(t){return 1&t.compareDocumentPosition(k.createElement("fieldset"))}),ht(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ut("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),d.attributes&&ht(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ut("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ht(function(t){return null==t.getAttribute("disabled")})||ut(H,function(t,e,i){if(!i)return!0===t[e]?e.toLowerCase():(e=t.getAttributeNode(e))&&e.specified?e.value:null}),at}(w);T.find=f,T.expr=f.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=f.uniqueSort,T.text=f.getText,T.isXMLDoc=f.isXML,T.contains=f.contains,T.escapeSelector=f.escape;function _(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&T(t).is(i))break;n.push(t)}return n}function S(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}var E=T.expr.match.needsContext;function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(t,i,n){return y(i)?T.grep(t,function(t,e){return!!i.call(t,e,t)!==n}):i.nodeType?T.grep(t,function(t){return t===i!==n}):"string"!=typeof i?T.grep(t,function(t){return-1<r.call(i,t)!==n}):T.filter(i,t,n)}T.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?T.find.matchesSelector(n,t)?[n]:[]:T.find.matches(t,T.grep(e,function(t){return 1===t.nodeType}))},T.fn.extend({find:function(t){var e,i,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(T(t).filter(function(){for(e=0;e<n;e++)if(T.contains(r[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)T.find(t,r[e],i);return 1<n?T.uniqueSort(i):i},filter:function(t){return this.pushStack(A(this,t||[],!1))},not:function(t){return this.pushStack(A(this,t||[],!0))},is:function(t){return!!A(this,"string"==typeof t&&E.test(t)?T(t):t||[],!1).length}});var D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,i){if(!t)return this;if(i=i||L,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==i.ready?i.ready(t):t(T):T.makeArray(t,this);if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:D.exec(t))||!n[1]&&e)return(!e||e.jquery?e||i:this.constructor(e)).find(t);if(n[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:k,!0)),M.test(n[1])&&T.isPlainObject(e))for(var n in e)y(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(t=k.getElementById(n[2]))&&(this[0]=t,this.length=1),this}).prototype=T.fn;var L=T(k),O=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function N(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(T.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,r=this.length,s=[],o="string"!=typeof t&&T(t);if(!E.test(t))for(;n<r;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(o?-1<o.index(i):1===i.nodeType&&T.find.matchesSelector(i,t))){s.push(i);break}return this.pushStack(1<s.length?T.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?r.call(T(t),this[0]):r.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return _(t,"parentNode")},parentsUntil:function(t,e,i){return _(t,"parentNode",i)},next:function(t){return N(t,"nextSibling")},prev:function(t){return N(t,"previousSibling")},nextAll:function(t){return _(t,"nextSibling")},prevAll:function(t){return _(t,"previousSibling")},nextUntil:function(t,e,i){return _(t,"nextSibling",i)},prevUntil:function(t,e,i){return _(t,"previousSibling",i)},siblings:function(t){return S((t.parentNode||{}).firstChild,t)},children:function(t){return S(t.firstChild)},contents:function(t){return null!=t.contentDocument&&i(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},function(n,r){T.fn[n]=function(t,e){var i=T.map(this,r,t);return(e="Until"!==n.slice(-5)?t:e)&&"string"==typeof e&&(i=T.filter(e,i)),1<this.length&&(P[n]||T.uniqueSort(i),O.test(n)&&i.reverse()),this.pushStack(i)}});var I=/[^\x20\t\r\n\f]+/g;function R(t){return t}function j(t){throw t}function H(t,e,i,n){var r;try{t&&y(r=t.promise)?r.call(t).done(e).fail(i):t&&y(r=t.then)?r.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}T.Callbacks=function(n){var t,i;n="string"==typeof n?(t=n,i={},T.each(t.match(I)||[],function(t,e){i[e]=!0}),i):T.extend({},n);function r(){for(a=a||n.once,o=s=!0;c.length;h=-1)for(e=c.shift();++h<l.length;)!1===l[h].apply(e[0],e[1])&&n.stopOnFalse&&(h=l.length,e=!1);n.memory||(e=!1),s=!1,a&&(l=e?[]:"")}var s,e,o,a,l=[],c=[],h=-1,u={add:function(){return l&&(e&&!s&&(h=l.length-1,c.push(e)),function i(t){T.each(t,function(t,e){y(e)?n.unique&&u.has(e)||l.push(e):e&&e.length&&"string"!==p(e)&&i(e)})}(arguments),e&&!s&&r()),this},remove:function(){return T.each(arguments,function(t,e){for(var i;-1<(i=T.inArray(e,l,i));)l.splice(i,1),i<=h&&h--}),this},has:function(t){return t?-1<T.inArray(t,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=c=[],l=e="",this},disabled:function(){return!l},lock:function(){return a=c=[],e||s||(l=e=""),this},locked:function(){return!!a},fireWith:function(t,e){return a||(e=[t,(e=e||[]).slice?e.slice():e],c.push(e),s||r()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!o}};return u},T.extend({Deferred:function(t){var s=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var r=arguments;return T.Deferred(function(n){T.each(s,function(t,e){var i=y(r[e[4]])&&r[e[4]];a[e[1]](function(){var t=i&&i.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[e[0]+"With"](this,i?[t]:arguments)})}),r=null}).promise()},then:function(e,i,n){var l=0;function c(r,s,o,a){return function(){function t(){var t,e;if(!(r<l)){if((t=o.apply(i,n))===s.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,y(e)?a?e.call(t,c(l,s,R,a),c(l,s,j,a)):(l++,e.call(t,c(l,s,R,a),c(l,s,j,a),c(l,s,R,s.notifyWith))):(o!==R&&(i=void 0,n=[t]),(a||s.resolveWith)(i,n))}}var i=this,n=arguments,e=a?t:function(){try{t()}catch(t){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(t,e.stackTrace),l<=r+1&&(o!==j&&(i=void 0,n=[t]),s.rejectWith(i,n))}};r?e():(T.Deferred.getStackHook&&(e.stackTrace=T.Deferred.getStackHook()),w.setTimeout(e))}}return T.Deferred(function(t){s[0][3].add(c(0,t,y(n)?n:R,t.notifyWith)),s[1][3].add(c(0,t,y(e)?e:R)),s[2][3].add(c(0,t,y(i)?i:j))}).promise()},promise:function(t){return null!=t?T.extend(t,o):o}},a={};return T.each(s,function(t,e){var i=e[2],n=e[5];o[e[1]]=i.add,n&&i.add(function(){r=n},s[3-t][2].disable,s[3-t][3].disable,s[0][2].lock,s[0][3].lock),i.add(e[3].fire),a[e[0]]=function(){return a[e[0]+"With"](this===a?void 0:this,arguments),this},a[e[0]+"With"]=i.fireWith}),o.promise(a),t&&t.call(a,a),a},when:function(t){function e(e){return function(t){r[e]=this,s[e]=1<arguments.length?a.call(arguments):t,--i||o.resolveWith(r,s)}}var i=arguments.length,n=i,r=Array(n),s=a.call(arguments),o=T.Deferred();if(i<=1&&(H(t,o.done(e(n)).resolve,o.reject,!i),"pending"===o.state()||y(s[n]&&s[n].then)))return o.then();for(;n--;)H(s[n],e(n),o.reject);return o.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){w.console&&w.console.warn&&t&&F.test(t.name)&&w.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){w.setTimeout(function(){throw t})};var $=T.Deferred();function z(){k.removeEventListener("DOMContentLoaded",z),w.removeEventListener("load",z),T.ready()}T.fn.ready=function(t){return $.then(t).catch(function(t){T.readyException(t)}),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0)!==t&&0<--T.readyWait||$.resolveWith(k,[T])}}),T.ready.then=$.then,"complete"===k.readyState||"loading"!==k.readyState&&!k.documentElement.doScroll?w.setTimeout(T.ready):(k.addEventListener("DOMContentLoaded",z),w.addEventListener("load",z));var B=function(t,e,i,n,r,s,o){var a=0,l=t.length,c=null==i;if("object"===p(i))for(a in r=!0,i)B(t,e,a,i[a],!0,s,o);else if(void 0!==n&&(r=!0,y(n)||(o=!0),e=c?o?(e.call(t,n),null):(c=e,function(t,e,i){return c.call(T(t),i)}):e))for(;a<l;a++)e(t[a],i,o?n:n.call(t[a],a,e(t[a],i)));return r?t:c?e.call(t):l?e(t[0],i):s},W=/^-ms-/,V=/-([a-z])/g;function q(t,e){return e.toUpperCase()}function U(t){return t.replace(W,"ms-").replace(V,q)}function Y(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function X(){this.expando=T.expando+X.uid++}X.uid=1,X.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Y(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,r=this.cache(t);if("string"==typeof e)r[U(e)]=i;else for(n in e)r[U(n)]=e[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][U(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(U):(e=U(e))in n?[e]:e.match(I)||[]).length;for(;i--;)delete n[e[i]]}void 0!==e&&!T.isEmptyObject(n)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var K=new X,Q=new X,G=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function Z(t,e,i){var n,r;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(J,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i="true"===(r=i)||"false"!==r&&("null"===r?null:r===+r+""?+r:G.test(r)?JSON.parse(r):r)}catch(t){}Q.set(t,e,i)}else i=void 0;return i}T.extend({hasData:function(t){return Q.hasData(t)||K.hasData(t)},data:function(t,e,i){return Q.access(t,e,i)},removeData:function(t,e){Q.remove(t,e)},_data:function(t,e,i){return K.access(t,e,i)},_removeData:function(t,e){K.remove(t,e)}}),T.fn.extend({data:function(i,t){var e,n,r,s=this[0],o=s&&s.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){Q.set(this,i)}):B(this,function(t){var e;return s&&void 0===t?void 0!==(e=Q.get(s,i))||void 0!==(e=Z(s,i))?e:void 0:void this.each(function(){Q.set(this,i,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(r=Q.get(s),1===s.nodeType&&!K.get(s,"hasDataAttrs"))){for(e=o.length;e--;)o[e]&&0===(n=o[e].name).indexOf("data-")&&(n=U(n.slice(5)),Z(s,n,r[n]));K.set(s,"hasDataAttrs",!0)}return r},removeData:function(t){return this.each(function(){Q.remove(this,t)})}}),T.extend({queue:function(t,e,i){var n;if(t)return n=K.get(t,e=(e||"fx")+"queue"),i&&(!n||Array.isArray(i)?n=K.access(t,e,T.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=T.queue(t,e),n=i.length,r=i.shift(),s=T._queueHooks(t,e);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete s.stop,r.call(t,function(){T.dequeue(t,e)},s)),!n&&s&&s.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return K.get(t,i)||K.access(t,i,{empty:T.Callbacks("once memory").add(function(){K.remove(t,[e+"queue",i])})})}}),T.fn.extend({queue:function(e,i){var t=2;return"string"!=typeof e&&(i=e,e="fx",t--),arguments.length<t?T.queue(this[0],e):void 0===i?this:this.each(function(){var t=T.queue(this,e,i);T._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&T.dequeue(this,e)})},dequeue:function(t){return this.each(function(){T.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function i(){--r||s.resolveWith(o,[o])}var n,r=1,s=T.Deferred(),o=this,a=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=K.get(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(i));return i(),s.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],nt=k.documentElement,rt=function(t){return T.contains(t.ownerDocument,t)},st={composed:!0};nt.getRootNode&&(rt=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(st)===t.ownerDocument});var ot=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&rt(t)&&"none"===T.css(t,"display")};function at(t,e,i,n){var r,s,o=20,a=n?function(){return n.cur()}:function(){return T.css(t,e,"")},l=a(),c=i&&i[3]||(T.cssNumber[e]?"":"px"),h=t.nodeType&&(T.cssNumber[e]||"px"!==c&&+l)&&et.exec(T.css(t,e));if(h&&h[3]!==c){for(c=c||h[3],h=+(l/=2)||1;o--;)T.style(t,e,h+c),(1-s)*(1-(s=a()/l||.5))<=0&&(o=0),h/=s;T.style(t,e,(h*=2)+c),i=i||[]}return i&&(h=+h||+l||0,r=i[1]?h+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=h,n.end=r)),r}var lt={};function ct(t,e){for(var i,n,r,s,o,a=[],l=0,c=t.length;l<c;l++)(n=t[l]).style&&(i=n.style.display,e?("none"===i&&(a[l]=K.get(n,"display")||null,a[l]||(n.style.display="")),""===n.style.display&&ot(n)&&(a[l]=(o=s=void 0,s=(r=n).ownerDocument,o=r.nodeName,(r=lt[o])||(s=s.body.appendChild(s.createElement(o)),r=T.css(s,"display"),s.parentNode.removeChild(s),lt[o]=r="none"===r?"block":r)))):"none"!==i&&(a[l]="none",K.set(n,"display",i)));for(l=0;l<c;l++)null!=a[l]&&(t[l].style.display=a[l]);return t}T.fn.extend({show:function(){return ct(this,!0)},hide:function(){return ct(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){ot(this)?T(this).show():T(this).hide()})}});var ht=/^(?:checkbox|radio)$/i,ut=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,dt=/^$|^module$|\/(?:java|ecma)script/i;u=k.createDocumentFragment().appendChild(k.createElement("div")),(f=k.createElement("input")).setAttribute("type","radio"),f.setAttribute("checked","checked"),f.setAttribute("name","t"),u.appendChild(f),b.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,u.innerHTML="<textarea>x</textarea>",b.noCloneChecked=!!u.cloneNode(!0).lastChild.defaultValue,u.innerHTML="<option></option>",b.option=!!u.lastChild;var ft={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function pt(t,e){var i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&C(t,e)?T.merge([t],i):i}function gt(t,e){for(var i=0,n=t.length;i<n;i++)K.set(t[i],"globalEval",!e||K.get(e[i],"globalEval"))}ft.tbody=ft.tfoot=ft.colgroup=ft.caption=ft.thead,ft.th=ft.td,b.option||(ft.optgroup=ft.option=[1,"<select multiple='multiple'>","</select>"]);var mt=/<|&#?\w+;/;function vt(t,e,i,n,r){for(var s,o,a,l,c,h=e.createDocumentFragment(),u=[],d=0,f=t.length;d<f;d++)if((s=t[d])||0===s)if("object"===p(s))T.merge(u,s.nodeType?[s]:s);else if(mt.test(s)){for(o=o||h.appendChild(e.createElement("div")),a=(ut.exec(s)||["",""])[1].toLowerCase(),a=ft[a]||ft._default,o.innerHTML=a[1]+T.htmlPrefilter(s)+a[2],c=a[0];c--;)o=o.lastChild;T.merge(u,o.childNodes),(o=h.firstChild).textContent=""}else u.push(e.createTextNode(s));for(h.textContent="",d=0;s=u[d++];)if(n&&-1<T.inArray(s,n))r&&r.push(s);else if(l=rt(s),o=pt(h.appendChild(s),"script"),l&&gt(o),i)for(c=0;s=o[c++];)dt.test(s.type||"")&&i.push(s);return h}var bt=/^([^.]*)(?:\.(.+)|)/;function yt(){return!0}function xt(){return!1}function _t(t,e){return t===function(){try{return k.activeElement}catch(t){}}()==("focus"===e)}function wt(t,e,i,n,r,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)wt(t,a,i,n,e[a],s);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=xt;else if(!r)return t;return 1===s&&(o=r,(r=function(t){return T().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=T.guid++)),t.each(function(){T.event.add(this,e,r,n,i)})}function kt(t,r,s){s?(K.set(t,r,!1),T.event.add(t,r,{namespace:!1,handler:function(t){var e,i,n=K.get(this,r);if(1&t.isTrigger&&this[r]){if(n.length)(T.event.special[r]||{}).delegateType&&t.stopPropagation();else if(n=a.call(arguments),K.set(this,r,n),e=s(this,r),this[r](),n!==(i=K.get(this,r))||e?K.set(this,r,!1):i={},n!==i)return t.stopImmediatePropagation(),t.preventDefault(),i&&i.value}else n.length&&(K.set(this,r,{value:T.event.trigger(T.extend(n[0],T.Event.prototype),n.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===K.get(t,r)&&T.event.add(t,r,yt)}T.event={global:{},add:function(e,t,i,n,r){var s,o,a,l,c,h,u,d,f,p=K.get(e);if(Y(e))for(i.handler&&(i=(s=i).handler,r=s.selector),r&&T.find.matchesSelector(nt,r),i.guid||(i.guid=T.guid++),(a=p.events)||(a=p.events=Object.create(null)),(o=p.handle)||(o=p.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(I)||[""]).length;l--;)u=f=(c=bt.exec(t[l])||[])[1],d=(c[2]||"").split(".").sort(),u&&(h=T.event.special[u]||{},u=(r?h.delegateType:h.bindType)||u,h=T.event.special[u]||{},c=T.extend({type:u,origType:f,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&T.expr.match.needsContext.test(r),namespace:d.join(".")},s),(f=a[u])||((f=a[u]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,n,d,o)||e.addEventListener&&e.addEventListener(u,o)),h.add&&(h.add.call(e,c),c.handler.guid||(c.handler.guid=i.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),T.event.global[u]=!0)},remove:function(t,e,i,n,r){var s,o,a,l,c,h,u,d,f,p,g,m=K.hasData(t)&&K.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(I)||[""]).length;c--;)if(f=g=(a=bt.exec(e[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(u=T.event.special[f]||{},d=l[f=(n?u.delegateType:u.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=d.length;s--;)h=d[s],!r&&g!==h.origType||i&&i.guid!==h.guid||a&&!a.test(h.namespace)||n&&n!==h.selector&&("**"!==n||!h.selector)||(d.splice(s,1),h.selector&&d.delegateCount--,u.remove&&u.remove.call(t,h));o&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,p,m.handle)||T.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)T.event.remove(t,f+e[c],i,n,!0);T.isEmptyObject(l)&&K.remove(t,"handle events")}},dispatch:function(t){var e,i,n,r,s,o=new Array(arguments.length),a=T.event.fix(t),l=(K.get(this,"events")||Object.create(null))[a.type]||[],t=T.event.special[a.type]||{};for(o[0]=a,e=1;e<arguments.length;e++)o[e]=arguments[e];if(a.delegateTarget=this,!t.preDispatch||!1!==t.preDispatch.call(this,a)){for(s=T.event.handlers.call(this,a,l),e=0;(n=s[e++])&&!a.isPropagationStopped();)for(a.currentTarget=n.elem,i=0;(r=n.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==r.namespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,void 0!==(r=((T.event.special[r.origType]||{}).handle||r.handler).apply(n.elem,o))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return t.postDispatch&&t.postDispatch.call(this,a),a.result}},handlers:function(t,e){var i,n,r,s,o,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&1<=t.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(s=[],o={},i=0;i<l;i++)void 0===o[r=(n=e[i]).selector+" "]&&(o[r]=n.needsContext?-1<T(r,this).index(c):T.find(r,this,null,[c]).length),o[r]&&s.push(n);s.length&&a.push({elem:c,handlers:s})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){t=this||t;return ht.test(t.type)&&t.click&&C(t,"input")&&kt(t,"click",yt),!1},trigger:function(t){t=this||t;return ht.test(t.type)&&t.click&&C(t,"input")&&kt(t,"click"),!0},_default:function(t){t=t.target;return ht.test(t.type)&&t.click&&C(t,"input")&&K.get(t,"click")||C(t,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?yt:xt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:xt,isPropagationStopped:xt,isImmediatePropagationStopped:xt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=yt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=yt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=yt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(t,e){T.event.special[t]={setup:function(){return kt(this,t,_t),!1},trigger:function(){return kt(this,t),!0},_default:function(){return!0},delegateType:e}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,r){T.event.special[t]={delegateType:r,bindType:r,handle:function(t){var e,i=t.relatedTarget,n=t.handleObj;return i&&(i===this||T.contains(this,i))||(t.type=n.origType,e=n.handler.apply(this,arguments),t.type=r),e}}}),T.fn.extend({on:function(t,e,i,n){return wt(this,t,e,i,n)},one:function(t,e,i,n){return wt(this,t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,T(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=xt),this.each(function(){T.event.remove(this,t,i,e)});for(r in t)this.off(r,e,t[r]);return this}});var Tt=/<script|<style|<link/i,St=/checked\s*(?:[^=]|=\s*.checked.)/i,Et=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ct(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function Mt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function At(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Dt(t,e){var i,n,r,s;if(1===e.nodeType){if(K.hasData(t)&&(s=K.get(t).events))for(r in K.remove(e,"handle events"),s)for(i=0,n=s[r].length;i<n;i++)T.event.add(e,r,s[r][i]);Q.hasData(t)&&(t=Q.access(t),t=T.extend({},t),Q.set(e,t))}}function Lt(i,n,r,s){n=m(n);var t,e,o,a,l,c,h=0,u=i.length,d=u-1,f=n[0],p=y(f);if(p||1<u&&"string"==typeof f&&!b.checkClone&&St.test(f))return i.each(function(t){var e=i.eq(t);p&&(n[0]=f.call(this,t,e.html())),Lt(e,n,r,s)});if(u&&(e=(t=vt(n,i[0].ownerDocument,!1,i,s)).firstChild,1===t.childNodes.length&&(t=e),e||s)){for(a=(o=T.map(pt(t,"script"),Mt)).length;h<u;h++)l=t,h!==d&&(l=T.clone(l,!0,!0),a&&T.merge(o,pt(l,"script"))),r.call(i[h],l,h);if(a)for(c=o[o.length-1].ownerDocument,T.map(o,At),h=0;h<a;h++)l=o[h],dt.test(l.type||"")&&!K.access(l,"globalEval")&&T.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?T._evalUrl&&!l.noModule&&T._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):x(l.textContent.replace(Et,""),l,c))}return i}function Ot(t,e,i){for(var n,r=e?T.filter(e,t):t,s=0;null!=(n=r[s]);s++)i||1!==n.nodeType||T.cleanData(pt(n)),n.parentNode&&(i&&rt(n)&&gt(pt(n,"script")),n.parentNode.removeChild(n));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,r,s,o,a,l,c,h=t.cloneNode(!0),u=rt(t);if(!(b.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(o=pt(h),n=0,r=(s=pt(t)).length;n<r;n++)a=s[n],l=o[n],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&ht.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(e)if(i)for(s=s||pt(t),o=o||pt(h),n=0,r=s.length;n<r;n++)Dt(s[n],o[n]);else Dt(t,h);return 0<(o=pt(h,"script")).length&&gt(o,!u&&pt(t,"script")),h},cleanData:function(t){for(var e,i,n,r=T.event.special,s=0;void 0!==(i=t[s]);s++)if(Y(i)){if(e=i[K.expando]){if(e.events)for(n in e.events)r[n]?T.event.remove(i,n):T.removeEvent(i,n,e.handle);i[K.expando]=void 0}i[Q.expando]&&(i[Q.expando]=void 0)}}}),T.fn.extend({detach:function(t){return Ot(this,t,!0)},remove:function(t){return Ot(this,t)},text:function(t){return B(this,function(t){return void 0===t?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Lt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ct(this,t).appendChild(t)})},prepend:function(){return Lt(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Ct(this,t)).insertBefore(t,e.firstChild)})},before:function(){return Lt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Lt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(pt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return T.clone(this,t,e)})},html:function(t){return B(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Tt.test(t)&&!ft[(ut.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(T.cleanData(pt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var i=[];return Lt(this,arguments,function(t){var e=this.parentNode;T.inArray(this,i)<0&&(T.cleanData(pt(this)),e&&e.replaceChild(t,this))},i)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,o){T.fn[t]=function(t){for(var e,i=[],n=T(t),r=n.length-1,s=0;s<=r;s++)e=s===r?this:this.clone(!0),T(n[s])[o](e),l.apply(i,e.get());return this.pushStack(i)}});function Pt(t,e,i){var n,r={};for(n in e)r[n]=t.style[n],t.style[n]=e[n];for(n in i=i.call(t),e)t.style[n]=r[n];return i}var Nt,It,Rt,jt,Ht,Ft,$t,zt,Bt=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),Wt=function(t){var e=t.ownerDocument.defaultView;return(e=!e||!e.opener?w:e).getComputedStyle(t)},Vt=new RegExp(it.join("|"),"i");function qt(){var t;zt&&($t.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",zt.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",nt.appendChild($t).appendChild(zt),t=w.getComputedStyle(zt),Nt="1%"!==t.top,Ft=12===Ut(t.marginLeft),zt.style.right="60%",jt=36===Ut(t.right),It=36===Ut(t.width),zt.style.position="absolute",Rt=12===Ut(zt.offsetWidth/3),nt.removeChild($t),zt=null)}function Ut(t){return Math.round(parseFloat(t))}function Yt(t,e,i){var n,r,s=t.style;return(i=i||Wt(t))&&(""!==(r=i.getPropertyValue(e)||i[e])||rt(t)||(r=T.style(t,e)),!b.pixelBoxStyles()&&Bt.test(r)&&Vt.test(e)&&(n=s.width,t=s.minWidth,e=s.maxWidth,s.minWidth=s.maxWidth=s.width=r,r=i.width,s.width=n,s.minWidth=t,s.maxWidth=e)),void 0!==r?r+"":r}function Xt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}$t=k.createElement("div"),(zt=k.createElement("div")).style&&(zt.style.backgroundClip="content-box",zt.cloneNode(!0).style.backgroundClip="",b.clearCloneStyle="content-box"===zt.style.backgroundClip,T.extend(b,{boxSizingReliable:function(){return qt(),It},pixelBoxStyles:function(){return qt(),jt},pixelPosition:function(){return qt(),Nt},reliableMarginLeft:function(){return qt(),Ft},scrollboxSize:function(){return qt(),Rt},reliableTrDimensions:function(){var t,e,i;return null==Ht&&(t=k.createElement("table"),e=k.createElement("tr"),i=k.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",i.style.height="9px",i.style.display="block",nt.appendChild(t).appendChild(e).appendChild(i),i=w.getComputedStyle(e),Ht=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===e.offsetHeight,nt.removeChild(t)),Ht}}));var Kt=["Webkit","Moz","ms"],Qt=k.createElement("div").style,Gt={};function Jt(t){var e=T.cssProps[t]||Gt[t];return e||(t in Qt?t:Gt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Kt.length;i--;)if((t=Kt[i]+e)in Qt)return t}(t)||t)}var Zt=/^(none|table(?!-c[ea]).+)/,te=/^--/,ee={position:"absolute",visibility:"hidden",display:"block"},ie={letterSpacing:"0",fontWeight:"400"};function ne(t,e,i){var n=et.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function re(t,e,i,n,r,s){var o="width"===e?1:0,a=0,l=0;if(i===(n?"border":"content"))return 0;for(;o<4;o+=2)"margin"===i&&(l+=T.css(t,i+it[o],!0,r)),n?("content"===i&&(l-=T.css(t,"padding"+it[o],!0,r)),"margin"!==i&&(l-=T.css(t,"border"+it[o]+"Width",!0,r))):(l+=T.css(t,"padding"+it[o],!0,r),"padding"!==i?l+=T.css(t,"border"+it[o]+"Width",!0,r):a+=T.css(t,"border"+it[o]+"Width",!0,r));return!n&&0<=s&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-l-a-.5))||0),l}function se(t,e,i){var n=Wt(t),r=(!b.boxSizingReliable()||i)&&"border-box"===T.css(t,"boxSizing",!1,n),s=r,o=Yt(t,e,n),a="offset"+e[0].toUpperCase()+e.slice(1);if(Bt.test(o)){if(!i)return o;o="auto"}return(!b.boxSizingReliable()&&r||!b.reliableTrDimensions()&&C(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===T.css(t,"display",!1,n))&&t.getClientRects().length&&(r="border-box"===T.css(t,"boxSizing",!1,n),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+re(t,e,i||(r?"border":"content"),s,n,o)+"px"}function oe(t,e,i,n,r){return new oe.prototype.init(t,e,i,n,r)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){t=Yt(t,"opacity");return""===t?"1":t}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,s,o,a=U(e),l=te.test(e),c=t.style;if(l||(e=Jt(a)),o=T.cssHooks[e]||T.cssHooks[a],void 0===i)return o&&"get"in o&&void 0!==(r=o.get(t,!1,n))?r:c[e];"string"===(s=typeof i)&&(r=et.exec(i))&&r[1]&&(i=at(t,e,r),s="number"),null!=i&&i==i&&("number"!==s||l||(i+=r&&r[3]||(T.cssNumber[a]?"":"px")),b.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),o&&"set"in o&&void 0===(i=o.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var r,s=U(e);return te.test(e)||(e=Jt(s)),"normal"===(r=void 0===(r=(s=T.cssHooks[e]||T.cssHooks[s])&&"get"in s?s.get(t,!0,i):r)?Yt(t,e,n):r)&&e in ie&&(r=ie[e]),""===i||i?(e=parseFloat(r),!0===i||isFinite(e)?e||0:r):r}}),T.each(["height","width"],function(t,a){T.cssHooks[a]={get:function(t,e,i){if(e)return!Zt.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?se(t,a,i):Pt(t,ee,function(){return se(t,a,i)})},set:function(t,e,i){var n,r=Wt(t),s=!b.scrollboxSize()&&"absolute"===r.position,o=(s||i)&&"border-box"===T.css(t,"boxSizing",!1,r),i=i?re(t,a,i,o,r):0;return o&&s&&(i-=Math.ceil(t["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(r[a])-re(t,a,"border",!1,r)-.5)),i&&(n=et.exec(e))&&"px"!==(n[3]||"px")&&(t.style[a]=e,e=T.css(t,a)),ne(0,e,i)}}}),T.cssHooks.marginLeft=Xt(b.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Yt(t,"marginLeft"))||t.getBoundingClientRect().left-Pt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(r,s){T.cssHooks[r+s]={expand:function(t){for(var e=0,i={},n="string"==typeof t?t.split(" "):[t];e<4;e++)i[r+it[e]+s]=n[e]||n[e-2]||n[0];return i}},"margin"!==r&&(T.cssHooks[r+s].set=ne)}),T.fn.extend({css:function(t,e){return B(this,function(t,e,i){var n,r,s={},o=0;if(Array.isArray(e)){for(n=Wt(t),r=e.length;o<r;o++)s[e[o]]=T.css(t,e[o],!1,n);return s}return void 0!==i?T.style(t,e,i):T.css(t,e)},t,e,1<arguments.length)}}),(T.Tween=oe).prototype={constructor:oe,init:function(t,e,i,n,r,s){this.elem=t,this.prop=i,this.easing=r||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||(T.cssNumber[i]?"":"px")},cur:function(){var t=oe.propHooks[this.prop];return(t&&t.get?t:oe.propHooks._default).get(this)},run:function(t){var e,i=oe.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(i&&i.set?i:oe.propHooks._default).set(this),this}},oe.prototype.init.prototype=oe.prototype,oe.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=T.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[Jt(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},oe.propHooks.scrollTop=oe.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=oe.prototype.init,T.fx.step={};var ae,le,ce=/^(?:toggle|show|hide)$/,he=/queueHooks$/;function ue(){le&&(!1===k.hidden&&w.requestAnimationFrame?w.requestAnimationFrame(ue):w.setTimeout(ue,T.fx.interval),T.fx.tick())}function de(){return w.setTimeout(function(){ae=void 0}),ae=Date.now()}function fe(t,e){var i,n=0,r={height:t};for(e=e?1:0;n<4;n+=2-e)r["margin"+(i=it[n])]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function pe(t,e,i){for(var n,r=(ge.tweeners[e]||[]).concat(ge.tweeners["*"]),s=0,o=r.length;s<o;s++)if(n=r[s].call(i,e,t))return n}function ge(r,t,e){var i,s,n=0,o=ge.prefilters.length,a=T.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var t=ae||de(),t=Math.max(0,c.startTime+c.duration-t),e=1-(t/c.duration||0),i=0,n=c.tweens.length;i<n;i++)c.tweens[i].run(e);return a.notifyWith(r,[c,e,t]),e<1&&n?t:(n||a.notifyWith(r,[c,1,0]),a.resolveWith(r,[c]),!1)},c=a.promise({elem:r,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},e),originalProperties:t,originalOptions:e,startTime:ae||de(),duration:e.duration,tweens:[],createTween:function(t,e){t=T.Tween(r,c.opts,t,e,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(t),t},stop:function(t){var e=0,i=t?c.tweens.length:0;if(s)return this;for(s=!0;e<i;e++)c.tweens[e].run(1);return t?(a.notifyWith(r,[c,1,0]),a.resolveWith(r,[c,t])):a.rejectWith(r,[c,t]),this}}),h=c.props;for(!function(t,e){var i,n,r,s,o;for(i in t)if(r=e[n=U(i)],s=t[i],Array.isArray(s)&&(r=s[1],s=t[i]=s[0]),i!==n&&(t[n]=s,delete t[i]),(o=T.cssHooks[n])&&"expand"in o)for(i in s=o.expand(s),delete t[n],s)i in t||(t[i]=s[i],e[i]=r);else e[n]=r}(h,c.opts.specialEasing);n<o;n++)if(i=ge.prefilters[n].call(c,r,h,c.opts))return y(i.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return T.map(h,pe,c),y(c.opts.start)&&c.opts.start.call(r,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),T.fx.timer(T.extend(l,{elem:r,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(ge,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return at(i.elem,t,et.exec(e),i),i}]},tweener:function(t,e){for(var i,n=0,r=(t=y(t)?(e=t,["*"]):t.match(I)).length;n<r;n++)i=t[n],ge.tweeners[i]=ge.tweeners[i]||[],ge.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,r,s,o,a,l,c,h="width"in e||"height"in e,u=this,d={},f=t.style,p=t.nodeType&&ot(t),g=K.get(t,"fxshow");for(n in i.queue||(null==(o=T._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,u.always(function(){u.always(function(){o.unqueued--,T.queue(t,"fx").length||o.empty.fire()})})),e)if(r=e[n],ce.test(r)){if(delete e[n],s=s||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!g||void 0===g[n])continue;p=!0}d[n]=g&&g[n]||T.style(t,n)}if((l=!T.isEmptyObject(e))||!T.isEmptyObject(d))for(n in h&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=K.get(t,"display")),"none"===(h=T.css(t,"display"))&&(c?h=c:(ct([t],!0),c=t.style.display||c,h=T.css(t,"display"),ct([t]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===T.css(t,"float")&&(l||(u.done(function(){f.display=c}),null==c&&(h=f.display,c="none"===h?"":h)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",u.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1,d)l||(g?"hidden"in g&&(p=g.hidden):g=K.access(t,"fxshow",{display:c}),s&&(g.hidden=!p),p&&ct([t],!0),u.done(function(){for(n in p||ct([t]),K.remove(t,"fxshow"),d)T.style(t,n,d[n])})),l=pe(p?g[n]:0,n,u),n in g||(g[n]=l.start,p&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ge.prefilters.unshift(t):ge.prefilters.push(t)}}),T.speed=function(t,e,i){var n=t&&"object"==typeof t?T.extend({},t):{complete:i||!i&&e||y(t)&&t,duration:t,easing:i&&e||e&&!y(e)&&e};return T.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in T.fx.speeds?n.duration=T.fx.speeds[n.duration]:n.duration=T.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){y(n.old)&&n.old.call(this),n.queue&&T.dequeue(this,n.queue)},n},T.fn.extend({fadeTo:function(t,e,i,n){return this.filter(ot).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(e,t,i,n){var r=T.isEmptyObject(e),s=T.speed(t,i,n),n=function(){var t=ge(this,T.extend({},e),s);(r||K.get(this,"finish"))&&t.stop(!0)};return n.finish=n,r||!1===s.queue?this.each(n):this.queue(s.queue,n)},stop:function(r,t,s){function o(t){var e=t.stop;delete t.stop,e(s)}return"string"!=typeof r&&(s=t,t=r,r=void 0),t&&this.queue(r||"fx",[]),this.each(function(){var t=!0,e=null!=r&&r+"queueHooks",i=T.timers,n=K.get(this);if(e)n[e]&&n[e].stop&&o(n[e]);else for(e in n)n[e]&&n[e].stop&&he.test(e)&&o(n[e]);for(e=i.length;e--;)i[e].elem!==this||null!=r&&i[e].queue!==r||(i[e].anim.stop(s),t=!1,i.splice(e,1));!t&&s||T.dequeue(this,r)})},finish:function(o){return!1!==o&&(o=o||"fx"),this.each(function(){var t,e=K.get(this),i=e[o+"queue"],n=e[o+"queueHooks"],r=T.timers,s=i?i.length:0;for(e.finish=!0,T.queue(this,o,[]),n&&n.stop&&n.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===o&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete e.finish})}}),T.each(["toggle","show","hide"],function(t,n){var r=T.fn[n];T.fn[n]=function(t,e,i){return null==t||"boolean"==typeof t?r.apply(this,arguments):this.animate(fe(n,!0),t,e,i)}}),T.each({slideDown:fe("show"),slideUp:fe("hide"),slideToggle:fe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,n){T.fn[t]=function(t,e,i){return this.animate(n,t,e,i)}}),T.timers=[],T.fx.tick=function(){var t,e=0,i=T.timers;for(ae=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||T.fx.stop(),ae=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){le||(le=!0,ue())},T.fx.stop=function(){le=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(n,t){return n=T.fx&&T.fx.speeds[n]||n,this.queue(t=t||"fx",function(t,e){var i=w.setTimeout(t,n);e.stop=function(){w.clearTimeout(i)}})},u=k.createElement("input"),tt=k.createElement("select").appendChild(k.createElement("option")),u.type="checkbox",b.checkOn=""!==u.value,b.optSelected=tt.selected,(u=k.createElement("input")).value="t",u.type="radio",b.radioValue="t"===u.value;var me,ve=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return B(this,T.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){T.removeAttr(this,t)})}}),T.extend({attr:function(t,e,i){var n,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?T.prop(t,e,i):(1===s&&T.isXMLDoc(t)||(r=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?me:void 0)),void 0!==i?null===i?void T.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):!(r&&"get"in r&&null!==(n=r.get(t,e)))&&null==(n=T.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!b.radioValue&&"radio"===e&&C(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,r=e&&e.match(I);if(r&&1===t.nodeType)for(;i=r[n++];)t.removeAttribute(i)}}),me={set:function(t,e,i){return!1===e?T.removeAttr(t,i):t.setAttribute(i,i),i}},T.each(T.expr.match.bool.source.match(/\w+/g),function(t,e){var o=ve[e]||T.find.attr;ve[e]=function(t,e,i){var n,r,s=e.toLowerCase();return i||(r=ve[s],ve[s]=n,n=null!=o(t,e,i)?s:null,ve[s]=r),n}});var be=/^(?:input|select|textarea|button)$/i,ye=/^(?:a|area)$/i;function xe(t){return(t.match(I)||[]).join(" ")}function _e(t){return t.getAttribute&&t.getAttribute("class")||""}function we(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(I)||[]}T.fn.extend({prop:function(t,e){return B(this,T.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[T.propFix[t]||t]})}}),T.extend({prop:function(t,e,i){var n,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&T.isXMLDoc(t)||(e=T.propFix[e]||e,r=T.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):be.test(t.nodeName)||ye.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(T.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){t=t.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(e){var t,i,n,r,s,o,a=0;if(y(e))return this.each(function(t){T(this).addClass(e.call(this,t,_e(this)))});if((t=we(e)).length)for(;i=this[a++];)if(o=_e(i),n=1===i.nodeType&&" "+xe(o)+" "){for(s=0;r=t[s++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");o!==(o=xe(n))&&i.setAttribute("class",o)}return this},removeClass:function(e){var t,i,n,r,s,o,a=0;if(y(e))return this.each(function(t){T(this).removeClass(e.call(this,t,_e(this)))});if(!arguments.length)return this.attr("class","");if((t=we(e)).length)for(;i=this[a++];)if(o=_e(i),n=1===i.nodeType&&" "+xe(o)+" "){for(s=0;r=t[s++];)for(;-1<n.indexOf(" "+r+" ");)n=n.replace(" "+r+" "," ");o!==(o=xe(n))&&i.setAttribute("class",o)}return this},toggleClass:function(r,e){var s=typeof r,o="string"==s||Array.isArray(r);return"boolean"==typeof e&&o?e?this.addClass(r):this.removeClass(r):y(r)?this.each(function(t){T(this).toggleClass(r.call(this,t,_e(this),e),e)}):this.each(function(){var t,e,i,n;if(o)for(e=0,i=T(this),n=we(r);t=n[e++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==r&&"boolean"!=s||((t=_e(this))&&K.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==r&&K.get(this,"__className__")||""))})},hasClass:function(t){for(var e,i=0,n=" "+t+" ";e=this[i++];)if(1===e.nodeType&&-1<(" "+xe(_e(e))+" ").indexOf(n))return!0;return!1}});var ke=/\r/g;T.fn.extend({val:function(e){var i,t,n,r=this[0];return arguments.length?(n=y(e),this.each(function(t){1===this.nodeType&&(null==(t=n?e.call(this,t,T(this).val()):e)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=T.map(t,function(t){return null==t?"":t+""})),(i=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,t,"value")||(this.value=t))})):r?(i=T.valHooks[r.type]||T.valHooks[r.nodeName.toLowerCase()])&&"get"in i&&void 0!==(t=i.get(r,"value"))?t:"string"==typeof(t=r.value)?t.replace(ke,""):null==t?"":t:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:xe(T.text(t))}},select:{get:function(t){for(var e,i=t.options,n=t.selectedIndex,r="select-one"===t.type,s=r?null:[],o=r?n+1:i.length,a=n<0?o:r?n:0;a<o;a++)if(((e=i[a]).selected||a===n)&&!e.disabled&&(!e.parentNode.disabled||!C(e.parentNode,"optgroup"))){if(e=T(e).val(),r)return e;s.push(e)}return s},set:function(t,e){for(var i,n,r=t.options,s=T.makeArray(e),o=r.length;o--;)((n=r[o]).selected=-1<T.inArray(T.valHooks.option.get(n),s))&&(i=!0);return i||(t.selectedIndex=-1),s}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<T.inArray(T(t).val(),e)}},b.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),b.focusin="onfocusin"in w;function Te(t){t.stopPropagation()}var Se=/^(?:focusinfocus|focusoutblur)$/;T.extend(T.event,{trigger:function(t,e,i,n){var r,s,o,a,l,c,h,u=[i||k],d=v.call(t,"type")?t.type:t,f=v.call(t,"namespace")?t.namespace.split("."):[],p=h=s=i=i||k;if(3!==i.nodeType&&8!==i.nodeType&&!Se.test(d+T.event.triggered)&&(-1<d.indexOf(".")&&(d=(f=d.split(".")).shift(),f.sort()),a=d.indexOf(":")<0&&"on"+d,(t=t[T.expando]?t:new T.Event(d,"object"==typeof t&&t)).isTrigger=n?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:T.makeArray(e,[t]),c=T.event.special[d]||{},n||!c.trigger||!1!==c.trigger.apply(i,e))){if(!n&&!c.noBubble&&!g(i)){for(o=c.delegateType||d,Se.test(o+d)||(p=p.parentNode);p;p=p.parentNode)u.push(p),s=p;s===(i.ownerDocument||k)&&u.push(s.defaultView||s.parentWindow||w)}for(r=0;(p=u[r++])&&!t.isPropagationStopped();)h=p,t.type=1<r?o:c.bindType||d,(l=(K.get(p,"events")||Object.create(null))[t.type]&&K.get(p,"handle"))&&l.apply(p,e),(l=a&&p[a])&&l.apply&&Y(p)&&(t.result=l.apply(p,e),!1===t.result&&t.preventDefault());return t.type=d,n||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(u.pop(),e)||!Y(i)||a&&y(i[d])&&!g(i)&&((s=i[a])&&(i[a]=null),T.event.triggered=d,t.isPropagationStopped()&&h.addEventListener(d,Te),i[d](),t.isPropagationStopped()&&h.removeEventListener(d,Te),T.event.triggered=void 0,s&&(i[a]=s)),t.result}},simulate:function(t,e,i){t=T.extend(new T.Event,i,{type:t,isSimulated:!0});T.event.trigger(t,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each(function(){T.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return T.event.trigger(t,e,i,!0)}}),b.focusin||T.each({focus:"focusin",blur:"focusout"},function(i,n){function r(t){T.event.simulate(n,t.target,T.event.fix(t))}T.event.special[n]={setup:function(){var t=this.ownerDocument||this.document||this,e=K.access(t,n);e||t.addEventListener(i,r,!0),K.access(t,n,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this.document||this,e=K.access(t,n)-1;e?K.access(t,n,e):(t.removeEventListener(i,r,!0),K.remove(t,n))}}});var Ee=w.location,Ce={guid:Date.now()},Me=/\?/;T.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{e=(new w.DOMParser).parseFromString(t,"text/xml")}catch(t){}return i=e&&e.getElementsByTagName("parsererror")[0],e&&!i||T.error("Invalid XML: "+(i?T.map(i.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var Ae=/\[\]$/,De=/\r?\n/g,Le=/^(?:submit|button|image|reset|file)$/i,Oe=/^(?:input|select|textarea|keygen)/i;T.param=function(t,e){function i(t,e){e=y(e)?e():e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)}var n,r=[];if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,function(){i(this.name,this.value)});else for(n in t)!function i(n,t,r,s){if(Array.isArray(t))T.each(t,function(t,e){r||Ae.test(n)?s(n,e):i(n+"["+("object"==typeof e&&null!=e?t:"")+"]",e,r,s)});else if(r||"object"!==p(t))s(n,t);else for(var e in t)i(n+"["+e+"]",t[e],r,s)}(n,t[n],e,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&Oe.test(this.nodeName)&&!Le.test(t)&&(this.checked||!ht.test(t))}).map(function(t,e){var i=T(this).val();return null==i?null:Array.isArray(i)?T.map(i,function(t){return{name:e.name,value:t.replace(De,"\r\n")}}):{name:e.name,value:i.replace(De,"\r\n")}}).get()}});var Pe=/%20/g,Ne=/#.*$/,Ie=/([?&])_=[^&]*/,Re=/^(.*?):[ \t]*([^\r\n]*)$/gm,je=/^(?:GET|HEAD)$/,He=/^\/\//,Fe={},$e={},ze="*/".concat("*"),Be=k.createElement("a");function We(s){return function(t,e){"string"!=typeof t&&(e=t,t="*");var i,n=0,r=t.toLowerCase().match(I)||[];if(y(e))for(;i=r[n++];)"+"===i[0]?(i=i.slice(1)||"*",(s[i]=s[i]||[]).unshift(e)):(s[i]=s[i]||[]).push(e)}}function Ve(e,n,r,s){var o={},a=e===$e;function l(t){var i;return o[t]=!0,T.each(e[t]||[],function(t,e){e=e(n,r,s);return"string"!=typeof e||a||o[e]?a?!(i=e):void 0:(n.dataTypes.unshift(e),l(e),!1)}),i}return l(n.dataTypes[0])||!o["*"]&&l("*")}function qe(t,e){var i,n,r=T.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n=n||{})[i]=e[i]);return n&&T.extend(!0,t,n),t}Be.href=Ee.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ee.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ee.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ze,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?qe(qe(t,T.ajaxSettings),e):qe(T.ajaxSettings,t)},ajaxPrefilter:We(Fe),ajaxTransport:We($e),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var l,c,h,i,u,d,f,n,r,p=T.ajaxSetup({},e=e||{}),g=p.context||p,m=p.context&&(g.nodeType||g.jquery)?T(g):T.event,v=T.Deferred(),b=T.Callbacks("once memory"),y=p.statusCode||{},s={},o={},a="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(d){if(!i)for(i={};e=Re.exec(h);)i[e[1].toLowerCase()+" "]=(i[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=i[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return d?h:null},setRequestHeader:function(t,e){return null==d&&(t=o[t.toLowerCase()]=o[t.toLowerCase()]||t,s[t]=e),this},overrideMimeType:function(t){return null==d&&(p.mimeType=t),this},statusCode:function(t){if(t)if(d)x.always(t[x.status]);else for(var e in t)y[e]=[y[e],t[e]];return this},abort:function(t){t=t||a;return l&&l.abort(t),_(0,t),this}};if(v.promise(x),p.url=((t||p.url||Ee.href)+"").replace(He,Ee.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(I)||[""],null==p.crossDomain){r=k.createElement("a");try{r.href=p.url,r.href=r.href,p.crossDomain=Be.protocol+"//"+Be.host!=r.protocol+"//"+r.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=T.param(p.data,p.traditional)),Ve(Fe,p,e,x),d)return x;for(n in(f=T.event&&p.global)&&0==T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!je.test(p.type),c=p.url.replace(Ne,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Pe,"+")):(r=p.url.slice(c.length),p.data&&(p.processData||"string"==typeof p.data)&&(c+=(Me.test(c)?"&":"?")+p.data,delete p.data),!1===p.cache&&(c=c.replace(Ie,"$1"),r=(Me.test(c)?"&":"?")+"_="+Ce.guid+++r),p.url=c+r),p.ifModified&&(T.lastModified[c]&&x.setRequestHeader("If-Modified-Since",T.lastModified[c]),T.etag[c]&&x.setRequestHeader("If-None-Match",T.etag[c])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&x.setRequestHeader("Content-Type",p.contentType),x.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+ze+"; q=0.01":""):p.accepts["*"]),p.headers)x.setRequestHeader(n,p.headers[n]);if(p.beforeSend&&(!1===p.beforeSend.call(g,x,p)||d))return x.abort();if(a="abort",b.add(p.complete),x.done(p.success),x.fail(p.error),l=Ve($e,p,e,x)){if(x.readyState=1,f&&m.trigger("ajaxSend",[x,p]),d)return x;p.async&&0<p.timeout&&(u=w.setTimeout(function(){x.abort("timeout")},p.timeout));try{d=!1,l.send(s,_)}catch(t){if(d)throw t;_(-1,t)}}else _(-1,"No Transport");function _(t,e,i,n){var r,s,o,a=e;d||(d=!0,u&&w.clearTimeout(u),l=void 0,h=n||"",x.readyState=0<t?4:0,n=200<=t&&t<300||304===t,i&&(o=function(t,e,i){for(var n,r,s,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)s=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){s=r;break}o=o||r}s=s||o}if(s)return s!==l[0]&&l.unshift(s),i[s]}(p,x,i)),!n&&-1<T.inArray("script",p.dataTypes)&&T.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),o=function(t,e,i,n){var r,s,o,a,l,c={},h=t.dataTypes.slice();if(h[1])for(o in t.converters)c[o.toLowerCase()]=t.converters[o];for(s=h.shift();s;)if(t.responseFields[s]&&(i[t.responseFields[s]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=h.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(o=c[l+" "+s]||c["* "+s]))for(r in c)if((a=r.split(" "))[1]===s&&(o=c[l+" "+a[0]]||c["* "+a[0]])){!0===o?o=c[r]:!0!==c[r]&&(s=a[0],h.unshift(a[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}(p,o,x,n),n?(p.ifModified&&((i=x.getResponseHeader("Last-Modified"))&&(T.lastModified[c]=i),(i=x.getResponseHeader("etag"))&&(T.etag[c]=i)),204===t||"HEAD"===p.type?a="nocontent":304===t?a="notmodified":(a=o.state,r=o.data,n=!(s=o.error))):(s=a,!t&&a||(a="error",t<0&&(t=0))),x.status=t,x.statusText=(e||a)+"",n?v.resolveWith(g,[r,a,x]):v.rejectWith(g,[x,a,s]),x.statusCode(y),y=void 0,f&&m.trigger(n?"ajaxSuccess":"ajaxError",[x,p,n?r:s]),b.fireWith(g,[x,a]),f&&(m.trigger("ajaxComplete",[x,p]),--T.active||T.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,i){return T.get(t,e,i,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],function(t,r){T[r]=function(t,e,i,n){return y(e)&&(n=n||i,i=e,e=void 0),T.ajax(T.extend({url:t,type:r,dataType:n,data:e,success:i},T.isPlainObject(t)&&t))}}),T.ajaxPrefilter(function(t){for(var e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),T._evalUrl=function(t,e,i){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,e,i)}})},T.fn.extend({wrapAll:function(t){return this[0]&&(y(t)&&(t=t.call(this[0])),t=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(i){return y(i)?this.each(function(t){T(this).wrapInner(i.call(this,t))}):this.each(function(){var t=T(this),e=t.contents();e.length?e.wrapAll(i):t.append(i)})},wrap:function(e){var i=y(e);return this.each(function(t){T(this).wrapAll(i?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new w.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},Ye=T.ajaxSettings.xhr();b.cors=!!Ye&&"withCredentials"in Ye,b.ajax=Ye=!!Ye,T.ajaxTransport(function(r){var s,o;if(b.cors||Ye&&!r.crossDomain)return{send:function(t,e){var i,n=r.xhr();if(n.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(i in r.xhrFields)n[i]=r.xhrFields[i];for(i in r.mimeType&&n.overrideMimeType&&n.overrideMimeType(r.mimeType),r.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)n.setRequestHeader(i,t[i]);s=function(t){return function(){s&&(s=o=n.onload=n.onerror=n.onabort=n.ontimeout=n.onreadystatechange=null,"abort"===t?n.abort():"error"===t?"number"!=typeof n.status?e(0,"error"):e(n.status,n.statusText):e(Ue[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=s(),o=n.onerror=n.ontimeout=s("error"),void 0!==n.onabort?n.onabort=o:n.onreadystatechange=function(){4===n.readyState&&w.setTimeout(function(){s&&o()})},s=s("abort");try{n.send(r.hasContent&&r.data||null)}catch(t){if(s)throw t}},abort:function(){s&&s()}}}),T.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),T.ajaxTransport("script",function(i){var n,r;if(i.crossDomain||i.scriptAttrs)return{send:function(t,e){n=T("<script>").attr(i.scriptAttrs||{}).prop({charset:i.scriptCharset,src:i.url}).on("load error",r=function(t){n.remove(),r=null,t&&e("error"===t.type?404:200,t.type)}),k.head.appendChild(n[0])},abort:function(){r&&r()}}});var Xe=[],Ke=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xe.pop()||T.expando+"_"+Ce.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",function(t,e,i){var n,r,s,o=!1!==t.jsonp&&(Ke.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ke.test(t.data)&&"data");if(o||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(Ke,"$1"+n):!1!==t.jsonp&&(t.url+=(Me.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return s||T.error(n+" was not called"),s[0]},t.dataTypes[0]="json",r=w[n],w[n]=function(){s=arguments},i.always(function(){void 0===r?T(w).removeProp(n):w[n]=r,t[n]&&(t.jsonpCallback=e.jsonpCallback,Xe.push(n)),s&&y(r)&&r(s[0]),s=r=void 0}),"script"}),b.createHTMLDocument=((u=k.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===u.childNodes.length),T.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(b.createHTMLDocument?((n=(e=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,e.head.appendChild(n)):e=k),n=!i&&[],(i=M.exec(t))?[e.createElement(i[1])]:(i=vt([t],e,n),n&&n.length&&T(n).remove(),T.merge([],i.childNodes)));var n},T.fn.load=function(t,e,i){var n,r,s,o=this,a=t.indexOf(" ");return-1<a&&(n=xe(t.slice(a)),t=t.slice(0,a)),y(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),0<o.length&&T.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){s=arguments,o.html(n?T("<div>").append(T.parseHTML(t)).find(n):t)}).always(i&&function(t,e){o.each(function(){i.apply(this,s||[t.responseText,e,t])})}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,function(t){return e===t.elem}).length},T.offset={setOffset:function(t,e,i){var n,r,s,o,a=T.css(t,"position"),l=T(t),c={};"static"===a&&(t.style.position="relative"),s=l.offset(),n=T.css(t,"top"),o=T.css(t,"left"),o=("absolute"===a||"fixed"===a)&&-1<(n+o).indexOf("auto")?(r=(a=l.position()).top,a.left):(r=parseFloat(n)||0,parseFloat(o)||0),null!=(e=y(e)?e.call(t,i,T.extend({},s)):e).top&&(c.top=e.top-s.top+r),null!=e.left&&(c.left=e.left-s.left+o),"using"in e?e.using.call(t,c):l.css(c)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){T.offset.setOffset(this,e,t)});var t,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],r={top:0,left:0};if("fixed"===T.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((r=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),r.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-T.css(n,"marginTop",!0),left:e.left-r.left-T.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||nt})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,r){var s="pageYOffset"===r;T.fn[e]=function(t){return B(this,function(t,e,i){var n;return g(t)?n=t:9===t.nodeType&&(n=t.defaultView),void 0===i?n?n[r]:t[e]:void(n?n.scrollTo(s?n.pageXOffset:i,s?i:n.pageYOffset):t[e]=i)},e,t,arguments.length)}}),T.each(["top","left"],function(t,i){T.cssHooks[i]=Xt(b.pixelPosition,function(t,e){if(e)return e=Yt(t,i),Bt.test(e)?T(t).position()[i]+"px":e})}),T.each({Height:"height",Width:"width"},function(o,a){T.each({padding:"inner"+o,content:a,"":"outer"+o},function(n,s){T.fn[s]=function(t,e){var i=arguments.length&&(n||"boolean"!=typeof t),r=n||(!0===t||!0===e?"margin":"border");return B(this,function(t,e,i){var n;return g(t)?0===s.indexOf("outer")?t["inner"+o]:t.document.documentElement["client"+o]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+o],n["scroll"+o],t.body["offset"+o],n["offset"+o],n["client"+o])):void 0===i?T.css(t,e,r):T.style(t,e,i,r)},a,i?t:void 0,i)}})}),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){T.fn[e]=function(t){return this.on(e,t)}}),T.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,i){T.fn[i]=function(t,e){return 0<arguments.length?this.on(i,null,t,e):this.trigger(i)}});var Qe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;T.proxy=function(t,e){var i,n;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return i=a.call(arguments,2),(n=function(){return t.apply(e||this,i.concat(a.call(arguments)))}).guid=t.guid=t.guid||T.guid++,n},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=C,T.isFunction=y,T.isWindow=g,T.camelCase=U,T.type=p,T.now=Date.now,T.isNumeric=function(t){var e=T.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(Qe,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return T});var Ge=w.jQuery,Je=w.$;return T.noConflict=function(t){return w.$===T&&(w.$=Je),t&&w.jQuery===T&&(w.jQuery=Ge),T},void 0===t&&(w.jQuery=w.$=T),T}),function(t,e){"use strict";"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(t.jQuery)}(this,function(l){"use strict";var r=function(t,e){this.$element=l(t),this.options=l.extend({},r.defaults,e),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.select=this.options.select||this.select,this.autoSelect="boolean"!=typeof this.options.autoSelect||this.options.autoSelect,this.highlighter=this.options.highlighter||this.highlighter,this.render=this.options.render||this.render,this.updater=this.options.updater||this.updater,this.displayText=this.options.displayText||this.displayText,this.itemLink=this.options.itemLink||this.itemLink,this.itemTitle=this.options.itemTitle||this.itemTitle,this.followLinkOnSelect=this.options.followLinkOnSelect||this.followLinkOnSelect,this.source=this.options.source,this.delay=this.options.delay,this.theme=this.options.theme&&this.options.themes&&this.options.themes[this.options.theme]||r.defaults.themes[r.defaults.theme],this.$menu=l(this.options.menu||this.theme.menu),this.$appendTo=this.options.appendTo?l(this.options.appendTo):null,this.fitToElement="boolean"==typeof this.options.fitToElement&&this.options.fitToElement,this.shown=!1,this.listen(),this.showHintOnFocus=("boolean"==typeof this.options.showHintOnFocus||"all"===this.options.showHintOnFocus)&&this.options.showHintOnFocus,this.afterSelect=this.options.afterSelect,this.afterEmptySelect=this.options.afterEmptySelect,this.addItem=!1,this.value=this.$element.val()||this.$element.text(),this.keyPressed=!1,this.focused=this.$element.is(":focus"),this.changeInputOnSelect=this.options.changeInputOnSelect||this.changeInputOnSelect,this.changeInputOnMove=this.options.changeInputOnMove||this.changeInputOnMove,this.openLinkInNewTab=this.options.openLinkInNewTab||this.openLinkInNewTab,this.selectOnBlur=this.options.selectOnBlur||this.selectOnBlur,this.showCategoryHeader=this.options.showCategoryHeader||this.showCategoryHeader};r.prototype={constructor:r,setDefault:function(t){return this.$element.data("active",t),(this.autoSelect||t)&&(t=(t=this.updater(t))||"",this.$element.val(this.displayText(t)||t).text(this.displayText(t)||t).change(),this.afterSelect(t)),this.hide()},select:function(){var t,e=this.$menu.find(".active").data("value");return this.$element.data("active",e),this.autoSelect||e?(t=(t=this.updater(e))||"",this.changeInputOnSelect&&this.$element.val(this.displayText(t)||t).text(this.displayText(t)||t).change(),this.followLinkOnSelect&&this.itemLink(e)?(this.openLinkInNewTab?window.open(this.itemLink(e),"_blank"):document.location=this.itemLink(e),this.afterSelect(t)):this.followLinkOnSelect&&!this.itemLink(e)?this.afterEmptySelect(t):this.afterSelect(t)):this.afterEmptySelect(),this.hide()},updater:function(t){return t},setSource:function(t){this.source=t},show:function(){var t,e,i=l.extend({},this.$element.position(),{height:this.$element[0].offsetHeight}),n="function"==typeof this.options.scrollHeight?this.options.scrollHeight.call():this.options.scrollHeight;this.shown?t=this.$menu:this.$appendTo?(t=this.$menu.appendTo(this.$appendTo),this.hasSameParent=this.$appendTo.is(this.$element.parent())):(t=this.$menu.insertAfter(this.$element),this.hasSameParent=!0),this.hasSameParent||(t.css("position","fixed"),e=this.$element.offset(),i.top=e.top,i.left=e.left);n=l(t).parent().hasClass("dropup")?"auto":i.top+i.height+n,i=l(t).hasClass("dropdown-menu-right")?"auto":i.left;return t.css({top:n,left:i}).show(),!0===this.options.fitToElement&&t.css("width",this.$element.outerWidth()+"px"),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(t){if(this.query=null!=t?t:this.$element.val(),this.query.length<this.options.minLength&&!this.options.showHintOnFocus)return this.shown?this.hide():this;t=l.proxy(function(){l.isFunction(this.source)&&3===this.source.length?this.source(this.query,l.proxy(this.process,this),l.proxy(this.process,this)):l.isFunction(this.source)?this.source(this.query,l.proxy(this.process,this)):this.source&&this.process(this.source)},this);clearTimeout(this.lookupWorker),this.lookupWorker=setTimeout(t,this.delay)},process:function(t){var e=this;return t=l.grep(t,function(t){return e.matcher(t)}),(t=this.sorter(t)).length||this.options.addItem?(0<t.length?this.$element.data("active",t[0]):this.$element.data("active",null),"all"!=this.options.items&&(t=t.slice(0,this.options.items)),this.options.addItem&&t.push(this.options.addItem),this.render(t).show()):this.shown?this.hide():this},matcher:function(t){return~this.displayText(t).toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(t){for(var e,i=[],n=[],r=[];e=t.shift();){var s=this.displayText(e);(s.toLowerCase().indexOf(this.query.toLowerCase())?~s.indexOf(this.query)?n:r:i).push(e)}return i.concat(n,r)},highlighter:function(t){if(""===(s=this.query))return t;var e=t.match(/(>)([^<]*)(<)/g),i=[],n=[];if(e&&e.length)for(a=0;a<e.length;++a)2<e[a].length&&i.push(e[a]);else(i=[]).push(t);for(var r,s=s.replace(/[\(\)\/\.\*\+\?\[\]]/g,function(t){return"\\"+t}),o=new RegExp(s,"g"),a=0;a<i.length;++a)(r=i[a].match(o))&&0<r.length&&n.push(i[a]);for(a=0;a<n.length;++a)t=t.replace(n[a],n[a].replace(o,"<strong>$&</strong>"));return t},render:function(i){var n=this,r=this,s=!1,o=[],a=n.options.separator;return l.each(i,function(t,e){0<t&&e[a]!==i[t-1][a]&&o.push({__type:"divider"}),this.showCategoryHeader&&(!e[a]||0!==t&&e[a]===i[t-1][a]||o.push({__type:"category",name:e[a]})),o.push(e)}),i=l(o).map(function(t,e){if("category"==(e.__type||!1))return l(n.options.headerHtml||n.theme.headerHtml).text(e.name)[0];if("divider"==(e.__type||!1))return l(n.options.headerDivider||n.theme.headerDivider)[0];var i=r.displayText(e);return(t=l(n.options.item||n.theme.item).data("value",e)).find(n.options.itemContentSelector||n.theme.itemContentSelector).addBack(n.options.itemContentSelector||n.theme.itemContentSelector).html(n.highlighter(i,e)),n.options.followLinkOnSelect&&t.find("a").attr("href",r.itemLink(e)),t.find("a").attr("title",r.itemTitle(e)),i==r.$element.val()&&(t.addClass("active"),r.$element.data("active",e),s=!0),t[0]}),this.autoSelect&&!s&&(i.filter(":not(.dropdown-header)").first().addClass("active"),this.$element.data("active",i.first().data("value"))),this.$menu.html(i),this},displayText:function(t){return void 0!==t&&void 0!==t.name?t.name:t},itemLink:function(t){return null},itemTitle:function(t){return null},next:function(t){var e=this.$menu.find(".active").removeClass("active").next();for(e.length||(e=l(this.$menu.find(l(this.options.item||this.theme.item).prop("tagName"))[0]));e.hasClass("divider")||e.hasClass("dropdown-header");)e=e.next();e.addClass("active");var i=this.updater(e.data("value"));this.changeInputOnMove&&this.$element.val(this.displayText(i)||i)},prev:function(t){var e=this.$menu.find(".active").removeClass("active").prev();for(e.length||(e=this.$menu.find(l(this.options.item||this.theme.item).prop("tagName")).last());e.hasClass("divider")||e.hasClass("dropdown-header");)e=e.prev();e.addClass("active");var i=this.updater(e.data("value"));this.changeInputOnMove&&this.$element.val(this.displayText(i)||i)},listen:function(){this.$element.on("focus.bootstrap3Typeahead",l.proxy(this.focus,this)).on("blur.bootstrap3Typeahead",l.proxy(this.blur,this)).on("keypress.bootstrap3Typeahead",l.proxy(this.keypress,this)).on("propertychange.bootstrap3Typeahead input.bootstrap3Typeahead",l.proxy(this.input,this)).on("keyup.bootstrap3Typeahead",l.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown.bootstrap3Typeahead",l.proxy(this.keydown,this));var t=l(this.options.item||this.theme.item).prop("tagName");"ontouchstart"in document.documentElement&&"onmousemove"in document.documentElement?this.$menu.on("touchstart",t,l.proxy(this.touchstart,this)).on("touchend",t,l.proxy(this.click,this)).on("click",l.proxy(this.click,this)).on("mouseenter",t,l.proxy(this.mouseenter,this)).on("mouseleave",t,l.proxy(this.mouseleave,this)).on("mousedown",l.proxy(this.mousedown,this)):"ontouchstart"in document.documentElement?this.$menu.on("touchstart",t,l.proxy(this.touchstart,this)).on("touchend",t,l.proxy(this.click,this)):this.$menu.on("click",l.proxy(this.click,this)).on("mouseenter",t,l.proxy(this.mouseenter,this)).on("mouseleave",t,l.proxy(this.mouseleave,this)).on("mousedown",l.proxy(this.mousedown,this))},destroy:function(){this.$element.data("typeahead",null),this.$element.data("active",null),this.$element.unbind("focus.bootstrap3Typeahead").unbind("blur.bootstrap3Typeahead").unbind("keypress.bootstrap3Typeahead").unbind("propertychange.bootstrap3Typeahead input.bootstrap3Typeahead").unbind("keyup.bootstrap3Typeahead"),this.eventSupported("keydown")&&this.$element.unbind("keydown.bootstrap3-typeahead"),this.$menu.remove(),this.destroyed=!0},eventSupported:function(t){var e=t in this.$element;return e||(this.$element.setAttribute(t,"return;"),e="function"==typeof this.$element[t]),e},move:function(t){if(this.shown)switch(t.keyCode){case 9:case 13:case 27:t.preventDefault();break;case 38:if(t.shiftKey)return;t.preventDefault(),this.prev();break;case 40:if(t.shiftKey)return;t.preventDefault(),this.next()}},keydown:function(t){17!==t.keyCode&&(this.keyPressed=!0,this.suppressKeyPressRepeat=~l.inArray(t.keyCode,[40,38,9,13,27]),this.shown||40!=t.keyCode?this.move(t):this.lookup())},keypress:function(t){this.suppressKeyPressRepeat||this.move(t)},input:function(t){var e=this.$element.val()||this.$element.text();this.value!==e&&(this.value=e,this.lookup())},keyup:function(t){if(!this.destroyed)switch(t.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:if(!this.shown||this.showHintOnFocus&&!this.keyPressed)return;this.select();break;case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide()}},focus:function(t){this.focused||(this.focused=!0,this.keyPressed=!1,this.options.showHintOnFocus&&!0!==this.skipShowHintOnFocus&&("all"===this.options.showHintOnFocus?this.lookup(""):this.lookup())),this.skipShowHintOnFocus&&(this.skipShowHintOnFocus=!1)},blur:function(t){this.mousedover||this.mouseddown||!this.shown?this.mouseddown&&(this.skipShowHintOnFocus=!0,this.$element.focus(),this.mouseddown=!1):(this.selectOnBlur&&this.select(),this.hide(),this.focused=!1,this.keyPressed=!1)},click:function(t){t.preventDefault(),this.skipShowHintOnFocus=!0,this.select(),this.$element.focus(),this.hide()},mouseenter:function(t){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),l(t.currentTarget).addClass("active")},mouseleave:function(t){this.mousedover=!1,!this.focused&&this.shown&&this.hide()},mousedown:function(t){this.mouseddown=!0,this.$menu.one("mouseup",function(t){this.mouseddown=!1}.bind(this))},touchstart:function(t){t.preventDefault(),this.$menu.find(".active").removeClass("active"),l(t.currentTarget).addClass("active")},touchend:function(t){t.preventDefault(),this.select(),this.$element.focus()}};var t=l.fn.typeahead;l.fn.typeahead=function(i){var n=arguments;return"string"==typeof i&&"getActive"==i?this.data("active"):this.each(function(){var t=l(this),e=t.data("typeahead");e||t.data("typeahead",e=new r(this,"object"==typeof i&&i)),"string"==typeof i&&e[i]&&(1<n.length?e[i].apply(e,Array.prototype.slice.call(n,1)):e[i]())})},r.defaults={source:[],items:8,minLength:1,scrollHeight:0,autoSelect:!0,afterSelect:l.noop,afterEmptySelect:l.noop,addItem:!1,followLinkOnSelect:!1,delay:0,separator:"category",changeInputOnSelect:!0,changeInputOnMove:!0,openLinkInNewTab:!1,selectOnBlur:!0,showCategoryHeader:!0,theme:"bootstrap3",themes:{bootstrap3:{menu:'<ul class="typeahead dropdown-menu" role="listbox"></ul>',item:'<li><a class="dropdown-item" href="#" role="option"></a></li>',itemContentSelector:"a",headerHtml:'<li class="dropdown-header"></li>',headerDivider:'<li class="divider" role="separator"></li>'},bootstrap4:{menu:'<div class="typeahead dropdown-menu" role="listbox"></div>',item:'<button class="dropdown-item" role="option"></button>',itemContentSelector:".dropdown-item",headerHtml:'<h6 class="dropdown-header"></h6>',headerDivider:'<div class="dropdown-divider"></div>'}}},l.fn.typeahead.Constructor=r,l.fn.typeahead.noConflict=function(){return l.fn.typeahead=t,this},l(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(t){var e=l(this);e.data("typeahead")||e.typeahead(e.data())})}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper)}(this,function(t){"use strict";function e(i){if(i&&i.__esModule)return i;var n=Object.create(null);return i&&Object.keys(i).forEach(function(t){var e;"default"!==t&&(e=Object.getOwnPropertyDescriptor(i,t),Object.defineProperty(n,t,e.get?e:{enumerable:!0,get:function(){return i[t]}}))}),n.default=i,Object.freeze(n)}var o=e(t);const u={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(t=>t.matches(e))},parents(t,e){const i=[];let n=t.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(e)&&i.push(n),n=n.parentNode;return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]}},n="transitionend",a=t=>{for(;t+=Math.floor(1e6*Math.random()),document.getElementById(t););return t},i=e=>{let i=e.getAttribute("data-bs-target");if(!i||"#"===i){let t=e.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),i=t&&"#"!==t?t.trim():null}return i},l=t=>{t=i(t);return t&&document.querySelector(t)?t:null},r=t=>{t=i(t);return t?document.querySelector(t):null},s=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);var n=Number.parseFloat(e),t=Number.parseFloat(i);return n||t?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0},c=t=>{t.dispatchEvent(new Event(n))},h=t=>!(!t||"object"!=typeof t)&&void 0!==(t=void 0!==t.jquery?t[0]:t).nodeType,d=t=>h(t)?t.jquery?t[0]:t:"string"==typeof t&&0<t.length?u.findOne(t):null,f=(e,t)=>{let i=!1;t+=5;e.addEventListener(n,function t(){i=!0,e.removeEventListener(n,t)}),setTimeout(()=>{i||c(e)},t)},p=(r,s,o)=>{Object.keys(o).forEach(t=>{var e,i=o[t],n=s[t],e=n&&h(n)?"element":null==(e=n)?`${e}`:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(i).test(e))throw new TypeError(`${r.toUpperCase()}: Option "${t}" provided type "${e}" but expected type "${i}".`)})},g=t=>{if(!t)return!1;if(t.style&&t.parentNode&&t.parentNode.style){var e=getComputedStyle(t),t=getComputedStyle(t.parentNode);return"none"!==e.display&&"none"!==t.display&&"hidden"!==e.visibility}return!1},m=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),v=t=>{if(!document.documentElement.attachShadow)return null;if("function"!=typeof t.getRootNode)return t instanceof ShadowRoot?t:t.parentNode?v(t.parentNode):null;t=t.getRootNode();return t instanceof ShadowRoot?t:null},b=()=>{},y=t=>t.offsetHeight,x=()=>{var{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},_=()=>"rtl"===document.documentElement.dir;var w=n=>{var t;t=()=>{const t=x();if(t){const e=n.NAME,i=t.fn[e];t.fn[e]=n.jQueryInterface,t.fn[e].Constructor=n,t.fn[e].noConflict=()=>(t.fn[e]=i,n.jQueryInterface)}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()};const k=t=>{"function"==typeof t&&t()},T=new Map;var S=function(t,e,i){T.has(t)||T.set(t,new Map);const n=T.get(t);!n.has(e)&&0!==n.size||n.set(e,i)},E=function(t,e){return T.has(t)&&T.get(t).get(e)||null},C=function(t,e){if(T.has(t)){const i=T.get(t);i.delete(e),0===i.size&&T.delete(t)}};const M=/[^.]*(?=\..*)\.|.*/,A=/\..*/,D=/::\d+$/,L={};let O=1;const P={mouseenter:"mouseover",mouseleave:"mouseout"},N=/^(mouseenter|mouseleave)/i,I=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function R(t,e){return e&&`${e}::${O++}`||t.uidEvent||O++}function j(t){var e=R(t);return t.uidEvent=e,L[e]=L[e]||{},L[e]}function H(i,n,r=null){var s=Object.keys(i);for(let t=0,e=s.length;t<e;t++){var o=i[s[t]];if(o.originalHandler===n&&o.delegationSelector===r)return o}return null}function F(t,e,i){var n="string"==typeof e,e=n?i:e;let r=B(t);return I.has(r)||(r=t),[n,e,r]}function $(t,e,i,n,r){if("string"==typeof e&&t){i||(i=n,n=null),N.test(e)&&(a=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)},n?n=a(n):i=a(i));var[s,o,a]=F(e,i,n);const f=j(t),p=f[a]||(f[a]={}),g=H(p,o,s?i:null);if(g)g.oneOff=g.oneOff&&r;else{var l,c,h,u,d,e=R(o,e.replace(M,""));const m=s?(h=t,u=i,d=n,function i(n){var r=h.querySelectorAll(u);for(let{target:e}=n;e&&e!==this;e=e.parentNode)for(let t=r.length;t--;)if(r[t]===e)return n.delegateTarget=e,i.oneOff&&W.off(h,n.type,u,d),d.apply(e,[n]);return null}):(l=t,c=i,function t(e){return e.delegateTarget=l,t.oneOff&&W.off(l,e.type,c),c.apply(l,[e])});m.delegationSelector=s?i:null,m.originalHandler=o,m.oneOff=r,m.uidEvent=e,p[e]=m,t.addEventListener(a,m,s)}}}function z(t,e,i,n,r){n=H(e[i],n,r);n&&(t.removeEventListener(i,n,Boolean(r)),delete e[i][n.uidEvent])}function B(t){return t=t.replace(A,""),P[t]||t}const W={on(t,e,i,n){$(t,e,i,n,!1)},one(t,e,i,n){$(t,e,i,n,!0)},off(i,n,t,e){if("string"==typeof n&&i){const[r,s,o]=F(n,t,e),a=o!==n,l=j(i);e=n.startsWith(".");if(void 0!==s)return l&&l[o]?void z(i,l,o,s,r?t:null):void 0;e&&Object.keys(l).forEach(t=>{!function(e,i,n,r){const s=i[n]||{};Object.keys(s).forEach(t=>{t.includes(r)&&(t=s[t],z(e,i,n,t.originalHandler,t.delegationSelector))})}(i,l,t,n.slice(1))});const c=l[o]||{};Object.keys(c).forEach(t=>{var e=t.replace(D,"");a&&!n.includes(e)||(t=c[t],z(i,l,o,t.originalHandler,t.delegationSelector))})}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=x();var r=B(e),s=e!==r,o=I.has(r);let a,l=!0,c=!0,h=!1,u=null;return s&&n&&(a=n.Event(e,i),n(t).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),h=a.isDefaultPrevented()),o?(u=document.createEvent("HTMLEvents"),u.initEvent(r,l,!0)):u=new CustomEvent(e,{bubbles:l,cancelable:!0}),void 0!==i&&Object.keys(i).forEach(t=>{Object.defineProperty(u,t,{get(){return i[t]}})}),h&&u.preventDefault(),c&&t.dispatchEvent(u),u.defaultPrevented&&void 0!==a&&a.preventDefault(),u}};class V{constructor(t){(t=d(t))&&(this._element=t,S(this._element,this.constructor.DATA_KEY,this))}dispose(){C(this._element,this.constructor.DATA_KEY),W.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,e,i=!0){i?(i=s(e),W.one(e,"transitionend",()=>k(t)),f(e,i)):k(t)}static getInstance(t){return E(t,this.DATA_KEY)}static get VERSION(){return"5.0.1"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const q="bs.alert";q;class U extends V{static get NAME(){return"alert"}close(t){var e=t?this._getRootElement(t):this._element,t=this._triggerCloseEvent(e);null===t||t.defaultPrevented||this._removeElement(e)}_getRootElement(t){return r(t)||t.closest(".alert")}_triggerCloseEvent(t){return W.trigger(t,"close.bs.alert")}_removeElement(t){t.classList.remove("show");var e=t.classList.contains("fade");this._queueCallback(()=>this._destroyElement(t),t,e)}_destroyElement(t){t.parentNode&&t.parentNode.removeChild(t),W.trigger(t,"closed.bs.alert")}static jQueryInterface(e){return this.each(function(){let t=E(this,q);t=t||new U(this),"close"===e&&t[e](this)})}static handleDismiss(e){return function(t){t&&t.preventDefault(),e.close(this)}}}W.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',U.handleDismiss(new U)),w(U);const Y="bs.button";Y;const X='[data-bs-toggle="button"]';class K extends V{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){let t=E(this,Y);t=t||new K(this),"toggle"===e&&t[e]()})}}function Q(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function G(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}W.on(document,"click.bs.button.data-api",X,t=>{t.preventDefault();t=t.target.closest(X);let e=E(t,Y);e=e||new K(t),e.toggle()}),w(K);const J={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${G(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${G(e)}`)},getDataAttributes(i){if(!i)return{};const n={};return Object.keys(i.dataset).filter(t=>t.startsWith("bs")).forEach(t=>{let e=t.replace(/^bs/,"");e=e.charAt(0).toLowerCase()+e.slice(1,e.length),n[e]=Q(i.dataset[t])}),n},getDataAttribute(t,e){return Q(t.getAttribute(`data-bs-${G(e)}`))},offset(t){t=t.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},position(t){return{top:t.offsetTop,left:t.offsetLeft}}},Z="carousel",tt="bs.carousel";var et=`.${tt}`;const it={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},nt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},rt="next",st="prev",ot="left",at="right",lt=`slid${et}`;const ct="active",ht=".active.carousel-item";class ut extends V{constructor(t,e){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=u.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return it}static get NAME(){return Z}next(){this._isSliding||this._slide(rt)}nextWhenVisible(){!document.hidden&&g(this._element)&&this.next()}prev(){this._isSliding||this._slide(st)}pause(t){t||(this._isPaused=!0),u.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(c(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=u.findOne(ht,this._element);var e=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)W.one(this._element,lt,()=>this.to(t));else{if(e===t)return this.pause(),void this.cycle();e=e<t?rt:st;this._slide(e,this._items[t])}}_getConfig(t){return t={...it,...t},p(Z,t,nt),t}_handleSwipe(){var t=Math.abs(this.touchDeltaX);t<=40||(t=t/this.touchDeltaX,this.touchDeltaX=0,t&&this._slide(0<t?at:ot))}_addEventListeners(){this._config.keyboard&&W.on(this._element,"keydown.bs.carousel",t=>this._keydown(t)),"hover"===this._config.pause&&(W.on(this._element,"mouseenter.bs.carousel",t=>this.pause(t)),W.on(this._element,"mouseleave.bs.carousel",t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const e=t=>{!this._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType?this._pointerEvent||(this.touchStartX=t.touches[0].clientX):this.touchStartX=t.clientX},i=t=>{this.touchDeltaX=t.touches&&1<t.touches.length?0:t.touches[0].clientX-this.touchStartX},n=t=>{!this._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType||(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(t=>this.cycle(t),500+this._config.interval))};u.find(".carousel-item img",this._element).forEach(t=>{W.on(t,"dragstart.bs.carousel",t=>t.preventDefault())}),this._pointerEvent?(W.on(this._element,"pointerdown.bs.carousel",t=>e(t)),W.on(this._element,"pointerup.bs.carousel",t=>n(t)),this._element.classList.add("pointer-event")):(W.on(this._element,"touchstart.bs.carousel",t=>e(t)),W.on(this._element,"touchmove.bs.carousel",t=>i(t)),W.on(this._element,"touchend.bs.carousel",t=>n(t)))}_keydown(t){/input|textarea/i.test(t.target.tagName)||("ArrowLeft"===t.key?(t.preventDefault(),this._slide(at)):"ArrowRight"===t.key&&(t.preventDefault(),this._slide(ot)))}_getItemIndex(t){return this._items=t&&t.parentNode?u.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){var i=t===rt,n=t===st,r=this._getItemIndex(e),t=this._items.length-1;if((n&&0===r||i&&r===t)&&!this._config.wrap)return e;n=(r+(n?-1:1))%this._items.length;return-1==n?this._items[this._items.length-1]:this._items[n]}_triggerSlideEvent(t,e){var i=this._getItemIndex(t),n=this._getItemIndex(u.findOne(ht,this._element));return W.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:n,to:i})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const t=u.findOne(".active",this._indicatorsElement);t.classList.remove(ct),t.removeAttribute("aria-current");const i=u.find("[data-bs-target]",this._indicatorsElement);for(let t=0;t<i.length;t++)if(Number.parseInt(i[t].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(e)){i[t].classList.add(ct),i[t].setAttribute("aria-current","true");break}}}_updateInterval(){const t=this._activeElement||u.findOne(ht,this._element);var e;t&&((e=Number.parseInt(t.getAttribute("data-bs-interval"),10))?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval)}_slide(t,e){var i=this._directionToOrder(t);const n=u.findOne(ht,this._element),r=this._getItemIndex(n),s=e||this._getItemByOrder(i,n),o=this._getItemIndex(s);t=Boolean(this._interval),e=i===rt;const a=e?"carousel-item-start":"carousel-item-end",l=e?"carousel-item-next":"carousel-item-prev",c=this._orderToDirection(i);if(s&&s.classList.contains(ct))this._isSliding=!1;else{i=this._triggerSlideEvent(s,c);if(!i.defaultPrevented&&n&&s){this._isSliding=!0,t&&this.pause(),this._setActiveIndicatorElement(s),this._activeElement=s;const h=()=>{W.trigger(this._element,lt,{relatedTarget:s,direction:c,from:r,to:o})};this._element.classList.contains("slide")?(s.classList.add(l),y(s),n.classList.add(a),s.classList.add(a),this._queueCallback(()=>{s.classList.remove(a,l),s.classList.add(ct),n.classList.remove(ct,l,a),this._isSliding=!1,setTimeout(h,0)},n,!0)):(n.classList.remove(ct),s.classList.add(ct),this._isSliding=!1,h()),t&&this.cycle()}}}_directionToOrder(t){return[at,ot].includes(t)?_()?t===ot?st:rt:t===ot?rt:st:t}_orderToDirection(t){return[rt,st].includes(t)?_()?t===st?ot:at:t===st?at:ot:t}static carouselInterface(t,e){let i=E(t,tt),n={...it,...J.getDataAttributes(t)};"object"==typeof e&&(n={...n,...e});var r="string"==typeof e?e:n.slide;if(i=i||new ut(t,n),"number"==typeof e)i.to(e);else if("string"==typeof r){if(void 0===i[r])throw new TypeError(`No method named "${r}"`);i[r]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}static jQueryInterface(t){return this.each(function(){ut.carouselInterface(this,t)})}static dataApiClickHandler(t){const e=r(this);if(e&&e.classList.contains("carousel")){const n={...J.getDataAttributes(e),...J.getDataAttributes(this)};var i=this.getAttribute("data-bs-slide-to");i&&(n.interval=!1),ut.carouselInterface(e,n),i&&E(e,tt).to(i),t.preventDefault()}}}W.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",ut.dataApiClickHandler),W.on(window,"load.bs.carousel.data-api",()=>{var i=u.find('[data-bs-ride="carousel"]');for(let t=0,e=i.length;t<e;t++)ut.carouselInterface(i[t],E(i[t],tt))}),w(ut);const dt="collapse",ft="bs.collapse";t=`.${ft}`;const pt={toggle:!0,parent:""},gt={toggle:"boolean",parent:"(string|element)"};const mt="show",vt="collapse",bt="collapsing",yt="collapsed",xt='[data-bs-toggle="collapse"]';class _t extends V{constructor(t,e){super(t),this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=u.find(`${xt}[href="#${this._element.id}"],`+`${xt}[data-bs-target="#${this._element.id}"]`);var i=u.find(xt);for(let t=0,e=i.length;t<e;t++){var n=i[t],r=l(n),s=u.find(r).filter(t=>t===this._element);null!==r&&s.length&&(this._selector=r,this._triggerArray.push(n))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get Default(){return pt}static get NAME(){return dt}toggle(){this._element.classList.contains(mt)?this.hide():this.show()}show(){if(!this._isTransitioning&&!this._element.classList.contains(mt)){let t,e;this._parent&&(t=u.find(".show, .collapsing",this._parent).filter(t=>"string"==typeof this._config.parent?t.getAttribute("data-bs-parent")===this._config.parent:t.classList.contains(vt)),0===t.length&&(t=null));const n=u.findOne(this._selector);if(t){var i=t.find(t=>n!==t);if(e=i?E(i,ft):null,e&&e._isTransitioning)return}if(!W.trigger(this._element,"show.bs.collapse").defaultPrevented){t&&t.forEach(t=>{n!==t&&_t.collapseInterface(t,"hide"),e||S(t,ft,null)});const r=this._getDimension();this._element.classList.remove(vt),this._element.classList.add(bt),this._element.style[r]=0,this._triggerArray.length&&this._triggerArray.forEach(t=>{t.classList.remove(yt),t.setAttribute("aria-expanded",!0)}),this.setTransitioning(!0);i=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(()=>{this._element.classList.remove(bt),this._element.classList.add(vt,mt),this._element.style[r]="",this.setTransitioning(!1),W.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[r]=`${this._element[i]}px`}}}hide(){if(!this._isTransitioning&&this._element.classList.contains(mt)&&!W.trigger(this._element,"hide.bs.collapse").defaultPrevented){var t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,y(this._element),this._element.classList.add(bt),this._element.classList.remove(vt,mt);var e=this._triggerArray.length;if(0<e)for(let t=0;t<e;t++){const i=this._triggerArray[t],n=r(i);n&&!n.classList.contains(mt)&&(i.classList.add(yt),i.setAttribute("aria-expanded",!1))}this.setTransitioning(!0);this._element.style[t]="",this._queueCallback(()=>{this.setTransitioning(!1),this._element.classList.remove(bt),this._element.classList.add(vt),W.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}}setTransitioning(t){this._isTransitioning=t}_getConfig(t){return(t={...pt,...t}).toggle=Boolean(t.toggle),p(dt,t,gt),t}_getDimension(){return this._element.classList.contains("width")?"width":"height"}_getParent(){var{parent:t}=this._config,t=d(t),e=`${xt}[data-bs-parent="${t}"]`;return u.find(e,t).forEach(t=>{var e=r(t);this._addAriaAndCollapsedClass(e,[t])}),t}_addAriaAndCollapsedClass(t,e){if(t&&e.length){const i=t.classList.contains(mt);e.forEach(t=>{i?t.classList.remove(yt):t.classList.add(yt),t.setAttribute("aria-expanded",i)})}}static collapseInterface(t,e){let i=E(t,ft);const n={...pt,...J.getDataAttributes(t),..."object"==typeof e&&e?e:{}};if(!i&&n.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(n.toggle=!1),i=i||new _t(t,n),"string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}static jQueryInterface(t){return this.each(function(){_t.collapseInterface(this,t)})}}W.on(document,"click.bs.collapse.data-api",xt,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const n=J.getDataAttributes(this);t=l(this);const e=u.find(t);e.forEach(t=>{const e=E(t,ft);let i;i=e?(null===e._parent&&"string"==typeof n.parent&&(e._config.parent=n.parent,e._parent=e._getParent()),"toggle"):n,_t.collapseInterface(t,i)})}),w(_t);const wt="dropdown",kt="bs.dropdown";var Tt=`.${kt}`,et=".data-api";const St="Escape",Et="ArrowUp",Ct="ArrowDown",Mt=new RegExp(`${Et}|${Ct}|${St}`);var At=`click${Tt}${et}`,t=`keydown${Tt}${et}`;const Dt="show",Lt='[data-bs-toggle="dropdown"]',Ot=".dropdown-menu",Pt=_()?"top-end":"top-start",Nt=_()?"top-start":"top-end",It=_()?"bottom-end":"bottom-start",Rt=_()?"bottom-start":"bottom-end",jt=_()?"left-start":"right-start",Ht=_()?"right-start":"left-start",Ft={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},$t={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class zt extends V{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get Default(){return Ft}static get DefaultType(){return $t}static get NAME(){return wt}toggle(){m(this._element)||(this._element.classList.contains(Dt)?this.hide():this.show())}show(){if(!m(this._element)&&!this._menu.classList.contains(Dt)){const i=zt.getParentFromElement(this._element);var t={relatedTarget:this._element};if(!W.trigger(this._element,"show.bs.dropdown",t).defaultPrevented){if(this._inNavbar)J.setDataAttribute(this._menu,"popper","none");else{if(void 0===o)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=i:h(this._config.reference)?t=d(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const n=this._getPopperConfig();var e=n.modifiers.find(t=>"applyStyles"===t.name&&!1===t.enabled);this._popper=o.createPopper(t,this._menu,n),e&&J.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav")&&[].concat(...document.body.children).forEach(t=>W.on(t,"mouseover",b)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle(Dt),this._element.classList.toggle(Dt),W.trigger(this._element,"shown.bs.dropdown",t)}}}hide(){var t;!m(this._element)&&this._menu.classList.contains(Dt)&&(t={relatedTarget:this._element},this._completeHide(t))}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_addEventListeners(){W.on(this._element,"click.bs.dropdown",t=>{t.preventDefault(),this.toggle()})}_completeHide(t){W.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>W.off(t,"mouseover",b)),this._popper&&this._popper.destroy(),this._menu.classList.remove(Dt),this._element.classList.remove(Dt),this._element.setAttribute("aria-expanded","false"),J.removeDataAttribute(this._menu,"popper"),W.trigger(this._element,"hidden.bs.dropdown",t))}_getConfig(t){if(t={...this.constructor.Default,...J.getDataAttributes(this._element),...t},p(wt,t,this.constructor.DefaultType),"object"==typeof t.reference&&!h(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${wt.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_getMenuElement(){return u.next(this._element,Ot)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return jt;if(t.classList.contains("dropstart"))return Ht;var e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Nt:Pt:e?Rt:It}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem(e){const i=u.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(g);if(i.length){let t=i.indexOf(e.target);e.key===Et&&0<t&&t--,e.key===Ct&&t<i.length-1&&t++,t=-1===t?0:t,i[t].focus()}}static dropdownInterface(t,e){let i=E(t,kt);var n="object"==typeof e?e:null;if(i=i||new zt(t,n),"string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}static jQueryInterface(t){return this.each(function(){zt.dropdownInterface(this,t)})}static clearMenus(i){if(!i||2!==i.button&&("keyup"!==i.type||"Tab"===i.key)){var n=u.find(Lt);for(let t=0,e=n.length;t<e;t++){const s=E(n[t],kt);if(s&&!1!==s._config.autoClose&&s._element.classList.contains(Dt)){const o={relatedTarget:s._element};if(i){const a=i.composedPath();var r=a.includes(s._menu);if(a.includes(s._element)||"inside"===s._config.autoClose&&!r||"outside"===s._config.autoClose&&r)continue;if(s._menu.contains(i.target)&&("keyup"===i.type&&"Tab"===i.key||/input|select|option|textarea|form/i.test(i.target.tagName)))continue;"click"===i.type&&(o.clickEvent=i)}s._completeHide(o)}}}}static getParentFromElement(t){return r(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?!("Space"===t.key||t.key!==St&&(t.key!==Ct&&t.key!==Et||t.target.closest(Ot))):Mt.test(t.key)){var e=this.classList.contains(Dt);if((e||t.key!==St)&&(t.preventDefault(),t.stopPropagation(),!m(this))){var i=()=>this.matches(Lt)?this:u.prev(this,Lt)[0];if(t.key===St)return i().focus(),void zt.clearMenus();e||t.key!==Et&&t.key!==Ct?e&&"Space"!==t.key?zt.getInstance(i())._selectMenuItem(t):zt.clearMenus():i().click()}}}}W.on(document,t,Lt,zt.dataApiKeydownHandler),W.on(document,t,Ot,zt.dataApiKeydownHandler),W.on(document,At,zt.clearMenus),W.on(document,"keyup.bs.dropdown.data-api",zt.clearMenus),W.on(document,At,Lt,function(t){t.preventDefault(),zt.dropdownInterface(this)}),w(zt);const Bt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Wt=".sticky-top",Vt=()=>{var t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)},qt=(e=Vt())=>{Ut(),Yt("body","paddingRight",t=>t+e),Yt(Bt,"paddingRight",t=>t+e),Yt(Wt,"marginRight",t=>t-e)},Ut=()=>{var t=document.body.style.overflow;t&&J.setDataAttribute(document.body,"overflow",t),document.body.style.overflow="hidden"},Yt=(t,n,r)=>{const s=Vt();u.find(t).forEach(t=>{var e,i;t!==document.body&&window.innerWidth>t.clientWidth+s||(e=t.style[n],i=window.getComputedStyle(t)[n],J.setDataAttribute(t,n,e),t.style[n]=`${r(Number.parseFloat(i))}px`)})},Xt=()=>{Kt("body","overflow"),Kt("body","paddingRight"),Kt(Bt,"paddingRight"),Kt(Wt,"marginRight")},Kt=(t,i)=>{u.find(t).forEach(t=>{var e=J.getDataAttribute(t,i);void 0===e?t.style.removeProperty(i):(J.removeDataAttribute(t,i),t.style[i]=e)})},Qt={isVisible:!0,isAnimated:!1,rootElement:document.body,clickCallback:null},Gt={isVisible:"boolean",isAnimated:"boolean",rootElement:"element",clickCallback:"(function|null)"},Jt="backdrop",Zt=`mousedown.bs.${Jt}`;class te{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&y(this._getElement()),this._getElement().classList.add("show"),this._emulateAnimation(()=>{k(t)})):k(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),k(t)})):k(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className="modal-backdrop",this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_getConfig(t){return(t={...Qt,..."object"==typeof t?t:{}}).rootElement=t.rootElement||document.body,p(Jt,t,Gt),t}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),W.on(this._getElement(),Zt,()=>{k(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(W.off(this._element,Zt),this._getElement().parentNode.removeChild(this._element),this._isAppended=!1)}_emulateAnimation(t){var e;this._config.isAnimated?(e=s(this._getElement()),W.one(this._getElement(),"transitionend",()=>k(t)),f(this._getElement(),e)):k(t)}}const ee=".bs.modal";const ie={backdrop:!0,keyboard:!0,focus:!0},ne={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},re=(ee,ee,`hidden${ee}`),se=`show${ee}`,oe=(ee,`focusin${ee}`),ae=`resize${ee}`,le=`click.dismiss${ee}`,ce=`keydown.dismiss${ee}`,he=(ee,`mousedown.dismiss${ee}`);ee;const ue="modal-open",de="modal-static";class fe extends V{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=u.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1}static get Default(){return ie}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){var e;this._isShown||this._isTransitioning||(this._isAnimated()&&(this._isTransitioning=!0),e=W.trigger(this._element,se,{relatedTarget:t}),this._isShown||e.defaultPrevented||(this._isShown=!0,qt(),document.body.classList.add(ue),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),W.on(this._element,le,'[data-bs-dismiss="modal"]',t=>this.hide(t)),W.on(this._dialog,he,()=>{W.one(this._element,"mouseup.dismiss.bs.modal",t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t))))}hide(t){t&&t.preventDefault(),this._isShown&&!this._isTransitioning&&(W.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,(t=this._isAnimated())&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),W.off(document,oe),this._element.classList.remove("show"),W.off(this._element,le),W.off(this._dialog,he),this._queueCallback(()=>this._hideModal(),this._element,t)))}dispose(){[window,this._dialog].forEach(t=>W.off(t,ee)),this._backdrop.dispose(),super.dispose(),W.off(document,oe)}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new te({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_getConfig(t){return t={...ie,...J.getDataAttributes(this._element),...t},p("modal",t,ne),t}_showElement(t){var e=this._isAnimated();const i=u.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,i&&(i.scrollTop=0),e&&y(this._element),this._element.classList.add("show"),this._config.focus&&this._enforceFocus();this._queueCallback(()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,W.trigger(this._element,"shown.bs.modal",{relatedTarget:t})},this._dialog,e)}_enforceFocus(){W.off(document,oe),W.on(document,oe,t=>{document===t.target||this._element===t.target||this._element.contains(t.target)||this._element.focus()})}_setEscapeEvent(){this._isShown?W.on(this._element,ce,t=>{this._config.keyboard&&"Escape"===t.key?(t.preventDefault(),this.hide()):this._config.keyboard||"Escape"!==t.key||this._triggerBackdropTransition()}):W.off(this._element,ce)}_setResizeEvent(){this._isShown?W.on(window,ae,()=>this._adjustDialog()):W.off(window,ae)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(ue),this._resetAdjustments(),Xt(),W.trigger(this._element,re)})}_showBackdrop(t){W.on(this._element,le,t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())}),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(!W.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented){const t=this._element.scrollHeight>document.documentElement.clientHeight;t||(this._element.style.overflowY="hidden"),this._element.classList.add(de);const e=s(this._dialog);W.off(this._element,"transitionend"),W.one(this._element,"transitionend",()=>{this._element.classList.remove(de),t||(W.one(this._element,"transitionend",()=>{this._element.style.overflowY=""}),f(this._element,e))}),f(this._element,e),this._element.focus()}}_adjustDialog(){var t=this._element.scrollHeight>document.documentElement.clientHeight,e=Vt(),i=0<e;(!i&&t&&!_()||i&&!t&&_())&&(this._element.style.paddingLeft=`${e}px`),(i&&!t&&!_()||!i&&t&&_())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,i){return this.each(function(){const t=fe.getInstance(this)||new fe(this,"object"==typeof e?e:{});if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](i)}})}}W.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(t){const e=r(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),W.one(e,se,t=>{t.defaultPrevented||W.one(e,re,()=>{g(this)&&this.focus()})});const i=fe.getInstance(e)||new fe(e);i.toggle(this)}),w(fe);const pe="offcanvas",ge="bs.offcanvas";t=`.${ge}`;const me={backdrop:!0,keyboard:!0,scroll:!1},ve={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},be=".offcanvas.show",ye=`hidden${t}`,xe=`focusin${t}`;class _e extends V{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get NAME(){return pe}static get Default(){return me}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||W.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(qt(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add("show"),this._queueCallback(()=>{W.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(W.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(W.off(document,xe),this._element.blur(),this._isShown=!1,this._element.classList.remove("show"),this._backdrop.hide(),this._queueCallback(()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||Xt(),W.trigger(this._element,ye)},this._element,!0)))}dispose(){this._backdrop.dispose(),super.dispose(),W.off(document,xe)}_getConfig(t){return t={...me,...J.getDataAttributes(this._element),..."object"==typeof t?t:{}},p(pe,t,ve),t}_initializeBackDrop(){return new te({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_enforceFocusOnElement(e){W.off(document,xe),W.on(document,xe,t=>{document===t.target||e===t.target||e.contains(t.target)||e.focus()}),e.focus()}_addEventListeners(){W.on(this._element,"click.dismiss.bs.offcanvas",'[data-bs-dismiss="offcanvas"]',()=>this.hide()),W.on(this._element,"keydown.dismiss.bs.offcanvas",t=>{this._config.keyboard&&"Escape"===t.key&&this.hide()})}static jQueryInterface(e){return this.each(function(){const t=E(this,ge)||new _e(this,"object"==typeof e?e:{});if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}W.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(t){var e=r(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),!m(this)){W.one(e,ye,()=>{g(this)&&this.focus()});t=u.findOne(be);t&&t!==e&&_e.getInstance(t).hide();const i=E(e,ge)||new _e(e);i.toggle(this)}}),W.on(window,"load.bs.offcanvas.data-api",()=>{u.find(be).forEach(t=>(E(t,ge)||new _e(t)).show())}),w(_e);const we=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]);const ke=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Te=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;At={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function Se(t,i,e){if(!t.length)return t;if(e&&"function"==typeof e)return e(t);const n=new window.DOMParser,r=n.parseFromString(t,"text/html"),s=Object.keys(i);var o=[].concat(...r.body.querySelectorAll("*"));for(let t=0,e=o.length;t<e;t++){const l=o[t];var a=l.nodeName.toLowerCase();if(s.includes(a)){const c=[].concat(...l.attributes),h=[].concat(i["*"]||[],i[a]||[]);c.forEach(t=>{((t,e)=>{var i=t.nodeName.toLowerCase();if(e.includes(i))return!we.has(i)||Boolean(ke.test(t.nodeValue)||Te.test(t.nodeValue));const n=e.filter(t=>t instanceof RegExp);for(let t=0,e=n.length;t<e;t++)if(n[t].test(i))return!0;return!1})(t,h)||l.removeAttribute(t.nodeName)})}else l.parentNode.removeChild(l)}return r.body.innerHTML}const Ee="tooltip",Ce="bs.tooltip";t=`.${Ce}`;const Me="bs-tooltip",Ae=new RegExp(`(^|\\s)${Me}\\S+`,"g"),De=new Set(["sanitize","allowList","sanitizeFn"]),Le={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Oe={AUTO:"auto",TOP:"top",RIGHT:_()?"left":"right",BOTTOM:"bottom",LEFT:_()?"right":"left"},Pe={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:At,popperConfig:null},Ne={HIDE:`hide${t}`,HIDDEN:`hidden${t}`,SHOW:`show${t}`,SHOWN:`shown${t}`,INSERTED:`inserted${t}`,CLICK:`click${t}`,FOCUSIN:`focusin${t}`,FOCUSOUT:`focusout${t}`,MOUSEENTER:`mouseenter${t}`,MOUSELEAVE:`mouseleave${t}`},Ie="fade",Re="show",je="show",He="hover",Fe="focus";class $e extends V{constructor(t,e){if(void 0===o)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return Pe}static get NAME(){return Ee}static get Event(){return Ne}static get DefaultType(){return Le}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else this.getTipElement().classList.contains(Re)?this._leave(null,this):this._enter(null,this)}dispose(){clearTimeout(this._timeout),W.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this._popper&&this._popper.destroy(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this._isEnabled){var t=W.trigger(this._element,this.constructor.Event.SHOW);const i=v(this._element);var e=(null===i?this._element.ownerDocument.documentElement:i).contains(this._element);if(!t.defaultPrevented&&e){const n=this.getTipElement();e=a(this.constructor.NAME);n.setAttribute("id",e),this._element.setAttribute("aria-describedby",e),this.setContent(),this._config.animation&&n.classList.add(Ie);e="function"==typeof this._config.placement?this._config.placement.call(this,n,this._element):this._config.placement,e=this._getAttachment(e);this._addAttachmentClass(e);const{container:r}=this._config;S(n,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(r.appendChild(n),W.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=o.createPopper(this._element,n,this._getPopperConfig(e)),n.classList.add(Re);const s="function"==typeof this._config.customClass?this._config.customClass():this._config.customClass;s&&n.classList.add(...s.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>{W.on(t,"mouseover",b)});e=this.tip.classList.contains(Ie);this._queueCallback(()=>{var t=this._hoverState;this._hoverState=null,W.trigger(this._element,this.constructor.Event.SHOWN),"out"===t&&this._leave(null,this)},this.tip,e)}}}hide(){if(this._popper){const e=this.getTipElement();var t;W.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented||(e.classList.remove(Re),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>W.off(t,"mouseover",b)),this._activeTrigger.click=!1,this._activeTrigger[Fe]=!1,this._activeTrigger[He]=!1,t=this.tip.classList.contains(Ie),this._queueCallback(()=>{this._isWithActiveTrigger()||(this._hoverState!==je&&e.parentNode&&e.parentNode.removeChild(e),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),W.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))},this.tip,t),this._hoverState="")}}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");return t.innerHTML=this._config.template,this.tip=t.children[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(u.findOne(".tooltip-inner",t),this.getTitle()),t.classList.remove(Ie,Re)}setElementContent(t,e){if(null!==t)return h(e)?(e=d(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=Se(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){let t=this._element.getAttribute("data-bs-original-title");return t=t||("function"==typeof this._config.title?this._config.title.call(this._element):this._config.title),t}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){var i=this.constructor.DATA_KEY;return(e=e||E(t.delegateTarget,i))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),S(t.delegateTarget,i,e)),e}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(t){t={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`${Me}-${this.updateAttachment(t)}`)}_getAttachment(t){return Oe[t.toUpperCase()]}_setListeners(){const t=this._config.trigger.split(" ");t.forEach(t=>{var e;"click"===t?W.on(this._element,this.constructor.Event.CLICK,this._config.selector,t=>this.toggle(t)):"manual"!==t&&(e=t===He?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,t=t===He?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT,W.on(this._element,e,this._config.selector,t=>this._enter(t)),W.on(this._element,t,this._config.selector,t=>this._leave(t)))}),this._hideModalHandler=()=>{this._element&&this.hide()},W.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){var t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");!t&&"string"==e||(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?Fe:He]=!0),e.getTipElement().classList.contains(Re)||e._hoverState===je?e._hoverState=je:(clearTimeout(e._timeout),e._hoverState=je,e._config.delay&&e._config.delay.show?e._timeout=setTimeout(()=>{e._hoverState===je&&e.show()},e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?Fe:He]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e._config.delay&&e._config.delay.hide?e._timeout=setTimeout(()=>{"out"===e._hoverState&&e.hide()},e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=J.getDataAttributes(this._element);return Object.keys(e).forEach(t=>{De.has(t)&&delete e[t]}),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:d(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),p(Ee,t,this.constructor.DefaultType),t.sanitize&&(t.template=Se(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this._config)for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const e=this.getTipElement(),t=e.getAttribute("class").match(Ae);null!==t&&0<t.length&&t.map(t=>t.trim()).forEach(t=>e.classList.remove(t))}_handlePopperPlacementChange(t){var{state:t}=t;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}static jQueryInterface(i){return this.each(function(){let t=E(this,Ce);var e="object"==typeof i&&i;if((t||!/dispose|hide/.test(i))&&(t=t||new $e(this,e),"string"==typeof i)){if(void 0===t[i])throw new TypeError(`No method named "${i}"`);t[i]()}})}}w($e);const ze="bs.popover";t=`.${ze}`;const Be="bs-popover",We=new RegExp(`(^|\\s)${Be}\\S+`,"g"),Ve={...$e.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},qe={...$e.DefaultType,content:"(string|element|function)"},Ue={HIDE:`hide${t}`,HIDDEN:`hidden${t}`,SHOW:`show${t}`,SHOWN:`shown${t}`,INSERTED:`inserted${t}`,CLICK:`click${t}`,FOCUSIN:`focusin${t}`,FOCUSOUT:`focusout${t}`,MOUSEENTER:`mouseenter${t}`,MOUSELEAVE:`mouseleave${t}`};class Ye extends $e{static get Default(){return Ve}static get NAME(){return"popover"}static get Event(){return Ue}static get DefaultType(){return qe}isWithContent(){return this.getTitle()||this._getContent()}setContent(){const t=this.getTipElement();this.setElementContent(u.findOne(".popover-header",t),this.getTitle());let e=this._getContent();"function"==typeof e&&(e=e.call(this._element)),this.setElementContent(u.findOne(".popover-body",t),e),t.classList.remove("fade","show")}_addAttachmentClass(t){this.getTipElement().classList.add(`${Be}-${this.updateAttachment(t)}`)}_getContent(){return this._element.getAttribute("data-bs-content")||this._config.content}_cleanTipClass(){const e=this.getTipElement(),t=e.getAttribute("class").match(We);null!==t&&0<t.length&&t.map(t=>t.trim()).forEach(t=>e.classList.remove(t))}static jQueryInterface(i){return this.each(function(){let t=E(this,ze);var e="object"==typeof i?i:null;if((t||!/dispose|hide/.test(i))&&(t||(t=new Ye(this,e),S(this,ze,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError(`No method named "${i}"`);t[i]()}})}}w(Ye);const Xe="scrollspy";const Ke=".bs.scrollspy";const Qe={offset:10,method:"auto",target:""},Ge={offset:"number",method:"string",target:"(string|element)"};Ke,Ke;Ke;const Je="dropdown-item",Ze="active",ti=".nav-link",ei=".list-group-item",ii="position";class ni extends V{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._selector=`${this._config.target} ${ti}, ${this._config.target} ${ei}, ${this._config.target} .${Je}`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,W.on(this._scrollElement,"scroll.bs.scrollspy",()=>this._process()),this.refresh(),this._process()}static get Default(){return Qe}static get NAME(){return Xe}refresh(){var t=this._scrollElement===this._scrollElement.window?"offset":ii;const n="auto"===this._config.method?t:this._config.method,r=n===ii?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();const e=u.find(this._selector);e.map(t=>{var e=l(t);const i=e?u.findOne(e):null;if(i){t=i.getBoundingClientRect();if(t.width||t.height)return[J[n](i).top+r,e]}return null}).filter(t=>t).sort((t,e)=>t[0]-e[0]).forEach(t=>{this._offsets.push(t[0]),this._targets.push(t[1])})}dispose(){W.off(this._scrollElement,Ke),super.dispose()}_getConfig(e){if("string"!=typeof(e={...Qe,...J.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}}).target&&h(e.target)){let{id:t}=e.target;t||(t=a(Xe),e.target.id=t),e.target=`#${t}`}return p(Xe,e,Ge),e}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),i=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),i<=e){i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(let t=this._offsets.length;t--;)this._activeTarget!==this._targets[t]&&e>=this._offsets[t]&&(void 0===this._offsets[t+1]||e<this._offsets[t+1])&&this._activate(this._targets[t])}}_activate(e){this._activeTarget=e,this._clear();const t=this._selector.split(",").map(t=>`${t}[data-bs-target="${e}"],${t}[href="${e}"]`),i=u.findOne(t.join(","));i.classList.contains(Je)?(u.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add(Ze),i.classList.add(Ze)):(i.classList.add(Ze),u.parents(i,".nav, .list-group").forEach(t=>{u.prev(t,`${ti}, ${ei}`).forEach(t=>t.classList.add(Ze)),u.prev(t,".nav-item").forEach(t=>{u.children(t,ti).forEach(t=>t.classList.add(Ze))})})),W.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:e})}_clear(){u.find(this._selector).filter(t=>t.classList.contains(Ze)).forEach(t=>t.classList.remove(Ze))}static jQueryInterface(e){return this.each(function(){const t=ni.getInstance(this)||new ni(this,"object"==typeof e?e:{});if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}W.on(window,"load.bs.scrollspy.data-api",()=>{u.find('[data-bs-spy="scroll"]').forEach(t=>new ni(t))}),w(ni);const ri="bs.tab";t=`.${ri}`;const si="active",oi=".active",ai=":scope > li > .active";class li extends V{static get NAME(){return"tab"}show(){if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!this._element.classList.contains(si)){let t;var e=r(this._element),i=this._element.closest(".nav, .list-group");i&&(n="UL"===i.nodeName||"OL"===i.nodeName?ai:oi,t=u.find(n,i),t=t[t.length-1]);var n=t?W.trigger(t,"hide.bs.tab",{relatedTarget:this._element}):null;W.trigger(this._element,"show.bs.tab",{relatedTarget:t}).defaultPrevented||null!==n&&n.defaultPrevented||(this._activate(this._element,i),i=()=>{W.trigger(t,"hidden.bs.tab",{relatedTarget:this._element}),W.trigger(this._element,"shown.bs.tab",{relatedTarget:t})},e?this._activate(e,e.parentNode,i):i())}}_activate(t,e,i){const n=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?u.children(e,oi):u.find(ai,e))[0];var r=i&&n&&n.classList.contains("fade"),e=()=>this._transitionComplete(t,n,i);n&&r?(n.classList.remove("show"),this._queueCallback(e,t,!0)):e()}_transitionComplete(t,e,i){if(e){e.classList.remove(si);const r=u.findOne(":scope > .dropdown-menu .active",e.parentNode);r&&r.classList.remove(si),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add(si),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),y(t),t.classList.contains("fade")&&t.classList.add("show");let n=t.parentNode;n&&"LI"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains("dropdown-menu")&&((e=t.closest(".dropdown"))&&u.find(".dropdown-toggle",e).forEach(t=>t.classList.add(si)),t.setAttribute("aria-expanded",!0)),i&&i()}static jQueryInterface(e){return this.each(function(){const t=E(this,ri)||new li(this);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}W.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),!m(this)){const e=E(this,ri)||new li(this);e.show()}}),w(li);const ci="bs.toast";t=`.${ci}`;const hi="show",ui="showing",di={animation:"boolean",autohide:"boolean",delay:"number"},fi={animation:!0,autohide:!0,delay:5e3};class pi extends V{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return di}static get Default(){return fi}static get NAME(){return"toast"}show(){W.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),y(this._element),this._element.classList.add(ui),this._queueCallback(()=>{this._element.classList.remove(ui),this._element.classList.add(hi),W.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this._element.classList.contains(hi)&&(W.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.remove(hi),this._queueCallback(()=>{this._element.classList.add("hide"),W.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains(hi)&&this._element.classList.remove(hi),super.dispose()}_getConfig(t){return t={...fi,...J.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},p("toast",t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}e?this._clearTimeout():(t=t.relatedTarget,this._element===t||this._element.contains(t)||this._maybeScheduleHide())}_setListeners(){W.on(this._element,"click.dismiss.bs.toast",'[data-bs-dismiss="toast"]',()=>this.hide()),W.on(this._element,"mouseover.bs.toast",t=>this._onInteraction(t,!0)),W.on(this._element,"mouseout.bs.toast",t=>this._onInteraction(t,!1)),W.on(this._element,"focusin.bs.toast",t=>this._onInteraction(t,!0)),W.on(this._element,"focusout.bs.toast",t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(i){return this.each(function(){let t=E(this,ci);var e="object"==typeof i&&i;if(t=t||new pi(this,e),"string"==typeof i){if(void 0===t[i])throw new TypeError(`No method named "${i}"`);t[i](this)}})}}return w(pi),{Alert:U,Button:K,Carousel:ut,Collapse:_t,Dropdown:zt,Modal:fe,Offcanvas:_e,Popover:Ye,ScrollSpy:ni,Tab:li,Toast:pi,Tooltip:$e}}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Chart=e()}(this,function(){"use strict";const o="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function a(e,i,t){const n=t||(t=>Array.prototype.slice.call(t));let r=!1,s;return function(...t){s=n(t),r||(r=!0,o.call(window,()=>{r=!1,e.apply(i,s)}))}}function l(t,e){let i;return function(){return e?(clearTimeout(i),i=setTimeout(t,e)):t(),e}}const d=t=>"start"===t?"left":"end"===t?"right":"center",O=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,P=(t,e,i)=>"right"===t?i:"center"===t?(e+i)/2:e;var c=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,i,n,t){const r=i.listeners[t],s=i.duration;r.forEach(t=>t({chart:e,initial:i.initial,numSteps:s,currentStep:Math.min(n-i.start,s)}))}_refresh(){const t=this;t._request||(t._running=!0,t._request=o.call(window,()=>{t._update(),t._request=null,t._running&&t._refresh()}))}_update(o=Date.now()){const a=this;let l=0;a._charts.forEach((n,r)=>{if(n.running&&n.items.length){const s=n.items;let t=s.length-1,e=!1,i;for(;0<=t;--t)i=s[t],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(o),e=!0):(s[t]=s[s.length-1],s.pop());e&&(r.draw(),a._notify(r,n,o,"progress")),s.length||(n.running=!1,a._notify(r,n,o,"complete"),n.initial=!1),l+=s.length}}),a._lastDate=o,0===l&&(a._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 0<this._getAnims(t).items.length}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;t=this._charts.get(t);return!!(t&&t.running&&t.items.length)}stop(e){const i=this._charts.get(e);if(i&&i.items.length){const n=i.items;let t=n.length-1;for(;0<=t;--t)n[t].cancel();i.items=[],this._notify(e,i,Date.now(),"complete")}}remove(t){return this._charts.delete(t)}};const s={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},e="0123456789ABCDEF",i=t=>e[15&t],n=t=>e[(240&t)>>4]+e[15&t],r=t=>(240&t)>>4==(15&t);function t(t){var e,e=(e=t,r(e.r)&&r(e.g)&&r(e.b)&&r(e.a)?i:n);return t&&"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):"")}function h(t){return t+.5|0}const u=(t,e,i)=>Math.max(Math.min(t,i),e);function f(t){return u(h(2.55*t),0,255)}function p(t){return u(h(255*t),0,255)}function g(t){return u(h(t/2.55)/100,0,1)}function m(t){return u(h(100*t),0,100)}const v=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const b=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function y(i,t,n){const r=t*Math.min(n,1-n);i=(t,e=(t+i/30)%12)=>n-r*Math.max(Math.min(e-3,9-e,1),-1);return[i(0),i(8),i(4)]}function x(i,n,r){i=(t,e=(t+i/60)%6)=>r-r*n*Math.max(Math.min(e,4-e,1),0);return[i(5),i(3),i(1)]}function _(t,e,i){const n=y(t,1,.5);let r;for(1<e+i&&(r=1/(e+i),e*=r,i*=r),r=0;r<3;r++)n[r]*=1-e-i,n[r]+=e;return n}function w(t){var e=t.r/255,i=t.g/255,n=t.b/255,r=Math.max(e,i,n),s=Math.min(e,i,n),t=(r+s)/2;let o,a,l;return r!==s&&(l=r-s,a=.5<t?l/(2-r-s):l/(r+s),o=r===e?(i-n)/l+(i<n?6:0):r===i?(n-e)/l+2:(e-i)/l+4,o=60*o+.5),[0|o,a||0,t]}function k(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(p)}function T(t,e,i){return k(y,t,e,i)}function S(t){return(t%360+360)%360}function E(t){var e=b.exec(t);let i=255,n;if(e){e[5]!==n&&(i=(e[6]?f:p)(+e[5]));var r=S(+e[2]),s=+e[3]/100,t=+e[4]/100;return n="hwb"===e[1]?k(_,r,s,t):"hsv"===e[1]?k(x,r,s,t):T(r,s,t),{r:n[0],g:n[1],b:n[2],a:i}}}const C={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"},M={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 A;function D(t){A||(A=function(){const t={};var e=Object.keys(M),i=Object.keys(C);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,C[s]);s=parseInt(M[o],16),t[a]=[s>>16&255,s>>8&255,255&s]}return t}(),A.transparent=[0,0,0,0]);t=A[t.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}function L(e,i,n){if(e){let t=w(e);t[i]=Math.max(0,Math.min(t[i]+t[i]*n,0===i?360:1)),t=T(t),e.r=t[0],e.g=t[1],e.b=t[2]}}function N(t,e){return t&&Object.assign(e||{},t)}function I(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?3<=t.length&&(e={r:t[0],g:t[1],b:t[2],a:255},3<t.length&&(e.a=p(t[3]))):(e=N(t,{r:0,g:0,b:0,a:1})).a=p(e.a),e}function R(t){return("r"===t.charAt(0)?function(t){var e=v.exec(t);let i=255,n,r,s;if(e)return e[7]!==n&&(t=+e[7],i=255&(e[8]?f(t):255*t)),n=+e[1],r=+e[3],s=+e[5],n=255&(e[2]?f(n):n),r=255&(e[4]?f(r):r),s=255&(e[6]?f(s):s),{r:n,g:r,b:s,a:i}}:E)(t)}class j{constructor(t){if(t instanceof j)return t;var e,i,n=typeof t;let r;"object"==n?r=I(t):"string"==n&&(r=(n=(e=t).length,"#"===e[0]&&(4===n||5===n?i={r:255&17*s[e[1]],g:255&17*s[e[2]],b:255&17*s[e[3]],a:5===n?17*s[e[4]]:255}:7!==n&&9!==n||(i={r:s[e[1]]<<4|s[e[2]],g:s[e[3]]<<4|s[e[4]],b:s[e[5]]<<4|s[e[6]],a:9===n?s[e[7]]<<4|s[e[8]]:255})),i||D(t)||R(t))),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=N(this._rgb);return t&&(t.a=g(t.a)),t}set rgb(t){this._rgb=I(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${g(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):this._rgb;var t}hexString(){return this._valid?t(this._rgb):this._rgb}hslString(){return this._valid?function(t){if(t){var e=w(t),i=e[0],n=m(e[1]),e=m(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${e}%, ${g(t.a)})`:`hsl(${i}, ${n}%, ${e}%)`}}(this._rgb):this._rgb}mix(t,e){if(t){const r=this.rgb;var i=t.rgb,n=void 0===e?.5:e,t=2*n-1,e=r.a-i.a,t=(1+(t*e==-1?t:(t+e)/(1+t*e)))/2,e=1-t;r.r=255&t*r.r+e*i.r+.5,r.g=255&t*r.g+e*i.g+.5,r.b=255&t*r.b+e*i.b+.5,r.a=n*r.a+(1-n)*i.a,this.rgb=r}return this}clone(){return new j(this.rgb)}alpha(t){return this._rgb.a=p(t),this}clearer(t){const e=this._rgb;return e.a*=1-t,this}greyscale(){const t=this._rgb;var e=h(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){const e=this._rgb;return e.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 L(this._rgb,2,t),this}darken(t){return L(this._rgb,2,-t),this}saturate(t){return L(this._rgb,1,t),this}desaturate(t){return L(this._rgb,1,-t),this}rotate(t){var e,i;return e=this._rgb,i=t,(t=w(e))[0]=S(t[0]+i),t=T(t),e.r=t[0],e.g=t[1],e.b=t[2],this}}function H(t){return new j(t)}const F=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;function $(t){return F(t)?t:H(t)}function z(t){return F(t)?t:H(t).saturate(.5).darken(.1).hexString()}function B(){}const W=function(){let t=0;return function(){return t++}}();function V(t){return null==t}function q(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)}function U(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const Y=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function X(t,e){return Y(t)?t:e}function K(t,e){return void 0===t?e:t}const Q=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,G=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function J(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function Z(t,e,i,n){let r,s,o;if(q(t))if(s=t.length,n)for(r=s-1;0<=r;r--)e.call(i,t[r],r);else for(r=0;r<s;r++)e.call(i,t[r],r);else if(U(t))for(o=Object.keys(t),s=o.length,r=0;r<s;r++)e.call(i,t[o[r]],o[r])}function tt(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 et(e){if(q(e))return e.map(et);if(U(e)){const r=Object.create(null);var i=Object.keys(e),n=i.length;let t=0;for(;t<n;++t)r[i[t]]=et(e[i[t]]);return r}return e}function it(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function nt(t,e,i,n){var r;it(t)&&(r=e[t],i=i[t],U(r)&&U(i)?rt(r,i,n):e[t]=et(i))}function rt(i,n,r){var e=q(n)?n:[n],s=e.length;if(!U(i))return i;const o=(r=r||{}).merger||nt;for(let t=0;t<s;++t)if(U(n=e[t])){var a=Object.keys(n);for(let t=0,e=a.length;t<e;++t)o(a[t],i,n,r)}return i}function st(t,e){return rt(t,e,{merger:ot})}function ot(t,e,i){var n;it(t)&&(n=e[t],i=i[t],U(n)&&U(i)?st(n,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=et(i)))}const at="",lt=".";function ct(t,e){e=t.indexOf(lt,e);return-1===e?t.length:e}function ht(t,e){if(e===at)return t;let i=0,n=ct(e,i);for(;t&&n>i;)t=t[e.substr(i,n-i)],i=n+1,n=ct(e,i);return t}function ut(t){return t.charAt(0).toUpperCase()+t.slice(1)}const dt=t=>void 0!==t,ft=t=>"function"==typeof t,pt=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0},gt=Object.create(null),mt=Object.create(null);function vt(i,t){if(!t)return i;var n=t.split(".");for(let t=0,e=n.length;t<e;++t){var r=n[t];i=i[r]||(i[r]=Object.create(null))}return i}function bt(t,e,i){return"string"==typeof e?rt(vt(t,e),i):rt(vt(t,""),e)}var yt=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)=>z(e.backgroundColor),this.hoverBorderColor=(t,e)=>z(e.borderColor),this.hoverColor=(t,e)=>z(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.describe(t)}set(t,e){return bt(this,t,e)}get(t){return vt(this,t)}describe(t,e){return bt(mt,t,e)}override(t,e){return bt(gt,t,e)}route(t,e,i,n){t=vt(this,t);const r=vt(this,i),s="_"+e;Object.defineProperties(t,{[s]:{value:t[e],writable:!0},[e]:{enumerable:!0,get(){var t=this[s],e=r[n];return U(t)?Object.assign({},e,t):K(t,e)},set(t){this[s]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});const xt=Math.PI,_t=2*xt,wt=_t+xt,kt=Number.POSITIVE_INFINITY,Tt=xt/180,St=xt/2,Et=xt/4,Ct=2*xt/3,Mt=Math.log10,At=Math.sign;function Dt(t){var e=Math.pow(10,Math.floor(Mt(t))),t=t/e;return(t<=1?1:t<=2?2:t<=5?5:10)*e}function Lt(t){const e=[];var 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}function Ot(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Pt(t,e,i){return Math.abs(t-e)<i}function Nt(t,e){var i=Math.round(t);return i-e<=t&&t<=i+e}function It(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 Rt(t){return t*(xt/180)}function jt(t){return t*(180/xt)}function Ht(i){if(Y(i)){let t=1,e=0;for(;Math.round(i*t)/t!==i;)t*=10,e++;return e}}function Ft(t,e){var i=e.x-t.x,e=e.y-t.y,t=Math.sqrt(i*i+e*e);let n=Math.atan2(e,i);return n<-.5*xt&&(n+=_t),{angle:n,distance:t}}function $t(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function zt(t,e){return(t-e+wt)%_t-xt}function Bt(t){return(t%_t+_t)%_t}function Wt(t,e,i,n){var r=Bt(t),s=Bt(e),o=Bt(i),a=Bt(s-r),t=Bt(o-r),e=Bt(r-s),i=Bt(r-o);return r===s||r===o||n&&s===o||t<a&&e<i}function Vt(t,e,i){return Math.max(e,Math.min(i,t))}function qt(t){return Vt(t,-32768,32767)}function Ut(t){return!t||V(t.size)||V(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Yt(t,e,i,n,r){let s=e[r];return s||(s=e[r]=t.measureText(r).width,i.push(r)),n=s>n?s:n}function Xt(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;var a=i.length;let l,c,h,u,d;for(l=0;l<a;l++)if(null!=(u=i[l])&&!0!==q(u))o=Yt(t,r,s,o,u);else if(q(u))for(c=0,h=u.length;c<h;c++)null==(d=u[c])||q(d)||(o=Yt(t,r,s,o,d));t.restore();var 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 Kt(t,e,i){t=t.currentDevicePixelRatio,i=0!==i?Math.max(i/2,.5):0;return Math.round((e-i)*t)/t+i}function Qt(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Gt(t,e,i,n){let r,s,o,a,l;const c=e.pointStyle;var h=e.rotation,u=e.radius;let d=(h||0)*Tt;if(c&&"object"==typeof c&&("[object HTMLImageElement]"===(r=c.toString())||"[object HTMLCanvasElement]"===r))return t.save(),t.translate(i,n),t.rotate(d),t.drawImage(c,-c.width/2,-c.height/2,c.width,c.height),void t.restore();if(!(isNaN(u)||u<=0)){switch(t.beginPath(),c){default:t.arc(i,n,u,0,_t),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(d)*u,n-Math.cos(d)*u),d+=Ct,t.lineTo(i+Math.sin(d)*u,n-Math.cos(d)*u),d+=Ct,t.lineTo(i+Math.sin(d)*u,n-Math.cos(d)*u),t.closePath();break;case"rectRounded":l=.516*u,a=u-l,s=Math.cos(d+Et)*a,o=Math.sin(d+Et)*a,t.arc(i-s,n-o,l,d-xt,d-St),t.arc(i+o,n-s,l,d-St,d),t.arc(i+s,n+o,l,d,d+St),t.arc(i-o,n+s,l,d+St,d+xt),t.closePath();break;case"rect":if(!h){a=Math.SQRT1_2*u,t.rect(i-a,n-a,2*a,2*a);break}d+=Et;case"rectRot":s=Math.cos(d)*u,o=Math.sin(d)*u,t.moveTo(i-s,n-o),t.lineTo(i+o,n-s),t.lineTo(i+s,n+o),t.lineTo(i-o,n+s),t.closePath();break;case"crossRot":d+=Et;case"cross":s=Math.cos(d)*u,o=Math.sin(d)*u,t.moveTo(i-s,n-o),t.lineTo(i+s,n+o),t.moveTo(i+o,n-s),t.lineTo(i-o,n+s);break;case"star":s=Math.cos(d)*u,o=Math.sin(d)*u,t.moveTo(i-s,n-o),t.lineTo(i+s,n+o),t.moveTo(i+o,n-s),t.lineTo(i-o,n+s),d+=Et,s=Math.cos(d)*u,o=Math.sin(d)*u,t.moveTo(i-s,n-o),t.lineTo(i+s,n+o),t.moveTo(i+o,n-s),t.lineTo(i-o,n+s);break;case"line":s=Math.cos(d)*u,o=Math.sin(d)*u,t.moveTo(i-s,n-o),t.lineTo(i+s,n+o);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(d)*u,n+Math.sin(d)*u)}t.fill(),0<e.borderWidth&&t.stroke()}}function Jt(t,e,i){return i=i||.5,t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function Zt(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function te(t){t.restore()}function ee(t,e,i,n,r){if(!e)return t.lineTo(i.x,i.y);var s;"middle"===r?(s=(e.x+i.x)/2,t.lineTo(s,e.y),t.lineTo(s,i.y)):"after"===r!=!!n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y),t.lineTo(i.x,i.y)}function ie(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 ne(t,e,i,n,r,s={}){var o,a,l,c,h=q(e)?e:[e],u=0<s.strokeWidth&&""!==s.strokeColor;let d,f;for(t.save(),s.translation&&t.translate(s.translation[0],s.translation[1]),V(s.rotation)||t.rotate(s.rotation),t.font=r.string,s.color&&(t.fillStyle=s.color),s.textAlign&&(t.textAlign=s.textAlign),s.textBaseline&&(t.textBaseline=s.textBaseline),d=0;d<h.length;++d)f=h[d],u&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),V(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(f,i,n,s.maxWidth)),t.fillText(f,i,n,s.maxWidth),(s.strikethrough||s.underline)&&(o=i-(c=t.measureText(f)).actualBoundingBoxLeft,a=i+c.actualBoundingBoxRight,l=n-c.actualBoundingBoxAscent,c=n+c.actualBoundingBoxDescent,c=s.strikethrough?(l+c)/2:c,t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(o,c),t.lineTo(a,c),t.stroke()),n+=r.lineHeight;t.restore()}function re(t,e){var{x:i,y:n,w:r,h:s,radius:e}=e;t.arc(i+e.topLeft,n+e.topLeft,e.topLeft,-St,xt,!0),t.lineTo(i,n+s-e.bottomLeft),t.arc(i+e.bottomLeft,n+s-e.bottomLeft,e.bottomLeft,xt,St,!0),t.lineTo(i+r-e.bottomRight,n+s),t.arc(i+r-e.bottomRight,n+s-e.bottomRight,e.bottomRight,St,0,!0),t.lineTo(i+r,n+e.topRight),t.arc(i+r-e.topRight,n+e.topRight,e.topRight,0,-St,!0),t.lineTo(i+e.topLeft,n)}function se(e,i,t){t=t||(t=>e[t]<i);let n=e.length-1,r=0;for(var s;1<n-r;)t(s=r+n>>1)?r=s:n=s;return{lo:r,hi:n}}const oe=(e,i,n)=>se(e,n,t=>e[t][i]<n),ae=(e,i,n)=>se(e,n,t=>e[t][i]>=n);function le(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 0<n||r<t.length?t.slice(n,r):t}const ce=["push","pop","shift","splice","unshift"];function he(r,t){r._chartjs?r._chartjs.listeners.push(t):(Object.defineProperty(r,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ce.forEach(t=>{const i="_onData"+ut(t),n=r[t];Object.defineProperty(r,t,{configurable:!0,enumerable:!1,value(...e){var t=n.apply(this,e);return r._chartjs.listeners.forEach(t=>{"function"==typeof t[i]&&t[i](...e)}),t}})}))}function ue(e,t){var i=e._chartjs;if(i){const n=i.listeners;t=n.indexOf(t);-1!==t&&n.splice(t,1),0<n.length||(ce.forEach(t=>{delete e[t]}),delete e._chartjs)}}function de(t){const e=new Set;let i,n;for(i=0,n=t.length;i<n;++i)e.add(t[i]);if(e.size===n)return t;const r=[];return e.forEach(t=>{r.push(t)}),r}function fe(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function pe(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 ge=t=>window.getComputedStyle(t,null);function me(t,e){return ge(t).getPropertyValue(e)}const ve=["top","right","bottom","left"];function be(e,i,n){const r={};n=n?"-"+n:"";for(let t=0;t<4;t++){var s=ve[t];r[s]=parseFloat(e[i+"-"+s+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const ye=(t,e,i)=>(0<t||0<e)&&(!i||!i.shadowRoot);function xe(t,e){var{canvas:i,currentDevicePixelRatio:n}=e,r=ge(i),s="border-box"===r.boxSizing,o=be(r,"padding"),a=be(r,"border","width"),{x:l,y:c,box:r}=function(t,e){var i=t.native||t,n=(r=i.touches)&&r.length?r[0]:i,{offsetX:t,offsetY:r}=n;let s=!1,o,a;return ye(t,r,i.target)?(o=t,a=r):(e=e.getBoundingClientRect(),o=n.clientX-e.left,a=n.clientY-e.top,s=!0),{x:o,y:a,box:s}}(t,i),t=o.left+(r&&a.left),r=o.top+(r&&a.top);let{width:h,height:u}=e;return s&&(h-=o.width+a.width,u-=o.height+a.height),{x:Math.round((l-t)/h*i.width/n),y:Math.round((c-r)/u*i.height/n)}}const _e=t=>Math.round(10*t)/10;function we(t,e,i,n){var r=ge(t),s=be(r,"margin"),o=pe(r.maxWidth,t,"clientWidth")||kt,a=pe(r.maxHeight,t,"clientHeight")||kt,e=function(t,e,i){let n,r;if(void 0===e||void 0===i){const c=fe(t);var s,o,a,l;c?(s=c.getBoundingClientRect(),a=be(o=ge(c),"border","width"),l=be(o,"padding"),e=s.width-l.width-a.width,i=s.height-l.height-a.height,n=pe(o.maxWidth,c,"clientWidth"),r=pe(o.maxHeight,c,"clientHeight")):(e=t.clientWidth,i=t.clientHeight)}return{width:e,height:i,maxWidth:n||kt,maxHeight:r||kt}}(t,e,i);let{width:l,height:c}=e;return"content-box"===r.boxSizing&&(i=be(r,"border","width"),r=be(r,"padding"),l-=r.width+i.width,c-=r.height+i.height),l=Math.max(0,l-s.width),c=Math.max(0,n?Math.floor(l/n):c-s.height),l=_e(Math.min(l,o,e.maxWidth)),c=_e(Math.min(c,a,e.maxHeight)),l&&!c&&(c=_e(l/2)),{width:l,height:c}}function ke(t,e,i){var n=e||1,r=Math.floor(t.height*n),e=Math.floor(t.width*n);t.height=r/n,t.width=e/n;const s=t.canvas;return s.style&&(i||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||s.height!==r||s.width!==e)&&(t.currentDevicePixelRatio=n,s.height=r,s.width=e,t.ctx.setTransform(n,0,0,n,0,0),!0)}var Te=function(){let t=!1;try{var e={get passive(){return!(t=!0)}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function Se(t,e){const i=me(t,e);e=i&&i.match(/^(\d+)(\.\d+)?px$/);return e?+e[1]:void 0}function Ee(t,e){return"native"in t?{x:t.x,y:t.y}:xe(t,e)}function Ce(t,i,e,n,r){var s=t.getSortedVisibleDatasetMetas(),o=e[i];for(let t=0,e=s.length;t<e;++t){var{index:a,data:l}=s[t],{lo:c,hi:h}=function(t,e,i,n){var{controller:r,data:s,_sorted:o}=t;if((t=r._cachedMeta.iScale)&&e===t.axis&&o&&s.length){const a=t._reversePixels?ae:oe;if(!n)return a(s,e,i);if(r._sharedOptions){const l=s[0];n="function"==typeof l.getRange&&l.getRange(e);if(n){r=a(s,e,i-n),n=a(s,e,i+n);return{lo:r.lo,hi:n.hi}}}}return{lo:0,hi:s.length-1}}(s[t],i,o,r);for(let t=c;t<=h;++t){var u=l[t];u.skip||n(u,a,t)}}}function Me(t,n,e,r){const s=[];if(!Jt(n,t.chartArea,t._minPadding))return s;return Ce(t,e,n,function(t,e,i){t.inRange(n.x,n.y,r)&&s.push({element:t,datasetIndex:e,index:i})},!0),s}function Ae(r,s,t,o,a){const l=function(t){const n=-1!==t.indexOf("x"),r=-1!==t.indexOf("y");return function(t,e){var i=n?Math.abs(t.x-e.x):0,e=r?Math.abs(t.y-e.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(e,2))}}(t);let c=Number.POSITIVE_INFINITY,h=[];if(!Jt(s,r.chartArea,r._minPadding))return h;return Ce(r,t,s,function(t,e,i){var n;o&&!t.inRange(s.x,s.y,a)||Jt(n=t.getCenterPoint(a),r.chartArea,r._minPadding)&&((n=l(s,n))<c?(h=[{element:t,datasetIndex:e,index:i}],c=n):n===c&&h.push({element:t,datasetIndex:e,index:i}))}),h}function De(t,e,i,n){const r=Ee(e,t),s=[],o=i.axis,a="x"===o?"inXRange":"inYRange";let l=!1;return function(t,i){var n,r,s,o=t.getSortedVisibleDatasetMetas();for(let t=0,e=o.length;t<e;++t){({index:n,data:r}=o[t]);for(let t=0,e=r.length;t<e;++t)(s=r[t]).skip||i(s,n,t)}}(t,(t,e,i)=>{t[a](r[o],n)&&s.push({element:t,datasetIndex:e,index:i}),t.inRange(r.x,r.y,n)&&(l=!0)}),i.intersect&&!l?[]:s}var Le={modes:{index(t,e,i,n){var r=Ee(e,t),e=i.axis||"x";const s=i.intersect?Me(t,r,e,n):Ae(t,r,e,!1,n),o=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{var e=s[0].index,i=t.data[e];i&&!i.skip&&o.push({element:i,datasetIndex:t.index,index:e})}),o):[]},dataset(t,e,i,n){var r=Ee(e,t),e=i.axis||"xy";let s=i.intersect?Me(t,r,e,n):Ae(t,r,e,!1,n);if(0<s.length){var o=s[0].datasetIndex,a=t.getDatasetMeta(o).data;s=[];for(let t=0;t<a.length;++t)s.push({element:a[t],datasetIndex:o,index:t})}return s},point(t,e,i,n){return Me(t,Ee(e,t),i.axis||"xy",n)},nearest(t,e,i,n){return Ae(t,Ee(e,t),i.axis||"xy",i.intersect,n)},x(t,e,i,n){return i.axis="x",De(t,e,i,n)},y(t,e,i,n){return i.axis="y",De(t,e,i,n)}}};const Oe=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Pe=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function Ne(t,e){var i=(""+t).match(Oe);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const Ie=t=>+t||0;function Re(e,i){const t={};var n=U(i),r=n?Object.keys(i):i;const s=U(e)?n?t=>K(e[t],e[i[t]]):t=>e[t]:()=>e;for(const o of r)t[o]=Ie(s(o));return t}function je(t){return Re(t,{top:"y",right:"x",bottom:"y",left:"x"})}function He(t){return Re(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Fe(t){const e=je(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function $e(t,e){e=e||yt.font;let i=K((t=t||{}).size,e.size);"string"==typeof i&&(i=parseInt(i,10));let n=K(t.style,e.style);n&&!(""+n).match(Pe)&&(n="");const r={family:K(t.family,e.family),lineHeight:Ne(K(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:K(t.weight,e.weight),string:""};return r.string=Ut(r),r}function ze(t,e,i,n){let r=!0,s,o,a;for(s=0,o=t.length;s<o;++s)if(a=t[s],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),r=!1),void 0!==i&&q(a)&&(a=a[i%a.length],r=!1),void 0!==a))return n&&!r&&(n.cacheable=!1),a}function Be(t,e){var{min:i,max:t}=t;return{min:i-Math.abs(G(e,i)),max:t+G(e,t)}}const We=["left","top","right","bottom"];function Ve(t,e){return t.filter(t=>t.pos===e)}function qe(t,e){return t.filter(t=>-1===We.indexOf(t.pos)&&t.box.axis===e)}function Ue(t,n){return t.sort((t,e)=>{var i=n?e:t,e=n?t:e;return i.weight===e.weight?i.index-e.index:i.weight-e.weight})}function Ye(t){const e=function(t){const e=[];let i,n,r;for(i=0,n=(t||[]).length;i<n;++i)r=t[i],e.push({index:i,box:r,pos:r.position,horizontal:r.isHorizontal(),weight:r.weight});return e}(t);var i=Ue(e.filter(t=>t.box.fullSize),!0);const n=Ue(Ve(e,"left"),!0),r=Ue(Ve(e,"right")),s=Ue(Ve(e,"top"),!0);var o=Ue(Ve(e,"bottom")),a=qe(e,"x"),t=qe(e,"y");return{fullSize:i,leftAndTop:n.concat(s),rightAndBottom:r.concat(t).concat(o).concat(a),chartArea:Ve(e,"chartArea"),vertical:n.concat(r).concat(t),horizontal:s.concat(o).concat(a)}}function Xe(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function Ke(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 Qe(t,e,i){const n=[];let r,s,o,a,l,c;for(r=0,s=t.length,l=0;r<s;++r){o=t[r],a=o.box,a.update(o.width||e.w,o.height||e.h,function(t,i){const n=i.maxPadding;function e(t){const e={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{e[t]=Math.max(i[t],n[t])}),e}return e(t?["left","right"]:["top","bottom"])}(o.horizontal,e));var{same:h,other:u}=function(t,e,i){const n=i.box;var r=t.maxPadding;U(i.pos)||(i.size&&(t[i.pos]-=i.size),i.size=i.horizontal?n.height:n.width,t[i.pos]+=i.size),n.getPadding&&Ke(r,n.getPadding());var s=Math.max(0,e.outerWidth-Xe(r,t,"left","right")),o=Math.max(0,e.outerHeight-Xe(r,t,"top","bottom")),e=s!==t.w,r=o!==t.h;return t.w=s,t.h=o,i.horizontal?{same:e,other:r}:{same:r,other:e}}(e,i,o);l|=h&&n.length,c=c||u,a.fullSize||n.push(o)}return l&&Qe(n,e,i)||c}function Ge(t,e,i){var n=i.padding;let r=e.x,s=e.y,o,a,l,c;for(o=0,a=t.length;o<a;++o)l=t[o],c=l.box,l.horizontal?(c.left=(c.fullSize?n:e).left,c.right=c.fullSize?i.outerWidth-n.right:e.left+e.w,c.top=s,c.bottom=s+c.height,c.width=c.right-c.left,s=c.bottom):(c.left=r,c.right=r+c.width,c.top=(c.fullSize?n:e).top,c.bottom=c.fullSize?i.outerHeight-n.right:e.top+e.h,c.height=c.bottom-c.top,r=c.right);e.x=r,e.y=s}yt.set("layout",{padding:{top:0,right:0,bottom:0,left:0}});var Je={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){e=t.boxes?t.boxes.indexOf(e):-1;-1!==e&&t.boxes.splice(e,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(i,t,e,n){if(i){var r=Fe(i.options.layout.padding),s=Math.max(t-r.width,0),o=Math.max(e-r.height,0),a=Ye(i.boxes);const h=a.vertical;var l=a.horizontal;Z(i.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});var c=h.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,e=Object.freeze({outerWidth:t,outerHeight:e,padding:r,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/c,hBoxMaxHeight:o/2}),c=Object.assign({},r);Ke(c,Fe(n));const u=Object.assign({maxPadding:c,w:s,h:o,x:r.left,y:r.top},r);!function(t,e){let i,n,r;for(i=0,n=t.length;i<n;++i)r=t[i],r.horizontal?(r.width=r.box.fullSize&&e.availableWidth,r.height=e.hBoxMaxHeight):(r.width=e.vBoxMaxWidth,r.height=r.box.fullSize&&e.availableHeight)}(h.concat(l),e),Qe(a.fullSize,u,e),Qe(h,u,e),Qe(l,u,e)&&Qe(h,u,e),function(i){const n=i.maxPadding;function t(t){var e=Math.max(n[t]-i[t],0);return i[t]+=e,e}i.y+=t("top"),i.x+=t("left"),t("right"),t("bottom")}(u),Ge(a.leftAndTop,u,e),u.x+=u.w,u.y+=u.h,Ge(a.rightAndBottom,u,e),i.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h,height:u.h,width:u.w},Z(a.chartArea,t=>{const e=t.box;Object.assign(e,i.chartArea),e.update(u.w,u.h)})}}};class Ze{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}}class ti extends Ze{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}}const ei="$chartjs",ii={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ni=t=>null===t||""===t;const ri=!!Te&&{passive:!0};function si(t,e,i){t.canvas.removeEventListener(e,i,ri)}function oi(t,e,r){t=t.canvas;const s=t&&fe(t)||t,i=new MutationObserver(t=>{const n=fe(s);t.forEach(e=>{for(let t=0;t<e.addedNodes.length;t++){var i=e.addedNodes[t];i!==s&&i!==n||r(e.target)}})});return i.observe(document,{childList:!0,subtree:!0}),i}function ai(t,e,i){const n=t.canvas;t=n&&fe(n);if(t){const r=new MutationObserver(t=>{t.forEach(e=>{for(let t=0;t<e.removedNodes.length;t++)if(e.removedNodes[t]===n){i();break}})});return r.observe(t,{childList:!0}),r}}const li=new Map;let ci=0;function hi(){const i=window.devicePixelRatio;i!==ci&&(ci=i,li.forEach((t,e)=>{e.currentDevicePixelRatio!==i&&t()}))}function ui(t,e,n){var i=t.canvas;const r=i&&fe(i);if(r){const s=a((t,e)=>{var i=r.clientWidth;n(t,e),i<r.clientWidth&&n()},window),o=new ResizeObserver(t=>{var e=t[0],t=e.contentRect.width,e=e.contentRect.height;0===t&&0===e||s(t,e)});return o.observe(r),i=t,t=s,li.size||window.addEventListener("resize",hi),li.set(i,t),o}}function di(t,e,i){i&&i.disconnect(),"resize"===e&&(t=t,li.delete(t),li.size||window.removeEventListener("resize",hi))}function fi(e,t,i){var n=e.canvas,r=a(t=>{null!==e.ctx&&i(function(t,e){var i=ii[t.type]||t.type,{x:n,y:r}=xe(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==r?r:null}}(t,e))},e,t=>{t=t[0];return[t,t.offsetX,t.offsetY]});return n.addEventListener(t,r,ri),r}class pi extends Ze{acquireContext(t,e){var i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style;var n=t.getAttribute("height"),r=t.getAttribute("width");t[ei]={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",!ni(r)||void 0!==(r=Se(t,"width"))&&(t.width=r),ni(n)&&(""===t.style.height?t.height=t.width/(e||2):void 0!==(e=Se(t,"height"))&&(t.height=e))}(t,e),i):null}releaseContext(t){const i=t.canvas;if(!i[ei])return!1;const n=i[ei].initial;["height","width"].forEach(t=>{var e=n[t];V(e)?i.removeAttribute(t):i.setAttribute(t,e)});const e=n.style||{};return Object.keys(e).forEach(t=>{i.style[t]=e[t]}),i.width=i.width,delete i[ei],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={});const r={attach:oi,detach:ai,resize:ui}[e]||fi;n[e]=r(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={});var n=i[e];if(n){const r={attach:di,detach:di,resize:di}[e]||si;r(t,e,n),i[e]=void 0}}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return we(t,e,i,n)}isAttached(t){t=fe(t);return!(!t||!fe(t))}}var gi=Object.freeze({__proto__:null,BasePlatform:Ze,BasicPlatform:ti,DomPlatform:pi});const mi=t=>0===t||1===t,vi=(t,e,i)=>-(Math.pow(2,10*--t)*Math.sin((t-e)*_t/i)),bi=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*_t/i)+1,yi={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*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*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*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*St),easeOutSine:t=>Math.sin(t*St),easeInOutSine:t=>-.5*(Math.cos(xt*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=>mi(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>1<=t?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1- --t*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>mi(t)?t:vi(t,.075,.3),easeOutElastic:t=>mi(t)?t:bi(t,.075,.3),easeInOutElastic(t){return mi(t)?t:t<.5?.5*vi(2*t,.1125,.45):.5+.5*bi(2*t-1,.1125,.45)},easeInBack(t){return t*t*(2.70158*t-1.70158)},easeOutBack(t){return--t*t*(2.70158*t+1.70158)+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-yi.easeOutBounce(1-t),easeOutBounce(t){var e=7.5625;return t<1/2.75?e*t*t:t<2/2.75?e*(t-=1.5/2.75)*t+.75:t<2.5/2.75?e*(t-=2.25/2.75)*t+.9375:e*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?.5*yi.easeInBounce(2*t):.5*yi.easeOutBounce(2*t-1)+.5},xi="transparent",_i={boolean(t,e,i){return.5<i?e:t},color(t,e,i){t=$(t||xi);const n=t.valid&&$(e||xi);return n&&n.valid?n.mix(t,i).hexString():e},number(t,e,i){return t+(e-t)*i}};class wi{constructor(t,e,i,n){var r=e[i];n=ze([t.to,n,r,t.from]);r=ze([t.from,r,n]);this._active=!0,this._fn=t.fn||_i[t.type||typeof r],this._easing=yi[t.easing]||yi.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){var n,r,s,o=this;o._active&&(o._notify(!1),n=o._target[o._prop],r=i-o._start,s=o._duration-r,o._start=i,o._duration=Math.floor(Math.max(s,t.duration)),o._total+=r,o._loop=!!t.loop,o._to=ze([t.to,e,n,t.from]),o._from=ze([t.from,n,e]))}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){var e=this,i=t-e._start,n=e._duration,r=e._prop,s=e._from,o=e._loop,t=e._to;let a;if(e._active=s!==t&&(o||i<n),!e._active)return e._target[r]=t,void e._notify(!0);i<0?e._target[r]=s:(a=i/n%2,a=o&&1<a?2-a:a,a=e._easing(Math.min(1,Math.max(0,a))),e._target[r]=e._fn(s,t,a))}wait(){const i=this._promises||(this._promises=[]);return new Promise((t,e)=>{i.push({res:t,rej:e})})}_notify(t){var e=t?"res":"rej";const i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}yt.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 ki=Object.keys(yt.animation);yt.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),yt.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),yt.describe("animations",{_fallback:"animation"}),yt.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 Ti{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(r){if(U(r)){const s=this._properties;Object.getOwnPropertyNames(r).forEach(e=>{const t=r[e];if(U(t)){const i={};for(const n of ki)i[n]=t[n];(q(t.properties)&&t.properties||[e]).forEach(t=>{t!==e&&s.has(t)||s.set(t,i)})}})}}_animateOptions(t,e){const i=e.options;e=function(e,i){if(i){let t=e.options;if(t)return t.$shared&&(e.options=t=Object.assign({},t,{$shared:!1,$animations:{}})),t;e.options=i}}(t,i);if(!e)return[];e=this._createAnimations(e,i);return i.$shared&&function(e,t){const i=[],n=Object.keys(t);for(let t=0;t<n.length;t++){const r=e[n[t]];r&&r.active()&&i.push(r.wait())}return Promise.all(i)}(t.options.$animations,i).then(()=>{t.options=i},()=>{}),e}_createAnimations(e,i){const n=this._properties,r=[],s=e.$animations||(e.$animations={});var t=Object.keys(i),o=Date.now();let a;for(a=t.length-1;0<=a;--a){const h=t[a];if("$"!==h.charAt(0))if("options"!==h){var l=i[h];let t=s[h];var c=n.get(h);if(t){if(c&&t.active()){t.update(c,l,o);continue}t.cancel()}c&&c.duration?(s[h]=t=new wi(c,e,h,l),r.push(t)):e[h]=l}else r.push(...this._animateOptions(e,i))}return r}update(t,e){if(0!==this._properties.size){var i=this._createAnimations(t,e);return i.length?(c.add(this._chart,i),!0):void 0}Object.assign(t,e)}}function Si(t,e){var i=t&&t.options||{},n=i.reverse,t=void 0===i.min?e:0,e=void 0===i.max?e:0;return{start:n?e:t,end:n?t:e}}function Ei(t,e){const i=[];var n=t._getSortedDatasetMetas(e);let r,s;for(r=0,s=n.length;r<s;++r)i.push(n[r].index);return i}function Ci(t,e,i,n){var 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])===i){if(n.all)continue;break}c=t.values[l],Y(c)&&(s||0===e||At(e)===At(c))&&(e+=c)}return e}}function Mi(t,e){t=t&&t.options.stacked;return t||void 0===t&&void 0!==e.stack}function Ai(t,e,i){for(const r of e.getMatchingVisibleMetas("bar").reverse()){var n=t[r.index];if(i&&0<n||!i&&n<0)return r.index}return null}function Di(t,e){const{chart:i,_cachedMeta:n}=t;var r=i._stacks||(i._stacks={}),{iScale:s,vScale:o,index:a}=n,l=s.axis,c=o.axis,h=(t=n,`${s.id}.${o.id}.${t.stack||t.type}`),u=e.length;let d;for(let t=0;t<u;++t){const g=e[t];var{[l]:f,[c]:p}=g;const m=g._stacks||(g._stacks={});d=m[c]=function(t,e,i){const n=t[e]||(t[e]={});return n[i]||(n[i]={})}(r,h,f),d[a]=p,d._top=Ai(d,o,!0),d._bottom=Ai(d,o,!1)}}function Li(t,e){const i=t.scales;return Object.keys(i).filter(t=>i[t].axis===e).shift()}function Oi(t,e){var i=t.vScale&&t.vScale.axis;if(i)for(const n of e=e||t._parsed){const r=n._stacks;if(!r||void 0===r[i]||void 0===r[i][t.index])return;delete r[i][t.index]}}const Pi=t=>"reset"===t||"none"===t,Ni=(t,e)=>e?t:Object.assign({},t);class Ii{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Mi(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Oi(this._cachedMeta),this.index=t}linkScales(){var t=this.chart;const e=this._cachedMeta;var i=this.getDataset(),n=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,r=e.xAxisID=K(i.xAxisID,Li(t,"x")),s=e.yAxisID=K(i.yAxisID,Li(t,"y")),o=e.rAxisID=K(i.rAxisID,Li(t,"r")),i=e.indexAxis,t=e.iAxisID=n(i,r,s,o),i=e.vAxisID=n(i,s,r,o);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(s),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(t),e.vScale=this.getScaleForId(i)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){var e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){var t=this._cachedMeta;this._data&&ue(this._data,this),t._stacked&&Oi(t)}_dataCheck(){const t=this.getDataset();var e=t.data||(t.data=[]),i=this._data;if(U(e))this._data=function(t){var e=Object.keys(t);const 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){ue(i,this);const n=this._cachedMeta;Oi(n),n._parsed=[]}e&&Object.isExtensible(e)&&he(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta;var i=this.getDataset();let n=!1;this._dataCheck();var r=e._stacked;e._stacked=Mi(e.vScale,e),e.stack!==i.stack&&(n=!0,Oi(e),e.stack=i.stack),this._resyncElements(t),!n&&r===e._stacked||Di(this,e._parsed)}configure(){const t=this.chart.config;var e=t.datasetScopeKeys(this._type),e=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(e,this.getContext()),this._parsing=this.options.parsing}parse(t,e){const{_cachedMeta:i,_data:n}=this;var{iScale:r,_stacked:s}=i;const o=r.axis;let a=0===t&&e===n.length||i._sorted,l=0<t&&i._parsed[t-1],c,h,u;if(!1===this._parsing)i._parsed=n,i._sorted=!0,u=n;else{u=q(n[t])?this.parseArrayData(i,n,t,e):U(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);for(c=0;c<e;++c)i._parsed[c+t]=h=u[c],a&&((null===h[o]||l&&h[o]<l[o])&&(a=!1),l=h);i._sorted=a}s&&Di(this,u)}parsePrimitiveData(t,e,i,n){const{iScale:r,vScale:s}=t;var o=r.axis,a=s.axis,l=r.getLabels(),c=r===s;const 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)h=e[c=a+i],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;var{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing;const l=new Array(n);let c,h,u,d;for(c=0,h=n;c<h;++c)d=e[u=c+i],l[c]={x:r.parse(ht(d,o),u),y:s.parse(ht(d,a),u)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){var n=this.chart,r=this._cachedMeta,s=e[t.axis];return Ci({keys:Ei(n,!0),values:e._stacks[t.axis]},s,r.index,{mode:i})}updateRangeFromParsed(t,e,i,n){var r=i[e.axis];let s=null===r?NaN:r;e=n&&i._stacks[e.axis];n&&e&&(n.values=e,t.min=Math.min(t.min,s),t.max=Math.max(t.max,s),s=Ci(n,r,this._cachedMeta.index,{all:!0})),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,e){var i=this._cachedMeta;const n=i._parsed;var r=i._sorted&&t===i.iScale,s=n.length;const o=this._getOtherScale(t);var a=e&&i._stacked&&{keys:Ei(this.chart,!0),values:null},l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};const{min:c,max:h}=function(t){var{min:e,max:i,minDefined:n,maxDefined:t}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:t?i:Number.POSITIVE_INFINITY}}(o);let u,d,f,p;function g(){return f=n[u],d=f[t.axis],p=f[o.axis],!Y(d)||c>p||h<p}for(u=0;u<s&&(g()||(this.updateRangeFromParsed(l,t,f,a),!r));++u);if(r)for(u=s-1;0<=u;--u)if(!g()){this.updateRangeFromParsed(l,t,f,a);break}return l}getAllParsedValues(t){var e=this._cachedMeta._parsed;const i=[];let n,r,s;for(n=0,r=e.length;n<r;++n)s=e[n][t.axis],Y(s)&&i.push(s);return i}getMaxOverflow(){return!1}getLabelAndValue(t){var e=this._cachedMeta;const i=e.iScale,n=e.vScale;t=this.getParsed(t);return{label:i?""+i.getLabelForValue(t[i.axis]):"",value:n?""+n.getLabelForValue(t[n.axis]):""}}_update(t){var e,i;const n=this._cachedMeta;this.configure(),this._cachedDataOpts={},this.update(t||"default"),n._clip=function(t){let e,i,n,r;return U(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}}(K(this.options.clip,(e=n.xScale,i=n.yScale,!1!==(t=this.getMaxOverflow())&&(e=Si(e,t),{top:(t=Si(i,t)).end,right:e.end,bottom:t.start,left:e.start}))))}update(t){}draw(){var t=this._ctx,e=this.chart;const i=this._cachedMeta;var n=i.data||[],r=e.chartArea;const s=[];var o=this._drawStart||0,a=this._drawCount||n.length-o;let l;for(i.dataset&&i.dataset.draw(t,r,o,a),l=o;l<o+a;++l){const c=n[l];c.active?s.push(c):c.draw(t,r)}for(l=0;l<s.length;++l)s[l].draw(t,r)}getStyle(t,e){e=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(e):this.resolveDataElementOptions(t||0,e)}getContext(t,e,i){var n,r,s,o=this,a=o.getDataset();let l;if(0<=t&&t<o._cachedMeta.data.length){const c=o._cachedMeta.data[t];l=c.$context||(c.$context=(n=o.getContext(),r=t,s=c,Object.assign(Object.create(n),{active:!1,dataIndex:r,parsed:void 0,raw:void 0,element:s,index:r,mode:"default",type:"data"}))),l.parsed=o.getParsed(t),l.raw=a.data[t],l.index=l.dataIndex=t}else l=o.$context||(o.$context=(r=o.chart.getContext(),t=o.index,Object.assign(Object.create(r),{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"}))),l.dataset=a,l.index=l.datasetIndex=o.index;return l.active=!!e,l.mode=i,l}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=this,r="active"===e,s=n._cachedDataOpts;var o=t+"-"+e,a=s[o],l=n.enableOptionSharing&&dt(i);if(a)return Ni(a,l);const c=n.chart.config;e=c.datasetElementScopeKeys(n._type,t),a=r?[`${t}Hover`,"hover",t,""]:[t,""],e=c.getOptionScopes(n.getDataset(),e),t=Object.keys(yt.elements[t]);const h=c.resolveNamedOptions(e,t,()=>n.getContext(i,r),a);return h.$shared&&(h.$shared=l,s[o]=Object.freeze(Ni(h,l))),h}_resolveAnimations(t,e,i){var n=this.chart;const r=this._cachedDataOpts;var s=`animation-${e}`,o=r[s];if(o)return o;let a;if(!1!==n.options.animation){const l=this.chart.config;o=l.datasetAnimationScopeKeys(this._type,e),o=l.getOptionScopes(this.getDataset(),o);a=l.createResolver(o,this.getContext(t,i,e))}n=new Ti(n,a&&a.animations);return a&&a._cacheable&&(r[s]=Object.freeze(n)),n}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Pi(t)||this.chart._animationsDisabled}updateElement(t,e,i,n){Pi(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!Pi(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;var 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(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){var e,i,n,r=this._data,s=this._cachedMeta.data;for([e,i,n]of this._syncList)this[e](i,n);this._syncList=[];var o=s.length,s=r.length,r=Math.min(s,o);r&&this.parse(0,r),o<s?this._insertElements(o,s-o,t):s<o&&this._removeElements(s,o-s)}_insertElements(t,e,i=!0){var n=this._cachedMeta;const r=n.data,s=t+e;let o;var 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){var i;const n=this._cachedMeta;this._parsing&&(i=n._parsed.splice(t,e),n._stacked&&Oi(n,i)),n.data.splice(t,e)}_onDataPush(){var t=arguments.length;this._syncList.push(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._syncList.push(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._syncList.push(["_removeElements",0,1])}_onDataSplice(t,e){this._syncList.push(["_removeElements",t,e]),this._syncList.push(["_insertElements",t,arguments.length-2])}_onDataUnshift(){this._syncList.push(["_insertElements",0,arguments.length])}}Ii.defaults={},Ii.prototype.datasetElementType=null,Ii.prototype.dataElementType=null;class Ri{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){var{x:e,y:t}=this.getProps(["x","y"],t);return{x:e,y:t}}hasValue(){return Ot(this.x)&&Ot(this.y)}getProps(t,e){const i=this,n=this.$animations;if(!e||!n)return i;const r={};return t.forEach(t=>{r[t]=n[t]&&n[t].active()?n[t]._to:i[t]}),r}}Ri.defaults={},Ri.defaultRoutes=void 0;const ji=new Map;function Hi(t,e,i){return function(t,e){e=e||{};var i=t+JSON.stringify(e);let n=ji.get(i);return n||(n=new Intl.NumberFormat(t,e),ji.set(i,n)),n}(e,i).format(t)}const Fi={values(t){return q(t)?t:""+t},numeric(t,e,i){if(0===t)return"0";var n,r=this.chart.options.locale;let s,o=t;1<i.length&&(((n=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value)))<1e-4||1e15<n)&&(s="scientific"),o=function(t,e){let i=3<e.length?e[2].value-e[1].value:e[1].value-e[0].value;1<=Math.abs(i)&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i));i=Mt(Math.abs(o)),i=Math.max(Math.min(-1*Math.floor(i),20),0),i={notation:s,minimumFractionDigits:i,maximumFractionDigits:i};return Object.assign(i,this.options.ticks.format),Hi(t,r,i)},logarithmic(t,e,i){if(0===t)return"0";var n=t/Math.pow(10,Math.floor(Mt(t)));return 1==n||2==n||5==n?Fi.numeric.call(this,t,e,i):""}};var $i={formatters:Fi};function zi(t,i){var n=t.options.ticks,r=n.maxTicksLimit||(o=(r=t).options.offset,a=r._tickSize(),o=r._length/a+(o?0:1),a=r._maxLength/a,Math.floor(Math.min(o,a))),s=n.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}(i):[],o=s.length,a=s[0],n=s[o-1],l=[];if(r<o)return function(t,e,i,n){let r=0,s=i[0],o;for(n=Math.ceil(n),o=0;o<t.length;o++)o===s&&(e.push(t[o]),r++,s=i[r*n])}(i,l,s,o/r),l;var c=function(t,e,i){var t=function(t){var 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),n=e.length/i;if(!t)return Math.max(n,1);var r=Lt(t);for(let t=0,e=r.length-1;t<e;t++){var s=r[t];if(n<s)return s}return Math.max(n,1)}(s,i,r);if(0<o){let t,e;var r=1<o?Math.round((n-a)/(o-1)):null;for(Bi(i,l,c,V(r)?0:a-r,a),t=0,e=o-1;t<e;t++)Bi(i,l,c,s[t],s[t+1]);return Bi(i,l,c,n,V(r)?i.length:n+r),l}return Bi(i,l,c),l}function Bi(t,e,i,n,r){var s=K(n,0),o=Math.min(K(r,t.length),t.length);let a=0,l,c,h;for(i=Math.ceil(i),r&&(i=(l=r-n)/Math.floor(l/i)),h=s;h<0;)a++,h=Math.round(s+a*i);for(c=Math.max(s,0);c<o;c++)c===h&&(e.push(t[c]),a++,h=Math.round(s+a*i))}yt.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:$i.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),yt.route("scale.ticks","color","","color"),yt.route("scale.grid","color","","borderColor"),yt.route("scale.grid","borderColor","","borderColor"),yt.route("scale.title","color","","color"),yt.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),yt.describe("scales",{_fallback:"scale"});const Wi=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function Vi(t,e){const i=[];var n=t.length/e,r=t.length;let s=0;for(;s<r;s+=n)i.push(t[Math.floor(s)]);return i}function qi(t){return t.drawTicks?t.tickLength:0}function Ui(t,e){if(!t.display)return 0;var i=$e(t.font,e),e=Fe(t.padding);return(q(t.text)?t.text.length:1)*i.lineHeight+e.height}class Yi extends Ri{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){var e=this;e.options=t.setContext(e.getContext()),e.axis=t.axis,e._userMin=e.parse(t.min),e._userMax=e.parse(t.max),e._suggestedMin=e.parse(t.suggestedMin),e._suggestedMax=e.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){var{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:n}=this,t=X(t,Number.POSITIVE_INFINITY),e=X(e,Number.NEGATIVE_INFINITY),i=X(i,Number.POSITIVE_INFINITY),n=X(n,Number.NEGATIVE_INFINITY);return{min:X(t,i),max:X(e,n),minDefined:Y(t),maxDefined:Y(e)}}getMinMax(i){var n;let{min:r,max:s,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:r,max:s};const l=this.getMatchingVisibleMetas();for(let t=0,e=l.length;t<e;++t)n=l[t].controller.getMinMax(this,i),o||(r=Math.min(r,n.min)),a||(s=Math.max(s,n.max));return{min:X(r,X(s,r)),max:X(s,X(r,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){J(this.options.beforeUpdate,[this])}update(t,e,i){var n=this,r=n.options.ticks,s=r.sampleSize;n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),n.ticks=null,n._labelSizes=null,n._gridLineItems=null,n._labelItems=null,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n._maxLength=n.isHorizontal()?n.width+i.left+i.right:n.height+i.top+i.bottom,n._dataLimitsCached||(n.beforeDataLimits(),n.determineDataLimits(),n.afterDataLimits(),n._range=Be(n,n.options.grace),n._dataLimitsCached=!0),n.beforeBuildTicks(),n.ticks=n.buildTicks()||[],n.afterBuildTicks();i=s<n.ticks.length;n._convertTicksToLabels(i?Vi(n.ticks,s):n.ticks),n.configure(),n.beforeCalculateLabelRotation(),n.calculateLabelRotation(),n.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(n.ticks=zi(n,n.ticks),n._labelSizes=null),i&&n._convertTicksToLabels(n.ticks),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate()}configure(){var t=this;let e=t.options.reverse,i,n;t.isHorizontal()?(i=t.left,n=t.right):(i=t.top,n=t.bottom,e=!e),t._startPixel=i,t._endPixel=n,t._reversePixels=e,t._length=n-i,t._alignToPixels=t.options.alignToPixels}afterUpdate(){J(this.options.afterUpdate,[this])}beforeSetDimensions(){J(this.options.beforeSetDimensions,[this])}setDimensions(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0}afterSetDimensions(){J(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),J(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){J(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){var e=this.options.ticks;let i,n,r;for(i=0,n=t.length;i<n;i++)r=t[i],r.label=J(e.callback,[r.value,i,t],this);for(i=0;i<n;i++)V(t[i].label)&&(t.splice(i,1),n--,i--)}afterTickToLabelConversion(){J(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){J(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){var t,e,i,n,r,s=this,o=s.options,a=o.ticks,l=s.ticks.length,c=a.minRotation||0,h=a.maxRotation;let u=c;!s._isVisible()||!a.display||h<=c||l<=1||!s.isHorizontal()?s.labelRotation=c:(e=(t=s._getLabelSizes()).widest.width,i=t.highest.height,n=Vt(s.chart.width-e,0,s.maxWidth),(r=o.offset?s.maxWidth/l:n/(l-1))<e+6&&(r=n/(l-(o.offset?.5:1)),o=s.maxHeight-qi(o.grid)-a.padding-Ui(o.title,s.chart.options.font),e=Math.sqrt(e*e+i*i),u=jt(Math.min(Math.asin(Math.min((t.highest.height+6)/r,1)),Math.asin(Math.min(o/e,1))-Math.asin(i/e))),u=Math.max(c,Math.min(h,u))),s.labelRotation=u)}afterCalculateLabelRotation(){J(this.options.afterCalculateLabelRotation,[this])}beforeFit(){J(this.options.beforeFit,[this])}fit(){var t=this;const e={width:0,height:0};var i,n,r,s,o,{chart:a,options:{ticks:l,title:c,grid:h}}=t,u=t._isVisible(),d=t.isHorizontal();u&&(s=Ui(c,a.options.font),d?(e.width=t.maxWidth,e.height=qi(h)+s):(e.height=t.maxHeight,e.width=qi(h)+s),l.display&&t.ticks.length&&({first:i,last:n,widest:r,highest:o}=t._getLabelSizes(),u=2*l.padding,c=Rt(t.labelRotation),h=Math.cos(c),s=Math.sin(c),d?(c=l.mirror?0:s*r.width+h*o.height,e.height=Math.min(t.maxHeight,e.height+c+u)):(o=l.mirror?0:h*r.width+s*o.height,e.width=Math.min(t.maxWidth,e.width+o+u)),t._calculatePadding(i,n,s,h))),t._handleMargins(),d?(t.width=t._length=a.width-t._margins.left-t._margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=a.height-t._margins.top-t._margins.bottom)}_calculatePadding(i,n,r,s){var o=this,{ticks:{align:a,padding:l},position:c}=o.options,h=0!==o.labelRotation,u="top"!==c&&"x"===o.axis;if(o.isHorizontal()){var d=o.getPixelForTick(0)-o.left,c=o.right-o.getPixelForTick(o.ticks.length-1);let t=0,e=0;h?e=u?(t=s*i.width,r*n.height):(t=r*i.height,s*n.width):"start"===a?e=n.width:"end"===a?t=i.width:(t=i.width/2,e=n.width/2),o.paddingLeft=Math.max((t-d+l)*o.width/(o.width-d),0),o.paddingRight=Math.max((e-c+l)*o.width/(o.width-c),0)}else{let t=n.height/2,e=i.height/2;"start"===a?(t=0,e=i.height):"end"===a&&(t=n.height,e=0),o.paddingTop=t+l,o.paddingBottom=e+l}}_handleMargins(){var t=this;t._margins&&(t._margins.left=Math.max(t.paddingLeft,t._margins.left),t._margins.top=Math.max(t.paddingTop,t._margins.top),t._margins.right=Math.max(t.paddingRight,t._margins.right),t._margins.bottom=Math.max(t.paddingBottom,t._margins.bottom))}afterFit(){J(this.options.afterFit,[this])}isHorizontal(){var{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t),this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){var i=this.options.ticks.sampleSize;let t=this.ticks;i<t.length&&(t=Vi(t,i)),this._labelSizes=e=this._computeLabelSizes(t,t.length)}return e}_computeLabelSizes(t,e){const{ctx:i,_longestTextCache:n}=this,r=[],s=[];let o=0,a=0,l,c,h,u,d,f,p,g,m,v,b;for(l=0;l<e;++l){if(u=t[l].label,d=this._resolveTickFontOptions(l),i.font=f=d.string,p=n[f]=n[f]||{data:{},gc:[]},g=d.lineHeight,m=v=0,V(u)||q(u)){if(q(u))for(c=0,h=u.length;c<h;++c)V(b=u[c])||q(b)||(m=Yt(i,p.data,p.gc,m,b),v+=g)}else m=Yt(i,p.data,p.gc,m,u),v=g;r.push(m),s.push(v),o=Math.max(m,o),a=Math.max(v,a)}var y;w=n,y=e,Z(w,t=>{const e=t.gc;var i=e.length/2;let n;if(y<i){for(n=0;n<i;++n)delete t.data[e[n]];e.splice(0,i)}});var x=r.indexOf(o),_=s.indexOf(a),w=t=>({width:r[t]||0,height:s[t]||0});return{first:w(0),last:w(e-1),widest:w(x),highest:w(_),widths:r,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);t=this._startPixel+t*this._length;return qt(this._alignToPixels?Kt(this.chart,t,0):t)}getDecimalForPixel(t){t=(t-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){var{min:t,max:e}=this;return t<0&&e<0?e:0<t&&0<e?t:0}getContext(t){var e,i,n=this.ticks||[];if(0<=t&&t<n.length){const r=n[t];return r.$context||(r.$context=(n=this.getContext(),i=t,e=r,Object.assign(Object.create(n),{tick:e,index:i,type:"tick"})))}return this.$context||(this.$context=(e=this.chart.getContext(),i=this,Object.assign(Object.create(e),{scale:i,type:"scale"})))}_tickSize(){var t=this.options.ticks,e=Rt(this.labelRotation),i=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),r=this._getLabelSizes(),e=t.autoSkipPadding||0,t=r?r.widest.width+e:0,e=r?r.highest.height+e:0;return this.isHorizontal()?t*n<e*i?t/i:e/n:e*n<t*i?e/i:t/n}_isVisible(){var t=this.options.display;return"auto"!==t?!!t:0<this.getMatchingVisibleMetas().length}_computeGridLineItems(t){var e=this,i=e.axis;const n=e.chart,{grid:r,position:s}=e.options;var o=r.offset,a=e.isHorizontal(),l=e.ticks.length+(o?1:0),c=qi(r);const h=[];var u=r.setContext(e.getContext());const d=u.drawBorder?u.borderWidth:0;function f(t){return Kt(n,t,d)}var p,g=d/2;let m,v,b,y,x,_,w,k,T,S,E,C;for("top"===s?(m=f(e.bottom),_=e.bottom-c,k=m-g,S=f(t.top)+g,C=t.bottom):"bottom"===s?(m=f(e.top),S=t.top,C=f(t.bottom)-g,_=m+g,k=e.top+c):"left"===s?(m=f(e.right),x=e.right-c,w=m-g,T=f(t.left)+g,E=t.right):"right"===s?(m=f(e.left),T=t.left,E=f(t.right)-g,x=m+g,w=e.left+c):"x"===i?("center"===s?m=f((t.top+t.bottom)/2+.5):U(s)&&(p=s[u=Object.keys(s)[0]],m=f(e.chart.scales[u].getPixelForValue(p))),S=t.top,C=t.bottom,_=m+g,k=_+c):"y"===i&&("center"===s?m=f((t.left+t.right)/2):U(s)&&(i=s[p=Object.keys(s)[0]],m=f(e.chart.scales[p].getPixelForValue(i))),x=m-g,w=x-c,T=t.left,E=t.right),v=0;v<l;++v){var M=r.setContext(e.getContext(v)),A=M.lineWidth,D=M.color,L=r.borderDash||[],O=M.borderDashOffset,P=M.tickWidth,N=M.tickColor,I=M.tickBorderDash||[],M=M.tickBorderDashOffset;void 0!==(b=function(t,e,i){var n=t.ticks.length,r=Math.min(e,n-1),s=t._startPixel,o=t._endPixel;let a=t.getPixelForTick(r),l;if(!(i&&(l=1===n?Math.max(a-s,o-a):0===e?(t.getPixelForTick(1)-a)/2:(a-t.getPixelForTick(r-1))/2,a+=r<e?l:-l,a<s-1e-6||a>o+1e-6)))return a}(e,v,o))&&(y=Kt(n,b,A),a?x=w=T=E=y:_=k=S=C=y,h.push({tx1:x,ty1:_,tx2:w,ty2:k,x1:T,y1:S,x2:E,y2:C,width:A,color:D,borderDash:L,borderDashOffset:O,tickWidth:P,tickColor:N,tickBorderDash:I,tickBorderDashOffset:M}))}return e._ticksLength=l,e._borderValue=m,h}_computeLabelItems(t){var e=this,i=e.axis,n=e.options;const{position:r,ticks:s}=n;var o,a,l=e.isHorizontal(),c=e.ticks,{align:h,crossAlign:u,padding:d,mirror:f}=s,p=qi(n.grid),n=p+d,d=f?-d:n,g=-Rt(e.labelRotation);const m=[];let v,b,y,x,_,w,k,T,S,E,C,M="middle";"top"===r?(_=e.bottom-d,w=e._getXAxisLabelAlignment()):"bottom"===r?(_=e.top+d,w=e._getXAxisLabelAlignment()):"left"===r?(o=e._getYAxisLabelAlignment(p),w=o.textAlign,x=o.x):"right"===r?(a=e._getYAxisLabelAlignment(p),w=a.textAlign,x=a.x):"x"===i?("center"===r?_=(t.top+t.bottom)/2+n:U(r)&&(a=r[o=Object.keys(r)[0]],_=e.chart.scales[o].getPixelForValue(a)+n),w=e._getXAxisLabelAlignment()):"y"===i&&("center"===r?x=(t.left+t.right)/2-n:U(r)&&(n=r[t=Object.keys(r)[0]],x=e.chart.scales[t].getPixelForValue(n)),w=e._getYAxisLabelAlignment(p).textAlign),"y"===i&&("start"===h?M="top":"end"===h&&(M="bottom"));var A=e._getLabelSizes();for(v=0,b=c.length;v<b;++v){y=c[v].label;var D=s.setContext(e.getContext(v));k=e.getPixelForTick(v)+s.labelOffset,S=(T=e._resolveTickFontOptions(v)).lineHeight;var L=(E=q(y)?y.length:1)/2,O=D.color,P=D.textStrokeColor,N=D.textStrokeWidth;l?(x=k,C="top"===r?"near"===u||0!=g?-E*S+S/2:"center"===u?-A.highest.height/2-L*S+S:-A.highest.height+S/2:"near"===u||0!=g?S/2:"center"===u?A.highest.height/2-L*S:A.highest.height-E*S,f&&(C*=-1)):(_=k,C=(1-E)*S/2);let i;if(D.showLabelBackdrop){var L=Fe(D.backdropPadding),I=A.heights[v],R=A.widths[v];let t=_+C-L.top,e=x-L.left;switch(M){case"middle":t-=I/2;break;case"bottom":t-=I}switch(w){case"center":e-=R/2;break;case"right":e-=R}i={left:e,top:t,width:R+L.width,height:I+L.height,color:D.backdropColor}}m.push({rotation:g,label:y,font:T,color:O,strokeColor:P,strokeWidth:N,textOffset:C,textAlign:w,textBaseline:M,translation:[x,_],backdrop:i})}return m}_getXAxisLabelAlignment(){var{position:t,ticks:e}=this.options;if(-Rt(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align&&(i="right"),i}_getYAxisLabelAlignment(t){var{position:e,ticks:{crossAlign:i,mirror:n,padding:r}}=this.options,s=t+r,t=this._getLabelSizes().widest.width;let o,a;return"left"===e?n?(o="left",a=this.right+r):(a=this.right-s,"near"===i?o="right":"center"===i?(o="center",a-=t/2):(o="left",a=this.left)):"right"===e?n?(o="right",a=this.left+r):(a=this.left+s,"near"===i?o="left":"center"===i?(o="center",a+=t/2):(o="right",a=this.right)):o="right",{textAlign:o,x:a}}_computeLabelArea(){if(!this.options.ticks.mirror){var 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(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const i=this.ticks;var n=i.findIndex(t=>t.value===e);return 0<=n?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){var e=this.options.grid;const n=this.ctx;var i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,s;var o=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(r=0,s=i.length;r<s;++r){var a=i[r];e.drawOnChartArea&&o({x:a.x1,y:a.y1},{x:a.x2,y:a.y2},a),e.drawTicks&&o({x:a.tx1,y:a.ty1},{x:a.tx2,y:a.ty2},{color:a.tickColor,width:a.tickWidth,borderDash:a.tickBorderDash,borderDashOffset:a.tickBorderDashOffset})}}drawBorder(){const{chart:r,ctx:s,options:{grid:o}}=this;var a=o.setContext(this.getContext()),l=o.drawBorder?a.borderWidth:0;if(l){var c=o.setContext(this.getContext(0)).lineWidth,h=this._borderValue;let t,e,i,n;this.isHorizontal()?(t=Kt(r,this.left,l)-l/2,e=Kt(r,this.right,c)+c/2,i=n=h):(i=Kt(r,this.top,l)-l/2,n=Kt(r,this.bottom,c)+c/2,t=e=h),s.save(),s.lineWidth=a.borderWidth,s.strokeStyle=a.borderColor,s.beginPath(),s.moveTo(t,i),s.lineTo(e,n),s.stroke(),s.restore()}}drawLabels(i){if(this.options.ticks.display){const c=this.ctx;var n=this._computeLabelArea();n&&Zt(c,n);var r=this._labelItems||(this._labelItems=this._computeLabelItems(i));let t,e;for(t=0,e=r.length;t<e;++t){var s=r[t],o=s.font,a=s.label;s.backdrop&&(c.fillStyle=s.backdrop.color,c.fillRect(s.backdrop.left,s.backdrop.top,s.backdrop.width,s.backdrop.height));var l=s.textOffset;ne(c,a,0,l,o,s)}n&&te(c)}}drawTitle(){var{ctx:e,options:{position:i,title:n,reverse:r}}=this;if(n.display){var s=$e(n.font),o=Fe(n.padding),a=n.align;let t=s.lineHeight/2;"bottom"===i?(t+=o.bottom,q(n.text)&&(t+=s.lineHeight*(n.text.length-1))):t+=o.top;var{titleX:l,titleY:c,maxWidth:h,rotation:o}=function(t,e,i,n){var{top:r,left:s,bottom:o,right:a}=t;let l=0,c,h,u;return t.isHorizontal()?(h=O(n,s,a),u=Wi(t,i,e),c=a-s):(h=Wi(t,i,e),u=O(n,o,r),l="left"===i?-St:St),{titleX:h,titleY:u,maxWidth:c,rotation:l}}(this,t,i,a);ne(e,n.text,0,0,s,{color:n.color,maxWidth:h,rotation:o,textAlign:function(t,e,i){let n=d(t);return(i&&"right"!==e||!i&&"right"===e)&&(n="left"===(e=n)?"right":"right"===e?"left":e),n}(a,i,r),textBaseline:"middle",translation:[l,c]})}}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const e=this;var t=e.options,i=t.ticks&&t.ticks.z||0,t=t.grid&&t.grid.z||0;return e._isVisible()&&e.draw===Yi.prototype.draw?[{z:t,draw(t){e.drawBackground(),e.drawGrid(t),e.drawTitle()}},{z:t+1,draw(){e.drawBorder()}},{z:i,draw(t){e.drawLabels(t)}}]:[{z:i,draw(t){e.draw(t)}}]}getMatchingVisibleMetas(t){var e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID";const n=[];let r,s;for(r=0,s=e.length;r<s;++r){var o=e[r];o[i]!==this.id||t&&o.type!==t||n.push(o)}return n}_resolveTickFontOptions(t){return $e(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){var t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}function Xi(i,n=[""],e=i,r,s=()=>i[0]){dt(r)||(r=sn("_fallback",i));var t={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:i,_rootScopes:e,_fallback:r,_getTarget:s,override:t=>Xi([t,...i],n,e,r)};return new Proxy(t,{deleteProperty(t,e){return delete t[e],delete t._keys,delete i[0][e],!0},get(t,e){return Zi(t,e,()=>function(t,e,i,n){var r;for(const s of e)if(r=sn(Gi(s,t),i),dt(r))return Ji(t,r)?nn(i,n,t,r):r}(e,n,i,t))},getOwnPropertyDescriptor(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf(){return Reflect.getPrototypeOf(i[0])},has(t,e){return on(t).includes(e)},ownKeys(t){return on(t)},set(t,e,i){const n=t._storage||(t._storage=s());return n[e]=i,delete t[e],delete t._keys,!0}})}function Ki(n,e,i,r){var t={_cacheable:!1,_proxy:n,_context:e,_subProxy:i,_stack:new Set,_descriptors:Qi(n,r),setContext:t=>Ki(n,t,i,r),override:t=>Ki(n.override(t),e,i,r)};return new Proxy(t,{deleteProperty(t,e){return delete t[e],delete n[e],!0},get(t,e,i){return Zi(t,e,()=>function(t,e,i){const{_proxy:n,_context:r,_subProxy:s,_descriptors:o}=t;let a=n[e];ft(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: "+[...a].join("->")+"->"+t);a.add(t),e=e(s,o||n),a.delete(t),U(e)&&(e=nn(r._scopes,r,t,e));return e}(e,a,t,i));q(a)&&a.length&&(a=function(t,e,i,n){const{_proxy:r,_context:s,_subProxy:o,_descriptors:a}=i;if(dt(s.index)&&n(t))e=e[s.index%e.length];else if(U(e[0])){const h=e;var l=r._scopes.filter(t=>t!==h);e=[];for(const u of h){var c=nn(l,r,t,u);e.push(Ki(c,s,o&&o[t],a))}}return e}(e,a,t,o.isIndexable));Ji(e,a)&&(a=Ki(a,r,s&&s[e],o));return a}(t,e,i))},getOwnPropertyDescriptor(t,e){return t._descriptors.allKeys?Reflect.has(n,e)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,e)},getPrototypeOf(){return Reflect.getPrototypeOf(n)},has(t,e){return Reflect.has(n,e)},ownKeys(){return Reflect.ownKeys(n)},set(t,e,i){return n[e]=i,delete t[e],!0}})}function Qi(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:ft(i)?i:()=>i,isIndexable:ft(n)?n:()=>n}}const Gi=(t,e)=>t?t+ut(e):e,Ji=(t,e)=>U(e)&&"adapters"!==t;function Zi(t,e,i){let n=t[e];return dt(n)||(n=i(),dt(n)&&(t[e]=n)),n}function tn(t,e,i){return ft(t)?t(e,i):t}const en=(t,e)=>!0===t?e:"string"==typeof t?ht(e,t):void 0;function nn(t,e,i,n){var r=e._rootScopes,s=tn(e._fallback,i,n),o=[...t,...r];const a=new Set;a.add(n);t=rn(a,o,i,s||i);return null!==t&&((!dt(s)||s===i||null!==(t=rn(a,o,s,t)))&&Xi([...a],[""],r,s,()=>function(t,e,i){const n=t._getTarget();e in n||(n[e]={});e=n[e];if(q(e)&&U(i))return i;return e}(e,i,n)))}function rn(t,e,i,n){for(;i;)i=function(t,e,i,n){for(const o of e){var r=en(i,o);if(r){t.add(r);var s=tn(r._fallback,i,r);if(dt(s)&&s!==i&&s!==n)return s}else if(!1===r&&dt(n)&&i!==n)return null}return!1}(t,e,i,n);return i}function sn(t,e){for(const n of e)if(n){var i=n[t];if(dt(i))return i}}function on(t){let e=t._keys;return e=e||(t._keys=function(t){const e=new Set;for(const i of t)for(const n of Object.keys(i).filter(t=>!t.startsWith("_")))e.add(n);return[...e]}(t._scopes)),e}const an=Number.EPSILON||1e-14,ln=(t,e)=>e<t.length&&!t[e].skip&&t[e],cn=t=>"x"===t?"y":"x";function hn(t,e,i,n){var r=t.skip?e:t,s=e,t=i.skip?e:i,e=$t(s,r),i=$t(t,s);let o=e/(e+i),a=i/(e+i);o=isNaN(o)?0:o,a=isNaN(a)?0:a;i=n*o,n*=a;return{previous:{x:s.x-i*(t.x-r.x),y:s.y-i*(t.y-r.y)},next:{x:s.x+n*(t.x-r.x),y:s.y+n*(t.y-r.y)}}}function un(t,e="x"){var i,n=cn(e),r=t.length;const s=Array(r).fill(0),o=Array(r);let a,l,c,h=ln(t,0);for(a=0;a<r;++a)l=c,c=h,h=ln(t,a+1),c&&(h&&(i=h[e]-c[e],s[a]=0!=i?(h[n]-c[n])/i:0),o[a]=l?h?At(s[a-1])!==At(s[a])?0:(s[a-1]+s[a])/2:s[a-1]:s[a]);!function(e,i,n){var r,s,o,a=e.length;let l=ln(e,0);for(let t=0;t<a-1;++t)o=l,l=ln(e,t+1),o&&l&&(Pt(i[t],0,an)?n[t]=n[t+1]=0:(r=n[t]/i[t],s=n[t+1]/i[t],(o=Math.pow(r,2)+Math.pow(s,2))<=9||(o=3/Math.sqrt(o),n[t]=r*o*i[t],n[t+1]=s*o*i[t])))}(t,s,o),function(e,i,n="x"){var r,s,o=cn(n),a=e.length;let l,c,h,u=ln(e,0);for(let t=0;t<a;++t)c=h,h=u,u=ln(e,t+1),h&&(r=h[n],s=h[o],c&&(l=(r-c[n])/3,h[`cp1${n}`]=r-l,h[`cp1${o}`]=s-l*i[t]),u&&(l=(u[n]-r)/3,h[`cp2${n}`]=r+l,h[`cp2${o}`]=s+l*i[t]))}(t,o,e)}function dn(t,e,i){return Math.max(Math.min(t,i),e)}function fn(e,i,t,n,r){let s,o,a,l;if(i.spanGaps&&(e=e.filter(t=>!t.skip)),"monotone"===i.cubicInterpolationMode)un(e,r);else{let t=n?e[e.length-1]:e[0];for(s=0,o=e.length;s<o;++s)a=e[s],l=hn(t,a,e[Math.min(s+1,o-(n?0:1))%o],i.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,t=a}i.capBezierPoints&&function(t,e){let i,n,r,s,o,a=Jt(t[0],e);for(i=0,n=t.length;i<n;++i)o=s,s=a,a=i<n-1&&Jt(t[i+1],e),s&&(r=t[i],o&&(r.cp1x=dn(r.cp1x,e.left,e.right),r.cp1y=dn(r.cp1y,e.top,e.bottom)),a&&(r.cp2x=dn(r.cp2x,e.left,e.right),r.cp2y=dn(r.cp2y,e.top,e.bottom)))}(e,t)}function pn(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function gn(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:("middle"===n?i<.5?t:e:"after"===n?i<1?t:e:0<i?e:t).y}}function mn(t,e,i,n){var r={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},t=pn(t,r,i),r=pn(r,s,i),e=pn(s,e,i),t=pn(t,r,i),e=pn(r,e,i);return pn(t,e,i)}function vn(t,e,i){return t?(n=e,r=i,{x(t){return n+n+r-t},setWidth(t){r=t},textAlign(t){return"center"===t?t:"right"===t?"left":"right"},xPlus(t,e){return t-e},leftForLtr(t,e){return t-e}}):{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}};var n,r}function bn(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 yn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function xn(t){return"angle"===t?{between:Wt,compare:zt,normalize:Bt}:{between:(t,e,i)=>t>=Math.min(e,i)&&t<=Math.max(i,e),compare:(t,e)=>t-e,normalize:t=>t}}function _n({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 wn(t,i,n){if(!n)return[t];const{property:r,start:s,end:o}=n;var a=i.length;const{compare:l,between:c,normalize:h}=xn(r);var{start:n,end:u,loop:d,style:f}=function(t,e,i){var{property:n,start:r,end:s}=i;const{between:o,normalize:a}=xn(n);var l=e.length;let{start:c,end:h,loop:u}=t,d,f;if(u){for(c+=l,h+=l,d=0,f=l;d<f&&o(a(e[c%l][n]),r,s);++d)c--,h--;c%=l,h%=l}return h<c&&(h+=l),{start:c,end:h,loop:u,style:t.style}}(t,i,n);const p=[];let g=!1,m=null,v,b,y;var x=()=>g||c(s,y,v)&&0!==l(s,y),_=()=>!g||0===l(o,v)||c(o,y,v);for(let t=n,e=n;t<=u;++t)(b=i[t%a]).skip||(v=h(b[r]),v!==y&&(g=c(v,s,o),null===m&&x()&&(m=0===l(v,s)?t:e),null!==m&&_()&&(p.push(_n({start:m,end:t,loop:d,count:a,style:f})),m=null),e=t,y=v));return null!==m&&p.push(_n({start:m,end:u,loop:d,count:a,style:f})),p}function kn(e,i){const n=[];var r=e.segments;for(let t=0;t<r.length;t++){var s=wn(r[t],e.points,i);s.length&&n.push(...s)}return n}function Tn(t,e){var i=t.points,n=t.options.spanGaps,r=i.length;if(!r)return[];var 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 Sn(!0===n?[{start:o,end:a,loop:s}]:function(t,e,i,n){var r=t.length;const s=[];let o=e,a=t[e],l;for(l=e+1;l<=i;++l){var c=t[l%r];c.skip||c.stop?a.skip||(n=!1,s.push({start:e%r,end:(l-1)%r,loop:n}),e=o=c.stop?l:null):(o=l,a.skip&&(e=l)),a=c}return null!==o&&s.push({start:e%r,end:o%r,loop:n}),s}(i,o,a<o?a+r:a,!!t._fullLoop&&0===o&&a===r-1),i,e)}function Sn(t,e,i){return i&&i.setContext&&e?function(t,n,r){const s=n.length,o=[];let a=t[0].start,l=a;for(const h of t){let t,e,i=n[a%s];for(l=a+1;l<=h.end;l++){var c=n[l%s];e=function(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}(r.setContext({type:"segment",p0:i,p1:c})),function(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}(e,t)&&(o.push({start:a,end:l-1,loop:h.loop,style:t}),t=e,a=l-1),i=c,t=e}a<l-1&&(o.push({start:a,end:l-1,loop:h.loop,style:e}),a=l-1)}return o}(t,e,i):t}var En=Object.freeze({__proto__:null,easingEffects:yi,color:$,getHoverColor:z,noop:B,uid:W,isNullOrUndef:V,isArray:q,isObject:U,isFinite:Y,finiteOrDefault:X,valueOrDefault:K,toPercentage:Q,toDimension:G,callback:J,each:Z,_elementsEqual:tt,clone:et,_merger:nt,merge:rt,mergeIf:st,_mergerIf:ot,_deprecated:function(t,e,i,n){},resolveObjectKey:ht,_capitalize:ut,defined:dt,isFunction:ft,setsEqual:pt,toFontString:Ut,_measureText:Yt,_longestText:Xt,_alignPixel:Kt,clearCanvas:Qt,drawPoint:Gt,_isPointInArea:Jt,clipArea:Zt,unclipArea:te,_steppedLineTo:ee,_bezierCurveTo:ie,renderText:ne,addRoundedRectPath:re,_lookup:se,_lookupByKey:oe,_rlookupByKey:ae,_filterBetween:le,listenArrayEvents:he,unlistenArrayEvents:ue,_arrayUnique:de,_createResolver:Xi,_attachContext:Ki,_descriptors:Qi,splineCurve:hn,splineCurveMonotone:un,_updateBezierControlPoints:fn,_getParentNode:fe,getStyle:me,getRelativePosition:xe,getMaximumSize:we,retinaScale:ke,supportsEventListenerOptions:Te,readUsedSize:Se,fontString:function(t,e,i){return e+" "+t+"px "+i},requestAnimFrame:o,throttled:a,debounce:l,_toLeftRightCenter:d,_alignStartEnd:O,_textX:P,_pointInLine:pn,_steppedInterpolation:gn,_bezierInterpolation:mn,formatNumber:Hi,toLineHeight:Ne,_readValueToProps:Re,toTRBL:je,toTRBLCorners:He,toPadding:Fe,toFont:$e,resolve:ze,_addGrace:Be,PI:xt,TAU:_t,PITAU:wt,INFINITY:kt,RAD_PER_DEG:Tt,HALF_PI:St,QUARTER_PI:Et,TWO_THIRDS_PI:Ct,log10:Mt,sign:At,niceNum:Dt,_factorize:Lt,isNumber:Ot,almostEquals:Pt,almostWhole:Nt,_setMinAndMaxByKey:It,toRadians:Rt,toDegrees:jt,_decimalPlaces:Ht,getAngleFromPoint:Ft,distanceBetweenPoints:$t,_angleDiff:zt,_normalizeAngle:Bt,_angleBetween:Wt,_limitValue:Vt,_int16Range:qt,getRtlAdapter:vn,overrideTextDirection:bn,restoreTextDirection:yn,_boundSegment:wn,_boundSegments:kn,_computeSegments:Tn});class Cn{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){var e=Object.getPrototypeOf(t);let i;"id"in(r=e)&&"defaults"in r&&(i=this.register(e));const n=this.items;var r=t.id,e=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in n||(function(t,e,i){i=rt(Object.create(null),[i?yt.get(i):{},yt.get(e),t.defaults]);yt.set(e,i),t.defaultRoutes&&function(o,a){Object.keys(a).forEach(t=>{const e=t.split(".");var i=e.pop(),n=[o].concat(e).join(".");const r=a[t].split(".");var s=r.pop(),t=r.join(".");yt.route(n,i,t,s)})}(e,t.defaultRoutes);t.descriptors&&yt.describe(e,t.descriptors)}(n[r]=t,e,i),this.override&&yt.override(t.id,t.overrides)),e}get(t){return this.items[t]}unregister(t){const e=this.items;var i=t.id,t=this.scope;i in e&&delete e[i],t&&i in yt[t]&&(delete yt[t][i],this.override&&delete gt[i])}}var Mn=new class{constructor(){this.controllers=new Cn(Ii,"datasets",!0),this.elements=new Cn(Ri,"elements"),this.plugins=new Cn(Object,"plugins"),this.scales=new Cn(Yi,"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(i,t,n){const r=this;[...t].forEach(t=>{const e=n||r._getRegistryForType(t);n||e.isForType(t)||e===r.plugins&&t.id?r._exec(i,e,t):Z(t,t=>{var e=n||r._getRegistryForType(t);r._exec(i,e,t)})})}_exec(t,e,i){var n=ut(t);J(i["before"+n],[],i),e[t](i),J(i["after"+n],[],i)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const i=this._typedRegistries[t];if(i.isForType(e))return i}return this.plugins}_get(t,e,i){e=e.get(t);if(void 0===e)throw new Error('"'+t+'" is not a registered '+i+".");return e}};class An{constructor(){this._init=[]}notify(t,e,i,n){var r=this;"beforeInit"===e&&(r._init=r._createDescriptors(t,!0),r._notify(r._init,t,"install"));n=n?r._descriptors(t).filter(n):r._descriptors(t),i=r._notify(n,t,e,i);return"destroy"===e&&(r._notify(n,t,"stop"),r._notify(r._init,t,"uninstall")),i}_notify(t,e,i,n){n=n||{};for(const s of t){var r=s.plugin;if(!1===J(r[i],[e,n,s.options],r)&&n.cancelable)return!1}return!0}invalidate(){V(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;var e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){var i=t&&t.config,n=K(i.options&&i.options.plugins,{}),i=function(t){const e=[],i=Object.keys(Mn.plugins.items);for(let t=0;t<i.length;t++)e.push(Mn.getPlugin(i[t]));var n=t.plugins||[];for(let t=0;t<n.length;t++){var r=n[t];-1===e.indexOf(r)&&e.push(r)}return e}(i);return!1!==n||e?function(e,i,n,r){const s=[],o=e.getContext();for(let t=0;t<i.length;t++){var a=i[t],l=a.id,l=function(t,e){return e||!1!==t?!0!==t?t:{}:null}(n[l],r);null!==l&&s.push({plugin:a,options:function(t,e,i,n){e=t.pluginScopeKeys(e),e=t.getOptionScopes(i,e);return t.createResolver(e,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}(e.config,a,l,o)})}return s}(t,i,n,e):[]}_notifyStateChanges(t){var e=this._oldCache||[],i=this._cache,n=(t,i)=>t.filter(e=>!i.some(t=>e.plugin.id===t.plugin.id));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function Dn(t,e){var i=yt.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Ln(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(e=e.position)||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0)||t.charAt(0).toLowerCase()}function On(e,i){const s=gt[e.type]||{scales:{}},o=i.scales||{},a=Dn(e.type,i),l=Object.create(null),c=Object.create(null);return Object.keys(o).forEach(t=>{var e,i=o[t],n=Ln(t,i),e=(e=n,r=a,e===r?"_index_":"_value_"),r=s.scales||{};l[n]=l[n]||t,c[t]=st(Object.create(null),[{axis:n},i,r[n],r[e]])}),e.data.datasets.forEach(n=>{var t=n.type||e.type;const r=n.indexAxis||Dn(t,i),s=(gt[t]||{}).scales||{};Object.keys(s).forEach(t=>{var e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,r),i=n[e+"AxisID"]||l[e]||e;c[i]=c[i]||Object.create(null),st(c[i],[{axis:e},o[i],s[t]])})}),Object.keys(c).forEach(t=>{t=c[t];st(t,[yt.scales[t.type],yt.scale])}),c}function Pn(t){const e=t.options||(t.options={});e.plugins=K(e.plugins,{}),e.scales=On(t,e)}function Nn(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const In=new Map,Rn=new Set;function jn(t,e){let i=In.get(t);return i||(i=e(),In.set(t,i),Rn.add(i)),i}const Hn=(t,e,i)=>{i=ht(e,i);void 0!==i&&t.add(i)};class Fn{constructor(t){this._config=((t=(t=t)||{}).data=Nn(t.data),Pn(t),t),this._scopeCache=new Map,this._resolverCache=new Map}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=Nn(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){var t=this._config;this.clearCache(),Pn(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return jn(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return jn(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return jn(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return jn(`${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(e,t,i){const{options:n,type:r}=this,s=this._cachedScopes(e,i);i=s.get(t);if(i)return i;const o=new Set;t.forEach(t=>{e&&(o.add(e),t.forEach(t=>Hn(o,e,t))),t.forEach(t=>Hn(o,n,t)),t.forEach(t=>Hn(o,gt[r]||{},t)),t.forEach(t=>Hn(o,yt,t)),t.forEach(t=>Hn(o,mt,t))});i=[...o];return Rn.has(t)&&s.set(t,i),i}chartOptionScopes(){var{options:t,type:e}=this;return[t,gt[e]||{},yt.datasets[e]||{},{type:e},yt,mt]}resolveNamedOptions(t,e,i,n=[""]){const r={$shared:!0};var{resolver:s,subPrefixes:n}=$n(this._resolverCache,t,n);let o=s;!function(t,e){const{isScriptable:i,isIndexable:n}=Qi(t);for(const r of e)if(i(r)&&ft(t[r])||n(r)&&q(t[r]))return!0;return!1}(s,e)||(r.$shared=!1,i=ft(i)?i():i,n=this.createResolver(t,i,n),o=Ki(s,i,n));for(const a of e)r[a]=o[a];return r}createResolver(t,e,i=[""],n){var{resolver:i}=$n(this._resolverCache,t,i);return U(e)?Ki(i,e,void 0,n):i}}function $n(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));t=i.join();let r=n.get(t);return r||(e=Xi(e,i),r={resolver:e,subPrefixes:i.filter(t=>!t.toLowerCase().includes("hover"))},n.set(t,r)),r}const zn=["top","bottom","left","right","chartArea"];function Bn(t,e){return"top"===t||"bottom"===t||-1===zn.indexOf(t)&&"x"===e}function Wn(i,n){return function(t,e){return t[i]===e[i]?t[n]-e[n]:t[i]-e[i]}}function Vn(t){const e=t.chart;var i=e.options.animation;e.notifyPlugins("afterRender"),J(i&&i.onComplete,[t],e)}function qn(t){var e=t.chart,i=e.options.animation;J(i&&i.onProgress,[t],e)}function Un(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Yn(t){return Un()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t=t&&t.canvas?t.canvas:t}const Xn={},Kn=t=>{const e=Yn(t);return Object.values(Xn).filter(t=>t.canvas===e).pop()};class Qn{constructor(t,e){var i=this;this.config=e=new Fn(e);var n=Yn(t),r=Kn(n);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas can be reused.");var s=e.createResolver(e.chartOptionScopes(),i.getContext());this.platform=i._initializePlatform(n,e);t=i.platform.acquireContext(n,s.aspectRatio),r=t&&t.canvas,e=r&&r.height,n=r&&r.width;this.id=W(),this.ctx=t,this.canvas=r,this.width=n,this.height=e,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.scale=void 0,this._plugins=new An,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=l(()=>this.update("resize"),s.resizeDelay||0),Xn[i.id]=i,t&&r&&(c.listen(i,"complete",Vn),c.listen(i,"progress",qn),i._initialize(),i.attached&&i.update())}get aspectRatio(){var{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:r}=this;return V(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():ke(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}_initializePlatform(t,e){return new(e.platform||(!Un()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ti:pi))}clear(){return Qt(this.canvas,this.ctx),this}stop(){return c.stop(this),this}resize(t,e){c.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){var i=this,n=i.options,r=i.canvas,s=n.maintainAspectRatio&&i.aspectRatio,e=i.platform.getMaximumSize(r,t,e,s),s=n.devicePixelRatio||i.platform.getDevicePixelRatio();i.width=e.width,i.height=e.height,i._aspectRatio=i.aspectRatio,ke(i,s,!0)&&(i.notifyPlugins("resize",{size:e}),J(n.onResize,[i,e],i),i.attached&&i._doResize()&&i.render())}ensureScalesHaveIDs(){Z(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const a=this,l=a.options,n=l.scales,c=a.scales,h=Object.keys(c).reduce((t,e)=>(t[e]=!1,t),{});let t=[];n&&(t=t.concat(Object.keys(n).map(t=>{var e=n[t],i=Ln(t,e),t="r"===i,i="x"===i;return{options:e,dposition:t?"chartArea":i?"bottom":"left",dtype:t?"radialLinear":i?"category":"linear"}}))),Z(t,t=>{const e=t.options;var i=e.id,n=Ln(i,e),r=K(e.type,t.dtype);void 0!==e.position&&Bn(e.position,n)===Bn(t.dposition)||(e.position=t.dposition),h[i]=!0;let s=null;if(i in c&&c[i].type===r)s=c[i];else{const o=Mn.getScale(r);s=new o({id:i,type:r,ctx:a.ctx,chart:a}),c[s.id]=s}s.init(e,l)}),Z(h,(t,e)=>{t||delete c[e]}),Z(c,t=>{Je.configure(a,t,t.options),Je.addBox(a,t)})}_updateMetasets(){const t=this._metasets;var e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),e<i){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(Wn("order","index"))}_removeUnreferencedMetasets(){const i=this,{_metasets:t,data:{datasets:n}}=i;t.length>n.length&&delete i._stacks,t.forEach((e,t)=>{0===n.filter(t=>t===e._dataset).length&&i._destroyDatasetMeta(t)})}buildOrUpdateControllers(){var e=this;const i=[];var n=e.data.datasets;let r,t;for(e._removeUnreferencedMetasets(),r=0,t=n.length;r<t;r++){var s=n[r];let t=e.getDatasetMeta(r);var o=s.type||e.config.type;if(t.type&&t.type!==o&&(e._destroyDatasetMeta(r),t=e.getDatasetMeta(r)),t.type=o,t.indexAxis=s.indexAxis||Dn(o,e.options),t.order=s.order||0,t.index=r,t.label=""+s.label,t.visible=e.isDatasetVisible(r),t.controller)t.controller.updateIndex(r),t.controller.linkScales();else{const a=Mn.getController(o);var{datasetElementType:s,dataElementType:o}=yt.datasets[o];Object.assign(a.prototype,{dataElementType:Mn.getElement(o),datasetElementType:s&&Mn.getElement(s)}),t.controller=new a(e,r),i.push(t.controller)}}return e._updateMetasets(),i}_resetElements(){const i=this;Z(i.data.datasets,(t,e)=>{i.getDatasetMeta(e).controller.reset()},i)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this,e=n.config;e.update(),n._options=e.createResolver(e.chartOptionScopes(),n.getContext()),Z(n.scales,t=>{Je.removeBox(n,t)});var r=n._animationsDisabled=!n.options.animation;n.ensureScalesHaveIDs(),n.buildOrUpdateScales();var i=new Set(Object.keys(n._listeners)),s=new Set(n.options.events);if(pt(i,s)&&!!this._responsiveListeners===n.options.responsive||(n.unbindEvents(),n.bindEvents()),n._plugins.invalidate(),!1!==n.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})){const a=n.buildOrUpdateControllers();n.notifyPlugins("beforeElementsUpdate");let i=0;for(let t=0,e=n.data.datasets.length;t<e;t++){const{controller:l}=n.getDatasetMeta(t);var o=!r&&-1===a.indexOf(l);l.buildOrUpdateElements(o),i=Math.max(+l.getMaxOverflow(),i)}n._minPadding=i,n._updateLayout(i),r||Z(a,t=>{t.reset()}),n._updateDatasets(t),n.notifyPlugins("afterUpdate",{mode:t}),n._layers.sort(Wn("z","_idx")),n._lastEvent&&n._eventHandler(n._lastEvent,!0),n.render()}}_updateLayout(t){const e=this;if(!1!==e.notifyPlugins("beforeLayout",{cancelable:!0})){Je.update(e,e.width,e.height,t);t=e.chartArea;const i=t.width<=0||t.height<=0;e._layers=[],Z(e.boxes,t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),e._layers.push(...t._layers()))},e),e._layers.forEach((t,e)=>{t._idx=e}),e.notifyPlugins("afterLayout")}}_updateDatasets(i){var n="function"==typeof i;if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:i,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this._updateDataset(t,n?i({datasetIndex:t}):i);this.notifyPlugins("afterDatasetsUpdate",{mode:i})}}_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})&&(c.has(this)?this.attached&&!c.running(this)&&c.start(this):(this.draw(),Vn({chart:this})))}draw(){var t,e,i=this;let n;if(i._resizeBeforeDraw&&({width:t,height:e}=i._resizeBeforeDraw,i._resize(t,e),i._resizeBeforeDraw=null),i.clear(),!(i.width<=0||i.height<=0)&&!1!==i.notifyPlugins("beforeDraw",{cancelable:!0})){const r=i._layers;for(n=0;n<r.length&&r[n].z<=0;++n)r[n].draw(i.chartArea);for(i._drawDatasets();n<r.length;++n)r[n].draw(i.chartArea);i.notifyPlugins("afterDraw")}}_getSortedDatasetMetas(t){var e=this._sortedMetasets;const i=[];let n,r;for(n=0,r=e.length;n<r;++n){var s=e[n];t&&!s.visible||i.push(s)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1!==this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})){var e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;0<=t;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}}_drawDataset(t){var e=this.ctx,i=t._clip,n=this.chartArea;const r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(Zt(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),te(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}getElementsAtEventForMode(t,e,i,n){const r=Le.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={chart:this,type:"chart"})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){var e=this.data.datasets[t];if(!e)return!1;t=this.getDatasetMeta(t);return"boolean"==typeof t.hidden?!t.hidden:!e.hidden}setDatasetVisibility(t,e){const i=this.getDatasetMeta(t);i.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateDatasetVisibility(e,t){const i=t?"show":"hide",n=this.getDatasetMeta(e),r=n.controller._resolveAnimations(void 0,i);this.setDatasetVisibility(e,t),r.update(n,{visible:t}),this.update(t=>t.datasetIndex===e?i:void 0)}hide(t){this._updateDatasetVisibility(t,!1)}show(t){this._updateDatasetVisibility(t,!0)}_destroyDatasetMeta(t){const e=this._metasets&&this._metasets[t];e&&e.controller&&(e.controller._destroy(),delete this._metasets[t])}destroy(){var t=this,{canvas:e,ctx:i}=t;let n,r;for(t.stop(),c.remove(t),n=0,r=t.data.datasets.length;n<r;++n)t._destroyDatasetMeta(n);t.config.clearCache(),e&&(t.unbindEvents(),Qt(e,i),t.platform.releaseContext(i),t.canvas=null,t.ctx=null),t.notifyPlugins("destroy"),delete Xn[t.id]}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const n=this,i=n._listeners,r=n.platform,e=function(t,e,i){t.offsetX=e,t.offsetY=i,n._eventHandler(t)};Z(n.options.events,t=>((t,e)=>{r.addEventListener(n,t,e),i[t]=e})(t,e))}bindResponsiveEvents(){const i=this;i._responsiveListeners||(i._responsiveListeners={});const n=i._responsiveListeners,r=i.platform,t=(t,e)=>{r.addEventListener(i,t,e),n[t]=e},e=(t,e)=>{n[t]&&(r.removeEventListener(i,t,e),delete n[t])},s=(t,e)=>{i.canvas&&i.resize(t,e)};let o;const a=()=>{e("attach",a),i.attached=!0,i.resize(),t("resize",s),t("detach",o)};o=()=>{i.attached=!1,e("resize",s),t("attach",a)},(r.isAttached(i.canvas)?a:o)()}unbindEvents(){const i=this;Z(i._listeners,(t,e)=>{i.platform.removeEventListener(i,e,t)}),i._listeners={},Z(i._responsiveListeners,(t,e)=>{i.platform.removeEventListener(i,e,t)}),i._responsiveListeners=void 0}updateHoverStyle(t,e,i){var 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){const l=(s=t[o])&&this.getDatasetMeta(s.datasetIndex).controller;l&&l[n+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this;var e=n._active||[],t=t.map(({datasetIndex:t,index:e})=>{var i=n.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}});tt(t,e)||(n._active=t,n._updateHoverStyles(t,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){var n=this.options.hover,r=(t,i)=>t.filter(e=>!i.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),s=r(e,t),e=i?t:r(t,e);s.length&&this.updateHoverStyle(s,n.mode,!1),e.length&&n.mode&&this.updateHoverStyle(e,n.mode,!0)}_eventHandler(e,t){const i={event:e,replay:t,cancelable:!0};var n=t=>(t.options.events||this.options.events).includes(e.type);if(!1!==this.notifyPlugins("beforeEvent",i,n)){t=this._handleEvent(e,t);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(t||i.changed)&&this.render(),this}}_handleEvent(t,e){var i=this,{_active:n=[],options:r}=i,s=r.hover;let o=[];var a;let l=null;return"mouseout"!==t.type&&(o=i.getElementsAtEventForMode(t,s.mode,s,e),l="click"===t.type?i._lastEvent:t),i._lastEvent=null,Jt(t,i.chartArea,i._minPadding)&&(J(r.onHover,[t,o,i],i),"mouseup"!==t.type&&"click"!==t.type&&"contextmenu"!==t.type||J(r.onClick,[t,o,i],i)),((a=!tt(o,n))||e)&&(i._active=o,i._updateHoverStyles(o,n,e)),i._lastEvent=l,a}}const Gn=()=>Z(Qn.instances,t=>t._plugins.invalidate());function Jn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}Object.defineProperties(Qn,{defaults:{enumerable:!0,value:yt},instances:{enumerable:!0,value:Xn},overrides:{enumerable:!0,value:gt},registry:{enumerable:!0,value:Mn},version:{enumerable:!0,value:"3.3.2"},getChart:{enumerable:!0,value:Kn},register:{enumerable:!0,value:(...t)=>{Mn.add(...t),Gn()}},unregister:{enumerable:!0,value:(...t)=>{Mn.remove(...t),Gn()}}});class Zn{constructor(t){this.options=t||{}}formats(){return Jn()}parse(t,e){return Jn()}format(t,e){return Jn()}add(t,e,i){return Jn()}diff(t,e,i){return Jn()}startOf(t,e,i){return Jn()}endOf(t,e){return Jn()}}Zn.override=function(t){Object.assign(Zn.prototype,t)};var tr={_date:Zn};function er(t){var e=function(n){if(!n._cache.$bar){const r=n.getMatchingVisibleMetas("bar");let i=[];for(let t=0,e=r.length;t<e;t++)i=i.concat(r[t].controller.getAllParsedValues(n));n._cache.$bar=de(i.sort((t,e)=>t-e))}return n._cache.$bar}(t);let i=t._length,n,r,s,o;var a=()=>{32767!==s&&-32768!==s&&(dt(o)&&(i=Math.min(i,Math.abs(s-o)||i)),o=s)};for(n=0,r=e.length;n<r;++n)s=t.getPixelForValue(e[n]),a();for(o=void 0,n=0,r=t.ticks.length;n<r;++n)s=t.getPixelForTick(n),a();return i}function ir(t,e,i,n){return q(t)?function(t,e,i,n){var r=i.parse(t[0],n),s=i.parse(t[1],n),t=Math.min(r,s),n=Math.max(r,s);let o=t,a=n;Math.abs(t)>Math.abs(n)&&(o=n,a=t),e[i.axis]=a,e._custom={barStart:o,barEnd:a,start:r,end:s,min:t,max:n}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function nr(t,e,i,n){const r=t.iScale;var s=t.vScale,o=r.getLabels(),a=r===s;const l=[];let c,h,u,d;for(h=(c=i)+n;c<h;++c)d=e[c],u={},u[r.axis]=a||r.parse(o[c],c),l.push(ir(d,u,s,c));return l}function rr(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}class sr extends Ii{parsePrimitiveData(t,e,i,n){return nr(t,e,i,n)}parseArrayData(t,e,i,n){return nr(t,e,i,n)}parseObjectData(t,e,i,n){const{iScale:r,vScale:s}=t;var{xAxisKey:o="x",yAxisKey:t="y"}=this._parsing,a="x"===r.axis?o:t,l="x"===s.axis?o:t;const c=[];let h,u,d,f;for(u=(h=i)+n;h<u;++h)f=e[h],d={},d[r.axis]=r.parse(ht(f,a),h),c.push(ir(ht(f,l),d,s,h));return c}updateRangeFromParsed(t,e,i,n){super.updateRangeFromParsed(t,e,i,n);i=i._custom;i&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getLabelAndValue(t){const{iScale:e,vScale:i}=this._cachedMeta;var n=this.getParsed(t),t=n._custom,t=rr(t)?"["+t.start+", "+t.end+"]":""+i.getLabelForValue(n[i.axis]);return{label:""+e.getLabelForValue(n[e.axis]),value:t}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){var e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(e,i,n,r){var s=this,o="reset"===r;const a=s._cachedMeta.vScale;var l=a.getBasePixel(),c=a.isHorizontal(),h=s._getRuler(),t=s.resolveDataElementOptions(i,r),u=s.getSharedOptions(t),d=s.includeOptions(r,u);s.updateSharedOptions(u,r,t);for(let t=i;t<i+n;t++){var f=s.getParsed(t),p=o||V(f[a.axis])?{base:l,head:l}:s._calculateBarValuePixels(t),g=s._calculateBarIndexPixels(t,h),m=(f._stacks||{})[a.axis];const v={horizontal:c,base:p.base,enableBorderRadius:!m||rr(f._custom)||s.index===m._top||s.index===m._bottom,x:c?p.head:g.center,y:c?g.center:p.head,height:c?g.size:void 0,width:c?void 0:g.size};d&&(v.options=u||s.resolveDataElementOptions(t,r)),s.updateElement(e[t],t,v,r)}}_getStacks(t,e){const i=this._cachedMeta.iScale;var n=i.getMatchingVisibleMetas(this._type),r=i.options.stacked,s=n.length;const o=[];let a,l;for(a=0;a<s;++a){if(l=n[a],void 0!==e){var c=l.controller.getParsed(e)[l.controller._cachedMeta.vScale.axis];if(V(c)||isNaN(c))continue}if((!1===r||-1===o.indexOf(l.stack)||void 0===r&&void 0===l.stack)&&o.push(l.stack),l.index===t)break}return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const n=this._getStacks(t,i);e=void 0!==e?n.indexOf(e):-1;return-1===e?n.length-1:e}_getRuler(){var t=this.options,e=this._cachedMeta;const 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));e=t.barThickness;return{min:e||er(i),pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:e?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{vScale:e,_stacked:i}=this._cachedMeta;var{base:n,minBarLength:r}=this.options,s=this.getParsed(t),o=s._custom,a=rr(o);let l=s[e.axis],c=0,h=i?this.applyStack(e,s,i):l,u,d;h!==l&&(c=h-l,h=l),a&&(l=o.barStart,h=o.barEnd-o.barStart,0!==l&&At(l)!==At(o.barEnd)&&(c=0),c+=l);a=V(n)||a?c:n;let f=e.getPixelForValue(a);u=this.chart.getDataVisibility(t)?e.getPixelForValue(c+h):f,d=u-f,void 0!==r&&Math.abs(d)<r&&(d=d<0?-r:r,0===l&&(f-=d/2),u=f+d);n=n||0;return f===e.getPixelForValue(n)&&(n=e.getLineWidthForValue(n)/2,0<d?(f+=n,d-=n):d<0&&(f-=n,d+=n)),{size:d,base:f,head:u,center:u+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale;var n,r=this.options,s=r.skipNull,o=K(r.maxBarThickness,1/0);let a,l;return l=e.grouped?(n=s?this._getStackCount(t):e.stackCount,n=("flex"===r.barThickness?function(t,e,i,n){var r=e.pixels,s=r[t];let o=0<t?r[t-1]:null,a=t<r.length-1?r[t+1]:null;return t=i.categoryPercentage,null===o&&(o=s-(null===a?e.end-e.start:a-s)),null===a&&(a=s+s-o),s-=(s-Math.min(o,a))/2*t,{chunk:Math.abs(a-o)/2*t/n,ratio:i.barPercentage,start:s}}:function(t,e,i,n){var r=i.barThickness;let s,o;return o=V(r)?(s=e.min*i.categoryPercentage,i.barPercentage):(s=r*n,1),{chunk:s/n,ratio:o,start:e.pixels[t]-s/2}})(t,e,r,n),s=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0),a=n.start+n.chunk*s+n.chunk/2,Math.min(o,n.chunk*n.ratio)):(a=i.getPixelForValue(this.getParsed(t)[i.axis],t),Math.min(o,e.min*e.ratio)),{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){var t=this.chart,e=this._cachedMeta,i=e.vScale;const n=e.data;var r=n.length;let s=0;for(Zt(t.ctx,t.chartArea);s<r;++s)null!==this.getParsed(s)[i.axis]&&n[s].draw(this._ctx);te(t.ctx)}}sr.id="bar",sr.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},sr.overrides={interaction:{mode:"index"},scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class or extends Ii{initialize(){this.enableOptionSharing=!0,super.initialize()}parseObjectData(t,e,i,n){const{xScale:r,yScale:s}=t;var{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing;const l=[];let c,h,u;for(h=(c=i)+n;c<h;++c)u=e[c],l.push({x:r.parse(ht(u,o),c),y:s.parse(ht(u,a),c),_custom:u&&u.r&&+u.r});return l}getMaxOverflow(){const{data:e,_parsed:i}=this._cachedMeta;let n=0;for(let t=e.length-1;0<=t;--t)n=Math.max(n,e[t].size()/2,i[t]._custom);return 0<n&&n}getLabelAndValue(t){var e=this._cachedMeta;const{xScale:i,yScale:n}=e;var r=this.getParsed(t),s=i.getLabelForValue(r.x),t=n.getLabelForValue(r.y),r=r._custom;return{label:e.label,value:"("+s+", "+t+(r?", "+r:"")+")"}}update(t){var e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(e,i,n,r){var s="reset"===r;const{iScale:o,vScale:a}=this._cachedMeta;var t=this.resolveDataElementOptions(i,r),l=this.getSharedOptions(t),c=this.includeOptions(r,l),h=o.axis,u=a.axis;for(let t=i;t<i+n;t++){var d=e[t],f=!s&&this.getParsed(t);const g={};var p=g[h]=s?o.getPixelForDecimal(.5):o.getPixelForValue(f[h]),f=g[u]=s?a.getBasePixel():a.getPixelForValue(f[u]);g.skip=isNaN(p)||isNaN(f),c&&(g.options=this.resolveDataElementOptions(t,r),s&&(g.options.radius=0)),this.updateElement(d,t,g,r)}this.updateSharedOptions(l,r,t)}resolveDataElementOptions(t,e){var i=this.getParsed(t);let n=super.resolveDataElementOptions(t,e);n.$shared&&(n=Object.assign({},n,{$shared:!1}));t=n.radius;return"active"!==e&&(n.radius=0),n.radius+=K(i&&i._custom,t),n}}or.id="bubble",or.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},or.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};class ar extends Ii{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){var i=this.getDataset().data;const n=this._cachedMeta;let r,s;for(s=(r=t)+e;r<s;++r)n._parsed[r]=+i[r]}_getRotation(){return Rt(this.options.rotation-90)}_getCircumference(){return Rt(this.options.circumference)}_getRotationExtents(){let e=_t,i=-_t;for(let t=0;t<this.chart.data.datasets.length;++t)if(this.chart.isDatasetVisible(t)){const s=this.chart.getDatasetMeta(t).controller;var n=s._getRotation(),r=s._getCircumference();e=Math.min(e,n),i=Math.max(i,n+r)}return{rotation:e,circumference:i-e}}update(t){var e=this,{chartArea:i}=e.chart;const n=e._cachedMeta;var r=n.data,s=e.getMaxBorderWidth()+e.getMaxOffset(r),o=Math.max((Math.min(i.width,i.height)-s)/2,0),a=Math.min(Q(e.options.cutout,o),1),l=e._getRingWeight(e.index),{circumference:c,rotation:h}=e._getRotationExtents(),{ratioX:u,ratioY:o,offsetX:h,offsetY:c}=function(t,e,n){let i=1,r=1,s=0,o=0;if(e<_t){const d=t,f=d+e;var a=Math.cos(d),l=Math.sin(d),c=Math.cos(f),h=Math.sin(f),u=(t,e,i)=>Wt(t,d,f,!0)?1:Math.max(e,e*n,i,i*n),t=(t,e,i)=>Wt(t,d,f,!0)?-1:Math.min(e,e*n,i,i*n),e=u(0,a,c),u=u(St,l,h),c=t(xt,a,c),h=t(xt+St,l,h);i=(e-c)/2,r=(u-h)/2,s=-(e+c)/2,o=-(u+h)/2}return{ratioX:i,ratioY:r,offsetX:s,offsetY:o}}(h,c,a),u=(i.width-s)/u,o=(i.height-s)/o,o=Math.max(Math.min(u,o)/2,0),o=G(e.options.radius,o),a=(o-Math.max(o*a,0))/e._getVisibleDatasetWeightTotal();e.offsetX=h*o,e.offsetY=c*o,n.total=e.calculateTotal(),e.outerRadius=o-a*e._getRingWeightOffset(e.index),e.innerRadius=Math.max(e.outerRadius-a*l,0),e.updateElements(r,0,r.length,t)}_circumference(t,e){var i=this.options,n=this._cachedMeta,r=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]?0:this.calculateCircumference(n._parsed[t]*r/_t)}updateElements(t,e,i,n){var r=this,s="reset"===n,o=r.chart,a=o.chartArea,o=o.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,o=s&&o.animateScale,h=o?0:r.innerRadius,u=o?0:r.outerRadius,o=r.resolveDataElementOptions(e,n),d=r.getSharedOptions(o),f=r.includeOptions(n,d);let p=r._getRotation(),g;for(g=0;g<e;++g)p+=r._circumference(g,s);for(g=e;g<e+i;++g){var m=r._circumference(g,s),v=t[g];const b={x:l+r.offsetX,y:c+r.offsetY,startAngle:p,endAngle:p+m,circumference:m,outerRadius:u,innerRadius:h};f&&(b.options=d||r.resolveDataElementOptions(g,n)),p+=m,r.updateElement(v,g,b,n)}r.updateSharedOptions(d,n,o)}calculateTotal(){var t=this._cachedMeta,e=t.data;let i=0,n;for(n=0;n<e.length;n++){var r=t._parsed[n];null!==r&&!isNaN(r)&&this.chart.getDataVisibility(n)&&(i+=Math.abs(r))}return i}calculateCircumference(t){var e=this._cachedMeta.total;return 0<e&&!isNaN(t)?_t*(Math.abs(t)/e):0}getLabelAndValue(t){var e=this._cachedMeta,i=this.chart,n=i.data.labels||[],i=Hi(e._parsed[t],i.options.locale);return{label:n[t]||"",value:i}}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)){t=(s=i.getDatasetMeta(n)).data,o=s.controller,o!==this&&o.configure();break}if(!t)return 0;for(n=0,r=t.length;n<r;++n)"inner"!==(a=o.resolveDataElementOptions(n)).borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(i){let n=0;for(let t=0,e=i.length;t<e;++t){var r=this.resolveDataElementOptions(t);n=Math.max(n,r.offset||0,r.hoverOffset||0)}return n}_getRingWeightOffset(e){let i=0;for(let t=0;t<e;++t)this.chart.isDatasetVisible(t)&&(i+=this._getRingWeight(t));return i}_getRingWeight(t){return Math.max(K(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ar.id="doughnut",ar.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",indexAxis:"r"},ar.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(r){const t=r.data;return t.labels.length&&t.datasets.length?t.labels.map((t,e)=>{const i=r.getDatasetMeta(0);var n=i.controller.getStyle(e);return{text:t,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,hidden:!r.getDataVisibility(e),index:e}}):[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title(){return""},label(t){let e=t.label;t=": "+t.formattedValue;return q(e)?(e=e.slice(),e[0]+=t):e+=t,e}}}}};class lr extends Ii{initialize(){this.enableOptionSharing=!0,super.initialize()}update(t){var e=this._cachedMeta;const{dataset:i,data:n=[],_dataset:r}=e;var s=this.chart._animationsDisabled;let{start:o,count:a}=function(t,e,i){var n=e.length;let r=0,s=n;if(t._sorted){const{iScale:h,_parsed:u}=t;var o=h.axis,{min:a,max:l,minDefined:c,maxDefined:t}=h.getUserBounds();c&&(r=Vt(Math.min(oe(u,h.axis,a).lo,i?n:oe(e,o,h.getPixelForValue(a)).lo),0,n-1)),s=t?Vt(Math.max(oe(u,h.axis,l).hi+1,i?0:oe(e,o,h.getPixelForValue(l)).hi+1),r,n)-r:n-r}return{start:r,count:s}}(e,n,s);this._drawStart=o,this._drawCount=a,function(t){var{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;i=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,r),i}(e)&&(o=0,a=n.length),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(e,i,n,r){var s=this,o="reset"===r;const{iScale:a,vScale:l,_stacked:c}=s._cachedMeta;var t=s.resolveDataElementOptions(i,r),h=s.getSharedOptions(t),u=s.includeOptions(r,h),d=a.axis,f=l.axis,p=s.options.spanGaps,g=Ot(p)?p:Number.POSITIVE_INFINITY,m=s.chart._animationsDisabled||o||"none"===r;let v=0<i&&s.getParsed(i-1);for(let t=i;t<i+n;++t){var b=e[t],y=s.getParsed(t);const k=m?b:{};var x=V(y[f]),_=k[d]=a.getPixelForValue(y[d],t),w=k[f]=o||x?l.getBasePixel():l.getPixelForValue(c?s.applyStack(l,y,c):y[f],t);k.skip=isNaN(_)||isNaN(w)||x,k.stop=0<t&&y[d]-v[d]>g,k.parsed=y,u&&(k.options=h||s.resolveDataElementOptions(t,r)),m||s.updateElement(b,t,k,r),v=y}s.updateSharedOptions(h,r,t)}getMaxOverflow(){var t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0;const n=t.data||[];if(!n.length)return i;e=n[0].size(this.resolveDataElementOptions(0)),t=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,e,t)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}lr.id="line",lr.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},lr.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class cr extends Ii{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){var e=this._cachedMeta,i=this.chart,n=i.data.labels||[],i=Hi(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:i}}update(t){var e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}_updateRadius(){const t=this.chart;var e=t.chartArea,i=t.options,e=Math.min(e.right-e.left,e.bottom-e.top),e=Math.max(e/2,0),i=(e-Math.max(i.cutoutPercentage?e/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=e-i*this.index,this.innerRadius=this.outerRadius-i}updateElements(n,t,e,r){var s="reset"===r;const o=this.chart;var a=this.getDataset(),l=o.options.animation;const c=this._cachedMeta.rScale;var h=c.xCenter,u=c.yCenter,d=c.getIndexAngle(0)-.5*xt;let f=d,p;var g=360/this.countVisibleElements();for(p=0;p<t;++p)f+=this._computeAngle(p,r,g);for(p=t;p<t+e;p++){var m=n[p];let t=f,e=f+this._computeAngle(p,r,g),i=o.getDataVisibility(p)?c.getDistanceFromCenterForValue(a.data[p]):0;f=e,s&&(l.animateScale&&(i=0),l.animateRotate&&(t=e=d));var v={x:h,y:u,innerRadius:0,outerRadius:i,startAngle:t,endAngle:e,options:this.resolveDataElementOptions(p,r)};this.updateElement(m,p,v,r)}}countVisibleElements(){const i=this.getDataset(),t=this._cachedMeta;let n=0;return t.data.forEach((t,e)=>{!isNaN(i.data[e])&&this.chart.getDataVisibility(e)&&n++}),n}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?Rt(this.resolveDataElementOptions(t,e).angle||i):0}}cr.id="polarArea",cr.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},cr.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(r){const t=r.data;return t.labels.length&&t.datasets.length?t.labels.map((t,e)=>{const i=r.getDatasetMeta(0);var n=i.controller.getStyle(e);return{text:t,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,hidden:!r.getDataVisibility(e),index:e}}):[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title(){return""},label(t){return t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class hr extends ar{}hr.id="pie",hr.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class ur extends Ii{getLabelAndValue(t){const e=this._cachedMeta.vScale;var i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}update(t){const e=this._cachedMeta,i=e.dataset;var n=e.data||[],r=e.iScale.getLabels();if(i.points=n,"resize"!==t){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);r={_loop:!0,_fullLoop:r.length===n.length,options:s};this.updateElement(i,void 0,r,t)}this.updateElements(n,0,n.length,t)}updateElements(e,i,n,r){var s=this.getDataset();const o=this._cachedMeta.rScale;var a="reset"===r;for(let t=i;t<i+n;t++){var l=e[t],c=this.resolveDataElementOptions(t,r),h=o.getPointPositionForValue(t,s.data[t]),u=a?o.xCenter:h.x,d=a?o.yCenter:h.y,c={x:u,y:d,angle:h.angle,skip:isNaN(u)||isNaN(d),options:c};this.updateElement(l,t,c,r)}}}ur.id="radar",ur.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},ur.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class dr extends lr{}dr.id="scatter",dr.defaults={showLine:!1,fill:!1},dr.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(t){return"("+t.label+", "+t.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var fr=Object.freeze({__proto__:null,BarController:sr,BubbleController:or,DoughnutController:ar,LineController:lr,PolarAreaController:cr,PieController:hr,RadarController:ur,ScatterController:dr});function pr(t,e,i){var{startAngle:n,pixelMargin:r,x:s,y:o,outerRadius:a,innerRadius:l}=e,e=r/a;t.beginPath(),t.arc(s,o,a,n-e,i+e),r<l?t.arc(s,o,l,i+(e=r/l),n-e,!0):t.arc(s,o,r,i+St,n-St),t.closePath(),t.clip()}function gr(t,e,i,n){var r=Re(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const s=(i-e)/2;t=Math.min(s,n*e/2),e=t=>{var e=(i-Math.min(s,t))*n/2;return Vt(t,0,Math.min(s,e))};return{outerStart:e(r.outerStart),outerEnd:e(r.outerEnd),innerStart:Vt(r.innerStart,0,t),innerEnd:Vt(r.innerEnd,0,t)}}function mr(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function vr(t,e,i,n){var{x:r,y:s,startAngle:o,pixelMargin:a,innerRadius:l}=e,c=Math.max(e.outerRadius+i-a,0),h=0<l?l+i+a:0,u=n-o,d=(u-Math.max(.001,u*c-i/xt)/c)/2,f=o+d,p=n-d,{outerStart:g,outerEnd:m,innerStart:v,innerEnd:b}=gr(e,h,c,p-f),l=c-g,a=c-m,u=f+g/l,i=p-m/a,o=h+v,n=h+b,d=f+v/o,e=p-b/n;t.beginPath(),t.arc(r,s,c,u,i),0<m&&(a=mr(a,i,r,s),t.arc(a.x,a.y,m,i,p+St));i=mr(n,p,r,s);t.lineTo(i.x,i.y),0<b&&(n=mr(n,e,r,s),t.arc(n.x,n.y,b,p+St,e+Math.PI)),t.arc(r,s,h,p-b/h,f+v/h,!0),0<v&&(o=mr(o,d,r,s),t.arc(o.x,o.y,v,d+Math.PI,f-St));d=mr(l,f,r,s);t.lineTo(d.x,d.y),0<g&&(s=mr(l,u,r,s),t.arc(s.x,s.y,g,f-St,u)),t.closePath()}function br(t,e,i,n){var{options:r}=e,s="inner"===r.borderAlign;r.borderWidth&&(s?(t.lineWidth=2*r.borderWidth,t.lineJoin="round"):(t.lineWidth=r.borderWidth,t.lineJoin="bevel"),e.fullCircles&&function(t,e,i){var{x:n,y:r,startAngle:s,pixelMargin:o,fullCircles:a}=e,l=Math.max(e.outerRadius-o,0),o=e.innerRadius+o;let c;for(i&&pr(t,e,s+_t),t.beginPath(),t.arc(n,r,o,s+_t,s,!0),c=0;c<a;++c)t.stroke();for(t.beginPath(),t.arc(n,r,l,s,s+_t),c=0;c<a;++c)t.stroke()}(t,e,s),s&&pr(t,e,n),vr(t,e,i,n),t.stroke())}class yr extends Ri{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){var{angle:n,distance:r}=Ft(this.getProps(["x","y"],i),{x:t,y:e}),{startAngle:s,endAngle:o,innerRadius:t,outerRadius:e,circumference:i}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i);return(i>=_t||Wt(n,s,o))&&(t<=r&&r<=e)}getCenterPoint(t){var{x:e,y:i,startAngle:n,endAngle:r,innerRadius:s,outerRadius:t}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),r=(n+r)/2,t=(s+t)/2;return{x:e+Math.cos(r)*t,y:i+Math.sin(r)*t}}tooltipPosition(t){return this.getCenterPoint(t)}draw(e){var i=this,{options:n,circumference:r}=i,s=(n.offset||0)/2;if(i.pixelMargin="inner"===n.borderAlign?.33:0,i.fullCircles=r>_t?Math.floor(r/_t):0,!(0===r||i.innerRadius<0||i.outerRadius<0)){e.save();let t=0;s&&(t=s/2,r=(i.startAngle+i.endAngle)/2,e.translate(Math.cos(r)*t,Math.sin(r)*t),i.circumference>=xt&&(t=s)),e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor;n=function(e,t,i){var{fullCircles:n,startAngle:r,circumference:s}=t;let o=t.endAngle;if(n){vr(e,t,i,r+_t);for(let t=0;t<n;++t)e.fill();isNaN(s)||(o=r+s%_t,s%_t==0&&(o+=_t))}return vr(e,t,i,o),e.fill(),o}(e,i,t);br(e,i,t,n),e.restore()}}}function xr(t,e,i=e){t.lineCap=K(i.borderCapStyle,e.borderCapStyle),t.setLineDash(K(i.borderDash,e.borderDash)),t.lineDashOffset=K(i.borderDashOffset,e.borderDashOffset),t.lineJoin=K(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=K(i.borderWidth,e.borderWidth),t.strokeStyle=K(i.borderColor,e.borderColor)}function _r(t,e,i){t.lineTo(i.x,i.y)}function wr(t,e,i={}){var n=t.length,{start:r=0,end:s=n-1}=i,{start:o,end:a}=e,t=Math.max(r,o),i=Math.min(s,a);return{count:n,start:t,loop:e.loop,ilen:i<t&&!(r<o&&s<o||a<r&&a<s)?n+i-t:i-t}}function kr(t,e,i,n){var{points:r,options:s}=e,{count:o,start:a,loop:e,ilen:l}=wr(r,i,n);const c=(i=s).stepped?ee:i.tension||"monotone"===i.cubicInterpolationMode?ie:_r;let{move:h=!0,reverse:u}=n||{},d,f,p;for(d=0;d<=l;++d)f=r[(a+(u?l-d:d))%o],f.skip||(h?(t.moveTo(f.x,f.y),h=!1):c(t,p,f,u,s.stepped),p=f);return e&&(f=r[(a+(u?l:0))%o],c(t,p,f,u,s.stepped)),!!e}function Tr(t,e,i,n){var r=e.points;const{count:s,start:o,ilen:a}=wr(r,i,n),{move:l=!0,reverse:c}=n||{};let h=0,u=0,d,f,p,g,m,v;var b,y,x,_=t=>(o+(c?a-t:t))%s,w=()=>{g!==m&&(t.lineTo(h,m),t.lineTo(h,g),t.lineTo(h,v))};for(l&&(f=r[_(0)],t.moveTo(f.x,f.y)),d=0;d<=a;++d)f=r[_(d)],f.skip||(b=f.x,y=f.y,(x=0|b)===p?(y<g?g=y:y>m&&(m=y),h=(u*h+b)/++u):(w(),t.lineTo(b,y),p=x,u=0,g=m=y),v=y);w()}function Sr(t){var e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i)?Tr:kr}yr.id="arc",yr.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,angle:void 0},yr.defaultRoutes={backgroundColor:"backgroundColor"};const Er="function"==typeof Path2D;function Cr(t,e,i,n){(Er&&1===e.segments.length?function(t,e,i,n){let r=e._path;r||(r=e._path=new Path2D,e.path(r,i,n)&&r.closePath()),xr(t,e.options),t.stroke(r)}:function(t,e,i,n){var{segments:r,options:s}=e;const o=Sr(e);for(const a of r)xr(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 Mr extends Ri{constructor(t){super(),this.animated=!0,this.options=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,t&&Object.assign(this,t)}updateControlPoints(t,e){var i,n=this.options;!n.tension&&"monotone"!==n.cubicInterpolationMode||n.stepped||this._pointsUpdated||(i=n.spanGaps?this._loop:this._fullLoop,fn(this._points,n,t,i,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=Tn(this,this.options.segment))}first(){var t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){var t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(i,n){var r,s=this.options,o=i[n],a=this.points,l=kn(this,{property:n,start:o,end:o});if(l.length){const d=[],f=(r=s).stepped?gn:r.tension||"monotone"===r.cubicInterpolationMode?mn:pn;let t,e;for(t=0,e=l.length;t<e;++t){var{start:c,end:h}=l[t],u=a[c],c=a[h];if(u!==c){h=Math.abs((o-u[n])/(c[n]-u[n]));const p=f(u,c,h,s.stepped);p[n]=i[n],d.push(p)}else d.push(u)}return 1===d.length?d[0]:d}}pathSegment(t,e,i){const n=Sr(this);return n(t,this,e,i)}path(t,e,i){var n=this.segments;const r=Sr(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){var r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),Cr(t,this,i,n),t.restore(),this.animated&&(this._pointsUpdated=!1,this._path=void 0))}}function Ar(t,e,i,n){var r=t.options,{[i]:i}=t.getProps([i],n);return Math.abs(e-i)<r.radius+r.hitRadius}Mr.id="line",Mr.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Mr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Mr.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Dr extends Ri{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){var n=this.options,{x:r,y:i}=this.getProps(["x","y"],i);return Math.pow(t-r,2)+Math.pow(e-i,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return Ar(this,t,"x",e)}inYRange(t,e){return Ar(this,t,"y",e)}getCenterPoint(t){var{x:e,y:t}=this.getProps(["x","y"],t);return{x:e,y:t}}size(t){var e=(t=t||this.options||{}).radius||0;return 2*((e=Math.max(e,e&&t.hoverRadius||0))+(e&&t.borderWidth||0))}draw(t){var e=this.options;this.skip||e.radius<.1||(t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,Gt(t,e,this.x,this.y))}getRange(){var t=this.options||{};return t.radius+t.hitRadius}}function Lr(t,e){var{x:i,y:n,base:r,width:s,height:e}=t.getProps(["x","y","base","width","height"],e);let o,a,l,c,h;return c=t.horizontal?(h=e/2,o=Math.min(i,r),a=Math.max(i,r),l=n-h,n+h):(h=s/2,o=i-h,a=i+h,l=Math.min(n,r),Math.max(n,r)),{left:o,top:l,right:a,bottom:c}}function Or(t){let e=t.options.borderSkipped;const i={};return e&&(e=t.horizontal?Pr(e,"left","right",t.base>t.x):Pr(e,"bottom","top",t.base<t.y),i[e]=!0),i}function Pr(t,e,i,n){var r,s;return t=n?(s=i,Nr(t=(r=t)===(n=e)?s:r===s?n:r,i,e)):Nr(t,e,i)}function Nr(t,e,i){return"start"===t?e:"end"===t?i:t}function Ir(t,e,i,n){return t?0:Math.max(Math.min(e,n),i)}function Rr(t){var e,i,n,r,s=Lr(t),o=s.right-s.left,a=s.bottom-s.top,i=(i=o/2,n=a/2,r=(e=t).options.borderWidth,e=Or(e),r=je(r),{t:Ir(e.top,r.top,0,n),r:Ir(e.right,r.right,0,i),b:Ir(e.bottom,r.bottom,0,n),l:Ir(e.left,r.left,0,i)}),t=function(t,e,i){var{enableBorderRadius:n}=t.getProps(["enableBorderRadius"]),r=t.options.borderRadius,s=He(r),i=Math.min(e,i),t=Or(t);return{topLeft:Ir(!(r=n||U(r))||t.top||t.left,s.topLeft,0,i),topRight:Ir(!r||t.top||t.right,s.topRight,0,i),bottomLeft:Ir(!r||t.bottom||t.left,s.bottomLeft,0,i),bottomRight:Ir(!r||t.bottom||t.right,s.bottomRight,0,i)}}(t,o/2,a/2);return{outer:{x:s.left,y:s.top,w:o,h:a,radius:t},inner:{x:s.left+i.l,y:s.top+i.t,w:o-i.l-i.r,h:a-i.t-i.b,radius:{topLeft:Math.max(0,t.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,t.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,t.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,t.bottomRight-Math.max(i.b,i.r))}}}}function jr(t,e,i,n){var r=null===e,s=null===i,n=t&&!(r&&s)&&Lr(t,n);return n&&(r||e>=n.left&&e<=n.right)&&(s||i>=n.top&&i<=n.bottom)}function Hr(t,e){t.rect(e.x,e.y,e.w,e.h)}Dr.id="point",Dr.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Dr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Fr extends Ri{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,t&&Object.assign(this,t)}draw(t){var e,i=this.options,{inner:n,outer:r}=Rr(this);const s=(e=r.radius).topLeft||e.topRight||e.bottomLeft||e.bottomRight?re:Hr;t.save(),r.w===n.w&&r.h===n.h||(t.beginPath(),s(t,r),t.clip(),s(t,n),t.fillStyle=i.borderColor,t.fill("evenodd")),t.beginPath(),s(t,n),t.fillStyle=i.backgroundColor,t.fill(),t.restore()}inRange(t,e,i){return jr(this,t,e,i)}inXRange(t,e){return jr(this,t,null,e)}inYRange(t,e){return jr(this,null,t,e)}getCenterPoint(t){var{x:e,y:i,base:n,horizontal:t}=this.getProps(["x","y","base","horizontal"],t);return{x:t?(e+n)/2:e,y:t?i:(i+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Fr.id="bar",Fr.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,enableBorderRadius:!0,pointStyle:void 0},Fr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var $r=Object.freeze({__proto__:null,ArcElement:yr,LineElement:Mr,PointElement:Dr,BarElement:Fr});function zr(t){var e;t._decimated&&(e=t._data,delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e}))}function Br(t){t.data.datasets.forEach(t=>{zr(t)})}var Wr={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(a,t,l)=>{if(l.enabled){const c=a.width;a.data.datasets.forEach((e,t)=>{var{_data:i,indexAxis:n}=e,t=a.getDatasetMeta(t),r=i||e.data;if("y"!==ze([n,a.options.indexAxis])&&"line"===t.type){n=a.scales[t.xAxisID];if(("linear"===n.type||"time"===n.type)&&!a.options.parsing){var{start:s,count:o}=function(t,e){var i=e.length;let n=0,r;const{iScale:s}=t;var{min:o,max:a,minDefined:l,maxDefined:t}=s.getUserBounds();return l&&(n=Vt(oe(e,s.axis,o).lo,0,i-1)),r=t?Vt(oe(e,s.axis,a).hi+1,n,i)-n:i-n,{start:n,count:r}}(t,r);if(o<=4*c)zr(e);else{V(i)&&(e._data=r,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}}));let t;switch(l.algorithm){case"lttb":t=function(n,r,s,t,e){var i=e.samples||t;if(s<=i)return n.slice(r,r+s);const o=[];var a=(s-2)/(i-2);let l=0;t=r+s-1;let c=r,h,u,d,f,p;for(o[l++]=n[c],h=0;h<i-2;h++){let t=0,e=0,i;var g=Math.floor((h+1)*a)+1+r,m=Math.min(Math.floor((h+2)*a)+1,s)+r,v=m-g;for(i=g;i<m;i++)t+=n[i].x,e+=n[i].y;t/=v,e/=v;var v=Math.floor(h*a)+1+r,b=Math.floor((h+1)*a)+1+r,{x:y,y:x}=n[c];for(d=-1,i=v;i<b;i++)(f=.5*Math.abs((y-t)*(n[i].y-x)-(y-n[i].x)*(e-x)))>d&&(d=f,u=n[i],p=i);o[l++]=u,c=p}return o[l++]=n[t],o}(r,s,o,c,l);break;case"min-max":t=function(t,e,i,n){let r=0,s=0,o,a,l,c,h,u,d,f,p,g;const m=[];var v=t[e].x,b=t[e+i-1].x-v;for(o=e;o<e+i;++o){l=((a=t[o]).x-v)/b*n,c=a.y;var y,x,_,w=0|l;w===h?(c<p?(p=c,u=o):c>g&&(g=c,d=o),r=(s*r+a.x)/++s):(y=o-1,V(u)||V(d)||(x=Math.min(u,d),_=Math.max(u,d),x!==f&&x!==y&&m.push({...t[x],x:r}),_!==f&&_!==y&&m.push({...t[_],x:r})),0<o&&y!==f&&m.push(t[y]),m.push(a),h=w,s=0,p=g=c,u=d=f=o)}return m}(r,s,o,c);break;default:throw new Error(`Unsupported decimation algorithm '${l.algorithm}'`)}e._decimated=t}}}})}else Br(a)},destroy(t){Br(t)}};function Vr(t,e,i){t=function(t){var e=t.options;let i=K((t=e.fill)&&t.target,t);return void 0===i&&(i=!!e.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(t);if(U(t))return!isNaN(t.value)&&t;let n=parseFloat(t);return Y(n)&&Math.floor(n)===n?("-"!==t[0]&&"+"!==t[0]||(n=e+n),!(n===e||n<0||n>=i)&&n):0<=["origin","start","end","stack"].indexOf(t)&&t}class qr{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){var{x:n,y:r,radius:s}=this;return e=e||{start:0,end:_t},t.arc(n,r,s,e.end,e.start,!0),!i.bounds}interpolate(t){var{x:e,y:i,radius:n}=this,t=t.angle;return{x:e+Math.cos(t)*n,y:i+Math.sin(t)*n,angle:t}}}function Ur(t){return((t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t;var n=e.options,r=e.getLabels().length;const s=[];var o=n.reverse?e.max:e.min,t=n.reverse?e.min:e.max;let a,l,c;if(c="start"===i?o:"end"===i?t:U(i)?i.value:e.getBaseValue(),n.grid.circular)return l=e.getPointPositionForValue(0,o),new qr({x:l.x,y:l.y,radius:e.getDistanceFromCenterForValue(c)});for(a=0;a<r;++a)s.push(e.getPointPositionForValue(a,c));return s}:function(t){const{scale:e={},fill:i}=t;let n=null;return"start"===i?n=e.bottom:"end"===i?n=e.top:U(i)?n=e.getPixelForValue(i.value):e.getBasePixel&&(n=e.getBasePixel()),Y(n)?{x:(t=e.isHorizontal())?n:null,y:t?null:n}:null})(t)}function Yr(t){var{chart:e,scale:i,index:n,line:t}=t,r=[],s=t.segments,o=t.points;const a=function(t,e){const i=[],n=t.getSortedVisibleDatasetMetas();for(let t=0;t<n.length;t++){var r=n[t];if(r.index===e)break;Xr(r)&&i.unshift(r.dataset)}return i}(e,n);a.push(Kr({x:null,y:i.bottom},t));for(let t=0;t<s.length;t++){var l=s[t];for(let t=l.start;t<=l.end;t++)!function(e,i,n){const r=[];for(let t=0;t<n.length;t++){var{first:s,last:o,point:a}=function(t,e,i){e=t.interpolate(e,i);if(!e)return{};var n=e[i],r=t.segments,s=t.points;let o=!1,a=!1;for(let t=0;t<r.length;t++){var l=r[t],c=s[l.start][i],l=s[l.end][i];if(c<=n&&n<=l){o=n===c,a=n===l;break}}return{first:o,last:a,point:e}}(n[t],i,"x");if(!(!a||s&&o))if(s)r.unshift(a);else if(e.push(a),!o)break}e.push(...r)}(r,o[t],a)}return new Mr({points:r,options:{}})}const Xr=t=>"line"===t.type&&!t.hidden;function Kr(t,e){let i=[],n=!1;return i=q(t)?(n=!0,t):function(t,e){const{x:i=null,y:n=null}=t||{},r=e.points,s=[];return e.segments.forEach(t=>{var e=r[t.start],t=r[t.end];null!==n?(s.push({x:e.x,y:n}),s.push({x:t.x,y:n})):null!==i&&(s.push({x:i,y:e.y}),s.push({x:i,y:t.y}))}),s}(t,e),i.length?new Mr({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function Qr(t,e,i){t.beginPath(),e.path(t),t.lineTo(e.last().x,i),t.lineTo(e.first().x,i),t.closePath(),t.clip()}function Gr(i,n,r,t){if(!t){let t=n[i],e=r[i];return"angle"===i&&(t=Bt(t),e=Bt(e)),{property:i,start:t,end:e}}}function Jr(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function Zr(t,e,i,n){n=e.interpolate(i,n);n&&t.lineTo(n.x,n.y)}function ts(t,e){const{line:i,target:n,property:r,color:s,scale:o}=e;var a,l,c,h;for({source:a,target:l,start:c,end:h}of function(t,e,i){var n=t.segments,r=t.points,s=e.points;const o=[];for(const c of n){var a=Gr(i,r[c.start],r[c.end],c.loop);if(e.segments)for(const h of kn(e,a)){var l=Gr(i,s[h.start],s[h.end],h.loop);for(const u of wn(c,r,l))o.push({source:u,target:h,start:{[i]:Jr(a,l,"start",Math.max)},end:{[i]:Jr(a,l,"end",Math.min)}})}else o.push({source:c,target:a,start:r[c.start],end:r[c.end]})}return o}(i,n,r)){var{style:{backgroundColor:u=s}={}}=a;t.save(),t.fillStyle=u,function(t,e,i){var{top:n,bottom:r}=e.chart.chartArea,{property:s,start:e,end:i}=i||{};"x"===s&&(t.beginPath(),t.rect(e,n,i-e,r-n),t.clip())}(t,o,Gr(r,c,h)),t.beginPath();var d=!!i.pathSegment(t,a);d?t.closePath():Zr(t,n,h,r);u=!!n.pathSegment(t,l,{move:d,reverse:!0}),u=d&&u;u||Zr(t,n,c,r),t.closePath(),t.fill(u?"evenodd":"nonzero"),t.restore()}}function es(t,e,i){var n=function(t){var e,i,{chart:n,fill:r,line:s}=t;return Y(r)?(i=r,(n=(e=n).getDatasetMeta(i))&&e.isDatasetVisible(i)?n.dataset:null):"stack"===r?Yr(t):(t=Ur(t))instanceof qr?t:Kr(t,s)}(e),{line:r,scale:s,axis:o}=e,a=r.options,e=a.fill,a=a.backgroundColor,{above:e=a,below:a=a}=e||{};n&&r.points.length&&(Zt(t,i),function(t,e){var{line:i,target:n,above:r,below:s,area:o,scale:a}=e,e=i._loop?"angle":e.axis;t.save(),"x"===e&&s!==r&&(Qr(t,n,o.top),ts(t,{line:i,target:n,color:r,scale:a,property:e}),t.restore(),t.save(),Qr(t,n,o.bottom)),ts(t,{line:i,target:n,color:s,scale:a,property:e}),t.restore()}(t,{line:r,target:n,above:e,below:a,area:i,scale:s,axis:o}),te(t))}var is={id:"filler",afterDatasetsUpdate(t,e,i){var n=(t.data.datasets||[]).length;const 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 Mr&&(l={visible:t.isDatasetVisible(o),index:o,fill:Vr(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=function(t,e,i){var n;let r=t[e].fill;const s=[e];if(!i)return r;for(;!1!==r&&-1===s.indexOf(r);){if(!Y(r))return r;if(!(n=t[r]))return!1;if(n.visible)return r;s.push(r),r=n.fill}return!1}(r,o,i.propagate))},beforeDraw(e,t,i){var n="beforeDraw"===i.drawTime,r=e.getSortedVisibleDatasetMetas(),s=e.chartArea;for(let t=r.length-1;0<=t;--t){const o=r[t].$filler;o&&(o.line.updateControlPoints(s,o.axis),n&&es(e.ctx,o,s))}},beforeDatasetsDraw(e,t,i){if("beforeDatasetsDraw"===i.drawTime){var n=e.getSortedVisibleDatasetMetas();for(let t=n.length-1;0<=t;--t){var r=n[t].$filler;r&&es(e.ctx,r,e.chartArea)}}},beforeDatasetDraw(t,e,i){e=e.meta.$filler;e&&!1!==e.fill&&"beforeDatasetDraw"===i.drawTime&&es(t.ctx,e,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ns=(t,e)=>{let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}};class rs extends Ri{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(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height)}buildLabels(){const i=this,n=i.options.labels||{};let t=J(n.generateLabels,[i.chart],i)||[];n.filter&&(t=t.filter(t=>n.filter(t,i.chart.data))),n.sort&&(t=t.sort((t,e)=>n.sort(t,e,i.chart.data))),i.options.reverse&&t.reverse(),i.legendItems=t}fit(){var i=this;const{options:n,ctx:r}=i;if(n.display){var s=n.labels,o=$e(s.font),a=o.size,l=i._computeTitleHeight(),{boxWidth:c,itemHeight:s}=ns(s,a);let t,e;r.font=o.string,i.isHorizontal()?(t=i.maxWidth,e=i._fitRows(l,a,c,s)+10):(e=i.maxHeight,t=i._fitCols(l,a,c,s)+10),i.width=Math.min(t,n.maxWidth||i.maxWidth),i.height=Math.min(e,n.maxHeight||i.maxHeight)}else i.width=i.height=0}_fitRows(t,i,n,r){const{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=r+a;let u=t;s.textAlign="left",s.textBaseline="middle";let d=-1,f=-h;return this.legendItems.forEach((t,e)=>{t=n+i/2+s.measureText(t.text).width;(0===e||c[c.length-1]+t+2*a>o)&&(u+=h,c[c.length-(0<e?0:1)]=0,f+=h,d++),l[e]={left:0,top:f,row:d,width:t,height:r},c[c.length-1]+=t+a}),u}_fitCols(t,i,n,r){const{ctx:s,maxHeight:e,options:{labels:{padding:o}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=e-t;let h=o,u=0,d=0,f=0,p=0,g=0;return this.legendItems.forEach((t,e)=>{t=n+i/2+s.measureText(t.text).width;0<e&&d+i+2*o>c&&(h+=u+o,l.push({width:u,height:d}),f+=u+o,g++,p=0,u=d=0),u=Math.max(u,t),d+=i+o,a[e]={left:f,top:p,col:g,width:t,height:r},p+=r+o}),h+=u,l.push({width:u,height:d}),h}adjustHitBoxes(){var i=this;if(i.options.display){var n=i._computeTitleHeight(),{legendHitBoxes:r,options:{align:s,labels:{padding:o}}}=i;if(this.isHorizontal()){let t=0,e=O(s,i.left+o,i.right-i.lineWidths[t]);for(const a of r)t!==a.row&&(t=a.row,e=O(s,i.left+o,i.right-i.lineWidths[t])),a.top+=i.top+n+o,a.left=e,e+=a.width+o}else{let t=0,e=O(s,i.top+n+o,i.bottom-i.columnSizes[t].height);for(const l of r)l.col!==t&&(t=l.col,e=O(s,i.top+n+o,i.bottom-i.columnSizes[t].height)),l.top=e,l.left+=i.left+o,e+=l.height+o}}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){var t;this.options.display&&(Zt(t=this.ctx,this),this._draw(),te(t))}_draw(){const d=this,{options:t,columnSizes:f,lineWidths:p,ctx:g}=d,{align:m,labels:v}=t,b=yt.color,y=vn(t.rtl,d.left,d.width),x=$e(v.font),{color:_,padding:w}=v,k=x.size,T=k/2;let S;d.drawTitle(),g.textAlign=y.textAlign("left"),g.textBaseline="middle",g.lineWidth=.5,g.font=x.string;const{boxWidth:E,boxHeight:C,itemHeight:M}=ns(v,k),A=d.isHorizontal(),D=this._computeTitleHeight();S=A?{x:O(m,d.left+w,d.right-p[0]),y:d.top+w+D,line:0}:{x:d.left+w,y:O(m,d.top+D+w,d.bottom-f[0].height),line:0},bn(d.ctx,t.textDirection);const L=M+w;d.legendItems.forEach((t,e)=>{g.strokeStyle=t.fontColor||_,g.fillStyle=t.fontColor||_;var i=g.measureText(t.text).width,n=y.textAlign(t.textAlign||(t.textAlign=v.textAlign)),r=E+k/2+i;let s=S.x,o=S.y;y.setWidth(d.width),A?0<e&&s+r+w>d.right&&(o=S.y+=L,S.line++,s=S.x=O(m,d.left+w,d.right-p[S.line])):0<e&&o+L>d.bottom&&(s=S.x=s+f[S.line].width+w,S.line++,o=S.y=O(m,d.top+D+w,d.bottom-f[S.line].height));var a,l,c,h,u=y.x(s);a=u,l=o,c=t,isNaN(E)||E<=0||isNaN(C)||C<0||(g.save(),h=K(c.lineWidth,1),g.fillStyle=K(c.fillStyle,b),g.lineCap=K(c.lineCap,"butt"),g.lineDashOffset=K(c.lineDashOffset,0),g.lineJoin=K(c.lineJoin,"miter"),g.lineWidth=h,g.strokeStyle=K(c.strokeStyle,b),g.setLineDash(K(c.lineDash,[])),v.usePointStyle?(i={radius:E*Math.SQRT2/2,pointStyle:c.pointStyle,rotation:c.rotation,borderWidth:h},e=y.xPlus(a,E/2),u=l+T,Gt(g,i,e,u)):(l=l+Math.max((k-C)/2,0),a=y.leftForLtr(a,E),c=He(c.borderRadius),g.beginPath(),Object.values(c).some(t=>0!==t)?re(g,{x:a,y:l,w:E,h:C,radius:c}):g.rect(a,l,E,C),g.fill(),0!==h&&g.stroke()),g.restore()),s=P(n,s+E+T,d.right),h=y.x(s),n=o,t=t,ne(g,t.text,h,n+M/2,x,{strikethrough:t.hidden,textAlign:t.textAlign}),A?S.x+=r+w:S.y+=L}),yn(d.ctx,t.textDirection)}drawTitle(){var n=this,r=n.options,s=r.title,o=$e(s.font),a=Fe(s.padding);if(s.display){const h=vn(r.rtl,n.left,n.width),u=n.ctx;var l=s.position,c=o.size/2,a=a.top+c;let t,e=n.left,i=n.width;this.isHorizontal()?(i=Math.max(...n.lineWidths),t=n.top+a,e=O(r.align,e,n.right-i)):(c=n.columnSizes.reduce((t,e)=>Math.max(t,e.height),0),t=a+O(r.align,n.top,n.bottom-c-r.labels.padding-n._computeTitleHeight()));n=O(l,e,e+i);u.textAlign=h.textAlign(d(l)),u.textBaseline="middle",u.strokeStyle=s.color,u.fillStyle=s.color,u.font=o.string,ne(u,s.text,n,t,o)}}_computeTitleHeight(){var t=this.options.title,e=$e(t.font),i=Fe(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,r;if(t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom)for(r=this.legendHitBoxes,i=0;i<r.length;++i)if(t>=(n=r[i]).left&&t<=n.left+n.width&&e>=n.top&&e<=n.top+n.height)return this.legendItems[i];return null}handleEvent(t){var e,i,n,r,s=this,o=s.options;n=t.type,r=o,("mousemove"===n&&(r.onHover||r.onLeave)||r.onClick&&("click"===n||"mouseup"===n))&&(e=s._getLegendItemAt(t.x,t.y),"mousemove"===t.type?(i=s._hoveredItem,r=e,r=null!==(n=i)&&null!==r&&n.datasetIndex===r.datasetIndex&&n.index===r.index,i&&!r&&J(o.onLeave,[t,i,s],s),(s._hoveredItem=e)&&!r&&J(o.onHover,[t,e,s],s)):e&&J(o.onClick,[t,e,s],s))}}var ss={id:"legend",_element:rs,start(t,e,i){var n=t.legend=new rs({ctx:t.ctx,options:i,chart:t});Je.configure(t,n,i),Je.addBox(t,n)},stop(t){Je.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const n=t.legend;Je.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){var n=e.datasetIndex;const 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 n=t.data.datasets,{labels:{usePointStyle:r,pointStyle:s,textAlign:o,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{var e=t.controller.getStyle(r?0:void 0),i=Fe(e.borderWidth);return{text:n[t.index].label,fillStyle:e.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:(i.width+i.height)/4,strokeStyle:e.borderColor,pointStyle:s||e.pointStyle,rotation:e.rotation,textAlign:o||e.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 os extends Ri{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){var i=this,n=i.options;i.left=0,i.top=0,n.display?(i.width=i.right=t,i.height=i.bottom=e,e=q(n.text)?n.text.length:1,i._padding=Fe(n.padding),n=e*$e(n.font).lineHeight+i._padding.height,i.isHorizontal()?i.height=n:i.width=n):i.width=i.height=i.right=i.bottom=0}isHorizontal(){var t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){var{top:e,left:i,bottom:n,right:r,options:s}=this,o=s.align;let a=0,l,c,h;return l=this.isHorizontal()?(c=O(o,i,r),h=e+t,r-i):(a="left"===s.position?(c=i+t,h=O(o,n,e),-.5*xt):(c=r-t,h=O(o,e,n),.5*xt),n-e),{titleX:c,titleY:h,maxWidth:l,rotation:a}}draw(){var t,e,i,n,r,s=this.ctx,o=this.options;o.display&&(r=(t=$e(o.font)).lineHeight/2+this._padding.top,{titleX:e,titleY:i,maxWidth:n,rotation:r}=this._drawArgs(r),ne(s,o.text,0,0,t,{color:o.color,maxWidth:n,rotation:r,textAlign:d(o.align),textBaseline:"middle",translation:[e,i]}))}}var as={id:"title",_element:os,start(t,e,i){var n;n=t,t=i,i=new os({ctx:n.ctx,options:t,chart:n}),Je.configure(n,i,t),Je.addBox(n,i),n.titleBlock=i},stop(t){var e=t.titleBlock;Je.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const n=t.titleBlock;Je.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 ls={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 a=t[e].element;var o;a&&a.hasValue()&&(o=a.tooltipPosition(),n+=o.x,r+=o.y,++s)}return{x:n/s,y:r/s}},nearest(t,e){if(!t.length)return!1;let i=e.x,n=e.y,r=Number.POSITIVE_INFINITY,s,o,a;for(s=0,o=t.length;s<o;++s){const h=t[s].element;var l;h&&h.hasValue()&&((l=$t(e,h.getCenterPoint()))<r&&(r=l,a=h))}var c;return a&&(c=a.tooltipPosition(),i=c.x,n=c.y),{x:i,y:n}}};function cs(t,e){return e&&(q(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function hs(t){return("string"==typeof t||t instanceof String)&&-1<t.indexOf("\n")?t.split("\n"):t}function us(t,e){const i=t._chart.ctx,{body:n,footer:r,title:s}=t;var{boxWidth:o,boxHeight:a}=e,l=$e(e.bodyFont),c=$e(e.titleFont),h=$e(e.footerFont),u=s.length,d=r.length,f=n.length,p=Fe(e.padding);let g=p.height,m=0;var v=n.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);v+=t.beforeBody.length+t.afterBody.length,u&&(g+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),v&&(a=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight,g+=f*a+(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,Z(t.title,y),i.font=l.string,Z(t.beforeBody.concat(t.afterBody),y),b=e.displayColors?o+2:0,Z(n,t=>{Z(t.before,y),Z(t.lines,y),Z(t.after,y)}),b=0,i.font=h.string,Z(t.footer,y),i.restore(),m+=p.width,{width:m,height:g}}function ds(t,e,i,n){var{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":o-s/2<=r&&(c="right"),function(t,e,i,n){var{x:r,width:n}=n,i=i.caretSize+i.caretPadding;return"left"===t&&r+n+i>e.width||"right"===t&&r-n-i<0}(c,t,e,i)&&(c="center"),c}function fs(t,e,i){var n=e.yAlign||function(t,e){var{y:i,height:e}=e;return i<e/2?"top":i>t.height-e/2?"bottom":"center"}(t,i);return{xAlign:e.xAlign||ds(t,e,i,n),yAlign:n}}function ps(t,e,i,n){var{caretSize:r,caretPadding:s,cornerRadius:o}=t,{xAlign:t,yAlign:i}=i,r=r+s,o=o+s;let a=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,t);s=function(t,e,i){let{y:n,height:r}=t;return"top"===e?n+=i:n-="bottom"===e?r+i:r/2,n}(e,i,r);return"center"===i?"left"===t?a+=r:"right"===t&&(a-=r):"left"===t?a-=o:"right"===t&&(a+=o),{x:Vt(a,0,n.width-e.width),y:Vt(s,0,n.height-e.height)}}function gs(t,e,i){i=Fe(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function ms(t){return cs([],hs(t))}function vs(t,e){e=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return e?t.override(e):t}class bs extends Ri{constructor(t){super(),this.opacity=0,this._active=[],this._chart=t._chart,this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){var t=this._cachedAnimations;if(t)return t;var e=this._chart,t=this.options.setContext(this.getContext()),e=t.enabled&&e.options.animation&&t.animations,t=new Ti(this._chart,e);return e._cacheable&&(this._cachedAnimations=Object.freeze(t)),t}getContext(){var t,e,i;return this.$context||(this.$context=(t=this._chart.getContext(),i=(e=this)._tooltipItems,Object.assign(Object.create(t),{tooltip:e,tooltipItems:i,type:"tooltip"})))}getTitle(t,e){const{callbacks:i}=e;var n=i.beforeTitle.apply(this,[t]),r=i.title.apply(this,[t]),e=i.afterTitle.apply(this,[t]),t=cs(t=[],hs(n));return t=cs(t,hs(r)),t=cs(t,hs(e))}getBeforeBody(t,e){return ms(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const n=this,{callbacks:r}=e,s=[];return Z(t,t=>{var e={before:[],lines:[],after:[]};const i=vs(r,t);cs(e.before,hs(i.beforeLabel.call(n,t))),cs(e.lines,i.label.call(n,t)),cs(e.after,hs(i.afterLabel.call(n,t))),s.push(e)}),s}getAfterBody(t,e){return ms(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e;var n=i.beforeFooter.apply(this,[t]),r=i.footer.apply(this,[t]),e=i.afterFooter.apply(this,[t]),t=cs(t=[],hs(n));return t=cs(t,hs(r)),t=cs(t,hs(e))}_createItems(n){const i=this;var t=i._active;const r=i._chart.data,s=[],o=[],a=[];let e=[],l,c;for(l=0,c=t.length;l<c;++l)e.push(function(t,e){var{element:i,datasetIndex:n,index:r}=e;const s=t.getDatasetMeta(n).controller;var{label:o,value:e}=s.getLabelAndValue(r);return{chart:t,label:o,parsed:s.getParsed(r),raw:t.data.datasets[n].data[r],formattedValue:e,dataset:s.getDataset(),dataIndex:r,datasetIndex:n,element:i}}(i._chart,t[l]));return n.filter&&(e=e.filter((t,e,i)=>n.filter(t,e,i,r))),n.itemSort&&(e=e.sort((t,e)=>n.itemSort(t,e,r))),Z(e,t=>{const e=vs(n.callbacks,t);s.push(e.labelColor.call(i,t)),o.push(e.labelPointStyle.call(i,t)),a.push(e.labelTextColor.call(i,t))}),i.labelColors=s,i.labelPointStyles=o,i.labelTextColors=a,i.dataPoints=e,e}update(t,e){var i=this;const n=i.options.setContext(i.getContext());var r,s,o,a=i._active;let l,c=[];a.length?(r=ls[n.position].call(i,a,i._eventPosition),c=i._createItems(n),i.title=i.getTitle(c,n),i.beforeBody=i.getBeforeBody(c,n),i.body=i.getBody(c,n),i.afterBody=i.getAfterBody(c,n),i.footer=i.getFooter(c,n),s=i._size=us(i,n),o=Object.assign({},r,s),a=fs(i._chart,n,o),o=ps(n,o,a,i._chart),i.xAlign=a.xAlign,i.yAlign=a.yAlign,l={opacity:1,x:o.x,y:o.y,width:s.width,height:s.height,caretX:r.x,caretY:r.y}):0!==i.opacity&&(l={opacity:0}),i._tooltipItems=c,i.$context=void 0,l&&i._resolveAnimations().update(i,l),t&&n.external&&n.external.call(i,{chart:i._chart,tooltip:i,replay:e})}drawCaret(t,e,i,n){n=this.getCaretPosition(t,i,n);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){var{xAlign:n,yAlign:r}=this,{cornerRadius:s,caretSize:o}=i,{x:a,y:i}=t,{width:t,height:e}=e;let l,c,h,u,d,f;return"center"===r?(d=i+e/2,f="left"===n?(l=a,c=l-o,u=d+o,d-o):(l=a+t,c=l+o,u=d-o,d+o),h=l):(c="left"===n?a+s+o:"right"===n?a+t-s-o:this.caretX,h="top"===r?(u=i,d=u-o,l=c-o,c+o):(u=i+e,d=u+o,l=c+o,c-o),f=u),{x1:l,x2:c,x3:h,y1:u,y2:d,y3:f}}drawTitle(t,e,i){var n=this.title,r=n.length;let s,o,a;if(r){const l=vn(i.rtl,this.x,this.width);for(t.x=gs(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",s=$e(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){var s,o=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c}=r,h=$e(r.bodyFont),u=gs(this,"left",r),u=n.x(u),h=l<h.lineHeight?(h.lineHeight-l)/2:0,e=e.y+h;r.usePointStyle?(h={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},a=n.leftForLtr(u,c)+c/2,s=e+l/2,t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,Gt(t,h,a,s),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Gt(t,h,a,s)):(t.lineWidth=o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0,s=n.leftForLtr(u,c),n=n.leftForLtr(n.xPlus(u,1),c-2),u=He(o.borderRadius),Object.values(u).some(t=>0!==t)?(t.beginPath(),t.fillStyle=r.multiKeyBackground,re(t,{x:s,y:e,w:c,h:l,radius:u}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),re(t,{x:n,y:e+1,w:c-2,h:l-2,radius:u}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(s,e,c,l),t.strokeRect(s,e,c,l),t.fillStyle=o.backgroundColor,t.fillRect(n,e+1,c-2,l-2))),t.fillStyle=this.labelTextColors[i]}drawBody(e,i,t){var{body:n}=this;const{bodySpacing:r,bodyAlign:s,displayColors:o,boxHeight:a,boxWidth:l}=t;var c=$e(t.bodyFont);let h=c.lineHeight,u=0;const d=vn(t.rtl,this.x,this.width);function f(t){i.fillText(t,d.x(e.x+u),e.y+h/2),e.y+=h+r}var p=d.textAlign(s);let g,m,v,b,y,x,_;for(i.textAlign=s,i.textBaseline="middle",i.font=c.string,e.x=gs(this,p,t),i.fillStyle=t.bodyColor,Z(this.beforeBody,f),u=o&&"right"!==p?"center"===s?l/2+1:l+2:0,b=0,x=n.length;b<x;++b){for(g=n[b],m=this.labelTextColors[b],i.fillStyle=m,Z(g.before,f),v=g.lines,o&&v.length&&(this._drawColorBox(i,e,b,d,t),h=Math.max(c.lineHeight,a)),y=0,_=v.length;y<_;++y)f(v[y]),h=c.lineHeight;Z(g.after,f)}u=0,h=c.lineHeight,Z(this.afterBody,f),e.y-=r}drawFooter(t,e,i){var n=this.footer,r=n.length;let s,o;if(r){const a=vn(i.rtl,this.x,this.width);for(t.x=gs(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=a.textAlign(i.footerAlign),e.textBaseline="middle",s=$e(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){var{xAlign:r,yAlign:s}=this,{x:o,y:a}=t,{width:l,height:c}=i,h=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-h,a),e.quadraticCurveTo(o+l,a,o+l,a+h),"center"===s&&"right"===r&&this.drawCaret(t,e,i,n),e.lineTo(o+l,a+c-h),e.quadraticCurveTo(o+l,a+c,o+l-h,a+c),"bottom"===s&&this.drawCaret(t,e,i,n),e.lineTo(o+h,a+c),e.quadraticCurveTo(o,a+c,o,a+c-h),"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(),0<n.borderWidth&&e.stroke()}_updateAnimationTarget(t){var e,i,n=this,r=n._chart,s=n.$animations,o=s&&s.x,a=s&&s.y;!o&&!a||(e=ls[t.position].call(n,n._active,n._eventPosition))&&(i=n._size=us(n,t),r=ps(t,s=Object.assign({},e,n._size),s=fs(r,t,s),r),o._to===r.x&&a._to===r.y||(n.xAlign=s.xAlign,n.yAlign=s.yAlign,n.width=i.width,n.height=i.height,n.caretX=e.x,n.caretY=e.y,n._resolveAnimations().update(n,r)))}draw(t){var e=this,i=e.options.setContext(e.getContext());let n=e.opacity;if(n){e._updateAnimationTarget(i);var r={width:e.width,height:e.height};const a={x:e.x,y:e.y};n=Math.abs(n)<.001?0:n;var s=Fe(i.padding),o=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;i.enabled&&o&&(t.save(),t.globalAlpha=n,e.drawBackground(a,t,r,i),bn(t,i.textDirection),a.y+=s.top,e.drawTitle(a,t,i),e.drawBody(a,t,i),e.drawFooter(a,t,i),yn(t,i.textDirection),t.restore())}}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this;var i=n._active,r=t.map(({datasetIndex:t,index:e})=>{var i=n._chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),t=!tt(i,r),i=n._positionChanged(r,e);(t||i)&&(n._active=r,n._eventPosition=e,n.update(!0))}handleEvent(t,e){var i=this.options,n=this._active||[],r=!1;let s=[];"mouseout"!==t.type&&(s=this._chart.getElementsAtEventForMode(t,i.mode,i,e),i.reverse&&s.reverse());var o=this._positionChanged(s,t);return(r=e||!tt(s,n)||o)&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),r}_positionChanged(t,e){var{caretX:i,caretY:n,options:r}=this,e=ls[r.position].call(this,t,e);return!1!==e&&(i!==e.x||n!==e.y)}}bs.positioners=ls;Te={id:"tooltip",_element:bs,positioners:ls,afterInit(t,e,i){i&&(t.tooltip=new bs({_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;var i={tooltip:e};!1!==t.notifyPlugins("beforeTooltipDraw",i)&&(e&&e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i))},afterEvent(t,e){var i;t.tooltip&&(i=e.replay,t.tooltip.handleEvent(e.event,i)&&(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,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:B,title(t){if(0<t.length){var e=t[0],i=e.chart.data.labels,t=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(0<t&&e.dataIndex<t)return i[e.dataIndex]}return""},afterTitle:B,beforeBody:B,beforeLabel:B,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");t=t.formattedValue;return V(t)||(e+=t),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex);t=e.controller.getStyle(t.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex);t=e.controller.getStyle(t.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:B,afterBody:B,beforeFooter:B,footer:B,afterFooter:B}},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"]},as=Object.freeze({__proto__:null,Decimation:Wr,Filler:is,Legend:ss,Title:as,Tooltip:Te});function ys(t,e,i){var n,r,s,o=t.indexOf(e);return-1===o?(n=t,s=i,"string"==typeof(r=e)?n.push(r)-1:isNaN(r)?null:s):o!==t.lastIndexOf(e)?i:o}class xs extends Yi{constructor(t){super(t),this._startValue=void 0,this._valueRange=0}parse(t,e){if(V(t))return null;var i=this.getLabels();return e=isFinite(e)&&i[e]===t?e:ys(i,t,K(e,t)),e=e,i=i.length-1,null===e?null:Vt(Math.round(e),0,i)}determineDataLimits(){var{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(){var e=this.min,i=this.max,t=this.options.offset;const n=[];let r=this.getLabels();r=0===e&&i===r.length-1?r:r.slice(e,i+1),this._valueRange=Math.max(r.length-(t?0:1),1),this._startValue=this.min-(t?.5:0);for(let t=e;t<=i;t++)n.push({value:t});return n}getLabelForValue(t){var e=this.getLabels();return 0<=t&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return null===(t="number"!=typeof t?this.parse(t):t)?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){var 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 _s(t,e,{horizontal:i,minRotation:n}){n=Rt(n),n=(i?Math.sin(n):Math.cos(n))||.001;return Math.min(e/n,.75*e*(""+t).length)}xs.id="category",xs.defaults={ticks:{callback:xs.prototype.getLabelForValue}};class ws extends Yi{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 V(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){var{beginAtZero:t}=this.options;const{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:n,max:r}=this;var s,o,a=t=>n=e?n:t,l=t=>r=i?r:t;t&&(s=At(n),o=At(r),s<0&&o<0?l(0):0<s&&0<o&&a(0)),n===r&&(l(r+1),t||a(n-1)),this.min=n,this.max=r}getTickLimit(){let{maxTicksLimit:t,stepSize:e}=this.options.ticks,i;return e?i=Math.ceil(this.max/e)-Math.floor(this.min/e)+1:(i=this.computeTickLimit(),t=t||11),t&&(i=Math.min(t,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){var t=this,e=t.options,i=e.ticks,n=t.getTickLimit();const r=function(t,e){const i=[];var{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=!V(s),v=!V(o),e=!V(l),h=(g-p)/(h+1);let b=Dt((g-p)/f/d)*d,y,x,_,w;if(b<1e-14&&!m&&!v)return[{value:p},{value:g}];w=Math.ceil(g/b)-Math.floor(p/b),w>f&&(b=Dt(w*b/f/d)*d),V(a)||(y=Math.pow(10,a),b=Math.ceil(b*y)/y),_="ticks"===n?(x=Math.floor(p/b)*b,Math.ceil(g/b)*b):(x=p,g),m&&v&&r&&Nt((o-s)/r,b/1e3)?(w=Math.min((o-s)/b,c),b=(o-s)/w,x=s,_=o):e?(x=m?s:x,_=v?o:_,w=l-1,b=(_-x)/w):(w=(_-x)/b,w=Pt(w,Math.round(w),b/1e3)?Math.round(w):Math.ceil(w)),l=Math.max(Ht(b),Ht(x)),y=Math.pow(10,V(a)?l:a),x=Math.round(x*y)/y,_=Math.round(_*y)/y;let k=0;for(m&&(u&&x!==s?(i.push({value:s}),x<s&&k++,Pt(Math.round((x+k*b)*y)/y,s,_s(s,h,t))&&k++):x<s&&k++);k<w;++k)i.push({value:Math.round((x+k*b)*y)/y});return v&&u&&_!==o?Pt(i[i.length-1].value,o,_s(o,h,t))?i[i.length-1].value=o:i.push({value:o}):v&&_!==o||i.push({value:_}),i}({maxTicks:n=Math.max(2,n),bounds:e.bounds,min:e.min,max:e.max,precision:i.precision,step:i.stepSize,count:i.count,maxDigits:t._maxDigits(),horizontal:t.isHorizontal(),minRotation:i.minRotation||0,includeBounds:!1!==i.includeBounds},t._range||t);return"ticks"===e.bounds&&It(r,t,"value"),e.reverse?(r.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),r}configure(){var t=this.ticks;let e=this.min,i=this.max;super.configure(),this.options.offset&&t.length&&(t=(i-e)/Math.max(t.length-1,1)/2,e-=t,i+=t),this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return Hi(t,this.chart.options.locale)}}class ks extends ws{determineDataLimits(){var{min:t,max:e}=this.getMinMax(!0);this.min=Y(t)?t:0,this.max=Y(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){var t=this.isHorizontal(),e=t?this.width:this.height,i=Rt(this.options.ticks.minRotation),t=(t?Math.sin(i):Math.cos(i))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,i.lineHeight/t))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Ts(t){return 1==t/Math.pow(10,Math.floor(Mt(t)))}ks.id="linear",ks.defaults={ticks:{callback:$i.formatters.numeric}};class Ss extends Yi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){e=ws.prototype.parse.apply(this,[t,e]);if(0!==e)return Y(e)&&0<e?e:null;this._zero=!0}determineDataLimits(){var{min:t,max:e}=this.getMinMax(!0);this.min=Y(t)?Math.max(0,t):null,this.max=Y(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:i}=this.getUserBounds();let n=this.min,r=this.max;var t=t=>n=e?n:t,s=t=>r=i?r:t,o=(t,e)=>Math.pow(10,Math.floor(Mt(t))+e);n===r&&(n<=0?(t(1),s(10)):(t(o(n,-1)),s(o(r,1)))),n<=0&&t(o(r,-1)),r<=0&&s(o(n,1)),this._zero&&this.min!==this._suggestedMin&&n===o(this.min,0)&&t(o(n,-1)),this.min=n,this.max=r}buildTicks(){var t=this,e=t.options;const i=function(t,e){var i=Math.floor(Mt(e.max)),n=Math.ceil(e.max/Math.pow(10,i));const r=[];let s=X(t.min,Math.pow(10,Math.floor(Mt(e.min)))),o=Math.floor(Mt(s)),a=Math.floor(s/Math.pow(10,o)),l=o<0?Math.pow(10,Math.abs(o)):1;for(;r.push({value:s,major:Ts(s)}),++a,10===a&&(a=1,++o,l=0<=o?1:l),s=Math.round(a*Math.pow(10,o)*l)/l,o<i||o===i&&a<n;);return t=X(t.max,s),r.push({value:t,major:Ts(s)}),r}({min:t._userMin,max:t._userMax},t);return"ticks"===e.bounds&&It(i,t,"value"),e.reverse?(i.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),i}getLabelForValue(t){return void 0===t?"0":Hi(t,this.chart.options.locale)}configure(){var t=this.min;super.configure(),this._startValue=Mt(t),this._valueRange=Mt(this.max)-Mt(t)}getPixelForValue(t){return null===(t=void 0===t||0===t?this.min:t)||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Mt(t)-this._startValue)/this._valueRange)}getValueForPixel(t){t=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+t*this._valueRange)}}function Es(t){var e=t.ticks;if(e.display&&t.display){t=Fe(e.backdropPadding);return K(e.font&&e.font.size,yt.font.size)+t.height}return 0}function Cs(t,e,i,n,r){return t===n||t===r?{start:e-i/2,end:e+i/2}:t<n||r<t?{start:e-i,end:e}:{start:e,end:e+i}}function Ms(e){const t={l:0,r:e.width,t:0,b:e.height-e.paddingTop},i={};let n,r,s;const o=[],a=[];var l=e.getLabels().length;for(n=0;n<l;n++){const d=e.options.pointLabels.setContext(e.getContext(n));a[n]=d.padding,s=e.getPointPosition(n,e.drawingArea+a[n]);var c=$e(d.font);e.ctx.font=c.string,h=e.ctx,u=c.lineHeight,r=q(c=e._pointLabels[n])?{w:Xt(h,h.font,c),h:c.length*u}:{w:h.measureText(c).width,h:u},o[n]=r;var h=e.getIndexAngle(n),c=jt(h),u=Cs(c,s.x,r.w,0,180),c=Cs(c,s.y,r.h,90,270);u.start<t.l&&(t.l=u.start,i.l=h),u.end>t.r&&(t.r=u.end,i.r=h),c.start<t.t&&(t.t=c.start,i.t=h),c.end>t.b&&(t.b=c.end,i.b=h)}e._setReductions(e.drawingArea,t,i),e._pointLabelItems=[];const d=e.options;var f,p=Es(d),g=e.getDistanceFromCenterForValue(d.ticks.reverse?e.min:e.max);for(n=0;n<l;n++){var m=0===n?p/2:0,v=e.getPointPosition(n,g+m+a[n]),b=jt(e.getIndexAngle(n)),y=o[n];x=y,f=v,90===(m=b)||270===m?f.y-=x.h/2:(270<m||m<90)&&(f.y-=x.h);var x=function(t){{if(0===t||180===t)return"center";if(t<180)return"left"}return"right"}(b);let t;t="left"===x?v.x:"center"===x?v.x-y.w/2:v.x-y.w;b=t+y.w;e._pointLabelItems[n]={x:v.x,y:v.y,textAlign:x,left:t,top:v.y,right:b,bottom:v.y+y.h}}}function As(e,i,t,n){const{ctx:r}=e;if(t)r.arc(e.xCenter,e.yCenter,i,0,_t);else{var s=e.getPointPosition(0,i);r.moveTo(s.x,s.y);for(let t=1;t<n;t++)s=e.getPointPosition(t,i),r.lineTo(s.x,s.y)}}function Ds(t){return Ot(t)?t:0}Ss.id="logarithmic",Ss.defaults={ticks:{callback:$i.formatters.logarithmic,major:{enabled:!0}}};class Ls extends ws{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=Es(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2}determineDataLimits(){var{min:t,max:e}=this.getMinMax(!1);this.min=Y(t)&&!isNaN(t)?t:0,this.max=Y(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Es(this.options))}generateTickLabels(t){const i=this;ws.prototype.generateTickLabels.call(i,t),i._pointLabels=i.getLabels().map((t,e)=>{e=J(i.options.pointLabels.callback,[t,e],i);return e||0===e?e:""})}fit(){var t=this.options;t.display&&t.pointLabels.display?Ms(this):this.setCenterPoint(0,0,0,0)}_setReductions(t,e,i){var n=e.l/Math.sin(i.l),r=Math.max(e.r-this.width,0)/Math.sin(i.r),s=-e.t/Math.cos(i.t),i=-Math.max(e.b-(this.height-this.paddingTop),0)/Math.cos(i.b),n=Ds(n),r=Ds(r),s=Ds(s),i=Ds(i);this.drawingArea=Math.max(t/2,Math.min(Math.floor(t-(n+r)/2),Math.floor(t-(s+i)/2))),this.setCenterPoint(n,r,s,i)}setCenterPoint(t,e,i,n){var r=this,e=r.width-e-r.drawingArea,t=t+r.drawingArea,i=i+r.drawingArea,n=r.height-r.paddingTop-n-r.drawingArea;r.xCenter=Math.floor((t+e)/2+r.left),r.yCenter=Math.floor((i+n)/2+r.top+r.paddingTop)}getIndexAngle(t){return Bt(t*(_t/this.getLabels().length)+Rt(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(V(t))return NaN;var e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(V(t))return NaN;t/=this.drawingArea/(this.max-this.min);return this.options.reverse?this.max-t:this.min+t}getPointPosition(t,e){t=this.getIndexAngle(t)-St;return{x:Math.cos(t)*e+this.xCenter,y:Math.sin(t)*e+this.yCenter,angle:t}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){var{left:e,top:i,right:n,bottom:t}=this._pointLabelItems[t];return{left:e,top:i,right:n,bottom:t}}drawBackground(){var{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),As(this,this.getDistanceFromCenterForValue(this._endValue),e,this.getLabels().length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const i=this,t=i.ctx;var e=i.options;const{angleLines:n,grid:r}=e,s=i.getLabels().length;let o,a,l;if(e.pointLabels.display&&function(e,i){const{ctx:n,options:{pointLabels:r}}=e;for(let t=i-1;0<=t;t--){var s,o=r.setContext(e.getContext(t)),a=$e(o.font),{x:l,y:c,textAlign:h,left:u,top:d,right:f,bottom:p}=e._pointLabelItems[t],{backdropColor:g}=o;V(g)||(s=Fe(o.backdropPadding),n.fillStyle=g,n.fillRect(u-s.left,d-s.top,f-u+s.width,p-d+s.height)),ne(n,e._pointLabels[t],l,c+a.lineHeight/2,a,{color:o.color,textAlign:h,textBaseline:"middle"})}}(i,s),r.display&&i.ticks.forEach((t,e)=>{0!==e&&(a=i.getDistanceFromCenterForValue(t.value),e=r.setContext(i.getContext(e-1)),function(t,e,i,n){const r=t.ctx;var 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(),As(t,i,s,n),r.closePath(),r.stroke(),r.restore())}(i,e,a,s))}),n.display){for(t.save(),o=i.getLabels().length-1;0<=o;o--){var c=n.setContext(i.getContext(o)),{color:h,lineWidth:u}=c;u&&h&&(t.lineWidth=u,t.strokeStyle=h,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,a=i.getDistanceFromCenterForValue(e.ticks.reverse?i.min:i.max),l=i.getPointPosition(o,a),t.beginPath(),t.moveTo(i.xCenter,i.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const o=this,a=o.ctx,l=o.options,c=l.ticks;if(c.display){var t=o.getIndexAngle(0);let r,s;a.save(),a.translate(o.xCenter,o.yCenter),a.rotate(t),a.textAlign="center",a.textBaseline="middle",o.ticks.forEach((t,e)=>{var i,n;0===e&&!l.reverse||(n=$e((i=c.setContext(o.getContext(e))).font),r=o.getDistanceFromCenterForValue(o.ticks[e].value),i.showLabelBackdrop&&(s=a.measureText(t.label).width,a.fillStyle=i.backdropColor,e=Fe(i.backdropPadding),a.fillRect(-s/2-e.left,-r-n.size/2-e.top,s+e.width,n.size+e.height)),ne(a,t.label,0,-r,n,{color:i.color}))}),a.restore()}}drawTitle(){}}Ls.id="radialLinear",Ls.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:$i.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5}},Ls.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};const Os={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:!(Ls.descriptors={angleLines:{_fallback:"grid"}}),size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ps=Object.keys(Os);function Ns(t,e){return t-e}function Is(t,e){if(V(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)),Y(o)||(o="string"==typeof n?i.parse(o,n):i.parse(o)),null===o?null:(r&&(o="week"!==r||!Ot(s)&&!0!==s?i.startOf(o,r):i.startOf(o,"isoWeek",s)),+o)}function Rs(e,i,n,r){var s=Ps.length;for(let t=Ps.indexOf(e);t<s-1;++t){var o=Os[Ps[t]],a=o.steps||Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-i)/(a*o.size))<=r)return Ps[t]}return Ps[s-1]}function js(t,e,i){var n,r;i?i.length&&({lo:n,hi:r}=se(i,e),t[i[n]>=e?i[n]:i[r]]=!0):t[e]=!0}function Hs(t,e,i){const n=[],r={};var 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;var t=+r.startOf(e[0].value,n),s=e[e.length-1].value;let o,a;for(o=t;o<=s;o=+r.add(o,1,n))0<=(a=i[o])&&(e[a].major=!0);return e}(t,n,r,i):n}class Fs extends Yi{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){var i=t.time||(t.time={});const n=this._adapter=new tr._date(t.adapters.date);st(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:Is(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){var t=this.options;const e=this._adapter;var 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=Y(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),r=Y(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(){var 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(){var t=this,e=t.options,i=e.time,n=e.ticks,r="labels"===n.source?t.getLabelTimestamps():t._generate();"ticks"===e.bounds&&r.length&&(t.min=t._userMin||r[0],t.max=t._userMax||r[r.length-1]);var s=t.min;const o=le(r,s,t.max);return t._unit=i.unit||(n.autoSkip?Rs(i.minUnit,t.min,t.max,t._getLabelCapacity(s)):function(e,i,n,r,s){for(let t=Ps.length-1;t>=Ps.indexOf(n);t--){var o=Ps[t];if(Os[o].common&&e._adapter.diff(s,r,o)>=i-1)return o}return Ps[n?Ps.indexOf(n):0]}(t,o.length,i.minUnit,t.min,t.max)),t._majorUnit=n.major.enabled&&"year"!==t._unit?function(i){for(let t=Ps.indexOf(i)+1,e=Ps.length;t<e;++t)if(Os[Ps[t]].common)return Ps[t]}(t._unit):void 0,t.initOffsets(r),e.reverse&&o.reverse(),Hs(t,o,t._majorUnit)}initOffsets(t){var e;let i=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,e=this.getDecimalForValue(t[t.length-1]),n=1===t.length?e:(e-this.getDecimalForValue(t[t.length-2]))/2);t=t.length<3?.5:.25;i=Vt(i,0,t),n=Vt(n,0,t),this._offsets={start:i,end:n,factor:1/(i+1+n)}}_generate(){const t=this._adapter;var e=this.min,i=this.max,n=this.options,r=n.time,s=r.unit||Rs(r.minUnit,e,i,this._getLabelCapacity(e)),o=K(r.stepSize,1),a="week"===s&&r.isoWeekday,r=Ot(a)||!0===a,l={};let c=e,h,u;if(r&&(c=+t.startOf(c,"isoWeek",a)),c=+t.startOf(c,r?"day":s),t.diff(i,e,s)>1e5*o)throw new Error(e+" and "+i+" are too far apart with stepSize of "+o+" "+s);var d="data"===n.ticks.source&&this.getDataTimestamps();for(h=c,u=0;h<i;h=+t.add(h,o,s),u++)js(l,h,d);return h!==i&&"ticks"!==n.bounds&&1!==u||js(l,h,d),Object.keys(l).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){const e=this._adapter;var i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,n){var r=this.options,s=r.time.displayFormats,o=this._unit,a=this._majorUnit,l=o&&s[o],o=a&&s[a],s=i[e],s=a&&o&&s&&s.major,l=this._adapter.format(t,n||(s?o:l)),r=r.ticks.callback;return r?J(r,[l,e,i],this):l}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){var e=this._offsets,t=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+t)*e.factor)}getValueForPixel(t){var e=this._offsets,e=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+e*(this.max-this.min)}_getLabelSize(t){var e=this.options.ticks,i=this.ctx.measureText(t).width,n=Rt(this.isHorizontal()?e.maxRotation:e.minRotation),t=Math.cos(n),e=Math.sin(n),n=this._resolveTickFontOptions(0).size;return{w:i*t+n*e,h:i*e+n*t}}_getLabelCapacity(t){var e=this.options.time,i=e.displayFormats,i=i[e.unit]||i.millisecond,i=this._tickFormatFunction(t,0,Hs(this,[t],this._majorUnit),i),i=this._getLabelSize(i),i=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return 0<i?i:1}getDataTimestamps(){let t=this._cache.data||[],e,i;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,i=n.length;e<i;++e)t=t.concat(n[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;var n=this.getLabels();for(e=0,i=n.length;e<i;++e)t.push(Is(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return de(t.sort(Ns))}}function $s(t,e,i){let n,r,s,o;i?(n=Math.floor(e),r=Math.ceil(e),s=t[n],o=t[r]):(i=se(t,e),s=i.lo,o=i.hi,n=t[s],r=t[o]);t=r-n;return t?s+(o-s)*(e-n)/t:s}Fs.id="time",Fs.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class zs extends Fs{constructor(t){super(t),this._table=[],this._maxIndex=void 0}initOffsets(){var t=this._getTimestampsForTable();this._table=this.buildLookupTable(t),this._maxIndex=this._table.length-1,super.initOffsets(t)}buildLookupTable(t){var{min:e,max:i}=this;if(!t.length)return[{time:e,pos:0},{time:i,pos:1}];const n=[e];let r,s,o;for(r=0,s=t.length;r<s;++r)e<(o=t[r])&&o<i&&n.push(o);return n.push(i),n}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps();var i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getPixelForValue(t,e){var i=this._offsets,t=this._normalized&&0<this._maxIndex&&!V(e)?e/this._maxIndex:this.getDecimalForValue(t);return this.getPixelForDecimal((i.start+t)*i.factor)}getDecimalForValue(t){return $s(this._table,t)/this._maxIndex}getValueForPixel(t){var e=this._offsets,e=this.getDecimalForPixel(t)/e.factor-e.end;return $s(this._table,e*this._maxIndex,!0)}}zs.id="timeseries",zs.defaults=Fs.defaults;Te=Object.freeze({__proto__:null,CategoryScale:xs,LinearScale:ks,LogarithmicScale:Ss,RadialLinearScale:Ls,TimeScale:Fs,TimeSeriesScale:zs});return Qn.register(fr,Te,$r,as),Qn.helpers={...En},Qn._adapters=tr,Qn.Animation=wi,Qn.Animations=Ti,Qn.animator=c,Qn.controllers=Mn.controllers.items,Qn.DatasetController=Ii,Qn.Element=Ri,Qn.elements=$r,Qn.Interaction=Le,Qn.layouts=Je,Qn.platforms=gi,Qn.Scale=Yi,Qn.Ticks=$i,Object.assign(Qn,fr,Te,$r,as,gi),Qn.Chart=Qn,"undefined"!=typeof window&&(window.Chart=Qn),Qn}),function(){var l,c,s,e,m,t,h,v,n,r,i,a,b,y,o,u,d,f,p,g,x,_,w,k,T,S,E,C,M,A,D,L,O,P,N,I,R,j,H,F,$,z,B,W,V=[].slice,q={}.hasOwnProperty,U=function(t,e){for(var i in e)q.call(e,i)&&(t[i]=e[i]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},Y=[].indexOf||function(t){for(var e=0,i=this.length;e<i;e++)if(e in this&&this[e]===t)return e;return-1};function X(){}for(u={catchupTime:100,initialRate:.03,minTime:250,ghostTime:100,maxProgressPerFrame:20,easeFactor:1.25,startOnPageLoad:!0,restartOnPushState:!0,restartOnRequestAfter:500,target:"body",elements:{checkInterval:100,selectors:["body"]},eventLag:{minSamples:10,sampleCount:3,lagThreshold:3},ajax:{trackMethods:["GET"],trackWebSockets:!0,ignoreURLs:[]}},k=function(){var t;return null!=(t="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance.now():void 0)?t:+new Date},S=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,o=window.cancelAnimationFrame||window.mozCancelAnimationFrame,null==S&&(S=function(t){return setTimeout(t,50)},o=function(t){return clearTimeout(t)}),C=function(e){var i=k(),n=function(){var t=k()-i;return 33<=t?(i=k(),e(t,function(){return S(n)})):setTimeout(n,33-t)};return n()},E=function(){var t=arguments[0],e=arguments[1],i=3<=arguments.length?V.call(arguments,2):[];return"function"==typeof t[e]?t[e].apply(t,i):t[e]},d=function(){for(var t,e,i,n=arguments[0],r=2<=arguments.length?V.call(arguments,1):[],s=0,o=r.length;s<o;s++)if(e=r[s])for(t in e)q.call(e,t)&&(i=e[t],null!=n[t]&&"object"==typeof n[t]&&null!=i&&"object"==typeof i?d(n[t],i):n[t]=i);return n},a=function(t){for(var e,i,n=e=0,r=0,s=t.length;r<s;r++)i=t[r],n+=Math.abs(i),e++;return n/e},p=function(t,e){var i;if(null==t&&(t="options"),null==e&&(e=!0),i=document.querySelector("[data-pace-"+t+"]")){if(t=i.getAttribute("data-pace-"+t),!e)return t;try{return JSON.parse(t)}catch(t){return void 0}}},X.prototype.on=function(t,e,i,n){var r;return null==n&&(n=!1),null==this.bindings&&(this.bindings={}),null==(r=this.bindings)[t]&&(r[t]=[]),this.bindings[t].push({handler:e,ctx:i,once:n})},X.prototype.once=function(t,e,i){return this.on(t,e,i,!0)},X.prototype.off=function(t,e){var i,n,r;if(null!=(null!=(n=this.bindings)?n[t]:void 0)){if(null==e)return delete this.bindings[t];for(i=0,r=[];i<this.bindings[t].length;)this.bindings[t][i].handler===e?r.push(this.bindings[t].splice(i,1)):r.push(i++);return r}},X.prototype.trigger=function(){var t,e,i,n,r,s,o=arguments[0],a=2<=arguments.length?V.call(arguments,1):[];if(null!=(n=this.bindings)&&n[o]){for(i=0,s=[];i<this.bindings[o].length;)e=(r=this.bindings[o][i]).handler,t=r.ctx,r=r.once,e.apply(null!=t?t:this,a),r?s.push(this.bindings[o].splice(i,1)):s.push(i++);return s}},W=X,m=window.Pace||{},window.Pace=m,d(m,W.prototype),T=m.options=d({},u,window.paceOptions,p()),j=0,F=(z=["ajax","document","eventLag","elements"]).length;j<F;j++)!0===T[L=z[j]]&&(T[L]=u[L]);function K(){return K.__super__.constructor.apply(this,arguments)}function Q(){this.progress=0}function G(){this.bindings={}}function J(){var e,s=this;J.__super__.constructor.apply(this,arguments),e=function(n){var r=n.open;return n.open=function(t,e,i){return D(t)&&s.trigger("request",{type:t,url:e,request:n}),r.apply(n,arguments)}},window.XMLHttpRequest=function(t){t=new R(t);return e(t),t};try{f(window.XMLHttpRequest,R)}catch(t){}if(null!=I){window.XDomainRequest=function(){var t=new I;return e(t),t};try{f(window.XDomainRequest,I)}catch(t){}}if(null!=N&&T.ajax.trackWebSockets){window.WebSocket=function(t,e){var i=null!=e?new N(t,e):new N(t);return D("socket")&&s.trigger("request",{type:"socket",url:t,protocols:e,request:i}),i};try{f(window.WebSocket,N)}catch(t){}}}function Z(){var t=this;this.elements=[],g().on("request",function(){return t.watch.apply(t,arguments)})}function tt(t){this.selector=t,this.progress=0,this.check()}function et(){var t,e,i=this;this.progress=null!=(e=this.states[document.readyState])?e:100,t=document.onreadystatechange,document.onreadystatechange=function(){return null!=i.states[document.readyState]&&(i.progress=i.states[document.readyState]),"function"==typeof t?t.apply(null,arguments):void 0}}function it(t){this.source=t,this.last=this.sinceLastUpdate=0,this.rate=T.initialRate,this.catchup=0,this.progress=this.lastProgress=0,null!=this.source&&(this.progress=E(this.source,"progress"))}W=Error,U(K,W),e=K,Q.prototype.getElement=function(){var t;if(null==this.el){if(!(t=document.querySelector(T.target)))throw new e;this.el=document.createElement("div"),this.el.className="pace pace-active",document.body.className=document.body.className.replace(/pace-done/g,""),document.body.className+=" pace-running",this.el.innerHTML='<div class="pace-progress">\n  <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>',null!=t.firstChild?t.insertBefore(this.el,t.firstChild):t.appendChild(this.el)}return this.el},Q.prototype.finish=function(){var t=this.getElement();return t.className=t.className.replace("pace-active",""),t.className+=" pace-inactive",document.body.className=document.body.className.replace("pace-running",""),document.body.className+=" pace-done"},Q.prototype.update=function(t){return this.progress=t,this.render()},Q.prototype.destroy=function(){try{this.getElement().parentNode.removeChild(this.getElement())}catch(t){e=t}return this.el=void 0},Q.prototype.render=function(){var t,e,i,n,r,s;if(null==document.querySelector(T.target))return!1;for(t=this.getElement(),i="translate3d("+this.progress+"%, 0, 0)",n=0,r=(s=["webkitTransform","msTransform","transform"]).length;n<r;n++)t.children[0].style[s[n]]=i;return(!this.lastRenderedProgress||this.lastRenderedProgress|0!==this.progress|0)&&(t.children[0].setAttribute("data-progress-text",(0|this.progress)+"%"),100<=this.progress?e="99":(e=this.progress<10?"0":"",e+=0|this.progress),t.children[0].setAttribute("data-progress",""+e)),this.lastRenderedProgress=this.progress},Q.prototype.done=function(){return 100<=this.progress},c=Q,G.prototype.trigger=function(t,e){var i,n,r,s,o;if(null!=this.bindings[t]){for(o=[],n=0,r=(s=this.bindings[t]).length;n<r;n++)i=s[n],o.push(i.call(this,e));return o}},G.prototype.on=function(t,e){var i;return null==(i=this.bindings)[t]&&(i[t]=[]),this.bindings[t].push(e)},p=G,R=window.XMLHttpRequest,I=window.XDomainRequest,N=window.WebSocket,f=function(t,e){var i,n=[];for(i in e.prototype)try{null==t[i]&&"function"!=typeof e[i]?"function"==typeof Object.defineProperty?n.push(Object.defineProperty(t,i,{get:function(){return e.prototype[i]},configurable:!0,enumerable:!0})):n.push(t[i]=e.prototype[i]):n.push(void 0)}catch(t){0}return n},_=[],m.ignore=function(){var t=arguments[0],e=2<=arguments.length?V.call(arguments,1):[];return _.unshift("ignore"),e=t.apply(null,e),_.shift(),e},m.track=function(){var t=arguments[0],e=2<=arguments.length?V.call(arguments,1):[];return _.unshift("track"),e=t.apply(null,e),_.shift(),e},D=function(t){if(null==t&&(t="GET"),"track"===_[0])return"force";if(!_.length&&T.ajax){if("socket"===t&&T.ajax.trackWebSockets)return!0;if(t=t.toUpperCase(),0<=Y.call(T.ajax.trackMethods,t))return!0}return!1},U(J,p),t=J,H=null,A=function(t){for(var e,i=T.ajax.ignoreURLs,n=0,r=i.length;n<r;n++)if("string"==typeof(e=i[n])){if(-1!==t.indexOf(e))return!0}else if(e.test(t))return!0;return!1},(g=function(){return H=null==H?new t:H})().on("request",function(t){var s,o=t.type,a=t.request,e=t.url;if(!A(e))return m.running||!1===T.restartOnRequestAfter&&"force"!==D(o)?void 0:(s=arguments,"boolean"==typeof(e=T.restartOnRequestAfter||0)&&(e=0),setTimeout(function(){var t,e,i,n,r="socket"===o?a.readyState<2:0<(r=a.readyState)&&r<4;if(r){for(m.restart(),n=[],t=0,e=(i=m.sources).length;t<e;t++){if((L=i[t])instanceof l){L.watch.apply(L,s);break}n.push(void 0)}return n}},e))}),Z.prototype.watch=function(t){var e=t.type,i=t.request,t=t.url;if(!A(t))return i=new("socket"===e?n:r)(i),this.elements.push(i)},l=Z,r=function(e){var t,i,n,r,s=this;if(this.progress=0,null!=window.ProgressEvent)for(e.addEventListener("progress",function(t){return t.lengthComputable?s.progress=100*t.loaded/t.total:s.progress=s.progress+(100-s.progress)/2},!1),t=0,i=(r=["load","abort","timeout","error"]).length;t<i;t++)e.addEventListener(r[t],function(){return s.progress=100},!1);else n=e.onreadystatechange,e.onreadystatechange=function(){var t;return 0===(t=e.readyState)||4===t?s.progress=100:3===e.readyState&&(s.progress=50),"function"==typeof n?n.apply(null,arguments):void 0}},n=function(t){for(var e,i=this,n=this.progress=0,r=(e=["error","open"]).length;n<r;n++)t.addEventListener(e[n],function(){return i.progress=100},!1)},W=function(t){var e,i,n,r;for(null==t&&(t={}),this.elements=[],null==t.selectors&&(t.selectors=[]),i=0,n=(r=t.selectors).length;i<n;i++)e=r[i],this.elements.push(new s(e))},tt.prototype.check=function(){var t=this;return document.querySelector(this.selector)?this.done():setTimeout(function(){return t.check()},T.elements.checkInterval)},tt.prototype.done=function(){return this.progress=100},s=tt,et.prototype.states={loading:0,interactive:50,complete:100},U=et,p=function(){var e,i,n,r,s,o=this;this.progress=0,s=[],r=0,n=k(),i=setInterval(function(){var t=k()-n-50;return n=k(),s.push(t),s.length>T.eventLag.sampleCount&&s.shift(),e=a(s),++r>=T.eventLag.minSamples&&e<T.eventLag.lagThreshold?(o.progress=100,clearInterval(i)):o.progress=3/(e+3)*100},50)},it.prototype.tick=function(t,e){return 100<=(e=null==e?E(this.source,"progress"):e)&&(this.done=!0),e===this.last?this.sinceLastUpdate+=t:(this.sinceLastUpdate&&(this.rate=(e-this.last)/this.sinceLastUpdate),this.catchup=(e-this.progress)/T.catchupTime,this.sinceLastUpdate=0,this.last=e),e>this.progress&&(this.progress+=this.catchup*t),e=1-Math.pow(this.progress/100,T.easeFactor),this.progress+=e*this.rate*t,this.progress=Math.min(this.lastProgress+T.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},v=it,y=i=P=b=M=O=null,m.running=!1,x=function(){if(T.restartOnPushState)return m.restart()},null!=window.history.pushState&&($=window.history.pushState,window.history.pushState=function(){return x(),$.apply(window.history,arguments)}),null!=window.history.replaceState&&(B=window.history.replaceState,window.history.replaceState=function(){return x(),B.apply(window.history,arguments)}),h={ajax:l,elements:W,document:U,eventLag:p},(w=function(){var t,e,i,n,r,s,o,a;for(m.sources=O=[],e=0,n=(s=["ajax","elements","document","eventLag"]).length;e<n;e++)!1!==T[t=s[e]]&&O.push(new h[t](T[t]));for(i=0,r=(a=null!=(o=T.extraSources)?o:[]).length;i<r;i++)L=a[i],O.push(new L(T));return m.bar=b=new c,M=[],P=new v})(),m.stop=function(){return m.trigger("stop"),m.running=!1,b.destroy(),y=!0,null!=i&&("function"==typeof o&&o(i),i=null),w()},m.restart=function(){return m.trigger("restart"),m.stop(),m.start()},m.go=function(){var g;return m.running=!0,b.render(),g=k(),y=!1,i=C(function(t,e){b.progress;for(var i,n,r,s,o,a,l,c,h,u=o=0,d=!0,f=a=0,p=O.length;a<p;f=++a)for(L=O[f],s=null!=M[f]?M[f]:M[f]=[],n=l=0,c=(i=null!=(h=L.elements)?h:[L]).length;l<c;n=++l)r=i[n],d&=(r=null!=s[n]?s[n]:s[n]=new v(r)).done,r.done||(u++,o+=r.tick(t));return b.update(P.tick(t,o/u)),b.done()||d||y?(b.update(100),m.trigger("done"),setTimeout(function(){return b.finish(),m.running=!1,m.trigger("hide")},Math.max(T.ghostTime,Math.max(T.minTime-(k()-g),0)))):e()})},m.start=function(t){d(T,t),m.running=!0;try{b.render()}catch(t){e=t}return document.querySelector(".pace")?(m.trigger("start"),m.go()):setTimeout(m.start,50)},"function"==typeof define&&define.amd?define(["pace"],function(){return m}):"object"==typeof exports?module.exports=m:T.startOnPageLoad&&m.start()}.call(this),function(){function e(t,e){return function(){return t.apply(e,arguments)}}var n,t,i,l,r,o=[].indexOf||function(t){for(var e=0,i=this.length;e<i;e++)if(e in this&&this[e]===t)return e;return-1};function s(){}function a(){this.keys=[],this.values=[]}function c(){}function h(t){null==t&&(t={}),this.scrollCallback=e(this.scrollCallback,this),this.scrollHandler=e(this.scrollHandler,this),this.resetAnimation=e(this.resetAnimation,this),this.start=e(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults),null!=t.scrollContainer&&(this.config.scrollContainer=document.querySelector(t.scrollContainer)),this.animationNameCache=new i,this.wowEvent=this.util().createEvent(this.config.boxClass)}s.prototype.extend=function(t,e){var i,n;for(i in e)n=e[i],null==t[i]&&(t[i]=n);return t},s.prototype.isMobile=function(t){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)},s.prototype.createEvent=function(t,e,i,n){var r;return null==e&&(e=!1),null==i&&(i=!1),null==n&&(n=null),null!=document.createEvent?(r=document.createEvent("CustomEvent")).initCustomEvent(t,e,i,n):null!=document.createEventObject?(r=document.createEventObject()).eventType=t:r.eventName=t,r},s.prototype.emitEvent=function(t,e){return null!=t.dispatchEvent?t.dispatchEvent(e):e in(null!=t)?t[e]():"on"+e in(null!=t)?t["on"+e]():void 0},s.prototype.addEvent=function(t,e,i){return null!=t.addEventListener?t.addEventListener(e,i,!1):null!=t.attachEvent?t.attachEvent("on"+e,i):t[e]=i},s.prototype.removeEvent=function(t,e,i){return null!=t.removeEventListener?t.removeEventListener(e,i,!1):null!=t.detachEvent?t.detachEvent("on"+e,i):delete t[e]},s.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},t=s,i=this.WeakMap||this.MozWeakMap||(a.prototype.get=function(t){for(var e,i=this.keys,n=e=0,r=i.length;e<r;n=++e)if(i[n]===t)return this.values[n]},a.prototype.set=function(t,e){for(var i,n=this.keys,r=i=0,s=n.length;i<s;r=++i)if(n[r]===t)return void(this.values[r]=e);return this.keys.push(t),this.values.push(e)},a),n=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(c.notSupported=!0,c.prototype.observe=function(){},c),l=this.getComputedStyle||function(i,t){return this.getPropertyValue=function(t){var e;return r.test(t="float"===t?"styleFloat":t)&&t.replace(r,function(t,e){return e.toUpperCase()}),(null!=(e=i.currentStyle)?e[t]:void 0)||null},this},r=/(\-([a-z]){1})/g,this.WOW=(h.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},h.prototype.init=function(){var t;return this.element=window.document.documentElement,"interactive"===(t=document.readyState)||"complete"===t?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},h.prototype.start=function(){var r,t,e,i,o;if(this.stopped=!1,this.boxes=function(){for(var t=this.element.querySelectorAll("."+this.config.boxClass),e=[],i=0,n=t.length;i<n;i++)r=t[i],e.push(r);return e}.call(this),this.all=function(){for(var t=this.boxes,e=[],i=0,n=t.length;i<n;i++)r=t[i],e.push(r);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(t=0,e=(i=this.boxes).length;t<e;t++)r=i[t],this.applyStyle(r,!0);if(this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live)return new n((o=this,function(t){for(var r,s,e=[],i=0,n=t.length;i<n;i++)s=t[i],e.push(function(){for(var t=s.addedNodes||[],e=[],i=0,n=t.length;i<n;i++)r=t[i],e.push(this.doSync(r));return e}.call(o));return e})).observe(document.body,{childList:!0,subtree:!0})},h.prototype.stop=function(){if(this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval)return clearInterval(this.interval)},h.prototype.sync=function(t){if(n.notSupported)return this.doSync(this.element)},h.prototype.doSync=function(t){var e,i,n,r,s;if(1===(t=null==t?this.element:t).nodeType){for(s=[],i=0,n=(r=(t=t.parentNode||t).querySelectorAll("."+this.config.boxClass)).length;i<n;i++)e=r[i],o.call(this.all,e)<0?(this.boxes.push(e),this.all.push(e),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(e,!0),s.push(this.scrolled=!0)):s.push(void 0);return s}},h.prototype.show=function(t){return this.applyStyle(t),t.className=t.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(t),this.util().emitEvent(t,this.wowEvent),this.util().addEvent(t,"animationend",this.resetAnimation),this.util().addEvent(t,"oanimationend",this.resetAnimation),this.util().addEvent(t,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(t,"MSAnimationEnd",this.resetAnimation),t},h.prototype.applyStyle=function(t,e){var i,n=t.getAttribute("data-wow-duration"),r=t.getAttribute("data-wow-delay"),s=t.getAttribute("data-wow-iteration");return this.animate((i=this,function(){return i.customStyle(t,e,n,r,s)}))},h.prototype.animate="requestAnimationFrame"in window?function(t){return window.requestAnimationFrame(t)}:function(t){return t()},h.prototype.resetStyle=function(){for(var t,e=this.boxes,i=[],n=0,r=e.length;n<r;n++)t=e[n],i.push(t.style.visibility="visible");return i},h.prototype.resetAnimation=function(t){if(0<=t.type.toLowerCase().indexOf("animationend"))return(t=t.target||t.srcElement).className=t.className.replace(this.config.animateClass,"").trim()},h.prototype.customStyle=function(t,e,i,n,r){return e&&this.cacheAnimationName(t),t.style.visibility=e?"hidden":"visible",i&&this.vendorSet(t.style,{animationDuration:i}),n&&this.vendorSet(t.style,{animationDelay:n}),r&&this.vendorSet(t.style,{animationIterationCount:r}),this.vendorSet(t.style,{animationName:e?"none":this.cachedAnimationName(t)}),t},h.prototype.vendors=["moz","webkit"],h.prototype.vendorSet=function(r,t){var s,o,a,e=[];for(s in t)o=t[s],r[""+s]=o,e.push(function(){for(var t=this.vendors,e=[],i=0,n=t.length;i<n;i++)a=t[i],e.push(r[""+a+s.charAt(0).toUpperCase()+s.substr(1)]=o);return e}.call(this));return e},h.prototype.vendorCSS=function(t,e){for(var i,n=l(t),r=n.getPropertyCSSValue(e),s=this.vendors,o=0,a=s.length;o<a;o++)i=s[o],r=r||n.getPropertyCSSValue("-"+i+"-"+e);return r},h.prototype.animationName=function(e){var i;try{i=this.vendorCSS(e,"animation-name").cssText}catch(t){i=l(e).getPropertyValue("animation-name")}return"none"===i?"":i},h.prototype.cacheAnimationName=function(t){return this.animationNameCache.set(t,this.animationName(t))},h.prototype.cachedAnimationName=function(t){return this.animationNameCache.get(t)},h.prototype.scrollHandler=function(){return this.scrolled=!0},h.prototype.scrollCallback=function(){var r;if(this.scrolled&&(this.scrolled=!1,this.boxes=function(){for(var t=this.boxes,e=[],i=0,n=t.length;i<n;i++)(r=t[i])&&(this.isVisible(r)?this.show(r):e.push(r));return e}.call(this),!this.boxes.length&&!this.config.live))return this.stop()},h.prototype.offsetTop=function(t){for(var e;void 0===t.offsetTop;)t=t.parentNode;for(e=t.offsetTop;t=t.offsetParent;)e+=t.offsetTop;return e},h.prototype.isVisible=function(t){var e=t.getAttribute("data-wow-offset")||this.config.offset,i=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,n=i+Math.min(this.element.clientHeight,this.util().innerHeight())-e,e=this.offsetTop(t),t=e+t.clientHeight;return e<=n&&i<=t},h.prototype.util=function(){return null!=this._util?this._util:this._util=new t},h.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},h)}.call(this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.lozad=e()}(this,function(){"use strict";var o="undefined"!=typeof document&&document.documentMode,f={rootMargin:"0px",threshold:0,load:function(t){if("picture"===t.nodeName.toLowerCase()&&(s=!1,null===(r=t.querySelector("img"))&&(r=document.createElement("img"),s=!0),o&&t.getAttribute("data-iesrc")&&(r.src=t.getAttribute("data-iesrc")),t.getAttribute("data-alt")&&(r.alt=t.getAttribute("data-alt")),s&&t.append(r)),"video"===t.nodeName.toLowerCase()&&!t.getAttribute("data-src")&&t.children){for(var e,i=t.children,n=0;n<=i.length-1;n++)(e=i[n].getAttribute("data-src"))&&(i[n].src=e);t.load()}t.getAttribute("data-poster")&&(t.poster=t.getAttribute("data-poster")),t.getAttribute("data-src")&&(t.src=t.getAttribute("data-src")),t.getAttribute("data-srcset")&&t.setAttribute("srcset",t.getAttribute("data-srcset"));var r,s=",";t.getAttribute("data-background-delimiter")&&(s=t.getAttribute("data-background-delimiter")),t.getAttribute("data-background-image")?t.style.backgroundImage="url('"+t.getAttribute("data-background-image").split(s).join("'),url('")+"')":t.getAttribute("data-background-image-set")&&(s=-1===(s=(r=t.getAttribute("data-background-image-set").split(s))[0].substr(0,r[0].indexOf(" "))||r[0]).indexOf("url(")?"url("+s+")":s,1===r.length?t.style.backgroundImage=s:t.setAttribute("style",(t.getAttribute("style")||"")+"background-image: "+s+"; background-image: -webkit-image-set("+r+"); background-image: image-set("+r+")")),t.getAttribute("data-toggle-class")&&t.classList.toggle(t.getAttribute("data-toggle-class"))},loaded:function(){}};function p(t){t.setAttribute("data-loaded",!0)}function g(t){return"true"===t.getAttribute("data-loaded")}function m(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 i,n,r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",t=Object.assign({},f,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),s=t.root,e=t.rootMargin,o=t.threshold,a=t.load,l=t.loaded,c=void 0;"undefined"!=typeof window&&window.IntersectionObserver&&(c=new IntersectionObserver((i=a,n=l,function(t,e){t.forEach(function(t){(0<t.intersectionRatio||t.isIntersecting)&&(e.unobserve(t.target),g(t.target)||(i(t.target),p(t.target),n(t.target)))})}),{root:s,rootMargin:e,threshold:o}));for(var h,u=m(r,s),d=0;d<u.length;d++)(h=u[d]).getAttribute("data-placeholder-background")&&(h.style.background=h.getAttribute("data-placeholder-background"));return{observe:function(){for(var t=m(r,s),e=0;e<t.length;e++)g(t[e])||(c?c.observe(t[e]):(a(t[e]),p(t[e]),l(t[e])))},triggerLoad:function(t){g(t)||(a(t),p(t),l(t))},observer:c}}}),$(document).ready(function(){$("a.page-scroll").bind("click",function(t){var e=$(this);$("html, body").stop().animate({scrollTop:$(e.attr("href")).offset().top-50},500),t.preventDefault(),$("#navbar").collapse("hide")})});var cbpAnimatedHeader=function(){function t(){$(".navbar-light").toggleClass("navbar-scroll",100<=(window.pageYOffset||document.documentElement.scrollTop))}window.addEventListener("scroll",function(){setTimeout(t,250)},!1)}();new WOW({animateClass:"animate__animated"}).init(),$(document).ready(function(){lozad().observe()});