EVOLUTION-MANAGER
Edit File: 8.85fc61961ebfd61423b9.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{1194:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLogs=function(t){return t.entities.admin.logs},e.getAudits=function(t){return t.entities.admin.audits},e.getConfig=function(t){return t.entities.admin.config},e.getLdapGroups=function(t){return t.entities.admin.ldapGroups},e.getLdapGroupsCount=function(t){return t.entities.admin.ldapGroupsCount},e.getEnvironmentConfig=function(t){return t.entities.admin.environmentConfig},e.getComplianceReports=function(t){return t.entities.admin.complianceReports},e.getClusterInfo=function(t){return t.entities.admin.clusterInfo},e.getUserAccessTokens=function(t){return t.entities.admin.userAccessTokens}},1232:function(t,e,n){(function(t,r){var i; /** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="__lodash_hash_undefined__",c=500,h="__lodash_placeholder__",f=1,d=2,p=4,g=1,v=2,m=1,y=2,b=4,x=8,_=16,w=32,k=64,S=128,M=256,C=512,I=30,A="...",T=800,P=16,E=1,O=2,R=1/0,F=9007199254740991,D=17976931348623157e292,L=NaN,N=4294967295,B=N-1,z=N>>>1,j=[["ary",S],["bind",m],["bindKey",y],["curry",x],["curryRight",_],["flip",C],["partial",w],["partialRight",k],["rearg",M]],W="[object Arguments]",V="[object Array]",H="[object AsyncFunction]",U="[object Boolean]",J="[object Date]",q="[object DOMException]",Y="[object Error]",G="[object Function]",$="[object GeneratorFunction]",K="[object Map]",Z="[object Number]",X="[object Null]",Q="[object Object]",tt="[object Proxy]",et="[object RegExp]",nt="[object Set]",rt="[object String]",it="[object Symbol]",ot="[object Undefined]",at="[object WeakMap]",st="[object WeakSet]",ut="[object ArrayBuffer]",lt="[object DataView]",ct="[object Float32Array]",ht="[object Float64Array]",ft="[object Int8Array]",dt="[object Int16Array]",pt="[object Int32Array]",gt="[object Uint8Array]",vt="[object Uint8ClampedArray]",mt="[object Uint16Array]",yt="[object Uint32Array]",bt=/\b__p \+= '';/g,xt=/\b(__p \+=) '' \+/g,_t=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/&(?:amp|lt|gt|quot|#39);/g,kt=/[&<>"']/g,St=RegExp(wt.source),Mt=RegExp(kt.source),Ct=/<%-([\s\S]+?)%>/g,It=/<%([\s\S]+?)%>/g,At=/<%=([\s\S]+?)%>/g,Tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pt=/^\w*$/,Et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ot=/[\\^$.*+?()[\]{}|]/g,Rt=RegExp(Ot.source),Ft=/^\s+|\s+$/g,Dt=/^\s+/,Lt=/\s+$/,Nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Bt=/\{\n\/\* \[wrapped with (.+)\] \*/,zt=/,? & /,jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wt=/\\(\\)?/g,Vt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ht=/\w*$/,Ut=/^[-+]0x[0-9a-f]+$/i,Jt=/^0b[01]+$/i,qt=/^\[object .+?Constructor\]$/,Yt=/^0o[0-7]+$/i,Gt=/^(?:0|[1-9]\d*)$/,$t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kt=/($^)/,Zt=/['\n\r\u2028\u2029\\]/g,Xt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",te="[\\ud800-\\udfff]",ee="["+Qt+"]",ne="["+Xt+"]",re="\\d+",ie="[\\u2700-\\u27bf]",oe="[a-z\\xdf-\\xf6\\xf8-\\xff]",ae="[^\\ud800-\\udfff"+Qt+re+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",se="\\ud83c[\\udffb-\\udfff]",ue="[^\\ud800-\\udfff]",le="(?:\\ud83c[\\udde6-\\uddff]){2}",ce="[\\ud800-\\udbff][\\udc00-\\udfff]",he="[A-Z\\xc0-\\xd6\\xd8-\\xde]",fe="(?:"+oe+"|"+ae+")",de="(?:"+he+"|"+ae+")",pe="(?:"+ne+"|"+se+")"+"?",ge="[\\ufe0e\\ufe0f]?"+pe+("(?:\\u200d(?:"+[ue,le,ce].join("|")+")[\\ufe0e\\ufe0f]?"+pe+")*"),ve="(?:"+[ie,le,ce].join("|")+")"+ge,me="(?:"+[ue+ne+"?",ne,le,ce,te].join("|")+")",ye=RegExp("['’]","g"),be=RegExp(ne,"g"),xe=RegExp(se+"(?="+se+")|"+me+ge,"g"),_e=RegExp([he+"?"+oe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ee,he,"$"].join("|")+")",de+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ee,he+fe,"$"].join("|")+")",he+"?"+fe+"+(?:['’](?:d|ll|m|re|s|t|ve))?",he+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",re,ve].join("|"),"g"),we=RegExp("[\\u200d\\ud800-\\udfff"+Xt+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Se=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Me=-1,Ce={};Ce[ct]=Ce[ht]=Ce[ft]=Ce[dt]=Ce[pt]=Ce[gt]=Ce[vt]=Ce[mt]=Ce[yt]=!0,Ce[W]=Ce[V]=Ce[ut]=Ce[U]=Ce[lt]=Ce[J]=Ce[Y]=Ce[G]=Ce[K]=Ce[Z]=Ce[Q]=Ce[et]=Ce[nt]=Ce[rt]=Ce[at]=!1;var Ie={};Ie[W]=Ie[V]=Ie[ut]=Ie[lt]=Ie[U]=Ie[J]=Ie[ct]=Ie[ht]=Ie[ft]=Ie[dt]=Ie[pt]=Ie[K]=Ie[Z]=Ie[Q]=Ie[et]=Ie[nt]=Ie[rt]=Ie[it]=Ie[gt]=Ie[vt]=Ie[mt]=Ie[yt]=!0,Ie[Y]=Ie[G]=Ie[at]=!1;var Ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Te=parseFloat,Pe=parseInt,Ee="object"==typeof t&&t&&t.Object===Object&&t,Oe="object"==typeof self&&self&&self.Object===Object&&self,Re=Ee||Oe||Function("return this")(),Fe=e&&!e.nodeType&&e,De=Fe&&"object"==typeof r&&r&&!r.nodeType&&r,Le=De&&De.exports===Fe,Ne=Le&&Ee.process,Be=function(){try{var t=De&&De.require&&De.require("util").types;return t||Ne&&Ne.binding&&Ne.binding("util")}catch(t){}}(),ze=Be&&Be.isArrayBuffer,je=Be&&Be.isDate,We=Be&&Be.isMap,Ve=Be&&Be.isRegExp,He=Be&&Be.isSet,Ue=Be&&Be.isTypedArray;function Je(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function qe(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function Ye(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Ge(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function $e(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ke(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function Ze(t,e){return!!(null==t?0:t.length)&&un(t,e,0)>-1}function Xe(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Qe(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function tn(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function en(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function nn(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function rn(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var on=fn("length");function an(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function sn(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function un(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):sn(t,cn,n)}function ln(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function cn(t){return t!=t}function hn(t,e){var n=null==t?0:t.length;return n?gn(t,e)/n:L}function fn(t){return function(e){return null==e?o:e[t]}}function dn(t){return function(e){return null==t?o:t[e]}}function pn(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function gn(t,e){for(var n,r=-1,i=t.length;++r<i;){var a=e(t[r]);a!==o&&(n=n===o?a:n+a)}return n}function vn(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function mn(t){return function(e){return t(e)}}function yn(t,e){return Qe(e,(function(e){return t[e]}))}function bn(t,e){return t.has(e)}function xn(t,e){for(var n=-1,r=t.length;++n<r&&un(e,t[n],0)>-1;);return n}function _n(t,e){for(var n=t.length;n--&&un(e,t[n],0)>-1;);return n}var wn=dn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),kn=dn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Sn(t){return"\\"+Ae[t]}function Mn(t){return we.test(t)}function Cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function In(t,e){return function(n){return t(e(n))}}function An(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==h||(t[n]=h,o[i++]=n)}return o}function Tn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function Pn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function En(t){return Mn(t)?function(t){var e=xe.lastIndex=0;for(;xe.test(t);)++e;return e}(t):on(t)}function On(t){return Mn(t)?function(t){return t.match(xe)||[]}(t):function(t){return t.split("")}(t)}var Rn=dn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Fn=function t(e){var n,r=(e=null==e?Re:Fn.defaults(Re.Object(),e,Fn.pick(Re,Se))).Array,i=e.Date,Xt=e.Error,Qt=e.Function,te=e.Math,ee=e.Object,ne=e.RegExp,re=e.String,ie=e.TypeError,oe=r.prototype,ae=Qt.prototype,se=ee.prototype,ue=e["__core-js_shared__"],le=ae.toString,ce=se.hasOwnProperty,he=0,fe=(n=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",de=se.toString,pe=le.call(ee),ge=Re._,ve=ne("^"+le.call(ce).replace(Ot,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=Le?e.Buffer:o,xe=e.Symbol,we=e.Uint8Array,Ae=me?me.allocUnsafe:o,Ee=In(ee.getPrototypeOf,ee),Oe=ee.create,Fe=se.propertyIsEnumerable,De=oe.splice,Ne=xe?xe.isConcatSpreadable:o,Be=xe?xe.iterator:o,on=xe?xe.toStringTag:o,dn=function(){try{var t=zo(ee,"defineProperty");return t({},"",{}),t}catch(t){}}(),Dn=e.clearTimeout!==Re.clearTimeout&&e.clearTimeout,Ln=i&&i.now!==Re.Date.now&&i.now,Nn=e.setTimeout!==Re.setTimeout&&e.setTimeout,Bn=te.ceil,zn=te.floor,jn=ee.getOwnPropertySymbols,Wn=me?me.isBuffer:o,Vn=e.isFinite,Hn=oe.join,Un=In(ee.keys,ee),Jn=te.max,qn=te.min,Yn=i.now,Gn=e.parseInt,$n=te.random,Kn=oe.reverse,Zn=zo(e,"DataView"),Xn=zo(e,"Map"),Qn=zo(e,"Promise"),tr=zo(e,"Set"),er=zo(e,"WeakMap"),nr=zo(ee,"create"),rr=er&&new er,ir={},or=ha(Zn),ar=ha(Xn),sr=ha(Qn),ur=ha(tr),lr=ha(er),cr=xe?xe.prototype:o,hr=cr?cr.valueOf:o,fr=cr?cr.toString:o;function dr(t){if(As(t)&&!ms(t)&&!(t instanceof mr)){if(t instanceof vr)return t;if(ce.call(t,"__wrapped__"))return fa(t)}return new vr(t)}var pr=function(){function t(){}return function(e){if(!Is(e))return{};if(Oe)return Oe(e);t.prototype=e;var n=new t;return t.prototype=o,n}}();function gr(){}function vr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function mr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function yr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function br(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function xr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function _r(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new xr;++e<n;)this.add(t[e])}function wr(t){var e=this.__data__=new br(t);this.size=e.size}function kr(t,e){var n=ms(t),r=!n&&vs(t),i=!n&&!r&&_s(t),o=!n&&!r&&!i&&Ls(t),a=n||r||i||o,s=a?vn(t.length,re):[],u=s.length;for(var l in t)!e&&!ce.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||qo(l,u))||s.push(l);return s}function Sr(t){var e=t.length;return e?t[_i(0,e-1)]:o}function Mr(t,e){return ua(no(t),Fr(e,0,t.length))}function Cr(t){return ua(no(t))}function Ir(t,e,n){(n===o||ds(t[e],n))&&(n!==o||e in t)||Or(t,e,n)}function Ar(t,e,n){var r=t[e];ce.call(t,e)&&ds(r,n)&&(n!==o||e in t)||Or(t,e,n)}function Tr(t,e){for(var n=t.length;n--;)if(ds(t[n][0],e))return n;return-1}function Pr(t,e,n,r){return zr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function Er(t,e){return t&&ro(e,iu(e),t)}function Or(t,e,n){"__proto__"==e&&dn?dn(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Rr(t,e){for(var n=-1,i=e.length,a=r(i),s=null==t;++n<i;)a[n]=s?o:Qs(t,e[n]);return a}function Fr(t,e,n){return t==t&&(n!==o&&(t=t<=n?t:n),e!==o&&(t=t>=e?t:e)),t}function Dr(t,e,n,r,i,a){var s,u=e&f,l=e&d,c=e&p;if(n&&(s=i?n(t,r,i,a):n(t)),s!==o)return s;if(!Is(t))return t;var h=ms(t);if(h){if(s=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&ce.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!u)return no(t,s)}else{var g=Vo(t),v=g==G||g==$;if(_s(t))return Ki(t,u);if(g==Q||g==W||v&&!i){if(s=l||v?{}:Uo(t),!u)return l?function(t,e){return ro(t,Wo(t),e)}(t,function(t,e){return t&&ro(e,ou(e),t)}(s,t)):function(t,e){return ro(t,jo(t),e)}(t,Er(s,t))}else{if(!Ie[g])return i?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case ut:return Zi(t);case U:case J:return new r(+t);case lt:return function(t,e){var n=e?Zi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case ct:case ht:case ft:case dt:case pt:case gt:case vt:case mt:case yt:return Xi(t,n);case K:return new r;case Z:case rt:return new r(t);case et:return function(t){var e=new t.constructor(t.source,Ht.exec(t));return e.lastIndex=t.lastIndex,e}(t);case nt:return new r;case it:return i=t,hr?ee(hr.call(i)):{}}var i}(t,g,u)}}a||(a=new wr);var m=a.get(t);if(m)return m;a.set(t,s),Rs(t)?t.forEach((function(r){s.add(Dr(r,e,n,r,t,a))})):Ts(t)&&t.forEach((function(r,i){s.set(i,Dr(r,e,n,i,t,a))}));var y=h?o:(c?l?Oo:Eo:l?ou:iu)(t);return Ye(y||t,(function(r,i){y&&(r=t[i=r]),Ar(s,i,Dr(r,e,n,i,t,a))})),s}function Lr(t,e,n){var r=n.length;if(null==t)return!r;for(t=ee(t);r--;){var i=n[r],a=e[i],s=t[i];if(s===o&&!(i in t)||!a(s))return!1}return!0}function Nr(t,e,n){if("function"!=typeof t)throw new ie(u);return ia((function(){t.apply(o,n)}),e)}function Br(t,e,n,r){var i=-1,o=Ze,s=!0,u=t.length,l=[],c=e.length;if(!u)return l;n&&(e=Qe(e,mn(n))),r?(o=Xe,s=!1):e.length>=a&&(o=bn,s=!1,e=new _r(e));t:for(;++i<u;){var h=t[i],f=null==n?h:n(h);if(h=r||0!==h?h:0,s&&f==f){for(var d=c;d--;)if(e[d]===f)continue t;l.push(h)}else o(e,f,r)||l.push(h)}return l}dr.templateSettings={escape:Ct,evaluate:It,interpolate:At,variable:"",imports:{_:dr}},dr.prototype=gr.prototype,dr.prototype.constructor=dr,vr.prototype=pr(gr.prototype),vr.prototype.constructor=vr,mr.prototype=pr(gr.prototype),mr.prototype.constructor=mr,yr.prototype.clear=function(){this.__data__=nr?nr(null):{},this.size=0},yr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},yr.prototype.get=function(t){var e=this.__data__;if(nr){var n=e[t];return n===l?o:n}return ce.call(e,t)?e[t]:o},yr.prototype.has=function(t){var e=this.__data__;return nr?e[t]!==o:ce.call(e,t)},yr.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nr&&e===o?l:e,this},br.prototype.clear=function(){this.__data__=[],this.size=0},br.prototype.delete=function(t){var e=this.__data__,n=Tr(e,t);return!(n<0)&&(n==e.length-1?e.pop():De.call(e,n,1),--this.size,!0)},br.prototype.get=function(t){var e=this.__data__,n=Tr(e,t);return n<0?o:e[n][1]},br.prototype.has=function(t){return Tr(this.__data__,t)>-1},br.prototype.set=function(t,e){var n=this.__data__,r=Tr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},xr.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(Xn||br),string:new yr}},xr.prototype.delete=function(t){var e=No(this,t).delete(t);return this.size-=e?1:0,e},xr.prototype.get=function(t){return No(this,t).get(t)},xr.prototype.has=function(t){return No(this,t).has(t)},xr.prototype.set=function(t,e){var n=No(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},_r.prototype.add=_r.prototype.push=function(t){return this.__data__.set(t,l),this},_r.prototype.has=function(t){return this.__data__.has(t)},wr.prototype.clear=function(){this.__data__=new br,this.size=0},wr.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},wr.prototype.get=function(t){return this.__data__.get(t)},wr.prototype.has=function(t){return this.__data__.has(t)},wr.prototype.set=function(t,e){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Xn||r.length<a-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new xr(r)}return n.set(t,e),this.size=n.size,this};var zr=ao(Yr),jr=ao(Gr,!0);function Wr(t,e){var n=!0;return zr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function Vr(t,e,n){for(var r=-1,i=t.length;++r<i;){var a=t[r],s=e(a);if(null!=s&&(u===o?s==s&&!Ds(s):n(s,u)))var u=s,l=a}return l}function Hr(t,e){var n=[];return zr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function Ur(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=Jo),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?Ur(s,e-1,n,r,i):tn(i,s):r||(i[i.length]=s)}return i}var Jr=so(),qr=so(!0);function Yr(t,e){return t&&Jr(t,e,iu)}function Gr(t,e){return t&&qr(t,e,iu)}function $r(t,e){return Ke(e,(function(e){return Ss(t[e])}))}function Kr(t,e){for(var n=0,r=(e=qi(e,t)).length;null!=t&&n<r;)t=t[ca(e[n++])];return n&&n==r?t:o}function Zr(t,e,n){var r=e(t);return ms(t)?r:tn(r,n(t))}function Xr(t){return null==t?t===o?ot:X:on&&on in ee(t)?function(t){var e=ce.call(t,on),n=t[on];try{t[on]=o;var r=!0}catch(t){}var i=de.call(t);r&&(e?t[on]=n:delete t[on]);return i}(t):function(t){return de.call(t)}(t)}function Qr(t,e){return t>e}function ti(t,e){return null!=t&&ce.call(t,e)}function ei(t,e){return null!=t&&e in ee(t)}function ni(t,e,n){for(var i=n?Xe:Ze,a=t[0].length,s=t.length,u=s,l=r(s),c=1/0,h=[];u--;){var f=t[u];u&&e&&(f=Qe(f,mn(e))),c=qn(f.length,c),l[u]=!n&&(e||a>=120&&f.length>=120)?new _r(u&&f):o}f=t[0];var d=-1,p=l[0];t:for(;++d<a&&h.length<c;){var g=f[d],v=e?e(g):g;if(g=n||0!==g?g:0,!(p?bn(p,v):i(h,v,n))){for(u=s;--u;){var m=l[u];if(!(m?bn(m,v):i(t[u],v,n)))continue t}p&&p.push(v),h.push(g)}}return h}function ri(t,e,n){var r=null==(t=ea(t,e=qi(e,t)))?t:t[ca(ka(e))];return null==r?o:Je(r,t,n)}function ii(t){return As(t)&&Xr(t)==W}function oi(t,e,n,r,i){return t===e||(null==t||null==e||!As(t)&&!As(e)?t!=t&&e!=e:function(t,e,n,r,i,a){var s=ms(t),u=ms(e),l=s?V:Vo(t),c=u?V:Vo(e),h=(l=l==W?Q:l)==Q,f=(c=c==W?Q:c)==Q,d=l==c;if(d&&_s(t)){if(!_s(e))return!1;s=!0,h=!1}if(d&&!h)return a||(a=new wr),s||Ls(t)?To(t,e,n,r,i,a):function(t,e,n,r,i,o,a){switch(n){case lt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ut:return!(t.byteLength!=e.byteLength||!o(new we(t),new we(e)));case U:case J:case Z:return ds(+t,+e);case Y:return t.name==e.name&&t.message==e.message;case et:case rt:return t==e+"";case K:var s=Cn;case nt:var u=r&g;if(s||(s=Tn),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;r|=v,a.set(t,e);var c=To(s(t),s(e),r,i,o,a);return a.delete(t),c;case it:if(hr)return hr.call(t)==hr.call(e)}return!1}(t,e,l,n,r,i,a);if(!(n&g)){var p=h&&ce.call(t,"__wrapped__"),m=f&&ce.call(e,"__wrapped__");if(p||m){var y=p?t.value():t,b=m?e.value():e;return a||(a=new wr),i(y,b,n,r,a)}}if(!d)return!1;return a||(a=new wr),function(t,e,n,r,i,a){var s=n&g,u=Eo(t),l=u.length,c=Eo(e).length;if(l!=c&&!s)return!1;var h=l;for(;h--;){var f=u[h];if(!(s?f in e:ce.call(e,f)))return!1}var d=a.get(t);if(d&&a.get(e))return d==e;var p=!0;a.set(t,e),a.set(e,t);var v=s;for(;++h<l;){f=u[h];var m=t[f],y=e[f];if(r)var b=s?r(y,m,f,e,t,a):r(m,y,f,t,e,a);if(!(b===o?m===y||i(m,y,n,r,a):b)){p=!1;break}v||(v="constructor"==f)}if(p&&!v){var x=t.constructor,_=e.constructor;x!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _)&&(p=!1)}return a.delete(t),a.delete(e),p}(t,e,n,r,i,a)}(t,e,n,r,oi,i))}function ai(t,e,n,r){var i=n.length,a=i,s=!r;if(null==t)return!a;for(t=ee(t);i--;){var u=n[i];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<a;){var l=(u=n[i])[0],c=t[l],h=u[1];if(s&&u[2]){if(c===o&&!(l in t))return!1}else{var f=new wr;if(r)var d=r(c,h,l,t,e,f);if(!(d===o?oi(h,c,g|v,r,f):d))return!1}}return!0}function si(t){return!(!Is(t)||(e=t,fe&&fe in e))&&(Ss(t)?ve:qt).test(ha(t));var e}function ui(t){return"function"==typeof t?t:null==t?Pu:"object"==typeof t?ms(t)?pi(t[0],t[1]):di(t):zu(t)}function li(t){if(!Zo(t))return Un(t);var e=[];for(var n in ee(t))ce.call(t,n)&&"constructor"!=n&&e.push(n);return e}function ci(t){if(!Is(t))return function(t){var e=[];if(null!=t)for(var n in ee(t))e.push(n);return e}(t);var e=Zo(t),n=[];for(var r in t)("constructor"!=r||!e&&ce.call(t,r))&&n.push(r);return n}function hi(t,e){return t<e}function fi(t,e){var n=-1,i=bs(t)?r(t.length):[];return zr(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function di(t){var e=Bo(t);return 1==e.length&&e[0][2]?Qo(e[0][0],e[0][1]):function(n){return n===t||ai(n,t,e)}}function pi(t,e){return Go(t)&&Xo(e)?Qo(ca(t),e):function(n){var r=Qs(n,t);return r===o&&r===e?tu(n,t):oi(e,r,g|v)}}function gi(t,e,n,r,i){t!==e&&Jr(e,(function(a,s){if(i||(i=new wr),Is(a))!function(t,e,n,r,i,a,s){var u=na(t,n),l=na(e,n),c=s.get(l);if(c)return void Ir(t,n,c);var h=a?a(u,l,n+"",t,e,s):o,f=h===o;if(f){var d=ms(l),p=!d&&_s(l),g=!d&&!p&&Ls(l);h=l,d||p||g?ms(u)?h=u:xs(u)?h=no(u):p?(f=!1,h=Ki(l,!0)):g?(f=!1,h=Xi(l,!0)):h=[]:Es(l)||vs(l)?(h=u,vs(u)?h=Us(u):Is(u)&&!Ss(u)||(h=Uo(l))):f=!1}f&&(s.set(l,h),i(h,l,r,a,s),s.delete(l));Ir(t,n,h)}(t,e,s,n,gi,r,i);else{var u=r?r(na(t,s),a,s+"",t,e,i):o;u===o&&(u=a),Ir(t,s,u)}}),ou)}function vi(t,e){var n=t.length;if(n)return qo(e+=e<0?n:0,n)?t[e]:o}function mi(t,e,n){var r=-1;return e=Qe(e.length?e:[Pu],mn(Lo())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(fi(t,(function(t,n,i){return{criteria:Qe(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;for(;++r<a;){var u=Qi(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return t.index-e.index}(t,e,n)}))}function yi(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=Kr(t,a);n(s,a)&&Ci(o,qi(a,t),s)}return o}function bi(t,e,n,r){var i=r?ln:un,o=-1,a=e.length,s=t;for(t===e&&(e=no(e)),n&&(s=Qe(t,mn(n)));++o<a;)for(var u=0,l=e[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==t&&De.call(s,u,1),De.call(t,u,1);return t}function xi(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;qo(i)?De.call(t,i,1):Bi(t,i)}}return t}function _i(t,e){return t+zn($n()*(e-t+1))}function wi(t,e){var n="";if(!t||e<1||e>F)return n;do{e%2&&(n+=t),(e=zn(e/2))&&(t+=t)}while(e);return n}function ki(t,e){return oa(ta(t,e,Pu),t+"")}function Si(t){return Sr(du(t))}function Mi(t,e){var n=du(t);return ua(n,Fr(e,0,n.length))}function Ci(t,e,n,r){if(!Is(t))return t;for(var i=-1,a=(e=qi(e,t)).length,s=a-1,u=t;null!=u&&++i<a;){var l=ca(e[i]),c=n;if(i!=s){var h=u[l];(c=r?r(h,l,u):o)===o&&(c=Is(h)?h:qo(e[i+1])?[]:{})}Ar(u,l,c),u=u[l]}return t}var Ii=rr?function(t,e){return rr.set(t,e),t}:Pu,Ai=dn?function(t,e){return dn(t,"toString",{configurable:!0,enumerable:!1,value:Iu(e),writable:!0})}:Pu;function Ti(t){return ua(du(t))}function Pi(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i<o;)a[i]=t[i+e];return a}function Ei(t,e){var n;return zr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function Oi(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=z){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!Ds(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return Ri(t,e,Pu,n)}function Ri(t,e,n,r){e=n(e);for(var i=0,a=null==t?0:t.length,s=e!=e,u=null===e,l=Ds(e),c=e===o;i<a;){var h=zn((i+a)/2),f=n(t[h]),d=f!==o,p=null===f,g=f==f,v=Ds(f);if(s)var m=r||g;else m=c?g&&(r||d):u?g&&d&&(r||!p):l?g&&d&&!p&&(r||!v):!p&&!v&&(r?f<=e:f<e);m?i=h+1:a=h}return qn(a,B)}function Fi(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!ds(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Di(t){return"number"==typeof t?t:Ds(t)?L:+t}function Li(t){if("string"==typeof t)return t;if(ms(t))return Qe(t,Li)+"";if(Ds(t))return fr?fr.call(t):"";var e=t+"";return"0"==e&&1/t==-R?"-0":e}function Ni(t,e,n){var r=-1,i=Ze,o=t.length,s=!0,u=[],l=u;if(n)s=!1,i=Xe;else if(o>=a){var c=e?null:ko(t);if(c)return Tn(c);s=!1,i=bn,l=new _r}else l=e?[]:u;t:for(;++r<o;){var h=t[r],f=e?e(h):h;if(h=n||0!==h?h:0,s&&f==f){for(var d=l.length;d--;)if(l[d]===f)continue t;e&&l.push(f),u.push(h)}else i(l,f,n)||(l!==u&&l.push(f),u.push(h))}return u}function Bi(t,e){return null==(t=ea(t,e=qi(e,t)))||delete t[ca(ka(e))]}function zi(t,e,n,r){return Ci(t,e,n(Kr(t,e)),r)}function ji(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?Pi(t,r?0:o,r?o+1:i):Pi(t,r?o+1:0,r?i:o)}function Wi(t,e){var n=t;return n instanceof mr&&(n=n.value()),en(e,(function(t,e){return e.func.apply(e.thisArg,tn([t],e.args))}),n)}function Vi(t,e,n){var i=t.length;if(i<2)return i?Ni(t[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=t[o],u=-1;++u<i;)u!=o&&(a[o]=Br(a[o]||s,t[u],e,n));return Ni(Ur(a,1),e,n)}function Hi(t,e,n){for(var r=-1,i=t.length,a=e.length,s={};++r<i;){var u=r<a?e[r]:o;n(s,t[r],u)}return s}function Ui(t){return xs(t)?t:[]}function Ji(t){return"function"==typeof t?t:Pu}function qi(t,e){return ms(t)?t:Go(t,e)?[t]:la(Js(t))}var Yi=ki;function Gi(t,e,n){var r=t.length;return n=n===o?r:n,!e&&n>=r?t:Pi(t,e,n)}var $i=Dn||function(t){return Re.clearTimeout(t)};function Ki(t,e){if(e)return t.slice();var n=t.length,r=Ae?Ae(n):new t.constructor(n);return t.copy(r),r}function Zi(t){var e=new t.constructor(t.byteLength);return new we(e).set(new we(t)),e}function Xi(t,e){var n=e?Zi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Qi(t,e){if(t!==e){var n=t!==o,r=null===t,i=t==t,a=Ds(t),s=e!==o,u=null===e,l=e==e,c=Ds(e);if(!u&&!c&&!a&&t>e||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!i)return 1;if(!r&&!a&&!c&&t<e||c&&n&&i&&!r&&!a||u&&n&&i||!s&&i||!l)return-1}return 0}function to(t,e,n,i){for(var o=-1,a=t.length,s=n.length,u=-1,l=e.length,c=Jn(a-s,0),h=r(l+c),f=!i;++u<l;)h[u]=e[u];for(;++o<s;)(f||o<a)&&(h[n[o]]=t[o]);for(;c--;)h[u++]=t[o++];return h}function eo(t,e,n,i){for(var o=-1,a=t.length,s=-1,u=n.length,l=-1,c=e.length,h=Jn(a-u,0),f=r(h+c),d=!i;++o<h;)f[o]=t[o];for(var p=o;++l<c;)f[p+l]=e[l];for(;++s<u;)(d||o<a)&&(f[p+n[s]]=t[o++]);return f}function no(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function ro(t,e,n,r){var i=!n;n||(n={});for(var a=-1,s=e.length;++a<s;){var u=e[a],l=r?r(n[u],t[u],u,n,t):o;l===o&&(l=t[u]),i?Or(n,u,l):Ar(n,u,l)}return n}function io(t,e){return function(n,r){var i=ms(n)?qe:Pr,o=e?e():{};return i(n,t,Lo(r,2),o)}}function oo(t){return ki((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=t.length>3&&"function"==typeof a?(i--,a):o,s&&Yo(n[0],n[1],s)&&(a=i<3?o:a,i=1),e=ee(e);++r<i;){var u=n[r];u&&t(e,u,r,a)}return e}))}function ao(t,e){return function(n,r){if(null==n)return n;if(!bs(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=ee(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function so(t){return function(e,n,r){for(var i=-1,o=ee(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}function uo(t){return function(e){var n=Mn(e=Js(e))?On(e):o,r=n?n[0]:e.charAt(0),i=n?Gi(n,1).join(""):e.slice(1);return r[t]()+i}}function lo(t){return function(e){return en(Su(vu(e).replace(ye,"")),t,"")}}function co(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=pr(t.prototype),r=t.apply(n,e);return Is(r)?r:n}}function ho(t){return function(e,n,r){var i=ee(e);if(!bs(e)){var a=Lo(n,3);e=iu(e),n=function(t){return a(i[t],t,i)}}var s=t(e,n,r);return s>-1?i[a?e[s]:s]:o}}function fo(t){return Po((function(e){var n=e.length,r=n,i=vr.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new ie(u);if(i&&!s&&"wrapper"==Fo(a))var s=new vr([],!0)}for(r=s?r:n;++r<n;){var l=Fo(a=e[r]),c="wrapper"==l?Ro(a):o;s=c&&$o(c[0])&&c[1]==(S|x|w|M)&&!c[4].length&&1==c[9]?s[Fo(c[0])].apply(s,c[3]):1==a.length&&$o(a)?s[l]():s.thru(a)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&ms(r))return s.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function po(t,e,n,i,a,s,u,l,c,h){var f=e&S,d=e&m,p=e&y,g=e&(x|_),v=e&C,b=p?o:co(t);return function m(){for(var y=arguments.length,x=r(y),_=y;_--;)x[_]=arguments[_];if(g)var w=Do(m),k=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(x,w);if(i&&(x=to(x,i,a,g)),s&&(x=eo(x,s,u,g)),y-=k,g&&y<h){var S=An(x,w);return _o(t,e,po,m.placeholder,n,x,S,l,c,h-y)}var M=d?n:this,C=p?M[t]:t;return y=x.length,l?x=function(t,e){var n=t.length,r=qn(e.length,n),i=no(t);for(;r--;){var a=e[r];t[r]=qo(a,n)?i[a]:o}return t}(x,l):v&&y>1&&x.reverse(),f&&c<y&&(x.length=c),this&&this!==Re&&this instanceof m&&(C=b||co(C)),C.apply(M,x)}}function go(t,e){return function(n,r){return function(t,e,n,r){return Yr(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function vo(t,e){return function(n,r){var i;if(n===o&&r===o)return e;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=Li(n),r=Li(r)):(n=Di(n),r=Di(r)),i=t(n,r)}return i}}function mo(t){return Po((function(e){return e=Qe(e,mn(Lo())),ki((function(n){var r=this;return t(e,(function(t){return Je(t,r,n)}))}))}))}function yo(t,e){var n=(e=e===o?" ":Li(e)).length;if(n<2)return n?wi(e,t):e;var r=wi(e,Bn(t/En(e)));return Mn(e)?Gi(On(r),0,t).join(""):r.slice(0,t)}function bo(t){return function(e,n,i){return i&&"number"!=typeof i&&Yo(e,n,i)&&(n=i=o),e=js(e),n===o?(n=e,e=0):n=js(n),function(t,e,n,i){for(var o=-1,a=Jn(Bn((e-t)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=t,t+=n;return s}(e,n,i=i===o?e<n?1:-1:js(i),t)}}function xo(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Hs(e),n=Hs(n)),t(e,n)}}function _o(t,e,n,r,i,a,s,u,l,c){var h=e&x;e|=h?w:k,(e&=~(h?k:w))&b||(e&=~(m|y));var f=[t,e,i,h?a:o,h?s:o,h?o:a,h?o:s,u,l,c],d=n.apply(o,f);return $o(t)&&ra(d,f),d.placeholder=r,aa(d,t,e)}function wo(t){var e=te[t];return function(t,n){if(t=Hs(t),(n=null==n?0:qn(Ws(n),292))&&Vn(t)){var r=(Js(t)+"e").split("e");return+((r=(Js(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var ko=tr&&1/Tn(new tr([,-0]))[1]==R?function(t){return new tr(t)}:Du;function So(t){return function(e){var n=Vo(e);return n==K?Cn(e):n==nt?Pn(e):function(t,e){return Qe(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Mo(t,e,n,i,a,s,l,c){var f=e&y;if(!f&&"function"!=typeof t)throw new ie(u);var d=i?i.length:0;if(d||(e&=~(w|k),i=a=o),l=l===o?l:Jn(Ws(l),0),c=c===o?c:Ws(c),d-=a?a.length:0,e&k){var p=i,g=a;i=a=o}var v=f?o:Ro(t),C=[t,e,n,i,a,p,g,s,l,c];if(v&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<(m|y|S),a=r==S&&n==x||r==S&&n==M&&t[7].length<=e[8]||r==(S|M)&&e[7].length<=e[8]&&n==x;if(!o&&!a)return t;r&m&&(t[2]=e[2],i|=n&m?0:b);var s=e[3];if(s){var u=t[3];t[3]=u?to(u,s,e[4]):s,t[4]=u?An(t[3],h):e[4]}(s=e[5])&&(u=t[5],t[5]=u?eo(u,s,e[6]):s,t[6]=u?An(t[5],h):e[6]);(s=e[7])&&(t[7]=s);r&S&&(t[8]=null==t[8]?e[8]:qn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(C,v),t=C[0],e=C[1],n=C[2],i=C[3],a=C[4],!(c=C[9]=C[9]===o?f?0:t.length:Jn(C[9]-d,0))&&e&(x|_)&&(e&=~(x|_)),e&&e!=m)I=e==x||e==_?function(t,e,n){var i=co(t);return function a(){for(var s=arguments.length,u=r(s),l=s,c=Do(a);l--;)u[l]=arguments[l];var h=s<3&&u[0]!==c&&u[s-1]!==c?[]:An(u,c);return(s-=h.length)<n?_o(t,e,po,a.placeholder,o,u,h,o,o,n-s):Je(this&&this!==Re&&this instanceof a?i:t,this,u)}}(t,e,c):e!=w&&e!=(m|w)||a.length?po.apply(o,C):function(t,e,n,i){var o=e&m,a=co(t);return function e(){for(var s=-1,u=arguments.length,l=-1,c=i.length,h=r(c+u),f=this&&this!==Re&&this instanceof e?a:t;++l<c;)h[l]=i[l];for(;u--;)h[l++]=arguments[++s];return Je(f,o?n:this,h)}}(t,e,n,i);else var I=function(t,e,n){var r=e&m,i=co(t);return function e(){return(this&&this!==Re&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return aa((v?Ii:ra)(I,C),t,e)}function Co(t,e,n,r){return t===o||ds(t,se[n])&&!ce.call(r,n)?e:t}function Io(t,e,n,r,i,a){return Is(t)&&Is(e)&&(a.set(e,t),gi(t,e,o,Io,a),a.delete(e)),t}function Ao(t){return Es(t)?o:t}function To(t,e,n,r,i,a){var s=n&g,u=t.length,l=e.length;if(u!=l&&!(s&&l>u))return!1;var c=a.get(t);if(c&&a.get(e))return c==e;var h=-1,f=!0,d=n&v?new _r:o;for(a.set(t,e),a.set(e,t);++h<u;){var p=t[h],m=e[h];if(r)var y=s?r(m,p,h,e,t,a):r(p,m,h,t,e,a);if(y!==o){if(y)continue;f=!1;break}if(d){if(!rn(e,(function(t,e){if(!bn(d,e)&&(p===t||i(p,t,n,r,a)))return d.push(e)}))){f=!1;break}}else if(p!==m&&!i(p,m,n,r,a)){f=!1;break}}return a.delete(t),a.delete(e),f}function Po(t){return oa(ta(t,o,ya),t+"")}function Eo(t){return Zr(t,iu,jo)}function Oo(t){return Zr(t,ou,Wo)}var Ro=rr?function(t){return rr.get(t)}:Du;function Fo(t){for(var e=t.name+"",n=ir[e],r=ce.call(ir,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Do(t){return(ce.call(dr,"placeholder")?dr:t).placeholder}function Lo(){var t=dr.iteratee||Eu;return t=t===Eu?ui:t,arguments.length?t(arguments[0],arguments[1]):t}function No(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Bo(t){for(var e=iu(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Xo(i)]}return e}function zo(t,e){var n=function(t,e){return null==t?o:t[e]}(t,e);return si(n)?n:o}var jo=jn?function(t){return null==t?[]:(t=ee(t),Ke(jn(t),(function(e){return Fe.call(t,e)})))}:Vu,Wo=jn?function(t){for(var e=[];t;)tn(e,jo(t)),t=Ee(t);return e}:Vu,Vo=Xr;function Ho(t,e,n){for(var r=-1,i=(e=qi(e,t)).length,o=!1;++r<i;){var a=ca(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Cs(i)&&qo(a,i)&&(ms(t)||vs(t))}function Uo(t){return"function"!=typeof t.constructor||Zo(t)?{}:pr(Ee(t))}function Jo(t){return ms(t)||vs(t)||!!(Ne&&t&&t[Ne])}function qo(t,e){var n=typeof t;return!!(e=null==e?F:e)&&("number"==n||"symbol"!=n&&Gt.test(t))&&t>-1&&t%1==0&&t<e}function Yo(t,e,n){if(!Is(n))return!1;var r=typeof e;return!!("number"==r?bs(n)&&qo(e,n.length):"string"==r&&e in n)&&ds(n[e],t)}function Go(t,e){if(ms(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Ds(t))||(Pt.test(t)||!Tt.test(t)||null!=e&&t in ee(e))}function $o(t){var e=Fo(t),n=dr[e];if("function"!=typeof n||!(e in mr.prototype))return!1;if(t===n)return!0;var r=Ro(n);return!!r&&t===r[0]}(Zn&&Vo(new Zn(new ArrayBuffer(1)))!=lt||Xn&&Vo(new Xn)!=K||Qn&&"[object Promise]"!=Vo(Qn.resolve())||tr&&Vo(new tr)!=nt||er&&Vo(new er)!=at)&&(Vo=function(t){var e=Xr(t),n=e==Q?t.constructor:o,r=n?ha(n):"";if(r)switch(r){case or:return lt;case ar:return K;case sr:return"[object Promise]";case ur:return nt;case lr:return at}return e});var Ko=ue?Ss:Hu;function Zo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||se)}function Xo(t){return t==t&&!Is(t)}function Qo(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==o||t in ee(n)))}}function ta(t,e,n){return e=Jn(e===o?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=Jn(i.length-e,0),s=r(a);++o<a;)s[o]=i[e+o];o=-1;for(var u=r(e+1);++o<e;)u[o]=i[o];return u[e]=n(s),Je(t,this,u)}}function ea(t,e){return e.length<2?t:Kr(t,Pi(e,0,-1))}function na(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var ra=sa(Ii),ia=Nn||function(t,e){return Re.setTimeout(t,e)},oa=sa(Ai);function aa(t,e,n){var r=e+"";return oa(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Nt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ye(j,(function(n){var r="_."+n[0];e&n[1]&&!Ze(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(Bt);return e?e[1].split(zt):[]}(r),n)))}function sa(t){var e=0,n=0;return function(){var r=Yn(),i=P-(r-n);if(n=r,i>0){if(++e>=T)return arguments[0]}else e=0;return t.apply(o,arguments)}}function ua(t,e){var n=-1,r=t.length,i=r-1;for(e=e===o?r:e;++n<e;){var a=_i(n,i),s=t[a];t[a]=t[n],t[n]=s}return t.length=e,t}var la=function(t){var e=ss(t,(function(t){return n.size===c&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Et,(function(t,n,r,i){e.push(r?i.replace(Wt,"$1"):n||t)})),e}));function ca(t){if("string"==typeof t||Ds(t))return t;var e=t+"";return"0"==e&&1/t==-R?"-0":e}function ha(t){if(null!=t){try{return le.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function fa(t){if(t instanceof mr)return t.clone();var e=new vr(t.__wrapped__,t.__chain__);return e.__actions__=no(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var da=ki((function(t,e){return xs(t)?Br(t,Ur(e,1,xs,!0)):[]})),pa=ki((function(t,e){var n=ka(e);return xs(n)&&(n=o),xs(t)?Br(t,Ur(e,1,xs,!0),Lo(n,2)):[]})),ga=ki((function(t,e){var n=ka(e);return xs(n)&&(n=o),xs(t)?Br(t,Ur(e,1,xs,!0),o,n):[]}));function va(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Ws(n);return i<0&&(i=Jn(r+i,0)),sn(t,Lo(e,3),i)}function ma(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==o&&(i=Ws(n),i=n<0?Jn(r+i,0):qn(i,r-1)),sn(t,Lo(e,3),i,!0)}function ya(t){return(null==t?0:t.length)?Ur(t,1):[]}function ba(t){return t&&t.length?t[0]:o}var xa=ki((function(t){var e=Qe(t,Ui);return e.length&&e[0]===t[0]?ni(e):[]})),_a=ki((function(t){var e=ka(t),n=Qe(t,Ui);return e===ka(n)?e=o:n.pop(),n.length&&n[0]===t[0]?ni(n,Lo(e,2)):[]})),wa=ki((function(t){var e=ka(t),n=Qe(t,Ui);return(e="function"==typeof e?e:o)&&n.pop(),n.length&&n[0]===t[0]?ni(n,o,e):[]}));function ka(t){var e=null==t?0:t.length;return e?t[e-1]:o}var Sa=ki(Ma);function Ma(t,e){return t&&t.length&&e&&e.length?bi(t,e):t}var Ca=Po((function(t,e){var n=null==t?0:t.length,r=Rr(t,e);return xi(t,Qe(e,(function(t){return qo(t,n)?+t:t})).sort(Qi)),r}));function Ia(t){return null==t?t:Kn.call(t)}var Aa=ki((function(t){return Ni(Ur(t,1,xs,!0))})),Ta=ki((function(t){var e=ka(t);return xs(e)&&(e=o),Ni(Ur(t,1,xs,!0),Lo(e,2))})),Pa=ki((function(t){var e=ka(t);return e="function"==typeof e?e:o,Ni(Ur(t,1,xs,!0),o,e)}));function Ea(t){if(!t||!t.length)return[];var e=0;return t=Ke(t,(function(t){if(xs(t))return e=Jn(t.length,e),!0})),vn(e,(function(e){return Qe(t,fn(e))}))}function Oa(t,e){if(!t||!t.length)return[];var n=Ea(t);return null==e?n:Qe(n,(function(t){return Je(e,o,t)}))}var Ra=ki((function(t,e){return xs(t)?Br(t,e):[]})),Fa=ki((function(t){return Vi(Ke(t,xs))})),Da=ki((function(t){var e=ka(t);return xs(e)&&(e=o),Vi(Ke(t,xs),Lo(e,2))})),La=ki((function(t){var e=ka(t);return e="function"==typeof e?e:o,Vi(Ke(t,xs),o,e)})),Na=ki(Ea);var Ba=ki((function(t){var e=t.length,n=e>1?t[e-1]:o;return n="function"==typeof n?(t.pop(),n):o,Oa(t,n)}));function za(t){var e=dr(t);return e.__chain__=!0,e}function ja(t,e){return e(t)}var Wa=Po((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Rr(e,t)};return!(e>1||this.__actions__.length)&&r instanceof mr&&qo(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ja,args:[i],thisArg:o}),new vr(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(o),t}))):this.thru(i)}));var Va=io((function(t,e,n){ce.call(t,n)?++t[n]:Or(t,n,1)}));var Ha=ho(va),Ua=ho(ma);function Ja(t,e){return(ms(t)?Ye:zr)(t,Lo(e,3))}function qa(t,e){return(ms(t)?Ge:jr)(t,Lo(e,3))}var Ya=io((function(t,e,n){ce.call(t,n)?t[n].push(e):Or(t,n,[e])}));var Ga=ki((function(t,e,n){var i=-1,o="function"==typeof e,a=bs(t)?r(t.length):[];return zr(t,(function(t){a[++i]=o?Je(e,t,n):ri(t,e,n)})),a})),$a=io((function(t,e,n){Or(t,n,e)}));function Ka(t,e){return(ms(t)?Qe:fi)(t,Lo(e,3))}var Za=io((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Xa=ki((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Yo(t,e[0],e[1])?e=[]:n>2&&Yo(e[0],e[1],e[2])&&(e=[e[0]]),mi(t,Ur(e,1),[])})),Qa=Ln||function(){return Re.Date.now()};function ts(t,e,n){return e=n?o:e,e=t&&null==e?t.length:e,Mo(t,S,o,o,o,o,e)}function es(t,e){var n;if("function"!=typeof e)throw new ie(u);return t=Ws(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var ns=ki((function(t,e,n){var r=m;if(n.length){var i=An(n,Do(ns));r|=w}return Mo(t,r,e,n,i)})),rs=ki((function(t,e,n){var r=m|y;if(n.length){var i=An(n,Do(rs));r|=w}return Mo(e,r,t,n,i)}));function is(t,e,n){var r,i,a,s,l,c,h=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new ie(u);function g(e){var n=r,a=i;return r=i=o,h=e,s=t.apply(a,n)}function v(t){var n=t-c;return c===o||n>=e||n<0||d&&t-h>=a}function m(){var t=Qa();if(v(t))return y(t);l=ia(m,function(t){var n=e-(t-c);return d?qn(n,a-(t-h)):n}(t))}function y(t){return l=o,p&&r?g(t):(r=i=o,s)}function b(){var t=Qa(),n=v(t);if(r=arguments,i=this,c=t,n){if(l===o)return function(t){return h=t,l=ia(m,e),f?g(t):s}(c);if(d)return $i(l),l=ia(m,e),g(c)}return l===o&&(l=ia(m,e)),s}return e=Hs(e)||0,Is(n)&&(f=!!n.leading,a=(d="maxWait"in n)?Jn(Hs(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){l!==o&&$i(l),h=0,r=c=i=l=o},b.flush=function(){return l===o?s:y(Qa())},b}var os=ki((function(t,e){return Nr(t,1,e)})),as=ki((function(t,e,n){return Nr(t,Hs(e)||0,n)}));function ss(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new ie(u);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ss.Cache||xr),n}function us(t){if("function"!=typeof t)throw new ie(u);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}ss.Cache=xr;var ls=Yi((function(t,e){var n=(e=1==e.length&&ms(e[0])?Qe(e[0],mn(Lo())):Qe(Ur(e,1),mn(Lo()))).length;return ki((function(r){for(var i=-1,o=qn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Je(t,this,r)}))})),cs=ki((function(t,e){var n=An(e,Do(cs));return Mo(t,w,o,e,n)})),hs=ki((function(t,e){var n=An(e,Do(hs));return Mo(t,k,o,e,n)})),fs=Po((function(t,e){return Mo(t,M,o,o,o,e)}));function ds(t,e){return t===e||t!=t&&e!=e}var ps=xo(Qr),gs=xo((function(t,e){return t>=e})),vs=ii(function(){return arguments}())?ii:function(t){return As(t)&&ce.call(t,"callee")&&!Fe.call(t,"callee")},ms=r.isArray,ys=ze?mn(ze):function(t){return As(t)&&Xr(t)==ut};function bs(t){return null!=t&&Cs(t.length)&&!Ss(t)}function xs(t){return As(t)&&bs(t)}var _s=Wn||Hu,ws=je?mn(je):function(t){return As(t)&&Xr(t)==J};function ks(t){if(!As(t))return!1;var e=Xr(t);return e==Y||e==q||"string"==typeof t.message&&"string"==typeof t.name&&!Es(t)}function Ss(t){if(!Is(t))return!1;var e=Xr(t);return e==G||e==$||e==H||e==tt}function Ms(t){return"number"==typeof t&&t==Ws(t)}function Cs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=F}function Is(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function As(t){return null!=t&&"object"==typeof t}var Ts=We?mn(We):function(t){return As(t)&&Vo(t)==K};function Ps(t){return"number"==typeof t||As(t)&&Xr(t)==Z}function Es(t){if(!As(t)||Xr(t)!=Q)return!1;var e=Ee(t);if(null===e)return!0;var n=ce.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&le.call(n)==pe}var Os=Ve?mn(Ve):function(t){return As(t)&&Xr(t)==et};var Rs=He?mn(He):function(t){return As(t)&&Vo(t)==nt};function Fs(t){return"string"==typeof t||!ms(t)&&As(t)&&Xr(t)==rt}function Ds(t){return"symbol"==typeof t||As(t)&&Xr(t)==it}var Ls=Ue?mn(Ue):function(t){return As(t)&&Cs(t.length)&&!!Ce[Xr(t)]};var Ns=xo(hi),Bs=xo((function(t,e){return t<=e}));function zs(t){if(!t)return[];if(bs(t))return Fs(t)?On(t):no(t);if(Be&&t[Be])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Be]());var e=Vo(t);return(e==K?Cn:e==nt?Tn:du)(t)}function js(t){return t?(t=Hs(t))===R||t===-R?(t<0?-1:1)*D:t==t?t:0:0===t?t:0}function Ws(t){var e=js(t),n=e%1;return e==e?n?e-n:e:0}function Vs(t){return t?Fr(Ws(t),0,N):0}function Hs(t){if("number"==typeof t)return t;if(Ds(t))return L;if(Is(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Is(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ft,"");var n=Jt.test(t);return n||Yt.test(t)?Pe(t.slice(2),n?2:8):Ut.test(t)?L:+t}function Us(t){return ro(t,ou(t))}function Js(t){return null==t?"":Li(t)}var qs=oo((function(t,e){if(Zo(e)||bs(e))ro(e,iu(e),t);else for(var n in e)ce.call(e,n)&&Ar(t,n,e[n])})),Ys=oo((function(t,e){ro(e,ou(e),t)})),Gs=oo((function(t,e,n,r){ro(e,ou(e),t,r)})),$s=oo((function(t,e,n,r){ro(e,iu(e),t,r)})),Ks=Po(Rr);var Zs=ki((function(t,e){t=ee(t);var n=-1,r=e.length,i=r>2?e[2]:o;for(i&&Yo(e[0],e[1],i)&&(r=1);++n<r;)for(var a=e[n],s=ou(a),u=-1,l=s.length;++u<l;){var c=s[u],h=t[c];(h===o||ds(h,se[c])&&!ce.call(t,c))&&(t[c]=a[c])}return t})),Xs=ki((function(t){return t.push(o,Io),Je(su,o,t)}));function Qs(t,e,n){var r=null==t?o:Kr(t,e);return r===o?n:r}function tu(t,e){return null!=t&&Ho(t,e,ei)}var eu=go((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=de.call(e)),t[e]=n}),Iu(Pu)),nu=go((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=de.call(e)),ce.call(t,e)?t[e].push(n):t[e]=[n]}),Lo),ru=ki(ri);function iu(t){return bs(t)?kr(t):li(t)}function ou(t){return bs(t)?kr(t,!0):ci(t)}var au=oo((function(t,e,n){gi(t,e,n)})),su=oo((function(t,e,n,r){gi(t,e,n,r)})),uu=Po((function(t,e){var n={};if(null==t)return n;var r=!1;e=Qe(e,(function(e){return e=qi(e,t),r||(r=e.length>1),e})),ro(t,Oo(t),n),r&&(n=Dr(n,f|d|p,Ao));for(var i=e.length;i--;)Bi(n,e[i]);return n}));var lu=Po((function(t,e){return null==t?{}:function(t,e){return yi(t,e,(function(e,n){return tu(t,n)}))}(t,e)}));function cu(t,e){if(null==t)return{};var n=Qe(Oo(t),(function(t){return[t]}));return e=Lo(e),yi(t,n,(function(t,n){return e(t,n[0])}))}var hu=So(iu),fu=So(ou);function du(t){return null==t?[]:yn(t,iu(t))}var pu=lo((function(t,e,n){return e=e.toLowerCase(),t+(n?gu(e):e)}));function gu(t){return ku(Js(t).toLowerCase())}function vu(t){return(t=Js(t))&&t.replace($t,wn).replace(be,"")}var mu=lo((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),yu=lo((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),bu=uo("toLowerCase");var xu=lo((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var _u=lo((function(t,e,n){return t+(n?" ":"")+ku(e)}));var wu=lo((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),ku=uo("toUpperCase");function Su(t,e,n){return t=Js(t),(e=n?o:e)===o?function(t){return ke.test(t)}(t)?function(t){return t.match(_e)||[]}(t):function(t){return t.match(jt)||[]}(t):t.match(e)||[]}var Mu=ki((function(t,e){try{return Je(t,o,e)}catch(t){return ks(t)?t:new Xt(t)}})),Cu=Po((function(t,e){return Ye(e,(function(e){e=ca(e),Or(t,e,ns(t[e],t))})),t}));function Iu(t){return function(){return t}}var Au=fo(),Tu=fo(!0);function Pu(t){return t}function Eu(t){return ui("function"==typeof t?t:Dr(t,f))}var Ou=ki((function(t,e){return function(n){return ri(n,t,e)}})),Ru=ki((function(t,e){return function(n){return ri(t,n,e)}}));function Fu(t,e,n){var r=iu(e),i=$r(e,r);null!=n||Is(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=$r(e,iu(e)));var o=!(Is(n)&&"chain"in n&&!n.chain),a=Ss(t);return Ye(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=no(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,tn([this.value()],arguments))})})),t}function Du(){}var Lu=mo(Qe),Nu=mo($e),Bu=mo(rn);function zu(t){return Go(t)?fn(ca(t)):function(t){return function(e){return Kr(e,t)}}(t)}var ju=bo(),Wu=bo(!0);function Vu(){return[]}function Hu(){return!1}var Uu=vo((function(t,e){return t+e}),0),Ju=wo("ceil"),qu=vo((function(t,e){return t/e}),1),Yu=wo("floor");var Gu,$u=vo((function(t,e){return t*e}),1),Ku=wo("round"),Zu=vo((function(t,e){return t-e}),0);return dr.after=function(t,e){if("function"!=typeof e)throw new ie(u);return t=Ws(t),function(){if(--t<1)return e.apply(this,arguments)}},dr.ary=ts,dr.assign=qs,dr.assignIn=Ys,dr.assignInWith=Gs,dr.assignWith=$s,dr.at=Ks,dr.before=es,dr.bind=ns,dr.bindAll=Cu,dr.bindKey=rs,dr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return ms(t)?t:[t]},dr.chain=za,dr.chunk=function(t,e,n){e=(n?Yo(t,e,n):e===o)?1:Jn(Ws(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var a=0,s=0,u=r(Bn(i/e));a<i;)u[s++]=Pi(t,a,a+=e);return u},dr.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},dr.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return tn(ms(n)?no(n):[n],Ur(e,1))},dr.cond=function(t){var e=null==t?0:t.length,n=Lo();return t=e?Qe(t,(function(t){if("function"!=typeof t[1])throw new ie(u);return[n(t[0]),t[1]]})):[],ki((function(n){for(var r=-1;++r<e;){var i=t[r];if(Je(i[0],this,n))return Je(i[1],this,n)}}))},dr.conforms=function(t){return function(t){var e=iu(t);return function(n){return Lr(n,t,e)}}(Dr(t,f))},dr.constant=Iu,dr.countBy=Va,dr.create=function(t,e){var n=pr(t);return null==e?n:Er(n,e)},dr.curry=function t(e,n,r){var i=Mo(e,x,o,o,o,o,o,n=r?o:n);return i.placeholder=t.placeholder,i},dr.curryRight=function t(e,n,r){var i=Mo(e,_,o,o,o,o,o,n=r?o:n);return i.placeholder=t.placeholder,i},dr.debounce=is,dr.defaults=Zs,dr.defaultsDeep=Xs,dr.defer=os,dr.delay=as,dr.difference=da,dr.differenceBy=pa,dr.differenceWith=ga,dr.drop=function(t,e,n){var r=null==t?0:t.length;return r?Pi(t,(e=n||e===o?1:Ws(e))<0?0:e,r):[]},dr.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?Pi(t,0,(e=r-(e=n||e===o?1:Ws(e)))<0?0:e):[]},dr.dropRightWhile=function(t,e){return t&&t.length?ji(t,Lo(e,3),!0,!0):[]},dr.dropWhile=function(t,e){return t&&t.length?ji(t,Lo(e,3),!0):[]},dr.fill=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Yo(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=Ws(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:Ws(r))<0&&(r+=i),r=n>r?0:Vs(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},dr.filter=function(t,e){return(ms(t)?Ke:Hr)(t,Lo(e,3))},dr.flatMap=function(t,e){return Ur(Ka(t,e),1)},dr.flatMapDeep=function(t,e){return Ur(Ka(t,e),R)},dr.flatMapDepth=function(t,e,n){return n=n===o?1:Ws(n),Ur(Ka(t,e),n)},dr.flatten=ya,dr.flattenDeep=function(t){return(null==t?0:t.length)?Ur(t,R):[]},dr.flattenDepth=function(t,e){return(null==t?0:t.length)?Ur(t,e=e===o?1:Ws(e)):[]},dr.flip=function(t){return Mo(t,C)},dr.flow=Au,dr.flowRight=Tu,dr.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},dr.functions=function(t){return null==t?[]:$r(t,iu(t))},dr.functionsIn=function(t){return null==t?[]:$r(t,ou(t))},dr.groupBy=Ya,dr.initial=function(t){return(null==t?0:t.length)?Pi(t,0,-1):[]},dr.intersection=xa,dr.intersectionBy=_a,dr.intersectionWith=wa,dr.invert=eu,dr.invertBy=nu,dr.invokeMap=Ga,dr.iteratee=Eu,dr.keyBy=$a,dr.keys=iu,dr.keysIn=ou,dr.map=Ka,dr.mapKeys=function(t,e){var n={};return e=Lo(e,3),Yr(t,(function(t,r,i){Or(n,e(t,r,i),t)})),n},dr.mapValues=function(t,e){var n={};return e=Lo(e,3),Yr(t,(function(t,r,i){Or(n,r,e(t,r,i))})),n},dr.matches=function(t){return di(Dr(t,f))},dr.matchesProperty=function(t,e){return pi(t,Dr(e,f))},dr.memoize=ss,dr.merge=au,dr.mergeWith=su,dr.method=Ou,dr.methodOf=Ru,dr.mixin=Fu,dr.negate=us,dr.nthArg=function(t){return t=Ws(t),ki((function(e){return vi(e,t)}))},dr.omit=uu,dr.omitBy=function(t,e){return cu(t,us(Lo(e)))},dr.once=function(t){return es(2,t)},dr.orderBy=function(t,e,n,r){return null==t?[]:(ms(e)||(e=null==e?[]:[e]),ms(n=r?o:n)||(n=null==n?[]:[n]),mi(t,e,n))},dr.over=Lu,dr.overArgs=ls,dr.overEvery=Nu,dr.overSome=Bu,dr.partial=cs,dr.partialRight=hs,dr.partition=Za,dr.pick=lu,dr.pickBy=cu,dr.property=zu,dr.propertyOf=function(t){return function(e){return null==t?o:Kr(t,e)}},dr.pull=Sa,dr.pullAll=Ma,dr.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?bi(t,e,Lo(n,2)):t},dr.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?bi(t,e,o,n):t},dr.pullAt=Ca,dr.range=ju,dr.rangeRight=Wu,dr.rearg=fs,dr.reject=function(t,e){return(ms(t)?Ke:Hr)(t,us(Lo(e,3)))},dr.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Lo(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return xi(t,i),n},dr.rest=function(t,e){if("function"!=typeof t)throw new ie(u);return ki(t,e=e===o?e:Ws(e))},dr.reverse=Ia,dr.sampleSize=function(t,e,n){return e=(n?Yo(t,e,n):e===o)?1:Ws(e),(ms(t)?Mr:Mi)(t,e)},dr.set=function(t,e,n){return null==t?t:Ci(t,e,n)},dr.setWith=function(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:Ci(t,e,n,r)},dr.shuffle=function(t){return(ms(t)?Cr:Ti)(t)},dr.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Yo(t,e,n)?(e=0,n=r):(e=null==e?0:Ws(e),n=n===o?r:Ws(n)),Pi(t,e,n)):[]},dr.sortBy=Xa,dr.sortedUniq=function(t){return t&&t.length?Fi(t):[]},dr.sortedUniqBy=function(t,e){return t&&t.length?Fi(t,Lo(e,2)):[]},dr.split=function(t,e,n){return n&&"number"!=typeof n&&Yo(t,e,n)&&(e=n=o),(n=n===o?N:n>>>0)?(t=Js(t))&&("string"==typeof e||null!=e&&!Os(e))&&!(e=Li(e))&&Mn(t)?Gi(On(t),0,n):t.split(e,n):[]},dr.spread=function(t,e){if("function"!=typeof t)throw new ie(u);return e=null==e?0:Jn(Ws(e),0),ki((function(n){var r=n[e],i=Gi(n,0,e);return r&&tn(i,r),Je(t,this,i)}))},dr.tail=function(t){var e=null==t?0:t.length;return e?Pi(t,1,e):[]},dr.take=function(t,e,n){return t&&t.length?Pi(t,0,(e=n||e===o?1:Ws(e))<0?0:e):[]},dr.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Pi(t,(e=r-(e=n||e===o?1:Ws(e)))<0?0:e,r):[]},dr.takeRightWhile=function(t,e){return t&&t.length?ji(t,Lo(e,3),!1,!0):[]},dr.takeWhile=function(t,e){return t&&t.length?ji(t,Lo(e,3)):[]},dr.tap=function(t,e){return e(t),t},dr.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new ie(u);return Is(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),is(t,e,{leading:r,maxWait:e,trailing:i})},dr.thru=ja,dr.toArray=zs,dr.toPairs=hu,dr.toPairsIn=fu,dr.toPath=function(t){return ms(t)?Qe(t,ca):Ds(t)?[t]:no(la(Js(t)))},dr.toPlainObject=Us,dr.transform=function(t,e,n){var r=ms(t),i=r||_s(t)||Ls(t);if(e=Lo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Is(t)&&Ss(o)?pr(Ee(t)):{}}return(i?Ye:Yr)(t,(function(t,r,i){return e(n,t,r,i)})),n},dr.unary=function(t){return ts(t,1)},dr.union=Aa,dr.unionBy=Ta,dr.unionWith=Pa,dr.uniq=function(t){return t&&t.length?Ni(t):[]},dr.uniqBy=function(t,e){return t&&t.length?Ni(t,Lo(e,2)):[]},dr.uniqWith=function(t,e){return e="function"==typeof e?e:o,t&&t.length?Ni(t,o,e):[]},dr.unset=function(t,e){return null==t||Bi(t,e)},dr.unzip=Ea,dr.unzipWith=Oa,dr.update=function(t,e,n){return null==t?t:zi(t,e,Ji(n))},dr.updateWith=function(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:zi(t,e,Ji(n),r)},dr.values=du,dr.valuesIn=function(t){return null==t?[]:yn(t,ou(t))},dr.without=Ra,dr.words=Su,dr.wrap=function(t,e){return cs(Ji(e),t)},dr.xor=Fa,dr.xorBy=Da,dr.xorWith=La,dr.zip=Na,dr.zipObject=function(t,e){return Hi(t||[],e||[],Ar)},dr.zipObjectDeep=function(t,e){return Hi(t||[],e||[],Ci)},dr.zipWith=Ba,dr.entries=hu,dr.entriesIn=fu,dr.extend=Ys,dr.extendWith=Gs,Fu(dr,dr),dr.add=Uu,dr.attempt=Mu,dr.camelCase=pu,dr.capitalize=gu,dr.ceil=Ju,dr.clamp=function(t,e,n){return n===o&&(n=e,e=o),n!==o&&(n=(n=Hs(n))==n?n:0),e!==o&&(e=(e=Hs(e))==e?e:0),Fr(Hs(t),e,n)},dr.clone=function(t){return Dr(t,p)},dr.cloneDeep=function(t){return Dr(t,f|p)},dr.cloneDeepWith=function(t,e){return Dr(t,f|p,e="function"==typeof e?e:o)},dr.cloneWith=function(t,e){return Dr(t,p,e="function"==typeof e?e:o)},dr.conformsTo=function(t,e){return null==e||Lr(t,e,iu(e))},dr.deburr=vu,dr.defaultTo=function(t,e){return null==t||t!=t?e:t},dr.divide=qu,dr.endsWith=function(t,e,n){t=Js(t),e=Li(e);var r=t.length,i=n=n===o?r:Fr(Ws(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},dr.eq=ds,dr.escape=function(t){return(t=Js(t))&&Mt.test(t)?t.replace(kt,kn):t},dr.escapeRegExp=function(t){return(t=Js(t))&&Rt.test(t)?t.replace(Ot,"\\$&"):t},dr.every=function(t,e,n){var r=ms(t)?$e:Wr;return n&&Yo(t,e,n)&&(e=o),r(t,Lo(e,3))},dr.find=Ha,dr.findIndex=va,dr.findKey=function(t,e){return an(t,Lo(e,3),Yr)},dr.findLast=Ua,dr.findLastIndex=ma,dr.findLastKey=function(t,e){return an(t,Lo(e,3),Gr)},dr.floor=Yu,dr.forEach=Ja,dr.forEachRight=qa,dr.forIn=function(t,e){return null==t?t:Jr(t,Lo(e,3),ou)},dr.forInRight=function(t,e){return null==t?t:qr(t,Lo(e,3),ou)},dr.forOwn=function(t,e){return t&&Yr(t,Lo(e,3))},dr.forOwnRight=function(t,e){return t&&Gr(t,Lo(e,3))},dr.get=Qs,dr.gt=ps,dr.gte=gs,dr.has=function(t,e){return null!=t&&Ho(t,e,ti)},dr.hasIn=tu,dr.head=ba,dr.identity=Pu,dr.includes=function(t,e,n,r){t=bs(t)?t:du(t),n=n&&!r?Ws(n):0;var i=t.length;return n<0&&(n=Jn(i+n,0)),Fs(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&un(t,e,n)>-1},dr.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Ws(n);return i<0&&(i=Jn(r+i,0)),un(t,e,i)},dr.inRange=function(t,e,n){return e=js(e),n===o?(n=e,e=0):n=js(n),function(t,e,n){return t>=qn(e,n)&&t<Jn(e,n)}(t=Hs(t),e,n)},dr.invoke=ru,dr.isArguments=vs,dr.isArray=ms,dr.isArrayBuffer=ys,dr.isArrayLike=bs,dr.isArrayLikeObject=xs,dr.isBoolean=function(t){return!0===t||!1===t||As(t)&&Xr(t)==U},dr.isBuffer=_s,dr.isDate=ws,dr.isElement=function(t){return As(t)&&1===t.nodeType&&!Es(t)},dr.isEmpty=function(t){if(null==t)return!0;if(bs(t)&&(ms(t)||"string"==typeof t||"function"==typeof t.splice||_s(t)||Ls(t)||vs(t)))return!t.length;var e=Vo(t);if(e==K||e==nt)return!t.size;if(Zo(t))return!li(t).length;for(var n in t)if(ce.call(t,n))return!1;return!0},dr.isEqual=function(t,e){return oi(t,e)},dr.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:o)?n(t,e):o;return r===o?oi(t,e,o,n):!!r},dr.isError=ks,dr.isFinite=function(t){return"number"==typeof t&&Vn(t)},dr.isFunction=Ss,dr.isInteger=Ms,dr.isLength=Cs,dr.isMap=Ts,dr.isMatch=function(t,e){return t===e||ai(t,e,Bo(e))},dr.isMatchWith=function(t,e,n){return n="function"==typeof n?n:o,ai(t,e,Bo(e),n)},dr.isNaN=function(t){return Ps(t)&&t!=+t},dr.isNative=function(t){if(Ko(t))throw new Xt(s);return si(t)},dr.isNil=function(t){return null==t},dr.isNull=function(t){return null===t},dr.isNumber=Ps,dr.isObject=Is,dr.isObjectLike=As,dr.isPlainObject=Es,dr.isRegExp=Os,dr.isSafeInteger=function(t){return Ms(t)&&t>=-F&&t<=F},dr.isSet=Rs,dr.isString=Fs,dr.isSymbol=Ds,dr.isTypedArray=Ls,dr.isUndefined=function(t){return t===o},dr.isWeakMap=function(t){return As(t)&&Vo(t)==at},dr.isWeakSet=function(t){return As(t)&&Xr(t)==st},dr.join=function(t,e){return null==t?"":Hn.call(t,e)},dr.kebabCase=mu,dr.last=ka,dr.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=Ws(n))<0?Jn(r+i,0):qn(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):sn(t,cn,i,!0)},dr.lowerCase=yu,dr.lowerFirst=bu,dr.lt=Ns,dr.lte=Bs,dr.max=function(t){return t&&t.length?Vr(t,Pu,Qr):o},dr.maxBy=function(t,e){return t&&t.length?Vr(t,Lo(e,2),Qr):o},dr.mean=function(t){return hn(t,Pu)},dr.meanBy=function(t,e){return hn(t,Lo(e,2))},dr.min=function(t){return t&&t.length?Vr(t,Pu,hi):o},dr.minBy=function(t,e){return t&&t.length?Vr(t,Lo(e,2),hi):o},dr.stubArray=Vu,dr.stubFalse=Hu,dr.stubObject=function(){return{}},dr.stubString=function(){return""},dr.stubTrue=function(){return!0},dr.multiply=$u,dr.nth=function(t,e){return t&&t.length?vi(t,Ws(e)):o},dr.noConflict=function(){return Re._===this&&(Re._=ge),this},dr.noop=Du,dr.now=Qa,dr.pad=function(t,e,n){t=Js(t);var r=(e=Ws(e))?En(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return yo(zn(i),n)+t+yo(Bn(i),n)},dr.padEnd=function(t,e,n){t=Js(t);var r=(e=Ws(e))?En(t):0;return e&&r<e?t+yo(e-r,n):t},dr.padStart=function(t,e,n){t=Js(t);var r=(e=Ws(e))?En(t):0;return e&&r<e?yo(e-r,n)+t:t},dr.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),Gn(Js(t).replace(Dt,""),e||0)},dr.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Yo(t,e,n)&&(e=n=o),n===o&&("boolean"==typeof e?(n=e,e=o):"boolean"==typeof t&&(n=t,t=o)),t===o&&e===o?(t=0,e=1):(t=js(t),e===o?(e=t,t=0):e=js(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=$n();return qn(t+i*(e-t+Te("1e-"+((i+"").length-1))),e)}return _i(t,e)},dr.reduce=function(t,e,n){var r=ms(t)?en:pn,i=arguments.length<3;return r(t,Lo(e,4),n,i,zr)},dr.reduceRight=function(t,e,n){var r=ms(t)?nn:pn,i=arguments.length<3;return r(t,Lo(e,4),n,i,jr)},dr.repeat=function(t,e,n){return e=(n?Yo(t,e,n):e===o)?1:Ws(e),wi(Js(t),e)},dr.replace=function(){var t=arguments,e=Js(t[0]);return t.length<3?e:e.replace(t[1],t[2])},dr.result=function(t,e,n){var r=-1,i=(e=qi(e,t)).length;for(i||(i=1,t=o);++r<i;){var a=null==t?o:t[ca(e[r])];a===o&&(r=i,a=n),t=Ss(a)?a.call(t):a}return t},dr.round=Ku,dr.runInContext=t,dr.sample=function(t){return(ms(t)?Sr:Si)(t)},dr.size=function(t){if(null==t)return 0;if(bs(t))return Fs(t)?En(t):t.length;var e=Vo(t);return e==K||e==nt?t.size:li(t).length},dr.snakeCase=xu,dr.some=function(t,e,n){var r=ms(t)?rn:Ei;return n&&Yo(t,e,n)&&(e=o),r(t,Lo(e,3))},dr.sortedIndex=function(t,e){return Oi(t,e)},dr.sortedIndexBy=function(t,e,n){return Ri(t,e,Lo(n,2))},dr.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Oi(t,e);if(r<n&&ds(t[r],e))return r}return-1},dr.sortedLastIndex=function(t,e){return Oi(t,e,!0)},dr.sortedLastIndexBy=function(t,e,n){return Ri(t,e,Lo(n,2),!0)},dr.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=Oi(t,e,!0)-1;if(ds(t[n],e))return n}return-1},dr.startCase=_u,dr.startsWith=function(t,e,n){return t=Js(t),n=null==n?0:Fr(Ws(n),0,t.length),e=Li(e),t.slice(n,n+e.length)==e},dr.subtract=Zu,dr.sum=function(t){return t&&t.length?gn(t,Pu):0},dr.sumBy=function(t,e){return t&&t.length?gn(t,Lo(e,2)):0},dr.template=function(t,e,n){var r=dr.templateSettings;n&&Yo(t,e,n)&&(e=o),t=Js(t),e=Gs({},e,r,Co);var i,a,s=Gs({},e.imports,r.imports,Co),u=iu(s),l=yn(s,u),c=0,h=e.interpolate||Kt,f="__p += '",d=ne((e.escape||Kt).source+"|"+h.source+"|"+(h===At?Vt:Kt).source+"|"+(e.evaluate||Kt).source+"|$","g"),p="//# sourceURL="+(ce.call(e,"sourceURL")?(e.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++Me+"]")+"\n";t.replace(d,(function(e,n,r,o,s,u){return r||(r=o),f+=t.slice(c,u).replace(Zt,Sn),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+e.length,e})),f+="';\n";var g=ce.call(e,"variable")&&e.variable;g||(f="with (obj) {\n"+f+"\n}\n"),f=(a?f.replace(bt,""):f).replace(xt,"$1").replace(_t,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Mu((function(){return Qt(u,p+"return "+f).apply(o,l)}));if(v.source=f,ks(v))throw v;return v},dr.times=function(t,e){if((t=Ws(t))<1||t>F)return[];var n=N,r=qn(t,N);e=Lo(e),t-=N;for(var i=vn(r,e);++n<t;)e(n);return i},dr.toFinite=js,dr.toInteger=Ws,dr.toLength=Vs,dr.toLower=function(t){return Js(t).toLowerCase()},dr.toNumber=Hs,dr.toSafeInteger=function(t){return t?Fr(Ws(t),-F,F):0===t?t:0},dr.toString=Js,dr.toUpper=function(t){return Js(t).toUpperCase()},dr.trim=function(t,e,n){if((t=Js(t))&&(n||e===o))return t.replace(Ft,"");if(!t||!(e=Li(e)))return t;var r=On(t),i=On(e);return Gi(r,xn(r,i),_n(r,i)+1).join("")},dr.trimEnd=function(t,e,n){if((t=Js(t))&&(n||e===o))return t.replace(Lt,"");if(!t||!(e=Li(e)))return t;var r=On(t);return Gi(r,0,_n(r,On(e))+1).join("")},dr.trimStart=function(t,e,n){if((t=Js(t))&&(n||e===o))return t.replace(Dt,"");if(!t||!(e=Li(e)))return t;var r=On(t);return Gi(r,xn(r,On(e))).join("")},dr.truncate=function(t,e){var n=I,r=A;if(Is(e)){var i="separator"in e?e.separator:i;n="length"in e?Ws(e.length):n,r="omission"in e?Li(e.omission):r}var a=(t=Js(t)).length;if(Mn(t)){var s=On(t);a=s.length}if(n>=a)return t;var u=n-En(r);if(u<1)return r;var l=s?Gi(s,0,u).join(""):t.slice(0,u);if(i===o)return l+r;if(s&&(u+=l.length-u),Os(i)){if(t.slice(u).search(i)){var c,h=l;for(i.global||(i=ne(i.source,Js(Ht.exec(i))+"g")),i.lastIndex=0;c=i.exec(h);)var f=c.index;l=l.slice(0,f===o?u:f)}}else if(t.indexOf(Li(i),u)!=u){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+r},dr.unescape=function(t){return(t=Js(t))&&St.test(t)?t.replace(wt,Rn):t},dr.uniqueId=function(t){var e=++he;return Js(t)+e},dr.upperCase=wu,dr.upperFirst=ku,dr.each=Ja,dr.eachRight=qa,dr.first=ba,Fu(dr,(Gu={},Yr(dr,(function(t,e){ce.call(dr.prototype,e)||(Gu[e]=t)})),Gu),{chain:!1}),dr.VERSION="4.17.15",Ye(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){dr[t].placeholder=dr})),Ye(["drop","take"],(function(t,e){mr.prototype[t]=function(n){n=n===o?1:Jn(Ws(n),0);var r=this.__filtered__&&!e?new mr(this):this.clone();return r.__filtered__?r.__takeCount__=qn(n,r.__takeCount__):r.__views__.push({size:qn(n,N),type:t+(r.__dir__<0?"Right":"")}),r},mr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ye(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=n==E||3==n;mr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Lo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ye(["head","last"],(function(t,e){var n="take"+(e?"Right":"");mr.prototype[t]=function(){return this[n](1).value()[0]}})),Ye(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");mr.prototype[t]=function(){return this.__filtered__?new mr(this):this[n](1)}})),mr.prototype.compact=function(){return this.filter(Pu)},mr.prototype.find=function(t){return this.filter(t).head()},mr.prototype.findLast=function(t){return this.reverse().find(t)},mr.prototype.invokeMap=ki((function(t,e){return"function"==typeof t?new mr(this):this.map((function(n){return ri(n,t,e)}))})),mr.prototype.reject=function(t){return this.filter(us(Lo(t)))},mr.prototype.slice=function(t,e){t=Ws(t);var n=this;return n.__filtered__&&(t>0||e<0)?new mr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==o&&(n=(e=Ws(e))<0?n.dropRight(-e):n.take(e-t)),n)},mr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},mr.prototype.toArray=function(){return this.take(N)},Yr(mr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=dr[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);i&&(dr.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,u=e instanceof mr,l=s[0],c=u||ms(e),h=function(t){var e=i.apply(dr,tn([t],s));return r&&f?e[0]:e};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var f=this.__chain__,d=!!this.__actions__.length,p=a&&!f,g=u&&!d;if(!a&&c){e=g?e:new mr(this);var v=t.apply(e,s);return v.__actions__.push({func:ja,args:[h],thisArg:o}),new vr(v,f)}return p&&g?t.apply(this,s):(v=this.thru(h),p?r?v.value()[0]:v.value():v)})})),Ye(["pop","push","shift","sort","splice","unshift"],(function(t){var e=oe[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);dr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(ms(i)?i:[],t)}return this[n]((function(n){return e.apply(ms(n)?n:[],t)}))}})),Yr(mr.prototype,(function(t,e){var n=dr[e];if(n){var r=n.name+"";ce.call(ir,r)||(ir[r]=[]),ir[r].push({name:e,func:n})}})),ir[po(o,y).name]=[{name:"wrapper",func:o}],mr.prototype.clone=function(){var t=new mr(this.__wrapped__);return t.__actions__=no(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=no(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=no(this.__views__),t},mr.prototype.reverse=function(){if(this.__filtered__){var t=new mr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},mr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=ms(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=qn(e,t+a);break;case"takeRight":t=Jn(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,h=c.length,f=0,d=qn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return Wi(t,this.__actions__);var p=[];t:for(;u--&&f<d;){for(var g=-1,v=t[l+=e];++g<h;){var m=c[g],y=m.iteratee,b=m.type,x=y(v);if(b==O)v=x;else if(!x){if(b==E)continue t;break t}}p[f++]=v}return p},dr.prototype.at=Wa,dr.prototype.chain=function(){return za(this)},dr.prototype.commit=function(){return new vr(this.value(),this.__chain__)},dr.prototype.next=function(){this.__values__===o&&(this.__values__=zs(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},dr.prototype.plant=function(t){for(var e,n=this;n instanceof gr;){var r=fa(n);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},dr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof mr){var e=t;return this.__actions__.length&&(e=new mr(this)),(e=e.reverse()).__actions__.push({func:ja,args:[Ia],thisArg:o}),new vr(e,this.__chain__)}return this.thru(Ia)},dr.prototype.toJSON=dr.prototype.valueOf=dr.prototype.value=function(){return Wi(this.__wrapped__,this.__actions__)},dr.prototype.first=dr.prototype.head,Be&&(dr.prototype[Be]=function(){return this}),dr}();Re._=Fn,(i=function(){return Fn}.call(e,n,e,r))===o||(r.exports=i)}).call(this)}).call(this,n(24),n(142)(t))},1235:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBotAccounts=function(t){return t.entities.bots.accounts}},1266:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(18),i=n(5),o=n(62),a=20;e.createBot=function(t){return o.bindClientFunc({clientFunc:r.Client4.createBot,onSuccess:i.BotTypes.RECEIVED_BOT_ACCOUNT,params:[t]})},e.patchBot=function(t,e){return o.bindClientFunc({clientFunc:r.Client4.patchBot,onSuccess:i.BotTypes.RECEIVED_BOT_ACCOUNT,params:[t,e]})},e.loadBot=function(t){return o.bindClientFunc({clientFunc:r.Client4.getBot,onSuccess:i.BotTypes.RECEIVED_BOT_ACCOUNT,params:[t]})},e.loadBots=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=a),o.bindClientFunc({clientFunc:r.Client4.getBotsIncludeDeleted,onSuccess:i.BotTypes.RECEIVED_BOT_ACCOUNTS,params:[t,e]})},e.disableBot=function(t){return o.bindClientFunc({clientFunc:r.Client4.disableBot,onSuccess:i.BotTypes.RECEIVED_BOT_ACCOUNT,params:[t]})},e.enableBot=function(t){return o.bindClientFunc({clientFunc:r.Client4.enableBot,onSuccess:i.BotTypes.RECEIVED_BOT_ACCOUNT,params:[t]})},e.assignBot=function(t,e){return o.bindClientFunc({clientFunc:r.Client4.assignBot,onSuccess:i.BotTypes.RECEIVED_BOT_ACCOUNT,params:[t,e]})}},1341:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n(18),o=n(5),a=n(12),s=n(62),u=n(41);e.getScheme=function(t){return s.bindClientFunc({clientFunc:i.Client4.getScheme,onSuccess:[o.SchemeTypes.RECEIVED_SCHEME],params:[t]})},e.getSchemes=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=a.General.PAGE_SIZE_DEFAULT),s.bindClientFunc({clientFunc:i.Client4.getSchemes,onSuccess:[o.SchemeTypes.RECEIVED_SCHEMES],params:[t,e,n]})},e.createScheme=function(t){return s.bindClientFunc({clientFunc:i.Client4.createScheme,onSuccess:[o.SchemeTypes.CREATED_SCHEME],params:[t]})},e.deleteScheme=function(t){var e=this;return function(n,a){return r.__awaiter(e,void 0,void 0,(function(){var e,l;return r.__generator(this,(function(r){switch(r.label){case 0:e=null,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i.Client4.deleteScheme(t)];case 2:return e=r.sent(),[3,4];case 3:return l=r.sent(),s.forceLogoutIfNecessary(l,n,a),n(u.logError(l)),[2,{error:l}];case 4:return n({type:o.SchemeTypes.DELETED_SCHEME,data:{schemeId:t}},a),[2,{data:e}]}}))}))}},e.patchScheme=function(t,e){return s.bindClientFunc({clientFunc:i.Client4.patchScheme,onSuccess:[o.SchemeTypes.PATCHED_SCHEME],params:[t,e]})},e.getSchemeTeams=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=a.General.PAGE_SIZE_DEFAULT),s.bindClientFunc({clientFunc:i.Client4.getSchemeTeams,onSuccess:[o.SchemeTypes.RECEIVED_SCHEME_TEAMS],params:[t,e,n]})},e.getSchemeChannels=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=a.General.PAGE_SIZE_DEFAULT),s.bindClientFunc({clientFunc:i.Client4.getSchemeChannels,onSuccess:[o.SchemeTypes.RECEIVED_SCHEME_CHANNELS],params:[t,e,n]})}},1342:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n(1911),o=n(21),a=n(13),s=n(16);function u(t){return t.entities.schemes.schemes}function l(t,e){return u(t)[e]}e.getSchemes=u,e.getScheme=l,e.makeGetSchemeChannels=function(){return o.createSelector(a.getAllChannels,(function(t,e){return l(t,e.schemeId)}),(function(t,e){if(!e)return[];if(e.scope===i.ScopeTypes.TEAM){var n="Not implemented: scheme '"+e.id+"' is team-scope but 'getSchemeChannels' only accepts channel-scoped schemes.";return console.log(n),[]}var o=[];return Object.entries(t).forEach((function(t){var n=r.__read(t,2)[1];n.scheme_id===e.id&&o.push(n)})),o}))},e.makeGetSchemeTeams=function(){return o.createSelector(s.getTeams,(function(t,e){return l(t,e.schemeId)}),(function(t,e){if(!e)return[];if(e.scope===i.ScopeTypes.CHANNEL){var n="Error: scheme '"+e.id+"' is channel-scoped but 'getSchemeChannels' only accepts team-scoped schemes.";return console.log(n),[]}var o=[];return Object.entries(t).forEach((function(t){var n=r.__read(t,2)[1];n.scheme_id===e.id&&o.push(n)})),o}))}},1463:function(t,e,n){ /*! * Chart.js v2.8.0 * https://www.chartjs.org * (c) 2019 Chart.js Contributors * Released under the MIT License */ t.exports=function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e={rgb2hsl:n,rgb2hsv:i,rgb2hwb:o,rgb2cmyk:a,rgb2keyword:s,rgb2xyz:u,rgb2lab:l,rgb2lch:function(t){return y(l(t))},hsl2rgb:c,hsl2hsv:function(t){var e=t[0],n=t[1]/100,r=t[2]/100;return 0===r?[0,0,0]:[e,2*(n*=(r*=2)<=1?r:2-r)/(r+n)*100,(r+n)/2*100]},hsl2hwb:function(t){return o(c(t))},hsl2cmyk:function(t){return a(c(t))},hsl2keyword:function(t){return s(c(t))},hsv2rgb:h,hsv2hsl:function(t){var e,n,r=t[0],i=t[1]/100,o=t[2]/100;return e=i*o,[r,100*(e=(e/=(n=(2-i)*o)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return o(h(t))},hsv2cmyk:function(t){return a(h(t))},hsv2keyword:function(t){return s(h(t))},hwb2rgb:f,hwb2hsl:function(t){return n(f(t))},hwb2hsv:function(t){return i(f(t))},hwb2cmyk:function(t){return a(f(t))},hwb2keyword:function(t){return s(f(t))},cmyk2rgb:d,cmyk2hsl:function(t){return n(d(t))},cmyk2hsv:function(t){return i(d(t))},cmyk2hwb:function(t){return o(d(t))},cmyk2keyword:function(t){return s(d(t))},keyword2rgb:w,keyword2hsl:function(t){return n(w(t))},keyword2hsv:function(t){return i(w(t))},keyword2hwb:function(t){return o(w(t))},keyword2cmyk:function(t){return a(w(t))},keyword2lab:function(t){return l(w(t))},keyword2xyz:function(t){return u(w(t))},xyz2rgb:p,xyz2lab:v,xyz2lch:function(t){return y(v(t))},lab2xyz:m,lab2rgb:x,lab2lch:y,lch2lab:_,lch2xyz:function(t){return m(_(t))},lch2rgb:function(t){return x(_(t))}};function n(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return s==a?e=0:r==s?e=(i-o)/u:i==s?e=2+(o-r)/u:o==s&&(e=4+(r-i)/u),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+s)/2,[e,100*(s==a?0:n<=.5?u/(s+a):u/(2-s-a)),100*n]}function i(t){var e,n,r=t[0],i=t[1],o=t[2],a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return n=0==s?0:u/s*1e3/10,s==a?e=0:r==s?e=(i-o)/u:i==s?e=2+(o-r)/u:o==s&&(e=4+(r-i)/u),(e=Math.min(60*e,360))<0&&(e+=360),[e,n,s/255*1e3/10]}function o(t){var e=t[0],r=t[1],i=t[2];return[n(t)[0],1/255*Math.min(e,Math.min(r,i))*100,100*(i=1-1/255*Math.max(e,Math.max(r,i)))]}function a(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-r,1-i)))/(1-e)||0),100*((1-r-e)/(1-e)||0),100*((1-i-e)/(1-e)||0),100*e]}function s(t){return S[JSON.stringify(t)]}function u(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]}function l(t){var e=u(t),n=e[0],r=e[1],i=e[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]}function c(t){var e,n,r,i,o,a=t[0]/360,s=t[1]/100,u=t[2]/100;if(0==s)return[o=255*u,o,o];e=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var l=0;l<3;l++)(r=a+1/3*-(l-1))<0&&r++,r>1&&r--,o=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,i[l]=255*o;return i}function h(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),a=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}}function f(t){var e,n,i,o,a=t[0]/360,s=t[1]/100,u=t[2]/100,l=s+u;switch(l>1&&(s/=l,u/=l),i=6*a-(e=Math.floor(6*a)),0!=(1&e)&&(i=1-i),o=s+i*((n=1-u)-s),e){default:case 6:case 0:r=n,g=o,b=s;break;case 1:r=o,g=n,b=s;break;case 2:r=s,g=n,b=o;break;case 3:r=s,g=o,b=n;break;case 4:r=o,g=s,b=n;break;case 5:r=n,g=s,b=o}return[255*r,255*g,255*b]}function d(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]}function p(t){var e,n,r,i=t[0]/100,o=t[1]/100,a=t[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,e=(e=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]}function v(t){var e=t[0],n=t[1],r=t[2];return n/=100,r/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function m(t){var e,n,r,i,o=t[0],a=t[1],s=t[2];return o<=8?i=(n=100*o/903.3)/100*7.787+16/116:(n=100*Math.pow((o+16)/116,3),i=Math.pow(n/100,1/3)),[e=e/95.047<=.008856?e=95.047*(a/500+i-16/116)/7.787:95.047*Math.pow(a/500+i,3),n,r=r/108.883<=.008859?r=108.883*(i-s/200-16/116)/7.787:108.883*Math.pow(i-s/200,3)]}function y(t){var e,n=t[0],r=t[1],i=t[2];return(e=360*Math.atan2(i,r)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(r*r+i*i),e]}function x(t){return p(m(t))}function _(t){var e,n=t[0],r=t[1];return e=t[2]/360*2*Math.PI,[n,r*Math.cos(e),r*Math.sin(e)]}function w(t){return k[t]}var k={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]},S={};for(var M in k)S[JSON.stringify(k[M])]=M;var C=function(){return new E};for(var I in e){C[I+"Raw"]=function(t){return function(n){return"number"==typeof n&&(n=Array.prototype.slice.call(arguments)),e[t](n)}}(I);var A=/(\w+)2(\w+)/.exec(I),T=A[1],P=A[2];(C[T]=C[T]||{})[P]=C[I]=function(t){return function(n){"number"==typeof n&&(n=Array.prototype.slice.call(arguments));var r=e[t](n);if("string"==typeof r||void 0===r)return r;for(var i=0;i<r.length;i++)r[i]=Math.round(r[i]);return r}}(I)}var E=function(){this.convs={}};E.prototype.routeSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n))},E.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},E.prototype.getValues=function(t){var e=this.convs[t];if(!e){var n=this.space,r=this.convs[n];e=C[n][t](r),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach((function(t){E.prototype[t]=function(e){return this.routeSpace(t,arguments)}}));var O=C,R={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]},F={getRgba:D,getHsla:L,getRgb:function(t){var e=D(t);return e&&e.slice(0,3)},getHsl:function(t){var e=L(t);return e&&e.slice(0,3)},getHwb:N,getAlpha:function(t){var e=D(t);return e?e[3]:(e=L(t))?e[3]:(e=N(t))?e[3]:void 0},hexString:function(t,e){return e=void 0!==e&&3===t.length?e:t[3],"#"+V(t[0])+V(t[1])+V(t[2])+(e>=0&&e<1?V(Math.round(255*e)):"")},rgbString:function(t,e){return e<1||t[3]&&t[3]<1?B(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:B,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return z(t,e);var n=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return"rgb("+n+"%, "+r+"%, "+i+"%)"},percentaString:z,hslString:function(t,e){return e<1||t[3]&&t[3]<1?j(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:j,hwbString:function(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return H[t.slice(0,3)]}};function D(t){if(t){var e=[0,0,0],n=1,r=t.match(/^#([a-fA-F0-9]{3,4})$/i),i="";if(r){i=(r=r[1])[3];for(var o=0;o<e.length;o++)e[o]=parseInt(r[o]+r[o],16);i&&(n=Math.round(parseInt(i+i,16)/255*100)/100)}else if(r=t.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(i=r[2],r=r[1],o=0;o<e.length;o++)e[o]=parseInt(r.slice(2*o,2*o+2),16);i&&(n=Math.round(parseInt(i,16)/255*100)/100)}else if(r=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=parseInt(r[o+1]);n=parseFloat(r[4])}else if(r=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=Math.round(2.55*parseFloat(r[o+1]));n=parseFloat(r[4])}else if(r=t.match(/(\w+)/)){if("transparent"==r[1])return[0,0,0,0];if(!(e=R[r[1]]))return}for(o=0;o<e.length;o++)e[o]=W(e[o],0,255);return n=n||0==n?W(n,0,1):1,e[3]=n,e}}function L(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[W(parseInt(e[1]),0,360),W(parseFloat(e[2]),0,100),W(parseFloat(e[3]),0,100),W(isNaN(n)?1:n,0,1)]}}}function N(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[W(parseInt(e[1]),0,360),W(parseFloat(e[2]),0,100),W(parseFloat(e[3]),0,100),W(isNaN(n)?1:n,0,1)]}}}function B(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function z(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function j(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function W(t,e,n){return Math.min(Math.max(e,t),n)}function V(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var H={};for(var U in R)H[R[U]]=U;var J=function(t){return t instanceof J?t:this instanceof J?(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 t?(e=F.getRgba(t))?this.setValues("rgb",e):(e=F.getHsla(t))?this.setValues("hsl",e):(e=F.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new J(t);var e};J.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 t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t=(t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return F.hexString(this.values.rgb)},rgbString:function(){return F.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return F.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return F.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return F.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return F.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return F.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return F.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var r=t[n]/255;e[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=t,r=void 0===e?.5:e,i=2*r-1,o=this.alpha()-n.alpha(),a=((i*o==-1?i:(i+o)/(1+i*o))+1)/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()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new J,r=this.values,i=n.values;for(var o in r)r.hasOwnProperty(o)&&(t=r[o],"[object Array]"===(e={}.toString.call(t))?i[o]=t.slice(0):"[object Number]"===e?i[o]=t:console.error("unexpected color value:",t));return n}},J.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},J.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},J.prototype.getValues=function(t){for(var e=this.values,n={},r=0;r<t.length;r++)n[t.charAt(r)]=e[t][r];return 1!==e.alpha&&(n.a=e.alpha),n},J.prototype.setValues=function(t,e){var n,r,i=this.values,o=this.spaces,a=this.maxes,s=1;if(this.valid=!0,"alpha"===t)s=e;else if(e.length)i[t]=e.slice(0,t.length),s=e[t.length];else if(void 0!==e[t.charAt(0)]){for(n=0;n<t.length;n++)i[t][n]=e[t.charAt(n)];s=e.a}else if(void 0!==e[o[t][0]]){var u=o[t];for(n=0;n<t.length;n++)i[t][n]=e[u[n]];s=e.alpha}if(i.alpha=Math.max(0,Math.min(1,void 0===s?i.alpha:s)),"alpha"===t)return!1;for(n=0;n<t.length;n++)r=Math.max(0,Math.min(a[t][n],i[t][n])),i[t][n]=Math.round(r);for(var l in o)l!==t&&(i[l]=O[t][l](i[t]));return!0},J.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},J.prototype.setChannel=function(t,e,n){var r=this.values[t];return void 0===n?r[e]:n===r[e]?this:(r[e]=n,this.setValues(t,r),this)},"undefined"!=typeof window&&(window.Color=J);var q,Y=J,G={noop:function(){},uid:(q=0,function(){return q++}),isNullOrUndef:function(t){return null==t},isArray:function(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},isFinite:function(t){return("number"==typeof t||t instanceof Number)&&isFinite(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return G.valueOrDefault(G.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,r){var i,o,a;if(G.isArray(t))if(o=t.length,r)for(i=o-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i<o;i++)e.call(n,t[i],i);else if(G.isObject(t))for(o=(a=Object.keys(t)).length,i=0;i<o;i++)e.call(n,t[a[i]],a[i])},arrayEquals:function(t,e){var n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],o=e[n],i instanceof Array&&o instanceof Array){if(!G.arrayEquals(i,o))return!1}else if(i!==o)return!1;return!0},clone:function(t){if(G.isArray(t))return t.map(G.clone);if(G.isObject(t)){for(var e={},n=Object.keys(t),r=n.length,i=0;i<r;++i)e[n[i]]=G.clone(t[n[i]]);return e}return t},_merger:function(t,e,n,r){var i=e[t],o=n[t];G.isObject(i)&&G.isObject(o)?G.merge(i,o,r):e[t]=G.clone(o)},_mergerIf:function(t,e,n){var r=e[t],i=n[t];G.isObject(r)&&G.isObject(i)?G.mergeIf(r,i):e.hasOwnProperty(t)||(e[t]=G.clone(i))},merge:function(t,e,n){var r,i,o,a,s,u=G.isArray(e)?e:[e],l=u.length;if(!G.isObject(t))return t;for(r=(n=n||{}).merger||G._merger,i=0;i<l;++i)if(e=u[i],G.isObject(e))for(s=0,a=(o=Object.keys(e)).length;s<a;++s)r(o[s],t,e,n);return t},mergeIf:function(t,e){return G.merge(t,e,{merger:G._mergerIf})},extend:function(t){for(var e=function(e,n){t[n]=e},n=1,r=arguments.length;n<r;++n)G.each(arguments[n],e);return t},inherits:function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=e.prototype,n.prototype=new r,n.extend=G.inherits,t&&G.extend(n.prototype,t),n.__super__=e.prototype,n}},$=G;G.callCallback=G.callback,G.indexOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},G.getValueOrDefault=G.valueOrDefault,G.getValueAtIndexOrDefault=G.valueAtIndexOrDefault;var K={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1===t?1:(n||(n=.3),r<1?(r=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1===t?1:(n||(n=.3),r<1?(r=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),r<1?(r=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/r),t<1?r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-K.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*K.easeInBounce(2*t):.5*K.easeOutBounce(2*t-1)+.5}},Z={effects:K};$.easingEffects=K;var X=Math.PI,Q=X/180,tt=2*X,et=X/2,nt=X/4,rt=2*X/3,it={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,r,i,o){if(o){var a=Math.min(o,i/2,r/2),s=e+a,u=n+a,l=e+r-a,c=n+i-a;t.moveTo(e,u),s<l&&u<c?(t.arc(s,u,a,-X,-et),t.arc(l,u,a,-et,0),t.arc(l,c,a,0,et),t.arc(s,c,a,et,X)):s<l?(t.moveTo(s,n),t.arc(l,u,a,-et,et),t.arc(s,u,a,et,X+et)):u<c?(t.arc(s,u,a,-X,0),t.arc(s,c,a,0,X)):t.arc(s,u,a,-X,X),t.closePath(),t.moveTo(e,n)}else t.rect(e,n,r,i)},drawPoint:function(t,e,n,r,i,o){var a,s,u,l,c,h=(o||0)*Q;if(!e||"object"!=typeof e||"[object HTMLImageElement]"!==(a=e.toString())&&"[object HTMLCanvasElement]"!==a){if(!(isNaN(n)||n<=0)){switch(t.beginPath(),e){default:t.arc(r,i,n,0,tt),t.closePath();break;case"triangle":t.moveTo(r+Math.sin(h)*n,i-Math.cos(h)*n),h+=rt,t.lineTo(r+Math.sin(h)*n,i-Math.cos(h)*n),h+=rt,t.lineTo(r+Math.sin(h)*n,i-Math.cos(h)*n),t.closePath();break;case"rectRounded":l=n-(c=.516*n),s=Math.cos(h+nt)*l,u=Math.sin(h+nt)*l,t.arc(r-s,i-u,c,h-X,h-et),t.arc(r+u,i-s,c,h-et,h),t.arc(r+s,i+u,c,h,h+et),t.arc(r-u,i+s,c,h+et,h+X),t.closePath();break;case"rect":if(!o){l=Math.SQRT1_2*n,t.rect(r-l,i-l,2*l,2*l);break}h+=nt;case"rectRot":s=Math.cos(h)*n,u=Math.sin(h)*n,t.moveTo(r-s,i-u),t.lineTo(r+u,i-s),t.lineTo(r+s,i+u),t.lineTo(r-u,i+s),t.closePath();break;case"crossRot":h+=nt;case"cross":s=Math.cos(h)*n,u=Math.sin(h)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u),t.moveTo(r+u,i-s),t.lineTo(r-u,i+s);break;case"star":s=Math.cos(h)*n,u=Math.sin(h)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u),t.moveTo(r+u,i-s),t.lineTo(r-u,i+s),h+=nt,s=Math.cos(h)*n,u=Math.sin(h)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u),t.moveTo(r+u,i-s),t.lineTo(r-u,i+s);break;case"line":s=Math.cos(h)*n,u=Math.sin(h)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u);break;case"dash":t.moveTo(r,i),t.lineTo(r+Math.cos(h)*n,i+Math.sin(h)*n)}t.fill(),t.stroke()}}else t.drawImage(e,r-e.width/2,i-e.height/2,e.width,e.height)},_isPointInArea:function(t,e){return t.x>e.left-1e-6&&t.x<e.right+1e-6&&t.y>e.top-1e-6&&t.y<e.bottom+1e-6},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,r){var i=n.steppedLine;if(i){if("middle"===i){var o=(e.x+n.x)/2;t.lineTo(o,r?n.y:e.y),t.lineTo(o,r?e.y:n.y)}else"after"===i&&!r||"after"!==i&&r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}else n.tension?t.bezierCurveTo(r?e.controlPointPreviousX:e.controlPointNextX,r?e.controlPointPreviousY:e.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}},ot=it;$.clear=it.clear,$.drawRoundedRectangle=function(t){t.beginPath(),it.roundedRect.apply(it,arguments)};var at={_set:function(t,e){return $.merge(this[t]||(this[t]={}),e)}};at._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 st=at,ut=$.valueOrDefault,lt={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,r,i;return $.isObject(t)?(e=+t.top||0,n=+t.right||0,r=+t.bottom||0,i=+t.left||0):e=n=r=i=+t||0,{top:e,right:n,bottom:r,left:i,height:e+r,width:i+n}},_parseFont:function(t){var e=st.global,n=ut(t.fontSize,e.defaultFontSize),r={family:ut(t.fontFamily,e.defaultFontFamily),lineHeight:$.options.toLineHeight(ut(t.lineHeight,e.defaultLineHeight),n),size:n,style:ut(t.fontStyle,e.defaultFontStyle),weight:null,string:""};return r.string=function(t){return!t||$.isNullOrUndef(t.size)||$.isNullOrUndef(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r},resolve:function(t,e,n){var r,i,o;for(r=0,i=t.length;r<i;++r)if(void 0!==(o=t[r])&&(void 0!==e&&"function"==typeof o&&(o=o(e)),void 0!==n&&$.isArray(o)&&(o=o[n]),void 0!==o))return o}},ct=$,ht=Z,ft=ot,dt=lt;ct.easing=ht,ct.canvas=ft,ct.options=dt;var pt=function(t){ct.extend(this,t),this.initialize.apply(this,arguments)};ct.extend(pt.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=ct.clone(t._model)),t._start={},t},transition:function(t){var e=this,n=e._model,r=e._start,i=e._view;return n&&1!==t?(i||(i=e._view={}),r||(r=e._start={}),function(t,e,n,r){var i,o,a,s,u,l,c,h,f,d=Object.keys(n);for(i=0,o=d.length;i<o;++i)if(l=n[a=d[i]],e.hasOwnProperty(a)||(e[a]=l),(s=e[a])!==l&&"_"!==a[0]){if(t.hasOwnProperty(a)||(t[a]=s),(c=typeof l)==typeof(u=t[a]))if("string"===c){if((h=Y(u)).valid&&(f=Y(l)).valid){e[a]=f.mix(h,r).rgbString();continue}}else if(ct.isFinite(u)&&ct.isFinite(l)){e[a]=u+(l-u)*r;continue}e[a]=l}}(r,i,n,t),e):(e._view=n,e._start=null,e)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return ct.isNumber(this._model.x)&&ct.isNumber(this._model.y)}}),pt.extend=ct.inherits;var gt=pt,vt=gt.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),mt=vt;Object.defineProperty(vt.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(vt.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}}),st._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:ct.noop,onComplete:ct.noop}});var yt={animations:[],request:null,addAnimation:function(t,e,n,r){var i,o,a=this.animations;for(e.chart=t,e.startTime=Date.now(),e.duration=n,r||(t.animating=!0),i=0,o=a.length;i<o;++i)if(a[i].chart===t)return void(a[i]=e);a.push(e),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var e=ct.findIndex(this.animations,(function(e){return e.chart===t}));-1!==e&&(this.animations.splice(e,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=ct.requestAnimFrame.call(window,(function(){t.request=null,t.startDigest()})))},startDigest:function(){this.advance(),this.animations.length>0&&this.requestAnimationFrame()},advance:function(){for(var t,e,n,r,i=this.animations,o=0;o<i.length;)e=(t=i[o]).chart,n=t.numSteps,r=Math.floor((Date.now()-t.startTime)/t.duration*n)+1,t.currentStep=Math.min(r,n),ct.callback(t.render,[e,t],e),ct.callback(t.onAnimationProgress,[t],e),t.currentStep>=n?(ct.callback(t.onAnimationComplete,[t],e),e.animating=!1,i.splice(o,1)):++o}},bt=ct.options.resolve,xt=["push","pop","shift","splice","unshift"];function _t(t,e){var n=t._chartjs;if(n){var r=n.listeners,i=r.indexOf(e);-1!==i&&r.splice(i,1),r.length>0||(xt.forEach((function(e){delete t[e]})),delete t._chartjs)}}var wt=function(t,e){this.initialize(t,e)};ct.extend(wt.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null!==e.xAxisID&&e.xAxisID in t.chart.scales||(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in t.chart.scales||(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},_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&&_t(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,n=this.getMeta(),r=this.getDataset().data||[],i=n.data;for(t=0,e=r.length;t<e;++t)i[t]=i[t]||this.createMetaData(t);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t,e,n=this,r=n.getDataset(),i=r.data||(r.data=[]);n._data!==i&&(n._data&&_t(n._data,n),i&&Object.isExtensible(i)&&(e=n,(t=i)._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),xt.forEach((function(e){var n="onData"+e.charAt(0).toUpperCase()+e.slice(1),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),i=r.apply(this,e);return ct.each(t._chartjs.listeners,(function(t){"function"==typeof t[n]&&t[n].apply(t,e)})),i}})})))),n._data=i),n.resyncElements()},update:ct.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],r=n.length,i=0;i<r;++i)n[i].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,r=0;for(t.dataset&&t.dataset.draw();r<n;++r)e[r].draw()},removeHoverStyle:function(t){ct.merge(t._model,t.$previousStyle||{}),delete t.$previousStyle},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,r=t.custom||{},i=t._model,o=ct.getHoverColor;t.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth},i.backgroundColor=bt([r.hoverBackgroundColor,e.hoverBackgroundColor,o(i.backgroundColor)],void 0,n),i.borderColor=bt([r.hoverBorderColor,e.hoverBorderColor,o(i.borderColor)],void 0,n),i.borderWidth=bt([r.hoverBorderWidth,e.hoverBorderWidth,i.borderWidth],void 0,n)},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,n=t.data.length,r=e.length;r<n?t.data.splice(r,n-r):r>n&&this.insertElements(n,r-n)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){var t=arguments.length;this.insertElements(this.getDataset().data.length-t,t)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),wt.extend=ct.inherits;var kt=wt;st._set("global",{elements:{arc:{backgroundColor:st.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var St=gt.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var n=this._view;if(n){for(var r=ct.getAngleFromPoint(n,{x:t,y:e}),i=r.angle,o=r.distance,a=n.startAngle,s=n.endAngle;s<a;)s+=2*Math.PI;for(;i>s;)i-=2*Math.PI;for(;i<a;)i+=2*Math.PI;var u=i>=a&&i<=s,l=o>=n.innerRadius&&o<=n.outerRadius;return u&&l}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t,e=this._chart.ctx,n=this._view,r=n.startAngle,i=n.endAngle,o="inner"===n.borderAlign?.33:0;e.save(),e.beginPath(),e.arc(n.x,n.y,Math.max(n.outerRadius-o,0),r,i),e.arc(n.x,n.y,n.innerRadius,i,r,!0),e.closePath(),e.fillStyle=n.backgroundColor,e.fill(),n.borderWidth&&("inner"===n.borderAlign?(e.beginPath(),t=o/n.outerRadius,e.arc(n.x,n.y,n.outerRadius,r-t,i+t),n.innerRadius>o?(t=o/n.innerRadius,e.arc(n.x,n.y,n.innerRadius-o,i+t,r-t,!0)):e.arc(n.x,n.y,o,i+Math.PI/2,r-Math.PI/2),e.closePath(),e.clip(),e.beginPath(),e.arc(n.x,n.y,n.outerRadius,r,i),e.arc(n.x,n.y,n.innerRadius,i,r,!0),e.closePath(),e.lineWidth=2*n.borderWidth,e.lineJoin="round"):(e.lineWidth=n.borderWidth,e.lineJoin="bevel"),e.strokeStyle=n.borderColor,e.stroke()),e.restore()}}),Mt=ct.valueOrDefault,Ct=st.global.defaultColor;st._set("global",{elements:{line:{tension:.4,backgroundColor:Ct,borderWidth:3,borderColor:Ct,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var It=gt.extend({draw:function(){var t,e,n,r,i=this._view,o=this._chart.ctx,a=i.spanGaps,s=this._children.slice(),u=st.global,l=u.elements.line,c=-1;for(this._loop&&s.length&&s.push(s[0]),o.save(),o.lineCap=i.borderCapStyle||l.borderCapStyle,o.setLineDash&&o.setLineDash(i.borderDash||l.borderDash),o.lineDashOffset=Mt(i.borderDashOffset,l.borderDashOffset),o.lineJoin=i.borderJoinStyle||l.borderJoinStyle,o.lineWidth=Mt(i.borderWidth,l.borderWidth),o.strokeStyle=i.borderColor||u.defaultColor,o.beginPath(),c=-1,t=0;t<s.length;++t)e=s[t],n=ct.previousItem(s,t),r=e._view,0===t?r.skip||(o.moveTo(r.x,r.y),c=t):(n=-1===c?n:s[c],r.skip||(c!==t-1&&!a||-1===c?o.moveTo(r.x,r.y):ct.canvas.lineTo(o,n._view,e._view),c=t));o.stroke(),o.restore()}}),At=ct.valueOrDefault,Tt=st.global.defaultColor;function Pt(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}st._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Tt,borderColor:Tt,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var Et=gt.extend({inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:Pt,inXRange:Pt,inYRange:function(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,n=this._chart.ctx,r=e.pointStyle,i=e.rotation,o=e.radius,a=e.x,s=e.y,u=st.global,l=u.defaultColor;e.skip||(void 0===t||ct.canvas._isPointInArea(e,t))&&(n.strokeStyle=e.borderColor||l,n.lineWidth=At(e.borderWidth,u.elements.point.borderWidth),n.fillStyle=e.backgroundColor||l,ct.canvas.drawPoint(n,r,o,a,s,i))}}),Ot=st.global.defaultColor;function Rt(t){return t&&void 0!==t.width}function Ft(t){var e,n,r,i,o;return Rt(t)?(o=t.width/2,e=t.x-o,n=t.x+o,r=Math.min(t.y,t.base),i=Math.max(t.y,t.base)):(o=t.height/2,e=Math.min(t.x,t.base),n=Math.max(t.x,t.base),r=t.y-o,i=t.y+o),{left:e,top:r,right:n,bottom:i}}function Dt(t,e,n){return t===e?n:t===n?e:t}function Lt(t,e,n){var r,i,o,a,s=t.borderWidth,u=function(t){var e=t.borderSkipped,n={};return e?(t.horizontal?t.base>t.x&&(e=Dt(e,"left","right")):t.base<t.y&&(e=Dt(e,"bottom","top")),n[e]=!0,n):n}(t);return ct.isObject(s)?(r=+s.top||0,i=+s.right||0,o=+s.bottom||0,a=+s.left||0):r=i=o=a=+s||0,{t:u.top||r<0?0:r>n?n:r,r:u.right||i<0?0:i>e?e:i,b:u.bottom||o<0?0:o>n?n:o,l:u.left||a<0?0:a>e?e:a}}function Nt(t,e,n){var r=null===e,i=null===n,o=!(!t||r&&i)&&Ft(t);return o&&(r||e>=o.left&&e<=o.right)&&(i||n>=o.top&&n<=o.bottom)}st._set("global",{elements:{rectangle:{backgroundColor:Ot,borderColor:Ot,borderSkipped:"bottom",borderWidth:0}}});var Bt=gt.extend({draw:function(){var t=this._chart.ctx,e=this._view,n=function(t){var e=Ft(t),n=e.right-e.left,r=e.bottom-e.top,i=Lt(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r},inner:{x:e.left+i.l,y:e.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b}}}(e),r=n.outer,i=n.inner;t.fillStyle=e.backgroundColor,t.fillRect(r.x,r.y,r.w,r.h),r.w===i.w&&r.h===i.h||(t.save(),t.beginPath(),t.rect(r.x,r.y,r.w,r.h),t.clip(),t.fillStyle=e.borderColor,t.rect(i.x,i.y,i.w,i.h),t.fill("evenodd"),t.restore())},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return Nt(this._view,t,e)},inLabelRange:function(t,e){var n=this._view;return Rt(n)?Nt(n,t,null):Nt(n,null,e)},inXRange:function(t){return Nt(this._view,t,null)},inYRange:function(t){return Nt(this._view,null,t)},getCenterPoint:function(){var t,e,n=this._view;return Rt(n)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return Rt(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),zt={},jt=St,Wt=It,Vt=Et,Ht=Bt;zt.Arc=jt,zt.Line=Wt,zt.Point=Vt,zt.Rectangle=Ht;var Ut=ct.options.resolve;st._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}});var Jt=kt.extend({dataElementType:zt.Rectangle,initialize:function(){var t,e=this;kt.prototype.initialize.apply(e,arguments),(t=e.getMeta()).stack=e.getDataset().stack,t.bar=!0},update:function(t){var e,n,r=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=r.length;e<n;++e)this.updateElement(r[e],e,t)},updateElement:function(t,e,n){var r=this,i=r.getMeta(),o=r.getDataset(),a=r._resolveElementOptions(t,e);t._xScale=r.getScaleForId(i.xAxisID),t._yScale=r.getScaleForId(i.yAxisID),t._datasetIndex=r.index,t._index=e,t._model={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderSkipped:a.borderSkipped,borderWidth:a.borderWidth,datasetLabel:o.label,label:r.chart.data.labels[e]},r._updateElementGeometry(t,e,n),t.pivot()},_updateElementGeometry:function(t,e,n){var r=this,i=t._model,o=r._getValueScale(),a=o.getBasePixel(),s=o.isHorizontal(),u=r._ruler||r.getRuler(),l=r.calculateBarValuePixels(r.index,e),c=r.calculateBarIndexPixels(r.index,e,u);i.horizontal=s,i.base=n?a:l.base,i.x=s?n?a:l.head:c.center,i.y=s?c.center:n?a:l.head,i.height=s?c.size:void 0,i.width=s?void 0:c.size},_getStacks:function(t){var e,n,r=this.chart,i=this._getIndexScale().options.stacked,o=void 0===t?r.data.datasets.length:t+1,a=[];for(e=0;e<o;++e)(n=r.getDatasetMeta(e)).bar&&r.isDatasetVisible(e)&&(!1===i||!0===i&&-1===a.indexOf(n.stack)||void 0===i&&(void 0===n.stack||-1===a.indexOf(n.stack)))&&a.push(n.stack);return a},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){var n=this._getStacks(t),r=void 0!==e?n.indexOf(e):-1;return-1===r?n.length-1:r},getRuler:function(){var t,e,n=this._getIndexScale(),r=this.getStackCount(),i=this.index,o=n.isHorizontal(),a=o?n.left:n.top,s=a+(o?n.width:n.height),u=[];for(t=0,e=this.getMeta().data.length;t<e;++t)u.push(n.getPixelForValue(null,t,i));return{min:ct.isNullOrUndef(n.options.barThickness)?function(t,e){var n,r,i,o,a=t.isHorizontal()?t.width:t.height,s=t.getTicks();for(i=1,o=e.length;i<o;++i)a=Math.min(a,Math.abs(e[i]-e[i-1]));for(i=0,o=s.length;i<o;++i)r=t.getPixelForTick(i),a=i>0?Math.min(a,r-n):a,n=r;return a}(n,u):-1,pixels:u,start:a,end:s,stackCount:r,scale:n}},calculateBarValuePixels:function(t,e){var n,r,i,o,a,s,u=this.chart,l=this.getMeta(),c=this._getValueScale(),h=c.isHorizontal(),f=u.data.datasets,d=+c.getRightValue(f[t].data[e]),p=c.options.minBarLength,g=c.options.stacked,v=l.stack,m=0;if(g||void 0===g&&void 0!==v)for(n=0;n<t;++n)(r=u.getDatasetMeta(n)).bar&&r.stack===v&&r.controller._getValueScaleId()===c.id&&u.isDatasetVisible(n)&&(i=+c.getRightValue(f[n].data[e]),(d<0&&i<0||d>=0&&i>0)&&(m+=i));return o=c.getPixelForValue(m),s=(a=c.getPixelForValue(m+d))-o,void 0!==p&&Math.abs(s)<p&&(s=p,a=d>=0&&!h||d<0&&h?o-p:o+p),{size:s,base:o,head:a,center:a+s/2}},calculateBarIndexPixels:function(t,e,n){var r=n.scale.options,i="flex"===r.barThickness?function(t,e,n){var r,i=e.pixels,o=i[t],a=t>0?i[t-1]:null,s=t<i.length-1?i[t+1]:null,u=n.categoryPercentage;return null===a&&(a=o-(null===s?e.end-e.start:s-o)),null===s&&(s=o+o-a),r=o-(o-Math.min(a,s))/2*u,{chunk:Math.abs(s-a)/2*u/e.stackCount,ratio:n.barPercentage,start:r}}(e,n,r):function(t,e,n){var r,i,o=n.barThickness,a=e.stackCount,s=e.pixels[t];return ct.isNullOrUndef(o)?(r=e.min*n.categoryPercentage,i=n.barPercentage):(r=o*a,i=1),{chunk:r/a,ratio:i,start:s-r/2}}(e,n,r),o=this.getStackIndex(t,this.getMeta().stack),a=i.start+i.chunk*o+i.chunk/2,s=Math.min(ct.valueOrDefault(r.maxBarThickness,1/0),i.chunk*i.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}},draw:function(){var t=this.chart,e=this._getValueScale(),n=this.getMeta().data,r=this.getDataset(),i=n.length,o=0;for(ct.canvas.clipArea(t.ctx,t.chartArea);o<i;++o)isNaN(e.getRightValue(r.data[o]))||n[o].draw();ct.canvas.unclipArea(t.ctx)},_resolveElementOptions:function(t,e){var n,r,i,o=this.chart,a=o.data.datasets[this.index],s=t.custom||{},u=o.options.elements.rectangle,l={},c={chart:o,dataIndex:e,dataset:a,datasetIndex:this.index},h=["backgroundColor","borderColor","borderSkipped","borderWidth"];for(n=0,r=h.length;n<r;++n)l[i=h[n]]=Ut([s[i],a[i],u[i]],c,e);return l}}),qt=ct.valueOrDefault,Yt=ct.options.resolve;st._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(t,e){var n=e.datasets[t.datasetIndex].label||"",r=e.datasets[t.datasetIndex].data[t.index];return n+": ("+t.xLabel+", "+t.yLabel+", "+r.r+")"}}}});var Gt=kt.extend({dataElementType:zt.Point,update:function(t){var e=this,n=e.getMeta().data;ct.each(n,(function(n,r){e.updateElement(n,r,t)}))},updateElement:function(t,e,n){var r=this,i=r.getMeta(),o=t.custom||{},a=r.getScaleForId(i.xAxisID),s=r.getScaleForId(i.yAxisID),u=r._resolveElementOptions(t,e),l=r.getDataset().data[e],c=r.index,h=n?a.getPixelForDecimal(.5):a.getPixelForValue("object"==typeof l?l:NaN,e,c),f=n?s.getBasePixel():s.getPixelForValue(l,e,c);t._xScale=a,t._yScale=s,t._options=u,t._datasetIndex=c,t._index=e,t._model={backgroundColor:u.backgroundColor,borderColor:u.borderColor,borderWidth:u.borderWidth,hitRadius:u.hitRadius,pointStyle:u.pointStyle,rotation:u.rotation,radius:n?0:u.radius,skip:o.skip||isNaN(h)||isNaN(f),x:h,y:f},t.pivot()},setHoverStyle:function(t){var e=t._model,n=t._options,r=ct.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=qt(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=qt(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=qt(n.hoverBorderWidth,n.borderWidth),e.radius=n.radius+n.hoverRadius},_resolveElementOptions:function(t,e){var n,r,i,o=this.chart,a=o.data.datasets[this.index],s=t.custom||{},u=o.options.elements.point,l=a.data[e],c={},h={chart:o,dataIndex:e,dataset:a,datasetIndex:this.index},f=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"];for(n=0,r=f.length;n<r;++n)c[i=f[n]]=Yt([s[i],a[i],u[i]],h,e);return c.radius=Yt([s.radius,l?l.r:void 0,a.radius,u.radius],h,e),c}}),$t=ct.options.resolve,Kt=ct.valueOrDefault;st._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var n=t.data,r=n.datasets,i=n.labels;if(r.length)for(var o=0;o<r[0].data.length;++o)e.push('<li><span style="background-color:'+r[0].backgroundColor[o]+'"></span>'),i[o]&&e.push(i[o]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,r){var i=t.getDatasetMeta(0),o=e.datasets[0],a=i.data[r],s=a&&a.custom||{},u=t.options.elements.arc;return{text:n,fillStyle:$t([s.backgroundColor,o.backgroundColor,u.backgroundColor],void 0,r),strokeStyle:$t([s.borderColor,o.borderColor,u.borderColor],void 0,r),lineWidth:$t([s.borderWidth,o.borderWidth,u.borderWidth],void 0,r),hidden:isNaN(o.data[r])||i.data[r].hidden,index:r}})):[]}},onClick:function(t,e){var n,r,i,o=e.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)(i=a.getDatasetMeta(n)).data[o]&&(i.data[o].hidden=!i.data[o].hidden);a.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.labels[t.index],r=": "+e.datasets[t.datasetIndex].data[t.index];return ct.isArray(n)?(n=n.slice())[0]+=r:n+=r,n}}}});var Zt=kt.extend({dataElementType:zt.Arc,linkScales:ct.noop,getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(t){var e,n,r=this,i=r.chart,o=i.chartArea,a=i.options,s=o.right-o.left,u=o.bottom-o.top,l=Math.min(s,u),c={x:0,y:0},h=r.getMeta(),f=h.data,d=a.cutoutPercentage,p=a.circumference,g=r._getRingWeight(r.index);if(p<2*Math.PI){var v=a.rotation%(2*Math.PI),m=(v+=2*Math.PI*(v>=Math.PI?-1:v<-Math.PI?1:0))+p,y={x:Math.cos(v),y:Math.sin(v)},b={x:Math.cos(m),y:Math.sin(m)},x=v<=0&&m>=0||v<=2*Math.PI&&2*Math.PI<=m,_=v<=.5*Math.PI&&.5*Math.PI<=m||v<=2.5*Math.PI&&2.5*Math.PI<=m,w=v<=-Math.PI&&-Math.PI<=m||v<=Math.PI&&Math.PI<=m,k=v<=.5*-Math.PI&&.5*-Math.PI<=m||v<=1.5*Math.PI&&1.5*Math.PI<=m,S=d/100,M={x:w?-1:Math.min(y.x*(y.x<0?1:S),b.x*(b.x<0?1:S)),y:k?-1:Math.min(y.y*(y.y<0?1:S),b.y*(b.y<0?1:S))},C={x:x?1:Math.max(y.x*(y.x>0?1:S),b.x*(b.x>0?1:S)),y:_?1:Math.max(y.y*(y.y>0?1:S),b.y*(b.y>0?1:S))},I={width:.5*(C.x-M.x),height:.5*(C.y-M.y)};l=Math.min(s/I.width,u/I.height),c={x:-.5*(C.x+M.x),y:-.5*(C.y+M.y)}}for(e=0,n=f.length;e<n;++e)f[e]._options=r._resolveElementOptions(f[e],e);for(i.borderWidth=r.getMaxBorderWidth(),i.outerRadius=Math.max((l-i.borderWidth)/2,0),i.innerRadius=Math.max(d?i.outerRadius/100*d:0,0),i.radiusLength=(i.outerRadius-i.innerRadius)/(r._getVisibleDatasetWeightTotal()||1),i.offsetX=c.x*i.outerRadius,i.offsetY=c.y*i.outerRadius,h.total=r.calculateTotal(),r.outerRadius=i.outerRadius-i.radiusLength*r._getRingWeightOffset(r.index),r.innerRadius=Math.max(r.outerRadius-i.radiusLength*g,0),e=0,n=f.length;e<n;++e)r.updateElement(f[e],e,t)},updateElement:function(t,e,n){var r=this,i=r.chart,o=i.chartArea,a=i.options,s=a.animation,u=(o.left+o.right)/2,l=(o.top+o.bottom)/2,c=a.rotation,h=a.rotation,f=r.getDataset(),d=n&&s.animateRotate?0:t.hidden?0:r.calculateCircumference(f.data[e])*(a.circumference/(2*Math.PI)),p=n&&s.animateScale?0:r.innerRadius,g=n&&s.animateScale?0:r.outerRadius,v=t._options||{};ct.extend(t,{_datasetIndex:r.index,_index:e,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:u+i.offsetX,y:l+i.offsetY,startAngle:c,endAngle:h,circumference:d,outerRadius:g,innerRadius:p,label:ct.valueAtIndexOrDefault(f.label,e,i.data.labels[e])}});var m=t._model;n&&s.animateRotate||(m.startAngle=0===e?a.rotation:r.getMeta().data[e-1]._model.endAngle,m.endAngle=m.startAngle+m.circumference),t.pivot()},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),r=0;return ct.each(n.data,(function(n,i){t=e.data[i],isNaN(t)||n.hidden||(r+=Math.abs(t))})),r},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,n,r,i,o,a,s,u,l=0,c=this.chart;if(!t)for(e=0,n=c.data.datasets.length;e<n;++e)if(c.isDatasetVisible(e)){t=(r=c.getDatasetMeta(e)).data,e!==this.index&&(o=r.controller);break}if(!t)return 0;for(e=0,n=t.length;e<n;++e)i=t[e],"inner"!==(a=o?o._resolveElementOptions(i,e):i._options).borderAlign&&(s=a.borderWidth,l=(u=a.hoverBorderWidth)>(l=s>l?s:l)?u:l);return l},setHoverStyle:function(t){var e=t._model,n=t._options,r=ct.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=Kt(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=Kt(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=Kt(n.hoverBorderWidth,n.borderWidth)},_resolveElementOptions:function(t,e){var n,r,i,o=this.chart,a=this.getDataset(),s=t.custom||{},u=o.options.elements.arc,l={},c={chart:o,dataIndex:e,dataset:a,datasetIndex:this.index},h=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(n=0,r=h.length;n<r;++n)l[i=h[n]]=$t([s[i],a[i],u[i]],c,e);return l},_getRingWeightOffset:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e},_getRingWeight:function(t){return Math.max(Kt(this.chart.data.datasets[t].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});st._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}});var Xt=Jt.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Qt=ct.valueOrDefault,te=ct.options.resolve,ee=ct.canvas._isPointInArea;function ne(t,e){return Qt(t.showLine,e.showLines)}st._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 re=kt.extend({datasetElementType:zt.Line,dataElementType:zt.Point,update:function(t){var e,n,r=this,i=r.getMeta(),o=i.dataset,a=i.data||[],s=r.getScaleForId(i.yAxisID),u=r.getDataset(),l=ne(u,r.chart.options);for(l&&(void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),o._scale=s,o._datasetIndex=r.index,o._children=a,o._model=r._resolveLineOptions(o),o.pivot()),e=0,n=a.length;e<n;++e)r.updateElement(a[e],e,t);for(l&&0!==o._model.tension&&r.updateBezierControlPoints(),e=0,n=a.length;e<n;++e)a[e].pivot()},updateElement:function(t,e,n){var r,i,o=this,a=o.getMeta(),s=t.custom||{},u=o.getDataset(),l=o.index,c=u.data[e],h=o.getScaleForId(a.yAxisID),f=o.getScaleForId(a.xAxisID),d=a.dataset._model,p=o._resolvePointOptions(t,e);r=f.getPixelForValue("object"==typeof c?c:NaN,e,l),i=n?h.getBasePixel():o.calculatePointY(c,e,l),t._xScale=f,t._yScale=h,t._options=p,t._datasetIndex=l,t._index=e,t._model={x:r,y:i,skip:s.skip||isNaN(r)||isNaN(i),radius:p.radius,pointStyle:p.pointStyle,rotation:p.rotation,backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,tension:Qt(s.tension,d?d.tension:0),steppedLine:!!d&&d.steppedLine,hitRadius:p.hitRadius}},_resolvePointOptions:function(t,e){var n,r,i,o=this.chart,a=o.data.datasets[this.index],s=t.custom||{},u=o.options.elements.point,l={},c={chart:o,dataIndex:e,dataset:a,datasetIndex:this.index},h={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},f=Object.keys(h);for(n=0,r=f.length;n<r;++n)l[i=f[n]]=te([s[i],a[h[i]],a[i],u[i]],c,e);return l},_resolveLineOptions:function(t){var e,n,r,i=this.chart,o=i.data.datasets[this.index],a=t.custom||{},s=i.options,u=s.elements.line,l={},c=["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill","cubicInterpolationMode"];for(e=0,n=c.length;e<n;++e)l[r=c[e]]=te([a[r],o[r],u[r]]);return l.spanGaps=Qt(o.spanGaps,s.spanGaps),l.tension=Qt(o.lineTension,u.tension),l.steppedLine=te([a.steppedLine,o.steppedLine,u.stepped]),l},calculatePointY:function(t,e,n){var r,i,o,a=this.chart,s=this.getMeta(),u=this.getScaleForId(s.yAxisID),l=0,c=0;if(u.options.stacked){for(r=0;r<n;r++)if(i=a.data.datasets[r],"line"===(o=a.getDatasetMeta(r)).type&&o.yAxisID===u.id&&a.isDatasetVisible(r)){var h=Number(u.getRightValue(i.data[e]));h<0?c+=h||0:l+=h||0}var f=Number(u.getRightValue(t));return f<0?u.getPixelForValue(c+f):u.getPixelForValue(l+f)}return u.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,n,r,i=this.chart,o=this.getMeta(),a=o.dataset._model,s=i.chartArea,u=o.data||[];function l(t,e,n){return Math.max(Math.min(t,n),e)}if(a.spanGaps&&(u=u.filter((function(t){return!t._model.skip}))),"monotone"===a.cubicInterpolationMode)ct.splineCurveMonotone(u);else for(t=0,e=u.length;t<e;++t)n=u[t]._model,r=ct.splineCurve(ct.previousItem(u,t)._model,n,ct.nextItem(u,t)._model,a.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(i.options.elements.line.capBezierPoints)for(t=0,e=u.length;t<e;++t)n=u[t]._model,ee(n,s)&&(t>0&&ee(u[t-1]._model,s)&&(n.controlPointPreviousX=l(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=l(n.controlPointPreviousY,s.top,s.bottom)),t<u.length-1&&ee(u[t+1]._model,s)&&(n.controlPointNextX=l(n.controlPointNextX,s.left,s.right),n.controlPointNextY=l(n.controlPointNextY,s.top,s.bottom)))},draw:function(){var t,e=this.chart,n=this.getMeta(),r=n.data||[],i=e.chartArea,o=r.length,a=0;for(ne(this.getDataset(),e.options)&&(t=(n.dataset._model.borderWidth||0)/2,ct.canvas.clipArea(e.ctx,{left:i.left,right:i.right,top:i.top-t,bottom:i.bottom+t}),n.dataset.draw(),ct.canvas.unclipArea(e.ctx));a<o;++a)r[a].draw(i)},setHoverStyle:function(t){var e=t._model,n=t._options,r=ct.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Qt(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=Qt(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=Qt(n.hoverBorderWidth,n.borderWidth),e.radius=Qt(n.hoverRadius,n.radius)}}),ie=ct.options.resolve;st._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(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var n=t.data,r=n.datasets,i=n.labels;if(r.length)for(var o=0;o<r[0].data.length;++o)e.push('<li><span style="background-color:'+r[0].backgroundColor[o]+'"></span>'),i[o]&&e.push(i[o]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,r){var i=t.getDatasetMeta(0),o=e.datasets[0],a=i.data[r].custom||{},s=t.options.elements.arc;return{text:n,fillStyle:ie([a.backgroundColor,o.backgroundColor,s.backgroundColor],void 0,r),strokeStyle:ie([a.borderColor,o.borderColor,s.borderColor],void 0,r),lineWidth:ie([a.borderWidth,o.borderWidth,s.borderWidth],void 0,r),hidden:isNaN(o.data[r])||i.data[r].hidden,index:r}})):[]}},onClick:function(t,e){var n,r,i,o=e.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)(i=a.getDatasetMeta(n)).data[o].hidden=!i.data[o].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}});var oe=kt.extend({dataElementType:zt.Arc,linkScales:ct.noop,update:function(t){var e,n,r,i=this,o=i.getDataset(),a=i.getMeta(),s=i.chart.options.startAngle||0,u=i._starts=[],l=i._angles=[],c=a.data;for(i._updateRadius(),a.count=i.countVisibleElements(),e=0,n=o.data.length;e<n;e++)u[e]=s,r=i._computeAngle(e),l[e]=r,s+=r;for(e=0,n=c.length;e<n;++e)c[e]._options=i._resolveElementOptions(c[e],e),i.updateElement(c[e],e,t)},_updateRadius:function(){var t=this,e=t.chart,n=e.chartArea,r=e.options,i=Math.min(n.right-n.left,n.bottom-n.top);e.outerRadius=Math.max(i/2,0),e.innerRadius=Math.max(r.cutoutPercentage?e.outerRadius/100*r.cutoutPercentage:1,0),e.radiusLength=(e.outerRadius-e.innerRadius)/e.getVisibleDatasetCount(),t.outerRadius=e.outerRadius-e.radiusLength*t.index,t.innerRadius=t.outerRadius-e.radiusLength},updateElement:function(t,e,n){var r=this,i=r.chart,o=r.getDataset(),a=i.options,s=a.animation,u=i.scale,l=i.data.labels,c=u.xCenter,h=u.yCenter,f=a.startAngle,d=t.hidden?0:u.getDistanceFromCenterForValue(o.data[e]),p=r._starts[e],g=p+(t.hidden?0:r._angles[e]),v=s.animateScale?0:u.getDistanceFromCenterForValue(o.data[e]),m=t._options||{};ct.extend(t,{_datasetIndex:r.index,_index:e,_scale:u,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:c,y:h,innerRadius:0,outerRadius:n?v:d,startAngle:n&&s.animateRotate?f:p,endAngle:n&&s.animateRotate?f:g,label:ct.valueAtIndexOrDefault(l,e,l[e])}}),t.pivot()},countVisibleElements:function(){var t=this.getDataset(),e=this.getMeta(),n=0;return ct.each(e.data,(function(e,r){isNaN(t.data[r])||e.hidden||n++})),n},setHoverStyle:function(t){var e=t._model,n=t._options,r=ct.getHoverColor,i=ct.valueOrDefault;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=i(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=i(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=i(n.hoverBorderWidth,n.borderWidth)},_resolveElementOptions:function(t,e){var n,r,i,o=this.chart,a=this.getDataset(),s=t.custom||{},u=o.options.elements.arc,l={},c={chart:o,dataIndex:e,dataset:a,datasetIndex:this.index},h=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(n=0,r=h.length;n<r;++n)l[i=h[n]]=ie([s[i],a[i],u[i]],c,e);return l},_computeAngle:function(t){var e=this,n=this.getMeta().count,r=e.getDataset(),i=e.getMeta();if(isNaN(r.data[t])||i.data[t].hidden)return 0;var o={chart:e.chart,dataIndex:t,dataset:r,datasetIndex:e.index};return ie([e.chart.options.elements.arc.angle,2*Math.PI/n],o,t)}});st._set("pie",ct.clone(st.doughnut)),st._set("pie",{cutoutPercentage:0});var ae=Zt,se=ct.valueOrDefault,ue=ct.options.resolve;st._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}});var le=kt.extend({datasetElementType:zt.Line,dataElementType:zt.Point,linkScales:ct.noop,update:function(t){var e,n,r=this,i=r.getMeta(),o=i.dataset,a=i.data||[],s=r.chart.scale,u=r.getDataset();for(void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),o._scale=s,o._datasetIndex=r.index,o._children=a,o._loop=!0,o._model=r._resolveLineOptions(o),o.pivot(),e=0,n=a.length;e<n;++e)r.updateElement(a[e],e,t);for(r.updateBezierControlPoints(),e=0,n=a.length;e<n;++e)a[e].pivot()},updateElement:function(t,e,n){var r=this,i=t.custom||{},o=r.getDataset(),a=r.chart.scale,s=a.getPointPositionForValue(e,o.data[e]),u=r._resolvePointOptions(t,e),l=r.getMeta().dataset._model,c=n?a.xCenter:s.x,h=n?a.yCenter:s.y;t._scale=a,t._options=u,t._datasetIndex=r.index,t._index=e,t._model={x:c,y:h,skip:i.skip||isNaN(c)||isNaN(h),radius:u.radius,pointStyle:u.pointStyle,rotation:u.rotation,backgroundColor:u.backgroundColor,borderColor:u.borderColor,borderWidth:u.borderWidth,tension:se(i.tension,l?l.tension:0),hitRadius:u.hitRadius}},_resolvePointOptions:function(t,e){var n,r,i,o=this.chart,a=o.data.datasets[this.index],s=t.custom||{},u=o.options.elements.point,l={},c={chart:o,dataIndex:e,dataset:a,datasetIndex:this.index},h={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},f=Object.keys(h);for(n=0,r=f.length;n<r;++n)l[i=f[n]]=ue([s[i],a[h[i]],a[i],u[i]],c,e);return l},_resolveLineOptions:function(t){var e,n,r,i=this.chart,o=i.data.datasets[this.index],a=t.custom||{},s=i.options.elements.line,u={},l=["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"];for(e=0,n=l.length;e<n;++e)u[r=l[e]]=ue([a[r],o[r],s[r]]);return u.tension=se(o.lineTension,s.tension),u},updateBezierControlPoints:function(){var t,e,n,r,i=this.getMeta(),o=this.chart.chartArea,a=i.data||[];function s(t,e,n){return Math.max(Math.min(t,n),e)}for(t=0,e=a.length;t<e;++t)n=a[t]._model,r=ct.splineCurve(ct.previousItem(a,t,!0)._model,n,ct.nextItem(a,t,!0)._model,n.tension),n.controlPointPreviousX=s(r.previous.x,o.left,o.right),n.controlPointPreviousY=s(r.previous.y,o.top,o.bottom),n.controlPointNextX=s(r.next.x,o.left,o.right),n.controlPointNextY=s(r.next.y,o.top,o.bottom)},setHoverStyle:function(t){var e=t._model,n=t._options,r=ct.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=se(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=se(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=se(n.hoverBorderWidth,n.borderWidth),e.radius=se(n.hoverRadius,n.radius)}});st._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}});var ce={bar:Jt,bubble:Gt,doughnut:Zt,horizontalBar:Xt,line:re,polarArea:oe,pie:ae,radar:le,scatter:re};function he(t,e){return t.native?{x:t.x,y:t.y}:ct.getRelativePosition(t,e)}function fe(t,e){var n,r,i,o,a;for(r=0,o=t.data.datasets.length;r<o;++r)if(t.isDatasetVisible(r))for(i=0,a=(n=t.getDatasetMeta(r)).data.length;i<a;++i){var s=n.data[i];s._view.skip||e(s)}}function de(t,e){var n=[];return fe(t,(function(t){t.inRange(e.x,e.y)&&n.push(t)})),n}function pe(t,e,n,r){var i=Number.POSITIVE_INFINITY,o=[];return fe(t,(function(t){if(!n||t.inRange(e.x,e.y)){var a=t.getCenterPoint(),s=r(e,a);s<i?(o=[t],i=s):s===i&&o.push(t)}})),o}function ge(t){var e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,r){var i=e?Math.abs(t.x-r.x):0,o=n?Math.abs(t.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}function ve(t,e,n){var r=he(e,t);n.axis=n.axis||"x";var i=ge(n.axis),o=n.intersect?de(t,r):pe(t,r,!1,i),a=[];return o.length?(t.data.datasets.forEach((function(e,n){if(t.isDatasetVisible(n)){var r=t.getDatasetMeta(n).data[o[0]._index];r&&!r._view.skip&&a.push(r)}})),a):[]}var me={modes:{single:function(t,e){var n=he(e,t),r=[];return fe(t,(function(t){if(t.inRange(n.x,n.y))return r.push(t),r})),r.slice(0,1)},label:ve,index:ve,dataset:function(t,e,n){var r=he(e,t);n.axis=n.axis||"xy";var i=ge(n.axis),o=n.intersect?de(t,r):pe(t,r,!1,i);return o.length>0&&(o=t.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(t,e){return ve(t,e,{intersect:!1})},point:function(t,e){return de(t,he(e,t))},nearest:function(t,e,n){var r=he(e,t);n.axis=n.axis||"xy";var i=ge(n.axis);return pe(t,r,n.intersect,i)},x:function(t,e,n){var r=he(e,t),i=[],o=!1;return fe(t,(function(t){t.inXRange(r.x)&&i.push(t),t.inRange(r.x,r.y)&&(o=!0)})),n.intersect&&!o&&(i=[]),i},y:function(t,e,n){var r=he(e,t),i=[],o=!1;return fe(t,(function(t){t.inYRange(r.y)&&i.push(t),t.inRange(r.x,r.y)&&(o=!0)})),n.intersect&&!o&&(i=[]),i}}};function ye(t,e){return ct.where(t,(function(t){return t.position===e}))}function be(t,e){t.forEach((function(t,e){return t._tmpIndex_=e,t})),t.sort((function(t,n){var r=e?n:t,i=e?t:n;return r.weight===i.weight?r._tmpIndex_-i._tmpIndex_:r.weight-i.weight})),t.forEach((function(t){delete t._tmpIndex_}))}function xe(t,e){ct.each(t,(function(t){e[t.position]+=t.isHorizontal()?t.height:t.width}))}st._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var _e,we={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var r,i=["fullWidth","position","weight"],o=i.length,a=0;a<o;++a)r=i[a],n.hasOwnProperty(r)&&(e[r]=n[r])},update:function(t,e,n){if(t){var r=t.options.layout||{},i=ct.options.toPadding(r.padding),o=i.left,a=i.right,s=i.top,u=i.bottom,l=ye(t.boxes,"left"),c=ye(t.boxes,"right"),h=ye(t.boxes,"top"),f=ye(t.boxes,"bottom"),d=ye(t.boxes,"chartArea");be(l,!0),be(c,!1),be(h,!0),be(f,!1);var p,g=l.concat(c),v=h.concat(f),m=g.concat(v),y=e-o-a,b=n-s-u,x=(e-y/2)/g.length,_=y,w=b,k={top:s,left:o,bottom:u,right:a},S=[];ct.each(m,(function(t){var e,n=t.isHorizontal();n?(e=t.update(t.fullWidth?y:_,b/2),w-=e.height):(e=t.update(x,w),_-=e.width),S.push({horizontal:n,width:e.width,box:t})})),p=function(t){var e=0,n=0,r=0,i=0;return ct.each(t,(function(t){if(t.getPadding){var o=t.getPadding();e=Math.max(e,o.top),n=Math.max(n,o.left),r=Math.max(r,o.bottom),i=Math.max(i,o.right)}})),{top:e,left:n,bottom:r,right:i}}(m),ct.each(g,E),xe(g,k),ct.each(v,E),xe(v,k),ct.each(g,(function(t){var e=ct.findNextWhere(S,(function(e){return e.box===t})),n={left:0,right:0,top:k.top,bottom:k.bottom};e&&t.update(e.width,w,n)})),xe(m,k={top:s,left:o,bottom:u,right:a});var M=Math.max(p.left-k.left,0);k.left+=M,k.right+=Math.max(p.right-k.right,0);var C=Math.max(p.top-k.top,0);k.top+=C,k.bottom+=Math.max(p.bottom-k.bottom,0);var I=n-k.top-k.bottom,A=e-k.left-k.right;A===_&&I===w||(ct.each(g,(function(t){t.height=I})),ct.each(v,(function(t){t.fullWidth||(t.width=A)})),w=I,_=A);var T=o+M,P=s+C;ct.each(l.concat(h),O),T+=_,P+=w,ct.each(c,O),ct.each(f,O),t.chartArea={left:k.left,top:k.top,right:k.left+_,bottom:k.top+w},ct.each(d,(function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(_,w)}))}function E(t){var e=ct.findNextWhere(S,(function(e){return e.box===t}));if(e)if(e.horizontal){var n={left:Math.max(k.left,p.left),right:Math.max(k.right,p.right),top:0,bottom:0};t.update(t.fullWidth?y:_,b/2,n)}else t.update(e.width,w)}function O(t){t.isHorizontal()?(t.left=t.fullWidth?o:k.left,t.right=t.fullWidth?e-a:k.left+_,t.top=P,t.bottom=P+t.height,P=t.bottom):(t.left=T,t.right=T+t.width,t.top=k.top,t.bottom=k.top+w,T=t.right)}}},ke=(_e=Object.freeze({default:"/*\n * DOM element rendering detection\n * https://davidwalsh.name/detect-node-insertion\n */\n@keyframes chartjs-render-animation {\n\tfrom { opacity: 0.99; }\n\tto { opacity: 1; }\n}\n\n.chartjs-render-monitor {\n\tanimation: chartjs-render-animation 0.001s;\n}\n\n/*\n * DOM element resizing detection\n * https://github.com/marcj/css-element-queries\n */\n.chartjs-size-monitor,\n.chartjs-size-monitor-expand,\n.chartjs-size-monitor-shrink {\n\tposition: absolute;\n\tdirection: ltr;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\toverflow: hidden;\n\tpointer-events: none;\n\tvisibility: hidden;\n\tz-index: -1;\n}\n\n.chartjs-size-monitor-expand > div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&_e.default||_e,Se="$chartjs",Me="chartjs-size-monitor",Ce="chartjs-render-monitor",Ie="chartjs-render-animation",Ae=["animationstart","webkitAnimationStart"],Te={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function Pe(t,e){var n=ct.getStyle(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}var Ee=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function Oe(t,e,n){t.addEventListener(e,n,Ee)}function Re(t,e,n){t.removeEventListener(e,n,Ee)}function Fe(t,e,n,r,i){return{type:t,chart:e,native:i||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function De(t){var e=document.createElement("div");return e.className=t||"",e}function Le(t,e,n){var r,i,o,a,s=t[Se]||(t[Se]={}),u=s.resizer=function(t){var e=De(Me),n=De(Me+"-expand"),r=De(Me+"-shrink");n.appendChild(De()),r.appendChild(De()),e.appendChild(n),e.appendChild(r),e._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var i=function(){e._reset(),t()};return Oe(n,"scroll",i.bind(n,"expand")),Oe(r,"scroll",i.bind(r,"shrink")),e}((r=function(){if(s.resizer){var r=n.options.maintainAspectRatio&&t.parentNode,i=r?r.clientWidth:0;e(Fe("resize",n)),r&&r.clientWidth<i&&n.canvas&&e(Fe("resize",n))}},o=!1,a=[],function(){a=Array.prototype.slice.call(arguments),i=i||this,o||(o=!0,ct.requestAnimFrame.call(window,(function(){o=!1,r.apply(i,a)})))}));!function(t,e){var n=t[Se]||(t[Se]={}),r=n.renderProxy=function(t){t.animationName===Ie&&e()};ct.each(Ae,(function(e){Oe(t,e,r)})),n.reflow=!!t.offsetParent,t.classList.add(Ce)}(t,(function(){if(s.resizer){var e=t.parentNode;e&&e!==u.parentNode&&e.insertBefore(u,e.firstChild),u._reset()}}))}function Ne(t){var e=t[Se]||{},n=e.resizer;delete e.resizer,function(t){var e=t[Se]||{},n=e.renderProxy;n&&(ct.each(Ae,(function(e){Re(t,e,n)})),delete e.renderProxy),t.classList.remove(Ce)}(t),n&&n.parentNode&&n.parentNode.removeChild(n)}var Be={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(){this._loaded||(this._loaded=!0,this.disableCSSInjection||function(t,e){var n=t._style||document.createElement("style");t._style||(t._style=n,e="/* Chart.js */\n"+e,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))}(this,ke))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return this._ensureLoaded(),n&&n.canvas===t?(function(t,e){var n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[Se]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===i||""===i){var o=Pe(t,"width");void 0!==o&&(t.width=o)}if(null===r||""===r)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var a=Pe(t,"height");void 0!==o&&(t.height=a)}}(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[Se]){var n=e[Se].initial;["height","width"].forEach((function(t){var r=n[t];ct.isNullOrUndef(r)?e.removeAttribute(t):e.setAttribute(t,r)})),ct.each(n.style||{},(function(t,n){e.style[n]=t})),e.width=e.width,delete e[Se]}},addEventListener:function(t,e,n){var r=t.canvas;if("resize"!==e){var i=n[Se]||(n[Se]={});Oe(r,e,(i.proxies||(i.proxies={}))[t.id+"_"+e]=function(e){n(function(t,e){var n=Te[t.type]||t.type,r=ct.getRelativePosition(t,e);return Fe(n,e,r.x,r.y,t)}(e,t))})}else Le(r,n,t)},removeEventListener:function(t,e,n){var r=t.canvas;if("resize"!==e){var i=((n[Se]||{}).proxies||{})[t.id+"_"+e];i&&Re(r,e,i)}else Ne(r)}};ct.addEvent=Oe,ct.removeEvent=Re;var ze=Be._enabled?Be:{acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}},je=ct.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},ze);st._set("global",{plugins:{}});var We={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach((function(t){-1===e.indexOf(t)&&e.push(t)})),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach((function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){var r,i,o,a,s,u=this.descriptors(t),l=u.length;for(r=0;r<l;++r)if("function"==typeof(s=(o=(i=u[r]).plugin)[e])&&((a=[t].concat(n||[])).push(i.options),!1===s.apply(o,a)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var n=[],r=[],i=t&&t.config||{},o=i.options&&i.options.plugins||{};return this._plugins.concat(i.plugins||[]).forEach((function(t){if(-1===n.indexOf(t)){var e=t.id,i=o[e];!1!==i&&(!0===i&&(i=ct.clone(st.global.plugins[e])),n.push(t),r.push({plugin:t,options:i||{}}))}})),e.descriptors=r,e.id=this._cacheId,r},_invalidate:function(t){delete t.$plugins}},Ve={constructors:{},defaults:{},registerScaleType:function(t,e,n){this.constructors[t]=e,this.defaults[t]=ct.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?ct.merge({},[st.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){this.defaults.hasOwnProperty(t)&&(this.defaults[t]=ct.extend(this.defaults[t],e))},addScalesToLayout:function(t){ct.each(t.scales,(function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,we.addBox(t,e)}))}},He=ct.valueOrDefault;st._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:ct.noop,title:function(t,e){var n="",r=e.labels,i=r?r.length:0;if(t.length>0){var o=t[0];o.label?n=o.label:o.xLabel?n=o.xLabel:i>0&&o.index<i&&(n=r[o.index])}return n},afterTitle:ct.noop,beforeBody:ct.noop,beforeLabel:ct.noop,label:function(t,e){var n=e.datasets[t.datasetIndex].label||"";return n&&(n+=": "),ct.isNullOrUndef(t.value)?n+=t.yLabel:n+=t.value,n},labelColor:function(t,e){var n=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:ct.noop,afterBody:ct.noop,beforeFooter:ct.noop,footer:ct.noop,afterFooter:ct.noop}}});var Ue={average:function(t){if(!t.length)return!1;var e,n,r=0,i=0,o=0;for(e=0,n=t.length;e<n;++e){var a=t[e];if(a&&a.hasValue()){var s=a.tooltipPosition();r+=s.x,i+=s.y,++o}}return{x:r/o,y:i/o}},nearest:function(t,e){var n,r,i,o=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(n=0,r=t.length;n<r;++n){var u=t[n];if(u&&u.hasValue()){var l=u.getCenterPoint(),c=ct.distanceBetweenPoints(e,l);c<s&&(s=c,i=u)}}if(i){var h=i.tooltipPosition();o=h.x,a=h.y}return{x:o,y:a}}};function Je(t,e){return e&&(ct.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function qe(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Ye(t){var e=st.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:He(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:He(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:He(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:He(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:He(t.titleFontStyle,e.defaultFontStyle),titleFontSize:He(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:He(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:He(t.footerFontStyle,e.defaultFontStyle),footerFontSize:He(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function Ge(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function $e(t){return Je([],qe(t))}var Ke=gt.extend({initialize:function(){this._model=Ye(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options,n=e.callbacks,r=n.beforeTitle.apply(t,arguments),i=n.title.apply(t,arguments),o=n.afterTitle.apply(t,arguments),a=[];return a=Je(a,qe(r)),a=Je(a,qe(i)),a=Je(a,qe(o))},getBeforeBody:function(){return $e(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var n=this,r=n._options.callbacks,i=[];return ct.each(t,(function(t){var o={before:[],lines:[],after:[]};Je(o.before,qe(r.beforeLabel.call(n,t,e))),Je(o.lines,r.label.call(n,t,e)),Je(o.after,qe(r.afterLabel.call(n,t,e))),i.push(o)})),i},getAfterBody:function(){return $e(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this,e=t._options.callbacks,n=e.beforeFooter.apply(t,arguments),r=e.footer.apply(t,arguments),i=e.afterFooter.apply(t,arguments),o=[];return o=Je(o,qe(n)),o=Je(o,qe(r)),o=Je(o,qe(i))},update:function(t){var e,n,r,i,o,a,s,u,l,c,h=this,f=h._options,d=h._model,p=h._model=Ye(f),g=h._active,v=h._data,m={xAlign:d.xAlign,yAlign:d.yAlign},y={x:d.x,y:d.y},b={width:d.width,height:d.height},x={x:d.caretX,y:d.caretY};if(g.length){p.opacity=1;var _=[],w=[];x=Ue[f.position].call(h,g,h._eventPosition);var k=[];for(e=0,n=g.length;e<n;++e)k.push((r=g[e],i=void 0,o=void 0,a=void 0,s=void 0,u=void 0,l=void 0,c=void 0,i=r._xScale,o=r._yScale||r._scale,a=r._index,s=r._datasetIndex,u=r._chart.getDatasetMeta(s).controller,l=u._getIndexScale(),c=u._getValueScale(),{xLabel:i?i.getLabelForIndex(a,s):"",yLabel:o?o.getLabelForIndex(a,s):"",label:l?""+l.getLabelForIndex(a,s):"",value:c?""+c.getLabelForIndex(a,s):"",index:a,datasetIndex:s,x:r._model.x,y:r._model.y}));f.filter&&(k=k.filter((function(t){return f.filter(t,v)}))),f.itemSort&&(k=k.sort((function(t,e){return f.itemSort(t,e,v)}))),ct.each(k,(function(t){_.push(f.callbacks.labelColor.call(h,t,h._chart)),w.push(f.callbacks.labelTextColor.call(h,t,h._chart))})),p.title=h.getTitle(k,v),p.beforeBody=h.getBeforeBody(k,v),p.body=h.getBody(k,v),p.afterBody=h.getAfterBody(k,v),p.footer=h.getFooter(k,v),p.x=x.x,p.y=x.y,p.caretPadding=f.caretPadding,p.labelColors=_,p.labelTextColors=w,p.dataPoints=k,b=function(t,e){var n=t._chart.ctx,r=2*e.yPadding,i=0,o=e.body,a=o.reduce((function(t,e){return t+e.before.length+e.lines.length+e.after.length}),0);a+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,u=e.footer.length,l=e.titleFontSize,c=e.bodyFontSize,h=e.footerFontSize;r+=s*l,r+=s?(s-1)*e.titleSpacing:0,r+=s?e.titleMarginBottom:0,r+=a*c,r+=a?(a-1)*e.bodySpacing:0,r+=u?e.footerMarginTop:0,r+=u*h,r+=u?(u-1)*e.footerSpacing:0;var f=0,d=function(t){i=Math.max(i,n.measureText(t).width+f)};return n.font=ct.fontString(l,e._titleFontStyle,e._titleFontFamily),ct.each(e.title,d),n.font=ct.fontString(c,e._bodyFontStyle,e._bodyFontFamily),ct.each(e.beforeBody.concat(e.afterBody),d),f=e.displayColors?c+2:0,ct.each(o,(function(t){ct.each(t.before,d),ct.each(t.lines,d),ct.each(t.after,d)})),f=0,n.font=ct.fontString(h,e._footerFontStyle,e._footerFontFamily),ct.each(e.footer,d),{width:i+=2*e.xPadding,height:r}}(this,p),y=function(t,e,n,r){var i=t.x,o=t.y,a=t.caretSize,s=t.caretPadding,u=t.cornerRadius,l=n.xAlign,c=n.yAlign,h=a+s,f=u+s;return"right"===l?i-=e.width:"center"===l&&((i-=e.width/2)+e.width>r.width&&(i=r.width-e.width),i<0&&(i=0)),"top"===c?o+=h:o-="bottom"===c?e.height+h:e.height/2,"center"===c?"left"===l?i+=h:"right"===l&&(i-=h):"left"===l?i-=f:"right"===l&&(i+=f),{x:i,y:o}}(p,b,m=function(t,e){var n,r,i,o,a,s=t._model,u=t._chart,l=t._chart.chartArea,c="center",h="center";s.y<e.height?h="top":s.y>u.height-e.height&&(h="bottom");var f=(l.left+l.right)/2,d=(l.top+l.bottom)/2;"center"===h?(n=function(t){return t<=f},r=function(t){return t>f}):(n=function(t){return t<=e.width/2},r=function(t){return t>=u.width-e.width/2}),i=function(t){return t+e.width+s.caretSize+s.caretPadding>u.width},o=function(t){return t-e.width-s.caretSize-s.caretPadding<0},a=function(t){return t<=d?"top":"bottom"},n(s.x)?(c="left",i(s.x)&&(c="center",h=a(s.y))):r(s.x)&&(c="right",o(s.x)&&(c="center",h=a(s.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:h}}(this,b),h._chart)}else p.opacity=0;return p.xAlign=m.xAlign,p.yAlign=m.yAlign,p.x=y.x,p.y=y.y,p.width=b.width,p.height=b.height,p.caretX=x.x,p.caretY=x.y,h._model=p,t&&f.custom&&f.custom.call(h,p),h},drawCaret:function(t,e){var n=this._chart.ctx,r=this._view,i=this.getCaretPosition(t,e,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(t,e,n){var r,i,o,a,s,u,l=n.caretSize,c=n.cornerRadius,h=n.xAlign,f=n.yAlign,d=t.x,p=t.y,g=e.width,v=e.height;if("center"===f)s=p+v/2,"left"===h?(i=(r=d)-l,o=r,a=s+l,u=s-l):(i=(r=d+g)+l,o=r,a=s-l,u=s+l);else if("left"===h?(r=(i=d+c+l)-l,o=i+l):"right"===h?(r=(i=d+g-c-l)-l,o=i+l):(r=(i=n.caretX)-l,o=i+l),"top"===f)s=(a=p)-l,u=a;else{s=(a=p+v)+l,u=a;var m=o;o=r,r=m}return{x1:r,x2:i,x3:o,y1:a,y2:s,y3:u}},drawTitle:function(t,e,n){var r=e.title;if(r.length){t.x=Ge(e,e._titleAlign),n.textAlign=e._titleAlign,n.textBaseline="top";var i,o,a=e.titleFontSize,s=e.titleSpacing;for(n.fillStyle=e.titleFontColor,n.font=ct.fontString(a,e._titleFontStyle,e._titleFontFamily),i=0,o=r.length;i<o;++i)n.fillText(r[i],t.x,t.y),t.y+=a+s,i+1===r.length&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,n){var r,i=e.bodyFontSize,o=e.bodySpacing,a=e._bodyAlign,s=e.body,u=e.displayColors,l=e.labelColors,c=0,h=u?Ge(e,"left"):0;n.textAlign=a,n.textBaseline="top",n.font=ct.fontString(i,e._bodyFontStyle,e._bodyFontFamily),t.x=Ge(e,a);var f=function(e){n.fillText(e,t.x+c,t.y),t.y+=i+o};n.fillStyle=e.bodyFontColor,ct.each(e.beforeBody,f),c=u&&"right"!==a?"center"===a?i/2+1:i+2:0,ct.each(s,(function(o,a){r=e.labelTextColors[a],n.fillStyle=r,ct.each(o.before,f),ct.each(o.lines,(function(o){u&&(n.fillStyle=e.legendColorBackground,n.fillRect(h,t.y,i,i),n.lineWidth=1,n.strokeStyle=l[a].borderColor,n.strokeRect(h,t.y,i,i),n.fillStyle=l[a].backgroundColor,n.fillRect(h+1,t.y+1,i-2,i-2),n.fillStyle=r),f(o)})),ct.each(o.after,f)})),c=0,ct.each(e.afterBody,f),t.y-=o},drawFooter:function(t,e,n){var r=e.footer;r.length&&(t.x=Ge(e,e._footerAlign),t.y+=e.footerMarginTop,n.textAlign=e._footerAlign,n.textBaseline="top",n.fillStyle=e.footerFontColor,n.font=ct.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),ct.each(r,(function(r){n.fillText(r,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})))},drawBackground:function(t,e,n,r){n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,n.lineWidth=e.borderWidth;var i=e.xAlign,o=e.yAlign,a=t.x,s=t.y,u=r.width,l=r.height,c=e.cornerRadius;n.beginPath(),n.moveTo(a+c,s),"top"===o&&this.drawCaret(t,r),n.lineTo(a+u-c,s),n.quadraticCurveTo(a+u,s,a+u,s+c),"center"===o&&"right"===i&&this.drawCaret(t,r),n.lineTo(a+u,s+l-c),n.quadraticCurveTo(a+u,s+l,a+u-c,s+l),"bottom"===o&&this.drawCaret(t,r),n.lineTo(a+c,s+l),n.quadraticCurveTo(a,s+l,a,s+l-c),"center"===o&&"left"===i&&this.drawCaret(t,r),n.lineTo(a,s+c),n.quadraticCurveTo(a,s,a+c,s),n.closePath(),n.fill(),e.borderWidth>0&&n.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},r={x:e.x,y:e.y},i=Math.abs(e.opacity<.001)?0:e.opacity,o=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&o&&(t.save(),t.globalAlpha=i,this.drawBackground(r,e,t,n),r.y+=e.yPadding,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),t.restore())}},handleEvent:function(t){var e,n=this,r=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(t,r.mode,r),(e=!ct.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(r.enabled||r.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot())),e}}),Ze=Ue,Xe=Ke;Xe.positioners=Ze;var Qe=ct.valueOrDefault;function tn(){return ct.merge({},[].slice.call(arguments),{merger:function(t,e,n,r){if("xAxes"===t||"yAxes"===t){var i,o,a,s=n[t].length;for(e[t]||(e[t]=[]),i=0;i<s;++i)a=n[t][i],o=Qe(a.type,"xAxes"===t?"category":"linear"),i>=e[t].length&&e[t].push({}),!e[t][i].type||a.type&&a.type!==e[t][i].type?ct.merge(e[t][i],[Ve.getScaleDefaults(o),a]):ct.merge(e[t][i],a)}else ct._merger(t,e,n,r)}})}function en(){return ct.merge({},[].slice.call(arguments),{merger:function(t,e,n,r){var i=e[t]||{},o=n[t];"scales"===t?e[t]=tn(i,o):"scale"===t?e[t]=ct.merge(i,[Ve.getScaleDefaults(o.type),o]):ct._merger(t,e,n,r)}})}function nn(t){var e=t.options;ct.each(t.scales,(function(e){we.removeBox(t,e)})),e=en(st.global,st[t.config.type],e),t.options=t.config.options=e,t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.tooltip._options=e.tooltips,t.tooltip.initialize()}function rn(t){return"top"===t||"bottom"===t}st._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});var on=function(t,e){return this.construct(t,e),this};ct.extend(on.prototype,{construct:function(t,e){var n=this;e=function(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=en(st.global,st[t.type],t.options||{}),t}(e);var r=je.acquireContext(t,e),i=r&&r.canvas,o=i&&i.height,a=i&&i.width;n.id=ct.uid(),n.ctx=r,n.canvas=i,n.config=e,n.width=a,n.height=o,n.aspectRatio=o?a/o:null,n.options=e.options,n._bufferedRender=!1,n.chart=n,n.controller=n,on.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),r&&i?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return We.notify(t,"beforeInit"),ct.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),We.notify(t,"afterInit"),t},clear:function(){return ct.canvas.clear(this),this},stop:function(){return yt.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,r=e.canvas,i=n.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(ct.getMaximumWidth(r))),a=Math.max(0,Math.floor(i?o/i:ct.getMaximumHeight(r)));if((e.width!==o||e.height!==a)&&(r.width=e.width=o,r.height=e.height=a,r.style.width=o+"px",r.style.height=a+"px",ct.retinaScale(e,n.devicePixelRatio),!t)){var s={width:o,height:a};We.notify(e,"resize",[s]),n.onResize&&n.onResize(e,s),e.stop(),e.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;ct.each(e.xAxes,(function(t,e){t.id=t.id||"x-axis-"+e})),ct.each(e.yAxes,(function(t,e){t.id=t.id||"y-axis-"+e})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,n=t.scales||{},r=[],i=Object.keys(n).reduce((function(t,e){return t[e]=!1,t}),{});e.scales&&(r=r.concat((e.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(e.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),e.scale&&r.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),ct.each(r,(function(e){var r=e.options,o=r.id,a=Qe(r.type,e.dtype);rn(r.position)!==rn(e.dposition)&&(r.position=e.dposition),i[o]=!0;var s=null;if(o in n&&n[o].type===a)(s=n[o]).options=r,s.ctx=t.ctx,s.chart=t;else{var u=Ve.getScaleConstructor(a);if(!u)return;s=new u({id:o,type:a,options:r,ctx:t.ctx,chart:t}),n[s.id]=s}s.mergeTicksOptions(),e.isDefault&&(t.scale=s)})),ct.each(i,(function(t,e){t||delete n[e]})),t.scales=n,Ve.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t=this,e=[];return ct.each(t.data.datasets,(function(n,r){var i=t.getDatasetMeta(r),o=n.type||t.config.type;if(i.type&&i.type!==o&&(t.destroyDatasetMeta(r),i=t.getDatasetMeta(r)),i.type=o,i.controller)i.controller.updateIndex(r),i.controller.linkScales();else{var a=ce[i.type];if(void 0===a)throw new Error('"'+i.type+'" is not a chart type.');i.controller=new a(t,r),e.push(i.controller)}}),t),e},resetElements:function(){var t=this;ct.each(t.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.reset()}),t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),nn(e),We._invalidate(e),!1!==We.notify(e,"beforeUpdate")){e.tooltip._data=e.data;var n=e.buildOrUpdateControllers();ct.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.buildOrUpdateElements()}),e),e.updateLayout(),e.options.animation&&e.options.animation.duration&&ct.each(n,(function(t){t.reset()})),e.updateDatasets(),e.tooltip.initialize(),e.lastActive=[],We.notify(e,"afterUpdate"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){!1!==We.notify(this,"beforeLayout")&&(we.update(this,this.width,this.height),We.notify(this,"afterScaleUpdate"),We.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==We.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);We.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),n={meta:e,index:t};!1!==We.notify(this,"beforeDatasetUpdate",[n])&&(e.controller.update(),We.notify(this,"afterDatasetUpdate",[n]))},render:function(t){var e=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]});var n=e.options.animation,r=Qe(t.duration,n&&n.duration),i=t.lazy;if(!1!==We.notify(e,"beforeRender")){var o=function(t){We.notify(e,"afterRender"),ct.callback(n&&n.onComplete,[t],e)};if(n&&r){var a=new mt({numSteps:r/16.66,easing:t.easing||n.easing,render:function(t,e){var n=ct.easing.effects[e.easing],r=e.currentStep,i=r/e.numSteps;t.draw(n(i),i,r)},onAnimationProgress:n.onProgress,onAnimationComplete:o});yt.addAnimation(e,a,r,i)}else e.draw(),o(new mt({numSteps:0,chart:e}));return e}},draw:function(t){var e=this;e.clear(),ct.isNullOrUndef(t)&&(t=1),e.transition(t),e.width<=0||e.height<=0||!1!==We.notify(e,"beforeDraw",[t])&&(ct.each(e.boxes,(function(t){t.draw(e.chartArea)}),e),e.drawDatasets(t),e._drawTooltip(t),We.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=0,n=(this.data.datasets||[]).length;e<n;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},drawDatasets:function(t){var e=this;if(!1!==We.notify(e,"beforeDatasetsDraw",[t])){for(var n=(e.data.datasets||[]).length-1;n>=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);We.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this.getDatasetMeta(t),r={meta:n,index:t,easingValue:e};!1!==We.notify(this,"beforeDatasetDraw",[r])&&(n.controller.draw(e),We.notify(this,"afterDatasetDraw",[r]))},_drawTooltip:function(t){var e=this.tooltip,n={tooltip:e,easingValue:t};!1!==We.notify(this,"beforeTooltipDraw",[n])&&(e.draw(),We.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return me.modes.single(this,t)},getElementsAtEvent:function(t){return me.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return me.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var r=me.modes[e];return"function"==typeof r?r(this,t,n):[]},getDatasetAtEvent:function(t){return me.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var n=e._meta[this.id];return n||(n=e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,n=this.data.datasets[t],r=n._meta&&n._meta[e];r&&(r.controller.destroy(),delete n._meta[e])},destroy:function(){var t,e,n=this,r=n.canvas;for(n.stop(),t=0,e=n.data.datasets.length;t<e;++t)n.destroyDatasetMeta(t);r&&(n.unbindEvents(),ct.canvas.clear(n),je.releaseContext(n.ctx),n.canvas=null,n.ctx=null),We.notify(n,"destroy"),delete on.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new Xe({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var t=this,e=t._listeners={},n=function(){t.eventHandler.apply(t,arguments)};ct.each(t.options.events,(function(r){je.addEventListener(t,r,n),e[r]=n})),t.options.responsive&&(n=function(){t.resize()},je.addEventListener(t,"resize",n),e.resize=n)},unbindEvents:function(){var t=this,e=t._listeners;e&&(delete t._listeners,ct.each(e,(function(e,n){je.removeEventListener(t,n,e)})))},updateHoverStyle:function(t,e,n){var r,i,o,a=n?"setHoverStyle":"removeHoverStyle";for(i=0,o=t.length;i<o;++i)(r=t[i])&&this.getDatasetMeta(r._datasetIndex).controller[a](r)},eventHandler:function(t){var e=this,n=e.tooltip;if(!1!==We.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var r=e.handleEvent(t);n&&(r=n._start?n.handleEvent(t):r|n.handleEvent(t)),We.notify(e,"afterEvent",[t]);var i=e._bufferedRequest;return i?e.render(i):r&&!e.animating&&(e.stop(),e.render({duration:e.options.hover.animationDuration,lazy:!0})),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e,n=this,r=n.options||{},i=r.hover;return n.lastActive=n.lastActive||[],"mouseout"===t.type?n.active=[]:n.active=n.getElementsAtEventForMode(t,i.mode,i),ct.callback(r.onHover||r.hover.onHover,[t.native,n.active],n),"mouseup"!==t.type&&"click"!==t.type||r.onClick&&r.onClick.call(n,t.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,i.mode,!1),n.active.length&&i.mode&&n.updateHoverStyle(n.active,i.mode,!0),e=!ct.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,e}}),on.instances={};var an=on;function sn(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function un(t){this.options=t||{}}on.Controller=on,on.types={},ct.configMerge=en,ct.scaleMerge=tn,ct.extend(un.prototype,{formats:sn,parse:sn,format:sn,add:sn,diff:sn,startOf:sn,endOf:sn,_create:function(t){return t}}),un.override=function(t){ct.extend(un.prototype,t)};var ln={_date:un},cn={formatters:{values:function(t){return ct.isArray(t)?t:""+t},linear:function(t,e,n){var r=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&t!==Math.floor(t)&&(r=t-Math.floor(t));var i=ct.log10(Math.abs(r)),o="";if(0!==t)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var a=ct.log10(Math.abs(t));o=t.toExponential(Math.floor(a)-Math.floor(i))}else{var s=-1*Math.floor(i);s=Math.max(Math.min(s,20),0),o=t.toFixed(s)}else o="0";return o},logarithmic:function(t,e,n){var r=t/Math.pow(10,Math.floor(ct.log10(t)));return 0===t?"0":1===r||2===r||5===r||0===e||e===n.length-1?t.toExponential():""}}},hn=ct.valueOrDefault,fn=ct.valueAtIndexOrDefault;function dn(t){var e,n,r=[];for(e=0,n=t.length;e<n;++e)r.push(t[e].label);return r}function pn(t,e,n){return ct.isArray(e)?ct.longestText(t,n,e):t.measureText(e).width}st._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:cn.formatters.values,minor:{},major:{}}});var gn=gt.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var t=this.options.ticks;for(var e in!1===t.minor&&(t.minor={display:!1}),!1===t.major&&(t.major={display:!1}),t)"major"!==e&&"minor"!==e&&(void 0===t.minor[e]&&(t.minor[e]=t[e]),void 0===t.major[e]&&(t.major[e]=t[e]))},beforeUpdate:function(){ct.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var r,i,o,a,s,u,l=this;for(l.beforeUpdate(),l.maxWidth=t,l.maxHeight=e,l.margins=ct.extend({left:0,right:0,top:0,bottom:0},n),l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),s=l.buildTicks()||[],s=l.afterBuildTicks(s)||s,l.beforeTickToLabelConversion(),o=l.convertTicksToLabels(s)||l.ticks,l.afterTickToLabelConversion(),l.ticks=o,r=0,i=o.length;r<i;++r)a=o[r],(u=s[r])?u.label=a:s.push(u={label:a,major:!1});return l._ticks=s,l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l.afterUpdate(),l.minSize},afterUpdate:function(){ct.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){ct.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){ct.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){ct.callback(this.options.beforeDataLimits,[this])},determineDataLimits:ct.noop,afterDataLimits:function(){ct.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){ct.callback(this.options.beforeBuildTicks,[this])},buildTicks:ct.noop,afterBuildTicks:function(t){var e=this;return ct.isArray(t)&&t.length?ct.callback(e.options.afterBuildTicks,[e,t]):(e.ticks=ct.callback(e.options.afterBuildTicks,[e,e.ticks])||e.ticks,t)},beforeTickToLabelConversion:function(){ct.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){ct.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){ct.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,n=t.options.ticks,r=dn(t._ticks),i=ct.options._parseFont(n);e.font=i.string;var o=n.minRotation||0;if(r.length&&t.options.display&&t.isHorizontal())for(var a,s=ct.longestText(e,i.string,r,t.longestTextCache),u=s,l=t.getPixelForTick(1)-t.getPixelForTick(0)-6;u>l&&o<n.maxRotation;){var c=ct.toRadians(o);if(a=Math.cos(c),Math.sin(c)*s>t.maxHeight){o--;break}o++,u=a*s}t.labelRotation=o},afterCalculateTickRotation:function(){ct.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){ct.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},n=dn(t._ticks),r=t.options,i=r.ticks,o=r.scaleLabel,a=r.gridLines,s=t._isVisible(),u=r.position,l=t.isHorizontal(),c=ct.options._parseFont,h=c(i),f=r.gridLines.tickMarkLength;if(e.width=l?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:s&&a.drawTicks?f:0,e.height=l?s&&a.drawTicks?f:0:t.maxHeight,o.display&&s){var d=c(o),p=ct.options.toPadding(o.padding),g=d.lineHeight+p.height;l?e.height+=g:e.width+=g}if(i.display&&s){var v=ct.longestText(t.ctx,h.string,n,t.longestTextCache),m=ct.numberOfLabelLines(n),y=.5*h.size,b=t.options.ticks.padding;if(t._maxLabelLines=m,t.longestLabelWidth=v,l){var x=ct.toRadians(t.labelRotation),_=Math.cos(x),w=Math.sin(x)*v+h.lineHeight*m+y;e.height=Math.min(t.maxHeight,e.height+w+b),t.ctx.font=h.string;var k,S,M=pn(t.ctx,n[0],h.string),C=pn(t.ctx,n[n.length-1],h.string),I=t.getPixelForTick(0)-t.left,A=t.right-t.getPixelForTick(n.length-1);0!==t.labelRotation?(k="bottom"===u?_*M:_*y,S="bottom"===u?_*y:_*C):(k=M/2,S=C/2),t.paddingLeft=Math.max(k-I,0)+3,t.paddingRight=Math.max(S-A,0)+3}else i.mirror?v=0:v+=b+y,e.width=Math.min(t.maxWidth,e.width+v),t.paddingTop=h.size/2,t.paddingBottom=h.size/2}t.handleMargins(),t.width=e.width,t.height=e.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){ct.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(ct.isNullOrUndef(t))return NaN;if(("number"==typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:ct.noop,getPixelForValue:ct.noop,getValueForPixel:ct.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var r=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),i=r*t+e.paddingLeft;n&&(i+=r/2);var o=e.left+i;return o+=e.isFullWidth()?e.margins.left:0}var a=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(a/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft,r=e.left+n;return r+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0},_autoSkip:function(t){var e,n,r=this,i=r.isHorizontal(),o=r.options.ticks.minor,a=t.length,s=!1,u=o.maxTicksLimit,l=r._tickSize()*(a-1),c=i?r.width-(r.paddingLeft+r.paddingRight):r.height-(r.paddingTop+r.PaddingBottom),h=[];for(l>c&&(s=1+Math.floor(l/c)),a>u&&(s=Math.max(s,1+Math.floor(a/u))),e=0;e<a;e++)n=t[e],s>1&&e%s>0&&delete n.label,h.push(n);return h},_tickSize:function(){var t=this,e=t.isHorizontal(),n=t.options.ticks.minor,r=ct.toRadians(t.labelRotation),i=Math.abs(Math.cos(r)),o=Math.abs(Math.sin(r)),a=n.autoSkipPadding||0,s=t.longestLabelWidth+a||0,u=ct.options._parseFont(n),l=t._maxLabelLines*u.lineHeight+a||0;return e?l*i>s*o?s/i:l/o:l*o<s*i?l/i:s/o},_isVisible:function(){var t,e,n,r=this.chart,i=this.options.display;if("auto"!==i)return!!i;for(t=0,e=r.data.datasets.length;t<e;++t)if(r.isDatasetVisible(t)&&((n=r.getDatasetMeta(t)).xAxisID===this.id||n.yAxisID===this.id))return!0;return!1},draw:function(t){var e=this,n=e.options;if(e._isVisible()){var r,i,o,a=e.chart,s=e.ctx,u=st.global.defaultFontColor,l=n.ticks.minor,c=n.ticks.major||l,h=n.gridLines,f=n.scaleLabel,d=n.position,p=0!==e.labelRotation,g=l.mirror,v=e.isHorizontal(),m=ct.options._parseFont,y=l.display&&l.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),b=hn(l.fontColor,u),x=m(l),_=x.lineHeight,w=hn(c.fontColor,u),k=m(c),S=l.padding,M=l.labelOffset,C=h.drawTicks?h.tickMarkLength:0,I=hn(f.fontColor,u),A=m(f),T=ct.options.toPadding(f.padding),P=ct.toRadians(e.labelRotation),E=[],O=h.drawBorder?fn(h.lineWidth,0,0):0,R=ct._alignPixel;if("top"===d?(r=R(a,e.bottom,O),i=e.bottom-C,o=r-O/2):"bottom"===d?(r=R(a,e.top,O),i=r+O/2,o=e.top+C):"left"===d?(r=R(a,e.right,O),i=e.right-C,o=r-O/2):(r=R(a,e.left,O),i=r+O/2,o=e.left+C),ct.each(y,(function(r,s){if(!ct.isNullOrUndef(r.label)){var u,l,c,f,m,y,b,x,w,k,I,A,T,F,D,L,N=r.label;s===e.zeroLineIndex&&n.offset===h.offsetGridLines?(u=h.zeroLineWidth,l=h.zeroLineColor,c=h.zeroLineBorderDash||[],f=h.zeroLineBorderDashOffset||0):(u=fn(h.lineWidth,s),l=fn(h.color,s),c=h.borderDash||[],f=h.borderDashOffset||0);var B=ct.isArray(N)?N.length:1,z=function(t,e,n){var r=t.getPixelForTick(e);return n&&(1===t.getTicks().length?r-=t.isHorizontal()?Math.max(r-t.left,t.right-r):Math.max(r-t.top,t.bottom-r):r-=0===e?(t.getPixelForTick(1)-r)/2:(r-t.getPixelForTick(e-1))/2),r}(e,s,h.offsetGridLines);if(v){var j=C+S;z<e.left-1e-7&&(l="rgba(0,0,0,0)"),m=b=w=I=R(a,z,u),y=i,x=o,T=e.getPixelForTick(s)+M,"top"===d?(k=R(a,t.top,O)+O/2,A=t.bottom,D=((p?1:.5)-B)*_,L=p?"left":"center",F=e.bottom-j):(k=t.top,A=R(a,t.bottom,O)-O/2,D=(p?0:.5)*_,L=p?"right":"center",F=e.top+j)}else{var W=(g?0:C)+S;z<e.top-1e-7&&(l="rgba(0,0,0,0)"),m=i,b=o,y=x=k=A=R(a,z,u),F=e.getPixelForTick(s)+M,D=(1-B)*_/2,"left"===d?(w=R(a,t.left,O)+O/2,I=t.right,L=g?"left":"right",T=e.right-W):(w=t.left,I=R(a,t.right,O)-O/2,L=g?"right":"left",T=e.left+W)}E.push({tx1:m,ty1:y,tx2:b,ty2:x,x1:w,y1:k,x2:I,y2:A,labelX:T,labelY:F,glWidth:u,glColor:l,glBorderDash:c,glBorderDashOffset:f,rotation:-1*P,label:N,major:r.major,textOffset:D,textAlign:L})}})),ct.each(E,(function(t){var e=t.glWidth,n=t.glColor;if(h.display&&e&&n&&(s.save(),s.lineWidth=e,s.strokeStyle=n,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),h.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),h.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),l.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=t.major?k.string:x.string,s.fillStyle=t.major?w:b,s.textBaseline="middle",s.textAlign=t.textAlign;var r=t.label,i=t.textOffset;if(ct.isArray(r))for(var o=0;o<r.length;++o)s.fillText(""+r[o],0,i),i+=_;else s.fillText(r,0,i);s.restore()}})),f.display){var F,D,L=0,N=A.lineHeight/2;if(v)F=e.left+(e.right-e.left)/2,D="bottom"===d?e.bottom-N-T.bottom:e.top+N+T.top;else{var B="left"===d;F=B?e.left+N+T.top:e.right-N-T.top,D=e.top+(e.bottom-e.top)/2,L=B?-.5*Math.PI:.5*Math.PI}s.save(),s.translate(F,D),s.rotate(L),s.textAlign="center",s.textBaseline="middle",s.fillStyle=I,s.font=A.string,s.fillText(f.labelString,0,0),s.restore()}if(O){var z,j,W,V,H=O,U=fn(h.lineWidth,y.length-1,0);v?(z=R(a,e.left,H)-H/2,j=R(a,e.right,U)+U/2,W=V=r):(W=R(a,e.top,H)-H/2,V=R(a,e.bottom,U)+U/2,z=j=r),s.lineWidth=O,s.strokeStyle=fn(h.color,0),s.beginPath(),s.moveTo(z,W),s.lineTo(j,V),s.stroke()}}}}),vn=gn.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,n=e.getLabels();e.minIndex=0,e.maxIndex=n.length-1,void 0!==e.options.ticks.min&&(t=n.indexOf(e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(t=n.indexOf(e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=n[e.minIndex],e.max=n[e.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var n=this,r=n.chart;return r.getDatasetMeta(e).controller._getValueScaleId()===n.id?n.getRightValue(r.data.datasets[e].data[t]):n.ticks[t-n.minIndex]},getPixelForValue:function(t,e){var n,r=this,i=r.options.offset,o=Math.max(r.maxIndex+1-r.minIndex-(i?0:1),1);if(null!=t&&(n=r.isHorizontal()?t.x:t.y),void 0!==n||void 0!==t&&isNaN(e)){t=n||t;var a=r.getLabels().indexOf(t);e=-1!==a?a:e}if(r.isHorizontal()){var s=r.width/o,u=s*(e-r.minIndex);return i&&(u+=s/2),r.left+u}var l=r.height/o,c=l*(e-r.minIndex);return i&&(c+=l/2),r.top+c},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this,n=e.options.offset,r=Math.max(e._ticks.length-(n?0:1),1),i=e.isHorizontal(),o=(i?e.width:e.height)/r;return t-=i?e.left:e.top,n&&(t-=o/2),(t<=0?0:Math.round(t/o))+e.minIndex},getBasePixel:function(){return this.bottom}}),mn={position:"bottom"};vn._defaults=mn;var yn=ct.noop,bn=ct.isNullOrUndef,xn=gn.extend({getRightValue:function(t){return"string"==typeof t?+t:gn.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=ct.sign(t.min),r=ct.sign(t.max);n<0&&r<0?t.max=0:n>0&&r>0&&(t.min=0)}var i=void 0!==e.min||void 0!==e.suggestedMin,o=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),i!==o&&t.min>=t.max&&(i?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this.options.ticks,n=e.stepSize,r=e.maxTicksLimit;return n?t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(t=this._computeTickLimit(),r=r||11),r&&(t=Math.min(r,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:yn,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,precision:e.precision,stepSize:ct.valueOrDefault(e.fixedStepSize,e.stepSize)},i=t.ticks=function(t,e){var n,r,i,o,a=[],s=t.stepSize,u=s||1,l=t.maxTicks-1,c=t.min,h=t.max,f=t.precision,d=e.min,p=e.max,g=ct.niceNum((p-d)/l/u)*u;if(g<1e-14&&bn(c)&&bn(h))return[d,p];(o=Math.ceil(p/g)-Math.floor(d/g))>l&&(g=ct.niceNum(o*g/l/u)*u),s||bn(f)?n=Math.pow(10,ct._decimalPlaces(g)):(n=Math.pow(10,f),g=Math.ceil(g*n)/n),r=Math.floor(d/g)*g,i=Math.ceil(p/g)*g,s&&(!bn(c)&&ct.almostWhole(c/g,g/1e3)&&(r=c),!bn(h)&&ct.almostWhole(h/g,g/1e3)&&(i=h)),o=(i-r)/g,o=ct.almostEquals(o,Math.round(o),g/1e3)?Math.round(o):Math.ceil(o),r=Math.round(r*n)/n,i=Math.round(i*n)/n,a.push(bn(c)?r:c);for(var v=1;v<o;++v)a.push(Math.round((r+v*g)*n)/n);return a.push(bn(h)?i:h),a}(r,t);t.handleDirectionalChanges(),t.max=ct.max(i),t.min=ct.min(i),e.reverse?(i.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),gn.prototype.convertTicksToLabels.call(t)}}),_n={position:"left",ticks:{callback:cn.formatters.linear}},wn=xn.extend({determineDataLimits:function(){var t=this,e=t.options,n=t.chart,r=n.data.datasets,i=t.isHorizontal();function o(e){return i?e.xAxisID===t.id:e.yAxisID===t.id}t.min=null,t.max=null;var a=e.stacked;if(void 0===a&&ct.each(r,(function(t,e){if(!a){var r=n.getDatasetMeta(e);n.isDatasetVisible(e)&&o(r)&&void 0!==r.stack&&(a=!0)}})),e.stacked||a){var s={};ct.each(r,(function(r,i){var a=n.getDatasetMeta(i),u=[a.type,void 0===e.stacked&&void 0===a.stack?i:"",a.stack].join(".");void 0===s[u]&&(s[u]={positiveValues:[],negativeValues:[]});var l=s[u].positiveValues,c=s[u].negativeValues;n.isDatasetVisible(i)&&o(a)&&ct.each(r.data,(function(n,r){var i=+t.getRightValue(n);isNaN(i)||a.data[r].hidden||(l[r]=l[r]||0,c[r]=c[r]||0,e.relativePoints?l[r]=100:i<0?c[r]+=i:l[r]+=i)}))})),ct.each(s,(function(e){var n=e.positiveValues.concat(e.negativeValues),r=ct.min(n),i=ct.max(n);t.min=null===t.min?r:Math.min(t.min,r),t.max=null===t.max?i:Math.max(t.max,i)}))}else ct.each(r,(function(e,r){var i=n.getDatasetMeta(r);n.isDatasetVisible(r)&&o(i)&&ct.each(e.data,(function(e,n){var r=+t.getRightValue(e);isNaN(r)||i.data[n].hidden||(null===t.min?t.min=r:r<t.min&&(t.min=r),null===t.max?t.max=r:r>t.max&&(t.max=r))}))}));t.min=isFinite(t.min)&&!isNaN(t.min)?t.min:0,t.max=isFinite(t.max)&&!isNaN(t.max)?t.max:1,this.handleTickRangeOptions()},_computeTickLimit:function(){var t;return this.isHorizontal()?Math.ceil(this.width/40):(t=ct.options._parseFont(this.options.ticks),Math.ceil(this.height/t.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this,n=e.start,r=+e.getRightValue(t),i=e.end-n;return e.isHorizontal()?e.left+e.width/i*(r-n):e.bottom-e.height/i*(r-n)},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),r=n?e.width:e.height,i=(n?t-e.left:e.bottom-t)/r;return e.start+(e.end-e.start)*i},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}}),kn=_n;wn._defaults=kn;var Sn=ct.valueOrDefault,Mn={position:"left",ticks:{callback:cn.formatters.logarithmic}};function Cn(t,e){return ct.isFinite(t)&&t>=0?t:e}var In=gn.extend({determineDataLimits:function(){var t=this,e=t.options,n=t.chart,r=n.data.datasets,i=t.isHorizontal();function o(e){return i?e.xAxisID===t.id:e.yAxisID===t.id}t.min=null,t.max=null,t.minNotZero=null;var a=e.stacked;if(void 0===a&&ct.each(r,(function(t,e){if(!a){var r=n.getDatasetMeta(e);n.isDatasetVisible(e)&&o(r)&&void 0!==r.stack&&(a=!0)}})),e.stacked||a){var s={};ct.each(r,(function(r,i){var a=n.getDatasetMeta(i),u=[a.type,void 0===e.stacked&&void 0===a.stack?i:"",a.stack].join(".");n.isDatasetVisible(i)&&o(a)&&(void 0===s[u]&&(s[u]=[]),ct.each(r.data,(function(e,n){var r=s[u],i=+t.getRightValue(e);isNaN(i)||a.data[n].hidden||i<0||(r[n]=r[n]||0,r[n]+=i)})))})),ct.each(s,(function(e){if(e.length>0){var n=ct.min(e),r=ct.max(e);t.min=null===t.min?n:Math.min(t.min,n),t.max=null===t.max?r:Math.max(t.max,r)}}))}else ct.each(r,(function(e,r){var i=n.getDatasetMeta(r);n.isDatasetVisible(r)&&o(i)&&ct.each(e.data,(function(e,n){var r=+t.getRightValue(e);isNaN(r)||i.data[n].hidden||r<0||(null===t.min?t.min=r:r<t.min&&(t.min=r),null===t.max?t.max=r:r>t.max&&(t.max=r),0!==r&&(null===t.minNotZero||r<t.minNotZero)&&(t.minNotZero=r))}))}));this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;t.min=Cn(e.min,t.min),t.max=Cn(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(ct.log10(t.min))-1),t.max=Math.pow(10,Math.floor(ct.log10(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(ct.log10(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(ct.log10(t.min))+1):10),null===t.minNotZero&&(t.min>0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(ct.log10(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),r={min:Cn(e.min),max:Cn(e.max)},i=t.ticks=function(t,e){var n,r,i=[],o=Sn(t.min,Math.pow(10,Math.floor(ct.log10(e.min)))),a=Math.floor(ct.log10(e.max)),s=Math.ceil(e.max/Math.pow(10,a));0===o?(n=Math.floor(ct.log10(e.minNotZero)),r=Math.floor(e.minNotZero/Math.pow(10,n)),i.push(o),o=r*Math.pow(10,n)):(n=Math.floor(ct.log10(o)),r=Math.floor(o/Math.pow(10,n)));var u=n<0?Math.pow(10,Math.abs(n)):1;do{i.push(o),10==++r&&(r=1,u=++n>=0?1:u),o=Math.round(r*Math.pow(10,n)*u)/u}while(n<a||n===a&&r<s);var l=Sn(t.max,o);return i.push(l),i}(r,t);t.max=ct.max(i),t.min=ct.min(i),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),gn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},_getFirstTickValue:function(t){var e=Math.floor(ct.log10(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},getPixelForValue:function(t){var e,n,r,i,o,a=this,s=a.options.ticks,u=s.reverse,l=ct.log10,c=a._getFirstTickValue(a.minNotZero),h=0;return t=+a.getRightValue(t),u?(r=a.end,i=a.start,o=-1):(r=a.start,i=a.end,o=1),a.isHorizontal()?(e=a.width,n=u?a.right:a.left):(e=a.height,o*=-1,n=u?a.top:a.bottom),t!==r&&(0===r&&(e-=h=Sn(s.fontSize,st.global.defaultFontSize),r=c),0!==t&&(h+=e/(l(i)-l(r))*(l(t)-l(r))),n+=o*h),n},getValueForPixel:function(t){var e,n,r,i,o=this,a=o.options.ticks,s=a.reverse,u=ct.log10,l=o._getFirstTickValue(o.minNotZero);if(s?(n=o.end,r=o.start):(n=o.start,r=o.end),o.isHorizontal()?(e=o.width,i=s?o.right-t:t-o.left):(e=o.height,i=s?t-o.top:o.bottom-t),i!==n){if(0===n){var c=Sn(a.fontSize,st.global.defaultFontSize);i-=c,e-=c,n=l}i*=u(r)-u(n),i/=e,i=Math.pow(10,u(n)+i)}return i}}),An=Mn;In._defaults=An;var Tn=ct.valueOrDefault,Pn=ct.valueAtIndexOrDefault,En=ct.options.resolve,On={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:cn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function Rn(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function Fn(t){var e=t.ticks;return e.display&&t.display?Tn(e.fontSize,st.global.defaultFontSize)+2*e.backdropPaddingY:0}function Dn(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:t<r||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function Ln(t){return 0===t||180===t?"center":t<180?"left":"right"}function Nn(t,e,n,r){var i,o,a=n.y+r/2;if(ct.isArray(e))for(i=0,o=e.length;i<o;++i)t.fillText(e[i],n.x,a),a+=r;else t.fillText(e,n.x,a)}function Bn(t,e,n){90===t||270===t?n.y-=e.h/2:(t>270||t<90)&&(n.y-=e.h)}function zn(t){return ct.isNumber(t)?t:0}var jn=xn.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=Fn(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2},determineDataLimits:function(){var t=this,e=t.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;ct.each(e.data.datasets,(function(i,o){if(e.isDatasetVisible(o)){var a=e.getDatasetMeta(o);ct.each(i.data,(function(e,i){var o=+t.getRightValue(e);isNaN(o)||a.data[i].hidden||(n=Math.min(o,n),r=Math.max(o,r))}))}})),t.min=n===Number.POSITIVE_INFINITY?0:n,t.max=r===Number.NEGATIVE_INFINITY?0:r,t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Fn(this.options))},convertTicksToLabels:function(){var t=this;xn.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this.options;t.display&&t.pointLabels.display?function(t){var e,n,r,i=ct.options._parseFont(t.options.pointLabels),o={l:0,r:t.width,t:0,b:t.height-t.paddingTop},a={};t.ctx.font=i.string,t._pointLabelSizes=[];var s,u,l,c=Rn(t);for(e=0;e<c;e++){r=t.getPointPosition(e,t.drawingArea+5),s=t.ctx,u=i.lineHeight,l=t.pointLabels[e]||"",n=ct.isArray(l)?{w:ct.longestText(s,s.font,l),h:l.length*u}:{w:s.measureText(l).width,h:u},t._pointLabelSizes[e]=n;var h=t.getIndexAngle(e),f=ct.toDegrees(h)%360,d=Dn(f,r.x,n.w,0,180),p=Dn(f,r.y,n.h,90,270);d.start<o.l&&(o.l=d.start,a.l=h),d.end>o.r&&(o.r=d.end,a.r=h),p.start<o.t&&(o.t=p.start,a.t=h),p.end>o.b&&(o.b=p.end,a.b=h)}t.setReductions(t.drawingArea,o,a)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(t,e,n){var r=this,i=e.l/Math.sin(n.l),o=Math.max(e.r-r.width,0)/Math.sin(n.r),a=-e.t/Math.cos(n.t),s=-Math.max(e.b-(r.height-r.paddingTop),0)/Math.cos(n.b);i=zn(i),o=zn(o),a=zn(a),s=zn(s),r.drawingArea=Math.min(Math.floor(t-(i+o)/2),Math.floor(t-(a+s)/2)),r.setCenterPoint(i,o,a,s)},setCenterPoint:function(t,e,n,r){var i=this,o=i.width-e-i.drawingArea,a=t+i.drawingArea,s=n+i.drawingArea,u=i.height-i.paddingTop-r-i.drawingArea;i.xCenter=Math.floor((a+o)/2+i.left),i.yCenter=Math.floor((s+u)/2+i.top+i.paddingTop)},getIndexAngle:function(t){return t*(2*Math.PI/Rn(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,r=e.ticks;if(e.display){var i=t.ctx,o=this.getIndexAngle(0),a=ct.options._parseFont(r);(e.angleLines.display||e.pointLabels.display)&&function(t){var e=t.ctx,n=t.options,r=n.angleLines,i=n.gridLines,o=n.pointLabels,a=Tn(r.lineWidth,i.lineWidth),s=Tn(r.color,i.color),u=Fn(n);e.save(),e.lineWidth=a,e.strokeStyle=s,e.setLineDash&&(e.setLineDash(En([r.borderDash,i.borderDash,[]])),e.lineDashOffset=En([r.borderDashOffset,i.borderDashOffset,0]));var l=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),c=ct.options._parseFont(o);e.font=c.string,e.textBaseline="middle";for(var h=Rn(t)-1;h>=0;h--){if(r.display&&a&&s){var f=t.getPointPosition(h,l);e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(f.x,f.y),e.stroke()}if(o.display){var d=0===h?u/2:0,p=t.getPointPosition(h,l+d+5),g=Pn(o.fontColor,h,st.global.defaultFontColor);e.fillStyle=g;var v=t.getIndexAngle(h),m=ct.toDegrees(v);e.textAlign=Ln(m),Bn(m,t._pointLabelSizes[h],p),Nn(e,t.pointLabels[h]||"",p,c.lineHeight)}}e.restore()}(t),ct.each(t.ticks,(function(e,s){if(s>0||r.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]);if(n.display&&0!==s&&function(t,e,n,r){var i,o=t.ctx,a=e.circular,s=Rn(t),u=Pn(e.color,r-1),l=Pn(e.lineWidth,r-1);if((a||s)&&u&&l){if(o.save(),o.strokeStyle=u,o.lineWidth=l,o.setLineDash&&(o.setLineDash(e.borderDash||[]),o.lineDashOffset=e.borderDashOffset||0),o.beginPath(),a)o.arc(t.xCenter,t.yCenter,n,0,2*Math.PI);else{i=t.getPointPosition(0,n),o.moveTo(i.x,i.y);for(var c=1;c<s;c++)i=t.getPointPosition(c,n),o.lineTo(i.x,i.y)}o.closePath(),o.stroke(),o.restore()}}(t,n,u,s),r.display){var l=Tn(r.fontColor,st.global.defaultFontColor);if(i.font=a.string,i.save(),i.translate(t.xCenter,t.yCenter),i.rotate(o),r.showLabelBackdrop){var c=i.measureText(e).width;i.fillStyle=r.backdropColor,i.fillRect(-c/2-r.backdropPaddingX,-u-a.size/2-r.backdropPaddingY,c+2*r.backdropPaddingX,a.size+2*r.backdropPaddingY)}i.textAlign="center",i.textBaseline="middle",i.fillStyle=l,i.fillText(e,0,-u),i.restore()}}}))}}}),Wn=On;jn._defaults=Wn;var Vn=ct.valueOrDefault,Hn=Number.MIN_SAFE_INTEGER||-9007199254740991,Un=Number.MAX_SAFE_INTEGER||9007199254740991,Jn={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},qn=Object.keys(Jn);function Yn(t,e){return t-e}function Gn(t){var e,n,r,i={},o=[];for(e=0,n=t.length;e<n;++e)i[r=t[e]]||(i[r]=!0,o.push(r));return o}function $n(t,e,n,r){var i=function(t,e,n){for(var r,i,o,a=0,s=t.length-1;a>=0&&a<=s;){if(i=t[(r=a+s>>1)-1]||null,o=t[r],!i)return{lo:null,hi:o};if(o[e]<n)a=r+1;else{if(!(i[e]>n))return{lo:i,hi:o};s=r-1}}return{lo:o,hi:null}}(t,e,n),o=i.lo?i.hi?i.lo:t[t.length-2]:t[0],a=i.lo?i.hi?i.hi:t[t.length-1]:t[1],s=a[e]-o[e],u=s?(n-o[e])/s:0,l=(a[r]-o[r])*u;return o[r]+l}function Kn(t,e){var n=t._adapter,r=t.options.time,i=r.parser,o=i||r.format,a=e;return"function"==typeof i&&(a=i(a)),ct.isFinite(a)||(a="string"==typeof o?n.parse(a,o):n.parse(a)),null!==a?+a:(i||"function"!=typeof o||(a=o(e),ct.isFinite(a)||(a=n.parse(a))),a)}function Zn(t,e){if(ct.isNullOrUndef(e))return null;var n=t.options.time,r=Kn(t,t.getRightValue(e));return null===r?r:(n.round&&(r=+t._adapter.startOf(r,n.round)),r)}function Xn(t){for(var e=qn.indexOf(t)+1,n=qn.length;e<n;++e)if(Jn[qn[e]].common)return qn[e]}function Qn(t,e,n,r){var i,o=t._adapter,a=t.options,s=a.time,u=s.unit||function(t,e,n,r){var i,o,a,s=qn.length;for(i=qn.indexOf(t);i<s-1;++i)if(a=(o=Jn[qn[i]]).steps?o.steps[o.steps.length-1]:Un,o.common&&Math.ceil((n-e)/(a*o.size))<=r)return qn[i];return qn[s-1]}(s.minUnit,e,n,r),l=Xn(u),c=Vn(s.stepSize,s.unitStepSize),h="week"===u&&s.isoWeekday,f=a.ticks.major.enabled,d=Jn[u],p=e,g=n,v=[];for(c||(c=function(t,e,n,r){var i,o,a,s=e-t,u=Jn[n],l=u.size,c=u.steps;if(!c)return Math.ceil(s/(r*l));for(i=0,o=c.length;i<o&&(a=c[i],!(Math.ceil(s/(l*a))<=r));++i);return a}(e,n,u,r)),h&&(p=+o.startOf(p,"isoWeek",h),g=+o.startOf(g,"isoWeek",h)),p=+o.startOf(p,h?"day":u),(g=+o.startOf(g,h?"day":u))<n&&(g=+o.add(g,1,u)),i=p,f&&l&&!h&&!s.round&&(i=+o.startOf(i,l),i=+o.add(i,~~((p-i)/(d.size*c))*c,u));i<g;i=+o.add(i,c,u))v.push(+i);return v.push(+i),v}var tr=gn.extend({initialize:function(){this.mergeTicksOptions(),gn.prototype.initialize.call(this)},update:function(){var t=this,e=t.options,n=e.time||(e.time={}),r=t._adapter=new ln._date(e.adapters.date);return n.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),ct.mergeIf(n.displayFormats,r.formats()),gn.prototype.update.apply(t,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),gn.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var t,e,n,r,i,o,a=this,s=a.chart,u=a._adapter,l=a.options.time,c=l.unit||"day",h=Un,f=Hn,d=[],p=[],g=[],v=s.data.labels||[];for(t=0,n=v.length;t<n;++t)g.push(Zn(a,v[t]));for(t=0,n=(s.data.datasets||[]).length;t<n;++t)if(s.isDatasetVisible(t))if(i=s.data.datasets[t].data,ct.isObject(i[0]))for(p[t]=[],e=0,r=i.length;e<r;++e)o=Zn(a,i[e]),d.push(o),p[t][e]=o;else{for(e=0,r=g.length;e<r;++e)d.push(g[e]);p[t]=g.slice(0)}else p[t]=[];g.length&&(g=Gn(g).sort(Yn),h=Math.min(h,g[0]),f=Math.max(f,g[g.length-1])),d.length&&(d=Gn(d).sort(Yn),h=Math.min(h,d[0]),f=Math.max(f,d[d.length-1])),h=Zn(a,l.min)||h,f=Zn(a,l.max)||f,h=h===Un?+u.startOf(Date.now(),c):h,f=f===Hn?+u.endOf(Date.now(),c)+1:f,a.min=Math.min(h,f),a.max=Math.max(h+1,f),a._horizontal=a.isHorizontal(),a._table=[],a._timestamps={data:d,datasets:p,labels:g}},buildTicks:function(){var t,e,n,r=this,i=r.min,o=r.max,a=r.options,s=a.time,u=[],l=[];switch(a.ticks.source){case"data":u=r._timestamps.data;break;case"labels":u=r._timestamps.labels;break;case"auto":default:u=Qn(r,i,o,r.getLabelCapacity(i))}for("ticks"===a.bounds&&u.length&&(i=u[0],o=u[u.length-1]),i=Zn(r,s.min)||i,o=Zn(r,s.max)||o,t=0,e=u.length;t<e;++t)(n=u[t])>=i&&n<=o&&l.push(n);return r.min=i,r.max=o,r._unit=s.unit||function(t,e,n,r,i){var o,a;for(o=qn.length-1;o>=qn.indexOf(n);o--)if(a=qn[o],Jn[a].common&&t._adapter.diff(i,r,a)>=e.length)return a;return qn[n?qn.indexOf(n):0]}(r,l,s.minUnit,r.min,r.max),r._majorUnit=Xn(r._unit),r._table=function(t,e,n,r){if("linear"===r||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var i,o,a,s,u,l=[],c=[e];for(i=0,o=t.length;i<o;++i)(s=t[i])>e&&s<n&&c.push(s);for(c.push(n),i=0,o=c.length;i<o;++i)u=c[i+1],a=c[i-1],s=c[i],void 0!==a&&void 0!==u&&Math.round((u+a)/2)===s||l.push({time:s,pos:i/(o-1)});return l}(r._timestamps.data,i,o,a.distribution),r._offsets=function(t,e,n,r,i){var o,a,s=0,u=0;return i.offset&&e.length&&(i.time.min||(o=$n(t,"time",e[0],"pos"),s=1===e.length?1-o:($n(t,"time",e[1],"pos")-o)/2),i.time.max||(a=$n(t,"time",e[e.length-1],"pos"),u=1===e.length?a:(a-$n(t,"time",e[e.length-2],"pos"))/2)),{start:s,end:u}}(r._table,l,0,0,a),a.ticks.reverse&&l.reverse(),function(t,e,n){var r,i,o,a,s=[];for(r=0,i=e.length;r<i;++r)o=e[r],a=!!n&&o===+t._adapter.startOf(o,n),s.push({value:o,major:a});return s}(r,l,r._majorUnit)},getLabelForIndex:function(t,e){var n=this,r=n._adapter,i=n.chart.data,o=n.options.time,a=i.labels&&t<i.labels.length?i.labels[t]:"",s=i.datasets[e].data[t];return ct.isObject(s)&&(a=n.getRightValue(s)),o.tooltipFormat?r.format(Kn(n,a),o.tooltipFormat):"string"==typeof a?a:r.format(Kn(n,a),o.displayFormats.datetime)},tickFormatFunction:function(t,e,n,r){var i=this._adapter,o=this.options,a=o.time.displayFormats,s=a[this._unit],u=this._majorUnit,l=a[u],c=+i.startOf(t,u),h=o.ticks.major,f=h.enabled&&u&&l&&t===c,d=i.format(t,r||(f?l:s)),p=f?h:o.ticks.minor,g=Vn(p.callback,p.userCallback);return g?g(d,e,n):d},convertTicksToLabels:function(t){var e,n,r=[];for(e=0,n=t.length;e<n;++e)r.push(this.tickFormatFunction(t[e].value,e,t));return r},getPixelForOffset:function(t){var e=this,n=e.options.ticks.reverse,r=e._horizontal?e.width:e.height,i=e._horizontal?n?e.right:e.left:n?e.bottom:e.top,o=$n(e._table,"time",t,"pos"),a=r*(e._offsets.start+o)/(e._offsets.start+1+e._offsets.end);return n?i-a:i+a},getPixelForValue:function(t,e,n){var r=null;if(void 0!==e&&void 0!==n&&(r=this._timestamps.datasets[n][e]),null===r&&(r=Zn(this,t)),null!==r)return this.getPixelForOffset(r)},getPixelForTick:function(t){var e=this.getTicks();return t>=0&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,n=e._horizontal?e.width:e.height,r=e._horizontal?e.left:e.top,i=(n?(t-r)/n:0)*(e._offsets.start+1+e._offsets.start)-e._offsets.end,o=$n(e._table,"pos",i,"time");return e._adapter._create(o)},getLabelWidth:function(t){var e=this.options.ticks,n=this.ctx.measureText(t).width,r=ct.toRadians(e.maxRotation),i=Math.cos(r),o=Math.sin(r);return n*i+Vn(e.fontSize,st.global.defaultFontSize)*o},getLabelCapacity:function(t){var e=this,n=e.options.time.displayFormats.millisecond,r=e.tickFormatFunction(t,0,[],n),i=e.getLabelWidth(r),o=e.isHorizontal()?e.width:e.height,a=Math.floor(o/i);return a>0?a:1}}),er={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};tr._defaults=er;var nr={category:vn,linear:wn,logarithmic:In,radialLinear:jn,time:tr},rr={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"};ln._date.override("function"==typeof t?{_id:"moment",formats:function(){return rr},parse:function(e,n){return"string"==typeof e&&"string"==typeof n?e=t(e,n):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,n){return t(e).format(n)},add:function(e,n,r){return t(e).add(n,r).valueOf()},diff:function(e,n,r){return t.duration(t(e).diff(t(n))).as(r)},startOf:function(e,n,r){return e=t(e),"isoWeek"===n?e.isoWeekday(r).valueOf():e.startOf(n).valueOf()},endOf:function(e,n){return t(e).endOf(n).valueOf()},_create:function(e){return t(e)}}:{}),st._set("global",{plugins:{filler:{propagate:!0}}});var ir={dataset:function(t){var e=t.fill,n=t.chart,r=n.getDatasetMeta(e),i=r&&n.isDatasetVisible(e)&&r.dataset._children||[],o=i.length||0;return o?function(t,e){return e<o&&i[e]._view||null}:null},boundary:function(t){var e=t.boundary,n=e?e.x:null,r=e?e.y:null;return function(t){return{x:null===n?t.x:n,y:null===r?t.y:r}}}};function or(t,e,n){var r,i=t._model||{},o=i.fill;if(void 0===o&&(o=!!i.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(r=parseFloat(o,10),isFinite(r)&&Math.floor(r)===r)return"-"!==o[0]&&"+"!==o[0]||(r=e+r),!(r===e||r<0||r>=n)&&r;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 ar(t){var e,n=t.el._model||{},r=t.el._scale||{},i=t.fill,o=null;if(isFinite(i))return null;if("start"===i?o=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===i?o=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:r.getBasePosition?o=r.getBasePosition():r.getBasePixel&&(o=r.getBasePixel()),null!=o){if(void 0!==o.x&&void 0!==o.y)return o;if(ct.isFinite(o))return{x:(e=r.isHorizontal())?o:null,y:e?null:o}}return null}function sr(t,e,n){var r,i=t[e].fill,o=[e];if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!isFinite(i))return i;if(!(r=t[i]))return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function ur(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),ir[n](t))}function lr(t){return t&&!t.skip}function cr(t,e,n,r,i){var o;if(r&&i){for(t.moveTo(e[0].x,e[0].y),o=1;o<r;++o)ct.canvas.lineTo(t,e[o-1],e[o]);for(t.lineTo(n[i-1].x,n[i-1].y),o=i-1;o>0;--o)ct.canvas.lineTo(t,n[o],n[o-1],!0)}}var hr={id:"filler",afterDatasetsUpdate:function(t,e){var n,r,i,o,a=(t.data.datasets||[]).length,s=e.propagate,u=[];for(r=0;r<a;++r)o=null,(i=(n=t.getDatasetMeta(r)).dataset)&&i._model&&i instanceof zt.Line&&(o={visible:t.isDatasetVisible(r),fill:or(i,r,a),chart:t,el:i}),n.$filler=o,u.push(o);for(r=0;r<a;++r)(o=u[r])&&(o.fill=sr(u,r,s),o.boundary=ar(o),o.mapper=ur(o))},beforeDatasetDraw:function(t,e){var n=e.meta.$filler;if(n){var r=t.ctx,i=n.el,o=i._view,a=i._children||[],s=n.mapper,u=o.backgroundColor||st.global.defaultColor;s&&u&&a.length&&(ct.canvas.clipArea(r,t.chartArea),function(t,e,n,r,i,o){var a,s,u,l,c,h,f,d=e.length,p=r.spanGaps,g=[],v=[],m=0,y=0;for(t.beginPath(),a=0,s=d+!!o;a<s;++a)c=n(l=e[u=a%d]._view,u,r),h=lr(l),f=lr(c),h&&f?(m=g.push(l),y=v.push(c)):m&&y&&(p?(h&&g.push(l),f&&v.push(c)):(cr(t,g,v,m,y),m=y=0,g=[],v=[]));cr(t,g,v,m,y),t.closePath(),t.fillStyle=i,t.fill()}(r,a,s,o,u,i._loop),ct.canvas.unclipArea(r))}}},fr=ct.noop,dr=ct.valueOrDefault;function pr(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}st._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,r=this.chart,i=r.getDatasetMeta(n);i.hidden=null===i.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data;return ct.isArray(e.datasets)?e.datasets.map((function(e,n){return{text:e.label,fillStyle:ct.isArray(e.backgroundColor)?e.backgroundColor[0]:e.backgroundColor,hidden:!t.isDatasetVisible(n),lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:e.borderWidth,strokeStyle:e.borderColor,pointStyle:e.pointStyle,datasetIndex:n}}),this):[]}}},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var n=0;n<t.data.datasets.length;n++)e.push('<li><span style="background-color:'+t.data.datasets[n].backgroundColor+'"></span>'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("</li>");return e.push("</ul>"),e.join("")}});var gr=gt.extend({initialize:function(t){ct.extend(this,t),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:fr,update:function(t,e,n){var r=this;return r.beforeUpdate(),r.maxWidth=t,r.maxHeight=e,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:fr,beforeSetDimensions:fr,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:fr,beforeBuildLabels:fr,buildLabels:function(){var t=this,e=t.options.labels||{},n=ct.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter((function(n){return e.filter(n,t.chart.data)}))),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:fr,beforeFit:fr,fit:function(){var t=this,e=t.options,n=e.labels,r=e.display,i=t.ctx,o=ct.options._parseFont(n),a=o.size,s=t.legendHitBoxes=[],u=t.minSize,l=t.isHorizontal();if(l?(u.width=t.maxWidth,u.height=r?10:0):(u.width=r?10:0,u.height=t.maxHeight),r)if(i.font=o.string,l){var c=t.lineWidths=[0],h=0;i.textAlign="left",i.textBaseline="top",ct.each(t.legendItems,(function(t,e){var r=pr(n,a)+a/2+i.measureText(t.text).width;(0===e||c[c.length-1]+r+n.padding>u.width)&&(h+=a+n.padding,c[c.length-(e>0?0:1)]=n.padding),s[e]={left:0,top:0,width:r,height:a},c[c.length-1]+=r+n.padding})),u.height+=h}else{var f=n.padding,d=t.columnWidths=[],p=n.padding,g=0,v=0,m=a+f;ct.each(t.legendItems,(function(t,e){var r=pr(n,a)+a/2+i.measureText(t.text).width;e>0&&v+m>u.height-f&&(p+=g+n.padding,d.push(g),g=0,v=0),g=Math.max(g,r),v+=m,s[e]={left:0,top:0,width:r,height:a}})),p+=g,d.push(g),u.width+=p}t.width=u.width,t.height=u.height},afterFit:fr,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,n=e.labels,r=st.global,i=r.defaultColor,o=r.elements.line,a=t.width,s=t.lineWidths;if(e.display){var u,l=t.ctx,c=dr(n.fontColor,r.defaultFontColor),h=ct.options._parseFont(n),f=h.size;l.textAlign="left",l.textBaseline="middle",l.lineWidth=.5,l.strokeStyle=c,l.fillStyle=c,l.font=h.string;var d=pr(n,f),p=t.legendHitBoxes,g=t.isHorizontal();u=g?{x:t.left+(a-s[0])/2+n.padding,y:t.top+n.padding,line:0}:{x:t.left+n.padding,y:t.top+n.padding,line:0};var v=f+n.padding;ct.each(t.legendItems,(function(r,c){var h=l.measureText(r.text).width,m=d+f/2+h,y=u.x,b=u.y;g?c>0&&y+m+n.padding>t.left+t.minSize.width&&(b=u.y+=v,u.line++,y=u.x=t.left+(a-s[u.line])/2+n.padding):c>0&&b+v>t.top+t.minSize.height&&(y=u.x=y+t.columnWidths[u.line]+n.padding,b=u.y=t.top+n.padding,u.line++),function(t,n,r){if(!(isNaN(d)||d<=0)){l.save();var a=dr(r.lineWidth,o.borderWidth);if(l.fillStyle=dr(r.fillStyle,i),l.lineCap=dr(r.lineCap,o.borderCapStyle),l.lineDashOffset=dr(r.lineDashOffset,o.borderDashOffset),l.lineJoin=dr(r.lineJoin,o.borderJoinStyle),l.lineWidth=a,l.strokeStyle=dr(r.strokeStyle,i),l.setLineDash&&l.setLineDash(dr(r.lineDash,o.borderDash)),e.labels&&e.labels.usePointStyle){var s=d*Math.SQRT2/2,u=t+d/2,c=n+f/2;ct.canvas.drawPoint(l,r.pointStyle,s,u,c)}else 0!==a&&l.strokeRect(t,n,d,f),l.fillRect(t,n,d,f);l.restore()}}(y,b,r),p[c].left=y,p[c].top=b,function(t,e,n,r){var i=f/2,o=d+i+t,a=e+i;l.fillText(n.text,o,a),n.hidden&&(l.beginPath(),l.lineWidth=2,l.moveTo(o,a),l.lineTo(o+r,a),l.stroke())}(y,b,r,h),g?u.x+=m+n.padding:u.y+=v}))}},_getLegendItemAt:function(t,e){var n,r,i,o=this;if(t>=o.left&&t<=o.right&&e>=o.top&&e<=o.bottom)for(i=o.legendHitBoxes,n=0;n<i.length;++n)if(t>=(r=i[n]).left&&t<=r.left+r.width&&e>=r.top&&e<=r.top+r.height)return o.legendItems[n];return null},handleEvent:function(t){var e,n=this,r=n.options,i="mouseup"===t.type?"click":t.type;if("mousemove"===i){if(!r.onHover&&!r.onLeave)return}else{if("click"!==i)return;if(!r.onClick)return}e=n._getLegendItemAt(t.x,t.y),"click"===i?e&&r.onClick&&r.onClick.call(n,t.native,e):(r.onLeave&&e!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,t.native,n._hoveredItem),n._hoveredItem=e),r.onHover&&e&&r.onHover.call(n,t.native,e))}});function vr(t,e){var n=new gr({ctx:t.ctx,options:e,chart:t});we.configure(t,n,e),we.addBox(t,n),t.legend=n}var mr={id:"legend",_element:gr,beforeInit:function(t){var e=t.options.legend;e&&vr(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(ct.mergeIf(e,st.global.legend),n?(we.configure(t,n,e),n.options=e):vr(t,e)):n&&(we.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}},yr=ct.noop;st._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var br=gt.extend({initialize:function(t){ct.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:yr,update:function(t,e,n){var r=this;return r.beforeUpdate(),r.maxWidth=t,r.maxHeight=e,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:yr,beforeSetDimensions:yr,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:yr,beforeBuildLabels:yr,buildLabels:yr,afterBuildLabels:yr,beforeFit:yr,fit:function(){var t=this,e=t.options,n=e.display,r=t.minSize,i=ct.isArray(e.text)?e.text.length:1,o=ct.options._parseFont(e),a=n?i*o.lineHeight+2*e.padding:0;t.isHorizontal()?(r.width=t.maxWidth,r.height=a):(r.width=a,r.height=t.maxHeight),t.width=r.width,t.height=r.height},afterFit:yr,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=t.options;if(n.display){var r,i,o,a=ct.options._parseFont(n),s=a.lineHeight,u=s/2+n.padding,l=0,c=t.top,h=t.left,f=t.bottom,d=t.right;e.fillStyle=ct.valueOrDefault(n.fontColor,st.global.defaultFontColor),e.font=a.string,t.isHorizontal()?(i=h+(d-h)/2,o=c+u,r=d-h):(i="left"===n.position?h+u:d-u,o=c+(f-c)/2,r=f-c,l=Math.PI*("left"===n.position?-.5:.5)),e.save(),e.translate(i,o),e.rotate(l),e.textAlign="center",e.textBaseline="middle";var p=n.text;if(ct.isArray(p))for(var g=0,v=0;v<p.length;++v)e.fillText(p[v],0,g,r),g+=s;else e.fillText(p,0,0,r);e.restore()}}});function xr(t,e){var n=new br({ctx:t.ctx,options:e,chart:t});we.configure(t,n,e),we.addBox(t,n),t.titleBlock=n}var _r={},wr=hr,kr=mr,Sr={id:"title",_element:br,beforeInit:function(t){var e=t.options.title;e&&xr(t,e)},beforeUpdate:function(t){var e=t.options.title,n=t.titleBlock;e?(ct.mergeIf(e,st.global.title),n?(we.configure(t,n,e),n.options=e):xr(t,e)):n&&(we.removeBox(t,n),delete t.titleBlock)}};for(var Mr in _r.filler=wr,_r.legend=kr,_r.title=Sr,an.helpers=ct,function(){function t(t,e,n){var r;return"string"==typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[n])):r=t,r}function e(t){return null!=t&&"none"!==t}function n(n,r,i){var o=document.defaultView,a=ct._getParentNode(n),s=o.getComputedStyle(n)[r],u=o.getComputedStyle(a)[r],l=e(s),c=e(u),h=Number.POSITIVE_INFINITY;return l||c?Math.min(l?t(s,n,i):h,c?t(u,a,i):h):"none"}ct.where=function(t,e){if(ct.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return ct.each(t,(function(t){e(t)&&n.push(t)})),n},ct.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var r=0,i=t.length;r<i;++r)if(e.call(n,t[r],r,t))return r;return-1},ct.findNextWhere=function(t,e,n){ct.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<t.length;r++){var i=t[r];if(e(i))return i}},ct.findPreviousWhere=function(t,e,n){ct.isNullOrUndef(n)&&(n=t.length);for(var r=n-1;r>=0;r--){var i=t[r];if(e(i))return i}},ct.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},ct.almostEquals=function(t,e,n){return Math.abs(t-e)<n},ct.almostWhole=function(t,e){var n=Math.round(t);return n-e<t&&n+e>t},ct.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},ct.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},ct.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},ct.log10=Math.log10?function(t){return Math.log10(t)}:function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e);return t===Math.pow(10,n)?n:e},ct.toRadians=function(t){return t*(Math.PI/180)},ct.toDegrees=function(t){return t*(180/Math.PI)},ct._decimalPlaces=function(t){if(ct.isFinite(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}},ct.getAngleFromPoint=function(t,e){var n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:i}},ct.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},ct.aliasPixel=function(t){return t%2==0?0:.5},ct._alignPixel=function(t,e,n){var r=t.currentDevicePixelRatio,i=n/2;return Math.round((e-i)*r)/r+i},ct.splineCurve=function(t,e,n,r){var i=t.skip?e:t,o=e,a=n.skip?e:n,s=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),u=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),l=s/(s+u),c=u/(s+u),h=r*(l=isNaN(l)?0:l),f=r*(c=isNaN(c)?0:c);return{previous:{x:o.x-h*(a.x-i.x),y:o.y-h*(a.y-i.y)},next:{x:o.x+f*(a.x-i.x),y:o.y+f*(a.y-i.y)}}},ct.EPSILON=Number.EPSILON||1e-14,ct.splineCurveMonotone=function(t){var e,n,r,i,o,a,s,u,l,c=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),h=c.length;for(e=0;e<h;++e)if(!(r=c[e]).model.skip){if(n=e>0?c[e-1]:null,(i=e<h-1?c[e+1]:null)&&!i.model.skip){var f=i.model.x-r.model.x;r.deltaK=0!==f?(i.model.y-r.model.y)/f:0}!n||n.model.skip?r.mK=r.deltaK:!i||i.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(e=0;e<h-1;++e)r=c[e],i=c[e+1],r.model.skip||i.model.skip||(ct.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=i.mK=0:(o=r.mK/r.deltaK,a=i.mK/r.deltaK,(u=Math.pow(o,2)+Math.pow(a,2))<=9||(s=3/Math.sqrt(u),r.mK=o*s*r.deltaK,i.mK=a*s*r.deltaK)));for(e=0;e<h;++e)(r=c[e]).model.skip||(n=e>0?c[e-1]:null,i=e<h-1?c[e+1]:null,n&&!n.model.skip&&(l=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-l,r.model.controlPointPreviousY=r.model.y-l*r.mK),i&&!i.model.skip&&(l=(i.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+l,r.model.controlPointNextY=r.model.y+l*r.mK))},ct.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},ct.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},ct.niceNum=function(t,e){var n=Math.floor(ct.log10(t)),r=t/Math.pow(10,n);return(e?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},ct.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},ct.getRelativePosition=function(t,e){var n,r,i=t.originalEvent||t,o=t.target||t.srcElement,a=o.getBoundingClientRect(),s=i.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=i.clientX,r=i.clientY);var u=parseFloat(ct.getStyle(o,"padding-left")),l=parseFloat(ct.getStyle(o,"padding-top")),c=parseFloat(ct.getStyle(o,"padding-right")),h=parseFloat(ct.getStyle(o,"padding-bottom")),f=a.right-a.left-u-c,d=a.bottom-a.top-l-h;return{x:n=Math.round((n-a.left-u)/f*o.width/e.currentDevicePixelRatio),y:r=Math.round((r-a.top-l)/d*o.height/e.currentDevicePixelRatio)}},ct.getConstraintWidth=function(t){return n(t,"max-width","clientWidth")},ct.getConstraintHeight=function(t){return n(t,"max-height","clientHeight")},ct._calculatePadding=function(t,e,n){return(e=ct.getStyle(t,e)).indexOf("%")>-1?n*parseInt(e,10)/100:parseInt(e,10)},ct._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},ct.getMaximumWidth=function(t){var e=ct._getParentNode(t);if(!e)return t.clientWidth;var n=e.clientWidth,r=n-ct._calculatePadding(e,"padding-left",n)-ct._calculatePadding(e,"padding-right",n),i=ct.getConstraintWidth(t);return isNaN(i)?r:Math.min(r,i)},ct.getMaximumHeight=function(t){var e=ct._getParentNode(t);if(!e)return t.clientHeight;var n=e.clientHeight,r=n-ct._calculatePadding(e,"padding-top",n)-ct._calculatePadding(e,"padding-bottom",n),i=ct.getConstraintHeight(t);return isNaN(i)?r:Math.min(r,i)},ct.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},ct.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=t.canvas,i=t.height,o=t.width;r.height=i*n,r.width=o*n,t.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=i+"px",r.style.width=o+"px")}},ct.fontString=function(t,e,n){return e+" "+t+"px "+n},ct.longestText=function(t,e,n,r){var i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.font=e;var a=0;ct.each(n,(function(e){null!=e&&!0!==ct.isArray(e)?a=ct.measureText(t,i,o,a,e):ct.isArray(e)&&ct.each(e,(function(e){null==e||ct.isArray(e)||(a=ct.measureText(t,i,o,a,e))}))}));var s=o.length/2;if(s>n.length){for(var u=0;u<s;u++)delete i[o[u]];o.splice(0,s)}return a},ct.measureText=function(t,e,n,r,i){var o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),o>r&&(r=o),r},ct.numberOfLabelLines=function(t){var e=1;return ct.each(t,(function(t){ct.isArray(t)&&t.length>e&&(e=t.length)})),e},ct.color=Y?function(t){return t instanceof CanvasGradient&&(t=st.global.defaultColor),Y(t)}:function(t){return console.error("Color.js not found!"),t},ct.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:ct.color(t).saturate(.5).darken(.1).rgbString()}}(),an._adapters=ln,an.Animation=mt,an.animationService=yt,an.controllers=ce,an.DatasetController=kt,an.defaults=st,an.Element=gt,an.elements=zt,an.Interaction=me,an.layouts=we,an.platform=je,an.plugins=We,an.Scale=gn,an.scaleService=Ve,an.Ticks=cn,an.Tooltip=Xe,an.helpers.each(nr,(function(t,e){an.scaleService.registerScaleType(e,t,t._defaults)})),_r)_r.hasOwnProperty(Mr)&&an.plugins.register(_r[Mr]);an.platform.initialize();var Cr=an;return"undefined"!=typeof window&&(window.Chart=an),an.Chart=an,an.Legend=_r.legend._element,an.Title=_r.title._element,an.pluginService=an.plugins,an.PluginBase=an.Element.extend({}),an.canvasHelpers=an.helpers.canvas,an.layoutService=an.layouts,an.LinearScaleBase=xn,an.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(t){an[t]=function(e,n){return new an(e,an.helpers.merge(n||{},{type:t.charAt(0).toLowerCase()+t.slice(1)}))}})),Cr}(function(){try{return n(2)}catch(t){}}())},1482:function(t,e,n){"use strict";var r=n(64),i=n(119),o=n(610),a=n(103),s=n(320),u=n(611),l=n(66);r({target:"Promise",proto:!0,real:!0},{finally:function(t){var e=s(this,a("Promise")),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then((function(){return n}))}:t,n?function(n){return u(e,t()).then((function(){throw n}))}:t)}}),i||"function"!=typeof o||o.prototype.finally||l(o.prototype,"finally",a("Promise").prototype.finally)},1909:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(18),o=n(12),a=n(62);e.createJob=function(t){return a.bindClientFunc({clientFunc:i.Client4.createJob,onRequest:r.JobTypes.CREATE_JOB_REQUEST,onSuccess:[r.JobTypes.RECEIVED_JOB,r.JobTypes.CREATE_JOB_SUCCESS],onFailure:r.JobTypes.CREATE_JOB_FAILURE,params:[t]})},e.getJob=function(t){return a.bindClientFunc({clientFunc:i.Client4.getJob,onRequest:r.JobTypes.GET_JOB_REQUEST,onSuccess:[r.JobTypes.RECEIVED_JOB,r.JobTypes.GET_JOB_SUCCESS],onFailure:r.JobTypes.GET_JOB_FAILURE,params:[t]})},e.getJobs=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=o.General.JOBS_CHUNK_SIZE),a.bindClientFunc({clientFunc:i.Client4.getJobs,onRequest:r.JobTypes.GET_JOBS_REQUEST,onSuccess:[r.JobTypes.RECEIVED_JOBS,r.JobTypes.GET_JOBS_SUCCESS],onFailure:r.JobTypes.GET_JOBS_FAILURE,params:[t,e]})},e.getJobsByType=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=o.General.JOBS_CHUNK_SIZE),a.bindClientFunc({clientFunc:i.Client4.getJobsByType,onRequest:r.JobTypes.GET_JOBS_REQUEST,onSuccess:[r.JobTypes.RECEIVED_JOBS,r.JobTypes.RECEIVED_JOBS_BY_TYPE,r.JobTypes.GET_JOBS_SUCCESS],onFailure:r.JobTypes.GET_JOBS_FAILURE,params:[t,e,n]})},e.cancelJob=function(t){return a.bindClientFunc({clientFunc:i.Client4.cancelJob,onRequest:r.JobTypes.CANCEL_JOB_REQUEST,onSuccess:r.JobTypes.CANCEL_JOB_SUCCESS,onFailure:r.JobTypes.CANCEL_JOB_FAILURE,params:[t]})}},1910:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(21);function i(t){return t.entities.jobs.jobsByTypeList}e.getAllJobs=function(t){return t.entities.jobs.jobs},e.getJobsByType=i,e.makeGetJobsByType=function(t){return r.createSelector(i,(function(e){return e[t]||[]}))}},1911:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeTypes={TEAM:"team",CHANNEL:"channel"}},1920:function(t,e,n){var r=n(338);t.exports=function(t,e){return r(t,e)}},1921:function(t,e,n){"use strict";(function(e){function n(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}var r="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},i="undefined"!=typeof window&&window===this?this:void 0!==e&&null!=e?e:this;function o(){o=function(){},i.Symbol||(i.Symbol=u)}function a(t,e){this.b=t,r(this,"description",{configurable:!0,writable:!0,value:e})}a.prototype.toString=function(){return this.b};var s,u=(s=0,function t(e){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new a("jscomp_symbol_"+(e||"")+"_"+s++,e)});function l(){o();var t=i.Symbol.iterator;t||(t=i.Symbol.iterator=i.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[t]&&r(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return function(t){return l(),(t={next:t})[i.Symbol.iterator]=function(){return this},t}(n(this))}}),l=function(){}}function c(t,e){if(e){var n=i;t=t.split(".");for(var o=0;o<t.length-1;o++){var a=t[o];a in n||(n[a]={}),n=n[a]}(e=e(o=n[t=t[t.length-1]]))!=o&&null!=e&&r(n,t,{configurable:!0,writable:!0,value:e})}}function h(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:n(t)}}c("Array.prototype.keys",(function(t){return t||function(){return function(t,e){l(),t instanceof String&&(t+="");var n=0,r={next:function(){if(n<t.length){var i=n++;return{value:e(i,t[i]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r}(this,(function(t){return t}))}})),c("Promise",(function(t){function e(t){this.h=0,this.m=void 0,this.b=[];var e=this.j();try{t(e.resolve,e.reject)}catch(t){e.reject(t)}}function n(){this.b=null}function r(t){return t instanceof e?t:new e((function(e){e(t)}))}if(t)return t;n.prototype.h=function(t){if(null==this.b){this.b=[];var e=this;this.j((function(){e.m()}))}this.b.push(t)};var o=i.setTimeout;n.prototype.j=function(t){o(t,0)},n.prototype.m=function(){for(;this.b&&this.b.length;){var t=this.b;this.b=[];for(var e=0;e<t.length;++e){var n=t[e];t[e]=null;try{n()}catch(t){this.l(t)}}}this.b=null},n.prototype.l=function(t){this.j((function(){throw t}))},e.prototype.j=function(){function t(t){return function(r){n||(n=!0,t.call(e,r))}}var e=this,n=!1;return{resolve:t(this.L),reject:t(this.l)}},e.prototype.L=function(t){if(t===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.M(t);else{t:switch(typeof t){case"object":var n=null!=t;break t;case"function":n=!0;break t;default:n=!1}n?this.K(t):this.w(t)}},e.prototype.K=function(t){var e=void 0;try{e=t.then}catch(t){return void this.l(t)}"function"==typeof e?this.N(e,t):this.w(t)},e.prototype.l=function(t){this.B(2,t)},e.prototype.w=function(t){this.B(1,t)},e.prototype.B=function(t,e){if(0!=this.h)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.h);this.h=t,this.m=e,this.I()},e.prototype.I=function(){if(null!=this.b){for(var t=0;t<this.b.length;++t)a.h(this.b[t]);this.b=null}};var a=new n;return e.prototype.M=function(t){var e=this.j();t.F(e.resolve,e.reject)},e.prototype.N=function(t,e){var n=this.j();try{t.call(e,n.resolve,n.reject)}catch(t){n.reject(t)}},e.prototype.then=function(t,n){function r(t,e){return"function"==typeof t?function(e){try{i(t(e))}catch(t){o(t)}}:e}var i,o,a=new e((function(t,e){i=t,o=e}));return this.F(r(t,i),r(n,o)),a},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.F=function(t,e){function n(){switch(r.h){case 1:t(r.m);break;case 2:e(r.m);break;default:throw Error("Unexpected state: "+r.h)}}var r=this;null==this.b?a.h(n):this.b.push(n)},e.resolve=r,e.reject=function(t){return new e((function(e,n){n(t)}))},e.race=function(t){return new e((function(e,n){for(var i=h(t),o=i.next();!o.done;o=i.next())r(o.value).F(e,n)}))},e.all=function(t){var n=h(t),i=n.next();return i.done?r([]):new e((function(t,e){function o(e){return function(n){a[e]=n,0==--s&&t(a)}}var a=[],s=0;do{a.push(void 0),s++,r(i.value).F(o(a.length-1),e),i=n.next()}while(!i.done)}))},e})),function(e,n,r){var i;(i=r.define)&&i.amd?i([],(function(){return n})):(i=r.modules)?i["FlexSearch".toLowerCase()]=n:t.exports=n}(0,function t(e){function n(t,e){var n=e?e.id:t&&t.id;this.id=n||0===n?n:P++,this.init(t,e),a(this,"index",(function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].f):Object.keys(this.f)})),a(this,"length",(function(){return this.index.length}))}function r(t,e,n,r){return this.D!==this.i&&(this.A=this.A.concat(n),this.D++,r&&this.A.length>=r&&(this.D=this.i),this.D===this.i&&(this.cache&&this.u.set(e,this.A),this.H&&this.H(this.A))),this}function i(t,e){for(var n=t.length,r=b(e),i=[],o=0,a=0;o<n;o++){var s=t[o];(r&&e(s)||!r&&!e[s])&&(i[a++]=s)}return i}function o(t,e,n,r,i,o,a,s,u,l){if(n=v(n,a?0:i,s,o,e,u,l),s){s=n.page;var c=n.next;n=n.result}if(a)e=this.where(a,null,i,n);else{for(e=n,n=this.v,i=e.length,o=Array(i),a=0;a<i;a++)o[a]=n[e[a]];e=o}return n=e,r&&(b(r)||(1<(C=r.split(":")).length?r=p:(C=C[0],r=d)),n.sort(r)),n=g(s,c,n),this.cache&&this.u.set(t,n),n}function a(t,e,n){Object.defineProperty(t,e,{get:n})}function s(t){return new RegExp(t,"g")}function u(t,e){for(var n=0;n<e.length;n+=2)t=t.replace(e[n],e[n+1]);return t}function l(t,e,n,r,i,o,a,s){return e[n]?e[n]:(i=i?(s-(a||s/1.5))*o+(a||s/1.5)*i:o,e[n]=i,i>=a&&((t=(t=t[s-(i+.5>>0)])[n]||(t[n]=[]))[t.length]=r),i)}function c(t,e){if(t)for(var n=Object.keys(t),r=0,i=n.length;r<i;r++){var o=n[r],a=t[o];if(a)for(var s=0,u=a.length;s<u;s++){if(a[s]===e){1===u?delete t[o]:a.splice(s,1);break}x(a[s])&&c(a[s],e)}}}function h(t){for(var e="",n="",r="",i=0;i<t.length;i++){var o=t[i];o!==n&&(i&&"h"===o?(r="a"===r||"e"===r||"i"===r||"o"===r||"u"===r||"y"===r,(("a"===n||"e"===n||"i"===n||"o"===n||"u"===n||"y"===n)&&r||" "===n)&&(e+=o)):e+=o),r=i===t.length-1?"":t[i+1],n=o}return e}function f(t,e){return 0>(t=t.length-e.length)?1:t?-1:0}function d(t,e){return(t=t[C])<(e=e[C])?-1:t>e?1:0}function p(t,e){for(var n=C.length,r=0;r<n;r++)t=t[C[r]],e=e[C[r]];return t<e?-1:t>e?1:0}function g(t,e,n){return t?{page:t,next:e?""+e:null,result:n}:n}function v(t,e,n,r,i,o,a){var s=[];if(!0===n){n="0";var u=""}else u=n&&n.split(":");var l=t.length;if(1<l){var c,h,f,d,p=k(),v=[],y=0,b=!0,x=0;if(u)if(2===u.length){var w=u;u=!1}else u=f=parseInt(u[0],10);if(a){for(c=k();y<l;y++)if("not"===i[y]){var S=t[y],M=S.length;for(h=0;h<M;h++)c["@"+S[h]]=1}else var C=y+1;if(_(C))return g(n,F,s);y=0}else var I=m(i)&&i;for(;y<l;y++){var A=y===(C||l)-1;if(!I||!y)if((h=I||i&&i[y])&&"and"!==h){if("or"!==h)continue;d=!1}else d=o=!0;if(M=(S=t[y]).length){if(b){if(!E){E=S;continue}var T=E.length;for(h=0;h<T;h++){var P="@"+(b=E[h]);a&&c[P]||(p[P]=1,o||(s[x++]=b))}var E=null;b=!1}for(P=!1,h=0;h<M;h++){var O="@"+(T=S[h]),R=o?p[O]||0:y;if(!(!R&&!r||a&&c[O]||!o&&p[O]))if(R===y){if(A){if((!f||--f<x)&&(s[x++]=T,e&&x===e))return g(n,x+(u||0),s)}else p[O]=y+1;P=!0}else r&&((O=v[R]||(v[R]=[]))[O.length]=T)}if(d&&!P&&!r)break}else if(d&&!r)return g(n,F,S)}if(E)if(y=E.length,a)for(h=u?parseInt(u,10):0;h<y;h++)c["@"+(t=E[h])]||(s[x++]=t);else s=E;if(r)for(x=s.length,w?(y=parseInt(w[0],10)+1,h=parseInt(w[1],10)+1):(y=v.length,h=0);y--;)if(T=v[y]){for(M=T.length;h<M;h++)if(r=T[h],(!a||!c["@"+r])&&(s[x++]=r,e&&x===e))return g(n,y+":"+h,s);h=0}}else!l||i&&"not"===i[0]||(s=t[0],u&&(u=parseInt(u[0],10)));if(e){a=s.length,u&&u>a&&(u=0);var F=(u=u||0)+e;F<a?s=s.slice(u,F):(F=0,u&&(s=s.slice(u)))}return g(n,F,s)}function m(t){return"string"==typeof t}function y(t){return t.constructor===Array}function b(t){return"function"==typeof t}function x(t){return"object"==typeof t}function _(t){return void 0===t}function w(t){for(var e=Array(t),n=0;n<t;n++)e[n]=k();return e}function k(){return Object.create(null)}function S(){var t,e;self.onmessage=function(n){if(n=n.data)if(n.search){var r=e.search(n.content,n.threshold?{limit:n.limit,threshold:n.threshold,where:n.where}:n.limit);self.postMessage({id:t,content:n.content,limit:n.limit,result:r})}else n.add?e.add(n.id,n.content):n.update?e.update(n.id,n.content):n.remove?e.remove(n.id):n.clear?e.clear():n.info?((n=e.info()).worker=t,console.log(n)):n.register&&(t=n.id,n.options.cache=!1,n.options.async=!1,n.options.worker=!1,e=new(e=new Function(n.register.substring(n.register.indexOf("{")+1,n.register.lastIndexOf("}")))())(n.options))}}function M(n,r,i,o){n=e("flexsearch","id"+n,S,(function(t){(t=t.data)&&t.result&&o(t.id,t.content,t.result,t.limit,t.where,t.cursor,t.suggest)}),r);var a=t.toString();return i.id=r,n.postMessage({register:a,options:i,id:r}),n}var C,I={encode:"icase",g:"forward",split:/\W+/,cache:!1,async:!1,i:!1,G:!1,a:!1,c:9,threshold:0,depth:0},A={memory:{encode:"extra",g:"strict",threshold:0,c:1},speed:{encode:"icase",g:"strict",threshold:1,c:3,depth:2},match:{encode:"extra",g:"full",threshold:1,c:3},score:{encode:"extra",g:"strict",threshold:1,c:9,depth:4},balance:{encode:"balance",g:"strict",threshold:0,c:3,depth:3},fast:{encode:"icase",g:"strict",threshold:8,c:9,depth:1}},T=[],P=0,E={},O={};n.create=function(t,e){return new n(t,e)},n.registerMatcher=function(t){for(var e in t)t.hasOwnProperty(e)&&T.push(s(e),t[e]);return this},n.registerEncoder=function(t,e){return F[t]=e.bind(F),this},n.registerLanguage=function(t,e){return E[t]=e.filter,O[t]=e.stemmer,this},n.encode=function(t,e){return F[t](e)},n.prototype.init=function(t,e){if(this.h=[],e){var i=e.preset;t=e}else t||(t=I),i=t.preset;if(e={},m(t)?((e=A[t])||console.warn("Preset not found: "+t),t={}):i&&((e=A[i])||console.warn("Preset not found: "+i)),i=t.worker)if("undefined"==typeof Worker)t.worker=!1,this.b=null;else{var o=parseInt(i,10)||4;this.w=-1,this.D=0,this.A=[],this.H=null,this.b=Array(o);for(var a=0;a<o;a++)this.b[a]=M(this.id,a,t,r.bind(this))}if(this.g=t.tokenize||e.g||this.g||I.g,this.split=_(i=t.split)?this.split||I.split:m(i)?s(i):i,this.G=t.rtl||this.G||I.G,this.async="undefined"==typeof Promise||_(i=t.async)?this.async||I.async:i,this.i=_(i=t.worker)?this.i||I.i:i,this.threshold=_(i=t.threshold)?e.threshold||this.threshold||I.threshold:i,this.c=_(i=t.resolution)?i=e.c||this.c||I.c:i,i<=this.threshold&&(this.c=this.threshold+1),this.depth="strict"!==this.g||_(i=t.depth)?e.depth||this.depth||I.depth:i,this.j=(i=_(i=t.encode)?e.encode||I.encode:i)&&F[i]&&F[i].bind(F)||(b(i)?i:this.j||!1),(i=t.matcher)&&this.addMatcher(i),i=(e=t.lang)||t.filter){if(m(i)&&(i=E[i]),y(i)){o=this.j,a=k();for(var u=0;u<i.length;u++){var l=o?o(i[u]):i[u];a[l]=1}i=a}this.filter=i}if(i=e||t.stemmer){for(var c in e=m(i)?O[i]:i,o=this.j,a=[],e)e.hasOwnProperty(c)&&(u=o?o(c):c,a.push(s(u+"($|\\W)"),o?o(e[c]):e[c]));this.stemmer=a}if(this.a=a=(i=t.doc)?function t(e){var n,r=k();for(n in e)if(e.hasOwnProperty(n)){var i=e[n];y(i)?r[n]=i.slice(0):x(i)?r[n]=t(i):r[n]=i}return r}(i):this.a||I.a,this.s=w(this.c-(this.threshold||0)),this.o=k(),this.f=k(),a){if(this.v=k(),t.doc=null,c=a.index={},e=a.keys=[],o=a.field,u=a.tag,l=a.store,y(a.id)||(a.id=a.id.split(":")),l){var h=k();if(m(l))h[l]=1;else if(y(l))for(var f=0;f<l.length;f++)h[l[f]]=1;else x(l)&&(h=l);a.store=h}if(u){if(this.B=k(),l=k(),o)if(m(o))l[o]=t;else if(y(o))for(h=0;h<o.length;h++)l[o[h]]=t;else x(o)&&(l=o);for(y(u)||(a.tag=u=[u]),o=0;o<u.length;o++)this.B[u[o]]=k();this.I=u,o=l}if(o){if(!y(o))if(x(o)){var d=o;a.field=o=Object.keys(o)}else a.field=o=[o];for(a=0;a<o.length;a++)y(u=o[a])||(d&&(t=d[u]),e[a]=u,o[a]=u.split(":")),c[u]=new n(t)}t.doc=i}return this.m=!0,this.u=!!(this.cache=i=_(i=t.cache)?this.cache||I.cache:i)&&new D(i),this},n.prototype.encode=function(t){return t&&(T.length&&(t=u(t,T)),this.h.length&&(t=u(t,this.h)),this.j&&(t=this.j(t)),this.stemmer&&(t=u(t,this.stemmer))),t},n.prototype.addMatcher=function(t){var e,n=this.h;for(e in t)t.hasOwnProperty(e)&&n.push(s(e),t[e]);return this},n.prototype.add=function(t,e,n,r,o){if(this.a&&x(t))return this.l("add",t,e);if(e&&m(e)&&(t||0===t)){var a="@"+t;if(this.f[a]&&!r)return this.update(t,e);if(this.i)return++this.w>=this.b.length&&(this.w=0),this.b[this.w].postMessage({add:!0,id:t,content:e}),this.f[a]=""+this.w,n&&n(),this;if(!o){if(this.async&&"function"!=typeof importScripts){var s=this;return a=new Promise((function(n){setTimeout((function(){s.add(t,e,null,r,!0),s=null,n()}))})),n?(a.then(n),this):a}if(n)return this.add(t,e,null,r,!0),n(),this}if(!(e=this.encode(e)).length)return this;o=b(n=this.g)?n(e):e.split(this.split),this.filter&&(o=i(o,this.filter));var u=k();u._ctx=k();for(var c=o.length,h=this.threshold,f=this.depth,d=this.c,p=this.s,g=this.G,v=0;v<c;v++){var y=o[v];if(y){var _=y.length,S=(g?v+1:c-v)/c,M="";switch(n){case"reverse":case"both":for(var C=_;--C;)l(p,u,M=y[C]+M,t,g?1:(_-C)/_,S,h,d-1);M="";case"forward":for(C=0;C<_;C++)l(p,u,M+=y[C],t,g?(C+1)/_:1,S,h,d-1);break;case"full":for(C=0;C<_;C++)for(var I=(g?C+1:_-C)/_,A=_;A>C;A--)l(p,u,M=y.substring(C,A),t,I,S,h,d-1);break;default:if(_=l(p,u,y,t,1,S,h,d-1),f&&1<c&&_>=h)for(_=u._ctx[y]||(u._ctx[y]=k()),y=this.o[y]||(this.o[y]=w(d-(h||0))),0>(S=v-f)&&(S=0),(M=v+f+1)>c&&(M=c);S<M;S++)S!==v&&l(y,_,o[S],t,0,d-(S<v?v-S:S-v),h,d-1)}}}this.f[a]=1,this.m=!1}return this},n.prototype.l=function(t,e,n){if(y(e)){var r=e.length;if(r--){for(var i=0;i<r;i++)this.l(t,e[i]);return this.l(t,e[r],n)}}else{var o,a=this.a.index,s=this.a.keys,u=this.a.tag;i=this.a.store;var l=this.a.id;r=e;for(var c=0;c<l.length;c++)r=r[l[c]];if("remove"===t&&(delete this.v[r],l=s.length,l--)){for(e=0;e<l;e++)a[s[e]].remove(r);return a[s[l]].remove(r,n)}if(u){for(o=0;o<u.length;o++){var h=u[o],f=e;for(l=h.split(":"),c=0;c<l.length;c++)f=f[l[c]];f="@"+f}o=(o=this.B[h])[f]||(o[f]=[])}for(u=0,h=(l=this.a.field).length;u<h;u++){c=l[u],f=e;for(var d=0;d<c.length;d++)f=f[c[d]];c=a[s[u]],d="add"===t?c.add:c.update,u===h-1?d.call(c,r,f,n):d.call(c,r,f)}if(i){for(n=Object.keys(i),t=k(),a=0;a<n.length;a++)if(i[s=n[a]])for(s=s.split(":"),u=l=void 0,h=0;h<s.length;h++)l=(l||e)[f=s[h]],u=(u||t)[f]=l;e=t}o&&(o[o.length]=e),this.v[r]=e}return this},n.prototype.update=function(t,e,n){return this.a&&x(t)?this.l("update",t,e):(this.f["@"+t]&&m(e)&&(this.remove(t),this.add(t,e,n,!0)),this)},n.prototype.remove=function(t,e,n){if(this.a&&x(t))return this.l("remove",t,e);var r="@"+t;if(this.f[r]){if(this.i)return this.b[this.f[r]].postMessage({remove:!0,id:t}),delete this.f[r],e&&e(),this;if(!n){if(this.async&&"function"!=typeof importScripts){var i=this;return r=new Promise((function(e){setTimeout((function(){i.remove(t,null,!0),i=null,e()}))})),e?(r.then(e),this):r}if(e)return this.remove(t,null,!0),e(),this}for(e=0;e<this.c-(this.threshold||0);e++)c(this.s[e],t);this.depth&&c(this.o,t),delete this.f[r],this.m=!1}return this},n.prototype.search=function(t,e,n,r){if(x(e)){if(y(e))for(var a=0;a<e.length;a++)e[a].query=t;else e.query=t;t=e,e=1e3}else e&&b(e)?(n=e,e=1e3):e||0===e||(e=1e3);if(!this.i){var s=[],u=t;if(x(t)&&!y(t)){n||(n=t.callback)&&(u.callback=null);var l=t.sort,c=t.page;e=t.limit,z=t.threshold;var h=t.suggest;t=t.query}if(this.a){z=this.a.index;var d,p,g=u.where,_=u.bool||"or",w=u.field,S=_;if(w)y(w)||(w=[w]);else if(y(u)){var M=u;w=[],S=[];for(var C=0;C<u.length;C++)a=(r=u[C]).bool||_,w[C]=r.field,S[C]=a,"not"===a?d=!0:"and"===a&&(p=!0)}else w=this.a.keys;for(_=w.length,C=0;C<_;C++)M&&(u=M[C]),c&&!m(u)&&(u.page=null,u.limit=0),s[C]=z[w[C]].search(u,0);if(n)return n(o.call(this,t,S,s,l,e,h,g,c,p,d));if(this.async){var I=this;return new Promise((function(n){Promise.all(s).then((function(r){n(o.call(I,t,S,r,l,e,h,g,c,p,d))}))}))}return o.call(this,t,S,s,l,e,h,g,c,p,d)}if(z||(z=this.threshold||0),!r){if(this.async&&"function"!=typeof importScripts){var A=this;return z=new Promise((function(t){setTimeout((function(){t(A.search(u,e,null,!0)),A=null}))})),n?(z.then(n),this):z}if(n)return n(this.search(u,e,null,!0)),this}if(!t||!m(t))return s;if(u=t,this.cache)if(this.m){if(n=this.u.get(t))return n}else this.u.clear(),this.m=!0;if(!(u=this.encode(u)).length)return s;n=b(n=this.g)?n(u):u.split(this.split),this.filter&&(n=i(n,this.filter)),M=n.length,r=!0,a=[];var T=k(),P=0;if(1<M&&(this.depth&&"strict"===this.g?_=!0:n.sort(f)),!_||(C=this.o))for(var E=this.c;P<M;P++){var O=n[P];if(O){if(_){if(!w)if(C[O])w=O,T[O]=1;else if(!h)return s;if(h&&P===M-1&&!a.length)_=!1,T[O=w||O]=0;else if(!w)continue}if(!T[O]){var R=[],F=!1,D=0,L=_?C[w]:this.s;if(L)for(var N=void 0,B=0;B<E-z;B++)(N=L[B]&&L[B][O])&&(R[D++]=N,F=!0);if(F)w=O,a[a.length]=1<D?R.concat.apply([],R):R[0];else if(!h){r=!1;break}T[O]=1}}}else r=!1;return r&&(s=v(a,e,c,h)),this.cache&&this.u.set(t,s),s}this.H=n,this.D=0,this.A=[];for(var z=0;z<this.i;z++)this.b[z].postMessage({search:!0,limit:e,content:t})},n.prototype.find=function(t,e){return this.where(t,e,1)[0]||null},n.prototype.where=function(t,e,n,r){var i,o=this.v,a=[],s=0;if(x(t)){n||(n=e);var u=Object.keys(t),l=u.length,c=!1;if(1===l&&"id"===u[0])return[o[t.id]];if((i=this.I)&&!r)for(var h=0;h<i.length;h++){var f=i[h],d=t[f];if(!_(d)){var p=this.B[f]["@"+d];if(0==--l)return p;u.splice(u.indexOf(f),1),delete t[f];break}}for(i=Array(l),h=0;h<l;h++)i[h]=u[h].split(":")}else{if(b(t)){for(n=(e=r||Object.keys(o)).length,u=0;u<n;u++)t(l=o[e[u]])&&(a[s++]=l);return a}if(_(e))return[o[t]];if("id"===t)return[o[e]];u=[t],l=1,i=[t.split(":")],c=!0}for(h=(r=p||r||Object.keys(o)).length,f=0;f<h;f++){d=p?r[f]:o[r[f]];for(var g=!0,v=0;v<l;v++){c||(e=t[u[v]]);var m=i[v],y=m.length,w=d;if(1<y)for(var k=0;k<y;k++)w=w[m[k]];else w=w[m[0]];if(w!==e){g=!1;break}}if(g&&(a[s++]=d,n&&s===n))break}return a},n.prototype.info=function(){if(!this.i)return{id:this.id,items:this.length,cache:!(!this.cache||!this.cache.C)&&this.cache.C.length,matcher:T.length+(this.h?this.h.length:0),worker:this.i,threshold:this.threshold,depth:this.depth,resolution:this.c,contextual:this.depth&&"strict"===this.g};for(var t=0;t<this.i;t++)this.b[t].postMessage({info:!0,id:this.id})},n.prototype.clear=function(){return this.destroy().init()},n.prototype.destroy=function(){if(this.cache&&(this.u.clear(),this.u=null),this.s=this.o=this.f=null,this.a){for(var t=this.a.keys,e=0;e<t.length;e++)this.a.index[t[e]].destroy();this.a=this.v=null}return this},n.prototype.export=function(t){var e=!t||_(t.serialize)||t.serialize;if(this.a){var n=!t||_(t.doc)||t.doc,r=!t||_(t.index)||t.index;t=[];var i=0;if(r)for(r=this.a.keys;i<r.length;i++){var o=this.a.index[r[i]];t[i]=[o.s,o.o,Object.keys(o.f)]}n&&(t[i]=this.v)}else t=[this.s,this.o,Object.keys(this.f)];return e&&(t=JSON.stringify(t)),t},n.prototype.import=function(t,e){(!e||_(e.serialize)||e.serialize)&&(t=JSON.parse(t));var n=k();if(this.a){var r=!e||_(e.doc)||e.doc,i=0;if(!e||_(e.index)||e.index){for(var o=(e=this.a.keys).length,a=t[0][2];i<a.length;i++)n[a[i]]=1;for(i=0;i<o;i++){a=this.a.index[e[i]];var s=t[i];s&&(a.s=s[0],a.o=s[1],a.f=n)}}r&&(this.v=x(r)?r:t[i])}else{for(r=t[2],i=0;i<r.length;i++)n[r[i]]=1;this.s=t[0],this.o=t[1],this.f=n}};var R=function(){var t=s("\\s+"),e=s("[^a-z0-9 ]"),n=[s("[-/]")," ",e,"",t," "];return function(t){return h(u(t.toLowerCase(),n))}}(),F={icase:function(t){return t.toLowerCase()},simple:function(){var t=s("\\s+"),e=s("[^a-z0-9 ]"),n=s("[-/]"),r=[s("[àáâãäå]"),"a",s("[èéêë]"),"e",s("[ìíîï]"),"i",s("[òóôõöő]"),"o",s("[ùúûüű]"),"u",s("[ýŷÿ]"),"y",s("ñ"),"n",s("[çc]"),"k",s("ß"),"s",s(" & ")," and ",n," ",e,"",t," "];return function(t){return" "===(t=u(t.toLowerCase(),r))?"":t}}(),advanced:function(){var t=s("ae"),e=s("ai"),n=s("ay"),r=s("ey"),i=s("oe"),o=s("ue"),a=s("ie"),l=s("sz"),c=s("zs"),f=s("ck"),d=s("cc"),p=[t,"a",e,"ei",n,"ei",r,"ei",i,"o",o,"u",a,"i",l,"s",c,"s",s("sh"),"s",f,"k",d,"k",s("th"),"t",s("dt"),"t",s("ph"),"f",s("pf"),"f",s("ou"),"o",s("uo"),"u"];return function(t,e){return t?(2<(t=this.simple(t)).length&&(t=u(t,p)),e||1<t.length&&(t=h(t)),t):t}}(),extra:function(){var t=[s("p"),"b",s("z"),"s",s("[cgq]"),"k",s("n"),"m",s("d"),"t",s("[vw]"),"f",s("[aeiouy]"),""];return function(e){if(!e)return e;if(1<(e=this.advanced(e,!0)).length){e=e.split(" ");for(var n=0;n<e.length;n++){var r=e[n];1<r.length&&(e[n]=r[0]+u(r.substring(1),t))}e=h(e=e.join(" "))}return e}}(),balance:R},D=function(){function t(t){this.clear(),this.J=!0!==t&&t}return t.prototype.clear=function(){this.cache=k(),this.count=k(),this.index=k(),this.C=[]},t.prototype.set=function(t,e){if(this.J&&_(this.cache[t])){var n=this.C.length;if(n===this.J){n--;var r=this.C[n];delete this.cache[r],delete this.count[r],delete this.index[r]}this.index[t]=n,this.C[n]=t,this.count[t]=-1,this.cache[t]=e,this.get(t)}else this.cache[t]=e},t.prototype.get=function(t){var e=this.cache[t];if(this.J&&e){var n=++this.count[t],r=this.index,i=r[t];if(0<i){for(var o=this.C,a=i;this.count[o[--i]]<=n&&-1!==i;);if(++i!==a){for(n=a;n>i;n--)a=o[n-1],o[n]=a,r[a]=n;o[i]=t,r[t]=i}}}return e},t}();return n}(function(){var t={},e="undefined"!=typeof Blob&&"undefined"!=typeof URL&&URL.createObjectURL;return function(n,r,i,o,a){return i=e?URL.createObjectURL(new Blob(["("+i.toString()+")()"],{type:"text/javascript"})):n+".es5.js",t[n+="-"+r]||(t[n]=[]),t[n][a]=new Worker(i),t[n][a].onmessage=o,console.log("Register Worker: "+n+"@"+a),t[n][a]}}()),this)}).call(this,n(24))},1922:function(t,e,n){ /*!*************************************************** * mark.js v8.11.1 * https://markjs.io/ * Copyright (c) 2014–2018, Julian Kühnel * Released under the MIT license https://git.io/vwTVl *****************************************************/ t.exports=function(){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;e(this,t),this.ctx=n,this.iframes=r,this.exclude=i,this.iframesTimeout=o}return n(t,[{key:"getContexts",value:function(){var t=[];return(void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach((function(e){var n=t.filter((function(t){return t.contains(e)})).length>0;-1!==t.indexOf(e)||n||t.push(e)})),t}},{key:"getIframeContents",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=void 0;try{var i=t.contentWindow;if(r=i.document,!i||!r)throw new Error("iframe inaccessible")}catch(t){n()}r&&e(r)}},{key:"isIframeBlank",value:function(t){var e="about:blank",n=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&n!==e&&n}},{key:"observeIframeLoad",value:function(t,e,n){var r=this,i=!1,o=null,a=function a(){if(!i){i=!0,clearTimeout(o);try{r.isIframeBlank(t)||(t.removeEventListener("load",a),r.getIframeContents(t,e,n))}catch(t){n()}}};t.addEventListener("load",a),o=setTimeout(a,this.iframesTimeout)}},{key:"onIframeReady",value:function(t,e,n){try{"complete"===t.contentWindow.document.readyState?this.isIframeBlank(t)?this.observeIframeLoad(t,e,n):this.getIframeContents(t,e,n):this.observeIframeLoad(t,e,n)}catch(t){n()}}},{key:"waitForIframes",value:function(t,e){var n=this,r=0;this.forEachIframe(t,(function(){return!0}),(function(t){r++,n.waitForIframes(t.querySelector("html"),(function(){--r||e()}))}),(function(t){t||e()}))}},{key:"forEachIframe",value:function(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=e.querySelectorAll("iframe"),s=a.length,u=0;a=Array.prototype.slice.call(a);var l=function(){--s<=0&&o(u)};s||l(),a.forEach((function(e){t.matches(e,i.exclude)?l():i.onIframeReady(e,(function(t){n(e)&&(u++,r(t)),l()}),l)}))}},{key:"createIterator",value:function(t,e,n){return document.createNodeIterator(t,e,n,!1)}},{key:"createInstanceOnIframe",value:function(e){return new t(e.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(t,e,n){if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(null===e)return!0;if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}},{key:"getIteratorNode",value:function(t){var e=t.previousNode();return{prevNode:e,node:null===e?t.nextNode():t.nextNode()&&t.nextNode()}}},{key:"checkIframeFilter",value:function(t,e,n,r){var i=!1,o=!1;return r.forEach((function(t,e){t.val===n&&(i=e,o=t.handled)})),this.compareNodeIframe(t,e,n)?(!1!==i||o?!1===i||o||(r[i].handled=!0):r.push({val:n,handled:!0}),!0):(!1===i&&r.push({val:n,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(t,e,n,r){var i=this;t.forEach((function(t){t.handled||i.getIframeContents(t.val,(function(t){i.createInstanceOnIframe(t).forEachNode(e,n,r)}))}))}},{key:"iterateThroughNodes",value:function(t,e,n,r,i){for(var o,a=this,s=this.createIterator(e,t,r),u=[],l=[],c=void 0,h=void 0;o=void 0,o=a.getIteratorNode(s),h=o.prevNode,c=o.node;)this.iframes&&this.forEachIframe(e,(function(t){return a.checkIframeFilter(c,h,t,u)}),(function(e){a.createInstanceOnIframe(e).forEachNode(t,(function(t){return l.push(t)}),r)})),l.push(c);l.forEach((function(t){n(t)})),this.iframes&&this.handleOpenIframes(u,t,n,r),i()}},{key:"forEachNode",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},o=this.getContexts(),a=o.length;a||i(),o.forEach((function(o){var s=function(){r.iterateThroughNodes(t,o,e,n,(function(){--a<=0&&i()}))};r.iframes?r.waitForIframes(o,s):s()}))}}],[{key:"matches",value:function(t,e){var n="string"==typeof e?[e]:e,r=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(r){var i=!1;return n.every((function(e){return!r.call(t,e)||(i=!0,!1)})),i}return!1}}]),t}(),o=function(){function o(t){e(this,o),this.ctx=t,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf("MSIE")>-1||n.indexOf("Trident")>-1)&&(this.ie=!0)}return n(o,[{key:"log",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug",r=this.opt.log;this.opt.debug&&"object"===(void 0===r?"undefined":t(r))&&"function"==typeof r[n]&&r[n]("mark.js: "+e)}},{key:"escapeStr",value:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(t){return"disabled"!==this.opt.wildcards&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),"disabled"!==this.opt.wildcards&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t)}},{key:"createSynonymsRegExp",value:function(t){var e=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var i in e)if(e.hasOwnProperty(i)){var o=e[i],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(i):this.escapeStr(i),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(o):this.escapeStr(o);""!==a&&""!==s&&(t=t.replace(new RegExp("("+this.escapeStr(a)+"|"+this.escapeStr(s)+")","gm"+n),r+"("+this.processSynomyms(a)+"|"+this.processSynomyms(s)+")"+r))}return t}},{key:"processSynomyms",value:function(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}},{key:"setupWildcardsRegExp",value:function(t){return(t=t.replace(/(?:\\)*\?/g,(function(t){return"\\"===t.charAt(0)?"?":""}))).replace(/(?:\\)*\*/g,(function(t){return"\\"===t.charAt(0)?"*":""}))}},{key:"createWildcardsRegExp",value:function(t){var e="withSpaces"===this.opt.wildcards;return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(t){return t.replace(/[^(|)\\]/g,(function(t,e,n){var r=n.charAt(e+1);return/[(|)\\]/.test(r)||""===r?t:t+"\0"}))}},{key:"createJoinersRegExp",value:function(t){var e=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&e.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join("["+e.join("")+"]*"):t}},{key:"createDiacriticsRegExp",value:function(t){var e=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],r=[];return t.split("").forEach((function(i){n.every((function(n){if(-1!==n.indexOf(i)){if(r.indexOf(n)>-1)return!1;t=t.replace(new RegExp("["+n+"]","gm"+e),"["+n+"]"),r.push(n)}return!0}))})),t}},{key:"createMergedBlanksRegExp",value:function(t){return t.replace(/[\s]+/gim,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(t){var e=this,n=this.opt.accuracy,r="string"==typeof n?n:n.value,i="string"==typeof n?[]:n.limiters,o="";switch(i.forEach((function(t){o+="|"+e.escapeStr(t)})),r){case"partially":default:return"()("+t+")";case"complementary":return"()([^"+(o="\\s"+(o||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")))+"]*"+t+"[^"+o+"]*)";case"exactly":return"(^|\\s"+o+")("+t+")(?=$|\\s"+o+")"}}},{key:"getSeparatedKeywords",value:function(t){var e=this,n=[];return t.forEach((function(t){e.opt.separateWordSearch?t.split(" ").forEach((function(t){t.trim()&&-1===n.indexOf(t)&&n.push(t)})):t.trim()&&-1===n.indexOf(t)&&n.push(t)})),{keywords:n.sort((function(t,e){return e.length-t.length})),length:n.length}}},{key:"isNumeric",value:function(t){return Number(parseFloat(t))==t}},{key:"checkRanges",value:function(t){var e=this;if(!Array.isArray(t)||"[object Object]"!==Object.prototype.toString.call(t[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];var n=[],r=0;return t.sort((function(t,e){return t.start-e.start})).forEach((function(t){var i=e.callNoMatchOnInvalidRanges(t,r),o=i.start,a=i.end;i.valid&&(t.start=o,t.length=a-o,n.push(t),r=a)})),n}},{key:"callNoMatchOnInvalidRanges",value:function(t,e){var n=void 0,r=void 0,i=!1;return t&&void 0!==t.start?(r=(n=parseInt(t.start,10))+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&r-e>0&&r-n>0?i=!0:(this.log("Ignoring invalid or overlapping range: "+JSON.stringify(t)),this.opt.noMatch(t))):(this.log("Ignoring invalid range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:n,end:r,valid:i}}},{key:"checkWhitespaceRanges",value:function(t,e,n){var r=void 0,i=!0,o=n.length,a=e-o,s=parseInt(t.start,10)-a;return(r=(s=s>o?o:s)+parseInt(t.length,10))>o&&(r=o,this.log("End range automatically set to the max value of "+o)),s<0||r-s<0||s>o||r>o?(i=!1,this.log("Invalid range: "+JSON.stringify(t)),this.opt.noMatch(t)):""===n.substring(s,r).replace(/\s+/g,"")&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:s,end:r,valid:i}}},{key:"getTextNodes",value:function(t){var e=this,n="",r=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,(function(t){r.push({start:n.length,end:(n+=t.textContent).length,node:t})}),(function(t){return e.matchesExclude(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),(function(){t({value:n,nodes:r})}))}},{key:"matchesExclude",value:function(t){return i.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(t,e,n){var r=this.opt.element?this.opt.element:"mark",i=t.splitText(e),o=i.splitText(n-e),a=document.createElement(r);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=i.textContent,i.parentNode.replaceChild(a,i),o}},{key:"wrapRangeInMappedTextNode",value:function(t,e,n,r,i){var o=this;t.nodes.every((function(a,s){var u=t.nodes[s+1];if(void 0===u||u.start>e){if(!r(a.node))return!1;var l=e-a.start,c=(n>a.end?a.end:n)-a.start,h=t.value.substr(0,a.start),f=t.value.substr(c+a.start);if(a.node=o.wrapRangeInTextNode(a.node,l,c),t.value=h+f,t.nodes.forEach((function(e,n){n>=s&&(t.nodes[n].start>0&&n!==s&&(t.nodes[n].start-=c),t.nodes[n].end-=c)})),n-=c,i(a.node.previousSibling,a.start),!(n>a.end))return!1;e=a.end}return!0}))}},{key:"wrapMatches",value:function(t,e,n,r,i){var o=this,a=0===e?0:e+1;this.getTextNodes((function(e){e.nodes.forEach((function(e){e=e.node;for(var i=void 0;null!==(i=t.exec(e.textContent))&&""!==i[a];)if(n(i[a],e)){var s=i.index;if(0!==a)for(var u=1;u<a;u++)s+=i[u].length;e=o.wrapRangeInTextNode(e,s,s+i[a].length),r(e.previousSibling),t.lastIndex=0}})),i()}))}},{key:"wrapMatchesAcrossElements",value:function(t,e,n,r,i){var o=this,a=0===e?0:e+1;this.getTextNodes((function(e){for(var s=void 0;null!==(s=t.exec(e.value))&&""!==s[a];){var u=s.index;if(0!==a)for(var l=1;l<a;l++)u+=s[l].length;var c=u+s[a].length;o.wrapRangeInMappedTextNode(e,u,c,(function(t){return n(s[a],t)}),(function(e,n){t.lastIndex=n,r(e)}))}i()}))}},{key:"wrapRangeFromIndex",value:function(t,e,n,r){var i=this;this.getTextNodes((function(o){var a=o.value.length;t.forEach((function(t,r){var s=i.checkWhitespaceRanges(t,a,o.value),u=s.start,l=s.end;s.valid&&i.wrapRangeInMappedTextNode(o,u,l,(function(n){return e(n,t,o.value.substring(u,l),r)}),(function(e){n(e,t)}))})),r()}))}},{key:"unwrapMatches",value:function(t){for(var e=t.parentNode,n=document.createDocumentFragment();t.firstChild;)n.appendChild(t.removeChild(t.firstChild));e.replaceChild(n,t),this.ie?this.normalizeTextNode(e):e.normalize()}},{key:"normalizeTextNode",value:function(t){if(t){if(3===t.nodeType)for(;t.nextSibling&&3===t.nextSibling.nodeType;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}},{key:"markRegExp",value:function(t,e){var n=this;this.opt=e,this.log('Searching with expression "'+t+'"');var r=0,i="wrapMatches";this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](t,this.opt.ignoreGroups,(function(t,e){return n.opt.filter(e,t,r)}),(function(t){r++,n.opt.each(t)}),(function(){0===r&&n.opt.noMatch(t),n.opt.done(r)}))}},{key:"mark",value:function(t,e){var n=this;this.opt=e;var r=0,i="wrapMatches",o=this.getSeparatedKeywords("string"==typeof t?[t]:t),a=o.keywords,s=o.length,u=this.opt.caseSensitive?"":"i";this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),0===s?this.opt.done(r):function t(e){var o=new RegExp(n.createRegExp(e),"gm"+u),l=0;n.log('Searching with expression "'+o+'"'),n[i](o,1,(function(t,i){return n.opt.filter(i,e,r,l)}),(function(t){l++,r++,n.opt.each(t)}),(function(){0===l&&n.opt.noMatch(e),a[s-1]===e?n.opt.done(r):t(a[a.indexOf(e)+1])}))}(a[0])}},{key:"markRanges",value:function(t,e){var n=this;this.opt=e;var r=0,i=this.checkRanges(t);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(function(t,e,r,i){return n.opt.filter(t,e,r,i)}),(function(t,e){r++,n.opt.each(t,e)}),(function(){n.opt.done(r)}))):this.opt.done(r)}},{key:"unmark",value:function(t){var e=this;this.opt=t;var n=this.opt.element?this.opt.element:"*";n+="[data-markjs]",this.opt.className&&(n+="."+this.opt.className),this.log('Removal selector "'+n+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,(function(t){e.unwrapMatches(t)}),(function(t){var r=i.matches(t,n),o=e.matchesExclude(t);return!r||o?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),this.opt.done)}},{key:"opt",set:function(t){this._opt=r({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},t)},get:function(){return this._opt}},{key:"iterator",get:function(){return new i(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),o}();return function(t){var e=this,n=new o(t);return this.mark=function(t,r){return n.mark(t,r),e},this.markRegExp=function(t,r){return n.markRegExp(t,r),e},this.markRanges=function(t,r){return n.markRanges(t,r),e},this.unmark=function(t){return n.unmark(t),e},this}}()}}]); //# sourceMappingURL=8.85fc61961ebfd61423b9.js.map