PageSourceSearch

https://siapress.ru/public/assets/build/js/main.min.js

js siapress.ru collected 2026-10-02 04:42:39 UTC 445,449 bytes, 2 lines download raw bytes

vendor: 6,970 bytes, line 1
1!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(k,e){"use strict";function g(e){return null!=e&&e===e.window}var t=[],S=k.document,i=Object.getPrototypeOf,s=t.slice,m=t.concat,l=t.push,r=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,u=a.call(Object),y={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},c={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var i,r,o=(n=n||S).createElement("script");if(o.text=e,t)for(i in c)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var d="3.4.1",C=function(e,t){return new C.fn.init(e,t)},h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function f(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!b(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}C.fn=C.prototype={jquery:d,constructor:C,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(n){return this.pushStack(C.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:t.sort,splice:t.splice},C.extend=C.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||b(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&a!==i&&(u&&i&&(C.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[t],o=r&&!Array.isArray(n)?[]:r||C.isPlainObject(n)?n:{},r=!1,a[t]=C.extend(u,o,i)):void 0!==i&&(a[t]=i));return a},C.extend({expando:"jQuery"+(d+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=i(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===u)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){_(e,{nonce:t&&t.nonce})},each:function(e,t){var n,i=0;if(f(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(h,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(f(Object(e))?C.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:r.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!=a&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,a=[];if(f(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&a.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&a.push(r);return m.apply([],a)},guid:1,support:y}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=t[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var p=function(n){function d(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320)}function r(){w()}var e,f,_,o,a,p,h,g,x,l,u,w,k,s,S,m,c,v,y,C="sizzle"+ +new Date,b=n.document,T=0,i=0,D=le(),M=le(),O=le(),E=le(),A=function(e,t){return e===t&&(u=!0),0},P={}.hasOwnProperty,t=[],I=t.pop,N=t.push,L=t.push,j=t.slice,F=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",W="[\\x20\\t\\r\\n\\f]",H="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",B="\\["+W+"*("+H+")(?:"+W+"*([*^$|!~]?=)"+W+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+W+"*\\]",V=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",z=new RegExp(W+"+","g"),Y=new RegExp("^"+W+"+|((?:^|[^\\\\])(?:\\\\.)*)"+W+"+$","g"),q=new RegExp("^"+W+"*,"+W+"*"),U=new RegExp("^"+W+"*([>+~]|"+W+")"+W+"*"),$=new RegExp(W+"|>"),G=new RegExp(V),Q=new RegExp("^"+H+"$"),K={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+W+"*(even|odd|(([+-]|)(\\d*)n|)"+W+"*(?:([+-]|)"+W+"*(\\d+)|))"+W+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+W+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+W+"*((?:-\\d)?\\d*)"+W+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,ie=new RegExp("\\\\([\\da-f]{1,6}"+W+"?|("+W+")|.)","ig"),re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=_e(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{L.apply(t=j.call(b.childNodes),b.childNodes),t[b.childNodes.length].nodeType}catch(e){L={apply:t.length?function(e,t){N.apply(e,j.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function se(t,e,n,i){var r,o,a,s,l,u,c,d=e&&e.ownerDocument,h=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==h&&9!==h&&11!==h)return n;if(!i&&((e?e.ownerDocument||e:b)!==k&&w(e),e=e||k,S)){if(11!==h&&(l=te.exec(t)))if(r=l[1]){if(9===h){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(d&&(a=d.getElementById(r))&&y(e,a)&&a.id===r)return n.push(a),n}else{if(l[2])return L.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&f.getElementsByClassName&&e.getElementsByClassName)return L.apply(n,e.getElementsByClassName(r)),n}if(f.qsa&&!E[t+" "]&&(!m||!m.test(t))&&(1!==h||"object"!==e.nodeName.toLowerCase())){if(c=t,d=e,1===h&&$.test(t)){for((s=e.getAttribute("id"))?s=s.replace(re,oe):e.setAttribute("id",s=C),o=(u=p(t)).length;o--;)u[o]="#"+s+" "+be(u[o]);c=u.join(","),d=ne.test(t)&&ve(e.parentNode)||e}try{return L.apply(n,d.querySelectorAll(c)),n}catch(e){E(t,!0)}finally{s===C&&e.removeAttribute("id")}}}return g(t.replace(Y,"$1"),e,n,i)}function le(){var i=[];return function e(t,n){return i.push(t+" ")>
vendor: 4,525 bytes, line 1
1_.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function ue(e){return e[C]=!0,e}function ce(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)_.attrHandle[n[i]]=t}function he(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pe(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function me(a){return ue(function(o){return o=+o,ue(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=se.support={},a=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||"HTML")},w=se.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:b;return i!==k&&9===i.nodeType&&i.documentElement&&(s=(k=i).documentElement,S=!a(k),b!==k&&(n=k.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",r,!1):n.attachEvent&&n.attachEvent("onunload",r)),f.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=ce(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=ee.test(k.getElementsByClassName),f.getById=ce(function(e){return s.appendChild(e).id=C,!k.getElementsByName||!k.getElementsByName(C).length}),f.getById?(_.filter.ID=function(e){var t=e.replace(ie,d);return function(e){return e.getAttribute("id")===t}},_.find.ID=function(e,t){if(void 0!==t.getElementById&&S){var n=t.getElementById(e);return n?[n]:[]}}):(_.filter.ID=function(e){var n=e.replace(ie,d);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},_.find.ID=function(e,t){if(void 0!==t.getElementById&&S){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),_.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},_.find.CLASS=f.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&S)return t.getElementsByClassName(e)},c=[],m=[],(f.qsa=ee.test(k.querySelectorAll))&&(ce(function(e){s.appendChild(e).innerHTML="<a id='"+C+"'></a><select id='"+C+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+W+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+W+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+C+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+C+"+*").length||m.push(".#.+[+~]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+W+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(f.matchesSelector=ee.test(v=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ce(function(e){f.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),c.push("!=",V)}),m=m.length&&new RegExp(m.join("|")),c=c.length&&new RegExp(c.join("|")),t=ee.test(s.compareDocumentPosition),y=t||ee.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i))
vendor: 5,063 bytes, line 1
1)}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===k||e.ownerDocument===b&&y(b,e)?-1:t===k||t.ownerDocument===b&&y(b,t)?1:l?F(l,e)-F(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e===k?-1:t===k?1:r?-1:o?1:l?F(l,e)-F(l,t):0;if(r===o)return he(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?he(a[i],s[i]):a[i]===b?-1:s[i]===b?1:0}),k},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==k&&w(e),f.matchesSelector&&S&&!E[t+" "]&&(!c||!c.test(t))&&(!m||!m.test(t)))try{var n=v.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){E(t,!0)}return 0<se(t,k,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!==k&&w(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==k&&w(e);var n=_.attrHandle[t.toLowerCase()],i=n&&P.call(_.attrHandle,t.toLowerCase())?n(e,t,!S):void 0;return void 0!==i?i:f.attributes||!S?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(re,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],i=0,r=0;if(u=!f.detectDuplicates,l=!f.sortStable&&e.slice(0),e.sort(A),u){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return l=null,e},o=se.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(_=se.selectors={cacheLength:50,createPseudo:ue,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ie,d),e[3]=(e[3]||e[4]||e[5]||"").replace(ie,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&G.test(n)&&(t=p(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ie,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=D[e+" "];return t||(t=new RegExp("(^|"+W+")"+e+"("+W+"|$)"))&&D(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=se.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1<t.indexOf(r):"$="===i?r&&t.slice(-r.length)===r:"~="===i?-1<(" "+t.replace(z," ")+" ").indexOf(r):"|="===i&&(t===r||t.slice(0,r.length+1)===r+"-"))}},CHILD:function(p,e,t,g,m){var v="nth"!==p.slice(0,3),y="last"!==p.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,l,u=v!=y?"nextSibling":"previousSibling",c=e.parentNode,d=b&&e.nodeName.toLowerCase(),h=!n&&!b,f=!1;if(c){if(v){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;l=u="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?c.firstChild:c.lastChild],y&&h){for(f=(s=(i=(r=(o=(a=c)[C]||(a[C]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]||[])[0]===T&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(f=s=0)||l.pop();)if(1===a.nodeType&&++f&&a===e){r[p]=[T,s,f];break}}else if(h&&(f=s=(i=(r=(o=(a=e)[C]||(a[C]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]||[])[0]===T&&i[1]),!1===f)for(;(a=++s&&a&&a[u]||(f=s=0)||l.pop())&&((b?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++f||(h&&((r=(o=a[C]||(a[C]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]=[T,f]),a!==e)););return(f-=m)===g||f%g==0&&0<=f/g}}},PSEUDO:function(e,o){var t,a=_.pseudos[e]||_.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[C]?a(o):1<a.length?(t=[e,e,"",o],_.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=F(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:ue(function(e){var i=[],r=[],s=h(e.replace(Y,"$1"));return s[C]?ue(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:ue(function(t){return function(e){return 0<se(t,e).length}}
vendor: 2,165 bytes, line 1
1),contains:ue(function(t){return t=t.replace(ie,d),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:ue(function(n){return Q.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(ie,d).toLowerCase(),function(e){var t;do{if(t=S?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===s},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!_.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me(function(){return[0]}),last:me(function(e,t){return[t-1]}),eq:me(function(e,t,n){return[n<0?n+t:n]}),even:me(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:me(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:me(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:me(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=_.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[e]=fe(e);for(e in{submit:!0,reset:!0})_.pseudos[e]=pe(e);function ye(){}function be(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function _e(s,e,t){var l=e.dir,u=e.next,c=u||l,d=t&&"parentNode"===c,h=i++;return e.first?function(e,t,n){for(;e=e[l];)if(1===e.nodeType||d)return s(e,t,n);return!1}:function(e,t,n){var i,r,o,a=[T,h];if(n){for(;e=e[l];
vendor: 9,847 bytes, line 1
1)if((1===e.nodeType||d)&&s(e,t,n))return!0}else for(;e=e[l];)if(1===e.nodeType||d)if(r=(o=e[C]||(e[C]={}))[e.uniqueID]||(o[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[l]||e;else{if((i=r[c])&&i[0]===T&&i[1]===h)return a[2]=i[2];if((r[c]=a)[2]=s(e,t,n))return!0}return!1}}function xe(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function we(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),u&&t.push(s)));return a}function ke(f,p,g,m,v,e){return m&&!m[C]&&(m=ke(m)),v&&!v[C]&&(v=ke(v,e)),ue(function(e,t,n,i){var r,o,a,s=[],l=[],u=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)se(e,t[i],n);return n}(p||"*",n.nodeType?[n]:n,[]),d=!f||!e&&p?c:we(c,s,f,n,i),h=g?v||(e?f:u||m)?[]:t:d;if(g&&g(d,h,n,i),m)for(r=we(h,l),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(h[l[o]]=!(d[l[o]]=a));if(e){if(v||f){if(v){for(r=[],o=h.length;o--;)(a=h[o])&&r.push(d[o]=a);v(null,h=[],r,i)}for(o=h.length;o--;)(a=h[o])&&-1<(r=v?F(e,a):s[o])&&(e[r]=!(t[r]=a))}}else h=we(h===t?h.splice(u,h.length):h),v?v(null,t,h,i):L.apply(t,h)})}function Se(e){for(var r,t,n,i=e.length,o=_.relative[e[0].type],a=o||_.relative[" "],s=o?1:0,l=_e(function(e){return e===r},a,!0),u=_e(function(e){return-1<F(r,e)},a,!0),c=[function(e,t,n){var i=!o&&(n||t!==x)||((r=t).nodeType?l:u)(e,t,n);return r=null,i}];s<i;s++)if(t=_.relative[e[s].type])c=[_e(xe(c),t)];else{if((t=_.filter[e[s].type].apply(null,e[s].matches))[C]){for(n=++s;n<i&&!_.relative[e[n].type];n++);return ke(1<s&&xe(c),1<s&&be(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Y,"$1"),t,s<n&&Se(e.slice(s,n)),n<i&&Se(e=e.slice(n)),n<i&&be(e))}c.push(t)}return xe(c)}function Ce(m,v){function e(e,t,n,i,r){var o,a,s,l=0,u="0",c=e&&[],d=[],h=x,f=e||b&&_.find.TAG("*",r),p=T+=null==h?1:Math.random()||.1,g=f.length;for(r&&(x=t===k||t||r);u!==g&&null!=(o=f[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument===k||(w(o),n=!S);s=m[a++];)if(s(o,t||k,n)){i.push(o);break}r&&(T=p)}y&&((o=!s&&o)&&l--,e&&c.push(o))}if(l+=u,y&&u!==l){for(a=0;s=v[a++];)s(c,d,t,n);if(e){if(0<l)for(;u--;)c[u]||d[u]||(d[u]=I.call(i));d=we(d)}L.apply(i,d),r&&!e&&0<d.length&&1<l+v.length&&se.uniqueSort(i)}return r&&(T=p,x=h),c}var y=0<v.length,b=0<m.length;return y?ue(e):e}return ye.prototype=_.filters=_.pseudos,_.setFilters=new ye,p=se.tokenize=function(e,t){var n,i,r,o,a,s,l,u=M[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],l=_.preFilter;a;){for(o in n&&!(i=q.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=U.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Y," ")}),a=a.slice(n.length)),_.filter)!(i=K[o].exec(a))||l[o]&&!(i=l[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):M(e,s).slice(0)},h=se.compile=function(e,t){var n,i=[],r=[],o=O[e+" "];if(!o){for(n=(t=t||p(e)).length;n--;)(o=Se(t[n]))[C]?i.push(o):r.push(o);(o=O(e,Ce(r,i))).selector=e}return o},g=se.select=function(e,t,n,i){var r,o,a,s,l,u="function"==typeof e&&e,c=!i&&p(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&S&&_.relative[o[1].type]){if(!(t=(_.find.ID(a.matches[0].replace(ie,d),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=K.needsContext.test(e)?0:o.length;r--&&(a=o[r],!_.relative[s=a.type]);)if((l=_.find[s])&&(i=l(a.matches[0].replace(ie,d),ne.test(o[0].type)&&ve(t.parentNode)||t))){if(o.splice(r,1),!(e=i.length&&be(o)))return L.apply(n,i),n;break}}return(u||h(e,c))(i,t,!S,n,!t||ne.test(e)&&ve(t.parentNode)||t),n},f.sortStable=C.split("").sort(A).join("")===C,f.detectDuplicates=!!u,w(),f.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(k.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||de(R,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),se}(k);C.find=p,C.expr=p.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=p.uniqueSort,C.text=p.getText,C.isXMLDoc=p.isXML,C.contains=p.contains,C.escapeSelector=p.escape;function w(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&C(e).is(n))break;i.push(e)}return i}function T(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var D=C.expr.match.needsContext;function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function E(e,n,i){return b(n)?C.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?C.grep(e,function(e){return e===n!==i}):"string"!=typeof n?C.grep(e,function(e){return-1<r.call(n,e)!==i}):C.filter(n,e,i)}C.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?C.find.matchesSelector(i,e)?[i]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t<i;t++)if(C.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)C.find(e,r[t],n);return 1<i?C.uniqueSort(n):n},filter:function(e){return this.pushStack(E(this,e||[],!1))},not:function(e){return this.pushStack(E(this,e||[],!0))},is:function(e){return!!E(this,"string"==typeof e&&D.test(e)?C(e):e||[],!1).length}});var A,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||A,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:P.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:S,!0)),O.test(i[1])&&C.isPlainObject(t))for(i in t)b(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=S.getElementById(i[2]))&&(this[0]=r,this.length=1),this}).prototype=C.fn,A=C(S);var I=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,r=this.length,o=[],a="string"!=typeof e&&C(e);if(!D.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&C.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?C.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?r.call(C(e),this[0]):r.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return w(e,"parentNode")},parentsUntil:function(e,t,n){return w(e,"parentNode",n)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return w(e,"nextSibling")},prevAll:function(e){return w(e,"previousSibling")},nextUntil:function(e,t,n){return w(e,"nextSibling",n)},prevUntil:function(e,t,n){return w(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(M(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},function(i,r){C.fn[i]=function(e,t){var n=C.map(this,r,e);return"Until"!==i.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=C.filter(t,n)),1<this.length&&(N[i]||C.uniqueSort(n),I.test(i)&&n.reverse()),this.pushStack(n)}});var j=/[^\x20\t\r\n\f]+/g;function F(e){return e}function R(e){throw e}function W(e,t,n,i){var r;try{e&&b(r=e.promise)?r.call(e).done(t).fail(n):e&&b(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(i){var e,n;i="string"==typeof i?(e=i,n={},C.each(e.match(j)||[],function(e,t){n[t]=!0}),n):C.extend({},i);function r(){for(s=s||i.once,a=o=!0;u.length;c=-1)for(t=u.shift();++c<l.length;)!1===l[c].apply(t[0],t[1])&&i.stopOnFalse&&(c=l.length,t=!1);i.memory||(t=!1),o=!1,s&&(l=t?[]:"")}var o,t,a,s,l=[],u=[],c=-1,d={add:function(){return l&&(t&&!o&&(c=l.length-1,u.push(t)),function n(e){C.each(e,function(e,t){b(t)?i.unique&&d.has(t)||l.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!o&&r()),this},remove:function(){return C.each(arguments,function(e,t){for(var n;-1<(n=C.inArray(t,l,n));)l.splice(n,1),n<=c&&c--}),this},has:function(e){return e?-1<C.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return s=u=[],l=t="",this},disabled:function(){return!l},lock:function(){return s=u=[],t||o||(l=t=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),o||r()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},C.extend({Deferred:function(e){var o=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.
vendor: 5,353 bytes, line 1
1Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var r=arguments;return C.Deferred(function(i){C.each(o,function(e,t){var n=b(r[t[4]])&&r[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&b(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this,n?[e]:arguments)})}),r=null}).promise()},then:function(t,n,i){var l=0;function u(r,o,a,s){return function(){function e(){var e,t;if(!(r<l)){if((e=a.apply(n,i))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,b(t)?s?t.call(e,u(l,o,F,s),u(l,o,R,s)):(l++,t.call(e,u(l,o,F,s),u(l,o,R,s),u(l,o,F,o.notifyWith))):(a!==F&&(n=void 0,i=[e]),(s||o.resolveWith)(n,i))}}var n=this,i=arguments,t=s?e:function(){try{e()}catch(e){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(e,t.stackTrace),l<=r+1&&(a!==R&&(n=void 0,i=[e]),o.rejectWith(n,i))}};r?t():(C.Deferred.getStackHook&&(t.stackTrace=C.Deferred.getStackHook()),k.setTimeout(t))}}return C.Deferred(function(e){o[0][3].add(u(0,e,b(i)?i:F,e.notifyWith)),o[1][3].add(u(0,e,b(t)?t:F)),o[2][3].add(u(0,e,b(n)?n:R))}).promise()},promise:function(e){return null!=e?C.extend(e,a):a}},s={};return C.each(o,function(e,t){var n=t[2],i=t[5];a[t[1]]=n.add,i&&n.add(function(){r=i},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t){return function(e){r[t]=this,o[t]=1<arguments.length?s.call(arguments):e,--n||a.resolveWith(r,o)}}var n=arguments.length,i=n,r=Array(i),o=s.call(arguments),a=C.Deferred();if(n<=1&&(W(e,a.done(t(i)).resolve,a.reject,!n),"pending"===a.state()||b(o[i]&&o[i].then)))return a.then();for(;i--;)W(o[i],t(i),a.reject);return a.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){k.console&&k.console.warn&&e&&H.test(e.name)&&k.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){k.setTimeout(function(){throw e})};var B=C.Deferred();function V(){S.removeEventListener("DOMContentLoaded",V),k.removeEventListener("load",V),C.ready()}C.fn.ready=function(e){return B.then(e).catch(function(e){C.readyException(e)}),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0)!==e&&0<--C.readyWait||B.resolveWith(S,[C])}}),C.ready.then=B.then,"complete"===S.readyState||"loading"!==S.readyState&&!S.documentElement.doScroll?k.setTimeout(C.ready):(S.addEventListener("DOMContentLoaded",V),k.addEventListener("load",V));var z=function(e,t,n,i,r,o,a){var s=0,l=e.length,u=null==n;if("object"===x(n))for(s in r=!0,n)z(e,t,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,b(i)||(a=!0),u&&(t=a?(t.call(e,i),null):(u=t,function(e,t,n){return u.call(C(e),n)})),t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:u?t.call(e):l?t(e[0],n):o},Y=/^-ms-/,q=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function $(e){return e.replace(Y,"ms-").replace(q,U)}function G(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function Q(){this.expando=C.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},G(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[$(t)]=n;else for(i in t)r[$(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][$(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map($):(t=$(t))in i?[t]:t.match(j)||[]).length;for(;n--;)delete i[t[n]]}void 0!==t&&!C.isEmptyObject(i)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var K=new Q,X=new Q,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function ee(e,t,n){var i,r;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(J,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(r=n)||"false"!==r&&("null"===r?null:r===+r+""?+r:Z.test(r)?JSON.parse(r):r)}catch(e){}X.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return X.hasData(e)||K.hasData(e)},data:function(e,t,n){return X.access(e,t,n)},removeData:function(e,t){X.remove(e,t)},_data:function(e,t,n){return K.access(e,t,n)},_removeData:function(e,t){K.remove(e,t)}}),C.fn.extend({data:function(n,e){var t,i,r,o=this[0],a=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){X.set(this,n)}):z(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=X.get(o,n))||void 0!==(t=ee(o,n))?t:void 0;this.each(function(){X.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(r=X.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(t=a.length;t--;
vendor: 1,288 bytes, line 1
1)a[t]&&0===(i=a[t].name).indexOf("data-")&&(i=$(i.slice(5)),ee(o,i,r[i]));K.set(o,"hasDataAttrs",!0)}return r},removeData:function(e){return this.each(function(){X.remove(this,e)})}}),C.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=K.get(e,t),n&&(!i||Array.isArray(n)?i=K.access(e,t,C.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),i=n.length,r=n.shift(),o=C._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){C.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K.get(e,n)||K.access(e,n,{empty:C.Callbacks("once memory").add(function(){K.remove(e,[t+"queue",n])})})}}),C.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?C.queue(this[0],t):void 0===n?this:this.each(function(){var e=C.queue(this,t,n);C._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&C.dequeue(this,t)})},dequeue:function(e){return this.each(function(){C.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--r||o.resolveWith(a,[a])}var i,r=1,o=C.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;
vendor: 10,416 bytes, line 1
1)(i=K.get(a[s],e+"queueHooks"))&&i.empty&&(r++,i.empty.add(n));return n(),o.promise(t)}});var te=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ne=new RegExp("^(?:([+-])=|)("+te+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],re=S.documentElement,oe=function(e){return C.contains(e.ownerDocument,e)},ae={composed:!0};re.getRootNode&&(oe=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(ae)===e.ownerDocument});function se(e,t,n,i){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in r=n.apply(e,i||[]),t)e.style[o]=a[o];return r}var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===C.css(e,"display")};function ue(e,t,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return C.css(e,t,"")},l=s(),u=n&&n[3]||(C.cssNumber[t]?"":"px"),c=e.nodeType&&(C.cssNumber[t]||"px"!==u&&+l)&&ne.exec(C.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)C.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,C.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var ce={};function de(e,t){for(var n,i,r,o,a,s,l,u=[],c=0,d=e.length;c<d;c++)(i=e[c]).style&&(n=i.style.display,t?("none"===n&&(u[c]=K.get(i,"display")||null,u[c]||(i.style.display="")),""===i.style.display&&le(i)&&(u[c]=(l=a=o=void 0,a=(r=i).ownerDocument,s=r.nodeName,(l=ce[s])||(o=a.body.appendChild(a.createElement(s)),l=C.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),ce[s]=l)))):"none"!==n&&(u[c]="none",K.set(i,"display",n)));for(c=0;c<d;c++)null!=u[c]&&(e[c].style.display=u[c]);return e}C.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){le(this)?C(this).show():C(this).hide()})}});var he=/^(?:checkbox|radio)$/i,fe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,"<select multiple='multiple'>","</select>"],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 me(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?C.merge([e],n):n}function ve(e,t){for(var n=0,i=e.length;n<i;n++)K.set(e[n],"globalEval",!t||K.get(t[n],"globalEval"))}ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;var ye,be,_e=/<|&#?\w+;/;function xe(e,t,n,i,r){for(var o,a,s,l,u,c,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===x(o))C.merge(h,o.nodeType?[o]:o);else if(_e.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(fe.exec(o)||["",""])[1].toLowerCase(),l=ge[s]||ge._default,a.innerHTML=l[1]+C.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;C.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(i&&-1<C.inArray(o,i))r&&r.push(o);else if(u=oe(o),a=me(d.appendChild(o),"script"),u&&ve(a),n)for(c=0;o=a[c++];)pe.test(o.type||"")&&n.push(o);return d}ye=S.createDocumentFragment().appendChild(S.createElement("div")),(be=S.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),ye.appendChild(be),y.checkClone=ye.cloneNode(!0).cloneNode(!0).lastChild.checked,ye.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ye.cloneNode(!0).lastChild.defaultValue;var we=/^key/,ke=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Te(){return!1}function De(e,t){return e===function(){try{return S.activeElement}catch(e){}}()==("focus"===t)}function Me(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Me(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Te;else if(!r)return e;return 1===o&&(a=r,(r=function(e){return C().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=C.guid++)),e.each(function(){C.event.add(this,t,r,i,n)})}function Oe(e,r,o){o?(K.set(e,r,!1),C.event.add(e,r,{namespace:!1,handler:function(e){var t,n,i=K.get(this,r);if(1&e.isTrigger&&this[r]){if(i.length)(C.event.special[r]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),K.set(this,r,i),t=o(this,r),this[r](),i!==(n=K.get(this,r))||t?K.set(this,r,!1):n={},i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else i.length&&(K.set(this,r,{value:C.event.trigger(C.extend(i[0],C.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===K.get(e,r)&&C.event.add(e,r,Ce)}C.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,u,c,d,h,f,p,g,m=K.get(t);if(m)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&C.find.matchesSelector(re,r),n.guid||(n.guid=C.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(e){return void 0!==C&&C.event.triggered!==e.type?C.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(j)||[""]).length;u--;)f=g=(s=Se.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=C.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=C.event.special[f]||{},c=C.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&C.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(f,a)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),C.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,u,c,d,h,f,p,g,m=K.hasData(e)&&K.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(j)||[""]).length;u--;)if(f=g=(s=Se.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=C.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!r&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,m.handle)||C.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)C.event.remove(e,f+t[u],n,i,!0);C.isEmptyObject(l)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,a,s=C.event.fix(e),l=new Array(arguments.length),u=(K.get(this,"events")||{})[s.type]||[],c=C.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=C.event.handlers.call(this,s,u),t=0;(r=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(i=((C.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,l))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,i,r,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&1<=e.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=t[n]).selector+" "]&&(a[r]=i.needsContext?-1<C(r,this).index(u):C.find(r,this,null,[u]).length),a[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(t,e){Object.defineProperty(C.Event.prototype,t,{enumerable:!0,configurable:!0,get:b(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return he.test(t.type)&&t.click&&M(t,"input")&&Oe(t,"click",Ce),!1},trigger:function(e){var t=this||e;return he.test(t.type)&&t.click&&M(t,"input")&&Oe(t,"click"),!0},_default:function(e){var t=e.target;return he.test(t.type)&&t.click&&M(t,"input")&&K.get(t,"click")||M(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Te,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.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:function(e){var t=e.button;return null==e.which&&we.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&ke.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},function(e,t){C.event.special[e]={setup:function(){return Oe(this,e,De),!1},trigger:function(){return Oe(this,e),!0},delegateType:t}}
vendor: 9,485 bytes, line 1
1),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){C.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||C.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=r),t}}}),C.fn.extend({on:function(e,t,n,i){return Me(this,e,t,n,i)},one:function(e,t,n,i){return Me(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,C(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each(function(){C.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r]);return this}});var Ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ae=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ne(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,i,r,o,a,s,l,u;if(1===t.nodeType){if(K.hasData(e)&&(o=K.access(e),a=K.set(t,o),u=o.events))for(r in delete a.handle,a.events={},u)for(n=0,i=u[r].length;n<i;n++)C.event.add(t,r,u[r][n]);X.hasData(e)&&(s=X.access(e),l=C.extend({},s),X.set(t,l))}}function Re(n,i,r,o){i=m.apply([],i);var e,t,a,s,l,u,c=0,d=n.length,h=d-1,f=i[0],p=b(f);if(p||1<d&&"string"==typeof f&&!y.checkClone&&Pe.test(f))return n.each(function(e){var t=n.eq(e);p&&(i[0]=f.call(this,e,t.html())),Re(t,i,r,o)});if(d&&(t=(e=xe(i,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=C.map(me(e,"script"),Le)).length;c<d;c++)l=e,c!==h&&(l=C.clone(l,!0,!0),s&&C.merge(a,me(l,"script"))),r.call(n[c],l,c);if(s)for(u=a[a.length-1].ownerDocument,C.map(a,je),c=0;c<s;c++)l=a[c],pe.test(l.type||"")&&!K.access(l,"globalEval")&&C.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&!l.noModule&&C._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):_(l.textContent.replace(Ie,""),l,u))}return n}function We(e,t,n){for(var i,r=t?C.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||C.cleanData(me(i)),i.parentNode&&(n&&oe(i)&&ve(me(i,"script")),i.parentNode.removeChild(i));return e}C.extend({htmlPrefilter:function(e){return e.replace(Ee,"<$1></$2>")},clone:function(e,t,n){var i,r,o,a,s,l,u,c=e.cloneNode(!0),d=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(a=me(c),i=0,r=(o=me(e)).length;i<r;i++)s=o[i],l=a[i],"input"===(u=l.nodeName.toLowerCase())&&he.test(s.type)?l.checked=s.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=s.defaultValue);if(t)if(n)for(o=o||me(e),a=a||me(c),i=0,r=o.length;i<r;i++)Fe(o[i],a[i]);else Fe(e,c);return 0<(a=me(c,"script")).length&&ve(a,!d&&me(e,"script")),c},cleanData:function(e){for(var t,n,i,r=C.event.special,o=0;void 0!==(n=e[o]);o++)if(G(n)){if(t=n[K.expando]){if(t.events)for(i in t.events)r[i]?C.event.remove(n,i):C.removeEvent(n,i,t.handle);n[K.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),C.fn.extend({detach:function(e){return We(this,e,!0)},remove:function(e){return We(this,e)},text:function(e){return z(this,function(e){return void 0===e?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Re(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ne(this,e).appendChild(e)})},prepend:function(){return Re(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return z(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!ge[(fe.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Re(this,arguments,function(e){var t=this.parentNode;C.inArray(this,n)<0&&(C.cleanData(me(this)),t&&t.replaceChild(e,this))},n)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){C.fn[e]=function(e){for(var t,n=[],i=C(e),r=i.length-1,o=0;o<=r;o++)t=o===r?this:this.clone(!0),C(i[o])[a](t),l.apply(n,t.get());return this.pushStack(n)}});var He,Be,Ve,ze,Ye,qe,Ue,$e=new RegExp("^("+te+")(?!px)[a-z%]+$","i"),Ge=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=k),t.getComputedStyle(e)},Qe=new RegExp(ie.join("|"),"i");function Ke(){if(Ue){qe.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Ue.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(qe).appendChild(Ue);var e=k.getComputedStyle(Ue);He="1%"!==e.top,Ye=12===Xe(e.marginLeft),Ue.style.right="60%",ze=36===Xe(e.right),Be=36===Xe(e.width),Ue.style.position="absolute",Ve=12===Xe(Ue.offsetWidth/3),re.removeChild(qe),Ue=null}}function Xe(e){return Math.round(parseFloat(e))}function Ze(e,t,n){var i,r,o,a,s=e.style;return(n=n||Ge(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||oe(e)||(a=C.style(e,t)),!y.pixelBoxStyles()&&$e.test(a)&&Qe.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function Je(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}qe=S.createElement("div"),(Ue=S.createElement("div")).style&&(Ue.style.backgroundClip="content-box",Ue.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===Ue.style.backgroundClip,C.extend(y,{boxSizingReliable:function(){return Ke(),Be},pixelBoxStyles:function(){return Ke(),ze},pixelPosition:function(){return Ke(),He},reliableMarginLeft:function(){return Ke(),Ye},scrollboxSize:function(){return Ke(),Ve}}));var et=["Webkit","Moz","ms"],tt=S.createElement("div").style,nt={};function it(e){var t=C.cssProps[e]||nt[e];return t||(e in tt?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=et.length;n--;)if((e=et[n]+t)in tt)return e}(e)||e)}var rt=/^(none|table(?!-c[ea]).+)/,ot=/^--/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var i=ne.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ut(e,t,n,i,r,o){var a="width"===t?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=C.css(e,n+ie[a],!0,r)),i?("content"===n&&(l-=C.css(e,"padding"+ie[a],!0,r)),"margin"!==n&&(l-=C.css(e,"border"+ie[a]+"Width",!0,r))):(l+=C.css(e,"padding"+ie[a],!0,r),"padding"!==n?l+=C.css(e,"border"+ie[a]+"Width",!0,r):s+=C.css(e,"border"+ie[a]+"Width",!0,r));return!i&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function ct(e,t,n){var i=Ge(e),r=(!y.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,i),o=r,a=Ze(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if($e.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&r||"auto"===a||!parseFloat(a)&&"inline"===C.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===C.css(e,"boxSizing",!1,i),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ut(e,t,n||(r?"border":"content"),o,i,a)+"px"}function dt(e,t,n,i,r){return new dt.prototype.init(e,t,n,i,r)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ze(e,"opacity");return""===n?"1":n}}}},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(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=$(t),l=ot.test(t),u=e.style;if(l||(t=it(s)),a=C.cssHooks[t]||C.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:u[t];"string"===(o=typeof n)&&(r=ne.exec(n))&&r[1]&&(n=ue(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(C.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var r,o,a,s=$(t);return ot.test(t)||(t=it(s)),(a=C.cssHooks[t]||C.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=Ze(e,t,i)),"normal"===r&&t in st&&(r=st[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}
vendor: 4,202 bytes, line 1
1),C.each(["height","width"],function(e,l){C.cssHooks[l]={get:function(e,t,n){if(t)return!rt.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ct(e,l,n):se(e,at,function(){return ct(e,l,n)})},set:function(e,t,n){var i,r=Ge(e),o=!y.scrollboxSize()&&"absolute"===r.position,a=(o||n)&&"border-box"===C.css(e,"boxSizing",!1,r),s=n?ut(e,l,n,a,r):0;return a&&o&&(s-=Math.ceil(e["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(r[l])-ut(e,l,"border",!1,r)-.5)),s&&(i=ne.exec(t))&&"px"!==(i[3]||"px")&&(e.style[l]=t,t=C.css(e,l)),lt(0,t,s)}}}),C.cssHooks.marginLeft=Je(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ze(e,"marginLeft"))||e.getBoundingClientRect().left-se(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(r,o){C.cssHooks[r+o]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+ie[t]+o]=i[t]||i[t-2]||i[0];return n}},"margin"!==r&&(C.cssHooks[r+o].set=lt)}),C.fn.extend({css:function(e,t){return z(this,function(e,t,n){var i,r,o={},a=0;if(Array.isArray(t)){for(i=Ge(e),r=t.length;a<r;a++)o[t[a]]=C.css(e,t[a],!1,i);return o}return void 0!==n?C.style(e,t,n):C.css(e,t)},e,t,1<arguments.length)}}),((C.Tween=dt).prototype={constructor:dt,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(C.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}}).init.prototype=dt.prototype,(dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=dt.prototype.init,C.fx.step={};var ht,ft,pt,gt,mt=/^(?:toggle|show|hide)$/,vt=/queueHooks$/;function yt(){ft&&(!1===S.hidden&&k.requestAnimationFrame?k.requestAnimationFrame(yt):k.setTimeout(yt,C.fx.interval),C.fx.tick())}function bt(){return k.setTimeout(function(){ht=void 0}),ht=Date.now()}function _t(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=ie[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function xt(e,t,n){for(var i,r=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function wt(o,e,t){var n,a,i=0,r=wt.prefilters.length,s=C.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var e=ht||bt(),t=Math.max(0,u.startTime+u.duration-e),n=1-(t/u.duration||0),i=0,r=u.tweens.length;i<r;i++)u.tweens[i].run(n);return s.notifyWith(o,[u,n,t]),n<1&&r?t:(r||s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u]),!1)},u=s.promise({elem:o,props:C.extend({},e),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},t),originalProperties:e,originalOptions:t,startTime:ht||bt(),duration:t.duration,tweens:[],createTween:function(e,t){var n=C.Tween(o,u.opts,e,t,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var t=0,n=e?u.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)u.tweens[t].run(1);return e?(s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u,e])):s.rejectWith(o,[u,e]),this}}),c=u.props;for(!function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=$(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=C.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[
vendor: 4,584 bytes, line 1
1n]=o[n],t[n]=r);else t[i]=r}(c,u.opts.specialEasing);i<r;i++)if(n=wt.prefilters[i].call(u,o,c,u.opts))return b(n.stop)&&(C._queueHooks(u.elem,u.opts.queue).stop=n.stop.bind(n)),n;return C.map(c,xt,u),b(u.opts.start)&&u.opts.start.call(o,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),C.fx.timer(C.extend(l,{elem:o,anim:u,queue:u.opts.queue})),u}C.Animation=C.extend(wt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,ne.exec(t),n),n}]},tweener:function(e,t){for(var n,i=0,r=(e=b(e)?(t=e,["*"]):e.match(j)).length;i<r;i++)n=e[i],wt.tweeners[n]=wt.tweeners[n]||[],wt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,a,s,l,u,c,d="width"in t||"height"in t,h=this,f={},p=e.style,g=e.nodeType&&le(e),m=K.get(e,"fxshow");for(i in n.queue||(null==(a=C._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,C.queue(e,"fx").length||a.empty.fire()})})),t)if(r=t[i],mt.test(r)){if(delete t[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}f[i]=m&&m[i]||C.style(e,i)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=K.get(e,"display")),"none"===(c=C.css(e,"display"))&&(u?c=u:(de([e],!0),u=e.style.display||u,c=C.css(e,"display"),de([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===C.css(e,"float")&&(l||(h.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=K.access(e,"fxshow",{display:u}),o&&(m.hidden=!g),g&&de([e],!0),h.done(function(){for(i in g||de([e]),K.remove(e,"fxshow"),f)C.style(e,i,f[i])})),l=xt(g?m[i]:0,i,h),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?wt.prefilters.unshift(e):wt.prefilters.push(e)}}),C.speed=function(e,t,n){var i=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||b(e)&&e,duration:e,easing:n&&t||t&&!b(t)&&t};return C.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in C.fx.speeds?i.duration=C.fx.speeds[i.duration]:i.duration=C.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){b(i.old)&&i.old.call(this),i.queue&&C.dequeue(this,i.queue)},i},C.fn.extend({fadeTo:function(e,t,n,i){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){function r(){var e=wt(this,C.extend({},t),a);(o||K.get(this,"finish"))&&e.stop(!0)}var o=C.isEmptyObject(t),a=C.speed(e,n,i);return r.finish=r,o||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(r,e,o){function a(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof r&&(o=e,e=r,r=void 0),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=C.timers,i=K.get(this);if(t)i[t]&&i[t].stop&&a(i[t]);else for(t in i)i[t]&&i[t].stop&&vt.test(t)&&a(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||C.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=K.get(this),n=t[a+"queue"],i=t[a+"queueHooks"],r=C.timers,o=n?n.length:0;for(t.finish=!0,C.queue(this,a,[]),i&&i.stop&&i.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===a&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),C.each(["toggle","show","hide"],function(e,i){var r=C.fn[i];C.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(_t(i,!0),e,t,n)}}),C.each({slideDown:_t("show"),slideUp:_t("hide"),slideToggle:_t("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){C.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(ht=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),ht=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){ft||(ft=!0,yt())},C.fx.stop=function(){ft=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(i,e){return i=C.fx&&C.fx.speeds[i]||i,e=e||"fx",this.queue(e,function(e,t){var n=k.setTimeout(e,i
vendor: 10,419 bytes, line 1
1);t.stop=function(){k.clearTimeout(n)}})},pt=S.createElement("input"),gt=S.createElement("select").appendChild(S.createElement("option")),pt.type="checkbox",y.checkOn=""!==pt.value,y.optSelected=gt.selected,(pt=S.createElement("input")).value="t",pt.type="radio",y.radioValue="t"===pt.value;var kt,St=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return z(this,C.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){C.removeAttr(this,e)})}}),C.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?C.prop(e,t,n):(1===o&&C.isXMLDoc(e)||(r=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?kt:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):!(r&&"get"in r&&null!==(i=r.get(e,t)))&&null==(i=C.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&M(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(j);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),kt={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(e,t){var a=St[t]||C.find.attr;St[t]=function(e,t,n){var i,r,o=t.toLowerCase();return n||(r=St[o],St[o]=i,i=null!=a(e,t,n)?o:null,St[o]=r),i}});var Ct=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;function Dt(e){return(e.match(j)||[]).join(" ")}function Mt(e){return e.getAttribute&&e.getAttribute("class")||""}function Ot(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(j)||[]}C.fn.extend({prop:function(e,t){return z(this,C.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[C.propFix[e]||e]})}}),C.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&C.isXMLDoc(e)||(t=C.propFix[t]||t,r=C.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,l=0;if(b(t))return this.each(function(e){C(this).addClass(t.call(this,e,Mt(this)))});if((e=Ot(t)).length)for(;n=this[l++];)if(r=Mt(n),i=1===n.nodeType&&" "+Dt(r)+" "){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=Dt(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,l=0;if(b(t))return this.each(function(e){C(this).removeClass(t.call(this,e,Mt(this)))});if(!arguments.length)return this.attr("class","");if((e=Ot(t)).length)for(;n=this[l++];)if(r=Mt(n),i=1===n.nodeType&&" "+Dt(r)+" "){for(a=0;o=e[a++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r!==(s=Dt(i))&&n.setAttribute("class",s)}return this},toggleClass:function(r,t){var o=typeof r,a="string"==o||Array.isArray(r);return"boolean"==typeof t&&a?t?this.addClass(r):this.removeClass(r):b(r)?this.each(function(e){C(this).toggleClass(r.call(this,e,Mt(this),t),t)}):this.each(function(){var e,t,n,i;if(a)for(t=0,n=C(this),i=Ot(r);e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==r&&"boolean"!=o||((e=Mt(this))&&K.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==r&&K.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+Dt(Mt(n))+" ").indexOf(t))return!0;return!1}});var Et=/\r/g;C.fn.extend({val:function(n){var i,e,r,t=this[0];return arguments.length?(r=b(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=r?n.call(this,e,C(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=C.map(t,function(e){return null==e?"":e+""})),(i=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,t,"value")||(this.value=t))})):t?(i=C.valHooks[t.type]||C.valHooks[t.nodeName.toLowerCase()])&&"get"in i&&void 0!==(e=i.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(Et,""):null==e?"":e:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:Dt(C.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!M(n.parentNode,"optgroup"))){if(t=C(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,i,r=e.options,o=C.makeArray(t),a=r.length;a--;)((i=r[a]).selected=-1<C.inArray(C.valHooks.option.get(i),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<C.inArray(C(e).val(),t)}},y.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in k;function At(e){e.stopPropagation()}var Pt=/^(?:focusinfocus|focusoutblur)$/;C.extend(C.event,{trigger:function(e,t,n,i){var r,o,a,s,l,u,c,d,h=[n||S],f=v.call(e,"type")?e.type:e,p=v.call(e,"namespace")?e.namespace.split("."):[];if(o=d=a=n=n||S,3!==n.nodeType&&8!==n.nodeType&&!Pt.test(f+C.event.triggered)&&(-1<f.indexOf(".")&&(f=(p=f.split(".")).shift(),p.sort()),l=f.indexOf(":")<0&&"on"+f,(e=e[C.expando]?e:new C.Event(f,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:C.makeArray(t,[e]),c=C.event.special[f]||{},i||!c.trigger||!1!==c.trigger.apply(n,t))){if(!i&&!c.noBubble&&!g(n)){for(s=c.delegateType||f,Pt.test(s+f)||(o=o.parentNode);o;o=o.parentNode)h.push(o),a=o;a===(n.ownerDocument||S)&&h.push(a.defaultView||a.parentWindow||k)}for(r=0;(o=h[r++])&&!e.isPropagationStopped();)d=o,e.type=1<r?s:c.bindType||f,(u=(K.get(o,"events")||{})[e.type]&&K.get(o,"handle"))&&u.apply(o,t),(u=l&&o[l])&&u.apply&&G(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=f,i||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(h.pop(),t)||!G(n)||l&&b(n[f])&&!g(n)&&((a=n[l])&&(n[l]=null),C.event.triggered=f,e.isPropagationStopped()&&d.addEventListener(f,At),n[f](),e.isPropagationStopped()&&d.removeEventListener(f,At),C.event.triggered=void 0,a&&(n[l]=a)),e.result}},simulate:function(e,t,n){var i=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(i,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each(function(){C.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),y.focusin||C.each({focus:"focusin",blur:"focusout"},function(n,i){function r(e){C.event.simulate(i,e.target,C.event.fix(e))}C.event.special[i]={setup:function(){var e=this.ownerDocument||this,t=K.access(e,i);t||e.addEventListener(n,r,!0),K.access(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=K.access(e,i)-1;t?K.access(e,i,t):(e.removeEventListener(n,r,!0),K.remove(e,i))}}});var It=k.location,Nt=Date.now(),Lt=/\?/;C.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new k.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+e),t};var jt=/\[\]$/,Ft=/\r?\n/g,Rt=/^(?:submit|button|image|reset|file)$/i,Wt=/^(?:input|select|textarea|keygen)/i;function Ht(n,e,i,r){var t;if(Array.isArray(e))C.each(e,function(e,t){i||jt.test(n)?r(n,t):Ht(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,i,r)});else if(i||"object"!==x(e))r(n,e);else for(t in e)Ht(n+"["+t+"]",e[t],i,r)}C.param=function(e,t){function n(e,t){var n=b(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)}var i,r=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,function(){n(this.name,this.value)});else for(i in e)Ht(i,e[i],t,n);return r.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&Wt.test(this.nodeName)&&!Rt.test(e)&&(this.checked||!he.test(e))}).map(function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,function(e){return{name:t.name,value:e.replace(Ft,"\r\n")}}):{name:t.name,value:n.replace(Ft,"\r\n")}}).get()}});var Bt=/%20/g,Vt=/#.*$/,zt=/([?&])_=[^&]*/,Yt=/^(.*?):[ \t]*([^\r\n]*)$/gm,qt=/^(?:GET|HEAD)$/,Ut=/^\/\//,$t={},Gt={},Qt="*/".concat("*"),Kt=S.createElement("a");function Xt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,r=e.toLowerCase().match(j)||[];if(b(t))for(;n=r[i++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Zt(t,r,o,a){var s={},l=t===Gt;function u(e){var i;return s[e]=!0,C.each(t[e]||[],function(e,t){var n=t(r,o,a);return"string"!=typeof n||l||s[n]?l?!(i=n):void 0:(r.dataTypes.unshift(n),u(n),!1)}),i}return u(r.dataTypes[0])||!s["*"]&&u("*")}function Jt(e,t){var n,i,r=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i=i||{})[n]=t[n]);return i&&C.extend(!0,e,i),e}Kt.href=It.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:It.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(It.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qt,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":C.parseXML}
vendor: 7,540 bytes, line 1
1,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Jt(Jt(e,C.ajaxSettings),t):Jt(C.ajaxSettings,e)},ajaxPrefilter:Xt($t),ajaxTransport:Xt(Gt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,d,h,n,f,i,p,g,r,o,m=C.ajaxSetup({},t),v=m.context||m,y=m.context&&(v.nodeType||v.jquery)?C(v):C.event,b=C.Deferred(),_=C.Callbacks("once memory"),x=m.statusCode||{},a={},s={},l="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(p){if(!n)for(n={};t=Yt.exec(h);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return p?h:null},setRequestHeader:function(e,t){return null==p&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==p&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(p)w.always(e[w.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||l;return c&&c.abort(t),u(0,t),this}};if(b.promise(w),m.url=((e||m.url||It.href)+"").replace(Ut,It.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(j)||[""],null==m.crossDomain){i=S.createElement("a");try{i.href=m.url,i.href=i.href,m.crossDomain=Kt.protocol+"//"+Kt.host!=i.protocol+"//"+i.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=C.param(m.data,m.traditional)),Zt($t,m,t,w),p)return w;for(r in(g=C.event&&m.global)&&0==C.active++&&C.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!qt.test(m.type),d=m.url.replace(Vt,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(Bt,"+")):(o=m.url.slice(d.length),m.data&&(m.processData||"string"==typeof m.data)&&(d+=(Lt.test(d)?"&":"?")+m.data,delete m.data),!1===m.cache&&(d=d.replace(zt,"$1"),o=(Lt.test(d)?"&":"?")+"_="+Nt+++o),m.url=d+o),m.ifModified&&(C.lastModified[d]&&w.setRequestHeader("If-Modified-Since",C.lastModified[d]),C.etag[d]&&w.setRequestHeader("If-None-Match",C.etag[d])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&w.setRequestHeader("Content-Type",m.contentType),w.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Qt+"; q=0.01":""):m.accepts["*"]),m.headers)w.setRequestHeader(r,m.headers[r]);if(m.beforeSend&&(!1===m.beforeSend.call(v,w,m)||p))return w.abort();if(l="abort",_.add(m.complete),w.done(m.success),w.fail(m.error),c=Zt(Gt,m,t,w)){if(w.readyState=1,g&&y.trigger("ajaxSend",[w,m]),p)return w;m.async&&0<m.timeout&&(f=k.setTimeout(function(){w.abort("timeout")},m.timeout));try{p=!1,c.send(a,u)}catch(e){if(p)throw e;u(-1,e)}}else u(-1,"No Transport");function u(e,t,n,i){var r,o,a,s,l,u=t;p||(p=!0,f&&k.clearTimeout(f),c=void 0,h=i||"",w.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a=a||r}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(m,w,n)),s=function(e,t,n,i){var r,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(m,s,w,r),r?(m.ifModified&&((l=w.getResponseHeader("Last-Modified"))&&(C.lastModified[d]=l),(l=w.getResponseHeader("etag"))&&(C.etag[d]=l)),204===e||"HEAD"===m.type?u="nocontent":304===e?u="notmodified":(u=s.state,o=s.data,r=!(a=s.error))):(a=u,!e&&u||(u="error",e<0&&(e=0))),w.status=e,w.statusText=(t||u)+"",r?b.resolveWith(v,[o,u,w]):b.rejectWith(v,[w,u,a]),w.statusCode(x),x=void 0,g&&y.trigger(r?"ajaxSuccess":"ajaxError",[w,m,r?o:a]),_.fireWith(v,[w,u]),g&&(y.trigger("ajaxComplete",[w,m]),--C.active||C.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],function(e,r){C[r]=function(e,t,n,i){return b(t)&&(i=i||n,n=t,t=void 0),C.ajax(C.extend({url:e,type:r,dataType:i,data:t,success:n},C.isPlainObject(e)&&e))}}),C._evalUrl=function(e,t){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return b(n)?this.each(function(e){C(this).wrapInner(n.call(this,e))}):this.each(function(){var e=C(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=b(t);return this.each(function(e){C(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new k.XMLHttpRequest}catch(e){}};var en={0:200,1223:204},tn=C.ajaxSettings.xhr();y.cors=!!tn&&"withCredentials"in tn,y.ajax=tn=!!tn,C.ajaxTransport(function(r){var o,a;if(y.cors||tn&&!r.crossDomain)return{send:function(e,t){var n,i=r.xhr();if(i.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(n in r.xhrFields)i[n]=r.xhrFields[n];for(n in r.mimeType&&i.overrideMimeType&&i.overrideMimeType(r.mimeType),r.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)i.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===e?i.abort():"error"===e?"number"!=typeof i.status?t(0,"error"):t(i.status,i.statusText):t(en[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=o(),a=i.onerror=i.ontimeout=o("error"),void 0!==i.onabort?i.onabort=a:i.onreadystatechange=function(){4===i.readyState&&k.setTimeout(function(){o&&a()})},o=o("abort");try{i.send(r.hasContent&&r.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),C.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),C.ajaxTransport("script",function(n){var i,r;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){i=C("<script>").attr(n.scriptAttrs||{}
vendor: 5,603 bytes, line 1
1).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),S.head.appendChild(i[0])},abort:function(){r&&r()}}});var nn,rn=[],on=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=rn.pop()||C.expando+"_"+Nt++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,a=!1!==e.jsonp&&(on.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&on.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(on,"$1"+i):!1!==e.jsonp&&(e.url+=(Lt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||C.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=k[i],k[i]=function(){o=arguments},n.always(function(){void 0===r?C(k).removeProp(i):k[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,rn.push(i)),o&&b(r)&&r(o[0]),o=r=void 0}),"script"}),y.createHTMLDocument=((nn=S.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===nn.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((i=(t=S.implementation.createHTMLDocument("")).createElement("base")).href=S.location.href,t.head.appendChild(i)):t=S),o=!n&&[],(r=O.exec(e))?[t.createElement(r[1])]:(r=xe([e],t,o),o&&o.length&&C(o).remove(),C.merge([],r.childNodes)));var i,r,o},C.fn.load=function(e,t,n){var i,r,o,a=this,s=e.indexOf(" ");return-1<s&&(i=Dt(e.slice(s)),e=e.slice(0,s)),b(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<a.length&&C.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?C("<div>").append(C.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.expr.pseudos.animated=function(t){return C.grep(C.timers,function(e){return t===e.elem}).length},C.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,u=C.css(e,"position"),c=C(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=C.css(e,"top"),l=C.css(e,"left"),r=("absolute"===u||"fixed"===u)&&-1<(o+l).indexOf("auto")?(a=(i=c.position()).top,i.left):(a=parseFloat(o)||0,parseFloat(l)||0),b(t)&&(t=t.call(e,n,C.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):c.css(d)}},C.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){C.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===C.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),r.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-C.css(i,"marginTop",!0),left:t.left-r.left-C.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||re})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;C.fn[t]=function(e){return z(this,function(e,t,n){var i;if(g(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n)return i?i[r]:e[t];i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),C.each(["top","left"],function(e,n){C.cssHooks[n]=Je(y.pixelPosition,function(e,t){if(t)return t=Ze(e,n),$e.test(t)?C(e).position()[n]+"px":t})}),C.each({Height:"height",Width:"width"},function(a,s){C.each({padding:"inner"+a,content:s,"":"outer"+a},function(i,o){C.fn[o]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return z(this,function(e,t,n){var i;return g(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+a],i["scroll"+a],e.body["offset"+a],i["offset"+a],i["client"+a])):void 0===n?C.css(e,t,r):C.style(e,t,n,r)},s,n?e:void 0,n)}})}),C.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(e,n){C.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),C.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),C.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),b(e))return i=s.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(s.call(arguments)))}).guid=e.guid=e.guid||C.guid++,r},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=M,C.isFunction=b,C.isWindow=g,C.camel
1Case=$,C.type=x,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return C});var an=k.jQuery,sn=k.$;return C.noConflict=function(e){return k.$===C&&(k.$=sn),e&&k.jQuery===C&&(k.jQuery=an),C},e||(k.jQuery=k.$=C),C}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,i=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}();var o=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},i))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function _(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function p(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function g(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=_(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?e:g(p(e))}function m(e){return e&&e.referenceNode?e.referenceNode:e}var t=n&&!(!window.MSInputMethodContext||!document.documentMode),r=n&&/MSIE 10/.test(navigator.userAgent);function v(e){return 11===e?t:10!==e&&t||r}function b(e){if(!e)return document.documentElement;for(var t=v(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===_(n,"position")?b(n):n:e?e.ownerDocument.documentElement:document.documentElement}function c(e){return null!==e.parentNode?c(e.parentNode):e}function y(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||i.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&b(a.firstElementChild)!==a?b(l):l;var u=c(e);return u.host?y(u.host,t):y(e,c(t).host)}function x(e,t){var n="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"!==i&&"HTML"!==i)return e[n];var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[n]}function d(e,t){var n="x"===t?"Left":"Top",i="Left"==n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function s(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],v(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,i=v(10)&&getComputedStyle(n);return{height:s("Height",t,n,i),width:s("Width",t,n,i)}}var e=function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e};function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function C(e){return S({},e,{right:e.left+e.width,bottom:e.top+e.height})}function T(e){var t={};try{if(v(10)){t=e.getBoundingClientRect();var n=x(e,"top"),i=x(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top}
1,o="HTML"===e.nodeName?w(e.ownerDocument):{},a=o.width||e.clientWidth||r.width,s=o.height||e.clientHeight||r.height,l=e.offsetWidth-a,u=e.offsetHeight-s;if(l||u){var c=_(e);l-=d(c,"x"),u-=d(c,"y"),r.width-=l,r.height-=u}return C(r)}function D(e,t,n){var i=2<arguments.length&&void 0!==n&&n,r=v(10),o="HTML"===t.nodeName,a=T(e),s=T(t),l=g(e),u=_(t),c=parseFloat(u.borderTopWidth),d=parseFloat(u.borderLeftWidth);i&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=C({top:a.top-s.top-c,left:a.left-s.left-d,width:a.width,height:a.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var f=parseFloat(u.marginTop),p=parseFloat(u.marginLeft);h.top-=c-f,h.bottom-=c-f,h.left-=d-p,h.right-=d-p,h.marginTop=f,h.marginLeft=p}return(r&&!i?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(h=function(e,t,n){var i=2<arguments.length&&void 0!==n&&n,r=x(t,"top"),o=x(t,"left"),a=i?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}(h,t)),h}function M(e){if(!e||!e.parentElement||v())return document.documentElement;for(var t=e.parentElement;t&&"none"===_(t,"transform");)t=t.parentElement;return t||document.documentElement}function f(e,t,n,i,r){var o=4<arguments.length&&void 0!==r&&r,a={top:0,left:0},s=o?M(e):y(e,m(t));if("viewport"===i)a=function(e,t){var n=1<arguments.length&&void 0!==t&&t,i=e.ownerDocument.documentElement,r=D(e,i),o=Math.max(i.clientWidth,window.innerWidth||0),a=Math.max(i.clientHeight,window.innerHeight||0),s=n?0:x(i),l=n?0:x(i,"left");return C({top:s-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:o,height:a})}(s,o);else{var l=void 0;"scrollParent"===i?"BODY"===(l=g(p(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===i?e.ownerDocument.documentElement:i;var u=D(l,s,o);if("HTML"!==l.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===_(t,"position"))return!0;var i=p(t);return!!i&&e(i)}(s))a=u;else{var c=w(e.ownerDocument),d=c.height,h=c.width;a.top+=u.top-u.marginTop,a.bottom=d+u.top,a.left+=u.left-u.marginLeft,a.right=h+u.left}}var f="number"==typeof(n=n||0);return a.left+=f?n:n.left||0,a.top+=f?n:n.top||0,a.right-=f?n:n.right||0,a.bottom-=f?n:n.bottom||0,a}function u(e,t,i,n,r,o){var a=5<arguments.length&&void 0!==o?o:0;if(-1===e.indexOf("auto"))return e;var s=f(i,n,a,r),l={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},u=Object.keys(l).map(function(e){return S({key:e},l[e],{area:(t=l[e]).width*t.height});var t}).sort(function(e,t){return t.area-e.area}),c=u.filter(function(e){var t=e.width,n=e.height;return t>=i.clientWidth&&n>=i.clientHeight}),d=0<c.length?c[0].key:u[0].key,h=e.split("-")[1];return d+(h?"-"+h:"")}function h(e,t,n,i){var r=3<arguments.length&&void 0!==i?i:null;return D(n,r?M(t):y(t,m(n)),r)}function O(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function E(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function A(e,t,n){n=n.split("-")[0];var i=O(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return r[a]=t[a]+t[l]/2-i[l]/2,r[s]=n===s?t[s]-i[u]:t[E(s)],r}function P(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function I(e,n,t){return(void 0===t?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=P(e,function(e){return e[t]===n});return e.indexOf(i)}(e,"name",t))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&a(t)&&(n.offsets.popper=C(n.offsets.popper),n.offsets.reference=C(n.offsets.reference),n=t(n,e))}),n}function N(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function L(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==document.body.style[o])return o}return null}function j(e){var t=e.ownerDocument;return t?t.defaultView:window}function F(e,t,n,i){n.updateBound=i,j(e).addEventListener("resize",n.updateBound,{passive:!0});var r=g(e);return function e(t,n,i,r){var o="BODY"===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(n,i,{passive:!0}),o||e(g(a.parentNode),n,i,r),r.push(a)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function R(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,j(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEac
vendor: 5,069 bytes, line 1
1h(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function W(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function H(n,i){Object.keys(i).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&W(i[e])&&(t="px"),n.style[e]=i[e]+t})}function B(e,t){function n(e){return e}var i=e.offsets,r=i.popper,o=i.reference,a=Math.round,s=Math.floor,l=a(o.width),u=a(r.width),c=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),h=t?c||d||l%2==u%2?a:s:n,f=t?a:n;return{left:h(l%2==1&&u%2==1&&!d&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:h(r.right)}}var V=n&&/Firefox/i.test(navigator.userAgent);function z(e,t,n){var i=P(e,function(e){return e.name===t}),r=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});if(!r){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}var Y=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],q=Y.slice(3);function U(e,t){var n=1<arguments.length&&void 0!==t&&t,i=q.indexOf(e),r=q.slice(i+1).concat(q.slice(0,i));return n?r.reverse():r}var $="flip",G="clockwise",Q="counterclockwise";function K(e,r,o,t){var a=[0,0],s=-1!==["right","left"].indexOf(t),n=e.split(/(\+|\-)/).map(function(e){return e.trim()}),i=n.indexOf(P(n,function(e){return-1!==e.search(/,|\s/)}));n[i]&&-1===n[i].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==i?[n.slice(0,i).concat([n[i].split(l)[0]]),[n[i].split(l)[1]].concat(n.slice(i+1))]:[n];return(u=u.map(function(e,t){var n=(1===t?!s:s)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return e;if(0!==a.indexOf("%"))return"vh"!==a&&"vw"!==a?o:("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return C(s)[t]/100*o}(e,n,r,o)})})).forEach(function(n,i){n.forEach(function(e,t){W(e)&&(a[i]+=e*("-"===n[t-1]?-1:1))})}),a}var X={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets,o=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:k({},l,o[l]),end:k({},l,o[l]+o[u]-a[u])};e.offsets.popper=S({},a,c[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,r=e.offsets,o=r.popper,a=r.reference,s=i.split("-")[0],l=void 0;return l=W(+n)?[+n,0]:K(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,i){var t=i.boundariesElement||b(e.instance.popper);e.instance.reference===t&&(t=b(t));var n=L("transform"),r=e.instance.popper.style,o=r.top,a=r.left,s=r[n];r.top="",r.left="",r[n]="";var l=f(e.instance.popper,e.instance.reference,i.padding,t,e.positionFixed);r.top=o,r.left=a,r[n]=s,i.boundaries=l;var u=i.priority,c=e.offsets.popper,d={primary:function(e){var t=c[e];return c[e]<l[e]&&!i.escapeWithReference&&(t=Math.max(c[e],l[e])),k({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=c[t];return c[e]>l[e]&&!i.escapeWithReference&&(n=Math.min(c[t],l[e]-("right"===e?c.width:c.height))),k({},t,n)}};return u.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=S({},c,d[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<o(i[l])&&(e.offsets.popper[l]=o(i[l])-n[u]),n[l]>o(i[s])&&(e.offsets.popper[l]=o(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!z(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(r),u=l?"height":"width",c=l?"Top":"Left",d=c.toLowerCase(),h=l?"left"
1:"top",f=l?"bottom":"right",p=O(i)[u];s[f]-p<a[d]&&(e.offsets.popper[d]-=a[d]-(s[f]-p)),s[d]+p>a[f]&&(e.offsets.popper[d]+=s[d]+p-a[f]),e.offsets.popper=C(e.offsets.popper);var g=s[d]+s[u]/2-p/2,m=_(e.instance.popper),v=parseFloat(m["margin"+c]),y=parseFloat(m["border"+c+"Width"]),b=g-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(a[u]-p,b),0),e.arrowElement=i,e.offsets.arrow=(k(n={},d,Math.round(b)),k(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(m,v){if(N(m.instance.modifiers,"inner"))return m;if(m.flipped&&m.placement===m.originalPlacement)return m;var y=f(m.instance.popper,m.instance.reference,v.padding,v.boundariesElement,m.positionFixed),b=m.placement.split("-")[0],_=E(b),x=m.placement.split("-")[1]||"",w=[];switch(v.behavior){case $:w=[b,_];break;case G:w=U(b);break;case Q:w=U(b,!0);break;default:w=v.behavior}return w.forEach(function(e,t){if(b!==e||w.length===t+1)return m;b=m.placement.split("-")[0],_=E(b);var n,i=m.offsets.popper,r=m.offsets.reference,o=Math.floor,a="left"===b&&o(i.right)>o(r.left)||"right"===b&&o(i.left)<o(r.right)||"top"===b&&o(i.bottom)>o(r.top)||"bottom"===b&&o(i.top)<o(r.bottom),s=o(i.left)<o(y.left),l=o(i.right)>o(y.right),u=o(i.top)<o(y.top),c=o(i.bottom)>o(y.bottom),d="left"===b&&s||"right"===b&&l||"top"===b&&u||"bottom"===b&&c,h=-1!==["top","bottom"].indexOf(b),f=!!v.flipVariations&&(h&&"start"===x&&s||h&&"end"===x&&l||!h&&"start"===x&&u||!h&&"end"===x&&c),p=!!v.flipVariationsByContent&&(h&&"start"===x&&l||h&&"end"===x&&s||!h&&"start"===x&&c||!h&&"end"===x&&u),g=f||p;(a||d||g)&&(m.flipped=!0,(a||d)&&(b=w[t+1]),g&&(x="end"===(n=x)?"start":"start"===n?"end":n),m.placement=b+(x?"-"+x:""),m.offsets.popper=S({},m.offsets.popper,A(m.instance.popper,m.offsets.reference,m.placement)),m=I(m.instance.modifiers,m,"flip"))}),m},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0),e.placement=E(t),e.offsets.popper=C(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!z(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=P(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,r=e.offsets.popper,o=P(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=b(e.instance.popper),l=T(s),u={position:r.position},c=B(e,window.devicePixelRatio<2||!V),d="bottom"===n?"top":"bottom",h="right"===i?"left":"right",f=L("transform"),p=void 0,g=void 0;if(g="bottom"==d?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-l.height+c.bottom:c.top,p="right"==h?"HTML"===s.nodeName?-s.clientWidth+c.right:-l.width+c.right:c.left,a&&f)u[f]="translate3d("+p+"px, "+g+"px, 0)",u[d]=0,u[h]=0,u.willChange="transform";else{var m="bottom"==d?-1:1,v="right"==h?-1:1;u[d]=g*m,u[h]=p*v,u.willChange=d+", "+h}var y={"x-placement":e.placement};return e.attributes=S({},y,e.attributes),e.styles=S({},u,e.styles),e.arrowStyles=S({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return H(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&H(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,r){var o=h(r,t,e,n.positionFixed),a=u(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),H(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Z=(e(J,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=h(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=u(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=A(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=I(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,N(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[L("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=F(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return R.call(this)}}]),J);function J(e,t){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,J),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=o(this.update.bind(this)),this.options=S({},J.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(S({}
1,J.Defaults.modifiers,i.modifiers)).forEach(function(e){n.options.modifiers[e]=S({},J.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return S({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&a(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return Z.Utils=("undefined"!=typeof window?window:global).PopperUtils,Z.placements=Y,Z.Defaults=X,Z}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e=e||self).Util=t(e.jQuery)}(this,function(o){"use strict";o=o&&o.hasOwnProperty("default")?o.default:o;var t="transitionend";function e(e){var t=this,n=!1;return o(this).one(l.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||l.triggerTransitionEnd(t)},e),this}var l={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=o(e).css("transition-duration"),n=o(e).css("transition-delay"),i=parseFloat(t),r=parseFloat(n);return i||r?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){o(e).trigger(t)},supportsTransitionEnd:function(){return Boolean(t)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i],o=t[i],a=o&&l.isElement(o)?"element":(s=o,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(a))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+r+'".')}var s},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"!=typeof e.getRootNode)return e instanceof ShadowRoot?e:e.parentNode?l.findShadowRoot(e.parentNode):null;var t=e.getRootNode();return t instanceof ShadowRoot?t:null},jQueryDetection:function(){if(void 0===o)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=o.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};return l.jQueryDetection(),o.fn.emulateTransitionEnd=e,o.event.special[l.TRANSITION_END]={bindType:t,delegateType:t,handle:function(e){if(o(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},l}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],t):(e=e||self).Alert=t(e.jQuery,e.Util)}(this,function(o,a){"use strict";function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}o=o&&o.hasOwnProperty("default")?o.default:o,a=a&&a.hasOwnProperty("default")?a.default:a;var e="alert",l="bs.alert",t="."+l,n=o.fn[e],u={CLOSE:"close"+t,CLOSED:"closed"+t,CLICK_DATA_API:"click"+t+".data-api"},c="alert",d="fade",h="show",i=function(){function i(e){this._element=e}var e,t,n,r=i.prototype;return r.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},r.dispose=function(){o.removeData(this._element,l),this._element=null},r._getRootElement=function(e){var t=a.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n=n||o(e).closest("."+c)[0]},r._triggerCloseEvent=function(e){var t=o.Event(u.CLOSE);return o(e).trigger(t),t},r._removeElement=function(t){var n=this;if(o(t).removeClass(h),o(t).hasClass(d)){var e=a.getTransitionDurationFromElement(t);o(t).one(a.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(e)}else this._destroyElement(t)},r._destroyElement=function(e){o(e).detach().trigger(u.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var e=o(this),t=e.data(l);t||(t=new i(this),e.data(l,t)),"close"===n&&t[n](this)})},i._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},e=i,n=[{key:"VERSION",get:function(){return"4.4.1"}}],(t=null)&&s(e.prototype,t),n&&s(e,n),i}();return o(document).on(u.CLICK_DATA_API,'[data-dismiss="alert"]',i._handleDismiss(new i)),o.fn[e]=i._jQueryInterface,o.fn[e].Constructor=i,o.fn[e].noConflict=function(){return o.fn[e]=n,i._jQueryInterface},i}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e=e||self).Button=t(e.jQuery)}(this,function(o){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}o=o&&o.hasOwnProperty("default")?o.default:o;var e="button",s="bs.button",t="."+s,n=".data-api",i=o.fn[e],l="active",r="btn",u="focus",c='[data-toggle^="button"]',d='[data-toggle="buttons"]',h='[data-toggle="button"]',f='[data-toggle="buttons"] .btn',p='input
1:not([type="hidden"])',g=".active",m=".btn",v={CLICK_DATA_API:"click"+t+n,FOCUS_BLUR_DATA_API:"focus"+t+n+" blur"+t+n,LOAD_DATA_API:"load"+t+n},y=function(){function n(e){this._element=e}var e,t,i,r=n.prototype;return r.toggle=function(){var e=!0,t=!0,n=o(this._element).closest(d)[0];if(n){var i=this._element.querySelector(p);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(l))e=!1;else{var r=n.querySelector(g);r&&o(r).removeClass(l)}else("checkbox"!==i.type||"LABEL"===this._element.tagName&&i.checked===this._element.classList.contains(l))&&(e=!1);e&&(i.checked=!this._element.classList.contains(l),o(i).trigger("change")),i.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(l)),e&&o(this._element).toggleClass(l))},r.dispose=function(){o.removeData(this._element,s),this._element=null},n._jQueryInterface=function(t){return this.each(function(){var e=o(this).data(s);e||(e=new n(this),o(this).data(s,e)),"toggle"===t&&e[t]()})},e=n,i=[{key:"VERSION",get:function(){return"4.4.1"}}],(t=null)&&a(e.prototype,t),i&&a(e,i),n}();return o(document).on(v.CLICK_DATA_API,c,function(e){var t=e.target;if(o(t).hasClass(r)||(t=o(t).closest(m)[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))e.preventDefault();else{var n=t.querySelector(p);if(n&&(n.hasAttribute("disabled")||n.classList.contains("disabled")))return void e.preventDefault();y._jQueryInterface.call(o(t),"toggle")}}).on(v.FOCUS_BLUR_DATA_API,c,function(e){var t=o(e.target).closest(m)[0];o(t).toggleClass(u,/^focus(in)?$/.test(e.type))}),o(window).on(v.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(f)),t=0,n=e.length;t<n;t++){var i=e[t],r=i.querySelector(p);r.checked||r.hasAttribute("checked")?i.classList.add(l):i.classList.remove(l)}for(var o=0,a=(e=[].slice.call(document.querySelectorAll(h))).length;o<a;o++){var s=e[o];"true"===s.getAttribute("aria-pressed")?s.classList.add(l):s.classList.remove(l)}}),o.fn[e]=y._jQueryInterface,o.fn[e].Constructor=y,o.fn[e].noConflict=function(){return o.fn[e]=i,y._jQueryInterface},y}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],t):(e=e||self).Carousel=t(e.jQuery,e.Util)}(this,function(p,g){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function a(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?t(Object(o),!0).forEach(function(e){var t,n,i;t=r,i=o[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}p=p&&p.hasOwnProperty("default")?p.default:p,g=g&&g.hasOwnProperty("default")?g.default:g;var s="carousel",l="bs.carousel",u="."+l,e=".data-api",n=p.fn[s],c={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},d={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},m="next",h="prev",v="left",y="right",b={SLIDE:"slide"+u,SLID:"slid"+u,KEYDOWN:"keydown"+u,MOUSEENTER:"mouseenter"+u,MOUSELEAVE:"mouseleave"+u,TOUCHSTART:"touchstart"+u,TOUCHMOVE:"touchmove"+u,TOUCHEND:"touchend"+u,POINTERDOWN:"pointerdown"+u,POINTERUP:"pointerup"+u,DRAG_START:"dragstart"+u,LOAD_DATA_API:"load"+u+e,CLICK_DATA_API:"click"+u+e},f="carousel",_="active",x="slide",w="carousel-item-right",k="carousel-item-left",S="carousel-item-next",C="carousel-item-prev",T="pointer-event",D=".active",M=".active.carousel-item",O=".carousel-item",E=".carousel-item img",A=".carousel-item-next, .carousel-item-prev",P=".carousel-indicators",i="[data-sli
1de], [data-slide-to]",o='[data-ride="carousel"]',I={TOUCH:"touch",PEN:"pen"},N=function(){function o(e,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(t),this._element=e,this._indicatorsElement=this._element.querySelector(P),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e,t,n,i=o.prototype;return i.next=function(){this._isSliding||this._slide(m)},i.nextWhenVisible=function(){!document.hidden&&p(this._element).is(":visible")&&"hidden"!==p(this._element).css("visibility")&&this.next()},i.prev=function(){this._isSliding||this._slide(h)},i.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(A)&&(g.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},i.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},i.to=function(e){var t=this;this._activeElement=this._element.querySelector(M);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)p(this._element).one(b.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var i=n<e?m:h;this._slide(i,this._items[e])}},i.dispose=function(){p(this._element).off(u),p.removeData(this._element,l),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},i._getConfig=function(e){return e=a({},c,{},e),g.typeCheckConfig(s,e,d),e},i._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;(this.touchDeltaX=0)<t&&this.prev(),t<0&&this.next()}},i._addEventListeners=function(){var t=this;this._config.keyboard&&p(this._element).on(b.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&p(this._element).on(b.MOUSEENTER,function(e){return t.pause(e)}).on(b.MOUSELEAVE,function(e){return t.cycle(e)}),this._config.touch&&this._addTouchEventListeners()},i._addTouchEventListeners=function(){var n=this;if(this._touchSupported){var t=function(e){n._pointerEvent&&I[e.originalEvent.pointerType.toUpperCase()]?n.touchStartX=e.originalEvent.clientX:n._pointerEvent||(n.touchStartX=e.originalEvent.touches[0].clientX)},i=function(e){n._pointerEvent&&I[e.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=e.originalEvent.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(e){return n.cycle(e)},500+n._config.interval))};p(this._element.querySelectorAll(E)).on(b.DRAG_START,function(e){return e.preventDefault()}),this._pointerEvent?(p(this._element).on(b.POINTERDOWN,function(e){return t(e)}),p(this._element).on(b.POINTERUP,function(e){return i(e)}),this._element.classList.add(T)):(p(this._element).on(b.TOUCHSTART,function(e){return t(e)}),p(this._element).on(b.TOUCHMOVE,function(e){var t;(t=e).originalEvent.touches&&1<t.originalEvent.touches.length?n.touchDeltaX=0:n.touchDeltaX=t.originalEvent.touches[0].clientX-n.touchStartX}),p(this._element).on(b.TOUCHEND,function(e){return i(e)}))}},i._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},i._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(O)):[],this._items.indexOf(e)},i._getItemByDirection=function(e,t){var n=e===m,i=e===h,r=this._getItemIndex(t),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return t;var a=(r+(e===h?-1:1))%this._items.length;return-1==a?this._items[this._items.length-1]:this._items[a]},i._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(M)),r=p.Event(b.SLIDE,{relatedTarget:e,direction:t,from:i,to:n});return p(this._element).trigger(r),r},i._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(D));p(t).removeClass(_);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&p(n).addClass(_)}},i._slide=function(e,t){var n,i,r,o=this,a=this._element.querySelector(M),s=this._getItemIndex(a),l=t||a&&this._getItemByDirection(e,a),u=this._getItemIndex(l),c=Boolean(this._interval);if(r=e===m?(n=k,i=S,v):(n=w,i=C,y),l&&p(l).hasClass(_))this._isSliding=!1;else if(!this._triggerSlideEvent(l,r).isDefaultPrevented()&&a&&l){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(l);var d=p.Event(b.SLID,{relatedTarget:l,direction:r,from:s,to:u});if(p(this._element).hasClass(x)){p(l).addClass(i),g.reflow(l),p(a).addClass(n),p(l).addClass(n);var h=parseInt(l.getAttribute("data-interval"),10);h?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=h):this._config.interval=this._config.defaultInterval||this._config.interval;var f=g.getTransitionDurationFromElement(a);p(a).one(g.TRANSITION_END,function(){p(l).removeClass(n+" "+i).addClass(_),p(a).removeClass(_+" "+i+" "+n),o._isSliding=!1,setTimeout(function(){return p(o._element).trigger(d)},0)}).emulateTransitionEnd(f)}else p(a).removeClass(_),p(l).addClass(_),this._isSliding=!1,p(this._element).trigger(d);c&&this.cycle()}},o._jQueryInterface=function(i){return this.each(function(){var e=p(this).data(l),t=a({},c,{},p(this).data());"object"==typeof i&&(t=a({},t,{},i));var n="string"==typeof i?i:t.slide;if(e||(e=new o(this,t),p(this).data(l,e)),"number"==typeof i)e.to(i);else if("string"==typeof n){if(void 0===e[n])throw new TypeError('No method n
1amed "'+n+'"');e[n]()}else t.interval&&t.ride&&(e.pause(),e.cycle())})},o._dataApiClickHandler=function(e){var t=g.getSelectorFromElement(this);if(t){var n=p(t)[0];if(n&&p(n).hasClass(f)){var i=a({},p(n).data(),{},p(this).data()),r=this.getAttribute("data-slide-to");r&&(i.interval=!1),o._jQueryInterface.call(p(n),i),r&&p(n).data(l).to(r),e.preventDefault()}}},e=o,n=[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return c}}],(t=null)&&r(e.prototype,t),n&&r(e,n),o}();return p(document).on(b.CLICK_DATA_API,i,N._dataApiClickHandler),p(window).on(b.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(o)),t=0,n=e.length;t<n;t++){var i=p(e[t]);N._jQueryInterface.call(i,i.data())}}),p.fn[s]=N._jQueryInterface,p.fn[s].Constructor=N,p.fn[s].noConflict=function(){return p.fn[s]=n,N._jQueryInterface},N}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],t):(e=e||self).Collapse=t(e.jQuery,e.Util)}(this,function(l,u){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function o(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?t(Object(o),!0).forEach(function(e){var t,n,i;t=r,i=o[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}l=l&&l.hasOwnProperty("default")?l.default:l,u=u&&u.hasOwnProperty("default")?u.default:u;var a="collapse",c="bs.collapse",e="."+c,n=l.fn[a],d={toggle:!0,parent:""},h={toggle:"boolean",parent:"(string|element)"},f={SHOW:"show"+e,SHOWN:"shown"+e,HIDE:"hide"+e,HIDDEN:"hidden"+e,CLICK_DATA_API:"click"+e+".data-api"},p="show",g="collapse",m="collapsing",v="collapsed",y="width",b="height",_=".show, .collapsing",x='[data-toggle="collapse"]',s=function(){function s(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(x)),i=0,r=n.length;i<r;i++){var o=n[i],a=u.getSelectorFromElement(o),s=[].slice.call(document.querySelectorAll(a)).filter(function(e){return e===t});null!==a&&0<s.length&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e,t,n,i=s.prototype;return i.toggle=function(){l(this._element).hasClass(p)?this.hide():this.show()},i.show=function(){var e,t,n=this;if(!this._isTransitioning&&!l(this._element).hasClass(p)&&(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(_)).filter(function(e){return"string"==typeof n._config.parent?e.getAttribute("data-parent")===n._config.parent:e.classList.contains(g)})).length&&(e=null),!(e&&(t=l(e).not(this._selector).data(c))&&t._isTransitioning))){var i=l.Event(f.SHOW);if(l(this._element).trigger(i),!i.isDefaultPrevented()){e&&(s._jQueryInterface.call(l(e).not(this._selector),"hide"),t||l(e).data(c,null));var r=this._getDimension();l(this._element).removeClass(g).addClass(m),this._element.style[r]=0,this._triggerArray.length&&l(this._triggerArray).removeClass(v).attr("aria-expanded",!0),this.setTransitioning(!0);var o="scroll"+(r[0].toUpperCase()+r.slice(1)),a=u.getTransitionDurationFromElement(this._element);l(this._element).one(u.TRANSITION_END,function(){l(n._element).removeClass(m).addClass(g).addClass(p),n._element.style[r]="",n.setTransitioning(!1),l(n._element).trigger(f.SHOWN)}).emulateTransitionEnd(a),this._element.style[r]=this._element[o]+"px"}}},i.hide=function(){var e=this;if(!this._isTransitioning&&l(this._element).hasClass(p)){var t=l.Event(f.HIDE);if(l(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",u.reflow(this._element),l(this._element).addClass(m).removeClass(g).removeClass(p);var i=this._triggerArray.length;if(0<i)for(var r=0;r<i;r++){var o=this._triggerArray[r],a=u.getSelectorFromElement(o);if(null!==a)l([].slice.call(document.querySelectorAll(a))).hasClass(p)||l(o).addClass(v).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var s=u.getTransitionDurationFromElement(this._element);l(this._element).one(u.TRANSITION_END,function(){e.setTransitioning(!1),l(e._element).removeClass(m).addClass(g).trigger(f.HIDDEN)}).emulateTransitionEnd(s)}}},i.setTransitioning=function(e){this._isTransitioning=e},i.dispose=function(){l.removeData(this._element,c),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},i._getConfig=function(e){return(e=o({},d,{},e)).toggle=Boolean(e.toggle),u.typeCheckConfig(a,e,h),e},i._getDimension=function(){return l(this._element).hasClass(y)?y:b},i._getParent=function(){var e,n=this;u.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var t='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(e.querySelectorAll(t));return l(i).each(function(e,t){n._addAriaAndCollapsedClass(s._getTargetFromElement(t),[t])}),e},i._addAriaAndCollapsedClass=function(e,t){var n=l(e).hasClass(p);t.length&&l(t).toggleClass(v,!n).attr("aria-expanded",n)},s._getTargetFromElement=function(e){var t=u.getSelectorFromElement(e);return t?document.querySelector(t):null},s._jQueryInterface=function(i){return this.each(function(){var e=l(this),t=e.data(c),n=o({},d,{},e.data(),{},"object"==typeof i&&i?i:{});if(!t&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),t||(t=new s(this,n),e.data(c,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method n
1amed "'+i+'"');t[i]()}})},e=s,n=[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return d}}],(t=null)&&r(e.prototype,t),n&&r(e,n),s}();return l(document).on(f.CLICK_DATA_API,x,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=l(this),t=u.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(t));l(i).each(function(){var e=l(this),t=e.data(c)?"toggle":n.data();s._jQueryInterface.call(e,t)})}),l.fn[a]=s._jQueryInterface,l.fn[a].Constructor=s,l.fn[a].noConflict=function(){return l.fn[a]=n,s._jQueryInterface},s}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("popper.js"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","popper.js","./util.js"],t):(e=e||self).Dropdown=t(e.jQuery,e.Popper,e.Util)}(this,function(c,o,a){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function s(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?t(Object(o),!0).forEach(function(e){var t,n,i;t=r,i=o[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}c=c&&c.hasOwnProperty("default")?c.default:c,o=o&&o.hasOwnProperty("default")?o.default:o,a=a&&a.hasOwnProperty("default")?a.default:a;var l="dropdown",d="bs.dropdown",h="."+d,e=".data-api",n=c.fn[l],f=new RegExp("38|40|27"),p={HIDE:"hide"+h,HIDDEN:"hidden"+h,SHOW:"show"+h,SHOWN:"shown"+h,CLICK:"click"+h,CLICK_DATA_API:"click"+h+e,KEYDOWN_DATA_API:"keydown"+h+e,KEYUP_DATA_API:"keyup"+h+e},g="disabled",m="show",v="dropup",y="dropright",b="dropleft",_="dropdown-menu-right",x="position-static",w='[data-toggle="dropdown"]',i=".dropdown form",k=".dropdown-menu",S=".navbar-nav",C=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",T="top-start",D="top-end",M="bottom-start",O="bottom-end",E="right-start",A="left-start",P={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},I={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},u=function(){function u(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e,t,n,i=u.prototype;return i.toggle=function(){if(!this._element.disabled&&!c(this._element).hasClass(g)){var e=c(this._menu).hasClass(m);u._clearMenus(),e||this.show(!0)}},i.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||c(this._element).hasClass(g)||c(this._menu).hasClass(m))){var t={relatedTarget:this._element},n=c.Event(p.SHOW,t),i=u._getParentFromElement(this._element);if(c(i).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===o)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var r=this._element;"parent"===this._config.reference?r=i:a.isElement(this._config.reference)&&(r=this._config.reference,void 0!==this._config.reference.jquery&&(r=this._config.reference[0])),"scrollParent"!==this._config.boundary&&c(i).addClass(x),this._popper=new o(r,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===c(i).closest(S).length&&c(document.body).children().on("mouseover",null,c.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),c(this._menu).toggleClass(m),c(i).toggleClass(m).trigger(c.Event(p.SHOWN,t))}}},i.hide=function(){if(!this._element.disabled&&!c(this._element).hasClass(g)&&c(this._menu).hasClass(m)){var e={relatedTarget:this._element},t=c.Event(p.HIDE,e),n=u._getParentFromElement(this._element);c(n).trigger(t),t.isDefaultPrevented()||(this._popper&&this._popper.destroy(),c(this._menu).toggleClass(m),c(n).toggleClass(m).trigger(c.Event(p.HIDDEN,e)))}},i.dispose=function(){c.removeData(this._element,d),c(this._element).off(h),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},i.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},i._addEventListeners=function(){var t=this;c(this._element).on(p.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle(
1)})},i._getConfig=function(e){return e=s({},this.constructor.Default,{},c(this._element).data(),{},e),a.typeCheckConfig(l,e,this.constructor.DefaultType),e},i._getMenuElement=function(){if(!this._menu){var e=u._getParentFromElement(this._element);e&&(this._menu=e.querySelector(k))}return this._menu},i._getPlacement=function(){var e=c(this._element.parentNode),t=M;return e.hasClass(v)?(t=T,c(this._menu).hasClass(_)&&(t=D)):e.hasClass(y)?t=E:e.hasClass(b)?t=A:c(this._menu).hasClass(_)&&(t=O),t},i._detectNavbar=function(){return 0<c(this._element).closest(".navbar").length},i._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,{},t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},i._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),s({},e,{},this._config.popperConfig)},u._jQueryInterface=function(t){return this.each(function(){var e=c(this).data(d);if(e||(e=new u(this,"object"==typeof t?t:null),c(this).data(d,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},u._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var t=[].slice.call(document.querySelectorAll(w)),n=0,i=t.length;n<i;n++){var r=u._getParentFromElement(t[n]),o=c(t[n]).data(d),a={relatedTarget:t[n]};if(e&&"click"===e.type&&(a.clickEvent=e),o){var s=o._menu;if(c(r).hasClass(m)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&c.contains(r,e.target))){var l=c.Event(p.HIDE,a);c(r).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&c(document.body).children().off("mouseover",null,c.noop),t[n].setAttribute("aria-expanded","false"),o._popper&&o._popper.destroy(),c(s).removeClass(m),c(r).removeClass(m).trigger(c.Event(p.HIDDEN,a)))}}}},u._getParentFromElement=function(e){var t,n=a.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},u._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||c(e.target).closest(k).length)):f.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!c(this).hasClass(g))){var t=u._getParentFromElement(this),n=c(t).hasClass(m);if(n||27!==e.which)if(n&&(!n||27!==e.which&&32!==e.which)){var i=[].slice.call(t.querySelectorAll(C)).filter(function(e){return c(e).is(":visible")});if(0!==i.length){var r=i.indexOf(e.target);38===e.which&&0<r&&r--,40===e.which&&r<i.length-1&&r++,r<0&&(r=0),i[r].focus()}}else{if(27===e.which){var o=t.querySelector(w);c(o).trigger("focus")}c(this).trigger("click")}}},e=u,n=[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return P}},{key:"DefaultType",get:function(){return I}}],(t=null)&&r(e.prototype,t),n&&r(e,n),u}();return c(document).on(p.KEYDOWN_DATA_API,w,u._dataApiKeydownHandler).on(p.KEYDOWN_DATA_API,k,u._dataApiKeydownHandler).on(p.CLICK_DATA_API+" "+p.KEYUP_DATA_API,u._clearMenus).on(p.CLICK_DATA_API,w,function(e){e.preventDefault(),e.stopPropagation(),u._jQueryInterface.call(c(this),"toggle")}).on(p.CLICK_DATA_API,i,function(e){e.stopPropagation()}),c.fn[l]=u._jQueryInterface,c.fn[l].Constructor=u,c.fn[l].noConflict=function(){return c.fn[l]=n,u._jQueryInterface},u}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],t):(e=e||self).Modal=t(e.jQuery,e.Util)}(this,function(s,l){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function a(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?t(Object(o),!0).forEach(function(e){var t,n,i;t=r,i=o[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}s=s&&s.hasOwnProperty("default")?s.default:s,l=l&&l.hasOwnProperty("default")?l.default:l;var u="modal",c="bs.modal",d="."+c,e=s.fn[u],h={backdrop:!0,keyboard:!0,focus:!0,show:!0},f={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},p={HIDE:"hide"+d,HIDE_PREVENTED:"hidePrevented"+d,HIDDEN:"hidden"+d,SHOW:"show"+d,SHOWN:"shown"+d,FOCUSIN:"focusin"+d,RESIZE:"resize"+d,CLICK_DISMISS:"click.dismiss"+d,KEYDOWN_DISMISS:"keydown.dismiss"+d,MOUSEUP_DISMISS:"mouseup.dismiss"+d,MOUSEDOWN_DISMISS:"mousedown.dismiss"+d,CLICK_DATA_API:"click"+d+".data-api"},g="modal-dialog-scrollable",m="modal-scrollbar-measure",v="modal-backdrop",y="modal-open",b="fade",_="show",x="modal-static",w=".modal-dialog",k=".modal-body",n='[data-toggle="modal"]',S='[data-dismiss="modal"]',C=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",T=".sticky-top",D=function(){function r(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(w),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e,t,n,i=r.prototype;return i.toggle=function(e){return this._isShown?this.hide():this.show(e)},i.show=function(e){var t=this;if(!this._isShown&&!this._isTransitioning){s(this._element).hasClass(b)&&(this._isTransitioning=!0);var n=s.Event(p.SHOW,{relatedTarget:e});s(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),s(this._element).on(p.CLICK_DISMISS,S,function(e){return t.hide(e)}),s(this._dialog).on(p.MOUSEDOWN_DISMISS,function(){s(t._element).one(p.MOUSEUP_DISMISS,function(e){s(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(e)}))}},i.hide=function(e){var t=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var n=s.Event(p.HIDE);if(s(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=s(this._element).hasClass(b);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),s(document).off(p.FOCUSIN),s(this._element).removeClass(_),s(this._element).off(p.CLICK_DISMISS),s(this._dialog).off(p.MOUSEDOWN_DISMISS),i){var r=l.getTransitionDurationFromElement(this._element);s(this._element).one(l.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(r)}else this._hideModal()}}},i.dispose=function(){[window,this._element,this._dialog].forEach(function(e){return s(e).off(d)}),s(document).off(p.FOCUSIN),s.removeData(this._element,c),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},i.handleUpdate=function(){this._adjustDialog()},i._getConfig=function(e){return e=a({},h,{},e),l.typeCheckConfig(u,e,f),e},i._triggerBackdropTransition=function(){var e=this;if("static"===this._config.backdrop){var t=s.Event(p.HIDE_PREVENTED);if(s(this._element).trigger(t),t.defaultPrevented)return;this._element.classList.add(x);var n=l.getTransitionDurationFromElement(this._element);s(this._element).one(l.TRANSITION_END,function(){e._element.classList.remove(x)}).emulateTransitionEnd(n),this._element.focus()}else this.hide()},i._showElement=function(e){var t=this,n=s(this._element).hasClass(b),i=this._dialog?this._dialog.querySelector(k):null;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),s(this._dialog).hasClass(g)&&i?i.scrollTop=0:this._element.scrollTop=0,n&&l.reflow(this._element),s(this._element).addClass(_),this._config.focus&&this._enforceFocus();function r(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,s(t._element).trigger(o)}var o=s.Event(p.SHOWN,{relatedTarget:e});if(n){var a=l.getTransitionDurationFromElement(this._dialog);s(this._dialog).one(l.TRANSITION_END,r).emulateTransitionEnd(a)}else r()},i._enforceFocus=function(){var t=this;s(document).off(p.FOCUSIN).on(p.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===s(t._element).has(e.target).length&&t._element.focus()})},i._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?s(this._element).on(p.KEYDOWN_DISMISS,function(e){27===e.which&&t._triggerBackdropTransition()}):this._isShown||s(this._element).off(p.KEYDOWN_DISMISS)},i._setResizeEvent=function(){var t=this;this._isShown?s(window).on(p.RESIZE,function(e){return t.handleUpdate(e)}):s(window).off(p.RESIZE)},i._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){s(document.body).removeClass(y),e._resetAdjustments(),e._resetScrollbar(),s(e._element).trigger(p.HIDDEN)})},i._removeBackdrop=function(){this._backdrop&&(s(this._backdrop).remove(),this._backdrop=null)},i._showBackdrop=function(e){var t=this,n=s(this._element).hasClass(b)?b:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=v,n&&this._backdrop.classList.add(n),s(this._backdrop).appendTo(document.body),s(this._element).on(p.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&t._triggerBackdropTransition()}),n&&l.reflow(this._backdrop),s(this._backdrop).addClass(_),!e)return;if(!n)return void e();var i=l.getTransitionDurationFromElement(this._backdrop);s(this._backdrop).one(l.TRANSITION_END,e).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){s(this._backdrop).removeClass(_);var r=function(){t._removeBackdrop(),e&&e()};if(s(this._element).hasClass(b)){var o=l.getTransitionDurationFromElement(this._backdrop);s(this._backdrop).one(l.TRANSITION_END,r).emulateTransitionEnd(o)}else r()}else e&&e()},i._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},i._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},i._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},i._setScrollbar=function(){var r=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(C)),t=[].slice.call(document.querySelectorAll(T));s(e).each(function(e,t){var n=t.style.paddingRight,i=s(t).css("padding-right");s(t).data("padding-right",n).css("padding-right",parseFloat(i)+r._scrollbarWidth+"px")}),s(t).each(function(e,t){var n=t.style.marginRight,i=s(t).css("margin-right");s(t).data("margin-right",n).css("margin-right",parseFloat(i)-r._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=s(document.body).css("padding-right");s(document.body).data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}s(document.body).addClass(y)},i._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(C));s(e).each(function(e,t){var n=s(t).data("padding-right");s(t).removeData("padding-right"),t.style.paddingRight=n||""});var t=[].slice.call(document.querySelectorAll(""+T));s(t).each(function(e,t){var n=s(t).data("margin-right");void 0!==n&&s(t).css("margin-right",n).removeData("margin-right")});var n=s(document.body).data("padding-right");s(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},i._getScrollbarWidth=function(){var e=document.createElement("div");e.className=m,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},r._jQueryInterface=function(n,i){return this.each(function(){var e=s(this).data(c),t=a({},h,{},s(this).data(),{},"object"==typeof n&&n?n:{});if(e||(e=new r(this,t),s(this).data(c,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method n
1amed "'+n+'"');e[n](i)}else t.show&&e.show(i)})},e=r,n=[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return h}}],(t=null)&&o(e.prototype,t),n&&o(e,n),r}();return s(document).on(p.CLICK_DATA_API,n,function(e){var t,n=this,i=l.getSelectorFromElement(this);i&&(t=document.querySelector(i));var r=s(t).data(c)?"toggle":a({},s(t).data(),{},s(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var o=s(t).one(p.SHOW,function(e){e.isDefaultPrevented()||o.one(p.HIDDEN,function(){s(n).is(":visible")&&n.focus()})});D._jQueryInterface.call(s(t),r,this)}),s.fn[u]=D._jQueryInterface,s.fn[u].Constructor=D,s.fn[u].noConflict=function(){return s.fn[u]=e,D._jQueryInterface},D}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("popper.js"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","popper.js","./util.js"],t):(e=e||self).Tooltip=t(e.jQuery,e.Popper,e.Util)}(this,function(d,h,f){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function a(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?t(Object(o),!0).forEach(function(e){var t,n,i;t=r,i=o[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}d=d&&d.hasOwnProperty("default")?d.default:d,h=h&&h.hasOwnProperty("default")?h.default:h,f=f&&f.hasOwnProperty("default")?f.default:f;var u=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],e={"*":["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","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},c=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,p=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function s(e,o,t){if(0===e.length)return e;if(t&&"function"==typeof t)return t(e);for(var n=(new window.DOMParser).parseFromString(e,"text/html"),a=Object.keys(o),s=[].slice.call(n.body.querySelectorAll("*")),i=function(e){var t=s[e],n=t.nodeName.toLowerCase();if(-1===a.indexOf(t.nodeName.toLowerCase()))return t.parentNode.removeChild(t),"continue";var i=[].slice.call(t.attributes),r=[].concat(o["*"]||[],o[n]||[]);i.forEach(function(e){!function(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===u.indexOf(n)||Boolean(e.nodeValue.match(c)||e.nodeValue.match(p));for(var i=t.filter(function(e){return e instanceof RegExp}),r=0,o=i.length;r<o;r++)if(n.match(i[r]))return 1}(e,r)&&t.removeAttribute(e.nodeName)})},r=0,l=s.length;r<l;r++)i(r);return n.body.innerHTML}var l="tooltip",g="bs.tooltip",m="."+g,n=d.fn[l],v="bs-tooltip",y=new RegExp("(^|\\s)"+v+"\\S+","g"),b=["sanitize","whiteList","sanitizeFn"],_={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},x={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},w={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:e,popperConfig:null},k="show",S="out",C={HIDE:"hide"+m,HIDDEN:"hidden"+m,SHOW:"show"+m,SHOWN:"shown"+m,INSERTED:"inserted"+m,CLICK:"click"+m,FOCUSIN:"focusin"+m,FOCUSOUT:"focusout"+m,MOUSEENTER:"mouseenter"+m,MOUSELEAVE:"mouseleave"+m},T="fade",D="show",M=".tooltip-inner",O=".arrow",E="hover",A="focus",P="click",I="manual",i=function(){function i(e,t){if(void 0===h)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e,t,n,r=i.prototype;return r.enable=function(){this._isEnabled=!0},r.disable=function(){this._isEnabled=!1},r.toggleEnabled=function(){this._isEnabled=!this._isEnabled},r.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=d(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),d(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(d(this.getTipElement()).hasClass(D))return void this._leave(null,this);this._enter(null,this)}},r.dispose=function(){clearTimeout(this._timeout),d.removeData(this.element,this.constructor.DATA_KEY),d(this.element).off(this.constructor.EVENT_KEY),d(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&d(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},r.show=function(){var t=this;if("none"===d(this.element).css("display"))throw new Error("Please use show on visible elements");var e=d.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){d(this.element).trigger(e);var n=f.findShadowRoot(this.element),i=d.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var r=this.getTipElement(),o=f.getUID(this.constructor.NAME);r.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&d(r).addClass(T);var a="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,s=this._getAttachment(a);this.addAttachmentClass(s);var l=this._getContainer();d(r).data(this.constructor.DATA_KEY,this),d.contains(this.element.ownerDocument.documentElement,this.tip)||d(r).appendTo(l),d(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new h(this.element,r,this._getPopperConfig(s)),d(r).addClass(D),"ontouchstart"in document.documentElement&&d(document.body).children().on("mouseover",null,d.noop);var u=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,d(t.element).trigger(t.constructor.Event.SHOWN),e===S&&t._leave(null,t)};if(d(this.tip).hasClass(T)){var c=f.getTransitionDurationFromElement(this.tip);d(this.tip).one(f.TRANSITION_END,u).emulateTransitionEnd(c)}else u()}},r.hide=function(e){function t(){n._hoverState!==k&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),d(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()}var n=this,i=this.getTipElement(),r=d.Event(this.constructor.Event.HIDE);
1if(d(this.element).trigger(r),!r.isDefaultPrevented()){if(d(i).removeClass(D),"ontouchstart"in document.documentElement&&d(document.body).children().off("mouseover",null,d.noop),this._activeTrigger[P]=!1,this._activeTrigger[A]=!1,this._activeTrigger[E]=!1,d(this.tip).hasClass(T)){var o=f.getTransitionDurationFromElement(i);d(i).one(f.TRANSITION_END,t).emulateTransitionEnd(o)}else t();this._hoverState=""}},r.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},r.isWithContent=function(){return Boolean(this.getTitle())},r.addAttachmentClass=function(e){d(this.getTipElement()).addClass(v+"-"+e)},r.getTipElement=function(){return this.tip=this.tip||d(this.config.template)[0],this.tip},r.setContent=function(){var e=this.getTipElement();this.setElementContent(d(e.querySelectorAll(M)),this.getTitle()),d(e).removeClass(T+" "+D)},r.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=s(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?d(t).parent().is(e)||e.empty().append(t):e.text(d(t).text())},r.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e=e||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},r._getPopperConfig=function(e){var t=this;return a({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:O},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},r._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=a({},e.offsets,{},t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},r._getContainer=function(){return!1===this.config.container?document.body:f.isElement(this.config.container)?d(this.config.container):d(document).find(this.config.container)},r._getAttachment=function(e){return x[e.toUpperCase()]},r._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)d(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)});else if(e!==I){var t=e===E?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=e===E?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;d(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})}}),this._hideModalHandler=function(){i.element&&i.hide()},d(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=a({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},r._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},r._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||d(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),d(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?A:E]=!0),d(t.getTipElement()).hasClass(D)||t._hoverState===k?t._hoverState=k:(clearTimeout(t._timeout),t._hoverState=k,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===k&&t.show()},t.config.delay.show):t.show())},r._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||d(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),d(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?A:E]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=S,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===S&&t.hide()},t.config.delay.hide):t.hide())},r._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},r._getConfig=function(e){var t=d(this.element).data();return Object.keys(t).forEach(function(e){-1!==b.indexOf(e)&&delete t[e]}),"number"==typeof(e=a({},this.constructor.Default,{},t,{},"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),f.typeCheckConfig(l,e,this.constructor.DefaultType),e.sanitize&&(e.template=s(e.template,e.whiteList,e.sanitizeFn)),e},r._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},r._cleanTipClass=function(){var e=d(this.getTipElement()),t=e.attr("class").match(y);null!==t&&t.length&&e.removeClass(t.join(""))},r._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},r._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(d(e).removeClass(T),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},i._jQueryInterface=function(n){return this.each(function(){var e=d(this).data(g),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new i(this,t),d(this).data(g,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method n
1amed "'+n+'"');e[n]()}})},e=i,n=[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return w}},{key:"NAME",get:function(){return l}},{key:"DATA_KEY",get:function(){return g}},{key:"Event",get:function(){return C}},{key:"EVENT_KEY",get:function(){return m}},{key:"DefaultType",get:function(){return _}}],(t=null)&&o(e.prototype,t),n&&o(e,n),i}();return d.fn[l]=i._jQueryInterface,d.fn[l].Constructor=i,d.fn[l].noConflict=function(){return d.fn[l]=n,i._jQueryInterface},i}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("./tooltip.js")):"function"==typeof define&&define.amd?define(["jquery","./tooltip.js"],t):(e=e||self).Popover=t(e.jQuery,e.Tooltip)}(this,function(l,e){"use strict";function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function n(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?t(Object(o),!0).forEach(function(e){var t,n,i;t=r,i=o[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}l=l&&l.hasOwnProperty("default")?l.default:l,e=e&&e.hasOwnProperty("default")?e.default:e;var c="popover",d="bs.popover",h="."+d,i=l.fn[c],f="bs-popover",p=new RegExp("(^|\\s)"+f+"\\S+","g"),g=n({},e.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),m=n({},e.DefaultType,{content:"(string|element|function)"}),v="fade",y="show",b=".popover-header",_=".popover-body",x={HIDE:"hide"+h,HIDDEN:"hidden"+h,SHOW:"show"+h,SHOWN:"shown"+h,INSERTED:"inserted"+h,CLICK:"click"+h,FOCUSIN:"focusin"+h,FOCUSOUT:"focusout"+h,MOUSEENTER:"mouseenter"+h,MOUSELEAVE:"mouseleave"+h},r=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n;var r,o,a,s=i.prototype;return s.isWithContent=function(){return this.getTitle()||this._getContent()},s.addAttachmentClass=function(e){l(this.getTipElement()).addClass(f+"-"+e)},s.getTipElement=function(){return this.tip=this.tip||l(this.config.template)[0],this.tip},s.setContent=function(){var e=l(this.getTipElement());this.setElementContent(e.find(b),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(_),t),e.removeClass(v+" "+y)},s._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},s._cleanTipClass=function(){var e=l(this.getTipElement()),t=e.attr("class").match(p);null!==t&&0<t.length&&e.removeClass(t.join(""))},i._jQueryInterface=function(n){return this.each(function(){var e=l(this).data(d),t="object"==typeof n?n:null;if((e||!/dispose|hide/.test(n))&&(e||(e=new i(this,t),l(this).data(d,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},r=i,a=[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return g}},{key:"NAME",get:function(){return c}},{key:"DATA_KEY",get:function(){return d}},{key:"Event",get:function(){return x}},{key:"EVENT_KEY",get:function(){return h}},{key:"DefaultType",get:function(){return m}}],(o=null)&&u(r.prototype,o),a&&u(r,a),i}(e);return l.fn[c]=r._jQueryInterface,l.fn[c].Constructor=r,l.fn[c].noConflict=function(){return l.fn[c]=i,r._jQueryInterface},r}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],t):(e=e||self).ScrollSpy=t(e.jQuery,e.Util)}(this,function(a,s){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function l(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?t(Object(o),!0).forEach(function(e){var t,n,i;t=r,i=o[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}a=a&&a.hasOwnProperty("default")?a.default:a,s=s&&s.hasOwnProperty("default")?s.default:s;var u="scrollspy",c="bs.scrollspy",d="."+c,e=a.fn[u],h={offset:10,method:"auto",target:""},f={offset:"number",method:"string",target:"(string|element)"},p={ACTIVATE:"activate"+d,SCROLL:"scroll"+d,LOAD_DATA_API:"load"+d+".data-api"},g="dropdown-item",m="active",i='[data-spy="scroll"]',v=".nav, .list-group",y=".nav-link",b=".nav-item",_=".list-group-item",x=".dropdown",w=".dropdown-item",k=".dropdown-toggle",S="offset",C="position",r=function(){function n(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+y+","+this._config.target+" "+_+","+this._config.target+" "+w,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,a(this._scrollElement).on(p.SCROLL,function(e){return n._process(e)}),this.refresh(),this._process()}var e,t,i,r=n.prototype;return r.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?S:C,r="auto"===this._config.method?e:this._config.method,o=r===C?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var t,n=s.getSelectorFromElement(e);if(n&&(t=document.querySelector(n)),t){var i=t.getBoundingClientRect();if(i.width||i.height)return[a(t)[r]().top+o,n]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},r.dispose=function(){a.removeData(this._element,c),a(this._scrollElement).off(d),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},r._getConfig=function(e){if("string"!=typeof(e=l({},h,{},"object"==typeof e&&e?e:{})).target){var t=a(e.target).attr("id");t||(t=s.getUID(u),a(e.target).attr("id",t)),e.target="#"+t}return s.typeCheckConfig(u,e,f),e},r._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},r._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},r._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},r._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),n<=e){var 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(var r=this._offsets.length;r--;){this._activeTarget!==this._targets[r]&&e>=this._offsets[r]&&(void 0===this._offsets[r+1]||e<this._offsets[r+1])&&this._activate(this._targets[r])}}},r._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),n=a([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass(g)?(n.closest(x).find(k).addClass(m),n.addClass(m)):(n.addClass(m),n.parents(v).prev(y+", "+_).addClass(m),n.parents(v).prev(b).children(y).addClass(m)),a(this._scrollElement).trigger(p.ACTIVATE,{relatedTarget:t})},r._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains(m)}).forEach(function(e){return e.classList.remove(m)})},n._jQueryInterface=function(t){return this.each(function(){var e=a(this).data(c);if(e||(e=new n(this,"object"==typeof t&&t),a(this).data(c,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method n
1amed "'+t+'"');e[t]()}})},e=n,i=[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return h}}],(t=null)&&o(e.prototype,t),i&&o(e,i),n}();return a(window).on(p.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(i)),t=e.length;t--;){var n=a(e[t]);r._jQueryInterface.call(n,n.data())}}),a.fn[u]=r._jQueryInterface,a.fn[u].Constructor=r,a.fn[u].noConflict=function(){return a.fn[u]=e,r._jQueryInterface},r}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],t):(e=e||self).Tab=t(e.jQuery,e.Util)}(this,function(u,c){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}u=u&&u.hasOwnProperty("default")?u.default:u,c=c&&c.hasOwnProperty("default")?c.default:c;var a="bs.tab",e="."+a,t=u.fn.tab,d={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,CLICK_DATA_API:"click"+e+".data-api"},s="dropdown-menu",h="active",f="disabled",l="fade",p="show",g=".dropdown",m=".nav, .list-group",v=".active",y="> li > .active",n='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',b=".dropdown-toggle",_="> .dropdown-menu .active",i=function(){function i(e){this._element=e}var e,t,n,r=i.prototype;return r.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&u(this._element).hasClass(h)||u(this._element).hasClass(f))){var e,i,t=u(this._element).closest(m)[0],r=c.getSelectorFromElement(this._element);if(t){var o="UL"===t.nodeName||"OL"===t.nodeName?y:v;i=(i=u.makeArray(u(t).find(o)))[i.length-1]}var a=u.Event(d.HIDE,{relatedTarget:this._element}),s=u.Event(d.SHOW,{relatedTarget:i});if(i&&u(i).trigger(a),u(this._element).trigger(s),!s.isDefaultPrevented()&&!a.isDefaultPrevented()){r&&(e=document.querySelector(r)),this._activate(this._element,t);var l=function(){var e=u.Event(d.HIDDEN,{relatedTarget:n._element}),t=u.Event(d.SHOWN,{relatedTarget:i});u(i).trigger(e),u(n._element).trigger(t)};e?this._activate(e,e.parentNode,l):l()}}},r.dispose=function(){u.removeData(this._element,a),this._element=null},r._activate=function(e,t,n){function i(){return r._transitionComplete(e,o,n)}var r=this,o=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?u(t).children(v):u(t).find(y))[0],a=n&&o&&u(o).hasClass(l);if(o&&a){var s=c.getTransitionDurationFromElement(o);u(o).removeClass(p).one(c.TRANSITION_END,i).emulateTransitionEnd(s)}else i()},r._transitionComplete=function(e,t,n){if(t){u(t).removeClass(h);var i=u(t.parentNode).find(_)[0];i&&u(i).removeClass(h),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(u(e).addClass(h),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),c.reflow(e),e.classList.contains(l)&&e.classList.add(p),e.parentNode&&u(e.parentNode).hasClass(s)){var r=u(e).closest(g)[0];if(r){var o=[].slice.call(r.querySelectorAll(b));u(o).addClass(h)}e.setAttribute("aria-expanded",!0)}n&&n()},i._jQueryInterface=function(n){return this.each(function(){var e=u(this),t=e.data(a);if(t||(t=new i(this),e.data(a,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},e=i,n=[{key:"VERSION",get:function(){return"4.4.1"}}],(t=null)&&o(e.prototype,t),n&&o(e,n),i}();return u(document).on(d.CLICK_DATA_API,n,function(e){e.preventDefault(),i._jQueryInterface.call(u(this),"show")}),u.fn.tab=i._jQueryInterface,u.fn.tab.Constructor=i,u.fn.tab.noConflict=function(){return u.fn.tab=t,i._jQueryInterface},i}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],t):(e=e||self).Toast=t(e.jQuery,e.Util)}(this,function(o,a){"use strict";function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function l(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?t(Object(o),!0).forEach(function(e){var t,n,i;t=r,i=o[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}o=o&&o.hasOwnProperty("default")?o.default:o,a=a&&a.hasOwnProperty("default")?a.default:a;var u="toast",c="bs.toast",e="."+c,n=o.fn[u],d={CLICK_DISMISS:"click.dismiss"+e,HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e},h="fade",f="hide",p="show",g="showing",m={animation:"boolean",autohide:"boolean",delay:"number"},v={animation:!0,autohide:!0,delay:500},y='[data-dismiss="toast"]',i=function(){function i(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var e,t,n,r=i.prototype;return r.show=function(){var e=this,t=o.Event(d.SHOW);if(o(this._element).trigger(t),!t.isDefaultPrevented()){this._config.animation&&this._element.classList.add(h);var n=function(){e._element.classList.remove(g),e._element.classList.add(p),o(e._element).trigger(d.SHOWN),e._config.autohide&&(e._timeout=setTimeout(function(){e.hide()},e._config.delay))};if(this._element.classList.remove(f),a.reflow(this._element),this._element.classList.add(g),this._config.animation){var i=a.getTransitionDurationFromElement(this._element);o(this._element).one(a.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},r.hide=function(){if(this._element.classList.contains(p)){var e=o.Event(d.HIDE);o(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},r.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(p)&&this._element.classList.remove(p),o(this._element).off(d.CLICK_DISMISS),o.removeData(this._element,c),this._element=null,this._config=null},r._getConfig=function(e){return e=l({},v,{},o(this._element).data(),{},"object"==typeof e&&e?e:{}),a.typeCheckConfig(u,e,this.constructor.DefaultType),e},r._setListeners=function(){var e=this;o(this._element).on(d.CLICK_DISMISS,y,function(){return e.hide()})},r._close=function(){function e(){t._element.classList.add(f),o(t._element).trigger(d.HIDDEN)}var t=this;if(this._element.classList.remove(p),this._config.animation){var n=a.getTransitionDurationFromElement(this._element);o(this._element).one(a.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},i._jQueryInterface=function(n){return this.each(function(){var e=o(this),t=e.data(c);if(t||(t=new i(this,"object"==typeof n&&n),e.data(c,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n](this)}})},e=i,n=[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return m}},{key:"Default",get:function(){return v}}],(t=null)&&s(e.prototype,t),n&&s(e,n),i}();return o.fn[u]=i._jQueryInterface,o.fn[u].Constructor=i,o.fn[u].noConflict=function(){return o.fn[u]=n,i._jQueryInterface},i}),function(r,n,N,h){"use strict";function f(e){return e&&e.hasOwnProperty&&e instanceof N}function p(e){return e&&"string"===N.type(e)}function L(e){return p(e)&&0<e.indexOf("%")}function j(e,t){var n=parseInt(e,10)||0;return t&&L(e)&&(n=R.getViewport()[t]/100*n),Math.ceil(n)}function F(e,t){return j(e,t)+"px"}var o=N("html"),i=N(r),u=N(n),R=N.fancybox=function(){R.open.apply(this,arguments)},a=navigator.userAgent.match(/msie/i),s=null,c=n.createTouch!==h;N.extend(R,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!c,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(a?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>',loading:'<div id="fancybox-loading"><div></div></div>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:N.noop,beforeLoad:N.noop,afterLoad:N.noop,beforeShow:N.noop,afterShow:N.noop,beforeChange:N.noop,beforeClose:N.noop,afterClose:N.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,
vendor: 4,196 bytes, line 1
1skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(c,d){if(c&&(N.isPlainObject(d)||(d={}),!1!==R.close(!0)))return N.isArray(c)||(c=f(c)?N(c).get():[c]),N.each(c,function(e,t){var n,i,r,o,a,s,l,u={};"object"===N.type(t)&&(t.nodeType&&(t=N(t)),f(t)?(u={href:t.data("fancybox-href")||t.attr("href"),title:N("<div/>").text(t.data("fancybox-title")||t.attr("title")||"").html(),isDom:!0,element:t},N.metadata&&N.extend(!0,u,t.metadata())):u=t),n=d.href||u.href||(p(t)?t:null),i=d.title!==h?d.title:u.title||"",!(o=(r=d.content||u.content)?"html":d.type||u.type)&&u.isDom&&(o=(o=t.data("fancybox-type"))||((a=t.prop("class").match(/fancybox\.(\w+)/))?a[1]:null)),p(n)&&(o||(R.isImage(n)?o="image":R.isSWF(n)?o="swf":"#"===n.charAt(0)?o="inline":p(t)&&(o="html",r=t)),"ajax"===o&&(n=(s=n.split(/\s+/,2)).shift(),l=s.shift())),r||("inline"===o?n?r=N(p(n)?n.replace(/.*(?=#[^\s]+$)/,""):n):u.isDom&&(r=t):"html"===o?r=n:o||n||!u.isDom||(o="inline",r=t)),N.extend(u,{href:n,type:o,content:r,title:i,selector:l}),c[e]=u}),R.opts=N.extend(!0,{},R.defaults,d),d.keys!==h&&(R.opts.keys=!!d.keys&&N.extend({},R.defaults.keys,d.keys)),R.group=c,R._start(R.opts.index)},cancel:function(){var e=R.coming;e&&!1===R.trigger("onCancel")||(R.hideLoading(),e&&(R.ajaxLoad&&R.ajaxLoad.abort(),R.ajaxLoad=null,R.imgPreload&&(R.imgPreload.onload=R.imgPreload.onerror=null),e.wrap&&e.wrap.stop(!0,!0).trigger("onReset").remove(),R.coming=null,R.current||R._afterZoomOut(e)))},close:function(e){R.cancel(),!1!==R.trigger("beforeClose")&&(R.unbindEvents(),R.isActive&&(R.isOpen&&!0!==e?(R.isOpen=R.isOpened=!1,R.isClosing=!0,N(".fancybox-item, .fancybox-nav").remove(),R.wrap.stop(!0,!0).removeClass("fancybox-opened"),R.transitions[R.current.closeMethod]()):(N(".fancybox-wrap").stop(!0).trigger("onReset").remove(),R._afterZoomOut())))},play:function(e){function t(){clearTimeout(R.player.timer)}function n(){t(),R.current&&R.player.isActive&&(R.player.timer=setTimeout(R.next,R.current.playSpeed))}function i(){t(),u.unbind(".player"),R.player.isActive=!1,R.trigger("onPlayEnd")}!0===e||!R.player.isActive&&!1!==e?R.current&&(R.current.loop||R.current.index<R.group.length-1)&&(R.player.isActive=!0,u.bind({"onCancel.player beforeClose.player":i,"onUpdate.player":n,"beforeLoad.player":t}),n(),R.trigger("onPlayStart")):i()},next:function(e){var t=R.current;t&&(p(e)||(e=t.direction.next),R.jumpto(t.index+1,e,"next"))},prev:function(e){var t=R.current;t&&(p(e)||(e=t.direction.prev),R.jumpto(t.index-1,e,"prev"))},jumpto:function(e,t,n){var i=R.current;i&&(e=j(e),R.direction=t||i.direction[e>=i.index?"next":"prev"],R.router=n||"jumpto",i.loop&&(e<0&&(e=i.group.length+e%i.group.length),e%=i.group.length),i.group[e]!==h&&(R.cancel(),R._start(e)))},reposition:function(e,t){var n,i=R.current,r=i?i.wrap:null;r&&(n=R._getPosition(t),e&&"scroll"===e.type?(delete n.position,r.stop(!0,!0).animate(n,200)):(r.css(n),i.pos=N.extend({},i.dim,n)))},update:function(t){var n=t&&t.originalEvent&&t.originalEvent.type,i=!n||"orientationchange"===n;i&&(clearTimeout(s),s=null),R.isOpen&&!s&&(s=setTimeout(function(){var e=R.current;e&&!R.isClosing&&(R.wrap.removeClass("fancybox-tmp"),(i||"load"===n||"resize"===n&&e.autoResize)&&R._setDimension(),"scroll"===n&&e.canShrink||R.reposition(t),R.trigger("onUpdate"),s=null)},i&&!c?0:300))},toggle:function(e){R.isOpen&&(R.current.fitToView="boolean"===N.type(e)?e:!R.current.fitToView,c&&(R.wrap.removeAttr("style").addClass("fancybox-tmp"),R.trigger("onUpdate")),R.update())},hideLoading:function(){u.unbind(".loading"),N("#fancybox-loading").remove()},showLoading:function(){var e,t;R.hideLoading(),e=N(R.opts.tpl.loading).click(R.cancel).appendTo("body"),u.bind("keydown.loading",function(e){27===(e.which||e.keyCode)&&(e.preventDefault(),R.cancel())}),R.defaults.fixed||(t=R.getViewport(),e.css({position:"absolute",top:.5*t.h+t.y,left:.5*t.w+t.x})),R.trigger("onLoading")},getViewport:function(){var e=R.current&&R.current.locked||!1,t={x:i.scrollLeft(),y:i.scrollTop()};return e&&e.length?(t.w=e[0].clientWidth,t.h=e[0].clientHeight):(t.w=c&&r.innerWidth?r.innerWidth:i.width(),t.h=c&&r.innerHe
vendor: 4,673 bytes, line 1
1ight?r.innerHeight:i.height()),t},unbindEvents:function(){R.wrap&&f(R.wrap)&&R.wrap.unbind(".fb"),u.unbind(".fb"),i.unbind(".fb")},bindEvents:function(){var t,l=R.current;l&&(i.bind("orientationchange.fb"+(c?"":" resize.fb")+(l.autoCenter&&!l.locked?" scroll.fb":""),R.update),(t=l.keys)&&u.bind("keydown.fb",function(n){var i=n.which||n.keyCode,e=n.target||n.srcElement;if(27===i&&R.coming)return!1;n.ctrlKey||n.altKey||n.shiftKey||n.metaKey||e&&(e.type||N(e).is("[contenteditable]"))||N.each(t,function(e,t){return 1<l.group.length&&t[i]!==h?(R[e](t[i]),n.preventDefault(),!1):-1<N.inArray(i,t)?(R[e](),n.preventDefault(),!1):void 0})}),N.fn.mousewheel&&l.mouseWheel&&R.wrap.bind("mousewheel.fb",function(e,t,n,i){for(var r,o=e.target||null,a=N(o),s=!1;a.length&&!(s||a.is(".fancybox-skin")||a.is(".fancybox-wrap"));)s=(r=a[0])&&!(r.style.overflow&&"hidden"===r.style.overflow)&&(r.clientWidth&&r.scrollWidth>r.clientWidth||r.clientHeight&&r.scrollHeight>r.clientHeight),a=N(a).parent();0===t||s||1<R.group.length&&!l.canShrink&&(0<i||0<n?R.prev(0<i?"down":"left"):(i<0||n<0)&&R.next(i<0?"up":"right"),e.preventDefault())}))},trigger:function(n,e){var t,i=e||R.coming||R.current;if(i){if(N.isFunction(i[n])&&(t=i[n].apply(i,Array.prototype.slice.call(arguments,1))),!1===t)return!1;i.helpers&&N.each(i.helpers,function(e,t){t&&R.helpers[e]&&N.isFunction(R.helpers[e][n])&&R.helpers[e][n](N.extend(!0,{},R.helpers[e].defaults,t),i)})}u.trigger(n)},isImage:function(e){return p(e)&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(e){return p(e)&&e.match(/\.(swf)((\?|#).*)?$/i)},_start:function(e){var t,n,i,r,o,a={};if(e=j(e),!(t=R.group[e]||null))return!1;if(r=(a=N.extend(!0,{},R.opts,t)).margin,o=a.padding,"number"===N.type(r)&&(a.margin=[r,r,r,r]),"number"===N.type(o)&&(a.padding=[o,o,o,o]),a.modal&&N.extend(!0,a,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),a.autoSize&&(a.autoWidth=a.autoHeight=!0),"auto"===a.width&&(a.autoWidth=!0),"auto"===a.height&&(a.autoHeight=!0),a.group=R.group,a.index=e,R.coming=a,!1!==R.trigger("beforeLoad")){if(i=a.type,n=a.href,!i)return R.coming=null,!(!R.current||!R.router||"jumpto"===R.router)&&(R.current.index=e,R[R.router](R.direction));if(R.isActive=!0,"image"!==i&&"swf"!==i||(a.autoHeight=a.autoWidth=!1,a.scrolling="visible"),"image"===i&&(a.aspectRatio=!0),"iframe"===i&&c&&(a.scrolling="scroll"),a.wrap=N(a.tpl.wrap).addClass("fancybox-"+(c?"mobile":"desktop")+" fancybox-type-"+i+" fancybox-tmp "+a.wrapCSS).appendTo(a.parent||"body"),N.extend(a,{skin:N(".fancybox-skin",a.wrap),outer:N(".fancybox-outer",a.wrap),inner:N(".fancybox-inner",a.wrap)}),N.each(["Top","Right","Bottom","Left"],function(e,t){a.skin.css("padding"+t,F(a.padding[e]))}),R.trigger("onReady"),"inline"===i||"html"===i){if(!a.content||!a.content.length)return R._error("content")}else if(!n)return R._error("href");"image"===i?R._loadImage():"ajax"===i?R._loadAjax():"iframe"===i?R._loadIframe():R._afterLoad()}else R.coming=null},_error:function(e){N.extend(R.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:e,content:R.coming.tpl.error}),R._afterLoad()},_loadImage:function(){var e=R.imgPreload=new Image;e.onload=function(){this.onload=this.onerror=null,R.coming.width=this.width/R.opts.pixelRatio,R.coming.height=this.height/R.opts.pixelRatio,R._afterLoad()},e.onerror=function(){this.onload=this.onerror=null,R._error("image")},e.src=R.coming.href,!0!==e.complete&&R.showLoading()},_loadAjax:function(){var n=R.coming;R.showLoading(),R.ajaxLoad=N.ajax(N.extend({},n.ajax,{url:n.href,error:function(e,t){R.coming&&"abort"!==t?R._error("ajax",e):R.hideLoading()},success:function(e,t){"success"===t&&(n.content=e,R._afterLoad())}}))},_loadIframe:function(){var e=R.coming,t=N(e.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",c?"auto":e.iframe.scrolling).attr("src",e.href);N(e.wrap).bind("onReset",function(){try{N(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(e){}}),e.iframe.preload&&(R.showLoading(),t.one("load",function(){N(this).data("ready",1),c||N(this).bind("load.fb",R.update),N(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),R._afterLoad()})),e.content=t.appendTo(e.inner),e.iframe.preload||R._afterLoad()},_preloadImages:function(){var e,t,n=R.group,i=R.current,r=n.length,o=i.preload?Math.min(i.preload,r-1):0;for(t=1;t<=o;t+=1)"image"===(e=n[(i.index+t)%r]).type&&e.href&&((new Image).src=e.href)},_afterLoad:function(){var e,n,t,i,r,o,a=R.coming,s=R.current,l="fancybox-placeholder";
vendor: 2,623 bytes, line 1
1if(R.hideLoading(),a&&!1!==R.isActive){if(!1===R.trigger("afterLoad",a,s))return a.wrap.stop(!0).trigger("onReset").remove(),void(R.coming=null);switch(s&&(R.trigger("beforeChange",s),s.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),R.unbindEvents(),n=(e=a).content,t=a.type,i=a.scrolling,N.extend(R,{wrap:e.wrap,skin:e.skin,outer:e.outer,inner:e.inner,current:e,previous:s}),r=e.href,t){case"inline":case"ajax":case"html":e.selector?n=N("<div>").html(n).find(e.selector):f(n)&&(n.data(l)||n.data(l,N('<div class="'+l+'"></div>').insertAfter(n).hide()),n=n.show().detach(),e.wrap.bind("onReset",function(){N(this).find(n).length&&n.hide().replaceAll(n.data(l)).data(l,!1)}));break;case"image":n=e.tpl.image.replace(/\{href\}/g,r);break;case"swf":n='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+r+'"></param>',o="",N.each(e.swf,function(e,t){n+='<param name="'+e+'" value="'+t+'"></param>',o+=" "+e+'="'+t+'"'}),n+='<embed src="'+r+'" type="application/x-shockwave-flash" width="100%" height="100%"'+o+"></embed></object>"}f(n)&&n.parent().is(e.inner)||e.inner.append(n),R.trigger("beforeShow"),e.inner.css("overflow","yes"===i?"scroll":"no"===i?"hidden":i),R._setDimension(),R.reposition(),R.isOpen=!1,R.coming=null,R.bindEvents(),R.isOpened?s.prevMethod&&R.transitions[s.prevMethod]():N(".fancybox-wrap").not(e.wrap).stop(!0).trigger("onReset").remove(),R.transitions[R.isOpened?e.nextMethod:e.openMethod](),R._preloadImages()}},_setDimension:function(){var e,t,n,i,r,o,a,s,l,u,c,d,h,f,p,g,m,v=R.getViewport(),y=0,b=R.wrap,_=R.skin,x=R.inner,w=R.current,k=w.width,S=w.height,C=w.minWidth,T=w.minHeight,D=w.maxWidth,M=w.maxHeight,O=w.scrolling,E=w.scrollOutside?w.scrollbarWidth:0,A=w.margin,P=j(A[1]+A[3]),I=j(A[0]+A[2]);if(b.add(_).add(x).width("auto").height("auto").removeClass("fancybox-tmp"),r=P+(n=j(_.outerWidth(!0)-_.width())),o=I+(i=j(_.outerHeight(!0)-_.height())),a=L(k)?(v.w-r)*j(k)/100:k,s=L(S)?(v.h-o)*j(S)/100:S,"iframe"===w.type){if(g=w.content,w.autoHeight&&1===g.data("ready"))try{g[0].contentWindow.document.location&&(x.width(a).height(9999),m=g.contents().find("body"),E&&m.css("overflow-x","hidden"),s=m.outerHeight(!0))}catch(e){}}else(w.autoWidth||w.autoHeight)&&(x.addClass("fancybox-tmp"),w.autoWidth||x.width(a),w.autoHeight||x.height(s),w.autoWidth&&(a=x.width()),w.autoHeight&&(s=x.height()),x.removeClass("fancybox-tmp"));if(k=j(a),S=j(s),c=a/s,C=j(L(C)?j(C,"w")-r:C),D=j(L(D)?j(D,"w")-r:D),T=j(L(T)?j(T,"h")-o:T),l=D,u=M=j(L(M)?j(M,"h")-o:M),w.fitToView&&
vendor: 6,602 bytes, line 1
1(D=Math.min(v.w-r,D),M=Math.min(v.h-o,M)),f=v.w-P,p=v.h-I,w.aspectRatio?(D<k&&(S=j((k=D)/c)),M<S&&(k=j((S=M)*c)),k<C&&(S=j((k=C)/c)),S<T&&(k=j((S=T)*c))):(k=Math.max(C,Math.min(k,D)),w.autoHeight&&"iframe"!==w.type&&(x.width(k),S=x.height()),S=Math.max(T,Math.min(S,M))),w.fitToView)if(x.width(k).height(S),b.width(k+n),d=b.width(),h=b.height(),w.aspectRatio)for(;(f<d||p<h)&&C<k&&T<S&&!(19<y++);)S=Math.max(T,Math.min(M,S-10)),(k=j(S*c))<C&&(S=j((k=C)/c)),D<k&&(S=j((k=D)/c)),x.width(k).height(S),b.width(k+n),d=b.width(),h=b.height();else k=Math.max(C,Math.min(k,k-(d-f))),S=Math.max(T,Math.min(S,S-(h-p)));E&&"auto"===O&&S<s&&k+n+E<f&&(k+=E),x.width(k).height(S),b.width(k+n),d=b.width(),h=b.height(),e=(f<d||p<h)&&C<k&&T<S,t=w.aspectRatio?k<l&&S<u&&k<a&&S<s:(k<l||S<u)&&(k<a||S<s),N.extend(w,{dim:{width:F(d),height:F(h)},origWidth:a,origHeight:s,canShrink:e,canExpand:t,wPadding:n,hPadding:i,wrapSpace:h-_.outerHeight(!0),skinSpace:_.height()-S}),!g&&w.autoHeight&&T<S&&S<M&&!t&&x.height("auto")},_getPosition:function(e){var t=R.current,n=R.getViewport(),i=t.margin,r=R.wrap.width()+i[1]+i[3],o=R.wrap.height()+i[0]+i[2],a={position:"absolute",top:i[0],left:i[3]};return t.autoCenter&&t.fixed&&!e&&o<=n.h&&r<=n.w?a.position="fixed":t.locked||(a.top+=n.y,a.left+=n.x),a.top=F(Math.max(a.top,a.top+(n.h-o)*t.topRatio)),a.left=F(Math.max(a.left,a.left+(n.w-r)*t.leftRatio)),a},_afterZoomIn:function(){var t=R.current;t&&(R.isOpen=R.isOpened=!0,R.wrap.css("overflow","visible").addClass("fancybox-opened").hide().show(0),R.update(),(t.closeClick||t.nextClick&&1<R.group.length)&&R.inner.css("cursor","pointer").bind("click.fb",function(e){N(e.target).is("a")||N(e.target).parent().is("a")||(e.preventDefault(),R[t.closeClick?"close":"next"]())}),t.closeBtn&&N(t.tpl.closeBtn).appendTo(R.skin).bind("click.fb",function(e){e.preventDefault(),R.close()}),t.arrows&&1<R.group.length&&((t.loop||0<t.index)&&N(t.tpl.prev).appendTo(R.outer).bind("click.fb",R.prev),(t.loop||t.index<R.group.length-1)&&N(t.tpl.next).appendTo(R.outer).bind("click.fb",R.next)),R.trigger("afterShow"),t.loop||t.index!==t.group.length-1?R.opts.autoPlay&&!R.player.isActive&&(R.opts.autoPlay=!1,R.play(!0)):R.play(!1))},_afterZoomOut:function(e){e=e||R.current,N(".fancybox-wrap").trigger("onReset").remove(),N.extend(R,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),R.trigger("afterClose",e)}}),R.transitions={getOrigPosition:function(){var e=R.current,t=e.element,n=e.orig,i={},r=50,o=50,a=e.hPadding,s=e.wPadding,l=R.getViewport();return!n&&e.isDom&&t.is(":visible")&&((n=t.find("img:first")).length||(n=t)),f(n)?(i=n.offset(),n.is("img")&&(r=n.outerWidth(),o=n.outerHeight())):(i.top=l.y+(l.h-o)*e.topRatio,i.left=l.x+(l.w-r)*e.leftRatio),"fixed"!==R.wrap.css("position")&&!e.locked||(i.top-=l.y,i.left-=l.x),i={top:F(i.top-a*e.topRatio),left:F(i.left-s*e.leftRatio),width:F(r+s),height:F(o+a)}},step:function(e,t){var n,i,r=t.prop,o=R.current,a=o.wrapSpace,s=o.skinSpace;"width"!==r&&"height"!==r||(n=t.end===t.start?1:(e-t.start)/(t.end-t.start),R.isClosing&&(n=1-n),i=e-("width"===r?o.wPadding:o.hPadding),R.skin[r](j("width"===r?i:i-a*n)),R.inner[r](j("width"===r?i:i-a*n-s*n)))},zoomIn:function(){var e=R.current,t=e.pos,n=e.openEffect,i="elastic"===n,r=N.extend({opacity:1},t);delete r.position,i?(t=this.getOrigPosition(),e.openOpacity&&(t.opacity=.1)):"fade"===n&&(t.opacity=.1),R.wrap.css(t).animate(r,{duration:"none"===n?0:e.openSpeed,easing:e.openEasing,step:i?this.step:null,complete:R._afterZoomIn})},zoomOut:function(){var e=R.current,t=e.closeEffect,n="elastic"===t,i={opacity:.1};n&&(i=this.getOrigPosition(),e.closeOpacity&&(i.opacity=.1)),R.wrap.animate(i,{duration:"none"===t?0:e.closeSpeed,easing:e.closeEasing,step:n?this.step:null,complete:R._afterZoomOut})},changeIn:function(){var e,t=R.current,n=t.nextEffect,i=t.pos,r={opacity:1},o=R.direction;i.opacity=.1,"elastic"===n&&(e="down"===o||"up"===o?"top":"left","down"===o||"right"===o?(i[e]=F(j(i[e])-200),r[e]="+=200px"):(i[e]=F(j(i[e])+200),r[e]="-=200px")),"none"===n?R._afterZoomIn():R.wrap.css(i).animate(r,{duration:t.nextSpeed,easing:t.nextEasing,complete:R._afterZoomIn})},changeOut:function(){var e=R.previous,t=e.prevEffect,n={opacity:.1},i=R.direction;"elastic"===t&&(n["down"===i||"up"===i?"top":"left"]=("up"===i||"left"===i?"-":"+")+"=200px"),e.wrap.animate(n,{duration:"none"===t?0:e.prevSpeed,easing:e.prevEasing,complete:function(){N(this).trigger("onReset").remove()}})}},R.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!c,fixed:!0},overlay:null,fixed:!1,el:N("html"),create:function(e){var t;e=N.extend({},this.defaults,e),this.overlay&&this.close(),t=R.coming?R.coming.parent:e.parent,this.overlay=N('<div class="fancybox-overlay"></div>').appendTo(t&&t.length?t:"body"),this.fixed=!1,e.fixed&&R.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(e){var t=this;e=N.extend({},this.defaults,e),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(e),this.fixed||(i.bind("resize.overlay",N.proxy(this.update,this)),this.update()),e.closeClick&&this.overlay.bind("click.overlay",function(e){if(N(e.target).hasClass("fancybox-overlay"))return R.isActive?R.close():t.close(),!1}),this.overlay.css(e.css).show()},close:function(){i.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(N(".fancybox-margin").removeClass("fancybox-margin"),this.el.removeClass("fancybox-lock"),i.scrollTop(this.scrollV).scrollLeft(this.scrollH)),N(".fancybox-overlay").remove().hide(),N.extend(this,{overlay:null,fixed:!1})},update:function(){var e,t="100%";this.overlay.width(t).height("100%"),a?(e=Math.max(n.documentElement.offsetWidth,n.body.offsetWidth),u.width()>e&&(t=u.width())):u.width()>i.width()&&(t=u.width()),this.overlay.width(t).height(u.height())},onReady:function(e,t){var n=this.overlay;N(".fancybox-overlay").stop(!0,!0),n||this.create(e),e.locked&&this.fixed&&t.fixed&&(t.locked=this.overlay.append(t.wrap),t.fixed=!1),!0===e.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(e,t){t.locked&&!this.el.hasClass("fancybox-lock")&&(!1!==this.fixPosition&&N("*").filter(function(){return"fixed"===N(this).css("position")&&!N(this).hasClass("fancybox-overlay")&&!N(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin"),this.scrollV=i.scrollTop(),this.scrollH=i.scrollLeft(),this.el.addClass("fancybox-lock"),i.scrollTop(this.scrollV).scrollLeft(this.scrollH)),this.open(e)}
1,onUpdate:function(){this.fixed||this.update()},afterClose:function(e){this.overlay&&!R.coming&&this.overlay.fadeOut(e.speedOut,N.proxy(this.close,this))}},R.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var t,n,i=R.current,r=i.title,o=e.type;if(N.isFunction(r)&&(r=r.call(i.element,i)),p(r)&&""!==N.trim(r)){switch(t=N('<div class="fancybox-title fancybox-title-'+o+'-wrap">'+r+"</div>"),o){case"inside":n=R.skin;break;case"outside":n=R.wrap;break;case"over":n=R.inner;break;default:n=R.skin,t.appendTo("body"),a&&t.width(t.width()),t.wrapInner('<span class="child"></span>'),R.current.margin[2]+=Math.abs(j(t.css("margin-bottom")))}t["top"===e.position?"prependTo":"appendTo"](n)}}},N.fn.fancybox=function(o){function e(e){var t,n,i=N(this).blur(),r=a;e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||i.is(".fancybox-wrap")||(t=o.groupAttr||"data-fancybox-group",(n=i.attr(t))||(t="rel",n=i.get(0)[t]),n&&""!==n&&"nofollow"!==n&&(r=(i=(i=l.length?N(l):s).filter("["+t+'="'+n+'"]')).index(this)),o.index=r,!1!==R.open(i,o)&&e.preventDefault())}var a,s=N(this),l=this.selector||"";return a=(o=o||{}).index||0,l&&!1!==o.live?u.undelegate(l,"click.fb-start").delegate(l+":not('.fancybox-item, .fancybox-nav')","click.fb-start",e):s.unbind("click.fb-start").bind("click.fb-start",e),this.filter("[data-fancybox-start=1]").trigger("click"),this},u.ready(function(){var e,t,n,i;N.scrollbarWidth===h&&(N.scrollbarWidth=function(){var e=N('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),t=e.children(),n=t.innerWidth()-t.height(99).innerWidth();return e.remove(),n}),N.support.fixedPosition===h&&(N.support.fixedPosition=(n=N('<div style="position:fixed;top:20px;"></div>').appendTo("body"),i=20===n[0].offsetTop||15===n[0].offsetTop,n.remove(),i)),N.extend(R.defaults,{scrollbarWidth:N.scrollbarWidth(),fixed:N.support.fixedPosition,parent:N("body")}),e=N(r).width(),o.addClass("fancybox-lock-test"),t=N(r).width(),o.removeClass("fancybox-lock-test"),N("<style type='text/css'>.fancybox-margin{margin-right:"+(t-e)+"px;}</style>").appendTo("head")})}(window,document,jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Chart=t()}(this,function(){"use strict";function Bo(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function e(e,t){return e(t={exports:{}},t.exports),t.exports}var c={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
1ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},u=e(function(e){var u={};for(var t in c)c.hasOwnProperty(t)&&(u[c[t]]=t);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var n in a)if(a.hasOwnProperty(n)){if(!("channels"in a[n]))throw new Error("missing channels property: "+n);if(!("labels"in a[n]))throw new Error("missing channel labels property: "+n);if(a[n].labels.length!==a[n].channels)throw new Error("channel and label counts mismatch: "+n);var i=a[n].channels,r=a[n].labels;delete a[n].channels,delete a[n].labels,Object.defineProperty(a[n],"channels",{value:i}),Object.defineProperty(a[n],"labels",{value:r})}a.rgb.hsl=function(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a;return s===a?t=0:i===s?t=(r-o)/l:r===s?t=2+(o-i)/l:o===s&&(t=4+(i-r)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},a.rgb.hsv=function(e){function t(e){return(c-e)/6/d+.5}var n,i,r,o,a,s=e[0]/255,l=e[1]/255,u=e[2]/255,c=Math.max(s,l,u),d=c-Math.min(s,l,u);return 0==d?o=a=0:(a=d/c,n=t(s),i=t(l),r=t(u),s===c?o=r-i:l===c?o=1/3+n-r:u===c&&(o=2/3+i-n),o<0?o+=1:1<o&&--o),[360*o,100*a,100*c]},a.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,i))),100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-i,1-r)))/(1-t)||0),100*((1-i-t)/(1-t)||0),100*((1-r-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=u[e];if(t)return t;var n,i,r,o=1/0;for(var a in c)if(c.hasOwnProperty(a)){var s=c[a],l=(i=e,r=s,Math.pow(i[0]-r[0],2)+Math.pow(i[1]-r[1],2)+Math.pow(i[2]-r[2],2));l<o&&(o=l,n=a)}return n},a.keyword.rgb=function(e){return c[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*(.4124*(t=.04045<t?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=.04045<n?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=.04045<i?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],i=t[1],r=t[2];return i/=100,r/=108.883,n=.008856<(n/=95.047)?Math.pow(n,1/3):7.787*n+16/116,[116*(i=.008856<i?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(r=.008856<r?Math.pow(r,1/3):7.787*r+16/116))]},a.hsl.rgb=function(e){var t,n,i,r,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0==s)return[o=255*l,o,o];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),r=[0,0,0];for(var u=0;u<3;u++)(i=a+1/3*-(u-1))<0&&i++,1<i&&i--,o=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t,r[u]=255*o;return r},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,i=e[2]/100,r=n,o=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,r*=o<=1?o:2-o,[t,100*(0===i?2*r/(o+r):2*n/(i+n)),100*((i+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,r=Math.floor(t)%6,o=t-Math.floor(t),a=255*i*(1-n),s=255*i*(1-n*o),l=255*i*(1-n*(1-o));switch(i*=255,r){case 0:return[i,l,a];case 1:return[s,i,a];case 2:return[a,i,l];case 3:return[a,s,i];case 4:return[l,a,i];case 5:return[i,a,s]}},a.hsv.hsl=function(e){var t,n,i,r=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return i=(2-o)*a,n=o*s,[r,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(i/=2)]},a.hwb.rgb=function(e){var t,n,i,r,o,a,s,l=e[0]/360,u=e[1]/100,c=e[2]/100,d=u+c;switch(1<d&&(u/=d,c/=d),i=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(i=1-i),r=u+i*((n=1-c)-u),t){default:case 6:case 0:o=n,a=r,s=u;break;case 1:o=r,a=n,s=u;break;case 2:o=u,a=n,s=r;break;case 3:o=u,a=r,s=n;break;case 4:o=r,a=u,s=n;break;case 5:o=n,a=u,s=r}return[255*o,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,i=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r))]},a.xyz.rgb=function(e){var t,n,i,r=e[0]/100,o=e[1]/100,a=e[2]/100;
1return n=-.9689*r+1.8758*o+.0415*a,i=.0557*r+-.204*o+1.057*a,t=.0031308<(t=3.2406*r+-1.5372*o+-.4986*a)?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=.0031308<n?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=.0031308<i?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],i=e[2];return n/=100,i/=108.883,t=.008856<(t/=95.047)?Math.pow(t,1/3):7.787*t+16/116,[116*(n=.008856<n?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(i=.008856<i?Math.pow(i,1/3):7.787*i+16/116))]},a.lab.xyz=function(e){var t,n,i,r=e[0];t=e[1]/500+(n=(r+16)/116),i=n-e[2]/200;var o=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(i,3);return n=.008856<o?o:(n-16/116)/7.787,t=.008856<a?a:(t-16/116)/7.787,i=.008856<s?s:(i-16/116)/7.787,[t*=95.047,n*=100,i*=108.883]},a.lab.lch=function(e){var t,n=e[0],i=e[1],r=e[2];return(t=360*Math.atan2(r,i)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(i*i+r*r),t]},a.lch.lab=function(e){var t,n=e[0],i=e[1];return t=e[2]/360*2*Math.PI,[n,i*Math.cos(t),i*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],r=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(r=Math.round(r/50)))return 30;var o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===r&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],i=e[2];return t===n&&n===i?t<8?16:248<t?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return 50<e&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(50<e));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(232<=e){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},a.rgb.hcg=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255,o=Math.max(Math.max(n,i),r),a=Math.min(Math.min(n,i),r),s=o-a;return t=s<=0?0:o===n?(i-r)/s%6:o===i?2+(r-n)/s:4+(n-i)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=1,r=0;return(i=n<.5?2*t*n:2*t*(1-n))<1&&(r=(n-.5*i)/(1-i)),[e[0],100*i,100*r]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=t*n,r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,i=e[2]/100;if(0==n)return[255*i,255*i,255*i];var r,o=[0,0,0],a=t%1*6,s=a%1,l=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return r=(1-n)*i,[255*(n*o[0]+r),255*(n*o[1]+r),255*(n*o[2]+r)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),i=0;return 0<n&&(i=t/n),[e[0],100*i,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return 0<n&&n<.5?i=t/(2*n):.5<=n&&n<1&&(i=t/(2*(1-n))),[e[0],100*i,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,i=n-t,r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});u.rgb,u.hsl,u.hsv,u.hwb,u.cmyk,u.xyz,u.lab,u.lch,u.hex,u.keyword,u.ansi16,u.ansi256,u.hcg,u.apple,u.gray;function s(e){var t=function(){for(var e={},t=Object.keys(u),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var i=n.pop(),r=Object.keys(u[i]),o=r.length,a=0;a<o;a++){var s=r[a],l=t[s];-1===l.distance&&(l.distance=t[i].distance+1,l.parent=i,n.unshift(s))}return t}function o(t,n){return function(e){return n(t(e))}}function l(e,t){for(var n=[t[e].parent,e],i=u[t[e].parent][e],r=t[e].parent;t[r].parent;)n.unshift(t[r].parent),i=o(u[t[r].parent][r],i),r=t[r].parent;return i.conversion=n,i}
1var r={};function a(t){function e(e){return null==e?e:(1<arguments.length&&(e=Array.prototype.slice.call(arguments)),t(e))}return"conversion"in t&&(e.conversion=t.conversion),e}function d(r){function e(e){if(null==e)return e;1<arguments.length&&(e=Array.prototype.slice.call(arguments));var t=r(e);if("object"==typeof t)for(var n=t.length,i=0;i<n;i++)t[i]=Math.round(t[i]);return t}return"conversion"in r&&(e.conversion=r.conversion),e}Object.keys(u).forEach(function(n){r[n]={},Object.defineProperty(r[n],"channels",{value:u[n].channels}),Object.defineProperty(r[n],"labels",{value:u[n].labels});var i=function(e){for(var t=s(e),n={},i=Object.keys(t),r=i.length,o=0;o<r;o++){var a=i[o];null!==t[a].parent&&(n[a]=l(a,t))}return n}(n);Object.keys(i).forEach(function(e){var t=i[e];r[n][e]=d(t),r[n][e].raw=a(t)})});var h=r,f={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},n={getRgba:i,getHsla:p,getRgb:function(e){var t=i(e);return t&&t.slice(0,3)},getHsl:function(e){var t=p(e);return t&&t.slice(0,3)},getHwb:g,getAlpha:function(e){var t=i(e);{if(t)return t[3];
vendor: 4,157 bytes, line 1
1if(t=p(e))return t[3];if(t=g(e))return t[3]}},hexString:function(e,t){t=void 0!==t&&3===e.length?t:e[3];return"#"+_(e[0])+_(e[1])+_(e[2])+(0<=t&&t<1?_(Math.round(255*t)):"")},rgbString:function(e,t){if(t<1||e[3]&&e[3]<1)return m(e,t);return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:m,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return v(e,t);var n=Math.round(e[0]/255*100),i=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return"rgb("+n+"%, "+i+"%, "+r+"%)"},percentaString:v,hslString:function(e,t){if(t<1||e[3]&&e[3]<1)return y(e,t);return"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:y,hwbString:function(e,t){void 0===t&&(t=void 0!==e[3]?e[3]:1);return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return t[e.slice(0,3)]}};function i(e){if(e){var t=[0,0,0],n=1,i=e.match(/^#([a-fA-F0-9]{3,4})$/i),r="";if(i){r=(i=i[1])[3];for(var o=0;o<t.length;o++)t[o]=parseInt(i[o]+i[o],16);r&&(n=Math.round(parseInt(r+r,16)/255*100)/100)}else if(i=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){r=i[2],i=i[1];for(o=0;o<t.length;o++)t[o]=parseInt(i.slice(2*o,2*o+2),16);r&&(n=Math.round(parseInt(r,16)/255*100)/100)}else if(i=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=parseInt(i[o+1]);n=parseFloat(i[4])}else if(i=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=Math.round(2.55*parseFloat(i[o+1]));n=parseFloat(i[4])}else if(i=e.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(t=f[i[1]]))return}for(o=0;o<t.length;o++)t[o]=b(t[o],0,255);return n=n||0==n?b(n,0,1):1,t[3]=n,t}}function p(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[b(parseInt(t[1]),0,360),b(parseFloat(t[2]),0,100),b(parseFloat(t[3]),0,100),b(isNaN(n)?1:n,0,1)]}}}function g(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[b(parseInt(t[1]),0,360),b(parseFloat(t[2]),0,100),b(parseFloat(t[3]),0,100),b(isNaN(n)?1:n,0,1)]}}}function m(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function v(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function y(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function b(e,t,n){return Math.min(Math.max(t,e),n)}function _(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var t={};for(var x in f)t[f[x]]=x;var w=function(e){return e instanceof w?e:this instanceof w?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=n.getRgba(e))?this.setValues("rgb",t):(t=n.getHsla(e))?this.setValues("hsl",t):(t=n.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new w(e);var t};w.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])}
vendor: 4,796 bytes, line 1
1,alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e=e&&((e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return n.hexString(this.values.rgb)},rgbString:function(){return n.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return n.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return n.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return n.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return n.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return n.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return n.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var i=e[n]/255;t[n]=i<=.03928?i/12.92:Math.pow((.055+i)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return n<t?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return 7.1<=t?"AAA":4.5<=t?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=e,i=void 0===t?.5:t,r=2*i-1,o=this.alpha()-n.alpha(),a=(1+(r*o==-1?r:(r+o)/(1+r*o)))/2,s=1-a;return this.rgb(a*this.red()+s*n.red(),a*this.green()+s*n.green(),a*this.blue()+s*n.blue()).alpha(this.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new w,i=this.values,r=n.values;for(var o in i)i.hasOwnProperty(o)&&(e=i[o],"[object Array]"===(t={}.toString.call(e))?r[o]=e.slice(0):"[object Number]"===t?r[o]=e:console.error("unexpected color value:",e));return n}},w.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},w.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},w.prototype.getValues=function(e){for(var t=this.values,n={},i=0;i<e.length;i++)n[e.charAt(i)]=t[e][i];return 1!==t.alpha&&(n.a=t.alpha),n},w.prototype.setValues=function(e,t){var n,i,r=this.values,o=this.spaces,a=this.maxes,s=1;if(this.valid=!0,"alpha"===e)s=t;else if(t.length)r[e]=t.slice(0,e.length),s=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)r[e][n]=t[e.charAt(n)];s=t.a}else if(void 0!==t[o[e][0]]){var l=o[e];for(n=0;n<e.length;n++)r[e][n]=t[l[n]];s=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===s?r.alpha:s)),"alpha"===e)return!1;for(n=0;n<e.length;n++)i=Math.max(0,Math.min(a[e][n],r[e][n])),r[e][n]=Math.round(i);for(var u in o)u!==e&&(r[u]=h[e][u](r[e]));return!0},w.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n
1),this)},w.prototype.setChannel=function(e,t,n){var i=this.values[e];return void 0===n?i[t]:(n===i[t]||(i[t]=n,this.setValues(e,i)),this)},"undefined"!=typeof window&&(window.Color=w);var k=w;function S(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var C,T={noop:function(){},uid:(C=0,function(){return C++}),isNullOrUndef:function(e){return null==e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return T.valueOrDefault(T.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,i){var r,o,a;if(T.isArray(e))if(o=e.length,i)for(r=o-1;0<=r;r--)t.call(n,e[r],r);else for(r=0;r<o;r++)t.call(n,e[r],r);else if(T.isObject(e))for(o=(a=Object.keys(e)).length,r=0;r<o;r++)t.call(n,e[a[r]],a[r])},arrayEquals:function(e,t){var n,i,r,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],o=t[n],r instanceof Array&&o instanceof Array){if(!T.arrayEquals(r,o))return!1}else if(r!==o)return!1;return!0},clone:function(e){if(T.isArray(e))return e.map(T.clone);if(T.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=T.clone(e[n[r]]);return t}return e},_merger:function(e,t,n,i){if(S(e)){var r=t[e],o=n[e];T.isObject(r)&&T.isObject(o)?T.merge(r,o,i):t[e]=T.clone(o)}},_mergerIf:function(e,t,n){if(S(e)){var i=t[e],r=n[e];T.isObject(i)&&T.isObject(r)?T.mergeIf(i,r):t.hasOwnProperty(e)||(t[e]=T.clone(r))}},merge:function(e,t,n){var i,r,o,a,s,l=T.isArray(t)?t:[t],u=l.length;if(!T.isObject(e))return e;for(i=(n=n||{}).merger||T._merger,r=0;r<u;++r)if(t=l[r],T.isObject(t))for(s=0,a=(o=Object.keys(t)).length;s<a;++s)i(o[s],e,t,n);return e},mergeIf:function(e,t){return T.merge(e,t,{merger:T._mergerIf})},extend:Object.assign||function(e){return T.merge(e,[].slice.call(arguments,1),{merger:function(e,t,n){t[e]=n[e]}})},inherits:function(e){function t(){this.constructor=i}var n=this,i=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return n.apply(this,arguments)};return t.prototype=n.prototype,i.prototype=new t,i.extend=T.inherits,e&&T.extend(i.prototype,e),i.__super__=n.prototype,i},_deprecated:function(e,t,n,i){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+i+'" instead')}},D=T;T.callCallback=T.callback,T.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},T.getValueOrDefault=T.valueOrDefault,T.getValueAtIndexOrDefault=T.valueAtIndexOrDefault;var M={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-(--e*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return--e*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return 1<=e?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1- --e*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n=n||.3,t=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*--e)*Math.sin((e-t)*(2*Math.PI)/n)))},easeOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n=n||.3,t=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:2==(e/=.5)?1:(n=n||.45,t=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),e<1?i*Math.pow(2,10*--e)*Math.sin((e-t)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*--e)*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){return e*e*(2.70158*e-1.70158)},easeOutBack:function(e){return--e*e*(2.70158*e+1.70158)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-M.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*M.easeInBounce(2*e):.5*M.easeOutBounce(2*e-1)+.5}},O={effects:M};
vendor: 4,552 bytes, line 1
1D.easingEffects=M;var E=Math.PI,A=E/180,P=2*E,I=E/2,N=E/4,L=2*E/3,j={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,i,r,o){if(o){var a=Math.min(o,r/2,i/2),s=t+a,l=n+a,u=t+i-a,c=n+r-a;e.moveTo(t,l),s<u&&l<c?(e.arc(s,l,a,-E,-I),e.arc(u,l,a,-I,0),e.arc(u,c,a,0,I),e.arc(s,c,a,I,E)):s<u?(e.moveTo(s,n),e.arc(u,l,a,-I,I),e.arc(s,l,a,I,E+I)):l<c?(e.arc(s,l,a,-E,0),e.arc(s,c,a,0,E)):e.arc(s,l,a,-E,E),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,i,r)},drawPoint:function(e,t,n,i,r,o){var a,s,l,u,c,d=(o||0)*A;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(a=t.toString())||"[object HTMLCanvasElement]"===a))return e.save(),e.translate(i,r),e.rotate(d),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(i,r,n,0,P),e.closePath();break;case"triangle":e.moveTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=L,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=L,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),e.closePath();break;case"rectRounded":u=n-(c=.516*n),s=Math.cos(d+N)*u,l=Math.sin(d+N)*u,e.arc(i-s,r-l,c,d-E,d-I),e.arc(i+l,r-s,c,d-I,d),e.arc(i+s,r+l,c,d,d+I),e.arc(i-l,r+s,c,d+I,d+E),e.closePath();break;case"rect":if(!o){u=Math.SQRT1_2*n,e.rect(i-u,r-u,2*u,2*u);break}d+=N;case"rectRot":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+l,r-s),e.lineTo(i+s,r+l),e.lineTo(i-l,r+s),e.closePath();break;case"crossRot":d+=N;case"cross":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s);break;case"star":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s),d+=N,s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s);break;case"line":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l);break;case"dash":e.moveTo(i,r),e.lineTo(i+Math.cos(d)*n,r+Math.sin(d)*n)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){return e.x>t.left-1e-6&&e.x<t.right+1e-6&&e.y>t.top-1e-6&&e.y<t.bottom+1e-6},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,i){var r=n.steppedLine;if(r){if("middle"===r){var o=(t.x+n.x)/2;e.lineTo(o,i?n.y:t.y),e.lineTo(o,i?t.y:n.y)}else"after"===r&&!i||"after"!==r&&i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(i?t.controlPointPreviousX:t.controlPointNextX,i?t.controlPointPreviousY:t.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},F=j;D.clear=j.clear,D.drawRoundedRectangle=function(e){e.beginPath(),j.roundedRect.apply(j,arguments)};var R={_set:function(e,t){return D.merge(this[e]||(this[e]={}),t)}};R._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var W=R,H=D.valueOrDefault;var B={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,i,r;return D.isObject(e)?(t=+e.top||0,n=+e.right||0,i=+e.bottom||0,r=+e.left||0):t=n=i=r=+e||0,{top:t,right:n,bottom:i,left:r,height:t+i,width:r+n}},_parseFont:function(e){var t,n=W.global,i=H(e.fontSize,n.defaultFontSize),r={family:H(e.fontFamily,n.defaultFontFamily),lineHeight:D.options.toLineHeight(H(e.lineHeight,n.defaultLineHeight),i),size:i,style:H(e.fontStyle,n.defaultFontStyle),weight:null,string:""};return r.string=!(t=r)||D.isNullOrUndef(t.size)||D.isNullOrUndef(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family,r},resolve:function(e,t,n,i){var r,o,a,s=!0;for(r=0,o=e.length;r<o;++r)if(void 0!==(a=e[r])&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&D.isArray(a)&&(a=a[n],s=!1),void 0!==a))return i&&!s&&(i.cacheable=!1),a}},V={_factorize:function(e){var t,n=[],i=Math.sqrt(e);for(t=1;t<i;t++)e%t==0&&(n.push(t),n.push(e/t));return i===(0|i)&&n.push(i),n.sort(function(e,t){return e-t}).pop(),n},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t}},z=V;D.log10=V.log10;var Y=D,q=O,U=F,$=B,G=z,Q={getRtlAdapter:function(e,t,n){return e?(i=t,r=n,{x:function(e){return i+i+r-e},setWidth:function(e){r=e}
1,textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}};var i,r},overrideTextDirection:function(e,t){var n,i;"ltr"!==t&&"rtl"!==t||(i=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};Y.easing=q,Y.canvas=U,Y.options=$,Y.math=G,Y.rtl=Q;function K(e){Y.extend(this,e),this.initialize.apply(this,arguments)}Y.extend(K.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){return this._view||(this._view=Y.extend({},this._model)),this._start={},this},transition:function(e){var t=this._model,n=this._start,i=this._view;return t&&1!==e?(i=i||(this._view={}),function(e,t,n,i){var r,o,a,s,l,u,c,d,h,f=Object.keys(n);for(r=0,o=f.length;r<o;++r)if(u=n[a=f[r]],t.hasOwnProperty(a)||(t[a]=u),(s=t[a])!==u&&"_"!==a[0]){if
1(e.hasOwnProperty(a)||(e[a]=s),(c=typeof u)==typeof(l=e[a]))if("string"==c){if((d=k(l)).valid&&(h=k(u)).valid){t[a]=h.mix(d,i).rgbString();continue}}else if(Y.isFinite(l)&&Y.isFinite(u)){t[a]=l+(u-l)*i;continue}t[a]=u}}(n=n||(this._start={}),i,t,e)):(this._view=Y.extend({},t),this._start=null),this},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return Y.isNumber(this._model.x)&&Y.isNumber(this._model.y)}}),K.extend=Y.inherits;var X=K,Z=X.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),J=Z;Object.defineProperty(Z.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(Z.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),W._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:Y.noop,onComplete:Y.noop}});var ee={animations:[],request:null,addAnimation:function(e,t,n,i){var r,o,a=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,i||(e.animating=!0),r=0,o=a.length;r<o;++r)if(a[r].chart===e)return void(a[r]=t);a.push(t),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var e=Y.findIndex(this.animations,function(e){return e.chart===t});-1!==e&&(this.animations.splice(e,1),t.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=Y.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){this.advance(),0<this.animations.length&&this.requestAnimationFrame()},advance:function(){for(var e,t,n,i,r=this.animations,o=0;o<r.length;)t=(e=r[o]).chart,n=e.numSteps,i=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(i,n),Y.callback(e.render,[t,e],t),Y.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(Y.callback(e.onAnimationComplete,[e],t),t.animating=!1,r.splice(o,1)):++o}},te=Y.options.resolve,ne=["push","pop","shift","splice","unshift"];function ie(t,e){var n=t._chartjs;if(n){var i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),0<i.length||(ne.forEach(function(e){delete t[e]}),delete t._chartjs)}}function re(e,t){this.initialize(e,t)}Y.extend(re.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){this.chart=e,this.index=t,this.linkScales(),this.addElements(),this._type=this.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this.getMeta(),t=this.chart,n=t.scales,i=this.getDataset(),r=t.options.scales;null!==e.xAxisID&&e.xAxisID in n&&!i.xAxisID||(e.xAxisID=i.xAxisID||r.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in n&&!i.yAxisID||(e.yAxisID=i.yAxisID||r.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&ie(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),i=this.getDataset().data||[],r=n.data;for(e=0,t=i.length;e<t;++e)r[e]=r[e]||this.createMetaData(e);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var r,e,t=this.getDataset(),n=t.data||(t.data=[]);this._data!==n&&(this._data&&ie(this._data,this),n&&Object.isExtensible(n)&&(e=this,(r=n)._chartjs?r._chartjs.listeners.push(e):(Object.defineProperty(r,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),ne.forEach(function(e){var n="onData"+e.charAt(0).toUpperCase()+e.slice(1),i=r[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),e=i.apply(this,t);return Y.each(r._chartjs.listeners,function(e){"function"==typeof e[n]&&e[n].apply(e,t)}),e}}
vendor: 6,163 bytes, line 1
1)}))),this._data=n),this.resyncElements()},_configure:function(){this._config=Y.merge(Object.create(null),[this.chart.options.datasets[this._type],this.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&Y._merger(e,t,n)}})},_update:function(e){this._configure(),this._cachedDataOpts=null,this.update(e)},update:Y.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],i=n.length,r=0;r<i;++r)n[r].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,i=0;for(e.dataset&&e.dataset.draw();i<n;++i)t[i].draw()},getStyle:function(e){var t,n=this.getMeta(),i=n.dataset;return this._configure(),!1!==(t=i&&void 0===e?this._resolveDatasetElementOptions(i||{}):(e=e||0,this._resolveDataElementOptions(n.data[e]||{},e))).fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,i,r,o,a=this.chart,s=this._config,l=e.custom||{},u=a.options.elements[this.datasetElementType.prototype._type]||{},c=this._datasetElementOptions,d={},h={chart:a,dataset:this.getDataset(),datasetIndex:this.index,hover:t};for(n=0,i=c.length;n<i;++n)r=c[n],o=t?"hover"+r.charAt(0).toUpperCase()+r.slice(1):r,d[r]=te([l[o],s[o],u[o]],h);return d},_resolveDataElementOptions:function(e,t){var n=e&&e.custom,i=this._cachedDataOpts;if(i&&!n)return i;var r,o,a,s,l=this.chart,u=this._config,c=l.options.elements[this.dataElementType.prototype._type]||{},d=this._dataElementOptions,h={},f={chart:l,dataIndex:t,dataset:this.getDataset(),datasetIndex:this.index},p={cacheable:!n};if(n=n||{},Y.isArray(d))for(o=0,a=d.length;o<a;++o)h[s=d[o]]=te([n[s],u[s],c[s]],f,t,p);else for(o=0,a=(r=Object.keys(d)).length;o<a;++o)h[s=r[o]]=te([n[s],u[d[s]],u[s],c[s]],f,t,p);return p.cacheable&&(this._cachedDataOpts=Object.freeze(h)),h},removeHoverStyle:function(e){Y.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,i=e.custom||{},r=e._model,o=Y.getHoverColor;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth},r.backgroundColor=te([i.hoverBackgroundColor,t.hoverBackgroundColor,o(r.backgroundColor)],void 0,n),r.borderColor=te([i.hoverBorderColor,t.hoverBorderColor,o(r.borderColor)],void 0,n),r.borderWidth=te([i.hoverBorderWidth,t.hoverBorderWidth,r.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,i,r,o,a=this.getMeta().dataset,s={};if(a){for(o=a._model,r=this._resolveDatasetElementOptions(a,!0),e=0,t=(i=Object.keys(r)).length;e<t;++e)s[n=i[e]]=o[n],o[n]=r[n];a.$previousStyle=s}},resyncElements:function(){var e=this.getMeta(),t=this.getDataset().data,n=e.data.length,i=t.length;i<n?e.data.splice(i,n-i):n<i&&this.insertElements(n,i-n)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),re.extend=Y.inherits;var oe=re,ae=2*Math.PI;function se(e,t){var n=t.startAngle,i=t.endAngle,r=t.pixelMargin,o=r/t.outerRadius,a=t.x,s=t.y;e.beginPath(),e.arc(a,s,t.outerRadius,n-o,i+o),t.innerRadius>r?(o=r/t.innerRadius,e.arc(a,s,t.innerRadius-r,i+o,n-o,!0)):e.arc(a,s,r,i+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function le(e,t,n){var i="inner"===t.borderAlign;i?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,t,n,i){var r,o=n.endAngle;for(i&&(n.endAngle=n.startAngle+ae,se(e,n),n.endAngle=o,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=ae,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+ae,n.startAngle,!0),r=0;r<n.fullCircles;++r)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+ae),r=0;r<n.fullCircles;++r)e.stroke()}(e,t,n,i),i&&se(e,n),e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.endAngle),e.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),e.closePath(),e.stroke()}W._set("global",{elements:{arc:{backgroundColor:W.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var ue=X.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var i=Y.getAngleFromPoint(n,{x:e,y:t}),r=i.angle,o=i.distance,a=n.startAngle,s=n.endAngle;s<a;)s+=ae;for(;s<r;)r-=ae;for(;r<a;)r+=ae;var l=a<=r&&r<=s,u=o>=n.innerRadius&&o<=n.outerRadius;return l&&u}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,i="inner"===n.borderAlign?.33:0,r={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-i,0),pixelMargin:i,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/ae)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,r.fullCircles){for(r.endAngle=r.startAngle+ae,t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),e=0;e<r.fullCircles;++e)t.fill();r.endAngle=r.startAngle+n.circumference%ae}t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&le(t,n,r),t.restore(
1)}}),ce=Y.valueOrDefault,de=W.global.defaultColor;W._set("global",{elements:{line:{tension:.4,backgroundColor:de,borderWidth:3,borderColor:de,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var he=X.extend({_type:"line",draw:function(){var e,t,n,i=this._view,r=this._chart.ctx,o=i.spanGaps,a=this._children.slice(),s=W.global,l=s.elements.line,u=-1,c=this._loop;if(a.length){if(this._loop){for(e=0;e<a.length;++e)if(t=Y.previousItem(a,e),!a[e]._view.skip&&t._view.skip){a=a.slice(e).concat(a.slice(0,e)),c=o;break}c&&a.push(a[0])}for(r.save(),r.lineCap=i.borderCapStyle||l.borderCapStyle,r.setLineDash&&r.setLineDash(i.borderDash||l.borderDash),r.lineDashOffset=ce(i.borderDashOffset,l.borderDashOffset),r.lineJoin=i.borderJoinStyle||l.borderJoinStyle,r.lineWidth=ce(i.borderWidth,l.borderWidth),r.strokeStyle=i.borderColor||s.defaultColor,r.beginPath(),(n=a[0]._view).skip||(r.moveTo(n.x,n.y),u=0),e=1;e<a.length;++e)n=a[e]._view,t=-1===u?Y.previousItem(a,e):a[u],n.skip||(u!==e-1&&!o||-1===u?r.moveTo(n.x,n.y):Y.canvas.lineTo(r,t._view,n),u=e);c&&r.closePath(),r.stroke(),r.restore()}}}),fe=Y.valueOrDefault,pe=W.global.defaultColor;function ge(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}W._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:pe,borderColor:pe,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var me=X.extend({_type:"point",inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:ge,inXRange:ge,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,i=t.pointStyle,r=t.rotation,o=t.radius,a=t.x,s=t.y,l=W.global,u=l.defaultColor;t.skip||void 0!==e&&!Y.canvas._isPointInArea(t,e)||(n.strokeStyle=t.borderColor||u,n.lineWidth=fe(t.borderWidth,l.elements.point.borderWidth),n.fillStyle=t.backgroundColor||u,Y.canvas.drawPoint(n,i,o,a,s,r))}}),ve=W.global.defaultColor;function ye(e){return e&&void 0!==e.width}function be(e){var t,n,i,r,o;return r=ye(e)?(o=e.width/2,t=e.x-o,n=e.x+o,i=Math.min(e.y,e.base),Math.max(e.y,e.base)):(o=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),i=e.y-o,e.y+o),{left:t,top:i,right:n,bottom:r}}function _e(e,t,n){return e===t?n:e===n?t:e}function xe(e,t,n){var i,r,o,a,s,l,u,c=e.borderWidth,d=(r=(i=e).borderSkipped,o={},r&&(i.horizontal?i.base>i.x&&(r=_e(r,"left","right")):i.base<i.y&&(r=_e(r,"bottom","top")),o[r]=!0),o);return Y.isObject(c)?(a=+c.top||0,s=+c.right||0,l=+c.bottom||0,u=+c.left||0):a=s=l=u=+c||0,{t:d.top||a<0?0:n<a?n:a,r:d.right||s<0?0:t<s?t:s,b:d.bottom||l<0?0:n<l?n:l,l:d.left||u<0?0:t<u?t:u}}function we(e,t,n){var i=null===t,r=null===n,o=!(!e||i&&r)&&be(e);return o&&(i||t>=o.left&&t<=o.right)&&(r||n>=o.top&&n<=o.bottom)}W._set("global",{elements:{rectangle:{backgroundColor:ve,borderColor:ve,borderSkipped:"bottom",borderWidth:0}}});var ke=X.extend({_type:"rectangle",draw:function(){var e,t,n,i,r,o=this._chart.ctx,a=this._view,s=(t=be(e=a),n=t.right-t.left,i=t.bottom-t.top,r=xe(e,n/2,i/2),{outer:{x:t.left,y:t.top,w:n,h:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b}}),l=s.outer,u=s.inner;o.fillStyle=a.backgroundColor,o.fillRect(l.x,l.y,l.w,l.h),l.w===u.w&&l.h===u.h||(o.save(),o.beginPath(),o.rect(l.x,l.y,l.w,l.h),o.clip(),o.fillStyle=a.borderColor,o.rect(u.x,u.y,u.w,u.h),o.fill("evenodd"),o.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return we(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return ye(n)?we(n,e,null):we(n,null,t)},inXRange:function(e){return we(this._view,e,null)},inYRange:function(e){return we(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return t=ye(n)?(e=n.x,(n.y+n.base)/2):(e=(n.x+n.base)/2,n.y),{x:e,y:t}},getArea:function(){var e=this._view;return ye(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Se={},Ce=ue,Te=he,De=me,Me=ke;Se.Arc=Ce,Se.Line=Te,Se.Point=De,Se.Rectangle=Me;var Oe=Y._deprecated,Ee=Y.valueOrDefault;function Ae(e,t,n){var i,r,o=n.barThickness,a=t.stackCount,s=t.pixels[e],l=Y.isNullOrUndef(o)?function(e,t){var n,i,r,o,a=e._length;for(r=1,o=t.length;r<o;++r)a=Math.min(a,Math.abs(t[r]-t[r-1]));for(r=0,o=e.getTicks().length;r<o;++r)i=e.getPixelForTick(r),a=0<r?Math.min(a,Math.abs(i-n)):a,n=i;return a}(t.scale,t.pixels):-1;return r=Y.isNullOrUndef(o)?(i=l*n.categoryPercentage,n.barPercentage):(i=o*a,1),{chunk:i/a,ratio:r,start:s-i/2}}W._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),W._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Pe=oe.extend({dataElementType:Se.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t;oe.prototype.initialize.apply(this,arguments),(e=this.getMeta()).stack=this.getDataset().stack,e.bar=!0,t=this._getIndexScale().options,Oe("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Oe("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Oe("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Oe("bar chart",this._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Oe("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=i.length;t<n;++t)this.updateElement(i[t],t,e)},updateElement:function(e,t,n){var i=this.getMeta(),r=this.getDataset(),o=this._resolveDataElementOptions(e,t);e._xScale=this.getScaleForId(i.xAxisID),e._yScale=this.getScaleForId(i.yAxisID),e._datasetIndex=this.index,e._index=t,e._model={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderSkipped:o.borderSkipped,borderWidth:o.borderWidth,datasetLabel:r.label,label:this.chart.data.labels[t]},Y.isArray(r.data[t])&&(e._model.borderSkipped=null),this._updateElementGeometry(e,t,n,o),e.pivot()},_updateElementGeometry:function(e,t,n,i){var r=e._model,o=this._getValueScale(),a=o.getBasePixel(),s=o.isHorizontal(),l=this._ruler||this.getRuler(),u=this.calculateBarValuePixels(this.index,t,i),c=this.calculateBarIndexPixels(this.index,t,l,i);r.horizontal=s,r.base=n?a:u.base,r.x=s?n?a:u.head:c.center,r.y=s?c.center:n?a:u.head,r.height=s?c.size:void 0,r.width=s?void 0:c.size},_getStacks:function(e){var t,n,i=this._getIndexScale(),r=i._getMatchingVisibleMetas(this._type),o=i.options.stacked,a=r.length,s=[];for(t=0;t<a&&(n=r[t],(!1===o||-1===s.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&s.push(n.stack),n.index!==e);++t);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),i=void 0!==t?n.indexOf(t):-1;return-1===i?n.length-1:i},getRuler:function(){var e,t,n=this._getIndexScale(),i=[];for(e=0,t=this.getMeta().data.length;e<t;++e)i.push(n.getPixelForValue(null,e,this.index));return{pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this.getStackCount(),scale:n}},calculateBarValuePixels:function(e,t,n){var i,r,o,a,s,l,u,c=this.chart,d=this._getValueScale(),h=d.isHorizontal(),f=c.data.datasets,p=d._getMatchingVisibleMetas(this._type),g=d._parseValue(f[e].data[t]),m=n.minBarLength,v=d.options.stacked,y=this.getMeta().stack,b=void 0===g.start?0:0<=g.max&&0<=g.min?g.min:g.max,_=void 0===g.start?g.end:0<=g.max&&0<=g.min?g.max-g.min:g.min-g.max,x=p.length;if(v||void 0===v&&void 0!==y)for(i=0;i<x&&(r=p[i]).index!==e;++i)r.stack===y&&(o=void 0===(u=d._parseValue(f[r.index].data[t])).start?u.end:0<=u.min&&0<=u.max?u.max:u.min,(g.min<0&&o<0||0<=g.max&&0<o)&&(b+=o));return a=d.getPixelForValue(b),l=(s=d.getPixelForValue(b+_))-a,void 0!==m&&Math.abs(l)<m&&(l=m,s=0<=_&&!h||_<0&&h?a-m:a+m),{size:l,base:a,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,i){var r,o,a,s,l,u,c,d,h,f="flex"===i.barThickness?(r=t,a=i,l=(o=n).pixels,u=l[r],c=0<r?l[r-1]:null,d=r<l.length-1?l[r+1]:null,h=a.categoryPercentage,null===c&&(c=u-(null===d?o.end-o.start:d-u)),null===d&&(d=u+u-c),s=u-(u-Math.min(c,d))/2*h,{chunk:Math.abs(d-c)/2*h/o.stackCount,ratio:a.barPercentage,start:s}):Ae(t,n,i),p=this.getStackIndex(e,this.getMeta().stack),g=f.start+f.chunk*p+f.chunk/2,m=Math.min(Ee(i.maxBarThickness,1/0),f.chunk*f.ratio);return{base:g-m/2,head:g+m/2,center:g,size:m}},draw:function(){var e=this.chart,t=this._getValueScale(),n=this.getMeta().data,i=this.getDataset(),r=n.length,o=0;for(Y.canvas.clipArea(e.ctx,e.chartArea);o<r;++o){var a=t._parseValue(i.data[o]);isNaN(a.min)||isNaN(a.max)||n[o].draw()}Y.canvas.unclipArea(e.ctx)},_resolveDataElementOptions:function(){var e=Y.extend({},oe.prototype._resolveDataElementOptions.apply(this,arguments)),t=this._getIndexScale().options,n=this._getValueScale().options;return e.barPercentage=Ee(t.barPercentage,e.barPercentage),e.barThickness=Ee(t.barThickness,e.barThickness),e.categoryPercentage=Ee(t.categoryPercentage,e.categoryPercentage),e.maxBarThickness=Ee(t.maxBarThickness,e.maxBarThickness),e.minBarLength=Ee(n.minBarLength,e.minBarLength),e}}),Ie=Y.valueOrDefault,Ne=Y.options.resolve;W._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",i=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+i.r+")"}}}});var Le=oe.extend({dataElementType:Se.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroun
1dColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(n){var i=this,e=i.getMeta().data;Y.each(e,function(e,t){i.updateElement(e,t,n)})},updateElement:function(e,t,n){var i=this.getMeta(),r=e.custom||{},o=this.getScaleForId(i.xAxisID),a=this.getScaleForId(i.yAxisID),s=this._resolveDataElementOptions(e,t),l=this.getDataset().data[t],u=this.index,c=n?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof l?l:NaN,t,u),d=n?a.getBasePixel():a.getPixelForValue(l,t,u);e._xScale=o,e._yScale=a,e._options=s,e._datasetIndex=u,e._index=t,e._model={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth,hitRadius:s.hitRadius,pointStyle:s.pointStyle,rotation:s.rotation,radius:n?0:s.radius,skip:r.skip||isNaN(c)||isNaN(d),x:c,y:d},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Ie(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Ie(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Ie(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this.chart,i=this.getDataset(),r=e.custom||{},o=i.data[t]||{},a=oe.prototype._resolveDataElementOptions.apply(this,arguments),s={chart:n,dataIndex:t,dataset:i,datasetIndex:this.index};return this._cachedDataOpts===a&&(a=Y.extend({},a)),a.radius=Ne([r.radius,o.r,this._config.radius,n.options.elements.point.radius],s,t),a}}),je=Y.valueOrDefault,Fe=Math.PI,Re=2*Fe,We=Fe/2;W._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),o=e.data,a=o.datasets,s=o.labels;if(r.setAttribute("class",e.id+"-legend"),a.length)for(n=a[t=0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return r.outerHTML},legend:{labels:{generateLabels:function(r){var o=r.data;return o.labels.length&&o.datasets.length?o.labels.map(function(e,t){var n=r.getDatasetMeta(0),i=n.controller.getStyle(t);return{text:e,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(o.datasets[0].data[t])||n.data[t].hidden,index:t}}):[]}},onClick:function(e,t){var n,i,r,o=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(r=a.getDatasetMeta(n)).data[o]&&(r.data[o].hidden=!r.data[o].hidden);a.update()}},cutoutPercentage:50,rotation:-We,circumference:Re,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],i=": "+t.datasets[e.datasetIndex].data[e.index];return Y.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}});var He=oe.extend({dataElementType:Se.Arc,linkScales:Y.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,i,r,o=this,a=o.chart,s=a.chartArea,l=a.options,u=1,c=1,d=0,h=0,f=o.getMeta(),p=f.data,g=l.cutoutPercentage/100||0,m=l.circumference,v=o._getRingWeight(o.index);if(m<Re){var y=l.rotation%Re,b=(y+=Fe<=y?-Re:y<-Fe?Re:0)+m,_=Math.cos(y),x=Math.sin(y),w=Math.cos(b),k=Math.sin(b),S=y<=0&&0<=b||Re<=b,C=y<=We&&We<=b||Re+We<=b,T=y<=-We&&-We<=b||Fe+We<=b,D=y===-Fe||Fe<=b?-1:Math.min(_,_*g,w,w*g),M=T?-1:Math.min(x,x*g,k,k*g),O=S?1:Math.max(_,_*g,w,w*g),E=C?1:Math.max(x,x*g,k,k*g);u=(O-D)/2,c=(E-M)/2,d=-(O+D)/2,h=-(E+M)/2}for(i=0,r=p.length;i<r;++i)p[i]._options=o._resolveDataElementOptions(p[i],i);for(a.borderWidth=o.getMaxBorderWidth(),t=(s.right-s.left-a.borderWidth)/u,n=(s.bottom-s.top-a.borderWidth)/c,a.outerRadius=Math.max(Math.min(t,n)/2,0),a.innerRadius=Math.max(a.outerRadius*g,0),a.radiusLength=(a.outerRadius-a.innerRadius)/(o._getVisibleDatasetWeightTotal()||1),a.offsetX=d*a.outerRadius,a.offsetY=h*a.outerRadius,f.total=o.calculateTotal(),o.outerRadius=a.outerRadius-a.radiusLength*o._getRingWeightOffset(o.index),o.innerRadius=Math.max(o.outerRadius-a.radiusLength*v,0),i=0,r=p.length;i<r;++i)o.updateElement(p[i],i,e)},updateElement:function(e,t,n){var i=this.chart,r=i.chartArea,o=i.options,a=o.animation,s=(r.left+r.right)/2,l=(r.top+r.bottom)/2,u=o.rotation,c=o.rotation,d=this.getDataset(),h=n&&a.animateRotate||e.hidden?0:this.calculateCircumference(d.data[t])*(o.circumference/Re),f=n&&a.animateScale?0:this.innerRadius,p=n&&a.animateScale?0:this.outerRadius,g=e._options||{};Y.extend(e,{_datasetIndex:this.index,_index:t,_model:{backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,borderAlign:g.borderAlign,x:s+i.offsetX,y:l+i.offsetY,startAngle:u,endAngle:c,circumference:h,outerRadius:p,innerRadius:f,label:Y.valueAtIndexOrDefault(d.label,t,i.data.labels[t])}});var m=e._model;n&&a.animateRotate||(m.startAngle=0===t?o.rotation:this.getMeta().data[t-1]._model.endAngle,m.endAngle=m.startAngle+m.circumference),e.pivot()},calculateTotal:function(){var n,i=this.getDataset(),e=this.getMeta(),r=0;return Y.each(e.data,function(e,t){n=i.data[t],isNaN(n)||e.hidden||(r+=Math.abs(n))}),r},calculateCircumference:function(e){var t=this.getMeta().total;return 0<t&&!isNaN(e)?Re*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,i,r,o,a,s,l,u=0,c=this.chart;if(!e)for(t=0,n=c.data.datasets.length;t<n;++t)if(c.isDatasetVisible(t)){e=(i=c.getDatasetMeta(t)).data,t!==this.index&&(o=i.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)r=e[t],"inner"!==(a=o?(o._configure(),o._resolveDataElementOptions(r,t)):r._options).borderAlign&&(u=(u=u<(s=a.borderWidth)?s:u)<(l=a.hoverBorderWidth)?l:u);return u},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth}
vendor: 1,628 bytes, line 1
1,t.backgroundColor=je(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=je(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=je(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(je(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});W._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),W._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var Be=Pe.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Ve=Y.valueOrDefault,ze=Y.options.resolve,Ye=Y.canvas._isPointInArea;function qe(e,t){var n=e&&e.options.ticks||{},i=n.reverse,r=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:i?o:r,end:i?r:o}}W._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var Ue=oe.extend({datasetElementType:Se.Line,dataElementType:Se.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
1dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,n,i=this,r=i.getMeta(),o=r.dataset,a=r.data||[],s=i.chart.options,l=i._config,u=i._showLine=Ve(l.showLine,s.showLines);for(i._xScale=i.getScaleForId(r.xAxisID),i._yScale=i.getScaleForId(r.yAxisID),u&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),o._scale=i._yScale,o._datasetIndex=i.index,o._children=a,o._model=i._resolveDatasetElementOptions(o),o.pivot()),t=0,n=a.length;t<n;++t)i.updateElement(a[t],t,e);for(u&&0!==o._model.tension&&i.updateBezierControlPoints(),t=0,n=a.length;t<n;++t)a[t].pivot()},updateElement:function(e,t,n){var i,r,o=this.getMeta(),a=e.custom||{},s=this.getDataset(),l=this.index,u=s.data[t],c=this._xScale,d=this._yScale,h=o.dataset._model,f=this._resolveDataElementOptions(e,t);i=c.getPixelForValue("object"==typeof u?u:NaN,t,l),r=n?d.getBasePixel():this.calculatePointY(u,t,l),e._xScale=c,e._yScale=d,e._options=f,e._datasetIndex=l,e._index=t,e._model={x:i,y:r,skip:a.skip||isNaN(i)||isNaN(r),radius:f.radius,pointStyle:f.pointStyle,rotation:f.rotation,backgroundColor:f.backgroundColor,borderColor:f.borderColor,borderWidth:f.borderWidth,tension:Ve(a.tension,h?h.tension:0),steppedLine:!!h&&h.steppedLine,hitRadius:f.hitRadius}},_resolveDatasetElementOptions:function(e){var t,n,i,r,o,a,s,l,u,c,d,h=this._config,f=e.custom||{},p=this.chart.options,g=p.elements.line,m=oe.prototype._resolveDatasetElementOptions.apply(this,arguments);return m.spanGaps=Ve(h.spanGaps,p.spanGaps),m.tension=Ve(h.lineTension,g.tension),m.steppedLine=ze([f.steppedLine,h.steppedLine,g.stepped]),m.clip=(t=Ve(h.clip,(a=this._xScale,s=this._yScale,l=m.borderWidth,c=qe(a,u=l/2),{top:(d=qe(s,u)).end,right:c.end,bottom:d.start,left:c.start})),Y.isObject(t)?(n=t.top,i=t.right,r=t.bottom,o=t.left):n=i=r=o=t,{top:n,right:i,bottom:r,left:o}),m},calculatePointY:function(e,t,n){var i,r,o,a,s,l,u,c=this.chart,d=this._yScale,h=0,f=0;if(d.options.stacked){for(s=+d.getRightValue(e),u=(l=c._getSortedVisibleDatasetMetas()).length,i=0;i<u&&(o=l[i]).index!==n;++i)r=c.data.datasets[o.index],"line"===o.type&&o.yAxisID===d.id&&((a=+d.getRightValue(r.data[t]))<0?f+=a||0:h+=a||0);return s<0?d.getPixelForValue(f+s):d.getPixelForValue(h+s)}return d.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,i,r=this.chart,o=this.getMeta(),a=o.dataset._model,s=r.chartArea,l=o.data||[];function u(e,t,n){return Math.max(Math.min(e,n),t)}if(a.spanGaps&&(l=l.filter(function(e){return!e._model.skip})),"monotone"===a.cubicInterpolationMode)Y.splineCurveMonotone(l);else for(e=0,t=l.length;e<t;++e)n=l[e]._model,i=Y.splineCurve(Y.previousItem(l,e)._model,n,Y.nextItem(l,e)._model,a.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(r.options.elements.line.capBezierPoints)for(e=0,t=l.length;e<t;++e)n=l[e]._model,Ye(n,s)&&(0<e&&Ye(l[e-1]._model,s)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=u(n.controlPointPreviousY,s.top,s.bottom)),e<l.length-1&&Ye(l[e+1]._model,s)&&(n.controlPointNextX=u(n.controlPointNextX,s.left,s.right),n.controlPointNextY=u(n.controlPointNextY,s.top,s.bottom)))},draw:function(){var e,t=this.chart,n=this.getMeta(),i=n.data||[],r=t.chartArea,o=t.canvas,a=0,s=i.length;for(this._showLine&&(e=n.dataset._model.clip,Y.canvas.clipArea(t.ctx,{left:!1===e.left?0:r.left-e.left,right:!1===e.right?o.width:r.right+e.right,top:!1===e.top?0:r.top-e.top,bottom:!1===e.bottom?o.height:r.bottom+e.bottom}),n.dataset.draw(),Y.canvas.unclipArea(t.ctx));a<s;++a)i[a].draw(r)},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius}
1,t.backgroundColor=Ve(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Ve(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Ve(n.hoverBorderWidth,n.borderWidth),t.radius=Ve(n.hoverRadius,n.radius)}}),$e=Y.options.resolve;W._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,n,i,r=document.createElement("ul"),o=e.data,a=o.datasets,s=o.labels;if(r.setAttribute("class",e.id+"-legend"),a.length)for(n=a[t=0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return r.outerHTML},legend:{labels:{generateLabels:function(r){var o=r.data;return o.labels.length&&o.datasets.length?o.labels.map(function(e,t){var n=r.getDatasetMeta(0),i=n.controller.getStyle(t);return{text:e,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(o.datasets[0].data[t])||n.data[t].hidden,index:t}}):[]}},onClick:function(e,t){var n,i,r,o=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(r=a.getDatasetMeta(n)).data[o].hidden=!r.data[o].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var Ge=oe.extend({dataElementType:Se.Arc,linkScales:Y.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i,r=this,o=r.getDataset(),a=r.getMeta(),s=r.chart.options.startAngle||0,l=r._starts=[],u=r._angles=[],c=a.data;for(r._updateRadius(),a.count=r.countVisibleElements(),t=0,n=o.data.length;t<n;t++)l[t]=s,i=r._computeAngle(t),s+=u[t]=i;for(t=0,n=c.length;t<n;++t)c[t]._options=r._resolveDataElementOptions(c[t],t),r.updateElement(c[t],t,e)},_updateRadius:function(){var e=this.chart,t=e.chartArea,n=e.options,i=Math.min(t.right-t.left,t.bottom-t.top);e.outerRadius=Math.max(i/2,0),e.innerRadius=Math.max(n.cutoutPercentage?e.outerRadius/100*n.cutoutPercentage:1,0),e.radiusLength=(e.outerRadius-e.innerRadius)/e.getVisibleDatasetCount(),this.outerRadius=e.outerRadius-e.radiusLength*this.index,this.innerRadius=this.outerRadius-e.radiusLength},updateElement:function(e,t,n){var i=this.chart,r=this.getDataset(),o=i.options,a=o.animation,s=i.scale,l=i.data.labels,u=s.xCenter,c=s.yCenter,d=o.startAngle,h=e.hidden?0:s.getDistanceFromCenterForValue(r.data[t]),f=this._starts[t],p=f+(e.hidden?0:this._angles[t]),g=a.animateScale?0:s.getDistanceFromCenterForValue(r.data[t]),m=e._options||{};Y.extend(e,{_datasetIndex:this.index,_index:t,_scale:s,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:u,y:c,innerRadius:0,outerRadius:n?g:h,startAngle:n&&a.animateRotate?d:f,endAngle:n&&a.animateRotate?d:p,label:Y.valueAtIndexOrDefault(l,t,l[t])}}),e.pivot()},countVisibleElements:function(){var n=this.getDataset(),e=this.getMeta(),i=0;return Y.each(e.data,function(e,t){isNaN(n.data[t])||e.hidden||i++}),i},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor,r=Y.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=r(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=r(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=r(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this.getMeta().count,n=this.getDataset(),i=this.getMeta();if(isNaN(n.data[e])||i.data[e].hidden)return 0;var r={chart:this.chart,dataIndex:e,dataset:n,datasetIndex:this.index};return $e([this.chart.options.elements.arc.angle,2*Math.PI/t],r,e)}});W._set("pie",Y.clone(W.doughnut)),W._set("pie",{cutoutPercentage:0});var Qe=He,Ke=Y.valueOrDefault;W._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Xe=oe.extend({datasetElementType:Se.Line,dataElementType:Se.Point,linkScales:Y.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
1dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i=this.getMeta(),r=i.dataset,o=i.data||[],a=this.chart.scale,s=this._config;for(void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),r._scale=a,r._datasetIndex=this.index,r._children=o,r._loop=!0,r._model=this._resolveDatasetElementOptions(r),r.pivot(),t=0,n=o.length;t<n;++t)this.updateElement(o[t],t,e);for(this.updateBezierControlPoints(),t=0,n=o.length;t<n;++t)o[t].pivot()},updateElement:function(e,t,n){var i=e.custom||{},r=this.getDataset(),o=this.chart.scale,a=o.getPointPositionForValue(t,r.data[t]),s=this._resolveDataElementOptions(e,t),l=this.getMeta().dataset._model,u=n?o.xCenter:a.x,c=n?o.yCenter:a.y;e._scale=o,e._options=s,e._datasetIndex=this.index,e._index=t,e._model={x:u,y:c,skip:i.skip||isNaN(u)||isNaN(c),radius:s.radius,pointStyle:s.pointStyle,rotation:s.rotation,backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth,tension:Ke(i.tension,l?l.tension:0),hitRadius:s.hitRadius}},_resolveDatasetElementOptions:function(){var e=this._config,t=this.chart.options,n=oe.prototype._resolveDatasetElementOptions.apply(this,arguments);return n.spanGaps=Ke(e.spanGaps,t.spanGaps),n.tension=Ke(e.lineTension,t.elements.line.tension),n},updateBezierControlPoints:function(){var e,t,n,i,r=this.getMeta(),o=this.chart.chartArea,a=r.data||[];function s(e,t,n){return Math.max(Math.min(e,n),t)}for(r.dataset._model.spanGaps&&(a=a.filter(function(e){return!e._model.skip})),e=0,t=a.length;e<t;++e)n=a[e]._model,i=Y.splineCurve(Y.previousItem(a,e,!0)._model,n,Y.nextItem(a,e,!0)._model,n.tension),n.controlPointPreviousX=s(i.previous.x,o.left,o.right),n.controlPointPreviousY=s(i.previous.y,o.top,o.bottom),n.controlPointNextX=s(i.next.x,o.left,o.right),n.controlPointNextY=s(i.next.y,o.top,o.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Ke(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Ke(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Ke(n.hoverBorderWidth,n.borderWidth),t.radius=Ke(n.hoverRadius,n.radius)}});W._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),W._set("global",{datasets:{scatter:{showLine:!1}}});var Ze={bar:Pe,bubble:Le,doughnut:He,horizontalBar:Be,line:Ue,polarArea:Ge,pie:Qe,radar:Xe,scatter:Ue};function Je(e,t){return e.native?{x:e.x,y:e.y}:Y.getRelativePosition(e,t)}function et(e,t){var n,i,r,o,a,s,l=e._getSortedVisibleDatasetMetas();for(i=0,o=l.length;i<o;++i)for(r=0,a=(n=l[i].data).length;r<a;++r)(s=n[r])._view.skip||t(s)}function tt(e,t){var n=[];return et(e,function(e){e.inRange(t.x,t.y)&&n.push(e)}),n}function nt(e,i,r,o){var a=Number.POSITIVE_INFINITY,s=[];return et(e,function(e){if(!r||e.inRange(i.x,i.y)){var t=e.getCenterPoint(),n=o(i,t);n<a?(s=[e],a=n):n===a&&s.push(e)}}),s}function it(e){var r=-1!==e.indexOf("x"),o=-1!==e.indexOf("y");return function(e,t){var n=r?Math.abs(e.x-t.x):0,i=o?Math.abs(e.y-t.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2))}}function rt(e,t,n){var i=Je(t,e);n.axis=n.axis||"x";var r=it(n.axis),o=n.intersect?tt(e,i):nt(e,i,!1,r),a=[];return o.length?(e._getSortedVisibleDatasetMetas().forEach(function(e){var t=e.data[o[0]._index];t&&!t._view.skip&&a.push(t)}),a):[]}var ot={modes:{single:function(e,t){var n=Je(t,e),i=[];return et(e,function(e){return e.inRange(n.x,n.y)&&(i.push(e),i)}),i.slice(0,1)},label:rt,index:rt,dataset:function(e,t,n){var i=Je(t,e);n.axis=n.axis||"xy";var r=it(n.axis),o=n.intersect?tt(e,i):nt(e,i,!1,r);return 0<o.length&&(o=e.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(e,t){return rt(e,t,{intersect:!1})},point:function(e,t){return tt(e,Je(t,e))},nearest:function(e,t,n){var i=Je(t,e);n.axis=n.axis||"xy";var r=it(n.axis);return nt(e,i,n.intersect,r)},x:function(e,t,n){var i=Je(t,e),r=[],o=!1;return et(e,function(e){e.inXRange(i.x)&&r.push(e),e.inRange(i.x,i.y)&&(o=!0)}),n.intersect&&!o&&(r=[]),r},y:function(e,t,n){var i=Je(t,e),r=[],o=!1;return et(e,function(e){e.inYRange(i.y)&&r.push(e),e.inRange(i.x,i.y)&&(o=!0)}),n.intersect&&!o&&(r=[]),r}}},at=Y.extend;
1function st(e,t){return Y.where(e,function(e){return e.pos===t})}function lt(e,r){return e.sort(function(e,t){var n=r?t:e,i=r?e:t;return n.weight===i.weight?n.index-i.index:n.weight-i.weight})}function ut(e){var t=function(e){var t,n,i,r=[];for(t=0,n=(e||[]).length;t<n;++t)i=e[t],r.push({index:t,box:i,pos:i.position,horizontal:i.isHorizontal(),weight:i.weight});return r}(e),n=lt(st(t,"left"),!0),i=lt(st(t,"right")),r=lt(st(t,"top"),!0),o=lt(st(t,"bottom"));return{leftAndTop:n.concat(r),rightAndBottom:i.concat(o),chartArea:st(t,"chartArea"),vertical:n.concat(i),horizontal:r.concat(o)}}function ct(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function dt(e,t,n){var i,r,o=n.box,a=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?o.height:o.width,e[n.pos]+=n.size,o.getPadding){var s=o.getPadding();a.top=Math.max(a.top,s.top),a.left=Math.max(a.left,s.left),a.bottom=Math.max(a.bottom,s.bottom),a.right=Math.max(a.right,s.right)}if(i=t.outerWidth-ct(a,e,"left","right"),r=t.outerHeight-ct(a,e,"top","bottom"),i!==e.w||r!==e.h){e.w=i,e.h=r;var l=n.horizontal?[i,e.w]:[r,e.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function ht(e,n){var i=n.maxPadding;function t(e){var t={left:0,top:0,right:0,bottom:0};return e.forEach(function(e){t[e]=Math.max(n[e],i[e])}),t}return t(e?["left","right"]:["top","bottom"])}function ft(e,t,n){var i,r,o,a,s,l,u=[];for(i=0,r=e.length;i<r;++i)(a=(o=e[i]).box).update(o.width||t.w,o.height||t.h,ht(o.horizontal,t)),dt(t,n,o)&&(l=!0,u.length&&(s=!0)),a.fullWidth||u.push(o);return s&&ft(u,t,n)||l}function pt(e,t,n){var i,r,o,a,s=n.padding,l=t.x,u=t.y;for(i=0,r=e.length;i<r;++i)a=(o=e[i]).box,o.horizontal?(a.left=a.fullWidth?s.left:t.left,a.right=a.fullWidth?n.outerWidth-s.right:t.left+t.w,a.top=u,a.bottom=u+a.height,a.width=a.right-a.left,u=a.bottom):(a.left=l,a.right=l+a.width,a.top=t.top,a.bottom=t.top+t.h,a.height=a.bottom-a.top,l=a.right);t.x=l,t.y=u}W._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var gt,mt={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var i,r=["fullWidth","position","weight"],o=r.length,a=0;a<o;++a)i=r[a],n.hasOwnProperty(i)&&(t[i]=n[i])},update:function(n,e,t){if(n){var i,r,o=n.options.layout||{},a=Y.options.toPadding(o.padding),s=e-a.width,l=t-a.height,u=ut(n.boxes),c=u.vertical,d=u.horizontal,h=Object.freeze({outerWidth:e,outerHeight:t,padding:a,availableWidth:s,vBoxMaxWidth:s/2/c.length,hBoxMaxHeight:l/2}),f=at({maxPadding:at({},a),w:s,h:l,x:a.left,y:a.top},a);!function(e,t){var n,i,r;for(n=0,i=e.length;n<i;++n)(r=e[n]).width=r.horizontal?r.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,r.height=r.horizontal&&t.hBoxMaxHeight}(c.concat(d),h),ft(c,f,h),ft(d,f,h)&&ft(c,f,h),r=(i=f).maxPadding,i.y+=p("top"),i.x+=p("left"),p("right"),p("bottom"),pt(u.leftAndTop,f,h),f.x+=f.w,f.y+=f.h,pt(u.rightAndBottom,f,h),n.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h},Y.each(u.chartArea,function(e){var t=e.box;at(t,n.chartArea),t.update(f.w,f.h)})}function p(e){var t=Math.max(r[e]-i[e],0);return i[e]+=t,t}}},vt=(gt=Object.freeze({__proto__:null,default:"/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}))&&gt.default||gt,yt="$chartjs",bt="chartjs-",_t=bt+"size-monitor",xt=bt+"render-monitor",wt=bt+"render-animation",kt=["animationstart","webkitAnimationStart"],St={touchstart:"mousedown",touchmove:"mou
1semove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function Ct(e,t){var n=Y.getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var Tt=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function Dt(e,t,n){e.addEventListener(t,n,Tt)}function Mt(e,t,n){e.removeEventListener(t,n,Tt)}function Ot(e,t,n,i,r){return{type:e,chart:t,native:r||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function Et(e){var t=document.createElement("div");return t.className=e||"",t}function At(n,i,r){var e,t,o,a,s,l,u,c,d,h,f,p,g=n[yt]||(n[yt]={}),m=g.resizer=(u=!(s=function(){if(g.resizer){var e=r.options.maintainAspectRatio&&n.parentNode,t=e?e.clientWidth:0;i(Ot("resize",r)),e&&e.clientWidth<t&&r.canvas&&i(Ot("resize",r))}}),c=[],e=function(){c=Array.prototype.slice.call(arguments),l=l||this,u||(u=!0,Y.requestAnimFrame.call(window,function(){u=!1,s.apply(l,c)}))},t=Et(_t),o=Et(_t+"-expand"),a=Et(_t+"-shrink"),o.appendChild(Et()),a.appendChild(Et()),t.appendChild(o),t.appendChild(a),t._reset=function(){o.scrollLeft=1e6,o.scrollTop=1e6,a.scrollLeft=1e6,a.scrollTop=1e6},Dt(o,"scroll",v.bind(o,"expand")),Dt(a,"scroll",v.bind(a,"shrink")),t);function v(){t._reset(),e()}h=function(){if(g.resizer){var e=n.parentNode;e&&e!==m.parentNode&&e.insertBefore(m,e.firstChild),m._reset()}},f=(d=n)[yt]||(d[yt]={}),p=f.renderProxy=function(e){e.animationName===wt&&h()},Y.each(kt,function(e){Dt(d,e,p)}),f.reflow=!!d.offsetParent,d.classList.add(xt)}function Pt(e){var t,n,i,r=e[yt]||{},o=r.resizer;delete r.resizer,n=(t=e)[yt]||{},(i=n.renderProxy)&&(Y.each(kt,function(e){Mt(t,e,i)}),delete n.renderProxy),t.classList.remove(xt),o&&o.parentNode&&o.parentNode.removeChild(o)}var It={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;!function(e,t){var n=e[yt]||(e[yt]={});if(!n.containsStyles){n.containsStyles=!0,t="/* Chart.js */\n"+t;var i=document.createElement("style");i.setAttribute("type","text/css"),i.appendChild(document.createTextNode(t)),e.appendChild(i)}}(t.host?t:document.head,vt)}},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(this._ensureLoaded(e),function(e,t){var n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[yt]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===r||""===r){var o=Ct(e,"width");void 0!==o&&(e.width=o)}if(null===i||""===i)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var a=Ct(e,"height");void 0!==o&&(e.height=a)}}(e,t),n):null},releaseContext:function(e){var n=e.canvas;if(n[yt]){var i=n[yt].initial;["height","width"].forEach(function(e){var t=i[e];Y.isNullOrUndef(t)?n.removeAttribute(e):n.setAttribute(e,t)}),Y.each(i.style||{},function(e,t){n.style[t]=e}),n.width=n.width,delete n[yt]}},addEventListener:function(o,e,a){var t=o.canvas;if("resize"!==e){var n=a[yt]||(a[yt]={});Dt(t,e,(n.proxies||(n.proxies={}))[o.id+"_"+e]=function(e){var t,n,i,r;a((n=o,i=St[(t=e).type]||t.type,r=Y.getRelativePosition(t,n),Ot(i,n,r.x,r.y,t)))})}else At(t,a,o)},removeEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var r=((n[yt]||{}).proxies||{})[e.id+"_"+t];r&&Mt(i,t,r)}else Pt(i)}};Y.addEvent=Dt,Y.removeEvent=Mt;var Nt=It._enabled?It:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Lt=Y.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Nt);W._set("global",{plugins:{}});var jt={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var n=this._plugins;[].concat(e).forEach(function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var i,r,o,a,s,l=this.descriptors(e),u=l.length;for(i=0;i<u;++i)if("function"==typeof(s=(o=(r=l[i]).plugin)[t])&&((a=[e].concat(n||[])).push(r.options),!1===s.apply(o,a)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var i=[],r=[],n=e&&e.config||{},o=n.options&&n.options.plugins||{};
1return this._plugins.concat(n.plugins||[]).forEach(function(e){if(-1===i.indexOf(e)){var t=e.id,n=o[t];!1!==n&&(!0===n&&(n=Y.clone(W.global.plugins[t])),i.push(e),r.push({plugin:e,options:n||{}}))}}),t.descriptors=r,t.id=this._cacheId,r},_invalidate:function(e){delete e.$plugins}},Ft={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=Y.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?Y.merge(Object.create(null),[W.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){this.defaults.hasOwnProperty(e)&&(this.defaults[e]=Y.extend(this.defaults[e],t))},addScalesToLayout:function(t){Y.each(t.scales,function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,mt.addBox(t,e)})}},Rt=Y.valueOrDefault,Wt=Y.rtl.getRtlAdapter;W._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:Y.noop,title:function(e,t){var n="",i=t.labels,r=i?i.length:0;if(0<e.length){var o=e[0];o.label?n=o.label:o.xLabel?n=o.xLabel:0<r&&o.index<r&&(n=i[o.index])}return n},afterTitle:Y.noop,beforeBody:Y.noop,beforeLabel:Y.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),Y.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:Y.noop,afterBody:Y.noop,beforeFooter:Y.noop,footer:Y.noop,afterFooter:Y.noop}}});var Ht={average:function(e){if(!e.length)return!1;var t,n,i=0,r=0,o=0;for(t=0,n=e.length;t<n;++t){var a=e[t];if(a&&a.hasValue()){var s=a.tooltipPosition();i+=s.x,r+=s.y,++o}}return{x:i/o,y:r/o}},nearest:function(e,t){var n,i,r,o=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,i=e.length;n<i;++n){var l=e[n];if(l&&l.hasValue()){var u=l.getCenterPoint(),c=Y.distanceBetweenPoints(t,u);c<s&&(s=c,r=l)}}if(r){var d=r.tooltipPosition();o=d.x,a=d.y}return{x:o,y:a}}};function Bt(e,t){return t&&(Y.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Vt(e){return("string"==typeof e||e instanceof String)&&-1<e.indexOf("\n")?e.split("\n"):e}function zt(e){var t=W.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Rt(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Rt(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Rt(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Rt(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Rt(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Rt(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Rt(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Rt(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Rt(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Yt(e,t){var n=e._chart.ctx,i=2*t.yPadding,r=0,o=t.body,a=o.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);a+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,u=t.titleFontSize,c=t.bodyFontSize,d=t.footerFontSize;i+=s*u,i+=s?(s-1)*t.titleSpacing:0,i+=s?t.titleMarginBottom:0,i+=a*c,i+=a?(a-1)*t.bodySpacing:0,i+=l?t.footerMarginTop:0,i+=l*d,i+=l?(l-1)*t.footerSpacing:0;function h(e){r=Math.max(r,n.measureText(e).width+f)}var f=0;return n.font=Y.fontString(u,t._titleFontStyle,t._titleFontFamily),Y.each(t.title,h),n.font=Y.fontString(c,t._bodyFontStyle,t._bodyFontFamily),Y.each(t.beforeBody.concat(t.afterBody),h),f=t.displayColors?c+2:0,Y.each(o,function(e){Y.each(e.before,h),Y.each(e.lines,h),Y.each(e.after,h)}),f=0,n.font=Y.fontString(d,t._footerFontStyle,t._footerFontFamily),Y.each(t.footer,h),{width:r+=2*t.xPadding,height:i}}function qt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Ut(e){return Bt([],Vt(e))}var $t=X.extend({initialize:function(){this._model=zt(this._options),this._lastActive=[]},getTitle:function(){var e=this._options.callbacks,t=e.beforeTitle.apply(this,arguments),n=e.title.apply(this,arguments),i=e.afterTitle.apply(this,arguments),r=[];return r=Bt(r,Vt(t)),r=Bt(r,Vt(n)),r=Bt(r,Vt(i))},getBeforeBody:function(){return Ut(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,n){var i=this,r=i._options.callbacks,o=[];return Y.each(e,function(e){var t={before:[],lines:[],after:[]};
1Bt(t.before,Vt(r.beforeLabel.call(i,e,n))),Bt(t.lines,r.label.call(i,e,n)),Bt(t.after,Vt(r.afterLabel.call(i,e,n))),o.push(t)}),o},getAfterBody:function(){return Ut(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this._options.callbacks,t=e.beforeFooter.apply(this,arguments),n=e.footer.apply(this,arguments),i=e.afterFooter.apply(this,arguments),r=[];return r=Bt(r,Vt(t)),r=Bt(r,Vt(n)),r=Bt(r,Vt(i))},update:function(e){var t,n,i,r,o,a,s,l,u,c,d,h,f,p,g,m,v,y,b,_,x,w,k,S=this,C=S._options,T=S._model,D=S._model=zt(C),M=S._active,O=S._data,E={xAlign:T.xAlign,yAlign:T.yAlign},A={x:T.x,y:T.y},P={width:T.width,height:T.height},I={x:T.caretX,y:T.caretY};if(M.length){D.opacity=1;var N=[],L=[];I=Ht[C.position].call(S,M,S._eventPosition);var j=[];for(t=0,n=M.length;t<n;++t)j.push((m=M[t],k=w=x=y=v=void 0,v=m._xScale,y=m._yScale||m._scale,b=m._index,_=m._datasetIndex,x=m._chart.getDatasetMeta(_).controller,w=x._getIndexScale(),k=x._getValueScale(),{xLabel:v?v.getLabelForIndex(b,_):"",yLabel:y?y.getLabelForIndex(b,_):"",label:w?""+w.getLabelForIndex(b,_):"",value:k?""+k.getLabelForIndex(b,_):"",index:b,datasetIndex:_,x:m._model.x,y:m._model.y}));C.filter&&(j=j.filter(function(e){return C.filter(e,O)})),C.itemSort&&(j=j.sort(function(e,t){return C.itemSort(e,t,O)})),Y.each(j,function(e){N.push(C.callbacks.labelColor.call(S,e,S._chart)),L.push(C.callbacks.labelTextColor.call(S,e,S._chart))}),D.title=S.getTitle(j,O),D.beforeBody=S.getBeforeBody(j,O),D.body=S.getBody(j,O),D.afterBody=S.getAfterBody(j,O),D.footer=S.getFooter(j,O),D.x=I.x,D.y=I.y,D.caretPadding=C.caretPadding,D.labelColors=N,D.labelTextColors=L,D.dataPoints=j,E=function(e,t){var n,i,r,o,a,s=e._model,l=e._chart,u=e._chart.chartArea,c="center",d="center";s.y<t.height?d="top":s.y>l.height-t.height&&(d="bottom");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;i="center"===d?(n=function(e){return e<=h},function(e){return h<e}):(n=function(e){return e<=t.width/2},function(e){return e>=l.width-t.width/2}),r=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},o=function(e){return e-t.width-s.caretSize-s.caretPadding<0},a=function(e){return e<=f?"top":"bottom"},n(s.x)?(c="left",r(s.x)&&(c="center",d=a(s.y))):i(s.x)&&(c="right",o(s.x)&&(c="center",d=a(s.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:d}}(this,P=Yt(this,D)),i=D,r=P,o=E,a=S._chart,s=i.x,l=i.y,u=i.caretSize,c=i.caretPadding,d=i.cornerRadius,h=o.xAlign,f=o.yAlign,p=u+c,g=d+c,"right"===h?s-=r.width:"center"===h&&((s-=r.width/2)+r.width>a.width&&(s=a.width-r.width),s<0&&(s=0)),"top"===f?l+=p:l-="bottom"===f?r.height+p:r.height/2,"center"===f?"left"===h?s+=p:"right"===h&&(s-=p):"left"===h?s-=g:"right"===h&&(s+=g),A={x:s,y:l}}else D.opacity=0;return D.xAlign=E.xAlign,D.yAlign=E.yAlign,D.x=A.x,D.y=A.y,D.width=P.width,D.height=P.height,D.caretX=I.x,D.caretY=I.y,S._model=D,e&&C.custom&&C.custom.call(S,D),S},drawCaret:function(e,t){var n=this._chart.ctx,i=this._view,r=this.getCaretPosition(e,t,i);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)},getCaretPosition:function(e,t,n){var i,r,o,a,s,l,u=n.caretSize,c=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=e.x,p=e.y,g=t.width,m=t.height;if("center"===h)s=p+m/2,l="left"===d?(r=(i=f)-u,o=i,a=s+u,s-u):(r=(i=f+g)+u,o=i,a=s-u,s+u);else if(o=(i="left"===d?(r=f+c+u)-u:"right"===d?(r=f+g-c-u)-u:(r=n.caretX)-u,r+u),"top"===h)s=(a=p)-u,l=a;else{s=(a=p+m)+u,l=a;var v=o;o=i,i=v}return{x1:i,x2:r,x3:o,y1:a,y2:s,y3:l}},drawTitle:function(e,t,n){var i,r,o,a=t.title,s=a.length;if(s){var l=Wt(t.rtl,t.x,t.width);for(e.x=qt(t,t._titleAlign),n.textAlign=l.textAlign(t._titleAlign),n.textBaseline="middle",i=t.titleFontSize,r=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=Y.fontString(i,t._titleFontStyle,t._titleFontFamily),o=0;o<s;++o)n.fillText(a[o],l.x(e.x),e.y+i/2),e.y+=i+r,o+1===s&&(e.y+=t.titleMarginBottom-r)}},drawBody:function(t,e,n){function i(e){n.fillText(e,b.x(t.x+v),t.y+h/2),t.y+=h+f}var r,o,a,s,l,u,c,d,h=e.bodyFontSize,f=e.bodySpacing,p=e._bodyAlign,g=e.body,m=e.displayColors,v=0,y=m?qt(e,"left"):0,b=Wt(e.rtl,e.x,e.width),_=b.textAlign(p);for(n.textAlign=p,n.textBaseline="middle",n.font=Y.fontString(h,e._bodyFontStyle,e._body
1FontFamily),t.x=qt(e,_),n.fillStyle=e.bodyFontColor,Y.each(e.beforeBody,i),v=m&&"right"!==_?"center"===p?h/2+1:h+2:0,l=0,c=g.length;l<c;++l){for(r=g[l],o=e.labelTextColors[l],a=e.labelColors[l],n.fillStyle=o,Y.each(r.before,i),u=0,d=(s=r.lines).length;u<d;++u){if(m){var x=b.x(y);n.fillStyle=e.legendColorBackground,n.fillRect(b.leftForLtr(x,h),t.y,h,h),n.lineWidth=1,n.strokeStyle=a.borderColor,n.strokeRect(b.leftForLtr(x,h),t.y,h,h),n.fillStyle=a.backgroundColor,n.fillRect(b.leftForLtr(b.xPlus(x,1),h-2),t.y+1,h-2,h-2),n.fillStyle=o}i(s[u])}Y.each(r.after,i)}v=0,Y.each(e.afterBody,i),t.y-=f},drawFooter:function(e,t,n){var i,r,o=t.footer,a=o.length;if(a){var s=Wt(t.rtl,t.x,t.width);for(e.x=qt(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=s.textAlign(t._footerAlign),n.textBaseline="middle",i=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=Y.fontString(i,t._footerFontStyle,t._footerFontFamily),r=0;r<a;++r)n.fillText(o[r],s.x(e.x),e.y+i/2),e.y+=i+t.footerSpacing}},drawBackground:function(e,t,n,i){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var r=t.xAlign,o=t.yAlign,a=e.x,s=e.y,l=i.width,u=i.height,c=t.cornerRadius;n.beginPath(),n.moveTo(a+c,s),"top"===o&&this.drawCaret(e,i),n.lineTo(a+l-c,s),n.quadraticCurveTo(a+l,s,a+l,s+c),"center"===o&&"right"===r&&this.drawCaret(e,i),n.lineTo(a+l,s+u-c),n.quadraticCurveTo(a+l,s+u,a+l-c,s+u),"bottom"===o&&this.drawCaret(e,i),n.lineTo(a+c,s+u),n.quadraticCurveTo(a,s+u,a,s+u-c),"center"===o&&"left"===r&&this.drawCaret(e,i),n.lineTo(a,s+c),n.quadraticCurveTo(a,s,a+c,s),n.closePath(),n.fill(),0<t.borderWidth&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},i={x:t.x,y:t.y},r=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(e.save(),e.globalAlpha=r,this.drawBackground(i,t,e,n),i.y+=t.yPadding,Y.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),Y.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(e,i.mode,i),i.reverse&&n._active.reverse()),(t=!Y.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}}),Gt=Ht,Qt=$t;Qt.positioners=Gt;var Kt=Y.valueOrDefault;function Xt(){return Y.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){if("xAxes"===e||"yAxes"===e){var r,o,a,s=n[e].length;for(t[e]||(t[e]=[]),r=0;r<s;++r)a=n[e][r],o=Kt(a.type,"xAxes"===e?"category":"linear"),r>=t[e].length&&t[e].push({}),!t[e][r].type||a.type&&a.type!==t[e][r].type?Y.merge(t[e][r],[Ft.getScaleDefaults(o),a]):Y.merge(t[e][r],a)}else Y._merger(e,t,n,i)}})}function Zt(){return Y.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){var r=t[e]||Object.create(null),o=n[e];"scales"===e?t[e]=Xt(r,o):"scale"===e?t[e]=Y.merge(r,[Ft.getScaleDefaults(o.type),o]):Y._merger(e,t,n,i)}})}function Jt(e,t,n){for(var i,r=function(e){return e.id===i};i=t+n++,0<=Y.findIndex(e,r););return i}function en(e){return"top"===e||"bottom"===e}function tn(n,i){return function(e,t){return e[n]===t[n]?e[i]-t[i]:e[n]-t[n]}}W._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});function nn(e,t){return this.construct(e,t),this}Y.extend(nn.prototype,{construct:function(e,t){var n,i,r=this;(i=(n=(n=t)||Object.create(null)).data=n.data||{}).datasets=i.datasets||[],i.labels=i.labels||[],n.options=Zt(W.global,W[n.type],n.options||{}),t=n;var o=Lt.acquireContext(e,t),a=o&&o.canvas,s=a&&a.height,l=a&&a.width;r.id=Y.uid(),r.ctx=o,r.canvas=a,r.config=t,r.width=l,r.height=s,r.aspectRatio=s?l/s:null,r.options=t.options,r._bufferedRender=!1,r._layers=[],(r.chart=r).controller=r,
1nn.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(e){r.config.data=e}}),o&&a?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){return jt.notify(this,"beforeInit"),Y.retinaScale(this,this.options.devicePixelRatio),this.bindEvents(),this.options.responsive&&this.resize(!0),this.initToolTip(),jt.notify(this,"afterInit"),this},clear:function(){return Y.canvas.clear(this),this},stop:function(){return ee.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,i=t.canvas,r=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(Y.getMaximumWidth(i))),a=Math.max(0,Math.floor(r?o/r:Y.getMaximumHeight(i)));if((t.width!==o||t.height!==a)&&(i.width=t.width=o,i.height=t.height=a,i.style.width=o+"px",i.style.height=a+"px",Y.retinaScale(t,n.devicePixelRatio),!e)){var s={width:o,height:a};jt.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,n=e.scales||{},t=e.scale;Y.each(n.xAxes,function(e,t){e.id||(e.id=Jt(n.xAxes,"x-axis-",t))}),Y.each(n.yAxes,function(e,t){e.id||(e.id=Jt(n.yAxes,"y-axis-",t))}),t&&(t.id=t.id||"scale")},buildOrUpdateScales:function(){var a=this,e=a.options,s=a.scales||{},t=[],l=Object.keys(s).reduce(function(e,t){return e[t]=!1,e},{});e.scales&&(t=t.concat((e.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(e.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),e.scale&&t.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),Y.each(t,function(e){var t=e.options,n=t.id,i=Kt(t.type,e.dtype);en(t.position)!==en(e.dposition)&&(t.position=e.dposition),l[n]=!0;var r=null;if(n in s&&s[n].type===i)(r=s[n]).options=t,r.ctx=a.ctx,r.chart=a;else{var o=Ft.getScaleConstructor(i);if(!o)return;r=new o({id:n,type:i,options:t,ctx:a.ctx,chart:a}),s[r.id]=r}r.mergeTicksOptions(),e.isDefault&&(a.scale=r)}),Y.each(l,function(e,t){e||delete s[t]}),a.scales=s,Ft.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=[],i=this.data.datasets;for(e=0,t=i.length;e<t;e++){var r=i[e],o=this.getDatasetMeta(e),a=r.type||this.config.type;if(o.type&&o.type!==a&&(this.destroyDatasetMeta(e),o=this.getDatasetMeta(e)),o.type=a,o.order=r.order||0,o.index=e,o.controller)o.controller.updateIndex(e),o.controller.linkScales();else{var s=Ze[o.type];if(void 0===s)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new s(this,e),n.push(o.controller)}}return n},resetElements:function(){var n=this;Y.each(n.data.datasets,function(e,t){n.getDatasetMeta(t).controller.reset()},n)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,n,i,r,o=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),r=(i=o).options,Y.each(i.scales,function(e){mt.removeBox(i,e)}),r=Zt(W.global,W[i.config.type],r),i.options=i.config.options=r,i.ensureScalesHaveIDs(),i.buildOrUpdateScales(),i.tooltip._options=r.tooltips,i.tooltip.initialize(),jt._invalidate(o),!1!==jt.notify(o,"beforeUpdate")){o.tooltip._data=o.data;var a=o.buildOrUpdateControllers();for(t=0,n=o.data.datasets.length;t<n;t++)o.getDatasetMeta(t).controller.buildOrUpdateElements();o.updateLayout(),o.options.animation&&o.options.animation.duration&&Y.each(a,function(e){e.reset()}),o.updateDatasets(),o.tooltip.initialize(),o.lastActive=[],jt.notify(o,"afterUpdate"),o._layers.sort(tn("z","_idx")),o._bufferedRender?o._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:o.render(e)}},updateLayout:function(){var t=this;!1!==jt.notify(t,"beforeLayout")&&(mt.update(this,this.width,this.height),t._layers=[],Y.each(t.boxes,function(e){e._configure&&e._configure(),t._layers.push.apply(t._layers,e._layers())},t),t._layers.forEach(function(e,t){e._idx=t}),jt.notify(t,"afterScaleUpdate"),jt.notify(t,"afterLayout"))},updateDatasets:function(){if(!1!==jt.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e<t;++e)this.updateDataset(e);jt.notify(this,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this.getDatasetMeta(e),n={meta:t,index:e};!1!==jt.notify(this,"beforeDatasetUpdate",[n])&&(t.controller._update(),jt.notify(this,"afterDatasetUpdate",[n]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,i=Kt(e.duration,n&&n.duration),r=e.lazy;if(!1!==jt.notify(t,"beforeRender")){var o=function(e){jt.notify(t,"afterRe
1nder"),Y.callback(n&&n.onComplete,[e],t)};if(n&&i){var a=new J({numSteps:i/16.66,easing:e.easing||n.easing,render:function(e,t){var n=Y.easing.effects[t.easing],i=t.currentStep,r=i/t.numSteps;e.draw(n(r),r,i)},onAnimationProgress:n.onProgress,onAnimationComplete:o});ee.addAnimation(t,a,i,r)}else t.draw(),o(new J({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,i=this;if(i.clear(),Y.isNullOrUndef(e)&&(e=1),i.transition(e),!(i.width<=0||i.height<=0)&&!1!==jt.notify(i,"beforeDraw",[e])){for(n=i._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(i.chartArea);for(i.drawDatasets(e);t<n.length;++t)n[t].draw(i.chartArea);i._drawTooltip(e),jt.notify(i,"afterDraw",[e])}},transition:function(e){for(var t=0,n=(this.data.datasets||[]).length;t<n;++t)this.isDatasetVisible(t)&&this.getDatasetMeta(t).controller.transition(e);this.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,i=[];for(t=0,n=(this.data.datasets||[]).length;t<n;++t)e&&!this.isDatasetVisible(t)||i.push(this.getDatasetMeta(t));return i.sort(tn("order","index")),i},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n;if(!1!==jt.notify(this,"beforeDatasetsDraw",[e])){for(n=(t=this._getSortedVisibleDatasetMetas()).length-1;0<=n;--n)this.drawDataset(t[n],e);jt.notify(this,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n={meta:e,index:e.index,easingValue:t};!1!==jt.notify(this,"beforeDatasetDraw",[n])&&(e.controller.draw(t),jt.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==jt.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),jt.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return ot.modes.single(this,e)},getElementsAtEvent:function(e){return ot.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return ot.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var i=ot.modes[t];return"function"==typeof i?i(this,e,n):[]},getDatasetAtEvent:function(e){return ot.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n=n||(t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t.order||0,index:e})},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],i=n._meta&&n._meta[t];i&&(i.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,i=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);i&&(n.unbindEvents(),Y.canvas.clear(n),Lt.releaseContext(n.ctx),n.canvas=null,n.ctx=null),jt.notify(n,"destroy"),delete nn.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){this.tooltip=new Qt({_chart:this,_chartInstance:this,_data:this.data,_options:this.options.tooltips},this)},bindEvents:function(){var t=this,n=t._listeners={},i=function(){t.eventHandler.apply(t,arguments)};Y.each(t.options.events,function(e){Lt.addEventListener(t,e,i),n[e]=i}),t.options.responsive&&(i=function(){t.resize()},Lt.addEventListener(t,"resize",i),n.resize=i)},unbindEvents:function(){var n=this,e=n._listeners;e&&(delete n._listeners,Y.each(e,function(e,t){Lt.removeEventListener(n,t,e)}))},updateHoverStyle:function(e,t,n){var i,r,o,a=n?"set":"remove";for(r=0,o=e.length;r<o;++r)(i=e[r])&&this.getDatasetMeta(i._datasetIndex).controller[a+"HoverStyle"](i);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+a+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==jt.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var i=t.handleEvent(e);n&&(i=n._start?n.handleEvent(e):i|n.handleEvent(e)),jt.notify(t,"afterEvent",[e]);var r=t._bufferedRequest;return r?t.render(r):i&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,i=n.options||{},r=i.hover;return n.lastActive=n.lastActive||[],"mouseout"===e.type?n.active=[]:n.active=n.getElementsAtEventForMode(e,r.mode,r),Y.callback(i.onHover||i.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||i.onClick&&i.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,r.mode,!1),n.active.length&&r.mode&&n.updateHoverStyle(n.active,r.mode,!0),t=!Y.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),nn.instances={};var rn=nn;(nn.Controller=nn).types={},Y.configMerge=Zt,Y.scaleMerge=Xt;function on(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function an(e){this.options=e||{}}Y.extend(an.prototype,{formats:on,parse:on,format:on,add:on,diff:on,startOf:on,endOf:on,_create:function(e){return e}}),an.override=function(e){Y.extend(an.prototype,e)};var sn={_date:an},ln={formatters:{values:function(e){return Y.isArray(e)?e:""+e},linear:function(e,t,n){var i=3<n.length?n[2]-n[1]:n[1]-n[0];1<Math.abs(i)&&e!==Math.floor(e)&&(i=e-Math.floor(e));var r=Y.log10(Math.abs(i)),o="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var a=Y.log10(Math.abs(e)),s=Math.floor(a)-Math.floor(r);s=Math.max(Math.min(s,20),0),o=e.toExponential(s)}else{var l=-1*Math.floor(r);l=Math.max(Math.min(l,20),0),o=e.toFixed(l)}else o="0";return o},logarithmic:function(e,t,n){var i=e/Math.pow(10,Math.floor(Y.log10(e)));return 0===e?"0":1==i||2==i||5==i||0===t||t===n.length-1?e.toExponential():""}}},un=Y.isArray,cn=Y.isNullOrUndef,dn=Y.valueOrDefault,hn=Y.valueAtIndexOrDefault;function fn(e,t,n){var i,r=e.getTicks().length,o=Math.min(t,r-1),a=e.getPixelForTick(o),s=e._startPixel,l=e._endPixel;if(!(n&&(i=1===r?Math.max(a-s,l-a):0===t?(e.getPixelForTick(1)-a)/2:(a-e.getPixelForTick(o-1))/2,(a+=o<t?i:-i)<s-1e-6||l+1e-6<a)))return a}function pn(e,t,n,i){var r,o,a,s,l,u,c,d,h,f,p,g,m,v,y,b=n.length,_=[],x=[],w=[],k=0,S=0;for(r=0;r<b;++r){if(s=n[r].label,l=n[r].major?t.major:t.minor,e.font=u=l.string,c=i[u]=i[u]||{data:{},gc:[]},d=l.lineHeight,h=f=0,cn(s)||un(s)){if(un(s))for(o=0,a=s.length;o<a;++o)p=s[o],cn(p)||un(p)||(h=Y.measureText(e,c.data,c.gc,h,p),f+=d)}else h=Y.measureText(e,c.data,c.gc,h,s),f=d;_.push(h),x.push(f),w.push(d/2),k=Math.max(h,k),S=Math.max(f,S)}
1function C(e){return{width:_[e]||0,height:x[e]||0,offset:w[e]||0}}return v=i,y=b,Y.each(v,function(e){var t,n=e.gc,i=n.length/2;if(y<i){for(t=0;t<i;++t)delete e.data[n[t]];n.splice(0,i)}}),g=_.indexOf(k),m=x.indexOf(S),{first:C(0),last:C(b-1),widest:C(g),highest:C(m)}}function gn(e){return e.drawTicks?e.tickMarkLength:0}function mn(e){var t,n;return e.display?(t=Y.options._parseFont(e),n=Y.options.toPadding(e.padding),t.lineHeight+n.height):0}function vn(e,t){return Y.extend(Y.options._parseFont({fontFamily:dn(t.fontFamily,e.fontFamily),fontSize:dn(t.fontSize,e.fontSize),fontStyle:dn(t.fontStyle,e.fontStyle),lineHeight:dn(t.lineHeight,e.lineHeight)}),{color:Y.options.resolve([t.fontColor,e.fontColor,W.global.defaultFontColor])})}function yn(e){var t=vn(e,e.minor);return{minor:t,major:e.major.enabled?vn(e,e.major):t}}function bn(e){var t,n,i,r=[];for(n=0,i=e.length;n<i;++n)void 0!==(t=e[n])._index&&r.push(t);return r}function _n(e,t,n,i){var r,o,a,s,l=function(e){var t,n,i=e.length;if(i<2)return!1;for(n=e[0],t=1;t<i;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),u=(t.length-1)/i;if(!l)return Math.max(u,1);for(a=0,s=(r=Y.math._factorize(l)).length-1;a<s;a++)if(u<(o=r[a]))return o;return Math.max(u,1)}function xn(e,t,n,i){var r,o,a,s,l=dn(n,0),u=Math.min(dn(i,e.length),e.length),c=0;for(t=Math.ceil(t),i&&(t=(r=i-n)/Math.floor(r/t)),s=l;s<0;)c++,s=Math.round(l+c*t);for(o=Math.max(l,0);o<u;o++)a=e[o],o===s?(a._index=o,c++,s=Math.round(l+c*t)):delete a.label}W._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:ln.formatters.values,minor:{},major:{}}});var wn=X.extend({zeroLineIndex:0,getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){Y.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var i,r,o,a,s,l=this,u=l.options.ticks,c=u.sampleSize;if(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=Y.extend({left:0,right:0,top:0,bottom:0},n),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),a=l.buildTicks()||[],(!(a=l.afterBuildTicks(a)||a)||!a.length)&&l.ticks)for(a=[],i=0,r=l.ticks.length;i<r;++i)a.push({value:l.ticks[i],major:!1});return s=c<(l._ticks=a).length,o=l._convertTicksToLabels(s?function(e,t){for(var n=[],i=e.length/t,r=0,o=e.length;r<o;r+=i)n.push(e[Math.floor(r)]);return n}(a,c):a),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=u.display&&(u.autoSkip||"auto"===u.source)?l._autoSkip(a):a,s&&(o=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=o,l.afterUpdate(),l.minSize},_configure:function(){var e,t,n=this,i=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,i=!i),n._startPixel=e,n._endPixel=t,n._reversePixels=i,n._length=t-e},afterUpdate:function(){Y.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){Y.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){Y.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){Y.callback(this.options.beforeDataLimits,[this])},determineDataLimits:Y.noop,afterDataLimits:function(){Y.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){Y.callback(this.options.beforeBuildTicks,[this])},buildTicks:Y.noop,afterBuildTicks:function(e){return un(e)&&e.length?Y.callback(this.options.afterBuildTicks,[this,e]):(this.ticks=Y.callback(this.options.afterBuildTicks,[this,this.ticks])||this.ticks,e)},beforeTickToLabelConversion:function(){Y.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this.options.ticks;this.ticks=this.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){Y.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){Y.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,i,r,o,a,s=this,l=s.options,u=l.ticks,c=s.getTicks().length,d=u.minRotation||0,h=u.maxRotation,f=d;!s._isVisible()||!u.display||h<=d||c<=1||!s.isHorizontal()?s.labelRotation=d:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,i=Math.min(s.maxWidth,s.chart.width-t),(r=l.offset?s.maxWidth/c:i/(c-1))<t+6&&(r=i/(c-(l.offset?.5:1)),o=s.maxHeight-gn(l.gridLines)-u.padding-mn(l.scaleLabel),a=Math.sqrt(t*t+n*n),f=Y.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/r,1)),Math.asin(Math.min(o/a,1))-Math.asin(n/a))),f=Math.max(d,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){Y.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){Y.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,i=e.options,r=i.ticks,o=i.scaleLabel,a=i.gridLines,s=e._isVisible(),l="bottom"===i.position,u=e.isHorizontal();if(u?t.width=e.maxWidth:s&&(t.width=gn(a)+mn(o)),u?s&&(t.height=gn(a)+mn(o)):t.height=e.maxHeight,r.dis
1play&&s){var c=yn(r),d=e._getLabelSizes(),h=d.first,f=d.last,p=d.widest,g=d.highest,m=.4*c.minor.lineHeight,v=r.padding;if(u){var y=0!==e.labelRotation,b=Y.toRadians(e.labelRotation),_=Math.cos(b),x=Math.sin(b),w=x*p.width+_*(g.height-(y?g.offset:0))+(y?0:m);t.height=Math.min(e.maxHeight,t.height+w+v);var k,S,C=e.getPixelForTick(0)-e.left,T=e.right-e.getPixelForTick(e.getTicks().length-1);S=y?(k=l?_*h.width+x*h.offset:x*(h.height-h.offset),l?x*(f.height-f.offset):_*f.width+x*f.offset):(k=h.width/2,f.width/2),e.paddingLeft=Math.max((k-C)*e.width/(e.width-C),0)+3,e.paddingRight=Math.max((S-T)*e.width/(e.width-T),0)+3}else{var D=r.mirror?0:p.width+v+m;t.width=Math.min(e.maxWidth,t.width+D),e.paddingTop=h.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),u?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){Y.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(cn(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,i;for(this.ticks=e.map(function(e){return e.value}),this.beforeTickToLabelConversion(),t=this.convertTicksToLabels(e)||this.ticks,this.afterTickToLabelConversion(),n=0,i=e.length;n<i;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this._labelSizes;return e||(this._labelSizes=e=pn(this.ctx,yn(this.options.ticks),this.getTicks(),this.longestTextCache),this.longestLabelWidth=e.widest.width),e},_parseValue:function(e){var t,n,i,r;return r=un(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),i=Math.min(t,n),Math.max(t,n)):(t=void 0,i=n=e=+this.getRightValue(e)),{min:i,max:r,start:t,end:n}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:Y.noop,getPixelForValue:Y.noop,getValueForPixel:Y.noop,getPixelForTick:function(e){var t=this.options.offset,n=this._ticks.length,i=1/Math.max(n-(t?0:1),1);return e<0||n-1<e?null:this.getPixelForDecimal(e*i+(t?i/2:0))},getPixelForDecimal:function(e){return this._reversePixels&&(e=1-e),this._startPixel+e*this._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:0<e&&0<t?e:0},_autoSkip:function(e){var t,n,i,r,o=this.options.ticks,a=this._length,s=o.maxTicksLimit||a/this._tickSize()+1,l=o.major.enabled?function(e){var t,n,i=[];for(t=0,n=e.length;t<n;t++)e[t].major&&i.push(t);return i}(e):[],u=l.length,c=l[0],d=l[u-1];if(s<u)return function(e,t,n){var i,r,o=0,a=t[0];for(n=Math.ceil(n),i=0;i<e.length;i++)r=e[i],i===a?(r._index=i,a=t[++o*n]):delete r.label}(e,l,u/s),bn(e);if(i=_n(l,e,0,s),0<u){for(t=0,n=u-1;t<n;t++)xn(e,i,l[t],l[t+1]);return r=1<u?(d-c)/(u-1):null,xn(e,i,Y.isNullOrUndef(r)?0:c-r,c),xn(e,i,d,Y.isNullOrUndef(r)?e.length:d+r),bn(e)}return xn(e,i),bn(e)},_tickSize:function(){var e=this.options.ticks,t=Y.toRadians(this.labelRotation),n=Math.abs(Math.cos(t)),i=Math.abs(Math.sin(t)),r=this._getLabelSizes(),o=e.autoSkipPadding||0,a=r?r.widest.width+o:0,s=r?r.highest.height+o:0;return this.isHorizontal()?a*i<s*n?a/n:s/i:s*i<a*n?s/n:a/i},_isVisible:function(){var e,t,n,i=this.chart,r=this.options.display;if("auto"!==r)return!!r;for(e=0,t=i.data.datasets.length;e<t;++e)if(i.isDatasetVisible(e)&&((n=i.getDatasetMeta(e)).xAxisID===this.id||n.yAxisID===this.id))return!0;return!1},_computeGridLineItems:function(e){function t(e){return P(_,e,E)}var n,i,r,o,a,s,l,u,c,d,h,f,p,g,m,v,y,b=this,_=b.chart,x=b.options,w=x.gridLines,k=x.position,S=w.offsetGridLines,C=b.isHorizontal(),T=b._ticksToDraw,D=T.length+(S?1:0),M=gn(w),O=[],E=w.drawBorder?hn(w.lineWidth,0,0):0,A=E/2,P=Y._alignPixel;for("top"===k?(n=t(b.bottom),l=b.bottom-M,c=n-A,h=t(e.top)+A,p=e.bottom):"bottom"===k?(n=t(b.top),h=e.top,p=t(e.bottom)-A,l=n+A,c=b.top+M):"left"===k?(n=t(b.right),s=b.right-M,u=n-A,d=t(e.left)+A,f=e.right):(n=t(b.left),d=e.left,f=t(e.right)-A,s=n+A,u=b.left+M),i=0;i<D;++i)r=T[i]||{},cn(r.label)&&i<T.length||(y=i===b.zeroLineIndex&&x.offset===S?(g=w.zeroLineWi
1dth,m=w.zeroLineColor,v=w.zeroLineBorderDash||[],w.zeroLineBorderDashOffset||0):(g=hn(w.lineWidth,i,1),m=hn(w.color,i,"rgba(0,0,0,0.1)"),v=w.borderDash||[],w.borderDashOffset||0),void 0!==(o=fn(b,r._index||i,S))&&(a=P(_,o,g),C?s=u=d=f=a:l=c=h=p=a,O.push({tx1:s,ty1:l,tx2:u,ty2:c,x1:d,y1:h,x2:f,y2:p,width:g,color:m,borderDash:v,borderDashOffset:y})));return O.ticksLength=D,O.borderValue=n,O},_computeLabelItems:function(){var e,t,n,i,r,o,a,s,l,u,c,d,h=this.options,f=h.ticks,p=h.position,g=f.mirror,m=this.isHorizontal(),v=this._ticksToDraw,y=yn(f),b=f.padding,_=gn(h.gridLines),x=-Y.toRadians(this.labelRotation),w=[];for(a="top"===p?(o=this.bottom-_-b,x?"left":"center"):"bottom"===p?(o=this.top+_+b,x?"right":"center"):"left"===p?(r=this.right-(g?0:_)-b,g?"left":"right"):(r=this.left+(g?0:_)+b,g?"right":"left"),e=0,t=v.length;e<t;++e)i=(n=v[e]).label,cn(i)||(s=this.getPixelForTick(n._index||e)+f.labelOffset,u=(l=n.major?y.major:y.minor).lineHeight,c=un(i)?i.length:1,d=m?(r=s,"top"===p?((x?1:.5)-c)*u:(x?0:.5)*u):(o=s,(1-c)*u/2),w.push({x:r,y:o,rotation:x,label:i,font:l,textOffset:d,textAlign:a}));return w},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var i,r,o,a,s,l=t.ctx,u=t.chart,c=Y._alignPixel,d=n.drawBorder?hn(n.lineWidth,0,0):0,h=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(o=0,a=h.length;o<a;++o)i=(s=h[o]).width,r=s.color,i&&r&&(l.save(),l.lineWidth=i,l.strokeStyle=r,l.setLineDash&&(l.setLineDash(s.borderDash),l.lineDashOffset=s.borderDashOffset),l.beginPath(),n.drawTicks&&(l.moveTo(s.tx1,s.ty1),l.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(l.moveTo(s.x1,s.y1),l.lineTo(s.x2,s.y2)),l.stroke(),l.restore());
vendor: 1,601 bytes, line 1
1if(d){var f,p,g,m,v=d,y=hn(n.lineWidth,h.ticksLength-1,1),b=h.borderValue;t.isHorizontal()?(f=c(u,t.left,v)-v/2,p=c(u,t.right,y)+y/2,g=m=b):(g=c(u,t.top,v)-v/2,m=c(u,t.bottom,y)+y/2,f=p=b),l.lineWidth=d,l.strokeStyle=hn(n.color,0),l.beginPath(),l.moveTo(f,g),l.lineTo(p,m),l.stroke()}}},_drawLabels:function(){if(this.options.ticks.display){var e,t,n,i,r,o,a,s,l=this.ctx,u=this._labelItems||(this._labelItems=this._computeLabelItems());for(e=0,n=u.length;e<n;++e){if(o=(r=u[e]).font,l.save(),l.translate(r.x,r.y),l.rotate(r.rotation),l.font=o.string,l.fillStyle=o.color,l.textBaseline="middle",l.textAlign=r.textAlign,a=r.label,s=r.textOffset,un(a))for(t=0,i=a.length;t<i;++t)l.fillText(""+a[t],0,s),s+=o.lineHeight;else l.fillText(a,0,s);l.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,n=e.options,i=n.scaleLabel;if(i.display){var r,o,a=dn(i.fontColor,W.global.defaultFontColor),s=Y.options._parseFont(i),l=Y.options.toPadding(i.padding),u=s.lineHeight/2,c=n.position,d=0;if(e.isHorizontal())r=e.left+e.width/2,o="bottom"===c?e.bottom-u-l.bottom:e.top+u+l.top;else{var h="left"===c;r=h?e.left+u+l.top:e.right-u-l.top,o=e.top+e.height/2,d=h?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(r,o),t.rotate(d),t.textAlign="center",t.textBaseline="middle",t.fillStyle=a,t.font=s.string,t.fillText(i.labelString,0,0),t.restore()}},draw:function(e){this._isVisible()&&(this._drawGrid(e),this._drawTitle(),this._drawLabels())},_layers:function(){var e=this,t=e.options,n=t.ticks&&t.ticks.z||0,i=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==i&&e.draw===e._draw?[{z:i,draw:function(){e._drawGri
1d.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:n,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:n,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(t){var n=this,i=n.isHorizontal();return n.chart._getSortedVisibleDatasetMetas().filter(function(e){return(!t||e.type===t)&&(i?e.xAxisID===n.id:e.yAxisID===n.id)})}});wn.prototype._draw=wn.prototype.draw;var kn=wn,Sn=Y.isNullOrUndef,Cn=kn.extend({determineDataLimits:function(){var e,t=this._getLabels(),n=this.options.ticks,i=n.min,r=n.max,o=0,a=t.length-1;void 0!==i&&0<=(e=t.indexOf(i))&&(o=e),void 0!==r&&0<=(e=t.indexOf(r))&&(a=e),this.minIndex=o,this.maxIndex=a,this.min=t[o],this.max=t[a]},buildTicks:function(){var e=this._getLabels(),t=this.minIndex,n=this.maxIndex;this.ticks=0===t&&n===e.length-1?e:e.slice(t,n+1)},getLabelForIndex:function(e,t){var n=this.chart;return n.getDatasetMeta(t).controller._getValueScaleId()===this.id?this.getRightValue(n.data.datasets[t].data[e]):this._getLabels()[e]},_configure:function(){var e=this.options.offset,t=this.ticks;kn.prototype._configure.call(this),this.isHorizontal()||(this._reversePixels=!this._reversePixels),t&&(this._startValue=this.minIndex-(e?.5:0),this._valueRange=Math.max(t.length-(e?0:1),1))},getPixelForValue:function(e,t,n){var i,r,o;return Sn(t)||Sn(n)||(e=this.chart.data.datasets[n].data[t]),Sn(e)||(i=this.isHorizontal()?e.x:e.y),(void 0!==i||void 0!==e&&isNaN(t))&&(r=this._getLabels(),e=Y.valueOrDefault(i,e),t=-1!==(o=r.indexOf(e))?o:t,isNaN(t)&&(t=e)),this.getPixelForDecimal((t-this._startValue)/this._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange);return Math.min(Math.max(t,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}}),Tn={position:"bottom"};Cn._defaults=Tn;var Dn=Y.noop,Mn=Y.isNullOrUndef;var On=kn.extend({getRightValue:function(e){return"string"==typeof e?+e:kn.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=Y.sign(e.min),i=Y.sign(e.max);n<0&&i<0?e.max=0:0<n&&0<i&&(e.min=0)}var r=void 0!==t.min||void 0!==t.suggestedMin,o=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),r!=o&&e.min>=e.max&&(r?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this.options.ticks,n=t.stepSize,i=t.maxTicksLimit;return n?e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(e=this._computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:Dn,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:Y.valueOrDefault(t.fixedStepSize,t.stepSize)},r=e.ticks=function(e,t){var n,i,r,o,a=[],s=e.stepSize,l=s||1,u=e.maxTicks-1,c=e.min,d=e.max,h=e.precision,f=t.min,p=t.max,g=Y.niceNum((p-f)/u/l)*l;if(g<1e-14&&Mn(c)&&Mn(d))return[f,p];u<(o=Math.ceil(p/g)-Math.floor(f/g))&&(g=Y.niceNum(o*g/u/l)*l),s||Mn(h)?n=Math.pow(10,Y._decimalPlaces(g)):(n=Math.pow(10,h),g=Math.ceil(g*n)/n),i=Math.floor(f/g)*g,r=Math.ceil(p/g)*g,s&&(!Mn(c)&&Y.almostWhole(c/g,g/1e3)&&(i=c),!Mn(d)&&Y.almostWhole(d/g,g/1e3)&&(r=d)),o=(r-i)/g,o=Y.almostEquals(o,Math.round(o),g/1e3)?Math.round(o):Math.ceil(o),i=Math.round(i*n)/n,r=Math.round(r*n)/n,a.push(Mn(c)?i:c);for(var m=1;m<o;++m)a.push(Math.round((i+m*g)*n)/n);return a.push(Mn(d)?r:d),a}(i,e);e.handleDirectionalChanges(),e.max=Y.max(r),e.min=Y.min(r),t.reverse?(r.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){this.ticksAsNumbers=this.ticks.slice(),this.zeroLineIndex=this.ticks.indexOf(0),kn.prototype.convertTicksToLabels.call(this)},_configure:function(){var e,t=this.getTicks(),n=this.min,i=this.max;kn.prototype._configure.call(this),this.options.offset&&t.length&&(n-=e=(i-n)/Math.max(t.length-1,1)/2,i+=e),this._startValue=n,this._endValue=i,this._valueRange=i-n}}),En={position:"left",ticks:{callback:ln.formatters.linear}};function An(e,t,n,i){var r,o,a,s,l,u,c=e.options,d=c.stacked,h=(r=t,o=d,s=[(a=n).type,void 0===o&&void 0===a.stack?a.index:"",a.stack].join("."),void 0===r[s]&&(r[s]={pos:[],neg:[]}),r[s]),f=h.pos,p=h.neg,g=i.length;for(l=0;l<g;++l)u=e._parseValue(i[l]),isNaN(u.min)||isNaN(u.max)||n.data[l].hidden||(f[l]=f[l]||0,p[l]=p[l]||0,c.relativePoints?f[l]=100:u.min<0||u.max<0?p[l]+=u.min:f[l]+=u.max)}function Pn(e,t,n){var i,r,o=n.length;for(i=0;i<o;++i)r=e._parseValue(n[i]),isNaN(r.min)||isNaN(r.max)||t.data[i].hidden||(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}var In=On.extend({determineDataLimits:function(){var e,t,n,i,r=this,o=r.options,a=r.chart.data.datasets,s=r._getMatchingVisibleMetas(),l=o.stacked,u={},c=s.length;if(r.min=Number.POSITIVE_INFINITY,r.max=Number.NEGATIVE_INFINITY,void 0===l)for(e=0;!l&&e<c;
1++e)l=void 0!==(t=s[e]).stack;for(e=0;e<c;++e)n=a[(t=s[e]).index].data,l?An(r,u,t,n):Pn(r,t,n);Y.each(u,function(e){i=e.pos.concat(e.neg),r.min=Math.min(r.min,Y.min(i)),r.max=Math.max(r.max,Y.max(i))}),r.min=Y.isFinite(r.min)&&!isNaN(r.min)?r.min:0,r.max=Y.isFinite(r.max)&&!isNaN(r.max)?r.max:1,r.handleTickRangeOptions()},_computeTickLimit:function(){var e;return this.isHorizontal()?Math.ceil(this.width/40):(e=Y.options._parseFont(this.options.ticks),Math.ceil(this.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){return this.getPixelForDecimal((this.getRightValue(e)-this._startValue)/this._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}}),Nn=En;In._defaults=Nn;var Ln=Y.valueOrDefault,jn=Y.math.log10;var Fn={position:"left",ticks:{callback:ln.formatters.logarithmic}};function Rn(e,t){return Y.isFinite(e)&&0<=e?e:t}var Wn=kn.extend({determineDataLimits:function(){var e,t,n,i,r,o,a=this,s=a.options,l=a.chart,u=l.data.datasets,c=a.isHorizontal();function d(e){return c?e.xAxisID===a.id:e.yAxisID===a.id}a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,a.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(e=0;e<u.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t)&&void 0!==t.stack){h=!0;break}if(s.stacked||h){var f={};for(e=0;e<u.length;e++){var p=[(t=l.getDatasetMeta(e)).type,void 0===s.stacked&&void 0===t.stack?e:"",t.stack].join(".");if(l.isDatasetVisible(e)&&d(t))for(void 0===f[p]&&(f[p]=[]),r=0,o=(i=u[e].data).length;r<o;r++){var g=f[p];n=a._parseValue(i[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].hidden||n.min<0||n.max<0||(g[r]=g[r]||0,g[r]+=n.max)}}Y.each(f,function(e){if(0<e.length){var t=Y.min(e),n=Y.max(e);a.min=Math.min(a.min,t),a.max=Math.max(a.max,n)}})}else for(e=0;e<u.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t))for(r=0,o=(i=u[e].data).length;r<o;r++)n=a._parseValue(i[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].hidden||n.min<0||n.max<0||(a.min=Math.min(n.min,a.min),a.max=Math.max(n.max,a.max),0!==n.min&&(a.minNotZero=Math.min(n.min,a.minNotZero)));a.min=Y.isFinite(a.min)?a.min:null,a.max=Y.isFinite(a.max)?a.max:null,a.minNotZero=Y.isFinite(a.minNotZero)?a.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=Rn(t.min,e.min),e.max=Rn(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(jn(e.min))-1),e.max=Math.pow(10,Math.floor(jn(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(jn(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(jn(e.min))+1):10),null===e.minNotZero&&(0<e.min?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(jn(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),i={min:Rn(t.min),max:Rn(t.max)},r=e.ticks=function(e,t){var n,i,r=[],o=Ln(e.min,Math.pow(10,Math.floor(jn(t.min)))),a=Math.floor(jn(t.max)),s=Math.ceil(t.max/Math.pow(10,a));0===o?(n=Math.floor(jn(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),r.push(o),o=i*Math.pow(10,n)):(n=Math.floor(jn(o)),i=Math.floor(o/Math.pow(10,n)));for(var l=n<0?Math.pow(10,Math.abs(n)):1;r.push(o),10===++i&&(i=1,l=0<=++n?1:l),o=Math.round(i*Math.pow(10,n)*l)/l,n<a||n===a&&i<s;);var u=Ln(e.max,o);return r.push(u),r}(i,e);e.max=Y.max(r),e.min=Y.min(r),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&r.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),kn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(jn(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;kn.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Ln(e.options.ticks.fontSize,W.global.defaultFontSize)/e._length),e._startValue=jn(t),e._valueOffset=n,e._valueRange=(jn(e.max)-jn(t))/(1-n)},getPixelForValue:function(e){var t=0;return(e=+this.getRightValue(e))>this.min&&0<e&&(t=(jn(e)-this._startValue)/this._valueRange+this._valueOffset),this.getPixelForDecimal(t)},getValueForPixel:function(e){var t=this.getDecimalForPixel(e);return 0===t&&0===this.min?0:Math.pow(10,this._startValue+(t-this._valueOffset)*this._valueRange)}}),Hn=Fn;Wn._defaults=Hn;var Bn=Y.valueOrDefault,Vn=Y.valueAtIndexOrDefault,zn=Y.options.resolve,Yn={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:ln.formatters.linear}
1,pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function qn(e){var t=e.ticks;return t.display&&e.display?Bn(t.fontSize,W.global.defaultFontSize)+2*t.backdropPaddingY:0}function Un(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||r<e?{start:t-n,end:t}:{start:t,end:t+n}}function $n(e,t,n,i){var r,o,a=n.y+i/2;if(Y.isArray(t))for(r=0,o=t.length;r<o;++r)e.fillText(t[r],n.x,a),a+=i;else e.fillText(t,n.x,a)}function Gn(e){return Y.isNumber(e)?e:0}var Qn=On.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=qn(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var r=this,n=r.chart,o=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;Y.each(n.data.datasets,function(e,t){if(n.isDatasetVisible(t)){var i=n.getDatasetMeta(t);Y.each(e.data,function(e,t){var n=+r.getRightValue(e);isNaN(n)||i.data[t].hidden||(o=Math.min(n,o),a=Math.max(n,a))})}}),r.min=o===Number.POSITIVE_INFINITY?0:o,r.max=a===Number.NEGATIVE_INFINITY?0:a,r.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/qn(this.options))},convertTicksToLabels:function(){var t=this;On.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(function(){var e=Y.callback(t.options.pointLabels.callback,arguments,t);return e||0===e?e:""})},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this.options;e.display&&e.pointLabels.display?function(e){var t,n,i,r=Y.options._parseFont(e.options.pointLabels),o={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={};e.ctx.font=r.string,e._pointLabelSizes=[];var s,l,u,c=e.chart.data.labels.length;for(t=0;t<c;t++){i=e.getPointPosition(t,e.drawingArea+5),s=e.ctx,l=r.lineHeight,u=e.pointLabels[t],n=Y.isArray(u)?{w:Y.longestText(s,s.font,u),h:u.length*l}:{w:s.measureText(u).width,h:l},e._pointLabelSizes[t]=n;var d=e.getIndexAngle(t),h=Y.toDegrees(d)%360,f=Un(h,i.x,n.w,0,180),p=Un(h,i.y,n.h,90,270);f.start<o.l&&(o.l=f.start,a.l=d),f.end>o.r&&(o.r=f.end,a.r=d),p.start<o.t&&(o.t=p.start,a.t=d),p.end>o.b&&(o.b=p.end,a.b=d)}e.setReductions(e.drawingArea,o,a)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var i=t.l/Math.sin(n.l),r=Math.max(t.r-this.width,0)/Math.sin(n.r),o=-t.t/Math.cos(n.t),a=-Math.max(t.b-(this.height-this.paddingTop),0)/Math.cos(n.b);i=Gn(i),r=Gn(r),o=Gn(o),a=Gn(a),this.drawingArea=Math.min(Math.floor(e-(i+r)/2),Math.floor(e-(o+a)/2)),this.setCenterPoint(i,r,o,a)},setCenterPoint:function(e,t,n,i){var r=this,o=r.width-t-r.drawingArea,a=e+r.drawingArea,s=n+r.drawingArea,l=r.height-r.paddingTop-i-r.drawingArea;r.xCenter=Math.floor((a+o)/2+r.left),r.yCenter=Math.floor((s+l)/2+r.top+r.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?360+n:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){if(Y.isNullOrUndef(e))return NaN;var t=this.drawingArea/(this.max-this.min);return this.options.ticks.reverse?(this.max-e)*t:(e-this.min)*t},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(n)*t+this.xCenter,y:Math.sin(n)*t+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this.min,n=this.max;return this.getPointPositionForValue(e||0,this.beginAtZero?0:t<0&&n<0?n:0<t&&0<n?t:0)},_drawGrid:function(){var e,n,t,i=this,r=i.ctx,o=i.options,a=o.gridLines,s=o.angleLines,l=Bn(s.lineWidth,a.lineWidth),u=Bn(s.color,a.color);if(o.pointLabels.display&&function(e){var t,n,i,r,o=e.ctx,a=e.options,s=a.pointLabels,l=qn(a),u=e.getDistanceFromCenterForValue(a.ticks.reverse?e.min:e.max),c=Y.options._parseFont(s);o.save(),o.font=c.string,o.textBaseline="middle";for(var d=e.chart.data.labels.length-1;0<=d;d--){var h=0===d?l/2:0,f=e.getPointPosition(d,u+h+5),p=Vn(s.fontColor,d,W.global.defaultFontColor);o.fillStyle=p;var g=e.getIndexAngle(d),m=Y.toDegrees(g);o.textAlign=0===(r=m)||180===r?"center":r<180?"left":"right",t=m,n=e._pointLabelSizes[d],i=f,90===t||270===t?i.y-=n.h/2:(270<t||t<90)&&(i.y-=n.h),$n(o,e.pointLabels[d],f,c.lineHeight)}
1o.restore()}(i),a.display&&Y.each(i.ticks,function(e,t){0!==t&&(n=i.getDistanceFromCenterForValue(i.ticksAsNumbers[t]),function(e,t,n,i){var r,o=e.ctx,a=t.circular,s=e.chart.data.labels.length,l=Vn(t.color,i-1),u=Vn(t.lineWidth,i-1);if((a||s)&&l&&u){if(o.save(),o.strokeStyle=l,o.lineWidth=u,o.setLineDash&&(o.setLineDash(t.borderDash||[]),o.lineDashOffset=t.borderDashOffset||0),o.beginPath(),a)o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{r=e.getPointPosition(0,n),o.moveTo(r.x,r.y);for(var c=1;c<s;c++)r=e.getPointPosition(c,n),o.lineTo(r.x,r.y)}o.closePath(),o.stroke(),o.restore()}}(i,a,n,t))}),s.display&&l&&u){for(r.save(),r.lineWidth=l,r.strokeStyle=u,r.setLineDash&&(r.setLineDash(zn([s.borderDash,a.borderDash,[]])),r.lineDashOffset=zn([s.borderDashOffset,a.borderDashOffset,0])),e=i.chart.data.labels.length-1;0<=e;e--)n=i.getDistanceFromCenterForValue(o.ticks.reverse?i.min:i.max),t=i.getPointPosition(e,n),r.beginPath(),r.moveTo(i.xCenter,i.yCenter),r.lineTo(t.x,t.y),r.stroke();r.restore()}},_drawLabels:function(){var n=this,i=n.ctx,r=n.options.ticks;if(r.display){var o,a,e=n.getIndexAngle(0),s=Y.options._parseFont(r),l=Bn(r.fontColor,W.global.defaultFontColor);i.save(),i.font=s.string,i.translate(n.xCenter,n.yCenter),i.rotate(e),i.textAlign="center",i.textBaseline="middle",Y.each(n.ticks,function(e,t){0===t&&!r.reverse||(o=n.getDistanceFromCenterForValue(n.ticksAsNumbers[t]),r.showLabelBackdrop&&(a=i.measureText(e).width,i.fillStyle=r.backdropColor,i.fillRect(-a/2-r.backdropPaddingX,-o-s.size/2-r.backdropPaddingY,a+2*r.backdropPaddingX,s.size+2*r.backdropPaddingY)),i.fillStyle=l,i.fillText(e,0,-o))}),i.restore()}}
vendor: 5,578 bytes, line 1
1,_drawTitle:Y.noop}),Kn=Yn;Qn._defaults=Kn;var Xn=Y._deprecated,Zn=Y.options.resolve,Jn=Y.valueOrDefault,ei=Number.MIN_SAFE_INTEGER||-9007199254740991,ti=Number.MAX_SAFE_INTEGER||9007199254740991,ni={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ii=Object.keys(ni);function ri(e,t){return e-t}function oi(e){return Y.valueOrDefault(e.time.min,e.ticks.min)}function ai(e){return Y.valueOrDefault(e.time.max,e.ticks.max)}function si(e,t,n,i){var r=function(e,t,n){for(var i,r,o,a=0,s=e.length-1;0<=a&&a<=s;){if(r=e[(i=a+s>>1)-1]||null,o=e[i],!r)return{lo:null,hi:o};if(o[t]<n)a=1+i;else{if(!(r[t]>n))return{lo:r,hi:o};s=i-1}}return{lo:o,hi:null}}(e,t,n),o=r.lo?r.hi?r.lo:e[e.length-2]:e[0],a=r.lo?r.hi?r.hi:e[e.length-1]:e[1],s=a[t]-o[t],l=s?(n-o[t])/s:0,u=(a[i]-o[i])*l;return o[i]+u}function li(e,t){var n=e._adapter,i=e.options.time,r=i.parser,o=r||i.format,a=t;return"function"==typeof r&&(a=r(a)),Y.isFinite(a)||(a="string"==typeof o?n.parse(a,o):n.parse(a)),null!==a?+a:(r||"function"!=typeof o||(a=o(t),Y.isFinite(a)||(a=n.parse(a))),a)}function ui(e,t){if(Y.isNullOrUndef(t))return null;var n=e.options.time,i=li(e,e.getRightValue(t));return null===i||n.round&&(i=+e._adapter.startOf(i,n.round)),i}function ci(e,t,n,i){var r,o,a,s=ii.length;for(r=ii.indexOf(e);r<s-1;++r)if(a=(o=ni[ii[r]]).steps?o.steps:ti,o.common&&Math.ceil((n-t)/(a*o.size))<=i)return ii[r];return ii[s-1]}function di(e,t,n){var i,r,o=[],a={},s=t.length;for(i=0;i<s;++i)a[r=t[i]]=i,o.push({value:r,major:!1});return 0!==s&&n?function(e,t,n,i){var r,o,a=e._adapter,s=+a.startOf(t[0].value,i),l=t[t.length-1].value;for(r=s;r<=l;r=+a.add(r,1,i))0<=(o=n[r])&&(t[o].major=!0);return t}(e,o,a,n):o}var hi=kn.extend({initialize:function(){this.mergeTicksOptions(),kn.prototype.initialize.call(this)},update:function(){var e=this.options,t=e.time||(e.time={}),n=this._adapter=new sn._date(e.adapters.date);return Xn("time scale",t.format,"time.format","time.parser"),Xn("time scale",t.min,"time.min","ticks.min"),Xn("time scale",t.max,"time.max","ticks.max"),Y.mergeIf(t.displayFormats,n.formats()),kn.prototype.update.apply(this,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),kn.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,i,r,o,a,s=this,l=s.chart,u=s._adapter,c=s.options,d=c.time.unit||"day",h=ti,f=ei,p=[],g=[],m=[],v=s._getLabels();for(e=0,n=v.length;e<n;++e)m.push(ui(s,v[e]));for(e=0,n=(l.data.datasets||[]).length;e<n;++e)if(l.isDatasetVisible(e))if(r=l.data.datasets[e].data,Y.isObject(r[0]))for(g[e]=[],t=0,i=r.length;t<i;++t)o=ui(s,r[t]),p.push(o),g[e][t]=o;else g[e]=m.slice(0),a||(p=p.concat(m),a=!0);else g[e]=[];m.length&&(h=Math.min(h,m[0]),f=Math.max(f,m[m.length-1])),p.length&&(p=1<n?function(e){var t,n,i,r={},o=[];for(t=0,n=e.length;t<n;++t)r[i=e[t]]||(r[i]=!0,o.push(i));return o}(p).sort(ri):p.sort(ri),h=Math.min(h,p[0]),f=Math.max(f,p[p.length-1])),h=ui(s,oi(c))||h,f=ui(s,ai(c))||f,h=h===ti?+u.startOf(Date.now(),d):h,f=f===ei?+u.endOf(Date.now(),d)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:p,datasets:g,labels:m}},buildTicks:function(){var e,t,n,i,r,o,a,s,l,u=this,c=u.min,d=u.max,h=u.options,f=h.ticks,p=h.time,g=u._timestamps,m=[],v=u.getLabelCapacity(c),y=f.source,b=h.distribution;for(g="data"===y||"auto"===y&&"series"===b?g.data:"labels"===y?g.labels:function(e,t,n,i){var r,o=e._adapter,a=e.options,s=a.time,l=s.unit||ci(s.minUnit,t,n,i),u=Zn([s.stepSize,s.unitStepSize,1]),c="week"===l&&s.isoWeekday,d=t,h=[];if(c&&(d=+o.startOf(d,"isoWeek",c)),d=+o.startOf(d,c?"day":l),o.diff(n,t,l)>1e5*u)throw t+" and "+n+" are too far apart with stepSize of "+u+" "+l;for(r=d;r<n;r=+o.add(r,u,l))h.push(r);return r!==n&&"ticks"!==a.bounds||h.push(r),h}(u,c,d,v),"ticks"===h.bounds&&g.length&&(c=g[0],d=g[g.length-1]),c=ui(u,oi(h))||c,d=ui(u,ai(h))||d,e=0,t=g.length;e<t;++e)c<=(n=g[e])&&n<=d&&m.push(n);return u.min=c,u.max=d,u._unit=p.unit||(f.autoSkip?ci(p.minUnit,u.min,u.max,v):function(e,t,n,i,r){var o,a;for(o=ii.length-1;o>=ii.indexOf(n);o--)if(a=ii[o],ni[a].common&&e._adapter.diff(r,i,a)>=t-1)return a;return ii[n?ii.indexOf(n):0]}(u,m.length,p.minUnit,u.min,u.max)),u._majorUnit=f.major.enabled&&"year"!==u._unit?function(e){for(var t=ii.indexOf(e)+1,n=ii.length;t<n;++t)if(ni[ii[t]].common)return ii[t]}(u._unit):void 0,u._table=function(e,t,n,i){if("linear"===i||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var r,o,a,s,l,u=[],c=[t];for(r=0,o=e.length;r<o;++r)t<(s=e[r])&&s<n&&c.push(s);for(c.push(n),r=0,o=c.length;r<o;++r)l=c[r+1],a=c[r-1],s=c[r],void 0!==a&&void 0!==l&&Math.round((l+a)/2)===s||u.push({time:s,pos:r/(o-1)});return u}(u._timestamps.data,c,d,b),u._offsets=(i=u._table,r=m,l=s=0,h.offset&&r.length&&(o=si(i,"time",r[0],"pos"),s=1===r.length?1-o:(si(i,"time",r[1],"pos")-o)/2,a=si(i,"time",r[r.length-1],"pos"),l=1===r.length?a:(a-si(i,"time",r[r.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}),f.reverse&&m.reverse(),di(u,m,u._majorUnit)},getLabelForIndex:function(e,t){var n=this._adapter,i=this.chart.data,r=this.options.time,o=i.labels&&e<i.labels.length?i.labels[e]:"",a=i.datasets[t].data[e];return Y.isObject(a)&&(o=this.getRightValue(a)),r.tooltipFormat?n.format(li(this,o),r.tooltipFormat):"string"==typeof o?o:n.format(li(this,o),r.displayFormats.datetime)}
1,tickFormatFunction:function(e,t,n,i){var r=this._adapter,o=this.options,a=o.time.displayFormats,s=a[this._unit],l=this._majorUnit,u=a[l],c=n[t],d=o.ticks,h=l&&u&&c&&c.major,f=r.format(e,i||(h?u:s)),p=h?d.major:d.minor,g=Zn([p.callback,p.userCallback,d.callback,d.userCallback]);return g?g(f,t,n):f},convertTicksToLabels:function(e){var t,n,i=[];for(t=0,n=e.length;t<n;++t)i.push(this.tickFormatFunction(e[t].value,t,e));return i},getPixelForOffset:function(e){var t=this._offsets,n=si(this._table,"time",e,"pos");return this.getPixelForDecimal((t.start+n)*t.factor)},getPixelForValue:function(e,t,n){var i=null;if(void 0!==t&&void 0!==n&&(i=this._timestamps.datasets[n][t]),null===i&&(i=ui(this,e)),null!==i)return this.getPixelForOffset(i)},getPixelForTick:function(e){var t=this.getTicks();return 0<=e&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end,i=si(this._table,"pos",n,"time");return this._adapter._create(i)},_getLabelSize:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,i=Y.toRadians(this.isHorizontal()?t.maxRotation:t.minRotation),r=Math.cos(i),o=Math.sin(i),a=Jn(t.fontSize,W.global.defaultFontSize);return{w:n*r+a*o,h:n*o+a*r}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this.options.time,n=t.displayFormats,i=n[t.unit]||n.millisecond,r=this.tickFormatFunction(e,0,di(this,[e],this._majorUnit),i),o=this._getLabelSize(r),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h);return this.options.offset&&a--,0<a?a:1}}),fi={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};hi._defaults=fi;var pi={category:Cn,linear:In,logarithmic:Wn,radialLinear:Qn,time:hi},gi=e(function(Ho,e){Ho.exports=function(){var t,r;function u(){return t.apply(null,arguments)}function e(e){t=e}function a(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function s(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function l(e){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(e).length===0}else{var t;for(t in e){if(e.hasOwnProperty(t)){return false}}return true}}function o(e){return e===void 0}function c(e){return typeof e==="number"||Object.prototype.toString.call(e)==="[object Number]"}function d(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function n(e,t){var n=[],i;for(i=0;i<e.length;++i){n.push(t(e[i],i))}return n}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var n in t){if(h(t,n)){e[n]=t[n]}}if(h(t,"toString")){e.toString=t.toString}if(h(t,"valueOf")){e.valueOf=t.valueOf}return e}function p(e,t,n,i){return Un(e,t,n,i,true).utc()}function i(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],meridiem:null,rfc2822:false,weekdayMismatch:false}}function g(e){if(e._pf==null){e._pf=i()}return e._pf}if(Array.prototype.some){r=Array.prototype.some}else{r=function(e){var t=Object(this);var n=t.length>>>0;for(var i=0;i<n;i++){if(i in t&&e.call(this,t[i],i,t)){return true}}return false}}function m(e){if(e._isValid==null){var t=g(e);var n=r.call(t.parsedDateParts,function(e){return e!=null});var i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict){i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(e)){e._isValid=i}else{return i}}return e._isValid}function v(e){var t=p(NaN);if(e!=null){f(g(t),e)}else{g(t).userInvalidated=true}return t}var y=u.momentProperties=[];function b(e,t){var n,i,r;if(!o(t._isAMomentObject)){e._isAMomentObject=t._isAMomentObject}if(!o(t._i)){e._i=t._i}if(!o(t._f)){e._f=t._f}if(!o(t._l)){e._l=t._l}if(!o(t._strict)){e._strict=t._strict}if(!o(t._tzm)){e._tzm=t._tzm}if(!o(t._isUTC)){e._isUTC=t._isUTC}if(!o(t._offset)){e._offset=t._offset}if(!o(t._pf)){e._pf=g(t)}if(!o(t._locale)){e._locale=t._locale}if(y.length>0){for(n=0;n<y.length;n++){i=y[n];r=t[i];if(!o(r)){e[i]=r}}}return e}var _=false;function x(e){b(this,e);this._d=new Date(e._d!=null?e._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(_===false){_=true;u.updateOffset(this);_=false}}function w(e){return e instanceof x||e!=null&&e._isAMomentObject!=null}function k(e){if(e<0){return Math.ceil(e)||0}else{return Math.floor(e)}}function S(e){var t=+e,n=0;if(t!==0&&isFinite(t)){n=k(t)}return n}
1function C(e,t,n){var i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),o=0,a;for(a=0;a<i;a++){if(n&&e[a]!==t[a]||!n&&S(e[a])!==S(t[a])){o++}}return o+r}function T(e){if(u.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+e)}}function D(r,o){var a=true;return f(function(){if(u.deprecationHandler!=null){u.deprecationHandler(null,r)}if(a){var e=[];var t;for(var n=0;n<arguments.length;n++){t="";if(typeof arguments[n]==="object"){t+="\n["+n+"] ";for(var i in arguments[0]){t+=i+": "+arguments[0][i]+", "}t=t.slice(0,-2)}else{t=arguments[n]}e.push(t)}T(r+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);a=false}return o.apply(this,arguments)},o)}var M={},O;function E(e,t){if(u.deprecationHandler!=null){u.deprecationHandler(e,t)}if(!M[e]){T(t);M[e]=true}}function A(e){return e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function P(e){var t,n;for(n in e){t=e[n];if(A(t)){this[n]=t}else{this["_"+n]=t}}this._config=e;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function I(e,t){var n=f({},e),i;for(i in t){if(h(t,i)){if(s(e[i])&&s(t[i])){n[i]={};f(n[i],e[i]);f(n[i],t[i])}else if(t[i]!=null){n[i]=t[i]}else{delete n[i]}}}for(i in e){if(h(e,i)&&!h(t,i)&&s(e[i])){n[i]=f({},n[i])}}return n}function N(e){if(e!=null){this.set(e)}}if(u.suppressDeprecationWarnings=false,u.deprecationHandler=null,Object.keys){O=Object.keys}else{O=function(e){var t,n=[];for(t in e){if(h(e,t)){n.push(t)}}return n}}var L={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function j(e,t,n){var i=this._calendar[e]||this._calendar["sameElse"];return A(i)?i.call(t,n):i}var F={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function R(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];if(t||!n){return t}this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)});return this._longDateFormat[e]}var W="Invalid date";function H(){return this._invalidDate}var B="%d",V=/\d{1,2}/;function z(e){return this._ordinal.replace("%d",e)}var Y={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function q(e,t,n,i){var r=this._relativeTime[n];return A(r)?r(e,t,n,i):r.replace(/%d/i,e)}function U(e,t){var n=this._relativeTime[e>0?"future":"past"];return A(n)?n(t):n.replace(/%s/i,t)}var $={};function G(e,t){var n=e.toLowerCase();$[n]=$[n+"s"]=$[t]=e}function Q(e){return typeof e==="string"?$[e]||$[e.toLowerCase()]:undefined}function K(e){var t={},n,i;for(i in e){if(h(e,i)){n=Q(i);if(n){t[n]=e[i]}}}return t}var X={};function Z(e,t){X[e]=t}function J(e){var t=[];for(var n in e){t.push({unit:n,priority:X[n]})}t.sort(function(e,t){return e.priority-t.priority});return t}function ee(e,t,n){var i=""+Math.abs(e),r=t-i.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var te=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},re={};function oe(e,t,n,i){var r=i;if(typeof i==="string"){r=function(){return this[i]()}}if(e){re[e]=r}if(t){re[t[0]]=function(){return ee(r.apply(this,arguments),t[1],t[2])}}if(n){re[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)}}}function ae(e){if(e.match(/\[[\s\S]/)){return e.replace(/^\[|\]$/g,"")}return e.replace(/\\/g,"")}function se(i){var r=i.match(te),e,o;for(e=0,o=r.length;e<o;e++){if(re[r[e]]){r[e]=re[r[e]]}else{r[e]=ae(r[e])}}return function(e){var t="",n;for(n=0;n<o;n++){t+=A(r[n])?r[n].call(e,i):r[n]}return t}}function le(e,t){if(!e.isValid()){return e.localeData().invalidDate()}t=ue(t,e.localeData());ie[t]=ie[t]||se(t);return ie[t](e)}function ue(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}ne.lastIndex=0;while(n>=0&&ne.test(e)){e=e.replace(ne,i);ne.lastIndex=0;n-=1}return e}var ce=/\d/,de=/\d\d/,he=/\d{3}/,fe=/\d{4}
1/,pe=/[+-]?\d{6}/,ge=/\d\d?/,me=/\d\d\d\d?/,ve=/\d\d\d\d\d\d?/,ye=/\d{1,3}/,be=/\d{1,4}/,_e=/[+-]?\d{1,6}/,xe=/\d+/,we=/[+-]?\d+/,ke=/Z|[+-]\d\d:?\d\d/gi,Se=/Z|[+-]\d\d(?::?\d\d)?/gi,Ce=/[+-]?\d+(\.\d{1,3})?/,Te=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,De={};function Me(e,n,i){De[e]=A(n)?n:function(e,t){return e&&i?i:n}}function Oe(e,t){if(!h(De,e)){return new RegExp(Ee(e))}return De[e](t._strict,t._locale)}function Ee(e){return Ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function Ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Pe={};function Ie(e,n){var t,i=n;if(typeof e==="string"){e=[e]}if(c(n)){i=function(e,t){t[n]=S(e)}}for(t=0;t<e.length;t++){Pe[e[t]]=i}}function Ne(e,r){Ie(e,function(e,t,n,i){n._w=n._w||{};r(e,n._w,n,i)})}function Le(e,t,n){if(t!=null&&h(Pe,e)){Pe[e](t,n._a,n,e)}}var je=0,Fe=1,Re=2,We=3,He=4,Be=5,Ve=6,ze=7,Ye=8;function qe(e){return Ue(e)?366:365}function Ue(e){return e%4===0&&e%100!==0||e%400===0}oe("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),oe(0,["YY",2],0,function(){return this.year()%100}),oe(0,["YYYY",4],0,"year"),oe(0,["YYYYY",5],0,"year"),oe(0,["YYYYYY",6,true],0,"year"),G("year","y"),Z("year",1),Me("Y",we),Me("YY",ge,de),Me("YYYY",be,fe),Me("YYYYY",_e,pe),Me("YYYYYY",_e,pe),Ie(["YYYYY","YYYYYY"],je),Ie("YYYY",function(e,t){t[je]=e.length===2?u.parseTwoDigitYear(e):S(e)}),Ie("YY",function(e,t){t[je]=u.parseTwoDigitYear(e)}),Ie("Y",function(e,t){t[je]=parseInt(e,10)}),u.parseTwoDigitYear=function(e){return S(e)+(S(e)>68?1900:2e3)};var $e=Ke("FullYear",true),Ge;function Qe(){return Ue(this.year())}function Ke(t,n){return function(e){if(e!=null){Ze(this,t,e);u.updateOffset(this,n);return this}else{return Xe(this,t)}}}function Xe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ze(e,t,n){if(e.isValid()&&!isNaN(n)){if(t==="FullYear"&&Ue(e.year())&&e.month()===1&&e.date()===29){e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),nt(n,e.month()))}else{e._d["set"+(e._isUTC?"UTC":"")+t](n)}}}function Je(e){e=Q(e);if(A(this[e])){return this[e]()}return this}function et(e,t){if(typeof e==="object"){e=K(e);var n=J(e);for(var i=0;i<n.length;i++){this[n[i].unit](e[n[i].unit])}}else{e=Q(e);if(A(this[e])){return this[e](t)}}return this}function tt(e,t){return(e%t+t)%t}if(Array.prototype.indexOf){Ge=Array.prototype.indexOf}else{Ge=function(e){var t;for(t=0;t<this.length;++t){if(this[t]===e){return t}}return-1}}function nt(e,t){if(isNaN(e)||isNaN(t)){return NaN}var n=tt(t,12);e+=(t-n)/12;return n===1?Ue(e)?29:28:31-n%7%2}oe("M",["MM",2],"Mo",function(){return this.month()+1}),oe("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),oe("MMMM",0,0,function(e){return this.localeData().months(this,e)}),G("month","M"),Z("month",8),Me("M",ge),Me("MM",ge,de),Me("MMM",function(e,t){return t.monthsShortRegex(e)}),Me("MMMM",function(e,t){return t.monthsRegex(e)}),Ie(["M","MM"],function(e,t){t[Fe]=S(e)-1}),Ie(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);if(r!=null){t[Fe]=r}else{g(n).invalidMonth=e}});var it=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_");function ot(e,t){if(!e){return a(this._months)?this._months:this._months["standalone"]}return a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||it).test(t)?"format":"standalone"][e.month()]}var at="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function st(e,t){if(!e){return a(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}return a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[it.test(t)?"format":"standalone"][e.month()]}function lt(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(i=0;i<12;++i){o=p([2e3,i]);this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase();this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase()}}if(n){if(t==="MMM"){r=Ge.call(this._shortMonthsParse,a);return r!==-1?r:null}else{r=Ge.call(this._longMonthsParse,a);return r!==-1?r:null}}else{if(t==="MMM"){r=Ge.call(this._shortMonthsParse,a);if(r!==-1){return r}r=Ge.call(this._longMonthsParse,a);return r!==-1?r:null}else{r=Ge.call(this._longMonthsParse,a);if(r!==-1){return r}r=Ge.call(this._shortMonthsParse,a);return r!==-1?r:null}}}function ut(e,t,n){var i,r,o;
1if(this._monthsParseExact){return lt.call(this,e,t,n)}if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[]}for(i=0;i<12;i++){r=p([2e3,i]);if(n&&!this._longMonthsParse[i]){this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i");this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")}if(!n&&!this._monthsParse[i]){o="^"+this.months(r,"")+"|^"+this.monthsShort(r,"");this._monthsParse[i]=new RegExp(o.replace(".",""),"i")}if(n&&t==="MMMM"&&this._longMonthsParse[i].test(e)){return i}else if(n&&t==="MMM"&&this._shortMonthsParse[i].test(e)){return i}else if(!n&&this._monthsParse[i].test(e)){return i}}}function ct(e,t){var n;if(!e.isValid()){return e}if(typeof t==="string"){if(/^\d+$/.test(t)){t=S(t)}else{t=e.localeData().monthsParse(t);if(!c(t)){return e}}}n=Math.min(e.date(),nt(e.year(),t));e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n);return e}function dt(e){if(e!=null){ct(this,e);u.updateOffset(this,true);return this}else{return Xe(this,"Month")}}function ht(){return nt(this.year(),this.month())}var ft=Te;function pt(e){if(this._monthsParseExact){if(!h(this,"_monthsRegex")){vt.call(this)}if(e){return this._monthsShortStrictRegex}else{return this._monthsShortRegex}}else{if(!h(this,"_monthsShortRegex")){this._monthsShortRegex=ft}return this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}}var gt=Te;function mt(e){if(this._monthsParseExact){if(!h(this,"_monthsRegex")){vt.call(this)}if(e){return this._monthsStrictRegex}else{return this._monthsRegex}}else{if(!h(this,"_monthsRegex")){this._monthsRegex=gt}return this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}}function vt(){function e(e,t){return t.length-e.length}var t=[],n=[],i=[],r,o;for(r=0;r<12;r++){o=p([2e3,r]);t.push(this.monthsShort(o,""));n.push(this.months(o,""));i.push(this.months(o,""));i.push(this.monthsShort(o,""))}t.sort(e);n.sort(e);i.sort(e);for(r=0;r<12;r++){t[r]=Ae(t[r]);n[r]=Ae(n[r])}for(r=0;r<24;r++){i[r]=Ae(i[r])}this._monthsRegex=new RegExp("^("+i.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function yt(e,t,n,i,r,o,a){var s;if(e<100&&e>=0){s=new Date(e+400,t,n,i,r,o,a);if(isFinite(s.getFullYear())){s.setFullYear(e)}}else{s=new Date(e,t,n,i,r,o,a)}return s}function bt(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400;t=new Date(Date.UTC.apply(null,n));if(isFinite(t.getUTCFullYear())){t.setUTCFullYear(e)}}else{t=new Date(Date.UTC.apply(null,arguments))}return t}function _t(e,t,n){var i=7+t-n,r=(7+bt(e,0,i).getUTCDay()-t)%7;return-r+i-1}function xt(e,t,n,i,r){var o=(7+n-i)%7,a=_t(e,i,r),s=1+7*(t-1)+o+a,l,u;if(s<=0){l=e-1;u=qe(l)+s}else if(s>qe(e)){l=e+1;u=s-qe(e)}else{l=e;u=s}return{year:l,dayOfYear:u}}function wt(e,t,n){var i=_t(e.year(),t,n),r=Math.floor((e.dayOfYear()-i-1)/7)+1,o,a;if(r<1){a=e.year()-1;o=r+kt(a,t,n)}else if(r>kt(e.year(),t,n)){o=r-kt(e.year(),t,n);a=e.year()+1}else{a=e.year();o=r}return{week:o,year:a}}function kt(e,t,n){var i=_t(e,t,n),r=_t(e+1,t,n);return(qe(e)-i+r)/7}function St(e){return wt(e,this._week.dow,this._week.doy).week}oe("w",["ww",2],"wo","week"),oe("W",["WW",2],"Wo","isoWeek"),G("week","w"),G("isoWeek","W"),Z("week",5),Z("isoWeek",5),Me("w",ge),Me("ww",ge,de),Me("W",ge),Me("WW",ge,de),Ne(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=S(e)});var Ct={dow:0,doy:6};function Tt(){return this._week.dow}function Dt(){return this._week.doy}function Mt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Ot(e){var t=wt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}function Et(e,t){if(typeof e!=="string"){return e}if(!isNaN(e)){return parseInt(e,10)}e=t.weekdaysParse(e);if(typeof e==="number"){return e}return null}function At(e,t){if(typeof e==="string"){return t.weekdaysParse(e)%7||7}return isNaN(e)?null:e}function Pt(e,t){return e.slice(t,7).concat(e.slice(0,t))}oe("d",0,"do","day"),oe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),oe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),oe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),oe("e",0,0,"weekday"),oe("E",0,0,"isoWeekday"),G("day","d"),G("weekday","e"),G("isoWeekday","E"),Z("day",11),Z("weekday",11),Z("isoWeekday",11),Me("d",ge),Me("e",ge),Me("E",ge),Me("dd",function(e,t){return t.weekdaysMinRegex(e)}),Me("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Me("dddd",function(e,t){return t.weekdaysRegex(e)}),Ne(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);if(r!=null){t.d=r}else{g(n).invalidWeekday=e}}),Ne(["d","e","E"],function(e,t,n,i){t[i]=S(e)});var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function Nt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&e!==true&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===true?Pt(n,this._week.dow):e?n[e.day()]:n}var Lt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function jt(e){return e===true?Pt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}var Ft="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Rt(e){return e===true?Pt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Wt(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(i=0;i<7;++i){o=p([2e3,1]).day(i);this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase();this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase();this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase()}}if(n){if(t==="dddd"){r=Ge.call(this._weekdaysParse,a);return r!==-1?r:null}else if(t==="ddd"){r=Ge.call(this._shortWeekdaysParse,a);return r!==-1?r:null}else{r=Ge.call(this._minWeekdaysParse,a);return r!==-1?r:null}}else{if(t==="dddd"){r=Ge.call(this._weekdaysParse,a);if(r!==-1){return r}r=Ge.call(this._shortWeekdaysParse,a);if(r!==-1){return r}r=Ge.call(this._minWeekdaysParse,a);return r!==-1?r:null}else if(t==="ddd"){r=Ge.call(this._shortWeekdaysParse,a);if(r!==-1){return r}r=Ge.call(this._weekdaysParse,a);if(r!==-1){return r}r=Ge.call(this._minWeekdaysParse,a);return r!==-1?r:null}else{r=Ge.call(this._minWeekdaysParse,a);if(r!==-1){return r}r=Ge.call(this._weekdaysParse,a);if(r!==-1){return r}r=Ge.call(this._shortWeekdaysParse,a);return r!==-1?r:null}}}function Ht(e,t,n){var i,r,o;
1if(this._weekdaysParseExact){return Wt.call(this,e,t,n)}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(i=0;i<7;i++){r=p([2e3,1]).day(i);if(n&&!this._fullWeekdaysParse[i]){this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i");this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i");this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")}if(!this._weekdaysParse[i]){o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,"");this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")}if(n&&t==="dddd"&&this._fullWeekdaysParse[i].test(e)){return i}else if(n&&t==="ddd"&&this._shortWeekdaysParse[i].test(e)){return i}else if(n&&t==="dd"&&this._minWeekdaysParse[i].test(e)){return i}else if(!n&&this._weekdaysParse[i].test(e)){return i}}}function Bt(e){if(!this.isValid()){return e!=null?this:NaN}var t=this._isUTC?this._d.getUTCDay():this._d.getDay();if(e!=null){e=Et(e,this.localeData());return this.add(e-t,"d")}else{return t}}function Vt(e){if(!this.isValid()){return e!=null?this:NaN}var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function zt(e){if(!this.isValid()){return e!=null?this:NaN}if(e!=null){var t=At(e,this.localeData());return this.day(this.day()%7?t:t-7)}else{return this.day()||7}}var Yt=Te;function qt(e){if(this._weekdaysParseExact){if(!h(this,"_weekdaysRegex")){Xt.call(this)}if(e){return this._weekdaysStrictRegex}else{return this._weekdaysRegex}}else{if(!h(this,"_weekdaysRegex")){this._weekdaysRegex=Yt}return this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}}var Ut=Te;function $t(e){if(this._weekdaysParseExact){if(!h(this,"_weekdaysRegex")){Xt.call(this)}if(e){return this._weekdaysShortStrictRegex}else{return this._weekdaysShortRegex}}else{if(!h(this,"_weekdaysShortRegex")){this._weekdaysShortRegex=Ut}return this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}var Gt=Te,Qt;function Kt(e){if(this._weekdaysParseExact){if(!h(this,"_weekdaysRegex")){Xt.call(this)}if(e){return this._weekdaysMinStrictRegex}else{return this._weekdaysMinRegex}}else{if(!h(this,"_weekdaysMinRegex")){this._weekdaysMinRegex=Gt}return this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function Xt(){function e(e,t){return t.length-e.length}var t=[],n=[],i=[],r=[],o,a,s,l,u;for(o=0;o<7;o++){a=p([2e3,1]).day(o);s=this.weekdaysMin(a,"");l=this.weekdaysShort(a,"");u=this.weekdays(a,"");t.push(s);n.push(l);i.push(u);r.push(s);r.push(l);r.push(u)}t.sort(e);n.sort(e);i.sort(e);r.sort(e);for(o=0;o<7;o++){n[o]=Ae(n[o]);i[o]=Ae(i[o]);r[o]=Ae(r[o])}this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Zt(){return this.hours()%12||12}function Jt(){return this.hours()||24}function en(e,t){oe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tn(e,t){return t._meridiemParse}function nn(e){return(e+"").toLowerCase().charAt(0)==="p"}function rn(e,t,n){if(e>11){return n?"pm":"PM"}else{return n?"am":"AM"}}oe("H",["HH",2],0,"hour"),oe("h",["hh",2],0,Zt),oe("k",["kk",2],0,Jt),oe("hmm",0,0,function(){return""+Zt.apply(this)+ee(this.minutes(),2)}),oe("hmmss",0,0,function(){return""+Zt.apply(this)+ee(this.minutes(),2)+ee(this.seconds(),2)}),oe("Hmm",0,0,function(){return""+this.hours()+ee(this.minutes(),2)}),oe("Hmmss",0,0,function(){return""+this.hours()+ee(this.minutes(),2)+ee(this.seconds(),2)}),en("a",true),en("A",false),G("hour","h"),Z("hour",13),Me("a",tn),Me("A",tn),Me("H",ge),Me("h",ge),Me("k",ge),Me("HH",ge,de),Me("hh",ge,de),Me("kk",ge,de),Me("hmm",me),Me("hmmss",ve),Me("Hmm",me),Me("Hmmss",ve),Ie(["H","HH"],We),Ie(["k","kk"],function(e,t,n){var i=S(e);t[We]=i===24?0:i}),Ie(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e);n._meridiem=e}),Ie(["h","hh"],function(e,t,n){t[We]=S(e);g(n).bigHour=true}),Ie("hmm",function(e,t,n){var i=e.length-2;t[We]=S(e.substr(0,i));t[He]=S(e.substr(i));g(n).bigHour=true}),Ie("hmmss",function(e,t,n){var i=e.length-4;var r=e.length-2;t[We]=S(e.substr(0,i));t[He]=S(e.substr(i,2));t[Be]=S(e.substr(r));g(n).bigHour=true}),Ie("Hmm",function(e,t,n){var i=e.length-2;t[We]=S(e.substr(0,i));t[He]=S(e.substr(i))}),Ie("Hmmss",function(e,t,n){var i=e.length-4;var r=e.length-2;t[We]=S(e.substr(0,i));t[He]=S(e.substr(i,2));t[Be]=S(e.substr(r))});var on=Ke("Hours",true),an={calendar:L,longDateFormat:F,invalidDate:W,ordinal:B,dayOfMonthOrdinalParse:V,relativeTime:Y,months:rt,monthsShort:at,week:Ct,weekdays:It,weekdaysMin:Ft,weekdaysShort:Lt,meridiemParse:/[ap]\.?m?\.?/i},sn={},ln={},un;function cn(e){return e?e.toLowerCase().replace("_","-"):e}function dn(e){var t=0,n,i,r,o;while(t<e.length){o=cn(e[t]).split("-");n=o.length;i=cn(e[t+1]);i=i?i.split("-"):null;while(n>0){r=hn(o.slice(0,n).join("-"));if(r){return r}if(i&&i.length>=n&&C(o,i,true)>=n-1){break}n--}t++}return un}function hn(e){var t=null;
1if(!sn[e]&&"object"!=="undefined"&&Ho&&Ho.exports){try{t=un._abbr;var n=Bo;n("./locale/"+e);fn(t)}catch(e){}}return sn[e]}function fn(e,t){var n;if(e){if(o(t)){n=mn(e)}else{n=pn(e,t)}if(n){un=n}else{if(typeof console!=="undefined"&&console.warn){console.warn("Locale "+e+" not found. Did you forget to load it?")}}}return un._abbr}function pn(e,t){if(t!==null){var n,i=an;t.abbr=e;if(sn[e]!=null){E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change "+"an existing locale. moment.defineLocale(localeName, "+"config) should only be used for creating a new locale "+"See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");i=sn[e]._config}else if(t.parentLocale!=null){if(sn[t.parentLocale]!=null){i=sn[t.parentLocale]._config}else{n=hn(t.parentLocale);if(n!=null){i=n._config}else{if(!ln[t.parentLocale]){ln[t.parentLocale]=[]}ln[t.parentLocale].push({name:e,config:t});return null}}}sn[e]=new N(I(i,t));if(ln[e]){ln[e].forEach(function(e){pn(e.name,e.config)})}fn(e);return sn[e]}else{delete sn[e];return null}}function gn(e,t){if(null!=t){var n,i,r=an;null!=(i=hn(e))&&(r=i._config),t=I(r,t),(n=new N(t)).parentLocale=sn[e],sn[e]=n,fn(e)}else null!=sn[e]&&(null!=sn[e].parentLocale?sn[e]=sn[e].parentLocale:null!=sn[e]&&delete sn[e]);return sn[e]}function mn(e){var t;if(e&&e._locale&&e._locale._abbr){e=e._locale._abbr}if(!e){return un}if(!a(e)){t=hn(e);if(t){return t}e=[e]}return dn(e)}function vn(){return O(sn)}function yn(e){var t;var n=e._a;if(n&&g(e).overflow===-2){t=n[Fe]<0||n[Fe]>11?Fe:n[Re]<1||n[Re]>nt(n[je],n[Fe])?Re:n[We]<0||n[We]>24||n[We]===24&&(n[He]!==0||n[Be]!==0||n[Ve]!==0)?We:n[He]<0||n[He]>59?He:n[Be]<0||n[Be]>59?Be:n[Ve]<0||n[Ve]>999?Ve:-1;if(g(e)._overflowDayOfYear&&(t<je||t>Re)){t=Re}if(g(e)._overflowWeeks&&t===-1){t=ze}if(g(e)._overflowWeekday&&t===-1){t=Ye}g(e).overflow=t}return e}function bn(e,t,n){if(e!=null){return e}if(t!=null){return t}return n}function _n(e){var t=new Date(u.now());if(e._useUTC){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]}return[t.getFullYear(),t.getMonth(),t.getDate()]}function xn(e){var t,n,i=[],r,o,a;if(e._d){return}r=_n(e);if(e._w&&e._a[Re]==null&&e._a[Fe]==null){wn(e)}if(e._dayOfYear!=null){a=bn(e._a[je],r[je]);if(e._dayOfYear>qe(a)||e._dayOfYear===0){g(e)._overflowDayOfYear=true}n=bt(a,0,e._dayOfYear);e._a[Fe]=n.getUTCMonth();e._a[Re]=n.getUTCDate()}for(t=0;t<3&&e._a[t]==null;++t){e._a[t]=i[t]=r[t]}for(;t<7;t++){e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t]}if(e._a[We]===24&&e._a[He]===0&&e._a[Be]===0&&e._a[Ve]===0){e._nextDay=true;e._a[We]=0}e._d=(e._useUTC?bt:yt).apply(null,i);o=e._useUTC?e._d.getUTCDay():e._d.getDay();if(e._tzm!=null){e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm)}if(e._nextDay){e._a[We]=24}if(e._w&&typeof e._w.d!=="undefined"&&e._w.d!==o){g(e).weekdayMismatch=true}}function wn(e){var t,n,i,r,o,a,s,l;t=e._w;if(t.GG!=null||t.W!=null||t.E!=null){o=1;a=4;n=bn(t.GG,e._a[je],wt($n(),1,4).year);i=bn(t.W,1);r=bn(t.E,1);if(r<1||r>7){l=true}}else{o=e._locale._week.dow;a=e._locale._week.doy;var u=wt($n(),o,a);n=bn(t.gg,e._a[je],u.year);i=bn(t.w,u.week);if(t.d!=null){r=t.d;if(r<0||r>6){l=true}}else if(t.e!=null){r=t.e+o;if(t.e<0||t.e>6){l=true}}else{r=o}}if(i<1||i>kt(n,o,a)){g(e)._overflowWeeks=true}else if(l!=null){g(e)._overflowWeekday=true}else{s=xt(n,i,r,o,a);e._a[je]=s.year;e._dayOfYear=s.dayOfYear}}var kn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/]],Dn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Mn=/^\/?Date\((\-?\d+)/i;function On(e){var t,n,i=e._i,r=kn.exec(i)||Sn.exec(i),o,a,s,l;if(r){g(e).iso=true;for(t=0,n=Tn.length;t<n;t++){if(Tn[t][1].exec(r[1])){a=Tn[t][0];o=Tn[t][2]!==false;break}}if(a==null){e._isValid=false;return}if(r[3]){for(t=0,n=Dn.length;t<n;t++){if(Dn[t][1].exec(r[3])){s=(r[2]||" ")+Dn[t][0];break}}if(s==null){e._isValid=false;return}}if(!o&&s!=null){e._isValid=false;return}if(r[4]){if(Cn.exec(r[4])){l="Z"}else{e._isValid=false;return}}e._f=a+(s||"")+(l||"");Wn(e)}else{e._isValid=false}}var En=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function An(e,t,n,i,r,o){var a=[Pn(e),at.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)];if(o){a.push(parseInt(o,10))}return a}function Pn(e){var t=parseInt(e,10);if(t<=49){return 2e3+t}else if(t<=999){return 1900+t}return t}function In(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nn(e,t,n){if(e){var i=Lt.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(i!==r){g(n).weekdayMismatch=true;n._isValid=false;return false}}return true}var Ln={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function jn(e,t,n){if(e){return Ln[e]}else if(t){return 0}else{var i=parseInt(n,10);var r=i%100,o=(i-r)/100;return o*60+r}}function Fn(e){var t=En.exec(In(e._i));if(t){var n=An(t[4],t[3],t[2],t[5],t[6],t[7]);if(!Nn(t[1],n,e)){return}e._a=n;e._tzm=jn(t[8],t[9],t[10]);e._d=bt.apply(null,e._a);e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm);g(e).rfc2822=true}else{e._isValid=false}}function Rn(e){var t=Mn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}On(e);if(e._isValid===false){delete e._isValid}else{return}Fn(e);if(e._isValid===false){delete e._isValid}else{return}u.createFromInputFallback(e)}function Wn(e){if(e._f===u.ISO_8601){On(e);return}if(e._f===u.RFC_2822){Fn(e);return}e._a=[];g(e).empty=true;var t=""+e._i,n,i,r,o,a,s=t.length,l=0;r=ue(e._f,e._locale).match(te)||[];for(n=0;n<r.length;n++){o=r[n];i=(t.match(Oe(o,e))||[])[0];if(i){a=t.substr(0,t.indexOf(i));if(a.length>0){g(e).unusedInput.push(a)}t=t.slice(t.indexOf(i)+i.length);l+=i.length}if(re[o]){if(i){g(e).empty=false}else{g(e).unusedTokens.push(o)}Le(o,i,e)}else if(e._strict&&!i){g(e).unusedTokens.push(o)}}g(e).charsLeftOver=s-l;if(t.length>0){g(e).unusedInput.push(t)}if(e._a[We]<=12&&g(e).bigHour===true&&e._a[We]>0){g(e).bigHour=undefined}g(e).parsedDateParts=e._a.slice(0);g(e).meridiem=e._meridiem;e._a[We]=Hn(e._locale,e._a[We],e._meridiem);xn(e);yn(e)}function Hn(e,t,n){var i;if(n==null){return t}if(e.meridiemHour!=null){return e.meridiemHour(t,n)}else if(e.isPM!=null){i=e.isPM(n);if(i&&t<12){t+=12}if(!i&&t===12){t=0}return t}else{return t}}function Bn(e){var t,n,i,r,o;
1if(e._f.length===0){g(e).invalidFormat=true;e._d=new Date(NaN);return}for(r=0;r<e._f.length;r++){o=0;t=b({},e);if(e._useUTC!=null){t._useUTC=e._useUTC}t._f=e._f[r];Wn(t);if(!m(t)){continue}o+=g(t).charsLeftOver;o+=g(t).unusedTokens.length*10;g(t).score=o;if(i==null||o<i){i=o;n=t}}f(e,n||t)}function Vn(e){if(e._d){return}var t=K(e._i);e._a=n([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)});xn(e)}function zn(e){var t=new x(yn(Yn(e)));if(t._nextDay){t.add(1,"d");t._nextDay=undefined}return t}function Yn(e){var t=e._i,n=e._f;e._locale=e._locale||mn(e._l);if(t===null||n===undefined&&t===""){return v({nullInput:true})}if(typeof t==="string"){e._i=t=e._locale.preparse(t)}if(w(t)){return new x(yn(t))}else if(d(t)){e._d=t}else if(a(n)){Bn(e)}else if(n){Wn(e)}else{qn(e)}if(!m(e)){e._d=null}return e}function qn(e){var t=e._i;if(o(t)){e._d=new Date(u.now())}else if(d(t)){e._d=new Date(t.valueOf())}else if(typeof t==="string"){Rn(e)}else if(a(t)){e._a=n(t.slice(0),function(e){return parseInt(e,10)});xn(e)}else if(s(t)){Vn(e)}else if(c(t)){e._d=new Date(t)}else{u.createFromInputFallback(e)}}function Un(e,t,n,i,r){var o={};if(n===true||n===false){i=n;n=undefined}if(s(e)&&l(e)||a(e)&&e.length===0){e=undefined}o._isAMomentObject=true;o._useUTC=o._isUTC=r;o._l=n;o._i=e;o._f=t;o._strict=i;return zn(o)}function $n(e,t,n,i){return Un(e,t,n,i,false)}u.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), "+"which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are "+"discouraged and will be removed in an upcoming major release. Please refer to "+"http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),u.ISO_8601=function(){},u.RFC_2822=function(){};var Gn=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=$n.apply(null,arguments);if(this.isValid()&&e.isValid()){return e<this?this:e}else{return v()}}),Qn=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=$n.apply(null,arguments);if(this.isValid()&&e.isValid()){return e>this?this:e}else{return v()}});function Kn(e,t){var n,i;if(t.length===1&&a(t[0])){t=t[0]}if(!t.length){return $n()}n=t[0];for(i=1;i<t.length;++i){if(!t[i].isValid()||t[i][e](n)){n=t[i]}}return n}function Xn(){var e;return Kn("isBefore",[].slice.call(arguments,0))}function Zn(){var e;return Kn("isAfter",[].slice.call(arguments,0))}var Jn=function(){return Date.now?Date.now():+new Date},ei=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ti(e){for(var t in e){if(!(Ge.call(ei,t)!==-1&&(e[t]==null||!isNaN(e[t])))){return false}}var n=false;for(var i=0;i<ei.length;++i){if(e[ei[i]]){if(n){return false}
1if(parseFloat(e[ei[i]])!==S(e[ei[i]])){n=true}}}return true}function ni(){return this._isValid}function ii(){return Ci(NaN)}function ri(e){var t=K(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=ti(t);this._milliseconds=+c+u*1e3+l*6e4+s*1e3*60*60;this._days=+a+o*7;this._months=+r+i*3+n*12;this._data={};this._locale=mn();this._bubble()}function oi(e){return e instanceof ri}function ai(e){if(e<0){return Math.round(-1*e)*-1}else{return Math.round(e)}}function si(e,n){oe(e,0,0,function(){var e=this.utcOffset();var t="+";if(e<0){e=-e;t="-"}return t+ee(~~(e/60),2)+n+ee(~~e%60,2)})}si("Z",":"),si("ZZ",""),Me("Z",Se),Me("ZZ",Se),Ie(["Z","ZZ"],function(e,t,n){n._useUTC=true;n._tzm=ui(Se,e)});var li=/([\+\-]|\d\d)/gi;function ui(e,t){var n=(t||"").match(e);if(n===null){return null}var i=n[n.length-1]||[];var r=(i+"").match(li)||["-",0,0];var o=+(r[1]*60)+S(r[2]);return o===0?0:r[0]==="+"?o:-o}function ci(e,t){var n,i;if(t._isUTC){n=t.clone();i=(w(e)||d(e)?e.valueOf():$n(e).valueOf())-n.valueOf();n._d.setTime(n._d.valueOf()+i);u.updateOffset(n,false);return n}else{return $n(e).local()}}function di(e){return-Math.round(e._d.getTimezoneOffset()/15)*15}function hi(e,t,n){var i=this._offset||0,r;if(!this.isValid()){return e!=null?this:NaN}if(e!=null){if(typeof e==="string"){e=ui(Se,e);if(e===null){return this}}else if(Math.abs(e)<16&&!n){e=e*60}if(!this._isUTC&&t){r=di(this)}this._offset=e;this._isUTC=true;if(r!=null){this.add(r,"m")}if(i!==e){if(!t||this._changeInProgress){Ei(this,Ci(e-i,"m"),1,false)}else if(!this._changeInProgress){this._changeInProgress=true;u.updateOffset(this,true);this._changeInProgress=null}}return this}else{return this._isUTC?i:di(this)}}function fi(e,t){if(e!=null){if(typeof e!=="string"){e=-e}this.utcOffset(e,t);return this}else{return-this.utcOffset()}}function pi(e){return this.utcOffset(0,e)}function gi(e){if(this._isUTC){this.utcOffset(0,e);this._isUTC=false;if(e){this.subtract(di(this),"m")}}return this}function mi(){if(this._tzm!=null){this.utcOffset(this._tzm,false,true)}else if(typeof this._i==="string"){var e=ui(ke,this._i);if(e!=null){this.utcOffset(e)}else{this.utcOffset(0,true)}}return this}function vi(e){if(!this.isValid()){return false}e=e?$n(e).utcOffset():0;return(this.utcOffset()-e)%60===0}function yi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function bi(){if(!o(this._isDSTShifted)){return this._isDSTShifted}var e={};b(e,this);e=Yn(e);if(e._a){var t=e._isUTC?p(e._a):$n(e._a);this._isDSTShifted=this.isValid()&&C(e._a,t.toArray())>0}else{this._isDSTShifted=false}return this._isDSTShifted}function _i(){return this.isValid()?!this._isUTC:false}function xi(){return this.isValid()?this._isUTC:false}function wi(){return this.isValid()?this._isUTC&&this._offset===0:false}u.updateOffset=function(){};var ki=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Si=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ci(e,t){var n=e,i=null,r,o,a;if(oi(e)){n={ms:e._milliseconds,d:e._days,M:e._months}}else if(c(e)){n={};if(t){n[t]=e}else{n.milliseconds=e}}else if(!!(i=ki.exec(e))){r=i[1]==="-"?-1:1;n={y:0,d:S(i[Re])*r,h:S(i[We])*r,m:S(i[He])*r,s:S(i[Be])*r,ms:S(ai(i[Ve]*1e3))*r}}else if(!!(i=Si.exec(e))){r=i[1]==="-"?-1:1;n={y:Ti(i[2],r),M:Ti(i[3],r),w:Ti(i[4],r),d:Ti(i[5],r),h:Ti(i[6],r),m:Ti(i[7],r),s:Ti(i[8],r)}}else if(n==null){n={}}else if(typeof n==="object"&&("from"in n||"to"in n)){a=Mi($n(n.from),$n(n.to));n={};n.ms=a.milliseconds;n.M=a.months}o=new ri(n);if(oi(e)&&h(e,"_locale")){o._locale=e._locale}return o}function Ti(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Di(e,t){var n={};n.months=t.month()-e.month()+(t.year()-e.year())*12;if(e.clone().add(n.months,"M").isAfter(t)){--n.months}n.milliseconds=+t-+e.clone().add(n.months,"M");return n}function Mi(e,t){var n;if(!(e.isValid()&&t.isValid())){return{milliseconds:0,months:0}}t=ci(t,e);if(e.isBefore(t)){n=Di(e,t)}else{n=Di(t,e);n.milliseconds=-n.milliseconds;n.months=-n.months}return n}function Oi(r,o){return function(e,t){var n,i;if(t!==null&&!isNaN(+t)){E(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");i=e;e=t;t=i}e=typeof e==="string"?+e:e;n=Ci(e,t);Ei(this,n,r);return this}}function Ei(e,t,n,i){var r=t._milliseconds,o=ai(t._days),a=ai(t._months);if(!e.isValid()){return}i=i==null?true:i;if(a){ct(e,Xe(e,"Month")+a*n)}if(o){Ze(e,"Date",Xe(e,"Date")+o*n)}if(r){e._d.setTime(e._d.valueOf()+r*n)}if(i){u.updateOffset(e,o||a)}}Ci.fn=ri.prototype,Ci.invalid=ii;var Ai=Oi(1,"add"),Pi=Oi(-1,"subtract");function Ii(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ni(e,t){var n=e||$n(),i=ci(n,this).startOf("day"),r=u.calendarFormat(this,i)||"sameElse";var o=t&&(A(t[r])?t[r].call(this,n):t[r]);
vendor: 5,032 bytes, line 1
1return this.format(o||this.localeData().calendar(r,this,$n(n)))}function Li(){return new x(this)}function ji(e,t){var n=w(e)?e:$n(e);if(!(this.isValid()&&n.isValid())){return false}t=Q(t)||"millisecond";if(t==="millisecond"){return this.valueOf()>n.valueOf()}else{return n.valueOf()<this.clone().startOf(t).valueOf()}}function Fi(e,t){var n=w(e)?e:$n(e);if(!(this.isValid()&&n.isValid())){return false}t=Q(t)||"millisecond";if(t==="millisecond"){return this.valueOf()<n.valueOf()}else{return this.clone().endOf(t).valueOf()<n.valueOf()}}function Ri(e,t,n,i){var r=w(e)?e:$n(e),o=w(t)?t:$n(t);if(!(this.isValid()&&r.isValid()&&o.isValid())){return false}i=i||"()";return(i[0]==="("?this.isAfter(r,n):!this.isBefore(r,n))&&(i[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))}function Wi(e,t){var n=w(e)?e:$n(e),i;if(!(this.isValid()&&n.isValid())){return false}t=Q(t)||"millisecond";if(t==="millisecond"){return this.valueOf()===n.valueOf()}else{i=n.valueOf();return this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()}}function Hi(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Bi(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Vi(e,t,n){var i,r,o;if(!this.isValid()){return NaN}i=ci(e,this);if(!i.isValid()){return NaN}r=(i.utcOffset()-this.utcOffset())*6e4;t=Q(t);switch(t){case"year":o=zi(this,i)/12;break;case"month":o=zi(this,i);break;case"quarter":o=zi(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:k(o)}function zi(e,t){var n=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(n,"months"),r,o;if(t-i<0){r=e.clone().add(n-1,"months");o=(t-i)/(i-r)}else{r=e.clone().add(n+1,"months");o=(t-i)/(r-i)}return-(n+o)||0}function Yi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function qi(e){if(!this.isValid()){return null}var t=e!==true;var n=t?this.clone().utc():this;if(n.year()<0||n.year()>9999){return le(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ")}if(A(Date.prototype.toISOString)){if(t){return this.toDate().toISOString()}else{return new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",le(n,"Z"))}}return le(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ui(){if(!this.isValid()){return"moment.invalid(/* "+this._i+" */)"}var e="moment";var t="";if(!this.isLocal()){e=this.utcOffset()===0?"moment.utc":"moment.parseZone";t="Z"}var n="["+e+'("]';var i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";var r="-MM-DD[T]HH:mm:ss.SSS";var o=t+'[")]';return this.format(n+i+r+o)}function $i(e){if(!e){e=this.isUtc()?u.defaultFormatUtc:u.defaultFormat}var t=le(this,e);return this.localeData().postformat(t)}function Gi(e,t){if(this.isValid()&&(w(e)&&e.isValid()||$n(e).isValid())){return Ci({to:this,from:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}}function Qi(e){return this.from($n(),e)}function Ki(e,t){if(this.isValid()&&(w(e)&&e.isValid()||$n(e).isValid())){return Ci({from:this,to:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}}function Xi(e){return this.to($n(),e)}function Zi(e){var t;if(e===undefined){return this._locale._abbr}else{t=mn(e);if(t!=null){this._locale=t}return this}}u.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",u.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ji=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){if(e===undefined){return this.localeData()}else{return this.locale(e)}});function er(){return this._locale}var tr=1e3,nr=60*tr,ir=60*nr,rr=(365*400+97)*24*ir;function or(e,t){return(e%t+t)%t}function ar(e,t,n){if(e<100&&e>=0){return new Date(e+400,t,n)-rr}else{return new Date(e,t,n).valueOf()}}function sr(e,t,n){if(e<100&&e>=0){return Date.UTC(e+400,t,n)-rr}else{return Date.UTC(e,t,n)}}function lr(e){var t;e=Q(e);if(e===undefined||e==="millisecond"||!this.isValid()){return this}var n=this._isUTC?sr:ar;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf();t-=or(t+(this._isUTC?0:this.utcOffset()*nr),ir);break;case"minute":t=this._d.valueOf();t-=or(t,nr);break;case"second":t=this._d.valueOf();t-=or(t,tr);break}this._d.setTime(t);u.updateOffset(this,true);return this}function ur(e){var t;e=Q(e);if(e===undefined||e==="millisecond"||!this.isValid()){return this}var n=this._isUTC?sr:ar;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;
1case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf();t+=ir-or(t+(this._isUTC?0:this.utcOffset()*nr),ir)-1;break;case"minute":t=this._d.valueOf();t+=nr-or(t,nr)-1;break;case"second":t=this._d.valueOf();t+=tr-or(t,tr)-1;break}this._d.setTime(t);u.updateOffset(this,true);return this}function cr(){return this._d.valueOf()-(this._offset||0)*6e4}function dr(){return Math.floor(this.valueOf()/1e3)}function hr(){return new Date(this.valueOf())}function fr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function pr(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function gr(){return this.isValid()?this.toISOString():null}function mr(){return m(this)}function vr(){return f({},g(this))}function yr(){return g(this).overflow}function br(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function _r(e,t){oe(0,[e,e.length],0,t)}function xr(e){return Cr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function wr(e){return Cr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function kr(){return kt(this.year(),1,4)}function Sr(){var e=this.localeData()._week;return kt(this.year(),e.dow,e.doy)}function Cr(e,t,n,i,r){var o;if(e==null){return wt(this,i,r).year}else{o=kt(e,i,r);if(t>o){t=o}return Tr.call(this,e,t,n,i,r)}}function Tr(e,t,n,i,r){var o=xt(e,t,n,i,r),a=bt(o.year,0,o.dayOfYear);this.year(a.getUTCFullYear());this.month(a.getUTCMonth());this.date(a.getUTCDate());return this}function Dr(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}oe(0,["gg",2],0,function(){return this.weekYear()%100}),oe(0,["GG",2],0,function(){return this.isoWeekYear()%100}),_r("gggg","weekYear"),_r("ggggg","weekYear"),_r("GGGG","isoWeekYear"),_r("GGGGG","isoWeekYear"),G("weekYear","gg"),G("isoWeekYear","GG"),Z("weekYear",1),Z("isoWeekYear",1),Me("G",we),Me("g",we),Me("GG",ge,de),Me("gg",ge,de),Me("GGGG",be,fe),Me("gggg",be,fe),Me("GGGGG",_e,pe),Me("ggggg",_e,pe),Ne(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=S(e)}),Ne(["gg","GG"],function(e,t,n,i){t[i]=u.parseTwoDigitYear(e)}),oe("Q",0,"Qo","quarter"),G("quarter","Q"),Z("quarter",7),Me("Q",ce),Ie("Q",function(e,t){t[Fe]=(S(e)-1)*3}),oe("D",["DD",2],"Do","date"),G("date","D"),Z("date",9),Me("D",ge),Me("DD",ge,de),Me("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Ie(["D","DD"],Re),Ie("Do",function(e,t){t[Re]=S(e.match(ge)[0])});var Mr=Ke("Date",true);function Or(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}oe("DDD",["DDDD",3],"DDDo","dayOfYear"),G("dayOfYear","DDD"),Z("dayOfYear",4),Me("DDD",ye),Me("DDDD",he),Ie(["DDD","DDDD"],function(e,t,n){n._dayOfYear=S(e)}),oe("m",["mm",2],0,"minute"),G("minute","m"),Z("minute",14),Me("m",ge),Me("mm",ge,de),Ie(["m","mm"],He);var Er=Ke("Minutes",false);oe("s",["ss",2],0,"second"),G("second","s"),Z("second",15),Me("s",ge),Me("ss",ge,de),Ie(["s","ss"],Be);var Ar=Ke("Seconds",false),Pr;for(oe("S",0,0,function(){return~~(this.millisecond()/100)}),oe(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),oe(0,["SSS",3],0,"millisecond"),oe(0,["SSSS",4],0,function(){return this.millisecond()*10}),oe(0,["SSSSS",5],0,function(){return this.millisecond()*100}),oe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),oe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),oe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),oe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),G("millisecond","ms"),Z("millisecond",16),Me("S",ye,ce),Me("SS",ye,de),Me("SSS",ye,he),Pr="SSSS";Pr.length<=9;Pr+="S"){Me(Pr,xe)}function Ir(e,t){t[Ve]=S(("0."+e)*1e3)}for(Pr="S";Pr.length<=9;Pr+="S"){Ie(Pr,Ir)}
1var Nr=Ke("Milliseconds",false);function Lr(){return this._isUTC?"UTC":""}function jr(){return this._isUTC?"Coordinated Universal Time":""}oe("z",0,0,"zoneAbbr"),oe("zz",0,0,"zoneName");var Fr=x.prototype;function Rr(e){return $n(1e3*e)}function Wr(){return $n.apply(null,arguments).parseZone()}function Hr(e){return e}Fr.add=Ai,Fr.calendar=Ni,Fr.clone=Li,Fr.diff=Vi,Fr.endOf=ur,Fr.format=$i,Fr.from=Gi,Fr.fromNow=Qi,Fr.to=Ki,Fr.toNow=Xi,Fr.get=Je,Fr.invalidAt=yr,Fr.isAfter=ji,Fr.isBefore=Fi,Fr.isBetween=Ri,Fr.isSame=Wi,Fr.isSameOrAfter=Hi,Fr.isSameOrBefore=Bi,Fr.isValid=mr,Fr.lang=Ji,Fr.locale=Zi,Fr.localeData=er,Fr.max=Qn,Fr.min=Gn,Fr.parsingFlags=vr,Fr.set=et,Fr.startOf=lr,Fr.subtract=Pi,Fr.toArray=fr,Fr.toObject=pr,Fr.toDate=hr,Fr.toISOString=qi,Fr.inspect=Ui,Fr.toJSON=gr,Fr.toString=Yi,Fr.unix=dr,Fr.valueOf=cr,Fr.creationData=br,Fr.year=$e,Fr.isLeapYear=Qe,Fr.weekYear=xr,Fr.isoWeekYear=wr,Fr.quarter=Fr.quarters=Dr,Fr.month=dt,Fr.daysInMonth=ht,Fr.week=Fr.weeks=Mt,Fr.isoWeek=Fr.isoWeeks=Ot,Fr.weeksInYear=Sr,Fr.isoWeeksInYear=kr,Fr.date=Mr,Fr.day=Fr.days=Bt,Fr.weekday=Vt,Fr.isoWeekday=zt,Fr.dayOfYear=Or,Fr.hour=Fr.hours=on,Fr.minute=Fr.minutes=Er,Fr.second=Fr.seconds=Ar,Fr.millisecond=Fr.milliseconds=Nr,Fr.utcOffset=hi,Fr.utc=pi,Fr.local=gi,Fr.parseZone=mi,Fr.hasAlignedHourOffset=vi,Fr.isDST=yi,Fr.isLocal=_i,Fr.isUtcOffset=xi,Fr.isUtc=wi,Fr.isUTC=wi,Fr.zoneAbbr=Lr,Fr.zoneName=jr,Fr.dates=D("dates accessor is deprecated. Use date instead.",Mr),Fr.months=D("months accessor is deprecated. Use month instead",dt),Fr.years=D("years accessor is deprecated. Use year instead",$e),Fr.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fi),Fr.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",bi);var Br=N.prototype;function Vr(e,t,n,i){var r=mn();var o=p().set(i,t);return r[n](o,e)}function zr(e,t,n){if(c(e)){t=e;e=undefined}e=e||"";if(t!=null){return Vr(e,t,n,"month")}var i;var r=[];for(i=0;i<12;i++){r[i]=Vr(e,i,n,"month")}return r}function Yr(e,t,n,i){if(typeof e==="boolean"){if(c(t)){n=t;t=undefined}t=t||""}else{t=e;n=t;e=false;if(c(t)){n=t;t=undefined}t=t||""}var r=mn(),o=e?r._week.dow:0;if(n!=null){return Vr(t,(n+o)%7,i,"day")}var a;var s=[];for(a=0;a<7;a++){s[a]=Vr(t,(a+o)%7,i,"day")}return s}function qr(e,t){return zr(e,t,"months")}function Ur(e,t){return zr(e,t,"monthsShort")}function $r(e,t,n){return Yr(e,t,n,"weekdays")}function Gr(e,t,n){return Yr(e,t,n,"weekdaysShort")}function Qr(e,t,n){return Yr(e,t,n,"weekdaysMin")}Br.calendar=j,Br.longDateFormat=R,Br.invalidDate=H,Br.ordinal=z,Br.preparse=Hr,Br.postformat=Hr,Br.relativeTime=q,Br.pastFuture=U,Br.set=P,Br.months=ot,Br.monthsShort=st,Br.monthsParse=ut,Br.monthsRegex=mt,Br.monthsShortRegex=pt,Br.week=St,Br.firstDayOfYear=Dt,Br.firstDayOfWeek=Tt,Br.weekdays=Nt,Br.weekdaysMin=Rt,Br.weekdaysShort=jt,Br.weekdaysParse=Ht,Br.weekdaysRegex=qt,Br.weekdaysShortRegex=$t,Br.weekdaysMinRegex=Kt,Br.isPM=nn,Br.meridiem=rn,fn("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=S(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),u.lang=D("moment.lang is deprecated. Use moment.locale instead.",fn),u.langData=D("moment.langData is deprecated. Use moment.localeData instead.",mn);var Kr=Math.abs;function Xr(){var e=this._data;return this._milliseconds=Kr(this._milliseconds),this._days=Kr(this._days),this._months=Kr(this._months),e.milliseconds=Kr(e.milliseconds),e.seconds=Kr
1(e.seconds),e.minutes=Kr(e.minutes),e.hours=Kr(e.hours),e.months=Kr(e.months),e.years=Kr(e.years),this}function Zr(e,t,n,i){var r=Ci(t,n);e._milliseconds+=i*r._milliseconds;e._days+=i*r._days;e._months+=i*r._months;return e._bubble()}function Jr(e,t){return Zr(this,e,t,1)}function eo(e,t){return Zr(this,e,t,-1)}function to(e){if(e<0){return Math.floor(e)}else{return Math.ceil(e)}}function no(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;if(!(0<=o&&0<=a&&0<=s||o<=0&&a<=0&&s<=0))o+=864e5*to(ro(s)+a),s=a=0;return l.milliseconds=o%1e3,e=k(o/1e3),l.seconds=e%60,t=k(e/60),l.minutes=t%60,n=k(t/60),l.hours=n%24,a+=k(n/24),r=k(io(a)),s+=r,a-=to(ro(r)),i=k(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function io(e){return e*4800/146097}function ro(e){return e*146097/4800}function oo(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=Q(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+io(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(ro(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function ao(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN}function so(e){return function(){return this.as(e)}}var lo=so("ms"),uo=so("s"),co=so("m"),ho=so("h"),fo=so("d"),po=so("w"),go=so("M"),mo=so("Q"),vo=so("y");function yo(){return Ci(this)}function bo(e){return e=Q(e),this.isValid()?this[e+"s"]():NaN}function _o(e){return function(){return this.isValid()?this._data[e]:NaN}}var xo=_o("milliseconds"),wo=_o("seconds"),ko=_o("minutes"),So=_o("hours"),Co=_o("days"),To=_o("months"),Do=_o("years");function Mo(){return k(this.days()/7)}var Oo=Math.round,Eo={ss:44,s:45,m:45,h:22,d:26,M:11};function Ao(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function Po(e,t,n){var i=Ci(e).abs(),r=Oo(i.as("s")),o=Oo(i.as("m")),a=Oo(i.as("h")),s=Oo(i.as("d")),l=Oo(i.as("M")),u=Oo(i.as("y")),c=(r<=Eo.ss?["s",r]:r<Eo.s&&["ss",r])||o<=1&&["m"]||o<Eo.m&&["mm",o]||a<=1&&["h"]||a<Eo.h&&["hh",a]||s<=1&&["d"]||s<Eo.d&&["dd",s]||l<=1&&["M"]||l<Eo.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=t,c[3]=0<+e,c[4]=n,function(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}.apply(null,c)}function Io(e){return void 0!==e?"function"==typeof e&&(Oo=e,!0):Oo}function No(e,t){if(void 0===Eo[e])return!1;if(void 0===t)return Eo[e];if(Eo[e]=t,"s"===e)Eo.ss=t-1;return!0}function Lo(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var i=Ci(e).abs(),r=Oo(i.as("s")),o=Oo(i.as("m")),a=Oo(i.as("h")),s=Oo(i.as("d")),l=Oo(i.as("M")),u=Oo(i.as("y")),c=(r<=Eo.ss?["s",r]:r<Eo.s&&["ss",r])||o<=1&&["m"]||o<Eo.m&&["mm",o]||a<=1&&["h"]||a<Eo.h&&["hh",a]||s<=1&&["d"]||s<Eo.d&&["dd",s]||l<=1&&["M"]||l<Eo.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=t,c[3]=0<+e,c[4]=n,function(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}.apply(null,c)}(this,!e,t);if(e)n=t.pastFuture(+this,n);return t.postformat(n)}var jo=Math.abs;function Fo(e){return(e>0)-(e<0)||+e}function Ro(){if(!this.isValid()){return this.localeData().invalidDate()}var e=jo(this._milliseconds)/1e3;var t=jo(this._days);var n=jo(this._months);var i,r,o;i=k(e/60);r=k(i/60);e%=60;i%=60;o=k(n/12);n%=12;var a=o;var s=n;var l=t;var u=r;var c=i;var d=e?e.toFixed(3).replace(/\.?0+$/,""):"";var h=this.asSeconds();if(!h){return"P0D"}var f=h<0?"-":"";var p=Fo(this._months)!==Fo(h)?"-":"";var g=Fo(this._days)!==Fo(h)?"-":"";var m=Fo(this._milliseconds)!==Fo(h)?"-":"";return f+"P"+(a?p+a+"Y":"")+(s?p+s+"M":"")+(l?g+l+"D":"")+(u||c||d?"T":"")+(u?m+u+"H":"")+(c?m+c+"M":"")+(d?m+d+"S":"")}var Wo=ri.prototype;return Wo.isValid=function(){return this._isValid},Wo.abs=function(){var e=this._data;return this._milliseconds=Kr(this._milliseconds),this._days=Kr(this._days),this._months=Kr(this._months),e.milliseconds=Kr
1(e.milliseconds),e.seconds=Kr(e.seconds),e.minutes=Kr(e.minutes),e.hours=Kr(e.hours),e.months=Kr(e.months),e.years=Kr(e.years),this},Wo.add=function(e,t){return Zr(this,e,t,1)},Wo.subtract=function(e,t){return Zr(this,e,t,-1)},Wo.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=Q(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+io(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(ro(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Wo.asMilliseconds=lo,Wo.asSeconds=uo,Wo.asMinutes=co,Wo.asHours=ho,Wo.asDays=fo,Wo.asWeeks=po,Wo.asMonths=go,Wo.asQuarters=mo,Wo.asYears=vo,Wo.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Wo._bubble=function(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;0<=o&&0<=a&&0<=s||o<=0&&a<=0&&s<=0||(o+=864e5*to(ro(s)+a),s=a=0);return l.milliseconds=o%1e3,e=k(o/1e3),l.seconds=e%60,t=k(e/60),l.minutes=t%60,n=k(t/60),l.hours=n%24,a+=k(n/24),r=k(io(a)),s+=r,a-=to(ro(r)),i=k(s/12),s%=12,l.days=a,l.months=s,l.years=i,this},Wo.clone=function(){return Ci(this)},Wo.get=function(e){return e=Q(e),this.isValid()?this[e+"s"]():NaN},Wo.milliseconds=xo,Wo.seconds=wo,Wo.minutes=ko,Wo.hours=So,Wo.days=Co,Wo.weeks=function(){return k(this.days()/7)},Wo.months=To,Wo.years=Do,Wo.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var i=Ci(e).abs(),r=Oo(i.as("s")),o=Oo(i.as("m")),a=Oo(i.as("h")),s=Oo(i.as("d")),l=Oo(i.as("M")),u=Oo(i.as("y")),c=(r<=Eo.ss?["s",r]:r<Eo.s&&["ss",r])||o<=1&&["m"]||o<Eo.m&&["mm",o]||a<=1&&["h"]||a<Eo.h&&["hh",a]||s<=1&&["d"]||s<Eo.d&&["dd",s]||l<=1&&["M"]||l<Eo.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=t,c[3]=0<+e,c[4]=n,function(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}.apply(null,c)}(this,!e,t);e&&(n=t.pastFuture(+this,n));return t.postformat(n)},Wo.toISOString=Ro,Wo.toString=Ro,Wo.toJSON=Ro,Wo.locale=Zi,Wo.localeData=er,Wo.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ro),Wo.lang=Ji,oe("X",0,0,"unix"),oe("x",0,0,"valueOf"),Me("x",we),Me("X",/[+-]?\d+(\.\d{1,3})?/),Ie("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),Ie("x",function(e,t,n){n._d=new Date(S(e))}),u.version="2.24.0",function(e){t=e}($n),u.fn=Fr,u.min=function(){return Kn("isBefore",[].slice.call(arguments,0))},u.max=function(){return Kn("isAfter",[].slice.call(arguments,0))},u.now=function(){return Date.now?Date.now():+new Date},u.utc=p,u.unix=function(e){return $n(1e3*e)},u.months=function(e,t){return zr(e,t,"months")},u.isDate=d,u.locale=fn,u.invalid=v,u.duration=Ci,u.isMoment=w,u.weekdays=function(e,t,n){return Yr(e,t,n,"weekdays")},u.parseZone=function(){return $n.apply(null,arguments).parseZone()},u.localeData=mn,u.isDuration=oi,u.monthsShort=function(e,t){return zr(e,t,"monthsShort")},u.weekdaysMin=function(e,t,n){return Yr(e,t,n,"weekdaysMin")},u.defineLocale=pn,u.updateLocale=function(e,t){if(null!=t){var n,i,r=an;null!=(i=hn(e))&&(r=i._config),t=I(r,t),(n=new N(t)).parentLocale=sn[e],sn[e]=n,fn(e)}else null!=sn[e]&&(null!=sn[e].parentLocale?sn[e]=sn[e].parentLocale:null!=sn[e]&&delete sn[e]);return sn[e]},u.locales=function(){return O(sn)},u.weekdaysShort=function(e,t,n){return Yr(e,t,n,"weekdaysShort")},u.normalizeUnits=Q,u.relativeTimeRounding=function(e){return void 0!==e?"function"==typeof e&&(Oo=e,!0):Oo},u.relativeTimeThreshold=function(e,t){if(void 0===Eo[e])return!1;if(void 0===t)return Eo[e];Eo[e]=t,"s"===e&&(Eo.ss=t-1);return!0},u.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},u.prototype=Fr,u.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},u}()}),mi={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};sn._date.override("function"==typeof gi?{_id:"moment",formats:function(){return mi},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=gi(e,t):e instanceof gi||(e=gi(e)),e.isValid()?e.valueOf():null},format:function(e,t){return gi(e).format(t)},add:function(e,t,n){return gi(e).add(t,n).valueOf()},diff:function(e,t,n){return gi(e).diff(gi(t),n)},startOf:function(e,t,n){return e=gi(e),"isoWeek"===t?e.isoWeekday(n).valueOf():e.startOf(t).valueOf()},endOf:function(e,t){return gi(e).endOf(t).valueOf()},_create:function(e){return gi(e)}}:{}),W._set("global",{plugins:{filler:{propagate:!0}}});var vi={dataset:function(e){var t=e.fill,n=e.chart,i=n.getDatasetMeta(t),r=i&&n.isDatasetVisible(t)&&i.dataset._children||[],o=r.length||0;return o?function(e,t){return t<o&&r[t]._view||null}:null},boundary:function(e){var n=e.boundary,t=n?n.x:null,i=n?n.y:null;return Y.isArray(n)?function(e,t){return n[t]}:function(e){return{x:null===t?e.x:t,y:null===i?e.y:i}}}};function yi(e,t,n){var i,r=e._model||{},o=r.fill;if(void 0===o&&(o=!!r.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(i=parseFloat(o,10),isFinite(i)&&Math.floor(i)===i)return"-"!==o[0]&&"+"!==o[0]||(i=t+i),!(i===t||i<0||n<=i)&&i;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function bi(e){return((e.el._scale||{}).getPointPositionForValue?function(e){var t,n,i,r,o,a=e.el._scale,s=a.options,l=a.chart.data.labels.length,u=e.fill,c=[];if(!l)return null;for(t=s.ticks.reverse?a.max:a.min,n=s.ticks.reverse?a.min:a.max,i=a.getPointPositionForValue(0,t),r=0;r<l;
vendor: 4,894 bytes, line 1
1++r)o="start"===u||"end"===u?a.getPointPositionForValue(r,"start"===u?t:n):a.getBasePosition(r),s.gridLines.circular&&(o.cx=i.x,o.cy=i.y,o.angle=a.getIndexAngle(r)-Math.PI/2),c.push(o);return c}:function(e){var t,n=e.el._model||{},i=e.el._scale||{},r=e.fill,o=null;if(isFinite(r))return null;if("start"===r?o=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===r?o=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:i.getBasePixel&&(o=i.getBasePixel()),null!=o){if(void 0!==o.x&&void 0!==o.y)return o;if(Y.isFinite(o))return{x:(t=i.isHorizontal())?o:null,y:t?null:o}}return null})(e)}function _i(e,t,n){var i,r=e[t].fill,o=[t];if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!isFinite(r))return r;if(!(i=e[r]))return!1;if(i.visible)return r;o.push(r),r=i.fill}return!1}function xi(e){return e&&!e.skip}function wi(e,t,n,i,r){var o,a,s,l;if(i&&r){for(e.moveTo(t[0].x,t[0].y),o=1;o<i;++o)Y.canvas.lineTo(e,t[o-1],t[o]);if(void 0===n[0].angle)for(e.lineTo(n[r-1].x,n[r-1].y),o=r-1;0<o;--o)Y.canvas.lineTo(e,n[o],n[o-1],!0);else for(a=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-a,2)+Math.pow(n[0].y-s,2)),o=r-1;0<o;--o)e.arc(a,s,l,n[o].angle,n[o-1].angle,!0)}}function ki(e,t,n,i,r,o){var a,s,l,u,c,d,h,f,p=t.length,g=i.spanGaps,m=[],v=[],y=0,b=0;for(e.beginPath(),a=0,s=p;a<s;++a)c=n(u=t[l=a%p]._view,l,i),d=xi(u),h=xi(c),o&&void 0===f&&d&&(s=p+(f=a+1)),d&&h?(y=m.push(u),b=v.push(c)):y&&b&&(g?(d&&m.push(u),h&&v.push(c)):(wi(e,m,v,y,b),y=b=0,m=[],v=[]));wi(e,m,v,y,b),e.closePath(),e.fillStyle=r,e.fill()}var Si={id:"filler",afterDatasetsUpdate:function(e,t){var n,i,r,o,a,s,l,u=(e.data.datasets||[]).length,c=t.propagate,d=[];for(i=0;i<u;++i)o=null,(r=(n=e.getDatasetMeta(i)).dataset)&&r._model&&r instanceof Se.Line&&(o={visible:e.isDatasetVisible(i),fill:yi(r,i,u),chart:e,el:r}),n.$filler=o,d.push(o);for(i=0;i<u;++i)(o=d[i])&&(o.fill=_i(d,i,c),o.boundary=bi(o),o.mapper=(l=void 0,s=(a=o).fill,!(l="dataset")===s?null:(isFinite(s)||(l="boundary"),vi[l](a))))},beforeDatasetsDraw:function(e){var t,n,i,r,o,a,s,l=e._getSortedVisibleDatasetMetas(),u=e.ctx;for(n=l.length-1;0<=n;--n)(t=l[n].$filler)&&t.visible&&(r=(i=t.el)._view,o=i._children||[],a=t.mapper,s=r.backgroundColor||W.global.defaultColor,a&&s&&o.length&&(Y.canvas.clipArea(u,e.chartArea),ki(u,o,a,r,s,i._loop),Y.canvas.unclipArea(u)))}},Ci=Y.rtl.getRtlAdapter,Ti=Y.noop,Di=Y.valueOrDefault;function Mi(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}W._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,i=this.chart,r=i.getDatasetMeta(n);r.hidden=null===r.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var i=n.data.datasets,e=n.options.legend||{},r=e.labels&&e.labels.usePointStyle;return n._getSortedDatasetMetas().map(function(e){var t=e.controller.getStyle(r?0:void 0);return{text:i[e.index].label,fillStyle:t.backgroundColor,hidden:!n.isDatasetVisible(e.index),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,rotation:t.rotation,datasetIndex:e.index}},this)}}},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),o=e.data.datasets;for(r.setAttribute("class",e.id+"-legend"),t=0,n=o.length;t<n;t++)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[t].backgroundColor,o[t].label&&i.appendChild(document.createTextNode(o[t].label));return r.outerHTML}});var Oi=X.extend({initialize:function(e){Y.extend(this,e),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:Ti,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Ti,beforeSetDimensions:Ti,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Ti,beforeBuildLabels:Ti,buildLabels:function(){var t=this,n=t.options.labels||{},e=Y.callback(n.generateLabels,[t.chart],t)||[];n.filter&&(e=e.filter(function(e){return n.filter(e,t.chart.data)})),t.options.reverse&&e.reverse(),t.legendItems=e},afterBuildLabels:Ti,beforeFit:Ti,fit:function(){var e=this,t=e.options,i=t.labels,n=t.display,r=e.ctx,o=Y.options._parseFont(i),a=o.size,s=e.legendHitBoxes=[],l=e.minSize,u=e.isHorizontal();if(u?(l.width=e.maxWidth,l.height=n?10:0):(l.width=n?10:0,l.height=e.maxHeight),n){if
1(r.font=o.string,u){var c=e.lineWidths=[0],d=0;r.textAlign="left",r.textBaseline="middle",Y.each(e.legendItems,function(e,t){var n=Mi(i,a)+a/2+r.measureText(e.text).width;(0===t||c[c.length-1]+n+2*i.padding>l.width)&&(d+=a+i.padding,c[c.length-(0<t?0:1)]=0),s[t]={left:0,top:0,width:n,height:a},c[c.length-1]+=n+i.padding}),l.height+=d}else{var h=i.padding,f=e.columnWidths=[],p=e.columnHeights=[],g=i.padding,m=0,v=0;Y.each(e.legendItems,function(e,t){var n=Mi(i,a)+a/2+r.measureText(e.text).width;0<t&&v+a+2*h>l.height&&(g+=m+i.padding,f.push(m),p.push(v),v=m=0),m=Math.max(m,n),v+=a+h,s[t]={left:0,top:0,width:n,height:a}}),g+=m,f.push(m),p.push(v),l.width+=g}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:Ti,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var p=this,n=p.options,g=n.labels,e=W.global,m=e.defaultColor,v=e.elements.line,y=p.height,b=p.columnHeights,_=p.width,x=p.lineWidths;if(n.display){var w,k=Ci(n.rtl,p.left,p.minSize.width),S=p.ctx,t=Di(g.fontColor,e.defaultFontColor),i=Y.options._parseFont(g),C=i.size;S.textAlign=k.textAlign("left"),S.textBaseline="middle",S.lineWidth=.5,S.strokeStyle=t,S.fillStyle=t,S.font=i.string;var T=Mi(g,C),D=p.legendHitBoxes,M=function(e,t){switch(n.align){case"start":return g.padding;case"end":return e-t;default:return(e-t+g.padding)/2}},O=p.isHorizontal();w=O?{x:p.left+M(_,x[0]),y:p.top+g.padding,line:0}:{x:p.left+g.padding,y:p.top+M(y,b[0]),line:0},Y.rtl.overrideTextDirection(p.ctx,n.textDirection);var E=C+g.padding;Y.each(p.legendItems,function(e,t){var n=S.measureText(e.text).width,i=T+C/2+n,r=w.x,o=w.y;k.setWidth(p.minSize.width),O?0<t&&r+i+g.padding>p.left+p.minSize.width&&(o=w.y+=E,w.line++,r=w.x=p.left+M(_,x[w.line])):0<t&&o+E>p.top+p.minSize.height&&(r=w.x=r+p.columnWidths[w.line]+g.padding,w.line++,o=w.y=p.top+M(y,b[w.line]));var a,s,l,u,c,d,h,f=k.x(r);!function(e,t,n){if(!(isNaN(T)||T<=0)){S.save();var i=Di(n.lineWidth,v.borderWidth);if(S.fillStyle=Di(n.fillStyle,m),S.lineCap=Di(n.lineCap,v.borderCapStyle),S.lineDashOffset=Di(n.lineDashOffset,v.borderDashOffset),S.lineJoin=Di(n.lineJoin,v.borderJoinStyle),S.lineWidth=i,S.strokeStyle=Di(n.strokeStyle,m),S.setLineDash&&S.setLineDash(Di(n.lineDash,v.borderDash)),g&&g.usePointStyle){var r=T*Math.SQRT2/2,o=k.xPlus(e,T/2),a=t+C/2;Y.canvas.drawPoint(S,n.pointStyle,r,o,a,n.rotation)}else S.fillRect(k.leftForLtr(e,T),t,T,C),0!==i&&S.strokeRect(k.leftForLtr(e,T),t,T,C);S.restore()}}(f,o,e),D[t].left=k.leftForLtr(f,D[t].width),D[t].top=o,a=f,s=o,l=e,u=n,c=C/2,d=k.xPlus(a,T+c),h=s+c,S.fillText(l.text,d,h),l.hidden&&(S.beginPath(),S.lineWidth=2,S.moveTo(d,h),S.lineTo(k.xPlus(d,u),h),S.stroke()),O?w.x+=i+g.padding:w.y+=E}),Y.rtl.restoreTextDirection(p.ctx,n.textDirection)}},_getLegendItemAt:function(e,t){var n,i,r;if(e>=this.left&&e<=this.right&&t>=this.top&&t<=this.bottom)for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(e>=(i=r[n]).left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height)return this.legendItems[n];return null},handleEvent:function(e){var t,n=this.options,i="mouseup"===e.type?"click":e.type;if("mousemove"===i){if(!n.onHover&&!n.onLeave)return}else{if("click"!==i)return;if(!n.onClick)return}t=this._getLegendItemAt(e.x,e.y),"click"===i?t&&n.onClick&&n.onClick.call(this,e.native,t):(n.onLeave&&t!==this._hoveredItem&&(this._hoveredItem&&n.onLeave.call(this,e.native,this._hoveredItem),this._hoveredItem=t),n.onHover&&t&&n.onHover.call(this,e.native,t))}});function Ei(e,t){var n=new Oi({ctx:e.ctx,options:t,chart:e});mt.configure(e,n,t),mt.addBox(e,n),e.legend=n}var Ai={id:"legend",_element:Oi,beforeInit:function(e){var t=e.options.legend;t&&Ei(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(Y.mergeIf(t,W.global.legend),n?(mt.configure(e,n,t),n.options=t):Ei(e,t)):n&&(mt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Pi=Y.noop;W._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Ii=X.extend({initialize:function(e){Y.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Pi,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Pi,beforeSetDimensions:Pi,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Pi,beforeBuildLabels:Pi,buildLabels:Pi,afterBuildLabels:Pi,beforeFit:Pi,fit:function(){var e,t=this.options,n=this.minSize={},i=this.isHorizontal();t.display?(e=(Y.isArray(t.text)?t.text.length:1)*Y.options._parseFont(t).lineHeight+2*t.padding,this.width=n.width=i?this.maxWidth:e,this.height=n.height=i?e:this.maxHeight):this.width=n.width=this.height=n.height=0},afterFit:Pi,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this.ctx,t=this.options;if(t.display){var n,i,r,o=Y.options._parseFont(t),a=o.lineHeight,s=a/2+t.padding,l=0,u=this.top,c=this.left,d=this.bottom,h=this.right;e.fillStyle=Y.valueOrDefault(t.fontColor,W.global.defaultFontColor),e.font=o.string,this.isHorizontal()?(i=c+(h-c)/2,r=u+s,n=h-c):(i="left"===t.position?c+s:h-s,r=u+(d-u)/2,n=d-u,l=Math.PI*("left"===t.position?-.5:.5)),e.save(),e.translate(i,r),e.rotate(l),e.textAlign="center",e.textBaseline="middle";var f=t.text;if(Y.isArray(f))for(var p=0,g=0;g<f.length;++g)e.fillText(f[g],0,p,n),p+=a;else e.fillText(f,0,0,n);
vendor: 4,816 bytes, line 1
1e.restore()}}});function Ni(e,t){var n=new Ii({ctx:e.ctx,options:t,chart:e});mt.configure(e,n,t),mt.addBox(e,n),e.titleBlock=n}var Li={},ji=Si,Fi=Ai,Ri={id:"title",_element:Ii,beforeInit:function(e){var t=e.options.title;t&&Ni(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(Y.mergeIf(t,W.global.title),n?(mt.configure(e,n,t),n.options=t):Ni(e,t)):n&&(mt.removeBox(e,n),delete e.titleBlock)}};function Wi(e,t,n){var i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*t.parentNode[n])):i=e,i}function Hi(e){return null!=e&&"none"!==e}function Bi(e,t,n){var i=document.defaultView,r=Y._getParentNode(e),o=i.getComputedStyle(e)[t],a=i.getComputedStyle(r)[t],s=Hi(o),l=Hi(a),u=Number.POSITIVE_INFINITY;return s||l?Math.min(s?Wi(o,e,n):u,l?Wi(a,r,n):u):"none"}for(var Vi in Li.filler=ji,Li.legend=Fi,Li.title=Ri,(rn.helpers=Y).where=function(e,t){if(Y.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return Y.each(e,function(e){t(e)&&n.push(e)}),n},Y.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var i=0,r=e.length;i<r;++i)if(t.call(n,e[i],i,e))return i;return-1},Y.findNextWhere=function(e,t,n){Y.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<e.length;i++){var r=e[i];if(t(r))return r}},Y.findPreviousWhere=function(e,t,n){Y.isNullOrUndef(n)&&(n=e.length);for(var i=n-1;0<=i;i--){var r=e[i];if(t(r))return r}},Y.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Y.almostEquals=function(e,t,n){return Math.abs(e-t)<n},Y.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&e<=n+t},Y.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},Y.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},Y.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0===(e=+e)||isNaN(e)?e:0<e?1:-1},Y.toRadians=function(e){return e*(Math.PI/180)},Y.toDegrees=function(e){return e*(180/Math.PI)},Y._decimalPlaces=function(e){if(Y.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},Y.getAngleFromPoint=function(e,t){var n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i),o=Math.atan2(i,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:r}},Y.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Y.aliasPixel=function(e){return e%2==0?0:.5},Y._alignPixel=function(e,t,n){var i=e.currentDevicePixelRatio,r=n/2;return Math.round((t-r)*i)/i+r},Y.splineCurve=function(e,t,n,i){var r=e.skip?t:e,o=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),l=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),u=s/(s+l),c=l/(s+l),d=i*(u=isNaN(u)?0:u),h=i*(c=isNaN(c)?0:c);return{previous:{x:o.x-d*(a.x-r.x),y:o.y-d*(a.y-r.y)},next:{x:o.x+h*(a.x-r.x),y:o.y+h*(a.y-r.y)}}},Y.EPSILON=Number.EPSILON||1e-14,Y.splineCurveMonotone=function(e){var t,n,i,r,o,a,s,l,u,c=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),d=c.length;for(t=0;t<d;++t)if(!(i=c[t]).model.skip){if(n=0<t?c[t-1]:null,(r=t<d-1?c[t+1]:null)&&!r.model.skip){var h=r.model.x-i.model.x;i.deltaK=0!=h?(r.model.y-i.model.y)/h:0}!n||n.model.skip?i.mK=i.deltaK:!r||r.model.skip?i.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?i.mK=0:i.mK=(n.deltaK+i.deltaK)/2}for(t=0;t<d-1;++t)i=c[t],r=c[t+1],i.model.skip||r.model.skip||(Y.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=r.mK=0:(o=i.mK/i.deltaK,a=r.mK/i.deltaK,(l=Math.pow(o,2)+Math.pow(a,2))<=9||(s=3/Math.sqrt(l),i.mK=o*s*i.deltaK,r.mK=a*s*i.deltaK)));for(t=0;t<d;++t)(i=c[t]).model.skip||(n=0<t?c[t-1]:null,r=t<d-1?c[t+1]:null,n&&!n.model.skip&&(u=(i.model.x-n.model.x)/3,i.model.controlPointPreviousX=i.model.x-u,i.model.controlPointPreviousY=i.model.y-u*i.mK),r&&!r.model.skip&&(u=(r.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+u,i.model.controlPointNextY=i.model.y+u*i.mK))},Y.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},Y.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},Y.niceNum=function(e,t){var n=Math.floor(Y.log10(e)),i=e/Math.pow(10,n);return(t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},Y.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},Y.getRelativePosition=function(e,t){var n,i,r=e.originalEvent||e,o=e.target||e.srcElement,a=o.getBoundingClientRect(),s=r.touches;i=s&&0<s.length?(n=s[0].clientX,s[0].clientY):(n=r.clientX,r.clientY);var l=parseFloat(Y.getStyle(o,"padding-left")),u=parseFloat(Y.getStyle(o,"padding-top")),c=p
1arseFloat(Y.getStyle(o,"padding-right")),d=parseFloat(Y.getStyle(o,"padding-bottom")),h=a.right-a.left-l-c,f=a.bottom-a.top-u-d;return{x:n=Math.round((n-a.left-l)/h*o.width/t.currentDevicePixelRatio),y:i=Math.round((i-a.top-u)/f*o.height/t.currentDevicePixelRatio)}},Y.getConstraintWidth=function(e){return Bi(e,"max-width","clientWidth")},Y.getConstraintHeight=function(e){return Bi(e,"max-height","clientHeight")},Y._calculatePadding=function(e,t,n){return-1<(t=Y.getStyle(e,t)).indexOf("%")?n*parseInt(t,10)/100:parseInt(t,10)},Y._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},Y.getMaximumWidth=function(e){var t=Y._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,i=n-Y._calculatePadding(t,"padding-left",n)-Y._calculatePadding(t,"padding-right",n),r=Y.getConstraintWidth(e);return isNaN(r)?i:Math.min(i,r)},Y.getMaximumHeight=function(e){var t=Y._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,i=n-Y._calculatePadding(t,"padding-top",n)-Y._calculatePadding(t,"padding-bottom",n),r=Y.getConstraintHeight(e);return isNaN(r)?i:Math.min(i,r)},Y.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},Y.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=e.canvas,r=e.height,o=e.width;i.height=r*n,i.width=o*n,e.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=r+"px",i.style.width=o+"px")}},Y.fontString=function(e,t,n){return t+" "+e+"px "+n},Y.longestText=function(e,t,n,i){var r=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},o=i.garbageCollect=[],i.font=t),e.font=t;var a,s,l,u,c,d=0,h=n.length;for(a=0;a<h;a++)if(null!=(u=n[a])&&!0!==Y.isArray(u))d=Y.measureText(e,r,o,d,u);else if(Y.isArray(u))for(s=0,l=u.length;s<l;s++)null==(c=u[s])||Y.isArray(c)||(d=Y.measureText(e,r,o,d,c));var f=o.length/2;if(f>n.length){for(a=0;a<f;a++)delete r[o[a]];o.splice(0,f)}return d},Y.measureText=function(e,t,n,i,r){var o=t[r];return o||(o=t[r]=e.measureText(r).width,n.push(r)),i<o&&(i=o),i},Y.numberOfLabelLines=function(e){var t=1;return Y.each(e,function(e){Y.isArray(e)&&e.length>t&&(t=e.length)}),t},Y.color=k?function(e){return e instanceof CanvasGradient&&(e=W.global.defaultColor),k(e)}:function(e){return console.error("Color.js not found!"),e},Y.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:Y.color(e).saturate(.5).darken(.1).rgbString()},rn._adapters=sn,rn.Animation=J,rn.animationService=ee,rn.controllers=Ze,rn.DatasetController=oe,rn.defaults=W,rn.Element=X,rn.elements=Se,rn.Interaction=ot,rn.layouts=mt,rn.platform=Lt,rn.plugins=jt,rn.Scale=kn,rn.scaleService=Ft,rn.Ticks=ln,rn.Tooltip=Qt,rn.helpers.each(pi,function(e,t){rn.scaleService.registerScaleType(t,e,e._defaults)}),Li)Li.hasOwnProperty(Vi)&&rn.plugins.register(Li[Vi]);rn.platform.initialize();var zi=rn;return"undefined"!=typeof window&&(window.Chart=rn),(rn.Chart=rn).Legend=Li.legend._element,rn.Title=Li.title._element,rn.pluginService=rn.plugins,rn.PluginBase=rn.Element.extend({}),rn.canvasHelpers=rn.helpers.canvas,rn.layoutService=rn.layouts,rn.LinearScaleBase=On,rn.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(n){rn[n]=function(e,t){return new rn(e,rn.helpers.merge(t||{},{type:n.charAt(0).toLowerCase()+n.slice(1)}))}}),zi}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(p){var i=/\+/g;function g(e){return v.raw?e:encodeURIComponent(e)}function m(e,t){var n=v.raw?e:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(i," ")),v.json?JSON.parse(e):e}catch(e){}}(e);return p.isFunction(t)?t(n):n}var v=p.cookie=function(e,t,n){if(1<arguments.length&&!p.isFunction(t)){if("number"==typeof(n=p.extend({},v.defaults,n)).expires){var i=n.expires,r=n.expires=new Date;r.setMilliseconds(r.getMilliseconds()+864e5*i)}return document.cookie=[g(e),"=",(o=t,g(v.json?JSON.stringify(o):String(o))),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("")}for(var o,a,s=e?void 0:{},l=document.cookie?document.cookie.split("; "):[],u=0,c=l.length;u<c;u++){var d=l[u].split("="),h=(a=d.shift(),v.raw?a:decodeURIComponent(a)),f=d.join("=");
1if(e===h){s=m(f,t);break}e||void 0===(f=m(f))||(s[h]=f)}return s};v.defaults={},p.removeCookie=function(e,t){return p.cookie(e,"",p.extend({},t,{expires:-1})),!p.cookie(e)}});var FP={init:function(){var e=this;$(function(){$.cookie("fp")||$.ajax({type:"POST",url:"/fprint",data:{canvas:e.fingerprint_canvas(),display:e.fingerprint_display()}})})},fingerprint_display:function(){"use strict";var e,t;t=e=null;try{return(e=window.screen)&&(t=e.colorDepth+"|"+e.width+"|"+e.height+"|"+e.availWidth+"|"+e.availHeight),t}catch(e){return"Error"}},fingerprint_canvas:function(){"use strict";var e,t,n;n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~1!2@3#4$5%6^7&8*9(0)-_=+[{]}|;:',<.>/?",t=e=null;try{return(t=(e=document.createElement("canvas")).getContext("2d")).textBaseline="top",t.font="14px 'Arial'",t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(125,1,62,20),t.fillStyle="#069",t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.7)",t.fillText(n,4,17),e.toDataURL()}catch(e){return"Error"}}};FP.init(),function(){var O,E;O=this.jQuery||window.jQuery,E=O(window),O.fn.stick_in_parent=function(e){var x,w,t,n,k,i,S,C,T,D,M;for(null==e&&(e={}),M=e.sticky_class,k=e.inner_scrolling,D=e.recalc_every,T=e.parent,C=e.offset_top,S=e.spacer,w=e.bottoming,null==C&&(C=0),null==T&&(T=void 0),null==k&&(k=!0),null==M&&(M="is_stuck"),x=O(document),null==w&&(w=!0),t=function(r,o,a,s,l,u,c,d){var h,e,f,p,g,m,v,y,t,b,_,i;if(!r.data("sticky_kit")){if(r.data("sticky_kit",!0),g=x.height(),v=r.parent(),null!=T&&(v=v.closest(T)),!v.length)throw"failed to find stick parent";if(h=f=!1,(_=null!=S?S&&r.closest(S):O("<div />"))&&_.css("position",r.css("position")),(y=function(){var e,t,n;if(!d&&(g=x.height(),e=parseInt(v.css("border-top-width"),10),t=parseInt(v.css("padding-top"),10),o=parseInt(v.css("padding-bottom"),10),a=v.offset().top+e+t,s=v.height(),f&&(h=f=!1,null==S&&(r.insertAfter(_),_.detach()),r.css({position:"",top:"",width:"",bottom:""}).removeClass(M),n=!0),l=r.offset().top-(parseInt(r.css("margin-top"),10)||0)-C,u=r.outerHeight(!0),c=r.css("float"),_&&_.css({width:r.outerWidth(!0),height:u,display:r.css("display"),"vertical-align":r.css("vertical-align"),float:c}),n))return i()})(),u!==s)return p=void 0,m=C,b=D,i=function(){var e,t,n,i;if(!d&&(n=!1,null!=b&&(--b<=0&&(b=D,y(),n=!0)),n||x.height()===g||y(),n=E.scrollTop(),null!=p&&(t=n-p),p=n,f?(w&&(i=s+a<n+u+m,h&&!i&&(h=!1,r.css({position:"fixed",bottom:"",top:m}).trigger("sticky_kit:unbottom"))),n<l&&(f=!1,m=C,null==S&&("left"!==c&&"right"!==c||r.insertAfter(_),_.detach()),e={position:"",width:"",top:""}
1,r.css(e).removeClass(M).trigger("sticky_kit:unstick")),k&&((e=E.height())<u+C&&!h&&(m-=t,m=Math.max(e-u,m),m=Math.min(C,m),f&&r.css({top:m+"px"})))):l<n&&(f=!0,(e={position:"fixed",top:m}).width="border-box"===r.css("box-sizing")?r.outerWidth()+"px":r.width()+"px",r.css(e).addClass(M),null==S&&(r.after(_),"left"!==c&&"right"!==c||_.append(r)),r.trigger("sticky_kit:stick")),f&&w&&(null==i&&(i=s+a<n+u+m),!h&&i)))return h=!0,"static"===v.css("position")&&v.css({position:"relative"}),r.css({position:"absolute",bottom:o,top:"auto"}).trigger("sticky_kit:bottom")},t=function(){return y(),i()},e=function(){if(d=!0,E.off("touchmove",i),E.off("scroll",i),E.off("resize",t),O(document.body).off("sticky_kit:recalc",t),r.off("sticky_kit:detach",e),r.removeData("sticky_kit"),r.css({position:"",bottom:"",top:"",width:""}),v.position("position",""),f)return null==S&&("left"!==c&&"right"!==c||r.insertAfter(_),_.remove()),r.removeClass(M)},E.on("touchmove",i),E.on("scroll",i),E.on("resize",t),O(document.body).on("sticky_kit:recalc",t),r.on("sticky_kit:detach",e),setTimeout(i,0)}},n=0,i=this.length;n<i;n++)e=this[n],t(O(e));return this}}.call(this),jQuery(function(o){o.fn.isInViewport=function(){var e=o(this).offset().top,t=e+o(this).outerHeight(),n=o(window).scrollTop(),i=n+o(window).height();return n<t&&e<i},o(".tabs").each(function(){var t=o(this),e=o(".mediamenu a.current",t),n=!1;e.length&&(n=e.attr("href"),o(n,t).length&&o(n,t).addClass("current")),o(".mediamenu a",t).on("click",function(){var e=o(this);if(n=e.attr("href"),o(n,t).length)return e.hasClass("current")||(o(".mediamenu a.current",t).removeClass("current"),o(".tab.current",t).removeClass("current"),e.addClass("current"),o(n,t).addClass("current")),!1});var i=window.location.hash.replace("#",""),r=o('a[href="#tab-'+i+'"]',t);r.length&&r.trigger("click")}),o(".vote .radio").hover(function(){o(this).find(".votecircle").addClass("fa-check-circle-o"),o(this).find(".votecircle").removeClass("fa-circle-o")},function(){o(this).find(".votecircle").addClass("fa-circle-o"),o(this).find(".votecircle").removeClass("fa-check-circle-o")}),o(".vote .radio").click(function(){o(this).find(".poll_r input").attr("checked","checked");var t=o(this).parents("#portlet-poll-form");return o.ajax({url:"/poll/poll/vote",type:"POST",cache:!1,data:t.serialize(),success:function(e){t.parents(".poll-content").html(e)}}),!1}),o(".navii").click(function(){return rel=o(this).attr("rel"),"mostreading"==rel?(o(this).text("читаемые"),o('[rel="mostcomment"]').text("комментируемые"),o('[rel="lastcomment"]').text("последние")):"lastcomment"==rel?(o(this).text("последние"),o('[rel="mostcomment"]').text("комментируемые"),o('[rel="mostreading"]').text("читаемые")):"mostcomment"==rel&&(o(this).text("комментируемые"),o('[rel="mostreading"]').text("читаемые"),o('[rel="lastcomment"]').text("последние")),o(".navii").removeClass("block-header"),o(".navii").removeClass("active"),o(".navii").addClass("popular-mini"),o(this).addClass("block-header"),o(this).addClass("active"),o(this).removeClass("popular-mini"),o(".mtab").css("display","none"),o("#"+rel).css("display","block"),!1}),o("a#back-top").click(function(e){e.preventDefault(),o("body,html").animate({scrollTop:0},500)}),o("#back-top").hide().css("visibility","visible");var t=o("#main-clean"),n=0;function e(){992<o(window).width()?o("#right").css("margin-top","-"+(o("#top-adds").height()-9)+"px"):o("#right").css("margin-top",0)}o(window).scroll(function(){if(100<o(this).scrollTop()&&!o("#back-top").is(":visible")&&o("#back-top").fadeIn(),o(this).scrollTop()<99&&o("#back-top").is(":visible")&&o("#back-top").fadeOut(),n&&(o(this).scrollTop()>n?(o("#left, #right").css("margin-top",n+"px"),o("#search").css("margin-top","0")):(o("#left, #right").css("margin-top","0"),o("#search").css("margin-top","-40px"))),t.length){var e=t.contents().find("#center");e.length&&(o(".article-container").last().after(e[0].innerHTML),t.remove(),n=o(".widget.first-news").position().top)}}),o("body").on("click",".show-comments-button",function(e){e.preventDefault();var t=o(this).attr("rel"),n=o(".commentContainer[data-id="+t+"] .comment-container").length;o(this).hasClass("opened")?(o(this).removeClass("opened"),o(this).text("Показать все комментарии ("+n+")")):(o(this).addClass("opened"),o(this).text("Скрыть комментарии")),o(".commentContainer[data-id="+t+"] .not-first").slideToggle()}),o(".topten-tabs-buttons a").click(function(e){e.preventDefault();var t=o(this).attr("rel");o(".topten-tabs-buttons a").removeClass("active"),o(this).addClass("active"),o(".topten-tabs .topten-tab").removeClass("active"),o(".topten-tabs .topten-tab.tab-"+t).addClass("active")}),o("#show-mob-searach-form").click(function(e){e.preventDefault(),o(".mob-form-wrapper").slideToggle()}),e(),o(window).resize(function(){e()}),o(".scroll_to").click(function(e){e.preventDefault();var t=o(this).attr("href");console.log(t),o("html, body").animate({scrollTop:o("#"+t).offset().top},800)})}),statViewSend={init:function(){$('[data-toggle="tooltip"]').tooltip(),$("#main-chart").length&&this.init_main_chart(),$("#follow-chart").length&&this.init_follow_chart(),$(".filter-button").click(function(e){e.preventDefault();var t=$("#statistics-form"),n=$(this).data("start"),i=$(this).data("end");t.find("input[name=start_date]").val(n),t.find("input[name=end_date]").val(i),t.submit()}),$(".input-daterange input[type=text]").each(function(){$(this).datepicker({language:"ru",format:"dd-mm-yyyy"})}),$(".input-daterange input").on("changeDate",function(){$(this).datepicker("hide"),$("#submit-button").show()}),$(".input-daterange input[name=start_date]").on("changeDate",function(){$(".input-daterange input[name=end_date]").datepicker("setStartDate",$(this).val())});var e=this;e.runView(),$(window).scroll(function(){e.runView()})},init_main_chart:function(){var e=JSON.parse($("#stat_data").text()),t={type:"line",data:{labels:e.labels,datasets:e.datasets},options:{responsive:!0,title:{display:!0,text:""},scales:{xAxes:[{display:!0}],yAxes:[{display:!0}]}}},n=document.getElementById("main-chart").getContext("2d");window.MainChart=new Chart(n,t)},init_follow_chart:function(){var e=JSON.parse($("#stat_data_follow").text()),t={type:"line",data:{labels:e.labels,datasets:e.datasets},options:{responsive:!0,title:{display:!0,text:""},scales:{xAxes:[{display:!0}],yAxes:[{display:!0}]}}},n=document.getElementById("follow-chart").getContext("2d");window.FollowChart=new Chart(n,t)},runView:function(){var e=this;$(".adv-block-itm:not(.started-view)").each(function(){e.waitView($(this))})},waitView:function(e){e.isInViewport()&&e.is(":visible")&&(e.addClass("started-view"),$.ajax({type:"POST",url:e.data("view-link"),data:{is_show:"show"}}),setTimeout(function(){e.isInViewport()&&e.is(":visible")&&(e.removeClass("adv-block-itm"),$.ajax({type:"POST",url:e.data("view-link")})),e.removeClass("started-view")},3e3))}},$(function(){statViewSend.init()});
2//# sourceMappingURL=main.min.js.map

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