1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors~253ae210"],{"0145":function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},"01ec":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.eventRegistrations={}}return t.prototype.bindToChannel=function(t){for(var e=this,r=function(r){t.bind(r,(function(t,n){return e.fire(r,n)}))},n=0,i=Object.keys(this.eventRegistrations);n<i.length;n++){var o=i[n];r(o)}},t.prototype.registerTypes=function(t){for(var e=0,r=t;e<r.length;e++){var n=r[e];this.eventRegistrations[n]={registrations:[]}}},t.prototype.fire=function(t,e){this.eventRegistrations[t].registrations.forEach((function(t){return t(e)}))},t.prototype.addListener=function(t,e){return this.eventRegistrations[t]?(this.eventRegistrations[t].registrations.push(e),!0):(console.warn("PeerTube: addEventListener(): The event '"+t+"' is not supported"),!1)},t.prototype.removeListener=function(t,e){return!!this.eventRegistrations[t]&&(this.eventRegistrations[t].registrations=this.eventRegistrations[t].registrations.filter((function(t){return t===e})),!0)},t}();e.EventRegistrar=n},"0211":function(t,e,r){"use strict";const n=e;n._reverse=function(t){const e={};return Object.keys(t).forEach((function(r){(0|r)==r&&(r|=0);const n=t[r];e[n]=r})),e},n.der=r("8b71")},"05f0":function(t,e,r){"use strict";var n=r("d113").codes.ERR_INVALID_OPT_VALUE;function i(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}function o(t,e,r,o){var a=i(e,o,r);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0){var s=o?r:"highWaterMark";throw new n(s,a)}return Math.floor(a)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},"09f5":function(t,e,r){var n=r("39f5"),i=r("8707").Buffer,o=r("6430"),a=r("3fb5");function s(t,e,r,a){o.call(this),this._cipher=new n.AES(e),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=t}a(s,o),s.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},t.exports=s},"0a06":function(t,e,r){"use strict";var n=r("c532"),i=r("30b5"),o=r("f6b49"),a=r("5270"),s=r("4a7b"),l=r("848b"),u=l.validators;function h(t){this.defaults=t,this.interceptors={request:new o,response:new o}}h.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&l.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var r=[],n=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!n){var h=[a,void 0];Array.prototype.unshift.apply(h,r),h=h.concat(o),i=Promise.resolve(t);while(h.length)i=i.then(h.shift(),h.shift());return i}var c=t;while(r.length){var d=r.shift(),f=r.shift();try{c=d(c)}catch(p){f(p);break}}try{i=a(c)}catch(p){return Promise.reject(p)}while(o.length)i=i.then(o.shift(),o.shift());return i},h.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){h.prototype[t]=function(e,r){return this.request(s(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){h.prototype[t]=function(e,r,n){return this.request(s(n||{},{method:t,url:e,data:r}))}})),t.exports=h},"0be8":function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},"0df6":function(t,e,r){"use strict";
1t.exports=function(t){return function(e){return t.apply(null,e)}}},"116d":function(t,e,r){"use strict";t.exports=r("b4e8")},"1ab9":function(t,e,r){var n=r("4f4d"),i=r("2514"),o=Object.hasOwnProperty,a=Object.create(null);for(var s in n)o.call(n,s)&&(a[n[s]]=s);var l=t.exports={to:{},get:{}};function u(t,e,r){return Math.min(Math.max(e,t),r)}function h(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}l.get=function(t){var e,r,n=t.substring(0,3).toLowerCase();switch(n){case"hsl":e=l.get.hsl(t),r="hsl";break;case"hwb":e=l.get.hwb(t),r="hwb";break;default:e=l.get.rgb(t),r="rgb";break}return e?{model:r,value:e}:null},l.get.rgb=function(t){if(!t)return null;var e,r,i,a=/^#([a-f0-9]{3,4})$/i,s=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,l=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,h=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,c=/^(\w+)$/,d=[0,0,0,1];if(e=t.match(s)){for(i=e[2],e=e[1],r=0;r<3;r++){var f=2*r;d[r]=parseInt(e.slice(f,f+2),16)}i&&(d[3]=parseInt(i,16)/255)}else if(e=t.match(a)){for(e=e[1],i=e[3],r=0;r<3;r++)d[r]=parseInt(e[r]+e[r],16);i&&(d[3]=parseInt(i+i,16)/255)}else if(e=t.match(l)){for(r=0;r<3;r++)d[r]=parseInt(e[r+1],0);e[4]&&(e[5]?d[3]=.01*parseFloat(e[4]):d[3]=parseFloat(e[4]))}else{if(!(e=t.match(h)))return(e=t.match(c))?"transparent"===e[1]?[0,0,0,0]:o.call(n,e[1])?(d=n[e[1]],d[3]=1,d):null:null;for(r=0;r<3;r++)d[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(e[5]?d[3]=.01*parseFloat(e[4]):d[3]=parseFloat(e[4]))}for(r=0;r<3;r++)d[r]=u(d[r],0,255);return d[3]=u(d[3],0,1),d},l.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,o=u(parseFloat(r[2]),0,100),a=u(parseFloat(r[3]),0,100),s=u(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null},l.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,o=u(parseFloat(r[2]),0,100),a=u(parseFloat(r[3]),0,100),s=u(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null},l.to.hex=function(){var t=i(arguments);return"#"+h(t[0])+h(t[1])+h(t[2])+(t[3]<1?h(Math.round(255*t[3])):"")},l.to.rgb=function(){var t=i(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},l.to.rgb.percent=function(){var t=i(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"},l.to.hsl=function(){var t=i(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},l.to.hwb=function(){var t=i(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},l.to.keyword=function(t){return a[t.slice(0,3)]}},"1d2b":function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},"1e3c":function(t,e,r){var n=r("6430"),i=r("1545"),o=r("3fb5"),a=r("8707").Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function l(t){n.call(this);var e,r=t.mode.toLowerCase(),i=s[r];e=t.decrypt?"decrypt":"encrypt";var o=t.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=a.concat([o,o.slice(0,8)]));var l=t.iv;a.isBuffer(l)||(l=a.from(l)),this._des=i.create({key:o,iv:l,type:e})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=l,o(l,n),l.prototype._update=function(t){return a.from(this._des.update(t))},l.prototype._final=function(){return a.from(this._des.final())}},"1fb5":function(t,e,r){"use strict";e.byteLength=h,e.toByteArray=d,e.fromByteArray=g;for(var n=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",s=0,l=a.length;s<l;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function h(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function c(t,e,r){return 3*(e+r)/4-r}function d(t){var e,r,n=u(t),a=n[0],s=n[1],l=new o(c(t,a,s)),h=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],l[h++]=e>>16&255,l[h++]=e>>8&255,l[h++]=255&e;return 2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,l[h++]=255&e),1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,l[h++]=e>>8&255,l[h++]=255&e),l}function f(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function p(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(f(n));return i.join("")}function g(t){for(var e,r=t.length,i=r%3,o=[],a=16383,s=0,l=r-i;s<l;s+=a)o.push(p(t,s,s+a>l?l:s+a));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"20f6":function(t,e,r){"use strict";const n=e;n.der=r("cfbd"),n.pem=r("8df7")},"22ab":function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t,e,r){return e=u(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function l(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t){var e=h(t,"string");return"symbol"===typeof e?e:String(e)}function h(t,e){if("object"!==typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var c=r("b639"),d=c.Buffer,f=r(8),p=f.inspect,g=p&&p.custom||"inspect";function m(t,e,r){d.prototype.copy.call(t,e,r)}t.exports=function(){function t(){a(this,t),this.head=null,this.tail=null,this.length=0}return l(t,[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,r=""+e.data;while(e=e.next)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return d.alloc(0);var e=d.allocUnsafe(t>>>0),r=this.head,n=0;while(r)m(r.data,e,n),n+=r.data.length,r=r.next;return e}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;t-=n.length;while(e=e.next){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),t-=o,0===t){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=d.allocUnsafe(t),r=this.head,n=1;r.data.copy(e),t-=r.data.length;while(r=r.next){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),t-=o,0===t){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,e}},{key:g,value:function(t,e){return p(this,i(i({},e),{},{depth:0,customInspect:!1}))}}]),t}()},2410:function(t,e,r){(function(e){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var r,n,i;try{r=Map}catch(c){r=function(){}}try{n=Set}catch(c){n=function(){}}try{i=Promise}catch(c){i=function(){}}function o(a,s,l,u,c){"object"===typeof s&&(l=s.depth,u=s.prototype,c=s.includeNonEnumerable,s=s.circular);var d=[],f=[],p="undefined"!=typeof e;function g(a,l){if(null===a)return null;if(0===l)return a;var m,v;if("object"!=typeof a)return a;
1if(t(a,r))m=new r;else if(t(a,n))m=new n;else if(t(a,i))m=new i((function(t,e){a.then((function(e){t(g(e,l-1))}),(function(t){e(g(t,l-1))}))}));else if(o.__isArray(a))m=[];else if(o.__isRegExp(a))m=new RegExp(a.source,h(a)),a.lastIndex&&(m.lastIndex=a.lastIndex);else if(o.__isDate(a))m=new Date(a.getTime());else{if(p&&e.isBuffer(a))return m=e.allocUnsafe?e.allocUnsafe(a.length):new e(a.length),a.copy(m),m;t(a,Error)?m=Object.create(a):"undefined"==typeof u?(v=Object.getPrototypeOf(a),m=Object.create(v)):(m=Object.create(u),v=u)}if(s){var y=d.indexOf(a);if(-1!=y)return f[y];d.push(a),f.push(m)}for(var b in t(a,r)&&a.forEach((function(t,e){var r=g(e,l-1),n=g(t,l-1);m.set(r,n)})),t(a,n)&&a.forEach((function(t){var e=g(t,l-1);m.add(e)})),a){var w;v&&(w=Object.getOwnPropertyDescriptor(v,b)),w&&null==w.set||(m[b]=g(a[b],l-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(a);for(b=0;b<_.length;b++){var M=_[b],x=Object.getOwnPropertyDescriptor(a,M);(!x||x.enumerable||c)&&(m[M]=g(a[M],l-1),x.enumerable||Object.defineProperty(m,M,{enumerable:!1}))}}if(c){var k=Object.getOwnPropertyNames(a);for(b=0;b<k.length;b++){var S=k[b];x=Object.getOwnPropertyDescriptor(a,S);x&&x.enumerable||(m[S]=g(a[S],l-1),Object.defineProperty(m,S,{enumerable:!1}))}}return m}return"undefined"==typeof s&&(s=!0),"undefined"==typeof l&&(l=1/0),g(a,l)}function a(t){return Object.prototype.toString.call(t)}function s(t){return"object"===typeof t&&"[object Date]"===a(t)}function l(t){return"object"===typeof t&&"[object Array]"===a(t)}function u(t){return"object"===typeof t&&"[object RegExp]"===a(t)}function h(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return o.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},o.__objToStr=a,o.__isDate=s,o.__isArray=l,o.__isRegExp=u,o.__getRegExpFlags=h,o}();t.exports&&(t.exports=r)}).call(this,r("b639").Buffer)},2444:function(t,e,r){"use strict";(function(e){var n=r("c532"),i=r("c8af"),o=r("387f"),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function l(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=r("b50d")),t}function u(t,e,r){if(n.isString(t))try{return(e||JSON.parse)(t),n.trim(t)}catch(i){if("SyntaxError"!==i.name)throw i}return(r||JSON.stringify)(t)}var h={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),u(t)):t}],transformResponse:[function(t){var e=this.transitional,r=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||i&&n.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(a){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){h.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){h.headers[t]=n.merge(a)})),t.exports=h}).call(this,r("f28c"))},"2d83":function(t,e,r){"use strict";var n=r("387f");t.exports=function(t,e,r,i,o){var a=new Error(t);return n(a,e,r,i,o)}},"2e67":function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"30b5":function(t,e,r){"use strict";var n=r("c532");function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var o;if(r)o=r(e);else if(n.isURLSearchParams(e))o=e.toString();else{var a=[];
1n.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},"30ef":function(t,e,r){ 2/*! 3 * Chart.js v2.9.4 4 * https://www.chartjs.org 5 * (c) 2020 Chart.js Contributors 6 * Released under the MIT License 7 */ 8(function(e,n){t.exports=n(function(){try{return r("c1df")}catch(t){}}())})(0,(function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function r(t){return t&&t["default"]||t}t=t&&t.hasOwnProperty("default")?t["default"]:t;var n={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]},i=e((function(t){var e={};for(var r in n)n.hasOwnProperty(r)&&(e[n[r]]=r);var i=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};
8for(var o in i)if(i.hasOwnProperty(o)){if(!("channels"in i[o]))throw new Error("missing channels property: "+o);if(!("labels"in i[o]))throw new Error("missing channel labels property: "+o);if(i[o].labels.length!==i[o].channels)throw new Error("channel and label counts mismatch: "+o);var a=i[o].channels,s=i[o].labels;delete i[o].channels,delete i[o].labels,Object.defineProperty(i[o],"channels",{value:a}),Object.defineProperty(i[o],"labels",{value:s})}function l(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}i.rgb.hsl=function(t){var e,r,n,i=t[0]/255,o=t[1]/255,a=t[2]/255,s=Math.min(i,o,a),l=Math.max(i,o,a),u=l-s;return l===s?e=0:i===l?e=(o-a)/u:o===l?e=2+(a-i)/u:a===l&&(e=4+(i-o)/u),e=Math.min(60*e,360),e<0&&(e+=360),n=(s+l)/2,r=l===s?0:n<=.5?u/(l+s):u/(2-l-s),[e,100*r,100*n]},i.rgb.hsv=function(t){var e,r,n,i,o,a=t[0]/255,s=t[1]/255,l=t[2]/255,u=Math.max(a,s,l),h=u-Math.min(a,s,l),c=function(t){return(u-t)/6/h+.5};return 0===h?i=o=0:(o=h/u,e=c(a),r=c(s),n=c(l),a===u?i=n-r:s===u?i=1/3+e-n:l===u&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*u]},i.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],o=i.rgb.hsl(t)[0],a=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[o,100*a,100*n]},i.rgb.cmyk=function(t){var e,r,n,i,o=t[0]/255,a=t[1]/255,s=t[2]/255;return i=Math.min(1-o,1-a,1-s),e=(1-o-i)/(1-i)||0,r=(1-a-i)/(1-i)||0,n=(1-s-i)/(1-i)||0,[100*e,100*r,100*n,100*i]},i.rgb.keyword=function(t){var r=e[t];if(r)return r;var i,o=1/0;for(var a in n)if(n.hasOwnProperty(a)){var s=n[a],u=l(t,s);u<o&&(o=u,i=a)}return i},i.keyword.rgb=function(t){return n[t]},i.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=.4124*e+.3576*r+.1805*n,o=.2126*e+.7152*r+.0722*n,a=.0193*e+.1192*r+.9505*n;return[100*i,100*o,100*a]},i.rgb.lab=function(t){var e,r,n,o=i.rgb.xyz(t),a=o[0],s=o[1],l=o[2];return a/=95.047,s/=100,l/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,e=116*s-16,r=500*(a-s),n=200*(s-l),[e,r,n]},i.hsl.rgb=function(t){var e,r,n,i,o,a=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return o=255*l,[o,o,o];r=l<.5?l*(1+s):l+s-l*s,e=2*l-r,i=[0,0,0];for(var u=0;u<3;u++)n=a+1/3*-(u-1),n<0&&n++,n>1&&n--,o=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[u]=255*o;return i},i.hsl.hsv=function(t){var e,r,n=t[0],i=t[1]/100,o=t[2]/100,a=i,s=Math.max(o,.01);return o*=2,i*=o<=1?o:2-o,a*=s<=1?s:2-s,r=(o+i)/2,e=0===o?2*a/(s+a):2*i/(o+i),[n,100*e,100*r]},i.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),a=255*n*(1-r),s=255*n*(1-r*o),l=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,l,a];case 1:return[s,n,a];case 2:return[a,n,l];case 3:return[a,s,n];case 4:return[l,a,n];case 5:return[n,a,s]}},i.hsv.hsl=function(t){var e,r,n,i=t[0],o=t[1]/100,a=t[2]/100,s=Math.max(a,.01);return n=(2-o)*a,e=(2-o)*s,r=o*s,r/=e<=1?e:2-e,r=r||0,n/=2,[i,100*r,100*n]},i.hwb.rgb=function(t){var e,r,n,i,o,a,s,l=t[0]/360,u=t[1]/100,h=t[2]/100,c=u+h;switch(c>1&&(u/=c,h/=c),e=Math.floor(6*l),r=1-h,n=6*l-e,0!==(1&e)&&(n=1-n),i=u+n*(r-u),e){default:case 6:case 0:o=r,a=i,s=u;break;case 1:o=i,a=r,s=u;break;case 2:o=u,a=r,s=i;break;case 3:o=u,a=i,s=r;break;case 4:o=i,a=u,s=r;break;case 5:o=r,a=u,s=i;break}return[255*o,255*a,255*s]},i.cmyk.rgb=function(t){var e,r,n,i=t[0]/100,o=t[1]/100,a=t[2]/100,s=t[3]/100;return e=1-Math.min(1,i*(1-s)+s),r=1-Math.min(1,o*(1-s)+s),n=1-Math.min(1,a*(1-s)+s),[255*e,255*r,255*n]},i.xyz.rgb=function(t){var e,r,n,i=t[0]/100,o=t[1]/100,a=t[2]/100;return e=3.2406*i+-1.5372*o+-.4986*a,r=-.9689*i+1.8758*o+.0415*a,n=.0557*i+-.204*o+1.057*a,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,e=Math.min(Math.max(0,e),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*e,255*r,255*n]},i.xyz.lab=function(t){var e,r,n,i=t[0],o=t[1],a=t[2];return i/=95.047,o/=100,a/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,e=116*o-16,r=500*(i-o),n=200*(o-a),[e,r,n]},i.lab.xyz=function(t){var e,r,n,i=t[0],o=t[1],a=t[2];r=(i+16)/116,e=o/500+r,n=r-a/200;var s=Math.pow(r,3),l=Math.pow(e,3),u=Math.pow(n,3);return r=s>.008856?s:(r-16/116)/7.787,e=l>.008856?l:(e-16/116)/7.787,n=u>.008856?u:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},i.lab.lch=function(t){var e,r,n,i=t[0],o=t[1],a=t[2];return e=Math.atan2(a,o),r=360*e/2/Math.PI,r<0&&(r+=360),n=Math.sqrt(o*o+a*a),[i,n,r]},i.lch.lab=function(t){var e,r,n,i=t[0],o=t[1],a=t[2];return n=a/360*2*Math.PI,e=o*Math.cos(n),r=o*Math.sin(n),[i,e,r]},i.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],o=1 in arguments?arguments[1]:i.rgb.hsv(t)[2];if(o=Math.round(o/50),0===o)return 30;var a=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return 2===o&&(a+=60),a},i.hsv.ansi16=function(t){return i.rgb.ansi16(i.hsv.rgb(t),t[2])},i.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i},i.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=.5*(1+~~(t>50)),n=(1&e)*r*255,i=(e>>1&1)*r*255,o=(e>>
82&1)*r*255;return[n,i,o]},i.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var r;t-=16;var n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,o=r%6/5*255;return[n,i,o]},i.rgb.hex=function(t){var e=((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2])),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r},i.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];3===e[0].length&&(r=r.split("").map((function(t){return t+t})).join(""));var n=parseInt(r,16),i=n>>16&255,o=n>>8&255,a=255&n;return[i,o,a]},i.rgb.hcg=function(t){var e,r,n=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.max(Math.max(n,i),o),s=Math.min(Math.min(n,i),o),l=a-s;return e=l<1?s/(1-l):0,r=l<=0?0:a===n?(i-o)/l%6:a===i?2+(o-n)/l:4+(n-i)/l+4,r/=6,r%=1,[360*r,100*l,100*e]},i.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return n=r<.5?2*e*r:2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],100*n,100*i]},i.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},i.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];var i=[0,0,0],o=e%1*6,a=o%1,s=1-a,l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-r)*n,[255*(r*i[0]+l),255*(r*i[1]+l),255*(r*i[2]+l)]},i.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],100*i,100*n]},i.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],100*i,100*n]},i.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],100*(n-e),100*(1-n)]},i.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,o=0;return i<1&&(o=(n-i)/(1-i)),[t[0],100*i,100*o]},i.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},i.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},i.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},i.gray.hsl=i.gray.hsv=function(t){return[0,0,t[0]]},i.gray.hwb=function(t){return[0,100,t[0]]},i.gray.cmyk=function(t){return[0,0,0,t[0]]},i.gray.lab=function(t){return[t[0],0,0]},i.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}}));i.rgb,i.hsl,i.hsv,i.hwb,i.cmyk,i.xyz,i.lab,i.lch,i.hex,i.keyword,i.ansi16,i.ansi256,i.hcg,i.apple,i.gray;function o(){for(var t={},e=Object.keys(i),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function a(t){var e=o(),r=[t];e[t].distance=0;while(r.length)for(var n=r.pop(),a=Object.keys(i[n]),s=a.length,l=0;l<s;l++){var u=a[l],h=e[u];-1===h.distance&&(h.distance=e[n].distance+1,h.parent=n,r.unshift(u))}return e}function s(t,e){return function(r){return e(t(r))}}function l(t,e){var r=[e[t].parent,t],n=i[e[t].parent][t],o=e[t].parent;while(e[o].parent)r.unshift(e[o].parent),n=s(i[e[o].parent][o],n),o=e[o].parent;return n.conversion=r,n}var u=function(t){for(var e=a(t),r={},n=Object.keys(e),i=n.length,o=0;o<i;o++){var s=n[o],u=e[s];null!==u.parent&&(r[s]=l(s,e))}return r},h={},c=Object.keys(i);function d(t){var e=function(e){return void 0===e||null===e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}function f(t){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=t(e);if("object"===typeof r)for(var n=r.length,i=0;i<n;i++)r[i]=Math.round(r[i]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}c.forEach((function(t){h[t]={},Object.defineProperty(h[t],"channels",{value:i[t].channels}),Object.defineProperty(h[t],"labels",{value:i[t].labels});var e=u(t),r=Object.keys(e);r.forEach((function(r){var n=e[r];h[t][r]=f(n),h[t][r].raw=d(n)}))}));var p=h,g={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
8ive:[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]},m={getRgba:v,getHsla:y,getRgb:w,getHsl:_,getHwb:b,getAlpha:M,hexString:x,rgbString:k,rgbaString:S,percentString:A,percentaString:E,hslString:C,hslaString:R,hwbString:T,keyword:P};function v(t){if(t){var e=/^#([a-fA-F0-9]{3,4})$/i,r=/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,n=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,o=/(\w+)/,a=[0,0,0],s=1,l=t.match(e),u="";if(l){l=l[1],u=l[3];for(var h=0;h<a.length;h++)a[h]=parseInt(l[h]+l[h],16);u&&(s=Math.round(parseInt(u+u,16)/255*100)/100)}else if(l=t.match(r)){u=l[2],l=l[1];for(h=0;h<a.length;h++)a[h]=parseInt(l.slice(2*h,2*h+2),16);u&&(s=Math.round(parseInt(u,16)/255*100)/100)}else if(l=t.match(n)){for(h=0;h<a.length;h++)a[h]=parseInt(l[h+1]);s=parseFloat(l[4])}else if(l=t.match(i)){for(h=0;h<a.length;h++)a[h]=Math.round(2.55*parseFloat(l[h+1]));s=parseFloat(l[4])}else if(l=t.match(o)){if("transparent"==l[1])return[0,0,0,0];if(a=g[l[1]],!a)return}for(h=0;h<a.length;h++)a[h]=O(a[h],0,255);return s=s||0==s?O(s,0,1):1,a[3]=s,a}}function y(t){if(t){var e=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,r=t.match(e);if(r){var n=parseFloat(r[4]),i=O(parseInt(r[1]),0,360),o=O(parseFloat(r[2]),0,100),a=O(parseFloat(r[3]),0,100),s=O(isNaN(n)?1:n,0,1);return[i,o,a,s]}}}function b(t){if(t){var e=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,r=t.match(e);if(r){var n=parseFloat(r[4]),i=O(parseInt(r[1]),0,360),o=O(parseFloat(r[2]),0,100),a=O(parseFloat(r[3]),0,100),s=O(isNaN(n)?1:n,0,1);return[i,o,a,s]}}}function w(t){var e=v(t);return e&&e.slice(0,3)}function _(t){var e=y(t);return e&&e.slice(0,3)}function M(t){var e=v(t);return e||(e=y(t))||(e=b(t))?e[3]:void 0}function x(t,e){e=void 0!==e&&3===t.length?e:t[3];return"#"+D(t[0])+D(t[1])+D(t[2])+(e>=0&&e<1?D(Math.round(255*e)):"")}function k(t,e){return e<1||t[3]&&t[3]<1?S(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"}function S(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function A(t,e){if(e<1||t[3]&&t[3]<1)return E(t,e);var r=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return"rgb("+r+"%, "+n+"%, "+i+"%)"}function E(t,e){var r=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return"rgba("+r+"%, "+n+"%, "+i+"%, "+(e||t[3]||1)+")"}function C(t,e){return e<1||t[3]&&t[3]<1?R(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"}function R(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function T(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:"")+")"}function P(t){return B[t.slice(0,3)]}function O(t,e,r){return Math.min(Math.max(e,t),r)}function D(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var B={};for(var I in g)B[g[I]]=I;var L=function(t){return t instanceof L?t:this instanceof L?(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=m.getRgba(t),e?this.setValues("rgb",e):(e=m.getHsla(t))?this.setValues("hsl",e):(e=m.getHwb(t))&&this.setValues("hwb",e)):"object"===typeof t&&(e=t,void 0!==e.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 L(t);var e};L.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])}
vendor: 14,858 bytes, line 8
8,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%=360,t=t<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 m.hexString(this.values.rgb)},rgbString:function(){return m.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return m.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return m.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return m.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return m.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return m.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return m.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=[],r=0;r<t.length;r++){var n=t[r]/255;e[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.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,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return e<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,r=(e[0]+t)%360;return e[0]=r<0?360+r:r,this.setValues("hsl",e),this},mix:function(t,e){var r=this,n=t,i=void 0===e?.5:e,o=2*i-1,a=r.alpha()-n.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return this.rgb(s*r.red()+l*n.red(),s*r.green()+l*n.green(),s*r.blue()+l*n.blue()).alpha(r.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var t,e,r=new L,n=this.values,i=r.values;for(var o in n)n.hasOwnProperty(o)&&(t=n[o],e={}.toString.call(t),"[object Array]"===e?i[o]=t.slice(0):"[object Number]"===e?i[o]=t:console.error("unexpected color value:",t));return r}},L.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},L.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},L.prototype.getValues=function(t){for(var e=this.values,r={},n=0;n<t.length;n++)r[t.charAt(n)]=e[t][n];return 1!==e.alpha&&(r.a=e.alpha),r},L.prototype.setValues=function(t,e){var r,n,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(r=0;r<t.length;r++)i[t][r]=e[t.charAt(r)];s=e.a}else if(void 0!==e[o[t][0]]){var l=o[t];for(r=0;r<t.length;r++)i[t][r]=e[l[r]];s=e.alpha}if(i.alpha=Math.max(0,Math.min(1,void 0===s?i.alpha:s)),"alpha"===t)return!1;for(r=0;r<t.length;r++)n=Math.max(0,Math.min(a[t][r],i[t][r])),i[t][r]=Math.round(n);for(var u in o)u!==t&&(i[u]=p[t][u](i[t]));return!0},L.prototype.setSpace=function(t,e){var r=e[0];return void 0===r?this.getValues(t):("number"===typeof r&&(r=Array.prototype.slice.call(e)),this.setValues(t,r),this)},L.prototype.setChannel=function(t,e,r){var n=this.values[t];return void 0===r?n[e]:(r===n[e]||(n[e]=r,this.setValues(t,n)),this)},"undefined"!==typeof window&&(window.Color=L);var N=L;function F(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}var j={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null===t||"undefined"===typeof 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"undefined"===typeof t?e:t},valueAtIndexOrDefault:function(t,e,r){return j.valueOrDefault(j.isArray(t)?t[e]:t,r)},callback:function(t,e,r){if(t&&"function"===typeof t.call)return t.apply(r,e)},each:function(t,e,r,n){var i,o,a;if(j.isArray(t))if(o=t.length,n)for(i=o-1;i>=0;i--)e.call(r,t[i],i);else for(i=0;i<o;i++)e.call(r,t[i],i);else if(j.isObject(t))for(a=Object.keys(t),o=a.length,i=0;i<o;i++)e.call(r,t[a[i]],a[i])},arrayEquals:function(t,e){var r,n,i,o;if(!t||!e||t.length!==e.length)return!1;for(r=0,n=t.length;r<n;++r)if(i=t[r],o=e[r],i instanceof Array&&o instanceof Array){if(!j.arrayEquals(i,o))return!1}else if(i!==o)return!1;return!0},clone:function(t){if(j.isArray(t))return t.map(j.clone);if(j.isObject(t)){for(var e=Object.create(t),r=Object.keys(t),n=r.length,i=0;i<n;++i)e[r[i]]=j.clone(t[r[i]]);return e}return t},_merger:function(t,e,r,n){if(F(t)){var i=e[t],o=r[t];j.isObject(i)&&j.isObject(o)?j.merge(i,o,n):e[t]=j.clone(o)}},_mergerIf:function(t,e,r){if(F(t)){var n=e[t],i=r[t];j.isObject(n)&&j.isObject(i)?j.mergeIf(n,i):e.hasOwnProperty(t)||(e[t]=j.clone(i))}},merge:function(t,e,r){var n,i,o,a,s,l=j.isArray(e)?e:[e],u=l.length;if(!j.isObject(t))return t;for(r=r||{},n=r.merger||j._merger,i=0;i<u;++i)if(e=l[i],j.isObject(e))for(o=Object.keys(e),s=0,a=o.length;s<a;++s)n(o[s],t,e,r);return t},mergeIf:function(t,e){return j.merge(t,e,{merger:j._mergerIf})},extend:Object.assign||function(t){return j.merge(t,[].slice.call(arguments,1),{merger:function(t,e,r){e[t]=r[t]}})},inherits:function(t){var e=this,r=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},n=function(){this.constructor=r};return n.prototype=e.prototype,r.prototype=new n,r.extend=j.inherits,t&&j.extend(r.prototype,t),r.__super__=e.prototype,r},_deprecated:function(t,e,r,n){void 0!==e&&console.warn(t+': "'+r+'" is deprecated. Please use "'+n+'" instead')}},z=j;j.callCallback=j.callback,j.indexOf=function(t,e,r){return Array.prototype.indexOf.call(t,e,r)},j.getValueOrDefault=j.valueOrDefault,j.getValueAtIndexOrDefault=j.valueAtIndexOrDefault;var U={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,r=0,n=1;return 0===t?0:1===t?1:(r||(r=.3),n<1?(n=1,e=r/4):e=r/(2*Math.PI)*Math.asin(1/n),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},easeOutElastic:function(t){var e=1.70158,r=0,n=1;return 0===t?0:1===t?1:(r||(r=.3),n<1?(n=1,e=r/4):e=r/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},easeInOutElastic:function(t){var e=1.70158,r=0,n=1;return 0===t?0:2===(t/=.5)?1:(r||(r=.45),n<1?(n=1,e=r/4):e=r/(2*Math.PI)*Math.asin(1/n),t<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.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-U.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*U.easeInBounce(2*t):.5*U.easeOutBounce(2*t-1)+.5}},W={effects:U};z.easingEffects=U;var V=Math.PI,q=V/180,H=2*V,Y=V/2,Z=V/4,X=2*V/3,G={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,r,n,i,o){if(o){var a=Math.min(o,i/2,n/2),s=e+a,l=r+a,u=e+n-a,h=r+i-a;t.moveTo(e,l),s<u&&l<h?(t.arc(s,l,a,-V,-Y),t.arc(u,l,a,-Y,0),t.arc(u,h,a,0,Y),t.arc(s,h,a,Y,V)):s<u?(t.moveTo(s,r),t.arc(u,l,a,-Y,Y),t.arc(s,l,a,Y,V+Y)):l<h?(t.arc(s,l,a,-V,0),t.arc(s,h,a,0,V)):t.arc(s,l,a,-V,V),t.closePath(),t.moveTo(e,r)}else t.rect(e,r,n,i)},drawPoint:function(t,e,r,n,i,o){var a,s,l,u,h,c=(o||0)*q;if(e&&"object"===typeof e&&(a=e.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(n,i),t.rotate(c),t.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),void t.restore();if(!(isNaN(r)||r<=0)){switch(t.beginPath(),e){default:t.arc(n,i,r,0,H),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(c)*r,i-Math.cos(c)*r),c+=X,t.lineTo(n+Math.sin(c)*r,i-Math.cos(c)*r),c+=X,t.lineTo(n+Math.sin(c)*r,i-Math.cos(c)*r),t.closePath();break;case"rectRounded":h=.516*r,u=r-h,s=Math.cos(c+Z)*u,l=Math.sin(c+Z)*u,t.arc(n-s,i-l,h,c-V,c-Y),t.arc(n+l,i-s,h,c-Y,c),t.arc(n+s,i+l,h,c,c+Y),t.arc(n-l,i+s,h,c+Y,c+V),t.closePath();break;case"rect":if(!o){u=Math.SQRT1_2*r,t.rect(n-u,i-u,2*u,2*u);break}c+=Z;case"rectRot":s=Math.cos(c)*r,l=Math.sin(c)*r,t.moveTo(n-s,i-l),t.lineTo(n+l,i-s),t.lineTo(n+s,i+l),t.lineTo(n-l,i+s),t.closePath();break;case"crossRot":c+=Z;case"cross":s=Math.cos(c)*r,l=Math.sin(c)*r,t.moveTo(n-s,i-l),t.lineTo(n+s,i+l),t.moveTo(n+l,i-s),t.lineTo(n-l,i+s);break;case"star":s=Math.cos(c)*r,l=Math.sin(c)*r,t.moveTo(n-s,i-l),t.lineTo(n+s,i+l),t.moveTo(n+l,i-s),t.lineTo(n-l,i+s),c+=Z,s=Math.cos(c)*r,l=Math.sin(c)*r,t.moveTo(n-s,i-l),t.lineTo(n+s,i+l),t.moveTo(n+l,i-s),t.lineTo(n-l,i+s);break;case"line":s=Math.cos(c)*r,l=Math.sin(c)*r,t.moveTo(n-s,i-l),t.lineTo(n+s,i+l);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(c)*r,i+Math.sin(c)*r);break}t.fill(),t.stroke()}},_isPointInArea:function(t,e){var r=1e-6;return t.x>e.left-r&&t.x<e.right+r&&t.y>e.top-r&&t.y<e.bottom+r},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,r,n){var i=r.steppedLine;if(i){if("middle"===i){var o=(e.x+r.x)/2;t.lineTo(o,n?r.y:e.y),t.lineTo(o,n?e.y:r.y)}else"after"===i&&!n||"after"!==i&&n?t.lineTo(e.x,r.y):t.lineTo(r.x,e.y);t.lineTo(r.x,r.y)}else r.tension?t.bezierCurveTo(n?e.controlPointPreviousX:e.controlPointNextX,n?e.controlPointPreviousY:e.controlPointNextY,n?r.controlPointNextX:r.controlPointPreviousX,n?r.controlPointNextY:r.controlPointPreviousY,r.x,r.y):t.lineTo(r.x,r.y)}},K=G;z.clear=G.clear,z.drawRoundedRectangle=function(t){t.beginPath(),G.roundedRect.apply(G,arguments)};var $={_set:function(t,e){return z.merge(this[t]||(this[t]={}),e)}};$._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 J=$,Q=z.valueOrDefault;function tt(t){return!t||z.isNullOrUndef(t.size)||z.isNullOrUndef(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}var et={toLineHeight:function(t,e){var r=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!r||"normal"===r[1])return 1.2*e;switch(t=+r[2],r[3]){case"px":return t;case"%":t/=100;break}return e*t},toPadding:function(t){var e,r,n,i;return z.isObject(t)?(e=+t.top||0,r=+t.right||0,n=+t.bottom||0,i=+t.left||0):e=r=n=i=+t||0,{top:e,right:r,bottom:n,left:i,height:e+n,width:i+r}},_parseFont:function(t){var e=J.global,r=Q(t.fontSize,e.defaultFontSize),n={family:Q(t.fontFamily,e.defaultFontFamily),lineHeight:z.options.toLineHeight(Q(t.lineHeight,e.defaultLineHeight),r),size:r,style:Q(t.fontStyle,e.defaultFontStyle),weight:null,string:""};return n.string=tt(n),n},resolve:function(t,e,r,n){var i,o,a,s=!0;for(i=0,o=t.length;i<o;++i)if(a=t[i],void 0!==a&&(void 0!==e&&"function"===typeof a&&(a=a(e),s=!1),void 0!==r&&z.isArray(a)&&(a=a[r],s=!1),void 0!==a))return n&&!s&&(n.cacheable=!1),a}},rt={_factorize:function(t){var e,r=[],n=Math.sqrt(t);for(e=1;e<n;e++)t%e===0&&(r.push(e),r.push(t/e));return n===(0|n)&&r.push(n),r.sort((function(t,e){return t-e})).pop(),r},log10:Math.log10||function(t){var e=Math.log(t)*Math.LOG10E,r=Math.round(e),n=t===Math.pow(10,r);return n?r:e}},nt=rt;z.log10=rt.log10;var it=function(t,e){return{x:function(r){return t+t+e-r},setWidth:function(t){e=t},textAlign:function(t){return"center"===t?t:"right"===t?"left":"right"},xPlus:function(t,e){return t-e},leftForLtr:function(t,e){return t-e}}
vendor: 4,551 bytes, line 8
8},ot=function(){return{x:function(t){return t},setWidth:function(t){},textAlign:function(t){return t},xPlus:function(t,e){return t+e},leftForLtr:function(t,e){return t}}},at=function(t,e,r){return t?it(e,r):ot()},st=function(t,e){var r,n;"ltr"!==e&&"rtl"!==e||(r=t.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=n)},lt=function(t){var e=t.prevTextDirection;void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))},ut={getRtlAdapter:at,overrideTextDirection:st,restoreTextDirection:lt},ht=z,ct=W,dt=K,ft=et,pt=nt,gt=ut;function mt(t,e,r,n){var i,o,a,s,l,u,h,c,d,f=Object.keys(r);for(i=0,o=f.length;i<o;++i)if(a=f[i],u=r[a],e.hasOwnProperty(a)||(e[a]=u),s=e[a],s!==u&&"_"!==a[0]){if(t.hasOwnProperty(a)||(t[a]=s),l=t[a],h=typeof u,h===typeof l)if("string"===h){if(c=N(l),c.valid&&(d=N(u),d.valid)){e[a]=d.mix(c,n).rgbString();continue}}else if(ht.isFinite(l)&&ht.isFinite(u)){e[a]=l+(u-l)*n;continue}e[a]=u}}ht.easing=ct,ht.canvas=dt,ht.options=ft,ht.math=pt,ht.rtl=gt;var vt=function(t){ht.extend(this,t),this.initialize.apply(this,arguments)};ht.extend(vt.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=ht.extend({},t._model)),t._start={},t},transition:function(t){var e=this,r=e._model,n=e._start,i=e._view;return r&&1!==t?(i||(i=e._view={}),n||(n=e._start={}),mt(n,i,r,t),e):(e._view=ht.extend({},r),e._start=null,e)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return ht.isNumber(this._model.x)&&ht.isNumber(this._model.y)}}),vt.extend=ht.inherits;var yt=vt,bt=yt.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),wt=bt;Object.defineProperty(bt.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(bt.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}}),J._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:ht.noop,onComplete:ht.noop}});var _t={animations:[],request:null,addAnimation:function(t,e,r,n){var i,o,a=this.animations;for(e.chart=t,e.startTime=Date.now(),e.duration=r,n||(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=ht.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=ht.requestAnimFrame.call(window,(function(){t.request=null,t.startDigest()})))},startDigest:function(){var t=this;t.advance(),t.animations.length>0&&t.requestAnimationFrame()},advance:function(){var t,e,r,n,i=this.animations,o=0;while(o<i.length)t=i[o],e=t.chart,r=t.numSteps,n=Math.floor((Date.now()-t.startTime)/t.duration*r)+1,t.currentStep=Math.min(n,r),ht.callback(t.render,[e,t],e),ht.callback(t.onAnimationProgress,[t],e),t.currentStep>=r?(ht.callback(t.onAnimationComplete,[t],e),e.animating=!1,i.splice(o,1)):++o}},Mt=ht.options.resolve,xt=["push","pop","shift","splice","unshift"];function kt(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),xt.forEach((function(e){var r="onData"+e.charAt(0).toUpperCase()+e.slice(1),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),i=n.apply(this,e);return ht.each(t._chartjs.listeners,(function(t){"function"===typeof t[r]&&t[r].apply(t,e)})),i}})})))}function St(t,e){var r=t._chartjs;if(r){var n=r.listeners,i=n.indexOf(e);-1!==i&&n.splice(i,1),n.length>0||(xt.forEach((function(e){delete t[e]})),delete t._chartjs)}}var At=function(t,e){this.initialize(t,e)};ht.extend(At.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(t,e){var r=this;r.chart=t,r.index=e,r.linkScales(),r.addElements(),r._type=r.getMeta().type},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),r=t.chart,n=r.scales,i=t.getDataset(),o=r.options.scales;null!==e.xAxisID&&e.xAxisID in n&&!i.xAxisID||(e.xAxisID=i.xAxisID||o.xAxes[0].id),null!==e.
vendor: 20,766 bytes, line 8
8yAxisID&&e.yAxisID in n&&!i.yAxisID||(e.yAxisID=i.yAxisID||o.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&&St(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,r=e.dataElementType;return r&&new r({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,r=this,n=r.getMeta(),i=r.getDataset().data||[],o=n.data;for(t=0,e=i.length;t<e;++t)o[t]=o[t]||r.createMetaData(t);n.dataset=n.dataset||r.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=this,e=t.getDataset(),r=e.data||(e.data=[]);t._data!==r&&(t._data&&St(t._data,t),r&&Object.isExtensible(r)&&kt(r,t),t._data=r),t.resyncElements()},_configure:function(){var t=this;t._config=ht.merge(Object.create(null),[t.chart.options.datasets[t._type],t.getDataset()],{merger:function(t,e,r){"_meta"!==t&&"data"!==t&&ht._merger(t,e,r)}})},_update:function(t){var e=this;e._configure(),e._cachedDataOpts=null,e.update(t)},update:ht.noop,transition:function(t){for(var e=this.getMeta(),r=e.data||[],n=r.length,i=0;i<n;++i)r[i].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],r=e.length,n=0;for(t.dataset&&t.dataset.draw();n<r;++n)e[n].draw()},getStyle:function(t){var e,r=this,n=r.getMeta(),i=n.dataset;return r._configure(),i&&void 0===t?e=r._resolveDatasetElementOptions(i||{}):(t=t||0,e=r._resolveDataElementOptions(n.data[t]||{},t)),!1!==e.fill&&null!==e.fill||(e.backgroundColor=e.borderColor),e},_resolveDatasetElementOptions:function(t,e){var r,n,i,o,a=this,s=a.chart,l=a._config,u=t.custom||{},h=s.options.elements[a.datasetElementType.prototype._type]||{},c=a._datasetElementOptions,d={},f={chart:s,dataset:a.getDataset(),datasetIndex:a.index,hover:e};for(r=0,n=c.length;r<n;++r)i=c[r],o=e?"hover"+i.charAt(0).toUpperCase()+i.slice(1):i,d[i]=Mt([u[o],l[o],h[o]],f);return d},_resolveDataElementOptions:function(t,e){var r=this,n=t&&t.custom,i=r._cachedDataOpts;if(i&&!n)return i;var o,a,s,l,u=r.chart,h=r._config,c=u.options.elements[r.dataElementType.prototype._type]||{},d=r._dataElementOptions,f={},p={chart:u,dataIndex:e,dataset:r.getDataset(),datasetIndex:r.index},g={cacheable:!n};if(n=n||{},ht.isArray(d))for(a=0,s=d.length;a<s;++a)l=d[a],f[l]=Mt([n[l],h[l],c[l]],p,e,g);else for(o=Object.keys(d),a=0,s=o.length;a<s;++a)l=o[a],f[l]=Mt([n[l],h[d[l]],h[l],c[l]],p,e,g);return g.cacheable&&(r._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(t){ht.merge(t._model,t.$previousStyle||{}),delete t.$previousStyle},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],r=t._index,n=t.custom||{},i=t._model,o=ht.getHoverColor;t.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth},i.backgroundColor=Mt([n.hoverBackgroundColor,e.hoverBackgroundColor,o(i.backgroundColor)],void 0,r),i.borderColor=Mt([n.hoverBorderColor,e.hoverBorderColor,o(i.borderColor)],void 0,r),i.borderWidth=Mt([n.hoverBorderWidth,e.hoverBorderWidth,i.borderWidth],void 0,r)},_removeDatasetHoverStyle:function(){var t=this.getMeta().dataset;t&&this.removeHoverStyle(t)},_setDatasetHoverStyle:function(){var t,e,r,n,i,o,a=this.getMeta().dataset,s={};if(a){for(o=a._model,i=this._resolveDatasetElementOptions(a,!0),n=Object.keys(i),t=0,e=n.length;t<e;++t)r=n[t],s[r]=o[r],o[r]=i[r];a.$previousStyle=s}},resyncElements:function(){var t=this,e=t.getMeta(),r=t.getDataset().data,n=e.data.length,i=r.length;i<n?e.data.splice(i,n-i):i>n&&t.insertElements(n,i-n)},insertElements:function(t,e){for(var r=0;r<e;++r)this.addElementAndReset(t+r)},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)}}),At.extend=ht.inherits;var Et=At,Ct=2*Math.PI;function Rt(t,e){var r=e.startAngle,n=e.endAngle,i=e.pixelMargin,o=i/e.outerRadius,a=e.x,s=e.y;t.beginPath(),t.arc(a,s,e.outerRadius,r-o,n+o),e.innerRadius>i?(o=i/e.innerRadius,t.arc(a,s,e.innerRadius-i,n+o,r-o,!0)):t.arc(a,s,i,n+Math.PI/2,r-Math.PI/2),t.closePath(),t.clip()}function Tt(t,e,r,n){var i,o=r.endAngle;for(n&&(r.endAngle=r.startAngle+Ct,Rt(t,r),r.endAngle=o,r.endAngle===r.startAngle&&r.fullCircles&&(r.endAngle+=Ct,r.fullCircles--)),t.beginPath(),t.arc(r.x,r.y,r.innerRadius,r.startAngle+Ct,r.startAngle,!0),i=0;i<r.fullCircles;++i)t.stroke();for(t.beginPath(),t.arc(r.x,r.y,e.outerRadius,r.startAngle,r.startAngle+Ct),i=0;i<r.fullCircles;++i)t.stroke()}function Pt(t,e,r){var n="inner"===e.borderAlign;n?(t.lineWidth=2*e.borderWidth,t.lineJoin="round"):(t.lineWidth=e.borderWidth,t.lineJoin="bevel"),r.fullCircles&&Tt(t,e,r,n),n&&Rt(t,r),t.beginPath(),t.arc(r.x,r.y,e.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),t.stroke()}J._set("global",{elements:{arc:{backgroundColor:J.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var Ot=yt.extend({_type:"arc",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 r=this._view;if(r){var n=ht.getAngleFromPoint(r,{x:t,y:e}),i=n.angle,o=n.distance,a=r.startAngle,s=r.endAngle;while(s<a)s+=Ct;while(i>s)i-=Ct;while(i<a)i+=Ct;var l=i>=a&&i<=s,u=o>=r.innerRadius&&o<=r.outerRadius;return l&&u}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,r=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*r,y:t.y+Math.sin(e)*r}},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,r=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*r,y:t.y+Math.sin(e)*r}},draw:function(){var t,e=this._chart.ctx,r=this._view,n="inner"===r.borderAlign?.33:0,i={x:r.x,y:r.y,innerRadius:r.innerRadius,outerRadius:Math.max(r.outerRadius-n,0),pixelMargin:n,startAngle:r.startAngle,endAngle:r.endAngle,fullCircles:Math.floor(r.circumference/Ct)};if(e.save(),e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,i.fullCircles){for(i.endAngle=i.startAngle+Ct,e.beginPath(),e.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),e.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),e.closePath(),t=0;t<i.fullCircles;++t)e.fill();i.endAngle=i.startAngle+r.circumference%Ct}e.beginPath(),e.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),e.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),e.closePath(),e.fill(),r.borderWidth&&Pt(e,r,i),e.restore()}}),Dt=ht.valueOrDefault,Bt=J.global.defaultColor;J._set("global",{elements:{line:{tension:.4,backgroundColor:Bt,borderWidth:3,borderColor:Bt,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var It=yt.extend({_type:"line",draw:function(){var t,e,r,n=this,i=n._view,o=n._chart.ctx,a=i.spanGaps,s=n._children.slice(),l=J.global,u=l.elements.line,h=-1,c=n._loop;if(s.length){if(n._loop){for(t=0;t<s.length;++t)if(e=ht.previousItem(s,t),!s[t]._view.skip&&e._view.skip){s=s.slice(t).concat(s.slice(0,t)),c=a;break}c&&s.push(s[0])}for(o.save(),o.lineCap=i.borderCapStyle||u.borderCapStyle,o.setLineDash&&o.setLineDash(i.borderDash||u.borderDash),o.lineDashOffset=Dt(i.borderDashOffset,u.borderDashOffset),o.lineJoin=i.borderJoinStyle||u.borderJoinStyle,o.lineWidth=Dt(i.borderWidth,u.borderWidth),o.strokeStyle=i.borderColor||l.defaultColor,o.beginPath(),r=s[0]._view,r.skip||(o.moveTo(r.x,r.y),h=0),t=1;t<s.length;++t)r=s[t]._view,e=-1===h?ht.previousItem(s,t):s[h],r.skip||(h!==t-1&&!a||-1===h?o.moveTo(r.x,r.y):ht.canvas.lineTo(o,e._view,r),h=t);c&&o.closePath(),o.stroke(),o.restore()}}}),Lt=ht.valueOrDefault,Nt=J.global.defaultColor;function Ft(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}function jt(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius}J._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Nt,borderColor:Nt,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var zt=yt.extend({_type:"point",inRange:function(t,e){var r=this._view;return!!r&&Math.pow(t-r.x,2)+Math.pow(e-r.y,2)<Math.pow(r.hitRadius+r.radius,2)},inLabelRange:Ft,inXRange:Ft,inYRange:jt,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,r=this._chart.ctx,n=e.pointStyle,i=e.rotation,o=e.radius,a=e.x,s=e.y,l=J.global,u=l.defaultColor;e.skip||(void 0===t||ht.canvas._isPointInArea(e,t))&&(r.strokeStyle=e.borderColor||u,r.lineWidth=Lt(e.borderWidth,l.elements.point.borderWidth),r.fillStyle=e.backgroundColor||u,ht.canvas.drawPoint(r,n,o,a,s,i))}}),Ut=J.global.defaultColor;function Wt(t){return t&&void 0!==t.width}function Vt(t){var e,r,n,i,o;return Wt(t)?(o=t.width/2,e=t.x-o,r=t.x+o,n=Math.min(t.y,t.base),i=Math.max(t.y,t.base)):(o=t.height/2,e=Math.min(t.x,t.base),r=Math.max(t.x,t.base),n=t.y-o,i=t.y+o),{left:e,top:n,right:r,bottom:i}}function qt(t,e,r){return t===e?r:t===r?e:t}function Ht(t){var e=t.borderSkipped,r={};return e?(t.horizontal?t.base>t.x&&(e=qt(e,"left","right")):t.base<t.y&&(e=qt(e,"bottom","top")),r[e]=!0,r):r}function Yt(t,e,r){var n,i,o,a,s=t.borderWidth,l=Ht(t);return ht.isObject(s)?(n=+s.top||0,i=+s.right||0,o=+s.bottom||0,a=+s.left||0):n=i=o=a=+s||0,{t:l.top||n<0?0:n>r?r:n,r:l.right||i<0?0:i>e?e:i,b:l.bottom||o<0?0:o>r?r:o,l:l.left||a<0?0:a>e?e:a}}function Zt(t){var e=Vt(t),r=e.right-e.left,n=e.bottom-e.top,i=Yt(t,r/2,n/2);return{outer:{x:e.left,y:e.top,w:r,h:n},inner:{x:e.left+i.l,y:e.top+i.t,w:r-i.l-i.r,h:n-i.t-i.b}}}function Xt(t,e,r){var n=null===e,i=null===r,o=!(!t||n&&i)&&Vt(t);return o&&(n||e>=o.left&&e<=o.right)&&(i||r>=o.top&&r<=o.bottom)}J._set("global",{elements:{rectangle:{backgroundColor:Ut,borderColor:Ut,borderSkipped:"bottom",borderWidth:0}}});var Gt=yt.extend({_type:"rectangle",draw:function(){var t=this._chart.ctx,e=this._view,r=Zt(e),n=r.outer,i=r.inner;t.fillStyle=e.backgroundColor,t.fillRect(n.x,n.y,n.w,n.h),n.w===i.w&&n.h===i.h||(t.save(),t.beginPath(),t.rect(n.x,n.y,n.w,n.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 Xt(this._view,t,e)},inLabelRange:function(t,e){var r=this._view;return Wt(r)?Xt(r,t,null):Xt(r,null,e)},inXRange:function(t){return Xt(this._view,t,null)},inYRange:function(t){return Xt(this._view,null,t)},getCenterPoint:function(){var t,e,r=this._view;return Wt(r)?(t=r.x,e=(r.y+r.base)/2):(t=(r.x+r.base)/2,e=r.y),{x:t,y:e}},getArea:function(){var t=this._view;return Wt(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}}}),Kt={},$t=Ot,Jt=It,Qt=zt,te=Gt;Kt.Arc=$t,Kt.Line=Jt,Kt.Point=Qt,Kt.Rectangle=te;var ee=ht._deprecated,re=ht.valueOrDefault;function ne(t,e){var r,n,i,o,a=t._length;for(i=1,o=e.length;i<o;++i)a=Math.min(a,Math.abs(e[i]-e[i-1]));for(i=0,o=t.getTicks().length;i<o;++i)n=t.getPixelForTick(i),a=i>0?Math.min(a,Math.abs(n-r)):a,r=n;return a}function ie(t,e,r){var n,i,o=r.barThickness,a=e.stackCount,s=e.pixels[t],l=ht.isNullOrUndef(o)?ne(e.scale,e.pixels):-1;return ht.isNullOrUndef(o)?(n=l*r.categoryPercentage,i=r.barPercentage):(n=o*a,i=1),{chunk:n/a,ratio:i,start:s-n/2}}function oe(t,e,r){var n,i,o=e.pixels,a=o[t],s=t>0?o[t-1]:null,l=t<o.length-1?o[t+1]:null,u=r.categoryPercentage;return null===s&&(s=a-(null===l?e.end-e.start:l-a)),null===l&&(l=a+a-s),n=a-(a-Math.min(s,l))/2*u,i=Math.abs(l-s)/2*u,{chunk:i/e.stackCount,ratio:r.barPercentage,start:n}}J._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),J._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var ae=Et.extend({dataElementType:Kt.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var t,e,r=this;Et.prototype.initialize.apply(r,arguments),t=r.getMeta(),t.stack=r.getDataset().stack,t.bar=!0,e=r._getIndexScale().options,ee("bar chart",e.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),ee("bar chart",e.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),ee("bar chart",e.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),ee("bar chart",r._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),ee("bar chart",e.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(t){var e,r,n=this,i=n.getMeta().data;for(n._ruler=n.getRuler(),e=0,r=i.length;e<r;++e)n.updateElement(i[e],e,t)},updateElement:function(t,e,r){var n=this,i=n.getMeta(),o=n.getDataset(),a=n._resolveDataElementOptions(t,e);t._xScale=n.getScaleForId(i.xAxisID),t._yScale=n.getScaleForId(i.yAxisID),t._datasetIndex=n.index,t._index=e,t._model={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderSkipped:a.borderSkipped,borderWidth:a.borderWidth,datasetLabel:o.label,label:n.chart.data.labels[e]},ht.isArray(o.data[e])&&(t._model.borderSkipped=null),n._updateElementGeometry(t,e,r,a),t.pivot()},_updateElementGeometry:function(t,e,r,n){var i=this,o=t._model,a=i._getValueScale(),s=a.getBasePixel(),l=a.isHorizontal(),u=i._ruler||i.getRuler(),h=i.calculateBarValuePixels(i.index,e,n),c=i.calculateBarIndexPixels(i.index,e,u,n);o.horizontal=l,o.base=r?s:h.base,o.x=l?r?s:h.head:c.center,o.y=l?c.center:r?s:h.head,o.height=l?c.size:void 0,o.width=l?void 0:c.size},_getStacks:function(t){var e,r,n=this,i=n._getIndexScale(),o=i._getMatchingVisibleMetas(n._type),a=i.options.stacked,s=o.length,l=[];for(e=0;e<s;++e)if(r=o[e],(!1===a||-1===l.indexOf(r.stack)||void 0===a&&void 0===r.stack)&&l.push(r.stack),r.index===t)break;return l},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){var r=this._getStacks(t),n=void 0!==e?r.indexOf(e):-1;return-1===n?r.length-1:n},getRuler:function(){var t,e,r=this,n=r._getIndexScale(),i=[];for(t=0,e=r.getMeta().data.length;t<e;++t)i.push(n.getPixelForValue(null,t,r.index));return{pixels:i,start:n._startPixel,end:n._endPixel,stackCount:r.getStackCount(),scale:n}},calculateBarValuePixels:function(t,e,r){var n,i,o,a,s,l,u,h=this,c=h.chart,d=h._getValueScale(),f=d.isHorizontal(),p=c.data.datasets,g=d._getMatchingVisibleMetas(h._type),m=d._parseValue(p[t].data[e]),v=r.minBarLength,y=d.options.stacked,b=h.getMeta().stack,w=void 0===m.start?0:m.max>=0&&m.min>=0?m.min:m.max,_=void 0===m.start?m.end:m.max>=0&&m.min>=0?m.max-m.min:m.min-m.max,M=g.length;if(y||void 0===y&&void 0!==b)for(n=0;n<M;++n){if(i=g[n],i.index===t)break;i.stack===b&&(u=d._parseValue(p[i.index].data[e]),o=void 0===u.start?u.end:u.min>=0&&u.max>=0?u.max:u.min,(m.min<0&&o<0||m.max>=0&&o>0)&&(w+=o))}return a=d.getPixelForValue(w),s=d.getPixelForValue(w+_),l=s-a,void 0!==v&&Math.abs(l)<v&&(l=v,s=_>=0&&!f||_<0&&f?a-v:a+v),{size:l,base:a,head:s,center:s+l/2}},calculateBarIndexPixels:function(t,e,r,n){var i=this,o="flex"===n.barThickness?oe(e,r,n):ie(e,r,n),a=i.getStackIndex(t,i.getMeta().stack),s=o.start+o.chunk*a+o.chunk/2,l=Math.min(re(n.maxBarThickness,1/0),o.chunk*o.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}},draw:function(){var t=this,e=t.chart,r=t._getValueScale(),n=t.getMeta().data,i=t.getDataset(),o=n.length,a=0;for(ht.canvas.clipArea(e.ctx,e.chartArea);a<o;++a){var s=r._parseValue(i.data[a]);isNaN(s.min)||isNaN(s.max)||n[a].draw()}ht.canvas.unclipArea(e.ctx)},_resolveDataElementOptions:function(){var t=this,e=ht.extend({},Et.prototype._resolveDataElementOptions.apply(t,arguments)),r=t._getIndexScale().options,n=t._getValueScale().options;return e.barPercentage=re(r.barPercentage,e.barPercentage),e.barThickness=re(r.barThickness,e.barThickness),e.categoryPercentage=re(r.categoryPercentage,e.categoryPercentage),e.maxBarThickness=re(r.maxBarThickness,e.maxBarThickness),e.minBarLength=re(n.minBarLength,e.minBarLength),e}}),se=ht.valueOrDefault,le=ht.options.resolve;J._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 r=e.datasets[t.datasetIndex].label||"",n=e.datasets[t.datasetIndex].data[t.index];return r+": ("+t.xLabel+", "+t.yLabel+", "+n.r+")"}}}});var ue=Et.extend({dataElementType:Kt.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(t){var e=this,r=e.getMeta(),n=r.data;ht.each(n,(function(r,n){e.updateElement(r,n,t)}))},updateElement:function(t,e,r){var n=this,i=n.getMeta(),o=t.custom||{},a=n.getScaleForId(i.xAxisID),s=n.getScaleForId(i.yAxisID),l=n._resolveDataElementOptions(t,e),u=n.getDataset().data[e],h=n.index,c=r?a.getPixelForDecimal(.5):a.getPixelForValue("object"===typeof u?u:NaN,e,h),d=r?s.getBasePixel():s.getPixelForValue(u,e,h);t._xScale=a,t._yScale=s,t._options=l,t._datasetIndex=h,t._index=e,t._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:r?0:l.radius,skip:o.skip||isNaN(c)||isNaN(d),x:c,y:d},t.pivot()},setHoverStyle:function(t){var e=t._model,r=t._options,n=ht.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=se(r.hoverBackgroundColor,n(r.backgroundColor)),e.borderColor=se(r.hoverBorderColor,n(r.borderColor)),e.borderWidth=se(r.hoverBorderWidth,r.borderWidth),e.radius=r.radius+r.hoverRadius},_resolveDataElementOptions:function(t,e){var r=this,n=r.chart,i=r.getDataset(),o=t.custom||{},a=i.data[e]||{},s=Et.prototype._resolveDataElementOptions.apply(r,arguments),l={chart:n,dataIndex:e,dataset:i,datasetIndex:r.index};return r._cachedDataOpts===s&&(s=ht.extend({},s)),s.radius=le([o.radius,a.r,r._config.radius,n.options.elements.point.radius],l,e),s}}),he=ht.valueOrDefault,ce=Math.PI,de=2*ce,fe=ce/2;J._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e,r,n,i,o=document.createElement("ul"),a=t.data,s=a.datasets,l=a.labels;if(o.setAttribute("class",t.id+"-legend"),s.length)for(e=0,r=s[0].data.length;e<r;++e)n=o.appendChild(document.createElement("li")),i=n.appendChild(document.createElement("span")),i.style.backgroundColor=s[0].backgroundColor[e],l[e]&&n.appendChild(document.createTextNode(l[e]));return o.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(r,n){var i=t.getDatasetMeta(0),o=i.controller.getStyle(n);return{text:r,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(e.datasets[0].data[n])||i.data[n].hidden,index:n}})):[]}},onClick:function(t,e){var r,n,i,o=e.index,a=this.chart;for(r=0,n=(a.data.datasets||[]).length;r<n;++r)i=a.getDatasetMeta(r),i.data[o]&&(i.data[o].hidden=!i.data[o].hidden);a.update()}},cutoutPercentage:50,rotation:-fe,circumference:de,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var r=e.labels[t.index],n=": "+e.datasets[t.datasetIndex].data[t.index];return ht.isArray(r)?(r=r.slice(),r[0]+=n):r+=n,r}}}});var pe=Et.extend({dataElementType:Kt.Arc,linkScales:ht.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroun
8dColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(t){for(var e=0,r=0;r<t;++r)this.chart.isDatasetVisible(r)&&++e;return e},update:function(t){var e,r,n,i,o=this,a=o.chart,s=a.chartArea,l=a.options,u=1,h=1,c=0,d=0,f=o.getMeta(),p=f.data,g=l.cutoutPercentage/100||0,m=l.circumference,v=o._getRingWeight(o.index);if(m<de){var y=l.rotation%de;y+=y>=ce?-de:y<-ce?de:0;var b=y+m,w=Math.cos(y),_=Math.sin(y),M=Math.cos(b),x=Math.sin(b),k=y<=0&&b>=0||b>=de,S=y<=fe&&b>=fe||b>=de+fe,A=y===-ce||b>=ce,E=y<=-fe&&b>=-fe||b>=ce+fe,C=A?-1:Math.min(w,w*g,M,M*g),R=E?-1:Math.min(_,_*g,x,x*g),T=k?1:Math.max(w,w*g,M,M*g),P=S?1:Math.max(_,_*g,x,x*g);u=(T-C)/2,h=(P-R)/2,c=-(T+C)/2,d=-(P+R)/2}for(n=0,i=p.length;n<i;++n)p[n]._options=o._resolveDataElementOptions(p[n],n);for(a.borderWidth=o.getMaxBorderWidth(),e=(s.right-s.left-a.borderWidth)/u,r=(s.bottom-s.top-a.borderWidth)/h,a.outerRadius=Math.max(Math.min(e,r)/2,0),a.innerRadius=Math.max(a.outerRadius*g,0),a.radiusLength=(a.outerRadius-a.innerRadius)/(o._getVisibleDatasetWeightTotal()||1),a.offsetX=c*a.outerRadius,a.offsetY=d*a.outerRadius,f.total=o.calculateTotal(),o.outerRadius=a.outerRadius-a.radiusLength*o._getRingWeightOffset(o.index),o.innerRadius=Math.max(o.outerRadius-a.radiusLength*v,0),n=0,i=p.length;n<i;++n)o.updateElement(p[n],n,t)},updateElement:function(t,e,r){var n=this,i=n.chart,o=i.chartArea,a=i.options,s=a.animation,l=(o.left+o.right)/2,u=(o.top+o.bottom)/2,h=a.rotation,c=a.rotation,d=n.getDataset(),f=r&&s.animateRotate||t.hidden?0:n.calculateCircumference(d.data[e])*(a.circumference/de),p=r&&s.animateScale?0:n.innerRadius,g=r&&s.animateScale?0:n.outerRadius,m=t._options||{};ht.extend(t,{_datasetIndex:n.index,_index:e,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:l+i.offsetX,y:u+i.offsetY,startAngle:h,endAngle:c,circumference:f,outerRadius:g,innerRadius:p,label:ht.valueAtIndexOrDefault(d.label,e,i.data.labels[e])}});var v=t._model;r&&s.animateRotate||(v.startAngle=0===e?a.rotation:n.getMeta().data[e-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),t.pivot()},calculateTotal:function(){var t,e=this.getDataset(),r=this.getMeta(),n=0;return ht.each(r.data,(function(r,i){t=e.data[i],isNaN(t)||r.hidden||(n+=Math.abs(t))})),n},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?de*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,r,n,i,o,a,s,l,u=this,h=0,c=u.chart;if(!t)for(e=0,r=c.data.datasets.length;e<r;++e)if(c.isDatasetVisible(e)){n=c.getDatasetMeta(e),t=n.data,e!==u.index&&(o=n.controller);break}if(!t)return 0;for(e=0,r=t.length;e<r;++e)i=t[e],o?(o._configure(),a=o._resolveDataElementOptions(i,e)):a=i._options,"inner"!==a.borderAlign&&(s=a.borderWidth,l=a.hoverBorderWidth,h=s>h?s:h,h=l>h?l:h);return h},setHoverStyle:function(t){var e=t._model,r=t._options,n=ht.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=he(r.hoverBackgroundColor,n(r.backgroundColor)),e.borderColor=he(r.hoverBorderColor,n(r.borderColor)),e.borderWidth=he(r.hoverBorderWidth,r.borderWidth)},_getRingWeightOffset:function(t){for(var e=0,r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(e+=this._getRingWeight(r));return e},_getRingWeight:function(t){return Math.max(he(this.chart.data.datasets[t].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});J._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),J._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var ge=ae.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),me=ht.valueOrDefault,ve=ht.options.resolve,ye=ht.canvas._isPointInArea;function be(t,e){var r=t&&t.options.ticks||{},n=r.reverse,i=void 0===r.min?e:0,o=void 0===r.max?e:0;return{start:n?o:i,end:n?i:o}}function we(t,e,r){var n=r/2,i=be(t,n),o=be(e,n);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}function _e(t){var e,r,n,i;return ht.isObject(t)?(e=t.top,r=t.right,n=t.bottom,i=t.left):e=r=n=i=t,{top:e,right:r,bottom:n,left:i}}J._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 Me=Et.extend({datasetElementType:Kt.Line,dataElementType:Kt.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
8dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(t){var e,r,n=this,i=n.getMeta(),o=i.dataset,a=i.data||[],s=n.chart.options,l=n._config,u=n._showLine=me(l.showLine,s.showLines);for(n._xScale=n.getScaleForId(i.xAxisID),n._yScale=n.getScaleForId(i.yAxisID),u&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),o._scale=n._yScale,o._datasetIndex=n.index,o._children=a,o._model=n._resolveDatasetElementOptions(o),o.pivot()),e=0,r=a.length;e<r;++e)n.updateElement(a[e],e,t);for(u&&0!==o._model.tension&&n.updateBezierControlPoints(),e=0,r=a.length;e<r;++e)a[e].pivot()},updateElement:function(t,e,r){var n,i,o=this,a=o.getMeta(),s=t.custom||{},l=o.getDataset(),u=o.index,h=l.data[e],c=o._xScale,d=o._yScale,f=a.dataset._model,p=o._resolveDataElementOptions(t,e);n=c.getPixelForValue("object"===typeof h?h:NaN,e,u),i=r?d.getBasePixel():o.calculatePointY(h,e,u),t._xScale=c,t._yScale=d,t._options=p,t._datasetIndex=u,t._index=e,t._model={x:n,y:i,skip:s.skip||isNaN(n)||isNaN(i),radius:p.radius,pointStyle:p.pointStyle,rotation:p.rotation,backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,tension:me(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:p.hitRadius}},_resolveDatasetElementOptions:function(t){var e=this,r=e._config,n=t.custom||{},i=e.chart.options,o=i.elements.line,a=Et.prototype._resolveDatasetElementOptions.apply(e,arguments);return a.spanGaps=me(r.spanGaps,i.spanGaps),a.tension=me(r.lineTension,o.tension),a.steppedLine=ve([n.steppedLine,r.steppedLine,o.stepped]),a.clip=_e(me(r.clip,we(e._xScale,e._yScale,a.borderWidth))),a},calculatePointY:function(t,e,r){var n,i,o,a,s,l,u,h=this,c=h.chart,d=h._yScale,f=0,p=0;if(d.options.stacked){for(s=+d.getRightValue(t),l=c._getSortedVisibleDatasetMetas(),u=l.length,n=0;n<u;++n){if(o=l[n],o.index===r)break;i=c.data.datasets[o.index],"line"===o.type&&o.yAxisID===d.id&&(a=+d.getRightValue(i.data[e]),a<0?p+=a||0:f+=a||0)}return s<0?d.getPixelForValue(p+s):d.getPixelForValue(f+s)}return d.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,r,n,i=this,o=i.chart,a=i.getMeta(),s=a.dataset._model,l=o.chartArea,u=a.data||[];function h(t,e,r){return Math.max(Math.min(t,r),e)}if(s.spanGaps&&(u=u.filter((function(t){return!t._model.skip}))),"monotone"===s.cubicInterpolationMode)ht.splineCurveMonotone(u);else for(t=0,e=u.length;t<e;++t)r=u[t]._model,n=ht.splineCurve(ht.previousItem(u,t)._model,r,ht.nextItem(u,t)._model,s.tension),r.controlPointPreviousX=n.previous.x,r.controlPointPreviousY=n.previous.y,r.controlPointNextX=n.next.x,r.controlPointNextY=n.next.y;if(o.options.elements.line.capBezierPoints)for(t=0,e=u.length;t<e;++t)r=u[t]._model,ye(r,l)&&(t>0&&ye(u[t-1]._model,l)&&(r.controlPointPreviousX=h(r.controlPointPreviousX,l.left,l.right),r.controlPointPreviousY=h(r.controlPointPreviousY,l.top,l.bottom)),t<u.length-1&&ye(u[t+1]._model,l)&&(r.controlPointNextX=h(r.controlPointNextX,l.left,l.right),r.controlPointNextY=h(r.controlPointNextY,l.top,l.bottom)))},draw:function(){var t,e=this,r=e.chart,n=e.getMeta(),i=n.data||[],o=r.chartArea,a=r.canvas,s=0,l=i.length;for(e._showLine&&(t=n.dataset._model.clip,ht.canvas.clipArea(r.ctx,{left:!1===t.left?0:o.left-t.left,right:!1===t.right?a.width:o.right+t.right,top:!1===t.top?0:o.top-t.top,bottom:!1===t.bottom?a.height:o.bottom+t.bottom}),n.dataset.draw(),ht.canvas.unclipArea(r.ctx));s<l;++s)i[s].draw(o)},setHoverStyle:function(t){var e=t._model,r=t._options,n=ht.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=me(r.hoverBackgroundColor,n(r.backgroundColor)),e.borderColor=me(r.hoverBorderColor,n(r.borderColor)),e.borderWidth=me(r.hoverBorderWidth,r.borderWidth),e.radius=me(r.hoverRadius,r.radius)}}),xe=ht.options.resolve;J._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,r,n,i,o=document.createElement("ul"),a=t.data,s=a.datasets,l=a.labels;if(o.setAttribute("class",t.id+"-legend"),s.length)for(e=0,r=s[0].data.length;e<r;++e)n=o.appendChild(document.createElement("li")),i=n.appendChild(document.createElement("span")),i.style.backgroundColor=s[0].backgroundColor[e],l[e]&&n.appendChild(document.createTextNode(l[e]));return o.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(r,n){var i=t.getDatasetMeta(0),o=i.controller.getStyle(n);return{text:r,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(e.datasets[0].data[n])||i.data[n].hidden,index:n}})):[]}},onClick:function(t,e){var r,n,i,o=e.index,a=this.chart;for(r=0,n=(a.data.datasets||[]).length;r<n;++r)i=a.getDatasetMeta(r),i.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 ke=Et.extend({dataElementType:Kt.Arc,linkScales:ht.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroun
8dColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var e,r,n,i=this,o=i.getDataset(),a=i.getMeta(),s=i.chart.options.startAngle||0,l=i._starts=[],u=i._angles=[],h=a.data;for(i._updateRadius(),a.count=i.countVisibleElements(),e=0,r=o.data.length;e<r;e++)l[e]=s,n=i._computeAngle(e),u[e]=n,s+=n;for(e=0,r=h.length;e<r;++e)h[e]._options=i._resolveDataElementOptions(h[e],e),i.updateElement(h[e],e,t)},_updateRadius:function(){var t=this,e=t.chart,r=e.chartArea,n=e.options,i=Math.min(r.right-r.left,r.bottom-r.top);e.outerRadius=Math.max(i/2,0),e.innerRadius=Math.max(n.cutoutPercentage?e.outerRadius/100*n.cutoutPercentage:1,0),e.radiusLength=(e.outerRadius-e.innerRadius)/e.getVisibleDatasetCount(),t.outerRadius=e.outerRadius-e.radiusLength*t.index,t.innerRadius=t.outerRadius-e.radiusLength},updateElement:function(t,e,r){var n=this,i=n.chart,o=n.getDataset(),a=i.options,s=a.animation,l=i.scale,u=i.data.labels,h=l.xCenter,c=l.yCenter,d=a.startAngle,f=t.hidden?0:l.getDistanceFromCenterForValue(o.data[e]),p=n._starts[e],g=p+(t.hidden?0:n._angles[e]),m=s.animateScale?0:l.getDistanceFromCenterForValue(o.data[e]),v=t._options||{};ht.extend(t,{_datasetIndex:n.index,_index:e,_scale:l,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:h,y:c,innerRadius:0,outerRadius:r?m:f,startAngle:r&&s.animateRotate?d:p,endAngle:r&&s.animateRotate?d:g,label:ht.valueAtIndexOrDefault(u,e,u[e])}}),t.pivot()},countVisibleElements:function(){var t=this.getDataset(),e=this.getMeta(),r=0;return ht.each(e.data,(function(e,n){isNaN(t.data[n])||e.hidden||r++})),r},setHoverStyle:function(t){var e=t._model,r=t._options,n=ht.getHoverColor,i=ht.valueOrDefault;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=i(r.hoverBackgroundColor,n(r.backgroundColor)),e.borderColor=i(r.hoverBorderColor,n(r.borderColor)),e.borderWidth=i(r.hoverBorderWidth,r.borderWidth)},_computeAngle:function(t){var e=this,r=this.getMeta().count,n=e.getDataset(),i=e.getMeta();if(isNaN(n.data[t])||i.data[t].hidden)return 0;var o={chart:e.chart,dataIndex:t,dataset:n,datasetIndex:e.index};return xe([e.chart.options.elements.arc.angle,2*Math.PI/r],o,t)}});J._set("pie",ht.clone(J.doughnut)),J._set("pie",{cutoutPercentage:0});var Se=pe,Ae=ht.valueOrDefault;J._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Ee=Et.extend({datasetElementType:Kt.Line,dataElementType:Kt.Point,linkScales:ht.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
8dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var e,r,n=this,i=n.getMeta(),o=i.dataset,a=i.data||[],s=n.chart.scale,l=n._config;for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),o._scale=s,o._datasetIndex=n.index,o._children=a,o._loop=!0,o._model=n._resolveDatasetElementOptions(o),o.pivot(),e=0,r=a.length;e<r;++e)n.updateElement(a[e],e,t);for(n.updateBezierControlPoints(),e=0,r=a.length;e<r;++e)a[e].pivot()},updateElement:function(t,e,r){var n=this,i=t.custom||{},o=n.getDataset(),a=n.chart.scale,s=a.getPointPositionForValue(e,o.data[e]),l=n._resolveDataElementOptions(t,e),u=n.getMeta().dataset._model,h=r?a.xCenter:s.x,c=r?a.yCenter:s.y;t._scale=a,t._options=l,t._datasetIndex=n.index,t._index=e,t._model={x:h,y:c,skip:i.skip||isNaN(h)||isNaN(c),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:Ae(i.tension,u?u.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var t=this,e=t._config,r=t.chart.options,n=Et.prototype._resolveDatasetElementOptions.apply(t,arguments);return n.spanGaps=Ae(e.spanGaps,r.spanGaps),n.tension=Ae(e.lineTension,r.elements.line.tension),n},updateBezierControlPoints:function(){var t,e,r,n,i=this,o=i.getMeta(),a=i.chart.chartArea,s=o.data||[];function l(t,e,r){return Math.max(Math.min(t,r),e)}for(o.dataset._model.spanGaps&&(s=s.filter((function(t){return!t._model.skip}))),t=0,e=s.length;t<e;++t)r=s[t]._model,n=ht.splineCurve(ht.previousItem(s,t,!0)._model,r,ht.nextItem(s,t,!0)._model,r.tension),r.controlPointPreviousX=l(n.previous.x,a.left,a.right),r.controlPointPreviousY=l(n.previous.y,a.top,a.bottom),r.controlPointNextX=l(n.next.x,a.left,a.right),r.controlPointNextY=l(n.next.y,a.top,a.bottom)},setHoverStyle:function(t){var e=t._model,r=t._options,n=ht.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Ae(r.hoverBackgroundColor,n(r.backgroundColor)),e.borderColor=Ae(r.hoverBorderColor,n(r.borderColor)),e.borderWidth=Ae(r.hoverBorderWidth,r.borderWidth),e.radius=Ae(r.hoverRadius,r.radius)}});J._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),J._set("global",{datasets:{scatter:{showLine:!1}}});var Ce=Me,Re={bar:ae,bubble:ue,doughnut:pe,horizontalBar:ge,line:Me,polarArea:ke,pie:Se,radar:Ee,scatter:Ce};function Te(t,e){return t.native?{x:t.x,y:t.y}:ht.getRelativePosition(t,e)}function Pe(t,e){var r,n,i,o,a,s,l=t._getSortedVisibleDatasetMetas();for(n=0,o=l.length;n<o;++n)for(r=l[n].data,i=0,a=r.length;i<a;++i)s=r[i],s._view.skip||e(s)}function Oe(t,e){var r=[];return Pe(t,(function(t){t.inRange(e.x,e.y)&&r.push(t)})),r}function De(t,e,r,n){var i=Number.POSITIVE_INFINITY,o=[];return Pe(t,(function(t){if(!r||t.inRange(e.x,e.y)){var a=t.getCenterPoint(),s=n(e,a);s<i?(o=[t],i=s):s===i&&o.push(t)}})),o}function Be(t){var e=-1!==t.indexOf("x"),r=-1!==t.indexOf("y");return function(t,n){var i=e?Math.abs(t.x-n.x):0,o=r?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}function Ie(t,e,r){var n=Te(e,t);r.axis=r.axis||"x";var i=Be(r.axis),o=r.intersect?Oe(t,n):De(t,n,!1,i),a=[];return o.length?(t._getSortedVisibleDatasetMetas().forEach((function(t){var e=t.data[o[0]._index];e&&!e._view.skip&&a.push(e)})),a):[]}var Le={modes:{single:function(t,e){var r=Te(e,t),n=[];return Pe(t,(function(t){if(t.inRange(r.x,r.y))return n.push(t),n})),n.slice(0,1)},label:Ie,index:Ie,dataset:function(t,e,r){var n=Te(e,t);r.axis=r.axis||"xy";var i=Be(r.axis),o=r.intersect?Oe(t,n):De(t,n,!1,i);return o.length>0&&(o=t.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(t,e){return Ie(t,e,{intersect:!1})},point:function(t,e){var r=Te(e,t);return Oe(t,r)},nearest:function(t,e,r){var n=Te(e,t);r.axis=r.axis||"xy";var i=Be(r.axis);return De(t,n,r.intersect,i)},x:function(t,e,r){var n=Te(e,t),i=[],o=!1;return Pe(t,(function(t){t.inXRange(n.x)&&i.push(t),t.inRange(n.x,n.y)&&(o=!0)})),r.intersect&&!o&&(i=[]),i},y:function(t,e,r){var n=Te(e,t),i=[],o=!1;return Pe(t,(function(t){t.inYRange(n.y)&&i.push(t),t.inRange(n.x,n.y)&&(o=!0)})),r.intersect&&!o&&(i=[]),i}}},Ne=ht.extend;function Fe(t,e){return ht.where(t,(function(t){return t.pos===e}))}function je(t,e){return t.sort((function(t,r){var n=e?r:t,i=e?t:r;return n.weight===i.weight?n.index-i.index:n.weight-i.weight}))}function ze(t){var e,r,n,i=[];for(e=0,r=(t||[]).length;e<r;++e)n=t[e],i.push({index:e,box:n,pos:n.position,horizontal:n.isHorizontal(),weight:n.weight});return i}function Ue(t,e){var r,n,i;for(r=0,n=t.length;r<n;++r)i=t[r],i.width=i.horizontal?i.box.fullWidth&&e.availableWidth:e.vBoxMaxWidth,i.height=i.horizontal&&e.hBoxMaxHeight}function We(t){var e=ze(t),r=je(Fe(e,"left"),!0),n=je(Fe(e,"right")),i=je(Fe(e,"top"),!0),o=je(Fe(e,"bottom"));return{leftAndTop:r.concat(i),rightAndBottom:n.concat(o),chartArea:Fe(e,"chartArea"),vertical:r.concat(n),horizontal:i.concat(o)}}function Ve(t,e,r,n){return Math.max(t[r],e[r])+Math.max(t[n],e[n])}function qe(t,e,r){var n,i,o=r.box,a=t.maxPadding;if(r.size&&(t[r.pos]-=r.size),r.size=r.horizontal?o.height:o.width,t[r.pos]+=r.size,o.getPadding){var s=o.getPadding();a.top=Math.max(a.top,s.top),a.left=Math.max(a.left,s.left),a.bottom=Math.max(a.bottom,s.bottom),a.right=Math.max(a.right,s.right)}if(n=e.outerWidth-Ve(a,t,"left","right"),i=e.outerHeight-Ve(a,t,"top","bottom"),n!==t.w||i!==t.h){t.w=n,t.h=i;var l=r.horizontal?[n,t.w]:[i,t.h];return l[0]!==l[1]&&(!isNaN(l[0])||!isNaN(l[1]))}}function He(t){var e=t.maxPadding;function r(r){var n=Math.max(e[r]-t[r],0);return t[r]+=n,n}
vendor: 4,698 bytes, line 8
8t.y+=r("top"),t.x+=r("left"),r("right"),r("bottom")}function Ye(t,e){var r=e.maxPadding;function n(t){var n={left:0,top:0,right:0,bottom:0};return t.forEach((function(t){n[t]=Math.max(e[t],r[t])})),n}return n(t?["left","right"]:["top","bottom"])}function Ze(t,e,r){var n,i,o,a,s,l,u=[];for(n=0,i=t.length;n<i;++n)o=t[n],a=o.box,a.update(o.width||e.w,o.height||e.h,Ye(o.horizontal,e)),qe(e,r,o)&&(l=!0,u.length&&(s=!0)),a.fullWidth||u.push(o);return s&&Ze(u,e,r)||l}function Xe(t,e,r){var n,i,o,a,s=r.padding,l=e.x,u=e.y;for(n=0,i=t.length;n<i;++n)o=t[n],a=o.box,o.horizontal?(a.left=a.fullWidth?s.left:e.left,a.right=a.fullWidth?r.outerWidth-s.right:e.left+e.w,a.top=u,a.bottom=u+a.height,a.width=a.right-a.left,u=a.bottom):(a.left=l,a.right=l+a.width,a.top=e.top,a.bottom=e.top+e.h,a.height=a.bottom-a.top,l=a.right);e.x=l,e.y=u}J._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var Ge={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw:function(){e.draw.apply(e,arguments)}}]},t.boxes.push(e)},removeBox:function(t,e){var r=t.boxes?t.boxes.indexOf(e):-1;-1!==r&&t.boxes.splice(r,1)},configure:function(t,e,r){for(var n,i=["fullWidth","position","weight"],o=i.length,a=0;a<o;++a)n=i[a],r.hasOwnProperty(n)&&(e[n]=r[n])},update:function(t,e,r){if(t){var n=t.options.layout||{},i=ht.options.toPadding(n.padding),o=e-i.width,a=r-i.height,s=We(t.boxes),l=s.vertical,u=s.horizontal,h=Object.freeze({outerWidth:e,outerHeight:r,padding:i,availableWidth:o,vBoxMaxWidth:o/2/l.length,hBoxMaxHeight:a/2}),c=Ne({maxPadding:Ne({},i),w:o,h:a,x:i.left,y:i.top},i);Ue(l.concat(u),h),Ze(l,c,h),Ze(u,c,h)&&Ze(l,c,h),He(c),Xe(s.leftAndTop,c,h),c.x+=c.w,c.y+=c.h,Xe(s.rightAndBottom,c,h),t.chartArea={left:c.left,top:c.top,right:c.left+c.w,bottom:c.top+c.h},ht.each(s.chartArea,(function(e){var r=e.box;Ne(r,t.chartArea),r.update(c.w,c.h)}))}}},Ke={acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}},$e="/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n",Je=Object.freeze({__proto__:null,default:$e}),Qe=r(Je),tr="$chartjs",er="chartjs-",rr=er+"size-monitor",nr=er+"render-monitor",ir=er+"render-animation",or=["animationstart","webkitAnimationStart"],ar={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function sr(t,e){var r=ht.getStyle(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?Number(n[1]):void 0}function lr(t,e){var r=t.style,n=t.getAttribute("height"),i=t.getAttribute("width");if(t[tr]={initial:{height:n,width:i,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null===i||""===i){var o=sr(t,"width");void 0!==o&&(t.width=o)}if(null===n||""===n)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var a=sr(t,"height");void 0!==o&&(t.height=a)}return t}var ur=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(r){}return t}(),hr=!!ur&&{passive:!0};function cr(t,e,r){t.addEventListener(e,r,hr)}function dr(t,e,r){t.removeEventListener(e,r,hr)}function fr(t,e,r,n,i){return{type:t,chart:e,native:i||null,x:void 0!==r?r:null,y:void 0!==n?n:null}}function pr(t,e){var r=ar[t.type]||t.type,n=ht.getRelativePosition(t,e);return fr(r,e,n.x,n.y,t)}function gr(t,e){var r=!1,n=[];return function(){n=Array.prototype.slice.call(arguments),e=e||this,r||(r=!0,ht.requestAnimFrame.call(window,(function(){r=!1,t.apply(e,n)})))}}function mr(t){var e=document.createElement("div");return e.className=t||"",e}
8function vr(t){var e=1e6,r=mr(rr),n=mr(rr+"-expand"),i=mr(rr+"-shrink");n.appendChild(mr()),i.appendChild(mr()),r.appendChild(n),r.appendChild(i),r._reset=function(){n.scrollLeft=e,n.scrollTop=e,i.scrollLeft=e,i.scrollTop=e};var o=function(){r._reset(),t()};return cr(n,"scroll",o.bind(n,"expand")),cr(i,"scroll",o.bind(i,"shrink")),r}function yr(t,e){var r=t[tr]||(t[tr]={}),n=r.renderProxy=function(t){t.animationName===ir&&e()};ht.each(or,(function(e){cr(t,e,n)})),r.reflow=!!t.offsetParent,t.classList.add(nr)}function br(t){var e=t[tr]||{},r=e.renderProxy;r&&(ht.each(or,(function(e){dr(t,e,r)})),delete e.renderProxy),t.classList.remove(nr)}function wr(t,e,r){var n=t[tr]||(t[tr]={}),i=n.resizer=vr(gr((function(){if(n.resizer){var i=r.options.maintainAspectRatio&&t.parentNode,o=i?i.clientWidth:0;e(fr("resize",r)),i&&i.clientWidth<o&&r.canvas&&e(fr("resize",r))}})));yr(t,(function(){if(n.resizer){var e=t.parentNode;e&&e!==i.parentNode&&e.insertBefore(i,e.firstChild),i._reset()}}))}function _r(t){var e=t[tr]||{},r=e.resizer;delete e.resizer,br(t),r&&r.parentNode&&r.parentNode.removeChild(r)}function Mr(t,e){var r=t[tr]||(t[tr]={});if(!r.containsStyles){r.containsStyles=!0,e="/* Chart.js */\n"+e;var n=document.createElement("style");n.setAttribute("type","text/css"),n.appendChild(document.createTextNode(e)),t.appendChild(n)}}var xr={disableCSSInjection:!1,_enabled:"undefined"!==typeof window&&"undefined"!==typeof document,_ensureLoaded:function(t){if(!this.disableCSSInjection){var e=t.getRootNode?t.getRootNode():document,r=e.host?e:document.head;Mr(r,Qe)}},acquireContext:function(t,e){"string"===typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(this._ensureLoaded(t),lr(t,e),r):null},releaseContext:function(t){var e=t.canvas;if(e[tr]){var r=e[tr].initial;["height","width"].forEach((function(t){var n=r[t];ht.isNullOrUndef(n)?e.removeAttribute(t):e.setAttribute(t,n)})),ht.each(r.style||{},(function(t,r){e.style[r]=t})),e.width=e.width,delete e[tr]}},addEventListener:function(t,e,r){var n=t.canvas;if("resize"!==e){var i=r[tr]||(r[tr]={}),o=i.proxies||(i.proxies={}),a=o[t.id+"_"+e]=function(e){r(pr(e,t))};cr(n,e,a)}else wr(n,r,t)},removeEventListener:function(t,e,r){var n=t.canvas;if("resize"!==e){var i=r[tr]||{},o=i.proxies||{},a=o[t.id+"_"+e];a&&dr(n,e,a)}else _r(n)}};ht.addEvent=cr,ht.removeEvent=dr;var kr=xr._enabled?xr:Ke,Sr=ht.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},kr);J._set("global",{plugins:{}});var Ar={_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 r=e.indexOf(t);-1!==r&&e.splice(r,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,r){var n,i,o,a,s,l=this.descriptors(t),u=l.length;for(n=0;n<u;++n)if(i=l[n],o=i.plugin,s=o[e],"function"===typeof s&&(a=[t].concat(r||[]),a.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 r=[],n=[],i=t&&t.config||{},o=i.options&&i.options.plugins||{};return this._plugins.concat(i.plugins||[]).forEach((function(t){var e=r.indexOf(t);if(-1===e){var i=t.id,a=o[i];!1!==a&&(!0===a&&(a=ht.clone(J.global.plugins[i])),r.push(t),n.push({plugin:t,options:a||{}}))}})),e.descriptors=n,e.id=this._cacheId,n},_invalidate:function(t){delete t.$plugins}},Er={constructors:{},defaults:{},registerScaleType:function(t,e,r){this.constructors[t]=e,this.defaults[t]=ht.clone(r)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?ht.merge(Object.create(null),[J.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){var r=this;r.defaults.hasOwnProperty(t)&&(r.defaults[t]=ht.extend(r.defaults[t],e))},addScalesToLayout:function(t){ht.each(t.scales,(function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,Ge.addBox(t,e)}))}},Cr=ht.valueOrDefault,Rr=ht.rtl.getRtlAdapter;J._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,multiKeyBackgroun
vendor: 16,645 bytes, line 8
8d:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:ht.noop,title:function(t,e){var r="",n=e.labels,i=n?n.length:0;if(t.length>0){var o=t[0];o.label?r=o.label:o.xLabel?r=o.xLabel:i>0&&o.index<i&&(r=n[o.index])}return r},afterTitle:ht.noop,beforeBody:ht.noop,beforeLabel:ht.noop,label:function(t,e){var r=e.datasets[t.datasetIndex].label||"";return r&&(r+=": "),ht.isNullOrUndef(t.value)?r+=t.yLabel:r+=t.value,r},labelColor:function(t,e){var r=e.getDatasetMeta(t.datasetIndex),n=r.data[t.index],i=n._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:ht.noop,afterBody:ht.noop,beforeFooter:ht.noop,footer:ht.noop,afterFooter:ht.noop}}});var Tr={average:function(t){if(!t.length)return!1;var e,r,n=0,i=0,o=0;for(e=0,r=t.length;e<r;++e){var a=t[e];if(a&&a.hasValue()){var s=a.tooltipPosition();n+=s.x,i+=s.y,++o}}return{x:n/o,y:i/o}},nearest:function(t,e){var r,n,i,o=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(r=0,n=t.length;r<n;++r){var l=t[r];if(l&&l.hasValue()){var u=l.getCenterPoint(),h=ht.distanceBetweenPoints(e,u);h<s&&(s=h,i=l)}}if(i){var c=i.tooltipPosition();o=c.x,a=c.y}return{x:o,y:a}}};function Pr(t,e){return e&&(ht.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Or(t){return("string"===typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Dr(t){var e=t._xScale,r=t._yScale||t._scale,n=t._index,i=t._datasetIndex,o=t._chart.getDatasetMeta(i).controller,a=o._getIndexScale(),s=o._getValueScale();return{xLabel:e?e.getLabelForIndex(n,i):"",yLabel:r?r.getLabelForIndex(n,i):"",label:a?""+a.getLabelForIndex(n,i):"",value:s?""+s.getLabelForIndex(n,i):"",index:n,datasetIndex:i,x:t._model.x,y:t._model.y}}function Br(t){var e=J.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,rtl:t.rtl,textDirection:t.textDirection,bodyFontColor:t.bodyFontColor,_bodyFontFamily:Cr(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:Cr(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:Cr(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:Cr(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:Cr(t.titleFontStyle,e.defaultFontStyle),titleFontSize:Cr(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:Cr(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:Cr(t.footerFontStyle,e.defaultFontStyle),footerFontSize:Cr(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 Ir(t,e){var r=t._chart.ctx,n=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,l=e.footer.length,u=e.titleFontSize,h=e.bodyFontSize,c=e.footerFontSize;n+=s*u,n+=s?(s-1)*e.titleSpacing:0,n+=s?e.titleMarginBottom:0,n+=a*h,n+=a?(a-1)*e.bodySpacing:0,n+=l?e.footerMarginTop:0,n+=l*c,n+=l?(l-1)*e.footerSpacing:0;var d=0,f=function(t){i=Math.max(i,r.measureText(t).width+d)};return r.font=ht.fontString(u,e._titleFontStyle,e._titleFontFamily),ht.each(e.title,f),r.font=ht.fontString(h,e._bodyFontStyle,e._bodyFontFamily),ht.each(e.beforeBody.concat(e.afterBody),f),d=e.displayColors?h+2:0,ht.each(o,(function(t){ht.each(t.before,f),ht.each(t.lines,f),ht.each(t.after,f)})),d=0,r.font=ht.fontString(c,e._footerFontStyle,e._footerFontFamily),ht.each(e.footer,f),i+=2*e.xPadding,{width:i,height:n}}function Lr(t,e){var r,n,i,o,a,s=t._model,l=t._chart,u=t._chart.chartArea,h="center",c="center";s.y<e.height?c="top":s.y>l.height-e.height&&(c="bottom");var d=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===c?(r=function(t){return t<=d},n=function(t){return t>d}):(r=function(t){return t<=e.width/2},n=function(t){return t>=l.width-e.width/2}),i=function(t){return t+e.width+s.caretSize+s.caretPadding>l.width},o=function(t){return t-e.width-s.caretSize-s.caretPadding<0},a=function(t){return t<=f?"top":"bottom"},r(s.x)?(h="left",i(s.x)&&(h="center",c=a(s.y))):n(s.x)&&(h="right",o(s.x)&&(h="center",c=a(s.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:h,yAlign:p.yAlign?p.yAlign:c}}function Nr(t,e,r,n){var i=t.x,o=t.y,a=t.caretSize,s=t.caretPadding,l=t.cornerRadius,u=r.xAlign,h=r.yAlign,c=a+s,d=l+s;return"right"===u?i-=e.width:"center"===u&&(i-=e.width/2,i+e.width>n.width&&(i=n.width-e.width),i<0&&(i=0)),"top"===h?o+=c:o-="bottom"===h?e.height+c:e.height/2,"center"===h?"left"===u?i+=c:"right"===u&&(i-=c):"left"===u?i-=d:"right"===u&&(i+=d),{x:i,y:o}}function Fr(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function jr(t){return Pr([],Or(t))}var zr=yt.extend({initialize:function(){this._model=Br(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options,r=e.callbacks,n=r.beforeTitle.apply(t,arguments),i=r.title.apply(t,arguments),o=r.afterTitle.apply(t,arguments),a=[];return a=Pr(a,Or(n)),a=Pr(a,Or(i)),a=Pr(a,Or(o)),a},getBeforeBody:function(){return jr(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var r=this,n=r._options.callbacks,i=[];return ht.each(t,(function(t){var o={before:[],lines:[],after:[]};Pr(o.before,Or(n.beforeLabel.call(r,t,e))),Pr(o.lines,n.label.call(r,t,e)),Pr(o.after,Or(n.afterLabel.call(r,t,e))),i.push(o)})),i},getAfterBody:function(){return jr(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this,e=t._options.callbacks,r=e.beforeFooter.apply(t,arguments),n=e.footer.apply(t,arguments),i=e.afterFooter.apply(t,arguments),o=[];return o=Pr(o,Or(r)),o=Pr(o,Or(n)),o=Pr(o,Or(i)),o},update:function(t){var e,r,n=this,i=n._options,o=n._model,a=n._model=Br(i),s=n._active,l=n._data,u={xAlign:o.xAlign,yAlign:o.yAlign},h={x:o.x,y:o.y},c={width:o.width,height:o.height},d={x:o.caretX,y:o.caretY};if(s.length){a.opacity=1;var f=[],p=[];d=Tr[i.position].call(n,s,n._eventPosition);var g=[];for(e=0,r=s.length;e<r;++e)g.push(Dr(s[e]));i.filter&&(g=g.filter((function(t){return i.filter(t,l)}))),i.itemSort&&(g=g.sort((function(t,e){return i.itemSort(t,e,l)}))),ht.each(g,(function(t){f.push(i.callbacks.labelColor.call(n,t,n._chart)),p.push(i.callbacks.labelTextColor.call(n,t,n._chart))})),a.title=n.getTitle(g,l),a.beforeBody=n.getBeforeBody(g,l),a.body=n.getBody(g,l),a.afterBody=n.getAfterBody(g,l),a.footer=n.getFooter(g,l),a.x=d.x,a.y=d.y,a.caretPadding=i.caretPadding,a.labelColors=f,a.labelTextColors=p,a.dataPoints=g,c=Ir(this,a),u=Lr(this,c),h=Nr(a,c,u,n._chart)}else a.opacity=0;return a.xAlign=u.xAlign,a.yAlign=u.yAlign,a.x=h.x,a.y=h.y,a.width=c.width,a.height=c.height,a.caretX=d.x,a.caretY=d.y,n._model=a,t&&i.custom&&i.custom.call(n,a),n},drawCaret:function(t,e){var r=this._chart.ctx,n=this._view,i=this.getCaretPosition(t,e,n);r.lineTo(i.x1,i.y1),r.lineTo(i.x2,i.y2),r.lineTo(i.x3,i.y3)},getCaretPosition:function(t,e,r){var n,i,o,a,s,l,u=r.caretSize,h=r.cornerRadius,c=r.xAlign,d=r.yAlign,f=t.x,p=t.y,g=e.width,m=e.height;if("center"===d)s=p+m/2,"left"===c?(n=f,i=n-u,o=n,a=s+u,l=s-u):(n=f+g,i=n+u,o=n,a=s-u,l=s+u);else if("left"===c?(i=f+h+u,n=i-u,o=i+u):"right"===c?(i=f+g-h-u,n=i-u,o=i+u):(i=r.caretX,n=i-u,o=i+u),"top"===d)a=p,s=a-u,l=a;else{a=p+m,s=a+u,l=a;var v=o;o=n,n=v}return{x1:n,x2:i,x3:o,y1:a,y2:s,y3:l}},drawTitle:function(t,e,r){var n,i,o,a=e.title,s=a.length;if(s){var l=Rr(e.rtl,e.x,e.width);for(t.x=Fr(e,e._titleAlign),r.textAlign=l.textAlign(e._titleAlign),r.textBaseline="middle",n=e.titleFontSize,i=e.titleSpacing,r.fillStyle=e.titleFontColor,r.font=ht.fontString(n,e._titleFontStyle,e._titleFontFamily),o=0;o<s;++o)r.fillText(a[o],l.x(t.x),t.y+n/2),t.y+=n+i,o+1===s&&(t.y+=e.titleMarginBottom-i)}},drawBody:function(t,e,r){var n,i,o,a,s,l,u,h,c=e.bodyFontSize,d=e.bodySpacing,f=e._bodyAlign,p=e.body,g=e.displayColors,m=0,v=g?Fr(e,"left"):0,y=Rr(e.rtl,e.x,e.width),b=function(e){r.fillText(e,y.x(t.x+m),t.y+c/2),t.y+=c+d},w=y.textAlign(f);for(r.textAlign=f,r.textBaseline="middle",r.font=ht.fontString(c,e._bodyFontStyle,e._bodyFontFamily),t.x=Fr(e,w),r.fillStyle=e.bodyFontColor,ht.each(e.beforeBody,b),m=g&&"right"!==w?"center"===f?c/2+1:c+2:0,s=0,u=p.length;s<u;++s){for(n=p[s],i=e.labelTextColors[s],o=e.labelColors[s],r.fillStyle=i,ht.each(n.before,b),a=n.lines,l=0,h=a.length;l<h;++l){if(g){var _=y.x(v);r.fillStyle=e.legendColorBackground,r.fillRect(y.leftForLtr(_,c),t.y,c,c),r.lineWidth=1,r.strokeStyle=o.borderColor,r.strokeRect(y.leftForLtr(_,c),t.y,c,c),r.fillStyle=o.backgroundColor,r.fillRect(y.leftForLtr(y.xPlus(_,1),c-2),t.y+1,c-2,c-2),r.fillStyle=i}b(a[l])}ht.each(n.after,b)}m=0,ht.each(e.afterBody,b),t.y-=d},drawFooter:function(t,e,r){var n,i,o=e.footer,a=o.length;if(a){var s=Rr(e.rtl,e.x,e.width);for(t.x=Fr(e,e._footerAlign),t.y+=e.footerMarginTop,r.textAlign=s.textAlign(e._footerAlign),r.textBaseline="middle",n=e.footerFontSize,r.fillStyle=e.footerFontColor,r.font=ht.fontString(n,e._footerFontStyle,e._footerFontFamily),i=0;i<a;++i)r.fillText(o[i],s.x(t.x),t.y+n/2),t.y+=n+e.footerSpacing}},drawBackground:function(t,e,r,n){r.fillStyle=e.backgroundColor,r.strokeStyle=e.borderColor,r.lineWidth=e.borderWidth;var i=e.xAlign,o=e.yAlign,a=t.x,s=t.y,l=n.width,u=n.height,h=e.cornerRadius;r.beginPath(),r.moveTo(a+h,s),"top"===o&&this.drawCaret(t,n),r.lineTo(a+l-h,s),r.quadraticCurveTo(a+l,s,a+l,s+h),"center"===o&&"right"===i&&this.drawCaret(t,n),r.lineTo(a+l,s+u-h),r.quadraticCurveTo(a+l,s+u,a+l-h,s+u),"bottom"===o&&this.drawCaret(t,n),r.lineTo(a+h,s+u),r.quadraticCurveTo(a,s+u,a,s+u-h),"center"===o&&"left"===i&&this.drawCaret(t,n),r.lineTo(a,s+h),r.quadraticCurveTo(a,s,a+h,s),r.closePath(),r.fill(),e.borderWidth>0&&r.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var r={width:e.width,height:e.height},n={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(n,e,t,r),n.y+=e.yPadding,ht.rtl.overrideTextDirection(t,e.textDirection),this.drawTitle(n,e,t),this.drawBody(n,e,t),this.drawFooter(n,e,t),ht.rtl.restoreTextDirection(t,e.textDirection),t.restore())}},handleEvent:function(t){var e=this,r=e._options,n=!1;return e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:(e._active=e._chart.getElementsAtEventForMode(t,r.mode,r),r.reverse&&e._active.reverse()),n=!ht.arrayEquals(e._active,e._lastActive),n&&(e._lastActive=e._active,(r.enabled||r.custom)&&(e._eventPosition={x:t.x,y:t.y},e.update(!0),e.pivot())),n}}),Ur=Tr,Wr=zr;Wr.positioners=Ur;var Vr=ht.valueOrDefault;function qr(){return ht.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,r,n){if("xAxes"===t||"yAxes"===t){var i,o,a,s=r[t].length;for(e[t]||(e[t]=[]),i=0;i<s;++i)a=r[t][i],o=Vr(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?ht.merge(e[t][i],[Er.getScaleDefaults(o),a]):ht.merge(e[t][i],a)}else ht._merger(t,e,r,n)}})}function Hr(){return ht.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,r,n){var i=e[t]||Object.create(null),o=r[t];"scales"===t?e[t]=qr(i,o):"scale"===t?e[t]=ht.merge(i,[Er.getScaleDefaults(o.type),o]):ht._merger(t,e,r,n)}})}function Yr(t){t=t||Object.create(null);var e=t.data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=Hr(J.global,J[t.type],t.options||{}),t}function Zr(t){var e=t.options;ht.each(t.scales,(function(e){Ge.removeBox(t,e)})),e=Hr(J.global,J[t.config.type],e),t.options=t.config.options=e,t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.tooltip._options=e.tooltips,t.tooltip.initialize()}function Xr(t,e,r){var n,i=function(t){return t.id===n};do{n=e+r++}while(ht.findIndex(t,i)>=0);return n}function Gr(t){return"top"===t||"bottom"===t}function Kr(t,e){return function(r,n){return r[t]===n[t]?r[e]-n[e]:r[t]-n[t]}}J._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 $r=function(t,e){return this.construct(t,e),this};ht.extend($r.prototype,{construct:function(t,e){var r=this;e=Yr(e);var n=Sr.acquireContext(t,e),i=n&&n.canvas,o=i&&i.height,a=i&&i.width;r.id=ht.uid(),r.ctx=n,r.canvas=i,r.config=e,r.width=a,r.height=o,r.aspectRatio=o?a/o:null,r.options=e.options,r._bufferedRender=!1,r._layers=[],r.chart=r,r.controller=r,$r.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(t){r.config.data=t}}),n&&i?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return Ar.notify(t,"beforeInit"),ht.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.initToolTip(),Ar.notify(t,"afterInit"),t},clear:function(){return ht.canvas.clear(this),this},stop:function(){return _t.cancelAnimation(this),this},resize:function(t){var e=this,r=e.options,n=e.canvas,i=r.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(ht.getMaximumWidth(n))),a=Math.max(0,Math.floor(i?o/i:ht.getMaximumHeight(n)));if((e.width!==o||e.height!==a)&&(n.width=e.width=o,n.height=e.height=a,n.style.width=o+"px",n.style.height=a+"px",ht.retinaScale(e,r.devicePixelRatio),!t)){var s={width:o,height:a};Ar.notify(e,"resize",[s]),r.onResize&&r.onResize(e,s),e.stop(),e.update({duration:r.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},r=t.scale;ht.each(e.xAxes,(function(t,r){t.id||(t.id=Xr(e.xAxes,"x-axis-",r))})),ht.each(e.yAxes,(function(t,r){t.id||(t.id=Xr(e.yAxes,"y-axis-",r))})),r&&(r.id=r.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,r=t.scales||{},n=[],i=Object.keys(r).reduce((function(t,e){return t[e]=!1,t}),{});e.scales&&(n=n.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&&n.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),ht.each(n,(function(e){var n=e.options,o=n.id,a=Vr(n.type,e.dtype);Gr(n.position)!==Gr(e.dposition)&&(n.position=e.dposition),i[o]=!0;var s=null;if(o in r&&r[o].type===a)s=r[o],s.options=n,s.ctx=t.ctx,s.chart=t;else{var l=Er.getScaleConstructor(a);if(!l)return;s=new l({id:o,type:a,options:n,ctx:t.ctx,chart:t}),r[s.id]=s}s.mergeTicksOptions(),e.isDefault&&(t.scale=s)})),ht.each(i,(function(t,e){t||delete r[e]})),t.scales=r,Er.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t,e,r=this,n=[],i=r.data.datasets;for(t=0,e=i.length;t<e;t++){var o=i[t],a=r.getDatasetMeta(t),s=o.type||r.config.type;if(a.type&&a.type!==s&&(r.destroyDatasetMeta(t),a=r.getDatasetMeta(t)),a.type=s,a.order=o.order||0,a.index=t,a.controller)a.controller.updateIndex(t),a.controller.linkScales();else{var l=Re[a.type];if(void 0===l)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new l(r,t),n.push(a.controller)}}return n},resetElements:function(){var t=this;ht.each(t.data.datasets,(function(e,r){t.getDatasetMeta(r).controller.reset()}),t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,r,n=this;if(t&&"object"===typeof t||(t={duration:t,lazy:arguments[1]}),Zr(n),Ar._invalidate(n),!1!==Ar.notify(n,"beforeUpdate")){n.tooltip._data=n.data;var i=n.buildOrUpdateControllers();for(e=0,r=n.data.datasets.length;e<r;e++)n.getDatasetMeta(e).controller.buildOrUpdateElements();n.updateLayout(),n.options.animation&&n.options.animation.duration&&ht.each(i,(function(t){t.reset()})),n.updateDatasets(),n.tooltip.initialize(),n.lastActive=[],Ar.notify(n,"afterUpdate"),n._layers.sort(Kr("z","_idx")),n._bufferedRender?n._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:n.render(t)}},updateLayout:function(){var t=this;!1!==Ar.notify(t,"beforeLayout")&&(Ge.update(this,this.width,this.height),t._layers=[],ht.each(t.boxes,(function(e){e._configure&&e._configure(),t._layers.push.apply(t._layers,e._layers())}
vendor: 6,738 bytes, line 8
8),t),t._layers.forEach((function(t,e){t._idx=e})),Ar.notify(t,"afterScaleUpdate"),Ar.notify(t,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==Ar.notify(t,"beforeDatasetsUpdate")){for(var e=0,r=t.data.datasets.length;e<r;++e)t.updateDataset(e);Ar.notify(t,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this,r=e.getDatasetMeta(t),n={meta:r,index:t};!1!==Ar.notify(e,"beforeDatasetUpdate",[n])&&(r.controller._update(),Ar.notify(e,"afterDatasetUpdate",[n]))},render:function(t){var e=this;t&&"object"===typeof t||(t={duration:t,lazy:arguments[1]});var r=e.options.animation,n=Vr(t.duration,r&&r.duration),i=t.lazy;if(!1!==Ar.notify(e,"beforeRender")){var o=function(t){Ar.notify(e,"afterRender"),ht.callback(r&&r.onComplete,[t],e)};if(r&&n){var a=new wt({numSteps:n/16.66,easing:t.easing||r.easing,render:function(t,e){var r=ht.easing.effects[e.easing],n=e.currentStep,i=n/e.numSteps;t.draw(r(i),i,n)},onAnimationProgress:r.onProgress,onAnimationComplete:o});_t.addAnimation(e,a,n,i)}else e.draw(),o(new wt({numSteps:0,chart:e}));return e}},draw:function(t){var e,r,n=this;if(n.clear(),ht.isNullOrUndef(t)&&(t=1),n.transition(t),!(n.width<=0||n.height<=0)&&!1!==Ar.notify(n,"beforeDraw",[t])){for(r=n._layers,e=0;e<r.length&&r[e].z<=0;++e)r[e].draw(n.chartArea);for(n.drawDatasets(t);e<r.length;++e)r[e].draw(n.chartArea);n._drawTooltip(t),Ar.notify(n,"afterDraw",[t])}},transition:function(t){for(var e=this,r=0,n=(e.data.datasets||[]).length;r<n;++r)e.isDatasetVisible(r)&&e.getDatasetMeta(r).controller.transition(t);e.tooltip.transition(t)},_getSortedDatasetMetas:function(t){var e,r,n=this,i=n.data.datasets||[],o=[];for(e=0,r=i.length;e<r;++e)t&&!n.isDatasetVisible(e)||o.push(n.getDatasetMeta(e));return o.sort(Kr("order","index")),o},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(t){var e,r,n=this;if(!1!==Ar.notify(n,"beforeDatasetsDraw",[t])){for(e=n._getSortedVisibleDatasetMetas(),r=e.length-1;r>=0;--r)n.drawDataset(e[r],t);Ar.notify(n,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var r=this,n={meta:t,index:t.index,easingValue:e};!1!==Ar.notify(r,"beforeDatasetDraw",[n])&&(t.controller.draw(e),Ar.notify(r,"afterDatasetDraw",[n]))},_drawTooltip:function(t){var e=this,r=e.tooltip,n={tooltip:r,easingValue:t};!1!==Ar.notify(e,"beforeTooltipDraw",[n])&&(r.draw(),Ar.notify(e,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return Le.modes.single(this,t)},getElementsAtEvent:function(t){return Le.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return Le.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,r){var n=Le.modes[e];return"function"===typeof n?n(this,t,r):[]},getDatasetAtEvent:function(t){return Le.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,r=e.data.datasets[t];r._meta||(r._meta={});var n=r._meta[e.id];return n||(n=r._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r.order||0,index:t}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,r=this.data.datasets.length;e<r;++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,r=this.data.datasets[t],n=r._meta&&r._meta[e];n&&(n.controller.destroy(),delete r._meta[e])},destroy:function(){var t,e,r=this,n=r.canvas;for(r.stop(),t=0,e=r.data.datasets.length;t<e;++t)r.destroyDatasetMeta(t);n&&(r.unbindEvents(),ht.canvas.clear(r),Sr.releaseContext(r.ctx),r.canvas=null,r.ctx=null),Ar.notify(r,"destroy"),delete $r.instances[r.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new Wr({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var t=this,e=t._listeners={},r=function(){t.eventHandler.apply(t,arguments)};ht.each(t.options.events,(function(n){Sr.addEventListener(t,n,r),e[n]=r})),t.options.responsive&&(r=function(){t.resize()},Sr.addEventListener(t,"resize",r),e.resize=r)},unbindEvents:function(){var t=this,e=t._listeners;e&&(delete t._listeners,ht.each(e,(function(e,r){Sr.removeEventListener(t,r,e)})))},updateHoverStyle:function(t,e,r){var n,i,o,a=r?"set":"remove";for(i=0,o=t.length;i<o;++i)n=t[i],n&&this.getDatasetMeta(n._datasetIndex).controller[a+"HoverStyle"](n);"dataset"===e&&this.getDatasetMeta(t[0]._datasetIndex).controller["_"+a+"DatasetHoverStyle"]()},eventHandler:function(t){var e=this,r=e.tooltip;if(!1!==Ar.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var n=e.handleEvent(t);r&&(n=r._start?r.handleEvent(t):n|r.handleEvent(t)),Ar.notify(e,"afterEvent",[t]);var i=e._bufferedRequest;return i?e.render(i):n&&!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=this,r=e.options||{},n=r.hover,i=!1;return e.lastActive=e.lastActive||[],"mouseout"===t.type?e.active=[]:e.active=e.getElementsAtEventForMode(t,n.mode,n),ht.callback(r.onHover||r.hover.onHover,[t.native,e.active],e),"mouseup"!==t.type&&"click"!==t.type||r.onClick&&r.onClick.call(e,t.native,e.active),e.lastActive.length&&e.updateHoverStyle(e.lastActive,n.mode,!1),e.active.length&&n.mode&&e.updateHoverStyle(e.active,n.mode,!0),i=!ht.arrayEquals(e.active,e.lastActive),e.lastActive=e.active,i}}),$r.instances={};var Jr=$r;$r.Controller=$r,$r.types={},ht.configMerge=Hr,ht.scaleMerge=qr;var Qr=function(){function t(t,e,r){var n;return"string"===typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[r])):n=t,n}function e(t){return void 0!==t&&null!==t&&"none"!==t}function r(r,n,i){var o=document.defaultView,a=ht._getParentNode(r),s=o.getComputedStyle(r)[n],l=o.getComputedStyle(a)[n],u=e(s),h=e(l),c=Number.POSITIVE_INFINITY;return u||h?Math.min(u?t(s,r,i):c,h?t(l,a,i):c):"none"}ht.where=function(t,e){if(ht.isArray(t)&&Array.prototype.filter)return t.filter(e);var r=[];return ht.each(t,(function(t){e(t)&&r.push(t)})),r},ht.findIndex=Array.prototype.findIndex?function(t,e,r){return t.findIndex(e,r)}:function(t,e,r){r=void 0===r?t:r;for(var n=0,i=t.length;n<i;++n)if(e.call(r,t[n],n,t))return n;return-1},ht.findNextWhere=function(t,e,r){ht.isNullOrUndef(r)&&(r=-1);for(var n=r+1;n<t.length;n++){var i=t[n];if(e(i))return i}},ht.findPreviousWhere=function(t,e,r){ht.isNullOrUndef(r)&&(r=t.length);for(var n=r-1;n>=0;n--){var i=t[n];if(e(i))return i}},ht.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)}
8,ht.almostEquals=function(t,e,r){return Math.abs(t-e)<r},ht.almostWhole=function(t,e){var r=Math.round(t);return r-e<=t&&r+e>=t},ht.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},ht.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},ht.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},ht.toRadians=function(t){return t*(Math.PI/180)},ht.toDegrees=function(t){return t*(180/Math.PI)},ht._decimalPlaces=function(t){if(ht.isFinite(t)){var e=1,r=0;while(Math.round(t*e)/e!==t)e*=10,r++;return r}},ht.getAngleFromPoint=function(t,e){var r=e.x-t.x,n=e.y-t.y,i=Math.sqrt(r*r+n*n),o=Math.atan2(n,r);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:i}},ht.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},ht.aliasPixel=function(t){return t%2===0?0:.5},ht._alignPixel=function(t,e,r){var n=t.currentDevicePixelRatio,i=r/2;return Math.round((e-i)*n)/n+i},ht.splineCurve=function(t,e,r,n){var i=t.skip?e:t,o=e,a=r.skip?e:r,s=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),l=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),u=s/(s+l),h=l/(s+l);u=isNaN(u)?0:u,h=isNaN(h)?0:h;var c=n*u,d=n*h;return{previous:{x:o.x-c*(a.x-i.x),y:o.y-c*(a.y-i.y)},next:{x:o.x+d*(a.x-i.x),y:o.y+d*(a.y-i.y)}}},ht.EPSILON=Number.EPSILON||1e-14,ht.splineCurveMonotone=function(t){var e,r,n,i,o,a,s,l,u,h=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),c=h.length;for(e=0;e<c;++e)if(n=h[e],!n.model.skip){if(r=e>0?h[e-1]:null,i=e<c-1?h[e+1]:null,i&&!i.model.skip){var d=i.model.x-n.model.x;n.deltaK=0!==d?(i.model.y-n.model.y)/d:0}!r||r.model.skip?n.mK=n.deltaK:!i||i.model.skip?n.mK=r.deltaK:this.sign(r.deltaK)!==this.sign(n.deltaK)?n.mK=0:n.mK=(r.deltaK+n.deltaK)/2}for(e=0;e<c-1;++e)n=h[e],i=h[e+1],n.model.skip||i.model.skip||(ht.almostEquals(n.deltaK,0,this.EPSILON)?n.mK=i.mK=0:(o=n.mK/n.deltaK,a=i.mK/n.deltaK,l=Math.pow(o,2)+Math.pow(a,2),l<=9||(s=3/Math.sqrt(l),n.mK=o*s*n.deltaK,i.mK=a*s*n.deltaK)));for(e=0;e<c;++e)n=h[e],n.model.skip||(r=e>0?h[e-1]:null,i=e<c-1?h[e+1]:null,r&&!r.model.skip&&(u=(n.model.x-r.model.x)/3,n.model.controlPointPreviousX=n.model.x-u,n.model.controlPointPreviousY=n.model.y-u*n.mK),i&&!i.model.skip&&(u=(i.model.x-n.model.x)/3,n.model.controlPointNextX=n.model.x+u,n.model.controlPointNextY=n.model.y+u*n.mK))},ht.nextItem=function(t,e,r){return r?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},ht.previousItem=function(t,e,r){return r?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},ht.niceNum=function(t,e){var r,n=Math.floor(ht.log10(t)),i=t/Math.pow(10,n);return r=e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10,r*Math.pow(10,n)},ht.requestAnimFrame=function(){return"undefined"===typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),ht.getRelativePosition=function(t,e){var r,n,i=t.originalEvent||t,o=t.target||t.srcElement,a=o.getBoundingClientRect(),s=i.touches;s&&s.length>0?(r=s[0].clientX,n=s[0].clientY):(r=i.clientX,n=i.clientY);var l=parseFloat(ht.getStyle(o,"padding-left")),u=parseFloat(ht.getStyle(o,"padding-top")),h=parseFloat(ht.getStyle(o,"padding-right")),c=parseFloat(ht.getStyle(o,"padding-bottom")),d=a.right-a.left-l-h,f=a.bottom-a.top-u-c;return r=Math.round((r-a.left-l)/d*o.width/e.currentDevicePixelRatio),n=Math.round((n-a.top-u)/f*o.height/e.currentDevicePixelRatio),{x:r,y:n}},ht.getConstraintWidth=function(t){return r(t,"max-width","clientWidth")},ht.getConstraintHeight=function(t){return r(t,"max-height","clientHeight")},ht._calculatePadding=function(t,e,r){return e=ht.getStyle(t,e),e.indexOf("%")>-1?r*parseInt(e,10)/100:parseInt(e,10)},ht._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},ht.getMaximumWidth=function(t){var e=ht._getParentNode(t);if(!e)return t.clientWidth;var r=e.clientWidth,n=ht._calculatePadding(e,"padding-left",r),i=ht._calculatePadding(e,"padding-right",r),o=r-n-i,a=ht.getConstraintWidth(t);return isNaN(a)?o:Math.min(o,a)},ht.getMaximumHeight=function(t){var e=ht._getParentNode(t);if(!e)return t.clientHeight;var r=e.clientHeight,n=ht._calculatePadding(e,"padding-top",r),i=ht._calculatePadding(e,"padding-bottom",r),o=r-n-i,a=ht.getConstraintHeight(t);return isNaN(a)?o:Math.min(o,a)},ht.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},ht.retinaScale=function(t,e){var r=t.currentDevicePixelRatio=e||"undefined"!==typeof window&&window.devicePixelRatio||1;if(1!==r){var n=t.canvas,i=t.height,o=t.width;n.height=i*r,n.width=o*r,t.ctx.scale(r,r),n.style.height||n.style.width||(n.style.height=i+"px",n.style.width=o+"px")}},ht.fontString=function(t,e,r){return e+" "+t+"px "+r},ht.longestText=function(t,e,r,n){n=n||{};var i=n.data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(i=n.data={},o=n.garbageCollect=[],n.font=e),t.font=e;var a,s,l,u,h,c=0,d=r.length;for(a=0;a<d;
vendor: 45,438 bytes, line 8
8a++)if(u=r[a],void 0!==u&&null!==u&&!0!==ht.isArray(u))c=ht.measureText(t,i,o,c,u);else if(ht.isArray(u))for(s=0,l=u.length;s<l;s++)h=u[s],void 0===h||null===h||ht.isArray(h)||(c=ht.measureText(t,i,o,c,h));var f=o.length/2;if(f>r.length){for(a=0;a<f;a++)delete i[o[a]];o.splice(0,f)}return c},ht.measureText=function(t,e,r,n,i){var o=e[i];return o||(o=e[i]=t.measureText(i).width,r.push(i)),o>n&&(n=o),n},ht.numberOfLabelLines=function(t){var e=1;return ht.each(t,(function(t){ht.isArray(t)&&t.length>e&&(e=t.length)})),e},ht.color=N?function(t){return t instanceof CanvasGradient&&(t=J.global.defaultColor),N(t)}:function(t){return console.error("Color.js not found!"),t},ht.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:ht.color(t).saturate(.5).darken(.1).rgbString()}};function tn(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function en(t){this.options=t||{}}ht.extend(en.prototype,{formats:tn,parse:tn,format:tn,add:tn,diff:tn,startOf:tn,endOf:tn,_create:function(t){return t}}),en.override=function(t){ht.extend(en.prototype,t)};var rn=en,nn={_date:rn},on={formatters:{values:function(t){return ht.isArray(t)?t:""+t},linear:function(t,e,r){var n=r.length>3?r[2]-r[1]:r[1]-r[0];Math.abs(n)>1&&t!==Math.floor(t)&&(n=t-Math.floor(t));var i=ht.log10(Math.abs(n)),o="";if(0!==t){var a=Math.max(Math.abs(r[0]),Math.abs(r[r.length-1]));if(a<1e-4){var s=ht.log10(Math.abs(t)),l=Math.floor(s)-Math.floor(i);l=Math.max(Math.min(l,20),0),o=t.toExponential(l)}else{var u=-1*Math.floor(i);u=Math.max(Math.min(u,20),0),o=t.toFixed(u)}}else o="0";return o},logarithmic:function(t,e,r){var n=t/Math.pow(10,Math.floor(ht.log10(t)));return 0===t?"0":1===n||2===n||5===n||0===e||e===r.length-1?t.toExponential():""}}},an=ht.isArray,sn=ht.isNullOrUndef,ln=ht.valueOrDefault,un=ht.valueAtIndexOrDefault;function hn(t,e){for(var r=[],n=t.length/e,i=0,o=t.length;i<o;i+=n)r.push(t[Math.floor(i)]);return r}function cn(t,e,r){var n,i=t.getTicks().length,o=Math.min(e,i-1),a=t.getPixelForTick(o),s=t._startPixel,l=t._endPixel,u=1e-6;if(!(r&&(n=1===i?Math.max(a-s,l-a):0===e?(t.getPixelForTick(1)-a)/2:(a-t.getPixelForTick(o-1))/2,a+=o<e?n:-n,a<s-u||a>l+u)))return a}function dn(t,e){ht.each(t,(function(t){var r,n=t.gc,i=n.length/2;if(i>e){for(r=0;r<i;++r)delete t.data[n[r]];n.splice(0,i)}}))}function fn(t,e,r,n){var i,o,a,s,l,u,h,c,d,f,p,g,m,v=r.length,y=[],b=[],w=[],_=0,M=0;for(i=0;i<v;++i){if(s=r[i].label,l=r[i].major?e.major:e.minor,t.font=u=l.string,h=n[u]=n[u]||{data:{},gc:[]},c=l.lineHeight,d=f=0,sn(s)||an(s)){if(an(s))for(o=0,a=s.length;o<a;++o)p=s[o],sn(p)||an(p)||(d=ht.measureText(t,h.data,h.gc,d,p),f+=c)}else d=ht.measureText(t,h.data,h.gc,d,s),f=c;y.push(d),b.push(f),w.push(c/2),_=Math.max(d,_),M=Math.max(f,M)}function x(t){return{width:y[t]||0,height:b[t]||0,offset:w[t]||0}}return dn(n,v),g=y.indexOf(_),m=b.indexOf(M),{first:x(0),last:x(v-1),widest:x(g),highest:x(m)}}function pn(t){return t.drawTicks?t.tickMarkLength:0}function gn(t){var e,r;return t.display?(e=ht.options._parseFont(t),r=ht.options.toPadding(t.padding),e.lineHeight+r.height):0}function mn(t,e){return ht.extend(ht.options._parseFont({fontFamily:ln(e.fontFamily,t.fontFamily),fontSize:ln(e.fontSize,t.fontSize),fontStyle:ln(e.fontStyle,t.fontStyle),lineHeight:ln(e.lineHeight,t.lineHeight)}),{color:ht.options.resolve([e.fontColor,t.fontColor,J.global.defaultFontColor])})}function vn(t){var e=mn(t,t.minor),r=t.major.enabled?mn(t,t.major):e;return{minor:e,major:r}}function yn(t){var e,r,n,i=[];for(r=0,n=t.length;r<n;++r)e=t[r],"undefined"!==typeof e._index&&i.push(e);return i}function bn(t){var e,r,n=t.length;if(n<2)return!1;for(r=t[0],e=1;e<n;++e)if(t[e]-t[e-1]!==r)return!1;return r}function wn(t,e,r,n){var i,o,a,s,l=bn(t),u=(e.length-1)/n;if(!l)return Math.max(u,1);for(i=ht.math._factorize(l),a=0,s=i.length-1;a<s;a++)if(o=i[a],o>u)return o;return Math.max(u,1)}function _n(t){var e,r,n=[];for(e=0,r=t.length;e<r;e++)t[e].major&&n.push(e);return n}function Mn(t,e,r){var n,i,o=0,a=e[0];for(r=Math.ceil(r),n=0;n<t.length;n++)i=t[n],n===a?(i._index=n,o++,a=e[o*r]):delete i.label}function xn(t,e,r,n){var i,o,a,s,l=ln(r,0),u=Math.min(ln(n,t.length),t.length),h=0;e=Math.ceil(e),n&&(i=n-r,e=i/Math.floor(i/e)),s=l;while(s<0)h++,s=Math.round(l+h*e);for(o=Math.max(l,0);o<u;o++)a=t[o],o===s?(a._index=o,h++,s=Math.round(l+h*e)):delete a.label}J._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:on.formatters.values,minor:{},major:{}}});var kn=yt.extend({zeroLineIndex:0,getPadding:function(){var t=this;return{left:t.paddingLeft||0,top:t.paddingTop||0,right:t.paddingRight||0,bottom:t.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){ht.callback(this.options.beforeUpdate,[this])},update:function(t,e,r){var n,i,o,a,s,l=this,u=l.options.ticks,h=u.sampleSize;if(l.beforeUpdate(),l.maxWidth=t,l.maxHeight=e,l.margins=ht.extend({left:0,right:0,top:0,bottom:0},r),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),a=l.buildTicks()||[],a=l.afterBuildTicks(a)||a,(!a||!a.length)&&l.ticks)for(a=[],n=0,i=l.ticks.length;n<i;++n)a.push({value:l.ticks[n],major:!1});return l._ticks=a,s=h<a.length,o=l._convertTicksToLabels(s?hn(a,h):a),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=u.display&&(u.autoSkip||"auto"===u.source)?l._autoSkip(a):a,s&&(o=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=o,l.afterUpdate(),l.minSize},_configure:function(){var t,e,r=this,n=r.options.ticks.reverse;r.isHorizontal()?(t=r.left,e=r.right):(t=r.top,e=r.bottom,n=!n),r._startPixel=t,r._endPixel=e,r._reversePixels=n,r._length=e-t},afterUpdate:function(){ht.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){ht.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(){ht.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){ht.callback(this.options.beforeDataLimits,[this])},determineDataLimits:ht.noop,afterDataLimits:function(){ht.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){ht.callback(this.options.beforeBuildTicks,[this])},buildTicks:ht.noop,afterBuildTicks:function(t){var e=this;return an(t)&&t.length?ht.callback(e.options.afterBuildTicks,[e,t]):(e.ticks=ht.callback(e.options.afterBuildTicks,[e,e.ticks])||e.ticks,t)},beforeTickToLabelConversion:function(){ht.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this,e=t.options.ticks;t.ticks=t.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){ht.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){ht.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t,e,r,n,i,o,a,s=this,l=s.options,u=l.ticks,h=s.getTicks().length,c=u.minRotation||0,d=u.maxRotation,f=c;!s._isVisible()||!u.display||c>=d||h<=1||!s.isHorizontal()?s.labelRotation=c:(t=s._getLabelSizes(),e=t.widest.width,r=t.highest.height-t.highest.offset,n=Math.min(s.maxWidth,s.chart.width-e),i=l.offset?s.maxWidth/h:n/(h-1),e+6>i&&(i=n/(h-(l.offset?.5:1)),o=s.maxHeight-pn(l.gridLines)-u.padding-gn(l.scaleLabel),a=Math.sqrt(e*e+r*r),f=ht.toDegrees(Math.min(Math.asin(Math.min((t.highest.height+6)/i,1)),Math.asin(Math.min(o/a,1))-Math.asin(r/a))),f=Math.max(c,Math.min(d,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){ht.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){ht.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},r=t.chart,n=t.options,i=n.ticks,o=n.scaleLabel,a=n.gridLines,s=t._isVisible(),l="bottom"===n.position,u=t.isHorizontal();if(u?e.width=t.maxWidth:s&&(e.width=pn(a)+gn(o)),u?s&&(e.height=pn(a)+gn(o)):e.height=t.maxHeight,i.display&&s){var h=vn(i),c=t._getLabelSizes(),d=c.first,f=c.last,p=c.widest,g=c.highest,m=.4*h.minor.lineHeight,v=i.padding;if(u){var y=0!==t.labelRotation,b=ht.toRadians(t.labelRotation),w=Math.cos(b),_=Math.sin(b),M=_*p.width+w*(g.height-(y?g.offset:0))+(y?0:m);e.height=Math.min(t.maxHeight,e.height+M+v);var x,k,S=t.getPixelForTick(0)-t.left,A=t.right-t.getPixelForTick(t.getTicks().length-1);y?(x=l?w*d.width+_*d.offset:_*(d.height-d.offset),k=l?_*(f.height-f.offset):w*f.width+_*f.offset):(x=d.width/2,k=f.width/2),t.paddingLeft=Math.max((x-S)*t.width/(t.width-S),0)+3,t.paddingRight=Math.max((k-A)*t.width/(t.width-A),0)+3}else{var E=i.mirror?0:p.width+v+m;e.width=Math.min(t.maxWidth,e.width+E),t.paddingTop=d.height/2,t.paddingBottom=f.height/2}}t.handleMargins(),u?(t.width=t._length=r.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=r.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){ht.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(sn(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},_convertTicksToLabels:function(t){var e,r,n,i=this;for(i.ticks=t.map((function(t){return t.value})),i.beforeTickToLabelConversion(),e=i.convertTicksToLabels(t)||i.ticks,i.afterTickToLabelConversion(),r=0,n=t.length;r<n;++r)t[r].label=e[r];return e},_getLabelSizes:function(){var t=this,e=t._labelSizes;return e||(t._labelSizes=e=fn(t.ctx,vn(t.options.ticks),t.getTicks(),t.longestTextCache),t.longestLabelWidth=e.widest.width),e},_parseValue:function(t){var e,r,n,i;return an(t)?(e=+this.getRightValue(t[0]),r=+this.getRightValue(t[1]),n=Math.min(e,r),i=Math.max(e,r)):(t=+this.getRightValue(t),e=void 0,r=t,n=t,i=t),{min:n,max:i,start:e,end:r}},_getScaleLabel:function(t){var e=this._parseValue(t);return void 0!==e.start?"["+e.start+", "+e.end+"]":+this.getRightValue(t)},getLabelForIndex:ht.noop,getPixelForValue:ht.noop,getValueForPixel:ht.noop,getPixelForTick:function(t){var e=this,r=e.options.offset,n=e._ticks.length,i=1/Math.max(n-(r?0:1),1);return t<0||t>n-1?null:e.getPixelForDecimal(t*i+(r?i/2:0))},getPixelForDecimal:function(t){var e=this;return e._reversePixels&&(t=1-t),e._startPixel+t*e._length},getDecimalForPixel:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,r=t.max;return t.beginAtZero?0:e<0&&r<0?r:e>0&&r>0?e:0},_autoSkip:function(t){var e,r,n,i,o=this,a=o.options.ticks,s=o._length,l=a.maxTicksLimit||s/o._tickSize()+1,u=a.major.enabled?_n(t):[],h=u.length,c=u[0],d=u[h-1];if(h>l)return Mn(t,u,h/l),yn(t);if(n=wn(u,t,s,l),h>0){for(e=0,r=h-1;e<r;e++)xn(t,n,u[e],u[e+1]);return i=h>1?(d-c)/(h-1):null,xn(t,n,ht.isNullOrUndef(i)?0:c-i,c),xn(t,n,d,ht.isNullOrUndef(i)?t.length:d+i),yn(t)}return xn(t,n),yn(t)},_tickSize:function(){var t=this,e=t.options.ticks,r=ht.toRadians(t.labelRotation),n=Math.abs(Math.cos(r)),i=Math.abs(Math.sin(r)),o=t._getLabelSizes(),a=e.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return t.isHorizontal()?l*n>s*i?s/n:l/i:l*i<s*n?l/n:s/i},_isVisible:function(){var t,e,r,n=this,i=n.chart,o=n.options.display;if("auto"!==o)return!!o;for(t=0,e=i.data.datasets.length;t<e;++t)if(i.isDatasetVisible(t)&&(r=i.getDatasetMeta(t),r.xAxisID===n.id||r.yAxisID===n.id))return!0;return!1},_computeGridLineItems:function(t){var e,r,n,i,o,a,s,l,u,h,c,d,f,p,g,m,v,y=this,b=y.chart,w=y.options,_=w.gridLines,M=w.position,x=_.offsetGridLines,k=y.isHorizontal(),S=y._ticksToDraw,A=S.length+(x?1:0),E=pn(_),C=[],R=_.drawBorder?un(_.lineWidth,0,0):0,T=R/2,P=ht._alignPixel,O=function(t){return P(b,t,R)};for("top"===M?(e=O(y.bottom),s=y.bottom-E,u=e-T,c=O(t.top)+T,f=t.bottom):"bottom"===M?(e=O(y.top),c=t.top,f=O(t.bottom)-T,s=e+T,u=y.top+E):"left"===M?(e=O(y.right),a=y.right-E,l=e-T,h=O(t.left)+T,d=t.right):(e=O(y.left),h=t.left,d=O(t.right)-T,a=e+T,l=y.left+E),r=0;r<A;++r)n=S[r]||{},sn(n.label)&&r<S.length||(r===y.zeroLineIndex&&w.offset===x?(p=_.zeroLineWidth,g=_.zeroLineColor,m=_.zeroLineBorderDash||[],v=_.zeroLineBorderDashOffset||0):(p=un(_.lineWidth,r,1),g=un(_.color,r,"rgba(0,0,0,0.1)"),m=_.borderDash||[],v=_.borderDashOffset||0),i=cn(y,n._index||r,x),void 0!==i&&(o=P(b,i,p),k?a=l=h=d=o:s=u=c=f=o,C.push({tx1:a,ty1:s,tx2:l,ty2:u,x1:h,y1:c,x2:d,y2:f,width:p,color:g,borderDash:m,borderDashOffset:v})));return C.ticksLength=A,C.borderValue=e,C},_computeLabelItems:function(){var t,e,r,n,i,o,a,s,l,u,h,c,d=this,f=d.options,p=f.ticks,g=f.position,m=p.mirror,v=d.isHorizontal(),y=d._ticksToDraw,b=vn(p),w=p.padding,_=pn(f.gridLines),M=-ht.toRadians(d.labelRotation),x=[];for("top"===g?(o=d.bottom-_-w,a=M?"left":"center"):"bottom"===g?(o=d.top+_+w,a=M?"right":"center"):"left"===g?(i=d.right-(m?0:_)-w,a=m?"left":"right"):(i=d.left+(m?0:_)+w,a=m?"right":"left"),t=0,e=y.length;t<e;++t)r=y[t],n=r.label,sn(n)||(s=d.getPixelForTick(r._index||t)+p.labelOffset,l=r.major?b.major:b.minor,u=l.lineHeight,h=an(n)?n.length:1,v?(i=s,c="top"===g?((M?1:.5)-h)*u:(M?0:.5)*u):(o=s,c=(1-h)*u/2),x.push({x:i,y:o,rotation:M,label:n,font:l,textOffset:c,textAlign:a}));return x},_drawGrid:function(t){var e=this,r=e.options.gridLines;if(r.display){var n,i,o,a,s,l=e.ctx,u=e.chart,h=ht._alignPixel,c=r.drawBorder?un(r.lineWidth,0,0):0,d=e._gridLineItems||(e._gridLineItems=e._computeGridLineItems(t));for(o=0,a=d.length;o<a;++o)s=d[o],n=s.width,i=s.color,n&&i&&(l.save(),l.lineWidth=n,l.strokeStyle=i,l.setLineDash&&(l.setLineDash(s.borderDash),l.lineDashOffset=s.borderDashOffset),l.beginPath(),r.drawTicks&&(l.moveTo(s.tx1,s.ty1),l.lineTo(s.tx2,s.ty2)),r.drawOnChartArea&&(l.moveTo(s.x1,s.y1),l.lineTo(s.x2,s.y2)),l.stroke(),l.restore());if(c){var f,p,g,m,v=c,y=un(r.lineWidth,d.ticksLength-1,1),b=d.borderValue;e.isHorizontal()?(f=h(u,e.left,v)-v/2,p=h(u,e.right,y)+y/2,g=m=b):(g=h(u,e.top,v)-v/2,m=h(u,e.bottom,y)+y/2,f=p=b),l.lineWidth=c,l.strokeStyle=un(r.color,0),l.beginPath(),l.moveTo(f,g),l.lineTo(p,m),l.stroke()}}},_drawLabels:function(){var t=this,e=t.options.ticks;if(e.display){var r,n,i,o,a,s,l,u,h=t.ctx,c=t._labelItems||(t._labelItems=t._computeLabelItems());for(r=0,i=c.length;r<i;++r){if(a=c[r],s=a.font,h.save(),h.translate(a.x,a.y),h.rotate(a.rotation),h.font=s.string,h.fillStyle=s.color,h.textBaseline="middle",h.textAlign=a.textAlign,l=a.label,u=a.textOffset,an(l))for(n=0,o=l.length;n<o;++n)h.fillText(""+l[n],0,u),u+=s.lineHeight;else h.fillText(l,0,u);h.restore()}}},_drawTitle:function(){var t=this,e=t.ctx,r=t.options,n=r.scaleLabel;if(n.display){var i,o,a=ln(n.fontColor,J.global.defaultFontColor),s=ht.options._parseFont(n),l=ht.options.toPadding(n.padding),u=s.lineHeight/2,h=r.position,c=0;if(t.isHorizontal())i=t.left+t.width/2,o="bottom"===h?t.bottom-u-l.bottom:t.top+u+l.top;else{var d="left"===h;i=d?t.left+u+l.top:t.right-u-l.top,o=t.top+t.height/2,c=d?-.5*Math.PI:.5*Math.PI}e.save(),e.translate(i,o),e.rotate(c),e.textAlign="center",e.textBaseline="middle",e.fillStyle=a,e.font=s.string,e.fillText(n.labelString,0,0),e.restore()}},draw:function(t){var e=this;e._isVisible()&&(e._drawGrid(t),e._drawTitle(),e._drawLabels())},_layers:function(){var t=this,e=t.options,r=e.ticks&&e.ticks.z||0,n=e.gridLines&&e.gridLines.z||0;return t._isVisible()&&r!==n&&t.draw===t._draw?[{z:n,draw:function(){t._drawGrid.apply(t,arguments),t._drawTitle.apply(t,arguments)}},{z:r,draw:function(){t._drawLabels.apply(t,arguments)}}]:[{z:r,draw:function(){t.draw.apply(t,arguments)}}]},_getMatchingVisibleMetas:function(t){var e=this,r=e.isHorizontal();return e.chart._getSortedVisibleDatasetMetas().filter((function(n){return(!t||n.type===t)&&(r?n.xAxisID===e.id:n.yAxisID===e.id)}))}});kn.prototype._draw=kn.prototype.draw;var Sn=kn,An=ht.isNullOrUndef,En={position:"bottom"},Cn=Sn.extend({determineDataLimits:function(){var t,e=this,r=e._getLabels(),n=e.options.ticks,i=n.min,o=n.max,a=0,s=r.length-1;void 0!==i&&(t=r.indexOf(i),t>=0&&(a=t)),void 0!==o&&(t=r.indexOf(o),t>=0&&(s=t)),e.minIndex=a,e.maxIndex=s,e.min=r[a],e.max=r[s]},buildTicks:function(){var t=this,e=t._getLabels(),r=t.minIndex,n=t.maxIndex;t.ticks=0===r&&n===e.length-1?e:e.slice(r,n+1)},getLabelForIndex:function(t,e){var r=this,n=r.chart;return n.getDatasetMeta(e).controller._getValueScaleId()===r.id?r.getRightValue(n.data.datasets[e].data[t]):r._getLabels()[t]},_configure:function(){var t=this,e=t.options.offset,r=t.ticks;Sn.prototype._configure.call(t),t.isHorizontal()||(t._reversePixels=!t._reversePixels),r&&(t._startValue=t.minIndex-(e?.5:0),t._valueRange=Math.max(r.length-(e?0:1),1))},getPixelForValue:function(t,e,r){var n,i,o,a=this;return An(e)||An(r)||(t=a.chart.data.datasets[r].data[e]),An(t)||(n=a.isHorizontal()?t.x:t.y),(void 0!==n||void 0!==t&&isNaN(e))&&(i=a._getLabels(),t=ht.valueOrDefault(n,t),o=i.indexOf(t),e=-1!==o?o:e,isNaN(e)&&(e=t)),a.getPixelForDecimal((e-a._startValue)/a._valueRange)},getPixelForTick:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){var e=this,r=Math.round(e._startValue+e.getDecimalForPixel(t)*e._valueRange);return Math.min(Math.max(r,0),e.ticks.length-1)},getBasePixel:function(){return this.bottom}}),Rn=En;Cn._defaults=Rn;var Tn=ht.noop,Pn=ht.isNullOrUndef;function On(t,e){var r,n,i,o,a=[],s=1e-14,l=t.stepSize,u=l||1,h=t.maxTicks-1,c=t.min,d=t.max,f=t.precision,p=e.min,g=e.max,m=ht.niceNum((g-p)/h/u)*u;if(m<s&&Pn(c)&&Pn(d))return[p,g];o=Math.ceil(g/m)-Math.floor(p/m),o>h&&(m=ht.niceNum(o*m/h/u)*u),l||Pn(f)?r=Math.pow(10,ht._decimalPlaces(m)):(r=Math.pow(10,f),m=Math.ceil(m*r)/r),n=Math.floor(p/m)*m,i=Math.ceil(g/m)*m,l&&(!Pn(c)&&ht.almostWhole(c/m,m/1e3)&&(n=c),!Pn(d)&&ht.almostWhole(d/m,m/1e3)&&(i=d)),o=(i-n)/m,o=ht.almostEquals(o,Math.round(o),m/1e3)?Math.round(o):Math.ceil(o),n=Math.round(n*r)/r,i=Math.round(i*r)/r,a.push(Pn(c)?n:c);for(var v=1;v<o;++v)a.push(Math.round((n+v*m)*r)/r);return a.push(Pn(d)?i:d),a}var Dn=Sn.extend({getRightValue:function(t){return"string"===typeof t?+t:Sn.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options,r=e.ticks;if(r.beginAtZero){var n=ht.sign(t.min),i=ht.sign(t.max);n<0&&i<0?t.max=0:n>0&&i>0&&(t.min=0)}var o=void 0!==r.min||void 0!==r.suggestedMin,a=void 0!==r.max||void 0!==r.suggestedMax;void 0!==r.min?t.min=r.min:void 0!==r.suggestedMin&&(null===t.min?t.min=r.suggestedMin:t.min=Math.min(t.min,r.suggestedMin)),void 0!==r.max?t.max=r.max:void 0!==r.suggestedMax&&(null===t.max?t.max=r.suggestedMax:t.max=Math.max(t.max,r.suggestedMax)),o!==a&&t.min>=t.max&&(o?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,r.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this,r=e.options.ticks,n=r.stepSize,i=r.maxTicksLimit;return n?t=Math.ceil(e.max/n)-Math.floor(e.min/n)+1:(t=e._computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:Tn,buildTicks:function(){var t=this,e=t.options,r=e.ticks,n=t.getTickLimit();n=Math.max(2,n);var i={maxTicks:n,min:r.min,max:r.max,precision:r.precision,stepSize:ht.valueOrDefault(r.fixedStepSize,r.stepSize)},o=t.ticks=On(i,t);t.handleDirectionalChanges(),t.max=ht.max(o),t.min=ht.min(o),r.reverse?(o.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),Sn.prototype.convertTicksToLabels.call(t)},_configure:function(){var t,e=this,r=e.getTicks(),n=e.min,i=e.max;Sn.prototype._configure.call(e),e.options.offset&&r.length&&(t=(i-n)/Math.max(r.length-1,1)/2,n-=t,i+=t),e._startValue=n,e._endValue=i,e._valueRange=i-n}}),Bn={position:"left",ticks:{callback:on.formatters.linear}},In=0,Ln=1;function Nn(t,e,r){var n=[r.type,void 0===e&&void 0===r.stack?r.index:"",r.stack].join(".");return void 0===t[n]&&(t[n]={pos:[],neg:[]}),t[n]}function Fn(t,e,r,n){var i,o,a=t.options,s=a.stacked,l=Nn(e,s,r),u=l.pos,h=l.neg,c=n.length;for(i=0;i<c;++i)o=t._parseValue(n[i]),isNaN(o.min)||isNaN(o.max)||r.data[i].hidden||(u[i]=u[i]||0,h[i]=h[i]||0,a.relativePoints?u[i]=100:o.min<0||o.max<0?h[i]+=o.min:u[i]+=o.max)}function jn(t,e,r){var n,i,o=r.length;for(n=0;n<o;++n)i=t._parseValue(r[n]),isNaN(i.min)||isNaN(i.max)||e.data[n].hidden||(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}var zn=Dn.extend({determineDataLimits:function(){var t,e,r,n,i=this,o=i.options,a=i.chart,s=a.data.datasets,l=i._getMatchingVisibleMetas(),u=o.stacked,h={},c=l.length;if(i.min=Number.POSITIVE_INFINITY,i.max=Number.NEGATIVE_INFINITY,void 0===u)for(t=0;!u&&t<c;++t)e=l[t],u=void 0!==e.stack;for(t=0;t<c;++t)e=l[t],r=s[e.index].data,u?Fn(i,h,e,r):jn(i,e,r);ht.each(h,(function(t){n=t.pos.concat(t.neg),i.min=Math.min(i.min,ht.min(n)),i.max=Math.max(i.max,ht.max(n))})),i.min=ht.isFinite(i.min)&&!isNaN(i.min)?i.min:In,i.max=ht.isFinite(i.max)&&!isNaN(i.max)?i.max:Ln,i.handleTickRangeOptions()},_computeTickLimit:function(){var t,e=this;return e.isHorizontal()?Math.ceil(e.width/40):(t=ht.options._parseFont(e.options.ticks),Math.ceil(e.height/t.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this;return e.getPixelForDecimal((+e.getRightValue(t)-e._startValue)/e._valueRange)},getValueForPixel:function(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange},getPixelForTick:function(t){var e=this.ticksAsNumbers;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])}}),Un=Bn;zn._defaults=Un;var Wn=ht.valueOrDefault,Vn=ht.math.log10;function qn(t,e){var r,n,i=[],o=Wn(t.min,Math.pow(10,Math.floor(Vn(e.min)))),a=Math.floor(Vn(e.max)),s=Math.ceil(e.max/Math.pow(10,a));0===o?(r=Math.floor(Vn(e.minNotZero)),n=Math.floor(e.minNotZero/Math.pow(10,r)),i.push(o),o=n*Math.pow(10,r)):(r=Math.floor(Vn(o)),n=Math.floor(o/Math.pow(10,r)));var l=r<0?Math.pow(10,Math.abs(r)):1;do{i.push(o),++n,10===n&&(n=1,++r,l=r>=0?1:l),o=Math.round(n*Math.pow(10,r)*l)/l}while(r<a||r===a&&n<s);var u=Wn(t.max,o);return i.push(u),i}var Hn={position:"left",ticks:{callback:on.formatters.logarithmic}};function Yn(t,e){return ht.isFinite(t)&&t>=0?t:e}var Zn=Sn.extend({determineDataLimits:function(){var t,e,r,n,i,o,a=this,s=a.options,l=a.chart,u=l.data.datasets,h=a.isHorizontal();function c(t){return h?t.xAxisID===a.id:t.yAxisID===a.id}a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,a.minNotZero=Number.POSITIVE_INFINITY;var d=s.stacked;if(void 0===d)for(t=0;t<u.length;t++)if(e=l.getDatasetMeta(t),l.isDatasetVisible(t)&&c(e)&&void 0!==e.stack){d=!0;break}if(s.stacked||d){var f={};for(t=0;t<u.length;t++){e=l.getDatasetMeta(t);var p=[e.type,void 0===s.stacked&&void 0===e.stack?t:"",e.stack].join(".");if(l.isDatasetVisible(t)&&c(e))for(void 0===f[p]&&(f[p]=[]),n=u[t].data,i=0,o=n.length;i<o;i++){var g=f[p];r=a._parseValue(n[i]),isNaN(r.min)||isNaN(r.max)||e.data[i].hidden||r.min<0||r.max<0||(g[i]=g[i]||0,g[i]+=r.max)}}ht.each(f,(function(t){if(t.length>0){var e=ht.min(t),r=ht.max(t);a.min=Math.min(a.min,e),a.max=Math.max(a.max,r)}}))}else for(t=0;t<u.length;t++)if(e=l.getDatasetMeta(t),l.isDatasetVisible(t)&&c(e))for(n=u[t].data,i=0,o=n.length;i<o;i++)r=a._parseValue(n[i]),isNaN(r.min)||isNaN(r.max)||e.data[i].hidden||r.min<0||r.max<0||(a.min=Math.min(r.min,a.min),a.max=Math.max(r.max,a.max),0!==r.min&&(a.minNotZero=Math.min(r.min,a.minNotZero)));a.min=ht.isFinite(a.min)?a.min:null,a.max=ht.isFinite(a.max)?a.max:null,a.minNotZero=ht.isFinite(a.minNotZero)?a.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,r=1,n=10;t.min=Yn(e.min,t.min),t.max=Yn(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(Vn(t.min))-1),t.max=Math.pow(10,Math.floor(Vn(t.max))+1)):(t.min=r,t.max=n)),null===t.min&&(t.min=Math.pow(10,Math.floor(Vn(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(Vn(t.min))+1):n),null===t.minNotZero&&(t.min>0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(Vn(t.max))):t.minNotZero=r)},buildTicks:function(){var t=this,e=t.options.ticks,r=!t.isHorizontal(),n={min:Yn(e.min),max:Yn(e.max)},i=t.ticks=qn(n,t);t.max=ht.max(i),t.min=ht.min(i),e.reverse?(r=!r,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),r&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),Sn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){var e=this.tickValues;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(Vn(t)),r=Math.floor(t/Math.pow(10,e));return r*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,r=0;Sn.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),r=Wn(t.options.ticks.fontSize,J.global.defaultFontSize)/t._length),t._startValue=Vn(e),t._valueOffset=r,t._valueRange=(Vn(t.max)-Vn(e))/(1-r)},getPixelForValue:function(t){var e=this,r=0;return t=+e.getRightValue(t),t>e.min&&t>0&&(r=(Vn(t)-e._startValue)/e._valueRange+e._valueOffset),e.getPixelForDecimal(r)},getValueForPixel:function(t){var e=this,r=e.getDecimalForPixel(t);return 0===r&&0===e.min?0:Math.pow(10,e._startValue+(r-e._valueOffset)*e._valueRange)}}),Xn=Hn;Zn._defaults=Xn;var Gn=ht.valueOrDefault,Kn=ht.valueAtIndexOrDefault,$n=ht.options.resolve,Jn={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:on.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function Qn(t){var e=t.ticks;return e.display&&t.display?Gn(e.fontSize,J.global.defaultFontSize)+2*e.backdropPaddingY:0}function ti(t,e,r){return ht.isArray(r)?{w:ht.longestText(t,t.font,r),h:r.length*e}:{w:t.measureText(r).width,h:e}}function ei(t,e,r,n,i){return t===n||t===i?{start:e-r/2,end:e+r/2}:t<n||t>i?{start:e-r,end:e}:{start:e,end:e+r}}function ri(t){var e,r,n,i=ht.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=t.chart.data.labels.length;for(e=0;e<s;e++){n=t.getPointPosition(e,t.drawingArea+5),r=ti(t.ctx,i.lineHeight,t.pointLabels[e]),t._pointLabelSizes[e]=r;var l=t.getIndexAngle(e),u=ht.toDegrees(l)%360,h=ei(u,n.x,r.w,0,180),c=ei(u,n.y,r.h,90,270);h.start<o.l&&(o.l=h.start,a.l=l),h.end>o.r&&(o.r=h.end,a.r=l),c.start<o.t&&(o.t=c.start,a.t=l),c.end>o.b&&(o.b=c.end,a.b=l)}t.setReductions(t.drawingArea,o,a)}function ni(t){return 0===t||180===t?"center":t<180?"left":"right"}function ii(t,e,r,n){var i,o,a=r.y+n/2;if(ht.isArray(e))for(i=0,o=e.length;i<o;++i)t.fillText(e[i],r.x,a),a+=n;else t.fillText(e,r.x,a)}function oi(t,e,r){90===t||270===t?r.y-=e.h/2:(t>270||t<90)&&(r.y-=e.h)}function ai(t){var e=t.ctx,r=t.options,n=r.pointLabels,i=Qn(r),o=t.getDistanceFromCenterForValue(r.ticks.reverse?t.min:t.max),a=ht.options._parseFont(n);e.save(),e.font=a.string,e.textBaseline="middle";for(var s=t.chart.data.labels.length-1;s>=0;s--){var l=0===s?i/2:0,u=t.getPointPosition(s,o+l+5),h=Kn(n.fontColor,s,J.global.defaultFontColor);e.fillStyle=h;var c=t.getIndexAngle(s),d=ht.toDegrees(c);e.textAlign=ni(d),oi(d,t._pointLabelSizes[s],u),ii(e,t.pointLabels[s],u,a.lineHeight)}e.restore()}function si(t,e,r,n){var i,o=t.ctx,a=e.circular,s=t.chart.data.labels.length,l=Kn(e.color,n-1),u=Kn(e.lineWidth,n-1);if((a||s)&&l&&u){if(o.save(),o.strokeStyle=l,o.lineWidth=u,o.setLineDash&&(o.setLineDash(e.borderDash||[]),o.lineDashOffset=e.borderDashOffset||0),o.beginPath(),a)o.arc(t.xCenter,t.yCenter,r,0,2*Math.PI);else{i=t.getPointPosition(0,r),o.moveTo(i.x,i.y);for(var h=1;h<s;h++)i=t.getPointPosition(h,r),o.lineTo(i.x,i.y)}o.closePath(),o.stroke(),o.restore()}}function li(t){return ht.isNumber(t)?t:0}var ui=Dn.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=Qn(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,r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;ht.each(e.data.datasets,(function(i,o){if(e.isDatasetVisible(o)){var a=e.getDatasetMeta(o);ht.each(i.data,(function(e,i){var o=+t.getRightValue(e);isNaN(o)||a.data[i].hidden||(r=Math.min(o,r),n=Math.max(o,n))}))}})),t.min=r===Number.POSITIVE_INFINITY?0:r,t.max=n===Number.NEGATIVE_INFINITY?0:n,t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Qn(this.options))},convertTicksToLabels:function(){var t=this;Dn.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map((function(){var e=ht.callback(t.options.pointLabels.callback,arguments,t);return e||0===e?e:""}))},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this,e=t.options;e.display&&e.pointLabels.display?ri(t):t.setCenterPoint(0,0,0,0)},setReductions:function(t,e,r){var n=this,i=e.l/Math.sin(r.l),o=Math.max(e.r-n.width,0)/Math.sin(r.r),a=-e.t/Math.cos(r.t),s=-Math.max(e.b-(n.height-n.paddingTop),0)/Math.cos(r.b);i=li(i),o=li(o),a=li(a),s=li(s),n.drawingArea=Math.min(Math.floor(t-(i+o)/2),Math.floor(t-(a+s)/2)),n.setCenterPoint(i,o,a,s)},setCenterPoint:function(t,e,r,n){var i=this,o=i.width-e-i.drawingArea,a=t+i.drawingArea,s=r+i.drawingArea,l=i.height-i.paddingTop-n-i.drawingArea;i.xCenter=Math.floor((a+o)/2+i.left),i.yCenter=Math.floor((s+l)/2+i.top+i.paddingTop)},getIndexAngle:function(t){var e=this.chart,r=360/e.data.labels.length,n=e.options||{},i=n.startAngle||0,o=(t*r+i)%360;return(o<0?o+360:o)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(ht.isNullOrUndef(t))return NaN;var r=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*r:(t-e.min)*r},getPointPosition:function(t,e){var r=this,n=r.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(n)*e+r.xCenter,y:Math.sin(n)*e+r.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(t){var e=this,r=e.min,n=e.max;return e.getPointPositionForValue(t||0,e.beginAtZero?0:r<0&&n<0?n:r>0&&n>0?r:0)},_drawGrid:function(){var t,e,r,n=this,i=n.ctx,o=n.options,a=o.gridLines,s=o.angleLines,l=Gn(s.lineWidth,a.lineWidth),u=Gn(s.color,a.color);if(o.pointLabels.display&&ai(n),a.display&&ht.each(n.ticks,(function(t,r){0!==r&&(e=n.getDistanceFromCenterForValue(n.ticksAsNumbers[r]),si(n,a,e,r))})),s.display&&l&&u){for(i.save(),i.lineWidth=l,i.strokeStyle=u,i.setLineDash&&(i.setLineDash($n([s.borderDash,a.borderDash,[]])),i.lineDashOffset=$n([s.borderDashOffset,a.borderDashOffset,0])),t=n.chart.data.labels.length-1;t>=0;t--)e=n.getDistanceFromCenterForValue(o.ticks.reverse?n.min:n.max),r=n.getPointPosition(t,e),i.beginPath(),i.moveTo(n.xCenter,n.yCenter),i.lineTo(r.x,r.y),i.stroke();i.restore()}},_drawLabels:function(){var t=this,e=t.ctx,r=t.options,n=r.ticks;if(n.display){var i,o,a=t.getIndexAngle(0),s=ht.options._parseFont(n),l=Gn(n.fontColor,J.global.defaultFontColor);e.save(),e.font=s.string,e.translate(t.xCenter,t.yCenter),e.rotate(a),e.textAlign="center",e.textBaseline="middle",ht.each(t.ticks,(function(r,a){(0!==a||n.reverse)&&(i=t.getDistanceFromCenterForValue(t.ticksAsNumbers[a]),n.showLabelBackdrop&&(o=e.measureText(r).width,e.fillStyle=n.backdropColor,e.fillRect(-o/2-n.backdropPaddingX,-i-s.size/2-n.backdropPaddingY,o+2*n.backdropPaddingX,s.size+2*n.backdropPaddingY)),e.fillStyle=l,e.fillText(r,0,-i))})),e.restore()}},_drawTitle:ht.noop}),hi=Jn;ui._defaults=hi;var ci=ht._deprecated,di=ht.options.resolve,fi=ht.valueOrDefault,pi=Number.MIN_SAFE_INTEGER||-9007199254740991,gi=Number.MAX_SAFE_INTEGER||9007199254740991,mi={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},vi=Object.keys(mi);function yi(t,e){return t-e}function bi(t){var e,r,n,i={},o=[];for(e=0,r=t.length;e<r;++e)n=t[e],i[n]||(i[n]=!0,o.push(n));return o}function wi(t){return ht.valueOrDefault(t.time.min,t.ticks.min)}function _i(t){return ht.valueOrDefault(t.time.max,t.ticks.max)}function Mi(t,e,r,n){if("linear"===n||!t.length)return[{time:e,pos:0},{time:r,pos:1}];var i,o,a,s,l,u=[],h=[e];for(i=0,o=t.length;i<o;++i)s=t[i],s>e&&s<r&&h.push(s);for(h.push(r),i=0,o=h.length;i<o;++i)l=h[i+1],a=h[i-1],s=h[i],void 0!==a&&void 0!==l&&Math.round((l+a)/2)===s||u.push({time:s,pos:i/(o-1)});return u}function xi(t,e,r){var n,i,o,a=0,s=t.length-1;while(a>=0&&a<=s){if(n=a+s>>1,i=t[n-1]||null,o=t[n],!i)return{lo:null,hi:o};if(o[e]<r)a=n+1;else{if(!(i[e]>r))return{lo:i,hi:o};s=n-1}}return{lo:o,hi:null}}function ki(t,e,r,n){var i=xi(t,e,r),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],l=s?(r-o[e])/s:0,u=(a[n]-o[n])*l;return o[n]+u}function Si(t,e){var r=t._adapter,n=t.options.time,i=n.parser,o=i||n.format,a=e;return"function"===typeof i&&(a=i(a)),ht.isFinite(a)||(a="string"===typeof o?r.parse(a,o):r.parse(a)),null!==a?+a:(i||"function"!==typeof o||(a=o(e),ht.isFinite(a)||(a=r.parse(a))),a)}function Ai(t,e){if(ht.isNullOrUndef(e))return null;var r=t.options.time,n=Si(t,t.getRightValue(e));return null===n||r.round&&(n=+t._adapter.startOf(n,r.round)),n}function Ei(t,e,r,n){var i,o,a,s=vi.length;for(i=vi.indexOf(t);i<s-1;++i)if(o=mi[vi[i]],a=o.steps?o.steps:gi,o.common&&Math.ceil((r-e)/(a*o.size))<=n)return vi[i];return vi[s-1]}function Ci(t,e,r,n,i){var o,a;for(o=vi.length-1;o>=vi.indexOf(r);o--)if(a=vi[o],mi[a].common&&t._adapter.diff(i,n,a)>=e-1)return a;return vi[r?vi.indexOf(r):0]}function Ri(t){for(var e=vi.indexOf(t)+1,r=vi.length;e<r;++e)if(mi[vi[e]].common)return vi[e]}function Ti(t,e,r,n){var i,o=t._adapter,a=t.options,s=a.time,l=s.unit||Ei(s.minUnit,e,r,n),u=di([s.stepSize,s.unitStepSize,1]),h="week"===l&&s.isoWeekday,c=e,d=[];if(h&&(c=+o.startOf(c,"isoWeek",h)),c=+o.startOf(c,h?"day":l),o.diff(r,e,l)>1e5*u)throw e+" and "+r+" are too far apart with stepSize of "+u+" "+l;for(i=c;i<r;i=+o.add(i,u,l))d.push(i);return i!==r&&"ticks"!==a.bounds||d.push(i),d}function Pi(t,e,r,n,i){var o,a,s=0,l=0;return i.offset&&e.length&&(o=ki(t,"time",e[0],"pos"),s=1===e.length?1-o:(ki(t,"time",e[1],"pos")-o)/2,a=ki(t,"time",e[e.length-1],"pos"),l=1===e.length?a:(a-ki(t,"time",e[e.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}function Oi(t,e,r,n){var i,o,a=t._adapter,s=+a.startOf(e[0].value,n),l=e[e.length-1].value;for(i=s;i<=l;i=+a.add(i,1,n))o=r[i],o>=0&&(e[o].major=!0);return e}function Di(t,e,r){var n,i,o=[],a={},s=e.length;for(n=0;n<s;++n)i=e[n],a[i]=n,o.push({value:i,major:!1});return 0!==s&&r?Oi(t,o,a,r):o}var Bi={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}},Ii=Sn.extend({initialize:function(){this.mergeTicksOptions(),Sn.prototype.initialize.call(this)},update:function(){var t=this,e=t.options,r=e.time||(e.time={}),n=t._adapter=new nn._date(e.adapters.date);return ci("time scale",r.format,"time.format","time.parser"),ci("time scale",r.min,"time.min","ticks.min"),ci("time scale",r.max,"time.max","ticks.max"),ht.mergeIf(r.displayFormats,n.formats()),Sn.prototype.update.apply(t,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),Sn.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var t,e,r,n,i,o,a,s=this,l=s.chart,u=s._adapter,h=s.options,c=h.time.unit||"day",d=gi,f=pi,p=[],g=[],m=[],v=s._getLabels();for(t=0,r=v.length;t<r;++t)m.push(Ai(s,v[t]));for(t=0,r=(l.data.datasets||[]).length;t<r;++t)if(l.isDatasetVisible(t))if(i=l.data.datasets[t].data,ht.isObject(i[0]))for(g[t]=[],e=0,n=i.length;e<n;++e)o=Ai(s,i[e]),p.push(o),g[t][e]=o;else g[t]=m.slice(0),a||(p=p.concat(m),a=!0);else g[t]=[];m.length&&(d=Math.min(d,m[0]),f=Math.max(f,m[m.length-1])),p.length&&(p=r>1?bi(p).sort(yi):p.sort(yi),d=Math.min(d,p[0]),f=Math.max(f,p[p.length-1])),d=Ai(s,wi(h))||d,f=Ai(s,_i(h))||f,d=d===gi?+u.startOf(Date.now(),c):d,f=f===pi?+u.endOf(Date.now(),c)+1:f,s.min=Math.min(d,f),s.max=Math.max(d+1,f),s._table=[],s._timestamps={data:p,datasets:g,labels:m}},buildTicks:function(){var t,e,r,n=this,i=n.min,o=n.max,a=n.options,s=a.ticks,l=a.time,u=n._timestamps,h=[],c=n.getLabelCapacity(i),d=s.source,f=a.distribution;for(u="data"===d||"auto"===d&&"series"===f?u.data:"labels"===d?u.labels:Ti(n,i,o,c),"ticks"===a.bounds&&u.length&&(i=u[0],o=u[u.length-1]),i=Ai(n,wi(a))||i,o=Ai(n,_i(a))||o,t=0,e=u.length;t<e;++t)r=u[t],r>=i&&r<=o&&h.push(r);return n.min=i,n.max=o,n._unit=l.unit||(s.autoSkip?Ei(l.minUnit,n.min,n.max,c):Ci(n,h.length,l.minUnit,n.min,n.max)),n._majorUnit=s.major.enabled&&"year"!==n._unit?Ri(n._unit):void 0,n._table=Mi(n._timestamps.data,i,o,f),n._offsets=Pi(n._table,h,i,o,a),s.reverse&&h.reverse(),Di(n,h,n._majorUnit)},getLabelForIndex:function(t,e){var r=this,n=r._adapter,i=r.chart.data,o=r.options.time,a=i.labels&&t<i.labels.length?i.labels[t]:"",s=i.datasets[e].data[t];return ht.isObject(s)&&(a=r.getRightValue(s)),o.tooltipFormat?n.format(Si(r,a),o.tooltipFormat):"string"===typeof a?a:n.format(Si(r,a),o.displayFormats.datetime)},tickFormatFunction:function(t,e,r,n){var i=this,o=i._adapter,a=i.options,s=a.time.displayFormats,l=s[i._unit],u=i._majorUnit,h=s[u],c=r[e],d=a.ticks,f=u&&h&&c&&c.major,p=o.format(t,n||(f?h:l)),g=f?d.major:d.minor,m=di([g.callback,g.userCallback,d.callback,d.userCallback]);return m?m(p,e,r):p},convertTicksToLabels:function(t){var e,r,n=[];for(e=0,r=t.length;e<r;++e)n.push(this.tickFormatFunction(t[e].value,e,t));return n},getPixelForOffset:function(t){var e=this,r=e._offsets,n=ki(e._table,"time",t,"pos");return e.getPixelForDecimal((r.start+n)*r.factor)},getPixelForValue:function(t,e,r){var n=this,i=null;if(void 0!==e&&void 0!==r&&(i=n._timestamps.datasets[r][e]),null===i&&(i=Ai(n,t)),null!==i)return n.getPixelForOffset(i)},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,r=e._offsets,n=e.getDecimalForPixel(t)/r.factor-r.end,i=ki(e._table,"pos",n,"time");return e._adapter._create(i)},_getLabelSize:function(t){var e=this,r=e.options.ticks,n=e.ctx.measureText(t).width,i=ht.toRadians(e.isHorizontal()?r.maxRotation:r.minRotation),o=Math.cos(i),a=Math.sin(i),s=fi(r.fontSize,J.global.defaultFontSize);return{w:n*o+s*a,h:n*a+s*o}},getLabelWidth:function(t){return this._getLabelSize(t).w},getLabelCapacity:function(t){var e=this,r=e.options.time,n=r.displayFormats,i=n[r.unit]||n.millisecond,o=e.tickFormatFunction(t,0,Di(e,[t],e._majorUnit),i),a=e._getLabelSize(o),s=Math.floor(e.isHorizontal()?e.width/a.w:e.height/a.h);return e.options.offset&&s--,s>0?s:1}}),Li=Bi;Ii._defaults=Li;var Ni={category:Cn,linear:zn,logarithmic:Zn,radialLinear:ui,time:Ii},Fi={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"};nn._date.override("function"===typeof t?{_id:"moment",formats:function(){return Fi},parse:function(e,r){return"string"===typeof e&&"string"===typeof r?e=t(e,r):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,r){return t(e).format(r)},add:function(e,r,n){return t(e).add(r,n).valueOf()},diff:function(e,r,n){return t(e).diff(t(r),n)},startOf:function(e,r,n){return e=t(e),"isoWeek"===r?e.isoWeekday(n).valueOf():e.startOf(r).valueOf()},endOf:function(e,r){return t(e).endOf(r).valueOf()},_create:function(e){return t(e)}}:{}),J._set("global",{plugins:{filler:{propagate:!0}}});var ji={dataset:function(t){var e=t.fill,r=t.chart,n=r.getDatasetMeta(e),i=n&&r.isDatasetVisible(e),o=i&&n.dataset._children||[],a=o.length||0;return a?function(t,e){return e<a&&o[e]._view||null}:null},boundary:function(t){var e=t.boundary,r=e?e.x:null,n=e?e.y:null;return ht.isArray(e)?function(t,r){return e[r]}:function(t){return{x:null===r?t.x:r,y:null===n?t.y:n}}}};function zi(t,e,r){var n,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(n=parseFloat(o,10),isFinite(n)&&Math.floor(n)===n)return"-"!==o[0]&&"+"!==o[0]||(n=e+n),!(n===e||n<0||n>=r)&&n;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 Ui(t){var e,r=t.el._model||{},n=t.el._scale||{},i=t.fill,o=null;if(isFinite(i))return null;if("start"===i?o=void 0===r.scaleBottom?n.bottom:r.scaleBottom:"end"===i?o=void 0===r.scaleTop?n.top:r.scaleTop:void 0!==r.scaleZero?o=r.scaleZero:n.getBasePixel&&(o=n.getBasePixel()),void 0!==o&&null!==o){if(void 0!==o.x&&void 0!==o.y)return o;if(ht.isFinite(o))return e=n.isHorizontal(),{x:e?o:null,y:e?null:o}}return null}function Wi(t){var e,r,n,i,o,a=t.el._scale,s=a.options,l=a.chart.data.labels.length,u=t.fill,h=[];if(!l)return null;for(e=s.ticks.reverse?a.max:a.min,r=s.ticks.reverse?a.min:a.max,n=a.getPointPositionForValue(0,e),i=0;i<l;++i)o="start"===u||"end"===u?a.getPointPositionForValue(i,"start"===u?e:r):a.getBasePosition(i),s.gridLines.circular&&(o.cx=n.x,o.cy=n.y,o.angle=a.getIndexAngle(i)-Math.PI/2),h.push(o);return h}function Vi(t){var e=t.el._scale||{};return e.getPointPositionForValue?Wi(t):Ui(t)}function qi(t,e,r){var n,i=t[e],o=i.fill,a=[e];if(!r)return o;while(!1!==o&&-1===a.indexOf(o)){if(!isFinite(o))return o;if(n=t[o],!n)return!1;if(n.visible)return o;a.push(o),o=n.fill}return!1}function Hi(t){var e=t.fill,r="dataset";return!1===e?null:(isFinite(e)||(r="boundary"),ji[r](t))}function Yi(t){return t&&!t.skip}function Zi(t,e,r,n,i){var o,a,s,l;if(n&&i){for(t.moveTo(e[0].x,e[0].y),o=1;o<n;++o)ht.canvas.lineTo(t,e[o-1],e[o]);if(void 0===r[0].angle)for(t.lineTo(r[i-1].x,r[i-1].y),o=i-1;o>0;--o)ht.canvas.lineTo(t,r[o],r[o-1],!0);else for(a=r[0].cx,s=r[0].cy,l=Math.sqrt(Math.pow(r[0].x-a,2)+Math.pow(r[0].y-s,2)),o=i-1;o>0;--o)t.arc(a,s,l,r[o].angle,r[o-1].angle,!0)}}function Xi(t,e,r,n,i,o){var a,s,l,u,h,c,d,f,p=e.length,g=n.spanGaps,m=[],v=[],y=0,b=0;for(t.beginPath(),a=0,s=p;a<s;++a)l=a%p,u=e[l]._view,h=r(u,l,n),c=Yi(u),d=Yi(h),o&&void 0===f&&c&&(f=a+1,s=p+f),c&&d?(y=m.push(u),b=v.push(h)):y&&b&&(g?(c&&m.push(u),d&&v.push(h)):(Zi(t,m,v,y,b),y=b=0,m=[],v=[]));Zi(t,m,v,y,b),t.closePath(),t.fillStyle=i,t.fill()}var Gi={id:"filler",afterDatasetsUpdate:function(t,e){var r,n,i,o,a=(t.data.datasets||[]).length,s=e.propagate,l=[];for(n=0;n<a;++n)r=t.getDatasetMeta(n),i=r.dataset,o=null,i&&i._model&&i instanceof Kt.Line&&(o={visible:t.isDatasetVisible(n),fill:zi(i,n,a),chart:t,el:i}),r.$filler=o,l.push(o);for(n=0;n<a;++n)o=l[n],o&&(o.fill=qi(l,n,s),o.boundary=Vi(o),o.mapper=Hi(o))},beforeDatasetsDraw:function(t){var e,r,n,i,o,a,s,l=t._getSortedVisibleDatasetMetas(),u=t.ctx;for(r=l.length-1;r>=0;--r)e=l[r].$filler,e&&e.visible&&(n=e.el,i=n._view,o=n._children||[],a=e.mapper,s=i.backgroundColor||J.global.defaultColor,a&&s&&o.length&&(ht.canvas.clipArea(u,t.chartArea),Xi(u,o,a,i,s,n._loop),ht.canvas.unclipArea(u)))}},Ki=ht.rtl.getRtlAdapter,$i=ht.noop,Ji=ht.valueOrDefault;function Qi(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}
vendor: 4,328 bytes, line 8
8J._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var r=e.datasetIndex,n=this.chart,i=n.getDatasetMeta(r);i.hidden=null===i.hidden?!n.data.datasets[r].hidden:null,n.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,r=t.options.legend||{},n=r.labels&&r.labels.usePointStyle;return t._getSortedDatasetMetas().map((function(r){var i=r.controller.getStyle(n?0:void 0);return{text:e[r.index].label,fillStyle:i.backgroundColor,hidden:!t.isDatasetVisible(r.index),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:r.index}}),this)}}},legendCallback:function(t){var e,r,n,i,o=document.createElement("ul"),a=t.data.datasets;for(o.setAttribute("class",t.id+"-legend"),e=0,r=a.length;e<r;e++)n=o.appendChild(document.createElement("li")),i=n.appendChild(document.createElement("span")),i.style.backgroundColor=a[e].backgroundColor,a[e].label&&n.appendChild(document.createTextNode(a[e].label));return o.outerHTML}});var to=yt.extend({initialize:function(t){var e=this;ht.extend(e,t),e.legendHitBoxes=[],e._hoveredItem=null,e.doughnutMode=!1},beforeUpdate:$i,update:function(t,e,r){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=r,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:$i,beforeSetDimensions:$i,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:$i,beforeBuildLabels:$i,buildLabels:function(){var t=this,e=t.options.labels||{},r=ht.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(r=r.filter((function(r){return e.filter(r,t.chart.data)}))),t.options.reverse&&r.reverse(),t.legendItems=r},afterBuildLabels:$i,beforeFit:$i,fit:function(){var t=this,e=t.options,r=e.labels,n=e.display,i=t.ctx,o=ht.options._parseFont(r),a=o.size,s=t.legendHitBoxes=[],l=t.minSize,u=t.isHorizontal();if(u?(l.width=t.maxWidth,l.height=n?10:0):(l.width=n?10:0,l.height=t.maxHeight),n){if(i.font=o.string,u){var h=t.lineWidths=[0],c=0;i.textAlign="left",i.textBaseline="middle",ht.each(t.legendItems,(function(t,e){var n=Qi(r,a),o=n+a/2+i.measureText(t.text).width;(0===e||h[h.length-1]+o+2*r.padding>l.width)&&(c+=a+r.padding,h[h.length-(e>0?0:1)]=0),s[e]={left:0,top:0,width:o,height:a},h[h.length-1]+=o+r.padding})),l.height+=c}else{var d=r.padding,f=t.columnWidths=[],p=t.columnHeights=[],g=r.padding,m=0,v=0;ht.each(t.legendItems,(function(t,e){var n=Qi(r,a),o=n+a/2+i.measureText(t.text).width;e>0&&v+a+2*d>l.height&&(g+=m+r.padding,f.push(m),p.push(v),m=0,v=0),m=Math.max(m,o),v+=a+d,s[e]={left:0,top:0,width:o,height:a}})),g+=m,f.push(m),p.push(v),l.width+=g}t.width=l.width,t.height=l.height}else t.width=l.width=t.height=l.height=0},afterFit:$i,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,r=e.labels,n=J.global,i=n.defaultColor,o=n.elements.line,a=t.height,s=t.columnHeights,l=t.width,u=t.lineWidths;if(e.display){var h,c=Ki(e.rtl,t.left,t.minSize.width),d=t.ctx,f=Ji(r.fontColor,n.defaultFontColor),p=ht.options._parseFont(r),g=p.size;d.textAlign=c.textAlign("left"),d.textBaseline="middle",d.lineWidth=.5,d.strokeStyle=f,d.fillStyle=f,d.font=p.string;var m=Qi(r,g),v=t.legendHitBoxes,y=function(t,e,n){if(!(isNaN(m)||m<=0)){d.save();var a=Ji(n.lineWidth,o.borderWidth);if(d.fillStyle=Ji(n.fillStyle,i),d.lineCap=Ji(n.lineCap,o.borderCapStyle),d.lineDashOffset=Ji(n.lineDashOffset,o.borderDashOffset),d.lineJoin=Ji(n.lineJoin,o.borderJoinStyle),d.lineWidth=a,d.strokeStyle=Ji(n.strokeStyle,i),d.setLineDash&&d.setLineDash(Ji(n.lineDash,o.borderDash)),r&&r.usePointStyle){var s=m*Math.SQRT2/2,l=c.xPlus(t,m/2),u=e+g/2;ht.canvas.drawPoint(d,n.pointStyle,s,l,u,n.rotation)}else d.fillRect(c.leftForLtr(t,m),e,m,g),0!==a&&d.strokeRect(c.leftForLtr(t,m),e,m,g);
8d.restore()}},b=function(t,e,r,n){var i=g/2,o=c.xPlus(t,m+i),a=e+i;d.fillText(r.text,o,a),r.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(o,a),d.lineTo(c.xPlus(o,n),a),d.stroke())},w=function(t,n){switch(e.align){case"start":return r.padding;case"end":return t-n;default:return(t-n+r.padding)/2}},_=t.isHorizontal();h=_?{x:t.left+w(l,u[0]),y:t.top+r.padding,line:0}:{x:t.left+r.padding,y:t.top+w(a,s[0]),line:0},ht.rtl.overrideTextDirection(t.ctx,e.textDirection);var M=g+r.padding;ht.each(t.legendItems,(function(e,n){var i=d.measureText(e.text).width,o=m+g/2+i,f=h.x,p=h.y;c.setWidth(t.minSize.width),_?n>0&&f+o+r.padding>t.left+t.minSize.width&&(p=h.y+=M,h.line++,f=h.x=t.left+w(l,u[h.line])):n>0&&p+M>t.top+t.minSize.height&&(f=h.x=f+t.columnWidths[h.line]+r.padding,h.line++,p=h.y=t.top+w(a,s[h.line]));var x=c.x(f);y(x,p,e),v[n].left=c.leftForLtr(x,v[n].width),v[n].top=p,b(x,p,e,i),_?h.x+=o+r.padding:h.y+=M})),ht.rtl.restoreTextDirection(t.ctx,e.textDirection)}},_getLegendItemAt:function(t,e){var r,n,i,o=this;if(t>=o.left&&t<=o.right&&e>=o.top&&e<=o.bottom)for(i=o.legendHitBoxes,r=0;r<i.length;++r)if(n=i[r],t>=n.left&&t<=n.left+n.width&&e>=n.top&&e<=n.top+n.height)return o.legendItems[r];return null},handleEvent:function(t){var e,r=this,n=r.options,i="mouseup"===t.type?"click":t.type;if("mousemove"===i){if(!n.onHover&&!n.onLeave)return}else{if("click"!==i)return;if(!n.onClick)return}e=r._getLegendItemAt(t.x,t.y),"click"===i?e&&n.onClick&&n.onClick.call(r,t.native,e):(n.onLeave&&e!==r._hoveredItem&&(r._hoveredItem&&n.onLeave.call(r,t.native,r._hoveredItem),r._hoveredItem=e),n.onHover&&e&&n.onHover.call(r,t.native,e))}});function eo(t,e){var r=new to({ctx:t.ctx,options:e,chart:t});Ge.configure(t,r,e),Ge.addBox(t,r),t.legend=r}var ro={id:"legend",_element:to,beforeInit:function(t){var e=t.options.legend;e&&eo(t,e)},beforeUpdate:function(t){var e=t.options.legend,r=t.legend;e?(ht.mergeIf(e,J.global.legend),r?(Ge.configure(t,r,e),r.options=e):eo(t,e)):r&&(Ge.removeBox(t,r),delete t.legend)},afterEvent:function(t,e){var r=t.legend;r&&r.handleEvent(e)}},no=ht.noop;J._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var io=yt.extend({initialize:function(t){var e=this;ht.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:no,update:function(t,e,r){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=r,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:no,beforeSetDimensions:no,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:no,beforeBuildLabels:no,buildLabels:no,afterBuildLabels:no,beforeFit:no,fit:function(){var t,e,r=this,n=r.options,i=r.minSize={},o=r.isHorizontal();n.display?(t=ht.isArray(n.text)?n.text.length:1,e=t*ht.options._parseFont(n).lineHeight+2*n.padding,r.width=i.width=o?r.maxWidth:e,r.height=i.height=o?e:r.maxHeight):r.width=i.width=r.height=i.height=0},afterFit:no,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,r=t.options;if(r.display){var n,i,o,a=ht.options._parseFont(r),s=a.lineHeight,l=s/2+r.padding,u=0,h=t.top,c=t.left,d=t.bottom,f=t.right;e.fillStyle=ht.valueOrDefault(r.fontColor,J.global.defaultFontColor),e.font=a.string,t.isHorizontal()?(i=c+(f-c)/2,o=h+l,n=f-c):(i="left"===r.position?c+l:f-l,o=h+(d-h)/2,n=d-h,u=Math.PI*("left"===r.position?-.5:.5)),e.save(),e.translate(i,o),e.rotate(u),e.textAlign="center",e.textBaseline="middle";var p=r.text;if(ht.isArray(p))for(var g=0,m=0;m<p.length;++m)e.fillText(p[m],0,g,n),g+=s;else e.fillText(p,0,0,n);e.restore()}}});function oo(t,e){var r=new io({ctx:t.ctx,options:e,chart:t});Ge.configure(t,r,e),Ge.addBox(t,r),t.titleBlock=r}var ao={id:"title",_element:io,beforeInit:function(t){var e=t.options.title;e&&oo(t,e)},beforeUpdate:function(t){var e=t.options.title,r=t.titleBlock;e?(ht.mergeIf(e,J.global.title),r?(Ge.configure(t,r,e),r.options=e):oo(t,e)):r&&(Ge.removeBox(t,r),delete t.titleBlock)}},so={},lo=Gi,uo=ro,ho=ao;for(var co in so.filler=lo,so.legend=uo,so.title=ho,Jr.helpers=ht,Qr(),Jr._adapters=nn,Jr.Animation=wt,Jr.animationService=_t,Jr.controllers=Re,Jr.DatasetController=Et,Jr.defaults=J,Jr.Element=yt,Jr.elements=Kt,Jr.Interaction=Le,Jr.layouts=Ge,Jr.platform=Sr,Jr.plugins=Ar,Jr.Scale=Sn,Jr.scaleService=Er,Jr.Ticks=on,Jr.Tooltip=Wr,Jr.helpers.each(Ni,(function(t,e){Jr.scaleService.registerScaleType(e,t,t._defaults)})),so)so.hasOwnProperty(co)&&Jr.plugins.register(so[co]);Jr.platform.initialize();var fo=Jr;return"undefined"!==typeof window&&(window.Chart=Jr),Jr.Chart=Jr,Jr.Legend=so.legend._element,Jr.Title=so.title._element,Jr.pluginService=Jr.plugins,Jr.PluginBase=Jr.Element.extend({}),Jr.canvasHelpers=Jr.helpers.canvas,Jr.layoutService=Jr.layouts,Jr.LinearScaleBase=Dn,Jr.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(t){Jr[t]=function(e,r){return new Jr(e,Jr.helpers.merge(r||{},{type:t.charAt(0).toLowerCase()+t.slice(1)}))}})),fo}))},"343e":function(t,e,r){"use strict";const n=e;n.der=r("3768"),n.pem=r("85b3")},"34d5":function(t,e,r){e=t.exports=r("cf35"),e.Stream=e,e.Readable=e,e.Writable=r("49ce"),e.Duplex=r("5e7d"),e.Transform=r("f1c8"),e.PassThrough=r("9d28"),e.finished=r("42a7"),e.pipeline=r("ac4f")},3505:function(t,e,r){var n=r("8707").Buffer,i=r("8c8a");function o(t,e,r){var o=e.length,a=i(e,t._cache);return t._cache=t._cache.slice(o),t._prev=n.concat([t._prev,r?e:a]),a}e.encrypt=function(t,e,r){var i,a=n.allocUnsafe(0);while(e.length){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){a=n.concat([a,o(t,e,r)]);break}i=t._cache.length,a=n.concat([a,o(t,e.slice(0,i),r)]),e=e.slice(i)}return a}},3768:function(t,e,r){"use strict";const n=r("3fb5"),i=r("c591").Buffer,o=r("8360"),a=r("8b71");function s(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new l,this.tree._init(t.body)}function l(t){o.call(this,"der",t)}function u(t){return t<10?"0"+t:t}function h(t,e,r,n){let i;if("seqof"===t?t="seq":"setof"===t&&(t="set"),a.tagByName.hasOwnProperty(t))i=a.tagByName[t];else{if("number"!==typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);i=t}return i>=31?n.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=a.tagClassByName[r||"universal"]<<6,i)}t.exports=s,s.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},n(l,o),l.prototype._encodeComposite=function(t,e,r,n){const o=h(t,e,r,this.reporter);if(n.length<128){const t=i.alloc(2);return t[0]=o,t[1]=n.length,this._createEncoderBuffer([t,n])}let a=1;for(let i=n.length;i>=256;i>>=8)a++;const s=i.alloc(2+a);s[0]=o,s[1]=128|a;for(let i=1+a,l=n.length;l>0;i--,l>>=8)s[i]=255&l;return this._createEncoderBuffer([s,n])},l.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=i.alloc(2*t.length);for(let r=0;r<t.length;r++)e.writeUInt16BE(t.charCodeAt(r),2*r);return this._createEncoderBuffer(e)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},l.prototype._encodeObjid=function(t,e,r){if("string"===typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s.]+/g);for(let e=0;e<t.length;e++)t[e]|=0}else if(Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!r){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let n=0;for(let i=0;i<t.length;i++){let e=t[i];for(n++;e>=128;e>>=7)n++}const o=i.alloc(n);let a=o.length-1;for(let i=t.length-1;i>=0;i--){let e=t[i];o[a--]=127&e;while((e>>=7)>0)o[a--]=128|127&e}return this._createEncoderBuffer(o)},l.prototype._encodeTime=function(t,e){let r;const n=new Date(t);return"gentime"===e?r=[u(n.getUTCFullYear()),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?r=[u(n.getUTCFullYear()%100),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(r,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(t,e){if("string"===typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!==typeof t&&!i.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=i.from(e)}if(i.isBuffer(t)){let e=t.length;0===t.length&&e++;const r=i.alloc(e);return t.copy(r),0===t.length&&(r[0]=0),this._createEncoderBuffer(r)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let r=1;for(let i=t;i>=256;i>>=8)r++;const n=new Array(r);for(let i=n.length-1;i>=0;i--)n[i]=255&t,t>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(i.from(n))},l.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},l.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getEncoder("der").tree},l.prototype._skipDefault=function(t,e,r){const n=this._baseState;let i;if(null===n["default"])return!1;const o=t.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n["default"],e,r).join()),o.length!==n.defaultBuffer.length)return!1;for(i=0;i<o.length;i++)if(o[i]!==n.defaultBuffer[i])return!1;return!0}},"387f":function(t,e,r){"use strict";
vendor: 11,126 bytes, line 8
8t.exports=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},3934:function(t,e,r){"use strict";var n=r("c532");t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(e){var r=n.isString(e)?i(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return function(){return!0}}()},"399f":function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(9).Buffer}catch(T){}function s(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function l(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function u(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),l=e;l<s;l++){var u=t.charCodeAt(l)-48;o*=i,a=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a<i,"Invalid character"),o+=a}return o}function h(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=l(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else{var s=t.length-e;for(n=s%2===0?e+1:e;n<t.length;n+=2)i=l(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8}this._strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,l=0,h=r;h<s;h+=n)l=u(t,h,h+n,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var c=1;for(l=u(t,h,t.length,e),h=0;h<a;h++)c*=e;this.imuln(c),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){h(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype._strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(T){o.prototype.inspect=c}else o.prototype.inspect=c;function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,i+=2,i>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-l.length]+l+r:l+r}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=f[t],h=p[t];r="";var c=this.clone();c.negative=0;while(!c.isZero()){var g=c.modrn(h).toString(t);c=c.idivn(h),r=c.isZero()?g+r:d[u-g.length]+g+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};var g=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)};function m(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}function v(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,l=a/67108864|0;r.words[0]=s;for(var u=1;u<n;u++){for(var h=l>>>26,c=67108863&l,d=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=d;f++){var p=u-f|0;i=0|t.words[p],o=0|e.words[f],a=i*o+c,h+=a/67108864|0,c=67108863&a}r.words[u]=0|c,l=0|h}return 0!==l?r.words[u]=0|l:r.length--,r._strip()}o.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=g(t,o),s="le"===e?"LE":"BE";return this["_toArrayLike"+s](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r++]=255&a,r<t.length&&(t[r++]=a>>8&255),r<t.length&&(t[r++]=a>>16&255),6===o?(r<t.length&&(t[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<t.length){t[r++]=n;while(r<t.length)t[r++]=0}},o.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r--]=255&a,r>=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===o?(r>=0&&(t[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0){t[r--]=n;while(r>=0)t[r--]=0}},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)}
vendor: 1,631 bytes, line 8
8,o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;
vendor: 41,144 bytes, lines 8-10
8var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)e=(0|r.words[a])-(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)e=(0|r.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var y=function(t,e,r){var n,i,o,a=t.words,s=e.words,l=r.words,u=0,h=0|a[0],c=8191&h,d=h>>>13,f=0|a[1],p=8191&f,g=f>>>13,m=0|a[2],v=8191&m,y=m>>>13,b=0|a[3],w=8191&b,_=b>>>13,M=0|a[4],x=8191&M,k=M>>>13,S=0|a[5],A=8191&S,E=S>>>13,C=0|a[6],R=8191&C,T=C>>>13,P=0|a[7],O=8191&P,D=P>>>13,B=0|a[8],I=8191&B,L=B>>>13,N=0|a[9],F=8191&N,j=N>>>13,z=0|s[0],U=8191&z,W=z>>>13,V=0|s[1],q=8191&V,H=V>>>13,Y=0|s[2],Z=8191&Y,X=Y>>>13,G=0|s[3],K=8191&G,$=G>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],lt=8191&st,ut=st>>>13,ht=0|s[8],ct=8191&ht,dt=ht>>>13,ft=0|s[9],pt=8191&ft,gt=ft>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,U),i=Math.imul(c,W),i=i+Math.imul(d,U)|0,o=Math.imul(d,W);var mt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(p,U),i=Math.imul(p,W),i=i+Math.imul(g,U)|0,o=Math.imul(g,W),n=n+Math.imul(c,q)|0,i=i+Math.imul(c,H)|0,i=i+Math.imul(d,q)|0,o=o+Math.imul(d,H)|0;var vt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,U),i=Math.imul(v,W),i=i+Math.imul(y,U)|0,o=Math.imul(y,W),n=n+Math.imul(p,q)|0,i=i+Math.imul(p,H)|0,i=i+Math.imul(g,q)|0,o=o+Math.imul(g,H)|0,n=n+Math.imul(c,Z)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(d,Z)|0,o=o+Math.imul(d,X)|0;var yt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,U),i=Math.imul(w,W),i=i+Math.imul(_,U)|0,o=Math.imul(_,W),n=n+Math.imul(v,q)|0,i=i+Math.imul(v,H)|0,i=i+Math.imul(y,q)|0,o=o+Math.imul(y,H)|0,n=n+Math.imul(p,Z)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(g,Z)|0,o=o+Math.imul(g,X)|0,n=n+Math.imul(c,K)|0,i=i+Math.imul(c,$)|0,i=i+Math.imul(d,K)|0,o=o+Math.imul(d,$)|0;var bt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,U),i=Math.imul(x,W),i=i+Math.imul(k,U)|0,o=Math.imul(k,W),n=n+Math.imul(w,q)|0,i=i+Math.imul(w,H)|0,i=i+Math.imul(_,q)|0,o=o+Math.imul(_,H)|0,n=n+Math.imul(v,Z)|0,i=i+Math.imul(v,X)|0,i=i+Math.imul(y,Z)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,K)|0,i=i+Math.imul(p,$)|0,i=i+Math.imul(g,K)|0,o=o+Math.imul(g,$)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(d,Q)|0,o=o+Math.imul(d,tt)|0;var wt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,U),i=Math.imul(A,W),i=i+Math.imul(E,U)|0,o=Math.imul(E,W),n=n+Math.imul(x,q)|0,i=i+Math.imul(x,H)|0,i=i+Math.imul(k,q)|0,o=o+Math.imul(k,H)|0,n=n+Math.imul(w,Z)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(_,Z)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(v,K)|0,i=i+Math.imul(v,$)|0,i=i+Math.imul(y,K)|0,o=o+Math.imul(y,$)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(g,Q)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(d,rt)|0,o=o+Math.imul(d,nt)|0;var _t=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(R,U),i=Math.imul(R,W),i=i+Math.imul(T,U)|0,o=Math.imul(T,W),n=n+Math.imul(A,q)|0,i=i+Math.imul(A,H)|0,i=i+Math.imul(E,q)|0,o=o+Math.imul(E,H)|0,n=n+Math.imul(x,Z)|0,i=i+Math.imul(x,X)|0,i=i+Math.imul(k,Z)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,K)|0,i=i+Math.imul(w,$)|0,i=i+Math.imul(_,K)|0,o=o+Math.imul(_,$)|0,n=n+Math.imul(v,Q)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(g,rt)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,at)|0,i=i+Math.imul(d,ot)|0,o=o+Math.imul(d,at)|0;var Mt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(O,U),i=Math.imul(O,W),i=i+Math.imul(D,U)|0,o=Math.imul(D,W),n=n+Math.imul(R,q)|0,i=i+Math.imul(R,H)|0,i=i+Math.imul(T,q)|0,o=o+Math.imul(T,H)|0,n=n+Math.imul(A,Z)|0,i=i+Math.imul(A,X)|0,i=i+Math.imul(E,Z)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(x,K)|0,i=i+Math.imul(x,$)|0,i=i+Math.imul(k,K)|0,o=o+Math.imul(k,$)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(g,ot)|0,o=o+Math.imul(g,at)|0,n=n+Math.imul(c,lt)|0,i=i+Math.imul(c,ut)|0,i=i+Math.imul(d,lt)|0,o=o+Math.imul(d,ut)|0;var xt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(I,U),i=Math.imul(I,W),i=i+Math.imul(L,U)|0,o=Math.imul(L,W),n=n+Math.imul(O,q)|0,i=i+Math.imul(O,H)|0,i=i+Math.imul(D,q)|0,o=o+Math.imul(D,H)|0,n=n+Math.imul(R,Z)|0,i=i+Math.imul(R,X)|0,i=i+Math.imul(T,Z)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(A,K)|0,i=i+Math.imul(A,$)|0,i=i+Math.imul(E,K)|0,o=o+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=i+Math.imul(x,tt)|0,i=i+Math.imul(k,Q)|0,o=o+Math.imul(k,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,lt)|0,i=i+Math.imul(p,ut)|0,i=i+Math.imul(g,lt)|0,o=o+Math.imul(g,ut)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,dt)|0,i=i+Math.imul(d,ct)|0,o=o+Math.imul(d,dt)|0;var kt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(F,U),i=Math.imul(F,W),i=i+Math.imul(j,U)|0,o=Math.imul(j,W),n=n+Math.imul(I,q)|0,i=i+Math.imul(I,H)|0,i=i+Math.imul(L,q)|0,o=o+Math.imul(L,H)|0,n=n+Math.imul(O,Z)|0,i=i+Math.imul(O,X)|0,i=i+Math.imul(D,Z)|0,o=o+Math.imul(D,X)|0,n=n+Math.imul(R,K)|0,i=i+Math.imul(R,$)|0,i=i+Math.imul(T,K)|0,o=o+Math.imul(T,$)|0,n=n+Math.imul(A,Q)|0,i=i+Math.imul(A,tt)|0,i=i+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=i+Math.imul(x,nt)|0,i=i+Math.imul(k,rt)|0,o=o+Math.imul(k,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,at)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(v,lt)|0,i=i+Math.imul(v,ut)|0,i=i+Math.imul(y,lt)|0,o=o+Math.imul(y,ut)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,dt)|0,i=i+Math.imul(g,ct)|0,o=o+Math.imul(g,dt)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,gt)|0,i=i+Math.imul(d,pt)|0,o=o+Math.imul(d,gt)|0;var St=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(F,q),i=Math.imul(F,H),i=i+Math.imul(j,q)|0,o=Math.imul(j,H),n=n+Math.imul(I,Z)|0,i=i+Math.imul(I,X)|0,i=i+Math.imul(L,Z)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(O,K)|0,i=i+Math.imul(O,$)|0,i=i+Math.imul(D,K)|0,o=o+Math.imul(D,$)|0,n=n+Math.imul(R,Q)|0,i=i+Math.imul(R,tt)|0,i=i+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(A,rt)|0,i=i+Math.imul(A,nt)|0,i=i+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(x,ot)|0,i=i+Math.imul(x,at)|0,i=i+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,n=n+Math.imul(w,lt)|0,i=i+Math.imul(w,ut)|0,i=i+Math.imul(_,lt)|0,o=o+Math.imul(_,ut)|0,n=n+Math.imul(v,ct)|0,i=i+Math.imul(v,dt)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,dt)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,gt)|0,i=i+Math.imul(g,pt)|0,o=o+Math.imul(g,gt)|0;var At=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(F,Z),i=Math.imul(F,X),i=i+Math.imul(j,Z)|0,o=Math.imul(j,X),n=n+Math.imul(I,K)|0,i=i+Math.imul(I,$)|0,i=i+Math.imul(L,K)|0,o=o+Math.imul(L,$)|0,n=n+Math.imul(O,Q)|0,i=i+Math.imul(O,tt)|0,i=i+Math.imul(D,Q)|0,o=o+Math.imul(D,tt)|0,n=n+Math.imul(R,rt)|0,i=i+Math.imul(R,nt)|0,i=i+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(A,ot)|0,i=i+Math.imul(A,at)|0,i=i+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(x,lt)|0,i=i+Math.imul(x,ut)|0,i=i+Math.imul(k,lt)|0,o=o+Math.imul(k,ut)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,dt)|0,i=i+Math.imul(_,ct)|0,o=o+Math.imul(_,dt)|0,n=n+Math.imul(v,pt)|0,i=i+Math.imul(v,gt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,gt)|0;var Et=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(F,K),i=Math.imul(F,$),i=i+Math.imul(j,K)|0,o=Math.imul(j,$),n=n+Math.imul(I,Q)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(L,Q)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(O,rt)|0,i=i+Math.imul(O,nt)|0,i=i+Math.imul(D,rt)|0,o=o+Math.imul(D,nt)|0,n=n+Math.imul(R,ot)|0,i=i+Math.imul(R,at)|0,i=i+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(A,lt)|0,i=i+Math.imul(A,ut)|0,i=i+Math.imul(E,lt)|0,o=o+Math.imul(E,ut)|0,n=n+Math.imul(x,ct)|0,i=i+Math.imul(x,dt)|0,i=i+Math.imul(k,ct)|0,o=o+Math.imul(k,dt)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,gt)|0,i=i+Math.imul(_,pt)|0,o=o+Math.imul(_,gt)|0;var Ct=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(F,Q),i=Math.imul(F,tt),i=i+Math.imul(j,Q)|0,o=Math.imul(j,tt),n=n+Math.imul(I,rt)|0,i=i+Math.imul(I,nt)|0,i=i+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(O,ot)|0,i=i+Math.imul(O,at)|0,i=i+Math.imul(D,ot)|0,o=o+Math.imul(D,at)|0,n=n+Math.imul(R,lt)|0,i=i+Math.imul(R,ut)|0,i=i+Math.imul(T,lt)|0,o=o+Math.imul(T,ut)|0,n=n+Math.imul(A,ct)|0,i=i+Math.imul(A,dt)|0,i=i+Math.imul(E,ct)|0,o=o+Math.imul(E,dt)|0,n=n+Math.imul(x,pt)|0,i=i+Math.imul(x,gt)|0,i=i+Math.imul(k,pt)|0,o=o+Math.imul(k,gt)|0;var Rt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(F,rt),i=Math.imul(F,nt),i=i+Math.imul(j,rt)|0,o=Math.imul(j,nt),n=n+Math.imul(I,ot)|0,i=i+Math.imul(I,at)|0,i=i+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(O,lt)|0,i=i+Math.imul(O,ut)|0,i=i+Math.imul(D,lt)|0,o=o+Math.imul(D,ut)|0,n=n+Math.imul(R,ct)|0,i=i+Math.imul(R,dt)|0,i=i+Math.imul(T,ct)|0,o=o+Math.imul(T,dt)|0,n=n+Math.imul(A,pt)|0,i=i+Math.imul(A,gt)|0,i=i+Math.imul(E,pt)|0,o=o+Math.imul(E,gt)|0;var Tt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(F,ot),i=Math.imul(F,at),i=i+Math.imul(j,ot)|0,o=Math.imul(j,at),n=n+Math.imul(I,lt)|0,i=i+Math.imul(I,ut)|0,i=i+Math.imul(L,lt)|0,o=o+Math.imul(L,ut)|0,n=n+Math.imul(O,ct)|0,i=i+Math.imul(O,dt)|0,i=i+Math.imul(D,ct)|0,o=o+Math.imul(D,dt)|0,n=n+Math.imul(R,pt)|0,i=i+Math.imul(R,gt)|0,i=i+Math.imul(T,pt)|0,o=o+Math.imul(T,gt)|0;var Pt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(F,lt),i=Math.imul(F,ut),i=i+Math.imul(j,lt)|0,o=Math.imul(j,ut),n=n+Math.imul(I,ct)|0,i=i+Math.imul(I,dt)|0,i=i+Math.imul(L,ct)|0,o=o+Math.imul(L,dt)|0,n=n+Math.imul(O,pt)|0,i=i+Math.imul(O,gt)|0,i=i+Math.imul(D,pt)|0,o=o+Math.imul(D,gt)|0;var Ot=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(F,ct),i=Math.imul(F,dt),i=i+Math.imul(j,ct)|0,o=Math.imul(j,dt),n=n+Math.imul(I,pt)|0,i=i+Math.imul(I,gt)|0,i=i+Math.imul(L,pt)|0,o=o+Math.imul(L,gt)|0;var Dt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(F,pt),i=Math.imul(F,gt),i=i+Math.imul(j,pt)|0,o=Math.imul(j,gt);var Bt=(u+n|0)+((8191&i)<<13)|0;return u=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,l[0]=mt,l[1]=vt,l[2]=yt,l[3]=bt,l[4]=wt,l[5]=_t,l[6]=Mt,l[7]=xt,l[8]=kt,l[9]=St,l[10]=At,l[11]=Et,l[12]=Ct,l[13]=Rt,l[14]=Tt,l[15]=Pt,l[16]=Ot,l[17]=Dt,l[18]=Bt,0!==u&&(l[19]=u,r.length++),r};function b(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,l=Math.min(o,e.length-1),u=Math.max(0,o-t.length+1);u<=l;u++){var h=o-u,c=0|t.words[h],d=0|e.words[u],f=c*d,p=67108863&f;a=a+(f/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function w(t,e,r){return b(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(y=v),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?y(this,t,e):n<63?v(this,t,e):n<1024?b(this,t,e):w(this,t,e),r},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},_.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},_.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},_.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),h=0;h<i;h+=s)for(var c=l,d=u,f=0;f<a;f++){var p=r[h+f],g=n[h+f],m=r[h+f+a],v=n[h+f+a],y=c*m-d*v;v=c*v+d*m,m=y,r[h+f]=p+m,n[h+f]=g+v,r[h+f+a]=p-m,n[h+f+a]=g-v,f!==s&&(y=l*c-u*d,d=l*d+u*c,c=y)}},_.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},_.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},_.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},_.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),l=new Array(n),u=new Array(n),h=new Array(n),c=new Array(n),d=r.words;d.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,u,n),this.transform(a,o,s,l,n,i),this.transform(u,o,h,c,n,i);for(var f=0;f<n;f++){var p=s[f]*h[f]-l[f]*c[f];l[f]=s[f]*c[f]+l[f]*h[f],s[f]=p}return this.conjugate(s,l,n),this.transform(s,l,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),w(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"===typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=m(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,l=(0|this.words[e])-s<<r;this.words[e]=l|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,l=r;if(i-=a,i=Math.max(0,i),l){for(var u=0;u<a;u++)l.words[u]=this.words[u];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var h=0;for(u=this.length-1;u>=0&&(0!==h||u>=i);u--){var c=0|this.words[u];this.words[u]=h<<26-o|c>>>o,h=c&s}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var l=(0|t.words[i])*e;o-=67108863&l,s=(o>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+s,s=o>>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)o=-(0|this.words[i])+s,s=o>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,a=0|i.words[i.length-1],s=this._countBits(a);r=26-s,0!==r&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var l,u=n.length-i.length;if("mod"!==e){l=new o(null),l.length=u+1,l.words=new Array(l.length);for(var h=0;h<l.length;h++)l.words[h]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,l&&(l.words[u]=1));for(var d=u-1;d>=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);while(0!==n.negative)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);l&&(l.words[d]=f)}return l&&l._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:l||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),a=new o(0),s=new o(0),l=new o(1),u=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++u;var h=r.clone(),c=e.clone();while(!e.isZero()){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0){e.iushrn(d);while(d-- >0)(i.isOdd()||a.isOdd())&&(i.iadd(h),a.isub(c)),i.iushrn(1),a.iushrn(1)}for(var p=0,g=1;0===(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0){r.iushrn(p);while(p-- >0)(s.isOdd()||l.isOdd())&&(s.iadd(h),l.isub(c)),s.iushrn(1),l.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(l)):(r.isub(e),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:r.iushln(u)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,a=new o(1),s=new o(0),l=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var u=0,h=1;0===(e.words[0]&h)&&u<26;++u,h<<=1);if(u>0){e.iushrn(u);while(u-- >0)a.isOdd()&&a.iadd(l),a.iushrn(1)}for(var c=0,d=1;0===(r.words[0]&d)&&c<26;++c,d<<=1);if(c>0){r.iushrn(c);while(c-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return i=0===e.cmpn(1)?a:s,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new C(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var M={k256:null,p224:null,p192:null,p25519:null};function x(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function R(t){C.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},x.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},x.prototype.split=function(t,e){t.iushrn(this.n,0,e)},x.prototype.imulK=function(t){return t.imul(this.k)},i(k,x),k.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},k.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(S,x),i(A,x),i(E,x),E.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(M[t])return M[t];var e;if("k256"===t)e=new k;else if("p224"===t)e=new S;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return M[t]=e,e},C.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},C.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},C.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},C.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},C.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},C.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},C.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},C.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},C.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},C.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},C.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},C.prototype.isqr=function(t){return this.imul(t,t.clone())},C.prototype.sqr=function(t){return this.mul(t,t)},C.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),a=0;while(!i.isZero()&&0===i.andln(1))a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),h=this.m.bitLength();h=new o(2*h*h).toRed(this);while(0!==this.pow(h,u).cmp(l))h.redIAdd(l);var c=this.pow(h,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=a;while(0!==f.cmp(s)){for(var g=f,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m<p);var v=this.pow(c,new o(1).iushln(p-m-1));d=d.redMul(v),c=v.redSqr(),f=f.redMul(c),p=m}return d},C.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},C.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var a=n[0],s=0,l=0,u=e.bitLength()%26;for(0===u&&(u=26),i=e.length-1;i>=0;i--){for(var h=e.words[i],c=u-1;c>=0;c--){var d=h>>c&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==s?(s<<=1,s|=d,l++,(l===r||0===i&&0===c)&&(a=this.mul(a,n[s]),l=0,s=0)):l=0}u=26}return a},C.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},C.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new R(t)},i(R,C),R.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},R.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},R.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},R.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},R.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("62e4")(t))},"39a9":function(t,e,r){ 9/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ 10var n=r("b639"),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!==typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"===typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},"39f5":function(t,e,r){var n=r("8707").Buffer;function i(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i<e;i++)r[i]=t.readUInt32BE(4*i);return r}function o(t){for(var e=0;e<t.length;t++)t[e]=0}function a(t,e,r,n,i){for(var o,a,s,l,u=r[0],h=r[1],c=r[2],d=r[3],f=t[0]^e[0],p=t[1]^e[1],g=t[2]^e[2],m=t[3]^e[3],v=4,y=1;y<i;y++)o=u[f>>>24]^h[p>>>16&255]^c[g>>>8&255]^d[255&m]^e[v++],a=u[p>>>24]^h[g>>>16&255]^c[m>>>8&255]^d[255&f]^e[v++],s=u[g>>>24]^h[m>>>16&255]^c[f>>>8&255]^d[255&p]^e[v++],l=u[m>>>24]^h[f>>>16&255]^c[p>>>8&255]^d[255&g]^e[v++],f=o,p=a,g=s,m=l;return o=(n[f>>>24]<<24|n[p>>>16&255]<<16|n[g>>>8&255]<<8|n[255&m])^e[v++],a=(n[p>>>24]<<24|n[g>>>16&255]<<16|n[m>>>8&255]<<8|n[255&f])^e[v++],s=(n[g>>>24]<<24|n[m>>>16&255]<<16|n[f>>>8&255]<<8|n[255&p])^e[v++],l=(n[m>>>24]<<24|n[f>>>16&255]<<16|n[p>>>8&255]<<8|n[255&g])^e[v++],o>>>=0,a>>>=0,s>>>=0,l>>>=0,[o,a,s,l]}var s=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,l=0;l<256;++l){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[a]=u,n[u]=a;var h=t[a],c=t[h],d=t[c],f=257*t[u]^16843008*u;i[0][a]=f<<24|f>>>8,i[1][a]=f<<16|f>>>16,i[2][a]=f<<8|f>>>24,i[3][a]=f,f=16843009*d^65537*c^257*h^16843008*a,o[0][u]=f<<24|f>>>8,o[1][u]=f<<16|f>>>16,o[2][u]=f<<8|f>>>24,o[3][u]=f,0===a?a=s=1:(a=h^t[t[t[d^h]]],s^=t[t[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function u(t){this._key=i(t),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),i=[],o=0;o<e;o++)i[o]=t[o];for(o=e;o<n;o++){var a=i[o-1];o%e===0?(a=a<<8|a>>>24,a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a],a^=s[o/e|0]<<24):e>6&&o%e===4&&(a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a]),i[o]=i[o-e]^a}for(var u=[],h=0;h<n;h++){var c=n-h,d=i[c-(h%4?0:4)];u[h]=h<4||c<=4?d:l.INV_SUB_MIX[0][l.SBOX[d>>>24]]^l.INV_SUB_MIX[1][l.SBOX[d>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[d>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(t){return t=i(t),a(t,this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},u.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=n.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},u.prototype.decryptBlock=function(t){t=i(t);var e=t[1];t[1]=t[3],t[3]=e;var r=a(t,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=u},"3f62":function(t,e,r){var n=r("8707").Buffer,i=n.alloc(16,0);function o(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function a(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function s(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(t){var e=-1;while(++e<t.length)this.state[e]^=t[e];this._multiply()},s.prototype._multiply=function(){var t,e,r,n=o(this.h),i=[0,0,0,0],s=-1;while(++s<128){for(e=0!==(this.state[~~(s/8)]&1<<7-s%8),e&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!==(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=a(i)},s.prototype.update=function(t){var e;this.cache=n.concat([this.cache,t]);while(this.cache.length>=16)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},s.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,t,0,e])),this.state},t.exports=s},"41df":function(t,e,r){"use strict";const n=e;n.Reporter=r("d1c8").Reporter,n.DecoderBuffer=r("6283").DecoderBuffer,n.EncoderBuffer=r("6283").EncoderBuffer,n.Node=r("8360")},4228:function(t,e,r){var n=r("82f0"),i=r("8707").Buffer,o=r("bac2"),a=r("09f5"),s=r("6430"),l=r("39f5"),u=r("ae84"),h=r("3fb5");function c(t,e,r){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new l.AES(e),this._prev=i.from(r),this._mode=t,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function f(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var r=-1;while(++r<e)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(16!==e)return t.slice(0,16-e)}function p(t,e,r){var s=o[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"===typeof e&&(e=i.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===s.type?new a(s.module,e,r,!0):"auth"===s.type?new n(s.module,e,r,!0):new c(s.module,e,r)}function g(t,e){var r=o[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=u(e,!1,r.key,r.iv);return p(t,n.key,n.iv)}h(c,s),c.prototype._update=function(t){var e,r;this._cache.add(t);var n=[];while(e=this._cache.get(this._autopadding))r=this._mode.decrypt(this,e),n.push(r);return i.concat(n)},c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return f(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=i.concat([this.cache,t])},d.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=g,e.createDecipheriv=p},"42a7":function(t,e,r){"use strict";var n=r("d113").codes.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function o(){}function a(t){return t.setHeader&&"function"===typeof t.abort}function s(t,e,r){if("function"===typeof e)return s(t,null,e);e||(e={}),r=i(r||o);var l=e.readable||!1!==e.readable&&t.readable,u=e.writable||!1!==e.writable&&t.writable,h=function(){t.writable||d()},c=t._writableState&&t._writableState.finished,d=function(){u=!1,c=!0,l||r.call(t)},f=t._readableState&&t._readableState.endEmitted,p=function(){l=!1,f=!0,u||r.call(t)},g=function(e){r.call(t,e)},m=function(){var e;return l&&!f?(t._readableState&&t._readableState.ended||(e=new n),r.call(t,e)):u&&!c?(t._writableState&&t._writableState.ended||(e=new n),r.call(t,e)):void 0},v=function(){t.req.on("finish",d)};return a(t)?(t.on("complete",d),t.on("abort",m),t.req?v():t.on("request",v)):u&&!t._writableState&&(t.on("end",h),t.on("close",h)),t.on("end",p),t.on("finish",d),!1!==e.error&&t.on("error",g),t.on("close",m),function(){t.removeListener("complete",d),t.removeListener("abort",m),t.removeListener("request",v),t.req&&t.req.removeListener("finish",d),t.removeListener("end",h),t.removeListener("close",h),t.removeListener("finish",d),t.removeListener("end",p),t.removeListener("error",g),t.removeListener("close",m)}}t.exports=s},"467f":function(t,e,r){"use strict";var n=r("2d83");t.exports=function(t,e,r){var i=r.config.validateStatus;
10r.status&&i&&!i(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},"49ce":function(t,e,r){"use strict";(function(e,n){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){H(e,t)}}var o;t.exports=C,C.WritableState=E;var a={deprecate:r("b7d1")},s=r("f12a"),l=r("b639").Buffer,u=("undefined"!==typeof e?e:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function h(t){return l.from(t)}function c(t){return l.isBuffer(t)||t instanceof u}var d,f=r("9019"),p=r("05f0"),g=p.getHighWaterMark,m=r("d113").codes,v=m.ERR_INVALID_ARG_TYPE,y=m.ERR_METHOD_NOT_IMPLEMENTED,b=m.ERR_MULTIPLE_CALLBACK,w=m.ERR_STREAM_CANNOT_PIPE,_=m.ERR_STREAM_DESTROYED,M=m.ERR_STREAM_NULL_VALUES,x=m.ERR_STREAM_WRITE_AFTER_END,k=m.ERR_UNKNOWN_ENCODING,S=f.errorOrDestroy;function A(){}function E(t,e,n){o=o||r("5e7d"),t=t||{},"boolean"!==typeof n&&(n=e instanceof o),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=g(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){L(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function C(t){o=o||r("5e7d");var e=this instanceof o;if(!e&&!d.call(C,this))return new C(t);this._writableState=new E(t,this,e),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),s.call(this)}function R(t,e){var r=new x;S(t,r),n.nextTick(e,r)}function T(t,e,r,i){var o;return null===r?o=new M:"string"===typeof r||e.objectMode||(o=new v("chunk",["string","Buffer"],r)),!o||(S(t,o),n.nextTick(i,o),!1)}function P(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=l.from(e,r)),e}function O(t,e,r,n,i,o){if(!r){var a=P(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else D(t,e,!1,s,n,i,o);return l}function D(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new _("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function B(t,e,r,i,o){--e.pendingcb,r?(n.nextTick(o,i),n.nextTick(V,t,e),t._writableState.errorEmitted=!0,S(t,i)):(o(i),t._writableState.errorEmitted=!0,S(t,i),V(t,e))}function I(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function L(t,e){var r=t._writableState,i=r.sync,o=r.writecb;if("function"!==typeof o)throw new b;if(I(r),e)B(t,r,i,e,o);else{var a=z(r)||t.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||j(t,r),i?n.nextTick(N,t,r,a,o):N(t,r,a,o)}}function N(t,e,r,n){r||F(t,e),e.pendingcb--,n(),V(t,e)}function F(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function j(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,o=new Array(n),a=e.corkedRequestsFree;a.entry=r;var s=0,l=!0;while(r)o[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;o.allBuffers=l,D(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{while(r){var u=r.chunk,h=r.encoding,c=r.callback,d=e.objectMode?1:u.length;if(D(t,e,!1,d,u,h,c),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function z(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function U(t,e){t._final((function(r){e.pendingcb--,r&&S(t,r),e.prefinished=!0,t.emit("prefinish"),V(t,e)}))}function W(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,n.nextTick(U,t,e)))}function V(t,e){var r=z(e);
10if(r&&(W(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function q(t,e,r){e.ending=!0,V(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function H(t,e,r){var n=t.entry;t.entry=null;while(n){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}r("3fb5")(C,s),E.prototype.getBuffer=function(){var t=this.bufferedRequest,e=[];while(t)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(E.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===C&&(t&&t._writableState instanceof E)}})):d=function(t){return t instanceof this},C.prototype.pipe=function(){S(this,new w)},C.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&c(t);return o&&!l.isBuffer(t)&&(t=h(t)),"function"===typeof e&&(r=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),"function"!==typeof r&&(r=A),n.ending?R(this,r):(o||T(this,n,t,r))&&(n.pendingcb++,i=O(this,n,o,t,e,r)),i},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||j(this,t))},C.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new k(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(t,e,r){r(new y("_write()"))},C.prototype._writev=null,C.prototype.end=function(t,e,r){var n=this._writableState;return"function"===typeof t?(r=t,t=null,e=null):"function"===typeof e&&(r=e,e=null),null!==t&&void 0!==t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||q(this,n,r),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),C.prototype.destroy=f.destroy,C.prototype._undestroy=f.undestroy,C.prototype._destroy=function(t,e){e(t)}}).call(this,r("c8ba"),r("f28c"))},"4a0c":function(t){t.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.
1019","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},"4a7b":function(t,e,r){"use strict";var n=r("c532");t.exports=function(t,e){e=e||{};var r={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function u(i){n.isUndefined(e[i])?n.isUndefined(t[i])||(r[i]=l(void 0,t[i])):r[i]=l(t[i],e[i])}n.forEach(i,(function(t){n.isUndefined(e[t])||(r[t]=l(void 0,e[t]))})),n.forEach(o,u),n.forEach(a,(function(i){n.isUndefined(e[i])?n.isUndefined(t[i])||(r[i]=l(void 0,t[i])):r[i]=l(void 0,e[i])})),n.forEach(s,(function(n){n in e?r[n]=l(t[n],e[n]):n in t&&(r[n]=l(void 0,t[n]))}));var h=i.concat(o).concat(a).concat(s),c=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===h.indexOf(t)}));return n.forEach(c,u),r}},"4f4d":function(t,e,r){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
10ive:[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]}},5165:function(t,e,r){(function(t){var n=r("8c8a");function i(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,r){while(e._cache.length<r.length)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,o)}}).call(this,r("b639").Buffer)},5239:function(t,e,r){var n=r("8707").Buffer;function i(t,e,r){var n,i,a,s=-1,l=8,u=0;while(++s<l)n=t._cipher.encryptBlock(t._prev),i=e&1<<7-s?128:0,a=n[0]^i,u+=(128&a)>>s%8,t._prev=o(t._prev,r?i:a);return u}function o(t,e){var r=t.length,i=-1,o=n.allocUnsafe(t.length);t=n.concat([t,n.from([e])]);while(++i<r)o[i]=t[i]<<1|t[i+1]>>7;return o}e.encrypt=function(t,e,r){var o=e.length,a=n.allocUnsafe(o),s=-1;while(++s<o)a[s]=i(t,e[s],r);return a}},5270:function(t,e,r){"use strict";var n=r("c532"),i=r("c401"),o=r("2e67"),a=r("2444");function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){s(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return s(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},"57e2":function(t,e,r){"use strict";(function(e){var n;function i(t,e,r){return e=o(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){var e=a(t,"string");return"symbol"===typeof e?e:String(e)}function a(t,e){if("object"!==typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var s=r("42a7"),l=Symbol("lastResolve"),u=Symbol("lastReject"),h=Symbol("error"),c=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),p=Symbol("stream");function g(t,e){return{value:t,done:e}}function m(t){var e=t[l];if(null!==e){var r=t[p].read();null!==r&&(t[d]=null,t[l]=null,t[u]=null,e(g(r,!1)))}}function v(t){e.nextTick(m,t)}function y(t,e){return function(r,n){t.then((function(){e[c]?r(g(void 0,!0)):e[f](r,n)}),n)}}var b=Object.getPrototypeOf((function(){})),w=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var t=this,r=this[h];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(g(void 0,!0));if(this[p].destroyed)return new Promise((function(r,n){e.nextTick((function(){t[h]?n(t[h]):r(g(void 0,!0))}))}));var n,i=this[d];if(i)n=new Promise(y(i,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(g(o,!1));n=new Promise(this[f])}return this[d]=n,n}},i(n,Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var t=this;return new Promise((function(e,r){t[p].destroy(null,(function(t){t?r(t):e(g(void 0,!0))}))}))})),n),b),_=function(t){var e,r=Object.create(w,(e={},i(e,p,{value:t,writable:!0}),i(e,l,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,h,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,f,{value:function(t,e){var n=r[p].read();n?(r[d]=null,r[l]=null,r[u]=null,t(g(n,!1))):(r[l]=t,r[u]=e)},writable:!0}),e));
vendor: 5,999 bytes, line 10
10return r[d]=null,s(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[u];return null!==e&&(r[d]=null,r[l]=null,r[u]=null,e(t)),void(r[h]=t)}var n=r[l];null!==n&&(r[d]=null,r[l]=null,r[u]=null,n(g(void 0,!0))),r[c]=!0})),t.on("readable",v.bind(null,r)),r};t.exports=_}).call(this,r("f28c"))},"5e7d":function(t,e,r){"use strict";(function(e){var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=u;var i=r("cf35"),o=r("49ce");r("3fb5")(u,i);for(var a=n(o.prototype),s=0;s<a.length;s++){var l=a[s];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(t){if(!(this instanceof u))return new u(t);i.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",h)))}function h(){this._writableState.ended||e.nextTick(c,this)}function c(t){t.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,r("f28c"))},"5f02":function(t,e,r){"use strict";t.exports=function(t){return"object"===typeof t&&!0===t.isAxiosError}},6283:function(t,e,r){"use strict";const n=r("3fb5"),i=r("d1c8").Reporter,o=r("c591").Buffer;function a(t,e){i.call(this,e),o.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function s(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return s.isEncoderBuffer(t)||(t=new s(t,e)),this.length+=t.length,t}),this);else if("number"===typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"===typeof t)this.value=t,this.length=o.byteLength(t);else{if(!o.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}n(a,i),e.DecoderBuffer=a,a.isDecoderBuffer=function(t){if(t instanceof a)return!0;const e="object"===typeof t&&o.isBuffer(t.base)&&"DecoderBuffer"===t.constructor.name&&"number"===typeof t.offset&&"number"===typeof t.length&&"function"===typeof t.save&&"function"===typeof t.restore&&"function"===typeof t.isEmpty&&"function"===typeof t.readUInt8&&"function"===typeof t.skip&&"function"===typeof t.raw;return e},a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(t){const e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,i.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");const r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+t,this.offset+=t,r},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=s,s.isEncoderBuffer=function(t){if(t instanceof s)return!0;const e="object"===typeof t&&"EncoderBuffer"===t.constructor.name&&"number"===typeof t.length&&"function"===typeof t.join;return e},s.prototype.join=function(t,e){return t||(t=o.alloc(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(t,e),e+=r.length})):("number"===typeof this.value?t[e]=this.value:"string"===typeof this.value?t.write(this.value,e):o.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},"62c9":function(t,e,r){var n=r("8707").Buffer;function i(t,e,r){var i=t._cipher.encryptBlock(t._prev),o=i[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([r?e:o])]),o}e.encrypt=function(t,e,r){var o=e.length,a=n.allocUnsafe(o),s=-1;while(++s<o)a[s]=i(t,e[s],r);return a}},6430:function(t,e,r){var n=r("8707").Buffer,i=r("d485").Transform,o=r("7d72").StringDecoder,a=r("3fb5");function s(t){i.call(this),this.hashMode="string"===typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}a(s,i),s.prototype.update=function(t,e,r){"string"===typeof t&&(t=n.from(t,e));var i=this._update(t);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(t,e,r){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(i){n=i}finally{r(n)}},s.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(r){e=r}t(e)},s.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},s.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n},t.exports=s},6929:function(t,e,r){"use strict";var n=r("1ab9"),i=r("bb15"),o=[].slice,a=["keyword","gray","hex"],s={};
vendor: 5,073 bytes, line 10
10Object.keys(i).forEach((function(t){s[o.call(i[t].labels).sort().join("")]=t}));var l={};function u(t,e){if(!(this instanceof u))return new u(t,e);if(e&&e in a&&(e=null),e&&!(e in i))throw new Error("Unknown model: "+e);var r,h;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof u)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"===typeof t){var c=n.get(t);if(null===c)throw new Error("Unable to parse color from string: "+t);this.model=c.model,h=i[this.model].channels,this.color=c.value.slice(0,h),this.valpha="number"===typeof c.value[h]?c.value[h]:1}else if(t.length){this.model=e||"rgb",h=i[this.model].channels;var d=o.call(t,0,h);this.color=g(d,h),this.valpha="number"===typeof t[h]?t[h]:1}else if("number"===typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var f=Object.keys(t);"alpha"in t&&(f.splice(f.indexOf("alpha"),1),this.valpha="number"===typeof t.alpha?t.alpha:0);var p=f.sort().join("");if(!(p in s))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=s[p];var m=i[this.model].labels,v=[];for(r=0;r<m.length;r++)v.push(t[m[r]]);this.color=g(v)}if(l[this.model])for(h=i[this.model].channels,r=0;r<h;r++){var y=l[this.model][r];y&&(this.color[r]=y(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function h(t,e){return Number(t.toFixed(e))}function c(t){return function(e){return h(e,t)}}function d(t,e,r){return t=Array.isArray(t)?t:[t],t.forEach((function(t){(l[t]||(l[t]=[]))[e]=r})),t=t[0],function(n){var i;return arguments.length?(r&&(n=r(n)),i=this[t](),i.color[e]=n,i):(i=this[t]().color[e],r&&(i=r(i)),i)}}function f(t){return function(e){return Math.max(0,Math.min(t,e))}}function p(t){return Array.isArray(t)?t:[t]}function g(t,e){for(var r=0;r<e;r++)"number"!==typeof t[r]&&(t[r]=0);return t}u.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in n.to?this:this.rgb();e=e.round("number"===typeof t?t:1);var r=1===e.valpha?e.color:e.color.concat(this.valpha);return n.to[e.model](r)},percentString:function(t){var e=this.rgb().round("number"===typeof t?t:1),r=1===e.valpha?e.color:e.color.concat(this.valpha);return n.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=i[this.model].channels,r=i[this.model].labels,n=0;n<e;n++)t[r[n]]=this.color[n];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new u(this.color.map(c(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new u(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:d("rgb",0,f(255)),green:d("rgb",1,f(255)),blue:d("rgb",2,f(255)),hue:d(["hsl","hsv","hsl","hwb","hcg"],0,(function(t){return(t%360+360)%360})),saturationl:d("hsl",1,f(100)),lightness:d("hsl",2,f(100)),saturationv:d("hsv",1,f(100)),value:d("hsv",2,f(100)),chroma:d("hcg",1,f(100)),gray:d("hcg",2,f(100)),white:d("hwb",1,f(100)),wblack:d("hwb",2,f(100)),cyan:d("cmyk",0,f(100)),magenta:d("cmyk",1,f(100)),yellow:d("cmyk",2,f(100)),black:d("cmyk",3,f(100)),x:d("xyz",0,f(100)),y:d("xyz",1,f(100)),z:d("xyz",2,f(100)),l:d("lab",0,f(100)),a:d("lab",1),b:d("lab",2),keyword:function(t){return arguments.length?new u(t):i[this.model].keyword(this.color)},hex:function(t){return arguments.length?new u(t):n.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,e=[],r=0;r<t.length;r++){var n=t[r]/255;e[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return u.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)}
10,opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var r=t.rgb(),n=this.rgb(),i=void 0===e?.5:e,o=2*i-1,a=r.alpha()-n.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return u.rgb(s*r.red()+l*n.red(),s*r.green()+l*n.green(),s*r.blue()+l*n.blue(),r.alpha()*i+n.alpha()*(1-i))}},Object.keys(i).forEach((function(t){if(-1===a.indexOf(t)){var e=i[t].channels;u.prototype[t]=function(){if(this.model===t)return new u(this);if(arguments.length)return new u(arguments,t);var r="number"===typeof arguments[e]?e:this.valpha;return new u(p(i[this.model][t].raw(this.color)).concat(r),t)},u[t]=function(r){return"number"===typeof r&&(r=g(o.call(arguments),e)),new u(r,t)}}})),t.exports=u},"6ade":function(t,e,r){var n=r("8c8a"),i=r("8707").Buffer,o=r("bd9d");function a(t){var e=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),e}var s=16;e.encrypt=function(t,e){var r=Math.ceil(e.length/s),o=t._cache.length;t._cache=i.concat([t._cache,i.allocUnsafe(r*s)]);for(var l=0;l<r;l++){var u=a(t),h=o+l*s;t._cache.writeUInt32BE(u[0],h+0),t._cache.writeUInt32BE(u[1],h+4),t._cache.writeUInt32BE(u[2],h+8),t._cache.writeUInt32BE(u[3],h+12)}var c=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),n(e,c)}},"6fe7":function(t,e,r){"use strict";var n=r("39a9").Buffer,i=r("1a2a"),o=r("a958"),a=r("3337").ec,s=r("399f"),l=r("2aee"),u=r("cd91"),h=1;function c(t,e,r,i,a){var s=l(e);if(s.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return d(t,s)}if("dsa"===s.type){if("dsa"!==i)throw new Error("wrong private key type");return f(t,s,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");if(void 0!==e.padding&&e.padding!==h)throw new Error("illegal or unsupported padding mode");t=n.concat([a,t]);var u=s.modulus.byteLength(),c=[0,1];while(t.length+c.length+1<u)c.push(255);c.push(0);var p=-1;while(++p<t.length)c.push(t[p]);var g=o(c,s);return g}function d(t,e){var r=u[e.curve.join(".")];if(!r)throw new Error("unknown curve "+e.curve.join("."));var i=new a(r),o=i.keyFromPrivate(e.privateKey),s=o.sign(t);return n.from(s.toDER())}function f(t,e,r){var n,i=e.params.priv_key,o=e.params.p,a=e.params.q,l=e.params.g,u=new s(0),h=m(t,a).mod(a),c=!1,d=g(i,a,t,r);while(!1===c)n=y(a,d,r),u=b(l,n,o,a),c=n.invm(a).imul(h.add(i.mul(u))).mod(a),0===c.cmpn(0)&&(c=!1,u=new s(0));return p(u,c)}function p(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t)),128&e[0]&&(e=[0].concat(e));var r=t.length+e.length+4,i=[48,r,2,t.length];return i=i.concat(t,[2,e.length],e),n.from(i)}function g(t,e,r,o){if(t=n.from(t.toArray()),t.length<e.byteLength()){var a=n.alloc(e.byteLength()-t.length);t=n.concat([a,t])}var s=r.length,l=v(r,e),u=n.alloc(s);u.fill(1);var h=n.alloc(s);return h=i(o,h).update(u).update(n.from([0])).update(t).update(l).digest(),u=i(o,h).update(u).digest(),h=i(o,h).update(u).update(n.from([1])).update(t).update(l).digest(),u=i(o,h).update(u).digest(),{k:h,v:u}}function m(t,e){var r=new s(t),n=(t.length<<3)-e.bitLength();return n>0&&r.ishrn(n),r}function v(t,e){t=m(t,e),t=t.mod(e);var r=n.from(t.toArray());if(r.length<e.byteLength()){var i=n.alloc(e.byteLength()-r.length);r=n.concat([i,r])}return r}function y(t,e,r){var o,a;do{o=n.alloc(0);while(8*o.length<t.bitLength())e.v=i(r,e.k).update(e.v).digest(),o=n.concat([o,e.v]);a=m(o,t),e.k=i(r,e.k).update(e.v).update(n.from([0])).digest(),e.v=i(r,e.k).update(e.v).digest()}while(-1!==a.cmp(t));return a}function b(t,e,r,n){return t.toRed(s.mont(r)).redPow(e).fromRed().mod(n)}
10t.exports=c,t.exports.getKey=g,t.exports.makeKey=y},"7a77":function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},"7aac":function(t,e,r){"use strict";var n=r("c532");t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,r,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7f7a":function(t,e,r){"use strict";const n=e;n.bignum=r("bc12"),n.define=r("ef3a").define,n.base=r("41df"),n.constants=r("0211"),n.decoders=r("20f6"),n.encoders=r("343e")},"82f0":function(t,e,r){var n=r("39f5"),i=r("8707").Buffer,o=r("6430"),a=r("3fb5"),s=r("3f62"),l=r("8c8a"),u=r("bd9d");function h(t,e){var r=0;t.length!==e.length&&r++;for(var n=Math.min(t.length,e.length),i=0;i<n;++i)r+=t[i]^e[i];return r}function c(t,e,r){if(12===e.length)return t._finID=i.concat([e,i.from([0,0,0,1])]),i.concat([e,i.from([0,0,0,2])]);var n=new s(r),o=e.length,a=o%16;n.update(e),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var l=8*o,h=i.alloc(8);h.writeUIntBE(l,0,8),n.update(h),t._finID=n.state;var c=i.from(t._finID);return u(c),c}function d(t,e,r,a){o.call(this);var l=i.alloc(4,0);this._cipher=new n.AES(e);var u=this._cipher.encryptBlock(l);this._ghash=new s(u),r=c(this,r,u),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}a(d,o),d.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=i.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r},d.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&h(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},d.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},d.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},d.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=d},8360:function(t,e,r){"use strict";const n=r("d1c8").Reporter,i=r("6283").EncoderBuffer,o=r("6283").DecoderBuffer,a=r("da3e"),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),u=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function h(t,e,r){const n={};this._baseState=n,n.name=r,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n["default"]=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=h;const c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){const t=this._baseState,e={};
vendor: 6,346 bytes, line 10
10c.forEach((function(r){e[r]=t[r]}));const r=new this.constructor(e.parent);return r._baseState=e,r},h.prototype._wrap=function(){const t=this._baseState;l.forEach((function(e){this[e]=function(){const r=new this.constructor(this);return t.children.push(r),r[e].apply(r,arguments)}}),this)},h.prototype._init=function(t){const e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),a.equal(e.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(t){const e=this._baseState,r=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==r.length&&(a(null===e.children),e.children=r,r.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(a(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!==typeof t||t.constructor!==Object)return t;const e={};return Object.keys(t).forEach((function(r){r==(0|r)&&(r|=0);const n=t[r];e[n]=r})),e})))},u.forEach((function(t){h.prototype[t]=function(){const e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),s.forEach((function(t){h.prototype[t]=function(){const e=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(r),this}})),h.prototype.use=function(t){a(t);const e=this._baseState;return a(null===e.use),e.use=t,this},h.prototype.optional=function(){const t=this._baseState;return t.optional=!0,this},h.prototype.def=function(t){const e=this._baseState;return a(null===e["default"]),e["default"]=t,e.optional=!0,this},h.prototype.explicit=function(t){const e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},h.prototype.implicit=function(t){const e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},h.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},h.prototype.key=function(t){const e=this._baseState;return a(null===e.key),e.key=t,this},h.prototype.any=function(){const t=this._baseState;return t.any=!0,this},h.prototype.choice=function(t){const e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},h.prototype.contains=function(t){const e=this._baseState;return a(null===e.use),e.contains=t,this},h.prototype._decode=function(t,e){const r=this._baseState;if(null===r.parent)return t.wrapResult(r.children[0]._decode(t,e));let n,i=r["default"],a=!0,s=null;if(null!==r.key&&(s=t.enterKey(r.key)),r.optional){let n=null;if(null!==r.explicit?n=r.explicit:null!==r.implicit?n=r.implicit:null!==r.tag&&(n=r.tag),null!==n||r.any){if(a=this._peekTag(t,n,r.any),t.isError(a))return a}else{const n=t.save();try{null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),a=!0}catch(l){a=!1}t.restore(n)}}if(r.obj&&a&&(n=t.enterObject()),a){if(null!==r.explicit){const e=this._decodeTag(t,r.explicit);if(t.isError(e))return e;t=e}const n=t.offset;if(null===r.use&&null===r.choice){let e;r.any&&(e=t.save());const n=this._decodeTag(t,null!==r.implicit?r.implicit:r.tag,r.any);if(t.isError(n))return n;r.any?i=t.raw(e):t=n}if(e&&e.track&&null!==r.tag&&e.track(t.path(),n,t.length,"tagged"),e&&e.track&&null!==r.tag&&e.track(t.path(),t.offset,t.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e)),t.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(t,e)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new o(i);i=this._getUse(r.contains,t._reporterState.obj)._decode(n,e)}}return r.obj&&a&&(i=t.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==s&&t.exitKey(s):t.leaveKey(s,r.key,i),i},h.prototype._decodeGeneric=function(t,e,r){const n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],r):/str$/.test(t)?this._decodeStr(e,t,r):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],r):"objid"===t?this._decodeObjid(e,null,null,r):"gentime"===t||"utctime"===t?this._decodeTime(e,t,r):"null_"===t?this._decodeNull(e,r):"bool"===t?this._decodeBool(e,r):"objDesc"===t?this._decodeStr(e,t,r):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,r):e.error("unknown tag: "+t)},h.prototype._getUse=function(t,e){const r=this._baseState;return r.useDecoder=this._use(t,e),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},h.prototype._decodeChoice=function(t,e){const r=this._baseState;let n=null,i=!1;return Object.keys(r.choice).some((function(o){const a=t.save(),s=r.choice[o];try{const r=s._decode(t,e);if(t.isError(r))return!1;n={type:o,value:r},i=!0}catch(l){return t.restore(a),!1}return!0}),this),i?n:t.error("Choice not matched")},h.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},h.prototype._encode=function(t,e,r){const n=this._baseState;if(null!==n["default"]&&n["default"]===t)return;const i=this._encodeValue(t,e,r);return void 0===i||this._skipDefault(i,e,r)?void 0:i},h.prototype._encodeValue=function(t,e,r){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new n);let o=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i["default"])return;t=i["default"]}let a=null,s=!1;if(i.any)o=this._createEncoderBuffer(t);else if(i.choice)o=this._encodeChoice(t,e);else if(i.contains)a=this._getUse(i.contains,r)._encode(t,e),s=!0;else if(i.children)a=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,e,t);if(null===r._baseState.key)return e.error("Child should have a key");const n=e.enterKey(r._baseState.key);if("object"!==typeof t)return e.error("Child expected, but input is not object");const i=r._encode(t[r._baseState.key],e,t);return e.leaveKey(n),i}),this).filter((function(t){return t})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);
10if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");const r=this.clone();r._baseState.implicit=null,a=this._createEncoderBuffer(t.map((function(r){const n=this._baseState;return this._getUse(n.args[0],t)._encode(r,e)}),r))}else null!==i.use?o=this._getUse(i.use,r)._encode(t,e):(a=this._encodePrimitive(i.tag,t),s=!0);if(!i.any&&null===i.choice){const t=null!==i.implicit?i.implicit:i.tag,r=null===i.implicit?"universal":"context";null===t?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(t,s,r,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},h.prototype._encodeChoice=function(t,e){const r=this._baseState,n=r.choice[t.type];return n||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(t.value,e)},h.prototype._encodePrimitive=function(t,e){const r=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&r.args)return this._encodeObjid(e,r.reverseArgs[0],r.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,r.args&&r.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},h.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},h.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},"83b9":function(t,e,r){"use strict";var n=r("d925"),i=r("e683");t.exports=function(t,e){return t&&!n(e)?i(t,e):e}},"848b":function(t,e,r){"use strict";var n=r("4a0c"),i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var o={},a=n.version.split(".");function s(t,e){for(var r=e?e.split("."):a,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}function l(t,e,r){if("object"!==typeof t)throw new TypeError("options must be an object");var n=Object.keys(t),i=n.length;while(i-- >0){var o=n[i],a=e[o];if(a){var s=t[o],l=void 0===s||a(s,o,t);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==r)throw Error("Unknown option "+o)}}i.transitional=function(t,e,r){var i=e&&s(e);function a(t,e){return"[Axios v"+n.version+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,n,s){if(!1===t)throw new Error(a(n," has been removed in "+e));return i&&!o[n]&&(o[n]=!0,console.warn(a(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,n,s)}},t.exports={isOlderVersion:s,assertOptions:l,validators:i}},"85b3":function(t,e,r){"use strict";const n=r("3fb5"),i=r("3768");function o(t){i.call(this,t),this.enc="pem"}n(o,i),t.exports=o,o.prototype.encode=function(t,e){const r=i.prototype.encode.call(this,t),n=r.toString("base64"),o=["-----BEGIN "+e.label+"-----"];for(let i=0;i<n.length;i+=64)o.push(n.slice(i,i+64));return o.push("-----END "+e.label+"-----"),o.join("\n")}},8947:function(t,e,r){var n=r("bac2"),i=r("82f0"),o=r("8707").Buffer,a=r("09f5"),s=r("6430"),l=r("39f5"),u=r("ae84"),h=r("3fb5");function c(t,e,r){s.call(this),this._cache=new f,this._cipher=new l.AES(e),this._prev=o.from(r),this._mode=t,this._autopadding=!0}h(c,s),c.prototype._update=function(t){var e,r;this._cache.add(t);var n=[];while(e=this._cache.get())r=this._mode.encrypt(this,e),n.push(r);return o.concat(n)};var d=o.alloc(16,16);function f(){this.cache=o.allocUnsafe(0)}function p(t,e,r){var s=n[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof e&&(e=o.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);if("string"===typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,e,r):"auth"===s.type?new i(s.module,e,r):new c(s.module,e,r)}function g(t,e){var r=n[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=u(e,!1,r.key,r.iv);return p(t,i.key,i.iv)}c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},f.prototype.add=function(t){this.cache=o.concat([this.cache,t])},f.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},f.prototype.flush=function(){var t=16-this.cache.length,e=o.allocUnsafe(t),r=-1;while(++r<t)e.writeUInt8(t,r);return o.concat([this.cache,e])},e.createCipheriv=p,e.createCipher=g},"8b63":function(t,e,r){"use strict";
10t.exports={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]}},"8b71":function(t,e,r){"use strict";function n(t){const e={};return Object.keys(t).forEach((function(r){(0|r)==r&&(r|=0);const n=t[r];e[n]=r})),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=n(e.tag)},"8c8a":function(t,e,r){(function(e){t.exports=function(t,r){for(var n=Math.min(t.length,r.length),i=new e(n),o=0;o<n;
vendor: 4,827 bytes, line 10
10++o)i[o]=t[o]^r[o];return i}}).call(this,r("b639").Buffer)},"8df4b":function(t,e,r){"use strict";var n=r("7a77");function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t,e=new i((function(e){t=e}));return{token:e,cancel:t}},t.exports=i},"8df7":function(t,e,r){"use strict";const n=r("3fb5"),i=r("c591").Buffer,o=r("cfbd");function a(t){o.call(this,t),this.enc="pem"}n(a,o),t.exports=a,a.prototype.decode=function(t,e){const r=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/;let s=-1,l=-1;for(let i=0;i<r.length;i++){const t=r[i].match(a);if(null!==t&&t[2]===n){if(-1!==s){if("END"!==t[1])break;l=i;break}if("BEGIN"!==t[1])break;s=i}}if(-1===s||-1===l)throw new Error("PEM section not found for: "+n);const u=r.slice(s+1,l).join("");u.replace(/[^a-z0-9+/=]+/gi,"");const h=i.from(u,"base64");return o.prototype.decode.call(this,h,e)}},9019:function(t,e,r){"use strict";(function(e){function r(t,r){var o=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(r?r(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(a,this,t)):e.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!r&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(i,o):(o._writableState.errorEmitted=!0,e.nextTick(n,o,t)):e.nextTick(n,o,t):r?(e.nextTick(i,o),r(t)):e.nextTick(i,o)})),this)}function n(t,e){a(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(t,e){t.emit("error",e)}function s(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:r,undestroy:o,errorOrDestroy:s}}).call(this,r("f28c"))},"956a":function(t,e,r){var n=r("1e3c"),i=r("fda6"),o=r("bac2"),a=r("0be8"),s=r("ae84");function l(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=s(e,!1,r,n);return h(t,i.key,i.iv)}function u(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=s(e,!1,r,n);return c(t,i.key,i.iv)}function h(t,e,r){if(t=t.toLowerCase(),o[t])return i.createCipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function c(t,e,r){if(t=t.toLowerCase(),o[t])return i.createDecipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}function d(){return Object.keys(a).concat(i.getCiphers())}e.createCipher=e.Cipher=l,e.createCipheriv=e.Cipheriv=h,e.createDecipher=e.Decipher=u,e.createDecipheriv=e.Decipheriv=c,e.listCiphers=e.getCiphers=d},"980c":function(t,e,r){"use strict";var n=r("39a9").Buffer,i=r("399f"),o=r("3337").ec,a=r("2aee"),s=r("cd91");function l(t,e,r,o,s){var l=a(r);if("ec"===l.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");return u(t,e,l)}if("dsa"===l.type){if("dsa"!==o)throw new Error("wrong public key type");return h(t,e,l)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");e=n.concat([s,e]);var c=l.modulus.byteLength(),d=[1],f=0;while(e.length+d.length+2<c)d.push(255),f+=1;d.push(0);var p=-1;while(++p<e.length)d.push(e[p]);d=n.from(d);var g=i.mont(l.modulus);t=new i(t).toRed(g),t=t.redPow(new i(l.publicExponent)),t=n.from(t.fromRed().toArray());var m=f<8?1:0;c=Math.min(t.length,d.length),t.length!==d.length&&(m=1),p=-1;while(++p<c)m|=t[p]^d[p];return 0===m}function u(t,e,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(e,t,a)}function h(t,e,r){var n=r.data.p,o=r.data.q,s=r.data.g,l=r.data.pub_key,u=a.signature.decode(t,"der"),h=u.s,d=u.r;c(h,o),c(d,o);var f=i.mont(n),p=h.invm(o),g=s.toRed(f).redPow(new i(e).mul(p).mod(o)
10).fromRed().mul(l.toRed(f).redPow(d.mul(p).mod(o)).fromRed()).mod(n).mod(o);return 0===g.cmp(d)}function c(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=0)throw new Error("invalid sig")}t.exports=l},"9d28":function(t,e,r){"use strict";t.exports=i;var n=r("f1c8");function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r("3fb5")(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},a12a:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function a(t){try{l(n.next(t))}catch(e){o(e)}}function s(t){try{l(n["throw"](t))}catch(e){o(e)}}function l(t){t.done?r(t.value):i(t.value).then(a,s)}l((n=n.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(o){if(r)throw new TypeError("Generator is already executing.");while(a)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var o=r("e883"),a=r("01ec"),s=["pause","play","playbackStatusUpdate","playbackStatusChange","resolutionUpdate","volumeChange"],l=function(){function t(t,e){this.embedElement=t,this.scope=e,this.eventRegistrar=new a.EventRegistrar,this.eventRegistrar.registerTypes(s),this.constructChannel(),this.prepareToBeReady()}return t.prototype.destroy=function(){this.embedElement.remove()},t.prototype.addEventListener=function(t,e){return this.eventRegistrar.addListener(t,e)},t.prototype.removeEventListener=function(t,e){return this.eventRegistrar.removeListener(t,e)},Object.defineProperty(t.prototype,"ready",{get:function(){return this.readyPromise},enumerable:!0,configurable:!0}),t.prototype.play=function(){return n(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.sendMessage("play")];case 1:return t.sent(),[2]}}))}))},t.prototype.pause=function(){return n(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.sendMessage("pause")];case 1:return t.sent(),[2]}}))}))},t.prototype.setVolume=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.sendMessage("setVolume",t)];case 1:return e.sent(),[2]}}))}))},t.prototype.getVolume=function(){return n(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.sendMessage("getVolume")]}))}))},t.prototype.seek=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.sendMessage("seek",t)];case 1:return e.sent(),[2]}}))}))},t.prototype.setResolution=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.sendMessage("setResolution",t)];case 1:return e.sent(),[2]}}))}))},t.prototype.getResolutions=function(){return n(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.sendMessage("getResolutions")]}))}))},t.prototype.getPlaybackRates=function(){return n(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.sendMessage("getPlaybackRates")]}))}))},t.prototype.getPlaybackRate=function(){return n(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.sendMessage("getPlaybackRate")]}))}))},t.prototype.setPlaybackRate=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.sendMessage("setPlaybackRate",t)];case 1:return e.sent(),[2]}}))}))},t.prototype.constructChannel=function(){this.channel=o.build({window:this.embedElement.contentWindow,origin:"*",scope:this.scope||"peertube"}
10),this.eventRegistrar.bindToChannel(this.channel)},t.prototype.prepareToBeReady=function(){var t,e;this.readyPromise=new Promise((function(r,n){t=r,e=n})),this.channel.bind("ready",(function(r){return r?t():e()})),this.channel.call({method:"isReady",success:function(e){return e?t():null}})},t.prototype.sendMessage=function(t,e){var r=this;return new Promise((function(n,i){r.channel.call({method:t,params:e,success:function(t){return n(t)},error:function(t){return i(t)}})}))},t}();e.PeerTubePlayer=l,window["PeerTubePlayer"]=l},a279:function(t,e,r){var n=r("b753");function i(){for(var t={},e=Object.keys(n),r=e.length,i=0;i<r;i++)t[e[i]]={distance:-1,parent:null};return t}function o(t){var e=i(),r=[t];e[t].distance=0;while(r.length)for(var o=r.pop(),a=Object.keys(n[o]),s=a.length,l=0;l<s;l++){var u=a[l],h=e[u];-1===h.distance&&(h.distance=e[o].distance+1,h.parent=o,r.unshift(u))}return e}function a(t,e){return function(r){return e(t(r))}}function s(t,e){var r=[e[t].parent,t],i=n[e[t].parent][t],o=e[t].parent;while(e[o].parent)r.unshift(e[o].parent),i=a(n[e[o].parent][o],i),o=e[o].parent;return i.conversion=r,i}t.exports=function(t){for(var e=o(t),r={},n=Object.keys(e),i=n.length,a=0;a<i;a++){var l=n[a],u=e[l];null!==u.parent&&(r[l]=s(l,e))}return r}},a958:function(t,e,r){(function(e){var n=r("399f"),i=r("11dc");function o(t){var e=a(t),r=e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed();return{blinder:r,unblinder:e.invm(t.modulus)}}function a(t){var e,r=t.modulus.byteLength();do{e=new n(i(r))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function s(t,r){var i=o(r),a=r.modulus.byteLength(),s=new n(t).mul(i.blinder).umod(r.modulus),l=s.toRed(n.mont(r.prime1)),u=s.toRed(n.mont(r.prime2)),h=r.coefficient,c=r.prime1,d=r.prime2,f=l.redPow(r.exponent1).fromRed(),p=u.redPow(r.exponent2).fromRed(),g=f.isub(p).imul(h).umod(c).imul(d);return p.iadd(g).imul(i.unblinder).umod(r.modulus).toArrayLike(e,"be",a)}s.getr=a,t.exports=s}).call(this,r("b639").Buffer)},a9be:function(t,e,r){ 11/*! 12 * chartjs-plugin-datalabels v0.6.0 13 * https://chartjs-plugin-datalabels.netlify.com 14 * (c) 2019 Chart.js Contributors 15 * Released under the MIT license 16 */ 17(function(e,n){t.exports=n(r("30ef"))})(0,(function(t){"use strict";t=t&&t.hasOwnProperty("default")?t["default"]:t;var e=t.helpers,r=function(){if("undefined"!==typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),n={toTextLines:function(t){var r,n=[];t=[].concat(t);while(t.length)r=t.pop(),"string"===typeof r?n.unshift.apply(n,r.split("\n")):Array.isArray(r)?t.push.apply(t,r):e.isNullOrUndef(t)||n.unshift(""+r);return n},toFontString:function(t){return!t||e.isNullOrUndef(t.size)||e.isNullOrUndef(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family},textSize:function(t,e,r){var n,i=[].concat(e),o=i.length,a=t.font,s=0;for(t.font=r.string,n=0;n<o;++n)s=Math.max(t.measureText(i[n]).width,s);return t.font=a,{height:o*r.lineHeight,width:s}},parseFont:function(r){var i=t.defaults.global,o=e.valueOrDefault(r.size,i.defaultFontSize),a={family:e.valueOrDefault(r.family,i.defaultFontFamily),lineHeight:e.options.toLineHeight(r.lineHeight,o),size:o,style:e.valueOrDefault(r.style,i.defaultFontStyle),weight:e.valueOrDefault(r.weight,null),string:""};return a.string=n.toFontString(a),a},bound:function(t,e,r){return Math.max(t,Math.min(e,r))},arrayDiff:function(t,e){var r,n,i,o,a=t.slice(),s=[];for(r=0,i=e.length;r<i;++r)o=e[r],n=a.indexOf(o),-1===n?s.push([o,1]):a.splice(n,1);for(r=0,i=a.length;r<i;++r)s.push([a[r],-1]);return s},rasterize:function(t){return Math.round(t*r)/r}};function i(t,e){var r=e.x,n=e.y;if(null===r)return{x:0,y:-1};if(null===n)return{x:1,y:0};var i=t.x-r,o=t.y-n,a=Math.sqrt(i*i+o*o);return{x:a?i/a:0,y:a?o/a:-1}}function o(t,e,r,n,i){switch(i){case"center":r=n=0;break;case"bottom":r=0,n=1;break;case"right":r=1,n=0;break;case"left":r=-1,n=0;break;case"top":r=0,n=-1;break;case"start":r=-r,n=-n;break;case"end":break;default:i*=Math.PI/180,r=Math.cos(i),n=Math.sin(i);break}return{x:t,y:e,vx:r,vy:n}}var a=0,s=1,l=2,u=4,h=8;function c(t,e,r){var n=a;return t<r.left?n|=s:t>r.right&&(n|=l),e<r.top?n|=h:e>r.bottom&&(n|=u),n}function d(t,e){var r,n,i,o=t.x0,a=t.y0,d=t.x1,f=t.y1,p=c(o,a,e),g=c(d,f,e);while(1){if(!(p|g)||p&g)break;r=p||g,r&h?(n=o+(d-o)*(e.top-a)/(f-a),i=e.top):r&u?(n=o+(d-o)*(e.bottom-a)/(f-a),i=e.bottom):r&l?(i=a+(f-a)*(e.right-o)/(d-o),n=e.right):r&s&&(i=a+(f-a)*(e.left-o)/(d-o),n=e.left),r===p?(o=n,a=i,p=c(o,a,e)):(d=n,f=i,g=c(d,f,e))}return{x0:o,x1:d,y0:a,y1:f}}function f(t,e){var r,n,i=e.anchor,a=t;return e.clamp&&(a=d(a,e.area)),"start"===i?(r=a.x0,n=a.y0):"end"===i?(r=a.x1,n=a.y1):(r=(a.x0+a.x1)/2,n=(a.y0+a.y1)/2),o(r,n,t.vx,t.vy,e.align)}var p={arc:function(t,e){var r=(t.startAngle+t.endAngle)/2,n=Math.cos(r),i=Math.sin(r),o=t.innerRadius,a=t.outerRadius;return f({x0:t.x+n*o,y0:t.y+i*o,x1:t.x+n*a,y1:t.y+i*a,vx:n,vy:i},e)},point:function(t,e){var r=i(t,e.origin),n=r.x*t.radius,o=r.y*t.radius;return f({x0:t.x-n,y0:t.y-o,x1:t.x+n,y1:t.y+o,vx:r.x,vy:r.y},e)},rect:function(t,e){var r=i(t,e.origin),n=t.x,o=t.y,a=0,s=0;return t.horizontal?(n=Math.min(t.x,t.base),a=Math.abs(t.base-t.x)):(o=Math.min(t.y,t.base),s=Math.abs(t.base-t.y)),f({x0:n,y0:o+s,x1:n+a,y1:o,vx:r.x,vy:r.y},e)},fallback:function(t,e){var r=i(t,e.origin);return f({x0:t.x,y0:t.y,x1:t.x,y1:t.y,vx:r.x,vy:r.y},e)}},g=t.helpers,m=n.rasterize;function v(t){var e=t.borderWidth||0,r=t.padding,n=t.size.height,i=t.size.width,o=-i/2,a=-n/2;return{frame:{x:o-r.left-e,y:a-r.top-e,w:i+r.width+2*e,h:n+r.height+2*e},text:{x:o,y:a,w:i,h:n}}}function y(t){var e=t._model.horizontal,r=t._scale||e&&t._xScale||t._yScale;if(!r)return null;if(void 0!==r.xCenter&&void 0!==r.yCenter)return{x:r.xCenter,y:r.yCenter};var n=r.getBasePixel();return e?{x:n,y:null}:{x:null,y:n}}function b(e){return e instanceof t.elements.Arc?p.arc:e instanceof t.elements.Point?p.point:e instanceof t.elements.Rectangle?p.rect:p.fallback}function w(t,e,r){var n=r.backgroundColor,i=r.borderColor,o=r.borderWidth;(n||i&&o)&&(t.beginPath(),g.canvas.roundedRect(t,m(e.x)+o/2,m(e.y)+o/2,m(e.w)-o,m(e.h)-o,r.borderRadius),t.closePath(),n&&(t.fillStyle=n,t.fill()),i&&o&&(t.strokeStyle=i,t.lineWidth=o,t.lineJoin="miter",t.stroke()))}function _(t,e,r){var n=r.lineHeight,i=t.w,o=t.x,a=t.y+n/2;return"center"===e?o+=i/2:"end"!==e&&"right"!==e||(o+=i),{h:n,w:i,x:o,y:a}}function M(t,e,r){var n=t.shadowBlur,i=r.stroked,o=m(r.x),a=m(r.y),s=m(r.w);i&&t.strokeText(e,o,a,s),r.filled&&(n&&i&&(t.shadowBlur=0),t.fillText(e,o,a,s),n&&i&&(t.shadowBlur=n))}function x(t,e,r,n){var i,o=n.textAlign,a=n.color,s=!!a,l=n.font,u=e.length,h=n.textStrokeColor,c=n.textStrokeWidth,d=h&&c;if(u&&(s||d))for(r=_(r,o,l),t.font=l.string,t.textAlign=o,t.textBaseline="middle",t.shadowBlur=n.textShadowBlur,t.shadowColor=n.textShadowColor,s&&(t.fillStyle=a),d&&(t.lineJoin="round",t.lineWidth=c,t.strokeStyle=h),i=0,u=e.length;i<u;++i)M(t,e[i],{stroked:d,filled:s,w:r.w,x:r.x,y:r.y+r.h*i})}var k=function(t,e,r,n){var i=this;i._config=t,i._index=n,i._model=null,i._rects=null,i._ctx=e,i._el=r};g.extend(k.prototype,{_modelize:function(e,r,i,o){var a=this,s=a._index,l=g.options.resolve,u=n.parseFont(l([i.font,{}],o,s)),h=l([i.color,t.defaults.global.defaultFontColor],o,s);return{align:l([i.align,"center"],o,s),anchor:l([i.anchor,"center"],o,s),area:o.chart.chartArea,backgroundColor:l([i.backgroundColor,null],o,s),borderColor:l([i.borderColor,null],o,s),borderRadius:l([i.borderRadius,0],o,s),borderWidth:l([i.borderWidth,0],o,s),clamp:l([i.clamp,!1],o,s),clip:l([i.clip,!1],o,s),color:h,display:e,font:u,lines:r,offset:l([i.offset,0],o,s),opacity:l([i.opacity,1],o,s),origin:y(a._el),padding:g.options.toPadding(l([i.padding,0],o,s)),positioner:b(a._el),rotation:l([i.rotation,0],o,s)*(Math.PI/180),size:n.textSize(a._ctx,r,u),textAlign:l([i.textAlign,"start"],o,s),textShadowBlur:l([i.textShadowBlur,0],o,s),textShadowColor:l([i.textShadowColor,h],o,s),textStrokeColor:l([i.textStrokeColor,h],o,s),textStrokeWidth:l([i.textStrokeWidth,0],o,s)}},update:function(t){var e,r,i,o=this,a=null,s=null,l=o._index,u=o._config,h=g.options.resolve([u.display,!0],t,l);h&&(e=t.dataset.data[l],r=g.valueOrDefault(g.callback(u.formatter,[e,t]),e),i=g.isNullOrUndef(r)?[]:n.toTextLines(r),i.length&&(a=o._modelize(h,i,u,t),s=v(a))),o._model=a,o._rects=s},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(t,e){var r,i=this,o=t.ctx,a=i._model,s=i._rects;this.visible()&&(o.save(),a.clip&&(r=a.area,o.beginPath(),o.rect(r.left,r.top,r.right-r.left,r.bottom-r.top),o.clip()),o.globalAlpha=n.bound(0,a.op
17acity,1),o.translate(m(e.x),m(e.y)),o.rotate(a.rotation),w(o,s.frame,a),x(o,a.lines,s.text,a),o.restore())}});var S=t.helpers,A=Number.MIN_SAFE_INTEGER||-9007199254740991,E=Number.MAX_SAFE_INTEGER||9007199254740991;function C(t,e,r){var n=Math.cos(r),i=Math.sin(r),o=e.x,a=e.y;return{x:o+n*(t.x-o)-i*(t.y-a),y:a+i*(t.x-o)+n*(t.y-a)}}function R(t,e){var r,n,i,o,a,s=E,l=A,u=e.origin;for(r=0;r<t.length;++r)n=t[r],i=n.x-u.x,o=n.y-u.y,a=e.vx*i+e.vy*o,s=Math.min(s,a),l=Math.max(l,a);return{min:s,max:l}}function T(t,e){var r=e.x-t.x,n=e.y-t.y,i=Math.sqrt(r*r+n*n);return{vx:(e.x-t.x)/i,vy:(e.y-t.y)/i,origin:t,ln:i}}var P=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function O(t,e,r){var n=e.positioner(t,e),i=n.vx,o=n.vy;if(!i&&!o)return{x:n.x,y:n.y};var a=r.w,s=r.h,l=e.rotation,u=Math.abs(a/2*Math.cos(l))+Math.abs(s/2*Math.sin(l)),h=Math.abs(a/2*Math.sin(l))+Math.abs(s/2*Math.cos(l)),c=1/Math.max(Math.abs(i),Math.abs(o));return u*=i*c,h*=o*c,u+=e.offset*i,h+=e.offset*o,{x:n.x+u,y:n.y+h}}function D(t,e){var r,n,i,o;for(r=t.length-1;r>=0;--r)for(i=t[r].$layout,n=r-1;n>=0&&i._visible;--n)o=t[n].$layout,o._visible&&i._box.intersects(o._box)&&e(i,o);return t}function B(t){var e,r,n,i,o,a;for(e=0,r=t.length;e<r;++e)n=t[e],i=n.$layout,i._visible&&(o=n.geometry(),a=O(n._el._model,n.model(),o),i._box.update(a,o,n.rotation()));return D(t,(function(t,e){var r=t._hidable,n=e._hidable;r&&n||n?e._visible=!1:r&&(t._visible=!1)}))}S.extend(P.prototype,{center:function(){var t=this._rect;return{x:t.x+t.w/2,y:t.y+t.h/2}},update:function(t,e,r){this._rotation=r,this._rect={x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},contains:function(t){var e=this,r=1,n=e._rect;return t=C(t,e.center(),-e._rotation),!(t.x<n.x-r||t.y<n.y-r||t.x>n.x+n.w+2*r||t.y>n.y+n.h+2*r)},intersects:function(t){var e,r,n,i=this._points(),o=t._points(),a=[T(i[0],i[1]),T(i[0],i[3])];for(this._rotation!==t._rotation&&a.push(T(o[0],o[1]),T(o[0],o[3])),e=0;e<a.length;++e)if(r=R(i,a[e]),n=R(o,a[e]),r.max<n.min||n.max<r.min)return!1;return!0},_points:function(){var t=this,e=t._rect,r=t._rotation,n=t.center();return[C({x:e.x,y:e.y},n,r),C({x:e.x+e.w,y:e.y},n,r),C({x:e.x+e.w,y:e.y+e.h},n,r),C({x:e.x,y:e.y+e.h},n,r)]}});var I={prepare:function(t){var e,r,n,i,o,a=[];for(e=0,n=t.length;e<n;++e)for(r=0,i=t[e].length;r<i;++r)o=t[e][r],a.push(o),o.$layout={_box:new P,_hidable:!1,_visible:!0,_set:e,_idx:r};return a.sort((function(t,e){var r=t.$layout,n=e.$layout;return r._idx===n._idx?r._set-n._set:n._idx-r._idx})),this.update(a),a},update:function(t){var e,r,n,i,o,a=!1;for(e=0,r=t.length;e<r;++e)n=t[e],i=n.model(),o=n.$layout,o._hidable=i&&"auto"===i.display,o._visible=n.visible(),a|=o._hidable;a&&B(t)},lookup:function(t,e){var r,n;for(r=t.length-1;r>=0;--r)if(n=t[r].$layout,n&&n._visible&&n._box.contains(e))return{dataset:n._set,label:t[r]};return null},draw:function(t,e){var r,n,i,o,a,s;for(r=0,n=e.length;r<n;++r)i=e[r],o=i.$layout,o._visible&&(a=i.geometry(),s=O(i._el._view,i.model(),a),o._box.update(s,a,i.rotation()),i.draw(t,s))}},L=t.helpers,N=function(t){if(L.isNullOrUndef(t))return null;var e,r,n,i=t;if(L.isObject(t))if(L.isNullOrUndef(t.label))if(L.isNullOrUndef(t.r))for(i="",e=Object.keys(t),n=0,r=e.length;n<r;++n)i+=(0!==n?", ":"")+e[n]+": "+t[e[n]];else i=t.r;else i=t.label;return""+i},F={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:N,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},j=t.helpers,z="$datalabels";function U(t,e){var r=t.datalabels,n={};return!1===r?null:(!0===r&&(r={}),j.merge(n,[e,r]))}function W(t,e,r){var n=e&&e[r.dataset];if(n){var i=r.label,o=i.$context;!0===j.callback(n,[o])&&(t[z]._dirty=!0,i.update(o))}}function V(t,e,r,n){var i,o;(r||n)&&(r?n?r.label!==n.label&&(o=i=!0):o=!0:i=!0,o&&W(t,e.leave,r),i&&W(t,e.enter,n))}function q(t,e){var r,n,i=t[z],o=i._listeners;if(o.enter||o.leave){if("mousemove"===e.type)n=I.lookup(i._labels,e);else if("mouseout"!==e.type)return;r=i._hovered,i._hovered=n,V(t,o,r,n)}}function H(t,e){var r=t[z],n=r._listeners.click,i=n&&I.lookup(r._labels,e);i&&W(t,n,i)}function Y(e){if(!e.animating){for(var r=t.animationService.animations,n=0,i=r.length;n<i;++n)if(r[n].chart===e)return;e.render({duration:1,lazy:!0})}}t.defaults.global.plugins.datalabels=F;var Z={id:"datalabels",beforeInit:function(t){t[z]={_actives:[]}},beforeUpdate:function(t){var e=t[z];e._listened=!1,e._listeners={},e._datasets=[],e._labels=[]},afterDatasetUpdate:function(t,e,r){var n,i,o,a=e.index,s=t[z],l=s._datasets[a]=[],u=t.isDatasetVisible(a),h=t.data.datasets[a],c=U(h,r),d=e.meta.data||[],f=d.length,p=t.ctx;for(p.save(),n=0;n<f;++n)i=d[n],u&&i&&!i.hidden&&!i._model.skip?(l.push(o=new k(c,p,i,n)),o.update(o.$context={active:!1,chart:t,dataIndex:n,dataset:h,datasetIndex:a})):o=null,i[z]=o;
17p.restore(),j.merge(s._listeners,c.listeners||{},{merger:function(t,r,n){r[t]=r[t]||{},r[t][e.index]=n[t],s._listened=!0}})},afterUpdate:function(t,e){t[z]._labels=I.prepare(t[z]._datasets,e)},afterDatasetsDraw:function(t){I.draw(t,t[z]._labels)},beforeEvent:function(t,e){if(t[z]._listened)switch(e.type){case"mousemove":case"mouseout":q(t,e);break;case"click":H(t,e);break;default:}},afterEvent:function(t){var e,r,i,o,a=t[z],s=a._actives,l=a._actives=t.lastActive||[],u=n.arrayDiff(s,l);for(e=0,r=u.length;e<r;++e)i=u[e],i[1]&&(o=i[0][z],o&&(o.$context.active=1===i[1],o.update(o.$context)));(a._dirty||u.length)&&(I.update(a._labels),Y(t)),delete a._dirty}};return t.plugins.register(Z),Z}))},ac4f:function(t,e,r){"use strict";var n;function i(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var o=r("d113").codes,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(t){if(t)throw t}function u(t){return t.setHeader&&"function"===typeof t.abort}function h(t,e,o,a){a=i(a);var l=!1;t.on("close",(function(){l=!0})),void 0===n&&(n=r("42a7")),n(t,{readable:e,writable:o},(function(t){if(t)return a(t);l=!0,a()}));var h=!1;return function(e){if(!l&&!h)return h=!0,u(t)?t.abort():"function"===typeof t.destroy?t.destroy():void a(e||new s("pipe"))}}function c(t){t()}function d(t,e){return t.pipe(e)}function f(t){return t.length?"function"!==typeof t[t.length-1]?l:t.pop():l}function p(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a("streams");var o=e.map((function(t,r){var a=r<e.length-1,s=r>0;return h(t,a,s,(function(t){n||(n=t),t&&o.forEach(c),a||(o.forEach(c),i(n))}))}));return e.reduce(d)}t.exports=p},b4e8:function(t){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},b50d:function(t,e,r){"use strict";var n=r("c532"),i=r("467f"),o=r("7aac"),a=r("30b5"),s=r("83b9"),l=r("c345"),u=r("3934"),h=r("2d83");t.exports=function(t){return new Promise((function(e,r){var c=t.data,d=t.headers,f=t.responseType;n.isFormData(c)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var g=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(g+":"+m)}var v=s(t.baseURL,t.url);function y(){if(p){var n="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,o=f&&"text"!==f&&"json"!==f?p.response:p.responseText,a={data:o,status:p.status,statusText:p.statusText,headers:n,config:t,request:p};i(e,r,a),p=null}}if(p.open(t.method.toUpperCase(),a(v,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(y)},p.onabort=function(){p&&(r(h("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){r(h("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(h(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var b=(t.withCredentials||u(v))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;b&&(d[t.xsrfHeaderName]=b)}
vendor: 20,061 bytes, lines 17-24
17"setRequestHeader"in p&&n.forEach(d,(function(t,e){"undefined"===typeof c&&"content-type"===e.toLowerCase()?delete d[e]:p.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),f&&"json"!==f&&(p.responseType=t.responseType),"function"===typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),r(t),p=null)})),c||(c=null),p.send(c)}))}},b639:function(t,e,r){"use strict";(function(t){ 18/*! 19 * The buffer module from node.js, for the browser. 20 * 21 * @author Feross Aboukhadijeh <http://feross.org> 22 * @license MIT 23 */ 24var n=r("1fb5"),i=r("9152"),o=r("e3db");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,r);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return h(this,t,e,r)}function h(t,e,r,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?m(t,e,r,n):"string"===typeof e?p(t,e,r):v(t,e)}function c(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e,r,n){return c(e),e<=0?l(t,e):void 0!==r?"string"===typeof n?l(t,e).fill(r,n):l(t,e).fill(r):l(t,e)}function f(t,e){if(c(e),t=l(t,e<0?0:0|y(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function p(t,e,r){if("string"===typeof r&&""!==r||(r="utf8"),!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|w(e,r);t=l(t,n);var i=t.write(e,r);return i!==n&&(t=t.slice(0,i)),t}function g(t,e){var r=e.length<0?0:0|y(e.length);t=l(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function m(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=g(t,e),t}function v(t,e){if(u.isBuffer(e)){var r=0|y(e.length);return t=l(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):g(t,e);if("Buffer"===e.type&&o(e.data))return g(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),u.alloc(+t)}function w(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(t).length;default:if(n)return K(t).length;e=(""+e).toLowerCase(),n=!0}}function _(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return N(this,e,r);case"utf8":case"utf-8":return O(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return L(this,e,r);case"base64":return P(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function M(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function x(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:k(t,e,r,n,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):k(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function k(t,e,r,n,i){var o,a=1,s=t.length,l=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var h=-1;for(o=r;o<s;o++)if(u(t,o)===u(e,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var c=!0,d=0;d<l;d++)if(u(t,o+d)!==u(e,d)){c=!1;break}if(c)return o}return-1}function S(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function A(t,e,r,n){return tt(K(e,t.length-r),t,r,n)}function E(t,e,r,n){return tt($(e),t,r,n)}function C(t,e,r,n){return E(t,e,r,n)}function R(t,e,r,n){return tt(Q(e),t,r,n)}function T(t,e,r,n){return tt(J(e,t.length-r),t,r,n)}function P(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function O(t,e,r){r=Math.min(t.length,r);var n=[],i=e;while(i<r){var o,a,s,l,u=t[i],h=null,c=u>239?4:u>223?3:u>191?2:1;if(i+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:o=t[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(h=l));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(h=l));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(h=l))}null===h?(h=65533,c=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=c}return B(n)}e.Buffer=u,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return h(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return d(null,t,e,r)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=w,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)M(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)M(this,e,e+3),M(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)M(this,e,e+7),M(this,e+1,e+6),M(this,e+2,e+5),M(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?O(this,0,t):_.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,a=r-e,s=Math.min(o,a),l=this.slice(n,i),h=t.slice(e,r),c=0;c<s;++c)if(l[c]!==h[c]){o=l[c],a=h[c];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return x(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return x(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return S(this,t,e,r);case"utf8":case"utf-8":return A(this,t,e,r);case"ascii":return E(this,t,e,r);case"latin1":case"binary":return C(this,t,e,r);case"base64":return R(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function B(t){var e=t.length;if(e<=D)return String.fromCharCode.apply(String,t);var r="",n=0;while(n<e)r+=String.fromCharCode.apply(String,t.slice(n,n+=D));return r}function I(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function L(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function N(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=G(t[o]);return i}function F(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function j(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function U(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function W(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function V(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(t,e,r,n,o){return o||V(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function H(t,e,r,n,o){return o||V(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);var n=this[t],i=1,o=0;while(++o<e&&(i*=256))n+=this[t+o]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);var n=this[t+--e],i=1;while(e>0&&(i*=256))n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||j(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||j(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||j(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);var n=this[t],i=1,o=0;while(++o<e&&(i*=256))n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);var n=e,i=1,o=this[t+--n];while(n>0&&(i*=256))o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||j(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||j(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;z(this,t,e,r,i,0)}var o=1,a=0;this[e]=255&t;while(++a<r&&(o*=256))this[e+a]=t/o&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;z(this,t,e,r,i,0)}var o=r-1,a=1;this[e+o]=255&t;while(--o>=0&&(a*=256))this[e+o]=t/a&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):W(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):W(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);z(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o<r&&(a*=256))t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);z(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):W(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):W(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return q(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return q(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return H(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return H(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=u.isBuffer(t)?t:K(new u(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function Z(t){if(t=X(t).replace(Y,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function X(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function G(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}
24else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function $(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function J(t,e){for(var r,n,i,o=[],a=0;a<t.length;++a){if((e-=2)<0)break;r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n)}return o}function Q(t){return n.toByteArray(Z(t))}function tt(t,e,r,n){for(var i=0;i<n;++i){if(i+r>=e.length||i>=t.length)break;e[i+r]=t[i]}return i}function et(t){return t!==t}}).call(this,r("c8ba"))},b692:function(t,e,r){"use strict";var n=r("39a9").Buffer,i=r("98e6"),o=r("34d5"),a=r("3fb5"),s=r("6fe7"),l=r("980c"),u=r("b4e8");function h(t){o.Writable.call(this);var e=u[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function c(t){o.Writable.call(this);var e=u[t];if(!e)throw new Error("Unknown message digest");this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function d(t){return new h(t)}function f(t){return new c(t)}Object.keys(u).forEach((function(t){u[t].id=n.from(u[t].id,"hex"),u[t.toLowerCase()]=u[t]})),a(h,o.Writable),h.prototype._write=function(t,e,r){this._hash.update(t),r()},h.prototype.update=function(t,e){return this._hash.update("string"===typeof t?n.from(t,e):t),this},h.prototype.sign=function(t,e){this.end();var r=this._hash.digest(),n=s(r,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},a(c,o.Writable),c.prototype._write=function(t,e,r){this._hash.update(t),r()},c.prototype.update=function(t,e){return this._hash.update("string"===typeof t?n.from(t,e):t),this},c.prototype.verify=function(t,e,r){var i="string"===typeof e?n.from(e,r):e;this.end();var o=this._hash.digest();return l(i,o,t,this._signType,this._tag)},t.exports={Sign:d,Verify:f,createSign:d,createVerify:f}},b753:function(t,e,r){var n=r("8b63"),i={};for(var o in n)n.hasOwnProperty(o)&&(i[n[o]]=o);var a=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var l=a[s].channels,u=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:l}),Object.defineProperty(a[s],"labels",{value:u})}function h(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}a.rgb.hsl=function(t){var e,r,n,i=t[0]/255,o=t[1]/255,a=t[2]/255,s=Math.min(i,o,a),l=Math.max(i,o,a),u=l-s;return l===s?e=0:i===l?e=(o-a)/u:o===l?e=2+(a-i)/u:a===l&&(e=4+(i-o)/u),e=Math.min(60*e,360),e<0&&(e+=360),n=(s+l)/2,r=l===s?0:n<=.5?u/(l+s):u/(2-l-s),[e,100*r,100*n]},a.rgb.hsv=function(t){var e,r,n,i,o,a=t[0]/255,s=t[1]/255,l=t[2]/255,u=Math.max(a,s,l),h=u-Math.min(a,s,l),c=function(t){return(u-t)/6/h+.5};return 0===h?i=o=0:(o=h/u,e=c(a),r=c(s),n=c(l),a===u?i=n-r:s===u?i=1/3+e-n:l===u&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*u]},a.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=a.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,100*o,100*n]},a.rgb.cmyk=function(t){var e,r,n,i,o=t[0]/255,a=t[1]/255,s=t[2]/255;return i=Math.min(1-o,1-a,1-s),e=(1-o-i)/(1-i)||0,r=(1-a-i)/(1-i)||0,n=(1-s-i)/(1-i)||0,[100*e,100*r,100*n,100*i]},a.rgb.keyword=function(t){var e=i[t];if(e)return e;var r,o=1/0;for(var a in n)if(n.hasOwnProperty(a)){var s=n[a],l=h(t,s);l<o&&(o=l,r=a)}return r}
24,a.keyword.rgb=function(t){return n[t]},a.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=.4124*e+.3576*r+.1805*n,o=.2126*e+.7152*r+.0722*n,a=.0193*e+.1192*r+.9505*n;return[100*i,100*o,100*a]},a.rgb.lab=function(t){var e,r,n,i=a.rgb.xyz(t),o=i[0],s=i[1],l=i[2];return o/=95.047,s/=100,l/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,e=116*s-16,r=500*(o-s),n=200*(s-l),[e,r,n]},a.hsl.rgb=function(t){var e,r,n,i,o,a=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return o=255*l,[o,o,o];r=l<.5?l*(1+s):l+s-l*s,e=2*l-r,i=[0,0,0];for(var u=0;u<3;u++)n=a+1/3*-(u-1),n<0&&n++,n>1&&n--,o=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[u]=255*o;return i},a.hsl.hsv=function(t){var e,r,n=t[0],i=t[1]/100,o=t[2]/100,a=i,s=Math.max(o,.01);return o*=2,i*=o<=1?o:2-o,a*=s<=1?s:2-s,r=(o+i)/2,e=0===o?2*a/(s+a):2*i/(o+i),[n,100*e,100*r]},a.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),a=255*n*(1-r),s=255*n*(1-r*o),l=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,l,a];case 1:return[s,n,a];case 2:return[a,n,l];case 3:return[a,s,n];case 4:return[l,a,n];case 5:return[n,a,s]}},a.hsv.hsl=function(t){var e,r,n,i=t[0],o=t[1]/100,a=t[2]/100,s=Math.max(a,.01);return n=(2-o)*a,e=(2-o)*s,r=o*s,r/=e<=1?e:2-e,r=r||0,n/=2,[i,100*r,100*n]},a.hwb.rgb=function(t){var e,r,n,i,o,a,s,l=t[0]/360,u=t[1]/100,h=t[2]/100,c=u+h;switch(c>1&&(u/=c,h/=c),e=Math.floor(6*l),r=1-h,n=6*l-e,0!==(1&e)&&(n=1-n),i=u+n*(r-u),e){default:case 6:case 0:o=r,a=i,s=u;break;case 1:o=i,a=r,s=u;break;case 2:o=u,a=r,s=i;break;case 3:o=u,a=i,s=r;break;case 4:o=i,a=u,s=r;break;case 5:o=r,a=u,s=i;break}return[255*o,255*a,255*s]},a.cmyk.rgb=function(t){var e,r,n,i=t[0]/100,o=t[1]/100,a=t[2]/100,s=t[3]/100;return e=1-Math.min(1,i*(1-s)+s),r=1-Math.min(1,o*(1-s)+s),n=1-Math.min(1,a*(1-s)+s),[255*e,255*r,255*n]},a.xyz.rgb=function(t){var e,r,n,i=t[0]/100,o=t[1]/100,a=t[2]/100;return e=3.2406*i+-1.5372*o+-.4986*a,r=-.9689*i+1.8758*o+.0415*a,n=.0557*i+-.204*o+1.057*a,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,e=Math.min(Math.max(0,e),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*e,255*r,255*n]},a.xyz.lab=function(t){var e,r,n,i=t[0],o=t[1],a=t[2];return i/=95.047,o/=100,a/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,e=116*o-16,r=500*(i-o),n=200*(o-a),[e,r,n]},a.lab.xyz=function(t){var e,r,n,i=t[0],o=t[1],a=t[2];r=(i+16)/116,e=o/500+r,n=r-a/200;var s=Math.pow(r,3),l=Math.pow(e,3),u=Math.pow(n,3);return r=s>.008856?s:(r-16/116)/7.787,e=l>.008856?l:(e-16/116)/7.787,n=u>.008856?u:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},a.lab.lch=function(t){var e,r,n,i=t[0],o=t[1],a=t[2];return e=Math.atan2(a,o),r=360*e/2/Math.PI,r<0&&(r+=360),n=Math.sqrt(o*o+a*a),[i,n,r]},a.lch.lab=function(t){var e,r,n,i=t[0],o=t[1],a=t[2];return n=a/360*2*Math.PI,e=o*Math.cos(n),r=o*Math.sin(n),[i,e,r]},a.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(i=Math.round(i/50),0===i)return 30;var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=.5*(1+~~(t>50)),n=(1&e)*r*255,i=(e>>1&1)*r*255,o=(e>>2&1)*r*255;return[n,i,o]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var r;t-=16;var n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,o=r%6/5*255;return[n,i,o]},a.rgb.hex=function(t){var e=((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2])),r
24=e.toString(16).toUpperCase();return"000000".substring(r.length)+r},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];3===e[0].length&&(r=r.split("").map((function(t){return t+t})).join(""));var n=parseInt(r,16),i=n>>16&255,o=n>>8&255,a=255&n;return[i,o,a]},a.rgb.hcg=function(t){var e,r,n=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.max(Math.max(n,i),o),s=Math.min(Math.min(n,i),o),l=a-s;return e=l<1?s/(1-l):0,r=l<=0?0:a===n?(i-o)/l%6:a===i?2+(o-n)/l:4+(n-i)/l+4,r/=6,r%=1,[360*r,100*l,100*e]},a.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return n=r<.5?2*e*r:2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],100*n,100*i]},a.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},a.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];var i=[0,0,0],o=e%1*6,a=o%1,s=1-a,l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-r)*n,[255*(r*i[0]+l),255*(r*i[1]+l),255*(r*i[2]+l)]},a.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],100*i,100*n]},a.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],100*i,100*n]},a.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],100*(n-e),100*(1-n)]},a.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,o=0;return i<1&&(o=(n-i)/(1-i)),[t[0],100*i,100*o]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}},bac2:function(t,e,r){var n={ECB:r("0145"),CBC:r("c119"),CFB:r("3505"),CFB8:r("62c9"),CFB1:r("5239"),OFB:r("5165"),CTR:r("6ade"),GCM:r("6ade")},i=r("e85f");for(var o in i)i[o].module=n[i[o].mode];t.exports=i},bb15:function(t,e,r){var n=r("b753"),i=r("a279"),o={},a=Object.keys(n);function s(t){var e=function(e){return void 0===e||null===e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}function l(t){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=t(e);if("object"===typeof r)for(var n=r.length,i=0;i<n;i++)r[i]=Math.round(r[i]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}
vendor: 9,492 bytes, line 24
24a.forEach((function(t){o[t]={},Object.defineProperty(o[t],"channels",{value:n[t].channels}),Object.defineProperty(o[t],"labels",{value:n[t].labels});var e=i(t),r=Object.keys(e);r.forEach((function(r){var n=e[r];o[t][r]=l(n),o[t][r].raw=s(n)}))})),t.exports=o},bc12:function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(11).Buffer}catch(E){}function s(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function l(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=l(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else{var s=t.length-e;for(n=s%2===0?e+1:e;n<t.length;n+=2)i=l(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,l=0,h=r;h<s;h+=n)l=u(t,h,h+n,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var c=1;for(l=u(t,h,t.length,e),h=0;h<a;h++)c*=e;this.imuln(c),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,l=a/67108864|0;r.words[0]=s;for(var u=1;u<n;u++){for(var h=l>>>26,c=67108863&l,d=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=d;f++){var p=u-f|0;i=0|t.words[p],o=0|e.words[f],a=i*o+c,h+=a/67108864|0,c=67108863&a}r.words[u]=0|c,l=0|h}return 0!==l?r.words[u]=0|l:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,r=0!==o||a!==this.length-1?h[6-l.length]+l+r:l+r,i+=2,i>=26&&(i-=26,a--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=c[t],f=d[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var g=p.modn(f).toString(t);p=p.idivn(f),r=p.isZero()?g+r:h[u-g.length]+g+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===e,u=new t(o),h=this.clone();if(l){for(s=0;!h.isZero();s++)a=h.andln(255),h.iushrn(8),u[s]=a;for(;s<o;s++)u[s]=0}else{for(s=0;s<o-i;s++)u[s]=0;for(s=0;!h.isZero();s++)a=h.andln(255),h.iushrn(8),u[o-s-1]=a}return u},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)}
vendor: 1,629 bytes, line 24
24,o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;
vendor: 33,280 bytes, line 24
24var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)e=(0|r.words[a])-(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)e=(0|r.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,o,a=t.words,s=e.words,l=r.words,u=0,h=0|a[0],c=8191&h,d=h>>>13,f=0|a[1],p=8191&f,g=f>>>13,m=0|a[2],v=8191&m,y=m>>>13,b=0|a[3],w=8191&b,_=b>>>13,M=0|a[4],x=8191&M,k=M>>>13,S=0|a[5],A=8191&S,E=S>>>13,C=0|a[6],R=8191&C,T=C>>>13,P=0|a[7],O=8191&P,D=P>>>13,B=0|a[8],I=8191&B,L=B>>>13,N=0|a[9],F=8191&N,j=N>>>13,z=0|s[0],U=8191&z,W=z>>>13,V=0|s[1],q=8191&V,H=V>>>13,Y=0|s[2],Z=8191&Y,X=Y>>>13,G=0|s[3],K=8191&G,$=G>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],lt=8191&st,ut=st>>>13,ht=0|s[8],ct=8191&ht,dt=ht>>>13,ft=0|s[9],pt=8191&ft,gt=ft>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(c,U),i=Math.imul(c,W),i=i+Math.imul(d,U)|0,o=Math.imul(d,W);var mt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(p,U),i=Math.imul(p,W),i=i+Math.imul(g,U)|0,o=Math.imul(g,W),n=n+Math.imul(c,q)|0,i=i+Math.imul(c,H)|0,i=i+Math.imul(d,q)|0,o=o+Math.imul(d,H)|0;var vt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,U),i=Math.imul(v,W),i=i+Math.imul(y,U)|0,o=Math.imul(y,W),n=n+Math.imul(p,q)|0,i=i+Math.imul(p,H)|0,i=i+Math.imul(g,q)|0,o=o+Math.imul(g,H)|0,n=n+Math.imul(c,Z)|0,i=i+Math.imul(c,X)|0,i=i+Math.imul(d,Z)|0,o=o+Math.imul(d,X)|0;var yt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,U),i=Math.imul(w,W),i=i+Math.imul(_,U)|0,o=Math.imul(_,W),n=n+Math.imul(v,q)|0,i=i+Math.imul(v,H)|0,i=i+Math.imul(y,q)|0,o=o+Math.imul(y,H)|0,n=n+Math.imul(p,Z)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(g,Z)|0,o=o+Math.imul(g,X)|0,n=n+Math.imul(c,K)|0,i=i+Math.imul(c,$)|0,i=i+Math.imul(d,K)|0,o=o+Math.imul(d,$)|0;var bt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,U),i=Math.imul(x,W),i=i+Math.imul(k,U)|0,o=Math.imul(k,W),n=n+Math.imul(w,q)|0,i=i+Math.imul(w,H)|0,i=i+Math.imul(_,q)|0,o=o+Math.imul(_,H)|0,n=n+Math.imul(v,Z)|0,i=i+Math.imul(v,X)|0,i=i+Math.imul(y,Z)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,K)|0,i=i+Math.imul(p,$)|0,i=i+Math.imul(g,K)|0,o=o+Math.imul(g,$)|0,n=n+Math.imul(c,Q)|0,i=i+Math.imul(c,tt)|0,i=i+Math.imul(d,Q)|0,o=o+Math.imul(d,tt)|0;var wt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,U),i=Math.imul(A,W),i=i+Math.imul(E,U)|0,o=Math.imul(E,W),n=n+Math.imul(x,q)|0,i=i+Math.imul(x,H)|0,i=i+Math.imul(k,q)|0,o=o+Math.imul(k,H)|0,n=n+Math.imul(w,Z)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(_,Z)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(v,K)|0,i=i+Math.imul(v,$)|0,i=i+Math.imul(y,K)|0,o=o+Math.imul(y,$)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(g,Q)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(c,rt)|0,i=i+Math.imul(c,nt)|0,i=i+Math.imul(d,rt)|0,o=o+Math.imul(d,nt)|0;var _t=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(R,U),i=Math.imul(R,W),i=i+Math.imul(T,U)|0,o=Math.imul(T,W),n=n+Math.imul(A,q)|0,i=i+Math.imul(A,H)|0,i=i+Math.imul(E,q)|0,o=o+Math.imul(E,H)|0,n=n+Math.imul(x,Z)|0,i=i+Math.imul(x,X)|0,i=i+Math.imul(k,Z)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,K)|0,i=i+Math.imul(w,$)|0,i=i+Math.imul(_,K)|0,o=o+Math.imul(_,$)|0,n=n+Math.imul(v,Q)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(g,rt)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(c,ot)|0,i=i+Math.imul(c,at)|0,i=i+Math.imul(d,ot)|0,o=o+Math.imul(d,at)|0;var Mt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(O,U),i=Math.imul(O,W),i=i+Math.imul(D,U)|0,o=Math.imul(D,W),n=n+Math.imul(R,q)|0,i=i+Math.imul(R,H)|0,i=i+Math.imul(T,q)|0,o=o+Math.imul(T,H)|0,n=n+Math.imul(A,Z)|0,i=i+Math.imul(A,X)|0,i=i+Math.imul(E,Z)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(x,K)|0,i=i+Math.imul(x,$)|0,i=i+Math.imul(k,K)|0,o=o+Math.imul(k,$)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(g,ot)|0,o=o+Math.imul(g,at)|0,n=n+Math.imul(c,lt)|0,i=i+Math.imul(c,ut)|0,i=i+Math.imul(d,lt)|0,o=o+Math.imul(d,ut)|0;var xt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(I,U),i=Math.imul(I,W),i=i+Math.imul(L,U)|0,o=Math.imul(L,W),n=n+Math.imul(O,q)|0,i=i+Math.imul(O,H)|0,i=i+Math.imul(D,q)|0,o=o+Math.imul(D,H)|0,n=n+Math.imul(R,Z)|0,i=i+Math.imul(R,X)|0,i=i+Math.imul(T,Z)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(A,K)|0,i=i+Math.imul(A,$)|0,i=i+Math.imul(E,K)|0,o=o+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=i+Math.imul(x,tt)|0,i=i+Math.imul(k,Q)|0,o=o+Math.imul(k,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,lt)|0,i=i+Math.imul(p,ut)|0,i=i+Math.imul(g,lt)|0,o=o+Math.imul(g,ut)|0,n=n+Math.imul(c,ct)|0,i=i+Math.imul(c,dt)|0,i=i+Math.imul(d,ct)|0,o=o+Math.imul(d,dt)|0;var kt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(F,U),i=Math.imul(F,W),i=i+Math.imul(j,U)|0,o=Math.imul(j,W),n=n+Math.imul(I,q)|0,i=i+Math.imul(I,H)|0,i=i+Math.imul(L,q)|0,o=o+Math.imul(L,H)|0,n=n+Math.imul(O,Z)|0,i=i+Math.imul(O,X)|0,i=i+Math.imul(D,Z)|0,o=o+Math.imul(D,X)|0,n=n+Math.imul(R,K)|0,i=i+Math.imul(R,$)|0,i=i+Math.imul(T,K)|0,o=o+Math.imul(T,$)|0,n=n+Math.imul(A,Q)|0,i=i+Math.imul(A,tt)|0,i=i+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=i+Math.imul(x,nt)|0,i=i+Math.imul(k,rt)|0,o=o+Math.imul(k,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,at)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(v,lt)|0,i=i+Math.imul(v,ut)|0,i=i+Math.imul(y,lt)|0,o=o+Math.imul(y,ut)|0,n=n+Math.imul(p,ct)|0,i=i+Math.imul(p,dt)|0,i=i+Math.imul(g,ct)|0,o=o+Math.imul(g,dt)|0,n=n+Math.imul(c,pt)|0,i=i+Math.imul(c,gt)|0,i=i+Math.imul(d,pt)|0,o=o+Math.imul(d,gt)|0;var St=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(F,q),i=Math.imul(F,H),i=i+Math.imul(j,q)|0,o=Math.imul(j,H),n=n+Math.imul(I,Z)|0,i=i+Math.imul(I,X)|0,i=i+Math.imul(L,Z)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(O,K)|0,i=i+Math.imul(O,$)|0,i=i+Math.imul(D,K)|0,o=o+Math.imul(D,$)|0,n=n+Math.imul(R,Q)|0,i=i+Math.imul(R,tt)|0,i=i+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(A,rt)|0,i=i+Math.imul(A,nt)|0,i=i+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(x,ot)|0,i=i+Math.imul(x,at)|0,i=i+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,n=n+Math.imul(w,lt)|0,i=i+Math.imul(w,ut)|0,i=i+Math.imul(_,lt)|0,o=o+Math.imul(_,ut)|0,n=n+Math.imul(v,ct)|0,i=i+Math.imul(v,dt)|0,i=i+Math.imul(y,ct)|0,o=o+Math.imul(y,dt)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,gt)|0,i=i+Math.imul(g,pt)|0,o=o+Math.imul(g,gt)|0;var At=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(F,Z),i=Math.imul(F,X),i=i+Math.imul(j,Z)|0,o=Math.imul(j,X),n=n+Math.imul(I,K)|0,i=i+Math.imul(I,$)|0,i=i+Math.imul(L,K)|0,o=o+Math.imul(L,$)|0,n=n+Math.imul(O,Q)|0,i=i+Math.imul(O,tt)|0,i=i+Math.imul(D,Q)|0,o=o+Math.imul(D,tt)|0,n=n+Math.imul(R,rt)|0,i=i+Math.imul(R,nt)|0,i=i+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(A,ot)|0,i=i+Math.imul(A,at)|0,i=i+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(x,lt)|0,i=i+Math.imul(x,ut)|0,i=i+Math.imul(k,lt)|0,o=o+Math.imul(k,ut)|0,n=n+Math.imul(w,ct)|0,i=i+Math.imul(w,dt)|0,i=i+Math.imul(_,ct)|0,o=o+Math.imul(_,dt)|0,n=n+Math.imul(v,pt)|0,i=i+Math.imul(v,gt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,gt)|0;var Et=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(F,K),i=Math.imul(F,$),i=i+Math.imul(j,K)|0,o=Math.imul(j,$),n=n+Math.imul(I,Q)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(L,Q)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(O,rt)|0,i=i+Math.imul(O,nt)|0,i=i+Math.imul(D,rt)|0,o=o+Math.imul(D,nt)|0,n=n+Math.imul(R,ot)|0,i=i+Math.imul(R,at)|0,i=i+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(A,lt)|0,i=i+Math.imul(A,ut)|0,i=i+Math.imul(E,lt)|0,o=o+Math.imul(E,ut)|0,n=n+Math.imul(x,ct)|0,i=i+Math.imul(x,dt)|0,i=i+Math.imul(k,ct)|0,o=o+Math.imul(k,dt)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,gt)|0,i=i+Math.imul(_,pt)|0,o=o+Math.imul(_,gt)|0;var Ct=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(F,Q),i=Math.imul(F,tt),i=i+Math.imul(j,Q)|0,o=Math.imul(j,tt),n=n+Math.imul(I,rt)|0,i=i+Math.imul(I,nt)|0,i=i+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(O,ot)|0,i=i+Math.imul(O,at)|0,i=i+Math.imul(D,ot)|0,o=o+Math.imul(D,at)|0,n=n+Math.imul(R,lt)|0,i=i+Math.imul(R,ut)|0,i=i+Math.imul(T,lt)|0,o=o+Math.imul(T,ut)|0,n=n+Math.imul(A,ct)|0,i=i+Math.imul(A,dt)|0,i=i+Math.imul(E,ct)|0,o=o+Math.imul(E,dt)|0,n=n+Math.imul(x,pt)|0,i=i+Math.imul(x,gt)|0,i=i+Math.imul(k,pt)|0,o=o+Math.imul(k,gt)|0;var Rt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(F,rt),i=Math.imul(F,nt),i=i+Math.imul(j,rt)|0,o=Math.imul(j,nt),n=n+Math.imul(I,ot)|0,i=i+Math.imul(I,at)|0,i=i+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(O,lt)|0,i=i+Math.imul(O,ut)|0,i=i+Math.imul(D,lt)|0,o=o+Math.imul(D,ut)|0,n=n+Math.imul(R,ct)|0,i=i+Math.imul(R,dt)|0,i=i+Math.imul(T,ct)|0,o=o+Math.imul(T,dt)|0,n=n+Math.imul(A,pt)|0,i=i+Math.imul(A,gt)|0,i=i+Math.imul(E,pt)|0,o=o+Math.imul(E,gt)|0;var Tt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(F,ot),i=Math.imul(F,at),i=i+Math.imul(j,ot)|0,o=Math.imul(j,at),n=n+Math.imul(I,lt)|0,i=i+Math.imul(I,ut)|0,i=i+Math.imul(L,lt)|0,o=o+Math.imul(L,ut)|0,n=n+Math.imul(O,ct)|0,i=i+Math.imul(O,dt)|0,i=i+Math.imul(D,ct)|0,o=o+Math.imul(D,dt)|0,n=n+Math.imul(R,pt)|0,i=i+Math.imul(R,gt)|0,i=i+Math.imul(T,pt)|0,o=o+Math.imul(T,gt)|0;var Pt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(F,lt),i=Math.imul(F,ut),i=i+Math.imul(j,lt)|0,o=Math.imul(j,ut),n=n+Math.imul(I,ct)|0,i=i+Math.imul(I,dt)|0,i=i+Math.imul(L,ct)|0,o=o+Math.imul(L,dt)|0,n=n+Math.imul(O,pt)|0,i=i+Math.imul(O,gt)|0,i=i+Math.imul(D,pt)|0,o=o+Math.imul(D,gt)|0;var Ot=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(F,ct),i=Math.imul(F,dt),i=i+Math.imul(j,ct)|0,o=Math.imul(j,dt),n=n+Math.imul(I,pt)|0,i=i+Math.imul(I,gt)|0,i=i+Math.imul(L,pt)|0,o=o+Math.imul(L,gt)|0;var Dt=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(F,pt),i=Math.imul(F,gt),i=i+Math.imul(j,pt)|0,o=Math.imul(j,gt);var Bt=(u+n|0)+((8191&i)<<13)|0;return u=(o+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,l[0]=mt,l[1]=vt,l[2]=yt,l[3]=bt,l[4]=wt,l[5]=_t,l[6]=Mt,l[7]=xt,l[8]=kt,l[9]=St,l[10]=At,l[11]=Et,l[12]=Ct,l[13]=Rt,l[14]=Tt,l[15]=Pt,l[16]=Ot,l[17]=Dt,l[18]=Bt,0!==u&&(l[19]=u,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,l=Math.min(o,e.length-1),u=Math.max(0,o-t.length+1);u<=l;u++){var h=o-u,c=0|t.words[h],d=0|e.words[u],f=c*d,p=67108863&f;a=a+(f/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function v(t,e,r){var n=new y;return n.mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(g=p),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?g(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):v(this,t,e),r},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},y.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),h=0;h<i;h+=s)for(var c=l,d=u,f=0;f<a;f++){var p=r[h+f],g=n[h+f],m=r[h+f+a],v=n[h+f+a],y=c*m-d*v;v=c*v+d*m,m=y,r[h+f]=p+m,n[h+f]=g+v,r[h+f+a]=p-m,n[h+f+a]=g-v,f!==s&&(y=l*c-u*d,d=l*d+u*c,c=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},y.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),l=new Array(n),u=new Array(n),h=new Array(n),c=new Array(n),d=r.words;d.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,u,n),this.transform(a,o,s,l,n,i),this.transform(u,o,h,c,n,i);for(var f=0;f<n;f++){var p=s[f]*h[f]-l[f]*c[f];l[f]=s[f]*c[f]+l[f]*h[f],s[f]=p}return this.conjugate(s,l,n),this.transform(s,l,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=f(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length;n++,r=r.sqr())if(0!==e[n])break;if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,l=(0|this.words[e])-s<<r;this.words[e]=l|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,l=r;if(i-=a,i=Math.max(0,i),l){for(var u=0;u<a;u++)l.words[u]=this.words[u];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var h=0;for(u=this.length-1;u>=0&&(0!==h||u>=i);u--){var c=0|this.words[u];this.words[u]=h<<26-o|c>>>o,h=c&s}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var l=(0|t.words[i])*e;o-=67108863&l,s=(o>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+s,s=o>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)o=-(0|this.words[i])+s,s=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,a=0|i.words[i.length-1],s=this._countBits(a);r=26-s,0!==r&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var l,u=n.length-i.length;if("mod"!==e){l=new o(null),l.length=u+1,l.words=new Array(l.length);for(var h=0;h<l.length;h++)l.words[h]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,l&&(l.words[u]=1));for(var d=u-1;d>=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);f=Math.min(f/a|0,67108863),n._ishlnsubmul(i,f,d);while(0!==n.negative)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);l&&(l.words[d]=f)}return l&&l.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:l||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),a=new o(0),s=new o(0),l=new o(1),u=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++u;var h=r.clone(),c=e.clone();while(!e.isZero()){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0){e.iushrn(d);while(d-- >0)(i.isOdd()||a.isOdd())&&(i.iadd(h),a.isub(c)),i.iushrn(1),a.iushrn(1)}for(var p=0,g=1;0===(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0){r.iushrn(p);while(p-- >0)(s.isOdd()||l.isOdd())&&(s.iadd(h),l.isub(c)),s.iushrn(1),l.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(l)):(r.isub(e),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:r.iushln(u)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,a=new o(1),s=new o(0),l=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var u=0,h=1;0===(e.words[0]&h)&&u<26;++u,h<<=1);if(u>0){e.iushrn(u);while(u-- >0)a.isOdd()&&a.iadd(l),a.iushrn(1)}for(var c=0,d=1;0===(r.words[0]&d)&&c<26;++c,d<<=1);if(c>0){r.iushrn(c);while(c-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return i=0===e.cmpn(1)?a:s,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(_,w),_.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},_.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(M,w),i(x,w),i(k,w),k.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new _;else if("p224"===t)e=new M;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return b[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),a=0;while(!i.isZero()&&0===i.andln(1))a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),h=this.m.bitLength();h=new o(2*h*h).toRed(this);while(0!==this.pow(h,u).cmp(l))h.redIAdd(l);var c=this.pow(h,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=a;while(0!==f.cmp(s)){for(var g=f,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m<p);var v=this.pow(c,new o(1).iushln(p-m-1));d=d.redMul(v),c=v.redSqr(),f=f.redMul(c),p=m}return d},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=4,n=new Array(1<<r);n[0]=new o(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var a=n[0],s=0,l=0,u=e.bitLength()%26;for(0===u&&(u=26),i=e.length-1;i>=0;i--){for(var h=e.words[i],c=u-1;c>=0;c--){var d=h>>c&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==s?(s<<=1,s|=d,l++,(l===r||0===i&&0===c)&&(a=this.mul(a,n[s]),l=0,s=0)):l=0}u=26}return a},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new A(t)},i(A,S),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("62e4")(t))},bc3a:function(t,e,r){t.exports=r("cee4")},bd9d:function(t,e){function r(t){var e,r=t.length;while(r--){if(e=t.readUInt8(r),255!==e){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}t.exports=r},c119:function(t,e,r){var n=r("8c8a");e.encrypt=function(t,e){var r=n(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev},e.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return n(i,r)}},c345:function(t,e,r){"use strict";var n=r("c532"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,o,a={};return t?(n.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=n.trim(t.
vendor: 2,522 bytes, line 24
24substr(0,o)).toLowerCase(),r=n.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}})),a):a}},c401:function(t,e,r){"use strict";var n=r("c532"),i=r("2444");t.exports=function(t,e,r){var o=this||i;return n.forEach(r,(function(r){t=r.call(o,t,e)})),t}},c532:function(t,e,r){"use strict";var n=r("1d2b"),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"[object ArrayBuffer]"===i.call(t)}function u(t){return"undefined"!==typeof FormData&&t instanceof FormData}function h(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function c(t){return"string"===typeof t}function d(t){return"number"===typeof t}function f(t){return null!==t&&"object"===typeof t}function p(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function g(t){return"[object Date]"===i.call(t)}function m(t){return"[object File]"===i.call(t)}function v(t){return"[object Blob]"===i.call(t)}function y(t){return"[object Function]"===i.call(t)}function b(t){return f(t)&&y(t.pipe)}function w(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function _(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function M(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function x(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function k(){var t={};function e(e,r){p(t[r])&&p(e)?t[r]=k(t[r],e):p(e)?t[r]=k({},e):o(e)?t[r]=e.slice():t[r]=e}for(var r=0,n=arguments.length;r<n;r++)x(arguments[r],e);return t}function S(t,e,r){return x(e,(function(e,i){t[i]=r&&"function"===typeof e?n(e,r):e})),t}function A(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}t.exports={isArray:o,isArrayBuffer:l,isBuffer:s,isFormData:u,isArrayBufferView:h,isString:c,isNumber:d,isObject:f,isPlainObject:p,isUndefined:a,isDate:g,isFile:m,isBlob:v,isFunction:y,isStream:b,
24isURLSearchParams:w,isStandardBrowserEnv:M,forEach:x,merge:k,extend:S,trim:_,stripBOM:A}},c8af:function(t,e,r){"use strict";var n=r("c532");t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},cd91:function(t){t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},cee4:function(t,e,r){"use strict";var n=r("c532"),i=r("1d2b"),o=r("0a06"),a=r("4a7b"),s=r("2444");function l(t){var e=new o(t),r=i(o.prototype.request,e);return n.extend(r,o.prototype,e),n.extend(r,e),r}var u=l(s);u.Axios=o,u.create=function(t){return l(a(u.defaults,t))},u.Cancel=r("7a77"),u.CancelToken=r("8df4b"),u.isCancel=r("2e67"),u.all=function(t){return Promise.all(t)},u.spread=r("0df6"),u.isAxiosError=r("5f02"),t.exports=u,t.exports.default=u},cf35:function(t,e,r){"use strict";(function(e,n){var i;t.exports=R,R.ReadableState=C;r("faa1").EventEmitter;var o=function(t,e){return t.listeners(e).length},a=r("f12a"),s=r("b639").Buffer,l=("undefined"!==typeof e?e:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function u(t){return s.from(t)}function h(t){return s.isBuffer(t)||t instanceof l}var c,d=r(7);c=d&&d.debuglog?d.debuglog("stream"):function(){};var f,p,g,m=r("22ab"),v=r("9019"),y=r("05f0"),b=y.getHighWaterMark,w=r("d113").codes,_=w.ERR_INVALID_ARG_TYPE,M=w.ERR_STREAM_PUSH_AFTER_EOF,x=w.ERR_METHOD_NOT_IMPLEMENTED,k=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r("3fb5")(R,a);var S=v.errorOrDestroy,A=["error","close","destroy","pause","resume"];function E(t,e,r){if("function"===typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}function C(t,e,n){i=i||r("5e7d"),t=t||{},"boolean"!==typeof n&&(n=e instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b(this,t,"readableHighWaterMark",n),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=r("7d72").StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function R(t){if(i=i||r("5e7d"),!(this instanceof R))return new R(t);var e=this instanceof i;this._readableState=new C(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function T(t,e,r,n,i){c("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,L(t,a);else if(i||(o=O(a,e)),o)S(t,o);else if(a.objectMode||e&&e.length>0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=u(e)),n)a.endEmitted?S(t,new k):P(t,a,e,!0);else if(a.ended)S(t,new M);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?P(t,a,e,!1):j(t,a)):P(t,a,e,!1)}else n||(a.reading=!1,j(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function P(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&N(t)),j(t,e)}function O(t,e){var r;return h(e)||"string"===typeof e||void 0===e||t.objectMode||(r=new _("chunk",["string","Buffer","Uint8Array"],e)),r}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),R.prototype.destroy=v.destroy,R.prototype._undestroy=v.undestroy,R.prototype._destroy=function(t,e){e(t)},R.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof t&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=s.from(t,e),e=""),r=!0),T(this,t,e,!1,r)},R.prototype.unshift=function(t){return T(this,t,null,!0,!1)},R.prototype.isPaused=function(){return!1===this._readableState.flowing},R.prototype.setEncoding=function(t){f||(f=r("7d72").StringDecoder);var e=new f(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;var n=this._readableState.buffer.head,i="";while(null!==n)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var D=1073741824;function B(t){return t>=D?t=D:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function I(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=B(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function L(t,e){if(c("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?N(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,F(t)))}}function N(t){var e=t._readableState;c("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(c("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(F,t))}function F(t){var e=t._readableState;
vendor: 4,816 bytes, line 24
24c("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Y(t)}function j(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(z,t,e))}function z(t,e){while(!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length)){var r=e.length;if(c("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function U(t){return function(){var e=t._readableState;c("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,Y(t))}}function W(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function V(t){c("readable nexttick read 0"),t.read(0)}function q(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(H,t,e))}function H(t,e){c("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Y(t),e.flowing&&!e.reading&&t.read(0)}function Y(t){var e=t._readableState;c("flow",e.flowing);while(e.flowing&&null!==t.read());}function Z(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function X(t){var e=t._readableState;c("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(G,e,t))}function G(t,e){if(c("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function K(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}R.prototype.read=function(t){c("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return c("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?X(this):N(this),null;if(t=I(t,e),0===t&&e.ended)return 0===e.length&&X(this),null;var n,i=e.needReadable;return c("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,c("length less than watermark",i)),e.ended||e.reading?(i=!1,c("reading or ended",i)):i&&(c("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=I(r,e))),n=t>0?Z(t,e):null,null===n?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&X(this)),null!==n&&this.emit("data",n),n},R.prototype._read=function(t){S(this,new x("_read()"))},R.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr,s=a?u:y;function l(t,e){c("onunpipe"),t===r&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,f())}function u(){c("onend"),t.end()}i.endEmitted?n.nextTick(s):r.once("end",s),t.on("unpipe",l);var h=U(r);t.on("drain",h);var d=!1;function f(){c("cleanup"),t.removeListener("close",m),t.removeListener("finish",v),t.removeListener("drain",h),t.removeListener("error",g),t.removeListener("unpipe",l),r.removeListener("end",u),r.removeListener("end",y),r.removeListener("data",p),d=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||h()}function p(e){c("ondata");var n=t.write(e);c("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==K(i.pipes,t))&&!d&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function g(e){c("onerror",e),y(),t.removeListener("error",g),0===o(t,"error")&&S(t,e)}function m(){t.removeListener("finish",v),y()}function v(){c("onfinish"),t.removeListener("close",m),y()}function y(){c("unpipe"),r.unpipe(t)}return r.on("data",p),E(t,"error",g),t.once("close",m),t.once("finish",v),t.emit("pipe",r),i.flowing||(c("pipe resume"),r.resume()),t},R.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=K(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},R.prototype.on=function(t,e){var r=a.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>
240,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?N(this):i.reading||n.nextTick(V,this))),r},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(W,this),r},R.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(W,this),e},R.prototype.resume=function(){var t=this._readableState;return t.flowing||(c("resume"),t.flowing=!t.readableListening,q(this,t)),t.paused=!1,this},R.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},R.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(c("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!==i&&void 0!==i)&&(r.objectMode||i&&i.length)){var o=e.push(i);o||(n=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<A.length;o++)t.on(A[o],this.emit.bind(this,A[o]));return this._read=function(e){c("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"===typeof Symbol&&(R.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=r("57e2")),p(this)}),Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(R.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(R.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),R._fromList=Z,Object.defineProperty(R.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(R.from=function(t,e){return void 0===g&&(g=r("f83c")),g(R,t,e)})}).call(this,r("c8ba"),r("f28c"))},cfbd:function(t,e,r){"use strict";const n=r("3fb5"),i=r("bc12"),o=r("6283").DecoderBuffer,a=r("8360"),s=r("8b71");function l(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new u,this.tree._init(t.body)}function u(t){a.call(this,"der",t)}function h(t,e){let r=t.readUInt8(e);if(t.isError(r))return r;const n=s.tagClass[r>>6],i=0===(32&r);if(31===(31&r)){let n=r;r=0;while(128===(128&n)){if(n=t.readUInt8(e),t.isError(n))return n;r<<=7,r|=127&n}}else r&=31;const o=s.tag[r];return{cls:n,primitive:i,tag:r,tagStr:o}}function c(t,e,r){let n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&128===n)return null;if(0===(128&n))return n;const i=127&n;if(i>4)return t.error("length octect is too long");n=0;for(let o=0;o<i;o++){n<<=8;const e=t.readUInt8(r);if(t.isError(e))return e;n|=e}return n}t.exports=l,l.prototype.decode=function(t,e){return o.isDecoderBuffer(t)||(t=new o(t,e)),this.tree._decode(t,e)},n(u,a),u.prototype._peekTag=function(t,e,r){if(t.isEmpty())return!1;const n=t.save(),i=h(t,'Failed to peek tag: "'+e+'"');return t.isError(i)?i:(t.restore(n),i.tag===e||i.tagStr===e||i.tagStr+"of"===e||r)},u.prototype._decodeTag=function(t,e,r){const n=h(t,'Failed to decode tag of "'+e+'"');if(t.isError(n))return n;let i=c(t,n.primitive,'Failed to get length of "'+e+'"');if(t.isError(i))return i;if(!r&&n.tag!==e&&n.tagStr!==e&&n.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(n.primitive||null!==i)return t.skip(i,'Failed to match body of: "'+e+'"');const o=t.save(),a=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(a)?a:(i=t.offset-o.offset,t.restore(o),t.skip(i,'Failed to match body of: "'+e+'"'))},u.prototype._skipUntilEnd=function(t,e){for(;;){const r=h(t,e);if(t.isError(r))return r;const n=c(t,r.primitive,e);if(t.isError(n))return n;let i;
vendor: 5,951 bytes, line 24
24if(i=r.primitive||null!==n?t.skip(n):this._skipUntilEnd(t,e),t.isError(i))return i;if("end"===r.tagStr)break}},u.prototype._decodeList=function(t,e,r,n){const i=[];while(!t.isEmpty()){const e=this._peekTag(t,"end");if(t.isError(e))return e;const o=r.decode(t,"der",n);if(t.isError(o)&&e)break;i.push(o)}return i},u.prototype._decodeStr=function(t,e){if("bitstr"===e){const e=t.readUInt8();return t.isError(e)?e:{unused:e,data:t.raw()}}if("bmpstr"===e){const e=t.raw();if(e.length%2===1)return t.error("Decoding of string type: bmpstr length mismatch");let r="";for(let t=0;t<e.length/2;t++)r+=String.fromCharCode(e.readUInt16BE(2*t));return r}if("numstr"===e){const e=t.raw().toString("ascii");return this._isNumstr(e)?e:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){const e=t.raw().toString("ascii");return this._isPrintstr(e)?e:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},u.prototype._decodeObjid=function(t,e,r){let n;const i=[];let o=0,a=0;while(!t.isEmpty())a=t.readUInt8(),o<<=7,o|=127&a,0===(128&a)&&(i.push(o),o=0);128&a&&i.push(o);const s=i[0]/40|0,l=i[0]%40;if(n=r?i:[s,l].concat(i.slice(1)),e){let t=e[n.join(" ")];void 0===t&&(t=e[n.join(".")]),void 0!==t&&(n=t)}return n},u.prototype._decodeTime=function(t,e){const r=t.raw().toString();let n,i,o,a,s,l;if("gentime"===e)n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),l=0|r.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),l=0|r.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,l,0)},u.prototype._decodeNull=function(){return null},u.prototype._decodeBool=function(t){const e=t.readUInt8();return t.isError(e)?e:0!==e},u.prototype._decodeInt=function(t,e){const r=t.raw();let n=new i(r);return e&&(n=e[n.toString(10)]||n),n},u.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getDecoder("der").tree}},d113:function(t,e,r){"use strict";function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i={};function o(t,e,r){function o(t,r,n){return"string"===typeof e?e:e(t,r,n)}r||(r=Error);var a=function(t){function e(e,r,n){return t.call(this,o(e,r,n))||this}return n(e,t),e}(r);a.prototype.name=r.name,a.prototype.code=t,i[t]=a}function a(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function s(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function l(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function u(t,e,r){return"number"!==typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,r){var n,i;if("string"===typeof e&&s(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be",l(t," argument"))i="The ".concat(t," ").concat(n," ").concat(a(e,"type"));else{var o=u(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(o," ").concat(n," ").concat(a(e,"type"))}return i+=". Received type ".concat(typeof r),i}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},d1c8:function(t,e,r){"use strict";const n=r("3fb5");function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.Reporter=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,r){const n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){const e=this._reporterState,r=e.obj;return e.obj=t,r},i.prototype.error=function(t){let e;const r=this._reporterState,n=t instanceof o;if(e=n?t:new o(r.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!r.options.partial)throw e;return n||r.errors.push(e),e},i.prototype.wrapResult=function(t){const e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},d925:function(t,e,r){"use strict";
24t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},e683:function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e85f:function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},ef3a:function(t,e,r){"use strict";const n=r("343e"),i=r("20f6"),o=r("3fb5"),a=e;function s(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}a.define=function(t,e){return new s(t,e)},s.prototype._createNamed=function(t){const e=this.name;function r(t){this._initNamed(t,e)}return o(r,t),r.prototype._initNamed=function(e,r){t.call(this,e,r)},new r(this)},s.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(i[t])),this.decoders[t]},s.prototype.decode=function(t,e,r){return this._getDecoder(e).decode(t,r)},s.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n[t])),this.encoders[t]},s.prototype.encode=function(t,e,r){return this._getEncoder(e).encode(t,r)}},f12a:function(t,e,r){t.exports=r("faa1").EventEmitter},f1c8:function(t,e,r){"use strict";t.exports=h;var n=r("d113").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r("5e7d");function u(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function h(t){if(!(this instanceof h))return new h(t);l.call(this,t),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function c(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(e,r){d(t,e,r)}))}function d(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}r("3fb5")(h,l),h.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},h.prototype._transform=function(t,e,r){r(new i("_transform()"))},h.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},h.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},h.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},f6b49:function(t,e,r){"use strict";var n=r("c532");function i(){this.handlers=[]}i.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)}
vendor: 1,487 bytes, lines 24-25
24,i.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},f83c:function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},fda6:function(t,e,r){var n=r("8947"),i=r("4228"),o=r("e85f");function a(){return Object.keys(o)}e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv,e.listCiphers=e.getCiphers=a},fdac:function(t,e,r){var n;function i(t){this.rand=t}if(t.exports=function(t){return n||(n=new i(null)),n.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),r=0;r<e.length;r++)e[r]=this.rand.getByte();return e},"object"===typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"===typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=r(6);if("function"!==typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(t){return o.randomBytes(t)}}catch(a){}}}]); 25//# sourceMappingURL=chunk-vendors~253ae210.ea4e2855.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.