From 91e6fc74267dc61a602071c9beec00d4d3b51e01 Mon Sep 17 00:00:00 2001 From: BrokenTalentsFun CI Date: Thu, 19 Jul 2018 11:15:19 +0200 Subject: automatic build --- dist/build.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dist') diff --git a/dist/build.js b/dist/build.js index b8ed3cd..abcc82c 100644 --- a/dist/build.js +++ b/dist/build.js @@ -1,16 +1,16 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=338)}([function(e,t,n){"use strict";var r=n(1),i=n(2),a=n(16),l=a.FP_SAFE,o=a.BADNUM,s=e.exports={};s.nestedProperty=n(107),s.isPlainObject=n(32),s.isArray=n(106),s.mod=n(166),s.toLogRange=n(105),s.relinkPrivateKeys=n(304),s.ensureArray=n(303);var u=n(302);s.valObjects=u.valObjects,s.coerce=u.coerce,s.coerce2=u.coerce2,s.coerceFont=u.coerceFont,s.coerceHoverinfo=u.coerceHoverinfo,s.validate=u.validate;var c=n(301);s.dateTime2ms=c.dateTime2ms,s.isDateTime=c.isDateTime,s.ms2DateTime=c.ms2DateTime,s.ms2DateTimeLocal=c.ms2DateTimeLocal,s.cleanDate=c.cleanDate,s.isJSDate=c.isJSDate,s.formatDate=c.formatDate,s.incrementMonth=c.incrementMonth,s.dateTick0=c.dateTick0,s.dfltRange=c.dfltRange,s.findExactDates=c.findExactDates,s.MIN_MS=c.MIN_MS,s.MAX_MS=c.MAX_MS;var d=n(162);s.findBin=d.findBin,s.sorterAsc=d.sorterAsc,s.sorterDes=d.sorterDes,s.distinctVals=d.distinctVals,s.roundUp=d.roundUp;var f=n(300);s.aggNums=f.aggNums,s.len=f.len,s.mean=f.mean,s.variance=f.variance,s.stdev=f.stdev,s.interp=f.interp;var h=n(161);s.init2dArray=h.init2dArray,s.transposeRagged=h.transposeRagged,s.dot=h.dot,s.translationMatrix=h.translationMatrix,s.rotationMatrix=h.rotationMatrix,s.rotationXYMatrix=h.rotationXYMatrix,s.apply2DTransform=h.apply2DTransform,s.apply2DTransform2=h.apply2DTransform2;var p=n(10);s.extendFlat=p.extendFlat,s.extendDeep=p.extendDeep,s.extendDeepAll=p.extendDeepAll,s.extendDeepNoArrays=p.extendDeepNoArrays;var v=n(33);s.log=v.log,s.warn=v.warn,s.error=v.error,s.notifier=n(299),s.filterUnique=n(298),s.filterVisible=n(297),s.pushUnique=n(168),s.cleanNumber=n(296),s.ensureNumber=function(e){return i(e)?(e=Number(e))<-l||e>l?o:i(e)?Number(e):o:o},s.noop=n(109),s.identity=n(295),s.swapAttrs=function(e,t,n,r){n||(n="x"),r||(r="y");for(var i=0;in?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},s.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},s.simpleMap=function(e,t,n,r){for(var i=e.length,a=new Array(i),l=0;l-1||u!==1/0&&u>=Math.pow(2,n)?e(t,n,r):o},s.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={optionList:[],_newoption:function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)}};return n["_"+t]=e,n},s.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var n,r,i,a,l=e.length,o=2*l,s=2*t-1,u=new Array(s),c=new Array(l);for(n=0;n=o&&(i-=o*Math.floor(i/o)),i<0?i=-1-i:i>=l&&(i=o-1-i),a+=e[i]*u[r];c[n]=a}return c},s.syncOrAsync=function(e,t,n){var r;function i(){return s.syncOrAsync(e,t,n)}for(;e.length;)if((r=(0,e.splice(0,1)[0])(t))&&r.then)return r.then(i).then(void 0,s.promiseError);return n&&n(t)},s.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},s.noneOrAll=function(e,t,n){if(e){var r,i,a=!1,l=!0;for(r=0;r1?i+l[1]:"";if(a&&(l.length>1||o.length>4||n))for(;r.test(o);)o=o.replace(r,"$1"+a+"$2");return o+s}},function(e,t,n){var r,i;!function(){var a={version:"3.5.17"},l=[].slice,o=function(e){return l.call(e)},s=this.document;function u(e){return e&&(e.ownerDocument||e.document||e).documentElement}function c(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(s)try{o(s.documentElement.childNodes)[0].nodeType}catch(e){o=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),s)try{s.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var d=this.Element.prototype,f=d.setAttribute,h=d.setAttributeNS,p=this.CSSStyleDeclaration.prototype,v=p.setProperty;d.setAttribute=function(e,t){f.call(this,e,t+"")},d.setAttributeNS=function(e,t,n){h.call(this,e,t,n+"")},p.setProperty=function(e,t,n){v.call(this,e,t+"",n)}}function y(e,t){return et?1:e>=t?0:NaN}function g(e){return null===e?NaN:+e}function m(e){return!isNaN(e)}function _(e){return{left:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r>>1;e(t[a],n)<0?r=a+1:i=a}return r},right:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r>>1;e(t[a],n)>0?i=a:r=a+1}return r}}}a.ascending=y,a.descending=function(e,t){return te?1:t>=e?0:NaN},a.min=function(e,t){var n,r,i=-1,a=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++ir&&(n=r)}else{for(;++i=r){n=r;break}for(;++ir&&(n=r)}return n},a.max=function(e,t){var n,r,i=-1,a=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++in&&(n=r)}else{for(;++i=r){n=r;break}for(;++in&&(n=r)}return n},a.extent=function(e,t){var n,r,i,a=-1,l=e.length;if(1===arguments.length){for(;++a=r){n=i=r;break}for(;++ar&&(n=r),i=r){n=i=r;break}for(;++ar&&(n=r),i1)return l/(s-1)},a.deviation=function(){var e=a.variance.apply(this,arguments);return e?Math.sqrt(e):e};var T=_(y);function b(e){return e.length}a.bisectLeft=T.left,a.bisect=a.bisectRight=T.right,a.bisector=function(e){return _(1===e.length?function(t,n){return y(e(t),n)}:e)},a.shuffle=function(e,t,n){(a=arguments.length)<3&&(n=e.length,a<2&&(t=0));for(var r,i,a=n-t;a;)i=Math.random()*a--|0,r=e[a+t],e[a+t]=e[i+t],e[i+t]=r;return e},a.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},a.pairs=function(e){for(var t=0,n=e.length-1,r=e[0],i=new Array(n<0?0:n);t=0;)for(t=(r=e[i]).length;--t>=0;)n[--l]=r[t];return n};var M=Math.abs;function k(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function K(){this._=Object.create(null)}a.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n==1/0)throw new Error("infinite range");var r,i=[],a=function(e){var t=1;for(;e*t%1;)t*=10;return t}(M(n)),l=-1;if(e*=a,t*=a,(n*=a)<0)for(;(r=e+n*++l)>t;)i.push(r/a);else for(;(r=e+n*++l)=r.length)return t?t.call(n,a):e?a.sort(e):a;for(var s,u,c,d,f=-1,h=a.length,p=r[o++],v=new K;++f=r.length)return t;var a=[],l=i[n++];return t.forEach(function(t,r){a.push({key:t,values:e(r,n)})}),l?a.sort(function(e,t){return l(e.key,t.key)}):a}(l(a.map,e,0),0)},n.key=function(e){return r.push(e),n},n.sortKeys=function(e){return i[r.length-1]=e,n},n.sortValues=function(t){return e=t,n},n.rollup=function(e){return t=e,n},n},a.set=function(e){var t=new G;if(e)for(var n=0,r=e.length;n=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},a.event=null,a.requote=function(e){return e.replace(V,"\\$&")};var V=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,H={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function q(e){return H(e,Z),e}var U=function(e,t){return t.querySelector(e)},Y=function(e,t){return t.querySelectorAll(e)},X=function(e,t){var n=e.matches||e[P(e,"matchesSelector")];return(X=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(U=function(e,t){return Sizzle(e,t)[0]||null},Y=Sizzle,X=Sizzle.matchesSelector),a.selection=function(){return a.select(s.documentElement)};var Z=a.selection.prototype=[];function J(e){return"function"==typeof e?e:function(){return U(e,this)}}function Q(e){return"function"==typeof e?e:function(){return Y(e,this)}}Z.select=function(e){var t,n,r,i,a=[];e=J(e);for(var l=-1,o=this.length;++l=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),te.hasOwnProperty(n)?{space:te[n],local:e}:e}},Z.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return(e=a.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(ne(t,e[t]));return this}return this.each(ne(e,t))},Z.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=ae(e)).length,i=-1;if(t=n.classList){for(;++i=0;)(n=r[i])&&(a&&a!==n.nextSibling&&a.parentNode.insertBefore(n,a),a=n);return this},Z.sort=function(e){e=function(e){arguments.length||(e=y);return function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}.apply(this,arguments);for(var t=-1,n=this.length;++t0&&(e=e.slice(0,i));var s=me.get(e);function u(){var t=this[r];t&&(this.removeEventListener(e,t,t.$),delete this[r])}return s&&(e=s,l=Te),i?t?function(){var i=l(t,o(arguments));u.call(this),this.addEventListener(e,this[r]=i,i.$=n),i._=t}:u:t?E:function(){var t,n=new RegExp("^__on([^.]+)"+a.requote(e)+"$");for(var r in this)if(t=r.match(n)){var i=this[r];this.removeEventListener(t[1],i,i.$),delete this[r]}}}a.selection.enter=ve,a.selection.enter.prototype=ye,ye.append=Z.append,ye.empty=Z.empty,ye.node=Z.node,ye.call=Z.call,ye.size=Z.size,ye.select=function(e){for(var t,n,r,i,a,l=[],o=-1,s=this.length;++o=r&&(r=t+1);!(l=o[r])&&++r0?1:e<0?-1:0}function Oe(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Pe(e){return e>1?0:e<-1?Le:Math.acos(e)}function Re(e){return e>1?Se:e<-1?-Se:Math.asin(e)}function Ee(e){return((e=Math.exp(e))+1/e)/2}function je(e){return(e=Math.sin(e/2))*e}var Ie=Math.SQRT2;a.interpolateZoom=function(e,t){var n,r,i=e[0],a=e[1],l=e[2],o=t[0],s=t[1],u=t[2],c=o-i,d=s-a,f=c*c+d*d;if(f0&&(e=e.transition().duration(v)),e.call(M.event)}function A(){o&&o.domain(l.range().map(function(e){return(e-f.x)/f.k}).map(l.invert)),d&&d.domain(u.range().map(function(e){return(e-f.y)/f.k}).map(u.invert))}function w(e){y++||e({type:"zoomstart"})}function L(e){A(),e({type:"zoom",scale:f.k,translate:[f.x,f.y]})}function D(e){--y||(e({type:"zoomend"}),t=null)}function B(){var e=this,t=b.of(e,arguments),n=0,r=a.select(c(e)).on(m,function(){n=1,x(a.mouse(e),i),L(t)}).on(_,function(){r.on(m,null).on(_,null),l(n),D(t)}),i=k(a.mouse(e)),l=ke(e);co.call(e),w(t)}function S(){var e,t=this,n=b.of(t,arguments),r={},l=0,o=".zoom-"+a.event.changedTouches[0].identifier,s="touchmove"+o,u="touchend"+o,c=[],d=a.select(t),h=ke(t);function p(){var n=a.touches(t);return e=f.k,n.forEach(function(e){e.identifier in r&&(r[e.identifier]=k(e))}),n}function v(){var e=a.event.target;a.select(e).on(s,y).on(u,m),c.push(e);for(var n=a.event.changedTouches,o=0,d=n.length;o1){g=h[0];var _=h[1],T=g[0]-_[0],b=g[1]-_[1];l=T*T+b*b}}function y(){var o,s,u,c,d=a.touches(t);co.call(t);for(var f=0,h=d.length;f360?e-=360:e<0&&(e+=360),e<60?r+(i-r)*e/60:e<180?i:e<240?r+(i-r)*(240-e)/60:r}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:t<0?0:t>1?1:t,r=2*(n=n<0?0:n>1?1:n)-(i=n<=.5?n*(1+t):n+t-n*t),new ut(a(e+120),a(e),a(e-120))}function Ye(e,t,n){return this instanceof Ye?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof Ye?new Ye(e.h,e.c,e.l):at(e instanceof Je?e.l:(e=yt((e=a.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Ye(e,t,n)}qe.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new He(this.h,this.s,this.l/e)},qe.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new He(this.h,this.s,e*this.l)},qe.rgb=function(){return Ue(this.h,this.s,this.l)},a.hcl=Ye;var Xe=Ye.prototype=new Ve;function Ze(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Je(n,Math.cos(e*=ze)*t,Math.sin(e)*t)}function Je(e,t,n){return this instanceof Je?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof Je?new Je(e.l,e.a,e.b):e instanceof Ye?Ze(e.h,e.c,e.l):yt((e=ut(e)).r,e.g,e.b):new Je(e,t,n)}Xe.brighter=function(e){return new Ye(this.h,this.c,Math.min(100,this.l+Qe*(arguments.length?e:1)))},Xe.darker=function(e){return new Ye(this.h,this.c,Math.max(0,this.l-Qe*(arguments.length?e:1)))},Xe.rgb=function(){return Ze(this.h,this.c,this.l).rgb()},a.lab=Je;var Qe=18,et=.95047,tt=1,nt=1.08883,rt=Je.prototype=new Ve;function it(e,t,n){var r=(e+16)/116,i=r+t/500,a=r-n/200;return new ut(st(3.2404542*(i=lt(i)*et)-1.5371385*(r=lt(r)*tt)-.4985314*(a=lt(a)*nt)),st(-.969266*i+1.8760108*r+.041556*a),st(.0556434*i-.2040259*r+1.0572252*a))}function at(e,t,n){return e>0?new Ye(Math.atan2(n,t)*Ge,Math.sqrt(t*t+n*n),e):new Ye(NaN,NaN,e)}function lt(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function ot(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function st(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function ut(e,t,n){return this instanceof ut?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof ut?new ut(e.r,e.g,e.b):pt(""+e,ut,Ue):new ut(e,t,n)}function ct(e){return new ut(e>>16,e>>8&255,255&e)}function dt(e){return ct(e)+""}rt.brighter=function(e){return new Je(Math.min(100,this.l+Qe*(arguments.length?e:1)),this.a,this.b)},rt.darker=function(e){return new Je(Math.max(0,this.l-Qe*(arguments.length?e:1)),this.a,this.b)},rt.rgb=function(){return it(this.l,this.a,this.b)},a.rgb=ut;var ft=ut.prototype=new Ve;function ht(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function pt(e,t,n){var r,i,a,l=0,o=0,s=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(mt(i[0]),mt(i[1]),mt(i[2]))}return(a=_t.get(e))?t(a.r,a.g,a.b):(null==e||"#"!==e.charAt(0)||isNaN(a=parseInt(e.slice(1),16))||(4===e.length?(l=(3840&a)>>4,l|=l>>4,o=240&a,o|=o>>4,s=15&a,s|=s<<4):7===e.length&&(l=(16711680&a)>>16,o=(65280&a)>>8,s=255&a)),t(l,o,s))}function vt(e,t,n){var r,i,a=Math.min(e/=255,t/=255,n/=255),l=Math.max(e,t,n),o=l-a,s=(l+a)/2;return o?(i=s<.5?o/(l+a):o/(2-l-a),r=e==l?(t-n)/o+(t0&&s<1?0:r),new He(r,i,s)}function yt(e,t,n){var r=ot((.4124564*(e=gt(e))+.3575761*(t=gt(t))+.1804375*(n=gt(n)))/et),i=ot((.2126729*e+.7151522*t+.072175*n)/tt);return Je(116*i-16,500*(r-i),200*(i-ot((.0193339*e+.119192*t+.9503041*n)/nt)))}function gt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function mt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}ft.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,i=30;return t||n||r?(t&&t=200&&t<300||304===t){try{e=n.call(i,u)}catch(e){return void l.error.call(i,e)}l.load.call(i,e)}else l.error.call(i,u)}return!this.XDomainRequest||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(e)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=d:u.onreadystatechange=function(){u.readyState>3&&d()},u.onprogress=function(e){var t=a.event;a.event=e;try{l.progress.call(i,u)}finally{a.event=t}},i.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",i)},i.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",i):t},i.responseType=function(e){return arguments.length?(c=e,i):c},i.response=function(e){return n=e,i},["get","post"].forEach(function(e){i[e]=function(){return i.send.apply(i,[e].concat(o(arguments)))}}),i.send=function(n,r,a){if(2===arguments.length&&"function"==typeof r&&(a=r,r=null),u.open(n,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),u.setRequestHeader)for(var o in s)u.setRequestHeader(o,s[o]);return null!=t&&u.overrideMimeType&&u.overrideMimeType(t),null!=c&&(u.responseType=c),null!=a&&i.on("error",a).on("load",function(e){a(null,e)}),l.beforesend.call(i,u),u.send(null==r?null:r),i},i.abort=function(){return u.abort(),i},a.rebind(i,l,"on"),null==r?i:i.get(function(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}(r))}_t.forEach(function(e,t){_t.set(e,ct(t))}),a.functor=Tt,a.xhr=bt(W),a.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function i(e,n,r){arguments.length<3&&(r=n,n=null);var i=Mt(e,t,null==n?a:l(n),r);return i.row=function(e){return arguments.length?i.response(null==(n=e)?a:l(e)):n},i}function a(e){return i.parse(e.responseText)}function l(e){return function(t){return i.parse(t.responseText,e)}}function o(t){return t.map(s).join(e)}function s(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return i.parse=function(e,t){var n;return i.parseRows(e,function(e,r){if(n)return n(e,r-1);var i=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");n=t?function(e,n){return t(i(e),n)}:i})},i.parseRows=function(e,t){var n,i,a={},l={},o=[],s=e.length,u=0,c=0;function d(){if(u>=s)return l;if(i)return i=!1,a;var t=u;if(34===e.charCodeAt(t)){for(var n=t;n++24?(isFinite(t)&&(clearTimeout(Ct),Ct=setTimeout(Lt,t)),xt=0):(xt=1,At(Lt))}function Dt(){for(var e=Date.now(),t=kt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Bt(){for(var e,t=kt,n=1/0;t;)t.c?(t.t8?function(e){return e/n}:function(e){return e*n},symbol:e}});a.formatPrefix=function(e,t){var n=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=a.round(e,St(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),zt[8+n/3]};var Gt=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Wt=a.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=a.round(e,St(e,t))).toFixed(Math.max(0,Math.min(20,St(e*(1+1e-15),t))))}});function Ot(e){return e+""}var Pt=a.time={},Rt=Date;function Et(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Et.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){jt.setUTCDate.apply(this._,arguments)},setDay:function(){jt.setUTCDay.apply(this._,arguments)},setFullYear:function(){jt.setUTCFullYear.apply(this._,arguments)},setHours:function(){jt.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){jt.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){jt.setUTCMinutes.apply(this._,arguments)},setMonth:function(){jt.setUTCMonth.apply(this._,arguments)},setSeconds:function(){jt.setUTCSeconds.apply(this._,arguments)},setTime:function(){jt.setTime.apply(this._,arguments)}};var jt=Date.prototype;function It(e,t,n){function r(t){var n=e(t),r=a(n,1);return t-n1)for(;l68?1900:2e3),n+i[0].length):-1}function en(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function tn(e,t,n){$t.lastIndex=0;var r=$t.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nn(e,t,n){$t.lastIndex=0;var r=$t.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rn(e,t,n){$t.lastIndex=0;var r=$t.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function an(e,t,n){$t.lastIndex=0;var r=$t.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ln(e,t,n){$t.lastIndex=0;var r=$t.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function on(e,t,n){$t.lastIndex=0;var r=$t.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function sn(e,t,n){$t.lastIndex=0;var r=$t.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function un(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=M(t)/60|0,i=M(t)%60;return n+Ht(r,"0",2)+Ht(i,"0",2)}function cn(e,t,n){Vt.lastIndex=0;var r=Vt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function dn(e){for(var t=e.length,n=-1;++n0&&o>0&&(s+o+1>t&&(o=Math.max(1,t-s)),a.push(e.substring(i-=o,i+o)),!((s+=o+1)>t));)o=r[l=(l+1)%r.length];return a.reverse().join(n)}:W;return function(e){var n=Gt.exec(e),r=n[1]||" ",o=n[2]||">",s=n[3]||"-",u=n[4]||"",c=n[5],d=+n[6],f=n[7],h=n[8],p=n[9],v=1,y="",g="",m=!1,_=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===o)&&(c=r="0",o="="),p){case"n":f=!0,p="g";break;case"%":v=100,g="%",p="f";break;case"p":v=100,g="%",p="r";break;case"b":case"o":case"x":case"X":"#"===u&&(y="0"+p.toLowerCase());case"c":_=!1;case"d":m=!0,h=0;break;case"s":v=-1,p="r"}"$"===u&&(y=i[0],g=i[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):"e"!=p&&"f"!=p||(h=Math.max(0,Math.min(20,h)))),p=Wt.get(p)||Ot;var T=c&&f;return function(e){var n=g;if(m&&e%1)return"";var i=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===s?"":s;if(v<0){var u=a.formatPrefix(e,h);e=u.scale(e),n=u.symbol+g}else e*=v;var b,M,k=(e=p(e,h)).lastIndexOf(".");if(k<0){var K=_?e.lastIndexOf("e"):-1;K<0?(b=e,M=""):(b=e.substring(0,K),M=e.substring(K))}else b=e.substring(0,k),M=t+e.substring(k+1);!c&&f&&(b=l(b,1/0));var x=y.length+b.length+M.length+(T?0:i.length),C=x"===o?C+i+e:"^"===o?C.substring(0,x>>=1)+i+e+C.substring(x):i+(T?e:C+e))+n}}}(e),timeFormat:function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,l=e.days,o=e.shortDays,s=e.months,u=e.shortMonths;function c(e){var t=e.length;function n(n){for(var r,i,a,l=[],o=-1,s=0;++o=u)return-1;if(37===(i=t.charCodeAt(o++))){if(l=t.charAt(o++),!(a=M[l in Ft?t.charAt(o++):l])||(r=a(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}c.utc=function(e){var t=c(e);function n(e){try{var n=new(Rt=Et);return n._=e,t(n)}finally{Rt=Date}}return n.parse=function(e){try{Rt=Et;var n=t.parse(e);return n&&n._}finally{Rt=Date}},n.toString=t.toString,n},c.multi=c.utc.multi=dn;var f=a.map(),h=qt(l),p=Ut(l),v=qt(o),y=Ut(o),g=qt(s),m=Ut(s),_=qt(u),T=Ut(u);i.forEach(function(e,t){f.set(e.toLowerCase(),t)});var b={a:function(e){return o[e.getDay()]},A:function(e){return l[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:c(t),d:function(e,t){return Ht(e.getDate(),t,2)},e:function(e,t){return Ht(e.getDate(),t,2)},H:function(e,t){return Ht(e.getHours(),t,2)},I:function(e,t){return Ht(e.getHours()%12||12,t,2)},j:function(e,t){return Ht(1+Pt.dayOfYear(e),t,3)},L:function(e,t){return Ht(e.getMilliseconds(),t,3)},m:function(e,t){return Ht(e.getMonth()+1,t,2)},M:function(e,t){return Ht(e.getMinutes(),t,2)},p:function(e){return i[+(e.getHours()>=12)]},S:function(e,t){return Ht(e.getSeconds(),t,2)},U:function(e,t){return Ht(Pt.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Ht(Pt.mondayOfYear(e),t,2)},x:c(n),X:c(r),y:function(e,t){return Ht(e.getFullYear()%100,t,2)},Y:function(e,t){return Ht(e.getFullYear()%1e4,t,4)},Z:un,"%":function(){return"%"}},M={a:function(e,t,n){v.lastIndex=0;var r=v.exec(t.slice(n));return r?(e.w=y.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){h.lastIndex=0;var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){_.lastIndex=0;var r=_.exec(t.slice(n));return r?(e.m=T.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){g.lastIndex=0;var r=g.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,t,n){return d(e,b.c.toString(),t,n)},d:nn,e:nn,H:an,I:an,j:rn,L:sn,m:tn,M:ln,p:function(e,t,n){var r=f.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)},S:on,U:Xt,w:Yt,W:Zt,x:function(e,t,n){return d(e,b.x.toString(),t,n)},X:function(e,t,n){return d(e,b.X.toString(),t,n)},y:Qt,Y:Jt,Z:en,"%":cn};return c}(e)}};var fn=a.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function hn(){}a.format=fn.numberFormat,a.geo={},hn.prototype={s:0,t:0,add:function(e){vn(e,this.t,pn),vn(pn.s,this.s,this),this.s?this.t+=pn.t:this.s=pn.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var pn=new hn;function vn(e,t,n){var r=n.s=e+t,i=r-e,a=r-i;n.t=e-a+(t-i)}function yn(e,t){e&&mn.hasOwnProperty(e.type)&&mn[e.type](e,t)}a.geo.stream=function(e,t){e&&gn.hasOwnProperty(e.type)?gn[e.type](e,t):yn(e,t)};var gn={Feature:function(e,t){yn(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r=0?1:-1,o=l*a,s=Math.cos(t),u=Math.sin(t),c=i*u,d=r*s+c*Math.cos(o),f=c*l*Math.sin(o);zn.add(Math.atan2(f,d)),n=e,r=s,i=u}Gn.point=function(l,o){Gn.point=a,n=(e=l)*ze,r=Math.cos(o=(t=o)*ze/2+Le/4),i=Math.sin(o)},Gn.lineEnd=function(){a(e,t)}}function On(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function Pn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Rn(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function En(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function jn(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function In(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Nn(e){return[Math.atan2(e[1],e[0]),Re(e[2])]}function Fn(e,t){return M(e[0]-t[0])Ae?r=90:u<-Ae&&(t=-90),d[0]=e,d[1]=n}};function h(i,a){c.push(d=[e=i,n=i]),ar&&(r=a)}function p(a,l){var o=On([a*ze,l*ze]);if(s){var u=Rn(s,o),c=Rn([u[1],-u[0],0],u);In(c),c=Nn(c);var d=a-i,f=d>0?1:-1,p=c[0]*Ge*f,v=M(d)>180;if(v^(f*ir&&(r=y);else if(v^(f*i<(p=(p+360)%360-180)&&pr&&(r=l);v?aT(e,n)&&(n=a):T(a,n)>T(e,n)&&(e=a):n>=e?(an&&(n=a)):a>i?T(e,a)>T(e,n)&&(n=a):T(a,n)>T(e,n)&&(e=a)}else h(a,l);s=o,i=a}function v(){f.point=p}function y(){d[0]=e,d[1]=n,f.point=h,s=null}function g(e,t){if(s){var n=e-i;u+=M(n)>180?n+(n>0?360:-360):n}else l=e,o=t;Gn.point(e,t),p(e,t)}function m(){Gn.lineStart()}function _(){g(l,o),Gn.lineEnd(),M(u)>Ae&&(e=-(n=180)),d[0]=e,d[1]=n,s=null}function T(e,t){return(t-=e)<0?t+360:t}function b(e,t){return e[0]-t[0]}function k(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eT(v[0],v[1])&&(v[1]=h[1]),T(h[0],v[1])>T(v[0],v[1])&&(v[0]=h[0])):o.push(v=h);for(var s,u,h,p=-1/0,v=(l=0,o[u=o.length-1]);l<=u;v=h,++l)h=o[l],(s=T(v[1],h[0]))>p&&(p=s,e=h[0],n=v[1])}return c=d=null,e===1/0||t===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,t],[n,r]]}}(),a.geo.centroid=function(e){Mn=kn=Kn=xn=Cn=An=wn=Ln=Dn=Bn=Sn=0,a.geo.stream(e,$n);var t=Dn,n=Bn,r=Sn,i=t*t+n*n+r*r;return i=0;--o)i.point((d=c[o])[0],d[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}}function Qn(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r=0?1:-1,k=M*b,K=k>Le,x=p*_;if(zn.add(Math.atan2(x*M*Math.sin(k),v*T+x*Math.cos(k))),a+=K?b+M*De:b,K^f>=n^g>=n){var C=Rn(On(d),On(e));In(C);var A=Rn(i,C);In(A);var w=(K^b>=0?-1:1)*Re(A[2]);(r>w||r===w&&(C[0]||C[1]))&&(l+=K^b>=0?1:-1)}if(!y++)break;f=g,p=_,v=T,d=e}}return(a<-Ae||a0){for(_||(l.polygonStart(),_=!0),l.lineStart();++a1&&2&t&&n.push(n.pop().concat(n.shift())),o.push(n.filter(nr))}return c}}function nr(e){return e.length>1}function rr(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:E,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function ir(e,t){return((e=e.x)[0]<0?e[1]-Se-Ae:Se-e[1])-((t=t.x)[0]<0?t[1]-Se-Ae:Se-t[1])}var ar=tr(Zn,function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(a,l){var o=a>0?Le:-Le,s=M(a-n);M(s-Le)0?Se:-Se),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(o,r),e.point(a,r),t=0):i!==o&&s>=Le&&(M(n-i)Ae?Math.atan((Math.sin(t)*(a=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(t))*Math.sin(e))/(i*a*l)):(t+r)/2}(n,r,a,l),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(o,r),t=0),e.point(n=a,r=l),i=o},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var i;if(null==e)i=n*Se,r.point(-Le,i),r.point(0,i),r.point(Le,i),r.point(Le,0),r.point(Le,-i),r.point(0,-i),r.point(-Le,-i),r.point(-Le,0),r.point(-Le,i);else if(M(e[0]-t[0])>Ae){var a=e[0]0)){if(a/=f,f<0){if(a0){if(a>d)return;a>c&&(c=a)}if(a=n-s,f||!(a<0)){if(a/=f,f<0){if(a>d)return;a>c&&(c=a)}else if(f>0){if(a0)){if(a/=h,h<0){if(a0){if(a>d)return;a>c&&(c=a)}if(a=r-u,h||!(a<0)){if(a/=h,h<0){if(a>d)return;a>c&&(c=a)}else if(h>0){if(a0&&(i.a={x:s+c*f,y:u+c*h}),d<1&&(i.b={x:s+d*f,y:u+d*h}),i}}}}}}var or=1e9;function sr(e,t,n,r){return function(s){var u,c,d,f,h,p,v,y,g,m,_,T=s,b=rr(),M=lr(e,t,n,r),k={point:C,lineStart:function(){k.point=A,c&&c.push(d=[]);m=!0,g=!1,v=y=NaN},lineEnd:function(){u&&(A(f,h),p&&g&&b.rejoin(),u.push(b.buffer()));k.point=C,g&&s.lineEnd()},polygonStart:function(){s=b,u=[],c=[],_=!0},polygonEnd:function(){s=T,u=a.merge(u);var t=function(e){for(var t=0,n=c.length,r=e[1],i=0;ir&&Oe(u,a,e)>0&&++t:a[1]<=r&&Oe(u,a,e)<0&&--t,u=a;return 0!==t}([e,r]),n=_&&t,i=u.length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),K(null,null,1,s),s.lineEnd()),i&&Jn(u,l,t,K,s),s.polygonEnd()),u=c=d=null}};function K(a,l,s,u){var c=0,d=0;if(null==a||(c=i(a,s))!==(d=i(l,s))||o(a,l)<0^s>0)do{u.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+s+4)%4)!==d);else u.point(l[0],l[1])}function x(i,a){return e<=i&&i<=n&&t<=a&&a<=r}function C(e,t){x(e,t)&&s.point(e,t)}function A(e,t){var n=x(e=Math.max(-or,Math.min(or,e)),t=Math.max(-or,Math.min(or,t)));if(c&&d.push([e,t]),m)f=e,h=t,p=n,m=!1,n&&(s.lineStart(),s.point(e,t));else if(n&&g)s.point(e,t);else{var r={a:{x:v,y:y},b:{x:e,y:t}};M(r)?(g||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),_=!1):n&&(s.lineStart(),s.point(e,t),_=!1)}v=e,y=t,g=n}return k};function i(r,i){return M(r[0]-e)0?0:3:M(r[0]-n)0?2:1:M(r[1]-t)0?1:0:i>0?3:2}function l(e,t){return o(e.x,t.x)}function o(e,t){var n=i(e,1),r=i(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}}function ur(e){var t=0,n=Le/3,r=Br(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Le/180,n=e[1]*Le/180):[t/Le*180,n/Le*180]},i}function cr(e,t){var n=Math.sin(e),r=(n+Math.sin(t))/2,i=1+n*(2*r-n),a=Math.sqrt(i)/r;function l(e,t){var n=Math.sqrt(i-2*r*Math.sin(t))/r;return[n*Math.sin(e*=r),a-n*Math.cos(e)]}return l.invert=function(e,t){var n=a-t;return[Math.atan2(e,n)/r,Re((i-(e*e+n*n)*r*r)/(2*r))]},l}a.geo.clipExtent=function(){var e,t,n,r,i,a,l={stream:function(e){return i&&(i.valid=!1),(i=a(e)).valid=!0,i},extent:function(o){return arguments.length?(a=sr(e=+o[0][0],t=+o[0][1],n=+o[1][0],r=+o[1][1]),i&&(i.valid=!1,i=null),l):[[e,t],[n,r]]}};return l.extent([[0,0],[960,500]])},(a.geo.conicEqualArea=function(){return ur(cr)}).raw=cr,a.geo.albers=function(){return a.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},a.geo.albersUsa=function(){var e,t,n,r,i=a.geo.albers(),l=a.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o=a.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,n){e=[t,n]}};function u(i){var a=i[0],l=i[1];return e=null,t(a,l),e||(n(a,l),e)||r(a,l),e}return u.invert=function(e){var t=i.scale(),n=i.translate(),r=(e[0]-n[0])/t,a=(e[1]-n[1])/t;return(a>=.12&&a<.234&&r>=-.425&&r<-.214?l:a>=.166&&a<.234&&r>=-.214&&r<-.115?o:i).invert(e)},u.stream=function(e){var t=i.stream(e),n=l.stream(e),r=o.stream(e);return{point:function(e,i){t.point(e,i),n.point(e,i),r.point(e,i)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},u.precision=function(e){return arguments.length?(i.precision(e),l.precision(e),o.precision(e),u):i.precision()},u.scale=function(e){return arguments.length?(i.scale(e),l.scale(.35*e),o.scale(e),u.translate(i.translate())):i.scale()},u.translate=function(e){if(!arguments.length)return i.translate();var a=i.scale(),c=+e[0],d=+e[1];return t=i.translate(e).clipExtent([[c-.455*a,d-.238*a],[c+.455*a,d+.238*a]]).stream(s).point,n=l.translate([c-.307*a,d+.201*a]).clipExtent([[c-.425*a+Ae,d+.12*a+Ae],[c-.214*a-Ae,d+.234*a-Ae]]).stream(s).point,r=o.translate([c-.205*a,d+.212*a]).clipExtent([[c-.214*a+Ae,d+.166*a+Ae],[c-.115*a-Ae,d+.234*a-Ae]]).stream(s).point,u},u.scale(1070)};var dr,fr,hr,pr,vr,yr,gr={point:E,lineStart:E,lineEnd:E,polygonStart:function(){fr=0,gr.lineStart=mr},polygonEnd:function(){gr.lineStart=gr.lineEnd=gr.point=E,dr+=M(fr/2)}};function mr(){var e,t,n,r;function i(e,t){fr+=r*e-n*t,n=e,r=t}gr.point=function(a,l){gr.point=i,e=n=a,t=r=l},gr.lineEnd=function(){i(e,t)}}var _r={point:function(e,t){evr&&(vr=e);tyr&&(yr=t)},lineStart:E,lineEnd:E,polygonStart:E,polygonEnd:E};function Tr(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var br,Mr={point:kr,lineStart:Kr,lineEnd:xr,polygonStart:function(){Mr.lineStart=Cr},polygonEnd:function(){Mr.point=kr,Mr.lineStart=Kr,Mr.lineEnd=xr}};function kr(e,t){Kn+=e,xn+=t,++Cn}function Kr(){var e,t;function n(n,r){var i=n-e,a=r-t,l=Math.sqrt(i*i+a*a);An+=l*(e+n)/2,wn+=l*(t+r)/2,Ln+=l,kr(e=n,t=r)}Mr.point=function(r,i){Mr.point=n,kr(e=r,t=i)}}function xr(){Mr.point=kr}function Cr(){var e,t,n,r;function i(e,t){var i=e-n,a=t-r,l=Math.sqrt(i*i+a*a);An+=l*(n+e)/2,wn+=l*(r+t)/2,Ln+=l,Dn+=(l=r*e-n*t)*(n+e),Bn+=l*(r+t),Sn+=3*l,kr(n=e,r=t)}Mr.point=function(a,l){Mr.point=i,kr(e=n=a,t=r=l)},Mr.lineEnd=function(){i(e,t)}}function Ar(e){var t=.5,n=Math.cos(30*ze),r=16;function i(t){return(r?function(t){var n,i,l,o,s,u,c,d,f,h,p,v,y={point:g,lineStart:m,lineEnd:T,polygonStart:function(){t.polygonStart(),y.lineStart=b},polygonEnd:function(){t.polygonEnd(),y.lineStart=m}};function g(n,r){n=e(n,r),t.point(n[0],n[1])}function m(){d=NaN,y.point=_,t.lineStart()}function _(n,i){var l=On([n,i]),o=e(n,i);a(d,f,c,h,p,v,d=o[0],f=o[1],c=n,h=l[0],p=l[1],v=l[2],r,t),t.point(d,f)}function T(){y.point=g,t.lineEnd()}function b(){m(),y.point=M,y.lineEnd=k}function M(e,t){_(n=e,t),i=d,l=f,o=h,s=p,u=v,y.point=_}function k(){a(d,f,c,h,p,v,i,l,n,o,s,u,r,t),y.lineEnd=T,T()}return y}:function(t){return Lr(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})})(t)}function a(r,i,l,o,s,u,c,d,f,h,p,v,y,g){var m=c-r,_=d-i,T=m*m+_*_;if(T>4*t&&y--){var b=o+h,k=s+p,K=u+v,x=Math.sqrt(b*b+k*k+K*K),C=Math.asin(K/=x),A=M(M(K)-1)t||M((m*B+_*S)/T-.5)>.3||o*h+s*p+u*v0&&16,i):Math.sqrt(t)},i}function wr(e){this.stream=e}function Lr(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function Dr(e){return Br(function(){return e})()}function Br(e){var t,n,r,i,l,o,s=Ar(function(e,n){return[(e=t(e,n))[0]*u+i,l-e[1]*u]}),u=150,c=480,d=250,f=0,h=0,p=0,v=0,y=0,g=ar,m=W,_=null,T=null;function b(e){return[(e=r(e[0]*ze,e[1]*ze))[0]*u+i,l-e[1]*u]}function k(e){return(e=r.invert((e[0]-i)/u,(l-e[1])/u))&&[e[0]*Ge,e[1]*Ge]}function K(){r=Xn(n=Wr(p,v,y),t);var e=t(f,h);return i=c-e[0]*u,l=d+e[1]*u,x()}function x(){return o&&(o.valid=!1,o=null),b}return b.stream=function(e){return o&&(o.valid=!1),(o=Sr(g(n,s(m(e))))).valid=!0,o},b.clipAngle=function(e){return arguments.length?(g=null==e?(_=e,ar):function(e){var t=Math.cos(e),n=t>0,r=M(t)>Ae;return tr(i,function(e){var t,o,s,u,c;return{lineStart:function(){u=s=!1,c=1},point:function(d,f){var h,p=[d,f],v=i(d,f),y=n?v?0:l(d,f):v?l(d+(d<0?Le:-Le),f):0;if(!t&&(u=s=v)&&e.lineStart(),v!==s&&(h=a(t,p),(Fn(t,h)||Fn(p,h))&&(p[0]+=Ae,p[1]+=Ae,v=i(p[0],p[1]))),v!==s)c=0,v?(e.lineStart(),h=a(p,t),e.point(h[0],h[1])):(h=a(t,p),e.point(h[0],h[1]),e.lineEnd()),t=h;else if(r&&t&&n^v){var g;y&o||!(g=a(p,t,!0))||(c=0,n?(e.lineStart(),e.point(g[0][0],g[0][1]),e.point(g[1][0],g[1][1]),e.lineEnd()):(e.point(g[1][0],g[1][1]),e.lineEnd(),e.lineStart(),e.point(g[0][0],g[0][1])))}!v||t&&Fn(t,p)||e.point(p[0],p[1]),t=p,s=v,o=y},lineEnd:function(){s&&e.lineEnd(),t=null},clean:function(){return c|(u&&s)<<1}}},Er(e,6*ze),n?[0,-e]:[-Le,e-Le]);function i(e,n){return Math.cos(e)*Math.cos(n)>t}function a(e,n,r){var i=[1,0,0],a=Rn(On(e),On(n)),l=Pn(a,a),o=a[0],s=l-o*o;if(!s)return!r&&e;var u=t*l/s,c=-t*o/s,d=Rn(i,a),f=jn(i,u);En(f,jn(a,c));var h=d,p=Pn(f,h),v=Pn(h,h),y=p*p-v*(Pn(f,f)-1);if(!(y<0)){var g=Math.sqrt(y),m=jn(h,(-p-g)/v);if(En(m,f),m=Nn(m),!r)return m;var _,T=e[0],b=n[0],k=e[1],K=n[1];b0^m[1]<(M(m[0]-T)Le^(T<=m[0]&&m[0]<=b)){var A=jn(h,(-p+g)/v);return En(A,f),[m,Nn(A)]}}}function l(t,r){var i=n?e:Le-e,a=0;return t<-i?a|=1:t>i&&(a|=2),r<-i?a|=4:r>i&&(a|=8),a}}((_=+e)*ze),x()):_},b.clipExtent=function(e){return arguments.length?(T=e,m=e?sr(e[0][0],e[0][1],e[1][0],e[1][1]):W,x()):T},b.scale=function(e){return arguments.length?(u=+e,K()):u},b.translate=function(e){return arguments.length?(c=+e[0],d=+e[1],K()):[c,d]},b.center=function(e){return arguments.length?(f=e[0]%360*ze,h=e[1]%360*ze,K()):[f*Ge,h*Ge]},b.rotate=function(e){return arguments.length?(p=e[0]%360*ze,v=e[1]%360*ze,y=e.length>2?e[2]%360*ze:0,K()):[p*Ge,v*Ge,y*Ge]},a.rebind(b,s,"precision"),function(){return t=e.apply(this,arguments),b.invert=t.invert&&k,K()}}function Sr(e){return Lr(e,function(t,n){e.point(t*ze,n*ze)})}function zr(e,t){return[e,t]}function Gr(e,t){return[e>Le?e-De:e<-Le?e+De:e,t]}function Wr(e,t,n){return e?t||n?Xn(Pr(e),Rr(t,n)):Pr(e):t||n?Rr(t,n):Gr}function Or(e){return function(t,n){return[(t+=e)>Le?t-De:t<-Le?t+De:t,n]}}function Pr(e){var t=Or(e);return t.invert=Or(-e),t}function Rr(e,t){var n=Math.cos(e),r=Math.sin(e),i=Math.cos(t),a=Math.sin(t);function l(e,t){var l=Math.cos(t),o=Math.cos(e)*l,s=Math.sin(e)*l,u=Math.sin(t),c=u*n+o*r;return[Math.atan2(s*i-c*a,o*n-u*r),Re(c*i+s*a)]}return l.invert=function(e,t){var l=Math.cos(t),o=Math.cos(e)*l,s=Math.sin(e)*l,u=Math.sin(t),c=u*i-s*a;return[Math.atan2(s*i+u*a,o*n+c*r),Re(c*n-o*r)]},l}function Er(e,t){var n=Math.cos(e),r=Math.sin(e);return function(i,a,l,o){var s=l*t;null!=i?(i=jr(n,i),a=jr(n,a),(l>0?ia)&&(i+=l*De)):(i=e+l*De,a=e-.5*s);for(var u,c=i;l>0?c>a:c2?e[2]*ze:0),t.invert=function(t){return(t=e.invert(t[0]*ze,t[1]*ze))[0]*=Ge,t[1]*=Ge,t},t},Gr.invert=zr,a.geo.circle=function(){var e,t,n=[0,0],r=6;function i(){var e="function"==typeof n?n.apply(this,arguments):n,r=Wr(-e[0]*ze,-e[1]*ze,0).invert,i=[];return t(null,null,1,{point:function(e,t){i.push(e=r(e,t)),e[0]*=Ge,e[1]*=Ge}}),{type:"Polygon",coordinates:[i]}}return i.origin=function(e){return arguments.length?(n=e,i):n},i.angle=function(n){return arguments.length?(t=Er((e=+n)*ze,r*ze),i):e},i.precision=function(n){return arguments.length?(t=Er(e*ze,(r=+n)*ze),i):r},i.angle(90)},a.geo.distance=function(e,t){var n,r=(t[0]-e[0])*ze,i=e[1]*ze,a=t[1]*ze,l=Math.sin(r),o=Math.cos(r),s=Math.sin(i),u=Math.cos(i),c=Math.sin(a),d=Math.cos(a);return Math.atan2(Math.sqrt((n=d*l)*n+(n=u*c-s*d*o)*n),s*c+u*d*o)},a.geo.graticule=function(){var e,t,n,r,i,l,o,s,u,c,d,f,h=10,p=h,v=90,y=360,g=2.5;function m(){return{type:"MultiLineString",coordinates:_()}}function _(){return a.range(Math.ceil(r/v)*v,n,v).map(d).concat(a.range(Math.ceil(s/y)*y,o,y).map(f)).concat(a.range(Math.ceil(t/h)*h,e,h).filter(function(e){return M(e%v)>Ae}).map(u)).concat(a.range(Math.ceil(l/p)*p,i,p).filter(function(e){return M(e%y)>Ae}).map(c))}return m.lines=function(){return _().map(function(e){return{type:"LineString",coordinates:e}})},m.outline=function(){return{type:"Polygon",coordinates:[d(r).concat(f(o).slice(1),d(n).reverse().slice(1),f(s).reverse().slice(1))]}},m.extent=function(e){return arguments.length?m.majorExtent(e).minorExtent(e):m.minorExtent()},m.majorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],o=+e[1][1],r>n&&(e=r,r=n,n=e),s>o&&(e=s,s=o,o=e),m.precision(g)):[[r,s],[n,o]]},m.minorExtent=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],l=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),l>i&&(n=l,l=i,i=n),m.precision(g)):[[t,l],[e,i]]},m.step=function(e){return arguments.length?m.majorStep(e).minorStep(e):m.minorStep()},m.majorStep=function(e){return arguments.length?(v=+e[0],y=+e[1],m):[v,y]},m.minorStep=function(e){return arguments.length?(h=+e[0],p=+e[1],m):[h,p]},m.precision=function(a){return arguments.length?(g=+a,u=Ir(l,i,90),c=Nr(t,e,g),d=Ir(s,o,90),f=Nr(r,n,g),m):g},m.majorExtent([[-180,-90+Ae],[180,90-Ae]]).minorExtent([[-180,-80-Ae],[180,80+Ae]])},a.geo.greatArc=function(){var e,t,n=Fr,r=$r;function i(){return{type:"LineString",coordinates:[e||n.apply(this,arguments),t||r.apply(this,arguments)]}}return i.distance=function(){return a.geo.distance(e||n.apply(this,arguments),t||r.apply(this,arguments))},i.source=function(t){return arguments.length?(n=t,e="function"==typeof t?null:t,i):n},i.target=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,i):r},i.precision=function(){return arguments.length?i:0},i},a.geo.interpolate=function(e,t){return n=e[0]*ze,r=e[1]*ze,i=t[0]*ze,a=t[1]*ze,l=Math.cos(r),o=Math.sin(r),s=Math.cos(a),u=Math.sin(a),c=l*Math.cos(n),d=l*Math.sin(n),f=s*Math.cos(i),h=s*Math.sin(i),p=2*Math.asin(Math.sqrt(je(a-r)+l*s*je(i-n))),v=1/Math.sin(p),(y=p?function(e){var t=Math.sin(e*=p)*v,n=Math.sin(p-e)*v,r=n*c+t*f,i=n*d+t*h,a=n*o+t*u;return[Math.atan2(i,r)*Ge,Math.atan2(a,Math.sqrt(r*r+i*i))*Ge]}:function(){return[n*Ge,r*Ge]}).distance=p,y;var n,r,i,a,l,o,s,u,c,d,f,h,p,v,y},a.geo.length=function(e){return br=0,a.geo.stream(e,Vr),br};var Vr={sphere:E,point:E,lineStart:function(){var e,t,n;function r(r,i){var a=Math.sin(i*=ze),l=Math.cos(i),o=M((r*=ze)-e),s=Math.cos(o);br+=Math.atan2(Math.sqrt((o=l*Math.sin(o))*o+(o=n*a-t*l*s)*o),t*a+n*l*s),e=r,t=a,n=l}Vr.point=function(i,a){e=i*ze,t=Math.sin(a*=ze),n=Math.cos(a),Vr.point=r},Vr.lineEnd=function(){Vr.point=Vr.lineEnd=E}},lineEnd:E,polygonStart:E,polygonEnd:E};function Hr(e,t){function n(t,n){var r=Math.cos(t),i=Math.cos(n),a=e(r*i);return[a*i*Math.sin(t),a*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),i=t(r),a=Math.sin(i),l=Math.cos(i);return[Math.atan2(e*a,r*l),Math.asin(r&&n*a/r)]},n}var qr=Hr(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(a.geo.azimuthalEqualArea=function(){return Dr(qr)}).raw=qr;var Ur=Hr(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},W);function Yr(e,t){var n=Math.cos(e),r=function(e){return Math.tan(Le/4+e/2)},i=e===t?Math.sin(e):Math.log(n/Math.cos(t))/Math.log(r(t)/r(e)),a=n*Math.pow(r(e),i)/i;if(!i)return Jr;function l(e,t){a>0?t<-Se+Ae&&(t=-Se+Ae):t>Se-Ae&&(t=Se-Ae);var n=a/Math.pow(r(t),i);return[n*Math.sin(i*e),a-n*Math.cos(i*e)]}return l.invert=function(e,t){var n=a-t,r=We(i)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/i,2*Math.atan(Math.pow(a/r,1/i))-Se]},l}function Xr(e,t){var n=Math.cos(e),r=e===t?Math.sin(e):(n-Math.cos(t))/(t-e),i=n/r+e;if(M(r)1&&Oe(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function li(e,t){return e[0]-t[0]||e[1]-t[1]}(a.geo.stereographic=function(){return Dr(ti)}).raw=ti,ni.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Se]},(a.geo.transverseMercator=function(){var e=Qr(ni),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90])}).raw=ni,a.geom={},a.geom.hull=function(e){var t=ri,n=ii;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,i=Tt(t),a=Tt(n),l=e.length,o=[],s=[];for(r=0;r=0;--r)h.push(e[o[u[r]][2]]);for(r=+d;rAe)o=o.L;else{if(!((i=a-ki(o,l))>Ae)){r>-Ae?(t=o.P,n=o):i>-Ae?(t=o,n=o.N):t=n=o;break}if(!o.R){t=o;break}o=o.R}var s=mi(e);if(hi.insert(t,s),t||n){if(t===n)return Ai(t),n=mi(t.site),hi.insert(s,n),s.edge=n.edge=Di(t.site,s.site),Ci(t),void Ci(n);if(n){Ai(t),Ai(n);var u=t.site,c=u.x,d=u.y,f=e.x-c,h=e.y-d,p=n.site,v=p.x-c,y=p.y-d,g=2*(f*y-h*v),m=f*f+h*h,_=v*v+y*y,T={x:(y*m-h*_)/g+c,y:(f*_-v*m)/g+d};Bi(n.edge,u,p,T),s.edge=Di(u,e,null,T),n.edge=Di(e,p,null,T),Ci(t),Ci(n)}else s.edge=Di(t.site,s.site)}}function Mi(e,t){var n=e.site,r=n.x,i=n.y,a=i-t;if(!a)return r;var l=e.P;if(!l)return-1/0;var o=(n=l.site).x,s=n.y,u=s-t;if(!u)return o;var c=o-r,d=1/a-1/u,f=c/u;return d?(-f+Math.sqrt(f*f-2*d*(c*c/(-2*u)-s+u/2+i-a/2)))/d+r:(r+o)/2}function ki(e,t){var n=e.N;if(n)return Mi(n,t);var r=e.site;return r.y===t?r.x:1/0}function Ki(e){this.site=e,this.edges=[]}function xi(e,t){return t.angle-e.angle}function Ci(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,a=n.site;if(r!==a){var l=i.x,o=i.y,s=r.x-l,u=r.y-o,c=a.x-l,d=2*(s*(y=a.y-o)-u*c);if(!(d>=-we)){var f=s*s+u*u,h=c*c+y*y,p=(y*f-u*h)/d,v=(s*h-c*f)/d,y=v+o,g=gi.pop()||new function(){Gi(this),this.x=this.y=this.arc=this.site=this.cy=null};g.arc=e,g.site=i,g.x=p+l,g.y=y+Math.sqrt(p*p+v*v),g.cy=y,e.circle=g;for(var m=null,_=vi._;_;)if(g.y<_.y||g.y===_.y&&g.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}vi.insert(m,g),m||(pi=g)}}}}function Ai(e){var t=e.circle;t&&(t.P||(pi=t.N),vi.remove(t),gi.push(t),Gi(t),e.circle=null)}function wi(e,t){var n=e.b;if(n)return!0;var r,i,a=e.a,l=t[0][0],o=t[1][0],s=t[0][1],u=t[1][1],c=e.l,d=e.r,f=c.x,h=c.y,p=d.x,v=d.y,y=(f+p)/2,g=(h+v)/2;if(v===h){if(y=o)return;if(f>p){if(a){if(a.y>=u)return}else a={x:y,y:s};n={x:y,y:u}}else{if(a){if(a.y1)if(f>p){if(a){if(a.y>=u)return}else a={x:(s-i)/r,y:s};n={x:(u-i)/r,y:u}}else{if(a){if(a.y=o)return}else a={x:l,y:r*l+i};n={x:o,y:r*o+i}}else{if(a){if(a.xAe||M(i-n)>Ae)&&(o.splice(l,0,new Si((g=a.site,m=c,_=M(r-d)Ae?{x:d,y:M(t-d)Ae?{x:M(n-p)Ae?{x:f,y:M(t-f)Ae?{x:M(n-h)=n&&u.x<=i&&u.y>=r&&u.y<=l?[[n,l],[i,l],[i,r],[n,r]]:[]).point=e[o]}),t}function o(e){return e.map(function(e,t){return{x:Math.round(r(e,t)/Ae)*Ae,y:Math.round(i(e,t)/Ae)*Ae,i:t}})}return l.links=function(e){return Ri(o(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},l.triangles=function(e){var t=[];return Ri(o(e)).cells.forEach(function(n,r){for(var i,a,l,o,s=n.site,u=n.edges.sort(xi),c=-1,d=u.length,f=u[d-1].edge,h=f.l===s?f.r:f.l;++ca&&(i=t.slice(a,i),o[l]?o[l]+=i:o[++l]=i),(n=n[0])===(r=r[0])?o[l]?o[l]+=r:o[++l]=r:(o[++l]=null,s.push({i:l,x:Vi(n,r)})),a=Ui.lastIndex;return av&&(v=s.x),s.y>y&&(y=s.y),u.push(s.x),c.push(s.y);else for(d=0;dv&&(v=_),T>y&&(y=T),u.push(_),c.push(T)}var b=v-h,k=y-p;function K(e,t,n,r,i,a,l,o){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var s=e.x,u=e.y;if(null!=s)if(M(s-n)+M(u-r)<.01)x(e,t,n,r,i,a,l,o);else{var c=e.point;e.x=e.y=e.point=null,x(e,c,s,u,i,a,l,o),x(e,t,n,r,i,a,l,o)}else e.x=n,e.y=r,e.point=t}else x(e,t,n,r,i,a,l,o)}function x(e,t,n,r,i,a,l,o){var s=.5*(i+l),u=.5*(a+o),c=n>=s,d=r>=u,f=d<<1|c;e.leaf=!1,e=e.nodes[f]||(e.nodes[f]={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){K(C,e,+g(e,++d),+m(e,d),h,p,v,y)}}),c?i=s:l=s,d?a=u:o=u,K(e,t,n,r,i,a,l,o)}b>k?y=p+b:v=h+k;var C={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){K(C,e,+g(e,++d),+m(e,d),h,p,v,y)}};if(C.visit=function(e){!function e(t,n,r,i,a,l){if(!t(n,r,i,a,l)){var o=.5*(r+a),s=.5*(i+l),u=n.nodes;u[0]&&e(t,u[0],r,i,o,s),u[1]&&e(t,u[1],o,i,a,s),u[2]&&e(t,u[2],r,s,o,l),u[3]&&e(t,u[3],o,s,a,l)}}(e,C,h,p,v,y)},C.find=function(e){return function(e,t,n,r,i,a,l){var o,s=1/0;return function e(u,c,d,f,h){if(!(c>a||d>l||f=b)<<1|t>=T,k=M+4;M=0&&!(n=a.interpolators[r](e,t)););return n}function Xi(e,t){var n,r=[],i=[],a=e.length,l=t.length,o=Math.min(e.length,t.length);for(n=0;n=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function aa(e){return 1-Math.cos(e*Se)}function la(e){return Math.pow(2,10*(e-1))}function oa(e){return 1-Math.sqrt(1-e*e)}function sa(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function ua(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function ca(e){var t,n,r,i=[e.a,e.b],a=[e.c,e.d],l=fa(i),o=da(i,a),s=fa(((t=a)[0]+=(r=-o)*(n=i)[0],t[1]+=r*n[1],t))||0;i[0]*a[1]=0?e.slice(0,n):e,i=n>=0?e.slice(n+1):"in";return r=Ji.get(r)||Zi,i=Qi.get(i)||W,t=i(r.apply(null,l.call(arguments,1))),function(e){return e<=0?0:e>=1?1:t(e)}},a.interpolateHcl=function(e,t){e=a.hcl(e),t=a.hcl(t);var n=e.h,r=e.c,i=e.l,l=t.h-n,o=t.c-r,s=t.l-i;isNaN(o)&&(o=0,r=isNaN(r)?t.c:r);isNaN(l)?(l=0,n=isNaN(n)?t.h:n):l>180?l-=360:l<-180&&(l+=360);return function(e){return Ze(n+l*e,r+o*e,i+s*e)+""}},a.interpolateHsl=function(e,t){e=a.hsl(e),t=a.hsl(t);var n=e.h,r=e.s,i=e.l,l=t.h-n,o=t.s-r,s=t.l-i;isNaN(o)&&(o=0,r=isNaN(r)?t.s:r);isNaN(l)?(l=0,n=isNaN(n)?t.h:n):l>180?l-=360:l<-180&&(l+=360);return function(e){return Ue(n+l*e,r+o*e,i+s*e)+""}},a.interpolateLab=function(e,t){e=a.lab(e),t=a.lab(t);var n=e.l,r=e.a,i=e.b,l=t.l-n,o=t.a-r,s=t.b-i;return function(e){return it(n+l*e,r+o*e,i+s*e)+""}},a.interpolateRound=ua,a.transform=function(e){var t=s.createElementNS(a.ns.prefix.svg,"g");return(a.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new ca(n?n.matrix:ha)})(e)},ca.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ha={a:1,b:0,c:0,d:1,e:0,f:0};function pa(e){return e.length?e.pop()+",":""}function va(e,t){var n=[],r=[];return e=a.transform(e),t=a.transform(t),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:Vi(e[0],t[0])},{i:i-2,x:Vi(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}(e.translate,t.translate,n,r),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(pa(n)+"rotate(",null,")")-2,x:Vi(e,t)})):t&&n.push(pa(n)+"rotate("+t+")")}(e.rotate,t.rotate,n,r),function(e,t,n,r){e!==t?r.push({i:n.push(pa(n)+"skewX(",null,")")-2,x:Vi(e,t)}):t&&n.push(pa(n)+"skewX("+t+")")}(e.skew,t.skew,n,r),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push(pa(n)+"scale(",null,",",null,")");r.push({i:i-4,x:Vi(e[0],t[0])},{i:i-2,x:Vi(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(pa(n)+"scale("+t+")")}(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,i=-1,a=r.length;++i0?n=t:(e.c=null,e.t=NaN,e=null,s.end({type:"end",alpha:n=0})):t>0&&(s.start({type:"start",alpha:n=t}),e=wt(o.tick)),o):n},o.start=function(){var e,t,n,a=g.length,s=m.length,c=u[0],p=u[1];for(e=0;e=0;)n.push(i[r])}function La(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(a=e.children)&&(i=a.length))for(var i,a,l=-1;++l=0;)l.push(c=u[s]),c.parent=a,c.depth=a.depth+1;n&&(a.value=0),a.children=u}else n&&(a.value=+n.call(r,a,a.depth)||0),delete a.children;return La(i,function(t){var r,i;e&&(r=t.children)&&r.sort(e),n&&(i=t.parent)&&(i.value+=t.value)}),o}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(wa(e,function(e){e.children&&(e.value=0)}),La(e,function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)})),e},r},a.layout.partition=function(){var e=a.layout.hierarchy(),t=[1,1];function n(n,r){var i=e.call(this,n,r);return function e(t,n,r,i){var a=t.children;if(t.x=n,t.y=t.depth*i,t.dx=r,t.dy=i,a&&(l=a.length)){var l,o,s,u=-1;for(r=t.value?r/t.value:0;++uo&&(o=r),l.push(r)}for(n=0;ni&&(r=n,i=t);return r}function Fa(e){return e.reduce($a,0)}function $a(e,t){return e+t[1]}function Va(e,t){return Ha(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Ha(e,t){for(var n=-1,r=+e[0],i=(e[1]-r)/t,a=[];++n<=t;)a[n]=i*n+r;return a}function qa(e){return[a.min(e),a.max(e)]}function Ua(e,t){return e.value-t.value}function Ya(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function Xa(e,t){e._pack_next=t,t._pack_prev=e}function Za(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r+t.r;return.999*i*i>n*n+r*r}function Ja(e){if((t=e.children)&&(s=t.length)){var t,n,r,i,a,l,o,s,u=1/0,c=-1/0,d=1/0,f=-1/0;if(t.forEach(Qa),(n=t[0]).x=-n.r,n.y=0,_(n),s>1&&((r=t[1]).x=r.r,r.y=0,_(r),s>2))for(tl(n,r,i=t[2]),_(i),Ya(n,i),n._pack_prev=i,Ya(i,r),r=n._pack_next,a=3;a0)for(l=-1;++l=d[0]&&s<=d[1]&&((o=u[a.bisect(f,s,1,p)-1]).y+=v,o.push(i[l]));return u}return i.value=function(e){return arguments.length?(t=e,i):t},i.range=function(e){return arguments.length?(n=Tt(e),i):n},i.bins=function(e){return arguments.length?(r="number"==typeof e?function(t){return Ha(t,e)}:Tt(e),i):r},i.frequency=function(t){return arguments.length?(e=!!t,i):e},i},a.layout.pack=function(){var e,t=a.layout.hierarchy().sort(Ua),n=0,r=[1,1];function i(i,a){var l=t.call(this,i,a),o=l[0],s=r[0],u=r[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(o.x=o.y=0,La(o,function(e){e.r=+c(e.value)}),La(o,Ja),n){var d=n*(e?1:Math.max(2*o.r/s,2*o.r/u))/2;La(o,function(e){e.r+=d}),La(o,Ja),La(o,function(e){e.r-=d})}return function e(t,n,r,i){var a=t.children;t.x=n+=i*t.x;t.y=r+=i*t.y;t.r*=i;if(a)for(var l=-1,o=a.length;++lh.x&&(h=e),e.depth>p.depth&&(p=e)});var v=t(f,h)/2-f.x,y=n[0]/(h.x+t(h,f)/2+v),g=n[1]/(p.depth||1);wa(c,function(e){e.x=(e.x+v)*y,e.y=e.depth*g})}return u}function l(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n.length){!function(e){var t,n=0,r=0,i=e.children,a=i.length;for(;--a>=0;)(t=i[a]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a=e,l=e,o=n,s=a.parent.children[0],u=a.m,c=l.m,d=o.m,f=s.m;o=il(o),a=rl(a),o&&a;)s=rl(s),(l=il(l)).a=e,(i=o.z+d-a.z-u+t(o._,a._))>0&&(al(ll(o,e,r),e,i),u+=i,c+=i),d+=o.m,u+=a.m,f+=s.m,c+=l.m;o&&!il(l)&&(l.t=o,l.m+=d-c),a&&!rl(s)&&(s.t=a,s.m+=u-f,r=e)}return r}(e,i,e.parent.A||r[0])}function o(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=n[0],e.y=e.depth*n[1]}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(r=null==(n=e)?s:null,i):r?null:n},i.nodeSize=function(e){return arguments.length?(r=null==(n=e)?null:s,i):r?n:null},Aa(i,e)},a.layout.cluster=function(){var e=a.layout.hierarchy().sort(null).value(null),t=nl,n=[1,1],r=!1;function i(i,l){var o,s=e.call(this,i,l),u=s[0],c=0;La(u,function(e){var n=e.children;n&&n.length?(e.x=function(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}(n),e.y=function(e){return 1+a.max(e,function(e){return e.y})}(n)):(e.x=o?c+=t(e,o):0,e.y=0,o=e)});var d=function e(t){var n=t.children;return n&&n.length?e(n[0]):t}(u),f=function e(t){var n,r=t.children;return r&&(n=r.length)?e(r[n-1]):t}(u),h=d.x-t(d,f)/2,p=f.x+t(f,d)/2;return La(u,r?function(e){e.x=(e.x-u.x)*n[0],e.y=(u.y-e.y)*n[1]}:function(e){e.x=(e.x-h)/(p-h)*n[0],e.y=(1-(u.y?e.y/u.y:1))*n[1]}),s}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(r=null==(n=e),i):r?null:n},i.nodeSize=function(e){return arguments.length?(r=null!=(n=e),i):r?n:null},Aa(i,e)},a.layout.treemap=function(){var e,t=a.layout.hierarchy(),n=Math.round,r=[1,1],i=null,l=ol,o=!1,s="squarify",u=.5*(1+Math.sqrt(5));function c(e,t){for(var n,r,i=-1,a=e.length;++i0;)o.push(n=u[i-1]),o.area+=n.area,"squarify"!==s||(r=h(o,v))<=f?(u.pop(),f=r):(o.area-=o.pop().area,p(o,v,a,!1),v=Math.min(a.dx,a.dy),o.length=o.area=0,f=1/0);o.length&&(p(o,v,a,!0),o.length=o.area=0),t.forEach(d)}}function f(e){var t=e.children;if(t&&t.length){var n,r=l(e),i=t.slice(),a=[];for(c(i,r.dx*r.dy/e.value),a.area=0;n=i.pop();)a.push(n),a.area+=n.area,null!=n.z&&(p(a,n.z?r.dx:r.dy,r,!i.length),a.length=a.area=0);t.forEach(f)}}function h(e,t){for(var n,r=e.area,i=0,a=1/0,l=-1,o=e.length;++li&&(i=n));return t*=t,(r*=r)?Math.max(t*i*u/r,r/(t*a*u)):1/0}function p(e,t,r,i){var a,l=-1,o=e.length,s=r.x,u=r.y,c=t?n(e.area/t):0;if(t==r.dx){for((i||c>r.dy)&&(c=r.dy);++lr.dx)&&(c=r.dx);++l1);return e+t*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=a.random.normal.apply(a,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=a.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n2?vl:dl,o=i?ga:ya;return a=e(t,n,o,r),l=e(n,t,o,Yi),s}function s(e){return a(e)}s.invert=function(e){return l(e)};s.domain=function(e){return arguments.length?(t=e.map(Number),o()):t};s.range=function(e){return arguments.length?(n=e,o()):n};s.rangeRound=function(e){return s.range(e).interpolate(ua)};s.clamp=function(e){return arguments.length?(i=e,o()):i};s.interpolate=function(e){return arguments.length?(r=e,o()):r};s.ticks=function(e){return _l(t,e)};s.tickFormat=function(e,n){return Tl(t,e,n)};s.nice=function(e){return gl(t,e),o()};s.copy=function(){return e(t,n,r,i)};return o()}([0,1],[0,1],Yi,!1)};var bl={s:1,g:1,p:1,r:1,e:1};function Ml(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}a.scale.log=function(){return function e(t,n,r,i){function l(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(n)}function o(e){return r?Math.pow(n,e):-Math.pow(n,-e)}function s(e){return t(l(e))}s.invert=function(e){return o(t.invert(e))};s.domain=function(e){return arguments.length?(r=e[0]>=0,t.domain((i=e.map(Number)).map(l)),s):i};s.base=function(e){return arguments.length?(n=+e,t.domain(i.map(l)),s):n};s.nice=function(){var e=fl(i.map(l),r?Math:Kl);return t.domain(e),i=e.map(o),s};s.ticks=function(){var e=ul(i),t=[],a=e[0],s=e[1],u=Math.floor(l(a)),c=Math.ceil(l(s)),d=n%1?2:n;if(isFinite(c-u)){if(r){for(;u0;f--)t.push(o(u)*f);for(u=0;t[u]s;c--);t=t.slice(u,c)}return t};s.tickFormat=function(e,t){if(!arguments.length)return kl;arguments.length<2?t=kl:"function"!=typeof t&&(t=a.format(t));var r=Math.max(1,n*e/s.ticks().length);return function(e){var i=e/o(Math.round(l(e)));return i*n0?r[e-1]:t[0],ed?0:1;if(u=Be)return s(u,h)+(o?s(o,1-h):"")+"Z";var p,v,y,g,m,_,T,b,M,k,K,x,C=0,A=0,w=[];if((g=(+l.apply(this,arguments)||0)/2)&&(y=r===Bl?Math.sqrt(o*o+u*u):+r.apply(this,arguments),h||(A*=-1),u&&(A=Re(y/u*Math.sin(g))),o&&(C=Re(y/o*Math.sin(g)))),u){m=u*Math.cos(c+A),_=u*Math.sin(c+A),T=u*Math.cos(d-A),b=u*Math.sin(d-A);var L=Math.abs(d-c-2*A)<=Le?0:1;if(A&&Pl(m,_,T,b)===h^L){var D=(c+d)/2;m=u*Math.cos(D),_=u*Math.sin(D),T=b=null}}else m=_=0;if(o){M=o*Math.cos(d-C),k=o*Math.sin(d-C),K=o*Math.cos(c+C),x=o*Math.sin(c+C);var B=Math.abs(c-d+2*C)<=Le?0:1;if(C&&Pl(M,k,K,x)===1-h^B){var S=(c+d)/2;M=o*Math.cos(S),k=o*Math.sin(S),K=x=null}}else M=k=0;if(f>Ae&&(p=Math.min(Math.abs(u-o)/2,+n.apply(this,arguments)))>.001){v=o0?0:1}function Rl(e,t,n,r,i){var a=e[0]-t[0],l=e[1]-t[1],o=(i?r:-r)/Math.sqrt(a*a+l*l),s=o*l,u=-o*a,c=e[0]+s,d=e[1]+u,f=t[0]+s,h=t[1]+u,p=(c+f)/2,v=(d+h)/2,y=f-c,g=h-d,m=y*y+g*g,_=n-r,T=c*h-f*d,b=(g<0?-1:1)*Math.sqrt(Math.max(0,_*_*m-T*T)),M=(T*g-y*b)/m,k=(-T*y-g*b)/m,K=(T*g+y*b)/m,x=(-T*y+g*b)/m,C=M-p,A=k-v,w=K-p,L=x-v;return C*C+A*A>w*w+L*L&&(M=K,k=x),[[M-s,k-u],[M*n/_,k*n/_]]}function El(e){var t=ri,n=ii,r=Zn,i=Il,a=i.key,l=.7;function o(a){var o,s=[],u=[],c=-1,d=a.length,f=Tt(t),h=Tt(n);function p(){s.push("M",i(e(u),l))}for(;++c1&&i.push("H",r[0]);return i.join("")},"step-before":Fl,"step-after":$l,basis:ql,"basis-open":function(e){if(e.length<4)return Il(e);var t,n=[],r=-1,i=e.length,a=[0],l=[0];for(;++r<3;)t=e[r],a.push(t[0]),l.push(t[1]);n.push(Ul(Zl,a)+","+Ul(Zl,l)),--r;for(;++r9&&(i=3*t/Math.sqrt(i),l[o]=i*n,l[o+1]=i*r));o=-1;for(;++o<=s;)i=(e[Math.min(s,o+1)][0]-e[Math.max(0,o-1)][0])/(6*(1+l[o]*l[o])),a.push([i||0,l[o]*i||0]);return a}(e))}});function Il(e){return e.length>1?e.join("L"):e+"Z"}function Nl(e){return e.join("L")+"Z"}function Fl(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t1){o=t[1],a=e[s],s++,r+="C"+(i[0]+l[0])+","+(i[1]+l[1])+","+(a[0]-o[0])+","+(a[1]-o[1])+","+a[0]+","+a[1];for(var u=2;uLe)+",1 "+t}function s(e,t,n,r){return"Q 0,0 "+r}return a.radius=function(e){return arguments.length?(n=Tt(e),a):n},a.source=function(t){return arguments.length?(e=Tt(t),a):e},a.target=function(e){return arguments.length?(t=Tt(e),a):t},a.startAngle=function(e){return arguments.length?(r=Tt(e),a):r},a.endAngle=function(e){return arguments.length?(i=Tt(e),a):i},a},a.svg.diagonal=function(){var e=Fr,t=$r,n=ro;function r(r,i){var a=e.call(this,r,i),l=t.call(this,r,i),o=(a.y+l.y)/2,s=[a,{x:a.x,y:o},{x:l.x,y:o},l];return"M"+(s=s.map(n))[0]+"C"+s[1]+" "+s[2]+" "+s[3]}return r.source=function(t){return arguments.length?(e=Tt(t),r):e},r.target=function(e){return arguments.length?(t=Tt(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},a.svg.diagonal.radial=function(){var e=a.svg.diagonal(),t=ro,n=e.projection;return e.projection=function(e){return arguments.length?n(function(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-Se;return[n*Math.cos(r),n*Math.sin(r)]}}(t=e)):t},e},a.svg.symbol=function(){var e=ao,t=io;function n(n,r){return(oo.get(e.call(this,n,r))||lo)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=Tt(t),n):e},n.size=function(e){return arguments.length?(t=Tt(e),n):t},n};var oo=a.map({circle:lo,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*uo)),n=t*uo;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/so),n=t*so/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/so),n=t*so/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});a.svg.symbolTypes=oo.keys();var so=Math.sqrt(3),uo=Math.tan(30*ze);Z.transition=function(e){for(var t,n,r=po||++go,i=To(e),a=[],l=vo||{time:Date.now(),ease:ia,delay:0,duration:250},o=-1,s=this.length;++o0;)u[--f].call(e,l);if(a>=1)return d.event&&d.event.end.call(e,e.__data__,t),--c.count?delete c[r]:delete e[n],1}d||(a=i.time,l=wt(function(e){var t=d.delay;if(l.t=t+a,t<=e)return f(e-t);l.c=f},0,a),d=c[r]={tween:new K,time:a,timer:l,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++c.count)}yo.call=Z.call,yo.empty=Z.empty,yo.node=Z.node,yo.size=Z.size,a.transition=function(e,t){return e&&e.transition?po?e.transition(t):e:a.selection().transition(e)},a.transition.prototype=yo,yo.select=function(e){var t,n,r,i=this.id,a=this.namespace,l=[];e=J(e);for(var o=-1,s=this.length;++orect,.s>rect").attr("width",l[1]-l[0])}function v(e){e.select(".extent").attr("y",o[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",o[1]-o[0])}function y(){var d,y,g=this,m=a.select(a.event.target),_=n.of(g,arguments),T=a.select(g),b=m.datum(),M=!/^(n|s)$/.test(b)&&r,k=!/^(e|w)$/.test(b)&&i,K=m.classed("extent"),x=ke(g),C=a.mouse(g),A=a.select(c(g)).on("keydown.brush",function(){32==a.event.keyCode&&(K||(d=null,C[0]-=l[1],C[1]-=o[1],K=2),N())}).on("keyup.brush",function(){32==a.event.keyCode&&2==K&&(C[0]+=l[1],C[1]+=o[1],K=0,N())});if(a.event.changedTouches?A.on("touchmove.brush",D).on("touchend.brush",S):A.on("mousemove.brush",D).on("mouseup.brush",S),T.interrupt().selectAll("*").interrupt(),K)C[0]=l[0]-C[0],C[1]=o[0]-C[1];else if(b){var w=+/w$/.test(b),L=+/^n/.test(b);y=[l[1-w]-C[0],o[1-L]-C[1]],C[0]=l[w],C[1]=o[L]}else a.event.altKey&&(d=C.slice());function D(){var e=a.mouse(g),t=!1;y&&(e[0]+=y[0],e[1]+=y[1]),K||(a.event.altKey?(d||(d=[(l[0]+l[1])/2,(o[0]+o[1])/2]),C[0]=l[+(e[0]1?{floor:function(t){for(;o(t=e.floor(t));)t=zo(t-1);return t},ceil:function(t){for(;o(t=e.ceil(t));)t=zo(+t+1);return t}}:e))},r.ticks=function(e,t){var n=ul(r.domain()),a=null==e?i(n,10):"number"==typeof e?i(n,e):!e.range&&[{range:e},t];return a&&(e=a[0],t=a[1]),e.range(n[0],zo(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return So(e.copy(),t,n)},yl(r,e)}function zo(e){return new Date(e)}wo.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Bo:Do,Bo.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},Bo.toString=Do.toString,Pt.second=It(function(e){return new Rt(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),Pt.seconds=Pt.second.range,Pt.seconds.utc=Pt.second.utc.range,Pt.minute=It(function(e){return new Rt(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),Pt.minutes=Pt.minute.range,Pt.minutes.utc=Pt.minute.utc.range,Pt.hour=It(function(e){var t=e.getTimezoneOffset()/60;return new Rt(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),Pt.hours=Pt.hour.range,Pt.hours.utc=Pt.hour.utc.range,Pt.month=It(function(e){return(e=Pt.day(e)).setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),Pt.months=Pt.month.range,Pt.months.utc=Pt.month.utc.range;var Go=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Wo=[[Pt.second,1],[Pt.second,5],[Pt.second,15],[Pt.second,30],[Pt.minute,1],[Pt.minute,5],[Pt.minute,15],[Pt.minute,30],[Pt.hour,1],[Pt.hour,3],[Pt.hour,6],[Pt.hour,12],[Pt.day,1],[Pt.day,2],[Pt.week,1],[Pt.month,1],[Pt.month,3],[Pt.year,1]],Oo=wo.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Zn]]),Po={range:function(e,t,n){return a.range(Math.ceil(e/n)*n,+t,n).map(zo)},floor:W,ceil:W};Wo.year=Pt.year,Pt.scale=function(){return So(a.scale.linear(),Wo,Oo)};var Ro=Wo.map(function(e){return[e[0].utc,e[1]]}),Eo=Lo.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Zn]]);function jo(e){return JSON.parse(e.responseText)}function Io(e){var t=s.createRange();return t.selectNode(s.body),t.createContextualFragment(e.responseText)}Ro.year=Pt.year.utc,Pt.scale.utc=function(){return So(a.scale.linear(),Ro,Eo)},a.text=bt(function(e){return e.responseText}),a.json=function(e,t){return Mt(e,"application/json",jo,t)},a.html=function(e,t){return Mt(e,"text/html",Io,t)},a.xml=bt(function(e){return e.responseXML}),this.d3=a,void 0===(i="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=i)}()},function(e,t,n){"use strict";e.exports=function(e){var t=typeof e;if("string"===t){var n=e;if(0===(e=+e)&&function(e){for(var t,n=e.length,r=0;r13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}(n))return!1}else if("number"!==t)return!1;return e-e<1}},function(e,t,n){"use strict";var r=n(21),i=n(2),a=e.exports={},l=n(24);a.defaults=l.defaults;var o=a.defaultLine=l.defaultLine;a.lightLine=l.lightLine;var s=a.background=l.background;function u(e){if(i(e)||"string"!=typeof e)return e;var t=e.trim();if("rgb"!==t.substr(0,3))return e;var n=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return e;var r=n[1].trim().split(/\s*[\s,]\s*/),a="a"===t.charAt(3)&&4===r.length;if(!a&&3!==r.length)return e;for(var l=0;l=0))return e;if(3===l)r[l]>1&&(r[l]=1);else if(r[l]>=1)return e}var o=Math.round(255*r[0])+", "+Math.round(255*r[1])+", "+Math.round(255*r[2]);return a?"rgba("+o+", "+r[3]+")":"rgb("+o+")"}a.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},a.rgb=function(e){return a.tinyRGB(r(e))},a.opacity=function(e){return e?r(e).getAlpha():0},a.addOpacity=function(e,t){var n=r(e).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+t+")"},a.combine=function(e,t){var n=r(e).toRgb();if(1===n.a)return r(e).toRgbString();var i=r(t||s).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},l={r:a.r*(1-n.a)+n.r*n.a,g:a.g*(1-n.a)+n.g*n.a,b:a.b*(1-n.a)+n.b*n.a};return r(l).toRgbString()},a.contrast=function(e,t,n){var i=r(e);return 1!==i.getAlpha()&&(i=r(a.combine(e,s))),(i.isDark()?t?i.lighten(t):s:n?i.darken(n):o).toString()},a.stroke=function(e,t){var n=r(t);e.style({stroke:a.tinyRGB(n),"stroke-opacity":n.getAlpha()})},a.fill=function(e,t){var n=r(t);e.style({fill:a.tinyRGB(n),"fill-opacity":n.getAlpha()})},a.clean=function(e){if(e&&"object"==typeof e){var t,n,r,i,l=Object.keys(e);for(t=0;t2e-6||((n-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},_.getAutoRange=function(e){var t,n=[],r=e._min[0].val,i=e._max[0].val;for(t=1;t0&&d>0&&f/d>h&&(u=o,c=s,h=f/d);if(r===i){var y=r-1,g=r+1;n="tozero"===e.rangemode?r<0?[y,0]:[0,g]:"nonnegative"===e.rangemode?[Math.max(0,y),Math.max(0,g)]:[y,g]}else h&&("linear"!==e.type&&"-"!==e.type||("tozero"===e.rangemode?(u.val>=0&&(u={val:0,pad:0}),c.val<=0&&(c={val:0,pad:0})):"nonnegative"===e.rangemode&&(u.val-h*u.pad<0&&(u={val:0,pad:0}),c.val<0&&(c={val:1,pad:0})),h=(c.val-u.val)/(e._length-u.pad-c.pad)),n=[u.val-h*u.pad,c.val+h*c.pad]);return n[0]===n[1]&&("tozero"===e.rangemode?n=n[0]<0?[n[0],0]:n[0]>0?[0,n[0]]:[0,1]:(n=[n[0]-1,n[0]+1],"nonnegative"===e.rangemode&&(n[0]=Math.max(0,n[0])))),p&&n.reverse(),l.simpleMap(n,e.l2r||Number)},_.doAutoRange=function(e){e._length||e.setScale();var t=e._min&&e._max&&e._min.length&&e._max.length;if(e.autorange&&t){e.range=_.getAutoRange(e),e._r=e.range.slice(),e._rl=l.simpleMap(e._r,e.r2l);var n=e._input;n.range=e.range.slice(),n.autorange=e.autorange}},_.saveRangeInitial=function(e,t){for(var n=_.list(e,"",!0),r=!1,i=0;i0?n.ppadplus:n.ppadminus)||n.ppad||0),b=K((e._m>0?n.ppadminus:n.ppadplus)||n.ppad||0),M=K(n.vpadplus||n.vpad),k=K(n.vpadminus||n.vpad);for(r=0;r<6;r++)x(r);for(r=g-1;r>5;r--)x(r)}function K(e){if(Array.isArray(e))return function(t){return Math.max(Number(e[t]||0),0)};var t=Math.max(Number(e||0),0);return function(){return t}}function x(n){if(s=t[n],i(s)){if(d=T(n)+m,h=b(n)+m,v=s-k(n),y=s+M(n),"log"===e.type&&v=h?p=!1:o.val>=u&&o.pad<=h&&(e._min.splice(a,1),a--);p&&e._min.push({val:u,pad:_&&0===u?0:h})}if(r(c)){for(p=!0,a=0;a=c&&o.pad>=d?p=!1:o.val<=c&&o.pad<=d&&(e._max.splice(a,1),a--);p&&e._max.push({val:c,pad:_&&0===c?0:d})}}function r(e){return i(e)&&Math.abs(e).3*f||c(r)||c(a))){var h=n.dtick/2;e+=e+h.8){var o=Number(n.substr(1));a.exactYears>.8&&o%12==0?e=_.tickIncrement(e,"M6","reverse")+1.5*v:a.exactMonths>.8?e=_.tickIncrement(e,"M1","reverse")+15.5*v:e-=v/2;var s=_.tickIncrement(e,n);if(s<=r)return s}return e}(y,e,s.dtick,u,a)),p=y;p<=c;)p=_.tickIncrement(p,s.dtick,!1,a);return{start:t.c2r(y,0,a),end:t.c2r(p,0,a),size:s.dtick}},_.calcTicks=function(e){var t=l.simpleMap(e.range,e.r2l);if("auto"===e.tickmode||!e.dtick){var n,r=e.nticks;r||("category"===e.type?(n=e.tickfont?1.2*(e.tickfont.size||12):15,r=e._length/n):(n="y"===e._id.charAt(0)?40:80,r=l.constrain(e._length/n,4,9)+1)),"array"===e.tickmode&&(r*=100),_.autoTicks(e,Math.abs(t[1]-t[0])/r),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}if(e.tick0||(e.tick0="date"===e.type?"2000-01-01":0),L(e),"array"===e.tickmode)return function(e){var t,n,r=e.tickvals,i=e.ticktext,a=new Array(r.length),o=l.simpleMap(e.range,e.r2l),s=1.0001*o[0]-1e-4*o[1],u=1.0001*o[1]-1e-4*o[0],c=Math.min(s,u),d=Math.max(s,u),f=0;Array.isArray(i)||(i=[]);var h="category"===e.type?e.d2l_noadd:e.d2l;"log"===e.type&&"L"!==String(e.dtick).charAt(0)&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(n=0;nc&&t=o:s<=o)&&(a.push(s),!(a.length>1e3));s=_.tickIncrement(s,e.dtick,i,e.calendar));e._tmax=a[a.length-1],e._prevDateHead="",e._inCalcTicks=!0;for(var u=new Array(a.length),c=0;c10||"01-01"!==r.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=v&&a<=10||t>=15*v)e._tickround="d";else if(t>=g&&a<=16||t>=y)e._tickround="M";else if(t>=m&&a<=19||t>=g)e._tickround="S";else{var l=e.l2r(n+t).replace(/^-/,"").length;e._tickround=Math.max(a,l)-20}}else if(i(t)||"L"===t.charAt(0)){var o=e.range.map(e.r2d||Number);i(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),u=Math.floor(Math.log(s)/Math.LN10+.01);Math.abs(u)>3&&("SI"===e.exponentformat||"B"===e.exponentformat?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}function D(e,t,n){var r=e.tickfont||{};return{x:t,dx:0,dy:0,text:n||"",fontSize:r.size,font:r.family,fontColor:r.color}}_.autoTicks=function(e,t){var n;if("date"===e.type){e.tick0=l.dateTick0(e.calendar);var r=2*t;r>h?(t/=h,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick="M"+12*w(t,n,M)):r>p?(t/=p,e.dtick="M"+w(t,1,k)):r>v?(e.dtick=w(t,v,x),e.tick0=l.dateTick0(e.calendar,!0)):r>y?e.dtick=w(t,y,k):r>g?e.dtick=w(t,g,K):r>m?e.dtick=w(t,m,K):(n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick=w(t,n,M))}else if("log"===e.type){e.tick0=0;var a=l.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(a[1]-a[0])<1){var o=1.5*Math.abs((a[1]-a[0])/t);t=Math.abs(Math.pow(10,a[1])-Math.pow(10,a[0]))/o,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick="L"+w(t,n,M)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):(e.tick0=0,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick=w(t,n,M));if(0===e.dtick&&(e.dtick=1),!i(e.dtick)&&"string"!=typeof e.dtick){var s=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(s)}},_.tickIncrement=function(e,t,n,a){var o=n?-1:1;if(i(t))return e+o*t;var s=t.charAt(0),u=o*Number(t.substr(1));if("M"===s)return l.incrementMonth(e,u,a);if("L"===s)return Math.log(Math.pow(10,e)+u)/Math.LN10;if("D"===s){var c="D2"===t?A:C,d=e+.01*o,f=l.roundUp(l.mod(d,1),c,n);return Math.floor(d)+Math.log(r.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(t)},_.tickFirst=function(e){var t=e.r2l||Number,n=l.simpleMap(e.range,t),a=n[1]"+s,e._prevDateHead=s));t.text=u}(e,o,n,u):"log"===e.type?function(e,t,n,r,a){var o=e.dtick,s=t.x;!r||"string"==typeof o&&"L"===o.charAt(0)||(o="L3");if(e.tickformat||"string"==typeof o&&"L"===o.charAt(0))t.text=S(Math.pow(10,s),e,a,r);else if(i(o)||"D"===o.charAt(0)&&l.mod(s+.01,1)<.1)if(-1!==["e","E","power"].indexOf(e.exponentformat)){var u=Math.round(s);t.text=0===u?1:1===u?"10":u>1?"10"+u+"":"10−"+-u+"",t.fontSize*=1.25}else t.text=S(Math.pow(10,s),e,"","fakehover"),"D1"===o&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6);else{if("D"!==o.charAt(0))throw"unrecognized dtick "+String(o);t.text=String(Math.round(Math.pow(10,l.mod(s,1)))),t.fontSize*=.75}if("D1"===e.dtick){var c=String(t.text).charAt(0);"0"!==c&&"1"!==c||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(s<0?.5:.25)))}}(e,o,0,u,r):"category"===e.type?function(e,t){var n=e._categories[Math.round(t.x)];void 0===n&&(n="");t.text=String(n)}(e,o):function(e,t,n,r,i){"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide");t.text=S(t.x,e,i,r)}(e,o,0,u,r),e.tickprefix&&!h(e.showtickprefix)&&(o.text=e.tickprefix+o.text),e.ticksuffix&&!h(e.showticksuffix)&&(o.text+=e.ticksuffix),o};var B=["f","p","n","μ","m","","k","M","G","T"];function S(e,t,n,a){var o=e<0,s=t._tickround,u=n||t.exponentformat||"B",c=t._tickexponent,d=t.tickformat,f=t.separatethousands;if(a){var h={exponentformat:t.exponentformat,dtick:"none"===t.showexponent?t.dtick:i(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};L(h),s=(Number(h._tickround)||0)+4,c=h._tickexponent,t.hoverformat&&(d=t.hoverformat)}if(d)return r.format(d)(e).replace(/-/g,"−");var p,v=Math.pow(10,-s)/2;if("none"===u&&(c=0),(e=Math.abs(e))12||c<-15)?e+="e"+p:"E"===u?e+="E"+p:"power"===u?e+="×10"+p+"":"B"===u&&9===c?e+="B":"SI"!==u&&"B"!==u||(e+=B[c/3+5]));return o?"−"+e:e}function z(e,t){for(var n=0;n1&&t1)for(r=1;r0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=v.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=g||e>=400?0:Math.floor(Math.max(e,0))};var _={x1:1,x2:0,y1:0,y2:0},T={x1:0,x2:0,y1:1,y2:0};v.gradient=function(e,t,n,i,l,s){var c=t._fullLayout._defs.select(".gradients").selectAll("#"+n).data([i+l+s],u.identity);c.exit().remove(),c.enter().append("radial"===i?"radialGradient":"linearGradient").each(function(){var e=r.select(this);"horizontal"===i?e.attr(_):"vertical"===i&&e.attr(T),e.attr("id",n);var t=a(l),u=a(s);e.append("stop").attr({offset:"0%","stop-color":o.tinyRGB(u),"stop-opacity":u.getAlpha()}),e.append("stop").attr({offset:"100%","stop-color":o.tinyRGB(t),"stop-opacity":t.getAlpha()})}),e.style({fill:"url(#"+n+")","fill-opacity":null})},v.initGradients=function(e){var t=e._fullLayout._defs.selectAll(".gradients").data([0]);t.enter().append("g").classed("gradients",!0),t.selectAll("linearGradient,radialGradient").remove()},v.singlePointStyle=function(e,t,n,r,i,a){var s=n.marker;!function(e,t,n,r,i,a,s,u){if(l.traceIs(n,"symbols")){var c=p(n);t.attr("d",function(e){var t;t="various"===e.ms||"various"===a.size?3:h.isBubble(n)?c(e.ms):(a.size||6)/2,e.mrc=t;var r=v.symbolNumber(e.mx||a.symbol)||0,i=r%100;return e.om=r%200>=100,v.symbolFuncs[i](t)+(r>=200?m:"")}).style("opacity",function(e){return(e.mo+1||a.opacity+1)-1})}var d,f,y,g=!1;if(e.so?(y=s.outlierwidth,f=s.outliercolor,d=a.outliercolor):(y=(e.mlw+1||s.width+1||(e.trace?e.trace.marker.line.width:0)+1)-1,f="mlc"in e?e.mlcc=i(e.mlc):Array.isArray(s.color)?o.defaultLine:s.color,Array.isArray(a.color)&&(d=o.defaultLine,g=!0),d="mc"in e?e.mcc=r(e.mc):a.color||"rgba(0,0,0,0)"),e.om)t.call(o.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{t.style("stroke-width",y+"px");var _=a.gradient,T=e.mgt;if(T?g=!0:T=_&&_.type,T&&"none"!==T){var b=e.mgc;b?g=!0:b=_.color;var M="g"+u._fullLayout._uid+"-"+n.uid;g&&(M+="-"+e.i),t.call(v.gradient,u,M,T,d,b)}else t.call(o.fill,d);y&&t.call(o.stroke,f)}}(e,t,n,r,i,s,s.line,a)},v.pointStyle=function(e,t,n){if(e.size()){var i=t.marker,a=v.tryColorscale(i,""),l=v.tryColorscale(i,"line");e.each(function(e){v.singlePointStyle(e,r.select(this),t,a,l,n)})}},v.tryColorscale=function(e,t){var n=t?u.nestedProperty(e,t).get():e,r=n.colorscale,i=n.color;return r&&Array.isArray(i)?s.makeColorScaleFunc(s.extractScale(r,n.cmin,n.cmax)):u.identity};var b={start:1,end:-1,middle:0,bottom:1,top:-1};v.textPointStyle=function(e,t,n){e.each(function(e){var a=r.select(this),l=e.tx||t.text;if(l&&!Array.isArray(l)){var o=e.tp||t.textposition,s=-1!==o.indexOf("top")?"top":-1!==o.indexOf("bottom")?"bottom":"middle",u=-1!==o.indexOf("left")?"end":-1!==o.indexOf("right")?"start":"middle",d=e.ts||t.textfont.size,h=e.mrc?e.mrc/.8+1:0;d=i(d)&&d>0?d:0,a.call(v.font,e.tf||t.textfont.family,d,e.tc||t.textfont.color).attr("text-anchor",u).text(l).call(c.convertToTspans,n);var p=r.select(this.parentNode),y=(c.lineCount(a)-1)*f+1,g=b[u]*h,m=.75*d+b[s]*h+(b[s]-1)*y*d/2;p.attr("transform","translate("+g+","+m+")")}else a.remove()})};var M=.5;function k(e,t,n,i){var a=e[0]-t[0],l=e[1]-t[1],o=n[0]-t[0],s=n[1]-t[1],u=Math.pow(a*a+l*l,M/2),c=Math.pow(o*o+s*s,M/2),d=(c*c*a-u*u*o)*i,f=(c*c*l-u*u*s)*i,h=3*c*(u+c),p=3*u*(u+c);return[[r.round(t[0]+(h&&d/h),2),r.round(t[1]+(h&&f/h),2)],[r.round(t[0]-(p&&d/p),2),r.round(t[1]-(p&&f/p),2)]]}v.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var n,r="M"+e[0],i=[];for(n=1;n=1e4&&(v.savedBBoxes={},C=0),t&&(v.savedBBoxes[t]=y),C++,u.extendFlat({},y)},v.setClipUrl=function(e,t){if(t){var n="#"+t,i=r.select("base");i.size()&&i.attr("href")&&(n=window.location.href.split("#")[0]+n),e.attr("clip-path","url("+n+")")}else e.attr("clip-path",null)},v.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(e,t,n){return[t,n].join(" ")}).split(" ");return{x:+t[0]||0,y:+t[1]||0}},v.setTranslate=function(e,t,n){var r=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",a=e[r]("transform")||"";return t=t||0,n=n||0,a=a.replace(/(\btranslate\(.*?\);?)/,"").trim(),a=(a+=" translate("+t+", "+n+")").trim(),e[i]("transform",a),a},v.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(e,t,n){return[t,n].join(" ")}).split(" ");return{x:+t[0]||1,y:+t[1]||1}},v.setScale=function(e,t,n){var r=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",a=e[r]("transform")||"";return t=t||1,n=n||1,a=a.replace(/(\bscale\(.*?\);?)/,"").trim(),a=(a+=" scale("+t+", "+n+")").trim(),e[i]("transform",a),a},v.setPointGroupScale=function(e,t,n){var r,i,a;return t=t||1,n=n||1,i=1===t&&1===n?"":" scale("+t+","+n+")",a=/\s*sc.*/,e.each(function(){r=(this.getAttribute("transform")||"").replace(a,""),r=(r+=i).trim(),this.setAttribute("transform",r)}),i};var w=/translate\([^)]*\)\s*$/;v.setTextPointsScale=function(e,t,n){e.each(function(){var e,i=r.select(this),a=i.select("text"),l=parseFloat(a.attr("x")||0),o=parseFloat(a.attr("y")||0),s=(i.attr("transform")||"").match(w);e=1===t&&1===n?[]:["translate("+l+","+o+")","scale("+t+","+n+")","translate("+-l+","+-o+")"],s&&e.push(s),i.attr("transform",e.join(" "))})}},function(e,t,n){"use strict";t.defaultConfig=n(111),t.Plots=n(9),t.Axes=n(6),t.ModeBar=n(147),n(270)},function(e,t,n){"use strict";var r=n(1),i=n(2),a=n(8),l=n(110),o=n(4),s=n(0),u=n(3),c=n(16).BADNUM,d=e.exports={},f=n(104),h=n(160),p=s.relinkPrivateKeys;s.extendFlat(d,o),d.attributes=n(42),d.attributes.type.values=d.allTypes,d.fontAttrs=n(17),d.layoutAttributes=n(41),d.fontWeight="normal";var v=d.subplotsRegistry,y=d.transformsRegistry,g=n(30),m=n(275);function _(e,t){var n,r,i=e.trace,a=i._arrayAttrs,l={};for(n=0;n=t.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=t._paper.attr("width")-7),n.attr(a);var l=n.select(".js-link-to-tool"),o=n.select(".js-link-spacer"),s=n.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var n=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)n.on("click",function(){d.sendDataToCloud(e)});else{var r=window.location.pathname.split("/"),i=window.location.search;n.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+r[2].split(".")[0]+"/"+r[1]+i})}}(e,l),o.text(l.text()&&s.text()?" - ":"")}},d.sendDataToCloud=function(e){e.emit("plotly_beforeexport");var t=window.PLOTLYENV&&window.PLOTLYENV.BASE_URL||"https://plot.ly",n=r.select(e).append("div").attr("id","hiddenform").style("display","none"),i=n.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return i.append("input").attr({type:"text",name:"data"}).node().value=d.graphJson(e,!1,"keepdata"),i.node().submit(),n.remove(),e.emit("plotly_afterexport"),!1},d.supplyDefaults=function(e){var t,n=e._fullLayout||{},r=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[];if(e._transitionData||d.createTransitionData(e),n._initialAutoSizeIsDone){var u=n.width,c=n.height;d.supplyLayoutGlobalDefaults(i,r),i.width||(r.width=u),i.height||(r.height=c)}else{d.supplyLayoutGlobalDefaults(i,r);var f=!i.width||!i.height,h=r.autosize,v=e._context&&e._context.autosizable;f&&(h||v)?d.plotAutoSize(e,i,r):f&&d.sanitizeMargins(e),!h&&f&&(i.width=r.width,i.height=r.height)}r._initialAutoSizeIsDone=!0,r._dataLength=s.length,r._globalTransforms=(e._context||{}).globalTransforms,d.supplyDataDefaults(s,o,i,r),r._has=d._hasPlotType.bind(r);var y=r._modules;for(t=0;t0){var c=function(e){var t,n={left:0,right:0,bottom:0,top:0};if(e)for(t in e)e.hasOwnProperty(t)&&(n.left+=e[t].left||0,n.right+=e[t].right||0,n.bottom+=e[t].bottom||0,n.top+=e[t].top||0);return n}(e._boundingBoxMargins),f=c.left+c.right,h=c.bottom+c.top,p=1-2*o,v=n._container&&n._container.node?n._container.node().getBoundingClientRect():{width:n.width,height:n.height};r=Math.round(p*(v.width-f)),a=Math.round(p*(v.height-h))}else{var y=u?window.getComputedStyle(e):{};r=parseFloat(y.width)||n.width,a=parseFloat(y.height)||n.height}var g=d.layoutAttributes.width.min,m=d.layoutAttributes.height.min;r1,T=!t.height&&Math.abs(n.height-a)>1;(T||_)&&(_&&(n.width=r),T&&(n.height=a)),e._initialAutoSize||(e._initialAutoSize={width:r,height:a}),d.sanitizeMargins(n)},d.supplyLayoutModuleDefaults=function(e,t,n,r){var i,l;a.Axes.supplyLayoutDefaults(e,t,n);var s=t._basePlotModules;for(i=0;i.5*r.width&&(n.l=n.r=0),n.b+n.t>.5*r.height&&(n.b=n.t=0),r._pushmargin[t]={l:{val:n.x,size:n.l+i},r:{val:n.x,size:n.r+i},b:{val:n.y,size:n.b+i},t:{val:n.y,size:n.t+i}}}else delete r._pushmargin[t];r._replotting||d.doAutoMargin(e)}},d.doAutoMargin=function(e){var t=e._fullLayout;t._size||(t._size={}),t._pushmargin||(t._pushmargin={});var n=t._size,r=JSON.stringify(n),l=Math.max(t.margin.l||0,0),o=Math.max(t.margin.r||0,0),s=Math.max(t.margin.t||0,0),u=Math.max(t.margin.b||0,0),c=t._pushmargin;if(!1!==t.margin.autoexpand){c.base={l:{val:0,size:l},r:{val:1,size:o},t:{val:1,size:s},b:{val:0,size:u}};for(var d=Object.keys(c),f=0;fy){var K=(g*M+(k-t.width)*y)/(M-y),x=(k*(1-y)+(g-t.width)*(1-M))/(M-y);K>=0&&x>=0&&K+x>l+o&&(l=K,o=x)}}if(i(_)&&c[b].t){var C=c[b].t.val,A=c[b].t.size;if(C>m){var w=(_*C+(A-t.height)*m)/(C-m),L=(A*(1-m)+(_-t.height)*(1-C))/(C-m);w>=0&&L>=0&&w+L>u+s&&(u=w,s=L)}}}}if(n.l=Math.round(l),n.r=Math.round(o),n.t=Math.round(s),n.b=Math.round(u),n.p=Math.round(t.margin.pad),n.w=Math.round(t.width)-n.l-n.r,n.h=Math.round(t.height)-n.t-n.b,!t._replotting&&"{}"!==r&&r!==JSON.stringify(t._size))return a.plot(e)},d.graphJson=function(e,t,n,r,i){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&d.supplyDefaults(e);var a=i?e._fullData:e.data,l=i?e._fullLayout:e.layout,o=(e._transitionData||{})._frames;function u(e){if("function"==typeof e)return null;if(s.isPlainObject(e)){var t,r,i={};for(t in e)if("function"!=typeof e[t]&&-1===["_","["].indexOf(t.charAt(0))){if("keepdata"===n){if("src"===t.substr(t.length-3))continue}else if("keepstream"===n){if("string"==typeof(r=e[t+"src"])&&r.indexOf(":")>0&&!s.isPlainObject(e.stream))continue}else if("keepall"!==n&&"string"==typeof(r=e[t+"src"])&&r.indexOf(":")>0)continue;i[t]=u(e[t])}return i}return Array.isArray(e)?e.map(u):s.isJSDate(e)?s.ms2DateTimeLocal(+e):e}var c={data:(a||[]).map(function(e){var n=u(e);return t&&delete n.fit,n})};return t||(c.layout=u(l)),e.framework&&e.framework.isPolar&&(c=e.framework.getConfig()),o&&(c.frames=u(o)),"object"===r?c:JSON.stringify(c)},d.modifyFrames=function(e,t){var n,r,i,a=e._transitionData._frames,l=e._transitionData._frameHash;for(n=0;n0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){p=!0}),i.redraw&&e._transitionData._interruptCallbacks.push(function(){return a.redraw(e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var r,o,u=0,c=0;function d(){return u++,function(){var n;p||++c!==u||(n=t,e._transitionData&&(function(e){if(e)for(;e.length;)e.shift()}(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(i.redraw)return a.redraw(e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(n)))}}var f=e._fullLayout._basePlotModules,v=!1;if(n)for(o=0;ol?o:i(e)?Number(e):o:o},s.noop=n(109),s.identity=n(295),s.swapAttrs=function(e,t,n,r){n||(n="x"),r||(r="y");for(var i=0;in?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},s.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},s.simpleMap=function(e,t,n,r){for(var i=e.length,a=new Array(i),l=0;l-1||u!==1/0&&u>=Math.pow(2,n)?e(t,n,r):o},s.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={optionList:[],_newoption:function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)}};return n["_"+t]=e,n},s.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var n,r,i,a,l=e.length,o=2*l,s=2*t-1,u=new Array(s),c=new Array(l);for(n=0;n=o&&(i-=o*Math.floor(i/o)),i<0?i=-1-i:i>=l&&(i=o-1-i),a+=e[i]*u[r];c[n]=a}return c},s.syncOrAsync=function(e,t,n){var r;function i(){return s.syncOrAsync(e,t,n)}for(;e.length;)if((r=(0,e.splice(0,1)[0])(t))&&r.then)return r.then(i).then(void 0,s.promiseError);return n&&n(t)},s.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},s.noneOrAll=function(e,t,n){if(e){var r,i,a=!1,l=!0;for(r=0;r1?i+l[1]:"";if(a&&(l.length>1||o.length>4||n))for(;r.test(o);)o=o.replace(r,"$1"+a+"$2");return o+s}},function(e,t,n){var r,i;!function(){var a={version:"3.5.17"},l=[].slice,o=function(e){return l.call(e)},s=this.document;function u(e){return e&&(e.ownerDocument||e.document||e).documentElement}function c(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(s)try{o(s.documentElement.childNodes)[0].nodeType}catch(e){o=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),s)try{s.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var d=this.Element.prototype,f=d.setAttribute,h=d.setAttributeNS,p=this.CSSStyleDeclaration.prototype,v=p.setProperty;d.setAttribute=function(e,t){f.call(this,e,t+"")},d.setAttributeNS=function(e,t,n){h.call(this,e,t,n+"")},p.setProperty=function(e,t,n){v.call(this,e,t+"",n)}}function y(e,t){return et?1:e>=t?0:NaN}function g(e){return null===e?NaN:+e}function m(e){return!isNaN(e)}function _(e){return{left:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r>>1;e(t[a],n)<0?r=a+1:i=a}return r},right:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r>>1;e(t[a],n)>0?i=a:r=a+1}return r}}}a.ascending=y,a.descending=function(e,t){return te?1:t>=e?0:NaN},a.min=function(e,t){var n,r,i=-1,a=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++ir&&(n=r)}else{for(;++i=r){n=r;break}for(;++ir&&(n=r)}return n},a.max=function(e,t){var n,r,i=-1,a=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++in&&(n=r)}else{for(;++i=r){n=r;break}for(;++in&&(n=r)}return n},a.extent=function(e,t){var n,r,i,a=-1,l=e.length;if(1===arguments.length){for(;++a=r){n=i=r;break}for(;++ar&&(n=r),i=r){n=i=r;break}for(;++ar&&(n=r),i1)return l/(s-1)},a.deviation=function(){var e=a.variance.apply(this,arguments);return e?Math.sqrt(e):e};var T=_(y);function b(e){return e.length}a.bisectLeft=T.left,a.bisect=a.bisectRight=T.right,a.bisector=function(e){return _(1===e.length?function(t,n){return y(e(t),n)}:e)},a.shuffle=function(e,t,n){(a=arguments.length)<3&&(n=e.length,a<2&&(t=0));for(var r,i,a=n-t;a;)i=Math.random()*a--|0,r=e[a+t],e[a+t]=e[i+t],e[i+t]=r;return e},a.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},a.pairs=function(e){for(var t=0,n=e.length-1,r=e[0],i=new Array(n<0?0:n);t=0;)for(t=(r=e[i]).length;--t>=0;)n[--l]=r[t];return n};var M=Math.abs;function k(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function K(){this._=Object.create(null)}a.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n==1/0)throw new Error("infinite range");var r,i=[],a=function(e){var t=1;for(;e*t%1;)t*=10;return t}(M(n)),l=-1;if(e*=a,t*=a,(n*=a)<0)for(;(r=e+n*++l)>t;)i.push(r/a);else for(;(r=e+n*++l)=r.length)return t?t.call(n,a):e?a.sort(e):a;for(var s,u,c,d,f=-1,h=a.length,p=r[o++],v=new K;++f=r.length)return t;var a=[],l=i[n++];return t.forEach(function(t,r){a.push({key:t,values:e(r,n)})}),l?a.sort(function(e,t){return l(e.key,t.key)}):a}(l(a.map,e,0),0)},n.key=function(e){return r.push(e),n},n.sortKeys=function(e){return i[r.length-1]=e,n},n.sortValues=function(t){return e=t,n},n.rollup=function(e){return t=e,n},n},a.set=function(e){var t=new G;if(e)for(var n=0,r=e.length;n=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},a.event=null,a.requote=function(e){return e.replace(V,"\\$&")};var V=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,H={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function q(e){return H(e,Z),e}var U=function(e,t){return t.querySelector(e)},Y=function(e,t){return t.querySelectorAll(e)},X=function(e,t){var n=e.matches||e[P(e,"matchesSelector")];return(X=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(U=function(e,t){return Sizzle(e,t)[0]||null},Y=Sizzle,X=Sizzle.matchesSelector),a.selection=function(){return a.select(s.documentElement)};var Z=a.selection.prototype=[];function J(e){return"function"==typeof e?e:function(){return U(e,this)}}function Q(e){return"function"==typeof e?e:function(){return Y(e,this)}}Z.select=function(e){var t,n,r,i,a=[];e=J(e);for(var l=-1,o=this.length;++l=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),te.hasOwnProperty(n)?{space:te[n],local:e}:e}},Z.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return(e=a.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(ne(t,e[t]));return this}return this.each(ne(e,t))},Z.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=ae(e)).length,i=-1;if(t=n.classList){for(;++i=0;)(n=r[i])&&(a&&a!==n.nextSibling&&a.parentNode.insertBefore(n,a),a=n);return this},Z.sort=function(e){e=function(e){arguments.length||(e=y);return function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}.apply(this,arguments);for(var t=-1,n=this.length;++t0&&(e=e.slice(0,i));var s=me.get(e);function u(){var t=this[r];t&&(this.removeEventListener(e,t,t.$),delete this[r])}return s&&(e=s,l=Te),i?t?function(){var i=l(t,o(arguments));u.call(this),this.addEventListener(e,this[r]=i,i.$=n),i._=t}:u:t?j:function(){var t,n=new RegExp("^__on([^.]+)"+a.requote(e)+"$");for(var r in this)if(t=r.match(n)){var i=this[r];this.removeEventListener(t[1],i,i.$),delete this[r]}}}a.selection.enter=ve,a.selection.enter.prototype=ye,ye.append=Z.append,ye.empty=Z.empty,ye.node=Z.node,ye.call=Z.call,ye.size=Z.size,ye.select=function(e){for(var t,n,r,i,a,l=[],o=-1,s=this.length;++o=r&&(r=t+1);!(l=o[r])&&++r0?1:e<0?-1:0}function Oe(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Pe(e){return e>1?0:e<-1?Le:Math.acos(e)}function Re(e){return e>1?Se:e<-1?-Se:Math.asin(e)}function je(e){return((e=Math.exp(e))+1/e)/2}function Ee(e){return(e=Math.sin(e/2))*e}var Ie=Math.SQRT2;a.interpolateZoom=function(e,t){var n,r,i=e[0],a=e[1],l=e[2],o=t[0],s=t[1],u=t[2],c=o-i,d=s-a,f=c*c+d*d;if(f0&&(e=e.transition().duration(v)),e.call(M.event)}function A(){o&&o.domain(l.range().map(function(e){return(e-f.x)/f.k}).map(l.invert)),d&&d.domain(u.range().map(function(e){return(e-f.y)/f.k}).map(u.invert))}function w(e){y++||e({type:"zoomstart"})}function L(e){A(),e({type:"zoom",scale:f.k,translate:[f.x,f.y]})}function D(e){--y||(e({type:"zoomend"}),t=null)}function B(){var e=this,t=b.of(e,arguments),n=0,r=a.select(c(e)).on(m,function(){n=1,x(a.mouse(e),i),L(t)}).on(_,function(){r.on(m,null).on(_,null),l(n),D(t)}),i=k(a.mouse(e)),l=ke(e);co.call(e),w(t)}function S(){var e,t=this,n=b.of(t,arguments),r={},l=0,o=".zoom-"+a.event.changedTouches[0].identifier,s="touchmove"+o,u="touchend"+o,c=[],d=a.select(t),h=ke(t);function p(){var n=a.touches(t);return e=f.k,n.forEach(function(e){e.identifier in r&&(r[e.identifier]=k(e))}),n}function v(){var e=a.event.target;a.select(e).on(s,y).on(u,m),c.push(e);for(var n=a.event.changedTouches,o=0,d=n.length;o1){g=h[0];var _=h[1],T=g[0]-_[0],b=g[1]-_[1];l=T*T+b*b}}function y(){var o,s,u,c,d=a.touches(t);co.call(t);for(var f=0,h=d.length;f360?e-=360:e<0&&(e+=360),e<60?r+(i-r)*e/60:e<180?i:e<240?r+(i-r)*(240-e)/60:r}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:t<0?0:t>1?1:t,r=2*(n=n<0?0:n>1?1:n)-(i=n<=.5?n*(1+t):n+t-n*t),new ut(a(e+120),a(e),a(e-120))}function Ye(e,t,n){return this instanceof Ye?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof Ye?new Ye(e.h,e.c,e.l):at(e instanceof Je?e.l:(e=yt((e=a.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Ye(e,t,n)}qe.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new He(this.h,this.s,this.l/e)},qe.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new He(this.h,this.s,e*this.l)},qe.rgb=function(){return Ue(this.h,this.s,this.l)},a.hcl=Ye;var Xe=Ye.prototype=new Ve;function Ze(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Je(n,Math.cos(e*=ze)*t,Math.sin(e)*t)}function Je(e,t,n){return this instanceof Je?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof Je?new Je(e.l,e.a,e.b):e instanceof Ye?Ze(e.h,e.c,e.l):yt((e=ut(e)).r,e.g,e.b):new Je(e,t,n)}Xe.brighter=function(e){return new Ye(this.h,this.c,Math.min(100,this.l+Qe*(arguments.length?e:1)))},Xe.darker=function(e){return new Ye(this.h,this.c,Math.max(0,this.l-Qe*(arguments.length?e:1)))},Xe.rgb=function(){return Ze(this.h,this.c,this.l).rgb()},a.lab=Je;var Qe=18,et=.95047,tt=1,nt=1.08883,rt=Je.prototype=new Ve;function it(e,t,n){var r=(e+16)/116,i=r+t/500,a=r-n/200;return new ut(st(3.2404542*(i=lt(i)*et)-1.5371385*(r=lt(r)*tt)-.4985314*(a=lt(a)*nt)),st(-.969266*i+1.8760108*r+.041556*a),st(.0556434*i-.2040259*r+1.0572252*a))}function at(e,t,n){return e>0?new Ye(Math.atan2(n,t)*Ge,Math.sqrt(t*t+n*n),e):new Ye(NaN,NaN,e)}function lt(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function ot(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function st(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function ut(e,t,n){return this instanceof ut?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof ut?new ut(e.r,e.g,e.b):pt(""+e,ut,Ue):new ut(e,t,n)}function ct(e){return new ut(e>>16,e>>8&255,255&e)}function dt(e){return ct(e)+""}rt.brighter=function(e){return new Je(Math.min(100,this.l+Qe*(arguments.length?e:1)),this.a,this.b)},rt.darker=function(e){return new Je(Math.max(0,this.l-Qe*(arguments.length?e:1)),this.a,this.b)},rt.rgb=function(){return it(this.l,this.a,this.b)},a.rgb=ut;var ft=ut.prototype=new Ve;function ht(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function pt(e,t,n){var r,i,a,l=0,o=0,s=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(mt(i[0]),mt(i[1]),mt(i[2]))}return(a=_t.get(e))?t(a.r,a.g,a.b):(null==e||"#"!==e.charAt(0)||isNaN(a=parseInt(e.slice(1),16))||(4===e.length?(l=(3840&a)>>4,l|=l>>4,o=240&a,o|=o>>4,s=15&a,s|=s<<4):7===e.length&&(l=(16711680&a)>>16,o=(65280&a)>>8,s=255&a)),t(l,o,s))}function vt(e,t,n){var r,i,a=Math.min(e/=255,t/=255,n/=255),l=Math.max(e,t,n),o=l-a,s=(l+a)/2;return o?(i=s<.5?o/(l+a):o/(2-l-a),r=e==l?(t-n)/o+(t0&&s<1?0:r),new He(r,i,s)}function yt(e,t,n){var r=ot((.4124564*(e=gt(e))+.3575761*(t=gt(t))+.1804375*(n=gt(n)))/et),i=ot((.2126729*e+.7151522*t+.072175*n)/tt);return Je(116*i-16,500*(r-i),200*(i-ot((.0193339*e+.119192*t+.9503041*n)/nt)))}function gt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function mt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}ft.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,i=30;return t||n||r?(t&&t=200&&t<300||304===t){try{e=n.call(i,u)}catch(e){return void l.error.call(i,e)}l.load.call(i,e)}else l.error.call(i,u)}return!this.XDomainRequest||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(e)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=d:u.onreadystatechange=function(){u.readyState>3&&d()},u.onprogress=function(e){var t=a.event;a.event=e;try{l.progress.call(i,u)}finally{a.event=t}},i.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",i)},i.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",i):t},i.responseType=function(e){return arguments.length?(c=e,i):c},i.response=function(e){return n=e,i},["get","post"].forEach(function(e){i[e]=function(){return i.send.apply(i,[e].concat(o(arguments)))}}),i.send=function(n,r,a){if(2===arguments.length&&"function"==typeof r&&(a=r,r=null),u.open(n,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),u.setRequestHeader)for(var o in s)u.setRequestHeader(o,s[o]);return null!=t&&u.overrideMimeType&&u.overrideMimeType(t),null!=c&&(u.responseType=c),null!=a&&i.on("error",a).on("load",function(e){a(null,e)}),l.beforesend.call(i,u),u.send(null==r?null:r),i},i.abort=function(){return u.abort(),i},a.rebind(i,l,"on"),null==r?i:i.get(function(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}(r))}_t.forEach(function(e,t){_t.set(e,ct(t))}),a.functor=Tt,a.xhr=bt(W),a.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function i(e,n,r){arguments.length<3&&(r=n,n=null);var i=Mt(e,t,null==n?a:l(n),r);return i.row=function(e){return arguments.length?i.response(null==(n=e)?a:l(e)):n},i}function a(e){return i.parse(e.responseText)}function l(e){return function(t){return i.parse(t.responseText,e)}}function o(t){return t.map(s).join(e)}function s(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return i.parse=function(e,t){var n;return i.parseRows(e,function(e,r){if(n)return n(e,r-1);var i=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");n=t?function(e,n){return t(i(e),n)}:i})},i.parseRows=function(e,t){var n,i,a={},l={},o=[],s=e.length,u=0,c=0;function d(){if(u>=s)return l;if(i)return i=!1,a;var t=u;if(34===e.charCodeAt(t)){for(var n=t;n++24?(isFinite(t)&&(clearTimeout(Ct),Ct=setTimeout(Lt,t)),xt=0):(xt=1,At(Lt))}function Dt(){for(var e=Date.now(),t=kt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Bt(){for(var e,t=kt,n=1/0;t;)t.c?(t.t8?function(e){return e/n}:function(e){return e*n},symbol:e}});a.formatPrefix=function(e,t){var n=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=a.round(e,St(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),zt[8+n/3]};var Gt=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Wt=a.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=a.round(e,St(e,t))).toFixed(Math.max(0,Math.min(20,St(e*(1+1e-15),t))))}});function Ot(e){return e+""}var Pt=a.time={},Rt=Date;function jt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}jt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Et.setUTCDate.apply(this._,arguments)},setDay:function(){Et.setUTCDay.apply(this._,arguments)},setFullYear:function(){Et.setUTCFullYear.apply(this._,arguments)},setHours:function(){Et.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Et.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Et.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Et.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Et.setUTCSeconds.apply(this._,arguments)},setTime:function(){Et.setTime.apply(this._,arguments)}};var Et=Date.prototype;function It(e,t,n){function r(t){var n=e(t),r=a(n,1);return t-n1)for(;l68?1900:2e3),n+i[0].length):-1}function en(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function tn(e,t,n){$t.lastIndex=0;var r=$t.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nn(e,t,n){$t.lastIndex=0;var r=$t.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rn(e,t,n){$t.lastIndex=0;var r=$t.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function an(e,t,n){$t.lastIndex=0;var r=$t.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ln(e,t,n){$t.lastIndex=0;var r=$t.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function on(e,t,n){$t.lastIndex=0;var r=$t.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function sn(e,t,n){$t.lastIndex=0;var r=$t.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function un(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=M(t)/60|0,i=M(t)%60;return n+Ht(r,"0",2)+Ht(i,"0",2)}function cn(e,t,n){Vt.lastIndex=0;var r=Vt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function dn(e){for(var t=e.length,n=-1;++n0&&o>0&&(s+o+1>t&&(o=Math.max(1,t-s)),a.push(e.substring(i-=o,i+o)),!((s+=o+1)>t));)o=r[l=(l+1)%r.length];return a.reverse().join(n)}:W;return function(e){var n=Gt.exec(e),r=n[1]||" ",o=n[2]||">",s=n[3]||"-",u=n[4]||"",c=n[5],d=+n[6],f=n[7],h=n[8],p=n[9],v=1,y="",g="",m=!1,_=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===o)&&(c=r="0",o="="),p){case"n":f=!0,p="g";break;case"%":v=100,g="%",p="f";break;case"p":v=100,g="%",p="r";break;case"b":case"o":case"x":case"X":"#"===u&&(y="0"+p.toLowerCase());case"c":_=!1;case"d":m=!0,h=0;break;case"s":v=-1,p="r"}"$"===u&&(y=i[0],g=i[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):"e"!=p&&"f"!=p||(h=Math.max(0,Math.min(20,h)))),p=Wt.get(p)||Ot;var T=c&&f;return function(e){var n=g;if(m&&e%1)return"";var i=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===s?"":s;if(v<0){var u=a.formatPrefix(e,h);e=u.scale(e),n=u.symbol+g}else e*=v;var b,M,k=(e=p(e,h)).lastIndexOf(".");if(k<0){var K=_?e.lastIndexOf("e"):-1;K<0?(b=e,M=""):(b=e.substring(0,K),M=e.substring(K))}else b=e.substring(0,k),M=t+e.substring(k+1);!c&&f&&(b=l(b,1/0));var x=y.length+b.length+M.length+(T?0:i.length),C=x"===o?C+i+e:"^"===o?C.substring(0,x>>=1)+i+e+C.substring(x):i+(T?e:C+e))+n}}}(e),timeFormat:function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,l=e.days,o=e.shortDays,s=e.months,u=e.shortMonths;function c(e){var t=e.length;function n(n){for(var r,i,a,l=[],o=-1,s=0;++o=u)return-1;if(37===(i=t.charCodeAt(o++))){if(l=t.charAt(o++),!(a=M[l in Ft?t.charAt(o++):l])||(r=a(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}c.utc=function(e){var t=c(e);function n(e){try{var n=new(Rt=jt);return n._=e,t(n)}finally{Rt=Date}}return n.parse=function(e){try{Rt=jt;var n=t.parse(e);return n&&n._}finally{Rt=Date}},n.toString=t.toString,n},c.multi=c.utc.multi=dn;var f=a.map(),h=qt(l),p=Ut(l),v=qt(o),y=Ut(o),g=qt(s),m=Ut(s),_=qt(u),T=Ut(u);i.forEach(function(e,t){f.set(e.toLowerCase(),t)});var b={a:function(e){return o[e.getDay()]},A:function(e){return l[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:c(t),d:function(e,t){return Ht(e.getDate(),t,2)},e:function(e,t){return Ht(e.getDate(),t,2)},H:function(e,t){return Ht(e.getHours(),t,2)},I:function(e,t){return Ht(e.getHours()%12||12,t,2)},j:function(e,t){return Ht(1+Pt.dayOfYear(e),t,3)},L:function(e,t){return Ht(e.getMilliseconds(),t,3)},m:function(e,t){return Ht(e.getMonth()+1,t,2)},M:function(e,t){return Ht(e.getMinutes(),t,2)},p:function(e){return i[+(e.getHours()>=12)]},S:function(e,t){return Ht(e.getSeconds(),t,2)},U:function(e,t){return Ht(Pt.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Ht(Pt.mondayOfYear(e),t,2)},x:c(n),X:c(r),y:function(e,t){return Ht(e.getFullYear()%100,t,2)},Y:function(e,t){return Ht(e.getFullYear()%1e4,t,4)},Z:un,"%":function(){return"%"}},M={a:function(e,t,n){v.lastIndex=0;var r=v.exec(t.slice(n));return r?(e.w=y.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){h.lastIndex=0;var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){_.lastIndex=0;var r=_.exec(t.slice(n));return r?(e.m=T.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){g.lastIndex=0;var r=g.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,t,n){return d(e,b.c.toString(),t,n)},d:nn,e:nn,H:an,I:an,j:rn,L:sn,m:tn,M:ln,p:function(e,t,n){var r=f.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)},S:on,U:Xt,w:Yt,W:Zt,x:function(e,t,n){return d(e,b.x.toString(),t,n)},X:function(e,t,n){return d(e,b.X.toString(),t,n)},y:Qt,Y:Jt,Z:en,"%":cn};return c}(e)}};var fn=a.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function hn(){}a.format=fn.numberFormat,a.geo={},hn.prototype={s:0,t:0,add:function(e){vn(e,this.t,pn),vn(pn.s,this.s,this),this.s?this.t+=pn.t:this.s=pn.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var pn=new hn;function vn(e,t,n){var r=n.s=e+t,i=r-e,a=r-i;n.t=e-a+(t-i)}function yn(e,t){e&&mn.hasOwnProperty(e.type)&&mn[e.type](e,t)}a.geo.stream=function(e,t){e&&gn.hasOwnProperty(e.type)?gn[e.type](e,t):yn(e,t)};var gn={Feature:function(e,t){yn(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r=0?1:-1,o=l*a,s=Math.cos(t),u=Math.sin(t),c=i*u,d=r*s+c*Math.cos(o),f=c*l*Math.sin(o);zn.add(Math.atan2(f,d)),n=e,r=s,i=u}Gn.point=function(l,o){Gn.point=a,n=(e=l)*ze,r=Math.cos(o=(t=o)*ze/2+Le/4),i=Math.sin(o)},Gn.lineEnd=function(){a(e,t)}}function On(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function Pn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Rn(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function jn(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function En(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function In(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Nn(e){return[Math.atan2(e[1],e[0]),Re(e[2])]}function Fn(e,t){return M(e[0]-t[0])Ae?r=90:u<-Ae&&(t=-90),d[0]=e,d[1]=n}};function h(i,a){c.push(d=[e=i,n=i]),ar&&(r=a)}function p(a,l){var o=On([a*ze,l*ze]);if(s){var u=Rn(s,o),c=Rn([u[1],-u[0],0],u);In(c),c=Nn(c);var d=a-i,f=d>0?1:-1,p=c[0]*Ge*f,v=M(d)>180;if(v^(f*ir&&(r=y);else if(v^(f*i<(p=(p+360)%360-180)&&pr&&(r=l);v?aT(e,n)&&(n=a):T(a,n)>T(e,n)&&(e=a):n>=e?(an&&(n=a)):a>i?T(e,a)>T(e,n)&&(n=a):T(a,n)>T(e,n)&&(e=a)}else h(a,l);s=o,i=a}function v(){f.point=p}function y(){d[0]=e,d[1]=n,f.point=h,s=null}function g(e,t){if(s){var n=e-i;u+=M(n)>180?n+(n>0?360:-360):n}else l=e,o=t;Gn.point(e,t),p(e,t)}function m(){Gn.lineStart()}function _(){g(l,o),Gn.lineEnd(),M(u)>Ae&&(e=-(n=180)),d[0]=e,d[1]=n,s=null}function T(e,t){return(t-=e)<0?t+360:t}function b(e,t){return e[0]-t[0]}function k(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eT(v[0],v[1])&&(v[1]=h[1]),T(h[0],v[1])>T(v[0],v[1])&&(v[0]=h[0])):o.push(v=h);for(var s,u,h,p=-1/0,v=(l=0,o[u=o.length-1]);l<=u;v=h,++l)h=o[l],(s=T(v[1],h[0]))>p&&(p=s,e=h[0],n=v[1])}return c=d=null,e===1/0||t===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,t],[n,r]]}}(),a.geo.centroid=function(e){Mn=kn=Kn=xn=Cn=An=wn=Ln=Dn=Bn=Sn=0,a.geo.stream(e,$n);var t=Dn,n=Bn,r=Sn,i=t*t+n*n+r*r;return i=0;--o)i.point((d=c[o])[0],d[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}}function Qn(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r=0?1:-1,k=M*b,K=k>Le,x=p*_;if(zn.add(Math.atan2(x*M*Math.sin(k),v*T+x*Math.cos(k))),a+=K?b+M*De:b,K^f>=n^g>=n){var C=Rn(On(d),On(e));In(C);var A=Rn(i,C);In(A);var w=(K^b>=0?-1:1)*Re(A[2]);(r>w||r===w&&(C[0]||C[1]))&&(l+=K^b>=0?1:-1)}if(!y++)break;f=g,p=_,v=T,d=e}}return(a<-Ae||a0){for(_||(l.polygonStart(),_=!0),l.lineStart();++a1&&2&t&&n.push(n.pop().concat(n.shift())),o.push(n.filter(nr))}return c}}function nr(e){return e.length>1}function rr(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:j,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function ir(e,t){return((e=e.x)[0]<0?e[1]-Se-Ae:Se-e[1])-((t=t.x)[0]<0?t[1]-Se-Ae:Se-t[1])}var ar=tr(Zn,function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(a,l){var o=a>0?Le:-Le,s=M(a-n);M(s-Le)0?Se:-Se),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(o,r),e.point(a,r),t=0):i!==o&&s>=Le&&(M(n-i)Ae?Math.atan((Math.sin(t)*(a=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(t))*Math.sin(e))/(i*a*l)):(t+r)/2}(n,r,a,l),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(o,r),t=0),e.point(n=a,r=l),i=o},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var i;if(null==e)i=n*Se,r.point(-Le,i),r.point(0,i),r.point(Le,i),r.point(Le,0),r.point(Le,-i),r.point(0,-i),r.point(-Le,-i),r.point(-Le,0),r.point(-Le,i);else if(M(e[0]-t[0])>Ae){var a=e[0]0)){if(a/=f,f<0){if(a0){if(a>d)return;a>c&&(c=a)}if(a=n-s,f||!(a<0)){if(a/=f,f<0){if(a>d)return;a>c&&(c=a)}else if(f>0){if(a0)){if(a/=h,h<0){if(a0){if(a>d)return;a>c&&(c=a)}if(a=r-u,h||!(a<0)){if(a/=h,h<0){if(a>d)return;a>c&&(c=a)}else if(h>0){if(a0&&(i.a={x:s+c*f,y:u+c*h}),d<1&&(i.b={x:s+d*f,y:u+d*h}),i}}}}}}var or=1e9;function sr(e,t,n,r){return function(s){var u,c,d,f,h,p,v,y,g,m,_,T=s,b=rr(),M=lr(e,t,n,r),k={point:C,lineStart:function(){k.point=A,c&&c.push(d=[]);m=!0,g=!1,v=y=NaN},lineEnd:function(){u&&(A(f,h),p&&g&&b.rejoin(),u.push(b.buffer()));k.point=C,g&&s.lineEnd()},polygonStart:function(){s=b,u=[],c=[],_=!0},polygonEnd:function(){s=T,u=a.merge(u);var t=function(e){for(var t=0,n=c.length,r=e[1],i=0;ir&&Oe(u,a,e)>0&&++t:a[1]<=r&&Oe(u,a,e)<0&&--t,u=a;return 0!==t}([e,r]),n=_&&t,i=u.length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),K(null,null,1,s),s.lineEnd()),i&&Jn(u,l,t,K,s),s.polygonEnd()),u=c=d=null}};function K(a,l,s,u){var c=0,d=0;if(null==a||(c=i(a,s))!==(d=i(l,s))||o(a,l)<0^s>0)do{u.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+s+4)%4)!==d);else u.point(l[0],l[1])}function x(i,a){return e<=i&&i<=n&&t<=a&&a<=r}function C(e,t){x(e,t)&&s.point(e,t)}function A(e,t){var n=x(e=Math.max(-or,Math.min(or,e)),t=Math.max(-or,Math.min(or,t)));if(c&&d.push([e,t]),m)f=e,h=t,p=n,m=!1,n&&(s.lineStart(),s.point(e,t));else if(n&&g)s.point(e,t);else{var r={a:{x:v,y:y},b:{x:e,y:t}};M(r)?(g||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),_=!1):n&&(s.lineStart(),s.point(e,t),_=!1)}v=e,y=t,g=n}return k};function i(r,i){return M(r[0]-e)0?0:3:M(r[0]-n)0?2:1:M(r[1]-t)0?1:0:i>0?3:2}function l(e,t){return o(e.x,t.x)}function o(e,t){var n=i(e,1),r=i(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}}function ur(e){var t=0,n=Le/3,r=Br(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Le/180,n=e[1]*Le/180):[t/Le*180,n/Le*180]},i}function cr(e,t){var n=Math.sin(e),r=(n+Math.sin(t))/2,i=1+n*(2*r-n),a=Math.sqrt(i)/r;function l(e,t){var n=Math.sqrt(i-2*r*Math.sin(t))/r;return[n*Math.sin(e*=r),a-n*Math.cos(e)]}return l.invert=function(e,t){var n=a-t;return[Math.atan2(e,n)/r,Re((i-(e*e+n*n)*r*r)/(2*r))]},l}a.geo.clipExtent=function(){var e,t,n,r,i,a,l={stream:function(e){return i&&(i.valid=!1),(i=a(e)).valid=!0,i},extent:function(o){return arguments.length?(a=sr(e=+o[0][0],t=+o[0][1],n=+o[1][0],r=+o[1][1]),i&&(i.valid=!1,i=null),l):[[e,t],[n,r]]}};return l.extent([[0,0],[960,500]])},(a.geo.conicEqualArea=function(){return ur(cr)}).raw=cr,a.geo.albers=function(){return a.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},a.geo.albersUsa=function(){var e,t,n,r,i=a.geo.albers(),l=a.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o=a.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,n){e=[t,n]}};function u(i){var a=i[0],l=i[1];return e=null,t(a,l),e||(n(a,l),e)||r(a,l),e}return u.invert=function(e){var t=i.scale(),n=i.translate(),r=(e[0]-n[0])/t,a=(e[1]-n[1])/t;return(a>=.12&&a<.234&&r>=-.425&&r<-.214?l:a>=.166&&a<.234&&r>=-.214&&r<-.115?o:i).invert(e)},u.stream=function(e){var t=i.stream(e),n=l.stream(e),r=o.stream(e);return{point:function(e,i){t.point(e,i),n.point(e,i),r.point(e,i)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},u.precision=function(e){return arguments.length?(i.precision(e),l.precision(e),o.precision(e),u):i.precision()},u.scale=function(e){return arguments.length?(i.scale(e),l.scale(.35*e),o.scale(e),u.translate(i.translate())):i.scale()},u.translate=function(e){if(!arguments.length)return i.translate();var a=i.scale(),c=+e[0],d=+e[1];return t=i.translate(e).clipExtent([[c-.455*a,d-.238*a],[c+.455*a,d+.238*a]]).stream(s).point,n=l.translate([c-.307*a,d+.201*a]).clipExtent([[c-.425*a+Ae,d+.12*a+Ae],[c-.214*a-Ae,d+.234*a-Ae]]).stream(s).point,r=o.translate([c-.205*a,d+.212*a]).clipExtent([[c-.214*a+Ae,d+.166*a+Ae],[c-.115*a-Ae,d+.234*a-Ae]]).stream(s).point,u},u.scale(1070)};var dr,fr,hr,pr,vr,yr,gr={point:j,lineStart:j,lineEnd:j,polygonStart:function(){fr=0,gr.lineStart=mr},polygonEnd:function(){gr.lineStart=gr.lineEnd=gr.point=j,dr+=M(fr/2)}};function mr(){var e,t,n,r;function i(e,t){fr+=r*e-n*t,n=e,r=t}gr.point=function(a,l){gr.point=i,e=n=a,t=r=l},gr.lineEnd=function(){i(e,t)}}var _r={point:function(e,t){evr&&(vr=e);tyr&&(yr=t)},lineStart:j,lineEnd:j,polygonStart:j,polygonEnd:j};function Tr(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var br,Mr={point:kr,lineStart:Kr,lineEnd:xr,polygonStart:function(){Mr.lineStart=Cr},polygonEnd:function(){Mr.point=kr,Mr.lineStart=Kr,Mr.lineEnd=xr}};function kr(e,t){Kn+=e,xn+=t,++Cn}function Kr(){var e,t;function n(n,r){var i=n-e,a=r-t,l=Math.sqrt(i*i+a*a);An+=l*(e+n)/2,wn+=l*(t+r)/2,Ln+=l,kr(e=n,t=r)}Mr.point=function(r,i){Mr.point=n,kr(e=r,t=i)}}function xr(){Mr.point=kr}function Cr(){var e,t,n,r;function i(e,t){var i=e-n,a=t-r,l=Math.sqrt(i*i+a*a);An+=l*(n+e)/2,wn+=l*(r+t)/2,Ln+=l,Dn+=(l=r*e-n*t)*(n+e),Bn+=l*(r+t),Sn+=3*l,kr(n=e,r=t)}Mr.point=function(a,l){Mr.point=i,kr(e=n=a,t=r=l)},Mr.lineEnd=function(){i(e,t)}}function Ar(e){var t=.5,n=Math.cos(30*ze),r=16;function i(t){return(r?function(t){var n,i,l,o,s,u,c,d,f,h,p,v,y={point:g,lineStart:m,lineEnd:T,polygonStart:function(){t.polygonStart(),y.lineStart=b},polygonEnd:function(){t.polygonEnd(),y.lineStart=m}};function g(n,r){n=e(n,r),t.point(n[0],n[1])}function m(){d=NaN,y.point=_,t.lineStart()}function _(n,i){var l=On([n,i]),o=e(n,i);a(d,f,c,h,p,v,d=o[0],f=o[1],c=n,h=l[0],p=l[1],v=l[2],r,t),t.point(d,f)}function T(){y.point=g,t.lineEnd()}function b(){m(),y.point=M,y.lineEnd=k}function M(e,t){_(n=e,t),i=d,l=f,o=h,s=p,u=v,y.point=_}function k(){a(d,f,c,h,p,v,i,l,n,o,s,u,r,t),y.lineEnd=T,T()}return y}:function(t){return Lr(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})})(t)}function a(r,i,l,o,s,u,c,d,f,h,p,v,y,g){var m=c-r,_=d-i,T=m*m+_*_;if(T>4*t&&y--){var b=o+h,k=s+p,K=u+v,x=Math.sqrt(b*b+k*k+K*K),C=Math.asin(K/=x),A=M(M(K)-1)t||M((m*B+_*S)/T-.5)>.3||o*h+s*p+u*v0&&16,i):Math.sqrt(t)},i}function wr(e){this.stream=e}function Lr(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function Dr(e){return Br(function(){return e})()}function Br(e){var t,n,r,i,l,o,s=Ar(function(e,n){return[(e=t(e,n))[0]*u+i,l-e[1]*u]}),u=150,c=480,d=250,f=0,h=0,p=0,v=0,y=0,g=ar,m=W,_=null,T=null;function b(e){return[(e=r(e[0]*ze,e[1]*ze))[0]*u+i,l-e[1]*u]}function k(e){return(e=r.invert((e[0]-i)/u,(l-e[1])/u))&&[e[0]*Ge,e[1]*Ge]}function K(){r=Xn(n=Wr(p,v,y),t);var e=t(f,h);return i=c-e[0]*u,l=d+e[1]*u,x()}function x(){return o&&(o.valid=!1,o=null),b}return b.stream=function(e){return o&&(o.valid=!1),(o=Sr(g(n,s(m(e))))).valid=!0,o},b.clipAngle=function(e){return arguments.length?(g=null==e?(_=e,ar):function(e){var t=Math.cos(e),n=t>0,r=M(t)>Ae;return tr(i,function(e){var t,o,s,u,c;return{lineStart:function(){u=s=!1,c=1},point:function(d,f){var h,p=[d,f],v=i(d,f),y=n?v?0:l(d,f):v?l(d+(d<0?Le:-Le),f):0;if(!t&&(u=s=v)&&e.lineStart(),v!==s&&(h=a(t,p),(Fn(t,h)||Fn(p,h))&&(p[0]+=Ae,p[1]+=Ae,v=i(p[0],p[1]))),v!==s)c=0,v?(e.lineStart(),h=a(p,t),e.point(h[0],h[1])):(h=a(t,p),e.point(h[0],h[1]),e.lineEnd()),t=h;else if(r&&t&&n^v){var g;y&o||!(g=a(p,t,!0))||(c=0,n?(e.lineStart(),e.point(g[0][0],g[0][1]),e.point(g[1][0],g[1][1]),e.lineEnd()):(e.point(g[1][0],g[1][1]),e.lineEnd(),e.lineStart(),e.point(g[0][0],g[0][1])))}!v||t&&Fn(t,p)||e.point(p[0],p[1]),t=p,s=v,o=y},lineEnd:function(){s&&e.lineEnd(),t=null},clean:function(){return c|(u&&s)<<1}}},jr(e,6*ze),n?[0,-e]:[-Le,e-Le]);function i(e,n){return Math.cos(e)*Math.cos(n)>t}function a(e,n,r){var i=[1,0,0],a=Rn(On(e),On(n)),l=Pn(a,a),o=a[0],s=l-o*o;if(!s)return!r&&e;var u=t*l/s,c=-t*o/s,d=Rn(i,a),f=En(i,u);jn(f,En(a,c));var h=d,p=Pn(f,h),v=Pn(h,h),y=p*p-v*(Pn(f,f)-1);if(!(y<0)){var g=Math.sqrt(y),m=En(h,(-p-g)/v);if(jn(m,f),m=Nn(m),!r)return m;var _,T=e[0],b=n[0],k=e[1],K=n[1];b0^m[1]<(M(m[0]-T)Le^(T<=m[0]&&m[0]<=b)){var A=En(h,(-p+g)/v);return jn(A,f),[m,Nn(A)]}}}function l(t,r){var i=n?e:Le-e,a=0;return t<-i?a|=1:t>i&&(a|=2),r<-i?a|=4:r>i&&(a|=8),a}}((_=+e)*ze),x()):_},b.clipExtent=function(e){return arguments.length?(T=e,m=e?sr(e[0][0],e[0][1],e[1][0],e[1][1]):W,x()):T},b.scale=function(e){return arguments.length?(u=+e,K()):u},b.translate=function(e){return arguments.length?(c=+e[0],d=+e[1],K()):[c,d]},b.center=function(e){return arguments.length?(f=e[0]%360*ze,h=e[1]%360*ze,K()):[f*Ge,h*Ge]},b.rotate=function(e){return arguments.length?(p=e[0]%360*ze,v=e[1]%360*ze,y=e.length>2?e[2]%360*ze:0,K()):[p*Ge,v*Ge,y*Ge]},a.rebind(b,s,"precision"),function(){return t=e.apply(this,arguments),b.invert=t.invert&&k,K()}}function Sr(e){return Lr(e,function(t,n){e.point(t*ze,n*ze)})}function zr(e,t){return[e,t]}function Gr(e,t){return[e>Le?e-De:e<-Le?e+De:e,t]}function Wr(e,t,n){return e?t||n?Xn(Pr(e),Rr(t,n)):Pr(e):t||n?Rr(t,n):Gr}function Or(e){return function(t,n){return[(t+=e)>Le?t-De:t<-Le?t+De:t,n]}}function Pr(e){var t=Or(e);return t.invert=Or(-e),t}function Rr(e,t){var n=Math.cos(e),r=Math.sin(e),i=Math.cos(t),a=Math.sin(t);function l(e,t){var l=Math.cos(t),o=Math.cos(e)*l,s=Math.sin(e)*l,u=Math.sin(t),c=u*n+o*r;return[Math.atan2(s*i-c*a,o*n-u*r),Re(c*i+s*a)]}return l.invert=function(e,t){var l=Math.cos(t),o=Math.cos(e)*l,s=Math.sin(e)*l,u=Math.sin(t),c=u*i-s*a;return[Math.atan2(s*i+u*a,o*n+c*r),Re(c*n-o*r)]},l}function jr(e,t){var n=Math.cos(e),r=Math.sin(e);return function(i,a,l,o){var s=l*t;null!=i?(i=Er(n,i),a=Er(n,a),(l>0?ia)&&(i+=l*De)):(i=e+l*De,a=e-.5*s);for(var u,c=i;l>0?c>a:c2?e[2]*ze:0),t.invert=function(t){return(t=e.invert(t[0]*ze,t[1]*ze))[0]*=Ge,t[1]*=Ge,t},t},Gr.invert=zr,a.geo.circle=function(){var e,t,n=[0,0],r=6;function i(){var e="function"==typeof n?n.apply(this,arguments):n,r=Wr(-e[0]*ze,-e[1]*ze,0).invert,i=[];return t(null,null,1,{point:function(e,t){i.push(e=r(e,t)),e[0]*=Ge,e[1]*=Ge}}),{type:"Polygon",coordinates:[i]}}return i.origin=function(e){return arguments.length?(n=e,i):n},i.angle=function(n){return arguments.length?(t=jr((e=+n)*ze,r*ze),i):e},i.precision=function(n){return arguments.length?(t=jr(e*ze,(r=+n)*ze),i):r},i.angle(90)},a.geo.distance=function(e,t){var n,r=(t[0]-e[0])*ze,i=e[1]*ze,a=t[1]*ze,l=Math.sin(r),o=Math.cos(r),s=Math.sin(i),u=Math.cos(i),c=Math.sin(a),d=Math.cos(a);return Math.atan2(Math.sqrt((n=d*l)*n+(n=u*c-s*d*o)*n),s*c+u*d*o)},a.geo.graticule=function(){var e,t,n,r,i,l,o,s,u,c,d,f,h=10,p=h,v=90,y=360,g=2.5;function m(){return{type:"MultiLineString",coordinates:_()}}function _(){return a.range(Math.ceil(r/v)*v,n,v).map(d).concat(a.range(Math.ceil(s/y)*y,o,y).map(f)).concat(a.range(Math.ceil(t/h)*h,e,h).filter(function(e){return M(e%v)>Ae}).map(u)).concat(a.range(Math.ceil(l/p)*p,i,p).filter(function(e){return M(e%y)>Ae}).map(c))}return m.lines=function(){return _().map(function(e){return{type:"LineString",coordinates:e}})},m.outline=function(){return{type:"Polygon",coordinates:[d(r).concat(f(o).slice(1),d(n).reverse().slice(1),f(s).reverse().slice(1))]}},m.extent=function(e){return arguments.length?m.majorExtent(e).minorExtent(e):m.minorExtent()},m.majorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],o=+e[1][1],r>n&&(e=r,r=n,n=e),s>o&&(e=s,s=o,o=e),m.precision(g)):[[r,s],[n,o]]},m.minorExtent=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],l=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),l>i&&(n=l,l=i,i=n),m.precision(g)):[[t,l],[e,i]]},m.step=function(e){return arguments.length?m.majorStep(e).minorStep(e):m.minorStep()},m.majorStep=function(e){return arguments.length?(v=+e[0],y=+e[1],m):[v,y]},m.minorStep=function(e){return arguments.length?(h=+e[0],p=+e[1],m):[h,p]},m.precision=function(a){return arguments.length?(g=+a,u=Ir(l,i,90),c=Nr(t,e,g),d=Ir(s,o,90),f=Nr(r,n,g),m):g},m.majorExtent([[-180,-90+Ae],[180,90-Ae]]).minorExtent([[-180,-80-Ae],[180,80+Ae]])},a.geo.greatArc=function(){var e,t,n=Fr,r=$r;function i(){return{type:"LineString",coordinates:[e||n.apply(this,arguments),t||r.apply(this,arguments)]}}return i.distance=function(){return a.geo.distance(e||n.apply(this,arguments),t||r.apply(this,arguments))},i.source=function(t){return arguments.length?(n=t,e="function"==typeof t?null:t,i):n},i.target=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,i):r},i.precision=function(){return arguments.length?i:0},i},a.geo.interpolate=function(e,t){return n=e[0]*ze,r=e[1]*ze,i=t[0]*ze,a=t[1]*ze,l=Math.cos(r),o=Math.sin(r),s=Math.cos(a),u=Math.sin(a),c=l*Math.cos(n),d=l*Math.sin(n),f=s*Math.cos(i),h=s*Math.sin(i),p=2*Math.asin(Math.sqrt(Ee(a-r)+l*s*Ee(i-n))),v=1/Math.sin(p),(y=p?function(e){var t=Math.sin(e*=p)*v,n=Math.sin(p-e)*v,r=n*c+t*f,i=n*d+t*h,a=n*o+t*u;return[Math.atan2(i,r)*Ge,Math.atan2(a,Math.sqrt(r*r+i*i))*Ge]}:function(){return[n*Ge,r*Ge]}).distance=p,y;var n,r,i,a,l,o,s,u,c,d,f,h,p,v,y},a.geo.length=function(e){return br=0,a.geo.stream(e,Vr),br};var Vr={sphere:j,point:j,lineStart:function(){var e,t,n;function r(r,i){var a=Math.sin(i*=ze),l=Math.cos(i),o=M((r*=ze)-e),s=Math.cos(o);br+=Math.atan2(Math.sqrt((o=l*Math.sin(o))*o+(o=n*a-t*l*s)*o),t*a+n*l*s),e=r,t=a,n=l}Vr.point=function(i,a){e=i*ze,t=Math.sin(a*=ze),n=Math.cos(a),Vr.point=r},Vr.lineEnd=function(){Vr.point=Vr.lineEnd=j}},lineEnd:j,polygonStart:j,polygonEnd:j};function Hr(e,t){function n(t,n){var r=Math.cos(t),i=Math.cos(n),a=e(r*i);return[a*i*Math.sin(t),a*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),i=t(r),a=Math.sin(i),l=Math.cos(i);return[Math.atan2(e*a,r*l),Math.asin(r&&n*a/r)]},n}var qr=Hr(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(a.geo.azimuthalEqualArea=function(){return Dr(qr)}).raw=qr;var Ur=Hr(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},W);function Yr(e,t){var n=Math.cos(e),r=function(e){return Math.tan(Le/4+e/2)},i=e===t?Math.sin(e):Math.log(n/Math.cos(t))/Math.log(r(t)/r(e)),a=n*Math.pow(r(e),i)/i;if(!i)return Jr;function l(e,t){a>0?t<-Se+Ae&&(t=-Se+Ae):t>Se-Ae&&(t=Se-Ae);var n=a/Math.pow(r(t),i);return[n*Math.sin(i*e),a-n*Math.cos(i*e)]}return l.invert=function(e,t){var n=a-t,r=We(i)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/i,2*Math.atan(Math.pow(a/r,1/i))-Se]},l}function Xr(e,t){var n=Math.cos(e),r=e===t?Math.sin(e):(n-Math.cos(t))/(t-e),i=n/r+e;if(M(r)1&&Oe(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function li(e,t){return e[0]-t[0]||e[1]-t[1]}(a.geo.stereographic=function(){return Dr(ti)}).raw=ti,ni.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Se]},(a.geo.transverseMercator=function(){var e=Qr(ni),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90])}).raw=ni,a.geom={},a.geom.hull=function(e){var t=ri,n=ii;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,i=Tt(t),a=Tt(n),l=e.length,o=[],s=[];for(r=0;r=0;--r)h.push(e[o[u[r]][2]]);for(r=+d;rAe)o=o.L;else{if(!((i=a-ki(o,l))>Ae)){r>-Ae?(t=o.P,n=o):i>-Ae?(t=o,n=o.N):t=n=o;break}if(!o.R){t=o;break}o=o.R}var s=mi(e);if(hi.insert(t,s),t||n){if(t===n)return Ai(t),n=mi(t.site),hi.insert(s,n),s.edge=n.edge=Di(t.site,s.site),Ci(t),void Ci(n);if(n){Ai(t),Ai(n);var u=t.site,c=u.x,d=u.y,f=e.x-c,h=e.y-d,p=n.site,v=p.x-c,y=p.y-d,g=2*(f*y-h*v),m=f*f+h*h,_=v*v+y*y,T={x:(y*m-h*_)/g+c,y:(f*_-v*m)/g+d};Bi(n.edge,u,p,T),s.edge=Di(u,e,null,T),n.edge=Di(e,p,null,T),Ci(t),Ci(n)}else s.edge=Di(t.site,s.site)}}function Mi(e,t){var n=e.site,r=n.x,i=n.y,a=i-t;if(!a)return r;var l=e.P;if(!l)return-1/0;var o=(n=l.site).x,s=n.y,u=s-t;if(!u)return o;var c=o-r,d=1/a-1/u,f=c/u;return d?(-f+Math.sqrt(f*f-2*d*(c*c/(-2*u)-s+u/2+i-a/2)))/d+r:(r+o)/2}function ki(e,t){var n=e.N;if(n)return Mi(n,t);var r=e.site;return r.y===t?r.x:1/0}function Ki(e){this.site=e,this.edges=[]}function xi(e,t){return t.angle-e.angle}function Ci(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,a=n.site;if(r!==a){var l=i.x,o=i.y,s=r.x-l,u=r.y-o,c=a.x-l,d=2*(s*(y=a.y-o)-u*c);if(!(d>=-we)){var f=s*s+u*u,h=c*c+y*y,p=(y*f-u*h)/d,v=(s*h-c*f)/d,y=v+o,g=gi.pop()||new function(){Gi(this),this.x=this.y=this.arc=this.site=this.cy=null};g.arc=e,g.site=i,g.x=p+l,g.y=y+Math.sqrt(p*p+v*v),g.cy=y,e.circle=g;for(var m=null,_=vi._;_;)if(g.y<_.y||g.y===_.y&&g.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}vi.insert(m,g),m||(pi=g)}}}}function Ai(e){var t=e.circle;t&&(t.P||(pi=t.N),vi.remove(t),gi.push(t),Gi(t),e.circle=null)}function wi(e,t){var n=e.b;if(n)return!0;var r,i,a=e.a,l=t[0][0],o=t[1][0],s=t[0][1],u=t[1][1],c=e.l,d=e.r,f=c.x,h=c.y,p=d.x,v=d.y,y=(f+p)/2,g=(h+v)/2;if(v===h){if(y=o)return;if(f>p){if(a){if(a.y>=u)return}else a={x:y,y:s};n={x:y,y:u}}else{if(a){if(a.y1)if(f>p){if(a){if(a.y>=u)return}else a={x:(s-i)/r,y:s};n={x:(u-i)/r,y:u}}else{if(a){if(a.y=o)return}else a={x:l,y:r*l+i};n={x:o,y:r*o+i}}else{if(a){if(a.xAe||M(i-n)>Ae)&&(o.splice(l,0,new Si((g=a.site,m=c,_=M(r-d)Ae?{x:d,y:M(t-d)Ae?{x:M(n-p)Ae?{x:f,y:M(t-f)Ae?{x:M(n-h)=n&&u.x<=i&&u.y>=r&&u.y<=l?[[n,l],[i,l],[i,r],[n,r]]:[]).point=e[o]}),t}function o(e){return e.map(function(e,t){return{x:Math.round(r(e,t)/Ae)*Ae,y:Math.round(i(e,t)/Ae)*Ae,i:t}})}return l.links=function(e){return Ri(o(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},l.triangles=function(e){var t=[];return Ri(o(e)).cells.forEach(function(n,r){for(var i,a,l,o,s=n.site,u=n.edges.sort(xi),c=-1,d=u.length,f=u[d-1].edge,h=f.l===s?f.r:f.l;++ca&&(i=t.slice(a,i),o[l]?o[l]+=i:o[++l]=i),(n=n[0])===(r=r[0])?o[l]?o[l]+=r:o[++l]=r:(o[++l]=null,s.push({i:l,x:Vi(n,r)})),a=Ui.lastIndex;return av&&(v=s.x),s.y>y&&(y=s.y),u.push(s.x),c.push(s.y);else for(d=0;dv&&(v=_),T>y&&(y=T),u.push(_),c.push(T)}var b=v-h,k=y-p;function K(e,t,n,r,i,a,l,o){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var s=e.x,u=e.y;if(null!=s)if(M(s-n)+M(u-r)<.01)x(e,t,n,r,i,a,l,o);else{var c=e.point;e.x=e.y=e.point=null,x(e,c,s,u,i,a,l,o),x(e,t,n,r,i,a,l,o)}else e.x=n,e.y=r,e.point=t}else x(e,t,n,r,i,a,l,o)}function x(e,t,n,r,i,a,l,o){var s=.5*(i+l),u=.5*(a+o),c=n>=s,d=r>=u,f=d<<1|c;e.leaf=!1,e=e.nodes[f]||(e.nodes[f]={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){K(C,e,+g(e,++d),+m(e,d),h,p,v,y)}}),c?i=s:l=s,d?a=u:o=u,K(e,t,n,r,i,a,l,o)}b>k?y=p+b:v=h+k;var C={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){K(C,e,+g(e,++d),+m(e,d),h,p,v,y)}};if(C.visit=function(e){!function e(t,n,r,i,a,l){if(!t(n,r,i,a,l)){var o=.5*(r+a),s=.5*(i+l),u=n.nodes;u[0]&&e(t,u[0],r,i,o,s),u[1]&&e(t,u[1],o,i,a,s),u[2]&&e(t,u[2],r,s,o,l),u[3]&&e(t,u[3],o,s,a,l)}}(e,C,h,p,v,y)},C.find=function(e){return function(e,t,n,r,i,a,l){var o,s=1/0;return function e(u,c,d,f,h){if(!(c>a||d>l||f=b)<<1|t>=T,k=M+4;M=0&&!(n=a.interpolators[r](e,t)););return n}function Xi(e,t){var n,r=[],i=[],a=e.length,l=t.length,o=Math.min(e.length,t.length);for(n=0;n=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function aa(e){return 1-Math.cos(e*Se)}function la(e){return Math.pow(2,10*(e-1))}function oa(e){return 1-Math.sqrt(1-e*e)}function sa(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function ua(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function ca(e){var t,n,r,i=[e.a,e.b],a=[e.c,e.d],l=fa(i),o=da(i,a),s=fa(((t=a)[0]+=(r=-o)*(n=i)[0],t[1]+=r*n[1],t))||0;i[0]*a[1]=0?e.slice(0,n):e,i=n>=0?e.slice(n+1):"in";return r=Ji.get(r)||Zi,i=Qi.get(i)||W,t=i(r.apply(null,l.call(arguments,1))),function(e){return e<=0?0:e>=1?1:t(e)}},a.interpolateHcl=function(e,t){e=a.hcl(e),t=a.hcl(t);var n=e.h,r=e.c,i=e.l,l=t.h-n,o=t.c-r,s=t.l-i;isNaN(o)&&(o=0,r=isNaN(r)?t.c:r);isNaN(l)?(l=0,n=isNaN(n)?t.h:n):l>180?l-=360:l<-180&&(l+=360);return function(e){return Ze(n+l*e,r+o*e,i+s*e)+""}},a.interpolateHsl=function(e,t){e=a.hsl(e),t=a.hsl(t);var n=e.h,r=e.s,i=e.l,l=t.h-n,o=t.s-r,s=t.l-i;isNaN(o)&&(o=0,r=isNaN(r)?t.s:r);isNaN(l)?(l=0,n=isNaN(n)?t.h:n):l>180?l-=360:l<-180&&(l+=360);return function(e){return Ue(n+l*e,r+o*e,i+s*e)+""}},a.interpolateLab=function(e,t){e=a.lab(e),t=a.lab(t);var n=e.l,r=e.a,i=e.b,l=t.l-n,o=t.a-r,s=t.b-i;return function(e){return it(n+l*e,r+o*e,i+s*e)+""}},a.interpolateRound=ua,a.transform=function(e){var t=s.createElementNS(a.ns.prefix.svg,"g");return(a.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new ca(n?n.matrix:ha)})(e)},ca.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ha={a:1,b:0,c:0,d:1,e:0,f:0};function pa(e){return e.length?e.pop()+",":""}function va(e,t){var n=[],r=[];return e=a.transform(e),t=a.transform(t),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:Vi(e[0],t[0])},{i:i-2,x:Vi(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}(e.translate,t.translate,n,r),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(pa(n)+"rotate(",null,")")-2,x:Vi(e,t)})):t&&n.push(pa(n)+"rotate("+t+")")}(e.rotate,t.rotate,n,r),function(e,t,n,r){e!==t?r.push({i:n.push(pa(n)+"skewX(",null,")")-2,x:Vi(e,t)}):t&&n.push(pa(n)+"skewX("+t+")")}(e.skew,t.skew,n,r),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push(pa(n)+"scale(",null,",",null,")");r.push({i:i-4,x:Vi(e[0],t[0])},{i:i-2,x:Vi(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(pa(n)+"scale("+t+")")}(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,i=-1,a=r.length;++i0?n=t:(e.c=null,e.t=NaN,e=null,s.end({type:"end",alpha:n=0})):t>0&&(s.start({type:"start",alpha:n=t}),e=wt(o.tick)),o):n},o.start=function(){var e,t,n,a=g.length,s=m.length,c=u[0],p=u[1];for(e=0;e=0;)n.push(i[r])}function La(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(a=e.children)&&(i=a.length))for(var i,a,l=-1;++l=0;)l.push(c=u[s]),c.parent=a,c.depth=a.depth+1;n&&(a.value=0),a.children=u}else n&&(a.value=+n.call(r,a,a.depth)||0),delete a.children;return La(i,function(t){var r,i;e&&(r=t.children)&&r.sort(e),n&&(i=t.parent)&&(i.value+=t.value)}),o}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(wa(e,function(e){e.children&&(e.value=0)}),La(e,function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)})),e},r},a.layout.partition=function(){var e=a.layout.hierarchy(),t=[1,1];function n(n,r){var i=e.call(this,n,r);return function e(t,n,r,i){var a=t.children;if(t.x=n,t.y=t.depth*i,t.dx=r,t.dy=i,a&&(l=a.length)){var l,o,s,u=-1;for(r=t.value?r/t.value:0;++uo&&(o=r),l.push(r)}for(n=0;ni&&(r=n,i=t);return r}function Fa(e){return e.reduce($a,0)}function $a(e,t){return e+t[1]}function Va(e,t){return Ha(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Ha(e,t){for(var n=-1,r=+e[0],i=(e[1]-r)/t,a=[];++n<=t;)a[n]=i*n+r;return a}function qa(e){return[a.min(e),a.max(e)]}function Ua(e,t){return e.value-t.value}function Ya(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function Xa(e,t){e._pack_next=t,t._pack_prev=e}function Za(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r+t.r;return.999*i*i>n*n+r*r}function Ja(e){if((t=e.children)&&(s=t.length)){var t,n,r,i,a,l,o,s,u=1/0,c=-1/0,d=1/0,f=-1/0;if(t.forEach(Qa),(n=t[0]).x=-n.r,n.y=0,_(n),s>1&&((r=t[1]).x=r.r,r.y=0,_(r),s>2))for(tl(n,r,i=t[2]),_(i),Ya(n,i),n._pack_prev=i,Ya(i,r),r=n._pack_next,a=3;a0)for(l=-1;++l=d[0]&&s<=d[1]&&((o=u[a.bisect(f,s,1,p)-1]).y+=v,o.push(i[l]));return u}return i.value=function(e){return arguments.length?(t=e,i):t},i.range=function(e){return arguments.length?(n=Tt(e),i):n},i.bins=function(e){return arguments.length?(r="number"==typeof e?function(t){return Ha(t,e)}:Tt(e),i):r},i.frequency=function(t){return arguments.length?(e=!!t,i):e},i},a.layout.pack=function(){var e,t=a.layout.hierarchy().sort(Ua),n=0,r=[1,1];function i(i,a){var l=t.call(this,i,a),o=l[0],s=r[0],u=r[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(o.x=o.y=0,La(o,function(e){e.r=+c(e.value)}),La(o,Ja),n){var d=n*(e?1:Math.max(2*o.r/s,2*o.r/u))/2;La(o,function(e){e.r+=d}),La(o,Ja),La(o,function(e){e.r-=d})}return function e(t,n,r,i){var a=t.children;t.x=n+=i*t.x;t.y=r+=i*t.y;t.r*=i;if(a)for(var l=-1,o=a.length;++lh.x&&(h=e),e.depth>p.depth&&(p=e)});var v=t(f,h)/2-f.x,y=n[0]/(h.x+t(h,f)/2+v),g=n[1]/(p.depth||1);wa(c,function(e){e.x=(e.x+v)*y,e.y=e.depth*g})}return u}function l(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n.length){!function(e){var t,n=0,r=0,i=e.children,a=i.length;for(;--a>=0;)(t=i[a]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a=e,l=e,o=n,s=a.parent.children[0],u=a.m,c=l.m,d=o.m,f=s.m;o=il(o),a=rl(a),o&&a;)s=rl(s),(l=il(l)).a=e,(i=o.z+d-a.z-u+t(o._,a._))>0&&(al(ll(o,e,r),e,i),u+=i,c+=i),d+=o.m,u+=a.m,f+=s.m,c+=l.m;o&&!il(l)&&(l.t=o,l.m+=d-c),a&&!rl(s)&&(s.t=a,s.m+=u-f,r=e)}return r}(e,i,e.parent.A||r[0])}function o(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=n[0],e.y=e.depth*n[1]}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(r=null==(n=e)?s:null,i):r?null:n},i.nodeSize=function(e){return arguments.length?(r=null==(n=e)?null:s,i):r?n:null},Aa(i,e)},a.layout.cluster=function(){var e=a.layout.hierarchy().sort(null).value(null),t=nl,n=[1,1],r=!1;function i(i,l){var o,s=e.call(this,i,l),u=s[0],c=0;La(u,function(e){var n=e.children;n&&n.length?(e.x=function(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}(n),e.y=function(e){return 1+a.max(e,function(e){return e.y})}(n)):(e.x=o?c+=t(e,o):0,e.y=0,o=e)});var d=function e(t){var n=t.children;return n&&n.length?e(n[0]):t}(u),f=function e(t){var n,r=t.children;return r&&(n=r.length)?e(r[n-1]):t}(u),h=d.x-t(d,f)/2,p=f.x+t(f,d)/2;return La(u,r?function(e){e.x=(e.x-u.x)*n[0],e.y=(u.y-e.y)*n[1]}:function(e){e.x=(e.x-h)/(p-h)*n[0],e.y=(1-(u.y?e.y/u.y:1))*n[1]}),s}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(r=null==(n=e),i):r?null:n},i.nodeSize=function(e){return arguments.length?(r=null!=(n=e),i):r?n:null},Aa(i,e)},a.layout.treemap=function(){var e,t=a.layout.hierarchy(),n=Math.round,r=[1,1],i=null,l=ol,o=!1,s="squarify",u=.5*(1+Math.sqrt(5));function c(e,t){for(var n,r,i=-1,a=e.length;++i0;)o.push(n=u[i-1]),o.area+=n.area,"squarify"!==s||(r=h(o,v))<=f?(u.pop(),f=r):(o.area-=o.pop().area,p(o,v,a,!1),v=Math.min(a.dx,a.dy),o.length=o.area=0,f=1/0);o.length&&(p(o,v,a,!0),o.length=o.area=0),t.forEach(d)}}function f(e){var t=e.children;if(t&&t.length){var n,r=l(e),i=t.slice(),a=[];for(c(i,r.dx*r.dy/e.value),a.area=0;n=i.pop();)a.push(n),a.area+=n.area,null!=n.z&&(p(a,n.z?r.dx:r.dy,r,!i.length),a.length=a.area=0);t.forEach(f)}}function h(e,t){for(var n,r=e.area,i=0,a=1/0,l=-1,o=e.length;++li&&(i=n));return t*=t,(r*=r)?Math.max(t*i*u/r,r/(t*a*u)):1/0}function p(e,t,r,i){var a,l=-1,o=e.length,s=r.x,u=r.y,c=t?n(e.area/t):0;if(t==r.dx){for((i||c>r.dy)&&(c=r.dy);++lr.dx)&&(c=r.dx);++l1);return e+t*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=a.random.normal.apply(a,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=a.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n2?vl:dl,o=i?ga:ya;return a=e(t,n,o,r),l=e(n,t,o,Yi),s}function s(e){return a(e)}s.invert=function(e){return l(e)};s.domain=function(e){return arguments.length?(t=e.map(Number),o()):t};s.range=function(e){return arguments.length?(n=e,o()):n};s.rangeRound=function(e){return s.range(e).interpolate(ua)};s.clamp=function(e){return arguments.length?(i=e,o()):i};s.interpolate=function(e){return arguments.length?(r=e,o()):r};s.ticks=function(e){return _l(t,e)};s.tickFormat=function(e,n){return Tl(t,e,n)};s.nice=function(e){return gl(t,e),o()};s.copy=function(){return e(t,n,r,i)};return o()}([0,1],[0,1],Yi,!1)};var bl={s:1,g:1,p:1,r:1,e:1};function Ml(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}a.scale.log=function(){return function e(t,n,r,i){function l(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(n)}function o(e){return r?Math.pow(n,e):-Math.pow(n,-e)}function s(e){return t(l(e))}s.invert=function(e){return o(t.invert(e))};s.domain=function(e){return arguments.length?(r=e[0]>=0,t.domain((i=e.map(Number)).map(l)),s):i};s.base=function(e){return arguments.length?(n=+e,t.domain(i.map(l)),s):n};s.nice=function(){var e=fl(i.map(l),r?Math:Kl);return t.domain(e),i=e.map(o),s};s.ticks=function(){var e=ul(i),t=[],a=e[0],s=e[1],u=Math.floor(l(a)),c=Math.ceil(l(s)),d=n%1?2:n;if(isFinite(c-u)){if(r){for(;u0;f--)t.push(o(u)*f);for(u=0;t[u]s;c--);t=t.slice(u,c)}return t};s.tickFormat=function(e,t){if(!arguments.length)return kl;arguments.length<2?t=kl:"function"!=typeof t&&(t=a.format(t));var r=Math.max(1,n*e/s.ticks().length);return function(e){var i=e/o(Math.round(l(e)));return i*n0?r[e-1]:t[0],ed?0:1;if(u=Be)return s(u,h)+(o?s(o,1-h):"")+"Z";var p,v,y,g,m,_,T,b,M,k,K,x,C=0,A=0,w=[];if((g=(+l.apply(this,arguments)||0)/2)&&(y=r===Bl?Math.sqrt(o*o+u*u):+r.apply(this,arguments),h||(A*=-1),u&&(A=Re(y/u*Math.sin(g))),o&&(C=Re(y/o*Math.sin(g)))),u){m=u*Math.cos(c+A),_=u*Math.sin(c+A),T=u*Math.cos(d-A),b=u*Math.sin(d-A);var L=Math.abs(d-c-2*A)<=Le?0:1;if(A&&Pl(m,_,T,b)===h^L){var D=(c+d)/2;m=u*Math.cos(D),_=u*Math.sin(D),T=b=null}}else m=_=0;if(o){M=o*Math.cos(d-C),k=o*Math.sin(d-C),K=o*Math.cos(c+C),x=o*Math.sin(c+C);var B=Math.abs(c-d+2*C)<=Le?0:1;if(C&&Pl(M,k,K,x)===1-h^B){var S=(c+d)/2;M=o*Math.cos(S),k=o*Math.sin(S),K=x=null}}else M=k=0;if(f>Ae&&(p=Math.min(Math.abs(u-o)/2,+n.apply(this,arguments)))>.001){v=o0?0:1}function Rl(e,t,n,r,i){var a=e[0]-t[0],l=e[1]-t[1],o=(i?r:-r)/Math.sqrt(a*a+l*l),s=o*l,u=-o*a,c=e[0]+s,d=e[1]+u,f=t[0]+s,h=t[1]+u,p=(c+f)/2,v=(d+h)/2,y=f-c,g=h-d,m=y*y+g*g,_=n-r,T=c*h-f*d,b=(g<0?-1:1)*Math.sqrt(Math.max(0,_*_*m-T*T)),M=(T*g-y*b)/m,k=(-T*y-g*b)/m,K=(T*g+y*b)/m,x=(-T*y+g*b)/m,C=M-p,A=k-v,w=K-p,L=x-v;return C*C+A*A>w*w+L*L&&(M=K,k=x),[[M-s,k-u],[M*n/_,k*n/_]]}function jl(e){var t=ri,n=ii,r=Zn,i=Il,a=i.key,l=.7;function o(a){var o,s=[],u=[],c=-1,d=a.length,f=Tt(t),h=Tt(n);function p(){s.push("M",i(e(u),l))}for(;++c1&&i.push("H",r[0]);return i.join("")},"step-before":Fl,"step-after":$l,basis:ql,"basis-open":function(e){if(e.length<4)return Il(e);var t,n=[],r=-1,i=e.length,a=[0],l=[0];for(;++r<3;)t=e[r],a.push(t[0]),l.push(t[1]);n.push(Ul(Zl,a)+","+Ul(Zl,l)),--r;for(;++r9&&(i=3*t/Math.sqrt(i),l[o]=i*n,l[o+1]=i*r));o=-1;for(;++o<=s;)i=(e[Math.min(s,o+1)][0]-e[Math.max(0,o-1)][0])/(6*(1+l[o]*l[o])),a.push([i||0,l[o]*i||0]);return a}(e))}});function Il(e){return e.length>1?e.join("L"):e+"Z"}function Nl(e){return e.join("L")+"Z"}function Fl(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t1){o=t[1],a=e[s],s++,r+="C"+(i[0]+l[0])+","+(i[1]+l[1])+","+(a[0]-o[0])+","+(a[1]-o[1])+","+a[0]+","+a[1];for(var u=2;uLe)+",1 "+t}function s(e,t,n,r){return"Q 0,0 "+r}return a.radius=function(e){return arguments.length?(n=Tt(e),a):n},a.source=function(t){return arguments.length?(e=Tt(t),a):e},a.target=function(e){return arguments.length?(t=Tt(e),a):t},a.startAngle=function(e){return arguments.length?(r=Tt(e),a):r},a.endAngle=function(e){return arguments.length?(i=Tt(e),a):i},a},a.svg.diagonal=function(){var e=Fr,t=$r,n=ro;function r(r,i){var a=e.call(this,r,i),l=t.call(this,r,i),o=(a.y+l.y)/2,s=[a,{x:a.x,y:o},{x:l.x,y:o},l];return"M"+(s=s.map(n))[0]+"C"+s[1]+" "+s[2]+" "+s[3]}return r.source=function(t){return arguments.length?(e=Tt(t),r):e},r.target=function(e){return arguments.length?(t=Tt(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},a.svg.diagonal.radial=function(){var e=a.svg.diagonal(),t=ro,n=e.projection;return e.projection=function(e){return arguments.length?n(function(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-Se;return[n*Math.cos(r),n*Math.sin(r)]}}(t=e)):t},e},a.svg.symbol=function(){var e=ao,t=io;function n(n,r){return(oo.get(e.call(this,n,r))||lo)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=Tt(t),n):e},n.size=function(e){return arguments.length?(t=Tt(e),n):t},n};var oo=a.map({circle:lo,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*uo)),n=t*uo;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/so),n=t*so/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/so),n=t*so/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});a.svg.symbolTypes=oo.keys();var so=Math.sqrt(3),uo=Math.tan(30*ze);Z.transition=function(e){for(var t,n,r=po||++go,i=To(e),a=[],l=vo||{time:Date.now(),ease:ia,delay:0,duration:250},o=-1,s=this.length;++o0;)u[--f].call(e,l);if(a>=1)return d.event&&d.event.end.call(e,e.__data__,t),--c.count?delete c[r]:delete e[n],1}d||(a=i.time,l=wt(function(e){var t=d.delay;if(l.t=t+a,t<=e)return f(e-t);l.c=f},0,a),d=c[r]={tween:new K,time:a,timer:l,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++c.count)}yo.call=Z.call,yo.empty=Z.empty,yo.node=Z.node,yo.size=Z.size,a.transition=function(e,t){return e&&e.transition?po?e.transition(t):e:a.selection().transition(e)},a.transition.prototype=yo,yo.select=function(e){var t,n,r,i=this.id,a=this.namespace,l=[];e=J(e);for(var o=-1,s=this.length;++orect,.s>rect").attr("width",l[1]-l[0])}function v(e){e.select(".extent").attr("y",o[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",o[1]-o[0])}function y(){var d,y,g=this,m=a.select(a.event.target),_=n.of(g,arguments),T=a.select(g),b=m.datum(),M=!/^(n|s)$/.test(b)&&r,k=!/^(e|w)$/.test(b)&&i,K=m.classed("extent"),x=ke(g),C=a.mouse(g),A=a.select(c(g)).on("keydown.brush",function(){32==a.event.keyCode&&(K||(d=null,C[0]-=l[1],C[1]-=o[1],K=2),N())}).on("keyup.brush",function(){32==a.event.keyCode&&2==K&&(C[0]+=l[1],C[1]+=o[1],K=0,N())});if(a.event.changedTouches?A.on("touchmove.brush",D).on("touchend.brush",S):A.on("mousemove.brush",D).on("mouseup.brush",S),T.interrupt().selectAll("*").interrupt(),K)C[0]=l[0]-C[0],C[1]=o[0]-C[1];else if(b){var w=+/w$/.test(b),L=+/^n/.test(b);y=[l[1-w]-C[0],o[1-L]-C[1]],C[0]=l[w],C[1]=o[L]}else a.event.altKey&&(d=C.slice());function D(){var e=a.mouse(g),t=!1;y&&(e[0]+=y[0],e[1]+=y[1]),K||(a.event.altKey?(d||(d=[(l[0]+l[1])/2,(o[0]+o[1])/2]),C[0]=l[+(e[0]1?{floor:function(t){for(;o(t=e.floor(t));)t=zo(t-1);return t},ceil:function(t){for(;o(t=e.ceil(t));)t=zo(+t+1);return t}}:e))},r.ticks=function(e,t){var n=ul(r.domain()),a=null==e?i(n,10):"number"==typeof e?i(n,e):!e.range&&[{range:e},t];return a&&(e=a[0],t=a[1]),e.range(n[0],zo(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return So(e.copy(),t,n)},yl(r,e)}function zo(e){return new Date(e)}wo.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Bo:Do,Bo.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},Bo.toString=Do.toString,Pt.second=It(function(e){return new Rt(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),Pt.seconds=Pt.second.range,Pt.seconds.utc=Pt.second.utc.range,Pt.minute=It(function(e){return new Rt(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),Pt.minutes=Pt.minute.range,Pt.minutes.utc=Pt.minute.utc.range,Pt.hour=It(function(e){var t=e.getTimezoneOffset()/60;return new Rt(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),Pt.hours=Pt.hour.range,Pt.hours.utc=Pt.hour.utc.range,Pt.month=It(function(e){return(e=Pt.day(e)).setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),Pt.months=Pt.month.range,Pt.months.utc=Pt.month.utc.range;var Go=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Wo=[[Pt.second,1],[Pt.second,5],[Pt.second,15],[Pt.second,30],[Pt.minute,1],[Pt.minute,5],[Pt.minute,15],[Pt.minute,30],[Pt.hour,1],[Pt.hour,3],[Pt.hour,6],[Pt.hour,12],[Pt.day,1],[Pt.day,2],[Pt.week,1],[Pt.month,1],[Pt.month,3],[Pt.year,1]],Oo=wo.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Zn]]),Po={range:function(e,t,n){return a.range(Math.ceil(e/n)*n,+t,n).map(zo)},floor:W,ceil:W};Wo.year=Pt.year,Pt.scale=function(){return So(a.scale.linear(),Wo,Oo)};var Ro=Wo.map(function(e){return[e[0].utc,e[1]]}),jo=Lo.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Zn]]);function Eo(e){return JSON.parse(e.responseText)}function Io(e){var t=s.createRange();return t.selectNode(s.body),t.createContextualFragment(e.responseText)}Ro.year=Pt.year.utc,Pt.scale.utc=function(){return So(a.scale.linear(),Ro,jo)},a.text=bt(function(e){return e.responseText}),a.json=function(e,t){return Mt(e,"application/json",Eo,t)},a.html=function(e,t){return Mt(e,"text/html",Io,t)},a.xml=bt(function(e){return e.responseXML}),this.d3=a,void 0===(i="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=i)}()},function(e,t,n){"use strict";e.exports=function(e){var t=typeof e;if("string"===t){var n=e;if(0===(e=+e)&&function(e){for(var t,n=e.length,r=0;r13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}(n))return!1}else if("number"!==t)return!1;return e-e<1}},function(e,t,n){"use strict";var r=n(21),i=n(2),a=e.exports={},l=n(24);a.defaults=l.defaults;var o=a.defaultLine=l.defaultLine;a.lightLine=l.lightLine;var s=a.background=l.background;function u(e){if(i(e)||"string"!=typeof e)return e;var t=e.trim();if("rgb"!==t.substr(0,3))return e;var n=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return e;var r=n[1].trim().split(/\s*[\s,]\s*/),a="a"===t.charAt(3)&&4===r.length;if(!a&&3!==r.length)return e;for(var l=0;l=0))return e;if(3===l)r[l]>1&&(r[l]=1);else if(r[l]>=1)return e}var o=Math.round(255*r[0])+", "+Math.round(255*r[1])+", "+Math.round(255*r[2]);return a?"rgba("+o+", "+r[3]+")":"rgb("+o+")"}a.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},a.rgb=function(e){return a.tinyRGB(r(e))},a.opacity=function(e){return e?r(e).getAlpha():0},a.addOpacity=function(e,t){var n=r(e).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+t+")"},a.combine=function(e,t){var n=r(e).toRgb();if(1===n.a)return r(e).toRgbString();var i=r(t||s).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},l={r:a.r*(1-n.a)+n.r*n.a,g:a.g*(1-n.a)+n.g*n.a,b:a.b*(1-n.a)+n.b*n.a};return r(l).toRgbString()},a.contrast=function(e,t,n){var i=r(e);return 1!==i.getAlpha()&&(i=r(a.combine(e,s))),(i.isDark()?t?i.lighten(t):s:n?i.darken(n):o).toString()},a.stroke=function(e,t){var n=r(t);e.style({stroke:a.tinyRGB(n),"stroke-opacity":n.getAlpha()})},a.fill=function(e,t){var n=r(t);e.style({fill:a.tinyRGB(n),"fill-opacity":n.getAlpha()})},a.clean=function(e){if(e&&"object"==typeof e){var t,n,r,i,l=Object.keys(e);for(t=0;t2e-6||((n-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},_.getAutoRange=function(e){var t,n=[],r=e._min[0].val,i=e._max[0].val;for(t=1;t0&&d>0&&f/d>h&&(u=o,c=s,h=f/d);if(r===i){var y=r-1,g=r+1;n="tozero"===e.rangemode?r<0?[y,0]:[0,g]:"nonnegative"===e.rangemode?[Math.max(0,y),Math.max(0,g)]:[y,g]}else h&&("linear"!==e.type&&"-"!==e.type||("tozero"===e.rangemode?(u.val>=0&&(u={val:0,pad:0}),c.val<=0&&(c={val:0,pad:0})):"nonnegative"===e.rangemode&&(u.val-h*u.pad<0&&(u={val:0,pad:0}),c.val<0&&(c={val:1,pad:0})),h=(c.val-u.val)/(e._length-u.pad-c.pad)),n=[u.val-h*u.pad,c.val+h*c.pad]);return n[0]===n[1]&&("tozero"===e.rangemode?n=n[0]<0?[n[0],0]:n[0]>0?[0,n[0]]:[0,1]:(n=[n[0]-1,n[0]+1],"nonnegative"===e.rangemode&&(n[0]=Math.max(0,n[0])))),p&&n.reverse(),l.simpleMap(n,e.l2r||Number)},_.doAutoRange=function(e){e._length||e.setScale();var t=e._min&&e._max&&e._min.length&&e._max.length;if(e.autorange&&t){e.range=_.getAutoRange(e),e._r=e.range.slice(),e._rl=l.simpleMap(e._r,e.r2l);var n=e._input;n.range=e.range.slice(),n.autorange=e.autorange}},_.saveRangeInitial=function(e,t){for(var n=_.list(e,"",!0),r=!1,i=0;i0?n.ppadplus:n.ppadminus)||n.ppad||0),b=K((e._m>0?n.ppadminus:n.ppadplus)||n.ppad||0),M=K(n.vpadplus||n.vpad),k=K(n.vpadminus||n.vpad);for(r=0;r<6;r++)x(r);for(r=g-1;r>5;r--)x(r)}function K(e){if(Array.isArray(e))return function(t){return Math.max(Number(e[t]||0),0)};var t=Math.max(Number(e||0),0);return function(){return t}}function x(n){if(s=t[n],i(s)){if(d=T(n)+m,h=b(n)+m,v=s-k(n),y=s+M(n),"log"===e.type&&v=h?p=!1:o.val>=u&&o.pad<=h&&(e._min.splice(a,1),a--);p&&e._min.push({val:u,pad:_&&0===u?0:h})}if(r(c)){for(p=!0,a=0;a=c&&o.pad>=d?p=!1:o.val<=c&&o.pad<=d&&(e._max.splice(a,1),a--);p&&e._max.push({val:c,pad:_&&0===c?0:d})}}function r(e){return i(e)&&Math.abs(e).3*f||c(r)||c(a))){var h=n.dtick/2;e+=e+h.8){var o=Number(n.substr(1));a.exactYears>.8&&o%12==0?e=_.tickIncrement(e,"M6","reverse")+1.5*v:a.exactMonths>.8?e=_.tickIncrement(e,"M1","reverse")+15.5*v:e-=v/2;var s=_.tickIncrement(e,n);if(s<=r)return s}return e}(y,e,s.dtick,u,a)),p=y;p<=c;)p=_.tickIncrement(p,s.dtick,!1,a);return{start:t.c2r(y,0,a),end:t.c2r(p,0,a),size:s.dtick}},_.calcTicks=function(e){var t=l.simpleMap(e.range,e.r2l);if("auto"===e.tickmode||!e.dtick){var n,r=e.nticks;r||("category"===e.type?(n=e.tickfont?1.2*(e.tickfont.size||12):15,r=e._length/n):(n="y"===e._id.charAt(0)?40:80,r=l.constrain(e._length/n,4,9)+1)),"array"===e.tickmode&&(r*=100),_.autoTicks(e,Math.abs(t[1]-t[0])/r),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}if(e.tick0||(e.tick0="date"===e.type?"2000-01-01":0),L(e),"array"===e.tickmode)return function(e){var t,n,r=e.tickvals,i=e.ticktext,a=new Array(r.length),o=l.simpleMap(e.range,e.r2l),s=1.0001*o[0]-1e-4*o[1],u=1.0001*o[1]-1e-4*o[0],c=Math.min(s,u),d=Math.max(s,u),f=0;Array.isArray(i)||(i=[]);var h="category"===e.type?e.d2l_noadd:e.d2l;"log"===e.type&&"L"!==String(e.dtick).charAt(0)&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(n=0;nc&&t=o:s<=o)&&(a.push(s),!(a.length>1e3));s=_.tickIncrement(s,e.dtick,i,e.calendar));e._tmax=a[a.length-1],e._prevDateHead="",e._inCalcTicks=!0;for(var u=new Array(a.length),c=0;c10||"01-01"!==r.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=v&&a<=10||t>=15*v)e._tickround="d";else if(t>=g&&a<=16||t>=y)e._tickround="M";else if(t>=m&&a<=19||t>=g)e._tickround="S";else{var l=e.l2r(n+t).replace(/^-/,"").length;e._tickround=Math.max(a,l)-20}}else if(i(t)||"L"===t.charAt(0)){var o=e.range.map(e.r2d||Number);i(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),u=Math.floor(Math.log(s)/Math.LN10+.01);Math.abs(u)>3&&("SI"===e.exponentformat||"B"===e.exponentformat?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}function D(e,t,n){var r=e.tickfont||{};return{x:t,dx:0,dy:0,text:n||"",fontSize:r.size,font:r.family,fontColor:r.color}}_.autoTicks=function(e,t){var n;if("date"===e.type){e.tick0=l.dateTick0(e.calendar);var r=2*t;r>h?(t/=h,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick="M"+12*w(t,n,M)):r>p?(t/=p,e.dtick="M"+w(t,1,k)):r>v?(e.dtick=w(t,v,x),e.tick0=l.dateTick0(e.calendar,!0)):r>y?e.dtick=w(t,y,k):r>g?e.dtick=w(t,g,K):r>m?e.dtick=w(t,m,K):(n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick=w(t,n,M))}else if("log"===e.type){e.tick0=0;var a=l.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(a[1]-a[0])<1){var o=1.5*Math.abs((a[1]-a[0])/t);t=Math.abs(Math.pow(10,a[1])-Math.pow(10,a[0]))/o,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick="L"+w(t,n,M)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):(e.tick0=0,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick=w(t,n,M));if(0===e.dtick&&(e.dtick=1),!i(e.dtick)&&"string"!=typeof e.dtick){var s=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(s)}},_.tickIncrement=function(e,t,n,a){var o=n?-1:1;if(i(t))return e+o*t;var s=t.charAt(0),u=o*Number(t.substr(1));if("M"===s)return l.incrementMonth(e,u,a);if("L"===s)return Math.log(Math.pow(10,e)+u)/Math.LN10;if("D"===s){var c="D2"===t?A:C,d=e+.01*o,f=l.roundUp(l.mod(d,1),c,n);return Math.floor(d)+Math.log(r.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(t)},_.tickFirst=function(e){var t=e.r2l||Number,n=l.simpleMap(e.range,t),a=n[1]"+s,e._prevDateHead=s));t.text=u}(e,o,n,u):"log"===e.type?function(e,t,n,r,a){var o=e.dtick,s=t.x;!r||"string"==typeof o&&"L"===o.charAt(0)||(o="L3");if(e.tickformat||"string"==typeof o&&"L"===o.charAt(0))t.text=S(Math.pow(10,s),e,a,r);else if(i(o)||"D"===o.charAt(0)&&l.mod(s+.01,1)<.1)if(-1!==["e","E","power"].indexOf(e.exponentformat)){var u=Math.round(s);t.text=0===u?1:1===u?"10":u>1?"10"+u+"":"10−"+-u+"",t.fontSize*=1.25}else t.text=S(Math.pow(10,s),e,"","fakehover"),"D1"===o&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6);else{if("D"!==o.charAt(0))throw"unrecognized dtick "+String(o);t.text=String(Math.round(Math.pow(10,l.mod(s,1)))),t.fontSize*=.75}if("D1"===e.dtick){var c=String(t.text).charAt(0);"0"!==c&&"1"!==c||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(s<0?.5:.25)))}}(e,o,0,u,r):"category"===e.type?function(e,t){var n=e._categories[Math.round(t.x)];void 0===n&&(n="");t.text=String(n)}(e,o):function(e,t,n,r,i){"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide");t.text=S(t.x,e,i,r)}(e,o,0,u,r),e.tickprefix&&!h(e.showtickprefix)&&(o.text=e.tickprefix+o.text),e.ticksuffix&&!h(e.showticksuffix)&&(o.text+=e.ticksuffix),o};var B=["f","p","n","μ","m","","k","M","G","T"];function S(e,t,n,a){var o=e<0,s=t._tickround,u=n||t.exponentformat||"B",c=t._tickexponent,d=t.tickformat,f=t.separatethousands;if(a){var h={exponentformat:t.exponentformat,dtick:"none"===t.showexponent?t.dtick:i(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};L(h),s=(Number(h._tickround)||0)+4,c=h._tickexponent,t.hoverformat&&(d=t.hoverformat)}if(d)return r.format(d)(e).replace(/-/g,"−");var p,v=Math.pow(10,-s)/2;if("none"===u&&(c=0),(e=Math.abs(e))12||c<-15)?e+="e"+p:"E"===u?e+="E"+p:"power"===u?e+="×10"+p+"":"B"===u&&9===c?e+="B":"SI"!==u&&"B"!==u||(e+=B[c/3+5]));return o?"−"+e:e}function z(e,t){for(var n=0;n1&&t1)for(r=1;r0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=v.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=g||e>=400?0:Math.floor(Math.max(e,0))};var _={x1:1,x2:0,y1:0,y2:0},T={x1:0,x2:0,y1:1,y2:0};v.gradient=function(e,t,n,i,l,s){var c=t._fullLayout._defs.select(".gradients").selectAll("#"+n).data([i+l+s],u.identity);c.exit().remove(),c.enter().append("radial"===i?"radialGradient":"linearGradient").each(function(){var e=r.select(this);"horizontal"===i?e.attr(_):"vertical"===i&&e.attr(T),e.attr("id",n);var t=a(l),u=a(s);e.append("stop").attr({offset:"0%","stop-color":o.tinyRGB(u),"stop-opacity":u.getAlpha()}),e.append("stop").attr({offset:"100%","stop-color":o.tinyRGB(t),"stop-opacity":t.getAlpha()})}),e.style({fill:"url(#"+n+")","fill-opacity":null})},v.initGradients=function(e){var t=e._fullLayout._defs.selectAll(".gradients").data([0]);t.enter().append("g").classed("gradients",!0),t.selectAll("linearGradient,radialGradient").remove()},v.singlePointStyle=function(e,t,n,r,i,a){var s=n.marker;!function(e,t,n,r,i,a,s,u){if(l.traceIs(n,"symbols")){var c=p(n);t.attr("d",function(e){var t;t="various"===e.ms||"various"===a.size?3:h.isBubble(n)?c(e.ms):(a.size||6)/2,e.mrc=t;var r=v.symbolNumber(e.mx||a.symbol)||0,i=r%100;return e.om=r%200>=100,v.symbolFuncs[i](t)+(r>=200?m:"")}).style("opacity",function(e){return(e.mo+1||a.opacity+1)-1})}var d,f,y,g=!1;if(e.so?(y=s.outlierwidth,f=s.outliercolor,d=a.outliercolor):(y=(e.mlw+1||s.width+1||(e.trace?e.trace.marker.line.width:0)+1)-1,f="mlc"in e?e.mlcc=i(e.mlc):Array.isArray(s.color)?o.defaultLine:s.color,Array.isArray(a.color)&&(d=o.defaultLine,g=!0),d="mc"in e?e.mcc=r(e.mc):a.color||"rgba(0,0,0,0)"),e.om)t.call(o.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{t.style("stroke-width",y+"px");var _=a.gradient,T=e.mgt;if(T?g=!0:T=_&&_.type,T&&"none"!==T){var b=e.mgc;b?g=!0:b=_.color;var M="g"+u._fullLayout._uid+"-"+n.uid;g&&(M+="-"+e.i),t.call(v.gradient,u,M,T,d,b)}else t.call(o.fill,d);y&&t.call(o.stroke,f)}}(e,t,n,r,i,s,s.line,a)},v.pointStyle=function(e,t,n){if(e.size()){var i=t.marker,a=v.tryColorscale(i,""),l=v.tryColorscale(i,"line");e.each(function(e){v.singlePointStyle(e,r.select(this),t,a,l,n)})}},v.tryColorscale=function(e,t){var n=t?u.nestedProperty(e,t).get():e,r=n.colorscale,i=n.color;return r&&Array.isArray(i)?s.makeColorScaleFunc(s.extractScale(r,n.cmin,n.cmax)):u.identity};var b={start:1,end:-1,middle:0,bottom:1,top:-1};v.textPointStyle=function(e,t,n){e.each(function(e){var a=r.select(this),l=e.tx||t.text;if(l&&!Array.isArray(l)){var o=e.tp||t.textposition,s=-1!==o.indexOf("top")?"top":-1!==o.indexOf("bottom")?"bottom":"middle",u=-1!==o.indexOf("left")?"end":-1!==o.indexOf("right")?"start":"middle",d=e.ts||t.textfont.size,h=e.mrc?e.mrc/.8+1:0;d=i(d)&&d>0?d:0,a.call(v.font,e.tf||t.textfont.family,d,e.tc||t.textfont.color).attr("text-anchor",u).text(l).call(c.convertToTspans,n);var p=r.select(this.parentNode),y=(c.lineCount(a)-1)*f+1,g=b[u]*h,m=.75*d+b[s]*h+(b[s]-1)*y*d/2;p.attr("transform","translate("+g+","+m+")")}else a.remove()})};var M=.5;function k(e,t,n,i){var a=e[0]-t[0],l=e[1]-t[1],o=n[0]-t[0],s=n[1]-t[1],u=Math.pow(a*a+l*l,M/2),c=Math.pow(o*o+s*s,M/2),d=(c*c*a-u*u*o)*i,f=(c*c*l-u*u*s)*i,h=3*c*(u+c),p=3*u*(u+c);return[[r.round(t[0]+(h&&d/h),2),r.round(t[1]+(h&&f/h),2)],[r.round(t[0]-(p&&d/p),2),r.round(t[1]-(p&&f/p),2)]]}v.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var n,r="M"+e[0],i=[];for(n=1;n=1e4&&(v.savedBBoxes={},C=0),t&&(v.savedBBoxes[t]=y),C++,u.extendFlat({},y)},v.setClipUrl=function(e,t){if(t){var n="#"+t,i=r.select("base");i.size()&&i.attr("href")&&(n=window.location.href.split("#")[0]+n),e.attr("clip-path","url("+n+")")}else e.attr("clip-path",null)},v.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(e,t,n){return[t,n].join(" ")}).split(" ");return{x:+t[0]||0,y:+t[1]||0}},v.setTranslate=function(e,t,n){var r=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",a=e[r]("transform")||"";return t=t||0,n=n||0,a=a.replace(/(\btranslate\(.*?\);?)/,"").trim(),a=(a+=" translate("+t+", "+n+")").trim(),e[i]("transform",a),a},v.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(e,t,n){return[t,n].join(" ")}).split(" ");return{x:+t[0]||1,y:+t[1]||1}},v.setScale=function(e,t,n){var r=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",a=e[r]("transform")||"";return t=t||1,n=n||1,a=a.replace(/(\bscale\(.*?\);?)/,"").trim(),a=(a+=" scale("+t+", "+n+")").trim(),e[i]("transform",a),a},v.setPointGroupScale=function(e,t,n){var r,i,a;return t=t||1,n=n||1,i=1===t&&1===n?"":" scale("+t+","+n+")",a=/\s*sc.*/,e.each(function(){r=(this.getAttribute("transform")||"").replace(a,""),r=(r+=i).trim(),this.setAttribute("transform",r)}),i};var w=/translate\([^)]*\)\s*$/;v.setTextPointsScale=function(e,t,n){e.each(function(){var e,i=r.select(this),a=i.select("text"),l=parseFloat(a.attr("x")||0),o=parseFloat(a.attr("y")||0),s=(i.attr("transform")||"").match(w);e=1===t&&1===n?[]:["translate("+l+","+o+")","scale("+t+","+n+")","translate("+-l+","+-o+")"],s&&e.push(s),i.attr("transform",e.join(" "))})}},function(e,t,n){"use strict";t.defaultConfig=n(111),t.Plots=n(9),t.Axes=n(6),t.ModeBar=n(147),n(270)},function(e,t,n){"use strict";var r=n(1),i=n(2),a=n(8),l=n(110),o=n(4),s=n(0),u=n(3),c=n(16).BADNUM,d=e.exports={},f=n(104),h=n(160),p=s.relinkPrivateKeys;s.extendFlat(d,o),d.attributes=n(42),d.attributes.type.values=d.allTypes,d.fontAttrs=n(17),d.layoutAttributes=n(41),d.fontWeight="normal";var v=d.subplotsRegistry,y=d.transformsRegistry,g=n(30),m=n(275);function _(e,t){var n,r,i=e.trace,a=i._arrayAttrs,l={};for(n=0;n=t.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=t._paper.attr("width")-7),n.attr(a);var l=n.select(".js-link-to-tool"),o=n.select(".js-link-spacer"),s=n.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var n=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)n.on("click",function(){d.sendDataToCloud(e)});else{var r=window.location.pathname.split("/"),i=window.location.search;n.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+r[2].split(".")[0]+"/"+r[1]+i})}}(e,l),o.text(l.text()&&s.text()?" - ":"")}},d.sendDataToCloud=function(e){e.emit("plotly_beforeexport");var t=window.PLOTLYENV&&window.PLOTLYENV.BASE_URL||"https://plot.ly",n=r.select(e).append("div").attr("id","hiddenform").style("display","none"),i=n.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return i.append("input").attr({type:"text",name:"data"}).node().value=d.graphJson(e,!1,"keepdata"),i.node().submit(),n.remove(),e.emit("plotly_afterexport"),!1},d.supplyDefaults=function(e){var t,n=e._fullLayout||{},r=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[];if(e._transitionData||d.createTransitionData(e),n._initialAutoSizeIsDone){var u=n.width,c=n.height;d.supplyLayoutGlobalDefaults(i,r),i.width||(r.width=u),i.height||(r.height=c)}else{d.supplyLayoutGlobalDefaults(i,r);var f=!i.width||!i.height,h=r.autosize,v=e._context&&e._context.autosizable;f&&(h||v)?d.plotAutoSize(e,i,r):f&&d.sanitizeMargins(e),!h&&f&&(i.width=r.width,i.height=r.height)}r._initialAutoSizeIsDone=!0,r._dataLength=s.length,r._globalTransforms=(e._context||{}).globalTransforms,d.supplyDataDefaults(s,o,i,r),r._has=d._hasPlotType.bind(r);var y=r._modules;for(t=0;t0){var c=function(e){var t,n={left:0,right:0,bottom:0,top:0};if(e)for(t in e)e.hasOwnProperty(t)&&(n.left+=e[t].left||0,n.right+=e[t].right||0,n.bottom+=e[t].bottom||0,n.top+=e[t].top||0);return n}(e._boundingBoxMargins),f=c.left+c.right,h=c.bottom+c.top,p=1-2*o,v=n._container&&n._container.node?n._container.node().getBoundingClientRect():{width:n.width,height:n.height};r=Math.round(p*(v.width-f)),a=Math.round(p*(v.height-h))}else{var y=u?window.getComputedStyle(e):{};r=parseFloat(y.width)||n.width,a=parseFloat(y.height)||n.height}var g=d.layoutAttributes.width.min,m=d.layoutAttributes.height.min;r1,T=!t.height&&Math.abs(n.height-a)>1;(T||_)&&(_&&(n.width=r),T&&(n.height=a)),e._initialAutoSize||(e._initialAutoSize={width:r,height:a}),d.sanitizeMargins(n)},d.supplyLayoutModuleDefaults=function(e,t,n,r){var i,l;a.Axes.supplyLayoutDefaults(e,t,n);var s=t._basePlotModules;for(i=0;i.5*r.width&&(n.l=n.r=0),n.b+n.t>.5*r.height&&(n.b=n.t=0),r._pushmargin[t]={l:{val:n.x,size:n.l+i},r:{val:n.x,size:n.r+i},b:{val:n.y,size:n.b+i},t:{val:n.y,size:n.t+i}}}else delete r._pushmargin[t];r._replotting||d.doAutoMargin(e)}},d.doAutoMargin=function(e){var t=e._fullLayout;t._size||(t._size={}),t._pushmargin||(t._pushmargin={});var n=t._size,r=JSON.stringify(n),l=Math.max(t.margin.l||0,0),o=Math.max(t.margin.r||0,0),s=Math.max(t.margin.t||0,0),u=Math.max(t.margin.b||0,0),c=t._pushmargin;if(!1!==t.margin.autoexpand){c.base={l:{val:0,size:l},r:{val:1,size:o},t:{val:1,size:s},b:{val:0,size:u}};for(var d=Object.keys(c),f=0;fy){var K=(g*M+(k-t.width)*y)/(M-y),x=(k*(1-y)+(g-t.width)*(1-M))/(M-y);K>=0&&x>=0&&K+x>l+o&&(l=K,o=x)}}if(i(_)&&c[b].t){var C=c[b].t.val,A=c[b].t.size;if(C>m){var w=(_*C+(A-t.height)*m)/(C-m),L=(A*(1-m)+(_-t.height)*(1-C))/(C-m);w>=0&&L>=0&&w+L>u+s&&(u=w,s=L)}}}}if(n.l=Math.round(l),n.r=Math.round(o),n.t=Math.round(s),n.b=Math.round(u),n.p=Math.round(t.margin.pad),n.w=Math.round(t.width)-n.l-n.r,n.h=Math.round(t.height)-n.t-n.b,!t._replotting&&"{}"!==r&&r!==JSON.stringify(t._size))return a.plot(e)},d.graphJson=function(e,t,n,r,i){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&d.supplyDefaults(e);var a=i?e._fullData:e.data,l=i?e._fullLayout:e.layout,o=(e._transitionData||{})._frames;function u(e){if("function"==typeof e)return null;if(s.isPlainObject(e)){var t,r,i={};for(t in e)if("function"!=typeof e[t]&&-1===["_","["].indexOf(t.charAt(0))){if("keepdata"===n){if("src"===t.substr(t.length-3))continue}else if("keepstream"===n){if("string"==typeof(r=e[t+"src"])&&r.indexOf(":")>0&&!s.isPlainObject(e.stream))continue}else if("keepall"!==n&&"string"==typeof(r=e[t+"src"])&&r.indexOf(":")>0)continue;i[t]=u(e[t])}return i}return Array.isArray(e)?e.map(u):s.isJSDate(e)?s.ms2DateTimeLocal(+e):e}var c={data:(a||[]).map(function(e){var n=u(e);return t&&delete n.fit,n})};return t||(c.layout=u(l)),e.framework&&e.framework.isPolar&&(c=e.framework.getConfig()),o&&(c.frames=u(o)),"object"===r?c:JSON.stringify(c)},d.modifyFrames=function(e,t){var n,r,i,a=e._transitionData._frames,l=e._transitionData._frameHash;for(n=0;n0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){p=!0}),i.redraw&&e._transitionData._interruptCallbacks.push(function(){return a.redraw(e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var r,o,u=0,c=0;function d(){return u++,function(){var n;p||++c!==u||(n=t,e._transitionData&&(function(e){if(e)for(;e.length;)e.shift()}(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(i.redraw)return a.redraw(e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(n)))}}var f=e._fullLayout._basePlotModules,v=!1;if(n)for(o=0;o=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var m=Object.prototype.hasOwnProperty;function _(e,t){return m.call(e,t)}function T(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var b=/-(\w)/g,M=T(function(e){return e.replace(b,function(e,t){return t?t.toUpperCase():""})}),k=T(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),K=/\B([A-Z])/g,x=T(function(e){return e.replace(K,"-$1").toLowerCase()});var C=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function A(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function w(e,t){for(var n in t)e[n]=t[n];return e}function L(e){for(var t={},n=0;n0,X=q&&q.indexOf("edge/")>0,Z=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===H),J=(q&&/chrome\/\d+/.test(q),{}.watch),Q=!1;if($)try{var ee={};Object.defineProperty(ee,"passive",{get:function(){Q=!0}}),window.addEventListener("test-passive",null,ee)}catch(e){}var te=function(){return void 0===N&&(N=!$&&!V&&void 0!==e&&"server"===e.process.env.VUE_ENV),N},ne=$&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function re(e){return"function"==typeof e&&/native code/.test(e.toString())}var ie,ae="undefined"!=typeof Symbol&&re(Symbol)&&"undefined"!=typeof Reflect&&re(Reflect.ownKeys);ie="undefined"!=typeof Set&&re(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var le=D,oe=0,se=function(){this.id=oe++,this.subs=[]};se.prototype.addSub=function(e){this.subs.push(e)},se.prototype.removeSub=function(e){g(this.subs,e)},se.prototype.depend=function(){se.target&&se.target.addDep(this)},se.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(a&&!_(i,"default"))l=!1;else if(""===l||l===x(e)){var s=je(String,i.type);(s<0||o0&&(ut((u=e(u,(n||"")+"_"+s))[0])&&ut(d)&&(r[c]=ve(d.text+u[0].text),u.shift()),r.push.apply(r,u)):o(u)?ut(d)?r[c]=ve(d.text+u):""!==u&&r.push(ve(u)):ut(u)&&ut(d)?r[c]=ve(d.text+u.text):(l(t._isVList)&&a(u.tag)&&i(u.key)&&a(n)&&(u.key="__vlist"+n+"_"+s+"__"),r.push(u)));return r}(e):void 0}function ut(e){return a(e)&&a(e.text)&&!1===e.isComment}function ct(e,t){return(e.__esModule||ae&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function dt(e){return e.isComment&&e.asyncFactory}function ft(e){if(Array.isArray(e))for(var t=0;twt&&kt[n].id>e.id;)n--;kt.splice(n+1,0,e)}else kt.push(e);Ct||(Ct=!0,Qe(Lt))}}(this)},Bt.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Ie(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Bt.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Bt.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Bt.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var St={enumerable:!0,configurable:!0,get:D,set:D};function zt(e,t,n){St.get=function(){return this[t][n]},St.set=function(e){this[t][n]=e},Object.defineProperty(e,n,St)}function Gt(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&be(!1);var a=function(a){i.push(a);var l=Pe(a,t,n,e);Ce(r,a,l),a in e||zt(e,"_props",a)};for(var l in t)a(l);be(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?D:C(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;c(t=e._data="function"==typeof t?function(e,t){ce();try{return e.call(t,t)}catch(e){return Ie(e,t,"data()"),{}}finally{de()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var a=n[i];0,r&&_(r,a)||(void 0,36!==(l=(a+"").charCodeAt(0))&&95!==l&&zt(e,"_data",a))}var l;xe(t,!0)}(e):xe(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=te();for(var i in t){var a=t[i],l="function"==typeof a?a:a.get;0,r||(n[i]=new Bt(e,l||D,D,Wt)),i in e||Ot(e,i,a)}}(e,t.computed),t.watch&&t.watch!==J&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(e[i])<0)&&r.push(e[i]);return r}return e}function dn(e){this._init(e)}function fn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var a=e.name||n.options.name;var l=function(e){this._init(e)};return(l.prototype=Object.create(n.prototype)).constructor=l,l.cid=t++,l.options=We(n.options,e),l.super=n,l.options.props&&function(e){var t=e.options.props;for(var n in t)zt(e.prototype,"_props",n)}(l),l.options.computed&&function(e){var t=e.options.computed;for(var n in t)Ot(e.prototype,n,t[n])}(l),l.extend=n.extend,l.mixin=n.mixin,l.use=n.use,P.forEach(function(e){l[e]=n[e]}),a&&(l.options.components[a]=l),l.superOptions=n.options,l.extendOptions=e,l.sealedOptions=w({},l.options),i[r]=l,l}}function hn(e){return e&&(e.Ctor.options.name||e.tag)}function pn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function vn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var l=n[a];if(l){var o=hn(l.componentOptions);o&&!t(o)&&yn(n,a,r,i)}}}function yn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,g(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=sn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r,n._parentElm=t._parentElm,n._refElm=t._refElm;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=We(un(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&vt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=yt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return on(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return on(e,t,n,r,i,!0)};var a=n&&n.data;Ce(e,"$attrs",a&&a.attrs||r,null,!0),Ce(e,"$listeners",t._parentListeners||r,null,!0)}(t),Mt(t,"beforeCreate"),function(e){var t=Et(e.$options.inject,e);t&&(be(!1),Object.keys(t).forEach(function(n){Ce(e,n,t[n])}),be(!0))}(t),Gt(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Mt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(dn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ae,e.prototype.$delete=we,e.prototype.$watch=function(e,t,n){if(c(t))return Rt(this,e,t,n);(n=n||{}).user=!0;var r=new Bt(this,e,t,n);return n.immediate&&t.call(this,r.value),function(){r.teardown()}}}(dn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){if(Array.isArray(e))for(var r=0,i=e.length;r1?A(t):t;for(var n=A(arguments,1),r=0,i=t.length;rparseInt(this.max)&&yn(l,o[0],o,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return E}};Object.defineProperty(e,"config",t),e.util={warn:le,extend:w,mergeOptions:We,defineReactive:Ce},e.set=Ae,e.delete=we,e.nextTick=Qe,e.options=Object.create(null),P.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,w(e.options.components,mn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=We(this.options,e),this}}(e),fn(e),function(e){P.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(dn),Object.defineProperty(dn.prototype,"$isServer",{get:te}),Object.defineProperty(dn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(dn,"FunctionalRenderContext",{value:Jt}),dn.version="2.5.16";var _n=v("style,class"),Tn=v("input,textarea,option,select,progress"),bn=v("contenteditable,draggable,spellcheck"),Mn=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),kn="http://www.w3.org/1999/xlink",Kn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},xn=function(e){return Kn(e)?e.slice(6,e.length):""},Cn=function(e){return null==e||!1===e};function An(e){for(var t=e.data,n=e,r=e;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=wn(r.data,t));for(;a(n=n.parent);)n&&n.data&&(t=wn(t,n.data));return function(e,t){if(a(e)||a(t))return Ln(e,Dn(t));return""}(t.staticClass,t.class)}function wn(e,t){return{staticClass:Ln(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Ln(e,t){return e?t?e+" "+t:e:t||""}function Dn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r-1?Qn(e,t,n):Mn(t)?Cn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):bn(t)?e.setAttribute(t,Cn(n)||"false"===n?"false":"true"):Kn(t)?Cn(n)?e.removeAttributeNS(kn,xn(t)):e.setAttributeNS(kn,t,n):Qn(e,t,n)}function Qn(e,t,n){if(Cn(n))e.removeAttribute(t);else{if(U&&!Y&&"TEXTAREA"===e.tagName&&"placeholder"===t&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var er={create:Zn,update:Zn};function tr(e,t){var n=t.elm,r=t.data,l=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(l)||i(l.staticClass)&&i(l.class)))){var o=An(t),s=n._transitionClasses;a(s)&&(o=Ln(o,Dn(s))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var nr,rr={create:tr,update:tr},ir="__r",ar="__c";function lr(e,t,n,r,i){var a;t=(a=t)._withTask||(a._withTask=function(){Ye=!0;var e=a.apply(null,arguments);return Ye=!1,e}),n&&(t=function(e,t,n){var r=nr;return function i(){null!==e.apply(null,arguments)&&or(t,i,n,r)}}(t,e,r)),nr.addEventListener(e,t,Q?{capture:r,passive:i}:r)}function or(e,t,n,r){(r||nr).removeEventListener(e,t._withTask||t,n)}function sr(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};nr=t.elm,function(e){if(a(e[ir])){var t=U?"change":"input";e[t]=[].concat(e[ir],e[t]||[]),delete e[ir]}a(e[ar])&&(e.change=[].concat(e[ar],e.change||[]),delete e[ar])}(n),at(n,r,lr,or,t.context),nr=void 0}}var ur={create:sr,update:sr};function cr(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,l=t.elm,o=e.data.domProps||{},s=t.data.domProps||{};for(n in a(s.__ob__)&&(s=t.data.domProps=w({},s)),o)i(s[n])&&(l[n]="");for(n in s){if(r=s[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===o[n])continue;1===l.childNodes.length&&l.removeChild(l.childNodes[0])}if("value"===n){l._value=r;var u=i(r)?"":String(r);dr(l,u)&&(l.value=u)}else l[n]=r}}}function dr(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.lazy)return!1;if(r.number)return p(n)!==p(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var fr={create:cr,update:cr},hr=T(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function pr(e){var t=vr(e.style);return e.staticStyle?w(e.staticStyle,t):t}function vr(e){return Array.isArray(e)?L(e):"string"==typeof e?hr(e):e}var yr,gr=/^--/,mr=/\s*!important$/,_r=function(e,t,n){if(gr.test(t))e.style.setProperty(t,n);else if(mr.test(n))e.style.setProperty(t,n.replace(mr,""),"important");else{var r=br(t);if(Array.isArray(n))for(var i=0,a=n.length;i-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function xr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Cr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&w(t,Ar(e.name||"v")),w(t,e),t}return"string"==typeof e?Ar(e):void 0}}var Ar=T(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),wr=$&&!Y,Lr="transition",Dr="animation",Br="transition",Sr="transitionend",zr="animation",Gr="animationend";wr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Br="WebkitTransition",Sr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(zr="WebkitAnimation",Gr="webkitAnimationEnd"));var Wr=$?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Or(e){Wr(function(){Wr(e)})}function Pr(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Kr(e,t))}function Rr(e,t){e._transitionClasses&&g(e._transitionClasses,t),xr(e,t)}function Er(e,t,n){var r=Ir(e,t),i=r.type,a=r.timeout,l=r.propCount;if(!i)return n();var o=i===Lr?Sr:Gr,s=0,u=function(){e.removeEventListener(o,c),n()},c=function(t){t.target===e&&++s>=l&&u()};setTimeout(function(){s0&&(n=Lr,c=l,d=a.length):t===Dr?u>0&&(n=Dr,c=u,d=s.length):d=(n=(c=Math.max(l,u))>0?l>u?Lr:Dr:null)?n===Lr?a.length:s.length:0,{type:n,timeout:c,propCount:d,hasTransform:n===Lr&&jr.test(r[Br+"Property"])}}function Nr(e,t){for(;e.length1}function Ur(e,t){!0!==t.data.show&&$r(t)}var Yr=function(e){var t,n,r={},s=e.modules,u=e.nodeOps;for(t=0;tp?_(e,i(n[g+1])?null:n[g+1].elm,n,h,g,r):h>g&&b(0,t,f,p)}(s,h,p,n,o):a(p)?(a(e.text)&&u.setTextContent(s,""),_(s,null,p,0,p.length-1,n)):a(h)?b(0,h,0,h.length-1):a(e.text)&&u.setTextContent(s,""):e.text!==t.text&&u.setTextContent(s,t.text),a(f)&&a(c=f.hook)&&a(c=c.postpatch)&&c(e,t)}}}function x(e,t,n){if(l(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,l.selected!==a&&(l.selected=a);else if(z(ei(l),r))return void(e.selectedIndex!==o&&(e.selectedIndex=o));i||(e.selectedIndex=-1)}}function Qr(e,t){return t.every(function(t){return!z(t,e)})}function ei(e){return"_value"in e?e._value:e.value}function ti(e){e.target.composing=!0}function ni(e){e.target.composing&&(e.target.composing=!1,ri(e.target,"input"))}function ri(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ii(e){return!e.componentInstance||e.data&&e.data.transition?e:ii(e.componentInstance._vnode)}var ai={model:Xr,show:{bind:function(e,t,n){var r=t.value,i=(n=ii(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,$r(n,function(){e.style.display=a})):e.style.display=r?a:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=ii(n)).data&&n.data.transition?(n.data.show=!0,r?$r(n,function(){e.style.display=e.__vOriginalDisplay}):Vr(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},li={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function oi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?oi(ft(t.children)):e}function si(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var a in i)t[M(a)]=i[a];return t}function ui(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var ci={name:"transition",props:li,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(function(e){return e.tag||dt(e)})).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var a=oi(i);if(!a)return i;if(this._leaving)return ui(e,i);var l="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?l+"comment":l+a.tag:o(a.key)?0===String(a.key).indexOf(l)?a.key:l+a.key:a.key;var s=(a.data||(a.data={})).transition=si(this),u=this._vnode,c=oi(u);if(a.data.directives&&a.data.directives.some(function(e){return"show"===e.name})&&(a.data.show=!0),c&&c.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,c)&&!dt(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=w({},s);if("out-in"===r)return this._leaving=!0,lt(d,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),ui(e,i);if("in-out"===r){if(dt(a))return u;var f,h=function(){f()};lt(s,"afterEnter",h),lt(s,"enterCancelled",h),lt(d,"delayLeave",function(e){f=e})}}return i}}},di=w({tag:String,moveClass:String},li);function fi(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function hi(e){e.data.newPos=e.elm.getBoundingClientRect()}function pi(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+i+"px)",a.transitionDuration="0s"}}delete di.mode;var vi={Transition:ci,TransitionGroup:{props:di,render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],l=si(this),o=0;o-1?Wn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Wn[e]=/HTMLUnknownElement/.test(t.toString())},w(dn.options.directives,ai),w(dn.options.components,vi),dn.prototype.__patch__=$?Yr:D,dn.prototype.$mount=function(e,t){return function(e,t,n){return e.$el=t,e.$options.render||(e.$options.render=pe),Mt(e,"beforeMount"),new Bt(e,function(){e._update(e._render(),n)},D,null,!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Mt(e,"mounted")),e}(this,e=e&&$?function(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}(e):void 0,t)},$&&setTimeout(function(){E.devtools&&ne&&ne.emit("init",dn)},0),t.default=dn}.call(this,n(44),n(337).setImmediate)},function(e,t,n){"use strict";var r=n(0);e.exports={hasLines:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("lines")},hasMarkers:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("markers")},hasText:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("text")},isBubble:function(e){return r.isPlainObject(e.marker)&&Array.isArray(e.marker.size)}}},function(e,t,n){"use strict";var r=n(1),i=n(0),a=n(31),l=n(288),o=n(19).LINE_SPACING;function s(e,t){return e.node().getBoundingClientRect()[t]}var u=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;t.convertToTspans=function(e,n,l){var g=e.text(),L=!e.attr("data-notex")&&"undefined"!=typeof MathJax&&g.match(u),D=r.select(e.node().parentNode);if(!D.empty()){var B=e.attr("class")?e.attr("class").split(" ")[0]:"text";return B+="-math",D.selectAll("svg."+B).remove(),D.selectAll("g."+B+"-group").remove(),e.style("display",null).attr({"data-unformatted":g,"data-math":"N"}),L?(n&&n._promises||[]).push(new Promise(function(t){e.style("display","none");var n={fontSize:parseInt(e.style("font-size"),10)};!function(e,t,n){var a="math-output-"+i.randstr([],64),l=r.select("body").append("div").attr({id:a}).style({visibility:"hidden",position:"absolute"}).style({"font-size":t.fontSize+"px"}).text((o=e,o.replace(c,"\\lt ").replace(d,"\\gt ")));var o;MathJax.Hub.Queue(["Typeset",MathJax.Hub,l.node()],function(){var t=r.select("body").select("#MathJax_SVG_glyphs");if(l.select(".MathJax_SVG").empty()||!l.select("svg").node())i.log("There was an error in the tex syntax.",e),n();else{var a=l.select("svg").node().getBoundingClientRect();n(l.select(".MathJax_SVG"),t,a)}l.remove()})}(L[2],n,function(n,r,i){D.selectAll("svg."+B).remove(),D.selectAll("g."+B+"-group").remove();var a=n&&n.select("svg");if(!a||!a.node())return S(),void t();var o=D.append("g").classed(B+"-group",!0).attr({"pointer-events":"none","data-unformatted":g,"data-math":"Y"});o.node().appendChild(a.node()),r&&r.node()&&a.node().insertBefore(r.node().cloneNode(!0),a.node().firstChild),a.attr({class:B,height:i.height,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var u=e.style("fill")||"black";a.select("g").attr({fill:u,stroke:u});var c=s(a,"width"),d=s(a,"height"),f=+e.attr("x")-c*{start:0,middle:.5,end:1}[e.attr("text-anchor")||"start"],h=-(parseInt(e.style("font-size"),10)||s(e,"height"))/4;"y"===B[0]?(o.attr({transform:"rotate("+[-90,+e.attr("x"),+e.attr("y")]+") translate("+[-c/2,h-d/2]+")"}),a.attr({x:+e.attr("x"),y:+e.attr("y")})):"l"===B[0]?a.attr({x:e.attr("x"),y:h-d/2}):"a"===B[0]?a.attr({x:0,y:h}):a.attr({x:f,y:+e.attr("y")+h-d/2}),l&&l.call(e,o),t(o)})})):S(),e}function S(){D.empty()||(B=e.attr("class")+"-math",D.select("svg."+B).remove()),e.text("").style("white-space","pre"),function(e,t){t=(n=t,function(e,t){if(!e)return"";for(var n=0;n1)for(var i=1;i doesnt match end tag <"+e+">. Pretending it did match.",t),l=u[u.length-1].node}M.test(t)?d():(l=e,u=[{node:e}]);for(var B=t.split(T),S=0;S|>|>)/g;var f={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},h={sub:"0.3em",sup:"-0.6em"},p={sub:"-0.21em",sup:"0.42em"},v="​",y=["http:","https:","mailto:","",void 0,":"],g=new RegExp("]*)?/?>","g"),m=Object.keys(l.entityToUnicode).map(function(e){return{regExp:new RegExp("&"+e+";","g"),sub:l.entityToUnicode[e]}}),_=/(\r\n?|\n)/g,T=/(<[^<>]*>)/,b=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=//i,k=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,K=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,x=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,C=/(^|[\s"'])popup\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i;function A(e,t){if(!e)return null;var n=e.match(t);return n&&(n[3]||n[4])}var w=/(^|;)\s*color:/;function L(e,t,n){var r,i,a,l=n.horizontalAlign,o=n.verticalAlign||"top",s=e.node().getBoundingClientRect(),u=t.node().getBoundingClientRect();return i="bottom"===o?function(){return s.bottom-r.height}:"middle"===o?function(){return s.top+(s.height-r.height)/2}:function(){return s.top},a="right"===l?function(){return s.right-r.width}:"center"===l?function(){return s.left+(s.width-r.width)/2}:function(){return s.left},function(){return r=this.node().getBoundingClientRect(),this.style({top:i()-u.top+"px",left:a()-u.left+"px","z-index":1e3}),this}}t.plainText=function(e){return(e||"").replace(g," ")},t.lineCount=function(e){return e.selectAll("tspan.line").size()||1},t.positionText=function(e,t,n){return e.each(function(){var e=r.select(this);function i(t,n){return void 0===n?null===(n=e.attr(t))&&(e.attr(t,0),n=0):e.attr(t,n),n}var a=i("x",t),l=i("y",n);"text"===this.nodeName&&e.selectAll("tspan.line").attr({x:a,y:l})})},t.makeEditable=function(e,t){var n=t.gd,i=t.delegate,a=r.dispatch("edit","input","cancel"),l=i||e;if(e.style({"pointer-events":i?"none":"all"}),1!==e.size())throw new Error("boo");function o(){var i,o;i=r.select(n).select(".svg-container"),(o=i.append("div")).classed("plugin-editable editable",!0).style({position:"absolute","font-family":e.style("font-family")||"Arial","font-size":e.style("font-size")||12,color:t.fill||e.style("fill")||"black",opacity:1,"background-color":t.background||"transparent",outline:"#ffffff33 1px solid",margin:[-parseFloat(e.style("font-size"))/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(t.text||e.attr("data-unformatted")).call(L(e,i,t)).on("blur",function(){n._editing=!1,e.text(this.textContent).style({opacity:1});var t,i=r.select(this).attr("class");(t=i?"."+i.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(t).style({opacity:0});var l=this.textContent;r.select(this).transition().duration(0).remove(),r.select(document).on("mouseup",null),a.edit.call(e,l)}).on("focus",function(){var e=this;n._editing=!0,r.select(document).on("mouseup",function(){if(r.event.target===e)return!1;document.activeElement===o.node()&&o.node().blur()})}).on("keyup",function(){27===r.event.which?(n._editing=!1,e.style({opacity:1}),r.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),a.cancel.call(e,this.textContent)):(a.input.call(e,this.textContent),r.select(this).call(L(e,i,t)))}).on("keydown",function(){13===r.event.which&&this.blur()}).call(s),e.style({opacity:0});var u,c=l.attr("class");(u=c?"."+c.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(u).style({opacity:0})}function s(e){var t=e.node(),n=document.createRange();n.selectNodeContents(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n),t.focus()}return t.immediate?o():l.on("click",o),r.rebind(e,a,"on")}},function(e,t,n){"use strict";e.exports={idRegex:{x:/^x([2-9]|[1-9][0-9]+)?$/,y:/^y([2-9]|[1-9][0-9]+)?$/},attrRegex:{x:/^xaxis([2-9]|[1-9][0-9]+)?$/,y:/^yaxis([2-9]|[1-9][0-9]+)?$/},xAxisMatch:/^xaxis[0-9]*$/,yAxisMatch:/^yaxis[0-9]*$/,AX_ID_PATTERN:/^[xyz][0-9]*$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4]}},function(e,t,n){"use strict";e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEAVGYEAR:315576e5,ONEAVGMONTH:26298e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:1-1e-6}},function(e,t,n){"use strict";e.exports={family:{valType:"string",role:"style",noBlank:!0,strict:!0,description:["HTML font family - the typeface that will be applied by the web browser.","The web browser will only be able to apply a font if it is available on the system","which it operates. Provide multiple font families, separated by commas, to indicate","the preference in which to apply fonts if they aren't available on the system.","The plotly service (at https://plot.ly or on-premise) generates images on a server,","where only a select number of","fonts are installed and supported.","These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*,","*Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*,","*PT Sans Narrow*, *Raleway*, *Times New Roman*."].join(" ")},size:{valType:"number",role:"style",min:1},color:{valType:"color",role:"style"}}},function(e,t,n){"use strict";var r=n(4),i=n(9),a=n(0),l=n(15);function o(e,t,n){var r=e._fullLayout;if(!r)return[];function a(e,n){for(var r=Object.keys(e),i=/^[xyz]axis[0-9]*/,a=[],l=0;lp&&(h=Math.max(h-1,1)),e.doneFn&&e.doneFn(f._dragged,h,t),!f._dragged){var n;try{n=new MouseEvent("click",t)}catch(e){(n=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}d.dispatchEvent(n)}return function(e){e._dragging=!1,e._replotPending&&r.plot(e)}(f),f._dragged=!1,i.pauseEvent(t)}f._dragged=!1}f._mouseDownTime||(f._mouseDownTime=0),e.element.onmousedown=function(r){return f._dragged=!1,f._dragging=!0,t=r.clientX,n=r.clientY,d=r.target,(s=(new Date).getTime())-f._mouseDownTime1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=z(e,360),t=z(t,100),n=z(n,100),0===t)r=i=a=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=l(s,o,e+1/3),i=l(s,o,e),a=l(s,o,e-1/3)}return{r:255*r,g:255*i,b:255*a}}(e.h,r,s),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var h,p,v;return n=S(n),{ok:d,format:e.format||f,r:u(255,c(t.r,0)),g:u(255,c(t.g,0)),b:u(255,c(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=o++}function h(e,t,n){e=z(e,255),t=z(t,255),n=z(n,255);var r,i,a=c(e,t,n),l=u(e,t,n),o=(a+l)/2;if(a==l)r=i=0;else{var s=a-l;switch(i=o>.5?s/(2-a-l):s/(a+l),a){case e:r=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(f(r));return a}function L(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,i=n.s,a=n.v,l=[],o=1/t;t--;)l.push(f({h:r,s:i,v:a})),a=(a+o)%1;return l}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=S(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return v(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var a=[O(s(e).toString(16)),O(s(t).toString(16)),O(s(n).toString(16)),O(R(r))];if(i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*z(this._r,255))+"%",g:s(100*z(this._g,255))+"%",b:s(100*z(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*z(this._r,255))+"%, "+s(100*z(this._g,255))+"%, "+s(100*z(this._b,255))+"%)":"rgba("+s(100*z(this._r,255))+"%, "+s(100*z(this._g,255))+"%, "+s(100*z(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(B[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+y(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=f(e);n="#"+y(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(w,arguments)},complement:function(){return this._applyCombination(K,arguments)},monochromatic:function(){return this._applyCombination(L,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(x,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:P(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),i=f(t).toRgb(),a=n/100;return f({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,i,a=f.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},f.mostReadable=function(e,t,n){var r,i,a,l,o=null,s=0;i=(n=n||{}).includeFallbackColors,a=n.level,l=n.size;for(var u=0;us&&(s=r,o=f(t[u]));return f.isReadable(e,o,{level:a,size:l})||!i?o:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var D=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);function S(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function z(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function G(e){return u(1,c(0,e))}function W(e){return parseInt(e,16)}function O(e){return 1==e.length?"0"+e:""+e}function P(e){return e<=1&&(e=100*e+"%"),e}function R(e){return i.round(255*parseFloat(e)).toString(16)}function E(e){return W(e)/255}var j,I,N,F=(I="[\\s|\\(]+("+(j="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",N="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",{CSS_UNIT:new RegExp(j),rgb:new RegExp("rgb"+I),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+I),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+I),hsva:new RegExp("hsva"+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function $(e){return!!F.CSS_UNIT.exec(e)}void 0!==e&&e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(11));t.default={computed:{playersPerMatch:function(){return r.playersPerMatch(this.selectedMode)},hasTalents:function(){return r.hasTalents(this.selectedMode)},selectedActor:{get:function(){return this.$route.query.actor||"*Kinetic*"},set:function(e){this.$ga.event("Hero","update",e);var t=Object.assign({},this.$route.query,{actor:e});this.$router.push({query:t})}},selectedMode:{get:function(){return this.$route.query.mode||"blitz_pvp_ranked"},set:function(e){this.$ga.event("Mode","update",e);var t=Object.assign({},this.$route.query,{mode:e});this.$router.push({query:t})}},filterRarity:{get:function(){return this.$route.query.rarity||""},set:function(e){this.$ga.event("Rarity","update",e);var t=Object.assign({},this.$route.query,{rarity:e});this.$router.push({query:t})}},filterName:{get:function(){return this.$route.query.search||""},set:function(e){this.$ga.event("Search","update",e);var t=Object.assign({},this.$route.query,{search:e});this.$router.push({query:t})}},filterLowPickrate:{get:function(){return 1==this.$route.query.lowPickrate},set:function(e){this.$ga.event("LowPickrate","update",e);var t=Object.assign({},this.$route.query,{lowPickrate:e});this.$router.push({query:t})}}}}},function(e,t,n){"use strict";var r=n(17),i=n(24),a=n(101).dash,l=n(10).extendFlat,o=n(15);e.exports={visible:{valType:"boolean",role:"info",description:["A single toggle to hide the axis while preserving interaction like dragging.","Default is true when a cheater plot is present on the axis, otherwise","false"].join(" ")},color:{valType:"color",dflt:i.defaultLine,role:"style",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},title:{valType:"string",role:"info",description:"Sets the title of this axis."},titlefont:l({},r,{description:["Sets this axis' title font."].join(" ")}),type:{valType:"enumerated",values:["-","linear","log","date","category"],dflt:"-",role:"info",description:["Sets the axis type.","By default, plotly attempts to determined the axis type","by looking into the data of the traces that referenced","the axis in question."].join(" ")},autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,role:"style",description:["Determines whether or not the range of this axis is","computed in relation to the input data.","See `rangemode` for more info.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",role:"style",description:["If *normal*, the range is computed in relation to the extrema","of the input data.","If *tozero*`, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data."].join(" ")},range:{valType:"info_array",role:"info",items:[{valType:"any"},{valType:"any"}],description:["Sets the range of this axis.","If the axis `type` is *log*, then you must take the log of your","desired range (e.g. to set the range from 1 to 100,","set the range from 0 to 2).","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},fixedrange:{valType:"boolean",dflt:!1,role:"info",description:["Determines whether or not this axis is zoom-able.","If true, then zoom is disabled."].join(" ")},scaleanchor:{valType:"enumerated",values:[o.idRegex.x.toString(),o.idRegex.y.toString()],role:"info",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","changes together with the range of the corresponding axis","such that the scale of pixels per unit is in a constant ratio.","Both axes are still zoomable, but when you zoom one, the other will","zoom the same amount, keeping a fixed midpoint.","`constrain` and `constraintoward` determine how we enforce the constraint.","You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}`","but you can only link axes of the same `type`.","The linked axis can have the opposite letter (to constrain the aspect ratio)","or the same letter (to match scales across subplots).","Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant","and the last constraint encountered will be ignored to avoid possible","inconsistent constraints via `scaleratio`."].join(" ")},scaleratio:{valType:"number",min:0,dflt:1,role:"info",description:["If this axis is linked to another by `scaleanchor`, this determines the pixel","to unit scale ratio. For example, if this value is 10, then every unit on","this axis spans 10 times the number of pixels as a unit on the linked axis.","Use this for example to create an elevation profile where the vertical scale","is exaggerated a fixed amount with respect to the horizontal."].join(" ")},constrain:{valType:"enumerated",values:["range","domain"],dflt:"range",role:"info",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines how that happens:","by increasing the *range* (default), or by decreasing the *domain*."].join(" ")},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],role:"info",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines which direction we push","the originally specified plot area. Options are *left*, *center* (default),","and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes."].join(" ")},tickmode:{valType:"enumerated",values:["auto","linear","array"],role:"info",description:["Sets the tick mode for this axis.","If *auto*, the number of ticks is set via `nticks`.","If *linear*, the placement of the ticks is determined by","a starting position `tick0` and a tick step `dtick`","(*linear* is the default value if `tick0` and `dtick` are provided).","If *array*, the placement of the ticks is set via `tickvals`","and the tick text is `ticktext`.","(*array* is the default value if `tickvals` is provided)."].join(" ")},nticks:{valType:"integer",min:0,dflt:0,role:"style",description:["Specifies the maximum number of ticks for the particular axis.","The actual number of ticks will be chosen automatically to be","less than or equal to `nticks`.","Has an effect only if `tickmode` is set to *auto*."].join(" ")},tick0:{valType:"any",role:"style",description:["Sets the placement of the first tick on this axis.","Use with `dtick`.","If the axis `type` is *log*, then you must take the log of your starting tick","(e.g. to set the starting tick to 100, set the `tick0` to 2)","except when `dtick`=*L* (see `dtick` for more info).","If the axis `type` is *date*, it should be a date string, like date data.","If the axis `type` is *category*, it should be a number, using the scale where","each category is assigned a serial number from zero in the order it appears."].join(" ")},dtick:{valType:"any",role:"style",description:["Sets the step in-between ticks on this axis. Use with `tick0`.","Must be a positive number, or special strings available to *log* and *date* axes.","If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n","is the tick number. For example,","to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1.","To set tick marks at 1, 100, 10000, ... set dtick to 2.","To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433.","*log* has several special values; *L*, where `f` is a positive number,","gives ticks linearly spaced in value (but not position).","For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc.","To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5).","`tick0` is ignored for *D1* and *D2*.","If the axis `type` is *date*, then you must convert the time to milliseconds.","For example, to set the interval between ticks to one day,","set `dtick` to 86400000.0.","*date* also has special values *M* gives ticks spaced by a number of months.","`n` must be a positive integer.","To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*.","To set ticks every 4 years, set `dtick` to *M48*"].join(" ")},tickvals:{valType:"data_array",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},ticktext:{valType:"data_array",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},ticks:{valType:"enumerated",values:["outside","inside",""],role:"style",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *outside* (*inside*), this axis' are drawn outside (inside)","the axis lines."].join(" ")},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,role:"style",description:["Determines if the axis lines or/and ticks are mirrored to","the opposite side of the plotting area.","If *true*, the axis lines are mirrored.","If *ticks*, the axis lines and ticks are mirrored.","If *false*, mirroring is disable.","If *all*, axis lines are mirrored on all shared-axes subplots.","If *allticks*, axis lines and ticks are mirrored","on all shared-axes subplots."].join(" ")},ticklen:{valType:"number",min:0,dflt:5,role:"style",description:"Sets the tick length (in px)."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the tick width (in px)."},tickcolor:{valType:"color",dflt:i.defaultLine,role:"style",description:"Sets the tick color."},showticklabels:{valType:"boolean",dflt:!0,role:"style",description:"Determines whether or not the tick labels are drawn."},showspikes:{valType:"boolean",dflt:!1,role:"style",description:["Determines whether or not spikes (aka droplines) are drawn for this axis.","Note: This only takes affect when hovermode = closest"].join(" ")},spikecolor:{valType:"color",dflt:null,role:"style",description:"Sets the spike color. If undefined, will use the series color"},spikethickness:{valType:"number",dflt:3,role:"style",description:"Sets the width (in px) of the zero line."},spikedash:l({},a,{dflt:"dash"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],role:"style",dflt:"toaxis",description:["Determines the drawing mode for the spike line","If *toaxis*, the line is drawn from the data point to the axis the ","series is plotted on.","If *across*, the line is drawn across the entire plot area, and","supercedes *toaxis*.","If *marker*, then a marker dot is drawn on the axis the series is","plotted on"].join(" ")},tickfont:l({},r,{description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",role:"style",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},tickprefix:{valType:"string",dflt:"",role:"style",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",role:"style",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",role:"style",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B."].join(" ")},separatethousands:{valType:"boolean",dflt:!1,role:"style",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",role:"style",description:["Sets the tick label formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:","https://github.com/d3/d3-format/blob/master/README.md#locale_format","And for dates see:","https://github.com/d3/d3-time-format/blob/master/README.md#locale_format","We add one item to d3's date formatter: *%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")},hoverformat:{valType:"string",dflt:"",role:"style",description:["Sets the hover text formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:","https://github.com/d3/d3-format/blob/master/README.md#locale_format","And for dates see:","https://github.com/d3/d3-time-format/blob/master/README.md#locale_format","We add one item to d3's date formatter: *%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")},showline:{valType:"boolean",dflt:!1,role:"style",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:i.defaultLine,role:"style",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the width (in px) of the axis line."},showgrid:{valType:"boolean",role:"style",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")},gridcolor:{valType:"color",dflt:i.lightLine,role:"style",description:"Sets the color of the grid lines."},gridwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the width (in px) of the grid lines."},zeroline:{valType:"boolean",role:"style",description:["Determines whether or not a line is drawn at along the 0 value","of this axis.","If *true*, the zero line is drawn on top of the grid lines."].join(" ")},zerolinecolor:{valType:"color",dflt:i.defaultLine,role:"style",description:"Sets the line color of the zero line."},zerolinewidth:{valType:"number",dflt:1,role:"style",description:"Sets the width (in px) of the zero line."},anchor:{valType:"enumerated",values:["free",o.idRegex.x.toString(),o.idRegex.y.toString()],role:"info",description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to","the corresponding opposite-letter axis.","If set to *free*, this axis' position is determined by `position`."].join(" ")},side:{valType:"enumerated",values:["top","bottom","left","right"],role:"info",description:["Determines whether a x (y) axis is positioned","at the *bottom* (*left*) or *top* (*right*)","of the plotting area."].join(" ")},overlaying:{valType:"enumerated",values:["free",o.idRegex.x.toString(),o.idRegex.y.toString()],role:"info",description:["If set a same-letter axis id, this axis is overlaid on top of","the corresponding same-letter axis.","If *false*, this axis does not overlay any same-letter axes."].join(" ")},domain:{valType:"info_array",role:"info",items:[{valType:"number",min:0,max:1},{valType:"number",min:0,max:1}],dflt:[0,1],description:["Sets the domain of this axis (in plot fraction)."].join(" ")},position:{valType:"number",min:0,max:1,dflt:0,role:"style",description:["Sets the position of this axis in the plotting space","(in normalized coordinates).","Only has an effect if `anchor` is set to *free*."].join(" ")},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",role:"info",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`."].join(" ")},categoryarray:{valType:"data_array",role:"info",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},_deprecated:{autotick:{valType:"boolean",role:"info",description:["Obsolete.","Set `tickmode` to *auto* for old `autotick` *true* behavior.","Set `tickmode` to *linear* for `autotick` *false*."].join(" ")}}}},function(e,t,n){"use strict";t.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],t.defaultLine="#444",t.lightLine="#eee",t.background="#fff",t.borderLine="#BEC8D9",t.lightFraction=1e3/11},function(e,t,n){"use strict";e.exports={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(11)),i=a(n(319));function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=0}),c=u.map(function(e){return e.LevelBucket}).sort(),d=function(e){return u.find(function(t){return t.LevelBucket==e})},f=c.map(function(e){return d(e).Count}),h=f.reduce(o,0),p=(t=[]).concat.apply(t,l(c.map(function(e,t){return s(f[t]).map(function(t){return e/i.config.self.levelBuckets})}))),v=(n=[]).concat.apply(n,l(c.map(function(e,t){return s(f[t]).map(function(t){return d(e).Winner})}))),y=p.length,g=p.reduce(o,0),m=v.reduce(o,0),_=p.map(function(e,t){return e*v[t]}).reduce(o,0),T=p.map(function(e){return e*e}).reduce(o,0),b=(v.map(function(e){return e*e}).reduce(o,0),(y*_-g*m)/(y*T-g*g)),M=(m-b*g)/y,k=v.map(function(e){return Math.pow(e-m/y,2)}).reduce(o,0),K=1-v.map(function(e,t){return Math.pow(M+b*p[t]-e,2)}).reduce(o,0)/k;return Object.assign({},e,{TalentWinrateBase:M,TalentWinrateScaling:b,TalentWinrateMax:M+b,TalentWinrateLevelScaling:b/r.getMaxLevel(e),TalentWinrateVariance:K,TotalPicks:h||e.Count,TotalWinner:m/h||e.Winner,SampleTooSmall:h<300,KillDeathPoints:r.killDeathPoints(e),ObjectivePoints:r.objectivePoints(e),BlitzPointsDelta:r.blitzPointsDelta(e),VarianceTooLarge:K<.25})});s.set(e,K),u.set(e,s.get(e).map(function(e){return e.TotalPicks}).reduce(function(e,t){return e+t},0)),M+=u.get(e)/r.playersPerMatch(e),c.set(e,s.get(e).sort(function(e,n){return t(n)-t(e)}).slice(0,10)),d.set(e,s.get(e).sort(function(e,t){return t.TotalPicks-e.TotalPicks})[0]),f.set(e,s.get(e).filter(function(t){return 100*n*t.TotalPicks/u.get(e)>1}).sort(function(e,t){return t.TotalWinner-e.TotalWinner})[0]),m.set(e,s.get(e).filter(function(t){return 100*n*t.TotalPicks/u.get(e)<=1&&t.TotalPicks>300}).sort(function(e,t){return t.TotalWinner-e.TotalWinner})[0]),h.set(e,s.get(e).filter(function(t){return"Rare"==r.getTalentRarity(t.Talent)&&100*n*t.TotalPicks/u.get(e)}).sort(function(e,t){return t.TotalWinner-e.TotalWinner})[0]),p.set(e,s.get(e).filter(function(t){return"Epic"==r.getTalentRarity(t.Talent)&&100*n*t.TotalPicks/u.get(e)}).sort(function(e,t){return t.TotalWinner-e.TotalWinner})[0]),v.set(e,s.get(e).filter(function(t){return"Legendary"==r.getTalentRarity(t.Talent)&&100*n*t.TotalPicks/u.get(e)}).sort(function(e,t){return t.TotalWinner-e.TotalWinner})[0]),y.set(e,s.get(e).filter(function(e){return!e.SampleTooSmall&&!e.VarianceTooLarge}).sort(function(e,t){return t.TalentWinrateBase-e.TalentWinrateBase})[0]),g.set(e,s.get(e).filter(function(e){return!e.SampleTooSmall&&!e.VarianceTooLarge}).sort(function(e,t){return t.TalentWinrateLevelScaling-e.TalentWinrateLevelScaling})[0]),_.set(e,s.get(e).filter(function(e){return!e.SampleTooSmall&&!e.VarianceTooLarge}).sort(function(e,t){return t.KillDeathPoints-e.KillDeathPoints})[0]),T.set(e,s.get(e).filter(function(e){return!e.SampleTooSmall&&!e.VarianceTooLarge}).sort(function(e,t){return t.ObjectivePoints-e.ObjectivePoints})[0]),b.set(e,s.get(e).filter(function(e){return!e.SampleTooSmall&&!e.VarianceTooLarge}).sort(function(e,t){return t.BlitzPointsDelta-e.BlitzPointsDelta})[0]),0==k.length&&(k=[].concat(l(new Set(s.get(e).map(function(e){return e.Actor})))))},C=!0,A=!1,w=void 0;try{for(var L,D=K[Symbol.iterator]();!(C=(L=D.next()).done);C=!0){x(L.value)}}catch(e){A=!0,w=e}finally{try{!C&&D.return&&D.return()}finally{if(A)throw w}}t.default={getReport:function(e){return s.get(e)},getTotalPicks:function(e){return u.get(e)},getTopPick:function(e){return d.get(e)},getTop10Picks:function(e){return c.get(e)},getTopLowLevel:function(e){return y.get(e)},getTopScaling:function(e){return g.get(e)},getTopWin:function(e){return f.get(e)},getTopUnpopularWin:function(e){return m.get(e)},getTopRareWins:function(e){return h.get(e)},getTopEpicWins:function(e){return p.get(e)},getTopLegendaryWins:function(e){return v.get(e)},getBestUnpopular:function(e){return topUnpopular.get(e)},getTopKillDeathPoints:function(e){return _.get(e)},getTopObjectivePoints:function(e){return T.get(e)},getTopBlitzPointsDelta:function(e){return b.get(e)},getActors:function(){return k},getModes:function(){return K},getTotalMatches:function(){return M},getLastUpdate:function(){return i.lastUpdate},getLevelBuckets:function(){return i.config.self.levelBuckets}}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n){var i,a=n.name,l=t[a],o=r.isArray(e[a])?e[a]:[],s=t[a]=[];for(i=0;i1){for(var e=["LOG:"],t=0;t0){for(var e=["WARN:"],t=0;t0){for(var e=["ERROR:"],t=0;t), bold (), italics (),","hyperlinks (). Tags , , "," are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,role:"style",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:l({},i,{description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,role:"style",description:["Sets an explicit width for the text box. null (default) lets the","text set the box width. Wider text will be clipped.","There is no automatic wrapping; use
to start a new line."].join(" ")},height:{valType:"number",min:1,dflt:null,role:"style",description:["Sets an explicit height for the text box. null (default) lets the","text set the box height. Taller text will be clipped."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"style",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",role:"style",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans more two or more lines","(i.e. `text` contains one or more
HTML tags) or if an","explicit width is set to override the text width."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",role:"style",description:["Sets the vertical alignment of the `text` within the box.","Has an effect only if an explicit height is set to override","the text height."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,role:"style",description:["Determines whether or not the annotation is drawn with an arrow.","If *true*, `text` is placed near the arrow's tail.","If *false*, `text` lines up with the `x` and `y` provided."].join(" ")},arrowcolor:{valType:"color",role:"style",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:r.length,dflt:1,role:"style",description:"Sets the annotation arrow head style."},arrowsize:{valType:"number",min:.3,dflt:1,role:"style",description:"Sets the size (in px) of annotation arrow head."},arrowwidth:{valType:"number",min:.1,role:"style",description:"Sets the width (in px) of annotation arrow."},standoff:{valType:"number",min:0,dflt:0,role:"style",description:["Sets a distance, in pixels, to move the arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},ax:{valType:"any",role:"info",description:["Sets the x component of the arrow tail about the arrow head.","If `axref` is `pixel`, a positive (negative) ","component corresponds to an arrow pointing","from right to left (left to right).","If `axref` is an axis, this is an absolute value on that axis,","like `x`, NOT a relative value."].join(" ")},ay:{valType:"any",role:"info",description:["Sets the y component of the arrow tail about the arrow head.","If `ayref` is `pixel`, a positive (negative) ","component corresponds to an arrow pointing","from bottom to top (top to bottom).","If `ayref` is an axis, this is an absolute value on that axis,","like `y`, NOT a relative value."].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.x.toString()],role:"info",description:["Indicates in what terms the tail of the annotation (ax,ay) ","is specified. If `pixel`, `ax` is a relative offset in pixels ","from `x`. If set to an x axis id (e.g. *x* or *x2*), `ax` is ","specified in the same terms as that axis. This is useful ","for trendline annotations which should continue to indicate ","the correct trend when zoomed."].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.y.toString()],role:"info",description:["Indicates in what terms the tail of the annotation (ax,ay) ","is specified. If `pixel`, `ay` is a relative offset in pixels ","from `y`. If set to a y axis id (e.g. *y* or *y2*), `ay` is ","specified in the same terms as that axis. This is useful ","for trendline annotations which should continue to indicate ","the correct trend when zoomed."].join(" ")},xref:{valType:"enumerated",values:["paper",a.idRegex.x.toString()],role:"info",description:["Sets the annotation's x coordinate axis.","If set to an x axis id (e.g. *x* or *x2*), the `x` position","refers to an x coordinate","If set to *paper*, the `x` position refers to the distance from","the left side of the plotting area in normalized coordinates","where 0 (1) corresponds to the left (right) side."].join(" ")},x:{valType:"any",role:"info",description:["Sets the annotation's x position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",role:"info",description:["Sets the text box's horizontal position anchor","This anchor binds the `x` position to the *left*, *center*","or *right* of the annotation.","For example, if `x` is set to 1, `xref` to *paper* and","`xanchor` to *right* then the right-most portion of the","annotation lines up with the right-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *center* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},xshift:{valType:"number",dflt:0,role:"style",description:["Shifts the position of the whole annotation and arrow to the","right (positive) or left (negative) by this many pixels."].join(" ")},yref:{valType:"enumerated",values:["paper",a.idRegex.y.toString()],role:"info",description:["Sets the annotation's y coordinate axis.","If set to an y axis id (e.g. *y* or *y2*), the `y` position","refers to an y coordinate","If set to *paper*, the `y` position refers to the distance from","the bottom of the plotting area in normalized coordinates","where 0 (1) corresponds to the bottom (top)."].join(" ")},y:{valType:"any",role:"info",description:["Sets the annotation's y position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",role:"info",description:["Sets the text box's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the annotation.","For example, if `y` is set to 1, `yref` to *paper* and","`yanchor` to *top* then the top-most portion of the","annotation lines up with the top-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *middle* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},yshift:{valType:"number",dflt:0,role:"style",description:["Shifts the position of the whole annotation and arrow up","(positive) or down (negative) by this many pixels."].join(" ")},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,role:"style",description:["Makes this annotation respond to clicks on the plot.","If you click a data point that exactly matches the `x` and `y`","values of this annotation, and it is hidden (visible: false),","it will appear. In *onoff* mode, you must click the same point","again to make it disappear, so if you click multiple points,","you can show multiple annotations. In *onout* mode, a click","anywhere else in the plot (on another data point or not) will","hide this annotation.","If you need to show/hide this annotation in response to different","`x` or `y` values, you can set `xclick` and/or `yclick`. This is","useful for example to label the side of a bar. To label markers","though, `standoff` is preferred over `xclick` and `yclick`."].join(" ")},xclick:{valType:"any",role:"info",description:["Toggle this annotation when clicking a data point whose `x` value","is `xclick` rather than the annotation's `x` value."].join(" ")},yclick:{valType:"any",role:"info",description:["Toggle this annotation when clicking a data point whose `y` value","is `yclick` rather than the annotation's `y` value."].join(" ")},hovertext:{valType:"string",role:"info",description:["Sets text to appear when hovering over this annotation.","If omitted or blank, no hover label will appear."].join(" ")},hoverlabel:{bgcolor:{valType:"color",role:"style",description:["Sets the background color of the hover label.","By default uses the annotation's `bgcolor` made opaque,","or white if it was transparent."].join(" ")},bordercolor:{valType:"color",role:"style",description:["Sets the border color of the hover label.","By default uses either dark grey or white, for maximum","contrast with `hoverlabel.bgcolor`."].join(" ")},font:l({},i,{description:["Sets the hover label text font.","By default uses the global hover font and size,","with color from `hoverlabel.bordercolor`."].join(" ")})},captureevents:{valType:"boolean",role:"info",description:["Determines whether the annotation text box captures mouse move","and click events, or allows those events to pass through to data","points in the plot that may be behind the annotation. By default","`captureevents` is *false* unless `hovertext` is provided.","If you use the event `plotly_clickannotation` without `hovertext`","you must explicitly enable `captureevents`."].join(" ")},_deprecated:{ref:{valType:"string",role:"info",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}}},function(e,t,n){"use strict";t.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},t.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},t.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3},t.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3}},function(e,t,n){"use strict";e.exports={MAXDIST:20,YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50}},function(e,t,n){"use strict";var r=n(2),i=n(0),a=n(99);e.exports=function(e,t){var n=t?i.nestedProperty(e,t).get()||{}:e,l=n.color,o=!1;if(Array.isArray(l))for(var s=0;s2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}t._w=W,t._h=O;for(var j=!1,I=["x","y"],N=0;N1)&&(X===Y?((ae=Z.r2fraction(t["a"+U]))<0||ae>1)&&(j=!0):j=!0,j))continue;F=Z._offset+Z.r2p(t[U]),H=.5}else"x"===U?(V=t[U],F=T.l+T.w*V):(V=1-t[U],F=T.t+T.h*V),H=t.showarrow?.5:V;if(t.showarrow){ie.head=F;var le=t["a"+U];q=Q*E(.5,t.xanchor)-ee*E(.5,t.yanchor),X===Y?(ie.tail=Z._offset+Z.r2p(le),$=q):(ie.tail=F+le,$=q+le),ie.text=ie.tail+q;var oe=_["x"===U?"width":"height"];if("paper"===Y&&(ie.head=l.constrain(ie.head,1,oe-1)),"pixel"===X){var se=-Math.max(ie.tail-3,ie.text),ue=Math.min(ie.tail+3,ie.text)-oe;se>0?(ie.tail+=se,ie.text+=se):ue>0&&(ie.tail-=ue,ie.text-=ue)}ie.tail+=re,ie.head+=re}else $=q=te*E(H,ne),ie.text=F+q;ie.text+=re,q+=re,$+=re,t["_"+U+"padplus"]=te/2+$,t["_"+U+"padminus"]=te/2-$,t["_"+U+"size"]=te,t["_"+U+"shift"]=q}if(j)C.remove();else{var ce=0,de=0;if("left"!==t.align&&(ce=(W-w)*("center"===t.align?.5:1)),"top"!==t.valign&&(de=(O-z)*("middle"===t.valign?.5:1)),c)r.select("svg").attr({x:L+ce-1,y:L+de}).call(u.setClipUrl,B?b:null);else{var fe=L+de-y.top,he=L+ce-y.left;G.call(d.positionText,he,fe).call(u.setClipUrl,B?b:null)}S.select("rect").call(u.setRect,L,L,W,O),D.call(u.setRect,A/2,A/2,P-A,R-A),C.call(u.setTranslate,Math.round(M.x.text-P/2),Math.round(M.y.text-R/2)),x.attr({transform:"rotate("+k+","+M.x.text+","+M.y.text+")"});var pe,ve,ye=function(n,r){K.selectAll(".annotation-arrow-g").remove();var c=M.x.head,d=M.y.head,f=M.x.tail+n,y=M.y.tail+r,_=M.x.text+n,b=M.y.text+r,A=l.rotationXYMatrix(k,_,b),w=l.apply2DTransform(A),L=l.apply2DTransform2(A),B=+D.attr("width"),S=+D.attr("height"),z=_-.5*B,G=z+B,W=b-.5*S,O=W+S,P=[[z,W,z,O],[z,O,G,O],[G,O,G,W],[G,W,z,W]].map(L);if(!P.reduce(function(e,t){return e^!!g(c,d,c+1e6,d+1e6,t[0],t[1],t[2],t[3])},!1)){P.forEach(function(e){var t=g(f,y,c,d,e[0],e[1],e[2],e[3]);t&&(f=t.x,y=t.y)});var R=t.arrowwidth,E=t.arrowcolor,j=K.append("g").style({opacity:s.opacity(E)}).classed("annotation-arrow-g",!0),I=j.append("path").attr("d","M"+f+","+y+"L"+c+","+d).style("stroke-width",R+"px").call(s.stroke,s.rgb(E));if(p(I,t.arrowhead,"end",t.arrowsize,t.standoff),e._context.editable&&I.node().parentNode&&!a){var N=c,F=d;if(t.standoff){var $=Math.sqrt(Math.pow(c-f,2)+Math.pow(d-y,2));N+=t.standoff*(f-c)/$,F+=t.standoff*(y-d)/$}var V,H,q,U=j.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(f-N)+","+(y-F),transform:"translate("+N+","+F+")"}).style("stroke-width",R+6+"px").call(s.stroke,"rgba(0,0,0,0)").call(s.fill,"rgba(0,0,0,0)");h.init({element:U.node(),gd:e,prepFn:function(){var e=u.getTranslate(C);H=e.x,q=e.y,V={},o&&o.autorange&&(V[o._name+".autorange"]=!0),v&&v.autorange&&(V[v._name+".autorange"]=!0)},moveFn:function(e,n){var r=w(H,q),i=r[0]+e,a=r[1]+n;C.call(u.setTranslate,i,a),V[m+".x"]=o?o.p2r(o.r2p(t.x)+e):t.x+e/T.w,V[m+".y"]=v?v.p2r(v.r2p(t.y)+n):t.y-n/T.h,t.axref===t.xref&&(V[m+".ax"]=o.p2r(o.r2p(t.ax)+e)),t.ayref===t.yref&&(V[m+".ay"]=v.p2r(v.r2p(t.ay)+n)),j.attr("transform","translate("+e+","+n+")"),x.attr({transform:"rotate("+k+","+i+","+a+")"})},doneFn:function(t){if(t){i.relayout(e,V);var n=document.querySelector(".js-notes-box-panel");n&&n.redraw(n.selectedObj)}}})}}};if(t.showarrow&&ye(0,0),e._context.editable)h.init({element:C.node(),gd:e,prepFn:function(){ve=x.attr("transform"),pe={}},moveFn:function(e,n){var r="pointer";if(t.showarrow)t.axref===t.xref?pe[m+".ax"]=o.p2r(o.r2p(t.ax)+e):pe[m+".ax"]=t.ax+e,t.ayref===t.yref?pe[m+".ay"]=v.p2r(v.r2p(t.ay)+n):pe[m+".ay"]=t.ay+n,ye(e,n);else{if(a)return;if(o)pe[m+".x"]=t.x+e/o._m;else{var i=t._xsize/T.w,l=t.x+(t._xshift-t.xshift)/T.w-i/2;pe[m+".x"]=h.align(l+e/T.w,i,0,1,t.xanchor)}if(v)pe[m+".y"]=t.y+n/v._m;else{var s=t._ysize/T.h,u=t.y-(t._yshift+t.yshift)/T.h-s/2;pe[m+".y"]=h.align(u-n/T.h,s,0,1,t.yanchor)}o&&v||(r=h.getCursor(o?.5:pe[m+".x"],v?.5:pe[m+".y"],t.xanchor,t.yanchor))}x.attr({transform:"translate("+e+","+n+")"+ve}),f(C,r)},doneFn:function(t){if(f(C),t){i.relayout(e,pe);var n=document.querySelector(".js-notes-box-panel");n&&n.redraw(n.selectedObj)}}})}}}function g(e,t,n,r,i,a,l,o){var s=n-e,u=i-e,c=l-i,d=r-t,f=a-t,h=o-a,p=s*h-c*d;if(0===p)return null;var v=(u*h-c*f)/p,y=(u*d-s*f)/p;return y<0||y>1||v<0||v>1?null:{x:e+s*v,y:t+d*v}}e.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var n=0;nJ.width||Z<0||Z>J.height)return f.unhoverRaw(e,t)}if(W="xval"in t?v.flat(g,t.xval):v.p2c(K,X),O="yval"in t?v.flat(g,t.yval):v.p2c(L,Z),!i(W[0])||!i(O[0]))return l.warn("Fx.hover failed",t,e),f.unhoverRaw(e,t)}var Q=1/0;for(R=0;Rq&&(U.splice(0,q),Q=U[0].distance)}if(0===U.length)return f.unhoverRaw(e,t);U.sort(function(e,t){return e.distance-t.distance});var ie=e._hoverdata,ae=[];for(P=0;P1,ue=x(U,{hovermode:G,rotateLabels:se,bgColor:d.combine(m.plot_bgcolor||d.background,m.paper_bgcolor),container:m._hoverlayer,outerContainer:m._paperdiv,commonLabelOpts:m.hoverlabel},e);if(function(e,t){var n,r,i,a,l,o,s,u=0,c=e.map(function(e,n){var r=e[t];return[{i:n,dp:0,pos:e.pos,posref:e.posref,size:e.by*("x"===r._id.charAt(0)?_:1)/2,pmin:r._offset,pmax:r._offset+r._length}]}).sort(function(e,t){return e[0].posref-t[0].posref});function d(e){var t=e[0],s=e[e.length-1];if(r=t.pmin-t.pos-t.dp+t.size,i=s.pos+s.dp+s.size-t.pmax,r>.01){for(l=e.length-1;l>=0;l--)e[l].dp+=r;n=!1}if(!(i<.01)){if(r<-.01){for(l=e.length-1;l>=0;l--)e[l].dp-=i;n=!1}if(n){var u=0;for(a=0;at.pmax&&u++;for(a=e.length-1;a>=0&&!(u<=0);a--)(o=e[a]).pos>t.pmax-1&&(o.del=!0,u--);for(a=0;a=0;l--)e[l].dp-=i;for(a=e.length-1;a>=0&&!(u<=0);a--)(o=e[a]).pos+o.dp+o.size>t.pmax&&(o.del=!0,u--)}}}for(;!n&&u<=e.length;){for(u++,n=!0,a=0;a.01&&p.pmin===v.pmin&&p.pmax===v.pmax){for(l=h.length-1;l>=0;l--)h[l].dp+=r;for(f.push.apply(f,h),c.splice(a+1,1),s=0,l=f.length-1;l>=0;l--)s+=f[l].dp;for(i=s/f.length,l=f.length-1;l>=0;l--)f[l].dp-=i;n=!1}else a++}c.forEach(d)}for(a=c.length-1;a>=0;a--){var y=c[a];for(l=y.length-1;l>=0;l--){var g=y[l],m=e[g.i];m.offset=g.dp,m.del=g.del}}}(U,se?"xa":"ya"),C(ue,se),t.target&&t.target.tagName){var ce=p.getComponentMethod("annotations","hasClickToShow")(e,ae);u(r.select(t.target),ce?"pointer":"")}t.target&&!s&&w(e,t,ie)&&(ie&&e.emit("plotly_unhover",{event:t,points:ie}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:K,yaxes:L,xvals:W,yvals:O}))}else e.emit("plotly_hover",{event:t.originalEvent,points:[t]})}function x(e,t,n){var i,a=t.hovermode,l=t.rotateLabels,o=t.bgColor,u=t.container,f=t.outerContainer,h=t.commonLabelOpts||{},p=t.fontFamily||y.HOVERFONT,v=t.fontSize||y.HOVERFONTSIZE,m=e[0],_=m.xa,T=m.ya,b="y"===a?"yLabel":"xLabel",K=m[b],x=(String(K)||"").split(" ")[0],C=f.node().getBoundingClientRect(),A=C.top,w=C.width,L=C.height,D=m.distance<=y.MAXDIST&&("x"===a||"y"===a);for(i=0;i15&&(i=i.substr(0,12)+"..."),void 0!==e.extraText&&(u+=e.extraText),void 0!==e.zLabel?(void 0!==e.xLabel&&(u+="x: "+e.xLabel+"
"),void 0!==e.yLabel&&(u+="y: "+e.yLabel+"
"),u+=(u?"z: ":"")+e.zLabel):D&&e[a+"Label"]===K?u=e[("x"===a?"y":"x")+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&(u=e.yLabel):u=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",e.text&&!Array.isArray(e.text)&&(u+=(u?"
":"")+e.text),""===u&&(""===i&&t.remove(),u=i);var m=t.select("text.nums").call(c.font,e.fontFamily||p,e.fontSize||v,e.fontColor||y).text(u).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,n),_=t.select("text.name"),T=0;i&&i!==u?(_.call(c.font,e.fontFamily||p,e.fontSize||v,h).text(i).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,n),T=_.node().getBoundingClientRect().width+2*k):(_.remove(),t.select("rect").remove()),t.select("path").style({fill:h,stroke:y});var b,x,C=m.node().getBoundingClientRect(),B=e.xa._offset+(e.x0+e.x1)/2,S=e.ya._offset+(e.y0+e.y1)/2,z=Math.abs(e.x1-e.x0),G=Math.abs(e.y1-e.y0),W=C.width+M+k+T;e.ty0=A-C.top,e.bx=C.width+2*k,e.by=C.height+2*k,e.anchor="start",e.txwidth=C.width,e.tx2width=T,e.offset=0,l?(e.pos=B,b=S+G/2+W<=L,x=S-G/2-W>=0,"top"!==e.idealAlign&&b||!x?b?(S+=G/2,e.anchor="start"):e.anchor="middle":(S-=G/2,e.anchor="end")):(e.pos=S,b=B+z/2+W<=w,x=B-z/2-W>=0,"left"!==e.idealAlign&&b||!x?b?(B+=z/2,e.anchor="start"):e.anchor="middle":(B-=z/2,e.anchor="end")),m.attr("text-anchor",e.anchor),T&&_.attr("text-anchor",e.anchor),t.attr("transform","translate("+B+","+S+")"+(l?"rotate("+g+")":""))}),z}function C(e,t){e.each(function(e){var n=r.select(this);if(e.del)n.remove();else{var i="end"===e.anchor?-1:1,a=n.select("text.nums"),l={start:1,end:-1,middle:0}[e.anchor],o=l*(M+k),u=o+l*(e.txwidth+k),d=0,f=e.offset;"middle"===e.anchor&&(o-=e.tx2width/2,u-=e.tx2width/2),t&&(f*=-b,d=e.offset*T),n.select("path").attr("d","middle"===e.anchor?"M-"+e.bx/2+",-"+e.by/2+"h"+e.bx+"v"+e.by+"h-"+e.bx+"Z":"M0,0L"+(i*M+d)+","+(M+f)+"v"+(e.by/2-M)+"h"+i*e.bx+"v-"+e.by+"H"+(i*M+d)+"V"+(f-M)+"Z"),a.call(s.positionText,o+d,f+e.ty0-e.by/2+k),e.tx2width&&(n.select("text.name").call(s.positionText,u+l*k+d,f+e.ty0-e.by/2+k),n.select("rect").call(c.setRect,u+(l-1)*e.tx2width/2+d,f-e.by/2-1,e.tx2width,e.by+2))}})}function A(e,t){var n,r=e.trace||{},i=e.cd[0],a=e.cd[e.index]||{};function o(t,n,o){var s;if(a[n])s=a[n];else if(i[n]){var u=i[n];Array.isArray(u)&&Array.isArray(u[e.index[0]])&&(s=u[e.index[0]][e.index[1]])}else s=l.nestedProperty(r,o).get();s&&(e[t]=s)}if(o("hoverinfo","hi","hoverinfo"),o("color","hbg","hoverlabel.bgcolor"),o("borderColor","hbc","hoverlabel.bordercolor"),o("fontFamily","htf","hoverlabel.font.family"),o("fontSize","hts","hoverlabel.font.size"),o("fontColor","htc","hoverlabel.font.color"),e.posref="y"===t?(e.x0+e.x1)/2:(e.y0+e.y1)/2,e.x0=l.constrain(e.x0,0,e.xa._length),e.x1=l.constrain(e.x1,0,e.xa._length),e.y0=l.constrain(e.y0,0,e.ya._length),e.y1=l.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal){n="log"===e.xa.type&&e.xLabelVal<=0;var s=h.tickText(e.xa,e.xa.c2l(n?-e.xLabelVal:e.xLabelVal),"hover");n?0===e.xLabelVal?e.xLabel="0":e.xLabel="-"+s.text:e.xLabel=s.text,e.xVal=e.xa.c2d(e.xLabelVal)}if(void 0!==e.yLabelVal){n="log"===e.ya.type&&e.yLabelVal<=0;var u=h.tickText(e.ya,e.ya.c2l(n?-e.yLabelVal:e.yLabelVal),"hover");n?0===e.yLabelVal?e.yLabel="0":e.yLabel="-"+u.text:e.yLabel=u.text,e.yVal=e.ya.c2d(e.yLabelVal)}if(void 0!==e.zLabelVal&&(e.zLabel=String(e.zLabelVal)),!(isNaN(e.xerr)||"log"===e.xa.type&&e.xerr<=0)){var c=h.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+c+" / -"+h.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+c,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var d=h.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+d+" / -"+h.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+d,"y"===t&&(e.distance+=1)}var f=e.hoverinfo||e.trace.hoverinfo;return"all"!==f&&(-1===(f=f.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===f.indexOf("y")&&(e.yLabel=void 0),-1===f.indexOf("z")&&(e.zLabel=void 0),-1===f.indexOf("text")&&(e.text=void 0),-1===f.indexOf("name")&&(e.name=void 0)),e}function w(e,t,n){if(!n||n.length!==e._hoverdata.length)return!0;for(var r=n.length-1;r>=0;r--){var i=n[r],a=e._hoverdata[r];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber))return!0}return!1}t.hover=function(e,t,n,r){if("string"==typeof e&&(e=document.getElementById(e)),void 0===e._lastHoverTime&&(e._lastHoverTime=0),void 0!==e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=void 0),Date.now()>e._lastHoverTime+y.HOVERMINTIME)return K(e,t,n,r),void(e._lastHoverTime=Date.now());e._hoverTimer=setTimeout(function(){K(e,t,n,r),e._lastHoverTime=Date.now(),e._hoverTimer=void 0},y.HOVERMINTIME)},t.loneHover=function(e,t){var n={color:e.color||d.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,trace:{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0},i=r.select(t.container),a=t.outerContainer?r.select(t.outerContainer):i,l={hovermode:"closest",rotateLabels:!1,bgColor:t.bgColor||d.background,container:i,outerContainer:a},o=x([n],l,t.gd);return C(o,l.rotateLabels),o.node()}},function(e,t,n){"use strict";var r=n(10).extendFlat,i=n(17),a=n(38);e.exports={dragmode:{valType:"enumerated",role:"info",values:["zoom","pan","select","lasso","orbit","turntable"],dflt:"zoom",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",role:"info",values:["x","y","closest",!1],description:"Determines the mode of hover interactions."},hoverlabel:{bgcolor:{valType:"color",role:"style",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",role:"style",description:["Sets the border color of all hover labels on graph."].join(" ")},font:{family:r({},i.family,{dflt:a.HOVERFONT}),size:r({},i.size,{dflt:a.HOVERFONTSIZE}),color:r({},i.color)}}}},function(e,t,n){"use strict";var r=n(0),i=n(38);t.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},t.flat=function(e,t){for(var n=new Array(e.length),r=0;r=0&&n.index0&&this._events[e].length>l&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},n.prototype.removeListener=function(e,t){var n,a,l,o;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(l=(n=this._events[e]).length,a=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(o=l;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){a=o;break}if(a<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";var r=n(0),i=n(89).EventEmitter;e.exports=function(e){var t=e.emitter||new i,n=new Promise(function(i,a){var l=window.Image,o=e.svg,s=e.format||"png";if(r.isIE()&&(o=(o=(o=o.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("$2")')).replace(/(\\')/gi,'"'),"svg"!==s)){var u=new Error("Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.");return a(u),e.promise?n:t.emit("error",u)}var c=e.canvas,d=c.getContext("2d"),f=new l,h="data:image/svg+xml,"+encodeURIComponent(o);c.height=e.height||150,c.width=e.width||300,f.onload=function(){var n;switch("svg"!==s&&d.drawImage(f,0,0),s){case"jpeg":n=c.toDataURL("image/jpeg");break;case"png":n=c.toDataURL("image/png");break;case"webp":n=c.toDataURL("image/webp");break;case"svg":n=h;break;default:if(a(new Error("Image format is not jpeg, png or svg")),!e.promise)return t.emit("error","Image format is not jpeg, png or svg")}i(n),e.promise||t.emit("success",n)},f.onerror=function(n){if(a(n),!e.promise)return t.emit("error",n)},f.src=h});return e.promise?n:t}},function(e,t,n){"use strict";var r=n(1),i=n(7),a=n(3),l=n(31),o=/"/g,s=new RegExp('("TOBESTRIPPED)|(TOBESTRIPPED")',"g");e.exports=function(e,t){var n,u=e._fullLayout,c=u._paper,d=u._toppaper;c.insert("rect",":first-child").call(i.setRect,0,0,u.width,u.height).call(a.fill,u.paper_bgcolor);var f=u._basePlotModules||[];for(n=0;n")?"":t.html(e).text()});return t.remove(),n}(g),g=(g=g.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(s,"'")}},function(e,t,n){"use strict";var r=n(0),i=n(9),a=r.extendFlat,l=r.extendDeep;function o(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:"",showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:"",hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}e.exports=function(e,t){var n;e.framework&&e.framework.isPolar&&(e=e.framework.getConfig());var r,s=e.data,u=e.layout,c=l([],s),d=l({},u,o(t.tileClass)),f=e._context||{};if(t.width&&(d.width=t.width),t.height&&(d.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){d.annotations=[];var h=Object.keys(d);for(n=0;n-1&&(d[h[n]].title="");for(n=0;n0||f<0){var v={left:[-n,0],right:[n,0],top:[0,-n],bottom:[0,n]}[g.side];t.attr("transform","translate("+v+")")}}}}},function(e,t,n){"use strict";e.exports=function(e){for(var t,n=e.length,r=new Array(n),i=n-1,a=0;i>=0;i--,a++)t=e[i],r[a]=[1-t[0],t[1]];return r}},function(e,t,n){"use strict";var r=n(25),i=n(163);e.exports=function(e){return void 0!==r[e]||i(e)}},function(e,t,n){"use strict";var r=n(2),i=n(0),a=n(292),l=n(291),o=n(99),s=n(98);e.exports=function(e,t,n,u,c){var d,f=c.prefix,h=c.cLetter,p=f.slice(0,f.length-1),v=f?i.nestedProperty(e,p).get()||{}:e,y=f?i.nestedProperty(t,p).get()||{}:t,g=v[h+"min"],m=v[h+"max"],_=v.colorscale;u(f+h+"auto",!(r(g)&&r(m)&&g0)return Math.log(e)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return r(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}},function(e,t,n){"use strict";var r="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}};e.exports=function(e){return Array.isArray(e)||r.isView(e)}},function(e,t,n){"use strict";var r=n(2),i=n(106),a=n(32),l=n(167);e.exports=function(e,t){if(r(t))t=String(t);else if("string"!=typeof t||"[-1]"===t.substr(t.length-4))throw"bad property string";for(var n,a,l,o=0,s=t.split(".");o=0;t--){if(r=e[t][0],a=e[t][1],o=!1,i(r))for(n=r.length-1;n>=0;n--)u(r[n],d(a,n))?o?r[n]=void 0:r.pop():o=!0;else if("object"==typeof r&&null!==r)for(l=Object.keys(r),o=!1,n=l.length-1;n>=0;n--)u(r[l[n]],d(a,l[n]))?delete r[l[n]]:o=!0;if(o)return}}(c)):o[t[l]]=r}}function d(e,t){var n=t;return r(t)?n="["+t+"]":e&&(n="."+t),e+n}function f(e,t,n,r){var a,l=i(n),o=!0,s=n,d=r.replace("-1",0),f=!l&&u(n,d),p=t[0];for(a=0;a0&&console.error(t)}},topojsonURL:"https://cdn.plot.ly/",mapboxAccessToken:null,logging:!1,globalTransforms:[]}},function(e,t,n){"use strict";var r=function(){var e=this.$createElement,t=this._self._c||e;return t("figure",{staticClass:"image"},[t("img",{style:this.round?"border-radius: 50%":"",attrs:{src:"/dist/assets/hero-icons/"+this.hero.toLowerCase()+".jpg",alt:this.hero,title:this.hero}})])},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("p",{staticClass:"title-box"},[e._v(e._s(e.title))]),e._v(" "),n("div",{staticClass:"columns is-mobile"},[n("div",{staticClass:"column is-centered"},[n("hero-image",{staticClass:"is-64x64 hero-image-slot",attrs:{actor:e.entry.Actor}}),e._v(" "),n("span",{staticClass:"hero-name"},[e._v(e._s(e.hero))])],1),e._v(" "),n("div",{staticClass:"column value is-centered"},[e.hasTalent?n("talent-image",{attrs:{entry:e.entry,size:64}}):n("span",[e._v("No Talent")]),e._v(" "),n("span",[e._v(e._s(e.value)+e._s(e.label))]),e._v(" "),n("span",{staticClass:"type"},[e._v(e._s(e.type))])],1)])])},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"None"!=e.rarity?n("div",{staticClass:"talent-image",style:"background-image: url('/dist/assets/talent-icons-small/"+e.hero+"/"+e.hero+"_"+e.rarity+".jpg'); width: "+e.size+"px; height: "+e.size+"px",attrs:{alt:e.hero+" "+e.rarity,title:e.hero+" "+e.rarity}}):e._e()},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"columns is-multiline is-mobile"},[e.stats.topWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Overpowered",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topWin.TotalWinner),entry:e.stats.topWin}})],1):e._e(),e._v(" "),e.stats.topPick?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Trending",type:"Total Pick Rate",label:"%",value:(100*e.playersPerMatch*e.stats.topPick.Count/e.stats.totalPicks).toFixed(2),entry:e.stats.topPick}})],1):e._e(),e._v(" "),e.stats.topLowLevel?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Beginner",type:"Level 1 Win Rate",label:"%",value:Math.round(100*e.stats.topLowLevel.Winner),entry:e.stats.topLowLevel}})],1):e._e(),e._v(" "),e.stats.topScaling?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Spender",type:"Win Rate per Level",label:"%",value:"+"+Math.round(100*e.stats.topScaling.TalentWinrateLevelScaling),entry:e.stats.topScaling}})],1):e._e(),e._v(" "),e.stats.topUnpopularWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Hidden Gem",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topUnpopularWin.TotalWinner),entry:e.stats.topUnpopularWin}})],1):e._e(),e._v(" "),e.stats.topRareWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Best Rare",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topRareWin.TotalWinner),entry:e.stats.topRareWin}})],1):e._e(),e._v(" "),e.stats.topEpicWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Best Epic",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topEpicWin.TotalWinner),entry:e.stats.topEpicWin}})],1):e._e(),e._v(" "),e.stats.topLegendaryWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Best Legendary",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topLegendaryWin.TotalWinner),entry:e.stats.topLegendaryWin}})],1):e._e(),e._v(" "),e.stats.topKillDeathPoints?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Soldier",type:"Kill Death Difference",label:"",value:"+"+e.stats.topKillDeathPoints.KillDeathPoints.toFixed(2),entry:e.stats.topKillDeathPoints}})],1):e._e(),e._v(" "),e.stats.topObjectivePoints?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Trebuchet",type:"Objectives",label:"",value:e.stats.topObjectivePoints.ObjectivePoints.toFixed(2),entry:e.stats.topObjectivePoints}})],1):e._e(),e._v(" "),e.stats.topBlitzPointsDelta?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Blitzkrieg",type:"Blitz Points",label:"",value:"+"+e.stats.topBlitzPointsDelta.BlitzPointsDelta.toFixed(2),entry:e.stats.topBlitzPointsDelta}})],1):e._e()])},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("div",{staticClass:"columns is-mobile is-multiline is-centered"},e._l(e.actors,function(t){return n("div",{key:t,staticClass:"column is-narrow"},[n("a",{on:{click:function(n){e.selectedActor=t}}},[n("hero-image",{class:"is-48x48 "+(e.selectedActor==t?"highlight-selection":""),attrs:{actor:t}})],1)])}))])},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("b-table",{attrs:{data:e.top10Talents,"mobile-cards":!1},scopedSlots:e._u([{key:"default",fn:function(t){return[n("b-table-column",{attrs:{field:"Actor",label:"Hero"}},[n("hero-image",{staticClass:"is-square",attrs:{actor:t.row.Actor}})],1),e._v(" "),n("b-table-column",{attrs:{field:"Talent",label:"Talent",visible:e.hasTalents}},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[n("span",[e._v(e._s(e.getTalentName(t.row.Talent)))]),e._v(" "),n("talent-image",{attrs:{entry:t.row,size:48}})],1)]),e._v(" "),n("b-table-column",{attrs:{field:"Count",label:"Pick Rate",visible:!e.hasTalents,sortable:"",numeric:""}},[n("span",[e._v(e._s(Math.round(100*e.playersPerMatch*t.row.Count/e.totalPicks))+"%")])]),e._v(" "),n("b-table-column",{attrs:{field:"Winner",label:"Win Rate",sortable:"",numeric:""}},[n("span",[e._v(e._s(Math.round(100*t.row.Winner))+"%")])])]}}])})],1)},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[e._m(0),e._v(" "),n("div",{staticClass:"tabs is-fullwidth"},[n("ul",e._l(e.modes,function(t){return n("li",{key:t,class:t==e.selectedMode?"is-active":""},[n("a",{on:{click:function(n){e.selectedMode=t}}},[n("span",[e._v(e._s(e.getMode(t)))])])])}))]),e._v(" "),n("mode-tab",{staticClass:"tab"}),e._v(" "),n("footer",{staticClass:"footer"},[n("div",{staticClass:"container"},[n("div",{staticClass:"content has-text-centered"},[n("p",[e._v("\n Last update: "+e._s(e.lastUpdate)+", with "+e._s(e.totalMatches)+" matches total.\n ")]),e._v(" "),e._m(1),e._v(" "),n("p")])])])],1)},i=[function(){var e=this.$createElement,t=this._self._c||e;return t("section",{staticClass:"hero is-medium is-bold header"},[t("div",{staticClass:"hero-body"},[t("div",{staticClass:"container"},[t("h1",{staticClass:"title has-text-white"},[this._v("\n Broken Talents\n ")]),this._v(" "),t("h2",{staticClass:"subtitle has-text-white"},[this._v("\n Tilting Brawlers since Update 2.5\n ")])])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[n("strong",[e._v("BrokenTalentsFun")]),e._v(", the Vainglory Talents and Hero win rate statistics site, by shutterfly ("),n("a",{attrs:{href:"https://schneefux.xyz"}},[e._v("@schneefux")]),e._v(").\n "),n("br"),e._v(" "),n("a",{attrs:{href:"https://github.com/BrokenTalents/brokentalents.github.io"}},[e._v("Source Code")]),e._v(".\n Built with the "),n("a",{attrs:{href:"http://developer.vainglorygame.com"}},[e._v("Vainglory API")]),e._v(".\n Images by "),n("a",{attrs:{href:"https://vainglorygame.com"}},[e._v("Super Evil Mega Corp")]),e._v(", Gwen Icon by Bleeko.\n "),n("br"),e._v("\n Join the "),n("a",{attrs:{href:"https://discord.gg/txTchJY"}},[e._v("Discord Server")]),e._v(" or "),n("a",{attrs:{href:"https://twitter.com/brokentalents"}},[e._v("Tweet")]),e._v(" if you have questions.\n ")])}];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",[n("b-field",{directives:[{name:"show",rawName:"v-show",value:e.hasTalents,expression:"hasTalents"}]},[n("p",{staticClass:"control"},[n("b-dropdown",{model:{value:e.filterRarity,callback:function(t){e.filterRarity=t},expression:"filterRarity"}},[n("button",{staticClass:"button",attrs:{slot:"trigger"},slot:"trigger"},[n("span",[e._v(e._s(e.filterRarity.replace("None","No")||"All")+" Talents")]),e._v(" "),n("b-icon",{attrs:{icon:"menu-down"}})],1),e._v(" "),n("b-dropdown-item",{attrs:{value:""}},[e._v("All Talents")]),e._v(" "),e._l(e.RARITIES,function(t){return n("b-dropdown-item",{key:t,attrs:{value:t}},[e._v(e._s(t.replace("None","No"))+" Talents")])})],2)],1)]),e._v(" "),n("b-field",[n("div",{staticClass:"control"},[n("b-switch",{model:{value:e.filterLowPickrate,callback:function(t){e.filterLowPickrate=t},expression:"filterLowPickrate"}},[e._v("Include entries without enough data (statistics will be inaccurate)")])],1)]),e._v(" "),n("b-table",{attrs:{data:e.report,"default-sort":["TotalPicks","desc"],"default-sort-directon":"desc",paginated:!0},scopedSlots:e._u([{key:"header",fn:function(t){return[n("b-tooltip",{attrs:{active:!!t.column.meta,label:t.column.meta||"",position:"is-bottom",dashed:""}},[e._v("\n "+e._s(t.column.label)+"\n ")])]}},{key:"default",fn:function(t){return[n("b-table-column",{attrs:{field:"Actor",label:"Hero",sortable:""}},[n("div",{staticClass:"is-hidden-touch"},[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("hero-image",{staticClass:"is-48x48",attrs:{round:"true",actor:t.row.Actor}}),e._v(" "),n("span",{staticStyle:{"padding-left":"0.75em"}},[e._v(e._s(e.getHero(t.row.Actor)))])],1)]),e._v(" "),n("div",{staticClass:"is-hidden-desktop"},[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("span",{staticStyle:{"padding-right":"0.5em"}},[e._v(e._s(e.getHero(t.row.Actor)))]),e._v(" "),n("hero-image",{staticClass:"is-48x48",attrs:{round:"true",actor:t.row.Actor}})],1)])]),e._v(" "),n("b-table-column",{attrs:{field:"Talent",label:"Talent",visible:e.hasTalents}},[n("div",{staticClass:"is-hidden-touch"},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[n("span",[e._v(e._s(e.getTalentName(t.row.Talent)))]),e._v(" "),n("talent-image",{attrs:{entry:t.row,size:48}})],1)]),e._v(" "),n("div",{staticClass:"is-hidden-desktop"},[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("span",{staticStyle:{"padding-right":"0.5em"}},[e._v(e._s(e.getTalentName(t.row.Talent)))]),e._v(" "),n("talent-image",{attrs:{entry:t.row,size:48}})],1)])]),e._v(" "),n("b-table-column",{attrs:{field:"TalentWinrateBase",label:"Level 1 Win Rate",meta:"Estimated.",visible:e.hasTalents,sortable:"",numeric:""}},[isNaN(t.row.TalentWinrateBase)?[e._v("\n "+e._s((100*t.row.Winner).toFixed(0))+"% ")]:[e._v("\n "+e._s((100*t.row.TalentWinrateBase).toFixed(0))+"%\n ")]],2),e._v(" "),n("b-table-column",{attrs:{field:"TalentWinrateMax",label:"Max Level Win Rate",meta:"Estimated.",visible:e.hasTalents,sortable:"",numeric:""}},[isNaN(t.row.TalentWinrateMax)?e._e():[e._v("\n "+e._s((100*t.row.TalentWinrateMax).toFixed(0))+"%\n "),t.row.VarianceTooLarge?n("small",[n("br"),e._v("uncertain")]):e._e()]],2),e._v(" "),n("b-table-column",{attrs:{field:"BlitzPointsDelta",label:"Blitz Points",visible:e.hasTalents,sortable:"",numeric:""}},[e._v("\n "+e._s((t.row.BlitzPointsDelta>0?"+":"")+t.row.BlitzPointsDelta.toFixed(2))+"\n ")]),e._v(" "),n("b-table-column",{attrs:{field:"Winner",label:"Win Rate",visible:!e.hasTalents,sortable:"",numeric:""}},[e._v("\n "+e._s((100*t.row.Winner).toFixed(0))+"%\n ")]),e._v(" "),n("b-table-column",{attrs:{field:"TotalPicks",label:"Pick Rate",sortable:"",numeric:""}},[e._v("\n "+e._s((100*e.playersPerMatch*t.row.TotalPicks/e.totalPicks).toFixed(2))+"%\n ")])]}}])})],1)},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:"notification "+(e.hideIntro?"is-hidden":"")},[n("button",{staticClass:"delete",on:{click:function(t){e.hideIntro=!0}}}),e._v(" "),n("div",{staticClass:"content"},[n("h3",[e._v("Hi There!")]),e._v(" "),n("img",{staticClass:"image is-64x64",staticStyle:{float:"right"},attrs:{src:"/dist/assets/gwenbarf.png"}}),e._v(" "),e._m(0),e._v(" "),n("p",[e._v("\n This site shares visitor data with Google Analytics and Google AdSense which store cookies. If you do not want that, you can "),n("a",{on:{click:function(t){e.optOutAnalytics()}}},[e._v("opt out of Google Analytics")]),e.gaOptedOut?n("span",[e._v(" (Google Analytics is disabled for you)")]):e._e(),e._v(" and "),n("a",{attrs:{href:"http://www.youronlinechoices.com/"}},[e._v("opt out of targeted advertisements")]),e._v(".\n ")])])])},i=[function(){var e=this.$createElement,t=this._self._c||e;return t("p",[this._v("\n Broken Talents Fun will help you find the best Talents for the Vainglory mobile MOBA game.\n "),t("br"),this._v("\n Talents are special boosts for Vainglory's Brawl modes that upgrade and change hero abilities in a variety of different ways.\n "),t("br"),this._v("\n The pick and win rates on this site have been gathered from real Vainglory matches.\n The data can be imprecise and can be contrary to your personal experience.\n ")])}];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:void 0!=e.deferredPrompt,expression:"deferredPrompt != undefined"}],staticClass:"notification is-primary"},[n("button",{staticClass:"delete",on:{click:function(t){e.deferredPrompt=void 0}}}),e._v(" "),n("div",{staticClass:"has-text-centered"},[e._v("Add to your homescreen for fast and offline access?")]),e._v(" "),n("div",{staticClass:"has-text-centered install-button"},[n("button",{staticClass:"button is-medium",on:{click:function(t){e.deferredPrompt.prompt()}}},[n("span",{staticClass:"mdi mdi-download"}),e._v(" "),n("span",[e._v(" Install")])])])])},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"graph",staticClass:"plotly"})},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("intro-box"),e._v(" "),n("install-notification"),e._v(" "),n("div",{staticClass:"columns is-multiline"},[e.hasTalents?n("div",{staticClass:"column"},[n("h2",{staticClass:"title is-2"},[e._v("Highlights")]),e._v(" "),n("highlights")],1):e._e(),e._v(" "),n("div",{staticClass:"column is-narrow"},[n("h2",{staticClass:"title is-2"},[e._v("Top 10")]),e._v(" "),n("top-talents-box")],1)]),e._v(" "),n("Adsense",{staticClass:"adsense",attrs:{"data-ad-client":"ca-pub-6856963757796636","data-ad-slot":"3898218968"}}),e._v(" "),n("div",{staticClass:"columns is-multiline"},[n("div",{staticClass:"column is-two-thirds"},[n("h2",{staticClass:"title is-2"},[e._v("Individual Hero Statistics")]),e._v(" "),n("h3",{staticClass:"subtitle"},[e._v("Select a Hero")]),e._v(" "),n("hero-draft-grid")],1),e._v(" "),n("div",{staticClass:"column is-one-third"},[n("h2",{staticClass:"title is-2"},[e._v(e._s(e.getHero(e.selectedActor))+" Statistics")]),e._v(" "),n("hero-talent-table")],1)]),e._v(" "),n("div",{staticClass:"box"},[n("h2",{staticClass:"title is-2"},[e._v("Hero Balance Overview")]),e._v(" "),n("h3",{staticClass:"subtitle is-hidden-desktop"},[e._v("Best viewed on a large screen")]),e._v(" "),n("win-pick-scatter")],1),e._v(" "),n("Adsense",{staticClass:"adsense",attrs:{"data-ad-client":"ca-pub-6856963757796636","data-ad-slot":"4801023518"}}),e._v(" "),n("div",[n("h2",{staticClass:"title is-2"},[e._v("All Hero Statistics")]),e._v(" "),n("report-table")],1)],1)},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("div",{staticClass:"columns is-mobile"},[n("div",{staticClass:"column is-one-quarter"},[n("hero-image",{staticClass:"is-64x64",attrs:{actor:e.selectedActor}})],1),e._v(" "),n("div",{staticClass:"column has-text-centered"},[e._v(e._s((100*e.heroReport[0].Winner).toFixed(0))+"% Win Rate")]),e._v(" "),n("div",{staticClass:"column has-text-centered"},[e._v(e._s((100*e.totalHeroPicks/e.totalPicks*e.playersPerMatch).toFixed(0))+"% Pick Rate")])]),e._v(" "),n("b-table",{directives:[{name:"show",rawName:"v-show",value:e.hasTalents,expression:"hasTalents"}],attrs:{data:e.heroReport,"mobile-cards":!1},scopedSlots:e._u([{key:"header",fn:function(t){return[n("b-tooltip",{attrs:{active:!!t.column.meta,label:t.column.meta||"",position:"is-bottom",dashed:""}},[e._v("\n "+e._s(t.column.label)+"\n ")])]}},{key:"default",fn:function(t){return[n("b-table-column",{attrs:{field:"Talent",label:"Talent"}},[n("talent-image",{attrs:{entry:t.row,size:48}})],1),e._v(" "),n("b-table-column",{attrs:{field:"TalentWinrateBase",label:"Level 1 Win Rate",meta:"Estimated.",sortable:"",numeric:""}},[isNaN(t.row.TalentWinrateBase)?[e._v("\n "+e._s((100*t.row.Winner).toFixed(0))+"% ")]:[e._v("\n "+e._s((100*t.row.TalentWinrateBase).toFixed(0))+"%\n ")],e._v(" "),t.row.SampleTooSmall?n("small",[n("br"),e._v("uncertain")]):e._e()],2),e._v(" "),n("b-table-column",{attrs:{field:"TalentWinrateMax",label:"Max Level Win Rate",meta:"Estimated.",sortable:"",numeric:""}},[isNaN(t.row.TalentWinrateMax)?e._e():[e._v("\n "+e._s((100*t.row.TalentWinrateMax).toFixed(0))+"%\n "),t.row.SampleTooSmall||t.row.VarianceTooLarge?n("small",[n("br"),e._v("uncertain")]):e._e()]],2)]}}])})],1)},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},function(e,t,n){"use strict";e.exports={step:{valType:"enumerated",role:"info",values:["month","year","day","hour","minute","second","all"],dflt:"month",description:["The unit of measurement that the `count` value will set the range by."].join(" ")},stepmode:{valType:"enumerated",role:"info",values:["backward","todate"],dflt:"backward",description:["Sets the range update mode.","If *backward*, the range update shifts the start of range","back *count* times *step* milliseconds.","If *todate*, the range update shifts the start of range","back to the first timestamp from *count* times","*step* milliseconds back.","For example, with `step` set to *year* and `count` set to *1*","the range update shifts the start of the range back to","January 01 of the current year.","Month and year *todate* are currently available only","for the built-in (Gregorian) calendar."].join(" ")},count:{valType:"number",role:"info",min:0,dflt:1,description:["Sets the number of steps to take to update the range.","Use with `step` to specify the update interval."].join(" ")},label:{valType:"string",role:"info",description:"Sets the text label to appear on the button."}}},function(e,t,n){"use strict";e.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskColor:"rgba(0,0,0,0.4)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},function(e,t,n){"use strict";var r=n(17),i=n(129),a=n(10).extendFlat,l=n(10).extendDeep,o=n(104),s=n(35),u={_isLinkedToArray:"step",method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",role:"info",description:["Sets the Plotly method to be called when the slider value is changed.","If the `skip` method is used, the API slider will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","slider events manually via JavaScript."].join(" ")},args:{valType:"info_array",role:"info",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on slide."].join(" ")},label:{valType:"string",role:"info",description:"Sets the text label to appear on the slider"},value:{valType:"string",role:"info",description:["Sets the value of the slider step, used to refer to the step programatically.","Defaults to the slider label if not provided."].join(" ")},execute:{valType:"boolean",role:"info",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_sliderchange` method and executing the API command manually without losing","the benefit of the slider automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}};e.exports={_isLinkedToArray:"slider",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",role:"info",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:u,lenmode:{valType:"enumerated",values:["fraction","pixels"],role:"info",dflt:"fraction",description:["Determines whether this slider length","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the length of the slider","This measure excludes the padding of both ends.","That is, the slider's length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:0,role:"style",description:"Sets the x position (in normalized coordinates) of the slider."},pad:l({},i,{description:"Set the padding of the slider component along each side."},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",description:["Sets the slider's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:0,role:"style",description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",role:"info",description:["Sets the slider's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},transition:{duration:{valType:"number",role:"info",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:o.transition.easing.values,role:"info",dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",role:"info",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"info",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,role:"info",description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:a({},r,{description:"Sets the font of the current value label text."})},font:a({},r,{description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",role:"style",dflt:s.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",role:"style",dflt:s.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:s.railBorderColor,role:"style",description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:s.railBorderWidth,role:"style",description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:s.tickLength,role:"style",description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:s.tickColor,role:"style",description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:s.minorTickLength,role:"style",description:"Sets the length in pixels of minor step tick marks"}}},function(e,t,n){"use strict";e.exports={t:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) along the top of the component."},r:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) on the right side of the component."},b:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) along the bottom of the component."},l:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) on the left side of the component."}}},function(e,t,n){"use strict";var r=n(17),i=n(24),a=n(10).extendFlat,l=n(129),o={_isLinkedToArray:"button",method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",role:"info",description:["Sets the Plotly method to be called on click.","If the `skip` method is used, the API updatemenu will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","updatemenu events manually via JavaScript."].join(" ")},args:{valType:"info_array",role:"info",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on click."].join(" ")},label:{valType:"string",role:"info",dflt:"",description:"Sets the text label to appear on the button."},execute:{valType:"boolean",role:"info",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_buttonclicked` method and executing the API command manually without losing","the benefit of the updatemenu automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}};e.exports={_isLinkedToArray:"updatemenu",_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean",role:"info",description:["Determines whether or not the update menu is visible."].join(" ")},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown",role:"info",description:["Determines whether the buttons are accessible via a dropdown menu","or whether the buttons are stacked horizontally or vertically"].join(" ")},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down",role:"info",description:["Determines the direction in which the buttons are laid out, whether","in a dropdown menu or a row/column of buttons. For `left` and `up`,","the buttons will still appear in left-to-right or top-to-bottom order","respectively."].join(" ")},active:{valType:"integer",role:"info",min:-1,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},showactive:{valType:"boolean",role:"info",dflt:!0,description:"Highlights active dropdown item or active button if true."},buttons:o,x:{valType:"number",min:-2,max:3,dflt:-.05,role:"style",description:"Sets the x position (in normalized coordinates) of the update menu."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right",role:"info",description:["Sets the update menu's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,role:"style",description:"Sets the y position (in normalized coordinates) of the update menu."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",role:"info",description:["Sets the update menu's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},pad:a({},l,{description:"Sets the padding around the buttons or dropdown menu."}),font:a({},r,{description:"Sets the font of the update menu button text."}),bgcolor:{valType:"color",role:"style",description:"Sets the background color of the update menu buttons."},bordercolor:{valType:"color",dflt:i.borderLine,role:"style",description:"Sets the color of the border enclosing the update menu."},borderwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the width (in px) of the border enclosing the update menu."}}},function(e,t,n){"use strict";var r=n(15);e.exports={_isLinkedToArray:"image",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not this image is visible."].join(" ")},source:{valType:"string",role:"info",description:["Specifies the URL of the image to be used.","The URL must be accessible from the domain where the","plot code is run, and can be either relative or absolute."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",description:["Specifies whether images are drawn below or above traces.","When `xref` and `yref` are both set to `paper`,","image is drawn below the entire plot area."].join(" ")},sizex:{valType:"number",role:"info",dflt:0,description:["Sets the image container size horizontally.","The image will be sized based on the `position` value.","When `xref` is set to `paper`, units are sized relative","to the plot width."].join(" ")},sizey:{valType:"number",role:"info",dflt:0,description:["Sets the image container size vertically.","The image will be sized based on the `position` value.","When `yref` is set to `paper`, units are sized relative","to the plot height."].join(" ")},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",role:"info",description:["Specifies which dimension of the image to constrain."].join(" ")},opacity:{valType:"number",role:"info",min:0,max:1,dflt:1,description:"Sets the opacity of the image."},x:{valType:"any",role:"info",dflt:0,description:["Sets the image's x position.","When `xref` is set to `paper`, units are sized relative","to the plot height.","See `xref` for more info"].join(" ")},y:{valType:"any",role:"info",dflt:0,description:["Sets the image's y position.","When `yref` is set to `paper`, units are sized relative","to the plot height.","See `yref` for more info"].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"info",description:"Sets the anchor for the x position"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",role:"info",description:"Sets the anchor for the y position."},xref:{valType:"enumerated",values:["paper",r.idRegex.x.toString()],dflt:"paper",role:"info",description:["Sets the images's x coordinate axis.","If set to a x axis id (e.g. *x* or *x2*), the `x` position","refers to an x data coordinate","If set to *paper*, the `x` position refers to the distance from","the left of plot in normalized coordinates","where *0* (*1*) corresponds to the left (right)."].join(" ")},yref:{valType:"enumerated",values:["paper",r.idRegex.y.toString()],dflt:"paper",role:"info",description:["Sets the images's y coordinate axis.","If set to a y axis id (e.g. *y* or *y2*), the `y` position","refers to a y data coordinate.","If set to *paper*, the `y` position refers to the distance from","the bottom of the plot in normalized coordinates","where *0* (*1*) corresponds to the bottom (top)."].join(" ")}}},function(e,t,n){"use strict";var r=n(36),i=n(40).line,a=n(101).dash,l=n(10).extendFlat;e.exports={_isLinkedToArray:"shape",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not this shape is visible."].join(" ")},type:{valType:"enumerated",values:["circle","rect","path","line"],role:"info",description:["Specifies the shape type to be drawn.","If *line*, a line is drawn from (`x0`,`y0`) to (`x1`,`y1`)","If *circle*, a circle is drawn from","((`x0`+`x1`)/2, (`y0`+`y1`)/2))","with radius","(|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|)","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)","If *path*, draw a custom SVG path using `path`."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",description:"Specifies whether shapes are drawn below or above traces."},xref:l({},r.xref,{description:["Sets the shape's x coordinate axis.","If set to an x axis id (e.g. *x* or *x2*), the `x` position","refers to an x coordinate","If set to *paper*, the `x` position refers to the distance from","the left side of the plotting area in normalized coordinates","where *0* (*1*) corresponds to the left (right) side.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, then you must convert","the date to unix time in milliseconds."].join(" ")}),x0:{valType:"any",role:"info",description:["Sets the shape's starting x position.","See `type` for more info."].join(" ")},x1:{valType:"any",role:"info",description:["Sets the shape's end x position.","See `type` for more info."].join(" ")},yref:l({},r.yref,{description:["Sets the annotation's y coordinate axis.","If set to an y axis id (e.g. *y* or *y2*), the `y` position","refers to an y coordinate","If set to *paper*, the `y` position refers to the distance from","the bottom of the plotting area in normalized coordinates","where *0* (*1*) corresponds to the bottom (top)."].join(" ")}),y0:{valType:"any",role:"info",description:["Sets the shape's starting y position.","See `type` for more info."].join(" ")},y1:{valType:"any",role:"info",description:["Sets the shape's end y position.","See `type` for more info."].join(" ")},path:{valType:"string",role:"info",description:["For `type` *path* - a valid SVG path but with the pixel values","replaced by data values. There are a few restrictions / quirks","only absolute instructions, not relative. So the allowed segments","are: M, L, H, V, Q, C, T, S, and Z","arcs (A) are not allowed because radius rx and ry are relative.","In the future we could consider supporting relative commands,","but we would have to decide on how to handle date and log axes.","Note that even as is, Q and C Bezier paths that are smooth on","linear axes may not be smooth on log, and vice versa.",'no chained "polybezier" commands - specify the segment type for',"each one.","On category axes, values are numbers scaled to the serial numbers","of categories because using the categories themselves there would","be no way to describe fractional positions","On data axes: because space and T are both normal components of path","strings, we can't use either to separate date from time parts.","Therefore we'll use underscore for this purpose:","2015-02-21_13:45:56.789"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"info",description:"Sets the opacity of the shape."},line:{color:i.color,width:i.width,dash:a,role:"info"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"info",description:["Sets the color filling the shape's interior."].join(" ")}}},function(e,t,n){"use strict";e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},function(e,t,n){"use strict";var r=n(0),i=n(3);e.exports=function(e,t,n,a){a("opacity");var l=a("bgcolor"),o=a("bordercolor"),s=i.opacity(o);a("borderpad");var u=a("borderwidth"),c=a("showarrow");a("text",c?" ":"new text"),a("textangle"),r.coerceFont(a,"font",n.font),a("width"),a("align"),a("height")&&a("valign"),c&&(a("arrowcolor",s?t.bordercolor:i.defaultLine),a("arrowhead"),a("arrowsize"),a("arrowwidth",2*(s&&u||1)),a("standoff"));var d=a("hovertext"),f=n.hoverlabel||{};if(d){var h=a("hoverlabel.bgcolor",f.bgcolor||(i.opacity(l)?i.rgb(l):i.defaultLine)),p=a("hoverlabel.bordercolor",f.bordercolor||i.contrast(h));r.coerceFont(a,"hoverlabel.font",{family:f.font.family,size:f.font.size,color:f.font.color||p})}a("captureevents",!!d)}},function(e,t,n){"use strict";e.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0},{path:"M2,2V-2H-2V2Z",backoff:0}]},function(e,t,n){"use strict";var r=n(1),i=n(4),a=n(0),l=n(7),o=n(3),s=n(13),u=n(216);e.exports=function(e,t){e.each(function(e){var t=r.select(this).selectAll("g.layers").data([0]);t.enter().append("g").classed("layers",!0),t.style("opacity",e[0].trace.opacity),t.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),t.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var n=t.selectAll("g.legendsymbols").data([e]);n.enter().append("g").classed("legendsymbols",!0),n.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)}).each(function(e){var t=e[0].trace,n=t.marker||{},a=n.line||{},l=r.select(this).select("g.legendpoints").selectAll("path.legendbar").data(i.traceIs(t,"bar")?[e]:[]);l.enter().append("path").classed("legendbar",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),l.exit().remove(),l.each(function(e){var t=r.select(this),i=e[0],l=(i.mlw+1||a.width+1)-1;t.style("stroke-width",l+"px").call(o.fill,i.mc||n.color),l&&t.call(o.stroke,i.mlc||a.color)})}).each(function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendbox").data(i.traceIs(t,"box")&&t.visible?[e]:[]);n.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),n.exit().remove(),n.each(function(){var e=t.line.width,n=r.select(this);n.style("stroke-width",e+"px").call(o.fill,t.fillcolor),e&&n.call(o.stroke,t.line.color)})}).each(function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendpie").data(i.traceIs(t,"pie")&&t.visible?[e]:[]);n.enter().append("path").classed("legendpie",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),n.exit().remove(),n.size()&&n.call(u,e[0],t)}).each(function(e){var t=e[0].trace,n=t.visible&&t.fill&&"none"!==t.fill,i=s.hasLines(t);t&&t._module&&"contourcarpet"===t._module.name&&(i=t.contours.showlines,n="fill"===t.contours.coloring);var a=r.select(this).select(".legendfill").selectAll("path").data(n?[e]:[]);a.enter().append("path").classed("js-fill",!0),a.exit().remove(),a.attr("d","M5,0h30v6h-30z").call(l.fillGroupStyle);var o=r.select(this).select(".legendlines").selectAll("path").data(i?[e]:[]);o.enter().append("path").classed("js-line",!0).attr("d","M5,0h30"),o.exit().remove(),o.call(l.lineGroupStyle)}).each(function(e){var n,i,o=e[0],u=o.trace,c=s.hasMarkers(u),d=s.hasText(u),f=s.hasLines(u);function h(e,t,n){var r=a.nestedProperty(u,e).get(),i=Array.isArray(r)&&t?t(r):r;if(n){if(in[1])return n[1]}return i}function p(e){return e[0]}if(c||d||f){var v={},y={};c&&(v.mc=h("marker.color",p),v.mo=h("marker.opacity",a.mean,[.2,1]),v.ms=h("marker.size",a.mean,[2,16]),v.mlc=h("marker.line.color",p),v.mlw=h("marker.line.width",a.mean,[0,5]),y.marker={sizeref:1,sizemin:1,sizemode:"diameter"}),f&&(y.line={width:h("line.width",p,[0,10])}),d&&(v.tx="Aa",v.tp=h("textposition",p),v.ts=10,v.tc=h("textfont.color",p),v.tf=h("textfont.family",p)),n=[a.minExtend(o,v)],i=a.minExtend(u,y)}var g=r.select(this).select("g.legendpoints"),m=g.selectAll("path.scatterpts").data(c?n:[]);m.enter().append("path").classed("scatterpts",!0).attr("transform","translate(20,0)"),m.exit().remove(),m.call(l.pointStyle,i,t),c&&(n[0].mrc=3);var _=g.selectAll("g.pointtext").data(d?n:[]);_.enter().append("g").classed("pointtext",!0).append("text").attr("transform","translate(20,0)"),_.exit().remove(),_.selectAll("text").call(l.textPointStyle,i,t)})}},function(e,t,n){"use strict";var r=n(17),i=n(24),a=n(10).extendFlat;e.exports={bgcolor:{valType:"color",role:"style",description:"Sets the legend background color."},bordercolor:{valType:"color",dflt:i.defaultLine,role:"style",description:"Sets the color of the border enclosing the legend."},borderwidth:{valType:"number",min:0,dflt:0,role:"style",description:"Sets the width (in px) of the border enclosing the legend."},font:a({},r,{description:"Sets the font used to text the legend items."}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",role:"info",description:"Sets the orientation of the legend."},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],role:"style",description:["Determines the order at which the legend items are displayed.","If *normal*, the items are displayed top-to-bottom in the same","order as the input data.","If *reversed*, the items are displayed in the opposite order","as *normal*.","If *grouped*, the items are displayed in groups","(when a trace `legendgroup` is provided).","if *grouped+reversed*, the items are displayed in the opposite order","as *grouped*."].join(" ")},tracegroupgap:{valType:"number",min:0,dflt:10,role:"style",description:["Sets the amount of vertical space (in px) between legend groups."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:1.02,role:"style",description:"Sets the x position (in normalized coordinates) of the legend."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",description:["Sets the legend's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the legend."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,role:"style",description:"Sets the y position (in normalized coordinates) of the legend."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",role:"info",description:["Sets the legend's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the legend."].join(" ")}}},function(e,t,n){"use strict";var r=n(1),i=n(0),a=n(9),l=n(18),o=n(15);function s(e,t,n,r,i){var a=e._fullLayout._modules;t.plot&&t.plot.selectAll("g:not(.scatterlayer)").selectAll("g.trace").remove();for(var l=0;lr||u===i||ul||t&&s(e))}:function(e,o){var s=e[0],u=e[1];if(s===i||sr||u===i||ul)return!1;var c,d,f,h,p,v=t.length,y=t[0][0],g=t[0][1],m=0;for(c=1;cMath.max(d,y)||u>Math.max(f,g)))if(uc||Math.abs(r(l,f))>i)return!0;return!1};a.filter=function(e,t){var n=[e[0]],r=0,i=0;function a(a){e.push(a);var o=n.length,s=r;n.splice(i+1);for(var u=s+1;u1&&a(e.pop());return{addPt:a,raw:e,filtered:n}}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n,i){n("hoverlabel.bgcolor",(i=i||{}).bgcolor),n("hoverlabel.bordercolor",i.bordercolor),r.coerceFont(n,"hoverlabel.font",i.font)}},function(e,t,n){"use strict";var r=n(2),i=n(29),a=n(20),l=n(15),o=n(257);e.exports=function(e){var t=e._fullLayout;if((t._has("cartesian")||t._has("gl2d"))&&!e._context.staticPlot){Object.keys(t._plots||{}).sort(function(e,n){if((t._plots[e].mainplot&&!0)===(t._plots[n].mainplot&&!0)){var r=e.split("y"),i=n.split("y");return r[0]===i[0]?Number(r[1]||1)-Number(i[1]||1):Number(r[0]||1)-Number(i[0]||1)}return t._plots[e].mainplot?1:-1}).forEach(function(n){var s=t._plots[n],u=s.xaxis,c=s.yaxis,d=(u._linepositions[n]||[])[3],f=(c._linepositions[n]||[])[3],h=l.DRAGGERSIZE;if(r(d)&&"top"===u.side&&(d-=h),r(f)&&"right"!==c.side&&(f-=h),!s.mainplot){var p=o(e,s,0,0,u._length,c._length,"ns","ew");p.onmousemove=function(t){e._fullLayout._rehover=function(){e._fullLayout._hoversubplot===n&&i.hover(e,t,n)},i.hover(e,t,n),e._fullLayout._lasthover=p,e._fullLayout._hoversubplot=n},p.onmouseout=function(t){e._dragging||(e._fullLayout._hoversubplot=null,a.unhover(e,t))},p.onclick=function(t){i.click(e,t,n)},e._context.showAxisDragHandles&&(o(e,s,-h,-h,h,h,"n","w"),o(e,s,u._length,-h,h,h,"n","e"),o(e,s,-h,c._length,h,h,"s","w"),o(e,s,u._length,c._length,h,h,"s","e"))}e._context.showAxisDragHandles&&(r(d)&&("free"===u.anchor&&(d-=t._size.h*(1-c.domain[1])),o(e,s,.1*u._length,d,.8*u._length,h,"","ew"),o(e,s,0,d,.1*u._length,h,"","w"),o(e,s,.9*u._length,d,.1*u._length,h,"","e")),r(f)&&("free"===c.anchor&&(f-=t._size.w*u.domain[0]),o(e,s,f,.1*c._length,h,.8*c._length,"ns",""),o(e,s,f,.9*c._length,h,.1*c._length,"s",""),o(e,s,f,0,h,.1*c._length,"n","")))});var n=t._hoverlayer.node();n.onmousemove=function(n){n.target=t._lasthover,i.hover(e,n,t._hoversubplot)},n.onclick=function(n){n.target=t._lasthover,i.click(e,n)},n.onmousedown=function(e){t._lasthover.onmousedown(e)}}}},function(e,t,n){var r=n(1),i=n(0).extendDeepAll,a=e.exports={version:"0.2.2"};a.Axis=function(){var e,t,n,l,o={data:[],layout:{}},s={},u={},c=r.dispatch("hover"),d={};return d.render=function(s){return function(s){t=s||t;var c=o.data,d=o.layout;("string"==typeof t||t.nodeName)&&(t=r.select(t)),t.datum(c).each(function(t,o){var s=t.slice();u={data:a.util.cloneJson(s),layout:a.util.cloneJson(d)};var c=0;s.forEach(function(e,t){e.color||(e.color=d.defaultColorRange[c],c=(c+1)%d.defaultColorRange.length),e.strokeColor||(e.strokeColor="LinePlot"===e.geometry?e.color:r.rgb(e.color).darker().toString()),u.data[t].color=e.color,u.data[t].strokeColor=e.strokeColor,u.data[t].strokeDash=e.strokeDash,u.data[t].strokeSize=e.strokeSize});var f=s.filter(function(e,t){var n=e.visible;return void 0===n||!0===n}),h=!1,p=f.map(function(e,t){return h=h||void 0!==e.groupId,e});if(h){var v=[],y=r.nest().key(function(e,t){return void 0!==e.groupId?e.groupId:"unstacked"}).entries(p).map(function(e,t){if("unstacked"===e.key)return e.values;var n=e.values[0].r.map(function(e,t){return 0});return e.values.forEach(function(e,t,r){e.yStack=[n],v.push(n),n=a.util.sumArrays(e.r,n)}),e.values});f=r.merge(y)}f.forEach(function(e,t){e.t=Array.isArray(e.t[0])?e.t:[e.t],e.r=Array.isArray(e.r[0])?e.r:[e.r]});var g=Math.min(d.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2;g=Math.max(10,g);var m,_=[d.margin.left+g,d.margin.top+g];m=h?[0,r.max(a.util.sumArrays(a.util.arrayLast(f).r[0],a.util.arrayLast(v)))]:r.extent(a.util.flattenArray(f.map(function(e,t){return e.r}))),d.radialAxis.domain!=a.DATAEXTENT&&(m[0]=0),n=r.scale.linear().domain(d.radialAxis.domain!=a.DATAEXTENT&&d.radialAxis.domain?d.radialAxis.domain:m).range([0,g]),u.layout.radialAxis.domain=n.domain();var T,b=a.util.flattenArray(f.map(function(e,t){return e.t})),M="string"==typeof b[0];M&&(b=a.util.deduplicate(b),T=b.slice(),b=r.range(b.length),f=f.map(function(e,t){var n=e;return e.t=[b],h&&(n.yStack=e.yStack),n}));var k=f.filter(function(e,t){return"LinePlot"===e.geometry||"DotPlot"===e.geometry}).length===f.length,K=null===d.needsEndSpacing?M||!k:d.needsEndSpacing,x=d.angularAxis.domain&&d.angularAxis.domain!=a.DATAEXTENT&&!M&&d.angularAxis.domain[0]>=0?d.angularAxis.domain:r.extent(b),C=Math.abs(b[1]-b[0]);k&&!M&&(C=0);var A=x.slice();K&&M&&(A[1]+=C);var w=d.angularAxis.ticksCount||4;w>8&&(w=w/(w/8)+w%8),d.angularAxis.ticksStep&&(w=(A[1]-A[0])/w);var L=d.angularAxis.ticksStep||(A[1]-A[0])/(w*(d.minorTicks+1));T&&(L=Math.max(Math.round(L),1)),A[2]||(A[2]=L);var D=r.range.apply(this,A);if(D=D.map(function(e,t){return parseFloat(e.toPrecision(12))}),l=r.scale.linear().domain(A.slice(0,2)).range("clockwise"===d.direction?[0,360]:[360,0]),u.layout.angularAxis.domain=l.domain(),u.layout.angularAxis.endPadding=K?C:0,void 0===(e=r.select(this).select("svg.chart-root"))||e.empty()){var B=(new DOMParser).parseFromString("' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '","application/xml"),S=this.appendChild(this.ownerDocument.importNode(B.documentElement,!0));e=r.select(S)}e.select(".guides-group").style({"pointer-events":"none"}),e.select(".angular.axis-group").style({"pointer-events":"none"}),e.select(".radial.axis-group").style({"pointer-events":"none"});var z,G=e.select(".chart-group"),W={fill:"none",stroke:d.tickColor},O={"font-size":d.font.size,"font-family":d.font.family,fill:d.font.color,"text-shadow":["-1px 0px","1px -1px","-1px 1px","1px 1px"].map(function(e,t){return" "+e+" 0 "+d.font.outlineColor}).join(",")};if(d.showLegend){z=e.select(".legend-group").attr({transform:"translate("+[g,d.margin.top]+")"}).style({display:"block"});var P=f.map(function(e,t){var n=a.util.cloneJson(e);return n.symbol="DotPlot"===e.geometry?e.dotType||"circle":"LinePlot"!=e.geometry?"square":"line",n.visibleInLegend=void 0===e.visibleInLegend||e.visibleInLegend,n.color="LinePlot"===e.geometry?e.strokeColor:e.color,n});a.Legend().config({data:f.map(function(e,t){return e.name||"Element"+t}),legendConfig:i({},a.Legend.defaultConfig().legendConfig,{container:z,elements:P,reverseOrder:d.legend.reverseOrder})})();var R=z.node().getBBox();g=Math.min(d.width-R.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2,g=Math.max(10,g),_=[d.margin.left+g,d.margin.top+g],n.range([0,g]),u.layout.radialAxis.domain=n.domain(),z.attr("transform","translate("+[_[0]+g,_[1]-g]+")")}else z=e.select(".legend-group").style({display:"none"});e.attr({width:d.width,height:d.height}).style({opacity:d.opacity}),G.attr("transform","translate("+_+")").style({cursor:"crosshair"});var E=[(d.width-(d.margin.left+d.margin.right+2*g+(R?R.width:0)))/2,(d.height-(d.margin.top+d.margin.bottom+2*g))/2];if(E[0]=Math.max(0,E[0]),E[1]=Math.max(0,E[1]),e.select(".outer-group").attr("transform","translate("+E+")"),d.title){var j=e.select("g.title-group text").style(O).text(d.title),I=j.node().getBBox();j.attr({x:_[0]-I.width/2,y:_[1]-g-20})}var N=e.select(".radial.axis-group");if(d.radialAxis.gridLinesVisible){var F=N.selectAll("circle.grid-circle").data(n.ticks(5));F.enter().append("circle").attr({class:"grid-circle"}).style(W),F.attr("r",n),F.exit().remove()}N.select("circle.outside-circle").attr({r:g}).style(W);var $=e.select("circle.background-circle").attr({r:g}).style({fill:d.backgroundColor,stroke:d.stroke});function V(e,t){return l(e)%360+d.orientation}if(d.radialAxis.visible){var H=r.svg.axis().scale(n).ticks(5).tickSize(5);N.call(H).attr({transform:"rotate("+d.radialAxis.orientation+")"}),N.selectAll(".domain").style(W),N.selectAll("g>text").text(function(e,t){return this.textContent+d.radialAxis.ticksSuffix}).style(O).style({"text-anchor":"start"}).attr({x:0,y:0,dx:0,dy:0,transform:function(e,t){return"horizontal"===d.radialAxis.tickOrientation?"rotate("+-d.radialAxis.orientation+") translate("+[0,O["font-size"]]+")":"translate("+[0,O["font-size"]]+")"}}),N.selectAll("g>line").style({stroke:"black"})}var q=e.select(".angular.axis-group").selectAll("g.angular-tick").data(D),U=q.enter().append("g").classed("angular-tick",!0);q.attr({transform:function(e,t){return"rotate("+V(e)+")"}}).style({display:d.angularAxis.visible?"block":"none"}),q.exit().remove(),U.append("line").classed("grid-line",!0).classed("major",function(e,t){return t%(d.minorTicks+1)==0}).classed("minor",function(e,t){return!(t%(d.minorTicks+1)==0)}).style(W),U.selectAll(".minor").style({stroke:d.minorTickColor}),q.select("line.grid-line").attr({x1:d.tickLength?g-d.tickLength:0,x2:g}).style({display:d.angularAxis.gridLinesVisible?"block":"none"}),U.append("text").classed("axis-text",!0).style(O);var Y=q.select("text.axis-text").attr({x:g+d.labelOffset,dy:".35em",transform:function(e,t){var n=V(e),r=g+d.labelOffset,i=d.angularAxis.tickOrientation;return"horizontal"==i?"rotate("+-n+" "+r+" 0)":"radial"==i?n<270&&n>90?"rotate(180 "+r+" 0)":null:"rotate("+(n<=180&&n>0?-90:90)+" "+r+" 0)"}}).style({"text-anchor":"middle",display:d.angularAxis.labelsVisible?"block":"none"}).text(function(e,t){return t%(d.minorTicks+1)!=0?"":T?T[e]+d.angularAxis.ticksSuffix:e+d.angularAxis.ticksSuffix}).style(O);d.angularAxis.rewriteTicks&&Y.text(function(e,t){return t%(d.minorTicks+1)!=0?"":d.angularAxis.rewriteTicks(this.textContent,t)});var X=r.max(G.selectAll(".angular-tick text")[0].map(function(e,t){return e.getCTM().e+e.getBBox().width}));z.attr({transform:"translate("+[g+X,d.margin.top]+")"});var Z=e.select("g.geometry-group").selectAll("g").size()>0,J=e.select("g.geometry-group").selectAll("g.geometry").data(f);if(J.enter().append("g").attr({class:function(e,t){return"geometry geometry"+t}}),J.exit().remove(),f[0]||Z){var Q=[];f.forEach(function(e,t){var r={};r.radialScale=n,r.angularScale=l,r.container=J.filter(function(e,n){return n==t}),r.geometry=e.geometry,r.orientation=d.orientation,r.direction=d.direction,r.index=t,Q.push({data:e,geometryConfig:r})});var ee=[];r.nest().key(function(e,t){return void 0!==e.data.groupId||"unstacked"}).entries(Q).forEach(function(e,t){"unstacked"===e.key?ee=ee.concat(e.values.map(function(e,t){return[e]})):ee.push(e.values)}),ee.forEach(function(e,t){var n;n=Array.isArray(e)?e[0].geometryConfig.geometry:e.geometryConfig.geometry;var r=e.map(function(e,t){return i(a[n].defaultConfig(),e)});a[n]().config(r)()})}var te,ne,re=e.select(".guides-group"),ie=e.select(".tooltips-group"),ae=a.tooltipPanel().config({container:ie,fontSize:8})(),le=a.tooltipPanel().config({container:ie,fontSize:8})(),oe=a.tooltipPanel().config({container:ie,hasTick:!0})();if(!M){var se=re.select("line").attr({x1:0,y1:0,y2:0}).style({stroke:"grey","pointer-events":"none"});G.on("mousemove.angular-guide",function(e,t){var n=a.util.getMousePos($).angle;se.attr({x2:-g,transform:"rotate("+n+")"}).style({opacity:.5});var r=(n+180+360-d.orientation)%360;te=l.invert(r);var i=a.util.convertToCartesian(g+12,n+180);ae.text(a.util.round(te)).move([i[0]+_[0],i[1]+_[1]])}).on("mouseout.angular-guide",function(e,t){re.select("line").style({opacity:0})})}var ue=re.select("circle").style({stroke:"grey",fill:"none"});G.on("mousemove.radial-guide",function(e,t){var r=a.util.getMousePos($).radius;ue.attr({r:r}).style({opacity:.5}),ne=n.invert(a.util.getMousePos($).radius);var i=a.util.convertToCartesian(r,d.radialAxis.orientation);le.text(a.util.round(ne)).move([i[0]+_[0],i[1]+_[1]])}).on("mouseout.radial-guide",function(e,t){ue.style({opacity:0}),oe.hide(),ae.hide(),le.hide()}),e.selectAll(".geometry-group .mark").on("mouseover.tooltip",function(t,n){var i=r.select(this),l=i.style("fill"),o="black",s=i.style("opacity")||1;if(i.attr({"data-opacity":s}),"none"!=l){i.attr({"data-fill":l}),o=r.hsl(l).darker().toString(),i.style({fill:o,opacity:1});var u={t:a.util.round(t[0]),r:a.util.round(t[1])};M&&(u.t=T[t[0]]);var c="t: "+u.t+", r: "+u.r,d=this.getBoundingClientRect(),f=e.node().getBoundingClientRect(),h=[d.left+d.width/2-E[0]-f.left,d.top+d.height/2-E[1]-f.top];oe.config({color:o}).text(c),oe.move(h)}else l=i.style("stroke"),i.attr({"data-stroke":l}),o=r.hsl(l).darker().toString(),i.style({stroke:o,opacity:1})}).on("mousemove.tooltip",function(e,t){if(0!=r.event.which)return!1;r.select(this).attr("data-fill")&&oe.show()}).on("mouseout.tooltip",function(e,t){oe.hide();var n=r.select(this),i=n.attr("data-fill");i?n.style({fill:i,opacity:n.attr("data-opacity")}):n.style({stroke:n.attr("data-stroke"),opacity:n.attr("data-opacity")})})})}(s),this},d.config=function(e){if(!arguments.length)return o;var t=a.util.cloneJson(e);return t.data.forEach(function(e,t){o.data[t]||(o.data[t]={}),i(o.data[t],a.Axis.defaultConfig().data[0]),i(o.data[t],e)}),i(o.layout,a.Axis.defaultConfig().layout),i(o.layout,t.layout),this},d.getLiveConfig=function(){return u},d.getinputConfig=function(){return s},d.radialScale=function(e){return n},d.angularScale=function(e){return l},d.svg=function(){return e},r.rebind(d,c,"on"),d},a.Axis.defaultConfig=function(e,t){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:"Line1",geometry:"LinePlot",color:null,strokeDash:"solid",strokeColor:null,strokeSize:"1",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:r.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:"gray",outlineColor:"white",family:"Tahoma, sans-serif"},direction:"clockwise",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:"",visible:!0,gridLinesVisible:!0,tickOrientation:"horizontal",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:"",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:"horizontal",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:"silver",minorTickColor:"#eee",backgroundColor:"none",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},a.util={},a.DATAEXTENT="dataExtent",a.AREA="AreaChart",a.LINE="LinePlot",a.DOT="DotPlot",a.BAR="BarChart",a.util._override=function(e,t){for(var n in e)n in t&&(t[n]=e[n])},a.util._extend=function(e,t){for(var n in e)t[n]=e[n]},a.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},a.util.dataFromEquation2=function(e,t){var n=t||6;return r.range(0,360+n,n).map(function(t,n){var r=t*Math.PI/180;return[t,e(r)]})},a.util.dataFromEquation=function(e,t,n){var i=t||6,a=[],l=[];r.range(0,360+i,i).forEach(function(t,n){var r=t*Math.PI/180,i=e(r);a.push(t),l.push(i)});var o={t:a,r:l};return n&&(o.name=n),o},a.util.ensureArray=function(e,t){if(void 0===e)return null;var n=[].concat(e);return r.range(t).map(function(e,t){return n[t]||n[0]})},a.util.fillArrays=function(e,t,n){return t.forEach(function(t,r){e[t]=a.util.ensureArray(e[t],n)}),e},a.util.cloneJson=function(e){return JSON.parse(JSON.stringify(e))},a.util.validateKeys=function(e,t){"string"==typeof t&&(t=t.split("."));var n=t.shift();return e[n]&&(!t.length||objHasKeys(e[n],t))},a.util.sumArrays=function(e,t){return r.zip(e,t).map(function(e,t){return r.sum(e)})},a.util.arrayLast=function(e){return e[e.length-1]},a.util.arrayEqual=function(e,t){for(var n=Math.max(e.length,t.length,1);n-- >=0&&e[n]===t[n];);return-2===n},a.util.flattenArray=function(e){for(var t=[];!a.util.arrayEqual(t,e);)t=e,e=[].concat.apply([],e);return e},a.util.deduplicate=function(e){return e.filter(function(e,t,n){return n.indexOf(e)==t})},a.util.convertToCartesian=function(e,t){var n=t*Math.PI/180;return[e*Math.cos(n),e*Math.sin(n)]},a.util.round=function(e,t){var n=t||2,r=Math.pow(10,n);return Math.round(e*r)/r},a.util.getMousePos=function(e){var t=r.mouse(e.node()),n=t[0],i=t[1],a={};return a.x=n,a.y=i,a.pos=t,a.angle=180*(Math.atan2(i,n)+Math.PI)/Math.PI,a.radius=Math.sqrt(n*n+i*i),a},a.util.duplicatesCount=function(e){for(var t,n={},r={},i=0,a=e.length;i0)){var s=r.select(this.parentNode).selectAll("path.line").data([0]);s.enter().insert("path"),s.attr({class:"line",d:c(o),transform:function(e,n){return"rotate("+(t.orientation+90)+")"},"pointer-events":"none"}).style({fill:function(e,t){return p.fill(n,i,a)},"fill-opacity":0,stroke:function(e,t){return p.stroke(n,i,a)},"stroke-width":function(e,t){return p["stroke-width"](n,i,a)},"stroke-dasharray":function(e,t){return p["stroke-dasharray"](n,i,a)},opacity:function(e,t){return p.opacity(n,i,a)},display:function(e,t){return p.display(n,i,a)}})}};var d=t.angularScale.range(),f=Math.abs(d[1]-d[0])/l[0].length*Math.PI/180,h=r.svg.arc().startAngle(function(e){return-f/2}).endAngle(function(e){return f/2}).innerRadius(function(e){return t.radialScale(s+(e[2]||0))}).outerRadius(function(e){return t.radialScale(s+(e[2]||0))+t.radialScale(e[1])});u.arc=function(e,n,i){r.select(this).attr({class:"mark arc",d:h,transform:function(e,n){return"rotate("+(t.orientation+o(e[0])+90)+")"}})};var p={fill:function(t,n,r){return e[r].data.color},stroke:function(t,n,r){return e[r].data.strokeColor},"stroke-width":function(t,n,r){return e[r].data.strokeSize+"px"},"stroke-dasharray":function(t,r,i){return n[e[i].data.strokeDash]},opacity:function(t,n,r){return e[r].data.opacity},display:function(t,n,r){return void 0===e[r].data.visible||e[r].data.visible?"block":"none"}},v=r.select(this).selectAll("g.layer").data(l);v.enter().append("g").attr({class:"layer"});var y=v.selectAll("path.mark").data(function(e,t){return e});y.enter().append("path").attr({class:"mark"}),y.style(p).each(u[t.geometryType]),y.exit().remove(),v.exit().remove()})}return l.config=function(t){return arguments.length?(t.forEach(function(t,n){e[n]||(e[n]={}),i(e[n],a.PolyChart.defaultConfig()),i(e[n],t)}),this):e},l.getColorScale=function(){},r.rebind(l,t,"on"),l},a.PolyChart.defaultConfig=function(){return{data:{name:"geom1",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:"circle",dotSize:64,dotVisible:!1,barWidth:20,color:"#ffa500",strokeSize:1,strokeColor:"silver",strokeDash:"solid",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:"LinePlot",geometryType:"arc",direction:"clockwise",orientation:0,container:"body",radialScale:null,angularScale:null,colorScale:r.scale.category20()}}},a.BarChart=function(){return a.PolyChart()},a.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:"bar"}}},a.AreaChart=function(){return a.PolyChart()},a.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:"arc"}}},a.DotPlot=function(){return a.PolyChart()},a.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:"dot",dotType:"circle"}}},a.LinePlot=function(){return a.PolyChart()},a.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:"line"}}},a.Legend=function(){var e=a.Legend.defaultConfig(),t=r.dispatch("hover");function n(){var t=e.legendConfig,a=e.data.map(function(e,n){return[].concat(e).map(function(e,r){var a=i({},t.elements[n]);return a.name=e,a.color=[].concat(t.elements[n].color)[r],a})}),l=r.merge(a);l=l.filter(function(e,n){return t.elements[n]&&(t.elements[n].visibleInLegend||void 0===t.elements[n].visibleInLegend)}),t.reverseOrder&&(l=l.reverse());var o=t.container;("string"==typeof o||o.nodeName)&&(o=r.select(o));var s=l.map(function(e,t){return e.color}),u=t.fontSize,c=null==t.isContinuous?"number"==typeof l[0]:t.isContinuous,d=c?t.height:u*l.length,f=o.classed("legend-group",!0).selectAll("svg").data([0]),h=f.enter().append("svg").attr({width:300,height:d+u,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"});h.append("g").classed("legend-axis",!0),h.append("g").classed("legend-marks",!0);var p=r.range(l.length),v=r.scale[c?"linear":"ordinal"]().domain(p).range(s),y=r.scale[c?"linear":"ordinal"]().domain(p)[c?"range":"rangePoints"]([0,d]);if(c){var g=f.select(".legend-marks").append("defs").append("linearGradient").attr({id:"grad1",x1:"0%",y1:"0%",x2:"0%",y2:"100%"}).selectAll("stop").data(s);g.enter().append("stop"),g.attr({offset:function(e,t){return t/(s.length-1)*100+"%"}}).style({"stop-color":function(e,t){return e}}),f.append("rect").classed("legend-mark",!0).attr({height:t.height,width:t.colorBandWidth,fill:"url(#grad1)"})}else{var m=f.select(".legend-marks").selectAll("path.legend-mark").data(l);m.enter().append("path").classed("legend-mark",!0),m.attr({transform:function(e,t){return"translate("+[u/2,y(t)+u/2]+")"},d:function(e,t){var n,i,a,l=e.symbol;return a=3*(i=u),"line"===(n=l)?"M"+[[-i/2,-i/12],[i/2,-i/12],[i/2,i/12],[-i/2,i/12]]+"Z":-1!=r.svg.symbolTypes.indexOf(n)?r.svg.symbol().type(n).size(a)():r.svg.symbol().type("square").size(a)()},fill:function(e,t){return v(t)}}),m.exit().remove()}var _=r.svg.axis().scale(y).orient("right"),T=f.select("g.legend-axis").attr({transform:"translate("+[c?t.colorBandWidth:u,u/2]+")"}).call(_);return T.selectAll(".domain").style({fill:"none",stroke:"none"}),T.selectAll("line").style({fill:"none",stroke:c?t.textColor:"none"}),T.selectAll("text").style({fill:t.textColor,"font-size":t.fontSize}).text(function(e,t){return l[t].name}),n}return n.config=function(t){return arguments.length?(i(e,t),this):e},r.rebind(n,t,"on"),n},a.Legend.defaultConfig=function(e,t){return{data:["a","b","c"],legendConfig:{elements:[{symbol:"line",color:"red"},{symbol:"square",color:"yellow"},{symbol:"diamond",color:"limegreen"}],height:150,colorBandWidth:30,fontSize:12,container:"body",isContinuous:null,textColor:"grey",reverseOrder:!1}}},a.tooltipPanel=function(){var e,t,n,l={container:null,hasTick:!1,fontSize:12,color:"white",padding:5},o="tooltip-"+a.tooltipPanel.uid++,s=10,u=function(){var r=(e=l.container.selectAll("g."+o).data([0])).enter().append("g").classed(o,!0).style({"pointer-events":"none",display:"none"});return n=r.append("path").style({fill:"white","fill-opacity":.9}).attr({d:"M0 0"}),t=r.append("text").attr({dx:l.padding+s,dy:.3*+l.fontSize}),u};return u.text=function(i){var a=r.hsl(l.color).l,o=a>=.5?"#aaa":"white",c=a>=.5?"black":"white",d=i||"";t.style({fill:c,"font-size":l.fontSize+"px"}).text(d);var f=l.padding,h=t.node().getBBox(),p={fill:l.color,stroke:o,"stroke-width":"2px"},v=h.width+2*f+s,y=h.height+2*f;return n.attr({d:"M"+[[s,-y/2],[s,-y/4],[l.hasTick?0:s,0],[s,y/4],[s,y/2],[v,y/2],[v,-y/2]].join("L")+"Z"}).style(p),e.attr({transform:"translate("+[s,-y/2+2*f]+")"}),e.style({display:"block"}),u},u.move=function(t){if(e)return e.attr({transform:"translate("+[t[0],t[1]]+")"}).style({display:"block"}),u},u.hide=function(){if(e)return e.style({display:"none"}),u},u.show=function(){if(e)return e.style({display:"block"}),u},u.config=function(e){return i(l,e),u},u},a.tooltipPanel.uid=1,a.adapter={},a.adapter.plotly=function(){var e={convert:function(e,t){var n={};if(e.data&&(n.data=e.data.map(function(e,n){var r=i({},e);return[[r,["marker","color"],["color"]],[r,["marker","opacity"],["opacity"]],[r,["marker","line","color"],["strokeColor"]],[r,["marker","line","dash"],["strokeDash"]],[r,["marker","line","width"],["strokeSize"]],[r,["marker","symbol"],["dotType"]],[r,["marker","size"],["dotSize"]],[r,["marker","barWidth"],["barWidth"]],[r,["line","interpolation"],["lineInterpolation"]],[r,["showlegend"],["visibleInLegend"]]].forEach(function(e,n){a.util.translator.apply(null,e.concat(t))}),t||delete r.marker,t&&delete r.groupId,t?("LinePlot"===r.geometry?(r.type="scatter",!0===r.dotVisible?(delete r.dotVisible,r.mode="lines+markers"):r.mode="lines"):"DotPlot"===r.geometry?(r.type="scatter",r.mode="markers"):"AreaChart"===r.geometry?r.type="area":"BarChart"===r.geometry&&(r.type="bar"),delete r.geometry):("scatter"===r.type?"lines"===r.mode?r.geometry="LinePlot":"markers"===r.mode?r.geometry="DotPlot":"lines+markers"===r.mode&&(r.geometry="LinePlot",r.dotVisible=!0):"area"===r.type?r.geometry="AreaChart":"bar"===r.type&&(r.geometry="BarChart"),delete r.mode,delete r.type),r}),!t&&e.layout&&"stack"===e.layout.barmode)){var l=a.util.duplicates(n.data.map(function(e,t){return e.geometry}));n.data.forEach(function(e,t){var r=l.indexOf(e.geometry);-1!=r&&(n.data[t].groupId=r)})}if(e.layout){var o=i({},e.layout);if([[o,["plot_bgcolor"],["backgroundColor"]],[o,["showlegend"],["showLegend"]],[o,["radialaxis"],["radialAxis"]],[o,["angularaxis"],["angularAxis"]],[o.angularaxis,["showline"],["gridLinesVisible"]],[o.angularaxis,["showticklabels"],["labelsVisible"]],[o.angularaxis,["nticks"],["ticksCount"]],[o.angularaxis,["tickorientation"],["tickOrientation"]],[o.angularaxis,["ticksuffix"],["ticksSuffix"]],[o.angularaxis,["range"],["domain"]],[o.angularaxis,["endpadding"],["endPadding"]],[o.radialaxis,["showline"],["gridLinesVisible"]],[o.radialaxis,["tickorientation"],["tickOrientation"]],[o.radialaxis,["ticksuffix"],["ticksSuffix"]],[o.radialaxis,["range"],["domain"]],[o.angularAxis,["showline"],["gridLinesVisible"]],[o.angularAxis,["showticklabels"],["labelsVisible"]],[o.angularAxis,["nticks"],["ticksCount"]],[o.angularAxis,["tickorientation"],["tickOrientation"]],[o.angularAxis,["ticksuffix"],["ticksSuffix"]],[o.angularAxis,["range"],["domain"]],[o.angularAxis,["endpadding"],["endPadding"]],[o.radialAxis,["showline"],["gridLinesVisible"]],[o.radialAxis,["tickorientation"],["tickOrientation"]],[o.radialAxis,["ticksuffix"],["ticksSuffix"]],[o.radialAxis,["range"],["domain"]],[o.font,["outlinecolor"],["outlineColor"]],[o.legend,["traceorder"],["reverseOrder"]],[o,["labeloffset"],["labelOffset"]],[o,["defaultcolorrange"],["defaultColorRange"]]].forEach(function(e,n){a.util.translator.apply(null,e.concat(t))}),t?(void 0!==o.tickLength&&(o.angularaxis.ticklen=o.tickLength,delete o.tickLength),o.tickColor&&(o.angularaxis.tickcolor=o.tickColor,delete o.tickColor)):(o.angularAxis&&void 0!==o.angularAxis.ticklen&&(o.tickLength=o.angularAxis.ticklen),o.angularAxis&&void 0!==o.angularAxis.tickcolor&&(o.tickColor=o.angularAxis.tickcolor)),o.legend&&"boolean"!=typeof o.legend.reverseOrder&&(o.legend.reverseOrder="normal"!=o.legend.reverseOrder),o.legend&&"boolean"==typeof o.legend.traceorder&&(o.legend.traceorder=o.legend.traceorder?"reversed":"normal",delete o.legend.reverseOrder),o.margin&&void 0!==o.margin.t){var s=["t","r","b","l","pad"],u=["top","right","bottom","left","pad"],c={};r.entries(o.margin).forEach(function(e,t){c[u[s.indexOf(e.key)]]=e.value}),o.margin=c}t&&(delete o.needsEndSpacing,delete o.minorTickColor,delete o.minorTicks,delete o.angularaxis.ticksCount,delete o.angularaxis.ticksCount,delete o.angularaxis.ticksStep,delete o.angularaxis.rewriteTicks,delete o.angularaxis.nticks,delete o.radialaxis.ticksCount,delete o.radialaxis.ticksCount,delete o.radialaxis.ticksStep,delete o.radialaxis.rewriteTicks,delete o.radialaxis.nticks),n.layout=o}return n}};return e}},function(e,t,n){"use strict";var r=n(0),i=n(111);var a={add:function(e,t,n,r,a){var l,o;e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},o=e.undoQueue.index,e.autoplay?e.undoQueue.inSequence||(e.autoplay=!1):(!e.undoQueue.sequence||e.undoQueue.beginSequence?(l={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(o,e.undoQueue.queue.length-o,l),e.undoQueue.index+=1):l=e.undoQueue.queue[o-1],e.undoQueue.beginSequence=!1,l&&(l.undo.calls.unshift(t),l.undo.args.unshift(n),l.redo.calls.push(r),l.redo.args.push(a)),e.undoQueue.queue.length>i.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,n;if(e.framework&&e.framework.isPolar)e.framework.undo();else if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n1)};d(t.width)&&d(t.height)||c(new Error("Height and width should be pixel values."));var f=o(e,{format:"png",height:t.height,width:t.width}),h=f.gd;h.style.position="absolute",h.style.left="-5000px",document.body.appendChild(h);var p=l.getRedrawFunc(h);i.plot(h,f.data,f.layout,f.config).then(p).then(function(){var e=l.getDelay(h._fullLayout);return new Promise(function(n,r){setTimeout(function(){var e=s(h),i=document.createElement("canvas");i.id=a.randstr(),u({format:t.format,width:h._fullLayout.width,height:h._fullLayout.height,canvas:i,svg:e,promise:!0}).then(function(e){h&&document.body.removeChild(h),n(e)}).catch(function(e){r(e)})},e)})}).then(function(e){n(e)}).catch(function(e){c(e)})})}},function(e,t,n){"use strict";t.manage=n(274)},function(e,t,n){"use strict";var r=n(2),i=n(0);e.exports=function(e,t,n,a){var l=a.counterAxes||[],o=a.overlayableAxes||[],s=a.letter;"free"===i.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(l),dflt:r(e.position)?"free":l[0]||"free"}},"anchor")&&n("position"),i.coerce(e,t,{side:{valType:"enumerated",values:"x"===s?["bottom","top"]:["left","right"],dflt:"x"===s?"bottom":"left"}},"side");var u=!1;if(o.length&&(u=i.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!u){var c=n("domain");c[0]>c[1]-.01&&(t.domain=[0,1]),i.noneOrAll(e.domain,t.domain,[0,1])}return t}},function(e,t,n){"use strict";var r=n(1),i=n(2),a=n(0),l=a.cleanNumber,o=a.ms2DateTime,s=a.dateTime2ms,u=a.ensureNumber,c=n(16),d=c.FP_SAFE,f=c.BADNUM,h=n(15),p=n(18);function v(e){return Math.pow(10,e)}e.exports=function(e,t){t=t||{};var n=10;function c(t,r){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&r&&e.range&&2===e.range.length){var i=e.range[0],a=e.range[1];return.5*(i+a-3*n*Math.abs(i-a))}return f}function y(t,n,r){var a=s(t,r||e.calendar);if(a===f){if(!i(t))return f;a=s(new Date(+t))}return a}function g(t,n,r){return o(t,n,r||e.calendar)}function m(t){return e._categories[Math.round(t)]}function _(t){if(e._categoriesMap){var n=e._categoriesMap[t];if(void 0!==n)return n}if(i(t))return+t}function T(t){return i(t)?r.round(e._b+e._m*t,2):f}function b(t){return(t-e._b)/e._m}e.c2l="log"===e.type?c:u,e.l2c="log"===e.type?v:u,e.l2p=T,e.p2l=b,e.c2p="log"===e.type?function(e,t){return T(c(e,t))}:T,e.p2c="log"===e.type?function(e){return v(b(e))}:b,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=l,e.c2d=e.c2r=e.l2d=e.l2r=u,e.d2p=e.r2p=function(t){return e.l2p(l(t))},e.p2d=e.p2r=b,e.cleanPos=u):"log"===e.type?(e.d2r=e.d2l=function(e,t){return c(l(e),t)},e.r2d=e.r2c=function(e){return v(l(e))},e.d2c=e.r2l=l,e.c2d=e.l2r=u,e.c2r=c,e.l2d=v,e.d2p=function(t,n){return e.l2p(e.d2r(t,n))},e.p2d=function(e){return v(b(e))},e.r2p=function(t){return e.l2p(l(t))},e.p2r=b,e.cleanPos=u):"date"===e.type?(e.d2r=e.r2d=a.identity,e.d2c=e.r2c=e.d2l=e.r2l=y,e.c2d=e.c2r=e.l2d=e.l2r=g,e.d2p=e.r2p=function(t,n,r){return e.l2p(y(t,0,r))},e.p2d=e.p2r=function(e,t,n){return g(b(e),t,n)},e.cleanPos=function(t){return a.cleanDate(t,f,e.calendar)}):"category"===e.type&&(e.d2c=e.d2l=function(t){if(null!==t&&void 0!==t){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push(t);var n=e._categories.length-1;return e._categoriesMap[t]=n,n}return f},e.r2d=e.c2d=e.l2d=m,e.d2r=e.d2l_noadd=_,e.r2c=function(t){var n=_(t);return void 0!==n?n:e.fraction2r(.5)},e.l2r=e.c2r=u,e.r2l=_,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return m(b(e))},e.r2p=e.d2p,e.p2r=b,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:u(e)}),e.fraction2r=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return e.l2r(n+t*(r-n))},e.r2fraction=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return(e.r2l(t)-n)/(r-n)},e.cleanRange=function(t){t||(t="range");var n,r,l=a.nestedProperty(e,t).get(),o=(e._id||"x").charAt(0);if(r=(r="date"===e.type?a.dfltRange(e.calendar):"y"===o?h.DFLTRANGEY:h.DFLTRANGEX).slice(),l&&2===l.length)for("date"===e.type&&(l[0]=a.cleanDate(l[0],f,e.calendar),l[1]=a.cleanDate(l[1],f,e.calendar)),n=0;n<2;n++)if("date"===e.type){if(!a.isDateTime(l[n],e.calendar)){e[t]=r;break}if(e.r2l(l[0])===e.r2l(l[1])){var s=a.constrain(e.r2l(l[0]),a.MIN_MS+1e3,a.MAX_MS-1e3);l[0]=e.l2r(s-1e3),l[1]=e.l2r(s+1e3);break}}else{if(!i(l[n])){if(!i(l[1-n])){e[t]=r;break}l[n]=l[1-n]*(n?10:.1)}if(l[n]<-d?l[n]=-d:l[n]>d&&(l[n]=d),l[0]===l[1]){var u=Math.max(1,Math.abs(1e-6*l[0]));l[0]-=u,l[1]+=u}}else a.nestedProperty(e,t).set(r)},e.setScale=function(n){var r=t._size,i=e._id.charAt(0);if(e._categories||(e._categories=[]),e._categoriesMap||(e._categoriesMap={}),e.overlaying){var l=p.getFromId({_fullLayout:t},e.overlaying);e.domain=l.domain}var o=n&&e._r?"_r":"range",s=e.calendar;e.cleanRange(o);var u=e.r2l(e[o][0],s),c=e.r2l(e[o][1],s);if("y"===i?(e._offset=r.t+(1-e.domain[1])*r.h,e._length=r.h*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c):(e._offset=r.l+e.domain[0]*r.w,e._length=r.w*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u),!isFinite(e._m)||!isFinite(e._b))throw a.notifier("Something went wrong with axis scaling","long"),t._replotting=!1,new Error("axis scaling")},e.makeCalcdata=function(t,n){var r,i,a,l="date"===e.type&&t[n+"calendar"];if(n in t)for(r=t[n],i=new Array(r.length),a=0;a2*l}(e,t)?"date":function(e){for(var t,n=Math.max(1,(e.length-1)/1e3),r=0,l=0,o=0;o2*r}(e)?"category":function(e){if(!e)return!1;for(var t=0;t=0?i.Reds:i.Blues,s.colorscale=v,o.reversescale&&(v=a(v)),o.colorscale=v)}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n,i,a){var l=function(e){var t=["showexponent","showtickprefix","showticksuffix"].filter(function(t){return void 0!==e[t]});if(t.every(function(n){return e[n]===e[t[0]]})||1===t.length)return e[t[0]]}(e);if(n("tickprefix")&&n("showtickprefix",l),n("ticksuffix")&&n("showticksuffix",l),n("showticklabels")){var o=a.font||{},s=t.color===e.color?t.color:o.color;if(r.coerceFont(n,"tickfont",{family:o.family,size:o.size,color:s}),n("tickangle"),"category"!==i)n("tickformat")||"date"===i||(n("showexponent",l),n("exponentformat"),n("separatethousands"))}"category"===i||a.noHover||n("hoverformat")}},function(e,t,n){"use strict";var r=n(0),i=n(23);e.exports=function(e,t,n,a){var l=r.coerce2(e,t,i,"ticklen"),o=r.coerce2(e,t,i,"tickwidth"),s=r.coerce2(e,t,i,"tickcolor",t.color);n("ticks",a.outerTicks||l||o||s?"outside":"")||(delete t.ticklen,delete t.tickwidth,delete t.tickcolor)}},function(e,t,n){"use strict";var r=n(2),i=n(0),a=n(16).ONEDAY;e.exports=function(e,t,n,l){var o="auto";"array"!==e.tickmode||"log"!==l&&"date"!==l||(e.tickmode="auto"),Array.isArray(e.tickvals)?o="array":e.dtick&&(o="linear");var s=n("tickmode",o);if("auto"===s)n("nticks");else if("linear"===s){var u="date"===l?a:1,c=n("dtick",u);if(r(c))t.dtick=c>0?Number(c):u;else if("string"!=typeof c)t.dtick=u;else{var d=c.charAt(0),f=c.substr(1);((f=r(f)?Number(f):0)<=0||!("date"===l&&"M"===d&&f===Math.round(f)||"log"===l&&"L"===d||"log"===l&&"D"===d&&(1===f||2===f)))&&(t.dtick=u)}var h="date"===l?i.dateTick0(t.calendar):0,p=n("tick0",h);"date"===l?t.tick0=i.cleanDate(p,h):r(p)&&"D1"!==c&&"D2"!==c?t.tick0=Number(p):t.tick0=h}else{void 0===n("tickvals")?t.tickmode="auto":n("ticktext")}}},function(e,t,n){"use strict";t.scales=n(25),t.defaultScale=n(164),t.attributes=n(159),t.handleDefaults=n(100),t.calc=n(154),t.hasColorscale=n(39),t.isValidScale=n(99),t.getScale=n(165),t.flipScale=n(98),t.extractScale=n(290),t.makeColorScaleFunc=n(289)},function(e,t,n){"use strict";e.exports={zauto:{valType:"boolean",role:"info",dflt:!0,description:["Determines the whether or not the color domain is computed","with respect to the input data."].join(" ")},zmin:{valType:"number",role:"info",dflt:null,description:"Sets the lower bound of color domain."},zmax:{valType:"number",role:"info",dflt:null,description:"Sets the upper bound of color domain."},colorscale:{valType:"colorscale",role:"style",description:["Sets the colorscale.","The colorscale must be an array containing","arrays mapping a normalized value to an","rgb, rgba, hex, hsl, hsv, or named color string.","At minimum, a mapping for the lowest (0) and highest (1)","values are required. For example,","`[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`.","To control the bounds of the colorscale in z space,","use zmin and zmax"].join(" ")},autocolorscale:{valType:"boolean",role:"style",dflt:!0,description:["Determines whether or not the colorscale is picked using the sign of","the input z values."].join(" ")},reversescale:{valType:"boolean",role:"style",dflt:!1,description:"Reverses the colorscale."},showscale:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not a colorbar is displayed for this trace."].join(" ")}}},function(e,t,n){"use strict";e.exports={_isLinkedToArray:"frames_entry",group:{valType:"string",role:"info",description:["An identifier that specifies the group to which the frame belongs,","used by animate to select a subset of frames."].join(" ")},name:{valType:"string",role:"info",description:"A label by which to identify the frame"},traces:{valType:"any",role:"info",description:["A list of trace indices that identify the respective traces in the","data attribute"].join(" ")},baseframe:{valType:"string",role:"info",description:["The name of the frame into which this frame's properties are merged","before applying. This is used to unify properties and avoid needing","to specify the same values for the same properties in multiple frames."].join(" ")},data:{valType:"any",role:"object",description:["A list of traces this frame modifies. The format is identical to the","normal trace definition."].join(" ")},layout:{valType:"any",role:"object",description:["Layout properties which this frame modifies. The format is identical","to the normal layout definition."].join(" ")}}},function(e,t,n){"use strict";t.init2dArray=function(e,t){for(var n=new Array(e),r=0;rt}function s(e,t){return e>=t}t.findBin=function(e,t,n){if(r(t.start))return n?Math.ceil((e-t.start)/t.size)-1:Math.floor((e-t.start)/t.size);var u,c,d=0,f=t.length,h=0;for(c=t[t.length-1]>=t[0]?n?a:l:n?s:o;d90&&i.log("Long binary search..."),d-1},t.sorterAsc=function(e,t){return e-t},t.sorterDes=function(e,t){return t-e},t.distinctVals=function(e){var n=e.slice();n.sort(t.sorterAsc);for(var r=n.length-1,i=n[r]-n[0]||1,a=i/(r||1)/1e4,l=[n[0]],o=0;on[o]+a&&(i=Math.min(i,n[o+1]-n[o]),l.push(n[o+1]));return{vals:l,minDiff:i}},t.roundUp=function(e,t,n){for(var r,i=0,a=t.length-1,l=0,o=n?0:1,s=n?1:0,u=n?Math.ceil:Math.floor;i1)for(var n=1;n=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var m=Object.prototype.hasOwnProperty;function _(e,t){return m.call(e,t)}function T(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var b=/-(\w)/g,M=T(function(e){return e.replace(b,function(e,t){return t?t.toUpperCase():""})}),k=T(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),K=/\B([A-Z])/g,x=T(function(e){return e.replace(K,"-$1").toLowerCase()});var C=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function A(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function w(e,t){for(var n in t)e[n]=t[n];return e}function L(e){for(var t={},n=0;n0,X=q&&q.indexOf("edge/")>0,Z=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===H),J=(q&&/chrome\/\d+/.test(q),{}.watch),Q=!1;if($)try{var ee={};Object.defineProperty(ee,"passive",{get:function(){Q=!0}}),window.addEventListener("test-passive",null,ee)}catch(e){}var te=function(){return void 0===N&&(N=!$&&!V&&void 0!==e&&"server"===e.process.env.VUE_ENV),N},ne=$&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function re(e){return"function"==typeof e&&/native code/.test(e.toString())}var ie,ae="undefined"!=typeof Symbol&&re(Symbol)&&"undefined"!=typeof Reflect&&re(Reflect.ownKeys);ie="undefined"!=typeof Set&&re(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var le=D,oe=0,se=function(){this.id=oe++,this.subs=[]};se.prototype.addSub=function(e){this.subs.push(e)},se.prototype.removeSub=function(e){g(this.subs,e)},se.prototype.depend=function(){se.target&&se.target.addDep(this)},se.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(a&&!_(i,"default"))l=!1;else if(""===l||l===x(e)){var s=Ee(String,i.type);(s<0||o0&&(ut((u=e(u,(n||"")+"_"+s))[0])&&ut(d)&&(r[c]=ve(d.text+u[0].text),u.shift()),r.push.apply(r,u)):o(u)?ut(d)?r[c]=ve(d.text+u):""!==u&&r.push(ve(u)):ut(u)&&ut(d)?r[c]=ve(d.text+u.text):(l(t._isVList)&&a(u.tag)&&i(u.key)&&a(n)&&(u.key="__vlist"+n+"_"+s+"__"),r.push(u)));return r}(e):void 0}function ut(e){return a(e)&&a(e.text)&&!1===e.isComment}function ct(e,t){return(e.__esModule||ae&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function dt(e){return e.isComment&&e.asyncFactory}function ft(e){if(Array.isArray(e))for(var t=0;twt&&kt[n].id>e.id;)n--;kt.splice(n+1,0,e)}else kt.push(e);Ct||(Ct=!0,Qe(Lt))}}(this)},Bt.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Ie(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Bt.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Bt.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Bt.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var St={enumerable:!0,configurable:!0,get:D,set:D};function zt(e,t,n){St.get=function(){return this[t][n]},St.set=function(e){this[t][n]=e},Object.defineProperty(e,n,St)}function Gt(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&be(!1);var a=function(a){i.push(a);var l=Pe(a,t,n,e);Ce(r,a,l),a in e||zt(e,"_props",a)};for(var l in t)a(l);be(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?D:C(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;c(t=e._data="function"==typeof t?function(e,t){ce();try{return e.call(t,t)}catch(e){return Ie(e,t,"data()"),{}}finally{de()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var a=n[i];0,r&&_(r,a)||(void 0,36!==(l=(a+"").charCodeAt(0))&&95!==l&&zt(e,"_data",a))}var l;xe(t,!0)}(e):xe(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=te();for(var i in t){var a=t[i],l="function"==typeof a?a:a.get;0,r||(n[i]=new Bt(e,l||D,D,Wt)),i in e||Ot(e,i,a)}}(e,t.computed),t.watch&&t.watch!==J&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(e[i])<0)&&r.push(e[i]);return r}return e}function dn(e){this._init(e)}function fn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var a=e.name||n.options.name;var l=function(e){this._init(e)};return(l.prototype=Object.create(n.prototype)).constructor=l,l.cid=t++,l.options=We(n.options,e),l.super=n,l.options.props&&function(e){var t=e.options.props;for(var n in t)zt(e.prototype,"_props",n)}(l),l.options.computed&&function(e){var t=e.options.computed;for(var n in t)Ot(e.prototype,n,t[n])}(l),l.extend=n.extend,l.mixin=n.mixin,l.use=n.use,P.forEach(function(e){l[e]=n[e]}),a&&(l.options.components[a]=l),l.superOptions=n.options,l.extendOptions=e,l.sealedOptions=w({},l.options),i[r]=l,l}}function hn(e){return e&&(e.Ctor.options.name||e.tag)}function pn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function vn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var l=n[a];if(l){var o=hn(l.componentOptions);o&&!t(o)&&yn(n,a,r,i)}}}function yn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,g(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=sn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r,n._parentElm=t._parentElm,n._refElm=t._refElm;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=We(un(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&vt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=yt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return on(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return on(e,t,n,r,i,!0)};var a=n&&n.data;Ce(e,"$attrs",a&&a.attrs||r,null,!0),Ce(e,"$listeners",t._parentListeners||r,null,!0)}(t),Mt(t,"beforeCreate"),function(e){var t=jt(e.$options.inject,e);t&&(be(!1),Object.keys(t).forEach(function(n){Ce(e,n,t[n])}),be(!0))}(t),Gt(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Mt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(dn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ae,e.prototype.$delete=we,e.prototype.$watch=function(e,t,n){if(c(t))return Rt(this,e,t,n);(n=n||{}).user=!0;var r=new Bt(this,e,t,n);return n.immediate&&t.call(this,r.value),function(){r.teardown()}}}(dn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){if(Array.isArray(e))for(var r=0,i=e.length;r1?A(t):t;for(var n=A(arguments,1),r=0,i=t.length;rparseInt(this.max)&&yn(l,o[0],o,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return j}};Object.defineProperty(e,"config",t),e.util={warn:le,extend:w,mergeOptions:We,defineReactive:Ce},e.set=Ae,e.delete=we,e.nextTick=Qe,e.options=Object.create(null),P.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,w(e.options.components,mn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=We(this.options,e),this}}(e),fn(e),function(e){P.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(dn),Object.defineProperty(dn.prototype,"$isServer",{get:te}),Object.defineProperty(dn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(dn,"FunctionalRenderContext",{value:Jt}),dn.version="2.5.16";var _n=v("style,class"),Tn=v("input,textarea,option,select,progress"),bn=v("contenteditable,draggable,spellcheck"),Mn=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),kn="http://www.w3.org/1999/xlink",Kn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},xn=function(e){return Kn(e)?e.slice(6,e.length):""},Cn=function(e){return null==e||!1===e};function An(e){for(var t=e.data,n=e,r=e;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=wn(r.data,t));for(;a(n=n.parent);)n&&n.data&&(t=wn(t,n.data));return function(e,t){if(a(e)||a(t))return Ln(e,Dn(t));return""}(t.staticClass,t.class)}function wn(e,t){return{staticClass:Ln(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Ln(e,t){return e?t?e+" "+t:e:t||""}function Dn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r-1?Qn(e,t,n):Mn(t)?Cn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):bn(t)?e.setAttribute(t,Cn(n)||"false"===n?"false":"true"):Kn(t)?Cn(n)?e.removeAttributeNS(kn,xn(t)):e.setAttributeNS(kn,t,n):Qn(e,t,n)}function Qn(e,t,n){if(Cn(n))e.removeAttribute(t);else{if(U&&!Y&&"TEXTAREA"===e.tagName&&"placeholder"===t&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var er={create:Zn,update:Zn};function tr(e,t){var n=t.elm,r=t.data,l=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(l)||i(l.staticClass)&&i(l.class)))){var o=An(t),s=n._transitionClasses;a(s)&&(o=Ln(o,Dn(s))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var nr,rr={create:tr,update:tr},ir="__r",ar="__c";function lr(e,t,n,r,i){var a;t=(a=t)._withTask||(a._withTask=function(){Ye=!0;var e=a.apply(null,arguments);return Ye=!1,e}),n&&(t=function(e,t,n){var r=nr;return function i(){null!==e.apply(null,arguments)&&or(t,i,n,r)}}(t,e,r)),nr.addEventListener(e,t,Q?{capture:r,passive:i}:r)}function or(e,t,n,r){(r||nr).removeEventListener(e,t._withTask||t,n)}function sr(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};nr=t.elm,function(e){if(a(e[ir])){var t=U?"change":"input";e[t]=[].concat(e[ir],e[t]||[]),delete e[ir]}a(e[ar])&&(e.change=[].concat(e[ar],e.change||[]),delete e[ar])}(n),at(n,r,lr,or,t.context),nr=void 0}}var ur={create:sr,update:sr};function cr(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,l=t.elm,o=e.data.domProps||{},s=t.data.domProps||{};for(n in a(s.__ob__)&&(s=t.data.domProps=w({},s)),o)i(s[n])&&(l[n]="");for(n in s){if(r=s[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===o[n])continue;1===l.childNodes.length&&l.removeChild(l.childNodes[0])}if("value"===n){l._value=r;var u=i(r)?"":String(r);dr(l,u)&&(l.value=u)}else l[n]=r}}}function dr(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.lazy)return!1;if(r.number)return p(n)!==p(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var fr={create:cr,update:cr},hr=T(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function pr(e){var t=vr(e.style);return e.staticStyle?w(e.staticStyle,t):t}function vr(e){return Array.isArray(e)?L(e):"string"==typeof e?hr(e):e}var yr,gr=/^--/,mr=/\s*!important$/,_r=function(e,t,n){if(gr.test(t))e.style.setProperty(t,n);else if(mr.test(n))e.style.setProperty(t,n.replace(mr,""),"important");else{var r=br(t);if(Array.isArray(n))for(var i=0,a=n.length;i-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function xr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Cr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&w(t,Ar(e.name||"v")),w(t,e),t}return"string"==typeof e?Ar(e):void 0}}var Ar=T(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),wr=$&&!Y,Lr="transition",Dr="animation",Br="transition",Sr="transitionend",zr="animation",Gr="animationend";wr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Br="WebkitTransition",Sr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(zr="WebkitAnimation",Gr="webkitAnimationEnd"));var Wr=$?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Or(e){Wr(function(){Wr(e)})}function Pr(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Kr(e,t))}function Rr(e,t){e._transitionClasses&&g(e._transitionClasses,t),xr(e,t)}function jr(e,t,n){var r=Ir(e,t),i=r.type,a=r.timeout,l=r.propCount;if(!i)return n();var o=i===Lr?Sr:Gr,s=0,u=function(){e.removeEventListener(o,c),n()},c=function(t){t.target===e&&++s>=l&&u()};setTimeout(function(){s0&&(n=Lr,c=l,d=a.length):t===Dr?u>0&&(n=Dr,c=u,d=s.length):d=(n=(c=Math.max(l,u))>0?l>u?Lr:Dr:null)?n===Lr?a.length:s.length:0,{type:n,timeout:c,propCount:d,hasTransform:n===Lr&&Er.test(r[Br+"Property"])}}function Nr(e,t){for(;e.length1}function Ur(e,t){!0!==t.data.show&&$r(t)}var Yr=function(e){var t,n,r={},s=e.modules,u=e.nodeOps;for(t=0;tp?_(e,i(n[g+1])?null:n[g+1].elm,n,h,g,r):h>g&&b(0,t,f,p)}(s,h,p,n,o):a(p)?(a(e.text)&&u.setTextContent(s,""),_(s,null,p,0,p.length-1,n)):a(h)?b(0,h,0,h.length-1):a(e.text)&&u.setTextContent(s,""):e.text!==t.text&&u.setTextContent(s,t.text),a(f)&&a(c=f.hook)&&a(c=c.postpatch)&&c(e,t)}}}function x(e,t,n){if(l(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,l.selected!==a&&(l.selected=a);else if(z(ei(l),r))return void(e.selectedIndex!==o&&(e.selectedIndex=o));i||(e.selectedIndex=-1)}}function Qr(e,t){return t.every(function(t){return!z(t,e)})}function ei(e){return"_value"in e?e._value:e.value}function ti(e){e.target.composing=!0}function ni(e){e.target.composing&&(e.target.composing=!1,ri(e.target,"input"))}function ri(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ii(e){return!e.componentInstance||e.data&&e.data.transition?e:ii(e.componentInstance._vnode)}var ai={model:Xr,show:{bind:function(e,t,n){var r=t.value,i=(n=ii(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,$r(n,function(){e.style.display=a})):e.style.display=r?a:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=ii(n)).data&&n.data.transition?(n.data.show=!0,r?$r(n,function(){e.style.display=e.__vOriginalDisplay}):Vr(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},li={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function oi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?oi(ft(t.children)):e}function si(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var a in i)t[M(a)]=i[a];return t}function ui(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var ci={name:"transition",props:li,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(function(e){return e.tag||dt(e)})).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var a=oi(i);if(!a)return i;if(this._leaving)return ui(e,i);var l="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?l+"comment":l+a.tag:o(a.key)?0===String(a.key).indexOf(l)?a.key:l+a.key:a.key;var s=(a.data||(a.data={})).transition=si(this),u=this._vnode,c=oi(u);if(a.data.directives&&a.data.directives.some(function(e){return"show"===e.name})&&(a.data.show=!0),c&&c.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,c)&&!dt(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=w({},s);if("out-in"===r)return this._leaving=!0,lt(d,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),ui(e,i);if("in-out"===r){if(dt(a))return u;var f,h=function(){f()};lt(s,"afterEnter",h),lt(s,"enterCancelled",h),lt(d,"delayLeave",function(e){f=e})}}return i}}},di=w({tag:String,moveClass:String},li);function fi(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function hi(e){e.data.newPos=e.elm.getBoundingClientRect()}function pi(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+i+"px)",a.transitionDuration="0s"}}delete di.mode;var vi={Transition:ci,TransitionGroup:{props:di,render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],l=si(this),o=0;o-1?Wn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Wn[e]=/HTMLUnknownElement/.test(t.toString())},w(dn.options.directives,ai),w(dn.options.components,vi),dn.prototype.__patch__=$?Yr:D,dn.prototype.$mount=function(e,t){return function(e,t,n){return e.$el=t,e.$options.render||(e.$options.render=pe),Mt(e,"beforeMount"),new Bt(e,function(){e._update(e._render(),n)},D,null,!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Mt(e,"mounted")),e}(this,e=e&&$?function(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}(e):void 0,t)},$&&setTimeout(function(){j.devtools&&ne&&ne.emit("init",dn)},0),t.default=dn}.call(this,n(44),n(337).setImmediate)},function(e,t,n){"use strict";var r=n(0);e.exports={hasLines:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("lines")},hasMarkers:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("markers")},hasText:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("text")},isBubble:function(e){return r.isPlainObject(e.marker)&&Array.isArray(e.marker.size)}}},function(e,t,n){"use strict";var r=n(1),i=n(0),a=n(31),l=n(288),o=n(19).LINE_SPACING;function s(e,t){return e.node().getBoundingClientRect()[t]}var u=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;t.convertToTspans=function(e,n,l){var g=e.text(),L=!e.attr("data-notex")&&"undefined"!=typeof MathJax&&g.match(u),D=r.select(e.node().parentNode);if(!D.empty()){var B=e.attr("class")?e.attr("class").split(" ")[0]:"text";return B+="-math",D.selectAll("svg."+B).remove(),D.selectAll("g."+B+"-group").remove(),e.style("display",null).attr({"data-unformatted":g,"data-math":"N"}),L?(n&&n._promises||[]).push(new Promise(function(t){e.style("display","none");var n={fontSize:parseInt(e.style("font-size"),10)};!function(e,t,n){var a="math-output-"+i.randstr([],64),l=r.select("body").append("div").attr({id:a}).style({visibility:"hidden",position:"absolute"}).style({"font-size":t.fontSize+"px"}).text((o=e,o.replace(c,"\\lt ").replace(d,"\\gt ")));var o;MathJax.Hub.Queue(["Typeset",MathJax.Hub,l.node()],function(){var t=r.select("body").select("#MathJax_SVG_glyphs");if(l.select(".MathJax_SVG").empty()||!l.select("svg").node())i.log("There was an error in the tex syntax.",e),n();else{var a=l.select("svg").node().getBoundingClientRect();n(l.select(".MathJax_SVG"),t,a)}l.remove()})}(L[2],n,function(n,r,i){D.selectAll("svg."+B).remove(),D.selectAll("g."+B+"-group").remove();var a=n&&n.select("svg");if(!a||!a.node())return S(),void t();var o=D.append("g").classed(B+"-group",!0).attr({"pointer-events":"none","data-unformatted":g,"data-math":"Y"});o.node().appendChild(a.node()),r&&r.node()&&a.node().insertBefore(r.node().cloneNode(!0),a.node().firstChild),a.attr({class:B,height:i.height,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var u=e.style("fill")||"black";a.select("g").attr({fill:u,stroke:u});var c=s(a,"width"),d=s(a,"height"),f=+e.attr("x")-c*{start:0,middle:.5,end:1}[e.attr("text-anchor")||"start"],h=-(parseInt(e.style("font-size"),10)||s(e,"height"))/4;"y"===B[0]?(o.attr({transform:"rotate("+[-90,+e.attr("x"),+e.attr("y")]+") translate("+[-c/2,h-d/2]+")"}),a.attr({x:+e.attr("x"),y:+e.attr("y")})):"l"===B[0]?a.attr({x:e.attr("x"),y:h-d/2}):"a"===B[0]?a.attr({x:0,y:h}):a.attr({x:f,y:+e.attr("y")+h-d/2}),l&&l.call(e,o),t(o)})})):S(),e}function S(){D.empty()||(B=e.attr("class")+"-math",D.select("svg."+B).remove()),e.text("").style("white-space","pre"),function(e,t){t=(n=t,function(e,t){if(!e)return"";for(var n=0;n1)for(var i=1;i doesnt match end tag <"+e+">. Pretending it did match.",t),l=u[u.length-1].node}M.test(t)?d():(l=e,u=[{node:e}]);for(var B=t.split(T),S=0;S|>|>)/g;var f={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},h={sub:"0.3em",sup:"-0.6em"},p={sub:"-0.21em",sup:"0.42em"},v="​",y=["http:","https:","mailto:","",void 0,":"],g=new RegExp("]*)?/?>","g"),m=Object.keys(l.entityToUnicode).map(function(e){return{regExp:new RegExp("&"+e+";","g"),sub:l.entityToUnicode[e]}}),_=/(\r\n?|\n)/g,T=/(<[^<>]*>)/,b=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=//i,k=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,K=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,x=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,C=/(^|[\s"'])popup\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i;function A(e,t){if(!e)return null;var n=e.match(t);return n&&(n[3]||n[4])}var w=/(^|;)\s*color:/;function L(e,t,n){var r,i,a,l=n.horizontalAlign,o=n.verticalAlign||"top",s=e.node().getBoundingClientRect(),u=t.node().getBoundingClientRect();return i="bottom"===o?function(){return s.bottom-r.height}:"middle"===o?function(){return s.top+(s.height-r.height)/2}:function(){return s.top},a="right"===l?function(){return s.right-r.width}:"center"===l?function(){return s.left+(s.width-r.width)/2}:function(){return s.left},function(){return r=this.node().getBoundingClientRect(),this.style({top:i()-u.top+"px",left:a()-u.left+"px","z-index":1e3}),this}}t.plainText=function(e){return(e||"").replace(g," ")},t.lineCount=function(e){return e.selectAll("tspan.line").size()||1},t.positionText=function(e,t,n){return e.each(function(){var e=r.select(this);function i(t,n){return void 0===n?null===(n=e.attr(t))&&(e.attr(t,0),n=0):e.attr(t,n),n}var a=i("x",t),l=i("y",n);"text"===this.nodeName&&e.selectAll("tspan.line").attr({x:a,y:l})})},t.makeEditable=function(e,t){var n=t.gd,i=t.delegate,a=r.dispatch("edit","input","cancel"),l=i||e;if(e.style({"pointer-events":i?"none":"all"}),1!==e.size())throw new Error("boo");function o(){var i,o;i=r.select(n).select(".svg-container"),(o=i.append("div")).classed("plugin-editable editable",!0).style({position:"absolute","font-family":e.style("font-family")||"Arial","font-size":e.style("font-size")||12,color:t.fill||e.style("fill")||"black",opacity:1,"background-color":t.background||"transparent",outline:"#ffffff33 1px solid",margin:[-parseFloat(e.style("font-size"))/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(t.text||e.attr("data-unformatted")).call(L(e,i,t)).on("blur",function(){n._editing=!1,e.text(this.textContent).style({opacity:1});var t,i=r.select(this).attr("class");(t=i?"."+i.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(t).style({opacity:0});var l=this.textContent;r.select(this).transition().duration(0).remove(),r.select(document).on("mouseup",null),a.edit.call(e,l)}).on("focus",function(){var e=this;n._editing=!0,r.select(document).on("mouseup",function(){if(r.event.target===e)return!1;document.activeElement===o.node()&&o.node().blur()})}).on("keyup",function(){27===r.event.which?(n._editing=!1,e.style({opacity:1}),r.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),a.cancel.call(e,this.textContent)):(a.input.call(e,this.textContent),r.select(this).call(L(e,i,t)))}).on("keydown",function(){13===r.event.which&&this.blur()}).call(s),e.style({opacity:0});var u,c=l.attr("class");(u=c?"."+c.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(u).style({opacity:0})}function s(e){var t=e.node(),n=document.createRange();n.selectNodeContents(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n),t.focus()}return t.immediate?o():l.on("click",o),r.rebind(e,a,"on")}},function(e,t,n){"use strict";e.exports={idRegex:{x:/^x([2-9]|[1-9][0-9]+)?$/,y:/^y([2-9]|[1-9][0-9]+)?$/},attrRegex:{x:/^xaxis([2-9]|[1-9][0-9]+)?$/,y:/^yaxis([2-9]|[1-9][0-9]+)?$/},xAxisMatch:/^xaxis[0-9]*$/,yAxisMatch:/^yaxis[0-9]*$/,AX_ID_PATTERN:/^[xyz][0-9]*$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4]}},function(e,t,n){"use strict";e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEAVGYEAR:315576e5,ONEAVGMONTH:26298e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:1-1e-6}},function(e,t,n){"use strict";e.exports={family:{valType:"string",role:"style",noBlank:!0,strict:!0,description:["HTML font family - the typeface that will be applied by the web browser.","The web browser will only be able to apply a font if it is available on the system","which it operates. Provide multiple font families, separated by commas, to indicate","the preference in which to apply fonts if they aren't available on the system.","The plotly service (at https://plot.ly or on-premise) generates images on a server,","where only a select number of","fonts are installed and supported.","These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*,","*Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*,","*PT Sans Narrow*, *Raleway*, *Times New Roman*."].join(" ")},size:{valType:"number",role:"style",min:1},color:{valType:"color",role:"style"}}},function(e,t,n){"use strict";var r=n(4),i=n(9),a=n(0),l=n(15);function o(e,t,n){var r=e._fullLayout;if(!r)return[];function a(e,n){for(var r=Object.keys(e),i=/^[xyz]axis[0-9]*/,a=[],l=0;lp&&(h=Math.max(h-1,1)),e.doneFn&&e.doneFn(f._dragged,h,t),!f._dragged){var n;try{n=new MouseEvent("click",t)}catch(e){(n=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}d.dispatchEvent(n)}return function(e){e._dragging=!1,e._replotPending&&r.plot(e)}(f),f._dragged=!1,i.pauseEvent(t)}f._dragged=!1}f._mouseDownTime||(f._mouseDownTime=0),e.element.onmousedown=function(r){return f._dragged=!1,f._dragging=!0,t=r.clientX,n=r.clientY,d=r.target,(s=(new Date).getTime())-f._mouseDownTime1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=z(e,360),t=z(t,100),n=z(n,100),0===t)r=i=a=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=l(s,o,e+1/3),i=l(s,o,e),a=l(s,o,e-1/3)}return{r:255*r,g:255*i,b:255*a}}(e.h,r,s),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var h,p,v;return n=S(n),{ok:d,format:e.format||f,r:u(255,c(t.r,0)),g:u(255,c(t.g,0)),b:u(255,c(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=o++}function h(e,t,n){e=z(e,255),t=z(t,255),n=z(n,255);var r,i,a=c(e,t,n),l=u(e,t,n),o=(a+l)/2;if(a==l)r=i=0;else{var s=a-l;switch(i=o>.5?s/(2-a-l):s/(a+l),a){case e:r=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(f(r));return a}function L(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,i=n.s,a=n.v,l=[],o=1/t;t--;)l.push(f({h:r,s:i,v:a})),a=(a+o)%1;return l}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=S(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return v(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var a=[O(s(e).toString(16)),O(s(t).toString(16)),O(s(n).toString(16)),O(R(r))];if(i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*z(this._r,255))+"%",g:s(100*z(this._g,255))+"%",b:s(100*z(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*z(this._r,255))+"%, "+s(100*z(this._g,255))+"%, "+s(100*z(this._b,255))+"%)":"rgba("+s(100*z(this._r,255))+"%, "+s(100*z(this._g,255))+"%, "+s(100*z(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(B[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+y(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=f(e);n="#"+y(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(w,arguments)},complement:function(){return this._applyCombination(K,arguments)},monochromatic:function(){return this._applyCombination(L,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(x,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:P(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),i=f(t).toRgb(),a=n/100;return f({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,i,a=f.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},f.mostReadable=function(e,t,n){var r,i,a,l,o=null,s=0;i=(n=n||{}).includeFallbackColors,a=n.level,l=n.size;for(var u=0;us&&(s=r,o=f(t[u]));return f.isReadable(e,o,{level:a,size:l})||!i?o:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var D=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);function S(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function z(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function G(e){return u(1,c(0,e))}function W(e){return parseInt(e,16)}function O(e){return 1==e.length?"0"+e:""+e}function P(e){return e<=1&&(e=100*e+"%"),e}function R(e){return i.round(255*parseFloat(e)).toString(16)}function j(e){return W(e)/255}var E,I,N,F=(I="[\\s|\\(]+("+(E="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+E+")[,|\\s]+("+E+")\\s*\\)?",N="[\\s|\\(]+("+E+")[,|\\s]+("+E+")[,|\\s]+("+E+")[,|\\s]+("+E+")\\s*\\)?",{CSS_UNIT:new RegExp(E),rgb:new RegExp("rgb"+I),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+I),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+I),hsva:new RegExp("hsva"+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function $(e){return!!F.CSS_UNIT.exec(e)}void 0!==e&&e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(11));t.default={computed:{playersPerMatch:function(){return r.playersPerMatch(this.selectedMode)},hasTalents:function(){return r.hasTalents(this.selectedMode)},selectedActor:{get:function(){return this.$route.query.actor||"*Kinetic*"},set:function(e){this.$ga.event("Hero","update",e);var t=Object.assign({},this.$route.query,{actor:e});this.$router.push({query:t})}},selectedMode:{get:function(){return this.$route.query.mode||"blitz_pvp_ranked"},set:function(e){this.$ga.event("Mode","update",e);var t=Object.assign({},this.$route.query,{mode:e});this.$router.push({query:t})}},filterRarity:{get:function(){return this.$route.query.rarity||""},set:function(e){this.$ga.event("Rarity","update",e);var t=Object.assign({},this.$route.query,{rarity:e});this.$router.push({query:t})}},filterName:{get:function(){return this.$route.query.search||""},set:function(e){this.$ga.event("Search","update",e);var t=Object.assign({},this.$route.query,{search:e});this.$router.push({query:t})}},filterLowPickrate:{get:function(){return 1==this.$route.query.lowPickrate},set:function(e){this.$ga.event("LowPickrate","update",e);var t=Object.assign({},this.$route.query,{lowPickrate:e});this.$router.push({query:t})}}}}},function(e,t,n){"use strict";var r=n(17),i=n(24),a=n(101).dash,l=n(10).extendFlat,o=n(15);e.exports={visible:{valType:"boolean",role:"info",description:["A single toggle to hide the axis while preserving interaction like dragging.","Default is true when a cheater plot is present on the axis, otherwise","false"].join(" ")},color:{valType:"color",dflt:i.defaultLine,role:"style",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},title:{valType:"string",role:"info",description:"Sets the title of this axis."},titlefont:l({},r,{description:["Sets this axis' title font."].join(" ")}),type:{valType:"enumerated",values:["-","linear","log","date","category"],dflt:"-",role:"info",description:["Sets the axis type.","By default, plotly attempts to determined the axis type","by looking into the data of the traces that referenced","the axis in question."].join(" ")},autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,role:"style",description:["Determines whether or not the range of this axis is","computed in relation to the input data.","See `rangemode` for more info.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",role:"style",description:["If *normal*, the range is computed in relation to the extrema","of the input data.","If *tozero*`, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data."].join(" ")},range:{valType:"info_array",role:"info",items:[{valType:"any"},{valType:"any"}],description:["Sets the range of this axis.","If the axis `type` is *log*, then you must take the log of your","desired range (e.g. to set the range from 1 to 100,","set the range from 0 to 2).","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},fixedrange:{valType:"boolean",dflt:!1,role:"info",description:["Determines whether or not this axis is zoom-able.","If true, then zoom is disabled."].join(" ")},scaleanchor:{valType:"enumerated",values:[o.idRegex.x.toString(),o.idRegex.y.toString()],role:"info",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","changes together with the range of the corresponding axis","such that the scale of pixels per unit is in a constant ratio.","Both axes are still zoomable, but when you zoom one, the other will","zoom the same amount, keeping a fixed midpoint.","`constrain` and `constraintoward` determine how we enforce the constraint.","You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}`","but you can only link axes of the same `type`.","The linked axis can have the opposite letter (to constrain the aspect ratio)","or the same letter (to match scales across subplots).","Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant","and the last constraint encountered will be ignored to avoid possible","inconsistent constraints via `scaleratio`."].join(" ")},scaleratio:{valType:"number",min:0,dflt:1,role:"info",description:["If this axis is linked to another by `scaleanchor`, this determines the pixel","to unit scale ratio. For example, if this value is 10, then every unit on","this axis spans 10 times the number of pixels as a unit on the linked axis.","Use this for example to create an elevation profile where the vertical scale","is exaggerated a fixed amount with respect to the horizontal."].join(" ")},constrain:{valType:"enumerated",values:["range","domain"],dflt:"range",role:"info",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines how that happens:","by increasing the *range* (default), or by decreasing the *domain*."].join(" ")},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],role:"info",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines which direction we push","the originally specified plot area. Options are *left*, *center* (default),","and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes."].join(" ")},tickmode:{valType:"enumerated",values:["auto","linear","array"],role:"info",description:["Sets the tick mode for this axis.","If *auto*, the number of ticks is set via `nticks`.","If *linear*, the placement of the ticks is determined by","a starting position `tick0` and a tick step `dtick`","(*linear* is the default value if `tick0` and `dtick` are provided).","If *array*, the placement of the ticks is set via `tickvals`","and the tick text is `ticktext`.","(*array* is the default value if `tickvals` is provided)."].join(" ")},nticks:{valType:"integer",min:0,dflt:0,role:"style",description:["Specifies the maximum number of ticks for the particular axis.","The actual number of ticks will be chosen automatically to be","less than or equal to `nticks`.","Has an effect only if `tickmode` is set to *auto*."].join(" ")},tick0:{valType:"any",role:"style",description:["Sets the placement of the first tick on this axis.","Use with `dtick`.","If the axis `type` is *log*, then you must take the log of your starting tick","(e.g. to set the starting tick to 100, set the `tick0` to 2)","except when `dtick`=*L* (see `dtick` for more info).","If the axis `type` is *date*, it should be a date string, like date data.","If the axis `type` is *category*, it should be a number, using the scale where","each category is assigned a serial number from zero in the order it appears."].join(" ")},dtick:{valType:"any",role:"style",description:["Sets the step in-between ticks on this axis. Use with `tick0`.","Must be a positive number, or special strings available to *log* and *date* axes.","If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n","is the tick number. For example,","to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1.","To set tick marks at 1, 100, 10000, ... set dtick to 2.","To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433.","*log* has several special values; *L*, where `f` is a positive number,","gives ticks linearly spaced in value (but not position).","For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc.","To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5).","`tick0` is ignored for *D1* and *D2*.","If the axis `type` is *date*, then you must convert the time to milliseconds.","For example, to set the interval between ticks to one day,","set `dtick` to 86400000.0.","*date* also has special values *M* gives ticks spaced by a number of months.","`n` must be a positive integer.","To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*.","To set ticks every 4 years, set `dtick` to *M48*"].join(" ")},tickvals:{valType:"data_array",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},ticktext:{valType:"data_array",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},ticks:{valType:"enumerated",values:["outside","inside",""],role:"style",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *outside* (*inside*), this axis' are drawn outside (inside)","the axis lines."].join(" ")},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,role:"style",description:["Determines if the axis lines or/and ticks are mirrored to","the opposite side of the plotting area.","If *true*, the axis lines are mirrored.","If *ticks*, the axis lines and ticks are mirrored.","If *false*, mirroring is disable.","If *all*, axis lines are mirrored on all shared-axes subplots.","If *allticks*, axis lines and ticks are mirrored","on all shared-axes subplots."].join(" ")},ticklen:{valType:"number",min:0,dflt:5,role:"style",description:"Sets the tick length (in px)."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the tick width (in px)."},tickcolor:{valType:"color",dflt:i.defaultLine,role:"style",description:"Sets the tick color."},showticklabels:{valType:"boolean",dflt:!0,role:"style",description:"Determines whether or not the tick labels are drawn."},showspikes:{valType:"boolean",dflt:!1,role:"style",description:["Determines whether or not spikes (aka droplines) are drawn for this axis.","Note: This only takes affect when hovermode = closest"].join(" ")},spikecolor:{valType:"color",dflt:null,role:"style",description:"Sets the spike color. If undefined, will use the series color"},spikethickness:{valType:"number",dflt:3,role:"style",description:"Sets the width (in px) of the zero line."},spikedash:l({},a,{dflt:"dash"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],role:"style",dflt:"toaxis",description:["Determines the drawing mode for the spike line","If *toaxis*, the line is drawn from the data point to the axis the ","series is plotted on.","If *across*, the line is drawn across the entire plot area, and","supercedes *toaxis*.","If *marker*, then a marker dot is drawn on the axis the series is","plotted on"].join(" ")},tickfont:l({},r,{description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",role:"style",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},tickprefix:{valType:"string",dflt:"",role:"style",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",role:"style",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",role:"style",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B."].join(" ")},separatethousands:{valType:"boolean",dflt:!1,role:"style",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",role:"style",description:["Sets the tick label formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:","https://github.com/d3/d3-format/blob/master/README.md#locale_format","And for dates see:","https://github.com/d3/d3-time-format/blob/master/README.md#locale_format","We add one item to d3's date formatter: *%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")},hoverformat:{valType:"string",dflt:"",role:"style",description:["Sets the hover text formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:","https://github.com/d3/d3-format/blob/master/README.md#locale_format","And for dates see:","https://github.com/d3/d3-time-format/blob/master/README.md#locale_format","We add one item to d3's date formatter: *%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")},showline:{valType:"boolean",dflt:!1,role:"style",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:i.defaultLine,role:"style",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the width (in px) of the axis line."},showgrid:{valType:"boolean",role:"style",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")},gridcolor:{valType:"color",dflt:i.lightLine,role:"style",description:"Sets the color of the grid lines."},gridwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the width (in px) of the grid lines."},zeroline:{valType:"boolean",role:"style",description:["Determines whether or not a line is drawn at along the 0 value","of this axis.","If *true*, the zero line is drawn on top of the grid lines."].join(" ")},zerolinecolor:{valType:"color",dflt:i.defaultLine,role:"style",description:"Sets the line color of the zero line."},zerolinewidth:{valType:"number",dflt:1,role:"style",description:"Sets the width (in px) of the zero line."},anchor:{valType:"enumerated",values:["free",o.idRegex.x.toString(),o.idRegex.y.toString()],role:"info",description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to","the corresponding opposite-letter axis.","If set to *free*, this axis' position is determined by `position`."].join(" ")},side:{valType:"enumerated",values:["top","bottom","left","right"],role:"info",description:["Determines whether a x (y) axis is positioned","at the *bottom* (*left*) or *top* (*right*)","of the plotting area."].join(" ")},overlaying:{valType:"enumerated",values:["free",o.idRegex.x.toString(),o.idRegex.y.toString()],role:"info",description:["If set a same-letter axis id, this axis is overlaid on top of","the corresponding same-letter axis.","If *false*, this axis does not overlay any same-letter axes."].join(" ")},domain:{valType:"info_array",role:"info",items:[{valType:"number",min:0,max:1},{valType:"number",min:0,max:1}],dflt:[0,1],description:["Sets the domain of this axis (in plot fraction)."].join(" ")},position:{valType:"number",min:0,max:1,dflt:0,role:"style",description:["Sets the position of this axis in the plotting space","(in normalized coordinates).","Only has an effect if `anchor` is set to *free*."].join(" ")},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",role:"info",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`."].join(" ")},categoryarray:{valType:"data_array",role:"info",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},_deprecated:{autotick:{valType:"boolean",role:"info",description:["Obsolete.","Set `tickmode` to *auto* for old `autotick` *true* behavior.","Set `tickmode` to *linear* for `autotick` *false*."].join(" ")}}}},function(e,t,n){"use strict";t.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],t.defaultLine="#444",t.lightLine="#eee",t.background="#fff",t.borderLine="#BEC8D9",t.lightFraction=1e3/11},function(e,t,n){"use strict";e.exports={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(11)),i=a(n(319));function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=0}),c=u.map(function(e){return e.LevelBucket}).sort(),d=function(e){return u.find(function(t){return t.LevelBucket==e})},f=c.map(function(e){return d(e).Count}),h=f.reduce(o,0),p=(t=[]).concat.apply(t,l(c.map(function(e,t){return s(f[t]).map(function(t){return e/i.config.self.levelBuckets})}))),v=(n=[]).concat.apply(n,l(c.map(function(e,t){return s(f[t]).map(function(t){return d(e).Winner})}))),y=p.length,g=p.reduce(o,0),m=v.reduce(o,0),_=p.map(function(e,t){return e*v[t]}).reduce(o,0),T=p.map(function(e){return e*e}).reduce(o,0),b=(v.map(function(e){return e*e}).reduce(o,0),(y*_-g*m)/(y*T-g*g)),M=(m-b*g)/y,k=v.map(function(e){return Math.pow(e-m/y,2)}).reduce(o,0),K=1-v.map(function(e,t){return Math.pow(M+b*p[t]-e,2)}).reduce(o,0)/k;return Object.assign({},e,{TalentWinrateBase:M,TalentWinrateScaling:b,TalentWinrateMax:M+b,TalentWinrateLevelScaling:b/r.getMaxLevel(e),TalentWinrateVariance:K,TotalPicks:h||e.Count,TotalWinner:m/h||e.Winner,SampleTooSmall:h<300,KillDeathPoints:r.killDeathPoints(e),ObjectivePoints:r.objectivePoints(e),BlitzPointsDelta:r.blitzPointsDelta(e),VarianceTooLarge:K<.25})});s.set(e,K),u.set(e,s.get(e).map(function(e){return e.TotalPicks}).reduce(function(e,t){return e+t},0)),M+=u.get(e)/r.playersPerMatch(e),c.set(e,s.get(e).sort(function(e,n){return t(n)-t(e)}).slice(0,10)),d.set(e,s.get(e).sort(function(e,t){return t.TotalPicks-e.TotalPicks})[0]),f.set(e,s.get(e).filter(function(t){return 100*n*t.TotalPicks/u.get(e)>1}).sort(function(e,t){return t.TotalWinner-e.TotalWinner})[0]),m.set(e,s.get(e).filter(function(t){return 100*n*t.TotalPicks/u.get(e)<=1&&t.TotalPicks>300}).sort(function(e,t){return t.TotalWinner-e.TotalWinner})[0]),h.set(e,s.get(e).filter(function(t){return"Rare"==r.getTalentRarity(t.Talent)&&100*n*t.TotalPicks/u.get(e)}).sort(function(e,t){return t.TotalWinner-e.TotalWinner})[0]),p.set(e,s.get(e).filter(function(t){return"Epic"==r.getTalentRarity(t.Talent)&&100*n*t.TotalPicks/u.get(e)}).sort(function(e,t){return t.TotalWinner-e.TotalWinner})[0]),v.set(e,s.get(e).filter(function(t){return"Legendary"==r.getTalentRarity(t.Talent)&&100*n*t.TotalPicks/u.get(e)}).sort(function(e,t){return t.TotalWinner-e.TotalWinner})[0]),y.set(e,s.get(e).filter(function(e){return!e.SampleTooSmall&&!e.VarianceTooLarge&&!!e.TalentWinrateBase}).sort(function(e,t){return t.TalentWinrateBase-e.TalentWinrateBase})[0]),g.set(e,s.get(e).filter(function(e){return!e.SampleTooSmall&&!e.VarianceTooLarge&&!!e.TalentWinrateLevelScaling}).sort(function(e,t){return t.TalentWinrateLevelScaling-e.TalentWinrateLevelScaling})[0]),_.set(e,s.get(e).filter(function(e){return!e.SampleTooSmall&&!e.VarianceTooLarge&&!!e.KillDeathPoints}).sort(function(e,t){return t.KillDeathPoints-e.KillDeathPoints})[0]),T.set(e,s.get(e).filter(function(e){return!e.SampleTooSmall&&!e.VarianceTooLarge&&!!e.ObjectivePoints}).sort(function(e,t){return t.ObjectivePoints-e.ObjectivePoints})[0]),b.set(e,s.get(e).filter(function(e){return!e.SampleTooSmall&&!e.VarianceTooLarge&&!!e.BlitzPointsDelta}).sort(function(e,t){return t.BlitzPointsDelta-e.BlitzPointsDelta})[0]),0==k.length&&(k=[].concat(l(new Set(s.get(e).map(function(e){return e.Actor})))))},C=!0,A=!1,w=void 0;try{for(var L,D=K[Symbol.iterator]();!(C=(L=D.next()).done);C=!0){x(L.value)}}catch(e){A=!0,w=e}finally{try{!C&&D.return&&D.return()}finally{if(A)throw w}}t.default={getReport:function(e){return s.get(e)},getTotalPicks:function(e){return u.get(e)},getTopPick:function(e){return d.get(e)},getTop10Picks:function(e){return c.get(e)},getTopLowLevel:function(e){return y.get(e)},getTopScaling:function(e){return g.get(e)},getTopWin:function(e){return f.get(e)},getTopUnpopularWin:function(e){return m.get(e)},getTopRareWins:function(e){return h.get(e)},getTopEpicWins:function(e){return p.get(e)},getTopLegendaryWins:function(e){return v.get(e)},getBestUnpopular:function(e){return topUnpopular.get(e)},getTopKillDeathPoints:function(e){return _.get(e)},getTopObjectivePoints:function(e){return T.get(e)},getTopBlitzPointsDelta:function(e){return b.get(e)},getActors:function(){return k},getModes:function(){return K},getTotalMatches:function(){return M},getLastUpdate:function(){return i.lastUpdate},getLevelBuckets:function(){return i.config.self.levelBuckets}}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n){var i,a=n.name,l=t[a],o=r.isArray(e[a])?e[a]:[],s=t[a]=[];for(i=0;i1){for(var e=["LOG:"],t=0;t0){for(var e=["WARN:"],t=0;t0){for(var e=["ERROR:"],t=0;t), bold (), italics (),","hyperlinks (). Tags , , "," are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,role:"style",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:l({},i,{description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,role:"style",description:["Sets an explicit width for the text box. null (default) lets the","text set the box width. Wider text will be clipped.","There is no automatic wrapping; use
to start a new line."].join(" ")},height:{valType:"number",min:1,dflt:null,role:"style",description:["Sets an explicit height for the text box. null (default) lets the","text set the box height. Taller text will be clipped."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"style",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",role:"style",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans more two or more lines","(i.e. `text` contains one or more
HTML tags) or if an","explicit width is set to override the text width."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",role:"style",description:["Sets the vertical alignment of the `text` within the box.","Has an effect only if an explicit height is set to override","the text height."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,role:"style",description:["Determines whether or not the annotation is drawn with an arrow.","If *true*, `text` is placed near the arrow's tail.","If *false*, `text` lines up with the `x` and `y` provided."].join(" ")},arrowcolor:{valType:"color",role:"style",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:r.length,dflt:1,role:"style",description:"Sets the annotation arrow head style."},arrowsize:{valType:"number",min:.3,dflt:1,role:"style",description:"Sets the size (in px) of annotation arrow head."},arrowwidth:{valType:"number",min:.1,role:"style",description:"Sets the width (in px) of annotation arrow."},standoff:{valType:"number",min:0,dflt:0,role:"style",description:["Sets a distance, in pixels, to move the arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},ax:{valType:"any",role:"info",description:["Sets the x component of the arrow tail about the arrow head.","If `axref` is `pixel`, a positive (negative) ","component corresponds to an arrow pointing","from right to left (left to right).","If `axref` is an axis, this is an absolute value on that axis,","like `x`, NOT a relative value."].join(" ")},ay:{valType:"any",role:"info",description:["Sets the y component of the arrow tail about the arrow head.","If `ayref` is `pixel`, a positive (negative) ","component corresponds to an arrow pointing","from bottom to top (top to bottom).","If `ayref` is an axis, this is an absolute value on that axis,","like `y`, NOT a relative value."].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.x.toString()],role:"info",description:["Indicates in what terms the tail of the annotation (ax,ay) ","is specified. If `pixel`, `ax` is a relative offset in pixels ","from `x`. If set to an x axis id (e.g. *x* or *x2*), `ax` is ","specified in the same terms as that axis. This is useful ","for trendline annotations which should continue to indicate ","the correct trend when zoomed."].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.y.toString()],role:"info",description:["Indicates in what terms the tail of the annotation (ax,ay) ","is specified. If `pixel`, `ay` is a relative offset in pixels ","from `y`. If set to a y axis id (e.g. *y* or *y2*), `ay` is ","specified in the same terms as that axis. This is useful ","for trendline annotations which should continue to indicate ","the correct trend when zoomed."].join(" ")},xref:{valType:"enumerated",values:["paper",a.idRegex.x.toString()],role:"info",description:["Sets the annotation's x coordinate axis.","If set to an x axis id (e.g. *x* or *x2*), the `x` position","refers to an x coordinate","If set to *paper*, the `x` position refers to the distance from","the left side of the plotting area in normalized coordinates","where 0 (1) corresponds to the left (right) side."].join(" ")},x:{valType:"any",role:"info",description:["Sets the annotation's x position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",role:"info",description:["Sets the text box's horizontal position anchor","This anchor binds the `x` position to the *left*, *center*","or *right* of the annotation.","For example, if `x` is set to 1, `xref` to *paper* and","`xanchor` to *right* then the right-most portion of the","annotation lines up with the right-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *center* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},xshift:{valType:"number",dflt:0,role:"style",description:["Shifts the position of the whole annotation and arrow to the","right (positive) or left (negative) by this many pixels."].join(" ")},yref:{valType:"enumerated",values:["paper",a.idRegex.y.toString()],role:"info",description:["Sets the annotation's y coordinate axis.","If set to an y axis id (e.g. *y* or *y2*), the `y` position","refers to an y coordinate","If set to *paper*, the `y` position refers to the distance from","the bottom of the plotting area in normalized coordinates","where 0 (1) corresponds to the bottom (top)."].join(" ")},y:{valType:"any",role:"info",description:["Sets the annotation's y position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",role:"info",description:["Sets the text box's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the annotation.","For example, if `y` is set to 1, `yref` to *paper* and","`yanchor` to *top* then the top-most portion of the","annotation lines up with the top-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *middle* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},yshift:{valType:"number",dflt:0,role:"style",description:["Shifts the position of the whole annotation and arrow up","(positive) or down (negative) by this many pixels."].join(" ")},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,role:"style",description:["Makes this annotation respond to clicks on the plot.","If you click a data point that exactly matches the `x` and `y`","values of this annotation, and it is hidden (visible: false),","it will appear. In *onoff* mode, you must click the same point","again to make it disappear, so if you click multiple points,","you can show multiple annotations. In *onout* mode, a click","anywhere else in the plot (on another data point or not) will","hide this annotation.","If you need to show/hide this annotation in response to different","`x` or `y` values, you can set `xclick` and/or `yclick`. This is","useful for example to label the side of a bar. To label markers","though, `standoff` is preferred over `xclick` and `yclick`."].join(" ")},xclick:{valType:"any",role:"info",description:["Toggle this annotation when clicking a data point whose `x` value","is `xclick` rather than the annotation's `x` value."].join(" ")},yclick:{valType:"any",role:"info",description:["Toggle this annotation when clicking a data point whose `y` value","is `yclick` rather than the annotation's `y` value."].join(" ")},hovertext:{valType:"string",role:"info",description:["Sets text to appear when hovering over this annotation.","If omitted or blank, no hover label will appear."].join(" ")},hoverlabel:{bgcolor:{valType:"color",role:"style",description:["Sets the background color of the hover label.","By default uses the annotation's `bgcolor` made opaque,","or white if it was transparent."].join(" ")},bordercolor:{valType:"color",role:"style",description:["Sets the border color of the hover label.","By default uses either dark grey or white, for maximum","contrast with `hoverlabel.bgcolor`."].join(" ")},font:l({},i,{description:["Sets the hover label text font.","By default uses the global hover font and size,","with color from `hoverlabel.bordercolor`."].join(" ")})},captureevents:{valType:"boolean",role:"info",description:["Determines whether the annotation text box captures mouse move","and click events, or allows those events to pass through to data","points in the plot that may be behind the annotation. By default","`captureevents` is *false* unless `hovertext` is provided.","If you use the event `plotly_clickannotation` without `hovertext`","you must explicitly enable `captureevents`."].join(" ")},_deprecated:{ref:{valType:"string",role:"info",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}}},function(e,t,n){"use strict";t.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},t.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},t.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3},t.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3}},function(e,t,n){"use strict";e.exports={MAXDIST:20,YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50}},function(e,t,n){"use strict";var r=n(2),i=n(0),a=n(99);e.exports=function(e,t){var n=t?i.nestedProperty(e,t).get()||{}:e,l=n.color,o=!1;if(Array.isArray(l))for(var s=0;s2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}t._w=W,t._h=O;for(var E=!1,I=["x","y"],N=0;N1)&&(X===Y?((ae=Z.r2fraction(t["a"+U]))<0||ae>1)&&(E=!0):E=!0,E))continue;F=Z._offset+Z.r2p(t[U]),H=.5}else"x"===U?(V=t[U],F=T.l+T.w*V):(V=1-t[U],F=T.t+T.h*V),H=t.showarrow?.5:V;if(t.showarrow){ie.head=F;var le=t["a"+U];q=Q*j(.5,t.xanchor)-ee*j(.5,t.yanchor),X===Y?(ie.tail=Z._offset+Z.r2p(le),$=q):(ie.tail=F+le,$=q+le),ie.text=ie.tail+q;var oe=_["x"===U?"width":"height"];if("paper"===Y&&(ie.head=l.constrain(ie.head,1,oe-1)),"pixel"===X){var se=-Math.max(ie.tail-3,ie.text),ue=Math.min(ie.tail+3,ie.text)-oe;se>0?(ie.tail+=se,ie.text+=se):ue>0&&(ie.tail-=ue,ie.text-=ue)}ie.tail+=re,ie.head+=re}else $=q=te*j(H,ne),ie.text=F+q;ie.text+=re,q+=re,$+=re,t["_"+U+"padplus"]=te/2+$,t["_"+U+"padminus"]=te/2-$,t["_"+U+"size"]=te,t["_"+U+"shift"]=q}if(E)C.remove();else{var ce=0,de=0;if("left"!==t.align&&(ce=(W-w)*("center"===t.align?.5:1)),"top"!==t.valign&&(de=(O-z)*("middle"===t.valign?.5:1)),c)r.select("svg").attr({x:L+ce-1,y:L+de}).call(u.setClipUrl,B?b:null);else{var fe=L+de-y.top,he=L+ce-y.left;G.call(d.positionText,he,fe).call(u.setClipUrl,B?b:null)}S.select("rect").call(u.setRect,L,L,W,O),D.call(u.setRect,A/2,A/2,P-A,R-A),C.call(u.setTranslate,Math.round(M.x.text-P/2),Math.round(M.y.text-R/2)),x.attr({transform:"rotate("+k+","+M.x.text+","+M.y.text+")"});var pe,ve,ye=function(n,r){K.selectAll(".annotation-arrow-g").remove();var c=M.x.head,d=M.y.head,f=M.x.tail+n,y=M.y.tail+r,_=M.x.text+n,b=M.y.text+r,A=l.rotationXYMatrix(k,_,b),w=l.apply2DTransform(A),L=l.apply2DTransform2(A),B=+D.attr("width"),S=+D.attr("height"),z=_-.5*B,G=z+B,W=b-.5*S,O=W+S,P=[[z,W,z,O],[z,O,G,O],[G,O,G,W],[G,W,z,W]].map(L);if(!P.reduce(function(e,t){return e^!!g(c,d,c+1e6,d+1e6,t[0],t[1],t[2],t[3])},!1)){P.forEach(function(e){var t=g(f,y,c,d,e[0],e[1],e[2],e[3]);t&&(f=t.x,y=t.y)});var R=t.arrowwidth,j=t.arrowcolor,E=K.append("g").style({opacity:s.opacity(j)}).classed("annotation-arrow-g",!0),I=E.append("path").attr("d","M"+f+","+y+"L"+c+","+d).style("stroke-width",R+"px").call(s.stroke,s.rgb(j));if(p(I,t.arrowhead,"end",t.arrowsize,t.standoff),e._context.editable&&I.node().parentNode&&!a){var N=c,F=d;if(t.standoff){var $=Math.sqrt(Math.pow(c-f,2)+Math.pow(d-y,2));N+=t.standoff*(f-c)/$,F+=t.standoff*(y-d)/$}var V,H,q,U=E.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(f-N)+","+(y-F),transform:"translate("+N+","+F+")"}).style("stroke-width",R+6+"px").call(s.stroke,"rgba(0,0,0,0)").call(s.fill,"rgba(0,0,0,0)");h.init({element:U.node(),gd:e,prepFn:function(){var e=u.getTranslate(C);H=e.x,q=e.y,V={},o&&o.autorange&&(V[o._name+".autorange"]=!0),v&&v.autorange&&(V[v._name+".autorange"]=!0)},moveFn:function(e,n){var r=w(H,q),i=r[0]+e,a=r[1]+n;C.call(u.setTranslate,i,a),V[m+".x"]=o?o.p2r(o.r2p(t.x)+e):t.x+e/T.w,V[m+".y"]=v?v.p2r(v.r2p(t.y)+n):t.y-n/T.h,t.axref===t.xref&&(V[m+".ax"]=o.p2r(o.r2p(t.ax)+e)),t.ayref===t.yref&&(V[m+".ay"]=v.p2r(v.r2p(t.ay)+n)),E.attr("transform","translate("+e+","+n+")"),x.attr({transform:"rotate("+k+","+i+","+a+")"})},doneFn:function(t){if(t){i.relayout(e,V);var n=document.querySelector(".js-notes-box-panel");n&&n.redraw(n.selectedObj)}}})}}};if(t.showarrow&&ye(0,0),e._context.editable)h.init({element:C.node(),gd:e,prepFn:function(){ve=x.attr("transform"),pe={}},moveFn:function(e,n){var r="pointer";if(t.showarrow)t.axref===t.xref?pe[m+".ax"]=o.p2r(o.r2p(t.ax)+e):pe[m+".ax"]=t.ax+e,t.ayref===t.yref?pe[m+".ay"]=v.p2r(v.r2p(t.ay)+n):pe[m+".ay"]=t.ay+n,ye(e,n);else{if(a)return;if(o)pe[m+".x"]=t.x+e/o._m;else{var i=t._xsize/T.w,l=t.x+(t._xshift-t.xshift)/T.w-i/2;pe[m+".x"]=h.align(l+e/T.w,i,0,1,t.xanchor)}if(v)pe[m+".y"]=t.y+n/v._m;else{var s=t._ysize/T.h,u=t.y-(t._yshift+t.yshift)/T.h-s/2;pe[m+".y"]=h.align(u-n/T.h,s,0,1,t.yanchor)}o&&v||(r=h.getCursor(o?.5:pe[m+".x"],v?.5:pe[m+".y"],t.xanchor,t.yanchor))}x.attr({transform:"translate("+e+","+n+")"+ve}),f(C,r)},doneFn:function(t){if(f(C),t){i.relayout(e,pe);var n=document.querySelector(".js-notes-box-panel");n&&n.redraw(n.selectedObj)}}})}}}function g(e,t,n,r,i,a,l,o){var s=n-e,u=i-e,c=l-i,d=r-t,f=a-t,h=o-a,p=s*h-c*d;if(0===p)return null;var v=(u*h-c*f)/p,y=(u*d-s*f)/p;return y<0||y>1||v<0||v>1?null:{x:e+s*v,y:t+d*v}}e.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var n=0;nJ.width||Z<0||Z>J.height)return f.unhoverRaw(e,t)}if(W="xval"in t?v.flat(g,t.xval):v.p2c(K,X),O="yval"in t?v.flat(g,t.yval):v.p2c(L,Z),!i(W[0])||!i(O[0]))return l.warn("Fx.hover failed",t,e),f.unhoverRaw(e,t)}var Q=1/0;for(R=0;Rq&&(U.splice(0,q),Q=U[0].distance)}if(0===U.length)return f.unhoverRaw(e,t);U.sort(function(e,t){return e.distance-t.distance});var ie=e._hoverdata,ae=[];for(P=0;P1,ue=x(U,{hovermode:G,rotateLabels:se,bgColor:d.combine(m.plot_bgcolor||d.background,m.paper_bgcolor),container:m._hoverlayer,outerContainer:m._paperdiv,commonLabelOpts:m.hoverlabel},e);if(function(e,t){var n,r,i,a,l,o,s,u=0,c=e.map(function(e,n){var r=e[t];return[{i:n,dp:0,pos:e.pos,posref:e.posref,size:e.by*("x"===r._id.charAt(0)?_:1)/2,pmin:r._offset,pmax:r._offset+r._length}]}).sort(function(e,t){return e[0].posref-t[0].posref});function d(e){var t=e[0],s=e[e.length-1];if(r=t.pmin-t.pos-t.dp+t.size,i=s.pos+s.dp+s.size-t.pmax,r>.01){for(l=e.length-1;l>=0;l--)e[l].dp+=r;n=!1}if(!(i<.01)){if(r<-.01){for(l=e.length-1;l>=0;l--)e[l].dp-=i;n=!1}if(n){var u=0;for(a=0;at.pmax&&u++;for(a=e.length-1;a>=0&&!(u<=0);a--)(o=e[a]).pos>t.pmax-1&&(o.del=!0,u--);for(a=0;a=0;l--)e[l].dp-=i;for(a=e.length-1;a>=0&&!(u<=0);a--)(o=e[a]).pos+o.dp+o.size>t.pmax&&(o.del=!0,u--)}}}for(;!n&&u<=e.length;){for(u++,n=!0,a=0;a.01&&p.pmin===v.pmin&&p.pmax===v.pmax){for(l=h.length-1;l>=0;l--)h[l].dp+=r;for(f.push.apply(f,h),c.splice(a+1,1),s=0,l=f.length-1;l>=0;l--)s+=f[l].dp;for(i=s/f.length,l=f.length-1;l>=0;l--)f[l].dp-=i;n=!1}else a++}c.forEach(d)}for(a=c.length-1;a>=0;a--){var y=c[a];for(l=y.length-1;l>=0;l--){var g=y[l],m=e[g.i];m.offset=g.dp,m.del=g.del}}}(U,se?"xa":"ya"),C(ue,se),t.target&&t.target.tagName){var ce=p.getComponentMethod("annotations","hasClickToShow")(e,ae);u(r.select(t.target),ce?"pointer":"")}t.target&&!s&&w(e,t,ie)&&(ie&&e.emit("plotly_unhover",{event:t,points:ie}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:K,yaxes:L,xvals:W,yvals:O}))}else e.emit("plotly_hover",{event:t.originalEvent,points:[t]})}function x(e,t,n){var i,a=t.hovermode,l=t.rotateLabels,o=t.bgColor,u=t.container,f=t.outerContainer,h=t.commonLabelOpts||{},p=t.fontFamily||y.HOVERFONT,v=t.fontSize||y.HOVERFONTSIZE,m=e[0],_=m.xa,T=m.ya,b="y"===a?"yLabel":"xLabel",K=m[b],x=(String(K)||"").split(" ")[0],C=f.node().getBoundingClientRect(),A=C.top,w=C.width,L=C.height,D=m.distance<=y.MAXDIST&&("x"===a||"y"===a);for(i=0;i15&&(i=i.substr(0,12)+"..."),void 0!==e.extraText&&(u+=e.extraText),void 0!==e.zLabel?(void 0!==e.xLabel&&(u+="x: "+e.xLabel+"
"),void 0!==e.yLabel&&(u+="y: "+e.yLabel+"
"),u+=(u?"z: ":"")+e.zLabel):D&&e[a+"Label"]===K?u=e[("x"===a?"y":"x")+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&(u=e.yLabel):u=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",e.text&&!Array.isArray(e.text)&&(u+=(u?"
":"")+e.text),""===u&&(""===i&&t.remove(),u=i);var m=t.select("text.nums").call(c.font,e.fontFamily||p,e.fontSize||v,e.fontColor||y).text(u).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,n),_=t.select("text.name"),T=0;i&&i!==u?(_.call(c.font,e.fontFamily||p,e.fontSize||v,h).text(i).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,n),T=_.node().getBoundingClientRect().width+2*k):(_.remove(),t.select("rect").remove()),t.select("path").style({fill:h,stroke:y});var b,x,C=m.node().getBoundingClientRect(),B=e.xa._offset+(e.x0+e.x1)/2,S=e.ya._offset+(e.y0+e.y1)/2,z=Math.abs(e.x1-e.x0),G=Math.abs(e.y1-e.y0),W=C.width+M+k+T;e.ty0=A-C.top,e.bx=C.width+2*k,e.by=C.height+2*k,e.anchor="start",e.txwidth=C.width,e.tx2width=T,e.offset=0,l?(e.pos=B,b=S+G/2+W<=L,x=S-G/2-W>=0,"top"!==e.idealAlign&&b||!x?b?(S+=G/2,e.anchor="start"):e.anchor="middle":(S-=G/2,e.anchor="end")):(e.pos=S,b=B+z/2+W<=w,x=B-z/2-W>=0,"left"!==e.idealAlign&&b||!x?b?(B+=z/2,e.anchor="start"):e.anchor="middle":(B-=z/2,e.anchor="end")),m.attr("text-anchor",e.anchor),T&&_.attr("text-anchor",e.anchor),t.attr("transform","translate("+B+","+S+")"+(l?"rotate("+g+")":""))}),z}function C(e,t){e.each(function(e){var n=r.select(this);if(e.del)n.remove();else{var i="end"===e.anchor?-1:1,a=n.select("text.nums"),l={start:1,end:-1,middle:0}[e.anchor],o=l*(M+k),u=o+l*(e.txwidth+k),d=0,f=e.offset;"middle"===e.anchor&&(o-=e.tx2width/2,u-=e.tx2width/2),t&&(f*=-b,d=e.offset*T),n.select("path").attr("d","middle"===e.anchor?"M-"+e.bx/2+",-"+e.by/2+"h"+e.bx+"v"+e.by+"h-"+e.bx+"Z":"M0,0L"+(i*M+d)+","+(M+f)+"v"+(e.by/2-M)+"h"+i*e.bx+"v-"+e.by+"H"+(i*M+d)+"V"+(f-M)+"Z"),a.call(s.positionText,o+d,f+e.ty0-e.by/2+k),e.tx2width&&(n.select("text.name").call(s.positionText,u+l*k+d,f+e.ty0-e.by/2+k),n.select("rect").call(c.setRect,u+(l-1)*e.tx2width/2+d,f-e.by/2-1,e.tx2width,e.by+2))}})}function A(e,t){var n,r=e.trace||{},i=e.cd[0],a=e.cd[e.index]||{};function o(t,n,o){var s;if(a[n])s=a[n];else if(i[n]){var u=i[n];Array.isArray(u)&&Array.isArray(u[e.index[0]])&&(s=u[e.index[0]][e.index[1]])}else s=l.nestedProperty(r,o).get();s&&(e[t]=s)}if(o("hoverinfo","hi","hoverinfo"),o("color","hbg","hoverlabel.bgcolor"),o("borderColor","hbc","hoverlabel.bordercolor"),o("fontFamily","htf","hoverlabel.font.family"),o("fontSize","hts","hoverlabel.font.size"),o("fontColor","htc","hoverlabel.font.color"),e.posref="y"===t?(e.x0+e.x1)/2:(e.y0+e.y1)/2,e.x0=l.constrain(e.x0,0,e.xa._length),e.x1=l.constrain(e.x1,0,e.xa._length),e.y0=l.constrain(e.y0,0,e.ya._length),e.y1=l.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal){n="log"===e.xa.type&&e.xLabelVal<=0;var s=h.tickText(e.xa,e.xa.c2l(n?-e.xLabelVal:e.xLabelVal),"hover");n?0===e.xLabelVal?e.xLabel="0":e.xLabel="-"+s.text:e.xLabel=s.text,e.xVal=e.xa.c2d(e.xLabelVal)}if(void 0!==e.yLabelVal){n="log"===e.ya.type&&e.yLabelVal<=0;var u=h.tickText(e.ya,e.ya.c2l(n?-e.yLabelVal:e.yLabelVal),"hover");n?0===e.yLabelVal?e.yLabel="0":e.yLabel="-"+u.text:e.yLabel=u.text,e.yVal=e.ya.c2d(e.yLabelVal)}if(void 0!==e.zLabelVal&&(e.zLabel=String(e.zLabelVal)),!(isNaN(e.xerr)||"log"===e.xa.type&&e.xerr<=0)){var c=h.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+c+" / -"+h.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+c,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var d=h.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+d+" / -"+h.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+d,"y"===t&&(e.distance+=1)}var f=e.hoverinfo||e.trace.hoverinfo;return"all"!==f&&(-1===(f=f.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===f.indexOf("y")&&(e.yLabel=void 0),-1===f.indexOf("z")&&(e.zLabel=void 0),-1===f.indexOf("text")&&(e.text=void 0),-1===f.indexOf("name")&&(e.name=void 0)),e}function w(e,t,n){if(!n||n.length!==e._hoverdata.length)return!0;for(var r=n.length-1;r>=0;r--){var i=n[r],a=e._hoverdata[r];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber))return!0}return!1}t.hover=function(e,t,n,r){if("string"==typeof e&&(e=document.getElementById(e)),void 0===e._lastHoverTime&&(e._lastHoverTime=0),void 0!==e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=void 0),Date.now()>e._lastHoverTime+y.HOVERMINTIME)return K(e,t,n,r),void(e._lastHoverTime=Date.now());e._hoverTimer=setTimeout(function(){K(e,t,n,r),e._lastHoverTime=Date.now(),e._hoverTimer=void 0},y.HOVERMINTIME)},t.loneHover=function(e,t){var n={color:e.color||d.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,trace:{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0},i=r.select(t.container),a=t.outerContainer?r.select(t.outerContainer):i,l={hovermode:"closest",rotateLabels:!1,bgColor:t.bgColor||d.background,container:i,outerContainer:a},o=x([n],l,t.gd);return C(o,l.rotateLabels),o.node()}},function(e,t,n){"use strict";var r=n(10).extendFlat,i=n(17),a=n(38);e.exports={dragmode:{valType:"enumerated",role:"info",values:["zoom","pan","select","lasso","orbit","turntable"],dflt:"zoom",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",role:"info",values:["x","y","closest",!1],description:"Determines the mode of hover interactions."},hoverlabel:{bgcolor:{valType:"color",role:"style",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",role:"style",description:["Sets the border color of all hover labels on graph."].join(" ")},font:{family:r({},i.family,{dflt:a.HOVERFONT}),size:r({},i.size,{dflt:a.HOVERFONTSIZE}),color:r({},i.color)}}}},function(e,t,n){"use strict";var r=n(0),i=n(38);t.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},t.flat=function(e,t){for(var n=new Array(e.length),r=0;r=0&&n.index0&&this._events[e].length>l&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},n.prototype.removeListener=function(e,t){var n,a,l,o;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(l=(n=this._events[e]).length,a=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(o=l;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){a=o;break}if(a<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";var r=n(0),i=n(89).EventEmitter;e.exports=function(e){var t=e.emitter||new i,n=new Promise(function(i,a){var l=window.Image,o=e.svg,s=e.format||"png";if(r.isIE()&&(o=(o=(o=o.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("$2")')).replace(/(\\')/gi,'"'),"svg"!==s)){var u=new Error("Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.");return a(u),e.promise?n:t.emit("error",u)}var c=e.canvas,d=c.getContext("2d"),f=new l,h="data:image/svg+xml,"+encodeURIComponent(o);c.height=e.height||150,c.width=e.width||300,f.onload=function(){var n;switch("svg"!==s&&d.drawImage(f,0,0),s){case"jpeg":n=c.toDataURL("image/jpeg");break;case"png":n=c.toDataURL("image/png");break;case"webp":n=c.toDataURL("image/webp");break;case"svg":n=h;break;default:if(a(new Error("Image format is not jpeg, png or svg")),!e.promise)return t.emit("error","Image format is not jpeg, png or svg")}i(n),e.promise||t.emit("success",n)},f.onerror=function(n){if(a(n),!e.promise)return t.emit("error",n)},f.src=h});return e.promise?n:t}},function(e,t,n){"use strict";var r=n(1),i=n(7),a=n(3),l=n(31),o=/"/g,s=new RegExp('("TOBESTRIPPED)|(TOBESTRIPPED")',"g");e.exports=function(e,t){var n,u=e._fullLayout,c=u._paper,d=u._toppaper;c.insert("rect",":first-child").call(i.setRect,0,0,u.width,u.height).call(a.fill,u.paper_bgcolor);var f=u._basePlotModules||[];for(n=0;n")?"":t.html(e).text()});return t.remove(),n}(g),g=(g=g.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(s,"'")}},function(e,t,n){"use strict";var r=n(0),i=n(9),a=r.extendFlat,l=r.extendDeep;function o(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:"",showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:"",hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}e.exports=function(e,t){var n;e.framework&&e.framework.isPolar&&(e=e.framework.getConfig());var r,s=e.data,u=e.layout,c=l([],s),d=l({},u,o(t.tileClass)),f=e._context||{};if(t.width&&(d.width=t.width),t.height&&(d.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){d.annotations=[];var h=Object.keys(d);for(n=0;n-1&&(d[h[n]].title="");for(n=0;n0||f<0){var v={left:[-n,0],right:[n,0],top:[0,-n],bottom:[0,n]}[g.side];t.attr("transform","translate("+v+")")}}}}},function(e,t,n){"use strict";e.exports=function(e){for(var t,n=e.length,r=new Array(n),i=n-1,a=0;i>=0;i--,a++)t=e[i],r[a]=[1-t[0],t[1]];return r}},function(e,t,n){"use strict";var r=n(25),i=n(163);e.exports=function(e){return void 0!==r[e]||i(e)}},function(e,t,n){"use strict";var r=n(2),i=n(0),a=n(292),l=n(291),o=n(99),s=n(98);e.exports=function(e,t,n,u,c){var d,f=c.prefix,h=c.cLetter,p=f.slice(0,f.length-1),v=f?i.nestedProperty(e,p).get()||{}:e,y=f?i.nestedProperty(t,p).get()||{}:t,g=v[h+"min"],m=v[h+"max"],_=v.colorscale;u(f+h+"auto",!(r(g)&&r(m)&&g0)return Math.log(e)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return r(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}},function(e,t,n){"use strict";var r="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}};e.exports=function(e){return Array.isArray(e)||r.isView(e)}},function(e,t,n){"use strict";var r=n(2),i=n(106),a=n(32),l=n(167);e.exports=function(e,t){if(r(t))t=String(t);else if("string"!=typeof t||"[-1]"===t.substr(t.length-4))throw"bad property string";for(var n,a,l,o=0,s=t.split(".");o=0;t--){if(r=e[t][0],a=e[t][1],o=!1,i(r))for(n=r.length-1;n>=0;n--)u(r[n],d(a,n))?o?r[n]=void 0:r.pop():o=!0;else if("object"==typeof r&&null!==r)for(l=Object.keys(r),o=!1,n=l.length-1;n>=0;n--)u(r[l[n]],d(a,l[n]))?delete r[l[n]]:o=!0;if(o)return}}(c)):o[t[l]]=r}}function d(e,t){var n=t;return r(t)?n="["+t+"]":e&&(n="."+t),e+n}function f(e,t,n,r){var a,l=i(n),o=!0,s=n,d=r.replace("-1",0),f=!l&&u(n,d),p=t[0];for(a=0;a0&&console.error(t)}},topojsonURL:"https://cdn.plot.ly/",mapboxAccessToken:null,logging:!1,globalTransforms:[]}},function(e,t,n){"use strict";var r=function(){var e=this.$createElement,t=this._self._c||e;return t("figure",{staticClass:"image"},[t("img",{style:this.round?"border-radius: 50%":"",attrs:{src:"/dist/assets/hero-icons/"+this.hero.toLowerCase()+".jpg",alt:this.hero,title:this.hero}})])},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("p",{staticClass:"title-box"},[e._v(e._s(e.title))]),e._v(" "),n("div",{staticClass:"columns is-mobile"},[n("div",{staticClass:"column is-centered"},[n("hero-image",{staticClass:"is-64x64 hero-image-slot",attrs:{actor:e.entry.Actor}}),e._v(" "),n("span",{staticClass:"hero-name"},[e._v(e._s(e.hero))])],1),e._v(" "),n("div",{staticClass:"column value is-centered"},[e.hasTalent?n("talent-image",{attrs:{entry:e.entry,size:64}}):n("span",[e._v("No Talent")]),e._v(" "),n("span",[e._v(e._s(e.value)+e._s(e.label))]),e._v(" "),n("span",{staticClass:"type"},[e._v(e._s(e.type))])],1)])])},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"None"!=e.rarity?n("div",{staticClass:"talent-image",style:"background-image: url('/dist/assets/talent-icons-small/"+e.hero+"/"+e.hero+"_"+e.rarity+".jpg'); width: "+e.size+"px; height: "+e.size+"px",attrs:{alt:e.hero+" "+e.rarity,title:e.hero+" "+e.rarity}}):e._e()},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"columns is-multiline is-mobile"},[e.stats.topWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Overpowered",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topWin.TotalWinner),entry:e.stats.topWin}})],1):e._e(),e._v(" "),e.stats.topPick?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Trending",type:"Total Pick Rate",label:"%",value:(100*e.playersPerMatch*e.stats.topPick.Count/e.stats.totalPicks).toFixed(2),entry:e.stats.topPick}})],1):e._e(),e._v(" "),e.stats.topLowLevel?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Beginner",type:"Level 1 Win Rate",label:"%",value:Math.round(100*e.stats.topLowLevel.Winner),entry:e.stats.topLowLevel}})],1):e._e(),e._v(" "),e.stats.topScaling?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Spender",type:"Win Rate per Level",label:"%",value:"+"+Math.round(100*e.stats.topScaling.TalentWinrateLevelScaling),entry:e.stats.topScaling}})],1):e._e(),e._v(" "),e.stats.topUnpopularWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Hidden Gem",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topUnpopularWin.TotalWinner),entry:e.stats.topUnpopularWin}})],1):e._e(),e._v(" "),e.stats.topRareWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Best Rare",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topRareWin.TotalWinner),entry:e.stats.topRareWin}})],1):e._e(),e._v(" "),e.stats.topEpicWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Best Epic",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topEpicWin.TotalWinner),entry:e.stats.topEpicWin}})],1):e._e(),e._v(" "),e.stats.topLegendaryWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Best Legendary",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topLegendaryWin.TotalWinner),entry:e.stats.topLegendaryWin}})],1):e._e(),e._v(" "),e.stats.topKillDeathPoints?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Soldier",type:"Kill Death Difference",label:"",value:"+"+e.stats.topKillDeathPoints.KillDeathPoints.toFixed(2),entry:e.stats.topKillDeathPoints}})],1):e._e(),e._v(" "),e.stats.topObjectivePoints?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Trebuchet",type:"Objectives",label:"",value:e.stats.topObjectivePoints.ObjectivePoints.toFixed(2),entry:e.stats.topObjectivePoints}})],1):e._e(),e._v(" "),e.stats.topBlitzPointsDelta?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Blitzkrieg",type:"Blitz Points",label:"",value:"+"+e.stats.topBlitzPointsDelta.BlitzPointsDelta.toFixed(2),entry:e.stats.topBlitzPointsDelta}})],1):e._e()])},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("div",{staticClass:"columns is-mobile is-multiline is-centered"},e._l(e.actors,function(t){return n("div",{key:t,staticClass:"column is-narrow"},[n("a",{on:{click:function(n){e.selectedActor=t}}},[n("hero-image",{class:"is-48x48 "+(e.selectedActor==t?"highlight-selection":""),attrs:{actor:t}})],1)])}))])},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("b-table",{attrs:{data:e.top10Talents,"mobile-cards":!1},scopedSlots:e._u([{key:"default",fn:function(t){return[n("b-table-column",{attrs:{field:"Actor",label:"Hero"}},[n("hero-image",{staticClass:"is-square",attrs:{actor:t.row.Actor}})],1),e._v(" "),n("b-table-column",{attrs:{field:"Talent",label:"Talent",visible:e.hasTalents}},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[n("span",[e._v(e._s(e.getTalentName(t.row.Talent)))]),e._v(" "),n("talent-image",{attrs:{entry:t.row,size:48}})],1)]),e._v(" "),n("b-table-column",{attrs:{field:"Count",label:"Pick Rate",visible:!e.hasTalents,sortable:"",numeric:""}},[n("span",[e._v(e._s(Math.round(100*e.playersPerMatch*t.row.Count/e.totalPicks))+"%")])]),e._v(" "),n("b-table-column",{attrs:{field:"Winner",label:"Win Rate",sortable:"",numeric:""}},[n("span",[e._v(e._s(Math.round(100*t.row.Winner))+"%")])])]}}])})],1)},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[e._m(0),e._v(" "),n("div",{staticClass:"tabs is-fullwidth"},[n("ul",e._l(e.modes,function(t){return n("li",{key:t,class:t==e.selectedMode?"is-active":""},[n("a",{on:{click:function(n){e.selectedMode=t}}},[n("span",[e._v(e._s(e.getMode(t)))])])])}))]),e._v(" "),n("mode-tab",{staticClass:"tab"}),e._v(" "),n("footer",{staticClass:"footer"},[n("div",{staticClass:"container"},[n("div",{staticClass:"content has-text-centered"},[n("p",[e._v("\n Last update: "+e._s(e.lastUpdate)+", with "+e._s(e.totalMatches)+" matches total.\n ")]),e._v(" "),e._m(1),e._v(" "),n("p")])])])],1)},i=[function(){var e=this.$createElement,t=this._self._c||e;return t("section",{staticClass:"hero is-medium is-bold header"},[t("div",{staticClass:"hero-body"},[t("div",{staticClass:"container"},[t("h1",{staticClass:"title has-text-white"},[this._v("\n Broken Talents\n ")]),this._v(" "),t("h2",{staticClass:"subtitle has-text-white"},[this._v("\n Tilting Brawlers since Update 2.5\n ")])])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[n("strong",[e._v("BrokenTalentsFun")]),e._v(", the Vainglory Talents and Hero win rate statistics site, by shutterfly ("),n("a",{attrs:{href:"https://schneefux.xyz"}},[e._v("@schneefux")]),e._v(").\n "),n("br"),e._v(" "),n("a",{attrs:{href:"https://github.com/BrokenTalents/brokentalents.github.io"}},[e._v("Source Code")]),e._v(".\n Built with the "),n("a",{attrs:{href:"http://developer.vainglorygame.com"}},[e._v("Vainglory API")]),e._v(".\n Images by "),n("a",{attrs:{href:"https://vainglorygame.com"}},[e._v("Super Evil Mega Corp")]),e._v(", Gwen Icon by Bleeko.\n "),n("br"),e._v("\n Join the "),n("a",{attrs:{href:"https://discord.gg/txTchJY"}},[e._v("Discord Server")]),e._v(" or "),n("a",{attrs:{href:"https://twitter.com/brokentalents"}},[e._v("Tweet")]),e._v(" if you have questions.\n ")])}];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",[n("b-field",{directives:[{name:"show",rawName:"v-show",value:e.hasTalents,expression:"hasTalents"}]},[n("p",{staticClass:"control"},[n("b-dropdown",{model:{value:e.filterRarity,callback:function(t){e.filterRarity=t},expression:"filterRarity"}},[n("button",{staticClass:"button",attrs:{slot:"trigger"},slot:"trigger"},[n("span",[e._v(e._s(e.filterRarity.replace("None","No")||"All")+" Talents")]),e._v(" "),n("b-icon",{attrs:{icon:"menu-down"}})],1),e._v(" "),n("b-dropdown-item",{attrs:{value:""}},[e._v("All Talents")]),e._v(" "),e._l(e.RARITIES,function(t){return n("b-dropdown-item",{key:t,attrs:{value:t}},[e._v(e._s(t.replace("None","No"))+" Talents")])})],2)],1)]),e._v(" "),n("b-field",[n("div",{staticClass:"control"},[n("b-switch",{model:{value:e.filterLowPickrate,callback:function(t){e.filterLowPickrate=t},expression:"filterLowPickrate"}},[e._v("Include entries without enough data (statistics will be inaccurate)")])],1)]),e._v(" "),n("b-table",{attrs:{data:e.report,"default-sort":["TotalPicks","desc"],"default-sort-directon":"desc",paginated:!0},scopedSlots:e._u([{key:"header",fn:function(t){return[n("b-tooltip",{attrs:{active:!!t.column.meta,label:t.column.meta||"",position:"is-bottom",dashed:""}},[e._v("\n "+e._s(t.column.label)+"\n ")])]}},{key:"default",fn:function(t){return[n("b-table-column",{attrs:{field:"Actor",label:"Hero",sortable:""}},[n("div",{staticClass:"is-hidden-touch"},[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("hero-image",{staticClass:"is-48x48",attrs:{round:"true",actor:t.row.Actor}}),e._v(" "),n("span",{staticStyle:{"padding-left":"0.75em"}},[e._v(e._s(e.getHero(t.row.Actor)))])],1)]),e._v(" "),n("div",{staticClass:"is-hidden-desktop"},[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("span",{staticStyle:{"padding-right":"0.5em"}},[e._v(e._s(e.getHero(t.row.Actor)))]),e._v(" "),n("hero-image",{staticClass:"is-48x48",attrs:{round:"true",actor:t.row.Actor}})],1)])]),e._v(" "),n("b-table-column",{attrs:{field:"Talent",label:"Talent",visible:e.hasTalents}},[n("div",{staticClass:"is-hidden-touch"},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[n("span",[e._v(e._s(e.getTalentName(t.row.Talent)))]),e._v(" "),n("talent-image",{attrs:{entry:t.row,size:48}})],1)]),e._v(" "),n("div",{staticClass:"is-hidden-desktop"},[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("span",{staticStyle:{"padding-right":"0.5em"}},[e._v(e._s(e.getTalentName(t.row.Talent)))]),e._v(" "),n("talent-image",{attrs:{entry:t.row,size:48}})],1)])]),e._v(" "),n("b-table-column",{attrs:{field:"TalentWinrateBase",label:"Level 1 Win Rate",meta:"Estimated.",visible:e.hasTalents,sortable:"",numeric:""}},[isNaN(t.row.TalentWinrateBase)?[e._v("\n "+e._s((100*t.row.Winner).toFixed(0))+"% ")]:[e._v("\n "+e._s((100*t.row.TalentWinrateBase).toFixed(0))+"%\n ")]],2),e._v(" "),n("b-table-column",{attrs:{field:"TalentWinrateMax",label:"Max Level Win Rate",meta:"Estimated.",visible:e.hasTalents,sortable:"",numeric:""}},[isNaN(t.row.TalentWinrateMax)?e._e():[e._v("\n "+e._s((100*t.row.TalentWinrateMax).toFixed(0))+"%\n "),t.row.VarianceTooLarge?n("small",[n("br"),e._v("uncertain")]):e._e()]],2),e._v(" "),n("b-table-column",{attrs:{field:"BlitzPointsDelta",label:"Blitz Points",visible:e.hasTalents,sortable:"",numeric:""}},[e._v("\n "+e._s((t.row.BlitzPointsDelta>0?"+":"")+t.row.BlitzPointsDelta.toFixed(2))+"\n ")]),e._v(" "),n("b-table-column",{attrs:{field:"Winner",label:"Win Rate",visible:!e.hasTalents,sortable:"",numeric:""}},[e._v("\n "+e._s((100*t.row.Winner).toFixed(0))+"%\n ")]),e._v(" "),n("b-table-column",{attrs:{field:"TotalPicks",label:"Pick Rate",sortable:"",numeric:""}},[e._v("\n "+e._s((100*e.playersPerMatch*t.row.TotalPicks/e.totalPicks).toFixed(2))+"%\n ")])]}}])})],1)},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:"notification "+(e.hideIntro?"is-hidden":"")},[n("button",{staticClass:"delete",on:{click:function(t){e.hideIntro=!0}}}),e._v(" "),n("div",{staticClass:"content"},[n("h3",[e._v("Hi There!")]),e._v(" "),n("img",{staticClass:"image is-64x64",staticStyle:{float:"right"},attrs:{src:"/dist/assets/gwenbarf.png"}}),e._v(" "),e._m(0),e._v(" "),n("p",[e._v("\n This site shares visitor data with Google Analytics and Google AdSense which store cookies. If you do not want that, you can "),n("a",{on:{click:function(t){e.optOutAnalytics()}}},[e._v("opt out of Google Analytics")]),e.gaOptedOut?n("span",[e._v(" (Google Analytics is disabled for you)")]):e._e(),e._v(" and "),n("a",{attrs:{href:"http://www.youronlinechoices.com/"}},[e._v("opt out of targeted advertisements")]),e._v(".\n ")])])])},i=[function(){var e=this.$createElement,t=this._self._c||e;return t("p",[this._v("\n Broken Talents Fun will help you find the best Talents for the Vainglory mobile MOBA game.\n "),t("br"),this._v("\n Talents are special boosts for Vainglory's Brawl modes that upgrade and change hero abilities in a variety of different ways.\n "),t("br"),this._v("\n The pick and win rates on this site have been gathered from real Vainglory matches.\n The data can be imprecise and can be contrary to your personal experience.\n ")])}];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:void 0!=e.deferredPrompt,expression:"deferredPrompt != undefined"}],staticClass:"notification is-primary"},[n("button",{staticClass:"delete",on:{click:function(t){e.deferredPrompt=void 0}}}),e._v(" "),n("div",{staticClass:"has-text-centered"},[e._v("Add to your homescreen for fast and offline access?")]),e._v(" "),n("div",{staticClass:"has-text-centered install-button"},[n("button",{staticClass:"button is-medium",on:{click:function(t){e.deferredPrompt.prompt()}}},[n("span",{staticClass:"mdi mdi-download"}),e._v(" "),n("span",[e._v(" Install")])])])])},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"graph",staticClass:"plotly"})},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("intro-box"),e._v(" "),n("install-notification"),e._v(" "),n("div",{staticClass:"columns is-multiline"},[e.hasTalents?n("div",{staticClass:"column"},[n("h2",{staticClass:"title is-2"},[e._v("Highlights")]),e._v(" "),n("highlights")],1):e._e(),e._v(" "),n("div",{staticClass:"column is-narrow"},[n("h2",{staticClass:"title is-2"},[e._v("Top 10")]),e._v(" "),n("top-talents-box")],1)]),e._v(" "),n("Adsense",{staticClass:"adsense",attrs:{"data-ad-client":"ca-pub-6856963757796636","data-ad-slot":"3898218968"}}),e._v(" "),n("div",{staticClass:"columns is-multiline"},[n("div",{staticClass:"column is-two-thirds"},[n("h2",{staticClass:"title is-2"},[e._v("Individual Hero Statistics")]),e._v(" "),n("h3",{staticClass:"subtitle"},[e._v("Select a Hero")]),e._v(" "),n("hero-draft-grid")],1),e._v(" "),n("div",{staticClass:"column is-one-third"},[n("h2",{staticClass:"title is-2"},[e._v(e._s(e.getHero(e.selectedActor))+" Statistics")]),e._v(" "),n("hero-talent-table")],1)]),e._v(" "),n("div",{staticClass:"box"},[n("h2",{staticClass:"title is-2"},[e._v("Hero Balance Overview")]),e._v(" "),n("h3",{staticClass:"subtitle is-hidden-desktop"},[e._v("Best viewed on a large screen")]),e._v(" "),n("win-pick-scatter")],1),e._v(" "),n("Adsense",{staticClass:"adsense",attrs:{"data-ad-client":"ca-pub-6856963757796636","data-ad-slot":"4801023518"}}),e._v(" "),n("div",[n("h2",{staticClass:"title is-2"},[e._v("All Hero Statistics")]),e._v(" "),n("report-table")],1)],1)},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("div",{staticClass:"columns is-mobile"},[n("div",{staticClass:"column is-one-quarter"},[n("hero-image",{staticClass:"is-64x64",attrs:{actor:e.selectedActor}})],1),e._v(" "),n("div",{staticClass:"column has-text-centered"},[e._v(e._s((100*e.heroReport[0].Winner).toFixed(0))+"% Win Rate")]),e._v(" "),n("div",{staticClass:"column has-text-centered"},[e._v(e._s((100*e.totalHeroPicks/e.totalPicks*e.playersPerMatch).toFixed(0))+"% Pick Rate")])]),e._v(" "),n("b-table",{directives:[{name:"show",rawName:"v-show",value:e.hasTalents,expression:"hasTalents"}],attrs:{data:e.heroReport,"mobile-cards":!1},scopedSlots:e._u([{key:"header",fn:function(t){return[n("b-tooltip",{attrs:{active:!!t.column.meta,label:t.column.meta||"",position:"is-bottom",dashed:""}},[e._v("\n "+e._s(t.column.label)+"\n ")])]}},{key:"default",fn:function(t){return[n("b-table-column",{attrs:{field:"Talent",label:"Talent"}},[n("talent-image",{attrs:{entry:t.row,size:48}})],1),e._v(" "),n("b-table-column",{attrs:{field:"TalentWinrateBase",label:"Level 1 Win Rate",meta:"Estimated.",sortable:"",numeric:""}},[isNaN(t.row.TalentWinrateBase)?[e._v("\n "+e._s((100*t.row.Winner).toFixed(0))+"% ")]:[e._v("\n "+e._s((100*t.row.TalentWinrateBase).toFixed(0))+"%\n ")],e._v(" "),t.row.SampleTooSmall?n("small",[n("br"),e._v("uncertain")]):e._e()],2),e._v(" "),n("b-table-column",{attrs:{field:"TalentWinrateMax",label:"Max Level Win Rate",meta:"Estimated.",sortable:"",numeric:""}},[isNaN(t.row.TalentWinrateMax)?e._e():[e._v("\n "+e._s((100*t.row.TalentWinrateMax).toFixed(0))+"%\n "),t.row.SampleTooSmall||t.row.VarianceTooLarge?n("small",[n("br"),e._v("uncertain")]):e._e()]],2)]}}])})],1)},i=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},function(e,t,n){"use strict";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},function(e,t,n){"use strict";e.exports={step:{valType:"enumerated",role:"info",values:["month","year","day","hour","minute","second","all"],dflt:"month",description:["The unit of measurement that the `count` value will set the range by."].join(" ")},stepmode:{valType:"enumerated",role:"info",values:["backward","todate"],dflt:"backward",description:["Sets the range update mode.","If *backward*, the range update shifts the start of range","back *count* times *step* milliseconds.","If *todate*, the range update shifts the start of range","back to the first timestamp from *count* times","*step* milliseconds back.","For example, with `step` set to *year* and `count` set to *1*","the range update shifts the start of the range back to","January 01 of the current year.","Month and year *todate* are currently available only","for the built-in (Gregorian) calendar."].join(" ")},count:{valType:"number",role:"info",min:0,dflt:1,description:["Sets the number of steps to take to update the range.","Use with `step` to specify the update interval."].join(" ")},label:{valType:"string",role:"info",description:"Sets the text label to appear on the button."}}},function(e,t,n){"use strict";e.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskColor:"rgba(0,0,0,0.4)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},function(e,t,n){"use strict";var r=n(17),i=n(129),a=n(10).extendFlat,l=n(10).extendDeep,o=n(104),s=n(35),u={_isLinkedToArray:"step",method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",role:"info",description:["Sets the Plotly method to be called when the slider value is changed.","If the `skip` method is used, the API slider will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","slider events manually via JavaScript."].join(" ")},args:{valType:"info_array",role:"info",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on slide."].join(" ")},label:{valType:"string",role:"info",description:"Sets the text label to appear on the slider"},value:{valType:"string",role:"info",description:["Sets the value of the slider step, used to refer to the step programatically.","Defaults to the slider label if not provided."].join(" ")},execute:{valType:"boolean",role:"info",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_sliderchange` method and executing the API command manually without losing","the benefit of the slider automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}};e.exports={_isLinkedToArray:"slider",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",role:"info",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:u,lenmode:{valType:"enumerated",values:["fraction","pixels"],role:"info",dflt:"fraction",description:["Determines whether this slider length","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the length of the slider","This measure excludes the padding of both ends.","That is, the slider's length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:0,role:"style",description:"Sets the x position (in normalized coordinates) of the slider."},pad:l({},i,{description:"Set the padding of the slider component along each side."},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",description:["Sets the slider's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:0,role:"style",description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",role:"info",description:["Sets the slider's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},transition:{duration:{valType:"number",role:"info",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:o.transition.easing.values,role:"info",dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",role:"info",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"info",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,role:"info",description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:a({},r,{description:"Sets the font of the current value label text."})},font:a({},r,{description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",role:"style",dflt:s.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",role:"style",dflt:s.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:s.railBorderColor,role:"style",description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:s.railBorderWidth,role:"style",description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:s.tickLength,role:"style",description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:s.tickColor,role:"style",description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:s.minorTickLength,role:"style",description:"Sets the length in pixels of minor step tick marks"}}},function(e,t,n){"use strict";e.exports={t:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) along the top of the component."},r:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) on the right side of the component."},b:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) along the bottom of the component."},l:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) on the left side of the component."}}},function(e,t,n){"use strict";var r=n(17),i=n(24),a=n(10).extendFlat,l=n(129),o={_isLinkedToArray:"button",method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",role:"info",description:["Sets the Plotly method to be called on click.","If the `skip` method is used, the API updatemenu will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","updatemenu events manually via JavaScript."].join(" ")},args:{valType:"info_array",role:"info",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on click."].join(" ")},label:{valType:"string",role:"info",dflt:"",description:"Sets the text label to appear on the button."},execute:{valType:"boolean",role:"info",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_buttonclicked` method and executing the API command manually without losing","the benefit of the updatemenu automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}};e.exports={_isLinkedToArray:"updatemenu",_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean",role:"info",description:["Determines whether or not the update menu is visible."].join(" ")},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown",role:"info",description:["Determines whether the buttons are accessible via a dropdown menu","or whether the buttons are stacked horizontally or vertically"].join(" ")},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down",role:"info",description:["Determines the direction in which the buttons are laid out, whether","in a dropdown menu or a row/column of buttons. For `left` and `up`,","the buttons will still appear in left-to-right or top-to-bottom order","respectively."].join(" ")},active:{valType:"integer",role:"info",min:-1,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},showactive:{valType:"boolean",role:"info",dflt:!0,description:"Highlights active dropdown item or active button if true."},buttons:o,x:{valType:"number",min:-2,max:3,dflt:-.05,role:"style",description:"Sets the x position (in normalized coordinates) of the update menu."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right",role:"info",description:["Sets the update menu's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,role:"style",description:"Sets the y position (in normalized coordinates) of the update menu."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",role:"info",description:["Sets the update menu's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},pad:a({},l,{description:"Sets the padding around the buttons or dropdown menu."}),font:a({},r,{description:"Sets the font of the update menu button text."}),bgcolor:{valType:"color",role:"style",description:"Sets the background color of the update menu buttons."},bordercolor:{valType:"color",dflt:i.borderLine,role:"style",description:"Sets the color of the border enclosing the update menu."},borderwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the width (in px) of the border enclosing the update menu."}}},function(e,t,n){"use strict";var r=n(15);e.exports={_isLinkedToArray:"image",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not this image is visible."].join(" ")},source:{valType:"string",role:"info",description:["Specifies the URL of the image to be used.","The URL must be accessible from the domain where the","plot code is run, and can be either relative or absolute."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",description:["Specifies whether images are drawn below or above traces.","When `xref` and `yref` are both set to `paper`,","image is drawn below the entire plot area."].join(" ")},sizex:{valType:"number",role:"info",dflt:0,description:["Sets the image container size horizontally.","The image will be sized based on the `position` value.","When `xref` is set to `paper`, units are sized relative","to the plot width."].join(" ")},sizey:{valType:"number",role:"info",dflt:0,description:["Sets the image container size vertically.","The image will be sized based on the `position` value.","When `yref` is set to `paper`, units are sized relative","to the plot height."].join(" ")},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",role:"info",description:["Specifies which dimension of the image to constrain."].join(" ")},opacity:{valType:"number",role:"info",min:0,max:1,dflt:1,description:"Sets the opacity of the image."},x:{valType:"any",role:"info",dflt:0,description:["Sets the image's x position.","When `xref` is set to `paper`, units are sized relative","to the plot height.","See `xref` for more info"].join(" ")},y:{valType:"any",role:"info",dflt:0,description:["Sets the image's y position.","When `yref` is set to `paper`, units are sized relative","to the plot height.","See `yref` for more info"].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"info",description:"Sets the anchor for the x position"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",role:"info",description:"Sets the anchor for the y position."},xref:{valType:"enumerated",values:["paper",r.idRegex.x.toString()],dflt:"paper",role:"info",description:["Sets the images's x coordinate axis.","If set to a x axis id (e.g. *x* or *x2*), the `x` position","refers to an x data coordinate","If set to *paper*, the `x` position refers to the distance from","the left of plot in normalized coordinates","where *0* (*1*) corresponds to the left (right)."].join(" ")},yref:{valType:"enumerated",values:["paper",r.idRegex.y.toString()],dflt:"paper",role:"info",description:["Sets the images's y coordinate axis.","If set to a y axis id (e.g. *y* or *y2*), the `y` position","refers to a y data coordinate.","If set to *paper*, the `y` position refers to the distance from","the bottom of the plot in normalized coordinates","where *0* (*1*) corresponds to the bottom (top)."].join(" ")}}},function(e,t,n){"use strict";var r=n(36),i=n(40).line,a=n(101).dash,l=n(10).extendFlat;e.exports={_isLinkedToArray:"shape",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not this shape is visible."].join(" ")},type:{valType:"enumerated",values:["circle","rect","path","line"],role:"info",description:["Specifies the shape type to be drawn.","If *line*, a line is drawn from (`x0`,`y0`) to (`x1`,`y1`)","If *circle*, a circle is drawn from","((`x0`+`x1`)/2, (`y0`+`y1`)/2))","with radius","(|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|)","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)","If *path*, draw a custom SVG path using `path`."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",description:"Specifies whether shapes are drawn below or above traces."},xref:l({},r.xref,{description:["Sets the shape's x coordinate axis.","If set to an x axis id (e.g. *x* or *x2*), the `x` position","refers to an x coordinate","If set to *paper*, the `x` position refers to the distance from","the left side of the plotting area in normalized coordinates","where *0* (*1*) corresponds to the left (right) side.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, then you must convert","the date to unix time in milliseconds."].join(" ")}),x0:{valType:"any",role:"info",description:["Sets the shape's starting x position.","See `type` for more info."].join(" ")},x1:{valType:"any",role:"info",description:["Sets the shape's end x position.","See `type` for more info."].join(" ")},yref:l({},r.yref,{description:["Sets the annotation's y coordinate axis.","If set to an y axis id (e.g. *y* or *y2*), the `y` position","refers to an y coordinate","If set to *paper*, the `y` position refers to the distance from","the bottom of the plotting area in normalized coordinates","where *0* (*1*) corresponds to the bottom (top)."].join(" ")}),y0:{valType:"any",role:"info",description:["Sets the shape's starting y position.","See `type` for more info."].join(" ")},y1:{valType:"any",role:"info",description:["Sets the shape's end y position.","See `type` for more info."].join(" ")},path:{valType:"string",role:"info",description:["For `type` *path* - a valid SVG path but with the pixel values","replaced by data values. There are a few restrictions / quirks","only absolute instructions, not relative. So the allowed segments","are: M, L, H, V, Q, C, T, S, and Z","arcs (A) are not allowed because radius rx and ry are relative.","In the future we could consider supporting relative commands,","but we would have to decide on how to handle date and log axes.","Note that even as is, Q and C Bezier paths that are smooth on","linear axes may not be smooth on log, and vice versa.",'no chained "polybezier" commands - specify the segment type for',"each one.","On category axes, values are numbers scaled to the serial numbers","of categories because using the categories themselves there would","be no way to describe fractional positions","On data axes: because space and T are both normal components of path","strings, we can't use either to separate date from time parts.","Therefore we'll use underscore for this purpose:","2015-02-21_13:45:56.789"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"info",description:"Sets the opacity of the shape."},line:{color:i.color,width:i.width,dash:a,role:"info"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"info",description:["Sets the color filling the shape's interior."].join(" ")}}},function(e,t,n){"use strict";e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},function(e,t,n){"use strict";var r=n(0),i=n(3);e.exports=function(e,t,n,a){a("opacity");var l=a("bgcolor"),o=a("bordercolor"),s=i.opacity(o);a("borderpad");var u=a("borderwidth"),c=a("showarrow");a("text",c?" ":"new text"),a("textangle"),r.coerceFont(a,"font",n.font),a("width"),a("align"),a("height")&&a("valign"),c&&(a("arrowcolor",s?t.bordercolor:i.defaultLine),a("arrowhead"),a("arrowsize"),a("arrowwidth",2*(s&&u||1)),a("standoff"));var d=a("hovertext"),f=n.hoverlabel||{};if(d){var h=a("hoverlabel.bgcolor",f.bgcolor||(i.opacity(l)?i.rgb(l):i.defaultLine)),p=a("hoverlabel.bordercolor",f.bordercolor||i.contrast(h));r.coerceFont(a,"hoverlabel.font",{family:f.font.family,size:f.font.size,color:f.font.color||p})}a("captureevents",!!d)}},function(e,t,n){"use strict";e.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0},{path:"M2,2V-2H-2V2Z",backoff:0}]},function(e,t,n){"use strict";var r=n(1),i=n(4),a=n(0),l=n(7),o=n(3),s=n(13),u=n(216);e.exports=function(e,t){e.each(function(e){var t=r.select(this).selectAll("g.layers").data([0]);t.enter().append("g").classed("layers",!0),t.style("opacity",e[0].trace.opacity),t.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),t.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var n=t.selectAll("g.legendsymbols").data([e]);n.enter().append("g").classed("legendsymbols",!0),n.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)}).each(function(e){var t=e[0].trace,n=t.marker||{},a=n.line||{},l=r.select(this).select("g.legendpoints").selectAll("path.legendbar").data(i.traceIs(t,"bar")?[e]:[]);l.enter().append("path").classed("legendbar",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),l.exit().remove(),l.each(function(e){var t=r.select(this),i=e[0],l=(i.mlw+1||a.width+1)-1;t.style("stroke-width",l+"px").call(o.fill,i.mc||n.color),l&&t.call(o.stroke,i.mlc||a.color)})}).each(function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendbox").data(i.traceIs(t,"box")&&t.visible?[e]:[]);n.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),n.exit().remove(),n.each(function(){var e=t.line.width,n=r.select(this);n.style("stroke-width",e+"px").call(o.fill,t.fillcolor),e&&n.call(o.stroke,t.line.color)})}).each(function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendpie").data(i.traceIs(t,"pie")&&t.visible?[e]:[]);n.enter().append("path").classed("legendpie",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),n.exit().remove(),n.size()&&n.call(u,e[0],t)}).each(function(e){var t=e[0].trace,n=t.visible&&t.fill&&"none"!==t.fill,i=s.hasLines(t);t&&t._module&&"contourcarpet"===t._module.name&&(i=t.contours.showlines,n="fill"===t.contours.coloring);var a=r.select(this).select(".legendfill").selectAll("path").data(n?[e]:[]);a.enter().append("path").classed("js-fill",!0),a.exit().remove(),a.attr("d","M5,0h30v6h-30z").call(l.fillGroupStyle);var o=r.select(this).select(".legendlines").selectAll("path").data(i?[e]:[]);o.enter().append("path").classed("js-line",!0).attr("d","M5,0h30"),o.exit().remove(),o.call(l.lineGroupStyle)}).each(function(e){var n,i,o=e[0],u=o.trace,c=s.hasMarkers(u),d=s.hasText(u),f=s.hasLines(u);function h(e,t,n){var r=a.nestedProperty(u,e).get(),i=Array.isArray(r)&&t?t(r):r;if(n){if(in[1])return n[1]}return i}function p(e){return e[0]}if(c||d||f){var v={},y={};c&&(v.mc=h("marker.color",p),v.mo=h("marker.opacity",a.mean,[.2,1]),v.ms=h("marker.size",a.mean,[2,16]),v.mlc=h("marker.line.color",p),v.mlw=h("marker.line.width",a.mean,[0,5]),y.marker={sizeref:1,sizemin:1,sizemode:"diameter"}),f&&(y.line={width:h("line.width",p,[0,10])}),d&&(v.tx="Aa",v.tp=h("textposition",p),v.ts=10,v.tc=h("textfont.color",p),v.tf=h("textfont.family",p)),n=[a.minExtend(o,v)],i=a.minExtend(u,y)}var g=r.select(this).select("g.legendpoints"),m=g.selectAll("path.scatterpts").data(c?n:[]);m.enter().append("path").classed("scatterpts",!0).attr("transform","translate(20,0)"),m.exit().remove(),m.call(l.pointStyle,i,t),c&&(n[0].mrc=3);var _=g.selectAll("g.pointtext").data(d?n:[]);_.enter().append("g").classed("pointtext",!0).append("text").attr("transform","translate(20,0)"),_.exit().remove(),_.selectAll("text").call(l.textPointStyle,i,t)})}},function(e,t,n){"use strict";var r=n(17),i=n(24),a=n(10).extendFlat;e.exports={bgcolor:{valType:"color",role:"style",description:"Sets the legend background color."},bordercolor:{valType:"color",dflt:i.defaultLine,role:"style",description:"Sets the color of the border enclosing the legend."},borderwidth:{valType:"number",min:0,dflt:0,role:"style",description:"Sets the width (in px) of the border enclosing the legend."},font:a({},r,{description:"Sets the font used to text the legend items."}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",role:"info",description:"Sets the orientation of the legend."},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],role:"style",description:["Determines the order at which the legend items are displayed.","If *normal*, the items are displayed top-to-bottom in the same","order as the input data.","If *reversed*, the items are displayed in the opposite order","as *normal*.","If *grouped*, the items are displayed in groups","(when a trace `legendgroup` is provided).","if *grouped+reversed*, the items are displayed in the opposite order","as *grouped*."].join(" ")},tracegroupgap:{valType:"number",min:0,dflt:10,role:"style",description:["Sets the amount of vertical space (in px) between legend groups."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:1.02,role:"style",description:"Sets the x position (in normalized coordinates) of the legend."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",description:["Sets the legend's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the legend."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,role:"style",description:"Sets the y position (in normalized coordinates) of the legend."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",role:"info",description:["Sets the legend's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the legend."].join(" ")}}},function(e,t,n){"use strict";var r=n(1),i=n(0),a=n(9),l=n(18),o=n(15);function s(e,t,n,r,i){var a=e._fullLayout._modules;t.plot&&t.plot.selectAll("g:not(.scatterlayer)").selectAll("g.trace").remove();for(var l=0;lr||u===i||ul||t&&s(e))}:function(e,o){var s=e[0],u=e[1];if(s===i||sr||u===i||ul)return!1;var c,d,f,h,p,v=t.length,y=t[0][0],g=t[0][1],m=0;for(c=1;cMath.max(d,y)||u>Math.max(f,g)))if(uc||Math.abs(r(l,f))>i)return!0;return!1};a.filter=function(e,t){var n=[e[0]],r=0,i=0;function a(a){e.push(a);var o=n.length,s=r;n.splice(i+1);for(var u=s+1;u1&&a(e.pop());return{addPt:a,raw:e,filtered:n}}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n,i){n("hoverlabel.bgcolor",(i=i||{}).bgcolor),n("hoverlabel.bordercolor",i.bordercolor),r.coerceFont(n,"hoverlabel.font",i.font)}},function(e,t,n){"use strict";var r=n(2),i=n(29),a=n(20),l=n(15),o=n(257);e.exports=function(e){var t=e._fullLayout;if((t._has("cartesian")||t._has("gl2d"))&&!e._context.staticPlot){Object.keys(t._plots||{}).sort(function(e,n){if((t._plots[e].mainplot&&!0)===(t._plots[n].mainplot&&!0)){var r=e.split("y"),i=n.split("y");return r[0]===i[0]?Number(r[1]||1)-Number(i[1]||1):Number(r[0]||1)-Number(i[0]||1)}return t._plots[e].mainplot?1:-1}).forEach(function(n){var s=t._plots[n],u=s.xaxis,c=s.yaxis,d=(u._linepositions[n]||[])[3],f=(c._linepositions[n]||[])[3],h=l.DRAGGERSIZE;if(r(d)&&"top"===u.side&&(d-=h),r(f)&&"right"!==c.side&&(f-=h),!s.mainplot){var p=o(e,s,0,0,u._length,c._length,"ns","ew");p.onmousemove=function(t){e._fullLayout._rehover=function(){e._fullLayout._hoversubplot===n&&i.hover(e,t,n)},i.hover(e,t,n),e._fullLayout._lasthover=p,e._fullLayout._hoversubplot=n},p.onmouseout=function(t){e._dragging||(e._fullLayout._hoversubplot=null,a.unhover(e,t))},p.onclick=function(t){i.click(e,t,n)},e._context.showAxisDragHandles&&(o(e,s,-h,-h,h,h,"n","w"),o(e,s,u._length,-h,h,h,"n","e"),o(e,s,-h,c._length,h,h,"s","w"),o(e,s,u._length,c._length,h,h,"s","e"))}e._context.showAxisDragHandles&&(r(d)&&("free"===u.anchor&&(d-=t._size.h*(1-c.domain[1])),o(e,s,.1*u._length,d,.8*u._length,h,"","ew"),o(e,s,0,d,.1*u._length,h,"","w"),o(e,s,.9*u._length,d,.1*u._length,h,"","e")),r(f)&&("free"===c.anchor&&(f-=t._size.w*u.domain[0]),o(e,s,f,.1*c._length,h,.8*c._length,"ns",""),o(e,s,f,.9*c._length,h,.1*c._length,"s",""),o(e,s,f,0,h,.1*c._length,"n","")))});var n=t._hoverlayer.node();n.onmousemove=function(n){n.target=t._lasthover,i.hover(e,n,t._hoversubplot)},n.onclick=function(n){n.target=t._lasthover,i.click(e,n)},n.onmousedown=function(e){t._lasthover.onmousedown(e)}}}},function(e,t,n){var r=n(1),i=n(0).extendDeepAll,a=e.exports={version:"0.2.2"};a.Axis=function(){var e,t,n,l,o={data:[],layout:{}},s={},u={},c=r.dispatch("hover"),d={};return d.render=function(s){return function(s){t=s||t;var c=o.data,d=o.layout;("string"==typeof t||t.nodeName)&&(t=r.select(t)),t.datum(c).each(function(t,o){var s=t.slice();u={data:a.util.cloneJson(s),layout:a.util.cloneJson(d)};var c=0;s.forEach(function(e,t){e.color||(e.color=d.defaultColorRange[c],c=(c+1)%d.defaultColorRange.length),e.strokeColor||(e.strokeColor="LinePlot"===e.geometry?e.color:r.rgb(e.color).darker().toString()),u.data[t].color=e.color,u.data[t].strokeColor=e.strokeColor,u.data[t].strokeDash=e.strokeDash,u.data[t].strokeSize=e.strokeSize});var f=s.filter(function(e,t){var n=e.visible;return void 0===n||!0===n}),h=!1,p=f.map(function(e,t){return h=h||void 0!==e.groupId,e});if(h){var v=[],y=r.nest().key(function(e,t){return void 0!==e.groupId?e.groupId:"unstacked"}).entries(p).map(function(e,t){if("unstacked"===e.key)return e.values;var n=e.values[0].r.map(function(e,t){return 0});return e.values.forEach(function(e,t,r){e.yStack=[n],v.push(n),n=a.util.sumArrays(e.r,n)}),e.values});f=r.merge(y)}f.forEach(function(e,t){e.t=Array.isArray(e.t[0])?e.t:[e.t],e.r=Array.isArray(e.r[0])?e.r:[e.r]});var g=Math.min(d.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2;g=Math.max(10,g);var m,_=[d.margin.left+g,d.margin.top+g];m=h?[0,r.max(a.util.sumArrays(a.util.arrayLast(f).r[0],a.util.arrayLast(v)))]:r.extent(a.util.flattenArray(f.map(function(e,t){return e.r}))),d.radialAxis.domain!=a.DATAEXTENT&&(m[0]=0),n=r.scale.linear().domain(d.radialAxis.domain!=a.DATAEXTENT&&d.radialAxis.domain?d.radialAxis.domain:m).range([0,g]),u.layout.radialAxis.domain=n.domain();var T,b=a.util.flattenArray(f.map(function(e,t){return e.t})),M="string"==typeof b[0];M&&(b=a.util.deduplicate(b),T=b.slice(),b=r.range(b.length),f=f.map(function(e,t){var n=e;return e.t=[b],h&&(n.yStack=e.yStack),n}));var k=f.filter(function(e,t){return"LinePlot"===e.geometry||"DotPlot"===e.geometry}).length===f.length,K=null===d.needsEndSpacing?M||!k:d.needsEndSpacing,x=d.angularAxis.domain&&d.angularAxis.domain!=a.DATAEXTENT&&!M&&d.angularAxis.domain[0]>=0?d.angularAxis.domain:r.extent(b),C=Math.abs(b[1]-b[0]);k&&!M&&(C=0);var A=x.slice();K&&M&&(A[1]+=C);var w=d.angularAxis.ticksCount||4;w>8&&(w=w/(w/8)+w%8),d.angularAxis.ticksStep&&(w=(A[1]-A[0])/w);var L=d.angularAxis.ticksStep||(A[1]-A[0])/(w*(d.minorTicks+1));T&&(L=Math.max(Math.round(L),1)),A[2]||(A[2]=L);var D=r.range.apply(this,A);if(D=D.map(function(e,t){return parseFloat(e.toPrecision(12))}),l=r.scale.linear().domain(A.slice(0,2)).range("clockwise"===d.direction?[0,360]:[360,0]),u.layout.angularAxis.domain=l.domain(),u.layout.angularAxis.endPadding=K?C:0,void 0===(e=r.select(this).select("svg.chart-root"))||e.empty()){var B=(new DOMParser).parseFromString("' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '","application/xml"),S=this.appendChild(this.ownerDocument.importNode(B.documentElement,!0));e=r.select(S)}e.select(".guides-group").style({"pointer-events":"none"}),e.select(".angular.axis-group").style({"pointer-events":"none"}),e.select(".radial.axis-group").style({"pointer-events":"none"});var z,G=e.select(".chart-group"),W={fill:"none",stroke:d.tickColor},O={"font-size":d.font.size,"font-family":d.font.family,fill:d.font.color,"text-shadow":["-1px 0px","1px -1px","-1px 1px","1px 1px"].map(function(e,t){return" "+e+" 0 "+d.font.outlineColor}).join(",")};if(d.showLegend){z=e.select(".legend-group").attr({transform:"translate("+[g,d.margin.top]+")"}).style({display:"block"});var P=f.map(function(e,t){var n=a.util.cloneJson(e);return n.symbol="DotPlot"===e.geometry?e.dotType||"circle":"LinePlot"!=e.geometry?"square":"line",n.visibleInLegend=void 0===e.visibleInLegend||e.visibleInLegend,n.color="LinePlot"===e.geometry?e.strokeColor:e.color,n});a.Legend().config({data:f.map(function(e,t){return e.name||"Element"+t}),legendConfig:i({},a.Legend.defaultConfig().legendConfig,{container:z,elements:P,reverseOrder:d.legend.reverseOrder})})();var R=z.node().getBBox();g=Math.min(d.width-R.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2,g=Math.max(10,g),_=[d.margin.left+g,d.margin.top+g],n.range([0,g]),u.layout.radialAxis.domain=n.domain(),z.attr("transform","translate("+[_[0]+g,_[1]-g]+")")}else z=e.select(".legend-group").style({display:"none"});e.attr({width:d.width,height:d.height}).style({opacity:d.opacity}),G.attr("transform","translate("+_+")").style({cursor:"crosshair"});var j=[(d.width-(d.margin.left+d.margin.right+2*g+(R?R.width:0)))/2,(d.height-(d.margin.top+d.margin.bottom+2*g))/2];if(j[0]=Math.max(0,j[0]),j[1]=Math.max(0,j[1]),e.select(".outer-group").attr("transform","translate("+j+")"),d.title){var E=e.select("g.title-group text").style(O).text(d.title),I=E.node().getBBox();E.attr({x:_[0]-I.width/2,y:_[1]-g-20})}var N=e.select(".radial.axis-group");if(d.radialAxis.gridLinesVisible){var F=N.selectAll("circle.grid-circle").data(n.ticks(5));F.enter().append("circle").attr({class:"grid-circle"}).style(W),F.attr("r",n),F.exit().remove()}N.select("circle.outside-circle").attr({r:g}).style(W);var $=e.select("circle.background-circle").attr({r:g}).style({fill:d.backgroundColor,stroke:d.stroke});function V(e,t){return l(e)%360+d.orientation}if(d.radialAxis.visible){var H=r.svg.axis().scale(n).ticks(5).tickSize(5);N.call(H).attr({transform:"rotate("+d.radialAxis.orientation+")"}),N.selectAll(".domain").style(W),N.selectAll("g>text").text(function(e,t){return this.textContent+d.radialAxis.ticksSuffix}).style(O).style({"text-anchor":"start"}).attr({x:0,y:0,dx:0,dy:0,transform:function(e,t){return"horizontal"===d.radialAxis.tickOrientation?"rotate("+-d.radialAxis.orientation+") translate("+[0,O["font-size"]]+")":"translate("+[0,O["font-size"]]+")"}}),N.selectAll("g>line").style({stroke:"black"})}var q=e.select(".angular.axis-group").selectAll("g.angular-tick").data(D),U=q.enter().append("g").classed("angular-tick",!0);q.attr({transform:function(e,t){return"rotate("+V(e)+")"}}).style({display:d.angularAxis.visible?"block":"none"}),q.exit().remove(),U.append("line").classed("grid-line",!0).classed("major",function(e,t){return t%(d.minorTicks+1)==0}).classed("minor",function(e,t){return!(t%(d.minorTicks+1)==0)}).style(W),U.selectAll(".minor").style({stroke:d.minorTickColor}),q.select("line.grid-line").attr({x1:d.tickLength?g-d.tickLength:0,x2:g}).style({display:d.angularAxis.gridLinesVisible?"block":"none"}),U.append("text").classed("axis-text",!0).style(O);var Y=q.select("text.axis-text").attr({x:g+d.labelOffset,dy:".35em",transform:function(e,t){var n=V(e),r=g+d.labelOffset,i=d.angularAxis.tickOrientation;return"horizontal"==i?"rotate("+-n+" "+r+" 0)":"radial"==i?n<270&&n>90?"rotate(180 "+r+" 0)":null:"rotate("+(n<=180&&n>0?-90:90)+" "+r+" 0)"}}).style({"text-anchor":"middle",display:d.angularAxis.labelsVisible?"block":"none"}).text(function(e,t){return t%(d.minorTicks+1)!=0?"":T?T[e]+d.angularAxis.ticksSuffix:e+d.angularAxis.ticksSuffix}).style(O);d.angularAxis.rewriteTicks&&Y.text(function(e,t){return t%(d.minorTicks+1)!=0?"":d.angularAxis.rewriteTicks(this.textContent,t)});var X=r.max(G.selectAll(".angular-tick text")[0].map(function(e,t){return e.getCTM().e+e.getBBox().width}));z.attr({transform:"translate("+[g+X,d.margin.top]+")"});var Z=e.select("g.geometry-group").selectAll("g").size()>0,J=e.select("g.geometry-group").selectAll("g.geometry").data(f);if(J.enter().append("g").attr({class:function(e,t){return"geometry geometry"+t}}),J.exit().remove(),f[0]||Z){var Q=[];f.forEach(function(e,t){var r={};r.radialScale=n,r.angularScale=l,r.container=J.filter(function(e,n){return n==t}),r.geometry=e.geometry,r.orientation=d.orientation,r.direction=d.direction,r.index=t,Q.push({data:e,geometryConfig:r})});var ee=[];r.nest().key(function(e,t){return void 0!==e.data.groupId||"unstacked"}).entries(Q).forEach(function(e,t){"unstacked"===e.key?ee=ee.concat(e.values.map(function(e,t){return[e]})):ee.push(e.values)}),ee.forEach(function(e,t){var n;n=Array.isArray(e)?e[0].geometryConfig.geometry:e.geometryConfig.geometry;var r=e.map(function(e,t){return i(a[n].defaultConfig(),e)});a[n]().config(r)()})}var te,ne,re=e.select(".guides-group"),ie=e.select(".tooltips-group"),ae=a.tooltipPanel().config({container:ie,fontSize:8})(),le=a.tooltipPanel().config({container:ie,fontSize:8})(),oe=a.tooltipPanel().config({container:ie,hasTick:!0})();if(!M){var se=re.select("line").attr({x1:0,y1:0,y2:0}).style({stroke:"grey","pointer-events":"none"});G.on("mousemove.angular-guide",function(e,t){var n=a.util.getMousePos($).angle;se.attr({x2:-g,transform:"rotate("+n+")"}).style({opacity:.5});var r=(n+180+360-d.orientation)%360;te=l.invert(r);var i=a.util.convertToCartesian(g+12,n+180);ae.text(a.util.round(te)).move([i[0]+_[0],i[1]+_[1]])}).on("mouseout.angular-guide",function(e,t){re.select("line").style({opacity:0})})}var ue=re.select("circle").style({stroke:"grey",fill:"none"});G.on("mousemove.radial-guide",function(e,t){var r=a.util.getMousePos($).radius;ue.attr({r:r}).style({opacity:.5}),ne=n.invert(a.util.getMousePos($).radius);var i=a.util.convertToCartesian(r,d.radialAxis.orientation);le.text(a.util.round(ne)).move([i[0]+_[0],i[1]+_[1]])}).on("mouseout.radial-guide",function(e,t){ue.style({opacity:0}),oe.hide(),ae.hide(),le.hide()}),e.selectAll(".geometry-group .mark").on("mouseover.tooltip",function(t,n){var i=r.select(this),l=i.style("fill"),o="black",s=i.style("opacity")||1;if(i.attr({"data-opacity":s}),"none"!=l){i.attr({"data-fill":l}),o=r.hsl(l).darker().toString(),i.style({fill:o,opacity:1});var u={t:a.util.round(t[0]),r:a.util.round(t[1])};M&&(u.t=T[t[0]]);var c="t: "+u.t+", r: "+u.r,d=this.getBoundingClientRect(),f=e.node().getBoundingClientRect(),h=[d.left+d.width/2-j[0]-f.left,d.top+d.height/2-j[1]-f.top];oe.config({color:o}).text(c),oe.move(h)}else l=i.style("stroke"),i.attr({"data-stroke":l}),o=r.hsl(l).darker().toString(),i.style({stroke:o,opacity:1})}).on("mousemove.tooltip",function(e,t){if(0!=r.event.which)return!1;r.select(this).attr("data-fill")&&oe.show()}).on("mouseout.tooltip",function(e,t){oe.hide();var n=r.select(this),i=n.attr("data-fill");i?n.style({fill:i,opacity:n.attr("data-opacity")}):n.style({stroke:n.attr("data-stroke"),opacity:n.attr("data-opacity")})})})}(s),this},d.config=function(e){if(!arguments.length)return o;var t=a.util.cloneJson(e);return t.data.forEach(function(e,t){o.data[t]||(o.data[t]={}),i(o.data[t],a.Axis.defaultConfig().data[0]),i(o.data[t],e)}),i(o.layout,a.Axis.defaultConfig().layout),i(o.layout,t.layout),this},d.getLiveConfig=function(){return u},d.getinputConfig=function(){return s},d.radialScale=function(e){return n},d.angularScale=function(e){return l},d.svg=function(){return e},r.rebind(d,c,"on"),d},a.Axis.defaultConfig=function(e,t){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:"Line1",geometry:"LinePlot",color:null,strokeDash:"solid",strokeColor:null,strokeSize:"1",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:r.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:"gray",outlineColor:"white",family:"Tahoma, sans-serif"},direction:"clockwise",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:"",visible:!0,gridLinesVisible:!0,tickOrientation:"horizontal",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:"",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:"horizontal",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:"silver",minorTickColor:"#eee",backgroundColor:"none",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},a.util={},a.DATAEXTENT="dataExtent",a.AREA="AreaChart",a.LINE="LinePlot",a.DOT="DotPlot",a.BAR="BarChart",a.util._override=function(e,t){for(var n in e)n in t&&(t[n]=e[n])},a.util._extend=function(e,t){for(var n in e)t[n]=e[n]},a.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},a.util.dataFromEquation2=function(e,t){var n=t||6;return r.range(0,360+n,n).map(function(t,n){var r=t*Math.PI/180;return[t,e(r)]})},a.util.dataFromEquation=function(e,t,n){var i=t||6,a=[],l=[];r.range(0,360+i,i).forEach(function(t,n){var r=t*Math.PI/180,i=e(r);a.push(t),l.push(i)});var o={t:a,r:l};return n&&(o.name=n),o},a.util.ensureArray=function(e,t){if(void 0===e)return null;var n=[].concat(e);return r.range(t).map(function(e,t){return n[t]||n[0]})},a.util.fillArrays=function(e,t,n){return t.forEach(function(t,r){e[t]=a.util.ensureArray(e[t],n)}),e},a.util.cloneJson=function(e){return JSON.parse(JSON.stringify(e))},a.util.validateKeys=function(e,t){"string"==typeof t&&(t=t.split("."));var n=t.shift();return e[n]&&(!t.length||objHasKeys(e[n],t))},a.util.sumArrays=function(e,t){return r.zip(e,t).map(function(e,t){return r.sum(e)})},a.util.arrayLast=function(e){return e[e.length-1]},a.util.arrayEqual=function(e,t){for(var n=Math.max(e.length,t.length,1);n-- >=0&&e[n]===t[n];);return-2===n},a.util.flattenArray=function(e){for(var t=[];!a.util.arrayEqual(t,e);)t=e,e=[].concat.apply([],e);return e},a.util.deduplicate=function(e){return e.filter(function(e,t,n){return n.indexOf(e)==t})},a.util.convertToCartesian=function(e,t){var n=t*Math.PI/180;return[e*Math.cos(n),e*Math.sin(n)]},a.util.round=function(e,t){var n=t||2,r=Math.pow(10,n);return Math.round(e*r)/r},a.util.getMousePos=function(e){var t=r.mouse(e.node()),n=t[0],i=t[1],a={};return a.x=n,a.y=i,a.pos=t,a.angle=180*(Math.atan2(i,n)+Math.PI)/Math.PI,a.radius=Math.sqrt(n*n+i*i),a},a.util.duplicatesCount=function(e){for(var t,n={},r={},i=0,a=e.length;i0)){var s=r.select(this.parentNode).selectAll("path.line").data([0]);s.enter().insert("path"),s.attr({class:"line",d:c(o),transform:function(e,n){return"rotate("+(t.orientation+90)+")"},"pointer-events":"none"}).style({fill:function(e,t){return p.fill(n,i,a)},"fill-opacity":0,stroke:function(e,t){return p.stroke(n,i,a)},"stroke-width":function(e,t){return p["stroke-width"](n,i,a)},"stroke-dasharray":function(e,t){return p["stroke-dasharray"](n,i,a)},opacity:function(e,t){return p.opacity(n,i,a)},display:function(e,t){return p.display(n,i,a)}})}};var d=t.angularScale.range(),f=Math.abs(d[1]-d[0])/l[0].length*Math.PI/180,h=r.svg.arc().startAngle(function(e){return-f/2}).endAngle(function(e){return f/2}).innerRadius(function(e){return t.radialScale(s+(e[2]||0))}).outerRadius(function(e){return t.radialScale(s+(e[2]||0))+t.radialScale(e[1])});u.arc=function(e,n,i){r.select(this).attr({class:"mark arc",d:h,transform:function(e,n){return"rotate("+(t.orientation+o(e[0])+90)+")"}})};var p={fill:function(t,n,r){return e[r].data.color},stroke:function(t,n,r){return e[r].data.strokeColor},"stroke-width":function(t,n,r){return e[r].data.strokeSize+"px"},"stroke-dasharray":function(t,r,i){return n[e[i].data.strokeDash]},opacity:function(t,n,r){return e[r].data.opacity},display:function(t,n,r){return void 0===e[r].data.visible||e[r].data.visible?"block":"none"}},v=r.select(this).selectAll("g.layer").data(l);v.enter().append("g").attr({class:"layer"});var y=v.selectAll("path.mark").data(function(e,t){return e});y.enter().append("path").attr({class:"mark"}),y.style(p).each(u[t.geometryType]),y.exit().remove(),v.exit().remove()})}return l.config=function(t){return arguments.length?(t.forEach(function(t,n){e[n]||(e[n]={}),i(e[n],a.PolyChart.defaultConfig()),i(e[n],t)}),this):e},l.getColorScale=function(){},r.rebind(l,t,"on"),l},a.PolyChart.defaultConfig=function(){return{data:{name:"geom1",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:"circle",dotSize:64,dotVisible:!1,barWidth:20,color:"#ffa500",strokeSize:1,strokeColor:"silver",strokeDash:"solid",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:"LinePlot",geometryType:"arc",direction:"clockwise",orientation:0,container:"body",radialScale:null,angularScale:null,colorScale:r.scale.category20()}}},a.BarChart=function(){return a.PolyChart()},a.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:"bar"}}},a.AreaChart=function(){return a.PolyChart()},a.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:"arc"}}},a.DotPlot=function(){return a.PolyChart()},a.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:"dot",dotType:"circle"}}},a.LinePlot=function(){return a.PolyChart()},a.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:"line"}}},a.Legend=function(){var e=a.Legend.defaultConfig(),t=r.dispatch("hover");function n(){var t=e.legendConfig,a=e.data.map(function(e,n){return[].concat(e).map(function(e,r){var a=i({},t.elements[n]);return a.name=e,a.color=[].concat(t.elements[n].color)[r],a})}),l=r.merge(a);l=l.filter(function(e,n){return t.elements[n]&&(t.elements[n].visibleInLegend||void 0===t.elements[n].visibleInLegend)}),t.reverseOrder&&(l=l.reverse());var o=t.container;("string"==typeof o||o.nodeName)&&(o=r.select(o));var s=l.map(function(e,t){return e.color}),u=t.fontSize,c=null==t.isContinuous?"number"==typeof l[0]:t.isContinuous,d=c?t.height:u*l.length,f=o.classed("legend-group",!0).selectAll("svg").data([0]),h=f.enter().append("svg").attr({width:300,height:d+u,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"});h.append("g").classed("legend-axis",!0),h.append("g").classed("legend-marks",!0);var p=r.range(l.length),v=r.scale[c?"linear":"ordinal"]().domain(p).range(s),y=r.scale[c?"linear":"ordinal"]().domain(p)[c?"range":"rangePoints"]([0,d]);if(c){var g=f.select(".legend-marks").append("defs").append("linearGradient").attr({id:"grad1",x1:"0%",y1:"0%",x2:"0%",y2:"100%"}).selectAll("stop").data(s);g.enter().append("stop"),g.attr({offset:function(e,t){return t/(s.length-1)*100+"%"}}).style({"stop-color":function(e,t){return e}}),f.append("rect").classed("legend-mark",!0).attr({height:t.height,width:t.colorBandWidth,fill:"url(#grad1)"})}else{var m=f.select(".legend-marks").selectAll("path.legend-mark").data(l);m.enter().append("path").classed("legend-mark",!0),m.attr({transform:function(e,t){return"translate("+[u/2,y(t)+u/2]+")"},d:function(e,t){var n,i,a,l=e.symbol;return a=3*(i=u),"line"===(n=l)?"M"+[[-i/2,-i/12],[i/2,-i/12],[i/2,i/12],[-i/2,i/12]]+"Z":-1!=r.svg.symbolTypes.indexOf(n)?r.svg.symbol().type(n).size(a)():r.svg.symbol().type("square").size(a)()},fill:function(e,t){return v(t)}}),m.exit().remove()}var _=r.svg.axis().scale(y).orient("right"),T=f.select("g.legend-axis").attr({transform:"translate("+[c?t.colorBandWidth:u,u/2]+")"}).call(_);return T.selectAll(".domain").style({fill:"none",stroke:"none"}),T.selectAll("line").style({fill:"none",stroke:c?t.textColor:"none"}),T.selectAll("text").style({fill:t.textColor,"font-size":t.fontSize}).text(function(e,t){return l[t].name}),n}return n.config=function(t){return arguments.length?(i(e,t),this):e},r.rebind(n,t,"on"),n},a.Legend.defaultConfig=function(e,t){return{data:["a","b","c"],legendConfig:{elements:[{symbol:"line",color:"red"},{symbol:"square",color:"yellow"},{symbol:"diamond",color:"limegreen"}],height:150,colorBandWidth:30,fontSize:12,container:"body",isContinuous:null,textColor:"grey",reverseOrder:!1}}},a.tooltipPanel=function(){var e,t,n,l={container:null,hasTick:!1,fontSize:12,color:"white",padding:5},o="tooltip-"+a.tooltipPanel.uid++,s=10,u=function(){var r=(e=l.container.selectAll("g."+o).data([0])).enter().append("g").classed(o,!0).style({"pointer-events":"none",display:"none"});return n=r.append("path").style({fill:"white","fill-opacity":.9}).attr({d:"M0 0"}),t=r.append("text").attr({dx:l.padding+s,dy:.3*+l.fontSize}),u};return u.text=function(i){var a=r.hsl(l.color).l,o=a>=.5?"#aaa":"white",c=a>=.5?"black":"white",d=i||"";t.style({fill:c,"font-size":l.fontSize+"px"}).text(d);var f=l.padding,h=t.node().getBBox(),p={fill:l.color,stroke:o,"stroke-width":"2px"},v=h.width+2*f+s,y=h.height+2*f;return n.attr({d:"M"+[[s,-y/2],[s,-y/4],[l.hasTick?0:s,0],[s,y/4],[s,y/2],[v,y/2],[v,-y/2]].join("L")+"Z"}).style(p),e.attr({transform:"translate("+[s,-y/2+2*f]+")"}),e.style({display:"block"}),u},u.move=function(t){if(e)return e.attr({transform:"translate("+[t[0],t[1]]+")"}).style({display:"block"}),u},u.hide=function(){if(e)return e.style({display:"none"}),u},u.show=function(){if(e)return e.style({display:"block"}),u},u.config=function(e){return i(l,e),u},u},a.tooltipPanel.uid=1,a.adapter={},a.adapter.plotly=function(){var e={convert:function(e,t){var n={};if(e.data&&(n.data=e.data.map(function(e,n){var r=i({},e);return[[r,["marker","color"],["color"]],[r,["marker","opacity"],["opacity"]],[r,["marker","line","color"],["strokeColor"]],[r,["marker","line","dash"],["strokeDash"]],[r,["marker","line","width"],["strokeSize"]],[r,["marker","symbol"],["dotType"]],[r,["marker","size"],["dotSize"]],[r,["marker","barWidth"],["barWidth"]],[r,["line","interpolation"],["lineInterpolation"]],[r,["showlegend"],["visibleInLegend"]]].forEach(function(e,n){a.util.translator.apply(null,e.concat(t))}),t||delete r.marker,t&&delete r.groupId,t?("LinePlot"===r.geometry?(r.type="scatter",!0===r.dotVisible?(delete r.dotVisible,r.mode="lines+markers"):r.mode="lines"):"DotPlot"===r.geometry?(r.type="scatter",r.mode="markers"):"AreaChart"===r.geometry?r.type="area":"BarChart"===r.geometry&&(r.type="bar"),delete r.geometry):("scatter"===r.type?"lines"===r.mode?r.geometry="LinePlot":"markers"===r.mode?r.geometry="DotPlot":"lines+markers"===r.mode&&(r.geometry="LinePlot",r.dotVisible=!0):"area"===r.type?r.geometry="AreaChart":"bar"===r.type&&(r.geometry="BarChart"),delete r.mode,delete r.type),r}),!t&&e.layout&&"stack"===e.layout.barmode)){var l=a.util.duplicates(n.data.map(function(e,t){return e.geometry}));n.data.forEach(function(e,t){var r=l.indexOf(e.geometry);-1!=r&&(n.data[t].groupId=r)})}if(e.layout){var o=i({},e.layout);if([[o,["plot_bgcolor"],["backgroundColor"]],[o,["showlegend"],["showLegend"]],[o,["radialaxis"],["radialAxis"]],[o,["angularaxis"],["angularAxis"]],[o.angularaxis,["showline"],["gridLinesVisible"]],[o.angularaxis,["showticklabels"],["labelsVisible"]],[o.angularaxis,["nticks"],["ticksCount"]],[o.angularaxis,["tickorientation"],["tickOrientation"]],[o.angularaxis,["ticksuffix"],["ticksSuffix"]],[o.angularaxis,["range"],["domain"]],[o.angularaxis,["endpadding"],["endPadding"]],[o.radialaxis,["showline"],["gridLinesVisible"]],[o.radialaxis,["tickorientation"],["tickOrientation"]],[o.radialaxis,["ticksuffix"],["ticksSuffix"]],[o.radialaxis,["range"],["domain"]],[o.angularAxis,["showline"],["gridLinesVisible"]],[o.angularAxis,["showticklabels"],["labelsVisible"]],[o.angularAxis,["nticks"],["ticksCount"]],[o.angularAxis,["tickorientation"],["tickOrientation"]],[o.angularAxis,["ticksuffix"],["ticksSuffix"]],[o.angularAxis,["range"],["domain"]],[o.angularAxis,["endpadding"],["endPadding"]],[o.radialAxis,["showline"],["gridLinesVisible"]],[o.radialAxis,["tickorientation"],["tickOrientation"]],[o.radialAxis,["ticksuffix"],["ticksSuffix"]],[o.radialAxis,["range"],["domain"]],[o.font,["outlinecolor"],["outlineColor"]],[o.legend,["traceorder"],["reverseOrder"]],[o,["labeloffset"],["labelOffset"]],[o,["defaultcolorrange"],["defaultColorRange"]]].forEach(function(e,n){a.util.translator.apply(null,e.concat(t))}),t?(void 0!==o.tickLength&&(o.angularaxis.ticklen=o.tickLength,delete o.tickLength),o.tickColor&&(o.angularaxis.tickcolor=o.tickColor,delete o.tickColor)):(o.angularAxis&&void 0!==o.angularAxis.ticklen&&(o.tickLength=o.angularAxis.ticklen),o.angularAxis&&void 0!==o.angularAxis.tickcolor&&(o.tickColor=o.angularAxis.tickcolor)),o.legend&&"boolean"!=typeof o.legend.reverseOrder&&(o.legend.reverseOrder="normal"!=o.legend.reverseOrder),o.legend&&"boolean"==typeof o.legend.traceorder&&(o.legend.traceorder=o.legend.traceorder?"reversed":"normal",delete o.legend.reverseOrder),o.margin&&void 0!==o.margin.t){var s=["t","r","b","l","pad"],u=["top","right","bottom","left","pad"],c={};r.entries(o.margin).forEach(function(e,t){c[u[s.indexOf(e.key)]]=e.value}),o.margin=c}t&&(delete o.needsEndSpacing,delete o.minorTickColor,delete o.minorTicks,delete o.angularaxis.ticksCount,delete o.angularaxis.ticksCount,delete o.angularaxis.ticksStep,delete o.angularaxis.rewriteTicks,delete o.angularaxis.nticks,delete o.radialaxis.ticksCount,delete o.radialaxis.ticksCount,delete o.radialaxis.ticksStep,delete o.radialaxis.rewriteTicks,delete o.radialaxis.nticks),n.layout=o}return n}};return e}},function(e,t,n){"use strict";var r=n(0),i=n(111);var a={add:function(e,t,n,r,a){var l,o;e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},o=e.undoQueue.index,e.autoplay?e.undoQueue.inSequence||(e.autoplay=!1):(!e.undoQueue.sequence||e.undoQueue.beginSequence?(l={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(o,e.undoQueue.queue.length-o,l),e.undoQueue.index+=1):l=e.undoQueue.queue[o-1],e.undoQueue.beginSequence=!1,l&&(l.undo.calls.unshift(t),l.undo.args.unshift(n),l.redo.calls.push(r),l.redo.args.push(a)),e.undoQueue.queue.length>i.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,n;if(e.framework&&e.framework.isPolar)e.framework.undo();else if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n1)};d(t.width)&&d(t.height)||c(new Error("Height and width should be pixel values."));var f=o(e,{format:"png",height:t.height,width:t.width}),h=f.gd;h.style.position="absolute",h.style.left="-5000px",document.body.appendChild(h);var p=l.getRedrawFunc(h);i.plot(h,f.data,f.layout,f.config).then(p).then(function(){var e=l.getDelay(h._fullLayout);return new Promise(function(n,r){setTimeout(function(){var e=s(h),i=document.createElement("canvas");i.id=a.randstr(),u({format:t.format,width:h._fullLayout.width,height:h._fullLayout.height,canvas:i,svg:e,promise:!0}).then(function(e){h&&document.body.removeChild(h),n(e)}).catch(function(e){r(e)})},e)})}).then(function(e){n(e)}).catch(function(e){c(e)})})}},function(e,t,n){"use strict";t.manage=n(274)},function(e,t,n){"use strict";var r=n(2),i=n(0);e.exports=function(e,t,n,a){var l=a.counterAxes||[],o=a.overlayableAxes||[],s=a.letter;"free"===i.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(l),dflt:r(e.position)?"free":l[0]||"free"}},"anchor")&&n("position"),i.coerce(e,t,{side:{valType:"enumerated",values:"x"===s?["bottom","top"]:["left","right"],dflt:"x"===s?"bottom":"left"}},"side");var u=!1;if(o.length&&(u=i.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!u){var c=n("domain");c[0]>c[1]-.01&&(t.domain=[0,1]),i.noneOrAll(e.domain,t.domain,[0,1])}return t}},function(e,t,n){"use strict";var r=n(1),i=n(2),a=n(0),l=a.cleanNumber,o=a.ms2DateTime,s=a.dateTime2ms,u=a.ensureNumber,c=n(16),d=c.FP_SAFE,f=c.BADNUM,h=n(15),p=n(18);function v(e){return Math.pow(10,e)}e.exports=function(e,t){t=t||{};var n=10;function c(t,r){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&r&&e.range&&2===e.range.length){var i=e.range[0],a=e.range[1];return.5*(i+a-3*n*Math.abs(i-a))}return f}function y(t,n,r){var a=s(t,r||e.calendar);if(a===f){if(!i(t))return f;a=s(new Date(+t))}return a}function g(t,n,r){return o(t,n,r||e.calendar)}function m(t){return e._categories[Math.round(t)]}function _(t){if(e._categoriesMap){var n=e._categoriesMap[t];if(void 0!==n)return n}if(i(t))return+t}function T(t){return i(t)?r.round(e._b+e._m*t,2):f}function b(t){return(t-e._b)/e._m}e.c2l="log"===e.type?c:u,e.l2c="log"===e.type?v:u,e.l2p=T,e.p2l=b,e.c2p="log"===e.type?function(e,t){return T(c(e,t))}:T,e.p2c="log"===e.type?function(e){return v(b(e))}:b,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=l,e.c2d=e.c2r=e.l2d=e.l2r=u,e.d2p=e.r2p=function(t){return e.l2p(l(t))},e.p2d=e.p2r=b,e.cleanPos=u):"log"===e.type?(e.d2r=e.d2l=function(e,t){return c(l(e),t)},e.r2d=e.r2c=function(e){return v(l(e))},e.d2c=e.r2l=l,e.c2d=e.l2r=u,e.c2r=c,e.l2d=v,e.d2p=function(t,n){return e.l2p(e.d2r(t,n))},e.p2d=function(e){return v(b(e))},e.r2p=function(t){return e.l2p(l(t))},e.p2r=b,e.cleanPos=u):"date"===e.type?(e.d2r=e.r2d=a.identity,e.d2c=e.r2c=e.d2l=e.r2l=y,e.c2d=e.c2r=e.l2d=e.l2r=g,e.d2p=e.r2p=function(t,n,r){return e.l2p(y(t,0,r))},e.p2d=e.p2r=function(e,t,n){return g(b(e),t,n)},e.cleanPos=function(t){return a.cleanDate(t,f,e.calendar)}):"category"===e.type&&(e.d2c=e.d2l=function(t){if(null!==t&&void 0!==t){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push(t);var n=e._categories.length-1;return e._categoriesMap[t]=n,n}return f},e.r2d=e.c2d=e.l2d=m,e.d2r=e.d2l_noadd=_,e.r2c=function(t){var n=_(t);return void 0!==n?n:e.fraction2r(.5)},e.l2r=e.c2r=u,e.r2l=_,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return m(b(e))},e.r2p=e.d2p,e.p2r=b,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:u(e)}),e.fraction2r=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return e.l2r(n+t*(r-n))},e.r2fraction=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return(e.r2l(t)-n)/(r-n)},e.cleanRange=function(t){t||(t="range");var n,r,l=a.nestedProperty(e,t).get(),o=(e._id||"x").charAt(0);if(r=(r="date"===e.type?a.dfltRange(e.calendar):"y"===o?h.DFLTRANGEY:h.DFLTRANGEX).slice(),l&&2===l.length)for("date"===e.type&&(l[0]=a.cleanDate(l[0],f,e.calendar),l[1]=a.cleanDate(l[1],f,e.calendar)),n=0;n<2;n++)if("date"===e.type){if(!a.isDateTime(l[n],e.calendar)){e[t]=r;break}if(e.r2l(l[0])===e.r2l(l[1])){var s=a.constrain(e.r2l(l[0]),a.MIN_MS+1e3,a.MAX_MS-1e3);l[0]=e.l2r(s-1e3),l[1]=e.l2r(s+1e3);break}}else{if(!i(l[n])){if(!i(l[1-n])){e[t]=r;break}l[n]=l[1-n]*(n?10:.1)}if(l[n]<-d?l[n]=-d:l[n]>d&&(l[n]=d),l[0]===l[1]){var u=Math.max(1,Math.abs(1e-6*l[0]));l[0]-=u,l[1]+=u}}else a.nestedProperty(e,t).set(r)},e.setScale=function(n){var r=t._size,i=e._id.charAt(0);if(e._categories||(e._categories=[]),e._categoriesMap||(e._categoriesMap={}),e.overlaying){var l=p.getFromId({_fullLayout:t},e.overlaying);e.domain=l.domain}var o=n&&e._r?"_r":"range",s=e.calendar;e.cleanRange(o);var u=e.r2l(e[o][0],s),c=e.r2l(e[o][1],s);if("y"===i?(e._offset=r.t+(1-e.domain[1])*r.h,e._length=r.h*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c):(e._offset=r.l+e.domain[0]*r.w,e._length=r.w*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u),!isFinite(e._m)||!isFinite(e._b))throw a.notifier("Something went wrong with axis scaling","long"),t._replotting=!1,new Error("axis scaling")},e.makeCalcdata=function(t,n){var r,i,a,l="date"===e.type&&t[n+"calendar"];if(n in t)for(r=t[n],i=new Array(r.length),a=0;a2*l}(e,t)?"date":function(e){for(var t,n=Math.max(1,(e.length-1)/1e3),r=0,l=0,o=0;o2*r}(e)?"category":function(e){if(!e)return!1;for(var t=0;t=0?i.Reds:i.Blues,s.colorscale=v,o.reversescale&&(v=a(v)),o.colorscale=v)}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n,i,a){var l=function(e){var t=["showexponent","showtickprefix","showticksuffix"].filter(function(t){return void 0!==e[t]});if(t.every(function(n){return e[n]===e[t[0]]})||1===t.length)return e[t[0]]}(e);if(n("tickprefix")&&n("showtickprefix",l),n("ticksuffix")&&n("showticksuffix",l),n("showticklabels")){var o=a.font||{},s=t.color===e.color?t.color:o.color;if(r.coerceFont(n,"tickfont",{family:o.family,size:o.size,color:s}),n("tickangle"),"category"!==i)n("tickformat")||"date"===i||(n("showexponent",l),n("exponentformat"),n("separatethousands"))}"category"===i||a.noHover||n("hoverformat")}},function(e,t,n){"use strict";var r=n(0),i=n(23);e.exports=function(e,t,n,a){var l=r.coerce2(e,t,i,"ticklen"),o=r.coerce2(e,t,i,"tickwidth"),s=r.coerce2(e,t,i,"tickcolor",t.color);n("ticks",a.outerTicks||l||o||s?"outside":"")||(delete t.ticklen,delete t.tickwidth,delete t.tickcolor)}},function(e,t,n){"use strict";var r=n(2),i=n(0),a=n(16).ONEDAY;e.exports=function(e,t,n,l){var o="auto";"array"!==e.tickmode||"log"!==l&&"date"!==l||(e.tickmode="auto"),Array.isArray(e.tickvals)?o="array":e.dtick&&(o="linear");var s=n("tickmode",o);if("auto"===s)n("nticks");else if("linear"===s){var u="date"===l?a:1,c=n("dtick",u);if(r(c))t.dtick=c>0?Number(c):u;else if("string"!=typeof c)t.dtick=u;else{var d=c.charAt(0),f=c.substr(1);((f=r(f)?Number(f):0)<=0||!("date"===l&&"M"===d&&f===Math.round(f)||"log"===l&&"L"===d||"log"===l&&"D"===d&&(1===f||2===f)))&&(t.dtick=u)}var h="date"===l?i.dateTick0(t.calendar):0,p=n("tick0",h);"date"===l?t.tick0=i.cleanDate(p,h):r(p)&&"D1"!==c&&"D2"!==c?t.tick0=Number(p):t.tick0=h}else{void 0===n("tickvals")?t.tickmode="auto":n("ticktext")}}},function(e,t,n){"use strict";t.scales=n(25),t.defaultScale=n(164),t.attributes=n(159),t.handleDefaults=n(100),t.calc=n(154),t.hasColorscale=n(39),t.isValidScale=n(99),t.getScale=n(165),t.flipScale=n(98),t.extractScale=n(290),t.makeColorScaleFunc=n(289)},function(e,t,n){"use strict";e.exports={zauto:{valType:"boolean",role:"info",dflt:!0,description:["Determines the whether or not the color domain is computed","with respect to the input data."].join(" ")},zmin:{valType:"number",role:"info",dflt:null,description:"Sets the lower bound of color domain."},zmax:{valType:"number",role:"info",dflt:null,description:"Sets the upper bound of color domain."},colorscale:{valType:"colorscale",role:"style",description:["Sets the colorscale.","The colorscale must be an array containing","arrays mapping a normalized value to an","rgb, rgba, hex, hsl, hsv, or named color string.","At minimum, a mapping for the lowest (0) and highest (1)","values are required. For example,","`[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`.","To control the bounds of the colorscale in z space,","use zmin and zmax"].join(" ")},autocolorscale:{valType:"boolean",role:"style",dflt:!0,description:["Determines whether or not the colorscale is picked using the sign of","the input z values."].join(" ")},reversescale:{valType:"boolean",role:"style",dflt:!1,description:"Reverses the colorscale."},showscale:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not a colorbar is displayed for this trace."].join(" ")}}},function(e,t,n){"use strict";e.exports={_isLinkedToArray:"frames_entry",group:{valType:"string",role:"info",description:["An identifier that specifies the group to which the frame belongs,","used by animate to select a subset of frames."].join(" ")},name:{valType:"string",role:"info",description:"A label by which to identify the frame"},traces:{valType:"any",role:"info",description:["A list of trace indices that identify the respective traces in the","data attribute"].join(" ")},baseframe:{valType:"string",role:"info",description:["The name of the frame into which this frame's properties are merged","before applying. This is used to unify properties and avoid needing","to specify the same values for the same properties in multiple frames."].join(" ")},data:{valType:"any",role:"object",description:["A list of traces this frame modifies. The format is identical to the","normal trace definition."].join(" ")},layout:{valType:"any",role:"object",description:["Layout properties which this frame modifies. The format is identical","to the normal layout definition."].join(" ")}}},function(e,t,n){"use strict";t.init2dArray=function(e,t){for(var n=new Array(e),r=0;rt}function s(e,t){return e>=t}t.findBin=function(e,t,n){if(r(t.start))return n?Math.ceil((e-t.start)/t.size)-1:Math.floor((e-t.start)/t.size);var u,c,d=0,f=t.length,h=0;for(c=t[t.length-1]>=t[0]?n?a:l:n?s:o;d90&&i.log("Long binary search..."),d-1},t.sorterAsc=function(e,t){return e-t},t.sorterDes=function(e,t){return t-e},t.distinctVals=function(e){var n=e.slice();n.sort(t.sorterAsc);for(var r=n.length-1,i=n[r]-n[0]||1,a=i/(r||1)/1e4,l=[n[0]],o=0;on[o]+a&&(i=Math.min(i,n[o+1]-n[o]),l.push(n[o+1]));return{vals:l,minDiff:i}},t.roundUp=function(e,t,n){for(var r,i=0,a=t.length-1,l=0,o=n?0:1,s=n?1:0,u=n?Math.ceil:Math.floor;i1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{parent:document.head};return e.loaded[n]?Promise.resolve(n):new Promise(function(i,a){var l=document.createElement("script");t.defaults2(l,t.omit(r,["unload","parent"]),{type:"text/javascript"}),l.async=!1,l.src=n,r.crossorigin&&(l.crossOrigin=r.crossorigin),l.onload=function(){e.loaded[n]=1,i(n)},l.onerror=function(){return a(new Error(n))},r.parent.appendChild(l)})}},t={isUndefined:function(e){return void 0===e},pick:function(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n},omit:function(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n},omitBy:function(e,t){var n={};return Object.keys(e).forEach(function(r){t(e[r])||(n[r]=e[r])}),n},defaults2:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i0)){var h=function(e,t,n){for(var r=n.filter(function(n){return t[n].anchor===e._id}),i=0,a=0;a0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform","translate("+(a-.5*u.gripWidth)+","+t.currentValueTotalHeight+")")}}function M(e,t){return e.inputAreaStart+u.stepInset+(e.inputAreaLength-2*u.stepInset)*Math.min(1,Math.max(0,t))}function k(e,t){return Math.min(1,Math.max(0,(t-u.stepInset-e.inputAreaStart)/(e.inputAreaLength-2*u.stepInset-2*e.inputAreaStart)))}function K(e,t,n){var r=e.selectAll("rect."+u.railTouchRectClass).data([0]);r.enter().append("rect").classed(u.railTouchRectClass,!0).call(_,t,e,n).style("pointer-events","all"),r.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,u.tickOffset+n.ticklen+n.labelHeight)}).call(a.fill,n.bgcolor).attr("opacity",0),l.setTranslate(r,0,n.currentValueTotalHeight)}function x(e,t){var n=e.selectAll("rect."+u.railRectClass).data([0]);n.enter().append("rect").classed(u.railRectClass,!0);var r=t.inputAreaLength-2*u.railInset;n.attr({width:r,height:u.railWidth,rx:u.railRadius,ry:u.railRadius,"shape-rendering":"crispEdges"}).call(a.stroke,t.bordercolor).call(a.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),l.setTranslate(n,u.railInset,.5*(t.inputAreaWidth-u.railWidth)+t.currentValueTotalHeight)}e.exports=function(e){var t=e._fullLayout,n=function(e,t){for(var n=e[u.name],r=[],i=0;i0?[0]:[]);if(a.enter().append("g").classed(u.containerClassName,!0).style("cursor","ew-resize"),a.exit().remove(),a.exit().size()&&function(e){for(var t=e._fullLayout._pushmargin||{},n=Object.keys(t),r=0;r=n.steps.length&&(n.active=0);t.call(h,n).call(x,n).call(y,n).call(T,n).call(K,e,n).call(p,e,n),l.setTranslate(t,n.lx+n.pad.l,n.ly+n.pad.t),t.call(b,n,n.active/(n.steps.length-1),!1),t.call(h,n)}(e,r.select(this),t)}})}}},function(e,t,n){"use strict";var r=n(0),i=n(27),a=n(128),l=n(35).name,o=a.steps;function s(e,t,n){function i(n,i){return r.coerce(e,t,a,n,i)}i("visible",function(e,t){var n,i,a=e.steps||[],l=t.steps=[];function s(e,t){return r.coerce(n,i,o,e,t)}for(var u=0;u0)&&(i("active"),i("x"),i("y"),r.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("len"),i("lenmode"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),r.coerceFont(i,"font",n.font),i("currentvalue.visible")&&(i("currentvalue.xanchor"),i("currentvalue.prefix"),i("currentvalue.suffix"),i("currentvalue.offset"),r.coerceFont(i,"currentvalue.font",t.font)),i("transition.duration"),i("transition.easing"),i("bgcolor"),i("activebgcolor"),i("bordercolor"),i("borderwidth"),i("ticklen"),i("tickwidth"),i("tickcolor"),i("minorticklen"))}e.exports=function(e,t){i(e,t,{name:l,handleItemDefaults:s})}},function(e,t,n){"use strict";var r=n(35);e.exports={moduleType:"component",name:r.name,layoutAttributes:n(128),supplyLayoutDefaults:n(189),draw:n(188)}},function(e,t,n){"use strict";e.exports=o;var r=n(1),i=n(3),a=n(7),l=n(0);function o(e,t,n){this.gd=e,this.container=t,this.id=n,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}o.barWidth=2,o.barLength=20,o.barRadius=2,o.barPad=1,o.barColor="#808BA4",o.prototype.enable=function(e,t,n){var l=this.gd._fullLayout,s=l.width,u=l.height;this.position=e;var c,d,f,h,p=this.position.l,v=this.position.w,y=this.position.t,g=this.position.h,m=this.position.direction,_="down"===m,T="left"===m,b="up"===m,M=v,k=g;_||T||"right"===m||b||(this.position.direction="down",_=!0),_||b?(d=(c=p)+M,_?(f=y,k=(h=Math.min(f+k,u))-f):k=(h=y+k)-(f=Math.max(h-k,0))):(h=(f=y)+k,T?M=(d=p+M)-(c=Math.max(d-M,0)):(c=p,M=(d=Math.min(c+M,s))-c)),this._box={l:c,t:f,w:M,h:k};var K=v>M,x=o.barLength+2*o.barPad,C=o.barWidth+2*o.barPad,A=p,w=y+g;w+C>u&&(w=u-C);var L=this.container.selectAll("rect.scrollbar-horizontal").data(K?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-horizontal",!0).call(i.fill,o.barColor),K?(this.hbar=L.attr({rx:o.barRadius,ry:o.barRadius,x:A,y:w,width:x,height:C}),this._hbarXMin=A+x/2,this._hbarTranslateMax=M-x):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var D=g>k,B=o.barWidth+2*o.barPad,S=o.barLength+2*o.barPad,z=p+v,G=y;z+B>s&&(z=s-B);var W=this.container.selectAll("rect.scrollbar-vertical").data(D?[0]:[]);W.exit().on(".drag",null).remove(),W.enter().append("rect").classed("scrollbar-vertical",!0).call(i.fill,o.barColor),D?(this.vbar=W.attr({rx:o.barRadius,ry:o.barRadius,x:z,y:G,width:B,height:S}),this._vbarYMin=G+S/2,this._vbarTranslateMax=k-S):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var O=this.id,P=c-.5,R=D?d+B+.5:d+.5,E=f-.5,j=K?h+C+.5:h+.5,I=l._topdefs.selectAll("#"+O).data(K||D?[0]:[]);if(I.exit().remove(),I.enter().append("clipPath").attr("id",O).append("rect"),K||D?(this._clipRect=I.select("rect").attr({x:Math.floor(P),y:Math.floor(E),width:Math.ceil(R)-Math.floor(P),height:Math.ceil(j)-Math.floor(E)}),this.container.call(a.setClipUrl,O),this.bg.attr({x:p,y:y,width:v,height:g})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a.setClipUrl,null),delete this._clipRect),K||D){var N=r.behavior.drag().on("dragstart",function(){r.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(N);var F=r.behavior.drag().on("dragstart",function(){r.event.sourceEvent.preventDefault(),r.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));K&&this.hbar.on(".drag",null).call(F),D&&this.vbar.on(".drag",null).call(F)}this.setTranslate(t,n)},o.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},o.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=r.event.dx),this.vbar&&(t-=r.event.dy),this.setTranslate(e,t)},o.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=r.event.deltaY),this.vbar&&(t+=r.event.deltaY),this.setTranslate(e,t)},o.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var n=e+this._hbarXMin,i=n+this._hbarTranslateMax;e=(l.constrain(r.event.x,n,i)-n)/(i-n)*(this.position.w-this._box.w)}if(this.vbar){var a=t+this._vbarYMin,o=a+this._vbarTranslateMax;t=(l.constrain(r.event.y,a,o)-a)/(o-a)*(this.position.h-this._box.h)}this.setTranslate(e,t)},o.prototype.setTranslate=function(e,t){var n=this.position.w-this._box.w,r=this.position.h-this._box.h;if(e=l.constrain(e||0,0,n),t=l.constrain(t||0,0,r),this.translateX=e,this.translateY=t,this.container.call(a.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=e/n;this.hbar.call(a.setTranslate,e+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/r;this.vbar.call(a.setTranslate,e,t+o*this._vbarTranslateMax)}}},function(e,t,n){"use strict";var r=n(1),i=n(9),a=n(3),l=n(7),o=n(14),s=n(37),u=n(19).LINE_SPACING,c=n(80),d=n(191);function f(e){return e._index}function h(e,t){return+e.attr(c.menuIndexAttrName)===t._index}function p(e,t,n,r,i,a,l,o){t._input.active=t.active=l,"buttons"===t.type?y(e,r,null,null,t):"dropdown"===t.type&&(i.attr(c.menuIndexAttrName,"-1"),v(e,r,i,a,t),o||y(e,r,i,a,t))}function v(e,t,n,r,i){var a=t.selectAll("g."+c.headerClassName).data([0]);a.enter().append("g").classed(c.headerClassName,!0).style("pointer-events","all");var o=i.active,s=i.buttons[o]||c.blankHeaderOpts,u={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},d={width:i.headerWidth,height:i.headerHeight};a.call(g,i,s,e).call(K,i,u,d);var f=t.selectAll("text."+c.headerArrowClassName).data([0]);f.enter().append("text").classed(c.headerArrowClassName,!0).classed("user-select-none",!0).attr("text-anchor","end").call(l.font,i.font).text(c.arrowSymbol[i.direction]),f.attr({x:i.headerWidth-c.arrowOffsetX+i.pad.l,y:i.headerHeight/2+c.textOffsetY+i.pad.t}),a.on("click",function(){n.call(x),n.attr(c.menuIndexAttrName,h(n,i)?-1:String(i._index)),y(e,t,n,r,i)}),a.on("mouseover",function(){a.call(b)}),a.on("mouseout",function(){a.call(M,i)}),l.setTranslate(t,i.lx,i.ly)}function y(e,t,n,a,l){n||(n=t).attr("pointer-events","all");var o=function(e){return-1==+e.attr(c.menuIndexAttrName)}(n)&&"buttons"!==l.type?[]:l.buttons,s="dropdown"===l.type?c.dropdownButtonClassName:c.buttonClassName,u=n.selectAll("g."+s).data(o),d=u.enter().append("g").classed(s,!0),f=u.exit();"dropdown"===l.type?(d.attr("opacity","0").transition().attr("opacity","1"),f.transition().attr("opacity","0").remove()):f.remove();var h=0,v=0,y=-1!==["up","down"].indexOf(l.direction);"dropdown"===l.type&&(y?v=l.headerHeight+c.gapButtonHeader:h=l.headerWidth+c.gapButtonHeader),"dropdown"===l.type&&"up"===l.direction&&(v=-c.gapButtonHeader+c.gapButton-l.openHeight),"dropdown"===l.type&&"left"===l.direction&&(h=-c.gapButtonHeader+c.gapButton-l.openWidth);var m={x:l.lx+h+l.pad.l,y:l.ly+v+l.pad.t,yPad:c.gapButton,xPad:c.gapButton,index:0},_={l:m.x+l.borderwidth,t:m.y+l.borderwidth};u.each(function(o,s){var c=r.select(this);c.call(g,l,o,e).call(K,l,m),c.on("click",function(){r.event.defaultPrevented||(p(e,l,0,t,n,a,s),o.execute&&i.executeAPICommand(e,o.method,o.args),e.emit("plotly_buttonclicked",{menu:l,button:o,active:l.active}))}),c.on("mouseover",function(){c.call(b)}),c.on("mouseout",function(){c.call(M,l),u.call(T,l)})}),u.call(T,l),y?(_.w=Math.max(l.openWidth,l.headerWidth),_.h=m.y-_.t):(_.w=m.x-_.l,_.h=Math.max(l.openHeight,l.headerHeight)),_.direction=l.direction,a&&(u.size()?function(e,t,n,r,i,a){var l,o,s,u=i.direction,d="up"===u||"down"===u,f=i.active;if(d)for(o=0,s=0;s0?[0]:[]);if(a.enter().append("g").classed(c.containerClassName,!0).style("cursor","pointer"),a.exit().remove(),a.exit().size()&&function(e){for(var t=e._fullLayout._pushmargin||{},n=Object.keys(t),r=0;r0)&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),r.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),r.coerceFont(i,"font",n.font),i("bgcolor",n.paper_bgcolor),i("bordercolor"),i("borderwidth"))}e.exports=function(e,t){i(e,t,{name:l,handleItemDefaults:s})}},function(e,t,n){"use strict";var r=n(80);e.exports={moduleType:"component",name:r.name,layoutAttributes:n(130),supplyLayoutDefaults:n(193),draw:n(192)}},function(e,t,n){"use strict";var r=n(2),i=n(105);e.exports=function(e,t,n,a){t=t||{};var l="log"===n&&"linear"===t.type,o="linear"===n&&"log"===t.type;if(l||o)for(var s,u,c=e._fullLayout.images,d=t._id.charAt(0),f=0;fh&&(h=d)));return h>=f?[f,h]:void 0}}e.exports=function(e){var t=e._fullLayout,n=r.filterVisible(t.shapes);if(n.length&&e._fullData.length)for(var l=0;lI&&r>N&&!e.shiftKey?s.getCursor(i/n,1-a/r):"move";u(t,l),j=l.split("-")[0]}function H(r,i){if("path"===n.type){var a=function(e){return R(O(e)+r)};G&&"date"===G.type&&(a=d.encodeDate(a));var s=function(e){return E(P(e)+i)};W&&"date"===W.type&&(s=d.encodeDate(s)),n.path=p(S,a,s),l[z]=n.path}else l[y]=n.x0=R(o+r),l[g]=n.y0=E(c+i),l[m]=n.x1=R(f+r),l[_]=n.y1=E(v+i);t.attr("d",h(e,n))}function q(r,i){if("path"===n.type){var a=function(e){return R(O(e)+r)};G&&"date"===G.type&&(a=d.encodeDate(a));var o=function(e){return E(P(e)+i)};W&&"date"===W.type&&(o=d.encodeDate(o)),n.path=p(S,a,o),l[z]=n.path}else{var s=~j.indexOf("n")?T+i:T,u=~j.indexOf("s")?b+i:b,c=~j.indexOf("w")?M+r:M,f=~j.indexOf("e")?k+r:k;u-s>N&&(l[K]=n[w]=E(s),l[x]=n[L]=E(u)),f-c>I&&(l[C]=n[D]=R(c),l[A]=n[B]=R(f))}t.attr("d",h(e,n))}s.init(F),t.node().onmousemove=V}(e,v,i,t)}}function h(e,t){var n,r,l,o,s=t.type,u=a.getFromId(e,t.xref),f=a.getFromId(e,t.yref),h=e._fullLayout._size;if(u?(n=d.shapePositionToRange(u),r=function(e){return u._offset+u.r2p(n(e,!0))}):r=function(e){return h.l+h.w*e},f?(l=d.shapePositionToRange(f),o=function(e){return f._offset+f.r2p(l(e,!0))}):o=function(e){return h.t+h.h*(1-e)},"path"===s)return u&&"date"===u.type&&(r=d.decodeDate(r)),f&&"date"===f.type&&(o=d.decodeDate(o)),function(e,t,n){return e.replace(c.segmentRE,function(e){var r=0,a=e.charAt(0),l=c.paramIsX[a],o=c.paramIsY[a],s=c.numParams[a],u=e.substr(1).replace(c.paramRE,function(e){return l[r]?e=t(e):o[r]&&(e=n(e)),++r>s&&(e="X"),e});return r>s&&(u=u.replace(/[\s,]*X.*/,""),i.log("Ignoring extra params in segment "+e)),a+u})}(t.path,r,o);var p=r(t.x0),v=r(t.x1),y=o(t.y0),g=o(t.y1);if("line"===s)return"M"+p+","+y+"L"+v+","+g;if("rect"===s)return"M"+p+","+y+"H"+v+"V"+g+"H"+p+"Z";var m=(p+v)/2,_=(y+g)/2,T=Math.abs(m-p),b=Math.abs(_-y),M="A"+T+","+b,k=m+T+","+_;return"M"+k+M+" 0 1,1 "+(m+","+(_-b))+M+" 0 0,1 "+k+"Z"}function p(e,t,n){return e.replace(c.segmentRE,function(e){var r=0,i=e.charAt(0),a=c.paramIsX[i],l=c.paramIsY[i],o=c.numParams[i];return i+e.substr(1).replace(c.paramRE,function(e){return r>=o?e:(a[r]?e=t(e):l[r]&&(e=n(e)),r++,e)})})}e.exports={draw:function(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeSubplotLayers.selectAll("path").remove();for(var n=0;n1){u=!0;break}}u?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+o+'"]').remove():(s.pdata=i(e.glplot.cameraParams,[t.xaxis.r2l(s.x)*n[0],t.yaxis.r2l(s.y)*n[1],t.zaxis.r2l(s.z)*n[2]]),r(e.graphDiv,s,o,e.id,s._xa,s._ya))}}},function(e,t,n){"use strict";var r=n(0),i=n(6);function a(e,t){var n=t.fullSceneLayout.domain,a=t.fullLayout._size,l={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},r.extendFlat(e._xa,l),i.setConvert(e._xa),e._xa._offset=a.l+n.x[0]*a.w,e._xa.l2p=function(){return.5*(1+e.pdata[0]/e.pdata[3])*a.w*(n.x[1]-n.x[0])},e._ya={},r.extendFlat(e._ya,l),i.setConvert(e._ya),e._ya._offset=a.t+(1-n.y[1])*a.h,e._ya.l2p=function(){return.5*(1-e.pdata[1]/e.pdata[3])*a.h*(n.y[1]-n.y[0])}}e.exports=function(e){for(var t=e.fullSceneLayout.annotations,n=0;n0||n.explicitOff.length>0},onClick:function(e,t){var n,a=i(e,t),l=a.on,o=a.off.concat(a.explicitOff),s={};if(!l.length&&!o.length)return;for(n=0;n=0,T=n.indexOf("end")>=0,b=d.backoff*y+u;if("line"===c.nodeName){f={x:+e.attr("x1"),y:+e.attr("y1")},h={x:+e.attr("x2"),y:+e.attr("y2")};var M=f.x-h.x,k=f.y-h.y;if(v=(p=Math.atan2(k,M))+Math.PI,b){if(b*b>M*M+k*k)return void S();var K=b*Math.cos(p),x=b*Math.sin(p);_&&(f.x-=K,f.y-=x,e.attr({x1:f.x,y1:f.y})),T&&(h.x+=K,h.y+=x,e.attr({x2:h.x,y2:h.y}))}}else if("path"===c.nodeName){var C=c.getTotalLength(),A="";if(C5&&(i=0),r.select(c.parentNode).append("path").attr({class:e.attr("class"),d:d.path,transform:"translate("+n.x+","+n.y+")rotate("+180*i/Math.PI+")scale("+y+")"}).style({fill:g,opacity:m,"stroke-width":0}))}_&&z(f,p),T&&z(h,v)}},function(e,t,n){"use strict";var r=n(83),i=n(213);e.exports={moduleType:"component",name:"annotations",layoutAttributes:n(36),supplyLayoutDefaults:n(212),calcAutorange:n(210),draw:r.draw,drawOne:r.drawOne,drawRaw:r.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:n(209)}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t,n){var i=n.marker.line.color;Array.isArray(i)&&(i=i[t.i]||r.defaultLine);var a=n.marker.line.width||0;Array.isArray(a)&&(a=a[t.i]||0),e.style({"stroke-width":a}).call(r.fill,t.color).call(r.stroke,i)}},function(e,t,n){"use strict";var r=n(4),i=n(84);e.exports=function(e,t){var n,a,l={},o=[],s=!1,u={},c=0;function d(e,n){if(""!==e&&i.isGrouped(t))-1===o.indexOf(e)?(o.push(e),s=!0,l[e]=[[n]]):l[e].push([n]);else{var r="~~i"+c;o.push(r),l[r]=[[n]],c++}}for(n=0;nT&&(r=Math.max(r-1,1)),1===r?n._clickTimeout=setTimeout(function(){k(e,t,r)},T):2===r&&(n._clickTimeout&&clearTimeout(n._clickTimeout),t._legendMouseDownTime=0,k(e,t,r))}})}function k(e,t,n){if(!t._dragged&&!t._editing){var r,l,s=t._fullLayout.hiddenlabels?t._fullLayout.hiddenlabels.slice():[],u=e.data()[0][0],c=t._fullData,d=u.trace,f=d.legendgroup,h=[];if(1===n&&_&&t.data&&t._context.showTips?(a.notifier("Double click on legend to isolate individual trace","long"),_=!1):_=!1,o.traceIs(d,"pie")){var p=u.label,v=s.indexOf(p);1===n?-1===v?s.push(p):s.splice(v,1):2===n&&(s=[],t.calcdata[0].forEach(function(e){p!==e.label&&s.push(e.label)}),t._fullLayout.hiddenlabels&&t._fullLayout.hiddenlabels.length===s.length&&-1===v&&(s=[])),i.relayout(t,"hiddenlabels",s)}else{var y,g=[],m=[];for(y=0;yi.width-(i.margin.r+i.margin.l)&&(_=0,v+=y,a.height=a.height+y,y=0),u.setTranslate(this,l+_,5+l+t.height/2+v),a.width+=r+n,a.height=Math.max(a.height,t.height),_+=r+n,y=Math.max(t.height,y)}),a.width+=2*l,a.height+=10+2*l,a.width=Math.ceil(a.width),a.height=Math.ceil(a.height),n.each(function(t){var n=t[0];r.select(this).select(".legendtoggle").call(u.setRect,0,-n.height/2,e._context.editable?0:a.width,n.height)})}}function x(e){var t=e._fullLayout.legend,n="left";m.isRightAnchor(t)?n="right":m.isCenterAnchor(t)&&(n="center");var r="top";m.isBottomAnchor(t)?r="bottom":m.isMiddleAnchor(t)&&(r="middle"),l.autoMargin(e,"legend",{x:t.x,y:t.y,l:t.width*({right:1,center:.5}[n]||0),r:t.width*({left:1,center:.5}[n]||0),b:t.height*({top:1,middle:.5}[r]||0),t:t.height*({bottom:1,middle:.5}[r]||0)})}e.exports=function(e){var t=e._fullLayout,n="legend"+t._uid;if(t._infolayer&&e.calcdata){e._legendMouseDownTime||(e._legendMouseDownTime=0);var d=t.legend,h=t.showlegend&&v(e.calcdata,d),p=t.hiddenlabels||[];if(!t.showlegend||!h.length)return t._infolayer.selectAll(".legend").remove(),t._topdefs.select("#"+n).remove(),void l.autoMargin(e,"legend");var g=t._infolayer.selectAll("g.legend").data([0]);g.enter().append("g").attr({class:"legend","pointer-events":"all"});var _=t._topdefs.selectAll("#"+n).data([0]);_.enter().append("clipPath").attr("id",n).append("rect");var C=g.selectAll("rect.bg").data([0]);C.enter().append("rect").attr({class:"bg","shape-rendering":"crispEdges"}),C.call(c.stroke,d.bordercolor),C.call(c.fill,d.bgcolor),C.style("stroke-width",d.borderwidth+"px");var A=g.selectAll("g.scrollbox").data([0]);A.enter().append("g").attr("class","scrollbox");var w=g.selectAll("rect.scrollbar").data([0]);w.enter().append("rect").attr({class:"scrollbar",rx:20,ry:2,width:0,height:0}).call(c.fill,"#808BA4");var L=A.selectAll("g.groups").data(h);L.enter().append("g").attr("class","groups"),L.exit().remove();var D=L.selectAll("g.traces").data(a.identity);D.enter().append("g").attr("class","traces"),D.exit().remove(),D.call(y,e).style("opacity",function(e){var t=e[0].trace;return o.traceIs(t,"pie")?-1!==p.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1}).each(function(){r.select(this).call(b,e).call(M,e)});var B=0!==g.enter().size();B&&(K(e,L,D),x(e));var S=t.width,z=t.height;K(e,L,D),d.height>z?function(e){var t=e._fullLayout.legend,n="left";m.isRightAnchor(t)?n="right":m.isCenterAnchor(t)&&(n="center");l.autoMargin(e,"legend",{x:t.x,y:.5,l:t.width*({right:1,center:.5}[n]||0),r:t.width*({left:1,center:.5}[n]||0),b:0,t:0})}(e):x(e);var G=t._size,W=G.l+G.w*d.x,O=G.t+G.h*(1-d.y);m.isRightAnchor(d)?W-=d.width:m.isCenterAnchor(d)&&(W-=d.width/2),m.isBottomAnchor(d)?O-=d.height:m.isMiddleAnchor(d)&&(O-=d.height/2);var P=d.width,R=G.w;P>R?(W=G.l,P=R):(W+P>S&&(W=S-P),W<0&&(W=0),P=Math.min(S-W,d.width));var E=d.height,j=G.h;E>j?(O=G.t,E=j):(O+E>z&&(O=z-E),O<0&&(O=0),E=Math.min(z-O,d.height)),u.setTranslate(g,W,O);var I,N,F,$,V,H,q=E-f.scrollBarHeight-2*f.scrollBarMargin,U=d.height-E;if(d.height<=E||e._context.staticPlot)C.attr({width:P-d.borderwidth,height:E-d.borderwidth,x:d.borderwidth/2,y:d.borderwidth/2}),u.setTranslate(A,0,0),_.select("rect").attr({width:P-2*d.borderwidth,height:E-2*d.borderwidth,x:d.borderwidth,y:d.borderwidth}),A.call(u.setClipUrl,n);else{I=f.scrollBarMargin,N=A.attr("data-scroll")||0,C.attr({width:P-2*d.borderwidth+f.scrollBarWidth+f.scrollBarMargin,height:E-d.borderwidth,x:d.borderwidth/2,y:d.borderwidth/2}),_.select("rect").attr({width:P-2*d.borderwidth+f.scrollBarWidth+f.scrollBarMargin,height:E-2*d.borderwidth,x:d.borderwidth,y:d.borderwidth-N}),A.call(u.setClipUrl,n),B&&X(I,N),g.on("wheel",null),g.on("wheel",function(){N=a.constrain(A.attr("data-scroll")-r.event.deltaY/q*U,-U,0),X(I=f.scrollBarMargin-N/U*q,N),0!==N&&N!==-U&&r.event.preventDefault()}),w.on(".drag",null),A.on(".drag",null);var Y=r.behavior.drag().on("drag",function(){I=a.constrain(r.event.y-f.scrollBarHeight/2,f.scrollBarMargin,f.scrollBarMargin+q),N=-(I-f.scrollBarMargin)/q*U,X(I,N)});w.call(Y),A.call(Y)}if(e._context.editable)g.classed("cursor-move",!0),s.init({element:g.node(),gd:e,prepFn:function(){var e=u.getTranslate(g);V=e.x,H=e.y},moveFn:function(e,t){var n=V+e,r=H+t;u.setTranslate(g,n,r),F=s.align(n,0,G.l,G.l+G.w,d.xanchor),$=s.align(r,0,G.t+G.h,G.t,d.yanchor)},doneFn:function(n,r,a){if(n&&void 0!==F&&void 0!==$)i.relayout(e,{"legend.x":F,"legend.y":$});else{var l=t._infolayer.selectAll("g.traces").filter(function(){var e=this.getBoundingClientRect();return a.clientX>=e.left&&a.clientX<=e.right&&a.clientY>=e.top&&a.clientY<=e.bottom});l.size()>0&&(1===r?g._clickTimeout=setTimeout(function(){k(l,e,r)},T):2===r&&(g._clickTimeout&&clearTimeout(g._clickTimeout),k(l,e,r)))}}})}function X(e,t){A.attr("data-scroll",t).call(u.setTranslate,0,t),w.call(u.setRect,P,e,f.scrollBarWidth,f.scrollBarHeight),_.select("rect").attr({y:d.borderwidth-t})}}},function(e,t,n){"use strict";var r=n(4),i=n(0),a=n(137),l=n(41),o=n(84);e.exports=function(e,t,n){for(var s,u,c,d,f=e.legend||{},h=t.legend={},p=0,v="normal",y=0;y1)){if(m("bgcolor",t.paper_bgcolor),m("bordercolor"),m("borderwidth"),i.coerceFont(m,"font",t.font),m("orientation"),"h"===h.orientation){var _=e.xaxis;_&&_.rangeslider&&_.rangeslider.visible?(s=0,c="left",u=1.1,d="bottom"):(s=0,c="left",u=-.1,d="top")}m("traceorder",v),o.isGrouped(t.legend)&&m("tracegroupgap"),m("x",s),m("xanchor",c),m("y",u),m("yanchor",d),i.noneOrAll(f,h,["x","y"])}}},function(e,t,n){"use strict";e.exports={moduleType:"component",name:"legend",layoutAttributes:n(137),supplyLayoutDefaults:n(220),draw:n(219),style:n(136)}},function(e,t,n){"use strict";var r=n(1),i=n(8),a=n(4),l=n(7),o=n(6),s=/((x|y)([2-9]|[1-9][0-9]+)?)axis$/;e.exports=function(e,t,n,u){var c=e._fullLayout,d=[];var f,h,p,v,y=function(e){var t,n,r,i,a={};for(t in e)if(n=t.split(".")[0].match(s)){var l=n[1],o=l+"axis";if(r=c[o],i={},Array.isArray(e[t])?i.to=e[t].slice(0):Array.isArray(e[t].range)&&(i.to=e[t].range.slice(0)),!i.to)continue;i.axisName=o,i.length=r._length,d.push(l),a[l]=i}return a}(t),g=Object.keys(y),m=function(e,t,n){var r,i,a,l=e._plots,o=[];for(r in l){var s=l[r];if(-1===o.indexOf(s)){var u=s.xaxis._id,c=s.yaxis._id,d=s.xaxis.range,f=s.yaxis.range;s.xaxis._r=s.xaxis.range.slice(),s.yaxis._r=s.yaxis.range.slice(),i=n[u]?n[u].to:d,a=n[c]?n[c].to:f,d[0]===i[0]&&d[1]===i[1]&&f[0]===a[0]&&f[1]===a[1]||-1===t.indexOf(u)&&-1===t.indexOf(c)||o.push(s)}}return o}(c,g,y);if(!m.length)return!1;function _(e){var t=e.xaxis,n=e.yaxis;c._defs.selectAll("#"+e.clipId).call(l.setTranslate,0,0).call(l.setScale,1,1),e.plot.call(l.setTranslate,t._offset,n._offset).call(l.setScale,1,1).select(".scatterlayer").selectAll(".points").selectAll(".point").call(l.setPointGroupScale,1,1),e.plot.select(".scatterlayer").selectAll(".points").selectAll(".textpoint").call(l.setTextPointsScale,1,1)}function T(t,n){var r,i,s,u=y[t.xaxis._id],d=y[t.yaxis._id],f=[];if(u){i=(r=e._fullLayout[u.axisName])._r,s=u.to,f[0]=(i[0]*(1-n)+n*s[0]-i[0])/(i[1]-i[0])*t.xaxis._length;var h=i[1]-i[0],p=s[1]-s[0];r.range[0]=i[0]*(1-n)+n*s[0],r.range[1]=i[1]*(1-n)+n*s[1],f[2]=t.xaxis._length*(1-n+n*p/h)}else f[0]=0,f[2]=t.xaxis._length;if(d){i=(r=e._fullLayout[d.axisName])._r,s=d.to,f[1]=(i[1]*(1-n)+n*s[1]-i[1])/(i[0]-i[1])*t.yaxis._length;var v=i[1]-i[0],g=s[1]-s[0];r.range[0]=i[0]*(1-n)+n*s[0],r.range[1]=i[1]*(1-n)+n*s[1],f[3]=t.yaxis._length*(1-n+n*g/v)}else f[1]=0,f[3]=t.yaxis._length;!function(t,n){var r,i=[];for(i=[t._id,n._id],r=0;rn.duration?(function(){for(var t={},n=0;nR!=(D=C[K][1])>=R&&(A=(w=C[K-1][0])+(C[K][0]-w)*(R-L)/(D-L),G=Math.min(G,A),W=Math.max(W,A));G=Math.max(G,0),W=Math.min(W,f._length);var E=o.defaultLine;return o.opacity(d.fillcolor)?E=d.fillcolor:o.opacity((d.line||{}).color)&&(E=d.line.color),r.extendFlat(e,{distance:s+10,x0:G,x1:W,y0:R,y1:R,color:E}),delete e.index,d.text&&!Array.isArray(d.text)?e.text=String(d.text):e.text=d.name,[e]}}}},function(e,t,n){"use strict";var r=n(1),i=n(7),a=n(30);e.exports=function(e){var t=r.select(e).selectAll("g.trace.scatter");t.style("opacity",function(e){return e[0].trace.opacity}),t.selectAll("g.points").each(function(t){var n=r.select(this),a=n.selectAll("path.point"),l=t.trace||t[0].trace;a.call(i.pointStyle,l,e),n.selectAll("text").call(i.textPointStyle,l,e)}),t.selectAll("g.trace path.js-line").call(i.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(i.fillGroupStyle),t.call(a.style)}},function(e,t,n){"use strict";var r=n(1),i=n(21),a=n(8),l=n(9),o=n(4),s=n(6),u=n(20),c=n(0),d=n(10).extendFlat,f=n(28),h=n(7),p=n(3),v=n(97),y=n(14),g=n(19).LINE_SPACING,m=n(150),_=n(148),T=n(23),b=n(102);e.exports=function(e,t){var n={};function M(){var b=e._fullLayout,K=b._size;if("function"==typeof n.fillcolor||"function"==typeof n.line.color){var x,C=r.extent(("function"==typeof n.fillcolor?n.fillcolor:n.line.color).domain()),A=[],w=[],L="function"==typeof n.line.color?n.line.color:function(){return n.line.color},D="function"==typeof n.fillcolor?n.fillcolor:function(){return n.fillcolor},B=n.levels.end+n.levels.size/100,S=n.levels.size,z=1.001*C[0]-.001*C[1],G=1.001*C[1]-.001*C[0];for(x=n.levels.start;(x-B)*S<0;x+=S)x>z&&xC[0]&&x1){var ne=Math.pow(10,Math.floor(Math.log(te)/Math.LN10));Q*=ne*c.roundUp(te/ne,[2,5,10]),(Math.abs(n.levels.start)/n.levels.size+1e-6)%1<2e-6&&(Z.tick0=0)}Z.dtick=Q}Z.domain=[q+$,q+I-$],Z.setScale();var re=b._infolayer.selectAll("g."+t).data([0]);re.enter().append("g").classed(t,!0).each(function(){var e=r.select(this);e.append("rect").classed("cbbg",!0),e.append("g").classed("cbfills",!0),e.append("g").classed("cblines",!0),e.append("g").classed("cbaxis",!0).classed("crisp",!0),e.append("g").classed("cbtitleunshift",!0).append("g").classed("cbtitle",!0),e.append("rect").classed("cboutline",!0),e.select(".cbtitle").datum(0)}),re.attr("transform","translate("+Math.round(K.l)+","+Math.round(K.t)+")");var ie=re.select(".cbtitleunshift").attr("transform","translate(-"+Math.round(K.l)+",-"+Math.round(K.t)+")");Z._axislayer=re.select(".cbaxis");var ae=0;if(-1!==["top","bottom"].indexOf(n.titleside)){var le,oe=K.l+(n.x+N)*K.w,se=Z.titlefont.size;le="top"===n.titleside?(1-(q+I-$))*K.h+K.t+3+.75*se:(1-(q+$))*K.h+K.t-3-.25*se,pe(Z._id+"title",{attributes:{x:oe,y:le,"text-anchor":"start"}})}var ue,ce,de,fe=c.syncOrAsync([l.previousPromises,function(){if(-1!==["top","bottom"].indexOf(n.titleside)){var t=re.select(".cbtitle"),a=t.select("text"),l=[-n.outlinewidth/2,n.outlinewidth/2],o=t.select(".h"+Z._id+"title-math-group").node(),u=15.6;if(a.node()&&(u=parseInt(a.style("font-size"),10)*g),o?(ae=h.bBox(o).height)>u&&(l[1]-=(ae-u)/2):a.node()&&!a.classed("js-placeholder")&&(ae=h.bBox(a.node()).height),ae){if(ae+=5,"top"===n.titleside)Z.domain[1]-=ae/K.h,l[1]*=-1;else{Z.domain[0]+=ae/K.h;var d=y.lineCount(a);l[1]+=(1-d)*u}t.attr("transform","translate("+l+")"),Z.setScale()}}re.selectAll(".cbfills,.cblines,.cbaxis").attr("transform","translate(0,"+Math.round(K.h*(1-Z.domain[1]))+")");var f=re.select(".cbfills").selectAll("rect.cbfill").data(w);f.enter().append("rect").classed("cbfill",!0).style("stroke","none"),f.exit().remove(),f.each(function(e,t){var n=[0===t?C[0]:(w[t]+w[t-1])/2,t===w.length-1?C[1]:(w[t]+w[t+1])/2].map(Z.c2p).map(Math.round);t!==w.length-1&&(n[1]+=n[1]>n[0]?1:-1);var a=D(e).replace("e-",""),l=i(a).toHexString();r.select(this).attr({x:V,width:Math.max(R,2),y:r.min(n),height:Math.max(r.max(n)-r.min(n),2),fill:l})});var p=re.select(".cblines").selectAll("path.cbline").data(n.line.color&&n.line.width?A:[]);return p.enter().append("path").classed("cbline",!0),p.exit().remove(),p.each(function(e){r.select(this).attr("d","M"+V+","+(Math.round(Z.c2p(e))+n.line.width/2%1)+"h"+R).call(h.lineGroupStyle,n.line.width,L(e),n.line.dash)}),Z._axislayer.selectAll("g."+Z._id+"tick,path").remove(),Z._pos=V+R+(n.outlinewidth||0)/2-("outside"===n.ticks?1:0),Z.side="right",c.syncOrAsync([function(){return s.doTicks(e,Z,!0)},function(){if(-1===["top","bottom"].indexOf(n.titleside)){var t=Z.titlefont.size,i=Z._offset+Z._length/2,a=K.l+(Z.position||0)*K.w+("right"===Z.side?10+t*(Z.showticklabels?1:.5):-10-t*(Z.showticklabels?.5:0));pe("h"+Z._id+"title",{avoid:{selection:r.select(e).selectAll("g."+Z._id+"tick"),side:n.titleside,offsetLeft:K.l,offsetTop:K.t,maxShift:b.width},attributes:{x:a,y:i,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}}])},l.previousPromises,function(){var r=R+n.outlinewidth/2+h.bBox(Z._axislayer.node()).width;if((W=ie.select("text")).node()&&!W.classed("js-placeholder")){var i,a=ie.select(".h"+Z._id+"title-math-group").node();i=a&&-1!==["top","bottom"].indexOf(n.titleside)?h.bBox(a).width:h.bBox(ie.node()).right-V-K.l,r=Math.max(r,i)}var o=2*n.xpad+r+n.borderwidth+n.outlinewidth/2,s=U-Y;re.select(".cbbg").attr({x:V-n.xpad-(n.borderwidth+n.outlinewidth)/2,y:Y-F,width:Math.max(o,2),height:Math.max(s+2*F,2)}).call(p.fill,n.bgcolor).call(p.stroke,n.bordercolor).style({"stroke-width":n.borderwidth}),re.selectAll(".cboutline").attr({x:V,y:Y+n.ypad+("top"===n.titleside?ae:0),width:Math.max(R,2),height:Math.max(s-2*n.ypad-ae,2)}).call(p.stroke,n.outlinecolor).style({fill:"None","stroke-width":n.outlinewidth});var u=({center:.5,right:1}[n.xanchor]||0)*o;re.attr("transform","translate("+(K.l-u)+","+K.t+")"),l.autoMargin(e,t,{x:n.x,y:n.y,l:o*({right:1,center:.5}[n.xanchor]||0),r:o*({left:1,center:.5}[n.xanchor]||0),t:s*({bottom:1,middle:.5}[n.yanchor]||0),b:s*({top:1,middle:.5}[n.yanchor]||0)})}],e);if(fe&&fe.then&&(e._promises||[]).push(fe),e._context.editable)u.init({element:re.node(),gd:e,prepFn:function(){ue=re.attr("transform"),f(re)},moveFn:function(e,t){re.attr("transform",ue+" translate("+e+","+t+")"),ce=u.align(H+e/K.w,E,0,1,n.xanchor),de=u.align(q-t/K.h,I,0,1,n.yanchor);var r=u.getCursor(ce,de,n.xanchor,n.yanchor);f(re,r)},doneFn:function(t){f(re),t&&void 0!==ce&&void 0!==de&&a.restyle(e,{"colorbar.x":ce,"colorbar.y":de},k().index)}});return fe}function he(e,t){return c.coerce(X,Z,T,e,t)}function pe(t,n){var r,i=k();r=o.traceIs(i,"markerColorscale")?"marker.colorbar.title":"colorbar.title";var a={propContainer:Z,propName:r,traceIndex:i.index,dfltName:"colorscale",containerGroup:re.select(".cbtitle")},l="h"===t.charAt(0)?t.substr(1):"h"+t;re.selectAll("."+l+",."+l+"-math-group").remove(),v.draw(e,t,d(a,n||{}))}b._infolayer.selectAll("g."+t).remove()}function k(){var n,r,i=t.substr(2);for(n=0;nG(s))break;a=s,(v=f[0]*d[0]+f[1]*d[1])>h?(h=v,l=s,c=!1):v=e.length||!s)break;B[S++]=s,i=s}}else B[S++]=l}L.push(B.slice(0,S))}return L}},function(e,t,n){"use strict";var r=n(1),i=n(0),a=n(7),l=n(30),o=n(13),s=n(231),u=n(230),c=n(141).tester;function d(e,t,n,u,d,f,h){var p,v;!function(e,t,n,a,l){var s=n.xaxis,u=n.yaxis,c=r.extent(i.simpleMap(s.range,s.r2c)),d=r.extent(i.simpleMap(u.range,u.r2c)),f=a[0].trace;if(!o.hasMarkers(f))return;var h=f.marker.maxdisplayed;if(0===h)return;var p=a.filter(function(e){return e.x>=c[0]&&e.x<=c[1]&&e.y>=d[0]&&e.y<=d[1]}),v=Math.ceil(p.length/h),y=0;l.forEach(function(e,n){var r=e[0].trace;o.hasMarkers(r)&&r.marker.maxdisplayed>0&&n0;function g(e){return y?e.transition():e}var m=n.xaxis,_=n.yaxis,T=u[0].trace,b=T.line,M=r.select(f);if(M.call(l.plot,n,h),!0===T.visible){var k,K;g(M).style("opacity",T.opacity);var x=T.fill.charAt(T.fill.length-1);"x"!==x&&"y"!==x&&(x=""),u[0].node3=M;var C="",A=[],w=T._prevtrace;w&&(C=w._prevRevpath||"",K=w._nextFill,A=w._polygons);var L,D,B,S,z,G,W,O,P,R="",E="",j=[],I=[],N=i.noop;if(k=T._ownFill,o.hasLines(T)||"none"!==T.fill){for(K&&K.datum(u),-1!==["hv","vh","hvh","vhv"].indexOf(b.shape)?(B=a.steps(b.shape),S=a.steps(b.shape.split("").reverse().join(""))):B=S="spline"===b.shape?function(e){var t=e[e.length-1];return e[0][0]===t[0]&&e[0][1]===t[1]?a.smoothclosed(e.slice(1),b.smoothing):a.smoothopen(e,b.smoothing)}:function(e){return"M"+e.join("L")},z=function(e){return S(e.reverse())},j=s(u,{xaxis:m,yaxis:_,connectGaps:T.connectgaps,baseTolerance:Math.max(b.width||1,3)/4,linear:"linear"===b.shape,simplify:b.simplify}),P=T._polygons=new Array(j.length),v=0;v1}),N=function(e){return function(t){if(L=B(t),D=z(t),R?x?(R+="L"+L.substr(1),E=D+"L"+E.substr(1)):(R+="Z"+L,E=D+"Z"+E):(R=L,E=D),o.hasLines(T)&&t.length>1){var n=r.select(this);if(n.datum(u),e)g(n.style("opacity",0).attr("d",L).call(a.lineGroupStyle)).style("opacity",1);else{var i=g(n);i.attr("d",L),a.singleLineStyle(u,i)}}}}}var F=M.selectAll(".js-line").data(I);g(F.exit()).style("opacity",0).remove(),F.each(N(!1)),F.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(a.lineGroupStyle).each(N(!0)),j.length&&(k?G&&O&&(x?("y"===x?G[1]=O[1]=_.c2p(0,!0):"x"===x&&(G[0]=O[0]=m.c2p(0,!0)),g(k).attr("d","M"+O+"L"+G+"L"+R.substr(1)).call(a.singleFillStyle)):g(k).attr("d",R+"Z").call(a.singleFillStyle)):"tonext"===T.fill.substr(0,6)&&R&&C&&("tonext"===T.fill?g(K).attr("d",R+"Z"+C+"Z").call(a.singleFillStyle):g(K).attr("d",R+"L"+C.substr(1)+"Z").call(a.singleFillStyle),T._polygons=T._polygons.concat(A)),T._prevRevpath=E,T._prevPolygons=P);var $=M.selectAll(".points");p=$.data([u]),$.each(Y),p.enter().append("g").classed("points",!0).each(Y),p.exit().remove()}function V(e){return e.filter(function(e){return e.vis})}function H(e){return e.id}function q(e){if(e.ids)return H}function U(){return!1}function Y(t){var n,l=t[0].trace,s=r.select(this),u=o.hasMarkers(l),c=o.hasText(l),d=q(l),f=U,h=U;u&&(f=l.marker.maxdisplayed||l._needsCull?V:i.identity),c&&(h=l.marker.maxdisplayed||l._needsCull?V:i.identity);var p=(n=s.selectAll("path.point").data(f,d)).enter().append("path").classed("point",!0);y&&p.call(a.pointStyle,l,e).call(a.translatePoints,m,_,l).style("opacity",0).transition().style("opacity",1);var v=u&&a.tryColorscale(l.marker,""),T=u&&a.tryColorscale(l.marker,"line");n.order(),n.each(function(t){var n=r.select(this),i=g(n);a.translatePoint(t,i,m,_)?(a.singlePointStyle(t,i,l,v,T,e),l.customdata&&n.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):i.remove()}),y?n.exit().transition().style("opacity",0).remove():n.exit().remove(),(n=s.selectAll("g").data(h,d)).enter().append("g").classed("textpoint",!0).append("text"),n.order(),n.each(function(e){var t=r.select(this),n=g(t.select("text"));a.translatePoint(e,n,m,_)||t.remove()}),n.selectAll("text").call(a.textPointStyle,l,e).each(function(e){var t=e.xp||m.c2p(e.x),n=e.yp||_.c2p(e.y);r.select(this).selectAll("tspan.line").each(function(){g(r.select(this)).attr({x:t,y:n})})}),n.exit().remove()}}e.exports=function(e,t,n,i,a){var l,o,s,c,f=t.plot.select("g.scatterlayer"),h=!i,p=!!i&&i.duration>0;for((s=f.selectAll("g.trace").data(n,function(e){return e[0].trace.uid})).enter().append("g").attr("class",function(e){return"trace scatter trace"+e[0].trace.uid}).style("stroke-miterlimit",2),u(e,t,n),function(e,t){var n;t.selectAll("g.trace").each(function(e){var t=r.select(this);if((n=e[0].trace)._nexttrace){if(n._nextFill=t.select(".js-fill.js-tonext"),!n._nextFill.size()){var i=":first-child";t.select(".js-fill.js-tozero").size()&&(i+=" + *"),n._nextFill=t.insert("path",i).attr("class","js-fill js-tonext")}}else t.selectAll(".js-fill.js-tonext").remove(),n._nextFill=null;n.fill&&("tozero"===n.fill.substr(0,6)||"toself"===n.fill||"to"===n.fill.substr(0,2)&&!n._prevtrace)?(n._ownFill=t.select(".js-fill.js-tozero"),n._ownFill.size()||(n._ownFill=t.insert("path",":first-child").attr("class","js-fill js-tozero"))):(t.selectAll(".js-fill.js-tozero").remove(),n._ownFill=null)})}(0,f),l=0,o={};lo[t[0].trace.uid]?1:-1}),p)?(a&&(c=a()),r.transition().duration(i.duration).ease(i.easing).each("end",function(){c&&c()}).each("interrupt",function(){c&&c()}).each(function(){f.selectAll("g.trace").each(function(r,a){d(e,a,t,r,n,this,i)})})):f.selectAll("g.trace").each(function(r,a){d(e,a,t,r,n,this,i)});h&&s.exit().remove(),f.selectAll("path:not([d])").remove()}},function(e,t,n){"use strict";var r=n(39),i=n(154),a=n(13);e.exports=function(e){a.hasLines(e)&&r(e,"line")&&i(e,e.line.color,"line","c"),a.hasMarkers(e)&&(r(e,"marker")&&i(e,e.marker.color,"marker","c"),r(e,"marker.line")&&i(e,e.marker.line.color,"marker.line","c"))}},function(e,t,n){"use strict";var r=n(2),i=n(6),a=n(16).BADNUM,l=n(13),o=n(233),s=n(139);e.exports=function(e,t){var n,u,c=i.getFromId(e,t.xaxis||"x"),d=i.getFromId(e,t.yaxis||"y"),f=c.makeCalcdata(t,"x"),h=d.makeCalcdata(t,"y"),p=Math.min(f.length,h.length);c._minDtick=0,d._minDtick=0,f.length>p&&f.splice(p,f.length-p),h.length>p&&h.splice(p,h.length-p);var v={padded:!0},y={padded:!0};if(l.hasMarkers(t)){if(n=t.marker.size,Array.isArray(n)){var g={type:"linear"};i.setConvert(g),(n=g.makeCalcdata(t.marker,"size")).length>p&&n.splice(p,n.length-p)}var m,_=1.6*(t.marker.sizeref||1);m="area"===t.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/_),3)}:function(e){return Math.max((e||0)/_,3)},v.ppad=y.ppad=Array.isArray(n)?n.map(m):m(n)}o(t),!("tozerox"===t.fill||"tonextx"===t.fill&&e.firstscatter)||f[0]===f[p-1]&&h[0]===h[p-1]?t.error_y.visible||-1===["tonexty","tozeroy"].indexOf(t.fill)&&(l.hasMarkers(t)||l.hasText(t))||(v.padded=!1,v.ppad=0):v.tozero=!0,!("tozeroy"===t.fill||"tonexty"===t.fill&&e.firstscatter)||f[0]===f[p-1]&&h[0]===h[p-1]?-1!==["tonextx","tozerox"].indexOf(t.fill)&&(y.padded=!1):y.tozero=!0,i.expand(c,f,v),i.expand(d,h,y);var T=new Array(p);for(u=0;u=0;i--){var a=e[i];if("scatter"===a.type&&a.xaxis===n.xaxis&&a.yaxis===n.yaxis){a.opacity=void 0;break}}}}}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t,n,i){var a=!1;if(t.marker){var l=t.marker.color,o=(t.marker.line||{}).color;l&&!Array.isArray(l)?a=l:o&&!Array.isArray(o)&&(a=o)}i("fillcolor",r.addOpacity((t.line||{}).color||a||n,.5))}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n,i){i("textposition"),r.coerceFont(i,"textfont",n.font)}},function(e,t,n){"use strict";e.exports=function(e,t,n){"spline"===n("line.shape")&&n("line.smoothing")}},function(e,t,n){"use strict";var r=n(39),i=n(100);e.exports=function(e,t,n,a,l,o){var s=(e.marker||{}).color;(l("line.color",n),r(e,"line"))?i(e,t,a,l,{prefix:"line.",cLetter:"c"}):l("line.color",!Array.isArray(s)&&s||n);l("line.width"),(o||{}).noDash||l("line.dash")}},function(e,t,n){"use strict";var r=n(3),i=n(39),a=n(100),l=n(13);e.exports=function(e,t,n,o,s,u){var c=l.isBubble(e),d=(e.line||{}).color;(u=u||{},d&&(n=d),s("marker.symbol"),s("marker.opacity",c?.7:1),s("marker.size"),s("marker.color",n),i(e,"marker")&&a(e,t,o,s,{prefix:"marker.",cLetter:"c"}),u.noLine||(s("marker.line.color",d&&!Array.isArray(d)&&t.marker.color!==d?d:c?r.background:r.defaultLine),i(e,"marker.line")&&a(e,t,o,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",c?1:0)),c&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),u.gradient)&&("none"!==s("marker.gradient.type")&&s("marker.gradient.color"))}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t,n,i){var a,l=i("x"),o=i("y");if(r.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],n),l)o?((a=Math.min(l.length,o.length))1&&f.push(d("object","layout"))),i.supplyDefaults(h);for(var p=h._fullData,v=n.length,y=0;y1&&void 0!==arguments[1]?arguments[1]:{parent:document.head};return e.loaded[n]?Promise.resolve(n):new Promise(function(i,a){var l=document.createElement("script");t.defaults2(l,t.omit(r,["unload","parent"]),{type:"text/javascript"}),l.async=!1,l.src=n,r.crossorigin&&(l.crossOrigin=r.crossorigin),l.onload=function(){e.loaded[n]=1,i(n)},l.onerror=function(){return a(new Error(n))},r.parent.appendChild(l)})}},t={isUndefined:function(e){return void 0===e},pick:function(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n},omit:function(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n},omitBy:function(e,t){var n={};return Object.keys(e).forEach(function(r){t(e[r])||(n[r]=e[r])}),n},defaults2:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i0)){var h=function(e,t,n){for(var r=n.filter(function(n){return t[n].anchor===e._id}),i=0,a=0;a0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform","translate("+(a-.5*u.gripWidth)+","+t.currentValueTotalHeight+")")}}function M(e,t){return e.inputAreaStart+u.stepInset+(e.inputAreaLength-2*u.stepInset)*Math.min(1,Math.max(0,t))}function k(e,t){return Math.min(1,Math.max(0,(t-u.stepInset-e.inputAreaStart)/(e.inputAreaLength-2*u.stepInset-2*e.inputAreaStart)))}function K(e,t,n){var r=e.selectAll("rect."+u.railTouchRectClass).data([0]);r.enter().append("rect").classed(u.railTouchRectClass,!0).call(_,t,e,n).style("pointer-events","all"),r.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,u.tickOffset+n.ticklen+n.labelHeight)}).call(a.fill,n.bgcolor).attr("opacity",0),l.setTranslate(r,0,n.currentValueTotalHeight)}function x(e,t){var n=e.selectAll("rect."+u.railRectClass).data([0]);n.enter().append("rect").classed(u.railRectClass,!0);var r=t.inputAreaLength-2*u.railInset;n.attr({width:r,height:u.railWidth,rx:u.railRadius,ry:u.railRadius,"shape-rendering":"crispEdges"}).call(a.stroke,t.bordercolor).call(a.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),l.setTranslate(n,u.railInset,.5*(t.inputAreaWidth-u.railWidth)+t.currentValueTotalHeight)}e.exports=function(e){var t=e._fullLayout,n=function(e,t){for(var n=e[u.name],r=[],i=0;i0?[0]:[]);if(a.enter().append("g").classed(u.containerClassName,!0).style("cursor","ew-resize"),a.exit().remove(),a.exit().size()&&function(e){for(var t=e._fullLayout._pushmargin||{},n=Object.keys(t),r=0;r=n.steps.length&&(n.active=0);t.call(h,n).call(x,n).call(y,n).call(T,n).call(K,e,n).call(p,e,n),l.setTranslate(t,n.lx+n.pad.l,n.ly+n.pad.t),t.call(b,n,n.active/(n.steps.length-1),!1),t.call(h,n)}(e,r.select(this),t)}})}}},function(e,t,n){"use strict";var r=n(0),i=n(27),a=n(128),l=n(35).name,o=a.steps;function s(e,t,n){function i(n,i){return r.coerce(e,t,a,n,i)}i("visible",function(e,t){var n,i,a=e.steps||[],l=t.steps=[];function s(e,t){return r.coerce(n,i,o,e,t)}for(var u=0;u0)&&(i("active"),i("x"),i("y"),r.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("len"),i("lenmode"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),r.coerceFont(i,"font",n.font),i("currentvalue.visible")&&(i("currentvalue.xanchor"),i("currentvalue.prefix"),i("currentvalue.suffix"),i("currentvalue.offset"),r.coerceFont(i,"currentvalue.font",t.font)),i("transition.duration"),i("transition.easing"),i("bgcolor"),i("activebgcolor"),i("bordercolor"),i("borderwidth"),i("ticklen"),i("tickwidth"),i("tickcolor"),i("minorticklen"))}e.exports=function(e,t){i(e,t,{name:l,handleItemDefaults:s})}},function(e,t,n){"use strict";var r=n(35);e.exports={moduleType:"component",name:r.name,layoutAttributes:n(128),supplyLayoutDefaults:n(189),draw:n(188)}},function(e,t,n){"use strict";e.exports=o;var r=n(1),i=n(3),a=n(7),l=n(0);function o(e,t,n){this.gd=e,this.container=t,this.id=n,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}o.barWidth=2,o.barLength=20,o.barRadius=2,o.barPad=1,o.barColor="#808BA4",o.prototype.enable=function(e,t,n){var l=this.gd._fullLayout,s=l.width,u=l.height;this.position=e;var c,d,f,h,p=this.position.l,v=this.position.w,y=this.position.t,g=this.position.h,m=this.position.direction,_="down"===m,T="left"===m,b="up"===m,M=v,k=g;_||T||"right"===m||b||(this.position.direction="down",_=!0),_||b?(d=(c=p)+M,_?(f=y,k=(h=Math.min(f+k,u))-f):k=(h=y+k)-(f=Math.max(h-k,0))):(h=(f=y)+k,T?M=(d=p+M)-(c=Math.max(d-M,0)):(c=p,M=(d=Math.min(c+M,s))-c)),this._box={l:c,t:f,w:M,h:k};var K=v>M,x=o.barLength+2*o.barPad,C=o.barWidth+2*o.barPad,A=p,w=y+g;w+C>u&&(w=u-C);var L=this.container.selectAll("rect.scrollbar-horizontal").data(K?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-horizontal",!0).call(i.fill,o.barColor),K?(this.hbar=L.attr({rx:o.barRadius,ry:o.barRadius,x:A,y:w,width:x,height:C}),this._hbarXMin=A+x/2,this._hbarTranslateMax=M-x):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var D=g>k,B=o.barWidth+2*o.barPad,S=o.barLength+2*o.barPad,z=p+v,G=y;z+B>s&&(z=s-B);var W=this.container.selectAll("rect.scrollbar-vertical").data(D?[0]:[]);W.exit().on(".drag",null).remove(),W.enter().append("rect").classed("scrollbar-vertical",!0).call(i.fill,o.barColor),D?(this.vbar=W.attr({rx:o.barRadius,ry:o.barRadius,x:z,y:G,width:B,height:S}),this._vbarYMin=G+S/2,this._vbarTranslateMax=k-S):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var O=this.id,P=c-.5,R=D?d+B+.5:d+.5,j=f-.5,E=K?h+C+.5:h+.5,I=l._topdefs.selectAll("#"+O).data(K||D?[0]:[]);if(I.exit().remove(),I.enter().append("clipPath").attr("id",O).append("rect"),K||D?(this._clipRect=I.select("rect").attr({x:Math.floor(P),y:Math.floor(j),width:Math.ceil(R)-Math.floor(P),height:Math.ceil(E)-Math.floor(j)}),this.container.call(a.setClipUrl,O),this.bg.attr({x:p,y:y,width:v,height:g})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a.setClipUrl,null),delete this._clipRect),K||D){var N=r.behavior.drag().on("dragstart",function(){r.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(N);var F=r.behavior.drag().on("dragstart",function(){r.event.sourceEvent.preventDefault(),r.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));K&&this.hbar.on(".drag",null).call(F),D&&this.vbar.on(".drag",null).call(F)}this.setTranslate(t,n)},o.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},o.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=r.event.dx),this.vbar&&(t-=r.event.dy),this.setTranslate(e,t)},o.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=r.event.deltaY),this.vbar&&(t+=r.event.deltaY),this.setTranslate(e,t)},o.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var n=e+this._hbarXMin,i=n+this._hbarTranslateMax;e=(l.constrain(r.event.x,n,i)-n)/(i-n)*(this.position.w-this._box.w)}if(this.vbar){var a=t+this._vbarYMin,o=a+this._vbarTranslateMax;t=(l.constrain(r.event.y,a,o)-a)/(o-a)*(this.position.h-this._box.h)}this.setTranslate(e,t)},o.prototype.setTranslate=function(e,t){var n=this.position.w-this._box.w,r=this.position.h-this._box.h;if(e=l.constrain(e||0,0,n),t=l.constrain(t||0,0,r),this.translateX=e,this.translateY=t,this.container.call(a.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=e/n;this.hbar.call(a.setTranslate,e+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/r;this.vbar.call(a.setTranslate,e,t+o*this._vbarTranslateMax)}}},function(e,t,n){"use strict";var r=n(1),i=n(9),a=n(3),l=n(7),o=n(14),s=n(37),u=n(19).LINE_SPACING,c=n(80),d=n(191);function f(e){return e._index}function h(e,t){return+e.attr(c.menuIndexAttrName)===t._index}function p(e,t,n,r,i,a,l,o){t._input.active=t.active=l,"buttons"===t.type?y(e,r,null,null,t):"dropdown"===t.type&&(i.attr(c.menuIndexAttrName,"-1"),v(e,r,i,a,t),o||y(e,r,i,a,t))}function v(e,t,n,r,i){var a=t.selectAll("g."+c.headerClassName).data([0]);a.enter().append("g").classed(c.headerClassName,!0).style("pointer-events","all");var o=i.active,s=i.buttons[o]||c.blankHeaderOpts,u={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},d={width:i.headerWidth,height:i.headerHeight};a.call(g,i,s,e).call(K,i,u,d);var f=t.selectAll("text."+c.headerArrowClassName).data([0]);f.enter().append("text").classed(c.headerArrowClassName,!0).classed("user-select-none",!0).attr("text-anchor","end").call(l.font,i.font).text(c.arrowSymbol[i.direction]),f.attr({x:i.headerWidth-c.arrowOffsetX+i.pad.l,y:i.headerHeight/2+c.textOffsetY+i.pad.t}),a.on("click",function(){n.call(x),n.attr(c.menuIndexAttrName,h(n,i)?-1:String(i._index)),y(e,t,n,r,i)}),a.on("mouseover",function(){a.call(b)}),a.on("mouseout",function(){a.call(M,i)}),l.setTranslate(t,i.lx,i.ly)}function y(e,t,n,a,l){n||(n=t).attr("pointer-events","all");var o=function(e){return-1==+e.attr(c.menuIndexAttrName)}(n)&&"buttons"!==l.type?[]:l.buttons,s="dropdown"===l.type?c.dropdownButtonClassName:c.buttonClassName,u=n.selectAll("g."+s).data(o),d=u.enter().append("g").classed(s,!0),f=u.exit();"dropdown"===l.type?(d.attr("opacity","0").transition().attr("opacity","1"),f.transition().attr("opacity","0").remove()):f.remove();var h=0,v=0,y=-1!==["up","down"].indexOf(l.direction);"dropdown"===l.type&&(y?v=l.headerHeight+c.gapButtonHeader:h=l.headerWidth+c.gapButtonHeader),"dropdown"===l.type&&"up"===l.direction&&(v=-c.gapButtonHeader+c.gapButton-l.openHeight),"dropdown"===l.type&&"left"===l.direction&&(h=-c.gapButtonHeader+c.gapButton-l.openWidth);var m={x:l.lx+h+l.pad.l,y:l.ly+v+l.pad.t,yPad:c.gapButton,xPad:c.gapButton,index:0},_={l:m.x+l.borderwidth,t:m.y+l.borderwidth};u.each(function(o,s){var c=r.select(this);c.call(g,l,o,e).call(K,l,m),c.on("click",function(){r.event.defaultPrevented||(p(e,l,0,t,n,a,s),o.execute&&i.executeAPICommand(e,o.method,o.args),e.emit("plotly_buttonclicked",{menu:l,button:o,active:l.active}))}),c.on("mouseover",function(){c.call(b)}),c.on("mouseout",function(){c.call(M,l),u.call(T,l)})}),u.call(T,l),y?(_.w=Math.max(l.openWidth,l.headerWidth),_.h=m.y-_.t):(_.w=m.x-_.l,_.h=Math.max(l.openHeight,l.headerHeight)),_.direction=l.direction,a&&(u.size()?function(e,t,n,r,i,a){var l,o,s,u=i.direction,d="up"===u||"down"===u,f=i.active;if(d)for(o=0,s=0;s0?[0]:[]);if(a.enter().append("g").classed(c.containerClassName,!0).style("cursor","pointer"),a.exit().remove(),a.exit().size()&&function(e){for(var t=e._fullLayout._pushmargin||{},n=Object.keys(t),r=0;r0)&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),r.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),r.coerceFont(i,"font",n.font),i("bgcolor",n.paper_bgcolor),i("bordercolor"),i("borderwidth"))}e.exports=function(e,t){i(e,t,{name:l,handleItemDefaults:s})}},function(e,t,n){"use strict";var r=n(80);e.exports={moduleType:"component",name:r.name,layoutAttributes:n(130),supplyLayoutDefaults:n(193),draw:n(192)}},function(e,t,n){"use strict";var r=n(2),i=n(105);e.exports=function(e,t,n,a){t=t||{};var l="log"===n&&"linear"===t.type,o="linear"===n&&"log"===t.type;if(l||o)for(var s,u,c=e._fullLayout.images,d=t._id.charAt(0),f=0;fh&&(h=d)));return h>=f?[f,h]:void 0}}e.exports=function(e){var t=e._fullLayout,n=r.filterVisible(t.shapes);if(n.length&&e._fullData.length)for(var l=0;lI&&r>N&&!e.shiftKey?s.getCursor(i/n,1-a/r):"move";u(t,l),E=l.split("-")[0]}function H(r,i){if("path"===n.type){var a=function(e){return R(O(e)+r)};G&&"date"===G.type&&(a=d.encodeDate(a));var s=function(e){return j(P(e)+i)};W&&"date"===W.type&&(s=d.encodeDate(s)),n.path=p(S,a,s),l[z]=n.path}else l[y]=n.x0=R(o+r),l[g]=n.y0=j(c+i),l[m]=n.x1=R(f+r),l[_]=n.y1=j(v+i);t.attr("d",h(e,n))}function q(r,i){if("path"===n.type){var a=function(e){return R(O(e)+r)};G&&"date"===G.type&&(a=d.encodeDate(a));var o=function(e){return j(P(e)+i)};W&&"date"===W.type&&(o=d.encodeDate(o)),n.path=p(S,a,o),l[z]=n.path}else{var s=~E.indexOf("n")?T+i:T,u=~E.indexOf("s")?b+i:b,c=~E.indexOf("w")?M+r:M,f=~E.indexOf("e")?k+r:k;u-s>N&&(l[K]=n[w]=j(s),l[x]=n[L]=j(u)),f-c>I&&(l[C]=n[D]=R(c),l[A]=n[B]=R(f))}t.attr("d",h(e,n))}s.init(F),t.node().onmousemove=V}(e,v,i,t)}}function h(e,t){var n,r,l,o,s=t.type,u=a.getFromId(e,t.xref),f=a.getFromId(e,t.yref),h=e._fullLayout._size;if(u?(n=d.shapePositionToRange(u),r=function(e){return u._offset+u.r2p(n(e,!0))}):r=function(e){return h.l+h.w*e},f?(l=d.shapePositionToRange(f),o=function(e){return f._offset+f.r2p(l(e,!0))}):o=function(e){return h.t+h.h*(1-e)},"path"===s)return u&&"date"===u.type&&(r=d.decodeDate(r)),f&&"date"===f.type&&(o=d.decodeDate(o)),function(e,t,n){return e.replace(c.segmentRE,function(e){var r=0,a=e.charAt(0),l=c.paramIsX[a],o=c.paramIsY[a],s=c.numParams[a],u=e.substr(1).replace(c.paramRE,function(e){return l[r]?e=t(e):o[r]&&(e=n(e)),++r>s&&(e="X"),e});return r>s&&(u=u.replace(/[\s,]*X.*/,""),i.log("Ignoring extra params in segment "+e)),a+u})}(t.path,r,o);var p=r(t.x0),v=r(t.x1),y=o(t.y0),g=o(t.y1);if("line"===s)return"M"+p+","+y+"L"+v+","+g;if("rect"===s)return"M"+p+","+y+"H"+v+"V"+g+"H"+p+"Z";var m=(p+v)/2,_=(y+g)/2,T=Math.abs(m-p),b=Math.abs(_-y),M="A"+T+","+b,k=m+T+","+_;return"M"+k+M+" 0 1,1 "+(m+","+(_-b))+M+" 0 0,1 "+k+"Z"}function p(e,t,n){return e.replace(c.segmentRE,function(e){var r=0,i=e.charAt(0),a=c.paramIsX[i],l=c.paramIsY[i],o=c.numParams[i];return i+e.substr(1).replace(c.paramRE,function(e){return r>=o?e:(a[r]?e=t(e):l[r]&&(e=n(e)),r++,e)})})}e.exports={draw:function(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeSubplotLayers.selectAll("path").remove();for(var n=0;n1){u=!0;break}}u?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+o+'"]').remove():(s.pdata=i(e.glplot.cameraParams,[t.xaxis.r2l(s.x)*n[0],t.yaxis.r2l(s.y)*n[1],t.zaxis.r2l(s.z)*n[2]]),r(e.graphDiv,s,o,e.id,s._xa,s._ya))}}},function(e,t,n){"use strict";var r=n(0),i=n(6);function a(e,t){var n=t.fullSceneLayout.domain,a=t.fullLayout._size,l={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},r.extendFlat(e._xa,l),i.setConvert(e._xa),e._xa._offset=a.l+n.x[0]*a.w,e._xa.l2p=function(){return.5*(1+e.pdata[0]/e.pdata[3])*a.w*(n.x[1]-n.x[0])},e._ya={},r.extendFlat(e._ya,l),i.setConvert(e._ya),e._ya._offset=a.t+(1-n.y[1])*a.h,e._ya.l2p=function(){return.5*(1-e.pdata[1]/e.pdata[3])*a.h*(n.y[1]-n.y[0])}}e.exports=function(e){for(var t=e.fullSceneLayout.annotations,n=0;n0||n.explicitOff.length>0},onClick:function(e,t){var n,a=i(e,t),l=a.on,o=a.off.concat(a.explicitOff),s={};if(!l.length&&!o.length)return;for(n=0;n=0,T=n.indexOf("end")>=0,b=d.backoff*y+u;if("line"===c.nodeName){f={x:+e.attr("x1"),y:+e.attr("y1")},h={x:+e.attr("x2"),y:+e.attr("y2")};var M=f.x-h.x,k=f.y-h.y;if(v=(p=Math.atan2(k,M))+Math.PI,b){if(b*b>M*M+k*k)return void S();var K=b*Math.cos(p),x=b*Math.sin(p);_&&(f.x-=K,f.y-=x,e.attr({x1:f.x,y1:f.y})),T&&(h.x+=K,h.y+=x,e.attr({x2:h.x,y2:h.y}))}}else if("path"===c.nodeName){var C=c.getTotalLength(),A="";if(C5&&(i=0),r.select(c.parentNode).append("path").attr({class:e.attr("class"),d:d.path,transform:"translate("+n.x+","+n.y+")rotate("+180*i/Math.PI+")scale("+y+")"}).style({fill:g,opacity:m,"stroke-width":0}))}_&&z(f,p),T&&z(h,v)}},function(e,t,n){"use strict";var r=n(83),i=n(213);e.exports={moduleType:"component",name:"annotations",layoutAttributes:n(36),supplyLayoutDefaults:n(212),calcAutorange:n(210),draw:r.draw,drawOne:r.drawOne,drawRaw:r.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:n(209)}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t,n){var i=n.marker.line.color;Array.isArray(i)&&(i=i[t.i]||r.defaultLine);var a=n.marker.line.width||0;Array.isArray(a)&&(a=a[t.i]||0),e.style({"stroke-width":a}).call(r.fill,t.color).call(r.stroke,i)}},function(e,t,n){"use strict";var r=n(4),i=n(84);e.exports=function(e,t){var n,a,l={},o=[],s=!1,u={},c=0;function d(e,n){if(""!==e&&i.isGrouped(t))-1===o.indexOf(e)?(o.push(e),s=!0,l[e]=[[n]]):l[e].push([n]);else{var r="~~i"+c;o.push(r),l[r]=[[n]],c++}}for(n=0;nT&&(r=Math.max(r-1,1)),1===r?n._clickTimeout=setTimeout(function(){k(e,t,r)},T):2===r&&(n._clickTimeout&&clearTimeout(n._clickTimeout),t._legendMouseDownTime=0,k(e,t,r))}})}function k(e,t,n){if(!t._dragged&&!t._editing){var r,l,s=t._fullLayout.hiddenlabels?t._fullLayout.hiddenlabels.slice():[],u=e.data()[0][0],c=t._fullData,d=u.trace,f=d.legendgroup,h=[];if(1===n&&_&&t.data&&t._context.showTips?(a.notifier("Double click on legend to isolate individual trace","long"),_=!1):_=!1,o.traceIs(d,"pie")){var p=u.label,v=s.indexOf(p);1===n?-1===v?s.push(p):s.splice(v,1):2===n&&(s=[],t.calcdata[0].forEach(function(e){p!==e.label&&s.push(e.label)}),t._fullLayout.hiddenlabels&&t._fullLayout.hiddenlabels.length===s.length&&-1===v&&(s=[])),i.relayout(t,"hiddenlabels",s)}else{var y,g=[],m=[];for(y=0;yi.width-(i.margin.r+i.margin.l)&&(_=0,v+=y,a.height=a.height+y,y=0),u.setTranslate(this,l+_,5+l+t.height/2+v),a.width+=r+n,a.height=Math.max(a.height,t.height),_+=r+n,y=Math.max(t.height,y)}),a.width+=2*l,a.height+=10+2*l,a.width=Math.ceil(a.width),a.height=Math.ceil(a.height),n.each(function(t){var n=t[0];r.select(this).select(".legendtoggle").call(u.setRect,0,-n.height/2,e._context.editable?0:a.width,n.height)})}}function x(e){var t=e._fullLayout.legend,n="left";m.isRightAnchor(t)?n="right":m.isCenterAnchor(t)&&(n="center");var r="top";m.isBottomAnchor(t)?r="bottom":m.isMiddleAnchor(t)&&(r="middle"),l.autoMargin(e,"legend",{x:t.x,y:t.y,l:t.width*({right:1,center:.5}[n]||0),r:t.width*({left:1,center:.5}[n]||0),b:t.height*({top:1,middle:.5}[r]||0),t:t.height*({bottom:1,middle:.5}[r]||0)})}e.exports=function(e){var t=e._fullLayout,n="legend"+t._uid;if(t._infolayer&&e.calcdata){e._legendMouseDownTime||(e._legendMouseDownTime=0);var d=t.legend,h=t.showlegend&&v(e.calcdata,d),p=t.hiddenlabels||[];if(!t.showlegend||!h.length)return t._infolayer.selectAll(".legend").remove(),t._topdefs.select("#"+n).remove(),void l.autoMargin(e,"legend");var g=t._infolayer.selectAll("g.legend").data([0]);g.enter().append("g").attr({class:"legend","pointer-events":"all"});var _=t._topdefs.selectAll("#"+n).data([0]);_.enter().append("clipPath").attr("id",n).append("rect");var C=g.selectAll("rect.bg").data([0]);C.enter().append("rect").attr({class:"bg","shape-rendering":"crispEdges"}),C.call(c.stroke,d.bordercolor),C.call(c.fill,d.bgcolor),C.style("stroke-width",d.borderwidth+"px");var A=g.selectAll("g.scrollbox").data([0]);A.enter().append("g").attr("class","scrollbox");var w=g.selectAll("rect.scrollbar").data([0]);w.enter().append("rect").attr({class:"scrollbar",rx:20,ry:2,width:0,height:0}).call(c.fill,"#808BA4");var L=A.selectAll("g.groups").data(h);L.enter().append("g").attr("class","groups"),L.exit().remove();var D=L.selectAll("g.traces").data(a.identity);D.enter().append("g").attr("class","traces"),D.exit().remove(),D.call(y,e).style("opacity",function(e){var t=e[0].trace;return o.traceIs(t,"pie")?-1!==p.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1}).each(function(){r.select(this).call(b,e).call(M,e)});var B=0!==g.enter().size();B&&(K(e,L,D),x(e));var S=t.width,z=t.height;K(e,L,D),d.height>z?function(e){var t=e._fullLayout.legend,n="left";m.isRightAnchor(t)?n="right":m.isCenterAnchor(t)&&(n="center");l.autoMargin(e,"legend",{x:t.x,y:.5,l:t.width*({right:1,center:.5}[n]||0),r:t.width*({left:1,center:.5}[n]||0),b:0,t:0})}(e):x(e);var G=t._size,W=G.l+G.w*d.x,O=G.t+G.h*(1-d.y);m.isRightAnchor(d)?W-=d.width:m.isCenterAnchor(d)&&(W-=d.width/2),m.isBottomAnchor(d)?O-=d.height:m.isMiddleAnchor(d)&&(O-=d.height/2);var P=d.width,R=G.w;P>R?(W=G.l,P=R):(W+P>S&&(W=S-P),W<0&&(W=0),P=Math.min(S-W,d.width));var j=d.height,E=G.h;j>E?(O=G.t,j=E):(O+j>z&&(O=z-j),O<0&&(O=0),j=Math.min(z-O,d.height)),u.setTranslate(g,W,O);var I,N,F,$,V,H,q=j-f.scrollBarHeight-2*f.scrollBarMargin,U=d.height-j;if(d.height<=j||e._context.staticPlot)C.attr({width:P-d.borderwidth,height:j-d.borderwidth,x:d.borderwidth/2,y:d.borderwidth/2}),u.setTranslate(A,0,0),_.select("rect").attr({width:P-2*d.borderwidth,height:j-2*d.borderwidth,x:d.borderwidth,y:d.borderwidth}),A.call(u.setClipUrl,n);else{I=f.scrollBarMargin,N=A.attr("data-scroll")||0,C.attr({width:P-2*d.borderwidth+f.scrollBarWidth+f.scrollBarMargin,height:j-d.borderwidth,x:d.borderwidth/2,y:d.borderwidth/2}),_.select("rect").attr({width:P-2*d.borderwidth+f.scrollBarWidth+f.scrollBarMargin,height:j-2*d.borderwidth,x:d.borderwidth,y:d.borderwidth-N}),A.call(u.setClipUrl,n),B&&X(I,N),g.on("wheel",null),g.on("wheel",function(){N=a.constrain(A.attr("data-scroll")-r.event.deltaY/q*U,-U,0),X(I=f.scrollBarMargin-N/U*q,N),0!==N&&N!==-U&&r.event.preventDefault()}),w.on(".drag",null),A.on(".drag",null);var Y=r.behavior.drag().on("drag",function(){I=a.constrain(r.event.y-f.scrollBarHeight/2,f.scrollBarMargin,f.scrollBarMargin+q),N=-(I-f.scrollBarMargin)/q*U,X(I,N)});w.call(Y),A.call(Y)}if(e._context.editable)g.classed("cursor-move",!0),s.init({element:g.node(),gd:e,prepFn:function(){var e=u.getTranslate(g);V=e.x,H=e.y},moveFn:function(e,t){var n=V+e,r=H+t;u.setTranslate(g,n,r),F=s.align(n,0,G.l,G.l+G.w,d.xanchor),$=s.align(r,0,G.t+G.h,G.t,d.yanchor)},doneFn:function(n,r,a){if(n&&void 0!==F&&void 0!==$)i.relayout(e,{"legend.x":F,"legend.y":$});else{var l=t._infolayer.selectAll("g.traces").filter(function(){var e=this.getBoundingClientRect();return a.clientX>=e.left&&a.clientX<=e.right&&a.clientY>=e.top&&a.clientY<=e.bottom});l.size()>0&&(1===r?g._clickTimeout=setTimeout(function(){k(l,e,r)},T):2===r&&(g._clickTimeout&&clearTimeout(g._clickTimeout),k(l,e,r)))}}})}function X(e,t){A.attr("data-scroll",t).call(u.setTranslate,0,t),w.call(u.setRect,P,e,f.scrollBarWidth,f.scrollBarHeight),_.select("rect").attr({y:d.borderwidth-t})}}},function(e,t,n){"use strict";var r=n(4),i=n(0),a=n(137),l=n(41),o=n(84);e.exports=function(e,t,n){for(var s,u,c,d,f=e.legend||{},h=t.legend={},p=0,v="normal",y=0;y1)){if(m("bgcolor",t.paper_bgcolor),m("bordercolor"),m("borderwidth"),i.coerceFont(m,"font",t.font),m("orientation"),"h"===h.orientation){var _=e.xaxis;_&&_.rangeslider&&_.rangeslider.visible?(s=0,c="left",u=1.1,d="bottom"):(s=0,c="left",u=-.1,d="top")}m("traceorder",v),o.isGrouped(t.legend)&&m("tracegroupgap"),m("x",s),m("xanchor",c),m("y",u),m("yanchor",d),i.noneOrAll(f,h,["x","y"])}}},function(e,t,n){"use strict";e.exports={moduleType:"component",name:"legend",layoutAttributes:n(137),supplyLayoutDefaults:n(220),draw:n(219),style:n(136)}},function(e,t,n){"use strict";var r=n(1),i=n(8),a=n(4),l=n(7),o=n(6),s=/((x|y)([2-9]|[1-9][0-9]+)?)axis$/;e.exports=function(e,t,n,u){var c=e._fullLayout,d=[];var f,h,p,v,y=function(e){var t,n,r,i,a={};for(t in e)if(n=t.split(".")[0].match(s)){var l=n[1],o=l+"axis";if(r=c[o],i={},Array.isArray(e[t])?i.to=e[t].slice(0):Array.isArray(e[t].range)&&(i.to=e[t].range.slice(0)),!i.to)continue;i.axisName=o,i.length=r._length,d.push(l),a[l]=i}return a}(t),g=Object.keys(y),m=function(e,t,n){var r,i,a,l=e._plots,o=[];for(r in l){var s=l[r];if(-1===o.indexOf(s)){var u=s.xaxis._id,c=s.yaxis._id,d=s.xaxis.range,f=s.yaxis.range;s.xaxis._r=s.xaxis.range.slice(),s.yaxis._r=s.yaxis.range.slice(),i=n[u]?n[u].to:d,a=n[c]?n[c].to:f,d[0]===i[0]&&d[1]===i[1]&&f[0]===a[0]&&f[1]===a[1]||-1===t.indexOf(u)&&-1===t.indexOf(c)||o.push(s)}}return o}(c,g,y);if(!m.length)return!1;function _(e){var t=e.xaxis,n=e.yaxis;c._defs.selectAll("#"+e.clipId).call(l.setTranslate,0,0).call(l.setScale,1,1),e.plot.call(l.setTranslate,t._offset,n._offset).call(l.setScale,1,1).select(".scatterlayer").selectAll(".points").selectAll(".point").call(l.setPointGroupScale,1,1),e.plot.select(".scatterlayer").selectAll(".points").selectAll(".textpoint").call(l.setTextPointsScale,1,1)}function T(t,n){var r,i,s,u=y[t.xaxis._id],d=y[t.yaxis._id],f=[];if(u){i=(r=e._fullLayout[u.axisName])._r,s=u.to,f[0]=(i[0]*(1-n)+n*s[0]-i[0])/(i[1]-i[0])*t.xaxis._length;var h=i[1]-i[0],p=s[1]-s[0];r.range[0]=i[0]*(1-n)+n*s[0],r.range[1]=i[1]*(1-n)+n*s[1],f[2]=t.xaxis._length*(1-n+n*p/h)}else f[0]=0,f[2]=t.xaxis._length;if(d){i=(r=e._fullLayout[d.axisName])._r,s=d.to,f[1]=(i[1]*(1-n)+n*s[1]-i[1])/(i[0]-i[1])*t.yaxis._length;var v=i[1]-i[0],g=s[1]-s[0];r.range[0]=i[0]*(1-n)+n*s[0],r.range[1]=i[1]*(1-n)+n*s[1],f[3]=t.yaxis._length*(1-n+n*g/v)}else f[1]=0,f[3]=t.yaxis._length;!function(t,n){var r,i=[];for(i=[t._id,n._id],r=0;rn.duration?(function(){for(var t={},n=0;nR!=(D=C[K][1])>=R&&(A=(w=C[K-1][0])+(C[K][0]-w)*(R-L)/(D-L),G=Math.min(G,A),W=Math.max(W,A));G=Math.max(G,0),W=Math.min(W,f._length);var j=o.defaultLine;return o.opacity(d.fillcolor)?j=d.fillcolor:o.opacity((d.line||{}).color)&&(j=d.line.color),r.extendFlat(e,{distance:s+10,x0:G,x1:W,y0:R,y1:R,color:j}),delete e.index,d.text&&!Array.isArray(d.text)?e.text=String(d.text):e.text=d.name,[e]}}}},function(e,t,n){"use strict";var r=n(1),i=n(7),a=n(30);e.exports=function(e){var t=r.select(e).selectAll("g.trace.scatter");t.style("opacity",function(e){return e[0].trace.opacity}),t.selectAll("g.points").each(function(t){var n=r.select(this),a=n.selectAll("path.point"),l=t.trace||t[0].trace;a.call(i.pointStyle,l,e),n.selectAll("text").call(i.textPointStyle,l,e)}),t.selectAll("g.trace path.js-line").call(i.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(i.fillGroupStyle),t.call(a.style)}},function(e,t,n){"use strict";var r=n(1),i=n(21),a=n(8),l=n(9),o=n(4),s=n(6),u=n(20),c=n(0),d=n(10).extendFlat,f=n(28),h=n(7),p=n(3),v=n(97),y=n(14),g=n(19).LINE_SPACING,m=n(150),_=n(148),T=n(23),b=n(102);e.exports=function(e,t){var n={};function M(){var b=e._fullLayout,K=b._size;if("function"==typeof n.fillcolor||"function"==typeof n.line.color){var x,C=r.extent(("function"==typeof n.fillcolor?n.fillcolor:n.line.color).domain()),A=[],w=[],L="function"==typeof n.line.color?n.line.color:function(){return n.line.color},D="function"==typeof n.fillcolor?n.fillcolor:function(){return n.fillcolor},B=n.levels.end+n.levels.size/100,S=n.levels.size,z=1.001*C[0]-.001*C[1],G=1.001*C[1]-.001*C[0];for(x=n.levels.start;(x-B)*S<0;x+=S)x>z&&xC[0]&&x1){var ne=Math.pow(10,Math.floor(Math.log(te)/Math.LN10));Q*=ne*c.roundUp(te/ne,[2,5,10]),(Math.abs(n.levels.start)/n.levels.size+1e-6)%1<2e-6&&(Z.tick0=0)}Z.dtick=Q}Z.domain=[q+$,q+I-$],Z.setScale();var re=b._infolayer.selectAll("g."+t).data([0]);re.enter().append("g").classed(t,!0).each(function(){var e=r.select(this);e.append("rect").classed("cbbg",!0),e.append("g").classed("cbfills",!0),e.append("g").classed("cblines",!0),e.append("g").classed("cbaxis",!0).classed("crisp",!0),e.append("g").classed("cbtitleunshift",!0).append("g").classed("cbtitle",!0),e.append("rect").classed("cboutline",!0),e.select(".cbtitle").datum(0)}),re.attr("transform","translate("+Math.round(K.l)+","+Math.round(K.t)+")");var ie=re.select(".cbtitleunshift").attr("transform","translate(-"+Math.round(K.l)+",-"+Math.round(K.t)+")");Z._axislayer=re.select(".cbaxis");var ae=0;if(-1!==["top","bottom"].indexOf(n.titleside)){var le,oe=K.l+(n.x+N)*K.w,se=Z.titlefont.size;le="top"===n.titleside?(1-(q+I-$))*K.h+K.t+3+.75*se:(1-(q+$))*K.h+K.t-3-.25*se,pe(Z._id+"title",{attributes:{x:oe,y:le,"text-anchor":"start"}})}var ue,ce,de,fe=c.syncOrAsync([l.previousPromises,function(){if(-1!==["top","bottom"].indexOf(n.titleside)){var t=re.select(".cbtitle"),a=t.select("text"),l=[-n.outlinewidth/2,n.outlinewidth/2],o=t.select(".h"+Z._id+"title-math-group").node(),u=15.6;if(a.node()&&(u=parseInt(a.style("font-size"),10)*g),o?(ae=h.bBox(o).height)>u&&(l[1]-=(ae-u)/2):a.node()&&!a.classed("js-placeholder")&&(ae=h.bBox(a.node()).height),ae){if(ae+=5,"top"===n.titleside)Z.domain[1]-=ae/K.h,l[1]*=-1;else{Z.domain[0]+=ae/K.h;var d=y.lineCount(a);l[1]+=(1-d)*u}t.attr("transform","translate("+l+")"),Z.setScale()}}re.selectAll(".cbfills,.cblines,.cbaxis").attr("transform","translate(0,"+Math.round(K.h*(1-Z.domain[1]))+")");var f=re.select(".cbfills").selectAll("rect.cbfill").data(w);f.enter().append("rect").classed("cbfill",!0).style("stroke","none"),f.exit().remove(),f.each(function(e,t){var n=[0===t?C[0]:(w[t]+w[t-1])/2,t===w.length-1?C[1]:(w[t]+w[t+1])/2].map(Z.c2p).map(Math.round);t!==w.length-1&&(n[1]+=n[1]>n[0]?1:-1);var a=D(e).replace("e-",""),l=i(a).toHexString();r.select(this).attr({x:V,width:Math.max(R,2),y:r.min(n),height:Math.max(r.max(n)-r.min(n),2),fill:l})});var p=re.select(".cblines").selectAll("path.cbline").data(n.line.color&&n.line.width?A:[]);return p.enter().append("path").classed("cbline",!0),p.exit().remove(),p.each(function(e){r.select(this).attr("d","M"+V+","+(Math.round(Z.c2p(e))+n.line.width/2%1)+"h"+R).call(h.lineGroupStyle,n.line.width,L(e),n.line.dash)}),Z._axislayer.selectAll("g."+Z._id+"tick,path").remove(),Z._pos=V+R+(n.outlinewidth||0)/2-("outside"===n.ticks?1:0),Z.side="right",c.syncOrAsync([function(){return s.doTicks(e,Z,!0)},function(){if(-1===["top","bottom"].indexOf(n.titleside)){var t=Z.titlefont.size,i=Z._offset+Z._length/2,a=K.l+(Z.position||0)*K.w+("right"===Z.side?10+t*(Z.showticklabels?1:.5):-10-t*(Z.showticklabels?.5:0));pe("h"+Z._id+"title",{avoid:{selection:r.select(e).selectAll("g."+Z._id+"tick"),side:n.titleside,offsetLeft:K.l,offsetTop:K.t,maxShift:b.width},attributes:{x:a,y:i,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}}])},l.previousPromises,function(){var r=R+n.outlinewidth/2+h.bBox(Z._axislayer.node()).width;if((W=ie.select("text")).node()&&!W.classed("js-placeholder")){var i,a=ie.select(".h"+Z._id+"title-math-group").node();i=a&&-1!==["top","bottom"].indexOf(n.titleside)?h.bBox(a).width:h.bBox(ie.node()).right-V-K.l,r=Math.max(r,i)}var o=2*n.xpad+r+n.borderwidth+n.outlinewidth/2,s=U-Y;re.select(".cbbg").attr({x:V-n.xpad-(n.borderwidth+n.outlinewidth)/2,y:Y-F,width:Math.max(o,2),height:Math.max(s+2*F,2)}).call(p.fill,n.bgcolor).call(p.stroke,n.bordercolor).style({"stroke-width":n.borderwidth}),re.selectAll(".cboutline").attr({x:V,y:Y+n.ypad+("top"===n.titleside?ae:0),width:Math.max(R,2),height:Math.max(s-2*n.ypad-ae,2)}).call(p.stroke,n.outlinecolor).style({fill:"None","stroke-width":n.outlinewidth});var u=({center:.5,right:1}[n.xanchor]||0)*o;re.attr("transform","translate("+(K.l-u)+","+K.t+")"),l.autoMargin(e,t,{x:n.x,y:n.y,l:o*({right:1,center:.5}[n.xanchor]||0),r:o*({left:1,center:.5}[n.xanchor]||0),t:s*({bottom:1,middle:.5}[n.yanchor]||0),b:s*({top:1,middle:.5}[n.yanchor]||0)})}],e);if(fe&&fe.then&&(e._promises||[]).push(fe),e._context.editable)u.init({element:re.node(),gd:e,prepFn:function(){ue=re.attr("transform"),f(re)},moveFn:function(e,t){re.attr("transform",ue+" translate("+e+","+t+")"),ce=u.align(H+e/K.w,j,0,1,n.xanchor),de=u.align(q-t/K.h,I,0,1,n.yanchor);var r=u.getCursor(ce,de,n.xanchor,n.yanchor);f(re,r)},doneFn:function(t){f(re),t&&void 0!==ce&&void 0!==de&&a.restyle(e,{"colorbar.x":ce,"colorbar.y":de},k().index)}});return fe}function he(e,t){return c.coerce(X,Z,T,e,t)}function pe(t,n){var r,i=k();r=o.traceIs(i,"markerColorscale")?"marker.colorbar.title":"colorbar.title";var a={propContainer:Z,propName:r,traceIndex:i.index,dfltName:"colorscale",containerGroup:re.select(".cbtitle")},l="h"===t.charAt(0)?t.substr(1):"h"+t;re.selectAll("."+l+",."+l+"-math-group").remove(),v.draw(e,t,d(a,n||{}))}b._infolayer.selectAll("g."+t).remove()}function k(){var n,r,i=t.substr(2);for(n=0;nG(s))break;a=s,(v=f[0]*d[0]+f[1]*d[1])>h?(h=v,l=s,c=!1):v=e.length||!s)break;B[S++]=s,i=s}}else B[S++]=l}L.push(B.slice(0,S))}return L}},function(e,t,n){"use strict";var r=n(1),i=n(0),a=n(7),l=n(30),o=n(13),s=n(231),u=n(230),c=n(141).tester;function d(e,t,n,u,d,f,h){var p,v;!function(e,t,n,a,l){var s=n.xaxis,u=n.yaxis,c=r.extent(i.simpleMap(s.range,s.r2c)),d=r.extent(i.simpleMap(u.range,u.r2c)),f=a[0].trace;if(!o.hasMarkers(f))return;var h=f.marker.maxdisplayed;if(0===h)return;var p=a.filter(function(e){return e.x>=c[0]&&e.x<=c[1]&&e.y>=d[0]&&e.y<=d[1]}),v=Math.ceil(p.length/h),y=0;l.forEach(function(e,n){var r=e[0].trace;o.hasMarkers(r)&&r.marker.maxdisplayed>0&&n0;function g(e){return y?e.transition():e}var m=n.xaxis,_=n.yaxis,T=u[0].trace,b=T.line,M=r.select(f);if(M.call(l.plot,n,h),!0===T.visible){var k,K;g(M).style("opacity",T.opacity);var x=T.fill.charAt(T.fill.length-1);"x"!==x&&"y"!==x&&(x=""),u[0].node3=M;var C="",A=[],w=T._prevtrace;w&&(C=w._prevRevpath||"",K=w._nextFill,A=w._polygons);var L,D,B,S,z,G,W,O,P,R="",j="",E=[],I=[],N=i.noop;if(k=T._ownFill,o.hasLines(T)||"none"!==T.fill){for(K&&K.datum(u),-1!==["hv","vh","hvh","vhv"].indexOf(b.shape)?(B=a.steps(b.shape),S=a.steps(b.shape.split("").reverse().join(""))):B=S="spline"===b.shape?function(e){var t=e[e.length-1];return e[0][0]===t[0]&&e[0][1]===t[1]?a.smoothclosed(e.slice(1),b.smoothing):a.smoothopen(e,b.smoothing)}:function(e){return"M"+e.join("L")},z=function(e){return S(e.reverse())},E=s(u,{xaxis:m,yaxis:_,connectGaps:T.connectgaps,baseTolerance:Math.max(b.width||1,3)/4,linear:"linear"===b.shape,simplify:b.simplify}),P=T._polygons=new Array(E.length),v=0;v1}),N=function(e){return function(t){if(L=B(t),D=z(t),R?x?(R+="L"+L.substr(1),j=D+"L"+j.substr(1)):(R+="Z"+L,j=D+"Z"+j):(R=L,j=D),o.hasLines(T)&&t.length>1){var n=r.select(this);if(n.datum(u),e)g(n.style("opacity",0).attr("d",L).call(a.lineGroupStyle)).style("opacity",1);else{var i=g(n);i.attr("d",L),a.singleLineStyle(u,i)}}}}}var F=M.selectAll(".js-line").data(I);g(F.exit()).style("opacity",0).remove(),F.each(N(!1)),F.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(a.lineGroupStyle).each(N(!0)),E.length&&(k?G&&O&&(x?("y"===x?G[1]=O[1]=_.c2p(0,!0):"x"===x&&(G[0]=O[0]=m.c2p(0,!0)),g(k).attr("d","M"+O+"L"+G+"L"+R.substr(1)).call(a.singleFillStyle)):g(k).attr("d",R+"Z").call(a.singleFillStyle)):"tonext"===T.fill.substr(0,6)&&R&&C&&("tonext"===T.fill?g(K).attr("d",R+"Z"+C+"Z").call(a.singleFillStyle):g(K).attr("d",R+"L"+C.substr(1)+"Z").call(a.singleFillStyle),T._polygons=T._polygons.concat(A)),T._prevRevpath=j,T._prevPolygons=P);var $=M.selectAll(".points");p=$.data([u]),$.each(Y),p.enter().append("g").classed("points",!0).each(Y),p.exit().remove()}function V(e){return e.filter(function(e){return e.vis})}function H(e){return e.id}function q(e){if(e.ids)return H}function U(){return!1}function Y(t){var n,l=t[0].trace,s=r.select(this),u=o.hasMarkers(l),c=o.hasText(l),d=q(l),f=U,h=U;u&&(f=l.marker.maxdisplayed||l._needsCull?V:i.identity),c&&(h=l.marker.maxdisplayed||l._needsCull?V:i.identity);var p=(n=s.selectAll("path.point").data(f,d)).enter().append("path").classed("point",!0);y&&p.call(a.pointStyle,l,e).call(a.translatePoints,m,_,l).style("opacity",0).transition().style("opacity",1);var v=u&&a.tryColorscale(l.marker,""),T=u&&a.tryColorscale(l.marker,"line");n.order(),n.each(function(t){var n=r.select(this),i=g(n);a.translatePoint(t,i,m,_)?(a.singlePointStyle(t,i,l,v,T,e),l.customdata&&n.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):i.remove()}),y?n.exit().transition().style("opacity",0).remove():n.exit().remove(),(n=s.selectAll("g").data(h,d)).enter().append("g").classed("textpoint",!0).append("text"),n.order(),n.each(function(e){var t=r.select(this),n=g(t.select("text"));a.translatePoint(e,n,m,_)||t.remove()}),n.selectAll("text").call(a.textPointStyle,l,e).each(function(e){var t=e.xp||m.c2p(e.x),n=e.yp||_.c2p(e.y);r.select(this).selectAll("tspan.line").each(function(){g(r.select(this)).attr({x:t,y:n})})}),n.exit().remove()}}e.exports=function(e,t,n,i,a){var l,o,s,c,f=t.plot.select("g.scatterlayer"),h=!i,p=!!i&&i.duration>0;for((s=f.selectAll("g.trace").data(n,function(e){return e[0].trace.uid})).enter().append("g").attr("class",function(e){return"trace scatter trace"+e[0].trace.uid}).style("stroke-miterlimit",2),u(e,t,n),function(e,t){var n;t.selectAll("g.trace").each(function(e){var t=r.select(this);if((n=e[0].trace)._nexttrace){if(n._nextFill=t.select(".js-fill.js-tonext"),!n._nextFill.size()){var i=":first-child";t.select(".js-fill.js-tozero").size()&&(i+=" + *"),n._nextFill=t.insert("path",i).attr("class","js-fill js-tonext")}}else t.selectAll(".js-fill.js-tonext").remove(),n._nextFill=null;n.fill&&("tozero"===n.fill.substr(0,6)||"toself"===n.fill||"to"===n.fill.substr(0,2)&&!n._prevtrace)?(n._ownFill=t.select(".js-fill.js-tozero"),n._ownFill.size()||(n._ownFill=t.insert("path",":first-child").attr("class","js-fill js-tozero"))):(t.selectAll(".js-fill.js-tozero").remove(),n._ownFill=null)})}(0,f),l=0,o={};lo[t[0].trace.uid]?1:-1}),p)?(a&&(c=a()),r.transition().duration(i.duration).ease(i.easing).each("end",function(){c&&c()}).each("interrupt",function(){c&&c()}).each(function(){f.selectAll("g.trace").each(function(r,a){d(e,a,t,r,n,this,i)})})):f.selectAll("g.trace").each(function(r,a){d(e,a,t,r,n,this,i)});h&&s.exit().remove(),f.selectAll("path:not([d])").remove()}},function(e,t,n){"use strict";var r=n(39),i=n(154),a=n(13);e.exports=function(e){a.hasLines(e)&&r(e,"line")&&i(e,e.line.color,"line","c"),a.hasMarkers(e)&&(r(e,"marker")&&i(e,e.marker.color,"marker","c"),r(e,"marker.line")&&i(e,e.marker.line.color,"marker.line","c"))}},function(e,t,n){"use strict";var r=n(2),i=n(6),a=n(16).BADNUM,l=n(13),o=n(233),s=n(139);e.exports=function(e,t){var n,u,c=i.getFromId(e,t.xaxis||"x"),d=i.getFromId(e,t.yaxis||"y"),f=c.makeCalcdata(t,"x"),h=d.makeCalcdata(t,"y"),p=Math.min(f.length,h.length);c._minDtick=0,d._minDtick=0,f.length>p&&f.splice(p,f.length-p),h.length>p&&h.splice(p,h.length-p);var v={padded:!0},y={padded:!0};if(l.hasMarkers(t)){if(n=t.marker.size,Array.isArray(n)){var g={type:"linear"};i.setConvert(g),(n=g.makeCalcdata(t.marker,"size")).length>p&&n.splice(p,n.length-p)}var m,_=1.6*(t.marker.sizeref||1);m="area"===t.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/_),3)}:function(e){return Math.max((e||0)/_,3)},v.ppad=y.ppad=Array.isArray(n)?n.map(m):m(n)}o(t),!("tozerox"===t.fill||"tonextx"===t.fill&&e.firstscatter)||f[0]===f[p-1]&&h[0]===h[p-1]?t.error_y.visible||-1===["tonexty","tozeroy"].indexOf(t.fill)&&(l.hasMarkers(t)||l.hasText(t))||(v.padded=!1,v.ppad=0):v.tozero=!0,!("tozeroy"===t.fill||"tonexty"===t.fill&&e.firstscatter)||f[0]===f[p-1]&&h[0]===h[p-1]?-1!==["tonextx","tozerox"].indexOf(t.fill)&&(y.padded=!1):y.tozero=!0,i.expand(c,f,v),i.expand(d,h,y);var T=new Array(p);for(u=0;u=0;i--){var a=e[i];if("scatter"===a.type&&a.xaxis===n.xaxis&&a.yaxis===n.yaxis){a.opacity=void 0;break}}}}}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t,n,i){var a=!1;if(t.marker){var l=t.marker.color,o=(t.marker.line||{}).color;l&&!Array.isArray(l)?a=l:o&&!Array.isArray(o)&&(a=o)}i("fillcolor",r.addOpacity((t.line||{}).color||a||n,.5))}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n,i){i("textposition"),r.coerceFont(i,"textfont",n.font)}},function(e,t,n){"use strict";e.exports=function(e,t,n){"spline"===n("line.shape")&&n("line.smoothing")}},function(e,t,n){"use strict";var r=n(39),i=n(100);e.exports=function(e,t,n,a,l,o){var s=(e.marker||{}).color;(l("line.color",n),r(e,"line"))?i(e,t,a,l,{prefix:"line.",cLetter:"c"}):l("line.color",!Array.isArray(s)&&s||n);l("line.width"),(o||{}).noDash||l("line.dash")}},function(e,t,n){"use strict";var r=n(3),i=n(39),a=n(100),l=n(13);e.exports=function(e,t,n,o,s,u){var c=l.isBubble(e),d=(e.line||{}).color;(u=u||{},d&&(n=d),s("marker.symbol"),s("marker.opacity",c?.7:1),s("marker.size"),s("marker.color",n),i(e,"marker")&&a(e,t,o,s,{prefix:"marker.",cLetter:"c"}),u.noLine||(s("marker.line.color",d&&!Array.isArray(d)&&t.marker.color!==d?d:c?r.background:r.defaultLine),i(e,"marker.line")&&a(e,t,o,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",c?1:0)),c&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),u.gradient)&&("none"!==s("marker.gradient.type")&&s("marker.gradient.color"))}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t,n,i){var a,l=i("x"),o=i("y");if(r.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],n),l)o?((a=Math.min(l.length,o.length))1&&f.push(d("object","layout"))),i.supplyDefaults(h);for(var p=h._fullData,v=n.length,y=0;ya*g)||b)for(n=0;nB&&zL&&(L=z);d/=(L-w)/(2*D),w=s.l2r(w),L=s.l2r(L),s.range=s._input.range=x=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}(o,s,h)?(f.push(t),h.push([o,s])):u=[0];var c=n.plotgroup.selectAll(".bg").data(u);c.enter().append("rect").classed("bg",!0),c.exit().remove(),c.each(function(){n.bg=c;var e=n.plotgroup.node();e.insertBefore(this,e.childNodes[0])})});var p=a._bgLayer.selectAll(".bg").data(f);p.enter().append("rect").classed("bg",!0),p.exit().remove(),p.each(function(e){a._plots[e].bg=r.select(this)});var v=[];return c.each(function(t){var n=a._plots[t],r=i.Axes.getFromId(e,t,"x"),o=i.Axes.getFromId(e,t,"y");r.setScale(),o.setScale(),n.bg&&a._has("cartesian")&&n.bg.call(u.setRect,r._offset-l.p,o._offset-l.p,r._length+2*l.p,o._length+2*l.p).call(s.fill,a.plot_bgcolor).style("stroke-width",0),n.clipId="clip"+a._uid+t+"plot";var c=a._defs.selectAll("g.clips").selectAll("#"+n.clipId).data([0]);c.enter().append("clipPath").attr({class:"plotclip",id:n.clipId}).append("rect"),c.selectAll("rect").attr({width:r._length,height:o._length}),n.plot.call(u.setTranslate,r._offset,o._offset),n.plot.call(u.setClipUrl,n.clipId);var d=u.crispRound(e,r.linewidth,1),f=u.crispRound(e,o.linewidth,1),h=l.p+f,p="M"+-h+",",y="h"+(r._length+2*h),g="free"===r.anchor&&-1===v.indexOf(r._id),m=l.h*(1-(r.position||0))+d/2%1,_=r.anchor===o._id&&(r.mirror||"top"!==r.side)||"all"===r.mirror||"allticks"===r.mirror||r.mirrors&&r.mirrors[o._id+"bottom"],T=o._length+l.p+d/2,b=r.anchor===o._id&&(r.mirror||"top"===r.side)||"all"===r.mirror||"allticks"===r.mirror||r.mirrors&&r.mirrors[o._id+"top"],M=-l.p-d/2,k=l.p,K=_?0:d,x=b?0:d,C=","+(-k-x)+"v"+(o._length+2*k+x+K),A="free"===o.anchor&&-1===v.indexOf(o._id),w=l.w*(o.position||0)+f/2%1,L=o.anchor===r._id&&(o.mirror||"right"!==o.side)||"all"===o.mirror||"allticks"===o.mirror||o.mirrors&&o.mirrors[r._id+"left"],D=-l.p-f/2,B=o.anchor===r._id&&(o.mirror||"right"===o.side)||"all"===o.mirror||"allticks"===o.mirror||o.mirrors&&o.mirrors[r._id+"right"],S=r._length+l.p+f/2;r._linepositions[t]=[_?T:void 0,b?M:void 0,g?m:void 0],r.anchor===o._id?r._linepositions[t][3]="top"===r.side?M:T:g&&(r._linepositions[t][3]=m),o._linepositions[t]=[L?D:void 0,B?S:void 0,A?w:void 0],o.anchor===r._id?o._linepositions[t][3]="right"===o.side?S:D:A&&(o._linepositions[t][3]=w);var z="translate("+r._offset+","+o._offset+")",G=z,W=z;g&&(G="translate("+r._offset+","+l.t+")",M+=o._offset-l.t,T+=o._offset-l.t),A&&(W="translate("+l.l+","+o._offset+")",D+=r._offset-l.l,S+=r._offset-l.l),a._has("cartesian")&&(n.xlines.attr("transform",G).attr("d",(_?p+T+y:"")+(b?p+M+y:"")+(g?p+m+y:"")||"M0,0").style("stroke-width",d+"px").call(s.stroke,r.showline?r.linecolor:"rgba(0,0,0,0)"),n.ylines.attr("transform",W).attr("d",(L?"M"+D+C:"")+(B?"M"+S+C:"")+(A?"M"+w+C:"")||"M0,0").attr("stroke-width",f+"px").call(s.stroke,o.showline?o.linecolor:"rgba(0,0,0,0)")),n.xaxislayer.attr("transform",G),n.yaxislayer.attr("transform",W),n.gridlayer.attr("transform",z),n.zerolinelayer.attr("transform",z),n.draglayer.attr("transform",z),g&&v.push(r._id),A&&v.push(o._id)}),i.Axes.makeClipPaths(e),t.drawMainTitle(e),d.manage(e),e._promises.length&&Promise.all(e._promises)},t.drawMainTitle=function(e){var t=e._fullLayout;c.draw(e,"gtitle",{propContainer:t,propName:"title",dfltName:"Plot",attributes:{x:t.width/2,y:t._size.t/2,"text-anchor":"middle"}})},t.doTraceStyle=function(e){for(var t=0;t0&&l.log("Clearing previous rejected promises from queue."),e._promises=[]},t.cleanLayout=function(e){var t,n;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1);var r=s.list({_fullLayout:e});for(t=0;t3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),"rotate"===e.dragmode&&(e.dragmode="orbit"),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var g=o.getSubplotIds(e,"gl3d");for(t=0;t0)return e.substr(0,t)}t.hasParent=function(e,t){for(var n=p(t);n;){if(n in e)return!0;n=p(n)}return!1}},function(e,t,n){"use strict";var r=n(107),i=n(32),a=n(109),l=n(33),o=n(162).sorterAsc,s=n(4);t.containerArrayMatch=n(167);var u=t.isAddVal=function(e){return"add"===e||i(e)},c=t.isRemoveVal=function(e){return null===e||"remove"===e};t.applyContainerArrayChanges=function(e,t,n,i){var d=t.astr,f=s.getComponentMethod(d,"supplyLayoutDefaults"),h=s.getComponentMethod(d,"draw"),p=s.getComponentMethod(d,"drawOne"),v=i.replot||i.recalc||f===a||h===a,y=e.layout,g=e._fullLayout;if(n[""]){Object.keys(n).length>1&&l.warn("Full array edits are incompatible with other edits",d);var m=n[""][""];if(c(m))t.set(null);else{if(!Array.isArray(m))return l.warn("Unrecognized full array edit value",d,m),!0;t.set(m)}return!v&&(f(y,g),h(e),!0)}var _,T,b,M,k,K,x,C=Object.keys(n).map(Number).sort(o),A=t.get(),w=A||[],L=r(g,d).get(),D=[],B=-1,S=w.length;for(_=0;_w.length-(x?0:1))l.warn("index out of range",d,b);else if(void 0!==K)k.length>1&&l.warn("Insertion & removal are incompatible with edits to the same index.",d,b),c(K)?D.push(b):x?("add"===K&&(K={}),w.splice(b,0,K),L&&L.splice(b,0,{})):l.warn("Unrecognized full object edit value",d,b,K),-1===B&&(B=b);else for(T=0;T=0;_--)w.splice(D[_],1),L&&L.splice(D[_],1);if(w.length?A||t.set(w):t.set(null),v)return!1;if(f(y,g),p!==a){var z;if(-1===B)z=C;else{for(S=Math.max(w.length,S),z=[],_=0;_=B);_++)z.push(b);for(_=B;_=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function A(e){e.selectAll(".select-outline").remove()}function w(e){r.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function L(e){return-1!==["lasso","select"].indexOf(e)}function D(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,b)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}e.exports=function(e,t,n,B,S,z,G,W){var O,P,R,E,j,I,N,F,$,V,H,q,U,Y=e._fullLayout,X=e._fullLayout._zoomlayer,Z=G+W==="nsew";function J(){P=[t.xaxis],R=[t.yaxis];var n=P[0],r=R[0];I=n._length,N=r._length;var i=Y._axisConstraintGroups,a=[n._id],l=[r._id];O=[t].concat(G&&W?t.overlays:[]);for(var s=1;s.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform","translate("+n+", "+r+")").attr("d",i+"Z")}(X,re,E,j,ie="M0,0H"+I+"V"+N+"H0V0"),se=function(e,t,n){return e.append("path").attr("class","zoombox-corners").style({fill:u.background,stroke:u.defaultLine,"stroke-width":1,opacity:0}).attr("transform","translate("+t+", "+n+")").attr("d","M0,0Z")}(X,E,j),A(X)}(0,n,r)):"pan"===a?(ue.moveFn=_e,ue.doneFn=he,A(X)):L(a)&&(ue.xaxes=P,ue.yaxes=R,g(t,n,r,ue,a))}};f.init(ue);var ce={};function de(t,n){if(e._transitioningWithDuration)return!1;var r=Math.max(0,Math.min(I,t+ee)),i=Math.max(0,Math.min(N,n+te)),a=Math.abs(r-ee),l=Math.abs(i-te);function o(){le="",ne.r=ne.l,ne.t=ne.b,se.attr("d","M0,0Z")}ne.l=Math.min(ee,r),ne.r=Math.max(ee,r),ne.t=Math.min(te,i),ne.b=Math.max(te,i),H?a>b||l>b?(le="xy",a/I>l/N?(l=a*N/I,te>i?ne.t=te-l:ne.b=te+l):(a=l*I/N,ee>r?ne.l=ee-a:ne.r=ee+a),se.attr("d",D(ne))):o():!$||l.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}(oe,se,ne,ie,ae,re),ae=!0}function fe(t,n){if(Math.min(ne.h,ne.w)<2*T)return 2===n&&be(),w(e);"xy"!==le&&"x"!==le||K(P,ne.l/I,ne.r/I,ce,q),"xy"!==le&&"y"!==le||K(R,(N-ne.b)/N,(N-ne.t)/N,ce,U),w(e),Me(le),M&&e.data&&e._context.showTips&&(o.notifier("Double-click to
zoom back out","long"),M=!1)}function he(t,n){var i=1===(G+W).length;if(t)Me();else if(2!==n||i){if(1===n&&i){var l=G?R[0]:P[0],o="s"===G||"w"===W?0:1,u=l._name+".range["+o+"]",c=function(e,t){var n,i=e.range[t],a=Math.abs(i-e.range[1-t]);return"date"===e.type?i:"log"===e.type?(n=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,r.format("."+n+"g")(Math.pow(10,i))):(n=Math.floor(Math.log(Math.abs(i))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,r.format("."+String(n)+"g")(i))}(l,o),d="left",f="middle";if(l.fixedrange)return;G?(f="n"===G?"top":"bottom","right"===l.side&&(d="right")):"e"===W&&(d="right"),e._context.showAxisRangeEntryBoxes&&r.select(Q).call(s.makeEditable,{gd:e,immediate:!0,background:Y.paper_bgcolor,text:String(c),fill:l.tickfont?l.tickfont.color:"#444",horizontalAlign:d,verticalAlign:f}).on("edit",function(t){var n=l.d2r(t);void 0!==n&&a.relayout(e,u,n)})}}else be()}var pe=[0,0,I,N],ve=null,ye=_.REDRAWDELAY,ge=t.mainplot?Y._plots[t.mainplot]:t;function me(t){if(e._context.scrollZoom||Y._enablescrollzoom){if(e._transitioningWithDuration)return o.pauseEvent(t);var n=e.querySelector(".plotly");if(J(),!(n.scrollHeight-n.clientHeight>10||n.scrollWidth-n.clientWidth>10)){clearTimeout(ve);var r=-t.deltaY;if(isFinite(r)||(r=t.wheelDelta/10),isFinite(r)){var i,a=Math.exp(-Math.min(Math.max(r,-20),20)/100),l=ge.draglayer.select(".nsewdrag").node().getBoundingClientRect(),s=(t.clientX-l.left)/l.width,u=(l.bottom-t.clientY)/l.height;if(W||H){for(W||(s=.5),i=0;i4/3-o?l:o}},function(e,t,n){"use strict";e.exports=function(){var e,t=[],n=-1,r=!1;function i(e,t){return e?(r=!0,e[t](),r=!1,this):this}return{add:function(e){return r?this:(t.splice(n+1,t.length-n),t.push(e),n=t.length-1,this)},setCallback:function(t){e=t},undo:function(){var r=t[n];return r?(i(r,"undo"),n-=1,e&&e(r.undo),this):this},redo:function(){var r=t[n+1];return r?(i(r,"redo"),n+=1,e&&e(r.redo),this):this},clear:function(){t=[],n=-1},hasUndo:function(){return-1!==n},hasRedo:function(){return n*:not(.chart-root)").remove(),t=t?s(t,n):n,i||(i=l.Axis()),a=l.adapter.plotly().convert(t),i.config(a).render(c),e.data=t.data,e.layout=t.layout,u.fillLayout(e),t}return f.isPolar=!0,f.svg=function(){return i.svg()},f.getConfig=function(){return t},f.getLiveConfig=function(){return l.adapter.plotly().convert(i.getLiveConfig(),!0)},f.getLiveScales=function(){return{t:i.angularScale(),r:i.radialScale()}},f.setUndoPoint=function(){var e,r,i=this,a=l.util.cloneJson(t);e=a,r=n,d.add({undo:function(){r&&i(r)},redo:function(){i(e)}}),n=l.util.cloneJson(a)},f.undo=function(){d.undo()},f.redo=function(){d.redo()},f},u.fillLayout=function(e){var t=r.select(e).selectAll(".plot-container"),n=t.selectAll(".svg-container"),i=e.framework&&e.framework.svg&&e.framework.svg(),l={width:800,height:600,paper_bgcolor:a.background,_container:t,_paperdiv:n,_paper:i};e._fullLayout=s(l,e.layout)}},function(e,t,n){"use strict";(e.exports=n(144)).manager=n(268)},function(e,t,n){"use strict";var r=n(1),i=n(2),a=n(8),l=n(0),o=n(88),s=n(145),u=n(4),c=n(9),d=n(269),f=n(143),h=n(7),p=n(30),v=n(31),y=n(14),g=n(255),m=n(254),_=n(252),T=n(15),b=n(251),M=b.enforce,k=b.clean,K=n(18);function x(e,t){e._fullLayout._paperdiv.style("background","white"),a.defaultConfig.setBackground(e,t)}function C(e,t){var n,r,i=t+1,a=[];for(n=0;n=e.data.length||i<-e.data.length)throw new Error(n+" must be valid indices for gd.data.");if(t.indexOf(i,r+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+n+" must be unique.")}}function w(e,t,n){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),A(e,t,"currentIndices"),void 0===n||Array.isArray(n)||(n=[n]),void 0!==n&&A(e,n,"newIndices"),void 0!==n&&t.length!==n.length)throw new Error("current and new indices must be of equal length.")}function L(e,t,n,r,a,o){!function(e,t,n,r){var i=l.isPlainObject(r);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!l.isPlainObject(t))throw new Error("update must be a key:value object");if(void 0===n)throw new Error("indices must be an integer or array of integers");for(var a in A(e,n,"indices"),t){if(!Array.isArray(t[a])||t[a].length!==n.length)throw new Error("attribute "+a+" must be an array of length equal to indices array length");if(i&&(!(a in r)||!Array.isArray(r[a])||r[a].length!==t[a].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}(e,t,n,r);for(var s,u,c,d=function(e,t,n,r){var a,o,s,u,c,d=l.isPlainObject(r),f=[];for(var h in Array.isArray(n)||(n=[n]),n=C(n,e.data.length-1),t)for(var p=0;p=0&&cN.range[0]?[1,2]:[2,1]);else{var V=N.range[0],H=N.range[1];F?(V<=0&&H<=0&&k(P+".autorange",!0),V<=0?V=H/1e6:H<=0&&(H=V/1e6),k(P+".range[0]",Math.log(V)/Math.LN10),k(P+".range[1]",Math.log(H)/Math.LN10)):(k(P+".range[0]",Math.pow(10,V)),k(P+".range[1]",Math.pow(10,H)))}else k(P+".autorange",!0);u.getComponentMethod("annotations","convertCoords")(e,E,B,k),u.getComponentMethod("images","convertCoords")(e,E,B,k)}else k(P+".autorange",!0);l.nestedProperty(s,P+"._inputRange").set(null)}else if(W.match(T.AX_NAME_PATTERN)){var q=l.nestedProperty(s,L).get(),U=(B||{}).type;U&&"-"!==U||(U="linear"),u.getComponentMethod("annotations","convertCoords")(e,q,U,k),u.getComponentMethod("images","convertCoords")(e,q,U,k)}var Y=g.containerArrayMatch(L);if(Y){n=Y.array,r=Y.index;var X=Y.property,Z=(l.nestedProperty(o,n)||[])[r]||{};if(""===r)-1===L.indexOf("updatemenus")&&(_.docalc=!0);else if(""===X){var J=B;g.isAddVal(B)?M[L]=null:g.isRemoveVal(B)?(M[L]=Z,J=Z):l.warn("unrecognized full object value",t),(x(J,"x")||x(J,"y")&&-1===L.indexOf("updatemenus"))&&(_.docalc=!0)}else!x(Z,"x")&&!x(Z,"y")||l.containsAny(L,["color","opacity","align","dash","updatemenus"])||(_.docalc=!0);h[n]||(h[n]={});var Q=h[n][r];Q||(Q=h[n][r]={}),Q[X]=B,delete t[L]}else if("reverse"===W)R.range?R.range.reverse():(k(P+".autorange",!0),R.range=[1,0]),E.autorange?_.docalc=!0:_.doplot=!0;else{var ee=String(D.parts[1]||"");0===G.indexOf("scene")?"camera"===D.parts[1]?_.docamera=!0:_.doplot=!0:0===G.indexOf("geo")?_.doplot=!0:0===G.indexOf("ternary")?_.doplot=!0:"paper_bgcolor"===L?_.doplot=!0:"margin"===G||"autorange"===ee||"rangemode"===ee||"type"===ee||"domain"===ee||"fixedrange"===ee||"scaleanchor"===ee||"scaleratio"===ee||-1!==L.indexOf("calendar")||L.match(/^(bar|box|font)/)?_.docalc=!0:!s._has("gl2d")||-1===L.indexOf("axis")&&"plot_bgcolor"!==L?!s._has("gl2d")||"dragmode"!==L||"lasso"!==B&&"select"!==B||"lasso"===j||"select"===j?"hiddenlabels"===L?_.docalc=!0:-1!==G.indexOf("legend")?_.dolegend=!0:-1!==L.indexOf("title")?_.doticks=!0:-1!==G.indexOf("bgcolor")?_.dolayoutstyle=!0:S>1&&l.containsAny(ee,["tick","exponent","grid","zeroline"])?_.doticks=!0:-1!==L.indexOf(".linewidth")&&-1!==L.indexOf("axis")?_.doticks=_.dolayoutstyle=!0:S>1&&-1!==ee.indexOf("line")?_.dolayoutstyle=!0:S>1&&"mirror"===ee?_.doticks=_.dolayoutstyle=!0:"margin.pad"===L?_.doticks=_.dolayoutstyle=!0:-1!==["hovermode","dragmode"].indexOf(L)||-1!==L.indexOf("spike")?_.domodebar=!0:-1===["height","width","autosize"].indexOf(L)&&(_.doplot=!0):_.docalc=!0:_.doplot=!0,D.set(B)}}}for(n in h){g.applyContainerArrayChanges(e,l.nestedProperty(o,n),h[n],_)||(_.doplot=!0)}var te=s._axisConstraintGroups;for(C in A)for(r=0;r=i.length?i[0]:i[e]:i}function s(e){return Array.isArray(a)?e>=a.length?a[0]:a[e]:a}function u(e,t){var n=0;return function(){if(e&&++n===t)return e()}}return void 0===r._frameWaitingCnt&&(r._frameWaitingCnt=0),new Promise(function(a,d){function f(){r._currentFrame&&r._currentFrame.onComplete&&r._currentFrame.onComplete();var t=r._currentFrame=r._frameQueue.shift();if(t){var n=t.name?t.name.toString():null;e._fullLayout._currentFrame=n,r._lastFrameAt=Date.now(),r._timeToNext=t.frameOpts.duration,c.transition(e,t.frame.data,t.frame.layout,m.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then(function(){t.onComplete&&t.onComplete()}),e.emit("plotly_animatingframe",{name:n,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(r._animationRaf),r._animationRaf=null}function h(){e.emit("plotly_animating"),r._lastFrameAt=-1/0,r._timeToNext=0,r._runningTransitions=0,r._currentFrame=null;var t=function(){r._animationRaf=window.requestAnimationFrame(t),Date.now()-r._lastFrameAt>r._timeToNext&&f()};t()}var p,v,y=0;function g(e){return Array.isArray(i)?y>=i.length?e.transitionOpts=i[y]:e.transitionOpts=i[0]:e.transitionOpts=i,y++,e}var _=[],T=void 0===t||null===t,b=Array.isArray(t);if(!T&&!b&&l.isPlainObject(t))_.push({type:"object",data:g(l.extendFlat({},t))});else if(T||-1!==["string","number"].indexOf(typeof t))for(p=0;p0&&K<_.length-1){var x=[];for(p=0;p<_.length;p++)v=_[p],("byname"!==_[p].type||p>K)&&x.push(v);_=x}}_.length>0?function(t){if(0!==t.length){for(var i=0;i=0;r--)if(l.isPlainObject(t[r])){var v=(f[t[r].name]||{}).name,y=t[r].name;v&&y&&"number"==typeof y&&f[v]&&(u++,l.warn('addFrames: overwriting frame "'+f[v].name+'" with a frame whose name of type "number" also equates to "'+v+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),u>5&&l.warn("addFrames: This API call has yielded too many warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),p.push({frame:c.supplyFrameDefaults(t[r]),index:n&&void 0!==n[r]&&null!==n[r]?n[r]:h+r})}p.sort(function(e,t){return e.index>t.index?-1:e.index=0;r--){if("number"==typeof(i=p[r].frame).name&&l.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;f[i.name="frame "+e._transitionData._counter++];);if(f[i.name]){for(a=0;a=0;n--)r=t[n],a.push({type:"delete",index:r}),o.unshift({type:"insert",index:r,value:i[r]});var u=c.modifyFrames,d=c.modifyFrames,f=[e,o],h=[e,a];return s&&s.add(e,u,f,d,h),c.modifyFrames(e,a)},a.purge=function(e){var t=(e=m.getGraphDiv(e))._fullLayout||{},n=e._fullData||[];return c.cleanPlot([],{},n,t),c.purge(e),o.purge(e),t._container&&t._container.remove(),delete e._context,delete e._replotPending,delete e._mouseDownTime,delete e._legendMouseDownTime,delete e._hmpixcount,delete e._hmlumcount,e}},function(e,t,n){"use strict";e.exports=function(e,t){var n=document.createElement("a"),r="download"in n,i=/Version\/[\d\.]+.*Safari/.test(navigator.userAgent);return new Promise(function(a,l){"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent)&&l(new Error("IE < 10 unsupported")),i&&(document.location.href="data:application/octet-stream"+e.slice(e.search(/[,;]/)),a(t)),t||(t="download"),r&&(n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),a(t)),"undefined"!=typeof navigator&&navigator.msSaveBlob&&(navigator.msSaveBlob(new Blob([e]),t),a(t)),l(new Error("download error"))})}},function(e,t,n){"use strict";var r=n(8),i=n(9),a=n(6),l=n(0),o=n(94),s=n(95),u=e.exports={};function c(e,t){var n,i,l=t.currentTarget,o=l.getAttribute("data-attr"),s=l.getAttribute("data-val")||!0,u=e._fullLayout,c={},d=a.list(e,null,!0),f="on";if("zoom"===o){var h,p="in"===s?.5:2,v=(1+p)/2,y=(1-p)/2;for(i=0;i1)return y(["resetViews","toggleHover"]),o(v,n);c&&(y(["zoom3d","pan3d","orbitRotation","tableRotation"]),y(["resetCameraDefault3d","resetCameraLastSave3d"]),y(["hoverClosest3d"]));d&&(y(["zoomInGeo","zoomOutGeo","resetGeo"]),y(["hoverClosestGeo"]));var g=function(e){for(var t=r.list({_fullLayout:e},null,!0),n=!0,i=0;i0?".":"")+a;i.isPlainObject(l)?s(l,t,o,r+1):t(o,a,l)}})}t.manageCommandObserver=function(e,n,r,l){var o={},s=!0;n&&n._commandObserver&&(o=n._commandObserver),o.cache||(o.cache={}),o.lookupTable={};var u=t.hasSimpleAPICommandBindings(e,r,o.lookupTable);if(n&&n._commandObserver){if(u)return o;if(n._commandObserver.remove)return n._commandObserver.remove(),n._commandObserver=null,o}if(u){a(e,u,o.cache),o.check=function(){if(s){var t=a(e,u,o.cache);return t.changed&&l&&void 0!==o.lookupTable[t.value]&&(o.disable(),Promise.resolve(l({value:t.value,type:u.type,prop:u.prop,traces:u.traces,index:o.lookupTable[t.value]})).then(o.enable,o.enable)),t.changed}};for(var c=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],d=0;d0;e.each(function(e){var t,u=e[0].trace,c=u.error_x||{},d=u.error_y||{};u.ids&&(t=function(e){return e.id});var f=a.hasMarkers(u)&&u.marker.maxdisplayed>0;if(d.visible||c.visible){var h=r.select(this).selectAll("g.errorbar").data(e,t);h.exit().remove(),h.style("opacity",1);var p=h.enter().append("g").classed("errorbar",!0);s&&p.style("opacity",0).transition().duration(n.duration).style("opacity",1),h.each(function(e){var t=r.select(this),a=function(e,t,n){var r={x:t.c2p(e.x),y:n.c2p(e.y)};void 0!==e.yh&&(r.yh=n.c2p(e.yh),r.ys=n.c2p(e.ys),i(r.ys)||(r.noYS=!0,r.ys=n.c2p(e.ys,!0)));void 0!==e.xh&&(r.xh=t.c2p(e.xh),r.xs=t.c2p(e.xs),i(r.xs)||(r.noXS=!0,r.xs=t.c2p(e.xs,!0)));return r}(e,l,o);if(!f||e.vis){var u;if(d.visible&&i(a.x)&&i(a.yh)&&i(a.ys)){var h=d.width;u="M"+(a.x-h)+","+a.yh+"h"+2*h+"m-"+h+",0V"+a.ys,a.noYS||(u+="m-"+h+",0h"+2*h);var p=t.select("path.yerror");!p.size()?p=t.append("path").classed("yerror",!0):s&&(p=p.transition().duration(n.duration).ease(n.easing)),p.attr("d",u)}if(c.visible&&i(a.y)&&i(a.xh)&&i(a.xs)){var v=(c.copy_ystyle?d:c).width;u="M"+a.xh+","+(a.y-v)+"v"+2*v+"m0,-"+v+"H"+a.xs,a.noXS||(u+="m0,-"+v+"v"+2*v);var y=t.select("path.xerror");!y.size()?y=t.append("path").classed("xerror",!0):s&&(y=y.transition().duration(n.duration).ease(n.easing)),y.attr("d",u)}}})}})}},function(e,t,n){"use strict";function r(e,t){return"percent"===e?function(e){return Math.abs(e*t/100)}:"constant"===e?function(){return Math.abs(t)}:"sqrt"===e?function(e){return Math.sqrt(Math.abs(e))}:void 0}e.exports=function(e){var t=e.type,n=e.symmetric;if("data"===t){var i=e.array,a=e.arrayminus;return n||void 0===a?function(e,t){var n=+i[t];return[n,n]}:function(e,t){return[+a[t],+i[t]]}}var l=r(t,e.value),o=r(t,e.valueminus);return n||void 0===e.valueminus?function(e){var t=l(e);return[t,t]}:function(e){return[o(e),l(e)]}}},function(e,t,n){"use strict";var r=n(0),i=n(18).id2name;e.exports=function(e,t,n,a,l){var o=l._axisConstraintGroups,s=t._id,u=s.charAt(0);if(!t.fixedrange&&(n("constrain"),r.coerce(e,t,{constraintoward:{valType:"enumerated",values:"x"===u?["left","center","right"]:["bottom","middle","top"],dflt:"x"===u?"center":"middle"}},"constraintoward"),e.scaleanchor)){var c=function(e,t,n,r){var a,l,o,s,u=r[i(t)].type,c=[];for(l=0;l0;a&&(r="array");var l=n("categoryorder",r);"array"===l&&n("categoryarray"),a||"array"!==l||(t.categoryorder="trace")}}},function(e,t,n){"use strict";var r=n(4),i=n(151),a=n(18).name2id;function l(e){return{v:"x",h:"y"}[e.orientation||"v"]}function o(e,t){var n=l(e),i=r.traceIs(e,"box"),a=r.traceIs(e._fullInput||{},"candlestick");return i&&!a&&t===n&&void 0===e[n]&&void 0===e[n+"0"]}e.exports=function(e,t,n,s,u){u&&(t._name=u,t._id=a(u)),"-"===n("type")&&(!function(e,t){if("-"!==e.type)return;var n=e._id,a=n.charAt(0);-1!==n.indexOf("scene")&&(n=a);var s=function(e,t,n){for(var r=0;r0?Math.max(t,i):0}}},function(e,t,n){"use strict";e.exports={entityToUnicode:{mu:"μ","#956":"μ",amp:"&","#28":"&",lt:"<","#60":"<",gt:">","#62":">",nbsp:" ","#160":" ",times:"×","#215":"×",plusmn:"±","#177":"±",deg:"°","#176":"°"}}},function(e,t,n){"use strict";var r=n(1),i=n(21),a=n(2),l=n(3);function o(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return i(t).toRgbString()}e.exports=function(e,t){t=t||{};for(var n=e.domain,s=e.range,u=s.length,c=new Array(u),d=0;d/g),l=0;le.length-1)return e[e.length-1];var n=t%1;return n*e[Math.ceil(t)]+(1-n)*e[Math.floor(t)]}},function(e,t,n){"use strict";var r,i,a=n(1),l=n(2),o=n(33).error,s=n(166),u=n(16),c=u.BADNUM,d=u.ONEDAY,f=u.ONEHOUR,h=u.ONEMIN,p=u.ONESEC,v=u.EPOCHJD,y=n(4),g=a.time.format.utc,m=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d:?\d\d)?)?)?)?)?\s*$/m,_=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d:?\d\d)?)?)?)?)?\s*$/m,T=(new Date).getFullYear()-70;function b(e){return e&&y.componentsRegistry.calendars&&"string"==typeof e&&"gregorian"!==e}function M(e,t){return String(e+Math.pow(10,t)).substr(1)}t.dateTick0=function(e,t){return b(e)?t?y.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:y.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"},t.dfltRange=function(e){return b(e)?y.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]},t.isJSDate=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.getTime},t.dateTime2ms=function(e,n){if(t.isJSDate(e))return(e=Number(e)-e.getTimezoneOffset()*h)>=r&&e<=i?e:c;if("string"!=typeof e&&"number"!=typeof e)return c;e=String(e);var a=b(n),l=e.charAt(0);!a||"G"!==l&&"g"!==l||(e=e.substr(1),n="");var o=a&&"chinese"===n.substr(0,7),s=e.match(o?_:m);if(!s)return c;var u=s[1],g=s[3]||"1",M=Number(s[5]||1),k=Number(s[7]||0),K=Number(s[9]||0),x=Number(s[11]||0);if(a){if(2===u.length)return c;var C;u=Number(u);try{var A=y.getComponentMethod("calendars","getCal")(n);if(o){var w="i"===g.charAt(g.length-1);g=parseInt(g,10),C=A.newDate(u,A.toMonthIndex(u,g,w),M)}else C=A.newDate(u,Number(g),M)}catch(e){return c}return C?(C.toJD()-v)*d+k*f+K*h+x*p:c}u=2===u.length?(Number(u)+2e3-T)%100+T:Number(u),g-=1;var L=new Date(Date.UTC(2e3,g,M,k,K));return L.setUTCFullYear(u),L.getUTCMonth()!==g?c:L.getUTCDate()!==M?c:L.getTime()+x*p},r=t.MIN_MS=t.dateTime2ms("-9999"),i=t.MAX_MS=t.dateTime2ms("9999-12-31 23:59:59.9999"),t.isDateTime=function(e,n){return t.dateTime2ms(e,n)!==c};var k=90*d,K=3*f,x=5*h;function C(e,t,n,r,i){if((t||n||r||i)&&(e+=" "+M(t,2)+":"+M(n,2),(r||i)&&(e+=":"+M(r,2),i))){for(var a=4;i%10==0;)a-=1,i/=10;e+="."+M(i,a)}return e}t.ms2DateTime=function(e,t,n){if("number"!=typeof e||!(e>=r&&e<=i))return c;t||(t=0);var a,l,o,u,m,_,T=Math.floor(10*s(e+.05,1)),M=Math.round(e-T/10);if(b(n)){var A=Math.floor(M/d)+v,w=Math.floor(s(e,d));try{a=y.getComponentMethod("calendars","getCal")(n).fromJD(A).formatDate("yyyy-mm-dd")}catch(e){a=g("G%Y-%m-%d")(new Date(M))}if("-"===a.charAt(0))for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;l=t=r+d&&e<=i-d))return c;var t=Math.floor(10*s(e+.05,1)),n=new Date(Math.round(e-t/10));return C(a.time.format("%Y-%m-%d")(n),n.getHours(),n.getMinutes(),n.getSeconds(),10*n.getUTCMilliseconds()+t)},t.cleanDate=function(e,n,r){if(t.isJSDate(e)||"number"==typeof e){if(b(r))return o("JS Dates and milliseconds are incompatible with world calendars",e),n;if(!(e=t.ms2DateTimeLocal(+e))&&void 0!==n)return n}else if(!t.isDateTime(e,r))return o("unrecognized date",e),n;return e};var A=/%\d?f/g;var w=[59,59.9,59.99,59.999,59.9999];function L(e,t){var n=s(e+.05,d),r=M(Math.floor(n/f),2)+":"+M(s(Math.floor(n/h),60),2);if("M"!==t){l(t)||(t=0);var i=(100+Math.min(s(e/p,60),w[t])).toFixed(t).substr(1);t>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),r+=":"+i}return r}var D=g("%Y"),B=g("%b %Y"),S=g("%b %-d"),z=g("%b %-d, %Y");function G(e){return e.formatDate("yyyy")}t.formatDate=function(e,t,n,r){var i,a;if(r=b(r)&&r,t)return function(e,t,n){e=e.replace(A,function(e){var n=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(n).substr(2).replace(/0+$/,"")||"0"});var r=new Date(Math.floor(t+.05));if(b(n))try{e=y.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(e){return"Invalid"}return g(e)(r)}(t,e,r);if(r)try{var l=Math.floor((e+.05)/d)+v,o=y.getComponentMethod("calendars","getCal")(r).fromJD(l);"y"===n?a=G(o):"m"===n?a=function(e){return e.formatDate("M yyyy")}(o):"d"===n?(i=G(o),a=function(e){return e.formatDate("M d")}(o)):(i=function(e){return e.formatDate("M d, yyyy")}(o),a=L(e,n))}catch(e){return"Invalid"}else{var s=new Date(Math.floor(e+.05));"y"===n?a=D(s):"m"===n?a=B(s):"d"===n?(i=D(s),a=S(s)):(i=z(s),a=L(e,n))}return a+(i?"\n"+i:"")};var W=3*d;t.incrementMonth=function(e,t,n){n=b(n)&&n;var r=s(e,d);if(e=Math.round(e-r),n)try{var i=Math.round(e/d)+v,a=y.getComponentMethod("calendars","getCal")(n),l=a.fromJD(i);return t%12?a.add(l,t,"m"):a.add(l,t/12,"y"),(l.toJD()-v)*d+r}catch(t){o("invalid ms "+e+" in calendar "+n)}var u=new Date(e+W);return u.setUTCMonth(u.getUTCMonth()+t)+r-W},t.findExactDates=function(e,t){for(var n,r,i=0,a=0,o=0,s=0,u=b(t)&&y.getComponentMethod("calendars","getCal")(t),c=0;ci.max?t.set(n):t.set(+e)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max"],coerceFunction:function(e,t,n,i){e%1||!r(e)||void 0!==i.min&&ei.max?t.set(n):t.set(+e)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(e,t,n,r){if("string"!=typeof e){var i="number"==typeof e;!0!==r.strict&&i?t.set(String(e)):t.set(n)}else r.noBlank&&!e?t.set(n):t.set(e)}},color:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,n){i(e).isValid()?t.set(e):t.set(n)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",o.join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){t.set(l(e,n))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){"auto"===e?t.set("auto"):r(e)?(Math.abs(e)>180&&(e-=360*Math.round(e/360)),t.set(+e)):t.set(n)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:[],coerceFunction:function(e,t,n){var r=n.length;"string"==typeof e&&e.substr(0,r)===n&&u.test(e.substr(r))?t.set(e):t.set(n)},validateFunction:function(e,t){var n=t.dflt,r=n.length;return e===n||"string"==typeof e&&!(e.substr(0,r)!==n||!u.test(e.substr(r)))}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(e,t,n,r){if("string"==typeof e)if(-1===(r.extras||[]).indexOf(e)){for(var i=e.split("+"),a=0;a0)}function o(e){return e.name||e.replace(/-/gi,"")}function s(){return new Promise(function(e,t){var n=setInterval(function(){"undefined"!=typeof window&&window.ga&&(e(),clearInterval(n))},10)})}function u(e,t){return i().length>1?o(t)+"."+e:e}function c(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?k({},T.fields,{name:n}):T.fields;window.ga("create",t.id||t,"auto",r)}),T.beforeFirstHit();var t=T.ecommerce;if(t.enabled){var n=t.enhanced?"ec":"ecommerce";t.options?c("require",n,t.options):c("require",n)}T.linkers.length>0&&(c("require","linker"),c("linker:autoLink",T.linkers)),T.debug.sendHitTask||d("sendHitTask",null)}function h(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0])||arguments[0];"undefined"!=typeof window&&i().forEach(function(t){window["ga-disable-"+t]=e})},A=function(){if("undefined"!=typeof document&&"undefined"!=typeof window){var e=(T.wait,T.id),t=T.disabled,n=T.debug,i=T.disableScriptLoader,a=n.enabled?"analytics_debug":"analytics",o="https://www.google-analytics.com/"+a+".js";if(!e)throw new Error('[vue-analytics] Missing the "id" parameter. Add at least one tracking domain ID');!l()||window.ga&&i||function(e){return new Promise(function(t,n){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");i.async=!0,i.src=e,i.charset="utf8",r.appendChild(i),i.onload=t,i.onerror=n})}(o).catch(function(){console.error("[vue-analytics] An error occured trying to load "+o+". Please check your connection or if you have any Google Analytics blocker installed in your browser.")}),Promise.resolve("function"==typeof e?e():e).then(function(e){r({id:e})}).then(function(){return"function"==typeof t?t():t}).then(function(e){r({disabled:e}),e&&C(),f(),x(),function(){var e=T.router,t=T.autoTracking;t.page&&e&&(t.pageviewOnLoad&&v(e.currentRoute),T.router.afterEach(function(n,r){var i=t.skipSamePath,a=t.shouldRouterUpdate;i&&n.path===r.path||("function"!=typeof a||a(n,r))&&T.$vue.nextTick().then(function(){v(e.currentRoute)})}))}()})}},w=this,L=function(e){c("send","exception",{exDescription:e,exFatal:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})},D=function(e){if(T.autoTracking.exception){window.addEventListener("error",function(e){L(e.message)});var t=e.config.errorHandler;e.config.errorHandler=function(e,n,r){L(e.message),T.autoTracking.exceptionLogs&&(console.error("[vue-analytics] Error in "+r+": "+e.message),console.error(e)),"function"==typeof t&&t.call(w,e,n,r)}}},B=L,S=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};r(R({},t,{$vue:e})),"undefined"==typeof window||window.ga||(window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=Number(new Date)),e.directive("ga",W),e.prototype.$ga=e.$ga=G,D(e),A()},n.d(t,"onAnalyticsReady",function(){return s}),n.d(t,"analyticsMiddleware",function(){return P});var R=Object.assign||function(e){for(var t=1;ta*g)||b)for(n=0;nB&&zL&&(L=z);d/=(L-w)/(2*D),w=s.l2r(w),L=s.l2r(L),s.range=s._input.range=x=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}(o,s,h)?(f.push(t),h.push([o,s])):u=[0];var c=n.plotgroup.selectAll(".bg").data(u);c.enter().append("rect").classed("bg",!0),c.exit().remove(),c.each(function(){n.bg=c;var e=n.plotgroup.node();e.insertBefore(this,e.childNodes[0])})});var p=a._bgLayer.selectAll(".bg").data(f);p.enter().append("rect").classed("bg",!0),p.exit().remove(),p.each(function(e){a._plots[e].bg=r.select(this)});var v=[];return c.each(function(t){var n=a._plots[t],r=i.Axes.getFromId(e,t,"x"),o=i.Axes.getFromId(e,t,"y");r.setScale(),o.setScale(),n.bg&&a._has("cartesian")&&n.bg.call(u.setRect,r._offset-l.p,o._offset-l.p,r._length+2*l.p,o._length+2*l.p).call(s.fill,a.plot_bgcolor).style("stroke-width",0),n.clipId="clip"+a._uid+t+"plot";var c=a._defs.selectAll("g.clips").selectAll("#"+n.clipId).data([0]);c.enter().append("clipPath").attr({class:"plotclip",id:n.clipId}).append("rect"),c.selectAll("rect").attr({width:r._length,height:o._length}),n.plot.call(u.setTranslate,r._offset,o._offset),n.plot.call(u.setClipUrl,n.clipId);var d=u.crispRound(e,r.linewidth,1),f=u.crispRound(e,o.linewidth,1),h=l.p+f,p="M"+-h+",",y="h"+(r._length+2*h),g="free"===r.anchor&&-1===v.indexOf(r._id),m=l.h*(1-(r.position||0))+d/2%1,_=r.anchor===o._id&&(r.mirror||"top"!==r.side)||"all"===r.mirror||"allticks"===r.mirror||r.mirrors&&r.mirrors[o._id+"bottom"],T=o._length+l.p+d/2,b=r.anchor===o._id&&(r.mirror||"top"===r.side)||"all"===r.mirror||"allticks"===r.mirror||r.mirrors&&r.mirrors[o._id+"top"],M=-l.p-d/2,k=l.p,K=_?0:d,x=b?0:d,C=","+(-k-x)+"v"+(o._length+2*k+x+K),A="free"===o.anchor&&-1===v.indexOf(o._id),w=l.w*(o.position||0)+f/2%1,L=o.anchor===r._id&&(o.mirror||"right"!==o.side)||"all"===o.mirror||"allticks"===o.mirror||o.mirrors&&o.mirrors[r._id+"left"],D=-l.p-f/2,B=o.anchor===r._id&&(o.mirror||"right"===o.side)||"all"===o.mirror||"allticks"===o.mirror||o.mirrors&&o.mirrors[r._id+"right"],S=r._length+l.p+f/2;r._linepositions[t]=[_?T:void 0,b?M:void 0,g?m:void 0],r.anchor===o._id?r._linepositions[t][3]="top"===r.side?M:T:g&&(r._linepositions[t][3]=m),o._linepositions[t]=[L?D:void 0,B?S:void 0,A?w:void 0],o.anchor===r._id?o._linepositions[t][3]="right"===o.side?S:D:A&&(o._linepositions[t][3]=w);var z="translate("+r._offset+","+o._offset+")",G=z,W=z;g&&(G="translate("+r._offset+","+l.t+")",M+=o._offset-l.t,T+=o._offset-l.t),A&&(W="translate("+l.l+","+o._offset+")",D+=r._offset-l.l,S+=r._offset-l.l),a._has("cartesian")&&(n.xlines.attr("transform",G).attr("d",(_?p+T+y:"")+(b?p+M+y:"")+(g?p+m+y:"")||"M0,0").style("stroke-width",d+"px").call(s.stroke,r.showline?r.linecolor:"rgba(0,0,0,0)"),n.ylines.attr("transform",W).attr("d",(L?"M"+D+C:"")+(B?"M"+S+C:"")+(A?"M"+w+C:"")||"M0,0").attr("stroke-width",f+"px").call(s.stroke,o.showline?o.linecolor:"rgba(0,0,0,0)")),n.xaxislayer.attr("transform",G),n.yaxislayer.attr("transform",W),n.gridlayer.attr("transform",z),n.zerolinelayer.attr("transform",z),n.draglayer.attr("transform",z),g&&v.push(r._id),A&&v.push(o._id)}),i.Axes.makeClipPaths(e),t.drawMainTitle(e),d.manage(e),e._promises.length&&Promise.all(e._promises)},t.drawMainTitle=function(e){var t=e._fullLayout;c.draw(e,"gtitle",{propContainer:t,propName:"title",dfltName:"Plot",attributes:{x:t.width/2,y:t._size.t/2,"text-anchor":"middle"}})},t.doTraceStyle=function(e){for(var t=0;t0&&l.log("Clearing previous rejected promises from queue."),e._promises=[]},t.cleanLayout=function(e){var t,n;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1);var r=s.list({_fullLayout:e});for(t=0;t3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),"rotate"===e.dragmode&&(e.dragmode="orbit"),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var g=o.getSubplotIds(e,"gl3d");for(t=0;t0)return e.substr(0,t)}t.hasParent=function(e,t){for(var n=p(t);n;){if(n in e)return!0;n=p(n)}return!1}},function(e,t,n){"use strict";var r=n(107),i=n(32),a=n(109),l=n(33),o=n(162).sorterAsc,s=n(4);t.containerArrayMatch=n(167);var u=t.isAddVal=function(e){return"add"===e||i(e)},c=t.isRemoveVal=function(e){return null===e||"remove"===e};t.applyContainerArrayChanges=function(e,t,n,i){var d=t.astr,f=s.getComponentMethod(d,"supplyLayoutDefaults"),h=s.getComponentMethod(d,"draw"),p=s.getComponentMethod(d,"drawOne"),v=i.replot||i.recalc||f===a||h===a,y=e.layout,g=e._fullLayout;if(n[""]){Object.keys(n).length>1&&l.warn("Full array edits are incompatible with other edits",d);var m=n[""][""];if(c(m))t.set(null);else{if(!Array.isArray(m))return l.warn("Unrecognized full array edit value",d,m),!0;t.set(m)}return!v&&(f(y,g),h(e),!0)}var _,T,b,M,k,K,x,C=Object.keys(n).map(Number).sort(o),A=t.get(),w=A||[],L=r(g,d).get(),D=[],B=-1,S=w.length;for(_=0;_w.length-(x?0:1))l.warn("index out of range",d,b);else if(void 0!==K)k.length>1&&l.warn("Insertion & removal are incompatible with edits to the same index.",d,b),c(K)?D.push(b):x?("add"===K&&(K={}),w.splice(b,0,K),L&&L.splice(b,0,{})):l.warn("Unrecognized full object edit value",d,b,K),-1===B&&(B=b);else for(T=0;T=0;_--)w.splice(D[_],1),L&&L.splice(D[_],1);if(w.length?A||t.set(w):t.set(null),v)return!1;if(f(y,g),p!==a){var z;if(-1===B)z=C;else{for(S=Math.max(w.length,S),z=[],_=0;_=B);_++)z.push(b);for(_=B;_=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function A(e){e.selectAll(".select-outline").remove()}function w(e){r.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function L(e){return-1!==["lasso","select"].indexOf(e)}function D(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,b)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}e.exports=function(e,t,n,B,S,z,G,W){var O,P,R,j,E,I,N,F,$,V,H,q,U,Y=e._fullLayout,X=e._fullLayout._zoomlayer,Z=G+W==="nsew";function J(){P=[t.xaxis],R=[t.yaxis];var n=P[0],r=R[0];I=n._length,N=r._length;var i=Y._axisConstraintGroups,a=[n._id],l=[r._id];O=[t].concat(G&&W?t.overlays:[]);for(var s=1;s.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform","translate("+n+", "+r+")").attr("d",i+"Z")}(X,re,j,E,ie="M0,0H"+I+"V"+N+"H0V0"),se=function(e,t,n){return e.append("path").attr("class","zoombox-corners").style({fill:u.background,stroke:u.defaultLine,"stroke-width":1,opacity:0}).attr("transform","translate("+t+", "+n+")").attr("d","M0,0Z")}(X,j,E),A(X)}(0,n,r)):"pan"===a?(ue.moveFn=_e,ue.doneFn=he,A(X)):L(a)&&(ue.xaxes=P,ue.yaxes=R,g(t,n,r,ue,a))}};f.init(ue);var ce={};function de(t,n){if(e._transitioningWithDuration)return!1;var r=Math.max(0,Math.min(I,t+ee)),i=Math.max(0,Math.min(N,n+te)),a=Math.abs(r-ee),l=Math.abs(i-te);function o(){le="",ne.r=ne.l,ne.t=ne.b,se.attr("d","M0,0Z")}ne.l=Math.min(ee,r),ne.r=Math.max(ee,r),ne.t=Math.min(te,i),ne.b=Math.max(te,i),H?a>b||l>b?(le="xy",a/I>l/N?(l=a*N/I,te>i?ne.t=te-l:ne.b=te+l):(a=l*I/N,ee>r?ne.l=ee-a:ne.r=ee+a),se.attr("d",D(ne))):o():!$||l.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}(oe,se,ne,ie,ae,re),ae=!0}function fe(t,n){if(Math.min(ne.h,ne.w)<2*T)return 2===n&&be(),w(e);"xy"!==le&&"x"!==le||K(P,ne.l/I,ne.r/I,ce,q),"xy"!==le&&"y"!==le||K(R,(N-ne.b)/N,(N-ne.t)/N,ce,U),w(e),Me(le),M&&e.data&&e._context.showTips&&(o.notifier("Double-click to
zoom back out","long"),M=!1)}function he(t,n){var i=1===(G+W).length;if(t)Me();else if(2!==n||i){if(1===n&&i){var l=G?R[0]:P[0],o="s"===G||"w"===W?0:1,u=l._name+".range["+o+"]",c=function(e,t){var n,i=e.range[t],a=Math.abs(i-e.range[1-t]);return"date"===e.type?i:"log"===e.type?(n=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,r.format("."+n+"g")(Math.pow(10,i))):(n=Math.floor(Math.log(Math.abs(i))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,r.format("."+String(n)+"g")(i))}(l,o),d="left",f="middle";if(l.fixedrange)return;G?(f="n"===G?"top":"bottom","right"===l.side&&(d="right")):"e"===W&&(d="right"),e._context.showAxisRangeEntryBoxes&&r.select(Q).call(s.makeEditable,{gd:e,immediate:!0,background:Y.paper_bgcolor,text:String(c),fill:l.tickfont?l.tickfont.color:"#444",horizontalAlign:d,verticalAlign:f}).on("edit",function(t){var n=l.d2r(t);void 0!==n&&a.relayout(e,u,n)})}}else be()}var pe=[0,0,I,N],ve=null,ye=_.REDRAWDELAY,ge=t.mainplot?Y._plots[t.mainplot]:t;function me(t){if(e._context.scrollZoom||Y._enablescrollzoom){if(e._transitioningWithDuration)return o.pauseEvent(t);var n=e.querySelector(".plotly");if(J(),!(n.scrollHeight-n.clientHeight>10||n.scrollWidth-n.clientWidth>10)){clearTimeout(ve);var r=-t.deltaY;if(isFinite(r)||(r=t.wheelDelta/10),isFinite(r)){var i,a=Math.exp(-Math.min(Math.max(r,-20),20)/100),l=ge.draglayer.select(".nsewdrag").node().getBoundingClientRect(),s=(t.clientX-l.left)/l.width,u=(l.bottom-t.clientY)/l.height;if(W||H){for(W||(s=.5),i=0;i4/3-o?l:o}},function(e,t,n){"use strict";e.exports=function(){var e,t=[],n=-1,r=!1;function i(e,t){return e?(r=!0,e[t](),r=!1,this):this}return{add:function(e){return r?this:(t.splice(n+1,t.length-n),t.push(e),n=t.length-1,this)},setCallback:function(t){e=t},undo:function(){var r=t[n];return r?(i(r,"undo"),n-=1,e&&e(r.undo),this):this},redo:function(){var r=t[n+1];return r?(i(r,"redo"),n+=1,e&&e(r.redo),this):this},clear:function(){t=[],n=-1},hasUndo:function(){return-1!==n},hasRedo:function(){return n*:not(.chart-root)").remove(),t=t?s(t,n):n,i||(i=l.Axis()),a=l.adapter.plotly().convert(t),i.config(a).render(c),e.data=t.data,e.layout=t.layout,u.fillLayout(e),t}return f.isPolar=!0,f.svg=function(){return i.svg()},f.getConfig=function(){return t},f.getLiveConfig=function(){return l.adapter.plotly().convert(i.getLiveConfig(),!0)},f.getLiveScales=function(){return{t:i.angularScale(),r:i.radialScale()}},f.setUndoPoint=function(){var e,r,i=this,a=l.util.cloneJson(t);e=a,r=n,d.add({undo:function(){r&&i(r)},redo:function(){i(e)}}),n=l.util.cloneJson(a)},f.undo=function(){d.undo()},f.redo=function(){d.redo()},f},u.fillLayout=function(e){var t=r.select(e).selectAll(".plot-container"),n=t.selectAll(".svg-container"),i=e.framework&&e.framework.svg&&e.framework.svg(),l={width:800,height:600,paper_bgcolor:a.background,_container:t,_paperdiv:n,_paper:i};e._fullLayout=s(l,e.layout)}},function(e,t,n){"use strict";(e.exports=n(144)).manager=n(268)},function(e,t,n){"use strict";var r=n(1),i=n(2),a=n(8),l=n(0),o=n(88),s=n(145),u=n(4),c=n(9),d=n(269),f=n(143),h=n(7),p=n(30),v=n(31),y=n(14),g=n(255),m=n(254),_=n(252),T=n(15),b=n(251),M=b.enforce,k=b.clean,K=n(18);function x(e,t){e._fullLayout._paperdiv.style("background","white"),a.defaultConfig.setBackground(e,t)}function C(e,t){var n,r,i=t+1,a=[];for(n=0;n=e.data.length||i<-e.data.length)throw new Error(n+" must be valid indices for gd.data.");if(t.indexOf(i,r+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+n+" must be unique.")}}function w(e,t,n){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),A(e,t,"currentIndices"),void 0===n||Array.isArray(n)||(n=[n]),void 0!==n&&A(e,n,"newIndices"),void 0!==n&&t.length!==n.length)throw new Error("current and new indices must be of equal length.")}function L(e,t,n,r,a,o){!function(e,t,n,r){var i=l.isPlainObject(r);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!l.isPlainObject(t))throw new Error("update must be a key:value object");if(void 0===n)throw new Error("indices must be an integer or array of integers");for(var a in A(e,n,"indices"),t){if(!Array.isArray(t[a])||t[a].length!==n.length)throw new Error("attribute "+a+" must be an array of length equal to indices array length");if(i&&(!(a in r)||!Array.isArray(r[a])||r[a].length!==t[a].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}(e,t,n,r);for(var s,u,c,d=function(e,t,n,r){var a,o,s,u,c,d=l.isPlainObject(r),f=[];for(var h in Array.isArray(n)||(n=[n]),n=C(n,e.data.length-1),t)for(var p=0;p=0&&cN.range[0]?[1,2]:[2,1]);else{var V=N.range[0],H=N.range[1];F?(V<=0&&H<=0&&k(P+".autorange",!0),V<=0?V=H/1e6:H<=0&&(H=V/1e6),k(P+".range[0]",Math.log(V)/Math.LN10),k(P+".range[1]",Math.log(H)/Math.LN10)):(k(P+".range[0]",Math.pow(10,V)),k(P+".range[1]",Math.pow(10,H)))}else k(P+".autorange",!0);u.getComponentMethod("annotations","convertCoords")(e,j,B,k),u.getComponentMethod("images","convertCoords")(e,j,B,k)}else k(P+".autorange",!0);l.nestedProperty(s,P+"._inputRange").set(null)}else if(W.match(T.AX_NAME_PATTERN)){var q=l.nestedProperty(s,L).get(),U=(B||{}).type;U&&"-"!==U||(U="linear"),u.getComponentMethod("annotations","convertCoords")(e,q,U,k),u.getComponentMethod("images","convertCoords")(e,q,U,k)}var Y=g.containerArrayMatch(L);if(Y){n=Y.array,r=Y.index;var X=Y.property,Z=(l.nestedProperty(o,n)||[])[r]||{};if(""===r)-1===L.indexOf("updatemenus")&&(_.docalc=!0);else if(""===X){var J=B;g.isAddVal(B)?M[L]=null:g.isRemoveVal(B)?(M[L]=Z,J=Z):l.warn("unrecognized full object value",t),(x(J,"x")||x(J,"y")&&-1===L.indexOf("updatemenus"))&&(_.docalc=!0)}else!x(Z,"x")&&!x(Z,"y")||l.containsAny(L,["color","opacity","align","dash","updatemenus"])||(_.docalc=!0);h[n]||(h[n]={});var Q=h[n][r];Q||(Q=h[n][r]={}),Q[X]=B,delete t[L]}else if("reverse"===W)R.range?R.range.reverse():(k(P+".autorange",!0),R.range=[1,0]),j.autorange?_.docalc=!0:_.doplot=!0;else{var ee=String(D.parts[1]||"");0===G.indexOf("scene")?"camera"===D.parts[1]?_.docamera=!0:_.doplot=!0:0===G.indexOf("geo")?_.doplot=!0:0===G.indexOf("ternary")?_.doplot=!0:"paper_bgcolor"===L?_.doplot=!0:"margin"===G||"autorange"===ee||"rangemode"===ee||"type"===ee||"domain"===ee||"fixedrange"===ee||"scaleanchor"===ee||"scaleratio"===ee||-1!==L.indexOf("calendar")||L.match(/^(bar|box|font)/)?_.docalc=!0:!s._has("gl2d")||-1===L.indexOf("axis")&&"plot_bgcolor"!==L?!s._has("gl2d")||"dragmode"!==L||"lasso"!==B&&"select"!==B||"lasso"===E||"select"===E?"hiddenlabels"===L?_.docalc=!0:-1!==G.indexOf("legend")?_.dolegend=!0:-1!==L.indexOf("title")?_.doticks=!0:-1!==G.indexOf("bgcolor")?_.dolayoutstyle=!0:S>1&&l.containsAny(ee,["tick","exponent","grid","zeroline"])?_.doticks=!0:-1!==L.indexOf(".linewidth")&&-1!==L.indexOf("axis")?_.doticks=_.dolayoutstyle=!0:S>1&&-1!==ee.indexOf("line")?_.dolayoutstyle=!0:S>1&&"mirror"===ee?_.doticks=_.dolayoutstyle=!0:"margin.pad"===L?_.doticks=_.dolayoutstyle=!0:-1!==["hovermode","dragmode"].indexOf(L)||-1!==L.indexOf("spike")?_.domodebar=!0:-1===["height","width","autosize"].indexOf(L)&&(_.doplot=!0):_.docalc=!0:_.doplot=!0,D.set(B)}}}for(n in h){g.applyContainerArrayChanges(e,l.nestedProperty(o,n),h[n],_)||(_.doplot=!0)}var te=s._axisConstraintGroups;for(C in A)for(r=0;r=i.length?i[0]:i[e]:i}function s(e){return Array.isArray(a)?e>=a.length?a[0]:a[e]:a}function u(e,t){var n=0;return function(){if(e&&++n===t)return e()}}return void 0===r._frameWaitingCnt&&(r._frameWaitingCnt=0),new Promise(function(a,d){function f(){r._currentFrame&&r._currentFrame.onComplete&&r._currentFrame.onComplete();var t=r._currentFrame=r._frameQueue.shift();if(t){var n=t.name?t.name.toString():null;e._fullLayout._currentFrame=n,r._lastFrameAt=Date.now(),r._timeToNext=t.frameOpts.duration,c.transition(e,t.frame.data,t.frame.layout,m.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then(function(){t.onComplete&&t.onComplete()}),e.emit("plotly_animatingframe",{name:n,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(r._animationRaf),r._animationRaf=null}function h(){e.emit("plotly_animating"),r._lastFrameAt=-1/0,r._timeToNext=0,r._runningTransitions=0,r._currentFrame=null;var t=function(){r._animationRaf=window.requestAnimationFrame(t),Date.now()-r._lastFrameAt>r._timeToNext&&f()};t()}var p,v,y=0;function g(e){return Array.isArray(i)?y>=i.length?e.transitionOpts=i[y]:e.transitionOpts=i[0]:e.transitionOpts=i,y++,e}var _=[],T=void 0===t||null===t,b=Array.isArray(t);if(!T&&!b&&l.isPlainObject(t))_.push({type:"object",data:g(l.extendFlat({},t))});else if(T||-1!==["string","number"].indexOf(typeof t))for(p=0;p0&&K<_.length-1){var x=[];for(p=0;p<_.length;p++)v=_[p],("byname"!==_[p].type||p>K)&&x.push(v);_=x}}_.length>0?function(t){if(0!==t.length){for(var i=0;i=0;r--)if(l.isPlainObject(t[r])){var v=(f[t[r].name]||{}).name,y=t[r].name;v&&y&&"number"==typeof y&&f[v]&&(u++,l.warn('addFrames: overwriting frame "'+f[v].name+'" with a frame whose name of type "number" also equates to "'+v+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),u>5&&l.warn("addFrames: This API call has yielded too many warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),p.push({frame:c.supplyFrameDefaults(t[r]),index:n&&void 0!==n[r]&&null!==n[r]?n[r]:h+r})}p.sort(function(e,t){return e.index>t.index?-1:e.index=0;r--){if("number"==typeof(i=p[r].frame).name&&l.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;f[i.name="frame "+e._transitionData._counter++];);if(f[i.name]){for(a=0;a=0;n--)r=t[n],a.push({type:"delete",index:r}),o.unshift({type:"insert",index:r,value:i[r]});var u=c.modifyFrames,d=c.modifyFrames,f=[e,o],h=[e,a];return s&&s.add(e,u,f,d,h),c.modifyFrames(e,a)},a.purge=function(e){var t=(e=m.getGraphDiv(e))._fullLayout||{},n=e._fullData||[];return c.cleanPlot([],{},n,t),c.purge(e),o.purge(e),t._container&&t._container.remove(),delete e._context,delete e._replotPending,delete e._mouseDownTime,delete e._legendMouseDownTime,delete e._hmpixcount,delete e._hmlumcount,e}},function(e,t,n){"use strict";e.exports=function(e,t){var n=document.createElement("a"),r="download"in n,i=/Version\/[\d\.]+.*Safari/.test(navigator.userAgent);return new Promise(function(a,l){"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent)&&l(new Error("IE < 10 unsupported")),i&&(document.location.href="data:application/octet-stream"+e.slice(e.search(/[,;]/)),a(t)),t||(t="download"),r&&(n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),a(t)),"undefined"!=typeof navigator&&navigator.msSaveBlob&&(navigator.msSaveBlob(new Blob([e]),t),a(t)),l(new Error("download error"))})}},function(e,t,n){"use strict";var r=n(8),i=n(9),a=n(6),l=n(0),o=n(94),s=n(95),u=e.exports={};function c(e,t){var n,i,l=t.currentTarget,o=l.getAttribute("data-attr"),s=l.getAttribute("data-val")||!0,u=e._fullLayout,c={},d=a.list(e,null,!0),f="on";if("zoom"===o){var h,p="in"===s?.5:2,v=(1+p)/2,y=(1-p)/2;for(i=0;i1)return y(["resetViews","toggleHover"]),o(v,n);c&&(y(["zoom3d","pan3d","orbitRotation","tableRotation"]),y(["resetCameraDefault3d","resetCameraLastSave3d"]),y(["hoverClosest3d"]));d&&(y(["zoomInGeo","zoomOutGeo","resetGeo"]),y(["hoverClosestGeo"]));var g=function(e){for(var t=r.list({_fullLayout:e},null,!0),n=!0,i=0;i0?".":"")+a;i.isPlainObject(l)?s(l,t,o,r+1):t(o,a,l)}})}t.manageCommandObserver=function(e,n,r,l){var o={},s=!0;n&&n._commandObserver&&(o=n._commandObserver),o.cache||(o.cache={}),o.lookupTable={};var u=t.hasSimpleAPICommandBindings(e,r,o.lookupTable);if(n&&n._commandObserver){if(u)return o;if(n._commandObserver.remove)return n._commandObserver.remove(),n._commandObserver=null,o}if(u){a(e,u,o.cache),o.check=function(){if(s){var t=a(e,u,o.cache);return t.changed&&l&&void 0!==o.lookupTable[t.value]&&(o.disable(),Promise.resolve(l({value:t.value,type:u.type,prop:u.prop,traces:u.traces,index:o.lookupTable[t.value]})).then(o.enable,o.enable)),t.changed}};for(var c=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],d=0;d0;e.each(function(e){var t,u=e[0].trace,c=u.error_x||{},d=u.error_y||{};u.ids&&(t=function(e){return e.id});var f=a.hasMarkers(u)&&u.marker.maxdisplayed>0;if(d.visible||c.visible){var h=r.select(this).selectAll("g.errorbar").data(e,t);h.exit().remove(),h.style("opacity",1);var p=h.enter().append("g").classed("errorbar",!0);s&&p.style("opacity",0).transition().duration(n.duration).style("opacity",1),h.each(function(e){var t=r.select(this),a=function(e,t,n){var r={x:t.c2p(e.x),y:n.c2p(e.y)};void 0!==e.yh&&(r.yh=n.c2p(e.yh),r.ys=n.c2p(e.ys),i(r.ys)||(r.noYS=!0,r.ys=n.c2p(e.ys,!0)));void 0!==e.xh&&(r.xh=t.c2p(e.xh),r.xs=t.c2p(e.xs),i(r.xs)||(r.noXS=!0,r.xs=t.c2p(e.xs,!0)));return r}(e,l,o);if(!f||e.vis){var u;if(d.visible&&i(a.x)&&i(a.yh)&&i(a.ys)){var h=d.width;u="M"+(a.x-h)+","+a.yh+"h"+2*h+"m-"+h+",0V"+a.ys,a.noYS||(u+="m-"+h+",0h"+2*h);var p=t.select("path.yerror");!p.size()?p=t.append("path").classed("yerror",!0):s&&(p=p.transition().duration(n.duration).ease(n.easing)),p.attr("d",u)}if(c.visible&&i(a.y)&&i(a.xh)&&i(a.xs)){var v=(c.copy_ystyle?d:c).width;u="M"+a.xh+","+(a.y-v)+"v"+2*v+"m0,-"+v+"H"+a.xs,a.noXS||(u+="m0,-"+v+"v"+2*v);var y=t.select("path.xerror");!y.size()?y=t.append("path").classed("xerror",!0):s&&(y=y.transition().duration(n.duration).ease(n.easing)),y.attr("d",u)}}})}})}},function(e,t,n){"use strict";function r(e,t){return"percent"===e?function(e){return Math.abs(e*t/100)}:"constant"===e?function(){return Math.abs(t)}:"sqrt"===e?function(e){return Math.sqrt(Math.abs(e))}:void 0}e.exports=function(e){var t=e.type,n=e.symmetric;if("data"===t){var i=e.array,a=e.arrayminus;return n||void 0===a?function(e,t){var n=+i[t];return[n,n]}:function(e,t){return[+a[t],+i[t]]}}var l=r(t,e.value),o=r(t,e.valueminus);return n||void 0===e.valueminus?function(e){var t=l(e);return[t,t]}:function(e){return[o(e),l(e)]}}},function(e,t,n){"use strict";var r=n(0),i=n(18).id2name;e.exports=function(e,t,n,a,l){var o=l._axisConstraintGroups,s=t._id,u=s.charAt(0);if(!t.fixedrange&&(n("constrain"),r.coerce(e,t,{constraintoward:{valType:"enumerated",values:"x"===u?["left","center","right"]:["bottom","middle","top"],dflt:"x"===u?"center":"middle"}},"constraintoward"),e.scaleanchor)){var c=function(e,t,n,r){var a,l,o,s,u=r[i(t)].type,c=[];for(l=0;l0;a&&(r="array");var l=n("categoryorder",r);"array"===l&&n("categoryarray"),a||"array"!==l||(t.categoryorder="trace")}}},function(e,t,n){"use strict";var r=n(4),i=n(151),a=n(18).name2id;function l(e){return{v:"x",h:"y"}[e.orientation||"v"]}function o(e,t){var n=l(e),i=r.traceIs(e,"box"),a=r.traceIs(e._fullInput||{},"candlestick");return i&&!a&&t===n&&void 0===e[n]&&void 0===e[n+"0"]}e.exports=function(e,t,n,s,u){u&&(t._name=u,t._id=a(u)),"-"===n("type")&&(!function(e,t){if("-"!==e.type)return;var n=e._id,a=n.charAt(0);-1!==n.indexOf("scene")&&(n=a);var s=function(e,t,n){for(var r=0;r0?Math.max(t,i):0}}},function(e,t,n){"use strict";e.exports={entityToUnicode:{mu:"μ","#956":"μ",amp:"&","#28":"&",lt:"<","#60":"<",gt:">","#62":">",nbsp:" ","#160":" ",times:"×","#215":"×",plusmn:"±","#177":"±",deg:"°","#176":"°"}}},function(e,t,n){"use strict";var r=n(1),i=n(21),a=n(2),l=n(3);function o(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return i(t).toRgbString()}e.exports=function(e,t){t=t||{};for(var n=e.domain,s=e.range,u=s.length,c=new Array(u),d=0;d/g),l=0;le.length-1)return e[e.length-1];var n=t%1;return n*e[Math.ceil(t)]+(1-n)*e[Math.floor(t)]}},function(e,t,n){"use strict";var r,i,a=n(1),l=n(2),o=n(33).error,s=n(166),u=n(16),c=u.BADNUM,d=u.ONEDAY,f=u.ONEHOUR,h=u.ONEMIN,p=u.ONESEC,v=u.EPOCHJD,y=n(4),g=a.time.format.utc,m=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d:?\d\d)?)?)?)?)?\s*$/m,_=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d:?\d\d)?)?)?)?)?\s*$/m,T=(new Date).getFullYear()-70;function b(e){return e&&y.componentsRegistry.calendars&&"string"==typeof e&&"gregorian"!==e}function M(e,t){return String(e+Math.pow(10,t)).substr(1)}t.dateTick0=function(e,t){return b(e)?t?y.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:y.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"},t.dfltRange=function(e){return b(e)?y.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]},t.isJSDate=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.getTime},t.dateTime2ms=function(e,n){if(t.isJSDate(e))return(e=Number(e)-e.getTimezoneOffset()*h)>=r&&e<=i?e:c;if("string"!=typeof e&&"number"!=typeof e)return c;e=String(e);var a=b(n),l=e.charAt(0);!a||"G"!==l&&"g"!==l||(e=e.substr(1),n="");var o=a&&"chinese"===n.substr(0,7),s=e.match(o?_:m);if(!s)return c;var u=s[1],g=s[3]||"1",M=Number(s[5]||1),k=Number(s[7]||0),K=Number(s[9]||0),x=Number(s[11]||0);if(a){if(2===u.length)return c;var C;u=Number(u);try{var A=y.getComponentMethod("calendars","getCal")(n);if(o){var w="i"===g.charAt(g.length-1);g=parseInt(g,10),C=A.newDate(u,A.toMonthIndex(u,g,w),M)}else C=A.newDate(u,Number(g),M)}catch(e){return c}return C?(C.toJD()-v)*d+k*f+K*h+x*p:c}u=2===u.length?(Number(u)+2e3-T)%100+T:Number(u),g-=1;var L=new Date(Date.UTC(2e3,g,M,k,K));return L.setUTCFullYear(u),L.getUTCMonth()!==g?c:L.getUTCDate()!==M?c:L.getTime()+x*p},r=t.MIN_MS=t.dateTime2ms("-9999"),i=t.MAX_MS=t.dateTime2ms("9999-12-31 23:59:59.9999"),t.isDateTime=function(e,n){return t.dateTime2ms(e,n)!==c};var k=90*d,K=3*f,x=5*h;function C(e,t,n,r,i){if((t||n||r||i)&&(e+=" "+M(t,2)+":"+M(n,2),(r||i)&&(e+=":"+M(r,2),i))){for(var a=4;i%10==0;)a-=1,i/=10;e+="."+M(i,a)}return e}t.ms2DateTime=function(e,t,n){if("number"!=typeof e||!(e>=r&&e<=i))return c;t||(t=0);var a,l,o,u,m,_,T=Math.floor(10*s(e+.05,1)),M=Math.round(e-T/10);if(b(n)){var A=Math.floor(M/d)+v,w=Math.floor(s(e,d));try{a=y.getComponentMethod("calendars","getCal")(n).fromJD(A).formatDate("yyyy-mm-dd")}catch(e){a=g("G%Y-%m-%d")(new Date(M))}if("-"===a.charAt(0))for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;l=t=r+d&&e<=i-d))return c;var t=Math.floor(10*s(e+.05,1)),n=new Date(Math.round(e-t/10));return C(a.time.format("%Y-%m-%d")(n),n.getHours(),n.getMinutes(),n.getSeconds(),10*n.getUTCMilliseconds()+t)},t.cleanDate=function(e,n,r){if(t.isJSDate(e)||"number"==typeof e){if(b(r))return o("JS Dates and milliseconds are incompatible with world calendars",e),n;if(!(e=t.ms2DateTimeLocal(+e))&&void 0!==n)return n}else if(!t.isDateTime(e,r))return o("unrecognized date",e),n;return e};var A=/%\d?f/g;var w=[59,59.9,59.99,59.999,59.9999];function L(e,t){var n=s(e+.05,d),r=M(Math.floor(n/f),2)+":"+M(s(Math.floor(n/h),60),2);if("M"!==t){l(t)||(t=0);var i=(100+Math.min(s(e/p,60),w[t])).toFixed(t).substr(1);t>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),r+=":"+i}return r}var D=g("%Y"),B=g("%b %Y"),S=g("%b %-d"),z=g("%b %-d, %Y");function G(e){return e.formatDate("yyyy")}t.formatDate=function(e,t,n,r){var i,a;if(r=b(r)&&r,t)return function(e,t,n){e=e.replace(A,function(e){var n=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(n).substr(2).replace(/0+$/,"")||"0"});var r=new Date(Math.floor(t+.05));if(b(n))try{e=y.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(e){return"Invalid"}return g(e)(r)}(t,e,r);if(r)try{var l=Math.floor((e+.05)/d)+v,o=y.getComponentMethod("calendars","getCal")(r).fromJD(l);"y"===n?a=G(o):"m"===n?a=function(e){return e.formatDate("M yyyy")}(o):"d"===n?(i=G(o),a=function(e){return e.formatDate("M d")}(o)):(i=function(e){return e.formatDate("M d, yyyy")}(o),a=L(e,n))}catch(e){return"Invalid"}else{var s=new Date(Math.floor(e+.05));"y"===n?a=D(s):"m"===n?a=B(s):"d"===n?(i=D(s),a=S(s)):(i=z(s),a=L(e,n))}return a+(i?"\n"+i:"")};var W=3*d;t.incrementMonth=function(e,t,n){n=b(n)&&n;var r=s(e,d);if(e=Math.round(e-r),n)try{var i=Math.round(e/d)+v,a=y.getComponentMethod("calendars","getCal")(n),l=a.fromJD(i);return t%12?a.add(l,t,"m"):a.add(l,t/12,"y"),(l.toJD()-v)*d+r}catch(t){o("invalid ms "+e+" in calendar "+n)}var u=new Date(e+W);return u.setUTCMonth(u.getUTCMonth()+t)+r-W},t.findExactDates=function(e,t){for(var n,r,i=0,a=0,o=0,s=0,u=b(t)&&y.getComponentMethod("calendars","getCal")(t),c=0;ci.max?t.set(n):t.set(+e)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max"],coerceFunction:function(e,t,n,i){e%1||!r(e)||void 0!==i.min&&ei.max?t.set(n):t.set(+e)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(e,t,n,r){if("string"!=typeof e){var i="number"==typeof e;!0!==r.strict&&i?t.set(String(e)):t.set(n)}else r.noBlank&&!e?t.set(n):t.set(e)}},color:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,n){i(e).isValid()?t.set(e):t.set(n)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",o.join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){t.set(l(e,n))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){"auto"===e?t.set("auto"):r(e)?(Math.abs(e)>180&&(e-=360*Math.round(e/360)),t.set(+e)):t.set(n)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:[],coerceFunction:function(e,t,n){var r=n.length;"string"==typeof e&&e.substr(0,r)===n&&u.test(e.substr(r))?t.set(e):t.set(n)},validateFunction:function(e,t){var n=t.dflt,r=n.length;return e===n||"string"==typeof e&&!(e.substr(0,r)!==n||!u.test(e.substr(r)))}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(e,t,n,r){if("string"==typeof e)if(-1===(r.extras||[]).indexOf(e)){for(var i=e.split("+"),a=0;a0)}function o(e){return e.name||e.replace(/-/gi,"")}function s(){return new Promise(function(e,t){var n=setInterval(function(){"undefined"!=typeof window&&window.ga&&(e(),clearInterval(n))},10)})}function u(e,t){return i().length>1?o(t)+"."+e:e}function c(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?k({},T.fields,{name:n}):T.fields;window.ga("create",t.id||t,"auto",r)}),T.beforeFirstHit();var t=T.ecommerce;if(t.enabled){var n=t.enhanced?"ec":"ecommerce";t.options?c("require",n,t.options):c("require",n)}T.linkers.length>0&&(c("require","linker"),c("linker:autoLink",T.linkers)),T.debug.sendHitTask||d("sendHitTask",null)}function h(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0])||arguments[0];"undefined"!=typeof window&&i().forEach(function(t){window["ga-disable-"+t]=e})},A=function(){if("undefined"!=typeof document&&"undefined"!=typeof window){var e=(T.wait,T.id),t=T.disabled,n=T.debug,i=T.disableScriptLoader,a=n.enabled?"analytics_debug":"analytics",o="https://www.google-analytics.com/"+a+".js";if(!e)throw new Error('[vue-analytics] Missing the "id" parameter. Add at least one tracking domain ID');!l()||window.ga&&i||function(e){return new Promise(function(t,n){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");i.async=!0,i.src=e,i.charset="utf8",r.appendChild(i),i.onload=t,i.onerror=n})}(o).catch(function(){console.error("[vue-analytics] An error occured trying to load "+o+". Please check your connection or if you have any Google Analytics blocker installed in your browser.")}),Promise.resolve("function"==typeof e?e():e).then(function(e){r({id:e})}).then(function(){return"function"==typeof t?t():t}).then(function(e){r({disabled:e}),e&&C(),f(),x(),function(){var e=T.router,t=T.autoTracking;t.page&&e&&(t.pageviewOnLoad&&v(e.currentRoute),T.router.afterEach(function(n,r){var i=t.skipSamePath,a=t.shouldRouterUpdate;i&&n.path===r.path||("function"!=typeof a||a(n,r))&&T.$vue.nextTick().then(function(){v(e.currentRoute)})}))}()})}},w=this,L=function(e){c("send","exception",{exDescription:e,exFatal:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})},D=function(e){if(T.autoTracking.exception){window.addEventListener("error",function(e){L(e.message)});var t=e.config.errorHandler;e.config.errorHandler=function(e,n,r){L(e.message),T.autoTracking.exceptionLogs&&(console.error("[vue-analytics] Error in "+r+": "+e.message),console.error(e)),"function"==typeof t&&t.call(w,e,n,r)}}},B=L,S=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};r(R({},t,{$vue:e})),"undefined"==typeof window||window.ga||(window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=Number(new Date)),e.directive("ga",W),e.prototype.$ga=e.$ga=G,D(e),A()},n.d(t,"onAnalyticsReady",function(){return s}),n.d(t,"analyticsMiddleware",function(){return P});var R=Object.assign||function(e){for(var t=1;t=0&&Math.floor(t)===t&&isFinite(e)}function c(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function d(e){var t=parseFloat(e);return isNaN(t)?e:t}function f(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}function p(e,t){return Ut.call(e,t)}function v(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function y(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function g(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function m(e,t){for(var n in t)e[n]=t[n];return e}function _(e){for(var t={},n=0;n0&&(ee((s=e(s,(n||"")+"_"+o))[0])&&ee(c)&&(d[u]=A(c.text+s[0].text),s.shift()),d.push.apply(d,s)):l(s)?ee(c)?d[u]=A(c.text+s):""!==s&&d.push(A(s)):ee(s)&&ee(c)?d[u]=A(c.text+s.text):(a(t._isVList)&&i(s.tag)&&r(s.key)&&i(n)&&(s.key="__vlist"+n+"_"+o+"__"),d.push(s)));return d}(e):void 0}function ee(e){return i(e)&&i(e.text)&&function(e){return!1===e}(e.isComment)}function te(e,t){return(e.__esModule||xn&&"Module"===e[Symbol.toStringTag])&&(e=e.default),o(e)?t.extend(e):e}function ne(e){return e.isComment&&e.asyncFactory}function re(e){if(Array.isArray(e))for(var t=0;t=0||n.indexOf(e[i])<0)&&r.push(e[i]);return r}return e}function Ie(e){this._init(e)}function Ne(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var a=e.name||n.options.name,l=function(e){this._init(e)};return(l.prototype=Object.create(n.prototype)).constructor=l,l.cid=t++,l.options=R(n.options,e),l.super=n,l.options.props&&function(e){var t=e.options.props;for(var n in t)pe(e.prototype,"_props",n)}(l),l.options.computed&&function(e){var t=e.options.computed;for(var n in t)ye(e.prototype,n,t[n])}(l),l.extend=n.extend,l.mixin=n.mixin,l.use=n.use,rn.forEach(function(e){l[e]=n[e]}),a&&(l.options.components[a]=l),l.superOptions=n.options,l.extendOptions=e,l.sealedOptions=m({},l.options),i[r]=l,l}}function Fe(e){return e&&(e.Ctor.options.name||e.tag)}function $e(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!function(e){return"[object RegExp]"===Ht.call(e)}(e)&&e.test(t)}function Ve(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var l=n[a];if(l){var o=Fe(l.componentOptions);o&&!t(o)&&He(n,a,r,i)}}}function He(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,h(n,t)}function qe(e){for(var t=e.data,n=e,r=e;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Ue(r.data,t));for(;i(n=n.parent);)n&&n.data&&(t=Ue(t,n.data));return function(e,t){return i(e)||i(t)?Ye(e,Xe(t)):""}(t.staticClass,t.class)}function Ue(e,t){return{staticClass:Ye(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Ye(e,t){return e?t?e+" "+t:e:t||""}function Xe(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,a=e.length;r-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function gt(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function mt(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&m(t,Jr(e.name||"v")),m(t,e),t}return"string"==typeof e?Jr(e):void 0}}function _t(e){li(function(){li(e)})}function Tt(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),yt(e,t))}function bt(e,t){e._transitionClasses&&h(e._transitionClasses,t),gt(e,t)}function Mt(e,t,n){var r=kt(e,t),i=r.type,a=r.timeout,l=r.propCount;if(!i)return n();var o=i===ei?ri:ai,s=0,u=function(){e.removeEventListener(o,c),n()},c=function(t){t.target===e&&++s>=l&&u()};setTimeout(function(){s0&&(n=ei,c=l,d=a.length):t===ti?u>0&&(n=ti,c=u,d=s.length):(c=Math.max(l,u),d=(n=c>0?l>u?ei:ti:null)?n===ei?a.length:s.length:0),{type:n,timeout:c,propCount:d,hasTransform:n===ei&&oi.test(r[ni+"Property"])}}function Kt(e,t){for(;e.length1}function Dt(e,t){!0!==t.data.show&&Ct(t)}function Bt(e,t,n){St(e,t),(hn||vn)&&setTimeout(function(){St(e,t)},0)}function St(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var a,l,o=0,s=e.options.length;o-1,l.selected!==a&&(l.selected=a);else if(b(Gt(l),r))return void(e.selectedIndex!==o&&(e.selectedIndex=o));i||(e.selectedIndex=-1)}}function zt(e,t){return t.every(function(t){return!b(t,e)})}function Gt(e){return"_value"in e?e._value:e.value}function Wt(e){e.target.composing=!0}function Ot(e){e.target.composing&&(e.target.composing=!1,Pt(e.target,"input"))}function Pt(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Rt(e){return!e.componentInstance||e.data&&e.data.transition?e:Rt(e.componentInstance._vnode)}function Et(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Et(re(t.children)):e}function jt(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var a in i)t[Xt(a)]=i[a];return t}function It(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Nt(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Ft(e){e.data.newPos=e.elm.getBoundingClientRect()}function $t(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+i+"px)",a.transitionDuration="0s"}}var Vt=Object.freeze({}),Ht=Object.prototype.toString,qt=(f("slot,component",!0),f("key,ref,slot,slot-scope,is")),Ut=Object.prototype.hasOwnProperty,Yt=/-(\w)/g,Xt=v(function(e){return e.replace(Yt,function(e,t){return t?t.toUpperCase():""})}),Zt=v(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),Jt=/\B([A-Z])/g,Qt=v(function(e){return e.replace(Jt,"-$1").toLowerCase()}),en=function(e,t,n){return!1},tn=function(e){return e},nn="data-server-rendered",rn=["component","directive","filter"],an=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],ln={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:en,isReservedAttr:en,isUnknownElement:en,getTagNamespace:T,parsePlatformTagName:tn,mustUseProp:en,_lifecycleHooks:an},on=/[^\w.$]/,sn="__proto__"in{},un="undefined"!=typeof window,cn="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,dn=cn&&WXEnvironment.platform.toLowerCase(),fn=un&&window.navigator.userAgent.toLowerCase(),hn=fn&&/msie|trident/.test(fn),pn=fn&&fn.indexOf("msie 9.0")>0,vn=fn&&fn.indexOf("edge/")>0,yn=fn&&fn.indexOf("android")>0||"android"===dn,gn=fn&&/iphone|ipad|ipod|ios/.test(fn)||"ios"===dn,mn=(fn&&/chrome\/\d+/.test(fn),{}.watch),_n=!1;if(un)try{var Tn={};Object.defineProperty(Tn,"passive",{get:function(){_n=!0}}),window.addEventListener("test-passive",null,Tn)}catch(e){}var bn,Mn,kn=function(){return void 0===bn&&(bn=!un&&void 0!==e&&"server"===e.process.env.VUE_ENV),bn},Kn=un&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,xn="undefined"!=typeof Symbol&&C(Symbol)&&"undefined"!=typeof Reflect&&C(Reflect.ownKeys);Mn="undefined"!=typeof Set&&C(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Cn=T,An=0,wn=function(){this.id=An++,this.subs=[]};wn.prototype.addSub=function(e){this.subs.push(e)},wn.prototype.removeSub=function(e){h(this.subs,e)},wn.prototype.depend=function(){wn.target&&wn.target.addDep(this)},wn.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;trr&&Jn[n].id>e.id;)n--;Jn.splice(n+1,0,e)}else Jn.push(e);tr||(tr=!0,q(he))}}(this)},ar.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||o(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){F(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},ar.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ar.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},ar.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||h(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var lr={enumerable:!0,configurable:!0,get:T,set:T},or={lazy:!0};De(Be.prototype);var sr={init:function(e,t,n,r){if(!e.componentInstance||e.componentInstance._isDestroyed)(e.componentInstance=Ge(e,Zn,n,r)).$mount(t?e.elm:void 0,t);else if(e.data.keepAlive){var i=e;sr.prepatch(i,i)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,i){var a=!!(i||e.$options._renderChildren||r.data.scopedSlots||e.$scopedSlots!==Vt);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=i,e.$attrs=r.data&&r.data.attrs||Vt,e.$listeners=n||Vt,t&&e.$options.props){On.shouldConvert=!1;for(var l=e._props,o=e.$options._propKeys||[],s=0;s1?g(n):n;for(var r=g(arguments,1),i=0,a=n.length;iparseInt(this.max)&&He(l,o[0],o,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},vr={KeepAlive:pr};(function(e){var t={get:function(){return ln}};Object.defineProperty(e,"config",t),e.util={warn:Cn,extend:m,mergeOptions:R,defineReactive:B},e.set=S,e.delete=z,e.nextTick=q,e.options=Object.create(null),rn.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,m(e.options.components,vr),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=g(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=R(this.options,e),this}}(e),Ne(e),function(e){rn.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&s(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)})(Ie),Object.defineProperty(Ie.prototype,"$isServer",{get:kn}),Object.defineProperty(Ie.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Ie.version="2.5.13";var yr,gr,mr=f("style,class"),_r=f("input,textarea,option,select,progress"),Tr=f("contenteditable,draggable,spellcheck"),br=f("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Mr="http://www.w3.org/1999/xlink",kr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Kr=function(e){return kr(e)?e.slice(6,e.length):""},xr=function(e){return null==e||!1===e},Cr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Ar=f("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),wr=f("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Lr=function(e){return Ar(e)||wr(e)},Dr=Object.create(null),Br=f("text,number,password,search,email,tel,url"),Sr=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(Cr[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setAttribute:function(e,t,n){e.setAttribute(t,n)}}),zr={create:function(e,t){Ze(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Ze(e,!0),Ze(t))},destroy:function(e){Ze(e,!0)}},Gr=new Dn("",{},[]),Wr=["create","activate","update","remove","destroy"],Or={create:et,update:et,destroy:function(e){et(e,Gr)}},Pr=Object.create(null),Rr=[zr,Or],Er={create:it,update:it},jr={create:lt,update:lt},Ir="__r",Nr="__c",Fr={create:ct,update:ct},$r={create:dt,update:dt},Vr=v(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}),Hr=/^--/,qr=/\s*!important$/,Ur=function(e,t,n){if(Hr.test(t))e.style.setProperty(t,n);else if(qr.test(n))e.style.setProperty(t,n.replace(qr,""),"important");else{var r=Xr(t);if(Array.isArray(n))for(var i=0,a=n.length;ip?(d=r(a[_+1])?null:a[_+1].elm,v(e,d,a,h,_,l)):h>_&&g(0,t,f,p)}function T(e,t,n,r){for(var a=n;a-1?Dr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Dr[e]=/HTMLUnknownElement/.test(t.toString())},m(Ie.options.directives,pi),m(Ie.options.components,_i),Ie.prototype.__patch__=un?di:T,Ie.prototype.$mount=function(e,t){return function(e,t,n){return e.$el=t,e.$options.render||(e.$options.render=Sn),fe(e,"beforeMount"),new ar(e,function(){e._update(e._render(),n)},T,null,!0),n=!1,null==e.$vnode&&(e._isMounted=!0,fe(e,"mounted")),e}(this,e=e&&un?function(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}(e):void 0,t)},Ie.nextTick(function(){ln.devtools&&Kn&&Kn.emit("init",Ie)},0),t.a=Ie}).call(t,n(44),n(167).setImmediate)},function(e,t,n){"use strict";var r=n(180),i=n.n(r);t.a=i.a},function(e,t,n){"use strict";var r=n(189),i=n.n(r);t.a=i.a},function(e,t,n){var r=n(60),i=n(32);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";var r=n(176),i=n.n(r),a=n(177),l=n.n(a);n.d(t,"a",function(){return i.a}),n.d(t,"b",function(){return l.a})},function(e,t,n){"use strict";var r=n(178),i=n.n(r),a=n(65);n.n(a),t.a=i.a},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports=!0},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(9).f,i=n(12),a=n(4)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){var r=n(37)("keys"),i=n(27);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(8),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(31);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(19);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(8),i=n(7),a=n(33),l=n(42),o=n(9).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||o(t,e,{value:l.f(e)})}},function(e,t,n){t.f=n(4)},function(e,t,n){"use strict";var r=n(154)(!0);n(57)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(168),i=n.n(r);t.a=i.a},function(e,t,n){"use strict";var r=n(169),i=n.n(r),a=n(170),l=n.n(a);n.d(t,"a",function(){return i.a}),n.d(t,"b",function(){return l.a})},function(e,t,n){"use strict";var r=n(13),i=n.n(r),a=n(22),l=n(183),o=n.n(l);n.d(t,"a",function(){return o.a}),t.b={open:function(e){var t=void 0,n=void 0;"string"==typeof e&&(t=e);var r={programmatic:!0,content:t};e.parent&&(n=e.parent,delete e.parent);var l=i()(r,e);return new(a.a.extend(o.a))({parent:n,el:document.createElement("div"),propsData:l})}}},function(e,t,n){"use strict";var r=n(185),i=n.n(r);t.a=i.a},function(e,t,n){"use strict";var r=n(6),i=n.n(r),a=n(2);t.a={components:i()({},a.a.name,a.a),props:{active:{type:Boolean,default:!0},title:String,closable:{type:Boolean,default:!0},type:String,hasIcon:Boolean,size:String,iconSize:String},data:function(){return{isActive:this.active}},watch:{active:function(e){this.isActive=e}},computed:{icon:function(){switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}}},methods:{close:function(){this.isActive=!1,this.$emit("close"),this.$emit("update:active",!1)}}}},function(e,t,n){"use strict";var r=n(1),i=n(5);t.a={props:{type:{type:String,default:"is-dark"},message:String,duration:Number,queue:{type:Boolean,default:void 0},position:{type:String,default:"is-top",validator:function(e){return["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"].indexOf(e)>-1}},container:String},data:function(){return{isActive:!1,parentTop:null,parentBottom:null,newContainer:this.container||r.b.defaultContainerElement}},computed:{correctParent:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return this.parentTop;case"is-bottom-right":case"is-bottom":case"is-bottom-left":return this.parentBottom}},transition:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return{enter:"fadeInDown",leave:"fadeOut"};case"is-bottom-right":case"is-bottom":case"is-bottom-left":return{enter:"fadeInUp",leave:"fadeOut"}}}},methods:{shouldQueue:function(){return!!(void 0!==this.queue?this.queue:r.b.defaultNoticeQueue)&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},close:function(){var e=this;clearTimeout(this.timer),this.isActive=!1,setTimeout(function(){e.$destroy(),n.i(i.a)(e.$el)},150)},showNotice:function(){var e=this;this.shouldQueue()?setTimeout(function(){return e.showNotice()},250):(this.correctParent.insertAdjacentElement("afterbegin",this.$el),this.isActive=!0,this.indefinite||(this.timer=setTimeout(function(){return e.close()},this.newDuration)))},setupContainer:function(){if(this.parentTop=document.querySelector(".notices.is-top"),this.parentBottom=document.querySelector(".notices.is-bottom"),!this.parentTop||!this.parentBottom){this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="notices is-top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="notices is-bottom");var e=document.querySelector(this.newContainer)||document.body;e.appendChild(this.parentTop),e.appendChild(this.parentBottom),this.newContainer&&(this.parentTop.classList.add("has-custom-container"),this.parentBottom.classList.add("has-custom-container"))}}},beforeMount:function(){this.setupContainer()},mounted:function(){this.showNotice()}}},function(e,t,n){e.exports={default:n(130),__esModule:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(127),a=r(i),l=n(3),o=r(l),s="function"==typeof o.default&&"symbol"==typeof a.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};t.default="function"==typeof o.default&&"symbol"===s(a.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t,n){var r=n(135);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(19),i=n(8).document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){e.exports=!n(11)&&!n(18)(function(){return 7!=Object.defineProperty(n(54)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(30);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var r=n(33),i=n(17),a=n(61),l=n(15),o=n(12),s=n(20),u=n(145),c=n(35),d=n(153),f=n(4)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,v,y,g,m){u(n,t,v);var _,T,b,M=function(e){if(!h&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",K="values"==y,x=!1,C=e.prototype,A=C[f]||C["@@iterator"]||y&&C[y],w=!h&&A||M(y),L=y?K?M("entries"):w:void 0,D="Array"==t&&C.entries||A;if(D&&(b=d(D.call(new e)))!==Object.prototype&&b.next&&(c(b,k,!0),r||o(b,f)||l(b,f,p)),K&&A&&"values"!==A.name&&(x=!0,w=function(){return A.call(this)}),r&&!m||!h&&!x&&C[f]||l(C,f,w),s[t]=w,s[k]=p,y)if(_={values:K?w:M("values"),keys:g?w:M("keys"),entries:L},m)for(T in _)T in C||a(C,T,_[T]);else i(i.P+i.F*(h||x),t,_);return _}},function(e,t,n){var r=n(14),i=n(150),a=n(32),l=n(36)("IE_PROTO"),o=function(){},s=function(){var e,t=n(54)("iframe"),r=a.length;for(t.style.display="none",n(141).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("